@taiga-ui/legacy 4.52.0-canary.e444d19 → 4.52.0-canary.ec0802b
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/classes/abstract-textfield-host.d.ts +1 -1
- package/components/arrow/arrow.options.d.ts +1 -3
- package/components/arrow/arrow.providers.d.ts +1 -6
- package/components/dialog/dialog.component.d.ts +19 -0
- package/components/dialog/dialog.directive.d.ts +8 -0
- package/components/dialog/dialog.factory.d.ts +16 -0
- package/components/dialog/dialog.interfaces.d.ts +30 -0
- package/components/dialog/dialog.service.d.ts +10 -0
- package/components/dialog/dialog.tokens.d.ts +6 -0
- package/components/dialog/index.d.ts +6 -0
- package/components/index.d.ts +3 -22
- package/components/input/input.module.d.ts +4 -4
- package/components/input-date-range/input-date-range.component.d.ts +1 -2
- package/components/input-date-range/input-date-range.module.d.ts +8 -9
- package/components/input-date-time/input-date-time.component.d.ts +5 -5
- package/components/input-date-time/input-date-time.module.d.ts +6 -6
- package/components/input-month-range/input-month-range.module.d.ts +3 -3
- package/components/input-number/input-number.component.d.ts +1 -2
- package/components/input-number/input-number.module.d.ts +5 -5
- package/components/input-number/input-number.options.d.ts +1 -7
- package/components/input-range/input-range.component.d.ts +1 -1
- package/components/input-range/input-range.module.d.ts +4 -4
- 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/components/primitive-textfield/primitive-textfield-options.d.ts +2 -2
- package/components/primitive-textfield/primitive-textfield.module.d.ts +5 -5
- package/components/select/select.module.d.ts +8 -8
- package/components/select/select.options.d.ts +1 -7
- package/components/select-option/select-option.module.d.ts +3 -3
- package/directives/textfield-controller/textfield.options.d.ts +1 -3
- package/fesm2022/taiga-ui-legacy-classes.mjs +1 -3
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +4 -17
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +136 -0
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +33 -43
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +30 -36
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +10 -10
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +28 -43
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +18 -18
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input.mjs +9 -9
- package/fesm2022/taiga-ui-legacy-components-input.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-primitive-textfield.mjs +18 -18
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +6 -6
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +31 -40
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components.mjs +3 -22
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +3 -7
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +1 -3
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-utils.mjs +1 -7
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy.mjs +0 -2
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -1
- package/index.d.ts +0 -2
- package/package.json +14 -107
- package/utils/icons-path-factory.d.ts +1 -1
- package/utils/index.d.ts +0 -1
- package/components/color-selector/color-edit/color-edit.component.d.ts +0 -18
- package/components/color-selector/color-edit/color-edit.module.d.ts +0 -21
- package/components/color-selector/color-picker/color-picker.component.d.ts +0 -22
- package/components/color-selector/color-picker/color-picker.module.d.ts +0 -14
- package/components/color-selector/color-selector.component.d.ts +0 -47
- package/components/color-selector/color-selector.module.d.ts +0 -24
- package/components/color-selector/color-selector.options.d.ts +0 -25
- package/components/color-selector/flat-picker/flat-picker.component.d.ts +0 -12
- package/components/color-selector/flat-picker/flat-picker.module.d.ts +0 -12
- package/components/color-selector/index.d.ts +0 -16
- package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +0 -17
- package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +0 -12
- package/components/color-selector/linear-picker/linear-picker.component.d.ts +0 -10
- package/components/color-selector/linear-picker/linear-picker.module.d.ts +0 -12
- package/components/color-selector/palette/palette.component.d.ts +0 -10
- package/components/color-selector/palette/palette.module.d.ts +0 -13
- package/components/color-selector/services/picker.service.d.ts +0 -15
- 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-color/index.d.ts +0 -2
- package/components/input-color/input-color.component.d.ts +0 -30
- package/components/input-color/input-color.module.d.ts +0 -17
- package/components/input-copy/index.d.ts +0 -4
- package/components/input-copy/input-copy.component.d.ts +0 -33
- package/components/input-copy/input-copy.directive.d.ts +0 -11
- package/components/input-copy/input-copy.module.d.ts +0 -18
- package/components/input-copy/input-copy.options.d.ts +0 -26
- package/components/input-date/index.d.ts +0 -3
- package/components/input-date/input-date.component.d.ts +0 -62
- package/components/input-date/input-date.directive.d.ts +0 -19
- package/components/input-date/input-date.module.d.ts +0 -24
- package/components/input-date/native-date/native-date.component.d.ts +0 -15
- package/components/input-date-multi/index.d.ts +0 -2
- package/components/input-date-multi/input-date-multi.component.d.ts +0 -66
- package/components/input-date-multi/input-date-multi.module.d.ts +0 -20
- package/components/input-month/index.d.ts +0 -3
- package/components/input-month/input-month.component.d.ts +0 -44
- package/components/input-month/input-month.directive.d.ts +0 -19
- package/components/input-month/input-month.module.d.ts +0 -19
- package/components/input-password/index.d.ts +0 -4
- package/components/input-password/input-password.component.d.ts +0 -33
- package/components/input-password/input-password.directive.d.ts +0 -15
- package/components/input-password/input-password.module.d.ts +0 -19
- package/components/input-password/input-password.options.d.ts +0 -25
- package/components/input-phone/index.d.ts +0 -4
- package/components/input-phone/input-phone.component.d.ts +0 -49
- package/components/input-phone/input-phone.directive.d.ts +0 -13
- package/components/input-phone/input-phone.module.d.ts +0 -12
- package/components/input-phone/input-phone.options.d.ts +0 -13
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
- package/components/input-phone/utils/index.d.ts +0 -2
- package/components/input-phone-international/index.d.ts +0 -3
- package/components/input-phone-international/input-phone-international.component.d.ts +0 -43
- package/components/input-phone-international/input-phone-international.options.d.ts +0 -25
- package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -4
- 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/input-time/index.d.ts +0 -4
- package/components/input-time/input-time.component.d.ts +0 -62
- package/components/input-time/input-time.directive.d.ts +0 -17
- package/components/input-time/input-time.module.d.ts +0 -23
- package/components/input-time/input-time.options.d.ts +0 -42
- package/components/input-time/native-time/native-time.component.d.ts +0 -12
- package/components/input-year/index.d.ts +0 -3
- package/components/input-year/input-year.component.d.ts +0 -36
- package/components/input-year/input-year.directive.d.ts +0 -14
- package/components/input-year/input-year.module.d.ts +0 -18
- package/components/island/index.d.ts +0 -1
- package/components/island/island.directive.d.ts +0 -20
- 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/sheet/components/sheet/sheet.component.d.ts +0 -31
- package/components/sheet/components/sheet/sheet.providers.d.ts +0 -2
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +0 -11
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +0 -14
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +0 -15
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +0 -14
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +0 -9
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +0 -14
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +0 -17
- package/components/sheet/index.d.ts +0 -14
- package/components/sheet/sheet-options.d.ts +0 -27
- package/components/sheet/sheet-tokens.d.ts +0 -18
- package/components/sheet/sheet.d.ts +0 -21
- package/components/sheet/sheet.directive.d.ts +0 -17
- package/components/sheet/sheet.module.d.ts +0 -24
- package/components/sheet/sheet.service.d.ts +0 -17
- package/components/svg/content-processor.d.ts +0 -19
- package/components/svg/deprecated-icons.d.ts +0 -5
- package/components/svg/index.d.ts +0 -5
- package/components/svg/svg-options.d.ts +0 -50
- package/components/svg/svg.component.d.ts +0 -50
- package/components/svg/svg.service.d.ts +0 -21
- package/components/table-bar/index.d.ts +0 -4
- package/components/table-bar/table-bar.component.d.ts +0 -17
- package/components/table-bar/table-bar.directive.d.ts +0 -11
- package/components/table-bar/table-bar.options.d.ts +0 -31
- package/components/table-bar/table-bars-host.component.d.ts +0 -10
- package/components/table-bar/table-bars.service.d.ts +0 -11
- 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/fesm2022/taiga-ui-legacy-components-color-selector.mjs +0 -730
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +0 -300
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs +0 -127
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +0 -197
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +0 -272
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs +0 -372
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs +0 -231
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +0 -187
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +0 -215
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +0 -358
- package/fesm2022/taiga-ui-legacy-components-input-phone.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-time.mjs +0 -430
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs +0 -188
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-island.mjs +0 -68
- package/fesm2022/taiga-ui-legacy-components-island.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-sheet.mjs +0 -577
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +0 -387
- package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +0 -1
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +0 -147
- package/fesm2022/taiga-ui-legacy-components-table-bar.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-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-services.mjs +0 -42
- package/fesm2022/taiga-ui-legacy-services.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/services/index.d.ts +0 -1
- package/services/static-request.service.d.ts +0 -11
- package/utils/is-apple.d.ts +0 -5
|
@@ -1 +1 @@
|
|
|
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,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAe,CAAA,eAAA,GAAf,eAAe;;AAGpC,IAAA,IAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,mBAAmB,CAAC,UAAU,IAAI,IAAI,CAAC,gBAAgB;;AAGvE,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OA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,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
|
+
{"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 {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\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, tuiTextfieldOptionsProvider] = tuiCreateOptions(\n TUI_TEXTFIELD_DEFAULT_OPTIONS,\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,CAAA,gBAAA,GAAhB,gBAAgB;QAChB,IAAe,CAAA,eAAA,GAAf,eAAe;;AAGpC,IAAA,IAAW,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,mBAAmB,CAAC,UAAU,IAAI,IAAI,CAAC,gBAAgB;;AAGvE,IAAA,IAAW,OAAO,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO;;AAGxC,IAAA,IAAW,aAAa,GAAA;AACpB,QAAA,OAAO,IAAI,CAAC,sBAAsB,CAAC,aAAa,IAAI,EAAE;;AAG1D,IAA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AAC,SAAS,EAAE;AAEnB,YAAA,OAAO,IAAI,sBAAsB,CAC7B,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,GAAG,WAAW,CACjB;SACJ;AACJ,KAAA;;;ACtGL;;AAEG;;;;"}
|
|
@@ -2,7 +2,6 @@ import { TuiValidationError } from '@taiga-ui/cdk/classes';
|
|
|
2
2
|
import { tuiIsHTMLElement, tuiIsInput } from '@taiga-ui/cdk/utils/dom';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { inject, INJECTOR, Input, Directive } from '@angular/core';
|
|
5
|
-
import { toSignal } from '@angular/core/rxjs-interop';
|
|
6
5
|
import { NG_VALIDATORS } from '@angular/forms';
|
|
7
6
|
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
8
7
|
import { TUI_DEFAULT_ERROR_MESSAGE } from '@taiga-ui/core/tokens';
|
|
@@ -23,7 +22,7 @@ function tuiCreateUnfinishedValidator(nativeInputGetter, message) {
|
|
|
23
22
|
|
|
24
23
|
class TuiUnfinishedValidator {
|
|
25
24
|
constructor() {
|
|
26
|
-
this.default =
|
|
25
|
+
this.default = inject(TUI_DEFAULT_ERROR_MESSAGE);
|
|
27
26
|
this.injector = inject(INJECTOR);
|
|
28
27
|
this.tuiUnfinishedValidator = '';
|
|
29
28
|
this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), () => this.tuiUnfinishedValidator || this.default());
|
|
@@ -34,7 +33,6 @@ class TuiUnfinishedValidator {
|
|
|
34
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiUnfinishedValidator, decorators: [{
|
|
35
34
|
type: Directive,
|
|
36
35
|
args: [{
|
|
37
|
-
standalone: true,
|
|
38
36
|
selector: '[tuiUnfinishedValidator]',
|
|
39
37
|
providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],
|
|
40
38
|
}]
|
|
@@ -1 +1 @@
|
|
|
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 {
|
|
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 {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 selector: '[tuiUnfinishedValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],\n})\nexport class TuiUnfinishedValidator implements Validator {\n private readonly default = 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,CA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S, TUI_VERSION } from '@taiga-ui/cdk/constants';
|
|
2
|
-
import { isApple } from '@ng-web-apis/platform';
|
|
3
2
|
import { tuiDropdownOptionsProvider } from '@taiga-ui/core/directives/dropdown';
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -165,11 +164,6 @@ function tuiIconsPathFactory(staticPath) {
|
|
|
165
164
|
};
|
|
166
165
|
}
|
|
167
166
|
|
|
168
|
-
/**
|
|
169
|
-
* @deprecated: drop in v5.0
|
|
170
|
-
*/
|
|
171
|
-
const tuiIsApple = isApple;
|
|
172
|
-
|
|
173
167
|
/**
|
|
174
168
|
* @deprecated: drop in v5.0
|
|
175
169
|
*/
|
|
@@ -264,5 +258,5 @@ const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({
|
|
|
264
258
|
* Generated bundle index. Do not edit.
|
|
265
259
|
*/
|
|
266
260
|
|
|
267
|
-
export { DEFAULT_ICONS_PATH, FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_CACHE_BUSTING_PAYLOAD, TUI_DATE_MODE_MASKITO_ADAPTER, tuiCapitalizeFirstLetter, tuiFormatPhone, tuiGetBorder, tuiGetMaxAllowedPhoneLength, tuiGetSafeAreaSize, tuiIconsPathFactory,
|
|
261
|
+
export { DEFAULT_ICONS_PATH, FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_CACHE_BUSTING_PAYLOAD, TUI_DATE_MODE_MASKITO_ADAPTER, tuiCapitalizeFirstLetter, tuiFormatPhone, tuiGetBorder, tuiGetMaxAllowedPhoneLength, tuiGetSafeAreaSize, tuiIconsPathFactory, tuiIsPresumedHTMLString, tuiIsoToCountryCode, tuiNotKzRegion, tuiProcessIcon };
|
|
268
262
|
//# sourceMappingURL=taiga-ui-legacy-utils.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-utils.mjs","sources":["../../../projects/legacy/utils/capitalize-first-letter.ts","../../../projects/legacy/utils/date-mode-maskito-adapter.ts","../../../projects/legacy/utils/format-phone.ts","../../../projects/legacy/utils/get-border.ts","../../../projects/legacy/utils/get-max-allowed-phone-length.ts","../../../projects/legacy/utils/get-safe-area-size.ts","../../../projects/legacy/utils/icons-path-factory.ts","../../../projects/legacy/utils/is-apple.ts","../../../projects/legacy/utils/is-presumed-html-string.ts","../../../projects/legacy/utils/iso-to-country-code.ts","../../../projects/legacy/utils/not-kz-region.ts","../../../projects/legacy/utils/process-icon.ts","../../../projects/legacy/utils/specific-dropdown-controllers.ts","../../../projects/legacy/utils/taiga-ui-legacy-utils.ts"],"sourcesContent":["/**\n * @deprecated: drop in v5.0\n */\nexport function tuiCapitalizeFirstLetter(value: string): string {\n return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;\n}\n","import {type MaskitoDateMode} from '@maskito/kit';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_DATE_MODE_MASKITO_ADAPTER: Record<TuiDateMode, MaskitoDateMode> = {\n DMY: 'dd/mm/yyyy',\n MDY: 'mm/dd/yyyy',\n YMD: 'yyyy/mm/dd',\n};\n","import {CHAR_PLUS} from '@taiga-ui/cdk/constants';\n\n/**\n * @deprecated: drop in v5.0\n * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!\n * @example\n * import {maskitoTransform} from '@maskito/core';\n *\n * const mask = {\n * mask: ['+', '1', ' ', /\\d/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/],\n * };\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @example\n * import {maskitoTransform} from '@maskito/core';\n * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});\n *\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>\n * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,\n * adding parentheses and hyphens.\n *\n * @param value the input string\n * @param countryCode a country code\n * @param phoneMask a phone number mask\n * @return the formatted phone string of the form +7 XXX XXX-XX-XX\n */\nexport function tuiFormatPhone(\n value: string,\n countryCode: string,\n phoneMask: string,\n): string {\n if (!value) {\n return '';\n }\n\n let result = countryCode;\n\n countryCode = countryCode.replaceAll(/[()]/g, '');\n\n if (!value.startsWith(countryCode)) {\n value = countryCode + value.replace(CHAR_PLUS, '');\n }\n\n const splitPhoneMask = phoneMask.split('');\n const splitValue = value.slice(countryCode.length).split('');\n\n result += ' ';\n\n if (splitValue.length === 0) {\n return result;\n }\n\n for (const mask of splitPhoneMask) {\n if (splitValue.length === 0) {\n break;\n }\n\n if (mask === '#') {\n result += splitValue[0] || '';\n splitValue.splice(0, 1);\n } else {\n result += mask;\n }\n }\n\n return result;\n}\n","import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nconst ITEM_SIZE = 1.5;\nconst CONTENT_SIZE = 2.5;\n\n/**\n * @deprecated: drop in v5.0\n */\n\nexport function tuiGetBorder(\n hasIcon: boolean,\n hasCleaner = false,\n hasTooltip = false,\n hasContent = false,\n size: TuiSizeL | TuiSizeS = 'm',\n): number {\n const offset = size === 's' ? 0 : 0.25;\n let border = 0;\n\n if (hasIcon) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasCleaner) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasTooltip) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasContent) {\n border += CONTENT_SIZE + offset;\n }\n\n return border;\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\n/**\n * @deprecated: drop in v5.0\n * use `validatePhoneNumberLength` from `libphonenumber-js` instead\n * ```\n * npm i libphonenumber-js\n * ```\n *\n * ```ts\n * import {validatePhoneNumberLength} from 'libphonenumber-js';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * const validationError = validatePhoneNumberLength(\n * '+7 777 777-7777',\n * 'KZ'\n * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';\n *\n * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'\n * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined\n * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined\n * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'\n * ```\n */\nexport function tuiGetMaxAllowedPhoneLength(\n countries: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): number {\n return countries[isoCode].replaceAll(/[()\\- ]/g, '').length;\n}\n","/**\n * @deprecated: drop in v5.0\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function tuiGetSafeAreaSize(): number {\n if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {\n return 0;\n }\n\n const div = document.createElement('div');\n\n div.style.paddingTop = 'env(safe-area-inset-top)';\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","import {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}` as const;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = (name) =>\n name.includes('.svg#') ? name : `#${name}`;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIconsPathFactory(staticPath: string): TuiStringHandler<string> {\n const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;\n\n return (name) => {\n if (name.startsWith('tuiIcon')) {\n return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;\n }\n\n return DEFAULT_ICONS_PATH(name);\n };\n}\n","import {isApple} from '@ng-web-apis/platform';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const tuiIsApple = isApple;\n","/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIsPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\nconst MASK_AFTER_CODE_REGEXP = /\\(#+\\)|[#\\- ]/g;\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 */\nexport function tuiIsoToCountryCode(\n countriesMasks: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): string {\n return countriesMasks[isoCode].replaceAll(MASK_AFTER_CODE_REGEXP, '');\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/max/metadata';\n *\n * const countryIsoCode = maskitoGetCountryFromNumber(\n * '+7 777 777-7777',\n * metadata\n * );\n *\n * countryIsoCode !== 'KZ'\n * ```\n */\nexport function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n","const WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\nconst START = '<svg';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiProcessIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf('>')));\n\n if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%') ||\n widthString.includes('em') ||\n heightString.includes('em')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","import {tuiDropdownOptionsProvider} from '@taiga-ui/core/directives/dropdown';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({\n limitWidth: 'fixed',\n align: 'right',\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG;AACG,SAAU,wBAAwB,CAAC,KAAa,EAAA;AAClD,IAAA,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,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-mode-maskito-adapter.ts","../../../projects/legacy/utils/format-phone.ts","../../../projects/legacy/utils/get-border.ts","../../../projects/legacy/utils/get-max-allowed-phone-length.ts","../../../projects/legacy/utils/get-safe-area-size.ts","../../../projects/legacy/utils/icons-path-factory.ts","../../../projects/legacy/utils/is-presumed-html-string.ts","../../../projects/legacy/utils/iso-to-country-code.ts","../../../projects/legacy/utils/not-kz-region.ts","../../../projects/legacy/utils/process-icon.ts","../../../projects/legacy/utils/specific-dropdown-controllers.ts","../../../projects/legacy/utils/taiga-ui-legacy-utils.ts"],"sourcesContent":["/**\n * @deprecated: drop in v5.0\n */\nexport function tuiCapitalizeFirstLetter(value: string): string {\n return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;\n}\n","import {type MaskitoDateMode} from '@maskito/kit';\nimport {type TuiDateMode} from '@taiga-ui/cdk/date-time';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_DATE_MODE_MASKITO_ADAPTER: Record<TuiDateMode, MaskitoDateMode> = {\n DMY: 'dd/mm/yyyy',\n MDY: 'mm/dd/yyyy',\n YMD: 'yyyy/mm/dd',\n};\n","import {CHAR_PLUS} from '@taiga-ui/cdk/constants';\n\n/**\n * @deprecated: drop in v5.0\n * Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead!\n * @example\n * import {maskitoTransform} from '@maskito/core';\n *\n * const mask = {\n * mask: ['+', '1', ' ', /\\d/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/],\n * };\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @example\n * import {maskitoTransform} from '@maskito/core';\n * import {maskitoPhoneOptionsGenerator} from '@maskito/phone';\n * import metadata from 'libphonenumber-js/min/metadata';\n *\n * const options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});\n *\n * maskitoTransform('12125552368', mask); // +1 (212) 555-2368\n * ___\n * @deprecated Use {@link https://maskito.dev/core-concepts/transformer maskitoTransform} instead<br/>\n * Formats a string with the phone format +7XXXXXXXXXXXX or XXXXXXXXXXXX,\n * adding parentheses and hyphens.\n *\n * @param value the input string\n * @param countryCode a country code\n * @param phoneMask a phone number mask\n * @return the formatted phone string of the form +7 XXX XXX-XX-XX\n */\nexport function tuiFormatPhone(\n value: string,\n countryCode: string,\n phoneMask: string,\n): string {\n if (!value) {\n return '';\n }\n\n let result = countryCode;\n\n countryCode = countryCode.replaceAll(/[()]/g, '');\n\n if (!value.startsWith(countryCode)) {\n value = countryCode + value.replace(CHAR_PLUS, '');\n }\n\n const splitPhoneMask = phoneMask.split('');\n const splitValue = value.slice(countryCode.length).split('');\n\n result += ' ';\n\n if (splitValue.length === 0) {\n return result;\n }\n\n for (const mask of splitPhoneMask) {\n if (splitValue.length === 0) {\n break;\n }\n\n if (mask === '#') {\n result += splitValue[0] || '';\n splitValue.splice(0, 1);\n } else {\n result += mask;\n }\n }\n\n return result;\n}\n","import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\n\nconst ITEM_SIZE = 1.5;\nconst CONTENT_SIZE = 2.5;\n\n/**\n * @deprecated: drop in v5.0\n */\n\nexport function tuiGetBorder(\n hasIcon: boolean,\n hasCleaner = false,\n hasTooltip = false,\n hasContent = false,\n size: TuiSizeL | TuiSizeS = 'm',\n): number {\n const offset = size === 's' ? 0 : 0.25;\n let border = 0;\n\n if (hasIcon) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasCleaner) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasTooltip) {\n border += ITEM_SIZE + offset;\n }\n\n if (hasContent) {\n border += CONTENT_SIZE + offset;\n }\n\n return border;\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\n/**\n * @deprecated: drop in v5.0\n * use `validatePhoneNumberLength` from `libphonenumber-js` instead\n * ```\n * npm i libphonenumber-js\n * ```\n *\n * ```ts\n * import {validatePhoneNumberLength} from 'libphonenumber-js';\n * import metadata from 'libphonenumber-js/max/metadata';\n *\n * const validationError = validatePhoneNumberLength(\n * '+7 777 777-7777',\n * 'KZ'\n * ) // undefined | 'INVALID_COUNTRY' | 'NOT_A_NUMBER' | 'TOO_SHORT' | 'TOO_LONG' | 'INVALID_LENGTH';\n *\n * validatePhoneNumberLength('+7777777', 'KZ'); // 'TOO_SHORT'\n * validatePhoneNumberLength('+7 777 777-7777', 'KZ'); // undefined\n * validatePhoneNumberLength('+77777777777', 'KZ'); // undefined\n * validatePhoneNumberLength('+777777777777777777', 'KZ'); // 'TOO_LONG'\n * ```\n */\nexport function tuiGetMaxAllowedPhoneLength(\n countries: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): number {\n return countries[isoCode].replaceAll(/[()\\- ]/g, '').length;\n}\n","/**\n * @deprecated: drop in v5.0\n * Calculates size of safe area on mobile devices (status bars)\n *\n * ATTENTION: Only use in browser environment\n */\nexport function tuiGetSafeAreaSize(): number {\n if (!CSS.supports('padding-top: env(safe-area-inset-top)')) {\n return 0;\n }\n\n const div = document.createElement('div');\n\n div.style.paddingTop = 'env(safe-area-inset-top)';\n document.body.appendChild(div);\n\n const safeAreaSize = parseInt(window.getComputedStyle(div).paddingTop, 10) || 0;\n\n document.body.removeChild(div);\n\n return safeAreaSize;\n}\n","import {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const TUI_CACHE_BUSTING_PAYLOAD = `?v=${TUI_VERSION}` as const;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const DEFAULT_ICONS_PATH: TuiStringHandler<string> = (name) =>\n name.includes('.svg#') ? name : `#${name}`;\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIconsPathFactory(staticPath: string): TuiStringHandler<string> {\n const base = staticPath.endsWith('/') ? staticPath : `${staticPath}/`;\n\n return (name) => {\n if (name.startsWith('tuiIcon')) {\n return `${base}${name}.svg${TUI_CACHE_BUSTING_PAYLOAD}#${name}`;\n }\n\n return DEFAULT_ICONS_PATH(name);\n };\n}\n","/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIsPresumedHTMLString(candidate: string): boolean {\n const trimmed = candidate.trim();\n\n return trimmed.startsWith('<') && trimmed.endsWith('>');\n}\n","import {type TuiCountryIsoCode} from '@taiga-ui/i18n/types';\n\nconst MASK_AFTER_CODE_REGEXP = /\\(#+\\)|[#\\- ]/g;\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 */\nexport function tuiIsoToCountryCode(\n countriesMasks: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): string {\n return countriesMasks[isoCode].replaceAll(MASK_AFTER_CODE_REGEXP, '');\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/max/metadata';\n *\n * const countryIsoCode = maskitoGetCountryFromNumber(\n * '+7 777 777-7777',\n * metadata\n * );\n *\n * countryIsoCode !== 'KZ'\n * ```\n */\nexport function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n","const WIDTH_SEARCH = 'width=\"';\nconst HEIGHT_SEARCH = 'height=\"';\nconst START = '<svg';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiProcessIcon(source: string, name: string): string {\n if (source.includes(`id=\"${name}\"`)) {\n return source;\n }\n\n const src = source.slice(Math.max(0, source.indexOf(START)));\n const attributes = src.slice(0, Math.max(0, src.indexOf('>')));\n\n if (!attributes?.includes(WIDTH_SEARCH) || !attributes.includes(HEIGHT_SEARCH)) {\n return `${src.replace(\n START,\n `<svg xmlns=\"http://www.w3.org/2000/svg\"><g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg`,\n )}</g></svg>`;\n }\n\n const indexOfWidth = attributes.indexOf(WIDTH_SEARCH);\n const indexOfHeight = attributes.indexOf(HEIGHT_SEARCH);\n const widthOffset = indexOfWidth + WIDTH_SEARCH.length;\n const heightOffset = indexOfHeight + HEIGHT_SEARCH.length;\n const widthString = attributes.slice(\n widthOffset,\n attributes.indexOf('\"', widthOffset),\n );\n const heightString = attributes.slice(\n heightOffset,\n attributes.indexOf('\"', heightOffset),\n );\n\n if (\n !heightString ||\n !widthString ||\n widthString.includes('%') ||\n heightString.includes('%') ||\n widthString.includes('em') ||\n heightString.includes('em')\n ) {\n return src.replace(START, `<svg id=\"${name}\"`);\n }\n\n const width = parseInt(widthString, 10);\n const height = parseInt(heightString, 10);\n\n return `<g id=\"${name}\" xmlns=\"http://www.w3.org/2000/svg\"><svg x=\"50%\" y=\"50%\" width=\"${\n width / 16\n }em\" height=\"${\n height / 16\n }em\" overflow=\"visible\" viewBox=\"0 0 ${width} ${height}\"><svg x=\"${-width / 2}\" y=\"${\n -height / 2\n }\">${src}</svg></svg></g>`;\n}\n","import {tuiDropdownOptionsProvider} from '@taiga-ui/core/directives/dropdown';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport const FIXED_DROPDOWN_CONTROLLER_PROVIDER = tuiDropdownOptionsProvider({\n limitWidth: 'fixed',\n align: 'right',\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;;AAEG;AACG,SAAU,wBAAwB,CAAC,KAAa,EAAA;AAClD,IAAA,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,EAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;AAC9D;;ACFA;;AAEG;AACU,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AK,CACjC,YAAY,EACZ,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,YAAY,CAAC,CACxC;AAED,IAAA,IACI,CAAC,YAAY;AACb,QAAA,CAAC,WAAW;AACZ,QAAA,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC;AACzB,QAAA,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC;AAC1B,QAAA,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC1B,QAAA,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC7B;QACE,OAAO,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,CAAY,SAAA,EAAA,IAAI,CAAG,CAAA,CAAA,CAAC;;IAGlD,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,EAAE,CAAC;IACvC,MAAM,MAAM,GAAG,QAAQ,CAAC,YAAY,EAAE,EAAE,CAAC;IAEzC,OAAO,CAAA,OAAA,EAAU,IAAI,CAAA,kEAAA,EACjB,KAAK,GAAG,EACZ,CAAA,YAAA,EACI,MAAM,GAAG,EACb,CAAA,oCAAA,EAAuC,KAAK,CAAA,CAAA,EAAI,MAAM,CAAA,UAAA,EAAa,CAAC,KAAK,GAAG,CAAC,CACzE,KAAA,EAAA,CAAC,MAAM,GAAG,CACd,CAAA,EAAA,EAAK,GAAG,CAAA,gBAAA,CAAkB;AAC9B;;ACtDA;;AAEG;AACI,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AACzE,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,KAAK,EAAE,OAAO;AACjB,CAAA;;ACRD;;AAEG;;;;"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export * from '@taiga-ui/legacy/classes';
|
|
2
2
|
export * from '@taiga-ui/legacy/components';
|
|
3
3
|
export * from '@taiga-ui/legacy/directives';
|
|
4
|
-
export * from '@taiga-ui/legacy/pipes';
|
|
5
|
-
export * from '@taiga-ui/legacy/services';
|
|
6
4
|
export * from '@taiga-ui/legacy/tokens';
|
|
7
5
|
export * from '@taiga-ui/legacy/utils';
|
|
8
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-legacy.mjs","sources":["../../../projects/legacy/taiga-ui-legacy.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;;AAEG"}
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * from '@taiga-ui/legacy/classes';
|
|
2
2
|
export * from '@taiga-ui/legacy/components';
|
|
3
3
|
export * from '@taiga-ui/legacy/directives';
|
|
4
|
-
export * from '@taiga-ui/legacy/pipes';
|
|
5
|
-
export * from '@taiga-ui/legacy/services';
|
|
6
4
|
export * from '@taiga-ui/legacy/tokens';
|
|
7
5
|
export * from '@taiga-ui/legacy/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/legacy",
|
|
3
|
-
"version": "4.52.0-canary.
|
|
3
|
+
"version": "4.52.0-canary.ec0802b",
|
|
4
4
|
"description": "Legacy Taiga UI entities from the previous major release to simplify migration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legacy",
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
"outdated"
|
|
9
9
|
],
|
|
10
10
|
"homepage": "https://github.com/taiga-family/taiga-ui",
|
|
11
|
-
"repository":
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/taiga-family/taiga-ui"
|
|
14
|
+
},
|
|
12
15
|
"license": "Apache-2.0",
|
|
13
16
|
"exports": {
|
|
14
17
|
"./styles/*": "./styles/*",
|
|
@@ -31,14 +34,6 @@
|
|
|
31
34
|
"types": "./directives/index.d.ts",
|
|
32
35
|
"default": "./fesm2022/taiga-ui-legacy-directives.mjs"
|
|
33
36
|
},
|
|
34
|
-
"./pipes": {
|
|
35
|
-
"types": "./pipes/index.d.ts",
|
|
36
|
-
"default": "./fesm2022/taiga-ui-legacy-pipes.mjs"
|
|
37
|
-
},
|
|
38
|
-
"./services": {
|
|
39
|
-
"types": "./services/index.d.ts",
|
|
40
|
-
"default": "./fesm2022/taiga-ui-legacy-services.mjs"
|
|
41
|
-
},
|
|
42
37
|
"./tokens": {
|
|
43
38
|
"types": "./tokens/index.d.ts",
|
|
44
39
|
"default": "./fesm2022/taiga-ui-legacy-tokens.mjs"
|
|
@@ -51,34 +46,14 @@
|
|
|
51
46
|
"types": "./components/arrow/index.d.ts",
|
|
52
47
|
"default": "./fesm2022/taiga-ui-legacy-components-arrow.mjs"
|
|
53
48
|
},
|
|
54
|
-
"./components/
|
|
55
|
-
"types": "./components/
|
|
56
|
-
"default": "./fesm2022/taiga-ui-legacy-components-
|
|
57
|
-
},
|
|
58
|
-
"./components/combo-box": {
|
|
59
|
-
"types": "./components/combo-box/index.d.ts",
|
|
60
|
-
"default": "./fesm2022/taiga-ui-legacy-components-combo-box.mjs"
|
|
49
|
+
"./components/dialog": {
|
|
50
|
+
"types": "./components/dialog/index.d.ts",
|
|
51
|
+
"default": "./fesm2022/taiga-ui-legacy-components-dialog.mjs"
|
|
61
52
|
},
|
|
62
53
|
"./components/input": {
|
|
63
54
|
"types": "./components/input/index.d.ts",
|
|
64
55
|
"default": "./fesm2022/taiga-ui-legacy-components-input.mjs"
|
|
65
56
|
},
|
|
66
|
-
"./components/input-color": {
|
|
67
|
-
"types": "./components/input-color/index.d.ts",
|
|
68
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-color.mjs"
|
|
69
|
-
},
|
|
70
|
-
"./components/input-copy": {
|
|
71
|
-
"types": "./components/input-copy/index.d.ts",
|
|
72
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-copy.mjs"
|
|
73
|
-
},
|
|
74
|
-
"./components/input-date": {
|
|
75
|
-
"types": "./components/input-date/index.d.ts",
|
|
76
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-date.mjs"
|
|
77
|
-
},
|
|
78
|
-
"./components/input-date-multi": {
|
|
79
|
-
"types": "./components/input-date-multi/index.d.ts",
|
|
80
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-date-multi.mjs"
|
|
81
|
-
},
|
|
82
57
|
"./components/input-date-range": {
|
|
83
58
|
"types": "./components/input-date-range/index.d.ts",
|
|
84
59
|
"default": "./fesm2022/taiga-ui-legacy-components-input-date-range.mjs"
|
|
@@ -87,10 +62,6 @@
|
|
|
87
62
|
"types": "./components/input-date-time/index.d.ts",
|
|
88
63
|
"default": "./fesm2022/taiga-ui-legacy-components-input-date-time.mjs"
|
|
89
64
|
},
|
|
90
|
-
"./components/input-month": {
|
|
91
|
-
"types": "./components/input-month/index.d.ts",
|
|
92
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-month.mjs"
|
|
93
|
-
},
|
|
94
65
|
"./components/input-month-range": {
|
|
95
66
|
"types": "./components/input-month-range/index.d.ts",
|
|
96
67
|
"default": "./fesm2022/taiga-ui-legacy-components-input-month-range.mjs"
|
|
@@ -99,49 +70,17 @@
|
|
|
99
70
|
"types": "./components/input-number/index.d.ts",
|
|
100
71
|
"default": "./fesm2022/taiga-ui-legacy-components-input-number.mjs"
|
|
101
72
|
},
|
|
102
|
-
"./components/input-password": {
|
|
103
|
-
"types": "./components/input-password/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-password.mjs"
|
|
105
|
-
},
|
|
106
|
-
"./components/input-phone": {
|
|
107
|
-
"types": "./components/input-phone/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-phone.mjs"
|
|
109
|
-
},
|
|
110
|
-
"./components/input-phone-international": {
|
|
111
|
-
"types": "./components/input-phone-international/index.d.ts",
|
|
112
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-phone-international.mjs"
|
|
113
|
-
},
|
|
114
73
|
"./components/input-range": {
|
|
115
74
|
"types": "./components/input-range/index.d.ts",
|
|
116
75
|
"default": "./fesm2022/taiga-ui-legacy-components-input-range.mjs"
|
|
117
76
|
},
|
|
118
|
-
"./components/
|
|
119
|
-
"types": "./components/
|
|
120
|
-
"default": "./fesm2022/taiga-ui-legacy-components-
|
|
121
|
-
},
|
|
122
|
-
"./components/input-tag": {
|
|
123
|
-
"types": "./components/input-tag/index.d.ts",
|
|
124
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-tag.mjs"
|
|
77
|
+
"./components/mobile-dialog": {
|
|
78
|
+
"types": "./components/mobile-dialog/index.d.ts",
|
|
79
|
+
"default": "./fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs"
|
|
125
80
|
},
|
|
126
|
-
"./components/
|
|
127
|
-
"types": "./components/
|
|
128
|
-
"default": "./fesm2022/taiga-ui-legacy-components-
|
|
129
|
-
},
|
|
130
|
-
"./components/input-year": {
|
|
131
|
-
"types": "./components/input-year/index.d.ts",
|
|
132
|
-
"default": "./fesm2022/taiga-ui-legacy-components-input-year.mjs"
|
|
133
|
-
},
|
|
134
|
-
"./components/island": {
|
|
135
|
-
"types": "./components/island/index.d.ts",
|
|
136
|
-
"default": "./fesm2022/taiga-ui-legacy-components-island.mjs"
|
|
137
|
-
},
|
|
138
|
-
"./components/multi-select": {
|
|
139
|
-
"types": "./components/multi-select/index.d.ts",
|
|
140
|
-
"default": "./fesm2022/taiga-ui-legacy-components-multi-select.mjs"
|
|
141
|
-
},
|
|
142
|
-
"./components/multi-select-option": {
|
|
143
|
-
"types": "./components/multi-select-option/index.d.ts",
|
|
144
|
-
"default": "./fesm2022/taiga-ui-legacy-components-multi-select-option.mjs"
|
|
81
|
+
"./components/pdf-viewer": {
|
|
82
|
+
"types": "./components/pdf-viewer/index.d.ts",
|
|
83
|
+
"default": "./fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs"
|
|
145
84
|
},
|
|
146
85
|
"./components/primitive-textfield": {
|
|
147
86
|
"types": "./components/primitive-textfield/index.d.ts",
|
|
@@ -155,26 +94,6 @@
|
|
|
155
94
|
"types": "./components/select-option/index.d.ts",
|
|
156
95
|
"default": "./fesm2022/taiga-ui-legacy-components-select-option.mjs"
|
|
157
96
|
},
|
|
158
|
-
"./components/sheet": {
|
|
159
|
-
"types": "./components/sheet/index.d.ts",
|
|
160
|
-
"default": "./fesm2022/taiga-ui-legacy-components-sheet.mjs"
|
|
161
|
-
},
|
|
162
|
-
"./components/svg": {
|
|
163
|
-
"types": "./components/svg/index.d.ts",
|
|
164
|
-
"default": "./fesm2022/taiga-ui-legacy-components-svg.mjs"
|
|
165
|
-
},
|
|
166
|
-
"./components/table-bar": {
|
|
167
|
-
"types": "./components/table-bar/index.d.ts",
|
|
168
|
-
"default": "./fesm2022/taiga-ui-legacy-components-table-bar.mjs"
|
|
169
|
-
},
|
|
170
|
-
"./components/tag": {
|
|
171
|
-
"types": "./components/tag/index.d.ts",
|
|
172
|
-
"default": "./fesm2022/taiga-ui-legacy-components-tag.mjs"
|
|
173
|
-
},
|
|
174
|
-
"./components/textarea": {
|
|
175
|
-
"types": "./components/textarea/index.d.ts",
|
|
176
|
-
"default": "./fesm2022/taiga-ui-legacy-components-textarea.mjs"
|
|
177
|
-
},
|
|
178
97
|
"./components/tooltip": {
|
|
179
98
|
"types": "./components/tooltip/index.d.ts",
|
|
180
99
|
"default": "./fesm2022/taiga-ui-legacy-components-tooltip.mjs"
|
|
@@ -198,18 +117,6 @@
|
|
|
198
117
|
"./directives/wrapper": {
|
|
199
118
|
"types": "./directives/wrapper/index.d.ts",
|
|
200
119
|
"default": "./fesm2022/taiga-ui-legacy-directives-wrapper.mjs"
|
|
201
|
-
},
|
|
202
|
-
"./pipes/format-phone": {
|
|
203
|
-
"types": "./pipes/format-phone/index.d.ts",
|
|
204
|
-
"default": "./fesm2022/taiga-ui-legacy-pipes-format-phone.mjs"
|
|
205
|
-
},
|
|
206
|
-
"./pipes/iso-to-country-code": {
|
|
207
|
-
"types": "./pipes/iso-to-country-code/index.d.ts",
|
|
208
|
-
"default": "./fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs"
|
|
209
|
-
},
|
|
210
|
-
"./pipes/to-country-code": {
|
|
211
|
-
"types": "./pipes/to-country-code/index.d.ts",
|
|
212
|
-
"default": "./fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs"
|
|
213
120
|
}
|
|
214
121
|
},
|
|
215
122
|
"peerDependencies": {
|
|
@@ -2,7 +2,7 @@ import { type TuiStringHandler } from '@taiga-ui/cdk/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated: drop in v5.0
|
|
4
4
|
*/
|
|
5
|
-
export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.
|
|
5
|
+
export declare const TUI_CACHE_BUSTING_PAYLOAD: "?v=4.52.0-canary.ec0802b";
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated: drop in v5.0
|
|
8
8
|
*/
|
package/utils/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './get-border';
|
|
|
5
5
|
export * from './get-max-allowed-phone-length';
|
|
6
6
|
export * from './get-safe-area-size';
|
|
7
7
|
export * from './icons-path-factory';
|
|
8
|
-
export * from './is-apple';
|
|
9
8
|
export * from './is-presumed-html-string';
|
|
10
9
|
export * from './iso-to-country-code';
|
|
11
10
|
export * from './not-kz-region';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type MaskitoOptions } from '@maskito/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TuiColorEditComponent {
|
|
5
|
-
color: [number, number, number, number];
|
|
6
|
-
readonly colorChange: EventEmitter<[number, number, number, number]>;
|
|
7
|
-
readonly hexMask: MaskitoOptions;
|
|
8
|
-
readonly modes: string[];
|
|
9
|
-
mode: string | undefined;
|
|
10
|
-
get isHex(): boolean;
|
|
11
|
-
get hex(): string;
|
|
12
|
-
get opacity(): number;
|
|
13
|
-
onHexChange(hex: string): void;
|
|
14
|
-
onRgbChange(...rgba: [number, number, number, number]): void;
|
|
15
|
-
private updateColor;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorEditComponent, "tui-color-edit", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./color-edit.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@maskito/angular";
|
|
6
|
-
import * as i5 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
7
|
-
import * as i6 from "@taiga-ui/legacy/directives/textfield-controller";
|
|
8
|
-
import * as i7 from "@taiga-ui/legacy/components/input-number";
|
|
9
|
-
import * as i8 from "@taiga-ui/legacy/components/select";
|
|
10
|
-
import * as i9 from "@taiga-ui/core/directives/dropdown";
|
|
11
|
-
import * as i10 from "@taiga-ui/core/components/data-list";
|
|
12
|
-
import * as i11 from "@taiga-ui/core/components/button";
|
|
13
|
-
/**
|
|
14
|
-
* TODO(v5): delete it
|
|
15
|
-
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-color TuiInputColor} (from @taiga-ui/kit) instead
|
|
16
|
-
*/
|
|
17
|
-
export declare class TuiColorEditModule {
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorEditModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiColorEditModule, [typeof i1.TuiColorEditComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MaskitoDirective, typeof i5.TuiPrimitiveTextfieldModule, typeof i6.TuiTextfieldControllerModule, typeof i7.TuiInputNumberModule, typeof i8.TuiSelectModule, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup, typeof i11.TuiButton], [typeof i1.TuiColorEditComponent, typeof i9.TuiDropdownOptionsDirective, typeof i9.TuiDropdownDriverDirective, typeof i9.TuiDropdownDirective, typeof i9.TuiDropdownComponent, typeof i9.TuiDropdownOpen, typeof i9.TuiDropdownOpenLegacy, typeof i9.TuiDropdownPortal, typeof i9.TuiDropdownManual, typeof i9.TuiDropdownHover, typeof i9.TuiDropdownContext, typeof i9.TuiDropdownPosition, typeof i9.TuiDropdownPositionSided, typeof i9.TuiDropdownSelection, typeof i10.TuiDataListComponent, typeof i10.TuiDataListDirective, typeof i10.TuiOption, typeof i10.TuiOptionNew, typeof i10.TuiOptionWithValue, typeof i10.TuiOptGroup]>;
|
|
20
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<TuiColorEditModule>;
|
|
21
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { type SafeStyle } from '@angular/platform-browser';
|
|
3
|
-
import { type TuiPoint } from '@taiga-ui/core/types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TuiColorPickerComponent {
|
|
6
|
-
private readonly sanitizer;
|
|
7
|
-
protected point: TuiPoint;
|
|
8
|
-
protected hue: number;
|
|
9
|
-
protected opacity: number;
|
|
10
|
-
readonly colorChange: EventEmitter<[h: number, s: number, v: number, opacity: number]>;
|
|
11
|
-
set color(color: [h: number, s: number, v: number, opacity: number]);
|
|
12
|
-
get currentColor(): [h: number, s: number, v: number];
|
|
13
|
-
get base(): string;
|
|
14
|
-
get gradient(): SafeStyle;
|
|
15
|
-
onPointChange(point: TuiPoint): void;
|
|
16
|
-
onHueChange(hue: number): void;
|
|
17
|
-
onOpacityChange(opacity: number): void;
|
|
18
|
-
private getCurrentColor;
|
|
19
|
-
private updateColor;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TuiColorPickerComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiColorPickerComponent, "tui-color-picker", never, { "color": { "alias": "color"; "required": false; }; }, { "colorChange": "colorChange"; }, never, never, false, never>;
|
|
22
|
-
}
|