@taiga-ui/kit 2.55.0 → 2.56.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/bundles/taiga-ui-kit-abstract.umd.js +22 -22
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +13 -13
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +13 -13
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +14 -14
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +21 -21
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +18 -18
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +20 -20
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +19 -19
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +14 -14
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +16 -16
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +10 -10
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js +34 -34
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -15
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +230 -230
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +36 -36
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +16 -16
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +37 -25
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +24 -24
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +13 -13
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +18 -18
- package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -10
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +26 -26
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +33 -33
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +39 -39
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +25 -25
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +41 -41
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +24 -24
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +11 -11
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +24 -24
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +18 -18
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +10 -10
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js +6 -6
- package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +12 -12
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +10 -10
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +11 -11
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +5 -5
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +2 -2
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +4 -4
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-enums.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +8 -8
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +4 -4
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +2 -2
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +3 -3
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +38 -38
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-dom.umd.js +4 -4
- package/bundles/taiga-ui-kit-utils-dom.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-dom.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-files.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +12 -12
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +2 -2
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +7 -7
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.min.js.map +1 -1
- package/components/input-slider/input-slider.component.d.ts +4 -1
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
- package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +12 -12
- package/esm2015/abstract/slider/slider.js +12 -12
- package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
- package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
- package/esm2015/components/accordion/accordion-item/accordion-item.component.js +11 -11
- package/esm2015/components/accordion/accordion.component.js +2 -2
- package/esm2015/components/action/action.component.js +9 -9
- package/esm2015/components/arrow/arrow-options.js +5 -5
- package/esm2015/components/arrow/arrow.component.js +2 -2
- package/esm2015/components/avatar/avatar-options.js +3 -3
- package/esm2015/components/avatar/avatar.component.js +12 -12
- package/esm2015/components/badge/badge.component.js +15 -15
- package/esm2015/components/badged-content/badged-content.component.js +22 -22
- package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +4 -4
- package/esm2015/components/calendar-month/calendar-month.component.js +3 -3
- package/esm2015/components/calendar-range/calendar-range.component.js +4 -4
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
- package/esm2015/components/carousel/carousel-buttons.directive.js +4 -4
- package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
- package/esm2015/components/carousel/carousel.component.js +10 -10
- package/esm2015/components/carousel/carousel.directive.js +3 -3
- package/esm2015/components/checkbox/checkbox.component.js +4 -4
- package/esm2015/components/checkbox-block/checkbox-block.component.js +9 -9
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
- package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
- package/esm2015/components/combo-box/combo-box.component.js +7 -7
- package/esm2015/components/combo-box/combo-box.directive.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.js +3 -3
- package/esm2015/components/field-error/field-error.component.js +6 -6
- package/esm2015/components/files/file/file.component.js +20 -20
- package/esm2015/components/files/files.component.js +2 -2
- package/esm2015/components/filter/filter.component.js +4 -4
- package/esm2015/components/input/input.component.js +5 -5
- package/esm2015/components/input/input.directive.js +2 -2
- package/esm2015/components/input-copy/input-copy.component.js +8 -8
- package/esm2015/components/input-copy/input-copy.directive.js +2 -2
- package/esm2015/components/input-count/input-count-options.js +6 -6
- package/esm2015/components/input-count/input-count.component.js +12 -12
- package/esm2015/components/input-count/input-count.directive.js +4 -4
- package/esm2015/components/input-date/input-date.component.js +9 -9
- package/esm2015/components/input-date/input-date.directive.js +3 -3
- package/esm2015/components/input-date-range/input-date-range.component.js +13 -13
- package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
- package/esm2015/components/input-date-time/input-date-time.component.js +15 -15
- package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
- package/esm2015/components/input-file/file/file.component.js +18 -18
- package/esm2015/components/input-file/input-file.component.js +18 -18
- package/esm2015/components/input-files/input-files.component.js +16 -16
- package/esm2015/components/input-inline/input-inline.component.js +5 -5
- package/esm2015/components/input-month/input-month.component.js +4 -4
- package/esm2015/components/input-month/input-month.directive.js +3 -3
- package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
- package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
- package/esm2015/components/input-number/input-number.component.js +21 -21
- package/esm2015/components/input-number/input-number.directive.js +3 -3
- package/esm2015/components/input-password/input-password-options.js +4 -4
- package/esm2015/components/input-password/input-password.component.js +5 -5
- package/esm2015/components/input-password/input-password.directive.js +3 -3
- package/esm2015/components/input-phone/input-phone.component.js +30 -30
- package/esm2015/components/input-phone/input-phone.directive.js +3 -3
- package/esm2015/components/input-phone/input-phone.options.js +4 -4
- package/esm2015/components/input-phone/input-phone.providers.js +3 -3
- package/esm2015/components/input-phone-international/const/countries.js +215 -215
- package/esm2015/components/input-phone-international/country-iso-code.js +1 -1
- package/esm2015/components/input-phone-international/input-phone-international.component.js +14 -14
- package/esm2015/components/input-phone-international/input-phone-international.options.js +2 -2
- package/esm2015/components/input-phone-international/tokens/countries-masks.js +2 -2
- package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +2 -2
- package/esm2015/components/input-range/input-range.component.js +17 -17
- package/esm2015/components/input-slider/input-slider.component.js +31 -22
- package/esm2015/components/input-tag/input-tag-options.js +3 -3
- package/esm2015/components/input-tag/input-tag.component.js +23 -23
- package/esm2015/components/input-time/input-time-options.js +6 -6
- package/esm2015/components/input-time/input-time.component.js +9 -9
- package/esm2015/components/island/island.component.js +19 -19
- package/esm2015/components/line-clamp/line-clamp-options.js +2 -2
- package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
- package/esm2015/components/marker-icon/marker-icon.component.js +7 -7
- package/esm2015/components/multi-select/hide-selected.pipe.js +2 -2
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
- package/esm2015/components/multi-select/multi-select-options.js +3 -3
- package/esm2015/components/multi-select/multi-select.component.js +10 -10
- package/esm2015/components/multi-select-option/multi-select-option.component.js +3 -3
- package/esm2015/components/pagination/pagination.component.js +8 -8
- package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -6
- package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
- package/esm2015/components/pdf-viewer/pdf-viewer.service.js +3 -3
- package/esm2015/components/progress/progress-bar/progress-bar.component.js +6 -6
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +7 -7
- package/esm2015/components/progress/progress-label/progress-label.component.js +2 -2
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +8 -8
- package/esm2015/components/progress/utils/calculate-color-segments.js +2 -2
- package/esm2015/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
- package/esm2015/components/progress/utils/progress-color-segments.pipe.js +2 -2
- package/esm2015/components/radio/radio-options.js +3 -3
- package/esm2015/components/radio/radio.component.js +7 -7
- package/esm2015/components/radio-block/radio-block.component.js +10 -10
- package/esm2015/components/radio-group/radio-group.component.js +2 -2
- package/esm2015/components/radio-labeled/radio-labeled.component.js +6 -6
- package/esm2015/components/radio-list/radio-list.component.js +6 -6
- package/esm2015/components/range/range-change.directive.js +10 -10
- package/esm2015/components/range/range.component.js +23 -23
- package/esm2015/components/rating/rating-options.js +4 -4
- package/esm2015/components/rating/rating.component.js +5 -5
- package/esm2015/components/select/select-options.js +3 -3
- package/esm2015/components/select/select.component.js +4 -4
- package/esm2015/components/select/select.directive.js +2 -2
- package/esm2015/components/select-option/select-option.component.js +3 -3
- package/esm2015/components/slider/helpers/slider-key-steps.directive.js +11 -11
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
- package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
- package/esm2015/components/slider/slider-old.component.js +2 -2
- package/esm2015/components/slider/slider-options.js +4 -4
- package/esm2015/components/slider/slider.component.js +9 -9
- package/esm2015/components/stepper/step/step.component.js +12 -12
- package/esm2015/components/stepper/stepper.component.js +15 -15
- package/esm2015/components/tabs/tab/tab.component.js +8 -8
- package/esm2015/components/tabs/tab/tab.providers.js +4 -4
- package/esm2015/components/tabs/tabs/tabs.component.js +13 -13
- package/esm2015/components/tabs/tabs-options.js +2 -2
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
- package/esm2015/components/tabs/underline/underline.component.js +13 -13
- package/esm2015/components/tag/tag-options.js +4 -4
- package/esm2015/components/tag/tag.component.js +22 -22
- package/esm2015/components/text-area/text-area.component.js +17 -17
- package/esm2015/components/text-area/text-area.directive.js +2 -2
- package/esm2015/components/toggle/toggle-options.js +5 -5
- package/esm2015/components/toggle/toggle.component.js +8 -8
- package/esm2015/components/tree/components/tree/tree.component.js +3 -3
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +4 -4
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
- package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
- package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
- package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
- package/esm2015/components/tree/misc/tree.tokens.js +9 -9
- package/esm2015/constants/date-time-separator.js +2 -2
- package/esm2015/constants/group-class-names.js +10 -10
- package/esm2015/constants/icon-blank.js +2 -2
- package/esm2015/constants/masks.js +7 -7
- package/esm2015/constants/router-link-options.js +2 -2
- package/esm2015/directives/dropdown-context/dropdown-context.directive.js +11 -11
- package/esm2015/directives/dropdown-hover/dropdown-hover.directive.js +5 -5
- package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +13 -13
- package/esm2015/directives/highlight/highlight.directive.js +11 -11
- package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
- package/esm2015/directives/present/present.directive.js +6 -6
- package/esm2015/directives/project-class/project-class.directive.js +3 -3
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
- package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
- package/esm2015/enums/borders.js +1 -1
- package/esm2015/enums/dropdown-position.js +1 -1
- package/esm2015/enums/file-state.js +1 -1
- package/esm2015/enums/marker-icon-mode.js +1 -1
- package/esm2015/enums/status.js +1 -1
- package/esm2015/enums/step-state.js +1 -1
- package/esm2015/enums/text-align.js +1 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
- package/esm2015/pipes/field-error/field-error-content-pipe.js +4 -4
- package/esm2015/pipes/field-error/field-error-pipe.js +6 -6
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
- package/esm2015/pipes/filter-by-input/filter-by-input.base.js +3 -3
- package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
- package/esm2015/pipes/stringify/stringify.pipe.js +3 -3
- package/esm2015/pipes/stringify-content/stringify-content.pipe.js +2 -2
- package/esm2015/providers/month-formatter.provider.js +2 -2
- package/esm2015/providers/specific-dropdown-controllers.js +3 -3
- package/esm2015/tokens/calendar-data-stream.js +2 -2
- package/esm2015/tokens/date-inputs-value-transformers.js +4 -4
- package/esm2015/tokens/i18n.js +28 -28
- package/esm2015/tokens/items-handlers.js +2 -2
- package/esm2015/tokens/mobile-aware.js +2 -2
- package/esm2015/tokens/mobile-calendar.js +2 -2
- package/esm2015/tokens/month-formatter.js +2 -2
- package/esm2015/tokens/tab-margin.js +2 -2
- package/esm2015/tokens/tag-status.js +2 -2
- package/esm2015/tokens/validation-errors.js +2 -2
- package/esm2015/utils/dom/get-word-range.js +5 -5
- package/esm2015/utils/files/format-size.js +2 -2
- package/esm2015/utils/files/get-accept-array.js +2 -2
- package/esm2015/utils/format/string-hash-to-hsl.js +3 -3
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +6 -6
- package/esm2015/utils/mask/create-date-mask.js +5 -5
- package/esm2015/utils/mask/create-date-range-mask.js +2 -2
- package/esm2015/utils/mask/create-time-mask.js +4 -4
- package/esm2015/utils/math/horizontal-direction-to-number.js +3 -3
- package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +7 -7
- package/esm2015/utils/miscellaneous/get-precision.js +2 -2
- package/esm2015/validators/unfinished.validator.js +2 -2
- package/esm5/abstract/input-slider.js +12 -12
- package/esm5/abstract/slider/slider.js +12 -12
- package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
- package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
- package/esm5/components/accordion/accordion-item/accordion-item.component.js +11 -11
- package/esm5/components/accordion/accordion.component.js +2 -2
- package/esm5/components/action/action.component.js +9 -9
- package/esm5/components/arrow/arrow-options.js +5 -5
- package/esm5/components/arrow/arrow.component.js +2 -2
- package/esm5/components/avatar/avatar-options.js +3 -3
- package/esm5/components/avatar/avatar.component.js +12 -12
- package/esm5/components/badge/badge.component.js +15 -15
- package/esm5/components/badged-content/badged-content.component.js +22 -22
- package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +5 -5
- package/esm5/components/breadcrumbs/breadcrumbs.component.js +4 -4
- package/esm5/components/calendar-month/calendar-month.component.js +3 -3
- package/esm5/components/calendar-range/calendar-range.component.js +4 -4
- package/esm5/components/carousel/carousel-autoscroll.directive.js +3 -3
- package/esm5/components/carousel/carousel-buttons.directive.js +4 -4
- package/esm5/components/carousel/carousel-scroll.directive.js +3 -3
- package/esm5/components/carousel/carousel.component.js +10 -10
- package/esm5/components/carousel/carousel.directive.js +3 -3
- package/esm5/components/checkbox/checkbox.component.js +4 -4
- package/esm5/components/checkbox-block/checkbox-block.component.js +9 -9
- package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +5 -5
- package/esm5/components/combo-box/combo-box-strict.directive.js +3 -3
- package/esm5/components/combo-box/combo-box.component.js +7 -7
- package/esm5/components/combo-box/combo-box.directive.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-wrapper.js +3 -3
- package/esm5/components/field-error/field-error.component.js +6 -6
- package/esm5/components/files/file/file.component.js +20 -20
- package/esm5/components/files/files.component.js +2 -2
- package/esm5/components/filter/filter.component.js +4 -4
- package/esm5/components/input/input.component.js +5 -5
- package/esm5/components/input/input.directive.js +2 -2
- package/esm5/components/input-copy/input-copy.component.js +8 -8
- package/esm5/components/input-copy/input-copy.directive.js +2 -2
- package/esm5/components/input-count/input-count-options.js +6 -6
- package/esm5/components/input-count/input-count.component.js +12 -12
- package/esm5/components/input-count/input-count.directive.js +4 -4
- package/esm5/components/input-date/input-date.component.js +9 -9
- package/esm5/components/input-date/input-date.directive.js +3 -3
- package/esm5/components/input-date-range/input-date-range.component.js +13 -13
- package/esm5/components/input-date-range/input-date-range.directive.js +3 -3
- package/esm5/components/input-date-time/input-date-time.component.js +15 -15
- package/esm5/components/input-date-time/input-date-time.directive.js +3 -3
- package/esm5/components/input-file/file/file.component.js +18 -18
- package/esm5/components/input-file/input-file.component.js +18 -18
- package/esm5/components/input-files/input-files.component.js +16 -16
- package/esm5/components/input-inline/input-inline.component.js +5 -5
- package/esm5/components/input-month/input-month.component.js +4 -4
- package/esm5/components/input-month/input-month.directive.js +3 -3
- package/esm5/components/input-month-range/input-month-range.component.js +5 -5
- package/esm5/components/input-month-range/input-month-range.directive.js +4 -4
- package/esm5/components/input-number/input-number.component.js +21 -21
- package/esm5/components/input-number/input-number.directive.js +3 -3
- package/esm5/components/input-password/input-password-options.js +4 -4
- package/esm5/components/input-password/input-password.component.js +5 -5
- package/esm5/components/input-password/input-password.directive.js +3 -3
- package/esm5/components/input-phone/input-phone.component.js +30 -30
- package/esm5/components/input-phone/input-phone.directive.js +3 -3
- package/esm5/components/input-phone/input-phone.options.js +4 -4
- package/esm5/components/input-phone/input-phone.providers.js +3 -3
- package/esm5/components/input-phone-international/const/countries.js +215 -215
- package/esm5/components/input-phone-international/country-iso-code.js +1 -1
- package/esm5/components/input-phone-international/input-phone-international.component.js +14 -14
- package/esm5/components/input-phone-international/input-phone-international.options.js +2 -2
- package/esm5/components/input-phone-international/tokens/countries-masks.js +2 -2
- package/esm5/components/input-phone-international/utils/extract-value-from-event.js +2 -2
- package/esm5/components/input-range/input-range.component.js +17 -17
- package/esm5/components/input-slider/input-slider.component.js +35 -22
- package/esm5/components/input-tag/input-tag-options.js +3 -3
- package/esm5/components/input-tag/input-tag.component.js +23 -23
- package/esm5/components/input-time/input-time-options.js +6 -6
- package/esm5/components/input-time/input-time.component.js +9 -9
- package/esm5/components/island/island.component.js +19 -19
- package/esm5/components/line-clamp/line-clamp-options.js +2 -2
- package/esm5/components/line-clamp/line-clamp.component.js +9 -9
- package/esm5/components/marker-icon/marker-icon.component.js +7 -7
- package/esm5/components/multi-select/hide-selected.pipe.js +2 -2
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
- package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
- package/esm5/components/multi-select/multi-select-options.js +3 -3
- package/esm5/components/multi-select/multi-select.component.js +10 -10
- package/esm5/components/multi-select-option/multi-select-option.component.js +3 -3
- package/esm5/components/pagination/pagination.component.js +8 -8
- package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -6
- package/esm5/components/pdf-viewer/pdf-viewer.directive.js +4 -4
- package/esm5/components/pdf-viewer/pdf-viewer.service.js +3 -3
- package/esm5/components/progress/progress-bar/progress-bar.component.js +6 -6
- package/esm5/components/progress/progress-bar/progress-color-segments.directive.js +5 -5
- package/esm5/components/progress/progress-circle/progress-circle.component.js +7 -7
- package/esm5/components/progress/progress-label/progress-label.component.js +2 -2
- package/esm5/components/progress/progress-segmented/progress-segmented.component.js +8 -8
- package/esm5/components/progress/utils/calculate-color-segments.js +2 -2
- package/esm5/components/progress/utils/progress-color-segments-async.pipe.js +2 -2
- package/esm5/components/progress/utils/progress-color-segments.pipe.js +2 -2
- package/esm5/components/radio/radio-options.js +3 -3
- package/esm5/components/radio/radio.component.js +7 -7
- package/esm5/components/radio-block/radio-block.component.js +10 -10
- package/esm5/components/radio-group/radio-group.component.js +2 -2
- package/esm5/components/radio-labeled/radio-labeled.component.js +6 -6
- package/esm5/components/radio-list/radio-list.component.js +6 -6
- package/esm5/components/range/range-change.directive.js +12 -12
- package/esm5/components/range/range.component.js +23 -23
- package/esm5/components/rating/rating-options.js +4 -4
- package/esm5/components/rating/rating.component.js +5 -5
- package/esm5/components/select/select-options.js +3 -3
- package/esm5/components/select/select.component.js +4 -4
- package/esm5/components/select/select.directive.js +2 -2
- package/esm5/components/select-option/select-option.component.js +3 -3
- package/esm5/components/slider/helpers/slider-key-steps.directive.js +11 -11
- package/esm5/components/slider/helpers/slider-readonly.directive.js +15 -15
- package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +4 -4
- package/esm5/components/slider/slider-old.component.js +2 -2
- package/esm5/components/slider/slider-options.js +4 -4
- package/esm5/components/slider/slider.component.js +9 -9
- package/esm5/components/stepper/step/step.component.js +12 -12
- package/esm5/components/stepper/stepper.component.js +15 -15
- package/esm5/components/tabs/tab/tab.component.js +8 -8
- package/esm5/components/tabs/tab/tab.providers.js +4 -4
- package/esm5/components/tabs/tabs/tabs.component.js +13 -13
- package/esm5/components/tabs/tabs-options.js +2 -2
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.providers.js +2 -2
- package/esm5/components/tabs/underline/underline.component.js +13 -13
- package/esm5/components/tag/tag-options.js +4 -4
- package/esm5/components/tag/tag.component.js +22 -22
- package/esm5/components/text-area/text-area.component.js +17 -17
- package/esm5/components/text-area/text-area.directive.js +2 -2
- package/esm5/components/toggle/toggle-options.js +5 -5
- package/esm5/components/toggle/toggle.component.js +8 -8
- package/esm5/components/tree/components/tree/tree.component.js +3 -3
- package/esm5/components/tree/components/tree-item/tree-item.component.js +4 -4
- package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +3 -3
- package/esm5/components/tree/directives/tree-children.directive.js +2 -2
- package/esm5/components/tree/directives/tree-controller.directive.js +4 -4
- package/esm5/components/tree/directives/tree-item-controller.directive.js +4 -4
- package/esm5/components/tree/directives/tree-node.directive.js +3 -3
- package/esm5/components/tree/misc/tree.tokens.js +9 -9
- package/esm5/constants/date-time-separator.js +2 -2
- package/esm5/constants/group-class-names.js +10 -10
- package/esm5/constants/icon-blank.js +2 -2
- package/esm5/constants/masks.js +7 -7
- package/esm5/constants/router-link-options.js +2 -2
- package/esm5/directives/dropdown-context/dropdown-context.directive.js +11 -11
- package/esm5/directives/dropdown-hover/dropdown-hover.directive.js +7 -7
- package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +13 -13
- package/esm5/directives/highlight/highlight.directive.js +11 -11
- package/esm5/directives/lazy-loading/lazy-loading.directive.js +12 -12
- package/esm5/directives/present/present.directive.js +6 -6
- package/esm5/directives/project-class/project-class.directive.js +3 -3
- package/esm5/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
- package/esm5/directives/value-accessor/value-accessor.directive.js +2 -2
- package/esm5/enums/borders.js +1 -1
- package/esm5/enums/dropdown-position.js +1 -1
- package/esm5/enums/file-state.js +1 -1
- package/esm5/enums/marker-icon-mode.js +1 -1
- package/esm5/enums/status.js +1 -1
- package/esm5/enums/step-state.js +1 -1
- package/esm5/enums/text-align.js +1 -1
- package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
- package/esm5/pipes/field-error/field-error-content-pipe.js +4 -4
- package/esm5/pipes/field-error/field-error-pipe.js +6 -6
- package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +2 -2
- package/esm5/pipes/filter-by-input/filter-by-input.base.js +3 -3
- package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +2 -2
- package/esm5/pipes/stringify/stringify.pipe.js +3 -3
- package/esm5/pipes/stringify-content/stringify-content.pipe.js +2 -2
- package/esm5/providers/month-formatter.provider.js +2 -2
- package/esm5/providers/specific-dropdown-controllers.js +3 -3
- package/esm5/tokens/calendar-data-stream.js +2 -2
- package/esm5/tokens/date-inputs-value-transformers.js +4 -4
- package/esm5/tokens/i18n.js +28 -28
- package/esm5/tokens/items-handlers.js +2 -2
- package/esm5/tokens/mobile-aware.js +2 -2
- package/esm5/tokens/mobile-calendar.js +2 -2
- package/esm5/tokens/month-formatter.js +2 -2
- package/esm5/tokens/tab-margin.js +2 -2
- package/esm5/tokens/tag-status.js +2 -2
- package/esm5/tokens/validation-errors.js +2 -2
- package/esm5/utils/dom/get-word-range.js +5 -5
- package/esm5/utils/files/format-size.js +2 -2
- package/esm5/utils/files/get-accept-array.js +2 -2
- package/esm5/utils/format/string-hash-to-hsl.js +3 -3
- package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +2 -2
- package/esm5/utils/mask/create-auto-corrected-time-pipe.js +6 -6
- package/esm5/utils/mask/create-date-mask.js +5 -5
- package/esm5/utils/mask/create-date-range-mask.js +2 -2
- package/esm5/utils/mask/create-time-mask.js +2 -2
- package/esm5/utils/math/horizontal-direction-to-number.js +3 -3
- package/esm5/utils/miscellaneous/create-default-day-range-periods.js +7 -7
- package/esm5/utils/miscellaneous/get-precision.js +2 -2
- package/esm5/validators/unfinished.validator.js +2 -2
- package/fesm2015/taiga-ui-kit-abstract.js +22 -22
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +13 -13
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +8 -8
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +5 -5
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +13 -13
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +14 -14
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +21 -21
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +7 -7
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +2 -2
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +3 -3
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +18 -18
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +8 -8
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +3 -3
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -9
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +4 -4
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-field-error.js +5 -5
- package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +20 -20
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +3 -3
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +8 -8
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +19 -19
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +14 -14
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +16 -16
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +10 -10
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +34 -34
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +15 -15
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +22 -22
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +9 -9
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +230 -230
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +36 -36
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +16 -16
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +30 -22
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +24 -24
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +13 -13
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js +18 -18
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +9 -9
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +6 -6
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +2 -2
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +17 -17
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +10 -10
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +26 -26
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +9 -9
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -5
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +5 -5
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +8 -8
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +31 -31
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +7 -7
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +2 -2
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +6 -6
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +39 -39
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +25 -25
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +41 -41
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +24 -24
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +17 -17
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +11 -11
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +24 -24
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +18 -18
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +10 -10
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js +4 -4
- package/fesm2015/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +12 -12
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +5 -5
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-enums.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +8 -8
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +4 -4
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +2 -2
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +3 -3
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +38 -38
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-dom.js +4 -4
- package/fesm2015/taiga-ui-kit-utils-dom.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-files.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +14 -14
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +2 -2
- package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +7 -7
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +1 -1
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +22 -22
- package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-accordion.js +13 -13
- package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-action.js +8 -8
- package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-arrow.js +5 -5
- package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js +13 -13
- package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js +14 -14
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js +21 -21
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js +7 -7
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +2 -2
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js +3 -3
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-carousel.js +18 -18
- package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox-block.js +8 -8
- package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
- package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox.js +3 -3
- package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-combo-box.js +9 -9
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +4 -4
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-field-error.js +5 -5
- package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-files.js +20 -20
- package/fesm5/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js +3 -3
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-copy.js +8 -8
- package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +19 -19
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +14 -14
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +16 -16
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +10 -10
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +34 -34
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-files.js +15 -15
- package/fesm5/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month-range.js +7 -7
- package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +22 -22
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +9 -9
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +230 -230
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +36 -36
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +16 -16
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +34 -22
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +24 -24
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +13 -13
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input.js +5 -5
- package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-island.js +18 -18
- package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-line-clamp.js +9 -9
- package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-marker-icon.js +6 -6
- package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select-option.js +2 -2
- package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +17 -17
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -10
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-progress.js +26 -26
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-block.js +9 -9
- package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-group.js +1 -1
- package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-labeled.js +5 -5
- package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-list.js +5 -5
- package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js +8 -8
- package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-range.js +33 -33
- package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-rating.js +7 -7
- package/fesm5/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select-option.js +2 -2
- package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +6 -6
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +39 -39
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js +25 -25
- package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +41 -41
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js +24 -24
- package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +17 -17
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +11 -11
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tree.js +24 -24
- package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm5/taiga-ui-kit-constants.js +18 -18
- package/fesm5/taiga-ui-kit-constants.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js +10 -10
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-hover.js +6 -6
- package/fesm5/taiga-ui-kit-directives-dropdown-hover.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +12 -12
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-highlight.js +10 -10
- package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js +11 -11
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-present.js +5 -5
- package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-project-class.js +2 -2
- package/fesm5/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-unfinished-validator.js +4 -4
- package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-value-accessor.js +1 -1
- package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm5/taiga-ui-kit-enums.js.map +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-field-error.js +8 -8
- package/fesm5/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +4 -4
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify-content.js +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify.js +2 -2
- package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm5/taiga-ui-kit-providers.js +3 -3
- package/fesm5/taiga-ui-kit-providers.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +38 -38
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-dom.js +4 -4
- package/fesm5/taiga-ui-kit-utils-dom.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-files.js +2 -2
- package/fesm5/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-format.js +2 -2
- package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-mask.js +12 -12
- package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-math.js +2 -2
- package/fesm5/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-miscellaneous.js +7 -7
- package/fesm5/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm5/taiga-ui-kit-validators.js +1 -1
- package/fesm5/taiga-ui-kit-validators.js.map +1 -1
- package/package.json +4 -4
|
@@ -13,8 +13,8 @@ var TuiHighlightDirective = /** @class */ (function () {
|
|
|
13
13
|
this.renderer = renderer;
|
|
14
14
|
this.highlight = this.setUpHighlight();
|
|
15
15
|
this.treeWalker = this.documentRef.createTreeWalker(this.elementRef.nativeElement, NodeFilter.SHOW_TEXT, svgNodeFilter, false);
|
|
16
|
-
this.tuiHighlight =
|
|
17
|
-
this.tuiHighlightColor =
|
|
16
|
+
this.tuiHighlight = "";
|
|
17
|
+
this.tuiHighlightColor = "var(--tui-selection)";
|
|
18
18
|
resize$.subscribe(function () {
|
|
19
19
|
_this.updateStyles();
|
|
20
20
|
});
|
|
@@ -30,7 +30,7 @@ var TuiHighlightDirective = /** @class */ (function () {
|
|
|
30
30
|
this.updateStyles();
|
|
31
31
|
};
|
|
32
32
|
TuiHighlightDirective.prototype.updateStyles = function () {
|
|
33
|
-
this.highlight.style.display =
|
|
33
|
+
this.highlight.style.display = "none";
|
|
34
34
|
if (!this.match) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
@@ -51,7 +51,7 @@ var TuiHighlightDirective = /** @class */ (function () {
|
|
|
51
51
|
style.top = px(top_1 - hostRect.top);
|
|
52
52
|
style.width = px(width);
|
|
53
53
|
style.height = px(height);
|
|
54
|
-
style.display =
|
|
54
|
+
style.display = "block";
|
|
55
55
|
return;
|
|
56
56
|
} while (this.treeWalker.nextNode());
|
|
57
57
|
};
|
|
@@ -61,11 +61,11 @@ var TuiHighlightDirective = /** @class */ (function () {
|
|
|
61
61
|
: source.toLowerCase().indexOf(this.tuiHighlight.toLowerCase());
|
|
62
62
|
};
|
|
63
63
|
TuiHighlightDirective.prototype.setUpHighlight = function () {
|
|
64
|
-
var highlight = this.renderer.createElement(
|
|
64
|
+
var highlight = this.renderer.createElement("div");
|
|
65
65
|
var style = highlight.style;
|
|
66
66
|
style.background = this.tuiHighlightColor;
|
|
67
|
-
style.zIndex =
|
|
68
|
-
style.position =
|
|
67
|
+
style.zIndex = "-1";
|
|
68
|
+
style.position = "absolute";
|
|
69
69
|
this.renderer.appendChild(this.elementRef.nativeElement, highlight);
|
|
70
70
|
return highlight;
|
|
71
71
|
};
|
|
@@ -84,10 +84,10 @@ var TuiHighlightDirective = /** @class */ (function () {
|
|
|
84
84
|
], TuiHighlightDirective.prototype, "tuiHighlightColor", void 0);
|
|
85
85
|
TuiHighlightDirective = __decorate([
|
|
86
86
|
Directive({
|
|
87
|
-
selector:
|
|
87
|
+
selector: "[tuiHighlight]",
|
|
88
88
|
host: {
|
|
89
|
-
'[style.position]':
|
|
90
|
-
'[style.zIndex]':
|
|
89
|
+
'[style.position]': "\"relative\"",
|
|
90
|
+
'[style.zIndex]': "0",
|
|
91
91
|
},
|
|
92
92
|
providers: [TuiDestroyService, TuiResizeService],
|
|
93
93
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-highlight.js","sources":["ng://@taiga-ui/kit/directives/highlight/highlight.directive.ts","ng://@taiga-ui/kit/directives/highlight/highlight.module.ts","ng://@taiga-ui/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input, OnChanges, Renderer2} from '@angular/core';\nimport {\n px,\n svgNodeFilter,\n tuiDefaultProp,\n TuiDestroyService,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-highlight.js","sources":["ng://@taiga-ui/kit/directives/highlight/highlight.directive.ts","ng://@taiga-ui/kit/directives/highlight/highlight.module.ts","ng://@taiga-ui/kit/directives/highlight/taiga-ui-kit-directives-highlight.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, ElementRef, Inject, Input, OnChanges, Renderer2} from '@angular/core';\nimport {\n px,\n svgNodeFilter,\n tuiDefaultProp,\n TuiDestroyService,\n TuiResizeService,\n} from '@taiga-ui/cdk';\nimport {Observable} from 'rxjs';\n\n// @dynamic\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.documentRef.createTreeWalker(\n this.elementRef.nativeElement,\n NodeFilter.SHOW_TEXT,\n svgNodeFilter,\n false,\n );\n\n @Input()\n @tuiDefaultProp()\n tuiHighlight = ``;\n\n @Input()\n tuiHighlightColor = `var(--tui-selection)`;\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(ElementRef) private readonly elementRef: 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.elementRef.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.elementRef.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.documentRef.createRange();\n\n range.setStart(this.treeWalker.currentNode, index);\n range.setEnd(this.treeWalker.currentNode, index + this.tuiHighlight.length);\n\n const hostRect = this.elementRef.nativeElement.getBoundingClientRect();\n const {left, top, width, height} = range.getBoundingClientRect();\n const {style} = this.highlight;\n\n style.background = this.tuiHighlightColor;\n style.left = px(left - hostRect.left);\n style.top = px(top - hostRect.top);\n style.width = px(width);\n style.height = px(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.elementRef.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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA;;IA0BI,+BACuC,WAAqB,EACnB,UAAmC,EACpC,QAAmB,EAC7B,OAA4B;QAJ1D,iBASC;QARsC,gBAAW,GAAX,WAAW,CAAU;QACnB,eAAU,GAAV,UAAU,CAAyB;QACpC,aAAQ,GAAR,QAAQ,CAAW;QAnB1C,cAAS,GAAgB,IAAI,CAAC,cAAc,EAAE,CAAC;QAE/C,eAAU,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAC3D,IAAI,CAAC,UAAU,CAAC,aAAa,EAC7B,UAAU,CAAC,SAAS,EACpB,aAAa,EACb,KAAK,CACR,CAAC;QAIF,iBAAY,GAAG,EAAE,CAAC;QAGlB,sBAAiB,GAAG,sBAAsB,CAAC;QAQvC,OAAO,CAAC,SAAS,CAAC;YACd,KAAI,CAAC,YAAY,EAAE,CAAC;SACvB,CAAC,CAAC;KACN;IAED,sBAAI,wCAAK;aAAT;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;SACzE;;;OAAA;IAED,2CAAW,GAAX;QACI,IAAI,CAAC,YAAY,EAAE,CAAC;KACvB;IAEO,4CAAY,GAApB;QACI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACb,OAAO;SACV;QAED,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAE5D,GAAG;YACC,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU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AD,yBAAC;CAAlC;;ACRA;;;;;;"}
|
|
@@ -43,8 +43,8 @@ var TuiLazyLoadingDirective = /** @class */ (function () {
|
|
|
43
43
|
var _this = this;
|
|
44
44
|
this.src$ = src$;
|
|
45
45
|
this.elementRef = elementRef;
|
|
46
|
-
this.animation =
|
|
47
|
-
this.background =
|
|
46
|
+
this.animation = "tuiSkeletonVibe ease-in-out 1s infinite alternate";
|
|
47
|
+
this.background = "rgba(0, 0, 0, .16)";
|
|
48
48
|
this.src = null;
|
|
49
49
|
if (!this.supported) {
|
|
50
50
|
this.src$.subscribe(function (src) {
|
|
@@ -62,37 +62,37 @@ var TuiLazyLoadingDirective = /** @class */ (function () {
|
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(TuiLazyLoadingDirective.prototype, "supported", {
|
|
64
64
|
get: function () {
|
|
65
|
-
return
|
|
65
|
+
return "loading" in this.elementRef.nativeElement;
|
|
66
66
|
},
|
|
67
67
|
enumerable: true,
|
|
68
68
|
configurable: true
|
|
69
69
|
});
|
|
70
70
|
TuiLazyLoadingDirective.prototype.onLoad = function () {
|
|
71
|
-
this.background =
|
|
72
|
-
this.animation =
|
|
71
|
+
this.background = "";
|
|
72
|
+
this.animation = "";
|
|
73
73
|
};
|
|
74
74
|
TuiLazyLoadingDirective.ctorParameters = function () { return [
|
|
75
75
|
{ type: TuiLazyLoadingService, decorators: [{ type: Inject, args: [TuiLazyLoadingService,] }] },
|
|
76
76
|
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
77
77
|
]; };
|
|
78
78
|
__decorate([
|
|
79
|
-
Input(
|
|
79
|
+
Input("src")
|
|
80
80
|
], TuiLazyLoadingDirective.prototype, "srcSetter", null);
|
|
81
81
|
__decorate([
|
|
82
|
-
HostBinding(
|
|
82
|
+
HostBinding("style.animation")
|
|
83
83
|
], TuiLazyLoadingDirective.prototype, "animation", void 0);
|
|
84
84
|
__decorate([
|
|
85
|
-
HostBinding(
|
|
85
|
+
HostBinding("style.background")
|
|
86
86
|
], TuiLazyLoadingDirective.prototype, "background", void 0);
|
|
87
87
|
__decorate([
|
|
88
|
-
HostBinding(
|
|
88
|
+
HostBinding("attr.src")
|
|
89
89
|
], TuiLazyLoadingDirective.prototype, "src", void 0);
|
|
90
90
|
__decorate([
|
|
91
|
-
HostListener(
|
|
91
|
+
HostListener("load")
|
|
92
92
|
], TuiLazyLoadingDirective.prototype, "onLoad", null);
|
|
93
93
|
TuiLazyLoadingDirective = __decorate([
|
|
94
94
|
Directive({
|
|
95
|
-
selector:
|
|
95
|
+
selector: "img[loading=\"lazy\"]",
|
|
96
96
|
providers: [TuiLazyLoadingService, IntersectionObserverService, TuiDestroyService],
|
|
97
97
|
}),
|
|
98
98
|
__param(0, Inject(TuiLazyLoadingService)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.service.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.directive.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.module.ts","ng://@taiga-ui/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, Inject, Injectable} from '@angular/core';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {Observable, of, Subject} from 'rxjs';\nimport {catchError, filter, mapTo, switchMap, take, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<string> {\n private readonly src$ = new Subject<string>();\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @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 mapTo(src),\n catchError(() => of(src)),\n watch(changeDetectorRef),\n take(1),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe(subscriber),\n );\n }\n\n next(src: 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 {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:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-lazy-loading.js","sources":["ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.service.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.directive.ts","ng://@taiga-ui/kit/directives/lazy-loading/lazy-loading.module.ts","ng://@taiga-ui/kit/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.ts"],"sourcesContent":["import {ChangeDetectorRef, Inject, Injectable} from '@angular/core';\nimport {IntersectionObserverService} from '@ng-web-apis/intersection-observer';\nimport {TuiDestroyService, watch} from '@taiga-ui/cdk';\nimport {Observable, of, Subject} from 'rxjs';\nimport {catchError, filter, mapTo, switchMap, take, takeUntil} from 'rxjs/operators';\n\n@Injectable()\nexport class TuiLazyLoadingService extends Observable<string> {\n private readonly src$ = new Subject<string>();\n\n constructor(\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @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 mapTo(src),\n catchError(() => of(src)),\n watch(changeDetectorRef),\n take(1),\n ),\n ),\n takeUntil(destroy$),\n )\n .subscribe(subscriber),\n );\n }\n\n next(src: 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 {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: 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 = `rgba(0, 0, 0, .16)`;\n\n @HostBinding(`attr.src`)\n src: string | null = null;\n\n constructor(\n @Inject(TuiLazyLoadingService)\n private readonly src$: TuiLazyLoadingService,\n @Inject(ElementRef)\n private readonly elementRef: 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.elementRef.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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAO2C,yCAAkB;IAGzD,+BAC+B,iBAAoC,EACpC,QAA0B,EAErD,cAAuD;QAJ3D,YAMI,kBAAM,UAAA,UAAU;YACZ,OAAA,KAAI,CAAC,IAAI;iBACJ,IAAI,CACD,SAAS,CAAC,UAAA,GAAG;gBACT,OAAA,cAAc,CAAC,IAAI,CACf,MAAM,CAAC,UAAC,EAAkB;wBAAlB,kBAAkB,EAAhB,qCAAc;oB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Element, {
|
|
25
25
|
attributes: true,
|
|
26
|
-
attributeFilter: [
|
|
26
|
+
attributeFilter: ["style", "class"],
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
@@ -53,14 +53,14 @@ var TuiPresentDirective = /** @class */ (function () {
|
|
|
53
53
|
Output()
|
|
54
54
|
], TuiPresentDirective.prototype, "tuiPresentChange", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
HostListener(
|
|
57
|
-
HostListener(
|
|
56
|
+
HostListener("animationcancel", ["$event", "false"]),
|
|
57
|
+
HostListener("animationstart", ["$event", "true"])
|
|
58
58
|
], TuiPresentDirective.prototype, "onAnimation", null);
|
|
59
59
|
TuiPresentDirective = __decorate([
|
|
60
60
|
Directive({
|
|
61
|
-
selector:
|
|
61
|
+
selector: "[tuiPresentChange]",
|
|
62
62
|
host: {
|
|
63
|
-
'[style.animation]':
|
|
63
|
+
'[style.animation]': "\"tuiPresent 1s infinite\"",
|
|
64
64
|
},
|
|
65
65
|
}),
|
|
66
66
|
__param(0, Inject(ElementRef)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["ng://@taiga-ui/kit/directives/present/present.directive.ts","ng://@taiga-ui/kit/directives/present/present.module.ts","ng://@taiga-ui/kit/directives/present/taiga-ui-kit-directives-present.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 {isCurrentTarget, isFirefox} from '@taiga-ui/cdk';\nimport {BehaviorSubject} from 'rxjs';\nimport {distinctUntilChanged, skip} from 'rxjs/operators';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-present.js","sources":["ng://@taiga-ui/kit/directives/present/present.directive.ts","ng://@taiga-ui/kit/directives/present/present.module.ts","ng://@taiga-ui/kit/directives/present/taiga-ui-kit-directives-present.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 {isCurrentTarget, isFirefox} 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 (isFirefox(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`, [`$event`, `false`])\n @HostListener(`animationstart`, [`$event`, `true`])\n onAnimation(event: Event, visibility: boolean): void {\n if (isCurrentTarget(event)) {\n this.visibility$.next(visibility);\n }\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 {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,EAAE,MAAM,CAAC,CAAC;0DAKlD;IA/CQ,mBAAmB;QAN/B,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;YAC9B,IAAI,EAAE;gBACF,mBAAmB,EAAE,4BAA0B;aAClD;SACJ,CAAC;QAQO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OARd,mBAAmB,CAoD/B;IAAD,0BAAC;CApDD;;;ICXA;KAAgC;IAAnB,gBAAgB;QAJ5B,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mBAAmB,CAAC;YACnC,OAAO,EAAE,CAAC,mBAAmB,CAAC;SACjC,CAAC;OACW,gBAAgB,CAAG;IAAD,uBAAC;CAAhC;;ACRA;;;;;;"}
|
|
@@ -29,12 +29,12 @@ var TuiProjectClassDirective = /** @class */ (function () {
|
|
|
29
29
|
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
30
30
|
]; };
|
|
31
31
|
__decorate([
|
|
32
|
-
Input(
|
|
32
|
+
Input("tuiProjectClass"),
|
|
33
33
|
tuiDefaultProp()
|
|
34
34
|
], TuiProjectClassDirective.prototype, "classNames", void 0);
|
|
35
35
|
TuiProjectClassDirective = __decorate([
|
|
36
36
|
Directive({
|
|
37
|
-
selector:
|
|
37
|
+
selector: "[tuiProjectClass]",
|
|
38
38
|
}),
|
|
39
39
|
__param(0, Inject(ElementRef))
|
|
40
40
|
], TuiProjectClassDirective);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["ng://@taiga-ui/kit/directives/project-class/project-class.directive.ts","ng://@taiga-ui/kit/directives/project-class/project-class.module.ts","ng://@taiga-ui/kit/directives/project-class/taiga-ui-kit-directives-project-class.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n/**\n * A directive for projecting classes from nested children to host\n */\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-project-class.js","sources":["ng://@taiga-ui/kit/directives/project-class/project-class.directive.ts","ng://@taiga-ui/kit/directives/project-class/project-class.module.ts","ng://@taiga-ui/kit/directives/project-class/taiga-ui-kit-directives-project-class.ts"],"sourcesContent":["import {AfterViewChecked, Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\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 @tuiDefaultProp()\n classNames: readonly string[] = [];\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n ngAfterViewChecked(): void {\n if (!this.classNames.length) {\n return;\n }\n\n this.classNames.forEach(className => {\n const hostElement = this.elementRef.nativeElement;\n\n if (hostElement.querySelector(`.${className}`)) {\n hostElement.classList.add(className);\n } else {\n hostElement.classList.remove(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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;IAWI,kCACyC,UAAmC;QAAnC,eAAU,GAAV,UAAU,CAAyB;QAH5E,eAAU,GAAsB,EAAE,CAAC;KAI/B;IAEJ,qDAAkB,GAAlB;QAAA,iBAcC;QAbG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACzB,OAAO;SACV;QAED,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAA,SAAS;YAC7B,IAAM,WAAW,GAAG,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC;YAElD,IAAI,WAAW,CAAC,aAAa,CAAC,MAAI,SAAW,CAAC,EAAE;gBAC5C,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;aACxC;iBAAM;gBACH,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;aAC3C;SACJ,CAAC,CAAC;KACN;;gBAjBoD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;IAHtB;QAFC,KAAK,CAAC,iBAAiB,CAAC;QACxB,cAAc,EAAE;gEACkB;IAH1B,wBAAwB;QAHpC,SAAS,CAAC;YACP,QAAQ,EAAE,mBAAmB;SAChC,CAAC;QAOO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OANd,wBAAwB,CAwBpC;IAAD,+BAAC;CAxBD;;;ICDA;KAAqC;IAAxB,qBAAqB;QAJjC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,wBAAwB,CAAC;YACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;SACtC,CAAC;OACW,qBAAqB,CAAG;IAAD,4BAAC;CAArC;;ACRA;;;;;;"}
|
|
@@ -9,17 +9,17 @@ var TuiUnfinishedValidatorDirective = /** @class */ (function () {
|
|
|
9
9
|
var _this = this;
|
|
10
10
|
this.injector = injector;
|
|
11
11
|
this.message = message;
|
|
12
|
-
this.validate = tuiCreateUnfinishedValidator(function () { return _this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR); }, this.message ||
|
|
12
|
+
this.validate = tuiCreateUnfinishedValidator(function () { return _this.injector.get(TUI_FOCUSABLE_ITEM_ACCESSOR); }, this.message || "");
|
|
13
13
|
}
|
|
14
14
|
TuiUnfinishedValidatorDirective_1 = TuiUnfinishedValidatorDirective;
|
|
15
15
|
var TuiUnfinishedValidatorDirective_1;
|
|
16
16
|
TuiUnfinishedValidatorDirective.ctorParameters = function () { return [
|
|
17
17
|
{ type: Injector, decorators: [{ type: Inject, args: [Injector,] }] },
|
|
18
|
-
{ type: String, decorators: [{ type: Attribute, args: [
|
|
18
|
+
{ type: String, decorators: [{ type: Attribute, args: ["tuiUnfinishedValidator",] }] }
|
|
19
19
|
]; };
|
|
20
20
|
TuiUnfinishedValidatorDirective = TuiUnfinishedValidatorDirective_1 = __decorate([
|
|
21
21
|
Directive({
|
|
22
|
-
selector:
|
|
22
|
+
selector: "[tuiUnfinishedValidator]",
|
|
23
23
|
providers: [
|
|
24
24
|
{
|
|
25
25
|
provide: NG_VALIDATORS,
|
|
@@ -29,7 +29,7 @@ var TuiUnfinishedValidatorDirective = /** @class */ (function () {
|
|
|
29
29
|
],
|
|
30
30
|
}),
|
|
31
31
|
__param(0, Inject(Injector)),
|
|
32
|
-
__param(1, Attribute(
|
|
32
|
+
__param(1, Attribute("tuiUnfinishedValidator"))
|
|
33
33
|
], TuiUnfinishedValidatorDirective);
|
|
34
34
|
return TuiUnfinishedValidatorDirective;
|
|
35
35
|
}());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.directive.ts","ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.module.ts","ng://@taiga-ui/kit/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.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:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-unfinished-validator.js","sources":["ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.directive.ts","ng://@taiga-ui/kit/directives/unfinished-validator/unfinished-validator.module.ts","ng://@taiga-ui/kit/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.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 @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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;IAqBI,yCAEqB,QAAkB,EAElB,OAAsB;QAJ3C,iBAKI;QAHiB,aAAQ,GAAR,QAAQ,CAAU;QAElB,YAAO,GAAP,OAAO,CAAe;QATlC,aAAQ,GAAG,4BAA4B,CAC5C,cAAM,OAAA,KAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,GAAA,EACpD,IAAI,CAAC,OAAO,IAAI,EAAE,CACrB,CAAC;KAOE;wCAXK,+BAA+B;;;gBAQT,QAAQ,uBADlC,MAAM,SAAC,QAAQ;6CAEf,SAAS,SAAC,wBAAwB;;IAT9B,+BAA+B;QAV3C,SAAS,CAAC;YACP,QAAQ,EAAE,0BAA0B;YACpC,SAAS,EAAE;gBACP;oBACI,OAAO,EAAE,aAAa;oBACtB,WAAW,EAAE,iCAA+B;oBAC5C,KAAK,EAAE,IAAI;iBACd;aACJ;SACJ,CAAC;QAQO,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAEhB,WAAA,SAAS,CAAC,wBAAwB,CAAC,CAAA;OAT/B,+BAA+B,CAY3C;IAAD,sCAAC;CAZD;;;ICPA;KAA4C;IAA/B,4BAA4B;QAJxC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,+BAA+B,CAAC;YAC/C,OAAO,EAAE,CAAC,+BAA+B,CAAC;SAC7C,CAAC;OACW,4BAA4B,CAAG;IAAD,mCAAC;CAA5C;;ACRA;;;;;;"}
|
|
@@ -7,7 +7,7 @@ var TuiValueAccessorDirective = /** @class */ (function () {
|
|
|
7
7
|
}
|
|
8
8
|
TuiValueAccessorDirective = __decorate([
|
|
9
9
|
Directive({
|
|
10
|
-
selector:
|
|
10
|
+
selector: "[tuiValueAccessor]",
|
|
11
11
|
providers: [TUI_VALUE_ACCESSOR_PROVIDER],
|
|
12
12
|
})
|
|
13
13
|
], TuiValueAccessorDirective);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["ng://@taiga-ui/kit/directives/value-accessor/value-accessor.directive.ts","ng://@taiga-ui/kit/directives/value-accessor/value-accessor.module.ts","ng://@taiga-ui/kit/directives/value-accessor/taiga-ui-kit-directives-value-accessor.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers';\n\n@Directive({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-directives-value-accessor.js","sources":["ng://@taiga-ui/kit/directives/value-accessor/value-accessor.directive.ts","ng://@taiga-ui/kit/directives/value-accessor/value-accessor.module.ts","ng://@taiga-ui/kit/directives/value-accessor/taiga-ui-kit-directives-value-accessor.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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAOA;KAAyC;IAA5B,yBAAyB;QAJrC,SAAS,CAAC;YACP,QAAQ,EAAE,oBAAoB;YAC9B,SAAS,EAAE,CAAC,2BAA2B,CAAC;SAC3C,CAAC;OACW,yBAAyB,CAAG;IAAD,gCAAC;CAAzC;;;ICCA;KAAsC;IAAzB,sBAAsB;QAJlC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,yBAAyB,CAAC;YACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;SACvC,CAAC;OACW,sBAAsB,CAAG;IAAD,6BAAC;CAAtC;;ACRA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/borders.ts","ng://@taiga-ui/kit/enums/dropdown-position.ts","ng://@taiga-ui/kit/enums/file-state.ts","ng://@taiga-ui/kit/enums/marker-icon-mode.ts","ng://@taiga-ui/kit/enums/status.ts","ng://@taiga-ui/kit/enums/step-state.ts","ng://@taiga-ui/kit/enums/text-align.ts","ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * @deprecated use string values\n */\nexport const enum TuiBorders {\n All =
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-enums.js","sources":["ng://@taiga-ui/kit/enums/borders.ts","ng://@taiga-ui/kit/enums/dropdown-position.ts","ng://@taiga-ui/kit/enums/file-state.ts","ng://@taiga-ui/kit/enums/marker-icon-mode.ts","ng://@taiga-ui/kit/enums/status.ts","ng://@taiga-ui/kit/enums/step-state.ts","ng://@taiga-ui/kit/enums/text-align.ts","ng://@taiga-ui/kit/enums/taiga-ui-kit-enums.ts"],"sourcesContent":["/**\n * @deprecated use string values\n */\nexport const enum TuiBorders {\n All = `all`,\n TopBottom = `top-bottom`,\n}\n","/**\n * @deprecated use {@link TuiDropdownPositionT}\n */\nexport const enum TuiDropdownPosition {\n Selection = `selection`,\n Word = `word`,\n Tag = `tag`,\n}\n\nexport type TuiDropdownPositionT = 'selection' | 'word' | 'tag';\n","/**\n * @internal\n */\nexport const enum TuiFileState {\n Error = `error`,\n Deleted = `deleted`,\n Loading = `loading`,\n Normal = `normal`,\n}\n\nexport type TuiFileStateT = 'error' | 'deleted' | 'loading' | 'normal';\n","/**\n * @deprecated use join type {@link TuiMarkerIconModeT}\n */\nexport const enum TuiMarkerIconMode {\n Link = `link`,\n Primary = `primary`,\n Warning = `warning`,\n White = `white`,\n Secondary = `secondary`,\n Success = `success`,\n Error = `error`,\n OnDark = `onDark`,\n}\n","/**\n * @deprecated use join type {@link TuiStatusT}\n */\nexport const enum TuiStatus {\n Default = `default`,\n Primary = `primary`,\n Custom = `custom`,\n Success = `success`,\n Error = `error`,\n Warning = `warning`,\n}\n","/**\n * @deprecated use {@link TuiStepStateT}\n */\nexport const enum TuiStepState {\n Normal = `normal`,\n Error = `error`,\n Pass = `pass`,\n}\n\nexport type TuiStepStateT = 'normal' | 'error' | 'pass';\n","/**\n * @deprecated use string values\n */\nexport const enum TuiTextAlign {\n Left = `left`,\n Center = `center`,\n Right = `right`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;IAGkB;AAAlB,WAAkB,UAAU;IACxB,yBAAW,CAAA;IACX,sCAAwB,CAAA;AAC5B,CAAC,EAHiB,UAAU,KAAV,UAAU;;ACH5B;;;IAGkB;AAAlB,WAAkB,mBAAmB;IACjC,8CAAuB,CAAA;IACvB,oCAAa,CAAA;IACb,kCAAW,CAAA;AACf,CAAC,EAJiB,mBAAmB,KAAnB,mBAAmB;;ACHrC;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACrB,CAAC,EALiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,iBAAiB;IAC/B,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,oCAAe,CAAA;IACf,sCAAiB,CAAA;AACrB,CAAC,EATiB,iBAAiB,KAAjB,iBAAiB;;ACHnC;;;IAGkB;AAAlB,WAAkB,SAAS;IACvB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,gCAAmB,CAAA;AACvB,CAAC,EAPiB,SAAS,KAAT,SAAS;;ACH3B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,6BAAa,CAAA;AACjB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;IAGkB;AAAlB,WAAkB,YAAY;IAC1B,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACnB,CAAC,EAJiB,YAAY,KAAZ,YAAY;;ACH9B;;;;;;"}
|
|
@@ -147,7 +147,7 @@ var TuiPrimitiveCalendarRangeComponent = /** @class */ (function () {
|
|
|
147
147
|
], TuiPrimitiveCalendarRangeComponent.prototype, "dayClick", void 0);
|
|
148
148
|
TuiPrimitiveCalendarRangeComponent = __decorate([
|
|
149
149
|
Component({
|
|
150
|
-
selector:
|
|
150
|
+
selector: "tui-primitive-calendar-range",
|
|
151
151
|
template: "<tui-calendar\n [min]=\"min\"\n [max]=\"max\"\n [month]=\"userViewedMonthFirst\"\n [markerHandler]=\"markerHandler\"\n [maxViewedMonth]=\"cappedUserViewedMonthSecond | tuiMapper: monthOffset:-1\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [showAdjacent]=\"false\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionFirstViewedMonth($event)\"\n></tui-calendar>\n<tui-calendar\n class=\"border\"\n [min]=\"min\"\n [max]=\"max\"\n [month]=\"userViewedMonthSecond\"\n [markerHandler]=\"markerHandler\"\n [minViewedMonth]=\"cappedUserViewedMonthFirst | tuiMapper: monthOffset:1\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler\"\n [showAdjacent]=\"false\"\n [(hoveredItem)]=\"hoveredItem\"\n (dayClick)=\"onDayClick($event)\"\n (monthChange)=\"onSectionSecondViewedMonth($event)\"\n></tui-calendar>\n",
|
|
152
152
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
153
153
|
providers: [TuiDestroyService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n tuiDefaultProp,\n TuiDestroyService,\n TuiMapper,\n TuiMonth,\n watch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATA_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: 'tui-primitive-calendar-range',\n templateUrl: './primitive-calendar-range.template.html',\n styleUrls: ['./primitive-calendar-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATA_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiMapper<TuiMonth, TuiMonth> = (value, offset: number) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n if (this.userViewedMonthSecond.year < this.userViewedMonthFirst.year) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({\n year: month.year - this.userViewedMonthSecond.year,\n });\n }\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n if (this.userViewedMonthFirst.year > this.userViewedMonthSecond.year) {\n this.userViewedMonthFirst = this.userViewedMonthFirst.append({\n year: month.year - this.userViewedMonthFirst.year,\n });\n }\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n this.userViewedMonthSecond =\n this.value === null ? this.defaultViewedMonthSecond : this.value.to;\n\n if (this.userViewedMonthFirst.monthSame(this.userViewedMonthSecond)) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({month: 1});\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;;;IA+CI,4CAGI,YAAmD,EACxB,iBAAoC,EACpC,QAA2B;QAL1D,iBAiBC;QAnDD,wBAAmB,GAA8B,oBAAoB,CAAC;QAItE,kBAAa,GAAqB,0BAA0B,CAAC;QAI7D,4BAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIlD,6BAAwB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAItE,QAAG,GAAG,aAAa,CAAC;QAIpB,QAAG,GAAG,YAAY,CAAC;QAInB,UAAK,GAAuB,IAAI,CAAC;QAGxB,aAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QAE/C,gBAAW,GAAkB,IAAI,CAAC;QAElC,yBAAoB,GAAa,IAAI,CAAC,uBAAuB,CAAC;QAC9D,0BAAqB,GAAa,IAAI,CAAC,wBAAwB,CAAC;QAiChE,gBAAW,GAAkC,UAAC,KAAK,EAAE,MAAc;YAC/D,OAAA,KAAK,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;SAAA,CAAC;QAzB9B,IAAI,CAAC,YAAY,EAAE;YACf,OAAO;SACV;QAED,YAAY;aACP,IAAI,CAAC,KAAK,CAAC,iBA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kCAAkC,CAiJ9C;IAAD,yCAAC;CAjJD;;ACjCA;;;;IAQA;KAA+C;IAAlC,+BAA+B;QAL3C,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;YACrE,YAAY,EAAE,CAAC,kCAAkC,CAAC;YAClD,OAAO,EAAE,CAAC,kCAAkC,CAAC;SAChD,CAAC;OACW,+BAA+B,CAAG;IAAD,sCAAC;CAA/C;;ACdA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-internal-primitive-calendar-range.js","sources":["ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/primitive-calendar-range.module.ts","ng://@taiga-ui/kit/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Inject,\n Input,\n OnInit,\n Optional,\n Output,\n} from '@angular/core';\nimport {\n ALWAYS_FALSE_HANDLER,\n TUI_FIRST_DAY,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDay,\n TuiDayRange,\n tuiDefaultProp,\n TuiDestroyService,\n TuiMapper,\n TuiMonth,\n watch,\n} from '@taiga-ui/cdk';\nimport {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core';\nimport {TUI_CALENDAR_DATA_STREAM} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * @internal\n */\n@Component({\n selector: `tui-primitive-calendar-range`,\n templateUrl: `./primitive-calendar-range.template.html`,\n styleUrls: [`./primitive-calendar-range.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [TuiDestroyService],\n})\nexport class TuiPrimitiveCalendarRangeComponent implements OnInit {\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthFirst = TuiMonth.currentLocal();\n\n @Input()\n @tuiDefaultProp()\n defaultViewedMonthSecond = TuiMonth.currentLocal().append({month: 1});\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n value: TuiDayRange | null = null;\n\n @Output()\n readonly dayClick = new EventEmitter<TuiDay>();\n\n hoveredItem: TuiDay | null = null;\n\n userViewedMonthFirst: TuiMonth = this.defaultViewedMonthFirst;\n userViewedMonthSecond: TuiMonth = this.defaultViewedMonthSecond;\n\n constructor(\n @Inject(TUI_CALENDAR_DATA_STREAM)\n @Optional()\n valueChanges: Observable<TuiDayRange | null> | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n ) {\n if (!valueChanges) {\n return;\n }\n\n valueChanges\n .pipe(watch(changeDetectorRef), takeUntil(destroy$))\n .subscribe(value => {\n this.value = value;\n this.updateViewedMonths();\n });\n }\n\n get cappedUserViewedMonthSecond(): TuiMonth {\n return this.userViewedMonthSecond.monthBefore(this.max)\n ? this.userViewedMonthSecond\n : this.max;\n }\n\n get cappedUserViewedMonthFirst(): TuiMonth {\n return this.userViewedMonthFirst.monthSameOrBefore(this.userViewedMonthSecond)\n ? this.userViewedMonthFirst\n : this.userViewedMonthSecond;\n }\n\n monthOffset: TuiMapper<TuiMonth, TuiMonth> = (value, offset: number) =>\n value.append({month: offset});\n\n ngOnInit(): void {\n this.setInitialMonths();\n }\n\n onSectionFirstViewedMonth(month: TuiMonth): void {\n this.userViewedMonthFirst = month;\n\n if (this.userViewedMonthSecond.year < this.userViewedMonthFirst.year) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({\n year: month.year - this.userViewedMonthSecond.year,\n });\n }\n }\n\n onSectionSecondViewedMonth(month: TuiMonth): void {\n this.userViewedMonthSecond = month;\n\n if (this.userViewedMonthFirst.year > this.userViewedMonthSecond.year) {\n this.userViewedMonthFirst = this.userViewedMonthFirst.append({\n year: month.year - this.userViewedMonthFirst.year,\n });\n }\n }\n\n onDayClick(day: TuiDay): void {\n this.dayClick.emit(day);\n }\n\n private setInitialMonths(): void {\n if (!this.value) {\n this.userViewedMonthSecond = this.updatedViewedMonthSecond(\n this.defaultViewedMonthSecond,\n );\n\n this.userViewedMonthFirst = this.updatedViewedMonthFirst(\n this.defaultViewedMonthFirst,\n );\n }\n }\n\n private updatedViewedMonthSecond(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.max)) {\n return this.max;\n }\n\n if (month.monthBefore(this.min)) {\n return this.min.append({month: 1});\n }\n\n return month;\n }\n\n private updatedViewedMonthFirst(month: TuiMonth): TuiMonth {\n if (month.monthSameOrAfter(this.userViewedMonthSecond)) {\n return this.userViewedMonthSecond.append({month: -1});\n }\n\n if (month.monthSameOrBefore(this.min)) {\n return this.min;\n }\n\n return month;\n }\n\n private updateViewedMonths(): void {\n this.userViewedMonthFirst =\n this.value === null ? this.defaultViewedMonthFirst : this.value.from;\n this.userViewedMonthSecond =\n this.value === null ? this.defaultViewedMonthSecond : this.value.to;\n\n if (this.userViewedMonthFirst.monthSame(this.userViewedMonthSecond)) {\n this.userViewedMonthSecond = this.userViewedMonthSecond.append({month: 1});\n }\n }\n}\n","import {NgModule} from '@angular/core';\nimport {TuiMapperPipeModule} from '@taiga-ui/cdk';\nimport {TuiCalendarModule, TuiScrollbarModule} from '@taiga-ui/core';\n\nimport {TuiPrimitiveCalendarRangeComponent} from './primitive-calendar-range.component';\n\n/**\n * @internal\n */\n@NgModule({\n imports: [TuiMapperPipeModule, TuiScrollbarModule, TuiCalendarModule],\n declarations: [TuiPrimitiveCalendarRangeComponent],\n exports: [TuiPrimitiveCalendarRangeComponent],\n})\nexport class TuiPrimitiveCalendarRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA6BA;;;;IA+CI,4CAGI,YAAmD,EACxB,iBAAoC,EACpC,QAA2B;QAL1D,iBAiBC;QAnDD,wBAAmB,GAA8B,oBAAoB,CAAC;QAItE,kBAAa,GAAqB,0BAA0B,CAAC;QAI7D,4BAAuB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC;QAIlD,6BAAwB,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAItE,QAAG,GAAG,aAAa,CAAC;QAIpB,QAAG,GAAG,YAAY,CAAC;QAInB,UAAK,GAAuB,IAAI,CAAC;QAGxB,aAAQ,GAAG,IAAI,YAAY,EAAU,CAAC;QAE/C,gBAAW,GAAkB,IAAI,CAAC;QAElC,yBAAoB,GAAa,IAAI,CAAC,uBAAuB,CAAC;QAC9D,0BAAqB,GAAa,IAAI,CAAC,wBAAwB,CAAC;QAiChE,gBAAW,GAAkC,UAAC,KAAK,EAAE,MAAc;YAC/D,OAAA,KAAK,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC;SAAA,CAAC;QAzB9B,IAAI,CAAC,YAAY,EAAE;YACf,OAAO;SACV;QAED,YAAY;aACP,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;aACnD,SAAS,CAAC,UAAA,KAAK;YACZ,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,KAAI,CAAC,kBAAkB,EAAE,CAAC;SAC7B,CAAC,CAAC;KACV;IAED,sBAAI,2EAA2B;aAA/B;YACI,OAAO,IAAI,CAAC,qBAAqB,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC;kBACjD,IAAI,CAA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;;;;;;"}
|
|
@@ -92,19 +92,19 @@ var TuiFieldErrorPipe = /** @class */ (function () {
|
|
|
92
92
|
TuiFieldErrorPipe.prototype.getErrorId = function (order, controlErrors) {
|
|
93
93
|
var id = order === null || order === void 0 ? void 0 : order.find(function (errorId) { return controlErrors[errorId]; });
|
|
94
94
|
var fallback = Object.keys(controlErrors)[0];
|
|
95
|
-
return id || fallback ||
|
|
95
|
+
return id || fallback || "";
|
|
96
96
|
};
|
|
97
97
|
TuiFieldErrorPipe.prototype.getError = function (firstError, errorContent) {
|
|
98
98
|
if (firstError instanceof TuiValidationError) {
|
|
99
99
|
return of(firstError);
|
|
100
100
|
}
|
|
101
|
-
if (errorContent === undefined && typeof firstError ===
|
|
101
|
+
if (errorContent === undefined && typeof firstError === "string") {
|
|
102
102
|
return of(new TuiValidationError(firstError));
|
|
103
103
|
}
|
|
104
104
|
if (isObservable(errorContent)) {
|
|
105
|
-
return errorContent.pipe(map(function (error) { return new TuiValidationError(error ||
|
|
105
|
+
return errorContent.pipe(map(function (error) { return new TuiValidationError(error || "", firstError); }));
|
|
106
106
|
}
|
|
107
|
-
return of(new TuiValidationError(errorContent ||
|
|
107
|
+
return of(new TuiValidationError(errorContent || "", firstError));
|
|
108
108
|
};
|
|
109
109
|
TuiFieldErrorPipe.ctorParameters = function () { return [
|
|
110
110
|
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
|
|
@@ -121,7 +121,7 @@ var TuiFieldErrorPipe = /** @class */ (function () {
|
|
|
121
121
|
], TuiFieldErrorPipe.prototype, "getError", null);
|
|
122
122
|
TuiFieldErrorPipe = __decorate([
|
|
123
123
|
Pipe({
|
|
124
|
-
name:
|
|
124
|
+
name: "tuiFieldError",
|
|
125
125
|
pure: false,
|
|
126
126
|
}),
|
|
127
127
|
__param(0, Optional()),
|
|
@@ -161,9 +161,9 @@ var TuiFieldErrorContentPipe = /** @class */ (function () {
|
|
|
161
161
|
TuiFieldErrorContentPipe.prototype.getErrorContent = function (order) {
|
|
162
162
|
var error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));
|
|
163
163
|
if (!error) {
|
|
164
|
-
return
|
|
164
|
+
return "";
|
|
165
165
|
}
|
|
166
|
-
return typeof error.message ===
|
|
166
|
+
return typeof error.message === "function"
|
|
167
167
|
? error.message(error.context)
|
|
168
168
|
: error.message;
|
|
169
169
|
};
|
|
@@ -172,7 +172,7 @@ var TuiFieldErrorContentPipe = /** @class */ (function () {
|
|
|
172
172
|
]; };
|
|
173
173
|
TuiFieldErrorContentPipe = __decorate([
|
|
174
174
|
Pipe({
|
|
175
|
-
name:
|
|
175
|
+
name: "tuiFieldErrorContent",
|
|
176
176
|
pure: false,
|
|
177
177
|
}),
|
|
178
178
|
__param(0, Inject(Injector))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["ng://@taiga-ui/kit/pipes/field-error/field-error-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error-content-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error.module.ts","ng://@taiga-ui/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n// @dynamic\n@Pipe({\n name: 'tuiFieldError',\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl && !this.ngControl.valueAccessor) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError> | null {\n const {errorId} = this;\n\n if (!errorId) {\n return null;\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control?.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control?.touched;\n }\n\n private get control(): AbstractControl | null {\n return (\n this.ngControl?.control ||\n this.formArrayName?.control ||\n this.formGroupName?.control ||\n this.formGroup?.control ||\n null\n );\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || '';\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === 'string') {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || '', firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || '', firstError));\n }\n}\n","import {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: 'tuiFieldErrorContent',\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\n this.asyncPipe.ngOnDestroy();\n }\n\n private getErrorContent(order: readonly string[]): PolymorpheusContent {\n const error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));\n\n if (!error) {\n return '';\n }\n\n return typeof error.message === 'function'\n ? error.message(error.context)\n : error.message;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAeA,IAAM,YAAY,GAAG,EAAE,CAAC;AAExB;;IAQI,2BAIqB,SAA2B,EAI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C;YAC3D,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;SACzD,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACTA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-pipes-field-error.js","sources":["ng://@taiga-ui/kit/pipes/field-error/field-error-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error-content-pipe.ts","ng://@taiga-ui/kit/pipes/field-error/field-error.module.ts","ng://@taiga-ui/kit/pipes/field-error/taiga-ui-kit-pipes-field-error.ts"],"sourcesContent":["import {Inject, Optional, Pipe, PipeTransform, Self} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n FormArrayName,\n FormGroupDirective,\n FormGroupName,\n NgControl,\n} from '@angular/forms';\nimport {tuiPure, TuiValidationError} from '@taiga-ui/cdk';\nimport {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {isObservable, Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nconst EMPTY_RECORD = {};\n\n// @dynamic\n@Pipe({\n name: `tuiFieldError`,\n pure: false,\n})\nexport class TuiFieldErrorPipe implements PipeTransform, ControlValueAccessor {\n private order: readonly string[] = [];\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n private readonly ngControl: NgControl | null,\n @Optional()\n @Self()\n @Inject(FormArrayName)\n private readonly formArrayName: FormArrayName | null,\n @Optional()\n @Self()\n @Inject(FormGroupName)\n private readonly formGroupName: FormGroupName | null,\n @Optional()\n @Self()\n @Inject(FormGroupDirective)\n private readonly formGroup: FormGroupDirective | null,\n @Inject(TUI_VALIDATION_ERRORS)\n private readonly validationErrors: Record<\n string,\n PolymorpheusContent | Observable<PolymorpheusContent>\n >,\n ) {\n if (this.ngControl && !this.ngControl.valueAccessor) {\n this.ngControl.valueAccessor = this;\n }\n }\n\n transform(order: readonly string[]): Observable<TuiValidationError | null> {\n this.order = order;\n\n return this.computedError;\n }\n\n get computedError(): Observable<TuiValidationError | null> {\n return (this.invalid && this.touched && this.error) || of(null);\n }\n\n registerOnChange(): void {}\n\n registerOnTouched(): void {}\n\n setDisabledState(): void {}\n\n writeValue(): void {}\n\n private get error(): Observable<TuiValidationError> | null {\n const {errorId} = this;\n\n if (!errorId) {\n return null;\n }\n\n const firstError = this.controlErrors[errorId];\n const errorContent = this.validationErrors[errorId];\n\n return this.getError(firstError, errorContent);\n }\n\n private get invalid(): boolean {\n return !!this.control?.invalid;\n }\n\n private get touched(): boolean {\n return !!this.control?.touched;\n }\n\n private get control(): AbstractControl | null {\n return (\n this.ngControl?.control ||\n this.formArrayName?.control ||\n this.formGroupName?.control ||\n this.formGroup?.control ||\n null\n );\n }\n\n private get errorId(): string {\n return this.getErrorId(this.order, this.controlErrors);\n }\n\n private get controlErrors(): Record<string, unknown> {\n return this.control?.errors || EMPTY_RECORD;\n }\n\n @tuiPure\n private getErrorId(\n order: readonly string[],\n controlErrors: Record<string, unknown>,\n ): string {\n const id = order?.find(errorId => controlErrors[errorId]);\n const fallback = Object.keys(controlErrors)[0];\n\n return id || fallback || ``;\n }\n\n @tuiPure\n private getError(\n firstError: any,\n errorContent?: PolymorpheusContent | Observable<PolymorpheusContent>,\n ): Observable<TuiValidationError> {\n if (firstError instanceof TuiValidationError) {\n return of(firstError);\n }\n\n if (errorContent === undefined && typeof firstError === `string`) {\n return of(new TuiValidationError(firstError));\n }\n\n if (isObservable(errorContent)) {\n return errorContent.pipe(\n map(error => new TuiValidationError(error || ``, firstError)),\n );\n }\n\n return of(new TuiValidationError(errorContent || ``, firstError));\n }\n}\n","import {AsyncPipe} from '@angular/common';\nimport {Inject, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n// @dynamic\n@Pipe({\n name: `tuiFieldErrorContent`,\n pure: false,\n})\nexport class TuiFieldErrorContentPipe implements PipeTransform, OnDestroy {\n private readonly localInjector = Injector.create({\n providers: [{provide: AsyncPipe}, {provide: TuiFieldErrorPipe}],\n parent: this.injector,\n });\n\n private readonly asyncPipe = this.localInjector.get(AsyncPipe);\n private readonly fieldErrorPipe = this.localInjector.get(TuiFieldErrorPipe);\n\n constructor(@Inject(Injector) private readonly injector: Injector) {}\n\n transform(order: readonly string[]): PolymorpheusContent {\n return this.getErrorContent(order);\n }\n\n ngOnDestroy(): void {\n this.asyncPipe.ngOnDestroy();\n }\n\n private getErrorContent(order: readonly string[]): PolymorpheusContent {\n const error = this.asyncPipe.transform(this.fieldErrorPipe.transform(order));\n\n if (!error) {\n return ``;\n }\n\n return typeof error.message === `function`\n ? error.message(error.context)\n : error.message;\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiFieldErrorContentPipe} from './field-error-content-pipe';\nimport {TuiFieldErrorPipe} from './field-error-pipe';\n\n@NgModule({\n declarations: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n exports: [TuiFieldErrorPipe, TuiFieldErrorContentPipe],\n})\nexport class TuiFieldErrorPipeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAeA,IAAM,YAAY,GAAG,EAAE,CAAC;AAExB;;IAQI,2BAIqB,SAA2B,EAI3B,aAAmC,EAInC,aAAmC,EAInC,SAAoC,EAEpC,gBAGhB;QAjBgB,cAAS,GAAT,SAAS,CAAkB;QAI3B,kBAAa,GAAb,aAAa,CAAsB;QAInC,kBAAa,GAAb,aAAa,CAAsB;QAInC,cAAS,GAAT,SAAS,CAA2B;QAEpC,qBAAgB,GAAhB,gBAAgB,CAGhC;QAvBG,UAAK,GAAsB,EAAE,CAAC;QAyBlC,IAAI,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE;YACjD,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,IAAI,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P;IAErE,4CAAS,GAAT,UAAU,KAAwB;QAC9B,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;KACtC;IAED,8CAAW,GAAX;QACI,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;KAChC;IAEO,kDAAe,GAAvB,UAAwB,KAAwB;QAC5C,IAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAE7E,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,EAAE,CAAC;SACb;QAED,OAAO,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU;cACpC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC;cAC5B,KAAK,CAAC,OAAO,CAAC;KACvB;;gBApBwD,QAAQ,uBAApD,MAAM,SAAC,QAAQ;;IATnB,wBAAwB;QAJpC,IAAI,CAAC;YACF,IAAI,EAAE,sBAAsB;YAC5B,IAAI,EAAE,KAAK;SACd,CAAC;QAUe,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;OATpB,wBAAwB,CA8BpC;IAAD,+BAAC;CA9BD;;;ICFA;KAAuC;IAA1B,uBAAuB;QAJnC,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;YAC3D,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,CAAC;SACzD,CAAC;OACW,uBAAuB,CAAG;IAAD,8BAAC;CAAvC;;ACTA;;;;;;"}
|
|
@@ -13,8 +13,8 @@ var TuiFilterByInputBase = /** @class */ (function () {
|
|
|
13
13
|
Object.defineProperty(TuiFilterByInputBase.prototype, "query", {
|
|
14
14
|
get: function () {
|
|
15
15
|
return this.accessor.nativeFocusableElement
|
|
16
|
-
? this.accessor.nativeFocusableElement.value ||
|
|
17
|
-
:
|
|
16
|
+
? this.accessor.nativeFocusableElement.value || ""
|
|
17
|
+
: "";
|
|
18
18
|
},
|
|
19
19
|
enumerable: true,
|
|
20
20
|
configurable: true
|
|
@@ -74,7 +74,7 @@ var TuiFilterByInputPipe = /** @class */ (function (_super) {
|
|
|
74
74
|
]; };
|
|
75
75
|
TuiFilterByInputPipe = __decorate([
|
|
76
76
|
Pipe({
|
|
77
|
-
name:
|
|
77
|
+
name: "tuiFilterByInput",
|
|
78
78
|
pure: false,
|
|
79
79
|
}),
|
|
80
80
|
__param(0, Inject(TUI_FOCUSABLE_ITEM_ACCESSOR))
|
|
@@ -97,7 +97,7 @@ var TuiFilterByInputWithPipe = /** @class */ (function (_super) {
|
|
|
97
97
|
]; };
|
|
98
98
|
TuiFilterByInputWithPipe = __decorate([
|
|
99
99
|
Pipe({
|
|
100
|
-
name:
|
|
100
|
+
name: "tuiFilterByInputWith",
|
|
101
101
|
pure: false,
|
|
102
102
|
}),
|
|
103
103
|
__param(0, Inject(TUI_FOCUSABLE_ITEM_ACCESSOR))
|