From d27927bb8d65262af4e09e0769e1767ed8c39eb3 Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Wed, 18 Oct 2023 14:12:29 +0300 Subject: [PATCH] fix(experimental): rename `BadgeAlert` to `BadgeNotification` (#5652) --- projects/demo/src/modules/app/app.routes.ts | 8 +++--- projects/demo/src/modules/app/pages.ts | 4 +-- .../badge-alert/badge-alert.module.ts | 27 ------------------- .../badge-alert/examples/1/index.html | 23 ---------------- .../badge-alert/examples/1/index.less | 3 --- .../badge-alert/examples/2/index.html | 4 --- .../examples/import/insert-template.md | 3 --- .../badge-notification.component.ts} | 6 ++--- .../badge-notification.module.ts | 27 +++++++++++++++++++ .../badge-notification.template.html} | 8 +++--- .../badge-notification/examples/1/index.html | 23 ++++++++++++++++ .../badge-notification/examples/1/index.less | 3 +++ .../examples/1/index.ts | 4 +-- .../badge-notification/examples/2/index.html | 4 +++ .../examples/2/index.less | 2 +- .../examples/2/index.ts | 4 +-- .../examples/import/import-module.md | 4 +-- .../examples/import/insert-template.md | 3 +++ .../badged-content.component.ts | 2 +- .../badged-content/badged-content.module.ts | 12 ++++----- .../badged-content.template.html | 2 +- .../badged-content/examples/1/index.html | 12 ++++----- .../badged-content/examples/2/index.html | 8 +++--- .../badged-content/examples/3/index.html | 4 +-- .../examples/import/insert-template.md | 4 +-- .../badge-alert/badge-alert.module.ts | 9 ------- .../components/badge-alert/index.ts | 2 -- .../badge-notification.component.ts} | 6 ++--- .../badge-notification.module.ts | 9 +++++++ .../badge-notification.style.less} | 0 .../components/badge-notification/index.ts | 2 ++ .../ng-package.json | 0 .../badged-content.template.html | 4 +-- projects/experimental/components/index.ts | 2 +- 34 files changed, 119 insertions(+), 119 deletions(-) delete mode 100644 projects/demo/src/modules/experimental/badge-alert/badge-alert.module.ts delete mode 100644 projects/demo/src/modules/experimental/badge-alert/examples/1/index.html delete mode 100644 projects/demo/src/modules/experimental/badge-alert/examples/1/index.less delete mode 100644 projects/demo/src/modules/experimental/badge-alert/examples/2/index.html delete mode 100644 projects/demo/src/modules/experimental/badge-alert/examples/import/insert-template.md rename projects/demo/src/modules/experimental/{badge-alert/badge-alert.component.ts => badge-notification/badge-notification.component.ts} (85%) create mode 100644 projects/demo/src/modules/experimental/badge-notification/badge-notification.module.ts rename projects/demo/src/modules/experimental/{badge-alert/badge-alert.template.html => badge-notification/badge-notification.template.html} (88%) create mode 100644 projects/demo/src/modules/experimental/badge-notification/examples/1/index.html create mode 100644 projects/demo/src/modules/experimental/badge-notification/examples/1/index.less rename projects/demo/src/modules/experimental/{badge-alert => badge-notification}/examples/1/index.ts (75%) create mode 100644 projects/demo/src/modules/experimental/badge-notification/examples/2/index.html rename projects/demo/src/modules/experimental/{badge-alert => badge-notification}/examples/2/index.less (81%) rename projects/demo/src/modules/experimental/{badge-alert => badge-notification}/examples/2/index.ts (75%) rename projects/demo/src/modules/experimental/{badge-alert => badge-notification}/examples/import/import-module.md (56%) create mode 100644 projects/demo/src/modules/experimental/badge-notification/examples/import/insert-template.md delete mode 100644 projects/experimental/components/badge-alert/badge-alert.module.ts delete mode 100644 projects/experimental/components/badge-alert/index.ts rename projects/experimental/components/{badge-alert/badge-alert.component.ts => badge-notification/badge-notification.component.ts} (84%) create mode 100644 projects/experimental/components/badge-notification/badge-notification.module.ts rename projects/experimental/components/{badge-alert/badge-alert.style.less => badge-notification/badge-notification.style.less} (100%) create mode 100644 projects/experimental/components/badge-notification/index.ts rename projects/experimental/components/{badge-alert => badge-notification}/ng-package.json (100%) diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index 2ba19d2f6ebd..6e84a0841f93 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -215,12 +215,12 @@ export const ROUTES: Routes = [ }, }, { - path: `experimental/badge-alert`, + path: `experimental/badge-notification`, loadChildren: async () => - (await import(`../experimental/badge-alert/badge-alert.module`)) - .ExampleTuiBadgeAlertModule, + (await import(`../experimental/badge-notification/badge-notification.module`)) + .ExampleTuiBadgeNotificationModule, data: { - title: `BadgeAlert`, + title: `BadgeNotification`, }, }, { diff --git a/projects/demo/src/modules/app/pages.ts b/projects/demo/src/modules/app/pages.ts index ff91c97f9fd8..1c6917b950b2 100644 --- a/projects/demo/src/modules/app/pages.ts +++ b/projects/demo/src/modules/app/pages.ts @@ -835,9 +835,9 @@ export const pages: TuiDocPages = [ }, { section: `Experimental`, - title: `BadgeAlert`, + title: `BadgeNotification`, keywords: `бэдж, бейдж, circle, круг, badge, alert, нотификация`, - route: `/experimental/badge-alert`, + route: `/experimental/badge-notification`, }, { section: `Experimental`, diff --git a/projects/demo/src/modules/experimental/badge-alert/badge-alert.module.ts b/projects/demo/src/modules/experimental/badge-alert/badge-alert.module.ts deleted file mode 100644 index d7d83f2a58af..000000000000 --- a/projects/demo/src/modules/experimental/badge-alert/badge-alert.module.ts +++ /dev/null @@ -1,27 +0,0 @@ -import {CommonModule} from '@angular/common'; -import {NgModule} from '@angular/core'; -import {tuiGetDocModules} from '@taiga-ui/addon-doc'; -import {TuiPlatformModule} from '@taiga-ui/cdk'; -import {TuiNotificationModule} from '@taiga-ui/core'; -import {TuiBadgeAlertModule} from '@taiga-ui/experimental'; - -import {ExampleTuiBadgeAlertComponent} from './badge-alert.component'; -import {TuiBadgeAlertExample1} from './examples/1'; -import {TuiBadgeAlertExample2} from './examples/2'; - -@NgModule({ - imports: [ - CommonModule, - TuiBadgeAlertModule, - TuiNotificationModule, - TuiPlatformModule, - tuiGetDocModules(ExampleTuiBadgeAlertComponent), - ], - declarations: [ - ExampleTuiBadgeAlertComponent, - TuiBadgeAlertExample1, - TuiBadgeAlertExample2, - ], - exports: [ExampleTuiBadgeAlertComponent], -}) -export class ExampleTuiBadgeAlertModule {} diff --git a/projects/demo/src/modules/experimental/badge-alert/examples/1/index.html b/projects/demo/src/modules/experimental/badge-alert/examples/1/index.html deleted file mode 100644 index c7823ec302d9..000000000000 --- a/projects/demo/src/modules/experimental/badge-alert/examples/1/index.html +++ /dev/null @@ -1,23 +0,0 @@ -

Desktop

-

- 9 - 9 - 9 - 9 -

- -

Android

-

- 9 - 9 - 9 - 9 -

- -

IOS

-

- 9 - 9 - 9 - 9 -

diff --git a/projects/demo/src/modules/experimental/badge-alert/examples/1/index.less b/projects/demo/src/modules/experimental/badge-alert/examples/1/index.less deleted file mode 100644 index 038f13f6af63..000000000000 --- a/projects/demo/src/modules/experimental/badge-alert/examples/1/index.less +++ /dev/null @@ -1,3 +0,0 @@ -tui-badge-alert { - margin: 0.2rem; -} diff --git a/projects/demo/src/modules/experimental/badge-alert/examples/2/index.html b/projects/demo/src/modules/experimental/badge-alert/examples/2/index.html deleted file mode 100644 index d6ed5f6ef67c..000000000000 --- a/projects/demo/src/modules/experimental/badge-alert/examples/2/index.html +++ /dev/null @@ -1,4 +0,0 @@ -10 -11 -12 - diff --git a/projects/demo/src/modules/experimental/badge-alert/examples/import/insert-template.md b/projects/demo/src/modules/experimental/badge-alert/examples/import/insert-template.md deleted file mode 100644 index 72e2d33850bd..000000000000 --- a/projects/demo/src/modules/experimental/badge-alert/examples/import/insert-template.md +++ /dev/null @@ -1,3 +0,0 @@ -```html -10 -``` diff --git a/projects/demo/src/modules/experimental/badge-alert/badge-alert.component.ts b/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts similarity index 85% rename from projects/demo/src/modules/experimental/badge-alert/badge-alert.component.ts rename to projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts index 9edf1f470271..8601ba957ead 100644 --- a/projects/demo/src/modules/experimental/badge-alert/badge-alert.component.ts +++ b/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts @@ -4,11 +4,11 @@ import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; @Component({ - selector: 'example-badge-alert', - templateUrl: './badge-alert.template.html', + selector: 'example-badge-notification', + templateUrl: './badge-notification.template.html', changeDetection, }) -export class ExampleTuiBadgeAlertComponent { +export class ExampleTuiBadgeNotificationComponent { readonly exampleModule: TuiRawLoaderContent = import( './examples/import/import-module.md?raw' ); diff --git a/projects/demo/src/modules/experimental/badge-notification/badge-notification.module.ts b/projects/demo/src/modules/experimental/badge-notification/badge-notification.module.ts new file mode 100644 index 000000000000..945a8162ed59 --- /dev/null +++ b/projects/demo/src/modules/experimental/badge-notification/badge-notification.module.ts @@ -0,0 +1,27 @@ +import {CommonModule} from '@angular/common'; +import {NgModule} from '@angular/core'; +import {tuiGetDocModules} from '@taiga-ui/addon-doc'; +import {TuiPlatformModule} from '@taiga-ui/cdk'; +import {TuiNotificationModule} from '@taiga-ui/core'; +import {TuiBadgeNotificationModule} from '@taiga-ui/experimental'; + +import {ExampleTuiBadgeNotificationComponent} from './badge-notification.component'; +import {TuiBadgeNotificationExample1} from './examples/1'; +import {TuiBadgeNotificationExample2} from './examples/2'; + +@NgModule({ + imports: [ + CommonModule, + TuiBadgeNotificationModule, + TuiNotificationModule, + TuiPlatformModule, + tuiGetDocModules(ExampleTuiBadgeNotificationComponent), + ], + declarations: [ + ExampleTuiBadgeNotificationComponent, + TuiBadgeNotificationExample1, + TuiBadgeNotificationExample2, + ], + exports: [ExampleTuiBadgeNotificationComponent], +}) +export class ExampleTuiBadgeNotificationModule {} diff --git a/projects/demo/src/modules/experimental/badge-alert/badge-alert.template.html b/projects/demo/src/modules/experimental/badge-notification/badge-notification.template.html similarity index 88% rename from projects/demo/src/modules/experimental/badge-alert/badge-alert.template.html rename to projects/demo/src/modules/experimental/badge-notification/badge-notification.template.html index bcaacc531bdd..0732d659fbb4 100644 --- a/projects/demo/src/modules/experimental/badge-alert/badge-alert.template.html +++ b/projects/demo/src/modules/experimental/badge-notification/badge-notification.template.html @@ -1,5 +1,5 @@ @@ -20,7 +20,7 @@ heading="Basic" [content]="example1" > - + - + - 11 + 11