@taiga-ui/kit 3.49.1 → 3.50.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 +0 -3
- package/bundles/taiga-ui-kit-abstract.umd.js +0 -4
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-classes.umd.js +0 -7
- package/bundles/taiga-ui-kit-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +0 -11
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +0 -8
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +6 -13
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +0 -8
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +0 -21
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +0 -4
- 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 +0 -4
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +0 -9
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +1 -15
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +0 -6
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +0 -11
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +0 -8
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +0 -23
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +2 -33
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +0 -6
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +0 -10
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +0 -9
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +8 -7
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +0 -8
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +1 -9
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +0 -38
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +0 -7
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +0 -6
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-prompt.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +0 -7
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +0 -5
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +0 -6
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +0 -8
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +0 -9
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +0 -7
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +0 -11
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +0 -7
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +0 -39
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +9 -8
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +1 -25
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +0 -9
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +0 -13
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +0 -4
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +0 -9
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +0 -28
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +0 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +0 -19
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +0 -5
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +0 -4
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +0 -4
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-mask.umd.js +0 -26
- package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +0 -15
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +0 -7
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +1 -7
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +407 -0
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +0 -4
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.js +10 -8
- package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js +1 -3
- package/bundles/taiga-ui-kit-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +0 -10
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal.umd.js +0 -4
- package/bundles/taiga-ui-kit-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +0 -7
- 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 +0 -4
- 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 +0 -4
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes.umd.js +0 -4
- package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +0 -4
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-services.umd.js +0 -4
- package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +0 -35
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-types.umd.js +1 -3
- package/bundles/taiga-ui-kit-types.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.js +0 -4
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +0 -10
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +0 -50
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +0 -7
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +0 -10
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +0 -4
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils.umd.js +0 -4
- package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +0 -4
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-kit.umd.js +0 -4
- package/bundles/taiga-ui-kit.umd.js.map +1 -1
- package/classes/stringifiable-item.d.ts +0 -3
- package/classes/taiga-ui-kit-classes.d.ts +0 -3
- package/components/accordion/taiga-ui-kit-components-accordion.d.ts +0 -3
- package/components/action/taiga-ui-kit-components-action.d.ts +0 -3
- package/components/arrow/arrow.options.d.ts +0 -4
- package/components/arrow/arrow.providers.d.ts +0 -3
- package/components/arrow/taiga-ui-kit-components-arrow.d.ts +0 -3
- package/components/avatar/avatar.options.d.ts +0 -4
- package/components/avatar/taiga-ui-kit-components-avatar.d.ts +0 -3
- package/components/badge/taiga-ui-kit-components-badge.d.ts +0 -3
- package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +0 -3
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +0 -3
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +0 -3
- package/components/calendar-range/calendar-range.component.d.ts +4 -4
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +0 -3
- package/components/carousel/taiga-ui-kit-components-carousel.d.ts +0 -3
- package/components/checkbox/checkbox.component.d.ts +0 -1
- package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +0 -3
- package/components/checkbox-block/checkbox-block.component.d.ts +0 -1
- package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +0 -3
- package/components/checkbox-labeled/checkbox-labeled.component.d.ts +0 -1
- package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +0 -3
- package/components/combo-box/combo-box.component.d.ts +0 -1
- package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +0 -3
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +0 -3
- package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +0 -3
- package/components/files/file/file-options.d.ts +0 -3
- package/components/files/taiga-ui-kit-components-files.d.ts +0 -3
- package/components/filter/taiga-ui-kit-components-filter.d.ts +0 -3
- package/components/input/input.component.d.ts +3 -3
- package/components/input/taiga-ui-kit-components-input.d.ts +0 -3
- package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +0 -3
- package/components/input-count/input-count.component.d.ts +0 -10
- package/components/input-count/input-count.module.d.ts +0 -3
- package/components/input-count/input-count.options.d.ts +0 -4
- package/components/input-count/taiga-ui-kit-components-input-count.d.ts +0 -3
- package/components/input-date/input-date.component.d.ts +0 -4
- package/components/input-date/taiga-ui-kit-components-input-date.d.ts +0 -3
- package/components/input-date-range/input-date-range.component.d.ts +2 -2
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +0 -3
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +0 -3
- package/components/input-files/input-files.component.d.ts +0 -6
- package/components/input-files/input-files.options.d.ts +0 -8
- package/components/input-files/taiga-ui-kit-components-input-files.d.ts +0 -3
- package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +0 -3
- package/components/input-month/taiga-ui-kit-components-input-month.d.ts +0 -3
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +0 -3
- package/components/input-number/input-number.component.d.ts +0 -2
- package/components/input-number/input-number.options.d.ts +0 -4
- package/components/input-number/taiga-ui-kit-components-input-number.d.ts +0 -3
- package/components/input-password/input-password.options.d.ts +0 -4
- package/components/input-password/taiga-ui-kit-components-input-password.d.ts +0 -3
- package/components/input-phone/input-phone.options.d.ts +0 -3
- package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +0 -3
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -7
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -6
- package/components/input-phone-international/input-phone-international.component.d.ts +2 -15
- package/components/input-phone-international/input-phone-international.options.d.ts +0 -3
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +0 -3
- package/components/input-range/taiga-ui-kit-components-input-range.d.ts +0 -3
- package/components/input-slider/input-slider.component.d.ts +0 -2
- package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +0 -3
- package/components/input-tag/input-tag.options.d.ts +0 -3
- package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +0 -3
- package/components/input-time/input-time.component.d.ts +0 -1
- package/components/input-time/input-time.options.d.ts +0 -3
- package/components/input-time/taiga-ui-kit-components-input-time.d.ts +0 -3
- package/components/input-year/taiga-ui-kit-components-input-year.d.ts +0 -3
- package/components/island/taiga-ui-kit-components-island.d.ts +0 -3
- package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +0 -3
- package/components/line-clamp/line-clamp.options.d.ts +0 -3
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +0 -3
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +0 -3
- package/components/multi-select/multi-select.component.d.ts +3 -3
- package/components/multi-select/multi-select.options.d.ts +0 -3
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +2 -2
- package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +0 -3
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +0 -3
- package/components/pagination/pagination.component.d.ts +0 -37
- package/components/pagination/taiga-ui-kit-components-pagination.d.ts +0 -3
- package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -3
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +0 -3
- package/components/progress/taiga-ui-kit-components-progress.d.ts +0 -3
- package/components/prompt/taiga-ui-kit-components-prompt.d.ts +0 -3
- package/components/push/push.options.d.ts +0 -3
- package/components/push/taiga-ui-kit-components-push.d.ts +0 -3
- package/components/radio/radio.options.d.ts +0 -4
- package/components/radio/taiga-ui-kit-components-radio.d.ts +0 -3
- package/components/radio-block/radio-block.component.d.ts +0 -1
- package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +0 -3
- package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +0 -3
- package/components/radio-labeled/radio-labeled.component.d.ts +0 -1
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +0 -3
- package/components/radio-list/radio-list.component.d.ts +0 -1
- package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +0 -3
- package/components/range/range-change.directive.d.ts +0 -4
- package/components/range/taiga-ui-kit-components-range.d.ts +0 -3
- package/components/rating/rating.options.d.ts +0 -3
- package/components/rating/taiga-ui-kit-components-rating.d.ts +0 -3
- package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +0 -3
- package/components/select/select.options.d.ts +0 -3
- package/components/select/taiga-ui-kit-components-select.d.ts +0 -3
- package/components/select-option/taiga-ui-kit-components-select-option.d.ts +0 -3
- package/components/slider/helpers/slider-readonly.directive.d.ts +0 -4
- package/components/slider/slider.options.d.ts +0 -3
- package/components/slider/taiga-ui-kit-components-slider.d.ts +0 -3
- package/components/stepper/stepper.component.d.ts +3 -2
- package/components/stepper/taiga-ui-kit-components-stepper.d.ts +0 -3
- package/components/tabs/tab/tab.providers.d.ts +0 -3
- package/components/tabs/tabs/tabs.component.d.ts +0 -2
- package/components/tabs/tabs.options.d.ts +0 -3
- package/components/tabs/taiga-ui-kit-components-tabs.d.ts +0 -3
- package/components/tag/tag.options.d.ts +0 -4
- package/components/tag/taiga-ui-kit-components-tag.d.ts +0 -3
- package/components/taiga-ui-kit-components.d.ts +0 -3
- package/components/textarea/deprecated.d.ts +0 -9
- package/components/textarea/taiga-ui-kit-components-textarea.d.ts +0 -3
- package/components/tiles/taiga-ui-kit-components-tiles.d.ts +0 -3
- package/components/toggle/taiga-ui-kit-components-toggle.d.ts +0 -3
- package/components/toggle/toggle.component.d.ts +0 -1
- package/components/toggle/toggle.options.d.ts +0 -4
- package/components/tree/misc/tree.tokens.d.ts +0 -24
- package/components/tree/taiga-ui-kit-components-tree.d.ts +0 -3
- package/constants/empty-mask.d.ts +0 -4
- package/constants/group-class-names.d.ts +0 -4
- package/constants/masks.d.ts +0 -4
- package/constants/math.d.ts +0 -3
- package/constants/max-day-range-length-mapper.d.ts +2 -2
- package/constants/taiga-ui-kit-constants.d.ts +0 -3
- package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +0 -3
- package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +0 -3
- package/directives/index.d.ts +1 -0
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -3
- package/directives/mask/legacy-mask.d.ts +0 -21
- package/directives/mask/taiga-ui-kit-directives-mask.d.ts +0 -3
- package/directives/present/present.directive.d.ts +0 -11
- package/directives/present/taiga-ui-kit-directives-present.d.ts +0 -3
- package/directives/project-class/project-class.directive.d.ts +0 -3
- package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +0 -3
- package/directives/taiga-ui-kit-directives.d.ts +0 -3
- package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +0 -3
- package/directives/unmask-handler/index.d.ts +2 -0
- package/directives/unmask-handler/package.json +10 -0
- package/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.d.ts +2 -0
- package/directives/unmask-handler/unmask-handler.directive.d.ts +11 -0
- package/directives/unmask-handler/unmask-handler.module.d.ts +7 -0
- package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +0 -3
- package/esm2015/abstract/taiga-ui-kit-abstract.js +1 -4
- package/esm2015/classes/stringifiable-item.js +1 -4
- package/esm2015/classes/taiga-ui-kit-classes.js +1 -4
- package/esm2015/components/accordion/taiga-ui-kit-components-accordion.js +1 -4
- package/esm2015/components/action/taiga-ui-kit-components-action.js +1 -4
- package/esm2015/components/arrow/arrow.options.js +1 -5
- package/esm2015/components/arrow/arrow.providers.js +1 -4
- package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +1 -4
- package/esm2015/components/avatar/avatar.options.js +1 -5
- package/esm2015/components/avatar/taiga-ui-kit-components-avatar.js +1 -4
- package/esm2015/components/badge/taiga-ui-kit-components-badge.js +1 -4
- package/esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js +1 -4
- package/esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js +1 -4
- package/esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js +1 -4
- package/esm2015/components/calendar-range/calendar-range.component.js +3 -3
- package/esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js +1 -4
- package/esm2015/components/carousel/carousel-scroll.directive.js +1 -2
- package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +1 -4
- package/esm2015/components/checkbox/checkbox.component.js +1 -2
- package/esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js +1 -4
- package/esm2015/components/checkbox-block/checkbox-block.component.js +1 -2
- package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +1 -4
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +1 -2
- package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +1 -4
- package/esm2015/components/combo-box/combo-box.component.js +1 -2
- package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +1 -4
- package/esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js +1 -4
- package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +1 -4
- package/esm2015/components/files/file/file-options.js +1 -4
- package/esm2015/components/files/file/file.component.js +1 -2
- package/esm2015/components/files/taiga-ui-kit-components-files.js +1 -4
- package/esm2015/components/filter/filter.component.js +1 -2
- package/esm2015/components/filter/taiga-ui-kit-components-filter.js +1 -4
- package/esm2015/components/input/input.component.js +10 -5
- package/esm2015/components/input/taiga-ui-kit-components-input.js +1 -4
- package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +1 -4
- package/esm2015/components/input-count/input-count.component.js +1 -11
- package/esm2015/components/input-count/input-count.module.js +1 -4
- package/esm2015/components/input-count/input-count.options.js +1 -5
- package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +1 -4
- package/esm2015/components/input-date/input-date.component.js +1 -6
- package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +1 -4
- package/esm2015/components/input-date-range/input-date-range.component.js +1 -1
- package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +1 -4
- package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +1 -4
- package/esm2015/components/input-files/input-files.component.js +1 -9
- package/esm2015/components/input-files/input-files.directive.js +1 -2
- package/esm2015/components/input-files/input-files.options.js +2 -5
- package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +1 -4
- package/esm2015/components/input-inline/input-inline.component.js +1 -3
- package/esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js +1 -4
- package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +1 -4
- package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +1 -4
- package/esm2015/components/input-number/input-number.component.js +1 -4
- package/esm2015/components/input-number/input-number.options.js +1 -5
- package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +1 -4
- package/esm2015/components/input-password/input-password.options.js +1 -5
- package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +1 -4
- package/esm2015/components/input-phone/input-phone.options.js +1 -4
- package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +1 -4
- package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +3 -21
- package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +1 -7
- package/esm2015/components/input-phone-international/input-phone-international.component.js +1 -17
- package/esm2015/components/input-phone-international/input-phone-international.options.js +1 -4
- package/esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js +1 -4
- package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +1 -4
- package/esm2015/components/input-slider/input-slider.component.js +1 -3
- package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +1 -4
- package/esm2015/components/input-tag/input-tag.component.js +1 -4
- package/esm2015/components/input-tag/input-tag.options.js +1 -4
- package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +1 -4
- package/esm2015/components/input-time/input-time.component.js +1 -3
- package/esm2015/components/input-time/input-time.options.js +1 -4
- package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +1 -4
- package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +1 -4
- package/esm2015/components/island/taiga-ui-kit-components-island.js +1 -4
- package/esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js +1 -4
- package/esm2015/components/line-clamp/line-clamp.component.js +1 -2
- package/esm2015/components/line-clamp/line-clamp.options.js +1 -4
- package/esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js +1 -4
- package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +1 -4
- package/esm2015/components/multi-select/multi-select.component.js +2 -3
- package/esm2015/components/multi-select/multi-select.options.js +1 -4
- package/esm2015/components/multi-select/native-multi-select/native-multi-select.js +1 -1
- package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +1 -4
- package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +1 -4
- package/esm2015/components/pagination/pagination.component.js +1 -35
- package/esm2015/components/pagination/taiga-ui-kit-components-pagination.js +1 -4
- package/esm2015/components/pdf-viewer/pdf-viewer.options.js +1 -4
- package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +1 -4
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +1 -2
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +1 -2
- package/esm2015/components/progress/taiga-ui-kit-components-progress.js +1 -4
- package/esm2015/components/prompt/prompt.component.js +1 -2
- package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +1 -4
- package/esm2015/components/push/push.options.js +1 -4
- package/esm2015/components/push/taiga-ui-kit-components-push.js +1 -4
- package/esm2015/components/radio/radio.options.js +1 -5
- package/esm2015/components/radio/taiga-ui-kit-components-radio.js +1 -4
- package/esm2015/components/radio-block/radio-block.component.js +1 -2
- package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +1 -4
- package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +1 -4
- package/esm2015/components/radio-labeled/radio-labeled.component.js +1 -2
- package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +1 -4
- package/esm2015/components/radio-list/radio-list.component.js +1 -3
- package/esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js +1 -4
- package/esm2015/components/range/range-change.directive.js +1 -5
- package/esm2015/components/range/range.component.js +1 -2
- package/esm2015/components/range/taiga-ui-kit-components-range.js +1 -4
- package/esm2015/components/rating/rating.options.js +1 -4
- package/esm2015/components/rating/taiga-ui-kit-components-rating.js +1 -4
- package/esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js +1 -4
- package/esm2015/components/select/select.options.js +1 -4
- package/esm2015/components/select/taiga-ui-kit-components-select.js +1 -4
- package/esm2015/components/select-option/select-option.component.js +1 -8
- package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +1 -4
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +1 -9
- package/esm2015/components/slider/slider.component.js +1 -25
- package/esm2015/components/slider/slider.options.js +1 -4
- package/esm2015/components/slider/taiga-ui-kit-components-slider.js +1 -4
- package/esm2015/components/stepper/stepper.component.js +12 -7
- package/esm2015/components/stepper/taiga-ui-kit-components-stepper.js +1 -4
- package/esm2015/components/tabs/tab/tab.component.js +1 -9
- package/esm2015/components/tabs/tab/tab.providers.js +1 -4
- package/esm2015/components/tabs/tabs/tabs.component.js +1 -3
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +1 -3
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -4
- package/esm2015/components/tabs/tabs.options.js +1 -4
- package/esm2015/components/tabs/taiga-ui-kit-components-tabs.js +1 -4
- package/esm2015/components/tag/tag.component.js +1 -2
- package/esm2015/components/tag/tag.options.js +1 -5
- package/esm2015/components/tag/taiga-ui-kit-components-tag.js +1 -4
- package/esm2015/components/taiga-ui-kit-components.js +1 -4
- package/esm2015/components/textarea/deprecated.js +1 -10
- package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +1 -4
- package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +1 -4
- package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +1 -4
- package/esm2015/components/toggle/toggle.component.js +1 -2
- package/esm2015/components/toggle/toggle.options.js +1 -5
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +1 -2
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +1 -2
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +1 -2
- package/esm2015/components/tree/misc/tree.tokens.js +1 -25
- package/esm2015/components/tree/taiga-ui-kit-components-tree.js +1 -4
- package/esm2015/constants/empty-mask.js +1 -5
- package/esm2015/constants/group-class-names.js +1 -5
- package/esm2015/constants/masks.js +1 -5
- package/esm2015/constants/math.js +1 -4
- package/esm2015/constants/max-day-range-length-mapper.js +1 -1
- package/esm2015/constants/taiga-ui-kit-constants.js +1 -4
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +1 -2
- package/esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js +1 -4
- package/esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js +1 -4
- package/esm2015/directives/index.js +2 -1
- package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +1 -4
- package/esm2015/directives/mask/legacy-mask.js +1 -31
- package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +1 -4
- package/esm2015/directives/present/present.directive.js +1 -12
- package/esm2015/directives/present/taiga-ui-kit-directives-present.js +1 -4
- package/esm2015/directives/project-class/project-class.directive.js +1 -4
- package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +1 -4
- package/esm2015/directives/taiga-ui-kit-directives.js +1 -4
- package/esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js +1 -4
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +2 -4
- package/esm2015/directives/unmask-handler/index.js +3 -0
- package/esm2015/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.js +2 -0
- package/esm2015/directives/unmask-handler/unmask-handler.directive.js +42 -0
- package/esm2015/directives/unmask-handler/unmask-handler.module.js +16 -0
- package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +1 -4
- package/esm2015/interfaces/taiga-ui-kit-interfaces.js +1 -4
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +1 -4
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -4
- package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +1 -4
- package/esm2015/internal/taiga-ui-kit-internal.js +1 -4
- package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +1 -4
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -4
- package/esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js +1 -4
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +1 -4
- package/esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js +1 -4
- package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +1 -4
- package/esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js +1 -4
- package/esm2015/pipes/taiga-ui-kit-pipes.js +1 -4
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +1 -4
- package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +1 -4
- package/esm2015/providers/taiga-ui-kit-providers.js +1 -4
- package/esm2015/services/taiga-ui-kit-services.js +1 -4
- package/esm2015/taiga-ui-kit.js +1 -4
- package/esm2015/tokens/calendar-date-stream.js +1 -4
- package/esm2015/tokens/date-inputs-value-transformers.js +1 -11
- package/esm2015/tokens/input-date-options.js +1 -4
- package/esm2015/tokens/items-handlers.js +1 -4
- package/esm2015/tokens/mobile-calendar.js +1 -4
- package/esm2015/tokens/month-formatter.js +1 -4
- package/esm2015/tokens/tab-margin.js +1 -4
- package/esm2015/tokens/taiga-ui-kit-tokens.js +1 -4
- package/esm2015/tokens/validation-errors.js +1 -4
- package/esm2015/types/taiga-ui-kit-types.js +1 -4
- package/esm2015/utils/files/taiga-ui-kit-utils-files.js +1 -4
- package/esm2015/utils/format/string-hash-to-hsl.js +1 -7
- package/esm2015/utils/format/taiga-ui-kit-utils-format.js +1 -4
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +1 -9
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +1 -17
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +1 -5
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +1 -7
- package/esm2015/utils/mask/create-date-mask.js +1 -5
- package/esm2015/utils/mask/create-date-range-mask.js +1 -5
- package/esm2015/utils/mask/create-time-mask.js +1 -5
- package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +1 -4
- package/esm2015/utils/math/horizontal-direction-to-number.js +1 -4
- package/esm2015/utils/math/taiga-ui-kit-utils-math.js +1 -4
- package/esm2015/utils/miscellaneous/get-precision.js +1 -4
- package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +1 -4
- package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +1 -4
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +1 -4
- package/esm2015/utils/taiga-ui-kit-utils.js +1 -4
- package/esm2015/validators/taiga-ui-kit-validators.js +1 -4
- package/fesm2015/taiga-ui-kit-abstract.js +0 -4
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-classes.js +0 -7
- package/fesm2015/taiga-ui-kit-classes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +0 -4
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +0 -4
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +0 -11
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +0 -8
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +0 -4
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +0 -4
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +0 -4
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +0 -4
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +2 -6
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +0 -5
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +0 -5
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +0 -5
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +0 -5
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +0 -5
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +0 -4
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-elastic-container.js +0 -4
- package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +0 -8
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +0 -5
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +0 -21
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +0 -9
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +1 -15
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +0 -6
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +0 -11
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +0 -8
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +0 -23
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +2 -33
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +0 -6
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +0 -10
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +0 -9
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-year.js +0 -4
- package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +9 -8
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js +0 -4
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +0 -4
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +0 -8
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +0 -4
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +0 -4
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +1 -9
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +0 -38
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +0 -7
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +0 -6
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-prompt.js +0 -5
- package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +0 -7
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +0 -5
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +0 -4
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +0 -5
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +0 -6
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +0 -8
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +0 -9
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +0 -7
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js +0 -4
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +0 -11
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +0 -7
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +0 -39
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +11 -10
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +1 -25
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +0 -9
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +0 -13
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +0 -4
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +0 -9
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +0 -28
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +0 -4
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +0 -19
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +0 -5
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +0 -4
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +0 -4
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-mask.js +0 -26
- package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +0 -15
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +0 -7
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +1 -7
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js +58 -0
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js.map +1 -0
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +0 -4
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives.js +1 -4
- package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
- package/fesm2015/taiga-ui-kit-interfaces.js +1 -3
- package/fesm2015/taiga-ui-kit-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +0 -10
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal.js +0 -4
- package/fesm2015/taiga-ui-kit-internal.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +0 -7
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes.js +0 -4
- package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +0 -4
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-services.js +0 -4
- package/fesm2015/taiga-ui-kit-services.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +0 -35
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-types.js +1 -3
- package/fesm2015/taiga-ui-kit-types.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-files.js +0 -4
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +0 -10
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +0 -50
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +0 -7
- package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +0 -10
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +0 -4
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils.js +0 -4
- package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +0 -4
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/fesm2015/taiga-ui-kit.js +0 -4
- package/fesm2015/taiga-ui-kit.js.map +1 -1
- package/interfaces/taiga-ui-kit-interfaces.d.ts +0 -3
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +2 -5
- package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +0 -3
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +0 -3
- package/internal/taiga-ui-kit-internal.d.ts +0 -3
- package/package.json +7 -7
- package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +0 -3
- package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +0 -3
- package/pipes/filter-by-input/filter-by-input.base.d.ts +0 -4
- package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +0 -3
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +0 -3
- package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +0 -3
- package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +0 -3
- package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +0 -3
- package/pipes/taiga-ui-kit-pipes.d.ts +0 -3
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +0 -3
- package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +0 -3
- package/providers/taiga-ui-kit-providers.d.ts +0 -3
- package/services/taiga-ui-kit-services.d.ts +0 -3
- package/taiga-ui-kit.d.ts +0 -3
- package/tokens/calendar-date-stream.d.ts +0 -3
- package/tokens/date-inputs-value-transformers.d.ts +0 -9
- package/tokens/input-date-options.d.ts +0 -3
- package/tokens/items-handlers.d.ts +0 -3
- package/tokens/mobile-calendar.d.ts +0 -3
- package/tokens/month-formatter.d.ts +0 -3
- package/tokens/tab-margin.d.ts +0 -3
- package/tokens/taiga-ui-kit-tokens.d.ts +0 -3
- package/tokens/validation-errors.d.ts +0 -3
- package/types/file-state.d.ts +0 -3
- package/types/key-steps.d.ts +0 -18
- package/types/taiga-ui-kit-types.d.ts +0 -3
- package/utils/files/taiga-ui-kit-utils-files.d.ts +0 -3
- package/utils/format/string-hash-to-hsl.d.ts +0 -5
- package/utils/format/taiga-ui-kit-utils-format.d.ts +0 -3
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +0 -12
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +0 -16
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +0 -4
- package/utils/mask/create-auto-corrected-time-pipe.d.ts +0 -6
- package/utils/mask/create-date-mask.d.ts +0 -4
- package/utils/mask/create-date-range-mask.d.ts +0 -4
- package/utils/mask/create-time-mask.d.ts +0 -4
- package/utils/mask/taiga-ui-kit-utils-mask.d.ts +0 -3
- package/utils/math/horizontal-direction-to-number.d.ts +0 -3
- package/utils/math/taiga-ui-kit-utils-math.d.ts +0 -3
- package/utils/miscellaneous/get-precision.d.ts +0 -3
- package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +0 -3
- package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +0 -3
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +0 -3
- package/utils/taiga-ui-kit-utils.d.ts +0 -3
- package/validators/taiga-ui-kit-validators.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-data-list-dropdown-manager.js","sources":["../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts","../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.module.ts","../../../projects/kit/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.ts"],"sourcesContent":["import {\n AfterViewInit,\n ContentChildren,\n Directive,\n ElementRef,\n Inject,\n QueryList,\n Self,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n TuiDestroyService,\n tuiGetClosestFocusable,\n tuiPreventDefault,\n tuiPure,\n tuiQueryListChanges,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {\n debounceTime,\n filter,\n map,\n shareReplay,\n switchMap,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\n@Directive({\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n providers: [TuiDestroyService],\n})\nexport class TuiDataListDropdownManagerDirective implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly els: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n constructor(\n @Self() @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n ) {}\n\n ngAfterViewInit(): void {\n this.right$.pipe(takeUntil(this.destroy$)).subscribe(index => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap(active => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.toggle(index === active);\n });\n\n const element = this.els.get(active);\n const dropdown = this.dropdowns.get(active);\n\n if (!element || !dropdown?.dropdownBoxRef) {\n return EMPTY;\n }\n\n const {nativeElement} = dropdown.dropdownBoxRef.location;\n const mouseEnter$ = tuiTypedFromEvent(\n nativeElement,\n 'mouseenter',\n ).pipe(take(1));\n const esc$ = merge(\n tuiTypedFromEvent(element.nativeElement, 'keydown'),\n tuiTypedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({key}) => key === 'Escape'));\n\n return merge(mouseEnter$, esc$).pipe(\n tap(event => {\n if (dropdown.dropdownBoxRef) {\n event.stopPropagation();\n }\n\n element.nativeElement.focus();\n dropdown.toggle('offsetX' in event);\n }),\n );\n }),\n takeUntil(this.destroy$),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<readonly HTMLElement[]> {\n return tuiQueryListChanges(this.els).pipe(\n map(array => array.map(({nativeElement}) => nativeElement)),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'keydown').pipe(\n filter(({key}) => key === 'ArrowRight'),\n tuiPreventDefault(),\n map(() => index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'click').pipe(map(() => index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n merge(\n tuiTypedFromEvent(element, 'focus'),\n tuiTypedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n return !this.dropdowns\n .get(index)\n ?.dropdownBoxRef?.location.nativeElement.contains(element);\n }\n\n private tryToFocus(index: number): void {\n const content = this.dropdowns.get(index)?.dropdownBoxRef?.location.nativeElement;\n\n if (!content) {\n return;\n }\n\n // First item is focus trap\n const focusTrap = tuiGetClosestFocusable({initial: content, root: content});\n const item = tuiGetClosestFocusable({\n initial: focusTrap || content,\n root: content,\n });\n\n if (item) {\n item.focus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDataListDropdownManagerDirective} from './data-list-dropdown-manager.directive';\n\n@NgModule({\n declarations: [TuiDataListDropdownManagerDirective],\n exports: [TuiDataListDropdownManagerDirective],\n})\nexport class TuiDataListDropdownManagerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAmCa,mCAAmC,CAAA;AAO5C,IAAA,WAAA,CACwD,QAA2B,EAAA;QAA3B,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAmB;QANlE,IAAS,CAAA,SAAA,GAAoC,WAAW,CAAC;QAGzD,IAAG,CAAA,GAAA,GAAuC,WAAW,CAAC;KAInE;IAEJ,eAAe,GAAA;AACX,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,IAAG;AACzD,YAAA,IAAI,CAAC,UAAU,C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AA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-data-list-dropdown-manager.js","sources":["../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts","../../../projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.module.ts"],"sourcesContent":["import {\n AfterViewInit,\n ContentChildren,\n Directive,\n ElementRef,\n Inject,\n QueryList,\n Self,\n} from '@angular/core';\nimport {\n EMPTY_QUERY,\n TuiDestroyService,\n tuiGetClosestFocusable,\n tuiPreventDefault,\n tuiPure,\n tuiQueryListChanges,\n tuiTypedFromEvent,\n} from '@taiga-ui/cdk';\nimport {TuiDropdownDirective} from '@taiga-ui/core';\nimport {EMPTY, merge, Observable} from 'rxjs';\nimport {\n debounceTime,\n filter,\n map,\n shareReplay,\n switchMap,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\n@Directive({\n selector: 'tui-data-list[tuiDataListDropdownManager]',\n providers: [TuiDestroyService],\n})\nexport class TuiDataListDropdownManagerDirective implements AfterViewInit {\n @ContentChildren(TuiDropdownDirective, {descendants: true})\n private readonly dropdowns: QueryList<TuiDropdownDirective> = EMPTY_QUERY;\n\n @ContentChildren(TuiDropdownDirective, {read: ElementRef, descendants: true})\n private readonly els: QueryList<ElementRef<HTMLElement>> = EMPTY_QUERY;\n\n constructor(\n @Self() @Inject(TuiDestroyService) private readonly destroy$: TuiDestroyService,\n ) {}\n\n ngAfterViewInit(): void {\n this.right$.pipe(takeUntil(this.destroy$)).subscribe(index => {\n this.tryToFocus(index);\n });\n\n merge(this.immediate$, this.debounce$)\n .pipe(\n switchMap(active => {\n this.dropdowns.forEach((dropdown, index) => {\n dropdown.toggle(index === active);\n });\n\n const element = this.els.get(active);\n const dropdown = this.dropdowns.get(active);\n\n if (!element || !dropdown?.dropdownBoxRef) {\n return EMPTY;\n }\n\n const {nativeElement} = dropdown.dropdownBoxRef.location;\n const mouseEnter$ = tuiTypedFromEvent(\n nativeElement,\n 'mouseenter',\n ).pipe(take(1));\n const esc$ = merge(\n tuiTypedFromEvent(element.nativeElement, 'keydown'),\n tuiTypedFromEvent(nativeElement, 'keydown'),\n ).pipe(filter(({key}) => key === 'Escape'));\n\n return merge(mouseEnter$, esc$).pipe(\n tap(event => {\n if (dropdown.dropdownBoxRef) {\n event.stopPropagation();\n }\n\n element.nativeElement.focus();\n dropdown.toggle('offsetX' in event);\n }),\n );\n }),\n takeUntil(this.destroy$),\n )\n .subscribe();\n }\n\n @tuiPure\n private get elements$(): Observable<readonly HTMLElement[]> {\n return tuiQueryListChanges(this.els).pipe(\n map(array => array.map(({nativeElement}) => nativeElement)),\n shareReplay({bufferSize: 1, refCount: true}),\n );\n }\n\n @tuiPure\n private get right$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'keydown').pipe(\n filter(({key}) => key === 'ArrowRight'),\n tuiPreventDefault(),\n map(() => index),\n ),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get immediate$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n tuiTypedFromEvent(element, 'click').pipe(map(() => index)),\n ),\n ),\n ),\n );\n }\n\n @tuiPure\n private get debounce$(): Observable<number> {\n return this.elements$.pipe(\n switchMap(elements =>\n merge(\n ...elements.map((element, index) =>\n merge(\n tuiTypedFromEvent(element, 'focus'),\n tuiTypedFromEvent(element, 'blur'),\n ).pipe(\n filter(({relatedTarget}) =>\n this.notInDropdown(relatedTarget, index),\n ),\n map(({type}) => (type === 'focus' ? index : NaN)),\n ),\n ),\n ),\n ),\n debounceTime(300),\n );\n }\n\n private notInDropdown(element: EventTarget | null, index: number): boolean {\n return !this.dropdowns\n .get(index)\n ?.dropdownBoxRef?.location.nativeElement.contains(element);\n }\n\n private tryToFocus(index: number): void {\n const content = this.dropdowns.get(index)?.dropdownBoxRef?.location.nativeElement;\n\n if (!content) {\n return;\n }\n\n // First item is focus trap\n const focusTrap = tuiGetClosestFocusable({initial: content, root: content});\n const item = tuiGetClosestFocusable({\n initial: focusTrap || content,\n root: content,\n });\n\n if (item) {\n item.focus();\n }\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiDataListDropdownManagerDirective} from './data-list-dropdown-manager.directive';\n\n@NgModule({\n declarations: [TuiDataListDropdownManagerDirective],\n exports: [TuiDataListDropdownManagerDirective],\n})\nexport class TuiDataListDropdownManagerModule {}\n"],"names":[],"mappings":";;;;;;;;;MAmCa,mCAAmC,CAAA;AAO5C,IAAA,WAAA,CACwD,QAA2B,EAAA;QAA3B,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAmB;QANlE,IAAS,CAAA,SAAA,GAAoC,WAAW,CAAC;QAGzD,IAAG,CAAA,GAAA,GAAuC,WAAW,CAAC;KAInE;IAEJ,eAAe,GAAA;AACX,QAAA,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,IAAG;AACzD,YAAA,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAC3B,SAAC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC;AACjC,aAAA,IAAI,CACD,SAAS,CAAC,MAAM,IAAG;YACf,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,KAAI;AACvC,gBAAA,QAAQ,CAAC,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC;AACtC,aAAC,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACrC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAE5C,YAAA,IAAI,CAAC,OAAO,IAAI,EA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CAAA;gBAIzC,GAAG,EAAA,CAAA;sBADnB,eAAe;uBAAC,oBAAoB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAC,CAAA;AAqDhE,aAAA,CAAA,EAAA,SAAS,EAQT,EAAA,EAAA,MAAM,EAiBN,EAAA,EAAA,UAAU,MAaV,SAAS,EAAA,EAAA,EAAA,EAAA,CAAA;;MC1HZ,gCAAgC,CAAA;;8HAAhC,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+HAAhC,gCAAgC,EAAA,YAAA,EAAA,CAH1B,mCAAmC,CAAA,EAAA,OAAA,EAAA,CACxC,mCAAmC,CAAA,EAAA,CAAA,CAAA;+HAEpC,gCAAgC,EAAA,CAAA,CAAA;4FAAhC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAJ5C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mCAAmC,CAAC;oBACnD,OAAO,EAAE,CAAC,mCAAmC,CAAC;AACjD,iBAAA,CAAA;;;;;"}
|
|
@@ -107,9 +107,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
107
107
|
}]
|
|
108
108
|
}] });
|
|
109
109
|
|
|
110
|
-
/**
|
|
111
|
-
* Generated bundle index. Do not edit.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
110
|
export { TuiHighlightDirective, TuiHighlightModule };
|
|
115
111
|
//# sourceMappingURL=taiga-ui-kit-directives-highlight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-highlight.js","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/highlight.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-highlight.js","sources":["../../../projects/kit/directives/highlight/highlight.directive.ts","../../../projects/kit/directives/highlight/highlight.module.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input, OnChanges, Renderer2} from '@angular/core';\nimport {svgNodeFilter, TuiDestroyService, tuiPx, TuiResizeService} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\n@Directive({\n selector: '[tuiHighlight]',\n host: {\n '[style.position]': '\"relative\"',\n '[style.zIndex]': '0',\n },\n providers: [TuiDestroyService, TuiResizeService],\n})\nexport class TuiHighlightDirective implements OnChanges {\n private readonly highlight: HTMLElement = this.setUpHighlight();\n\n private readonly treeWalker = this.doc.createTreeWalker(\n this.el.nativeElement,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n );\n\n @Input()\n tuiHighlight = '';\n\n @Input()\n tuiHighlightColor = 'var(--tui-selection)';\n\n constructor(\n @Inject(DOCUMENT) private readonly doc: Document,\n @Inject(ElementRef) private readonly el: ElementRef<HTMLElement>,\n @Inject(Renderer2) private readonly renderer: Renderer2,\n @Inject(TuiResizeService) resize$: Observable<unknown>,\n ) {\n resize$.subscribe(() => {\n this.updateStyles();\n });\n }\n\n get match(): boolean {\n return this.indexOf(this.el.nativeElement.textContent) !== -1;\n }\n\n ngOnChanges(): void {\n this.updateStyles();\n }\n\n private updateStyles(): void {\n this.highlight.style.display = 'none';\n\n if (!this.match) {\n return;\n }\n\n this.treeWalker.currentNode = this.el.nativeElement;\n\n do {\n const index = this.indexOf(this.treeWalker.currentNode.nodeValue);\n\n if (index === -1) {\n continue;\n }\n\n const range = this.doc.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.el.nativeElement.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = tuiPx(left - hostRect.left);\n style.top = tuiPx(top - hostRect.top);\n style.width = tuiPx(width);\n style.height = tuiPx(height);\n style.display = 'block';\n\n return;\n } while (this.treeWalker.nextNode());\n }\n\n private indexOf(source: string | null): number {\n return !source || !this.tuiHighlight\n ? -1\n : source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());\n }\n\n private setUpHighlight(): HTMLElement {\n const highlight = this.renderer.createElement('div');\n const {style} = highlight;\n\n style.background = this.tuiHighlightColor;\n style.zIndex = '-1';\n style.position = 'absolute';\n this.renderer.appendChild(this.el.nativeElement, highlight);\n\n return highlight;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiHighlightDirective} from './highlight.directive';\n\n@NgModule({\n declarations: [TuiHighlightDirective],\n exports: [TuiHighlightDirective],\n})\nexport class TuiHighlightModule {}\n"],"names":[],"mappings":";;;;;;MAaa,qBAAqB,CAAA;AAe9B,IAAA,WAAA,CACuC,GAAa,EACX,EAA2B,EAC5B,QAAmB,EAC7B,OAA4B,EAAA;QAHnB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAU;QACX,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;QAC5B,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAW;AAjB1C,QAAA,IAAA,CAAA,SAAS,GAAgB,IAAI,CAAC,cAAc,EAAE,CAAC;AAE/C,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,CACnD,IAAI,CAAC,EAAE,CAAC,aAAa,EACrB,UAAU,CAAC,SAAS,EACpB,aAAa,CAChB,CAAC;QAGF,IAAY,CAAA,YAAA,GAAG,EAAE,CAAC;QAGlB,IAAiB,CAAA,iBAAA,GAAG,sBAAsB,CAAC;AAQvC,QAAA,OAAO,CAAC,SAAS,CAAC,MAAK;YACnB,IAAI,CAAC,YAAY,EAAE,CAAC;AACxB,SAAC,CAAC,CAAC;KACN;AAED,IAAA,IAAI,KAAK,GAAA;AACL,QAAA,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,WAAW,CA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AAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CAC1B,qBAAqB,CAAA,EAAA,CAAA,CAAA;iHAEtB,kBAAkB,EAAA,CAAA,CAAA;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;;;"}
|
|
@@ -103,9 +103,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
103
103
|
}]
|
|
104
104
|
}] });
|
|
105
105
|
|
|
106
|
-
/**
|
|
107
|
-
* Generated bundle index. Do not edit.
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
106
|
export { TuiLazyLoadingDirective, TuiLazyLoadingModule, TuiLazyLoadingService };
|
|
111
107
|
//# sourceMappingURL=taiga-ui-kit-directives-lazy-loading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["../../../projects/kit/directives/lazy-loading/lazy-loading.service.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.directive.ts","../../../projects/kit/directives/lazy-loading/lazy-loading.module.ts"],"sourcesContent":["import {ChangeDetectorRef, Inject, Injectable, Self} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk';\nimport {Observable, of, Subject} from 'rxjs';\nimport {catchError, filter, map, switchMap, take, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<SafeResourceUrl | string> {\n private readonly src$ = new Subject<SafeResourceUrl | string>();\n\n constructor(\n @Inject(ChangeDetectorRef) cdr: ChangeDetectorRef,\n @Self() @Inject(TuiDestroyService) destroy$: Observable<void>,\n @Inject(IntersectionObserverService)\n intersections$: Observable<IntersectionObserverEntry[]>,\n ) {\n super(subscriber =>\n this.src$\n .pipe(\n switchMap(src =>\n intersections$.pipe(\n filter(([{isIntersecting}]) => isIntersecting),\n map(() => src),\n catchError(() => of(src)),\n tuiWatch(cdr),\n take(1),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe(subscriber),\n );\n }\n\n next(src: SafeResourceUrl | string): void {\n this.src$.next(src);\n }\n}\n","import {\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService} from '@taiga-ui/cdk';\n\nimport {TuiLazyLoadingService} from './lazy-loading.service';\n\n@Directive({\n selector: 'img[loading=\"lazy\"]',\n providers: [TuiLazyLoadingService, IntersectionObserverService, TuiDestroyService],\n})\nexport class TuiLazyLoadingDirective {\n @Input('src')\n set srcSetter(src: SafeResourceUrl | string) {\n this.src = this.supported ? src : null;\n this.src$.next(src);\n }\n\n @HostBinding('style.animation')\n animation = 'tuiSkeletonVibe ease-in-out 1s infinite alternate';\n\n @HostBinding('style.background')\n background = 'var(--tui-clear-hover)';\n\n @HostBinding('attr.src')\n src: SafeResourceUrl | string | null = null;\n\n constructor(\n @Inject(TuiLazyLoadingService)\n private readonly src$: TuiLazyLoadingService,\n @Inject(ElementRef)\n private readonly el: ElementRef<HTMLImageElement>,\n ) {\n if (!this.supported) {\n this.src$.subscribe(src => {\n this.src = src;\n });\n }\n }\n\n private get supported(): boolean {\n return 'loading' in this.el.nativeElement;\n }\n\n @HostListener('load')\n onLoad(): void {\n this.background = '';\n this.animation = '';\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiLazyLoadingDirective} from './lazy-loading.directive';\n\n@NgModule({\n declarations: [TuiLazyLoadingDirective],\n exports: [TuiLazyLoadingDirective],\n})\nexport class TuiLazyLoadingModule {}\n"],"names":[],"mappings":";;;;;;;;AAQM,MAAO,qBAAsB,SAAQ,UAAoC,CAAA;AAG3E,IAAA,WAAA,CAC+B,GAAsB,EACd,QAA0B,EAE7D,cAAuD,EAAA;AAEvD,QAAA,KAAK,CAAC,UAAU,IACZ,IAAI,CAAC,IAAI;AACJ,aAAA,IAAI,CACD,SAAS,CAAC,GAAG,IACT,cAAc,CAAC,IAAI,CACf,MAAM,CAAC,CAAC,CAAC,EAAC,cAAc,EAAC,CAAC,KAAK,cAAc,CAAC,EAC9C,GAAG,CAAC,MAAM,GAAG,CAAC,EACd,UAAU,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EACzB,QAAQ,CAAC,GAAG,CAAC,EACb,IAAI,CAAC,CAAC,CAAC,CACV,CACJ,EACD,SAAS,CAAC,QAAQ,CAAC,CACtB;AACA,aAAA,SAAS,CAAC,UAAU,CAAC,CAC7B,CAAC;AAvBW,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,OAAO,EAA4B,CAAC;KAwB/D;AAED,IAAA,IAAI,CAAC,GAA6B,EAAA;AAC9B,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACvB;;AA7BQ,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAIlB,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,iBAAiB,EACT,EAAA,EAAA,KAAA,EAAA,iBAAiB,yBACzB,2BAA2B,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B,EAAA,CAAA,CAAA;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACrC,iBAAA,CAAA;;;;;"}
|
|
@@ -5,21 +5,10 @@ import { ɵgetDOM } from '@angular/platform-browser';
|
|
|
5
5
|
import { TUI_LEGACY_MASK } from '@taiga-ui/core';
|
|
6
6
|
import { createTextMaskInputElement } from 'text-mask-core';
|
|
7
7
|
|
|
8
|
-
/* eslint-disable */
|
|
9
|
-
/**
|
|
10
|
-
* We must check whether the agent is Android because composition events
|
|
11
|
-
* behave differently between iOS and Android.
|
|
12
|
-
*/
|
|
13
8
|
function _isAndroid() {
|
|
14
9
|
const userAgent = ɵgetDOM() ? ɵgetDOM().getUserAgent() : '';
|
|
15
10
|
return /android (\d+)/.test(userAgent.toLowerCase());
|
|
16
11
|
}
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}
|
|
20
|
-
* Don't use it!
|
|
21
|
-
* TODO: delete in v4.0
|
|
22
|
-
*/
|
|
23
12
|
class MaskedInputDirective {
|
|
24
13
|
constructor(_renderer, _elementRef, _compositionMode) {
|
|
25
14
|
this._renderer = _renderer;
|
|
@@ -34,7 +23,6 @@ class MaskedInputDirective {
|
|
|
34
23
|
};
|
|
35
24
|
this.onChange = (_) => { };
|
|
36
25
|
this.onTouched = () => { };
|
|
37
|
-
/** Whether the user is creating a composition string (IME events). */
|
|
38
26
|
this._composing = false;
|
|
39
27
|
if (this._compositionMode == null) {
|
|
40
28
|
this._compositionMode = !_isAndroid();
|
|
@@ -48,7 +36,6 @@ class MaskedInputDirective {
|
|
|
48
36
|
}
|
|
49
37
|
writeValue(value) {
|
|
50
38
|
this._setupMask();
|
|
51
|
-
// set the initial value for cases where the mask is disabled
|
|
52
39
|
const normalizedValue = value == null ? '' : value;
|
|
53
40
|
this._renderer.setProperty(this.inputElement, 'value', normalizedValue);
|
|
54
41
|
if (this.textMaskInputElement !== undefined) {
|
|
@@ -69,7 +56,6 @@ class MaskedInputDirective {
|
|
|
69
56
|
this._setupMask();
|
|
70
57
|
if (this.textMaskInputElement !== undefined) {
|
|
71
58
|
this.textMaskInputElement.update(value);
|
|
72
|
-
// get the updated value
|
|
73
59
|
value = this.inputElement.value;
|
|
74
60
|
this.onChange(value);
|
|
75
61
|
}
|
|
@@ -78,11 +64,9 @@ class MaskedInputDirective {
|
|
|
78
64
|
_setupMask(create = false) {
|
|
79
65
|
if (!this.inputElement) {
|
|
80
66
|
if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') {
|
|
81
|
-
// `textMask` directive is used directly on an input element
|
|
82
67
|
this.inputElement = this._elementRef.nativeElement;
|
|
83
68
|
}
|
|
84
69
|
else {
|
|
85
|
-
// `textMask` directive is used on an abstracted input element, `md-input-container`, etc
|
|
86
70
|
this.inputElement =
|
|
87
71
|
this._elementRef.nativeElement.getElementsByTagName('INPUT')[0];
|
|
88
72
|
}
|
|
@@ -143,12 +127,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
143
127
|
type: Input,
|
|
144
128
|
args: ['textMask']
|
|
145
129
|
}] } });
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
* @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}
|
|
149
|
-
* Don't use it!
|
|
150
|
-
* TODO: delete in v4.0
|
|
151
|
-
*/
|
|
152
130
|
class TextMaskModule {
|
|
153
131
|
}
|
|
154
132
|
TextMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TextMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -162,9 +140,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
162
140
|
}]
|
|
163
141
|
}] });
|
|
164
142
|
|
|
165
|
-
/**
|
|
166
|
-
* Generated bundle index. Do not edit.
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
143
|
export { MaskedInputDirective, TextMaskModule };
|
|
170
144
|
//# sourceMappingURL=taiga-ui-kit-directives-mask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-mask.js","sources":["../../../projects/kit/directives/mask/legacy-mask.ts","../../../projects/kit/directives/mask/taiga-ui-kit-directives-mask.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * Copied from\n * {@link https://github.com/text-mask/text-mask/blob/master/angular2/src/angular2TextMask.ts angular2-text-mask}\n * ___\n * \"angular2-text-mask\" is a legacy not-maintained library. It is published using legacy View Engine distribution.\n * Stackblitz fails to run \"View Engine\"-libraries in Ivy application.\n * See {@link https://github.com/taiga-family/taiga-ui/issues/2541#issuecomment-1235516443 this comment}.\n */\nimport {\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Input,\n NgModule,\n OnChanges,\n Optional,\n Renderer2,\n} from '@angular/core';\nimport {\n COMPOSITION_BUFFER_MODE,\n ControlValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {ɵgetDOM as getDOM} from '@angular/platform-browser';\nimport {TUI_LEGACY_MASK, TuiTextMaskOptions} from '@taiga-ui/core';\nimport {createTextMaskInputElement} from 'text-mask-core';\n\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid(): boolean {\n const userAgent = getDOM() ? getDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n\n/**\n * @internal\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * Don't use it!\n * TODO: delete in v4.0\n */\n@Directive({\n host: {\n '(input)': '_handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '_compositionStart()',\n '(compositionend)': '_compositionEnd($event.target.value)',\n },\n selector: '[textMask]',\n exportAs: 'textMask',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MaskedInputDirective),\n multi: true,\n },\n {\n provide: TUI_LEGACY_MASK,\n useExisting: forwardRef(() => MaskedInputDirective),\n },\n ],\n})\nexport class MaskedInputDirective implements ControlValueAccessor, OnChanges {\n @Input('textMask') textMaskConfig: TuiTextMaskOptions = {\n mask: [],\n guide: true,\n placeholderChar: '_',\n pipe: undefined,\n keepCharPositions: false,\n };\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n private textMaskInputElement: any;\n private inputElement!: HTMLInputElement;\n\n /** Whether the user is creating a composition string (IME events). */\n private _composing = false;\n\n constructor(\n private _renderer: Renderer2,\n private _elementRef: ElementRef,\n @Optional() @Inject(COMPOSITION_BUFFER_MODE) private _compositionMode: boolean,\n ) {\n if (this._compositionMode == null) {\n this._compositionMode = !_isAndroid();\n }\n }\n\n ngOnChanges() {\n this._setupMask(true);\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(this.inputElement.value);\n }\n }\n\n writeValue(value: any) {\n this._setupMask();\n\n // set the initial value for cases where the mask is disabled\n const normalizedValue = value == null ? '' : value;\n this._renderer.setProperty(this.inputElement, 'value', normalizedValue);\n\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(value);\n }\n }\n\n registerOnChange(fn: (_: any) => void): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this.inputElement, 'disabled', isDisabled);\n }\n\n _handleInput(value: any) {\n if (!this._compositionMode || (this._compositionMode && !this._composing)) {\n this._setupMask();\n\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(value);\n\n // get the updated value\n value = this.inputElement.value;\n this.onChange(value);\n }\n }\n }\n\n _setupMask(create = false) {\n if (!this.inputElement) {\n if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') {\n // `textMask` directive is used directly on an input element\n this.inputElement = this._elementRef.nativeElement;\n } else {\n // `textMask` directive is used on an abstracted input element, `md-input-container`, etc\n this.inputElement =\n this._elementRef.nativeElement.getElementsByTagName('INPUT')[0];\n }\n }\n\n if (this.inputElement && create) {\n this.textMaskInputElement = createTextMaskInputElement(\n Object.assign({inputElement: this.inputElement}, this.textMaskConfig),\n );\n }\n }\n\n _compositionStart(): void {\n this._composing = true;\n }\n\n _compositionEnd(value: any): void {\n this._composing = false;\n this._compositionMode && this._handleInput(value);\n }\n}\n\n/**\n * @internal\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * Don't use it!\n * TODO: delete in v4.0\n */\n@NgModule({\n declarations: [MaskedInputDirective],\n exports: [MaskedInputDirective],\n})\nexport class TextMaskModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["getDOM"],"mappings":";;;;;;;AAAA;AA6BA;;;AAGG;AACH,SAAS,UAAU,GAAA;AACf,IAAA,MAAM,SAAS,GAAGA,OAAM,EAAE,GAAGA,OAAM,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAC1D,OAAO,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;;;;AAKG;MAsBU,oBAAoB,CAAA;AAkB7B,IAAA,WAAA,CACY,SAAoB,EACpB,WAAuB,EACsB,gBAAyB,EAAA;QAFtE,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;QACpB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;QACsB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAS;AApB/D,QAAA,IAAA,CAAA,cAAc,GAAuB;AACpD,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,eAAe,EAAE,GAAG;AACpB,YAAA,IAAI,EAAE,SAAS;A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;;AC/KD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-mask.js","sources":["../../../projects/kit/directives/mask/legacy-mask.ts"],"sourcesContent":["/* eslint-disable */\n/**\n * Copied from\n * {@link https://github.com/text-mask/text-mask/blob/master/angular2/src/angular2TextMask.ts angular2-text-mask}\n * ___\n * \"angular2-text-mask\" is a legacy not-maintained library. It is published using legacy View Engine distribution.\n * Stackblitz fails to run \"View Engine\"-libraries in Ivy application.\n * See {@link https://github.com/taiga-family/taiga-ui/issues/2541#issuecomment-1235516443 this comment}.\n */\nimport {\n Directive,\n ElementRef,\n forwardRef,\n Inject,\n Input,\n NgModule,\n OnChanges,\n Optional,\n Renderer2,\n} from '@angular/core';\nimport {\n COMPOSITION_BUFFER_MODE,\n ControlValueAccessor,\n NG_VALUE_ACCESSOR,\n} from '@angular/forms';\nimport {ɵgetDOM as getDOM} from '@angular/platform-browser';\nimport {TUI_LEGACY_MASK, TuiTextMaskOptions} from '@taiga-ui/core';\nimport {createTextMaskInputElement} from 'text-mask-core';\n\n/**\n * We must check whether the agent is Android because composition events\n * behave differently between iOS and Android.\n */\nfunction _isAndroid(): boolean {\n const userAgent = getDOM() ? getDOM().getUserAgent() : '';\n return /android (\\d+)/.test(userAgent.toLowerCase());\n}\n\n/**\n * @internal\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * Don't use it!\n * TODO: delete in v4.0\n */\n@Directive({\n host: {\n '(input)': '_handleInput($event.target.value)',\n '(blur)': 'onTouched()',\n '(compositionstart)': '_compositionStart()',\n '(compositionend)': '_compositionEnd($event.target.value)',\n },\n selector: '[textMask]',\n exportAs: 'textMask',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => MaskedInputDirective),\n multi: true,\n },\n {\n provide: TUI_LEGACY_MASK,\n useExisting: forwardRef(() => MaskedInputDirective),\n },\n ],\n})\nexport class MaskedInputDirective implements ControlValueAccessor, OnChanges {\n @Input('textMask') textMaskConfig: TuiTextMaskOptions = {\n mask: [],\n guide: true,\n placeholderChar: '_',\n pipe: undefined,\n keepCharPositions: false,\n };\n\n onChange = (_: any) => {};\n onTouched = () => {};\n\n private textMaskInputElement: any;\n private inputElement!: HTMLInputElement;\n\n /** Whether the user is creating a composition string (IME events). */\n private _composing = false;\n\n constructor(\n private _renderer: Renderer2,\n private _elementRef: ElementRef,\n @Optional() @Inject(COMPOSITION_BUFFER_MODE) private _compositionMode: boolean,\n ) {\n if (this._compositionMode == null) {\n this._compositionMode = !_isAndroid();\n }\n }\n\n ngOnChanges() {\n this._setupMask(true);\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(this.inputElement.value);\n }\n }\n\n writeValue(value: any) {\n this._setupMask();\n\n // set the initial value for cases where the mask is disabled\n const normalizedValue = value == null ? '' : value;\n this._renderer.setProperty(this.inputElement, 'value', normalizedValue);\n\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(value);\n }\n }\n\n registerOnChange(fn: (_: any) => void): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this._renderer.setProperty(this.inputElement, 'disabled', isDisabled);\n }\n\n _handleInput(value: any) {\n if (!this._compositionMode || (this._compositionMode && !this._composing)) {\n this._setupMask();\n\n if (this.textMaskInputElement !== undefined) {\n this.textMaskInputElement.update(value);\n\n // get the updated value\n value = this.inputElement.value;\n this.onChange(value);\n }\n }\n }\n\n _setupMask(create = false) {\n if (!this.inputElement) {\n if (this._elementRef.nativeElement.tagName.toUpperCase() === 'INPUT') {\n // `textMask` directive is used directly on an input element\n this.inputElement = this._elementRef.nativeElement;\n } else {\n // `textMask` directive is used on an abstracted input element, `md-input-container`, etc\n this.inputElement =\n this._elementRef.nativeElement.getElementsByTagName('INPUT')[0];\n }\n }\n\n if (this.inputElement && create) {\n this.textMaskInputElement = createTextMaskInputElement(\n Object.assign({inputElement: this.inputElement}, this.textMaskConfig),\n );\n }\n }\n\n _compositionStart(): void {\n this._composing = true;\n }\n\n _compositionEnd(value: any): void {\n this._composing = false;\n this._compositionMode && this._handleInput(value);\n }\n}\n\n/**\n * @internal\n * @deprecated Use {@link https://github.com/taiga-family/maskito Maskito}\n * Don't use it!\n * TODO: delete in v4.0\n */\n@NgModule({\n declarations: [MaskedInputDirective],\n exports: [MaskedInputDirective],\n})\nexport class TextMaskModule {}\n"],"names":["getDOM"],"mappings":";;;;;;;AAiCA,SAAS,UAAU,GAAA;AACf,IAAA,MAAM,SAAS,GAAGA,OAAM,EAAE,GAAGA,OAAM,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAC1D,OAAO,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;AACzD,CAAC;MA6BY,oBAAoB,CAAA;AAkB7B,IAAA,WAAA,CACY,SAAoB,EACpB,WAAuB,EACsB,gBAAyB,EAAA;QAFtE,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;QACpB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;QACsB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAS;AApB/D,QAAA,IAAA,CAAA,cAAc,GAAuB;AACpD,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,eAAe,EAAE,GAAG;AACpB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,iBAAiB,EAAE,KAAK;SAC3B,CAAC;AAEF,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,CAAM,KAAI,GAAG,CAAC;AAC1B,QAAA,IAAA,CAAA,SAAS,GAAG,MAAK,GAAG,CAAC;QAMb,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;AAOvB,QAAA,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE;AAC/B,YAAA,IAAI,CAAC,gBAAgB,GAAG,CAAC,UAAU,EAAE,CAAC;AACzC,SAAA;KACJ;IA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SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;AACnD,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACD,wBAAA;AACI,4BAAA,OAAO,EAAE,eAAe;AACxB,4BAAA,WAAW,EAAE,UAAU,CAAC,0BAA0B,CAAC;AACtD,yBAAA;AACJ,qBAAA;AACJ,iBAAA,CAAA;;0BAsBQ,QAAQ;;0BAAI,MAAM;2BAAC,uBAAuB,CAAA;4CApB5B,cAAc,EAAA,CAAA;sBAAhC,KAAK;uBAAC,UAAU,CAAA;;MA8GR,cAAc,CAAA;;4GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,CA/Gd,oBAAoB,CAAA,EAAA,OAAA,EAAA,CAApB,oBAAoB,CAAA,EAAA,CAAA,CAAA;6GA+GpB,cAAc,EAAA,CAAA,CAAA;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,oBAAoB,CAAC;oBACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAClC,iBAAA,CAAA;;;;;"}
|
|
@@ -24,17 +24,6 @@ class TuiPresentDirective {
|
|
|
24
24
|
attributeFilter: ['style', 'class'],
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* Someday animationcancel would work and mutation observer would not be needed:
|
|
29
|
-
* https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel
|
|
30
|
-
* It would also trigger on CSS like display: none on parent nodes which is awesome
|
|
31
|
-
* but currently only works in Firefox
|
|
32
|
-
* ___
|
|
33
|
-
* TODO: remove MutationObserver when we bump versions of supported browsers:
|
|
34
|
-
*** Safari 12+
|
|
35
|
-
*** Chrome 83+
|
|
36
|
-
* See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}
|
|
37
|
-
*/
|
|
38
27
|
onAnimation(visibility) {
|
|
39
28
|
this.visibility$.next(visibility);
|
|
40
29
|
}
|
|
@@ -81,9 +70,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
81
70
|
}]
|
|
82
71
|
}] });
|
|
83
72
|
|
|
84
|
-
/**
|
|
85
|
-
* Generated bundle index. Do not edit.
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
73
|
export { TuiPresentDirective, TuiPresentModule };
|
|
89
74
|
//# sourceMappingURL=taiga-ui-kit-directives-present.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/present.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["../../../projects/kit/directives/present/present.directive.ts","../../../projects/kit/directives/present/present.module.ts"],"sourcesContent":["import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {tuiIsFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiPresentChange]',\n host: {\n '[style.animation]': '\"tuiPresent 1s infinite\"',\n },\n})\nexport class TuiPresentDirective implements OnDestroy {\n private readonly visibility$ = new BehaviorSubject(false);\n\n @Output()\n readonly tuiPresentChange = this.visibility$.pipe(distinctUntilChanged(), skip(1));\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(USER_AGENT) userAgent: string,\n ) {\n if (tuiIsFirefox(userAgent)) {\n return;\n }\n\n const observer = new MutationObserver(() => {\n if (\n !nativeElement.offsetParent &&\n nativeElement.offsetWidth === 0 &&\n nativeElement.offsetHeight === 0\n ) {\n this.visibility$.next(false);\n }\n });\n\n observer.observe(nativeElement, {\n attributes: true,\n attributeFilter: ['style', 'class'],\n });\n }\n\n /**\n * Someday animationcancel would work and mutation observer would not be needed:\n * https://drafts.csswg.org/css-animations/#eventdef-animationevent-animationcancel\n * It would also trigger on CSS like display: none on parent nodes which is awesome\n * but currently only works in Firefox\n * ___\n * TODO: remove MutationObserver when we bump versions of supported browsers:\n *** Safari 12+\n *** Chrome 83+\n * See: {@link https://caniuse.com/mdn-api_window_animationcancel_event}\n */\n @HostListener('animationcancel.self', ['false'])\n @HostListener('animationstart.self', ['true'])\n onAnimation(visibility: boolean): void {\n this.visibility$.next(visibility);\n }\n\n ngOnDestroy(): void {\n this.visibility$.next(false);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiPresentDirective} from './present.directive';\n\n@NgModule({\n declarations: [TuiPresentDirective],\n exports: [TuiPresentDirective],\n})\nexport class TuiPresentModule {}\n"],"names":[],"mappings":";;;;;;;MAmBa,mBAAmB,CAAA;AAM5B,IAAA,WAAA,CACwB,EAAC,aAAa,EAA0B,EACxC,SAAiB,EAAA;AAPxB,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;AAGjD,QAAA,IAAA,CAAA,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAM/E,QAAA,IAAI,YAAY,CAAC,SAAS,CAAC,EAAE;YACzB,OAAO;AACV,SAAA;AAED,QAAA,MAAM,QAAQ,GAAG,IAAI,gBAAgB,CAAC,MAAK;YACvC,IACI,CAAC,aAAa,CAAC,YAAY;gBAC3B,aAAa,CAAC,WAAW,KAAK,CAAC;AAC/B,gBAAA,aAAa,CAAC,YAAY,KAAK,CAAC,EAClC;AACE,gBAAA,IAAI,CAAC,W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P,WAAW,EAAA,CAAA;sBAFV,YAAY;uBAAC,sBAAsB,EAAE,CAAC,OAAO,CAAC,CAAA;;sBAC9C,YAAY;uBAAC,qBAAqB,EAAE,CAAC,MAAM,CAAC,CAAA;;;MCrDpC,gBAAgB,CAAA;;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAhB,gBAAgB,EAAA,YAAA,EAAA,CAHV,mBAAmB,CAAA,EAAA,OAAA,EAAA,CACxB,mBAAmB,CAAA,EAAA,CAAA,CAAA;+GAEpB,gBAAgB,EAAA,CAAA,CAAA;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;AACjC,iBAAA,CAAA;;;;;"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { ElementRef, Directive, Inject, Input, NgModule } from '@angular/core';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* A directive for projecting classes from nested children to host
|
|
6
|
-
*/
|
|
7
4
|
class TuiProjectClassDirective {
|
|
8
5
|
constructor(el) {
|
|
9
6
|
this.el = el;
|
|
@@ -44,9 +41,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
44
41
|
}]
|
|
45
42
|
}] });
|
|
46
43
|
|
|
47
|
-
/**
|
|
48
|
-
* Generated bundle index. Do not edit.
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
44
|
export { TuiProjectClassDirective, TuiProjectClassModule };
|
|
52
45
|
//# sourceMappingURL=taiga-ui-kit-directives-project-class.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["../../../projects/kit/directives/project-class/project-class.directive.ts","../../../projects/kit/directives/project-class/project-class.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["../../../projects/kit/directives/project-class/project-class.directive.ts","../../../projects/kit/directives/project-class/project-class.module.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector: '[tuiProjectClass]',\n})\nexport class TuiProjectClassDirective implements AfterViewChecked {\n @Input('tuiProjectClass')\n classNames: readonly string[] = [];\n\n constructor(@Inject(ElementRef) private readonly el: ElementRef<HTMLElement>) {}\n\n ngAfterViewChecked(): void {\n this.classNames.forEach(className => {\n const hostElement = this.el.nativeElement;\n\n hostElement.classList.toggle(\n className,\n !!hostElement.querySelector(`.${className}`),\n );\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiProjectClassDirective} from './project-class.directive';\n\n@NgModule({\n declarations: [TuiProjectClassDirective],\n exports: [TuiProjectClassDirective],\n})\nexport class TuiProjectClassModule {}\n"],"names":[],"mappings":";;;MAQa,wBAAwB,CAAA;AAIjC,IAAA,WAAA,CAAiD,EAA2B,EAAA;QAA3B,IAAE,CAAA,EAAA,GAAF,EAAE,CAAyB;QAF5E,IAAU,CAAA,UAAA,GAAsB,EAAE,CAAC;KAE6C;IAEhF,kBAAkB,GAAA;AACd,QAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,SAAS,IAAG;AAChC,YAAA,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC;AAE1C,YAAA,WAAW,CAAC,SAAS,CAAC,MAAM,CACxB,SAAS,EACT,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAA,CAAA,EAAI,SAAS,CAAE,CAAA,CAAC,CAC/C,CAAC;AACN,SAAC,CAAC,CAAC;KACN;;AAfQ,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,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idatorDirective {
|
|
8
|
-
constructor(injector,
|
|
9
|
-
// eslint-disable-next-line @angular-eslint/no-attribute-decorator
|
|
10
|
-
message) {
|
|
8
|
+
constructor(injector, message) {
|
|
11
9
|
this.injector = injector;
|
|
12
10
|
this.message = message;
|
|
13
11
|
this.validate = tuiCreateUnfinishedValidator(() => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR), this.message || '');
|
|
@@ -54,9 +52,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
54
52
|
}]
|
|
55
53
|
}] });
|
|
56
54
|
|
|
57
|
-
/**
|
|
58
|
-
* Generated bundle index. Do not edit.
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
55
|
export { TuiUnfinishedValidatorDirective, TuiUnfinishedValidatorModule };
|
|
62
56
|
//# sourceMappingURL=taiga-ui-kit-directives-unfinished-validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["../../../projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/kit/directives/unfinished-validator/unfinished-validator.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["../../../projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts","../../../projects/kit/directives/unfinished-validator/unfinished-validator.module.ts"],"sourcesContent":["import {Attribute, Directive, Inject, Injector} from '@angular/core';\nimport {NG_VALIDATORS, Validator} from '@angular/forms';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {tuiCreateUnfinishedValidator} from '@taiga-ui/kit/validators';\n\n@Directive({\n selector: '[tuiUnfinishedValidator]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: TuiUnfinishedValidatorDirective,\n multi: true,\n },\n ],\n})\nexport class TuiUnfinishedValidatorDirective implements Validator {\n readonly validate = tuiCreateUnfinishedValidator(\n () => this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR),\n this.message || '',\n );\n\n constructor(\n @Inject(Injector)\n private readonly injector: Injector,\n // eslint-disable-next-line @angular-eslint/no-attribute-decorator\n @Attribute('tuiUnfinishedValidator')\n private readonly message: string | null,\n ) {}\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnfinishedValidatorDirective} from './unfinished-validator.directive';\n\n@NgModule({\n declarations: [TuiUnfinishedValidatorDirective],\n exports: [TuiUnfinishedValidatorDirective],\n})\nexport class TuiUnfinishedValidatorModule {}\n"],"names":[],"mappings":";;;;;;MAea,+BAA+B,CAAA;IAMxC,WAEqB,CAAA,QAAkB,EAGlB,OAAsB,EAAA;QAHtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAGlB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAe;QAVlC,IAAQ,CAAA,QAAA,GAAG,4BAA4B,CAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAQE;;6HAZK,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAO5B,QAAQ,EAAA,EAAA,EAAA,KAAA,EAGL,wBAAwB,EAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAV9B,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,+BAA+B,EAR7B,QAAA,EAAA,0BAAA,EAAA,SAAA,EAAA;AACP,QAAA;AACI,YAAA,OAAO,EAAE,aAAa;AACtB,YAAA,WAAW,EAAE,+BAA+B;AAC5C,YAAA,KAAK,EAAE,IAAI;AACd,SAAA;AACJ,KAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAEQ,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAV3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,aAAa;AACtB,4BAAA,WAAW,EAAiC,+BAAA;AAC5C,4BAAA,KAAK,EAAE,IAAI;AACd,yBAAA;AACJ,qBAAA;AACJ,iBAAA,CAAA;;0BAQQ,MAAM;2BAAC,QAAQ,CAAA;;0BAGf,SAAS;2BAAC,wBAAwB,CAAA;;;MCjB9B,4BAA4B,CAAA;;0HAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2HAA5B,4BAA4B,EAAA,YAAA,EAAA,CAHtB,+BAA+B,CAAA,EAAA,OAAA,EAAA,CACpC,+BAA+B,CAAA,EAAA,CAAA,CAAA;2HAEhC,4BAA4B,EAAA,CAAA,CAAA;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAJxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,+BAA+B,CAAC;oBAC/C,OAAO,EAAE,CAAC,+BAA+B,CAAC;AAC7C,iBAAA,CAAA;;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { maskitoTransform, MASKITO_DEFAULT_OPTIONS } from '@maskito/core';
|
|
4
|
+
import { AbstractTuiValueTransformer } from '@taiga-ui/cdk';
|
|
5
|
+
import { identity } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
class TuiUnmaskHandlerDirective extends AbstractTuiValueTransformer {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.tuiUnmaskHandler = identity;
|
|
11
|
+
this.maskito = null;
|
|
12
|
+
}
|
|
13
|
+
fromControlValue(controlValue) {
|
|
14
|
+
return maskitoTransform(String(controlValue !== null && controlValue !== void 0 ? controlValue : ''), this.maskito || MASKITO_DEFAULT_OPTIONS);
|
|
15
|
+
}
|
|
16
|
+
toControlValue(value) {
|
|
17
|
+
return this.tuiUnmaskHandler(value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
TuiUnmaskHandlerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
TuiUnmaskHandlerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiUnmaskHandlerDirective, selector: "[maskito][tuiUnmaskHandler]", inputs: { tuiUnmaskHandler: "tuiUnmaskHandler", maskito: "maskito" }, providers: [
|
|
22
|
+
{
|
|
23
|
+
provide: AbstractTuiValueTransformer,
|
|
24
|
+
useExisting: TuiUnmaskHandlerDirective,
|
|
25
|
+
},
|
|
26
|
+
], usesInheritance: true, ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerDirective, decorators: [{
|
|
28
|
+
type: Directive,
|
|
29
|
+
args: [{
|
|
30
|
+
selector: '[maskito][tuiUnmaskHandler]',
|
|
31
|
+
providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: AbstractTuiValueTransformer,
|
|
34
|
+
useExisting: TuiUnmaskHandlerDirective,
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
}]
|
|
38
|
+
}], propDecorators: { tuiUnmaskHandler: [{
|
|
39
|
+
type: Input
|
|
40
|
+
}], maskito: [{
|
|
41
|
+
type: Input
|
|
42
|
+
}] } });
|
|
43
|
+
|
|
44
|
+
class TuiUnmaskHandlerModule {
|
|
45
|
+
}
|
|
46
|
+
TuiUnmaskHandlerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
TuiUnmaskHandlerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerModule, declarations: [TuiUnmaskHandlerDirective], exports: [TuiUnmaskHandlerDirective] });
|
|
48
|
+
TuiUnmaskHandlerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerModule });
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiUnmaskHandlerModule, decorators: [{
|
|
50
|
+
type: NgModule,
|
|
51
|
+
args: [{
|
|
52
|
+
declarations: [TuiUnmaskHandlerDirective],
|
|
53
|
+
exports: [TuiUnmaskHandlerDirective],
|
|
54
|
+
}]
|
|
55
|
+
}] });
|
|
56
|
+
|
|
57
|
+
export { TuiUnmaskHandlerDirective, TuiUnmaskHandlerModule };
|
|
58
|
+
//# sourceMappingURL=taiga-ui-kit-directives-unmask-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-unmask-handler.js","sources":["../../../projects/kit/directives/unmask-handler/unmask-handler.directive.ts","../../../projects/kit/directives/unmask-handler/unmask-handler.module.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core';\nimport {AbstractTuiValueTransformer, TuiMapper} from '@taiga-ui/cdk';\nimport {identity} from 'rxjs';\n\n@Directive({\n selector: '[maskito][tuiUnmaskHandler]',\n providers: [\n {\n provide: AbstractTuiValueTransformer,\n useExisting: TuiUnmaskHandlerDirective,\n },\n ],\n})\nexport class TuiUnmaskHandlerDirective extends AbstractTuiValueTransformer<string> {\n @Input()\n tuiUnmaskHandler: TuiMapper<[string], string> = identity;\n\n @Input()\n maskito: MaskitoOptions | null = null;\n\n override fromControlValue(controlValue: unknown): string {\n return maskitoTransform(\n String(controlValue ?? ''),\n this.maskito || MASKITO_DEFAULT_OPTIONS,\n );\n }\n\n override toControlValue(value: string): string {\n return this.tuiUnmaskHandler(value);\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiUnmaskHandlerDirective} from './unmask-handler.directive';\n\n@NgModule({\n declarations: [TuiUnmaskHandlerDirective],\n exports: [TuiUnmaskHandlerDirective],\n})\nexport class TuiUnmaskHandlerModule {}\n"],"names":[],"mappings":";;;;;;AAcM,MAAO,yBAA0B,SAAQ,2BAAmC,CAAA;AATlF,IAAA,WAAA,GAAA;;QAWI,IAAgB,CAAA,gBAAA,GAAgC,QAAQ,CAAC;QAGzD,IAAO,CAAA,OAAA,GAA0B,IAAI,CAAC;AAYzC,KAAA;AAVY,IAAA,gBAAgB,CAAC,YAAqB,EAAA;AAC3C,QAAA,OAAO,gBAAgB,CACnB,MAAM,CAAC,YAAY,KAAA,IAAA,IAAZ,YAAY,KAAZ,KAAA,CAAA,GAAA,YAAY,GAAI,EAAE,CAAC,EAC1B,IAAI,CAAC,OAAO,IAAI,uBAAuB,CAC1C,CAAC;KACL;AAEQ,IAAA,cAAc,CAAC,KAAa,EAAA;AACjC,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;KACvC;;uHAhBQ,yBAAyB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAzB,yBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,EAPvB,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,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|
|
32
|
-
*/
|
|
33
|
-
|
|
34
30
|
export { TuiValueAccessorDirective, TuiValueAccessorModule };
|
|
35
31
|
//# sourceMappingURL=taiga-ui-kit-directives-value-accessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["../../../projects/kit/directives/value-accessor/value-accessor.directive.ts","../../../projects/kit/directives/value-accessor/value-accessor.module.ts"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["../../../projects/kit/directives/value-accessor/value-accessor.directive.ts","../../../projects/kit/directives/value-accessor/value-accessor.module.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector: '[tuiValueAccessor]',\n providers: [TUI_VALUE_ACCESSOR_PROVIDER],\n})\nexport class TuiValueAccessorDirective {}\n","import {NgModule} from '@angular/core';\n\nimport {TuiValueAccessorDirective} from './value-accessor.directive';\n\n@NgModule({\n declarations: [TuiValueAccessorDirective],\n exports: [TuiValueAccessorDirective],\n})\nexport class TuiValueAccessorModule {}\n"],"names":[],"mappings":";;;;MAOa,yBAAyB,CAAA;;uHAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2GAAzB,yBAAyB,EAAA,QAAA,EAAA,oBAAA,EAAA,SAAA,EAFvB,CAAC,2BAA2B,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAE/B,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oBAAoB;oBAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;AAC3C,iBAAA,CAAA;;;MCEY,sBAAsB,CAAA;;oHAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;qHAAtB,sBAAsB,EAAA,YAAA,EAAA,CAHhB,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAC9B,yBAAyB,CAAA,EAAA,CAAA,CAAA;qHAE1B,sBAAsB,EAAA,CAAA,CAAA;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACvC,iBAAA,CAAA;;;;;"}
|
|
@@ -5,9 +5,6 @@ export * from '@taiga-ui/kit/directives/mask';
|
|
|
5
5
|
export * from '@taiga-ui/kit/directives/present';
|
|
6
6
|
export * from '@taiga-ui/kit/directives/project-class';
|
|
7
7
|
export * from '@taiga-ui/kit/directives/unfinished-validator';
|
|
8
|
+
export * from '@taiga-ui/kit/directives/unmask-handler';
|
|
8
9
|
export * from '@taiga-ui/kit/directives/value-accessor';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Generated bundle index. Do not edit.
|
|
12
|
-
*/
|
|
13
10
|
//# sourceMappingURL=taiga-ui-kit-directives.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives.js","sources":[
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-interfaces.js","sources":[
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-interfaces.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -8,9 +8,6 @@ import { TUI_CALENDAR_DATE_STREAM } from '@taiga-ui/kit/tokens';
|
|
|
8
8
|
import { takeUntil } from 'rxjs/operators';
|
|
9
9
|
import * as i3 from 'rxjs';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
11
|
class TuiPrimitiveCalendarRangeComponent {
|
|
15
12
|
constructor(valueChanges, cdr, destroy$) {
|
|
16
13
|
this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
|
|
@@ -131,9 +128,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
131
128
|
type: Output
|
|
132
129
|
}] } });
|
|
133
130
|
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
*/
|
|
137
131
|
class TuiPrimitiveCalendarRangeModule {
|
|
138
132
|
}
|
|
139
133
|
TuiPrimitiveCalendarRangeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: TuiPrimitiveCalendarRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -148,9 +142,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
148
142
|
}]
|
|
149
143
|
}] });
|
|
150
144
|
|
|
151
|
-
/**
|
|
152
|
-
* Generated bundle index. Do not edit.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
145
|
export { TuiPrimitiveCalendarRangeComponent, TuiPrimitiveCalendarRangeModule };
|
|
156
146
|
//# sourceMappingURL=taiga-ui-kit-internal-primitive-calendar-range.js.map
|