@taiga-ui/kit 4.65.0 → 5.0.0-canary.2e92594
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/README.md +1 -1
- package/components/accordion/accordion.component.d.ts +13 -0
- package/components/accordion/accordion.d.ts +4 -4
- package/components/accordion/accordion.directive.d.ts +11 -10
- package/components/accordion/index.d.ts +1 -3
- package/components/action-bar/action-bar.component.d.ts +5 -7
- package/components/action-bar/index.d.ts +0 -2
- package/components/avatar/avatar-labeled.component.d.ts +3 -3
- package/components/avatar/avatar-outline.directive.d.ts +3 -3
- package/components/avatar/avatar-stack.component.d.ts +2 -2
- package/components/avatar/avatar.directive.d.ts +15 -0
- package/components/avatar/avatar.options.d.ts +1 -2
- package/components/avatar/index.d.ts +1 -1
- package/components/badge/badge.directive.d.ts +2 -2
- package/components/badge/badge.options.d.ts +1 -3
- package/components/badge-notification/badge-notification.component.d.ts +2 -3
- package/components/badge-notification/badge-notification.options.d.ts +1 -3
- package/components/badged-content/badged-content.directive.d.ts +2 -3
- package/components/block/block.directive.d.ts +4 -4
- package/components/block/block.options.d.ts +2 -4
- package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
- package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
- package/components/button-loading/button-loading.component.d.ts +5 -5
- package/components/calendar-month/calendar-month.component.d.ts +6 -6
- package/components/calendar-month/calendar-month.options.d.ts +1 -1
- package/components/calendar-range/calendar-range.component.d.ts +2 -5
- package/components/calendar-range/day-range-period.d.ts +2 -1
- package/components/carousel/carousel-autoscroll.directive.d.ts +1 -2
- package/components/carousel/carousel-scroll.directive.d.ts +1 -1
- package/components/carousel/carousel.component.d.ts +15 -18
- package/components/carousel/carousel.directive.d.ts +5 -4
- package/components/checkbox/checkbox.component.d.ts +7 -18
- package/components/checkbox/checkbox.options.d.ts +5 -9
- package/components/chip/chip.directive.d.ts +2 -4
- package/components/chip/chip.options.d.ts +1 -3
- package/components/combo-box/combo-box.d.ts +5 -0
- package/components/combo-box/combo-box.directive.d.ts +7 -9
- package/components/combo-box/index.d.ts +1 -0
- package/components/comment/comment.directive.d.ts +2 -2
- package/components/compass/compass.component.d.ts +2 -2
- package/components/confirm/confirm.component.d.ts +5 -4
- package/components/confirm/confirm.service.d.ts +2 -2
- package/{directives → components}/copy/copy.component.d.ts +4 -7
- package/{directives → components}/copy/copy.directive.d.ts +4 -6
- package/{directives → components}/copy/copy.options.d.ts +2 -2
- package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
- package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
- package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
- package/components/data-list-wrapper/index.d.ts +1 -1
- package/components/drawer/drawer.component.d.ts +3 -4
- package/components/files/file/file.component.d.ts +16 -29
- package/components/files/file/file.options.d.ts +2 -2
- package/components/files/files/files.component.d.ts +7 -10
- package/components/files/input-files/input-files.component.d.ts +2 -2
- package/components/files/input-files/input-files.content.d.ts +7 -8
- package/components/files/input-files/input-files.directive.d.ts +2 -2
- package/components/files/input-files/input-files.options.d.ts +1 -3
- package/components/filter/filter.component.d.ts +9 -12
- package/components/fullscreen/fullscreen.component.d.ts +11 -0
- package/components/fullscreen/index.d.ts +1 -0
- package/components/index.d.ts +2 -5
- package/components/input-chip/input-chip.component.d.ts +9 -8
- package/components/input-chip/input-chip.d.ts +5 -1
- package/components/input-chip/input-chip.directive.d.ts +7 -12
- package/components/input-chip/input-chip.options.d.ts +1 -1
- package/components/input-color/index.d.ts +1 -0
- package/components/input-color/input-color.component.d.ts +10 -13
- package/components/input-color/input-color.d.ts +5 -0
- package/components/input-color/input-color.options.d.ts +1 -1
- package/components/input-date/input-date.component.d.ts +2 -2
- package/components/input-date/input-date.d.ts +4 -1
- package/components/input-date/input-date.directive.d.ts +21 -22
- package/components/input-date/input-date.options.d.ts +3 -3
- package/components/input-date-multi/input-date-multi.d.ts +1 -2
- package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
- package/components/input-date-range/input-date-range.d.ts +4 -1
- package/components/input-date-range/input-date-range.directive.d.ts +9 -10
- package/components/input-date-range/input-date-range.options.d.ts +2 -2
- package/components/input-date-time/input-date-time.d.ts +4 -1
- package/components/input-date-time/input-date-time.directive.d.ts +14 -14
- package/components/input-date-time/input-date-time.options.d.ts +2 -2
- package/components/input-inline/input-inline.component.d.ts +3 -2
- package/components/input-month/input-month.component.d.ts +3 -5
- package/components/input-month/input-month.d.ts +4 -1
- package/components/input-month/input-month.directive.d.ts +6 -5
- package/components/input-month-range/input-month-range.d.ts +4 -1
- package/components/input-month-range/input-month-range.directive.d.ts +6 -5
- package/components/input-number/index.d.ts +3 -0
- package/components/input-number/input-number.d.ts +7 -2
- package/components/input-number/input-number.directive.d.ts +11 -28
- package/components/input-number/input-number.options.d.ts +5 -8
- package/components/input-number/number-mask.directive.d.ts +42 -0
- package/components/input-number/quantum.directive.d.ts +11 -9
- package/components/input-number/step/input-number-step.component.d.ts +11 -10
- package/components/input-number/transformers/bigint.value-transformer.d.ts +11 -0
- package/components/input-number/transformers/number.value-transformer.d.ts +11 -0
- package/components/input-phone/index.d.ts +1 -0
- package/components/input-phone/input-phone.d.ts +5 -0
- package/components/input-phone/input-phone.directive.d.ts +12 -14
- package/components/input-phone/input-phone.options.d.ts +1 -1
- package/components/input-phone-international/index.d.ts +1 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +28 -36
- package/components/input-phone-international/input-phone-international.d.ts +5 -0
- package/components/input-phone-international/input-phone-international.options.d.ts +2 -3
- package/components/input-pin/index.d.ts +1 -0
- package/components/input-pin/input-pin.component.d.ts +6 -7
- package/components/input-pin/input-pin.d.ts +5 -0
- package/components/input-range/index.d.ts +0 -1
- package/components/input-range/input-range.component.d.ts +24 -61
- package/components/input-slider/input-slider.d.ts +4 -1
- package/components/input-slider/input-slider.directive.d.ts +5 -5
- package/components/input-time/input-time.component.d.ts +1 -3
- package/components/input-time/input-time.d.ts +4 -1
- package/components/input-time/input-time.directive.d.ts +9 -11
- package/components/input-time/input-time.options.d.ts +1 -1
- package/components/input-year/input-year.d.ts +4 -1
- package/components/input-year/input-year.directive.d.ts +8 -10
- package/components/input-year/input-year.options.d.ts +2 -2
- package/components/items-with-more/items-with-more.component.d.ts +6 -6
- package/components/items-with-more/items-with-more.directive.d.ts +6 -6
- package/components/like/like.component.d.ts +4 -11
- package/components/like/like.options.d.ts +4 -5
- package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
- package/components/line-clamp/line-clamp.component.d.ts +8 -10
- package/components/line-clamp/line-clamp.options.d.ts +1 -3
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
- package/components/multi-select/multi-select-native/multi-select-native.component.d.ts +5 -4
- package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
- package/components/notification-middle/notification-middle.component.d.ts +2 -2
- package/components/notification-middle/notification-middle.directive.d.ts +4 -3
- package/components/notification-middle/notification-middle.service.d.ts +7 -3
- package/components/pager/pager.component.d.ts +12 -12
- package/components/pagination/index.d.ts +1 -0
- package/components/pagination/pagination.component.d.ts +25 -55
- package/components/pagination/pagination.options.d.ts +7 -0
- package/components/pin/pin.directive.d.ts +2 -2
- package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
- package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
- package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
- package/components/preview/index.d.ts +1 -0
- package/components/preview/pagination/preview-pagination.component.d.ts +6 -10
- package/components/preview/preview.component.d.ts +6 -6
- package/components/preview/preview.d.ts +2 -1
- package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +1 -3
- package/components/preview/zoom/preview-zoom.component.d.ts +11 -18
- package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
- package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
- package/components/progress/progress-bar/progress-color-segments.directive.d.ts +2 -3
- package/components/progress/progress-circle/progress-circle.component.d.ts +7 -11
- package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
- package/components/progress/progress.options.d.ts +1 -3
- package/components/pulse/pulse.component.d.ts +2 -2
- package/components/push/push-alert.component.d.ts +4 -3
- package/components/push/push.component.d.ts +7 -8
- package/components/push/push.directive.d.ts +4 -6
- package/components/push/push.options.d.ts +5 -8
- package/components/push/push.service.d.ts +6 -2
- package/components/radio/radio.component.d.ts +8 -9
- package/components/radio/radio.directive.d.ts +2 -2
- package/components/radio/radio.options.d.ts +2 -5
- package/components/radio-list/radio-list.component.d.ts +11 -9
- package/components/range/range-change.directive.d.ts +1 -2
- package/components/range/range.component.d.ts +16 -25
- package/components/rating/rating.component.d.ts +5 -5
- package/components/rating/rating.options.d.ts +1 -3
- package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
- package/components/segmented/segmented.component.d.ts +8 -12
- package/components/segmented/segmented.directive.d.ts +6 -7
- package/components/select/native-select/native-select.component.d.ts +6 -9
- package/components/select/select.d.ts +4 -1
- package/components/select/select.directive.d.ts +4 -3
- package/components/slider/helpers/key-steps.d.ts +1 -2
- package/components/slider/helpers/slider-key-steps.directive.d.ts +19 -25
- package/components/slider/helpers/slider-readonly.directive.d.ts +2 -4
- package/components/slider/helpers/slider-thumb-label.component.d.ts +2 -4
- package/components/slider/slider.component.d.ts +4 -7
- package/components/slider/slider.options.d.ts +1 -6
- package/components/status/status.directive.d.ts +2 -2
- package/components/stepper/step.component.d.ts +14 -9
- package/components/stepper/stepper.component.d.ts +5 -12
- package/components/switch/switch.component.d.ts +8 -19
- package/components/switch/switch.options.d.ts +4 -8
- package/components/tabs/tabs-horizontal.directive.d.ts +4 -5
- package/components/tabs/tabs-vertical.directive.d.ts +2 -2
- package/components/tabs/tabs-with-more.component.d.ts +13 -17
- package/components/tabs/tabs.directive.d.ts +5 -7
- package/components/tabs/tabs.options.d.ts +1 -6
- package/components/textarea/index.d.ts +2 -1
- package/components/textarea/textarea.component.d.ts +10 -11
- package/components/textarea/textarea.d.ts +6 -0
- package/components/textarea/textarea.directive.d.ts +13 -0
- package/components/textarea/textarea.options.d.ts +1 -1
- package/components/tiles/tile-handle.directive.d.ts +2 -1
- package/components/tiles/tile.component.d.ts +7 -10
- package/components/tiles/tile.service.d.ts +1 -1
- package/components/tiles/tiles.component.d.ts +4 -7
- package/components/toast/toast.component.d.ts +5 -4
- package/components/toast/toast.options.d.ts +9 -7
- package/components/toast/toast.service.d.ts +10 -9
- package/components/tree/components/tree/tree.component.d.ts +7 -7
- package/components/tree/components/tree-item/tree-item.component.d.ts +2 -2
- package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -7
- package/components/tree/directives/tree-children.directive.d.ts +2 -2
- package/components/tree/directives/tree-controller.directive.d.ts +4 -5
- package/components/tree/directives/tree-item-controller.directive.d.ts +2 -2
- package/components/tree/directives/tree-node.directive.d.ts +5 -4
- package/components/tree/misc/tree.constants.d.ts +0 -3
- package/components/tree/misc/tree.tokens.d.ts +1 -6
- package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
- package/directives/appearance-proxy/index.d.ts +1 -0
- package/directives/button-select/button-select.directive.d.ts +2 -3
- package/directives/chevron/chevron.directive.d.ts +2 -3
- package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
- package/directives/fade/fade.directive.d.ts +6 -6
- package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
- package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
- package/directives/highlight/highlight.directive.d.ts +5 -7
- package/directives/index.d.ts +1 -4
- package/directives/password/password.directive.d.ts +1 -1
- package/directives/password/password.options.d.ts +1 -1
- package/directives/present/present.directive.d.ts +2 -4
- package/directives/sensitive/sensitive.directive.d.ts +2 -2
- package/directives/shimmer/shimmer.directive.d.ts +3 -3
- package/directives/skeleton/skeleton.directive.d.ts +3 -3
- package/directives/tooltip/tooltip.directive.d.ts +3 -3
- package/directives/tooltip/tooltip.options.d.ts +1 -4
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
- package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -146
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +84 -113
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +11 -18
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge.mjs +18 -28
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs +10 -13
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +20 -42
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs +19 -28
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +14 -39
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +32 -42
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-carousel.mjs +74 -129
- package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +18 -76
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +26 -35
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs +45 -50
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
- package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +9 -11
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -19
- package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-copy.mjs +106 -0
- package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -79
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-drawer.mjs +11 -32
- package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +120 -257
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-filter.mjs +21 -43
- package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +44 -0
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs +67 -82
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-color.mjs +35 -39
- package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +36 -53
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +37 -37
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +42 -60
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date.mjs +62 -77
- package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs +10 -13
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +30 -28
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month.mjs +45 -54
- package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-number.mjs +270 -216
- package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +129 -164
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs +44 -51
- package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs +26 -24
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-range.mjs +54 -103
- package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +42 -41
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-time.mjs +67 -74
- package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-year.mjs +33 -40
- package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +57 -79
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
- package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-message.mjs +10 -13
- package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs +65 -80
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +40 -36
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pager.mjs +34 -48
- package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +78 -153
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +100 -165
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +70 -112
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
- package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-push.mjs +55 -75
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +23 -36
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
- package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +43 -97
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +13 -9
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +40 -61
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-select.mjs +70 -70
- package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +97 -128
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
- package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +63 -90
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +22 -64
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +110 -182
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-textarea.mjs +64 -85
- package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +62 -107
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-toast.mjs +61 -68
- package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tree.mjs +95 -146
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components.mjs +2 -5
- package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
- package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs +10 -18
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -16
- package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +35 -47
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +20 -33
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs +19 -24
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-password.mjs +14 -16
- package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -18
- package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +16 -21
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
- package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +19 -24
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +10 -14
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -15
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives.mjs +1 -4
- package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
- package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +22 -36
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
- package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +23 -27
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
- package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
- package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +4 -126
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-utils.mjs +4 -16
- package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
- package/package.json +141 -370
- package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
- package/pipes/auto-color/index.d.ts +1 -0
- package/pipes/filter-by-input/filter-by-input.pipe.d.ts +5 -2
- package/pipes/flag/flag.pipe.d.ts +13 -0
- package/pipes/flag/index.d.ts +1 -0
- package/pipes/hide-selected/hide-selected.pipe.d.ts +2 -0
- package/pipes/index.d.ts +3 -1
- package/pipes/initials/index.d.ts +1 -0
- package/pipes/initials/initials.pipe.d.ts +7 -0
- package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
- package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
- package/styles/components/avatar.less +188 -0
- package/styles/components/badge.less +8 -24
- package/styles/components/block.less +6 -6
- package/styles/components/checkbox.less +15 -15
- package/styles/components/chip.less +7 -11
- package/styles/components/comment.less +15 -17
- package/styles/components/like.less +14 -16
- package/styles/components/message.less +1 -1
- package/styles/components/pin.less +6 -10
- package/styles/components/switch.less +12 -9
- package/styles/components/toast.less +2 -3
- package/tokens/i18n.d.ts +26 -26
- package/tokens/index.d.ts +0 -8
- package/utils/index.d.ts +0 -2
- package/utils/maskito.binding.d.ts +1 -1
- package/components/accordion/accordion-item-content.directive.d.ts +0 -6
- package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
- package/components/accordion/accordion-item.component.d.ts +0 -25
- package/components/action-bar/action-bar.d.ts +0 -3
- package/components/action-bar/action-bar.directive.d.ts +0 -6
- package/components/avatar/avatar.component.d.ts +0 -15
- package/components/elastic-container/elastic-container.component.d.ts +0 -8
- package/components/elastic-container/elastic-container.directive.d.ts +0 -7
- package/components/elastic-container/index.d.ts +0 -2
- package/components/floating-container/floating-container.directive.d.ts +0 -7
- package/components/floating-container/index.d.ts +0 -1
- package/components/input-password/index.d.ts +0 -2
- package/components/input-password/input-password.component.d.ts +0 -16
- package/components/input-password/input-password.options.d.ts +0 -24
- package/components/input-range/input-range.d.ts +0 -3
- package/components/pdf-viewer/index.d.ts +0 -4
- package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
- package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
- package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
- package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
- package/components/slides/index.d.ts +0 -1
- package/components/slides/slides.directive.d.ts +0 -11
- package/components/textarea/textarea-limit.directive.d.ts +0 -27
- package/directives/button-close/button-close.directive.d.ts +0 -5
- package/directives/button-close/index.d.ts +0 -1
- package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
- package/directives/icon-badge/index.d.ts +0 -1
- package/directives/lazy-loading/index.d.ts +0 -2
- package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
- package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
- 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 -8
- 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 -30
- 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 -74
- 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 -143
- 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 -197
- 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 -69
- 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 -185
- 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 -109
- 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 -90
- 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 -51
- 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 -57
- 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 -84
- 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 -58
- 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 -76
- 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/toast/index.mjs +0 -6
- package/esm2022/components/toast/taiga-ui-kit-components-toast.mjs +0 -5
- package/esm2022/components/toast/toast.component.mjs +0 -50
- package/esm2022/components/toast/toast.directive.mjs +0 -68
- package/esm2022/components/toast/toast.mjs +0 -4
- package/esm2022/components/toast/toast.options.mjs +0 -8
- package/esm2022/components/toast/toast.service.mjs +0 -54
- 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 -57
- 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 -54
- 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
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -78
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -43
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
- package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -57
- package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs +0 -39
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -126
- package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
- package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -82
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
- package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
- package/pipes/field-error/field-error-pipe.d.ts +0 -29
- package/pipes/field-error/index.d.ts +0 -2
- package/tokens/calendar-date-stream.d.ts +0 -10
- package/tokens/date-inputs-value-transformers.d.ts +0 -19
- package/tokens/input-date-options.d.ts +0 -15
- package/tokens/items-handlers.d.ts +0 -26
- package/tokens/mobile-calendar.d.ts +0 -6
- package/tokens/month-formatter.d.ts +0 -5
- package/tokens/validation-errors.d.ts +0 -5
- package/utils/phone.d.ts +0 -3
- package/utils/toggle-day.d.ts +0 -2
- /package/{directives → components}/copy/copy.d.ts +0 -0
- /package/{directives → components}/copy/index.d.ts +0 -0
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { TuiLabel } from '@taiga-ui/core/components/label';
|
|
2
|
-
import { NgIf } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
2
|
+
import { viewChildren, ElementRef, viewChild, inject, computed, input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
5
3
|
import * as i1 from '@angular/forms';
|
|
6
4
|
import { FormsModule } from '@angular/forms';
|
|
5
|
+
import { WA_IS_MOBILE } from '@ng-web-apis/platform';
|
|
7
6
|
import { TuiControl, tuiAsControl } from '@taiga-ui/cdk/classes';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
7
|
+
import { CHAR_NO_BREAK_SPACE, CHAR_EN_DASH } from '@taiga-ui/cdk/constants';
|
|
8
|
+
import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
|
|
9
|
+
import { tuiIsFocused } from '@taiga-ui/cdk/utils/focus';
|
|
10
|
+
import { tuiIsString, tuiIsNumber } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
11
|
+
import * as i4 from '@taiga-ui/core/components/textfield';
|
|
12
12
|
import { TUI_TEXTFIELD_OPTIONS, TuiTextfield } from '@taiga-ui/core/components/textfield';
|
|
13
13
|
import * as i2 from '@taiga-ui/kit/components/input-number';
|
|
14
|
-
import {
|
|
14
|
+
import { TuiInputNumberDirective, TUI_INPUT_NUMBER_OPTIONS, TuiQuantumValueTransformerBase, TuiInputNumber } from '@taiga-ui/kit/components/input-number';
|
|
15
15
|
import { TuiRange } from '@taiga-ui/kit/components/range';
|
|
16
16
|
import { tuiSliderOptionsProvider } from '@taiga-ui/kit/components/slider';
|
|
17
17
|
import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
18
|
+
import * as i3 from '@taiga-ui/core/components/label';
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
const transform = (x) => x ?? ['', ''];
|
|
21
|
+
class TuiInputRange extends TuiControl {
|
|
20
22
|
constructor() {
|
|
21
23
|
super(...arguments);
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
24
|
+
this.inputs = viewChildren(TuiInputNumberDirective, { read: ElementRef });
|
|
25
|
+
this.range = viewChild(TuiRange);
|
|
26
|
+
this.options = inject(TUI_INPUT_NUMBER_OPTIONS);
|
|
27
|
+
this.isMobile = inject(WA_IS_MOBILE);
|
|
25
28
|
this.quantumTransformer = computed(() => new TuiQuantumValueTransformerBase(this.quantum()));
|
|
26
29
|
this.size = inject(TUI_TEXTFIELD_OPTIONS).size;
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.content = signal(['', '']);
|
|
30
|
+
this.start = this.value()[0];
|
|
31
|
+
this.end = this.value()[1];
|
|
32
|
+
this.side = 'start';
|
|
31
33
|
this.contentStart = computed(() => {
|
|
32
34
|
const [start, end] = this.content().map((x, i) => {
|
|
33
35
|
const value = this.value()[i];
|
|
@@ -39,58 +41,49 @@ class TuiInputRangeComponent extends TuiControl {
|
|
|
39
41
|
return `${start}${CHAR_NO_BREAK_SPACE}${CHAR_EN_DASH}${CHAR_NO_BREAK_SPACE}${end}`;
|
|
40
42
|
});
|
|
41
43
|
this.contentEnd = computed(() => this.contentStart() === this.content()[0] ? this.content()[1] : '');
|
|
42
|
-
this.min = 0;
|
|
43
|
-
this.max = 100;
|
|
44
|
-
this.step = 1;
|
|
45
|
-
this.segments = 1;
|
|
46
|
-
this.keySteps =
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
set contentSetter(x) {
|
|
56
|
-
this.content.set(x);
|
|
44
|
+
this.min = input(0);
|
|
45
|
+
this.max = input(100);
|
|
46
|
+
this.step = input(1);
|
|
47
|
+
this.segments = input(1);
|
|
48
|
+
this.keySteps = input();
|
|
49
|
+
this.quantum = input(0);
|
|
50
|
+
this.prefix = input([this.options.prefix, this.options.prefix], {
|
|
51
|
+
transform,
|
|
52
|
+
});
|
|
53
|
+
this.postfix = input([this.options.postfix, this.options.postfix], {
|
|
54
|
+
transform,
|
|
55
|
+
});
|
|
56
|
+
this.content = input(['', '']);
|
|
57
57
|
}
|
|
58
58
|
writeValue(value) {
|
|
59
59
|
super.writeValue(value);
|
|
60
60
|
this.setTextfieldValues(this.value());
|
|
61
61
|
}
|
|
62
|
-
ngAfterViewInit() {
|
|
63
|
-
if (this.range) {
|
|
64
|
-
this.range.legacyMode = false; // TODO(v5): remove backward compatibility
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
62
|
get contentStartHidden() {
|
|
68
|
-
return this.interactive() &&
|
|
63
|
+
return this.interactive() && tuiIsFocused(this.textfieldStart);
|
|
69
64
|
}
|
|
70
65
|
get contentEndHidden() {
|
|
71
|
-
return (!this.content()[1] ||
|
|
72
|
-
(this.interactive() && tuiIsNativeFocused(this.textfieldEnd)));
|
|
66
|
+
return (!this.content()[1] || (this.interactive() && tuiIsFocused(this.textfieldEnd)));
|
|
73
67
|
}
|
|
74
68
|
takeStep(event, coefficients) {
|
|
75
|
-
if (!this.interactive() || !this.range) {
|
|
69
|
+
if (!this.interactive() || !this.range()) {
|
|
76
70
|
return;
|
|
77
71
|
}
|
|
78
72
|
event.preventDefault();
|
|
79
73
|
const [start, end] = this.value();
|
|
80
|
-
const newValue = this.valueGuard(this.range.takeStep(coefficients));
|
|
74
|
+
const newValue = this.valueGuard(this.range().takeStep(coefficients));
|
|
81
75
|
if (newValue[0] !== start || newValue[1] !== end) {
|
|
82
76
|
this.onExternalValueUpdate(newValue);
|
|
83
77
|
}
|
|
84
78
|
}
|
|
85
79
|
onInput([start, end]) {
|
|
86
|
-
|
|
87
|
-
this.setValue([start ?? prevStart, end ?? prevEnd]);
|
|
80
|
+
this.setValue([start ?? this.value()[0], end ?? this.value()[1]]);
|
|
88
81
|
}
|
|
89
82
|
onExternalValueUpdate(value) {
|
|
90
83
|
this.setValue(value);
|
|
91
84
|
this.setTextfieldValues(this.value());
|
|
92
85
|
setTimeout((end = Number.MAX_SAFE_INTEGER) => {
|
|
93
|
-
if (
|
|
86
|
+
if (tuiIsFocused(this.activeTextfield)) {
|
|
94
87
|
this.activeTextfield?.setSelectionRange(end, end);
|
|
95
88
|
}
|
|
96
89
|
});
|
|
@@ -100,22 +93,18 @@ class TuiInputRangeComponent extends TuiControl {
|
|
|
100
93
|
this.activeTextfield?.focus();
|
|
101
94
|
}
|
|
102
95
|
}
|
|
103
|
-
onActiveThumbChange(activeThumb) {
|
|
104
|
-
// TODO(v5): remove backward compatibility
|
|
105
|
-
this.lastActiveSide = activeThumb === 'left' ? 'start' : 'end';
|
|
106
|
-
}
|
|
107
96
|
setTextfieldValues([start, end]) {
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
97
|
+
this.start = start;
|
|
98
|
+
this.end = end;
|
|
110
99
|
}
|
|
111
100
|
get textfieldStart() {
|
|
112
|
-
return this.
|
|
101
|
+
return this.inputs()[0]?.nativeElement || null;
|
|
113
102
|
}
|
|
114
103
|
get textfieldEnd() {
|
|
115
|
-
return this.
|
|
104
|
+
return this.inputs()[this.inputs().length - 1]?.nativeElement || null;
|
|
116
105
|
}
|
|
117
106
|
get activeTextfield() {
|
|
118
|
-
return this.
|
|
107
|
+
return this.side === 'start' ? this.textfieldStart : this.textfieldEnd;
|
|
119
108
|
}
|
|
120
109
|
setValue(value) {
|
|
121
110
|
this.onChange(this.valueGuard(value));
|
|
@@ -126,69 +115,31 @@ class TuiInputRangeComponent extends TuiControl {
|
|
|
126
115
|
return [Math.min(start, prevEnd), Math.max(end, prevStart)];
|
|
127
116
|
}
|
|
128
117
|
isPrimitive(x) {
|
|
129
|
-
return
|
|
118
|
+
return !x || tuiIsString(x) || tuiIsNumber(x);
|
|
130
119
|
}
|
|
131
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
132
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
133
|
-
tuiAsControl(
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputRange, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
121
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiInputRange, isStandalone: true, selector: "tui-input-range", inputs: { min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, segments: { classPropertyName: "segments", publicName: "segments", isSignal: true, isRequired: false, transformFunction: null }, keySteps: { classPropertyName: "keySteps", publicName: "keySteps", isSignal: true, isRequired: false, transformFunction: null }, quantum: { classPropertyName: "quantum", publicName: "quantum", isSignal: true, isRequired: false, transformFunction: null }, prefix: { classPropertyName: "prefix", publicName: "prefix", isSignal: true, isRequired: false, transformFunction: null }, postfix: { classPropertyName: "postfix", publicName: "postfix", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-size": "size()", "style.--t-icon-lock": "contentEnd() ? \"none\" : null" } }, providers: [
|
|
122
|
+
tuiAsControl(TuiInputRange),
|
|
134
123
|
tuiSliderOptionsProvider({ trackColor: 'transparent' }),
|
|
135
124
|
tuiFallbackValueProvider([0, 0]),
|
|
136
|
-
], viewQueries: [{ propertyName: "
|
|
125
|
+
], viewQueries: [{ propertyName: "inputs", predicate: TuiInputNumberDirective, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "range", first: true, predicate: TuiRange, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <label tuiLabel>\n <ng-content />\n </label>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min()\"\n [postfix]=\"postfix()[0]\"\n [prefix]=\"prefix()[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"start\"\n (blur)=\"start = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n class=\"t-end\"\n [class._hidden]=\"!contentEndHidden || !this.interactive()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max()\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix()[1]\"\n [prefix]=\"prefix()[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"end\"\n (blur)=\"end = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n @if (!contentEndHidden && contentEnd()) {\n <div class=\"t-content-end\">\n <ng-container *polymorpheusOutlet=\"contentEnd() as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n }\n\n @if (interactive()) {\n <tui-range\n [focusable]=\"false\"\n [keySteps]=\"keySteps()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [ngModel]=\"value()\"\n [segments]=\"segments()\"\n [step]=\"step()\"\n (activeThumbChange)=\"side = $event\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n (pointerdown.prevent.stop)=\"focusToTextfield()\"\n />\n }\n</tui-textfield>\n", styles: [":host{position:relative;display:block}:host-context([tuiTable]){block-size:100%}.t-end{inset-inline:auto 0;inline-size:50%;text-align:end;padding-inline-start:0}.t-content-end{color:var(--tui-text-primary)}tui-textfield._with-label .t-content-end{padding-block-start:calc(var(--t-height) / 3)}._hidden._hidden{opacity:0}tui-range{position:absolute;z-index:1;inset:100% var(--t-padding) auto;margin:calc(-1 * var(--tui-thickness)) 0 0;pointer-events:auto}tui-textfield::ng-deep [tuiButtonX]{display:none!important}tui-textfield::ng-deep .t-content{margin-inline-end:0}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.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: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i2.TuiInputNumberDirective, selector: "input[tuiInputNumber]" }, { kind: "directive", type: i3.TuiLabel, selector: "label[tuiLabel]" }, { kind: "component", type: i4.TuiTextfieldComponent, selector: "tui-textfield:not([multi])", inputs: ["content", "filler"] }, { kind: "component", type: TuiRange, selector: "tui-range", inputs: ["min", "max", "step", "size", "segments", "keySteps", "focusable", "margin", "limit"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
126
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputRange, decorators: [{
|
|
139
128
|
type: Component,
|
|
140
|
-
args: [{
|
|
141
|
-
|
|
142
|
-
NgIf,
|
|
143
|
-
PolymorpheusOutlet,
|
|
144
|
-
TuiInputNumber,
|
|
145
|
-
TuiRange,
|
|
146
|
-
TuiTextfield,
|
|
147
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
148
|
-
tuiAsControl(TuiInputRangeComponent),
|
|
129
|
+
args: [{ selector: 'tui-input-range', imports: [FormsModule, PolymorpheusOutlet, TuiInputNumber, TuiRange, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
130
|
+
tuiAsControl(TuiInputRange),
|
|
149
131
|
tuiSliderOptionsProvider({ trackColor: 'transparent' }),
|
|
150
132
|
tuiFallbackValueProvider([0, 0]),
|
|
151
133
|
], host: {
|
|
152
|
-
new: '',
|
|
153
|
-
// TODO: use css :host:has(tui-textfield[data-size]) after browser bump
|
|
154
134
|
'[attr.data-size]': 'size()',
|
|
135
|
+
// TODO: Delete this line and put `tui-input-range:has(.t-content-end) {--t-icon-lock: none}` to proprietary styles
|
|
155
136
|
'[style.--t-icon-lock]': 'contentEnd() ? "none" : null',
|
|
156
|
-
}, template: "<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <
|
|
157
|
-
}]
|
|
158
|
-
type: ViewChildren,
|
|
159
|
-
args: [TuiInputNumberDirective, { read: ElementRef }]
|
|
160
|
-
}], range: [{
|
|
161
|
-
type: ViewChild,
|
|
162
|
-
args: [TuiRange]
|
|
163
|
-
}], min: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], max: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], step: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], segments: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}], keySteps: [{
|
|
172
|
-
type: Input
|
|
173
|
-
}], prefix: [{
|
|
174
|
-
type: Input,
|
|
175
|
-
args: [{ transform: (x) => x ?? ['', ''] }]
|
|
176
|
-
}], postfix: [{
|
|
177
|
-
type: Input,
|
|
178
|
-
args: [{ transform: (x) => x ?? ['', ''] }]
|
|
179
|
-
}], quantumSetter: [{
|
|
180
|
-
type: Input,
|
|
181
|
-
args: ['quantum']
|
|
182
|
-
}], contentSetter: [{
|
|
183
|
-
type: Input,
|
|
184
|
-
args: ['content']
|
|
185
|
-
}] } });
|
|
186
|
-
|
|
187
|
-
const TuiInputRange = [TuiInputRangeComponent, TuiLabel];
|
|
137
|
+
}, template: "<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <label tuiLabel>\n <ng-content />\n </label>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min()\"\n [postfix]=\"postfix()[0]\"\n [prefix]=\"prefix()[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"start\"\n (blur)=\"start = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n class=\"t-end\"\n [class._hidden]=\"!contentEndHidden || !this.interactive()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max()\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix()[1]\"\n [prefix]=\"prefix()[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"end\"\n (blur)=\"end = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n @if (!contentEndHidden && contentEnd()) {\n <div class=\"t-content-end\">\n <ng-container *polymorpheusOutlet=\"contentEnd() as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n }\n\n @if (interactive()) {\n <tui-range\n [focusable]=\"false\"\n [keySteps]=\"keySteps()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [ngModel]=\"value()\"\n [segments]=\"segments()\"\n [step]=\"step()\"\n (activeThumbChange)=\"side = $event\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n (pointerdown.prevent.stop)=\"focusToTextfield()\"\n />\n }\n</tui-textfield>\n", styles: [":host{position:relative;display:block}:host-context([tuiTable]){block-size:100%}.t-end{inset-inline:auto 0;inline-size:50%;text-align:end;padding-inline-start:0}.t-content-end{color:var(--tui-text-primary)}tui-textfield._with-label .t-content-end{padding-block-start:calc(var(--t-height) / 3)}._hidden._hidden{opacity:0}tui-range{position:absolute;z-index:1;inset:100% var(--t-padding) auto;margin:calc(-1 * var(--tui-thickness)) 0 0;pointer-events:auto}tui-textfield::ng-deep [tuiButtonX]{display:none!important}tui-textfield::ng-deep .t-content{margin-inline-end:0}\n"] }]
|
|
138
|
+
}] });
|
|
188
139
|
|
|
189
140
|
/**
|
|
190
141
|
* Generated bundle index. Do not edit.
|
|
191
142
|
*/
|
|
192
143
|
|
|
193
|
-
export { TuiInputRange
|
|
144
|
+
export { TuiInputRange };
|
|
194
145
|
//# sourceMappingURL=taiga-ui-kit-components-input-range.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-range.mjs","sources":["../../../projects/kit/components/input-range/input-range.component.ts","../../../projects/kit/components/input-range/input-range.template.html","../../../projects/kit/components/input-range/input-range.ts","../../../projects/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {NgIf} from '@angular/common';\nimport {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n Input,\n type QueryList,\n signal,\n ViewChild,\n ViewChildren,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE, EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TUI_IS_MOBILE, tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus';\nimport {TUI_TEXTFIELD_OPTIONS, TuiTextfield} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumber,\n TuiInputNumberDirective,\n TuiQuantumValueTransformerBase,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiRange} from '@taiga-ui/kit/components/range';\nimport {\n type TuiKeySteps,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {\n type PolymorpheusContent,\n PolymorpheusOutlet,\n type PolymorpheusPrimitive,\n} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-input-range',\n imports: [\n FormsModule,\n NgIf,\n PolymorpheusOutlet,\n TuiInputNumber,\n TuiRange,\n TuiTextfield,\n ],\n templateUrl: './input-range.template.html',\n styleUrls: ['./input-range.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputRangeComponent),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n tuiFallbackValueProvider([0, 0]),\n ],\n host: {\n new: '', // TODO(v5): remove after deletion of legacy control\n // TODO: use css :host:has(tui-textfield[data-size]) after browser bump\n '[attr.data-size]': 'size()',\n '[style.--t-icon-lock]': 'contentEnd() ? \"none\" : null',\n },\n})\nexport class TuiInputRangeComponent\n extends TuiControl<readonly [number, number]>\n implements AfterViewInit\n{\n @ViewChildren(TuiInputNumberDirective, {read: ElementRef})\n private readonly inputNumberRefs: QueryList<ElementRef<HTMLInputElement>> =\n EMPTY_QUERY;\n\n @ViewChild(TuiRange)\n private readonly range?: TuiRange;\n\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly quantum = signal(0);\n private readonly quantumTransformer = computed(\n () => new TuiQuantumValueTransformerBase(this.quantum()),\n );\n\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected textfieldValueStart = this.value()[0];\n protected textfieldValueEnd = this.value()[1];\n protected lastActiveSide: 'end' | 'start' = 'start';\n protected readonly content = signal<\n readonly [\n PolymorpheusContent<TuiContext<number>>,\n PolymorpheusContent<TuiContext<number>>,\n ]\n >(['', '']);\n\n protected readonly contentStart = computed(() => {\n const [start, end] = this.content().map((x, i) => {\n const value = this.value()[i]!;\n\n return typeof x === 'function' ? x({$implicit: value}) : x || value;\n });\n\n if (this.interactive() || !this.isPrimitive(start) || !this.isPrimitive(end)) {\n return this.content()[0];\n }\n\n return `${start}${CHAR_NO_BREAK_SPACE}${CHAR_EN_DASH}${CHAR_NO_BREAK_SPACE}${end}`;\n });\n\n protected readonly contentEnd = computed(() =>\n this.contentStart() === this.content()[0] ? this.content()[1] : '',\n );\n\n @Input()\n public min = 0;\n\n @Input()\n public max = 100;\n\n @Input()\n public step = 1;\n\n @Input()\n public segments = 1;\n\n @Input()\n public keySteps: TuiKeySteps | null = null;\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public prefix: readonly [string, string] = ['', ''];\n\n @Input({transform: (x: readonly [string, string] | null) => x ?? ['', '']})\n public postfix: readonly [string, string] = ['', ''];\n\n // TODO(v5): use signal inputs\n @Input('quantum')\n public set quantumSetter(x: number) {\n this.quantum.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('content')\n public set contentSetter(\n x: readonly [\n PolymorpheusContent<TuiContext<number>>,\n PolymorpheusContent<TuiContext<number>>,\n ],\n ) {\n this.content.set(x);\n }\n\n public override writeValue(value: [number, number]): void {\n super.writeValue(value);\n this.setTextfieldValues(this.value());\n }\n\n public ngAfterViewInit(): void {\n if (this.range) {\n this.range.legacyMode = false; // TODO(v5): remove backward compatibility\n }\n }\n\n protected get contentStartHidden(): boolean {\n return this.interactive() && tuiIsNativeFocused(this.textfieldStart);\n }\n\n protected get contentEndHidden(): boolean {\n return (\n !this.content()[1] ||\n (this.interactive() && tuiIsNativeFocused(this.textfieldEnd))\n );\n }\n\n protected takeStep(\n event: Event | KeyboardEvent,\n coefficients: readonly [number, number],\n ): void {\n if (!this.interactive() || !this.range) {\n return;\n }\n\n event.preventDefault();\n\n const [start, end] = this.value();\n const newValue = this.valueGuard(this.range.takeStep(coefficients));\n\n if (newValue[0] !== start || newValue[1] !== end) {\n this.onExternalValueUpdate(newValue);\n }\n }\n\n protected onInput([start, end]: [number | null, number | null]): void {\n const [prevStart, prevEnd] = this.value();\n\n this.setValue([start ?? prevStart, end ?? prevEnd]);\n }\n\n protected onExternalValueUpdate(value: readonly [number, number]): void {\n this.setValue(value);\n this.setTextfieldValues(this.value());\n\n setTimeout((end = Number.MAX_SAFE_INTEGER) => {\n if (tuiIsNativeFocused(this.activeTextfield)) {\n this.activeTextfield?.setSelectionRange(end, end);\n }\n });\n }\n\n protected focusToTextfield(): void {\n if (!this.isMobile) {\n this.activeTextfield?.focus();\n }\n }\n\n protected onActiveThumbChange(activeThumb: 'left' | 'right'): void {\n // TODO(v5): remove backward compatibility\n this.lastActiveSide = activeThumb === 'left' ? 'start' : 'end';\n }\n\n protected setTextfieldValues([start, end]: readonly [number, number]): void {\n this.textfieldValueStart = start;\n this.textfieldValueEnd = end;\n }\n\n private get textfieldStart(): HTMLInputElement | null {\n return this.inputNumberRefs.first?.nativeElement || null;\n }\n\n private get textfieldEnd(): HTMLInputElement | null {\n return this.inputNumberRefs.last?.nativeElement || null;\n }\n\n private get activeTextfield(): HTMLInputElement | null {\n return this.lastActiveSide === 'start' ? this.textfieldStart : this.textfieldEnd;\n }\n\n private setValue(value: readonly [number, number]): void {\n this.onChange(this.valueGuard(value));\n }\n\n private valueGuard(value: readonly [number, number]): readonly [number, number] {\n const [prevStart, prevEnd] = this.value();\n const [start, end] = value.map(\n (x) => this.quantumTransformer().toControlValue(x) ?? x,\n ) as unknown as readonly [number, number];\n\n return [Math.min(start, prevEnd), Math.max(end, prevStart)];\n }\n\n private isPrimitive(x: PolymorpheusContent): x is PolymorpheusPrimitive {\n return Object(x) !== x;\n }\n}\n","<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <ng-container ngProjectAs=\"label\">\n <ng-content select=\"label\" />\n </ng-container>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min\"\n [postfix]=\"postfix[0]\"\n [prefix]=\"prefix[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueStart\"\n (blur)=\"textfieldValueStart = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n tuiTextfieldAppearance=\"none\"\n class=\"t-end\"\n [class._hidden]=\"!contentEndHidden || !this.interactive()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix[1]\"\n [prefix]=\"prefix[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"textfieldValueEnd\"\n (blur)=\"textfieldValueEnd = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n <div\n class=\"t-content-end\"\n [class._hidden]=\"contentEndHidden\"\n >\n <ng-container *polymorpheusOutlet=\"contentEnd() as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n</tui-textfield>\n\n<tui-range\n *ngIf=\"interactive()\"\n [focusable]=\"false\"\n [keySteps]=\"keySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()\"\n [segments]=\"segments\"\n [step]=\"step\"\n (activeThumbChange)=\"onActiveThumbChange($event)\"\n (mousedown.prevent)=\"focusToTextfield()\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n/>\n","import {TuiLabel} from '@taiga-ui/core/components/label';\n\nimport {TuiInputRangeComponent} from './input-range.component';\n\nexport const TuiInputRange = [TuiInputRangeComponent, TuiLabel] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAqCA,MA0Ba,sBACT,SAAQ,UAAqC,CAAA;AA3BjD,IAAA,WAAA,GAAA;;QA+BqB,IAAe,CAAA,eAAA,GAC5B,WAAW,CAAC;AAKC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACjC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACpB,QAAA,IAAA,CAAA,kBAAkB,GAAG,QAAQ,CAC1C,MAAM,IAAI,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAC3D,CAAC;AAEiB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC;QACnD,IAAmB,CAAA,mBAAA,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QACtC,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;QACpC,IAAc,CAAA,cAAA,GAAoB,OAAO,CAAC;QACjC,IAAO,CAAA,OAAA,GAAG,MAAM,CAKjC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAEO,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC5C,YAAA,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;gBAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAA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;MErIP,aAAa,GAAG,CAAC,sBAAsB,EAAE,QAAQ;;ACJ9D;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-range.mjs","sources":["../../../projects/kit/components/input-range/input-range.component.ts","../../../projects/kit/components/input-range/input-range.template.html","../../../projects/kit/components/input-range/taiga-ui-kit-components-input-range.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants';\nimport {tuiFallbackValueProvider} from '@taiga-ui/cdk/tokens';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiIsFocused} from '@taiga-ui/cdk/utils/focus';\nimport {tuiIsNumber, tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_TEXTFIELD_OPTIONS, TuiTextfield} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_INPUT_NUMBER_OPTIONS,\n TuiInputNumber,\n TuiInputNumberDirective,\n TuiQuantumValueTransformerBase,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiRange} from '@taiga-ui/kit/components/range';\nimport {\n type TuiKeySteps,\n tuiSliderOptionsProvider,\n} from '@taiga-ui/kit/components/slider';\nimport {\n type PolymorpheusContent,\n PolymorpheusOutlet,\n type PolymorpheusPrimitive,\n} from '@taiga-ui/polymorpheus';\n\nconst transform = (x?: readonly [string, string] | null): readonly [string, string] =>\n x ?? ['', ''];\n\n@Component({\n selector: 'tui-input-range',\n imports: [FormsModule, PolymorpheusOutlet, TuiInputNumber, TuiRange, TuiTextfield],\n templateUrl: './input-range.template.html',\n styleUrl: './input-range.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsControl(TuiInputRange),\n tuiSliderOptionsProvider({trackColor: 'transparent'}),\n tuiFallbackValueProvider([0, 0]),\n ],\n host: {\n '[attr.data-size]': 'size()',\n // TODO: Delete this line and put `tui-input-range:has(.t-content-end) {--t-icon-lock: none}` to proprietary styles\n '[style.--t-icon-lock]': 'contentEnd() ? \"none\" : null',\n },\n})\nexport class TuiInputRange extends TuiControl<readonly [number, number]> {\n private readonly inputs = viewChildren(TuiInputNumberDirective, {read: ElementRef});\n private readonly range = viewChild(TuiRange);\n private readonly options = inject(TUI_INPUT_NUMBER_OPTIONS);\n private readonly isMobile = inject(WA_IS_MOBILE);\n private readonly quantumTransformer = computed(\n () => new TuiQuantumValueTransformerBase(this.quantum()),\n );\n\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected start = this.value()[0];\n protected end = this.value()[1];\n protected side: 'end' | 'start' = 'start';\n protected readonly contentStart = computed(() => {\n const [start, end] = this.content().map((x, i) => {\n const value = this.value()[i]!;\n\n return typeof x === 'function' ? x({$implicit: value}) : x || value;\n });\n\n if (this.interactive() || !this.isPrimitive(start) || !this.isPrimitive(end)) {\n return this.content()[0];\n }\n\n return `${start}${CHAR_NO_BREAK_SPACE}${CHAR_EN_DASH}${CHAR_NO_BREAK_SPACE}${end}`;\n });\n\n protected readonly contentEnd = computed(() =>\n this.contentStart() === this.content()[0] ? this.content()[1] : '',\n );\n\n public readonly min = input(0);\n public readonly max = input(100);\n public readonly step = input(1);\n public readonly segments = input(1);\n public readonly keySteps = input<TuiKeySteps>();\n public readonly quantum = input(0);\n public readonly prefix = input([this.options.prefix, this.options.prefix], {\n transform,\n });\n\n public readonly postfix = input([this.options.postfix, this.options.postfix], {\n transform,\n });\n\n public content = input<\n readonly [\n PolymorpheusContent<TuiContext<number>>,\n PolymorpheusContent<TuiContext<number>>,\n ]\n >(['', '']);\n\n public override writeValue(value: [number, number]): void {\n super.writeValue(value);\n this.setTextfieldValues(this.value());\n }\n\n protected get contentStartHidden(): boolean {\n return this.interactive() && tuiIsFocused(this.textfieldStart);\n }\n\n protected get contentEndHidden(): boolean {\n return (\n !this.content()[1] || (this.interactive() && tuiIsFocused(this.textfieldEnd))\n );\n }\n\n protected takeStep(\n event: Event | KeyboardEvent,\n coefficients: readonly [number, number],\n ): void {\n if (!this.interactive() || !this.range()) {\n return;\n }\n\n event.preventDefault();\n\n const [start, end] = this.value();\n const newValue = this.valueGuard(this.range()!.takeStep(coefficients));\n\n if (newValue[0] !== start || newValue[1] !== end) {\n this.onExternalValueUpdate(newValue);\n }\n }\n\n protected onInput([start, end]: [number | null, number | null]): void {\n this.setValue([start ?? this.value()[0], end ?? this.value()[1]]);\n }\n\n protected onExternalValueUpdate(value: readonly [number, number]): void {\n this.setValue(value);\n this.setTextfieldValues(this.value());\n\n setTimeout((end = Number.MAX_SAFE_INTEGER) => {\n if (tuiIsFocused(this.activeTextfield)) {\n this.activeTextfield?.setSelectionRange(end, end);\n }\n });\n }\n\n protected focusToTextfield(): void {\n if (!this.isMobile) {\n this.activeTextfield?.focus();\n }\n }\n\n protected setTextfieldValues([start, end]: readonly [number, number]): void {\n this.start = start;\n this.end = end;\n }\n\n private get textfieldStart(): HTMLInputElement | null {\n return this.inputs()[0]?.nativeElement || null;\n }\n\n private get textfieldEnd(): HTMLInputElement | null {\n return this.inputs()[this.inputs().length - 1]?.nativeElement || null;\n }\n\n private get activeTextfield(): HTMLInputElement | null {\n return this.side === 'start' ? this.textfieldStart : this.textfieldEnd;\n }\n\n private setValue(value: readonly [number, number]): void {\n this.onChange(this.valueGuard(value));\n }\n\n private valueGuard(value: readonly [number, number]): readonly [number, number] {\n const [prevStart, prevEnd] = this.value();\n const [start, end] = value.map(\n (x) => this.quantumTransformer().toControlValue(x) ?? x,\n ) as unknown as readonly [number, number];\n\n return [Math.min(start, prevEnd), Math.max(end, prevStart)];\n }\n\n private isPrimitive(x: PolymorpheusContent): x is PolymorpheusPrimitive {\n return !x || tuiIsString(x) || tuiIsNumber(x);\n }\n}\n","<tui-textfield [content]=\"contentStartHidden ? '' : contentStart()\">\n <label tuiLabel>\n <ng-content />\n </label>\n\n <input\n tuiInputNumber\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"value()[1]\"\n [min]=\"min()\"\n [postfix]=\"postfix()[0]\"\n [prefix]=\"prefix()[0]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"start\"\n (blur)=\"start = value()[0]\"\n (keydown.arrowDown)=\"takeStep($event, [-1, 0])\"\n (keydown.arrowUp)=\"takeStep($event, [1, 0])\"\n (ngModelChange)=\"onInput([$event, null])\"\n />\n\n <input\n tuiInputNumber\n class=\"t-end\"\n [class._hidden]=\"!contentEndHidden || !this.interactive()\"\n [disabled]=\"disabled()\"\n [invalid]=\"invalid()\"\n [max]=\"max()\"\n [min]=\"value()[0]\"\n [postfix]=\"postfix()[1]\"\n [prefix]=\"prefix()[1]\"\n [readOnly]=\"readOnly()\"\n [(ngModel)]=\"end\"\n (blur)=\"end = value()[1]\"\n (keydown.arrowDown)=\"takeStep($event, [0, -1])\"\n (keydown.arrowUp)=\"takeStep($event, [0, 1])\"\n (ngModelChange)=\"onInput([null, $event])\"\n />\n\n @if (!contentEndHidden && contentEnd()) {\n <div class=\"t-content-end\">\n <ng-container *polymorpheusOutlet=\"contentEnd() as text; context: {$implicit: value()[1]}\">\n {{ text }}\n </ng-container>\n </div>\n }\n\n @if (interactive()) {\n <tui-range\n [focusable]=\"false\"\n [keySteps]=\"keySteps()\"\n [max]=\"max()\"\n [min]=\"min()\"\n [ngModel]=\"value()\"\n [segments]=\"segments()\"\n [step]=\"step()\"\n (activeThumbChange)=\"side = $event\"\n (ngModelChange)=\"onExternalValueUpdate($event)\"\n (pointerdown.prevent.stop)=\"focusToTextfield()\"\n />\n }\n</tui-textfield>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAoCA,MAAM,SAAS,GAAG,CAAC,C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,4BAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAkB,QAAQ,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,KAAA,EAAA,KAAA,EAAA,MAAA,EAAA,MAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAe1D,aAAa,EAAA,UAAA,EAAA,CAAA;kBAjBzB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,WAClB,CAAC,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAA,eAAA,EAGjE,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA,YAAY,CAAe,aAAA,CAAA;AAC3B,wBAAA,wBAAwB,CAAC,EAAC,UAAU,EAAE,aAAa,EAAC,CAAC;AACrD,wBAAA,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;qBACnC,EACK,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,QAAQ;;AAE5B,wBAAA,uBAAuB,EAAE,8BAA8B;AAC1D,qBAAA,EAAA,QAAA,EAAA,w+DAAA,EAAA,MAAA,EAAA,CAAA,2jBAAA,CAAA,EAAA;;;AEtDL;;AAEG;;;;"}
|
|
@@ -1,58 +1,63 @@
|
|
|
1
|
+
import { TuiLabel } from '@taiga-ui/core/components/label';
|
|
2
|
+
import { tuiInjectAuxiliary, TuiTextfieldComponent, TuiTextfieldOptionsDirective } from '@taiga-ui/core/components/textfield';
|
|
3
|
+
import { TuiDropdownContent } from '@taiga-ui/core/portals/dropdown';
|
|
1
4
|
import { TuiSliderComponent, TuiSliderKeyStepsBase, TuiSliderKeySteps } from '@taiga-ui/kit/components/slider';
|
|
2
5
|
import * as i0 from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
|
|
6
|
+
import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, computed, effect, Directive } from '@angular/core';
|
|
7
|
+
import { WA_IS_MOBILE } from '@ng-web-apis/platform';
|
|
8
|
+
import { TuiValueTransformer, TuiNonNullableValueTransformer } from '@taiga-ui/cdk/classes';
|
|
7
9
|
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
8
10
|
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
|
9
11
|
import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
10
|
-
import { tuiInjectAuxiliary } from '@taiga-ui/core/components/textfield';
|
|
11
12
|
import * as i1 from '@taiga-ui/kit/components/input-number';
|
|
12
|
-
import { TuiInputNumberDirective, tuiInputNumberOptionsProvider,
|
|
13
|
+
import { TuiNumberMask, TuiInputNumberDirective, tuiInputNumberOptionsProvider, TuiQuantumValueTransformer } from '@taiga-ui/kit/components/input-number';
|
|
13
14
|
import { fromEvent, tap, filter, switchMap } from 'rxjs';
|
|
14
15
|
|
|
16
|
+
class Styles {
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-input-slider" }, ngImport: i0, template: '', isInline: true, styles: ["tui-textfield [tuiInputSlider]~.t-content [tuiButtonX]{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n", "tui-textfield [tuiSlider]{--tui-slider-track-color: transparent !important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-input-slider' }, styles: ["tui-textfield [tuiInputSlider]~.t-content [tuiButtonX]{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n", "tui-textfield [tuiSlider]{--tui-slider-track-color: transparent !important}\n"] }]
|
|
23
|
+
}] });
|
|
15
24
|
class TuiInputSliderDirective {
|
|
16
25
|
constructor() {
|
|
17
|
-
this.isMobile = inject(
|
|
26
|
+
this.isMobile = inject(WA_IS_MOBILE);
|
|
18
27
|
this.el = tuiInjectElement();
|
|
19
28
|
this.slider = tuiInjectAuxiliary((x) => x instanceof TuiSliderComponent);
|
|
20
29
|
this.controlTransformer = inject(TuiValueTransformer, { self: true });
|
|
21
|
-
this.
|
|
30
|
+
this.nothing = tuiWithStyles(Styles);
|
|
31
|
+
this.mask = inject(TuiNumberMask, { self: true });
|
|
22
32
|
this.inputNumber = inject(TuiInputNumberDirective, { self: true });
|
|
23
33
|
this.value = computed(() => this.controlTransformer.toControlValue(this.inputNumber.value()));
|
|
24
|
-
this.nothing = tuiWithStyles(TuiInputSliderStyles);
|
|
25
34
|
this.textfieldToSliderSync = effect(() => {
|
|
26
35
|
const slider = this.slider();
|
|
27
36
|
if (!slider) {
|
|
28
37
|
return;
|
|
29
38
|
}
|
|
30
|
-
if (slider.keySteps?.transformer()
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
slider.
|
|
34
|
-
slider.
|
|
35
|
-
slider.max = slider.keySteps?.totalSteps ?? 100;
|
|
39
|
+
if (!slider.keySteps?.transformer()) {
|
|
40
|
+
// Native <input type="range" /> does not support BigInt
|
|
41
|
+
slider.min = Number(this.mask.min());
|
|
42
|
+
slider.max = Number(this.mask.max());
|
|
43
|
+
slider.value = this.value();
|
|
36
44
|
}
|
|
37
45
|
else {
|
|
38
|
-
slider.
|
|
39
|
-
slider.max = this.inputNumber.max();
|
|
46
|
+
slider.keySteps?.setControlValue(this.value());
|
|
40
47
|
}
|
|
41
|
-
slider.value = this.keyStepsTransformer().fromControlValue(this.value());
|
|
42
48
|
slider.el.disabled = !this.inputNumber.interactive();
|
|
43
|
-
}
|
|
44
|
-
this.
|
|
49
|
+
});
|
|
50
|
+
this.sliderInit = effect((onCleanup) => {
|
|
45
51
|
const slider = this.slider();
|
|
46
52
|
if (!slider) {
|
|
47
53
|
return;
|
|
48
54
|
}
|
|
49
|
-
slider.el.style.setProperty('--tui-slider-track-color', 'transparent');
|
|
50
55
|
slider.el.setAttribute('tabindex', '-1');
|
|
51
56
|
if (slider.keySteps) {
|
|
52
|
-
slider.keySteps.
|
|
57
|
+
slider.keySteps.controlValue = this.value;
|
|
53
58
|
}
|
|
54
59
|
const subscription = fromEvent(slider.el, 'input')
|
|
55
|
-
.pipe(tap(() => this.inputNumber.setValue(
|
|
60
|
+
.pipe(tap(() => this.inputNumber.setValue(slider.keySteps?.getControlValue() ?? slider.el.valueAsNumber)), filter(() => !this.isMobile), switchMap(() => fromEvent(this.el.ownerDocument, 'pointerup', { once: true })))
|
|
56
61
|
.subscribe(() => this.el.focus());
|
|
57
62
|
onCleanup(() => subscription.unsubscribe());
|
|
58
63
|
});
|
|
@@ -61,21 +66,20 @@ class TuiInputSliderDirective {
|
|
|
61
66
|
const slider = this.slider();
|
|
62
67
|
if (slider && this.inputNumber.interactive()) {
|
|
63
68
|
const newValue = tuiClamp(slider.keySteps?.takeStep(coefficient) ??
|
|
64
|
-
slider.value + coefficient * slider.step, this.
|
|
69
|
+
slider.value + coefficient * slider.step, this.mask.min(), this.mask.max());
|
|
65
70
|
this.inputNumber.setValue(newValue);
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputSliderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
74
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiInputSliderDirective, isStandalone: true, selector: "input[tuiInputSlider]", host: { listeners: { "blur": "inputNumber.setValue(value() ?? null)", "keydown.arrowUp": "onStep(1)", "keydown.arrowDown": "onStep(-1)" } }, providers: [
|
|
70
75
|
tuiInputNumberOptionsProvider({
|
|
71
76
|
valueTransformer: new TuiNonNullableValueTransformer(),
|
|
72
77
|
}),
|
|
73
|
-
], hostDirectives: [{ directive: i1.TuiInputNumberDirective, inputs: ["
|
|
78
|
+
], hostDirectives: [{ directive: i1.TuiInputNumberDirective, inputs: ["invalid", "invalid", "readOnly", "readOnly"] }, { directive: i1.TuiQuantumValueTransformer, inputs: ["quantum", "quantum"] }], ngImport: i0 }); }
|
|
74
79
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiInputSliderDirective, decorators: [{
|
|
76
81
|
type: Directive,
|
|
77
82
|
args: [{
|
|
78
|
-
standalone: true,
|
|
79
83
|
selector: 'input[tuiInputSlider]',
|
|
80
84
|
providers: [
|
|
81
85
|
tuiInputNumberOptionsProvider({
|
|
@@ -85,9 +89,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
85
89
|
hostDirectives: [
|
|
86
90
|
{
|
|
87
91
|
directive: TuiInputNumberDirective,
|
|
88
|
-
inputs: ['
|
|
92
|
+
inputs: ['invalid', 'readOnly'],
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
directive: TuiQuantumValueTransformer,
|
|
96
|
+
inputs: ['quantum'],
|
|
89
97
|
},
|
|
90
|
-
TuiWithQuantumValueTransformer,
|
|
91
98
|
],
|
|
92
99
|
host: {
|
|
93
100
|
'(blur)': 'inputNumber.setValue(value() ?? null)',
|
|
@@ -96,22 +103,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
96
103
|
},
|
|
97
104
|
}]
|
|
98
105
|
}] });
|
|
99
|
-
class TuiInputSliderStyles {
|
|
100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
101
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiInputSliderStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-input-slider" }, ngImport: i0, template: '', isInline: true, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
102
|
-
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiInputSliderStyles, decorators: [{
|
|
104
|
-
type: Component,
|
|
105
|
-
args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
106
|
-
class: 'tui-input-slider',
|
|
107
|
-
}, styles: ["tui-textfield [tuiInputSlider]~.t-content .t-clear{display:none!important}\n", "tui-textfield [tuiInputSlider]~[tuiSlider]:disabled{display:none}\n"] }]
|
|
108
|
-
}] });
|
|
109
106
|
|
|
110
107
|
const TuiInputSlider = [
|
|
111
108
|
TuiSliderComponent,
|
|
112
109
|
TuiSliderKeyStepsBase,
|
|
113
110
|
TuiSliderKeySteps,
|
|
114
111
|
TuiInputSliderDirective,
|
|
112
|
+
TuiLabel,
|
|
113
|
+
TuiTextfieldComponent,
|
|
114
|
+
TuiTextfieldOptionsDirective,
|
|
115
|
+
TuiDropdownContent,
|
|
115
116
|
];
|
|
116
117
|
|
|
117
118
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-slider.mjs","sources":["../../../projects/kit/components/input-slider/input-slider.directive.ts","../../../projects/kit/components/input-slider/input-slider.ts","../../../projects/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n effect,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n TuiNonNullableValueTransformer,\n TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiInjectAuxiliary} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumberDirective,\n tuiInputNumberOptionsProvider,\n TuiWithQuantumValueTransformer,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiSliderComponent} from '@taiga-ui/kit/components/slider';\nimport {filter, fromEvent, switchMap, tap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputSlider]',\n providers: [\n tuiInputNumberOptionsProvider({\n valueTransformer: new TuiNonNullableValueTransformer(),\n }),\n ],\n hostDirectives: [\n {\n directive: TuiInputNumberDirective,\n inputs: ['min', 'max', 'prefix', 'postfix', 'invalid', 'readOnly'],\n },\n TuiWithQuantumValueTransformer,\n ],\n host: {\n '(blur)': 'inputNumber.setValue(value() ?? null)',\n '(keydown.arrowUp)': 'onStep(1)',\n '(keydown.arrowDown)': 'onStep(-1)',\n },\n})\nexport class TuiInputSliderDirective {\n private readonly isMobile = inject(TUI_IS_MOBILE);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly slider = tuiInjectAuxiliary<TuiSliderComponent>(\n (x) => x instanceof TuiSliderComponent,\n );\n\n private readonly controlTransformer = inject<\n TuiValueTransformer<number | null, number>\n >(TuiValueTransformer, {self: true});\n\n private readonly keyStepsTransformer = computed(\n () => this.slider()?.keySteps?.transformer() ?? TUI_IDENTITY_VALUE_TRANSFORMER,\n );\n\n protected readonly inputNumber = inject(TuiInputNumberDirective, {self: true});\n protected readonly value = computed(() =>\n this.controlTransformer.toControlValue(this.inputNumber.value()),\n );\n\n protected readonly nothing = tuiWithStyles(TuiInputSliderStyles);\n\n protected readonly textfieldToSliderSync = effect(() => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n if (\n slider.keySteps?.transformer() &&\n Number.isFinite(slider.keySteps?.totalSteps)\n ) {\n // TODO(v5): move all if-condition body inside `TuiSliderKeyStepsBase`\n slider.min = 0;\n slider.step = 1;\n slider.max = slider.keySteps?.totalSteps ?? 100;\n } else {\n slider.min = this.inputNumber.min();\n slider.max = this.inputNumber.max();\n }\n\n slider.value = this.keyStepsTransformer().fromControlValue(this.value());\n slider.el.disabled = !this.inputNumber.interactive();\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly sliderInitEffect = effect((onCleanup) => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n slider.el.style.setProperty('--tui-slider-track-color', 'transparent');\n slider.el.setAttribute('tabindex', '-1');\n\n if (slider.keySteps) {\n slider.keySteps.value = this.value;\n }\n\n const subscription = fromEvent(slider.el, 'input')\n .pipe(\n tap(() =>\n this.inputNumber.setValue(\n this.keyStepsTransformer().toControlValue(\n slider.el.valueAsNumber,\n ),\n ),\n ),\n filter(() => !this.isMobile),\n switchMap(() =>\n fromEvent(this.el.ownerDocument, 'pointerup', {once: true}),\n ),\n )\n .subscribe(() => this.el.focus());\n\n onCleanup(() => subscription.unsubscribe());\n });\n\n protected onStep(coefficient: number): void {\n const slider = this.slider();\n\n if (slider && this.inputNumber.interactive()) {\n const newValue = tuiClamp(\n slider.keySteps?.takeStep(coefficient) ??\n slider.value + coefficient * slider.step,\n this.inputNumber.min(),\n this.inputNumber.max(),\n );\n\n this.inputNumber.setValue(newValue);\n }\n }\n}\n\n@Component({\n standalone: true,\n template: '',\n styles: [\n // TODO: tui-textfield:has([tuiInputSlider]) .t-clear\n 'tui-textfield [tuiInputSlider] ~ .t-content .t-clear {display: none !important}',\n // TODO: tui-textfield:has([tuiInputSlider]) [tuiSlider]:disabled\n 'tui-textfield [tuiInputSlider] ~ [tuiSlider]:disabled {display: none}',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-input-slider',\n },\n})\nclass TuiInputSliderStyles {}\n","import {\n TuiSliderComponent,\n TuiSliderKeySteps,\n TuiSliderKeyStepsBase,\n} from '@taiga-ui/kit/components/slider';\n\nimport {TuiInputSliderDirective} from './input-slider.directive';\n\nexport const TuiInputSlider = [\n TuiSliderComponent,\n TuiSliderKeyStepsBase,\n TuiSliderKeySteps,\n TuiInputSliderDirective,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA4BA,MAqBa,uBAAuB,CAAA;AArBpC,IAAA,WAAA,GAAA;AAsBqB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;QACjC,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB,CA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AA,EAAA,oBAAoB,sHAbZ,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8EAAA,EAAA,qEAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAaV,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAfzB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAOG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,kBAAkB;AAC5B,qBAAA,EAAA,MAAA,EAAA,CAAA,8EAAA,EAAA,qEAAA,CAAA,EAAA,CAAA;;;ACrJQ,MAAA,cAAc,GAAG;IAC1B,kBAAkB;IAClB,qBAAqB;IACrB,iBAAiB;IACjB,uBAAuB;;;ACZ3B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-slider.mjs","sources":["../../../projects/kit/components/input-slider/input-slider.directive.ts","../../../projects/kit/components/input-slider/input-slider.ts","../../../projects/kit/components/input-slider/taiga-ui-kit-components-input-slider.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n effect,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TuiNonNullableValueTransformer, TuiValueTransformer} from '@taiga-ui/cdk/classes';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiInjectAuxiliary} from '@taiga-ui/core/components/textfield';\nimport {\n TuiInputNumberDirective,\n tuiInputNumberOptionsProvider,\n TuiNumberMask,\n TuiQuantumValueTransformer,\n} from '@taiga-ui/kit/components/input-number';\nimport {TuiSliderComponent} from '@taiga-ui/kit/components/slider';\nimport {filter, fromEvent, switchMap, tap} from 'rxjs';\n\n@Component({\n template: '',\n styles: [\n // TODO: tui-textfield:has([tuiInputSlider]) [tuiButtonX]\n 'tui-textfield [tuiInputSlider] ~ .t-content [tuiButtonX] {display: none !important}',\n // TODO: tui-textfield:has([tuiInputSlider]) [tuiSlider]:disabled\n 'tui-textfield [tuiInputSlider] ~ [tuiSlider]:disabled {display: none}',\n 'tui-textfield [tuiSlider] { --tui-slider-track-color: transparent !important; }',\n ],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-input-slider'},\n})\nclass Styles {}\n\n@Directive({\n selector: 'input[tuiInputSlider]',\n providers: [\n tuiInputNumberOptionsProvider({\n valueTransformer: new TuiNonNullableValueTransformer(),\n }),\n ],\n hostDirectives: [\n {\n directive: TuiInputNumberDirective,\n inputs: ['invalid', 'readOnly'],\n },\n {\n directive: TuiQuantumValueTransformer,\n inputs: ['quantum'],\n },\n ],\n host: {\n '(blur)': 'inputNumber.setValue(value() ?? null)',\n '(keydown.arrowUp)': 'onStep(1)',\n '(keydown.arrowDown)': 'onStep(-1)',\n },\n})\nexport class TuiInputSliderDirective {\n private readonly isMobile = inject(WA_IS_MOBILE);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly slider = tuiInjectAuxiliary<TuiSliderComponent>(\n (x) => x instanceof TuiSliderComponent,\n );\n\n private readonly controlTransformer = inject<TuiValueTransformer<string, number>>(\n TuiValueTransformer,\n {self: true},\n );\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly mask = inject(TuiNumberMask, {self: true});\n protected readonly inputNumber = inject(TuiInputNumberDirective, {self: true});\n protected readonly value = computed(() =>\n this.controlTransformer.toControlValue(this.inputNumber.value()),\n );\n\n protected readonly textfieldToSliderSync = effect(() => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n if (!slider.keySteps?.transformer()) {\n // Native <input type=\"range\" /> does not support BigInt\n slider.min = Number(this.mask.min());\n slider.max = Number(this.mask.max());\n slider.value = this.value();\n } else {\n slider.keySteps?.setControlValue(this.value());\n }\n\n slider.el.disabled = !this.inputNumber.interactive();\n });\n\n protected readonly sliderInit = effect((onCleanup) => {\n const slider = this.slider();\n\n if (!slider) {\n return;\n }\n\n slider.el.setAttribute('tabindex', '-1');\n\n if (slider.keySteps) {\n slider.keySteps.controlValue = this.value;\n }\n\n const subscription = fromEvent(slider.el, 'input')\n .pipe(\n tap(() =>\n this.inputNumber.setValue(\n slider.keySteps?.getControlValue() ?? slider.el.valueAsNumber,\n ),\n ),\n filter(() => !this.isMobile),\n switchMap(() =>\n fromEvent(this.el.ownerDocument, 'pointerup', {once: true}),\n ),\n )\n .subscribe(() => this.el.focus());\n\n onCleanup(() => subscription.unsubscribe());\n });\n\n protected onStep(coefficient: number): void {\n const slider = this.slider();\n\n if (slider && this.inputNumber.interactive()) {\n const newValue = tuiClamp(\n slider.keySteps?.takeStep(coefficient) ??\n slider.value + coefficient * slider.step,\n this.mask.min(),\n this.mask.max(),\n );\n\n this.inputNumber.setValue(newValue);\n }\n }\n}\n","import {TuiLabel} from '@taiga-ui/core/components/label';\nimport {\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n} from '@taiga-ui/core/components/textfield';\nimport {TuiDropdownContent} from '@taiga-ui/core/portals/dropdown';\nimport {\n TuiSliderComponent,\n TuiSliderKeySteps,\n TuiSliderKeyStepsBase,\n} from '@taiga-ui/kit/components/slider';\n\nimport {TuiInputSliderDirective} from './input-slider.directive';\n\nexport const TuiInputSlider = [\n TuiSliderComponent,\n TuiSliderKeyStepsBase,\n TuiSliderKeySteps,\n TuiInputSliderDirective,\n TuiLabel,\n TuiTextfieldComponent,\n TuiTextfieldOptionsDirective,\n TuiDropdownContent,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;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