@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,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/intersection-observer'), require('@taiga-ui/cdk'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/carousel', ['exports', '@angular/core', '@ng-web-apis/intersection-observer', '@taiga-ui/cdk', '
|
|
4
|
-
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.components = global['taiga-ui'].kit.components || {}, global['taiga-ui'].kit.components.carousel = {}), global.ng.core, global.intersectionObserver, global.cdk, global.
|
|
5
|
-
}(this, (function (exports, core, intersectionObserver, cdk, rxjs, operators, common
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ng-web-apis/intersection-observer'), require('@taiga-ui/cdk'), require('@ng-web-apis/common'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@taiga-ui/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@taiga-ui/kit/components/carousel', ['exports', '@angular/core', '@ng-web-apis/intersection-observer', '@taiga-ui/cdk', '@ng-web-apis/common', 'rxjs', 'rxjs/operators', '@angular/common', '@taiga-ui/core'], factory) :
|
|
4
|
+
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui'].kit = global['taiga-ui'].kit || {}, global['taiga-ui'].kit.components = global['taiga-ui'].kit.components || {}, global['taiga-ui'].kit.components.carousel = {}), global.ng.core, global.intersectionObserver, global.cdk, global.common, global.rxjs, global.rxjs.operators, global.ng.common, global.core$1));
|
|
5
|
+
}(this, (function (exports, core, intersectionObserver, cdk, common, rxjs, operators, common$1, core$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -223,159 +223,34 @@
|
|
|
223
223
|
return value;
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
var TuiCarouselDirective = /** @class */ (function (_super) {
|
|
227
|
-
__extends(TuiCarouselDirective, _super);
|
|
228
|
-
function TuiCarouselDirective(destroy$, elementRef, visible$) {
|
|
229
|
-
var _this = _super.call(this, function (subscriber) { return _this.output$.subscribe(subscriber); }) || this;
|
|
230
|
-
_this.destroy$ = destroy$;
|
|
231
|
-
_this.elementRef = elementRef;
|
|
232
|
-
_this.visible$ = visible$;
|
|
233
|
-
_this.index$ = new rxjs.BehaviorSubject(NaN);
|
|
234
|
-
_this.duration$ = new rxjs.BehaviorSubject(0);
|
|
235
|
-
_this.running$ = rxjs.merge(cdk.typedFromEvent(_this.elementRef.nativeElement, 'mouseenter').pipe(operators.mapTo(false)), cdk.typedFromEvent(_this.elementRef.nativeElement, 'mouseleave').pipe(operators.mapTo(true)), _this.visible$).pipe(operators.takeUntil(_this.destroy$), operators.shareReplay(1));
|
|
236
|
-
_this.output$ = rxjs.combineLatest([
|
|
237
|
-
_this.index$.pipe(operators.filter(function (v) { return !isNaN(v); })),
|
|
238
|
-
_this.duration$,
|
|
239
|
-
]).pipe(operators.switchMap(function (_a) {
|
|
240
|
-
var _b = __read(_a, 2), index = _b[0], duration = _b[1];
|
|
241
|
-
return duration
|
|
242
|
-
? rxjs.interval(duration).pipe(operators.withLatestFrom(_this.running$), operators.filter(function (_a) {
|
|
243
|
-
var _b = __read(_a, 2), _ = _b[0], running = _b[1];
|
|
244
|
-
return running;
|
|
245
|
-
}), operators.scan(function (acc) { return ++acc; }, index), operators.startWith(index))
|
|
246
|
-
: rxjs.of(index);
|
|
247
|
-
}), operators.distinctUntilChanged());
|
|
248
|
-
// So that initial position is scrolled to instantly
|
|
249
|
-
_this.inited = false;
|
|
250
|
-
return _this;
|
|
251
|
-
}
|
|
252
|
-
Object.defineProperty(TuiCarouselDirective.prototype, "index", {
|
|
253
|
-
set: function (index) {
|
|
254
|
-
this.index$.next(index);
|
|
255
|
-
},
|
|
256
|
-
enumerable: true,
|
|
257
|
-
configurable: true
|
|
258
|
-
});
|
|
259
|
-
Object.defineProperty(TuiCarouselDirective.prototype, "duration", {
|
|
260
|
-
set: function (duration) {
|
|
261
|
-
this.duration$.next(duration);
|
|
262
|
-
},
|
|
263
|
-
enumerable: true,
|
|
264
|
-
configurable: true
|
|
265
|
-
});
|
|
266
|
-
TuiCarouselDirective.prototype.ngOnInit = function () {
|
|
267
|
-
if (isNaN(this.index$.value)) {
|
|
268
|
-
this.index$.next(0);
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
TuiCarouselDirective.prototype.prev = function () {
|
|
272
|
-
this.index$.next(this.index$.value - 1);
|
|
273
|
-
};
|
|
274
|
-
TuiCarouselDirective.prototype.next = function () {
|
|
275
|
-
this.index$.next(this.index$.value + 1);
|
|
276
|
-
};
|
|
277
|
-
TuiCarouselDirective.ctorParameters = function () { return [
|
|
278
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiDestroyService,] }] },
|
|
279
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
280
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [common.PAGE_VISIBILITY,] }] }
|
|
281
|
-
]; };
|
|
282
|
-
__decorate([
|
|
283
|
-
core.Input()
|
|
284
|
-
], TuiCarouselDirective.prototype, "index", null);
|
|
285
|
-
__decorate([
|
|
286
|
-
core.Input()
|
|
287
|
-
], TuiCarouselDirective.prototype, "duration", null);
|
|
288
|
-
TuiCarouselDirective = __decorate([
|
|
289
|
-
core.Directive({
|
|
290
|
-
selector: 'tui-carousel',
|
|
291
|
-
exportAs: 'tui-carousel',
|
|
292
|
-
providers: [cdk.TuiDestroyService],
|
|
293
|
-
}),
|
|
294
|
-
__param(0, core.Inject(cdk.TuiDestroyService)),
|
|
295
|
-
__param(1, core.Inject(core.ElementRef)),
|
|
296
|
-
__param(2, core.Inject(common.PAGE_VISIBILITY))
|
|
297
|
-
], TuiCarouselDirective);
|
|
298
|
-
return TuiCarouselDirective;
|
|
299
|
-
}(rxjs.Observable));
|
|
300
|
-
|
|
301
226
|
// @dynamic
|
|
302
|
-
var TuiCarouselDraggableDirective = /** @class */ (function (_super) {
|
|
303
|
-
__extends(TuiCarouselDraggableDirective, _super);
|
|
304
|
-
function TuiCarouselDraggableDirective(documentRef, isMobile, elementRef, pan$) {
|
|
305
|
-
var _this = _super.call(this, function (subscriber) { return _this.transform$.subscribe(subscriber); }) || this;
|
|
306
|
-
_this.documentRef = documentRef;
|
|
307
|
-
_this.isMobile = isMobile;
|
|
308
|
-
_this.elementRef = elementRef;
|
|
309
|
-
_this.pan$ = pan$;
|
|
310
|
-
_this.transform$ = _this.isMobile
|
|
311
|
-
? rxjs.EMPTY
|
|
312
|
-
: _this.pan$.pipe(operators.filter(function () { return _this.draggable; }), operators.scan(function (acc, _a) {
|
|
313
|
-
var _b = __read(_a, 1), cur = _b[0];
|
|
314
|
-
return acc + cur;
|
|
315
|
-
}, 0), operators.takeUntil(cdk.typedFromEvent(_this.documentRef, 'mouseup').pipe(operators.delay(0))), operators.map(function (x) { return "translateX(" + cdk.clamp(x, _this.min, _this.max) + "px)"; }), operators.endWith(null), operators.repeat());
|
|
316
|
-
_this.min = -Infinity;
|
|
317
|
-
_this.max = Infinity;
|
|
318
|
-
_this.draggable = true;
|
|
319
|
-
_this.transitioned = false;
|
|
320
|
-
return _this;
|
|
321
|
-
}
|
|
322
|
-
TuiCarouselDraggableDirective.prototype.onMouseDown = function () {
|
|
323
|
-
var _a = this.elementRef.nativeElement, scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
|
|
324
|
-
this.max = scrollLeft;
|
|
325
|
-
this.min = clientWidth - Math.round(scrollWidth) + Math.round(scrollLeft);
|
|
326
|
-
this.transitioned = true;
|
|
327
|
-
};
|
|
328
|
-
TuiCarouselDraggableDirective.prototype.onTransitionEnd = function (target) {
|
|
329
|
-
if (this.elementRef.nativeElement.firstElementChild === target) {
|
|
330
|
-
this.transitioned = false;
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
TuiCarouselDraggableDirective.ctorParameters = function () { return [
|
|
334
|
-
{ type: Document, decorators: [{ type: core.Inject, args: [common$1.DOCUMENT,] }] },
|
|
335
|
-
{ type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_MOBILE,] }] },
|
|
336
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [intersectionObserver.INTERSECTION_ROOT,] }] },
|
|
337
|
-
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [cdk.TuiPanService,] }] }
|
|
338
|
-
]; };
|
|
339
|
-
__decorate([
|
|
340
|
-
core.Input(),
|
|
341
|
-
core.HostBinding('class._draggable'),
|
|
342
|
-
cdk.tuiDefaultProp()
|
|
343
|
-
], TuiCarouselDraggableDirective.prototype, "draggable", void 0);
|
|
344
|
-
__decorate([
|
|
345
|
-
core.HostBinding('class._transitioned')
|
|
346
|
-
], TuiCarouselDraggableDirective.prototype, "transitioned", void 0);
|
|
347
|
-
__decorate([
|
|
348
|
-
core.HostListener('mousedown.silent')
|
|
349
|
-
], TuiCarouselDraggableDirective.prototype, "onMouseDown", null);
|
|
350
|
-
__decorate([
|
|
351
|
-
core.HostListener('transitionend', ['$event.target'])
|
|
352
|
-
], TuiCarouselDraggableDirective.prototype, "onTransitionEnd", null);
|
|
353
|
-
TuiCarouselDraggableDirective = __decorate([
|
|
354
|
-
core.Directive({
|
|
355
|
-
selector: 'tui-carousel[draggable]',
|
|
356
|
-
providers: [cdk.TuiPanService],
|
|
357
|
-
}),
|
|
358
|
-
__param(0, core.Inject(common$1.DOCUMENT)),
|
|
359
|
-
__param(1, core.Inject(cdk.TUI_IS_MOBILE)),
|
|
360
|
-
__param(2, core.Inject(intersectionObserver.INTERSECTION_ROOT)),
|
|
361
|
-
__param(3, core.Inject(cdk.TuiPanService))
|
|
362
|
-
], TuiCarouselDraggableDirective);
|
|
363
|
-
return TuiCarouselDraggableDirective;
|
|
364
|
-
}(rxjs.Observable));
|
|
365
|
-
|
|
366
227
|
var TuiCarouselComponent = /** @class */ (function () {
|
|
367
|
-
function TuiCarouselComponent(
|
|
368
|
-
|
|
369
|
-
this.
|
|
370
|
-
this.
|
|
371
|
-
this.
|
|
228
|
+
function TuiCarouselComponent(changeDetectorRef, elementRef, isMobile) {
|
|
229
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
230
|
+
this.elementRef = elementRef;
|
|
231
|
+
this.isMobile = isMobile;
|
|
232
|
+
this.translate = 0;
|
|
233
|
+
this.draggable = false;
|
|
372
234
|
this.itemsCount = 1;
|
|
373
235
|
this.index = 0;
|
|
374
236
|
this.indexChange = new core.EventEmitter();
|
|
375
|
-
this.manual$ = this.index$.pipe(operators.map(function (index) { return _this.loopback(index); }));
|
|
376
|
-
this.attached = false;
|
|
377
237
|
this.items = cdk.EMPTY_QUERY;
|
|
238
|
+
this.transitioned = true;
|
|
378
239
|
}
|
|
240
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "transform", {
|
|
241
|
+
get: function () {
|
|
242
|
+
var x = this.transitioned ? this.computedTranslate : this.translate;
|
|
243
|
+
return "translateX(" + 100 * x + "%)";
|
|
244
|
+
},
|
|
245
|
+
enumerable: true,
|
|
246
|
+
configurable: true
|
|
247
|
+
});
|
|
248
|
+
TuiCarouselComponent.prototype.onTransitioned = function (transitioned) {
|
|
249
|
+
this.transitioned = transitioned;
|
|
250
|
+
if (!transitioned) {
|
|
251
|
+
this.translate = this.computedTranslate;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
379
254
|
TuiCarouselComponent.prototype.getStyle = function (itemsCount) {
|
|
380
255
|
var percent = 100 / itemsCount + "%";
|
|
381
256
|
return {
|
|
@@ -384,29 +259,77 @@
|
|
|
384
259
|
maxWidth: percent,
|
|
385
260
|
};
|
|
386
261
|
};
|
|
262
|
+
TuiCarouselComponent.prototype.next = function () {
|
|
263
|
+
this.updateIndex(this.index + 1);
|
|
264
|
+
};
|
|
265
|
+
TuiCarouselComponent.prototype.prev = function () {
|
|
266
|
+
this.updateIndex(this.index - 1);
|
|
267
|
+
};
|
|
268
|
+
TuiCarouselComponent.prototype.isDisabled = function (index) {
|
|
269
|
+
return index < this.index || index > this.index + this.itemsCount;
|
|
270
|
+
};
|
|
387
271
|
TuiCarouselComponent.prototype.onIntersection = function (_a, index) {
|
|
388
|
-
var intersectionRatio = _a.intersectionRatio
|
|
389
|
-
if (!this.
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
272
|
+
var intersectionRatio = _a.intersectionRatio;
|
|
273
|
+
if (intersectionRatio && intersectionRatio !== 1 && !this.transitioned) {
|
|
274
|
+
this.updateIndex(index - Math.floor(this.itemsCount / 2));
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
TuiCarouselComponent.prototype.onScroll = function (delta) {
|
|
278
|
+
if (!this.isMobile) {
|
|
279
|
+
this.updateIndex(this.index + delta);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
TuiCarouselComponent.prototype.onPan = function (x) {
|
|
283
|
+
if (!this.computedDraggable) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
var clientWidth = this.elementRef.nativeElement.clientWidth;
|
|
287
|
+
var min = 1 - this.items.length / this.itemsCount;
|
|
288
|
+
this.translate = cdk.clamp(x / clientWidth + this.translate, min, 0);
|
|
289
|
+
};
|
|
290
|
+
TuiCarouselComponent.prototype.onSwipe = function (direction) {
|
|
291
|
+
if (Math.round(this.translate) !== -this.index || !this.computedDraggable) {
|
|
394
292
|
return;
|
|
395
293
|
}
|
|
396
|
-
|
|
294
|
+
else if (direction === 'left') {
|
|
295
|
+
this.next();
|
|
296
|
+
}
|
|
297
|
+
else if (direction === 'right') {
|
|
298
|
+
this.prev();
|
|
299
|
+
}
|
|
397
300
|
};
|
|
398
|
-
TuiCarouselComponent.prototype.
|
|
399
|
-
this.
|
|
301
|
+
TuiCarouselComponent.prototype.onAutoscroll = function () {
|
|
302
|
+
this.updateIndex(this.index === this.items.length - 1 ? 0 : this.index + 1);
|
|
400
303
|
};
|
|
401
|
-
TuiCarouselComponent.prototype
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
304
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "computedTranslate", {
|
|
305
|
+
get: function () {
|
|
306
|
+
return -this.index / this.itemsCount;
|
|
307
|
+
},
|
|
308
|
+
enumerable: true,
|
|
309
|
+
configurable: true
|
|
310
|
+
});
|
|
311
|
+
Object.defineProperty(TuiCarouselComponent.prototype, "computedDraggable", {
|
|
312
|
+
get: function () {
|
|
313
|
+
return this.isMobile || this.draggable;
|
|
314
|
+
},
|
|
315
|
+
enumerable: true,
|
|
316
|
+
configurable: true
|
|
317
|
+
});
|
|
318
|
+
TuiCarouselComponent.prototype.updateIndex = function (index) {
|
|
319
|
+
this.index = cdk.clamp(index, 0, this.items.length - 1);
|
|
320
|
+
this.indexChange.emit(this.index);
|
|
321
|
+
this.changeDetectorRef.markForCheck();
|
|
405
322
|
};
|
|
406
323
|
TuiCarouselComponent.ctorParameters = function () { return [
|
|
407
|
-
{ type:
|
|
408
|
-
{ type:
|
|
324
|
+
{ type: core.ChangeDetectorRef, decorators: [{ type: core.Inject, args: [core.ChangeDetectorRef,] }] },
|
|
325
|
+
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
326
|
+
{ type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_MOBILE,] }] }
|
|
409
327
|
]; };
|
|
328
|
+
__decorate([
|
|
329
|
+
core.Input(),
|
|
330
|
+
core.HostBinding('class._draggable'),
|
|
331
|
+
cdk.tuiDefaultProp()
|
|
332
|
+
], TuiCarouselComponent.prototype, "draggable", void 0);
|
|
410
333
|
__decorate([
|
|
411
334
|
core.Input(),
|
|
412
335
|
cdk.tuiDefaultProp()
|
|
@@ -421,13 +344,22 @@
|
|
|
421
344
|
__decorate([
|
|
422
345
|
core.ContentChildren(cdk.TuiItemDirective, { read: core.TemplateRef })
|
|
423
346
|
], TuiCarouselComponent.prototype, "items", void 0);
|
|
347
|
+
__decorate([
|
|
348
|
+
core.HostBinding('class._transitioned')
|
|
349
|
+
], TuiCarouselComponent.prototype, "transitioned", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
core.HostListener('touchstart', ['false']),
|
|
352
|
+
core.HostListener('touchend', ['true']),
|
|
353
|
+
core.HostListener('mousedown', ['false']),
|
|
354
|
+
core.HostListener('document:mouseup.silent', ['true'])
|
|
355
|
+
], TuiCarouselComponent.prototype, "onTransitioned", null);
|
|
424
356
|
__decorate([
|
|
425
357
|
cdk.tuiPure
|
|
426
358
|
], TuiCarouselComponent.prototype, "getStyle", null);
|
|
427
359
|
TuiCarouselComponent = __decorate([
|
|
428
360
|
core.Component({
|
|
429
361
|
selector: 'tui-carousel',
|
|
430
|
-
template: "<ng-container *ngIf=\"items.changes | async\"></ng-container>\n<div
|
|
362
|
+
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",
|
|
431
363
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
432
364
|
providers: [
|
|
433
365
|
{
|
|
@@ -435,15 +367,70 @@
|
|
|
435
367
|
useExisting: core.ElementRef,
|
|
436
368
|
},
|
|
437
369
|
],
|
|
438
|
-
styles: [":host{
|
|
370
|
+
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}"]
|
|
439
371
|
}),
|
|
440
|
-
__param(0, core.
|
|
441
|
-
__param(
|
|
442
|
-
__param(
|
|
372
|
+
__param(0, core.Inject(core.ChangeDetectorRef)),
|
|
373
|
+
__param(1, core.Inject(core.ElementRef)),
|
|
374
|
+
__param(2, core.Inject(cdk.TUI_IS_MOBILE))
|
|
443
375
|
], TuiCarouselComponent);
|
|
444
376
|
return TuiCarouselComponent;
|
|
445
377
|
}());
|
|
446
378
|
|
|
379
|
+
var TuiCarouselDirective = /** @class */ (function (_super) {
|
|
380
|
+
__extends(TuiCarouselDirective, _super);
|
|
381
|
+
function TuiCarouselDirective(elementRef, visible$) {
|
|
382
|
+
var _this = _super.call(this, function (subscriber) { return _this.output$.subscribe(subscriber); }) || this;
|
|
383
|
+
_this.elementRef = elementRef;
|
|
384
|
+
_this.visible$ = visible$;
|
|
385
|
+
_this.duration$ = new rxjs.BehaviorSubject(0);
|
|
386
|
+
_this.running$ = rxjs.merge(cdk.typedFromEvent(_this.elementRef.nativeElement, 'mouseenter').pipe(operators.mapTo(false)), cdk.typedFromEvent(_this.elementRef.nativeElement, 'touchstart').pipe(operators.mapTo(false)), cdk.typedFromEvent(_this.elementRef.nativeElement, 'touchend').pipe(operators.mapTo(true)), cdk.typedFromEvent(_this.elementRef.nativeElement, 'mouseleave').pipe(operators.mapTo(true)), _this.visible$);
|
|
387
|
+
_this.output$ = rxjs.combineLatest([_this.duration$, _this.running$]).pipe(operators.switchMap(function (_a) {
|
|
388
|
+
var _b = __read(_a, 2), duration = _b[0], running = _b[1];
|
|
389
|
+
return duration && running ? rxjs.interval(duration) : rxjs.EMPTY;
|
|
390
|
+
}));
|
|
391
|
+
return _this;
|
|
392
|
+
}
|
|
393
|
+
Object.defineProperty(TuiCarouselDirective.prototype, "duration", {
|
|
394
|
+
set: function (duration) {
|
|
395
|
+
this.duration$.next(duration);
|
|
396
|
+
},
|
|
397
|
+
enumerable: true,
|
|
398
|
+
configurable: true
|
|
399
|
+
});
|
|
400
|
+
TuiCarouselDirective.ctorParameters = function () { return [
|
|
401
|
+
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
402
|
+
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [common.PAGE_VISIBILITY,] }] }
|
|
403
|
+
]; };
|
|
404
|
+
__decorate([
|
|
405
|
+
core.Input()
|
|
406
|
+
], TuiCarouselDirective.prototype, "duration", null);
|
|
407
|
+
TuiCarouselDirective = __decorate([
|
|
408
|
+
core.Directive({
|
|
409
|
+
selector: 'tui-carousel',
|
|
410
|
+
}),
|
|
411
|
+
__param(0, core.Inject(core.ElementRef)),
|
|
412
|
+
__param(1, core.Inject(common.PAGE_VISIBILITY))
|
|
413
|
+
], TuiCarouselDirective);
|
|
414
|
+
return TuiCarouselDirective;
|
|
415
|
+
}(rxjs.Observable));
|
|
416
|
+
|
|
417
|
+
var TuiCarouselAutoscrollDirective = /** @class */ (function () {
|
|
418
|
+
function TuiCarouselAutoscrollDirective(tuiCarouselAutoscroll) {
|
|
419
|
+
this.tuiCarouselAutoscroll = tuiCarouselAutoscroll;
|
|
420
|
+
}
|
|
421
|
+
TuiCarouselAutoscrollDirective.ctorParameters = function () { return [
|
|
422
|
+
{ type: rxjs.Observable, decorators: [{ type: core.Inject, args: [TuiCarouselDirective,] }] }
|
|
423
|
+
]; };
|
|
424
|
+
TuiCarouselAutoscrollDirective = __decorate([
|
|
425
|
+
core.Directive({
|
|
426
|
+
selector: '[tuiCarouselAutoscroll]',
|
|
427
|
+
outputs: ['tuiCarouselAutoscroll'],
|
|
428
|
+
}),
|
|
429
|
+
__param(0, core.Inject(TuiCarouselDirective))
|
|
430
|
+
], TuiCarouselAutoscrollDirective);
|
|
431
|
+
return TuiCarouselAutoscrollDirective;
|
|
432
|
+
}());
|
|
433
|
+
|
|
447
434
|
// TODO: remove in ivy compilation
|
|
448
435
|
var CAROUSEL_BUTTON_OPTIONS = {
|
|
449
436
|
appearance: "secondary" /* Secondary */,
|
|
@@ -467,78 +454,33 @@
|
|
|
467
454
|
return TuiCarouselButtonsDirective;
|
|
468
455
|
}());
|
|
469
456
|
|
|
470
|
-
function
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
// @dynamic
|
|
475
|
-
var TuiCarouselScrollerDirective = /** @class */ (function () {
|
|
476
|
-
function TuiCarouselScrollerDirective(draggable, isMobile, directive, elementRef, root) {
|
|
477
|
-
this.draggable = draggable;
|
|
478
|
-
this.isMobile = isMobile;
|
|
479
|
-
this.directive = directive;
|
|
457
|
+
var TuiCarouselScrollDirective = /** @class */ (function () {
|
|
458
|
+
function TuiCarouselScrollDirective(elementRef) {
|
|
459
|
+
var _this = this;
|
|
480
460
|
this.elementRef = elementRef;
|
|
481
|
-
this.
|
|
482
|
-
|
|
483
|
-
|
|
461
|
+
this.tuiCarouselScroll = cdk.typedFromEvent(this.elementRef.nativeElement, 'wheel').pipe(operators.filter(function (_a) {
|
|
462
|
+
var deltaX = _a.deltaX;
|
|
463
|
+
return Math.abs(deltaX) > 20;
|
|
464
|
+
}), operators.throttleTime(500), operators.map(function (_a) {
|
|
465
|
+
var deltaX = _a.deltaX;
|
|
466
|
+
return Math.sign(deltaX);
|
|
467
|
+
}),
|
|
468
|
+
// So we always have space to scroll and overflow-behavior saves us from back nav
|
|
469
|
+
operators.tap(function () { return (_this.elementRef.nativeElement.scrollLeft = 10); }));
|
|
484
470
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
if (scroll) {
|
|
488
|
-
this.scrollTo(this.directive.inited ? 'smooth' : 'auto');
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
enumerable: true,
|
|
492
|
-
configurable: true
|
|
493
|
-
});
|
|
494
|
-
TuiCarouselScrollerDirective.prototype.onMouseUp = function (_e) {
|
|
495
|
-
var left = this.root.nativeElement.getBoundingClientRect().left;
|
|
496
|
-
var rect = this.elementRef.nativeElement.getBoundingClientRect();
|
|
497
|
-
var parentElement = this.elementRef.nativeElement.parentElement;
|
|
498
|
-
parentElement.style.transform = "translateX(" + (rect.left - left) + "px)";
|
|
499
|
-
this.scrollTo();
|
|
500
|
-
};
|
|
501
|
-
TuiCarouselScrollerDirective.prototype.scrollTo = function (behavior) {
|
|
502
|
-
if (behavior === void 0) { behavior = 'auto'; }
|
|
503
|
-
this.directive.inited = true;
|
|
504
|
-
this.root.nativeElement.scrollTo({
|
|
505
|
-
left: this.elementRef.nativeElement.offsetLeft,
|
|
506
|
-
behavior: behavior,
|
|
507
|
-
});
|
|
508
|
-
};
|
|
509
|
-
TuiCarouselScrollerDirective.ctorParameters = function () { return [
|
|
510
|
-
{ type: TuiCarouselDraggableDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TuiCarouselDraggableDirective,] }] },
|
|
511
|
-
{ type: Boolean, decorators: [{ type: core.Inject, args: [cdk.TUI_IS_MOBILE,] }] },
|
|
512
|
-
{ type: TuiCarouselDirective, decorators: [{ type: core.Inject, args: [TuiCarouselDirective,] }] },
|
|
513
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] },
|
|
514
|
-
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [intersectionObserver.INTERSECTION_ROOT,] }] }
|
|
471
|
+
TuiCarouselScrollDirective.ctorParameters = function () { return [
|
|
472
|
+
{ type: core.ElementRef, decorators: [{ type: core.Inject, args: [core.ElementRef,] }] }
|
|
515
473
|
]; };
|
|
516
474
|
__decorate([
|
|
517
|
-
core.
|
|
518
|
-
],
|
|
519
|
-
__decorate([
|
|
520
|
-
core.Input()
|
|
521
|
-
], TuiCarouselScrollerDirective.prototype, "index", void 0);
|
|
522
|
-
__decorate([
|
|
523
|
-
core.Input()
|
|
524
|
-
], TuiCarouselScrollerDirective.prototype, "current", void 0);
|
|
525
|
-
__decorate([
|
|
526
|
-
core.HostListener('document:mouseup.init', ['$event']),
|
|
527
|
-
core.HostListener('document:mouseup.silent', ['$event']),
|
|
528
|
-
ngEventPlugins.shouldCall(shouldScroll)
|
|
529
|
-
], TuiCarouselScrollerDirective.prototype, "onMouseUp", null);
|
|
530
|
-
TuiCarouselScrollerDirective = __decorate([
|
|
475
|
+
core.Output()
|
|
476
|
+
], TuiCarouselScrollDirective.prototype, "tuiCarouselScroll", void 0);
|
|
477
|
+
TuiCarouselScrollDirective = __decorate([
|
|
531
478
|
core.Directive({
|
|
532
|
-
selector: '[
|
|
479
|
+
selector: '[tuiCarouselScroll]',
|
|
533
480
|
}),
|
|
534
|
-
__param(0, core.
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
__param(2, core.Inject(TuiCarouselDirective)),
|
|
538
|
-
__param(3, core.Inject(core.ElementRef)),
|
|
539
|
-
__param(4, core.Inject(intersectionObserver.INTERSECTION_ROOT))
|
|
540
|
-
], TuiCarouselScrollerDirective);
|
|
541
|
-
return TuiCarouselScrollerDirective;
|
|
481
|
+
__param(0, core.Inject(core.ElementRef))
|
|
482
|
+
], TuiCarouselScrollDirective);
|
|
483
|
+
return TuiCarouselScrollDirective;
|
|
542
484
|
}());
|
|
543
485
|
|
|
544
486
|
var TuiCarouselModule = /** @class */ (function () {
|
|
@@ -546,19 +488,24 @@
|
|
|
546
488
|
}
|
|
547
489
|
TuiCarouselModule = __decorate([
|
|
548
490
|
core.NgModule({
|
|
549
|
-
imports: [
|
|
491
|
+
imports: [
|
|
492
|
+
common$1.CommonModule,
|
|
493
|
+
intersectionObserver.IntersectionObserverModule,
|
|
494
|
+
cdk.TuiPanModule,
|
|
495
|
+
cdk.TuiSwipeModule,
|
|
496
|
+
cdk.TuiItemModule,
|
|
497
|
+
],
|
|
550
498
|
declarations: [
|
|
551
499
|
TuiCarouselComponent,
|
|
552
500
|
TuiCarouselDirective,
|
|
553
|
-
TuiCarouselScrollerDirective,
|
|
554
|
-
TuiCarouselDraggableDirective,
|
|
555
501
|
TuiCarouselButtonsDirective,
|
|
502
|
+
TuiCarouselAutoscrollDirective,
|
|
503
|
+
TuiCarouselScrollDirective,
|
|
556
504
|
],
|
|
557
505
|
exports: [
|
|
558
506
|
TuiCarouselComponent,
|
|
559
507
|
TuiCarouselDirective,
|
|
560
508
|
TuiCarouselButtonsDirective,
|
|
561
|
-
TuiCarouselDraggableDirective,
|
|
562
509
|
cdk.TuiItemDirective,
|
|
563
510
|
],
|
|
564
511
|
})
|
|
@@ -567,13 +514,12 @@
|
|
|
567
514
|
}());
|
|
568
515
|
|
|
569
516
|
exports.CAROUSEL_BUTTON_OPTIONS = CAROUSEL_BUTTON_OPTIONS;
|
|
517
|
+
exports.TuiCarouselAutoscrollDirective = TuiCarouselAutoscrollDirective;
|
|
570
518
|
exports.TuiCarouselButtonsDirective = TuiCarouselButtonsDirective;
|
|
571
519
|
exports.TuiCarouselComponent = TuiCarouselComponent;
|
|
572
520
|
exports.TuiCarouselDirective = TuiCarouselDirective;
|
|
573
|
-
exports.TuiCarouselDraggableDirective = TuiCarouselDraggableDirective;
|
|
574
521
|
exports.TuiCarouselModule = TuiCarouselModule;
|
|
575
|
-
exports.
|
|
576
|
-
exports.shouldScroll = shouldScroll;
|
|
522
|
+
exports.TuiCarouselScrollDirective = TuiCarouselScrollDirective;
|
|
577
523
|
|
|
578
524
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
579
525
|
|