@taiga-ui/legacy 4.0.0-rc.1
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 +17 -0
- package/classes/abstract-textfield-host.d.ts +19 -0
- package/classes/control.d.ts +58 -0
- package/classes/index.d.ts +8 -0
- package/classes/interactive.d.ts +35 -0
- package/classes/multiple-control.d.ts +8 -0
- package/classes/named-day.d.ts +8 -0
- package/classes/nullable-control.d.ts +7 -0
- package/classes/stringifiable-item.d.ts +10 -0
- package/components/arrow/arrow.component.d.ts +16 -0
- package/components/arrow/arrow.options.d.ts +13 -0
- package/components/arrow/arrow.providers.d.ts +14 -0
- package/components/arrow/index.d.ts +3 -0
- package/components/combo-box/combo-box-strict.directive.d.ts +8 -0
- package/components/combo-box/combo-box.component.d.ts +47 -0
- package/components/combo-box/combo-box.directive.d.ts +9 -0
- package/components/combo-box/combo-box.module.d.ts +16 -0
- package/components/combo-box/index.d.ts +4 -0
- package/components/index.d.ts +31 -0
- package/components/input/index.d.ts +3 -0
- package/components/input/input.component.d.ts +27 -0
- package/components/input/input.directive.d.ts +8 -0
- package/components/input/input.module.d.ts +11 -0
- package/components/input-copy/index.d.ts +4 -0
- package/components/input-copy/input-copy.component.d.ts +30 -0
- package/components/input-copy/input-copy.directive.d.ts +8 -0
- package/components/input-copy/input-copy.module.d.ts +15 -0
- package/components/input-copy/input-copy.options.d.ts +14 -0
- package/components/input-date/index.d.ts +3 -0
- package/components/input-date/input-date.component.d.ts +61 -0
- package/components/input-date/input-date.directive.d.ts +15 -0
- package/components/input-date/input-date.module.d.ts +20 -0
- package/components/input-date/native-date/native-date.component.d.ts +11 -0
- package/components/input-date-multi/index.d.ts +2 -0
- package/components/input-date-multi/input-date-multi.component.d.ts +66 -0
- package/components/input-date-multi/input-date-multi.module.d.ts +20 -0
- package/components/input-date-range/index.d.ts +3 -0
- package/components/input-date-range/input-date-range.component.d.ts +63 -0
- package/components/input-date-range/input-date-range.directive.d.ts +12 -0
- package/components/input-date-range/input-date-range.module.d.ts +18 -0
- package/components/input-date-time/index.d.ts +3 -0
- package/components/input-date-time/input-date-time.component.d.ts +77 -0
- package/components/input-date-time/input-date-time.directive.d.ts +13 -0
- package/components/input-date-time/input-date-time.module.d.ts +19 -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 +41 -0
- package/components/input-month/input-month.directive.d.ts +15 -0
- package/components/input-month/input-month.module.d.ts +15 -0
- package/components/input-month-range/index.d.ts +3 -0
- package/components/input-month-range/input-month-range.component.d.ts +35 -0
- package/components/input-month-range/input-month-range.directive.d.ts +15 -0
- package/components/input-month-range/input-month-range.module.d.ts +14 -0
- package/components/input-number/index.d.ts +4 -0
- package/components/input-number/input-number.component.d.ts +56 -0
- package/components/input-number/input-number.directive.d.ts +12 -0
- package/components/input-number/input-number.module.d.ts +14 -0
- package/components/input-number/input-number.options.d.ts +17 -0
- package/components/input-password/index.d.ts +4 -0
- package/components/input-password/input-password.component.d.ts +30 -0
- package/components/input-password/input-password.directive.d.ts +12 -0
- package/components/input-password/input-password.module.d.ts +16 -0
- package/components/input-password/input-password.options.d.ts +13 -0
- package/components/input-phone/index.d.ts +4 -0
- package/components/input-phone/input-phone.component.d.ts +48 -0
- package/components/input-phone/input-phone.directive.d.ts +13 -0
- package/components/input-phone/input-phone.module.d.ts +12 -0
- package/components/input-phone/input-phone.options.d.ts +12 -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 +38 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +12 -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 +52 -0
- package/components/input-range/input-range.module.d.ts +15 -0
- package/components/input-slider/index.d.ts +2 -0
- package/components/input-slider/input-slider.component.d.ts +38 -0
- package/components/input-slider/input-slider.module.d.ts +14 -0
- package/components/input-tag/index.d.ts +3 -0
- package/components/input-tag/input-tag.component.d.ts +94 -0
- package/components/input-tag/input-tag.module.d.ts +18 -0
- package/components/input-tag/input-tag.options.d.ts +13 -0
- package/components/input-time/index.d.ts +4 -0
- package/components/input-time/input-time.component.d.ts +60 -0
- package/components/input-time/input-time.directive.d.ts +13 -0
- package/components/input-time/input-time.module.d.ts +19 -0
- package/components/input-time/input-time.options.d.ts +20 -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 +32 -0
- package/components/input-year/input-year.directive.d.ts +10 -0
- package/components/input-year/input-year.module.d.ts +14 -0
- package/components/island/index.d.ts +1 -0
- package/components/island/island.directive.d.ts +16 -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 +65 -0
- package/components/multi-select/multi-select.directive.d.ts +14 -0
- package/components/multi-select/multi-select.module.d.ts +27 -0
- package/components/multi-select/multi-select.options.d.ts +13 -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 +9 -0
- package/components/multi-select-option/multi-select-option.module.d.ts +9 -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 +11 -0
- package/components/primitive-textfield/primitive-textfield.component.d.ts +68 -0
- package/components/primitive-textfield/primitive-textfield.directive.d.ts +10 -0
- package/components/primitive-textfield/primitive-textfield.module.d.ts +17 -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 +40 -0
- package/components/select/select.directive.d.ts +12 -0
- package/components/select/select.module.d.ts +20 -0
- package/components/select/select.options.d.ts +12 -0
- package/components/select-option/index.d.ts +2 -0
- package/components/select-option/select-option.component.d.ts +27 -0
- package/components/select-option/select-option.module.d.ts +10 -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 +15 -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 +16 -0
- package/components/svg/deprecated-icons.d.ts +1 -0
- package/components/svg/index.d.ts +5 -0
- package/components/svg/svg-options.d.ts +22 -0
- package/components/svg/svg.component.d.ts +43 -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 +40 -0
- package/components/tag/tag.module.d.ts +12 -0
- package/components/tag/tag.options.d.ts +15 -0
- package/components/textarea/index.d.ts +3 -0
- package/components/textarea/textarea.component.d.ts +50 -0
- package/components/textarea/textarea.directive.d.ts +8 -0
- package/components/textarea/textarea.module.d.ts +17 -0
- package/components/tooltip/index.d.ts +2 -0
- package/components/tooltip/tooltip.component.d.ts +12 -0
- package/components/tooltip/tooltip.module.d.ts +12 -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 +8 -0
- package/directives/textfield-controller/textfield-cleaner.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-controller.module.d.ts +17 -0
- package/directives/textfield-controller/textfield-controller.provider.d.ts +5 -0
- package/directives/textfield-controller/textfield-custom-content.directive.d.ts +9 -0
- package/directives/textfield-controller/textfield-filler.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-icon-left.directive.d.ts +11 -0
- package/directives/textfield-controller/textfield-icon.directive.d.ts +11 -0
- package/directives/textfield-controller/textfield-label-outside.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-postfix.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-prefix.directive.d.ts +8 -0
- package/directives/textfield-controller/textfield-size.directive.d.ts +9 -0
- package/directives/textfield-controller/textfield.controller.d.ts +41 -0
- package/directives/textfield-controller/textfield.options.d.ts +15 -0
- package/directives/unfinished-validator/index.d.ts +2 -0
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +8 -0
- package/directives/unfinished-validator/unfinished.validator.d.ts +4 -0
- package/directives/value-accessor/index.d.ts +3 -0
- package/directives/value-accessor/value-accessor.directive.d.ts +5 -0
- package/directives/value-accessor/value-accessor.module.d.ts +7 -0
- package/directives/value-accessor/value-accessor.provider.d.ts +2 -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 +37 -0
- package/esm2022/classes/abstract-textfield-host.mjs +37 -0
- package/esm2022/classes/control.mjs +175 -0
- package/esm2022/classes/index.mjs +9 -0
- package/esm2022/classes/interactive.mjs +85 -0
- package/esm2022/classes/multiple-control.mjs +18 -0
- package/esm2022/classes/named-day.mjs +11 -0
- package/esm2022/classes/nullable-control.mjs +15 -0
- package/esm2022/classes/stringifiable-item.mjs +13 -0
- package/esm2022/classes/taiga-ui-legacy-classes.mjs +5 -0
- package/esm2022/components/arrow/arrow.component.mjs +42 -0
- package/esm2022/components/arrow/arrow.options.mjs +14 -0
- package/esm2022/components/arrow/arrow.providers.mjs +14 -0
- package/esm2022/components/arrow/index.mjs +4 -0
- package/esm2022/components/arrow/taiga-ui-legacy-components-arrow.mjs +5 -0
- package/esm2022/components/combo-box/combo-box-strict.directive.mjs +29 -0
- package/esm2022/components/combo-box/combo-box.component.mjs +176 -0
- package/esm2022/components/combo-box/combo-box.directive.mjs +23 -0
- package/esm2022/components/combo-box/combo-box.module.mjs +67 -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 +32 -0
- package/esm2022/components/input/index.mjs +4 -0
- package/esm2022/components/input/input.component.mjs +89 -0
- package/esm2022/components/input/input.directive.mjs +20 -0
- package/esm2022/components/input/input.module.mjs +30 -0
- package/esm2022/components/input/taiga-ui-legacy-components-input.mjs +5 -0
- package/esm2022/components/input-copy/index.mjs +5 -0
- package/esm2022/components/input-copy/input-copy.component.mjs +103 -0
- package/esm2022/components/input-copy/input-copy.directive.mjs +20 -0
- package/esm2022/components/input-copy/input-copy.module.mjs +52 -0
- package/esm2022/components/input-copy/input-copy.options.mjs +12 -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 +217 -0
- package/esm2022/components/input-date/input-date.directive.mjs +38 -0
- package/esm2022/components/input-date/input-date.module.mjs +71 -0
- package/esm2022/components/input-date/native-date/native-date.component.mjs +48 -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 +212 -0
- package/esm2022/components/input-date-multi/input-date-multi.module.mjs +67 -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 +243 -0
- package/esm2022/components/input-date-range/input-date-range.directive.mjs +31 -0
- package/esm2022/components/input-date-range/input-date-range.module.mjs +67 -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 +302 -0
- package/esm2022/components/input-date-time/input-date-time.directive.mjs +32 -0
- package/esm2022/components/input-date-time/input-date-time.module.mjs +74 -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 +132 -0
- package/esm2022/components/input-month/input-month.directive.mjs +41 -0
- package/esm2022/components/input-month/input-month.module.mjs +53 -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 +120 -0
- package/esm2022/components/input-month-range/input-month-range.directive.mjs +47 -0
- package/esm2022/components/input-month-range/input-month-range.module.mjs +49 -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 +257 -0
- package/esm2022/components/input-number/input-number.directive.mjs +33 -0
- package/esm2022/components/input-number/input-number.module.mjs +44 -0
- package/esm2022/components/input-number/input-number.options.mjs +19 -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 +78 -0
- package/esm2022/components/input-password/input-password.directive.mjs +30 -0
- package/esm2022/components/input-password/input-password.module.mjs +56 -0
- package/esm2022/components/input-password/input-password.options.mjs +12 -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 +217 -0
- package/esm2022/components/input-phone/input-phone.directive.mjs +33 -0
- package/esm2022/components/input-phone/input-phone.module.mjs +44 -0
- package/esm2022/components/input-phone/input-phone.options.mjs +14 -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 +181 -0
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +13 -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 +203 -0
- package/esm2022/components/input-range/input-range.module.mjs +51 -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 +150 -0
- package/esm2022/components/input-slider/input-slider.module.mjs +44 -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 +415 -0
- package/esm2022/components/input-tag/input-tag.module.mjs +63 -0
- package/esm2022/components/input-tag/input-tag.options.mjs +14 -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 +275 -0
- package/esm2022/components/input-time/input-time.directive.mjs +35 -0
- package/esm2022/components/input-time/input-time.module.mjs +67 -0
- package/esm2022/components/input-time/input-time.options.mjs +22 -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 +107 -0
- package/esm2022/components/input-year/input-year.directive.mjs +27 -0
- package/esm2022/components/input-year/input-year.module.mjs +49 -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 +74 -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 +204 -0
- package/esm2022/components/multi-select/multi-select.directive.mjs +31 -0
- package/esm2022/components/multi-select/multi-select.module.mjs +111 -0
- package/esm2022/components/multi-select/multi-select.options.mjs +13 -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 +25 -0
- package/esm2022/components/multi-select-option/multi-select-option.module.mjs +20 -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 +247 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.directive.mjs +28 -0
- package/esm2022/components/primitive-textfield/primitive-textfield.module.mjs +62 -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 +116 -0
- package/esm2022/components/select/select.directive.mjs +29 -0
- package/esm2022/components/select/select.module.mjs +83 -0
- package/esm2022/components/select/select.options.mjs +12 -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 +65 -0
- package/esm2022/components/select-option/select-option.module.mjs +21 -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 +14 -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 +38 -0
- package/esm2022/components/svg/deprecated-icons.mjs +59 -0
- package/esm2022/components/svg/index.mjs +6 -0
- package/esm2022/components/svg/svg-options.mjs +60 -0
- package/esm2022/components/svg/svg.component.mjs +147 -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 +171 -0
- package/esm2022/components/tag/tag.module.mjs +38 -0
- package/esm2022/components/tag/tag.options.mjs +15 -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 +189 -0
- package/esm2022/components/textarea/textarea.directive.mjs +20 -0
- package/esm2022/components/textarea/textarea.module.mjs +64 -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 +47 -0
- package/esm2022/components/tooltip/tooltip.module.mjs +24 -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 +32 -0
- package/esm2022/directives/textfield-controller/textfield-cleaner.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-controller.module.mjs +72 -0
- package/esm2022/directives/textfield-controller/textfield-controller.provider.mjs +44 -0
- package/esm2022/directives/textfield-controller/textfield-custom-content.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-filler.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-icon-left.directive.mjs +21 -0
- package/esm2022/directives/textfield-controller/textfield-icon.directive.mjs +21 -0
- package/esm2022/directives/textfield-controller/textfield-label-outside.directive.mjs +29 -0
- package/esm2022/directives/textfield-controller/textfield-postfix.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-prefix.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield-size.directive.mjs +25 -0
- package/esm2022/directives/textfield-controller/textfield.controller.mjs +48 -0
- package/esm2022/directives/textfield-controller/textfield.options.mjs +14 -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 +25 -0
- package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +15 -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 +16 -0
- package/esm2022/directives/value-accessor/value-accessor.module.mjs +17 -0
- package/esm2022/directives/value-accessor/value-accessor.provider.mjs +10 -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 +50 -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 +43 -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 +73 -0
- package/esm2022/taiga-ui-legacy.mjs +5 -0
- package/esm2022/tokens/countries-masks.mjs +254 -0
- package/esm2022/tokens/focusable-item-accessor.mjs +14 -0
- package/esm2022/tokens/fonts-ready.mjs +7 -0
- package/esm2022/tokens/icons.mjs +7 -0
- package/esm2022/tokens/index.mjs +15 -0
- package/esm2022/tokens/is-apple.mjs +9 -0
- package/esm2022/tokens/is-chromium.mjs +8 -0
- package/esm2022/tokens/is-firefox.mjs +9 -0
- package/esm2022/tokens/is-stackblitz.mjs +5 -0
- package/esm2022/tokens/month-formatter.mjs +17 -0
- package/esm2022/tokens/sanitizer.mjs +6 -0
- package/esm2022/tokens/taiga-ui-legacy-tokens.mjs +5 -0
- package/esm2022/tokens/textfield-appearance.mjs +7 -0
- package/esm2022/tokens/textfield-host.mjs +10 -0
- package/esm2022/tokens/touch-supported.mjs +5 -0
- package/esm2022/tokens/value-accessor.mjs +7 -0
- package/esm2022/utils/date-mode-maskito-adapter.mjs +6 -0
- package/esm2022/utils/format-phone.mjs +59 -0
- package/esm2022/utils/get-border.mjs +20 -0
- package/esm2022/utils/get-max-allowed-phone-length.mjs +25 -0
- package/esm2022/utils/get-safe-area-size.mjs +17 -0
- package/esm2022/utils/icons-path-factory.mjs +14 -0
- package/esm2022/utils/index.mjs +14 -0
- package/esm2022/utils/is-apple.mjs +6 -0
- package/esm2022/utils/is-presumed-html-string.mjs +6 -0
- package/esm2022/utils/iso-to-country-code.mjs +15 -0
- package/esm2022/utils/not-kz-region.mjs +23 -0
- package/esm2022/utils/process-icon.mjs +32 -0
- package/esm2022/utils/specific-dropdown-controllers.mjs +6 -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 +377 -0
- package/fesm2022/taiga-ui-legacy-classes.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs +73 -0
- package/fesm2022/taiga-ui-legacy-components-arrow.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs +280 -0
- package/fesm2022/taiga-ui-legacy-components-combo-box.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs +177 -0
- package/fesm2022/taiga-ui-legacy-components-input-copy.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs +277 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-multi.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +334 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +438 -0
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs +358 -0
- package/fesm2022/taiga-ui-legacy-components-input-date.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +209 -0
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs +219 -0
- package/fesm2022/taiga-ui-legacy-components-input-month.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +344 -0
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs +167 -0
- package/fesm2022/taiga-ui-legacy-components-input-password.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs +204 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone-international.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs +355 -0
- package/fesm2022/taiga-ui-legacy-components-input-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +253 -0
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs +192 -0
- package/fesm2022/taiga-ui-legacy-components-input-slider.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +488 -0
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs +447 -0
- package/fesm2022/taiga-ui-legacy-components-input-time.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs +176 -0
- package/fesm2022/taiga-ui-legacy-components-input-year.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs +132 -0
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs +80 -0
- package/fesm2022/taiga-ui-legacy-components-island.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs +47 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +628 -0
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +443 -0
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +88 -0
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs +323 -0
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs +561 -0
- package/fesm2022/taiga-ui-legacy-components-sheet.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-svg.mjs +356 -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 +225 -0
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +267 -0
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs +71 -0
- package/fesm2022/taiga-ui-legacy-components-tooltip.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-components.mjs +36 -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 +365 -0
- package/fesm2022/taiga-ui-legacy-directives-textfield-controller.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +44 -0
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-directives-value-accessor.mjs +43 -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 +56 -0
- package/fesm2022/taiga-ui-legacy-pipes-format-phone.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-pipes-iso-to-country-code.mjs +49 -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 +79 -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 +348 -0
- package/fesm2022/taiga-ui-legacy-tokens.mjs.map +1 -0
- package/fesm2022/taiga-ui-legacy-utils.mjs +235 -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 +303 -0
- package/pipes/format-phone/format-phone.pipe.d.ts +34 -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 +29 -0
- package/pipes/to-country-code/index.d.ts +1 -0
- package/pipes/to-country-code/to-country-code.pipe.d.ts +37 -0
- package/styles/mixins/mixins.less +252 -0
- package/styles/mixins/mixins.scss +230 -0
- package/styles/mixins/textfield.less +315 -0
- package/styles/mixins/textfield.scss +306 -0
- package/styles/mixins/wrapper.less +65 -0
- package/styles/mixins/wrapper.scss +59 -0
- package/styles/taiga-ui-local.less +4 -0
- package/styles/taiga-ui-local.scss +4 -0
- package/styles/taiga-ui-theme.less +15 -0
- package/styles/wrapper/accent.less +28 -0
- package/styles/wrapper/base.less +44 -0
- package/styles/wrapper/floating.less +19 -0
- package/styles/wrapper/glass.less +31 -0
- package/styles/wrapper/icon.less +53 -0
- package/styles/wrapper/mono.less +23 -0
- package/styles/wrapper/none.less +5 -0
- package/styles/wrapper/opposite.less +33 -0
- package/styles/wrapper/outline.less +52 -0
- package/styles/wrapper/primary.less +32 -0
- package/styles/wrapper/secondary-destructive.less +16 -0
- package/styles/wrapper/secondary.less +47 -0
- package/styles/wrapper/table.less +82 -0
- package/styles/wrapper/textfield.less +80 -0
- package/styles/wrapper/whiteblock.less +47 -0
- package/tokens/countries-masks.d.ts +7 -0
- package/tokens/focusable-item-accessor.d.ts +22 -0
- package/tokens/fonts-ready.d.ts +3 -0
- package/tokens/icons.d.ts +5 -0
- package/tokens/index.d.ts +14 -0
- package/tokens/is-apple.d.ts +4 -0
- package/tokens/is-chromium.d.ts +4 -0
- package/tokens/is-firefox.d.ts +4 -0
- package/tokens/is-stackblitz.d.ts +1 -0
- package/tokens/month-formatter.d.ts +10 -0
- package/tokens/sanitizer.d.ts +6 -0
- package/tokens/textfield-appearance.d.ts +5 -0
- package/tokens/textfield-host.d.ts +17 -0
- package/tokens/touch-supported.d.ts +1 -0
- package/tokens/value-accessor.d.ts +7 -0
- package/utils/date-mode-maskito-adapter.d.ts +3 -0
- package/utils/format-phone.d.ts +29 -0
- package/utils/get-border.d.ts +2 -0
- package/utils/get-max-allowed-phone-length.d.ts +23 -0
- package/utils/get-safe-area-size.d.ts +6 -0
- package/utils/icons-path-factory.d.ts +4 -0
- package/utils/index.d.ts +13 -0
- package/utils/is-apple.d.ts +1 -0
- package/utils/is-presumed-html-string.d.ts +1 -0
- package/utils/iso-to-country-code.d.ts +12 -0
- package/utils/not-kz-region.d.ts +19 -0
- package/utils/process-icon.d.ts +1 -0
- package/utils/specific-dropdown-controllers.d.ts +1 -0
- package/utils/status.d.ts +1 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, inject, Input, Output, ViewChild, } from '@angular/core';
|
|
4
|
+
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { CHAR_PLUS, TUI_NON_DIGITS_REGEXP } from '@taiga-ui/cdk/constants';
|
|
6
|
+
import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
7
|
+
import { TuiDataList } from '@taiga-ui/core/components/data-list';
|
|
8
|
+
import { TuiGroupDirective } from '@taiga-ui/core/components/group';
|
|
9
|
+
import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
|
|
10
|
+
import { TuiDropdown } from '@taiga-ui/core/directives/dropdown';
|
|
11
|
+
import { TuiHint } from '@taiga-ui/core/directives/hint';
|
|
12
|
+
import { TuiFlagPipe } from '@taiga-ui/core/pipes/flag';
|
|
13
|
+
import { TUI_COUNTRIES } from '@taiga-ui/kit/tokens';
|
|
14
|
+
import { AbstractTuiControl, tuiAsControl } from '@taiga-ui/legacy/classes';
|
|
15
|
+
import { TUI_ARROW, TuiArrowComponent } from '@taiga-ui/legacy/components/arrow';
|
|
16
|
+
import { TuiInputPhoneComponent, TuiInputPhoneModule, } from '@taiga-ui/legacy/components/input-phone';
|
|
17
|
+
import { TuiPrimitiveTextfieldComponent, TuiPrimitiveTextfieldModule, } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
18
|
+
import { TUI_TEXTFIELD_SIZE, TuiLegacyDropdownOpenMonitorDirective, TuiTextfieldControllerModule, } from '@taiga-ui/legacy/directives';
|
|
19
|
+
import { TuiIsoToCountryCodePipe, TuiToCountryCodePipe } from '@taiga-ui/legacy/pipes';
|
|
20
|
+
import { TUI_COUNTRIES_MASKS, tuiAsFocusableItemAccessor } from '@taiga-ui/legacy/tokens';
|
|
21
|
+
import { FIXED_DROPDOWN_CONTROLLER_PROVIDER, tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode, } from '@taiga-ui/legacy/utils';
|
|
22
|
+
import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
23
|
+
import { TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS } from './input-phone-international.options';
|
|
24
|
+
import { tuiExtractValueFromEvent } from './utils/extract-value-from-event';
|
|
25
|
+
import * as i0 from "@angular/core";
|
|
26
|
+
import * as i1 from "@angular/common";
|
|
27
|
+
import * as i2 from "@angular/forms";
|
|
28
|
+
import * as i3 from "@taiga-ui/legacy/components/input-phone";
|
|
29
|
+
import * as i4 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
30
|
+
import * as i5 from "@taiga-ui/core/directives/dropdown";
|
|
31
|
+
import * as i6 from "@taiga-ui/legacy/directives";
|
|
32
|
+
import * as i7 from "@taiga-ui/core/directives/hint";
|
|
33
|
+
import * as i8 from "@taiga-ui/core/components/data-list";
|
|
34
|
+
const MASK_SYMBOLS = /[ \-_()]/g;
|
|
35
|
+
class TuiInputPhoneInternationalComponent extends AbstractTuiControl {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
this.options = inject(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS);
|
|
39
|
+
this.extractCountryCodePipe = inject(TuiToCountryCodePipe);
|
|
40
|
+
this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
|
|
41
|
+
this.open = false;
|
|
42
|
+
this.countriesNames$ = inject(TUI_COUNTRIES);
|
|
43
|
+
this.countriesMasks = inject(TUI_COUNTRIES_MASKS);
|
|
44
|
+
this.arrow = TUI_ARROW;
|
|
45
|
+
this.countries = this.options.countries;
|
|
46
|
+
this.countryIsoCodeChange = new EventEmitter();
|
|
47
|
+
this.countryIsoCode = this.options.countryIsoCode;
|
|
48
|
+
}
|
|
49
|
+
set isoCode(code) {
|
|
50
|
+
if (this.countryIsoCode === code) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.inputPhoneComponent?.writeValue(this.value);
|
|
54
|
+
this.countryIsoCode = code;
|
|
55
|
+
}
|
|
56
|
+
get nativeFocusableElement() {
|
|
57
|
+
return this.inputPhoneComponent && !this.computedDisabled
|
|
58
|
+
? this.inputPhoneComponent.nativeFocusableElement
|
|
59
|
+
: null;
|
|
60
|
+
}
|
|
61
|
+
get focused() {
|
|
62
|
+
return ((!!this.primitiveTextfield && this.primitiveTextfield.focused) ||
|
|
63
|
+
(!!this.inputPhoneComponent && this.inputPhoneComponent.focused));
|
|
64
|
+
}
|
|
65
|
+
get inputPhoneCountryCode() {
|
|
66
|
+
return tuiIsoToCountryCode(this.countriesMasks, this.countryIsoCode);
|
|
67
|
+
}
|
|
68
|
+
get phoneMaskAfterCountryCode() {
|
|
69
|
+
const countryCode = this.inputPhoneCountryCode;
|
|
70
|
+
return this.calculateMaskAfterCountryCode(this.countriesMasks[this.countryIsoCode], countryCode);
|
|
71
|
+
}
|
|
72
|
+
onPaste(event) {
|
|
73
|
+
let value = tuiExtractValueFromEvent(event).replace(TUI_NON_DIGITS_REGEXP, '');
|
|
74
|
+
const countryIsoCode = this.extractCountryCodePipe.transform(value, this.countries);
|
|
75
|
+
if (!countryIsoCode) {
|
|
76
|
+
this.value = `${this.inputPhoneCountryCode}${value}`
|
|
77
|
+
.replaceAll(MASK_SYMBOLS, '')
|
|
78
|
+
.slice(0, tuiGetMaxAllowedPhoneLength(this.countriesMasks, this.countryIsoCode));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
if (countryIsoCode === 'RU') {
|
|
82
|
+
value = value.replace(/^8/, '7');
|
|
83
|
+
}
|
|
84
|
+
this.updateCountryIsoCode(countryIsoCode);
|
|
85
|
+
this.value = `${CHAR_PLUS}${value}`;
|
|
86
|
+
}
|
|
87
|
+
onItemClick(isoCode) {
|
|
88
|
+
this.open = false;
|
|
89
|
+
this.updateCountryIsoCode(isoCode);
|
|
90
|
+
// recalculates mask inside inputPhone to prevent isoCode conflict
|
|
91
|
+
this.cdr.detectChanges();
|
|
92
|
+
const maxLength = tuiGetMaxAllowedPhoneLength(this.countriesMasks, isoCode);
|
|
93
|
+
if (this.value.length > maxLength) {
|
|
94
|
+
this.value = this.value.slice(0, maxLength);
|
|
95
|
+
}
|
|
96
|
+
if (this.nativeFocusableElement) {
|
|
97
|
+
this.nativeFocusableElement.focus();
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
setDisabledState() {
|
|
101
|
+
super.setDisabledState();
|
|
102
|
+
this.close();
|
|
103
|
+
}
|
|
104
|
+
get size() {
|
|
105
|
+
return this.textfieldSize.size;
|
|
106
|
+
}
|
|
107
|
+
onActiveZone(active) {
|
|
108
|
+
this.updateFocused(active);
|
|
109
|
+
}
|
|
110
|
+
getFallbackValue() {
|
|
111
|
+
return '';
|
|
112
|
+
}
|
|
113
|
+
calculateMaskAfterCountryCode(mask, countryCode) {
|
|
114
|
+
return mask.replace(countryCode, '').trim();
|
|
115
|
+
}
|
|
116
|
+
close() {
|
|
117
|
+
this.open = false;
|
|
118
|
+
}
|
|
119
|
+
updateCountryIsoCode(code) {
|
|
120
|
+
this.countryIsoCode = code;
|
|
121
|
+
this.countryIsoCodeChange.emit(code);
|
|
122
|
+
}
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneInternationalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
124
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputPhoneInternationalComponent, isStandalone: true, selector: "tui-input-phone-international", inputs: { countries: "countries", isoCode: ["countryIsoCode", "isoCode"] }, outputs: { countryIsoCodeChange: "countryIsoCodeChange" }, host: { listeners: { "paste.capture.prevent.stop": "onPaste($event)", "drop.capture.prevent.stop": "onPaste($event)" }, properties: { "attr.data-size": "this.size" } }, providers: [
|
|
125
|
+
tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
|
|
126
|
+
tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
127
|
+
TuiToCountryCodePipe,
|
|
128
|
+
], viewQueries: [{ propertyName: "inputPhoneComponent", first: true, predicate: TuiInputPhoneComponent, descendants: true }, { propertyName: "primitiveTextfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n *ngIf=\"countriesNames$ | async as countriesNames\"\n tuiDropdownOpenMonitor\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"!readOnly\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [editable]=\"false\"\n [focusable]=\"focusable\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldIcon]=\"icon\"\n [tuiTextfieldLabelOutside]=\"true\"\n />\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [countryCode]=\"inputPhoneCountryCode\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n >\n <ng-content />\n <input\n autocomplete=\"new-password\"\n tuiTextfieldLegacy\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiIsoToCountryCode }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <img\n class=\"t-flag t-flag_select\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div tuiAppearance=\"icon\">\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.75rem;border-radius:50%}.t-flag_select{margin-left:-.5rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-secondary);margin-right:.25rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "ngmodule", type: TuiInputPhoneModule }, { kind: "component", type: i3.TuiInputPhoneComponent, selector: "tui-input-phone", inputs: ["phoneMaskAfterCountryCode", "allowText", "search", "countryCode"], outputs: ["searchChange"] }, { kind: "directive", type: i3.TuiInputPhoneDirective, selector: "tui-input-phone" }, { kind: "component", type: i4.TuiTextfieldComponent, selector: "input[tuiTextfieldLegacy], textarea[tuiTextfieldLegacy]" }, { kind: "directive", type: i5.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container):not(ng-template)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { kind: "directive", type: i5.TuiDropdownOpen, selector: "[tuiDropdownOpen],[tuiDropdownOpenChange]", inputs: ["tuiDropdownEnabled", "tuiDropdownOpen"], outputs: ["tuiDropdownOpenChange"] }, { kind: "directive", type: TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "collapsed", "rounded", "size"] }, { kind: "ngmodule", type: TuiPrimitiveTextfieldModule }, { kind: "component", type: i4.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i4.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "ngmodule", type: TuiTextfieldControllerModule }, { kind: "directive", type: i6.TuiTextfieldCustomContentDirective, selector: "[tuiTextfieldCustomContent]", inputs: ["tuiTextfieldCustomContent"] }, { kind: "directive", type: i6.TuiTextfieldLabelOutsideDirective, selector: "[tuiTextfieldLabelOutside]", inputs: ["tuiTextfieldLabelOutside"] }, { kind: "directive", type: i6.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i6.TuiTextfieldPrefixDirective, selector: "[tuiTextfieldPrefix]", inputs: ["tuiTextfieldPrefix"] }, { kind: "directive", type: i6.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { kind: "directive", type: i7.TuiHintOptionsDirective, selector: "[tuiHintContent]", inputs: ["tuiHintContent", "tuiHintDirection", "tuiHintAppearance", "tuiHintShowDelay", "tuiHintHideDelay"] }, { kind: "component", type: i8.TuiDataListComponent, selector: "tui-data-list", inputs: ["emptyContent", "size"] }, { kind: "component", type: i8.TuiOption, selector: "button[tuiOption], a[tuiOption], label[tuiOption]", inputs: ["disabled", "value"] }, { kind: "directive", type: TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus"] }, { kind: "pipe", type: TuiIsoToCountryCodePipe, name: "tuiIsoToCountryCode" }, { kind: "directive", type: TuiLegacyDropdownOpenMonitorDirective, selector: "[tuiDropdownOpenMonitor]" }, { kind: "pipe", type: TuiFlagPipe, name: "tuiFlag" }], viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
129
|
+
}
|
|
130
|
+
__decorate([
|
|
131
|
+
tuiPure
|
|
132
|
+
], TuiInputPhoneInternationalComponent.prototype, "calculateMaskAfterCountryCode", null);
|
|
133
|
+
export { TuiInputPhoneInternationalComponent };
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputPhoneInternationalComponent, decorators: [{
|
|
135
|
+
type: Component,
|
|
136
|
+
args: [{ standalone: true, selector: 'tui-input-phone-international', imports: [
|
|
137
|
+
CommonModule,
|
|
138
|
+
FormsModule,
|
|
139
|
+
PolymorpheusOutlet,
|
|
140
|
+
PolymorpheusTemplate,
|
|
141
|
+
TuiInputPhoneModule,
|
|
142
|
+
TuiGroupDirective,
|
|
143
|
+
TuiPrimitiveTextfieldModule,
|
|
144
|
+
TuiTextfieldControllerModule,
|
|
145
|
+
TuiHint,
|
|
146
|
+
TuiDropdown,
|
|
147
|
+
TuiDataList,
|
|
148
|
+
TuiArrowComponent,
|
|
149
|
+
TuiAppearance,
|
|
150
|
+
TuiIsoToCountryCodePipe,
|
|
151
|
+
TuiLegacyDropdownOpenMonitorDirective,
|
|
152
|
+
TuiFlagPipe,
|
|
153
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
154
|
+
tuiAsFocusableItemAccessor(TuiInputPhoneInternationalComponent),
|
|
155
|
+
tuiAsControl(TuiInputPhoneInternationalComponent),
|
|
156
|
+
TuiToCountryCodePipe,
|
|
157
|
+
], viewProviders: [FIXED_DROPDOWN_CONTROLLER_PROVIDER], template: "<div\n *ngIf=\"countriesNames$ | async as countriesNames\"\n tuiDropdownOpenMonitor\n [tuiDropdown]=\"dropdown\"\n [tuiDropdownEnabled]=\"!readOnly\"\n [(tuiDropdownOpen)]=\"open\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <div tuiGroup>\n <tui-primitive-textfield\n tuiHintContent=\"\"\n tuiTextfieldPostfix=\"\"\n tuiTextfieldPrefix=\"\"\n class=\"t-country-select tui-group__auto-width-item\"\n [disabled]=\"disabled\"\n [editable]=\"false\"\n [focusable]=\"focusable\"\n [pseudoFocus]=\"open || null\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldCustomContent]=\"countryValueContent\"\n [tuiTextfieldIcon]=\"icon\"\n [tuiTextfieldLabelOutside]=\"true\"\n />\n <tui-input-phone\n class=\"t-input-phone tui-group__auto-width-item\"\n [countryCode]=\"inputPhoneCountryCode\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [phoneMaskAfterCountryCode]=\"phoneMaskAfterCountryCode\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n >\n <ng-content />\n <input\n autocomplete=\"new-password\"\n tuiTextfieldLegacy\n />\n </tui-input-phone>\n </div>\n\n <ng-template #dropdown>\n <tui-data-list>\n <button\n *ngFor=\"let item of countries\"\n tuiOption\n (click)=\"onItemClick(item)\"\n >\n <img\n alt=\"\"\n class=\"t-flag\"\n [src]=\"item | tuiFlag\"\n />\n <span class=\"t-country-item-name\">\n {{ countriesNames[item] }}\n </span>\n <span class=\"t-country-item-code\">\n {{ item | tuiIsoToCountryCode }}\n </span>\n </button>\n </tui-data-list>\n </ng-template>\n\n <ng-template #countryValueContent>\n <img\n class=\"t-flag t-flag_select\"\n [alt]=\"countriesNames[countryIsoCode]\"\n [src]=\"countryIsoCode | tuiFlag\"\n />\n </ng-template>\n\n <ng-template #icon>\n <div tuiAppearance=\"icon\">\n <ng-container *polymorpheusOutlet=\"arrow\" />\n </div>\n </ng-template>\n</div>\n", styles: [":host{display:block}:host._disabled{pointer-events:none}.t-country-select{width:5.625rem}.t-country-select:not(._readonly) ::ng-deep input:not(:disabled){cursor:pointer}.t-country-select._readonly ::ng-deep input{cursor:default}.t-country-select[data-size=m]{width:5.5rem}.t-country-select[data-size=s]{width:2rem}.t-country-select[data-size=s] .t-flag{margin-left:-1rem}.t-input-phone{flex:1}.t-flag{width:1.75rem;height:1.75rem;border-radius:50%}.t-flag_select{margin-left:-.5rem}.t-country-item-name{margin-left:.75rem;margin-right:auto}.t-country-item-code{color:var(--tui-text-secondary);margin-right:.25rem}\n"] }]
|
|
158
|
+
}], propDecorators: { inputPhoneComponent: [{
|
|
159
|
+
type: ViewChild,
|
|
160
|
+
args: [TuiInputPhoneComponent]
|
|
161
|
+
}], primitiveTextfield: [{
|
|
162
|
+
type: ViewChild,
|
|
163
|
+
args: [TuiPrimitiveTextfieldComponent]
|
|
164
|
+
}], countries: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], countryIsoCodeChange: [{
|
|
167
|
+
type: Output
|
|
168
|
+
}], isoCode: [{
|
|
169
|
+
type: Input,
|
|
170
|
+
args: ['countryIsoCode']
|
|
171
|
+
}], onPaste: [{
|
|
172
|
+
type: HostListener,
|
|
173
|
+
args: ['paste.capture.prevent.stop', ['$event']]
|
|
174
|
+
}, {
|
|
175
|
+
type: HostListener,
|
|
176
|
+
args: ['drop.capture.prevent.stop', ['$event']]
|
|
177
|
+
}], size: [{
|
|
178
|
+
type: HostBinding,
|
|
179
|
+
args: ['attr.data-size']
|
|
180
|
+
}], calculateMaskAfter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ICAgICAgICAgICBjb3VudHJ5Q29kZSxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBASG9zdExpc3RlbmVyKCdwYXN0ZS5jYXB0dXJlLnByZXZlbnQuc3RvcCcsIFsnJGV2ZW50J10pXG4gICAgQEhvc3RMaXN0ZW5lcignZHJvcC5jYXB0dXJlLnByZXZlbnQuc3RvcCcsIFsnJGV2ZW50J10pXG4gICAgcHVibGljIG9uUGFzdGUoZXZlbnQ6IENsaXBib2FyZEV2ZW50IHwgRHJhZ0V2ZW50KTogdm9pZCB7XG4gICAgICAgIGxldCB2YWx1ZSA9IHR1aUV4dHJhY3RWYWx1ZUZyb21FdmVudChldmVudCkucmVwbGFjZShUVUlfTk9OX0RJR0lUU19SRUdFWFAsICcnKTtcbiAgICAgICAgY29uc3QgY291bnRyeUlzb0NvZGUgPSB0aGlzLmV4dHJhY3RDb3VudHJ5Q29kZVBpcGUudHJhbnNmb3JtKFxuICAgICAgICAgICAgdmFsdWUsXG4gICAgICAgICAgICB0aGlzLmNvdW50cmllcyxcbiAgICAgICAgKTtcblxuICAgICAgICBpZiAoIWNvdW50cnlJc29Db2RlKSB7XG4gICAgICAgICAgICB0aGlzLnZhbHVlID0gYCR7dGhpcy5pbnB1dFBob25lQ291bnRyeUNvZGV9JHt2YWx1ZX1gXG4gICAgICAgICAgICAgICAgLnJlcGxhY2VBbGwoTUFTS19TWU1CT0xTLCAnJylcbiAgICAgICAgICAgICAgICAuc2xpY2UoXG4gICAgICAgICAgICAgICAgICAgIDAsXG4gICAgICAgICAgICAgICAgICAgIHR1aUdldE1heEFsbG93ZWRQaG9uZUxlbmd0aCh0aGlzLmNvdW50cmllc01hc2tzLCB0aGlzLmNvdW50cnlJc29Db2RlKSxcbiAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoY291bnRyeUlzb0NvZGUgPT09ICdSVScpIHtcbiAgICAgICAgICAgIHZhbHVlID0gd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wZG93blwiXG4gICAgW3R1aURyb3Bkb3duRW5hYmxlZF09XCIhcmVhZE9ubHlcIlxuICAgIFsodHVpRHJvcGRvd25PcGVuKV09XCJvcGVuXCJcbiAgICAodHVpQWN0aXZlWm9uZUNoYW5nZSk9XCJvbkFjdGl2ZVpvbmUoJGV2ZW50KVwiXG4+XG4gICAgPGRpdiB0dWlHcm91cD5cbiAgICAgICAgPHR1aS1wcmltaXRpdmUtdGV4dGZpZWxkXG4gICAgICAgICAgICB0dWlIaW50Q29udGVudD1cIlwiXG4gICAgICAgICAgICB0dWlUZXh0ZmllbGRQb3N0Zml4PVwiXCJcbiAgICAgICAgICAgIHR1aVRleHRmaWVsZFByZWZpeD1cIlwiXG4gICAgICAgICAgICBjbGFzcz1cInQtY291bnRyeS1zZWxlY3QgdHVpLWdyb3VwX19hdXRvLXdpZHRoLWl0ZW1cIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcbiAgICAgICAgICAgIFtlZGl0YWJsZV09XCJmYWxzZVwiXG4gICAgICAgICAgICBbZm9jdXNhYmxlXT1cImZvY3VzYWJsZVwiXG4gICAgICAgICAgICBbcHNldWRvRm9jdXNdPVwib3BlbiB8fCBudWxsXCJcbiAgICAgICAgICAgIFtyZWFkT25seV09XCJyZWFkT25seVwiXG4gICAgICAgICAgICBbdHVpVGV4dGZpZWxkQ3VzdG9tQ29udGVudF09XCJjb3VudHJ5VmFsdWVDb250ZW50XCJcbiAgICAgICAgICAgIFt0dWlUZXh0ZmllbGRJY29uXT1cImljb25cIlxuICAgICAgICAgICAgW3R1aVRleHRmaWVsZExhYmVsT3V0c2lkZV09XCJ0cnVlXCJcbiAgICAgICAgLz5cbiAgICAgICAgPHR1aS1pbnB1dC1waG9uZVxuICAgICAgICAgICAgY2xhc3M9XCJ0LWlucHV0LXBob25lIHR1aS1ncm91cF9fYXV0by13aWR0aC1pdGVtXCJcbiAgICAgICAgICAgIFtjb3VudHJ5Q29kZV09XCJpbnB1dFBob25lQ291bnRyeUNvZGVcIlxuICAgICAgICAgICAgW2Rpc2FibGVkXT1cImRpc2FibGVkXCJcbiAgICAgICAgICAgIFtmb2N1c2FibGVdPVwiZm9jdXNhYmxlXCJcbiAgICAgICAgICAgIFtwaG9uZU1hc2tBZnRlckNvdW50cnlDb2RlXT1cInBob25lTWFza0FmdGVyQ291bnRyeUNvZGVcIlxuICAgICAgICAgICAgW3BzZXVkb0ZvY3VzXT1cInBzZXVkb0ZvY3VzXCJcbiAgICAgICAgICAgIFtwc2V1ZG9Ib3Zlcl09XCJwc2V1ZG9Ib3ZlclwiXG4gICAgICAgICAgICBbcHNldWRvSW52YWxpZF09XCJjb21wdXRlZEludmFsaWRcIlxuICAgICAgICAgICAgW3JlYWRPbmx5XT1cInJlYWRPbmx5XCJcbiAgICAgICAgICAgIFsobmdNb2RlbCldPVwidmFsdWVcIlxuICAgICAgICA+XG4gICAgICAgICAgICA8bmctY29udGVudCAvPlxuICAgICAgICAgICAgPGlucHV0XG4gICAgICAgICAgICAgICAgYXV0b2NvbXBsZXRlPVwibmV3LXBhc3N3b3JkXCJcbiAgICAgICAgICAgICAgICB0dWlUZXh0ZmllbGRMZWdhY3lcbiAgICAgICAgICAgIC8+XG4gICAgICAgIDwvdHVpLWlucHV0LXBob25lPlxuICAgIDwvZGl2PlxuXG4gICAgPG5nLXRlbXBsYXRlICNkcm9wZG93bj5cbiAgICAgICAgPHR1aS1kYXRhLWxpc3Q+XG4gICAgICAgICAgICA8YnV0dG9uXG4gICAgICAgICAgICAgICAgKm5nRm9yPVwibGV0IGl0ZW0gb2YgY291bnRyaWVzXCJcbiAgICAgICAgICAgICAgICB0dWlPcHRpb25cbiAgICAgICAgICAgICAgICAoY2xpY2spPVwib25JdGVtQ2xpY2soaXRlbSlcIlxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxpbWdcbiAgICAgICAgICAgICAgICAgICAgYWx0PVwiXCJcbiAgICAgICAgICAgICAgICAgICAgY2xhc3M9XCJ0LWZsYWdcIlxuICAgICAgICAgICAgICAgICAgICBbc3JjXT1cIml0ZW0gfCB0dWlGbGFnXCJcbiAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwidC1jb3VudHJ5LWl0ZW0tbmFtZVwiPlxuICAgICAgICAgICAgICAgICAgICB7eyBjb3VudHJpZXNOYW1lc1tpdGVtXSB9fVxuICAgICAgICAgICAgICAgIDwvc3Bhbj5cbiAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInQtY291bnRyeS1pdGVtLWNvZGVcIj5cbiAgICAgICAgICAgICAgICAgICAge3sgaXRlbSB8IHR1aUlzb1RvQ291bnRyeUNvZGUgfX1cbiAgICAgICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICA8L2J1dHRvbj5cbiAgICAgICAgPC90dWktZGF0YS1saXN0PlxuICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICA8bmctdGVtcGxhdGUgI2NvdW50cnlWYWx1ZUNvbnRlbnQ+XG4gICAgICAgIDxpbWdcbiAgICAgICAgICAgIGNsYXNzPVwidC1mbGFnIHQtZmxhZ19zZWxlY3RcIlxuICAgICAgICAgICAgW2FsdF09XCJjb3VudHJpZXNOYW1lc1tjb3VudHJ5SXNvQ29kZV1cIlxuICAgICAgICAgICAgW3NyY109XCJjb3VudHJ5SXNvQ29kZSB8IHR1aUZsYWdcIlxuICAgICAgICAvPlxuICAgIDwvbmctdGVtcGxhdGU+XG5cbiAgICA8bmctdGVtcGxhdGUgI2ljb24+XG4gICAgICAgIDxkaXYgdHVpQXBwZWFyYW5jZT1cImljb25cIj5cbiAgICAgICAgICAgIDxuZy1jb250YWluZXIgKnBvbHltb3JwaGV1c091dGxldD1cImFycm93XCIgLz5cbiAgICAgICAgPC9kaXY+XG4gICAgPC9uZy10ZW1wbGF0ZT5cbjwvZGl2PlxuIl19
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { tuiCreateToken, tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
2
|
+
export const TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS = {
|
|
3
|
+
countries: [],
|
|
4
|
+
countryIsoCode: 'RU',
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Default parameters for input phone international component
|
|
8
|
+
*/
|
|
9
|
+
export const TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS = tuiCreateToken(TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS);
|
|
10
|
+
export function tuiInputPhoneInternationalOptionsProvider(options) {
|
|
11
|
+
return tuiProvideOptions(TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS, options, TUI_INPUT_PHONE_INTERNATIONAL_DEFAULT_OPTIONS);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcGhvbmUtaW50ZXJuYXRpb25hbC5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtcGhvbmUtaW50ZXJuYXRpb25hbC9pbnB1dC1waG9uZS1pbnRlcm5hdGlvbmFsLm9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFDLGNBQWMsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLG1DQUFtQyxDQUFDO0FBUXBGLE1BQU0sQ0FBQyxNQUFNLDZDQUE2QyxHQUN0RDtJQUNJLFNBQVMsRUFBRSxFQUFFO0lBQ2IsY0FBYyxFQUFFLElBQUk7Q0FDdkIsQ0FBQztBQUVOOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0scUNBQXFDLEdBQUcsY0FBYyxDQUMvRCw2Q0FBNkMsQ0FDaEQsQ0FBQztBQUVGLE1BQU0sVUF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kVfSU5URVJOQVRJT05BTF9ERUZBVUxUX09QVElPTlMsXG4pO1xuXG5leHBvcnQgZnVuY3Rpb24gdHVpSW5wdXRQaG9uZUludGVybmF0aW9uYWxPcHRpb25zUHJvdmlkZXIoXG4gICAgb3B0aW9uczogUGFydGlhbDxUdWlJbnB1dFBob25lSW50ZXJuYXRpb25hbE9wdGlvbnM+LFxuKTogUHJvdmlkZXIge1xuICAgIHJldHVybiB0dWlQcm92aWRlT3B0aW9ucyhcbiAgICAgICAgVFVJX0lOUFVUX1BIT05FX0lOVEVSTkFUSU9OQUxfT1BUSU9OUyxcbiAgICAgICAgb3B0aW9ucyxcbiAgICAgICAgVFVJX0lOUFVUX1BIT05FX0lOVEVSTkFUSU9OQUxfREVGQVVMVF9PUFRJT05TLFxuICAgICk7XG59XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LWNvbXBvbmVudHMtaW5wdXQtcGhvbmUtaW50ZXJuYXRpb25hbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xlZ2FjeS9jb21wb25lbnRzL2lucHV0LXBob25lLWludGVybmF0aW9uYWwvdGFpZ2EtdWktbGVnYWN5LWNvbXBvbmVudHMtaW5wdXQtcGhvbmUtaW50ZXJuYXRpb25hbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { tuiGetClipboardDataText } from '@taiga-ui/cdk/utils/dom';
|
|
2
|
+
export function tuiExtractValueFromEvent(event) {
|
|
3
|
+
return 'dataTransfer' in event
|
|
4
|
+
? event.dataTransfer?.getData('text/plain') || ''
|
|
5
|
+
: tuiGetClipboardDataText(event);
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXh0cmFjdC12YWx1ZS1mcm9tLWV2ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtcGhvbmUtaW50ZXJuYXRpb25hbC91dGlscy9leHRyYWN0LXZhbHVlLWZyb20tZXZlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLHVCQUF1QixFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFFaEUsTUFBTSxVQUFVLHdCQUF3QixDQUFDLEtBQWlDO0lBQ3RFLE9BQU8sY0FBYyxJQUFJLEtBQUs7UUFDMUIsQ0FBQyxDQUFDLEtBQUssQ0FBQyxZQUFZLEVBQUUsT0FBTyxDQUFDLFlBQVksQ0FBQyxJQUFJLEVBQUU7UUFDakQsQ0FBQyxDQUFDLHVCQUF1QixDQUFDLEtBQUssQ0FBQyxDQUFDO0FBQ3pDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge3R1aUdldENsaXBib2FyZERhdGFUZXh0fSBmcm9tICdAdGFpZ2EtdWkvY2RrL3V0aWxzL2RvbSc7XG5cbmV4cG9ydCBmdW5jdGlvbiB0dWlFeHRyYWN0VmFsdWVGcm9tRXZlbnQoZXZlbnQ6IENsaXBib2FyZEV2ZW50IHwgRHJhZ0V2ZW50KTogc3RyaW5nIHtcbiAgICByZXR1cm4gJ2RhdGFUcmFuc2ZlcicgaW4gZXZlbnRcbiAgICAgICAgPyBldmVudC5kYXRhVHJhbnNmZXI/LmdldERhdGEoJ3RleHQvcGxhaW4nKSB8fCAnJ1xuICAgICAgICA6IHR1aUdldENsaXBib2FyZERhdGFUZXh0KGV2ZW50KTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './input-range.component';
|
|
2
|
+
export * from './input-range.module';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1yYW5nZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2lucHV0LXJhbmdlLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2lucHV0LXJhbmdlLm1vZHVsZSc7XG4iXX0=
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, inject, Input, ViewChild, ViewChildren, } from '@angular/core';
|
|
3
|
+
import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
|
|
4
|
+
import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
|
|
5
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
6
|
+
import { tuiIsNativeFocused, tuiIsNativeFocusedIn } from '@taiga-ui/cdk/utils/focus';
|
|
7
|
+
import { tuiClamp, tuiRound } from '@taiga-ui/cdk/utils/math';
|
|
8
|
+
import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
9
|
+
import { tuiGetFractionPartPadded } from '@taiga-ui/core/utils/format';
|
|
10
|
+
import { TuiRange } from '@taiga-ui/kit/components/range';
|
|
11
|
+
import { TUI_FLOATING_PRECISION, tuiSliderOptionsProvider, } from '@taiga-ui/kit/components/slider';
|
|
12
|
+
import { AbstractTuiControl, tuiAsControl } from '@taiga-ui/legacy/classes';
|
|
13
|
+
import { TuiInputNumberComponent } from '@taiga-ui/legacy/components/input-number';
|
|
14
|
+
import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/legacy/directives';
|
|
15
|
+
import { tuiAsFocusableItemAccessor } from '@taiga-ui/legacy/tokens';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
import * as i1 from "@angular/common";
|
|
18
|
+
import * as i2 from "@angular/forms";
|
|
19
|
+
import * as i3 from "@taiga-ui/polymorpheus";
|
|
20
|
+
import * as i4 from "@taiga-ui/cdk/directives/active-zone";
|
|
21
|
+
import * as i5 from "@taiga-ui/legacy/components/input-number";
|
|
22
|
+
import * as i6 from "@taiga-ui/kit/components/range";
|
|
23
|
+
import * as i7 from "@taiga-ui/legacy/directives";
|
|
24
|
+
import * as i8 from "@taiga-ui/core/directives/number-format";
|
|
25
|
+
class TuiInputRangeComponent extends AbstractTuiControl {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.inputNumberRefs = EMPTY_QUERY;
|
|
29
|
+
this.isMobile = inject(TUI_IS_MOBILE);
|
|
30
|
+
this.el = tuiInjectElement();
|
|
31
|
+
this.leftTextfieldValue = this.safeCurrentValue[0];
|
|
32
|
+
this.rightTextfieldValue = this.safeCurrentValue[1];
|
|
33
|
+
this.lastActiveSide = 'left';
|
|
34
|
+
this.controller = inject(TUI_TEXTFIELD_WATCHED_CONTROLLER);
|
|
35
|
+
this.min = 0;
|
|
36
|
+
this.max = 100;
|
|
37
|
+
this.quantum = 1;
|
|
38
|
+
this.steps = 0;
|
|
39
|
+
this.segments = 1;
|
|
40
|
+
this.keySteps = null;
|
|
41
|
+
this.pluralize = null;
|
|
42
|
+
}
|
|
43
|
+
get nativeFocusableElement() {
|
|
44
|
+
return this.disabled
|
|
45
|
+
? null
|
|
46
|
+
: this.leftFocusableElement || this.rightFocusableElement;
|
|
47
|
+
}
|
|
48
|
+
get focused() {
|
|
49
|
+
return tuiIsNativeFocusedIn(this.el);
|
|
50
|
+
}
|
|
51
|
+
writeValue(value) {
|
|
52
|
+
super.writeValue(value);
|
|
53
|
+
this.updateTextfieldValues(this.value);
|
|
54
|
+
}
|
|
55
|
+
get leftFocusableElement() {
|
|
56
|
+
return this.inputNumberRefs.first?.nativeFocusableElement || null;
|
|
57
|
+
}
|
|
58
|
+
get rightFocusableElement() {
|
|
59
|
+
return this.inputNumberRefs.last?.nativeFocusableElement || null;
|
|
60
|
+
}
|
|
61
|
+
get appearance() {
|
|
62
|
+
return this.controller.appearance;
|
|
63
|
+
}
|
|
64
|
+
get showLeftValueContent() {
|
|
65
|
+
return Boolean(this.leftValueContent &&
|
|
66
|
+
!tuiIsNativeFocused(this.leftFocusableElement) &&
|
|
67
|
+
!(tuiIsNativeFocusedIn(this.range?.nativeElement) &&
|
|
68
|
+
this.lastActiveSide === 'left'));
|
|
69
|
+
}
|
|
70
|
+
get showRightValueContent() {
|
|
71
|
+
return Boolean(this.rightValueContent &&
|
|
72
|
+
!tuiIsNativeFocused(this.rightFocusableElement) &&
|
|
73
|
+
!(tuiIsNativeFocusedIn(this.range?.nativeElement) &&
|
|
74
|
+
this.lastActiveSide === 'right'));
|
|
75
|
+
}
|
|
76
|
+
get precision() {
|
|
77
|
+
return tuiGetFractionPartPadded(this.quantum).length;
|
|
78
|
+
}
|
|
79
|
+
get computedSteps() {
|
|
80
|
+
return this.steps || (this.max - this.min) / this.quantum;
|
|
81
|
+
}
|
|
82
|
+
get step() {
|
|
83
|
+
return (this.max - this.min) / this.computedSteps;
|
|
84
|
+
}
|
|
85
|
+
computeKeySteps(keySteps, min, max) {
|
|
86
|
+
return (keySteps || [
|
|
87
|
+
[0, min],
|
|
88
|
+
[100, max],
|
|
89
|
+
]);
|
|
90
|
+
}
|
|
91
|
+
onActiveZone(active) {
|
|
92
|
+
this.updateFocused(active);
|
|
93
|
+
}
|
|
94
|
+
onTextInputFocused(focused) {
|
|
95
|
+
if (!focused) {
|
|
96
|
+
this.updateTextfieldValues(this.value);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
changeByStep(event, [leftCoefficient, rightCoefficient]) {
|
|
100
|
+
if (this.readOnly) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
const newValue = this.valueGuard([
|
|
105
|
+
this.value[0] + leftCoefficient * this.step,
|
|
106
|
+
this.value[1] + rightCoefficient * this.step,
|
|
107
|
+
]);
|
|
108
|
+
if (newValue[0] !== this.value[0] || newValue[1] !== this.value[1]) {
|
|
109
|
+
this.onExternalValueUpdate(newValue);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
onInputLeft(value) {
|
|
113
|
+
this.safelyUpdateValue([value ?? this.safeCurrentValue[0], this.value[1]]);
|
|
114
|
+
}
|
|
115
|
+
onInputRight(value) {
|
|
116
|
+
this.safelyUpdateValue([this.value[0], value ?? this.safeCurrentValue[1]]);
|
|
117
|
+
}
|
|
118
|
+
onExternalValueUpdate(value) {
|
|
119
|
+
this.safelyUpdateValue(value);
|
|
120
|
+
this.updateTextfieldValues(this.value);
|
|
121
|
+
}
|
|
122
|
+
focusToTextInput() {
|
|
123
|
+
const element = this.lastActiveSide === 'left'
|
|
124
|
+
? this.leftFocusableElement
|
|
125
|
+
: this.rightFocusableElement;
|
|
126
|
+
if (!this.isMobile && element) {
|
|
127
|
+
element.focus();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
onActiveThumbChange(activeThumb) {
|
|
131
|
+
this.lastActiveSide = activeThumb;
|
|
132
|
+
}
|
|
133
|
+
getFallbackValue() {
|
|
134
|
+
return [0, 0];
|
|
135
|
+
}
|
|
136
|
+
safelyUpdateValue(value) {
|
|
137
|
+
this.value = this.valueGuard(value);
|
|
138
|
+
}
|
|
139
|
+
valueGuard([leftValue, rightValue]) {
|
|
140
|
+
const leftCalibratedValue = this.calibrate(leftValue);
|
|
141
|
+
const rightCalibratedValue = this.calibrate(rightValue);
|
|
142
|
+
return [
|
|
143
|
+
Math.min(leftCalibratedValue, this.value[1]),
|
|
144
|
+
Math.max(rightCalibratedValue, this.value[0]),
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
calibrate(value) {
|
|
148
|
+
const roundedValue = tuiRound(Math.round(value / this.quantum) * this.quantum, TUI_FLOATING_PRECISION);
|
|
149
|
+
return tuiClamp(roundedValue, this.min, this.max);
|
|
150
|
+
}
|
|
151
|
+
updateTextfieldValues([leftValue, rightValue]) {
|
|
152
|
+
this.leftTextfieldValue = leftValue;
|
|
153
|
+
this.rightTextfieldValue = rightValue;
|
|
154
|
+
}
|
|
155
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputRangeComponent, selector: "tui-input-range", inputs: { min: "min", max: "max", quantum: "quantum", steps: "steps", segments: "segments", keySteps: "keySteps", leftValueContent: "leftValueContent", rightValueContent: "rightValueContent", pluralize: "pluralize" }, host: { properties: { "attr.data-size": "controller.size", "class._label-outside": "controller.labelOutside" } }, providers: [
|
|
157
|
+
tuiAsFocusableItemAccessor(TuiInputRangeComponent),
|
|
158
|
+
tuiAsControl(TuiInputRangeComponent),
|
|
159
|
+
tuiSliderOptionsProvider({ trackColor: 'transparent' }),
|
|
160
|
+
TEXTFIELD_CONTROLLER_PROVIDER,
|
|
161
|
+
], viewQueries: [{ propertyName: "range", first: true, predicate: TuiRange, descendants: true, read: ElementRef }, { propertyName: "inputNumberRefs", predicate: TuiInputNumberComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n tuiWrapper\n class=\"t-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-number\n automation-id=\"tui-input-range__left-input\"\n tuiTextfieldAppearance=\"none\"\n class=\"t-left\"\n [disabled]=\"computedDisabled\"\n [max]=\"value[1]\"\n [min]=\"min\"\n [readOnly]=\"readOnly\"\n [tuiNumberFormat]=\"{precision}\"\n [tuiTextfieldPostfix]=\"pluralize ? (value[0] | i18nPlural: pluralize) : ''\"\n [(ngModel)]=\"leftTextfieldValue\"\n (focusedChange)=\"onTextInputFocused($event)\"\n (keydown.arrowDown)=\"changeByStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"changeByStep($event, [1, 0])\"\n (ngModelChange)=\"onInputLeft($event)\"\n >\n <ng-content />\n <div\n *ngIf=\"showLeftValueContent\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"leftValueContent as text; context: {$implicit: value[0]}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-input-number>\n\n <tui-input-number\n automation-id=\"tui-input-range__right-input\"\n tuiTextfieldAppearance=\"none\"\n class=\"t-right\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [min]=\"value[0]\"\n [readOnly]=\"readOnly\"\n [tuiNumberFormat]=\"{precision}\"\n [tuiTextfieldPostfix]=\"pluralize ? (value[1] | i18nPlural: pluralize) : ''\"\n [(ngModel)]=\"rightTextfieldValue\"\n (focusedChange)=\"onTextInputFocused($event)\"\n (keydown.arrowDown)=\"changeByStep($event, [0, -1])\"\n (keydown.arrowUp)=\"changeByStep($event, [0, 1])\"\n (ngModelChange)=\"onInputRight($event)\"\n >\n <div\n *ngIf=\"showRightValueContent\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"rightValueContent as text; context: {$implicit: value[1]}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-input-number>\n\n <tui-range\n class=\"t-range\"\n [disabled]=\"readOnly || disabled\"\n [focusable]=\"false\"\n [keySteps]=\"computeKeySteps(keySteps, min, max)\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [segments]=\"segments\"\n [step]=\"step\"\n (activeThumbChange)=\"onActiveThumbChange($event)\"\n (mousedown.prevent)=\"focusToTextInput()\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n />\n</div>\n", styles: [".t-wrapper{position:relative}.t-left{width:100%}.t-right{position:absolute;right:0;top:0;display:flex;width:50%;height:100%;text-align:right}:host{display:block;border-radius:var(--tui-radius-m)}.t-range{position:absolute;top:100%;left:0;right:0;z-index:1;margin:-.125rem 0 0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i4.TuiActiveZone, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { kind: "component", type: i5.TuiInputNumberComponent, selector: "tui-input-number", inputs: ["min", "max", "step"] }, { kind: "directive", type: i5.TuiInputNumberDirective, selector: "tui-input-number" }, { kind: "component", type: i6.TuiRange, selector: "tui-range", inputs: ["min", "max", "step", "size", "segments", "keySteps", "focusable"] }, { kind: "directive", type: i7.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }, { kind: "directive", type: i7.TuiTextfieldAppearanceDirective, selector: "[tuiTextfieldAppearance]", inputs: ["tuiTextfieldAppearance"] }, { kind: "directive", type: i7.TuiTextfieldPostfixDirective, selector: "[tuiTextfieldPostfix]", inputs: ["tuiTextfieldPostfix"] }, { kind: "directive", type: i8.TuiNumberFormat, selector: "[tuiNumberFormat]", inputs: ["tuiNumberFormat"] }, { kind: "pipe", type: i1.I18nPluralPipe, name: "i18nPlural" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
162
|
+
}
|
|
163
|
+
__decorate([
|
|
164
|
+
tuiPure
|
|
165
|
+
], TuiInputRangeComponent.prototype, "computeKeySteps", null);
|
|
166
|
+
export { TuiInputRangeComponent };
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeComponent, decorators: [{
|
|
168
|
+
type: Component,
|
|
169
|
+
args: [{ selector: 'tui-input-range', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
170
|
+
tuiAsFocusableItemAccessor(TuiInputRangeComponent),
|
|
171
|
+
tuiAsControl(TuiInputRangeComponent),
|
|
172
|
+
tuiSliderOptionsProvider({ trackColor: 'transparent' }),
|
|
173
|
+
TEXTFIELD_CONTROLLER_PROVIDER,
|
|
174
|
+
], host: {
|
|
175
|
+
'[attr.data-size]': 'controller.size',
|
|
176
|
+
'[class._label-outside]': 'controller.labelOutside',
|
|
177
|
+
}, template: "<div\n tuiWrapper\n class=\"t-wrapper\"\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focus]=\"computedFocused\"\n [hover]=\"pseudoHover\"\n [invalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n (tuiActiveZoneChange)=\"onActiveZone($event)\"\n>\n <tui-input-number\n automation-id=\"tui-input-range__left-input\"\n tuiTextfieldAppearance=\"none\"\n class=\"t-left\"\n [disabled]=\"computedDisabled\"\n [max]=\"value[1]\"\n [min]=\"min\"\n [readOnly]=\"readOnly\"\n [tuiNumberFormat]=\"{precision}\"\n [tuiTextfieldPostfix]=\"pluralize ? (value[0] | i18nPlural: pluralize) : ''\"\n [(ngModel)]=\"leftTextfieldValue\"\n (focusedChange)=\"onTextInputFocused($event)\"\n (keydown.arrowDown)=\"changeByStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"changeByStep($event, [1, 0])\"\n (ngModelChange)=\"onInputLeft($event)\"\n >\n <ng-content />\n <div\n *ngIf=\"showLeftValueContent\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"leftValueContent as text; context: {$implicit: value[0]}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-input-number>\n\n <tui-input-number\n automation-id=\"tui-input-range__right-input\"\n tuiTextfieldAppearance=\"none\"\n class=\"t-right\"\n [disabled]=\"computedDisabled\"\n [max]=\"max\"\n [min]=\"value[0]\"\n [readOnly]=\"readOnly\"\n [tuiNumberFormat]=\"{precision}\"\n [tuiTextfieldPostfix]=\"pluralize ? (value[1] | i18nPlural: pluralize) : ''\"\n [(ngModel)]=\"rightTextfieldValue\"\n (focusedChange)=\"onTextInputFocused($event)\"\n (keydown.arrowDown)=\"changeByStep($event, [0, -1])\"\n (keydown.arrowUp)=\"changeByStep($event, [0, 1])\"\n (ngModelChange)=\"onInputRight($event)\"\n >\n <div\n *ngIf=\"showRightValueContent\"\n ngProjectAs=\"tuiContent\"\n >\n <ng-container *polymorpheusOutlet=\"rightValueContent as text; context: {$implicit: value[1]}\">\n {{ text }}\n </ng-container>\n </div>\n </tui-input-number>\n\n <tui-range\n class=\"t-range\"\n [disabled]=\"readOnly || disabled\"\n [focusable]=\"false\"\n [keySteps]=\"computeKeySteps(keySteps, min, max)\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value\"\n [segments]=\"segments\"\n [step]=\"step\"\n (activeThumbChange)=\"onActiveThumbChange($event)\"\n (mousedown.prevent)=\"focusToTextInput()\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n />\n</div>\n", styles: [".t-wrapper{position:relative}.t-left{width:100%}.t-right{position:absolute;right:0;top:0;display:flex;width:50%;height:100%;text-align:right}:host{display:block;border-radius:var(--tui-radius-m)}.t-range{position:absolute;top:100%;left:0;right:0;z-index:1;margin:-.125rem 0 0}\n"] }]
|
|
178
|
+
}], propDecorators: { inputNumberRefs: [{
|
|
179
|
+
type: ViewChildren,
|
|
180
|
+
args: [TuiInputNumberComponent]
|
|
181
|
+
}], range: [{
|
|
182
|
+
type: ViewChild,
|
|
183
|
+
args: [TuiRange, { read: ElementRef }]
|
|
184
|
+
}], min: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}], max: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], quantum: [{
|
|
189
|
+
type: Input
|
|
190
|
+
}], steps: [{
|
|
191
|
+
type: Input
|
|
192
|
+
}], segments: [{
|
|
193
|
+
type: Input
|
|
194
|
+
}], keySteps: [{
|
|
195
|
+
type: Input
|
|
196
|
+
}], leftValueContent: [{
|
|
197
|
+
type: Input
|
|
198
|
+
}], rightValueContent: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}], pluralize: [{
|
|
201
|
+
type: Input
|
|
202
|
+
}], computeKeySteps: [] } });
|
|
203
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcmFuZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtcmFuZ2UvaW5wdXQtcmFuZ2UuY29tcG9u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ICAgICAhKFxuICAgICAgICAgICAgICAgICAgICB0dWlJc05hdGl2ZUZvY3VzZWRJbih0aGlzLnJhbmdlPy5uYXRpdmVFbGVtZW50KSAmJlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmxhc3RBY3RpdmVTaWRlID09PSAnbGVmdCdcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICApO1xuICAgIH1cblxuICAgIHByb3RlY3RlZCBnZXQgc2hvd1JpZ2h0VmFsdWVDb250ZW50KCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gQm9vbGVhbihcbiAgICAgICAgICAgIHRoaXMucmlnaHRWYWx1ZUNvbnRlbnQgJiZcbiAgICAgICAgICAgICAgICAhdHVpSXNOYXRpdmVGb2N1c2VkKHRoaXMucmlnaHRGb2N1c2FibGVFbGVtZW50KSAmJlxuICAgICAgICAgICAgICAgICEoXG4gICAgICAgICAgICAgICAgICAgIHR1aUlzTmF0aXZlRm9jdXNlZEluKHRoaXMucmFuZ2U/Lm5hdGl2ZUVsZW1lbnQpICYmXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubGFzdEFjdGl2ZVNpZGUgPT09ICdyaWdodCdcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICApO1xuICAgIH1cblxuICAgIHByb3RlY3RlZCBnZXQgcHJlY2lzaW9uKCk6IG51bWJlciB7XG4gICAgICAgIHJldHVybiB0dWlHZXRGcmFjdGlvblBhcnRQYWRkZWQodGhpcy5xdWFudHVtKS5sZW5ndGg7XG4gICAgfVxuXG4gICAgcHJvdGVjdGVkIGdldCBjb21wdXRlZFN0ZXBzKCk6IG51bWJlciB7XG4gICAgICAgIHJldHVybiB0aGlzLnN0ZXBzIHx8ICh0aGlzLm1heCAtIHRoaXMubWluKSAvIHRoaXMucXVhbnR1bTtcbiAgICB9XG5cbiAgICBwcm90ZWN0ZWQgZ2V0IHN0ZXAoKTogbnVtYmVyIHtcbiAgICAgICAgcmV0dXJuICh0aGlzLm1heCAtIHRoaXMubWlu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biAgICAgICAgKG1vdXNlZG93bi5wcmV2ZW50KT1cImZvY3VzVG9UZXh0SW5wdXQoKVwiXG4gICAgICAgIChuZ01vZGVsQ2hhbmdlKT1cIm9uRXh0ZXJuYWxWYWx1ZVVwZGF0ZSgkZXZlbnQpXCJcbiAgICAvPlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
|
|
5
|
+
import { TuiNumberFormat } from '@taiga-ui/core/directives/number-format';
|
|
6
|
+
import { TuiRange } from '@taiga-ui/kit/components/range';
|
|
7
|
+
import { TuiInputNumberModule } from '@taiga-ui/legacy/components/input-number';
|
|
8
|
+
import { TuiTextfieldControllerModule, TuiWrapperModule, } from '@taiga-ui/legacy/directives';
|
|
9
|
+
import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
10
|
+
import { TuiInputRangeComponent } from './input-range.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
class TuiInputRangeModule {
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
14
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeModule, declarations: [TuiInputRangeComponent], imports: [CommonModule,
|
|
15
|
+
FormsModule,
|
|
16
|
+
PolymorpheusOutlet,
|
|
17
|
+
PolymorpheusTemplate,
|
|
18
|
+
TuiActiveZone,
|
|
19
|
+
TuiInputNumberModule,
|
|
20
|
+
TuiRange,
|
|
21
|
+
TuiWrapperModule,
|
|
22
|
+
TuiTextfieldControllerModule,
|
|
23
|
+
TuiNumberFormat], exports: [TuiInputRangeComponent] }); }
|
|
24
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeModule, imports: [CommonModule,
|
|
25
|
+
FormsModule,
|
|
26
|
+
TuiInputNumberModule,
|
|
27
|
+
TuiRange,
|
|
28
|
+
TuiWrapperModule,
|
|
29
|
+
TuiTextfieldControllerModule] }); }
|
|
30
|
+
}
|
|
31
|
+
export { TuiInputRangeModule };
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputRangeModule, decorators: [{
|
|
33
|
+
type: NgModule,
|
|
34
|
+
args: [{
|
|
35
|
+
imports: [
|
|
36
|
+
CommonModule,
|
|
37
|
+
FormsModule,
|
|
38
|
+
PolymorpheusOutlet,
|
|
39
|
+
PolymorpheusTemplate,
|
|
40
|
+
TuiActiveZone,
|
|
41
|
+
TuiInputNumberModule,
|
|
42
|
+
TuiRange,
|
|
43
|
+
TuiWrapperModule,
|
|
44
|
+
TuiTextfieldControllerModule,
|
|
45
|
+
TuiNumberFormat,
|
|
46
|
+
],
|
|
47
|
+
declarations: [TuiInputRangeComponent],
|
|
48
|
+
exports: [TuiInputRangeComponent],
|
|
49
|
+
}]
|
|
50
|
+
}] });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtcmFuZ2UubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtcmFuZ2UvaW5wdXQtcmFuZ2UubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEV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