@taiga-ui/kit 3.51.0 → 3.52.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/abstract/taiga-ui-kit-abstract.d.ts +3 -0
- package/bundles/taiga-ui-kit-abstract.umd.js +4 -0
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-classes.umd.js +7 -0
- package/bundles/taiga-ui-kit-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +10 -3
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +21 -0
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +720 -0
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +23 -0
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +33 -2
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +17 -6
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +38 -0
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-prompt.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +39 -0
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +25 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +13 -0
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +28 -0
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +14 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +19 -0
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +5 -0
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-mask.umd.js +26 -0
- package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +15 -0
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +7 -0
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +7 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js +3 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +10 -0
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal.umd.js +4 -0
- package/bundles/taiga-ui-kit-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +7 -0
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +4 -0
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-services.umd.js +4 -0
- package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +35 -0
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-types.umd.js +3 -1
- package/bundles/taiga-ui-kit-types.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-date.umd.js +22 -0
- package/bundles/taiga-ui-kit-utils-date.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-utils-files.umd.js +4 -0
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +10 -0
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +50 -0
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +7 -0
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +10 -0
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +4 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils.umd.js +14 -4
- package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +4 -0
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-kit.umd.js +4 -0
- package/bundles/taiga-ui-kit.umd.js.map +1 -1
- package/classes/stringifiable-item.d.ts +3 -0
- package/classes/taiga-ui-kit-classes.d.ts +3 -0
- package/components/accordion/taiga-ui-kit-components-accordion.d.ts +3 -0
- package/components/action/taiga-ui-kit-components-action.d.ts +3 -0
- package/components/arrow/arrow.options.d.ts +4 -0
- package/components/arrow/arrow.providers.d.ts +3 -0
- package/components/arrow/taiga-ui-kit-components-arrow.d.ts +3 -0
- package/components/avatar/avatar.options.d.ts +4 -0
- package/components/avatar/taiga-ui-kit-components-avatar.d.ts +3 -0
- package/components/badge/taiga-ui-kit-components-badge.d.ts +3 -0
- package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +3 -0
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +3 -0
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +3 -0
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +3 -0
- package/components/carousel/taiga-ui-kit-components-carousel.d.ts +3 -0
- package/components/checkbox/checkbox.component.d.ts +1 -0
- package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +3 -0
- package/components/checkbox-block/checkbox-block.component.d.ts +1 -0
- package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +3 -0
- package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -0
- package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +3 -0
- package/components/combo-box/combo-box.component.d.ts +1 -0
- package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +3 -0
- package/components/data-list-wrapper/data-list-wrapper.d.ts +3 -2
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +3 -0
- package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +3 -0
- package/components/files/file/file-options.d.ts +3 -0
- package/components/files/taiga-ui-kit-components-files.d.ts +3 -0
- package/components/filter/taiga-ui-kit-components-filter.d.ts +3 -0
- package/components/index.d.ts +1 -0
- package/components/input/taiga-ui-kit-components-input.d.ts +3 -0
- package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +3 -0
- package/components/input-count/input-count.component.d.ts +10 -0
- package/components/input-count/input-count.module.d.ts +3 -0
- package/components/input-count/input-count.options.d.ts +4 -0
- package/components/input-count/taiga-ui-kit-components-input-count.d.ts +3 -0
- package/components/input-date/input-date.component.d.ts +4 -0
- package/components/input-date/taiga-ui-kit-components-input-date.d.ts +3 -0
- package/components/input-date-multi/index.d.ts +2 -0
- package/components/input-date-multi/input-date-multi.component.d.ts +64 -0
- package/components/input-date-multi/input-date-multi.module.d.ts +14 -0
- package/components/input-date-multi/package.json +10 -0
- package/components/input-date-multi/taiga-ui-kit-components-input-date-multi.d.ts +5 -0
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +3 -0
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +3 -0
- package/components/input-files/input-files.component.d.ts +6 -0
- package/components/input-files/input-files.options.d.ts +8 -0
- package/components/input-files/taiga-ui-kit-components-input-files.d.ts +3 -0
- package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +3 -0
- package/components/input-month/taiga-ui-kit-components-input-month.d.ts +3 -0
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +3 -0
- package/components/input-number/input-number.component.d.ts +2 -0
- package/components/input-number/input-number.options.d.ts +4 -0
- package/components/input-number/taiga-ui-kit-components-input-number.d.ts +3 -0
- package/components/input-password/input-password.options.d.ts +4 -0
- package/components/input-password/taiga-ui-kit-components-input-password.d.ts +3 -0
- package/components/input-phone/input-phone.options.d.ts +3 -0
- package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +3 -0
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +7 -0
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +6 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +13 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +3 -0
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +3 -0
- package/components/input-range/taiga-ui-kit-components-input-range.d.ts +3 -0
- package/components/input-slider/input-slider.component.d.ts +2 -0
- package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +3 -0
- package/components/input-tag/input-tag.component.d.ts +1 -1
- package/components/input-tag/input-tag.options.d.ts +3 -0
- package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +3 -0
- package/components/input-time/input-time.component.d.ts +1 -0
- package/components/input-time/input-time.options.d.ts +3 -0
- package/components/input-time/taiga-ui-kit-components-input-time.d.ts +3 -0
- package/components/input-year/taiga-ui-kit-components-input-year.d.ts +3 -0
- package/components/island/taiga-ui-kit-components-island.d.ts +3 -0
- package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +3 -0
- package/components/line-clamp/line-clamp.options.d.ts +3 -0
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +3 -0
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +3 -0
- package/components/multi-select/multi-select.options.d.ts +3 -0
- package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +3 -0
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +3 -0
- package/components/pagination/pagination.component.d.ts +37 -0
- package/components/pagination/taiga-ui-kit-components-pagination.d.ts +3 -0
- package/components/pdf-viewer/pdf-viewer.options.d.ts +3 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +3 -0
- package/components/progress/taiga-ui-kit-components-progress.d.ts +3 -0
- package/components/prompt/taiga-ui-kit-components-prompt.d.ts +3 -0
- package/components/push/push.options.d.ts +3 -0
- package/components/push/taiga-ui-kit-components-push.d.ts +3 -0
- package/components/radio/radio.options.d.ts +4 -0
- package/components/radio/taiga-ui-kit-components-radio.d.ts +3 -0
- package/components/radio-block/radio-block.component.d.ts +1 -0
- package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +3 -0
- package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +3 -0
- package/components/radio-labeled/radio-labeled.component.d.ts +1 -0
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +3 -0
- package/components/radio-list/radio-list.component.d.ts +1 -0
- package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +3 -0
- package/components/range/range-change.directive.d.ts +4 -0
- package/components/range/taiga-ui-kit-components-range.d.ts +3 -0
- package/components/rating/rating.options.d.ts +3 -0
- package/components/rating/taiga-ui-kit-components-rating.d.ts +3 -0
- package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +3 -0
- package/components/select/select.options.d.ts +3 -0
- package/components/select/taiga-ui-kit-components-select.d.ts +3 -0
- package/components/select-option/taiga-ui-kit-components-select-option.d.ts +3 -0
- package/components/slider/helpers/slider-readonly.directive.d.ts +4 -0
- package/components/slider/slider.options.d.ts +3 -0
- package/components/slider/taiga-ui-kit-components-slider.d.ts +3 -0
- package/components/stepper/taiga-ui-kit-components-stepper.d.ts +3 -0
- package/components/tabs/tab/tab.providers.d.ts +3 -0
- package/components/tabs/tabs/tabs.component.d.ts +2 -0
- package/components/tabs/tabs.options.d.ts +3 -0
- package/components/tabs/taiga-ui-kit-components-tabs.d.ts +3 -0
- package/components/tag/tag.options.d.ts +4 -0
- package/components/tag/taiga-ui-kit-components-tag.d.ts +3 -0
- package/components/taiga-ui-kit-components.d.ts +3 -0
- package/components/textarea/deprecated.d.ts +9 -0
- package/components/textarea/taiga-ui-kit-components-textarea.d.ts +3 -0
- package/components/tiles/taiga-ui-kit-components-tiles.d.ts +3 -0
- package/components/toggle/taiga-ui-kit-components-toggle.d.ts +3 -0
- package/components/toggle/toggle.component.d.ts +1 -0
- package/components/toggle/toggle.options.d.ts +4 -0
- package/components/tree/misc/tree.tokens.d.ts +24 -0
- package/components/tree/taiga-ui-kit-components-tree.d.ts +3 -0
- package/constants/empty-mask.d.ts +4 -0
- package/constants/group-class-names.d.ts +4 -0
- package/constants/masks.d.ts +4 -0
- package/constants/math.d.ts +3 -0
- package/constants/taiga-ui-kit-constants.d.ts +3 -0
- package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +3 -0
- package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +3 -0
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +3 -0
- package/directives/mask/legacy-mask.d.ts +21 -0
- package/directives/mask/taiga-ui-kit-directives-mask.d.ts +3 -0
- package/directives/present/present.directive.d.ts +11 -0
- package/directives/present/taiga-ui-kit-directives-present.d.ts +3 -0
- package/directives/project-class/project-class.directive.d.ts +3 -0
- package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +3 -0
- package/directives/taiga-ui-kit-directives.d.ts +3 -0
- package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +3 -0
- package/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.d.ts +3 -0
- package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +3 -0
- package/esm2015/abstract/taiga-ui-kit-abstract.js +4 -1
- package/esm2015/classes/stringifiable-item.js +4 -1
- package/esm2015/classes/taiga-ui-kit-classes.js +4 -1
- package/esm2015/components/accordion/taiga-ui-kit-components-accordion.js +4 -1
- package/esm2015/components/action/taiga-ui-kit-components-action.js +4 -1
- package/esm2015/components/arrow/arrow.options.js +5 -1
- package/esm2015/components/arrow/arrow.providers.js +4 -1
- package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +4 -1
- package/esm2015/components/avatar/avatar.options.js +5 -1
- package/esm2015/components/avatar/taiga-ui-kit-components-avatar.js +4 -1
- package/esm2015/components/badge/taiga-ui-kit-components-badge.js +4 -1
- package/esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js +4 -1
- package/esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js +4 -1
- package/esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js +4 -1
- package/esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js +4 -1
- package/esm2015/components/carousel/carousel-scroll.directive.js +2 -1
- package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +4 -1
- package/esm2015/components/checkbox/checkbox.component.js +2 -1
- package/esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js +4 -1
- package/esm2015/components/checkbox-block/checkbox-block.component.js +2 -1
- package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +4 -1
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +2 -1
- package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +4 -1
- package/esm2015/components/combo-box/combo-box.component.js +2 -1
- package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +4 -1
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.js +6 -3
- package/esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js +4 -1
- package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +4 -1
- package/esm2015/components/files/file/file-options.js +4 -1
- package/esm2015/components/files/file/file.component.js +2 -1
- package/esm2015/components/files/taiga-ui-kit-components-files.js +4 -1
- package/esm2015/components/filter/filter.component.js +2 -1
- package/esm2015/components/filter/taiga-ui-kit-components-filter.js +4 -1
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/input/taiga-ui-kit-components-input.js +4 -1
- package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +4 -1
- package/esm2015/components/input-count/input-count.component.js +11 -1
- package/esm2015/components/input-count/input-count.module.js +4 -1
- package/esm2015/components/input-count/input-count.options.js +5 -1
- package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +4 -1
- package/esm2015/components/input-date/input-date.component.js +6 -1
- package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +4 -1
- package/esm2015/components/input-date-multi/index.js +3 -0
- package/esm2015/components/input-date-multi/input-date-multi.component.js +272 -0
- package/esm2015/components/input-date-multi/input-date-multi.module.js +64 -0
- package/esm2015/components/input-date-multi/taiga-ui-kit-components-input-date-multi.js +5 -0
- package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +4 -1
- package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +4 -1
- package/esm2015/components/input-files/input-files.component.js +9 -1
- package/esm2015/components/input-files/input-files.directive.js +2 -1
- package/esm2015/components/input-files/input-files.options.js +5 -2
- package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +4 -1
- package/esm2015/components/input-inline/input-inline.component.js +3 -1
- package/esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js +4 -1
- package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +4 -1
- package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +4 -1
- package/esm2015/components/input-number/input-number.component.js +4 -1
- package/esm2015/components/input-number/input-number.options.js +5 -1
- package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +4 -1
- package/esm2015/components/input-password/input-password.options.js +6 -1
- package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +4 -1
- package/esm2015/components/input-phone/input-phone.options.js +4 -1
- package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +4 -1
- package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +21 -3
- package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +7 -1
- package/esm2015/components/input-phone-international/input-phone-international.component.js +17 -1
- package/esm2015/components/input-phone-international/input-phone-international.options.js +4 -1
- package/esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js +4 -1
- package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +4 -1
- package/esm2015/components/input-slider/input-slider.component.js +3 -1
- package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +4 -1
- package/esm2015/components/input-tag/input-tag.component.js +6 -2
- package/esm2015/components/input-tag/input-tag.options.js +4 -1
- package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +4 -1
- package/esm2015/components/input-time/input-time.component.js +3 -1
- package/esm2015/components/input-time/input-time.options.js +4 -1
- package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +4 -1
- package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +4 -1
- package/esm2015/components/island/taiga-ui-kit-components-island.js +4 -1
- package/esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js +4 -1
- package/esm2015/components/line-clamp/line-clamp.component.js +2 -1
- package/esm2015/components/line-clamp/line-clamp.options.js +4 -1
- package/esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js +4 -1
- package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +4 -1
- package/esm2015/components/multi-select/multi-select.component.js +2 -1
- package/esm2015/components/multi-select/multi-select.options.js +4 -1
- package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +4 -1
- package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +4 -1
- package/esm2015/components/pagination/pagination.component.js +35 -1
- package/esm2015/components/pagination/taiga-ui-kit-components-pagination.js +4 -1
- package/esm2015/components/pdf-viewer/pdf-viewer.options.js +4 -1
- package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +4 -1
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +2 -1
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -1
- package/esm2015/components/progress/taiga-ui-kit-components-progress.js +4 -1
- package/esm2015/components/prompt/prompt.component.js +2 -1
- package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +4 -1
- package/esm2015/components/push/push.options.js +4 -1
- package/esm2015/components/push/taiga-ui-kit-components-push.js +4 -1
- package/esm2015/components/radio/radio.options.js +5 -1
- package/esm2015/components/radio/taiga-ui-kit-components-radio.js +4 -1
- package/esm2015/components/radio-block/radio-block.component.js +2 -1
- package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +4 -1
- package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +4 -1
- package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -1
- package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +4 -1
- package/esm2015/components/radio-list/radio-list.component.js +3 -1
- package/esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js +4 -1
- package/esm2015/components/range/range-change.directive.js +5 -1
- package/esm2015/components/range/range.component.js +2 -1
- package/esm2015/components/range/taiga-ui-kit-components-range.js +4 -1
- package/esm2015/components/rating/rating.options.js +4 -1
- package/esm2015/components/rating/taiga-ui-kit-components-rating.js +4 -1
- package/esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js +4 -1
- package/esm2015/components/select/select.options.js +4 -1
- package/esm2015/components/select/taiga-ui-kit-components-select.js +4 -1
- package/esm2015/components/select-option/select-option.component.js +8 -1
- package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +4 -1
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +9 -1
- package/esm2015/components/slider/slider.component.js +25 -1
- package/esm2015/components/slider/slider.options.js +4 -1
- package/esm2015/components/slider/taiga-ui-kit-components-slider.js +4 -1
- package/esm2015/components/stepper/stepper.component.js +3 -1
- package/esm2015/components/stepper/taiga-ui-kit-components-stepper.js +4 -1
- package/esm2015/components/tabs/tab/tab.component.js +9 -1
- package/esm2015/components/tabs/tab/tab.providers.js +4 -1
- package/esm2015/components/tabs/tabs/tabs.component.js +3 -1
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -1
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +4 -2
- package/esm2015/components/tabs/tabs.options.js +4 -1
- package/esm2015/components/tabs/taiga-ui-kit-components-tabs.js +4 -1
- package/esm2015/components/tag/tag.component.js +2 -1
- package/esm2015/components/tag/tag.options.js +5 -1
- package/esm2015/components/tag/taiga-ui-kit-components-tag.js +4 -1
- package/esm2015/components/taiga-ui-kit-components.js +4 -1
- package/esm2015/components/textarea/deprecated.js +10 -1
- package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +4 -1
- package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +4 -1
- package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +4 -1
- package/esm2015/components/toggle/toggle.component.js +2 -1
- package/esm2015/components/toggle/toggle.options.js +5 -1
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -1
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +2 -1
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -1
- package/esm2015/components/tree/misc/tree.tokens.js +25 -1
- package/esm2015/components/tree/taiga-ui-kit-components-tree.js +4 -1
- package/esm2015/constants/empty-mask.js +5 -1
- package/esm2015/constants/group-class-names.js +5 -1
- package/esm2015/constants/masks.js +5 -1
- package/esm2015/constants/math.js +4 -1
- package/esm2015/constants/taiga-ui-kit-constants.js +4 -1
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +2 -1
- package/esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js +4 -1
- package/esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js +4 -1
- package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +4 -1
- package/esm2015/directives/mask/legacy-mask.js +31 -1
- package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +4 -1
- package/esm2015/directives/present/present.directive.js +12 -1
- package/esm2015/directives/present/taiga-ui-kit-directives-present.js +4 -1
- package/esm2015/directives/project-class/project-class.directive.js +4 -1
- package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +4 -1
- package/esm2015/directives/taiga-ui-kit-directives.js +4 -1
- package/esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js +4 -1
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +4 -2
- package/esm2015/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.js +4 -1
- package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +4 -1
- package/esm2015/interfaces/taiga-ui-kit-interfaces.js +4 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +4 -1
- package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +4 -1
- package/esm2015/internal/taiga-ui-kit-internal.js +4 -1
- package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +4 -1
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +4 -1
- package/esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js +4 -1
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +4 -1
- package/esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js +4 -1
- package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +4 -1
- package/esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js +4 -1
- package/esm2015/pipes/taiga-ui-kit-pipes.js +4 -1
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +4 -1
- package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +4 -1
- package/esm2015/providers/taiga-ui-kit-providers.js +4 -1
- package/esm2015/services/taiga-ui-kit-services.js +4 -1
- package/esm2015/taiga-ui-kit.js +4 -1
- package/esm2015/tokens/calendar-date-stream.js +4 -1
- package/esm2015/tokens/date-inputs-value-transformers.js +11 -1
- package/esm2015/tokens/input-date-options.js +4 -1
- package/esm2015/tokens/items-handlers.js +4 -1
- package/esm2015/tokens/mobile-calendar.js +4 -1
- package/esm2015/tokens/month-formatter.js +4 -1
- package/esm2015/tokens/tab-margin.js +4 -1
- package/esm2015/tokens/taiga-ui-kit-tokens.js +4 -1
- package/esm2015/tokens/validation-errors.js +4 -1
- package/esm2015/types/taiga-ui-kit-types.js +4 -1
- package/esm2015/utils/date/index.js +2 -0
- package/esm2015/utils/date/taiga-ui-kit-utils-date.js +5 -0
- package/esm2015/utils/date/update.js +6 -0
- package/esm2015/utils/files/taiga-ui-kit-utils-files.js +4 -1
- package/esm2015/utils/format/string-hash-to-hsl.js +7 -1
- package/esm2015/utils/format/taiga-ui-kit-utils-format.js +4 -1
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +9 -1
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +17 -1
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -1
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -1
- package/esm2015/utils/mask/create-date-mask.js +5 -1
- package/esm2015/utils/mask/create-date-range-mask.js +5 -1
- package/esm2015/utils/mask/create-time-mask.js +5 -1
- package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +4 -1
- package/esm2015/utils/math/horizontal-direction-to-number.js +4 -1
- package/esm2015/utils/math/taiga-ui-kit-utils-math.js +4 -1
- package/esm2015/utils/miscellaneous/get-precision.js +4 -1
- package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +4 -1
- package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +4 -1
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +4 -1
- package/esm2015/utils/taiga-ui-kit-utils.js +4 -1
- package/esm2015/validators/taiga-ui-kit-validators.js +4 -1
- package/fesm2015/taiga-ui-kit-abstract.js +4 -0
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-classes.js +7 -0
- package/fesm2015/taiga-ui-kit-classes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +4 -0
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +4 -0
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +11 -0
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +8 -0
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +4 -0
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +4 -0
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -0
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -0
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +5 -0
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +5 -0
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -4
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-elastic-container.js +4 -0
- package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +8 -0
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +5 -0
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +21 -0
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-multi.js +335 -0
- package/fesm2015/taiga-ui-kit-components-input-date-multi.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +15 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -0
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +11 -0
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +23 -0
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +33 -2
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +6 -0
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +12 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-year.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js +4 -0
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +4 -0
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -0
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +4 -0
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +4 -0
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +8 -0
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +38 -0
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +7 -0
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +6 -0
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-prompt.js +5 -0
- package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +7 -0
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +5 -0
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +4 -0
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -0
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +6 -0
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +8 -0
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +9 -0
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +7 -0
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js +4 -0
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +11 -0
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +7 -0
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +39 -0
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +6 -0
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +25 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +9 -0
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +13 -0
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +4 -0
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +9 -0
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +28 -0
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +5 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +19 -0
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +5 -0
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-mask.js +26 -0
- package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +15 -0
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +7 -0
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +7 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives.js +4 -0
- package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
- package/fesm2015/taiga-ui-kit-interfaces.js +3 -1
- package/fesm2015/taiga-ui-kit-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +10 -0
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal.js +4 -0
- package/fesm2015/taiga-ui-kit-internal.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +7 -0
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +4 -0
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-services.js +4 -0
- package/fesm2015/taiga-ui-kit-services.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +35 -0
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-types.js +3 -1
- package/fesm2015/taiga-ui-kit-types.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-date.js +12 -0
- package/fesm2015/taiga-ui-kit-utils-date.js.map +1 -0
- package/fesm2015/taiga-ui-kit-utils-files.js +4 -0
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +10 -0
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +50 -0
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +7 -0
- package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +10 -0
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +4 -0
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils.js +5 -0
- package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +4 -0
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/fesm2015/taiga-ui-kit.js +4 -0
- package/fesm2015/taiga-ui-kit.js.map +1 -1
- package/interfaces/taiga-ui-kit-interfaces.d.ts +3 -0
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
- package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +3 -0
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +3 -0
- package/internal/taiga-ui-kit-internal.d.ts +3 -0
- package/package.json +5 -5
- package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +3 -0
- package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +3 -0
- package/pipes/filter-by-input/filter-by-input.base.d.ts +4 -0
- package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +3 -0
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +3 -0
- package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +3 -0
- package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +3 -0
- package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +3 -0
- package/pipes/taiga-ui-kit-pipes.d.ts +3 -0
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +3 -0
- package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +3 -0
- package/providers/taiga-ui-kit-providers.d.ts +3 -0
- package/services/taiga-ui-kit-services.d.ts +3 -0
- package/taiga-ui-kit.d.ts +3 -0
- package/tokens/calendar-date-stream.d.ts +3 -0
- package/tokens/date-inputs-value-transformers.d.ts +9 -0
- package/tokens/input-date-options.d.ts +3 -0
- package/tokens/items-handlers.d.ts +3 -0
- package/tokens/mobile-calendar.d.ts +3 -0
- package/tokens/month-formatter.d.ts +3 -0
- package/tokens/tab-margin.d.ts +3 -0
- package/tokens/taiga-ui-kit-tokens.d.ts +3 -0
- package/tokens/validation-errors.d.ts +3 -0
- package/types/file-state.d.ts +3 -0
- package/types/key-steps.d.ts +18 -0
- package/types/taiga-ui-kit-types.d.ts +3 -0
- package/utils/date/index.d.ts +1 -0
- package/utils/date/package.json +10 -0
- package/utils/date/taiga-ui-kit-utils-date.d.ts +5 -0
- package/utils/date/update.d.ts +2 -0
- package/utils/files/taiga-ui-kit-utils-files.d.ts +3 -0
- package/utils/format/string-hash-to-hsl.d.ts +5 -0
- package/utils/format/taiga-ui-kit-utils-format.d.ts +3 -0
- package/utils/index.d.ts +1 -0
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +12 -0
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +16 -0
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +4 -0
- package/utils/mask/create-auto-corrected-time-pipe.d.ts +6 -0
- package/utils/mask/create-date-mask.d.ts +4 -0
- package/utils/mask/create-date-range-mask.d.ts +4 -0
- package/utils/mask/create-time-mask.d.ts +4 -0
- package/utils/mask/taiga-ui-kit-utils-mask.d.ts +3 -0
- package/utils/math/horizontal-direction-to-number.d.ts +3 -0
- package/utils/math/taiga-ui-kit-utils-math.d.ts +3 -0
- package/utils/miscellaneous/get-precision.d.ts +3 -0
- package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -0
- package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +3 -0
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +3 -0
- package/utils/taiga-ui-kit-utils.d.ts +3 -0
- package/validators/taiga-ui-kit-validators.d.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["../../../projects/kit/components/input-copy/input-copy.options.ts","../../../projects/kit/components/input-copy/input-copy.component.ts","../../../projects/kit/components/input-copy/input-copy.template.html","../../../projects/kit/components/input-copy/input-copy.directive.ts","../../../projects/kit/components/input-copy/input-copy.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {TuiContextWithImplicit, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: ``,\n messageDirection: `bottom-left`,\n messageAppearance: ``,\n icon: ({$implicit}) => ($implicit === `s` ? `tuiIconCopy` : `tuiIconCopyLarge`),\n};\n\nexport const TUI_INPUT_COPY_OPTIONS = tuiCreateToken(TUI_INPUT_COPY_DEFAULT_OPTIONS);\n\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {map, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_OPTIONS, TuiInputCopyOptions} from './input-copy.options';\n\n@Component({\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n successMessage = this.options.successMessage;\n\n @Input()\n messageDirection = this.options.messageDirection;\n\n @Input()\n messageAppearance = this.options.messageAppearance;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly doc: Document,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_COPY_OPTIONS) private readonly options: TuiInputCopyOptions,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n onValueChange(value: string): void {\n this.value = value;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<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></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-copy__icon\"\n tuiWrapper\n class=\"t-icon\"\n [disabled]=\"!value\"\n [src]=\"src\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n ></tui-svg>\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","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAYa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE,CAAE,CAAA;AAClB,IAAA,gBAAgB,EAAE,CAAa,WAAA,CAAA;AAC/B,IAAA,iBAAiB,EAAE,CAAE,CAAA;IACrB,IAAI,EAAE,CAAC,EAAC,SAAS,EAAC,MAAM,SAAS,KAAK,CAAG,CAAA,CAAA,GAAG,CAAA,WAAA,CAAa,GAAG,kBAAkB,CAAC;EACjF;MAEW,sBAAsB,GAAG,cAAc,CAAC,8BAA8B,EAAE;AAE/E,SAAU,2BAA2B,CACvC,OAAqC,EAAA;IAErC,OAAO,iBAAiB,CACpB,sBAAsB,EACtB,OAAO,EACP,8BAA8B,CACjC,CAAC;AACN;;ACkBM,MAAO,qBACT,SAAQ,kBAA0B,CAAA;IAiBlC,WAII,CAAA,OAAyB,EACE,GAAsB,EACd,GAAa,EACP,UAAwC,EAChC,OAA4B,EAE5D,aAAwC,EAAA;AAEzD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QANe,IA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AA4B;AAC/B,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-copy.js","sources":["../../../projects/kit/components/input-copy/input-copy.options.ts","../../../projects/kit/components/input-copy/input-copy.component.ts","../../../projects/kit/components/input-copy/input-copy.template.html","../../../projects/kit/components/input-copy/input-copy.directive.ts","../../../projects/kit/components/input-copy/input-copy.module.ts","../../../projects/kit/components/input-copy/taiga-ui-kit-components-input-copy.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {TuiContextWithImplicit, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCopyOptions {\n readonly icon: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL | TuiSizeS>>;\n readonly messageAppearance: string;\n readonly messageDirection: TuiHintDirection;\n readonly successMessage: PolymorpheusContent;\n}\n\nexport const TUI_INPUT_COPY_DEFAULT_OPTIONS: TuiInputCopyOptions = {\n successMessage: ``,\n messageDirection: `bottom-left`,\n messageAppearance: ``,\n icon: ({$implicit}) => ($implicit === `s` ? `tuiIconCopy` : `tuiIconCopyLarge`),\n};\n\nexport const TUI_INPUT_COPY_OPTIONS = tuiCreateToken(TUI_INPUT_COPY_DEFAULT_OPTIONS);\n\nexport function tuiInputCopyOptionsProvider(\n options: Partial<TuiInputCopyOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COPY_OPTIONS,\n options,\n TUI_INPUT_COPY_DEFAULT_OPTIONS,\n );\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n tuiPure,\n} from '@taiga-ui/cdk';\nimport {\n TUI_TEXTFIELD_SIZE,\n TuiPrimitiveTextfieldComponent,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldSizeDirective,\n} from '@taiga-ui/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\nimport {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {merge, Observable, of, Subject, timer} from 'rxjs';\nimport {map, startWith, switchMap} from 'rxjs/operators';\n\nimport {TUI_INPUT_COPY_OPTIONS, TuiInputCopyOptions} from './input-copy.options';\n\n@Component({\n selector: 'tui-input-copy',\n templateUrl: './input-copy.template.html',\n styleUrls: ['./input-copy.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n TUI_VALUE_ACCESSOR_PROVIDER,\n tuiAsFocusableItemAccessor(TuiInputCopyComponent),\n tuiAsControl(TuiInputCopyComponent),\n ],\n})\nexport class TuiInputCopyComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly copy$ = new Subject<void>();\n\n @Input()\n successMessage = this.options.successMessage;\n\n @Input()\n messageDirection = this.options.messageDirection;\n\n @Input()\n messageAppearance = this.options.messageAppearance;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(DOCUMENT) private readonly doc: Document,\n @Inject(TUI_COPY_TEXTS) private readonly copyTexts$: Observable<[string, string]>,\n @Inject(TUI_INPUT_COPY_OPTIONS) private readonly options: TuiInputCopyOptions,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n ) {\n super(control, cdr);\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldSize.size;\n }\n\n @tuiPure\n get hintText$(): Observable<PolymorpheusContent> {\n return this.copyTexts$.pipe(\n switchMap(texts =>\n this.copy$.pipe(\n switchMap(() =>\n merge(\n of(this.successMessage || texts[1]),\n timer(3000).pipe(map(() => texts[0])),\n ),\n ),\n startWith(texts[0]),\n ),\n ),\n );\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.computedDisabled || !this.textfield\n ? null\n : this.textfield.nativeFocusableElement;\n }\n\n get focused(): boolean {\n return !!this.textfield?.focused;\n }\n\n get icon(): TuiInputCopyOptions['icon'] {\n return this.options.icon;\n }\n\n onValueChange(value: string): void {\n this.value = value;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n copy(): void {\n if (!this.textfield?.nativeFocusableElement) {\n return;\n }\n\n this.textfield.nativeFocusableElement.select();\n this.doc.execCommand('copy');\n this.copy$.next();\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n}\n","<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></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-primitive-textfield>\n\n<ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"icon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n automation-id=\"tui-copy__icon\"\n tuiWrapper\n class=\"t-icon\"\n [disabled]=\"!value\"\n [src]=\"src\"\n [tuiHint]=\"hint\"\n [tuiHintAppearance]=\"messageAppearance\"\n [tuiHintDirection]=\"messageDirection\"\n (click)=\"copy()\"\n ></tui-svg>\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","import {Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\n\n@Directive({\n selector: 'tui-input-copy',\n providers: [tuiAsTextfieldHost(TuiInputCopyDirective)],\n})\nexport class TuiInputCopyDirective extends AbstractTuiTextfieldHost<TuiInputCopyComponent> {\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiAlertModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiInputCopyComponent} from './input-copy.component';\nimport {TuiInputCopyDirective} from './input-copy.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n PolymorpheusModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiHintModule,\n TuiPrimitiveTextfieldModule,\n TuiAlertModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputCopyComponent, TuiInputCopyDirective],\n exports: [TuiInputCopyComponent, TuiInputCopyDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCopyModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAYa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,cAAc,EAAE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AAE,qBAAqB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEpE,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAblB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,kBAAkB;YAClB,gBAAgB;YAChB,YAAY;YACZ,aAAa;YACb,2BAA2B;YAC3B,cAAc;YACd,4BAA4B;AAC/B,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAd9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;wBAClB,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb,2BAA2B;wBAC3B,cAAc;wBACd,4BAA4B;AAC/B,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AACjF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
|
@@ -14,6 +14,7 @@ import { CommonModule } from '@angular/common';
|
|
|
14
14
|
import * as i5 from 'rxjs';
|
|
15
15
|
import { TuiValueAccessorModule } from '@taiga-ui/kit/directives';
|
|
16
16
|
|
|
17
|
+
/** Default values for the input count options. */
|
|
17
18
|
const TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
|
|
18
19
|
icons: {
|
|
19
20
|
up: `tuiIconPlus`,
|
|
@@ -26,11 +27,17 @@ const TUI_INPUT_COUNT_DEFAULT_OPTIONS = {
|
|
|
26
27
|
step: 1,
|
|
27
28
|
postfix: ``,
|
|
28
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Default parameters for input count component
|
|
32
|
+
*/
|
|
29
33
|
const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);
|
|
30
34
|
function tuiInputCountOptionsProvider(options) {
|
|
31
35
|
return tuiProvideOptions(TUI_INPUT_COUNT_OPTIONS, options, TUI_INPUT_COUNT_DEFAULT_OPTIONS);
|
|
32
36
|
}
|
|
33
37
|
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use {@link TuiInputNumberComponent} with [step] instead
|
|
40
|
+
*/
|
|
34
41
|
class TuiInputCountComponent extends AbstractTuiNullableControl {
|
|
35
42
|
constructor(control, cdr, textfieldController, minusTexts$, isMobile, options, numberFormat) {
|
|
36
43
|
super(control, cdr);
|
|
@@ -43,7 +50,9 @@ class TuiInputCountComponent extends AbstractTuiNullableControl {
|
|
|
43
50
|
this.min = this.options.min;
|
|
44
51
|
this.max = this.options.max;
|
|
45
52
|
this.hideButtons = this.options.hideButtons;
|
|
53
|
+
/** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */
|
|
46
54
|
this.prefix = '';
|
|
55
|
+
/** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */
|
|
47
56
|
this.postfix = this.options.postfix;
|
|
48
57
|
}
|
|
49
58
|
get computedMin() {
|
|
@@ -92,9 +101,14 @@ class TuiInputCountComponent extends AbstractTuiNullableControl {
|
|
|
92
101
|
onFocused(focused) {
|
|
93
102
|
this.updateFocused(focused);
|
|
94
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated
|
|
106
|
+
* TODO: drop in v4.0 as unused method
|
|
107
|
+
*/
|
|
95
108
|
onInputNumberChange(value) {
|
|
96
109
|
this.value = value;
|
|
97
110
|
}
|
|
111
|
+
/** @deprecated */
|
|
98
112
|
onValueChange(value) {
|
|
99
113
|
this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);
|
|
100
114
|
}
|
|
@@ -225,6 +239,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
225
239
|
}]
|
|
226
240
|
}] });
|
|
227
241
|
|
|
242
|
+
/**
|
|
243
|
+
* @deprecated use {@link TuiInputNumberComponent} with [step] instead
|
|
244
|
+
*/
|
|
228
245
|
class TuiInputCountModule {
|
|
229
246
|
}
|
|
230
247
|
TuiInputCountModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputCountModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -261,5 +278,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
261
278
|
}]
|
|
262
279
|
}] });
|
|
263
280
|
|
|
281
|
+
/**
|
|
282
|
+
* Generated bundle index. Do not edit.
|
|
283
|
+
*/
|
|
284
|
+
|
|
264
285
|
export { TUI_INPUT_COUNT_DEFAULT_OPTIONS, TUI_INPUT_COUNT_OPTIONS, TuiInputCountComponent, TuiInputCountDirective, TuiInputCountModule, tuiInputCountOptionsProvider };
|
|
265
286
|
//# sourceMappingURL=taiga-ui-kit-components-input-count.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-count.js","sources":["../../../projects/kit/components/input-count/input-count.options.ts","../../../projects/kit/components/input-count/input-count.component.ts","../../../projects/kit/components/input-count/input-count.template.html","../../../projects/kit/components/input-count/input-count.directive.ts","../../../projects/kit/components/input-count/input-count.module.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCountOptions {\n readonly appearance: string;\n readonly hideButtons: boolean;\n readonly icons: Readonly<{\n down: PolymorpheusContent<Record<string, unknown>>;\n up: PolymorpheusContent<Record<string, unknown>>;\n }>;\n readonly max: number;\n readonly min: number;\n readonly postfix: string;\n readonly step: number;\n}\n\n/** Default values for the input count options. */\nexport const TUI_INPUT_COUNT_DEFAULT_OPTIONS: TuiInputCountOptions = {\n icons: {\n up: `tuiIconPlus`,\n down: `tuiIconMinus`,\n },\n appearance: `textfield`,\n hideButtons: false,\n min: 0,\n max: Number.MAX_SAFE_INTEGER,\n step: 1,\n postfix: ``,\n};\n\n/**\n * Default parameters for input count component\n */\nexport const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);\n\nexport function tuiInputCountOptionsProvider(\n options: Partial<TuiInputCountOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COUNT_OPTIONS,\n options,\n TUI_INPUT_COUNT_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoParseNumber} from '@maskito/kit';\nimport {\n AbstractTuiNullableControl,\n TUI_IS_MOBILE,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiClamp,\n TuiFocusableElementAccessor,\n tuiIsNativeFocused,\n tuiIsPresent,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiNumberFormatSettings,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number';\nimport {TUI_PLUS_MINUS_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_INPUT_COUNT_OPTIONS, TuiInputCountOptions} from './input-count.options';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@Component({\n selector: 'tui-input-count',\n templateUrl: './input-count.template.html',\n styleUrls: ['./input-count.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCountComponent),\n tuiAsControl(TuiInputCountComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputCountComponent\n extends AbstractTuiNullableControl<number>\n implements TuiWithOptionalMinMax<number>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputNumberComponent)\n private readonly inputNumber?: TuiInputNumberComponent;\n\n @Input()\n step = this.options.step;\n\n @Input()\n min: number | null = this.options.min;\n\n @Input()\n max: number | null = this.options.max;\n\n @Input()\n hideButtons = this.options.hideButtons;\n\n /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n prefix = '';\n\n /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n postfix = this.options.postfix;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly textfieldController: TuiTextfieldController,\n @Inject(TUI_PLUS_MINUS_TEXTS)\n readonly minusTexts$: Observable<[string, string]>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_INPUT_COUNT_OPTIONS)\n readonly options: TuiInputCountOptions,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: TuiNumberFormatSettings,\n ) {\n super(control, cdr);\n }\n\n get computedMin(): number {\n return this.min ?? this.options.min;\n }\n\n get computedMax(): number {\n return this.max ?? this.options.max;\n }\n\n @HostBinding('class._hide-buttons')\n get buttonsHidden(): boolean {\n return this.hideButtons || this.textfieldController.appearance === 'table';\n }\n\n get iconUp(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.up;\n }\n\n get iconDown(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.down;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.inputNumber || this.computedDisabled\n ? null\n : this.inputNumber.nativeFocusableElement;\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldController.size;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get minusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value <= this.computedMin)\n );\n }\n\n get plusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value >= this.computedMax)\n );\n }\n\n onButtonMouseDown(event: MouseEvent, disabled: boolean = false): void {\n if (disabled || !this.nativeFocusableElement || this.isMobile) {\n return;\n }\n\n event.preventDefault();\n this.nativeFocusableElement.focus();\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * @deprecated\n * TODO: drop in v4.0 as unused method\n */\n onInputNumberChange(value: number | null): void {\n this.value = value;\n }\n\n /** @deprecated */\n onValueChange(value: string): void {\n this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);\n }\n\n decreaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) - this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n increaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) + this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n onKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n this.increaseValue();\n event.preventDefault();\n break;\n case 'ArrowDown':\n case 'Down':\n this.decreaseValue();\n event.preventDefault();\n break;\n default:\n break;\n }\n }\n\n private safeUpdateValue(newValue: number): void {\n this.value = tuiClamp(newValue, this.computedMin, this.computedMax);\n }\n}\n","<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCountComponent} from './input-count.component';\n\n@Directive({\n selector: 'tui-input-count',\n providers: [tuiAsTextfieldHost(TuiInputCountDirective)],\n})\nexport class TuiInputCountDirective\n extends AbstractTuiTextfieldHost<TuiInputCountComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n if (this.host.nativeFocusableElement) {\n const {nativeFocusableElement} = this.host;\n\n nativeFocusableElement.autocomplete = 'off';\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.maxLength =\n nativeFocusableElement.maxLength > -1\n ? nativeFocusableElement.maxLength\n : 18;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiInputNumberModule} from '@taiga-ui/kit/components/input-number';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\n\nimport {TuiInputCountComponent} from './input-count.component';\nimport {TuiInputCountDirective} from './input-count.directive';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiInputNumberModule,\n ],\n declarations: [TuiInputCountComponent, TuiInputCountDirective],\n exports: [TuiInputCountComponent, TuiInputCountDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCountModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAkBa,MAAA,+BAA+B,GAAyB;AACjE,IAAA,KAAK,EAAE;AACH,QAAA,EAAE,EAAE,CAAa,WAAA,CAAA;AACjB,QAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,KAAA;AACD,IAAA,UAAU,EAAE,CAAW,SAAA,CAAA;AACvB,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,OAAO,EAAE,CAAE,CAAA;EACb;MAKW,uBAAuB,G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AA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAHb,YAAA,EAAA,CAAA,sBAAsB,EAAE,sBAAsB,aARzD,YAAY;QACZ,WAAW;QACX,eAAe;QACf,2BAA2B;QAC3B,4BAA4B;QAC5B,sBAAsB;AACtB,QAAA,oBAAoB,CAGd,EAAA,OAAA,EAAA,CAAA,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtE,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,EAZnB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,WAAW;YACX,eAAe;YACf,2BAA2B;YAC3B,4BAA4B;YAC5B,sBAAsB;YACtB,oBAAoB;AACvB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,oBAAoB;AACvB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,CAAC;AACnF,iBAAA,CAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-count.js","sources":["../../../projects/kit/components/input-count/input-count.options.ts","../../../projects/kit/components/input-count/input-count.component.ts","../../../projects/kit/components/input-count/input-count.template.html","../../../projects/kit/components/input-count/input-count.directive.ts","../../../projects/kit/components/input-count/input-count.module.ts","../../../projects/kit/components/input-count/taiga-ui-kit-components-input-count.ts"],"sourcesContent":["import {Provider} from '@angular/core';\nimport {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface TuiInputCountOptions {\n readonly appearance: string;\n readonly hideButtons: boolean;\n readonly icons: Readonly<{\n down: PolymorpheusContent<Record<string, unknown>>;\n up: PolymorpheusContent<Record<string, unknown>>;\n }>;\n readonly max: number;\n readonly min: number;\n readonly postfix: string;\n readonly step: number;\n}\n\n/** Default values for the input count options. */\nexport const TUI_INPUT_COUNT_DEFAULT_OPTIONS: TuiInputCountOptions = {\n icons: {\n up: `tuiIconPlus`,\n down: `tuiIconMinus`,\n },\n appearance: `textfield`,\n hideButtons: false,\n min: 0,\n max: Number.MAX_SAFE_INTEGER,\n step: 1,\n postfix: ``,\n};\n\n/**\n * Default parameters for input count component\n */\nexport const TUI_INPUT_COUNT_OPTIONS = tuiCreateToken(TUI_INPUT_COUNT_DEFAULT_OPTIONS);\n\nexport function tuiInputCountOptionsProvider(\n options: Partial<TuiInputCountOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_INPUT_COUNT_OPTIONS,\n options,\n TUI_INPUT_COUNT_DEFAULT_OPTIONS,\n );\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {maskitoParseNumber} from '@maskito/kit';\nimport {\n AbstractTuiNullableControl,\n TUI_IS_MOBILE,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiClamp,\n TuiFocusableElementAccessor,\n tuiIsNativeFocused,\n tuiIsPresent,\n} from '@taiga-ui/cdk';\nimport {\n TEXTFIELD_CONTROLLER_PROVIDER,\n TUI_NUMBER_FORMAT,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiNumberFormatSettings,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number';\nimport {TUI_PLUS_MINUS_TEXTS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TUI_INPUT_COUNT_OPTIONS, TuiInputCountOptions} from './input-count.options';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@Component({\n selector: 'tui-input-count',\n templateUrl: './input-count.template.html',\n styleUrls: ['./input-count.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiInputCountComponent),\n tuiAsControl(TuiInputCountComponent),\n TEXTFIELD_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputCountComponent\n extends AbstractTuiNullableControl<number>\n implements TuiWithOptionalMinMax<number>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiInputNumberComponent)\n private readonly inputNumber?: TuiInputNumberComponent;\n\n @Input()\n step = this.options.step;\n\n @Input()\n min: number | null = this.options.min;\n\n @Input()\n max: number | null = this.options.max;\n\n @Input()\n hideButtons = this.options.hideButtons;\n\n /** @deprecated use `tuiTextfieldPrefix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n prefix = '';\n\n /** @deprecated use `tuiTextfieldPostfix` from {@link TuiTextfieldControllerModule} instead */\n @Input()\n postfix = this.options.postfix;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n private readonly textfieldController: TuiTextfieldController,\n @Inject(TUI_PLUS_MINUS_TEXTS)\n readonly minusTexts$: Observable<[string, string]>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TUI_INPUT_COUNT_OPTIONS)\n readonly options: TuiInputCountOptions,\n @Inject(TUI_NUMBER_FORMAT)\n private readonly numberFormat: TuiNumberFormatSettings,\n ) {\n super(control, cdr);\n }\n\n get computedMin(): number {\n return this.min ?? this.options.min;\n }\n\n get computedMax(): number {\n return this.max ?? this.options.max;\n }\n\n @HostBinding('class._hide-buttons')\n get buttonsHidden(): boolean {\n return this.hideButtons || this.textfieldController.appearance === 'table';\n }\n\n get iconUp(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.up;\n }\n\n get iconDown(): PolymorpheusContent<Record<string, unknown>> {\n return this.options.icons.down;\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return !this.inputNumber || this.computedDisabled\n ? null\n : this.inputNumber.nativeFocusableElement;\n }\n\n @HostBinding('attr.data-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.textfieldController.size;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get minusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value <= this.computedMin)\n );\n }\n\n get plusButtonDisabled(): boolean {\n return (\n !this.interactive ||\n (tuiIsPresent(this.value) && this.value >= this.computedMax)\n );\n }\n\n onButtonMouseDown(event: MouseEvent, disabled: boolean = false): void {\n if (disabled || !this.nativeFocusableElement || this.isMobile) {\n return;\n }\n\n event.preventDefault();\n this.nativeFocusableElement.focus();\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n /**\n * @deprecated\n * TODO: drop in v4.0 as unused method\n */\n onInputNumberChange(value: number | null): void {\n this.value = value;\n }\n\n /** @deprecated */\n onValueChange(value: string): void {\n this.value = maskitoParseNumber(value, this.numberFormat.decimalSeparator);\n }\n\n decreaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) - this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n increaseValue(): void {\n if (this.readOnly) {\n return;\n }\n\n const newValue = (this.value || 0) + this.step;\n\n this.safeUpdateValue(newValue);\n }\n\n onKeydown(event: KeyboardEvent): void {\n switch (event.key) {\n case 'ArrowUp':\n case 'Up':\n this.increaseValue();\n event.preventDefault();\n break;\n case 'ArrowDown':\n case 'Down':\n this.decreaseValue();\n event.preventDefault();\n break;\n default:\n break;\n }\n }\n\n private safeUpdateValue(newValue: number): void {\n this.value = tuiClamp(newValue, this.computedMin, this.computedMax);\n }\n}\n","<tui-input-number\n decimal=\"never\"\n class=\"t-textfield\"\n [disabled]=\"computedDisabled\"\n [focusable]=\"focusable\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [nativeId]=\"nativeId\"\n [postfix]=\"postfix\"\n [prefix]=\"prefix\"\n [pseudoActive]=\"pseudoActive\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"pseudoInvalid\"\n [readOnly]=\"readOnly\"\n [(ngModel)]=\"value\"\n (focusedChange)=\"onFocused($event)\"\n (keydown)=\"onKeydown($event)\"\n>\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n</tui-input-number>\n<ng-container *ngIf=\"!buttonsHidden\">\n <ng-container *ngIf=\"minusTexts$ | async as texts\">\n <section class=\"t-buttons\">\n <button\n automation-id=\"tui-input-count__plus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_plus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"plusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconUp\"\n [title]=\"texts[0]\"\n (click)=\"increaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, plusButtonDisabled)\"\n ></button>\n <button\n automation-id=\"tui-input-count__minus-button\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-button t-button_minus\"\n [appearance]=\"options.appearance\"\n [disabled]=\"minusButtonDisabled\"\n [focusable]=\"false\"\n [icon]=\"iconDown\"\n [title]=\"texts[1]\"\n (click)=\"decreaseValue()\"\n (mousedown)=\"onButtonMouseDown($event, minusButtonDisabled)\"\n ></button>\n </section>\n </ng-container>\n</ng-container>\n","import {AfterViewInit, Directive} from '@angular/core';\nimport {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core';\n\nimport {TuiInputCountComponent} from './input-count.component';\n\n@Directive({\n selector: 'tui-input-count',\n providers: [tuiAsTextfieldHost(TuiInputCountDirective)],\n})\nexport class TuiInputCountDirective\n extends AbstractTuiTextfieldHost<TuiInputCountComponent>\n implements AfterViewInit\n{\n onValueChange(value: string): void {\n this.host.onValueChange(value);\n }\n\n ngAfterViewInit(): void {\n if (this.host.nativeFocusableElement) {\n const {nativeFocusableElement} = this.host;\n\n nativeFocusableElement.autocomplete = 'off';\n nativeFocusableElement.inputMode = 'numeric';\n nativeFocusableElement.maxLength =\n nativeFocusableElement.maxLength > -1\n ? nativeFocusableElement.maxLength\n : 18;\n }\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldComponent,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiInputNumberModule} from '@taiga-ui/kit/components/input-number';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\n\nimport {TuiInputCountComponent} from './input-count.component';\nimport {TuiInputCountDirective} from './input-count.directive';\n\n/**\n * @deprecated use {@link TuiInputNumberComponent} with [step] instead\n */\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiButtonModule,\n TuiPrimitiveTextfieldModule,\n TuiTextfieldControllerModule,\n TuiValueAccessorModule,\n TuiInputNumberModule,\n ],\n declarations: [TuiInputCountComponent, TuiInputCountDirective],\n exports: [TuiInputCountComponent, TuiInputCountDirective, TuiTextfieldComponent],\n})\nexport class TuiInputCountModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA;AACa,MAAA,+BAA+B,GAAyB;AACjE,IAAA,KAAK,EAAE;AACH,QAAA,EAAE,EAAE,CAAa,WAAA,CAAA;AACjB,QAAA,IAAI,EAAE,CAAc,YAAA,CAAA;AACvB,KAAA;AACD,IAAA,UAAU,EAAE,CAAW,SAAA,CAAA;AACvB,IAAA,WAAW,EAAE,KAAK;AAClB,IAAA,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,MAAM,CAAC,gBAAgB;AAC5B,IAAA,IAAI,EAAE,CAAC;AACP,IAAA,OAAO,EAAE,CAAE,CAAA;EACb;AAEF;;AAEG;MACU,uBAAuB,GAAG,cAAc,CAAC,+BAA+B,EAAE;AAEjF,SAAU,4BAA4B,CACxC,OAAsC,EAAA;IAEtC,OAAO,iBAAiB,CACpB,uBAAuB,EACvB,OAAO,EACP,+BAA+B,CAClC,CAAC;AACN;;ACJA;;AAEG;AAYG,MAAO,sBACT,SAAQ,0BAAkC,CAAA;AA0B1C,IAAA,WAAA,CAII,OAAyB,EACE,GAAsB,EAEhC,mBAA2C,EAEnD,WAAyC,EACV,QAAiB,EAEhD,OAA6B,EAErB,YAAqC,EAAA;AAEtD,QAAA,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QATH,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAwB;QAEnD,IAAW,CAAA,WAAA,GAAX,WAAW,CAA8B;QACV,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAS;QAEhD,IAAO,CAAA,OAAA,GAAP,OAAO,CAAsB;QAErB,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAyB;AAjC1D,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;AAGzB,QAAA,IAAA,CAAA,GAAG,GAAkB,IAAI,CAAC,OAAO,CAAC,GA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ACvB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,eAAe;wBACf,2BAA2B;wBAC3B,4BAA4B;wBAC5B,sBAAsB;wBACtB,oBAAoB;AACvB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;AAC9D,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,CAAC;AACnF,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, Injector, Component, ChangeDetectionStrategy, Optional, Self, Inject, ViewChild, Input, HostBinding, HostListener, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 from '@angular/forms';
|
|
4
|
+
import { NgControl, FormsModule } from '@angular/forms';
|
|
5
|
+
import { maskitoDateOptionsGenerator } from '@maskito/kit';
|
|
6
|
+
import * as i6 from '@taiga-ui/cdk';
|
|
7
|
+
import { AbstractTuiMultipleControl, ALWAYS_FALSE_HANDLER, TuiMonth, changeDateSeparator, tuiIsString, TuiDay, tuiDateClamp, TUI_IS_MOBILE, TUI_DATE_FORMAT, TUI_DATE_SEPARATOR, tuiAsFocusableItemAccessor, tuiAsControl, TuiMapperPipeModule } from '@taiga-ui/cdk';
|
|
8
|
+
import * as i1 from '@taiga-ui/core';
|
|
9
|
+
import { TUI_DEFAULT_MARKER_HANDLER, TuiDialogService, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, TuiWrapperModule, TuiCalendarModule, TuiSvgModule, TuiLinkModule, TuiHostedDropdownModule, TuiTextfieldControllerModule, TuiPrimitiveTextfieldModule } from '@taiga-ui/core';
|
|
10
|
+
import * as i2 from '@taiga-ui/kit/components/input-tag';
|
|
11
|
+
import { TuiInputTagComponent, TuiInputTagModule } from '@taiga-ui/kit/components/input-tag';
|
|
12
|
+
import { TUI_MOBILE_CALENDAR, TUI_DATE_TEXTS, TUI_DATE_VALUE_TRANSFORMER, TUI_INPUT_DATE_OPTIONS, TUI_DONE_WORD, tuiDateStreamWithTransformer } from '@taiga-ui/kit/tokens';
|
|
13
|
+
import { tuiImmutableUpdateInputDateMulti } from '@taiga-ui/kit/utils';
|
|
14
|
+
import * as i5 from '@tinkoff/ng-polymorpheus';
|
|
15
|
+
import { PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
16
|
+
import { map, takeUntil } from 'rxjs/operators';
|
|
17
|
+
import * as i3 from '@maskito/angular';
|
|
18
|
+
import { MaskitoModule } from '@maskito/angular';
|
|
19
|
+
import * as i7 from '@angular/common';
|
|
20
|
+
import { CommonModule } from '@angular/common';
|
|
21
|
+
import * as i8 from 'rxjs';
|
|
22
|
+
|
|
23
|
+
class TuiInputDateMultiComponent extends AbstractTuiMultipleControl {
|
|
24
|
+
constructor(control, cdr, injector, isMobile, dialogs, mobileCalendar, dateFormat, dateSeparator, dateTexts$, valueTransformer, options, textfieldSize, doneWord$) {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
super(control, cdr, valueTransformer);
|
|
27
|
+
this.injector = injector;
|
|
28
|
+
this.isMobile = isMobile;
|
|
29
|
+
this.dialogs = dialogs;
|
|
30
|
+
this.mobileCalendar = mobileCalendar;
|
|
31
|
+
this.dateFormat = dateFormat;
|
|
32
|
+
this.dateSeparator = dateSeparator;
|
|
33
|
+
this.dateTexts$ = dateTexts$;
|
|
34
|
+
this.valueTransformer = valueTransformer;
|
|
35
|
+
this.options = options;
|
|
36
|
+
this.textfieldSize = textfieldSize;
|
|
37
|
+
this.doneWord$ = doneWord$;
|
|
38
|
+
this.month = null;
|
|
39
|
+
this.min = this.options.min;
|
|
40
|
+
this.max = this.options.max;
|
|
41
|
+
this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
|
|
42
|
+
this.markerHandler = TUI_DEFAULT_MARKER_HANDLER;
|
|
43
|
+
this.defaultActiveYearMonth = TuiMonth.currentLocal();
|
|
44
|
+
this.expandable = false;
|
|
45
|
+
this.inputHidden = false;
|
|
46
|
+
this.editable = true;
|
|
47
|
+
this.search = '';
|
|
48
|
+
this.placeholder = '';
|
|
49
|
+
this.rows = Infinity;
|
|
50
|
+
this.maskitoOptions = maskitoDateOptionsGenerator({
|
|
51
|
+
mode: 'dd/mm/yyyy',
|
|
52
|
+
separator: '.',
|
|
53
|
+
min: (_a = this.min) === null || _a === void 0 ? void 0 : _a.toLocalNativeDate(),
|
|
54
|
+
max: (_b = this.max) === null || _b === void 0 ? void 0 : _b.toLocalNativeDate(),
|
|
55
|
+
});
|
|
56
|
+
this.open = false;
|
|
57
|
+
this.filler$ = this.dateTexts$.pipe(map(dateTexts => changeDateSeparator(dateTexts[this.dateFormat], this.dateSeparator)));
|
|
58
|
+
this.tagValidator = (tag) => {
|
|
59
|
+
var _a, _b, _c;
|
|
60
|
+
const { year, month, day } = tuiIsString(tag)
|
|
61
|
+
? TuiDay.parseRawDateString(tag)
|
|
62
|
+
: tag;
|
|
63
|
+
const date = new TuiDay(year, month, day);
|
|
64
|
+
return ((_c = (TuiDay.isValidDay(year, month, day) &&
|
|
65
|
+
((_a = this.min) === null || _a === void 0 ? void 0 : _a.dayBefore(date)) &&
|
|
66
|
+
((_b = this.max) === null || _b === void 0 ? void 0 : _b.dayAfter(date)))) !== null && _c !== void 0 ? _c : false);
|
|
67
|
+
};
|
|
68
|
+
this.disabledItemHandlerWrapper = handler => stringifiable => tuiIsString(stringifiable) || handler(stringifiable.item);
|
|
69
|
+
}
|
|
70
|
+
onClick() {
|
|
71
|
+
if (!this.isMobile) {
|
|
72
|
+
this.open = !this.open;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
get size() {
|
|
76
|
+
return this.textfieldSize.size;
|
|
77
|
+
}
|
|
78
|
+
get nativeDropdownMode() {
|
|
79
|
+
return this.isMobile && !this.editable;
|
|
80
|
+
}
|
|
81
|
+
get computedMin() {
|
|
82
|
+
var _a;
|
|
83
|
+
return (_a = this.min) !== null && _a !== void 0 ? _a : this.options.min;
|
|
84
|
+
}
|
|
85
|
+
get computedMax() {
|
|
86
|
+
var _a;
|
|
87
|
+
return (_a = this.max) !== null && _a !== void 0 ? _a : this.options.max;
|
|
88
|
+
}
|
|
89
|
+
get nativeFocusableElement() {
|
|
90
|
+
var _a;
|
|
91
|
+
return ((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.nativeFocusableElement) || null;
|
|
92
|
+
}
|
|
93
|
+
get focused() {
|
|
94
|
+
var _a;
|
|
95
|
+
return !!((_a = this.textfield) === null || _a === void 0 ? void 0 : _a.focused);
|
|
96
|
+
}
|
|
97
|
+
get computedMobile() {
|
|
98
|
+
return this.isMobile && !!this.mobileCalendar;
|
|
99
|
+
}
|
|
100
|
+
get calendarIcon() {
|
|
101
|
+
return this.options.icon;
|
|
102
|
+
}
|
|
103
|
+
get computedActiveYearMonth() {
|
|
104
|
+
return (this.month ||
|
|
105
|
+
this.value[this.value.length - 1] ||
|
|
106
|
+
tuiDateClamp(this.defaultActiveYearMonth, this.computedMin, this.computedMax));
|
|
107
|
+
}
|
|
108
|
+
get canOpen() {
|
|
109
|
+
return this.interactive && !this.computedMobile;
|
|
110
|
+
}
|
|
111
|
+
onIconClick() {
|
|
112
|
+
if (!this.computedMobile || !this.mobileCalendar) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
this.dialogs
|
|
116
|
+
.open(new PolymorpheusComponent(this.mobileCalendar, this.injector), {
|
|
117
|
+
size: 'fullscreen',
|
|
118
|
+
closeable: false,
|
|
119
|
+
data: {
|
|
120
|
+
single: false,
|
|
121
|
+
min: this.min,
|
|
122
|
+
max: this.max,
|
|
123
|
+
disabledItemHandler: this.disabledItemHandler,
|
|
124
|
+
},
|
|
125
|
+
})
|
|
126
|
+
.pipe(takeUntil(this.destroy$))
|
|
127
|
+
.subscribe(value => {
|
|
128
|
+
this.value = value;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
onEnter(search) {
|
|
132
|
+
if (!this.tagValidator(search)) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.value = tuiImmutableUpdateInputDateMulti(this.value, TuiDay.normalizeParse(search));
|
|
136
|
+
if (this.inputTag) {
|
|
137
|
+
this.inputTag.search = '';
|
|
138
|
+
}
|
|
139
|
+
this.done();
|
|
140
|
+
}
|
|
141
|
+
onValueChange(value) {
|
|
142
|
+
var _a;
|
|
143
|
+
(_a = this.control) === null || _a === void 0 ? void 0 : _a.updateValueAndValidity({ emitEvent: false });
|
|
144
|
+
if (!value.length) {
|
|
145
|
+
this.onOpenChange(true);
|
|
146
|
+
}
|
|
147
|
+
this.value = value;
|
|
148
|
+
}
|
|
149
|
+
onDayClick(value) {
|
|
150
|
+
this.value = tuiImmutableUpdateInputDateMulti(this.value, value);
|
|
151
|
+
}
|
|
152
|
+
done() {
|
|
153
|
+
this.open = false;
|
|
154
|
+
}
|
|
155
|
+
onMonthChange(month) {
|
|
156
|
+
this.month = month;
|
|
157
|
+
}
|
|
158
|
+
onOpenChange(open) {
|
|
159
|
+
this.open = open;
|
|
160
|
+
}
|
|
161
|
+
onFocused(focused) {
|
|
162
|
+
this.updateFocused(focused);
|
|
163
|
+
}
|
|
164
|
+
setDisabledState() {
|
|
165
|
+
super.setDisabledState();
|
|
166
|
+
this.open = false;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
TuiInputDateMultiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiComponent, deps: [{ token: NgControl, optional: true, self: true }, { token: ChangeDetectorRef }, { token: Injector }, { token: TUI_IS_MOBILE }, { token: TuiDialogService }, { token: TUI_MOBILE_CALENDAR, optional: true }, { token: TUI_DATE_FORMAT }, { token: TUI_DATE_SEPARATOR }, { token: TUI_DATE_TEXTS }, { token: TUI_DATE_VALUE_TRANSFORMER, optional: true }, { token: TUI_INPUT_DATE_OPTIONS }, { token: TUI_TEXTFIELD_SIZE }, { token: TUI_DONE_WORD }], target: i0.ɵɵFactoryTarget.Component });
|
|
170
|
+
TuiInputDateMultiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiInputDateMultiComponent, selector: "tui-input-date[multiple]", inputs: { min: "min", max: "max", disabledItemHandler: "disabledItemHandler", markerHandler: "markerHandler", defaultActiveYearMonth: "defaultActiveYearMonth", expandable: "expandable", inputHidden: "inputHidden", editable: "editable", search: "search", placeholder: "placeholder", rows: "rows", tagValidator: "tagValidator" }, host: { listeners: { "click": "onClick()" }, properties: { "class._editable": "this.editable", "attr.data-size": "this.size" } }, providers: [
|
|
171
|
+
tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
|
|
172
|
+
tuiAsControl(TuiInputDateMultiComponent),
|
|
173
|
+
tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
|
|
174
|
+
], viewQueries: [{ propertyName: "textfield", first: true, predicate: TuiPrimitiveTextfieldComponent, descendants: true }, { propertyName: "inputTag", first: true, predicate: TuiInputTagComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<tui-hosted-dropdown\n class=\"t-hosted\"\n [canOpen]=\"canOpen\"\n [content]=\"dropdown\"\n [open]=\"open && canOpen\"\n (openChange)=\"onOpenChange($event)\"\n>\n <tui-input-tag\n #inputTag\n class=\"t-input\"\n [disabled]=\"disabled\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerWrapper\"\n [editable]=\"editable\"\n [expandable]=\"expandable\"\n [inputHidden]=\"inputHidden\"\n [maskito]=\"maskitoOptions\"\n [nativeId]=\"nativeId\"\n [ngModel]=\"value\"\n [placeholder]=\"placeholder\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoInvalid]=\"computedInvalid\"\n [readOnly]=\"readOnly\"\n [removable]=\"!nativeDropdownMode\"\n [rows]=\"rows\"\n [tagValidator]=\"tagValidator\"\n [tuiTextfieldFiller]=\"(filler$ | async) || ''\"\n [tuiTextfieldIcon]=\"calendarIcon && iconContent\"\n (keydown.enter)=\"onEnter(inputTag.search || '')\"\n (ngModelChange)=\"onValueChange($event)\"\n >\n <ng-content></ng-content>\n <ng-content\n ngProjectAs=\"input\"\n select=\"input\"\n ></ng-content>\n </tui-input-tag>\n\n <ng-template #iconContent>\n <tui-svg\n *polymorpheusOutlet=\"calendarIcon as src; context: {$implicit: size}\"\n appearance=\"icon\"\n tuiWrapper\n [class.t-icon]=\"!computedDisabled\"\n [src]=\"src\"\n (click)=\"onIconClick()\"\n ></tui-svg>\n </ng-template>\n\n <ng-template #dropdown>\n <tui-calendar\n [disabledItemHandler]=\"disabledItemHandler\"\n [markerHandler]=\"markerHandler\"\n [max]=\"computedMax\"\n [min]=\"computedMin\"\n [month]=\"computedActiveYearMonth\"\n [value]=\"value\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onMonthChange($event)\"\n (mousedown.silent.prevent)=\"(0)\"\n ></tui-calendar>\n <div\n class=\"t-button\"\n (mousedown.silent.prevent)=\"(0)\"\n >\n <button\n tuiLink\n type=\"button\"\n (click)=\"done()\"\n >\n {{ doneWord$ | async }}\n </button>\n </div>\n </ng-template>\n</tui-hosted-dropdown>\n", styles: [":host{display:block;border-radius:var(--tui-radius-m);text-align:left}.t-hosted{display:block;border-radius:inherit}.t-textfield{border-radius:inherit;text-align:inherit}.t-icon{pointer-events:auto}.t-button{display:flex;height:2.75rem;justify-content:center;box-shadow:inset 0 1px var(--tui-base-03)}.t-button button{flex:1;text-align:center}.t-native-input{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;pointer-events:auto;font-size:2rem}\n"], components: [{ type: i1.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i2.TuiInputTagComponent, selector: "tui-input-tag", inputs: ["separator", "search", "editable", "tagValidator", "expandable", "rows", "inputHidden", "uniqueTags", "maxLength", "placeholder", "removable", "disabledItemHandler", "pseudoFocused"], outputs: ["searchChange"] }, { type: i1.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i1.TuiCalendarComponent, selector: "tui-calendar", inputs: ["month", "disabledItemHandler", "min", "max", "minViewedMonth", "maxViewedMonth", "hoveredItem", "showAdjacent", "markerHandler", "value"], outputs: ["dayClick", "monthChange", "hoveredItemChange"] }, { type: i1.TuiLinkComponent, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo", "icon", "iconAlign", "iconRotated", "mode"], exportAs: ["tuiLink"] }], directives: [{ type: i3.MaskitoDirective, selector: "[maskito]", inputs: ["maskito", "maskitoElement"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.TuiTextfieldFillerDirective, selector: "[tuiTextfieldFiller]", inputs: ["tuiTextfieldFiller"] }, { type: i1.TuiTextfieldIconDirective, selector: "[tuiTextfieldIcon]", inputs: ["tuiTextfieldIcon"] }, { type: i5.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: i1.TuiWrapperDirective, selector: "[tuiWrapper]", inputs: ["disabled", "readOnly", "hover", "active", "focus", "invalid", "appearance"] }], pipes: { "tuiMapper": i6.TuiMapperPipe, "async": i7.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiComponent, decorators: [{
|
|
176
|
+
type: Component,
|
|
177
|
+
args: [{
|
|
178
|
+
selector: 'tui-input-date[multiple]',
|
|
179
|
+
templateUrl: './input-date-multi.template.html',
|
|
180
|
+
styleUrls: ['../input-date/input-date.style.less'],
|
|
181
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
182
|
+
providers: [
|
|
183
|
+
tuiAsFocusableItemAccessor(TuiInputDateMultiComponent),
|
|
184
|
+
tuiAsControl(TuiInputDateMultiComponent),
|
|
185
|
+
tuiDateStreamWithTransformer(TUI_DATE_VALUE_TRANSFORMER),
|
|
186
|
+
],
|
|
187
|
+
}]
|
|
188
|
+
}], ctorParameters: function () { return [{ type: i4.NgControl, decorators: [{
|
|
189
|
+
type: Optional
|
|
190
|
+
}, {
|
|
191
|
+
type: Self
|
|
192
|
+
}, {
|
|
193
|
+
type: Inject,
|
|
194
|
+
args: [NgControl]
|
|
195
|
+
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
196
|
+
type: Inject,
|
|
197
|
+
args: [ChangeDetectorRef]
|
|
198
|
+
}] }, { type: i0.Injector, decorators: [{
|
|
199
|
+
type: Inject,
|
|
200
|
+
args: [Injector]
|
|
201
|
+
}] }, { type: undefined, decorators: [{
|
|
202
|
+
type: Inject,
|
|
203
|
+
args: [TUI_IS_MOBILE]
|
|
204
|
+
}] }, { type: i1.TuiDialogService, decorators: [{
|
|
205
|
+
type: Inject,
|
|
206
|
+
args: [TuiDialogService]
|
|
207
|
+
}] }, { type: i0.Type, decorators: [{
|
|
208
|
+
type: Optional
|
|
209
|
+
}, {
|
|
210
|
+
type: Inject,
|
|
211
|
+
args: [TUI_MOBILE_CALENDAR]
|
|
212
|
+
}] }, { type: undefined, decorators: [{
|
|
213
|
+
type: Inject,
|
|
214
|
+
args: [TUI_DATE_FORMAT]
|
|
215
|
+
}] }, { type: undefined, decorators: [{
|
|
216
|
+
type: Inject,
|
|
217
|
+
args: [TUI_DATE_SEPARATOR]
|
|
218
|
+
}] }, { type: i8.Observable, decorators: [{
|
|
219
|
+
type: Inject,
|
|
220
|
+
args: [TUI_DATE_TEXTS]
|
|
221
|
+
}] }, { type: i6.AbstractTuiValueTransformer, decorators: [{
|
|
222
|
+
type: Optional
|
|
223
|
+
}, {
|
|
224
|
+
type: Inject,
|
|
225
|
+
args: [TUI_DATE_VALUE_TRANSFORMER]
|
|
226
|
+
}] }, { type: undefined, decorators: [{
|
|
227
|
+
type: Inject,
|
|
228
|
+
args: [TUI_INPUT_DATE_OPTIONS]
|
|
229
|
+
}] }, { type: i1.TuiTextfieldSizeDirective, decorators: [{
|
|
230
|
+
type: Inject,
|
|
231
|
+
args: [TUI_TEXTFIELD_SIZE]
|
|
232
|
+
}] }, { type: i8.Observable, decorators: [{
|
|
233
|
+
type: Inject,
|
|
234
|
+
args: [TUI_DONE_WORD]
|
|
235
|
+
}] }]; }, propDecorators: { textfield: [{
|
|
236
|
+
type: ViewChild,
|
|
237
|
+
args: [TuiPrimitiveTextfieldComponent]
|
|
238
|
+
}], inputTag: [{
|
|
239
|
+
type: ViewChild,
|
|
240
|
+
args: [TuiInputTagComponent]
|
|
241
|
+
}], min: [{
|
|
242
|
+
type: Input
|
|
243
|
+
}], max: [{
|
|
244
|
+
type: Input
|
|
245
|
+
}], disabledItemHandler: [{
|
|
246
|
+
type: Input
|
|
247
|
+
}], markerHandler: [{
|
|
248
|
+
type: Input
|
|
249
|
+
}], defaultActiveYearMonth: [{
|
|
250
|
+
type: Input
|
|
251
|
+
}], expandable: [{
|
|
252
|
+
type: Input
|
|
253
|
+
}], inputHidden: [{
|
|
254
|
+
type: Input
|
|
255
|
+
}], editable: [{
|
|
256
|
+
type: Input
|
|
257
|
+
}, {
|
|
258
|
+
type: HostBinding,
|
|
259
|
+
args: ['class._editable']
|
|
260
|
+
}], search: [{
|
|
261
|
+
type: Input
|
|
262
|
+
}], placeholder: [{
|
|
263
|
+
type: Input
|
|
264
|
+
}], rows: [{
|
|
265
|
+
type: Input
|
|
266
|
+
}], tagValidator: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], onClick: [{
|
|
269
|
+
type: HostListener,
|
|
270
|
+
args: ['click']
|
|
271
|
+
}], size: [{
|
|
272
|
+
type: HostBinding,
|
|
273
|
+
args: ['attr.data-size']
|
|
274
|
+
}] } });
|
|
275
|
+
|
|
276
|
+
class TuiInputDateMultiModule {
|
|
277
|
+
}
|
|
278
|
+
TuiInputDateMultiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
279
|
+
TuiInputDateMultiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, declarations: [TuiInputDateMultiComponent], imports: [CommonModule,
|
|
280
|
+
MaskitoModule,
|
|
281
|
+
PolymorpheusModule,
|
|
282
|
+
TuiWrapperModule,
|
|
283
|
+
TuiCalendarModule,
|
|
284
|
+
TuiSvgModule,
|
|
285
|
+
TuiLinkModule,
|
|
286
|
+
TuiInputTagModule,
|
|
287
|
+
FormsModule,
|
|
288
|
+
TuiMapperPipeModule,
|
|
289
|
+
TuiHostedDropdownModule,
|
|
290
|
+
TuiTextfieldControllerModule,
|
|
291
|
+
TuiPrimitiveTextfieldModule], exports: [TuiInputDateMultiComponent] });
|
|
292
|
+
TuiInputDateMultiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, imports: [[
|
|
293
|
+
CommonModule,
|
|
294
|
+
MaskitoModule,
|
|
295
|
+
PolymorpheusModule,
|
|
296
|
+
TuiWrapperModule,
|
|
297
|
+
TuiCalendarModule,
|
|
298
|
+
TuiSvgModule,
|
|
299
|
+
TuiLinkModule,
|
|
300
|
+
TuiInputTagModule,
|
|
301
|
+
FormsModule,
|
|
302
|
+
TuiMapperPipeModule,
|
|
303
|
+
TuiHostedDropdownModule,
|
|
304
|
+
TuiTextfieldControllerModule,
|
|
305
|
+
TuiPrimitiveTextfieldModule,
|
|
306
|
+
]] });
|
|
307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiInputDateMultiModule, decorators: [{
|
|
308
|
+
type: NgModule,
|
|
309
|
+
args: [{
|
|
310
|
+
imports: [
|
|
311
|
+
CommonModule,
|
|
312
|
+
MaskitoModule,
|
|
313
|
+
PolymorpheusModule,
|
|
314
|
+
TuiWrapperModule,
|
|
315
|
+
TuiCalendarModule,
|
|
316
|
+
TuiSvgModule,
|
|
317
|
+
TuiLinkModule,
|
|
318
|
+
TuiInputTagModule,
|
|
319
|
+
FormsModule,
|
|
320
|
+
TuiMapperPipeModule,
|
|
321
|
+
TuiHostedDropdownModule,
|
|
322
|
+
TuiTextfieldControllerModule,
|
|
323
|
+
TuiPrimitiveTextfieldModule,
|
|
324
|
+
],
|
|
325
|
+
declarations: [TuiInputDateMultiComponent],
|
|
326
|
+
exports: [TuiInputDateMultiComponent],
|
|
327
|
+
}]
|
|
328
|
+
}] });
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Generated bundle index. Do not edit.
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
export { TuiInputDateMultiComponent, TuiInputDateMultiModule };
|
|
335
|
+
//# sourceMappingURL=taiga-ui-kit-components-input-date-multi.js.map
|