@taiga-ui/kit 2.23.0 → 2.27.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 +7 -3
- 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 +9 -9
- 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 +24 -8
- 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 +4 -4
- 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-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +8 -8
- 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 +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 +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 +527 -0
- package/bundles/taiga-ui-kit-components-carousel.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-carousel.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-carousel.umd.min.js.map +1 -0
- 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 +19 -20
- 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 +9 -9
- 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.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.js +9 -9
- 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 +5 -5
- 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 +4 -4
- 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 +17 -14
- 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 +1 -1
- 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 +21 -18
- 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 +18 -15
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js +191 -191
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +6 -5
- 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 +18 -32
- 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 +4 -4
- 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 +23 -23
- 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 +7 -7
- 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-range.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +4 -4
- 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 +32 -32
- 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 +17 -17
- 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-island.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-island.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js +12 -12
- package/bundles/taiga-ui-kit-components-line-clamp.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-line-clamp.umd.min.js +2 -2
- 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-option.umd.js +16 -12
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +20 -20
- 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 +5 -5
- 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 +330 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-progress.umd.js +61 -25
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
- 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-range.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +23 -14
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +10 -13
- 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-slider.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +19 -19
- 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 +23 -23
- 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-tag.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +5 -5
- 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 +4 -4
- 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 +148 -137
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.js +42 -26
- package/bundles/taiga-ui-kit-components.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components.umd.min.js +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-hover.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-hover.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js +3 -2
- 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 +7 -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-directives-project-class.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-project-class.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-unfinished-validator.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-value-accessor.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives.umd.js +12 -12
- package/bundles/taiga-ui-kit-directives.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js +3 -3
- 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-filter-by-input.umd.js +21 -21
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.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 +14 -14
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +0 -2
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.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/arrow/taiga-ui-kit-components-arrow.metadata.json +1 -1
- package/components/avatar/taiga-ui-kit-components-avatar.metadata.json +1 -1
- package/components/badge/taiga-ui-kit-components-badge.metadata.json +1 -1
- package/components/badged-content/taiga-ui-kit-components-badged-content.metadata.json +1 -1
- package/components/breadcrumbs/index.d.ts +1 -1
- package/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.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-buttons.directive.d.ts +4 -0
- package/components/carousel/carousel-scroll.directive.d.ts +6 -0
- package/components/carousel/carousel.component.d.ts +29 -0
- package/components/carousel/carousel.directive.d.ts +11 -0
- package/components/carousel/carousel.module.d.ts +2 -0
- package/components/carousel/index.d.ts +6 -0
- package/components/carousel/package.json +13 -0
- package/components/carousel/taiga-ui-kit-components-carousel.d.ts +4 -0
- package/components/carousel/taiga-ui-kit-components-carousel.metadata.json +1 -0
- 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/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/index.d.ts +5 -3
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- package/components/input-date-time/taiga-ui-kit-components-input-date-time.metadata.json +1 -1
- package/components/input-file/index.d.ts +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/index.d.ts +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/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-range/taiga-ui-kit-components-input-range.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 +11 -11
- 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/island/taiga-ui-kit-components-island.metadata.json +1 -1
- package/components/line-clamp/index.d.ts +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/multi-select-option/multi-select-option.component.d.ts +1 -1
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.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/index.d.ts +5 -0
- package/components/pdf-viewer/package.json +13 -0
- package/components/pdf-viewer/pdf-viewer-options.d.ts +6 -0
- package/components/pdf-viewer/pdf-viewer.component.d.ts +17 -0
- package/components/pdf-viewer/pdf-viewer.directive.d.ts +4 -0
- package/components/pdf-viewer/pdf-viewer.module.d.ts +2 -0
- package/components/pdf-viewer/pdf-viewer.service.d.ts +13 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +4 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -0
- package/components/progress/index.d.ts +4 -2
- package/components/progress/pipes/abstract-color-segments.d.ts +9 -0
- package/components/progress/pipes/progress-color-segments-async.pipe.d.ts +5 -0
- package/components/progress/pipes/progress-color-segments.pipe.d.ts +7 -6
- 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/range/taiga-ui-kit-components-range.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/select-option/select-option.component.d.ts +4 -2
- package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
- package/components/slider/taiga-ui-kit-components-slider.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/index.d.ts +2 -2
- 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/tag/taiga-ui-kit-components-tag.metadata.json +1 -1
- package/components/taiga-ui-kit-components.metadata.json +1 -1
- 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/index.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 +7 -2
- 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/index.d.ts +4 -4
- package/components/tree/taiga-ui-kit-components-tree.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-hover/taiga-ui-kit-directives-dropdown-hover.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 -1
- package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
- package/directives/index.d.ts +1 -1
- package/directives/lazy-loading/lazy-loading.directive.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/directives/project-class/taiga-ui-kit-directives-project-class.metadata.json +1 -1
- package/directives/taiga-ui-kit-directives.metadata.json +1 -1
- package/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.metadata.json +1 -1
- package/directives/value-accessor/taiga-ui-kit-directives-value-accessor.metadata.json +1 -1
- package/esm2015/abstract/input-slider.js +2 -2
- 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.component.js +2 -2
- package/esm2015/components/accordion/accordion.module.js +6 -3
- package/esm2015/components/accordion/index.js +2 -1
- package/esm2015/components/action/action.component.js +5 -5
- package/esm2015/components/arrow/arrow.module.js +1 -1
- package/esm2015/components/avatar/avatar.component.js +2 -2
- package/esm2015/components/avatar/avatar.module.js +1 -1
- package/esm2015/components/badge/badge.component.js +2 -2
- package/esm2015/components/badge/badge.module.js +1 -1
- package/esm2015/components/badged-content/badged-content.component.js +1 -1
- package/esm2015/components/badged-content/badged-content.module.js +1 -1
- package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/esm2015/components/breadcrumbs/breadcrumbs.module.js +2 -2
- package/esm2015/components/breadcrumbs/index.js +2 -2
- package/esm2015/components/calendar-month/calendar-month.component.js +7 -7
- package/esm2015/components/calendar-month/calendar-month.module.js +1 -1
- package/esm2015/components/calendar-range/calendar-range.component.js +2 -2
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
- package/esm2015/components/carousel/carousel-buttons.directive.js +24 -0
- package/esm2015/components/carousel/carousel-scroll.directive.js +26 -0
- package/esm2015/components/carousel/carousel.component.js +144 -0
- package/esm2015/components/carousel/carousel.directive.js +35 -0
- package/esm2015/components/carousel/carousel.module.js +38 -0
- package/esm2015/components/carousel/index.js +7 -0
- package/esm2015/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
- package/esm2015/components/checkbox/checkbox.component.js +4 -4
- package/esm2015/components/checkbox/checkbox.module.js +1 -1
- 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 +20 -21
- package/esm2015/components/combo-box/combo-box.module.js +1 -1
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +9 -9
- package/esm2015/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
- package/esm2015/components/field-error/field-error.module.js +1 -1
- package/esm2015/components/filter/filter.component.js +10 -10
- package/esm2015/components/filter/filter.module.js +1 -1
- package/esm2015/components/index.js +6 -4
- package/esm2015/components/input/input.component.js +8 -8
- package/esm2015/components/input/input.module.js +1 -1
- package/esm2015/components/input/input.providers.js +1 -1
- package/esm2015/components/input-copy/input-copy.component.js +6 -6
- package/esm2015/components/input-copy/input-copy.module.js +1 -1
- package/esm2015/components/input-count/input-count.component.js +5 -5
- package/esm2015/components/input-count/input-count.module.js +1 -1
- package/esm2015/components/input-date/input-date.component.js +19 -16
- package/esm2015/components/input-date/input-date.module.js +1 -1
- package/esm2015/components/input-date-range/input-date-range.component.js +18 -15
- package/esm2015/components/input-date-range/input-date-range.module.js +1 -1
- package/esm2015/components/input-date-time/input-date-time.component.js +21 -18
- package/esm2015/components/input-date-time/input-date-time.module.js +1 -1
- package/esm2015/components/input-file/file/file.component.js +2 -2
- package/esm2015/components/input-file/index.js +2 -2
- package/esm2015/components/input-file/input-file.component.js +3 -3
- package/esm2015/components/input-file/input-file.module.js +1 -1
- package/esm2015/components/input-inline/input-inline.component.js +7 -6
- package/esm2015/components/input-inline/input-inline.module.js +1 -1
- 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 +18 -28
- package/esm2015/components/input-number/input-number.module.js +1 -1
- package/esm2015/components/input-password/index.js +2 -2
- package/esm2015/components/input-password/input-password.component.js +5 -5
- package/esm2015/components/input-password/input-password.module.js +1 -1
- package/esm2015/components/input-phone/input-phone.component.js +8 -8
- package/esm2015/components/input-phone/input-phone.module.js +1 -1
- package/esm2015/components/input-phone-international/const/countries.js +1 -1
- package/esm2015/components/input-phone-international/input-phone-international.component.js +21 -21
- package/esm2015/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm2015/components/input-range/input-range.component.js +3 -3
- package/esm2015/components/input-slider/input-slider.component.js +5 -5
- package/esm2015/components/input-tag/input-tag.component.js +33 -33
- package/esm2015/components/input-tag/input-tag.module.js +1 -1
- package/esm2015/components/input-time/input-time.component.js +18 -18
- package/esm2015/components/input-time/input-time.module.js +1 -1
- package/esm2015/components/island/island.module.js +1 -1
- package/esm2015/components/line-clamp/index.js +2 -2
- package/esm2015/components/line-clamp/line-clamp.component.js +9 -9
- package/esm2015/components/line-clamp/line-clamp.module.js +1 -1
- package/esm2015/components/marker-icon/marker-icon.component.js +2 -2
- package/esm2015/components/marker-icon/marker-icon.module.js +1 -1
- package/esm2015/components/multi-select/hide-selected.pipe.js +1 -1
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +6 -6
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm2015/components/multi-select/multi-select.component.js +16 -16
- package/esm2015/components/multi-select/multi-select.module.js +2 -2
- package/esm2015/components/multi-select-option/multi-select-option.component.js +8 -10
- package/esm2015/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm2015/components/pagination/pagination.component.js +6 -6
- package/esm2015/components/pagination/pagination.module.js +1 -1
- package/esm2015/components/pdf-viewer/index.js +5 -0
- package/esm2015/components/pdf-viewer/pdf-viewer-options.js +1 -0
- package/esm2015/components/pdf-viewer/pdf-viewer.component.js +36 -0
- package/esm2015/components/pdf-viewer/pdf-viewer.directive.js +21 -0
- package/esm2015/components/pdf-viewer/pdf-viewer.module.js +28 -0
- package/esm2015/components/pdf-viewer/pdf-viewer.service.js +27 -0
- package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
- package/esm2015/components/progress/index.js +5 -3
- package/esm2015/components/progress/pipes/abstract-color-segments.js +32 -0
- package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +15 -0
- package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +12 -28
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +5 -5
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +1 -1
- package/esm2015/components/progress/progress.module.js +4 -1
- package/esm2015/components/radio/radio.component.js +4 -4
- package/esm2015/components/radio/radio.module.js +1 -1
- 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-group/radio-group.module.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/range/range.component.js +2 -2
- package/esm2015/components/range/range.module.js +1 -1
- package/esm2015/components/select/select.component.js +11 -14
- package/esm2015/components/select/select.module.js +1 -1
- package/esm2015/components/select-option/select-option.component.js +20 -12
- package/esm2015/components/select-option/select-option.module.js +1 -1
- package/esm2015/components/slider/slider.component.js +2 -2
- package/esm2015/components/slider/slider.module.js +1 -1
- package/esm2015/components/stepper/step/step.component.js +2 -2
- package/esm2015/components/stepper/stepper.component.js +18 -18
- package/esm2015/components/stepper/stepper.module.js +1 -1
- package/esm2015/components/tabs/index.js +3 -3
- package/esm2015/components/tabs/tab/tab.component.js +1 -1
- package/esm2015/components/tabs/tabs/tabs.component.js +16 -16
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
- package/esm2015/components/tabs/tabs.module.js +2 -2
- package/esm2015/components/tabs/underline/underline.component.js +3 -3
- package/esm2015/components/tag/tag.component.js +2 -2
- package/esm2015/components/tag/tag.module.js +1 -1
- package/esm2015/components/text-area/text-area.component.js +6 -6
- package/esm2015/components/text-area/text-area.module.js +1 -1
- package/esm2015/components/text-area/text-area.providers.js +1 -1
- package/esm2015/components/toggle/index.js +2 -2
- package/esm2015/components/toggle/toggle.component.js +5 -5
- package/esm2015/components/toggle/toggle.module.js +1 -1
- package/esm2015/components/tree/components/tree/tree.component.js +16 -3
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +10 -10
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +1 -1
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +5 -6
- package/esm2015/components/tree/directives/tree-controller.directive.js +1 -1
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +2 -2
- package/esm2015/components/tree/directives/tree-node.directive.js +1 -1
- package/esm2015/components/tree/index.js +4 -4
- package/esm2015/components/tree/misc/tree.constants.js +1 -1
- package/esm2015/components/tree/misc/tree.interfaces.js +1 -1
- package/esm2015/components/tree/misc/tree.service.js +1 -1
- package/esm2015/components/tree/misc/tree.tokens.js +1 -1
- package/esm2015/components/tree/tree.module.js +3 -3
- package/esm2015/directives/dropdown-context/dropdown-context.directive.js +3 -5
- package/esm2015/directives/dropdown-context/dropdown-context.module.js +1 -1
- package/esm2015/directives/dropdown-hover/dropdown-hover.module.js +1 -1
- package/esm2015/directives/dropdown-selection/dropdown-selection.directive.js +4 -3
- package/esm2015/directives/dropdown-selection/dropdown-selection.module.js +1 -1
- package/esm2015/directives/highlight/highlight.directive.js +8 -3
- package/esm2015/directives/highlight/highlight.module.js +1 -1
- package/esm2015/directives/index.js +2 -2
- package/esm2015/directives/lazy-loading/lazy-loading.directive.js +4 -2
- package/esm2015/directives/lazy-loading/lazy-loading.module.js +1 -1
- package/esm2015/directives/present/present.directive.js +1 -1
- package/esm2015/directives/present/present.module.js +1 -1
- package/esm2015/directives/project-class/project-class.module.js +1 -1
- package/esm2015/directives/unfinished-validator/unfinished-validator.module.js +1 -1
- package/esm2015/directives/value-accessor/value-accessor.module.js +1 -1
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.component.js +3 -3
- package/esm2015/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
- package/esm2015/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
- package/esm2015/pipes/filter-by-input/filter-by-input.module.js +2 -2
- package/esm2015/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
- package/esm2015/pipes/stringify/stringify.module.js +1 -1
- package/esm2015/pipes/stringify-content/stringify-content.module.js +1 -1
- package/esm2015/tokens/index.js +2 -2
- package/esm2015/utils/format/string-hash-to-hsl.js +1 -3
- package/esm2015/utils/mask/index.js +2 -2
- package/esm5/abstract/input-slider.js +2 -2
- 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.component.js +2 -2
- package/esm5/components/accordion/accordion.module.js +6 -3
- package/esm5/components/accordion/index.js +2 -1
- package/esm5/components/action/action.component.js +5 -5
- package/esm5/components/arrow/arrow.module.js +1 -1
- package/esm5/components/avatar/avatar.component.js +2 -2
- package/esm5/components/avatar/avatar.module.js +1 -1
- package/esm5/components/badge/badge.component.js +2 -2
- package/esm5/components/badge/badge.module.js +1 -1
- package/esm5/components/badged-content/badged-content.component.js +1 -1
- package/esm5/components/badged-content/badged-content.module.js +1 -1
- package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm5/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/esm5/components/breadcrumbs/breadcrumbs.module.js +2 -2
- package/esm5/components/breadcrumbs/index.js +2 -2
- package/esm5/components/calendar-month/calendar-month.component.js +9 -9
- package/esm5/components/calendar-month/calendar-month.module.js +1 -1
- package/esm5/components/calendar-range/calendar-range.component.js +2 -2
- package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
- package/esm5/components/carousel/carousel-buttons.directive.js +27 -0
- package/esm5/components/carousel/carousel-scroll.directive.js +34 -0
- package/esm5/components/carousel/carousel.component.js +158 -0
- package/esm5/components/carousel/carousel.directive.js +45 -0
- package/esm5/components/carousel/carousel.module.js +41 -0
- package/esm5/components/carousel/index.js +7 -0
- package/esm5/components/carousel/taiga-ui-kit-components-carousel.js +5 -0
- package/esm5/components/checkbox/checkbox.component.js +4 -4
- package/esm5/components/checkbox/checkbox.module.js +1 -1
- 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 +20 -21
- package/esm5/components/combo-box/combo-box.module.js +1 -1
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +9 -9
- package/esm5/components/data-list-wrapper/data-list-wrapper.module.js +1 -1
- package/esm5/components/field-error/field-error.module.js +1 -1
- package/esm5/components/filter/filter.component.js +10 -10
- package/esm5/components/filter/filter.module.js +1 -1
- package/esm5/components/index.js +6 -4
- package/esm5/components/input/input.component.js +8 -8
- package/esm5/components/input/input.module.js +1 -1
- package/esm5/components/input/input.providers.js +1 -1
- package/esm5/components/input-copy/input-copy.component.js +6 -6
- package/esm5/components/input-copy/input-copy.module.js +1 -1
- package/esm5/components/input-count/input-count.component.js +5 -5
- package/esm5/components/input-count/input-count.module.js +1 -1
- package/esm5/components/input-date/input-date.component.js +19 -16
- package/esm5/components/input-date/input-date.module.js +1 -1
- package/esm5/components/input-date-range/input-date-range.component.js +18 -15
- package/esm5/components/input-date-range/input-date-range.module.js +1 -1
- package/esm5/components/input-date-time/input-date-time.component.js +22 -19
- package/esm5/components/input-date-time/input-date-time.module.js +1 -1
- package/esm5/components/input-file/file/file.component.js +2 -2
- package/esm5/components/input-file/index.js +2 -2
- package/esm5/components/input-file/input-file.component.js +3 -3
- package/esm5/components/input-file/input-file.module.js +1 -1
- package/esm5/components/input-inline/input-inline.component.js +7 -6
- package/esm5/components/input-inline/input-inline.module.js +1 -1
- 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 +19 -33
- package/esm5/components/input-number/input-number.module.js +1 -1
- package/esm5/components/input-password/index.js +2 -2
- package/esm5/components/input-password/input-password.component.js +5 -5
- package/esm5/components/input-password/input-password.module.js +1 -1
- package/esm5/components/input-phone/input-phone.component.js +8 -8
- package/esm5/components/input-phone/input-phone.module.js +1 -1
- package/esm5/components/input-phone-international/const/countries.js +1 -1
- package/esm5/components/input-phone-international/input-phone-international.component.js +24 -24
- package/esm5/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm5/components/input-range/input-range.component.js +3 -3
- package/esm5/components/input-slider/input-slider.component.js +5 -5
- package/esm5/components/input-tag/input-tag.component.js +33 -33
- package/esm5/components/input-tag/input-tag.module.js +1 -1
- package/esm5/components/input-time/input-time.component.js +18 -18
- package/esm5/components/input-time/input-time.module.js +1 -1
- package/esm5/components/island/island.module.js +1 -1
- package/esm5/components/line-clamp/index.js +2 -2
- package/esm5/components/line-clamp/line-clamp.component.js +9 -9
- package/esm5/components/line-clamp/line-clamp.module.js +1 -1
- package/esm5/components/marker-icon/marker-icon.component.js +2 -2
- package/esm5/components/marker-icon/marker-icon.module.js +1 -1
- package/esm5/components/multi-select/hide-selected.pipe.js +1 -1
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +6 -6
- package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm5/components/multi-select/multi-select.component.js +16 -16
- package/esm5/components/multi-select/multi-select.module.js +2 -2
- package/esm5/components/multi-select-option/multi-select-option.component.js +14 -11
- package/esm5/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm5/components/pagination/pagination.component.js +6 -6
- package/esm5/components/pagination/pagination.module.js +1 -1
- package/esm5/components/pdf-viewer/index.js +5 -0
- package/esm5/components/pdf-viewer/pdf-viewer-options.js +1 -0
- package/esm5/components/pdf-viewer/pdf-viewer.component.js +37 -0
- package/esm5/components/pdf-viewer/pdf-viewer.directive.js +26 -0
- package/esm5/components/pdf-viewer/pdf-viewer.module.js +31 -0
- package/esm5/components/pdf-viewer/pdf-viewer.service.js +31 -0
- package/esm5/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
- package/esm5/components/progress/index.js +5 -3
- package/esm5/components/progress/pipes/abstract-color-segments.js +35 -0
- package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +21 -0
- package/esm5/components/progress/pipes/progress-color-segments.pipe.js +16 -30
- package/esm5/components/progress/progress-circle/progress-circle.component.js +5 -5
- package/esm5/components/progress/progress-segmented/progress-segmented.component.js +1 -1
- package/esm5/components/progress/progress.module.js +4 -1
- package/esm5/components/radio/radio.component.js +4 -4
- package/esm5/components/radio/radio.module.js +1 -1
- 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-group/radio-group.module.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/range/range.component.js +2 -2
- package/esm5/components/range/range.module.js +1 -1
- package/esm5/components/select/select.component.js +11 -14
- package/esm5/components/select/select.module.js +1 -1
- package/esm5/components/select-option/select-option.component.js +24 -14
- package/esm5/components/select-option/select-option.module.js +1 -1
- package/esm5/components/slider/slider.component.js +2 -2
- package/esm5/components/slider/slider.module.js +1 -1
- package/esm5/components/stepper/step/step.component.js +2 -2
- package/esm5/components/stepper/stepper.component.js +19 -19
- package/esm5/components/stepper/stepper.module.js +1 -1
- package/esm5/components/tabs/index.js +3 -3
- package/esm5/components/tabs/tab/tab.component.js +1 -1
- package/esm5/components/tabs/tabs/tabs.component.js +17 -17
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +6 -6
- package/esm5/components/tabs/tabs.module.js +2 -2
- package/esm5/components/tabs/underline/underline.component.js +3 -3
- package/esm5/components/tag/tag.component.js +2 -2
- package/esm5/components/tag/tag.module.js +1 -1
- package/esm5/components/text-area/text-area.component.js +6 -6
- package/esm5/components/text-area/text-area.module.js +1 -1
- package/esm5/components/text-area/text-area.providers.js +1 -1
- package/esm5/components/toggle/index.js +2 -2
- package/esm5/components/toggle/toggle.component.js +5 -5
- package/esm5/components/toggle/toggle.module.js +1 -1
- package/esm5/components/tree/components/tree/tree.component.js +16 -3
- package/esm5/components/tree/components/tree-item/tree-item.component.js +10 -10
- package/esm5/components/tree/components/tree-item/tree-item.providers.js +1 -1
- package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +5 -6
- package/esm5/components/tree/directives/tree-controller.directive.js +1 -1
- package/esm5/components/tree/directives/tree-item-controller.directive.js +2 -2
- package/esm5/components/tree/directives/tree-node.directive.js +1 -1
- package/esm5/components/tree/index.js +4 -4
- package/esm5/components/tree/misc/tree.constants.js +1 -1
- package/esm5/components/tree/misc/tree.interfaces.js +1 -1
- package/esm5/components/tree/misc/tree.service.js +1 -1
- package/esm5/components/tree/misc/tree.tokens.js +1 -1
- package/esm5/components/tree/tree.module.js +3 -3
- package/esm5/directives/dropdown-context/dropdown-context.directive.js +3 -5
- package/esm5/directives/dropdown-context/dropdown-context.module.js +1 -1
- package/esm5/directives/dropdown-hover/dropdown-hover.module.js +1 -1
- package/esm5/directives/dropdown-selection/dropdown-selection.directive.js +4 -3
- package/esm5/directives/dropdown-selection/dropdown-selection.module.js +1 -1
- package/esm5/directives/highlight/highlight.directive.js +8 -3
- package/esm5/directives/highlight/highlight.module.js +1 -1
- package/esm5/directives/index.js +2 -2
- package/esm5/directives/lazy-loading/lazy-loading.directive.js +8 -2
- package/esm5/directives/lazy-loading/lazy-loading.module.js +1 -1
- package/esm5/directives/present/present.directive.js +1 -1
- package/esm5/directives/present/present.module.js +1 -1
- package/esm5/directives/project-class/project-class.module.js +1 -1
- package/esm5/directives/unfinished-validator/unfinished-validator.module.js +1 -1
- package/esm5/directives/value-accessor/value-accessor.module.js +1 -1
- package/esm5/internal/primitive-calendar-range/primitive-calendar-range.component.js +4 -4
- package/esm5/internal/primitive-calendar-range/primitive-calendar-range.module.js +1 -1
- package/esm5/pipes/filter-by-input/filter-by-input-with.pipe.js +1 -1
- package/esm5/pipes/filter-by-input/filter-by-input.module.js +2 -2
- package/esm5/pipes/filter-by-input/filter-by-input.pipe.js +1 -1
- package/esm5/pipes/stringify/stringify.module.js +1 -1
- package/esm5/pipes/stringify-content/stringify-content.module.js +1 -1
- package/esm5/tokens/index.js +2 -2
- package/esm5/utils/format/string-hash-to-hsl.js +1 -3
- package/esm5/utils/mask/index.js +2 -2
- package/fesm2015/taiga-ui-kit-abstract.js +9 -9
- package/fesm2015/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-accordion.js +22 -10
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +5 -5
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -4
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +6 -6
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +267 -0
- package/fesm2015/taiga-ui-kit-components-carousel.js.map +1 -0
- 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 +21 -22
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +11 -11
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +10 -10
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +6 -6
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +19 -16
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +21 -18
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +19 -16
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +148 -148
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +7 -6
- 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 +18 -28
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +21 -21
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +9 -9
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +35 -35
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +18 -18
- 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-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +10 -10
- 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-option.js +7 -9
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +22 -22
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +7 -7
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +98 -0
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-progress.js +41 -16
- 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-range.js +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +19 -11
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +12 -15
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +19 -19
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +23 -23
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +6 -6
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +5 -5
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +133 -122
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components.js +5 -3
- package/fesm2015/taiga-ui-kit-components.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-hover.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js +3 -2
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js +7 -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-directives-project-class.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives.js +1 -1
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js +2 -2
- package/fesm2015/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js +15 -15
- package/fesm2015/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm2015/taiga-ui-kit-tokens.js +14 -14
- package/fesm2015/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm2015/taiga-ui-kit-utils-format.js +0 -2
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm5/taiga-ui-kit-abstract.js +9 -9
- package/fesm5/taiga-ui-kit-abstract.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-accordion.js +25 -10
- package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-action.js +5 -5
- package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js +4 -4
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +8 -8
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-carousel.js +306 -0
- package/fesm5/taiga-ui-kit-components-carousel.js.map +1 -0
- 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 +21 -22
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +11 -11
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js +10 -10
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-copy.js +6 -6
- package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +19 -16
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +22 -19
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +19 -16
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +194 -194
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js +7 -6
- 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 +19 -33
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +24 -24
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +9 -9
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +35 -35
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +18 -18
- 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-island.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-line-clamp.js +10 -10
- 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-option.js +13 -10
- package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +22 -22
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +7 -7
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js +111 -0
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-progress.js +55 -19
- 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-range.js +1 -1
- package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select-option.js +23 -13
- package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +12 -15
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js +20 -20
- package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +24 -24
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +6 -6
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +5 -5
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tree.js +148 -137
- package/fesm5/taiga-ui-kit-components-tree.js.map +1 -1
- package/fesm5/taiga-ui-kit-components.js +5 -3
- package/fesm5/taiga-ui-kit-components.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-hover.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js +3 -2
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-highlight.js +7 -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-directives-project-class.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-unfinished-validator.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-value-accessor.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives.js +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js +3 -3
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +22 -22
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +14 -14
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-format.js +0 -2
- package/fesm5/taiga-ui-kit-utils-format.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 +7 -6
- package/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.metadata.json +1 -1
- package/pipes/stringify/taiga-ui-kit-pipes-stringify.metadata.json +1 -1
- package/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.metadata.json +1 -1
- package/tokens/index.d.ts +1 -1
- package/tokens/taiga-ui-kit-tokens.metadata.json +1 -1
- package/utils/mask/index.d.ts +1 -1
- package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-input-date.js","sources":["ng://@taiga-ui/kit/components/input-date/input-date.component.ts","ng://@taiga-ui/kit/components/input-date/input-date.module.ts","ng://@taiga-ui/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n Optional,\n Self,\n Type,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n DATE_FILLER_LENGTH,\n nullableSame,\n TUI_DATE_FORMAT,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDateMode,\n TuiDay,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DEFAULT_MARKER_HANDLER,\n TUI_TEXTFIELD_SIZE,\n TuiDialogService,\n TuiMarkerHandler,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiTextMaskOptions,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiNamedDay} from '@taiga-ui/kit/classes';\nimport {EMPTY_MASK, TUI_DATE_MASK} from '@taiga-ui/kit/constants';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {\n TUI_CALENDAR_DATA_STREAM,\n TUI_DATE_TEXTS,\n TUI_MOBILE_CALENDAR,\n} from '@taiga-ui/kit/tokens';\nimport {tuiCreateAutoCorrectedDatePipe} from '@taiga-ui/kit/utils/mask';\nimport {TuiReplayControlValueChangesFactory} from '@taiga-ui/kit/utils/miscellaneous';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {pluck, takeUntil} from 'rxjs/operators';\n\n// TODO: remove in ivy compilation\nexport const DATE_STREAM_FACTORY = TuiReplayControlValueChangesFactory;\n\n@Component({\n selector: 'tui-input-date',\n templateUrl: './input-date.template.html',\n styleUrls: ['./input-date.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputDateComponent),\n },\n {\n provide: TUI_CALENDAR_DATA_STREAM,\n deps: [[new Optional(), new Self(), NgControl]],\n useFactory: DATE_STREAM_FACTORY,\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputDateComponent\n extends AbstractTuiNullableControl<TuiDay>\n implements TuiWithOptionalMinMax<TuiDay>, TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiNamedDay> = [];\n\n @Input()\n @tuiDefaultProp()\n defaultActiveYearMonth = TuiMonth.currentLocal();\n\n open = false;\n readonly filler$ = this.dateTexts$.pipe(pluck(this.dateFormat));\n\n private month: TuiMonth | null = null;\n\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private readonly textMaskOptions: TuiTextMaskOptions = {\n mask: TUI_DATE_MASK,\n pipe: tuiCreateAutoCorrectedDatePipe(this),\n guide: false,\n };\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TuiDialogService) private readonly dialogService: TuiDialogService,\n @Optional()\n @Inject(TUI_MOBILE_CALENDAR)\n private readonly mobileCalendar: Type<any> | null,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_DATE_FORMAT) readonly dateFormat: TuiDateMode,\n @Inject(TUI_DATE_TEXTS)\n readonly dateTexts$: Observable<Record<TuiDateMode, string>>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get computedMobile(): boolean {\n return this.isMobile && !!this.mobileCalendar;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get computedValue(): string {\n const {value, nativeValue, activeItem} = this;\n\n if (activeItem) {\n return String(activeItem);\n }\n\n return value ? String(value) : nativeValue;\n }\n\n get computedActiveYearMonth(): TuiMonth {\n if (this.items[0] && this.value && this.value.daySame(this.items[0].day)) {\n return this.items[0].displayDay;\n }\n\n return this.month || this.value || this.defaultActiveYearMonth;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !this.computedMobile;\n }\n\n get computedMask(): TuiTextMaskOptions {\n return this.activeItem ? EMPTY_MASK : this.textMaskOptions;\n }\n\n get activeItem(): TuiNamedDay | null {\n const {value} = this;\n\n return (value && this.items.find(item => item.day.daySame(value))) || null;\n }\n\n getComputedFiller(filler: string): string {\n return this.activeItem ? '' : filler;\n }\n\n onMobileClick() {\n if (!this.mobileCalendar) {\n this.open = !this.open;\n\n return;\n }\n\n this.dialogService\n .open<TuiDay>(new PolymorpheusComponent(this.mobileCalendar, this.injector), {\n size: 'fullscreen',\n closeable: false,\n data: {\n single: true,\n min: this.min,\n max: this.max,\n disabledItemHandler: this.disabledItemHandler,\n },\n })\n .pipe(takeUntil(this.destroy$))\n .subscribe(value => {\n this.updateValue(value);\n });\n }\n\n @HostListener('click')\n onClick() {\n if (!this.isMobile) {\n this.open = !this.open;\n }\n }\n\n onValueChange(value: string) {\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n this.updateValue(\n value.length !== DATE_FILLER_LENGTH ? null : TuiDay.normalizeParse(value),\n );\n }\n\n onDayClick(value: TuiDay) {\n this.updateValue(value);\n this.open = false;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onMonthChange(month: TuiMonth) {\n this.month = month;\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.open = false;\n }\n\n writeValue(value: TuiDay | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n protected valueIdenticalComparator(\n oldValue: TuiDay | null,\n newValue: TuiDay | null,\n ): boolean {\n return nullableSame(oldValue, newValue, (a, b) => a.daySame(b));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiCalendarModule,\n TuiHostedDropdownModule,\n TuiLinkModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\nimport {TuiInputDateComponent} from './input-date.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiCalendarModule,\n TuiSvgModule,\n TuiLinkModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiValueAccessorModule,\n TuiLetModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputDateComponent],\n exports: [TuiInputDateComponent],\n})\nexport class TuiInputDateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAyDA;IACa,mBAAmB,GAAG,oCAAoC;;IAqB3D,yCAAkC;IAyC1C,+BAII,OAAyB,EACE,iBAAoC,EAC5B,QAAkB,EACb,QAAiB,EACd,aAA+B,EAGzD,cAAgC,EAEhC,a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A;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,aAAa,CAAC,CAAA;QACrB,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;QACxB,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,MAAM,CAAC,mBAAmB,CAAC,CAAA;QAE3B,WAAA,MAAM,CAAC,kBAAkB,CAAC,CAAA;QAE1B,WAAA,MAAM,CAAC,eAAe,CAAC,CAAA;QACvB,WAAA,MAAM,CAAC,cAAc,CAAC,CAAA;OAzDlB,qBAAqB,CA+MjC;IAAD,4BAAC;CAAA,CA9MW,0BAA0B;;;IC7CtC;KAAkC;IAArB,kBAAkB;QAlB9B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,cAAc;gBACd,kBAAkB;gBAClB,uBAAuB;gBACvB,iBAAiB;gBACjB,YAAY;gBACZ,aAAa;gBACb,uBAAuB;gBACvB,2BAA2B;gBAC3B,sBAAsB;gBACtB,YAAY;gBACZ,4BAA4B;aAC/B;YACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;YACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;SACnC,CAAC;OACW,kBAAkB,CAAG;IAAD,yBAAC;CAAlC;;AClCA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-input-date.js","sources":["ng://@taiga-ui/kit/components/input-date/input-date.component.ts","ng://@taiga-ui/kit/components/input-date/input-date.module.ts","ng://@taiga-ui/kit/components/input-date/taiga-ui-kit-components-input-date.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostListener,\n Inject,\n Injector,\n Input,\n Optional,\n Self,\n Type,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n DATE_FILLER_LENGTH,\n nullableSame,\n TUI_DATE_FORMAT,\n TUI_FIRST_DAY,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TUI_IS_MOBILE,\n TUI_LAST_DAY,\n TuiBooleanHandler,\n TuiDateMode,\n TuiDay,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiMonth,\n} from '@taiga-ui/cdk';\nimport {\n sizeBigger,\n TUI_DEFAULT_MARKER_HANDLER,\n TUI_TEXTFIELD_SIZE,\n TuiDialogService,\n TuiMarkerHandler,\n TuiPrimitiveTextfieldComponent,\n TuiTextfieldSizeDirective,\n TuiTextMaskOptions,\n TuiWithOptionalMinMax,\n} from '@taiga-ui/core';\nimport {TuiNamedDay} from '@taiga-ui/kit/classes';\nimport {EMPTY_MASK, TUI_DATE_MASK} from '@taiga-ui/kit/constants';\nimport {LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers';\nimport {\n TUI_CALENDAR_DATA_STREAM,\n TUI_DATE_TEXTS,\n TUI_MOBILE_CALENDAR,\n} from '@taiga-ui/kit/tokens';\nimport {tuiCreateAutoCorrectedDatePipe} from '@taiga-ui/kit/utils/mask';\nimport {TuiReplayControlValueChangesFactory} from '@taiga-ui/kit/utils/miscellaneous';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\nimport {pluck, takeUntil} from 'rxjs/operators';\n\n// TODO: remove in ivy compilation\nexport const DATE_STREAM_FACTORY = TuiReplayControlValueChangesFactory;\n\n@Component({\n selector: 'tui-input-date',\n templateUrl: './input-date.template.html',\n styleUrls: ['./input-date.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiInputDateComponent),\n },\n {\n provide: TUI_CALENDAR_DATA_STREAM,\n deps: [[new Optional(), new Self(), NgControl]],\n useFactory: DATE_STREAM_FACTORY,\n },\n LEFT_ALIGNED_DROPDOWN_CONTROLLER_PROVIDER,\n ],\n})\nexport class TuiInputDateComponent\n extends AbstractTuiNullableControl<TuiDay>\n implements TuiWithOptionalMinMax<TuiDay>, TuiFocusableElementAccessor\n{\n @ViewChild(TuiPrimitiveTextfieldComponent)\n private readonly textfield?: TuiPrimitiveTextfieldComponent;\n\n private month: TuiMonth | null = null;\n\n private readonly textMaskOptions: TuiTextMaskOptions = {\n mask: TUI_DATE_MASK,\n pipe: tuiCreateAutoCorrectedDatePipe(this),\n guide: false,\n };\n\n @Input()\n @tuiDefaultProp()\n min = TUI_FIRST_DAY;\n\n @Input()\n @tuiDefaultProp()\n max = TUI_LAST_DAY;\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<TuiDay> = ALWAYS_FALSE_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n markerHandler: TuiMarkerHandler = TUI_DEFAULT_MARKER_HANDLER;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<TuiNamedDay> = [];\n\n @Input()\n @tuiDefaultProp()\n defaultActiveYearMonth = TuiMonth.currentLocal();\n\n open = false;\n readonly filler$ = this.dateTexts$.pipe(pluck(this.dateFormat));\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(Injector) private readonly injector: Injector,\n @Inject(TUI_IS_MOBILE) private readonly isMobile: boolean,\n @Inject(TuiDialogService) private readonly dialogService: TuiDialogService,\n @Optional()\n @Inject(TUI_MOBILE_CALENDAR)\n private readonly mobileCalendar: Type<any> | null,\n @Inject(TUI_TEXTFIELD_SIZE)\n private readonly textfieldSize: TuiTextfieldSizeDirective,\n @Inject(TUI_DATE_FORMAT) readonly dateFormat: TuiDateMode,\n @Inject(TUI_DATE_TEXTS)\n readonly dateTexts$: Observable<Record<TuiDateMode, string>>,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): HTMLInputElement | null {\n return this.textfield ? this.textfield.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.textfield && this.textfield.focused;\n }\n\n get computedMobile(): boolean {\n return this.isMobile && !!this.mobileCalendar;\n }\n\n get calendarIcon(): string {\n return sizeBigger(this.textfieldSize.size)\n ? 'tuiIconCalendarLarge'\n : 'tuiIconCalendar';\n }\n\n get computedValue(): string {\n const {value, nativeValue, activeItem} = this;\n\n if (activeItem) {\n return String(activeItem);\n }\n\n return value ? String(value) : nativeValue;\n }\n\n get computedActiveYearMonth(): TuiMonth {\n if (this.items[0] && this.value && this.value.daySame(this.items[0].day)) {\n return this.items[0].displayDay;\n }\n\n return this.month || this.value || this.defaultActiveYearMonth;\n }\n\n get nativeValue(): string {\n return this.nativeFocusableElement ? this.nativeFocusableElement.value : '';\n }\n\n set nativeValue(value: string) {\n if (!this.nativeFocusableElement) {\n return;\n }\n\n this.nativeFocusableElement.value = value;\n }\n\n get canOpen(): boolean {\n return !this.computedDisabled && !this.readOnly && !this.computedMobile;\n }\n\n get computedMask(): TuiTextMaskOptions {\n return this.activeItem ? EMPTY_MASK : this.textMaskOptions;\n }\n\n get activeItem(): TuiNamedDay | null {\n const {value} = this;\n\n return (value && this.items.find(item => item.day.daySame(value))) || null;\n }\n\n @HostListener('click')\n onClick() {\n if (!this.isMobile) {\n this.open = !this.open;\n }\n }\n\n getComputedFiller(filler: string): string {\n return this.activeItem ? '' : filler;\n }\n\n onMobileClick() {\n if (!this.mobileCalendar) {\n this.open = !this.open;\n\n return;\n }\n\n this.dialogService\n .open<TuiDay>(new PolymorpheusComponent(this.mobileCalendar, this.injector), {\n size: 'fullscreen',\n closeable: false,\n data: {\n single: true,\n min: this.min,\n max: this.max,\n disabledItemHandler: this.disabledItemHandler,\n },\n })\n .pipe(takeUntil(this.destroy$))\n .subscribe(value => {\n this.updateValue(value);\n });\n }\n\n onValueChange(value: string) {\n if (this.control) {\n this.control.updateValueAndValidity({emitEvent: false});\n }\n\n if (!value) {\n this.onOpenChange(true);\n }\n\n this.updateValue(\n value.length !== DATE_FILLER_LENGTH ? null : TuiDay.normalizeParse(value),\n );\n }\n\n onDayClick(value: TuiDay) {\n this.updateValue(value);\n this.open = false;\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onMonthChange(month: TuiMonth) {\n this.month = month;\n }\n\n onOpenChange(open: boolean) {\n this.open = open;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n setDisabledState() {\n super.setDisabledState();\n this.open = false;\n }\n\n writeValue(value: TuiDay | null) {\n super.writeValue(value);\n this.nativeValue = value ? this.computedValue : '';\n }\n\n protected valueIdenticalComparator(\n oldValue: TuiDay | null,\n newValue: TuiDay | null,\n ): boolean {\n return nullableSame(oldValue, newValue, (a, b) => a.daySame(b));\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiLetModule, TuiPreventDefaultModule} from '@taiga-ui/cdk';\nimport {\n TuiCalendarModule,\n TuiHostedDropdownModule,\n TuiLinkModule,\n TuiPrimitiveTextfieldModule,\n TuiSvgModule,\n TuiTextfieldControllerModule,\n} from '@taiga-ui/core';\nimport {TuiValueAccessorModule} from '@taiga-ui/kit/directives';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TextMaskModule} from 'angular2-text-mask';\n\nimport {TuiInputDateComponent} from './input-date.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TextMaskModule,\n PolymorpheusModule,\n TuiPreventDefaultModule,\n TuiCalendarModule,\n TuiSvgModule,\n TuiLinkModule,\n TuiHostedDropdownModule,\n TuiPrimitiveTextfieldModule,\n TuiValueAccessorModule,\n TuiLetModule,\n TuiTextfieldControllerModule,\n ],\n declarations: [TuiInputDateComponent],\n exports: [TuiInputDateComponent],\n})\nexport class TuiInputDateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAyDA;IACa,mBAA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, TUI_FILE_TEXTS } from '@taiga-ui/kit/tokens';
|
|
1
|
+
import { __decorate, __param, __extends, __spread } from 'tslib';
|
|
2
|
+
import { EventEmitter, Inject, Input, Output, HostBinding, Component, ChangeDetectionStrategy, Optional, Self, ChangeDetectorRef, ViewChild, forwardRef, NgModule } from '@angular/core';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { TUI_IS_MOBILE, tuiDefaultProp, tuiPure, isNativeFocused, EMPTY_ARRAY, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiNullableControl, TuiLetModule, TuiFocusedModule, TuiFocusVisibleModule, TuiPressedModule, TuiHoveredModule, TuiFocusableModule, TuiDroppableModule, TuiPreventDefaultModule } from '@taiga-ui/cdk';
|
|
5
|
+
import { TUI_FILE_TEXTS, TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS } from '@taiga-ui/kit/tokens';
|
|
7
6
|
import { formatSize } from '@taiga-ui/kit/utils/files';
|
|
8
7
|
import { of, Observable } from 'rxjs';
|
|
9
8
|
import { map } from 'rxjs/operators';
|
|
9
|
+
import { NgControl } from '@angular/forms';
|
|
10
|
+
import { TUI_MODE, MODE_PROVIDER, TuiWrapperModule, TuiSvgModule, TuiLinkModule, TuiLoaderModule, TuiButtonModule, TuiGroupModule } from '@taiga-ui/core';
|
|
10
11
|
import { CommonModule } from '@angular/common';
|
|
11
12
|
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
// @dynamic
|
|
15
|
+
var TuiFileComponent = /** @class */ (function () {
|
|
16
|
+
function TuiFileComponent(isMobile, sanitizer, fileTexts$, units$) {
|
|
17
|
+
this.isMobile = isMobile;
|
|
18
|
+
this.sanitizer = sanitizer;
|
|
19
|
+
this.fileTexts$ = fileTexts$;
|
|
20
|
+
this.units$ = units$;
|
|
21
|
+
this.file = { name: '' };
|
|
22
|
+
this.state = "normal" /* Normal */;
|
|
23
|
+
this.size = 'm';
|
|
24
|
+
this.allowDelete = true;
|
|
25
|
+
this.showSize = true;
|
|
26
|
+
this.fileRemoved = new EventEmitter();
|
|
27
|
+
this.focused = false;
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(TuiFileComponent.prototype, "preview", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
|
|
32
|
+
},
|
|
33
|
+
enumerable: true,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(TuiFileComponent.prototype, "isBig", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this.size === 'l';
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(TuiFileComponent.prototype, "isLoading", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return this.state === "loading" /* Loading */;
|
|
46
|
+
},
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(TuiFileComponent.prototype, "isError", {
|
|
51
|
+
get: function () {
|
|
52
|
+
return this.state === "error" /* Error */;
|
|
53
|
+
},
|
|
54
|
+
enumerable: true,
|
|
55
|
+
configurable: true
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(TuiFileComponent.prototype, "isDeleted", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this.state === "deleted" /* Deleted */;
|
|
60
|
+
},
|
|
61
|
+
enumerable: true,
|
|
62
|
+
configurable: true
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(TuiFileComponent.prototype, "icon", {
|
|
65
|
+
get: function () {
|
|
66
|
+
if (this.state === "normal" /* Normal */ && this.isBig) {
|
|
67
|
+
return 'tuiIconDefaultDocLarge';
|
|
68
|
+
}
|
|
69
|
+
switch (this.state) {
|
|
70
|
+
case "deleted" /* Deleted */:
|
|
71
|
+
return 'tuiIconTrashLarge';
|
|
72
|
+
case "error" /* Error */:
|
|
73
|
+
return 'tuiIconAlertCircleLarge';
|
|
74
|
+
default:
|
|
75
|
+
return 'tuiIconCheckCircleLarge';
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
enumerable: true,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
Object.defineProperty(TuiFileComponent.prototype, "src", {
|
|
82
|
+
get: function () {
|
|
83
|
+
return this.file.src || '';
|
|
84
|
+
},
|
|
85
|
+
enumerable: true,
|
|
86
|
+
configurable: true
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(TuiFileComponent.prototype, "name", {
|
|
89
|
+
get: function () {
|
|
90
|
+
return this.file.name.split('.').slice(0, -1).join('.');
|
|
91
|
+
},
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(TuiFileComponent.prototype, "type", {
|
|
96
|
+
get: function () {
|
|
97
|
+
return '.' + this.file.name.split('.').pop() || '';
|
|
98
|
+
},
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(TuiFileComponent.prototype, "content$", {
|
|
103
|
+
get: function () {
|
|
104
|
+
return this.calculateContent$(this.state, this.file, this.fileTexts$);
|
|
105
|
+
},
|
|
106
|
+
enumerable: true,
|
|
107
|
+
configurable: true
|
|
108
|
+
});
|
|
109
|
+
Object.defineProperty(TuiFileComponent.prototype, "fileSize$", {
|
|
110
|
+
get: function () {
|
|
111
|
+
return this.calculateFileSize$(this.file, this.units$);
|
|
112
|
+
},
|
|
113
|
+
enumerable: true,
|
|
114
|
+
configurable: true
|
|
115
|
+
});
|
|
116
|
+
TuiFileComponent.prototype.onRemoveClick = function () {
|
|
117
|
+
this.fileRemoved.emit();
|
|
118
|
+
};
|
|
119
|
+
TuiFileComponent.prototype.onFocusVisible = function (focusVisible) {
|
|
120
|
+
this.focused = focusVisible;
|
|
121
|
+
};
|
|
122
|
+
TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
|
|
123
|
+
return state === "error" /* Error */ && !file.content
|
|
124
|
+
? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
|
|
125
|
+
: of(this.file.content || '');
|
|
126
|
+
};
|
|
127
|
+
TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
|
|
128
|
+
return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
|
|
129
|
+
};
|
|
130
|
+
TuiFileComponent.prototype.createPreview = function (file, sanitizer) {
|
|
131
|
+
if (file.src) {
|
|
132
|
+
return file.src;
|
|
133
|
+
}
|
|
134
|
+
// TODO: iframe warning
|
|
135
|
+
if (file instanceof File && file.type && file.type.startsWith('image/')) {
|
|
136
|
+
return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
|
|
137
|
+
}
|
|
138
|
+
return '';
|
|
139
|
+
};
|
|
140
|
+
TuiFileComponent.ctorParameters = function () { return [
|
|
141
|
+
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
|
|
142
|
+
{ type: DomSanitizer, decorators: [{ type: Inject, args: [DomSanitizer,] }] },
|
|
143
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_FILE_TEXTS,] }] },
|
|
144
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_DIGITAL_INFORMATION_UNITS,] }] }
|
|
145
|
+
]; };
|
|
146
|
+
__decorate([
|
|
147
|
+
Input(),
|
|
148
|
+
tuiDefaultProp()
|
|
149
|
+
], TuiFileComponent.prototype, "file", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
Input(),
|
|
152
|
+
tuiDefaultProp()
|
|
153
|
+
], TuiFileComponent.prototype, "state", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
Input(),
|
|
156
|
+
tuiDefaultProp()
|
|
157
|
+
], TuiFileComponent.prototype, "size", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
Input(),
|
|
160
|
+
tuiDefaultProp()
|
|
161
|
+
], TuiFileComponent.prototype, "allowDelete", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
Input(),
|
|
164
|
+
tuiDefaultProp()
|
|
165
|
+
], TuiFileComponent.prototype, "showSize", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
Output()
|
|
168
|
+
], TuiFileComponent.prototype, "fileRemoved", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
HostBinding('class._focused')
|
|
171
|
+
], TuiFileComponent.prototype, "focused", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
HostBinding('class._link')
|
|
174
|
+
], TuiFileComponent.prototype, "src", null);
|
|
175
|
+
__decorate([
|
|
176
|
+
tuiPure
|
|
177
|
+
], TuiFileComponent.prototype, "calculateContent$", null);
|
|
178
|
+
__decorate([
|
|
179
|
+
tuiPure
|
|
180
|
+
], TuiFileComponent.prototype, "calculateFileSize$", null);
|
|
181
|
+
__decorate([
|
|
182
|
+
tuiPure
|
|
183
|
+
], TuiFileComponent.prototype, "createPreview", null);
|
|
184
|
+
TuiFileComponent = __decorate([
|
|
185
|
+
Component({
|
|
186
|
+
selector: 'tui-file',
|
|
187
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
188
|
+
template: "<ng-container *ngIf=\"!src; else withLink\">\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n class=\"link\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div class=\"preview\" [class.preview_big]=\"isBig\">\n <img\n *ngIf=\"preview && (fileTexts$ | async) as texts; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"image\"\n [alt]=\"texts.preview\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n automation-id=\"tui-file__icon\"\n class=\"icon\"\n [class.icon_deleted]=\"isDeleted\"\n [class.icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </div>\n <div class=\"wrapper\">\n <div class=\"text\">\n <div automation-id=\"tui-file__name\" class=\"name\">{{ name }}</div>\n <div automation-id=\"tui-file__type\" class=\"type\">{{ type }}</div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"size\"\n >\n {{ fileSize }}\n </div>\n </div>\n <div\n *ngIf=\"content$ | async as content\"\n polymorpheus-outlet\n automation-id=\"tui-file__content\"\n class=\"content\"\n [content]=\"content\"\n ></div>\n </div>\n <button\n *ngIf=\"allowDelete && (fileTexts$ | async) as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"remove\"\n [title]=\"texts.remove\"\n [class.remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n</ng-template>\n",
|
|
189
|
+
styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.link:hover{background-color:var(--tui-base-02)}.preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.preview_big{width:4rem;height:4rem;margin-right:1rem}.preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.image{max-width:100%;max-height:100%}.loader{position:absolute;top:0;left:0;width:100%;height:100%}.icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.icon_error{color:var(--tui-error-fill)}.icon_deleted{color:var(--tui-base-06)}.remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.remove:focus,.remove_mobile{opacity:1}.wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.text{display:flex}.size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.type{flex-shrink:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
|
|
190
|
+
}),
|
|
191
|
+
__param(0, Inject(TUI_IS_MOBILE)),
|
|
192
|
+
__param(1, Inject(DomSanitizer)),
|
|
193
|
+
__param(2, Inject(TUI_FILE_TEXTS)),
|
|
194
|
+
__param(3, Inject(TUI_DIGITAL_INFORMATION_UNITS))
|
|
195
|
+
], TuiFileComponent);
|
|
196
|
+
return TuiFileComponent;
|
|
197
|
+
}());
|
|
13
198
|
|
|
14
199
|
var DEFAULT_MAX_SIZE = 30 * 1000 * 1000; // 30 MB
|
|
15
200
|
// @dynamic
|
|
@@ -21,6 +206,7 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
|
|
|
21
206
|
_this.inputFileTexts$ = inputFileTexts$;
|
|
22
207
|
_this.mode$ = mode$;
|
|
23
208
|
_this.units$ = units$;
|
|
209
|
+
_this.dataTransfer = null;
|
|
24
210
|
_this.link = '';
|
|
25
211
|
_this.label = '';
|
|
26
212
|
_this.accept = '';
|
|
@@ -31,7 +217,6 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
|
|
|
31
217
|
_this.loadingFiles = [];
|
|
32
218
|
_this.rejectedFiles = [];
|
|
33
219
|
_this.rejectedFilesChange = new EventEmitter();
|
|
34
|
-
_this.dataTransfer = null;
|
|
35
220
|
return _this;
|
|
36
221
|
}
|
|
37
222
|
TuiInputFileComponent_1 = TuiInputFileComponent;
|
|
@@ -298,7 +483,7 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
|
|
|
298
483
|
TuiInputFileComponent = TuiInputFileComponent_1 = __decorate([
|
|
299
484
|
Component({
|
|
300
485
|
selector: 'tui-input-file',
|
|
301
|
-
template: "<tui-wrapper\n *ngIf=\"multiple || !value\"\n class=\"wrapper\"\n [class.wrapper_mobile]=\"isMobile\"\n [class.wrapper_has-files]=\"hasFiles\"\n [appearance]=\"getAppearance(mode$ | async)\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered || fileDragged\"\n [pressed]=\"computedPressed\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n>\n <label\n *ngIf=\"
|
|
486
|
+
template: "<tui-wrapper\n *ngIf=\"multiple || !value\"\n class=\"wrapper\"\n [class.wrapper_mobile]=\"isMobile\"\n [class.wrapper_has-files]=\"hasFiles\"\n [appearance]=\"getAppearance(mode$ | async)\"\n [focused]=\"computedFocused\"\n [hovered]=\"computedHovered || fileDragged\"\n [pressed]=\"computedPressed\"\n [readOnly]=\"readOnly\"\n [disabled]=\"computedDisabled\"\n>\n <label\n *ngIf=\"units$ | async as units\"\n automation-id=\"tui-input-file__label\"\n >\n <a tuiLink>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLink$ | async\"\n ></span>\n </a>\n <ng-container *ngIf=\"computedLabel$ | async as computedLabel\">\n <span> </span>\n <span\n polymorpheus-outlet\n class=\"inline\"\n [content]=\"computedLabel\"\n ></span>\n </ng-container>\n <input\n *ngIf=\"!readOnly && !computedDisabled && (inputFileTexts$ | async) as texts\"\n #input\n type=\"file\"\n tuiPreventDefault=\"mousedown\"\n class=\"native\"\n [id]=\"id\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [tuiFocusable]=\"focusable\"\n (change)=\"onFilesSelected(input, texts, units)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiDroppableDropped)=\"onDropped($event, texts, units)\"\n (tuiDroppableDragOverChange)=\"onDragOver($event)\"\n />\n </label>\n</tui-wrapper>\n\n<section\n *tuiLet=\"mode$ | async as mode\"\n tuiGroup\n orientation=\"vertical\"\n class=\"files\"\n [collapsed]=\"true\"\n>\n <tui-file\n *ngFor=\"let file of rejectedFiles\"\n automation-id=\"tui-input-file__error\"\n state=\"error\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeRejectedFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of computedLoading\"\n automation-id=\"tui-input-file__loading\"\n state=\"loading\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n <tui-file\n *ngFor=\"let file of readyFiles\"\n automation-id=\"tui-input-file__file\"\n [attr.data-mode]=\"mode\"\n [showSize]=\"showSize\"\n [allowDelete]=\"allowDelete\"\n [size]=\"size\"\n [file]=\"file\"\n (fileRemoved)=\"removeFile(file)\"\n ></tui-file>\n</section>\n",
|
|
302
487
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
303
488
|
providers: [
|
|
304
489
|
MODE_PROVIDER,
|
|
@@ -321,191 +506,6 @@ var TuiInputFileComponent = /** @class */ (function (_super) {
|
|
|
321
506
|
return TuiInputFileComponent;
|
|
322
507
|
}(AbstractTuiNullableControl));
|
|
323
508
|
|
|
324
|
-
// @dynamic
|
|
325
|
-
var TuiFileComponent = /** @class */ (function () {
|
|
326
|
-
function TuiFileComponent(isMobile, sanitizer, fileTexts$, units$) {
|
|
327
|
-
this.isMobile = isMobile;
|
|
328
|
-
this.sanitizer = sanitizer;
|
|
329
|
-
this.fileTexts$ = fileTexts$;
|
|
330
|
-
this.units$ = units$;
|
|
331
|
-
this.file = { name: '' };
|
|
332
|
-
this.state = "normal" /* Normal */;
|
|
333
|
-
this.size = 'm';
|
|
334
|
-
this.allowDelete = true;
|
|
335
|
-
this.showSize = true;
|
|
336
|
-
this.fileRemoved = new EventEmitter();
|
|
337
|
-
this.focused = false;
|
|
338
|
-
}
|
|
339
|
-
Object.defineProperty(TuiFileComponent.prototype, "preview", {
|
|
340
|
-
get: function () {
|
|
341
|
-
return this.isBig ? this.createPreview(this.file, this.sanitizer) : '';
|
|
342
|
-
},
|
|
343
|
-
enumerable: true,
|
|
344
|
-
configurable: true
|
|
345
|
-
});
|
|
346
|
-
Object.defineProperty(TuiFileComponent.prototype, "isBig", {
|
|
347
|
-
get: function () {
|
|
348
|
-
return this.size === 'l';
|
|
349
|
-
},
|
|
350
|
-
enumerable: true,
|
|
351
|
-
configurable: true
|
|
352
|
-
});
|
|
353
|
-
Object.defineProperty(TuiFileComponent.prototype, "isLoading", {
|
|
354
|
-
get: function () {
|
|
355
|
-
return this.state === "loading" /* Loading */;
|
|
356
|
-
},
|
|
357
|
-
enumerable: true,
|
|
358
|
-
configurable: true
|
|
359
|
-
});
|
|
360
|
-
Object.defineProperty(TuiFileComponent.prototype, "isError", {
|
|
361
|
-
get: function () {
|
|
362
|
-
return this.state === "error" /* Error */;
|
|
363
|
-
},
|
|
364
|
-
enumerable: true,
|
|
365
|
-
configurable: true
|
|
366
|
-
});
|
|
367
|
-
Object.defineProperty(TuiFileComponent.prototype, "isDeleted", {
|
|
368
|
-
get: function () {
|
|
369
|
-
return this.state === "deleted" /* Deleted */;
|
|
370
|
-
},
|
|
371
|
-
enumerable: true,
|
|
372
|
-
configurable: true
|
|
373
|
-
});
|
|
374
|
-
Object.defineProperty(TuiFileComponent.prototype, "icon", {
|
|
375
|
-
get: function () {
|
|
376
|
-
if (this.state === "normal" /* Normal */ && this.isBig) {
|
|
377
|
-
return 'tuiIconDefaultDocLarge';
|
|
378
|
-
}
|
|
379
|
-
switch (this.state) {
|
|
380
|
-
case "deleted" /* Deleted */:
|
|
381
|
-
return 'tuiIconTrashLarge';
|
|
382
|
-
case "error" /* Error */:
|
|
383
|
-
return 'tuiIconAlertCircleLarge';
|
|
384
|
-
default:
|
|
385
|
-
return 'tuiIconCheckCircleLarge';
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
enumerable: true,
|
|
389
|
-
configurable: true
|
|
390
|
-
});
|
|
391
|
-
Object.defineProperty(TuiFileComponent.prototype, "src", {
|
|
392
|
-
get: function () {
|
|
393
|
-
return this.file.src || '';
|
|
394
|
-
},
|
|
395
|
-
enumerable: true,
|
|
396
|
-
configurable: true
|
|
397
|
-
});
|
|
398
|
-
Object.defineProperty(TuiFileComponent.prototype, "name", {
|
|
399
|
-
get: function () {
|
|
400
|
-
return this.file.name.split('.').slice(0, -1).join('.');
|
|
401
|
-
},
|
|
402
|
-
enumerable: true,
|
|
403
|
-
configurable: true
|
|
404
|
-
});
|
|
405
|
-
Object.defineProperty(TuiFileComponent.prototype, "type", {
|
|
406
|
-
get: function () {
|
|
407
|
-
return '.' + this.file.name.split('.').pop() || '';
|
|
408
|
-
},
|
|
409
|
-
enumerable: true,
|
|
410
|
-
configurable: true
|
|
411
|
-
});
|
|
412
|
-
Object.defineProperty(TuiFileComponent.prototype, "content$", {
|
|
413
|
-
get: function () {
|
|
414
|
-
return this.calculateContent$(this.state, this.file, this.fileTexts$);
|
|
415
|
-
},
|
|
416
|
-
enumerable: true,
|
|
417
|
-
configurable: true
|
|
418
|
-
});
|
|
419
|
-
Object.defineProperty(TuiFileComponent.prototype, "fileSize$", {
|
|
420
|
-
get: function () {
|
|
421
|
-
return this.calculateFileSize$(this.file, this.units$);
|
|
422
|
-
},
|
|
423
|
-
enumerable: true,
|
|
424
|
-
configurable: true
|
|
425
|
-
});
|
|
426
|
-
TuiFileComponent.prototype.onRemoveClick = function () {
|
|
427
|
-
this.fileRemoved.emit();
|
|
428
|
-
};
|
|
429
|
-
TuiFileComponent.prototype.onFocusVisible = function (focusVisible) {
|
|
430
|
-
this.focused = focusVisible;
|
|
431
|
-
};
|
|
432
|
-
TuiFileComponent.prototype.calculateContent$ = function (state, file, fileTexts$) {
|
|
433
|
-
return state === "error" /* Error */ && !file.content
|
|
434
|
-
? fileTexts$.pipe(map(function (texts) { return texts.loadingError; }))
|
|
435
|
-
: of(this.file.content || '');
|
|
436
|
-
};
|
|
437
|
-
TuiFileComponent.prototype.calculateFileSize$ = function (file, units$) {
|
|
438
|
-
return units$.pipe(map(function (units) { return formatSize(units, file.size); }));
|
|
439
|
-
};
|
|
440
|
-
TuiFileComponent.prototype.createPreview = function (file, sanitizer) {
|
|
441
|
-
if (file.src) {
|
|
442
|
-
return file.src;
|
|
443
|
-
}
|
|
444
|
-
// TODO: iframe warning
|
|
445
|
-
if (file instanceof File && file.type && file.type.startsWith('image/')) {
|
|
446
|
-
return sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(file));
|
|
447
|
-
}
|
|
448
|
-
return '';
|
|
449
|
-
};
|
|
450
|
-
TuiFileComponent.ctorParameters = function () { return [
|
|
451
|
-
{ type: Boolean, decorators: [{ type: Inject, args: [TUI_IS_MOBILE,] }] },
|
|
452
|
-
{ type: DomSanitizer, decorators: [{ type: Inject, args: [DomSanitizer,] }] },
|
|
453
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_FILE_TEXTS,] }] },
|
|
454
|
-
{ type: Observable, decorators: [{ type: Inject, args: [TUI_DIGITAL_INFORMATION_UNITS,] }] }
|
|
455
|
-
]; };
|
|
456
|
-
__decorate([
|
|
457
|
-
Input(),
|
|
458
|
-
tuiDefaultProp()
|
|
459
|
-
], TuiFileComponent.prototype, "file", void 0);
|
|
460
|
-
__decorate([
|
|
461
|
-
Input(),
|
|
462
|
-
tuiDefaultProp()
|
|
463
|
-
], TuiFileComponent.prototype, "state", void 0);
|
|
464
|
-
__decorate([
|
|
465
|
-
Input(),
|
|
466
|
-
tuiDefaultProp()
|
|
467
|
-
], TuiFileComponent.prototype, "size", void 0);
|
|
468
|
-
__decorate([
|
|
469
|
-
Input(),
|
|
470
|
-
tuiDefaultProp()
|
|
471
|
-
], TuiFileComponent.prototype, "allowDelete", void 0);
|
|
472
|
-
__decorate([
|
|
473
|
-
Input(),
|
|
474
|
-
tuiDefaultProp()
|
|
475
|
-
], TuiFileComponent.prototype, "showSize", void 0);
|
|
476
|
-
__decorate([
|
|
477
|
-
Output()
|
|
478
|
-
], TuiFileComponent.prototype, "fileRemoved", void 0);
|
|
479
|
-
__decorate([
|
|
480
|
-
HostBinding('class._focused')
|
|
481
|
-
], TuiFileComponent.prototype, "focused", void 0);
|
|
482
|
-
__decorate([
|
|
483
|
-
HostBinding('class._link')
|
|
484
|
-
], TuiFileComponent.prototype, "src", null);
|
|
485
|
-
__decorate([
|
|
486
|
-
tuiPure
|
|
487
|
-
], TuiFileComponent.prototype, "calculateContent$", null);
|
|
488
|
-
__decorate([
|
|
489
|
-
tuiPure
|
|
490
|
-
], TuiFileComponent.prototype, "calculateFileSize$", null);
|
|
491
|
-
__decorate([
|
|
492
|
-
tuiPure
|
|
493
|
-
], TuiFileComponent.prototype, "createPreview", null);
|
|
494
|
-
TuiFileComponent = __decorate([
|
|
495
|
-
Component({
|
|
496
|
-
selector: 'tui-file',
|
|
497
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
498
|
-
template: "<ng-container *ngIf=\"!src; else withLink\">\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n</ng-container>\n\n<ng-template #withLink>\n <a\n class=\"link\"\n rel=\"noreferrer noopener\"\n target=\"_blank\"\n [href]=\"src\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n >\n <ng-container *ngTemplateOutlet=\"fileInfoTemplate\"></ng-container>\n </a>\n</ng-template>\n\n<ng-template #fileInfoTemplate>\n <div class=\"preview\" [class.preview_big]=\"isBig\">\n <img\n *ngIf=\"preview && (fileTexts$ | async) as texts; else loader\"\n automation-id=\"tui-file__preview\"\n class=\"image\"\n [alt]=\"texts.preview\"\n [src]=\"preview\"\n />\n <ng-template #loader>\n <tui-loader\n *ngIf=\"isLoading; else svg\"\n automation-id=\"tui-file__loader\"\n class=\"loader\"\n [inheritColor]=\"isBig\"\n ></tui-loader>\n </ng-template>\n <ng-template #svg>\n <tui-svg\n class=\"icon\"\n automation-id=\"tui-file__icon\"\n [class.icon_deleted]=\"isDeleted\"\n [class.icon_error]=\"isError\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </div>\n <div class=\"wrapper\">\n <div class=\"text\">\n <div automation-id=\"tui-file__name\" class=\"name\">{{name}}</div>\n <div automation-id=\"tui-file__type\" class=\"type\">{{type}}</div>\n <div\n *ngIf=\"showSize && (fileSize$ | async) as fileSize\"\n automation-id=\"tui-file__size\"\n class=\"size\"\n >\n {{fileSize}}\n </div>\n </div>\n <div\n polymorpheus-outlet\n *ngIf=\"content$ | async as content\"\n automation-id=\"tui-file__content\"\n class=\"content\"\n [content]=\"content\"\n ></div>\n </div>\n <button\n *ngIf=\"allowDelete && (fileTexts$ | async) as texts\"\n automation-id=\"tui-file__remove\"\n tuiIconButton\n type=\"button\"\n size=\"xs\"\n icon=\"tuiIconCloseLarge\"\n appearance=\"icon\"\n class=\"remove\"\n [title]=\"texts.remove\"\n [class.remove_mobile]=\"isMobile\"\n (click.prevent)=\"onRemoveClick()\"\n ></button>\n</ng-template>\n",
|
|
499
|
-
styles: [":host{position:relative;display:flex;font:var(--tui-font-text-m);border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m)}:host[data-mode=onDark]{color:var(--tui-text-01-night)}:host:not(._link){padding:.5625rem 2.1875rem .5625rem .5625rem}:host:hover .remove{opacity:1}:host._focused{border-color:var(--tui-focus);box-shadow:0 0 0 1px inset var(--tui-focus)}.link{display:flex;flex:1;padding:.5625rem 2.1875rem .5625rem .5625rem;text-decoration:none;outline:0;cursor:pointer;color:var(--tui-text-01);max-width:calc(100% - 2.75rem)}.link:hover{background-color:var(--tui-base-02)}.preview{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.5rem;height:1.5rem;margin-right:.75rem;border-radius:var(--tui-radius-m);overflow:hidden;color:rgba(0,0,0,.24)}.preview_big{width:4rem;height:4rem;margin-right:1rem}.preview_big:before{position:absolute;top:0;left:0;width:100%;height:100%;content:'';background:#333;opacity:.08}.image{max-width:100%;max-height:100%}.loader{position:absolute;top:0;left:0;width:100%;height:100%}.icon{position:absolute;top:0;left:0;width:100%;height:100%;color:var(--tui-success-fill)}.icon_error{color:var(--tui-error-fill)}.icon_deleted{color:var(--tui-base-06)}.remove{transition-property:opacity;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;position:absolute;top:.625rem;right:.625rem;opacity:0}.remove:focus,.remove_mobile{opacity:1}.wrapper{display:flex;flex-direction:column;justify-content:center;overflow:hidden}.text{display:flex}.size{flex-shrink:0;opacity:var(--tui-disabled-opacity);margin-left:.5rem}.type{flex-shrink:0}.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content{font:var(--tui-font-text-s);color:var(--tui-error-fill)}"]
|
|
500
|
-
}),
|
|
501
|
-
__param(0, Inject(TUI_IS_MOBILE)),
|
|
502
|
-
__param(1, Inject(DomSanitizer)),
|
|
503
|
-
__param(2, Inject(TUI_FILE_TEXTS)),
|
|
504
|
-
__param(3, Inject(TUI_DIGITAL_INFORMATION_UNITS))
|
|
505
|
-
], TuiFileComponent);
|
|
506
|
-
return TuiFileComponent;
|
|
507
|
-
}());
|
|
508
|
-
|
|
509
509
|
var TuiInputFileModule = /** @class */ (function () {
|
|
510
510
|
function TuiInputFileModule() {
|
|
511
511
|
}
|