@taiga-ui/kit 3.51.0 → 3.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/abstract/taiga-ui-kit-abstract.d.ts +3 -0
- package/bundles/taiga-ui-kit-abstract.umd.js +4 -0
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-classes.umd.js +7 -0
- package/bundles/taiga-ui-kit-classes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +10 -3
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +21 -0
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js +720 -0
- package/bundles/taiga-ui-kit-components-input-date-multi.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +15 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +23 -0
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +33 -2
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +17 -6
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +38 -0
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-prompt.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-prompt.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +5 -0
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +8 -0
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +11 -0
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +7 -0
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +39 -0
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +6 -0
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +25 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +13 -0
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +4 -0
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +9 -0
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +28 -0
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +14 -4
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +19 -0
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +5 -0
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-mask.umd.js +26 -0
- package/bundles/taiga-ui-kit-directives-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +15 -0
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +7 -0
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +7 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-unmask-handler.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.js +4 -0
- package/bundles/taiga-ui-kit-directives.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js +3 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +10 -0
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal.umd.js +4 -0
- package/bundles/taiga-ui-kit-internal.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +7 -0
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes.umd.js +4 -0
- package/bundles/taiga-ui-kit-pipes.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-providers.umd.js +4 -0
- package/bundles/taiga-ui-kit-providers.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-services.umd.js +4 -0
- package/bundles/taiga-ui-kit-services.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +35 -0
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-types.umd.js +3 -1
- package/bundles/taiga-ui-kit-types.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-date.umd.js +22 -0
- package/bundles/taiga-ui-kit-utils-date.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-utils-files.umd.js +4 -0
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +10 -0
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +50 -0
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +7 -0
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +10 -0
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +4 -0
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils.umd.js +14 -4
- package/bundles/taiga-ui-kit-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-validators.umd.js +4 -0
- package/bundles/taiga-ui-kit-validators.umd.js.map +1 -1
- package/bundles/taiga-ui-kit.umd.js +4 -0
- package/bundles/taiga-ui-kit.umd.js.map +1 -1
- package/classes/stringifiable-item.d.ts +3 -0
- package/classes/taiga-ui-kit-classes.d.ts +3 -0
- package/components/accordion/taiga-ui-kit-components-accordion.d.ts +3 -0
- package/components/action/taiga-ui-kit-components-action.d.ts +3 -0
- package/components/arrow/arrow.options.d.ts +4 -0
- package/components/arrow/arrow.providers.d.ts +3 -0
- package/components/arrow/taiga-ui-kit-components-arrow.d.ts +3 -0
- package/components/avatar/avatar.options.d.ts +4 -0
- package/components/avatar/taiga-ui-kit-components-avatar.d.ts +3 -0
- package/components/badge/taiga-ui-kit-components-badge.d.ts +3 -0
- package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +3 -0
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +3 -0
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +3 -0
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +3 -0
- package/components/carousel/taiga-ui-kit-components-carousel.d.ts +3 -0
- package/components/checkbox/checkbox.component.d.ts +1 -0
- package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +3 -0
- package/components/checkbox-block/checkbox-block.component.d.ts +1 -0
- package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +3 -0
- package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -0
- package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +3 -0
- package/components/combo-box/combo-box.component.d.ts +1 -0
- package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +3 -0
- package/components/data-list-wrapper/data-list-wrapper.d.ts +3 -2
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +3 -0
- package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +3 -0
- package/components/files/file/file-options.d.ts +3 -0
- package/components/files/taiga-ui-kit-components-files.d.ts +3 -0
- package/components/filter/taiga-ui-kit-components-filter.d.ts +3 -0
- package/components/index.d.ts +1 -0
- package/components/input/taiga-ui-kit-components-input.d.ts +3 -0
- package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +3 -0
- package/components/input-count/input-count.component.d.ts +10 -0
- package/components/input-count/input-count.module.d.ts +3 -0
- package/components/input-count/input-count.options.d.ts +4 -0
- package/components/input-count/taiga-ui-kit-components-input-count.d.ts +3 -0
- package/components/input-date/input-date.component.d.ts +4 -0
- package/components/input-date/taiga-ui-kit-components-input-date.d.ts +3 -0
- package/components/input-date-multi/index.d.ts +2 -0
- package/components/input-date-multi/input-date-multi.component.d.ts +64 -0
- package/components/input-date-multi/input-date-multi.module.d.ts +14 -0
- package/components/input-date-multi/package.json +10 -0
- package/components/input-date-multi/taiga-ui-kit-components-input-date-multi.d.ts +5 -0
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +3 -0
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +3 -0
- package/components/input-files/input-files.component.d.ts +6 -0
- package/components/input-files/input-files.options.d.ts +8 -0
- package/components/input-files/taiga-ui-kit-components-input-files.d.ts +3 -0
- package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +3 -0
- package/components/input-month/taiga-ui-kit-components-input-month.d.ts +3 -0
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +3 -0
- package/components/input-number/input-number.component.d.ts +2 -0
- package/components/input-number/input-number.options.d.ts +4 -0
- package/components/input-number/taiga-ui-kit-components-input-number.d.ts +3 -0
- package/components/input-password/input-password.options.d.ts +4 -0
- package/components/input-password/taiga-ui-kit-components-input-password.d.ts +3 -0
- package/components/input-phone/input-phone.options.d.ts +3 -0
- package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +3 -0
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +7 -0
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +6 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +13 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +3 -0
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +3 -0
- package/components/input-range/taiga-ui-kit-components-input-range.d.ts +3 -0
- package/components/input-slider/input-slider.component.d.ts +2 -0
- package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +3 -0
- package/components/input-tag/input-tag.component.d.ts +1 -1
- package/components/input-tag/input-tag.options.d.ts +3 -0
- package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +3 -0
- package/components/input-time/input-time.component.d.ts +1 -0
- package/components/input-time/input-time.options.d.ts +3 -0
- package/components/input-time/taiga-ui-kit-components-input-time.d.ts +3 -0
- package/components/input-year/taiga-ui-kit-components-input-year.d.ts +3 -0
- package/components/island/taiga-ui-kit-components-island.d.ts +3 -0
- package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +3 -0
- package/components/line-clamp/line-clamp.options.d.ts +3 -0
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +3 -0
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +3 -0
- package/components/multi-select/multi-select.options.d.ts +3 -0
- package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +3 -0
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +3 -0
- package/components/pagination/pagination.component.d.ts +37 -0
- package/components/pagination/taiga-ui-kit-components-pagination.d.ts +3 -0
- package/components/pdf-viewer/pdf-viewer.options.d.ts +3 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +3 -0
- package/components/progress/taiga-ui-kit-components-progress.d.ts +3 -0
- package/components/prompt/taiga-ui-kit-components-prompt.d.ts +3 -0
- package/components/push/push.options.d.ts +3 -0
- package/components/push/taiga-ui-kit-components-push.d.ts +3 -0
- package/components/radio/radio.options.d.ts +4 -0
- package/components/radio/taiga-ui-kit-components-radio.d.ts +3 -0
- package/components/radio-block/radio-block.component.d.ts +1 -0
- package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +3 -0
- package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +3 -0
- package/components/radio-labeled/radio-labeled.component.d.ts +1 -0
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +3 -0
- package/components/radio-list/radio-list.component.d.ts +1 -0
- package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +3 -0
- package/components/range/range-change.directive.d.ts +4 -0
- package/components/range/taiga-ui-kit-components-range.d.ts +3 -0
- package/components/rating/rating.options.d.ts +3 -0
- package/components/rating/taiga-ui-kit-components-rating.d.ts +3 -0
- package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +3 -0
- package/components/select/select.options.d.ts +3 -0
- package/components/select/taiga-ui-kit-components-select.d.ts +3 -0
- package/components/select-option/taiga-ui-kit-components-select-option.d.ts +3 -0
- package/components/slider/helpers/slider-readonly.directive.d.ts +4 -0
- package/components/slider/slider.options.d.ts +3 -0
- package/components/slider/taiga-ui-kit-components-slider.d.ts +3 -0
- package/components/stepper/taiga-ui-kit-components-stepper.d.ts +3 -0
- package/components/tabs/tab/tab.providers.d.ts +3 -0
- package/components/tabs/tabs/tabs.component.d.ts +2 -0
- package/components/tabs/tabs.options.d.ts +3 -0
- package/components/tabs/taiga-ui-kit-components-tabs.d.ts +3 -0
- package/components/tag/tag.options.d.ts +4 -0
- package/components/tag/taiga-ui-kit-components-tag.d.ts +3 -0
- package/components/taiga-ui-kit-components.d.ts +3 -0
- package/components/textarea/deprecated.d.ts +9 -0
- package/components/textarea/taiga-ui-kit-components-textarea.d.ts +3 -0
- package/components/tiles/taiga-ui-kit-components-tiles.d.ts +3 -0
- package/components/toggle/taiga-ui-kit-components-toggle.d.ts +3 -0
- package/components/toggle/toggle.component.d.ts +1 -0
- package/components/toggle/toggle.options.d.ts +4 -0
- package/components/tree/misc/tree.tokens.d.ts +24 -0
- package/components/tree/taiga-ui-kit-components-tree.d.ts +3 -0
- package/constants/empty-mask.d.ts +4 -0
- package/constants/group-class-names.d.ts +4 -0
- package/constants/masks.d.ts +4 -0
- package/constants/math.d.ts +3 -0
- package/constants/taiga-ui-kit-constants.d.ts +3 -0
- package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +3 -0
- package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +3 -0
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +3 -0
- package/directives/mask/legacy-mask.d.ts +21 -0
- package/directives/mask/taiga-ui-kit-directives-mask.d.ts +3 -0
- package/directives/present/present.directive.d.ts +11 -0
- package/directives/present/taiga-ui-kit-directives-present.d.ts +3 -0
- package/directives/project-class/project-class.directive.d.ts +3 -0
- package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +3 -0
- package/directives/taiga-ui-kit-directives.d.ts +3 -0
- package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +3 -0
- package/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.d.ts +3 -0
- package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +3 -0
- package/esm2015/abstract/taiga-ui-kit-abstract.js +4 -1
- package/esm2015/classes/stringifiable-item.js +4 -1
- package/esm2015/classes/taiga-ui-kit-classes.js +4 -1
- package/esm2015/components/accordion/taiga-ui-kit-components-accordion.js +4 -1
- package/esm2015/components/action/taiga-ui-kit-components-action.js +4 -1
- package/esm2015/components/arrow/arrow.options.js +5 -1
- package/esm2015/components/arrow/arrow.providers.js +4 -1
- package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +4 -1
- package/esm2015/components/avatar/avatar.options.js +5 -1
- package/esm2015/components/avatar/taiga-ui-kit-components-avatar.js +4 -1
- package/esm2015/components/badge/taiga-ui-kit-components-badge.js +4 -1
- package/esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js +4 -1
- package/esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js +4 -1
- package/esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js +4 -1
- package/esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js +4 -1
- package/esm2015/components/carousel/carousel-scroll.directive.js +2 -1
- package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +4 -1
- package/esm2015/components/checkbox/checkbox.component.js +2 -1
- package/esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js +4 -1
- package/esm2015/components/checkbox-block/checkbox-block.component.js +2 -1
- package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +4 -1
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +2 -1
- package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +4 -1
- package/esm2015/components/combo-box/combo-box.component.js +2 -1
- package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +4 -1
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.js +6 -3
- package/esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js +4 -1
- package/esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js +4 -1
- package/esm2015/components/files/file/file-options.js +4 -1
- package/esm2015/components/files/file/file.component.js +2 -1
- package/esm2015/components/files/taiga-ui-kit-components-files.js +4 -1
- package/esm2015/components/filter/filter.component.js +2 -1
- package/esm2015/components/filter/taiga-ui-kit-components-filter.js +4 -1
- package/esm2015/components/index.js +2 -1
- package/esm2015/components/input/taiga-ui-kit-components-input.js +4 -1
- package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +4 -1
- package/esm2015/components/input-count/input-count.component.js +11 -1
- package/esm2015/components/input-count/input-count.module.js +4 -1
- package/esm2015/components/input-count/input-count.options.js +5 -1
- package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +4 -1
- package/esm2015/components/input-date/input-date.component.js +6 -1
- package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +4 -1
- package/esm2015/components/input-date-multi/index.js +3 -0
- package/esm2015/components/input-date-multi/input-date-multi.component.js +272 -0
- package/esm2015/components/input-date-multi/input-date-multi.module.js +64 -0
- package/esm2015/components/input-date-multi/taiga-ui-kit-components-input-date-multi.js +5 -0
- package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +4 -1
- package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +4 -1
- package/esm2015/components/input-files/input-files.component.js +9 -1
- package/esm2015/components/input-files/input-files.directive.js +2 -1
- package/esm2015/components/input-files/input-files.options.js +5 -2
- package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +4 -1
- package/esm2015/components/input-inline/input-inline.component.js +3 -1
- package/esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js +4 -1
- package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +4 -1
- package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +4 -1
- package/esm2015/components/input-number/input-number.component.js +4 -1
- package/esm2015/components/input-number/input-number.options.js +5 -1
- package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +4 -1
- package/esm2015/components/input-password/input-password.options.js +6 -1
- package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +4 -1
- package/esm2015/components/input-phone/input-phone.options.js +4 -1
- package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +4 -1
- package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +21 -3
- package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +7 -1
- package/esm2015/components/input-phone-international/input-phone-international.component.js +17 -1
- package/esm2015/components/input-phone-international/input-phone-international.options.js +4 -1
- package/esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js +4 -1
- package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +4 -1
- package/esm2015/components/input-slider/input-slider.component.js +3 -1
- package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +4 -1
- package/esm2015/components/input-tag/input-tag.component.js +6 -2
- package/esm2015/components/input-tag/input-tag.options.js +4 -1
- package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +4 -1
- package/esm2015/components/input-time/input-time.component.js +3 -1
- package/esm2015/components/input-time/input-time.options.js +4 -1
- package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +4 -1
- package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +4 -1
- package/esm2015/components/island/taiga-ui-kit-components-island.js +4 -1
- package/esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js +4 -1
- package/esm2015/components/line-clamp/line-clamp.component.js +2 -1
- package/esm2015/components/line-clamp/line-clamp.options.js +4 -1
- package/esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js +4 -1
- package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +4 -1
- package/esm2015/components/multi-select/multi-select.component.js +2 -1
- package/esm2015/components/multi-select/multi-select.options.js +4 -1
- package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +4 -1
- package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +4 -1
- package/esm2015/components/pagination/pagination.component.js +35 -1
- package/esm2015/components/pagination/taiga-ui-kit-components-pagination.js +4 -1
- package/esm2015/components/pdf-viewer/pdf-viewer.options.js +4 -1
- package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +4 -1
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +2 -1
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -1
- package/esm2015/components/progress/taiga-ui-kit-components-progress.js +4 -1
- package/esm2015/components/prompt/prompt.component.js +2 -1
- package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +4 -1
- package/esm2015/components/push/push.options.js +4 -1
- package/esm2015/components/push/taiga-ui-kit-components-push.js +4 -1
- package/esm2015/components/radio/radio.options.js +5 -1
- package/esm2015/components/radio/taiga-ui-kit-components-radio.js +4 -1
- package/esm2015/components/radio-block/radio-block.component.js +2 -1
- package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +4 -1
- package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +4 -1
- package/esm2015/components/radio-labeled/radio-labeled.component.js +2 -1
- package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +4 -1
- package/esm2015/components/radio-list/radio-list.component.js +3 -1
- package/esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js +4 -1
- package/esm2015/components/range/range-change.directive.js +5 -1
- package/esm2015/components/range/range.component.js +2 -1
- package/esm2015/components/range/taiga-ui-kit-components-range.js +4 -1
- package/esm2015/components/rating/rating.options.js +4 -1
- package/esm2015/components/rating/taiga-ui-kit-components-rating.js +4 -1
- package/esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js +4 -1
- package/esm2015/components/select/select.options.js +4 -1
- package/esm2015/components/select/taiga-ui-kit-components-select.js +4 -1
- package/esm2015/components/select-option/select-option.component.js +8 -1
- package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +4 -1
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +9 -1
- package/esm2015/components/slider/slider.component.js +25 -1
- package/esm2015/components/slider/slider.options.js +4 -1
- package/esm2015/components/slider/taiga-ui-kit-components-slider.js +4 -1
- package/esm2015/components/stepper/stepper.component.js +3 -1
- package/esm2015/components/stepper/taiga-ui-kit-components-stepper.js +4 -1
- package/esm2015/components/tabs/tab/tab.component.js +9 -1
- package/esm2015/components/tabs/tab/tab.providers.js +4 -1
- package/esm2015/components/tabs/tabs/tabs.component.js +3 -1
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -1
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +4 -2
- package/esm2015/components/tabs/tabs.options.js +4 -1
- package/esm2015/components/tabs/taiga-ui-kit-components-tabs.js +4 -1
- package/esm2015/components/tag/tag.component.js +2 -1
- package/esm2015/components/tag/tag.options.js +5 -1
- package/esm2015/components/tag/taiga-ui-kit-components-tag.js +4 -1
- package/esm2015/components/taiga-ui-kit-components.js +4 -1
- package/esm2015/components/textarea/deprecated.js +10 -1
- package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +4 -1
- package/esm2015/components/tiles/taiga-ui-kit-components-tiles.js +4 -1
- package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +4 -1
- package/esm2015/components/toggle/toggle.component.js +2 -1
- package/esm2015/components/toggle/toggle.options.js +5 -1
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -1
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +2 -1
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +2 -1
- package/esm2015/components/tree/misc/tree.tokens.js +25 -1
- package/esm2015/components/tree/taiga-ui-kit-components-tree.js +4 -1
- package/esm2015/constants/empty-mask.js +5 -1
- package/esm2015/constants/group-class-names.js +5 -1
- package/esm2015/constants/masks.js +5 -1
- package/esm2015/constants/math.js +4 -1
- package/esm2015/constants/taiga-ui-kit-constants.js +4 -1
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +2 -1
- package/esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js +4 -1
- package/esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js +4 -1
- package/esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js +4 -1
- package/esm2015/directives/mask/legacy-mask.js +31 -1
- package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +4 -1
- package/esm2015/directives/present/present.directive.js +12 -1
- package/esm2015/directives/present/taiga-ui-kit-directives-present.js +4 -1
- package/esm2015/directives/project-class/project-class.directive.js +4 -1
- package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +4 -1
- package/esm2015/directives/taiga-ui-kit-directives.js +4 -1
- package/esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js +4 -1
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +4 -2
- package/esm2015/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.js +4 -1
- package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +4 -1
- package/esm2015/interfaces/taiga-ui-kit-interfaces.js +4 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +4 -1
- package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +4 -1
- package/esm2015/internal/taiga-ui-kit-internal.js +4 -1
- package/esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js +4 -1
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +4 -1
- package/esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js +4 -1
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +4 -1
- package/esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js +4 -1
- package/esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js +4 -1
- package/esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js +4 -1
- package/esm2015/pipes/taiga-ui-kit-pipes.js +4 -1
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +4 -1
- package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +4 -1
- package/esm2015/providers/taiga-ui-kit-providers.js +4 -1
- package/esm2015/services/taiga-ui-kit-services.js +4 -1
- package/esm2015/taiga-ui-kit.js +4 -1
- package/esm2015/tokens/calendar-date-stream.js +4 -1
- package/esm2015/tokens/date-inputs-value-transformers.js +11 -1
- package/esm2015/tokens/input-date-options.js +4 -1
- package/esm2015/tokens/items-handlers.js +4 -1
- package/esm2015/tokens/mobile-calendar.js +4 -1
- package/esm2015/tokens/month-formatter.js +4 -1
- package/esm2015/tokens/tab-margin.js +4 -1
- package/esm2015/tokens/taiga-ui-kit-tokens.js +4 -1
- package/esm2015/tokens/validation-errors.js +4 -1
- package/esm2015/types/taiga-ui-kit-types.js +4 -1
- package/esm2015/utils/date/index.js +2 -0
- package/esm2015/utils/date/taiga-ui-kit-utils-date.js +5 -0
- package/esm2015/utils/date/update.js +6 -0
- package/esm2015/utils/files/taiga-ui-kit-utils-files.js +4 -1
- package/esm2015/utils/format/string-hash-to-hsl.js +7 -1
- package/esm2015/utils/format/taiga-ui-kit-utils-format.js +4 -1
- package/esm2015/utils/index.js +2 -1
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +9 -1
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +17 -1
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -1
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +7 -1
- package/esm2015/utils/mask/create-date-mask.js +5 -1
- package/esm2015/utils/mask/create-date-range-mask.js +5 -1
- package/esm2015/utils/mask/create-time-mask.js +5 -1
- package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +4 -1
- package/esm2015/utils/math/horizontal-direction-to-number.js +4 -1
- package/esm2015/utils/math/taiga-ui-kit-utils-math.js +4 -1
- package/esm2015/utils/miscellaneous/get-precision.js +4 -1
- package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +4 -1
- package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +4 -1
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +4 -1
- package/esm2015/utils/taiga-ui-kit-utils.js +4 -1
- package/esm2015/validators/taiga-ui-kit-validators.js +4 -1
- package/fesm2015/taiga-ui-kit-abstract.js +4 -0
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-classes.js +7 -0
- package/fesm2015/taiga-ui-kit-classes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +4 -0
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +4 -0
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +11 -0
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +8 -0
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +4 -0
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +4 -0
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -0
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -0
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +5 -0
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -0
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +5 -0
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -4
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-elastic-container.js +4 -0
- package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +8 -0
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +5 -0
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +21 -0
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-multi.js +335 -0
- package/fesm2015/taiga-ui-kit-components-input-date-multi.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +15 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -0
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +11 -0
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +23 -0
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +33 -2
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +6 -0
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +12 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +9 -0
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-year.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +4 -0
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js +4 -0
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +4 -0
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -0
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +4 -0
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +4 -0
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +8 -0
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +38 -0
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +7 -0
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +6 -0
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-prompt.js +5 -0
- package/fesm2015/taiga-ui-kit-components-prompt.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +7 -0
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +5 -0
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +4 -0
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +5 -0
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +6 -0
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +8 -0
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +9 -0
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +7 -0
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js +4 -0
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +11 -0
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +7 -0
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +39 -0
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +6 -0
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +25 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +9 -0
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +13 -0
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +4 -0
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +9 -0
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +28 -0
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +5 -0
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +19 -0
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +5 -0
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-mask.js +26 -0
- package/fesm2015/taiga-ui-kit-directives-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +15 -0
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +7 -0
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +7 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-unmask-handler.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +4 -0
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives.js +4 -0
- package/fesm2015/taiga-ui-kit-directives.js.map +1 -1
- package/fesm2015/taiga-ui-kit-interfaces.js +3 -1
- package/fesm2015/taiga-ui-kit-interfaces.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +10 -0
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal.js +4 -0
- package/fesm2015/taiga-ui-kit-internal.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +7 -0
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes.js +4 -0
- package/fesm2015/taiga-ui-kit-pipes.js.map +1 -1
- package/fesm2015/taiga-ui-kit-providers.js +4 -0
- package/fesm2015/taiga-ui-kit-providers.js.map +1 -1
- package/fesm2015/taiga-ui-kit-services.js +4 -0
- package/fesm2015/taiga-ui-kit-services.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +35 -0
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-types.js +3 -1
- package/fesm2015/taiga-ui-kit-types.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-date.js +12 -0
- package/fesm2015/taiga-ui-kit-utils-date.js.map +1 -0
- package/fesm2015/taiga-ui-kit-utils-files.js +4 -0
- package/fesm2015/taiga-ui-kit-utils-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +10 -0
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +50 -0
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +7 -0
- package/fesm2015/taiga-ui-kit-utils-math.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +10 -0
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +4 -0
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils.js +5 -0
- package/fesm2015/taiga-ui-kit-utils.js.map +1 -1
- package/fesm2015/taiga-ui-kit-validators.js +4 -0
- package/fesm2015/taiga-ui-kit-validators.js.map +1 -1
- package/fesm2015/taiga-ui-kit.js +4 -0
- package/fesm2015/taiga-ui-kit.js.map +1 -1
- package/interfaces/taiga-ui-kit-interfaces.d.ts +3 -0
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +3 -0
- package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +3 -0
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +3 -0
- package/internal/taiga-ui-kit-internal.d.ts +3 -0
- package/package.json +5 -5
- package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +3 -0
- package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +3 -0
- package/pipes/filter-by-input/filter-by-input.base.d.ts +4 -0
- package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +3 -0
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +3 -0
- package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +3 -0
- package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +3 -0
- package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +3 -0
- package/pipes/taiga-ui-kit-pipes.d.ts +3 -0
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +3 -0
- package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +3 -0
- package/providers/taiga-ui-kit-providers.d.ts +3 -0
- package/services/taiga-ui-kit-services.d.ts +3 -0
- package/taiga-ui-kit.d.ts +3 -0
- package/tokens/calendar-date-stream.d.ts +3 -0
- package/tokens/date-inputs-value-transformers.d.ts +9 -0
- package/tokens/input-date-options.d.ts +3 -0
- package/tokens/items-handlers.d.ts +3 -0
- package/tokens/mobile-calendar.d.ts +3 -0
- package/tokens/month-formatter.d.ts +3 -0
- package/tokens/tab-margin.d.ts +3 -0
- package/tokens/taiga-ui-kit-tokens.d.ts +3 -0
- package/tokens/validation-errors.d.ts +3 -0
- package/types/file-state.d.ts +3 -0
- package/types/key-steps.d.ts +18 -0
- package/types/taiga-ui-kit-types.d.ts +3 -0
- package/utils/date/index.d.ts +1 -0
- package/utils/date/package.json +10 -0
- package/utils/date/taiga-ui-kit-utils-date.d.ts +5 -0
- package/utils/date/update.d.ts +2 -0
- package/utils/files/taiga-ui-kit-utils-files.d.ts +3 -0
- package/utils/format/string-hash-to-hsl.d.ts +5 -0
- package/utils/format/taiga-ui-kit-utils-format.d.ts +3 -0
- package/utils/index.d.ts +1 -0
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +12 -0
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +16 -0
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +4 -0
- package/utils/mask/create-auto-corrected-time-pipe.d.ts +6 -0
- package/utils/mask/create-date-mask.d.ts +4 -0
- package/utils/mask/create-date-range-mask.d.ts +4 -0
- package/utils/mask/create-time-mask.d.ts +4 -0
- package/utils/mask/taiga-ui-kit-utils-mask.d.ts +3 -0
- package/utils/math/horizontal-direction-to-number.d.ts +3 -0
- package/utils/math/taiga-ui-kit-utils-math.d.ts +3 -0
- package/utils/miscellaneous/get-precision.d.ts +3 -0
- package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +3 -0
- package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +3 -0
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +3 -0
- package/utils/taiga-ui-kit-utils.d.ts +3 -0
- package/validators/taiga-ui-kit-validators.d.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["../../../projects/kit/utils/mask/create-auto-corrected-date-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-time-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","../../../projects/kit/utils/mask/create-date-mask.ts","../../../projects/kit/utils/mask/create-date-range-mask.ts","../../../projects/kit/utils/mask/create-time-mask.ts"],"sourcesContent":["import {DATE_FILLER_LENGTH, TuiDateMode, TuiDay} from '@taiga-ui/cdk';\nimport {TuiTextMaskPipeHandler, TuiWithOptionalMinMaxWithValue} from '@taiga-ui/core';\n\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiNormalizeDateValue(\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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: tuiNormalizeDateValue(value, config),\n };\n };\n}\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 * @deprecated Use {@link https://maskito.dev/kit/date-range DateRange} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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 * @deprecated Use {@link https://maskito.dev/kit/time Time} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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, tuiIsString, 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 TuiAutoCorrectedDatePipeConfigs,\n tuiNormalizeDateValue,\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date-time DateTime} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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 = tuiNormalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(\n time,\n {} as unknown as TuiTextMaskConfig & TuiTextMaskOptions,\n );\n\n if (!pipedTime || tuiIsString(pipedTime)) {\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n ngDevMode &&\n tuiAssert.assert(\n separator.length === 1,\n `Separator should consist of only 1 symbol`,\n );\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date-range DateRange} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n ngDevMode &&\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<RegExp | string> {\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/time Time} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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"],"names":[],"mappings":";;;;AAiBgB,SAAA,qBAAqB,CACjC,SAAiB,EACjB,EAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAk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,CAAC,CAAU,QAAA,CAAA,CAAC,GAAG,qBAAqB,CAAC,EAAE,EAAE,CAAG,CAAA,CAAA,CAAC,GAAG,EAAE,CAAC;AACpE,QAAA,IAAI,IAAI,KAAK,CAAc,YAAA,CAAA,GAAG,qBAAqB,CAAC,EAAE,EAAE,CAAG,CAAA,CAAA,CAAC,GAAG,EAAE,CAAC;KACrE,CAAC;AACN;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-mask.js","sources":["../../../projects/kit/utils/mask/create-auto-corrected-date-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-date-range-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-time-pipe.ts","../../../projects/kit/utils/mask/create-auto-corrected-date-time-pipe.ts","../../../projects/kit/utils/mask/create-date-mask.ts","../../../projects/kit/utils/mask/create-date-range-mask.ts","../../../projects/kit/utils/mask/create-time-mask.ts","../../../projects/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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport interface TuiAutoCorrectedDatePipeConfigs\n extends TuiWithOptionalMinMaxWithValue<TuiDay | null, TuiDay> {\n dateFormat: TuiDateMode;\n dateSeparator: string;\n}\n\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiNormalizeDateValue(\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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: tuiNormalizeDateValue(value, config),\n };\n };\n}\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 * @deprecated Use {@link https://maskito.dev/kit/date-range DateRange} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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 * @deprecated Use {@link https://maskito.dev/kit/time Time} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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, tuiIsString, 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 TuiAutoCorrectedDatePipeConfigs,\n tuiNormalizeDateValue,\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date-time DateTime} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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 = tuiNormalizeDateValue(date, configs);\n\n if (!time) {\n return {value: formattedDate};\n }\n\n const pipedTime = timePipe(\n time,\n {} as unknown as TuiTextMaskConfig & TuiTextMaskOptions,\n );\n\n if (!pipedTime || tuiIsString(pipedTime)) {\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date Date} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiCreateDateMask(mode: TuiDateMode, separator: string): TuiTextMaskList {\n ngDevMode &&\n tuiAssert.assert(\n separator.length === 1,\n `Separator should consist of only 1 symbol`,\n );\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/date-range DateRange} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\n */\nexport function tuiCreateDateRangeMask(\n dateMode: TuiDateMode,\n dateSeparator: string,\n): TuiTextMaskList {\n ngDevMode &&\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<RegExp | string> {\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\n/**\n * @deprecated Use {@link https://maskito.dev/kit/time Time} from {@link https://github.com/taiga-family/maskito Maskito} instead\n * TODO: delete in v4.0\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":";;;;AAaA;;;AAGG;AACa,SAAA,qBAAqB,CACjC,SAAiB,EACjB,EAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAkC,EAAA;IAE7E,OAAO,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,KAAK,SAAS;AACnE,UAAE,SAAS;UACT,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,UAAU,CAAC;AACvC,aAAA,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;AAClB,aAAA,QAAQ,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;AACnD,CAAC;AAED;;;AAGG;AACG,SAAU,8BAA8B,CAC1C,MAAuC,EAAA;IAEvC,OAAO,KAAK,IAAG;AACX,QAAA,IAAI,KAAK,CAAC,MAAM,KAAK,kBAAkB,EAAE;YACrC,OAAO,EAAC,KAAK,EAAC,CAAC;AAClB,SAAA;QAED,OAAO;AACH,YAAA,KAAK,EAAE,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC;SAC9C,CAAC;AACN,KAAC,CA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
function tuiHorizontalDirectionToNumber(direction) {
|
|
5
8
|
switch (direction) {
|
|
6
9
|
case `left`:
|
|
@@ -28,5 +31,9 @@ function tuiKeyStepValueToPercentage(value, keySteps) {
|
|
|
28
31
|
return (upperStepPercent - lowerStepPercent) * ratio + lowerStepPercent;
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
31
38
|
export { tuiHorizontalDirectionToNumber, tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue };
|
|
32
39
|
//# sourceMappingURL=taiga-ui-kit-utils-math.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-math.js","sources":["../../../projects/kit/utils/math/horizontal-direction-to-number.ts","../../../projects/kit/utils/math/key-steps.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 {tuiRound} 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\n const lowerStep = keySteps[keyStepUpperIndex - 1] || keySteps[0];\n const upperStep = keySteps[keyStepUpperIndex] || keySteps[keySteps.length - 1];\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 tuiRound(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"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-math.js","sources":["../../../projects/kit/utils/math/horizontal-direction-to-number.ts","../../../projects/kit/utils/math/key-steps.ts","../../../projects/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 {tuiRound} 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\n const lowerStep = keySteps[keyStepUpperIndex - 1] || keySteps[0];\n const upperStep = keySteps[keyStepUpperIndex] || keySteps[keySteps.length - 1];\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 tuiRound(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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;AACG,SAAU,8BAA8B,CAC1C,SAAiC,EAAA;AAEjC,IAAA,QAAQ,SAAS;AACb,QAAA,KAAK,CAAM,IAAA,CAAA;YACP,OAAO,CAAC,CAAC,CAAC;AACd,QAAA,KAAK,CAAO,KAAA,CAAA;AACR,YAAA,OAAO,CAAC,CAAC;AAChB,KAAA;AACL;;ACVA,SAAS,6BAA6B,CAClC,QAAqB,EACrB,EAAiE,EAAA;IAEjE,MAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAE/E,IAAA,MAAM,SAAS,GAAG,QAAQ,CAAC,iBAAiB,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC;AACjE,IAAA,MAAM,SAAS,GAAG,QAAQ,CAAC,iBAAiB,CAAC,IAAI,QAAQ,CA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
+
/**
|
|
43
|
+
* @return fractional length
|
|
44
|
+
*/
|
|
42
45
|
function tuiGetPrecision(num) {
|
|
43
46
|
const [, fractionPart = ``] = String(num).split(`.`);
|
|
44
47
|
return fractionPart.length;
|
|
@@ -48,6 +51,9 @@ function tuiIsFlat(items) {
|
|
|
48
51
|
return !Array.isArray(items[0]);
|
|
49
52
|
}
|
|
50
53
|
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
51
57
|
function tuiControlValueFactory(control, valueTransformer) {
|
|
52
58
|
return control
|
|
53
59
|
? tuiControlValue(control).pipe(map(value => valueTransformer
|
|
@@ -56,5 +62,9 @@ function tuiControlValueFactory(control, valueTransformer) {
|
|
|
56
62
|
: of(null);
|
|
57
63
|
}
|
|
58
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Generated bundle index. Do not edit.
|
|
67
|
+
*/
|
|
68
|
+
|
|
59
69
|
export { tuiControlValueFactory, tuiCreateDefaultDayRangePeriods, tuiCreateTimePeriods, tuiGetPrecision, tuiIsFlat };
|
|
60
70
|
//# sourceMappingURL=taiga-ui-kit-utils-miscellaneous.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-miscellaneous.js","sources":["../../../projects/kit/utils/miscellaneous/create-default-day-range-periods.ts","../../../projects/kit/utils/miscellaneous/create-time-periods.ts","../../../projects/kit/utils/miscellaneous/get-precision.ts","../../../projects/kit/utils/miscellaneous/is-flat.ts","../../../projects/kit/utils/miscellaneous/replay-control-value-changes-factory.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 (const minute of minutes) {\n const time = new TuiTime(i, minute);\n\n timeArray.push(time);\n }\n }\n\n return timeArray;\n}\n","/**\n * @return fractional length\n */\nexport function tuiGetPrecision(num: number): number {\n const [, fractionPart = ``] = String(num).split(`.`);\n\n return fractionPart.length;\n}\n","export function tuiIsFlat<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[],\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {NgControl} from '@angular/forms';\nimport {\n tuiControlValue,\n TuiControlValueTransformer,\n TuiDay,\n TuiDayRange,\n TuiTime,\n} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @internal\n */\nexport function tuiControlValueFactory<\n T extends TuiDay | TuiDayRange | [TuiDay | null, TuiTime | null],\n>(\n control: NgControl | null,\n valueTransformer?: TuiControlValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiControlValue(control).pipe(\n map(value =>\n valueTransformer\n ? valueTransformer.fromControlValue(value)\n : (value as T),\n ),\n )\n : of(null);\n}\n"],"names":[],"mappings":";;;;;AAGM,SAAU,+BAA+B,CAC3C,YAAiE,GAAA;IAC7D,CAAkB,gBAAA,CAAA;IAClB,CAAO,KAAA,CAAA;IACP,CAAW,SAAA,CAAA;IACX,CAAc,YAAA,CAAA;IACd,CAAe,aAAA,CAAA;IACf,CAAgB,cAAA,CAAA;AACnB,CAAA,EAAA;AAED,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;AACpC,IAAA,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;AAC1C,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAC,CAAC,CAAC;AAC5D,IAAA,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;AAC/C,IAAA,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC,GAAG,EAAC,CAAC,CAAC;AACxD,IAAA,MAAM,UAAU,GAAG,YAAY,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;AAC5D,IAAA,MAAM,gBAAgB,GAAG,YAAY,CAAC,MAAM,CAAC,EAAC,KAAK,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;IAE1D,OAAO;AACH,QAAA,IAAI,iBAAiB,CAAC,IAAI,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,EAAE,YAAY,CAA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ods.ts","../../../projects/kit/utils/miscellaneous/create-time-periods.ts","../../../projects/kit/utils/miscellaneous/get-precision.ts","../../../projects/kit/utils/miscellaneous/is-flat.ts","../../../projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts","../../../projects/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 (const minute of minutes) {\n const time = new TuiTime(i, minute);\n\n timeArray.push(time);\n }\n }\n\n return timeArray;\n}\n","/**\n * @return fractional length\n */\nexport function tuiGetPrecision(num: number): number {\n const [, fractionPart = ``] = String(num).split(`.`);\n\n return fractionPart.length;\n}\n","export function tuiIsFlat<T>(\n items: ReadonlyArray<readonly T[]> | readonly T[],\n): items is readonly T[] {\n return !Array.isArray(items[0]);\n}\n","import {NgControl} from '@angular/forms';\nimport {\n tuiControlValue,\n TuiControlValueTransformer,\n TuiDay,\n TuiDayRange,\n TuiTime,\n} from '@taiga-ui/cdk';\nimport {Observable, of} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n/**\n * @internal\n */\nexport function tuiControlValueFactory<\n T extends TuiDay | TuiDayRange | [TuiDay | null, TuiTime | null],\n>(\n control: NgControl | null,\n valueTransformer?: TuiControlValueTransformer<T> | null,\n): Observable<T | null> | null {\n return control\n ? tuiControlValue(control).pipe(\n map(value =>\n valueTransformer\n ? valueTransformer.fromControlValue(value)\n : (value as T),\n ),\n )\n : of(null);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGM,SAAU,+BAA+B,CAC3C,YAAiE,GAAA;IAC7D,CAAkB,gBAAA,CAAA;IAClB,CAAO,KAAA,CAAA;IACP,CAAW,SAAA,CAAA;IACX,CAAc,YAAA,CAAA;IACd,CAAe,aAAA,CAAA;IACf,CAAgB,cAAA,CAAA;AACnB,CAAA,EAAA;AAED,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;AACpC,IAAA,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;AAC1C,IAAA,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAAC,CAAC,CAAC;AAC5D,IAAA,MAAM,SAAS,GAAG,WAAW,CAAC,M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not edit.
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
export { tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode, tuiNotKzRegion };
|
|
17
21
|
//# sourceMappingURL=taiga-ui-kit-utils-phone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils-phone.js","sources":["../../../projects/kit/utils/phone/get-max-allowed-phone-length.ts","../../../projects/kit/utils/phone/iso-to-country-code.ts","../../../projects/kit/utils/phone/not-kz-region.ts"],"sourcesContent":["import {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\nexport function tuiGetMaxAllowedPhoneLength(\n countries: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): number {\n return countries[isoCode].replace(/[()\\- ]/g, ``).length;\n}\n","import {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {MASK_AFTER_CODE_REGEXP} from '@taiga-ui/kit/constants';\n\nexport function tuiIsoToCountryCode(\n countriesMasks: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): string {\n return countriesMasks[isoCode].replace(MASK_AFTER_CODE_REGEXP, ``);\n}\n","export function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n"],"names":[],"mappings":";;AAEgB,SAAA,2BAA2B,CACvC,SAA4C,EAC5C,OAA0B,EAAA;AAE1B,IAAA,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA,CAAE,CAAC,CAAC,MAAM,CAAC;AAC7D;;ACJgB,SAAA,mBAAmB,CAC/B,cAAiD,EACjD,OAA0B,EAAA;IAE1B,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAE,CAAA,CAAC,CAAC;AACvE;;ACRM,SAAU,cAAc,CAAC,KAAa,EAAA;AACxC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEzC,IAAA,OAAO,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC;AACxC;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils-phone.js","sources":["../../../projects/kit/utils/phone/get-max-allowed-phone-length.ts","../../../projects/kit/utils/phone/iso-to-country-code.ts","../../../projects/kit/utils/phone/not-kz-region.ts","../../../projects/kit/utils/phone/taiga-ui-kit-utils-phone.ts"],"sourcesContent":["import {TuiCountryIsoCode} from '@taiga-ui/i18n';\n\nexport function tuiGetMaxAllowedPhoneLength(\n countries: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): number {\n return countries[isoCode].replace(/[()\\- ]/g, ``).length;\n}\n","import {TuiCountryIsoCode} from '@taiga-ui/i18n';\nimport {MASK_AFTER_CODE_REGEXP} from '@taiga-ui/kit/constants';\n\nexport function tuiIsoToCountryCode(\n countriesMasks: Record<TuiCountryIsoCode, string>,\n isoCode: TuiCountryIsoCode,\n): string {\n return countriesMasks[isoCode].replace(MASK_AFTER_CODE_REGEXP, ``);\n}\n","export function tuiNotKzRegion(value: string): boolean {\n const region = Number(value.slice(1, 4));\n\n return region < 600 || region > 799;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEgB,SAAA,2BAA2B,CACvC,SAA4C,EAC5C,OAA0B,EAAA;AAE1B,IAAA,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA,CAAE,CAAC,CAAC,MAAM,CAAC;AAC7D;;ACJgB,SAAA,mBAAmB,CAC/B,cAAiD,EACjD,OAA0B,EAAA;IAE1B,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,sBAAsB,EAAE,CAAE,CAAA,CAAC,CAAC;AACvE;;ACRM,SAAU,cAAc,CAAC,KAAa,EAAA;AACxC,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEzC,IAAA,OAAO,MAAM,GAAG,GAAG,IAAI,MAAM,GAAG,GAAG,CAAC;AACxC;;ACJA;;AAEG;;;;"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
export * from '@taiga-ui/kit/utils/date';
|
|
1
2
|
export * from '@taiga-ui/kit/utils/files';
|
|
2
3
|
export * from '@taiga-ui/kit/utils/format';
|
|
3
4
|
export * from '@taiga-ui/kit/utils/mask';
|
|
4
5
|
export * from '@taiga-ui/kit/utils/math';
|
|
5
6
|
export * from '@taiga-ui/kit/utils/miscellaneous';
|
|
6
7
|
export * from '@taiga-ui/kit/utils/phone';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Generated bundle index. Do not edit.
|
|
11
|
+
*/
|
|
7
12
|
//# sourceMappingURL=taiga-ui-kit-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-utils.js","sources":["../../../projects/kit/utils/taiga-ui-kit-utils.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-validators.js","sources":["../../../projects/kit/validators/unfinished.validator.ts"],"sourcesContent":["import {AbstractControl, ValidatorFn} from '@angular/forms';\nimport {\n TuiFocusableElementAccessor,\n tuiIsHTMLElement,\n tuiIsInput,\n TuiValidationError,\n} 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 tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&\n tuiIsInput(nativeInput.nativeFocusableElement) &&\n nativeInput.nativeFocusableElement.value !== ``\n ? {unfinished: new TuiValidationError(message)}\n : null;\n };\n}\n"],"names":[],"mappings":";;AASgB,SAAA,4BAA4B,CACxC,iBAAoD,EACpD,OAA4B,EAAA;AAE5B,IAAA,OAAO,CAAC,EACJ,KAAK,GACS,KAAsD;AACpE,QAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE,CAAC;QAExC,OAAO,KAAK,KAAK,IAAI;YACjB,WAAW;AACX,YAAA,gBAAgB,CAAC,WAAW,CAAC,sBAAsB,CAAC;AACpD,YAAA,UAAU,CAAC,WAAW,CAAC,sBAAsB,CAAC;AAC9C,YAAA,WAAW,CAAC,sBAAsB,CAAC,KAAK,KAAK,CAAE,CAAA;cAC7C,EAAC,UAAU,EAAE,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAC;cAC7C,IAAI,CAAC;AACf,KAAC,CAAC;AACN;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-validators.js","sources":["../../../projects/kit/validators/unfinished.validator.ts","../../../projects/kit/validators/taiga-ui-kit-validators.ts"],"sourcesContent":["import {AbstractControl, ValidatorFn} from '@angular/forms';\nimport {\n TuiFocusableElementAccessor,\n tuiIsHTMLElement,\n tuiIsInput,\n TuiValidationError,\n} 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 tuiIsHTMLElement(nativeInput.nativeFocusableElement) &&\n tuiIsInput(nativeInput.nativeFocusableElement) &&\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":";;AASgB,SAAA,4BAA4B,CACxC,iBAAoD,EACpD,OAA4B,EAAA;AAE5B,IAAA,OAAO,CAAC,EACJ,KAAK,GACS,KAAsD;AACpE,QAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE,CAAC;QAExC,OAAO,KAAK,KAAK,IAAI;YACjB,WAAW;AACX,YAAA,gBAAgB,CAAC,WAAW,CAAC,sBAAsB,CAAC;AACpD,YAAA,UAAU,CAAC,WAAW,CAAC,sBAAsB,CAAC;AAC9C,YAAA,WAAW,CAAC,sBAAsB,CAAC,KAAK,KAAK,CAAE,CAAA;cAC7C,EAAC,UAAU,EAAE,IAAI,kBAAkB,CAAC,OAAO,CAAC,EAAC;cAC7C,IAAI,CAAC;AACf,KAAC,CAAC;AACN;;AC1BA;;AAEG;;;;"}
|
package/fesm2015/taiga-ui-kit.js
CHANGED
|
@@ -12,4 +12,8 @@ export * from '@taiga-ui/kit/tokens';
|
|
|
12
12
|
export * from '@taiga-ui/kit/types';
|
|
13
13
|
export * from '@taiga-ui/kit/utils';
|
|
14
14
|
export * from '@taiga-ui/kit/validators';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Generated bundle index. Do not edit.
|
|
18
|
+
*/
|
|
15
19
|
//# sourceMappingURL=taiga-ui-kit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit.js","sources":["../../../projects/kit/taiga-ui-kit.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;AAEG"}
|
|
@@ -3,6 +3,9 @@ import { TuiBooleanHandler, TuiDay, TuiDayRange, TuiDestroyService, TuiMonth, Tu
|
|
|
3
3
|
import { TuiMarkerHandler } from '@taiga-ui/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
6
9
|
export declare class TuiPrimitiveCalendarRangeComponent implements OnInit {
|
|
7
10
|
disabledItemHandler: TuiBooleanHandler<TuiDay>;
|
|
8
11
|
markerHandler: TuiMarkerHandler;
|
|
@@ -2,6 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./primitive-calendar-range.component";
|
|
3
3
|
import * as i2 from "@taiga-ui/cdk";
|
|
4
4
|
import * as i3 from "@taiga-ui/core";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
export declare class TuiPrimitiveCalendarRangeModule {
|
|
6
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPrimitiveCalendarRangeModule, never>;
|
|
7
10
|
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiPrimitiveCalendarRangeModule, [typeof i1.TuiPrimitiveCalendarRangeComponent], [typeof i2.TuiMapperPipeModule, typeof i3.TuiScrollbarModule, typeof i3.TuiCalendarModule], [typeof i1.TuiPrimitiveCalendarRangeComponent]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.52.0",
|
|
4
4
|
"description": "Taiga UI Angular main components kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@maskito/angular": "1.8.1",
|
|
17
17
|
"@maskito/core": "1.8.1",
|
|
18
18
|
"@maskito/kit": "1.8.1",
|
|
19
|
-
"@ng-web-apis/intersection-observer": "3.1.
|
|
19
|
+
"@ng-web-apis/intersection-observer": "3.1.5",
|
|
20
20
|
"text-mask-core": "5.1.2",
|
|
21
21
|
"tslib": ">=2.0.0"
|
|
22
22
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@ng-web-apis/common": ">=3.0.0",
|
|
29
29
|
"@ng-web-apis/mutation-observer": ">=3.0.0",
|
|
30
30
|
"@ng-web-apis/resize-observer": ">=3.0.0",
|
|
31
|
-
"@taiga-ui/cdk": ">=3.
|
|
32
|
-
"@taiga-ui/core": ">=3.
|
|
33
|
-
"@taiga-ui/i18n": ">=3.
|
|
31
|
+
"@taiga-ui/cdk": ">=3.52.0",
|
|
32
|
+
"@taiga-ui/core": ">=3.52.0",
|
|
33
|
+
"@taiga-ui/i18n": ">=3.52.0",
|
|
34
34
|
"@tinkoff/ng-polymorpheus": ">=4.0.0",
|
|
35
35
|
"rxjs": ">=6.0.0"
|
|
36
36
|
},
|
|
@@ -2,6 +2,9 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { TuiFocusableElementAccessor, TuiStringHandler } from '@taiga-ui/cdk';
|
|
3
3
|
import { AbstractTuiFilterByInput, TuiArrayElement } from './filter-by-input.base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use {@link TuiFilterByInputPipe} instead
|
|
7
|
+
*/
|
|
5
8
|
export declare class TuiFilterByInputWithPipe extends AbstractTuiFilterByInput implements PipeTransform {
|
|
6
9
|
protected readonly accessor: TuiFocusableElementAccessor;
|
|
7
10
|
protected readonly multiSelect: unknown;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TuiFocusableElementAccessor, TuiStringHandler, TuiStringMatcher } from '@taiga-ui/cdk';
|
|
2
2
|
export declare type TuiArrayElement<A> = A extends ReadonlyArray<infer T> ? A extends ReadonlyArray<ReadonlyArray<infer G>> ? G : T : never;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated: use {@link TuiArrayElement}
|
|
5
|
+
* TODO: remove in v4.0
|
|
6
|
+
*/
|
|
3
7
|
export declare type ArrayElement<A> = TuiArrayElement<A>;
|
|
4
8
|
export declare abstract class AbstractTuiFilterByInput {
|
|
5
9
|
protected abstract readonly accessor: TuiFocusableElementAccessor;
|
package/taiga-ui-kit.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
2
2
|
import { TuiControlValueTransformer, TuiDay, TuiDayRange } from '@taiga-ui/cdk';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
/**
|
|
5
|
+
* Stream that emits calendar data change
|
|
6
|
+
*/
|
|
4
7
|
export declare const TUI_CALENDAR_DATE_STREAM: InjectionToken<Observable<TuiDay | TuiDayRange | null>>;
|
|
5
8
|
export declare function tuiDateStreamWithTransformer(transformer: InjectionToken<TuiControlValueTransformer<any>>): Provider;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime } from '@taiga-ui/cdk';
|
|
3
|
+
/**
|
|
4
|
+
* Control value transformer of TuiDay to custom value format for InputDate* components
|
|
5
|
+
*/
|
|
3
6
|
export declare const TUI_DATE_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<TuiDay | null, unknown>>;
|
|
7
|
+
/**
|
|
8
|
+
* Control value transformer for InputDateRange component
|
|
9
|
+
*/
|
|
4
10
|
export declare const TUI_DATE_RANGE_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<TuiDayRange | null, unknown>>;
|
|
11
|
+
/**
|
|
12
|
+
* Control value transformer for InputDateTime component
|
|
13
|
+
*/
|
|
5
14
|
export declare const TUI_DATE_TIME_VALUE_TRANSFORMER: InjectionToken<TuiControlValueTransformer<[TuiDay | null, TuiTime | null], unknown>>;
|
|
@@ -9,5 +9,8 @@ export interface TuiInputDateOptions {
|
|
|
9
9
|
readonly nativePicker: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const TUI_INPUT_DATE_DEFAULT_OPTIONS: TuiInputDateOptions;
|
|
12
|
+
/**
|
|
13
|
+
* Default parameters for InputDate component
|
|
14
|
+
*/
|
|
12
15
|
export declare const TUI_INPUT_DATE_OPTIONS: import("@angular/core").InjectionToken<TuiInputDateOptions>;
|
|
13
16
|
export declare function tuiInputDateOptionsProvider(options: Partial<TuiInputDateOptions>): Provider;
|
|
@@ -6,5 +6,8 @@ export interface TuiItemsHandlers<T> {
|
|
|
6
6
|
readonly stringify: TuiStringHandler<T>;
|
|
7
7
|
}
|
|
8
8
|
export declare const TUI_DEFAULT_ITEMS_HANDLERS: TuiItemsHandlers<unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* Default items handlers for components
|
|
11
|
+
*/
|
|
9
12
|
export declare const TUI_ITEMS_HANDLERS: import("@angular/core").InjectionToken<TuiItemsHandlers<unknown>>;
|
|
10
13
|
export declare function tuiItemsHandlersProvider<T>(options: Partial<TuiItemsHandlers<T>>): Provider;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { TuiHandler, TuiMonth } from '@taiga-ui/cdk';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
/**
|
|
5
|
+
* A function to get localized formatted month
|
|
6
|
+
*/
|
|
4
7
|
export declare const TUI_MONTH_FORMATTER: InjectionToken<TuiHandler<TuiMonth | null, Observable<string>>>;
|
package/tokens/tab-margin.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { PolymorpheusContent } from '@tinkoff/ng-polymorpheus';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
/**
|
|
4
|
+
* Validation errors
|
|
5
|
+
*/
|
|
3
6
|
export declare const TUI_VALIDATION_ERRORS: import("@angular/core").InjectionToken<Record<string, PolymorpheusContent<any> | Observable<PolymorpheusContent<any>>>>;
|
package/types/file-state.d.ts
CHANGED
package/types/key-steps.d.ts
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Steps for splitting sliders into different linear dependencies.
|
|
3
|
+
* Each element of the array has the form [percent, value]
|
|
4
|
+
*
|
|
5
|
+
* Thus, to set a field from 50,000 to 30,000,000 in steps:
|
|
6
|
+
* 1) From 50 000 to 200 000 by 5000 per step (30 steps)
|
|
7
|
+
* 2) From 200 000 to 1 000 000 by 50 000 per step (16 steps)
|
|
8
|
+
* 3) From 1 000 000 to 30 000 000 by 500 000 per step (58 steps)
|
|
9
|
+
*
|
|
10
|
+
* You need to pass the following keyStep (where 104 = 30 + 16 + 58 is the total number of steps):
|
|
11
|
+
* [
|
|
12
|
+
* [0, 50_000],
|
|
13
|
+
* [100 / 104 * 30, 200_000],
|
|
14
|
+
* [100 / 104 * (30 + 16), 1_000_000],
|
|
15
|
+
* [100, 30_000_000],
|
|
16
|
+
* ];
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
1
19
|
export declare type TuiKeySteps = [[0, number], ...Array<[number, number]>, [100, number]];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './update';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": "../../bundles/taiga-ui-kit-utils-date.umd.js",
|
|
3
|
+
"module": "../../fesm2015/taiga-ui-kit-utils-date.js",
|
|
4
|
+
"es2015": "../../fesm2015/taiga-ui-kit-utils-date.js",
|
|
5
|
+
"esm2015": "../../esm2015/utils/date/taiga-ui-kit-utils-date.js",
|
|
6
|
+
"fesm2015": "../../fesm2015/taiga-ui-kit-utils-date.js",
|
|
7
|
+
"typings": "taiga-ui-kit-utils-date.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@taiga-ui/kit/utils/date"
|
|
10
|
+
}
|