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