@taiga-ui/legacy 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +22 -0
- package/classes/abstract-native-select.d.ts +20 -0
- package/classes/abstract-textfield-host.d.ts +19 -0
- package/classes/control.d.ts +59 -0
- package/classes/index.d.ts +8 -0
- package/classes/interactive.d.ts +35 -0
- package/classes/multiple-control.d.ts +11 -0
- package/classes/named-day.d.ts +11 -0
- package/classes/nullable-control.d.ts +10 -0
- package/classes/stringifiable-item.d.ts +11 -0
- package/components/arrow/arrow.component.d.ts +22 -0
- package/components/arrow/arrow.options.d.ts +23 -0
- package/components/arrow/arrow.providers.d.ts +24 -0
- package/components/arrow/index.d.ts +3 -0
- package/components/color-selector/color-edit/color-edit.component.d.ts +21 -0
- package/components/color-selector/color-edit/color-edit.module.d.ts +19 -0
- package/components/color-selector/color-picker/color-picker.component.d.ts +25 -0
- package/components/color-selector/color-picker/color-picker.module.d.ts +13 -0
- package/components/color-selector/color-selector.component.d.ts +55 -0
- package/components/color-selector/color-selector.module.d.ts +23 -0
- package/components/color-selector/flat-picker/flat-picker.component.d.ts +15 -0
- package/components/color-selector/flat-picker/flat-picker.module.d.ts +11 -0
- package/components/color-selector/index.d.ts +15 -0
- package/components/color-selector/linear-multi-picker/linear-multi-picker.component.d.ts +20 -0
- package/components/color-selector/linear-multi-picker/linear-multi-picker.module.d.ts +11 -0
- package/components/color-selector/linear-picker/linear-picker.component.d.ts +13 -0
- package/components/color-selector/linear-picker/linear-picker.module.d.ts +11 -0
- package/components/color-selector/palette/palette.component.d.ts +13 -0
- package/components/color-selector/palette/palette.module.d.ts +12 -0
- package/components/color-selector/services/picker.service.d.ts +11 -0
- package/components/combo-box/combo-box-strict.directive.d.ts +11 -0
- package/components/combo-box/combo-box.component.d.ts +50 -0
- package/components/combo-box/combo-box.directive.d.ts +12 -0
- package/components/combo-box/combo-box.module.d.ts +19 -0
- package/components/combo-box/index.d.ts +4 -0
- package/components/index.d.ts +33 -0
- package/components/input/index.d.ts +3 -0
- package/components/input/input.component.d.ts +30 -0
- package/components/input/input.directive.d.ts +11 -0
- package/components/input/input.module.d.ts +14 -0
- package/components/input-color/index.d.ts +2 -0
- package/components/input-color/input-color.component.d.ts +29 -0
- package/components/input-color/input-color.module.d.ts +16 -0
- package/components/input-copy/index.d.ts +4 -0
- package/components/input-copy/input-copy.component.d.ts +33 -0
- package/components/input-copy/input-copy.directive.d.ts +11 -0
- package/components/input-copy/input-copy.module.d.ts +18 -0
- package/components/input-copy/input-copy.options.d.ts +26 -0
- package/components/input-date/index.d.ts +3 -0
- package/components/input-date/input-date.component.d.ts +64 -0
- package/components/input-date/input-date.directive.d.ts +18 -0
- package/components/input-date/input-date.module.d.ts +23 -0
- package/components/input-date/native-date/native-date.component.d.ts +14 -0
- package/components/input-date-multi/index.d.ts +2 -0
- package/components/input-date-multi/input-date-multi.component.d.ts +69 -0
- package/components/input-date-multi/input-date-multi.module.d.ts +23 -0
- package/components/input-date-range/index.d.ts +3 -0
- package/components/input-date-range/input-date-range.component.d.ts +70 -0
- package/components/input-date-range/input-date-range.directive.d.ts +15 -0
- package/components/input-date-range/input-date-range.module.d.ts +21 -0
- package/components/input-date-time/index.d.ts +3 -0
- package/components/input-date-time/input-date-time.component.d.ts +80 -0
- package/components/input-date-time/input-date-time.directive.d.ts +16 -0
- package/components/input-date-time/input-date-time.module.d.ts +22 -0
- package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +9 -0
- package/components/input-month/index.d.ts +3 -0
- package/components/input-month/input-month.component.d.ts +44 -0
- package/components/input-month/input-month.directive.d.ts +18 -0
- package/components/input-month/input-month.module.d.ts +18 -0
- package/components/input-month-range/index.d.ts +3 -0
- package/components/input-month-range/input-month-range.component.d.ts +38 -0
- package/components/input-month-range/input-month-range.directive.d.ts +18 -0
- package/components/input-month-range/input-month-range.module.d.ts +17 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/input-number.component.d.ts +62 -0
- package/components/input-number/input-number.directive.d.ts +15 -0
- package/components/input-number/input-number.module.d.ts +17 -0
- package/components/input-number/input-number.options.d.ts +27 -0
- package/components/input-password/index.d.ts +4 -0
- package/components/input-password/input-password.component.d.ts +33 -0
- package/components/input-password/input-password.directive.d.ts +15 -0
- package/components/input-password/input-password.module.d.ts +19 -0
- package/components/input-password/input-password.options.d.ts +25 -0
- package/components/input-phone/index.d.ts +4 -0
- package/components/input-phone/input-phone.component.d.ts +51 -0
- package/components/input-phone/input-phone.directive.d.ts +16 -0
- package/components/input-phone/input-phone.module.d.ts +15 -0
- package/components/input-phone/input-phone.options.d.ts +22 -0
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +9 -0
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +7 -0
- package/components/input-phone/utils/index.d.ts +2 -0
- package/components/input-phone-international/index.d.ts +3 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +41 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +22 -0
- package/components/input-phone-international/utils/extract-value-from-event.d.ts +1 -0
- package/components/input-range/index.d.ts +2 -0
- package/components/input-range/input-range.component.d.ts +55 -0
- package/components/input-range/input-range.module.d.ts +18 -0
- package/components/input-slider/index.d.ts +2 -0
- package/components/input-slider/input-slider.component.d.ts +41 -0
- package/components/input-slider/input-slider.module.d.ts +17 -0
- package/components/input-tag/index.d.ts +3 -0
- package/components/input-tag/input-tag.component.d.ts +97 -0
- package/components/input-tag/input-tag.module.d.ts +21 -0
- package/components/input-tag/input-tag.options.d.ts +23 -0
- package/components/input-time/index.d.ts +4 -0
- package/components/input-time/input-time.component.d.ts +63 -0
- package/components/input-time/input-time.directive.d.ts +16 -0
- package/components/input-time/input-time.module.d.ts +22 -0
- package/components/input-time/input-time.options.d.ts +35 -0
- package/components/input-time/native-time/native-time.component.d.ts +12 -0
- package/components/input-year/index.d.ts +3 -0
- package/components/input-year/input-year.component.d.ts +35 -0
- package/components/input-year/input-year.directive.d.ts +13 -0
- package/components/input-year/input-year.module.d.ts +17 -0
- package/components/island/index.d.ts +1 -0
- package/components/island/island.directive.d.ts +19 -0
- package/components/multi-select/hide-selected.pipe.d.ts +11 -0
- package/components/multi-select/index.d.ts +10 -0
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +23 -0
- package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +8 -0
- package/components/multi-select/multi-select.component.d.ts +68 -0
- package/components/multi-select/multi-select.directive.d.ts +17 -0
- package/components/multi-select/multi-select.module.d.ts +30 -0
- package/components/multi-select/multi-select.options.d.ts +23 -0
- package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +9 -0
- package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +8 -0
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +11 -0
- package/components/multi-select-option/index.d.ts +2 -0
- package/components/multi-select-option/multi-select-option.component.d.ts +12 -0
- package/components/multi-select-option/multi-select-option.module.d.ts +12 -0
- package/components/primitive-textfield/index.d.ts +7 -0
- package/components/primitive-textfield/primitive-textfield-options.d.ts +22 -0
- package/components/primitive-textfield/primitive-textfield-types.d.ts +14 -0
- package/components/primitive-textfield/primitive-textfield.component.d.ts +74 -0
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +13 -0
- package/components/primitive-textfield/primitive-textfield.module.d.ts +20 -0
- package/components/primitive-textfield/textfield/textfield.component.d.ts +13 -0
- package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +22 -0
- package/components/select/index.d.ts +6 -0
- package/components/select/native-select/native-select-group.component.d.ts +13 -0
- package/components/select/native-select/native-select.component.d.ts +12 -0
- package/components/select/select.component.d.ts +43 -0
- package/components/select/select.directive.d.ts +15 -0
- package/components/select/select.module.d.ts +23 -0
- package/components/select/select.options.d.ts +22 -0
- package/components/select-option/index.d.ts +2 -0
- package/components/select-option/select-option.component.d.ts +33 -0
- package/components/select-option/select-option.module.d.ts +13 -0
- package/components/sheet/components/sheet/sheet.component.d.ts +31 -0
- package/components/sheet/components/sheet/sheet.providers.d.ts +2 -0
- package/components/sheet/components/sheet-bar/sheet-bar.component.d.ts +10 -0
- package/components/sheet/components/sheet-heading/sheet-heading.component.d.ts +14 -0
- package/components/sheet/components/sheets-host/sheets-host.component.d.ts +15 -0
- package/components/sheet/directives/sheet-close/sheet-close.directive.d.ts +14 -0
- package/components/sheet/directives/sheet-stop/sheet-stop.directive.d.ts +6 -0
- package/components/sheet/directives/sheet-top/sheet-top.directive.d.ts +14 -0
- package/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.d.ts +17 -0
- package/components/sheet/index.d.ts +14 -0
- package/components/sheet/sheet-options.d.ts +24 -0
- package/components/sheet/sheet-tokens.d.ts +18 -0
- package/components/sheet/sheet.d.ts +19 -0
- package/components/sheet/sheet.directive.d.ts +16 -0
- package/components/sheet/sheet.module.d.ts +23 -0
- package/components/sheet/sheet.service.d.ts +16 -0
- package/components/svg/content-processor.d.ts +18 -0
- package/components/svg/deprecated-icons.d.ts +4 -0
- package/components/svg/index.d.ts +5 -0
- package/components/svg/svg-options.d.ts +44 -0
- package/components/svg/svg.component.d.ts +49 -0
- package/components/svg/svg.service.d.ts +21 -0
- package/components/table-bar/index.d.ts +5 -0
- package/components/table-bar/table-bar.component.d.ts +13 -0
- package/components/table-bar/table-bar.directive.d.ts +7 -0
- package/components/table-bar/table-bar.options.d.ts +14 -0
- package/components/table-bar/table-bars-host.component.d.ts +6 -0
- package/components/table-bar/table-bars.service.d.ts +10 -0
- package/components/tag/index.d.ts +3 -0
- package/components/tag/tag.component.d.ts +43 -0
- package/components/tag/tag.module.d.ts +15 -0
- package/components/tag/tag.options.d.ts +25 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/textarea.component.d.ts +53 -0
- package/components/textarea/textarea.directive.d.ts +11 -0
- package/components/textarea/textarea.module.d.ts +20 -0
- package/components/tooltip/index.d.ts +2 -0
- package/components/tooltip/tooltip.component.d.ts +15 -0
- package/components/tooltip/tooltip.module.d.ts +15 -0
- package/directives/index.d.ts +5 -0
- package/directives/legacy-dropdown-open-monitor/index.d.ts +1 -0
- package/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.d.ts +9 -0
- package/directives/textfield-controller/index.d.ts +14 -0
- package/directives/textfield-controller/textfield-appearance.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-controller.module.d.ts +20 -0
- package/directives/textfield-controller/textfield-controller.provider.d.ts +11 -0
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +15 -0
- package/directives/textfield-controller/textfield-filler.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +17 -0
- package/directives/textfield-controller/textfield-icon.directive.d.ts +17 -0
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +14 -0
- package/directives/textfield-controller/textfield-size.directive.d.ts +15 -0
- package/directives/textfield-controller/textfield.controller.d.ts +41 -0
- package/directives/textfield-controller/textfield.options.d.ts +25 -0
- package/directives/unfinished-validator/index.d.ts +2 -0
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +11 -0
- package/directives/unfinished-validator/unfinished.validator.d.ts +7 -0
- package/directives/value-accessor/index.d.ts +3 -0
- package/directives/value-accessor/value-accessor.directive.d.ts +8 -0
- package/directives/value-accessor/value-accessor.module.d.ts +10 -0
- package/directives/value-accessor/value-accessor.provider.d.ts +5 -0
- package/directives/wrapper/README.md +19 -0
- package/directives/wrapper/index.d.ts +2 -0
- package/directives/wrapper/wrapper.directive.d.ts +21 -0
- package/directives/wrapper/wrapper.module.d.ts +10 -0
- package/esm2022/classes/abstract-native-select.mjs +40 -0
- package/esm2022/classes/abstract-textfield-host.mjs +37 -0
- package/esm2022/classes/control.mjs +176 -0
- package/esm2022/classes/index.mjs +9 -0
- package/esm2022/classes/interactive.mjs +85 -0
- package/esm2022/classes/multiple-control.mjs +21 -0
- package/esm2022/classes/named-day.mjs +14 -0
- package/esm2022/classes/nullable-control.mjs +18 -0
- package/esm2022/classes/stringifiable-item.mjs +14 -0
- package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
- package/esm2022/components/arrow/arrow.component.mjs +48 -0
- package/esm2022/components/arrow/arrow.options.mjs +21 -0
- package/esm2022/components/arrow/arrow.providers.mjs +21 -0
- package/esm2022/components/arrow/index.mjs +4 -0
- package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
- package/esm2022/components/color-selector/color-edit/color-edit.component.mjs +62 -0
- package/esm2022/components/color-selector/color-edit/color-edit.module.mjs +54 -0
- package/esm2022/components/color-selector/color-picker/color-picker.component.mjs +73 -0
- package/esm2022/components/color-selector/color-picker/color-picker.module.mjs +24 -0
- package/esm2022/components/color-selector/color-selector.component.mjs +250 -0
- package/esm2022/components/color-selector/color-selector.module.mjs +66 -0
- package/esm2022/components/color-selector/flat-picker/flat-picker.component.mjs +37 -0
- package/esm2022/components/color-selector/flat-picker/flat-picker.module.mjs +22 -0
- package/esm2022/components/color-selector/index.mjs +16 -0
- package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.component.mjs +65 -0
- package/esm2022/components/color-selector/linear-multi-picker/linear-multi-picker.module.mjs +22 -0
- package/esm2022/components/color-selector/linear-picker/linear-picker.component.mjs +34 -0
- package/esm2022/components/color-selector/linear-picker/linear-picker.module.mjs +22 -0
- package/esm2022/components/color-selector/palette/palette.component.mjs +26 -0
- package/esm2022/components/color-selector/palette/palette.module.mjs +24 -0
- package/esm2022/components/color-selector/services/picker.service.mjs +30 -0
- package/esm2022/components/color-selector/taiga-ui-legacy-components-color-selector.mjs +5 -0
- package/esm2022/components/combo-box/combo-box-strict.directive.mjs +32 -0
- package/esm2022/components/combo-box/combo-box.component.mjs +181 -0
- package/esm2022/components/combo-box/combo-box.directive.mjs +26 -0
- package/esm2022/components/combo-box/combo-box.module.mjs +70 -0
- package/esm2022/components/combo-box/index.mjs +5 -0
- package/esm2022/components/combo-box/taiga-ui-legacy-components-combo-box.mjs +5 -0
- package/esm2022/components/index.mjs +34 -0
- package/esm2022/components/input/index.mjs +4 -0
- package/esm2022/components/input/input.component.mjs +92 -0
- package/esm2022/components/input/input.directive.mjs +23 -0
- package/esm2022/components/input/input.module.mjs +33 -0
- package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
- package/esm2022/components/input-color/index.mjs +3 -0
- package/esm2022/components/input-color/input-color.component.mjs +85 -0
- package/esm2022/components/input-color/input-color.module.mjs +43 -0
- package/esm2022/components/input-color/taiga-ui-legacy-components-input-color.mjs +5 -0
- package/esm2022/components/input-copy/index.mjs +5 -0
- package/esm2022/components/input-copy/input-copy.component.mjs +106 -0
- package/esm2022/components/input-copy/input-copy.directive.mjs +23 -0
- package/esm2022/components/input-copy/input-copy.module.mjs +55 -0
- package/esm2022/components/input-copy/input-copy.options.mjs +21 -0
- package/esm2022/components/input-copy/taiga-ui-legacy-components-input-copy.mjs +5 -0
- package/esm2022/components/input-date/index.mjs +4 -0
- package/esm2022/components/input-date/input-date.component.mjs +220 -0
- package/esm2022/components/input-date/input-date.directive.mjs +41 -0
- package/esm2022/components/input-date/input-date.module.mjs +74 -0
- package/esm2022/components/input-date/native-date/native-date.component.mjs +51 -0
- package/esm2022/components/input-date/taiga-ui-legacy-components-input-date.mjs +5 -0
- package/esm2022/components/input-date-multi/index.mjs +3 -0
- package/esm2022/components/input-date-multi/input-date-multi.component.mjs +215 -0
- package/esm2022/components/input-date-multi/input-date-multi.module.mjs +70 -0
- package/esm2022/components/input-date-multi/taiga-ui-legacy-components-input-date-multi.mjs +5 -0
- package/esm2022/components/input-date-range/index.mjs +4 -0
- package/esm2022/components/input-date-range/input-date-range.component.mjs +267 -0
- package/esm2022/components/input-date-range/input-date-range.directive.mjs +34 -0
- package/esm2022/components/input-date-range/input-date-range.module.mjs +70 -0
- package/esm2022/components/input-date-range/taiga-ui-legacy-components-input-date-range.mjs +5 -0
- package/esm2022/components/input-date-time/index.mjs +4 -0
- package/esm2022/components/input-date-time/input-date-time.component.mjs +305 -0
- package/esm2022/components/input-date-time/input-date-time.directive.mjs +35 -0
- package/esm2022/components/input-date-time/input-date-time.module.mjs +77 -0
- package/esm2022/components/input-date-time/native-date-time/native-date-time.directive.mjs +44 -0
- package/esm2022/components/input-date-time/taiga-ui-legacy-components-input-date-time.mjs +5 -0
- package/esm2022/components/input-month/index.mjs +4 -0
- package/esm2022/components/input-month/input-month.component.mjs +135 -0
- package/esm2022/components/input-month/input-month.directive.mjs +44 -0
- package/esm2022/components/input-month/input-month.module.mjs +56 -0
- package/esm2022/components/input-month/taiga-ui-legacy-components-input-month.mjs +5 -0
- package/esm2022/components/input-month-range/index.mjs +4 -0
- package/esm2022/components/input-month-range/input-month-range.component.mjs +123 -0
- package/esm2022/components/input-month-range/input-month-range.directive.mjs +50 -0
- package/esm2022/components/input-month-range/input-month-range.module.mjs +52 -0
- package/esm2022/components/input-month-range/taiga-ui-legacy-components-input-month-range.mjs +5 -0
- package/esm2022/components/input-number/index.mjs +5 -0
- package/esm2022/components/input-number/input-number.component.mjs +263 -0
- package/esm2022/components/input-number/input-number.directive.mjs +36 -0
- package/esm2022/components/input-number/input-number.module.mjs +47 -0
- package/esm2022/components/input-number/input-number.options.mjs +26 -0
- package/esm2022/components/input-number/taiga-ui-legacy-components-input-number.mjs +5 -0
- package/esm2022/components/input-password/index.mjs +5 -0
- package/esm2022/components/input-password/input-password.component.mjs +81 -0
- package/esm2022/components/input-password/input-password.directive.mjs +33 -0
- package/esm2022/components/input-password/input-password.module.mjs +59 -0
- package/esm2022/components/input-password/input-password.options.mjs +21 -0
- package/esm2022/components/input-password/taiga-ui-legacy-components-input-password.mjs +5 -0
- package/esm2022/components/input-phone/index.mjs +5 -0
- package/esm2022/components/input-phone/input-phone.component.mjs +220 -0
- package/esm2022/components/input-phone/input-phone.directive.mjs +36 -0
- package/esm2022/components/input-phone/input-phone.module.mjs +47 -0
- package/esm2022/components/input-phone/input-phone.options.mjs +21 -0
- package/esm2022/components/input-phone/taiga-ui-legacy-components-input-phone.mjs +5 -0
- package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +41 -0
- package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +17 -0
- package/esm2022/components/input-phone/utils/index.mjs +3 -0
- package/esm2022/components/input-phone-international/index.mjs +4 -0
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +184 -0
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +20 -0
- package/esm2022/components/input-phone-international/taiga-ui-legacy-components-input-phone-international.mjs +5 -0
- package/esm2022/components/input-phone-international/utils/extract-value-from-event.mjs +7 -0
- package/esm2022/components/input-range/index.mjs +3 -0
- package/esm2022/components/input-range/input-range.component.mjs +206 -0
- package/esm2022/components/input-range/input-range.module.mjs +54 -0
- package/esm2022/components/input-range/taiga-ui-legacy-components-input-range.mjs +5 -0
- package/esm2022/components/input-slider/index.mjs +3 -0
- package/esm2022/components/input-slider/input-slider.component.mjs +153 -0
- package/esm2022/components/input-slider/input-slider.module.mjs +47 -0
- package/esm2022/components/input-slider/taiga-ui-legacy-components-input-slider.mjs +5 -0
- package/esm2022/components/input-tag/index.mjs +4 -0
- package/esm2022/components/input-tag/input-tag.component.mjs +418 -0
- package/esm2022/components/input-tag/input-tag.module.mjs +66 -0
- package/esm2022/components/input-tag/input-tag.options.mjs +21 -0
- package/esm2022/components/input-tag/taiga-ui-legacy-components-input-tag.mjs +5 -0
- package/esm2022/components/input-time/index.mjs +5 -0
- package/esm2022/components/input-time/input-time.component.mjs +278 -0
- package/esm2022/components/input-time/input-time.directive.mjs +38 -0
- package/esm2022/components/input-time/input-time.module.mjs +70 -0
- package/esm2022/components/input-time/input-time.options.mjs +31 -0
- package/esm2022/components/input-time/native-time/native-time.component.mjs +67 -0
- package/esm2022/components/input-time/taiga-ui-legacy-components-input-time.mjs +5 -0
- package/esm2022/components/input-year/index.mjs +4 -0
- package/esm2022/components/input-year/input-year.component.mjs +110 -0
- package/esm2022/components/input-year/input-year.directive.mjs +30 -0
- package/esm2022/components/input-year/input-year.module.mjs +52 -0
- package/esm2022/components/input-year/taiga-ui-legacy-components-input-year.mjs +5 -0
- package/esm2022/components/island/index.mjs +2 -0
- package/esm2022/components/island/island.directive.mjs +77 -0
- package/esm2022/components/island/taiga-ui-legacy-components-island.mjs +5 -0
- package/esm2022/components/multi-select/hide-selected.pipe.mjs +43 -0
- package/esm2022/components/multi-select/index.mjs +11 -0
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +99 -0
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +65 -0
- package/esm2022/components/multi-select/multi-select.component.mjs +207 -0
- package/esm2022/components/multi-select/multi-select.directive.mjs +34 -0
- package/esm2022/components/multi-select/multi-select.module.mjs +114 -0
- package/esm2022/components/multi-select/multi-select.options.mjs +20 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select-group.component.mjs +60 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select.component.mjs +56 -0
- package/esm2022/components/multi-select/native-multi-select/native-multi-select.mjs +19 -0
- package/esm2022/components/multi-select/taiga-ui-legacy-components-multi-select.mjs +5 -0
- package/esm2022/components/multi-select-option/index.mjs +3 -0
- package/esm2022/components/multi-select-option/multi-select-option.component.mjs +28 -0
- package/esm2022/components/multi-select-option/multi-select-option.module.mjs +23 -0
- package/esm2022/components/multi-select-option/taiga-ui-legacy-components-multi-select-option.mjs +5 -0
- package/esm2022/components/primitive-textfield/index.mjs +8 -0
- package/esm2022/components/primitive-textfield/primitive-textfield-options.mjs +17 -0
- package/esm2022/components/primitive-textfield/primitive-textfield-types.mjs +2 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.component.mjs +253 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +31 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +65 -0
- package/esm2022/components/primitive-textfield/taiga-ui-legacy-components-primitive-textfield.mjs +5 -0
- package/esm2022/components/primitive-textfield/textfield/textfield.component.mjs +39 -0
- package/esm2022/components/primitive-textfield/value-decoration/value-decoration.component.mjs +71 -0
- package/esm2022/components/select/index.mjs +7 -0
- package/esm2022/components/select/native-select/native-select-group.component.mjs +60 -0
- package/esm2022/components/select/native-select/native-select.component.mjs +56 -0
- package/esm2022/components/select/select.component.mjs +119 -0
- package/esm2022/components/select/select.directive.mjs +32 -0
- package/esm2022/components/select/select.module.mjs +86 -0
- package/esm2022/components/select/select.options.mjs +19 -0
- package/esm2022/components/select/taiga-ui-legacy-components-select.mjs +5 -0
- package/esm2022/components/select-option/index.mjs +3 -0
- package/esm2022/components/select-option/select-option.component.mjs +71 -0
- package/esm2022/components/select-option/select-option.module.mjs +24 -0
- package/esm2022/components/select-option/taiga-ui-legacy-components-select-option.mjs +5 -0
- package/esm2022/components/sheet/components/sheet/sheet.component.mjs +118 -0
- package/esm2022/components/sheet/components/sheet/sheet.providers.mjs +42 -0
- package/esm2022/components/sheet/components/sheet-bar/sheet-bar.component.mjs +27 -0
- package/esm2022/components/sheet/components/sheet-heading/sheet-heading.component.mjs +31 -0
- package/esm2022/components/sheet/components/sheets-host/sheets-host.component.mjs +46 -0
- package/esm2022/components/sheet/directives/sheet-close/sheet-close.directive.mjs +38 -0
- package/esm2022/components/sheet/directives/sheet-stop/sheet-stop.directive.mjs +37 -0
- package/esm2022/components/sheet/directives/sheet-top/sheet-top.directive.mjs +51 -0
- package/esm2022/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.mjs +76 -0
- package/esm2022/components/sheet/index.mjs +15 -0
- package/esm2022/components/sheet/sheet-options.mjs +21 -0
- package/esm2022/components/sheet/sheet-tokens.mjs +17 -0
- package/esm2022/components/sheet/sheet.directive.mjs +38 -0
- package/esm2022/components/sheet/sheet.mjs +2 -0
- package/esm2022/components/sheet/sheet.module.mjs +74 -0
- package/esm2022/components/sheet/sheet.service.mjs +51 -0
- package/esm2022/components/sheet/taiga-ui-legacy-components-sheet.mjs +5 -0
- package/esm2022/components/svg/content-processor.mjs +40 -0
- package/esm2022/components/svg/deprecated-icons.mjs +62 -0
- package/esm2022/components/svg/index.mjs +6 -0
- package/esm2022/components/svg/svg-options.mjs +76 -0
- package/esm2022/components/svg/svg.component.mjs +149 -0
- package/esm2022/components/svg/svg.service.mjs +64 -0
- package/esm2022/components/svg/taiga-ui-legacy-components-svg.mjs +5 -0
- package/esm2022/components/table-bar/index.mjs +6 -0
- package/esm2022/components/table-bar/table-bar.component.mjs +33 -0
- package/esm2022/components/table-bar/table-bar.directive.mjs +21 -0
- package/esm2022/components/table-bar/table-bar.options.mjs +16 -0
- package/esm2022/components/table-bar/table-bars-host.component.mjs +35 -0
- package/esm2022/components/table-bar/table-bars.service.mjs +21 -0
- package/esm2022/components/table-bar/taiga-ui-legacy-components-table-bar.mjs +5 -0
- package/esm2022/components/tag/index.mjs +4 -0
- package/esm2022/components/tag/tag.component.mjs +174 -0
- package/esm2022/components/tag/tag.module.mjs +41 -0
- package/esm2022/components/tag/tag.options.mjs +22 -0
- package/esm2022/components/tag/taiga-ui-legacy-components-tag.mjs +5 -0
- package/esm2022/components/taiga-ui-legacy-components.mjs +5 -0
- package/esm2022/components/textarea/index.mjs +4 -0
- package/esm2022/components/textarea/taiga-ui-legacy-components-textarea.mjs +5 -0
- package/esm2022/components/textarea/textarea.component.mjs +192 -0
- package/esm2022/components/textarea/textarea.directive.mjs +23 -0
- package/esm2022/components/textarea/textarea.module.mjs +67 -0
- package/esm2022/components/tooltip/index.mjs +3 -0
- package/esm2022/components/tooltip/taiga-ui-legacy-components-tooltip.mjs +5 -0
- package/esm2022/components/tooltip/tooltip.component.mjs +50 -0
- package/esm2022/components/tooltip/tooltip.module.mjs +27 -0
- package/esm2022/directives/index.mjs +6 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/index.mjs +2 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/legacy-dropdown-open-monitor.mjs +40 -0
- package/esm2022/directives/legacy-dropdown-open-monitor/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +5 -0
- package/esm2022/directives/taiga-ui-legacy-directives.mjs +5 -0
- package/esm2022/directives/textfield-controller/index.mjs +15 -0
- package/esm2022/directives/textfield-controller/taiga-ui-legacy-directives-textfield-controller.mjs +5 -0
- package/esm2022/directives/textfield-controller/textfield-appearance.directive.mjs +37 -0
- package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +75 -0
- package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +50 -0
- package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +27 -0
- package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +27 -0
- package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +35 -0
- package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +31 -0
- package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
- package/esm2022/directives/textfield-controller/textfield.options.mjs +21 -0
- package/esm2022/directives/unfinished-validator/index.mjs +3 -0
- package/esm2022/directives/unfinished-validator/taiga-ui-legacy-directives-unfinished-validator.mjs +5 -0
- package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +28 -0
- package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +18 -0
- package/esm2022/directives/value-accessor/index.mjs +4 -0
- package/esm2022/directives/value-accessor/taiga-ui-legacy-directives-value-accessor.mjs +5 -0
- package/esm2022/directives/value-accessor/value-accessor.directive.mjs +19 -0
- package/esm2022/directives/value-accessor/value-accessor.module.mjs +20 -0
- package/esm2022/directives/value-accessor/value-accessor.provider.mjs +13 -0
- package/esm2022/directives/wrapper/index.mjs +3 -0
- package/esm2022/directives/wrapper/taiga-ui-legacy-directives-wrapper.mjs +5 -0
- package/esm2022/directives/wrapper/wrapper.directive.mjs +85 -0
- package/esm2022/directives/wrapper/wrapper.module.mjs +20 -0
- package/esm2022/index.mjs +7 -0
- package/esm2022/pipes/format-phone/format-phone.pipe.mjs +53 -0
- package/esm2022/pipes/format-phone/index.mjs +2 -0
- package/esm2022/pipes/format-phone/taiga-ui-legacy-pipes-format-phone.mjs +5 -0
- package/esm2022/pipes/index.mjs +4 -0
- package/esm2022/pipes/iso-to-country-code/index.mjs +2 -0
- package/esm2022/pipes/iso-to-country-code/iso-to-country-code.pipe.mjs +44 -0
- package/esm2022/pipes/iso-to-country-code/taiga-ui-legacy-pipes-iso-to-country-code.mjs +5 -0
- package/esm2022/pipes/taiga-ui-legacy-pipes.mjs +5 -0
- package/esm2022/pipes/to-country-code/index.mjs +2 -0
- package/esm2022/pipes/to-country-code/taiga-ui-legacy-pipes-to-country-code.mjs +5 -0
- package/esm2022/pipes/to-country-code/to-country-code.pipe.mjs +74 -0
- package/esm2022/taiga-ui-legacy.mjs +5 -0
- package/esm2022/tokens/countries-masks.mjs +255 -0
- package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
- package/esm2022/tokens/fonts-ready.mjs +10 -0
- package/esm2022/tokens/icons.mjs +7 -0
- package/esm2022/tokens/index.mjs +15 -0
- package/esm2022/tokens/is-apple.mjs +10 -0
- package/esm2022/tokens/is-chromium.mjs +9 -0
- package/esm2022/tokens/is-firefox.mjs +10 -0
- package/esm2022/tokens/is-stackblitz.mjs +8 -0
- package/esm2022/tokens/month-formatter.mjs +18 -0
- package/esm2022/tokens/sanitizer.mjs +7 -0
- package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
- package/esm2022/tokens/textfield-appearance.mjs +8 -0
- package/esm2022/tokens/textfield-host.mjs +14 -0
- package/esm2022/tokens/touch-supported.mjs +8 -0
- package/esm2022/tokens/value-accessor.mjs +7 -0
- package/esm2022/utils/date-mode-maskito-adapter.mjs +9 -0
- package/esm2022/utils/format-phone.mjs +60 -0
- package/esm2022/utils/get-border.mjs +23 -0
- package/esm2022/utils/get-max-allowed-phone-length.mjs +26 -0
- package/esm2022/utils/get-safe-area-size.mjs +18 -0
- package/esm2022/utils/icons-path-factory.mjs +22 -0
- package/esm2022/utils/index.mjs +14 -0
- package/esm2022/utils/is-apple.mjs +9 -0
- package/esm2022/utils/is-presumed-html-string.mjs +8 -0
- package/esm2022/utils/iso-to-country-code.mjs +16 -0
- package/esm2022/utils/not-kz-region.mjs +24 -0
- package/esm2022/utils/process-icon.mjs +34 -0
- package/esm2022/utils/specific-dropdown-controllers.mjs +9 -0
- package/esm2022/utils/status.mjs +2 -0
- package/esm2022/utils/taiga-ui-legacy-utils.mjs +5 -0
- package/fesm2022/taiga-ui-legacy-classes.mjs +391 -0
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +93 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs +725 -0
- package/fesm2022/taiga-ui-legacy-components-color-selector.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +294 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs +127 -0
- package/fesm2022/taiga-ui-legacy-components-input-color.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +195 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +283 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +363 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +447 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs +370 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +218 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs +228 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +363 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +185 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +214 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +371 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +259 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +198 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +501 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs +465 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs +185 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs +141 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs +83 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +53 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +644 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +455 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +97 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs +339 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs +564 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +379 -0
- package/fesm2022/taiga-ui-legacy-components-svg.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs +115 -0
- package/fesm2022/taiga-ui-legacy-components-table-bar.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +238 -0
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +276 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +77 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components.mjs +38 -0
- package/fesm2022/taiga-ui-legacy-components.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +46 -0
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs +440 -0
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +50 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +52 -0
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs +107 -0
- package/fesm2022/taiga-ui-legacy-directives-wrapper.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives.mjs +10 -0
- package/fesm2022/taiga-ui-legacy-directives.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs +59 -0
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +50 -0
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs +80 -0
- package/fesm2022/taiga-ui-legacy-pipes-to-country-code.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes.mjs +8 -0
- package/fesm2022/taiga-ui-legacy-pipes.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-tokens.mjs +368 -0
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-utils.mjs +264 -0
- package/fesm2022/taiga-ui-legacy-utils.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy.mjs +11 -0
- package/fesm2022/taiga-ui-legacy.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/package.json +315 -0
- package/pipes/format-phone/format-phone.pipe.d.ts +37 -0
- package/pipes/format-phone/index.d.ts +1 -0
- package/pipes/index.d.ts +3 -0
- package/pipes/iso-to-country-code/index.d.ts +1 -0
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +30 -0
- package/pipes/to-country-code/index.d.ts +1 -0
- package/pipes/to-country-code/to-country-code.pipe.d.ts +38 -0
- package/styles/mixins/mixins.less +245 -0
- package/styles/mixins/mixins.scss +230 -0
- package/styles/mixins/textfield.less +315 -0
- package/styles/mixins/textfield.scss +306 -0
- package/styles/taiga-ui-local.less +3 -0
- package/styles/taiga-ui-local.scss +3 -0
- package/tokens/countries-masks.d.ts +8 -0
- package/tokens/focusable-item-accessor.d.ts +26 -0
- package/tokens/fonts-ready.d.ts +6 -0
- package/tokens/icons.d.ts +5 -0
- package/tokens/index.d.ts +14 -0
- package/tokens/is-apple.d.ts +5 -0
- package/tokens/is-chromium.d.ts +5 -0
- package/tokens/is-firefox.d.ts +5 -0
- package/tokens/is-stackblitz.d.ts +4 -0
- package/tokens/month-formatter.d.ts +11 -0
- package/tokens/sanitizer.d.ts +7 -0
- package/tokens/textfield-appearance.d.ts +6 -0
- package/tokens/textfield-host.d.ts +24 -0
- package/tokens/touch-supported.d.ts +4 -0
- package/tokens/value-accessor.d.ts +7 -0
- package/utils/date-mode-maskito-adapter.d.ts +6 -0
- package/utils/format-phone.d.ts +30 -0
- package/utils/get-border.d.ts +5 -0
- package/utils/get-max-allowed-phone-length.d.ts +24 -0
- package/utils/get-safe-area-size.d.ts +7 -0
- package/utils/icons-path-factory.d.ts +13 -0
- package/utils/index.d.ts +13 -0
- package/utils/is-apple.d.ts +4 -0
- package/utils/is-presumed-html-string.d.ts +4 -0
- package/utils/iso-to-country-code.d.ts +13 -0
- package/utils/not-kz-region.d.ts +20 -0
- package/utils/process-icon.d.ts +4 -0
- package/utils/specific-dropdown-controllers.d.ts +4 -0
- package/utils/status.d.ts +4 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Directive, inject, INJECTOR } from '@angular/core';
|
|
2
|
+
import { NG_VALIDATORS } from '@angular/forms';
|
|
3
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
4
|
+
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
5
|
+
import { TUI_FOCUSABLE_ITEM_ACCESSOR } from '@taiga-ui/legacy/tokens';
|
|
6
|
+
import { tuiCreateUnfinishedValidator } from './unfinished.validator';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated: drop in v5.0
|
|
10
|
+
*/
|
|
11
|
+
class TuiUnfinishedValidator {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.injector = inject(INJECTOR);
|
|
14
|
+
this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), tuiInjectElement().getAttribute('tuiUnfinishedValidator') || '');
|
|
15
|
+
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiUnfinishedValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiUnfinishedValidator, isStandalone: true, selector: "[tuiUnfinishedValidator]", providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)], ngImport: i0 }); }
|
|
18
|
+
}
|
|
19
|
+
export { TuiUnfinishedValidator };
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiUnfinishedValidator, decorators: [{
|
|
21
|
+
type: Directive,
|
|
22
|
+
args: [{
|
|
23
|
+
standalone: true,
|
|
24
|
+
selector: '[tuiUnfinishedValidator]',
|
|
25
|
+
providers: [tuiProvide(NG_VALIDATORS, TuiUnfinishedValidator, true)],
|
|
26
|
+
}]
|
|
27
|
+
}] });
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5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G5leHBvcnQgY2xhc3MgVHVpVW5maW5pc2hlZFZhbGlkYXRvciBpbXBsZW1lbnRzIFZhbGlkYXRvciB7XG4gICAgcHJpdmF0ZSByZWFkb25seSBpbmplY3RvciA9IGluamVjdChJTkpFQ1RPUik7XG5cbiAgICBwdWJsaWMgcmVhZG9ubHkgdmFsaWRhdGUgPSB0dWlDcmVhdGVVbmZpbmlzaGVkVmFsaWRhdG9yKFxuICAgICAgICAoKSA9PiB0aGlzLmluamVjdG9yLmdldChUVUlfRk9DVVNBQkxFX0lURU1fQUNDRVNTT1IpLFxuICAgICAgICB0dWlJbmplY3RFbGVtZW50KCkuZ2V0QXR0cmlidXRlKCd0dWlVbmZpbmlzaGVkVmFsaWRhdG9yJykgfHwgJycsXG4gICAgKTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TuiValidationError } from '@taiga-ui/cdk/classes';
|
|
2
|
+
import { tuiIsHTMLElement, tuiIsInput } from '@taiga-ui/cdk/utils/dom';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated: drop in v5.0
|
|
5
|
+
*/
|
|
6
|
+
export function tuiCreateUnfinishedValidator(nativeInputGetter, message) {
|
|
7
|
+
return ({ value, }) => {
|
|
8
|
+
const nativeInput = nativeInputGetter();
|
|
9
|
+
return value === null &&
|
|
10
|
+
nativeInput &&
|
|
11
|
+
tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&
|
|
12
|
+
tuiIsInput(nativeInput.nativeFocusableElement) &&
|
|
13
|
+
nativeInput.nativeFocusableElement.value !== ''
|
|
14
|
+
? { unfinished: new TuiValidationError(message) }
|
|
15
|
+
: null;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5maW5pc2hlZC52YWxpZGF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZ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5ldyBUdWlWYWxpZGF0aW9uRXJyb3IobWVzc2FnZSl9XG4gICAgICAgICAgICA6IG51bGw7XG4gICAgfTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './value-accessor.directive';
|
|
2
|
+
export * from './value-accessor.module';
|
|
3
|
+
export * from './value-accessor.provider';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvZGlyZWN0aXZlcy92YWx1ZS1hY2Nlc3Nvci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDO0FBQzNDLGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYywyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdmFsdWUtYWNjZXNzb3IuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vdmFsdWUtYWNjZXNzb3IubW9kdWxlJztcbmV4cG9ydCAqIGZyb20gJy4vdmFsdWUtYWNjZXNzb3IucHJvdmlkZXInO1xuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LWRpcmVjdGl2ZXMtdmFsdWUtYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvZGlyZWN0aXZlcy92YWx1ZS1hY2Nlc3Nvci90YWlnYS11aS1sZWdhY3ktZGlyZWN0aXZlcy12YWx1ZS1hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { TUI_VALUE_ACCESSOR_PROVIDER } from './value-accessor.provider';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated: drop in v5.0
|
|
6
|
+
*/
|
|
7
|
+
class TuiValueAccessorDirective {
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
9
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiValueAccessorDirective, selector: "[tuiValueAccessor]", providers: [TUI_VALUE_ACCESSOR_PROVIDER], ngImport: i0 }); }
|
|
10
|
+
}
|
|
11
|
+
export { TuiValueAccessorDirective };
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorDirective, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: '[tuiValueAccessor]',
|
|
16
|
+
providers: [TUI_VALUE_ACCESSOR_PROVIDER],
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtYWNjZXNzb3IuZGlyZWN0aXZlLmpzIiwic291c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essorDirective } from './value-accessor.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated: drop in v5.0
|
|
6
|
+
*/
|
|
7
|
+
class TuiValueAccessorModule {
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorModule, declarations: [TuiValueAccessorDirective], exports: [TuiValueAccessorDirective] }); }
|
|
10
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorModule }); }
|
|
11
|
+
}
|
|
12
|
+
export { TuiValueAccessorModule };
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiValueAccessorModule, decorators: [{
|
|
14
|
+
type: NgModule,
|
|
15
|
+
args: [{
|
|
16
|
+
declarations: [TuiValueAccessorDirective],
|
|
17
|
+
exports: [TuiValueAccessorDirective],
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUtYWNjZXNzb3IubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2RpcmVjdGl2ZXMvdmFsdWUtYWNjZXNzb3IvdmFsdWUtYWNjZXNzb3IubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdkMsT0FBTyxFQUFDLHlCQUF5QixFQUFDLE1BQU0sNEJBQTRCLENBQUM7O0FBRXJFOztHQUVHO0FBQ0gsTUFJYSxzQkFBc0I7K0dBQXRCLHNCQUFzQjtnSEFBdEIsc0JBQXNCLGlCQUhoQix5QkFBeUIsYUFDOUIseUJBQXlCO2dIQUUxQixzQkFBc0I7O1NBQXRCLHNCQUFzQjs0RkFBdEIsc0JBQXNCO2tCQUpsQyxRQUFRO21CQUFDO29CQUNOLFlBQVksRUFBRSxDQUFDLHlCQUF5QixDQUFDO29CQUN6QyxPQUFPLEVBQUUsQ0FBQyx5QkFBeUIsQ0FBQztpQkFDdkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtUdWlWYWx1ZUFjY2Vzc29yRGlyZWN0aXZlfSBmcm9tICcuL3ZhbHVlLWFjY2Vzc29yLmRpcmVjdGl2ZSc7XG5cbi8qKlxuICogQGRlcHJlY2F0ZWQ6IGRyb3AgaW4gdjUuMFxuICovXG5ATmdNb2R1bGUoe1xuICAgIGRlY2xhcmF0aW9uczogW1R1aVZhbHVlQWNjZXNzb3JEaXJlY3RpdmVdLFxuICAgIGV4cG9ydHM6IFtUdWlWYWx1ZUFjY2Vzc29yRGlyZWN0aXZlXSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpVmFsdWVBY2Nlc3Nvck1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Optional, Self } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { TUI_VALUE_ACCESSOR } from '@taiga-ui/legacy/tokens';
|
|
4
|
+
import { identity } from 'rxjs';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated: drop in v5.0
|
|
7
|
+
*/
|
|
8
|
+
export const TUI_VALUE_ACCESSOR_PROVIDER = {
|
|
9
|
+
provide: TUI_VALUE_ACCESSOR,
|
|
10
|
+
deps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m1zJztcbmltcG9ydCB7VFVJX1ZBTFVFX0FDQ0VTU09SfSBmcm9tICdAdGFpZ2EtdWkvbGVnYWN5L3Rva2Vucyc7XG5pbXBvcnQge2lkZW50aXR5fSBmcm9tICdyeGpzJztcblxuLyoqXG4gKiBAZGVwcmVjYXRlZDogZHJvcCBpbiB2NS4wXG4gKi9cbmV4cG9ydCBjb25zdCBUVUlfVkFMVUVfQUNDRVNTT1JfUFJPVklERVI6IEZhY3RvcnlQcm92aWRlciA9IHtcbiAgICBwcm92aWRlOiBUVUlfVkFMVUVfQUNDRVNTT1IsXG4gICAgZGVwczogW1tuZXcgT3B0aW9uYWwoKSwgbmV3IFNlbGYoKSwgTkdfVkFMVUVfQUNDRVNTT1JdXSxcbiAgICB1c2VGYWN0b3J5OiBpZGVudGl0eSxcbn07XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './wrapper.directive';
|
|
2
|
+
export * from './wrapper.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvZGlyZWN0aXZlcy93cmFwcGVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vd3JhcHBlci5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi93cmFwcGVyLm1vZHVsZSc7XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LWRpcmVjdGl2ZXMtd3JhcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xlZ2FjeS9kaXJlY3RpdmVzL3dyYXBwZXIvdGFpZ2EtdWktbGVnYWN5LWRpcmVjdGl2ZXMtd3JhcHBlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Directive, HostBinding, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated: drop in v5.0
|
|
5
|
+
*/
|
|
6
|
+
class TuiWrapperDirective {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.disabled = false;
|
|
9
|
+
this.readOnly = false;
|
|
10
|
+
this.hover = null;
|
|
11
|
+
this.active = null;
|
|
12
|
+
this.focus = false;
|
|
13
|
+
this.invalid = false;
|
|
14
|
+
this.appearance = '';
|
|
15
|
+
}
|
|
16
|
+
get computedInvalid() {
|
|
17
|
+
return !this.disabled && !this.readOnly && this.invalid;
|
|
18
|
+
}
|
|
19
|
+
get computedFocused() {
|
|
20
|
+
return this.focus && !this.disabled;
|
|
21
|
+
}
|
|
22
|
+
get interactiveState() {
|
|
23
|
+
if (this.disabled) {
|
|
24
|
+
return 'disabled';
|
|
25
|
+
}
|
|
26
|
+
if (this.readOnly) {
|
|
27
|
+
return 'readonly';
|
|
28
|
+
}
|
|
29
|
+
if (this.active) {
|
|
30
|
+
return 'active';
|
|
31
|
+
}
|
|
32
|
+
if (this.hover) {
|
|
33
|
+
return 'hover';
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
get noHover() {
|
|
38
|
+
return this.readOnly || this.hover === false;
|
|
39
|
+
}
|
|
40
|
+
get noActive() {
|
|
41
|
+
return this.readOnly || this.active === false;
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
44
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiWrapperDirective, selector: "[tuiWrapper]", inputs: { disabled: "disabled", readOnly: "readOnly", hover: "hover", active: "active", focus: "focus", invalid: "invalid", appearance: "appearance" }, host: { properties: { "attr.data-appearance": "this.appearance", "class._invalid": "this.computedInvalid", "class._focused": "this.computedFocused", "attr.data-state": "this.interactiveState", "class._no-hover": "this.noHover", "class._no-active": "this.noActive" } }, ngImport: i0 }); }
|
|
45
|
+
}
|
|
46
|
+
export { TuiWrapperDirective };
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperDirective, decorators: [{
|
|
48
|
+
type: Directive,
|
|
49
|
+
args: [{
|
|
50
|
+
selector: '[tuiWrapper]',
|
|
51
|
+
}]
|
|
52
|
+
}], propDecorators: { disabled: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], readOnly: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}], hover: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], active: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], focus: [{
|
|
61
|
+
type: Input
|
|
62
|
+
}], invalid: [{
|
|
63
|
+
type: Input
|
|
64
|
+
}], appearance: [{
|
|
65
|
+
type: Input
|
|
66
|
+
}, {
|
|
67
|
+
type: HostBinding,
|
|
68
|
+
args: ['attr.data-appearance']
|
|
69
|
+
}], computedInvalid: [{
|
|
70
|
+
type: HostBinding,
|
|
71
|
+
args: ['class._invalid']
|
|
72
|
+
}], computedFocused: [{
|
|
73
|
+
type: HostBinding,
|
|
74
|
+
args: ['class._focused']
|
|
75
|
+
}], interactiveState: [{
|
|
76
|
+
type: HostBinding,
|
|
77
|
+
args: ['attr.data-state']
|
|
78
|
+
}], noHover: [{
|
|
79
|
+
type: HostBinding,
|
|
80
|
+
args: ['class._no-hover']
|
|
81
|
+
}], noActive: [{
|
|
82
|
+
type: HostBinding,
|
|
83
|
+
args: ['class._no-active']
|
|
84
|
+
}] } });
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JhcHBlci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvZGlyZWN0aXZlcy93cmFwcGVyL3dyYXBwZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFHNUQ7O0dBRUc7QUFDSCxNQUdhLG1CQUFtQjtJQUhoQztRQUtXLGFBQVEsR0FBRyxLQUFLLENBQUM7UUFHakIsYUFBUSxHQUFHLEtBQUssQ0FBQztRQUdqQixVQUFLLEdBQW1CLElBQUksQ0FBQztRQUc3QixXQUFNLEdBQW1CLElBQUksQ0FBQztRQUc5QixVQUFLLEdBQUcsS0FBSyxDQUFDO1FBR2QsWUFBTyxHQUFHLEtBQUssQ0FBQztRQUloQixlQUFVLEdBQUcsRUFBRSxDQUFDO0tBMEMxQjtJQXhDRyxJQUNjLGVBQWU7UUFDekIsT0FBTyxDQUFDLElBQUksQ0FBQyxRQUFRLElBQUksQ0FBQyxJQUFJ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ASG9zdEJpbmRpbmcoJ2NsYXNzLl9uby1ob3ZlcicpXG4gICAgcHJvdGVjdGVkIGdldCBub0hvdmVyKCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gdGhpcy5yZWFkT25seSB8fCB0aGlzLmhvdmVyID09PSBmYWxzZTtcbiAgICB9XG5cbiAgICBASG9zdEJpbmRpbmcoJ2NsYXNzLl9uby1hY3RpdmUnKVxuICAgIHByb3RlY3RlZCBnZXQgbm9BY3RpdmUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiB0aGlzLnJlYWRPbmx5IHx8IHRoaXMuYWN0aXZlID09PSBmYWxzZTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { TuiWrapperDirective } from './wrapper.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated: drop in v5.0
|
|
6
|
+
*/
|
|
7
|
+
class TuiWrapperModule {
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
9
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperModule, declarations: [TuiWrapperDirective], exports: [TuiWrapperDirective] }); }
|
|
10
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperModule }); }
|
|
11
|
+
}
|
|
12
|
+
export { TuiWrapperModule };
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiWrapperModule, decorators: [{
|
|
14
|
+
type: NgModule,
|
|
15
|
+
args: [{
|
|
16
|
+
declarations: [TuiWrapperDirective],
|
|
17
|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XNzIFR1aVdyYXBwZXJNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from '@taiga-ui/legacy/classes';
|
|
2
|
+
export * from '@taiga-ui/legacy/components';
|
|
3
|
+
export * from '@taiga-ui/legacy/directives';
|
|
4
|
+
export * from '@taiga-ui/legacy/pipes';
|
|
5
|
+
export * from '@taiga-ui/legacy/tokens';
|
|
6
|
+
export * from '@taiga-ui/legacy/utils';
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvbGVnYWN5L2NsYXNzZXMnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2xlZ2FjeS9jb21wb25lbnRzJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9sZWdhY3kvZGlyZWN0aXZlcyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvbGVnYWN5L3BpcGVzJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9sZWdhY3kvdG9rZW5zJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9sZWdhY3kvdXRpbHMnO1xuIl19
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
|
|
2
|
+
import { Pipe } from '@angular/core';
|
|
3
|
+
import { CHAR_PLUS } from '@taiga-ui/cdk/constants';
|
|
4
|
+
import { tuiFormatPhone } from '@taiga-ui/legacy/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated: drop in v5.0
|
|
8
|
+
*/
|
|
9
|
+
class TuiFormatPhonePipe {
|
|
10
|
+
/**
|
|
11
|
+
* Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
|
|
12
|
+
* ```ts
|
|
13
|
+
* import {maskitoTransform} from '@maskito/core';
|
|
14
|
+
* import {maskitoPhoneOptionsGenerator} from '@maskito/phone';
|
|
15
|
+
* import metadata from 'libphonenumber-js/min/metadata';
|
|
16
|
+
*
|
|
17
|
+
* @Component({
|
|
18
|
+
* standalone: true,
|
|
19
|
+
* imports: [MaskitoPipe],
|
|
20
|
+
* template: `
|
|
21
|
+
* Phone: {{'12125552368' | maskito: options}}
|
|
22
|
+
* <!-- Phone: +1 (212) 555-2368 -->
|
|
23
|
+
* `,
|
|
24
|
+
* })
|
|
25
|
+
* export class YourComponent {
|
|
26
|
+
* options = maskitoPhoneOptionsGenerator({countryIsoCode: 'US', metadata});
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
* ___
|
|
30
|
+
* @deprecated Use {@link https://maskito.dev/frameworks/angular#pipe MaskitoPipe} instead!
|
|
31
|
+
* Formats phone number string of +7XXXXXXXXXX format with adding separator symbols
|
|
32
|
+
* @param value
|
|
33
|
+
* @param countryCode
|
|
34
|
+
* @param phoneMask
|
|
35
|
+
* @return formatted phone number string +7(XXX)XXX-XX-XX
|
|
36
|
+
*/
|
|
37
|
+
transform(value, countryCode = `${CHAR_PLUS}7`, phoneMask = '(###) ###-##-##') {
|
|
38
|
+
ngDevMode &&
|
|
39
|
+
console.assert(value !== undefined, 'Undefined was passed to tuiFormatPhone pipe');
|
|
40
|
+
return tuiFormatPhone(value, countryCode, phoneMask);
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatPhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
43
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatPhonePipe, isStandalone: true, name: "tuiFormatPhone" }); }
|
|
44
|
+
}
|
|
45
|
+
export { TuiFormatPhonePipe };
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiFormatPhonePipe, decorators: [{
|
|
47
|
+
type: Pipe,
|
|
48
|
+
args: [{
|
|
49
|
+
standalone: true,
|
|
50
|
+
name: 'tuiFormatPhone',
|
|
51
|
+
}]
|
|
52
|
+
}] });
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWF0LXBob25lLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvZm9ybWF0LXBob25lL2Zvcm1hdC1waG9uZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHdEQUF3RDtBQUV4RCxPQUFPLEVBQUMsSUFBSSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ25DLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUNsRCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sd0JBQXdCLENBQUM7O0FBRXREOztHQUVHO0FBQ0gsTUFJYSxrQkFBa0I7SUFDM0I7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BMEJHO0lBQ0ksU0FBUyxDQUNaLEtBQWEsRUFDYixXQUFXLE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cgc2VwYXJhdG9yIHN5bWJvbHNcbiAgICAgKiBAcGFyYW0gdmFsdWVcbiAgICAgKiBAcGFyYW0gY291bnRyeUNvZGVcbiAgICAgKiBAcGFyYW0gcGhvbmVNYXNrXG4gICAgICogQHJldHVybiBmb3JtYXR0ZWQgcGhvbmUgbnVtYmVyIHN0cmluZyArNyhYWFgpWFhYLVhYLVhYXG4gICAgICovXG4gICAgcHVibGljIHRyYW5zZm9ybShcbiAgICAgICAgdmFsdWU6IHN0cmluZyxcbiAgICAgICAgY291bnRyeUNvZGUgPSBgJHtDSEFSX1BMVVN9N2AsXG4gICAgICAgIHBob25lTWFzayA9ICcoIyMjKSAjIyMtIyMtIyMnLFxuICAgICk6IHN0cmluZyB7XG4gICAgICAgIG5nRGV2TW9kZSAmJlxuICAgICAgICAgICAgY29uc29sZS5hc3NlcnQoXG4gICAgICAgICAgICAgICAgdmFsdWUgIT09IHVuZGVmaW5lZCxcbiAgICAgICAgICAgICAgICAnVW5kZWZpbmVkIHdhcyBwYXNzZWQgdG8gdHVpRm9ybWF0UGhvbmUgcGlwZScsXG4gICAgICAgICAgICApO1xuXG4gICAgICAgIHJldHVybiB0dWlGb3JtYXRQaG9uZSh2YWx1ZSwgY291bnRyeUNvZGUsIHBob25lTWFzayk7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './format-phone.pipe';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvZm9ybWF0LXBob25lL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Zvcm1hdC1waG9uZS5waXBlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LXBpcGVzLWZvcm1hdC1waG9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xlZ2FjeS9waXBlcy9mb3JtYXQtcGhvbmUvdGFpZ2EtdWktbGVnYWN5LXBpcGVzLWZvcm1hdC1waG9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from '@taiga-ui/legacy/pipes/format-phone';
|
|
2
|
+
export * from '@taiga-ui/legacy/pipes/iso-to-country-code';
|
|
3
|
+
export * from '@taiga-ui/legacy/pipes/to-country-code';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBcUMsQ0FBQztBQUNwRCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsd0NBQXdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvbGVnYWN5L3BpcGVzL2Zvcm1hdC1waG9uZSc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvbGVnYWN5L3BpcGVzL2lzby10by1jb3VudHJ5LWNvZGUnO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2xlZ2FjeS9waXBlcy90by1jb3VudHJ5LWNvZGUnO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './iso-to-country-code.pipe';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvaXNvLXRvLWNvdW50cnktY29kZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pc28tdG8tY291bnRyeS1jb2RlLnBpcGUnO1xuIl19
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { inject, Pipe } from '@angular/core';
|
|
2
|
+
import { TUI_COUNTRIES_MASKS } from '@taiga-ui/legacy/tokens';
|
|
3
|
+
import { tuiIsoToCountryCode } from '@taiga-ui/legacy/utils';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated: drop in v5.0
|
|
7
|
+
* Use `getCountryCallingCode` from `libphonenumber-js/core` instead
|
|
8
|
+
* ```ts
|
|
9
|
+
* import {getCountryCallingCode} from 'libphonenumber-js/core';
|
|
10
|
+
* import metadata from 'libphonenumber-js/max/metadata';
|
|
11
|
+
*
|
|
12
|
+
* getCountryCallingCode('US', metadata) // 1
|
|
13
|
+
* getCountryCallingCode('GB', metadata) // 44
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
class TuiIsoToCountryCodePipe {
|
|
17
|
+
constructor() {
|
|
18
|
+
this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `getCountryCallingCode` from `libphonenumber-js/core` instead
|
|
22
|
+
* ```ts
|
|
23
|
+
* import {getCountryCallingCode} from 'libphonenumber-js/core';
|
|
24
|
+
* import metadata from 'libphonenumber-js/max/metadata';
|
|
25
|
+
*
|
|
26
|
+
* getCountryCallingCode('US', metadata) // 1
|
|
27
|
+
* getCountryCallingCode('GB', metadata) // 44
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
transform(isoCode) {
|
|
31
|
+
return tuiIsoToCountryCode(this.countriesMasks, isoCode);
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIsoToCountryCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
34
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiIsoToCountryCodePipe, isStandalone: true, name: "tuiIsoToCountryCode" }); }
|
|
35
|
+
}
|
|
36
|
+
export { TuiIsoToCountryCodePipe };
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiIsoToCountryCodePipe, decorators: [{
|
|
38
|
+
type: Pipe,
|
|
39
|
+
args: [{
|
|
40
|
+
standalone: true,
|
|
41
|
+
name: 'tuiIsoToCountryCode',
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXNvLXRvLWNvdW50cnktY29kZS5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcH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gICAgICogaW1wb3J0IG1ldGFkYXRhIGZyb20gJ2xpYnBob25lbnVtYmVyLWpzL21heC9tZXRhZGF0YSc7XG4gICAgICpcbiAgICAgKiBnZXRDb3VudHJ5Q2FsbGluZ0NvZGUoJ1VTJywgbWV0YWRhdGEpIC8vIDFcbiAgICAgKiBnZXRDb3VudHJ5Q2FsbGluZ0NvZGUoJ0dCJywgbWV0YWRhdGEpIC8vIDQ0XG4gICAgICogYGBgXG4gICAgICovXG4gICAgcHVibGljIHRyYW5zZm9ybShpc29Db2RlOiBUdWlDb3VudHJ5SXNvQ29kZSk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB0dWlJc29Ub0NvdW50cnlDb2RlKHRoaXMuY291bnRyaWVzTWFza3MsIGlzb0NvZGUpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LXBpcGVzLWlzby10by1jb3VudHJ5LWNvZGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvaXNvLXRvLWNvdW50cnktY29kZS90YWlnYS11aS1sZWdhY3ktcGlwZXMtaXNvLXRvLWNvdW50cnktY29kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LXBpcGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L3BpcGVzL3RhaWdhLXVpLWxlZ2FjeS1waXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './to-country-code.pipe';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvdG8tY291bnRyeS1jb2RlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RvLWNvdW50cnktY29kZS5waXBlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LXBpcGVzLXRvLWNvdW50cnktY29kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xlZ2FjeS9waXBlcy90by1jb3VudHJ5LWNvZGUvdGFpZ2EtdWktbGVnYWN5LXBpcGVzLXRvLWNvdW50cnktY29kZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { inject, Pipe } from '@angular/core';
|
|
2
|
+
import { CHAR_PLUS } from '@taiga-ui/cdk/constants';
|
|
3
|
+
import { TUI_COUNTRIES_MASKS } from '@taiga-ui/legacy/tokens';
|
|
4
|
+
import { tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode, tuiNotKzRegion, } from '@taiga-ui/legacy/utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated: drop in v5.0
|
|
8
|
+
* use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
|
|
9
|
+
* ```
|
|
10
|
+
* npm i @maskito/phone
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* import {maskitoGetCountryFromNumber} from '@maskito/phone';
|
|
15
|
+
* import metadata from 'libphonenumber-js/min/metadata';
|
|
16
|
+
*
|
|
17
|
+
* maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
|
|
18
|
+
* maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
class TuiToCountryCodePipe {
|
|
22
|
+
constructor() {
|
|
23
|
+
this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated use `maskitoGetCountryFromNumber` from `@maskito/phone` instead
|
|
27
|
+
* ```
|
|
28
|
+
* npm i @maskito/phone
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ```ts
|
|
32
|
+
* import {maskitoGetCountryFromNumber} from '@maskito/phone';
|
|
33
|
+
* import metadata from 'libphonenumber-js/min/metadata';
|
|
34
|
+
*
|
|
35
|
+
* maskitoGetCountryFromNumber('+1 (212) 555-2368', metadata); // 'US'
|
|
36
|
+
* maskitoGetCountryFromNumber('+12125552368', metadata); // 'US'
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
transform(value, countries) {
|
|
40
|
+
return countries.find((countryIsoCode) => {
|
|
41
|
+
const ruCodeTest = countryIsoCode === 'RU' &&
|
|
42
|
+
/^[78]/.test(value) &&
|
|
43
|
+
/^(?!880[1-9 ])/.test(value) &&
|
|
44
|
+
value.length + 1 ===
|
|
45
|
+
tuiGetMaxAllowedPhoneLength(this.countriesMasks, 'RU');
|
|
46
|
+
const matched = ruCodeTest ||
|
|
47
|
+
(value.startsWith(tuiIsoToCountryCode(this.countriesMasks, countryIsoCode).replace(CHAR_PLUS, '')) &&
|
|
48
|
+
value.length + 1 ===
|
|
49
|
+
tuiGetMaxAllowedPhoneLength(this.countriesMasks, countryIsoCode));
|
|
50
|
+
if (matched) {
|
|
51
|
+
switch (countryIsoCode) {
|
|
52
|
+
case 'RU':
|
|
53
|
+
return tuiNotKzRegion(value);
|
|
54
|
+
case 'KZ':
|
|
55
|
+
return !tuiNotKzRegion(value);
|
|
56
|
+
default:
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiToCountryCodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
64
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiToCountryCodePipe, isStandalone: true, name: "tuiToCountryCode" }); }
|
|
65
|
+
}
|
|
66
|
+
export { TuiToCountryCodePipe };
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiToCountryCodePipe, decorators: [{
|
|
68
|
+
type: Pipe,
|
|
69
|
+
args: [{
|
|
70
|
+
standalone: true,
|
|
71
|
+
name: 'tuiToCountryCode',
|
|
72
|
+
}]
|
|
73
|
+
}] });
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG8tY291bnRyeS1jb2RlLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvcGlwZXMvdG8tY291bnRyeS1jb2RlL3RvLWNvdW50cnktY29kZS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBQyxNQUFNLEVBQUUsSUFBSSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUVsRCxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUM1RCxPQUFPLEVBQ0gsMkJBQTJCLEVBQzNCLG1CQUFtQixFQUNuQixjQUFjLEdBQ2pCLE1BQU0sd0JBQXdCLENBQUM7O0FBRWhDOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBQ0gsTUFJYSxvQkFBb0I7SUFKakM7UUFLcUIsbUJBQWMsR0FBRyxNQUFNLENBQUMsbUJBQW1CLENBQUMsQ0FBQztLQXFEakU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k7IC8vICdVUydcbiAgICAgKiBgYGBcbiAgICAgKi9cbiAgICBwdWJsaWMgdHJhbnNmb3JtKFxuICAgICAgICB2YWx1ZTogc3RyaW5nLFxuICAgICAgICBjb3VudHJpZXM6IHJlYWRvbmx5IFR1aUNvdW50cnlJc29Db2RlW10sXG4gICAgKTogVHVpQ291bnRyeUlzb0NvZGUgfCB1bmRlZmluZWQge1xuICAgICAgICByZXR1cm4gY291bnRyaWVzLmZpbmQoKGNvdW50cnlJc29Db2RlKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBydUNvZGVUZXN0ID1cbiAgICAgICAgICAgICAgICBjb3VudHJ5SXNvQ29kZSA9PT0gJ1JVJyAmJlxuICAgICAgICAgICAgICAgIC9eWzc4XS8udGVzdCh2YWx1ZSkgJiZcbiAgICAgICAgICAgICAgICAvXig/ITg4MFsxLTkgXSkvLnRlc3QodmFsdWUpICYmXG4gICAgICAgICAgICAgICAgdmFsdWUubGVuZ3RoICsgMSA9PT1cbiAgICAgICAgICAgICAgICAgICAgdHVpR2V0TWF4QWxsb3dlZFBob25lTGVuZ3RoKHRoaXMuY291bnRyaWVzTWFza3MsICdSVScpO1xuXG4gICAgICAgICAgICBjb25zdCBtYXRjaGVkID1cbiAgICAgICAgICAgICAgICBydUNvZGVUZXN0IHx8XG4gICAgICAgICAgICAgICAgKHZhbHVlLnN0YXJ0c1dpdGgoXG4gICAgICAgICAgICAgICAgICAgIHR1aUlzb1RvQ291bnRyeUNvZGUodGhpcy5jb3VudHJpZXNNYXNrcywgY291bnRyeUlzb0NvZGUpLnJlcGxhY2UoXG4gICAgICAgICAgICAgICAgICAgICAgICBDSEFSX1BMVVMsXG4gICAgICAgICAgICAgICAgICAgICAgICAnJyxcbiAgICAgICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICApICYmXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlLmxlbmd0aCArIDEgPT09XG4gICAgICAgICAgICAgICAgICAgICAgICB0dWlHZXRNYXhBbGxvd2VkUGhvbmVMZW5ndGgodGhpcy5jb3VudHJpZXNNYXNrcywgY291bnRyeUlzb0NvZGUpKTtcblxuICAgICAgICAgICAgaWYgKG1hdGNoZWQpIHtcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKGNvdW50cnlJc29Db2RlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ1JVJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0dWlOb3RLelJlZ2lvbih2YWx1ZSk7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgJ0taJzpcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAhdHVpTm90S3pSZWdpb24odmFsdWUpO1xuICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH0pO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L3RhaWdhLXVpLWxlZ2FjeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|