@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
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __decorate, __param } from "tslib";
|
|
2
|
+
import { Component, Inject, Input, Optional } from '@angular/core';
|
|
3
|
+
import { TuiTreeChildrenDirective } from '../../directives/tree-children.directive';
|
|
4
|
+
import { TUI_TREE_NODE } from '../../misc/tree.tokens';
|
|
5
|
+
var TuiTreeComponent = /** @class */ (function () {
|
|
6
|
+
function TuiTreeComponent(directive) {
|
|
7
|
+
this.directive = directive;
|
|
8
|
+
this.content = function (_a) {
|
|
9
|
+
var $implicit = _a.$implicit;
|
|
10
|
+
return String($implicit);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
TuiTreeComponent_1 = TuiTreeComponent;
|
|
14
|
+
Object.defineProperty(TuiTreeComponent.prototype, "children", {
|
|
15
|
+
get: function () {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
return ((_b = (_a = this.directive) === null || _a === void 0 ? void 0 : _a.childrenHandler(this.value)) !== null && _b !== void 0 ? _b : TuiTreeChildrenDirective.defaultHandler(this.value));
|
|
18
|
+
},
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
var TuiTreeComponent_1;
|
|
23
|
+
TuiTreeComponent.ctorParameters = function () { return [
|
|
24
|
+
{ type: TuiTreeChildrenDirective, decorators: [{ type: Optional }, { type: Inject, args: [TuiTreeChildrenDirective,] }] }
|
|
25
|
+
]; };
|
|
26
|
+
__decorate([
|
|
27
|
+
Input()
|
|
28
|
+
], TuiTreeComponent.prototype, "value", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Input()
|
|
31
|
+
], TuiTreeComponent.prototype, "content", void 0);
|
|
32
|
+
TuiTreeComponent = TuiTreeComponent_1 = __decorate([
|
|
33
|
+
Component({
|
|
34
|
+
selector: 'tui-tree[value]',
|
|
35
|
+
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",
|
|
36
|
+
providers: [
|
|
37
|
+
{
|
|
38
|
+
provide: TUI_TREE_NODE,
|
|
39
|
+
useExisting: TuiTreeComponent_1,
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
host: {
|
|
43
|
+
role: 'tree',
|
|
44
|
+
},
|
|
45
|
+
styles: [":host{position:relative;display:block}"]
|
|
46
|
+
}),
|
|
47
|
+
__param(0, Optional()),
|
|
48
|
+
__param(0, Inject(TuiTreeChildrenDirective))
|
|
49
|
+
], TuiTreeComponent);
|
|
50
|
+
return TuiTreeComponent;
|
|
51
|
+
}());
|
|
52
|
+
export { TuiTreeComponent };
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdHJlZS8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvdHJlZS90cmVlLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxNQUFNLEVBQUUsS0FBSyxFQUFFLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUdqRSxPQUFPLEVBQUMsd0JBQXdCLEVBQUMsT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0pID0+IFN0cmluZygkaW1wbGljaXQpO1xuXG4gICAgY29uc3RydWN0b3IoXG4gICAgICAgIEBPcHRpb25hbCgpXG4gICAgICAgIEBJbmplY3QoVHVpVHJlZUNoaWxkcmVuRGlyZWN0aXZlKVxuICAgICAgICByZWFkb25seSBkaXJlY3RpdmU6IFR1aVRyZWVDaGlsZHJlbkRpcmVjdGl2ZTxUPiB8IG51bGwsXG4gICAgKSB7fVxuXG4gICAgZ2V0IGNoaWxkcmVuKCk6IHJlYWRvbmx5IFRbXSB7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICB0aGlzLmRpcmVjdGl2ZT8uY2hpbGRyZW5IYW5kbGVyKHRoaXMudmFsdWUpID8/XG4gICAgICAgICAgICBUdWlUcmVlQ2hpbGRyZW5EaXJlY3RpdmUuZGVmYXVsdEhhbmRsZXIodGhpcy52YWx1ZSlcbiAgICAgICAgKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { __decorate, __param } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ContentChildren, DoCheck, ElementRef, forwardRef, HostBinding, Inject, QueryList, } from '@angular/core';
|
|
3
|
+
import { EMPTY_QUERY } from '@taiga-ui/cdk';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { distinctUntilChanged, map, startWith } from 'rxjs/operators';
|
|
6
|
+
import { TUI_TREE_CONTENT, TUI_TREE_CONTROLLER, TUI_TREE_LEVEL, TUI_TREE_NODE, } from '../../misc/tree.tokens';
|
|
7
|
+
import { TUI_TREE_ITEM_PROVIDERS } from './tree-item.providers';
|
|
8
|
+
var TuiTreeItemComponent = /** @class */ (function () {
|
|
9
|
+
function TuiTreeItemComponent(elementRef, controller, level, content) {
|
|
10
|
+
var _this = this;
|
|
11
|
+
this.elementRef = elementRef;
|
|
12
|
+
this.controller = controller;
|
|
13
|
+
this.level = level;
|
|
14
|
+
this.content = content;
|
|
15
|
+
this.change$ = new Subject();
|
|
16
|
+
this.nested = EMPTY_QUERY;
|
|
17
|
+
this.expanded$ = this.change$.pipe(startWith(null), map(function () { return _this.isExpanded; }), distinctUntilChanged());
|
|
18
|
+
this.attached$ = this.change$.pipe(map(function () { return _this.elementRef.nativeElement.isConnected; }), distinctUntilChanged());
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(TuiTreeItemComponent.prototype, "isExpandable", {
|
|
21
|
+
get: function () {
|
|
22
|
+
return !!this.nested.length;
|
|
23
|
+
},
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(TuiTreeItemComponent.prototype, "isExpanded", {
|
|
28
|
+
get: function () {
|
|
29
|
+
return this.controller.isExpanded(this);
|
|
30
|
+
},
|
|
31
|
+
enumerable: true,
|
|
32
|
+
configurable: true
|
|
33
|
+
});
|
|
34
|
+
TuiTreeItemComponent.prototype.ngDoCheck = function () {
|
|
35
|
+
this.change$.next();
|
|
36
|
+
};
|
|
37
|
+
TuiTreeItemComponent.ctorParameters = function () { return [
|
|
38
|
+
{ type: ElementRef, decorators: [{ type: Inject, args: [ElementRef,] }] },
|
|
39
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTROLLER; }),] }] },
|
|
40
|
+
{ type: Number, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_LEVEL; }),] }] },
|
|
41
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTENT; }),] }] }
|
|
42
|
+
]; };
|
|
43
|
+
__decorate([
|
|
44
|
+
ContentChildren(TUI_TREE_NODE)
|
|
45
|
+
], TuiTreeItemComponent.prototype, "nested", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
HostBinding('class._expandable')
|
|
48
|
+
], TuiTreeItemComponent.prototype, "isExpandable", null);
|
|
49
|
+
TuiTreeItemComponent = __decorate([
|
|
50
|
+
Component({
|
|
51
|
+
selector: 'tui-tree-item',
|
|
52
|
+
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",
|
|
53
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
54
|
+
providers: TUI_TREE_ITEM_PROVIDERS,
|
|
55
|
+
host: {
|
|
56
|
+
role: 'treeitem',
|
|
57
|
+
},
|
|
58
|
+
styles: [":host{display:block}.t-children{position:relative;margin-left:var(--tui-tree-item-indent,1.5rem)}"]
|
|
59
|
+
}),
|
|
60
|
+
__param(0, Inject(ElementRef)),
|
|
61
|
+
__param(1, Inject(forwardRef(function () { return TUI_TREE_CONTROLLER; }))),
|
|
62
|
+
__param(2, Inject(forwardRef(function () { return TUI_TREE_LEVEL; }))),
|
|
63
|
+
__param(3, Inject(forwardRef(function () { return TUI_TREE_CONTENT; })))
|
|
64
|
+
], TuiTreeItemComponent);
|
|
65
|
+
return TuiTreeItemComponent;
|
|
66
|
+
}());
|
|
67
|
+
export { TuiTreeItemComponent };
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90cmVlLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy90cmVlLWl0ZW0vdHJlZS1pdGVtLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNILHVCQUF1QixFQUN2QixTQUFTLEVBQ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ldHVybiAhIXRoaXMubmVzdGVkLmxlbmd0aDtcbiAgICB9XG5cbiAgICBnZXQgaXNFeHBhbmRlZCgpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMuY29udHJvbGxlci5pc0V4cGFuZGVkKHRoaXMpO1xuICAgIH1cblxuICAgIG5nRG9DaGVjaygpIHtcbiAgICAgICAgdGhpcy5jaGFuZ2UkLm5leHQoKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { forwardRef, SkipSelf } from '@angular/core';
|
|
2
|
+
import { TUI_TREE_LEVEL, TUI_TREE_NODE } from '../../misc/tree.tokens';
|
|
3
|
+
import { TuiTreeItemComponent } from './tree-item.component';
|
|
4
|
+
export var TUI_TREE_ITEM_PROVIDERS = [
|
|
5
|
+
{
|
|
6
|
+
provide: TUI_TREE_LEVEL,
|
|
7
|
+
deps: [[new SkipSelf(), TUI_TREE_LEVEL]],
|
|
8
|
+
useFactory: treeLevelFactory,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
provide: TUI_TREE_NODE,
|
|
12
|
+
useExisting: forwardRef(function () { return TuiTreeItemComponent; }),
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
export function treeLevelFactory(level) {
|
|
16
|
+
return ++level;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtLnByb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90cmVlLyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy90cmVlLWl0ZW0vdHJlZS1pdGVtLnByb3ZpZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsVUFBVSxFQUFZLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUU3RCxPQUFPLEVB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ZUxldmVsRmFjdG9yeSxcbiAgICB9LFxuICAgIHtcbiAgICAgICAgcHJvdmlkZTogVFVJX1RSRUVfTk9ERSxcbiAgICAgICAgdXNlRXhpc3Rpbmc6IGZvcndhcmRSZWYoKCkgPT4gVHVpVHJlZUl0ZW1Db21wb25lbnQpLFxuICAgIH0sXG5dO1xuXG5leHBvcnQgZnVuY3Rpb24gdHJlZUxldmVsRmFjdG9yeShsZXZlbDogbnVtYmVyKTogbnVtYmVyIHtcbiAgICByZXR1cm4gKytsZXZlbDtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __decorate, __param } from "tslib";
|
|
2
|
+
import { ChangeDetectionStrategy, Component, forwardRef, HostBinding, Inject, } from '@angular/core';
|
|
3
|
+
import { POLYMORPHEUS_CONTEXT } from '@tinkoff/ng-polymorpheus';
|
|
4
|
+
import { TUI_DEFAULT_TREE_CONTROLLER } from '../../misc/tree.constants';
|
|
5
|
+
import { TUI_TREE_CONTROLLER } from '../../misc/tree.tokens';
|
|
6
|
+
var TuiTreeItemContentComponent = /** @class */ (function () {
|
|
7
|
+
function TuiTreeItemContentComponent(context, controller) {
|
|
8
|
+
this.context = context;
|
|
9
|
+
this.controller = controller;
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(TuiTreeItemContentComponent.prototype, "isExpanded", {
|
|
12
|
+
get: function () {
|
|
13
|
+
return this.context.$implicit.isExpanded;
|
|
14
|
+
},
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(TuiTreeItemContentComponent.prototype, "isExpandable", {
|
|
19
|
+
get: function () {
|
|
20
|
+
return (this.context.$implicit.isExpandable &&
|
|
21
|
+
this.controller !== TUI_DEFAULT_TREE_CONTROLLER);
|
|
22
|
+
},
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true
|
|
25
|
+
});
|
|
26
|
+
TuiTreeItemContentComponent.prototype.onClick = function () {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = this.controller) === null || _a === void 0 ? void 0 : _a.toggle(this.context.$implicit);
|
|
29
|
+
};
|
|
30
|
+
TuiTreeItemContentComponent.ctorParameters = function () { return [
|
|
31
|
+
{ type: undefined, decorators: [{ type: Inject, args: [POLYMORPHEUS_CONTEXT,] }] },
|
|
32
|
+
{ type: undefined, decorators: [{ type: Inject, args: [forwardRef(function () { return TUI_TREE_CONTROLLER; }),] }] }
|
|
33
|
+
]; };
|
|
34
|
+
__decorate([
|
|
35
|
+
HostBinding('class._expandable')
|
|
36
|
+
], TuiTreeItemContentComponent.prototype, "isExpandable", null);
|
|
37
|
+
TuiTreeItemContentComponent = __decorate([
|
|
38
|
+
Component({
|
|
39
|
+
selector: 'tui-tree-item-content',
|
|
40
|
+
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",
|
|
41
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
|
+
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)}"]
|
|
43
|
+
}),
|
|
44
|
+
__param(0, Inject(POLYMORPHEUS_CONTEXT)),
|
|
45
|
+
__param(1, Inject(forwardRef(function () { return TUI_TREE_CONTROLLER; })))
|
|
46
|
+
], TuiTreeItemContentComponent);
|
|
47
|
+
return TuiTreeItemContentComponent;
|
|
48
|
+
}());
|
|
49
|
+
export { TuiTreeItemContentComponent };
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtL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xUX1RSRUVfQ09OVFJPTExFUlxuICAgICAgICApO1xuICAgIH1cblxuICAgIG9uQ2xpY2soKSB7XG4gICAgICAgIHRoaXMuY29udHJvbGxlcj8udG9nZ2xlKHRoaXMuY29udGV4dC4kaW1wbGljaXQpO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Directive, Input } from '@angular/core';
|
|
3
|
+
import { EMPTY_ARRAY, tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
+
var TuiTreeChildrenDirective = /** @class */ (function () {
|
|
5
|
+
function TuiTreeChildrenDirective() {
|
|
6
|
+
this.childrenHandler = TuiTreeChildrenDirective_1.defaultHandler;
|
|
7
|
+
}
|
|
8
|
+
TuiTreeChildrenDirective_1 = TuiTreeChildrenDirective;
|
|
9
|
+
TuiTreeChildrenDirective.defaultHandler = function (item) {
|
|
10
|
+
return Array.isArray(item) ? item : EMPTY_ARRAY;
|
|
11
|
+
};
|
|
12
|
+
var TuiTreeChildrenDirective_1;
|
|
13
|
+
__decorate([
|
|
14
|
+
Input(),
|
|
15
|
+
tuiDefaultProp()
|
|
16
|
+
], TuiTreeChildrenDirective.prototype, "childrenHandler", void 0);
|
|
17
|
+
TuiTreeChildrenDirective = TuiTreeChildrenDirective_1 = __decorate([
|
|
18
|
+
Directive({
|
|
19
|
+
selector: 'tui-tree[childrenHandler]',
|
|
20
|
+
})
|
|
21
|
+
], TuiTreeChildrenDirective);
|
|
22
|
+
return TuiTreeChildrenDirective;
|
|
23
|
+
}());
|
|
24
|
+
export { TuiTreeChildrenDirective };
|
|
25
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1jaGlsZHJlbi5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdHJlZS8iLCJzb3VyY2VzIjpbImRp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EB0dWlEZWZhdWx0UHJvcCgpXG4gICAgY2hpbGRyZW5IYW5kbGVyOiBUdWlIYW5kbGVyPFQsIHJlYWRvbmx5IFRbXT4gPVxuICAgICAgICBUdWlUcmVlQ2hpbGRyZW5EaXJlY3RpdmUuZGVmYXVsdEhhbmRsZXI7XG5cbiAgICBzdGF0aWMgZGVmYXVsdEhhbmRsZXI8Rz4oaXRlbTogRyk6IHJlYWRvbmx5IEdbXSB7XG4gICAgICAgIHJldHVybiBBcnJheS5pc0FycmF5KGl0ZW0pID8gaXRlbSA6IEVNUFRZX0FSUkFZO1xuICAgIH1cbn1cbiJdfQ==
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Directive, EventEmitter, Input, Output } from '@angular/core';
|
|
3
|
+
import { isPresent, tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
+
import { TUI_TREE_ACCESSOR, TUI_TREE_CONTROLLER } from '../misc/tree.tokens';
|
|
5
|
+
var TuiTreeControllerDirective = /** @class */ (function () {
|
|
6
|
+
function TuiTreeControllerDirective() {
|
|
7
|
+
this.fallback = true;
|
|
8
|
+
this.map = new Map();
|
|
9
|
+
this.toggled = new EventEmitter();
|
|
10
|
+
this.items = new Map();
|
|
11
|
+
}
|
|
12
|
+
TuiTreeControllerDirective_1 = TuiTreeControllerDirective;
|
|
13
|
+
TuiTreeControllerDirective.prototype.register = function (item, value) {
|
|
14
|
+
this.items.set(item, value);
|
|
15
|
+
};
|
|
16
|
+
TuiTreeControllerDirective.prototype.unregister = function (item) {
|
|
17
|
+
this.items.delete(item);
|
|
18
|
+
};
|
|
19
|
+
TuiTreeControllerDirective.prototype.isExpanded = function (item) {
|
|
20
|
+
var _a;
|
|
21
|
+
var value = this.items.get(item);
|
|
22
|
+
return (_a = (value && this.map.get(value))) !== null && _a !== void 0 ? _a : this.fallback;
|
|
23
|
+
};
|
|
24
|
+
TuiTreeControllerDirective.prototype.toggle = function (item) {
|
|
25
|
+
var value = this.items.get(item);
|
|
26
|
+
var expanded = this.isExpanded(item);
|
|
27
|
+
if (!isPresent(value)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.toggled.emit(value);
|
|
31
|
+
this.map.set(value, !expanded);
|
|
32
|
+
};
|
|
33
|
+
var TuiTreeControllerDirective_1;
|
|
34
|
+
__decorate([
|
|
35
|
+
Input('tuiTreeController'),
|
|
36
|
+
tuiDefaultProp()
|
|
37
|
+
], TuiTreeControllerDirective.prototype, "fallback", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
Input(),
|
|
40
|
+
tuiDefaultProp()
|
|
41
|
+
], TuiTreeControllerDirective.prototype, "map", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
Output()
|
|
44
|
+
], TuiTreeControllerDirective.prototype, "toggled", void 0);
|
|
45
|
+
TuiTreeControllerDirective = TuiTreeControllerDirective_1 = __decorate([
|
|
46
|
+
Directive({
|
|
47
|
+
selector: '[tuiTreeController][map]',
|
|
48
|
+
exportAs: 'tuiTreeController',
|
|
49
|
+
providers: [
|
|
50
|
+
{
|
|
51
|
+
provide: TUI_TREE_ACCESSOR,
|
|
52
|
+
useExisting: TuiTreeControllerDirective_1,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
provide: TUI_TREE_CONTROLLER,
|
|
56
|
+
useExisting: TuiTreeControllerDirective_1,
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
})
|
|
60
|
+
], TuiTreeControllerDirective);
|
|
61
|
+
return TuiTreeControllerDirective;
|
|
62
|
+
}());
|
|
63
|
+
export { TuiTreeControllerDirective };
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1jb250cm9sbGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90cmVlLyIsInNvdXJjZXMiOlsiZGlyZWN0aX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ICAgaWYgKCFpc1ByZXNlbnQodmFsdWUpKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnRvZ2dsZWQuZW1pdCh2YWx1ZSk7XG4gICAgICAgIHRoaXMubWFwLnNldCh2YWx1ZSwgIWV4cGFuZGVkKTtcbiAgICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Directive, Input } from '@angular/core';
|
|
3
|
+
import { tuiDefaultProp } from '@taiga-ui/cdk';
|
|
4
|
+
import { TUI_TREE_CONTROLLER } from '../misc/tree.tokens';
|
|
5
|
+
var TuiTreeItemControllerDirective = /** @class */ (function () {
|
|
6
|
+
function TuiTreeItemControllerDirective() {
|
|
7
|
+
this.fallback = true;
|
|
8
|
+
this.map = new WeakMap();
|
|
9
|
+
}
|
|
10
|
+
TuiTreeItemControllerDirective_1 = TuiTreeItemControllerDirective;
|
|
11
|
+
TuiTreeItemControllerDirective.prototype.isExpanded = function (item) {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = this.map.get(item)) !== null && _a !== void 0 ? _a : this.fallback;
|
|
14
|
+
};
|
|
15
|
+
TuiTreeItemControllerDirective.prototype.toggle = function (item) {
|
|
16
|
+
this.map.set(item, !this.isExpanded(item));
|
|
17
|
+
};
|
|
18
|
+
var TuiTreeItemControllerDirective_1;
|
|
19
|
+
__decorate([
|
|
20
|
+
Input('tuiTreeController'),
|
|
21
|
+
tuiDefaultProp()
|
|
22
|
+
], TuiTreeItemControllerDirective.prototype, "fallback", void 0);
|
|
23
|
+
TuiTreeItemControllerDirective = TuiTreeItemControllerDirective_1 = __decorate([
|
|
24
|
+
Directive({
|
|
25
|
+
selector: '[tuiTreeController]:not([map])',
|
|
26
|
+
exportAs: 'tuiTreeController',
|
|
27
|
+
providers: [
|
|
28
|
+
{
|
|
29
|
+
provide: TUI_TREE_CONTROLLER,
|
|
30
|
+
useExisting: TuiTreeItemControllerDirective_1,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
})
|
|
34
|
+
], TuiTreeItemControllerDirective);
|
|
35
|
+
return TuiTreeItemControllerDirective;
|
|
36
|
+
}());
|
|
37
|
+
export { TuiTreeItemControllerDirective };
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1pdGVtLWNvbnRyb2xsZXIuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHRhaWdhLXVpL2tpdC9jb21wb25lbnRzL3RyZWUvIiwic291cmNlcyI6WyJkaXJlY3RpdmVzL3RyZWUtaXRlbS1jb250cm9sbGVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUk3QyxPQUFPLEVBQUMsbUJBQW1CLEVBQUMsTUFBTSxxQkFBcUIsQ0FBQztBQVl4RDtJQUFBO1FBR0ksYUFBUSxHQUFHLElBQUksQ0FBQztRQUVDLFFBQUcsR0FBRyxJQUFJLE9BQU8sRUFBaUMsQ0FBQztJQVN4RSxDQUFDO3VDQWRZLDhCQUE4QjtJQU92QyxtREFBVSxHQUFWLFVBQVcsSUFBMEI7O1FBQ2pDLGFBQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLG1DQUFJLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDL0MsQ0FBQztJQUVELCtDQUFNLEdBQU4sVUFBTyxJQUEwQjtRQUM3QixJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxDQUFD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lUcmVlSXRlbUNvbnRyb2xsZXJEaXJlY3RpdmUsXG4gICAgICAgIH0sXG4gICAgXSxcbn0pXG5leHBvcnQgY2xhc3MgVHVpVHJlZUl0ZW1Db250cm9sbGVyRGlyZWN0aXZlIGltcGxlbWVudHMgVHVpVHJlZUNvbnRyb2xsZXIge1xuICAgIEBJbnB1dCgndHVpVHJlZUNvbnRyb2xsZXInKVxuICAgIEB0dWlEZWZhdWx0UHJvcCgpXG4gICAgZmFsbGJhY2sgPSB0cnVlO1xuXG4gICAgcHJpdmF0ZSByZWFkb25seSBtYXAgPSBuZXcgV2Vha01hcDxUdWlUcmVlSXRlbUNvbXBvbmVudCwgYm9vbGVhbj4oKTtcblxuICAgIGlzRXhwYW5kZWQoaXRlbTogVHVpVHJlZUl0ZW1Db21wb25lbnQpOiBib29sZWFuIHtcbiAgICAgICAgcmV0dXJuIHRoaXMubWFwLmdldChpdGVtKSA/PyB0aGlzLmZhbGxiYWNrO1xuICAgIH1cblxuICAgIHRvZ2dsZShpdGVtOiBUdWlUcmVlSXRlbUNvbXBvbmVudCkge1xuICAgICAgICB0aGlzLm1hcC5zZXQoaXRlbSwgIXRoaXMuaXNFeHBhbmRlZChpdGVtKSk7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __decorate, __param } from "tslib";
|
|
2
|
+
import { Directive, Inject, Input, Optional } from '@angular/core';
|
|
3
|
+
import { TuiTreeItemComponent } from '../components/tree-item/tree-item.component';
|
|
4
|
+
import { TUI_TREE_ACCESSOR } from '../misc/tree.tokens';
|
|
5
|
+
var TuiTreeNodeDirective = /** @class */ (function () {
|
|
6
|
+
function TuiTreeNodeDirective(directive, component) {
|
|
7
|
+
this.directive = directive;
|
|
8
|
+
this.component = component;
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(TuiTreeNodeDirective.prototype, "value", {
|
|
11
|
+
set: function (value) {
|
|
12
|
+
var _a;
|
|
13
|
+
(_a = this.directive) === null || _a === void 0 ? void 0 : _a.register(this.component, value);
|
|
14
|
+
},
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true
|
|
17
|
+
});
|
|
18
|
+
TuiTreeNodeDirective.prototype.ngOnDestroy = function () {
|
|
19
|
+
var _a;
|
|
20
|
+
(_a = this.directive) === null || _a === void 0 ? void 0 : _a.unregister(this.component);
|
|
21
|
+
};
|
|
22
|
+
TuiTreeNodeDirective.ctorParameters = function () { return [
|
|
23
|
+
{ type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [TUI_TREE_ACCESSOR,] }] },
|
|
24
|
+
{ type: TuiTreeItemComponent, decorators: [{ type: Inject, args: [TuiTreeItemComponent,] }] }
|
|
25
|
+
]; };
|
|
26
|
+
__decorate([
|
|
27
|
+
Input('tuiTreeNode')
|
|
28
|
+
], TuiTreeNodeDirective.prototype, "value", null);
|
|
29
|
+
TuiTreeNodeDirective = __decorate([
|
|
30
|
+
Directive({
|
|
31
|
+
selector: 'tui-tree-item[tuiTreeNode]',
|
|
32
|
+
}),
|
|
33
|
+
__param(0, Optional()),
|
|
34
|
+
__param(0, Inject(TUI_TREE_ACCESSOR)),
|
|
35
|
+
__param(1, Inject(TuiTreeItemComponent))
|
|
36
|
+
], TuiTreeNodeDirective);
|
|
37
|
+
return TuiTreeNodeDirective;
|
|
38
|
+
}());
|
|
39
|
+
export { TuiTreeNodeDirective };
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS1ub2RlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90cmVlLyIsInNvdXJjZXMiOlsiZGlyZWN0aXZlcy90cmVlLW5vZGUuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsU0FBUyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQWEsUUFBUSxF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mNvbXBvbmVudCk7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './components/tree/tree.component';
|
|
2
|
+
export * from './components/tree-item/tree-item.component';
|
|
3
|
+
export * from './components/tree-item/tree-item.providers';
|
|
4
|
+
export * from './components/tree-item-content/tree-item-content.component';
|
|
5
|
+
export * from './directives/tree-children.directive';
|
|
6
|
+
export * from './directives/tree-controller.directive';
|
|
7
|
+
export * from './directives/tree-item-controller.directive';
|
|
8
|
+
export * from './directives/tree-node.directive';
|
|
9
|
+
export * from './misc/tree.constants';
|
|
10
|
+
export * from './misc/tree.service';
|
|
11
|
+
export * from './misc/tree.tokens';
|
|
12
|
+
export * from './tree.module';
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdHJlZS8iLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsa0NBQWtDLENBQUM7QUFDakQsY0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsNERBQTRELENBQUM7QUFDM0UsY0FBYyxzQ0FBc0MsQ0FBQztBQUNyRCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsNkNBQTZDLENBQUM7QUFDNUQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLHVCQUF1QixDQUFDO0FBRXRDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLGVBQWUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50cy90cmVlL3RyZWUuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50cy90cmVlLWl0ZW0vdHJlZS1pdGVtLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvdHJlZS1pdGVtL3RyZWUtaXRlbS5wcm92aWRlcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnRzL3RyZWUtaXRlbS1jb250ZW50L3RyZWUtaXRlbS1jb250ZW50LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvdHJlZS1jaGlsZHJlbi5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL3RyZWUtY29udHJvbGxlci5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL3RyZWUtaXRlbS1jb250cm9sbGVyLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL2RpcmVjdGl2ZXMvdHJlZS1ub2RlLmRpcmVjdGl2ZSc7XG5leHBvcnQgKiBmcm9tICcuL21pc2MvdHJlZS5jb25zdGFudHMnO1xuZXhwb3J0ICogZnJvbSAnLi9taXNjL3RyZWUuaW50ZXJmYWNlcyc7XG5leHBvcnQgKiBmcm9tICcuL21pc2MvdHJlZS5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vbWlzYy90cmVlLnRva2Vucyc7XG5leHBvcnQgKiBmcm9tICcuL3RyZWUubW9kdWxlJztcbiJdfQ==
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ALWAYS_TRUE_HANDLER, EMPTY_FUNCTION } from '@taiga-ui/cdk';
|
|
2
|
+
import { PolymorpheusComponent } from '@tinkoff/ng-polymorpheus';
|
|
3
|
+
import { TuiTreeItemContentComponent } from '../components/tree-item-content/tree-item-content.component';
|
|
4
|
+
export var TUI_TREE_ITEM_CONTENT = new PolymorpheusComponent(TuiTreeItemContentComponent);
|
|
5
|
+
export var TUI_DEFAULT_TREE_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udGV4dFdpdGhJbXBsaWNpdDxUdWlUcmVlSXRlbUNvbXBvbmVudD4ge1xuICAgIHJlYWRvbmx5IHRlbXBsYXRlOiBUZW1wbGF0ZVJlZjx1bmtub3duPjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUdWlUcmVlQ29udGV4dDxUPiBleHRlbmRzIFR1aUNvbnRleHRXaXRoSW1wbGljaXQ8VD4ge1xuICAgIHJlYWRvbmx5IG5vZGU6IFR1aVRyZWVJdGVtQ29tcG9uZW50O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFR1aVRyZWVDb250cm9sbGVyIHtcbiAgICBpc0V4cGFuZGVkKGl0ZW06IFR1aVRyZWVJdGVtQ29tcG9uZW50KTogYm9vbGVhbjtcbiAgICB0b2dnbGUoaXRlbTogVHVpVHJlZUl0ZW1Db21wb25lbnQpOiB2b2lkO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFR1aVRyZWVBY2Nlc3NvcjxUPiB7XG4gICAgcmVnaXN0ZXIoaXRlbTogVHVpVHJlZUl0ZW1Db21wb25lbnQsIHZhbHVlOiBUKTogdm9pZDtcbiAgICB1bnJlZ2lzdGVyKGl0ZW06IFR1aVRyZWVJdGVtQ29tcG9uZW50KTogdm9pZDtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUdWlUcmVlTG9hZGVyPFQ+IHtcbiAgICBsb2FkQ2hpbGRyZW4oaXRlbTogVCk6IE9ic2VydmFibGU8VFtdPjtcbiAgICBoYXNDaGlsZHJlbihpdGVtOiBUKTogYm9vbGVhbjtcbn1cbiJdfQ==
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { __decorate, __param } from "tslib";
|
|
2
|
+
import { Inject, Injectable } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { map, mapTo, startWith, switchMap, tap } from 'rxjs/operators';
|
|
5
|
+
import { TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_START } from './tree.tokens';
|
|
6
|
+
// @dynamic
|
|
7
|
+
var TuiTreeService = /** @class */ (function () {
|
|
8
|
+
function TuiTreeService(loading, start, loader) {
|
|
9
|
+
var _this = this;
|
|
10
|
+
this.loading = loading;
|
|
11
|
+
this.start = start;
|
|
12
|
+
this.loader = loader;
|
|
13
|
+
this.map = new Map([[this.loading, []]]);
|
|
14
|
+
this.load$ = new Subject();
|
|
15
|
+
this.data$ = this.load$.pipe(switchMap(function (item) {
|
|
16
|
+
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, []); }); }));
|
|
17
|
+
}), startWith(null), mapTo(this.start));
|
|
18
|
+
}
|
|
19
|
+
TuiTreeService.prototype.getChildren = function (item) {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = this.map.get(item)) !== null && _a !== void 0 ? _a : [this.loading];
|
|
22
|
+
};
|
|
23
|
+
TuiTreeService.prototype.loadChildren = function (item) {
|
|
24
|
+
if (this.map.get(item)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
this.map.set(item, [this.loading]);
|
|
28
|
+
this.load$.next(item);
|
|
29
|
+
};
|
|
30
|
+
TuiTreeService.ctorParameters = function () { return [
|
|
31
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_LOADING,] }] },
|
|
32
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_START,] }] },
|
|
33
|
+
{ type: undefined, decorators: [{ type: Inject, args: [TUI_TREE_LOADER,] }] }
|
|
34
|
+
]; };
|
|
35
|
+
TuiTreeService = __decorate([
|
|
36
|
+
Injectable(),
|
|
37
|
+
__param(0, Inject(TUI_TREE_LOADING)),
|
|
38
|
+
__param(1, Inject(TUI_TREE_START)),
|
|
39
|
+
__param(2, Inject(TUI_TREE_LOADER))
|
|
40
|
+
], TuiTreeService);
|
|
41
|
+
return TuiTreeService;
|
|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tcbiAgICAgICAgcmV0dXJuIHRoaXMubWFwLmdldChpdGVtKSA/PyBbdGhpcy5sb2FkaW5nXTtcbiAgICB9XG5cbiAgICBsb2FkQ2hpbGRyZW4oaXRlbTogVCkge1xuICAgICAgICBpZiAodGhpcy5tYXAuZ2V0KGl0ZW0pKSB7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLm1hcC5zZXQoaXRlbSwgW3RoaXMubG9hZGluZ10pO1xuICAgICAgICB0aGlzLmxvYWQkLm5leHQoaXRlbSk7XG4gICAgfVxufVxuIl19
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { TUI_DEFAULT_TREE_CONTROLLER, TUI_TREE_ITEM_CONTENT } from './tree.constants';
|
|
3
|
+
export var TUI_TREE_ACCESSOR = new InjectionToken('Controller for tracking value - TuiTreeItemComponent pairs');
|
|
4
|
+
export var TUI_TREE_CONTROLLER = new InjectionToken('Controller for expanding the tree', {
|
|
5
|
+
factory: function () { return TUI_DEFAULT_TREE_CONTROLLER; },
|
|
6
|
+
});
|
|
7
|
+
export var TUI_TREE_NODE = new InjectionToken('A node of a tree view');
|
|
8
|
+
export var TUI_TREE_LOADING = new InjectionToken('A tree node placeholder for loading', { factory: function () { return ({}); } });
|
|
9
|
+
export var TUI_TREE_START = new InjectionToken('A tree node starting point');
|
|
10
|
+
export var TUI_TREE_LOADER = new InjectionToken('A service to load tree progressively');
|
|
11
|
+
export var TUI_TREE_CONTENT = new InjectionToken('Content for a tree item', {
|
|
12
|
+
factory: function () { return TUI_TREE_ITEM_CONTENT; },
|
|
13
|
+
});
|
|
14
|
+
export var TUI_TREE_LEVEL = new InjectionToken('Nesting level of current TreeView node', {
|
|
15
|
+
factory: function () { return -1; },
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS50b2tlbnMuanMiLC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FxuKTtcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWkta2l0LWNvbXBvbmVudHMtdHJlZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0B0YWlnYS11aS9raXQvY29tcG9uZW50cy90cmVlLyIsInNvdXJjZXMiOlsidGFpZ2EtdWkta2l0LWNvbXBvbmVudHMtdHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { NgModule } from '@angular/core';
|
|
4
|
+
import { TuiButtonModule, TuiExpandModule } from '@taiga-ui/core';
|
|
5
|
+
import { PolymorpheusModule } from '@tinkoff/ng-polymorpheus';
|
|
6
|
+
import { TuiTreeComponent } from './components/tree/tree.component';
|
|
7
|
+
import { TuiTreeItemComponent } from './components/tree-item/tree-item.component';
|
|
8
|
+
import { TuiTreeItemContentComponent } from './components/tree-item-content/tree-item-content.component';
|
|
9
|
+
import { TuiTreeChildrenDirective } from './directives/tree-children.directive';
|
|
10
|
+
import { TuiTreeControllerDirective } from './directives/tree-controller.directive';
|
|
11
|
+
import { TuiTreeItemControllerDirective } from './directives/tree-item-controller.directive';
|
|
12
|
+
import { TuiTreeNodeDirective } from './directives/tree-node.directive';
|
|
13
|
+
var TuiTreeModule = /** @class */ (function () {
|
|
14
|
+
function TuiTreeModule() {
|
|
15
|
+
}
|
|
16
|
+
TuiTreeModule = __decorate([
|
|
17
|
+
NgModule({
|
|
18
|
+
imports: [CommonModule, PolymorpheusModule, TuiExpandModule, TuiButtonModule],
|
|
19
|
+
entryComponents: [TuiTreeItemContentComponent],
|
|
20
|
+
declarations: [
|
|
21
|
+
TuiTreeComponent,
|
|
22
|
+
TuiTreeItemComponent,
|
|
23
|
+
TuiTreeItemContentComponent,
|
|
24
|
+
TuiTreeChildrenDirective,
|
|
25
|
+
TuiTreeItemControllerDirective,
|
|
26
|
+
TuiTreeControllerDirective,
|
|
27
|
+
TuiTreeNodeDirective,
|
|
28
|
+
],
|
|
29
|
+
exports: [
|
|
30
|
+
TuiTreeComponent,
|
|
31
|
+
TuiTreeItemComponent,
|
|
32
|
+
TuiTreeChildrenDirective,
|
|
33
|
+
TuiTreeItemControllerDirective,
|
|
34
|
+
TuiTreeControllerDirective,
|
|
35
|
+
],
|
|
36
|
+
})
|
|
37
|
+
], TuiTreeModule);
|
|
38
|
+
return TuiTreeModule;
|
|
39
|
+
}());
|
|
40
|
+
export { TuiTreeModule };
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJlZS5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AdGFpZ2EtdWkva2l0L2NvbXBvbmVudHMvdHJlZS8iLCJzb3VyY2VzIjpbInRyZWUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsZUFBZSxFQUFFLGVBQWUsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQ2hFLE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUF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