@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,70 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, HostBinding, HostListener, inject, Input, ViewChild, } from '@angular/core';
|
|
2
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
3
|
+
import { TuiTileService } from './tile.service';
|
|
4
|
+
import { TuiTilesComponent } from './tiles.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
class TuiTile {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.service = inject(TuiTileService);
|
|
9
|
+
this.tiles = inject(TuiTilesComponent);
|
|
10
|
+
this.dragged = false;
|
|
11
|
+
this.width = 1;
|
|
12
|
+
this.height = 1;
|
|
13
|
+
this.element = tuiInjectElement();
|
|
14
|
+
}
|
|
15
|
+
onDrag(offset) {
|
|
16
|
+
const dragged = !Number.isNaN(offset[0]);
|
|
17
|
+
this.dragged = this.dragged || dragged;
|
|
18
|
+
this.tiles.element = dragged ? this.element : null;
|
|
19
|
+
this.service.setOffset(offset);
|
|
20
|
+
}
|
|
21
|
+
ngAfterViewInit() {
|
|
22
|
+
if (this.wrapper) {
|
|
23
|
+
this.service.init(this.wrapper.nativeElement);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
ngOnDestroy() {
|
|
27
|
+
if (this.tiles.element === this.element) {
|
|
28
|
+
this.tiles.element = null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
get column() {
|
|
32
|
+
return `span var(--tui-width, ${this.width})`;
|
|
33
|
+
}
|
|
34
|
+
get row() {
|
|
35
|
+
return `span var(--tui-height, ${this.height})`;
|
|
36
|
+
}
|
|
37
|
+
onEnter() {
|
|
38
|
+
this.tiles.rearrange(this.element);
|
|
39
|
+
}
|
|
40
|
+
onTransitionEnd() {
|
|
41
|
+
this.dragged = false;
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTile, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTile, isStandalone: true, selector: "tui-tile", inputs: { width: "width", height: "height" }, host: { listeners: { "pointerenter": "onEnter()" }, properties: { "class._dragged": "this.dragged", "style.gridColumn": "this.column", "style.gridRow": "this.row" } }, providers: [TuiTileService], viewQueries: [{ propertyName: "wrapper", first: true, predicate: ["wrapper"], descendants: true }], ngImport: i0, template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content />\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
45
|
+
}
|
|
46
|
+
export { TuiTile };
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTile, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ standalone: true, selector: 'tui-tile', changeDetection: ChangeDetectionStrategy.OnPush, providers: [TuiTileService], template: "<div\n #wrapper\n class=\"t-wrapper\"\n (transitionend.self)=\"onTransitionEnd()\"\n>\n <ng-content />\n</div>\n" }]
|
|
50
|
+
}], propDecorators: { wrapper: [{
|
|
51
|
+
type: ViewChild,
|
|
52
|
+
args: ['wrapper']
|
|
53
|
+
}], dragged: [{
|
|
54
|
+
type: HostBinding,
|
|
55
|
+
args: ['class._dragged']
|
|
56
|
+
}], width: [{
|
|
57
|
+
type: Input
|
|
58
|
+
}], height: [{
|
|
59
|
+
type: Input
|
|
60
|
+
}], column: [{
|
|
61
|
+
type: HostBinding,
|
|
62
|
+
args: ['style.gridColumn']
|
|
63
|
+
}], row: [{
|
|
64
|
+
type: HostBinding,
|
|
65
|
+
args: ['style.gridRow']
|
|
66
|
+
}], onEnter: [{
|
|
67
|
+
type: HostListener,
|
|
68
|
+
args: ['pointerenter']
|
|
69
|
+
}] } });
|
|
70
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy90aWxlcy90aWxlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RpbGVzL3RpbGUudGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxXQUFXLEVBQ1gsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsU0FBUyxHQUNaLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxnQkFBZ0IsRUFBQyxNQUFNLHlCQUF5QixDQUFDO0FBRXpELE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxnQkFBZ0IsQ0FBQztBQUM5QyxPQUFPLEVBQUMsaUJBQWlCLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQzs7QUFFcEQsTUFPYSxPQUFPO0lBUHBCO1FBV3FCLFlBQU8sR0FBRyxNQUFNLENBQUMsY0FBYyxDQUFDLENBQUM7UUFDakMsVUFBSyxHQUFHLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxDQUFD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BhbiB2YXIoLS10dWktaGVpZ2h0LCAke3RoaXMuaGVpZ2h0fSlgO1xuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ3BvaW50ZXJlbnRlcicpXG4gICAgcHJvdGVjdGVkIG9uRW50ZXIoKTogdm9pZCB7XG4gICAgICAgIHRoaXMudGlsZXMucmVhcnJhbmdlKHRoaXMuZWxlbWVudCk7XG4gICAgfVxuXG4gICAgcHJvdGVjdGVkIG9uVHJhbnNpdGlvbkVuZCgpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5kcmFnZ2VkID0gZmFsc2U7XG4gICAgfVxufVxuIiwiPGRpdlxuICAgICN3cmFwcGVyXG4gICAgY2xhc3M9XCJ0LXdyYXBwZXJcIlxuICAgICh0cmFuc2l0aW9uZW5kLnNlbGYpPVwib25UcmFuc2l0aW9uRW5kKClcIlxuPlxuICAgIDxuZy1jb250ZW50IC8+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
+
import { inject, Injectable, PLATFORM_ID } from '@angular/core';
|
|
3
|
+
import { MutationObserverService } from '@ng-web-apis/mutation-observer';
|
|
4
|
+
import { ResizeObserverService } from '@ng-web-apis/resize-observer';
|
|
5
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
6
|
+
import { tuiArrayShallowEquals, tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
7
|
+
import { BehaviorSubject, combineLatest, debounceTime, distinctUntilChanged, map, startWith, Subscription, } from 'rxjs';
|
|
8
|
+
import { TuiTilesComponent } from './tiles.component';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
class TuiTileService {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.isBrowser = isPlatformBrowser(inject(PLATFORM_ID));
|
|
13
|
+
this.el = tuiInjectElement();
|
|
14
|
+
this.tiles = inject(TuiTilesComponent);
|
|
15
|
+
this.sub = new Subscription();
|
|
16
|
+
this.offset$ = new BehaviorSubject([NaN, NaN]);
|
|
17
|
+
this.position$ = combineLatest([
|
|
18
|
+
this.offset$.pipe(distinctUntilChanged(tuiArrayShallowEquals)),
|
|
19
|
+
inject(ResizeObserverService).pipe(startWith(null)),
|
|
20
|
+
inject(MutationObserverService).pipe(startWith(null)),
|
|
21
|
+
this.tiles.order$.pipe(debounceTime(0)),
|
|
22
|
+
]).pipe(map(([offset]) => offset));
|
|
23
|
+
}
|
|
24
|
+
init(element) {
|
|
25
|
+
if (this.isBrowser) {
|
|
26
|
+
this.sub.add(this.position$.subscribe((offset) => {
|
|
27
|
+
this.setPosition(element, offset);
|
|
28
|
+
this.setRect(element, offset);
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.el.style.setProperty('position', 'relative');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
setOffset(offset) {
|
|
36
|
+
this.offset$.next(offset);
|
|
37
|
+
}
|
|
38
|
+
ngOnDestroy() {
|
|
39
|
+
this.sub.unsubscribe();
|
|
40
|
+
}
|
|
41
|
+
getRect([left, top]) {
|
|
42
|
+
const elTop = Number.isNaN(top) ? this.el.offsetTop : top;
|
|
43
|
+
const elLeft = Number.isNaN(left) ? this.el.offsetLeft : left;
|
|
44
|
+
const rect = {
|
|
45
|
+
top: elTop,
|
|
46
|
+
left: elLeft,
|
|
47
|
+
width: this.el.clientWidth,
|
|
48
|
+
height: this.el.clientHeight,
|
|
49
|
+
right: NaN,
|
|
50
|
+
bottom: NaN,
|
|
51
|
+
y: elTop,
|
|
52
|
+
x: elLeft,
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
...rect,
|
|
56
|
+
toJSON: () => JSON.stringify(rect),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
setRect({ style }, offset) {
|
|
60
|
+
const { top, left, width, height } = this.getRect(offset);
|
|
61
|
+
style.top = tuiPx(top);
|
|
62
|
+
style.left = tuiPx(left);
|
|
63
|
+
style.width = tuiPx(width);
|
|
64
|
+
style.height = tuiPx(height);
|
|
65
|
+
}
|
|
66
|
+
setPosition(element, [left]) {
|
|
67
|
+
if (!Number.isNaN(left)) {
|
|
68
|
+
element.style.setProperty('position', 'fixed');
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const { style } = element;
|
|
72
|
+
const rect = element.getBoundingClientRect();
|
|
73
|
+
const host = this.el.getBoundingClientRect();
|
|
74
|
+
style.removeProperty('position');
|
|
75
|
+
style.top = tuiPx(rect.top - host.top + this.el.offsetTop);
|
|
76
|
+
style.left = tuiPx(rect.left - host.left + this.el.offsetLeft);
|
|
77
|
+
}
|
|
78
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
79
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTileService }); }
|
|
80
|
+
}
|
|
81
|
+
export { TuiTileService };
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTileService, decorators: [{
|
|
83
|
+
type: Injectable
|
|
84
|
+
}] });
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlsZS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvdGlsZXMvdGlsZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBRWxELE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBQy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3QgPSB0aGlzLmVsLmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpO1xuXG4gICAgICAgIHN0eWxlLnJlbW92ZVByb3BlcnR5KCdwb3NpdGlvbicpO1xuICAgICAgICBzdHlsZS50b3AgPSB0dWlQeChyZWN0LnRvcCAtIGhvc3QudG9wICsgdGhpcy5lbC5vZmZzZXRUb3ApO1xuICAgICAgICBzdHlsZS5sZWZ0ID0gdHVpUHgocmVjdC5sZWZ0IC0gaG9zdC5sZWZ0ICsgdGhpcy5lbC5vZmZzZXRMZWZ0KTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, HostBinding, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { MUTATION_OBSERVER_INIT, MutationObserverService, } from '@ng-web-apis/mutation-observer';
|
|
3
|
+
import { ResizeObserverService } from '@ng-web-apis/resize-observer';
|
|
4
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
5
|
+
import { BehaviorSubject, debounce, filter, map, Subject, timer } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
class TuiTilesComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.el = tuiInjectElement();
|
|
10
|
+
this.el$ = new Subject();
|
|
11
|
+
this.debounce = 0;
|
|
12
|
+
this.orderChange = this.el$.pipe(debounce(() => timer(this.debounce)), filter(this.filter.bind(this)), map((element) => this.reorder(element)));
|
|
13
|
+
this.element = null;
|
|
14
|
+
this.order$ = new BehaviorSubject(new Map());
|
|
15
|
+
}
|
|
16
|
+
set order(map) {
|
|
17
|
+
this.order$.next(map);
|
|
18
|
+
}
|
|
19
|
+
get order() {
|
|
20
|
+
return this.order$.value;
|
|
21
|
+
}
|
|
22
|
+
rearrange(element) {
|
|
23
|
+
this.el$.next(element);
|
|
24
|
+
}
|
|
25
|
+
filter(element) {
|
|
26
|
+
return !!this.element && !!element && this.element !== element;
|
|
27
|
+
}
|
|
28
|
+
reorder(element) {
|
|
29
|
+
const elements = Array.from(this.el.children);
|
|
30
|
+
const currentIndex = elements.indexOf(this.element || element);
|
|
31
|
+
const newIndex = elements.indexOf(element);
|
|
32
|
+
const order = this.order.size
|
|
33
|
+
? new Map(this.order)
|
|
34
|
+
: new Map(elements.map((_, index) => [index, index]));
|
|
35
|
+
const dragged = order.get(currentIndex) ?? currentIndex;
|
|
36
|
+
const placement = order.get(newIndex) ?? newIndex;
|
|
37
|
+
order.set(currentIndex, placement);
|
|
38
|
+
order.set(newIndex, dragged);
|
|
39
|
+
this.order$.next(order);
|
|
40
|
+
return order;
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTilesComponent, isStandalone: true, selector: "tui-tiles", inputs: { debounce: "debounce", order: "order" }, outputs: { orderChange: "orderChange" }, host: { listeners: { "pointerleave.silent": "rearrange()" }, properties: { "class._dragged": "this.element" } }, providers: [
|
|
44
|
+
ResizeObserverService,
|
|
45
|
+
MutationObserverService,
|
|
46
|
+
{
|
|
47
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
48
|
+
useValue: { childList: true },
|
|
49
|
+
},
|
|
50
|
+
], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
51
|
+
}
|
|
52
|
+
export { TuiTilesComponent };
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTilesComponent, decorators: [{
|
|
54
|
+
type: Component,
|
|
55
|
+
args: [{ standalone: true, selector: 'tui-tiles', template: '<ng-content></ng-content>', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
56
|
+
ResizeObserverService,
|
|
57
|
+
MutationObserverService,
|
|
58
|
+
{
|
|
59
|
+
provide: MUTATION_OBSERVER_INIT,
|
|
60
|
+
useValue: { childList: true },
|
|
61
|
+
},
|
|
62
|
+
], styles: ["tui-tiles{position:relative;z-index:0;display:grid;grid-auto-flow:dense;justify-items:stretch}tui-tiles._dragged tui-tile>.t-wrapper{pointer-events:none}tui-tiles._dragged tui-tile:not(._dragged)>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tiles:not(._dragged) tui-tile._dragged>.t-wrapper{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transition-delay:1ms}tui-tile>.t-wrapper{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;border-radius:inherit}tui-tile._dragged>.t-wrapper{z-index:1;transition:none}\n"] }]
|
|
63
|
+
}], propDecorators: { debounce: [{
|
|
64
|
+
type: Input
|
|
65
|
+
}], orderChange: [{
|
|
66
|
+
type: Output
|
|
67
|
+
}], element: [{
|
|
68
|
+
type: HostBinding,
|
|
69
|
+
args: ['class._dragged']
|
|
70
|
+
}], order: [{
|
|
71
|
+
type: Input
|
|
72
|
+
}], rearrange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heS5mcm9tKHRoaXMuZWwuY2hpbGRyZW4pO1xuICAgICAgICBjb25zdCBjdXJyZW50SW5kZXggPSBlbGVtZW50cy5pbmRleE9mKHRoaXMuZWxlbWVudCB8fCBlbGVtZW50KTtcbiAgICAgICAgY29uc3QgbmV3SW5kZXggPSBlbGVtZW50cy5pbmRleE9mKGVsZW1lbnQpO1xuICAgICAgICBjb25zdCBvcmRlciA9IHRoaXMub3JkZXIuc2l6ZVxuICAgICAgICAgICAgPyBuZXcgTWFwKHRoaXMub3JkZXIpXG4gICAgICAgICAgICA6IG5ldyBNYXAoZWxlbWVudHMubWFwKChfLCBpbmRleCkgPT4gW2luZGV4LCBpbmRleF0pKTtcbiAgICAgICAgY29uc3QgZHJhZ2dlZCA9IG9yZGVyLmdldChjdXJyZW50SW5kZXgpID8/IGN1cnJlbnRJbmRleDtcbiAgICAgICAgY29uc3QgcGxhY2VtZW50ID0gb3JkZXIuZ2V0KG5ld0luZGV4KSA/PyBuZXdJbmRleDtcblxuICAgICAgICBvcmRlci5zZXQoY3VycmVudEluZGV4LCBwbGFjZW1lbnQpO1xuICAgICAgICBvcmRlci5zZXQobmV3SW5kZXgsIGRyYWdnZWQpO1xuXG4gICAgICAgIHRoaXMub3JkZXIkLm5leHQob3JkZXIpO1xuXG4gICAgICAgIHJldHVybiBvcmRlcjtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TuiTile } from './tile.component';
|
|
2
|
+
import { TuiTileHandle } from './tile-handle.directive';
|
|
3
|
+
import { TuiTilesComponent } from './tiles.component';
|
|
4
|
+
export const TuiTiles = [TuiTilesComponent, TuiTile, TuiTileHandle];
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGlsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy90aWxlcy90aWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sa0JBQWtCLENBQUM7QUFDekMsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLHlCQUF5QixDQUFDO0FBQ3RELE9BQU8sRUFBQyxpQkFBaUIsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBRXBELE1BQU0sQ0FBQyxNQUFNLFFBQVEsR0FBRyxDQUFDLGlCQUFpQixFQUFFLE9BQU8sRUFBRSxhQUFhLENBQVUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7VHVpVGlsZX0gZnJvbSAnLi90aWxlLmNvbXBvbmVudCc7XG5pbXBvcnQge1R1aVRpbGVIYW5kbGV9IGZyb20gJy4vdGlsZS1oYW5kbGUuZGlyZWN0aXZlJztcbmltcG9ydCB7VHVpVGlsZXNDb21wb25lbnR9IGZyb20gJy4vdGlsZXMuY29tcG9uZW50JztcblxuZXhwb3J0IGNvbnN0IFR1aVRpbGVzID0gW1R1aVRpbGVzQ29tcG9uZW50LCBUdWlUaWxlLCBUdWlUaWxlSGFuZGxlXSBhcyBjb25zdDtcbiJdfQ==
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AsyncPipe, NgForOf, NgIf } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, inject, Input, ViewChild, } from '@angular/core';
|
|
3
|
+
import { TuiLet } from '@taiga-ui/cdk/directives/let';
|
|
4
|
+
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
5
|
+
import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
6
|
+
import { distinctUntilChanged, map, startWith, Subject } from 'rxjs';
|
|
7
|
+
import { TuiTreeChildren } from '../../directives/tree-children.directive';
|
|
8
|
+
import { TuiTreeNode } from '../../directives/tree-node.directive';
|
|
9
|
+
import { TUI_TREE_NODE } from '../../misc/tree.tokens';
|
|
10
|
+
import { TuiTreeItem } from '../tree-item/tree-item.component';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
class TuiTreeComponent {
|
|
13
|
+
constructor() {
|
|
14
|
+
this.check$ = new Subject();
|
|
15
|
+
this.children$ = this.check$.pipe(startWith(null), map(() => this.handler(this.value)), distinctUntilChanged());
|
|
16
|
+
this.directive = inject(TuiTreeChildren, {
|
|
17
|
+
optional: true,
|
|
18
|
+
});
|
|
19
|
+
this.trackBy = (_, item) => item;
|
|
20
|
+
this.content = ({ $implicit }) => String($implicit);
|
|
21
|
+
}
|
|
22
|
+
ngDoCheck() {
|
|
23
|
+
this.checkChanges();
|
|
24
|
+
}
|
|
25
|
+
checkChanges() {
|
|
26
|
+
this.check$.next();
|
|
27
|
+
this.item?.checkChanges();
|
|
28
|
+
this.child?.checkChanges();
|
|
29
|
+
}
|
|
30
|
+
get handler() {
|
|
31
|
+
return this.directive?.childrenHandler || TuiTreeChildren.defaultHandler;
|
|
32
|
+
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTreeComponent, isStandalone: true, selector: "tui-tree", inputs: { value: "value", trackBy: "trackBy", content: "content" }, host: { attributes: { "role": "tree" } }, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], viewQueries: [{ propertyName: "item", first: true, predicate: i0.forwardRef(function () { return TuiTreeItem; }), descendants: true }, { propertyName: "child", first: true, predicate: i0.forwardRef(function () { return TuiTreeComponent; }), descendants: true }], ngImport: i0, template: "<tui-tree-item\n *tuiLet=\"children$ | async as children\"\n #view\n [tuiTreeNode]=\"value\"\n>\n <ng-container *ngIf=\"value !== children\">\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n </ng-container>\n <tui-tree\n *ngFor=\"let child of children; trackBy: trackBy\"\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"], dependencies: [{ kind: "component", type: TuiTreeComponent, selector: "tui-tree", inputs: ["value", "trackBy", "content"] }, { kind: "component", type: TuiTreeItem, selector: "tui-tree-item" }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: TuiTreeNode, selector: "tui-tree-item[tuiTreeNode]", inputs: ["tuiTreeNode"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
35
|
+
}
|
|
36
|
+
export { TuiTreeComponent };
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ standalone: true, selector: 'tui-tree', imports: [
|
|
40
|
+
TuiTreeItem,
|
|
41
|
+
TuiLet,
|
|
42
|
+
PolymorpheusOutlet,
|
|
43
|
+
NgIf,
|
|
44
|
+
NgForOf,
|
|
45
|
+
TuiTreeNode,
|
|
46
|
+
AsyncPipe,
|
|
47
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], host: { role: 'tree' }, template: "<tui-tree-item\n *tuiLet=\"children$ | async as children\"\n #view\n [tuiTreeNode]=\"value\"\n>\n <ng-container *ngIf=\"value !== children\">\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n </ng-container>\n <tui-tree\n *ngFor=\"let child of children; trackBy: trackBy\"\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"] }]
|
|
48
|
+
}], propDecorators: { item: [{
|
|
49
|
+
type: ViewChild,
|
|
50
|
+
args: [forwardRef(() => TuiTreeItem)]
|
|
51
|
+
}], child: [{
|
|
52
|
+
type: ViewChild,
|
|
53
|
+
args: [forwardRef(() => TuiTreeComponent)]
|
|
54
|
+
}], value: [{
|
|
55
|
+
type: Input,
|
|
56
|
+
args: [{
|
|
57
|
+
required: true,
|
|
58
|
+
}]
|
|
59
|
+
}], trackBy: [{
|
|
60
|
+
type: Input
|
|
61
|
+
}], content: [{
|
|
62
|
+
type: Input
|
|
63
|
+
}] } });
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy90cmVlL2NvbXBvbmVudHMvdHJlZS90cmVlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RyZWUvY29tcG9uZW50cy90cmVlL3RyZWUudGVtcGxhdGUuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE9BQU8sRUFBRSxJQUFJLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUV6RCxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsTUFBTSxFQUNOLEtBQUss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dGV4dCB9fVxuICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8dHVpLXRyZWVcbiAgICAgICAgKm5nRm9yPVwibGV0IGNoaWxkIG9mIGNoaWxkcmVuOyB0cmFja0J5OiB0cmFja0J5XCJcbiAgICAgICAgW2NvbnRlbnRdPVwiY29udGVudFwiXG4gICAgICAgIFt0cmFja0J5XT1cInRyYWNrQnlcIlxuICAgICAgICBbdmFsdWVdPVwiY2hpbGRcIlxuICAgIC8+XG48L3R1aS10cmVlLWl0ZW0+XG4iXX0=
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AsyncPipe, NgIf } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChildren, forwardRef, HostBinding, inject, SkipSelf, } from '@angular/core';
|
|
3
|
+
import { EMPTY_QUERY } from '@taiga-ui/cdk/constants';
|
|
4
|
+
import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
|
|
5
|
+
import { tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
6
|
+
import { TuiExpandComponent } from '@taiga-ui/core/components/expand';
|
|
7
|
+
import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
8
|
+
import { distinctUntilChanged, map, startWith, Subject } from 'rxjs';
|
|
9
|
+
import { TUI_TREE_CONTENT, TUI_TREE_CONTROLLER, TUI_TREE_LEVEL, TUI_TREE_NODE, } from '../../misc/tree.tokens';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
class TuiTreeItem {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.nested = EMPTY_QUERY;
|
|
14
|
+
this.el = tuiInjectElement();
|
|
15
|
+
this.controller = inject(forwardRef(() => TUI_TREE_CONTROLLER));
|
|
16
|
+
this.change$ = new Subject();
|
|
17
|
+
this.level = inject(forwardRef(() => TUI_TREE_LEVEL));
|
|
18
|
+
this.content = inject(forwardRef(() => TUI_TREE_CONTENT));
|
|
19
|
+
this.expanded$ = this.change$.pipe(startWith(null), map(() => this.isExpanded));
|
|
20
|
+
this.attached$ = this.change$.pipe(map(() => this.el.isConnected), distinctUntilChanged());
|
|
21
|
+
}
|
|
22
|
+
get isExpandable() {
|
|
23
|
+
return !!this.nested.length;
|
|
24
|
+
}
|
|
25
|
+
get isExpanded() {
|
|
26
|
+
return this.controller.isExpanded(this);
|
|
27
|
+
}
|
|
28
|
+
ngDoCheck() {
|
|
29
|
+
this.checkChanges();
|
|
30
|
+
}
|
|
31
|
+
checkChanges() {
|
|
32
|
+
this.change$.next();
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTreeItem, isStandalone: true, selector: "tui-tree-item", host: { attributes: { "role": "treeitem" }, properties: { "class._expandable": "this.isExpandable" } }, providers: [
|
|
36
|
+
tuiProvide(TUI_TREE_NODE, TuiTreeItem),
|
|
37
|
+
{
|
|
38
|
+
provide: TUI_TREE_LEVEL,
|
|
39
|
+
deps: [[new SkipSelf(), TUI_TREE_LEVEL]],
|
|
40
|
+
useFactory: (level) => ++level,
|
|
41
|
+
},
|
|
42
|
+
], queries: [{ propertyName: "nested", predicate: TUI_TREE_NODE }], ngImport: i0, template: "<ng-template #template>\n <ng-content />\n</ng-template>\n<ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: this, template: template}\">\n {{ text }}\n</ng-container>\n<tui-expand\n *ngIf=\"isExpandable\"\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded$ | async\"\n>\n <div>\n <ng-content select=\"tui-tree-item\" />\n <ng-content select=\"tui-tree\" />\n </div>\n</tui-expand>\n<ng-container *ngIf=\"attached$ | async\" />\n", styles: [":host{display:block}.t-children{position:relative;margin-left:var(--tui-tree-item-indent, 1.5rem)}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
43
|
+
}
|
|
44
|
+
export { TuiTreeItem };
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeItem, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{ standalone: true, selector: 'tui-tree-item', imports: [PolymorpheusOutlet, TuiExpandComponent, NgIf, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
48
|
+
tuiProvide(TUI_TREE_NODE, TuiTreeItem),
|
|
49
|
+
{
|
|
50
|
+
provide: TUI_TREE_LEVEL,
|
|
51
|
+
deps: [[new SkipSelf(), TUI_TREE_LEVEL]],
|
|
52
|
+
useFactory: (level) => ++level,
|
|
53
|
+
},
|
|
54
|
+
], host: {
|
|
55
|
+
role: 'treeitem',
|
|
56
|
+
}, template: "<ng-template #template>\n <ng-content />\n</ng-template>\n<ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: this, template: template}\">\n {{ text }}\n</ng-container>\n<tui-expand\n *ngIf=\"isExpandable\"\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded$ | async\"\n>\n <div>\n <ng-content select=\"tui-tree-item\" />\n <ng-content select=\"tui-tree\" />\n </div>\n</tui-expand>\n<ng-container *ngIf=\"attached$ | async\" />\n", styles: [":host{display:block}.t-children{position:relative;margin-left:var(--tui-tree-item-indent, 1.5rem)}\n"] }]
|
|
57
|
+
}], propDecorators: { nested: [{
|
|
58
|
+
type: ContentChildren,
|
|
59
|
+
args: [TUI_TREE_NODE]
|
|
60
|
+
}], isExpandable: [{
|
|
61
|
+
type: HostBinding,
|
|
62
|
+
args: ['class._expandable']
|
|
63
|
+
}] } });
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RyZWUvY29tcG9uZW50cy90cmVlLWl0ZW0vdHJlZS1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RyZWUvY29tcG9uZW50cy90cmVlLWl0ZW0vdHJlZS1pdGVtLnRlbXBsYXRlLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUVoRCxPQUFPLEVBQ0gsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxlQUFlLEVBQ2YsVUFBVSxFQUNWLFdBQVcsRUFDWCxNQUFNLEVBQ04sUUFBUSxHQUNYLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBQyxXQUFXLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUNwRCxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sbUNBQW1DLENBQUM7QUFDN0QsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sa0NBQWtDLENBQUM7QUFFcEUsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFDMUQs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pbGRyZW5cIlxuICAgIFtleHBhbmRlZF09XCJleHBhbmRlZCQgfCBhc3luY1wiXG4+XG4gICAgPGRpdj5cbiAgICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwidHVpLXRyZWUtaXRlbVwiIC8+XG4gICAgICAgIDxuZy1jb250ZW50IHNlbGVjdD1cInR1aS10cmVlXCIgLz5cbiAgICA8L2Rpdj5cbjwvdHVpLWV4cGFuZD5cbjxuZy1jb250YWluZXIgKm5nSWY9XCJhdHRhY2hlZCQgfCBhc3luY1wiIC8+XG4iXX0=
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AsyncPipe, NgIf, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, HostBinding, inject, } from '@angular/core';
|
|
3
|
+
import { TuiButton } from '@taiga-ui/core/components/button';
|
|
4
|
+
import { TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
|
|
5
|
+
import { POLYMORPHEUS_CONTEXT } from '@taiga-ui/polymorpheus';
|
|
6
|
+
import { distinctUntilChanged, map, startWith, Subject } from 'rxjs';
|
|
7
|
+
import { TUI_DEFAULT_TREE_CONTROLLER } from '../../misc/tree.constants';
|
|
8
|
+
import { TUI_TREE_CONTROLLER } from '../../misc/tree.tokens';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
class TuiTreeItemContent {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.controller = inject(forwardRef(() => TUI_TREE_CONTROLLER));
|
|
13
|
+
this.change$ = new Subject();
|
|
14
|
+
this.icons = inject(TUI_COMMON_ICONS);
|
|
15
|
+
this.context = inject(POLYMORPHEUS_CONTEXT);
|
|
16
|
+
this.expanded$ = this.change$.pipe(startWith(null), map(() => this.isExpanded), distinctUntilChanged());
|
|
17
|
+
}
|
|
18
|
+
ngDoCheck() {
|
|
19
|
+
this.change$.next();
|
|
20
|
+
}
|
|
21
|
+
get isExpandable() {
|
|
22
|
+
return (this.context.$implicit.isExpandable &&
|
|
23
|
+
this.controller !== TUI_DEFAULT_TREE_CONTROLLER);
|
|
24
|
+
}
|
|
25
|
+
get isExpanded() {
|
|
26
|
+
return this.context.$implicit.isExpanded;
|
|
27
|
+
}
|
|
28
|
+
onClick() {
|
|
29
|
+
this.controller.toggle(this.context.$implicit);
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiTreeItemContent, isStandalone: true, selector: "ng-component", host: { properties: { "class._expandable": "this.isExpandable" } }, ngImport: i0, template: "<button\n *ngIf=\"isExpandable\"\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"expanded$ | async\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n></button>\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-left:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-right:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
|
+
}
|
|
34
|
+
export { TuiTreeItemContent };
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeItemContent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ standalone: true, imports: [NgIf, TuiButton, NgTemplateOutlet, AsyncPipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n *ngIf=\"isExpandable\"\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"expanded$ | async\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n></button>\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-left:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-right:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"] }]
|
|
38
|
+
}], propDecorators: { isExpandable: [{
|
|
39
|
+
type: HostBinding,
|
|
40
|
+
args: ['class._expandable']
|
|
41
|
+
}] } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtLWNvbnRlbnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMva2l0L2NvbXBvbmVudHMvdHJlZS9jb21wb25lbnRzL3RyZWUtaXRlbS1jb250ZW50L3RyZWUtaXRlbS1jb250ZW50LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RyZWUvY29tcG9uZW50cy90cmVlLWl0ZW0tY29udGVudC90cmVlLWl0ZW0tY29udGVudC50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ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bnRyb2xsZXIgIT09IFRVSV9ERUZBVUxUX1RSRUVfQ09OVFJPTExFUlxuICAgICAgICApO1xuICAgIH1cblxuICAgIHByb3RlY3RlZCBnZXQgaXNFeHBhbmRlZCgpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29udGV4dC4kaW1wbGljaXQuaXNFeHBhbmRlZDtcbiAgICB9XG5cbiAgICBwcm90ZWN0ZWQgb25DbGljaygpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5jb250cm9sbGVyLnRvZ2dsZSh0aGlzLmNvbnRleHQuJGltcGxpY2l0KTtcbiAgICB9XG59XG4iLCI8YnV0dG9uXG4gICAgKm5nSWY9XCJpc0V4cGFuZGFibGVcIlxuICAgIGFwcGVhcmFuY2U9XCJmbGF0XCJcbiAgICBzaXplPVwieHNcIlxuICAgIHR1aUljb25CdXR0b25cbiAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICBjbGFzcz1cInQtYnV0dG9uXCJcbiAgICBbY2xhc3MudC1idXR0b25fZXhwYW5kZWRdPVwiZXhwYW5kZWQkIHwgYXN5bmNcIlxuICAgIFtpY29uU3RhcnRdPVwiaWNvbnMubW9yZVwiXG4gICAgW3N0eWxlLmJvcmRlci1yYWRpdXMuJV09XCIxMDBcIlxuICAgIChjbGljayk9XCJvbkNsaWNrKClcIlxuPjwvYnV0dG9uPlxuPG5nLWNvbnRhaW5lciBbbmdUZW1wbGF0ZU91dGxldF09XCJjb250ZXh0LnRlbXBsYXRlXCIgLz5cbiJdfQ==
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
|
2
|
+
import { EMPTY_ARRAY } from '@taiga-ui/cdk/constants';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
class TuiTreeChildren {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.childrenHandler = TuiTreeChildren.defaultHandler;
|
|
7
|
+
}
|
|
8
|
+
static defaultHandler(item) {
|
|
9
|
+
return Array.isArray(item) ? item : EMPTY_ARRAY;
|
|
10
|
+
}
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
12
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiTreeChildren, isStandalone: true, selector: "tui-tree[childrenHandler]", inputs: { childrenHandler: "childrenHandler" }, ngImport: i0 }); }
|
|
13
|
+
}
|
|
14
|
+
export { TuiTreeChildren };
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeChildren, decorators: [{
|
|
16
|
+
type: Directive,
|
|
17
|
+
args: [{
|
|
18
|
+
standalone: true,
|
|
19
|
+
selector: 'tui-tree[childrenHandler]',
|
|
20
|
+
}]
|
|
21
|
+
}], propDecorators: { childrenHandler: [{
|
|
22
|
+
type: Input
|
|
23
|
+
}] } });
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1jaGlsZHJlbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9raXQvY29tcG9uZW50cy90cmVlL2RpcmVjdGl2ZXMvdHJlZS1jaGlsZHJlbi5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLHlCQUF5QixDQUFDOztBQUdwRCxNQUlhLGVBQWU7SUFKNUI7UUFNVyxvQkFBZSxHQUFnQyxlQUFlLENBQUMsY0FBYyxDQUFDO0tBS3hGO0lBS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@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { tuiIsPresent, tuiProvide } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
3
|
+
import { TUI_TREE_ACCESSOR, TUI_TREE_CONTROLLER } from '../misc/tree.tokens';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
class TuiTreeControllerDirective {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.items = new Map();
|
|
8
|
+
this.fallback = true;
|
|
9
|
+
this.map = new Map();
|
|
10
|
+
this.toggled = new EventEmitter();
|
|
11
|
+
}
|
|
12
|
+
register(item, value) {
|
|
13
|
+
this.items.set(item, value);
|
|
14
|
+
}
|
|
15
|
+
unregister(item) {
|
|
16
|
+
this.items.delete(item);
|
|
17
|
+
}
|
|
18
|
+
isExpanded(item) {
|
|
19
|
+
const value = this.items.get(item);
|
|
20
|
+
return (value && this.map.get(value)) ?? this.fallback;
|
|
21
|
+
}
|
|
22
|
+
toggle(item) {
|
|
23
|
+
const value = this.items.get(item);
|
|
24
|
+
const expanded = this.isExpanded(item);
|
|
25
|
+
if (!tuiIsPresent(value)) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.toggled.emit(value);
|
|
29
|
+
this.map.set(value, !expanded);
|
|
30
|
+
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeControllerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiTreeControllerDirective, isStandalone: true, selector: "[tuiTreeController][map]", inputs: { fallback: ["tuiTreeController", "fallback"], map: "map" }, outputs: { toggled: "toggled" }, providers: [
|
|
33
|
+
tuiProvide(TUI_TREE_ACCESSOR, TuiTreeControllerDirective),
|
|
34
|
+
tuiProvide(TUI_TREE_CONTROLLER, TuiTreeControllerDirective),
|
|
35
|
+
], exportAs: ["tuiTreeController"], ngImport: i0 }); }
|
|
36
|
+
}
|
|
37
|
+
export { TuiTreeControllerDirective };
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiTreeControllerDirective, decorators: [{
|
|
39
|
+
type: Directive,
|
|
40
|
+
args: [{
|
|
41
|
+
standalone: true,
|
|
42
|
+
selector: '[tuiTreeController][map]',
|
|
43
|
+
providers: [
|
|
44
|
+
tuiProvide(TUI_TREE_ACCESSOR, TuiTreeControllerDirective),
|
|
45
|
+
tuiProvide(TUI_TREE_CONTROLLER, TuiTreeControllerDirective),
|
|
46
|
+
],
|
|
47
|
+
exportAs: 'tuiTreeController',
|
|
48
|
+
}]
|
|
49
|
+
}], propDecorators: { fallback: [{
|
|
50
|
+
type: Input,
|
|
51
|
+
args: ['tuiTreeController']
|
|
52
|
+
}], map: [{
|
|
53
|
+
type: Input
|
|
54
|
+
}], toggled: [{
|
|
55
|
+
type: Output
|
|
56
|
+
}] } });
|
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1jb250cm9sbGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2tpdC9jb21wb25lbnRzL3RyZWUvZGlyZWN0aXZlcy90cmVlLWNvbnRyb2xsZXIuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDckUsT0FBTyxFQUFDLFlBQVksRUFBRSxVQUFVLEVBQUMsTUFBTSxtQ0FBbUMsQ0FBQztBQUkzRSxPQUFPLEVBQUM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