@taiga-ui/legacy 4.52.0-canary.c107f6a → 4.52.0-canary.c91900a
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 -1
- package/components/dialog/dialog.component.d.ts +3 -4
- package/components/dialog/dialog.directive.d.ts +4 -3
- package/components/dialog/dialog.interfaces.d.ts +3 -4
- package/components/dialog/dialog.service.d.ts +5 -2
- package/components/dialog/dialog.tokens.d.ts +1 -3
- package/components/index.d.ts +1 -17
- package/components/mobile-dialog/index.d.ts +3 -0
- package/components/mobile-dialog/mobile-dialog.component.d.ts +10 -0
- package/components/mobile-dialog/mobile-dialog.options.d.ts +10 -0
- package/components/mobile-dialog/mobile-dialog.service.d.ts +14 -0
- package/components/pdf-viewer/pdf-viewer.component.d.ts +2 -2
- package/components/pdf-viewer/pdf-viewer.directive.d.ts +4 -3
- package/components/pdf-viewer/pdf-viewer.options.d.ts +1 -3
- package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -3
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +28 -20
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +62 -0
- package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +27 -20
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components.mjs +1 -17
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy.mjs +0 -4
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/package.json +9 -110
- package/classes/abstract-native-select.d.ts +0 -22
- package/classes/abstract-textfield-host.d.ts +0 -19
- package/classes/control.d.ts +0 -60
- package/classes/controller.d.ts +0 -9
- package/classes/index.d.ts +0 -9
- package/classes/interactive.d.ts +0 -34
- package/classes/multiple-control.d.ts +0 -11
- package/classes/named-day.d.ts +0 -11
- package/classes/nullable-control.d.ts +0 -10
- package/classes/stringifiable-item.d.ts +0 -11
- package/components/arrow/arrow.component.d.ts +0 -17
- package/components/arrow/arrow.options.d.ts +0 -19
- package/components/arrow/arrow.providers.d.ts +0 -23
- package/components/arrow/index.d.ts +0 -3
- package/components/input/index.d.ts +0 -3
- package/components/input/input.component.d.ts +0 -32
- package/components/input/input.directive.d.ts +0 -12
- package/components/input/input.module.d.ts +0 -16
- package/components/input-date-range/index.d.ts +0 -3
- package/components/input-date-range/input-date-range.component.d.ts +0 -66
- package/components/input-date-range/input-date-range.directive.d.ts +0 -16
- package/components/input-date-range/input-date-range.module.d.ts +0 -21
- package/components/input-date-time/index.d.ts +0 -3
- package/components/input-date-time/input-date-time.component.d.ts +0 -87
- package/components/input-date-time/input-date-time.directive.d.ts +0 -17
- package/components/input-date-time/input-date-time.module.d.ts +0 -23
- package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -13
- package/components/input-month-range/index.d.ts +0 -3
- package/components/input-month-range/input-month-range.component.d.ts +0 -38
- package/components/input-month-range/input-month-range.directive.d.ts +0 -23
- package/components/input-month-range/input-month-range.module.d.ts +0 -18
- package/components/input-number/index.d.ts +0 -4
- package/components/input-number/input-number.component.d.ts +0 -62
- package/components/input-number/input-number.directive.d.ts +0 -16
- package/components/input-number/input-number.module.d.ts +0 -18
- package/components/input-number/input-number.options.d.ts +0 -29
- package/components/input-range/index.d.ts +0 -2
- package/components/input-range/input-range.component.d.ts +0 -56
- package/components/input-range/input-range.module.d.ts +0 -19
- package/components/input-slider/index.d.ts +0 -2
- package/components/input-slider/input-slider.component.d.ts +0 -42
- package/components/input-slider/input-slider.module.d.ts +0 -18
- package/components/input-tag/index.d.ts +0 -3
- package/components/input-tag/input-tag.component.d.ts +0 -103
- package/components/input-tag/input-tag.module.d.ts +0 -22
- package/components/input-tag/input-tag.options.d.ts +0 -27
- package/components/multi-select/hide-selected.pipe.d.ts +0 -11
- package/components/multi-select/index.d.ts +0 -10
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -23
- package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
- package/components/multi-select/multi-select.component.d.ts +0 -71
- package/components/multi-select/multi-select.directive.d.ts +0 -14
- package/components/multi-select/multi-select.module.d.ts +0 -30
- package/components/multi-select/multi-select.options.d.ts +0 -14
- package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
- package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
- package/components/multi-select-option/index.d.ts +0 -2
- package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
- package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
- package/components/primitive-textfield/index.d.ts +0 -7
- package/components/primitive-textfield/primitive-textfield-options.d.ts +0 -21
- package/components/primitive-textfield/primitive-textfield-types.d.ts +0 -11
- package/components/primitive-textfield/primitive-textfield.component.d.ts +0 -73
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +0 -14
- package/components/primitive-textfield/primitive-textfield.module.d.ts +0 -21
- package/components/primitive-textfield/textfield/textfield.component.d.ts +0 -13
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +0 -22
- package/components/select/index.d.ts +0 -6
- package/components/select/native-select/native-select-group.component.d.ts +0 -17
- package/components/select/native-select/native-select.component.d.ts +0 -16
- package/components/select/select.component.d.ts +0 -45
- package/components/select/select.directive.d.ts +0 -16
- package/components/select/select.module.d.ts +0 -24
- package/components/select/select.options.d.ts +0 -25
- package/components/select-option/index.d.ts +0 -2
- package/components/select-option/select-option.component.d.ts +0 -27
- package/components/select-option/select-option.module.d.ts +0 -10
- package/components/tag/index.d.ts +0 -3
- package/components/tag/tag.component.d.ts +0 -44
- package/components/tag/tag.module.d.ts +0 -16
- package/components/tag/tag.options.d.ts +0 -27
- package/components/textarea/index.d.ts +0 -3
- package/components/textarea/textarea.component.d.ts +0 -54
- package/components/textarea/textarea.directive.d.ts +0 -12
- package/components/textarea/textarea.module.d.ts +0 -21
- package/components/tooltip/index.d.ts +0 -2
- package/components/tooltip/tooltip.component.d.ts +0 -12
- package/components/tooltip/tooltip.module.d.ts +0 -13
- package/directives/index.d.ts +0 -5
- package/directives/legacy-dropdown-open-monitor/index.d.ts +0 -1
- package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +0 -11
- package/directives/textfield-controller/index.d.ts +0 -14
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-controller.module.d.ts +0 -17
- package/directives/textfield-controller/textfield-controller.provider.d.ts +0 -4
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +0 -10
- package/directives/textfield-controller/textfield-filler.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +0 -12
- package/directives/textfield-controller/textfield-icon.directive.d.ts +0 -12
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +0 -9
- package/directives/textfield-controller/textfield-size.directive.d.ts +0 -10
- package/directives/textfield-controller/textfield.controller.d.ts +0 -41
- package/directives/textfield-controller/textfield.options.d.ts +0 -19
- package/directives/unfinished-validator/index.d.ts +0 -2
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +0 -10
- package/directives/unfinished-validator/unfinished.validator.d.ts +0 -4
- package/directives/value-accessor/index.d.ts +0 -3
- package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
- package/directives/value-accessor/value-accessor.module.d.ts +0 -7
- package/directives/value-accessor/value-accessor.provider.d.ts +0 -2
- package/directives/wrapper/README.md +0 -19
- package/directives/wrapper/index.d.ts +0 -2
- package/directives/wrapper/wrapper.directive.d.ts +0 -22
- package/directives/wrapper/wrapper.module.d.ts +0 -10
- package/fesm2022/taiga-ui-legacy-classes.mjs +0 -415
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +0 -85
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -346
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -459
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +0 -221
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +0 -383
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +0 -261
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +0 -199
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +0 -524
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input.mjs +0 -156
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +0 -47
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +0 -686
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +0 -454
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +0 -88
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +0 -353
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +0 -225
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +0 -262
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +0 -53
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -49
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +0 -401
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -48
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +0 -44
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +0 -99
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-directives.mjs +0 -10
- package/fesm2022/taiga-ui-legacy-directives.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-tokens.mjs +0 -384
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-utils.mjs +0 -262
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
- package/styles/mixins/mixins.less +0 -239
- package/styles/mixins/mixins.scss +0 -224
- package/styles/mixins/textfield.less +0 -324
- package/styles/mixins/textfield.scss +0 -308
- package/styles/taiga-ui-local.less +0 -3
- package/styles/taiga-ui-local.scss +0 -3
- package/tokens/countries-masks.d.ts +0 -9
- package/tokens/focusable-item-accessor.d.ts +0 -25
- package/tokens/fonts-ready.d.ts +0 -6
- package/tokens/icons.d.ts +0 -6
- package/tokens/index.d.ts +0 -14
- package/tokens/is-apple.d.ts +0 -6
- package/tokens/is-chromium.d.ts +0 -6
- package/tokens/is-firefox.d.ts +0 -6
- package/tokens/is-stackblitz.d.ts +0 -5
- package/tokens/month-formatter.d.ts +0 -10
- package/tokens/sanitizer.d.ts +0 -6
- package/tokens/textfield-appearance.d.ts +0 -7
- package/tokens/textfield-host.d.ts +0 -23
- package/tokens/touch-supported.d.ts +0 -5
- package/tokens/value-accessor.d.ts +0 -7
- package/utils/capitalize-first-letter.d.ts +0 -4
- package/utils/date-mode-maskito-adapter.d.ts +0 -6
- package/utils/format-phone.d.ts +0 -30
- package/utils/get-border.d.ts +0 -5
- package/utils/get-max-allowed-phone-length.d.ts +0 -24
- package/utils/get-safe-area-size.d.ts +0 -7
- package/utils/icons-path-factory.d.ts +0 -13
- package/utils/index.d.ts +0 -13
- package/utils/is-presumed-html-string.d.ts +0 -4
- package/utils/iso-to-country-code.d.ts +0 -13
- package/utils/not-kz-region.d.ts +0 -20
- package/utils/process-icon.d.ts +0 -4
- package/utils/specific-dropdown-controllers.d.ts +0 -4
- package/utils/status.d.ts +0 -4
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { AbstractTuiController } from '@taiga-ui/legacy/classes';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const TUI_TEXTFIELD_PREFIX: InjectionToken<TuiTextfieldPrefixDirective>;
|
|
5
|
-
export declare class TuiTextfieldPrefixDirective extends AbstractTuiController {
|
|
6
|
-
prefix: string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextfieldPrefixDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTextfieldPrefixDirective, "[tuiTextfieldPrefix]", never, { "prefix": { "alias": "tuiTextfieldPrefix"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
|
-
import { AbstractTuiController } from '@taiga-ui/legacy/classes';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare const TUI_TEXTFIELD_SIZE: InjectionToken<TuiTextfieldSizeDirective>;
|
|
6
|
-
export declare class TuiTextfieldSizeDirective extends AbstractTuiController {
|
|
7
|
-
size: TuiSizeL | TuiSizeS;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextfieldSizeDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTextfieldSizeDirective, "[tuiTextfieldSize]", never, { "size": { "alias": "tuiTextfieldSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
2
|
-
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
|
-
import { type Observable } from 'rxjs';
|
|
5
|
-
import { type TuiTextfieldOptions } from './textfield.options';
|
|
6
|
-
import { type TuiTextfieldAppearanceDirective } from './textfield-appearance.directive';
|
|
7
|
-
import { type TuiTextfieldCleanerDirective } from './textfield-cleaner.directive';
|
|
8
|
-
import { type TuiTextfieldCustomContentDirective } from './textfield-custom-content.directive';
|
|
9
|
-
import { type TuiTextfieldFillerDirective } from './textfield-filler.directive';
|
|
10
|
-
import { type TuiTextfieldIconDirective } from './textfield-icon.directive';
|
|
11
|
-
import { type TuiTextfieldIconLeftDirective } from './textfield-icon-left.directive';
|
|
12
|
-
import { type TuiTextfieldLabelOutsideDirective } from './textfield-label-outside.directive';
|
|
13
|
-
import { type TuiTextfieldPostfixDirective } from './textfield-postfix.directive';
|
|
14
|
-
import { type TuiTextfieldPrefixDirective } from './textfield-prefix.directive';
|
|
15
|
-
import { type TuiTextfieldSizeDirective } from './textfield-size.directive';
|
|
16
|
-
export declare class TuiTextfieldController {
|
|
17
|
-
readonly change$: Observable<void>;
|
|
18
|
-
readonly options: TuiTextfieldOptions;
|
|
19
|
-
private readonly legacyAppearance;
|
|
20
|
-
private readonly appearanceDirective;
|
|
21
|
-
private readonly cleanerDirective;
|
|
22
|
-
private readonly customContentDirective;
|
|
23
|
-
private readonly iconDirective;
|
|
24
|
-
private readonly iconLeftDirective;
|
|
25
|
-
private readonly labelOutsideDirective;
|
|
26
|
-
private readonly sizeDirective;
|
|
27
|
-
private readonly prefixDirective;
|
|
28
|
-
private readonly postfixDirective;
|
|
29
|
-
private readonly fillerDirective;
|
|
30
|
-
constructor(change$: Observable<void>, options: TuiTextfieldOptions, legacyAppearance: string, appearanceDirective: TuiTextfieldAppearanceDirective, cleanerDirective: TuiTextfieldCleanerDirective, customContentDirective: TuiTextfieldCustomContentDirective, iconDirective: TuiTextfieldIconDirective, iconLeftDirective: TuiTextfieldIconLeftDirective, labelOutsideDirective: TuiTextfieldLabelOutsideDirective, sizeDirective: TuiTextfieldSizeDirective, prefixDirective: TuiTextfieldPrefixDirective, postfixDirective: TuiTextfieldPostfixDirective, fillerDirective: TuiTextfieldFillerDirective);
|
|
31
|
-
get appearance(): string;
|
|
32
|
-
get cleaner(): boolean;
|
|
33
|
-
get customContent(): PolymorpheusContent;
|
|
34
|
-
get icon(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;
|
|
35
|
-
get iconStart(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;
|
|
36
|
-
get labelOutside(): boolean;
|
|
37
|
-
get size(): TuiSizeL | TuiSizeS;
|
|
38
|
-
get prefix(): string;
|
|
39
|
-
get postfix(): string;
|
|
40
|
-
get filler(): string;
|
|
41
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
|
-
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
|
-
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
|
|
4
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
5
|
-
export interface TuiTextfieldOptions {
|
|
6
|
-
readonly hintOnDisabled: boolean;
|
|
7
|
-
readonly iconCleaner: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated: drop in v5.0
|
|
11
|
-
* Default values for primitive textfield options
|
|
12
|
-
*/
|
|
13
|
-
export declare const TUI_TEXTFIELD_DEFAULT_OPTIONS: TuiTextfieldOptions;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated: drop in v5.0
|
|
16
|
-
* Default parameters for textfield
|
|
17
|
-
*/
|
|
18
|
-
export declare const TUI_TEXTFIELD_OPTIONS: InjectionToken<TuiTextfieldOptions>;
|
|
19
|
-
export declare function tuiTextfieldOptionsProvider(options: Partial<TuiTextfieldOptions>): Provider;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Validator } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TuiUnfinishedValidator implements Validator {
|
|
4
|
-
private readonly default;
|
|
5
|
-
private readonly injector;
|
|
6
|
-
tuiUnfinishedValidator: string;
|
|
7
|
-
readonly validate: import("@angular/forms").ValidatorFn;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiUnfinishedValidator, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiUnfinishedValidator, "[tuiUnfinishedValidator]", never, { "tuiUnfinishedValidator": { "alias": "tuiUnfinishedValidator"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type ValidatorFn } from '@angular/forms';
|
|
2
|
-
import { type TuiFocusableElementAccessor } from '@taiga-ui/legacy/tokens';
|
|
3
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
|
-
export declare function tuiCreateUnfinishedValidator(nativeInputGetter: () => TuiFocusableElementAccessor, message: PolymorpheusContent): ValidatorFn;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class TuiValueAccessorDirective {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiValueAccessorDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiValueAccessorDirective, "[tuiValueAccessor]", never, {}, {}, never, never, false, never>;
|
|
5
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./value-accessor.directive";
|
|
3
|
-
export declare class TuiValueAccessorModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiValueAccessorModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiValueAccessorModule, [typeof i1.TuiValueAccessorDirective], never, [typeof i1.TuiValueAccessorDirective]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TuiValueAccessorModule>;
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Wrapper is organized with 2 layers:
|
|
2
|
-
|
|
3
|
-
1. element itself, that serves as a background
|
|
4
|
-
2. `:after` pseudo element that serves as overlay
|
|
5
|
-
|
|
6
|
-
Overlay is click-through and typically used for focus ring
|
|
7
|
-
|
|
8
|
-
To apply styles use following mixins from
|
|
9
|
-
|
|
10
|
-
```less
|
|
11
|
-
@import '@taiga-ui/core/styles/taiga-ui-local.less';
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
1. `.wrapper-hover(@ruleset)`
|
|
15
|
-
2. `.wrapper-active(@ruleset)`
|
|
16
|
-
3. `.wrapper-readonly(@ruleset)`
|
|
17
|
-
4. `.wrapper-disabled(@ruleset)`
|
|
18
|
-
5. `.wrapper-focus(@ruleset)`
|
|
19
|
-
6. `.wrapper-invalid(@ruleset)`
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type TuiLooseUnion } from '@taiga-ui/cdk/types';
|
|
2
|
-
import { type TuiInteractiveState } from '@taiga-ui/core/types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated: drop in v5.0
|
|
6
|
-
*/
|
|
7
|
-
export declare class TuiWrapperDirective {
|
|
8
|
-
disabled: boolean;
|
|
9
|
-
readOnly: boolean;
|
|
10
|
-
hover: boolean | null;
|
|
11
|
-
active: boolean | null;
|
|
12
|
-
focus: boolean;
|
|
13
|
-
invalid: boolean;
|
|
14
|
-
appearance: string;
|
|
15
|
-
protected get computedInvalid(): boolean;
|
|
16
|
-
protected get computedFocused(): boolean;
|
|
17
|
-
protected get interactiveState(): TuiLooseUnion<TuiInteractiveState> | null;
|
|
18
|
-
protected get noHover(): boolean;
|
|
19
|
-
protected get noActive(): boolean;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiWrapperDirective, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiWrapperDirective, "[tuiWrapper]", never, { "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "hover": { "alias": "hover"; "required": false; }; "active": { "alias": "active"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./wrapper.directive";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated: drop in v5.0
|
|
5
|
-
*/
|
|
6
|
-
export declare class TuiWrapperModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiWrapperModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiWrapperModule, [typeof i1.TuiWrapperDirective], never, [typeof i1.TuiWrapperDirective]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TuiWrapperModule>;
|
|
10
|
-
}
|
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Directive, inject, DestroyRef, ChangeDetectorRef, TemplateRef, ViewChild } from '@angular/core';
|
|
3
|
-
import { tuiInjectId } from '@taiga-ui/cdk/services';
|
|
4
|
-
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
5
|
-
import { TuiDataListDirective } from '@taiga-ui/core/components/data-list';
|
|
6
|
-
import { TUI_ITEMS_HANDLERS } from '@taiga-ui/kit/tokens';
|
|
7
|
-
import { TUI_TEXTFIELD_HOST } from '@taiga-ui/legacy/tokens';
|
|
8
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
9
|
-
import { NgControl, NgModel } from '@angular/forms';
|
|
10
|
-
import { TuiValueTransformer, TuiControl } from '@taiga-ui/cdk/classes';
|
|
11
|
-
import { EMPTY_FUNCTION } from '@taiga-ui/cdk/constants';
|
|
12
|
-
import { tuiIsPresent, tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
13
|
-
import { Subject, delay, startWith, map, filter, distinctUntilChanged, switchMap, merge, EMPTY } from 'rxjs';
|
|
14
|
-
|
|
15
|
-
const TUI = 'tui_interactive_';
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated: drop in v5.0
|
|
18
|
-
*/
|
|
19
|
-
class AbstractTuiInteractive {
|
|
20
|
-
constructor() {
|
|
21
|
-
this.autoIdString = `${TUI}${AbstractTuiInteractive.autoId++}${Date.now()}`;
|
|
22
|
-
this.focusVisible = false;
|
|
23
|
-
this.pseudoHover = null;
|
|
24
|
-
this.pseudoActive = null;
|
|
25
|
-
this.pseudoFocus = null;
|
|
26
|
-
/**
|
|
27
|
-
* Determines if component is focusable with keyboard.
|
|
28
|
-
*/
|
|
29
|
-
this.focusable = true;
|
|
30
|
-
this.nativeId = '';
|
|
31
|
-
/**
|
|
32
|
-
* Emits 'true' on focus and 'false' on blur.
|
|
33
|
-
*/
|
|
34
|
-
this.focusedChange = new EventEmitter();
|
|
35
|
-
this.focusVisibleChange = new EventEmitter();
|
|
36
|
-
}
|
|
37
|
-
static { this.autoId = 0; }
|
|
38
|
-
get computedDisabled() {
|
|
39
|
-
return this.disabled;
|
|
40
|
-
}
|
|
41
|
-
get computedFocused() {
|
|
42
|
-
return !this.computedDisabled && (this.pseudoFocus ?? this.focused);
|
|
43
|
-
}
|
|
44
|
-
get computedFocusVisible() {
|
|
45
|
-
return !this.computedDisabled && (this.pseudoFocus ?? this.focusVisible);
|
|
46
|
-
}
|
|
47
|
-
get computedFocusable() {
|
|
48
|
-
return !this.computedDisabled && (this.focusable || this.focused);
|
|
49
|
-
}
|
|
50
|
-
// TODO: 3.0 Consider removing since native input is exposed
|
|
51
|
-
get id() {
|
|
52
|
-
return this.nativeId || this.autoIdString;
|
|
53
|
-
}
|
|
54
|
-
updateFocused(focused) {
|
|
55
|
-
this.focusedChange.emit(focused);
|
|
56
|
-
}
|
|
57
|
-
updateFocusVisible(focusVisible) {
|
|
58
|
-
if (this.focusVisible === focusVisible) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.focusVisible = focusVisible;
|
|
62
|
-
this.focusVisibleChange.emit(focusVisible);
|
|
63
|
-
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiInteractive, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
65
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiInteractive, isStandalone: false, inputs: { pseudoHover: "pseudoHover", pseudoActive: "pseudoActive", pseudoFocus: "pseudoFocus", focusable: "focusable", nativeId: "nativeId" }, outputs: { focusedChange: "focusedChange", focusVisibleChange: "focusVisibleChange" }, host: { properties: { "attr.data-focused": "pseudoFocus", "class._disabled": "computedDisabled", "class._focused": "computedFocused", "class._focus-visible": "computedFocusVisible" } }, ngImport: i0 }); }
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiInteractive, decorators: [{
|
|
68
|
-
type: Directive,
|
|
69
|
-
args: [{
|
|
70
|
-
standalone: false,
|
|
71
|
-
host: {
|
|
72
|
-
'[attr.data-focused]': 'pseudoFocus',
|
|
73
|
-
'[class._disabled]': 'computedDisabled',
|
|
74
|
-
'[class._focused]': 'computedFocused',
|
|
75
|
-
'[class._focus-visible]': 'computedFocusVisible',
|
|
76
|
-
},
|
|
77
|
-
}]
|
|
78
|
-
}], propDecorators: { pseudoHover: [{
|
|
79
|
-
type: Input
|
|
80
|
-
}], pseudoActive: [{
|
|
81
|
-
type: Input
|
|
82
|
-
}], pseudoFocus: [{
|
|
83
|
-
type: Input
|
|
84
|
-
}], focusable: [{
|
|
85
|
-
type: Input
|
|
86
|
-
}], nativeId: [{
|
|
87
|
-
type: Input
|
|
88
|
-
}], focusedChange: [{
|
|
89
|
-
type: Output
|
|
90
|
-
}], focusVisibleChange: [{
|
|
91
|
-
type: Output
|
|
92
|
-
}] } });
|
|
93
|
-
|
|
94
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated: drop in v5.0
|
|
97
|
-
* Basic ControlValueAccessor class to build form components upon
|
|
98
|
-
*/
|
|
99
|
-
class AbstractTuiControl extends AbstractTuiInteractive {
|
|
100
|
-
constructor() {
|
|
101
|
-
super();
|
|
102
|
-
this.ngControl = inject(NgControl, { optional: true });
|
|
103
|
-
this.refresh$ = new Subject();
|
|
104
|
-
this.onTouched = EMPTY_FUNCTION;
|
|
105
|
-
this.onChange = EMPTY_FUNCTION;
|
|
106
|
-
this.fallbackValue = this.getFallbackValue();
|
|
107
|
-
this.destroyRef = inject(DestroyRef);
|
|
108
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
109
|
-
this.valueTransformer = inject(TuiValueTransformer, { optional: true });
|
|
110
|
-
this.readOnly = false;
|
|
111
|
-
this.pseudoInvalid = null;
|
|
112
|
-
// Workaround for legacy control to notify of internal change in case updateOn: 'blur' is used
|
|
113
|
-
this.update$ = new Subject();
|
|
114
|
-
if (ngDevMode && this.ngControl === null) {
|
|
115
|
-
console.assert(false, `NgControl not injected in ${this.constructor.name}!\n`, 'Use [(ngModel)] or [formControl] or formControlName for correct work.');
|
|
116
|
-
}
|
|
117
|
-
if (this.ngControl) {
|
|
118
|
-
this.ngControl.valueAccessor = this;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
get computedInvalid() {
|
|
122
|
-
return (this.interactive &&
|
|
123
|
-
(this.pseudoInvalid !== null
|
|
124
|
-
? this.pseudoInvalid
|
|
125
|
-
: this.touched && this.invalid));
|
|
126
|
-
}
|
|
127
|
-
get value() {
|
|
128
|
-
return this.previousInternalValue ?? this.fallbackValue;
|
|
129
|
-
}
|
|
130
|
-
set value(value) {
|
|
131
|
-
this.updateValue(value);
|
|
132
|
-
this.update$.next();
|
|
133
|
-
}
|
|
134
|
-
get safeCurrentValue() {
|
|
135
|
-
return this.rawValue ?? this.fallbackValue;
|
|
136
|
-
}
|
|
137
|
-
get invalid() {
|
|
138
|
-
return this.safeNgControlData(({ invalid }) => invalid, false);
|
|
139
|
-
}
|
|
140
|
-
get valid() {
|
|
141
|
-
return this.safeNgControlData(({ valid }) => valid, false);
|
|
142
|
-
}
|
|
143
|
-
get touched() {
|
|
144
|
-
return this.safeNgControlData(({ touched }) => touched, false);
|
|
145
|
-
}
|
|
146
|
-
get disabled() {
|
|
147
|
-
return this.safeNgControlData(({ disabled }) => disabled, false);
|
|
148
|
-
}
|
|
149
|
-
get interactive() {
|
|
150
|
-
return !this.readOnly && !this.computedDisabled;
|
|
151
|
-
}
|
|
152
|
-
get control() {
|
|
153
|
-
return this.safeNgControlData(({ control }) => control, null);
|
|
154
|
-
}
|
|
155
|
-
get computedName() {
|
|
156
|
-
return this.controlName?.toString() ?? null;
|
|
157
|
-
}
|
|
158
|
-
get controlName() {
|
|
159
|
-
return this.ngControl?.name?.toString() ?? null;
|
|
160
|
-
}
|
|
161
|
-
ngOnInit() {
|
|
162
|
-
this.refresh$
|
|
163
|
-
.pipe(delay(0), startWith(null), map(() => this.ngControl?.control), filter(tuiIsPresent), distinctUntilChanged(), switchMap((control) => merge(control.valueChanges, control.statusChanges, control.events || EMPTY)), takeUntilDestroyed(this.destroyRef))
|
|
164
|
-
.subscribe(() => {
|
|
165
|
-
this.refreshLocalValue(this.safeCurrentValue);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
checkControlUpdate() {
|
|
169
|
-
this.cdr.markForCheck();
|
|
170
|
-
}
|
|
171
|
-
registerOnChange(onChange) {
|
|
172
|
-
this.onChange = (componentValue) => {
|
|
173
|
-
onChange(this.toControlValue(componentValue));
|
|
174
|
-
};
|
|
175
|
-
this.refresh$.next();
|
|
176
|
-
}
|
|
177
|
-
registerOnTouched(onTouched) {
|
|
178
|
-
this.onTouched = onTouched;
|
|
179
|
-
}
|
|
180
|
-
setDisabledState() {
|
|
181
|
-
this.checkControlUpdate();
|
|
182
|
-
}
|
|
183
|
-
writeValue(value) {
|
|
184
|
-
const controlValue = this.ngControl instanceof NgModel && this.previousInternalValue === undefined
|
|
185
|
-
? this.ngControl.model
|
|
186
|
-
: value;
|
|
187
|
-
this.refreshLocalValue(this.fromControlValue(controlValue));
|
|
188
|
-
}
|
|
189
|
-
updateFocused(focused) {
|
|
190
|
-
if (!focused) {
|
|
191
|
-
this.controlMarkAsTouched();
|
|
192
|
-
}
|
|
193
|
-
super.updateFocused(focused);
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* @deprecated use `value` setter
|
|
197
|
-
*/
|
|
198
|
-
updateValue(value) {
|
|
199
|
-
if (this.disabled || this.valueIdenticalComparator(this.value, value)) {
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
this.previousInternalValue = value;
|
|
203
|
-
this.controlSetValue(value);
|
|
204
|
-
}
|
|
205
|
-
valueIdenticalComparator(oldValue, newValue) {
|
|
206
|
-
return oldValue === newValue;
|
|
207
|
-
}
|
|
208
|
-
get rawValue() {
|
|
209
|
-
const { ngControl } = this;
|
|
210
|
-
if (ngControl === null) {
|
|
211
|
-
return undefined;
|
|
212
|
-
}
|
|
213
|
-
const controlValue = ngControl instanceof NgModel && this.previousInternalValue === undefined
|
|
214
|
-
? ngControl.viewModel
|
|
215
|
-
: ngControl.value;
|
|
216
|
-
return this.fromControlValue(controlValue);
|
|
217
|
-
}
|
|
218
|
-
safeNgControlData(extractor, defaultFieldValue) {
|
|
219
|
-
return (this.ngControl && extractor(this.ngControl)) ?? defaultFieldValue;
|
|
220
|
-
}
|
|
221
|
-
controlMarkAsTouched() {
|
|
222
|
-
this.onTouched();
|
|
223
|
-
this.checkControlUpdate();
|
|
224
|
-
}
|
|
225
|
-
controlSetValue(value) {
|
|
226
|
-
this.onChange(value);
|
|
227
|
-
this.checkControlUpdate();
|
|
228
|
-
}
|
|
229
|
-
refreshLocalValue(value) {
|
|
230
|
-
this.previousInternalValue = value;
|
|
231
|
-
this.checkControlUpdate();
|
|
232
|
-
}
|
|
233
|
-
fromControlValue(controlValue) {
|
|
234
|
-
return this.valueTransformer
|
|
235
|
-
? this.valueTransformer.fromControlValue(controlValue)
|
|
236
|
-
: controlValue;
|
|
237
|
-
}
|
|
238
|
-
toControlValue(componentValue) {
|
|
239
|
-
return this.valueTransformer
|
|
240
|
-
? this.valueTransformer.toControlValue(componentValue)
|
|
241
|
-
: componentValue;
|
|
242
|
-
}
|
|
243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiControl, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
244
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiControl, isStandalone: false, inputs: { readOnly: "readOnly", pseudoInvalid: "pseudoInvalid" }, host: { properties: { "class._readonly": "readOnly", "class._invalid": "computedInvalid" } }, usesInheritance: true, ngImport: i0 }); }
|
|
245
|
-
}
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiControl, decorators: [{
|
|
247
|
-
type: Directive,
|
|
248
|
-
args: [{
|
|
249
|
-
standalone: false,
|
|
250
|
-
host: {
|
|
251
|
-
'[class._readonly]': 'readOnly',
|
|
252
|
-
'[class._invalid]': 'computedInvalid',
|
|
253
|
-
},
|
|
254
|
-
}]
|
|
255
|
-
}], ctorParameters: () => [], propDecorators: { readOnly: [{
|
|
256
|
-
type: Input
|
|
257
|
-
}], pseudoInvalid: [{
|
|
258
|
-
type: Input
|
|
259
|
-
}] } });
|
|
260
|
-
function tuiAsControl(control) {
|
|
261
|
-
return [tuiProvide(AbstractTuiControl, control), tuiProvide(TuiControl, control)];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @deprecated: drop in v5.0
|
|
266
|
-
*/
|
|
267
|
-
class AbstractTuiNativeSelect {
|
|
268
|
-
constructor() {
|
|
269
|
-
this.datalist = null;
|
|
270
|
-
this.autoId = tuiInjectId();
|
|
271
|
-
this.el = tuiInjectElement();
|
|
272
|
-
this.host = inject(TUI_TEXTFIELD_HOST);
|
|
273
|
-
this.control = inject(AbstractTuiControl);
|
|
274
|
-
this.itemsHandlers = inject(TUI_ITEMS_HANDLERS);
|
|
275
|
-
this.disabledItemHandler = null;
|
|
276
|
-
this.placeholder = '';
|
|
277
|
-
}
|
|
278
|
-
get id() {
|
|
279
|
-
return this.el.id || this.autoId;
|
|
280
|
-
}
|
|
281
|
-
get emptyOption() {
|
|
282
|
-
return !!this.placeholder && !this.control.value;
|
|
283
|
-
}
|
|
284
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNativeSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
285
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiNativeSelect, isStandalone: false, inputs: { disabledItemHandler: "disabledItemHandler", placeholder: "placeholder" }, host: { properties: { "id": "id" } }, viewQueries: [{ propertyName: "datalist", first: true, predicate: TuiDataListDirective, descendants: true, read: TemplateRef, static: true }], ngImport: i0 }); }
|
|
286
|
-
}
|
|
287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNativeSelect, decorators: [{
|
|
288
|
-
type: Directive,
|
|
289
|
-
args: [{
|
|
290
|
-
standalone: false,
|
|
291
|
-
host: {
|
|
292
|
-
'[id]': 'id',
|
|
293
|
-
},
|
|
294
|
-
}]
|
|
295
|
-
}], propDecorators: { datalist: [{
|
|
296
|
-
type: ViewChild,
|
|
297
|
-
args: [TuiDataListDirective, { read: TemplateRef, static: true }]
|
|
298
|
-
}], disabledItemHandler: [{
|
|
299
|
-
type: Input
|
|
300
|
-
}], placeholder: [{
|
|
301
|
-
type: Input
|
|
302
|
-
}] } });
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* @deprecated: drop in v5.0
|
|
306
|
-
*/
|
|
307
|
-
class AbstractTuiTextfieldHost {
|
|
308
|
-
constructor() {
|
|
309
|
-
this.host = inject(AbstractTuiControl, { optional: true });
|
|
310
|
-
}
|
|
311
|
-
get readOnly() {
|
|
312
|
-
return this.host.readOnly;
|
|
313
|
-
}
|
|
314
|
-
get disabled() {
|
|
315
|
-
return this.host.computedDisabled;
|
|
316
|
-
}
|
|
317
|
-
get invalid() {
|
|
318
|
-
return this.host.computedInvalid;
|
|
319
|
-
}
|
|
320
|
-
get focusable() {
|
|
321
|
-
return this.host.computedFocusable;
|
|
322
|
-
}
|
|
323
|
-
get inputMode() {
|
|
324
|
-
return 'text';
|
|
325
|
-
}
|
|
326
|
-
get value() {
|
|
327
|
-
return this.host.value?.toString() || '';
|
|
328
|
-
}
|
|
329
|
-
process(_input) { }
|
|
330
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiTextfieldHost, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
331
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiTextfieldHost, isStandalone: true, ngImport: i0 }); }
|
|
332
|
-
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiTextfieldHost, decorators: [{
|
|
334
|
-
type: Directive
|
|
335
|
-
}] });
|
|
336
|
-
|
|
337
|
-
class AbstractTuiController {
|
|
338
|
-
constructor() {
|
|
339
|
-
this.change$ = new Subject();
|
|
340
|
-
}
|
|
341
|
-
ngOnChanges() {
|
|
342
|
-
this.change$.next();
|
|
343
|
-
}
|
|
344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
345
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiController, isStandalone: true, usesOnChanges: true, ngImport: i0 }); }
|
|
346
|
-
}
|
|
347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiController, decorators: [{
|
|
348
|
-
type: Directive
|
|
349
|
-
}] });
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @deprecated: drop in v5.0
|
|
353
|
-
*/
|
|
354
|
-
class AbstractTuiMultipleControl extends AbstractTuiControl {
|
|
355
|
-
clear() {
|
|
356
|
-
this.value = [];
|
|
357
|
-
}
|
|
358
|
-
getFallbackValue() {
|
|
359
|
-
return [];
|
|
360
|
-
}
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiMultipleControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
362
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiMultipleControl, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
363
|
-
}
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiMultipleControl, decorators: [{
|
|
365
|
-
type: Directive
|
|
366
|
-
}] });
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* @deprecated: drop in v5.0
|
|
370
|
-
*/
|
|
371
|
-
class TuiNamedDay {
|
|
372
|
-
constructor(day, name, displayDay = day) {
|
|
373
|
-
this.day = day;
|
|
374
|
-
this.name = name;
|
|
375
|
-
this.displayDay = displayDay;
|
|
376
|
-
}
|
|
377
|
-
toString() {
|
|
378
|
-
return this.name;
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* @deprecated: drop in v5.0
|
|
384
|
-
*/
|
|
385
|
-
class AbstractTuiNullableControl extends AbstractTuiControl {
|
|
386
|
-
getFallbackValue() {
|
|
387
|
-
return null;
|
|
388
|
-
}
|
|
389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNullableControl, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
390
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: AbstractTuiNullableControl, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
391
|
-
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AbstractTuiNullableControl, decorators: [{
|
|
393
|
-
type: Directive
|
|
394
|
-
}] });
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* @deprecated: drop in v5.0
|
|
398
|
-
* Wrapper around an item to add `toString()` method
|
|
399
|
-
*/
|
|
400
|
-
class TuiStringifiableItem {
|
|
401
|
-
constructor(item, stringify) {
|
|
402
|
-
this.item = item;
|
|
403
|
-
this.stringify = stringify;
|
|
404
|
-
}
|
|
405
|
-
toString() {
|
|
406
|
-
return this.stringify(this.item);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* Generated bundle index. Do not edit.
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
export { AbstractTuiControl, AbstractTuiController, AbstractTuiInteractive, AbstractTuiMultipleControl, AbstractTuiNativeSelect, AbstractTuiNullableControl, AbstractTuiTextfieldHost, TuiNamedDay, TuiStringifiableItem, tuiAsControl };
|
|
415
|
-
//# sourceMappingURL=taiga-ui-legacy-classes.mjs.map
|