@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,85 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, HostListener, inject, Input, ViewChild, } from '@angular/core';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { tuiGetGradientData, tuiParseGradient, tuiToGradient, } from '@taiga-ui/cdk/utils/color';
|
|
5
|
+
import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
6
|
+
import { tuiDropdownOptionsProvider } from '@taiga-ui/core/directives/dropdown';
|
|
7
|
+
import { AbstractTuiControl } from '@taiga-ui/legacy/classes';
|
|
8
|
+
import { TuiPrimitiveTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
11
|
+
import * as i2 from "@taiga-ui/legacy/directives/textfield-controller";
|
|
12
|
+
import * as i3 from "@taiga-ui/legacy/components/color-selector";
|
|
13
|
+
import * as i4 from "@maskito/angular";
|
|
14
|
+
import * as i5 from "@taiga-ui/core/directives/dropdown";
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated: drop in v5.0
|
|
17
|
+
*/
|
|
18
|
+
class TuiInputColorComponent extends AbstractTuiControl {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.domSanitizer = inject(DomSanitizer);
|
|
22
|
+
this.colors = new Map();
|
|
23
|
+
this.open = false;
|
|
24
|
+
}
|
|
25
|
+
get focused() {
|
|
26
|
+
return !!this.textfield?.focused;
|
|
27
|
+
}
|
|
28
|
+
get nativeFocusableElement() {
|
|
29
|
+
return this.computedDisabled || !this.textfield
|
|
30
|
+
? null
|
|
31
|
+
: this.textfield.nativeFocusableElement;
|
|
32
|
+
}
|
|
33
|
+
get background() {
|
|
34
|
+
return this.sanitize(this.value, this.domSanitizer);
|
|
35
|
+
}
|
|
36
|
+
get mode() {
|
|
37
|
+
if (this.value.startsWith('#')) {
|
|
38
|
+
return 'hex';
|
|
39
|
+
}
|
|
40
|
+
return this.value.startsWith('rgb') ? 'rgb' : 'gradient';
|
|
41
|
+
}
|
|
42
|
+
onClick() {
|
|
43
|
+
this.open = !this.open;
|
|
44
|
+
}
|
|
45
|
+
maskitoOptions(mode) {
|
|
46
|
+
return mode === 'hex' ? { mask: ['#', ...new Array(6).fill(/[0-9a-f]/i)] } : null;
|
|
47
|
+
}
|
|
48
|
+
/** deprecated use 'value' setter */
|
|
49
|
+
onValueChange(textValue) {
|
|
50
|
+
this.value = textValue;
|
|
51
|
+
}
|
|
52
|
+
onFocused(focused) {
|
|
53
|
+
this.updateFocused(focused);
|
|
54
|
+
}
|
|
55
|
+
getFallbackValue() {
|
|
56
|
+
return '#000000';
|
|
57
|
+
}
|
|
58
|
+
sanitize(value, domSanitizer) {
|
|
59
|
+
return value.startsWith('linear-gradient(')
|
|
60
|
+
? domSanitizer.bypassSecurityTrustStyle(tuiToGradient(tuiParseGradient(tuiGetGradientData(value))))
|
|
61
|
+
: value;
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputColorComponent, selector: "tui-input-color", inputs: { colors: "colors" }, host: { listeners: { "click": "onClick()" } }, viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n class=\"t-wrapper\"\n [tuiDropdown]=\"picker\"\n [(tuiDropdownOpen)]=\"open\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskitoOptions(mode)\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIconLeft]=\"color\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content />\n </tui-primitive-textfield>\n</div>\n\n<ng-template #color>\n <div\n class=\"t-color\"\n [style.background]=\"background\"\n ></div>\n</ng-template>\n\n<ng-template #picker>\n <tui-color-selector\n [colors]=\"colors\"\n [(color)]=\"value\"\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper{display:flex;border-radius:inherit;width:100%}.t-textfield{border-radius:inherit;text-align:inherit;width:inherit}.t-textfield ::ng-deep .t-input{text-transform:lowercase!important}.t-color{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}\n"], dependencies: [{ kind: "component", type: i1.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i1.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i2.TuiTextfieldIconLeftDirective, selector: "[tuiTextfieldIconLeft]", inputs: ["tuiTextfieldIconLeft"] }, { kind: "component", type: i3.TuiColorSelectorComponent, selector: "tui-color-selector", inputs: ["colors", "color"], outputs: ["colorChange"] }, { kind: "directive", type: i4.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { 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"] }], viewProviders: [tuiDropdownOptionsProvider({ maxHeight: 600 })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
|
+
}
|
|
66
|
+
__decorate([
|
|
67
|
+
tuiPure
|
|
68
|
+
], TuiInputColorComponent.prototype, "maskitoOptions", null);
|
|
69
|
+
__decorate([
|
|
70
|
+
tuiPure
|
|
71
|
+
], TuiInputColorComponent.prototype, "sanitize", null);
|
|
72
|
+
export { TuiInputColorComponent };
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{ selector: 'tui-input-color', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiDropdownOptionsProvider({ maxHeight: 600 })], template: "<div\n class=\"t-wrapper\"\n [tuiDropdown]=\"picker\"\n [(tuiDropdownOpen)]=\"open\"\n>\n <tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"disabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [maskito]=\"maskitoOptions(mode)\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"computedFocused\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIconLeft]=\"color\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n >\n <ng-content />\n </tui-primitive-textfield>\n</div>\n\n<ng-template #color>\n <div\n class=\"t-color\"\n [style.background]=\"background\"\n ></div>\n</ng-template>\n\n<ng-template #picker>\n <tui-color-selector\n [colors]=\"colors\"\n [(color)]=\"value\"\n />\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-wrapper{display:flex;border-radius:inherit;width:100%}.t-textfield{border-radius:inherit;text-align:inherit;width:inherit}.t-textfield ::ng-deep .t-input{text-transform:lowercase!important}.t-color{width:1.5rem;height:1.5rem;box-shadow:inset 0 0 0 1px var(--tui-base-03-dark);border-radius:.125rem;pointer-events:auto!important}\n"] }]
|
|
76
|
+
}], propDecorators: { textfield: [{
|
|
77
|
+
type: ViewChild,
|
|
78
|
+
args: [TuiPrimitiveTextfieldComponent]
|
|
79
|
+
}], colors: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], onClick: [{
|
|
82
|
+
type: HostListener,
|
|
83
|
+
args: ['click']
|
|
84
|
+
}], maskitoOptions: [], sanitize: [] } });
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29sb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtY29sb3IvaW5wdXQtY29sb3IuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtY29sb3IvaW5wdXQtY29sb3IudGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsU0FBUyxHQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQztBQUV2RCxPQUFPLEVBQ0gsa0JBQWtCLEVBQ2xCLGdCQUFnQixFQUNoQixhQUFhLEdBQ2hCLE1BQU0sMkJBQTJCLENBQUM7QUFDbkMsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLG1DQUFtQyxDQUFDO0FBQzFELE9BQU8sRUFBQywwQkFBMEIsRUFBQyxNQUFNLG9DQUFvQyxDQUFDO0FBQzlFLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQzVELE9BQU8sRUFBQyw4QkFBOEIsRUFBQyxNQUFNLGlEQUFpRCxDQUFDOzs7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b3I+XG4gICAgPGRpdlxuICAgICAgICBjbGFzcz1cInQtY29sb3JcIlxuICAgICAgICBbc3R5bGUuYmFja2dyb3VuZF09XCJiYWNrZ3JvdW5kXCJcbiAgICA+PC9kaXY+XG48L25nLXRlbXBsYXRlPlxuXG48bmctdGVtcGxhdGUgI3BpY2tlcj5cbiAgICA8dHVpLWNvbG9yLXNlbGVjdG9yXG4gICAgICAgIFtjb2xvcnNdPVwiY29sb3JzXCJcbiAgICAgICAgWyhjb2xvcildPVwidmFsdWVcIlxuICAgIC8+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { MaskitoModule } from '@maskito/angular';
|
|
4
|
+
import { TuiDropdown } from '@taiga-ui/core/directives/dropdown';
|
|
5
|
+
import { TuiColorSelectorModule } from '@taiga-ui/legacy/components/color-selector';
|
|
6
|
+
import { TuiPrimitiveTextfieldModule } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
7
|
+
import { TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives/textfield-controller';
|
|
8
|
+
import { TuiInputColorComponent } from './input-color.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@taiga-ui/core/directives/dropdown";
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated: drop in v5.0
|
|
13
|
+
*/
|
|
14
|
+
class TuiInputColorModule {
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
16
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorModule, declarations: [TuiInputColorComponent], imports: [CommonModule,
|
|
17
|
+
TuiPrimitiveTextfieldModule,
|
|
18
|
+
TuiTextfieldControllerModule,
|
|
19
|
+
TuiColorSelectorModule,
|
|
20
|
+
MaskitoModule, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownPortal, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection], exports: [TuiInputColorComponent, i1.TuiDropdownOptionsDirective, i1.TuiDropdownDriverDirective, i1.TuiDropdownDirective, i1.TuiDropdownComponent, i1.TuiDropdownOpen, i1.TuiDropdownPortal, i1.TuiDropdownManual, i1.TuiDropdownHover, i1.TuiDropdownContext, i1.TuiDropdownPosition, i1.TuiDropdownPositionSided, i1.TuiDropdownSelection] }); }
|
|
21
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorModule, imports: [CommonModule,
|
|
22
|
+
TuiPrimitiveTextfieldModule,
|
|
23
|
+
TuiTextfieldControllerModule,
|
|
24
|
+
TuiColorSelectorModule,
|
|
25
|
+
MaskitoModule, i1.TuiDropdownComponent] }); }
|
|
26
|
+
}
|
|
27
|
+
export { TuiInputColorModule };
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputColorModule, decorators: [{
|
|
29
|
+
type: NgModule,
|
|
30
|
+
args: [{
|
|
31
|
+
imports: [
|
|
32
|
+
CommonModule,
|
|
33
|
+
TuiPrimitiveTextfieldModule,
|
|
34
|
+
TuiTextfieldControllerModule,
|
|
35
|
+
TuiColorSelectorModule,
|
|
36
|
+
MaskitoModule,
|
|
37
|
+
...TuiDropdown,
|
|
38
|
+
],
|
|
39
|
+
declarations: [TuiInputColorComponent],
|
|
40
|
+
exports: [TuiInputColorComponent, ...TuiDropdown],
|
|
41
|
+
}]
|
|
42
|
+
}] });
|
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aW4gdjUuMFxuICovXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtcbiAgICAgICAgQ29tbW9uTW9kdWxlLFxuICAgICAgICBUdWlQcmltaXRpdmVUZXh0ZmllbGRNb2R1bGUsXG4gICAgICAgIFR1aVRleHRmaWVsZENvbnRyb2xsZXJNb2R1bGUsXG4gICAgICAgIFR1aUNvbG9yU2VsZWN0b3JNb2R1bGUsXG4gICAgICAgIE1hc2tpdG9Nb2R1bGUsXG4gICAgICAgIC4uLlR1aURyb3Bkb3duLFxuICAgIF0sXG4gICAgZGVjbGFyYXRpb25zOiBbVHVpSW5wdXRDb2xvckNvbXBvbmVudF0sXG4gICAgZXhwb3J0czogW1R1aUlucHV0Q29sb3JDb21wb25lbnQsIC4uLlR1aURyb3Bkb3duXSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpSW5wdXRDb2xvck1vZHVsZSB7fVxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LWNvbXBvbmVudHMtaW5wdXQtY29sb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1jb2xvci90YWlnYS11aS1sZWdhY3ktY29tcG9uZW50cy1pbnB1dC1jb2xvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './input-copy.component';
|
|
2
|
+
export * from './input-copy.directive';
|
|
3
|
+
export * from './input-copy.module';
|
|
4
|
+
export * from './input-copy.options';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1jb3B5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2lucHV0LWNvcHkuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vaW5wdXQtY29weS5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1jb3B5Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2lucHV0LWNvcHkub3B0aW9ucyc7XG4iXX0=
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { DOCUMENT } from '@angular/common';
|
|
3
|
+
import { ChangeDetectionStrategy, Component, HostBinding, inject, Input, ViewChild, } from '@angular/core';
|
|
4
|
+
import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
5
|
+
import { TUI_COPY_TEXTS } from '@taiga-ui/kit/tokens';
|
|
6
|
+
import { AbstractTuiControl, tuiAsControl } from '@taiga-ui/legacy/classes';
|
|
7
|
+
import { TuiPrimitiveTextfieldComponent } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
8
|
+
import { TUI_TEXTFIELD_SIZE, TUI_VALUE_ACCESSOR_PROVIDER, } from '@taiga-ui/legacy/directives';
|
|
9
|
+
import { tuiAsFocusableItemAccessor } from '@taiga-ui/legacy/tokens';
|
|
10
|
+
import { BehaviorSubject, map, merge, of, switchMap, timer } from 'rxjs';
|
|
11
|
+
import { TUI_INPUT_COPY_OPTIONS } from './input-copy.options';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@taiga-ui/polymorpheus";
|
|
14
|
+
import * as i2 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
15
|
+
import * as i3 from "@taiga-ui/legacy/directives";
|
|
16
|
+
import * as i4 from "@taiga-ui/core/directives/appearance";
|
|
17
|
+
import * as i5 from "@taiga-ui/core/components/icon";
|
|
18
|
+
import * as i6 from "@taiga-ui/core/directives/hint";
|
|
19
|
+
import * as i7 from "@angular/common";
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated: drop in v5.0
|
|
22
|
+
*/
|
|
23
|
+
class TuiInputCopyComponent extends AbstractTuiControl {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.copied$ = new BehaviorSubject(false);
|
|
27
|
+
this.doc = inject(DOCUMENT);
|
|
28
|
+
this.copyTexts$ = inject(TUI_COPY_TEXTS);
|
|
29
|
+
this.options = inject(TUI_INPUT_COPY_OPTIONS);
|
|
30
|
+
this.textfieldSize = inject(TUI_TEXTFIELD_SIZE);
|
|
31
|
+
this.successMessage = this.options.successMessage;
|
|
32
|
+
this.messageDirection = this.options.messageDirection;
|
|
33
|
+
this.messageAppearance = this.options.messageAppearance;
|
|
34
|
+
}
|
|
35
|
+
get nativeFocusableElement() {
|
|
36
|
+
return this.computedDisabled || !this.textfield
|
|
37
|
+
? null
|
|
38
|
+
: this.textfield.nativeFocusableElement;
|
|
39
|
+
}
|
|
40
|
+
get focused() {
|
|
41
|
+
return !!this.textfield?.focused;
|
|
42
|
+
}
|
|
43
|
+
onValueChange(value) {
|
|
44
|
+
this.value = value;
|
|
45
|
+
}
|
|
46
|
+
get size() {
|
|
47
|
+
return this.textfieldSize.size;
|
|
48
|
+
}
|
|
49
|
+
get hintText$() {
|
|
50
|
+
return this.copyTexts$.pipe(switchMap((texts) => this.copied$.pipe(switchMap((copied) => {
|
|
51
|
+
if (!copied) {
|
|
52
|
+
return of(texts[0]);
|
|
53
|
+
}
|
|
54
|
+
this.copied$.next(false);
|
|
55
|
+
return merge(of(this.successMessage || texts[1]), timer(3000).pipe(map(() => texts[0])));
|
|
56
|
+
}))));
|
|
57
|
+
}
|
|
58
|
+
get icon() {
|
|
59
|
+
return this.options.icon;
|
|
60
|
+
}
|
|
61
|
+
onFocused(focused) {
|
|
62
|
+
this.updateFocused(focused);
|
|
63
|
+
}
|
|
64
|
+
copy() {
|
|
65
|
+
if (!this.textfield?.nativeFocusableElement) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.textfield.nativeFocusableElement.select();
|
|
69
|
+
this.doc.execCommand('copy');
|
|
70
|
+
this.copied$.next(true);
|
|
71
|
+
}
|
|
72
|
+
getFallbackValue() {
|
|
73
|
+
return '';
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputCopyComponent, selector: "tui-input-copy", inputs: { successMessage: "successMessage", messageDirection: "messageDirection", messageAppearance: "messageAppearance" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [
|
|
77
|
+
TUI_VALUE_ACCESSOR_PROVIDER,
|
|
78
|
+
tuiAsFocusableItemAccessor(TuiInputCopyComponent),
|
|
79
|
+
tuiAsControl(TuiInputCopyComponent),
|
|
80
|
+
], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small{border:.25rem solid transparent}.t-textfield{border-radius:inherit;text-align:inherit}\n"], dependencies: [{ kind: "directive", type: i1.PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i2.TuiPrimitiveTextfieldComponent, selector: "tui-primitive-textfield", inputs: ["editable", "iconCleaner", "readOnly", "invalid", "disabled", "value"], outputs: ["valueChange"] }, { kind: "directive", type: i2.TuiPrimitiveTextfieldDirective, selector: "tui-primitive-textfield" }, { kind: "directive", type: i3.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { kind: "directive", type: i4.TuiAppearance, selector: "[tuiAppearance]", inputs: ["tuiAppearance", "tuiAppearanceState", "tuiAppearanceFocus"] }, { kind: "component", type: i5.TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: i6.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
81
|
+
}
|
|
82
|
+
__decorate([
|
|
83
|
+
tuiPure
|
|
84
|
+
], TuiInputCopyComponent.prototype, "hintText$", null);
|
|
85
|
+
export { TuiInputCopyComponent };
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyComponent, decorators: [{
|
|
87
|
+
type: Component,
|
|
88
|
+
args: [{ selector: 'tui-input-copy', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
89
|
+
TUI_VALUE_ACCESSOR_PROVIDER,
|
|
90
|
+
tuiAsFocusableItemAccessor(TuiInputCopyComponent),
|
|
91
|
+
tuiAsControl(TuiInputCopyComponent),
|
|
92
|
+
], template: "<tui-primitive-textfield\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [invalid]=\"computedInvalid\"\n [nativeId]=\"nativeId\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [readOnly]=\"readOnly\"\n [tuiTextfieldIcon]=\"!disabled ? iconContent : ''\"\n [(value)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n>\n <ng-content />\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n />\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n automation-id=\"tui-copy__icon\"\n tuiAppearance=\"icon\"\n class=\"t-icon\"\n [class.t-icon_small]=\"size === 's'\"\n [icon]=\"src.toString()\"\n [tuiAppearanceState]=\"!value ? 'disabled' : null\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n />\n</ng-template>\n\n<ng-template #hint>\n <ng-container *polymorpheusOutlet=\"hintText$ | async as text\">\n {{ text }}\n </ng-container>\n</ng-template>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-icon{position:relative;cursor:pointer;pointer-events:auto}.t-icon_small{border:.25rem solid transparent}.t-textfield{border-radius:inherit;text-align:inherit}\n"] }]
|
|
93
|
+
}], propDecorators: { textfield: [{
|
|
94
|
+
type: ViewChild,
|
|
95
|
+
args: [TuiPrimitiveTextfieldComponent]
|
|
96
|
+
}], successMessage: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], messageDirection: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], messageAppearance: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], size: [{
|
|
103
|
+
type: HostBinding,
|
|
104
|
+
args: ['attr.data-size']
|
|
105
|
+
}], hintText$: [] } });
|
|
106
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29weS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1jb3B5L2lucHV0LWNvcHkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbGVnYWN5L2NvbXBvbmVudHMvaW5wdXQtY29weS9pbnB1dC1jb3B5LnRlbXBsYXRlLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sR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CBnZXQgc2l6ZSgpOiBUdWlTaXplTCB8IFR1aVNpemVTIHtcbiAgICAgICAgcmV0dXJuIHRoaXMudGV4dGZpZWxkU2l6ZS5zaXplO1xuICAgIH1cblxuICAgIEB0dWlQdXJlXG4gICAgcHJvdGVjdGVkIGdldCBoaW50VGV4dCQoKTogT2JzZXJ2YWJsZTxQb2x5bW9ycGhldXNDb250ZW50PiB7XG4gICAgICAgIHJldHVybiB0aGlzLmNvcHlUZXh0cyQucGlwZShcbiAgICAgICAgICAgIHN3aXRjaE1hcCgodGV4dHMpID0+XG4gICAgICAgICAgICAgICAgdGhpcy5jb3BpZWQkLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgIHN3aXRjaE1hcCgoY29waWVkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAoIWNvcGllZCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvZih0ZXh0c1swXSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29waWVkJC5uZXh0KGZhbHNlKTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG1lcmdlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9mKHRoaXMuc3VjY2Vzc01lc3NhZ2UgfHwgdGV4dHNbMV0pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVyKDMwMDApLnBpcGUobWFwKCgpID0+IHRleHRzWzBdKSksXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgKSxcbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICBwcm90ZWN0ZWQgZ2V0IGljb24oKTogVHVpSW5wdXRDb3B5T3B0aW9uc1snaWNvbiddIHtcbiAgICAgICAgcmV0dXJuIHRoaXMub3B0aW9ucy5pY29uO1xuICAgIH1cblxuICAg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AgICAgICB7eyB0ZXh0IH19XG4gICAgPC9uZy1jb250YWluZXI+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { AbstractTuiTextfieldHost } from '@taiga-ui/legacy/classes';
|
|
3
|
+
import { tuiAsTextfieldHost } from '@taiga-ui/legacy/tokens';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated: drop in v5.0
|
|
7
|
+
*/
|
|
8
|
+
class TuiInputCopyDirective extends AbstractTuiTextfieldHost {
|
|
9
|
+
onValueChange(value) {
|
|
10
|
+
this.host.onValueChange(value);
|
|
11
|
+
}
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputCopyDirective, selector: "tui-input-copy", providers: [tuiAsTextfieldHost(TuiInputCopyDirective)], usesInheritance: true, ngImport: i0 }); }
|
|
14
|
+
}
|
|
15
|
+
export { TuiInputCopyDirective };
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyDirective, decorators: [{
|
|
17
|
+
type: Directive,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'tui-input-copy',
|
|
20
|
+
providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29weS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWd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AZGVwcmVjYXRlZDogZHJvcCBpbiB2NS4wXG4gKi9cbkBEaXJlY3RpdmUoe1xuICAgIHNlbGVjdG9yOiAndHVpLWlucHV0LWNvcHknLFxuICAgIHByb3ZpZGVyczogW3R1aUFzVGV4dGZpZWxkSG9zdChUdWlJbnB1dENvcHlEaXJlY3RpdmUpXSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpSW5wdXRDb3B5RGlyZWN0aXZlIGV4dGVuZHMgQWJzdHJhY3RUdWlUZXh0ZmllbGRIb3N0PFR1aUlucHV0Q29weUNvbXBvbmVudD4ge1xuICAgIHB1YmxpYyBvblZhbHVlQ2hhbmdlKHZhbHVlOiBzdHJpbmcpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5ob3N0Lm9uVmFsdWVDaGFuZ2UodmFsdWUpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { TuiIcon } from '@taiga-ui/core/components/icon';
|
|
4
|
+
import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
|
|
5
|
+
import { TuiHint } from '@taiga-ui/core/directives/hint';
|
|
6
|
+
import { TuiPrimitiveTextfieldModule, TuiTextfieldComponent, } from '@taiga-ui/legacy/components/primitive-textfield';
|
|
7
|
+
import { TuiTextfieldControllerModule } from '@taiga-ui/legacy/directives';
|
|
8
|
+
import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
9
|
+
import { TuiInputCopyComponent } from './input-copy.component';
|
|
10
|
+
import { TuiInputCopyDirective } from './input-copy.directive';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@taiga-ui/core/directives/hint";
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated: drop in v5.0
|
|
15
|
+
*/
|
|
16
|
+
class TuiInputCopyModule {
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
18
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyModule, declarations: [TuiInputCopyComponent, TuiInputCopyDirective], imports: [CommonModule,
|
|
19
|
+
PolymorpheusOutlet,
|
|
20
|
+
PolymorpheusTemplate,
|
|
21
|
+
TuiPrimitiveTextfieldModule,
|
|
22
|
+
TuiTextfieldControllerModule,
|
|
23
|
+
TuiAppearance,
|
|
24
|
+
TuiIcon, i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer], exports: [TuiInputCopyComponent,
|
|
25
|
+
TuiInputCopyDirective,
|
|
26
|
+
TuiTextfieldComponent, i1.TuiHintComponent, i1.TuiHintDirective, i1.TuiHintOptionsDirective, i1.TuiHintUnstyled, i1.TuiHintDriver, i1.TuiHintPosition, i1.TuiHintHover, i1.TuiHintDescribe, i1.TuiHintHost, i1.TuiHintManual, i1.TuiHintPointer] }); }
|
|
27
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyModule, imports: [CommonModule,
|
|
28
|
+
TuiPrimitiveTextfieldModule,
|
|
29
|
+
TuiTextfieldControllerModule,
|
|
30
|
+
TuiIcon, i1.TuiHintComponent] }); }
|
|
31
|
+
}
|
|
32
|
+
export { TuiInputCopyModule };
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputCopyModule, decorators: [{
|
|
34
|
+
type: NgModule,
|
|
35
|
+
args: [{
|
|
36
|
+
imports: [
|
|
37
|
+
CommonModule,
|
|
38
|
+
PolymorpheusOutlet,
|
|
39
|
+
PolymorpheusTemplate,
|
|
40
|
+
TuiPrimitiveTextfieldModule,
|
|
41
|
+
TuiTextfieldControllerModule,
|
|
42
|
+
TuiAppearance,
|
|
43
|
+
TuiIcon,
|
|
44
|
+
...TuiHint,
|
|
45
|
+
],
|
|
46
|
+
declarations: [TuiInputCopyComponent, TuiInputCopyDirective],
|
|
47
|
+
exports: [
|
|
48
|
+
TuiInputCopyComponent,
|
|
49
|
+
TuiInputCopyDirective,
|
|
50
|
+
TuiTextfieldComponent,
|
|
51
|
+
...TuiHint,
|
|
52
|
+
],
|
|
53
|
+
}]
|
|
54
|
+
}] });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29weS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1jb3B5L2lucHV0LWNvcHkubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN2RCxPQUFPLEVBQUMsYUFBYSxFQUFDLE1BQU0sc0NBQXNDLENBQUM7QUFDbkUsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGdDQUFnQyxDQUFDO0FBQ3ZELE9BQU8sRUFDSCwyQkFBMkIsRUFDM0IscUJBQXFCLEdBQ3hCLE1BQU0saURBQWlELENBQUM7QUFDekQsT0FBTyxFQUFDLDRCQUE0QixFQUFDLE1BQU0sNkJBQTZCLENBQUM7Q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lVGV4dGZpZWxkTW9kdWxlLFxuICAgICAgICBUdWlUZXh0ZmllbGRDb250cm9sbGVyTW9kdWxlLFxuICAgICAgICBUdWlBcHBlYXJhbmNlLFxuICAgICAgICBUdWlJY29uLFxuICAgICAgICAuLi5UdWlIaW50LFxuICAgIF0sXG4gICAgZGVjbGFyYXRpb25zOiBbVHVpSW5wdXRDb3B5Q29tcG9uZW50LCBUdWlJbnB1dENvcHlEaXJlY3RpdmVdLFxuICAgIGV4cG9ydHM6IFtcbiAgICAgICAgVHVpSW5wdXRDb3B5Q29tcG9uZW50LFxuICAgICAgICBUdWlJbnB1dENvcHlEaXJlY3RpdmUsXG4gICAgICAgIFR1aVRleHRmaWVsZENvbXBvbmVudCxcbiAgICAgICAgLi4uVHVpSGludCxcbiAgICBdLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlJbnB1dENvcHlNb2R1bGUge31cbiJdfQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { tuiCreateToken, tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated: drop in v5.0
|
|
4
|
+
*/
|
|
5
|
+
export const TUI_INPUT_COPY_DEFAULT_OPTIONS = {
|
|
6
|
+
successMessage: '',
|
|
7
|
+
messageDirection: 'bottom-left',
|
|
8
|
+
messageAppearance: '',
|
|
9
|
+
icon: () => '@tui.copy',
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated: drop in v5.0
|
|
13
|
+
*/
|
|
14
|
+
export const TUI_INPUT_COPY_OPTIONS = tuiCreateToken(TUI_INPUT_COPY_DEFAULT_OPTIONS);
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated: drop in v5.0
|
|
17
|
+
*/
|
|
18
|
+
export function tuiInputCopyOptionsProvider(options) {
|
|
19
|
+
return tuiProvideOptions(TUI_INPUT_COPY_OPTIONS, options, TUI_INPUT_COPY_DEFAULT_OPTIONS);
|
|
20
|
+
}
|
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29uc3QgVFVJX0lOUFVUX0NPUFlfT1BUSU9OUyA9IHR1aUNyZWF0ZVRva2VuKFRVSV9JTlBVVF9DT1BZX0RFRkFVTFRfT1BUSU9OUyk7XG5cbi8qKlxuICogQGRlcHJlY2F0ZWQ6IGRyb3AgaW4gdjUuMFxuICovXG5leHBvcnQgZnVuY3Rpb24gdHVpSW5wdXRDb3B5T3B0aW9uc1Byb3ZpZGVyKFxuICAgIG9wdGlvbnM6IFBhcnRpYWw8VHVpSW5wdXRDb3B5T3B0aW9ucz4sXG4pOiBQcm92aWRlciB7XG4gICAgcmV0dXJuIHR1aVByb3ZpZGVPcHRpb25zKFxuICAgICAgICBUVUlfSU5QVVRfQ09QWV9PUFRJT05TLFxuICAgICAgICBvcHRpb25zLFxuICAgICAgICBUVUlfSU5QVVRfQ09QWV9ERUZBVUxUX09QVElPTlMsXG4gICAgKTtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktbGVnYWN5LWNvbXBvbmVudHMtaW5wdXQtY29weS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2xlZ2FjeS9jb21wb25lbnRzL2lucHV0LWNvcHkvdGFpZ2EtdWktbGVnYWN5LWNvbXBvbmVudHMtaW5wdXQtY29weS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from './input-date.component';
|
|
2
|
+
export * from './input-date.directive';
|
|
3
|
+
export * from './input-date.module';
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9sZWdhY3kvY29tcG9uZW50cy9pbnB1dC1kYXRlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHFCQUFxQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9pbnB1dC1kYXRlLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2lucHV0LWRhdGUuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vaW5wdXQtZGF0ZS5tb2R1bGUnO1xuIl19
|