@taiga-ui/kit 2.24.0 → 2.27.1
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/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 +23 -7
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-action.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-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.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +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.map +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 +4 -4
- 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 +7 -7
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-carousel.umd.js +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 +18 -19
- package/bundles/taiga-ui-kit-components-combo-box.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-combo-box.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-data-list-wrapper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-field-error.umd.js.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 +8 -8
- package/bundles/taiga-ui-kit-components-filter.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-filter.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-input-copy.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-copy.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date-range.umd.js +16 -13
- 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 +20 -17
- 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 +17 -14
- 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 +190 -190
- 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 +5 -4
- 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 +17 -31
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-password.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-password.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone-international.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-input-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.js +31 -31
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +16 -16
- package/bundles/taiga-ui-kit-components-input-time.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.js +7 -7
- package/bundles/taiga-ui-kit-components-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-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 +11 -11
- 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.map +1 -1
- 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 +17 -17
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +4 -4
- package/bundles/taiga-ui-kit-components-pagination.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js +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 +29 -29
- 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.map +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.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +9 -12
- 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.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +18 -18
- package/bundles/taiga-ui-kit-components-stepper.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.js +22 -22
- package/bundles/taiga-ui-kit-components-tabs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-tabs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +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 +4 -4
- package/bundles/taiga-ui-kit-components-text-area.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-text-area.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.js +3 -3
- package/bundles/taiga-ui-kit-components-toggle.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-toggle.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tree.umd.js +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 +2 -2
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-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/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-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/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 -4
- 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/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 +1 -1
- package/esm2015/components/accordion/accordion.module.js +6 -3
- package/esm2015/components/accordion/index.js +2 -1
- package/esm2015/components/action/action.component.js +4 -4
- package/esm2015/components/arrow/arrow.module.js +1 -1
- package/esm2015/components/avatar/avatar.module.js +1 -1
- package/esm2015/components/badge/badge.module.js +1 -1
- package/esm2015/components/badged-content/badged-content.module.js +1 -1
- package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
- 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 +6 -6
- package/esm2015/components/calendar-month/calendar-month.module.js +1 -1
- package/esm2015/components/calendar-range/calendar-range.component.js +1 -1
- package/esm2015/components/carousel/carousel-autoscroll.directive.js +21 -0
- package/esm2015/components/carousel/carousel-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 +19 -20
- package/esm2015/components/combo-box/combo-box.module.js +1 -1
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
- 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 +9 -9
- 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 +5 -5
- package/esm2015/components/input-copy/input-copy.module.js +1 -1
- package/esm2015/components/input-count/input-count.component.js +4 -4
- package/esm2015/components/input-count/input-count.module.js +1 -1
- package/esm2015/components/input-date/input-date.component.js +18 -15
- package/esm2015/components/input-date/input-date.module.js +1 -1
- package/esm2015/components/input-date-range/input-date-range.component.js +17 -14
- package/esm2015/components/input-date-range/input-date-range.module.js +1 -1
- package/esm2015/components/input-date-time/input-date-time.component.js +20 -17
- package/esm2015/components/input-date-time/input-date-time.module.js +1 -1
- package/esm2015/components/input-file/index.js +2 -2
- package/esm2015/components/input-file/input-file.component.js +2 -2
- package/esm2015/components/input-file/input-file.module.js +1 -1
- package/esm2015/components/input-inline/input-inline.component.js +6 -5
- 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 +17 -27
- 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 +4 -4
- package/esm2015/components/input-password/input-password.module.js +1 -1
- package/esm2015/components/input-phone/input-phone.component.js +7 -7
- 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 +20 -20
- package/esm2015/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm2015/components/input-slider/input-slider.component.js +4 -4
- package/esm2015/components/input-tag/input-tag.component.js +32 -32
- package/esm2015/components/input-tag/input-tag.module.js +1 -1
- package/esm2015/components/input-time/input-time.component.js +17 -17
- 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 +8 -8
- 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 +5 -5
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm2015/components/multi-select/multi-select.component.js +14 -14
- package/esm2015/components/multi-select/multi-select.module.js +2 -2
- package/esm2015/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm2015/components/pagination/pagination.component.js +5 -5
- 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 -5
- package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +1 -1
- package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +1 -1
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +4 -4
- package/esm2015/components/progress/progress.module.js +2 -2
- 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.module.js +1 -1
- package/esm2015/components/select/select.component.js +10 -13
- package/esm2015/components/select/select.module.js +1 -1
- package/esm2015/components/select-option/select-option.module.js +1 -1
- package/esm2015/components/slider/slider.module.js +1 -1
- package/esm2015/components/stepper/step/step.component.js +1 -1
- 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 +5 -5
- package/esm2015/components/tabs/tabs.module.js +2 -2
- package/esm2015/components/tabs/underline/underline.component.js +3 -3
- package/esm2015/components/tag/tag.module.js +1 -1
- package/esm2015/components/text-area/text-area.component.js +5 -5
- 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 +4 -4
- package/esm2015/components/toggle/toggle.module.js +1 -1
- package/esm2015/components/tree/components/tree/tree.component.js +15 -2
- 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 +2 -2
- 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/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 +1 -1
- package/esm5/components/accordion/accordion.module.js +6 -3
- package/esm5/components/accordion/index.js +2 -1
- package/esm5/components/action/action.component.js +4 -4
- package/esm5/components/arrow/arrow.module.js +1 -1
- package/esm5/components/avatar/avatar.module.js +1 -1
- package/esm5/components/badge/badge.module.js +1 -1
- package/esm5/components/badged-content/badged-content.module.js +1 -1
- package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +1 -1
- 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 +8 -8
- package/esm5/components/calendar-month/calendar-month.module.js +1 -1
- package/esm5/components/calendar-range/calendar-range.component.js +1 -1
- package/esm5/components/carousel/carousel-autoscroll.directive.js +22 -0
- package/esm5/components/carousel/carousel-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 +19 -20
- package/esm5/components/combo-box/combo-box.module.js +1 -1
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +1 -1
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +8 -8
- 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 +9 -9
- 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 +5 -5
- package/esm5/components/input-copy/input-copy.module.js +1 -1
- package/esm5/components/input-count/input-count.component.js +4 -4
- package/esm5/components/input-count/input-count.module.js +1 -1
- package/esm5/components/input-date/input-date.component.js +18 -15
- package/esm5/components/input-date/input-date.module.js +1 -1
- package/esm5/components/input-date-range/input-date-range.component.js +17 -14
- package/esm5/components/input-date-range/input-date-range.module.js +1 -1
- package/esm5/components/input-date-time/input-date-time.component.js +21 -18
- package/esm5/components/input-date-time/input-date-time.module.js +1 -1
- package/esm5/components/input-file/index.js +2 -2
- package/esm5/components/input-file/input-file.component.js +2 -2
- package/esm5/components/input-file/input-file.module.js +1 -1
- package/esm5/components/input-inline/input-inline.component.js +6 -5
- 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 +18 -32
- 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 +4 -4
- package/esm5/components/input-password/input-password.module.js +1 -1
- package/esm5/components/input-phone/input-phone.component.js +7 -7
- 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 +23 -23
- package/esm5/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm5/components/input-slider/input-slider.component.js +4 -4
- package/esm5/components/input-tag/input-tag.component.js +32 -32
- package/esm5/components/input-tag/input-tag.module.js +1 -1
- package/esm5/components/input-time/input-time.component.js +17 -17
- 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 +8 -8
- 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 +5 -5
- package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm5/components/multi-select/multi-select.component.js +14 -14
- package/esm5/components/multi-select/multi-select.module.js +2 -2
- package/esm5/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm5/components/pagination/pagination.component.js +5 -5
- 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 -5
- package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +1 -1
- package/esm5/components/progress/pipes/progress-color-segments.pipe.js +1 -1
- package/esm5/components/progress/progress-circle/progress-circle.component.js +4 -4
- package/esm5/components/progress/progress.module.js +2 -2
- 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.module.js +1 -1
- package/esm5/components/select/select.component.js +10 -13
- package/esm5/components/select/select.module.js +1 -1
- package/esm5/components/select-option/select-option.module.js +1 -1
- package/esm5/components/slider/slider.module.js +1 -1
- package/esm5/components/stepper/step/step.component.js +1 -1
- 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 +5 -5
- package/esm5/components/tabs/tabs.module.js +2 -2
- package/esm5/components/tabs/underline/underline.component.js +3 -3
- package/esm5/components/tag/tag.module.js +1 -1
- package/esm5/components/text-area/text-area.component.js +5 -5
- 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 +4 -4
- package/esm5/components/toggle/toggle.module.js +1 -1
- package/esm5/components/tree/components/tree/tree.component.js +15 -2
- 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 +3 -3
- 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/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 +21 -9
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +4 -4
- package/fesm2015/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +2 -2
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +5 -5
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-carousel.js +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 +20 -21
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +9 -9
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js +9 -9
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +5 -5
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +18 -15
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +20 -17
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +18 -15
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +147 -147
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +6 -5
- 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 +17 -27
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +20 -20
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +8 -8
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +4 -4
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +34 -34
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +17 -17
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +9 -9
- package/fesm2015/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-line-clamp.js +9 -9
- 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.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +19 -19
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +6 -6
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +98 -0
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-progress.js +14 -14
- 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.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +11 -14
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +18 -18
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +22 -22
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +5 -5
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +4 -4
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +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 +1 -1
- 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/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 +24 -9
- package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-action.js +4 -4
- package/fesm5/taiga-ui-kit-components-action.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js +2 -2
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +7 -7
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-carousel.js +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 +20 -21
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +9 -9
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-field-error.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js +9 -9
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-copy.js +5 -5
- package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +18 -15
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +21 -18
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +18 -15
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +193 -193
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js +6 -5
- 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 +18 -32
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +23 -23
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +8 -8
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +4 -4
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +34 -34
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +17 -17
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input.js +9 -9
- package/fesm5/taiga-ui-kit-components-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-island.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-line-clamp.js +9 -9
- 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.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +19 -19
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +6 -6
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js +111 -0
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-progress.js +20 -20
- 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.map +1 -1
- package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +11 -14
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js +19 -19
- package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +23 -23
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +5 -5
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +4 -4
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tree.js +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 +2 -2
- 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/internal/primitive-calendar-range/primitive-calendar-range.component.d.ts +1 -1
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
- package/package.json +6 -5
- 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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { __decorate, __param } from 'tslib';
|
|
2
|
+
import { Inject, HostBinding, Component, ChangeDetectionStrategy, ɵɵdefineInjectable, ɵɵinject, Injectable, Directive, NgModule } from '@angular/core';
|
|
3
|
+
import { TUI_ANIMATION_OPTIONS, TUI_CLOSE_WORD, tuiSlideInTop, tuiFadeIn, TuiButtonModule } from '@taiga-ui/core';
|
|
4
|
+
import { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { AbstractTuiDialogService, AbstractTuiDialogDirective, TUI_DIALOGS } from '@taiga-ui/cdk';
|
|
7
|
+
import { TuiIdService } from '@taiga-ui/cdk/services';
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
|
|
10
|
+
let TuiPdfViewerComponent = class TuiPdfViewerComponent {
|
|
11
|
+
constructor(options, closeWord$, context) {
|
|
12
|
+
this.options = options;
|
|
13
|
+
this.closeWord$ = closeWord$;
|
|
14
|
+
this.context = context;
|
|
15
|
+
this.animation = Object.assign({ value: '' }, this.options);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
TuiPdfViewerComponent.ctorParameters = () => [
|
|
19
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_ANIMATION_OPTIONS,] }] },
|
|
20
|
+
{ type: Observable, decorators: [{ type: Inject, args: [TUI_CLOSE_WORD,] }] },
|
|
21
|
+
{ type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] }
|
|
22
|
+
];
|
|
23
|
+
__decorate([
|
|
24
|
+
HostBinding('@tuiSlideInTop'),
|
|
25
|
+
HostBinding('@tuiFadeIn')
|
|
26
|
+
], TuiPdfViewerComponent.prototype, "animation", void 0);
|
|
27
|
+
TuiPdfViewerComponent = __decorate([
|
|
28
|
+
Component({
|
|
29
|
+
selector: 'tui-pdf-viewer',
|
|
30
|
+
template: "<header class=\"t-header\">\n <h2 class=\"t-title\">{{context.label}}</h2>\n <div\n polymorpheus-outlet\n class=\"t-actions\"\n [content]=\"context.actions\"\n [context]=\"context\"\n ></div>\n <button\n tuiIconButton\n shape=\"rounded\"\n appearance=\"\"\n size=\"s\"\n icon=\"tuiIconCloseLarge\"\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"context.$implicit.complete()\"\n ></button>\n</header>\n<section\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"context.content\"\n [context]=\"context\"\n>\n <ng-template let-content>\n <iframe class=\"t-iframe\" [src]=\"content\"></iframe>\n </ng-template>\n</section>\n",
|
|
31
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
|
+
animations: [tuiSlideInTop, tuiFadeIn],
|
|
33
|
+
styles: [":host{display:block;width:100%;height:100%;box-sizing:border-box;color:var(--tui-text-01-night);background:#333639}.t-header{display:flex;align-items:center;height:4rem;padding:0 1rem 0 1.5625rem;box-shadow:inset 0 -1px #535659}.t-title{margin:0;font:var(--tui-font-text-m)}.t-actions{display:flex;margin-left:auto}.t-close{transition-property:background;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;margin-left:.75rem;color:var(--tui-text-01-night);background:rgba(255,255,255,.32)}.t-close:hover{background:rgba(255,255,255,.4)}.t-content{height:calc(100% - 4rem);overflow:hidden}.t-iframe{width:100%;height:100%}"]
|
|
34
|
+
}),
|
|
35
|
+
__param(0, Inject(TUI_ANIMATION_OPTIONS)),
|
|
36
|
+
__param(1, Inject(TUI_CLOSE_WORD)),
|
|
37
|
+
__param(2, Inject(POLYMORPHEUS_CONTEXT))
|
|
38
|
+
], TuiPdfViewerComponent);
|
|
39
|
+
|
|
40
|
+
const DIALOG = new PolymorpheusComponent(TuiPdfViewerComponent);
|
|
41
|
+
const DEFAULT_OPTIONS = { label: '', actions: '' };
|
|
42
|
+
let TuiPdfViewerService = class TuiPdfViewerService extends AbstractTuiDialogService {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.component = DIALOG;
|
|
46
|
+
this.defaultOptions = DEFAULT_OPTIONS;
|
|
47
|
+
}
|
|
48
|
+
open(content, options = {}) {
|
|
49
|
+
return super.open(content, options);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
TuiPdfViewerService.ɵprov = ɵɵdefineInjectable({ factory: function TuiPdfViewerService_Factory() { return new TuiPdfViewerService(ɵɵinject(TuiIdService)); }, token: TuiPdfViewerService, providedIn: "root" });
|
|
53
|
+
TuiPdfViewerService = __decorate([
|
|
54
|
+
Injectable({
|
|
55
|
+
providedIn: 'root',
|
|
56
|
+
})
|
|
57
|
+
], TuiPdfViewerService);
|
|
58
|
+
|
|
59
|
+
let TuiPdfViewerDirective = class TuiPdfViewerDirective extends AbstractTuiDialogDirective {
|
|
60
|
+
};
|
|
61
|
+
TuiPdfViewerDirective = __decorate([
|
|
62
|
+
Directive({
|
|
63
|
+
selector: 'ng-template[tuiPdfViewer]',
|
|
64
|
+
providers: [
|
|
65
|
+
{
|
|
66
|
+
provide: AbstractTuiDialogService,
|
|
67
|
+
useExisting: TuiPdfViewerService,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],
|
|
71
|
+
outputs: ['openChange: tuiPdfViewerChange'],
|
|
72
|
+
})
|
|
73
|
+
], TuiPdfViewerDirective);
|
|
74
|
+
|
|
75
|
+
let TuiPdfViewerModule = class TuiPdfViewerModule {
|
|
76
|
+
};
|
|
77
|
+
TuiPdfViewerModule = __decorate([
|
|
78
|
+
NgModule({
|
|
79
|
+
imports: [CommonModule, TuiButtonModule, PolymorpheusModule],
|
|
80
|
+
declarations: [TuiPdfViewerComponent, TuiPdfViewerDirective],
|
|
81
|
+
exports: [TuiPdfViewerComponent, TuiPdfViewerDirective],
|
|
82
|
+
providers: [
|
|
83
|
+
{
|
|
84
|
+
provide: TUI_DIALOGS,
|
|
85
|
+
useExisting: TuiPdfViewerService,
|
|
86
|
+
multi: true,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
entryComponents: [TuiPdfViewerComponent],
|
|
90
|
+
})
|
|
91
|
+
], TuiPdfViewerModule);
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Generated bundle index. Do not edit.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
export { TuiPdfViewerComponent, TuiPdfViewerDirective, TuiPdfViewerModule, TuiPdfViewerService };
|
|
98
|
+
//# sourceMappingURL=taiga-ui-kit-components-pdf-viewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-pdf-viewer.js","sources":["ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.component.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.service.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.directive.ts","ng://@taiga-ui/kit/components/pdf-viewer/pdf-viewer.module.ts","ng://@taiga-ui/kit/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.ts"],"sourcesContent":["import {AnimationOptions} from '@angular/animations';\nimport {ChangeDetectionStrategy, Component, HostBinding, Inject} from '@angular/core';\nimport {TuiDialog} from '@taiga-ui/cdk';\nimport {\n TUI_ANIMATION_OPTIONS,\n TUI_CLOSE_WORD,\n tuiFadeIn,\n tuiSlideInTop,\n} from '@taiga-ui/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Component({\n selector: 'tui-pdf-viewer',\n templateUrl: './pdf-viewer.template.html',\n styleUrls: ['./pdf-viewer.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [tuiSlideInTop, tuiFadeIn],\n})\nexport class TuiPdfViewerComponent<I, O> {\n @HostBinding('@tuiSlideInTop')\n @HostBinding('@tuiFadeIn')\n readonly animation = {value: '', ...this.options} as const;\n\n constructor(\n @Inject(TUI_ANIMATION_OPTIONS) private readonly options: AnimationOptions,\n @Inject(TUI_CLOSE_WORD) readonly closeWord$: Observable<string>,\n @Inject(POLYMORPHEUS_CONTEXT)\n readonly context: TuiDialog<TuiPdfViewerOptions<I>, O>,\n ) {}\n}\n","import {Injectable} from '@angular/core';\nimport {SafeResourceUrl} from '@angular/platform-browser';\nimport {AbstractTuiDialogService, TuiBaseDialogContext} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Observable} from 'rxjs';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\nconst DIALOG = new PolymorpheusComponent(TuiPdfViewerComponent);\nconst DEFAULT_OPTIONS = {label: '', actions: ''} as const;\n\ntype Content<G> = PolymorpheusContent<TuiBaseDialogContext<G> & TuiPdfViewerOptions<any>>;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiPdfViewerService extends AbstractTuiDialogService<\n TuiPdfViewerOptions<any>\n> {\n protected readonly component = DIALOG;\n protected readonly defaultOptions: TuiPdfViewerOptions<any> = DEFAULT_OPTIONS as any;\n\n open<G>(\n content: SafeResourceUrl | Content<G>,\n options: Partial<TuiPdfViewerOptions<any>> = {},\n ): Observable<G> {\n return super.open(content as Content<G>, options);\n }\n}\n","import {Directive} from '@angular/core';\nimport {AbstractTuiDialogDirective, AbstractTuiDialogService} from '@taiga-ui/cdk';\n\nimport {TuiPdfViewerService} from './pdf-viewer.service';\nimport {TuiPdfViewerOptions} from './pdf-viewer-options';\n\n@Directive({\n selector: 'ng-template[tuiPdfViewer]',\n providers: [\n {\n provide: AbstractTuiDialogService,\n useExisting: TuiPdfViewerService,\n },\n ],\n inputs: ['options: tuiPdfViewerOptions', 'open: tuiPdfViewer'],\n outputs: ['openChange: tuiPdfViewerChange'],\n})\nexport class TuiPdfViewerDirective<T> extends AbstractTuiDialogDirective<\n TuiPdfViewerOptions<T>\n> {}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TUI_DIALOGS} from '@taiga-ui/cdk';\nimport {TuiButtonModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiPdfViewerComponent} from './pdf-viewer.component';\nimport {TuiPdfViewerDirective} from './pdf-viewer.directive';\nimport {TuiPdfViewerService} from './pdf-viewer.service';\n\n@NgModule({\n imports: [CommonModule, TuiButtonModule, PolymorpheusModule],\n declarations: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n exports: [TuiPdfViewerComponent, TuiPdfViewerDirective],\n providers: [\n {\n provide: TUI_DIALOGS,\n useExisting: TuiPdfViewerService,\n multi: true,\n },\n ],\n entryComponents: [TuiPdfViewerComponent],\n})\nexport class TuiPdfViewerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqBa,qBAAqB,GAAlC,MAAa,qBAAqB;IAK9B,YACoD,OAAyB,EACxC,UAA8B,EAEtD,OAA6C;QAHN,YAAO,GAAP,OAAO,CAAkB;QACxC,eAAU,GAAV,UAAU,CAAoB;QAEtD,YAAO,GAAP,OAAO,CAAsC;QANjD,cAAS,GAAG,gBAAC,KAAK,EAAE,EAAE,IAAK,IAAI,CAAC,OAAO,CAAU,CAAC;KAOvD;EACP;;4CALQ,MAAM,SAAC,qBAAqB;YACgB,UAAU,uBAAtD,MAAM,SAAC,cAAc;4CACrB,MAAM,SAAC,oBAAoB;;AALhC;IAFC,WAAW,CAAC,gBAAgB,CAAC;IAC7B,WAAW,CAAC,YAAY,CAAC;wDACiC;AAHlD,qBAAqB;IAPjC,SAAS,CAAC;QACP,QAAQ,EAAE,gBAAgB;QAC1B,8wBAAyC;QAEzC,eAAe,EAAE,uBAAuB,CAAC,MAAM;QAC/C,UAAU,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC;;KACzC,CAAC;IAOO,WAA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,EAAE;YACP;gBACI,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,KAAK,EAAE,IAAI;aACd;SACJ;QACD,eAAe,EAAE,CAAC,qBAAqB,CAAC;KAC3C,CAAC;GACW,kBAAkB,CAAG;;ACvBlC;;;;;;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
2
|
import { Inject, ElementRef, Injectable, Pipe, Input, HostBinding, Component, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { USER_AGENT, WINDOW } from '@ng-web-apis/common';
|
|
4
4
|
import { isEdgeOlderThan, CHROMIUM_EDGE_START_VERSION, isIE, tuiDefaultProp, TuiRepeatTimesModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { timer } from 'rxjs';
|
|
6
6
|
import { map } from 'rxjs/operators';
|
|
7
|
-
import {
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
8
|
|
|
9
9
|
let AbstractTuiColorSegments = class AbstractTuiColorSegments {
|
|
10
10
|
constructor(userAgent, elementRef) {
|
|
@@ -33,15 +33,6 @@ AbstractTuiColorSegments = __decorate([
|
|
|
33
33
|
__param(1, Inject(ElementRef))
|
|
34
34
|
], AbstractTuiColorSegments);
|
|
35
35
|
|
|
36
|
-
let TuiProgressColorSegmentsAsyncPipe = class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments {
|
|
37
|
-
transform(colors) {
|
|
38
|
-
return timer(0).pipe(map(() => this.calculate(colors)));
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
TuiProgressColorSegmentsAsyncPipe = __decorate([
|
|
42
|
-
Pipe({ name: 'tuiProgressColorSegmentsAsync' })
|
|
43
|
-
], TuiProgressColorSegmentsAsyncPipe);
|
|
44
|
-
|
|
45
36
|
/**
|
|
46
37
|
* @deprecated use tuiProgressColorSegmentsAsync instead
|
|
47
38
|
* {@link TuiProgressColorSegmentsAsyncPipe}
|
|
@@ -56,6 +47,15 @@ TuiProgressColorSegmentsPipe = __decorate([
|
|
|
56
47
|
Pipe({ name: 'tuiProgressColorSegments' })
|
|
57
48
|
], TuiProgressColorSegmentsPipe);
|
|
58
49
|
|
|
50
|
+
let TuiProgressColorSegmentsAsyncPipe = class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments {
|
|
51
|
+
transform(colors) {
|
|
52
|
+
return timer(0).pipe(map(() => this.calculate(colors)));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
TuiProgressColorSegmentsAsyncPipe = __decorate([
|
|
56
|
+
Pipe({ name: 'tuiProgressColorSegmentsAsync' })
|
|
57
|
+
], TuiProgressColorSegmentsAsyncPipe);
|
|
58
|
+
|
|
59
59
|
let TuiProgressBarComponent = class TuiProgressBarComponent {
|
|
60
60
|
constructor() {
|
|
61
61
|
this.size = 'm';
|
|
@@ -107,6 +107,9 @@ TuiProgressCircleComponent.ctorParameters = () => [
|
|
|
107
107
|
{ type: Window, decorators: [{ type: Inject, args: [WINDOW,] }] },
|
|
108
108
|
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
109
109
|
];
|
|
110
|
+
__decorate([
|
|
111
|
+
ViewChild('progressCircle', { static: true })
|
|
112
|
+
], TuiProgressCircleComponent.prototype, "progressCircle", void 0);
|
|
110
113
|
__decorate([
|
|
111
114
|
Input(),
|
|
112
115
|
tuiDefaultProp()
|
|
@@ -128,9 +131,6 @@ __decorate([
|
|
|
128
131
|
__decorate([
|
|
129
132
|
HostBinding('style.--progress-percentage')
|
|
130
133
|
], TuiProgressCircleComponent.prototype, "progressPercentage", null);
|
|
131
|
-
__decorate([
|
|
132
|
-
ViewChild('progressCircle', { static: true })
|
|
133
|
-
], TuiProgressCircleComponent.prototype, "progressCircle", void 0);
|
|
134
134
|
TuiProgressCircleComponent = __decorate([
|
|
135
135
|
Component({
|
|
136
136
|
selector: 'tui-progress-circle',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-progress.js","sources":["ng://@taiga-ui/kit/components/progress/pipes/abstract-color-segments.ts","ng://@taiga-ui/kit/components/progress/pipes/progress-color-segments-async.pipe.ts","ng://@taiga-ui/kit/components/progress/pipes/progress-color-segments.pipe.ts","ng://@taiga-ui/kit/components/progress/progress-bar/progress-bar.component.ts","ng://@taiga-ui/kit/components/progress/progress-circle/progress-circle.component.ts","ng://@taiga-ui/kit/components/progress/progress-label/progress-label.component.ts","ng://@taiga-ui/kit/components/progress/progress-segmented/progress-segmented.component.ts","ng://@taiga-ui/kit/components/progress/progress.module.ts","ng://@taiga-ui/kit/components/progress/taiga-ui-kit-components-progress.ts"],"sourcesContent":["import {ElementRef, Inject, Injectable, PipeTransform} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE} from '@taiga-ui/cdk';\n\n@Injectable()\nexport abstract class AbstractTuiColorSegments<T> implements PipeTransform {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n public abstract transform(colors: string[]): T;\n\n protected calculate(colors: string[]): string {\n if (this.isOldBrowsers) {\n return colors[0];\n }\n\n const elementWidth = this.elementRef.nativeElement.offsetWidth;\n const segmentWidth = Math.ceil(elementWidth / colors.length);\n const colorsString = colors.reduce(\n (acc, color, i) =>\n `${acc}, ${color} ${i * segmentWidth}px ${(i + 1) * segmentWidth}px`,\n '',\n );\n\n return `linear-gradient(to right ${colorsString})`;\n }\n}\n","import {Pipe} from '@angular/core';\nimport {Observable, timer} from 'rxjs';\nimport {map} from 'rxjs/operators';\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n@Pipe({name: 'tuiProgressColorSegmentsAsync'})\nexport class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments<\n Observable<string>\n> {\n transform(colors: string[]): Observable<string> {\n return timer(0).pipe(map(() => this.calculate(colors)));\n }\n}\n","import {Pipe} from '@angular/core';\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n/**\n * @deprecated use tuiProgressColorSegmentsAsync instead\n * {@link TuiProgressColorSegmentsAsyncPipe}\n * example: `<progress [color]=\"colors | tuiProgressColorSegmentsAsync | async\">`\n */\n@Pipe({name: 'tuiProgressColorSegments'})\nexport class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments<string> {\n transform(colors: string[]): string {\n return this.calculate(colors);\n }\n}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'progress[tuiProgressBar]',\n template: '',\n styleUrls: ['./progress-bar.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressBarComponent {\n @Input()\n @HostBinding('style.--tui-progress-color')\n color?: string;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';\n\n// @dynamic\n@Component({\n selector: 'tui-progress-circle',\n templateUrl: './progress-circle.template.html',\n styleUrls: ['./progress-circle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressCircleComponent {\n @Input()\n @tuiDefaultProp()\n value = 0;\n\n @Input()\n @tuiDefaultProp()\n max = 1;\n\n @Input()\n @HostBinding('style.--tui-progress-color')\n @tuiDefaultProp()\n color: string | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeXL = 'm';\n\n @HostBinding('style.--progress-percentage')\n get progressPercentage(): number {\n return this.value / this.max;\n }\n\n @ViewChild('progressCircle', {static: true})\n private readonly progressCircle!: ElementRef<SVGCircleElement>;\n\n get oldEdgeRadiusFallback(): number | null {\n if (!isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent)) {\n return null;\n }\n\n const strokeWidth = parseInt(\n this.windowRef.getComputedStyle(this.progressCircle.nativeElement)\n .strokeWidth,\n 10,\n );\n\n return (this.elementRef.nativeElement.offsetWidth - strokeWidth) / 2;\n }\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'label[tuiProgressLabel]',\n templateUrl: './progress-label.template.html',\n styleUrls: ['./progress-label.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressLabelComponent {}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\nexport function nonNegativeInt(value: number): boolean {\n return Number.isInteger(value) && value >= 0;\n}\n\nexport function positiveInt(value: number): boolean {\n return Number.isInteger(value) && value > 0;\n}\n\n@Component({\n selector: 'tui-progress-segmented',\n templateUrl: './progress-segmented.template.html',\n styleUrls: ['./progress-segmented.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressSegmentedComponent {\n @Input()\n @tuiDefaultProp(nonNegativeInt, 'Must be non-negative integer between 0 and max')\n value = 0;\n\n @Input()\n @tuiDefaultProp(positiveInt, 'Must be positive integer')\n max = 1;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n colors: string | ReadonlyArray<string> = 'var(--tui-primary)';\n\n getActiveColor(index: number = 0): string | null {\n return typeof this.colors === 'string'\n ? this.colors\n : this.colors[index] || this.colors[this.colors.length - 1];\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\nimport {TuiProgressColorSegmentsAsyncPipe} from './pipes/progress-color-segments-async.pipe';\nimport {TuiProgressColorSegmentsPipe} from './pipes/progress-color-segments.pipe';\nimport {TuiProgressBarComponent} from './progress-bar/progress-bar.component';\nimport {TuiProgressCircleComponent} from './progress-circle/progress-circle.component';\nimport {TuiProgressLabelComponent} from './progress-label/progress-label.component';\nimport {TuiProgressSegmentedComponent} from './progress-segmented/progress-segmented.component';\n\n@NgModule({\n imports: [CommonModule, TuiRepeatTimesModule],\n declarations: [\n TuiProgressBarComponent,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressCircleComponent,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n exports: [\n TuiProgressBarComponent,\n TuiProgressCircleComponent,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n})\nexport class TuiProgressModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAKsB,wBAAwB,GAA9C,MAAsB,wBAAwB;IAK1C,YACyC,SAAiB,EACjB,UAAmC;QADnC,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAyB;QAN3D,kBAAa,GAC1B,eAAe,CAAC,2BAA2B,EAAE,IAAI,CAAC,SAAS,CAAC;YAC5D,IAAI,CAAC,IAAI,CAAC,SAA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1
|
+
{"version":3,"file":"taiga-ui-kit-components-progress.js","sources":["ng://@taiga-ui/kit/components/progress/pipes/abstract-color-segments.ts","ng://@taiga-ui/kit/components/progress/pipes/progress-color-segments.pipe.ts","ng://@taiga-ui/kit/components/progress/pipes/progress-color-segments-async.pipe.ts","ng://@taiga-ui/kit/components/progress/progress-bar/progress-bar.component.ts","ng://@taiga-ui/kit/components/progress/progress-circle/progress-circle.component.ts","ng://@taiga-ui/kit/components/progress/progress-label/progress-label.component.ts","ng://@taiga-ui/kit/components/progress/progress-segmented/progress-segmented.component.ts","ng://@taiga-ui/kit/components/progress/progress.module.ts","ng://@taiga-ui/kit/components/progress/taiga-ui-kit-components-progress.ts"],"sourcesContent":["import {ElementRef, Inject, Injectable, PipeTransform} from '@angular/core';\nimport {USER_AGENT} from '@ng-web-apis/common';\nimport {CHROMIUM_EDGE_START_VERSION, isEdgeOlderThan, isIE} from '@taiga-ui/cdk';\n\n@Injectable()\nexport abstract class AbstractTuiColorSegments<T> implements PipeTransform {\n private readonly isOldBrowsers =\n isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent) ||\n isIE(this.userAgent);\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n\n public abstract transform(colors: string[]): T;\n\n protected calculate(colors: string[]): string {\n if (this.isOldBrowsers) {\n return colors[0];\n }\n\n const elementWidth = this.elementRef.nativeElement.offsetWidth;\n const segmentWidth = Math.ceil(elementWidth / colors.length);\n const colorsString = colors.reduce(\n (acc, color, i) =>\n `${acc}, ${color} ${i * segmentWidth}px ${(i + 1) * segmentWidth}px`,\n '',\n );\n\n return `linear-gradient(to right ${colorsString})`;\n }\n}\n","import {Pipe} from '@angular/core';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n/**\n * @deprecated use tuiProgressColorSegmentsAsync instead\n * {@link TuiProgressColorSegmentsAsyncPipe}\n * example: `<progress [color]=\"colors | tuiProgressColorSegmentsAsync | async\">`\n */\n@Pipe({name: 'tuiProgressColorSegments'})\nexport class TuiProgressColorSegmentsPipe extends AbstractTuiColorSegments<string> {\n transform(colors: string[]): string {\n return this.calculate(colors);\n }\n}\n","import {Pipe} from '@angular/core';\nimport {Observable, timer} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\nimport {AbstractTuiColorSegments} from './abstract-color-segments';\n\n@Pipe({name: 'tuiProgressColorSegmentsAsync'})\nexport class TuiProgressColorSegmentsAsyncPipe extends AbstractTuiColorSegments<\n Observable<string>\n> {\n transform(colors: string[]): Observable<string> {\n return timer(0).pipe(map(() => this.calculate(colors)));\n }\n}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\n@Component({\n selector: 'progress[tuiProgressBar]',\n template: '',\n styleUrls: ['./progress-bar.component.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressBarComponent {\n @Input()\n @HostBinding('style.--tui-progress-color')\n color?: string;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS = 'm';\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n ViewChild,\n} from '@angular/core';\nimport {USER_AGENT, WINDOW} from '@ng-web-apis/common';\nimport {\n CHROMIUM_EDGE_START_VERSION,\n isEdgeOlderThan,\n tuiDefaultProp,\n} from '@taiga-ui/cdk';\nimport {TuiSizeS, TuiSizeXL} from '@taiga-ui/core';\n\n// @dynamic\n@Component({\n selector: 'tui-progress-circle',\n templateUrl: './progress-circle.template.html',\n styleUrls: ['./progress-circle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressCircleComponent {\n @ViewChild('progressCircle', {static: true})\n private readonly progressCircle!: ElementRef<SVGCircleElement>;\n\n @Input()\n @tuiDefaultProp()\n value = 0;\n\n @Input()\n @tuiDefaultProp()\n max = 1;\n\n @Input()\n @HostBinding('style.--tui-progress-color')\n @tuiDefaultProp()\n color: string | null = null;\n\n @Input()\n @HostBinding('attr.data-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeXL = 'm';\n\n @HostBinding('style.--progress-percentage')\n get progressPercentage(): number {\n return this.value / this.max;\n }\n\n get oldEdgeRadiusFallback(): number | null {\n if (!isEdgeOlderThan(CHROMIUM_EDGE_START_VERSION, this.userAgent)) {\n return null;\n }\n\n const strokeWidth = parseInt(\n this.windowRef.getComputedStyle(this.progressCircle.nativeElement)\n .strokeWidth,\n 10,\n );\n\n return (this.elementRef.nativeElement.offsetWidth - strokeWidth) / 2;\n }\n\n constructor(\n @Inject(USER_AGENT) private readonly userAgent: string,\n @Inject(WINDOW) private readonly windowRef: Window,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {}\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\n\n@Component({\n selector: 'label[tuiProgressLabel]',\n templateUrl: './progress-label.template.html',\n styleUrls: ['./progress-label.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressLabelComponent {}\n","import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\nimport {TuiSizeS} from '@taiga-ui/core';\n\nexport function nonNegativeInt(value: number): boolean {\n return Number.isInteger(value) && value >= 0;\n}\n\nexport function positiveInt(value: number): boolean {\n return Number.isInteger(value) && value > 0;\n}\n\n@Component({\n selector: 'tui-progress-segmented',\n templateUrl: './progress-segmented.template.html',\n styleUrls: ['./progress-segmented.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiProgressSegmentedComponent {\n @Input()\n @tuiDefaultProp(nonNegativeInt, 'Must be non-negative integer between 0 and max')\n value = 0;\n\n @Input()\n @tuiDefaultProp(positiveInt, 'Must be positive integer')\n max = 1;\n\n @Input()\n @HostBinding('attr.data-size')\n size: TuiSizeS = 'm';\n\n @Input()\n @tuiDefaultProp()\n colors: string | ReadonlyArray<string> = 'var(--tui-primary)';\n\n getActiveColor(index: number = 0): string | null {\n return typeof this.colors === 'string'\n ? this.colors\n : this.colors[index] || this.colors[this.colors.length - 1];\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiRepeatTimesModule} from '@taiga-ui/cdk';\n\nimport {TuiProgressColorSegmentsPipe} from './pipes/progress-color-segments.pipe';\nimport {TuiProgressColorSegmentsAsyncPipe} from './pipes/progress-color-segments-async.pipe';\nimport {TuiProgressBarComponent} from './progress-bar/progress-bar.component';\nimport {TuiProgressCircleComponent} from './progress-circle/progress-circle.component';\nimport {TuiProgressLabelComponent} from './progress-label/progress-label.component';\nimport {TuiProgressSegmentedComponent} from './progress-segmented/progress-segmented.component';\n\n@NgModule({\n imports: [CommonModule, TuiRepeatTimesModule],\n declarations: [\n TuiProgressBarComponent,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressCircleComponent,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n exports: [\n TuiProgressBarComponent,\n TuiProgressCircleComponent,\n TuiProgressColorSegmentsPipe,\n TuiProgressColorSegmentsAsyncPipe,\n TuiProgressLabelComponent,\n TuiProgressSegmentedComponent,\n ],\n})\nexport class TuiProgressModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAKsB,wBAAwB,GAA9C,MAAsB,wBAAwB;IAK1C,YACyC,SAAiB,EACjB,UAAmC;QADnC,cAAS,GAAT,SAAS,CAAQ;QACjB,eAAU,GAAV,UAAU,CAAyB;QAN3D,kBAAa,GAC1B,eAAe,CAAC,2BAA2B,EAAE,IAAI,CAAC,SAAS,CAAC;YAC5D,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAKrB;IAIM,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
1
|
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding,
|
|
2
|
+
import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl, FormsModule } from '@angular/forms';
|
|
4
4
|
import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiHoveredModule, TuiPressedModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { TuiModeDirective, TuiWrapperModule } from '@taiga-ui/core';
|
|
@@ -60,6 +60,9 @@ TuiRadioBlockComponent.ctorParameters = () => [
|
|
|
60
60
|
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
61
61
|
{ type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] }
|
|
62
62
|
];
|
|
63
|
+
__decorate([
|
|
64
|
+
ViewChild(TuiRadioComponent)
|
|
65
|
+
], TuiRadioBlockComponent.prototype, "radio", void 0);
|
|
63
66
|
__decorate([
|
|
64
67
|
Input()
|
|
65
68
|
], TuiRadioBlockComponent.prototype, "item", void 0);
|
|
@@ -86,9 +89,6 @@ __decorate([
|
|
|
86
89
|
Input(),
|
|
87
90
|
tuiDefaultProp()
|
|
88
91
|
], TuiRadioBlockComponent.prototype, "pseudoDisabled", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
ViewChild(TuiRadioComponent)
|
|
91
|
-
], TuiRadioBlockComponent.prototype, "radio", void 0);
|
|
92
92
|
__decorate([
|
|
93
93
|
HostBinding('class._disabled')
|
|
94
94
|
], TuiRadioBlockComponent.prototype, "computedDisabled", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["ng://@taiga-ui/kit/components/radio-block/radio-block.component.ts","ng://@taiga-ui/kit/components/radio-block/radio-block.module.ts","ng://@taiga-ui/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-block',\n templateUrl: './radio-block.template.html',\n styleUrls: ['./radio-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioBlockComponent),\n },\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = 'l';\n\n @Input()\n @HostBinding('class._hidden_radio')\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-block.js","sources":["ng://@taiga-ui/kit/components/radio-block/radio-block.component.ts","ng://@taiga-ui/kit/components/radio-block/radio-block.module.ts","ng://@taiga-ui/kit/components/radio-block/taiga-ui-kit-components-radio-block.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiHorizontalDirection,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeS,\n} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-block',\n templateUrl: './radio-block.template.html',\n styleUrls: ['./radio-block.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioBlockComponent),\n },\n ],\n})\nexport class TuiRadioBlockComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-align')\n @tuiDefaultProp()\n contentAlign: TuiHorizontalDirection = 'right';\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeS | TuiSizeL = 'l';\n\n @Input()\n @HostBinding('class._hidden_radio')\n @tuiDefaultProp()\n hideRadio = false;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('class._active')\n get checked(): boolean {\n return this.value === this.item && this.hideRadio;\n }\n\n get checkboxSize(): TuiSizeL {\n return this.size === 'l' ? 'l' : 'm';\n }\n\n get appearance(): TuiAppearance {\n if (!this.modeDirective || !this.modeDirective.mode) {\n return this.checked\n ? TuiAppearance.WhiteblockActive\n : TuiAppearance.Whiteblock;\n }\n\n return this.checked ? TuiAppearance.Primary : TuiAppearance.Secondary;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n onModelChange(value: T) {\n this.updateValue(value);\n }\n}\n","import {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiHoveredModule, TuiPressedModule} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioBlockComponent} from './radio-block.component';\n\n@NgModule({\n imports: [\n FormsModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioBlockComponent],\n exports: [TuiRadioBlockComponent],\n})\nexport class TuiRadioBlockModule {}\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A,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GAxCpB,sBAAsB,CAiGlC;;ICzHY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAX/B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACnBnC;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["ng://@taiga-ui/kit/components/radio-group/radio-group.component.ts","ng://@taiga-ui/kit/components/radio-group/radio-group.module.ts","ng://@taiga-ui/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector: 'tui-radio-group',\n templateUrl: './radio-group.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRadioGroupComponent {\n @Input()\n @tuiDefaultProp()\n name = `tui-radio-group-${TuiRadioGroupComponent.index++}`;\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-group.js","sources":["ng://@taiga-ui/kit/components/radio-group/radio-group.component.ts","ng://@taiga-ui/kit/components/radio-group/radio-group.module.ts","ng://@taiga-ui/kit/components/radio-group/taiga-ui-kit-components-radio-group.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\n@Component({\n selector: 'tui-radio-group',\n templateUrl: './radio-group.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiRadioGroupComponent {\n private static index = 0;\n\n @Input()\n @tuiDefaultProp()\n name = `tui-radio-group-${TuiRadioGroupComponent.index++}`;\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRadioGroupComponent} from './radio-group.component';\n\n@NgModule({\n declarations: [TuiRadioGroupComponent],\n exports: [TuiRadioGroupComponent],\n})\nexport class TuiRadioGroupModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;IAQa,sBAAsB,8BAAnC,MAAa,sBAAsB;IAAnC;QAKI,SAAI,GAAG,mBAAmB,wBAAsB,CAAC,KAAK,EAAE,EAAE,CAAC;KAC9D;EAAA;AALkB,4BAAK,GAAG,CAAC,CAAC;AAIzB;IAFC,KAAK,EAAE;IACP,cAAc,EAAE;oDAC0C;AALlD,sBAAsB;IALlC,SAAS,CAAC;QACP,QAAQ,EAAE,iBAAiB;QAC3B,uCAA0C;QAC1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;KAClD,CAAC;GACW,sBAAsB,CAMlC;;ICNY,mBAAmB,GAAhC,MAAa,mBAAmB;EAAG;AAAtB,mBAAmB;IAJ/B,QAAQ,CAAC;QACN,YAAY,EAAE,CAAC,sBAAsB,CAAC;QACtC,OAAO,EAAE,CAAC,sBAAsB,CAAC;KACpC,CAAC;GACW,mBAAmB,CAAG;;ACRnC;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding,
|
|
2
|
+
import { Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl, FormsModule } from '@angular/forms';
|
|
4
4
|
import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { TuiModeDirective } from '@taiga-ui/core';
|
|
@@ -45,6 +45,9 @@ TuiRadioLabeledComponent.ctorParameters = () => [
|
|
|
45
45
|
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
46
46
|
{ type: TuiModeDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiModeDirective,] }] }
|
|
47
47
|
];
|
|
48
|
+
__decorate([
|
|
49
|
+
ViewChild(TuiRadioComponent)
|
|
50
|
+
], TuiRadioLabeledComponent.prototype, "radio", void 0);
|
|
48
51
|
__decorate([
|
|
49
52
|
Input()
|
|
50
53
|
], TuiRadioLabeledComponent.prototype, "item", void 0);
|
|
@@ -61,9 +64,6 @@ __decorate([
|
|
|
61
64
|
Input(),
|
|
62
65
|
tuiDefaultProp()
|
|
63
66
|
], TuiRadioLabeledComponent.prototype, "pseudoDisabled", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
ViewChild(TuiRadioComponent)
|
|
66
|
-
], TuiRadioLabeledComponent.prototype, "radio", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
HostBinding('class._disabled')
|
|
69
69
|
], TuiRadioLabeledComponent.prototype, "computedDisabled", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.component.ts","ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.module.ts","ng://@taiga-ui/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-labeled',\n templateUrl: './radio-labeled.template.html',\n styleUrls: ['./radio-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioLabeledComponent),\n },\n ],\n})\nexport class TuiRadioLabeledComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @Input()\n item?: T;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-labeled.js","sources":["ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.component.ts","ng://@taiga-ui/kit/components/radio-labeled/radio-labeled.module.ts","ng://@taiga-ui/kit/components/radio-labeled/taiga-ui-kit-components-radio-labeled.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiBrightness, TuiModeDirective, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioComponent} from '@taiga-ui/kit/components/radio';\n\n@Component({\n selector: 'tui-radio-labeled',\n templateUrl: './radio-labeled.template.html',\n styleUrls: ['./radio-labeled.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioLabeledComponent),\n },\n ],\n})\nexport class TuiRadioLabeledComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild(TuiRadioComponent)\n private readonly radio?: TuiRadioComponent<T>;\n\n @Input()\n item?: T;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Optional()\n @Inject(TuiModeDirective)\n private readonly modeDirective: TuiModeDirective | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.radio ? this.radio.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return !!this.radio && this.radio.focused;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n @HostBinding('attr.data-mode')\n get mode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onModelChange(value: T) {\n this.updateValue(value);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiRadioModule} from '@taiga-ui/kit/components/radio';\n\nimport {TuiRadioLabeledComponent} from './radio-labeled.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiRadioModule,\n ],\n declarations: [TuiRadioLabeledComponent],\n exports: [TuiRadioLabeledComponent],\n})\nexport class TuiRadioLabeledModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;IAqCa,wBAAwB,gCAArC,MAAa,wBACT,SAAQ,0BAA6B;IAsBrC,YAII,OAAyB,EACE,iBAAoC,EAG9C,aAAsC;QAEvD,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFjB,kBAAa,GAAb,aAAa,CAAyB;QAlB3D,SAAI,GAAa,GAAG,CAAC;QAIrB,oBAAe,GAA0B,4BAA4B,CAAC;QAItE,mBAAc,GAAG,KAAK,CAAC;KAatB;IAED,IAAI,sBAAsB;QACtB,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAChE;IAED,IAAI,OAAO;QACP,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC;KAC7C;IAGD,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,cAAc,CAAC;KAC/C;IAGD,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAA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WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,gBAAgB,CAAC,CAAA;GA9BpB,wBAAwB,CAqEpC;;IChFY,qBAAqB,GAAlC,MAAa,qBAAqB;EAAG;AAAxB,qBAAqB;IAbjC,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;SACjB;QACD,YAAY,EAAE,CAAC,wBAAwB,CAAC;QACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACtC,CAAC;GACW,qBAAqB,CAAG;;AC1BrC;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { Optional, Self, Inject, ChangeDetectorRef, ElementRef, Input, HostBinding,
|
|
2
|
+
import { Optional, Self, Inject, ChangeDetectorRef, ElementRef, ViewChildren, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl, FormsModule } from '@angular/forms';
|
|
4
|
-
import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, ALWAYS_FALSE_HANDLER,
|
|
4
|
+
import { AbstractTuiNullableControl, EMPTY_QUERY, TUI_DEFAULT_IDENTITY_MATCHER, ALWAYS_FALSE_HANDLER, isNativeFocusedIn, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR } from '@taiga-ui/cdk';
|
|
5
5
|
import { TuiRadioLabeledComponent, TuiRadioLabeledModule } from '@taiga-ui/kit/components/radio-labeled';
|
|
6
6
|
import { CommonModule } from '@angular/common';
|
|
7
7
|
import { TuiRadioGroupModule } from '@taiga-ui/kit/components/radio-group';
|
|
@@ -12,14 +12,14 @@ let TuiRadioListComponent = TuiRadioListComponent_1 = class TuiRadioListComponen
|
|
|
12
12
|
constructor(control, changeDetectorRef, elementRef) {
|
|
13
13
|
super(control, changeDetectorRef);
|
|
14
14
|
this.elementRef = elementRef;
|
|
15
|
+
this.radioButtons = EMPTY_QUERY;
|
|
15
16
|
this.items = [];
|
|
16
17
|
this.size = 'm';
|
|
17
18
|
this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
|
|
18
19
|
this.orientation = 'vertical';
|
|
20
|
+
this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
|
|
19
21
|
// @bad TODO: Remove & { index: number }
|
|
20
22
|
this.itemContent = ({ $implicit, }) => String($implicit);
|
|
21
|
-
this.disabledItemHandler = ALWAYS_FALSE_HANDLER;
|
|
22
|
-
this.radioButtons = EMPTY_QUERY;
|
|
23
23
|
}
|
|
24
24
|
get nativeFocusableElement() {
|
|
25
25
|
const focusableRadioButton = this.radioButtons.find(radioButton => radioButton.nativeFocusableElement !== null);
|
|
@@ -51,6 +51,9 @@ TuiRadioListComponent.ctorParameters = () => [
|
|
|
51
51
|
{ type: ChangeDetectorRef, decorators: [{ type: Inject, args: [ChangeDetectorRef,] }] },
|
|
52
52
|
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] }
|
|
53
53
|
];
|
|
54
|
+
__decorate([
|
|
55
|
+
ViewChildren(TuiRadioLabeledComponent)
|
|
56
|
+
], TuiRadioListComponent.prototype, "radioButtons", void 0);
|
|
54
57
|
__decorate([
|
|
55
58
|
Input(),
|
|
56
59
|
tuiDefaultProp()
|
|
@@ -72,14 +75,11 @@ __decorate([
|
|
|
72
75
|
__decorate([
|
|
73
76
|
Input(),
|
|
74
77
|
tuiDefaultProp()
|
|
75
|
-
], TuiRadioListComponent.prototype, "
|
|
78
|
+
], TuiRadioListComponent.prototype, "disabledItemHandler", void 0);
|
|
76
79
|
__decorate([
|
|
77
80
|
Input(),
|
|
78
81
|
tuiDefaultProp()
|
|
79
|
-
], TuiRadioListComponent.prototype, "
|
|
80
|
-
__decorate([
|
|
81
|
-
ViewChildren(TuiRadioLabeledComponent)
|
|
82
|
-
], TuiRadioListComponent.prototype, "radioButtons", void 0);
|
|
82
|
+
], TuiRadioListComponent.prototype, "itemContent", void 0);
|
|
83
83
|
TuiRadioListComponent = TuiRadioListComponent_1 = __decorate([
|
|
84
84
|
Component({
|
|
85
85
|
selector: 'tui-radio-list',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["ng://@taiga-ui/kit/components/radio-list/radio-list.component.ts","ng://@taiga-ui/kit/components/radio-list/radio-list.module.ts","ng://@taiga-ui/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-radio-list',\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioListComponent),\n },\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<T> = [];\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'vertical';\n\n
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio-list.js","sources":["ng://@taiga-ui/kit/components/radio-list/radio-list.component.ts","ng://@taiga-ui/kit/components/radio-list/radio-list.module.ts","ng://@taiga-ui/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n QueryList,\n Self,\n ViewChildren,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n ALWAYS_FALSE_HANDLER,\n EMPTY_QUERY,\n isNativeFocusedIn,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiBooleanHandler,\n tuiDefaultProp,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TuiOrientationT, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core';\nimport {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\n@Component({\n selector: 'tui-radio-list',\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioListComponent),\n },\n ],\n})\nexport class TuiRadioListComponent<T> extends AbstractTuiNullableControl<T> {\n @ViewChildren(TuiRadioLabeledComponent)\n private readonly radioButtons: QueryList<TuiRadioLabeledComponent<{}>> = EMPTY_QUERY;\n\n @Input()\n @tuiDefaultProp()\n items: ReadonlyArray<T> = [];\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = 'm';\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @HostBinding('attr.data-tui-host-orientation')\n @tuiDefaultProp()\n orientation: TuiOrientationT = 'vertical';\n\n @Input()\n @tuiDefaultProp()\n disabledItemHandler: TuiBooleanHandler<T> = ALWAYS_FALSE_HANDLER;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n ) {\n super(control, changeDetectorRef);\n }\n\n // @bad TODO: Remove & { index: number }\n @Input()\n @tuiDefaultProp()\n itemContent: PolymorpheusContent<TuiValueContentContext<T> & {index: number}> = ({\n $implicit,\n }) => String($implicit);\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n const focusableRadioButton = this.radioButtons.find(\n radioButton => radioButton.nativeFocusableElement !== null,\n );\n\n return focusableRadioButton ? focusableRadioButton.nativeFocusableElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n computeId(index: number): string {\n return `${this.id}-${index}`;\n }\n\n itemIsDisabled(item: T): boolean {\n return this.disabledItemHandler(item);\n }\n\n getContentContext(\n item: T,\n index: number,\n active: boolean,\n ): TuiValueContentContext<T> & {index: number} {\n return {$implicit: item, index, active};\n }\n\n onModelChange(value: T) {\n this.updateValue(value);\n }\n\n itemIsActive(item: T): boolean {\n return this.value === null\n ? item === null\n : this.identityMatcher(this.value, item);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiRadioGroupModule} from '@taiga-ui/kit/components/radio-group';\nimport {TuiRadioLabeledModule} from '@taiga-ui/kit/components/radio-labeled';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiRadioListComponent} from './radio-list.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n PolymorpheusModule,\n TuiRadioGroupModule,\n TuiRadioLabeledModule,\n ],\n declarations: [TuiRadioListComponent],\n exports: [TuiRadioListComponent],\n})\nexport class TuiRadioListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IA2Ca,qBAAqB,6BAAlC,MAAa,qBAAyB,SAAQ,0BAA6B;IA0BvE,YAII,OAAyB,EACE,iBAAoC,EAC1B,UAAmC;QAExE,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAFG,eAAU,GAAV,UAAU,CAAyB;QA9B3D,iBAAY,GAA4C,WAAW,CAAC;QAIrF,UAAK,GAAqB,EAAE,CAAC;QAK7B,SAAI,GAAa,GAAG,CAAC;QAIrB,oBAAe,GAA0B,4BAA4B,CAAC;QAKtE,gBAAW,GAAoB,UAAU,CAAC;QAI1C,wBAAmB,GAAyB,oBAAoB,CAAC;;QAgBjE,gBAAW,GAAqE,CAAC,EAC7E,SAAS,GACZ,KAAK,MAAM,CAAC,SAAS,CAAC,CAAC;KAPvB;IASD,IAAI,sBAAsB;QACtB,MAAM,oBAAoB,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAC/C,WAAW,IAAI,WAAW,CAAC,sBAAsB,KAAK,IAAI,CAC7D,CAAC;QAEF,OAAO,oBAAoB,GAAG,oBAAoB,CAAC,sBAAsB,GAAG,IAAI,CAAC;KACpF;IAED,IAAI,OAAO;QACP,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;KAC3D;IAED,SAAS,CAAC,KAAa;QACnB,OAAO,GAAG,IAAI,CAAC,EAAE,IAAI,KA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UAAU,CAAC,MAAM,uBAAqB,CAAC;aACvD;SACJ;;KACJ,CAAC;IA4BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;GAhCd,qBAAqB,CAiFjC;;ICxGY,kBAAkB,GAA/B,MAAa,kBAAkB;EAAG;AAArB,kBAAkB;IAX9B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,WAAW;YACX,kBAAkB;YAClB,mBAAmB;YACnB,qBAAqB;SACxB;QACD,YAAY,EAAE,CAAC,qBAAqB,CAAC;QACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;KACnC,CAAC;GACW,kBAAkB,CAAG;;ACpBlC;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'tslib';
|
|
2
|
-
import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding,
|
|
2
|
+
import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, ViewChild, Input, HostBinding, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, TuiCheckedModule, TuiFocusableModule, TuiFocusedModule, TuiHoveredModule, TuiPressedModule, TuiFocusVisibleModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiWrapperModule } from '@taiga-ui/core';
|
|
@@ -87,6 +87,9 @@ TuiRadioComponent.ctorParameters = () => [
|
|
|
87
87
|
{ type: undefined, decorators: [{ type: Inject, args: [TUI_RADIO_OPTIONS,] }] },
|
|
88
88
|
{ type: TuiRadioGroupComponent, decorators: [{ type: Optional }, { type: Inject, args: [TuiRadioGroupComponent,] }] }
|
|
89
89
|
];
|
|
90
|
+
__decorate([
|
|
91
|
+
ViewChild('focusableElement')
|
|
92
|
+
], TuiRadioComponent.prototype, "focusableElement", void 0);
|
|
90
93
|
__decorate([
|
|
91
94
|
Input()
|
|
92
95
|
], TuiRadioComponent.prototype, "item", void 0);
|
|
@@ -107,9 +110,6 @@ __decorate([
|
|
|
107
110
|
Input(),
|
|
108
111
|
tuiDefaultProp()
|
|
109
112
|
], TuiRadioComponent.prototype, "pseudoDisabled", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
ViewChild('focusableElement')
|
|
112
|
-
], TuiRadioComponent.prototype, "focusableElement", void 0);
|
|
113
113
|
__decorate([
|
|
114
114
|
HostBinding('class._disabled')
|
|
115
115
|
], TuiRadioComponent.prototype, "computedDisabled", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["ng://@taiga-ui/kit/components/radio/radio-options.ts","ng://@taiga-ui/kit/components/radio/radio.component.ts","ng://@taiga-ui/kit/components/radio/radio.module.ts","ng://@taiga-ui/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeL} from '@taiga-ui/core/types';\n\nexport interface RadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: RadioOptions = {\n size: 'm',\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<RadioOptions>(\n 'Default parameters for radio component',\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\nimport {RadioOptions, TUI_RADIO_OPTIONS} from './radio-options';\n\n// @dynamic\n@Component({\n selector: 'tui-radio',\n templateUrl: './radio.template.html',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioComponent),\n },\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-radio.js","sources":["ng://@taiga-ui/kit/components/radio/radio-options.ts","ng://@taiga-ui/kit/components/radio/radio.component.ts","ng://@taiga-ui/kit/components/radio/radio.module.ts","ng://@taiga-ui/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiAppearance} from '@taiga-ui/core/enums';\nimport {TuiSizeL} from '@taiga-ui/core/types';\n\nexport interface RadioOptions {\n readonly size: TuiSizeL;\n readonly appearances: Readonly<{\n unchecked: string;\n checked: string;\n }>;\n}\n\n/** Default values for the checkbox options. */\nexport const TUI_RADIO_DEFAULT_OPTIONS: RadioOptions = {\n size: 'm',\n appearances: {\n unchecked: TuiAppearance.Outline,\n checked: TuiAppearance.Primary,\n },\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken<RadioOptions>(\n 'Default parameters for radio component',\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n","import {AnimationOptions} from '@angular/animations';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiNullableControl,\n isNativeFocused,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiIdentityMatcher,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {TUI_ANIMATION_OPTIONS, tuiScaleIn, TuiSizeL} from '@taiga-ui/core';\nimport {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group';\n\nimport {RadioOptions, TUI_RADIO_OPTIONS} from './radio-options';\n\n// @dynamic\n@Component({\n selector: 'tui-radio',\n templateUrl: './radio.template.html',\n styleUrls: ['./radio.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRadioComponent),\n },\n ],\n animations: [tuiScaleIn],\n})\nexport class TuiRadioComponent<T>\n extends AbstractTuiNullableControl<T>\n implements TuiFocusableElementAccessor\n{\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\n\n @Input()\n item?: T;\n\n @Input()\n @tuiDefaultProp()\n identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n @tuiDefaultProp()\n name: string | null = null;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @Input()\n @tuiDefaultProp()\n pseudoDisabled = false;\n\n readonly animation = {value: '', ...this.animationOptions} as const;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_ANIMATION_OPTIONS)\n private readonly animationOptions: AnimationOptions,\n @Inject(TUI_RADIO_OPTIONS)\n private readonly options: RadioOptions,\n @Optional()\n @Inject(TuiRadioGroupComponent)\n private readonly radioGroup: TuiRadioGroupComponent | null,\n ) {\n super(control, changeDetectorRef);\n }\n\n get appearance(): string {\n return this.checked\n ? this.options.appearances.checked\n : this.options.appearances.unchecked;\n }\n\n @HostBinding('class._disabled')\n get computedDisabled(): boolean {\n return this.disabled || this.pseudoDisabled;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return !this.focusableElement || this.computedDisabled\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get checked(): boolean {\n return this.value === null\n ? this.item === null\n : this.item !== undefined && this.identityMatcher(this.value, this.item);\n }\n\n get computedName(): string | number | null {\n return this.name || this.radioGroupName || this.controlName || null;\n }\n\n get isFocusable(): boolean {\n return !this.readOnly && this.computedFocusable;\n }\n\n onChecked(checked: boolean) {\n if (checked) {\n this.updateValue(this.item !== undefined ? this.item : this.fallbackValue);\n }\n }\n\n onFocused(focused: boolean) {\n this.updateFocused(focused);\n }\n\n onHovered(hovered: boolean) {\n this.updateHovered(hovered);\n }\n\n onPressed(pressed: boolean) {\n this.updatePressed(pressed);\n }\n\n onFocusVisible(focusVisible: boolean) {\n this.updateFocusVisible(focusVisible);\n }\n\n private get radioGroupName(): string | null {\n return this.radioGroup === null ? null : this.radioGroup.name;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiFocusVisibleModule,\n TuiHoveredModule,\n TuiPressedModule,\n} from '@taiga-ui/cdk';\nimport {TuiWrapperModule} from '@taiga-ui/core';\n\nimport {TuiRadioComponent} from './radio.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiCheckedModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiWrapperModule,\n ],\n declarations: [TuiRadioComponent],\n exports: [TuiRadioComponent],\n})\nexport class TuiRadioModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYA;MACa,yBAAyB,GAAiB;IACnD,IAAI,EAAE,GAAG;IACT,WAAW,EAAE;QACT,SAAS;QACT,OAAO;KACV;EACH;MAEW,iBAAiB,GAAG,IAAI,cAAc,CAC/C,wCAAwC,EACxC;IACI,OAAO,EAAE,MAAM,yBAAyB;CAC3C;;;ACKL;IAca,iBAAiB,yBAA9B,MAAa,iBACT,SAAQ,0BAA6B;IA4BrC,YAII,OAAyB,EACE,iBAAoC,EAE9C,gBAAkC,EAElC,OAAqB,EAGrB,UAAyC;QAE1D,KAAK,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAPjB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAElC,YAAO,GAAP,OAAO,CAAc;QAGrB,eAAU,GAAV,UAAU,CAA+B;QA7B9D,oBAAe,GAA0B,4BAA4B,CAAC;QAItE,SAAI,GAAkB,IAAI,CAAC;QAK3B,SAAI,GAAa,IAAI,CAAC,OAAO,CAAC,IAAI,C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AAE,CAAC,UAAU,CAAC;;KAC3B,CAAC;IA+BO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,qBAAqB,CAAC,CAAA;IAE7B,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IAEzB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,MAAM,CAAC,sBAAsB,CAAC,CAAA;GAxC1B,iBAAiB,CA0G7B;;IC1HY,cAAc,GAA3B,MAAa,cAAc;EAAG;AAAjB,cAAc;IAd1B,QAAQ,CAAC;QACN,OAAO,EAAE;YACL,YAAY;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,qBAAqB;YACrB,gBAAgB;SACnB;QACD,YAAY,EAAE,CAAC,iBAAiB,CAAC;QACjC,OAAO,EAAE,CAAC,iBAAiB,CAAC;KAC/B,CAAC;GACW,cAAc,CAAG;;AC5B9B;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-range.js","sources":["ng://@taiga-ui/kit/components/range/range.component.ts","ng://@taiga-ui/kit/components/range/range.module.ts","ng://@taiga-ui/kit/components/range/taiga-ui-kit-components-range.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocusedIn,\n round,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider, DOT_WIDTH} from '@taiga-ui/kit/abstract';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-range',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: ['../../abstract/slider/slider.common.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRangeComponent),\n },\n ],\n})\nexport class TuiRangeComponent\n extends AbstractTuiSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.computedDisabled || !this.dotLeft || !this.dotRight) {\n return null;\n }\n\n return this.isLeftFocusable\n ? this.dotLeft.nativeElement\n : this.dotRight.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n get left(): number {\n return 100 * this.getFractionFromValue(this.value[0]);\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value[1]);\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n protected processStep(increment: boolean, right: boolean) {\n const fraction = this.getFractionFromValue(right ? this.value[1] : this.value[0]);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value, right);\n }\n\n protected processValue(value: number, right: boolean) {\n const guardedValue = this.valueGuard(value);\n\n if (right === true) {\n this.updateEnd(guardedValue);\n } else {\n this.updateStart(guardedValue);\n }\n }\n\n protected getCalibratedFractionFromEvents(\n rect: ClientRect,\n clientX: number,\n isMouseDownRight: boolean,\n ): number {\n const value =\n clientX -\n rect.left -\n DOT_WIDTH[this.size] / 2 -\n (isMouseDownRight ? DOT_WIDTH[this.size] : 0);\n const total = rect.width - 2 * DOT_WIDTH[this.size];\n\n return round(value / total, TUI_FLOATING_PRECISION);\n }\n\n private updateStart(value: number) {\n this.updateValue([Math.min(value, this.value[1]), this.value[1]]);\n }\n\n private updateEnd(value: number) {\n this.updateValue([this.value[0], Math.max(value, this.value[0])]);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\nimport {TuiRangeComponent} from './range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiActiveZoneModule,\n TuiFocusVisibleModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiRangeComponent],\n exports: [TuiRangeComponent],\n})\nexport class TuiRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAwBA;IAaa,iBAAiB,yBAA9B,MAAa,iBACT,SAAQ,iBAAmC;IAG3C,YAII,OAAyB,EACE,iBAAoC,EAC7C,WAAqB,EACF,UAAmC,EAC7C,YAA0C;QAErE,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAHxB,eAAU,GAAV,UAAU,CAAyB;KAI3E;IAED,IAAI,sBAAsB;QACtB,IAAI,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC1D,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,eAAe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;aACnD;SACJ;;KACJ,CAAC;IAMO,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,IAAI,EAAE,CAAA;IACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;GAZrB,iBAAiB,CAqF7B;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-range.js","sources":["ng://@taiga-ui/kit/components/range/range.component.ts","ng://@taiga-ui/kit/components/range/range.module.ts","ng://@taiga-ui/kit/components/range/taiga-ui-kit-components-range.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n forwardRef,\n Inject,\n Optional,\n Self,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n isNativeFocusedIn,\n round,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {AbstractTuiSlider, DOT_WIDTH} from '@taiga-ui/kit/abstract';\nimport {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants';\nimport {TUI_FROM_TO_TEXTS} from '@taiga-ui/kit/tokens';\nimport {Observable} from 'rxjs';\n\n// @dynamic\n@Component({\n selector: 'tui-range',\n templateUrl: '../../abstract/slider/slider.common.template.html',\n styleUrls: ['../../abstract/slider/slider.common.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiRangeComponent),\n },\n ],\n})\nexport class TuiRangeComponent\n extends AbstractTuiSlider<[number, number]>\n implements TuiFocusableElementAccessor\n{\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(DOCUMENT) documentRef: Document,\n @Inject(ElementRef) private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(TUI_FROM_TO_TEXTS) fromToTexts$: Observable<[string, string]>,\n ) {\n super(control, changeDetectorRef, documentRef, fromToTexts$);\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n if (this.computedDisabled || !this.dotLeft || !this.dotRight) {\n return null;\n }\n\n return this.isLeftFocusable\n ? this.dotLeft.nativeElement\n : this.dotRight.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocusedIn(this.elementRef.nativeElement);\n }\n\n get left(): number {\n return 100 * this.getFractionFromValue(this.value[0]);\n }\n\n get right(): number {\n return 100 - 100 * this.getFractionFromValue(this.value[1]);\n }\n\n protected getFallbackValue(): [number, number] {\n return [0, 0];\n }\n\n protected processStep(increment: boolean, right: boolean) {\n const fraction = this.getFractionFromValue(right ? this.value[1] : this.value[0]);\n const step = this.computedStep;\n const value = this.getValueFromFraction(\n increment ? fraction + step : fraction - step,\n );\n\n this.processValue(value, right);\n }\n\n protected processValue(value: number, right: boolean) {\n const guardedValue = this.valueGuard(value);\n\n if (right === true) {\n this.updateEnd(guardedValue);\n } else {\n this.updateStart(guardedValue);\n }\n }\n\n protected getCalibratedFractionFromEvents(\n rect: ClientRect,\n clientX: number,\n isMouseDownRight: boolean,\n ): number {\n const value =\n clientX -\n rect.left -\n DOT_WIDTH[this.size] / 2 -\n (isMouseDownRight ? DOT_WIDTH[this.size] : 0);\n const total = rect.width - 2 * DOT_WIDTH[this.size];\n\n return round(value / total, TUI_FLOATING_PRECISION);\n }\n\n private updateStart(value: number) {\n this.updateValue([Math.min(value, this.value[1]), this.value[1]]);\n }\n\n private updateEnd(value: number) {\n this.updateValue([this.value[0], Math.max(value, this.value[0])]);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {\n TuiActiveZoneModule,\n TuiFocusableModule,\n TuiFocusVisibleModule,\n TuiRepeatTimesModule,\n} from '@taiga-ui/cdk';\nimport {TuiFormatNumberPipeModule} from '@taiga-ui/core';\n\nimport {TuiRangeComponent} from './range.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiRepeatTimesModule,\n TuiFocusableModule,\n TuiActiveZoneModule,\n TuiFocusVisibleModule,\n TuiFormatNumberPipeModule,\n ],\n declarations: [TuiRangeComponent],\n exports: [TuiRangeComponent],\n})\nexport class TuiRangeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAwBA;IAaa,iBAAiB,yBAA9B,MAAa,iBACT,SAAQ,iBAAmC;IAG3C,YAII,OAAyB,EACE,iBAAoC,EAC7C,WAAqB,EACF,UAAmC,EAC7C,YAA0C;QAErE,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAHxB,eAAU,GAAV,UAAU,CAAyB;KAI3E;IAED,IAAI,sBAAsB;QACtB,IAAI,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC1D,OAAO,IAAI,CAAC;SACf;QAED,OAAO,IAAI,CAAC,eAAe;cACrB,IAAI,CAAC,OAAO,CAAC,aAAa;cAC1B,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC;KACrC;IAED,IAAI,OAAO;QACP,OAAO,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;KAC3D;IAED,IAAI,IAAI;QACJ,OAAO,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KACzD;IAED,IAAI,KAAK;QACL,OAAO,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CA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