@taiga-ui/core 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/bundles/taiga-ui-core-components-button.umd.js +1 -1
- package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +3 -3
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js +1 -1
- package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js +1 -1
- package/bundles/taiga-ui-core-components-primitive-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +5 -6
- package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +4 -4
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +7 -7
- package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
- package/bundles/taiga-ui-core-tokens.umd.js +33 -33
- package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js +1 -1
- package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
- package/components/alert/alert.service.d.ts +1 -1
- package/components/dialog/dialog.component.d.ts +1 -1
- package/components/dialog/dialog.service.d.ts +1 -1
- package/directives/dropdown/dropdown-context.directive.d.ts +1 -1
- package/esm2015/components/button/button-options.js +2 -2
- package/esm2015/components/dialog/dialog.component.js +2 -2
- package/esm2015/components/dialog/dialog.providers.js +3 -3
- package/esm2015/components/loader/loader-options.js +2 -2
- package/esm2015/components/primitive-checkbox/checkbox-options.js +2 -2
- package/esm2015/components/primitive-textfield/primitive-textfield-options.js +2 -2
- package/esm2015/components/primitive-textfield/primitive-textfield.component.js +1 -1
- package/esm2015/components/primitive-textfield/primitive-textfield.directive.js +1 -1
- package/esm2015/components/primitive-textfield/textfield/textfield.component.js +3 -4
- package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +2 -2
- package/esm2015/components/root/root.component.js +1 -1
- package/esm2015/directives/dropdown/dropdown-context.directive.js +5 -5
- package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-controller.provider.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-custom-content.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-icon-left.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-icon.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-label-outside.directive.js +2 -2
- package/esm2015/directives/textfield-controller/textfield-size.directive.js +2 -2
- package/esm2015/interfaces/dialog-options.js +1 -1
- package/esm2015/tokens/animation-options.js +2 -2
- package/esm2015/tokens/animations-duration.js +2 -2
- package/esm2015/tokens/assert-enabled.js +2 -2
- package/esm2015/tokens/data-list-accessor.js +2 -2
- package/esm2015/tokens/data-list-host.js +2 -2
- package/esm2015/tokens/document-or-shadow-root.js +2 -2
- package/esm2015/tokens/element-ref.js +2 -2
- package/esm2015/tokens/first-day-of-week.js +2 -2
- package/esm2015/tokens/i18n.js +7 -7
- package/esm2015/tokens/icon-place.js +2 -2
- package/esm2015/tokens/icons-path.js +2 -2
- package/esm2015/tokens/icons.js +2 -2
- package/esm2015/tokens/is-mobile-resolution.js +2 -2
- package/esm2015/tokens/media.js +2 -2
- package/esm2015/tokens/mode.js +2 -2
- package/esm2015/tokens/notification-options.js +2 -2
- package/esm2015/tokens/number-format.js +2 -2
- package/esm2015/tokens/option-content.js +2 -2
- package/esm2015/tokens/ordered-short-week-days.js +2 -2
- package/esm2015/tokens/sanitizer.js +2 -2
- package/esm2015/tokens/scroll-ref.js +2 -2
- package/esm2015/tokens/selection-stream.js +2 -2
- package/esm2015/tokens/svg-content-processor.js +2 -2
- package/esm2015/tokens/svg-src-processor.js +2 -2
- package/esm2015/tokens/textfield-appearance.js +2 -2
- package/esm2015/tokens/textfield-host.js +2 -2
- package/esm2015/tokens/theme.js +2 -2
- package/esm2015/tokens/value-accessor.js +2 -2
- package/esm2015/utils/dom/get-word-range.js +2 -2
- package/fesm2015/taiga-ui-core-components-button.js +1 -1
- package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +3 -3
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js +1 -1
- package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js +5 -6
- package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +4 -4
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js +7 -7
- package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
- package/fesm2015/taiga-ui-core-tokens.js +33 -33
- package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js +1 -1
- package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
- package/interfaces/dialog-options.d.ts +2 -1
- package/package.json +4 -4
- package/styles/mixins/text.less +2 -0
- package/styles/mixins/textfield.less +1 -0
- package/styles/theme/variables.less +1 -1
|
@@ -34,7 +34,7 @@ class TuiTextfieldController {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const TUI_TEXTFIELD_CLEANER = new InjectionToken(`tuiTextfieldCleaner`, {
|
|
37
|
+
const TUI_TEXTFIELD_CLEANER = new InjectionToken(`[TUI_TEXTFIELD_CLEANER]: tuiTextfieldCleaner`, {
|
|
38
38
|
factory: () => new TuiTextfieldCleanerDirective(),
|
|
39
39
|
});
|
|
40
40
|
class TuiTextfieldCleanerDirective extends AbstractTuiController {
|
|
@@ -66,7 +66,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
66
66
|
args: [`tuiTextfieldCleaner`]
|
|
67
67
|
}] } });
|
|
68
68
|
|
|
69
|
-
const TUI_TEXTFIELD_CUSTOM_CONTENT = new InjectionToken(`tuiTextfieldCustomContent`, {
|
|
69
|
+
const TUI_TEXTFIELD_CUSTOM_CONTENT = new InjectionToken(`[TUI_TEXTFIELD_CUSTOM_CONTENT]: tuiTextfieldCustomContent`, {
|
|
70
70
|
factory: () => new TuiTextfieldCustomContentDirective(),
|
|
71
71
|
});
|
|
72
72
|
class TuiTextfieldCustomContentDirective extends AbstractTuiController {
|
|
@@ -98,7 +98,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
98
98
|
args: [`tuiTextfieldCustomContent`]
|
|
99
99
|
}] } });
|
|
100
100
|
|
|
101
|
-
const TUI_TEXTFIELD_ICON = new InjectionToken(`tuiTextfieldIcon`, {
|
|
101
|
+
const TUI_TEXTFIELD_ICON = new InjectionToken(`[TUI_TEXTFIELD_ICON]: tuiTextfieldIcon`, {
|
|
102
102
|
factory: tuiIconDirectiveFactory,
|
|
103
103
|
});
|
|
104
104
|
class TuiTextfieldIconDirective extends AbstractTuiController {
|
|
@@ -133,7 +133,7 @@ function tuiIconDirectiveFactory() {
|
|
|
133
133
|
return new TuiTextfieldIconDirective();
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
const TUI_TEXTFIELD_ICON_LEFT = new InjectionToken(`tuiTextfieldIconLeft`, {
|
|
136
|
+
const TUI_TEXTFIELD_ICON_LEFT = new InjectionToken(`[TUI_TEXTFIELD_ICON_LEFT]: tuiTextfieldIconLeft`, {
|
|
137
137
|
factory: tuiIconLeftDirectiveFactory,
|
|
138
138
|
});
|
|
139
139
|
class TuiTextfieldIconLeftDirective extends AbstractTuiController {
|
|
@@ -168,7 +168,7 @@ function tuiIconLeftDirectiveFactory() {
|
|
|
168
168
|
return new TuiTextfieldIconLeftDirective();
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
const TUI_TEXTFIELD_LABEL_OUTSIDE = new InjectionToken(`tuiTextfieldLabelOutside`, {
|
|
171
|
+
const TUI_TEXTFIELD_LABEL_OUTSIDE = new InjectionToken(`[TUI_TEXTFIELD_LABEL_OUTSIDE]: tuiTextfieldLabelOutside`, {
|
|
172
172
|
factory: () => new TuiTextfieldLabelOutsideDirective(),
|
|
173
173
|
});
|
|
174
174
|
class TuiTextfieldLabelOutsideDirective extends AbstractTuiController {
|
|
@@ -200,7 +200,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
200
200
|
args: [`tuiTextfieldLabelOutside`]
|
|
201
201
|
}] } });
|
|
202
202
|
|
|
203
|
-
const TUI_TEXTFIELD_SIZE = new InjectionToken(`tuiTextfieldSize`, {
|
|
203
|
+
const TUI_TEXTFIELD_SIZE = new InjectionToken(`[TUI_TEXTFIELD_SIZE]: tuiTextfieldSize`, {
|
|
204
204
|
factory: () => new TuiTextfieldSizeDirective(),
|
|
205
205
|
});
|
|
206
206
|
class TuiTextfieldSizeDirective extends AbstractTuiController {
|
|
@@ -269,7 +269,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
269
269
|
}]
|
|
270
270
|
}] });
|
|
271
271
|
|
|
272
|
-
const TUI_TEXTFIELD_WATCHED_CONTROLLER = new InjectionToken(`watched textfield controller`);
|
|
272
|
+
const TUI_TEXTFIELD_WATCHED_CONTROLLER = new InjectionToken(`[TUI_TEXTFIELD_WATCHED_CONTROLLER]: watched textfield controller`);
|
|
273
273
|
const TEXTFIELD_CONTROLLER_PROVIDER = [
|
|
274
274
|
TuiDestroyService,
|
|
275
275
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["../../../projects/core/directives/textfield-controller/textfield.controller.ts","../../../projects/core/directives/textfield-controller/textfield-cleaner.directive.ts","../../../projects/core/directives/textfield-controller/textfield-custom-content.directive.ts","../../../projects/core/directives/textfield-controller/textfield-icon.directive.ts","../../../projects/core/directives/textfield-controller/textfield-icon-left.directive.ts","../../../projects/core/directives/textfield-controller/textfield-label-outside.directive.ts","../../../projects/core/directives/textfield-controller/textfield-size.directive.ts","../../../projects/core/directives/textfield-controller/textfield-controller.module.ts","../../../projects/core/directives/textfield-controller/textfield-controller.provider.ts","../../../projects/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly iconDirective: TuiTextfieldIconDirective,\n private readonly iconLeftDirective: TuiTextfieldIconLeftDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n ) {}\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || ``;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.iconDirective.icon;\n }\n\n get iconLeft(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.iconLeftDirective.iconLeft;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n `tuiTextfieldCleaner`,\n {\n factory: () => new TuiTextfieldCleanerDirective(),\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldCleaner]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends AbstractTuiController {\n @Input(`tuiTextfieldCleaner`)\n cleaner = false;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>(`tuiTextfieldCustomContent`, {\n factory: () => new TuiTextfieldCustomContentDirective(),\n });\n\n@Directive({\n selector: `[tuiTextfieldCustomContent]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends AbstractTuiController {\n @Input(`tuiTextfieldCustomContent`)\n customContent: PolymorpheusContent = ``;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController, TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON = new InjectionToken<TuiTextfieldIconDirective>(\n `tuiTextfieldIcon`,\n {\n factory: tuiIconDirectiveFactory,\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldIcon]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_ICON,\n useExisting: forwardRef(() => TuiTextfieldIconDirective),\n },\n ],\n})\nexport class TuiTextfieldIconDirective extends AbstractTuiController {\n @Input(`tuiTextfieldIcon`)\n icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> = ``;\n}\n\nexport function tuiIconDirectiveFactory(): TuiTextfieldIconDirective {\n return new TuiTextfieldIconDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController, TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON_LEFT = new InjectionToken<TuiTextfieldIconLeftDirective>(\n `tuiTextfieldIconLeft`,\n {\n factory: tuiIconLeftDirectiveFactory,\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldIconLeft]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_ICON_LEFT,\n useExisting: forwardRef(() => TuiTextfieldIconLeftDirective),\n },\n ],\n})\nexport class TuiTextfieldIconLeftDirective extends AbstractTuiController {\n @Input(`tuiTextfieldIconLeft`)\n iconLeft: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> = ``;\n}\n\nexport function tuiIconLeftDirectiveFactory(): TuiTextfieldIconLeftDirective {\n return new TuiTextfieldIconLeftDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>(`tuiTextfieldLabelOutside`, {\n factory: () => new TuiTextfieldLabelOutsideDirective(),\n });\n\n@Directive({\n selector: `[tuiTextfieldLabelOutside]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends AbstractTuiController {\n @Input(`tuiTextfieldLabelOutside`)\n labelOutside = false;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n `tuiTextfieldSize`,\n {\n factory: () => new TuiTextfieldSizeDirective(),\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldSize]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends AbstractTuiController {\n @Input(`tuiTextfieldSize`)\n size: TuiSizeS | TuiSizeL = `l`;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n ],\n exports: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {TUI_TEXTFIELD_ICON, TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {\n TUI_TEXTFIELD_ICON_LEFT,\n TuiTextfieldIconLeftDirective,\n} from './textfield-icon-left.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>(`watched textfield controller`);\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_ICON,\n TUI_TEXTFIELD_ICON_LEFT,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_SIZE,\n ],\n useFactory: (\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n ]\n ) => {\n const change$ = merge(\n ...controllers.map(({change$}) => change$ || NEVER),\n ).pipe(tuiWatch(changeDetectorRef), takeUntil(destroy$));\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n },\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAYa,sBAAsB,CAAA;AAC/B,IAAA,WAAA,CACa,OAAyB,EACjB,gBAA8C,EAC9C,sBAA0D,EAC1D,aAAwC,EACxC,iBAAgD,EAChD,qBAAwD,EACxD,aAAwC,EAAA;QANhD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QACjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAA8B;QAC9C,IAAsB,CAAA,sBAAA,GAAtB,sBAAsB,CAAoC;QAC1D,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;QACxC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAA+B;QAChD,IAAqB,CAAA,qBAAA,GAArB,qBAAqB,CAAmC;QACxD,IAAa,CAAA,aAAA,GAAb,aAAa,CAA2B;KACzD;AAEJ,IAAA,IAAI,OAAO,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC;KACxC;AAED,IAAA,IAAI,aAAa,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,IAAI,EAAE,CAAC;KAC1D;AAED,IAAA,IAAI,IAAI,GAAA;AACJ,QAAA,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC;KAClC;AAED,IAAA,IAAI,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OF,KACD;AACA,YAAA,MAAM,OAAO,GAAG,KAAK,CACjB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,IAAI,KAAK,CAAC,CACtD,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;YAEzD,OAAO,CAAC,SAAS,EAAE,CAAC;YAEpB,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC,CAAC;SAC9D;AACJ,KAAA;;;AC9DL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-directives-textfield-controller.js","sources":["../../../projects/core/directives/textfield-controller/textfield.controller.ts","../../../projects/core/directives/textfield-controller/textfield-cleaner.directive.ts","../../../projects/core/directives/textfield-controller/textfield-custom-content.directive.ts","../../../projects/core/directives/textfield-controller/textfield-icon.directive.ts","../../../projects/core/directives/textfield-controller/textfield-icon-left.directive.ts","../../../projects/core/directives/textfield-controller/textfield-label-outside.directive.ts","../../../projects/core/directives/textfield-controller/textfield-size.directive.ts","../../../projects/core/directives/textfield-controller/textfield-controller.module.ts","../../../projects/core/directives/textfield-controller/textfield-controller.provider.ts","../../../projects/core/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.ts"],"sourcesContent":["import {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\n\nexport class TuiTextfieldController {\n constructor(\n readonly change$: Observable<void>,\n private readonly cleanerDirective: TuiTextfieldCleanerDirective,\n private readonly customContentDirective: TuiTextfieldCustomContentDirective,\n private readonly iconDirective: TuiTextfieldIconDirective,\n private readonly iconLeftDirective: TuiTextfieldIconLeftDirective,\n private readonly labelOutsideDirective: TuiTextfieldLabelOutsideDirective,\n private readonly sizeDirective: TuiTextfieldSizeDirective,\n ) {}\n\n get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || ``;\n }\n\n get icon(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.iconDirective.icon;\n }\n\n get iconLeft(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> {\n return this.iconLeftDirective.iconLeft;\n }\n\n get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n get size(): TuiSizeS | TuiSizeL {\n return this.sizeDirective.size;\n }\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken<TuiTextfieldCleanerDirective>(\n `[TUI_TEXTFIELD_CLEANER]: tuiTextfieldCleaner`,\n {\n factory: () => new TuiTextfieldCleanerDirective(),\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldCleaner]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_CLEANER,\n useExisting: forwardRef(() => TuiTextfieldCleanerDirective),\n },\n ],\n})\nexport class TuiTextfieldCleanerDirective extends AbstractTuiController {\n @Input(`tuiTextfieldCleaner`)\n cleaner = false;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT =\n new InjectionToken<TuiTextfieldCustomContentDirective>(\n `[TUI_TEXTFIELD_CUSTOM_CONTENT]: tuiTextfieldCustomContent`,\n {\n factory: () => new TuiTextfieldCustomContentDirective(),\n },\n );\n\n@Directive({\n selector: `[tuiTextfieldCustomContent]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_CUSTOM_CONTENT,\n useExisting: forwardRef(() => TuiTextfieldCustomContentDirective),\n },\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends AbstractTuiController {\n @Input(`tuiTextfieldCustomContent`)\n customContent: PolymorpheusContent = ``;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController, TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON = new InjectionToken<TuiTextfieldIconDirective>(\n `[TUI_TEXTFIELD_ICON]: tuiTextfieldIcon`,\n {\n factory: tuiIconDirectiveFactory,\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldIcon]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_ICON,\n useExisting: forwardRef(() => TuiTextfieldIconDirective),\n },\n ],\n})\nexport class TuiTextfieldIconDirective extends AbstractTuiController {\n @Input(`tuiTextfieldIcon`)\n icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> = ``;\n}\n\nexport function tuiIconDirectiveFactory(): TuiTextfieldIconDirective {\n return new TuiTextfieldIconDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController, TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON_LEFT = new InjectionToken<TuiTextfieldIconLeftDirective>(\n `[TUI_TEXTFIELD_ICON_LEFT]: tuiTextfieldIconLeft`,\n {\n factory: tuiIconLeftDirectiveFactory,\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldIconLeft]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_ICON_LEFT,\n useExisting: forwardRef(() => TuiTextfieldIconLeftDirective),\n },\n ],\n})\nexport class TuiTextfieldIconLeftDirective extends AbstractTuiController {\n @Input(`tuiTextfieldIconLeft`)\n iconLeft: PolymorpheusContent<TuiContextWithImplicit<TuiSizeS | TuiSizeL>> = ``;\n}\n\nexport function tuiIconLeftDirectiveFactory(): TuiTextfieldIconLeftDirective {\n return new TuiTextfieldIconLeftDirective();\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE =\n new InjectionToken<TuiTextfieldLabelOutsideDirective>(\n `[TUI_TEXTFIELD_LABEL_OUTSIDE]: tuiTextfieldLabelOutside`,\n {\n factory: () => new TuiTextfieldLabelOutsideDirective(),\n },\n );\n\n@Directive({\n selector: `[tuiTextfieldLabelOutside]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_LABEL_OUTSIDE,\n useExisting: forwardRef(() => TuiTextfieldLabelOutsideDirective),\n },\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends AbstractTuiController {\n @Input(`tuiTextfieldLabelOutside`)\n labelOutside = false;\n}\n","import {Directive, forwardRef, InjectionToken, Input} from '@angular/core';\nimport {AbstractTuiController} from '@taiga-ui/cdk';\nimport {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken<TuiTextfieldSizeDirective>(\n `[TUI_TEXTFIELD_SIZE]: tuiTextfieldSize`,\n {\n factory: () => new TuiTextfieldSizeDirective(),\n },\n);\n\n@Directive({\n selector: `[tuiTextfieldSize]`,\n providers: [\n {\n provide: TUI_TEXTFIELD_SIZE,\n useExisting: forwardRef(() => TuiTextfieldSizeDirective),\n },\n ],\n})\nexport class TuiTextfieldSizeDirective extends AbstractTuiController {\n @Input(`tuiTextfieldSize`)\n size: TuiSizeS | TuiSizeL = `l`;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\n\n@NgModule({\n declarations: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n ],\n exports: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core';\nimport {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk';\nimport {merge, NEVER, Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {\n TUI_TEXTFIELD_CLEANER,\n TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {TUI_TEXTFIELD_ICON, TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {\n TUI_TEXTFIELD_ICON_LEFT,\n TuiTextfieldIconLeftDirective,\n} from './textfield-icon-left.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>(\n `[TUI_TEXTFIELD_WATCHED_CONTROLLER]: watched textfield controller`,\n );\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n TuiDestroyService,\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TuiDestroyService,\n TUI_TEXTFIELD_CLEANER,\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n TUI_TEXTFIELD_ICON,\n TUI_TEXTFIELD_ICON_LEFT,\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n TUI_TEXTFIELD_SIZE,\n ],\n useFactory: (\n changeDetectorRef: ChangeDetectorRef,\n destroy$: Observable<void>,\n ...controllers: [\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n ]\n ) => {\n const change$ = merge(\n ...controllers.map(({change$}) => change$ || NEVER),\n ).pipe(tuiWatch(changeDetectorRef), takeUntil(destroy$));\n\n change$.subscribe();\n\n return new TuiTextfieldController(change$, ...controllers);\n },\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAYa,sBAAsB,CAAA;AAC/B,IAAA,WAAA,CACa,OAAyB,EACjB,gBAA8C,EAC9C,sBAA0D,EAC1D,aAAwC,EACxC,iBAAgD,EAChD,qBAAwD,EACxD,aAAwC,EAAA;QANhD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;QACjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAA8B;QAC9C,IAAsB,CAAA,sBAAA,GAAtB,sBAAsB,CAAoC;QAC1D,IAAa,CAAA,aAAA,GAAb,a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C,iCAAiC;wBACjC,yBAAyB;wBACzB,yBAAyB;wBACzB,6BAA6B;AAChC,qBAAA;AACJ,iBAAA,CAAA;;;MCDY,gCAAgC,GACzC,IAAI,cAAc,CACd,CAAkE,gEAAA,CAAA,EACpE;AAEO,MAAA,6BAA6B,GAAa;IACnD,iBAAiB;AACjB,IAAA;AACI,QAAA,OAAO,EAAE,gCAAgC;AACzC,QAAA,IAAI,EAAE;YACF,iBAAiB;YACjB,iBAAiB;YACjB,qBAAqB;YACrB,4BAA4B;YAC5B,kBAAkB;YAClB,uBAAuB;YACvB,2BAA2B;YAC3B,kBAAkB;AACrB,SAAA;QACD,UAAU,EAAE,CACR,iBAAoC,EACpC,QAA0B,EAC1B,GAAG,WAOF,KACD;AACA,YAAA,MAAM,OAAO,GAAG,KAAK,CACjB,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,IAAI,KAAK,CAAC,CACtD,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC;YAEzD,OAAO,CAAC,SAAS,EAAE,CAAC;YAEpB,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC,CAAC;SAC9D;AACJ,KAAA;;;AChEL;;AAEG;;;;"}
|
|
@@ -8,11 +8,11 @@ import { TUI_DEFAULT_NUMBER_FORMAT } from '@taiga-ui/core/constants';
|
|
|
8
8
|
import { DOCUMENT } from '@angular/common';
|
|
9
9
|
import { merge, identity } from 'rxjs';
|
|
10
10
|
|
|
11
|
-
const TUI_ANIMATIONS_DURATION = new InjectionToken(`Duration of all Taiga UI animations in ms`, {
|
|
11
|
+
const TUI_ANIMATIONS_DURATION = new InjectionToken(`[TUI_ANIMATIONS_DURATION]: Duration of all Taiga UI animations in ms`, {
|
|
12
12
|
factory: () => 300,
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
const TUI_ANIMATION_OPTIONS = new InjectionToken(`Options for Taiga UI animations`, {
|
|
15
|
+
const TUI_ANIMATION_OPTIONS = new InjectionToken(`[TUI_ANIMATION_OPTIONS]: Options for Taiga UI animations`, {
|
|
16
16
|
factory: () => ({
|
|
17
17
|
params: {
|
|
18
18
|
duration: inject(TUI_ANIMATIONS_DURATION),
|
|
@@ -20,11 +20,11 @@ const TUI_ANIMATION_OPTIONS = new InjectionToken(`Options for Taiga UI animation
|
|
|
20
20
|
}),
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
const TUI_ASSERT_ENABLED = new InjectionToken(`Flag to enable assertions across Taiga UI`, {
|
|
23
|
+
const TUI_ASSERT_ENABLED = new InjectionToken(`[TUI_ASSERT_ENABLED]: Flag to enable assertions across Taiga UI`, {
|
|
24
24
|
factory: () => isDevMode(),
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
const TUI_DATA_LIST_ACCESSOR = new InjectionToken(`Accessor for options`);
|
|
27
|
+
const TUI_DATA_LIST_ACCESSOR = new InjectionToken(`[TUI_DATA_LIST_ACCESSOR]: Accessor for options`);
|
|
28
28
|
function tuiAsDataListAccessor(useExisting) {
|
|
29
29
|
return {
|
|
30
30
|
provide: TUI_DATA_LIST_ACCESSOR,
|
|
@@ -32,7 +32,7 @@ function tuiAsDataListAccessor(useExisting) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const TUI_DATA_LIST_HOST = new InjectionToken(`DataList controller`);
|
|
35
|
+
const TUI_DATA_LIST_HOST = new InjectionToken(`[TUI_DATA_LIST_HOST]: DataList controller`);
|
|
36
36
|
function tuiAsDataListHost(useExisting) {
|
|
37
37
|
return {
|
|
38
38
|
provide: TUI_DATA_LIST_HOST,
|
|
@@ -40,44 +40,44 @@ function tuiAsDataListHost(useExisting) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken(`Document or ShadowRoot`);
|
|
43
|
+
const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken(`[TUI_DOCUMENT_OR_SHADOW_ROOT]: Document or ShadowRoot`);
|
|
44
44
|
|
|
45
|
-
const TUI_ELEMENT_REF = new InjectionToken(`ElementRef when you cannot use @Input for single time injection`);
|
|
45
|
+
const TUI_ELEMENT_REF = new InjectionToken(`[TUI_ELEMENT_REF]: ElementRef when you cannot use @Input for single time injection`);
|
|
46
46
|
|
|
47
|
-
const TUI_FIRST_DAY_OF_WEEK = new InjectionToken(`The first day of the week index`, {
|
|
47
|
+
const TUI_FIRST_DAY_OF_WEEK = new InjectionToken(`[TUI_FIRST_DAY_OF_WEEK]: The first day of the week index`, {
|
|
48
48
|
factory: () => 1 /* Monday */,
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
const TUI_MONTHS = new InjectionToken(`Localized months names`, {
|
|
51
|
+
const TUI_MONTHS = new InjectionToken(`[TUI_MONTHS]: Localized months names`, {
|
|
52
52
|
factory: tuiExtractI18n(`months`),
|
|
53
53
|
});
|
|
54
|
-
const TUI_CLOSE_WORD = new InjectionToken(`i18n 'close' word`, {
|
|
54
|
+
const TUI_CLOSE_WORD = new InjectionToken(`[TUI_CLOSE_WORD]: i18n 'close' word`, {
|
|
55
55
|
factory: tuiExtractI18n(`close`),
|
|
56
56
|
});
|
|
57
|
-
const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(`i18n 'Nothing found' message`, {
|
|
57
|
+
const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(`[TUI_NOTHING_FOUND_MESSAGE]: i18n 'Nothing found' message`, {
|
|
58
58
|
factory: tuiExtractI18n(`nothingFoundMessage`),
|
|
59
59
|
});
|
|
60
|
-
const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`i18n of error message`, {
|
|
60
|
+
const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`[TUI_DEFAULT_ERROR_MESSAGE]: i18n of error message`, {
|
|
61
61
|
factory: tuiExtractI18n(`defaultErrorMessage`),
|
|
62
62
|
});
|
|
63
|
-
const TUI_SPIN_TEXTS = new InjectionToken(`spin i18n texts`, {
|
|
63
|
+
const TUI_SPIN_TEXTS = new InjectionToken(`[TUI_SPIN_TEXTS]: spin i18n texts`, {
|
|
64
64
|
factory: tuiExtractI18n(`spinTexts`),
|
|
65
65
|
});
|
|
66
|
-
const TUI_SHORT_WEEK_DAYS = new InjectionToken(`calendars i18n texts`, {
|
|
66
|
+
const TUI_SHORT_WEEK_DAYS = new InjectionToken(`[TUI_SHORT_WEEK_DAYS]: calendars i18n texts`, {
|
|
67
67
|
factory: tuiExtractI18n(`shortWeekDays`),
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
const TUI_ICONS_PLACE = new InjectionToken(`Recommended paths to icons from documentation guide`, {
|
|
70
|
+
const TUI_ICONS_PLACE = new InjectionToken(`[TUI_ICONS_PLACE]: Recommended paths to icons from documentation guide`, {
|
|
71
71
|
factory: () => `assets/taiga-ui/icons`,
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
const TUI_ICONS = new InjectionToken(`A key/value dictionary of icon names and src to be defined with TuiSvgService`, {
|
|
74
|
+
const TUI_ICONS = new InjectionToken(`[TUI_ICONS]: A key/value dictionary of icon names and src to be defined with TuiSvgService`, {
|
|
75
75
|
factory: () => ({}),
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
const TUI_ICONS_PATH = new InjectionToken(`A handler to retrieve USE id for icon by name`, { factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE)) });
|
|
78
|
+
const TUI_ICONS_PATH = new InjectionToken(`[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name`, { factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE)) });
|
|
79
79
|
|
|
80
|
-
const TUI_MEDIA = new InjectionToken(`Token for media constant`, {
|
|
80
|
+
const TUI_MEDIA = new InjectionToken(`[TUI_MEDIA]: Token for media constant`, {
|
|
81
81
|
factory: () => ({
|
|
82
82
|
mobile: 768,
|
|
83
83
|
desktopSmall: 1024,
|
|
@@ -85,7 +85,7 @@ const TUI_MEDIA = new InjectionToken(`Token for media constant`, {
|
|
|
85
85
|
}),
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
-
const TUI_IS_MOBILE_RES = new InjectionToken(`Mobile resolution stream for private providers`, {
|
|
88
|
+
const TUI_IS_MOBILE_RES = new InjectionToken(`[TUI_IS_MOBILE_RES]: Mobile resolution stream for private providers`, {
|
|
89
89
|
factory: () => {
|
|
90
90
|
const windowRef = inject(WINDOW);
|
|
91
91
|
const media = inject(TUI_MEDIA);
|
|
@@ -93,7 +93,7 @@ const TUI_IS_MOBILE_RES = new InjectionToken(`Mobile resolution stream for priva
|
|
|
93
93
|
},
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
const TUI_MODE = new InjectionToken(`Mode stream for private providers`);
|
|
96
|
+
const TUI_MODE = new InjectionToken(`[TUI_MODE]: Mode stream for private providers`);
|
|
97
97
|
|
|
98
98
|
/** Default values for the notification options. */
|
|
99
99
|
const TUI_NOTIFICATION_DEFAULT_OPTIONS = {
|
|
@@ -104,7 +104,7 @@ const TUI_NOTIFICATION_DEFAULT_OPTIONS = {
|
|
|
104
104
|
hasCloseButton: true,
|
|
105
105
|
defaultAutoCloseTime: 3000,
|
|
106
106
|
};
|
|
107
|
-
const TUI_NOTIFICATION_OPTIONS = new InjectionToken(`Default parameters for notification alert component`, {
|
|
107
|
+
const TUI_NOTIFICATION_OPTIONS = new InjectionToken(`[TUI_NOTIFICATION_OPTIONS]: Default parameters for notification alert component`, {
|
|
108
108
|
factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,
|
|
109
109
|
});
|
|
110
110
|
function tuiNotificationOptionsProvider(options) {
|
|
@@ -114,11 +114,11 @@ function tuiNotificationOptionsProvider(options) {
|
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
const TUI_NUMBER_FORMAT = new InjectionToken(`Formatting configuration for displayed numbers`, {
|
|
117
|
+
const TUI_NUMBER_FORMAT = new InjectionToken(`[TUI_NUMBER_FORMAT]: Formatting configuration for displayed numbers`, {
|
|
118
118
|
factory: () => TUI_DEFAULT_NUMBER_FORMAT,
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
const TUI_OPTION_CONTENT = new InjectionToken(`Content for tuiOption component`);
|
|
121
|
+
const TUI_OPTION_CONTENT = new InjectionToken(`[TUI_OPTION_CONTENT]: Content for tuiOption component`);
|
|
122
122
|
function tuiAsOptionContent(useValue) {
|
|
123
123
|
return {
|
|
124
124
|
provide: TUI_OPTION_CONTENT,
|
|
@@ -133,7 +133,7 @@ const convertToSundayFirstWeekFormat = (weekDaysNames) => {
|
|
|
133
133
|
...weekDaysNames.slice(0, sundayIndex),
|
|
134
134
|
];
|
|
135
135
|
};
|
|
136
|
-
const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken(`Ordered calendars i18n texts`, {
|
|
136
|
+
const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken(`[TUI_ORDERED_SHORT_WEEK_DAYS]: Ordered calendars i18n texts`, {
|
|
137
137
|
factory: () => {
|
|
138
138
|
const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);
|
|
139
139
|
return inject(TUI_SHORT_WEEK_DAYS).pipe(map(convertToSundayFirstWeekFormat), map(weekDays => [
|
|
@@ -143,28 +143,28 @@ const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken(`Ordered calendars i18n t
|
|
|
143
143
|
},
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
const TUI_SANITIZER = new InjectionToken(`A custom Sanitizer to sanitize source before inlining`);
|
|
146
|
+
const TUI_SANITIZER = new InjectionToken(`[TUI_SANITIZER]: A custom Sanitizer to sanitize source before inlining`);
|
|
147
147
|
|
|
148
|
-
const TUI_SCROLL_REF = new InjectionToken(`Scrollable container`);
|
|
148
|
+
const TUI_SCROLL_REF = new InjectionToken(`[TUI_SCROLL_REF]: Scrollable container`);
|
|
149
149
|
|
|
150
|
-
const TUI_SELECTION_STREAM = new InjectionToken(`A stream of possible selection changes`, {
|
|
150
|
+
const TUI_SELECTION_STREAM = new InjectionToken(`[TUI_SELECTION_STREAM]: A stream of possible selection changes`, {
|
|
151
151
|
factory: () => {
|
|
152
152
|
const documentRef = inject(DOCUMENT);
|
|
153
153
|
return merge(tuiTypedFromEvent(documentRef, `selectionchange`), tuiTypedFromEvent(documentRef, `mouseup`), tuiTypedFromEvent(documentRef, `mousedown`).pipe(switchMapTo(tuiTypedFromEvent(documentRef, `mousemove`).pipe(takeUntil(tuiTypedFromEvent(documentRef, `mouseup`))))), tuiTypedFromEvent(documentRef, `keydown`), tuiTypedFromEvent(documentRef, `keyup`)).pipe(share());
|
|
154
154
|
},
|
|
155
155
|
});
|
|
156
156
|
|
|
157
|
-
const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken(`Transform function the contents of the loaded svg file`, { factory: () => tuiSvgLinearGradientProcessor });
|
|
157
|
+
const TUI_SVG_CONTENT_PROCESSOR = new InjectionToken(`[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file`, { factory: () => tuiSvgLinearGradientProcessor });
|
|
158
158
|
|
|
159
|
-
const TUI_SVG_SRC_PROCESSOR = new InjectionToken(`Source path processor for svg`, {
|
|
159
|
+
const TUI_SVG_SRC_PROCESSOR = new InjectionToken(`[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg`, {
|
|
160
160
|
factory: () => identity,
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
const TUI_TEXTFIELD_APPEARANCE = new InjectionToken(`Appearance for inputs`, {
|
|
163
|
+
const TUI_TEXTFIELD_APPEARANCE = new InjectionToken(`[TUI_TEXTFIELD_APPEARANCE]: Appearance for inputs`, {
|
|
164
164
|
factory: () => "textfield" /* Textfield */,
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
const TUI_TEXTFIELD_HOST = new InjectionToken(`An interface to communicate with textfield based controls`);
|
|
167
|
+
const TUI_TEXTFIELD_HOST = new InjectionToken(`[TUI_TEXTFIELD_HOST]: An interface to communicate with textfield based controls`);
|
|
168
168
|
function tuiAsTextfieldHost(useExisting) {
|
|
169
169
|
return {
|
|
170
170
|
provide: TUI_TEXTFIELD_HOST,
|
|
@@ -172,11 +172,11 @@ function tuiAsTextfieldHost(useExisting) {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
const TUI_THEME = new InjectionToken(`Theme name`, {
|
|
175
|
+
const TUI_THEME = new InjectionToken(`[TUI_THEME]: Theme name`, {
|
|
176
176
|
factory: () => `Taiga`,
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
const TUI_VALUE_ACCESSOR = new InjectionToken(`Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`);
|
|
179
|
+
const TUI_VALUE_ACCESSOR = new InjectionToken(`[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`);
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-tokens.js","sources":["../../../projects/core/tokens/animations-duration.ts","../../../projects/core/tokens/animation-options.ts","../../../projects/core/tokens/assert-enabled.ts","../../../projects/core/tokens/data-list-accessor.ts","../../../projects/core/tokens/data-list-host.ts","../../../projects/core/tokens/document-or-shadow-root.ts","../../../projects/core/tokens/element-ref.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon-place.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icons-path.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/is-mobile-resolution.ts","../../../projects/core/tokens/mode.ts","../../../projects/core/tokens/notification-options.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/option-content.ts","../../../projects/core/tokens/ordered-short-week-days.ts","../../../projects/core/tokens/sanitizer.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/svg-content-processor.ts","../../../projects/core/tokens/svg-src-processor.ts","../../../projects/core/tokens/textfield-appearance.ts","../../../projects/core/tokens/textfield-host.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/value-accessor.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n `Duration of all Taiga UI animations in ms`,\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\n\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n `Options for Taiga UI animations`,\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n `Flag to enable assertions across Taiga UI`,\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n `Accessor for options`,\n);\n\nexport function tuiAsDataListAccessor(useExisting: Type<TuiDataListAccessor>): Provider {\n return {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting,\n };\n}\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<unknown>>(\n `DataList controller`,\n);\n\nexport function tuiAsDataListHost(useExisting: Type<TuiDataListHost<unknown>>): Provider {\n return {\n provide: TUI_DATA_LIST_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n `Document or ShadowRoot`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n `ElementRef when you cannot use @Input for single time injection`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n `The first day of the week index`,\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken(`Localized months names`, {\n factory: tuiExtractI18n(`months`),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`i18n 'close' word`, {\n factory: tuiExtractI18n(`close`),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `i18n 'Nothing found' message`,\n {\n factory: tuiExtractI18n(`nothingFoundMessage`),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(`i18n of error message`, {\n factory: tuiExtractI18n(`defaultErrorMessage`),\n});\n\nexport const TUI_SPIN_TEXTS = new InjectionToken(`spin i18n texts`, {\n factory: tuiExtractI18n(`spinTexts`),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken(`calendars i18n texts`, {\n factory: tuiExtractI18n(`shortWeekDays`),\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS_PLACE: InjectionToken<string> = new InjectionToken<string>(\n `Recommended paths to icons from documentation guide`,\n {\n factory: () => `assets/taiga-ui/icons`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n `A key/value dictionary of icon names and src to be defined with TuiSvgService`,\n {\n factory: () => ({}),\n },\n);\n","import {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {tuiIconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\n\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `A handler to retrieve USE id for icon by name`,\n {factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE))},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>(`Token for media constant`, {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n});\n","import {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n `Mobile resolution stream for private providers`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return tuiTypedFromEvent(windowRef, `resize`).pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n `Mode stream for private providers`,\n );\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: ``,\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n `Default parameters for notification alert component`,\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\n `Formatting configuration for displayed numbers`,\n {\n factory: () => TUI_DEFAULT_NUMBER_FORMAT,\n },\n);\n","import {InjectionToken, Provider, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>>\n>(`Content for tuiOption component`);\n\nexport function tuiAsOptionContent(\n useValue: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>\n >,\n): Provider {\n return {\n provide: TUI_OPTION_CONTENT,\n useValue,\n };\n}\n","import {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_FIRST_DAY_OF_WEEK, TUI_SHORT_WEEK_DAYS} from './index';\n\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\nconst convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): WEEK_DAYS_NAMES => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>(`Ordered calendars i18n texts`, {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {InjectionToken, Sanitizer} from '@angular/core';\n\nexport const TUI_SANITIZER = new InjectionToken<Sanitizer>(\n `A custom Sanitizer to sanitize source before inlining`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n `Scrollable container`,\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, InjectionToken} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {share, switchMapTo, takeUntil} from 'rxjs/operators';\n\nexport const TUI_SELECTION_STREAM = new InjectionToken<Observable<unknown>>(\n `A stream of possible selection changes`,\n {\n factory: () => {\n const documentRef = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(documentRef, `selectionchange`),\n tuiTypedFromEvent(documentRef, `mouseup`),\n tuiTypedFromEvent(documentRef, `mousedown`).pipe(\n switchMapTo(\n tuiTypedFromEvent(documentRef, `mousemove`).pipe(\n takeUntil(tuiTypedFromEvent(documentRef, `mouseup`)),\n ),\n ),\n ),\n tuiTypedFromEvent(documentRef, `keydown`),\n tuiTypedFromEvent(documentRef, `keyup`),\n ).pipe(share());\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler, tuiSvgLinearGradientProcessor} from '@taiga-ui/cdk';\n\nexport const TUI_SVG_CONTENT_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `Transform function the contents of the loaded svg file`,\n {factory: () => tuiSvgLinearGradientProcessor},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\nexport const TUI_SVG_SRC_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(`Source path processor for svg`, {\n factory: () => identity,\n });\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n `Appearance for inputs`,\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n `An interface to communicate with textfield based controls`,\n);\n\nexport function tuiAsTextfieldHost(useExisting: Type<TuiTextfieldHost>): Provider {\n return {\n provide: TUI_TEXTFIELD_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>(`Theme name`, {\n factory: () => `Taiga`,\n});\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n `Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`,\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":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,EAAE,WAAW,CAAC,CAAC,IAAI,CAC5C,SAAS,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAA,OAAA,CAAS,CAAC,CAAC,CACvD,CACJ,CACJ,EACD,iBAAiB,CAAC,WAAW,EAAE,CAAA,OAAA,CAAS,CAAC,EACzC,iBAAiB,CAAC,WAAW,EAAE,CAAA,KAAA,CAAO,CAAC,CAC1C,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;KACnB;AACJ,CAAA;;ACvBQ,MAAA,yBAAyB,GAClC,IAAI,cAAc,CACd,CAAwD,sDAAA,CAAA,EACxD,EAAC,OAAO,EAAE,MAAM,6BAA6B,EAAC;;MCFzC,qBAAqB,GAC9B,IAAI,cAAc,CAA2B,+BAA+B,EAAE;AAC1E,IAAA,OAAO,EAAE,MAAM,QAAQ;AAC1B,CAAA;;MCJQ,wBAAwB,GAAG,IAAI,cAAc,CACtD,uBAAuB,EACvB;IACI,OAAO,EAAE,MAA6B,WAAA;AACzC,CAAA;;MCJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAA2D,yDAAA,CAAA,EAC7D;AAEI,SAAU,kBAAkB,CAAC,WAAmC,EAAA;IAClE,OAAO;AACH,QAAA,OAAO,EAAE,kBAAkB;QAC3B,WAAW;KACd,CAAC;AACN;;MCVa,SAAS,GAAG,IAAI,cAAc,CAAS,YAAY,EAAE;AAC9D,IAAA,OAAO,EAAE,MAAM,CAAO,KAAA,CAAA;AACzB,CAAA;;MCDY,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAgE,8DAAA,CAAA;;ACJpE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-tokens.js","sources":["../../../projects/core/tokens/animations-duration.ts","../../../projects/core/tokens/animation-options.ts","../../../projects/core/tokens/assert-enabled.ts","../../../projects/core/tokens/data-list-accessor.ts","../../../projects/core/tokens/data-list-host.ts","../../../projects/core/tokens/document-or-shadow-root.ts","../../../projects/core/tokens/element-ref.ts","../../../projects/core/tokens/first-day-of-week.ts","../../../projects/core/tokens/i18n.ts","../../../projects/core/tokens/icon-place.ts","../../../projects/core/tokens/icons.ts","../../../projects/core/tokens/icons-path.ts","../../../projects/core/tokens/media.ts","../../../projects/core/tokens/is-mobile-resolution.ts","../../../projects/core/tokens/mode.ts","../../../projects/core/tokens/notification-options.ts","../../../projects/core/tokens/number-format.ts","../../../projects/core/tokens/option-content.ts","../../../projects/core/tokens/ordered-short-week-days.ts","../../../projects/core/tokens/sanitizer.ts","../../../projects/core/tokens/scroll-ref.ts","../../../projects/core/tokens/selection-stream.ts","../../../projects/core/tokens/svg-content-processor.ts","../../../projects/core/tokens/svg-src-processor.ts","../../../projects/core/tokens/textfield-appearance.ts","../../../projects/core/tokens/textfield-host.ts","../../../projects/core/tokens/theme.ts","../../../projects/core/tokens/value-accessor.ts","../../../projects/core/tokens/taiga-ui-core-tokens.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\n\nexport const TUI_ANIMATIONS_DURATION = new InjectionToken<number>(\n `[TUI_ANIMATIONS_DURATION]: Duration of all Taiga UI animations in ms`,\n {\n factory: () => 300,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {inject, InjectionToken} from '@angular/core';\n\nimport {TUI_ANIMATIONS_DURATION} from './animations-duration';\n\nexport const TUI_ANIMATION_OPTIONS = new InjectionToken<AnimationOptions>(\n `[TUI_ANIMATION_OPTIONS]: Options for Taiga UI animations`,\n {\n factory: () => ({\n params: {\n duration: inject(TUI_ANIMATIONS_DURATION),\n },\n }),\n },\n);\n","import {InjectionToken, isDevMode} from '@angular/core';\n\nexport const TUI_ASSERT_ENABLED = new InjectionToken(\n `[TUI_ASSERT_ENABLED]: Flag to enable assertions across Taiga UI`,\n {\n factory: () => isDevMode(),\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListAccessor} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_ACCESSOR = new InjectionToken<TuiDataListAccessor>(\n `[TUI_DATA_LIST_ACCESSOR]: Accessor for options`,\n);\n\nexport function tuiAsDataListAccessor(useExisting: Type<TuiDataListAccessor>): Provider {\n return {\n provide: TUI_DATA_LIST_ACCESSOR,\n useExisting,\n };\n}\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiDataListHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_DATA_LIST_HOST = new InjectionToken<TuiDataListHost<unknown>>(\n `[TUI_DATA_LIST_HOST]: DataList controller`,\n);\n\nexport function tuiAsDataListHost(useExisting: Type<TuiDataListHost<unknown>>): Provider {\n return {\n provide: TUI_DATA_LIST_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_DOCUMENT_OR_SHADOW_ROOT = new InjectionToken<DocumentOrShadowRoot>(\n `[TUI_DOCUMENT_OR_SHADOW_ROOT]: Document or ShadowRoot`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_ELEMENT_REF = new InjectionToken<ElementRef>(\n `[TUI_ELEMENT_REF]: ElementRef when you cannot use @Input for single time injection`,\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiDayOfWeek} from '@taiga-ui/cdk';\n\nexport const TUI_FIRST_DAY_OF_WEEK = new InjectionToken<TuiDayOfWeek>(\n `[TUI_FIRST_DAY_OF_WEEK]: The first day of the week index`,\n {\n factory: () => TuiDayOfWeek.Monday,\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {tuiExtractI18n} from '@taiga-ui/i18n';\n\nexport const TUI_MONTHS = new InjectionToken(`[TUI_MONTHS]: Localized months names`, {\n factory: tuiExtractI18n(`months`),\n});\n\nexport const TUI_CLOSE_WORD = new InjectionToken(`[TUI_CLOSE_WORD]: i18n 'close' word`, {\n factory: tuiExtractI18n(`close`),\n});\n\nexport const TUI_NOTHING_FOUND_MESSAGE = new InjectionToken(\n `[TUI_NOTHING_FOUND_MESSAGE]: i18n 'Nothing found' message`,\n {\n factory: tuiExtractI18n(`nothingFoundMessage`),\n },\n);\n\nexport const TUI_DEFAULT_ERROR_MESSAGE = new InjectionToken(\n `[TUI_DEFAULT_ERROR_MESSAGE]: i18n of error message`,\n {\n factory: tuiExtractI18n(`defaultErrorMessage`),\n },\n);\n\nexport const TUI_SPIN_TEXTS = new InjectionToken(`[TUI_SPIN_TEXTS]: spin i18n texts`, {\n factory: tuiExtractI18n(`spinTexts`),\n});\n\nexport const TUI_SHORT_WEEK_DAYS = new InjectionToken(\n `[TUI_SHORT_WEEK_DAYS]: calendars i18n texts`,\n {\n factory: tuiExtractI18n(`shortWeekDays`),\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS_PLACE: InjectionToken<string> = new InjectionToken<string>(\n `[TUI_ICONS_PLACE]: Recommended paths to icons from documentation guide`,\n {\n factory: () => `assets/taiga-ui/icons`,\n },\n);\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_ICONS = new InjectionToken<Record<string, string>>(\n `[TUI_ICONS]: A key/value dictionary of icon names and src to be defined with TuiSvgService`,\n {\n factory: () => ({}),\n },\n);\n","import {inject, InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {tuiIconsPathFactory} from '@taiga-ui/core/utils';\n\nimport {TUI_ICONS_PLACE} from './icon-place';\n\nexport const TUI_ICONS_PATH: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `[TUI_ICONS_PATH]: A handler to retrieve USE id for icon by name`,\n {factory: () => tuiIconsPathFactory(inject(TUI_ICONS_PLACE))},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiMedia} from '@taiga-ui/core/interfaces';\n\nexport const TUI_MEDIA = new InjectionToken<TuiMedia>(\n `[TUI_MEDIA]: Token for media constant`,\n {\n factory: () => ({\n mobile: 768,\n desktopSmall: 1024,\n desktopLarge: 1280,\n }),\n },\n);\n","import {inject, InjectionToken, NgZone} from '@angular/core';\nimport {WINDOW} from '@ng-web-apis/common';\nimport {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk';\nimport {tuiIsMobile} from '@taiga-ui/core/utils';\nimport {Observable} from 'rxjs';\nimport {distinctUntilChanged, map, share, startWith} from 'rxjs/operators';\n\nimport {TUI_MEDIA} from './media';\n\nexport const TUI_IS_MOBILE_RES = new InjectionToken<Observable<boolean>>(\n `[TUI_IS_MOBILE_RES]: Mobile resolution stream for private providers`,\n {\n factory: () => {\n const windowRef = inject(WINDOW);\n const media = inject(TUI_MEDIA);\n\n return tuiTypedFromEvent(windowRef, `resize`).pipe(\n share(),\n startWith(null),\n map(() => tuiIsMobile(windowRef, media)),\n distinctUntilChanged(),\n tuiZoneOptimized(inject(NgZone)),\n );\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiBrightness} from '@taiga-ui/core/types';\nimport {Observable} from 'rxjs';\n\nexport const TUI_MODE: InjectionToken<Observable<TuiBrightness | null>> =\n new InjectionToken<Observable<TuiBrightness | null>>(\n `[TUI_MODE]: Mode stream for private providers`,\n );\n","import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiNotification} from '@taiga-ui/core/enums';\nimport {TuiAlertOptions} from '@taiga-ui/core/interfaces';\n\nexport interface TuiNotificationDefaultOptions\n extends Omit<TuiAlertOptions<unknown>, 'data'> {\n readonly defaultAutoCloseTime: number;\n}\n\n/** Default values for the notification options. */\nexport const TUI_NOTIFICATION_DEFAULT_OPTIONS: TuiNotificationDefaultOptions = {\n autoClose: true,\n label: ``,\n status: TuiNotification.Info,\n hasIcon: true,\n hasCloseButton: true,\n defaultAutoCloseTime: 3000,\n};\n\nexport const TUI_NOTIFICATION_OPTIONS = new InjectionToken<TuiNotificationDefaultOptions>(\n `[TUI_NOTIFICATION_OPTIONS]: Default parameters for notification alert component`,\n {\n factory: () => TUI_NOTIFICATION_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiNotificationOptionsProvider(\n options: Partial<TuiNotificationDefaultOptions>,\n): ValueProvider {\n return {\n provide: TUI_NOTIFICATION_OPTIONS,\n useValue: {...TUI_NOTIFICATION_DEFAULT_OPTIONS, ...options},\n };\n}\n","import {InjectionToken} from '@angular/core';\nimport {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants';\nimport {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces';\n\nexport const TUI_NUMBER_FORMAT = new InjectionToken<TuiNumberFormatSettings>(\n `[TUI_NUMBER_FORMAT]: Formatting configuration for displayed numbers`,\n {\n factory: () => TUI_DEFAULT_NUMBER_FORMAT,\n },\n);\n","import {InjectionToken, Provider, TemplateRef} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport const TUI_OPTION_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>>\n>(`[TUI_OPTION_CONTENT]: Content for tuiOption component`);\n\nexport function tuiAsOptionContent(\n useValue: PolymorpheusContent<\n TuiContextWithImplicit<TemplateRef<Record<string, unknown>>>\n >,\n): Provider {\n return {\n provide: TUI_OPTION_CONTENT,\n useValue,\n };\n}\n","import {inject, InjectionToken} from '@angular/core';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TUI_FIRST_DAY_OF_WEEK, TUI_SHORT_WEEK_DAYS} from './index';\n\nexport type WEEK_DAYS_NAMES = [string, string, string, string, string, string, string];\n\nconst convertToSundayFirstWeekFormat = (\n weekDaysNames: WEEK_DAYS_NAMES,\n): WEEK_DAYS_NAMES => {\n const sundayIndex = weekDaysNames.length - 1;\n\n return [\n weekDaysNames[sundayIndex],\n ...weekDaysNames.slice(0, sundayIndex),\n ] as WEEK_DAYS_NAMES;\n};\n\nexport const TUI_ORDERED_SHORT_WEEK_DAYS = new InjectionToken<\n Observable<WEEK_DAYS_NAMES>\n>(`[TUI_ORDERED_SHORT_WEEK_DAYS]: Ordered calendars i18n texts`, {\n factory: () => {\n const firstDayOfWeekIndex = inject(TUI_FIRST_DAY_OF_WEEK);\n\n return inject(TUI_SHORT_WEEK_DAYS).pipe(\n map(convertToSundayFirstWeekFormat),\n map(\n weekDays =>\n [\n ...weekDays.slice(firstDayOfWeekIndex),\n ...weekDays.slice(0, firstDayOfWeekIndex),\n ] as WEEK_DAYS_NAMES,\n ),\n );\n },\n});\n","import {InjectionToken, Sanitizer} from '@angular/core';\n\nexport const TUI_SANITIZER = new InjectionToken<Sanitizer>(\n `[TUI_SANITIZER]: A custom Sanitizer to sanitize source before inlining`,\n);\n","import {ElementRef, InjectionToken} from '@angular/core';\n\nexport const TUI_SCROLL_REF = new InjectionToken<ElementRef<HTMLElement>>(\n `[TUI_SCROLL_REF]: Scrollable container`,\n);\n","import {DOCUMENT} from '@angular/common';\nimport {inject, InjectionToken} from '@angular/core';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk';\nimport {merge, Observable} from 'rxjs';\nimport {share, switchMapTo, takeUntil} from 'rxjs/operators';\n\nexport const TUI_SELECTION_STREAM = new InjectionToken<Observable<unknown>>(\n `[TUI_SELECTION_STREAM]: A stream of possible selection changes`,\n {\n factory: () => {\n const documentRef = inject(DOCUMENT);\n\n return merge(\n tuiTypedFromEvent(documentRef, `selectionchange`),\n tuiTypedFromEvent(documentRef, `mouseup`),\n tuiTypedFromEvent(documentRef, `mousedown`).pipe(\n switchMapTo(\n tuiTypedFromEvent(documentRef, `mousemove`).pipe(\n takeUntil(tuiTypedFromEvent(documentRef, `mouseup`)),\n ),\n ),\n ),\n tuiTypedFromEvent(documentRef, `keydown`),\n tuiTypedFromEvent(documentRef, `keyup`),\n ).pipe(share());\n },\n },\n);\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler, tuiSvgLinearGradientProcessor} from '@taiga-ui/cdk';\n\nexport const TUI_SVG_CONTENT_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `[TUI_SVG_CONTENT_PROCESSOR]: Transform function the contents of the loaded svg file`,\n {factory: () => tuiSvgLinearGradientProcessor},\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiStringHandler} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\nexport const TUI_SVG_SRC_PROCESSOR: InjectionToken<TuiStringHandler<string>> =\n new InjectionToken<TuiStringHandler<string>>(\n `[TUI_SVG_SRC_PROCESSOR]: Source path processor for svg`,\n {\n factory: () => identity,\n },\n );\n","import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\n\nexport const TUI_TEXTFIELD_APPEARANCE = new InjectionToken<string>(\n `[TUI_TEXTFIELD_APPEARANCE]: Appearance for inputs`,\n {\n factory: () => TuiAppearance.Textfield,\n },\n);\n","import {InjectionToken, Provider, Type} from '@angular/core';\nimport {TuiTextfieldHost} from '@taiga-ui/core/interfaces';\n\nexport const TUI_TEXTFIELD_HOST = new InjectionToken<TuiTextfieldHost>(\n `[TUI_TEXTFIELD_HOST]: An interface to communicate with textfield based controls`,\n);\n\nexport function tuiAsTextfieldHost(useExisting: Type<TuiTextfieldHost>): Provider {\n return {\n provide: TUI_TEXTFIELD_HOST,\n useExisting,\n };\n}\n","import {InjectionToken} from '@angular/core';\n\nexport const TUI_THEME = new InjectionToken<string>(`[TUI_THEME]: Theme name`, {\n factory: () => `Taiga`,\n});\n","import {InjectionToken} from '@angular/core';\nimport {ControlValueAccessor} from '@angular/forms';\n\nexport const TUI_VALUE_ACCESSOR = new InjectionToken<ControlValueAccessor>(\n `[TUI_VALUE_ACCESSOR]: Buffer token to pass NG_VALUE_ACCESSOR to a different Injector`,\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAEa,uBAAuB,GAAG,IAAI,cAAc,CACrD,sEAAsE,EACtE;AACI,IAAA,OAAO,EAAE,MAAM,GAAG;AACrB,CAAA;;MCDQ,qBAAqB,GAAG,IAAI,cAAc,CACnD,0DAA0D,EAC1D;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,EACzC,iBAAiB,CAAC,WAAW,EAAE,CAAA,KAAA,CAAO,CAAC,CAC1C,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;KACnB;AACJ,CAAA;;ACvBQ,MAAA,yBAAyB,GAClC,IAAI,cAAc,CACd,CAAqF,mFAAA,CAAA,EACrF,EAAC,OAAO,EAAE,MAAM,6BAA6B,EAAC;;MCFzC,qBAAqB,GAC9B,IAAI,cAAc,CACd,wDAAwD,EACxD;AACI,IAAA,OAAO,EAAE,MAAM,QAAQ;AAC1B,CAAA;;MCNI,wBAAwB,GAAG,IAAI,cAAc,CACtD,mDAAmD,EACnD;IACI,OAAO,EAAE,MAA6B,WAAA;AACzC,CAAA;;MCJQ,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAiF,+EAAA,CAAA,EACnF;AAEI,SAAU,kBAAkB,CAAC,WAAmC,EAAA;IAClE,OAAO;AACH,QAAA,OAAO,EAAE,kBAAkB;QAC3B,WAAW;KACd,CAAC;AACN;;MCVa,SAAS,GAAG,IAAI,cAAc,CAAS,yBAAyB,EAAE;AAC3E,IAAA,OAAO,EAAE,MAAM,CAAO,KAAA,CAAA;AACzB,CAAA;;MCDY,kBAAkB,GAAG,IAAI,cAAc,CAChD,CAAsF,oFAAA,CAAA;;ACJ1F;;AAEG;;;;"}
|
|
@@ -85,7 +85,7 @@ function tuiGetWordRange(currentRange) {
|
|
|
85
85
|
if (!ownerDocument) {
|
|
86
86
|
return range;
|
|
87
87
|
}
|
|
88
|
-
const treeWalker = ownerDocument.createTreeWalker(ownerDocument.body, NodeFilter.SHOW_TEXT, svgNodeFilter
|
|
88
|
+
const treeWalker = ownerDocument.createTreeWalker(ownerDocument.body, NodeFilter.SHOW_TEXT, svgNodeFilter);
|
|
89
89
|
treeWalker.currentNode = startContainer;
|
|
90
90
|
do {
|
|
91
91
|
const container = treeWalker.currentNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-core-utils-dom.js","sources":["../../../projects/core/utils/dom/check-fixed-position.ts","../../../projects/core/utils/dom/get-safe-area-size.ts","../../../projects/core/utils/dom/get-screen-width.ts","../../../projects/core/utils/dom/get-viewport-height.ts","../../../projects/core/utils/dom/get-viewport-width.ts","../../../projects/core/utils/dom/get-word-range.ts","../../../projects/core/utils/dom/process-icon.ts","../../../projects/core/utils/dom/taiga-ui-core-utils-dom.ts"],"sourcesContent":["export function tuiCheckFixedPosition(element: HTMLElement | null): boolean {\n if (!element || typeof getComputedStyle === `undefined`) {\n return false;\n }\n\n const style = getComputedStyle(element);\n\n return (\n style.getPropertyValue(`position`) === `fixed` ||\n tuiCheckFixedPosition(element.parentElement)\n );\n}\n","/**\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function tuiGetSafeAreaSize(): number {\n if (!CSS.supports(`padding-top: env(safe-area-inset-top)`)) {\n return 0;\n }\n\n const div = document.createElement(`div`);\n\n div.style.paddingTop = `env(safe-area-inset-top)`;\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop!, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","export function tuiGetScreenWidth(documentRef: Document): number {\n return Math.max(\n documentRef.documentElement.clientWidth,\n documentRef.defaultView ? documentRef.defaultView.innerWidth : 0,\n );\n}\n","/**\n * @description:\n * Cross-browser @media (height)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (height) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientHeight\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (height) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportHeight({document, innerHeight}: Window): number {\n return Math.max(document.documentElement.clientHeight || 0, innerHeight || 0);\n}\n","/**\n * @description:\n * Cross-browser @media (width)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (width) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientWidth\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (width) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportWidth({document, innerWidth}: Window): number {\n return Math.max(document.documentElement.clientWidth || 0, innerWidth || 0);\n}\n","import {CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE, svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * Creates a cloned range with its boundaries set at word boundaries\n *\n * @param currentRange a range to clone\n * @return modified range\n */\nexport function tuiGetWordRange(currentRange: Range): Range {\n const range = currentRange.cloneRange();\n const {startContainer, startOffset, endContainer, endOffset} = range;\n const {ownerDocument} = startContainer;\n\n if (!ownerDocument) {\n return range;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n ownerDocument.body,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n treeWalker.currentNode = startContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === startContainer\n ? textContent.slice(0, Math.max(0, startOffset + 1))\n : textContent;\n const offset =\n Math.max(\n content.lastIndexOf(` `),\n content.lastIndexOf(CHAR_NO_BREAK_SPACE),\n content.lastIndexOf(CHAR_ZERO_WIDTH_SPACE),\n ) + 1;\n\n range.setStart(container, 0);\n\n if (offset) {\n range.setStart(container, offset);\n break;\n }\n } while (treeWalker.previousNode());\n\n treeWalker.currentNode = endContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === endContainer ? textContent.slice(endOffset + 1) : textContent;\n const offset = [\n content.indexOf(` `),\n content.indexOf(CHAR_NO_BREAK_SPACE),\n content.indexOf(CHAR_ZERO_WIDTH_SPACE),\n ].reduce(\n (result, item) =>\n result === -1 || item === -1\n ? Math.max(result, item)\n : Math.min(result, item),\n -1,\n );\n\n range.setEnd(container, textContent.length);\n\n if (offset !== -1) {\n range.setEnd(container, offset + textContent.length - content.length);\n break;\n }\n } while (treeWalker.nextNode());\n\n return range;\n}\n","const WIDTH_SEARCH = `width=\"`;\nconst HEIGHT_SEARCH = `height=\"`;\nconst START = `<svg`;\n\nexport function tuiProcessIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf(`>`)));\n\n if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf(`\"`, widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf(`\"`, heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes(`%`) ||\n heightString.includes(`%`) ||\n widthString.includes(`em`) ||\n heightString.includes(`em`)\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAM,SAAU,qBAAqB,CAAC,OAA2B,EAAA;AAC7D,IAAA,IAAI,CAAC,OAAO,IAAI,OAAO,gBAAgB,KAAK,WAAW,EAAE;AACrD,QAAA,OAAO,KAAK,CAAC;AAChB,KAAA;AAED,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAExC,QACI,KAAK,CAAC,gBAAgB,CAAC,CAAU,QAAA,CAAA,CAAC,KAAK,CAAO,KAAA,CAAA;AAC9C,QAAA,qBAAqB,CAAC,OAAO,CAAC,aAAa,CAAC,EAC9C;AACN;;ACXA;;;;AAIG;SACa,kBAAkB,GAAA;AAC9B,IAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA,qCAAA,CAAuC,CAAC,EAAE;AACxD,QAAA,OAAO,CAAC,CAAC;AACZ,KAAA;IAED,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA,GAAA,CAAK,CAAC,CAAC;AAE1C,IAAA,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,0BAA0B,CAAC;AAClD,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,IAAA,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,UAAW,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;AAEjF,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,IAAA,OAAO,YAAY,CAAC;AACxB;;ACpBM,SAAU,iBAAiB,CAAC,WAAqB,EAAA;IACnD,OAAO,IAAI,CAAC,GAAG,CACX,WAAW,CAAC,eAAe,CAAC,WAAW,EACvC,WAAW,CAAC,WAAW,GA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AA,OAAA,EAAU,IAAI,CAAA,kEAAA,EACjB,KAAK,GAAG,EACZ,CAAA,YAAA,EACI,MAAM,GAAG,EACb,CAAA,oCAAA,EAAuC,KAAK,CAAA,CAAA,EAAI,MAAM,CAAA,UAAA,EAAa,CAAC,KAAK,GAAG,CAAC,CACzE,KAAA,EAAA,CAAC,MAAM,GAAG,CACd,CAAA,EAAA,EAAK,GAAG,CAAA,gBAAA,CAAkB,CAAC;AAC/B;;ACrDA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-core-utils-dom.js","sources":["../../../projects/core/utils/dom/check-fixed-position.ts","../../../projects/core/utils/dom/get-safe-area-size.ts","../../../projects/core/utils/dom/get-screen-width.ts","../../../projects/core/utils/dom/get-viewport-height.ts","../../../projects/core/utils/dom/get-viewport-width.ts","../../../projects/core/utils/dom/get-word-range.ts","../../../projects/core/utils/dom/process-icon.ts","../../../projects/core/utils/dom/taiga-ui-core-utils-dom.ts"],"sourcesContent":["export function tuiCheckFixedPosition(element: HTMLElement | null): boolean {\n if (!element || typeof getComputedStyle === `undefined`) {\n return false;\n }\n\n const style = getComputedStyle(element);\n\n return (\n style.getPropertyValue(`position`) === `fixed` ||\n tuiCheckFixedPosition(element.parentElement)\n );\n}\n","/**\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function tuiGetSafeAreaSize(): number {\n if (!CSS.supports(`padding-top: env(safe-area-inset-top)`)) {\n return 0;\n }\n\n const div = document.createElement(`div`);\n\n div.style.paddingTop = `env(safe-area-inset-top)`;\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop!, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","export function tuiGetScreenWidth(documentRef: Document): number {\n return Math.max(\n documentRef.documentElement.clientWidth,\n documentRef.defaultView ? documentRef.defaultView.innerWidth : 0,\n );\n}\n","/**\n * @description:\n * Cross-browser @media (height)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (height) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientHeight\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (height) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportHeight({document, innerHeight}: Window): number {\n return Math.max(document.documentElement.clientHeight || 0, innerHeight || 0);\n}\n","/**\n * @description:\n * Cross-browser @media (width)\n *\n * 1. window.innerWidth\n * 1.1. gets CSS viewport @media (width) which include scrollbars\n * 1.2. initial-scale and zoom variations may cause mobile values to\n * wrongly scale down to what PPK calls the visual\n * viewport and be smaller than the @media values\n * 1.3. zoom may cause values to be 1px off due to native rounding\n *\n * 2. document.documentElement.clientWidth\n * 2.1. equals CSS viewport width minus scrollbar width\n * 2.2. matches @media (width) when there is no scrollbar\n * 2.3. available cross-browser\n * 2.4. inaccurate if doctype is missing\n */\nexport function tuiGetViewportWidth({document, innerWidth}: Window): number {\n return Math.max(document.documentElement.clientWidth || 0, innerWidth || 0);\n}\n","import {CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE, svgNodeFilter} from '@taiga-ui/cdk';\n\n/**\n * Creates a cloned range with its boundaries set at word boundaries\n *\n * @param currentRange a range to clone\n * @return modified range\n */\nexport function tuiGetWordRange(currentRange: Range): Range {\n const range = currentRange.cloneRange();\n const {startContainer, startOffset, endContainer, endOffset} = range;\n const {ownerDocument} = startContainer;\n\n if (!ownerDocument) {\n return range;\n }\n\n const treeWalker = ownerDocument.createTreeWalker(\n ownerDocument.body,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n treeWalker.currentNode = startContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === startContainer\n ? textContent.slice(0, Math.max(0, startOffset + 1))\n : textContent;\n const offset =\n Math.max(\n content.lastIndexOf(` `),\n content.lastIndexOf(CHAR_NO_BREAK_SPACE),\n content.lastIndexOf(CHAR_ZERO_WIDTH_SPACE),\n ) + 1;\n\n range.setStart(container, 0);\n\n if (offset) {\n range.setStart(container, offset);\n break;\n }\n } while (treeWalker.previousNode());\n\n treeWalker.currentNode = endContainer;\n\n do {\n const container = treeWalker.currentNode;\n const textContent = container.textContent || ``;\n const content =\n container === endContainer ? textContent.slice(endOffset + 1) : textContent;\n const offset = [\n content.indexOf(` `),\n content.indexOf(CHAR_NO_BREAK_SPACE),\n content.indexOf(CHAR_ZERO_WIDTH_SPACE),\n ].reduce(\n (result, item) =>\n result === -1 || item === -1\n ? Math.max(result, item)\n : Math.min(result, item),\n -1,\n );\n\n range.setEnd(container, textContent.length);\n\n if (offset !== -1) {\n range.setEnd(container, offset + textContent.length - content.length);\n break;\n }\n } while (treeWalker.nextNode());\n\n return range;\n}\n","const WIDTH_SEARCH = `width=\"`;\nconst HEIGHT_SEARCH = `height=\"`;\nconst START = `<svg`;\n\nexport function tuiProcessIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf(`>`)));\n\n if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf(`\"`, widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf(`\"`, heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes(`%`) ||\n heightString.includes(`%`) ||\n widthString.includes(`em`) ||\n heightString.includes(`em`)\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAM,SAAU,qBAAqB,CAAC,OAA2B,EAAA;AAC7D,IAAA,IAAI,CAAC,OAAO,IAAI,OAAO,gBAAgB,KAAK,WAAW,EAAE;AACrD,QAAA,OAAO,KAAK,CAAC;AAChB,KAAA;AAED,IAAA,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAExC,QACI,KAAK,CAAC,gBAAgB,CAAC,CAAU,QAAA,CAAA,CAAC,KAAK,CAAO,KAAA,CAAA;AAC9C,QAAA,qBAAqB,CAAC,OAAO,CAAC,aAAa,CAAC,EAC9C;AACN;;ACXA;;;;AAIG;SACa,kBAAkB,GAAA;AAC9B,IAAA,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA,qCAAA,CAAuC,CAAC,EAAE;AACxD,QAAA,OAAO,CAAC,CAAC;AACZ,KAAA;IAED,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAA,GAAA,CAAK,CAAC,CAAC;AAE1C,IAAA,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,0BAA0B,CAAC;AAClD,IAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAE/B,IAAA,MAAM,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AI,CAAC;AAC1B,QAAA,YAAY,CAAC,QAAQ,CAAC,CAAA,EAAA,CAAI,CAAC,EAC7B;QACE,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAY,SAAA,EAAA,IAAI,CAAG,CAAA,CAAA,CAAC,CAAC;AAClD,KAAA;IAED,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;IAE1C,OAAO,CAAA,OAAA,EAAU,IAAI,CAAA,kEAAA,EACjB,KAAK,GAAG,EACZ,CAAA,YAAA,EACI,MAAM,GAAG,EACb,CAAA,oCAAA,EAAuC,KAAK,CAAA,CAAA,EAAI,MAAM,CAAA,UAAA,EAAa,CAAC,KAAK,GAAG,CAAC,CACzE,KAAA,EAAA,CAAC,MAAM,GAAG,CACd,CAAA,EAAA,EAAK,GAAG,CAAA,gBAAA,CAAkB,CAAC;AAC/B;;ACrDA;;AAEG;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TuiDialog } from '@taiga-ui/cdk';
|
|
1
2
|
import { TuiDialogSize } from '@taiga-ui/core/types';
|
|
2
3
|
import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
|
|
3
4
|
/**
|
|
@@ -17,6 +18,6 @@ export interface TuiDialogOptions<I> {
|
|
|
17
18
|
readonly closeable: boolean;
|
|
18
19
|
readonly dismissible: boolean;
|
|
19
20
|
readonly label: string;
|
|
20
|
-
readonly header: PolymorpheusContent
|
|
21
|
+
readonly header: PolymorpheusContent<TuiDialog<TuiDialogOptions<I>, any>>;
|
|
21
22
|
readonly data: I;
|
|
22
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"repository": "https://github.com/tinkoff/taiga-ui",
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@taiga-ui/i18n": "^3.
|
|
18
|
+
"@taiga-ui/i18n": "^3.2.0",
|
|
19
19
|
"tslib": "^2.0.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@angular/router": ">=9.0.0",
|
|
28
28
|
"@ng-web-apis/common": ">=2.0.0",
|
|
29
29
|
"@ng-web-apis/mutation-observer": ">=2.0.0",
|
|
30
|
-
"@taiga-ui/cdk": ">=3.
|
|
31
|
-
"@taiga-ui/i18n": ">=3.
|
|
30
|
+
"@taiga-ui/cdk": ">=3.2.0",
|
|
31
|
+
"@taiga-ui/i18n": ">=3.2.0",
|
|
32
32
|
"@tinkoff/ng-event-plugins": ">=3.0.0",
|
|
33
33
|
"@tinkoff/ng-polymorpheus": ">=4.0.0",
|
|
34
34
|
"rxjs": ">=6.0.0"
|
package/styles/mixins/text.less
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@font-fallback: -apple-system, 'BlinkMacSystemFont', system-ui, 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif;
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
// Deprecated
|
|
4
|
+
// Deprecated TODO 4.0 delete variables --tui-heading-font and --tui-text-font
|
|
5
5
|
--tui-heading-font: 'Manrope', @font-fallback;
|
|
6
6
|
--tui-text-font: 'Manrope', @font-fallback;
|
|
7
7
|
// Fonts
|