diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index d2733f61dd4d..39417cdc88a7 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -353,15 +353,6 @@ export const ROUTES: Routes = [ title: 'Segmented', }, }, - { - path: 'experimental/sensitive', - loadChildren: async () => - (await import('../experimental/sensitive/sensitive.module')) - .ExampleTuiSensitiveModule, - data: { - title: 'Sensitive', - }, - }, { path: 'experimental/surface', loadChildren: async () => @@ -617,6 +608,15 @@ export const ROUTES: Routes = [ title: 'Fade', }, }, + { + path: 'directives/sensitive', + loadChildren: async () => + (await import('../directives/sensitive/sensitive.module')) + .ExampleTuiSensitiveModule, + data: { + title: 'Sensitive', + }, + }, { path: 'components/input-inline', loadChildren: async () => diff --git a/projects/demo/src/modules/experimental/sensitive/examples/1/index.html b/projects/demo/src/modules/directives/sensitive/examples/1/index.html similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/1/index.html rename to projects/demo/src/modules/directives/sensitive/examples/1/index.html diff --git a/projects/demo/src/modules/experimental/sensitive/examples/1/index.less b/projects/demo/src/modules/directives/sensitive/examples/1/index.less similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/1/index.less rename to projects/demo/src/modules/directives/sensitive/examples/1/index.less diff --git a/projects/demo/src/modules/experimental/sensitive/examples/1/index.ts b/projects/demo/src/modules/directives/sensitive/examples/1/index.ts similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/1/index.ts rename to projects/demo/src/modules/directives/sensitive/examples/1/index.ts diff --git a/projects/demo/src/modules/experimental/sensitive/examples/2/index.html b/projects/demo/src/modules/directives/sensitive/examples/2/index.html similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/2/index.html rename to projects/demo/src/modules/directives/sensitive/examples/2/index.html diff --git a/projects/demo/src/modules/experimental/sensitive/examples/2/index.ts b/projects/demo/src/modules/directives/sensitive/examples/2/index.ts similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/2/index.ts rename to projects/demo/src/modules/directives/sensitive/examples/2/index.ts diff --git a/projects/demo/src/modules/experimental/sensitive/examples/import/import-module.md b/projects/demo/src/modules/directives/sensitive/examples/import/import-module.md similarity index 60% rename from projects/demo/src/modules/experimental/sensitive/examples/import/import-module.md rename to projects/demo/src/modules/directives/sensitive/examples/import/import-module.md index e4de25334ba2..0ed5b364fd9c 100644 --- a/projects/demo/src/modules/experimental/sensitive/examples/import/import-module.md +++ b/projects/demo/src/modules/directives/sensitive/examples/import/import-module.md @@ -1,13 +1,13 @@ ```ts import {NgModule} from '@angular/core'; -import {TuiSensitiveModule} from '@taiga-ui/experimental'; +import {TuiSensitiveDirective} from '@taiga-ui/kit'; // ... @NgModule({ imports: [ // ... - TuiSensitiveModule, + TuiSensitiveDirective, ], }) export class MyModule {} diff --git a/projects/demo/src/modules/experimental/sensitive/examples/import/insert-template.md b/projects/demo/src/modules/directives/sensitive/examples/import/insert-template.md similarity index 100% rename from projects/demo/src/modules/experimental/sensitive/examples/import/insert-template.md rename to projects/demo/src/modules/directives/sensitive/examples/import/insert-template.md diff --git a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts b/projects/demo/src/modules/directives/sensitive/sensitive.component.ts similarity index 90% rename from projects/demo/src/modules/experimental/sensitive/sensitive.component.ts rename to projects/demo/src/modules/directives/sensitive/sensitive.component.ts index 911d8c6ed3a3..75527051ce3b 100644 --- a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts +++ b/projects/demo/src/modules/directives/sensitive/sensitive.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-sensitive', diff --git a/projects/demo/src/modules/experimental/sensitive/sensitive.module.ts b/projects/demo/src/modules/directives/sensitive/sensitive.module.ts similarity index 83% rename from projects/demo/src/modules/experimental/sensitive/sensitive.module.ts rename to projects/demo/src/modules/directives/sensitive/sensitive.module.ts index bd95bb3d236d..abe60b4b73b9 100644 --- a/projects/demo/src/modules/experimental/sensitive/sensitive.module.ts +++ b/projects/demo/src/modules/directives/sensitive/sensitive.module.ts @@ -3,8 +3,8 @@ import {NgModule} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {tuiGetDocModules} from '@taiga-ui/addon-doc'; import {TuiNotificationModule} from '@taiga-ui/core'; -import {TuiButtonModule, TuiSensitiveModule} from '@taiga-ui/experimental'; -import {TuiBadgeDirective, TuiToggleModule} from '@taiga-ui/kit'; +import {TuiButtonModule} from '@taiga-ui/experimental'; +import {TuiBadgeDirective, TuiSensitiveDirective, TuiToggleModule} from '@taiga-ui/kit'; import {TuiSensitiveExample1} from './examples/1'; import {TuiSensitiveExample2} from './examples/2'; @@ -14,7 +14,7 @@ import {ExampleTuiSensitiveComponent} from './sensitive.component'; imports: [ FormsModule, CommonModule, - TuiSensitiveModule, + TuiSensitiveDirective, TuiNotificationModule, TuiToggleModule, TuiBadgeDirective, diff --git a/projects/demo/src/modules/experimental/sensitive/sensitive.template.html b/projects/demo/src/modules/directives/sensitive/sensitive.template.html similarity index 98% rename from projects/demo/src/modules/experimental/sensitive/sensitive.template.html rename to projects/demo/src/modules/directives/sensitive/sensitive.template.html index 084ce027d91a..cdf35d7a95f6 100644 --- a/projects/demo/src/modules/experimental/sensitive/sensitive.template.html +++ b/projects/demo/src/modules/directives/sensitive/sensitive.template.html @@ -1,6 +1,6 @@ diff --git a/projects/demo/src/modules/experimental/cell/cell.module.ts b/projects/demo/src/modules/experimental/cell/cell.module.ts index 79cc0833926e..203a0962f455 100644 --- a/projects/demo/src/modules/experimental/cell/cell.module.ts +++ b/projects/demo/src/modules/experimental/cell/cell.module.ts @@ -18,7 +18,6 @@ import { TuiCellModule, TuiCheckboxModule, TuiIconModule, - TuiSensitiveModule, TuiSurfaceModule, TuiThumbnailCardModule, TuiTitleModule, @@ -34,6 +33,7 @@ import { TuiFadeDirective, TuiProgressModule, TuiSelectModule, + TuiSensitiveDirective, } from '@taiga-ui/kit'; import {ExampleTuiCellComponent} from './cell.component'; @@ -66,7 +66,7 @@ import {TuiCellExample7} from './examples/7'; TuiIconModule, TuiCheckboxModule, TuiLoaderModule, - TuiSensitiveModule, + TuiSensitiveDirective, TuiSurfaceModule, TuiSelectModule, TuiDataListWrapperModule, diff --git a/projects/demo/src/modules/experimental/header/header.module.ts b/projects/demo/src/modules/experimental/header/header.module.ts index 2c9af8b800c2..9e6de57a7c84 100644 --- a/projects/demo/src/modules/experimental/header/header.module.ts +++ b/projects/demo/src/modules/experimental/header/header.module.ts @@ -11,7 +11,6 @@ import { TuiButtonModule, TuiHeaderDirective, TuiIconModule, - TuiSensitiveModule, TuiTitleModule, TuiToggleModule, } from '@taiga-ui/experimental'; @@ -21,6 +20,7 @@ import { TuiBadgeNotificationComponent, TuiDataListWrapperModule, TuiSelectModule, + TuiSensitiveDirective, } from '@taiga-ui/kit'; import {TuiHeaderExample1} from './examples/1'; @@ -39,7 +39,7 @@ import {ExampleTuiCellComponent} from './header.component'; TuiHeaderDirective, TuiTitleModule, TuiIconModule, - TuiSensitiveModule, + TuiSensitiveDirective, TuiSelectModule, TuiDataListWrapperModule, TuiTextfieldControllerModule, diff --git a/projects/experimental/directives/index.ts b/projects/experimental/directives/index.ts index d0e8927afdd3..199b31d087fb 100644 --- a/projects/experimental/directives/index.ts +++ b/projects/experimental/directives/index.ts @@ -5,6 +5,5 @@ export * from '@taiga-ui/experimental/directives/card'; export * from '@taiga-ui/experimental/directives/cell'; export * from '@taiga-ui/experimental/directives/header'; export * from '@taiga-ui/experimental/directives/progress-segmented'; -export * from '@taiga-ui/experimental/directives/sensitive'; export * from '@taiga-ui/experimental/directives/surface'; export * from '@taiga-ui/experimental/directives/title'; diff --git a/projects/experimental/directives/sensitive/sensitive.module.ts b/projects/experimental/directives/sensitive/sensitive.module.ts deleted file mode 100644 index 503b2c907473..000000000000 --- a/projects/experimental/directives/sensitive/sensitive.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {NgModule} from '@angular/core'; - -import {TuiSensitiveComponent} from './sensitive.component'; -import {TuiSensitiveDirective} from './sensitive.directive'; - -@NgModule({ - declarations: [TuiSensitiveDirective, TuiSensitiveComponent], - exports: [TuiSensitiveDirective], -}) -export class TuiSensitiveModule {} diff --git a/projects/kit/directives/index.ts b/projects/kit/directives/index.ts index 657746790378..9ae46358330b 100644 --- a/projects/kit/directives/index.ts +++ b/projects/kit/directives/index.ts @@ -4,6 +4,7 @@ export * from '@taiga-ui/kit/directives/highlight'; export * from '@taiga-ui/kit/directives/lazy-loading'; export * from '@taiga-ui/kit/directives/present'; export * from '@taiga-ui/kit/directives/project-class'; +export * from '@taiga-ui/kit/directives/sensitive'; export * from '@taiga-ui/kit/directives/unfinished-validator'; export * from '@taiga-ui/kit/directives/unmask-handler'; export * from '@taiga-ui/kit/directives/value-accessor'; diff --git a/projects/experimental/directives/sensitive/index.ts b/projects/kit/directives/sensitive/index.ts similarity index 68% rename from projects/experimental/directives/sensitive/index.ts rename to projects/kit/directives/sensitive/index.ts index f025fd35d6d6..33c6e49c5c61 100644 --- a/projects/experimental/directives/sensitive/index.ts +++ b/projects/kit/directives/sensitive/index.ts @@ -1,3 +1,2 @@ export * from './sensitive.component'; export * from './sensitive.directive'; -export * from './sensitive.module'; diff --git a/projects/experimental/directives/sensitive/ng-package.json b/projects/kit/directives/sensitive/ng-package.json similarity index 100% rename from projects/experimental/directives/sensitive/ng-package.json rename to projects/kit/directives/sensitive/ng-package.json diff --git a/projects/experimental/directives/sensitive/sensitive.component.ts b/projects/kit/directives/sensitive/sensitive.component.ts similarity index 100% rename from projects/experimental/directives/sensitive/sensitive.component.ts rename to projects/kit/directives/sensitive/sensitive.component.ts diff --git a/projects/experimental/directives/sensitive/sensitive.directive.ts b/projects/kit/directives/sensitive/sensitive.directive.ts similarity index 98% rename from projects/experimental/directives/sensitive/sensitive.directive.ts rename to projects/kit/directives/sensitive/sensitive.directive.ts index baad200e3ccc..d0d74d7f52a6 100644 --- a/projects/experimental/directives/sensitive/sensitive.directive.ts +++ b/projects/kit/directives/sensitive/sensitive.directive.ts @@ -8,6 +8,7 @@ import {TuiSensitiveComponent} from './sensitive.component'; const rowsInSvg = 3; @Directive({ + standalone: true, selector: '[tuiSensitive]', providers: [ResizeObserverService], host: { diff --git a/projects/experimental/directives/sensitive/sensitive.style.less b/projects/kit/directives/sensitive/sensitive.style.less similarity index 100% rename from projects/experimental/directives/sensitive/sensitive.style.less rename to projects/kit/directives/sensitive/sensitive.style.less