@taiga-ui/kit 2.21.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/bundles/taiga-ui-kit-components-accordion.umd.js +5 -6
- package/bundles/taiga-ui-kit-components-accordion.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-accordion.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-action.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-action.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-arrow.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-avatar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-badge.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badge.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-badged-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js +6 -6
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-breadcrumbs.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-month.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-checkbox.umd.js.map +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 +13 -4
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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 +7 -2
- package/bundles/taiga-ui-kit-components-input-count.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-count.umd.min.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/bundles/taiga-ui-kit-components-input-date.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-date.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.js +191 -191
- package/bundles/taiga-ui-kit-components-input-file.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-file.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-inline.umd.js +1 -1
- 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 +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 +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 +8 -2
- package/bundles/taiga-ui-kit-components-input-number.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-number.umd.min.js +1 -1
- 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 -2
- 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 +1 -1
- 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 +2 -2
- package/bundles/taiga-ui-kit-components-input-phone.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-input-phone.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-input-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-slider.umd.js +2 -2
- 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 +2 -2
- package/bundles/taiga-ui-kit-components-input-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-input-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-input-time.umd.js +2 -2
- 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 +1 -1
- 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 +5 -5
- 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.map +1 -1
- package/bundles/taiga-ui-kit-components-marker-icon.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js +16 -12
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.js +18 -45
- package/bundles/taiga-ui-kit-components-multi-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-multi-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-pagination.umd.js +1 -1
- 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 +338 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-pdf-viewer.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components-progress.umd.js +61 -25
- package/bundles/taiga-ui-kit-components-progress.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-progress.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-progress.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio-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 +1 -1
- package/bundles/taiga-ui-kit-components-radio-labeled.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-radio.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.js +23 -14
- package/bundles/taiga-ui-kit-components-select-option.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-select-option.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.js +9 -3
- package/bundles/taiga-ui-kit-components-select.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-select.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-select.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.js +2 -2
- package/bundles/taiga-ui-kit-components-slider.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-components-slider.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-stepper.umd.js +1 -1
- 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 +3 -3
- 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 +2 -2
- package/bundles/taiga-ui-kit-components-tag.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-components-tag.umd.min.js +2 -2
- package/bundles/taiga-ui-kit-components-tag.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-components-text-area.umd.js +19 -2
- 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 +1 -1
- 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 +653 -0
- package/bundles/taiga-ui-kit-components-tree.umd.js.map +1 -0
- package/bundles/taiga-ui-kit-components-tree.umd.min.js +16 -0
- package/bundles/taiga-ui-kit-components-tree.umd.min.js.map +1 -0
- package/bundles/taiga-ui-kit-components.umd.js +36 -20
- 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.map +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 +2 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-dropdown-selection.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-directives-highlight.umd.js.map +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.map +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 +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-internal-primitive-calendar-range.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js +21 -21
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-pipes-filter-by-input.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify-content.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-pipes-stringify.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.js +14 -14
- package/bundles/taiga-ui-kit-tokens.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js +1 -1
- package/bundles/taiga-ui-kit-tokens.umd.min.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.js +0 -2
- package/bundles/taiga-ui-kit-utils-format.umd.js.map +1 -1
- package/bundles/taiga-ui-kit-utils-format.umd.min.js.map +1 -1
- package/components/accordion/taiga-ui-kit-components-accordion.metadata.json +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/taiga-ui-kit-components-calendar-month.metadata.json +1 -1
- package/components/calendar-range/taiga-ui-kit-components-calendar-range.metadata.json +1 -1
- package/components/checkbox/taiga-ui-kit-components-checkbox.metadata.json +1 -1
- package/components/combo-box/combo-box.component.d.ts +3 -3
- package/components/combo-box/taiga-ui-kit-components-combo-box.metadata.json +1 -1
- 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/taiga-ui-kit-components-filter.metadata.json +1 -1
- package/components/index.d.ts +4 -2
- package/components/input/taiga-ui-kit-components-input.metadata.json +1 -1
- package/components/input-copy/taiga-ui-kit-components-input-copy.metadata.json +1 -1
- package/components/input-count/input-count.component.d.ts +1 -0
- package/components/input-count/taiga-ui-kit-components-input-count.metadata.json +1 -1
- package/components/input-date/taiga-ui-kit-components-input-date.metadata.json +1 -1
- package/components/input-date-range/taiga-ui-kit-components-input-date-range.metadata.json +1 -1
- 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/taiga-ui-kit-components-input-file.metadata.json +1 -1
- package/components/input-inline/taiga-ui-kit-components-input-inline.metadata.json +1 -1
- package/components/input-month/taiga-ui-kit-components-input-month.metadata.json +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 +1 -0
- 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/taiga-ui-kit-components-input-password.metadata.json +1 -1
- package/components/input-phone/taiga-ui-kit-components-input-phone.metadata.json +1 -1
- package/components/input-phone-international/taiga-ui-kit-components-input-phone-international.metadata.json +1 -1
- package/components/input-range/taiga-ui-kit-components-input-range.metadata.json +1 -1
- package/components/input-slider/taiga-ui-kit-components-input-slider.metadata.json +1 -1
- package/components/input-tag/taiga-ui-kit-components-input-tag.metadata.json +1 -1
- 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/taiga-ui-kit-components-line-clamp.metadata.json +1 -1
- package/components/marker-icon/taiga-ui-kit-components-marker-icon.metadata.json +1 -1
- package/components/multi-select/index.d.ts +0 -1
- package/components/multi-select/multi-select.component.d.ts +6 -5
- package/components/multi-select/taiga-ui-kit-components-multi-select.metadata.json +1 -1
- package/components/multi-select-option/multi-select-option.component.d.ts +1 -1
- package/components/multi-select-option/taiga-ui-kit-components-multi-select-option.metadata.json +1 -1
- package/components/pagination/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 +20 -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 +8 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.d.ts +4 -0
- package/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.metadata.json +1 -0
- package/components/progress/index.d.ts +4 -2
- package/components/progress/pipes/abstract-color-segments.d.ts +9 -0
- package/components/progress/pipes/progress-color-segments-async.pipe.d.ts +5 -0
- package/components/progress/pipes/progress-color-segments.pipe.d.ts +7 -6
- package/components/progress/taiga-ui-kit-components-progress.metadata.json +1 -1
- package/components/radio/taiga-ui-kit-components-radio.metadata.json +1 -1
- package/components/radio-group/taiga-ui-kit-components-radio-group.metadata.json +1 -1
- package/components/radio-labeled/taiga-ui-kit-components-radio-labeled.metadata.json +1 -1
- package/components/range/taiga-ui-kit-components-range.metadata.json +1 -1
- package/components/select/select.component.d.ts +1 -1
- package/components/select/taiga-ui-kit-components-select.metadata.json +1 -1
- package/components/select-option/select-option.component.d.ts +4 -2
- package/components/select-option/taiga-ui-kit-components-select-option.metadata.json +1 -1
- package/components/slider/taiga-ui-kit-components-slider.metadata.json +1 -1
- package/components/stepper/taiga-ui-kit-components-stepper.metadata.json +1 -1
- package/components/tabs/index.d.ts +2 -2
- package/components/tabs/taiga-ui-kit-components-tabs.metadata.json +1 -1
- 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 +2 -0
- package/components/toggle/index.d.ts +1 -1
- package/components/toggle/taiga-ui-kit-components-toggle.metadata.json +1 -1
- package/components/tree/components/tree/tree.component.d.ts +10 -0
- package/components/tree/components/tree-item/tree-item.component.d.ts +17 -0
- package/components/tree/components/tree-item/tree-item.providers.d.ts +3 -0
- package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +9 -0
- package/components/tree/directives/tree-children.directive.d.ts +5 -0
- package/components/tree/directives/tree-controller.directive.d.ts +13 -0
- package/components/tree/directives/tree-item-controller.directive.d.ts +8 -0
- package/components/tree/directives/tree-node.directive.d.ts +10 -0
- package/components/tree/index.d.ts +13 -0
- package/components/tree/misc/tree.constants.d.ts +5 -0
- package/components/tree/misc/tree.interfaces.d.ts +22 -0
- package/components/tree/misc/tree.service.d.ts +12 -0
- package/components/tree/misc/tree.tokens.d.ts +11 -0
- package/components/tree/package.json +13 -0
- package/components/tree/taiga-ui-kit-components-tree.d.ts +4 -0
- package/components/tree/taiga-ui-kit-components-tree.metadata.json +1 -0
- package/components/tree/tree.module.d.ts +2 -0
- 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/taiga-ui-kit-directives-dropdown-selection.metadata.json +1 -1
- package/directives/highlight/taiga-ui-kit-directives-highlight.metadata.json +1 -1
- package/directives/index.d.ts +1 -1
- package/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.metadata.json +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/components/accordion/accordion-item/accordion-item.component.js +5 -6
- package/esm2015/components/accordion/accordion.component.js +2 -2
- package/esm2015/components/accordion/accordion.module.js +3 -3
- package/esm2015/components/action/action.component.js +2 -2
- package/esm2015/components/arrow/arrow.module.js +1 -1
- package/esm2015/components/avatar/avatar.component.js +2 -2
- package/esm2015/components/avatar/avatar.module.js +1 -1
- package/esm2015/components/badge/badge.component.js +3 -3
- package/esm2015/components/badge/badge.module.js +1 -1
- package/esm2015/components/badged-content/badged-content.component.js +1 -1
- package/esm2015/components/badged-content/badged-content.module.js +1 -1
- package/esm2015/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm2015/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/esm2015/components/breadcrumbs/breadcrumbs.module.js +2 -2
- package/esm2015/components/breadcrumbs/index.js +2 -2
- package/esm2015/components/calendar-month/calendar-month.component.js +2 -2
- package/esm2015/components/calendar-month/calendar-month.module.js +1 -1
- package/esm2015/components/calendar-range/calendar-range.component.js +2 -2
- package/esm2015/components/checkbox/checkbox.module.js +1 -1
- package/esm2015/components/combo-box/combo-box.component.js +10 -5
- package/esm2015/components/combo-box/combo-box.module.js +1 -1
- package/esm2015/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm2015/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- 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 +1 -1
- package/esm2015/components/filter/filter.module.js +1 -1
- package/esm2015/components/index.js +5 -3
- package/esm2015/components/input/input.component.js +2 -2
- 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 +2 -2
- package/esm2015/components/input-copy/input-copy.module.js +1 -1
- package/esm2015/components/input-count/input-count.component.js +8 -3
- package/esm2015/components/input-count/input-count.module.js +1 -1
- package/esm2015/components/input-date/input-date.component.js +3 -3
- package/esm2015/components/input-date/input-date.module.js +1 -1
- package/esm2015/components/input-date-range/input-date-range.component.js +2 -2
- package/esm2015/components/input-date-range/input-date-range.module.js +1 -1
- package/esm2015/components/input-date-time/input-date-time.component.js +2 -2
- package/esm2015/components/input-date-time/input-date-time.module.js +1 -1
- package/esm2015/components/input-file/file/file.component.js +3 -3
- package/esm2015/components/input-file/index.js +2 -2
- package/esm2015/components/input-file/input-file.component.js +3 -3
- package/esm2015/components/input-file/input-file.module.js +1 -1
- package/esm2015/components/input-inline/input-inline.component.js +1 -1
- package/esm2015/components/input-inline/input-inline.module.js +1 -1
- package/esm2015/components/input-month/input-month.component.js +1 -1
- package/esm2015/components/input-month-range/input-month-range.component.js +1 -1
- package/esm2015/components/input-number/input-number.component.js +9 -3
- 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 +3 -3
- package/esm2015/components/input-password/input-password.module.js +3 -1
- package/esm2015/components/input-phone/input-phone.component.js +3 -3
- 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 +2 -2
- package/esm2015/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm2015/components/input-range/input-range.component.js +3 -3
- package/esm2015/components/input-slider/input-slider.component.js +3 -3
- package/esm2015/components/input-tag/input-tag.component.js +3 -3
- package/esm2015/components/input-tag/input-tag.module.js +1 -1
- package/esm2015/components/input-time/input-time.component.js +3 -3
- 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 +1 -1
- package/esm2015/components/line-clamp/line-clamp.module.js +1 -1
- 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/index.js +1 -2
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.component.js +10 -4
- package/esm2015/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm2015/components/multi-select/multi-select.component.js +12 -20
- package/esm2015/components/multi-select/multi-select.module.js +2 -4
- package/esm2015/components/multi-select-option/multi-select-option.component.js +8 -10
- package/esm2015/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm2015/components/pagination/pagination.component.js +1 -1
- 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 +50 -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 +24 -0
- package/esm2015/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
- package/esm2015/components/progress/index.js +5 -3
- package/esm2015/components/progress/pipes/abstract-color-segments.js +32 -0
- package/esm2015/components/progress/pipes/progress-color-segments-async.pipe.js +15 -0
- package/esm2015/components/progress/pipes/progress-color-segments.pipe.js +12 -28
- package/esm2015/components/progress/progress-circle/progress-circle.component.js +2 -2
- package/esm2015/components/progress/progress-label/progress-label.component.js +1 -1
- package/esm2015/components/progress/progress-segmented/progress-segmented.component.js +2 -2
- package/esm2015/components/progress/progress.module.js +4 -1
- package/esm2015/components/radio/radio.component.js +1 -1
- package/esm2015/components/radio/radio.module.js +1 -1
- package/esm2015/components/radio-group/radio-group.module.js +1 -1
- package/esm2015/components/radio-labeled/radio-labeled.component.js +1 -1
- package/esm2015/components/range/range.component.js +3 -3
- package/esm2015/components/range/range.module.js +1 -1
- package/esm2015/components/select/select.component.js +6 -4
- package/esm2015/components/select/select.module.js +1 -1
- package/esm2015/components/select-option/select-option.component.js +20 -12
- package/esm2015/components/select-option/select-option.module.js +1 -1
- package/esm2015/components/slider/slider.component.js +3 -3
- package/esm2015/components/slider/slider.module.js +1 -1
- package/esm2015/components/stepper/step/step.component.js +2 -2
- package/esm2015/components/stepper/stepper.component.js +1 -1
- 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 +2 -2
- package/esm2015/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
- package/esm2015/components/tabs/tabs.module.js +2 -2
- package/esm2015/components/tag/tag.component.js +3 -3
- package/esm2015/components/tag/tag.module.js +1 -1
- package/esm2015/components/text-area/text-area.component.js +10 -4
- package/esm2015/components/text-area/text-area.module.js +5 -2
- 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 +2 -2
- package/esm2015/components/toggle/toggle.module.js +1 -1
- package/esm2015/components/tree/components/tree/tree.component.js +44 -0
- package/esm2015/components/tree/components/tree-item/tree-item.component.js +58 -0
- package/esm2015/components/tree/components/tree-item/tree-item.providers.js +18 -0
- package/esm2015/components/tree/components/tree-item-content/tree-item-content.component.js +41 -0
- package/esm2015/components/tree/directives/tree-children.directive.js +23 -0
- package/esm2015/components/tree/directives/tree-controller.directive.js +62 -0
- package/esm2015/components/tree/directives/tree-item-controller.directive.js +36 -0
- package/esm2015/components/tree/directives/tree-node.directive.js +35 -0
- package/esm2015/components/tree/index.js +13 -0
- package/esm2015/components/tree/misc/tree.constants.js +9 -0
- package/esm2015/components/tree/misc/tree.interfaces.js +1 -0
- package/esm2015/components/tree/misc/tree.service.js +40 -0
- package/esm2015/components/tree/misc/tree.tokens.js +17 -0
- package/esm2015/components/tree/taiga-ui-kit-components-tree.js +5 -0
- package/esm2015/components/tree/tree.module.js +38 -0
- package/esm2015/directives/dropdown-context/dropdown-context.directive.js +1 -1
- 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 +3 -2
- package/esm2015/directives/dropdown-selection/dropdown-selection.module.js +1 -1
- 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 +1 -1
- package/esm2015/directives/lazy-loading/lazy-loading.module.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/types/status.js +1 -1
- package/esm2015/utils/format/string-hash-to-hsl.js +1 -3
- package/esm2015/utils/mask/index.js +2 -2
- package/esm5/components/accordion/accordion-item/accordion-item.component.js +5 -6
- package/esm5/components/accordion/accordion.component.js +2 -2
- package/esm5/components/accordion/accordion.module.js +3 -3
- package/esm5/components/action/action.component.js +2 -2
- package/esm5/components/arrow/arrow.module.js +1 -1
- package/esm5/components/avatar/avatar.component.js +2 -2
- package/esm5/components/avatar/avatar.module.js +1 -1
- package/esm5/components/badge/badge.component.js +3 -3
- package/esm5/components/badge/badge.module.js +1 -1
- package/esm5/components/badged-content/badged-content.component.js +1 -1
- package/esm5/components/badged-content/badged-content.module.js +1 -1
- package/esm5/components/breadcrumbs/breadcrumbs-wrapper.component.js +2 -2
- package/esm5/components/breadcrumbs/breadcrumbs.component.js +2 -2
- package/esm5/components/breadcrumbs/breadcrumbs.module.js +2 -2
- package/esm5/components/breadcrumbs/index.js +2 -2
- package/esm5/components/calendar-month/calendar-month.component.js +2 -2
- package/esm5/components/calendar-month/calendar-month.module.js +1 -1
- package/esm5/components/calendar-range/calendar-range.component.js +2 -2
- package/esm5/components/checkbox/checkbox.module.js +1 -1
- package/esm5/components/combo-box/combo-box.component.js +14 -5
- package/esm5/components/combo-box/combo-box.module.js +1 -1
- package/esm5/components/data-list-wrapper/data-list-group-wrapper.component.js +2 -2
- package/esm5/components/data-list-wrapper/data-list-wrapper.component.js +2 -2
- 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 +1 -1
- package/esm5/components/filter/filter.module.js +1 -1
- package/esm5/components/index.js +5 -3
- package/esm5/components/input/input.component.js +2 -2
- 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 +2 -2
- package/esm5/components/input-copy/input-copy.module.js +1 -1
- package/esm5/components/input-count/input-count.component.js +8 -3
- package/esm5/components/input-count/input-count.module.js +1 -1
- package/esm5/components/input-date/input-date.component.js +3 -3
- package/esm5/components/input-date/input-date.module.js +1 -1
- package/esm5/components/input-date-range/input-date-range.component.js +2 -2
- package/esm5/components/input-date-range/input-date-range.module.js +1 -1
- package/esm5/components/input-date-time/input-date-time.component.js +2 -2
- package/esm5/components/input-date-time/input-date-time.module.js +1 -1
- package/esm5/components/input-file/file/file.component.js +3 -3
- package/esm5/components/input-file/index.js +2 -2
- package/esm5/components/input-file/input-file.component.js +3 -3
- package/esm5/components/input-file/input-file.module.js +1 -1
- package/esm5/components/input-inline/input-inline.component.js +1 -1
- package/esm5/components/input-inline/input-inline.module.js +1 -1
- package/esm5/components/input-month/input-month.component.js +1 -1
- package/esm5/components/input-month-range/input-month-range.component.js +1 -1
- package/esm5/components/input-number/input-number.component.js +9 -3
- 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 +3 -3
- package/esm5/components/input-password/input-password.module.js +3 -1
- package/esm5/components/input-phone/input-phone.component.js +3 -3
- 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 +2 -2
- package/esm5/components/input-phone-international/input-phone-international.module.js +1 -1
- package/esm5/components/input-range/input-range.component.js +3 -3
- package/esm5/components/input-slider/input-slider.component.js +3 -3
- package/esm5/components/input-tag/input-tag.component.js +3 -3
- package/esm5/components/input-tag/input-tag.module.js +1 -1
- package/esm5/components/input-time/input-time.component.js +3 -3
- 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 +1 -1
- package/esm5/components/line-clamp/line-clamp.module.js +1 -1
- 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/index.js +1 -2
- package/esm5/components/multi-select/multi-select-group/multi-select-group.component.js +10 -4
- package/esm5/components/multi-select/multi-select-group/multi-select-group.directive.js +1 -1
- package/esm5/components/multi-select/multi-select.component.js +12 -24
- package/esm5/components/multi-select/multi-select.module.js +2 -4
- package/esm5/components/multi-select-option/multi-select-option.component.js +14 -11
- package/esm5/components/multi-select-option/multi-select-option.module.js +1 -1
- package/esm5/components/pagination/pagination.component.js +1 -1
- 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 +51 -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 +27 -0
- package/esm5/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.js +5 -0
- package/esm5/components/progress/index.js +5 -3
- package/esm5/components/progress/pipes/abstract-color-segments.js +35 -0
- package/esm5/components/progress/pipes/progress-color-segments-async.pipe.js +21 -0
- package/esm5/components/progress/pipes/progress-color-segments.pipe.js +16 -30
- package/esm5/components/progress/progress-circle/progress-circle.component.js +2 -2
- package/esm5/components/progress/progress-label/progress-label.component.js +1 -1
- package/esm5/components/progress/progress-segmented/progress-segmented.component.js +2 -2
- package/esm5/components/progress/progress.module.js +4 -1
- package/esm5/components/radio/radio.component.js +1 -1
- package/esm5/components/radio/radio.module.js +1 -1
- package/esm5/components/radio-group/radio-group.module.js +1 -1
- package/esm5/components/radio-labeled/radio-labeled.component.js +1 -1
- package/esm5/components/range/range.component.js +3 -3
- package/esm5/components/range/range.module.js +1 -1
- package/esm5/components/select/select.component.js +10 -4
- package/esm5/components/select/select.module.js +1 -1
- package/esm5/components/select-option/select-option.component.js +24 -14
- package/esm5/components/select-option/select-option.module.js +1 -1
- package/esm5/components/slider/slider.component.js +3 -3
- package/esm5/components/slider/slider.module.js +1 -1
- package/esm5/components/stepper/step/step.component.js +2 -2
- package/esm5/components/stepper/stepper.component.js +1 -1
- 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 +2 -2
- package/esm5/components/tabs/tabs-with-more/tabs-with-more.component.js +3 -3
- package/esm5/components/tabs/tabs.module.js +2 -2
- package/esm5/components/tag/tag.component.js +3 -3
- package/esm5/components/tag/tag.module.js +1 -1
- package/esm5/components/text-area/text-area.component.js +18 -4
- package/esm5/components/text-area/text-area.module.js +5 -2
- 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 +2 -2
- package/esm5/components/toggle/toggle.module.js +1 -1
- package/esm5/components/tree/components/tree/tree.component.js +53 -0
- package/esm5/components/tree/components/tree-item/tree-item.component.js +68 -0
- package/esm5/components/tree/components/tree-item/tree-item.providers.js +18 -0
- package/esm5/components/tree/components/tree-item-content/tree-item-content.component.js +50 -0
- package/esm5/components/tree/directives/tree-children.directive.js +25 -0
- package/esm5/components/tree/directives/tree-controller.directive.js +64 -0
- package/esm5/components/tree/directives/tree-item-controller.directive.js +38 -0
- package/esm5/components/tree/directives/tree-node.directive.js +40 -0
- package/esm5/components/tree/index.js +13 -0
- package/esm5/components/tree/misc/tree.constants.js +9 -0
- package/esm5/components/tree/misc/tree.interfaces.js +1 -0
- package/esm5/components/tree/misc/tree.service.js +44 -0
- package/esm5/components/tree/misc/tree.tokens.js +17 -0
- package/esm5/components/tree/taiga-ui-kit-components-tree.js +5 -0
- package/esm5/components/tree/tree.module.js +41 -0
- package/esm5/directives/dropdown-context/dropdown-context.directive.js +1 -1
- 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 +3 -2
- package/esm5/directives/dropdown-selection/dropdown-selection.module.js +1 -1
- 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 +1 -1
- package/esm5/directives/lazy-loading/lazy-loading.module.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 +2 -2
- 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/types/status.js +1 -1
- package/esm5/utils/format/string-hash-to-hsl.js +1 -3
- package/esm5/utils/mask/index.js +2 -2
- package/fesm2015/taiga-ui-kit-components-accordion.js +5 -6
- package/fesm2015/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-action.js +2 -2
- package/fesm2015/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js +1 -1
- package/fesm2015/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badge.js +2 -2
- package/fesm2015/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js +1 -1
- package/fesm2015/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js +4 -4
- package/fesm2015/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js +1 -1
- package/fesm2015/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-combo-box.js +9 -4
- package/fesm2015/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-data-list-wrapper.js +2 -2
- 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 +1 -1
- package/fesm2015/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-copy.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-count.js +7 -2
- package/fesm2015/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-range.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date-time.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-date.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-file.js +148 -148
- package/fesm2015/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month-range.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-month.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-number.js +8 -2
- package/fesm2015/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-password.js +5 -4
- package/fesm2015/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-phone.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-range.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-slider.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-tag.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input-time.js +2 -2
- package/fesm2015/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-input.js +1 -1
- 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 +2 -2
- package/fesm2015/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js +7 -9
- package/fesm2015/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-multi-select.js +21 -40
- package/fesm2015/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js +1 -1
- package/fesm2015/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js +108 -0
- package/fesm2015/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components-progress.js +41 -16
- package/fesm2015/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-radio-labeled.js +1 -1
- package/fesm2015/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-range.js +2 -2
- package/fesm2015/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select-option.js +19 -11
- package/fesm2015/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-select.js +5 -3
- package/fesm2015/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-slider.js +2 -2
- package/fesm2015/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js +1 -1
- package/fesm2015/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tabs.js +3 -3
- package/fesm2015/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tag.js +2 -2
- package/fesm2015/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-text-area.js +12 -3
- package/fesm2015/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-toggle.js +2 -2
- package/fesm2015/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm2015/taiga-ui-kit-components-tree.js +371 -0
- package/fesm2015/taiga-ui-kit-components-tree.js.map +1 -0
- package/fesm2015/taiga-ui-kit-components.js +4 -2
- package/fesm2015/taiga-ui-kit-components.js.map +1 -1
- 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 +2 -1
- package/fesm2015/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm2015/taiga-ui-kit-directives-highlight.js.map +1 -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/fesm2015/taiga-ui-kit-utils-format.js +0 -2
- package/fesm2015/taiga-ui-kit-utils-format.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-accordion.js +5 -6
- package/fesm5/taiga-ui-kit-components-accordion.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-action.js +2 -2
- package/fesm5/taiga-ui-kit-components-arrow.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js +1 -1
- package/fesm5/taiga-ui-kit-components-avatar.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badge.js +2 -2
- package/fesm5/taiga-ui-kit-components-badge.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js +1 -1
- package/fesm5/taiga-ui-kit-components-badged-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js +4 -4
- package/fesm5/taiga-ui-kit-components-breadcrumbs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-month.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js +1 -1
- package/fesm5/taiga-ui-kit-components-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-checkbox.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-combo-box.js +13 -4
- package/fesm5/taiga-ui-kit-components-combo-box.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-data-list-wrapper.js +2 -2
- 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 +1 -1
- package/fesm5/taiga-ui-kit-components-filter.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-copy.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-copy.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-count.js +7 -2
- package/fesm5/taiga-ui-kit-components-input-count.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-range.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-date-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date-time.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-date-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-date.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-date.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-file.js +194 -194
- package/fesm5/taiga-ui-kit-components-input-file.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-inline.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-month-range.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-month.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-number.js +8 -2
- package/fesm5/taiga-ui-kit-components-input-number.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-password.js +5 -4
- package/fesm5/taiga-ui-kit-components-input-password.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone-international.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-phone.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-phone.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-range.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-slider.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-tag.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input-time.js +2 -2
- package/fesm5/taiga-ui-kit-components-input-time.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-input.js +1 -1
- 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 +2 -2
- package/fesm5/taiga-ui-kit-components-line-clamp.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-marker-icon.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select-option.js +13 -10
- package/fesm5/taiga-ui-kit-components-multi-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-multi-select.js +21 -47
- package/fesm5/taiga-ui-kit-components-multi-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js +1 -1
- package/fesm5/taiga-ui-kit-components-pagination.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js +120 -0
- package/fesm5/taiga-ui-kit-components-pdf-viewer.js.map +1 -0
- package/fesm5/taiga-ui-kit-components-progress.js +55 -19
- package/fesm5/taiga-ui-kit-components-progress.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-group.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-radio-labeled.js +1 -1
- package/fesm5/taiga-ui-kit-components-radio.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-range.js +2 -2
- package/fesm5/taiga-ui-kit-components-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select-option.js +23 -13
- package/fesm5/taiga-ui-kit-components-select-option.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-select.js +9 -3
- package/fesm5/taiga-ui-kit-components-select.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-slider.js +2 -2
- package/fesm5/taiga-ui-kit-components-slider.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js +1 -1
- package/fesm5/taiga-ui-kit-components-stepper.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tabs.js +3 -3
- package/fesm5/taiga-ui-kit-components-tabs.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tag.js +2 -2
- package/fesm5/taiga-ui-kit-components-tag.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-text-area.js +20 -3
- package/fesm5/taiga-ui-kit-components-text-area.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-toggle.js +2 -2
- package/fesm5/taiga-ui-kit-components-toggle.js.map +1 -1
- package/fesm5/taiga-ui-kit-components-tree.js +417 -0
- package/fesm5/taiga-ui-kit-components-tree.js.map +1 -0
- package/fesm5/taiga-ui-kit-components.js +4 -2
- package/fesm5/taiga-ui-kit-components.js.map +1 -1
- 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 +2 -1
- package/fesm5/taiga-ui-kit-directives-dropdown-selection.js.map +1 -1
- package/fesm5/taiga-ui-kit-directives-highlight.js.map +1 -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 +1 -1
- package/fesm5/taiga-ui-kit-internal-primitive-calendar-range.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js +22 -22
- package/fesm5/taiga-ui-kit-pipes-filter-by-input.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify-content.js.map +1 -1
- package/fesm5/taiga-ui-kit-pipes-stringify.js.map +1 -1
- package/fesm5/taiga-ui-kit-tokens.js +14 -14
- package/fesm5/taiga-ui-kit-tokens.js.map +1 -1
- package/fesm5/taiga-ui-kit-utils-format.js +0 -2
- package/fesm5/taiga-ui-kit-utils-format.js.map +1 -1
- package/internal/primitive-calendar-range/taiga-ui-kit-internal-primitive-calendar-range.metadata.json +1 -1
- package/package.json +5 -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/types/status.d.ts +1 -1
- package/utils/mask/index.d.ts +1 -1
- package/utils/mask/taiga-ui-kit-utils-mask.metadata.json +1 -1
- package/components/multi-select/multi-select-group/multi-select-group-reset.directive.d.ts +0 -3
- package/esm2015/components/multi-select/multi-select-group/multi-select-group-reset.directive.js +0 -20
- package/esm5/components/multi-select/multi-select-group/multi-select-group-reset.directive.js +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && !this.disabled && !this.readOnly;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\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 onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {TuiScrollbarModule, TuiTooltipModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IASa,uBAAuB,GAAe;IAC/C;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD,6BAA6B;IAC7B,wBAAwB;IACxB,aAAa;;;ICmBJ,YAAY,GAAG,GAAG;IAClB,aAAa,GAAG,GAAG;IACnB,aAAa,GAAG,GAAG;;IAcpB,wCAA0B;IAelC,8BAII,OAAyB,EACE,iBAAoC,EACpB,UAAkB,EAChC,KAAc,EAChB,KAAuC,EAEzD,UAAkC,EAElC,cAA0C;QAZvD,YAcI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAT8C,gBAAU,GAAV,UAAU,CAAQ;QAChC,WAAK,GAAL,KAAK,CAAS;QAChB,WAAK,GAAL,KAAK,CAAkC;QAEzD,gBAAU,GAAV,UAAU,CAAwB;QAElC,oBAAc,GAAd,cAAc,CAA4B;QAtBvD,UAAI,GAAG,YAAY,CAAC;QAKpB,gBAAU,GAAG,KAAK,CAAC;;KAoBlB;IAGD,sBAAI,8CAAY;aAAhB;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;SACvC;;;OAAA;IAED,sBAAI,wDAAsB;aAA1B;YACI,OAAO,IAAI,CAAC,gBAAgB,IAAI,CAAC,IAAI,CAAC,gBAAgB;kBAChD,IAAI;kBACJ,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC;SAC7C;;;OAAA;IAED,s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BAAiB;QAd7B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;aACnB;YACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;ACrBA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-text-area.js","sources":["ng://@taiga-ui/kit/components/text-area/text-area.providers.ts","ng://@taiga-ui/kit/components/text-area/text-area.component.ts","ng://@taiga-ui/kit/components/text-area/text-area.module.ts","ng://@taiga-ui/kit/components/text-area/taiga-ui-kit-components-text-area.ts"],"sourcesContent":["import {forwardRef, Provider} from '@angular/core';\nimport {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk';\nimport {\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n TEXTFIELD_CONTROLLER_PROVIDER,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\nexport const TUI_TEXT_AREA_PROVIDERS: Provider[] = [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiTextAreaComponent),\n },\n TEXTFIELD_CONTROLLER_PROVIDER,\n HINT_CONTROLLER_PROVIDER,\n MODE_PROVIDER,\n];\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n Optional,\n Self,\n ViewChild,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {\n AbstractTuiControl,\n isNativeFocused,\n setNativeFocused,\n TUI_IS_IOS,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n} from '@taiga-ui/cdk';\nimport {\n getBorder,\n TUI_HINT_WATCHED_CONTROLLER,\n TUI_MODE,\n TUI_TEXTFIELD_APPEARANCE,\n TUI_TEXTFIELD_WATCHED_CONTROLLER,\n TuiBrightness,\n TuiHintControllerDirective,\n TuiSizeL,\n TuiSizeS,\n TuiTextfieldController,\n} from '@taiga-ui/core';\nimport {Observable} from 'rxjs';\n\nimport {TUI_TEXT_AREA_PROVIDERS} from './text-area.providers';\n\nexport const DEFAULT_ROWS = 20;\nexport const LINE_HEIGHT_M = 20;\nexport const LINE_HEIGHT_L = 24;\n\n@Component({\n selector: 'tui-text-area',\n templateUrl: './text-area.template.html',\n styleUrls: ['./text-area.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TEXT_AREA_PROVIDERS,\n host: {\n '($.data-mode.attr)': 'mode$',\n '[class._ios]': 'isIOS',\n },\n})\nexport class TuiTextAreaComponent\n extends AbstractTuiControl<string>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n rows = DEFAULT_ROWS;\n\n @Input()\n @HostBinding('class._expandable')\n @tuiDefaultProp()\n expandable = false;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<HTMLTextAreaElement>;\n\n constructor(\n @Optional()\n @Self()\n @Inject(NgControl)\n control: NgControl | null,\n @Inject(ChangeDetectorRef) changeDetectorRef: ChangeDetectorRef,\n @Inject(TUI_TEXTFIELD_APPEARANCE) readonly appearance: string,\n @Inject(TUI_IS_IOS) readonly isIOS: boolean,\n @Inject(TUI_MODE) readonly mode$: Observable<TuiBrightness | null>,\n @Inject(TUI_TEXTFIELD_WATCHED_CONTROLLER)\n readonly controller: TuiTextfieldController,\n @Inject(TUI_HINT_WATCHED_CONTROLLER)\n readonly hintController: TuiHintControllerDirective,\n ) {\n super(control, changeDetectorRef);\n }\n\n @HostBinding('class._label-outside')\n get labelOutside(): boolean {\n return this.controller.labelOutside;\n }\n\n get nativeFocusableElement(): HTMLTextAreaElement | null {\n return this.computedDisabled || !this.focusableElement\n ? null\n : this.focusableElement.nativeElement;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n @HostBinding('attr.data-tui-host-size')\n get size(): TuiSizeL | TuiSizeS {\n return this.controller.size;\n }\n\n get border(): number {\n return getBorder(false, this.hasCleaner, this.hasTooltip);\n }\n\n get hasCleaner(): boolean {\n return (\n this.controller.cleaner && this.hasValue && !this.disabled && !this.readOnly\n );\n }\n\n @HostBinding('class._has-tooltip')\n get hasTooltip(): boolean {\n return !!this.hintController.content && !this.disabled;\n }\n\n @HostBinding('class._has-value')\n get hasValue(): boolean {\n return this.value !== '';\n }\n\n @HostBinding('class._has-counter')\n get hasCounter(): boolean {\n return !!this.controller.maxLength && !this.disabled && !this.readOnly;\n }\n\n get hasPlaceholder(): boolean {\n return !this.controller.labelOutside || (!this.hasValue && !this.hasExampleText);\n }\n\n get hasExampleText(): boolean {\n return (\n !!this.controller.exampleText &&\n this.focused &&\n !this.hasValue &&\n !this.readOnly\n );\n }\n\n get computeMaxHeight(): number | null {\n return this.expandable ? this.rows * this.lineHeight : null;\n }\n\n get placeholderRaised(): boolean {\n return (\n !this.controller.labelOutside &&\n ((this.computedFocused && !this.readOnly) || this.hasValue)\n );\n }\n\n get fittedContent(): string {\n return this.value.slice(0, this.controller.maxLength || Infinity);\n }\n\n get extraContent(): string {\n return this.value.slice(this.controller.maxLength || Infinity);\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 onValue(value: string) {\n this.updateValue(value);\n }\n\n onMouseDown(event: MouseEvent) {\n if (event.target === this.nativeFocusableElement) {\n return;\n }\n\n event.preventDefault();\n\n if (this.nativeFocusableElement) {\n setNativeFocused(this.nativeFocusableElement);\n }\n }\n\n protected getFallbackValue(): string {\n return '';\n }\n\n private get lineHeight(): number {\n return this.controller.size === 'm' ? LINE_HEIGHT_M : LINE_HEIGHT_L;\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {TuiFocusableModule, TuiFocusedModule, TuiHoveredModule} from '@taiga-ui/cdk';\nimport {\n TuiBorderModule,\n TuiDescribedByModule,\n TuiScrollbarModule,\n TuiSvgModule,\n TuiTooltipModule,\n TuiWrapperModule,\n} from '@taiga-ui/core';\n\nimport {TuiTextAreaComponent} from './text-area.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n TuiFocusableModule,\n TuiFocusedModule,\n TuiHoveredModule,\n TuiScrollbarModule,\n TuiTooltipModule,\n TuiWrapperModule,\n TuiDescribedByModule,\n TuiBorderModule,\n TuiSvgModule,\n ],\n declarations: [TuiTextAreaComponent],\n exports: [TuiTextAreaComponent],\n})\nexport class TuiTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;IAUa,uBAAuB,GAAe;IAC/C;QACI,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE,UAAU,CAAC,cAAM,OAAA,oBAAoB,GAAA,CAAC;KACtD;IACD,6BAA6B;IAC7B,wBAAwB;IACxB,aAAa;;;ICoBJ,YAAY,GAAG,GAAG;IAClB,aAAa,GAAG,GAAG;IACnB,aAAa,GAAG,GAAG;;IAcpB,wCAA0B;IAelC,8BAII,OAAyB,EACE,iBAAoC,EACpB,UAAkB,EAChC,KAAc,EAChB,KAAuC,EAEzD,UAAkC,EAElC,cAA0C;QAZvD,YAcI,kBAAM,OAAO,EAAE,iBAAiB,CAAC,SACpC;QAT8C,gBAAU,GAAV,UAAU,CAAQ;QAChC,WAAK,GAAL,KAAK,CAAS;QAChB,WAAK,GAAL,KAAK,CAAkC;QAEzD,gBAAU,GAAV,UAAU,CAAwB;QAElC,oBAAc,GAAd,cAAc,CAA4B;QAtBvD,UAAI,GAAG,YAAY,CAAC;QAKpB,gBAAU,GAAG,KAAK,CAAC;;KAoBlB;IAGD,sBAAI,8C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AuB;YAClC,IAAI,EAAE;gBACF,oBAAoB,EAAE,OAAO;gBAC7B,cAAc,EAAE,OAAO;aAC1B;;SACJ,CAAC;QAkBO,WAAA,QAAQ,EAAE,CAAA;QACV,WAAA,IAAI,EAAE,CAAA;QACN,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;QAEjB,WAAA,MAAM,CAAC,iBAAiB,CAAC,CAAA;QACzB,WAAA,MAAM,CAAC,wBAAwB,CAAC,CAAA;QAChC,WAAA,MAAM,CAAC,UAAU,CAAC,CAAA;QAClB,WAAA,MAAM,CAAC,QAAQ,CAAC,CAAA;QAChB,WAAA,MAAM,CAAC,gCAAgC,CAAC,CAAA;QAExC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;OA3B/B,oBAAoB,CAiJhC;IAAD,2BAAC;CAAA,CAhJW,kBAAkB;;;ICrB9B;KAAiC;IAApB,iBAAiB;QAjB7B,QAAQ,CAAC;YACN,OAAO,EAAE;gBACL,YAAY;gBACZ,WAAW;gBACX,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,kBAAkB;gBAClB,gBAAgB;gBAChB,gBAAgB;gBAChB,oBAAoB;gBACpB,eAAe;gBACf,YAAY;aACf;YACD,YAAY,EAAE,CAAC,oBAAoB,CAAC;YACpC,OAAO,EAAE,CAAC,oBAAoB,CAAC;SAClC,CAAC;OACW,iBAAiB,CAAG;IAAD,wBAAC;CAAjC;;AChCA;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
2
1
|
import { __extends, __decorate, __param } from 'tslib';
|
|
2
|
+
import { InjectionToken, Optional, Self, Inject, ChangeDetectorRef, Input, HostBinding, ViewChild, Component, ChangeDetectionStrategy, forwardRef, NgModule } from '@angular/core';
|
|
3
3
|
import { NgControl } from '@angular/forms';
|
|
4
4
|
import { isNativeFocused, tuiDefaultProp, TUI_FOCUSABLE_ITEM_ACCESSOR, AbstractTuiControl, TuiFocusedModule, TuiFocusableModule, TuiHoveredModule, TuiPressedModule, TuiFocusVisibleModule, TuiCheckedModule } from '@taiga-ui/cdk';
|
|
5
5
|
import { TuiModeDirective, TuiWrapperModule, TuiSvgModule, TuiLoaderModule } from '@taiga-ui/core';
|
|
@@ -158,7 +158,7 @@ var TuiToggleComponent = /** @class */ (function (_super) {
|
|
|
158
158
|
TuiToggleComponent = TuiToggleComponent_1 = __decorate([
|
|
159
159
|
Component({
|
|
160
160
|
selector: 'tui-toggle',
|
|
161
|
-
template: "<tui-wrapper\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocusVisible\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [invalid]=\"computedInvalid\"\n>\n <div class=\"toggle\">\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"loader\"\n [size]=\"loaderSize\"\n [inheritColor]=\"true\"\n [showLoader]=\"checked\"\n ></tui-loader>\n <span\n polymorpheus-outlet\n class=\"icon-wrapper\"\n [content]=\"iconOn\"\n [context]=\"{
|
|
161
|
+
template: "<tui-wrapper\n [appearance]=\"appearance\"\n [disabled]=\"disabled\"\n [focused]=\"computedFocusVisible\"\n [hovered]=\"computedHovered\"\n [pressed]=\"computedPressed\"\n [invalid]=\"computedInvalid\"\n>\n <div class=\"toggle\">\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"loader\"\n [size]=\"loaderSize\"\n [inheritColor]=\"true\"\n [showLoader]=\"checked\"\n ></tui-loader>\n <span\n polymorpheus-outlet\n class=\"icon-wrapper\"\n [content]=\"iconOn\"\n [context]=\"{$implicit: size}\"\n >\n <ng-template let-icon>\n <tui-svg\n *ngIf=\"showIcons && !showLoader\"\n automation-id=\"tui-toggle__check-icon\"\n class=\"icon\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </span>\n <div class=\"circle\"></div>\n <tui-loader\n *ngIf=\"showLoader\"\n class=\"loader\"\n [size]=\"loaderSize\"\n [inheritColor]=\"true\"\n [showLoader]=\"!checked\"\n ></tui-loader>\n <span\n polymorpheus-outlet\n class=\"icon-wrapper\"\n [content]=\"iconOff\"\n [context]=\"{$implicit: size}\"\n >\n <ng-template let-icon>\n <tui-svg\n *ngIf=\"showIcons && !showLoader\"\n automation-id=\"tui-toggle__cancel-icon\"\n class=\"icon icon_off\"\n [src]=\"icon\"\n ></tui-svg>\n </ng-template>\n </span>\n </div>\n</tui-wrapper>\n<input\n #focusableElement\n type=\"checkbox\"\n role=\"switch\"\n automation-id=\"tui-toggle__checkbox\"\n class=\"checkbox\"\n [attr.aria-checked]=\"value\"\n [id]=\"id\"\n [disabled]=\"disabled\"\n [tuiChecked]=\"checked\"\n [tuiFocusable]=\"focusable\"\n (tuiCheckedChange)=\"onChecked($event)\"\n (tuiFocusedChange)=\"onFocused($event)\"\n (tuiHoveredChange)=\"onHovered($event)\"\n (tuiPressedChange)=\"onPressed($event)\"\n (tuiFocusVisibleChange)=\"onFocusVisible($event)\"\n/>\n",
|
|
162
162
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
163
163
|
providers: [
|
|
164
164
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface ToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: ToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<ToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n","import {\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 AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {ToggleOptions, TUI_TOGGLE_OPTIONS} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\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 @Inject(TUI_TOGGLE_OPTIONS)\n public readonly options: ToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\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 protected getFallbackValue(): boolean {\n return false;\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 {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;IACa,0BAA0B,GAAkB;IACrD,KAAK,EAAE;QACH,SAAS,EAAT,UAAU,EAA6C;gBAA5C,wBAAS;YAChB,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;SAC3E;QACD,QAAQ,EAAR,UAAS,EAA6C;gBAA5C,wBAAS;YACf,OAAO,SAAS,KAAK,GAAG,GAAG,iBAAiB,GAAG,sBAAsB,CAAC;SACzE;KACJ;IACD,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,IAAI,EAAE,GAAG;EACX;IAEW,kBAAkB,GAAG,IAAI,cAAc,CAChD,yCAAyC,EACzC;IACI,OAAO,EAAE,cAAM,OAAA,0BAA0B,GAAA;CAC5C;;;
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-toggle.js","sources":["ng://@taiga-ui/kit/components/toggle/toggle-options.ts","ng://@taiga-ui/kit/components/toggle/toggle.component.ts","ng://@taiga-ui/kit/components/toggle/toggle.module.ts","ng://@taiga-ui/kit/components/toggle/taiga-ui-kit-components-toggle.ts"],"sourcesContent":["import {InjectionToken} from '@angular/core';\nimport {TuiContextWithImplicit} from '@taiga-ui/cdk';\nimport {TuiSizeL} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nexport interface ToggleOptions {\n readonly icons: Readonly<{\n toggleOff: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n toggleOn: PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>>;\n }>;\n readonly singleColor: boolean;\n readonly showIcons: boolean;\n readonly size: TuiSizeL;\n}\n\n/** Default values for the toggle options. */\nexport const TUI_TOGGLE_DEFAULT_OPTIONS: ToggleOptions = {\n icons: {\n toggleOff({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOff' : 'tuiIconToggleOffLarge';\n },\n toggleOn({$implicit}: TuiContextWithImplicit<TuiSizeL>): string {\n return $implicit === 'm' ? 'tuiIconToggleOn' : 'tuiIconToggleOnLarge';\n },\n },\n singleColor: false,\n showIcons: false,\n size: 'm',\n};\n\nexport const TUI_TOGGLE_OPTIONS = new InjectionToken<ToggleOptions>(\n 'Default parameters for toggle component',\n {\n factory: () => TUI_TOGGLE_DEFAULT_OPTIONS,\n },\n);\n","import {\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 AbstractTuiControl,\n isNativeFocused,\n TUI_FOCUSABLE_ITEM_ACCESSOR,\n TuiContextWithImplicit,\n tuiDefaultProp,\n TuiFocusableElementAccessor,\n TuiNativeFocusableElement,\n} from '@taiga-ui/cdk';\nimport {\n TuiAppearance,\n TuiBrightness,\n TuiModeDirective,\n TuiSizeL,\n TuiSizeXS,\n} from '@taiga-ui/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {ToggleOptions, TUI_TOGGLE_OPTIONS} from './toggle-options';\n\n@Component({\n selector: 'tui-toggle',\n templateUrl: './toggle.template.html',\n styleUrls: ['./toggle.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_FOCUSABLE_ITEM_ACCESSOR,\n useExisting: forwardRef(() => TuiToggleComponent),\n },\n ],\n})\nexport class TuiToggleComponent\n extends AbstractTuiControl<boolean>\n implements TuiFocusableElementAccessor\n{\n @Input()\n @tuiDefaultProp()\n singleColor = this.options.singleColor;\n\n @Input()\n @tuiDefaultProp()\n showIcons = this.options.showIcons;\n\n @Input()\n @tuiDefaultProp()\n showLoader = false;\n\n @Input()\n @HostBinding('attr.data-tui-host-size')\n @tuiDefaultProp()\n size: TuiSizeL = this.options.size;\n\n @ViewChild('focusableElement')\n private readonly focusableElement?: ElementRef<TuiNativeFocusableElement>;\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 @Inject(TUI_TOGGLE_OPTIONS)\n public readonly options: ToggleOptions,\n ) {\n super(control, changeDetectorRef);\n }\n\n get iconOn(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOn;\n }\n\n get iconOff(): PolymorpheusContent<TuiContextWithImplicit<TuiSizeL>> {\n return this.options.icons.toggleOff;\n }\n\n get nativeFocusableElement(): TuiNativeFocusableElement | null {\n return this.focusableElement ? this.focusableElement.nativeElement : null;\n }\n\n get focused(): boolean {\n return isNativeFocused(this.nativeFocusableElement);\n }\n\n get appearance(): TuiAppearance {\n return this.singleColor || this.checked\n ? TuiAppearance.Primary\n : TuiAppearance.Secondary;\n }\n\n get sizeM(): boolean {\n return this.size === 'm';\n }\n\n @HostBinding('class._checked')\n get checked(): boolean {\n return this.value;\n }\n\n get loaderSize(): TuiSizeXS {\n return this.sizeM ? 'xs' : 's';\n }\n\n @HostBinding('attr.data-mode')\n get hostMode(): TuiBrightness | null {\n return this.modeDirective ? this.modeDirective.mode : null;\n }\n\n onChecked(checked: boolean) {\n this.updateValue(checked);\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 protected getFallbackValue(): boolean {\n return false;\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 {TuiLoaderModule, TuiSvgModule, TuiWrapperModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiToggleComponent} from './toggle.component';\n\n@NgModule({\n imports: [\n CommonModule,\n TuiFocusedModule,\n TuiFocusableModule,\n TuiHoveredModule,\n TuiPressedModule,\n TuiFocusVisibleModule,\n TuiCheckedModule,\n TuiWrapperModule,\n TuiSvgModule,\n TuiLoaderModule,\n PolymorpheusModule,\n ],\n declarations: [TuiToggleComponent],\n exports: [TuiToggleComponent],\n})\nexport class TuiToggleModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAeA;IACa,0BAA0B,GAAkB;IACrD,KAAK,EAAE;QACH,SAAS,EAAT,UAAU,EAA6C;gBAA5C,wBAAS;YAChB,OAAO,SAAS,KAAK,GAAG,GAAG,kBAAkB,GAAG,uBAAuB,CAAC;SAC3E;QACD,QAAQ,EAAR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tslib';
|
|
2
|
+
import { Input, Directive, Inject, forwardRef, HostBinding, Component, ChangeDetectionStrategy, InjectionToken, Optional, SkipSelf, ElementRef, ContentChildren, EventEmitter, Output, Injectable, NgModule } from '@angular/core';
|
|
3
|
+
import { EMPTY_ARRAY, tuiDefaultProp, ALWAYS_TRUE_HANDLER, EMPTY_FUNCTION, EMPTY_QUERY, isPresent } from '@taiga-ui/cdk';
|
|
4
|
+
import { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { startWith, map, distinctUntilChanged, switchMap, tap, mapTo } from 'rxjs/operators';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { TuiExpandModule, TuiButtonModule } from '@taiga-ui/core';
|
|
9
|
+
|
|
10
|
+
var TuiTreeChildrenDirective = /** @class */ (function () {
|
|
11
|
+
function TuiTreeChildrenDirective() {
|
|
12
|
+
this.childrenHandler = TuiTreeChildrenDirective_1.defaultHandler;
|
|
13
|
+
}
|
|
14
|
+
TuiTreeChildrenDirective_1 = TuiTreeChildrenDirective;
|
|
15
|
+
TuiTreeChildrenDirective.defaultHandler = function (item) {
|
|
16
|
+
return Array.isArray(item) ? item : EMPTY_ARRAY;
|
|
17
|
+
};
|
|
18
|
+
var TuiTreeChildrenDirective_1;
|
|
19
|
+
__decorate([
|
|
20
|
+
Input(),
|
|
21
|
+
tuiDefaultProp()
|
|
22
|
+
], TuiTreeChildrenDirective.prototype, "childrenHandler", void 0);
|
|
23
|
+
TuiTreeChildrenDirective = TuiTreeChildrenDirective_1 = __decorate([
|
|
24
|
+
Directive({
|
|
25
|
+
selector: 'tui-tree[childrenHandler]',
|
|
26
|
+
})
|
|
27
|
+
], TuiTreeChildrenDirective);
|
|
28
|
+
return TuiTreeChildrenDirective;
|
|
29
|
+
}());
|
|
30
|
+
|
|
31
|
+
var TuiTreeItemContentComponent = /** @class */ (function () {
|
|
32
|
+
function TuiTreeItemContentComponent(context, controller) {
|
|
33
|
+
this.context = context;
|
|
34
|
+
this.controller = controller;
|
|
35
|
+
}
|
|
36
|
+
Object.defineProperty(TuiTreeItemContentComponent.prototype, "isExpanded", {
|
|
37
|
+
get: function () {
|
|
38
|
+
return this.context.$implicit.isExpanded;
|
|
39
|
+
},
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(TuiTreeItemContentComponent.prototype, "isExpandable", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return (this.context.$implicit.isExpandable &&
|
|
46
|
+
this.controller !== TUI_DEFAULT_TREE_CONTROLLER);
|
|
47
|
+
},
|
|
48
|
+
enumerable: true,
|
|
49
|
+
configurable: true
|
|
50
|
+
});
|
|
51
|
+
TuiTreeItemContentComponent.prototype.onClick = function () {
|
|
52
|
+
var _a;
|
|
53
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.toggle(this.context.$implicit);
|
|
54
|
+
};
|
|
55
|
+
TuiTreeItemContentComponent.ctorParameters = function () { return [
|
|
56
|
+
{ type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] },
|
|
57
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTROLLER; }),] }] }
|
|
58
|
+
]; };
|
|
59
|
+
__decorate([
|
|
60
|
+
HostBinding('class._expandable')
|
|
61
|
+
], TuiTreeItemContentComponent.prototype, "isExpandable", null);
|
|
62
|
+
TuiTreeItemContentComponent = __decorate([
|
|
63
|
+
Component({
|
|
64
|
+
selector: 'tui-tree-item-content',
|
|
65
|
+
template: "<button\n *ngIf=\"isExpandable\"\n tuiIconButton\n size=\"xs\"\n appearance=\"flat\"\n icon=\"tuiIconChevronRight\"\n shape=\"rounded\"\n class=\"t-button\"\n [class.t-button_expanded]=\"isExpanded\"\n (click)=\"onClick()\"\n></button>\n<ng-container *ngTemplateOutlet=\"context.template\"></ng-container>\n",
|
|
66
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
67
|
+
styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-left:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration,300ms);transition-timing-function:ease-in-out;margin-right:.5rem}.t-button_expanded{transform:rotate(90deg)}"]
|
|
68
|
+
}),
|
|
69
|
+
__param(0, Inject(POLYMORPHEUS_CONTEXT)),
|
|
70
|
+
__param(1, Inject(forwardRef(function () { return TUI_TREE_CONTROLLER; })))
|
|
71
|
+
], TuiTreeItemContentComponent);
|
|
72
|
+
return TuiTreeItemContentComponent;
|
|
73
|
+
}());
|
|
74
|
+
|
|
75
|
+
var TUI_TREE_ITEM_CONTENT = new PolymorpheusComponent(TuiTreeItemContentComponent);
|
|
76
|
+
var TUI_DEFAULT_TREE_CONTROLLER = {
|
|
77
|
+
isExpanded: ALWAYS_TRUE_HANDLER,
|
|
78
|
+
toggle: EMPTY_FUNCTION,
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var TUI_TREE_ACCESSOR = new InjectionToken('Controller for tracking value - TuiTreeItemComponent pairs');
|
|
82
|
+
var TUI_TREE_CONTROLLER = new InjectionToken('Controller for expanding the tree', {
|
|
83
|
+
factory: function () { return TUI_DEFAULT_TREE_CONTROLLER; },
|
|
84
|
+
});
|
|
85
|
+
var TUI_TREE_NODE = new InjectionToken('A node of a tree view');
|
|
86
|
+
var TUI_TREE_LOADING = new InjectionToken('A tree node placeholder for loading', { factory: function () { return ({}); } });
|
|
87
|
+
var TUI_TREE_START = new InjectionToken('A tree node starting point');
|
|
88
|
+
var TUI_TREE_LOADER = new InjectionToken('A service to load tree progressively');
|
|
89
|
+
var TUI_TREE_CONTENT = new InjectionToken('Content for a tree item', {
|
|
90
|
+
factory: function () { return TUI_TREE_ITEM_CONTENT; },
|
|
91
|
+
});
|
|
92
|
+
var TUI_TREE_LEVEL = new InjectionToken('Nesting level of current TreeView node', {
|
|
93
|
+
factory: function () { return -1; },
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
var TuiTreeComponent = /** @class */ (function () {
|
|
97
|
+
function TuiTreeComponent(directive) {
|
|
98
|
+
this.directive = directive;
|
|
99
|
+
this.content = function (_a) {
|
|
100
|
+
var $implicit = _a.$implicit;
|
|
101
|
+
return String($implicit);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
TuiTreeComponent_1 = TuiTreeComponent;
|
|
105
|
+
Object.defineProperty(TuiTreeComponent.prototype, "children", {
|
|
106
|
+
get: function () {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
return ((_b = (_a = this.directive) === null || _a === void 0 ? void 0 : _a.childrenHandler(this.value)) !== null && _b !== void 0 ? _b : TuiTreeChildrenDirective.defaultHandler(this.value));
|
|
109
|
+
},
|
|
110
|
+
enumerable: true,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
113
|
+
var TuiTreeComponent_1;
|
|
114
|
+
TuiTreeComponent.ctorParameters = function () { return [
|
|
115
|
+
{ type: TuiTreeChildrenDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiTreeChildrenDirective,] }] }
|
|
116
|
+
]; };
|
|
117
|
+
__decorate([
|
|
118
|
+
Input()
|
|
119
|
+
], TuiTreeComponent.prototype, "value", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
Input()
|
|
122
|
+
], TuiTreeComponent.prototype, "content", void 0);
|
|
123
|
+
TuiTreeComponent = TuiTreeComponent_1 = __decorate([
|
|
124
|
+
Component({
|
|
125
|
+
selector: 'tui-tree[value]',
|
|
126
|
+
template: "<tui-tree-item #view [tuiTreeNode]=\"value\">\n <div\n *ngIf=\"value !== children\"\n polymorpheus-outlet\n [content]=\"content\"\n [context]=\"{$implicit: value, node: view}\"\n ></div>\n <tui-tree\n *ngFor=\"let child of children\"\n [value]=\"child\"\n [content]=\"content\"\n ></tui-tree>\n</tui-tree-item>\n",
|
|
127
|
+
providers: [
|
|
128
|
+
{
|
|
129
|
+
provide: TUI_TREE_NODE,
|
|
130
|
+
useExisting: TuiTreeComponent_1,
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
host: {
|
|
134
|
+
role: 'tree',
|
|
135
|
+
},
|
|
136
|
+
styles: [":host{position:relative;display:block}"]
|
|
137
|
+
}),
|
|
138
|
+
__param(0, Optional()),
|
|
139
|
+
__param(0, Inject(TuiTreeChildrenDirective))
|
|
140
|
+
], TuiTreeComponent);
|
|
141
|
+
return TuiTreeComponent;
|
|
142
|
+
}());
|
|
143
|
+
|
|
144
|
+
var TUI_TREE_ITEM_PROVIDERS = [
|
|
145
|
+
{
|
|
146
|
+
provide: TUI_TREE_LEVEL,
|
|
147
|
+
deps: [[new SkipSelf(), TUI_TREE_LEVEL]],
|
|
148
|
+
useFactory: treeLevelFactory,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
provide: TUI_TREE_NODE,
|
|
152
|
+
useExisting: forwardRef(function () { return TuiTreeItemComponent; }),
|
|
153
|
+
},
|
|
154
|
+
];
|
|
155
|
+
function treeLevelFactory(level) {
|
|
156
|
+
return ++level;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
var TuiTreeItemComponent = /** @class */ (function () {
|
|
160
|
+
function TuiTreeItemComponent(elementRef, controller, level, content) {
|
|
161
|
+
var _this = this;
|
|
162
|
+
this.elementRef = elementRef;
|
|
163
|
+
this.controller = controller;
|
|
164
|
+
this.level = level;
|
|
165
|
+
this.content = content;
|
|
166
|
+
this.change$ = new Subject();
|
|
167
|
+
this.nested = EMPTY_QUERY;
|
|
168
|
+
this.expanded$ = this.change$.pipe(startWith(null), map(function () { return _this.isExpanded; }), distinctUntilChanged());
|
|
169
|
+
this.attached$ = this.change$.pipe(map(function () { return _this.elementRef.nativeElement.isConnected; }), distinctUntilChanged());
|
|
170
|
+
}
|
|
171
|
+
Object.defineProperty(TuiTreeItemComponent.prototype, "isExpandable", {
|
|
172
|
+
get: function () {
|
|
173
|
+
return !!this.nested.length;
|
|
174
|
+
},
|
|
175
|
+
enumerable: true,
|
|
176
|
+
configurable: true
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(TuiTreeItemComponent.prototype, "isExpanded", {
|
|
179
|
+
get: function () {
|
|
180
|
+
return this.controller.isExpanded(this);
|
|
181
|
+
},
|
|
182
|
+
enumerable: true,
|
|
183
|
+
configurable: true
|
|
184
|
+
});
|
|
185
|
+
TuiTreeItemComponent.prototype.ngDoCheck = function () {
|
|
186
|
+
this.change$.next();
|
|
187
|
+
};
|
|
188
|
+
TuiTreeItemComponent.ctorParameters = function () { return [
|
|
189
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
190
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTROLLER; }),] }] },
|
|
191
|
+
{ type: Number, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_LEVEL; }),] }] },
|
|
192
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTENT; }),] }] }
|
|
193
|
+
]; };
|
|
194
|
+
__decorate([
|
|
195
|
+
ContentChildren(TUI_TREE_NODE)
|
|
196
|
+
], TuiTreeItemComponent.prototype, "nested", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
HostBinding('class._expandable')
|
|
199
|
+
], TuiTreeItemComponent.prototype, "isExpandable", null);
|
|
200
|
+
TuiTreeItemComponent = __decorate([
|
|
201
|
+
Component({
|
|
202
|
+
selector: 'tui-tree-item',
|
|
203
|
+
template: "<ng-template #template><ng-content></ng-content></ng-template>\n<div\n polymorpheus-outlet\n class=\"t-content\"\n [content]=\"content\"\n [context]=\"{$implicit: this, template: template}\"\n></div>\n<tui-expand\n *ngIf=\"isExpandable\"\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded$ | async\"\n>\n <div>\n <ng-content select=\"tui-tree-item\"></ng-content>\n <ng-content select=\"tui-tree\"></ng-content>\n </div>\n</tui-expand>\n<ng-container *ngIf=\"attached$ | async\"></ng-container>\n",
|
|
204
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
205
|
+
providers: TUI_TREE_ITEM_PROVIDERS,
|
|
206
|
+
host: {
|
|
207
|
+
role: 'treeitem',
|
|
208
|
+
},
|
|
209
|
+
styles: [":host{display:block}.t-children{position:relative;margin-left:var(--tui-tree-item-indent,1.5rem)}"]
|
|
210
|
+
}),
|
|
211
|
+
__param(0, Inject(ElementRef)),
|
|
212
|
+
__param(1, Inject(forwardRef(function () { return TUI_TREE_CONTROLLER; }))),
|
|
213
|
+
__param(2, Inject(forwardRef(function () { return TUI_TREE_LEVEL; }))),
|
|
214
|
+
__param(3, Inject(forwardRef(function () { return TUI_TREE_CONTENT; })))
|
|
215
|
+
], TuiTreeItemComponent);
|
|
216
|
+
return TuiTreeItemComponent;
|
|
217
|
+
}());
|
|
218
|
+
|
|
219
|
+
var TuiTreeControllerDirective = /** @class */ (function () {
|
|
220
|
+
function TuiTreeControllerDirective() {
|
|
221
|
+
this.fallback = true;
|
|
222
|
+
this.map = new Map();
|
|
223
|
+
this.toggled = new EventEmitter();
|
|
224
|
+
this.items = new Map();
|
|
225
|
+
}
|
|
226
|
+
TuiTreeControllerDirective_1 = TuiTreeControllerDirective;
|
|
227
|
+
TuiTreeControllerDirective.prototype.register = function (item, value) {
|
|
228
|
+
this.items.set(item, value);
|
|
229
|
+
};
|
|
230
|
+
TuiTreeControllerDirective.prototype.unregister = function (item) {
|
|
231
|
+
this.items.delete(item);
|
|
232
|
+
};
|
|
233
|
+
TuiTreeControllerDirective.prototype.isExpanded = function (item) {
|
|
234
|
+
var _a;
|
|
235
|
+
var value = this.items.get(item);
|
|
236
|
+
return (_a = (value && this.map.get(value))) !== null && _a !== void 0 ? _a : this.fallback;
|
|
237
|
+
};
|
|
238
|
+
TuiTreeControllerDirective.prototype.toggle = function (item) {
|
|
239
|
+
var value = this.items.get(item);
|
|
240
|
+
var expanded = this.isExpanded(item);
|
|
241
|
+
if (!isPresent(value)) {
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
this.toggled.emit(value);
|
|
245
|
+
this.map.set(value, !expanded);
|
|
246
|
+
};
|
|
247
|
+
var TuiTreeControllerDirective_1;
|
|
248
|
+
__decorate([
|
|
249
|
+
Input('tuiTreeController'),
|
|
250
|
+
tuiDefaultProp()
|
|
251
|
+
], TuiTreeControllerDirective.prototype, "fallback", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
Input(),
|
|
254
|
+
tuiDefaultProp()
|
|
255
|
+
], TuiTreeControllerDirective.prototype, "map", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
Output()
|
|
258
|
+
], TuiTreeControllerDirective.prototype, "toggled", void 0);
|
|
259
|
+
TuiTreeControllerDirective = TuiTreeControllerDirective_1 = __decorate([
|
|
260
|
+
Directive({
|
|
261
|
+
selector: '[tuiTreeController][map]',
|
|
262
|
+
exportAs: 'tuiTreeController',
|
|
263
|
+
providers: [
|
|
264
|
+
{
|
|
265
|
+
provide: TUI_TREE_ACCESSOR,
|
|
266
|
+
useExisting: TuiTreeControllerDirective_1,
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
provide: TUI_TREE_CONTROLLER,
|
|
270
|
+
useExisting: TuiTreeControllerDirective_1,
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
})
|
|
274
|
+
], TuiTreeControllerDirective);
|
|
275
|
+
return TuiTreeControllerDirective;
|
|
276
|
+
}());
|
|
277
|
+
|
|
278
|
+
var TuiTreeItemControllerDirective = /** @class */ (function () {
|
|
279
|
+
function TuiTreeItemControllerDirective() {
|
|
280
|
+
this.fallback = true;
|
|
281
|
+
this.map = new WeakMap();
|
|
282
|
+
}
|
|
283
|
+
TuiTreeItemControllerDirective_1 = TuiTreeItemControllerDirective;
|
|
284
|
+
TuiTreeItemControllerDirective.prototype.isExpanded = function (item) {
|
|
285
|
+
var _a;
|
|
286
|
+
return (_a = this.map.get(item)) !== null && _a !== void 0 ? _a : this.fallback;
|
|
287
|
+
};
|
|
288
|
+
TuiTreeItemControllerDirective.prototype.toggle = function (item) {
|
|
289
|
+
this.map.set(item, !this.isExpanded(item));
|
|
290
|
+
};
|
|
291
|
+
var TuiTreeItemControllerDirective_1;
|
|
292
|
+
__decorate([
|
|
293
|
+
Input('tuiTreeController'),
|
|
294
|
+
tuiDefaultProp()
|
|
295
|
+
], TuiTreeItemControllerDirective.prototype, "fallback", void 0);
|
|
296
|
+
TuiTreeItemControllerDirective = TuiTreeItemControllerDirective_1 = __decorate([
|
|
297
|
+
Directive({
|
|
298
|
+
selector: '[tuiTreeController]:not([map])',
|
|
299
|
+
exportAs: 'tuiTreeController',
|
|
300
|
+
providers: [
|
|
301
|
+
{
|
|
302
|
+
provide: TUI_TREE_CONTROLLER,
|
|
303
|
+
useExisting: TuiTreeItemControllerDirective_1,
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
})
|
|
307
|
+
], TuiTreeItemControllerDirective);
|
|
308
|
+
return TuiTreeItemControllerDirective;
|
|
309
|
+
}());
|
|
310
|
+
|
|
311
|
+
var TuiTreeNodeDirective = /** @class */ (function () {
|
|
312
|
+
function TuiTreeNodeDirective(directive, component) {
|
|
313
|
+
this.directive = directive;
|
|
314
|
+
this.component = component;
|
|
315
|
+
}
|
|
316
|
+
Object.defineProperty(TuiTreeNodeDirective.prototype, "value", {
|
|
317
|
+
set: function (value) {
|
|
318
|
+
var _a;
|
|
319
|
+
(_a = this.directive) === null || _a === void 0 ? void 0 : _a.register(this.component, value);
|
|
320
|
+
},
|
|
321
|
+
enumerable: true,
|
|
322
|
+
configurable: true
|
|
323
|
+
});
|
|
324
|
+
TuiTreeNodeDirective.prototype.ngOnDestroy = function () {
|
|
325
|
+
var _a;
|
|
326
|
+
(_a = this.directive) === null || _a === void 0 ? void 0 : _a.unregister(this.component);
|
|
327
|
+
};
|
|
328
|
+
TuiTreeNodeDirective.ctorParameters = function () { return [
|
|
329
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [TUI_TREE_ACCESSOR,] }] },
|
|
330
|
+
{ type: TuiTreeItemComponent, decorators: [{ type: Inject, args: [TuiTreeItemComponent,] }] }
|
|
331
|
+
]; };
|
|
332
|
+
__decorate([
|
|
333
|
+
Input('tuiTreeNode')
|
|
334
|
+
], TuiTreeNodeDirective.prototype, "value", null);
|
|
335
|
+
TuiTreeNodeDirective = __decorate([
|
|
336
|
+
Directive({
|
|
337
|
+
selector: 'tui-tree-item[tuiTreeNode]',
|
|
338
|
+
}),
|
|
339
|
+
__param(0, Optional()),
|
|
340
|
+
__param(0, Inject(TUI_TREE_ACCESSOR)),
|
|
341
|
+
__param(1, Inject(TuiTreeItemComponent))
|
|
342
|
+
], TuiTreeNodeDirective);
|
|
343
|
+
return TuiTreeNodeDirective;
|
|
344
|
+
}());
|
|
345
|
+
|
|
346
|
+
// @dynamic
|
|
347
|
+
var TuiTreeService = /** @class */ (function () {
|
|
348
|
+
function TuiTreeService(loading, start, loader) {
|
|
349
|
+
var _this = this;
|
|
350
|
+
this.loading = loading;
|
|
351
|
+
this.start = start;
|
|
352
|
+
this.loader = loader;
|
|
353
|
+
this.map = new Map([[this.loading, []]]);
|
|
354
|
+
this.load$ = new Subject();
|
|
355
|
+
this.data$ = this.load$.pipe(switchMap(function (item) {
|
|
356
|
+
return _this.loader.loadChildren(item).pipe(tap(function (children) { return _this.map.set(item, children); }), map(function (children) { return children.filter(function (item) { return !_this.loader.hasChildren(item); }); }), tap(function (children) { return children.forEach(function (child) { return _this.map.set(child, []); }); }));
|
|
357
|
+
}), startWith(null), mapTo(this.start));
|
|
358
|
+
}
|
|
359
|
+
TuiTreeService.prototype.getChildren = function (item) {
|
|
360
|
+
var _a;
|
|
361
|
+
return (_a = this.map.get(item)) !== null && _a !== void 0 ? _a : [this.loading];
|
|
362
|
+
};
|
|
363
|
+
TuiTreeService.prototype.loadChildren = function (item) {
|
|
364
|
+
if (this.map.get(item)) {
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
this.map.set(item, [this.loading]);
|
|
368
|
+
this.load$.next(item);
|
|
369
|
+
};
|
|
370
|
+
TuiTreeService.ctorParameters = function () { return [
|
|
371
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_LOADING,] }] },
|
|
372
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_START,] }] },
|
|
373
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_LOADER,] }] }
|
|
374
|
+
]; };
|
|
375
|
+
TuiTreeService = __decorate([
|
|
376
|
+
Injectable(),
|
|
377
|
+
__param(0, Inject(TUI_TREE_LOADING)),
|
|
378
|
+
__param(1, Inject(TUI_TREE_START)),
|
|
379
|
+
__param(2, Inject(TUI_TREE_LOADER))
|
|
380
|
+
], TuiTreeService);
|
|
381
|
+
return TuiTreeService;
|
|
382
|
+
}());
|
|
383
|
+
|
|
384
|
+
var TuiTreeModule = /** @class */ (function () {
|
|
385
|
+
function TuiTreeModule() {
|
|
386
|
+
}
|
|
387
|
+
TuiTreeModule = __decorate([
|
|
388
|
+
NgModule({
|
|
389
|
+
imports: [CommonModule, PolymorpheusModule, TuiExpandModule, TuiButtonModule],
|
|
390
|
+
entryComponents: [TuiTreeItemContentComponent],
|
|
391
|
+
declarations: [
|
|
392
|
+
TuiTreeComponent,
|
|
393
|
+
TuiTreeItemComponent,
|
|
394
|
+
TuiTreeItemContentComponent,
|
|
395
|
+
TuiTreeChildrenDirective,
|
|
396
|
+
TuiTreeItemControllerDirective,
|
|
397
|
+
TuiTreeControllerDirective,
|
|
398
|
+
TuiTreeNodeDirective,
|
|
399
|
+
],
|
|
400
|
+
exports: [
|
|
401
|
+
TuiTreeComponent,
|
|
402
|
+
TuiTreeItemComponent,
|
|
403
|
+
TuiTreeChildrenDirective,
|
|
404
|
+
TuiTreeItemControllerDirective,
|
|
405
|
+
TuiTreeControllerDirective,
|
|
406
|
+
],
|
|
407
|
+
})
|
|
408
|
+
], TuiTreeModule);
|
|
409
|
+
return TuiTreeModule;
|
|
410
|
+
}());
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Generated bundle index. Do not edit.
|
|
414
|
+
*/
|
|
415
|
+
|
|
416
|
+
export { TUI_DEFAULT_TREE_CONTROLLER, TUI_TREE_ACCESSOR, TUI_TREE_CONTENT, TUI_TREE_CONTROLLER, TUI_TREE_ITEM_CONTENT, TUI_TREE_ITEM_PROVIDERS, TUI_TREE_LEVEL, TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_NODE, TUI_TREE_START, TuiTreeChildrenDirective, TuiTreeComponent, TuiTreeControllerDirective, TuiTreeItemComponent, TuiTreeItemContentComponent, TuiTreeItemControllerDirective, TuiTreeModule, TuiTreeNodeDirective, TuiTreeService, treeLevelFactory };
|
|
417
|
+
//# sourceMappingURL=taiga-ui-kit-components-tree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-tree.js","sources":["ng://@taiga-ui/kit/components/tree/directives/tree-children.directive.ts","ng://@taiga-ui/kit/components/tree/components/tree-item-content/tree-item-content.component.ts","ng://@taiga-ui/kit/components/tree/misc/tree.constants.ts","ng://@taiga-ui/kit/components/tree/misc/tree.tokens.ts","ng://@taiga-ui/kit/components/tree/components/tree/tree.component.ts","ng://@taiga-ui/kit/components/tree/components/tree-item/tree-item.providers.ts","ng://@taiga-ui/kit/components/tree/components/tree-item/tree-item.component.ts","ng://@taiga-ui/kit/components/tree/directives/tree-controller.directive.ts","ng://@taiga-ui/kit/components/tree/directives/tree-item-controller.directive.ts","ng://@taiga-ui/kit/components/tree/directives/tree-node.directive.ts","ng://@taiga-ui/kit/components/tree/misc/tree.service.ts","ng://@taiga-ui/kit/components/tree/tree.module.ts","ng://@taiga-ui/kit/components/tree/taiga-ui-kit-components-tree.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {EMPTY_ARRAY, tuiDefaultProp, TuiHandler} from '@taiga-ui/cdk';\n\n@Directive({\n selector: 'tui-tree[childrenHandler]',\n})\nexport class TuiTreeChildrenDirective<T> {\n @Input()\n @tuiDefaultProp()\n childrenHandler: TuiHandler<T, readonly T[]> =\n TuiTreeChildrenDirective.defaultHandler;\n\n static defaultHandler<G>(item: G): readonly G[] {\n return Array.isArray(item) ? item : EMPTY_ARRAY;\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n forwardRef,\n HostBinding,\n Inject,\n} from '@angular/core';\nimport {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_DEFAULT_TREE_CONTROLLER} from '../../misc/tree.constants';\nimport {TuiTreeController, TuiTreeItemContext} from '../../misc/tree.interfaces';\nimport {TUI_TREE_CONTROLLER} from '../../misc/tree.tokens';\n\n@Component({\n selector: 'tui-tree-item-content',\n templateUrl: 'tree-item-content.template.html',\n styleUrls: ['tree-item-content.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiTreeItemContentComponent {\n constructor(\n @Inject(POLYMORPHEUS_CONTEXT) readonly context: TuiTreeItemContext,\n @Inject(forwardRef(() => TUI_TREE_CONTROLLER))\n private readonly controller: TuiTreeController,\n ) {}\n\n get isExpanded(): boolean {\n return this.context.$implicit.isExpanded;\n }\n\n @HostBinding('class._expandable')\n get isExpandable(): boolean {\n return (\n this.context.$implicit.isExpandable &&\n this.controller !== TUI_DEFAULT_TREE_CONTROLLER\n );\n }\n\n onClick() {\n this.controller?.toggle(this.context.$implicit);\n }\n}\n","import {ALWAYS_TRUE_HANDLER, EMPTY_FUNCTION} from '@taiga-ui/cdk';\nimport {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTreeItemContentComponent} from '../components/tree-item-content/tree-item-content.component';\nimport {TuiTreeController} from './tree.interfaces';\n\nexport const TUI_TREE_ITEM_CONTENT = new PolymorpheusComponent(\n TuiTreeItemContentComponent,\n);\n\nexport const TUI_DEFAULT_TREE_CONTROLLER: TuiTreeController = {\n isExpanded: ALWAYS_TRUE_HANDLER,\n toggle: EMPTY_FUNCTION as () => void,\n};\n","import {InjectionToken} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TUI_DEFAULT_TREE_CONTROLLER, TUI_TREE_ITEM_CONTENT} from './tree.constants';\nimport {\n TuiTreeAccessor,\n TuiTreeController,\n TuiTreeItemContext,\n TuiTreeLoader,\n} from './tree.interfaces';\n\nexport const TUI_TREE_ACCESSOR = new InjectionToken<TuiTreeAccessor<any>>(\n 'Controller for tracking value - TuiTreeItemComponent pairs',\n);\n\nexport const TUI_TREE_CONTROLLER = new InjectionToken<TuiTreeController>(\n 'Controller for expanding the tree',\n {\n factory: () => TUI_DEFAULT_TREE_CONTROLLER,\n },\n);\n\nexport const TUI_TREE_NODE = new InjectionToken('A node of a tree view');\n\nexport const TUI_TREE_LOADING = new InjectionToken(\n 'A tree node placeholder for loading',\n {factory: () => ({})},\n);\n\nexport const TUI_TREE_START = new InjectionToken('A tree node starting point');\n\nexport const TUI_TREE_LOADER = new InjectionToken<TuiTreeLoader<any>>(\n 'A service to load tree progressively',\n);\n\nexport const TUI_TREE_CONTENT = new InjectionToken<\n PolymorpheusContent<TuiTreeItemContext>\n>('Content for a tree item', {\n factory: () => TUI_TREE_ITEM_CONTENT,\n});\n\nexport const TUI_TREE_LEVEL = new InjectionToken<number>(\n 'Nesting level of current TreeView node',\n {\n factory: () => -1,\n },\n);\n","import {Component, Inject, Input, Optional} from '@angular/core';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTreeChildrenDirective} from '../../directives/tree-children.directive';\nimport {TuiTreeContext} from '../../misc/tree.interfaces';\nimport {TUI_TREE_NODE} from '../../misc/tree.tokens';\n\n@Component({\n selector: 'tui-tree[value]',\n templateUrl: 'tree.template.html',\n styleUrls: ['tree.style.less'],\n providers: [\n {\n provide: TUI_TREE_NODE,\n useExisting: TuiTreeComponent,\n },\n ],\n host: {\n role: 'tree',\n },\n})\nexport class TuiTreeComponent<T> {\n @Input()\n value!: T;\n\n @Input()\n content: PolymorpheusContent<TuiTreeContext<T>> = ({$implicit}) => String($implicit);\n\n constructor(\n @Optional()\n @Inject(TuiTreeChildrenDirective)\n readonly directive: TuiTreeChildrenDirective<T> | null,\n ) {}\n\n get children(): readonly T[] {\n return (\n this.directive?.childrenHandler(this.value) ??\n TuiTreeChildrenDirective.defaultHandler(this.value)\n );\n }\n}\n","import {forwardRef, Provider, SkipSelf} from '@angular/core';\n\nimport {TUI_TREE_LEVEL, TUI_TREE_NODE} from '../../misc/tree.tokens';\nimport {TuiTreeItemComponent} from './tree-item.component';\n\nexport const TUI_TREE_ITEM_PROVIDERS: Provider[] = [\n {\n provide: TUI_TREE_LEVEL,\n deps: [[new SkipSelf(), TUI_TREE_LEVEL]],\n useFactory: treeLevelFactory,\n },\n {\n provide: TUI_TREE_NODE,\n useExisting: forwardRef(() => TuiTreeItemComponent),\n },\n];\n\nexport function treeLevelFactory(level: number): number {\n return ++level;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n DoCheck,\n ElementRef,\n forwardRef,\n HostBinding,\n Inject,\n QueryList,\n} from '@angular/core';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk';\nimport {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';\nimport {Subject} from 'rxjs';\nimport {distinctUntilChanged, map, startWith} from 'rxjs/operators';\n\nimport {TuiTreeController, TuiTreeItemContext} from '../../misc/tree.interfaces';\nimport {\n TUI_TREE_CONTENT,\n TUI_TREE_CONTROLLER,\n TUI_TREE_LEVEL,\n TUI_TREE_NODE,\n} from '../../misc/tree.tokens';\nimport {TUI_TREE_ITEM_PROVIDERS} from './tree-item.providers';\n\n@Component({\n selector: 'tui-tree-item',\n templateUrl: './tree-item.template.html',\n styleUrls: ['./tree-item.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_TREE_ITEM_PROVIDERS,\n host: {\n role: 'treeitem',\n },\n})\nexport class TuiTreeItemComponent implements DoCheck {\n private readonly change$ = new Subject<void>();\n\n @ContentChildren(TUI_TREE_NODE as any)\n private readonly nested: QueryList<unknown> = EMPTY_QUERY;\n\n readonly expanded$ = this.change$.pipe(\n startWith(null),\n map(() => this.isExpanded),\n distinctUntilChanged(),\n );\n\n readonly attached$ = this.change$.pipe(\n map(() => this.elementRef.nativeElement.isConnected),\n distinctUntilChanged(),\n );\n\n constructor(\n @Inject(ElementRef)\n private readonly elementRef: ElementRef<HTMLElement>,\n @Inject(forwardRef(() => TUI_TREE_CONTROLLER))\n private readonly controller: TuiTreeController,\n @Inject(forwardRef(() => TUI_TREE_LEVEL))\n readonly level: number,\n @Inject(forwardRef(() => TUI_TREE_CONTENT))\n readonly content: PolymorpheusContent<TuiTreeItemContext>,\n ) {}\n\n @HostBinding('class._expandable')\n get isExpandable(): boolean {\n return !!this.nested.length;\n }\n\n get isExpanded(): boolean {\n return this.controller.isExpanded(this);\n }\n\n ngDoCheck() {\n this.change$.next();\n }\n}\n","import {Directive, EventEmitter, Input, Output} from '@angular/core';\nimport {isPresent, tuiDefaultProp} from '@taiga-ui/cdk';\n\nimport {TuiTreeItemComponent} from '../components/tree-item/tree-item.component';\nimport {TuiTreeAccessor, TuiTreeController} from '../misc/tree.interfaces';\nimport {TUI_TREE_ACCESSOR, TUI_TREE_CONTROLLER} from '../misc/tree.tokens';\n\n@Directive({\n selector: '[tuiTreeController][map]',\n exportAs: 'tuiTreeController',\n providers: [\n {\n provide: TUI_TREE_ACCESSOR,\n useExisting: TuiTreeControllerDirective,\n },\n {\n provide: TUI_TREE_CONTROLLER,\n useExisting: TuiTreeControllerDirective,\n },\n ],\n})\nexport class TuiTreeControllerDirective<T>\n implements TuiTreeController, TuiTreeAccessor<T>\n{\n @Input('tuiTreeController')\n @tuiDefaultProp()\n fallback = true;\n\n @Input()\n @tuiDefaultProp()\n map: Map<T, boolean> = new Map();\n\n @Output()\n readonly toggled = new EventEmitter<T>();\n\n readonly items = new Map<TuiTreeItemComponent, T>();\n\n register(item: TuiTreeItemComponent, value: T) {\n this.items.set(item, value);\n }\n\n unregister(item: TuiTreeItemComponent) {\n this.items.delete(item);\n }\n\n isExpanded(item: TuiTreeItemComponent): boolean {\n const value = this.items.get(item);\n\n return (value && this.map.get(value)) ?? this.fallback;\n }\n\n toggle(item: TuiTreeItemComponent) {\n const value = this.items.get(item);\n const expanded = this.isExpanded(item);\n\n if (!isPresent(value)) {\n return;\n }\n\n this.toggled.emit(value);\n this.map.set(value, !expanded);\n }\n}\n","import {Directive, Input} from '@angular/core';\nimport {tuiDefaultProp} from '@taiga-ui/cdk';\n\nimport {TuiTreeItemComponent} from '../components/tree-item/tree-item.component';\nimport {TuiTreeController} from '../misc/tree.interfaces';\nimport {TUI_TREE_CONTROLLER} from '../misc/tree.tokens';\n\n@Directive({\n selector: '[tuiTreeController]:not([map])',\n exportAs: 'tuiTreeController',\n providers: [\n {\n provide: TUI_TREE_CONTROLLER,\n useExisting: TuiTreeItemControllerDirective,\n },\n ],\n})\nexport class TuiTreeItemControllerDirective implements TuiTreeController {\n @Input('tuiTreeController')\n @tuiDefaultProp()\n fallback = true;\n\n private readonly map = new WeakMap<TuiTreeItemComponent, boolean>();\n\n isExpanded(item: TuiTreeItemComponent): boolean {\n return this.map.get(item) ?? this.fallback;\n }\n\n toggle(item: TuiTreeItemComponent) {\n this.map.set(item, !this.isExpanded(item));\n }\n}\n","import {Directive, Inject, Input, OnDestroy, Optional} from '@angular/core';\n\nimport {TuiTreeItemComponent} from '../components/tree-item/tree-item.component';\nimport {TuiTreeAccessor} from '../misc/tree.interfaces';\nimport {TUI_TREE_ACCESSOR} from '../misc/tree.tokens';\n\n@Directive({\n selector: 'tui-tree-item[tuiTreeNode]',\n})\nexport class TuiTreeNodeDirective<T> implements OnDestroy {\n @Input('tuiTreeNode')\n set value(value: T) {\n this.directive?.register(this.component, value);\n }\n\n constructor(\n @Optional()\n @Inject(TUI_TREE_ACCESSOR)\n private readonly directive: TuiTreeAccessor<T>,\n @Inject(TuiTreeItemComponent)\n private readonly component: TuiTreeItemComponent,\n ) {}\n\n ngOnDestroy() {\n this.directive?.unregister(this.component);\n }\n}\n","import {Inject, Injectable} from '@angular/core';\nimport {Subject} from 'rxjs';\nimport {map, mapTo, startWith, switchMap, tap} from 'rxjs/operators';\n\nimport {TuiTreeLoader} from './tree.interfaces';\nimport {TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_START} from './tree.tokens';\n\n// @dynamic\n@Injectable()\nexport class TuiTreeService<T> {\n private readonly map = new Map<T, readonly T[]>([[this.loading, []]]);\n\n private readonly load$ = new Subject<T>();\n\n readonly data$ = this.load$.pipe(\n switchMap(item =>\n this.loader.loadChildren(item).pipe(\n tap(children => this.map.set(item, children)),\n map(children => children.filter(item => !this.loader.hasChildren(item))),\n tap(children => children.forEach(child => this.map.set(child, []))),\n ),\n ),\n startWith(null),\n mapTo(this.start),\n );\n\n constructor(\n @Inject(TUI_TREE_LOADING) private readonly loading: T,\n @Inject(TUI_TREE_START) private readonly start: T,\n @Inject(TUI_TREE_LOADER) private readonly loader: TuiTreeLoader<T>,\n ) {}\n\n getChildren(item: T): readonly T[] {\n return this.map.get(item) ?? [this.loading];\n }\n\n loadChildren(item: T) {\n if (this.map.get(item)) {\n return;\n }\n\n this.map.set(item, [this.loading]);\n this.load$.next(item);\n }\n}\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {TuiButtonModule, TuiExpandModule} from '@taiga-ui/core';\nimport {PolymorpheusModule} from '@tinkoff/ng-polymorpheus';\n\nimport {TuiTreeComponent} from './components/tree/tree.component';\nimport {TuiTreeItemComponent} from './components/tree-item/tree-item.component';\nimport {TuiTreeItemContentComponent} from './components/tree-item-content/tree-item-content.component';\nimport {TuiTreeChildrenDirective} from './directives/tree-children.directive';\nimport {TuiTreeControllerDirective} from './directives/tree-controller.directive';\nimport {TuiTreeItemControllerDirective} from './directives/tree-item-controller.directive';\nimport {TuiTreeNodeDirective} from './directives/tree-node.directive';\n\n@NgModule({\n imports: [CommonModule, PolymorpheusModule, TuiExpandModule, TuiButtonModule],\n entryComponents: [TuiTreeItemContentComponent],\n declarations: [\n TuiTreeComponent,\n TuiTreeItemComponent,\n TuiTreeItemContentComponent,\n TuiTreeChildrenDirective,\n TuiTreeItemControllerDirective,\n TuiTreeControllerDirective,\n TuiTreeNodeDirective,\n ],\n exports: [\n TuiTreeComponent,\n TuiTreeItemComponent,\n TuiTreeChildrenDirective,\n TuiTreeItemControllerDirective,\n TuiTreeControllerDirective,\n ],\n})\nexport class TuiTreeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;IAMA;QAGI,oBAAe,GACX,0BAAwB,CAAC,cAAc,CAAC;KAK/C;iCATY,wBAAwB;IAM1B,uCAAc,GAArB,UAAyB,IAAO;QAC5B,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,WAAW,CAAC;KACnD;;IALD;QAFC,KAAK,EAAE;QACP,cAAc,EAAE;qEAE2B;IAJnC,wBAAwB;QAHpC,SAAS,CAAC;YACP,QAAQ,EAAE,2BAA2B;SACxC,CAAC;OACW,wBAAwB,CASpC;IAAD,+BAAC;CATD;;;ICcI,qCAC2C,OAA2B,EAEjD,UAA6B;QAFP,YAAO,GAAP,OAAO,CAAoB;QAEjD,eAAU,GAAV,UAAU,CAAmB;KAC9C;IAEJ,sBAAI,mDAAU;aAAd;YACI,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC;SAC5C;;;OAAA;IAGD,sBAAI,qDAAY;aAAhB;YACI,QACI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,YAAY;gBACnC,IAAI,CAAC,UAAU,KAAK,2BAA2B,EACjD;SACL;;;OAAA;IAED,6CAAO,GAAP;;QACI,MAAA,IAAI,CAAC,UAAU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