@taiga-ui/kit 3.491.1-canary.a08581f → 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/components/accordion/accordion-item-content.directive.d.ts +6 -0
- package/components/accordion/accordion-item-eager-content.directive.d.ts +5 -0
- package/components/accordion/accordion-item.component.d.ts +25 -0
- package/components/accordion/accordion.d.ts +5 -0
- package/components/accordion/accordion.directive.d.ts +12 -0
- package/components/accordion/index.d.ts +5 -5
- package/components/action-bar/action-bar.component.d.ts +7 -0
- package/components/action-bar/action-bar.d.ts +3 -0
- package/components/action-bar/action-bar.directive.d.ts +6 -0
- package/components/action-bar/index.d.ts +3 -0
- package/components/avatar/avatar-labeled.component.d.ts +7 -0
- package/components/avatar/avatar-outline.directive.d.ts +8 -0
- package/components/avatar/avatar-stack.component.d.ts +7 -0
- package/components/avatar/avatar.component.d.ts +12 -23
- package/components/avatar/avatar.options.d.ts +7 -10
- package/components/avatar/index.d.ts +3 -1
- package/components/badge/badge.directive.d.ts +11 -0
- package/components/badge/badge.options.d.ts +10 -0
- package/components/badge/index.d.ts +2 -2
- package/components/badge-notification/badge-notification.component.d.ts +8 -0
- package/components/badge-notification/badge-notification.options.d.ts +8 -0
- package/components/badge-notification/index.d.ts +2 -0
- package/components/badged-content/badge-content.d.ts +3 -0
- package/components/badged-content/badged-content.component.d.ts +1 -19
- package/components/badged-content/badged-content.directive.d.ts +6 -0
- package/components/badged-content/index.d.ts +2 -1
- package/components/block/block.directive.d.ts +14 -0
- package/components/block/block.options.d.ts +9 -0
- package/components/block/index.d.ts +2 -0
- package/components/breadcrumbs/breadcrumbs.component.d.ts +9 -11
- package/components/breadcrumbs/breadcrumbs.options.d.ts +2 -3
- package/components/breadcrumbs/index.d.ts +0 -1
- package/components/button-loading/button-loading.component.d.ts +12 -0
- package/components/button-loading/index.d.ts +1 -0
- package/components/calendar-month/calendar-month.component.d.ts +24 -29
- package/components/calendar-month/index.d.ts +0 -1
- package/components/calendar-range/calendar-range.component.d.ts +30 -25
- package/components/calendar-range/day-caps-mapper.d.ts +8 -0
- package/components/calendar-range/day-range-period.d.ts +11 -0
- package/components/calendar-range/index.d.ts +2 -1
- package/components/carousel/carousel-autoscroll.directive.d.ts +5 -6
- package/components/carousel/carousel-buttons.directive.d.ts +3 -3
- package/components/carousel/carousel-scroll.directive.d.ts +3 -5
- package/components/carousel/carousel.component.d.ts +20 -17
- package/components/carousel/carousel.d.ts +7 -0
- package/components/carousel/carousel.directive.d.ts +2 -4
- package/components/carousel/index.d.ts +1 -1
- package/components/checkbox/checkbox.component.d.ts +16 -16
- package/components/checkbox/checkbox.options.d.ts +14 -0
- package/components/checkbox/index.d.ts +1 -1
- package/components/chip/chip.directive.d.ts +11 -0
- package/components/chip/chip.options.d.ts +9 -0
- package/components/chip/index.d.ts +2 -0
- package/components/compass/compass.component.d.ts +6 -0
- package/components/compass/index.d.ts +1 -0
- package/components/confirm/confirm.component.d.ts +22 -0
- package/components/confirm/confirm.service.d.ts +13 -0
- package/components/confirm/index.d.ts +2 -0
- package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -7
- package/components/data-list-wrapper/data-list-wrapper.component.d.ts +18 -7
- package/components/data-list-wrapper/data-list-wrapper.module.d.ts +4 -12
- package/components/data-list-wrapper/index.d.ts +0 -1
- package/components/elastic-container/elastic-container.component.d.ts +6 -6
- package/components/elastic-container/elastic-container.directive.d.ts +2 -5
- package/components/elastic-container/index.d.ts +0 -1
- package/components/files/file/file.component.d.ts +30 -32
- package/components/files/file/file.options.d.ts +14 -0
- package/components/files/files/files.component.d.ts +16 -0
- package/components/files/files.d.ts +7 -0
- package/components/files/files.types.d.ts +9 -0
- package/components/files/files.utils.d.ts +4 -0
- package/components/files/files.validators.d.ts +5 -0
- package/components/files/index.d.ts +12 -3
- package/components/files/input-files/input-files-validator.directive.d.ts +14 -0
- package/components/files/input-files/input-files.component.d.ts +18 -0
- package/components/files/input-files/input-files.content.d.ts +14 -0
- package/components/files/input-files/input-files.directive.d.ts +16 -0
- package/components/files/input-files/input-files.options.d.ts +14 -0
- package/components/files/pipes/file-rejected.pipe.d.ts +16 -0
- package/components/filter/filter.component.d.ts +10 -12
- package/components/filter/index.d.ts +0 -1
- package/components/index.d.ts +12 -35
- package/components/input-inline/index.d.ts +0 -1
- package/components/input-inline/input-inline.component.d.ts +7 -18
- package/components/input-phone-international/get-country-calling-code.pipe.d.ts +9 -0
- package/components/input-phone-international/index.d.ts +0 -2
- package/components/input-phone-international/input-phone-international.component.d.ts +24 -56
- package/components/input-phone-international/input-phone-international.options.d.ts +5 -2
- package/components/items-with-more/index.d.ts +1 -1
- package/components/items-with-more/items-with-more.component.d.ts +10 -9
- package/components/items-with-more/items-with-more.d.ts +5 -0
- package/components/items-with-more/items-with-more.directive.d.ts +2 -2
- package/components/items-with-more/items-with-more.service.d.ts +3 -8
- package/components/items-with-more/more.directive.d.ts +5 -5
- package/components/line-clamp/index.d.ts +0 -1
- package/components/line-clamp/line-clamp-box.component.d.ts +5 -5
- package/components/line-clamp/line-clamp-position.directive.d.ts +3 -3
- package/components/line-clamp/line-clamp.component.d.ts +15 -16
- package/components/line-clamp/line-clamp.options.d.ts +1 -1
- package/components/pagination/index.d.ts +0 -1
- package/components/pagination/pagination.component.d.ts +24 -29
- package/components/pdf-viewer/index.d.ts +0 -1
- package/components/pdf-viewer/pdf-viewer.component.d.ts +8 -12
- package/components/pdf-viewer/pdf-viewer.directive.d.ts +4 -4
- package/components/pdf-viewer/pdf-viewer.options.d.ts +8 -10
- package/components/pdf-viewer/pdf-viewer.service.d.ts +8 -10
- package/components/pin/index.d.ts +1 -0
- package/components/pin/pin.component.d.ts +6 -0
- package/components/preview/index.d.ts +7 -0
- package/components/preview/pagination/preview-pagination.component.d.ts +15 -0
- package/components/preview/preview-action/preview-action.directive.d.ts +5 -0
- package/components/preview/preview-dialog/index.d.ts +3 -0
- package/components/preview/preview-dialog/preview-dialog.component.d.ts +14 -0
- package/components/preview/preview-dialog/preview-dialog.directive.d.ts +6 -0
- package/components/preview/preview-dialog/preview-dialog.service.d.ts +6 -0
- package/components/preview/preview.component.d.ts +36 -0
- package/components/preview/preview.d.ts +6 -0
- package/components/preview/title/preview-title.component.d.ts +5 -0
- package/components/preview/zoom/preview-zoom.component.d.ts +25 -0
- package/components/progress/index.d.ts +2 -2
- package/components/progress/progress-bar/progress-bar.component.d.ts +4 -7
- package/components/progress/progress-bar/progress-color-segments.directive.d.ts +6 -10
- package/components/progress/progress-circle/progress-circle.component.d.ts +7 -16
- package/components/progress/progress-label/progress-label.component.d.ts +3 -3
- package/components/progress/progress-segmented/index.d.ts +1 -0
- package/components/progress/progress-segmented/progress-segmented.directive.d.ts +7 -0
- package/components/progress/progress.d.ts +6 -0
- package/components/pulse/index.d.ts +1 -0
- package/components/pulse/pulse.component.d.ts +7 -0
- package/components/push/index.d.ts +0 -2
- package/components/push/push-alert.component.d.ts +8 -10
- package/components/push/push.component.d.ts +8 -10
- package/components/push/push.directive.d.ts +8 -11
- package/components/push/push.options.d.ts +2 -2
- package/components/push/push.service.d.ts +3 -7
- package/components/radio/index.d.ts +2 -1
- package/components/radio/radio.component.d.ts +12 -29
- package/components/radio/radio.d.ts +3 -0
- package/components/radio/radio.directive.d.ts +8 -0
- package/components/radio/radio.options.d.ts +5 -11
- package/components/radio-list/index.d.ts +0 -1
- package/components/radio-list/radio-list.component.d.ts +15 -23
- package/components/range/index.d.ts +0 -1
- package/components/range/range-change.directive.d.ts +5 -7
- package/components/range/range.component.d.ts +23 -23
- package/components/rating/index.d.ts +0 -1
- package/components/rating/rating.component.d.ts +13 -20
- package/components/rating/rating.options.d.ts +4 -7
- package/components/routable-dialog/generate-dialogable-route.d.ts +5 -4
- package/components/routable-dialog/index.d.ts +0 -1
- package/components/routable-dialog/routable-dialog.component.d.ts +9 -9
- package/components/segmented/index.d.ts +2 -0
- package/components/segmented/segmented.component.d.ts +20 -0
- package/components/segmented/segmented.directive.d.ts +17 -0
- package/components/slider/helpers/key-steps.d.ts +25 -0
- package/components/slider/helpers/slider-key-steps.directive.d.ts +8 -16
- package/components/slider/helpers/slider-readonly.directive.d.ts +11 -9
- package/components/slider/helpers/slider-thumb-label.component.d.ts +15 -0
- package/components/slider/index.d.ts +3 -2
- package/components/slider/slider.component.d.ts +11 -16
- package/components/slider/slider.d.ts +5 -0
- package/components/slider/slider.options.d.ts +2 -2
- package/components/stepper/index.d.ts +2 -2
- package/components/stepper/step.component.d.ts +18 -0
- package/components/stepper/stepper.component.d.ts +14 -14
- package/components/stepper/stepper.d.ts +3 -0
- package/components/switch/index.d.ts +2 -0
- package/components/switch/switch.component.d.ts +19 -0
- package/components/switch/switch.options.d.ts +12 -0
- package/components/tabs/index.d.ts +6 -8
- package/components/tabs/tab.directive.d.ts +13 -0
- package/components/tabs/tabs-horizontal.directive.d.ts +17 -0
- package/components/tabs/tabs-vertical.directive.d.ts +10 -0
- package/components/tabs/tabs-with-more.component.d.ts +50 -0
- package/components/tabs/tabs.d.ts +7 -0
- package/components/tabs/tabs.directive.d.ts +9 -4
- package/components/tabs/tabs.options.d.ts +4 -2
- package/components/tabs/tabs.providers.d.ts +5 -0
- package/components/tiles/index.d.ts +1 -1
- package/components/tiles/tile-handle.directive.d.ts +6 -8
- package/components/tiles/tile.component.d.ts +11 -15
- package/components/tiles/tile.service.d.ts +2 -6
- package/components/tiles/tiles.component.d.ts +3 -5
- package/components/tiles/tiles.d.ts +4 -0
- package/components/tree/components/tree/tree.component.d.ts +12 -13
- package/components/tree/components/tree-item/tree-item.component.d.ts +11 -12
- package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +13 -11
- package/components/tree/directives/tree-children.directive.d.ts +4 -4
- package/components/tree/directives/tree-controller.directive.d.ts +8 -8
- package/components/tree/directives/tree-item-controller.directive.d.ts +7 -7
- package/components/tree/directives/tree-node.directive.d.ts +5 -8
- package/components/tree/index.d.ts +1 -2
- package/components/tree/misc/tree.constants.d.ts +3 -3
- package/components/tree/misc/tree.interfaces.d.ts +11 -11
- package/components/tree/misc/tree.service.d.ts +0 -2
- package/components/tree/misc/tree.tokens.d.ts +1 -1
- package/components/tree/tree.d.ts +8 -0
- package/directives/button-close/button-close.directive.d.ts +5 -0
- package/directives/button-close/button-close.options.d.ts +1 -0
- package/directives/button-close/index.d.ts +2 -0
- package/directives/button-group/button-group.directive.d.ts +6 -0
- package/directives/button-group/index.d.ts +1 -0
- package/directives/button-vertical/button-vertical.directive.d.ts +6 -0
- package/directives/button-vertical/index.d.ts +1 -0
- package/directives/chevron/chevron.directive.d.ts +12 -0
- package/directives/chevron/index.d.ts +1 -0
- package/directives/comment/comment.directive.d.ts +8 -0
- package/directives/comment/index.d.ts +1 -0
- package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -7
- package/directives/data-list-dropdown-manager/index.d.ts +0 -1
- package/directives/fade/fade.directive.d.ts +12 -0
- package/directives/fade/index.d.ts +1 -0
- package/directives/highlight/highlight.directive.d.ts +7 -8
- package/directives/highlight/index.d.ts +0 -1
- package/directives/index.d.ts +10 -3
- package/directives/lazy-loading/index.d.ts +0 -1
- package/directives/lazy-loading/lazy-loading.directive.d.ts +10 -12
- package/directives/lazy-loading/lazy-loading.service.d.ts +5 -4
- package/directives/present/index.d.ts +0 -1
- package/directives/present/present.directive.d.ts +5 -17
- package/directives/sensitive/index.d.ts +1 -0
- package/directives/sensitive/sensitive.directive.d.ts +9 -0
- package/directives/skeleton/index.d.ts +1 -0
- package/directives/skeleton/skeleton.directive.d.ts +13 -0
- package/directives/tooltip/index.d.ts +1 -0
- package/directives/tooltip/tooltip.directive.d.ts +17 -0
- package/directives/unfinished-validator/index.d.ts +1 -1
- package/directives/unfinished-validator/unfinished-validator.directive.d.ts +4 -8
- package/directives/unfinished-validator/unfinished.validator.d.ts +3 -0
- package/directives/unmask-handler/index.d.ts +1 -0
- package/directives/unmask-handler/unmask-handler.directive.d.ts +12 -0
- package/esm2022/components/accordion/accordion-item-content.directive.mjs +16 -0
- package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +15 -0
- package/esm2022/components/accordion/accordion-item.component.mjs +101 -0
- package/esm2022/components/accordion/accordion.directive.mjs +65 -0
- package/esm2022/components/accordion/accordion.mjs +11 -0
- package/esm2022/components/accordion/index.mjs +6 -0
- package/esm2022/components/action-bar/action-bar.component.mjs +26 -0
- package/esm2022/components/action-bar/action-bar.directive.mjs +17 -0
- package/esm2022/components/action-bar/action-bar.mjs +4 -0
- package/esm2022/components/action-bar/index.mjs +4 -0
- package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +5 -0
- package/esm2022/components/avatar/avatar-labeled.component.mjs +50 -0
- package/esm2022/components/avatar/avatar-outline.directive.mjs +41 -0
- package/esm2022/components/avatar/avatar-stack.component.mjs +20 -0
- package/esm2022/components/avatar/avatar.component.mjs +55 -0
- package/esm2022/components/avatar/avatar.options.mjs +11 -0
- package/esm2022/components/avatar/index.mjs +6 -0
- package/esm2022/components/badge/badge.directive.mjs +47 -0
- package/esm2022/components/badge/badge.options.mjs +11 -0
- package/esm2022/components/badge/index.mjs +3 -0
- package/esm2022/components/badge-notification/badge-notification.component.mjs +25 -0
- package/esm2022/components/badge-notification/badge-notification.options.mjs +9 -0
- package/esm2022/components/badge-notification/index.mjs +3 -0
- package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +5 -0
- package/esm2022/components/badged-content/badge-content.mjs +7 -0
- package/esm2022/components/badged-content/badged-content.component.mjs +14 -0
- package/esm2022/components/badged-content/badged-content.directive.mjs +20 -0
- package/esm2022/components/badged-content/index.mjs +4 -0
- package/esm2022/components/block/block.directive.mjs +62 -0
- package/esm2022/components/block/block.options.mjs +10 -0
- package/esm2022/components/block/index.mjs +3 -0
- package/esm2022/components/block/taiga-ui-kit-components-block.mjs +5 -0
- package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +31 -0
- package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +10 -0
- package/esm2022/components/breadcrumbs/index.mjs +3 -0
- package/esm2022/components/button-loading/button-loading.component.mjs +71 -0
- package/esm2022/components/button-loading/index.mjs +2 -0
- package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +5 -0
- package/esm2022/components/calendar-month/calendar-month.component.mjs +196 -0
- package/esm2022/components/calendar-month/index.mjs +2 -0
- package/esm2022/components/calendar-range/calendar-range.component.mjs +147 -0
- package/esm2022/components/calendar-range/day-caps-mapper.mjs +20 -0
- package/esm2022/components/calendar-range/day-range-period.mjs +36 -0
- package/esm2022/components/calendar-range/index.mjs +4 -0
- package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +21 -0
- package/esm2022/components/carousel/carousel-buttons.directive.mjs +27 -0
- package/esm2022/components/carousel/carousel-scroll.directive.mjs +27 -0
- package/esm2022/components/carousel/carousel.component.mjs +163 -0
- package/esm2022/components/carousel/carousel.directive.mjs +33 -0
- package/esm2022/components/carousel/carousel.mjs +15 -0
- package/esm2022/components/carousel/index.mjs +7 -0
- package/esm2022/components/checkbox/checkbox.component.mjs +63 -0
- package/esm2022/components/checkbox/checkbox.options.mjs +14 -0
- package/esm2022/components/checkbox/index.mjs +3 -0
- package/esm2022/components/chip/chip.directive.mjs +63 -0
- package/esm2022/components/chip/chip.options.mjs +10 -0
- package/esm2022/components/chip/index.mjs +3 -0
- package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +5 -0
- package/esm2022/components/compass/compass.component.mjs +20 -0
- package/esm2022/components/compass/index.mjs +2 -0
- package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +5 -0
- package/esm2022/components/confirm/confirm.component.mjs +34 -0
- package/esm2022/components/confirm/confirm.service.mjs +32 -0
- package/esm2022/components/confirm/index.mjs +3 -0
- package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +5 -0
- package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +28 -0
- package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +55 -0
- package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +9 -0
- package/esm2022/components/data-list-wrapper/index.mjs +4 -0
- package/esm2022/components/elastic-container/elastic-container.component.mjs +31 -0
- package/esm2022/components/elastic-container/elastic-container.directive.mjs +50 -0
- package/esm2022/components/elastic-container/index.mjs +3 -0
- package/esm2022/components/files/file/file.component.mjs +139 -0
- package/esm2022/components/files/file/file.options.mjs +16 -0
- package/esm2022/components/files/files/files.component.mjs +45 -0
- package/esm2022/components/files/files.mjs +15 -0
- package/esm2022/components/files/files.types.mjs +2 -0
- package/esm2022/components/files/files.utils.mjs +30 -0
- package/esm2022/components/files/files.validators.mjs +31 -0
- package/esm2022/components/files/index.mjs +14 -0
- package/esm2022/components/files/input-files/input-files-validator.directive.mjs +49 -0
- package/esm2022/components/files/input-files/input-files.component.mjs +72 -0
- package/esm2022/components/files/input-files/input-files.content.mjs +72 -0
- package/esm2022/components/files/input-files/input-files.directive.mjs +69 -0
- package/esm2022/components/files/input-files/input-files.options.mjs +15 -0
- package/esm2022/components/files/pipes/file-rejected.pipe.mjs +49 -0
- package/esm2022/components/filter/filter.component.mjs +74 -0
- package/esm2022/components/filter/index.mjs +2 -0
- package/esm2022/components/index.mjs +44 -0
- package/esm2022/components/input-inline/index.mjs +2 -0
- package/esm2022/components/input-inline/input-inline.component.mjs +33 -0
- package/esm2022/components/input-phone-international/get-country-calling-code.pipe.mjs +22 -0
- package/esm2022/components/input-phone-international/index.mjs +3 -0
- package/esm2022/components/input-phone-international/input-phone-international.component.mjs +168 -0
- package/esm2022/components/input-phone-international/input-phone-international.options.mjs +15 -0
- package/esm2022/components/items-with-more/index.mjs +6 -0
- package/esm2022/components/items-with-more/items-with-more.component.mjs +62 -0
- package/esm2022/components/items-with-more/items-with-more.directive.mjs +25 -0
- package/esm2022/components/items-with-more/items-with-more.mjs +11 -0
- package/esm2022/components/items-with-more/items-with-more.service.mjs +48 -0
- package/esm2022/components/items-with-more/more.directive.mjs +18 -0
- package/esm2022/components/line-clamp/index.mjs +4 -0
- package/esm2022/components/line-clamp/line-clamp-box.component.mjs +25 -0
- package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +27 -0
- package/esm2022/components/line-clamp/line-clamp.component.mjs +114 -0
- package/esm2022/components/line-clamp/line-clamp.options.mjs +12 -0
- package/esm2022/components/pagination/index.mjs +2 -0
- package/esm2022/components/pagination/pagination.component.mjs +221 -0
- package/esm2022/components/pdf-viewer/index.mjs +5 -0
- package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +33 -0
- package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +21 -0
- package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +14 -0
- package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +22 -0
- package/esm2022/components/pin/index.mjs +2 -0
- package/esm2022/components/pin/pin.component.mjs +20 -0
- package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +5 -0
- package/esm2022/components/preview/index.mjs +8 -0
- package/esm2022/components/preview/pagination/preview-pagination.component.mjs +52 -0
- package/esm2022/components/preview/preview-action/preview-action.directive.mjs +30 -0
- package/esm2022/components/preview/preview-dialog/index.mjs +4 -0
- package/esm2022/components/preview/preview-dialog/preview-dialog.component.mjs +38 -0
- package/esm2022/components/preview/preview-dialog/preview-dialog.directive.mjs +21 -0
- package/esm2022/components/preview/preview-dialog/preview-dialog.service.mjs +18 -0
- package/esm2022/components/preview/preview-dialog/taiga-ui-kit-components-preview-preview-dialog.mjs +5 -0
- package/esm2022/components/preview/preview.component.mjs +141 -0
- package/esm2022/components/preview/preview.mjs +13 -0
- package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +5 -0
- package/esm2022/components/preview/title/preview-title.component.mjs +16 -0
- package/esm2022/components/preview/zoom/preview-zoom.component.mjs +81 -0
- package/esm2022/components/progress/index.mjs +7 -0
- package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +25 -0
- package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +41 -0
- package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +42 -0
- package/esm2022/components/progress/progress-label/progress-label.component.mjs +12 -0
- package/esm2022/components/progress/progress-segmented/index.mjs +2 -0
- package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +34 -0
- package/esm2022/components/progress/progress-segmented/taiga-ui-kit-components-progress-progress-segmented.mjs +5 -0
- package/esm2022/components/progress/progress.mjs +13 -0
- package/esm2022/components/pulse/index.mjs +2 -0
- package/esm2022/components/pulse/pulse.component.mjs +25 -0
- package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +5 -0
- package/esm2022/components/push/index.mjs +6 -0
- package/esm2022/components/push/push-alert.component.mjs +42 -0
- package/esm2022/components/push/push.component.mjs +34 -0
- package/esm2022/components/push/push.directive.mjs +33 -0
- package/esm2022/components/push/push.options.mjs +18 -0
- package/esm2022/components/push/push.service.mjs +19 -0
- package/esm2022/components/radio/index.mjs +5 -0
- package/esm2022/components/radio/radio.component.mjs +35 -0
- package/esm2022/components/radio/radio.directive.mjs +32 -0
- package/esm2022/components/radio/radio.mjs +4 -0
- package/esm2022/components/radio/radio.options.mjs +10 -0
- package/esm2022/components/radio-list/index.mjs +2 -0
- package/esm2022/components/radio-list/radio-list.component.mjs +72 -0
- package/esm2022/components/range/index.mjs +3 -0
- package/esm2022/components/range/range-change.directive.mjs +81 -0
- package/esm2022/components/range/range.component.mjs +145 -0
- package/esm2022/components/rating/index.mjs +3 -0
- package/esm2022/components/rating/rating.component.mjs +82 -0
- package/esm2022/components/rating/rating.options.mjs +10 -0
- package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +17 -0
- package/esm2022/components/routable-dialog/index.mjs +3 -0
- package/esm2022/components/routable-dialog/routable-dialog.component.mjs +53 -0
- package/esm2022/components/segmented/index.mjs +3 -0
- package/esm2022/components/segmented/segmented.component.mjs +64 -0
- package/esm2022/components/segmented/segmented.directive.mjs +67 -0
- package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +5 -0
- package/esm2022/components/slider/helpers/key-steps.mjs +23 -0
- package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +63 -0
- package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +77 -0
- package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +37 -0
- package/esm2022/components/slider/index.mjs +8 -0
- package/esm2022/components/slider/slider.component.mjs +94 -0
- package/esm2022/components/slider/slider.mjs +11 -0
- package/esm2022/components/slider/slider.options.mjs +13 -0
- package/esm2022/components/stepper/index.mjs +4 -0
- package/esm2022/components/stepper/step.component.mjs +68 -0
- package/esm2022/components/stepper/stepper.component.mjs +129 -0
- package/esm2022/components/stepper/stepper.mjs +4 -0
- package/esm2022/components/switch/index.mjs +3 -0
- package/esm2022/components/switch/switch.component.mjs +51 -0
- package/esm2022/components/switch/switch.options.mjs +12 -0
- package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +5 -0
- package/esm2022/components/tabs/index.mjs +9 -0
- package/esm2022/components/tabs/tab.directive.mjs +43 -0
- package/esm2022/components/tabs/tabs-horizontal.directive.mjs +114 -0
- package/esm2022/components/tabs/tabs-vertical.directive.mjs +42 -0
- package/esm2022/components/tabs/tabs-with-more.component.mjs +209 -0
- package/esm2022/components/tabs/tabs.directive.mjs +82 -0
- package/esm2022/components/tabs/tabs.mjs +15 -0
- package/esm2022/components/tabs/tabs.options.mjs +16 -0
- package/esm2022/components/tabs/tabs.providers.mjs +35 -0
- package/esm2022/components/tiles/index.mjs +6 -0
- package/esm2022/components/tiles/tile-handle.directive.mjs +66 -0
- package/esm2022/components/tiles/tile.component.mjs +70 -0
- package/esm2022/components/tiles/tile.service.mjs +85 -0
- package/esm2022/components/tiles/tiles.component.mjs +76 -0
- package/esm2022/components/tiles/tiles.mjs +5 -0
- package/esm2022/components/tree/components/tree/tree.component.mjs +64 -0
- package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +64 -0
- package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +42 -0
- package/esm2022/components/tree/directives/tree-children.directive.mjs +24 -0
- package/esm2022/components/tree/directives/tree-controller.directive.mjs +57 -0
- package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +32 -0
- package/esm2022/components/tree/directives/tree-node.directive.mjs +32 -0
- package/esm2022/components/tree/index.mjs +13 -0
- package/esm2022/components/tree/misc/tree.constants.mjs +9 -0
- package/esm2022/components/tree/misc/tree.interfaces.mjs +2 -0
- package/esm2022/components/tree/misc/tree.service.mjs +31 -0
- package/esm2022/components/tree/misc/tree.tokens.mjs +36 -0
- package/esm2022/components/tree/tree.mjs +17 -0
- package/esm2022/directives/button-close/button-close.directive.mjs +35 -0
- package/esm2022/directives/button-close/button-close.options.mjs +3 -0
- package/esm2022/directives/button-close/index.mjs +3 -0
- package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +5 -0
- package/esm2022/directives/button-group/button-group.directive.mjs +29 -0
- package/esm2022/directives/button-group/index.mjs +2 -0
- package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +5 -0
- package/esm2022/directives/button-vertical/button-vertical.directive.mjs +29 -0
- package/esm2022/directives/button-vertical/index.mjs +2 -0
- package/esm2022/directives/button-vertical/taiga-ui-kit-directives-button-vertical.mjs +5 -0
- package/esm2022/directives/chevron/chevron.directive.mjs +41 -0
- package/esm2022/directives/chevron/index.mjs +2 -0
- package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +5 -0
- package/esm2022/directives/comment/comment.directive.mjs +35 -0
- package/esm2022/directives/comment/index.mjs +2 -0
- package/esm2022/directives/comment/taiga-ui-kit-directives-comment.mjs +5 -0
- package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +105 -0
- package/esm2022/directives/data-list-dropdown-manager/index.mjs +2 -0
- package/esm2022/directives/fade/fade.directive.mjs +98 -0
- package/esm2022/directives/fade/index.mjs +2 -0
- package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +5 -0
- package/esm2022/directives/highlight/highlight.directive.mjs +88 -0
- package/esm2022/directives/highlight/index.mjs +2 -0
- package/esm2022/directives/index.mjs +16 -0
- package/esm2022/directives/lazy-loading/index.mjs +3 -0
- package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +58 -0
- package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +23 -0
- package/esm2022/directives/present/index.mjs +2 -0
- package/esm2022/directives/present/present.directive.mjs +37 -0
- package/esm2022/directives/sensitive/index.mjs +2 -0
- package/esm2022/directives/sensitive/sensitive.directive.mjs +48 -0
- package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +5 -0
- package/esm2022/directives/skeleton/index.mjs +2 -0
- package/esm2022/directives/skeleton/skeleton.directive.mjs +69 -0
- package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +5 -0
- package/esm2022/directives/tooltip/index.mjs +2 -0
- package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +5 -0
- package/esm2022/directives/tooltip/tooltip.directive.mjs +93 -0
- package/esm2022/directives/unfinished-validator/index.mjs +3 -0
- package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +23 -0
- package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +7 -0
- package/esm2022/directives/unmask-handler/index.mjs +2 -0
- package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +5 -0
- package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +35 -0
- package/esm2022/index.mjs +6 -0
- package/esm2022/pipes/emails/emails.options.mjs +11 -0
- package/esm2022/pipes/emails/emails.pipe.mjs +26 -0
- package/esm2022/pipes/emails/index.mjs +3 -0
- package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +5 -0
- package/esm2022/pipes/field-error/field-error-content-pipe.mjs +42 -0
- package/esm2022/pipes/field-error/field-error-pipe.mjs +103 -0
- package/esm2022/pipes/field-error/index.mjs +3 -0
- package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +59 -0
- package/esm2022/pipes/filter-by-input/index.mjs +2 -0
- package/esm2022/pipes/index.mjs +7 -0
- package/esm2022/pipes/sort-countries/index.mjs +2 -0
- package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +23 -0
- package/esm2022/pipes/stringify/index.mjs +2 -0
- package/esm2022/pipes/stringify/stringify.pipe.mjs +18 -0
- package/esm2022/pipes/stringify-content/index.mjs +2 -0
- package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +18 -0
- package/esm2022/tokens/calendar-date-stream.mjs +24 -0
- package/esm2022/tokens/date-inputs-value-transformers.mjs +15 -0
- package/esm2022/tokens/i18n.mjs +26 -0
- package/esm2022/tokens/index.mjs +9 -0
- package/esm2022/tokens/input-date-options.mjs +16 -0
- package/esm2022/tokens/items-handlers.mjs +15 -0
- package/esm2022/tokens/mobile-calendar.mjs +13 -0
- package/esm2022/tokens/preview-icons.mjs +14 -0
- package/esm2022/tokens/validation-errors.mjs +6 -0
- package/esm2022/utils/create-time-periods.mjs +12 -0
- package/esm2022/utils/index.mjs +4 -0
- package/esm2022/utils/is-flat.mjs +4 -0
- package/esm2022/utils/toggle-day.mjs +6 -0
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +197 -0
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs +48 -0
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +169 -0
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +39 -0
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-badge.mjs +62 -0
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs +41 -0
- package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-block.mjs +76 -0
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +46 -0
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs +77 -0
- package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +202 -0
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +206 -0
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-carousel.mjs +264 -0
- package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +81 -0
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-chip.mjs +77 -0
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-compass.mjs +26 -0
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-confirm.mjs +68 -0
- package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +85 -0
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +83 -0
- package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-files.mjs +547 -0
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-filter.mjs +80 -0
- package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs +39 -0
- package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +203 -0
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +150 -0
- package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +171 -0
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +227 -0
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +86 -0
- package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-pin.mjs +26 -0
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-preview-preview-dialog.mjs +74 -0
- package/fesm2022/taiga-ui-kit-components-preview-preview-dialog.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-preview.mjs +369 -0
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-progress-progress-segmented.mjs +40 -0
- package/fesm2022/taiga-ui-kit-components-progress-progress-segmented.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-progress.mjs +155 -0
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-pulse.mjs +31 -0
- package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-push.mjs +133 -0
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +78 -0
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-radio.mjs +80 -0
- package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-range.mjs +223 -0
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-rating.mjs +97 -0
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +81 -0
- package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +128 -0
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-slider.mjs +299 -0
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +196 -0
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-switch.mjs +67 -0
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +513 -0
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-tiles.mjs +286 -0
- package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-tree.mjs +357 -0
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components.mjs +48 -0
- package/fesm2022/taiga-ui-kit-components.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs +43 -0
- package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs +35 -0
- package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-button-vertical.mjs +35 -0
- package/fesm2022/taiga-ui-kit-directives-button-vertical.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +47 -0
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-comment.mjs +41 -0
- package/fesm2022/taiga-ui-kit-directives-comment.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +111 -0
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +104 -0
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs +94 -0
- package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +82 -0
- package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-present.mjs +43 -0
- package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +54 -0
- package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +75 -0
- package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +99 -0
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +35 -0
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +41 -0
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-directives.mjs +20 -0
- package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs +42 -0
- package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +147 -0
- package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +65 -0
- package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +29 -0
- package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +24 -0
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +24 -0
- package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-pipes.mjs +11 -0
- package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-tokens.mjs +130 -0
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-utils.mjs +29 -0
- package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit.mjs +10 -0
- package/fesm2022/taiga-ui-kit.mjs.map +1 -0
- package/index.d.ts +0 -9
- package/package.json +461 -28
- package/pipes/emails/emails.options.d.ts +1 -0
- package/pipes/emails/emails.pipe.d.ts +8 -0
- package/pipes/emails/index.d.ts +2 -0
- package/pipes/field-error/field-error-content-pipe.d.ts +3 -4
- package/pipes/field-error/field-error-pipe.d.ts +9 -10
- package/pipes/field-error/index.d.ts +0 -1
- package/pipes/filter-by-input/filter-by-input.pipe.d.ts +12 -10
- package/pipes/filter-by-input/index.d.ts +0 -3
- package/pipes/index.d.ts +1 -3
- package/pipes/sort-countries/index.d.ts +0 -1
- package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -5
- package/pipes/stringify/index.d.ts +0 -1
- package/pipes/stringify/stringify.pipe.d.ts +3 -3
- package/pipes/stringify-content/index.d.ts +0 -1
- package/pipes/stringify-content/stringify-content.pipe.d.ts +4 -4
- package/tokens/calendar-date-stream.d.ts +6 -4
- package/tokens/date-inputs-value-transformers.d.ts +5 -4
- package/tokens/i18n.d.ts +13 -5
- package/tokens/index.d.ts +1 -3
- package/tokens/input-date-options.d.ts +6 -5
- package/tokens/items-handlers.d.ts +2 -2
- package/tokens/mobile-calendar.d.ts +3 -1
- package/tokens/preview-icons.d.ts +12 -0
- package/tokens/validation-errors.d.ts +3 -3
- package/utils/create-time-periods.d.ts +2 -0
- package/utils/index.d.ts +3 -6
- package/utils/toggle-day.d.ts +2 -0
- package/abstract/abstract-native-select.d.ts +0 -18
- package/abstract/index.d.ts +0 -1
- package/abstract/package.json +0 -10
- package/abstract/taiga-ui-kit-abstract.d.ts +0 -5
- package/bundles/taiga-ui-kit-abstract.umd.js +0 -87
- package/bundles/taiga-ui-kit-abstract.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-classes.umd.js +0 -57
- package/bundles/taiga-ui-kit-classes.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +0 -648
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +0 -469
- package/bundles/taiga-ui-kit-components-action.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +0 -140
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +0 -512
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +0 -142
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +0 -163
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +0 -435
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +0 -618
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +0 -588
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +0 -696
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +0 -515
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +0 -455
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +0 -479
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +0 -703
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +0 -526
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js +0 -459
- package/bundles/taiga-ui-kit-components-elastic-container.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +0 -678
- package/bundles/taiga-ui-kit-components-files.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +0 -478
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +0 -573
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +0 -682
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +0 -837
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +0 -898
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +0 -848
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +0 -849
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +0 -483
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +0 -626
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +0 -660
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +0 -814
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +0 -592
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +0 -684
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +0 -785
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +0 -667
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +0 -608
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +0 -972
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +0 -894
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +0 -578
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +0 -528
- package/bundles/taiga-ui-kit-components-input.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +0 -152
- package/bundles/taiga-ui-kit-components-island.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +0 -563
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +0 -616
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +0 -98
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +0 -415
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +0 -1213
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +0 -681
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +0 -493
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +0 -643
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-prompt.umd.js +0 -100
- package/bundles/taiga-ui-kit-components-prompt.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +0 -658
- package/bundles/taiga-ui-kit-components-push.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +0 -515
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +0 -73
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +0 -486
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +0 -498
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +0 -567
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +0 -683
- package/bundles/taiga-ui-kit-components-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +0 -518
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js +0 -452
- package/bundles/taiga-ui-kit-components-routable-dialog.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +0 -160
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +0 -807
- package/bundles/taiga-ui-kit-components-select.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +0 -808
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +0 -634
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +0 -1121
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +0 -300
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-textarea.umd.js +0 -839
- package/bundles/taiga-ui-kit-components-textarea.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +0 -713
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +0 -581
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +0 -568
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-components.umd.js +0 -411
- package/bundles/taiga-ui-kit-components.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-constants.umd.js +0 -452
- package/bundles/taiga-ui-kit-constants.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +0 -508
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +0 -152
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +0 -477
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-mask.umd.js +0 -201
- package/bundles/taiga-ui-kit-directives-mask.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +0 -121
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +0 -87
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +0 -94
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +0 -68
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-directives.umd.js +0 -63
- package/bundles/taiga-ui-kit-directives.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-interfaces.umd.js +0 -11
- package/bundles/taiga-ui-kit-interfaces.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +0 -195
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-internal.umd.js +0 -21
- package/bundles/taiga-ui-kit-internal.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js +0 -565
- package/bundles/taiga-ui-kit-pipes-field-error.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +0 -489
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js +0 -76
- package/bundles/taiga-ui-kit-pipes-iso-to-country-code.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js +0 -395
- package/bundles/taiga-ui-kit-pipes-sort-countries.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js +0 -73
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js +0 -70
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js +0 -98
- package/bundles/taiga-ui-kit-pipes-to-country-code.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js +0 -70
- package/bundles/taiga-ui-kit-pipes-to-year.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-pipes.umd.js +0 -63
- package/bundles/taiga-ui-kit-pipes.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-providers.umd.js +0 -39
- package/bundles/taiga-ui-kit-providers.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-services.umd.js +0 -67
- package/bundles/taiga-ui-kit-services.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +0 -372
- package/bundles/taiga-ui-kit-tokens.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-types.umd.js +0 -11
- package/bundles/taiga-ui-kit-types.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-files.umd.js +0 -39
- package/bundles/taiga-ui-kit-utils-files.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +0 -37
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +0 -522
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-math.umd.js +0 -372
- package/bundles/taiga-ui-kit-utils-math.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js +0 -412
- package/bundles/taiga-ui-kit-utils-miscellaneous.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils-phone.umd.js +0 -31
- package/bundles/taiga-ui-kit-utils-phone.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-utils.umd.js +0 -51
- package/bundles/taiga-ui-kit-utils.umd.js.map +0 -1
- package/bundles/taiga-ui-kit-validators.umd.js +0 -30
- package/bundles/taiga-ui-kit-validators.umd.js.map +0 -1
- package/bundles/taiga-ui-kit.umd.js +0 -99
- package/bundles/taiga-ui-kit.umd.js.map +0 -1
- package/classes/day-range-period.d.ts +0 -9
- package/classes/index.d.ts +0 -3
- package/classes/named-day.d.ts +0 -8
- package/classes/package.json +0 -10
- package/classes/stringifiable-item.d.ts +0 -10
- package/classes/taiga-ui-kit-classes.d.ts +0 -5
- package/components/accordion/accordion-item/accordion-item-content.directive.d.ts +0 -8
- package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +0 -5
- package/components/accordion/accordion-item/accordion-item.component.d.ts +0 -36
- package/components/accordion/accordion.component.d.ts +0 -14
- package/components/accordion/accordion.module.d.ts +0 -14
- package/components/accordion/package.json +0 -10
- package/components/accordion/taiga-ui-kit-components-accordion.d.ts +0 -5
- package/components/action/action.component.d.ts +0 -15
- package/components/action/action.module.d.ts +0 -10
- package/components/action/index.d.ts +0 -2
- package/components/action/package.json +0 -10
- package/components/action/taiga-ui-kit-components-action.d.ts +0 -5
- package/components/arrow/arrow.component.d.ts +0 -15
- package/components/arrow/arrow.module.d.ts +0 -10
- package/components/arrow/arrow.options.d.ts +0 -13
- package/components/arrow/arrow.providers.d.ts +0 -14
- package/components/arrow/index.d.ts +0 -4
- package/components/arrow/package.json +0 -10
- package/components/arrow/taiga-ui-kit-components-arrow.d.ts +0 -5
- package/components/avatar/avatar.module.d.ts +0 -10
- package/components/avatar/package.json +0 -10
- package/components/avatar/taiga-ui-kit-components-avatar.d.ts +0 -5
- package/components/badge/badge.component.d.ts +0 -19
- package/components/badge/badge.module.d.ts +0 -8
- package/components/badge/package.json +0 -10
- package/components/badge/taiga-ui-kit-components-badge.d.ts +0 -5
- package/components/badged-content/badged-content.module.d.ts +0 -11
- package/components/badged-content/package.json +0 -10
- package/components/badged-content/taiga-ui-kit-components-badged-content.d.ts +0 -5
- package/components/breadcrumbs/breadcrumbs.module.d.ts +0 -10
- package/components/breadcrumbs/package.json +0 -10
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.d.ts +0 -5
- package/components/calendar-month/calendar-month.module.d.ts +0 -10
- package/components/calendar-month/package.json +0 -10
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.d.ts +0 -5
- package/components/calendar-range/calendar-range.module.d.ts +0 -11
- package/components/calendar-range/package.json +0 -10
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.d.ts +0 -5
- package/components/carousel/carousel.module.d.ts +0 -14
- package/components/carousel/package.json +0 -10
- package/components/carousel/taiga-ui-kit-components-carousel.d.ts +0 -5
- package/components/checkbox/checkbox.module.d.ts +0 -10
- package/components/checkbox/package.json +0 -10
- package/components/checkbox/taiga-ui-kit-components-checkbox.d.ts +0 -5
- package/components/checkbox-block/checkbox-block.component.d.ts +0 -24
- package/components/checkbox-block/checkbox-block.module.d.ts +0 -12
- package/components/checkbox-block/index.d.ts +0 -2
- package/components/checkbox-block/package.json +0 -10
- package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.d.ts +0 -5
- package/components/checkbox-labeled/checkbox-labeled.component.d.ts +0 -20
- package/components/checkbox-labeled/checkbox-labeled.module.d.ts +0 -10
- package/components/checkbox-labeled/index.d.ts +0 -2
- package/components/checkbox-labeled/package.json +0 -10
- package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.d.ts +0 -5
- package/components/combo-box/combo-box-strict.directive.d.ts +0 -10
- package/components/combo-box/combo-box.component.d.ts +0 -48
- package/components/combo-box/combo-box.directive.d.ts +0 -9
- package/components/combo-box/combo-box.module.d.ts +0 -15
- package/components/combo-box/index.d.ts +0 -4
- package/components/combo-box/package.json +0 -10
- package/components/combo-box/taiga-ui-kit-components-combo-box.d.ts +0 -5
- package/components/data-list-wrapper/data-list-wrapper.d.ts +0 -19
- package/components/data-list-wrapper/package.json +0 -10
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.d.ts +0 -5
- package/components/elastic-container/elastic-container.module.d.ts +0 -8
- package/components/elastic-container/package.json +0 -10
- package/components/elastic-container/taiga-ui-kit-components-elastic-container.d.ts +0 -5
- package/components/files/file/file-options.d.ts +0 -8
- package/components/files/files.component.d.ts +0 -16
- package/components/files/files.module.d.ts +0 -12
- package/components/files/package.json +0 -10
- package/components/files/taiga-ui-kit-components-files.d.ts +0 -5
- package/components/filter/filter.module.d.ts +0 -13
- package/components/filter/package.json +0 -10
- package/components/filter/taiga-ui-kit-components-filter.d.ts +0 -5
- package/components/input/index.d.ts +0 -3
- package/components/input/input.component.d.ts +0 -26
- package/components/input/input.directive.d.ts +0 -8
- package/components/input/input.module.d.ts +0 -11
- package/components/input/package.json +0 -10
- package/components/input/taiga-ui-kit-components-input.d.ts +0 -5
- package/components/input-copy/index.d.ts +0 -4
- package/components/input-copy/input-copy.component.d.ts +0 -31
- package/components/input-copy/input-copy.directive.d.ts +0 -8
- package/components/input-copy/input-copy.module.d.ts +0 -11
- package/components/input-copy/input-copy.options.d.ts +0 -13
- package/components/input-copy/package.json +0 -10
- package/components/input-copy/taiga-ui-kit-components-input-copy.d.ts +0 -5
- package/components/input-count/index.d.ts +0 -4
- package/components/input-count/input-count.component.d.ts +0 -53
- package/components/input-count/input-count.directive.d.ts +0 -10
- package/components/input-count/input-count.module.d.ts +0 -16
- package/components/input-count/input-count.options.d.ts +0 -21
- package/components/input-count/package.json +0 -10
- package/components/input-count/taiga-ui-kit-components-input-count.d.ts +0 -5
- package/components/input-date/index.d.ts +0 -3
- package/components/input-date/input-date.component.d.ts +0 -67
- package/components/input-date/input-date.directive.d.ts +0 -13
- package/components/input-date/input-date.module.d.ts +0 -15
- package/components/input-date/native-date/native-date.component.d.ts +0 -14
- package/components/input-date/package.json +0 -10
- package/components/input-date/taiga-ui-kit-components-input-date.d.ts +0 -5
- package/components/input-date-range/index.d.ts +0 -3
- package/components/input-date-range/input-date-range.component.d.ts +0 -74
- package/components/input-date-range/input-date-range.directive.d.ts +0 -12
- package/components/input-date-range/input-date-range.module.d.ts +0 -15
- package/components/input-date-range/package.json +0 -10
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.d.ts +0 -5
- package/components/input-date-time/index.d.ts +0 -3
- package/components/input-date-time/input-date-time.component.d.ts +0 -72
- package/components/input-date-time/input-date-time.directive.d.ts +0 -13
- package/components/input-date-time/input-date-time.module.d.ts +0 -15
- package/components/input-date-time/native-date-time/native-date-time.directive.d.ts +0 -10
- package/components/input-date-time/package.json +0 -10
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.d.ts +0 -5
- package/components/input-files/index.d.ts +0 -4
- package/components/input-files/input-files.component.d.ts +0 -57
- package/components/input-files/input-files.directive.d.ts +0 -20
- package/components/input-files/input-files.module.d.ts +0 -14
- package/components/input-files/input-files.options.d.ts +0 -20
- package/components/input-files/max-size-rejection-error.pipe.d.ts +0 -13
- package/components/input-files/package.json +0 -10
- package/components/input-files/taiga-ui-kit-components-input-files.d.ts +0 -5
- package/components/input-inline/input-inline.module.d.ts +0 -11
- package/components/input-inline/package.json +0 -10
- package/components/input-inline/taiga-ui-kit-components-input-inline.d.ts +0 -5
- package/components/input-month/index.d.ts +0 -3
- package/components/input-month/input-month.component.d.ts +0 -41
- package/components/input-month/input-month.directive.d.ts +0 -17
- package/components/input-month/input-month.module.d.ts +0 -13
- package/components/input-month/package.json +0 -10
- package/components/input-month/taiga-ui-kit-components-input-month.d.ts +0 -5
- package/components/input-month-range/index.d.ts +0 -3
- package/components/input-month-range/input-month-range.component.d.ts +0 -35
- package/components/input-month-range/input-month-range.directive.d.ts +0 -17
- package/components/input-month-range/input-month-range.module.d.ts +0 -12
- package/components/input-month-range/package.json +0 -10
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.d.ts +0 -5
- package/components/input-number/index.d.ts +0 -4
- package/components/input-number/input-number.component.d.ts +0 -57
- package/components/input-number/input-number.directive.d.ts +0 -12
- package/components/input-number/input-number.module.d.ts +0 -13
- package/components/input-number/input-number.options.d.ts +0 -21
- package/components/input-number/package.json +0 -10
- package/components/input-number/taiga-ui-kit-components-input-number.d.ts +0 -5
- package/components/input-password/index.d.ts +0 -4
- package/components/input-password/input-password.component.d.ts +0 -32
- package/components/input-password/input-password.directive.d.ts +0 -12
- package/components/input-password/input-password.module.d.ts +0 -12
- package/components/input-password/input-password.options.d.ts +0 -17
- package/components/input-password/package.json +0 -10
- package/components/input-password/taiga-ui-kit-components-input-password.d.ts +0 -5
- package/components/input-phone/index.d.ts +0 -4
- package/components/input-phone/input-phone.component.d.ts +0 -47
- package/components/input-phone/input-phone.directive.d.ts +0 -13
- package/components/input-phone/input-phone.module.d.ts +0 -12
- package/components/input-phone/input-phone.options.d.ts +0 -12
- package/components/input-phone/package.json +0 -10
- package/components/input-phone/taiga-ui-kit-components-input-phone.d.ts +0 -5
- package/components/input-phone/utils/complete-phone-insertion-preprocessor.d.ts +0 -9
- package/components/input-phone/utils/create-phone-mask-expression.d.ts +0 -7
- package/components/input-phone/utils/index.d.ts +0 -2
- package/components/input-phone-international/input-phone-international.module.d.ts +0 -14
- package/components/input-phone-international/package.json +0 -10
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.d.ts +0 -5
- package/components/input-phone-international/utils/extract-value-from-event.d.ts +0 -1
- package/components/input-range/index.d.ts +0 -2
- package/components/input-range/input-range.component.d.ts +0 -55
- package/components/input-range/input-range.module.d.ts +0 -14
- package/components/input-range/package.json +0 -10
- package/components/input-range/taiga-ui-kit-components-input-range.d.ts +0 -5
- package/components/input-slider/index.d.ts +0 -2
- package/components/input-slider/input-slider.component.d.ts +0 -45
- package/components/input-slider/input-slider.module.d.ts +0 -14
- package/components/input-slider/package.json +0 -10
- package/components/input-slider/taiga-ui-kit-components-input-slider.d.ts +0 -5
- package/components/input-tag/index.d.ts +0 -3
- package/components/input-tag/input-tag.component.d.ts +0 -92
- package/components/input-tag/input-tag.module.d.ts +0 -13
- package/components/input-tag/input-tag.options.d.ts +0 -13
- package/components/input-tag/package.json +0 -10
- package/components/input-tag/taiga-ui-kit-components-input-tag.d.ts +0 -5
- package/components/input-time/index.d.ts +0 -4
- package/components/input-time/input-time.component.d.ts +0 -60
- package/components/input-time/input-time.directive.d.ts +0 -13
- package/components/input-time/input-time.module.d.ts +0 -15
- package/components/input-time/input-time.options.d.ts +0 -19
- package/components/input-time/native-time/native-time.component.d.ts +0 -14
- package/components/input-time/package.json +0 -10
- package/components/input-time/taiga-ui-kit-components-input-time.d.ts +0 -5
- package/components/input-year/index.d.ts +0 -3
- package/components/input-year/input-year.component.d.ts +0 -35
- package/components/input-year/input-year.directive.d.ts +0 -10
- package/components/input-year/input-year.module.d.ts +0 -12
- package/components/input-year/package.json +0 -10
- package/components/input-year/taiga-ui-kit-components-input-year.d.ts +0 -5
- package/components/island/index.d.ts +0 -2
- package/components/island/island.component.d.ts +0 -16
- package/components/island/island.module.d.ts +0 -8
- package/components/island/package.json +0 -10
- package/components/island/taiga-ui-kit-components-island.d.ts +0 -5
- package/components/items-with-more/items-with-more.module.d.ts +0 -12
- package/components/items-with-more/package.json +0 -10
- package/components/items-with-more/taiga-ui-kit-components-items-with-more.d.ts +0 -5
- package/components/line-clamp/line-clamp.module.d.ts +0 -13
- package/components/line-clamp/package.json +0 -10
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.d.ts +0 -5
- package/components/marker-icon/index.d.ts +0 -2
- package/components/marker-icon/marker-icon.component.d.ts +0 -13
- package/components/marker-icon/marker-icon.module.d.ts +0 -9
- package/components/marker-icon/package.json +0 -10
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.d.ts +0 -5
- package/components/multi-select/hide-selected.pipe.d.ts +0 -13
- package/components/multi-select/index.d.ts +0 -10
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +0 -26
- package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +0 -8
- package/components/multi-select/multi-select.component.d.ts +0 -66
- package/components/multi-select/multi-select.directive.d.ts +0 -14
- package/components/multi-select/multi-select.module.d.ts +0 -23
- package/components/multi-select/multi-select.options.d.ts +0 -13
- package/components/multi-select/native-multi-select/native-multi-select-group.component.d.ts +0 -9
- package/components/multi-select/native-multi-select/native-multi-select.component.d.ts +0 -8
- package/components/multi-select/native-multi-select/native-multi-select.d.ts +0 -11
- package/components/multi-select/package.json +0 -10
- package/components/multi-select/taiga-ui-kit-components-multi-select.d.ts +0 -5
- package/components/multi-select-option/index.d.ts +0 -2
- package/components/multi-select-option/multi-select-option.component.d.ts +0 -9
- package/components/multi-select-option/multi-select-option.module.d.ts +0 -9
- package/components/multi-select-option/package.json +0 -10
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.d.ts +0 -5
- package/components/package.json +0 -10
- package/components/pagination/package.json +0 -10
- package/components/pagination/pagination.module.d.ts +0 -11
- package/components/pagination/taiga-ui-kit-components-pagination.d.ts +0 -5
- package/components/pdf-viewer/package.json +0 -10
- package/components/pdf-viewer/pdf-viewer.module.d.ts +0 -11
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +0 -5
- package/components/progress/package.json +0 -10
- package/components/progress/progress-segmented/progress-segmented.component.d.ts +0 -14
- package/components/progress/progress.module.d.ts +0 -13
- package/components/progress/taiga-ui-kit-components-progress.d.ts +0 -5
- package/components/prompt/index.d.ts +0 -2
- package/components/prompt/package.json +0 -10
- package/components/prompt/prompt.component.d.ts +0 -25
- package/components/prompt/prompt.module.d.ts +0 -11
- package/components/prompt/taiga-ui-kit-components-prompt.d.ts +0 -5
- package/components/push/package.json +0 -10
- package/components/push/push-alert.directive.d.ts +0 -12
- package/components/push/push.module.d.ts +0 -13
- package/components/push/taiga-ui-kit-components-push.d.ts +0 -5
- package/components/radio/package.json +0 -10
- package/components/radio/radio.module.d.ts +0 -10
- package/components/radio/taiga-ui-kit-components-radio.d.ts +0 -5
- package/components/radio-block/index.d.ts +0 -2
- package/components/radio-block/package.json +0 -10
- package/components/radio-block/radio-block.component.d.ts +0 -28
- package/components/radio-block/radio-block.module.d.ts +0 -11
- package/components/radio-block/taiga-ui-kit-components-radio-block.d.ts +0 -5
- package/components/radio-group/index.d.ts +0 -2
- package/components/radio-group/package.json +0 -10
- package/components/radio-group/radio-group.component.d.ts +0 -7
- package/components/radio-group/radio-group.module.d.ts +0 -7
- package/components/radio-group/taiga-ui-kit-components-radio-group.d.ts +0 -5
- package/components/radio-labeled/index.d.ts +0 -2
- package/components/radio-labeled/package.json +0 -10
- package/components/radio-labeled/radio-labeled.component.d.ts +0 -25
- package/components/radio-labeled/radio-labeled.module.d.ts +0 -11
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.d.ts +0 -5
- package/components/radio-list/package.json +0 -10
- package/components/radio-list/radio-list.module.d.ts +0 -12
- package/components/radio-list/taiga-ui-kit-components-radio-list.d.ts +0 -5
- package/components/range/package.json +0 -10
- package/components/range/range.module.d.ts +0 -12
- package/components/range/taiga-ui-kit-components-range.d.ts +0 -5
- package/components/rating/package.json +0 -10
- package/components/rating/rating.module.d.ts +0 -10
- package/components/rating/taiga-ui-kit-components-rating.d.ts +0 -5
- package/components/routable-dialog/package.json +0 -10
- package/components/routable-dialog/routable-dialog.module.d.ts +0 -7
- package/components/routable-dialog/taiga-ui-kit-components-routable-dialog.d.ts +0 -5
- package/components/select/index.d.ts +0 -6
- package/components/select/native-select/native-select-group.component.d.ts +0 -13
- package/components/select/native-select/native-select.component.d.ts +0 -12
- package/components/select/package.json +0 -10
- package/components/select/select.component.d.ts +0 -39
- package/components/select/select.directive.d.ts +0 -12
- package/components/select/select.module.d.ts +0 -18
- package/components/select/select.options.d.ts +0 -12
- package/components/select/taiga-ui-kit-components-select.d.ts +0 -5
- package/components/select-option/index.d.ts +0 -2
- package/components/select-option/package.json +0 -10
- package/components/select-option/select-option.component.d.ts +0 -27
- package/components/select-option/select-option.module.d.ts +0 -9
- package/components/select-option/taiga-ui-kit-components-select-option.d.ts +0 -5
- package/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.d.ts +0 -15
- package/components/slider/package.json +0 -10
- package/components/slider/slider.module.d.ts +0 -11
- package/components/slider/taiga-ui-kit-components-slider.d.ts +0 -5
- package/components/stepper/package.json +0 -10
- package/components/stepper/step/step.component.d.ts +0 -22
- package/components/stepper/stepper.module.d.ts +0 -10
- package/components/stepper/taiga-ui-kit-components-stepper.d.ts +0 -5
- package/components/tabs/package.json +0 -10
- package/components/tabs/tab/tab.component.d.ts +0 -19
- package/components/tabs/tab/tab.providers.d.ts +0 -8
- package/components/tabs/tabs/tabs.component.d.ts +0 -23
- package/components/tabs/tabs-vertical/tabs-vertical.component.d.ts +0 -11
- package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +0 -48
- package/components/tabs/tabs-with-more/tabs-with-more.providers.d.ts +0 -4
- package/components/tabs/tabs.module.d.ts +0 -16
- package/components/tabs/taiga-ui-kit-components-tabs.d.ts +0 -5
- package/components/tabs/underline/underline.component.d.ts +0 -18
- package/components/tag/index.d.ts +0 -3
- package/components/tag/package.json +0 -10
- package/components/tag/tag.component.d.ts +0 -44
- package/components/tag/tag.module.d.ts +0 -11
- package/components/tag/tag.options.d.ts +0 -15
- package/components/tag/taiga-ui-kit-components-tag.d.ts +0 -5
- package/components/taiga-ui-kit-components.d.ts +0 -5
- package/components/textarea/deprecated.d.ts +0 -30
- package/components/textarea/index.d.ts +0 -4
- package/components/textarea/package.json +0 -10
- package/components/textarea/taiga-ui-kit-components-textarea.d.ts +0 -5
- package/components/textarea/textarea.component.d.ts +0 -51
- package/components/textarea/textarea.directive.d.ts +0 -8
- package/components/textarea/textarea.module.d.ts +0 -13
- package/components/tiles/package.json +0 -10
- package/components/tiles/taiga-ui-kit-components-tiles.d.ts +0 -5
- package/components/tiles/tiles.module.d.ts +0 -9
- package/components/toggle/index.d.ts +0 -3
- package/components/toggle/package.json +0 -10
- package/components/toggle/taiga-ui-kit-components-toggle.d.ts +0 -5
- package/components/toggle/toggle.component.d.ts +0 -32
- package/components/toggle/toggle.module.d.ts +0 -11
- package/components/toggle/toggle.options.d.ts +0 -24
- package/components/tree/components/tree-item/tree-item.providers.d.ts +0 -2
- package/components/tree/package.json +0 -10
- package/components/tree/taiga-ui-kit-components-tree.d.ts +0 -5
- package/components/tree/tree.module.d.ts +0 -17
- package/constants/date-mode-maskito-adapter.d.ts +0 -3
- package/constants/date-time-separator.d.ts +0 -1
- package/constants/empty-mask.d.ts +0 -6
- package/constants/group-class-names.d.ts +0 -5
- package/constants/index.d.ts +0 -10
- package/constants/mask-after-code-regexp.d.ts +0 -1
- package/constants/masks.d.ts +0 -7
- package/constants/math.d.ts +0 -4
- package/constants/max-day-range-length-mapper.d.ts +0 -7
- package/constants/max-time-values.d.ts +0 -2
- package/constants/package.json +0 -10
- package/constants/router-link-options.d.ts +0 -9
- package/constants/taiga-ui-kit-constants.d.ts +0 -5
- package/directives/data-list-dropdown-manager/data-list-dropdown-manager.module.d.ts +0 -7
- package/directives/data-list-dropdown-manager/package.json +0 -10
- package/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.d.ts +0 -5
- package/directives/highlight/highlight.module.d.ts +0 -7
- package/directives/highlight/package.json +0 -10
- package/directives/highlight/taiga-ui-kit-directives-highlight.d.ts +0 -5
- package/directives/lazy-loading/lazy-loading.module.d.ts +0 -7
- package/directives/lazy-loading/package.json +0 -10
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.d.ts +0 -5
- package/directives/mask/index.d.ts +0 -1
- package/directives/mask/legacy-mask.d.ts +0 -53
- package/directives/mask/package.json +0 -10
- package/directives/mask/taiga-ui-kit-directives-mask.d.ts +0 -5
- package/directives/package.json +0 -10
- package/directives/present/package.json +0 -10
- package/directives/present/present.module.d.ts +0 -7
- package/directives/present/taiga-ui-kit-directives-present.d.ts +0 -5
- package/directives/project-class/index.d.ts +0 -2
- package/directives/project-class/package.json +0 -10
- package/directives/project-class/project-class.directive.d.ts +0 -13
- package/directives/project-class/project-class.module.d.ts +0 -7
- package/directives/project-class/taiga-ui-kit-directives-project-class.d.ts +0 -5
- package/directives/taiga-ui-kit-directives.d.ts +0 -5
- package/directives/unfinished-validator/package.json +0 -10
- package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.d.ts +0 -5
- package/directives/unfinished-validator/unfinished-validator.module.d.ts +0 -7
- package/directives/value-accessor/index.d.ts +0 -2
- package/directives/value-accessor/package.json +0 -10
- package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.d.ts +0 -5
- package/directives/value-accessor/value-accessor.directive.d.ts +0 -5
- package/directives/value-accessor/value-accessor.module.d.ts +0 -7
- package/esm2015/abstract/abstract-native-select.js +0 -49
- package/esm2015/abstract/index.js +0 -2
- package/esm2015/abstract/taiga-ui-kit-abstract.js +0 -5
- package/esm2015/classes/day-range-period.js +0 -11
- package/esm2015/classes/index.js +0 -4
- package/esm2015/classes/named-day.js +0 -11
- package/esm2015/classes/stringifiable-item.js +0 -13
- package/esm2015/classes/taiga-ui-kit-classes.js +0 -5
- package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +0 -25
- package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +0 -13
- package/esm2015/components/accordion/accordion-item/accordion-item.component.js +0 -133
- package/esm2015/components/accordion/accordion.component.js +0 -54
- package/esm2015/components/accordion/accordion.module.js +0 -65
- package/esm2015/components/accordion/index.js +0 -6
- package/esm2015/components/action/action.component.js +0 -70
- package/esm2015/components/action/action.module.js +0 -33
- package/esm2015/components/action/index.js +0 -3
- package/esm2015/components/action/taiga-ui-kit-components-action.js +0 -5
- package/esm2015/components/arrow/arrow.component.js +0 -48
- package/esm2015/components/arrow/arrow.module.js +0 -20
- package/esm2015/components/arrow/arrow.options.js +0 -14
- package/esm2015/components/arrow/arrow.providers.js +0 -14
- package/esm2015/components/arrow/index.js +0 -5
- package/esm2015/components/arrow/taiga-ui-kit-components-arrow.js +0 -5
- package/esm2015/components/avatar/avatar.component.js +0 -99
- package/esm2015/components/avatar/avatar.module.js +0 -20
- package/esm2015/components/avatar/avatar.options.js +0 -15
- package/esm2015/components/avatar/index.js +0 -4
- package/esm2015/components/badge/badge.component.js +0 -76
- package/esm2015/components/badge/badge.module.js +0 -18
- package/esm2015/components/badge/index.js +0 -3
- package/esm2015/components/badged-content/badged-content.component.js +0 -88
- package/esm2015/components/badged-content/badged-content.module.js +0 -21
- package/esm2015/components/badged-content/index.js +0 -3
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +0 -50
- package/esm2015/components/breadcrumbs/breadcrumbs.module.js +0 -20
- package/esm2015/components/breadcrumbs/breadcrumbs.options.js +0 -11
- package/esm2015/components/breadcrumbs/index.js +0 -4
- package/esm2015/components/calendar-month/calendar-month.component.js +0 -197
- package/esm2015/components/calendar-month/calendar-month.module.js +0 -48
- package/esm2015/components/calendar-month/index.js +0 -3
- package/esm2015/components/calendar-range/calendar-range.component.js +0 -169
- package/esm2015/components/calendar-range/calendar-range.module.js +0 -46
- package/esm2015/components/calendar-range/index.js +0 -3
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +0 -22
- package/esm2015/components/carousel/carousel-buttons.directive.js +0 -27
- package/esm2015/components/carousel/carousel-scroll.directive.js +0 -27
- package/esm2015/components/carousel/carousel.component.js +0 -143
- package/esm2015/components/carousel/carousel.directive.js +0 -42
- package/esm2015/components/carousel/carousel.module.js +0 -58
- package/esm2015/components/carousel/index.js +0 -7
- package/esm2015/components/checkbox/checkbox.component.js +0 -76
- package/esm2015/components/checkbox/checkbox.module.js +0 -39
- package/esm2015/components/checkbox/index.js +0 -3
- package/esm2015/components/checkbox-block/checkbox-block.component.js +0 -105
- package/esm2015/components/checkbox-block/checkbox-block.module.js +0 -41
- package/esm2015/components/checkbox-block/index.js +0 -3
- package/esm2015/components/checkbox-block/taiga-ui-kit-components-checkbox-block.js +0 -5
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +0 -76
- package/esm2015/components/checkbox-labeled/checkbox-labeled.module.js +0 -20
- package/esm2015/components/checkbox-labeled/index.js +0 -3
- package/esm2015/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.js +0 -5
- package/esm2015/components/combo-box/combo-box-strict.directive.js +0 -32
- package/esm2015/components/combo-box/combo-box.component.js +0 -203
- package/esm2015/components/combo-box/combo-box.directive.js +0 -21
- package/esm2015/components/combo-box/combo-box.module.js +0 -67
- package/esm2015/components/combo-box/index.js +0 -5
- package/esm2015/components/combo-box/taiga-ui-kit-components-combo-box.js +0 -5
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +0 -41
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +0 -44
- package/esm2015/components/data-list-wrapper/data-list-wrapper.js +0 -40
- package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +0 -44
- package/esm2015/components/data-list-wrapper/index.js +0 -5
- package/esm2015/components/elastic-container/elastic-container.component.js +0 -35
- package/esm2015/components/elastic-container/elastic-container.directive.js +0 -58
- package/esm2015/components/elastic-container/elastic-container.module.js +0 -17
- package/esm2015/components/elastic-container/index.js +0 -4
- package/esm2015/components/files/file/file-options.js +0 -10
- package/esm2015/components/files/file/file.component.js +0 -169
- package/esm2015/components/files/files.component.js +0 -52
- package/esm2015/components/files/files.module.js +0 -53
- package/esm2015/components/files/index.js +0 -5
- package/esm2015/components/filter/filter.component.js +0 -78
- package/esm2015/components/filter/filter.module.js +0 -42
- package/esm2015/components/filter/index.js +0 -3
- package/esm2015/components/index.js +0 -67
- package/esm2015/components/input/index.js +0 -4
- package/esm2015/components/input/input.component.js +0 -106
- package/esm2015/components/input/input.directive.js +0 -18
- package/esm2015/components/input/input.module.js +0 -34
- package/esm2015/components/input/taiga-ui-kit-components-input.js +0 -5
- package/esm2015/components/input-copy/index.js +0 -5
- package/esm2015/components/input-copy/input-copy.component.js +0 -124
- package/esm2015/components/input-copy/input-copy.directive.js +0 -18
- package/esm2015/components/input-copy/input-copy.module.js +0 -46
- package/esm2015/components/input-copy/input-copy.options.js +0 -12
- package/esm2015/components/input-copy/taiga-ui-kit-components-input-copy.js +0 -5
- package/esm2015/components/input-count/index.js +0 -5
- package/esm2015/components/input-count/input-count.component.js +0 -192
- package/esm2015/components/input-count/input-count.directive.js +0 -29
- package/esm2015/components/input-count/input-count.module.js +0 -48
- package/esm2015/components/input-count/input-count.options.js +0 -22
- package/esm2015/components/input-count/taiga-ui-kit-components-input-count.js +0 -5
- package/esm2015/components/input-date/index.js +0 -4
- package/esm2015/components/input-date/input-date.component.js +0 -278
- package/esm2015/components/input-date/input-date.directive.js +0 -33
- package/esm2015/components/input-date/input-date.module.js +0 -65
- package/esm2015/components/input-date/native-date/native-date.component.js +0 -50
- package/esm2015/components/input-date/taiga-ui-kit-components-input-date.js +0 -5
- package/esm2015/components/input-date-range/index.js +0 -4
- package/esm2015/components/input-date-range/input-date-range.component.js +0 -321
- package/esm2015/components/input-date-range/input-date-range.directive.js +0 -29
- package/esm2015/components/input-date-range/input-date-range.module.js +0 -68
- package/esm2015/components/input-date-range/taiga-ui-kit-components-input-date-range.js +0 -5
- package/esm2015/components/input-date-time/index.js +0 -4
- package/esm2015/components/input-date-time/input-date-time.component.js +0 -327
- package/esm2015/components/input-date-time/input-date-time.directive.js +0 -30
- package/esm2015/components/input-date-time/input-date-time.module.js +0 -74
- package/esm2015/components/input-date-time/native-date-time/native-date-time.directive.js +0 -47
- package/esm2015/components/input-date-time/taiga-ui-kit-components-input-date-time.js +0 -5
- package/esm2015/components/input-files/index.js +0 -5
- package/esm2015/components/input-files/input-files.component.js +0 -245
- package/esm2015/components/input-files/input-files.directive.js +0 -77
- package/esm2015/components/input-files/input-files.module.js +0 -89
- package/esm2015/components/input-files/input-files.options.js +0 -16
- package/esm2015/components/input-files/max-size-rejection-error.pipe.js +0 -28
- package/esm2015/components/input-files/taiga-ui-kit-components-input-files.js +0 -5
- package/esm2015/components/input-inline/index.js +0 -3
- package/esm2015/components/input-inline/input-inline.component.js +0 -83
- package/esm2015/components/input-inline/input-inline.module.js +0 -37
- package/esm2015/components/input-month/index.js +0 -4
- package/esm2015/components/input-month/input-month.component.js +0 -158
- package/esm2015/components/input-month/input-month.directive.js +0 -54
- package/esm2015/components/input-month/input-month.module.js +0 -51
- package/esm2015/components/input-month/taiga-ui-kit-components-input-month.js +0 -5
- package/esm2015/components/input-month-range/index.js +0 -4
- package/esm2015/components/input-month-range/input-month-range.component.js +0 -137
- package/esm2015/components/input-month-range/input-month-range.directive.js +0 -59
- package/esm2015/components/input-month-range/input-month-range.module.js +0 -56
- package/esm2015/components/input-month-range/taiga-ui-kit-components-input-month-range.js +0 -5
- package/esm2015/components/input-number/index.js +0 -5
- package/esm2015/components/input-number/input-number.component.js +0 -291
- package/esm2015/components/input-number/input-number.directive.js +0 -31
- package/esm2015/components/input-number/input-number.module.js +0 -45
- package/esm2015/components/input-number/input-number.options.js +0 -21
- package/esm2015/components/input-number/taiga-ui-kit-components-input-number.js +0 -5
- package/esm2015/components/input-password/index.js +0 -5
- package/esm2015/components/input-password/input-password.component.js +0 -115
- package/esm2015/components/input-password/input-password.directive.js +0 -28
- package/esm2015/components/input-password/input-password.module.js +0 -53
- package/esm2015/components/input-password/input-password.options.js +0 -16
- package/esm2015/components/input-password/taiga-ui-kit-components-input-password.js +0 -5
- package/esm2015/components/input-phone/index.js +0 -5
- package/esm2015/components/input-phone/input-phone.component.js +0 -235
- package/esm2015/components/input-phone/input-phone.directive.js +0 -31
- package/esm2015/components/input-phone/input-phone.module.js +0 -41
- package/esm2015/components/input-phone/input-phone.options.js +0 -14
- package/esm2015/components/input-phone/taiga-ui-kit-components-input-phone.js +0 -5
- package/esm2015/components/input-phone/utils/complete-phone-insertion-preprocessor.js +0 -41
- package/esm2015/components/input-phone/utils/create-phone-mask-expression.js +0 -17
- package/esm2015/components/input-phone/utils/index.js +0 -3
- package/esm2015/components/input-phone-international/index.js +0 -5
- package/esm2015/components/input-phone-international/input-phone-international.component.js +0 -219
- package/esm2015/components/input-phone-international/input-phone-international.module.js +0 -76
- package/esm2015/components/input-phone-international/input-phone-international.options.js +0 -14
- package/esm2015/components/input-phone-international/utils/extract-value-from-event.js +0 -8
- package/esm2015/components/input-range/index.js +0 -3
- package/esm2015/components/input-range/input-range.component.js +0 -224
- package/esm2015/components/input-range/input-range.module.js +0 -52
- package/esm2015/components/input-range/taiga-ui-kit-components-input-range.js +0 -5
- package/esm2015/components/input-slider/index.js +0 -3
- package/esm2015/components/input-slider/input-slider.component.js +0 -182
- package/esm2015/components/input-slider/input-slider.module.js +0 -46
- package/esm2015/components/input-slider/taiga-ui-kit-components-input-slider.js +0 -5
- package/esm2015/components/input-tag/index.js +0 -4
- package/esm2015/components/input-tag/input-tag.component.js +0 -454
- package/esm2015/components/input-tag/input-tag.module.js +0 -61
- package/esm2015/components/input-tag/input-tag.options.js +0 -14
- package/esm2015/components/input-tag/taiga-ui-kit-components-input-tag.js +0 -5
- package/esm2015/components/input-time/index.js +0 -5
- package/esm2015/components/input-time/input-time.component.js +0 -298
- package/esm2015/components/input-time/input-time.directive.js +0 -33
- package/esm2015/components/input-time/input-time.module.js +0 -59
- package/esm2015/components/input-time/input-time.options.js +0 -18
- package/esm2015/components/input-time/native-time/native-time.component.js +0 -79
- package/esm2015/components/input-time/taiga-ui-kit-components-input-time.js +0 -5
- package/esm2015/components/input-year/index.js +0 -4
- package/esm2015/components/input-year/input-year.component.js +0 -130
- package/esm2015/components/input-year/input-year.directive.js +0 -25
- package/esm2015/components/input-year/input-year.module.js +0 -44
- package/esm2015/components/input-year/taiga-ui-kit-components-input-year.js +0 -5
- package/esm2015/components/island/index.js +0 -3
- package/esm2015/components/island/island.component.js +0 -75
- package/esm2015/components/island/island.module.js +0 -18
- package/esm2015/components/island/taiga-ui-kit-components-island.js +0 -5
- package/esm2015/components/items-with-more/index.js +0 -6
- package/esm2015/components/items-with-more/items-with-more.component.js +0 -70
- package/esm2015/components/items-with-more/items-with-more.directive.js +0 -23
- package/esm2015/components/items-with-more/items-with-more.module.js +0 -36
- package/esm2015/components/items-with-more/items-with-more.service.js +0 -66
- package/esm2015/components/items-with-more/more.directive.js +0 -16
- package/esm2015/components/line-clamp/index.js +0 -5
- package/esm2015/components/line-clamp/line-clamp-box.component.js +0 -43
- package/esm2015/components/line-clamp/line-clamp-position.directive.js +0 -28
- package/esm2015/components/line-clamp/line-clamp.component.js +0 -124
- package/esm2015/components/line-clamp/line-clamp.module.js +0 -45
- package/esm2015/components/line-clamp/line-clamp.options.js +0 -12
- package/esm2015/components/marker-icon/index.js +0 -3
- package/esm2015/components/marker-icon/marker-icon.component.js +0 -45
- package/esm2015/components/marker-icon/marker-icon.module.js +0 -19
- package/esm2015/components/marker-icon/taiga-ui-kit-components-marker-icon.js +0 -5
- package/esm2015/components/multi-select/hide-selected.pipe.js +0 -46
- package/esm2015/components/multi-select/index.js +0 -11
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +0 -116
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +0 -69
- package/esm2015/components/multi-select/multi-select.component.js +0 -235
- package/esm2015/components/multi-select/multi-select.directive.js +0 -29
- package/esm2015/components/multi-select/multi-select.module.js +0 -119
- package/esm2015/components/multi-select/multi-select.options.js +0 -13
- package/esm2015/components/multi-select/native-multi-select/native-multi-select-group.component.js +0 -72
- package/esm2015/components/multi-select/native-multi-select/native-multi-select.component.js +0 -68
- package/esm2015/components/multi-select/native-multi-select/native-multi-select.js +0 -18
- package/esm2015/components/multi-select/taiga-ui-kit-components-multi-select.js +0 -5
- package/esm2015/components/multi-select-option/index.js +0 -3
- package/esm2015/components/multi-select-option/multi-select-option.component.js +0 -33
- package/esm2015/components/multi-select-option/multi-select-option.module.js +0 -19
- package/esm2015/components/multi-select-option/taiga-ui-kit-components-multi-select-option.js +0 -5
- package/esm2015/components/pagination/index.js +0 -3
- package/esm2015/components/pagination/pagination.component.js +0 -245
- package/esm2015/components/pagination/pagination.module.js +0 -40
- package/esm2015/components/pdf-viewer/index.js +0 -6
- package/esm2015/components/pdf-viewer/pdf-viewer.component.js +0 -51
- package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +0 -28
- package/esm2015/components/pdf-viewer/pdf-viewer.module.js +0 -24
- package/esm2015/components/pdf-viewer/pdf-viewer.options.js +0 -13
- package/esm2015/components/pdf-viewer/pdf-viewer.service.js +0 -26
- package/esm2015/components/progress/index.js +0 -7
- package/esm2015/components/progress/progress-bar/progress-bar.component.js +0 -39
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +0 -56
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +0 -82
- package/esm2015/components/progress/progress-label/progress-label.component.js +0 -16
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +0 -50
- package/esm2015/components/progress/progress.module.js +0 -43
- package/esm2015/components/prompt/index.js +0 -3
- package/esm2015/components/prompt/prompt.component.js +0 -44
- package/esm2015/components/prompt/prompt.module.js +0 -21
- package/esm2015/components/prompt/taiga-ui-kit-components-prompt.js +0 -5
- package/esm2015/components/push/index.js +0 -8
- package/esm2015/components/push/push-alert.component.js +0 -44
- package/esm2015/components/push/push-alert.directive.js +0 -47
- package/esm2015/components/push/push.component.js +0 -46
- package/esm2015/components/push/push.directive.js +0 -54
- package/esm2015/components/push/push.module.js +0 -73
- package/esm2015/components/push/push.options.js +0 -18
- package/esm2015/components/push/push.service.js +0 -20
- package/esm2015/components/radio/index.js +0 -4
- package/esm2015/components/radio/radio.component.js +0 -127
- package/esm2015/components/radio/radio.module.js +0 -39
- package/esm2015/components/radio/radio.options.js +0 -18
- package/esm2015/components/radio-block/index.js +0 -3
- package/esm2015/components/radio-block/radio-block.component.js +0 -120
- package/esm2015/components/radio-block/radio-block.module.js +0 -21
- package/esm2015/components/radio-block/taiga-ui-kit-components-radio-block.js +0 -5
- package/esm2015/components/radio-group/index.js +0 -3
- package/esm2015/components/radio-group/radio-group.component.js +0 -21
- package/esm2015/components/radio-group/radio-group.module.js +0 -16
- package/esm2015/components/radio-group/taiga-ui-kit-components-radio-group.js +0 -5
- package/esm2015/components/radio-labeled/index.js +0 -3
- package/esm2015/components/radio-labeled/radio-labeled.component.js +0 -87
- package/esm2015/components/radio-labeled/radio-labeled.module.js +0 -37
- package/esm2015/components/radio-labeled/taiga-ui-kit-components-radio-labeled.js +0 -5
- package/esm2015/components/radio-list/index.js +0 -3
- package/esm2015/components/radio-list/radio-list.component.js +0 -99
- package/esm2015/components/radio-list/radio-list.module.js +0 -38
- package/esm2015/components/range/index.js +0 -4
- package/esm2015/components/range/range-change.directive.js +0 -93
- package/esm2015/components/range/range.component.js +0 -180
- package/esm2015/components/range/range.module.js +0 -22
- package/esm2015/components/rating/index.js +0 -4
- package/esm2015/components/rating/rating.component.js +0 -97
- package/esm2015/components/rating/rating.module.js +0 -36
- package/esm2015/components/rating/rating.options.js +0 -15
- package/esm2015/components/routable-dialog/generate-dialogable-route.js +0 -19
- package/esm2015/components/routable-dialog/index.js +0 -4
- package/esm2015/components/routable-dialog/routable-dialog.component.js +0 -65
- package/esm2015/components/routable-dialog/routable-dialog.module.js +0 -16
- package/esm2015/components/select/index.js +0 -7
- package/esm2015/components/select/native-select/native-select-group.component.js +0 -72
- package/esm2015/components/select/native-select/native-select.component.js +0 -68
- package/esm2015/components/select/select.component.js +0 -147
- package/esm2015/components/select/select.directive.js +0 -27
- package/esm2015/components/select/select.module.js +0 -83
- package/esm2015/components/select/select.options.js +0 -12
- package/esm2015/components/select/taiga-ui-kit-components-select.js +0 -5
- package/esm2015/components/select-option/index.js +0 -3
- package/esm2015/components/select-option/select-option.component.js +0 -96
- package/esm2015/components/select-option/select-option.module.js +0 -19
- package/esm2015/components/select-option/taiga-ui-kit-components-select-option.js +0 -5
- package/esm2015/components/slider/helpers/slider-key-steps.directive.js +0 -86
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +0 -82
- package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +0 -44
- package/esm2015/components/slider/index.js +0 -7
- package/esm2015/components/slider/slider.component.js +0 -137
- package/esm2015/components/slider/slider.module.js +0 -37
- package/esm2015/components/slider/slider.options.js +0 -13
- package/esm2015/components/stepper/index.js +0 -4
- package/esm2015/components/stepper/step/step.component.js +0 -96
- package/esm2015/components/stepper/stepper.component.js +0 -145
- package/esm2015/components/stepper/stepper.module.js +0 -20
- package/esm2015/components/tabs/index.js +0 -11
- package/esm2015/components/tabs/tab/tab.component.js +0 -85
- package/esm2015/components/tabs/tab/tab.providers.js +0 -36
- package/esm2015/components/tabs/tabs/tabs.component.js +0 -123
- package/esm2015/components/tabs/tabs-vertical/tabs-vertical.component.js +0 -43
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +0 -214
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.providers.js +0 -37
- package/esm2015/components/tabs/tabs.directive.js +0 -57
- package/esm2015/components/tabs/tabs.module.js +0 -69
- package/esm2015/components/tabs/tabs.options.js +0 -15
- package/esm2015/components/tabs/underline/underline.component.js +0 -68
- package/esm2015/components/tag/index.js +0 -4
- package/esm2015/components/tag/tag.component.js +0 -191
- package/esm2015/components/tag/tag.module.js +0 -37
- package/esm2015/components/tag/tag.options.js +0 -15
- package/esm2015/components/tag/taiga-ui-kit-components-tag.js +0 -5
- package/esm2015/components/textarea/deprecated.js +0 -104
- package/esm2015/components/textarea/index.js +0 -5
- package/esm2015/components/textarea/taiga-ui-kit-components-textarea.js +0 -5
- package/esm2015/components/textarea/textarea.component.js +0 -217
- package/esm2015/components/textarea/textarea.directive.js +0 -18
- package/esm2015/components/textarea/textarea.module.js +0 -51
- package/esm2015/components/tiles/index.js +0 -6
- package/esm2015/components/tiles/tile-handle.directive.js +0 -68
- package/esm2015/components/tiles/tile.component.js +0 -87
- package/esm2015/components/tiles/tile.service.js +0 -84
- package/esm2015/components/tiles/tiles.component.js +0 -88
- package/esm2015/components/tiles/tiles.module.js +0 -18
- package/esm2015/components/toggle/index.js +0 -4
- package/esm2015/components/toggle/taiga-ui-kit-components-toggle.js +0 -5
- package/esm2015/components/toggle/toggle.component.js +0 -116
- package/esm2015/components/toggle/toggle.module.js +0 -52
- package/esm2015/components/toggle/toggle.options.js +0 -28
- package/esm2015/components/tree/components/tree/tree.component.js +0 -78
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +0 -69
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +0 -16
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +0 -50
- package/esm2015/components/tree/directives/tree-children.directive.js +0 -22
- package/esm2015/components/tree/directives/tree-controller.directive.js +0 -68
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +0 -40
- package/esm2015/components/tree/directives/tree-node.directive.js +0 -39
- package/esm2015/components/tree/index.js +0 -14
- package/esm2015/components/tree/misc/tree.constants.js +0 -9
- package/esm2015/components/tree/misc/tree.interfaces.js +0 -2
- package/esm2015/components/tree/misc/tree.service.js +0 -40
- package/esm2015/components/tree/misc/tree.tokens.js +0 -36
- package/esm2015/components/tree/tree.module.js +0 -67
- package/esm2015/constants/date-mode-maskito-adapter.js +0 -6
- package/esm2015/constants/date-time-separator.js +0 -2
- package/esm2015/constants/empty-mask.js +0 -10
- package/esm2015/constants/group-class-names.js +0 -16
- package/esm2015/constants/index.js +0 -11
- package/esm2015/constants/mask-after-code-regexp.js +0 -2
- package/esm2015/constants/masks.js +0 -32
- package/esm2015/constants/math.js +0 -5
- package/esm2015/constants/max-day-range-length-mapper.js +0 -18
- package/esm2015/constants/max-time-values.js +0 -7
- package/esm2015/constants/router-link-options.js +0 -10
- package/esm2015/constants/taiga-ui-kit-constants.js +0 -5
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +0 -108
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.module.js +0 -16
- package/esm2015/directives/data-list-dropdown-manager/index.js +0 -3
- package/esm2015/directives/highlight/highlight.directive.js +0 -95
- package/esm2015/directives/highlight/highlight.module.js +0 -16
- package/esm2015/directives/highlight/index.js +0 -3
- package/esm2015/directives/index.js +0 -9
- package/esm2015/directives/lazy-loading/index.js +0 -4
- package/esm2015/directives/lazy-loading/lazy-loading.directive.js +0 -62
- package/esm2015/directives/lazy-loading/lazy-loading.module.js +0 -16
- package/esm2015/directives/lazy-loading/lazy-loading.service.js +0 -35
- package/esm2015/directives/mask/index.js +0 -2
- package/esm2015/directives/mask/legacy-mask.js +0 -171
- package/esm2015/directives/mask/taiga-ui-kit-directives-mask.js +0 -5
- package/esm2015/directives/present/index.js +0 -3
- package/esm2015/directives/present/present.directive.js +0 -69
- package/esm2015/directives/present/present.module.js +0 -16
- package/esm2015/directives/project-class/index.js +0 -3
- package/esm2015/directives/project-class/project-class.directive.js +0 -32
- package/esm2015/directives/project-class/project-class.module.js +0 -16
- package/esm2015/directives/project-class/taiga-ui-kit-directives-project-class.js +0 -5
- package/esm2015/directives/unfinished-validator/index.js +0 -3
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +0 -42
- package/esm2015/directives/unfinished-validator/unfinished-validator.module.js +0 -16
- package/esm2015/directives/value-accessor/index.js +0 -3
- package/esm2015/directives/value-accessor/taiga-ui-kit-directives-value-accessor.js +0 -5
- package/esm2015/directives/value-accessor/value-accessor.directive.js +0 -15
- package/esm2015/directives/value-accessor/value-accessor.module.js +0 -16
- package/esm2015/index.js +0 -15
- package/esm2015/interfaces/file-like.js +0 -2
- package/esm2015/interfaces/index.js +0 -4
- package/esm2015/interfaces/mobile-calendar-data.js +0 -2
- package/esm2015/interfaces/month-context.js +0 -2
- package/esm2015/interfaces/taiga-ui-kit-interfaces.js +0 -5
- package/esm2015/internal/index.js +0 -2
- package/esm2015/internal/primitive-calendar-range/index.js +0 -3
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +0 -132
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +0 -22
- package/esm2015/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.js +0 -5
- package/esm2015/internal/taiga-ui-kit-internal.js +0 -5
- package/esm2015/pipes/field-error/field-error-content-pipe.js +0 -43
- package/esm2015/pipes/field-error/field-error-pipe.js +0 -128
- package/esm2015/pipes/field-error/field-error.module.js +0 -17
- package/esm2015/pipes/field-error/index.js +0 -4
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +0 -36
- package/esm2015/pipes/filter-by-input/filter-by-input.base.js +0 -37
- package/esm2015/pipes/filter-by-input/filter-by-input.module.js +0 -17
- package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +0 -38
- package/esm2015/pipes/filter-by-input/index.js +0 -5
- package/esm2015/pipes/index.js +0 -9
- package/esm2015/pipes/iso-to-country-code/index.js +0 -3
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.module.js +0 -16
- package/esm2015/pipes/iso-to-country-code/iso-to-country-code.pipe.js +0 -24
- package/esm2015/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.js +0 -5
- package/esm2015/pipes/sort-countries/index.js +0 -3
- package/esm2015/pipes/sort-countries/sort-countries.module.js +0 -16
- package/esm2015/pipes/sort-countries/sort-countries.pipe.js +0 -25
- package/esm2015/pipes/stringify/index.js +0 -3
- package/esm2015/pipes/stringify/stringify.module.js +0 -16
- package/esm2015/pipes/stringify/stringify.pipe.js +0 -16
- package/esm2015/pipes/stringify-content/index.js +0 -3
- package/esm2015/pipes/stringify-content/stringify-content.module.js +0 -16
- package/esm2015/pipes/stringify-content/stringify-content.pipe.js +0 -16
- package/esm2015/pipes/to-country-code/index.js +0 -3
- package/esm2015/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.js +0 -5
- package/esm2015/pipes/to-country-code/to-country-code.module.js +0 -16
- package/esm2015/pipes/to-country-code/to-country-code.pipe.js +0 -47
- package/esm2015/pipes/to-year/index.js +0 -3
- package/esm2015/pipes/to-year/taiga-ui-kit-pipes-to-year.js +0 -5
- package/esm2015/pipes/to-year/to-year.module.js +0 -16
- package/esm2015/pipes/to-year/to-year.pipe.js +0 -17
- package/esm2015/providers/index.js +0 -4
- package/esm2015/providers/month-formatter.provider.js +0 -14
- package/esm2015/providers/specific-dropdown-controllers.js +0 -6
- package/esm2015/providers/taiga-ui-kit-providers.js +0 -5
- package/esm2015/providers/value-accessor.provider.js +0 -10
- package/esm2015/services/dialog-form.service.js +0 -32
- package/esm2015/services/index.js +0 -2
- package/esm2015/services/taiga-ui-kit-services.js +0 -5
- package/esm2015/tokens/calendar-date-stream.js +0 -18
- package/esm2015/tokens/countries-masks.js +0 -220
- package/esm2015/tokens/date-inputs-value-transformers.js +0 -15
- package/esm2015/tokens/i18n.js +0 -24
- package/esm2015/tokens/index.js +0 -11
- package/esm2015/tokens/input-date-options.js +0 -15
- package/esm2015/tokens/items-handlers.js +0 -14
- package/esm2015/tokens/mobile-calendar.js +0 -6
- package/esm2015/tokens/month-formatter.js +0 -6
- package/esm2015/tokens/tab-margin.js +0 -6
- package/esm2015/tokens/validation-errors.js +0 -6
- package/esm2015/types/dropdown-position.js +0 -2
- package/esm2015/types/file-state.js +0 -2
- package/esm2015/types/handler-with-context.js +0 -2
- package/esm2015/types/index.js +0 -9
- package/esm2015/types/key-steps.js +0 -2
- package/esm2015/types/marker-icon-mode.js +0 -2
- package/esm2015/types/status.js +0 -2
- package/esm2015/types/step-state.js +0 -2
- package/esm2015/types/taiga-ui-kit-types.js +0 -5
- package/esm2015/types/time-format-parts.js +0 -2
- package/esm2015/utils/files/format-size.js +0 -16
- package/esm2015/utils/files/get-accept-array.js +0 -7
- package/esm2015/utils/files/index.js +0 -3
- package/esm2015/utils/files/taiga-ui-kit-utils-files.js +0 -5
- package/esm2015/utils/format/index.js +0 -2
- package/esm2015/utils/format/string-hash-to-hsl.js +0 -21
- package/esm2015/utils/format/taiga-ui-kit-utils-format.js +0 -5
- package/esm2015/utils/index.js +0 -7
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +0 -27
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +0 -41
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +0 -32
- package/esm2015/utils/mask/create-auto-corrected-time-pipe.js +0 -33
- package/esm2015/utils/mask/create-date-mask.js +0 -21
- package/esm2015/utils/mask/create-date-range-mask.js +0 -19
- package/esm2015/utils/mask/create-time-mask.js +0 -24
- package/esm2015/utils/mask/index.js +0 -8
- package/esm2015/utils/mask/taiga-ui-kit-utils-mask.js +0 -5
- package/esm2015/utils/math/horizontal-direction-to-number.js +0 -12
- package/esm2015/utils/math/index.js +0 -3
- package/esm2015/utils/math/key-steps.js +0 -20
- package/esm2015/utils/math/taiga-ui-kit-utils-math.js +0 -5
- package/esm2015/utils/miscellaneous/create-default-day-range-periods.js +0 -27
- package/esm2015/utils/miscellaneous/create-time-periods.js +0 -12
- package/esm2015/utils/miscellaneous/get-precision.js +0 -8
- package/esm2015/utils/miscellaneous/index.js +0 -6
- package/esm2015/utils/miscellaneous/is-flat.js +0 -4
- package/esm2015/utils/miscellaneous/replay-control-value-changes-factory.js +0 -14
- package/esm2015/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.js +0 -5
- package/esm2015/utils/phone/get-max-allowed-phone-length.js +0 -4
- package/esm2015/utils/phone/index.js +0 -4
- package/esm2015/utils/phone/iso-to-country-code.js +0 -5
- package/esm2015/utils/phone/not-kz-region.js +0 -5
- package/esm2015/utils/phone/taiga-ui-kit-utils-phone.js +0 -5
- package/esm2015/validators/index.js +0 -2
- package/esm2015/validators/taiga-ui-kit-validators.js +0 -5
- package/esm2015/validators/unfinished.validator.js +0 -14
- package/fesm2015/taiga-ui-kit-abstract.js +0 -56
- package/fesm2015/taiga-ui-kit-abstract.js.map +0 -1
- package/fesm2015/taiga-ui-kit-classes.js +0 -41
- package/fesm2015/taiga-ui-kit-classes.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +0 -276
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-action.js +0 -106
- package/fesm2015/taiga-ui-kit-components-action.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +0 -95
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +0 -135
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +0 -98
- package/fesm2015/taiga-ui-kit-components-badge.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +0 -112
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +0 -81
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +0 -247
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +0 -217
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +0 -303
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +0 -146
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +0 -98
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +0 -117
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +0 -314
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +0 -157
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-elastic-container.js +0 -110
- package/fesm2015/taiga-ui-kit-components-elastic-container.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-files.js +0 -277
- package/fesm2015/taiga-ui-kit-components-files.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +0 -123
- package/fesm2015/taiga-ui-kit-components-filter.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +0 -196
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +0 -286
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +0 -415
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +0 -470
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +0 -417
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +0 -437
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +0 -122
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +0 -247
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +0 -257
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +0 -384
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +0 -207
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +0 -311
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +0 -374
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +0 -275
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +0 -227
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +0 -528
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +0 -476
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input-year.js +0 -197
- package/fesm2015/taiga-ui-kit-components-input-year.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-input.js +0 -156
- package/fesm2015/taiga-ui-kit-components-input.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-island.js +0 -97
- package/fesm2015/taiga-ui-kit-components-island.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +0 -196
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +0 -239
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +0 -67
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +0 -56
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +0 -725
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +0 -287
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +0 -131
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +0 -268
- package/fesm2015/taiga-ui-kit-components-progress.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-prompt.js +0 -66
- package/fesm2015/taiga-ui-kit-components-prompt.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-push.js +0 -272
- package/fesm2015/taiga-ui-kit-components-push.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +0 -142
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +0 -41
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +0 -125
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +0 -139
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +0 -183
- package/fesm2015/taiga-ui-kit-components-radio.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-range.js +0 -289
- package/fesm2015/taiga-ui-kit-components-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +0 -148
- package/fesm2015/taiga-ui-kit-components-rating.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js +0 -103
- package/fesm2015/taiga-ui-kit-components-routable-dialog.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +0 -118
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-select.js +0 -387
- package/fesm2015/taiga-ui-kit-components-select.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +0 -380
- package/fesm2015/taiga-ui-kit-components-slider.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +0 -252
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +0 -689
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +0 -245
- package/fesm2015/taiga-ui-kit-components-tag.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-textarea.js +0 -373
- package/fesm2015/taiga-ui-kit-components-textarea.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +0 -328
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +0 -195
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +0 -477
- package/fesm2015/taiga-ui-kit-components-tree.js.map +0 -1
- package/fesm2015/taiga-ui-kit-components.js +0 -71
- package/fesm2015/taiga-ui-kit-components.js.map +0 -1
- package/fesm2015/taiga-ui-kit-constants.js +0 -114
- package/fesm2015/taiga-ui-kit-constants.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +0 -128
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +0 -115
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +0 -111
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-mask.js +0 -170
- package/fesm2015/taiga-ui-kit-directives-mask.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +0 -89
- package/fesm2015/taiga-ui-kit-directives-present.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +0 -52
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +0 -62
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +0 -35
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +0 -1
- package/fesm2015/taiga-ui-kit-directives.js +0 -13
- package/fesm2015/taiga-ui-kit-directives.js.map +0 -1
- package/fesm2015/taiga-ui-kit-interfaces.js +0 -4
- package/fesm2015/taiga-ui-kit-interfaces.js.map +0 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +0 -156
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +0 -1
- package/fesm2015/taiga-ui-kit-internal.js +0 -6
- package/fesm2015/taiga-ui-kit-internal.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-field-error.js +0 -188
- package/fesm2015/taiga-ui-kit-pipes-field-error.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +0 -124
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js +0 -44
- package/fesm2015/taiga-ui-kit-pipes-iso-to-country-code.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js +0 -45
- package/fesm2015/taiga-ui-kit-pipes-sort-countries.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js +0 -36
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js +0 -36
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js +0 -67
- package/fesm2015/taiga-ui-kit-pipes-to-country-code.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes-to-year.js +0 -37
- package/fesm2015/taiga-ui-kit-pipes-to-year.js.map +0 -1
- package/fesm2015/taiga-ui-kit-pipes.js +0 -13
- package/fesm2015/taiga-ui-kit-pipes.js.map +0 -1
- package/fesm2015/taiga-ui-kit-providers.js +0 -34
- package/fesm2015/taiga-ui-kit-providers.js.map +0 -1
- package/fesm2015/taiga-ui-kit-services.js +0 -39
- package/fesm2015/taiga-ui-kit-services.js.map +0 -1
- package/fesm2015/taiga-ui-kit-tokens.js +0 -328
- package/fesm2015/taiga-ui-kit-tokens.js.map +0 -1
- package/fesm2015/taiga-ui-kit-types.js +0 -4
- package/fesm2015/taiga-ui-kit-types.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-files.js +0 -30
- package/fesm2015/taiga-ui-kit-utils-files.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +0 -27
- package/fesm2015/taiga-ui-kit-utils-format.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +0 -194
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-math.js +0 -39
- package/fesm2015/taiga-ui-kit-utils-math.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js +0 -70
- package/fesm2015/taiga-ui-kit-utils-miscellaneous.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils-phone.js +0 -21
- package/fesm2015/taiga-ui-kit-utils-phone.js.map +0 -1
- package/fesm2015/taiga-ui-kit-utils.js +0 -11
- package/fesm2015/taiga-ui-kit-utils.js.map +0 -1
- package/fesm2015/taiga-ui-kit-validators.js +0 -21
- package/fesm2015/taiga-ui-kit-validators.js.map +0 -1
- package/fesm2015/taiga-ui-kit.js +0 -19
- package/fesm2015/taiga-ui-kit.js.map +0 -1
- package/interfaces/file-like.d.ts +0 -8
- package/interfaces/index.d.ts +0 -3
- package/interfaces/mobile-calendar-data.d.ts +0 -7
- package/interfaces/month-context.d.ts +0 -4
- package/interfaces/package.json +0 -10
- package/interfaces/taiga-ui-kit-interfaces.d.ts +0 -5
- package/internal/index.d.ts +0 -1
- package/internal/package.json +0 -10
- package/internal/primitive-calendar-range/index.d.ts +0 -2
- package/internal/primitive-calendar-range/package.json +0 -10
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +0 -35
- package/internal/primitive-calendar-range/primitive-calendar-range.module.d.ts +0 -12
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.d.ts +0 -5
- package/internal/taiga-ui-kit-internal.d.ts +0 -5
- package/pipes/field-error/field-error.module.d.ts +0 -8
- package/pipes/field-error/package.json +0 -10
- package/pipes/field-error/taiga-ui-kit-pipes-field-error.d.ts +0 -5
- package/pipes/filter-by-input/filter-by-input-with.pipe.d.ts +0 -15
- package/pipes/filter-by-input/filter-by-input.base.d.ts +0 -16
- package/pipes/filter-by-input/filter-by-input.module.d.ts +0 -8
- package/pipes/filter-by-input/package.json +0 -10
- package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.d.ts +0 -5
- package/pipes/iso-to-country-code/index.d.ts +0 -2
- package/pipes/iso-to-country-code/iso-to-country-code.module.d.ts +0 -7
- package/pipes/iso-to-country-code/iso-to-country-code.pipe.d.ts +0 -10
- package/pipes/iso-to-country-code/package.json +0 -10
- package/pipes/iso-to-country-code/taiga-ui-kit-pipes-iso-to-country-code.d.ts +0 -5
- package/pipes/package.json +0 -10
- package/pipes/sort-countries/package.json +0 -10
- package/pipes/sort-countries/sort-countries.module.d.ts +0 -7
- package/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.d.ts +0 -5
- package/pipes/stringify/package.json +0 -10
- package/pipes/stringify/stringify.module.d.ts +0 -7
- package/pipes/stringify/taiga-ui-kit-pipes-stringify.d.ts +0 -5
- package/pipes/stringify-content/package.json +0 -10
- package/pipes/stringify-content/stringify-content.module.d.ts +0 -7
- package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.d.ts +0 -5
- package/pipes/taiga-ui-kit-pipes.d.ts +0 -5
- package/pipes/to-country-code/index.d.ts +0 -2
- package/pipes/to-country-code/package.json +0 -10
- package/pipes/to-country-code/taiga-ui-kit-pipes-to-country-code.d.ts +0 -5
- package/pipes/to-country-code/to-country-code.module.d.ts +0 -7
- package/pipes/to-country-code/to-country-code.pipe.d.ts +0 -10
- package/pipes/to-year/index.d.ts +0 -2
- package/pipes/to-year/package.json +0 -10
- package/pipes/to-year/taiga-ui-kit-pipes-to-year.d.ts +0 -5
- package/pipes/to-year/to-year.module.d.ts +0 -7
- package/pipes/to-year/to-year.pipe.d.ts +0 -8
- package/providers/index.d.ts +0 -3
- package/providers/month-formatter.provider.d.ts +0 -2
- package/providers/package.json +0 -10
- package/providers/specific-dropdown-controllers.d.ts +0 -1
- package/providers/taiga-ui-kit-providers.d.ts +0 -5
- package/providers/value-accessor.provider.d.ts +0 -2
- package/services/dialog-form.service.d.ts +0 -14
- package/services/index.d.ts +0 -1
- package/services/package.json +0 -10
- package/services/taiga-ui-kit-services.d.ts +0 -5
- package/taiga-ui-kit.d.ts +0 -5
- package/tokens/countries-masks.d.ts +0 -2
- package/tokens/month-formatter.d.ts +0 -7
- package/tokens/package.json +0 -10
- package/tokens/tab-margin.d.ts +0 -4
- package/tokens/taiga-ui-kit-tokens.d.ts +0 -5
- package/types/dropdown-position.d.ts +0 -1
- package/types/file-state.d.ts +0 -4
- package/types/handler-with-context.d.ts +0 -2
- package/types/index.d.ts +0 -8
- package/types/key-steps.d.ts +0 -19
- package/types/marker-icon-mode.d.ts +0 -1
- package/types/package.json +0 -10
- package/types/status.d.ts +0 -1
- package/types/step-state.d.ts +0 -1
- package/types/taiga-ui-kit-types.d.ts +0 -5
- package/types/time-format-parts.d.ts +0 -1
- package/utils/files/format-size.d.ts +0 -1
- package/utils/files/get-accept-array.d.ts +0 -1
- package/utils/files/index.d.ts +0 -2
- package/utils/files/package.json +0 -10
- package/utils/files/taiga-ui-kit-utils-files.d.ts +0 -5
- package/utils/format/index.d.ts +0 -1
- package/utils/format/package.json +0 -10
- package/utils/format/string-hash-to-hsl.d.ts +0 -6
- package/utils/format/taiga-ui-kit-utils-format.d.ts +0 -5
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +0 -20
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +0 -24
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +0 -12
- package/utils/mask/create-auto-corrected-time-pipe.d.ts +0 -10
- package/utils/mask/create-date-mask.d.ts +0 -7
- package/utils/mask/create-date-range-mask.d.ts +0 -7
- package/utils/mask/create-time-mask.d.ts +0 -8
- package/utils/mask/index.d.ts +0 -7
- package/utils/mask/package.json +0 -10
- package/utils/mask/taiga-ui-kit-utils-mask.d.ts +0 -5
- package/utils/math/horizontal-direction-to-number.d.ts +0 -5
- package/utils/math/index.d.ts +0 -2
- package/utils/math/key-steps.d.ts +0 -3
- package/utils/math/package.json +0 -10
- package/utils/math/taiga-ui-kit-utils-math.d.ts +0 -5
- package/utils/miscellaneous/create-default-day-range-periods.d.ts +0 -2
- package/utils/miscellaneous/create-time-periods.d.ts +0 -2
- package/utils/miscellaneous/get-precision.d.ts +0 -4
- package/utils/miscellaneous/index.d.ts +0 -5
- package/utils/miscellaneous/package.json +0 -10
- package/utils/miscellaneous/replay-control-value-changes-factory.d.ts +0 -7
- package/utils/miscellaneous/taiga-ui-kit-utils-miscellaneous.d.ts +0 -5
- package/utils/package.json +0 -10
- package/utils/phone/get-max-allowed-phone-length.d.ts +0 -2
- package/utils/phone/index.d.ts +0 -3
- package/utils/phone/iso-to-country-code.d.ts +0 -2
- package/utils/phone/not-kz-region.d.ts +0 -1
- package/utils/phone/package.json +0 -10
- package/utils/phone/taiga-ui-kit-utils-phone.d.ts +0 -5
- package/utils/taiga-ui-kit-utils.d.ts +0 -5
- package/validators/index.d.ts +0 -1
- package/validators/package.json +0 -10
- package/validators/taiga-ui-kit-validators.d.ts +0 -5
- package/validators/unfinished.validator.d.ts +0 -4
- /package/{esm2015/components/accordion/taiga-ui-kit-components-accordion.js → esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs} +0 -0
- /package/{esm2015/components/avatar/taiga-ui-kit-components-avatar.js → esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs} +0 -0
- /package/{esm2015/components/badge/taiga-ui-kit-components-badge.js → esm2022/components/badge/taiga-ui-kit-components-badge.mjs} +0 -0
- /package/{esm2015/components/badged-content/taiga-ui-kit-components-badged-content.js → esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs} +0 -0
- /package/{esm2015/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.js → esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs} +0 -0
- /package/{esm2015/components/calendar-month/taiga-ui-kit-components-calendar-month.js → esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs} +0 -0
- /package/{esm2015/components/calendar-range/taiga-ui-kit-components-calendar-range.js → esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs} +0 -0
- /package/{esm2015/components/carousel/taiga-ui-kit-components-carousel.js → esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs} +0 -0
- /package/{esm2015/components/checkbox/taiga-ui-kit-components-checkbox.js → esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs} +0 -0
- /package/{esm2015/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.js → esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs} +0 -0
- /package/{esm2015/components/elastic-container/taiga-ui-kit-components-elastic-container.js → esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs} +0 -0
- /package/{esm2015/components/files/taiga-ui-kit-components-files.js → esm2022/components/files/taiga-ui-kit-components-files.mjs} +0 -0
- /package/{esm2015/components/filter/taiga-ui-kit-components-filter.js → esm2022/components/filter/taiga-ui-kit-components-filter.mjs} +0 -0
- /package/{esm2015/components/input-inline/taiga-ui-kit-components-input-inline.js → esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs} +0 -0
- /package/{esm2015/components/input-phone-international/taiga-ui-kit-components-input-phone-international.js → esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs} +0 -0
- /package/{esm2015/components/items-with-more/taiga-ui-kit-components-items-with-more.js → esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs} +0 -0
- /package/{esm2015/components/line-clamp/taiga-ui-kit-components-line-clamp.js → esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs} +0 -0
- /package/{esm2015/components/pagination/taiga-ui-kit-components-pagination.js → esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs} +0 -0
- /package/{esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js → esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs} +0 -0
- /package/{esm2015/components/progress/taiga-ui-kit-components-progress.js → esm2022/components/progress/taiga-ui-kit-components-progress.mjs} +0 -0
- /package/{esm2015/components/push/taiga-ui-kit-components-push.js → esm2022/components/push/taiga-ui-kit-components-push.mjs} +0 -0
- /package/{esm2015/components/radio/taiga-ui-kit-components-radio.js → esm2022/components/radio/taiga-ui-kit-components-radio.mjs} +0 -0
- /package/{esm2015/components/radio-list/taiga-ui-kit-components-radio-list.js → esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs} +0 -0
- /package/{esm2015/components/range/taiga-ui-kit-components-range.js → esm2022/components/range/taiga-ui-kit-components-range.mjs} +0 -0
- /package/{esm2015/components/rating/taiga-ui-kit-components-rating.js → esm2022/components/rating/taiga-ui-kit-components-rating.mjs} +0 -0
- /package/{esm2015/components/routable-dialog/taiga-ui-kit-components-routable-dialog.js → esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs} +0 -0
- /package/{esm2015/components/slider/taiga-ui-kit-components-slider.js → esm2022/components/slider/taiga-ui-kit-components-slider.mjs} +0 -0
- /package/{esm2015/components/stepper/taiga-ui-kit-components-stepper.js → esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs} +0 -0
- /package/{esm2015/components/tabs/taiga-ui-kit-components-tabs.js → esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs} +0 -0
- /package/{esm2015/components/taiga-ui-kit-components.js → esm2022/components/taiga-ui-kit-components.mjs} +0 -0
- /package/{esm2015/components/tiles/taiga-ui-kit-components-tiles.js → esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs} +0 -0
- /package/{esm2015/components/tree/taiga-ui-kit-components-tree.js → esm2022/components/tree/taiga-ui-kit-components-tree.mjs} +0 -0
- /package/{esm2015/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.js → esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs} +0 -0
- /package/{esm2015/directives/highlight/taiga-ui-kit-directives-highlight.js → esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs} +0 -0
- /package/{esm2015/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.js → esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs} +0 -0
- /package/{esm2015/directives/present/taiga-ui-kit-directives-present.js → esm2022/directives/present/taiga-ui-kit-directives-present.mjs} +0 -0
- /package/{esm2015/directives/taiga-ui-kit-directives.js → esm2022/directives/taiga-ui-kit-directives.mjs} +0 -0
- /package/{esm2015/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.js → esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs} +0 -0
- /package/{esm2015/pipes/field-error/taiga-ui-kit-pipes-field-error.js → esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs} +0 -0
- /package/{esm2015/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.js → esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs} +0 -0
- /package/{esm2015/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.js → esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs} +0 -0
- /package/{esm2015/pipes/stringify/taiga-ui-kit-pipes-stringify.js → esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs} +0 -0
- /package/{esm2015/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.js → esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs} +0 -0
- /package/{esm2015/pipes/taiga-ui-kit-pipes.js → esm2022/pipes/taiga-ui-kit-pipes.mjs} +0 -0
- /package/{esm2015/taiga-ui-kit.js → esm2022/taiga-ui-kit.mjs} +0 -0
- /package/{esm2015/tokens/taiga-ui-kit-tokens.js → esm2022/tokens/taiga-ui-kit-tokens.mjs} +0 -0
- /package/{esm2015/utils/taiga-ui-kit-utils.js → esm2022/utils/taiga-ui-kit-utils.mjs} +0 -0
- /package/utils/{miscellaneous/is-flat.d.ts → is-flat.d.ts} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, computed, ElementRef, HostBinding, HostListener, inject, Input, signal, ViewChildren, } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
5
|
+
import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
|
|
6
|
+
import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
|
|
7
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
8
|
+
import { tuiClamp, tuiQuantize } from '@taiga-ui/cdk/utils/math';
|
|
9
|
+
import { tuiPure } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
10
|
+
import { TUI_SLIDER_OPTIONS, tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, TuiSlider, TuiSliderComponent, } from '@taiga-ui/kit/components/slider';
|
|
11
|
+
import { TuiRangeChange } from './range-change.directive';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "./range-change.directive";
|
|
14
|
+
import * as i2 from "@taiga-ui/kit/components/slider";
|
|
15
|
+
import * as i3 from "@angular/forms";
|
|
16
|
+
class TuiRange extends TuiControl {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
// TODO: workaround until we get signal inputs
|
|
20
|
+
this.changes = signal(1);
|
|
21
|
+
this.el = tuiInjectElement();
|
|
22
|
+
this.options = inject(TUI_SLIDER_OPTIONS);
|
|
23
|
+
this.lastActiveThumb = 'right';
|
|
24
|
+
this.min = 0;
|
|
25
|
+
this.max = 100;
|
|
26
|
+
this.step = 1;
|
|
27
|
+
this.size = this.options.size;
|
|
28
|
+
this.segments = 1;
|
|
29
|
+
this.keySteps = null;
|
|
30
|
+
this.focusable = true;
|
|
31
|
+
this.slidersRefs = EMPTY_QUERY;
|
|
32
|
+
this.left = computed(() => this.toPercent(this.value()[0]));
|
|
33
|
+
this.right = computed(() => 100 - this.toPercent(this.value()[1]));
|
|
34
|
+
}
|
|
35
|
+
ngOnChanges() {
|
|
36
|
+
this.changes.set(this.changes() + 1);
|
|
37
|
+
}
|
|
38
|
+
processValue(value, right) {
|
|
39
|
+
if (right) {
|
|
40
|
+
this.updateEnd(value);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.updateStart(value);
|
|
44
|
+
}
|
|
45
|
+
this.lastActiveThumb = right ? 'right' : 'left';
|
|
46
|
+
}
|
|
47
|
+
toValue(fraction) {
|
|
48
|
+
return tuiPercentageToKeyStepValue(tuiClamp(tuiQuantize(fraction, this.fractionStep), 0, 1) * 100, this.computedKeySteps);
|
|
49
|
+
}
|
|
50
|
+
get fractionStep() {
|
|
51
|
+
return this.step / (this.max - this.min);
|
|
52
|
+
}
|
|
53
|
+
get computedKeySteps() {
|
|
54
|
+
return this.computePureKeySteps(this.keySteps, this.min, this.max);
|
|
55
|
+
}
|
|
56
|
+
get segmentWidthRatio() {
|
|
57
|
+
return 1 / this.segments;
|
|
58
|
+
}
|
|
59
|
+
changeByStep(coefficient, target) {
|
|
60
|
+
const [sliderLeftRef, sliderRightRef] = this.slidersRefs;
|
|
61
|
+
const leftThumbElement = sliderLeftRef.nativeElement;
|
|
62
|
+
const rightThumbElement = sliderRightRef.nativeElement;
|
|
63
|
+
const isRightThumb = target === this.el
|
|
64
|
+
? this.lastActiveThumb === 'right'
|
|
65
|
+
: target === rightThumbElement;
|
|
66
|
+
const activeThumbElement = isRightThumb ? rightThumbElement : leftThumbElement;
|
|
67
|
+
const previousValue = isRightThumb ? this.value()[1] : this.value()[0];
|
|
68
|
+
/** @bad TODO think about a solution without twice conversion */
|
|
69
|
+
const previousFraction = this.toPercent(previousValue) / 100;
|
|
70
|
+
const newFractionValue = previousFraction + coefficient * this.fractionStep;
|
|
71
|
+
this.processValue(this.toValue(newFractionValue), isRightThumb);
|
|
72
|
+
activeThumbElement?.focus();
|
|
73
|
+
}
|
|
74
|
+
toPercent(value) {
|
|
75
|
+
return (this.changes() && tuiKeyStepValueToPercentage(value, this.computedKeySteps));
|
|
76
|
+
}
|
|
77
|
+
computePureKeySteps(keySteps, min, max) {
|
|
78
|
+
return (keySteps || [
|
|
79
|
+
[0, min],
|
|
80
|
+
[100, max],
|
|
81
|
+
]);
|
|
82
|
+
}
|
|
83
|
+
updateStart(value) {
|
|
84
|
+
this.onChange([Math.min(value, this.value()[1]), this.value()[1]]);
|
|
85
|
+
}
|
|
86
|
+
updateEnd(value) {
|
|
87
|
+
this.onChange([this.value()[0], Math.max(value, this.value()[0])]);
|
|
88
|
+
}
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRange, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
90
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiRange, isStandalone: true, selector: "tui-range", inputs: { min: "min", max: "max", step: "step", size: "size", segments: "segments", keySteps: "keySteps", focusable: "focusable" }, host: { listeners: { "focusout": "onTouched()", "keydown.arrowUp.prevent": "changeByStep(1,$event.target)", "keydown.arrowRight.prevent": "changeByStep(1,$event.target)", "keydown.arrowLeft.prevent": "changeByStep(-1,$event.target)", "keydown.arrowDown.prevent": "changeByStep(-1,$event.target)" }, properties: { "attr.tabindex": "-1", "attr.aria-disabled": "disabled()", "style.--left.%": "left()", "style.--right.%": "right()", "style.background": "options.trackColor", "class._disabled": "disabled()", "attr.data-size": "this.size" } }, providers: [tuiFallbackValueProvider([0, 0])], viewQueries: [{ propertyName: "slidersRefs", predicate: TuiSliderComponent, descendants: true, read: ElementRef }], usesInheritance: true, usesOnChanges: true, hostDirectives: [{ directive: i1.TuiRangeChange, outputs: ["activeThumbChange", "activeThumbChange"] }], ngImport: i0, template: "<div\n class=\"t-track\"\n [style.--bg-size-ratio]=\"1 - segmentWidthRatio\"\n [style.--segment-width.%]=\"segmentWidthRatio * 100\"\n>\n <input\n automation-id=\"tui-range__left\"\n readonly\n step=\"any\"\n tuiSlider\n type=\"range\"\n class=\"t-thumb\"\n [disabled]=\"disabled()\"\n [keySteps]=\"computedKeySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()[0]\"\n [size]=\"size\"\n [tabIndex]=\"focusable ? 0 : -1\"\n />\n <input\n automation-id=\"tui-range__right\"\n readonly\n step=\"any\"\n tuiSlider\n type=\"range\"\n class=\"t-thumb\"\n [disabled]=\"disabled()\"\n [keySteps]=\"computedKeySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()[1]\"\n [size]=\"size\"\n [tabIndex]=\"focusable ? 0 : -1\"\n />\n</div>\n", styles: [":host{position:relative;display:block;height:.125rem;border-radius:var(--tui-radius-m);background:var(--tui-border-normal);cursor:pointer;outline:none;margin:.4375rem 0;touch-action:pan-x}:host:active{cursor:ew-resize}:host:after{content:\"\";position:absolute;top:-.4375rem;bottom:-.4375rem;width:100%}:host._disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}:host[data-size=s] .t-track{position:relative;margin:0 .25rem;height:100%}:host[data-size=s] .t-track:before{content:\"\";position:absolute;top:0;left:max(calc(var(--left) - 1px),1px);right:max(var(--right),1px);height:100%;background:var(--tui-background-accent-1);margin:0 -.25rem}:host[data-size=s] .t-track:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";left:.125rem;right:.375rem;background-image:repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}:host[data-size=m] .t-track{position:relative;margin:0 .375rem;height:100%}:host[data-size=m] .t-track:before{content:\"\";position:absolute;top:0;left:max(calc(var(--left) - 1px),1px);right:max(var(--right),1px);height:100%;background:var(--tui-background-accent-1);margin:0 -.375rem}:host[data-size=m] .t-track:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";left:.25rem;right:.5rem;background-image:repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}.t-thumb{pointer-events:none;position:absolute;top:.0625rem;left:0;right:0;z-index:1;transform:translateY(-50%)}.t-thumb::-webkit-slider-thumb{pointer-events:all}.t-thumb::-moz-range-thumb{pointer-events:all}input[type=range].t-thumb::-webkit-slider-runnable-track{background:transparent}input[type=range].t-thumb::-moz-range-track{background:transparent}input[type=range].t-thumb::-moz-range-progress{background:transparent}input[type=range].t-thumb::-ms-track{background:transparent}input[type=range].t-thumb::-ms-fill-lower{background:transparent}.t-thumb:last-of-type{--tui-slider-thumb-transform: translateX(50%) translateX(1px)}.t-thumb:first-of-type{--tui-slider-thumb-transform: translateX(-50%) translateX(-1px)}:host._disabled .t-thumb{opacity:1}\n"], dependencies: [{ kind: "component", type: i2.TuiSliderComponent, selector: "input[type=range][tuiSlider]", inputs: ["size", "segments"] }, { kind: "directive", type: i2.TuiSliderKeySteps, selector: "input[tuiSlider][keySteps]", inputs: ["keySteps"] }, { kind: "directive", type: i2.TuiSliderReadonly, selector: "input[tuiSlider][readonly]", inputs: ["readonly"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
91
|
+
}
|
|
92
|
+
__decorate([
|
|
93
|
+
tuiPure
|
|
94
|
+
], TuiRange.prototype, "computePureKeySteps", null);
|
|
95
|
+
export { TuiRange };
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRange, decorators: [{
|
|
97
|
+
type: Component,
|
|
98
|
+
args: [{ standalone: true, selector: 'tui-range', imports: [TuiSlider, FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiFallbackValueProvider([0, 0])], hostDirectives: [
|
|
99
|
+
{
|
|
100
|
+
directive: TuiRangeChange,
|
|
101
|
+
outputs: ['activeThumbChange'],
|
|
102
|
+
},
|
|
103
|
+
], host: {
|
|
104
|
+
'[attr.tabindex]': '-1',
|
|
105
|
+
'[attr.aria-disabled]': 'disabled()',
|
|
106
|
+
'[style.--left.%]': 'left()',
|
|
107
|
+
'[style.--right.%]': 'right()',
|
|
108
|
+
'[style.background]': 'options.trackColor',
|
|
109
|
+
'[class._disabled]': 'disabled()',
|
|
110
|
+
'(focusout)': 'onTouched()',
|
|
111
|
+
}, template: "<div\n class=\"t-track\"\n [style.--bg-size-ratio]=\"1 - segmentWidthRatio\"\n [style.--segment-width.%]=\"segmentWidthRatio * 100\"\n>\n <input\n automation-id=\"tui-range__left\"\n readonly\n step=\"any\"\n tuiSlider\n type=\"range\"\n class=\"t-thumb\"\n [disabled]=\"disabled()\"\n [keySteps]=\"computedKeySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()[0]\"\n [size]=\"size\"\n [tabIndex]=\"focusable ? 0 : -1\"\n />\n <input\n automation-id=\"tui-range__right\"\n readonly\n step=\"any\"\n tuiSlider\n type=\"range\"\n class=\"t-thumb\"\n [disabled]=\"disabled()\"\n [keySteps]=\"computedKeySteps\"\n [max]=\"max\"\n [min]=\"min\"\n [ngModel]=\"value()[1]\"\n [size]=\"size\"\n [tabIndex]=\"focusable ? 0 : -1\"\n />\n</div>\n", styles: [":host{position:relative;display:block;height:.125rem;border-radius:var(--tui-radius-m);background:var(--tui-border-normal);cursor:pointer;outline:none;margin:.4375rem 0;touch-action:pan-x}:host:active{cursor:ew-resize}:host:after{content:\"\";position:absolute;top:-.4375rem;bottom:-.4375rem;width:100%}:host._disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}:host[data-size=s] .t-track{position:relative;margin:0 .25rem;height:100%}:host[data-size=s] .t-track:before{content:\"\";position:absolute;top:0;left:max(calc(var(--left) - 1px),1px);right:max(var(--right),1px);height:100%;background:var(--tui-background-accent-1);margin:0 -.25rem}:host[data-size=s] .t-track:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";left:.125rem;right:.375rem;background-image:repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}:host[data-size=m] .t-track{position:relative;margin:0 .375rem;height:100%}:host[data-size=m] .t-track:before{content:\"\";position:absolute;top:0;left:max(calc(var(--left) - 1px),1px);right:max(var(--right),1px);height:100%;background:var(--tui-background-accent-1);margin:0 -.375rem}:host[data-size=m] .t-track:after{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";left:.25rem;right:.5rem;background-image:repeating-linear-gradient(to right,var(--tui-text-tertiary) 0 .25rem,transparent 0 calc(var(--segment-width) / var(--bg-size-ratio)));background-position-x:right;background-repeat:no-repeat;background-size:calc(100% * var(--bg-size-ratio))}.t-thumb{pointer-events:none;position:absolute;top:.0625rem;left:0;right:0;z-index:1;transform:translateY(-50%)}.t-thumb::-webkit-slider-thumb{pointer-events:all}.t-thumb::-moz-range-thumb{pointer-events:all}input[type=range].t-thumb::-webkit-slider-runnable-track{background:transparent}input[type=range].t-thumb::-moz-range-track{background:transparent}input[type=range].t-thumb::-moz-range-progress{background:transparent}input[type=range].t-thumb::-ms-track{background:transparent}input[type=range].t-thumb::-ms-fill-lower{background:transparent}.t-thumb:last-of-type{--tui-slider-thumb-transform: translateX(50%) translateX(1px)}.t-thumb:first-of-type{--tui-slider-thumb-transform: translateX(-50%) translateX(-1px)}:host._disabled .t-thumb{opacity:1}\n"] }]
|
|
112
|
+
}], propDecorators: { min: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], max: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], step: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], size: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}, {
|
|
121
|
+
type: HostBinding,
|
|
122
|
+
args: ['attr.data-size']
|
|
123
|
+
}], segments: [{
|
|
124
|
+
type: Input
|
|
125
|
+
}], keySteps: [{
|
|
126
|
+
type: Input
|
|
127
|
+
}], focusable: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}], slidersRefs: [{
|
|
130
|
+
type: ViewChildren,
|
|
131
|
+
args: [TuiSliderComponent, { read: ElementRef }]
|
|
132
|
+
}], changeByStep: [{
|
|
133
|
+
type: HostListener,
|
|
134
|
+
args: ['keydown.arrowUp.prevent', ['1', '$event.target']]
|
|
135
|
+
}, {
|
|
136
|
+
type: HostListener,
|
|
137
|
+
args: ['keydown.arrowRight.prevent', ['1', '$event.target']]
|
|
138
|
+
}, {
|
|
139
|
+
type: HostListener,
|
|
140
|
+
args: ['keydown.arrowLeft.prevent', ['-1', '$event.target']]
|
|
141
|
+
}, {
|
|
142
|
+
type: HostListener,
|
|
143
|
+
args: ['keydown.arrowDown.prevent', ['-1', '$event.target']]
|
|
144
|
+
}], computePureKeySteps: [] } });
|
|
145
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFuZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvcmFuZ2UvcmFuZ2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvcmFuZ2UvcmFuZ2UudGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsUUFBUSxFQUNSLFVBQVUsRUFDVixXQUFXLEVBQ1gsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksR0FDZixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDM0MsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLHVCQUF1QixDQUFDO0FBQ2pELE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUNwRCxPQUFPLEVBQUMsd0JBQXdCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUM5RCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUMsUUFBUSxFQUFFLFdBQVcsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQy9ELE9BQU8sRUFBQyxPQUFPLEVBQUMsTUFBTSxtQ0FBbUMsQ0FBQztB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fcmlnaHRcIlxuICAgICAgICByZWFkb25seVxuICAgICAgICBzdGVwPVwiYW55XCJcbiAgICAgICAgdHVpU2xpZGVyXG4gICAgICAgIHR5cGU9XCJyYW5nZVwiXG4gICAgICAgIGNsYXNzPVwidC10aHVtYlwiXG4gICAgICAgIFtkaXNhYmxlZF09XCJkaXNhYmxlZCgpXCJcbiAgICAgICAgW2tleVN0ZXBzXT1cImNvbXB1dGVkS2V5U3RlcHNcIlxuICAgICAgICBbbWF4XT1cIm1heFwiXG4gICAgICAgIFttaW5dPVwibWluXCJcbiAgICAgICAgW25nTW9kZWxdPVwidmFsdWUoKVsxXVwiXG4gICAgICAgIFtzaXplXT1cInNpemVcIlxuICAgICAgICBbdGFiSW5kZXhdPVwiZm9jdXNhYmxlID8gMCA6IC0xXCJcbiAgICAvPlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './rating.component';
|
|
2
|
+
export * from './rating.options';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9yYXRpbmcvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9yYXRpbmcuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vcmF0aW5nLm9wdGlvbnMnO1xuIl19
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, HostBinding, HostListener, inject, Input, } from '@angular/core';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
5
|
+
import { TuiRepeatTimes } from '@taiga-ui/cdk/directives/repeat-times';
|
|
6
|
+
import { tuiFallbackValueProvider } from '@taiga-ui/cdk/tokens';
|
|
7
|
+
import { tuiClamp } from '@taiga-ui/cdk/utils/math';
|
|
8
|
+
import { TuiIcon } from '@taiga-ui/core/components/icon';
|
|
9
|
+
import { PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
|
|
10
|
+
import { TUI_RATING_OPTIONS } from './rating.options';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/forms";
|
|
13
|
+
class TuiRatingComponent extends TuiControl {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.options = inject(TUI_RATING_OPTIONS);
|
|
17
|
+
this.active = 0;
|
|
18
|
+
this.icon = this.options.icon;
|
|
19
|
+
this.max = this.options.max;
|
|
20
|
+
}
|
|
21
|
+
onKeyDown(event) {
|
|
22
|
+
if (this.readOnly()) {
|
|
23
|
+
event.preventDefault();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
onPointer(delta) {
|
|
27
|
+
this.active = tuiClamp(this.active + delta, 0, 1);
|
|
28
|
+
}
|
|
29
|
+
onClick(value) {
|
|
30
|
+
if (this.active) {
|
|
31
|
+
this.onChange(value);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
isActive(index) {
|
|
35
|
+
return Math.ceil(this.value()) >= this.max - index;
|
|
36
|
+
}
|
|
37
|
+
isFraction(index) {
|
|
38
|
+
return this.value() > this.max - index - 1 && this.value() < this.max - index;
|
|
39
|
+
}
|
|
40
|
+
getCut(index) {
|
|
41
|
+
return this.isFraction(index)
|
|
42
|
+
? 100 * Math.max(this.max - index - this.value(), 0)
|
|
43
|
+
: 0;
|
|
44
|
+
}
|
|
45
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRatingComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiRatingComponent, isStandalone: true, selector: "tui-rating", inputs: { icon: "icon", max: "max" }, host: { listeners: { "keydown.capture": "onKeyDown($event)", "pointerdown": "onPointer(1)", "pointercancel": "onPointer(-1)", "document:pointerup": "onPointer(-1)" }, properties: { "class._disabled": "disabled()", "class._readonly": "readOnly()", "class._active": "this.active" } }, providers: [tuiFallbackValueProvider(0)], usesInheritance: true, ngImport: i0, template: "<input\n min=\"1\"\n type=\"range\"\n class=\"t-range\"\n [attr.aria-disabled]=\"readOnly()\"\n [disabled]=\"disabled()\"\n [max]=\"max\"\n [ngModel]=\"value()\"\n (blur)=\"onTouched()\"\n (ngModelChange)=\"onChange($event)\"\n/>\n<div class=\"t-items\">\n <div\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-item\"\n [class.t-item_active]=\"isActive(index)\"\n (pointerup)=\"onClick(max - index)\"\n >\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon t-icon_blank\"\n [class.t-icon_fraction]=\"isFraction(index)\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"100 - getCut(index)\"\n />\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"getCut(index)\"\n />\n </div>\n</div>\n", styles: [":host{position:relative;display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;font-size:1rem;color:var(--tui-chart-categorical-12);cursor:pointer;-webkit-user-select:none;user-select:none}:host._readonly{pointer-events:none}:host._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-range{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;box-sizing:border-box;padding:0 .75em;pointer-events:none}.t-range:focus-visible+.t-items{box-shadow:inset 0 0 0 .125rem var(--tui-border-focus)}.t-items{position:relative;display:flex;flex-direction:row-reverse}.t-items:hover .t-icon{clip-path:inset(0 0 0 0)}.t-items:hover .t-icon_blank{clip-path:inset(0 0 0 100%)}.t-item{position:relative;flex:1 0 0;color:var(--tui-text-tertiary);transition-property:color,transform;transition-duration:var(--tui-duration);transition-timing-function:ease-in-out,cubic-bezier(.35,1.5,.4,2.5)}.t-item:first-child{max-width:2.5em}.t-item:hover,.t-item:hover~.t-item,.t-items:not(:hover) .t-item_active{color:currentColor}.t-items:active .t-item:hover,.t-items:active .t-item:hover~.t-item{transform:scale(.85);transition-duration:var(--tui-duration),calc(var(--tui-duration) / 3);transition-timing-function:ease-in-out}.t-icon{transition-property:clip-path;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:2.5em;height:2.5em;font-size:inherit;clip-path:inset(0 var(--t-cut) 0 0)}.t-icon ::ng-deep>*{font-size:1rem}.t-icon_blank{position:absolute;top:0;left:0;display:none;color:var(--tui-text-tertiary);clip-path:inset(0 0 0 var(--t-cut))}.t-icon_fraction{display:block}@media (any-pointer: coarse){:host._active .t-item_active{transform:scale(.85);transition-timing-function:ease-in-out}.t-range{pointer-events:auto}.t-icon{transition:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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.RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]" }, { 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: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: TuiRepeatTimes, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: ["tuiRepeatTimesOf"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
47
|
+
}
|
|
48
|
+
export { TuiRatingComponent };
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRatingComponent, decorators: [{
|
|
50
|
+
type: Component,
|
|
51
|
+
args: [{ standalone: true, selector: 'tui-rating', imports: [
|
|
52
|
+
CommonModule,
|
|
53
|
+
FormsModule,
|
|
54
|
+
TuiIcon,
|
|
55
|
+
TuiRepeatTimes,
|
|
56
|
+
PolymorpheusOutlet,
|
|
57
|
+
PolymorpheusTemplate,
|
|
58
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiFallbackValueProvider(0)], host: {
|
|
59
|
+
'[class._disabled]': 'disabled()',
|
|
60
|
+
'[class._readonly]': 'readOnly()',
|
|
61
|
+
}, template: "<input\n min=\"1\"\n type=\"range\"\n class=\"t-range\"\n [attr.aria-disabled]=\"readOnly()\"\n [disabled]=\"disabled()\"\n [max]=\"max\"\n [ngModel]=\"value()\"\n (blur)=\"onTouched()\"\n (ngModelChange)=\"onChange($event)\"\n/>\n<div class=\"t-items\">\n <div\n *tuiRepeatTimes=\"let index of max\"\n class=\"t-item\"\n [class.t-item_active]=\"isActive(index)\"\n (pointerup)=\"onClick(max - index)\"\n >\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon t-icon_blank\"\n [class.t-icon_fraction]=\"isFraction(index)\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"100 - getCut(index)\"\n />\n <tui-icon\n *polymorpheusOutlet=\"icon as src; context: {$implicit: max - index}\"\n class=\"t-icon\"\n [icon]=\"src.toString()\"\n [style.--t-cut.%]=\"getCut(index)\"\n />\n </div>\n</div>\n", styles: [":host{position:relative;display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;font-size:1rem;color:var(--tui-chart-categorical-12);cursor:pointer;-webkit-user-select:none;user-select:none}:host._readonly{pointer-events:none}:host._disabled{pointer-events:none;opacity:var(--tui-disabled-opacity)}.t-range{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;box-sizing:border-box;padding:0 .75em;pointer-events:none}.t-range:focus-visible+.t-items{box-shadow:inset 0 0 0 .125rem var(--tui-border-focus)}.t-items{position:relative;display:flex;flex-direction:row-reverse}.t-items:hover .t-icon{clip-path:inset(0 0 0 0)}.t-items:hover .t-icon_blank{clip-path:inset(0 0 0 100%)}.t-item{position:relative;flex:1 0 0;color:var(--tui-text-tertiary);transition-property:color,transform;transition-duration:var(--tui-duration);transition-timing-function:ease-in-out,cubic-bezier(.35,1.5,.4,2.5)}.t-item:first-child{max-width:2.5em}.t-item:hover,.t-item:hover~.t-item,.t-items:not(:hover) .t-item_active{color:currentColor}.t-items:active .t-item:hover,.t-items:active .t-item:hover~.t-item{transform:scale(.85);transition-duration:var(--tui-duration),calc(var(--tui-duration) / 3);transition-timing-function:ease-in-out}.t-icon{transition-property:clip-path;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:2.5em;height:2.5em;font-size:inherit;clip-path:inset(0 var(--t-cut) 0 0)}.t-icon ::ng-deep>*{font-size:1rem}.t-icon_blank{position:absolute;top:0;left:0;display:none;color:var(--tui-text-tertiary);clip-path:inset(0 0 0 var(--t-cut))}.t-icon_fraction{display:block}@media (any-pointer: coarse){:host._active .t-item_active{transform:scale(.85);transition-timing-function:ease-in-out}.t-range{pointer-events:auto}.t-icon{transition:none}}\n"] }]
|
|
62
|
+
}], propDecorators: { active: [{
|
|
63
|
+
type: HostBinding,
|
|
64
|
+
args: ['class._active']
|
|
65
|
+
}], icon: [{
|
|
66
|
+
type: Input
|
|
67
|
+
}], max: [{
|
|
68
|
+
type: Input
|
|
69
|
+
}], onKeyDown: [{
|
|
70
|
+
type: HostListener,
|
|
71
|
+
args: ['keydown.capture', ['$event']]
|
|
72
|
+
}], onPointer: [{
|
|
73
|
+
type: HostListener,
|
|
74
|
+
args: ['pointerdown', ['1']]
|
|
75
|
+
}, {
|
|
76
|
+
type: HostListener,
|
|
77
|
+
args: ['pointercancel', ['-1']]
|
|
78
|
+
}, {
|
|
79
|
+
type: HostListener,
|
|
80
|
+
args: ['document:pointerup', ['-1']]
|
|
81
|
+
}] } });
|
|
82
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3JhdGluZy9yYXRpbmcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvcmF0aW5nL3JhdGluZy50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxXQUFXLEVBQ1gsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEdBQ1IsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzNDLE9BQU8sRUFBQyxVQUFVLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQUNq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GVkKClcIlxuICAgIChuZ01vZGVsQ2hhbmdlKT1cIm9uQ2hhbmdlKCRldmVudClcIlxuLz5cbjxkaXYgY2xhc3M9XCJ0LWl0ZW1zXCI+XG4gICAgPGRpdlxuICAgICAgICAqdHVpUmVwZWF0VGltZXM9XCJsZXQgaW5kZXggb2YgbWF4XCJcbiAgICAgICAgY2xhc3M9XCJ0LWl0ZW1cIlxuICAgICAgICBbY2xhc3MudC1pdGVtX2FjdGl2ZV09XCJpc0FjdGl2ZShpbmRleClcIlxuICAgICAgICAocG9pbnRlcnVwKT1cIm9uQ2xpY2sobWF4IC0gaW5kZXgpXCJcbiAgICA+XG4gICAgICAgIDx0dWktaWNvblxuICAgICAgICAgICAgKnBvbHltb3JwaGV1c091dGxldD1cImljb24gYXMgc3JjOyBjb250ZXh0OiB7JGltcGxpY2l0OiBtYXggLSBpbmRleH1cIlxuICAgICAgICAgICAgY2xhc3M9XCJ0LWljb24gdC1pY29uX2JsYW5rXCJcbiAgICAgICAgICAgIFtjbGFzcy50LWljb25fZnJhY3Rpb25dPVwiaXNGcmFjdGlvbihpbmRleClcIlxuICAgICAgICAgICAgW2ljb25dPVwic3JjLnRvU3RyaW5nKClcIlxuICAgICAgICAgICAgW3N0eWxlLi0tdC1jdXQuJV09XCIxMDAgLSBnZXRDdXQoaW5kZXgpXCJcbiAgICAgICAgLz5cbiAgICAgICAgPHR1aS1pY29uXG4gICAgICAgICAgICAqcG9seW1vcnBoZXVzT3V0bGV0PVwiaWNvbiBhcyBzcmM7IGNvbnRleHQ6IHskaW1wbGljaXQ6IG1heCAtIGluZGV4fVwiXG4gICAgICAgICAgICBjbGFzcz1cInQtaWNvblwiXG4gICAgICAgICAgICBbaWNvbl09XCJzcmMudG9TdHJpbmcoKVwiXG4gICAgICAgICAgICBbc3R5bGUuLS10LWN1dC4lXT1cImdldEN1dChpbmRleClcIlxuICAgICAgICAvPlxuICAgIDwvZGl2PlxuPC9kaXY+XG4iXX0=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { tuiCreateToken, tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
2
|
+
export const TUI_RATING_DEFAULT_OPTIONS = {
|
|
3
|
+
icon: '@tui.star',
|
|
4
|
+
max: 5,
|
|
5
|
+
};
|
|
6
|
+
export const TUI_RATING_OPTIONS = tuiCreateToken(TUI_RATING_DEFAULT_OPTIONS);
|
|
7
|
+
export function tuiRatingOptionsProvider(options) {
|
|
8
|
+
return tuiProvideOptions(TUI_RATING_OPTIONS, options, TUI_RATING_DEFAULT_OPTIONS);
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmF0aW5nLm9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9yYXRpbmcvcmF0aW5nLm9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFDLGNBQWMsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLG1DQUFtQyxDQUFDO0FBUXBGLE1BQU0sQ0FBQyxNQUFNLDBCQUEwQixHQUFxQjtJQUN4RCxJQUFJLEVBQUUsV0FBVztJQUNqQixHQUFHLEVBQUUsQ0FBQztDQUNULENBQUM7QUFFRixNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxjQUFjLENBQUMsMEJBQTBCLENBQUMsQ0FBQztBQUU3RSxNQUFNLFVBQVUsd0JBQXdCLENBQUMsT0FBa0M7SUFDdkUsT0FBTyxpQkFBaUIsQ0FBQyxrQkFBa0IsRUFBRSxPQUFPLEVBQUUsMEJBQTBCLENBQUMsQ0FBQztBQUN0RixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHR5cGUge1Byb3ZpZGVyfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB0eXBlIHtUdWlDb250ZXh0fSBmcm9tICdAdGFpZ2EtdWkvY2RrL3R5cGVzJztcbmltcG9ydCB7dHVpQ3JlYXRlVG9rZW4sIHR1aVByb3ZpZGVPcHRpb25zfSBmcm9tICdAdGFpZ2EtdWkvY2RrL3V0aWxzL21pc2NlbGxhbmVvdXMnO1xuaW1wb3J0IHR5cGUge1BvbHltb3JwaGV1c0NvbnRlbnR9IGZyb20gJ0B0YWlnYS11aS9wb2x5bW9ycGhldXMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIFR1aVJhdGluZ09wdGlvbnMge1xuICAgIHJlYWRvbmx5IGljb246IFBvbHltb3JwaGV1c0NvbnRlbnQ8VHVpQ29udGV4dDxudW1iZXI+PjtcbiAgICByZWFkb25seSBtYXg6IG51bWJlcjtcbn1cblxuZXhwb3J0IGNvbnN0IFRVSV9SQVRJTkdfREVGQVVMVF9PUFRJT05TOiBUdWlSYXRpbmdPcHRpb25zID0ge1xuICAgIGljb246ICdAdHVpLnN0YXInLFxuICAgIG1heDogNSxcbn07XG5cbmV4cG9ydCBjb25zdCBUVUlfUkFUSU5HX09QVElPTlMgPSB0dWlDcmVhdGVUb2tlbihUVUlfUkFUSU5HX0RFRkFVTFRfT1BUSU9OUyk7XG5cbmV4cG9ydCBmdW5jdGlvbiB0dWlSYXRpbmdPcHRpb25zUHJvdmlkZXIob3B0aW9uczogUGFydGlhbDxUdWlSYXRpbmdPcHRpb25zPik6IFByb3ZpZGVyIHtcbiAgICByZXR1cm4gdHVpUHJvdmlkZU9wdGlvbnMoVFVJX1JBVElOR19PUFRJT05TLCBvcHRpb25zLCBUVUlfUkFUSU5HX0RFRkFVTFRfT1BUSU9OUyk7XG59XG4iXX0=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function tuiGenerateDialogableRoute(component, { path = '', outlet = '', ...dialogOptions } = {}) {
|
|
2
|
+
return {
|
|
3
|
+
path,
|
|
4
|
+
outlet,
|
|
5
|
+
loadComponent: async () => import('./routable-dialog.component'),
|
|
6
|
+
data: {
|
|
7
|
+
dialog: component,
|
|
8
|
+
backUrl: path
|
|
9
|
+
.split('/')
|
|
10
|
+
.map(() => '..')
|
|
11
|
+
.join('/'),
|
|
12
|
+
isLazy: path === '',
|
|
13
|
+
dialogOptions,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGUtZGlhbG9nYWJsZS1yb3V0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3JvdXRhYmxlLWRpYWxvZy9nZW5lcmF0ZS1kaWFsb2dhYmxlLXJvdXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE1BQU0sVUFBVSwwQkFBMEIsQ0FDdEMsU0FBNEUsRUFDNUUsRUFDSSxJQUFJLEdBQUcsRUFBRSxFQUNULE1BQU0sR0FBRyxFQUFFLEVBQ1gsR0FBRyxhQUFhLEtBQ2lELEVBQUU7SUFFdkUsT0FBTztRQUNILElBQUk7UUFDSixNQUFNO1FBQ04sYUFBYSxFQUFFLEtBQUssSUFBSSxFQUFFLENBQUMsTUFBTSxDQUFDLDZCQUE2QixDQUFDO1FBQ2hFLElBQUksRUFBRTtZQUNGLE1BQU0sRUFBRSxTQUFTO1lBQ2pCLE9BQU8sRUFBRSxJQUFJO2lCQUNSLEtBQUssQ0FBQyxHQUFHLENBQUM7aUJBQ1YsR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQztpQkFDZixJQUFJLENBQUMsR0FBRyxDQUFDO1lBQ2QsTUFBTSxFQUFFLElBQUksS0FBSyxFQUFFO1lBQ25CLGFBQWE7U0FDaEI7S0FDSixDQUFDO0FBQ04sQ0FBQyIsInNvdXJjZXNDb250ZW50Ijp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ICAgIH07XG59XG4iXX0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './generate-dialogable-route';
|
|
2
|
+
export * from './routable-dialog.component';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9yb3V0YWJsZS1kaWFsb2cvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9nZW5lcmF0ZS1kaWFsb2dhYmxlLXJvdXRlJztcbmV4cG9ydCAqIGZyb20gJy4vcm91dGFibGUtZGlhbG9nLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, inject, INJECTOR } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { TuiDialogService } from '@taiga-ui/core/components/dialog';
|
|
5
|
+
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
|
|
6
|
+
import { from, of, switchMap } from 'rxjs';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
class TuiRoutableDialog {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.route = inject(ActivatedRoute);
|
|
11
|
+
this.router = inject(Router);
|
|
12
|
+
this.injector = inject(INJECTOR);
|
|
13
|
+
this.initialUrl = this.router.url;
|
|
14
|
+
this.dialog = inject(TuiDialogService);
|
|
15
|
+
const dialog = this.route.snapshot.data['dialog'];
|
|
16
|
+
from(isClass(dialog) ? of(dialog) : dialog().then((m) => m.default ?? m))
|
|
17
|
+
.pipe(switchMap((dialog) => this.dialog.open(new PolymorpheusComponent(dialog, this.injector), this.route.snapshot.data['dialogOptions'])), takeUntilDestroyed())
|
|
18
|
+
.subscribe({ complete: () => this.onDialogClosing() });
|
|
19
|
+
}
|
|
20
|
+
get lazyLoadedBackUrl() {
|
|
21
|
+
return (this.route.parent?.snapshot.url || []).map(() => '..').join('/');
|
|
22
|
+
}
|
|
23
|
+
onDialogClosing() {
|
|
24
|
+
if (this.initialUrl === this.router.url) {
|
|
25
|
+
this.navigateToParent();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
navigateToParent() {
|
|
29
|
+
const backUrl = this.route.snapshot.data['isLazy']
|
|
30
|
+
? this.lazyLoadedBackUrl
|
|
31
|
+
: this.route.snapshot.data['backUrl'];
|
|
32
|
+
void this.router.navigate([backUrl], {
|
|
33
|
+
relativeTo: this.route,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRoutableDialog, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiRoutableDialog, isStandalone: true, selector: "tui-routable-dialog", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
38
|
+
}
|
|
39
|
+
export default TuiRoutableDialog;
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRoutableDialog, decorators: [{
|
|
41
|
+
type: Component,
|
|
42
|
+
args: [{
|
|
43
|
+
standalone: true,
|
|
44
|
+
selector: 'tui-routable-dialog',
|
|
45
|
+
template: '',
|
|
46
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
47
|
+
}]
|
|
48
|
+
}], ctorParameters: function () { return []; } });
|
|
49
|
+
function isClass(fn) {
|
|
50
|
+
return (typeof fn === 'function' &&
|
|
51
|
+
Object.getOwnPropertyDescriptor(fn, 'prototype')?.writable === false);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGFibGUtZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3JvdXRhYmxlLWRpYWxvZy9yb3V0YWJsZS1kaWFsb2cuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNuRixPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSw0QkFBNEIsQ0FBQztBQUM5RCxPQUFPLEVBQUMsY0FBYyxFQUFFLE1BQU0sRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3ZELE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLGtDQUFrQyxDQUFDO0FBQ2xFLE9BQU8sRUFBQyxxQkFBcUIsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQzdELE9BQU8sRUFBQyxJQUFJLEVBQUUsRUFBRSxFQUFFLFNBQVMsRUFBQyxNQUFNLE1BQU0sQ0FBQzs7QUFFekMsTUFNcUIsaUJBQWlCO0lBT2xDO1FBTmlCLFVBQUssR0FBRyxNQUFNLENBQUMsY0FBYyxDQUFDLENBQUM7UUFDL0IsV0FBTSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUN4QixhQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzVCLGVBQVUsR0FBRyxJQUFJLENBQ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gIHByaXZhdGUgcmVhZG9ubHkgaW5pdGlhbFVybCA9IHRoaXMucm91dGVyLnVybDtcbiAgICBwcml2YXRlIHJlYWRvbmx5IGRpYWxvZyA9IGluamVjdChUdWlEaWFsb2dTZXJ2aWNlKTtcblxuICAgIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICBjb25zdCBkaWFsb2cgPSB0aGlzLnJvdXRlLnNuYXBzaG90LmRhdGFbJ2RpYWxvZyddO1xuXG4gICAgICAgIGZyb20oaXNDbGFzcyhkaWFsb2cpID8gb2YoZGlhbG9nKSA6IGRpYWxvZygpLnRoZW4oKG06IGFueSkgPT4gbS5kZWZhdWx0ID8/IG0pKVxuICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgc3dpdGNoTWFwKChkaWFsb2c6IGFueSkgPT5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5kaWFsb2cub3BlbihcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBQb2x5bW9ycGhldXNDb21wb25lbnQ8VHlwZTxhbnk+PihkaWFsb2csIHRoaXMuaW5qZWN0b3IpLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5yb3V0ZS5zbmFwc2hvdC5kYXRhWydkaWFsb2dPcHRpb25zJ10sXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICB0YWtlVW50aWxEZXN0cm95ZWQoKSxcbiAgICAgICAgICAgIClcbiAgICAgICAgICAgIC5zdWJzY3JpYmUoe2NvbXBsZXRlOiAoKSA9PiB0aGlzLm9uRGlhbG9nQ2xvc2luZygpfSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXQgbGF6eUxvYWRlZEJhY2tVcmwoKTogc3RyaW5nIHtcbiAgICAgICAgcmV0dXJuICh0aGlzLnJvdXRlLnBhcmVudD8uc25hcHNob3QudXJsIHx8IFtdKS5tYXAoKCkgPT4gJy4uJykuam9pbignLycpO1xuICAgIH1cblxuICAgIHByaXZhdGUgb25EaWFsb2dDbG9zaW5nKCk6IHZvaWQge1xuICAgICAgICBpZiAodGhpcy5pbml0aWFsVXJsID09PSB0aGlzLnJvdXRlci51cmwpIHtcbiAgICAgICAgICAgIHRoaXMubmF2aWdhdGVUb1BhcmVudCgpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBuYXZpZ2F0ZVRvUGFyZW50KCk6IHZvaWQge1xuICAgICAgICBjb25zdCBiYWNrVXJsID0gdGhpcy5yb3V0ZS5zbmFwc2hvdC5kYXRhWydpc0xhenknXVxuICAgICAgICAgICAgPyB0aGlzLmxhenlMb2FkZWRCYWNrVXJsXG4gICAgICAgICAgICA6IHRoaXMucm91dGUuc25hcHNob3QuZGF0YVsnYmFja1VybCddO1xuXG4gICAgICAgIHZvaWQgdGhpcy5yb3V0ZXIubmF2aWdhdGUoW2JhY2tVcmxdLCB7XG4gICAgICAgICAgICByZWxhdGl2ZVRvOiB0aGlzLnJvdXRlLFxuICAgICAgICB9KTtcbiAgICB9XG59XG5cbmZ1bmN0aW9uIGlzQ2xhc3MoZm46IFR5cGU8YW55PiB8IHVua25vd24pOiBib29sZWFuIHtcbiAgICByZXR1cm4gKFxuICAgICAgICB0eXBlb2YgZm4gPT09ICdmdW5jdGlvbicgJiZcbiAgICAgICAgT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihmbiwgJ3Byb3RvdHlwZScpPy53cml0YWJsZSA9PT0gZmFsc2VcbiAgICApO1xufVxuIl19
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from './segmented.component';
|
|
2
|
+
export * from './segmented.directive';
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy9zZWdtZW50ZWQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLHVCQUF1QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zZWdtZW50ZWQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vc2VnbWVudGVkLmRpcmVjdGl2ZSc7XG4iXX0=
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, inject, Input, NgZone, Output, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { ResizeObserverService } from '@ng-web-apis/resize-observer';
|
|
4
|
+
import { tuiZonefree } from '@taiga-ui/cdk/observables';
|
|
5
|
+
import { tuiInjectElement, tuiIsHTMLElement } from '@taiga-ui/cdk/utils/dom';
|
|
6
|
+
import { tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
7
|
+
import { tuiBadgeNotificationOptionsProvider } from '@taiga-ui/kit/components/badge-notification';
|
|
8
|
+
import { TuiSegmentedDirective } from './segmented.directive';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "./segmented.directive";
|
|
11
|
+
class TuiSegmentedComponent {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.el = tuiInjectElement();
|
|
14
|
+
this.sub = inject(ResizeObserverService)
|
|
15
|
+
.pipe(tuiZonefree(inject(NgZone)), takeUntilDestroyed())
|
|
16
|
+
.subscribe(() => this.refresh());
|
|
17
|
+
this.size = 's';
|
|
18
|
+
this.activeItemIndex = 0;
|
|
19
|
+
this.activeItemIndexChange = new EventEmitter();
|
|
20
|
+
}
|
|
21
|
+
ngOnChanges() {
|
|
22
|
+
this.refresh();
|
|
23
|
+
}
|
|
24
|
+
update(activeItemIndex) {
|
|
25
|
+
if (activeItemIndex === this.activeItemIndex) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.activeItemIndex = activeItemIndex;
|
|
29
|
+
this.activeItemIndexChange.emit(activeItemIndex);
|
|
30
|
+
this.refresh();
|
|
31
|
+
}
|
|
32
|
+
get left() {
|
|
33
|
+
const element = this.activeElement;
|
|
34
|
+
return tuiIsHTMLElement(element) ? element.offsetLeft : 0;
|
|
35
|
+
}
|
|
36
|
+
get width() {
|
|
37
|
+
return this.activeElement?.clientWidth || 0;
|
|
38
|
+
}
|
|
39
|
+
get activeElement() {
|
|
40
|
+
return this.el.children.item(this.activeItemIndex);
|
|
41
|
+
}
|
|
42
|
+
// TODO: Switch to HostBinding signals in Angular 17+
|
|
43
|
+
refresh() {
|
|
44
|
+
this.el.style.setProperty('--t-left', tuiPx(this.left));
|
|
45
|
+
this.el.style.setProperty('--t-width', tuiPx(this.width));
|
|
46
|
+
}
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSegmentedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiSegmentedComponent, isStandalone: true, selector: "tui-segmented", inputs: { size: "size", activeItemIndex: "activeItemIndex" }, outputs: { activeItemIndexChange: "activeItemIndexChange" }, host: { properties: { "attr.data-size": "this.size" } }, providers: [ResizeObserverService, tuiBadgeNotificationOptionsProvider({ size: 's' })], usesOnChanges: true, hostDirectives: [{ directive: i1.TuiSegmentedDirective }], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["tui-segmented{position:relative;display:flex;box-sizing:border-box;isolation:isolate;color:var(--tui-background-neutral-1);border:.125rem solid transparent}tui-segmented[data-size=s]{--t-padding: .625rem;--t-gap: .5rem;--t-margin: -.125rem;height:var(--tui-height-s);font:var(--tui-font-text-s);border-radius:var(--tui-radius-s)}tui-segmented[data-size=s]>*:before,tui-segmented[data-size=s]>*:after,tui-segmented[data-size=s] tui-icon{font-size:1rem}tui-segmented[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;height:var(--tui-height-m);font:var(--tui-font-text-m);border-radius:var(--tui-radius-s)}tui-segmented[data-size=l]{--t-padding: 1.125rem;--t-gap: 1rem;--t-margin: -.375rem;height:var(--tui-height-l);font:var(--tui-font-text-l);border-radius:var(--tui-radius-m);border-width:.25rem}tui-segmented[data-size=l]:after{box-shadow:0 0 0 .25rem}tui-segmented>a,tui-segmented>button,tui-segmented>label,tui-segmented>label>input:not([tuiRadio]){transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit}tui-segmented>a>*,tui-segmented>button>*,tui-segmented>label>*,tui-segmented>label>input:not([tuiRadio])>*,tui-segmented>a:before,tui-segmented>button:before,tui-segmented>label:before,tui-segmented>label>input:not([tuiRadio]):before,tui-segmented>a:after,tui-segmented>button:after,tui-segmented>label:after,tui-segmented>label>input:not([tuiRadio]):after{margin:0 var(--t-margin)}tui-segmented>a:focus-visible,tui-segmented>button:focus-visible,tui-segmented>label:focus-visible,tui-segmented>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.125rem}tui-segmented>label>input:not([tuiRadio]){position:absolute;top:0;left:0;width:100%;height:100%}tui-segmented:after{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";z-index:-1;border-radius:inherit;background:currentColor;box-shadow:0 0 0 .125rem}tui-segmented:before{transition-property:left,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:var(--t-left);height:100%;width:var(--t-width);border-radius:inherit;background:currentColor;color:var(--tui-background-base);box-shadow:0 .25rem 1.25rem #0000001a}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
49
|
+
}
|
|
50
|
+
export { TuiSegmentedComponent };
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSegmentedComponent, decorators: [{
|
|
52
|
+
type: Component,
|
|
53
|
+
args: [{ standalone: true, selector: 'tui-segmented', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [ResizeObserverService, tuiBadgeNotificationOptionsProvider({ size: 's' })], hostDirectives: [TuiSegmentedDirective], styles: ["tui-segmented{position:relative;display:flex;box-sizing:border-box;isolation:isolate;color:var(--tui-background-neutral-1);border:.125rem solid transparent}tui-segmented[data-size=s]{--t-padding: .625rem;--t-gap: .5rem;--t-margin: -.125rem;height:var(--tui-height-s);font:var(--tui-font-text-s);border-radius:var(--tui-radius-s)}tui-segmented[data-size=s]>*:before,tui-segmented[data-size=s]>*:after,tui-segmented[data-size=s] tui-icon{font-size:1rem}tui-segmented[data-size=m]{--t-padding: .875rem;--t-gap: 1rem;--t-margin: -.375rem;height:var(--tui-height-m);font:var(--tui-font-text-m);border-radius:var(--tui-radius-s)}tui-segmented[data-size=l]{--t-padding: 1.125rem;--t-gap: 1rem;--t-margin: -.375rem;height:var(--tui-height-l);font:var(--tui-font-text-l);border-radius:var(--tui-radius-m);border-width:.25rem}tui-segmented[data-size=l]:after{box-shadow:0 0 0 .25rem}tui-segmented>a,tui-segmented>button,tui-segmented>label,tui-segmented>label>input:not([tuiRadio]){transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;text-decoration:none;position:relative;display:flex;align-items:center;justify-content:center;white-space:nowrap;gap:var(--t-gap);margin:0;padding:0 var(--t-padding);color:var(--tui-text-primary);overflow:hidden;cursor:pointer;font:inherit;border-radius:inherit}tui-segmented>a>*,tui-segmented>button>*,tui-segmented>label>*,tui-segmented>label>input:not([tuiRadio])>*,tui-segmented>a:before,tui-segmented>button:before,tui-segmented>label:before,tui-segmented>label>input:not([tuiRadio]):before,tui-segmented>a:after,tui-segmented>button:after,tui-segmented>label:after,tui-segmented>label>input:not([tuiRadio]):after{margin:0 var(--t-margin)}tui-segmented>a:focus-visible,tui-segmented>button:focus-visible,tui-segmented>label:focus-visible,tui-segmented>label>input:not([tuiRadio]):focus-visible{outline:.125rem solid var(--tui-border-focus);outline-offset:-.125rem}tui-segmented>label>input:not([tuiRadio]){position:absolute;top:0;left:0;width:100%;height:100%}tui-segmented:after{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";z-index:-1;border-radius:inherit;background:currentColor;box-shadow:0 0 0 .125rem}tui-segmented:before{transition-property:left,width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";position:absolute;left:var(--t-left);height:100%;width:var(--t-width);border-radius:inherit;background:currentColor;color:var(--tui-background-base);box-shadow:0 .25rem 1.25rem #0000001a}\n"] }]
|
|
54
|
+
}], propDecorators: { size: [{
|
|
55
|
+
type: Input
|
|
56
|
+
}, {
|
|
57
|
+
type: HostBinding,
|
|
58
|
+
args: ['attr.data-size']
|
|
59
|
+
}], activeItemIndex: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], activeItemIndexChange: [{
|
|
62
|
+
type: Output
|
|
63
|
+
}] } });
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VnbWVudGVkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3NlZ21lbnRlZC9zZWdtZW50ZWQuY29tcG9uZW50LnRzIl0sIm5hbWVz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tSW5kZXggPSBhY3RpdmVJdGVtSW5kZXg7XG4gICAgICAgIHRoaXMuYWN0aXZlSXRlbUluZGV4Q2hhbmdlLmVtaXQoYWN0aXZlSXRlbUluZGV4KTtcbiAgICAgICAgdGhpcy5yZWZyZXNoKCk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXQgbGVmdCgpOiBudW1iZXIge1xuICAgICAgICBjb25zdCBlbGVtZW50ID0gdGhpcy5hY3RpdmVFbGVtZW50O1xuXG4gICAgICAgIHJldHVybiB0dWlJc0hUTUxFbGVtZW50KGVsZW1lbnQpID8gZWxlbWVudC5vZmZzZXRMZWZ0IDogMDtcbiAgICB9XG5cbiAgICBwcml2YXRlIGdldCB3aWR0aCgpOiBudW1iZXIge1xuICAgICAgICByZXR1cm4gdGhpcy5hY3RpdmVFbGVtZW50Py5jbGllbnRXaWR0aCB8fCAwO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0IGFjdGl2ZUVsZW1lbnQoKTogRWxlbWVudCB8IG51bGwge1xuICAgICAgICByZXR1cm4gdGhpcy5lbC5jaGlsZHJlbi5pdGVtKHRoaXMuYWN0aXZlSXRlbUluZGV4KTtcbiAgICB9XG5cbiAgICAvLyBUT0RPOiBTd2l0Y2ggdG8gSG9zdEJpbmRpbmcgc2lnbmFscyBpbiBBbmd1bGFyIDE3K1xuICAgIHByaXZhdGUgcmVmcmVzaCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5lbC5zdHlsZS5zZXRQcm9wZXJ0eSgnLS10LWxlZnQnLCB0dWlQeCh0aGlzLmxlZnQpKTtcbiAgICAgICAgdGhpcy5lbC5zdHlsZS5zZXRQcm9wZXJ0eSgnLS10LXdpZHRoJywgdHVpUHgodGhpcy53aWR0aCkpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ContentChildren, DestroyRef, Directive, ElementRef, HostListener, inject, } from '@angular/core';
|
|
2
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
3
|
+
import { NgControl } from '@angular/forms';
|
|
4
|
+
import { RouterLinkActive } from '@angular/router';
|
|
5
|
+
import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
|
|
6
|
+
import { tuiQueryListChanges } from '@taiga-ui/cdk/observables';
|
|
7
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
8
|
+
import { EMPTY, switchMap } from 'rxjs';
|
|
9
|
+
import { TuiSegmentedComponent } from './segmented.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
class TuiSegmentedDirective {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.controls = EMPTY_QUERY;
|
|
14
|
+
this.links = EMPTY_QUERY;
|
|
15
|
+
this.elements = EMPTY_QUERY;
|
|
16
|
+
this.destroyRef = inject(DestroyRef);
|
|
17
|
+
this.component = inject(TuiSegmentedComponent);
|
|
18
|
+
this.el = tuiInjectElement();
|
|
19
|
+
}
|
|
20
|
+
ngAfterContentInit() {
|
|
21
|
+
tuiQueryListChanges(this.controls)
|
|
22
|
+
.pipe(switchMap(() => this.controls.last?.valueChanges || EMPTY), takeUntilDestroyed(this.destroyRef))
|
|
23
|
+
.subscribe(() => {
|
|
24
|
+
this.update(this.el.querySelector(':checked'));
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
ngAfterContentChecked() {
|
|
28
|
+
if (this.links.length) {
|
|
29
|
+
this.update(this.elements.get(this.linkIndex)?.nativeElement || null);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
update(target) {
|
|
33
|
+
const index = this.getIndex(target);
|
|
34
|
+
if (index >= 0) {
|
|
35
|
+
this.component.update(index);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
get linkIndex() {
|
|
39
|
+
return this.links.toArray().findIndex((link) => link.isActive);
|
|
40
|
+
}
|
|
41
|
+
getIndex(element) {
|
|
42
|
+
return Array.from(this.el.children).findIndex((tab) => tab.contains(element));
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSegmentedDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
45
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSegmentedDirective, isStandalone: true, selector: "tui-segmented:not(tui-segmented)", host: { listeners: { "click": "update($event.target)" } }, queries: [{ propertyName: "controls", predicate: NgControl, descendants: true }, { propertyName: "links", predicate: RouterLinkActive }, { propertyName: "elements", predicate: RouterLinkActive, read: ElementRef }], ngImport: i0 }); }
|
|
46
|
+
}
|
|
47
|
+
export { TuiSegmentedDirective };
|
|
48
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSegmentedDirective, decorators: [{
|
|
49
|
+
type: Directive,
|
|
50
|
+
args: [{
|
|
51
|
+
standalone: true,
|
|
52
|
+
selector: 'tui-segmented:not(tui-segmented)',
|
|
53
|
+
}]
|
|
54
|
+
}], propDecorators: { controls: [{
|
|
55
|
+
type: ContentChildren,
|
|
56
|
+
args: [NgControl, { descendants: true }]
|
|
57
|
+
}], links: [{
|
|
58
|
+
type: ContentChildren,
|
|
59
|
+
args: [RouterLinkActive]
|
|
60
|
+
}], elements: [{
|
|
61
|
+
type: ContentChildren,
|
|
62
|
+
args: [RouterLinkActive, { read: ElementRef }]
|
|
63
|
+
}], update: [{
|
|
64
|
+
type: HostListener,
|
|
65
|
+
args: ['click', ['$event.target']]
|
|
66
|
+
}] } });
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VnbWVudGVkLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3NlZ21lbnRlZC9zZW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Ghpcy5lbGVtZW50cy5nZXQodGhpcy5saW5rSW5kZXgpPy5uYXRpdmVFbGVtZW50IHx8IG51bGwpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcignY2xpY2snLCBbJyRldmVudC50YXJnZXQnXSlcbiAgICBwcm90ZWN0ZWQgdXBkYXRlKHRhcmdldDogRWxlbWVudCB8IG51bGwpOiB2b2lkIHtcbiAgICAgICAgY29uc3QgaW5kZXggPSB0aGlzLmdldEluZGV4KHRhcmdldCk7XG5cbiAgICAgICAgaWYgKGluZGV4ID49IDApIHtcbiAgICAgICAgICAgIHRoaXMuY29tcG9uZW50LnVwZGF0ZShpbmRleCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIGdldCBsaW5rSW5kZXgoKTogbnVtYmVyIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubGlua3MudG9BcnJheSgpLmZpbmRJbmRleCgobGluaykgPT4gbGluay5pc0FjdGl2ZSk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBnZXRJbmRleChlbGVtZW50OiBFbGVtZW50IHwgbnVsbCk6IG51bWJlciB7XG4gICAgICAgIHJldHVybiBBcnJheS5mcm9tKHRoaXMuZWwuY2hpbGRyZW4pLmZpbmRJbmRleCgodGFiKSA9PiB0YWIuY29udGFpbnMoZWxlbWVudCkpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWkta2l0LWNvbXBvbmVudHMtc2VnbWVudGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvc2VnbWVudGVkL3RhaWdhLXVpLWtpdC1jb21wb25lbnRzLXNlZ21lbnRlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|