@taiga-ui/kit 2.26.0 → 2.29.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/README.md +4 -5
- package/abstract/input-slider.d.ts +5 -5
- package/abstract/slider/slider.d.ts +5 -5
- package/abstract/taiga-ui-kit-abstract.metadata.json +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.js +10 -10
- package/bundles/taiga-ui-kit-abstract.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-abstract.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.js +23 -7
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +189 -243
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-block.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-checkbox-labeled.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.js +18 -19
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.js +20 -8
- package/bundles/taiga-ui-kit-components-field-error.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +8 -8
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +26 -18
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-date-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js +40 -22
- package/bundles/taiga-ui-kit-components-input-date-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-date-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.js +26 -18
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +7 -6
- package/bundles/taiga-ui-kit-components-input-inline.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js +4 -3
- package/bundles/taiga-ui-kit-components-input-month-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-month-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.js +4 -3
- package/bundles/taiga-ui-kit-components-input-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.js +20 -34
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +30 -28
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -18
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +13 -21
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-radio-block.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio-block.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-group.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.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-list.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio-list.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +11 -14
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +5 -5
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.js +8 -0
- package/bundles/taiga-ui-kit-constants.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-constants.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js +2 -4
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-context.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js +2 -2
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js +7 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-directives-lazy-loading.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-present.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +2 -2
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.js +42 -11
- package/bundles/taiga-ui-kit-utils-mask.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-utils-mask.umd.min.js.map +1 -1
- package/components/accordion/accordion-item/accordion-item-eager-content.directive.d.ts +2 -0
- package/components/accordion/accordion-item/accordion-item.component.d.ts +4 -2
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +1 -1
- package/components/action/action.component.d.ts +1 -1
- package/components/action/taiga-ui-kit-components-action.metadata.json +1 -1
- package/components/calendar-month/calendar-month.component.d.ts +1 -1
- package/components/calendar-month/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
- package/components/calendar-range/calendar-range.component.d.ts +1 -1
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
- package/components/carousel/carousel-autoscroll.directive.d.ts +5 -0
- package/components/carousel/carousel-scroll.directive.d.ts +6 -0
- package/components/carousel/carousel.component.d.ts +22 -11
- package/components/carousel/carousel.directive.d.ts +3 -10
- package/components/carousel/index.d.ts +2 -2
- package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -1
- package/components/checkbox/checkbox.component.d.ts +1 -1
- package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
- package/components/checkbox-block/checkbox-block.component.d.ts +1 -1
- package/components/checkbox-block/taiga-ui-kit-components-checkbox-block.metadata.json +1 -1
- package/components/checkbox-labeled/checkbox-labeled.component.d.ts +1 -1
- package/components/checkbox-labeled/taiga-ui-kit-components-checkbox-labeled.metadata.json +1 -1
- package/components/combo-box/combo-box.component.d.ts +5 -5
- package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
- package/components/data-list-wrapper/data-list-wrapper.component.d.ts +2 -2
- package/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.metadata.json +1 -1
- package/components/field-error/field-error.component.d.ts +3 -2
- package/components/field-error/taiga-ui-kit-components-field-error.metadata.json +1 -1
- package/components/filter/filter.component.d.ts +2 -2
- package/components/filter/taiga-ui-kit-components-filter.metadata.json +1 -1
- package/components/input/input.component.d.ts +3 -3
- package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
- package/components/input-copy/input-copy.component.d.ts +2 -2
- package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
- package/components/input-count/input-count.component.d.ts +2 -2
- package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
- package/components/input-date/input-date.component.d.ts +6 -5
- package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
- package/components/input-date-range/input-date-range.component.d.ts +5 -4
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
- package/components/input-date-time/input-date-time.component.d.ts +6 -5
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
- package/components/input-file/input-file.component.d.ts +1 -1
- package/components/input-file/taiga-ui-kit-components-input-file.metadata.json +1 -1
- package/components/input-inline/input-inline.component.d.ts +1 -1
- package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
- package/components/input-month/input-month.component.d.ts +1 -1
- package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +1 -1
- package/components/input-month-range/input-month-range.component.d.ts +1 -1
- package/components/input-month-range/taiga-ui-kit-components-input-month-range.metadata.json +1 -1
- package/components/input-number/input-number.component.d.ts +3 -4
- package/components/input-number/taiga-ui-kit-components-input-number.metadata.json +1 -1
- package/components/input-password/input-password.component.d.ts +2 -2
- package/components/input-password/taiga-ui-kit-components-input-password.metadata.json +1 -1
- package/components/input-phone/input-phone.component.d.ts +3 -3
- package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
- package/components/input-phone-international/country-iso-code.d.ts +1 -1
- package/components/input-phone-international/input-phone-international.component.d.ts +6 -6
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
- package/components/input-slider/input-slider.component.d.ts +1 -1
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/input-tag/input-tag.component.d.ts +12 -12
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- package/components/input-time/input-time.component.d.ts +4 -4
- package/components/input-time/taiga-ui-kit-components-input-time.metadata.json +1 -1
- package/components/line-clamp/line-clamp.component.d.ts +4 -4
- package/components/line-clamp/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
- package/components/marker-icon/marker-icon.component.d.ts +1 -1
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -1
- package/components/multi-select/multi-select.component.d.ts +7 -7
- package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
- package/components/pagination/pagination.component.d.ts +1 -1
- package/components/pagination/taiga-ui-kit-components-pagination.metadata.json +1 -1
- package/components/pdf-viewer/pdf-viewer.component.d.ts +1 -4
- package/components/pdf-viewer/pdf-viewer.service.d.ts +7 -2
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -1
- package/components/progress/progress-circle/progress-circle.component.d.ts +1 -1
- package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
- package/components/radio/radio.component.d.ts +1 -1
- package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
- package/components/radio-block/radio-block.component.d.ts +1 -1
- package/components/radio-block/taiga-ui-kit-components-radio-block.metadata.json +1 -1
- package/components/radio-group/radio-group.component.d.ts +1 -1
- package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
- package/components/radio-labeled/radio-labeled.component.d.ts +1 -1
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
- package/components/radio-list/radio-list.component.d.ts +3 -3
- package/components/radio-list/taiga-ui-kit-components-radio-list.metadata.json +1 -1
- package/components/select/select.component.d.ts +3 -3
- package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
- package/components/stepper/stepper.component.d.ts +3 -3
- package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
- package/components/tabs/tabs/tabs.component.d.ts +2 -2
- package/components/tabs/tabs-with-more/tabs-with-more.component.d.ts +2 -2
- package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
- package/components/tabs/underline/underline.component.d.ts +2 -2
- package/components/text-area/taiga-ui-kit-components-text-area.metadata.json +1 -1
- package/components/text-area/text-area.component.d.ts +1 -1
- package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
- package/components/toggle/toggle.component.d.ts +1 -1
- package/components/tree/components/tree/tree.component.d.ts +1 -1
- package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
- package/components/tree/directives/tree-item-controller.directive.d.ts +1 -1
- package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -1
- package/constants/masks.d.ts +8 -0
- package/constants/taiga-ui-kit-constants.metadata.json +1 -1
- package/directives/dropdown-context/dropdown-context.directive.d.ts +1 -1
- package/directives/dropdown-context/taiga-ui-kit-directives-dropdown-context.metadata.json +1 -1
- package/directives/dropdown-selection/dropdown-selection.directive.d.ts +3 -3
- package/directives/dropdown-selection/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
- package/directives/highlight/highlight.directive.d.ts +2 -2
- package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
- package/directives/lazy-loading/lazy-loading.directive.d.ts +1 -1
- package/directives/lazy-loading/lazy-loading.service.d.ts +1 -1
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +1 -1
- package/directives/present/present.directive.d.ts +1 -1
- package/directives/present/taiga-ui-kit-directives-present.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +3 -3
- package/esm2015/abstract/slider/slider.js +9 -9
- package/esm2015/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
- package/esm2015/components/accordion/accordion-item/accordion-item-eager-content.directive.js +11 -0
- package/esm2015/components/accordion/accordion-item/accordion-item.component.js +10 -6
- package/esm2015/components/accordion/accordion.module.js +4 -1
- package/esm2015/components/accordion/index.js +2 -1
- package/esm2015/components/action/action.component.js +4 -4
- package/esm2015/components/calendar-month/calendar-month.component.js +6 -6
- package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
- package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
- package/esm2015/components/carousel/carousel.component.js +90 -33
- package/esm2015/components/carousel/carousel.directive.js +10 -40
- package/esm2015/components/carousel/carousel.module.js +13 -9
- package/esm2015/components/carousel/index.js +3 -3
- package/esm2015/components/checkbox/checkbox.component.js +4 -4
- package/esm2015/components/checkbox-block/checkbox-block.component.js +4 -4
- package/esm2015/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
- package/esm2015/components/combo-box/combo-box.component.js +19 -20
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
- package/esm2015/components/field-error/field-error.component.js +15 -6
- package/esm2015/components/filter/filter.component.js +9 -9
- package/esm2015/components/input/input.component.js +8 -8
- package/esm2015/components/input-copy/input-copy.component.js +5 -5
- package/esm2015/components/input-count/input-count.component.js +4 -4
- package/esm2015/components/input-date/input-date.component.js +30 -22
- package/esm2015/components/input-date-range/input-date-range.component.js +30 -22
- package/esm2015/components/input-date-time/input-date-time.component.js +45 -25
- package/esm2015/components/input-file/input-file.component.js +2 -2
- package/esm2015/components/input-inline/input-inline.component.js +8 -7
- package/esm2015/components/input-month/input-month.component.js +5 -4
- package/esm2015/components/input-month-range/input-month-range.component.js +5 -4
- package/esm2015/components/input-number/input-number.component.js +21 -31
- package/esm2015/components/input-password/input-password.component.js +4 -4
- package/esm2015/components/input-phone/input-phone.component.js +7 -7
- package/esm2015/components/input-phone-international/const/countries.js +8 -6
- package/esm2015/components/input-phone-international/country-iso-code.js +2 -2
- package/esm2015/components/input-phone-international/input-phone-international.component.js +20 -20
- package/esm2015/components/input-slider/input-slider.component.js +4 -4
- package/esm2015/components/input-tag/input-tag.component.js +32 -32
- package/esm2015/components/input-time/input-time.component.js +17 -17
- package/esm2015/components/line-clamp/line-clamp.component.js +8 -8
- package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
- package/esm2015/components/multi-select/multi-select.component.js +15 -15
- package/esm2015/components/pagination/pagination.component.js +5 -5
- package/esm2015/components/pdf-viewer/pdf-viewer.component.js +6 -20
- package/esm2015/components/pdf-viewer/pdf-viewer.service.js +4 -1
- package/esm2015/components/progress/pipes/abstract-color-segments.js +1 -1
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
- package/esm2015/components/radio/radio.component.js +4 -4
- package/esm2015/components/radio-block/radio-block.component.js +4 -4
- package/esm2015/components/radio-group/radio-group.component.js +1 -1
- package/esm2015/components/radio-labeled/radio-labeled.component.js +4 -4
- package/esm2015/components/radio-list/radio-list.component.js +8 -8
- package/esm2015/components/select/select.component.js +12 -15
- package/esm2015/components/stepper/stepper.component.js +18 -18
- package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
- package/esm2015/components/tabs/underline/underline.component.js +3 -3
- package/esm2015/components/text-area/text-area.component.js +5 -5
- package/esm2015/components/toggle/toggle.component.js +4 -4
- package/esm2015/components/tree/components/tree/tree.component.js +4 -4
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +2 -2
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
- package/esm2015/constants/masks.js +9 -1
- package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
- package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
- package/esm2015/directives/highlight/highlight.directive.js +3 -3
- package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
- package/esm2015/directives/lazy-loading/lazy-loading.service.js +1 -1
- package/esm2015/directives/present/present.directive.js +1 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +2 -2
- package/esm2015/pipes/stringify/stringify.pipe.js +1 -1
- package/esm2015/tokens/validation-errors.js +1 -1
- package/esm2015/utils/mask/create-auto-corrected-date-pipe.js +6 -4
- package/esm2015/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
- package/esm2015/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
- package/esm2015/utils/mask/create-date-mask.js +16 -0
- package/esm2015/utils/mask/create-date-range-mask.js +14 -0
- package/esm2015/utils/mask/index.js +3 -1
- package/esm5/abstract/input-slider.js +3 -3
- package/esm5/abstract/slider/slider.js +9 -9
- package/esm5/components/accordion/accordion-item/accordion-item-content.directive.js +2 -3
- package/esm5/components/accordion/accordion-item/accordion-item-eager-content.directive.js +14 -0
- package/esm5/components/accordion/accordion-item/accordion-item.component.js +10 -6
- package/esm5/components/accordion/accordion.module.js +4 -1
- package/esm5/components/accordion/index.js +2 -1
- package/esm5/components/action/action.component.js +4 -4
- package/esm5/components/calendar-month/calendar-month.component.js +8 -8
- package/esm5/components/calendar-range/calendar-range.component.js +1 -1
- package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
- package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
- package/esm5/components/carousel/carousel.component.js +102 -34
- package/esm5/components/carousel/carousel.directive.js +13 -50
- package/esm5/components/carousel/carousel.module.js +13 -9
- package/esm5/components/carousel/index.js +3 -3
- package/esm5/components/checkbox/checkbox.component.js +4 -4
- package/esm5/components/checkbox-block/checkbox-block.component.js +4 -4
- package/esm5/components/checkbox-labeled/checkbox-labeled.component.js +4 -4
- package/esm5/components/combo-box/combo-box.component.js +19 -20
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
- package/esm5/components/field-error/field-error.component.js +19 -6
- package/esm5/components/filter/filter.component.js +9 -9
- package/esm5/components/input/input.component.js +8 -8
- package/esm5/components/input-copy/input-copy.component.js +5 -5
- package/esm5/components/input-count/input-count.component.js +4 -4
- package/esm5/components/input-date/input-date.component.js +30 -22
- package/esm5/components/input-date-range/input-date-range.component.js +30 -22
- package/esm5/components/input-date-time/input-date-time.component.js +44 -26
- package/esm5/components/input-file/input-file.component.js +2 -2
- package/esm5/components/input-inline/input-inline.component.js +8 -7
- package/esm5/components/input-month/input-month.component.js +5 -4
- package/esm5/components/input-month-range/input-month-range.component.js +5 -4
- package/esm5/components/input-number/input-number.component.js +21 -35
- package/esm5/components/input-password/input-password.component.js +4 -4
- package/esm5/components/input-phone/input-phone.component.js +7 -7
- package/esm5/components/input-phone-international/const/countries.js +8 -6
- package/esm5/components/input-phone-international/country-iso-code.js +2 -2
- package/esm5/components/input-phone-international/input-phone-international.component.js +23 -23
- package/esm5/components/input-slider/input-slider.component.js +4 -4
- package/esm5/components/input-tag/input-tag.component.js +32 -32
- package/esm5/components/input-time/input-time.component.js +17 -17
- package/esm5/components/line-clamp/line-clamp.component.js +8 -8
- package/esm5/components/marker-icon/marker-icon.component.js +2 -2
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +5 -5
- package/esm5/components/multi-select/multi-select.component.js +15 -15
- package/esm5/components/pagination/pagination.component.js +5 -5
- package/esm5/components/pdf-viewer/pdf-viewer.component.js +6 -20
- package/esm5/components/pdf-viewer/pdf-viewer.service.js +5 -1
- package/esm5/components/progress/pipes/abstract-color-segments.js +1 -1
- package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
- package/esm5/components/radio/radio.component.js +4 -4
- package/esm5/components/radio-block/radio-block.component.js +4 -4
- package/esm5/components/radio-group/radio-group.component.js +1 -1
- package/esm5/components/radio-labeled/radio-labeled.component.js +4 -4
- package/esm5/components/radio-list/radio-list.component.js +8 -8
- package/esm5/components/select/select.component.js +12 -15
- package/esm5/components/stepper/stepper.component.js +19 -19
- package/esm5/components/tabs/tabs/tabs.component.js +17 -17
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +5 -5
- package/esm5/components/tabs/underline/underline.component.js +3 -3
- package/esm5/components/text-area/text-area.component.js +5 -5
- package/esm5/components/toggle/toggle.component.js +4 -4
- package/esm5/components/tree/components/tree/tree.component.js +4 -4
- package/esm5/components/tree/components/tree-item/tree-item.component.js +2 -2
- package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
- package/esm5/constants/masks.js +9 -1
- package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
- package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +2 -2
- package/esm5/directives/highlight/highlight.directive.js +3 -3
- package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
- package/esm5/directives/lazy-loading/lazy-loading.service.js +1 -1
- package/esm5/directives/present/present.directive.js +1 -1
- package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
- package/esm5/pipes/stringify/stringify.pipe.js +1 -1
- package/esm5/tokens/validation-errors.js +1 -1
- package/esm5/utils/mask/create-auto-corrected-date-pipe.js +6 -4
- package/esm5/utils/mask/create-auto-corrected-date-range-pipe.js +9 -6
- package/esm5/utils/mask/create-auto-corrected-date-time-pipe.js +5 -5
- package/esm5/utils/mask/create-date-mask.js +17 -0
- package/esm5/utils/mask/create-date-range-mask.js +13 -0
- package/esm5/utils/mask/index.js +3 -1
- package/fesm2015/taiga-ui-kit-abstract.js +10 -10
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +21 -9
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +4 -4
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +158 -214
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js +4 -4
- package/fesm2015/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js +4 -4
- package/fesm2015/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js +4 -4
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +20 -21
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-field-error.js +14 -5
- package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +30 -22
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +45 -25
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +30 -22
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +8 -7
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +5 -4
- package/fesm2015/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +5 -4
- package/fesm2015/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +21 -31
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +3 -3
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +28 -26
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +9 -9
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +8 -8
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +20 -20
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +9 -19
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-progress.js +3 -3
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-block.js +4 -4
- package/fesm2015/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +4 -4
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-list.js +9 -9
- package/fesm2015/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js +4 -4
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +13 -16
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +5 -5
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-constants.js +8 -0
- package/fesm2015/taiga-ui-kit-constants.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js +2 -4
- package/fesm2015/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +2 -2
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js +3 -1
- package/fesm2015/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-mask.js +44 -13
- package/fesm2015/taiga-ui-kit-utils-mask.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +10 -10
- package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-accordion.js +24 -9
- package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-action.js +4 -4
- package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-carousel.js +190 -245
- package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox-block.js +4 -4
- package/fesm5/taiga-ui-kit-components-checkbox-block.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox-labeled.js +4 -4
- package/fesm5/taiga-ui-kit-components-checkbox-labeled.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox.js +4 -4
- package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-combo-box.js +20 -21
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-field-error.js +18 -5
- package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js +9 -9
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +30 -22
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +44 -26
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +30 -22
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js +8 -7
- package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month-range.js +5 -4
- package/fesm5/taiga-ui-kit-components-input-month-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month.js +5 -4
- package/fesm5/taiga-ui-kit-components-input-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +21 -35
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +3 -3
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +31 -29
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input.js +9 -9
- package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-line-clamp.js +8 -8
- package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-marker-icon.js +1 -1
- package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +20 -20
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js +10 -19
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-progress.js +3 -3
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-block.js +4 -4
- package/fesm5/taiga-ui-kit-components-radio-block.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-labeled.js +4 -4
- package/fesm5/taiga-ui-kit-components-radio-labeled.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-list.js +9 -9
- package/fesm5/taiga-ui-kit-components-radio-list.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js +4 -4
- package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +13 -16
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
- package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tree.js +5 -5
- package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm5/taiga-ui-kit-constants.js +8 -0
- package/fesm5/taiga-ui-kit-constants.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js +2 -4
- package/fesm5/taiga-ui-kit-directives-dropdown-context.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-highlight.js +2 -2
- package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js +7 -1
- package/fesm5/taiga-ui-kit-directives-lazy-loading.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-present.js.map +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-mask.js +42 -13
- package/fesm5/taiga-ui-kit-utils-mask.js.map +1 -1
- package/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
- package/package.json +6 -6
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/tokens/validation-errors.d.ts +2 -1
- package/utils/mask/create-auto-corrected-date-pipe.d.ts +7 -3
- package/utils/mask/create-auto-corrected-date-range-pipe.d.ts +7 -2
- package/utils/mask/create-auto-corrected-date-time-pipe.d.ts +8 -3
- package/utils/mask/create-date-mask.d.ts +3 -0
- package/utils/mask/create-date-range-mask.d.ts +3 -0
- package/utils/mask/index.d.ts +2 -0
- package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
- package/components/carousel/carousel-draggable.directive.d.ts +0 -16
- package/components/carousel/carousel-scroller.directive.d.ts +0 -17
- package/esm2015/components/carousel/carousel-draggable.directive.js +0 -67
- package/esm2015/components/carousel/carousel-scroller.directive.js +0 -76
- package/esm5/components/carousel/carousel-draggable.directive.js +0 -73
- package/esm5/components/carousel/carousel-scroller.directive.js +0 -82
|
@@ -1,168 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Inject, ElementRef, Input,
|
|
1
|
+
import { __decorate, __param, __extends, __read } from 'tslib';
|
|
2
|
+
import { EventEmitter, ChangeDetectorRef, Inject, ElementRef, Input, HostBinding, Output, ContentChildren, TemplateRef, HostListener, Component, ChangeDetectionStrategy, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import { INTERSECTION_ROOT, IntersectionObserverModule } from '@ng-web-apis/intersection-observer';
|
|
4
|
-
import {
|
|
5
|
-
import { BehaviorSubject, merge, combineLatest, interval, of, Observable, EMPTY, Subject } from 'rxjs';
|
|
6
|
-
import { mapTo, takeUntil, shareReplay, filter, switchMap, withLatestFrom, scan, startWith, distinctUntilChanged, delay, map, endWith, repeat } from 'rxjs/operators';
|
|
4
|
+
import { EMPTY_QUERY, clamp, TUI_IS_MOBILE, tuiDefaultProp, TuiItemDirective, tuiPure, typedFromEvent, TuiPanModule, TuiSwipeModule, TuiItemModule } from '@taiga-ui/cdk';
|
|
7
5
|
import { PAGE_VISIBILITY } from '@ng-web-apis/common';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { BehaviorSubject, merge, combineLatest, interval, EMPTY, Observable } from 'rxjs';
|
|
7
|
+
import { mapTo, switchMap, filter, throttleTime, map, tap } from 'rxjs/operators';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
10
9
|
import { TUI_BUTTON_OPTIONS } from '@taiga-ui/core';
|
|
11
|
-
import { shouldCall } from '@tinkoff/ng-event-plugins';
|
|
12
|
-
|
|
13
|
-
var TuiCarouselDirective = /** @class */ (function (_super) {
|
|
14
|
-
__extends(TuiCarouselDirective, _super);
|
|
15
|
-
function TuiCarouselDirective(destroy$, elementRef, visible$) {
|
|
16
|
-
var _this = _super.call(this, function (subscriber) { return _this.output$.subscribe(subscriber); }) || this;
|
|
17
|
-
_this.destroy$ = destroy$;
|
|
18
|
-
_this.elementRef = elementRef;
|
|
19
|
-
_this.visible$ = visible$;
|
|
20
|
-
_this.index$ = new BehaviorSubject(NaN);
|
|
21
|
-
_this.duration$ = new BehaviorSubject(0);
|
|
22
|
-
_this.running$ = merge(typedFromEvent(_this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)), typedFromEvent(_this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)), _this.visible$).pipe(takeUntil(_this.destroy$), shareReplay(1));
|
|
23
|
-
_this.output$ = combineLatest([
|
|
24
|
-
_this.index$.pipe(filter(function (v) { return !isNaN(v); })),
|
|
25
|
-
_this.duration$,
|
|
26
|
-
]).pipe(switchMap(function (_a) {
|
|
27
|
-
var _b = __read(_a, 2), index = _b[0], duration = _b[1];
|
|
28
|
-
return duration
|
|
29
|
-
? interval(duration).pipe(withLatestFrom(_this.running$), filter(function (_a) {
|
|
30
|
-
var _b = __read(_a, 2), _ = _b[0], running = _b[1];
|
|
31
|
-
return running;
|
|
32
|
-
}), scan(function (acc) { return ++acc; }, index), startWith(index))
|
|
33
|
-
: of(index);
|
|
34
|
-
}), distinctUntilChanged());
|
|
35
|
-
// So that initial position is scrolled to instantly
|
|
36
|
-
_this.inited = false;
|
|
37
|
-
return _this;
|
|
38
|
-
}
|
|
39
|
-
Object.defineProperty(TuiCarouselDirective.prototype, "index", {
|
|
40
|
-
set: function (index) {
|
|
41
|
-
this.index$.next(index);
|
|
42
|
-
},
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(TuiCarouselDirective.prototype, "duration", {
|
|
47
|
-
set: function (duration) {
|
|
48
|
-
this.duration$.next(duration);
|
|
49
|
-
},
|
|
50
|
-
enumerable: true,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
TuiCarouselDirective.prototype.ngOnInit = function () {
|
|
54
|
-
if (isNaN(this.index$.value)) {
|
|
55
|
-
this.index$.next(0);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
TuiCarouselDirective.prototype.prev = function () {
|
|
59
|
-
this.index$.next(this.index$.value - 1);
|
|
60
|
-
};
|
|
61
|
-
TuiCarouselDirective.prototype.next = function () {
|
|
62
|
-
this.index$.next(this.index$.value + 1);
|
|
63
|
-
};
|
|
64
|
-
TuiCarouselDirective.ctorParameters = function () { return [
|
|
65
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TuiDestroyService,] }] },
|
|
66
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
67
|
-
{ type: Observable, decorators: [{ type: Inject, args: [PAGE_VISIBILITY,] }] }
|
|
68
|
-
]; };
|
|
69
|
-
__decorate([
|
|
70
|
-
Input()
|
|
71
|
-
], TuiCarouselDirective.prototype, "index", null);
|
|
72
|
-
__decorate([
|
|
73
|
-
Input()
|
|
74
|
-
], TuiCarouselDirective.prototype, "duration", null);
|
|
75
|
-
TuiCarouselDirective = __decorate([
|
|
76
|
-
Directive({
|
|
77
|
-
selector: 'tui-carousel',
|
|
78
|
-
exportAs: 'tui-carousel',
|
|
79
|
-
providers: [TuiDestroyService],
|
|
80
|
-
}),
|
|
81
|
-
__param(0, Inject(TuiDestroyService)),
|
|
82
|
-
__param(1, Inject(ElementRef)),
|
|
83
|
-
__param(2, Inject(PAGE_VISIBILITY))
|
|
84
|
-
], TuiCarouselDirective);
|
|
85
|
-
return TuiCarouselDirective;
|
|
86
|
-
}(Observable));
|
|
87
10
|
|
|
88
11
|
// @dynamic
|
|
89
|
-
var TuiCarouselDraggableDirective = /** @class */ (function (_super) {
|
|
90
|
-
__extends(TuiCarouselDraggableDirective, _super);
|
|
91
|
-
function TuiCarouselDraggableDirective(documentRef, isMobile, elementRef, pan$) {
|
|
92
|
-
var _this = _super.call(this, function (subscriber) { return _this.transform$.subscribe(subscriber); }) || this;
|
|
93
|
-
_this.documentRef = documentRef;
|
|
94
|
-
_this.isMobile = isMobile;
|
|
95
|
-
_this.elementRef = elementRef;
|
|
96
|
-
_this.pan$ = pan$;
|
|
97
|
-
_this.transform$ = _this.isMobile
|
|
98
|
-
? EMPTY
|
|
99
|
-
: _this.pan$.pipe(filter(function () { return _this.draggable; }), scan(function (acc, _a) {
|
|
100
|
-
var _b = __read(_a, 1), cur = _b[0];
|
|
101
|
-
return acc + cur;
|
|
102
|
-
}, 0), takeUntil(typedFromEvent(_this.documentRef, 'mouseup').pipe(delay(0))), map(function (x) { return "translateX(" + clamp(x, _this.min, _this.max) + "px)"; }), endWith(null), repeat());
|
|
103
|
-
_this.min = -Infinity;
|
|
104
|
-
_this.max = Infinity;
|
|
105
|
-
_this.draggable = true;
|
|
106
|
-
_this.transitioned = false;
|
|
107
|
-
return _this;
|
|
108
|
-
}
|
|
109
|
-
TuiCarouselDraggableDirective.prototype.onMouseDown = function () {
|
|
110
|
-
var _a = this.elementRef.nativeElement, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
111
|
-
this.max = scrollLeft;
|
|
112
|
-
this.min = clientWidth - Math.round(scrollWidth) + Math.round(scrollLeft);
|
|
113
|
-
this.transitioned = true;
|
|
114
|
-
};
|
|
115
|
-
TuiCarouselDraggableDirective.prototype.onTransitionEnd = function (target) {
|
|
116
|
-
if (this.elementRef.nativeElement.firstElementChild === target) {
|
|
117
|
-
this.transitioned = false;
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
TuiCarouselDraggableDirective.ctorParameters = function () { return [
|
|
121
|
-
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
|
122
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
|
|
123
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [INTERSECTION_ROOT,] }] },
|
|
124
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TuiPanService,] }] }
|
|
125
|
-
]; };
|
|
126
|
-
__decorate([
|
|
127
|
-
Input(),
|
|
128
|
-
HostBinding('class._draggable'),
|
|
129
|
-
tuiDefaultProp()
|
|
130
|
-
], TuiCarouselDraggableDirective.prototype, "draggable", void 0);
|
|
131
|
-
__decorate([
|
|
132
|
-
HostBinding('class._transitioned')
|
|
133
|
-
], TuiCarouselDraggableDirective.prototype, "transitioned", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
HostListener('mousedown.silent')
|
|
136
|
-
], TuiCarouselDraggableDirective.prototype, "onMouseDown", null);
|
|
137
|
-
__decorate([
|
|
138
|
-
HostListener('transitionend', ['$event.target'])
|
|
139
|
-
], TuiCarouselDraggableDirective.prototype, "onTransitionEnd", null);
|
|
140
|
-
TuiCarouselDraggableDirective = __decorate([
|
|
141
|
-
Directive({
|
|
142
|
-
selector: 'tui-carousel[draggable]',
|
|
143
|
-
providers: [TuiPanService],
|
|
144
|
-
}),
|
|
145
|
-
__param(0, Inject(DOCUMENT)),
|
|
146
|
-
__param(1, Inject(TUI_IS_MOBILE)),
|
|
147
|
-
__param(2, Inject(INTERSECTION_ROOT)),
|
|
148
|
-
__param(3, Inject(TuiPanService))
|
|
149
|
-
], TuiCarouselDraggableDirective);
|
|
150
|
-
return TuiCarouselDraggableDirective;
|
|
151
|
-
}(Observable));
|
|
152
|
-
|
|
153
12
|
var TuiCarouselComponent = /** @class */ (function () {
|
|
154
|
-
function TuiCarouselComponent(
|
|
155
|
-
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
13
|
+
function TuiCarouselComponent(changeDetectorRef, elementRef, isMobile) {
|
|
14
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
15
|
+
this.elementRef = elementRef;
|
|
16
|
+
this.isMobile = isMobile;
|
|
17
|
+
this.translate = 0;
|
|
18
|
+
this.draggable = false;
|
|
159
19
|
this.itemsCount = 1;
|
|
160
20
|
this.index = 0;
|
|
161
21
|
this.indexChange = new EventEmitter();
|
|
162
|
-
this.manual$ = this.index$.pipe(map(function (index) { return _this.loopback(index); }));
|
|
163
|
-
this.attached = false;
|
|
164
22
|
this.items = EMPTY_QUERY;
|
|
23
|
+
this.transitioned = true;
|
|
165
24
|
}
|
|
25
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "transform", {
|
|
26
|
+
get: function () {
|
|
27
|
+
var x = this.transitioned ? this.computedTranslate : this.translate;
|
|
28
|
+
return "translateX(" + 100 * x + "%)";
|
|
29
|
+
},
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
TuiCarouselComponent.prototype.onTransitioned = function (transitioned) {
|
|
34
|
+
this.transitioned = transitioned;
|
|
35
|
+
if (!transitioned) {
|
|
36
|
+
this.translate = this.computedTranslate;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
166
39
|
TuiCarouselComponent.prototype.getStyle = function (itemsCount) {
|
|
167
40
|
var percent = 100 / itemsCount + "%";
|
|
168
41
|
return {
|
|
@@ -171,29 +44,77 @@ var TuiCarouselComponent = /** @class */ (function () {
|
|
|
171
44
|
maxWidth: percent,
|
|
172
45
|
};
|
|
173
46
|
};
|
|
47
|
+
TuiCarouselComponent.prototype.next = function () {
|
|
48
|
+
this.updateIndex(this.index + 1);
|
|
49
|
+
};
|
|
50
|
+
TuiCarouselComponent.prototype.prev = function () {
|
|
51
|
+
this.updateIndex(this.index - 1);
|
|
52
|
+
};
|
|
53
|
+
TuiCarouselComponent.prototype.isDisabled = function (index) {
|
|
54
|
+
return index < this.index || index > this.index + this.itemsCount;
|
|
55
|
+
};
|
|
174
56
|
TuiCarouselComponent.prototype.onIntersection = function (_a, index) {
|
|
175
|
-
var intersectionRatio = _a.intersectionRatio
|
|
176
|
-
if (!this.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
57
|
+
var intersectionRatio = _a.intersectionRatio;
|
|
58
|
+
if (intersectionRatio && intersectionRatio !== 1 && !this.transitioned) {
|
|
59
|
+
this.updateIndex(index - Math.floor(this.itemsCount / 2));
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
TuiCarouselComponent.prototype.onScroll = function (delta) {
|
|
63
|
+
if (!this.isMobile) {
|
|
64
|
+
this.updateIndex(this.index + delta);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
TuiCarouselComponent.prototype.onPan = function (x) {
|
|
68
|
+
if (!this.computedDraggable) {
|
|
181
69
|
return;
|
|
182
70
|
}
|
|
183
|
-
this.
|
|
71
|
+
var clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
72
|
+
var min = 1 - this.items.length / this.itemsCount;
|
|
73
|
+
this.translate = clamp(x / clientWidth + this.translate, min, 0);
|
|
184
74
|
};
|
|
185
|
-
TuiCarouselComponent.prototype.
|
|
186
|
-
this.
|
|
75
|
+
TuiCarouselComponent.prototype.onSwipe = function (direction) {
|
|
76
|
+
if (Math.round(this.translate) !== -this.index || !this.computedDraggable) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
else if (direction === 'left') {
|
|
80
|
+
this.next();
|
|
81
|
+
}
|
|
82
|
+
else if (direction === 'right') {
|
|
83
|
+
this.prev();
|
|
84
|
+
}
|
|
187
85
|
};
|
|
188
|
-
TuiCarouselComponent.prototype.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
86
|
+
TuiCarouselComponent.prototype.onAutoscroll = function () {
|
|
87
|
+
this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "computedTranslate", {
|
|
90
|
+
get: function () {
|
|
91
|
+
return -this.index / this.itemsCount;
|
|
92
|
+
},
|
|
93
|
+
enumerable: true,
|
|
94
|
+
configurable: true
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "computedDraggable", {
|
|
97
|
+
get: function () {
|
|
98
|
+
return this.isMobile || this.draggable;
|
|
99
|
+
},
|
|
100
|
+
enumerable: true,
|
|
101
|
+
configurable: true
|
|
102
|
+
});
|
|
103
|
+
TuiCarouselComponent.prototype.updateIndex = function (index) {
|
|
104
|
+
this.index = clamp(index, 0, this.items.length - 1);
|
|
105
|
+
this.indexChange.emit(this.index);
|
|
106
|
+
this.changeDetectorRef.markForCheck();
|
|
192
107
|
};
|
|
193
108
|
TuiCarouselComponent.ctorParameters = function () { return [
|
|
194
|
-
{ type:
|
|
195
|
-
{ type:
|
|
109
|
+
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
110
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
111
|
+
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] }
|
|
196
112
|
]; };
|
|
113
|
+
__decorate([
|
|
114
|
+
Input(),
|
|
115
|
+
HostBinding('class._draggable'),
|
|
116
|
+
tuiDefaultProp()
|
|
117
|
+
], TuiCarouselComponent.prototype, "draggable", void 0);
|
|
197
118
|
__decorate([
|
|
198
119
|
Input(),
|
|
199
120
|
tuiDefaultProp()
|
|
@@ -208,13 +129,22 @@ var TuiCarouselComponent = /** @class */ (function () {
|
|
|
208
129
|
__decorate([
|
|
209
130
|
ContentChildren(TuiItemDirective, { read: TemplateRef })
|
|
210
131
|
], TuiCarouselComponent.prototype, "items", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
HostBinding('class._transitioned')
|
|
134
|
+
], TuiCarouselComponent.prototype, "transitioned", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
HostListener('touchstart', ['false']),
|
|
137
|
+
HostListener('touchend', ['true']),
|
|
138
|
+
HostListener('mousedown', ['false']),
|
|
139
|
+
HostListener('document:mouseup.silent', ['true'])
|
|
140
|
+
], TuiCarouselComponent.prototype, "onTransitioned", null);
|
|
211
141
|
__decorate([
|
|
212
142
|
tuiPure
|
|
213
143
|
], TuiCarouselComponent.prototype, "getStyle", null);
|
|
214
144
|
TuiCarouselComponent = __decorate([
|
|
215
145
|
Component({
|
|
216
146
|
selector: 'tui-carousel',
|
|
217
|
-
template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div
|
|
147
|
+
template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div class=\"t-scroller\" (tuiCarouselScroll)=\"onScroll($event)\">\n <div class=\"t-wrapper\">\n <div\n waIntersectionObserver\n waIntersectionThreshold=\"0,1\"\n waIntersectionRootMargin=\"100px 100000px 100px -51%\"\n class=\"t-items\"\n [style.transform]=\"transform\"\n (tuiPan)=\"onPan($event[0])\"\n (tuiSwipe)=\"onSwipe($event.direction)\"\n (tuiCarouselAutoscroll)=\"onAutoscroll()\"\n >\n <fieldset\n *ngFor=\"let item of items; let i = index\"\n class=\"t-item\"\n [disabled]=\"isDisabled(i)\"\n [ngStyle]=\"getStyle(itemsCount)\"\n (waIntersectionObservee)=\"onIntersection($event[0], i)\"\n >\n <ng-container [ngTemplateOutlet]=\"item\"></ng-container>\n </fieldset>\n </div>\n </div>\n</div>\n",
|
|
218
148
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
219
149
|
providers: [
|
|
220
150
|
{
|
|
@@ -222,15 +152,70 @@ var TuiCarouselComponent = /** @class */ (function () {
|
|
|
222
152
|
useExisting: ElementRef,
|
|
223
153
|
},
|
|
224
154
|
],
|
|
225
|
-
styles: [":host{
|
|
155
|
+
styles: [":host{position:relative;display:block;overflow:hidden}:host._draggable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host._draggable:hover{cursor:-webkit-grab;cursor:grab}:host._draggable:active{cursor:-webkit-grabbing;cursor:grabbing}.t-items{display:flex;align-items:center}:host._transitioned .t-items{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out}.t-item{padding:0 1.25rem;flex:1;min-width:100%;max-width:100%;box-sizing:border-box;border:none;margin:0}.t-wrapper{position:sticky;left:0;right:0;min-width:100%;overflow:hidden}.t-scroller{scrollbar-width:none;-ms-overflow-style:none;display:flex;overflow:auto;overscroll-behavior-x:none;padding-bottom:2rem;margin-bottom:-2rem}.t-scroller::-webkit-scrollbar,.t-scroller::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}.t-scroller:after,.t-scroller:before{content:'';display:block;min-width:1rem}"]
|
|
226
156
|
}),
|
|
227
|
-
__param(0,
|
|
228
|
-
__param(
|
|
229
|
-
__param(
|
|
157
|
+
__param(0, Inject(ChangeDetectorRef)),
|
|
158
|
+
__param(1, Inject(ElementRef)),
|
|
159
|
+
__param(2, Inject(TUI_IS_MOBILE))
|
|
230
160
|
], TuiCarouselComponent);
|
|
231
161
|
return TuiCarouselComponent;
|
|
232
162
|
}());
|
|
233
163
|
|
|
164
|
+
var TuiCarouselDirective = /** @class */ (function (_super) {
|
|
165
|
+
__extends(TuiCarouselDirective, _super);
|
|
166
|
+
function TuiCarouselDirective(elementRef, visible$) {
|
|
167
|
+
var _this = _super.call(this, function (subscriber) { return _this.output$.subscribe(subscriber); }) || this;
|
|
168
|
+
_this.elementRef = elementRef;
|
|
169
|
+
_this.visible$ = visible$;
|
|
170
|
+
_this.duration$ = new BehaviorSubject(0);
|
|
171
|
+
_this.running$ = merge(typedFromEvent(_this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)), typedFromEvent(_this.elementRef.nativeElement, 'touchstart').pipe(mapTo(false)), typedFromEvent(_this.elementRef.nativeElement, 'touchend').pipe(mapTo(true)), typedFromEvent(_this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)), _this.visible$);
|
|
172
|
+
_this.output$ = combineLatest([_this.duration$, _this.running$]).pipe(switchMap(function (_a) {
|
|
173
|
+
var _b = __read(_a, 2), duration = _b[0], running = _b[1];
|
|
174
|
+
return duration && running ? interval(duration) : EMPTY;
|
|
175
|
+
}));
|
|
176
|
+
return _this;
|
|
177
|
+
}
|
|
178
|
+
Object.defineProperty(TuiCarouselDirective.prototype, "duration", {
|
|
179
|
+
set: function (duration) {
|
|
180
|
+
this.duration$.next(duration);
|
|
181
|
+
},
|
|
182
|
+
enumerable: true,
|
|
183
|
+
configurable: true
|
|
184
|
+
});
|
|
185
|
+
TuiCarouselDirective.ctorParameters = function () { return [
|
|
186
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
187
|
+
{ type: Observable, decorators: [{ type: Inject, args: [PAGE_VISIBILITY,] }] }
|
|
188
|
+
]; };
|
|
189
|
+
__decorate([
|
|
190
|
+
Input()
|
|
191
|
+
], TuiCarouselDirective.prototype, "duration", null);
|
|
192
|
+
TuiCarouselDirective = __decorate([
|
|
193
|
+
Directive({
|
|
194
|
+
selector: 'tui-carousel',
|
|
195
|
+
}),
|
|
196
|
+
__param(0, Inject(ElementRef)),
|
|
197
|
+
__param(1, Inject(PAGE_VISIBILITY))
|
|
198
|
+
], TuiCarouselDirective);
|
|
199
|
+
return TuiCarouselDirective;
|
|
200
|
+
}(Observable));
|
|
201
|
+
|
|
202
|
+
var TuiCarouselAutoscrollDirective = /** @class */ (function () {
|
|
203
|
+
function TuiCarouselAutoscrollDirective(tuiCarouselAutoscroll) {
|
|
204
|
+
this.tuiCarouselAutoscroll = tuiCarouselAutoscroll;
|
|
205
|
+
}
|
|
206
|
+
TuiCarouselAutoscrollDirective.ctorParameters = function () { return [
|
|
207
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TuiCarouselDirective,] }] }
|
|
208
|
+
]; };
|
|
209
|
+
TuiCarouselAutoscrollDirective = __decorate([
|
|
210
|
+
Directive({
|
|
211
|
+
selector: '[tuiCarouselAutoscroll]',
|
|
212
|
+
outputs: ['tuiCarouselAutoscroll'],
|
|
213
|
+
}),
|
|
214
|
+
__param(0, Inject(TuiCarouselDirective))
|
|
215
|
+
], TuiCarouselAutoscrollDirective);
|
|
216
|
+
return TuiCarouselAutoscrollDirective;
|
|
217
|
+
}());
|
|
218
|
+
|
|
234
219
|
// TODO: remove in ivy compilation
|
|
235
220
|
var CAROUSEL_BUTTON_OPTIONS = {
|
|
236
221
|
appearance: "secondary" /* Secondary */,
|
|
@@ -254,78 +239,33 @@ var TuiCarouselButtonsDirective = /** @class */ (function () {
|
|
|
254
239
|
return TuiCarouselButtonsDirective;
|
|
255
240
|
}());
|
|
256
241
|
|
|
257
|
-
function
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}
|
|
261
|
-
// @dynamic
|
|
262
|
-
var TuiCarouselScrollerDirective = /** @class */ (function () {
|
|
263
|
-
function TuiCarouselScrollerDirective(draggable, isMobile, directive, elementRef, root) {
|
|
264
|
-
this.draggable = draggable;
|
|
265
|
-
this.isMobile = isMobile;
|
|
266
|
-
this.directive = directive;
|
|
242
|
+
var TuiCarouselScrollDirective = /** @class */ (function () {
|
|
243
|
+
function TuiCarouselScrollDirective(elementRef) {
|
|
244
|
+
var _this = this;
|
|
267
245
|
this.elementRef = elementRef;
|
|
268
|
-
this.
|
|
269
|
-
|
|
270
|
-
|
|
246
|
+
this.tuiCarouselScroll = typedFromEvent(this.elementRef.nativeElement, 'wheel').pipe(filter(function (_a) {
|
|
247
|
+
var deltaX = _a.deltaX;
|
|
248
|
+
return Math.abs(deltaX) > 20;
|
|
249
|
+
}), throttleTime(500), map(function (_a) {
|
|
250
|
+
var deltaX = _a.deltaX;
|
|
251
|
+
return Math.sign(deltaX);
|
|
252
|
+
}),
|
|
253
|
+
// So we always have space to scroll and overflow-behavior saves us from back nav
|
|
254
|
+
tap(function () { return (_this.elementRef.nativeElement.scrollLeft = 10); }));
|
|
271
255
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
if (scroll) {
|
|
275
|
-
this.scrollTo(this.directive.inited ? 'smooth' : 'auto');
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
enumerable: true,
|
|
279
|
-
configurable: true
|
|
280
|
-
});
|
|
281
|
-
TuiCarouselScrollerDirective.prototype.onMouseUp = function (_e) {
|
|
282
|
-
var left = this.root.nativeElement.getBoundingClientRect().left;
|
|
283
|
-
var rect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
284
|
-
var parentElement = this.elementRef.nativeElement.parentElement;
|
|
285
|
-
parentElement.style.transform = "translateX(" + (rect.left - left) + "px)";
|
|
286
|
-
this.scrollTo();
|
|
287
|
-
};
|
|
288
|
-
TuiCarouselScrollerDirective.prototype.scrollTo = function (behavior) {
|
|
289
|
-
if (behavior === void 0) { behavior = 'auto'; }
|
|
290
|
-
this.directive.inited = true;
|
|
291
|
-
this.root.nativeElement.scrollTo({
|
|
292
|
-
left: this.elementRef.nativeElement.offsetLeft,
|
|
293
|
-
behavior: behavior,
|
|
294
|
-
});
|
|
295
|
-
};
|
|
296
|
-
TuiCarouselScrollerDirective.ctorParameters = function () { return [
|
|
297
|
-
{ type: TuiCarouselDraggableDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiCarouselDraggableDirective,] }] },
|
|
298
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
|
|
299
|
-
{ type: TuiCarouselDirective, decorators: [{ type: Inject, args: [TuiCarouselDirective,] }] },
|
|
300
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
301
|
-
{ type: ElementRef, decorators: [{ type: Inject, args: [INTERSECTION_ROOT,] }] }
|
|
256
|
+
TuiCarouselScrollDirective.ctorParameters = function () { return [
|
|
257
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
302
258
|
]; };
|
|
303
259
|
__decorate([
|
|
304
|
-
|
|
305
|
-
],
|
|
306
|
-
__decorate([
|
|
307
|
-
Input()
|
|
308
|
-
], TuiCarouselScrollerDirective.prototype, "index", void 0);
|
|
309
|
-
__decorate([
|
|
310
|
-
Input()
|
|
311
|
-
], TuiCarouselScrollerDirective.prototype, "current", void 0);
|
|
312
|
-
__decorate([
|
|
313
|
-
HostListener('document:mouseup.init', ['$event']),
|
|
314
|
-
HostListener('document:mouseup.silent', ['$event']),
|
|
315
|
-
shouldCall(shouldScroll)
|
|
316
|
-
], TuiCarouselScrollerDirective.prototype, "onMouseUp", null);
|
|
317
|
-
TuiCarouselScrollerDirective = __decorate([
|
|
260
|
+
Output()
|
|
261
|
+
], TuiCarouselScrollDirective.prototype, "tuiCarouselScroll", void 0);
|
|
262
|
+
TuiCarouselScrollDirective = __decorate([
|
|
318
263
|
Directive({
|
|
319
|
-
selector: '[
|
|
264
|
+
selector: '[tuiCarouselScroll]',
|
|
320
265
|
}),
|
|
321
|
-
__param(0,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
__param(2, Inject(TuiCarouselDirective)),
|
|
325
|
-
__param(3, Inject(ElementRef)),
|
|
326
|
-
__param(4, Inject(INTERSECTION_ROOT))
|
|
327
|
-
], TuiCarouselScrollerDirective);
|
|
328
|
-
return TuiCarouselScrollerDirective;
|
|
266
|
+
__param(0, Inject(ElementRef))
|
|
267
|
+
], TuiCarouselScrollDirective);
|
|
268
|
+
return TuiCarouselScrollDirective;
|
|
329
269
|
}());
|
|
330
270
|
|
|
331
271
|
var TuiCarouselModule = /** @class */ (function () {
|
|
@@ -333,19 +273,24 @@ var TuiCarouselModule = /** @class */ (function () {
|
|
|
333
273
|
}
|
|
334
274
|
TuiCarouselModule = __decorate([
|
|
335
275
|
NgModule({
|
|
336
|
-
imports: [
|
|
276
|
+
imports: [
|
|
277
|
+
CommonModule,
|
|
278
|
+
IntersectionObserverModule,
|
|
279
|
+
TuiPanModule,
|
|
280
|
+
TuiSwipeModule,
|
|
281
|
+
TuiItemModule,
|
|
282
|
+
],
|
|
337
283
|
declarations: [
|
|
338
284
|
TuiCarouselComponent,
|
|
339
285
|
TuiCarouselDirective,
|
|
340
|
-
TuiCarouselScrollerDirective,
|
|
341
|
-
TuiCarouselDraggableDirective,
|
|
342
286
|
TuiCarouselButtonsDirective,
|
|
287
|
+
TuiCarouselAutoscrollDirective,
|
|
288
|
+
TuiCarouselScrollDirective,
|
|
343
289
|
],
|
|
344
290
|
exports: [
|
|
345
291
|
TuiCarouselComponent,
|
|
346
292
|
TuiCarouselDirective,
|
|
347
293
|
TuiCarouselButtonsDirective,
|
|
348
|
-
TuiCarouselDraggableDirective,
|
|
349
294
|
TuiItemDirective,
|
|
350
295
|
],
|
|
351
296
|
})
|
|
@@ -357,5 +302,5 @@ var TuiCarouselModule = /** @class */ (function () {
|
|
|
357
302
|
* Generated bundle index. Do not edit.
|
|
358
303
|
*/
|
|
359
304
|
|
|
360
|
-
export { CAROUSEL_BUTTON_OPTIONS, TuiCarouselButtonsDirective, TuiCarouselComponent, TuiCarouselDirective,
|
|
305
|
+
export { CAROUSEL_BUTTON_OPTIONS, TuiCarouselAutoscrollDirective, TuiCarouselButtonsDirective, TuiCarouselComponent, TuiCarouselDirective, TuiCarouselModule, TuiCarouselScrollDirective };
|
|
361
306
|
//# sourceMappingURL=taiga-ui-kit-components-carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-carousel.js","sources":["ng://@taiga-ui/kit/components/carousel/carousel.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-draggable.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel.component.ts","ng://@taiga-ui/kit/components/carousel/carousel-buttons.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-scroller.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel.module.ts","ng://@taiga-ui/kit/components/carousel/taiga-ui-kit-components-carousel.ts"],"sourcesContent":["import {Directive, ElementRef, Inject, Input, OnInit} from '@angular/core';\nimport {PAGE_VISIBILITY} from '@ng-web-apis/common';\nimport {TuiDestroyService, typedFromEvent} from '@taiga-ui/cdk';\nimport {BehaviorSubject, combineLatest, interval, merge, Observable, of} from 'rxjs';\nimport {\n distinctUntilChanged,\n filter,\n mapTo,\n scan,\n shareReplay,\n startWith,\n switchMap,\n takeUntil,\n withLatestFrom,\n} from 'rxjs/operators';\n\n@Directive({\n selector: 'tui-carousel',\n exportAs: 'tui-carousel',\n providers: [TuiDestroyService],\n})\nexport class TuiCarouselDirective extends Observable<number> implements OnInit {\n private readonly index$ = new BehaviorSubject<number>(NaN);\n\n private readonly duration$ = new BehaviorSubject(0);\n\n private readonly running$ = merge(\n typedFromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)),\n typedFromEvent(this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)),\n this.visible$,\n ).pipe(takeUntil(this.destroy$), shareReplay(1));\n\n private readonly output$ = combineLatest([\n this.index$.pipe(filter(v => !isNaN(v))),\n this.duration$,\n ]).pipe(\n switchMap(([index, duration]) =>\n duration\n ? interval(duration).pipe(\n withLatestFrom(this.running$),\n filter(([_, running]) => running),\n scan(acc => ++acc, index),\n startWith(index),\n )\n : of(index),\n ),\n distinctUntilChanged(),\n );\n\n @Input()\n set index(index: number) {\n this.index$.next(index);\n }\n\n @Input()\n set duration(duration: number) {\n this.duration$.next(duration);\n }\n\n // So that initial position is scrolled to instantly\n inited = false;\n\n constructor(\n @Inject(TuiDestroyService) private readonly destroy$: Observable<unknown>,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(PAGE_VISIBILITY) private readonly visible$: Observable<boolean>,\n ) {\n super(subscriber => this.output$.subscribe(subscriber));\n }\n\n ngOnInit() {\n if (isNaN(this.index$.value)) {\n this.index$.next(0);\n }\n }\n\n prev() {\n this.index$.next(this.index$.value - 1);\n }\n\n next() {\n this.index$.next(this.index$.value + 1);\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n} from '@angular/core';\nimport {INTERSECTION_ROOT} from '@ng-web-apis/intersection-observer';\nimport {\n clamp,\n TUI_IS_MOBILE,\n tuiDefaultProp,\n TuiPanService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {EMPTY, Observable} from 'rxjs';\nimport {delay, endWith, filter, map, repeat, scan, takeUntil} from 'rxjs/operators';\n\n// @dynamic\n@Directive({\n selector: 'tui-carousel[draggable]',\n providers: [TuiPanService],\n})\nexport class TuiCarouselDraggableDirective extends Observable<string | null> {\n private readonly transform$ = this.isMobile\n ? EMPTY\n : this.pan$.pipe(\n filter(() => this.draggable),\n scan((acc, [cur]) => acc + cur, 0),\n takeUntil(typedFromEvent(this.documentRef, 'mouseup').pipe(delay(0))),\n map(x => `translateX(${clamp(x, this.min, this.max)}px)`),\n endWith(null),\n repeat(),\n );\n\n private min = -Infinity;\n private max = Infinity;\n\n @Input()\n @HostBinding('class._draggable')\n @tuiDefaultProp()\n draggable = true;\n\n @HostBinding('class._transitioned')\n transitioned = false;\n\n constructor(\n @Inject(DOCUMENT) private readonly documentRef: Document,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(INTERSECTION_ROOT) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TuiPanService)\n private readonly pan$: Observable<readonly [number, number]>,\n ) {\n super(subscriber => this.transform$.subscribe(subscriber));\n }\n\n @HostListener('mousedown.silent')\n onMouseDown() {\n const {scrollLeft, scrollWidth, clientWidth} = this.elementRef.nativeElement;\n\n this.max = scrollLeft;\n this.min = clientWidth - Math.round(scrollWidth) + Math.round(scrollLeft);\n this.transitioned = true;\n }\n\n @HostListener('transitionend', ['$event.target'])\n onTransitionEnd(target: HTMLElement) {\n if (this.elementRef.nativeElement.firstElementChild === target) {\n this.transitioned = false;\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n Optional,\n Output,\n QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {INTERSECTION_ROOT} from '@ng-web-apis/intersection-observer';\nimport {EMPTY_QUERY, tuiDefaultProp, TuiItemDirective, tuiPure} from '@taiga-ui/cdk';\nimport {Observable, Subject} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselDraggableDirective} from './carousel-draggable.directive';\n\n@Component({\n selector: 'tui-carousel',\n templateUrl: 'carousel.template.html',\n styleUrls: ['carousel.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: INTERSECTION_ROOT,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiCarouselComponent {\n readonly intersected$ = new Subject<number>();\n\n @Input()\n @tuiDefaultProp()\n itemsCount = 1;\n\n @Input()\n @tuiDefaultProp()\n index = 0;\n\n @Output()\n readonly indexChange = new EventEmitter<number>();\n\n readonly manual$ = this.index$.pipe(map(index => this.loopback(index)));\n\n attached = false;\n\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<any>> = EMPTY_QUERY;\n\n constructor(\n @Optional()\n @Inject(TuiCarouselDraggableDirective)\n readonly transform$: Observable<string | null> | null,\n @Inject(TuiCarouselDirective) private readonly index$: Observable<number>,\n ) {}\n\n @tuiPure\n getStyle(itemsCount: number): Partial<CSSStyleDeclaration> {\n const percent = `${100 / itemsCount}%`;\n\n return {\n flexBasis: percent,\n minWidth: percent,\n maxWidth: percent,\n };\n }\n\n onIntersection(\n {intersectionRatio, intersectionRect, rootBounds}: IntersectionObserverEntry,\n index: number,\n ) {\n if (\n !this.attached ||\n !intersectionRatio ||\n intersectionRatio === 1 ||\n // Phantom intersections due to width wobble on drag\n intersectionRect.left > Number(rootBounds?.left)\n ) {\n return;\n }\n\n this.indexChange.emit(index - Math.floor(this.itemsCount / 2));\n }\n\n onPresent(attached: boolean) {\n this.attached = attached;\n }\n\n private loopback(index: number) {\n const safe = this.items.length || index + 1;\n const remainder = index % safe;\n\n return remainder < 0 ? remainder + this.items.length : remainder;\n }\n}\n","import {Directive} from '@angular/core';\nimport {ButtonOptions, TUI_BUTTON_OPTIONS, TuiAppearance} from '@taiga-ui/core';\n\n// TODO: remove in ivy compilation\nexport const CAROUSEL_BUTTON_OPTIONS: ButtonOptions = {\n appearance: TuiAppearance.Secondary,\n shape: 'rounded',\n size: 'm',\n};\n\n@Directive({\n selector: '[tuiCarouselButtons]',\n providers: [\n {\n provide: TUI_BUTTON_OPTIONS,\n useValue: CAROUSEL_BUTTON_OPTIONS,\n },\n ],\n})\nexport class TuiCarouselButtonsDirective {}\n","import {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Input,\n Optional,\n} from '@angular/core';\nimport {INTERSECTION_ROOT} from '@ng-web-apis/intersection-observer';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk';\nimport {shouldCall} from '@tinkoff/ng-event-plugins';\n\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselDraggableDirective} from './carousel-draggable.directive';\n\nexport function shouldScroll(this: TuiCarouselScrollerDirective): boolean {\n return !this.isMobile && !!this.draggable?.draggable && this.index === this.current;\n}\n\n// @dynamic\n@Directive({\n selector: '[tuiCarouselScroller]',\n})\nexport class TuiCarouselScrollerDirective {\n @Input()\n set scroll(scroll: boolean) {\n if (scroll) {\n this.scrollTo(this.directive.inited ? 'smooth' : 'auto');\n }\n }\n\n @Input()\n index = 0;\n\n @Input()\n current = 0;\n\n constructor(\n @Optional()\n @Inject(TuiCarouselDraggableDirective)\n readonly draggable: TuiCarouselDraggableDirective | null,\n @Inject(TUI_IS_MOBILE) readonly isMobile: boolean,\n @Inject(TuiCarouselDirective) private readonly directive: TuiCarouselDirective,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(INTERSECTION_ROOT) private readonly root: ElementRef<HTMLElement>,\n ) {}\n\n @HostListener('document:mouseup.init', ['$event'])\n @HostListener('document:mouseup.silent', ['$event'])\n @shouldCall(shouldScroll)\n onMouseUp(_e: unknown) {\n const {left} = this.root.nativeElement.getBoundingClientRect();\n const rect = this.elementRef.nativeElement.getBoundingClientRect();\n const {parentElement} = this.elementRef.nativeElement;\n\n parentElement!.style.transform = `translateX(${rect.left - left}px)`;\n this.scrollTo();\n }\n\n private scrollTo(behavior: ScrollBehavior = 'auto') {\n this.directive.inited = true;\n this.root.nativeElement.scrollTo({\n left: this.elementRef.nativeElement.offsetLeft,\n behavior,\n });\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {IntersectionObserverModule} from '@ng-web-apis/intersection-observer';\nimport {TuiItemDirective, TuiItemModule} from '@taiga-ui/cdk';\nimport {TuiPresentModule} from '@taiga-ui/kit/directives';\n\nimport {TuiCarouselComponent} from './carousel.component';\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselButtonsDirective} from './carousel-buttons.directive';\nimport {TuiCarouselDraggableDirective} from './carousel-draggable.directive';\nimport {TuiCarouselScrollerDirective} from './carousel-scroller.directive';\n\n@NgModule({\n imports: [CommonModule, IntersectionObserverModule, TuiItemModule, TuiPresentModule],\n declarations: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselScrollerDirective,\n TuiCarouselDraggableDirective,\n TuiCarouselButtonsDirective,\n ],\n exports: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselButtonsDirective,\n TuiCarouselDraggableDirective,\n TuiItemDirective,\n ],\n})\nexport class TuiCarouselModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;IAqB0C,wCAAkB;IAyCxD,8BACgD,QAA6B,EACpC,UAAmC,EAC9B,QAA6B;QAH3E,YAKI,kBAAM,UAAA,UAAU,IAAI,OAAA,KAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,GAAA,CAAC,SAC1D;QAL+C,cAAQ,GAAR,QAAQ,CAAqB;QACpC,gBAAU,GAAV,UAAU,CAAyB;QAC9B,cAAQ,GAAR,QAAQ,CAAqB;QA3C1D,YAAM,GAAG,IAAI,eAAe,CAAS,GAAG,CAAC,CAAC;QAE1C,eAAS,GAAG,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;QAEnC,cAAQ,GAAG,KAAK,CAC7B,cAAc,CAAC,KAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAC9E,cAAc,CAAC,KAAI,CAAC,UAAU,CAAC,aAAa,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,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QAErC,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;QAC5B,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;OArBrB,4BAA4B,CA2CxC;IAAD,mCAAC;CA3CD;;;ICMA;KAAiC;IAApB,iBAAiB;QAjB7B,QAAQ,CAAC;YACN,OAAO,EAAE,CAAC,YAAY,EAAE,0BAA0B,EAAE,aAAa,EAAE,gBAAgB,CAAC;YACpF,YAAY,EAAE;gBACV,oBAAoB;gBACpB,oBAAoB;gBACpB,4BAA4B;gBAC5B,6BAA6B;gBAC7B,2BAA2B;aAC9B;YACD,OAAO,EAAE;gBACL,oBAAoB;gBACpB,oBAAoB;gBACpB,2BAA2B;gBAC3B,6BAA6B;gBAC7B,gBAAgB;aACnB;SACJ,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;AC7BA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-carousel.js","sources":["ng://@taiga-ui/kit/components/carousel/carousel.component.ts","ng://@taiga-ui/kit/components/carousel/carousel.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-autoscroll.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-buttons.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel-scroll.directive.ts","ng://@taiga-ui/kit/components/carousel/carousel.module.ts","ng://@taiga-ui/kit/components/carousel/taiga-ui-kit-components-carousel.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {INTERSECTION_ROOT} from '@ng-web-apis/intersection-observer';\nimport {\n clamp,\n EMPTY_QUERY,\n TUI_IS_MOBILE,\n tuiDefaultProp,\n TuiItemDirective,\n tuiPure,\n TuiSwipeDirection,\n} from '@taiga-ui/cdk';\n\n// @dynamic\n@Component({\n selector: 'tui-carousel',\n templateUrl: 'carousel.template.html',\n styleUrls: ['carousel.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: INTERSECTION_ROOT,\n useExisting: ElementRef,\n },\n ],\n})\nexport class TuiCarouselComponent {\n private translate = 0;\n\n @Input()\n @HostBinding('class._draggable')\n @tuiDefaultProp()\n draggable = false;\n\n @Input()\n @tuiDefaultProp()\n itemsCount = 1;\n\n @Input()\n @tuiDefaultProp()\n index = 0;\n\n @Output()\n readonly indexChange = new EventEmitter<number>();\n\n @ContentChildren(TuiItemDirective, {read: TemplateRef})\n readonly items: QueryList<TemplateRef<any>> = EMPTY_QUERY;\n\n @HostBinding('class._transitioned')\n transitioned = true;\n\n constructor(\n @Inject(ChangeDetectorRef) private readonly changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n ) {}\n\n get transform(): string {\n const x = this.transitioned ? this.computedTranslate : this.translate;\n\n return `translateX(${100 * x}%)`;\n }\n\n @HostListener('touchstart', ['false'])\n @HostListener('touchend', ['true'])\n @HostListener('mousedown', ['false'])\n @HostListener('document:mouseup.silent', ['true'])\n onTransitioned(transitioned: boolean) {\n this.transitioned = transitioned;\n\n if (!transitioned) {\n this.translate = this.computedTranslate;\n }\n }\n\n @tuiPure\n getStyle(itemsCount: number): Partial<CSSStyleDeclaration> {\n const percent = `${100 / itemsCount}%`;\n\n return {\n flexBasis: percent,\n minWidth: percent,\n maxWidth: percent,\n };\n }\n\n next() {\n this.updateIndex(this.index + 1);\n }\n\n prev() {\n this.updateIndex(this.index - 1);\n }\n\n isDisabled(index: number): boolean {\n return index < this.index || index > this.index + this.itemsCount;\n }\n\n onIntersection({intersectionRatio}: IntersectionObserverEntry, index: number) {\n if (intersectionRatio && intersectionRatio !== 1 && !this.transitioned) {\n this.updateIndex(index - Math.floor(this.itemsCount / 2));\n }\n }\n\n onScroll(delta: number) {\n if (!this.isMobile) {\n this.updateIndex(this.index + delta);\n }\n }\n\n onPan(x: number) {\n if (!this.computedDraggable) {\n return;\n }\n\n const {clientWidth} = this.elementRef.nativeElement;\n const min = 1 - this.items.length / this.itemsCount;\n\n this.translate = clamp(x / clientWidth + this.translate, min, 0);\n }\n\n onSwipe(direction: TuiSwipeDirection) {\n if (Math.round(this.translate) !== -this.index || !this.computedDraggable) {\n return;\n } else if (direction === 'left') {\n this.next();\n } else if (direction === 'right') {\n this.prev();\n }\n }\n\n onAutoscroll() {\n this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);\n }\n\n private get computedTranslate(): number {\n return -this.index / this.itemsCount;\n }\n\n private get computedDraggable(): boolean {\n return this.isMobile || this.draggable;\n }\n\n private updateIndex(index: number) {\n this.index = clamp(index, 0, this.items.length - 1);\n this.indexChange.emit(this.index);\n this.changeDetectorRef.markForCheck();\n }\n}\n","import {Directive, ElementRef, Inject, Input} from '@angular/core';\nimport {PAGE_VISIBILITY} from '@ng-web-apis/common';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {BehaviorSubject, combineLatest, EMPTY, interval, merge, Observable} from 'rxjs';\nimport {mapTo, switchMap} from 'rxjs/operators';\n\n@Directive({\n selector: 'tui-carousel',\n})\nexport class TuiCarouselDirective extends Observable<unknown> {\n private readonly duration$ = new BehaviorSubject(0);\n\n private readonly running$ = merge(\n typedFromEvent(this.elementRef.nativeElement, 'mouseenter').pipe(mapTo(false)),\n typedFromEvent(this.elementRef.nativeElement, 'touchstart').pipe(mapTo(false)),\n typedFromEvent(this.elementRef.nativeElement, 'touchend').pipe(mapTo(true)),\n typedFromEvent(this.elementRef.nativeElement, 'mouseleave').pipe(mapTo(true)),\n this.visible$,\n );\n\n private readonly output$ = combineLatest([this.duration$, this.running$]).pipe(\n switchMap(([duration, running]) =>\n duration && running ? interval(duration) : EMPTY,\n ),\n );\n\n @Input()\n set duration(duration: number) {\n this.duration$.next(duration);\n }\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(PAGE_VISIBILITY) private readonly visible$: Observable<boolean>,\n ) {\n super(subscriber => this.output$.subscribe(subscriber));\n }\n}\n","import {Directive, Inject} from '@angular/core';\nimport {Observable} from 'rxjs';\n\nimport {TuiCarouselDirective} from './carousel.directive';\n\n@Directive({\n selector: '[tuiCarouselAutoscroll]',\n outputs: ['tuiCarouselAutoscroll'],\n})\nexport class TuiCarouselAutoscrollDirective {\n constructor(\n @Inject(TuiCarouselDirective) readonly tuiCarouselAutoscroll: Observable<unknown>,\n ) {}\n}\n","import {Directive} from '@angular/core';\nimport {ButtonOptions, TUI_BUTTON_OPTIONS, TuiAppearance} from '@taiga-ui/core';\n\n// TODO: remove in ivy compilation\nexport const CAROUSEL_BUTTON_OPTIONS: ButtonOptions = {\n appearance: TuiAppearance.Secondary,\n shape: 'rounded',\n size: 'm',\n};\n\n@Directive({\n selector: '[tuiCarouselButtons]',\n providers: [\n {\n provide: TUI_BUTTON_OPTIONS,\n useValue: CAROUSEL_BUTTON_OPTIONS,\n },\n ],\n})\nexport class TuiCarouselButtonsDirective {}\n","import {Directive, ElementRef, Inject, Output} from '@angular/core';\nimport {typedFromEvent} from '@taiga-ui/cdk';\nimport {filter, map, tap, throttleTime} from 'rxjs/operators';\n\n@Directive({\n selector: '[tuiCarouselScroll]',\n})\nexport class TuiCarouselScrollDirective {\n @Output()\n readonly tuiCarouselScroll = typedFromEvent(\n this.elementRef.nativeElement,\n 'wheel',\n ).pipe(\n filter(({deltaX}) => Math.abs(deltaX) > 20),\n throttleTime(500),\n map(({deltaX}) => Math.sign(deltaX)),\n // So we always have space to scroll and overflow-behavior saves us from back nav\n tap(() => (this.elementRef.nativeElement.scrollLeft = 10)),\n );\n\n constructor(\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {IntersectionObserverModule} from '@ng-web-apis/intersection-observer';\nimport {\n TuiItemDirective,\n TuiItemModule,\n TuiPanModule,\n TuiSwipeModule,\n} from '@taiga-ui/cdk';\n\nimport {TuiCarouselComponent} from './carousel.component';\nimport {TuiCarouselDirective} from './carousel.directive';\nimport {TuiCarouselAutoscrollDirective} from './carousel-autoscroll.directive';\nimport {TuiCarouselButtonsDirective} from './carousel-buttons.directive';\nimport {TuiCarouselScrollDirective} from './carousel-scroll.directive';\n\n@NgModule({\n imports: [\n CommonModule,\n IntersectionObserverModule,\n TuiPanModule,\n TuiSwipeModule,\n TuiItemModule,\n ],\n declarations: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselButtonsDirective,\n TuiCarouselAutoscrollDirective,\n TuiCarouselScrollDirective,\n ],\n exports: [\n TuiCarouselComponent,\n TuiCarouselDirective,\n TuiCarouselButtonsDirective,\n TuiItemDirective,\n ],\n})\nexport class TuiCarouselModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA0BA;;IAsCI,8BACgD,iBAAoC,EAC3C,UAAmC,EAChC,QAAiB;QAFb,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC3C,eAAU,GAAV,UAAU,CAAyB;QAChC,aAAQ,GAAR,QAAQ,CAAS;QA3BrD,cAAS,GAAG,CAAC,CAAC;QAKtB,cAAS,GAAG,KAAK,CAAC;QAIlB,eAAU,GAAG,CAAC,CAAC;QAIf,UAAK,GAAG,CAAC,CAAC;QAGD,gBAAW,GAAG,IAAI,YAAY,EAAU,CAAC;QAGzC,UAAK,GAAgC,WAAW,CAAC;QAG1D,iBAAY,GAAG,IAAI,CAAC;KAMhB;IAEJ,sBAAI,2CAAS;aAAb;YACI,IAAM,CAAC,GAAG,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC;Y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AC,UAAC,EAAQ;gBAAP,kBAAM;YAAM,OAAA,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;SAAA,CAAC;;QAEpC,GAAG,CAAC,cAAM,QAAC,KAAI,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,GAAG,EAAE,IAAC,CAAC,CAC7D,CAAC;KAIE;;gBADiD,UAAU,uBAA1D,MAAM,SAAC,UAAU;;IAZtB;QADC,MAAM,EAAE;yEAUP;IAXO,0BAA0B;QAHtC,SAAS,CAAC;YACP,QAAQ,EAAE,qBAAqB;SAClC,CAAC;QAeO,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;OAdd,0BAA0B,CAgBtC;IAAD,iCAAC;CAhBD;;;IC+BA;KAAiC;IAApB,iBAAiB;QAtB7B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,0BAA0B;gBAC1B,YAAY;gBACZ,cAAc;gBACd,aAAa;aAChB;YACD,YAAY,EAAE;gBACV,oBAAoB;gBACpB,oBAAoB;gBACpB,2BAA2B;gBAC3B,8BAA8B;gBAC9B,0BAA0B;aAC7B;YACD,OAAO,EAAE;gBACL,oBAAoB;gBACpB,oBAAoB;gBACpB,2BAA2B;gBAC3B,gBAAgB;aACnB;SACJ,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACtCA;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __extends, __decorate, __param } from 'tslib';
|
|
2
|
-
import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding,
|
|
2
|
+
import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl, FormsModule } from '@angular/forms';
|
|
4
4
|
import { isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiHoveredModule, TuiPressedModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { TuiModeDirective, TuiWrapperModule } from '@taiga-ui/core';
|
|
@@ -77,6 +77,9 @@ var TuiCheckboxBlockComponent = /** @class */ (function (_super) {
|
|
|
77
77
|
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
78
78
|
{ type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] }
|
|
79
79
|
]; };
|
|
80
|
+
__decorate([
|
|
81
|
+
ViewChild(TuiCheckboxComponent)
|
|
82
|
+
], TuiCheckboxBlockComponent.prototype, "checkbox", void 0);
|
|
80
83
|
__decorate([
|
|
81
84
|
Input(),
|
|
82
85
|
HostBinding('attr.data-tui-host-align'),
|
|
@@ -92,9 +95,6 @@ var TuiCheckboxBlockComponent = /** @class */ (function (_super) {
|
|
|
92
95
|
HostBinding('attr.data-tui-host-size'),
|
|
93
96
|
tuiDefaultProp()
|
|
94
97
|
], TuiCheckboxBlockComponent.prototype, "size", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
ViewChild(TuiCheckboxComponent)
|
|
97
|
-
], TuiCheckboxBlockComponent.prototype, "checkbox", void 0);
|
|
98
98
|
__decorate([
|
|
99
99
|
HostBinding('class._active')
|
|
100
100
|
], TuiCheckboxBlockComponent.prototype, "checked", null);
|