@taiga-ui/kit 3.14.0 → 3.15.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/bundles/taiga-ui-kit-components-accordion.umd.js +19 -26
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +15 -15
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +10 -10
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +11 -11
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-files.umd.js +39 -33
- package/bundles/taiga-ui-kit-components-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +11 -11
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +27 -22
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +15 -15
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +11 -11
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-files.umd.js +28 -28
- package/bundles/taiga-ui-kit-components-input-files.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +25 -25
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +16 -16
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +33 -33
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +19 -19
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +15 -15
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +57 -26
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +10 -10
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-year.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-input-year.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.js +20 -20
- package/bundles/taiga-ui-kit-components-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-items-with-more.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +14 -14
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +10 -10
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +31 -31
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-push.umd.js +17 -17
- package/bundles/taiga-ui-kit-components-push.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +11 -11
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-radio-list.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +31 -31
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-rating.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-rating.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +30 -28
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +37 -37
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +30 -30
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +44 -44
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js +24 -24
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +20 -20
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tiles.umd.js +15 -15
- package/bundles/taiga-ui-kit-components-tiles.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +9 -9
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js +36 -26
- package/bundles/taiga-ui-kit-directives-data-list-dropdown-manager.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +10 -10
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +11 -11
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js +8 -10
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.js +2 -2
- package/bundles/taiga-ui-kit-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js +4 -4
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +4 -4
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/components/accordion/accordion-item/accordion-item.component.d.ts +0 -1
- package/components/files/file/file.component.d.ts +2 -1
- package/components/input-count/input-count.component.d.ts +3 -3
- package/components/input-tag/input-tag.component.d.ts +4 -1
- package/components/select/native-select/native-select.d.ts +3 -2
- package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +4 -1
- package/directives/present/present.directive.d.ts +1 -1
- package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -2
- package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +2 -2
- package/esm2015/components/accordion/accordion-item/accordion-item.component.js +15 -22
- package/esm2015/components/accordion/accordion.component.js +4 -4
- package/esm2015/components/action/action.component.js +9 -9
- package/esm2015/components/arrow/arrow.component.js +5 -5
- package/esm2015/components/avatar/avatar.component.js +16 -16
- package/esm2015/components/badge/badge.component.js +18 -18
- package/esm2015/components/badged-content/badged-content.component.js +23 -23
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +7 -7
- package/esm2015/components/calendar-month/calendar-month.component.js +5 -5
- package/esm2015/components/calendar-range/calendar-range.component.js +8 -8
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +3 -3
- package/esm2015/components/carousel/carousel-buttons.directive.js +6 -6
- package/esm2015/components/carousel/carousel-scroll.directive.js +3 -3
- package/esm2015/components/carousel/carousel.component.js +12 -12
- package/esm2015/components/carousel/carousel.directive.js +3 -3
- package/esm2015/components/checkbox/checkbox.component.js +6 -6
- package/esm2015/components/checkbox-block/checkbox-block.component.js +11 -11
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +7 -7
- package/esm2015/components/combo-box/combo-box-strict.directive.js +3 -3
- package/esm2015/components/combo-box/combo-box.component.js +9 -9
- package/esm2015/components/combo-box/combo-box.directive.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +5 -5
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +5 -5
- package/esm2015/components/files/file/file.component.js +37 -31
- package/esm2015/components/files/files.component.js +4 -4
- package/esm2015/components/filter/filter.component.js +6 -6
- package/esm2015/components/input/input.component.js +6 -6
- package/esm2015/components/input/input.directive.js +2 -2
- package/esm2015/components/input-copy/input-copy.component.js +11 -11
- package/esm2015/components/input-copy/input-copy.directive.js +2 -2
- package/esm2015/components/input-count/input-count.component.js +26 -21
- package/esm2015/components/input-count/input-count.directive.js +4 -4
- package/esm2015/components/input-date/input-date.component.js +10 -10
- package/esm2015/components/input-date/input-date.directive.js +3 -3
- package/esm2015/components/input-date-range/input-date-range.component.js +14 -14
- package/esm2015/components/input-date-range/input-date-range.directive.js +3 -3
- package/esm2015/components/input-date-time/input-date-time.component.js +16 -16
- package/esm2015/components/input-date-time/input-date-time.directive.js +3 -3
- package/esm2015/components/input-files/input-files.component.js +21 -21
- package/esm2015/components/input-files/input-files.directive.js +9 -9
- package/esm2015/components/input-inline/input-inline.component.js +7 -7
- package/esm2015/components/input-month/input-month.component.js +4 -4
- package/esm2015/components/input-month/input-month.directive.js +3 -3
- package/esm2015/components/input-month-range/input-month-range.component.js +5 -5
- package/esm2015/components/input-month-range/input-month-range.directive.js +4 -4
- package/esm2015/components/input-number/input-number.component.js +24 -24
- package/esm2015/components/input-number/input-number.directive.js +3 -3
- package/esm2015/components/input-password/input-password.component.js +9 -9
- package/esm2015/components/input-password/input-password.directive.js +2 -2
- package/esm2015/components/input-phone/input-phone.component.js +32 -32
- package/esm2015/components/input-phone/input-phone.directive.js +3 -3
- package/esm2015/components/input-phone-international/input-phone-international.component.js +17 -17
- package/esm2015/components/input-range/input-range.component.js +20 -20
- package/esm2015/components/input-slider/input-slider.component.js +16 -16
- package/esm2015/components/input-tag/input-tag.component.js +50 -27
- package/esm2015/components/input-time/input-time.component.js +11 -11
- package/esm2015/components/input-year/input-year.component.js +4 -4
- package/esm2015/components/input-year/input-year.directive.js +3 -3
- package/esm2015/components/island/island.component.js +21 -21
- package/esm2015/components/items-with-more/items-with-more.component.js +4 -4
- package/esm2015/components/items-with-more/items-with-more.directive.js +2 -2
- package/esm2015/components/items-with-more/more.directive.js +2 -2
- package/esm2015/components/line-clamp/line-clamp-box.component.js +4 -4
- package/esm2015/components/line-clamp/line-clamp-position.directive.js +2 -2
- package/esm2015/components/line-clamp/line-clamp.component.js +11 -11
- package/esm2015/components/marker-icon/marker-icon.component.js +9 -9
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +6 -6
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +2 -2
- package/esm2015/components/multi-select/multi-select.component.js +12 -12
- package/esm2015/components/multi-select-option/multi-select-option.component.js +8 -8
- package/esm2015/components/pagination/pagination.component.js +10 -10
- package/esm2015/components/pdf-viewer/pdf-viewer.component.js +8 -8
- package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +4 -4
- package/esm2015/components/progress/progress-bar/progress-bar.component.js +8 -8
- package/esm2015/components/progress/progress-bar/progress-color-segments.directive.js +6 -6
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +9 -9
- package/esm2015/components/progress/progress-label/progress-label.component.js +4 -4
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +9 -9
- package/esm2015/components/push/push-alert.component.js +9 -9
- package/esm2015/components/push/push-alert.directive.js +2 -2
- package/esm2015/components/push/push.component.js +6 -6
- package/esm2015/components/push/push.directive.js +4 -4
- package/esm2015/components/radio/radio.component.js +9 -9
- package/esm2015/components/radio-block/radio-block.component.js +12 -12
- package/esm2015/components/radio-group/radio-group.component.js +3 -3
- package/esm2015/components/radio-labeled/radio-labeled.component.js +8 -8
- package/esm2015/components/radio-list/radio-list.component.js +8 -8
- package/esm2015/components/range/range-change.directive.js +11 -11
- package/esm2015/components/range/range.component.js +21 -21
- package/esm2015/components/rating/rating.component.js +7 -7
- package/esm2015/components/select/native-select/native-select-group.component.js +10 -11
- package/esm2015/components/select/native-select/native-select.component.js +10 -11
- package/esm2015/components/select/native-select/native-select.js +8 -4
- package/esm2015/components/select/select.component.js +6 -6
- package/esm2015/components/select/select.directive.js +2 -2
- package/esm2015/components/select-option/select-option.component.js +5 -5
- package/esm2015/components/slider/helpers/slider-key-steps.directive.js +8 -8
- package/esm2015/components/slider/helpers/slider-readonly.directive.js +15 -15
- package/esm2015/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.js +7 -7
- package/esm2015/components/slider/slider.component.js +11 -11
- package/esm2015/components/stepper/step/step.component.js +14 -14
- package/esm2015/components/stepper/stepper.component.js +18 -18
- package/esm2015/components/tabs/tab/tab.component.js +9 -9
- package/esm2015/components/tabs/tabs/tabs.component.js +7 -7
- package/esm2015/components/tabs/tabs-vertical/tabs-vertical.component.js +7 -7
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +8 -8
- package/esm2015/components/tabs/tabs.directive.js +6 -6
- package/esm2015/components/tabs/underline/underline.component.js +13 -13
- package/esm2015/components/tag/tag.component.js +25 -25
- package/esm2015/components/text-area/text-area.component.js +20 -20
- package/esm2015/components/text-area/text-area.directive.js +2 -2
- package/esm2015/components/tiles/tile-handle.directive.js +6 -6
- package/esm2015/components/tiles/tile.component.js +7 -7
- package/esm2015/components/tiles/tiles.component.js +5 -5
- package/esm2015/components/toggle/toggle.component.js +10 -10
- package/esm2015/components/tree/components/tree/tree.component.js +5 -5
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +6 -6
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +5 -5
- package/esm2015/components/tree/directives/tree-children.directive.js +2 -2
- package/esm2015/components/tree/directives/tree-controller.directive.js +4 -4
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +4 -4
- package/esm2015/components/tree/directives/tree-node.directive.js +3 -3
- package/esm2015/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.js +25 -17
- package/esm2015/directives/highlight/highlight.directive.js +11 -11
- package/esm2015/directives/lazy-loading/lazy-loading.directive.js +12 -12
- package/esm2015/directives/present/present.directive.js +10 -12
- package/esm2015/directives/project-class/project-class.directive.js +3 -3
- package/esm2015/directives/unfinished-validator/unfinished-validator.directive.js +5 -5
- package/esm2015/directives/value-accessor/value-accessor.directive.js +2 -2
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +5 -5
- package/fesm2015/taiga-ui-kit-components-accordion.js +19 -26
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +8 -8
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js +4 -4
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +15 -15
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +17 -17
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +22 -22
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +6 -6
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +4 -4
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +7 -7
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +22 -22
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +10 -10
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +6 -6
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +5 -5
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +11 -11
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +8 -8
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-files.js +39 -33
- package/fesm2015/taiga-ui-kit-components-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +5 -5
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +11 -11
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +28 -23
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +15 -15
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +17 -17
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +11 -11
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-files.js +28 -28
- package/fesm2015/taiga-ui-kit-components-input-files.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -6
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +7 -7
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +25 -25
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +9 -9
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +16 -16
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +33 -33
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +19 -19
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +15 -15
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +49 -26
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +10 -10
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-year.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-year.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +6 -6
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js +20 -20
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-items-with-more.js +5 -5
- package/fesm2015/taiga-ui-kit-components-items-with-more.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +14 -14
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +8 -8
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +7 -7
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +17 -17
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +9 -9
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +10 -10
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +31 -31
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-push.js +17 -17
- package/fesm2015/taiga-ui-kit-components-push.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +11 -11
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js +2 -2
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +7 -7
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +7 -7
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +8 -8
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +30 -30
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-rating.js +6 -6
- package/fesm2015/taiga-ui-kit-components-rating.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +4 -4
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +31 -29
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +37 -37
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +30 -30
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +44 -44
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +24 -24
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +20 -20
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tiles.js +15 -15
- package/fesm2015/taiga-ui-kit-components-tiles.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +9 -9
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +22 -22
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js +24 -16
- package/fesm2015/taiga-ui-kit-directives-data-list-dropdown-manager.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +10 -10
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +11 -11
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js +9 -11
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-project-class.js +2 -2
- package/fesm2015/taiga-ui-kit-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js +4 -4
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +4 -4
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["../../../projects/kit/components/radio-block/radio-block.component.ts","../../../projects/kit/components/radio-block/radio-block.template.html","../../../projects/kit/components/radio-block/radio-block.module.ts","../../../projects/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: `tui-radio-block`,\n templateUrl: `./radio-block.template.html`,\n styleUrls: [`./radio-block.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioBlockComponent),\n tuiAsControl(TuiRadioBlockComponent),\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding(`attr.data-tui-host-align`)\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = `right`;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = `l`;\n\n @Input()\n @HostBinding(`class._hidden_radio`)\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding(`class._disabled`)\n override get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding(`class._active`)\n get checked(): boolean {\n return this.value === this.item && this.hideRadio;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === `l` ? `l` : `m`;\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective?.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","<label class=\"t-wrapper\">\n <div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocusVisible\"\n [hover]=\"pseudoHover\"\n [active]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n >\n <div class=\"t-content-wrapper\">\n <div class=\"t-content\">\n <tui-radio\n class=\"t-view\"\n [focusable]=\"focusable\"\n [identityMatcher]=\"identityMatcher\"\n [item]=\"item\"\n [name]=\"computedName || ''\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [pseudoDisabled]=\"computedDisabled\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"false\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [size]=\"checkboxSize\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n (focusVisibleChange)=\"onFocusVisible($event)\"\n ></tui-radio>\n <div class=\"t-label\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</label>\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioBlockComponent} from './radio-block.component';\n\n@NgModule({\n imports: [FormsModule, TuiRadioModule, TuiWrapperModule],\n declarations: [TuiRadioBlockComponent],\n exports: [TuiRadioBlockComponent],\n})\nexport class TuiRadioBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAyCM,MAAO,sBACT,SAAQ,0BAA6B,CAAA;AAgCrC,IAAA,WAAA,CAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC,EAAA;AAEvD,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAyB;QA7B3D,IAAe,CAAA,eAAA,GAA0B,4BAA4B,CAAC;QAKtE,IAAY,CAAA,YAAA,GAA2B,OAAO,CAAC;QAK/C,IAAI,CAAA,IAAA,GAAwB,GAAG,CAAC;QAKhC,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;QAIlB,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;KAatB;AAED,IAAA,IAAI,sBAAsB,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAChE;AAED,IAAA,IAAI,OAAO,GAAA;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;KAC7C;AAED,IAAA,IACa,gBAAgB,GAAA;AACzB,QAAA,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;KAC/C;AAED,IAAA,IACI,OAAO,GAAA;QACP,OAAO,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC;KACrD;AAED,IAAA,IAAI,Y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/C,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC;oBACxD,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["../../../projects/kit/components/radio-block/radio-block.component.ts","../../../projects/kit/components/radio-block/radio-block.template.html","../../../projects/kit/components/radio-block/radio-block.module.ts","../../../projects/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-block',\n templateUrl: './radio-block.template.html',\n styleUrls: ['./radio-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioBlockComponent),\n tuiAsControl(TuiRadioBlockComponent),\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL | TuiSizeS = 'l';\n\n @Input()\n @HostBinding('class._hidden_radio')\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n override get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('class._active')\n get checked(): boolean {\n return this.value === this.item && this.hideRadio;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === 'l' ? 'l' : 'm';\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective?.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","<label class=\"t-wrapper\">\n <div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocusVisible\"\n [hover]=\"pseudoHover\"\n [active]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n >\n <div class=\"t-content-wrapper\">\n <div class=\"t-content\">\n <tui-radio\n class=\"t-view\"\n [focusable]=\"focusable\"\n [identityMatcher]=\"identityMatcher\"\n [item]=\"item\"\n [name]=\"computedName || ''\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [pseudoDisabled]=\"computedDisabled\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"false\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [size]=\"checkboxSize\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n (focusVisibleChange)=\"onFocusVisible($event)\"\n ></tui-radio>\n <div class=\"t-label\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</label>\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioBlockComponent} from './radio-block.component';\n\n@NgModule({\n imports: [FormsModule, TuiRadioModule, TuiWrapperModule],\n declarations: [TuiRadioBlockComponent],\n exports: [TuiRadioBlockComponent],\n})\nexport class TuiRadioBlockModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAyCM,MAAO,sBACT,SAAQ,0BAA6B,CAAA;AAgCrC,IAAA,WAAA,CAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC,EAAA;AAEvD,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAyB;QA7B3D,IAAe,CAAA,eAAA,GAA0B,4BAA4B,CAAC;QAKtE,IAAY,CAAA,YAAA,GAA2B,OAAO,CAAC;QAK/C,IAAI,CAAA,IAAA,GAAwB,GAAG,CAAC;QAKhC,IAAS,CAA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AA,CAAA,QAAA,EAAA,CAAA,CAAA;kHAAnB,mBAAmB,EAAA,YAAA,EAAA,CAHb,sBAAsB,CAD3B,EAAA,OAAA,EAAA,CAAA,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CAE7C,sBAAsB,CAAA,EAAA,CAAA,CAAA;AAEvB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAJnB,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC,CAAA,EAAA,CAAA,CAAA;4FAI/C,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,gBAAgB,CAAC;oBACxD,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -17,8 +17,8 @@ __decorate([
|
|
|
17
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRadioGroupComponent, decorators: [{
|
|
18
18
|
type: Component,
|
|
19
19
|
args: [{
|
|
20
|
-
selector:
|
|
21
|
-
templateUrl:
|
|
20
|
+
selector: 'tui-radio-group',
|
|
21
|
+
templateUrl: './radio-group.template.html',
|
|
22
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
23
|
}]
|
|
24
24
|
}], propDecorators: { name: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["../../../projects/kit/components/radio-group/radio-group.component.ts","../../../projects/kit/components/radio-group/radio-group.template.html","../../../projects/kit/components/radio-group/radio-group.module.ts","../../../projects/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["../../../projects/kit/components/radio-group/radio-group.component.ts","../../../projects/kit/components/radio-group/radio-group.template.html","../../../projects/kit/components/radio-group/radio-group.module.ts","../../../projects/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector: 'tui-radio-group',\n templateUrl: './radio-group.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRadioGroupComponent {\n private static index = 0;\n\n @Input()\n @tuiDefaultProp()\n name = `tui-radio-group-${TuiRadioGroupComponent.index++}`;\n}\n","<ng-content></ng-content>\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioGroupComponent} from './radio-group.component';\n\n@NgModule({\n declarations: [TuiRadioGroupComponent],\n exports: [TuiRadioGroupComponent],\n})\nexport class TuiRadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAQa,sBAAsB,CAAA;AALnC,IAAA,WAAA,GAAA;AAUI,QAAA,IAAA,CAAA,IAAI,GAAG,CAAmB,gBAAA,EAAA,sBAAsB,CAAC,KAAK,EAAE,EAAE,CAAC;AAC9D,KAAA;;AALkB,sBAAK,CAAA,KAAA,GAAG,CAAC,CAAC;oHADhB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,iFCRnC,6BACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;ADYI,UAAA,CAAA;AADC,IAAA,cAAc,EAAE;AAC0C,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;4FALlD,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,WAAW,EAAE,6BAA6B;oBAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAClD,iBAAA,CAAA;8BAMG,IAAI,EAAA,CAAA;sBAFH,KAAK;;;MEHG,mBAAmB,CAAA;;iHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;kHAAnB,mBAAmB,EAAA,YAAA,EAAA,CAHb,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAC3B,sBAAsB,CAAA,EAAA,CAAA,CAAA;kHAEvB,mBAAmB,EAAA,CAAA,CAAA;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;AACpC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -14,7 +14,7 @@ class TuiRadioLabeledComponent extends AbstractTuiNullableControl {
|
|
|
14
14
|
constructor(control, changeDetectorRef, modeDirective) {
|
|
15
15
|
super(control, changeDetectorRef);
|
|
16
16
|
this.modeDirective = modeDirective;
|
|
17
|
-
this.size =
|
|
17
|
+
this.size = 'm';
|
|
18
18
|
this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
|
|
19
19
|
this.pseudoDisabled = false;
|
|
20
20
|
}
|
|
@@ -54,9 +54,9 @@ __decorate([
|
|
|
54
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRadioLabeledComponent, decorators: [{
|
|
55
55
|
type: Component,
|
|
56
56
|
args: [{
|
|
57
|
-
selector:
|
|
58
|
-
templateUrl:
|
|
59
|
-
styleUrls: [
|
|
57
|
+
selector: 'tui-radio-labeled',
|
|
58
|
+
templateUrl: './radio-labeled.template.html',
|
|
59
|
+
styleUrls: ['./radio-labeled.style.less'],
|
|
60
60
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
61
61
|
providers: [
|
|
62
62
|
tuiAsFocusableItemAccessor(TuiRadioLabeledComponent),
|
|
@@ -87,17 +87,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
87
87
|
type: Input
|
|
88
88
|
}, {
|
|
89
89
|
type: HostBinding,
|
|
90
|
-
args: [
|
|
90
|
+
args: ['attr.data-size']
|
|
91
91
|
}], identityMatcher: [{
|
|
92
92
|
type: Input
|
|
93
93
|
}], pseudoDisabled: [{
|
|
94
94
|
type: Input
|
|
95
95
|
}], computedDisabled: [{
|
|
96
96
|
type: HostBinding,
|
|
97
|
-
args: [
|
|
97
|
+
args: ['class._disabled']
|
|
98
98
|
}], mode: [{
|
|
99
99
|
type: HostBinding,
|
|
100
|
-
args: [
|
|
100
|
+
args: ['attr.data-mode']
|
|
101
101
|
}] } });
|
|
102
102
|
|
|
103
103
|
class TuiRadioLabeledModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["../../../projects/kit/components/radio-labeled/radio-labeled.component.ts","../../../projects/kit/components/radio-labeled/radio-labeled.template.html","../../../projects/kit/components/radio-labeled/radio-labeled.module.ts","../../../projects/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector:
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["../../../projects/kit/components/radio-labeled/radio-labeled.component.ts","../../../projects/kit/components/radio-labeled/radio-labeled.template.html","../../../projects/kit/components/radio-labeled/radio-labeled.module.ts","../../../projects/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-labeled',\n templateUrl: './radio-labeled.template.html',\n styleUrls: ['./radio-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioLabeledComponent),\n tuiAsControl(TuiRadioLabeledComponent),\n ],\n})\nexport class TuiRadioLabeledComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n override get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('attr.data-mode')\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n}\n","<label class=\"t-wrapper\">\n <tui-radio\n [focusable]=\"focusable\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"computedName || ''\"\n [nativeId]=\"nativeId\"\n [readOnly]=\"readOnly\"\n [pseudoDisabled]=\"computedDisabled\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoFocus]=\"pseudoFocus\"\n [pseudoHover]=\"pseudoHover\"\n [pseudoActive]=\"pseudoActive\"\n [size]=\"size\"\n [item]=\"item\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n (focusedChange)=\"onFocused($event)\"\n ></tui-radio>\n <div\n class=\"t-content\"\n [class.t-content_disabled]=\"computedDisabled\"\n >\n <ng-content></ng-content>\n </div>\n</label>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule} from '@taiga-ui/cdk';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioLabeledComponent} from './radio-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiRadioModule,\n ],\n declarations: [TuiRadioLabeledComponent],\n exports: [TuiRadioLabeledComponent],\n})\nexport class TuiRadioLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAmCM,MAAO,wBACT,SAAQ,0BAA6B,CAAA;AAsBrC,IAAA,WAAA,CAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC,EAAA;AAEvD,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,IAAa,CAAA,aAAA,GAAb,aAAa,CAAyB;QAlB3D,IAAI,CAAA,IAAA,GAAa,GAAG,CAAC;QAIrB,IAAe,CAAA,eAAA,GAA0B,4BAA4B,CAAC;QAItE,IAAc,CAAA,cAAA,GAAG,KAAK,CAAC;KAatB;AAED,IAAA,IAAI,sBAAsB,GAAA;AACtB,QAAA,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAChE;AAED,IAAA,IAAI,OAAO,GAAA;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;KAC7C;AAED,IAAA,IACa,gBAAgB,GAAA;AACzB,QAAA,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;KAC/C;AAED,IAAA,IACI,IAAI,GAAA;AACJ,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AW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,cAAc;AACjB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAXjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,kBAAkB;wBAClB,gBAAgB;wBAChB,cAAc;AACjB,qBAAA;oBACD,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACtC,iBAAA,CAAA;;;AClBD;;AAEG;;;;"}
|
|
@@ -19,9 +19,9 @@ class TuiRadioListComponent extends AbstractTuiNullableControl {
|
|
|
19
19
|
this.elementRef = elementRef;
|
|
20
20
|
this.radioButtons = EMPTY_QUERY;
|
|
21
21
|
this.items = [];
|
|
22
|
-
this.size =
|
|
22
|
+
this.size = 'm';
|
|
23
23
|
this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
|
|
24
|
-
this.orientation =
|
|
24
|
+
this.orientation = 'vertical';
|
|
25
25
|
this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
|
|
26
26
|
// @bad TODO: Remove & { index: number }
|
|
27
27
|
this.itemContent = ({ $implicit, }) => String($implicit);
|
|
@@ -74,9 +74,9 @@ __decorate([
|
|
|
74
74
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRadioListComponent, decorators: [{
|
|
75
75
|
type: Component,
|
|
76
76
|
args: [{
|
|
77
|
-
selector:
|
|
78
|
-
templateUrl:
|
|
79
|
-
styleUrls: [
|
|
77
|
+
selector: 'tui-radio-list',
|
|
78
|
+
templateUrl: './radio-list.template.html',
|
|
79
|
+
styleUrls: ['./radio-list.style.less'],
|
|
80
80
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
81
81
|
providers: [
|
|
82
82
|
tuiAsFocusableItemAccessor(TuiRadioListComponent),
|
|
@@ -105,14 +105,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
105
105
|
type: Input
|
|
106
106
|
}, {
|
|
107
107
|
type: HostBinding,
|
|
108
|
-
args: [
|
|
108
|
+
args: ['attr.data-size']
|
|
109
109
|
}], identityMatcher: [{
|
|
110
110
|
type: Input
|
|
111
111
|
}], orientation: [{
|
|
112
112
|
type: Input
|
|
113
113
|
}, {
|
|
114
114
|
type: HostBinding,
|
|
115
|
-
args: [
|
|
115
|
+
args: ['attr.data-tui-host-orientation']
|
|
116
116
|
}], disabledItemHandler: [{
|
|
117
117
|
type: Input
|
|
118
118
|
}], itemContent: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["../../../projects/kit/components/radio-list/radio-list.component.ts","../../../projects/kit/components/radio-list/radio-list.template.html","../../../projects/kit/components/radio-list/radio-list.module.ts","../../../projects/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n tuiIsNativeFocusedIn,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientation, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: `tui-radio-list`,\n templateUrl: `./radio-list.template.html`,\n styleUrls: [`./radio-list.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioListComponent),\n tuiAsControl(TuiRadioListComponent),\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @ViewChildren(TuiRadioLabeledComponent)\n private readonly radioButtons: QueryList<TuiRadioLabeledComponent<unknown>> =\n EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeL = `m`;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding(`attr.data-tui-host-orientation`)\n @tuiDefaultProp()\n orientation: TuiOrientation = `vertical`;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n // @bad TODO: Remove & { index: number }\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T> & {index: number}> = ({\n $implicit,\n }) => String($implicit);\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n const focusableRadioButton = this.radioButtons.find(\n radioButton => radioButton.nativeFocusableElement !== null,\n );\n\n return focusableRadioButton ? focusableRadioButton.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n computeId(index: number): string {\n return `${this.id}-${index}`;\n }\n\n itemIsDisabled(item: T): boolean {\n return this.disabledItemHandler(item);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n\n itemIsActive(item: T): boolean {\n return this.value === null\n ? item === null\n : this.identityMatcher(this.value, item);\n }\n}\n","<tui-radio-group class=\"t-group\">\n <tui-radio-labeled\n *ngFor=\"let item of items; index as index\"\n class=\"t-item\"\n [readOnly]=\"readOnly\"\n [nativeId]=\"computeId(index)\"\n [disabled]=\"disabled\"\n [item]=\"item\"\n [size]=\"size\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoDisabled]=\"itemIsDisabled(item)\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n >\n <ng-container\n *polymorpheusOutlet=\"\n itemContent as text;\n context: {$implicit: item, index: index, active: itemIsActive(item)}\n \"\n >\n {{ text }}\n </ng-container>\n </tui-radio-labeled>\n</tui-radio-group>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiRadioGroupModule} from '@taiga-ui/kit/components/radio-group';\nimport {TuiRadioLabeledModule} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRadioListComponent} from './radio-list.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiRadioGroupModule,\n TuiRadioLabeledModule,\n ],\n declarations: [TuiRadioListComponent],\n exports: [TuiRadioListComponent],\n})\nexport class TuiRadioListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyCM,MAAO,qBAAyB,SAAQ,0BAA6B,CAAA;AA2BvE,IAAA,WAAA,CAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC,EAAA;AAExE,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFG,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QA/B3D,IAAY,CAAA,YAAA,GACzB,WAAW,CAAC;QAIhB,IAAK,CAAA,KAAA,GAAiB,EAAE,CAAC;QAKzB,IA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Z,qBAAqB,CAAA,EAAA,OAAA,EAAA,CANhC,YAAY;QACZ,WAAW;QACX,kBAAkB;QAClB,mBAAmB;AACnB,QAAA,qBAAqB,aAGf,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAVlB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,mBAAmB;YACnB,qBAAqB;AACxB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,kBAAkB;wBAClB,mBAAmB;wBACnB,qBAAqB;AACxB,qBAAA;oBACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["../../../projects/kit/components/radio-list/radio-list.component.ts","../../../projects/kit/components/radio-list/radio-list.template.html","../../../projects/kit/components/radio-list/radio-list.module.ts","../../../projects/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n tuiIsNativeFocusedIn,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientation, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-radio-list',\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioListComponent),\n tuiAsControl(TuiRadioListComponent),\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @ViewChildren(TuiRadioLabeledComponent)\n private readonly radioButtons: QueryList<TuiRadioLabeledComponent<unknown>> =\n EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n items: readonly T[] = [];\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientation = 'vertical';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n // @bad TODO: Remove & { index: number }\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T> & {index: number}> = ({\n $implicit,\n }) => String($implicit);\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n const focusableRadioButton = this.radioButtons.find(\n radioButton => radioButton.nativeFocusableElement !== null,\n );\n\n return focusableRadioButton ? focusableRadioButton.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n computeId(index: number): string {\n return `${this.id}-${index}`;\n }\n\n itemIsDisabled(item: T): boolean {\n return this.disabledItemHandler(item);\n }\n\n onModelChange(value: T): void {\n this.updateValue(value);\n }\n\n itemIsActive(item: T): boolean {\n return this.value === null\n ? item === null\n : this.identityMatcher(this.value, item);\n }\n}\n","<tui-radio-group class=\"t-group\">\n <tui-radio-labeled\n *ngFor=\"let item of items; index as index\"\n class=\"t-item\"\n [readOnly]=\"readOnly\"\n [nativeId]=\"computeId(index)\"\n [disabled]=\"disabled\"\n [item]=\"item\"\n [size]=\"size\"\n [pseudoInvalid]=\"computedInvalid\"\n [pseudoDisabled]=\"itemIsDisabled(item)\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n >\n <ng-container\n *polymorpheusOutlet=\"\n itemContent as text;\n context: {$implicit: item, index: index, active: itemIsActive(item)}\n \"\n >\n {{ text }}\n </ng-container>\n </tui-radio-labeled>\n</tui-radio-group>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiRadioGroupModule} from '@taiga-ui/kit/components/radio-group';\nimport {TuiRadioLabeledModule} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRadioListComponent} from './radio-list.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiRadioGroupModule,\n TuiRadioLabeledModule,\n ],\n declarations: [TuiRadioListComponent],\n exports: [TuiRadioListComponent],\n})\nexport class TuiRadioListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyCM,MAAO,qBAAyB,S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A;sBAFlB,KAAK;gBAkBN,WAAW,EAAA,CAAA;sBAFV,KAAK;;;ME5DG,kBAAkB,CAAA;;gHAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;iHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAHZ,qBAAqB,CAAA,EAAA,OAAA,EAAA,CANhC,YAAY;QACZ,WAAW;QACX,kBAAkB;QAClB,mBAAmB;AACnB,QAAA,qBAAqB,aAGf,qBAAqB,CAAA,EAAA,CAAA,CAAA;AAEtB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,EAVlB,OAAA,EAAA,CAAA;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,mBAAmB;YACnB,qBAAqB;AACxB,SAAA,CAAA,EAAA,CAAA,CAAA;4FAIQ,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAX9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,WAAW;wBACX,kBAAkB;wBAClB,mBAAmB;wBACnB,qBAAqB;AACxB,qBAAA;oBACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACnC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -38,7 +38,7 @@ class TuiRadioComponent extends AbstractTuiNullableControl {
|
|
|
38
38
|
this.name = null;
|
|
39
39
|
this.size = this.options.size;
|
|
40
40
|
this.pseudoDisabled = false;
|
|
41
|
-
this.animation = Object.assign({ value:
|
|
41
|
+
this.animation = Object.assign({ value: '' }, this.animationOptions);
|
|
42
42
|
}
|
|
43
43
|
get appearance() {
|
|
44
44
|
return this.checked
|
|
@@ -64,7 +64,7 @@ class TuiRadioComponent extends AbstractTuiNullableControl {
|
|
|
64
64
|
this.identityMatcher(this.value, this.item);
|
|
65
65
|
}
|
|
66
66
|
get computedName() {
|
|
67
|
-
return this.name || this.radioGroupName || this.controlName ||
|
|
67
|
+
return this.name || this.radioGroupName || this.controlName || '';
|
|
68
68
|
}
|
|
69
69
|
get isFocusable() {
|
|
70
70
|
return !this.readOnly && this.computedFocusable;
|
|
@@ -104,9 +104,9 @@ __decorate([
|
|
|
104
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRadioComponent, decorators: [{
|
|
105
105
|
type: Component,
|
|
106
106
|
args: [{
|
|
107
|
-
selector:
|
|
108
|
-
templateUrl:
|
|
109
|
-
styleUrls: [
|
|
107
|
+
selector: 'tui-radio',
|
|
108
|
+
templateUrl: './radio.template.html',
|
|
109
|
+
styleUrls: ['./radio.style.less'],
|
|
110
110
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
111
111
|
providers: [
|
|
112
112
|
tuiAsFocusableItemAccessor(TuiRadioComponent),
|
|
@@ -137,7 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
137
137
|
args: [TuiRadioGroupComponent]
|
|
138
138
|
}] }]; }, propDecorators: { focusableElement: [{
|
|
139
139
|
type: ViewChild,
|
|
140
|
-
args: [
|
|
140
|
+
args: ['focusableElement']
|
|
141
141
|
}], item: [{
|
|
142
142
|
type: Input
|
|
143
143
|
}], identityMatcher: [{
|
|
@@ -148,12 +148,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
148
148
|
type: Input
|
|
149
149
|
}, {
|
|
150
150
|
type: HostBinding,
|
|
151
|
-
args: [
|
|
151
|
+
args: ['attr.data-size']
|
|
152
152
|
}], pseudoDisabled: [{
|
|
153
153
|
type: Input
|
|
154
154
|
}], computedDisabled: [{
|
|
155
155
|
type: HostBinding,
|
|
156
|
-
args: [
|
|
156
|
+
args: ['class._disabled']
|
|
157
157
|
}] } });
|
|
158
158
|
|
|
159
159
|
class TuiRadioModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["../../../projects/kit/components/radio/radio-options.ts","../../../projects/kit/components/radio/radio.component.ts","../../../projects/kit/components/radio/radio.template.html","../../../projects/kit/components/radio/radio.module.ts","../../../projects/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiAppearance, TuiSizeL} from '@taiga-ui/core';\n\nexport interface TuiRadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: TuiRadioOptions = {\n size: `m`,\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<TuiRadioOptions>(\n `[TUI_RADIO_OPTIONS]: Default parameters for radio component`,\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiRadioOptionsProvider: (\n options: Partial<TuiRadioOptions>,\n) => ValueProvider = (options: Partial<TuiRadioOptions>) => ({\n provide: TUI_RADIO_OPTIONS,\n useValue: {...TUI_RADIO_DEFAULT_OPTIONS, ...options},\n});\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n tuiIsNativeFocused,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\n\nimport {TUI_RADIO_OPTIONS, TuiRadioOptions} from './radio-options';\n\n@Component({\n selector: `tui-radio`,\n templateUrl: `./radio.template.html`,\n styleUrls: [`./radio.style.less`],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioComponent),\n tuiAsControl(TuiRadioComponent),\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(`focusableElement`)\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n item?: T | null;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding(`attr.data-size`)\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {value: ``, ...this.animationOptions} as const;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(TUI_RADIO_OPTIONS)\n private readonly options: TuiRadioOptions,\n @Optional()\n @Inject(TuiRadioGroupComponent)\n private readonly radioGroup: TuiRadioGroupComponent | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get appearance(): string {\n return this.checked\n ? this.options.appearances.checked\n : this.options.appearances.unchecked;\n }\n\n @HostBinding(`class._disabled`)\n override get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get checked(): boolean {\n return this.value === null\n ? this.item === null\n : this.item !== undefined &&\n this.item !== null &&\n this.identityMatcher(this.value, this.item);\n }\n\n override get computedName(): string {\n return this.name || this.radioGroupName || this.controlName || ``;\n }\n\n get isFocusable(): boolean {\n return !this.readOnly && this.computedFocusable;\n }\n\n onChecked(checked: boolean): void {\n if (checked) {\n this.updateValue(this.item !== undefined ? this.item : this.fallbackValue);\n }\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n private get radioGroupName(): string | null {\n return this.radioGroup === null ? null : this.radioGroup.name;\n }\n}\n","<div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocusVisible\"\n [hover]=\"pseudoHover\"\n [active]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"checked\"\n class=\"t-mark\"\n [@tuiScaleIn]=\"animation\"\n ></div>\n <input\n #focusableElement\n type=\"radio\"\n class=\"t-native\"\n [id]=\"id\"\n [attr.name]=\"computedName\"\n [disabled]=\"computedDisabled\"\n [tuiChecked]=\"checked\"\n [tuiFocusable]=\"isFocusable\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiCheckedChange)=\"onChecked($event)\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n />\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA;AACa,MAAA,yBAAyB,GAAoB;AACtD,IAAA,IAAI,EAAE,CAAG,CAAA,CAAA;AACT,IAAA,WAAW,EAAE;AACT,QAAA,SAAS,EAAuB,SAAA;AAChC,QAAA,OAAO,EAAuB,SAAA;AACjC,KAAA;EACH;MAEW,iBAAiB,GAAG,IAAI,cAAc,CAC/C,6DAA6D,EAC7D;AACI,IAAA,OAAO,EAAE,MAAM,yBAAyB;AAC3C,CAAA,EACH;MAEW,uBAAuB,GAEf,CAAC,OAAiC,MAAM;AACzD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAM,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAK,EAAA,OAAO,CAAC;AACvD,CAAA;;ACSK,MAAO,iBACT,SAAQ,0BAA6B,CAAA;IA4BrC,WAII,CAAA,OAAyB,EACE,iBAAoC,EAE9C,gBAAkC,EAElC,OAAwB,EAGxB,UAAyC,EAAA;AAE1D,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAPjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAElC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAiB;QAGxB,IAAU,CAAA,UAAA,GAAV,UAAU,CAA+B;QA7B9D,IAAe,CAAA,eAAA,GAA0B,4BAA4B,CAAC;QAItE,IAAI,CAAA,IAAA,GAAkB,IAAI,CAAC;AAK3B,QAAA,IAAA,CAAA,IAAI,GAAa,IAAI,CAAC,OAAO,CAAC,IAA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ClB,gBAAgB;wBAChB,qBAAqB;wBACrB,gBAAgB;AACnB,qBAAA;oBACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["../../../projects/kit/components/radio/radio-options.ts","../../../projects/kit/components/radio/radio.component.ts","../../../projects/kit/components/radio/radio.template.html","../../../projects/kit/components/radio/radio.module.ts","../../../projects/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken, ValueProvider} from '@angular/core';\nimport {TuiAppearance, TuiSizeL} from '@taiga-ui/core';\n\nexport interface TuiRadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: TuiRadioOptions = {\n size: `m`,\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<TuiRadioOptions>(\n `[TUI_RADIO_OPTIONS]: Default parameters for radio component`,\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n\nexport const tuiRadioOptionsProvider: (\n options: Partial<TuiRadioOptions>,\n) => ValueProvider = (options: Partial<TuiRadioOptions>) => ({\n provide: TUI_RADIO_OPTIONS,\n useValue: {...TUI_RADIO_DEFAULT_OPTIONS, ...options},\n});\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n tuiAsControl,\n tuiAsFocusableItemAccessor,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n tuiIsNativeFocused,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\n\nimport {TUI_RADIO_OPTIONS, TuiRadioOptions} from './radio-options';\n\n@Component({\n selector: 'tui-radio',\n templateUrl: './radio.template.html',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAsFocusableItemAccessor(TuiRadioComponent),\n tuiAsControl(TuiRadioComponent),\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n item?: T | null;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(TUI_RADIO_OPTIONS)\n private readonly options: TuiRadioOptions,\n @Optional()\n @Inject(TuiRadioGroupComponent)\n private readonly radioGroup: TuiRadioGroupComponent | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get appearance(): string {\n return this.checked\n ? this.options.appearances.checked\n : this.options.appearances.unchecked;\n }\n\n @HostBinding('class._disabled')\n override get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return tuiIsNativeFocused(this.nativeFocusableElement);\n }\n\n get checked(): boolean {\n return this.value === null\n ? this.item === null\n : this.item !== undefined &&\n this.item !== null &&\n this.identityMatcher(this.value, this.item);\n }\n\n override get computedName(): string {\n return this.name || this.radioGroupName || this.controlName || '';\n }\n\n get isFocusable(): boolean {\n return !this.readOnly && this.computedFocusable;\n }\n\n onChecked(checked: boolean): void {\n if (checked) {\n this.updateValue(this.item !== undefined ? this.item : this.fallbackValue);\n }\n }\n\n onFocused(focused: boolean): void {\n this.updateFocused(focused);\n }\n\n onFocusVisible(focusVisible: boolean): void {\n this.updateFocusVisible(focusVisible);\n }\n\n private get radioGroupName(): string | null {\n return this.radioGroup === null ? null : this.radioGroup.name;\n }\n}\n","<div\n tuiWrapper\n [appearance]=\"appearance\"\n [disabled]=\"computedDisabled\"\n [focus]=\"computedFocusVisible\"\n [hover]=\"pseudoHover\"\n [active]=\"pseudoActive\"\n [invalid]=\"computedInvalid\"\n>\n <div\n *ngIf=\"checked\"\n class=\"t-mark\"\n [@tuiScaleIn]=\"animation\"\n ></div>\n <input\n #focusableElement\n type=\"radio\"\n class=\"t-native\"\n [id]=\"id\"\n [attr.name]=\"computedName\"\n [disabled]=\"computedDisabled\"\n [tuiChecked]=\"checked\"\n [tuiFocusable]=\"isFocusable\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiCheckedChange)=\"onChecked($event)\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n />\n</div>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWA;AACa,MAAA,yBAAyB,GAAoB;AACtD,IAAA,IAAI,EAAE,CAAG,CAAA,CAAA;AACT,IAAA,WAAW,EAAE;AACT,QAAA,SAAS,EAAuB,SAAA;AAChC,QAAA,OAAO,EAAuB,SAAA;AACjC,KAAA;EACH;MAEW,iBAAiB,GAAG,IAAI,cAAc,CAC/C,6DAA6D,EAC7D;AACI,IAAA,OAAO,EAAE,MAAM,yBAAyB;AAC3C,CAAA,EACH;MAEW,uBAAuB,GAEf,CAAC,OAAiC,MAAM;AACzD,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAM,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,yBAAyB,CAAK,EAAA,OAAO,CAAC;AACvD,CAAA;;ACSK,MAAO,iBACT,SAAQ,0BAA6B,CAAA;IA4BrC,WAII,CAAA,OAAyB,EACE,iBAAoC,EAE9C,gBAAkC,EAElC,OAAwB,EAGxB,UAAyC,EAAA;AAE1D,QAAA,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAPjB,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAElC,IAAO,CAAA,OAAA,GAAP,OAAO,CAAiB;QAGxB,IAAU,CAAA,UAAA,GAAV,UAAU,CAA+B;QA7B9D,IAAe,CAAA,eAAA,GAA0B,4BAA4B,CAAC;QAItE,IAAI,CAAA,IAAA,GAAkB,IAAI,CAAC;AAK3B,QAAA,IAAA,CAAA,IAAI,GAAa,IAAI,CAAC,OA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YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;AAC/B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -21,11 +21,11 @@ class TuiRangeComponent extends AbstractTuiControl {
|
|
|
21
21
|
this.min = 0;
|
|
22
22
|
this.max = 100;
|
|
23
23
|
this.step = 1;
|
|
24
|
-
this.size =
|
|
24
|
+
this.size = 'm';
|
|
25
25
|
this.segments = 1;
|
|
26
26
|
this.keySteps = null;
|
|
27
27
|
this.slidersRefs = EMPTY_QUERY;
|
|
28
|
-
this.lastActiveThumb =
|
|
28
|
+
this.lastActiveThumb = 'right';
|
|
29
29
|
}
|
|
30
30
|
get nativeFocusableElement() {
|
|
31
31
|
const [sliderLeftRef, sliderRightRef] = this.slidersRefs;
|
|
@@ -66,7 +66,7 @@ class TuiRangeComponent extends AbstractTuiControl {
|
|
|
66
66
|
const leftThumbElement = sliderLeftRef.nativeElement;
|
|
67
67
|
const rightThumbElement = sliderRightRef.nativeElement;
|
|
68
68
|
const isRightThumb = target === this.elementRef.nativeElement
|
|
69
|
-
? this.lastActiveThumb ===
|
|
69
|
+
? this.lastActiveThumb === 'right'
|
|
70
70
|
: target === rightThumbElement;
|
|
71
71
|
const activeThumbElement = isRightThumb ? rightThumbElement : leftThumbElement;
|
|
72
72
|
const previousValue = isRightThumb ? this.value[1] : this.value[0];
|
|
@@ -85,7 +85,7 @@ class TuiRangeComponent extends AbstractTuiControl {
|
|
|
85
85
|
else {
|
|
86
86
|
this.updateStart(value);
|
|
87
87
|
}
|
|
88
|
-
this.lastActiveThumb = right ?
|
|
88
|
+
this.lastActiveThumb = right ? 'right' : 'left';
|
|
89
89
|
}
|
|
90
90
|
getValueFromFraction(fraction) {
|
|
91
91
|
const guardedFraction = tuiClamp(tuiQuantize(fraction, this.fractionStep), 0, 1);
|
|
@@ -119,13 +119,13 @@ __decorate([
|
|
|
119
119
|
tuiDefaultProp()
|
|
120
120
|
], TuiRangeComponent.prototype, "max", void 0);
|
|
121
121
|
__decorate([
|
|
122
|
-
tuiDefaultProp(s => s > 0,
|
|
122
|
+
tuiDefaultProp(s => s > 0, 'Step must be a non-negative number')
|
|
123
123
|
], TuiRangeComponent.prototype, "step", void 0);
|
|
124
124
|
__decorate([
|
|
125
125
|
tuiDefaultProp()
|
|
126
126
|
], TuiRangeComponent.prototype, "size", void 0);
|
|
127
127
|
__decorate([
|
|
128
|
-
tuiDefaultProp(s => s > 0 && Number.isInteger(s),
|
|
128
|
+
tuiDefaultProp(s => s > 0 && Number.isInteger(s), 'Segments must be positive integer')
|
|
129
129
|
], TuiRangeComponent.prototype, "segments", void 0);
|
|
130
130
|
__decorate([
|
|
131
131
|
tuiDefaultProp()
|
|
@@ -136,13 +136,13 @@ __decorate([
|
|
|
136
136
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRangeComponent, decorators: [{
|
|
137
137
|
type: Component,
|
|
138
138
|
args: [{
|
|
139
|
-
selector:
|
|
140
|
-
templateUrl:
|
|
141
|
-
styleUrls: [
|
|
139
|
+
selector: 'tui-range',
|
|
140
|
+
templateUrl: './range.template.html',
|
|
141
|
+
styleUrls: ['./range.style.less'],
|
|
142
142
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
143
143
|
host: {
|
|
144
|
-
'[attr.tabindex]':
|
|
145
|
-
'[attr.aria-disabled]':
|
|
144
|
+
'[attr.tabindex]': '-1',
|
|
145
|
+
'[attr.aria-disabled]': 'computedDisabled',
|
|
146
146
|
},
|
|
147
147
|
}]
|
|
148
148
|
}], ctorParameters: function () { return [{ type: i2.NgControl, decorators: [{
|
|
@@ -168,7 +168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
168
168
|
type: Input
|
|
169
169
|
}, {
|
|
170
170
|
type: HostBinding,
|
|
171
|
-
args: [
|
|
171
|
+
args: ['attr.data-size']
|
|
172
172
|
}], segments: [{
|
|
173
173
|
type: Input
|
|
174
174
|
}], keySteps: [{
|
|
@@ -178,28 +178,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
178
178
|
args: [TuiSliderComponent, { read: ElementRef }]
|
|
179
179
|
}], left: [{
|
|
180
180
|
type: HostBinding,
|
|
181
|
-
args: [
|
|
181
|
+
args: ['style.--left.%']
|
|
182
182
|
}], right: [{
|
|
183
183
|
type: HostBinding,
|
|
184
|
-
args: [
|
|
184
|
+
args: ['style.--right.%']
|
|
185
185
|
}], onFocused: [{
|
|
186
186
|
type: HostListener,
|
|
187
|
-
args: [
|
|
187
|
+
args: ['focusin', ['true']]
|
|
188
188
|
}, {
|
|
189
189
|
type: HostListener,
|
|
190
|
-
args: [
|
|
190
|
+
args: ['focusout', ['false']]
|
|
191
191
|
}], changeByStep: [{
|
|
192
192
|
type: HostListener,
|
|
193
|
-
args: [
|
|
193
|
+
args: ['keydown.arrowUp.prevent', ['1', '$event.target']]
|
|
194
194
|
}, {
|
|
195
195
|
type: HostListener,
|
|
196
|
-
args: [
|
|
196
|
+
args: ['keydown.arrowRight.prevent', ['1', '$event.target']]
|
|
197
197
|
}, {
|
|
198
198
|
type: HostListener,
|
|
199
|
-
args: [
|
|
199
|
+
args: ['keydown.arrowLeft.prevent', ['-1', '$event.target']]
|
|
200
200
|
}, {
|
|
201
201
|
type: HostListener,
|
|
202
|
-
args: [
|
|
202
|
+
args: ['keydown.arrowDown.prevent', ['-1', '$event.target']]
|
|
203
203
|
}], computePureKeySteps: [] } });
|
|
204
204
|
|
|
205
205
|
class TuiRangeChangeDirective {
|
|
@@ -211,11 +211,11 @@ class TuiRangeChangeDirective {
|
|
|
211
211
|
* TODO replace with pointer events (when all supported browsers can handle them).
|
|
212
212
|
* Dont forget to use setPointerCapture instead of listening all documentRef events
|
|
213
213
|
*/
|
|
214
|
-
this.pointerDown$ = merge(tuiTypedFromEvent(this.elementRef.nativeElement,
|
|
214
|
+
this.pointerDown$ = merge(tuiTypedFromEvent(this.elementRef.nativeElement, 'touchstart', {
|
|
215
215
|
passive: true,
|
|
216
|
-
}).pipe(filter(({ touches }) => touches.length === 1), map(({ touches }) => touches[0])), tuiTypedFromEvent(this.elementRef.nativeElement,
|
|
217
|
-
this.pointerMove$ = merge(tuiTypedFromEvent(this.documentRef,
|
|
218
|
-
this.pointerUp$ = merge(tuiTypedFromEvent(this.documentRef,
|
|
216
|
+
}).pipe(filter(({ touches }) => touches.length === 1), map(({ touches }) => touches[0])), tuiTypedFromEvent(this.elementRef.nativeElement, 'mousedown', { passive: true }));
|
|
217
|
+
this.pointerMove$ = merge(tuiTypedFromEvent(this.documentRef, 'touchmove').pipe(filter(({ touches }) => touches.length === 1), map(({ touches }) => touches[0])), tuiTypedFromEvent(this.documentRef, 'mousemove'));
|
|
218
|
+
this.pointerUp$ = merge(tuiTypedFromEvent(this.documentRef, 'touchend', { passive: true }), tuiTypedFromEvent(this.documentRef, 'mouseup', { passive: true }));
|
|
219
219
|
this.activeThumbChange = new EventEmitter();
|
|
220
220
|
let activeThumb;
|
|
221
221
|
this.pointerDown$
|
|
@@ -228,7 +228,7 @@ class TuiRangeChangeDirective {
|
|
|
228
228
|
}), switchMap(event => this.pointerMove$.pipe(startWith(event))), map(({ clientX }) => this.getFractionFromEvents(clientX)), takeUntil(this.pointerUp$), repeat(), takeUntil(destroy$))
|
|
229
229
|
.subscribe(fraction => {
|
|
230
230
|
const value = this.range.getValueFromFraction(fraction);
|
|
231
|
-
this.range.processValue(value, activeThumb ===
|
|
231
|
+
this.range.processValue(value, activeThumb === 'right');
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
getFractionFromEvents(clickClientX) {
|
|
@@ -241,9 +241,9 @@ class TuiRangeChangeDirective {
|
|
|
241
241
|
const [leftSliderRef, rightSliderRef] = this.range.slidersRefs;
|
|
242
242
|
switch (target) {
|
|
243
243
|
case leftSliderRef.nativeElement:
|
|
244
|
-
return
|
|
244
|
+
return 'left';
|
|
245
245
|
case rightSliderRef.nativeElement:
|
|
246
|
-
return
|
|
246
|
+
return 'right';
|
|
247
247
|
default:
|
|
248
248
|
return this.findNearestActiveThumb(clientX);
|
|
249
249
|
}
|
|
@@ -255,8 +255,8 @@ class TuiRangeChangeDirective {
|
|
|
255
255
|
return Math.abs(deltaLeft) > Math.abs(deltaRight) ||
|
|
256
256
|
deltaRight > 0 ||
|
|
257
257
|
(this.range.left === 0 && this.range.right === 100)
|
|
258
|
-
?
|
|
259
|
-
:
|
|
258
|
+
? 'right'
|
|
259
|
+
: 'left';
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
TuiRangeChangeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRangeChangeDirective, deps: [{ token: DOCUMENT }, { token: ElementRef }, { token: TuiRangeComponent }, { token: TuiDestroyService, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
@@ -264,7 +264,7 @@ TuiRangeChangeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0"
|
|
|
264
264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TuiRangeChangeDirective, decorators: [{
|
|
265
265
|
type: Directive,
|
|
266
266
|
args: [{
|
|
267
|
-
selector:
|
|
267
|
+
selector: 'tui-range',
|
|
268
268
|
providers: [TuiDestroyService],
|
|
269
269
|
}]
|
|
270
270
|
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|