@taiga-ui/kit 2.54.1 → 2.57.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 +26 -20
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.min.js +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 +8 -9
- 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 +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 -229
- 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 +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 +18 -12
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +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 +158 -106
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +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 +45 -43
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js +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-files/taiga-ui-kit-components-input-files.metadata.json +1 -1
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +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/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
- package/components/slider/{slider-key-steps.directive.d.ts → helpers/slider-key-steps.directive.d.ts} +1 -1
- package/components/slider/{slider-readonly.directive.d.ts → helpers/slider-readonly.directive.d.ts} +0 -0
- package/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.d.ts +12 -0
- package/components/slider/index.d.ts +3 -2
- package/components/slider/slider.component.d.ts +1 -1
- package/components/slider/taiga-ui-kit-components-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-files/input-files.module.js +10 -3
- 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 +7 -8
- 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 -214
- 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 +11 -11
- package/esm2015/components/line-clamp/line-clamp.module.js +9 -3
- 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 +103 -0
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +79 -0
- package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +40 -0
- package/esm2015/components/slider/index.js +4 -3
- 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/slider/slider.module.js +6 -3
- 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 +11 -9
- 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-files/input-files.module.js +10 -3
- 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 +7 -8
- 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 -214
- 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 +11 -11
- package/esm5/components/line-clamp/line-clamp.module.js +9 -3
- 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 +129 -0
- package/esm5/components/slider/helpers/slider-readonly.directive.js +87 -0
- package/esm5/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +55 -0
- package/esm5/components/slider/index.js +4 -3
- 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/slider/slider.module.js +6 -3
- 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 +11 -9
- 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 +24 -17
- 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 +9 -10
- 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 -229
- 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 +19 -13
- 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 +136 -100
- 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 +46 -44
- 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 +24 -17
- 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 +9 -10
- 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 -229
- 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 +19 -13
- 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 +159 -108
- 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 +46 -44
- 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
- package/esm2015/components/slider/slider-key-steps.directive.js +0 -103
- package/esm2015/components/slider/slider-readonly.directive.js +0 -79
- package/esm5/components/slider/slider-key-steps.directive.js +0 -129
- package/esm5/components/slider/slider-readonly.directive.js +0 -87
|
@@ -16,7 +16,7 @@ function formatSize(units, size) {
|
|
|
16
16
|
if (size < BYTES_PER_MB) {
|
|
17
17
|
return (size / BYTES_PER_KB).toFixed(0) + " " + units[1];
|
|
18
18
|
}
|
|
19
|
-
return round(size / BYTES_PER_MB, 2).toLocaleString(
|
|
19
|
+
return round(size / BYTES_PER_MB, 2).toLocaleString("ru-RU") + " " + units[2];
|
|
20
20
|
}
|
|
21
21
|
var tuiFormatSize = formatSize;
|
|
22
22
|
|
|
@@ -27,7 +27,7 @@ var tuiFormatSize = formatSize;
|
|
|
27
27
|
function getAcceptArray(accept) {
|
|
28
28
|
return accept
|
|
29
29
|
.toLowerCase()
|
|
30
|
-
.split(
|
|
30
|
+
.split(",")
|
|
31
31
|
.map(function (format) { return format.trim(); });
|
|
32
32
|
}
|
|
33
33
|
var tuiGetAcceptArray = getAcceptArray;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-files.js","sources":["ng://@taiga-ui/kit/utils/files/format-size.ts","ng://@taiga-ui/kit/utils/files/get-accept-array.ts","ng://@taiga-ui/kit/utils/files/taiga-ui-kit-utils-files.ts"],"sourcesContent":["import {round} from '@taiga-ui/cdk';\n\nconst BYTES_PER_KB = 1000;\nconst BYTES_PER_MB = 1000 * BYTES_PER_KB;\n\n/**\n * @deprecated: use {@link tuiFormatSize} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function formatSize(\n units: [string, string, string],\n size?: number,\n): string | null {\n if (size === undefined) {\n return null;\n }\n\n if (size < BYTES_PER_KB) {\n return `${size} ${units[0]}`;\n }\n\n if (size < BYTES_PER_MB) {\n return `${(size / BYTES_PER_KB).toFixed(0)} ${units[1]}`;\n }\n\n return `${round(size / BYTES_PER_MB, 2).toLocaleString(
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-files.js","sources":["ng://@taiga-ui/kit/utils/files/format-size.ts","ng://@taiga-ui/kit/utils/files/get-accept-array.ts","ng://@taiga-ui/kit/utils/files/taiga-ui-kit-utils-files.ts"],"sourcesContent":["import {round} from '@taiga-ui/cdk';\n\nconst BYTES_PER_KB = 1000;\nconst BYTES_PER_MB = 1000 * BYTES_PER_KB;\n\n/**\n * @deprecated: use {@link tuiFormatSize} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function formatSize(\n units: [string, string, string],\n size?: number,\n): string | null {\n if (size === undefined) {\n return null;\n }\n\n if (size < BYTES_PER_KB) {\n return `${size} ${units[0]}`;\n }\n\n if (size < BYTES_PER_MB) {\n return `${(size / BYTES_PER_KB).toFixed(0)} ${units[1]}`;\n }\n\n return `${round(size / BYTES_PER_MB, 2).toLocaleString(`ru-RU`)} ${units[2]}`;\n}\n\nexport const tuiFormatSize = formatSize;\n","/**\n * @deprecated: use {@link tuiGetAcceptArray} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getAcceptArray(accept: string): readonly string[] {\n return accept\n .toLowerCase()\n .split(`,`)\n .map(format => format.trim());\n}\n\nexport const tuiGetAcceptArray = getAcceptArray;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEA,IAAM,YAAY,GAAG,IAAI,CAAC;AAC1B,IAAM,YAAY,GAAG,IAAI,GAAG,YAAY,CAAC;AAEzC;;;AAGA;SACgB,UAAU,CACtB,KAA+B,EAC/B,IAAa;IAEb,IAAI,IAAI,KAAK,SAAS,EAAE;QACpB,OAAO,IAAI,CAAC;KACf;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,IAAI,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAChC;IAED,IAAI,IAAI,GAAG,YAAY,EAAE;QACrB,OAAU,CAAC,IAAI,GAAG,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;KAC5D;IAED,OAAU,KAAK,CAAC,IAAI,GAAG,YAAY,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,SAAI,KAAK,CAAC,CAAC,CAAG,CAAC;AAClF,CAAC;IAEY,aAAa,GAAG;;AC5B7B;;;AAGA;SACgB,cAAc,CAAC,MAAc;IACzC,OAAO,MAAM;SACR,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,IAAI,EAAE,GAAA,CAAC,CAAC;AACtC,CAAC;IAEY,iBAAiB,GAAG;;ACXjC;;;;;;"}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
// @bad TODO: convert stringHashToHsl to stringHashToRgb
|
|
8
8
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
9
|
function stringHashToHsl(value) {
|
|
10
|
-
if (value ===
|
|
11
|
-
return
|
|
10
|
+
if (value === "") {
|
|
11
|
+
return "";
|
|
12
12
|
}
|
|
13
13
|
var hash = 0;
|
|
14
14
|
for (var i = 0; i < value.length; i++) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-format.js","sources":["ng://@taiga-ui/kit/utils/format/string-hash-to-hsl.ts","ng://@taiga-ui/kit/utils/format/taiga-ui-kit-utils-format.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiStringHashToHsl} instead\n * Converts a string to an HSL color\n * @param value string to convert\n * @return HSL color string\n */\n// @bad TODO: convert stringHashToHsl to stringHashToRgb\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stringHashToHsl(value: string): string {\n if (value ===
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-format.js","sources":["ng://@taiga-ui/kit/utils/format/string-hash-to-hsl.ts","ng://@taiga-ui/kit/utils/format/taiga-ui-kit-utils-format.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiStringHashToHsl} instead\n * Converts a string to an HSL color\n * @param value string to convert\n * @return HSL color string\n */\n// @bad TODO: convert stringHashToHsl to stringHashToRgb\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function stringHashToHsl(value: string): string {\n if (value === ``) {\n return ``;\n }\n\n let hash = 0;\n\n for (let i = 0; i < value.length; i++) {\n hash = value.charCodeAt(i) + ((hash << 5) - hash);\n hash = hash & hash;\n }\n\n const hue = hash % 360;\n const saturation = 60 + (hash % 5);\n const lightness = 80 + (hash % 5);\n\n return `hsl(${hue},${saturation}%,${lightness}%)`;\n}\n\nexport const tuiStringHashToHsl = stringHashToHsl;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;AAMA;AACA;SACgB,eAAe,CAAC,KAAa;IACzC,IAAI,KAAK,KAAK,EAAE,EAAE;QACd,OAAO,EAAE,CAAC;KACb;IAED,IAAI,IAAI,GAAG,CAAC,CAAC;IAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC;QAClD,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;KACtB;IAED,IAAM,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IACvB,IAAM,UAAU,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IACnC,IAAM,SAAS,GAAG,EAAE,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;IAElC,OAAO,SAAO,GAAG,SAAI,UAAU,UAAK,SAAS,OAAI,CAAC;AACtD,CAAC;IAEY,kBAAkB,GAAG;;AC3BlC;;;;;;"}
|
|
@@ -70,19 +70,19 @@ function tuiCreateAutoCorrectedDateRangePipe(config) {
|
|
|
70
70
|
* @returns time as a string
|
|
71
71
|
*/
|
|
72
72
|
function tuiCreateAutoCorrectedTimePipe(timeMode, maxValues) {
|
|
73
|
-
if (timeMode === void 0) { timeMode =
|
|
73
|
+
if (timeMode === void 0) { timeMode = "HH:MM"; }
|
|
74
74
|
if (maxValues === void 0) { maxValues = {}; }
|
|
75
|
-
var timeFormatArray = [
|
|
75
|
+
var timeFormatArray = ["HH", "MM", "SS", "MS"];
|
|
76
76
|
var safeValues = __assign(__assign({}, MAX_TIME_VALUES), maxValues);
|
|
77
77
|
return function (conformedValue) {
|
|
78
78
|
var indexesOfPipedChars = [];
|
|
79
|
-
var conformedValueArr = conformedValue.split(
|
|
79
|
+
var conformedValueArr = conformedValue.split("");
|
|
80
80
|
timeFormatArray.forEach(function (format) {
|
|
81
81
|
var position = timeMode.indexOf(format);
|
|
82
82
|
var maxFirstDigit = parseInt(String(safeValues[format]).slice(0, 1), 10);
|
|
83
83
|
if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {
|
|
84
84
|
conformedValueArr[position + 1] = conformedValueArr[position];
|
|
85
|
-
conformedValueArr[position] =
|
|
85
|
+
conformedValueArr[position] = "0";
|
|
86
86
|
indexesOfPipedChars.push(position);
|
|
87
87
|
}
|
|
88
88
|
});
|
|
@@ -93,7 +93,7 @@ function tuiCreateAutoCorrectedTimePipe(timeMode, maxValues) {
|
|
|
93
93
|
return isInvalid
|
|
94
94
|
? false
|
|
95
95
|
: {
|
|
96
|
-
value: conformedValueArr.join(
|
|
96
|
+
value: conformedValueArr.join(""),
|
|
97
97
|
indexesOfPipedChars: indexesOfPipedChars,
|
|
98
98
|
};
|
|
99
99
|
};
|
|
@@ -111,7 +111,7 @@ function tuiCreateAutoCorrectedDateTimePipe(configs) {
|
|
|
111
111
|
return { value: formattedDate };
|
|
112
112
|
}
|
|
113
113
|
var pipedTime = timePipe(time, {});
|
|
114
|
-
if (!pipedTime || typeof pipedTime ===
|
|
114
|
+
if (!pipedTime || typeof pipedTime === "string") {
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
@@ -126,19 +126,19 @@ function tuiCreateAutoCorrectedDateTimePipe(configs) {
|
|
|
126
126
|
var TWO_DIGITS = new Array(2).fill(TUI_DIGIT_REGEXP);
|
|
127
127
|
var FOUR_DIGITS = new Array(4).fill(TUI_DIGIT_REGEXP);
|
|
128
128
|
function tuiCreateDateMask(mode, separator) {
|
|
129
|
-
tuiAssert.assert(separator.length === 1,
|
|
129
|
+
tuiAssert.assert(separator.length === 1, "Separator should consist of only 1 symbol");
|
|
130
130
|
switch (mode) {
|
|
131
|
-
case
|
|
131
|
+
case "YMD":
|
|
132
132
|
return __spread(FOUR_DIGITS, [separator], TWO_DIGITS, [separator], TWO_DIGITS);
|
|
133
|
-
case
|
|
134
|
-
case
|
|
133
|
+
case "MDY":
|
|
134
|
+
case "DMY":
|
|
135
135
|
default:
|
|
136
136
|
return __spread(TWO_DIGITS, [separator], TWO_DIGITS, [separator], FOUR_DIGITS);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
function tuiCreateDateRangeMask(dateMode, dateSeparator) {
|
|
141
|
-
tuiAssert.assert(dateSeparator.length === 1,
|
|
141
|
+
tuiAssert.assert(dateSeparator.length === 1, "Separator should consist of only 1 symbol");
|
|
142
142
|
var dateMask = tuiCreateDateMask(dateMode, dateSeparator);
|
|
143
143
|
return __spread(dateMask, [
|
|
144
144
|
CHAR_NO_BREAK_SPACE,
|
|
@@ -158,7 +158,7 @@ function tuiCreateTimePartMask(maxPartValue, prefix) {
|
|
|
158
158
|
function tuiCreateTimeMask(mode, maxValues) {
|
|
159
159
|
if (maxValues === void 0) { maxValues = {}; }
|
|
160
160
|
var _a = __assign(__assign({}, MAX_TIME_VALUES), maxValues), HH = _a.HH, MM = _a.MM, SS = _a.SS, MS = _a.MS;
|
|
161
|
-
return __spread(tuiCreateTimePartMask(HH), tuiCreateTimePartMask(MM,
|
|
161
|
+
return __spread(tuiCreateTimePartMask(HH), tuiCreateTimePartMask(MM, ":"), (mode.includes("HH:MM:SS") ? tuiCreateTimePartMask(SS, ":") : []), (mode === "HH:MM:SS.MSS" ? tuiCreateTimePartMask(MS, ".") : []));
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-date-mask.ts","ng://@taiga-ui/kit/utils/mask/create-date-range-mask.ts","ng://@taiga-ui/kit/utils/mask/create-time-mask.ts","ng://@taiga-ui/kit/utils/mask/taiga-ui-kit-utils-mask.ts"],"sourcesContent":["import {DATE_FILLER_LENGTH, TuiDateMode, TuiDay} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\n/**\n * @deprecated: use {@link tuiNormalizeDateValue} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function normalizeDateValue(\n dateValue: string,\n {value, min, max, dateFormat, dateSeparator}: TuiAutoCorrectedDatePipeConfigs,\n): string {\n return value && value.toString(dateFormat, dateSeparator) === dateValue\n ? dateValue\n : TuiDay.normalizeParse(dateValue, dateFormat)\n .dayLimit(min, max)\n .toString(dateFormat, dateSeparator);\n}\n\nexport function tuiCreateAutoCorrectedDatePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => {\n if (value.length !== DATE_FILLER_LENGTH) {\n return {value};\n }\n\n return {\n value: normalizeDateValue(value, config),\n };\n };\n}\n\nexport const tuiNormalizeDateValue = normalizeDateValue;\n","import {\n DATE_FILLER_LENGTH,\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n TuiDateMode,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\ninterface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDayRange | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nfunction parseWithLimit(value: string, config: TuiAutoCorrectedDatePipeConfigs): TuiDay {\n return TuiDay.normalizeParse(\n value.slice(0, DATE_FILLER_LENGTH),\n config.dateFormat,\n ).dayLimit(config.min, config.max);\n}\n\nfunction processRawValue(value: string, config: TuiAutoCorrectedDatePipeConfigs): string {\n const {dateFormat, dateSeparator} = config;\n\n switch (value.length) {\n case DATE_FILLER_LENGTH:\n return parseWithLimit(value, config).toString(dateFormat, dateSeparator);\n case DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length:\n return (\n parseWithLimit(value, config).toString(dateFormat, dateSeparator) +\n RANGE_SEPARATOR_CHAR\n );\n case DATE_RANGE_FILLER_LENGTH:\n return config.value &&\n config.value.toString(dateFormat, dateSeparator) === value\n ? value\n : TuiDayRange.sort(\n parseWithLimit(value.slice(0, DATE_FILLER_LENGTH), config),\n parseWithLimit(\n value.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length),\n config,\n ),\n ).toString(dateFormat, dateSeparator);\n default:\n return value;\n }\n}\n\n/**\n * Normalizes date in formatted string\n *\n * Normalizes when:\n *\n * 1. It is a single date\n * 2. It is a single date and a separator\n * 3. It is two dates and a separator between them\n *\n * In **other** cases, the value does not change.\n *\n * @param config with min and max date\n * @return mask pipe handler that handles `min` and `max`\n */\nexport function tuiCreateAutoCorrectedDateRangePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => ({value: processRawValue(value, config)});\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\n/**\n * Adjusts the entered time by omitting only suitable values for hours and minutes\n * @returns time as a string\n */\nexport function tuiCreateAutoCorrectedTimePipe(\n timeMode: TuiTimeMode = 'HH:MM',\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskPipeHandler {\n const timeFormatArray = ['HH', 'MM', 'SS', 'MS'] as const;\n const safeValues = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return conformedValue => {\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split('');\n\n timeFormatArray.forEach(format => {\n const position = timeMode.indexOf(format);\n const maxFirstDigit = parseInt(String(safeValues[format]).slice(0, 1), 10);\n\n if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {\n conformedValueArr[position + 1] = conformedValueArr[position];\n conformedValueArr[position] = '0';\n indexesOfPipedChars.push(position);\n }\n });\n\n const isInvalid = timeFormatArray.some(\n format =>\n parseInt(conformedValue.slice(timeMode.indexOf(format), 2), 10) >\n safeValues[format],\n );\n\n return isInvalid\n ? false\n : {\n value: conformedValueArr.join(''),\n indexesOfPipedChars,\n };\n };\n}\n","import {DATE_FILLER_LENGTH, TuiTimeMode} from '@taiga-ui/cdk';\nimport {\n TuiTextMaskConfig,\n TuiTextMaskOptions,\n TuiTextMaskPipeHandler,\n} from '@taiga-ui/core';\nimport {DATE_TIME_SEPARATOR} from '@taiga-ui/kit/constants';\n\nimport {\n normalizeDateValue,\n TuiAutoCorrectedDatePipeConfigs,\n} from './create-auto-corrected-date-pipe';\nimport {tuiCreateAutoCorrectedTimePipe} from './create-auto-corrected-time-pipe';\n\ninterface TuiAutoCorrectedDateTimePipeConfigs extends TuiAutoCorrectedDatePipeConfigs {\n timeMode: TuiTimeMode;\n}\n\nexport function tuiCreateAutoCorrectedDateTimePipe(\n configs: TuiAutoCorrectedDateTimePipeConfigs,\n): TuiTextMaskPipeHandler {\n const timePipe = tuiCreateAutoCorrectedTimePipe(configs.timeMode);\n\n return value => {\n if (value.length < DATE_FILLER_LENGTH) {\n return {value};\n }\n\n const [date, time] = value.split(DATE_TIME_SEPARATOR);\n\n const formattedDate = normalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(\n time,\n {} as unknown as TuiTextMaskOptions & TuiTextMaskConfig,\n );\n\n if (!pipedTime || typeof pipedTime === 'string') {\n return false;\n }\n\n return {\n value: `${formattedDate}${DATE_TIME_SEPARATOR}${pipedTime.value}`,\n indexesOfPipedChars: pipedTime.indexesOfPipedChars\n ? pipedTime.indexesOfPipedChars.map(i => i + date.length + 2)\n : undefined,\n };\n };\n}\n","import {tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nconst TWO_DIGITS = new Array(2).fill(TUI_DIGIT_REGEXP);\nconst FOUR_DIGITS = new Array(4).fill(TUI_DIGIT_REGEXP);\n\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n tuiAssert.assert(separator.length === 1, 'Separator should consist of only 1 symbol');\n\n switch (mode) {\n case 'YMD':\n return [...FOUR_DIGITS, separator, ...TWO_DIGITS, separator, ...TWO_DIGITS];\n case 'MDY':\n case 'DMY':\n default:\n return [...TWO_DIGITS, separator, ...TWO_DIGITS, separator, ...FOUR_DIGITS];\n }\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskList} from '@taiga-ui/core';\n\nimport {tuiCreateDateMask} from './create-date-mask';\n\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n tuiAssert.assert(\n dateSeparator.length === 1,\n 'Separator should consist of only 1 symbol',\n );\n\n const dateMask = tuiCreateDateMask(dateMode, dateSeparator);\n\n return [\n ...dateMask,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...dateMask,\n ];\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\nfunction tuiCreateTimePartMask(\n maxPartValue: number,\n prefix?: string,\n): Array<string | RegExp> {\n const {length} = String(maxPartValue);\n const regExp = new Array(length).fill(TUI_DIGIT_REGEXP);\n\n if (prefix) {\n regExp.unshift(prefix);\n }\n\n return regExp;\n}\n\nexport function tuiCreateTimeMask(\n mode: TuiTimeMode,\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskList {\n const {HH, MM, SS, MS} = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return [\n ...tuiCreateTimePartMask(HH),\n ...tuiCreateTimePartMask(MM, ':'),\n ...(mode.includes('HH:MM:SS') ? tuiCreateTimePartMask(SS, ':') : []),\n ...(mode === 'HH:MM:SS.MSS' ? tuiCreateTimePartMask(MS, '.') : []),\n ];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;;;AAGA;SACgB,kBAAkB,CAC9B,SAAiB,EACjB,EAA6E;QAA5E,gBAAK,EAAE,YAAG,EAAE,YAAG,EAAE,0BAAU,EAAE,gCAAa;IAE3C,OAAO,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,SAAS;UACjE,SAAS;UACT,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC;aACvC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;aAClB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACnD,CAAC;SAEe,8BAA8B,CAC1C,MAAuC;IAEvC,OAAO,UAAA,KAAK;QACR,IAAI,KAAK,CAAC,MAAM,KAAK,kBAAkB,EAAE;YACrC,OAAO,EAAC,KAAK,OAAA,EAAC,CAAC;SAClB;QAED,OAAO;YACH,KAAK,EAAE,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC;SAC3C,CAAC;KACL,CAAC;AACN,CAAC;IAEY,qBAAqB,GAAG;;ACtBrC,SAAS,cAAc,CAAC,KAAa,EAAE,MAAuC;IAC1E,OAAO,MAA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AAG,EAAE,GACnE;AACN;;AClCA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","ng://@taiga-ui/kit/utils/mask/create-date-mask.ts","ng://@taiga-ui/kit/utils/mask/create-date-range-mask.ts","ng://@taiga-ui/kit/utils/mask/create-time-mask.ts","ng://@taiga-ui/kit/utils/mask/taiga-ui-kit-utils-mask.ts"],"sourcesContent":["import {DATE_FILLER_LENGTH, TuiDateMode, TuiDay} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\n/**\n * @deprecated: use {@link tuiNormalizeDateValue} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function normalizeDateValue(\n dateValue: string,\n {value, min, max, dateFormat, dateSeparator}: TuiAutoCorrectedDatePipeConfigs,\n): string {\n return value && value.toString(dateFormat, dateSeparator) === dateValue\n ? dateValue\n : TuiDay.normalizeParse(dateValue, dateFormat)\n .dayLimit(min, max)\n .toString(dateFormat, dateSeparator);\n}\n\nexport function tuiCreateAutoCorrectedDatePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => {\n if (value.length !== DATE_FILLER_LENGTH) {\n return {value};\n }\n\n return {\n value: normalizeDateValue(value, config),\n };\n };\n}\n\nexport const tuiNormalizeDateValue = normalizeDateValue;\n","import {\n DATE_FILLER_LENGTH,\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n TuiDateMode,\n TuiDay,\n TuiDayRange,\n} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\ninterface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDayRange | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\nfunction parseWithLimit(value: string, config: TuiAutoCorrectedDatePipeConfigs): TuiDay {\n return TuiDay.normalizeParse(\n value.slice(0, DATE_FILLER_LENGTH),\n config.dateFormat,\n ).dayLimit(config.min, config.max);\n}\n\nfunction processRawValue(value: string, config: TuiAutoCorrectedDatePipeConfigs): string {\n const {dateFormat, dateSeparator} = config;\n\n switch (value.length) {\n case DATE_FILLER_LENGTH:\n return parseWithLimit(value, config).toString(dateFormat, dateSeparator);\n case DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length:\n return (\n parseWithLimit(value, config).toString(dateFormat, dateSeparator) +\n RANGE_SEPARATOR_CHAR\n );\n case DATE_RANGE_FILLER_LENGTH:\n return config.value &&\n config.value.toString(dateFormat, dateSeparator) === value\n ? value\n : TuiDayRange.sort(\n parseWithLimit(value.slice(0, DATE_FILLER_LENGTH), config),\n parseWithLimit(\n value.slice(DATE_FILLER_LENGTH + RANGE_SEPARATOR_CHAR.length),\n config,\n ),\n ).toString(dateFormat, dateSeparator);\n default:\n return value;\n }\n}\n\n/**\n * Normalizes date in formatted string\n *\n * Normalizes when:\n *\n * 1. It is a single date\n * 2. It is a single date and a separator\n * 3. It is two dates and a separator between them\n *\n * In **other** cases, the value does not change.\n *\n * @param config with min and max date\n * @return mask pipe handler that handles `min` and `max`\n */\nexport function tuiCreateAutoCorrectedDateRangePipe(\n config: TuiAutoCorrectedDatePipeConfigs,\n): TuiTextMaskPipeHandler {\n return value => ({value: processRawValue(value, config)});\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\n/**\n * Adjusts the entered time by omitting only suitable values for hours and minutes\n * @returns time as a string\n */\nexport function tuiCreateAutoCorrectedTimePipe(\n timeMode: TuiTimeMode = `HH:MM`,\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskPipeHandler {\n const timeFormatArray = [`HH`, `MM`, `SS`, `MS`] as const;\n const safeValues = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return conformedValue => {\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split(``);\n\n timeFormatArray.forEach(format => {\n const position = timeMode.indexOf(format);\n const maxFirstDigit = parseInt(String(safeValues[format]).slice(0, 1), 10);\n\n if (parseInt(conformedValueArr[position], 10) > maxFirstDigit) {\n conformedValueArr[position + 1] = conformedValueArr[position];\n conformedValueArr[position] = `0`;\n indexesOfPipedChars.push(position);\n }\n });\n\n const isInvalid = timeFormatArray.some(\n format =>\n parseInt(conformedValue.slice(timeMode.indexOf(format), 2), 10) >\n safeValues[format],\n );\n\n return isInvalid\n ? false\n : {\n value: conformedValueArr.join(``),\n indexesOfPipedChars,\n };\n };\n}\n","import {DATE_FILLER_LENGTH, TuiTimeMode} from '@taiga-ui/cdk';\nimport {\n TuiTextMaskConfig,\n TuiTextMaskOptions,\n TuiTextMaskPipeHandler,\n} from '@taiga-ui/core';\nimport {DATE_TIME_SEPARATOR} from '@taiga-ui/kit/constants';\n\nimport {\n normalizeDateValue,\n TuiAutoCorrectedDatePipeConfigs,\n} from './create-auto-corrected-date-pipe';\nimport {tuiCreateAutoCorrectedTimePipe} from './create-auto-corrected-time-pipe';\n\ninterface TuiAutoCorrectedDateTimePipeConfigs extends TuiAutoCorrectedDatePipeConfigs {\n timeMode: TuiTimeMode;\n}\n\nexport function tuiCreateAutoCorrectedDateTimePipe(\n configs: TuiAutoCorrectedDateTimePipeConfigs,\n): TuiTextMaskPipeHandler {\n const timePipe = tuiCreateAutoCorrectedTimePipe(configs.timeMode);\n\n return value => {\n if (value.length < DATE_FILLER_LENGTH) {\n return {value};\n }\n\n const [date, time] = value.split(DATE_TIME_SEPARATOR);\n\n const formattedDate = normalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(\n time,\n {} as unknown as TuiTextMaskOptions & TuiTextMaskConfig,\n );\n\n if (!pipedTime || typeof pipedTime === `string`) {\n return false;\n }\n\n return {\n value: `${formattedDate}${DATE_TIME_SEPARATOR}${pipedTime.value}`,\n indexesOfPipedChars: pipedTime.indexesOfPipedChars\n ? pipedTime.indexesOfPipedChars.map(i => i + date.length + 2)\n : undefined,\n };\n };\n}\n","import {tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\n\nconst TWO_DIGITS = new Array(2).fill(TUI_DIGIT_REGEXP);\nconst FOUR_DIGITS = new Array(4).fill(TUI_DIGIT_REGEXP);\n\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n tuiAssert.assert(separator.length === 1, `Separator should consist of only 1 symbol`);\n\n switch (mode) {\n case `YMD`:\n return [...FOUR_DIGITS, separator, ...TWO_DIGITS, separator, ...TWO_DIGITS];\n case `MDY`:\n case `DMY`:\n default:\n return [...TWO_DIGITS, separator, ...TWO_DIGITS, separator, ...FOUR_DIGITS];\n }\n}\n","import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, tuiAssert, TuiDateMode} from '@taiga-ui/cdk';\nimport {TuiTextMaskList} from '@taiga-ui/core';\n\nimport {tuiCreateDateMask} from './create-date-mask';\n\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n tuiAssert.assert(\n dateSeparator.length === 1,\n `Separator should consist of only 1 symbol`,\n );\n\n const dateMask = tuiCreateDateMask(dateMode, dateSeparator);\n\n return [\n ...dateMask,\n CHAR_NO_BREAK_SPACE,\n CHAR_EN_DASH,\n CHAR_NO_BREAK_SPACE,\n ...dateMask,\n ];\n}\n","import {TuiTimeMode} from '@taiga-ui/cdk';\nimport {TUI_DIGIT_REGEXP, TuiTextMaskList} from '@taiga-ui/core';\nimport {MAX_TIME_VALUES} from '@taiga-ui/kit/constants';\nimport {TuiTimeFormatParts} from '@taiga-ui/kit/types';\n\nfunction tuiCreateTimePartMask(\n maxPartValue: number,\n prefix?: string,\n): Array<string | RegExp> {\n const {length} = String(maxPartValue);\n const regExp = new Array(length).fill(TUI_DIGIT_REGEXP);\n\n if (prefix) {\n regExp.unshift(prefix);\n }\n\n return regExp;\n}\n\nexport function tuiCreateTimeMask(\n mode: TuiTimeMode,\n maxValues: Partial<Record<TuiTimeFormatParts, number>> = {},\n): TuiTextMaskList {\n const {HH, MM, SS, MS} = {\n ...MAX_TIME_VALUES,\n ...maxValues,\n };\n\n return [\n ...tuiCreateTimePartMask(HH),\n ...tuiCreateTimePartMask(MM, `:`),\n ...(mode.includes(`HH:MM:SS`) ? tuiCreateTimePartMask(SS, `:`) : []),\n ...(mode === `HH:MM:SS.MSS` ? tuiCreateTimePartMask(MS, `.`) : []),\n ];\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AASA;;;AAGA;SACgB,kBAAkB,CAC9B,SAAiB,EACjB,EAA6E;QAA5E,gBAAK,EAAE,YAAG,EAAE,YAAG,EAAE,0BAAU,EAAE,gCAAa;IAE3C,OAAO,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,SAAS;UACjE,SAAS;UACT,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC;aACvC,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;aAClB,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACnD,CAAC;SAEe,8BA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ErD,IAAA,uDAGL,EAHM,UAAE,EAAE,UAAE,EAAE,UAAE,EAAE,UAGlB,CAAC;IAEF,gBACO,qBAAqB,CAAC,EAAE,CAAC,EACzB,qBAAqB,CAAC,EAAE,EAAE,GAAG,CAAC,GAC7B,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,GAAG,qBAAqB,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,IAC/D,IAAI,KAAK,cAAc,GAAG,qBAAqB,CAAC,EAAE,EAAE,GAAG,CAAC,GAAG,EAAE,GACnE;AACN;;AClCA;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-math.js","sources":["ng://@taiga-ui/kit/utils/math/horizontal-direction-to-number.ts","ng://@taiga-ui/kit/utils/math/key-steps.ts","ng://@taiga-ui/kit/utils/math/taiga-ui-kit-utils-math.ts"],"sourcesContent":["import {TuiHorizontalDirection} from '@taiga-ui/core';\n\n/**\n * @internal\n */\nexport function tuiHorizontalDirectionToNumber(\n direction: TuiHorizontalDirection,\n): -1 | 1 {\n switch (direction) {\n case
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-math.js","sources":["ng://@taiga-ui/kit/utils/math/horizontal-direction-to-number.ts","ng://@taiga-ui/kit/utils/math/key-steps.ts","ng://@taiga-ui/kit/utils/math/taiga-ui-kit-utils-math.ts"],"sourcesContent":["import {TuiHorizontalDirection} from '@taiga-ui/core';\n\n/**\n * @internal\n */\nexport function tuiHorizontalDirectionToNumber(\n direction: TuiHorizontalDirection,\n): -1 | 1 {\n switch (direction) {\n case `left`:\n return -1;\n case `right`:\n return 1;\n }\n}\n","import {round} from '@taiga-ui/cdk';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TuiKeySteps} from '@taiga-ui/kit/types';\n\nfunction tuiFindKeyStepsBoundariesByFn(\n keySteps: TuiKeySteps,\n fn: ([keyStepPercent, keyStepValue]: [number, number]) => boolean,\n): [[number, number], [number, number]] {\n const keyStepUpperIndex = keySteps.findIndex((keyStep, i) => i && fn(keyStep));\n const lowerStep = keySteps[keyStepUpperIndex - 1];\n const upperStep = keySteps[keyStepUpperIndex];\n\n return [lowerStep, upperStep];\n}\n\nexport function tuiPercentageToKeyStepValue(\n valuePercentage: number,\n keySteps: TuiKeySteps,\n): number {\n const [[lowerStepPercent, lowerStepValue], [upperStepPercent, upperStepValue]] =\n tuiFindKeyStepsBoundariesByFn(\n keySteps,\n ([keyStepPercentage, _]) => valuePercentage <= keyStepPercentage,\n );\n const ratio =\n (valuePercentage - lowerStepPercent) / (upperStepPercent - lowerStepPercent);\n const controlValue = (upperStepValue - lowerStepValue) * ratio + lowerStepValue;\n\n return round(controlValue, TUI_FLOATING_PRECISION);\n}\n\nexport function tuiKeyStepValueToPercentage(\n value: number,\n keySteps: TuiKeySteps,\n): number {\n const [[lowerStepPercent, lowerStepValue], [upperStepPercent, upperStepValue]] =\n tuiFindKeyStepsBoundariesByFn(\n keySteps,\n ([_, keyStepValue]) => value <= keyStepValue,\n );\n const ratio = (value - lowerStepValue) / (upperStepValue - lowerStepValue) || 0;\n\n return (upperStepPercent - lowerStepPercent) * ratio + lowerStepPercent;\n}\n\nexport function tuiCheckKeyStepsHaveMinMaxPercents(steps: TuiKeySteps): boolean {\n return !steps.length || (steps[0][0] === 0 && steps[steps.length - 1][0] === 100);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAEA;;;SAGgB,8BAA8B,CAC1C,SAAiC;IAEjC,QAAQ,SAAS;QACb,KAAK,MAAM;YACP,OAAO,CAAC,CAAC,CAAC;QACd,KAAK,OAAO;YACR,OAAO,CAAC,CAAC;KAChB;AACL;;ACVA,SAAS,6BAA6B,CAClC,QAAqB,EACrB,EAAiE;IAEjE,IAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,UAAC,OAAO,EAAE,CAAC,IAAK,OAAA,CAAC,IAAI,EA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rxjs/operators';
|
|
|
6
6
|
|
|
7
7
|
function tuiCreateDefaultDayRangePeriods(periodTitles) {
|
|
8
8
|
if (periodTitles === void 0) { periodTitles = [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
"For all the time",
|
|
10
|
+
"Today",
|
|
11
|
+
"Yesterday",
|
|
12
|
+
"Current week",
|
|
13
|
+
"Current month",
|
|
14
|
+
"Previous month",
|
|
15
15
|
]; }
|
|
16
16
|
var today = TuiDay.currentLocal();
|
|
17
17
|
var yesterday = today.append({ day: -1 });
|
|
@@ -50,7 +50,7 @@ function tuiCreateTimePeriods(minHour, maxHour, minutes) {
|
|
|
50
50
|
*/
|
|
51
51
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
52
52
|
function getPrecision(num) {
|
|
53
|
-
var _a = __read(String(num).split(
|
|
53
|
+
var _a = __read(String(num).split("."), 2), _b = _a[1], fractionPart = _b === void 0 ? "" : _b;
|
|
54
54
|
return fractionPart.length;
|
|
55
55
|
}
|
|
56
56
|
var tuiGetPrecision = getPrecision;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-miscellaneous.js","sources":["ng://@taiga-ui/kit/utils/miscellaneous/create-default-day-range-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/create-time-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/get-precision.ts","ng://@taiga-ui/kit/utils/miscellaneous/is-flat.ts","ng://@taiga-ui/kit/utils/miscellaneous/replay-control-value-changes-factory.ts","ng://@taiga-ui/kit/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.ts"],"sourcesContent":["import {TUI_FIRST_DAY, TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\n\nexport function tuiCreateDefaultDayRangePeriods(\n periodTitles: [string, string, string, string, string, string] = [\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-miscellaneous.js","sources":["ng://@taiga-ui/kit/utils/miscellaneous/create-default-day-range-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/create-time-periods.ts","ng://@taiga-ui/kit/utils/miscellaneous/get-precision.ts","ng://@taiga-ui/kit/utils/miscellaneous/is-flat.ts","ng://@taiga-ui/kit/utils/miscellaneous/replay-control-value-changes-factory.ts","ng://@taiga-ui/kit/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.ts"],"sourcesContent":["import {TUI_FIRST_DAY, TuiDay, TuiDayRange} from '@taiga-ui/cdk';\nimport {TuiDayRangePeriod} from '@taiga-ui/kit/classes';\n\nexport function tuiCreateDefaultDayRangePeriods(\n periodTitles: [string, string, string, string, string, string] = [\n `For all the time`,\n `Today`,\n `Yesterday`,\n `Current week`,\n `Current month`,\n `Previous month`,\n ],\n): readonly TuiDayRangePeriod[] {\n const today = TuiDay.currentLocal();\n const yesterday = today.append({day: -1});\n const startOfWeek = today.append({day: -today.dayOfWeek()});\n const endOfWeek = startOfWeek.append({day: 6});\n const startOfMonth = today.append({day: 1 - today.day});\n const endOfMonth = startOfMonth.append({month: 1, day: -1});\n const startOfLastMonth = startOfMonth.append({month: -1});\n\n return [\n new TuiDayRangePeriod(new TuiDayRange(TUI_FIRST_DAY, today), periodTitles[0]),\n new TuiDayRangePeriod(new TuiDayRange(today, today), periodTitles[1]),\n new TuiDayRangePeriod(new TuiDayRange(yesterday, yesterday), periodTitles[2]),\n new TuiDayRangePeriod(new TuiDayRange(startOfWeek, endOfWeek), periodTitles[3]),\n new TuiDayRangePeriod(new TuiDayRange(startOfMonth, endOfMonth), periodTitles[4]),\n new TuiDayRangePeriod(\n new TuiDayRange(startOfLastMonth, startOfMonth.append({day: -1})),\n periodTitles[5],\n ),\n ];\n}\n","import {HOURS_IN_DAY, TuiTime} from '@taiga-ui/cdk';\n\nexport function tuiCreateTimePeriods(\n minHour: number = 0,\n maxHour: number = HOURS_IN_DAY,\n minutes: readonly number[] = [0, 30],\n): readonly TuiTime[] {\n const timeArray: TuiTime[] = [];\n\n for (let i = minHour; i < maxHour; i++) {\n for (let j = 0; j < minutes.length; j++) {\n const time = new TuiTime(i, minutes[j]);\n\n timeArray.push(time);\n }\n }\n\n return timeArray;\n}\n","/**\n * @deprecated: use {@link tuiGetPrecision} instead\n * @return fractional length\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function getPrecision(num: number): number {\n const [, fractionPart = ``] = String(num).split(`.`);\n\n return fractionPart.length;\n}\n\nexport const tuiGetPrecision = getPrecision;\n","/**\n * @deprecated: use {@link tuiIsFlat} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function isFlat<T>(\n items: readonly T[] | ReadonlyArray<readonly T[]>,\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n\nexport const tuiIsFlat = isFlat;\n","/* eslint-disable @typescript-eslint/naming-convention */\nimport {NgControl} from '@angular/forms';\nimport {\n TuiControlValueTransformer,\n TuiDay,\n TuiDayRange,\n tuiReplayedValueChangesFrom,\n TuiTime,\n} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @internal\n * @deprecated use {@link tuiReplayControlValueChangesFactory}\n * TODO: 3.0 name should be shorter and start with lowercase letter.\n */\nexport function TuiReplayControlValueChangesFactory<\n T extends TuiDayRange | TuiDay | [TuiDay | null, TuiTime | null],\n>(\n control: NgControl | null,\n valueTransformer?: TuiControlValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiReplayedValueChangesFrom(control).pipe(\n map(value =>\n valueTransformer\n ? valueTransformer.fromControlValue(value)\n : (value as T),\n ),\n )\n : of(null);\n}\n\nexport const tuiReplayControlValueChangesFactory = TuiReplayControlValueChangesFactory;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;SAGgB,+BAA+B,CAC3C,YAOC;IAPD,6BAAA,EAAA;QACI,kBAA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O,CAAC,CAAC,IAAI,CACrC,GAAG,CAAC,UAAA,KAAK;YACL,OAAA,gBAAgB;kBACV,gBAAgB,CAAC,gBAAgB,CAAC,KAAK,CAAC;kBACvC,KAAW;SAAA,CACrB,CACJ;UACD,EAAE,CAAC,IAAI,CAAC,CAAC;AACnB,CAAC;IAEY,mCAAmC,GAAG;;AClCnD;;;;;;"}
|
|
@@ -8,7 +8,7 @@ function tuiCreateUnfinishedValidator(nativeInputGetter, message) {
|
|
|
8
8
|
nativeInput &&
|
|
9
9
|
// TODO: iframe warning
|
|
10
10
|
nativeInput.nativeFocusableElement instanceof HTMLInputElement &&
|
|
11
|
-
nativeInput.nativeFocusableElement.value !==
|
|
11
|
+
nativeInput.nativeFocusableElement.value !== ""
|
|
12
12
|
? { unfinished: new TuiValidationError(message) }
|
|
13
13
|
: null;
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-validators.js","sources":["ng://@taiga-ui/kit/validators/unfinished.validator.ts","ng://@taiga-ui/kit/validators/taiga-ui-kit-validators.ts"],"sourcesContent":["import {AbstractControl, ValidatorFn} from '@angular/forms';\nimport {TuiFocusableElementAccessor, TuiValidationError} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport function tuiCreateUnfinishedValidator(\n nativeInputGetter: () => TuiFocusableElementAccessor,\n message: PolymorpheusContent,\n): ValidatorFn {\n return ({\n value,\n }: AbstractControl): {unfinished: TuiValidationError | string} | null => {\n const nativeInput = nativeInputGetter();\n\n return value === null &&\n nativeInput &&\n // TODO: iframe warning\n nativeInput.nativeFocusableElement instanceof HTMLInputElement &&\n nativeInput.nativeFocusableElement.value !==
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-validators.js","sources":["ng://@taiga-ui/kit/validators/unfinished.validator.ts","ng://@taiga-ui/kit/validators/taiga-ui-kit-validators.ts"],"sourcesContent":["import {AbstractControl, ValidatorFn} from '@angular/forms';\nimport {TuiFocusableElementAccessor, TuiValidationError} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport function tuiCreateUnfinishedValidator(\n nativeInputGetter: () => TuiFocusableElementAccessor,\n message: PolymorpheusContent,\n): ValidatorFn {\n return ({\n value,\n }: AbstractControl): {unfinished: TuiValidationError | string} | null => {\n const nativeInput = nativeInputGetter();\n\n return value === null &&\n nativeInput &&\n // TODO: iframe warning\n nativeInput.nativeFocusableElement instanceof HTMLInputElement &&\n nativeInput.nativeFocusableElement.value !== ``\n ? {unfinished: new TuiValidationError(message)}\n : null;\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;SAIgB,4BAA4B,CACxC,iBAAoD,EACpD,OAA4B;IAE5B,OAAO,UAAC,EAEU;YADd,gBAAK;QAEL,IAAM,WAAW,GAAG,iBAAiB,EAAE,CAAC;QAExC,OAAO,KAAK,KAAK,IAAI;YACjB,WAAW;;YAEX,WAAW,CAAC,sBAAsB,YAAY,gBAAgB;YAC9D,WAAW,CAAC,sBAAsB,CAAC,KAAK,KAAK,EAAE;cAC7C,EAAC,UAAU,EAAE,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAC;cAC7C,IAAI,CAAC;KACd,CAAC;AACN;;ACrBA;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.0",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@angular/router": ">=9.0.0",
|
|
25
25
|
"@ng-web-apis/common": ">=1.12.1 < 2",
|
|
26
26
|
"@ng-web-apis/mutation-observer": ">=1.1.0 < 2",
|
|
27
|
-
"@taiga-ui/cdk": ">=2.
|
|
28
|
-
"@taiga-ui/core": ">=2.
|
|
29
|
-
"@taiga-ui/i18n": ">=2.
|
|
27
|
+
"@taiga-ui/cdk": ">=2.57.0",
|
|
28
|
+
"@taiga-ui/core": ">=2.57.0",
|
|
29
|
+
"@taiga-ui/i18n": ">=2.57.0",
|
|
30
30
|
"@tinkoff/ng-polymorpheus": ">=3.1.12 < 4",
|
|
31
31
|
"rxjs": ">=6.0.0"
|
|
32
32
|
},
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { ChangeDetectorRef, Directive, ElementRef, HostListener, Inject, Input, Optional, Output, Pipe, PipeTransform, Self, } from '@angular/core';
|
|
3
|
-
import { NgControl } from '@angular/forms';
|
|
4
|
-
import { AbstractTuiControl, clamp, isNativeFocused, tuiAssert, tuiDefaultProp, typedFromEvent, } from '@taiga-ui/cdk';
|
|
5
|
-
import { tuiCheckKeyStepsHaveMinMaxPercents, tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, } from '@taiga-ui/kit/utils';
|
|
6
|
-
import { map } from 'rxjs/operators';
|
|
7
|
-
import { TuiSliderComponent } from './slider.component';
|
|
8
|
-
// @dynamic
|
|
9
|
-
let TuiSliderKeyStepsDirective = class TuiSliderKeyStepsDirective extends AbstractTuiControl {
|
|
10
|
-
constructor(control, changeDetectorRef, elementRef, slider) {
|
|
11
|
-
super(control, changeDetectorRef);
|
|
12
|
-
this.elementRef = elementRef;
|
|
13
|
-
this.slider = slider;
|
|
14
|
-
this.keySteps = [];
|
|
15
|
-
this.keyStepsInput = typedFromEvent(this.elementRef.nativeElement, 'input').pipe(map(() => this.controlValue));
|
|
16
|
-
}
|
|
17
|
-
get nativeFocusableElement() {
|
|
18
|
-
return this.computedDisabled ? null : this.elementRef.nativeElement;
|
|
19
|
-
}
|
|
20
|
-
get focused() {
|
|
21
|
-
return isNativeFocused(this.nativeFocusableElement);
|
|
22
|
-
}
|
|
23
|
-
get min() {
|
|
24
|
-
var _a;
|
|
25
|
-
return ((_a = this.keySteps[0]) === null || _a === void 0 ? void 0 : _a[1]) || 0;
|
|
26
|
-
}
|
|
27
|
-
get max() {
|
|
28
|
-
var _a;
|
|
29
|
-
return ((_a = this.keySteps[this.keySteps.length - 1]) === null || _a === void 0 ? void 0 : _a[1]) || 100;
|
|
30
|
-
}
|
|
31
|
-
get controlValue() {
|
|
32
|
-
return tuiPercentageToKeyStepValue(this.slider.valuePercentage, this.keySteps);
|
|
33
|
-
}
|
|
34
|
-
updateControlValue() {
|
|
35
|
-
this.updateValue(this.controlValue);
|
|
36
|
-
}
|
|
37
|
-
writeValue(controlValue) {
|
|
38
|
-
if (controlValue === null) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const clampedControlValue = clamp(controlValue, this.min, this.max);
|
|
42
|
-
tuiAssert.assert(controlValue === clampedControlValue, '\n[SliderKeySteps]: You cannot programmatically set value which is less/more than min/max');
|
|
43
|
-
this.slider.value = this.transformToNativeValue(clampedControlValue);
|
|
44
|
-
}
|
|
45
|
-
getFallbackValue() {
|
|
46
|
-
return 0;
|
|
47
|
-
}
|
|
48
|
-
transformToNativeValue(controlValue) {
|
|
49
|
-
const { min, max } = this.slider;
|
|
50
|
-
const newValuePercentage = tuiKeyStepValueToPercentage(controlValue, this.keySteps);
|
|
51
|
-
return (newValuePercentage * (max - min)) / 100 + min;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
TuiSliderKeyStepsDirective.ctorParameters = () => [
|
|
55
|
-
{ type: NgControl, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [NgControl,] }] },
|
|
56
|
-
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
57
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
58
|
-
{ type: TuiSliderComponent, decorators: [{ type: Inject, args: [TuiSliderComponent,] }] }
|
|
59
|
-
];
|
|
60
|
-
__decorate([
|
|
61
|
-
Input(),
|
|
62
|
-
tuiDefaultProp(tuiCheckKeyStepsHaveMinMaxPercents, 'Should contain min and max values')
|
|
63
|
-
], TuiSliderKeyStepsDirective.prototype, "keySteps", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
Output()
|
|
66
|
-
], TuiSliderKeyStepsDirective.prototype, "keyStepsInput", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
HostListener('change')
|
|
69
|
-
], TuiSliderKeyStepsDirective.prototype, "updateControlValue", null);
|
|
70
|
-
TuiSliderKeyStepsDirective = __decorate([
|
|
71
|
-
Directive({
|
|
72
|
-
selector: 'input[tuiSlider][keySteps]',
|
|
73
|
-
host: {
|
|
74
|
-
'[attr.data-key-steps]': 'true',
|
|
75
|
-
'[attr.aria-valuenow]': 'controlValue',
|
|
76
|
-
'[attr.aria-valuemin]': 'min',
|
|
77
|
-
'[attr.aria-valuemax]': 'max',
|
|
78
|
-
},
|
|
79
|
-
}),
|
|
80
|
-
__param(0, Optional()),
|
|
81
|
-
__param(0, Self()),
|
|
82
|
-
__param(0, Inject(NgControl)),
|
|
83
|
-
__param(1, Inject(ChangeDetectorRef)),
|
|
84
|
-
__param(2, Inject(ElementRef)),
|
|
85
|
-
__param(3, Inject(TuiSliderComponent))
|
|
86
|
-
], TuiSliderKeyStepsDirective);
|
|
87
|
-
export { TuiSliderKeyStepsDirective };
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated DONT USE IT! It is just temporary solution for internal purposes only. We will delete it in next major release.
|
|
90
|
-
* TODO delete it in v3.0
|
|
91
|
-
*
|
|
92
|
-
*/
|
|
93
|
-
let TuiSliderTickLabelPipe = class TuiSliderTickLabelPipe {
|
|
94
|
-
transform(tickIndex, totalSegments, keySteps) {
|
|
95
|
-
const percentage = (100 / totalSegments) * tickIndex;
|
|
96
|
-
return tuiPercentageToKeyStepValue(percentage, keySteps);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
TuiSliderTickLabelPipe = __decorate([
|
|
100
|
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IGtleVN0ZXBzKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from "tslib";
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { Directive, ElementRef, HostListener, Inject, Input } from '@angular/core';
|
|
4
|
-
import { tuiCoerceBooleanProperty, tuiDefaultProp, TuiDestroyService, typedFromEvent, } from '@taiga-ui/cdk';
|
|
5
|
-
import { combineLatest, merge, Observable } from 'rxjs';
|
|
6
|
-
import { filter, mapTo, takeUntil, tap } from 'rxjs/operators';
|
|
7
|
-
const SLIDER_INTERACTION_KEYS = new Set([
|
|
8
|
-
'ArrowLeft',
|
|
9
|
-
'ArrowRight',
|
|
10
|
-
'ArrowUp',
|
|
11
|
-
'ArrowDown',
|
|
12
|
-
'Home',
|
|
13
|
-
'End',
|
|
14
|
-
'PageUp',
|
|
15
|
-
'PageDown',
|
|
16
|
-
]);
|
|
17
|
-
/**
|
|
18
|
-
* Native <input type='range' readonly> doesn't work.
|
|
19
|
-
* This directive imitates this native behaviour.
|
|
20
|
-
*/
|
|
21
|
-
// @dynamic
|
|
22
|
-
let TuiSliderReadonlyDirective = class TuiSliderReadonlyDirective {
|
|
23
|
-
constructor(elementRef, documentRef, destroy$) {
|
|
24
|
-
this.readonly = true;
|
|
25
|
-
const touchStart$ = typedFromEvent(elementRef.nativeElement, 'touchstart', {
|
|
26
|
-
passive: false,
|
|
27
|
-
});
|
|
28
|
-
const touchMove$ = typedFromEvent(documentRef, 'touchmove', {
|
|
29
|
-
passive: false,
|
|
30
|
-
});
|
|
31
|
-
const touchEnd$ = typedFromEvent(documentRef, 'touchend', {
|
|
32
|
-
passive: true,
|
|
33
|
-
});
|
|
34
|
-
const shouldPreventMove$ = merge(touchStart$.pipe(tap(e => this.preventEvent(e)), mapTo(true)), touchEnd$.pipe(mapTo(false)));
|
|
35
|
-
/**
|
|
36
|
-
* @bad TODO think about another solution.
|
|
37
|
-
* Keep in mind that preventing touch event (on slider) inside `@HostListener('touchstart')` doesn't work for mobile chrome.
|
|
38
|
-
*/
|
|
39
|
-
combineLatest([touchMove$, shouldPreventMove$])
|
|
40
|
-
.pipe(filter(([_, shouldPreventMove]) => shouldPreventMove), takeUntil(destroy$))
|
|
41
|
-
.subscribe(([moveEvent]) => this.preventEvent(moveEvent));
|
|
42
|
-
}
|
|
43
|
-
preventEvent(event) {
|
|
44
|
-
if (event.cancelable && tuiCoerceBooleanProperty(this.readonly)) {
|
|
45
|
-
event.preventDefault();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
preventKeyboardInteraction(event) {
|
|
49
|
-
if (SLIDER_INTERACTION_KEYS.has(event.key)) {
|
|
50
|
-
this.preventEvent(event);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
TuiSliderReadonlyDirective.ctorParameters = () => [
|
|
55
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
56
|
-
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
57
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] }
|
|
58
|
-
];
|
|
59
|
-
__decorate([
|
|
60
|
-
Input(),
|
|
61
|
-
tuiDefaultProp()
|
|
62
|
-
], TuiSliderReadonlyDirective.prototype, "readonly", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
HostListener('mousedown', ['$event'])
|
|
65
|
-
], TuiSliderReadonlyDirective.prototype, "preventEvent", null);
|
|
66
|
-
__decorate([
|
|
67
|
-
HostListener('keydown', ['$event'])
|
|
68
|
-
], TuiSliderReadonlyDirective.prototype, "preventKeyboardInteraction", null);
|
|
69
|
-
TuiSliderReadonlyDirective = __decorate([
|
|
70
|
-
Directive({
|
|
71
|
-
selector: 'input[tuiSlider][readonly]',
|
|
72
|
-
providers: [TuiDestroyService],
|
|
73
|
-
}),
|
|
74
|
-
__param(0, Inject(ElementRef)),
|
|
75
|
-
__param(1, Inject(DOCUMENT)),
|
|
76
|
-
__param(2, Inject(TuiDestroyService))
|
|
77
|
-
], TuiSliderReadonlyDirective);
|
|
78
|
-
export { TuiSliderReadonlyDirective };
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpZGVyLXJlYWRvbmx5LmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy9zbGlkZXIvIiwic291cmNlcyI6WyJzbGlkZXItcmVhZG9ubHkuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDekMsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDakYsT0FBTyxFQUNILHdCQUF3QixFQUN4QixjQUFjLEVBQ2QsaUJBQWlCLEVBQ2pCLGNBQWMsR0FDakIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLGFBQWEsRUFBRSxLQUFLLEVBQUUsVUFBVSxFQUFDLE1BQU0sTUFBTSxDQUFDO0FBQ3RELE9BQU8sRUFBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLFNBQVMsRUFBRSxHQUFHLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUU3RCxNQUFNLHVCQUF1QixHQUFHLElBQUksR0FBRyxDQUFDO0lBQ3BDLFdBQVc7SUFDWCxZQUFZO0lBQ1osU0FBUztJQUNULFdBQVc7SUFDWCxNQUFNO0lBQ04sS0FBSztJQUNMLFFBQVE7SUFDUixVQUFVO0NBQ2IsQ0FBQyxDQUFDO0FBRUg7OztHQUdHO0FBQ0gsV0FBVztBQUtYLElBQWEsMEJBQTBCLEdBQXZDLE1BQW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ID0+IHRoaXMucHJldmVudEV2ZW50KGUpKSxcbiAgICAgICAgICAgICAgICBtYXBUbyh0cnVlKSxcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0b3VjaEVuZCQucGlwZShtYXBUbyhmYWxzZSkpLFxuICAgICAgICApO1xuXG4gICAgICAgIC8qKlxuICAgICAgICAgKiBAYmFkIFRPRE8gdGhpbmsgYWJvdXQgYW5vdGhlciBzb2x1dGlvbi5cbiAgICAgICAgICogS2VlcCBpbiBtaW5kIHRoYXQgcHJldmVudGluZyB0b3VjaCBldmVudCAob24gc2xpZGVyKSBpbnNpZGUgYEBIb3N0TGlzdGVuZXIoJ3RvdWNoc3RhcnQnKWAgZG9lc24ndCB3b3JrIGZvciBtb2JpbGUgY2hyb21lLlxuICAgICAgICAgKi9cbiAgICAgICAgY29tYmluZUxhdGVzdChbdG91Y2hNb3ZlJCwgc2hvdWxkUHJldmVudE1vdmUkXSlcbiAgICAgICAgICAgIC5waXBlKFxuICAgICAgICAgICAgICAgIGZpbHRlcigoW18sIHNob3VsZFByZXZlbnRNb3ZlXSkgPT4gc2hvdWxkUHJldmVudE1vdmUpLFxuICAgICAgICAgICAgICAgIHRha2VVbnRpbChkZXN0cm95JCksXG4gICAgICAgICAgICApXG4gICAgICAgICAgICAuc3Vic2NyaWJlKChbbW92ZUV2ZW50XSkgPT4gdGhpcy5wcmV2ZW50RXZlbnQobW92ZUV2ZW50KSk7XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcignbW91c2Vkb3duJywgWyckZXZlbnQnXSlcbiAgICBwcmV2ZW50RXZlbnQoZXZlbnQ6IEV2ZW50KTogdm9pZCB7XG4gICAgICAgIGlmIChldmVudC5jYW5jZWxhYmxlICYmIHR1aUNvZXJjZUJvb2xlYW5Qcm9wZXJ0eSh0aGlzLnJlYWRvbmx5KSkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2tleWRvd24nLCBbJyRldmVudCddKVxuICAgIHByZXZlbnRLZXlib2FyZEludGVyYWN0aW9uKGV2ZW50OiBLZXlib2FyZEV2ZW50KTogdm9pZCB7XG4gICAgICAgIGlmIChTTElERVJfSU5URVJBQ1RJT05fS0VZUy5oYXMoZXZlbnQua2V5KSkge1xuICAgICAgICAgICAgdGhpcy5wcmV2ZW50RXZlbnQoZXZlbnQpO1xuICAgICAgICB9XG4gICAgfVxufVxuIl19
|