@taiga-ui/kit 4.52.0-canary.d626d20 → 4.52.0-canary.f729878
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/components/input-color/input-color.component.d.ts +2 -1
- package/components/input-number/quantum.directive.d.ts +1 -1
- package/components/input-time/input-time.component.d.ts +1 -1
- package/components/segmented/segmented.component.d.ts +4 -4
- package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
- package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +15 -15
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +18 -18
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +6 -6
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-carousel.mjs +18 -18
- package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-comment.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-confirm.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +9 -9
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-drawer.mjs +6 -6
- package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +26 -26
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-filter.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs +10 -10
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-color.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date.mjs +11 -11
- package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-number.mjs +20 -20
- package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-password.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-range.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-time.mjs +10 -10
- package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-year.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -14
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +12 -12
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-message.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs +14 -14
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +11 -11
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
- package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +10 -10
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +10 -10
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +25 -25
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +28 -28
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-push.mjs +15 -15
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-rating.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-select.mjs +13 -13
- package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +19 -20
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slides.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
- package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +20 -20
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-textarea.mjs +14 -14
- package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tree.mjs +29 -37
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-connected.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-copy.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -9
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
- package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
- package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -4
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +7 -7
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +3 -3
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
- package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
- package/package.json +24 -236
- package/styles/components/badge.less +3 -18
- package/styles/components/checkbox.less +4 -6
- package/styles/components/like.less +12 -9
- package/styles/components/switch.less +4 -3
- package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
- package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
- package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
- package/esm2022/components/accordion/accordion.directive.mjs +0 -56
- package/esm2022/components/accordion/accordion.mjs +0 -11
- package/esm2022/components/accordion/index.mjs +0 -6
- package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
- package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
- package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
- package/esm2022/components/action-bar/action-bar.mjs +0 -4
- package/esm2022/components/action-bar/index.mjs +0 -4
- package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
- package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
- package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
- package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
- package/esm2022/components/avatar/avatar.component.mjs +0 -59
- package/esm2022/components/avatar/avatar.options.mjs +0 -14
- package/esm2022/components/avatar/index.mjs +0 -6
- package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
- package/esm2022/components/badge/badge.directive.mjs +0 -42
- package/esm2022/components/badge/badge.options.mjs +0 -13
- package/esm2022/components/badge/index.mjs +0 -3
- package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
- package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
- package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
- package/esm2022/components/badge-notification/index.mjs +0 -3
- package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
- package/esm2022/components/badged-content/badge-content.mjs +0 -7
- package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
- package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
- package/esm2022/components/badged-content/index.mjs +0 -4
- package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
- package/esm2022/components/block/block.directive.mjs +0 -58
- package/esm2022/components/block/block.options.mjs +0 -13
- package/esm2022/components/block/index.mjs +0 -3
- package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
- package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
- package/esm2022/components/breadcrumbs/index.mjs +0 -3
- package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
- package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
- package/esm2022/components/button-loading/index.mjs +0 -2
- package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
- package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
- package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
- package/esm2022/components/calendar-month/index.mjs +0 -3
- package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
- package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
- package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
- package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
- package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
- package/esm2022/components/calendar-range/index.mjs +0 -5
- package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
- package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
- package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
- package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
- package/esm2022/components/carousel/carousel.component.mjs +0 -166
- package/esm2022/components/carousel/carousel.directive.mjs +0 -37
- package/esm2022/components/carousel/carousel.mjs +0 -15
- package/esm2022/components/carousel/index.mjs +0 -7
- package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
- package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
- package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
- package/esm2022/components/checkbox/index.mjs +0 -3
- package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
- package/esm2022/components/chip/chip.directive.mjs +0 -63
- package/esm2022/components/chip/chip.options.mjs +0 -13
- package/esm2022/components/chip/index.mjs +0 -3
- package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
- package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
- package/esm2022/components/combo-box/index.mjs +0 -2
- package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
- package/esm2022/components/comment/comment.directive.mjs +0 -35
- package/esm2022/components/comment/index.mjs +0 -2
- package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
- package/esm2022/components/compass/compass.component.mjs +0 -19
- package/esm2022/components/compass/index.mjs +0 -2
- package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
- package/esm2022/components/confirm/confirm.component.mjs +0 -28
- package/esm2022/components/confirm/confirm.service.mjs +0 -32
- package/esm2022/components/confirm/index.mjs +0 -3
- package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
- package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
- package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
- package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
- package/esm2022/components/data-list-wrapper/index.mjs +0 -4
- package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
- package/esm2022/components/drawer/drawer.component.mjs +0 -44
- package/esm2022/components/drawer/index.mjs +0 -2
- package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
- package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
- package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
- package/esm2022/components/elastic-container/index.mjs +0 -3
- package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
- package/esm2022/components/files/file/file.component.mjs +0 -144
- package/esm2022/components/files/file/file.options.mjs +0 -16
- package/esm2022/components/files/files/files.component.mjs +0 -56
- package/esm2022/components/files/files.mjs +0 -15
- package/esm2022/components/files/files.types.mjs +0 -2
- package/esm2022/components/files/files.utils.mjs +0 -30
- package/esm2022/components/files/files.validators.mjs +0 -32
- package/esm2022/components/files/index.mjs +0 -13
- package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
- package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
- package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
- package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
- package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
- package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
- package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
- package/esm2022/components/filter/filter.component.mjs +0 -65
- package/esm2022/components/filter/index.mjs +0 -2
- package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
- package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
- package/esm2022/components/floating-container/index.mjs +0 -2
- package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
- package/esm2022/components/index.mjs +0 -73
- package/esm2022/components/input-chip/index.mjs +0 -5
- package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
- package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
- package/esm2022/components/input-chip/input-chip.mjs +0 -4
- package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
- package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
- package/esm2022/components/input-color/index.mjs +0 -3
- package/esm2022/components/input-color/input-color.component.mjs +0 -89
- package/esm2022/components/input-color/input-color.options.mjs +0 -6
- package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
- package/esm2022/components/input-date/date-filler.mjs +0 -20
- package/esm2022/components/input-date/index.mjs +0 -6
- package/esm2022/components/input-date/input-date.component.mjs +0 -33
- package/esm2022/components/input-date/input-date.directive.mjs +0 -167
- package/esm2022/components/input-date/input-date.mjs +0 -9
- package/esm2022/components/input-date/input-date.options.mjs +0 -11
- package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
- package/esm2022/components/input-date-multi/index.mjs +0 -3
- package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
- package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
- package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
- package/esm2022/components/input-date-range/index.mjs +0 -4
- package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
- package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
- package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
- package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
- package/esm2022/components/input-date-time/index.mjs +0 -5
- package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
- package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
- package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
- package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
- package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
- package/esm2022/components/input-inline/index.mjs +0 -2
- package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
- package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
- package/esm2022/components/input-month/index.mjs +0 -5
- package/esm2022/components/input-month/input-month.component.mjs +0 -53
- package/esm2022/components/input-month/input-month.directive.mjs +0 -65
- package/esm2022/components/input-month/input-month.mjs +0 -9
- package/esm2022/components/input-month/input-month.options.mjs +0 -19
- package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
- package/esm2022/components/input-month-range/index.mjs +0 -4
- package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
- package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
- package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
- package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
- package/esm2022/components/input-number/index.mjs +0 -6
- package/esm2022/components/input-number/input-number.directive.mjs +0 -196
- package/esm2022/components/input-number/input-number.mjs +0 -9
- package/esm2022/components/input-number/input-number.options.mjs +0 -15
- package/esm2022/components/input-number/quantum.directive.mjs +0 -68
- package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
- package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
- package/esm2022/components/input-password/index.mjs +0 -3
- package/esm2022/components/input-password/input-password.component.mjs +0 -69
- package/esm2022/components/input-password/input-password.options.mjs +0 -24
- package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
- package/esm2022/components/input-phone/index.mjs +0 -3
- package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
- package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
- package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
- package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
- package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
- package/esm2022/components/input-phone-international/index.mjs +0 -3
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
- package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
- package/esm2022/components/input-pin/index.mjs +0 -2
- package/esm2022/components/input-pin/input-pin.component.mjs +0 -66
- package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
- package/esm2022/components/input-range/index.mjs +0 -3
- package/esm2022/components/input-range/input-range.component.mjs +0 -166
- package/esm2022/components/input-range/input-range.mjs +0 -4
- package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
- package/esm2022/components/input-slider/index.mjs +0 -3
- package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
- package/esm2022/components/input-slider/input-slider.mjs +0 -9
- package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
- package/esm2022/components/input-time/index.mjs +0 -5
- package/esm2022/components/input-time/input-time.component.mjs +0 -64
- package/esm2022/components/input-time/input-time.directive.mjs +0 -159
- package/esm2022/components/input-time/input-time.mjs +0 -4
- package/esm2022/components/input-time/input-time.options.mjs +0 -10
- package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
- package/esm2022/components/input-year/index.mjs +0 -4
- package/esm2022/components/input-year/input-year.directive.mjs +0 -103
- package/esm2022/components/input-year/input-year.mjs +0 -4
- package/esm2022/components/input-year/input-year.options.mjs +0 -12
- package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
- package/esm2022/components/items-with-more/index.mjs +0 -6
- package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
- package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
- package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
- package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
- package/esm2022/components/items-with-more/more.directive.mjs +0 -18
- package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
- package/esm2022/components/like/index.mjs +0 -3
- package/esm2022/components/like/like.component.mjs +0 -46
- package/esm2022/components/like/like.options.mjs +0 -10
- package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
- package/esm2022/components/line-clamp/index.mjs +0 -4
- package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
- package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
- package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
- package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
- package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
- package/esm2022/components/message/index.mjs +0 -2
- package/esm2022/components/message/message.directive.mjs +0 -43
- package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
- package/esm2022/components/multi-select/index.mjs +0 -6
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
- package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
- package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
- package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
- package/esm2022/components/multi-select/multi-select.mjs +0 -9
- package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
- package/esm2022/components/notification-middle/index.mjs +0 -4
- package/esm2022/components/notification-middle/notification-middle.component.mjs +0 -57
- package/esm2022/components/notification-middle/notification-middle.directive.mjs +0 -21
- package/esm2022/components/notification-middle/notification-middle.service.mjs +0 -22
- package/esm2022/components/notification-middle/taiga-ui-kit-components-notification-middle.mjs +0 -5
- package/esm2022/components/pager/index.mjs +0 -2
- package/esm2022/components/pager/pager.component.mjs +0 -97
- package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
- package/esm2022/components/pagination/index.mjs +0 -2
- package/esm2022/components/pagination/pagination.component.mjs +0 -213
- package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
- package/esm2022/components/pdf-viewer/index.mjs +0 -5
- package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
- package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
- package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
- package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
- package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
- package/esm2022/components/pin/index.mjs +0 -2
- package/esm2022/components/pin/pin.directive.mjs +0 -35
- package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
- package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
- package/esm2022/components/preview/dialog/index.mjs +0 -4
- package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
- package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
- package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
- package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
- package/esm2022/components/preview/index.mjs +0 -8
- package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
- package/esm2022/components/preview/preview.component.mjs +0 -142
- package/esm2022/components/preview/preview.mjs +0 -13
- package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
- package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
- package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
- package/esm2022/components/progress/index.mjs +0 -9
- package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
- package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
- package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
- package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
- package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
- package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
- package/esm2022/components/progress/progress.mjs +0 -15
- package/esm2022/components/progress/progress.options.mjs +0 -13
- package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
- package/esm2022/components/pulse/index.mjs +0 -2
- package/esm2022/components/pulse/pulse.component.mjs +0 -34
- package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
- package/esm2022/components/push/index.mjs +0 -7
- package/esm2022/components/push/push-alert.component.mjs +0 -29
- package/esm2022/components/push/push.component.mjs +0 -39
- package/esm2022/components/push/push.directive.mjs +0 -33
- package/esm2022/components/push/push.mjs +0 -5
- package/esm2022/components/push/push.options.mjs +0 -21
- package/esm2022/components/push/push.service.mjs +0 -19
- package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
- package/esm2022/components/radio/index.mjs +0 -5
- package/esm2022/components/radio/radio.component.mjs +0 -53
- package/esm2022/components/radio/radio.directive.mjs +0 -32
- package/esm2022/components/radio/radio.mjs +0 -4
- package/esm2022/components/radio/radio.options.mjs +0 -13
- package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
- package/esm2022/components/radio-list/index.mjs +0 -2
- package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
- package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
- package/esm2022/components/range/index.mjs +0 -3
- package/esm2022/components/range/range-change.directive.mjs +0 -78
- package/esm2022/components/range/range.component.mjs +0 -164
- package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
- package/esm2022/components/rating/index.mjs +0 -3
- package/esm2022/components/rating/rating.component.mjs +0 -64
- package/esm2022/components/rating/rating.options.mjs +0 -13
- package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
- package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
- package/esm2022/components/routable-dialog/index.mjs +0 -3
- package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
- package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
- package/esm2022/components/segmented/index.mjs +0 -3
- package/esm2022/components/segmented/segmented.component.mjs +0 -67
- package/esm2022/components/segmented/segmented.directive.mjs +0 -65
- package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
- package/esm2022/components/select/index.mjs +0 -5
- package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
- package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
- package/esm2022/components/select/select.directive.mjs +0 -56
- package/esm2022/components/select/select.mjs +0 -4
- package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
- package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
- package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
- package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
- package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
- package/esm2022/components/slider/index.mjs +0 -8
- package/esm2022/components/slider/slider.component.mjs +0 -124
- package/esm2022/components/slider/slider.mjs +0 -12
- package/esm2022/components/slider/slider.options.mjs +0 -16
- package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
- package/esm2022/components/slides/index.mjs +0 -2
- package/esm2022/components/slides/slides.directive.mjs +0 -51
- package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
- package/esm2022/components/status/index.mjs +0 -2
- package/esm2022/components/status/status.directive.mjs +0 -35
- package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
- package/esm2022/components/stepper/index.mjs +0 -4
- package/esm2022/components/stepper/step.component.mjs +0 -58
- package/esm2022/components/stepper/stepper.component.mjs +0 -118
- package/esm2022/components/stepper/stepper.mjs +0 -4
- package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
- package/esm2022/components/switch/index.mjs +0 -3
- package/esm2022/components/switch/switch.component.mjs +0 -63
- package/esm2022/components/switch/switch.options.mjs +0 -15
- package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
- package/esm2022/components/tabs/index.mjs +0 -9
- package/esm2022/components/tabs/tab.directive.mjs +0 -47
- package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
- package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
- package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -213
- package/esm2022/components/tabs/tabs.directive.mjs +0 -79
- package/esm2022/components/tabs/tabs.mjs +0 -15
- package/esm2022/components/tabs/tabs.options.mjs +0 -19
- package/esm2022/components/tabs/tabs.providers.mjs +0 -35
- package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
- package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
- package/esm2022/components/textarea/index.mjs +0 -4
- package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
- package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -93
- package/esm2022/components/textarea/textarea.component.mjs +0 -58
- package/esm2022/components/textarea/textarea.options.mjs +0 -7
- package/esm2022/components/tiles/index.mjs +0 -7
- package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
- package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
- package/esm2022/components/tiles/tile.component.mjs +0 -69
- package/esm2022/components/tiles/tile.service.mjs +0 -90
- package/esm2022/components/tiles/tiles.component.mjs +0 -70
- package/esm2022/components/tiles/tiles.mjs +0 -5
- package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
- package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
- package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
- package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
- package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
- package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
- package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
- package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
- package/esm2022/components/tree/index.mjs +0 -12
- package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
- package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
- package/esm2022/components/tree/misc/tree.service.mjs +0 -31
- package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
- package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
- package/esm2022/components/tree/tree.mjs +0 -17
- package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
- package/esm2022/directives/button-close/index.mjs +0 -2
- package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
- package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
- package/esm2022/directives/button-group/index.mjs +0 -2
- package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
- package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
- package/esm2022/directives/button-select/index.mjs +0 -2
- package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
- package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
- package/esm2022/directives/chevron/index.mjs +0 -2
- package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
- package/esm2022/directives/connected/connected.directive.mjs +0 -32
- package/esm2022/directives/connected/index.mjs +0 -2
- package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
- package/esm2022/directives/copy/copy.component.mjs +0 -48
- package/esm2022/directives/copy/copy.directive.mjs +0 -71
- package/esm2022/directives/copy/copy.mjs +0 -4
- package/esm2022/directives/copy/copy.options.mjs +0 -3
- package/esm2022/directives/copy/index.mjs +0 -6
- package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
- package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
- package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
- package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
- package/esm2022/directives/fade/fade.directive.mjs +0 -92
- package/esm2022/directives/fade/index.mjs +0 -2
- package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
- package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
- package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
- package/esm2022/directives/fluid-typography/index.mjs +0 -3
- package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
- package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
- package/esm2022/directives/highlight/index.mjs +0 -2
- package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
- package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
- package/esm2022/directives/icon-badge/index.mjs +0 -2
- package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
- package/esm2022/directives/index.mjs +0 -21
- package/esm2022/directives/lazy-loading/index.mjs +0 -3
- package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
- package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
- package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
- package/esm2022/directives/password/index.mjs +0 -3
- package/esm2022/directives/password/password.directive.mjs +0 -67
- package/esm2022/directives/password/password.options.mjs +0 -8
- package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
- package/esm2022/directives/present/index.mjs +0 -2
- package/esm2022/directives/present/present.directive.mjs +0 -33
- package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
- package/esm2022/directives/sensitive/index.mjs +0 -2
- package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
- package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
- package/esm2022/directives/shimmer/index.mjs +0 -2
- package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
- package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
- package/esm2022/directives/skeleton/index.mjs +0 -2
- package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
- package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
- package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
- package/esm2022/directives/tooltip/index.mjs +0 -3
- package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
- package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
- package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
- package/esm2022/directives/unfinished-validator/index.mjs +0 -3
- package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
- package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
- package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
- package/esm2022/directives/unmask-handler/index.mjs +0 -2
- package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
- package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
- package/esm2022/index.mjs +0 -6
- package/esm2022/pipes/emails/emails.options.mjs +0 -13
- package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
- package/esm2022/pipes/emails/index.mjs +0 -3
- package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
- package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
- package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
- package/esm2022/pipes/field-error/index.mjs +0 -3
- package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
- package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
- package/esm2022/pipes/filter-by-input/index.mjs +0 -2
- package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
- package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
- package/esm2022/pipes/hide-selected/index.mjs +0 -2
- package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
- package/esm2022/pipes/index.mjs +0 -8
- package/esm2022/pipes/sort-countries/index.mjs +0 -2
- package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
- package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
- package/esm2022/pipes/stringify/index.mjs +0 -2
- package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
- package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
- package/esm2022/pipes/stringify-content/index.mjs +0 -2
- package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
- package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
- package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
- package/esm2022/taiga-ui-kit.mjs +0 -5
- package/esm2022/tokens/calendar-date-stream.mjs +0 -25
- package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
- package/esm2022/tokens/i18n.mjs +0 -75
- package/esm2022/tokens/index.mjs +0 -10
- package/esm2022/tokens/input-date-options.mjs +0 -13
- package/esm2022/tokens/items-handlers.mjs +0 -27
- package/esm2022/tokens/mobile-calendar.mjs +0 -13
- package/esm2022/tokens/month-formatter.mjs +0 -12
- package/esm2022/tokens/preview-icons.mjs +0 -17
- package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
- package/esm2022/tokens/validation-errors.mjs +0 -6
- package/esm2022/utils/create-time-periods.mjs +0 -12
- package/esm2022/utils/index.mjs +0 -7
- package/esm2022/utils/inject-value.mjs +0 -11
- package/esm2022/utils/is-flat.mjs +0 -4
- package/esm2022/utils/maskito.binding.mjs +0 -6
- package/esm2022/utils/phone.mjs +0 -6
- package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
- package/esm2022/utils/toggle-day.mjs +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NgIf } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, signal, computed,
|
|
3
|
+
import { inject, signal, computed, Input, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
4
4
|
import * as i3 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
import * as i1 from '@maskito/angular';
|
|
7
7
|
import { MaskitoDirective } from '@maskito/angular';
|
|
8
|
-
import {
|
|
8
|
+
import { maskitoAddOnFocusPlugin, maskitoRemoveOnBlurPlugin, maskitoPrefixPostprocessorGenerator } from '@maskito/kit';
|
|
9
9
|
import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
|
|
10
10
|
import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
|
|
11
11
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
@@ -24,6 +24,7 @@ const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] = tuiCreateOptions
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
const REGEX = /[0-9a-fA-F]/;
|
|
27
|
+
const EMPTY = '"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>"';
|
|
27
28
|
class TuiInputColor extends TuiControl {
|
|
28
29
|
constructor() {
|
|
29
30
|
super(...arguments);
|
|
@@ -32,9 +33,8 @@ class TuiInputColor extends TuiControl {
|
|
|
32
33
|
this.list = this.el.getAttribute('list');
|
|
33
34
|
this.format = signal(this.options.format);
|
|
34
35
|
this.align = signal(this.options.align);
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
: ''), {});
|
|
36
|
+
this.left = inject(TuiIcons).iconStart();
|
|
37
|
+
this.icon = tuiDirectiveBinding(TuiIcons, 'iconStart', computed(() => (this.align() === 'left' ? EMPTY : this.left)), {});
|
|
38
38
|
this.maskito = tuiMaskito(computed((length = this.format().length * 2) => ({
|
|
39
39
|
mask: ['#', ...Array.from({ length }).fill(REGEX)],
|
|
40
40
|
postprocessors: [maskitoPrefixPostprocessorGenerator('#')],
|
|
@@ -59,14 +59,14 @@ class TuiInputColor extends TuiControl {
|
|
|
59
59
|
const value = this.filled() ? this.value().slice(0, 7) : '#000000';
|
|
60
60
|
this.onChange(`${value}${toHex(opacity)}`);
|
|
61
61
|
}
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColor, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputColor, isStandalone: true, selector: "input[tuiInputColor]", inputs: { alignSetter: ["align", "alignSetter"], formatSetter: ["format", "formatSetter"] }, host: { attributes: { "ngSkipHydration": "true", "inputmode": "numeric", "spellcheck": "false" }, listeners: { "input": "onChange($event.target.value)" }, properties: { "disabled": "disabled()", "value": "value()", "attr.list": "null" } }, providers: [
|
|
64
64
|
tuiAsControl(TuiInputColor),
|
|
65
65
|
tuiFallbackValueProvider(''),
|
|
66
66
|
tuiSliderOptionsProvider({ trackColor: 'transparent' }),
|
|
67
67
|
], usesInheritance: true, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiWithTextfield }], ngImport: i0, template: "<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n</ng-container>\n", styles: [".tui-input-color_picker.tui-input-color_picker{position:relative;font-size:1rem;inline-size:calc(var(--t-height) / 2);block-size:calc(var(--t-height) / 2);border:none;border-radius:100%;padding:0!important;overflow:hidden;cursor:pointer;background:repeating-conic-gradient(var(--tui-border-normal) 0% 25%,transparent 0% 50%);box-shadow:0 0 0 1px var(--tui-border-normal)}.tui-input-color_picker.tui-input-color_picker:disabled{cursor:default}tui-textfield[data-size=s] .tui-input-color_picker{margin-inline-end:.25rem}tui-textfield[data-size=l] .tui-input-color_picker{margin-inline-end:-.25rem}.tui-input-color_picker.tui-input-color_left{position:absolute;top:50%;left:calc(var(--t-height) / 4);inset-inline-start:calc(var(--t-height) / 4);transform:translateY(-50%)}.tui-input-color_picker::-webkit-color-swatch-wrapper{padding:0}.tui-input-color_picker::-webkit-color-swatch{border:none;opacity:var(--t-opacity)}.tui-input-color_picker::-moz-color-swatch{border:none;opacity:var(--t-opacity)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
68
68
|
}
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputColor, decorators: [{
|
|
70
70
|
type: Component,
|
|
71
71
|
args: [{ standalone: true, selector: 'input[tuiInputColor]', imports: [FormsModule, NgIf, TuiSlider, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
72
72
|
tuiAsControl(TuiInputColor),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-color.mjs","sources":["../../../projects/kit/components/input-color/input-color.options.ts","../../../projects/kit/components/input-color/input-color.component.ts","../../../projects/kit/components/input-color/input-color.template.html","../../../projects/kit/components/input-color/taiga-ui-kit-components-input-color.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nexport interface TuiInputColorOptions {\n readonly format: 'hex' | 'hexa';\n readonly align: TuiHorizontalDirection;\n}\n\nexport const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] =\n tuiCreateOptions<TuiInputColorOptions>({\n format: 'hex',\n align: 'left',\n });\n","import {NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {\n maskitoAddOnFocusPlugin,\n maskitoPrefixPostprocessorGenerator,\n maskitoRemoveOnBlurPlugin,\n} from '@maskito/kit';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldContent, TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {TuiSlider, tuiSliderOptionsProvider} from '@taiga-ui/kit/components/slider';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_COLOR_OPTIONS, type TuiInputColorOptions} from './input-color.options';\n\nconst REGEX = /[0-9a-fA-F]/;\n\n@Component({\n standalone: true,\n selector: 'input[tuiInputColor]',\n imports: [FormsModule, NgIf, TuiSlider, TuiTextfieldContent],\n templateUrl: './input-color.template.html',\n styleUrls: ['./input-color.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputColor),\n tuiFallbackValueProvider(''),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n ],\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n ngSkipHydration: 'true',\n inputmode: 'numeric',\n spellcheck: 'false',\n '[disabled]': 'disabled()',\n '[value]': 'value()',\n '[attr.list]': 'null',\n '(input)': 'onChange($event.target.value)',\n },\n})\nexport class TuiInputColor extends TuiControl<string> {\n protected readonly options = inject(TUI_INPUT_COLOR_OPTIONS);\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly list = this.el.getAttribute('list');\n protected readonly format = signal(this.options.format);\n protected readonly align = signal<TuiHorizontalDirection>(this.options.align);\n\n protected readonly icon = tuiDirectiveBinding(\n TuiIcons,\n 'iconStart',\n computed(() =>\n this.align() === 'left'\n ? '\"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>\"'\n : '',\n ),\n {},\n );\n\n protected readonly maskito = tuiMaskito(\n computed((length = this.format().length * 2) => ({\n mask: ['#', ...Array.from<RegExp>({length}).fill(REGEX)],\n postprocessors: [maskitoPrefixPostprocessorGenerator('#')],\n plugins: [maskitoAddOnFocusPlugin('#'), maskitoRemoveOnBlurPlugin('#')],\n overwriteMode: 'replace',\n })),\n );\n\n protected readonly filled = computed(() =>\n this.format() === 'hex' ? this.value().length === 7 : this.value().length === 9,\n );\n\n protected readonly opacity = computed(() =>\n this.filled() && this.format() === 'hexa'\n ? Number.parseInt(this.value().slice(-2), 16)\n : 255,\n );\n\n @Input('align')\n public set alignSetter(align: TuiInputColorOptions['align']) {\n this.align.set(align);\n }\n\n @Input('format')\n public set formatSetter(mode: TuiInputColorOptions['format']) {\n this.format.set(mode);\n }\n\n protected onInput(value: string): void {\n this.onChange(\n this.format() === 'hex' ? value : `${value}${toHex(this.opacity())}`,\n );\n }\n\n protected onOpacity(opacity: number): void {\n const value = this.filled() ? this.value().slice(0, 7) : '#000000';\n\n this.onChange(`${value}${toHex(opacity)}`);\n }\n}\n\nfunction toHex(value: number): string {\n return value.toString(16).padStart(2, '0');\n}\n","<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.focus()\"\n />\n</ng-container>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAQa,CAAC,uBAAuB,EAAE,4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AAM;AACvB,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,UAAU,EAAE,OAAO;AACnB,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,+BAA+B;AAC7C,qBAAA,EAAA,QAAA,EAAA,8xBAAA,EAAA,MAAA,EAAA,CAAA,w+BAAA,CAAA,EAAA,CAAA;8BAwCU,WAAW,EAAA,CAAA;sBADrB,KAAK;uBAAC,OAAO,CAAA;gBAMH,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ,CAAA;;AAkBnB,SAAS,KAAK,CAAC,KAAa,EAAA;AACxB,IAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC/C;;AErHA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-color.mjs","sources":["../../../projects/kit/components/input-color/input-color.options.ts","../../../projects/kit/components/input-color/input-color.component.ts","../../../projects/kit/components/input-color/input-color.template.html","../../../projects/kit/components/input-color/taiga-ui-kit-components-input-color.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\nexport interface TuiInputColorOptions {\n readonly format: 'hex' | 'hexa';\n readonly align: TuiHorizontalDirection;\n}\n\nexport const [TUI_INPUT_COLOR_OPTIONS, tuiInputColorOptionsProvider] =\n tuiCreateOptions<TuiInputColorOptions>({\n format: 'hex',\n align: 'left',\n });\n","import {NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {\n maskitoAddOnFocusPlugin,\n maskitoPrefixPostprocessorGenerator,\n maskitoRemoveOnBlurPlugin,\n} from '@maskito/kit';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiTextfieldContent, TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\nimport {TuiSlider, tuiSliderOptionsProvider} from '@taiga-ui/kit/components/slider';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_COLOR_OPTIONS, type TuiInputColorOptions} from './input-color.options';\n\nconst REGEX = /[0-9a-fA-F]/;\nconst EMPTY = '\"data:image/svg+xml;utf8,<svg xmlns=http://www.w3.org/2000/svg></svg>\"';\n\n@Component({\n standalone: true,\n selector: 'input[tuiInputColor]',\n imports: [FormsModule, NgIf, TuiSlider, TuiTextfieldContent],\n templateUrl: './input-color.template.html',\n styleUrls: ['./input-color.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputColor),\n tuiFallbackValueProvider(''),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n ],\n hostDirectives: [MaskitoDirective, TuiWithTextfield],\n host: {\n ngSkipHydration: 'true',\n inputmode: 'numeric',\n spellcheck: 'false',\n '[disabled]': 'disabled()',\n '[value]': 'value()',\n '[attr.list]': 'null',\n '(input)': 'onChange($event.target.value)',\n },\n})\nexport class TuiInputColor extends TuiControl<string> {\n protected readonly options = inject(TUI_INPUT_COLOR_OPTIONS);\n protected readonly el = tuiInjectElement<HTMLInputElement>();\n protected readonly list = this.el.getAttribute('list');\n protected readonly format = signal(this.options.format);\n protected readonly align = signal<TuiHorizontalDirection>(this.options.align);\n protected readonly left = inject(TuiIcons).iconStart();\n\n protected readonly icon = tuiDirectiveBinding(\n TuiIcons,\n 'iconStart',\n computed(() => (this.align() === 'left' ? EMPTY : this.left)),\n {},\n );\n\n protected readonly maskito = tuiMaskito(\n computed((length = this.format().length * 2) => ({\n mask: ['#', ...Array.from<RegExp>({length}).fill(REGEX)],\n postprocessors: [maskitoPrefixPostprocessorGenerator('#')],\n plugins: [maskitoAddOnFocusPlugin('#'), maskitoRemoveOnBlurPlugin('#')],\n overwriteMode: 'replace',\n })),\n );\n\n protected readonly filled = computed(() =>\n this.format() === 'hex' ? this.value().length === 7 : this.value().length === 9,\n );\n\n protected readonly opacity = computed(() =>\n this.filled() && this.format() === 'hexa'\n ? Number.parseInt(this.value().slice(-2), 16)\n : 255,\n );\n\n @Input('align')\n public set alignSetter(align: TuiInputColorOptions['align']) {\n this.align.set(align);\n }\n\n @Input('format')\n public set formatSetter(mode: TuiInputColorOptions['format']) {\n this.format.set(mode);\n }\n\n protected onInput(value: string): void {\n this.onChange(\n this.format() === 'hex' ? value : `${value}${toHex(this.opacity())}`,\n );\n }\n\n protected onOpacity(opacity: number): void {\n const value = this.filled() ? this.value().slice(0, 7) : '#000000';\n\n this.onChange(`${value}${toHex(opacity)}`);\n }\n}\n\nfunction toHex(value: number): string {\n return value.toString(16).padStart(2, '0');\n}\n","<ng-container *tuiTextfieldContent>\n <input\n #input\n tabindex=\"-1\"\n type=\"color\"\n class=\"tui-input-color_picker\"\n [attr.list]=\"list\"\n [class.tui-input-color_left]=\"align() === 'left'\"\n [disabled]=\"!interactive()\"\n [style.--t-opacity]=\"filled() ? opacity() / 255 : 0\"\n [value]=\"value().length > 6 ? value().slice(0, 7) : ''\"\n (input)=\"onInput(input.value)\"\n />\n <input\n *ngIf=\"format() === 'hexa' && interactive()\"\n max=\"255\"\n tuiSlider\n type=\"range\"\n [ngModel]=\"opacity()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onOpacity($event)\"\n (pointerdown.stop)=\"el.foc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AAE,aAAa,EAAC,CAAC;AACxD,qBAAA,EAAA,cAAA,EACe,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,IAAA,EAC9C;AACF,wBAAA,eAAe,EAAE,MAAM;AACvB,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,UAAU,EAAE,OAAO;AACnB,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,aAAa,EAAE,MAAM;AACrB,wBAAA,SAAS,EAAE,+BAA+B;AAC7C,qBAAA,EAAA,QAAA,EAAA,8xBAAA,EAAA,MAAA,EAAA,CAAA,w+BAAA,CAAA,EAAA;8BAqCU,WAAW,EAAA,CAAA;sBADrB,KAAK;uBAAC,OAAO;gBAMH,YAAY,EAAA,CAAA;sBADtB,KAAK;uBAAC,QAAQ;;AAkBnB,SAAS,KAAK,CAAC,KAAa,EAAA;AACxB,IAAA,OAAO,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;AAC9C;;AEnHA;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TuiCalendar } from '@taiga-ui/core/components/calendar';
|
|
2
2
|
import { TuiInputChipBaseDirective, TuiInputChipComponent } from '@taiga-ui/kit/components/input-chip';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, computed, effect, signal,
|
|
4
|
+
import { inject, computed, effect, signal, Input, Directive } from '@angular/core';
|
|
5
5
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
6
6
|
import * as i3 from '@maskito/angular';
|
|
7
7
|
import { MaskitoDirective } from '@maskito/angular';
|
|
@@ -83,14 +83,14 @@ class TuiInputDateMultiDirective extends TuiInputChipBaseDirective {
|
|
|
83
83
|
updateValue(day) {
|
|
84
84
|
this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));
|
|
85
85
|
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
87
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateMultiDirective, isStandalone: true, selector: "input[tuiInputDateMulti]", inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "keydown.enter.prevent": "0" } }, providers: [
|
|
88
88
|
tuiAsControl(TuiInputDateMultiDirective),
|
|
89
89
|
tuiFallbackValueProvider([]),
|
|
90
90
|
tuiAsTextfieldAccessor(TuiInputDateMultiDirective),
|
|
91
91
|
], usesInheritance: true, hostDirectives: [{ directive: i1.TuiNativeValidator }, { directive: i2.TuiDropdownAuto }, { directive: i3.MaskitoDirective }, { directive: i4.TuiTextfieldBase, inputs: ["invalid", "invalid", "focused", "focused", "readOnly", "readOnly", "state", "state"] }], ngImport: i0 }); }
|
|
92
92
|
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateMultiDirective, decorators: [{
|
|
94
94
|
type: Directive,
|
|
95
95
|
args: [{
|
|
96
96
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-date-multi.mjs","sources":["../../../projects/kit/components/input-date-multi/input-date-multi.directive.ts","../../../projects/kit/components/input-date-multi/input-date-multi.ts","../../../projects/kit/components/input-date-multi/taiga-ui-kit-components-input-date-multi.ts"],"sourcesContent":["import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {DATE_FILLER_LENGTH, TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n TuiTextfieldBase,\n tuiTextfieldIconBinding,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiInputChipBaseDirective} from '@taiga-ui/kit/components/input-chip';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateMulti]',\n providers: [\n tuiAsControl(TuiInputDateMultiDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputDateMultiDirective),\n ],\n hostDirectives: [\n TuiNativeValidator,\n TuiDropdownAuto,\n MaskitoDirective,\n {\n directive: TuiTextfieldBase,\n inputs: ['invalid', 'focused', 'readOnly', 'state'],\n },\n ],\n host: {\n '(keydown.enter.prevent)': '0',\n },\n})\nexport class TuiInputDateMultiDirective extends TuiInputChipBaseDirective<TuiDay> {\n private readonly dateOptions = inject(TUI_INPUT_DATE_OPTIONS_NEW);\n\n protected readonly icon = tuiTextfieldIconBinding(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly filler = tuiWithDateFiller();\n protected readonly stringify = this.handlers.stringify.set((item) =>\n item.toString(this.format().mode, this.format().separator),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.dayClick.subscribe((day) => {\n this.updateValue(day);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.dateOptions.min);\n public readonly max = signal(this.dateOptions.max);\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendar>(\n (x) => x instanceof TuiCalendar,\n );\n\n @Input('min')\n public set minSetter(min: TuiDay | null) {\n this.min.set(min || this.dateOptions.min);\n }\n\n @Input('max')\n public set maxSetter(max: TuiDay | null) {\n this.max.set(max || this.dateOptions.max);\n }\n\n protected processCalendar(calendar: TuiCalendar): void {\n calendar.value = this.value();\n calendar.min = this.min();\n calendar.max = this.max();\n calendar.month =\n this.value()?.[this.value().length - 1] ?? TuiMonth.currentLocal();\n }\n\n protected onClick(): void {\n this.open.update((open) => !open);\n }\n\n protected onValueChange(value: string): void {\n const newValue =\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null;\n\n if (newValue && !this.handlers.disabledItemHandler()(newValue)) {\n this.updateValue(newValue);\n }\n }\n\n protected override onEnter(): void {\n this.onValueChange(this.textfield.value().trim());\n this.scrollTo();\n }\n\n private updateValue(day: TuiDay): void {\n this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));\n }\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiInputChipComponent} from '@taiga-ui/kit/components/input-chip';\n\nimport {TuiInputDateMultiDirective} from './input-date-multi.directive';\n\nexport const TuiInputDateMulti = [\n TuiInputDateMultiDirective,\n TuiCalendar,\n TuiInputChipComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA2BA,MAqBa,0BAA2B,SAAQ,yBAAiC,CAAA;AArBjF,IAAA,WAAA,GAAA;;AAsBqB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAE/C,QAAA,IAAA,CAAA,IAAI,GAAG,uBAAuB,CAAC,0BAA0B,CAAC,CAAC;QAC3D,IAAM,CAAA,MAAA,GAAG,iBAAiB,EAAE,CAAC;AAC7B,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,KAC5D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAC7D,CAAC;QAEiB,IAAI,CAAA,IAAA,GAAG,UAAU,CAChC,QAAQ,CAAC,MACL,2BAA2B,CAAC;AACxB,YAAA,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS;YAClC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;AAC1C,YAAA,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,iBAAiB,EAAE;AACnC,YAAA,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,iBAAiB,EAAE;SACtC,CAAC,CACL,CACJ,CAAC;AAEiB,QAAA,IAAA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AI;AAChB,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAA4B,0BAAA,CAAA;wBACxC,wBAAwB,CAAC,EAAE,CAAC;AAC5B,wBAAA,sBAAsB,CAA4B,0BAAA,CAAA;AACrD,qBAAA;AACD,oBAAA,cAAc,EAAE;wBACZ,kBAAkB;wBAClB,eAAe;wBACf,gBAAgB;AAChB,wBAAA;AACI,4BAAA,SAAS,EAAE,gBAAgB;4BAC3B,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC;AACtD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,yBAAyB,EAAE,GAAG;AACjC,qBAAA;AACJ,iBAAA,CAAA;8BA+Cc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;gBAMD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;AC7FH,MAAA,iBAAiB,GAAG;IAC7B,0BAA0B;IAC1B,WAAW;IACX,qBAAqB;;;ACRzB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-date-multi.mjs","sources":["../../../projects/kit/components/input-date-multi/input-date-multi.directive.ts","../../../projects/kit/components/input-date-multi/input-date-multi.ts","../../../projects/kit/components/input-date-multi/taiga-ui-kit-components-input-date-multi.ts"],"sourcesContent":["import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {DATE_FILLER_LENGTH, TuiDay, TuiMonth} from '@taiga-ui/cdk/date-time';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {tuiArrayToggle} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {\n tuiAsTextfieldAccessor,\n tuiInjectAuxiliary,\n TuiTextfieldBase,\n tuiTextfieldIconBinding,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TUI_DATE_FORMAT, TUI_DEFAULT_DATE_FORMAT} from '@taiga-ui/core/tokens';\nimport {TuiInputChipBaseDirective} from '@taiga-ui/kit/components/input-chip';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateMulti]',\n providers: [\n tuiAsControl(TuiInputDateMultiDirective),\n tuiFallbackValueProvider([]),\n tuiAsTextfieldAccessor(TuiInputDateMultiDirective),\n ],\n hostDirectives: [\n TuiNativeValidator,\n TuiDropdownAuto,\n MaskitoDirective,\n {\n directive: TuiTextfieldBase,\n inputs: ['invalid', 'focused', 'readOnly', 'state'],\n },\n ],\n host: {\n '(keydown.enter.prevent)': '0',\n },\n})\nexport class TuiInputDateMultiDirective extends TuiInputChipBaseDirective<TuiDay> {\n private readonly dateOptions = inject(TUI_INPUT_DATE_OPTIONS_NEW);\n\n protected readonly icon = tuiTextfieldIconBinding(TUI_INPUT_DATE_OPTIONS_NEW);\n protected readonly filler = tuiWithDateFiller();\n protected readonly stringify = this.handlers.stringify.set((item) =>\n item.toString(this.format().mode, this.format().separator),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateOptionsGenerator({\n separator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n }),\n ),\n );\n\n protected readonly format = toSignal(inject(TUI_DATE_FORMAT), {\n initialValue: TUI_DEFAULT_DATE_FORMAT,\n });\n\n protected readonly calendarIn = effect(() => {\n if (this.calendar()) {\n this.processCalendar(this.calendar()!);\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOut = effect((onCleanup) => {\n const subscription = this.calendar()?.dayClick.subscribe((day) => {\n this.updateValue(day);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n public readonly min = signal(this.dateOptions.min);\n public readonly max = signal(this.dateOptions.max);\n\n public readonly calendar = tuiInjectAuxiliary<TuiCalendar>(\n (x) => x instanceof TuiCalendar,\n );\n\n @Input('min')\n public set minSetter(min: TuiDay | null) {\n this.min.set(min || this.dateOptions.min);\n }\n\n @Input('max')\n public set maxSetter(max: TuiDay | null) {\n this.max.set(max || this.dateOptions.max);\n }\n\n protected processCalendar(calendar: TuiCalendar): void {\n calendar.value = this.value();\n calendar.min = this.min();\n calendar.max = this.max();\n calendar.month =\n this.value()?.[this.value().length - 1] ?? TuiMonth.currentLocal();\n }\n\n protected onClick(): void {\n this.open.update((open) => !open);\n }\n\n protected onValueChange(value: string): void {\n const newValue =\n value.length === DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(value, this.format().mode)\n : null;\n\n if (newValue && !this.handlers.disabledItemHandler()(newValue)) {\n this.updateValue(newValue);\n }\n }\n\n protected override onEnter(): void {\n this.onValueChange(this.textfield.value().trim());\n this.scrollTo();\n }\n\n private updateValue(day: TuiDay): void {\n this.setValue(tuiArrayToggle(this.value(), day, (a, b) => a.daySame(b)));\n }\n}\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {TuiInputChipComponent} from '@taiga-ui/kit/components/input-chip';\n\nimport {TuiInputDateMultiDirective} from './input-date-multi.directive';\n\nexport const TuiInputDateMulti = [\n TuiInputDateMultiDirective,\n TuiCalendar,\n TuiInputChipComponent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"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A;8BA+Cc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAMD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;AC7FT,MAAM,iBAAiB,GAAG;IAC7B,0BAA0B;IAC1B,WAAW;IACX,qBAAqB;;;ACRzB;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TuiCalendarRange } from '@taiga-ui/kit/components/calendar-range';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken, inject, computed, signal,
|
|
3
|
+
import { InjectionToken, inject, computed, signal, Input, Directive } from '@angular/core';
|
|
4
4
|
import * as i3 from '@maskito/angular';
|
|
5
5
|
import { MaskitoDirective } from '@maskito/angular';
|
|
6
6
|
import { maskitoDateRangeOptionsGenerator } from '@maskito/kit';
|
|
@@ -56,15 +56,15 @@ class TuiInputDateRangeDirective extends TuiInputDateBase {
|
|
|
56
56
|
? TuiDayRange.normalizeParse(value, this.format().mode)
|
|
57
57
|
: null);
|
|
58
58
|
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
59
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateRangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
60
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateRangeDirective, isStandalone: true, selector: "input[tuiInputDateRange]", inputs: { minLengthSetter: ["minLength", "minLengthSetter"], maxLengthSetter: ["maxLength", "maxLengthSetter"] }, providers: [
|
|
61
61
|
// TODO: Add SelectOption after data-list in calendar-range is refactored
|
|
62
62
|
tuiAsControl(TuiInputDateRangeDirective),
|
|
63
63
|
tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),
|
|
64
64
|
tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),
|
|
65
65
|
], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.TuiDropdownAuto }, { directive: i3.MaskitoDirective }], ngImport: i0 }); }
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateRangeDirective, decorators: [{
|
|
68
68
|
type: Directive,
|
|
69
69
|
args: [{
|
|
70
70
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-date-range.mjs","sources":["../../../projects/kit/components/input-date-range/input-date-range.options.ts","../../../projects/kit/components/input-date-range/input-date-range.directive.ts","../../../projects/kit/components/input-date-range/input-date-range.ts","../../../projects/kit/components/input-date-range/taiga-ui-kit-components-input-date-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDayRange} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateRangeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<TuiDayRange | null, any>;\n}\n\nexport const TUI_INPUT_DATE_RANGE_OPTIONS = new InjectionToken<TuiInputDateRangeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputDateRangeOptionsProvider = (\n options: Partial<TuiInputDateRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_DATE_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateRangeOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n type TuiDayLike,\n TuiDayRange,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {type TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_DATE_RANGE_OPTIONS} from './input-date-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateRange]',\n providers: [\n // TODO: Add SelectOption after data-list in calendar-range is refactored\n tuiAsControl(TuiInputDateRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),\n tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiDropdownAuto, MaskitoDirective],\n})\nexport class TuiInputDateRangeDirective extends TuiInputDateBase<TuiDayRange> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDayRange>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected override readonly filler = tuiWithDateFiller(\n (filler) => `${filler}${RANGE_SEPARATOR_CHAR}${filler}`,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateRangeOptionsGenerator({\n dateSeparator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n minLength: this.minLength() || {},\n maxLength: this.maxLength() || {},\n }),\n ),\n );\n\n public readonly minLength = signal<TuiDayLike | null>(null);\n public readonly maxLength = signal<TuiDayLike | null>(null);\n\n @Input('minLength')\n public set minLengthSetter(minLength: TuiDayLike | null) {\n this.minLength.set(minLength);\n }\n\n @Input('maxLength')\n public set maxLengthSetter(maxLength: TuiDayLike | null) {\n this.maxLength.set(maxLength);\n }\n\n protected override processCalendar(calendar: TuiCalendarRange): void {\n super.processCalendar(calendar);\n\n calendar.minLength = this.minLength();\n calendar.maxLength = this.maxLength();\n }\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_RANGE_FILLER_LENGTH\n ? TuiDayRange.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\n\nimport {TuiInputDateRangeDirective} from './input-date-range.directive';\n\nexport const TuiInputDateRange = [TuiInputDateRangeDirective, TuiCalendarRange] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-date-range.mjs","sources":["../../../projects/kit/components/input-date-range/input-date-range.options.ts","../../../projects/kit/components/input-date-range/input-date-range.directive.ts","../../../projects/kit/components/input-date-range/input-date-range.ts","../../../projects/kit/components/input-date-range/taiga-ui-kit-components-input-date-range.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDayRange} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateRangeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<TuiDayRange | null, any>;\n}\n\nexport const TUI_INPUT_DATE_RANGE_OPTIONS = new InjectionToken<TuiInputDateRangeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_RANGE_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputDateRangeOptionsProvider = (\n options: Partial<TuiInputDateRangeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_DATE_RANGE_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoDateRangeOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_RANGE_FILLER_LENGTH,\n RANGE_SEPARATOR_CHAR,\n type TuiDayLike,\n TuiDayRange,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiWithTextfield} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {type TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\nimport {\n TUI_DATE_ADAPTER,\n TUI_INPUT_DATE_OPTIONS_NEW,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_DATE_RANGE_OPTIONS} from './input-date-range.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateRange]',\n providers: [\n // TODO: Add SelectOption after data-list in calendar-range is refactored\n tuiAsControl(TuiInputDateRangeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_RANGE_OPTIONS),\n tuiProvide(TUI_INPUT_DATE_OPTIONS_NEW, TUI_INPUT_DATE_RANGE_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, TuiDropdownAuto, MaskitoDirective],\n})\nexport class TuiInputDateRangeDirective extends TuiInputDateBase<TuiDayRange> {\n protected readonly identity = inject<TuiItemsHandlers<TuiDayRange>>(\n TUI_ITEMS_HANDLERS,\n ).identityMatcher.set((a, b) => a.daySame(b));\n\n protected override readonly filler = tuiWithDateFiller(\n (filler) => `${filler}${RANGE_SEPARATOR_CHAR}${filler}`,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoDateRangeOptionsGenerator({\n dateSeparator: this.format().separator,\n mode: TUI_DATE_ADAPTER[this.format().mode],\n min: this.min().toLocalNativeDate(),\n max: this.max().toLocalNativeDate(),\n minLength: this.minLength() || {},\n maxLength: this.maxLength() || {},\n }),\n ),\n );\n\n public readonly minLength = signal<TuiDayLike | null>(null);\n public readonly maxLength = signal<TuiDayLike | null>(null);\n\n @Input('minLength')\n public set minLengthSetter(minLength: TuiDayLike | null) {\n this.minLength.set(minLength);\n }\n\n @Input('maxLength')\n public set maxLengthSetter(maxLength: TuiDayLike | null) {\n this.maxLength.set(maxLength);\n }\n\n protected override processCalendar(calendar: TuiCalendarRange): void {\n super.processCalendar(calendar);\n\n calendar.minLength = this.minLength();\n calendar.maxLength = this.maxLength();\n }\n\n protected override onValueChange(value: string): void {\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n this.onChange(\n value.length === DATE_RANGE_FILLER_LENGTH\n ? TuiDayRange.normalizeParse(value, this.format().mode)\n : null,\n );\n }\n}\n","import {TuiCalendarRange} from '@taiga-ui/kit/components/calendar-range';\n\nimport {TuiInputDateRangeDirective} from './input-date-range.directive';\n\nexport const TuiInputDateRange = [TuiInputDateRangeDirective, TuiCalendarRange] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAkBO,MAAM,4BAA4B,GAAG,IAAI,cAAc,CAC1D,SAAS,GAAG,8BAA8B,GAAG,EAAE,EAC/C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA;AAGE,MAAM,gCAAgC,GAAG,CAC5C,OAA0C,KAE1C,iBAAiB,CACb,4BAA4B,EAC5B,OAAO,EACP,kCAAkC;;ACKpC,MAAO,0BAA2B,SAAQ,gBAA6B,CAAA;AAX7E,IAAA,WAAA,GAAA;;QAYuB,IAAA,CAAA,QAAQ,GAAG,MAAM,CAChC,kBAAkB,CACrB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAEjB,QAAA,IAAA,CAAA,MAAM,GAAG,iBAAiB,CAClD,CAAC,MAAM,KAAK,CAAA,EAAG,MAAM,GAAG,oBAAoB,CAAA,EAAG,MAAM,CAAA,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A0B,EAAE,4BAA4B,CAAC;AACvE,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,CAAC;AACxE,iBAAA;8BA2Bc,eAAe,EAAA,CAAA;sBADzB,KAAK;uBAAC,WAAW;gBAMP,eAAe,EAAA,CAAA;sBADzB,KAAK;uBAAC,WAAW;;;MCjET,iBAAiB,GAAG,CAAC,0BAA0B,EAAE,gBAAgB;;ACJ9E;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TuiCalendar } from '@taiga-ui/core/components/calendar';
|
|
2
2
|
import { NgIf } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, inject, effect, computed, signal, untracked,
|
|
4
|
+
import { InjectionToken, inject, effect, computed, signal, untracked, Input, Directive, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
5
5
|
import { TuiTime, MILLISECONDS_IN_DAY, DATE_FILLER_LENGTH, TuiDay } from '@taiga-ui/cdk/date-time';
|
|
6
6
|
import * as i4 from '@taiga-ui/core/components/textfield';
|
|
7
7
|
import { tuiAsTextfieldAccessor, TuiWithTextfield, TuiTextfieldContent, TuiWithNativePicker } from '@taiga-ui/core/components/textfield';
|
|
@@ -157,15 +157,15 @@ class TuiInputDateTimeDirective extends TuiInputDateBase {
|
|
|
157
157
|
toNativeDate([{ year, month, day }, { hours, minutes, seconds, ms }]) {
|
|
158
158
|
return new Date(year, month, day, hours, minutes, seconds, ms);
|
|
159
159
|
}
|
|
160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
161
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateTimeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
161
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateTimeDirective, isStandalone: true, selector: "input[tuiInputDateTime]", inputs: { timeModeSetter: ["timeMode", "timeModeSetter"], minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, providers: [
|
|
162
162
|
tuiAsOptionContent(TuiSelectOption),
|
|
163
163
|
tuiAsControl(TuiInputDateTimeDirective),
|
|
164
164
|
tuiAsTextfieldAccessor(TuiInputDateTimeDirective),
|
|
165
165
|
tuiValueTransformerFrom(TUI_INPUT_DATE_TIME_OPTIONS),
|
|
166
166
|
], usesInheritance: true, hostDirectives: [{ directive: i1.MaskitoDirective }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.TuiWithTextfield }], ngImport: i0 }); }
|
|
167
167
|
}
|
|
168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateTimeDirective, decorators: [{
|
|
169
169
|
type: Directive,
|
|
170
170
|
args: [{
|
|
171
171
|
standalone: true,
|
|
@@ -212,10 +212,10 @@ class TuiInputDateTimeComponent extends TuiNativeTimePicker {
|
|
|
212
212
|
const time = TuiTime.fromLocalNativeDate(date);
|
|
213
213
|
this.host.setValue([day, time]);
|
|
214
214
|
}
|
|
215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
216
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateTimeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateTimeComponent, isStandalone: true, selector: "input[tuiInputDateTime][type=\"datetime-local\"]", host: { attributes: { "ngSkipHydration": "true" } }, usesInheritance: true, hostDirectives: [{ directive: i4.TuiWithNativePicker }], ngImport: i0, template: "<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n</ng-container>\n", styles: ["tui-textfield input[tuiInputDateTime]~.t-content input[type=datetime-local]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDateTime]~.t-content input[type=datetime-local]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
217
217
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateTimeComponent, decorators: [{
|
|
219
219
|
type: Component,
|
|
220
220
|
args: [{ standalone: true, selector: 'input[tuiInputDateTime][type="datetime-local"]', imports: [NgIf, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: { ngSkipHydration: 'true' }, template: "<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n</ng-container>\n", styles: ["tui-textfield input[tuiInputDateTime]~.t-content input[type=datetime-local]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDateTime]~.t-content input[type=datetime-local]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"] }]
|
|
221
221
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-date-time.mjs","sources":["../../../projects/kit/components/input-date-time/input-date-time.options.ts","../../../projects/kit/components/input-date-time/input-date-time.directive.ts","../../../projects/kit/components/input-date-time/input-date-time.component.ts","../../../projects/kit/components/input-date-time/input-date-time.template.html","../../../projects/kit/components/input-date-time/input-date-time.ts","../../../projects/kit/components/input-date-time/taiga-ui-kit-components-input-date-time.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {type MaskitoTimeMode} from '@maskito/kit';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateTimeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly timeMode: MaskitoTimeMode;\n readonly dateTimeSeparator: string;\n readonly valueTransformer: TuiValueTransformer<[TuiDay, TuiTime | null] | null, any>;\n}\n\nexport const TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS = {\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n timeMode: 'HH:MM',\n dateTimeSeparator: ', ',\n} as const;\n\nexport const TUI_INPUT_DATE_TIME_OPTIONS = new InjectionToken<TuiInputDateTimeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_TIME_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n }),\n },\n);\n\nexport const tuiInputDateTimeOptionsProvider = (\n options: Partial<TuiInputDateTimeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_DATE_TIME_OPTIONS, options, {\n ...TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n });\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {\n maskitoDateTimeOptionsGenerator,\n type MaskitoDateTimeParams,\n maskitoSelectionChangeHandler,\n type MaskitoTimeMode,\n} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n MILLISECONDS_IN_DAY,\n TuiDay,\n TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiClamp, tuiSum} from '@taiga-ui/cdk/utils/math';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TuiItemsHandlersValidator} from '@taiga-ui/core/directives/items-handlers';\nimport {\n TUI_DATE_ADAPTER,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\nimport {noop} from 'rxjs';\n\nimport {TUI_INPUT_DATE_TIME_OPTIONS} from './input-date-time.options';\n\nconst MIN_TIME = new TuiTime(0, 0);\nconst MAX_TIME = TuiTime.fromAbsoluteMilliseconds(MILLISECONDS_IN_DAY - 1);\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateTime]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateTimeDirective),\n tuiAsTextfieldAccessor(TuiInputDateTimeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_TIME_OPTIONS),\n ],\n hostDirectives: [\n MaskitoDirective,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n TuiWithTextfield,\n ],\n})\nexport class TuiInputDateTimeDirective\n extends TuiInputDateBase<readonly [TuiDay, TuiTime | null]>\n implements TuiTextfieldAccessor<readonly [TuiDay, TuiTime | null]>\n{\n private readonly timeFillers = toSignal(inject(TUI_TIME_TEXTS));\n\n protected override readonly options = inject(TUI_INPUT_DATE_TIME_OPTIONS);\n\n protected override readonly filler = tuiWithDateFiller((date) => {\n const time = this.timeFillers()?.[this.timeMode()] ?? '';\n\n return `${date}${this.options.dateTimeSeparator}${time}`;\n });\n\n protected override valueEffect = effect(noop);\n\n protected readonly identity = this.handlers.identityMatcher.set(\n (a, b) => tuiSum(...a.map(Number)) === tuiSum(...b.map(Number)),\n );\n\n protected readonly disabledItemHandler = tuiDirectiveBinding(\n TuiItemsHandlersValidator,\n 'disabledItemHandler',\n (value: readonly [TuiDay, TuiTime | null] | null) =>\n Boolean(value && this.handlers.disabledItemHandler()(value)),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n this.computeMask({\n dateMode: TUI_DATE_ADAPTER[this.format().mode],\n timeMode: this.timeMode(),\n min: this.toNativeDate([this.min(), this.minTime()]),\n max: this.toNativeDate([this.max(), this.maxTime()]),\n dateSeparator: this.format().separator,\n dateTimeSeparator: this.options.dateTimeSeparator,\n }),\n ),\n );\n\n public readonly timeMode = signal(this.options.timeMode);\n public readonly minTime = signal(MIN_TIME);\n public readonly maxTime = signal(MAX_TIME);\n\n // TODO(v5): use signal inputs\n @Input('timeMode')\n public set timeModeSetter(x: MaskitoTimeMode) {\n this.timeMode.set(x);\n }\n\n @Input('min')\n public override set minSetter(\n min: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(min) ? min : [min, null];\n\n this.min.set(date || this.options.min);\n this.minTime.set(time ?? MIN_TIME);\n }\n\n @Input('max')\n public override set maxSetter(\n max: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(max) ? max : [max, null];\n\n this.max.set(date || this.options.max);\n this.maxTime.set(time ?? MAX_TIME);\n }\n\n public setValue(value: readonly [TuiDay, TuiTime | null] | null): void {\n this.onChange(value);\n this.textfield.value.set(this.stringify(value));\n }\n\n public override setDate(newDate: TuiDay): void {\n const [date, time] = this.clampTime([newDate, this.value()?.[1] ?? null]);\n\n this.setValue([date, time]);\n this.open.set(false);\n setTimeout(\n (caretIndex = DATE_FILLER_LENGTH + this.options.dateTimeSeparator.length) =>\n this.el.setSelectionRange(caretIndex, caretIndex),\n );\n }\n\n public override writeValue(value: [TuiDay, TuiTime | null] | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.textfield.value.set(this.stringify(this.value())));\n }\n }\n\n protected override processCalendar(calendar: TuiCalendar): void {\n super.processCalendar(calendar);\n calendar.disabledItemHandler = (day: TuiDay) =>\n this.handlers.disabledItemHandler()([day, null]);\n }\n\n protected override onValueChange(value: string): void {\n this.textfield.value.set(value);\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n\n const [date = '', time = ''] = value.split(this.options.dateTimeSeparator);\n const parsedDate =\n date.length >= DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(date, this.format().mode)\n : null;\n const parsedTime =\n time.length === this.timeMode().length ? TuiTime.fromString(time) : null;\n\n if (!parsedDate || (time && !parsedTime)) {\n return this.onChange(null);\n }\n\n const [prevDate, prevTime = null] = this.value() ?? [];\n\n if (!prevDate?.daySame(parsedDate) || Number(parsedTime) !== Number(prevTime)) {\n this.onChange([parsedDate, parsedTime]);\n }\n }\n\n protected override stringify(\n value: readonly [TuiDay, TuiTime | null] | null,\n ): string {\n const [date, time] = value ?? [];\n\n const dateString =\n date?.toString(this.format().mode, this.format().separator) ?? '';\n const timeString = time?.toString(this.timeMode());\n\n return timeString\n ? `${dateString}${this.options.dateTimeSeparator}${timeString}`\n : dateString;\n }\n\n private clampTime([date, time]: [TuiDay, TuiTime | null]): [TuiDay, TuiTime | null] {\n const min = date.daySame(this.min())\n ? this.minTime().toAbsoluteMilliseconds()\n : -Infinity;\n const max = date.daySame(this.max())\n ? this.maxTime().toAbsoluteMilliseconds()\n : Infinity;\n\n return [\n date,\n time &&\n TuiTime.fromAbsoluteMilliseconds(\n tuiClamp(time.toAbsoluteMilliseconds(), min, max),\n ),\n ];\n }\n\n private computeMask(\n params: Omit<Required<MaskitoDateTimeParams>, 'timeStep'>,\n ): MaskitoOptions {\n const options = maskitoDateTimeOptionsGenerator(params);\n const {timeMode, dateMode, dateTimeSeparator} = params;\n const inputModeSwitchPlugin = maskitoSelectionChangeHandler((element) => {\n element.inputMode =\n element.selectionStart! >=\n dateMode.length + dateTimeSeparator.length + timeMode.indexOf(' AA')\n ? 'text'\n : 'numeric';\n });\n\n return {\n ...options,\n plugins: options.plugins.concat(\n timeMode.includes('AA') ? inputModeSwitchPlugin : [],\n ),\n };\n }\n\n private toNativeDate([{year, month, day}, {hours, minutes, seconds, ms}]: readonly [\n TuiDay,\n TuiTime,\n ]): Date {\n return new Date(year, month, day, hours, minutes, seconds, ms);\n }\n}\n","import {NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay, TuiTime} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiNativeTimePicker} from '@taiga-ui/kit/components/input-time';\n\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\n@Component({\n standalone: true,\n selector: 'input[tuiInputDateTime][type=\"datetime-local\"]',\n imports: [NgIf, TuiTextfieldContent],\n templateUrl: './input-date-time.template.html',\n styleUrls: ['./input-date-time.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputDateTimeComponent extends TuiNativeTimePicker {\n protected readonly host = inject(TuiInputDateTimeDirective);\n protected readonly step = computed(() => this.getStep(this.host.timeMode()));\n protected readonly value = computed(() => this.toISOString(this.host.value()));\n\n protected min = computed(() =>\n this.toISOString([this.host.min(), this.host.minTime()]),\n );\n\n protected max = computed(() =>\n this.toISOString([this.host.max(), this.host.maxTime()]),\n );\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.setValue(null);\n }\n\n const date = new Date(value);\n const day = TuiDay.fromLocalNativeDate(date);\n const time = TuiTime.fromLocalNativeDate(date);\n\n this.host.setValue([day, time]);\n }\n}\n","<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n</ng-container>\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputDateTimeComponent} from './input-date-time.component';\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\nexport const TuiInputDateTime = [\n TuiInputDateTimeDirective,\n TuiInputDateTimeComponent,\n TuiCalendar,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBa,MAAA,mCAAmC,GAAG;AAC/C,IAAA,gBAAgB,EAAE,8BAA8B;AAChD,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,iBAAiB,EAAE,IAAI;EAChB;AAEE,MAAA,2BAA2B,GAAG,IAAI,cAAc,CACzD,SAAS,GAAG,6BAA6B,GAAG,EAAE,EAC9C;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,GAAG,mCAAmC;KACzC,CAAC;AACL,CAAA,EACH;AAEK,MAAM,+BAA+B,GAAG,CAC3C,OAAyC,KAEzC,iBAAiB,CAAC,2BAA2B,EAAE,OAAO,EAAE;AACpD,IAAA,GAAG,kCAAkC;AACrC,IAAA,GAAG,mCAAmC;AACzC,CAAA;;ACKL,MAAM,QAAQ,GAAG,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACnC,MAAM,QAAQ,GAAG,OAAO,CAAC,wBAAwB,CAAC,mBAAmB,GAAG,CAAC,CAAC,CAAC;AAE3E,MAgBa,yBACT,SAAQ,gBAAmD,CAAA;AAjB/D,IAAA,WAAA,GAAA;;QAoBqB,IAAW,CAAA,WAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;AAEpC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAE9C,QAAA,IAAA,CAAA,MAAM,GA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IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,WAAW;;;ACRf;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-date-time.mjs","sources":["../../../projects/kit/components/input-date-time/input-date-time.options.ts","../../../projects/kit/components/input-date-time/input-date-time.directive.ts","../../../projects/kit/components/input-date-time/input-date-time.component.ts","../../../projects/kit/components/input-date-time/input-date-time.template.html","../../../projects/kit/components/input-date-time/input-date-time.ts","../../../projects/kit/components/input-date-time/taiga-ui-kit-components-input-date-time.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {type MaskitoTimeMode} from '@maskito/kit';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {type TuiDay, type TuiTime} from '@taiga-ui/cdk/date-time';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputDateTimeOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly timeMode: MaskitoTimeMode;\n readonly dateTimeSeparator: string;\n readonly valueTransformer: TuiValueTransformer<[TuiDay, TuiTime | null] | null, any>;\n}\n\nexport const TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS = {\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n timeMode: 'HH:MM',\n dateTimeSeparator: ', ',\n} as const;\n\nexport const TUI_INPUT_DATE_TIME_OPTIONS = new InjectionToken<TuiInputDateTimeOptions>(\n ngDevMode ? 'TUI_INPUT_DATE_TIME_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n }),\n },\n);\n\nexport const tuiInputDateTimeOptionsProvider = (\n options: Partial<TuiInputDateTimeOptions>,\n): FactoryProvider =>\n tuiProvideOptions(TUI_INPUT_DATE_TIME_OPTIONS, options, {\n ...TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n ...TUI_INPUT_DATE_TIME_DEFAULT_OPTIONS,\n });\n","import {\n computed,\n Directive,\n effect,\n inject,\n Input,\n signal,\n untracked,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {type MaskitoOptions} from '@maskito/core';\nimport {\n maskitoDateTimeOptionsGenerator,\n type MaskitoDateTimeParams,\n maskitoSelectionChangeHandler,\n type MaskitoTimeMode,\n} from '@maskito/kit';\nimport {tuiAsControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {\n DATE_FILLER_LENGTH,\n MILLISECONDS_IN_DAY,\n TuiDay,\n TuiTime,\n} from '@taiga-ui/cdk/date-time';\nimport {tuiClamp, tuiSum} from '@taiga-ui/cdk/utils/math';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiCalendar} from '@taiga-ui/core/components/calendar';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\nimport {\n tuiAsTextfieldAccessor,\n type TuiTextfieldAccessor,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownAuto} from '@taiga-ui/core/directives/dropdown';\nimport {TuiItemsHandlersValidator} from '@taiga-ui/core/directives/items-handlers';\nimport {\n TUI_DATE_ADAPTER,\n TuiInputDateBase,\n tuiWithDateFiller,\n} from '@taiga-ui/kit/components/input-date';\nimport {TuiSelectOption} from '@taiga-ui/kit/components/select';\nimport {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\nimport {noop} from 'rxjs';\n\nimport {TUI_INPUT_DATE_TIME_OPTIONS} from './input-date-time.options';\n\nconst MIN_TIME = new TuiTime(0, 0);\nconst MAX_TIME = TuiTime.fromAbsoluteMilliseconds(MILLISECONDS_IN_DAY - 1);\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputDateTime]',\n providers: [\n tuiAsOptionContent(TuiSelectOption),\n tuiAsControl(TuiInputDateTimeDirective),\n tuiAsTextfieldAccessor(TuiInputDateTimeDirective),\n tuiValueTransformerFrom(TUI_INPUT_DATE_TIME_OPTIONS),\n ],\n hostDirectives: [\n MaskitoDirective,\n TuiDropdownAuto,\n TuiItemsHandlersValidator,\n TuiWithTextfield,\n ],\n})\nexport class TuiInputDateTimeDirective\n extends TuiInputDateBase<readonly [TuiDay, TuiTime | null]>\n implements TuiTextfieldAccessor<readonly [TuiDay, TuiTime | null]>\n{\n private readonly timeFillers = toSignal(inject(TUI_TIME_TEXTS));\n\n protected override readonly options = inject(TUI_INPUT_DATE_TIME_OPTIONS);\n\n protected override readonly filler = tuiWithDateFiller((date) => {\n const time = this.timeFillers()?.[this.timeMode()] ?? '';\n\n return `${date}${this.options.dateTimeSeparator}${time}`;\n });\n\n protected override valueEffect = effect(noop);\n\n protected readonly identity = this.handlers.identityMatcher.set(\n (a, b) => tuiSum(...a.map(Number)) === tuiSum(...b.map(Number)),\n );\n\n protected readonly disabledItemHandler = tuiDirectiveBinding(\n TuiItemsHandlersValidator,\n 'disabledItemHandler',\n (value: readonly [TuiDay, TuiTime | null] | null) =>\n Boolean(value && this.handlers.disabledItemHandler()(value)),\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n this.computeMask({\n dateMode: TUI_DATE_ADAPTER[this.format().mode],\n timeMode: this.timeMode(),\n min: this.toNativeDate([this.min(), this.minTime()]),\n max: this.toNativeDate([this.max(), this.maxTime()]),\n dateSeparator: this.format().separator,\n dateTimeSeparator: this.options.dateTimeSeparator,\n }),\n ),\n );\n\n public readonly timeMode = signal(this.options.timeMode);\n public readonly minTime = signal(MIN_TIME);\n public readonly maxTime = signal(MAX_TIME);\n\n // TODO(v5): use signal inputs\n @Input('timeMode')\n public set timeModeSetter(x: MaskitoTimeMode) {\n this.timeMode.set(x);\n }\n\n @Input('min')\n public override set minSetter(\n min: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(min) ? min : [min, null];\n\n this.min.set(date || this.options.min);\n this.minTime.set(time ?? MIN_TIME);\n }\n\n @Input('max')\n public override set maxSetter(\n max: TuiDay | readonly [TuiDay, TuiTime | null] | null,\n ) {\n const [date, time] = Array.isArray(max) ? max : [max, null];\n\n this.max.set(date || this.options.max);\n this.maxTime.set(time ?? MAX_TIME);\n }\n\n public setValue(value: readonly [TuiDay, TuiTime | null] | null): void {\n this.onChange(value);\n this.textfield.value.set(this.stringify(value));\n }\n\n public override setDate(newDate: TuiDay): void {\n const [date, time] = this.clampTime([newDate, this.value()?.[1] ?? null]);\n\n this.setValue([date, time]);\n this.open.set(false);\n setTimeout(\n (caretIndex = DATE_FILLER_LENGTH + this.options.dateTimeSeparator.length) =>\n this.el.setSelectionRange(caretIndex, caretIndex),\n );\n }\n\n public override writeValue(value: [TuiDay, TuiTime | null] | null): void {\n const reset = this.control.pristine && this.control.untouched && !value;\n const changed = untracked(() => value !== this.value());\n\n if (changed || reset) {\n super.writeValue(value);\n untracked(() => this.textfield.value.set(this.stringify(this.value())));\n }\n }\n\n protected override processCalendar(calendar: TuiCalendar): void {\n super.processCalendar(calendar);\n calendar.disabledItemHandler = (day: TuiDay) =>\n this.handlers.disabledItemHandler()([day, null]);\n }\n\n protected override onValueChange(value: string): void {\n this.textfield.value.set(value);\n this.control?.control?.updateValueAndValidity({emitEvent: false});\n\n const [date = '', time = ''] = value.split(this.options.dateTimeSeparator);\n const parsedDate =\n date.length >= DATE_FILLER_LENGTH\n ? TuiDay.normalizeParse(date, this.format().mode)\n : null;\n const parsedTime =\n time.length === this.timeMode().length ? TuiTime.fromString(time) : null;\n\n if (!parsedDate || (time && !parsedTime)) {\n return this.onChange(null);\n }\n\n const [prevDate, prevTime = null] = this.value() ?? [];\n\n if (!prevDate?.daySame(parsedDate) || Number(parsedTime) !== Number(prevTime)) {\n this.onChange([parsedDate, parsedTime]);\n }\n }\n\n protected override stringify(\n value: readonly [TuiDay, TuiTime | null] | null,\n ): string {\n const [date, time] = value ?? [];\n\n const dateString =\n date?.toString(this.format().mode, this.format().separator) ?? '';\n const timeString = time?.toString(this.timeMode());\n\n return timeString\n ? `${dateString}${this.options.dateTimeSeparator}${timeString}`\n : dateString;\n }\n\n private clampTime([date, time]: [TuiDay, TuiTime | null]): [TuiDay, TuiTime | null] {\n const min = date.daySame(this.min())\n ? this.minTime().toAbsoluteMilliseconds()\n : -Infinity;\n const max = date.daySame(this.max())\n ? this.maxTime().toAbsoluteMilliseconds()\n : Infinity;\n\n return [\n date,\n time &&\n TuiTime.fromAbsoluteMilliseconds(\n tuiClamp(time.toAbsoluteMilliseconds(), min, max),\n ),\n ];\n }\n\n private computeMask(\n params: Omit<Required<MaskitoDateTimeParams>, 'timeStep'>,\n ): MaskitoOptions {\n const options = maskitoDateTimeOptionsGenerator(params);\n const {timeMode, dateMode, dateTimeSeparator} = params;\n const inputModeSwitchPlugin = maskitoSelectionChangeHandler((element) => {\n element.inputMode =\n element.selectionStart! >=\n dateMode.length + dateTimeSeparator.length + timeMode.indexOf(' AA')\n ? 'text'\n : 'numeric';\n });\n\n return {\n ...options,\n plugins: options.plugins.concat(\n timeMode.includes('AA') ? inputModeSwitchPlugin : [],\n ),\n };\n }\n\n private toNativeDate([{year, month, day}, {hours, minutes, seconds, ms}]: readonly [\n TuiDay,\n TuiTime,\n ]): Date {\n return new Date(year, month, day, hours, minutes, seconds, ms);\n }\n}\n","import {NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TuiDay, TuiTime} from '@taiga-ui/cdk/date-time';\nimport {\n TuiTextfieldContent,\n TuiWithNativePicker,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiNativeTimePicker} from '@taiga-ui/kit/components/input-time';\n\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\n@Component({\n standalone: true,\n selector: 'input[tuiInputDateTime][type=\"datetime-local\"]',\n imports: [NgIf, TuiTextfieldContent],\n templateUrl: './input-date-time.template.html',\n styleUrls: ['./input-date-time.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiWithNativePicker],\n host: {ngSkipHydration: 'true'},\n})\nexport class TuiInputDateTimeComponent extends TuiNativeTimePicker {\n protected readonly host = inject(TuiInputDateTimeDirective);\n protected readonly step = computed(() => this.getStep(this.host.timeMode()));\n protected readonly value = computed(() => this.toISOString(this.host.value()));\n\n protected min = computed(() =>\n this.toISOString([this.host.min(), this.host.minTime()]),\n );\n\n protected max = computed(() =>\n this.toISOString([this.host.max(), this.host.maxTime()]),\n );\n\n protected onInput(value: string): void {\n if (!value) {\n return this.host.setValue(null);\n }\n\n const date = new Date(value);\n const day = TuiDay.fromLocalNativeDate(date);\n const time = TuiTime.fromLocalNativeDate(date);\n\n this.host.setValue([day, time]);\n }\n}\n","<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"datetime-local\"\n [attr.list]=\"list\"\n [max]=\"max()\"\n [min]=\"min()\"\n [step]=\"step()\"\n [value]=\"value()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n</ng-container>\n","import {TuiCalendar} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputDateTimeComponent} from './input-date-time.component';\nimport {TuiInputDateTimeDirective} from './input-date-time.directive';\n\nexport const TuiInputDateTime = [\n TuiInputDateTimeDirective,\n TuiInputDateTimeComponent,\n TuiCalendar,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAqBO,MAAM,m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yB,EAAA,UAAA,EAAA,CAAA;kBAXrC,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,gDAAgD,EAAA,OAAA,EACjD,CAAC,IAAI,EAAE,mBAAmB,CAAC,EAAA,aAAA,EAGrB,iBAAiB,CAAC,IAAI,mBACpB,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/B,CAAC,mBAAmB,CAAC,EAAA,IAAA,EAC/B,EAAC,eAAe,EAAE,MAAM,EAAC,EAAA,QAAA,EAAA,gaAAA,EAAA,MAAA,EAAA,CAAA,yVAAA,CAAA,EAAA;;;AErB5B,MAAM,gBAAgB,GAAG;IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,WAAW;;;ACRf;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, computed, effect, signal, untracked,
|
|
2
|
+
import { inject, computed, effect, signal, untracked, Input, Directive, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
3
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
4
4
|
import { tuiDirectiveBinding, changeDateSeparator } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
5
5
|
import * as i1 from '@taiga-ui/core/components/textfield';
|
|
@@ -9,7 +9,7 @@ import { TUI_DATE_TEXTS } from '@taiga-ui/kit/tokens';
|
|
|
9
9
|
import { identity } from 'rxjs';
|
|
10
10
|
import { TuiCalendar } from '@taiga-ui/core/components/calendar';
|
|
11
11
|
import { NgIf } from '@angular/common';
|
|
12
|
-
import {
|
|
12
|
+
import { TUI_LAST_DAY, TUI_FIRST_DAY, TuiDay, DATE_FILLER_LENGTH } from '@taiga-ui/cdk/date-time';
|
|
13
13
|
import * as i4 from '@maskito/angular';
|
|
14
14
|
import { MaskitoDirective } from '@maskito/angular';
|
|
15
15
|
import { maskitoDateOptionsGenerator } from '@maskito/kit';
|
|
@@ -124,10 +124,10 @@ class TuiInputDateBase extends TuiControl {
|
|
|
124
124
|
stringify(value) {
|
|
125
125
|
return value?.toString(this.format().mode, this.format().separator) ?? '';
|
|
126
126
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateBase, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
128
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateBase, isStandalone: true, inputs: { minSetter: ["min", "minSetter"], maxSetter: ["max", "maxSetter"] }, host: { listeners: { "input": "onValueChange($event.target.value)", "click.capture.stop": "onClick()" }, properties: { "attr.inputmode": "mobile && open() ? \"none\" : \"numeric\"", "disabled": "disabled()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
129
129
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateBase, decorators: [{
|
|
131
131
|
type: Directive,
|
|
132
132
|
args: [{
|
|
133
133
|
standalone: true,
|
|
@@ -162,14 +162,14 @@ class TuiInputDateDirective extends TuiInputDateBase {
|
|
|
162
162
|
? TuiDay.normalizeParse(value, this.format().mode)
|
|
163
163
|
: null);
|
|
164
164
|
}
|
|
165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
166
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
165
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
166
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateDirective, isStandalone: true, selector: "input[tuiInputDate]", providers: [
|
|
167
167
|
tuiAsOptionContent(TuiSelectOption),
|
|
168
168
|
tuiAsControl(TuiInputDateDirective),
|
|
169
169
|
tuiValueTransformerFrom(TUI_INPUT_DATE_OPTIONS_NEW),
|
|
170
170
|
], usesInheritance: true, hostDirectives: [{ directive: i1.TuiWithTextfield }, { directive: i2.TuiDropdownAuto }, { directive: i3.TuiItemsHandlersValidator }, { directive: i4.MaskitoDirective }], ngImport: i0 }); }
|
|
171
171
|
}
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateDirective, decorators: [{
|
|
173
173
|
type: Directive,
|
|
174
174
|
args: [{
|
|
175
175
|
standalone: true,
|
|
@@ -200,10 +200,10 @@ class TuiInputDateComponent {
|
|
|
200
200
|
const [year = 0, month = 0, day = 0] = value.split('-').map(Number);
|
|
201
201
|
this.host.onChange(new TuiDay(year, month - 1, day));
|
|
202
202
|
}
|
|
203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiInputDateComponent, isStandalone: true, selector: "input[tuiInputDate][type=\"date\"]", inputs: { list: "list" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "attr.list": "null" } }, hostDirectives: [{ directive: i1.TuiWithNativePicker }], ngImport: i0, template: "<ng-container *ngIf=\"host.native\">\n <input\n *tuiTextfieldContent\n type=\"date\"\n [attr.list]=\"list\"\n [max]=\"host.max().toJSON()\"\n [min]=\"host.min().toJSON()\"\n [value]=\"host.value()?.toJSON()\"\n (click.stop.zoneless)=\"(0)\"\n (input)=\"onInput($any($event.target).value)\"\n (pointerdown.stop.zoneless)=\"(0)\"\n />\n</ng-container>\n", styles: ["tui-textfield input[tuiInputDate]~.t-content input[type=date]{position:absolute;top:0;left:auto;right:0;bottom:0;inline-size:2.5rem;padding:0;opacity:0}tui-textfield input[tuiInputDate]~.t-content input[type=date]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;inline-size:100%;block-size:100%}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiTextfieldContent, selector: "ng-template[tuiTextfieldContent]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
205
205
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiInputDateComponent, decorators: [{
|
|
207
207
|
type: Component,
|
|
208
208
|
args: [{ standalone: true, selector: 'input[tuiInputDate][type="date"]', imports: [NgIf, TuiTextfieldContent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiWithNativePicker], host: {
|
|
209
209
|
ngSkipHydration: 'true',
|