@taiga-ui/legacy 4.52.0-canary.24b31eb → 4.52.0-canary.2d877cf
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 +5 -6
- 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 +2 -18
- 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/index.d.ts +4 -0
- package/components/pdf-viewer/pdf-viewer.component.d.ts +12 -0
- package/components/pdf-viewer/pdf-viewer.directive.d.ts +8 -0
- package/components/pdf-viewer/pdf-viewer.options.d.ts +11 -0
- package/components/pdf-viewer/pdf-viewer.service.d.ts +17 -0
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +37 -31
- 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 +88 -0
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components.mjs +2 -18
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy.mjs +0 -5
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
- package/index.d.ts +0 -5
- package/package.json +19 -130
- 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/combo-box/combo-box-strict.directive.d.ts +0 -12
- package/components/combo-box/combo-box.component.d.ts +0 -52
- package/components/combo-box/combo-box.directive.d.ts +0 -13
- package/components/combo-box/combo-box.module.d.ts +0 -20
- package/components/combo-box/index.d.ts +0 -4
- 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 -67
- 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 -22
- 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 -63
- 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 -31
- 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-combo-box.mjs +0 -299
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +0 -356
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +0 -465
- 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 -390
- 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 -155
- 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 -690
- 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 -50
- 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 -50
- 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-pipes-format-phone.mjs +0 -59
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +0 -50
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +0 -80
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-pipes.mjs +0 -8
- package/fesm2022/taiga-ui-legacy-pipes.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 -268
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +0 -1
- package/pipes/format-phone/format-phone.pipe.d.ts +0 -37
- package/pipes/format-phone/index.d.ts +0 -1
- package/pipes/index.d.ts +0 -3
- package/pipes/iso-to-country-code/index.d.ts +0 -1
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -30
- package/pipes/to-country-code/index.d.ts +0 -1
- package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -38
- 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 -14
- package/utils/is-apple.d.ts +0 -5
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-directives-textfield-controller.mjs","sources":["../../../projects/legacy/directives/textfield-controller/textfield.controller.ts","../../../projects/legacy/directives/textfield-controller/textfield.options.ts","../../../projects/legacy/directives/textfield-controller/textfield-appearance.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-cleaner.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-custom-content.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-filler.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-icon.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-icon-left.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-label-outside.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-postfix.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-prefix.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-size.directive.ts","../../../projects/legacy/directives/textfield-controller/textfield-controller.module.ts","../../../projects/legacy/directives/textfield-controller/textfield-controller.provider.ts","../../../projects/legacy/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiTextfieldOptions} from './textfield.options';\nimport {type TuiTextfieldAppearanceDirective} from './textfield-appearance.directive';\nimport {type TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {type TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {type TuiTextfieldFillerDirective} from './textfield-filler.directive';\nimport {type TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {type TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {type TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {type TuiTextfieldPostfixDirective} from './textfield-postfix.directive';\nimport {type TuiTextfieldPrefixDirective} from './textfield-prefix.directive';\nimport {type TuiTextfieldSizeDirective} from './textfield-size.directive';\n\nexport class TuiTextfieldController {\n // eslint-disable-next-line @typescript-eslint/max-params,max-params\n constructor(\n public readonly change$: Observable<void>,\n public readonly options: TuiTextfieldOptions,\n private readonly legacyAppearance: string,\n private readonly appearanceDirective: TuiTextfieldAppearanceDirective,\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 private readonly prefixDirective: TuiTextfieldPrefixDirective,\n private readonly postfixDirective: TuiTextfieldPostfixDirective,\n private readonly fillerDirective: TuiTextfieldFillerDirective,\n ) {}\n\n public get appearance(): string {\n return this.appearanceDirective.appearance || this.legacyAppearance;\n }\n\n public get cleaner(): boolean {\n return this.cleanerDirective.cleaner;\n }\n\n public get customContent(): PolymorpheusContent {\n return this.customContentDirective.customContent || '';\n }\n\n public get icon(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.iconDirective.icon;\n }\n\n public get iconStart(): PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>> {\n return this.iconLeftDirective.iconStart;\n }\n\n public get labelOutside(): boolean {\n return this.labelOutsideDirective.labelOutside;\n }\n\n public get size(): TuiSizeL | TuiSizeS {\n return this.sizeDirective.size;\n }\n\n public get prefix(): string {\n return this.prefixDirective.prefix;\n }\n\n public get postfix(): string {\n return this.postfixDirective.postfix;\n }\n\n public get filler(): string {\n return this.fillerDirective.filler;\n }\n}\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport interface TuiTextfieldOptions {\n readonly hintOnDisabled: boolean;\n readonly iconCleaner: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n}\n\n/**\n * @deprecated: drop in v5.0\n * Default values for primitive textfield options\n */\nexport const TUI_TEXTFIELD_DEFAULT_OPTIONS: TuiTextfieldOptions = {\n iconCleaner: '@tui.x',\n hintOnDisabled: false,\n};\n\n/**\n * @deprecated: drop in v5.0\n * Default parameters for textfield\n */\nexport const TUI_TEXTFIELD_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_OPTIONS' : '',\n {\n factory: () => TUI_TEXTFIELD_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiTextfieldOptionsProvider(\n options: Partial<TuiTextfieldOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_TEXTFIELD_OPTIONS,\n options,\n TUI_TEXTFIELD_DEFAULT_OPTIONS,\n );\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_APPEARANCE_DIRECTIVE = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_APPEARANCE_DIRECTIVE' : '',\n {\n factory: () => new TuiTextfieldAppearanceDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldAppearance]',\n providers: [\n tuiProvide(TUI_TEXTFIELD_APPEARANCE_DIRECTIVE, TuiTextfieldAppearanceDirective),\n ],\n})\nexport class TuiTextfieldAppearanceDirective extends AbstractTuiController {\n // it's an empty string by default for backward compatibility\n // (see comment https://github.com/taiga-family/taiga-ui/pull/3007#issuecomment-1315179508)\n @Input('tuiTextfieldAppearance')\n public appearance = '';\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_CLEANER = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_CLEANER' : '',\n {\n factory: () => new TuiTextfieldCleanerDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldCleaner]',\n providers: [tuiProvide(TUI_TEXTFIELD_CLEANER, TuiTextfieldCleanerDirective)],\n})\nexport class TuiTextfieldCleanerDirective extends AbstractTuiController {\n @Input('tuiTextfieldCleaner')\n public cleaner = false;\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const TUI_TEXTFIELD_CUSTOM_CONTENT = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_CUSTOM_CONTENT' : '',\n {\n factory: () => new TuiTextfieldCustomContentDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldCustomContent]',\n providers: [\n tuiProvide(TUI_TEXTFIELD_CUSTOM_CONTENT, TuiTextfieldCustomContentDirective),\n ],\n})\nexport class TuiTextfieldCustomContentDirective extends AbstractTuiController {\n @Input('tuiTextfieldCustomContent')\n public customContent: PolymorpheusContent;\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_FILLER = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_FILLER' : '',\n {\n factory: () => new TuiTextfieldFillerDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldFiller]',\n providers: [tuiProvide(TUI_TEXTFIELD_FILLER, TuiTextfieldFillerDirective)],\n})\nexport class TuiTextfieldFillerDirective extends AbstractTuiController {\n @Input('tuiTextfieldFiller')\n public filler = '';\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_ICON' : '',\n {\n factory: () => new TuiTextfieldIconDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldIcon]',\n providers: [tuiProvide(TUI_TEXTFIELD_ICON, TuiTextfieldIconDirective)],\n})\nexport class TuiTextfieldIconDirective extends AbstractTuiController {\n @Input('tuiTextfieldIcon')\n public icon: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport const TUI_TEXTFIELD_ICON_LEFT = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_ICON_LEFT' : '',\n {\n factory: () => new TuiTextfieldIconLeftDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldIconLeft]',\n providers: [tuiProvide(TUI_TEXTFIELD_ICON_LEFT, TuiTextfieldIconLeftDirective)],\n})\nexport class TuiTextfieldIconLeftDirective extends AbstractTuiController {\n @Input('tuiTextfieldIconLeft')\n public iconStart: PolymorpheusContent<TuiContext<TuiSizeL | TuiSizeS>>;\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_LABEL_OUTSIDE = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_LABEL_OUTSIDE' : '',\n {\n factory: () => new TuiTextfieldLabelOutsideDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldLabelOutside]',\n providers: [\n tuiProvide(TUI_TEXTFIELD_LABEL_OUTSIDE, TuiTextfieldLabelOutsideDirective),\n ],\n})\nexport class TuiTextfieldLabelOutsideDirective extends AbstractTuiController {\n @Input('tuiTextfieldLabelOutside')\n public labelOutside = false;\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_POSTFIX = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_POSTFIX' : '',\n {\n factory: () => new TuiTextfieldPostfixDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldPostfix]',\n providers: [tuiProvide(TUI_TEXTFIELD_POSTFIX, TuiTextfieldPostfixDirective)],\n})\nexport class TuiTextfieldPostfixDirective extends AbstractTuiController {\n @Input('tuiTextfieldPostfix')\n public postfix = '';\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_PREFIX = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_PREFIX' : '',\n {\n factory: () => new TuiTextfieldPrefixDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldPrefix]',\n providers: [tuiProvide(TUI_TEXTFIELD_PREFIX, TuiTextfieldPrefixDirective)],\n})\nexport class TuiTextfieldPrefixDirective extends AbstractTuiController {\n @Input('tuiTextfieldPrefix')\n public prefix = '';\n}\n","import {Directive, InjectionToken, Input} from '@angular/core';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {AbstractTuiController} from '@taiga-ui/legacy/classes';\n\nexport const TUI_TEXTFIELD_SIZE = new InjectionToken(\n ngDevMode ? 'TUI_TEXTFIELD_SIZE' : '',\n {\n factory: () => new TuiTextfieldSizeDirective(),\n },\n);\n\n@Directive({\n standalone: false,\n selector: '[tuiTextfieldSize]',\n providers: [tuiProvide(TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective)],\n})\nexport class TuiTextfieldSizeDirective extends AbstractTuiController {\n @Input('tuiTextfieldSize')\n public size: TuiSizeL | TuiSizeS = 'l';\n}\n","import {NgModule} from '@angular/core';\nimport {PolymorpheusOutlet, PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\n\nimport {TuiTextfieldAppearanceDirective} from './textfield-appearance.directive';\nimport {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive';\nimport {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive';\nimport {TuiTextfieldFillerDirective} from './textfield-filler.directive';\nimport {TuiTextfieldIconDirective} from './textfield-icon.directive';\nimport {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive';\nimport {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive';\nimport {TuiTextfieldPostfixDirective} from './textfield-postfix.directive';\nimport {TuiTextfieldPrefixDirective} from './textfield-prefix.directive';\nimport {TuiTextfieldSizeDirective} from './textfield-size.directive';\n\n@NgModule({\n imports: [PolymorpheusOutlet, PolymorpheusTemplate],\n declarations: [\n TuiTextfieldAppearanceDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n TuiTextfieldPrefixDirective,\n TuiTextfieldPostfixDirective,\n TuiTextfieldFillerDirective,\n ],\n exports: [\n TuiTextfieldAppearanceDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n TuiTextfieldPrefixDirective,\n TuiTextfieldPostfixDirective,\n TuiTextfieldFillerDirective,\n PolymorpheusOutlet,\n PolymorpheusTemplate,\n ],\n})\nexport class TuiTextfieldControllerModule {}\n","import {ChangeDetectorRef, InjectionToken, type Provider} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/legacy/tokens';\nimport {merge, NEVER} from 'rxjs';\n\nimport {TuiTextfieldController} from './textfield.controller';\nimport {TUI_TEXTFIELD_OPTIONS, type TuiTextfieldOptions} from './textfield.options';\nimport {\n TUI_TEXTFIELD_APPEARANCE_DIRECTIVE,\n type TuiTextfieldAppearanceDirective,\n} from './textfield-appearance.directive';\nimport {\n TUI_TEXTFIELD_CLEANER,\n type TuiTextfieldCleanerDirective,\n} from './textfield-cleaner.directive';\nimport {\n TUI_TEXTFIELD_CUSTOM_CONTENT,\n type TuiTextfieldCustomContentDirective,\n} from './textfield-custom-content.directive';\nimport {\n TUI_TEXTFIELD_FILLER,\n type TuiTextfieldFillerDirective,\n} from './textfield-filler.directive';\nimport {\n TUI_TEXTFIELD_ICON,\n type TuiTextfieldIconDirective,\n} from './textfield-icon.directive';\nimport {\n TUI_TEXTFIELD_ICON_LEFT,\n type TuiTextfieldIconLeftDirective,\n} from './textfield-icon-left.directive';\nimport {\n TUI_TEXTFIELD_LABEL_OUTSIDE,\n type TuiTextfieldLabelOutsideDirective,\n} from './textfield-label-outside.directive';\nimport {\n TUI_TEXTFIELD_POSTFIX,\n type TuiTextfieldPostfixDirective,\n} from './textfield-postfix.directive';\nimport {\n TUI_TEXTFIELD_PREFIX,\n type TuiTextfieldPrefixDirective,\n} from './textfield-prefix.directive';\nimport {\n TUI_TEXTFIELD_SIZE,\n type TuiTextfieldSizeDirective,\n} from './textfield-size.directive';\n\nexport const TUI_TEXTFIELD_WATCHED_CONTROLLER =\n new InjectionToken<TuiTextfieldController>(\n ngDevMode ? 'TUI_TEXTFIELD_WATCHED_CONTROLLER' : '',\n );\n\nexport const TEXTFIELD_CONTROLLER_PROVIDER: Provider = [\n {\n provide: TUI_TEXTFIELD_WATCHED_CONTROLLER,\n deps: [\n ChangeDetectorRef,\n TUI_TEXTFIELD_OPTIONS,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_APPEARANCE_DIRECTIVE,\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 TUI_TEXTFIELD_PREFIX,\n TUI_TEXTFIELD_POSTFIX,\n TUI_TEXTFIELD_FILLER,\n ],\n useFactory: (\n cdr: ChangeDetectorRef,\n options: TuiTextfieldOptions,\n legacyAppearance: string,\n ...controllers: [\n TuiTextfieldAppearanceDirective,\n TuiTextfieldCleanerDirective,\n TuiTextfieldCustomContentDirective,\n TuiTextfieldIconDirective,\n TuiTextfieldIconLeftDirective,\n TuiTextfieldLabelOutsideDirective,\n TuiTextfieldSizeDirective,\n TuiTextfieldPrefixDirective,\n TuiTextfieldPostfixDirective,\n TuiTextfieldFillerDirective,\n ]\n ) => {\n const change$ = merge(\n ...controllers.map(({change$}) => change$ || NEVER),\n ).pipe(tuiWatch(cdr), takeUntilDestroyed());\n\n change$.subscribe();\n\n return new TuiTextfieldController(\n change$,\n options,\n legacyAppearance,\n ...controllers,\n );\n },\n },\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAiBa,sBAAsB,CAAA;;IAE/B,WACoB,CAAA,OAAyB,EACzB,OAA4B,EAC3B,gBAAwB,EACxB,mBAAoD,EACpD,gBAA8C,EAC9C,sBAA0D,EAC1D,aAAwC,EACxC,iBAAgD,EAChD,qBAAwD,EACxD,aAAwC,EACxC,eAA4C,EAC5C,gBAA8C,EAC9C,eAA4C,EAAA;QAZ7C,IAAO,CAAA,OAAA,GAAP,OAAO;QACP,IAAO,CAAA,OAAA,GAAP,OAAO;QACN,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB;QACnB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAsB,CAAA,sBAAA,GAAtB,sBAAsB;QACtB,IAAa,CAAA,aAAA,GAAb,aAAa;QACb,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB;QACjB,IAAqB,CAAA,qBAAA,GAArB,qBAAqB;QACrB,IAAa,CAAA,aAAA,GAAb,aAAa;QACb,IAAe,CAAA,eAAA,GAAf,eAAe;QACf,IAAgB,CAA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C;AACzC,QAAA,IAAI,EAAE;YACF,iBAAiB;YACjB,qBAAqB;YACrB,wBAAwB;YACxB,kCAAkC;YAClC,qBAAqB;YACrB,4BAA4B;YAC5B,kBAAkB;YAClB,uBAAuB;YACvB,2BAA2B;YAC3B,kBAAkB;YAClB,oBAAoB;YACpB,qBAAqB;YACrB,oBAAoB;AACvB,SAAA;QACD,UAAU,EAAE,CACR,GAAsB,EACtB,OAA4B,EAC5B,gBAAwB,EACxB,GAAG,WAWF,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,GAAG,CAAC,EAAE,kBAAkB,EAAE,CAAC;YAE3C,OAAO,CAAC,SAAS,EAAE;AAEnB,YAAA,OAAO,IAAI,sBAAsB,CAC7B,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,GAAG,WAAW,CACjB;SACJ;AACJ,KAAA;;;ACtGL;;AAEG;;;;"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { TuiValidationError } from '@taiga-ui/cdk/classes';
|
|
2
|
-
import { tuiIsHTMLElement, tuiIsInput } from '@taiga-ui/cdk/utils/dom';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, INJECTOR, Input, Directive } from '@angular/core';
|
|
5
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
6
|
-
import { NG_VALIDATORS } from '@angular/forms';
|
|
7
|
-
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
8
|
-
import { TUI_DEFAULT_ERROR_MESSAGE } from '@taiga-ui/core/tokens';
|
|
9
|
-
import { TUI_FOCUSABLE_ITEM_ACCESSOR } from '@taiga-ui/legacy/tokens';
|
|
10
|
-
|
|
11
|
-
function tuiCreateUnfinishedValidator(nativeInputGetter, message) {
|
|
12
|
-
return ({ value, }) => {
|
|
13
|
-
const nativeInput = nativeInputGetter();
|
|
14
|
-
return value === null &&
|
|
15
|
-
nativeInput &&
|
|
16
|
-
tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&
|
|
17
|
-
tuiIsInput(nativeInput.nativeFocusableElement) &&
|
|
18
|
-
nativeInput.nativeFocusableElement.value !== ''
|
|
19
|
-
? { unfinished: new TuiValidationError(message) }
|
|
20
|
-
: null;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
class TuiUnfinishedValidator {
|
|
25
|
-
constructor() {
|
|
26
|
-
this.default = toSignal(inject(TUI_DEFAULT_ERROR_MESSAGE));
|
|
27
|
-
this.injector = inject(INJECTOR);
|
|
28
|
-
this.tuiUnfinishedValidator = '';
|
|
29
|
-
this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), () => this.tuiUnfinishedValidator || this.default());
|
|
30
|
-
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiUnfinishedValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiUnfinishedValidator, isStandalone: true, selector: "[tuiUnfinishedValidator]", inputs: { tuiUnfinishedValidator: "tuiUnfinishedValidator" }, providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)], ngImport: i0 }); }
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiUnfinishedValidator, decorators: [{
|
|
35
|
-
type: Directive,
|
|
36
|
-
args: [{
|
|
37
|
-
standalone: true,
|
|
38
|
-
selector: '[tuiUnfinishedValidator]',
|
|
39
|
-
providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],
|
|
40
|
-
}]
|
|
41
|
-
}], propDecorators: { tuiUnfinishedValidator: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}] } });
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Generated bundle index. Do not edit.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
export { TuiUnfinishedValidator, tuiCreateUnfinishedValidator };
|
|
50
|
-
//# sourceMappingURL=taiga-ui-legacy-directives-unfinished-validator.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-directives-unfinished-validator.mjs","sources":["../../../projects/legacy/directives/unfinished-validator/unfinished.validator.ts","../../../projects/legacy/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/legacy/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.ts"],"sourcesContent":["import {type AbstractControl, type ValidatorFn} from '@angular/forms';\nimport {TuiValidationError} from '@taiga-ui/cdk/classes';\nimport {tuiIsHTMLElement, tuiIsInput} from '@taiga-ui/cdk/utils/dom';\nimport {type TuiFocusableElementAccessor} from '@taiga-ui/legacy/tokens';\nimport {type PolymorpheusContent} from '@taiga-ui/polymorpheus';\n\nexport function tuiCreateUnfinishedValidator(\n nativeInputGetter: () => TuiFocusableElementAccessor,\n message: PolymorpheusContent,\n): ValidatorFn {\n return ({\n value,\n }: AbstractControl): {unfinished: TuiValidationError | string} | null => {\n const nativeInput = nativeInputGetter();\n\n return value === null &&\n nativeInput &&\n tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&\n tuiIsInput(nativeInput.nativeFocusableElement) &&\n nativeInput.nativeFocusableElement.value !== ''\n ? {unfinished: new TuiValidationError(message)}\n : null;\n };\n}\n","import {Directive, inject, INJECTOR, Input} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_DEFAULT_ERROR_MESSAGE} from '@taiga-ui/core/tokens';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/legacy/tokens';\n\nimport {tuiCreateUnfinishedValidator} from './unfinished.validator';\n\n@Directive({\n standalone: true,\n selector: '[tuiUnfinishedValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],\n})\nexport class TuiUnfinishedValidator implements Validator {\n private readonly default = toSignal(inject(TUI_DEFAULT_ERROR_MESSAGE));\n private readonly injector = inject(INJECTOR);\n\n @Input()\n public tuiUnfinishedValidator = '';\n\n public readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n () => this.tuiUnfinishedValidator || this.default(),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAMgB,SAAA,4BAA4B,CACxC,iBAAoD,EACpD,OAA4B,EAAA;AAE5B,IAAA,OAAO,CAAC,EACJ,KAAK,GACS,KAAsD;AACpE,QAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE;QAEvC,OAAO,KAAK,KAAK,IAAI;YACjB,WAAW;AACX,YAAA,gBAAgB,CAAC,WAAW,CAAC,sBAAsB,CAAC;AACpD,YAAA,UAAU,CAAC,WAAW,CAAC,sBAAsB,CAAC;AAC9C,YAAA,WAAW,CAAC,sBAAsB,CAAC,KAAK,KAAK;cAC3C,EAAC,UAAU,EAAE,IAAI,kBAAkB,CAAC,OAAO,CAAC;cAC5C,IAAI;AACd,KAAC;AACL;;MCTa,sBAAsB,CAAA;AALnC,IAAA,WAAA,GAAA;QAMqB,IAAO,CAAA,OAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AACrD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAGrC,IAAsB,CAAA,sBAAA,GAAG,EAAE;QAElB,IAAQ,CAAA,QAAA,GAAG,4BAA4B,CACnD,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,MAAM,IAAI,CAAC,sBAAsB,IAAI,IAAI,CAAC,OAAO,EAAE,CACtD;AACJ;+GAXY,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,sBAAA,EAAA,wBAAA,EAAA,EAAA,SAAA,EAFpB,CAAC,UAAU,CAAC,aAAa,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAE3D,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;oBACpC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAA0B,sBAAA,EAAA,IAAI,CAAC,CAAC;AACvE,iBAAA;8BAMU,sBAAsB,EAAA,CAAA;sBAD5B;;;AClBL;;AAEG;;;;"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Optional, Self, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
-
import { TUI_VALUE_ACCESSOR } from '@taiga-ui/legacy/tokens';
|
|
5
|
-
import { identity } from 'rxjs';
|
|
6
|
-
|
|
7
|
-
const TUI_VALUE_ACCESSOR_PROVIDER = {
|
|
8
|
-
provide: TUI_VALUE_ACCESSOR,
|
|
9
|
-
deps: [[new Optional(), new Self(), NG_VALUE_ACCESSOR]],
|
|
10
|
-
useFactory: identity,
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
class TuiValueAccessorDirective {
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
15
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiValueAccessorDirective, isStandalone: false, selector: "[tuiValueAccessor]", providers: [TUI_VALUE_ACCESSOR_PROVIDER], ngImport: i0 }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorDirective, decorators: [{
|
|
18
|
-
type: Directive,
|
|
19
|
-
args: [{
|
|
20
|
-
standalone: false,
|
|
21
|
-
selector: '[tuiValueAccessor]',
|
|
22
|
-
providers: [TUI_VALUE_ACCESSOR_PROVIDER],
|
|
23
|
-
}]
|
|
24
|
-
}] });
|
|
25
|
-
|
|
26
|
-
class TuiValueAccessorModule {
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
28
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorModule, declarations: [TuiValueAccessorDirective], exports: [TuiValueAccessorDirective] }); }
|
|
29
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorModule }); }
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiValueAccessorModule, decorators: [{
|
|
32
|
-
type: NgModule,
|
|
33
|
-
args: [{
|
|
34
|
-
declarations: [TuiValueAccessorDirective],
|
|
35
|
-
exports: [TuiValueAccessorDirective],
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Generated bundle index. Do not edit.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
export { TUI_VALUE_ACCESSOR_PROVIDER, TuiValueAccessorDirective, TuiValueAccessorModule };
|
|
44
|
-
//# sourceMappingURL=taiga-ui-legacy-directives-value-accessor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-directives-value-accessor.mjs","sources":["../../../projects/legacy/directives/value-accessor/value-accessor.provider.ts","../../../projects/legacy/directives/value-accessor/value-accessor.directive.ts","../../../projects/legacy/directives/value-accessor/value-accessor.module.ts","../../../projects/legacy/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.ts"],"sourcesContent":["import {type FactoryProvider, Optional, Self} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {TUI_VALUE_ACCESSOR} from '@taiga-ui/legacy/tokens';\nimport {identity} from 'rxjs';\n\nexport const TUI_VALUE_ACCESSOR_PROVIDER: FactoryProvider = {\n provide: TUI_VALUE_ACCESSOR,\n deps: [[new Optional(), new Self(), NG_VALUE_ACCESSOR]],\n useFactory: identity,\n};\n","import {Directive} from '@angular/core';\n\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from './value-accessor.provider';\n\n@Directive({\n standalone: false,\n selector: '[tuiValueAccessor]',\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAKa,MAAA,2BAA2B,GAAoB;AACxD,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,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ated: drop in v5.0
|
|
6
|
-
*/
|
|
7
|
-
class TuiWrapperDirective {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.disabled = false;
|
|
10
|
-
this.readOnly = false;
|
|
11
|
-
this.hover = null;
|
|
12
|
-
this.active = null;
|
|
13
|
-
this.focus = false;
|
|
14
|
-
this.invalid = false;
|
|
15
|
-
this.appearance = '';
|
|
16
|
-
}
|
|
17
|
-
get computedInvalid() {
|
|
18
|
-
return !this.disabled && !this.readOnly && this.invalid;
|
|
19
|
-
}
|
|
20
|
-
get computedFocused() {
|
|
21
|
-
return this.focus && !this.disabled;
|
|
22
|
-
}
|
|
23
|
-
get interactiveState() {
|
|
24
|
-
if (this.disabled) {
|
|
25
|
-
return 'disabled';
|
|
26
|
-
}
|
|
27
|
-
if (this.readOnly) {
|
|
28
|
-
return 'readonly';
|
|
29
|
-
}
|
|
30
|
-
if (this.active) {
|
|
31
|
-
return 'active';
|
|
32
|
-
}
|
|
33
|
-
if (this.hover) {
|
|
34
|
-
return 'hover';
|
|
35
|
-
}
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
get noHover() {
|
|
39
|
-
return this.readOnly || this.hover === false;
|
|
40
|
-
}
|
|
41
|
-
get noActive() {
|
|
42
|
-
return this.readOnly || this.active === false;
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
45
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiWrapperDirective, isStandalone: false, selector: "[tuiWrapper]", inputs: { disabled: "disabled", readOnly: "readOnly", hover: "hover", active: "active", focus: "focus", invalid: "invalid", appearance: "appearance" }, host: { attributes: { "tuiAppearance": "" }, properties: { "attr.data-appearance": "appearance", "class._invalid": "computedInvalid", "class._focused": "computedFocused", "attr.data-state": "interactiveState", "class._no-hover": "noHover", "class._no-active": "noActive" } }, ngImport: i0 }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperDirective, decorators: [{
|
|
48
|
-
type: Directive,
|
|
49
|
-
args: [{
|
|
50
|
-
standalone: false,
|
|
51
|
-
selector: '[tuiWrapper]',
|
|
52
|
-
host: {
|
|
53
|
-
tuiAppearance: '', // So that basic appearance also works
|
|
54
|
-
'[attr.data-appearance]': 'appearance',
|
|
55
|
-
'[class._invalid]': 'computedInvalid',
|
|
56
|
-
'[class._focused]': 'computedFocused',
|
|
57
|
-
'[attr.data-state]': 'interactiveState',
|
|
58
|
-
'[class._no-hover]': 'noHover',
|
|
59
|
-
'[class._no-active]': 'noActive',
|
|
60
|
-
},
|
|
61
|
-
}]
|
|
62
|
-
}], propDecorators: { disabled: [{
|
|
63
|
-
type: Input
|
|
64
|
-
}], readOnly: [{
|
|
65
|
-
type: Input
|
|
66
|
-
}], hover: [{
|
|
67
|
-
type: Input
|
|
68
|
-
}], active: [{
|
|
69
|
-
type: Input
|
|
70
|
-
}], focus: [{
|
|
71
|
-
type: Input
|
|
72
|
-
}], invalid: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], appearance: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}] } });
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @deprecated: drop in v5.0
|
|
80
|
-
*/
|
|
81
|
-
class TuiWrapperModule {
|
|
82
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
83
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperModule, declarations: [TuiWrapperDirective], exports: [TuiWrapperDirective] }); }
|
|
84
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperModule }); }
|
|
85
|
-
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiWrapperModule, decorators: [{
|
|
87
|
-
type: NgModule,
|
|
88
|
-
args: [{
|
|
89
|
-
declarations: [TuiWrapperDirective],
|
|
90
|
-
exports: [TuiWrapperDirective],
|
|
91
|
-
}]
|
|
92
|
-
}] });
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Generated bundle index. Do not edit.
|
|
96
|
-
*/
|
|
97
|
-
|
|
98
|
-
export { TuiWrapperDirective, TuiWrapperModule };
|
|
99
|
-
//# sourceMappingURL=taiga-ui-legacy-directives-wrapper.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-directives-wrapper.mjs","sources":["../../../projects/legacy/directives/wrapper/wrapper.directive.ts","../../../projects/legacy/directives/wrapper/wrapper.module.ts","../../../projects/legacy/directives/wrapper/taiga-ui-legacy-directives-wrapper.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {type TuiLooseUnion} from '@taiga-ui/cdk/types';\nimport {type TuiInteractiveState} from '@taiga-ui/core/types';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Directive({\n standalone: false,\n selector: '[tuiWrapper]',\n host: {\n tuiAppearance: '', // So that basic appearance also works\n '[attr.data-appearance]': 'appearance',\n '[class._invalid]': 'computedInvalid',\n '[class._focused]': 'computedFocused',\n '[attr.data-state]': 'interactiveState',\n '[class._no-hover]': 'noHover',\n '[class._no-active]': 'noActive',\n },\n})\nexport class TuiWrapperDirective {\n @Input()\n public disabled = false;\n\n @Input()\n public readOnly = false;\n\n @Input()\n public hover: boolean | null = null;\n\n @Input()\n public active: boolean | null = null;\n\n @Input()\n public focus = false;\n\n @Input()\n public invalid = false;\n\n @Input()\n public appearance = '';\n\n protected get computedInvalid(): boolean {\n return !this.disabled && !this.readOnly && this.invalid;\n }\n\n protected get computedFocused(): boolean {\n return this.focus && !this.disabled;\n }\n\n protected get interactiveState(): TuiLooseUnion<TuiInteractiveState> | null {\n if (this.disabled) {\n return 'disabled';\n }\n\n if (this.readOnly) {\n return 'readonly';\n }\n\n if (this.active) {\n return 'active';\n }\n\n if (this.hover) {\n return 'hover';\n }\n\n return null;\n }\n\n protected get noHover(): boolean {\n return this.readOnly || this.hover === false;\n }\n\n protected get noActive(): boolean {\n return this.readOnly || this.active === false;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiWrapperDirective} from './wrapper.directive';\n\n/**\n * @deprecated: drop in v5.0\n */\n@NgModule({\n declarations: [TuiWrapperDirective],\n exports: [TuiWrapperDirective],\n})\nexport class TuiWrapperModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MAcU,mBAAmB,CAAA;AAbhC,IAAA,WAAA,GAAA;QAeW,IAAQ,CAAA,QAAA,GAAG,KAAK;QAGhB,IAAQ,CAAA,QAAA,GAAG,KAAK;QAGhB,IAAK,CAAA,KAAA,GAAmB,IAAI;QAG5B,IAAM,CAAA,MAAA,GAAmB,IAAI;QAG7B,IAAK,CAAA,KAAA,GAAG,KAAK;QAGb,IAAO,CAAA,OAAA,GAAG,KAAK;QAGf,IAAU,CAAA,UAAA,GAAG,EAAE;AAqCzB;AAnCG,IAAA,IAAc,eAAe,GAAA;AACzB,QAAA,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO;;AAG3D,IAAA,IAAc,eAAe,GAAA;QACzB,OAAO,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ;;AAGvC,IAAA,IAAc,gBAAgB,GAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACf,YAAA,OAAO,UAAU;;A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,cAAc;AACxB,oBAAA,IAAI,EAAE;wBACF,aAAa,EAAE,EAAE;AACjB,wBAAA,wBAAwB,EAAE,YAAY;AACtC,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,mBAAmB,EAAE,kBAAkB;AACvC,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,oBAAoB,EAAE,UAAU;AACnC,qBAAA;AACJ,iBAAA;8BAGU,QAAQ,EAAA,CAAA;sBADd;gBAIM,QAAQ,EAAA,CAAA;sBADd;gBAIM,KAAK,EAAA,CAAA;sBADX;gBAIM,MAAM,EAAA,CAAA;sBADZ;gBAIM,KAAK,EAAA,CAAA;sBADX;gBAIM,OAAO,EAAA,CAAA;sBADb;gBAIM,UAAU,EAAA,CAAA;sBADhB;;;ACnCL;;AAEG;MAKU,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,mBAAmB,CAAA,EAAA,CAAA,CAAA;gHAEpB,gBAAgB,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from '@taiga-ui/legacy/directives/legacy-dropdown-open-monitor';
|
|
2
|
-
export * from '@taiga-ui/legacy/directives/textfield-controller';
|
|
3
|
-
export * from '@taiga-ui/legacy/directives/unfinished-validator';
|
|
4
|
-
export * from '@taiga-ui/legacy/directives/value-accessor';
|
|
5
|
-
export * from '@taiga-ui/legacy/directives/wrapper';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Generated bundle index. Do not edit.
|
|
9
|
-
*/
|
|
10
|
-
//# sourceMappingURL=taiga-ui-legacy-directives.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-directives.mjs","sources":["../../../projects/legacy/directives/taiga-ui-legacy-directives.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Pipe } from '@angular/core';
|
|
3
|
-
import { CHAR_PLUS } from '@taiga-ui/cdk/constants';
|
|
4
|
-
import { tuiFormatPhone } from '@taiga-ui/legacy/utils';
|
|
5
|
-
|
|
6
|
-
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated: drop in v5.0
|
|
9
|
-
*/
|
|
10
|
-
class TuiFormatPhonePipe {
|
|
11
|
-
/**
|
|
12
|
-
* Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
|
|
13
|
-
* ```ts
|
|
14
|
-
* import {maskitoTransform} from '@maskito/core';
|
|
15
|
-
* import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
|
|
16
|
-
* import metadata from 'libphonenumber-js/min/metadata';
|
|
17
|
-
*
|
|
18
|
-
* @Component({
|
|
19
|
-
* standalone: true,
|
|
20
|
-
* imports: [MaskitoPipe],
|
|
21
|
-
* template: `
|
|
22
|
-
* Phone: {{'12125552368' | maskito: options}}
|
|
23
|
-
* <!-- Phone: +1 (212) 555-2368 -->
|
|
24
|
-
* `,
|
|
25
|
-
* })
|
|
26
|
-
* export class YourComponent {
|
|
27
|
-
* options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
* ___
|
|
31
|
-
* @deprecated Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
|
|
32
|
-
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
33
|
-
* @param value
|
|
34
|
-
* @param countryCode
|
|
35
|
-
* @param phoneMask
|
|
36
|
-
* @return formatted phone number string +7(XXX)XXX-XX-XX
|
|
37
|
-
*/
|
|
38
|
-
transform(value, countryCode = `${CHAR_PLUS}7`, phoneMask = '(###) ###-##-##') {
|
|
39
|
-
ngDevMode &&
|
|
40
|
-
console.assert(value !== undefined, 'Undefined was passed to tuiFormatPhone pipe');
|
|
41
|
-
return tuiFormatPhone(value, countryCode, phoneMask);
|
|
42
|
-
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
44
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiFormatPhonePipe, isStandalone: true, name: "tuiFormatPhone" }); }
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiFormatPhonePipe, decorators: [{
|
|
47
|
-
type: Pipe,
|
|
48
|
-
args: [{
|
|
49
|
-
standalone: true,
|
|
50
|
-
name: 'tuiFormatPhone',
|
|
51
|
-
}]
|
|
52
|
-
}] });
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Generated bundle index. Do not edit.
|
|
56
|
-
*/
|
|
57
|
-
|
|
58
|
-
export { TuiFormatPhonePipe };
|
|
59
|
-
//# sourceMappingURL=taiga-ui-legacy-pipes-format-phone.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-pipes-format-phone.mjs","sources":["../../../projects/legacy/pipes/format-phone/format-phone.pipe.ts","../../../projects/legacy/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.ts"],"sourcesContent":["/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {Pipe, type PipeTransform} from '@angular/core';\nimport {CHAR_PLUS} from '@taiga-ui/cdk/constants';\nimport {tuiFormatPhone} from '@taiga-ui/legacy/utils';\n\n/**\n * @deprecated: drop in v5.0\n */\n@Pipe({\n standalone: true,\n name: 'tuiFormatPhone',\n})\nexport class TuiFormatPhonePipe implements PipeTransform {\n /**\n * Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!\n * ```ts\n * import {maskitoTransform} from '@maskito/core';\n * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * @Component({\n * standalone: true,\n * imports: [MaskitoPipe],\n * template: `\n * Phone: {{'12125552368' | maskito: options}}\n * <!-- Phone: +1 (212) 555-2368 -->\n * `,\n * })\n * export class YourComponent {\n * options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});\n * }\n * ```\n * ___\n * @deprecated Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!\n * Formats phone number string of +7XXXXXXXXXX format with adding separator symbols\n * @param value\n * @param countryCode\n * @param phoneMask\n * @return formatted phone number string +7(XXX)XXX-XX-XX\n */\n public transform(\n value: string,\n countryCode = `${CHAR_PLUS}7`,\n phoneMask = '(###) ###-##-##',\n ): string {\n ngDevMode &&\n console.assert(\n value !== undefined,\n 'Undefined was passed to tuiFormatPhone pipe',\n );\n\n return tuiFormatPhone(value, countryCode, phoneMask);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;AAEG;MAKU,kBAAkB,CAAA;AAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BG;IACI,SAAS,CACZ,KAAa,EACb,WAAW,GAAG,CAAG,EAAA,SAAS,CAAG,CAAA,CAAA,EAC7B,SAAS,GAAG,iBAAiB,EAAA;QAE7B,SAAS;YACL,OAAO,CAAC,MAAM,CACV,KAAK,KAAK,SAAS,EACnB,6CAA6C,CAChD;QAEL,OAAO,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,CAAC;;+GAvC/C,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Pipe } from '@angular/core';
|
|
3
|
-
import { TUI_COUNTRIES_MASKS } from '@taiga-ui/legacy/tokens';
|
|
4
|
-
import { tuiIsoToCountryCode } from '@taiga-ui/legacy/utils';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated: drop in v5.0
|
|
8
|
-
* Use `getCountryCallingCode` from `libphonenumber-js/core` instead
|
|
9
|
-
* ```ts
|
|
10
|
-
* import {getCountryCallingCode} from 'libphonenumber-js/core';
|
|
11
|
-
* import metadata from 'libphonenumber-js/max/metadata';
|
|
12
|
-
*
|
|
13
|
-
* getCountryCallingCode('US', metadata) // 1
|
|
14
|
-
* getCountryCallingCode('GB', metadata) // 44
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
class TuiIsoToCountryCodePipe {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead
|
|
23
|
-
* ```ts
|
|
24
|
-
* import {getCountryCallingCode} from 'libphonenumber-js/core';
|
|
25
|
-
* import metadata from 'libphonenumber-js/max/metadata';
|
|
26
|
-
*
|
|
27
|
-
* getCountryCallingCode('US', metadata) // 1
|
|
28
|
-
* getCountryCallingCode('GB', metadata) // 44
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
transform(isoCode) {
|
|
32
|
-
return tuiIsoToCountryCode(this.countriesMasks, isoCode);
|
|
33
|
-
}
|
|
34
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsoToCountryCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
35
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiIsoToCountryCodePipe, isStandalone: true, name: "tuiIsoToCountryCode" }); }
|
|
36
|
-
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsoToCountryCodePipe, decorators: [{
|
|
38
|
-
type: Pipe,
|
|
39
|
-
args: [{
|
|
40
|
-
standalone: true,
|
|
41
|
-
name: 'tuiIsoToCountryCode',
|
|
42
|
-
}]
|
|
43
|
-
}] });
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Generated bundle index. Do not edit.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
export { TuiIsoToCountryCodePipe };
|
|
50
|
-
//# sourceMappingURL=taiga-ui-legacy-pipes-iso-to-country-code.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-pipes-iso-to-country-code.mjs","sources":["../../../projects/legacy/pipes/iso-to-country-code/iso-to-country-code.pipe.ts","../../../projects/legacy/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {TUI_COUNTRIES_MASKS} from '@taiga-ui/legacy/tokens';\nimport {tuiIsoToCountryCode} from '@taiga-ui/legacy/utils';\n\n/**\n * @deprecated: drop in v5.0\n * Use `getCountryCallingCode` from `libphonenumber-js/core` instead\n * ```ts\n * import {getCountryCallingCode} from 'libphonenumber-js/core';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * getCountryCallingCode('US', metadata) // 1\n * getCountryCallingCode('GB', metadata) // 44\n * ```\n */\n@Pipe({\n standalone: true,\n name: 'tuiIsoToCountryCode',\n})\nexport class TuiIsoToCountryCodePipe implements PipeTransform {\n private readonly countriesMasks = inject(TUI_COUNTRIES_MASKS);\n\n /**\n * @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead\n * ```ts\n * import {getCountryCallingCode} from 'libphonenumber-js/core';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * getCountryCallingCode('US', metadata) // 1\n * getCountryCallingCode('GB', metadata) // 44\n * ```\n */\n public transform(isoCode: TuiCountryIsoCode): string {\n return tuiIsoToCountryCode(this.countriesMasks, isoCode);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA;;;;;;;;;;AAUG;MAKU,uBAAuB,CAAA;AAJpC,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAehE;AAbG;;;;;;;;;AASG;AACI,IAAA,SAAS,CAAC,OAA0B,EAAA;QACvC,OAAO,mBAAmB,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC;;+GAdnD,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,qBAAA,EAAA,CAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAJnC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,qBAAqB;AAC9B,iBAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Pipe } from '@angular/core';
|
|
3
|
-
import { CHAR_PLUS } from '@taiga-ui/cdk/constants';
|
|
4
|
-
import { TUI_COUNTRIES_MASKS } from '@taiga-ui/legacy/tokens';
|
|
5
|
-
import { tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode, tuiNotKzRegion } from '@taiga-ui/legacy/utils';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated: drop in v5.0
|
|
9
|
-
* use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
|
|
10
|
-
* ```
|
|
11
|
-
* npm i @maskito/phone
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* import {maskitoGetCountryFromNumber} from '@maskito/phone';
|
|
16
|
-
* import metadata from 'libphonenumber-js/min/metadata';
|
|
17
|
-
*
|
|
18
|
-
* maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
|
|
19
|
-
* maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
class TuiToCountryCodePipe {
|
|
23
|
-
constructor() {
|
|
24
|
-
this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
|
|
28
|
-
* ```
|
|
29
|
-
* npm i @maskito/phone
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* ```ts
|
|
33
|
-
* import {maskitoGetCountryFromNumber} from '@maskito/phone';
|
|
34
|
-
* import metadata from 'libphonenumber-js/min/metadata';
|
|
35
|
-
*
|
|
36
|
-
* maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
|
|
37
|
-
* maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
transform(value, countries) {
|
|
41
|
-
return countries.find((countryIsoCode) => {
|
|
42
|
-
const ruCodeTest = countryIsoCode === 'RU' &&
|
|
43
|
-
/^[78]/.test(value) &&
|
|
44
|
-
/^(?!880[1-9 ])/.test(value) &&
|
|
45
|
-
value.length + 1 ===
|
|
46
|
-
tuiGetMaxAllowedPhoneLength(this.countriesMasks, 'RU');
|
|
47
|
-
const matched = ruCodeTest ||
|
|
48
|
-
(value.startsWith(tuiIsoToCountryCode(this.countriesMasks, countryIsoCode).replace(CHAR_PLUS, '')) &&
|
|
49
|
-
value.length + 1 ===
|
|
50
|
-
tuiGetMaxAllowedPhoneLength(this.countriesMasks, countryIsoCode));
|
|
51
|
-
if (matched) {
|
|
52
|
-
switch (countryIsoCode) {
|
|
53
|
-
case 'KZ':
|
|
54
|
-
return !tuiNotKzRegion(value);
|
|
55
|
-
case 'RU':
|
|
56
|
-
return tuiNotKzRegion(value);
|
|
57
|
-
default:
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return false;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
65
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, isStandalone: true, name: "tuiToCountryCode" }); }
|
|
66
|
-
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToCountryCodePipe, decorators: [{
|
|
68
|
-
type: Pipe,
|
|
69
|
-
args: [{
|
|
70
|
-
standalone: true,
|
|
71
|
-
name: 'tuiToCountryCode',
|
|
72
|
-
}]
|
|
73
|
-
}] });
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Generated bundle index. Do not edit.
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
export { TuiToCountryCodePipe };
|
|
80
|
-
//# sourceMappingURL=taiga-ui-legacy-pipes-to-country-code.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-pipes-to-country-code.mjs","sources":["../../../projects/legacy/pipes/to-country-code/to-country-code.pipe.ts","../../../projects/legacy/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {CHAR_PLUS} from '@taiga-ui/cdk/constants';\nimport {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\nimport {TUI_COUNTRIES_MASKS} from '@taiga-ui/legacy/tokens';\nimport {\n tuiGetMaxAllowedPhoneLength,\n tuiIsoToCountryCode,\n tuiNotKzRegion,\n} from '@taiga-ui/legacy/utils';\n\n/**\n * @deprecated: drop in v5.0\n * use `maskitoGetCountryFromNumber` from `@maskito/phone` instead\n * ```\n * npm i @maskito/phone\n * ```\n *\n * ```ts\n * import {maskitoGetCountryFromNumber} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'\n * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'\n * ```\n */\n@Pipe({\n standalone: true,\n name: 'tuiToCountryCode',\n})\nexport class TuiToCountryCodePipe implements PipeTransform {\n private readonly countriesMasks = inject(TUI_COUNTRIES_MASKS);\n\n /**\n * @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead\n * ```\n * npm i @maskito/phone\n * ```\n *\n * ```ts\n * import {maskitoGetCountryFromNumber} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'\n * maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'\n * ```\n */\n public transform(\n value: string,\n countries: readonly TuiCountryIsoCode[],\n ): TuiCountryIsoCode | undefined {\n return countries.find((countryIsoCode) => {\n const ruCodeTest =\n countryIsoCode === 'RU' &&\n /^[78]/.test(value) &&\n /^(?!880[1-9 ])/.test(value) &&\n value.length + 1 ===\n tuiGetMaxAllowedPhoneLength(this.countriesMasks, 'RU');\n\n const matched =\n ruCodeTest ||\n (value.startsWith(\n tuiIsoToCountryCode(this.countriesMasks, countryIsoCode).replace(\n CHAR_PLUS,\n '',\n ),\n ) &&\n value.length + 1 ===\n tuiGetMaxAllowedPhoneLength(this.countriesMasks, countryIsoCode));\n\n if (matched) {\n switch (countryIsoCode) {\n case 'KZ':\n return !tuiNotKzRegion(value);\n case 'RU':\n return tuiNotKzRegion(value);\n default:\n return true;\n }\n }\n\n return false;\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAUA;;;;;;;;;;;;;;AAcG;MAKU,oBAAoB,CAAA;AAJjC,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAC;AAqDhE;AAnDG;;;;;;;;;;;;;AAaG;IACI,SAAS,CACZ,KAAa,EACb,SAAuC,EAAA;AAEvC,QAAA,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,cAAc,KAAI;AACrC,YAAA,MAAM,UAAU,GACZ,cAAc,KAAK,IAAI;AACvB,gBAAA,OAAO,CAAC,IAAI,CAAC,K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code';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
//# sourceMappingURL=taiga-ui-legacy-pipes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-pipes.mjs","sources":["../../../projects/legacy/pipes/taiga-ui-legacy-pipes.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
|