@clr/angular 17.13.0 → 18.0.0-beta.10
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 +1 -5
- package/fesm2022/clr-angular-accordion.mjs +355 -0
- package/fesm2022/clr-angular-accordion.mjs.map +1 -0
- package/fesm2022/clr-angular-button.mjs +713 -0
- package/fesm2022/clr-angular-button.mjs.map +1 -0
- package/fesm2022/clr-angular-collapsible-panel.mjs +201 -0
- package/fesm2022/clr-angular-collapsible-panel.mjs.map +1 -0
- package/fesm2022/clr-angular-data-datagrid.mjs +7593 -0
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -0
- package/fesm2022/clr-angular-data-stack-view.mjs +442 -0
- package/fesm2022/clr-angular-data-stack-view.mjs.map +1 -0
- package/fesm2022/clr-angular-data-tree-view.mjs +1106 -0
- package/fesm2022/clr-angular-data-tree-view.mjs.map +1 -0
- package/fesm2022/clr-angular-data.mjs +40 -0
- package/fesm2022/clr-angular-data.mjs.map +1 -0
- package/fesm2022/clr-angular-emphasis-alert.mjs +624 -0
- package/fesm2022/clr-angular-emphasis-alert.mjs.map +1 -0
- package/fesm2022/clr-angular-emphasis-badge.mjs +69 -0
- package/fesm2022/clr-angular-emphasis-badge.mjs.map +1 -0
- package/fesm2022/clr-angular-emphasis-common.mjs +25 -0
- package/fesm2022/clr-angular-emphasis-common.mjs.map +1 -0
- package/fesm2022/clr-angular-emphasis-label.mjs +105 -0
- package/fesm2022/clr-angular-emphasis-label.mjs.map +1 -0
- package/fesm2022/clr-angular-emphasis.mjs +41 -0
- package/fesm2022/clr-angular-emphasis.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-checkbox.mjs +270 -0
- package/fesm2022/clr-angular-forms-checkbox.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-combobox.mjs +1775 -0
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-common.mjs +1240 -0
- package/fesm2022/clr-angular-forms-common.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-datalist.mjs +263 -0
- package/fesm2022/clr-angular-forms-datalist.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-datepicker.mjs +3222 -0
- package/fesm2022/clr-angular-forms-datepicker.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-file-input.mjs +826 -0
- package/fesm2022/clr-angular-forms-file-input.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-input.mjs +153 -0
- package/fesm2022/clr-angular-forms-input.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-number-input.mjs +237 -0
- package/fesm2022/clr-angular-forms-number-input.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-password.mjs +233 -0
- package/fesm2022/clr-angular-forms-password.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-radio.mjs +231 -0
- package/fesm2022/clr-angular-forms-radio.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-range.mjs +186 -0
- package/fesm2022/clr-angular-forms-range.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-select.mjs +153 -0
- package/fesm2022/clr-angular-forms-select.mjs.map +1 -0
- package/fesm2022/clr-angular-forms-textarea.mjs +136 -0
- package/fesm2022/clr-angular-forms-textarea.mjs.map +1 -0
- package/fesm2022/clr-angular-forms.mjs +100 -0
- package/fesm2022/clr-angular-forms.mjs.map +1 -0
- package/fesm2022/clr-angular-icon.mjs +7397 -0
- package/fesm2022/clr-angular-icon.mjs.map +1 -0
- package/fesm2022/clr-angular-layout-breadcrumbs.mjs +120 -0
- package/fesm2022/clr-angular-layout-breadcrumbs.mjs.map +1 -0
- package/fesm2022/clr-angular-layout-main-container.mjs +100 -0
- package/fesm2022/clr-angular-layout-main-container.mjs.map +1 -0
- package/fesm2022/clr-angular-layout-nav.mjs +582 -0
- package/fesm2022/clr-angular-layout-nav.mjs.map +1 -0
- package/fesm2022/clr-angular-layout-tabs.mjs +807 -0
- package/fesm2022/clr-angular-layout-tabs.mjs.map +1 -0
- package/fesm2022/clr-angular-layout-vertical-nav.mjs +507 -0
- package/fesm2022/clr-angular-layout-vertical-nav.mjs.map +1 -0
- package/fesm2022/clr-angular-layout.mjs +44 -0
- package/fesm2022/clr-angular-layout.mjs.map +1 -0
- package/fesm2022/clr-angular-modal.mjs +617 -0
- package/fesm2022/clr-angular-modal.mjs.map +1 -0
- package/fesm2022/clr-angular-popover-common.mjs +1093 -0
- package/fesm2022/clr-angular-popover-common.mjs.map +1 -0
- package/fesm2022/clr-angular-popover-dropdown.mjs +492 -0
- package/fesm2022/clr-angular-popover-dropdown.mjs.map +1 -0
- package/fesm2022/clr-angular-popover-signpost.mjs +493 -0
- package/fesm2022/clr-angular-popover-signpost.mjs.map +1 -0
- package/fesm2022/clr-angular-popover-tooltip.mjs +293 -0
- package/fesm2022/clr-angular-popover-tooltip.mjs.map +1 -0
- package/fesm2022/clr-angular-popover.mjs +41 -0
- package/fesm2022/clr-angular-popover.mjs.map +1 -0
- package/fesm2022/clr-angular-progress-progress-bars.mjs +217 -0
- package/fesm2022/clr-angular-progress-progress-bars.mjs.map +1 -0
- package/fesm2022/clr-angular-progress-spinner.mjs +132 -0
- package/fesm2022/clr-angular-progress-spinner.mjs.map +1 -0
- package/fesm2022/clr-angular-stepper.mjs +688 -0
- package/fesm2022/clr-angular-stepper.mjs.map +1 -0
- package/fesm2022/clr-angular-timeline.mjs +316 -0
- package/fesm2022/clr-angular-timeline.mjs.map +1 -0
- package/fesm2022/clr-angular-utils-conditional.mjs +351 -0
- package/fesm2022/clr-angular-utils-conditional.mjs.map +1 -0
- package/fesm2022/clr-angular-utils-loading.mjs +107 -0
- package/fesm2022/clr-angular-utils-loading.mjs.map +1 -0
- package/fesm2022/clr-angular-utils.mjs +2079 -0
- package/fesm2022/clr-angular-utils.mjs.map +1 -0
- package/fesm2022/clr-angular-wizard.mjs +3074 -0
- package/fesm2022/clr-angular-wizard.mjs.map +1 -0
- package/fesm2022/clr-angular.mjs +125 -0
- package/fesm2022/clr-angular.mjs.map +1 -0
- package/package.json +202 -18
- package/popover/common/README.md +112 -0
- package/schematics/collection.json +14 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +69 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/css-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/css-migration.js +177 -0
- package/schematics/ng-update/migrations/css-migration.js.map +1 -0
- package/schematics/ng-update/migrations/import-migration.d.ts +4 -0
- package/schematics/ng-update/migrations/import-migration.js +187 -0
- package/schematics/ng-update/migrations/import-migration.js.map +1 -0
- package/schematics/ng-update/migrations/template-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/template-migration.js +261 -0
- package/schematics/ng-update/migrations/template-migration.js.map +1 -0
- package/schematics/ng-update/replacements/css-replacements.d.ts +17 -0
- package/schematics/ng-update/replacements/css-replacements.js +74 -0
- package/schematics/ng-update/replacements/css-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/import-replacements.d.ts +13 -0
- package/schematics/ng-update/replacements/import-replacements.js +108 -0
- package/schematics/ng-update/replacements/import-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/symbol-replacements.d.ts +12 -0
- package/schematics/ng-update/replacements/symbol-replacements.js +67 -0
- package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/template-replacements.d.ts +19 -0
- package/schematics/ng-update/replacements/template-replacements.js +57 -0
- package/schematics/ng-update/replacements/template-replacements.js.map +1 -0
- package/schematics/ng-update/tests/test-helpers.d.ts +6 -0
- package/schematics/ng-update/tests/test-helpers.js +34 -0
- package/schematics/ng-update/tests/test-helpers.js.map +1 -0
- package/schematics/ng-update/utils/file-visitor.d.ts +8 -0
- package/schematics/ng-update/utils/file-visitor.js +44 -0
- package/schematics/ng-update/utils/file-visitor.js.map +1 -0
- package/schematics/ng-update/utils/regexp-utils.d.ts +16 -0
- package/schematics/ng-update/utils/regexp-utils.js +34 -0
- package/schematics/ng-update/utils/regexp-utils.js.map +1 -0
- package/schematics/vitest.config.d.ts +2 -0
- package/schematics/vitest.config.js +17 -0
- package/schematics/vitest.config.js.map +1 -0
- package/types/clr-angular-accordion.d.ts +100 -0
- package/types/clr-angular-button.d.ts +169 -0
- package/types/clr-angular-collapsible-panel.d.ts +73 -0
- package/types/clr-angular-data-datagrid.d.ts +1840 -0
- package/types/clr-angular-data-stack-view.d.ts +87 -0
- package/types/clr-angular-data-tree-view.d.ts +229 -0
- package/types/clr-angular-data.d.ts +15 -0
- package/types/clr-angular-emphasis-alert.d.ts +175 -0
- package/types/clr-angular-emphasis-badge.d.ts +25 -0
- package/types/clr-angular-emphasis-common.d.ts +6 -0
- package/types/clr-angular-emphasis-label.d.ts +29 -0
- package/types/clr-angular-emphasis.d.ts +15 -0
- package/types/clr-angular-forms-checkbox.d.ts +69 -0
- package/types/clr-angular-forms-combobox.d.ts +353 -0
- package/types/clr-angular-forms-common.d.ts +336 -0
- package/types/clr-angular-forms-datalist.d.ts +59 -0
- package/types/clr-angular-forms-datepicker.d.ts +958 -0
- package/types/clr-angular-forms-file-input.d.ts +193 -0
- package/types/clr-angular-forms-input.d.ts +29 -0
- package/types/clr-angular-forms-number-input.d.ts +43 -0
- package/types/clr-angular-forms-password.d.ts +52 -0
- package/types/clr-angular-forms-radio.d.ts +50 -0
- package/types/clr-angular-forms-range.d.ts +37 -0
- package/types/clr-angular-forms-select.d.ts +36 -0
- package/types/clr-angular-forms-textarea.d.ts +29 -0
- package/types/clr-angular-forms.d.ts +36 -0
- package/types/clr-angular-icon.d.ts +1498 -0
- package/types/clr-angular-layout-breadcrumbs.d.ts +45 -0
- package/types/clr-angular-layout-main-container.d.ts +28 -0
- package/types/clr-angular-layout-nav.d.ts +142 -0
- package/types/clr-angular-layout-tabs.d.ts +158 -0
- package/types/clr-angular-layout-vertical-nav.d.ts +128 -0
- package/types/clr-angular-layout.d.ts +19 -0
- package/types/clr-angular-modal.d.ts +160 -0
- package/types/clr-angular-popover-common.d.ts +255 -0
- package/types/clr-angular-popover-dropdown.d.ts +123 -0
- package/types/clr-angular-popover-signpost.d.ts +157 -0
- package/types/clr-angular-popover-tooltip.d.ts +83 -0
- package/types/clr-angular-popover.d.ts +16 -0
- package/types/clr-angular-progress-progress-bars.d.ts +57 -0
- package/types/clr-angular-progress-spinner.d.ts +44 -0
- package/types/clr-angular-stepper.d.ts +179 -0
- package/types/clr-angular-timeline.d.ts +86 -0
- package/types/clr-angular-utils-conditional.d.ts +132 -0
- package/types/clr-angular-utils-loading.d.ts +38 -0
- package/types/clr-angular-utils.d.ts +913 -0
- package/types/clr-angular-wizard.d.ts +1508 -0
- package/types/clr-angular.d.ts +41 -0
- package/accordion/accordion-content.d.ts +0 -5
- package/accordion/accordion-description.d.ts +0 -5
- package/accordion/accordion-panel.d.ts +0 -45
- package/accordion/accordion-title.d.ts +0 -5
- package/accordion/accordion.d.ts +0 -20
- package/accordion/accordion.module.d.ts +0 -16
- package/accordion/chocolate/accordion-oompa-loompa.d.ts +0 -12
- package/accordion/chocolate/accordion-willy-wonka.d.ts +0 -6
- package/accordion/enums/accordion-status.enum.d.ts +0 -5
- package/accordion/enums/accordion-strategy.enum.d.ts +0 -4
- package/accordion/index.d.ts +0 -10
- package/accordion/models/accordion.model.d.ts +0 -27
- package/accordion/providers/accordion.service.d.ts +0 -17
- package/accordion/stepper/chocolate/stepper-oompa-loompa.d.ts +0 -12
- package/accordion/stepper/chocolate/stepper-willy-wonka.d.ts +0 -6
- package/accordion/stepper/index.d.ts +0 -4
- package/accordion/stepper/models/stepper.model.d.ts +0 -29
- package/accordion/stepper/providers/stepper.service.d.ts +0 -23
- package/accordion/stepper/step-button.d.ts +0 -21
- package/accordion/stepper/stepper-panel.d.ts +0 -28
- package/accordion/stepper/stepper.d.ts +0 -26
- package/accordion/stepper/stepper.module.d.ts +0 -14
- package/accordion/utils/animation.d.ts +0 -2
- package/button/button-group/button-group.d.ts +0 -60
- package/button/button-group/button-group.module.d.ts +0 -13
- package/button/button-group/button.d.ts +0 -40
- package/button/button-group/index.d.ts +0 -3
- package/button/button-loading/index.d.ts +0 -2
- package/button/button-loading/loading-button.d.ts +0 -17
- package/button/button-loading/loading-button.module.d.ts +0 -10
- package/button/button.module.d.ts +0 -9
- package/button/index.d.ts +0 -3
- package/button/providers/button-group-focus-handler.service.d.ts +0 -32
- package/button/providers/button-group-focus.enum.d.ts +0 -4
- package/button/providers/button-in-group.service.d.ts +0 -10
- package/clr-angular.module.d.ts +0 -25
- package/data/data.module.d.ts +0 -9
- package/data/datagrid/built-in/comparators/datagrid-property-comparator.d.ts +0 -7
- package/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.d.ts +0 -37
- package/data/datagrid/built-in/filters/datagrid-numeric-filter.d.ts +0 -58
- package/data/datagrid/built-in/filters/datagrid-property-numeric-filter.d.ts +0 -8
- package/data/datagrid/built-in/filters/datagrid-property-string-filter.d.ts +0 -8
- package/data/datagrid/built-in/filters/datagrid-string-filter-impl.d.ts +0 -39
- package/data/datagrid/built-in/filters/datagrid-string-filter.d.ts +0 -60
- package/data/datagrid/built-in/nested-property.d.ts +0 -10
- package/data/datagrid/chocolate/actionable-oompa-loompa.d.ts +0 -12
- package/data/datagrid/chocolate/datagrid-willy-wonka.d.ts +0 -6
- package/data/datagrid/chocolate/expandable-oompa-loompa.d.ts +0 -12
- package/data/datagrid/datagrid-action-bar.d.ts +0 -5
- package/data/datagrid/datagrid-action-overflow.d.ts +0 -28
- package/data/datagrid/datagrid-cell.d.ts +0 -21
- package/data/datagrid/datagrid-column-separator.d.ts +0 -36
- package/data/datagrid/datagrid-column-toggle-button.d.ts +0 -16
- package/data/datagrid/datagrid-column-toggle-trackby.d.ts +0 -6
- package/data/datagrid/datagrid-column-toggle.d.ts +0 -30
- package/data/datagrid/datagrid-column.d.ts +0 -92
- package/data/datagrid/datagrid-detail-body.d.ts +0 -5
- package/data/datagrid/datagrid-detail-header.d.ts +0 -14
- package/data/datagrid/datagrid-detail-registerer.d.ts +0 -9
- package/data/datagrid/datagrid-detail.d.ts +0 -17
- package/data/datagrid/datagrid-filter.d.ts +0 -40
- package/data/datagrid/datagrid-footer.d.ts +0 -17
- package/data/datagrid/datagrid-hideable-column.d.ts +0 -41
- package/data/datagrid/datagrid-if-detail.d.ts +0 -28
- package/data/datagrid/datagrid-if-expanded.service.d.ts +0 -18
- package/data/datagrid/datagrid-items.d.ts +0 -28
- package/data/datagrid/datagrid-page-size.d.ts +0 -13
- package/data/datagrid/datagrid-pagination.d.ts +0 -73
- package/data/datagrid/datagrid-placeholder.d.ts +0 -12
- package/data/datagrid/datagrid-row-detail.d.ts +0 -34
- package/data/datagrid/datagrid-row.d.ts +0 -109
- package/data/datagrid/datagrid-selection-cell.directive.d.ts +0 -9
- package/data/datagrid/datagrid-single-selection.directive.d.ts +0 -21
- package/data/datagrid/datagrid-virtual-scroll.directive.d.ts +0 -80
- package/data/datagrid/datagrid.d.ts +0 -149
- package/data/datagrid/datagrid.module.d.ts +0 -60
- package/data/datagrid/enums/column-changes.enum.d.ts +0 -6
- package/data/datagrid/enums/display-mode.enum.d.ts +0 -4
- package/data/datagrid/enums/render-step.enum.d.ts +0 -7
- package/data/datagrid/enums/selection-type.d.ts +0 -5
- package/data/datagrid/enums/sort-order.enum.d.ts +0 -12
- package/data/datagrid/index.d.ts +0 -50
- package/data/datagrid/interfaces/column-state.interface.d.ts +0 -14
- package/data/datagrid/interfaces/comparator.interface.d.ts +0 -3
- package/data/datagrid/interfaces/filter.interface.d.ts +0 -8
- package/data/datagrid/interfaces/key-nav-grid-strategy.interface.d.ts +0 -11
- package/data/datagrid/interfaces/numeric-filter.interface.d.ts +0 -3
- package/data/datagrid/interfaces/state.interface.d.ts +0 -14
- package/data/datagrid/interfaces/string-filter.interface.d.ts +0 -3
- package/data/datagrid/interfaces/virtual-scroll-data-range.interface.d.ts +0 -5
- package/data/datagrid/providers/column-resizer.service.d.ts +0 -22
- package/data/datagrid/providers/column-state.provider.d.ts +0 -9
- package/data/datagrid/providers/columns.service.d.ts +0 -18
- package/data/datagrid/providers/custom-filter.d.ts +0 -2
- package/data/datagrid/providers/detail.service.d.ts +0 -28
- package/data/datagrid/providers/display-mode.service.d.ts +0 -14
- package/data/datagrid/providers/filters.d.ts +0 -44
- package/data/datagrid/providers/global-expandable-rows.d.ts +0 -16
- package/data/datagrid/providers/items.d.ts +0 -84
- package/data/datagrid/providers/page.d.ts +0 -62
- package/data/datagrid/providers/row-action-service.d.ts +0 -12
- package/data/datagrid/providers/selection.d.ts +0 -105
- package/data/datagrid/providers/sort.d.ts +0 -44
- package/data/datagrid/providers/state-debouncer.provider.d.ts +0 -14
- package/data/datagrid/providers/state.provider.d.ts +0 -24
- package/data/datagrid/providers/table-size.service.d.ts +0 -17
- package/data/datagrid/render/cell-renderer.d.ts +0 -18
- package/data/datagrid/render/constants.d.ts +0 -4
- package/data/datagrid/render/header-renderer.d.ts +0 -34
- package/data/datagrid/render/main-renderer.d.ts +0 -71
- package/data/datagrid/render/noop-dom-adapter.d.ts +0 -13
- package/data/datagrid/render/render-organizer.d.ts +0 -12
- package/data/datagrid/render/row-detail-renderer.d.ts +0 -11
- package/data/datagrid/render/row-renderer.d.ts +0 -17
- package/data/datagrid/utils/datagrid-filter-registrar.d.ts +0 -18
- package/data/datagrid/utils/key-navigation-grid.controller.d.ts +0 -32
- package/data/datagrid/utils/key-navigation-strategies/default.d.ts +0 -15
- package/data/datagrid/utils/key-navigation-strategies/expanded-columns-row.d.ts +0 -12
- package/data/datagrid/utils/key-navigation-strategies/expanded-row.d.ts +0 -12
- package/data/datagrid/utils/key-navigation-utils.d.ts +0 -24
- package/data/datagrid/wrapped-cell.d.ts +0 -10
- package/data/datagrid/wrapped-column.d.ts +0 -10
- package/data/datagrid/wrapped-row.d.ts +0 -10
- package/data/index.d.ts +0 -4
- package/data/stack-view/index.d.ts +0 -6
- package/data/stack-view/stack-block.d.ts +0 -37
- package/data/stack-view/stack-content-input.d.ts +0 -6
- package/data/stack-view/stack-header.d.ts +0 -8
- package/data/stack-view/stack-view-custom-tags.d.ts +0 -15
- package/data/stack-view/stack-view.d.ts +0 -5
- package/data/stack-view/stack-view.module.d.ts +0 -18
- package/data/tree-view/index.d.ts +0 -6
- package/data/tree-view/models/async-array.d.ts +0 -3
- package/data/tree-view/models/declarative-tree-node.model.d.ts +0 -9
- package/data/tree-view/models/recursive-tree-node.model.d.ts +0 -18
- package/data/tree-view/models/selected-state.enum.d.ts +0 -5
- package/data/tree-view/models/tree-node.model.d.ts +0 -23
- package/data/tree-view/recursive-children.d.ts +0 -22
- package/data/tree-view/recursive-for-of.d.ts +0 -22
- package/data/tree-view/tree-features.service.d.ts +0 -22
- package/data/tree-view/tree-focus-manager.service.d.ts +0 -32
- package/data/tree-view/tree-node-link.d.ts +0 -10
- package/data/tree-view/tree-node.d.ts +0 -59
- package/data/tree-view/tree-view.module.d.ts +0 -17
- package/data/tree-view/tree.d.ts +0 -22
- package/emphasis/alert/alert-item.d.ts +0 -8
- package/emphasis/alert/alert-text.d.ts +0 -9
- package/emphasis/alert/alert.d.ts +0 -40
- package/emphasis/alert/alert.module.d.ts +0 -18
- package/emphasis/alert/alerts-pager.d.ts +0 -31
- package/emphasis/alert/alerts.d.ts +0 -32
- package/emphasis/alert/index.d.ts +0 -6
- package/emphasis/alert/providers/icon-and-types.service.d.ts +0 -18
- package/emphasis/alert/providers/multi-alert.service.d.ts +0 -28
- package/emphasis/alert/utils/alert-info-object.d.ts +0 -5
- package/emphasis/alert/utils/alert-types.d.ts +0 -1
- package/emphasis/emphasis.module.d.ts +0 -7
- package/emphasis/index.d.ts +0 -2
- package/esm2020/accordion/accordion-content.mjs +0 -21
- package/esm2020/accordion/accordion-description.mjs +0 -22
- package/esm2020/accordion/accordion-panel.mjs +0 -141
- package/esm2020/accordion/accordion-title.mjs +0 -22
- package/esm2020/accordion/accordion.mjs +0 -62
- package/esm2020/accordion/accordion.module.mjs +0 -56
- package/esm2020/accordion/chocolate/accordion-oompa-loompa.mjs +0 -34
- package/esm2020/accordion/chocolate/accordion-willy-wonka.mjs +0 -20
- package/esm2020/accordion/enums/accordion-status.enum.mjs +0 -13
- package/esm2020/accordion/enums/accordion-strategy.enum.mjs +0 -12
- package/esm2020/accordion/index.mjs +0 -17
- package/esm2020/accordion/models/accordion.model.mjs +0 -61
- package/esm2020/accordion/providers/accordion.service.mjs +0 -48
- package/esm2020/accordion/stepper/chocolate/stepper-oompa-loompa.mjs +0 -34
- package/esm2020/accordion/stepper/chocolate/stepper-willy-wonka.mjs +0 -20
- package/esm2020/accordion/stepper/index.mjs +0 -11
- package/esm2020/accordion/stepper/models/stepper.model.mjs +0 -146
- package/esm2020/accordion/stepper/providers/stepper.service.mjs +0 -75
- package/esm2020/accordion/stepper/step-button.mjs +0 -62
- package/esm2020/accordion/stepper/stepper-panel.mjs +0 -96
- package/esm2020/accordion/stepper/stepper.mjs +0 -105
- package/esm2020/accordion/stepper/stepper.module.mjs +0 -31
- package/esm2020/accordion/utils/animation.mjs +0 -31
- package/esm2020/button/button-group/button-group.mjs +0 -164
- package/esm2020/button/button-group/button-group.module.mjs +0 -28
- package/esm2020/button/button-group/button.mjs +0 -175
- package/esm2020/button/button-group/index.mjs +0 -10
- package/esm2020/button/button-loading/index.mjs +0 -9
- package/esm2020/button/button-loading/loading-button.mjs +0 -164
- package/esm2020/button/button-loading/loading-button.module.mjs +0 -25
- package/esm2020/button/button.module.mjs +0 -26
- package/esm2020/button/index.mjs +0 -10
- package/esm2020/button/providers/button-group-focus-handler.service.mjs +0 -97
- package/esm2020/button/providers/button-group-focus.enum.mjs +0 -12
- package/esm2020/button/providers/button-in-group.service.mjs +0 -26
- package/esm2020/clr-angular.mjs +0 -5
- package/esm2020/clr-angular.module.mjs +0 -93
- package/esm2020/data/data.module.mjs +0 -23
- package/esm2020/data/datagrid/built-in/comparators/datagrid-property-comparator.mjs +0 -46
- package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.mjs +0 -93
- package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter.mjs +0 -259
- package/esm2020/data/datagrid/built-in/filters/datagrid-property-numeric-filter.mjs +0 -28
- package/esm2020/data/datagrid/built-in/filters/datagrid-property-string-filter.mjs +0 -27
- package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter-impl.mjs +0 -82
- package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter.mjs +0 -185
- package/esm2020/data/datagrid/built-in/nested-property.mjs +0 -38
- package/esm2020/data/datagrid/chocolate/actionable-oompa-loompa.mjs +0 -34
- package/esm2020/data/datagrid/chocolate/datagrid-willy-wonka.mjs +0 -20
- package/esm2020/data/datagrid/chocolate/expandable-oompa-loompa.mjs +0 -34
- package/esm2020/data/datagrid/datagrid-action-bar.mjs +0 -21
- package/esm2020/data/datagrid/datagrid-action-overflow.mjs +0 -166
- package/esm2020/data/datagrid/datagrid-cell.mjs +0 -40
- package/esm2020/data/datagrid/datagrid-column-separator.mjs +0 -171
- package/esm2020/data/datagrid/datagrid-column-toggle-button.mjs +0 -65
- package/esm2020/data/datagrid/datagrid-column-toggle-trackby.mjs +0 -8
- package/esm2020/data/datagrid/datagrid-column-toggle.mjs +0 -204
- package/esm2020/data/datagrid/datagrid-column.mjs +0 -420
- package/esm2020/data/datagrid/datagrid-detail-body.mjs +0 -31
- package/esm2020/data/datagrid/datagrid-detail-header.mjs +0 -67
- package/esm2020/data/datagrid/datagrid-detail-registerer.mjs +0 -37
- package/esm2020/data/datagrid/datagrid-detail.mjs +0 -98
- package/esm2020/data/datagrid/datagrid-filter.mjs +0 -186
- package/esm2020/data/datagrid/datagrid-footer.mjs +0 -78
- package/esm2020/data/datagrid/datagrid-hideable-column.mjs +0 -106
- package/esm2020/data/datagrid/datagrid-if-detail.mjs +0 -96
- package/esm2020/data/datagrid/datagrid-if-expanded.service.mjs +0 -55
- package/esm2020/data/datagrid/datagrid-items.mjs +0 -72
- package/esm2020/data/datagrid/datagrid-page-size.mjs +0 -63
- package/esm2020/data/datagrid/datagrid-pagination.mjs +0 -388
- package/esm2020/data/datagrid/datagrid-placeholder.mjs +0 -42
- package/esm2020/data/datagrid/datagrid-row-detail.mjs +0 -116
- package/esm2020/data/datagrid/datagrid-row.mjs +0 -372
- package/esm2020/data/datagrid/datagrid-selection-cell.directive.mjs +0 -37
- package/esm2020/data/datagrid/datagrid-single-selection.directive.mjs +0 -74
- package/esm2020/data/datagrid/datagrid-virtual-scroll.directive.mjs +0 -340
- package/esm2020/data/datagrid/datagrid.mjs +0 -556
- package/esm2020/data/datagrid/datagrid.module.mjs +0 -238
- package/esm2020/data/datagrid/enums/column-changes.enum.mjs +0 -16
- package/esm2020/data/datagrid/enums/display-mode.enum.mjs +0 -12
- package/esm2020/data/datagrid/enums/render-step.enum.mjs +0 -15
- package/esm2020/data/datagrid/enums/selection-type.mjs +0 -13
- package/esm2020/data/datagrid/enums/sort-order.enum.mjs +0 -20
- package/esm2020/data/datagrid/index.mjs +0 -56
- package/esm2020/data/datagrid/interfaces/column-state.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/comparator.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/filter.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/key-nav-grid-strategy.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/numeric-filter.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/state.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/string-filter.interface.mjs +0 -8
- package/esm2020/data/datagrid/interfaces/virtual-scroll-data-range.interface.mjs +0 -8
- package/esm2020/data/datagrid/providers/column-resizer.service.mjs +0 -58
- package/esm2020/data/datagrid/providers/column-state.provider.mjs +0 -19
- package/esm2020/data/datagrid/providers/columns.service.mjs +0 -63
- package/esm2020/data/datagrid/providers/custom-filter.mjs +0 -9
- package/esm2020/data/datagrid/providers/detail.service.mjs +0 -76
- package/esm2020/data/datagrid/providers/display-mode.service.mjs +0 -36
- package/esm2020/data/datagrid/providers/filters.mjs +0 -112
- package/esm2020/data/datagrid/providers/global-expandable-rows.mjs +0 -34
- package/esm2020/data/datagrid/providers/items.mjs +0 -177
- package/esm2020/data/datagrid/providers/page.mjs +0 -156
- package/esm2020/data/datagrid/providers/row-action-service.mjs +0 -31
- package/esm2020/data/datagrid/providers/selection.mjs +0 -365
- package/esm2020/data/datagrid/providers/sort.mjs +0 -86
- package/esm2020/data/datagrid/providers/state-debouncer.provider.mjs +0 -43
- package/esm2020/data/datagrid/providers/state.provider.mjs +0 -75
- package/esm2020/data/datagrid/providers/table-size.service.mjs +0 -45
- package/esm2020/data/datagrid/render/cell-renderer.mjs +0 -59
- package/esm2020/data/datagrid/render/constants.mjs +0 -13
- package/esm2020/data/datagrid/render/header-renderer.mjs +0 -117
- package/esm2020/data/datagrid/render/main-renderer.mjs +0 -285
- package/esm2020/data/datagrid/render/noop-dom-adapter.mjs +0 -48
- package/esm2020/data/datagrid/render/render-organizer.mjs +0 -39
- package/esm2020/data/datagrid/render/row-detail-renderer.mjs +0 -31
- package/esm2020/data/datagrid/render/row-renderer.mjs +0 -62
- package/esm2020/data/datagrid/utils/datagrid-filter-registrar.mjs +0 -43
- package/esm2020/data/datagrid/utils/key-navigation-grid.controller.mjs +0 -155
- package/esm2020/data/datagrid/utils/key-navigation-strategies/default.mjs +0 -132
- package/esm2020/data/datagrid/utils/key-navigation-strategies/expanded-columns-row.mjs +0 -129
- package/esm2020/data/datagrid/utils/key-navigation-strategies/expanded-row.mjs +0 -165
- package/esm2020/data/datagrid/utils/key-navigation-utils.mjs +0 -121
- package/esm2020/data/datagrid/wrapped-cell.mjs +0 -37
- package/esm2020/data/datagrid/wrapped-column.mjs +0 -38
- package/esm2020/data/datagrid/wrapped-row.mjs +0 -38
- package/esm2020/data/index.mjs +0 -11
- package/esm2020/data/stack-view/index.mjs +0 -13
- package/esm2020/data/stack-view/stack-block.mjs +0 -236
- package/esm2020/data/stack-view/stack-content-input.mjs +0 -27
- package/esm2020/data/stack-view/stack-header.mjs +0 -37
- package/esm2020/data/stack-view/stack-view-custom-tags.mjs +0 -57
- package/esm2020/data/stack-view/stack-view.mjs +0 -23
- package/esm2020/data/stack-view/stack-view.module.mjs +0 -53
- package/esm2020/data/tree-view/index.mjs +0 -13
- package/esm2020/data/tree-view/models/async-array.mjs +0 -11
- package/esm2020/data/tree-view/models/declarative-tree-node.model.mjs +0 -37
- package/esm2020/data/tree-view/models/recursive-tree-node.model.mjs +0 -77
- package/esm2020/data/tree-view/models/selected-state.enum.mjs +0 -17
- package/esm2020/data/tree-view/models/tree-node.model.mjs +0 -116
- package/esm2020/data/tree-view/recursive-children.mjs +0 -88
- package/esm2020/data/tree-view/recursive-for-of.mjs +0 -57
- package/esm2020/data/tree-view/tree-features.service.mjs +0 -38
- package/esm2020/data/tree-view/tree-focus-manager.service.mjs +0 -190
- package/esm2020/data/tree-view/tree-node-link.mjs +0 -30
- package/esm2020/data/tree-view/tree-node.mjs +0 -348
- package/esm2020/data/tree-view/tree-view.module.mjs +0 -35
- package/esm2020/data/tree-view/tree.mjs +0 -102
- package/esm2020/emphasis/alert/alert-item.mjs +0 -52
- package/esm2020/emphasis/alert/alert-text.mjs +0 -23
- package/esm2020/emphasis/alert/alert.mjs +0 -142
- package/esm2020/emphasis/alert/alert.module.mjs +0 -36
- package/esm2020/emphasis/alert/alerts-pager.mjs +0 -87
- package/esm2020/emphasis/alert/alerts.mjs +0 -102
- package/esm2020/emphasis/alert/index.mjs +0 -13
- package/esm2020/emphasis/alert/providers/icon-and-types.service.mjs +0 -90
- package/esm2020/emphasis/alert/providers/multi-alert.service.mjs +0 -97
- package/esm2020/emphasis/alert/utils/alert-info-object.mjs +0 -8
- package/esm2020/emphasis/alert/utils/alert-types.mjs +0 -9
- package/esm2020/emphasis/emphasis.module.mjs +0 -21
- package/esm2020/emphasis/index.mjs +0 -9
- package/esm2020/forms/checkbox/checkbox-container.mjs +0 -136
- package/esm2020/forms/checkbox/checkbox-wrapper.mjs +0 -70
- package/esm2020/forms/checkbox/checkbox.mjs +0 -53
- package/esm2020/forms/checkbox/checkbox.module.mjs +0 -33
- package/esm2020/forms/checkbox/index.mjs +0 -11
- package/esm2020/forms/combobox/combobox-container.mjs +0 -106
- package/esm2020/forms/combobox/combobox.mjs +0 -360
- package/esm2020/forms/combobox/combobox.module.mjs +0 -97
- package/esm2020/forms/combobox/index.mjs +0 -15
- package/esm2020/forms/combobox/model/combobox.model.mjs +0 -9
- package/esm2020/forms/combobox/model/multi-select-combobox.model.mjs +0 -82
- package/esm2020/forms/combobox/model/pseudo-focus.model.mjs +0 -24
- package/esm2020/forms/combobox/model/single-select-combobox.model.mjs +0 -39
- package/esm2020/forms/combobox/option-group.mjs +0 -42
- package/esm2020/forms/combobox/option-items.directive.mjs +0 -110
- package/esm2020/forms/combobox/option-selected.directive.mjs +0 -25
- package/esm2020/forms/combobox/option.mjs +0 -103
- package/esm2020/forms/combobox/options.mjs +0 -156
- package/esm2020/forms/combobox/providers/combobox-container.service.mjs +0 -19
- package/esm2020/forms/combobox/providers/combobox-focus-handler.service.mjs +0 -222
- package/esm2020/forms/combobox/providers/option-selection.service.mjs +0 -85
- package/esm2020/forms/common/abstract-container.mjs +0 -135
- package/esm2020/forms/common/abstract-control.mjs +0 -51
- package/esm2020/forms/common/common.module.mjs +0 -78
- package/esm2020/forms/common/control-container.mjs +0 -84
- package/esm2020/forms/common/control.mjs +0 -31
- package/esm2020/forms/common/error.mjs +0 -38
- package/esm2020/forms/common/form.mjs +0 -54
- package/esm2020/forms/common/helper.mjs +0 -37
- package/esm2020/forms/common/if-control-state/abstract-if-state.mjs +0 -46
- package/esm2020/forms/common/if-control-state/if-control-state.service.mjs +0 -57
- package/esm2020/forms/common/if-control-state/if-error.mjs +0 -75
- package/esm2020/forms/common/if-control-state/if-success.mjs +0 -48
- package/esm2020/forms/common/index.mjs +0 -21
- package/esm2020/forms/common/label.mjs +0 -102
- package/esm2020/forms/common/layout.mjs +0 -32
- package/esm2020/forms/common/providers/container-id.service.mjs +0 -39
- package/esm2020/forms/common/providers/control-class.service.mjs +0 -53
- package/esm2020/forms/common/providers/control-id.service.mjs +0 -32
- package/esm2020/forms/common/providers/focus.service.mjs +0 -26
- package/esm2020/forms/common/providers/layout.service.mjs +0 -58
- package/esm2020/forms/common/providers/mark-control.service.mjs +0 -26
- package/esm2020/forms/common/providers/ng-control.service.mjs +0 -53
- package/esm2020/forms/common/success.mjs +0 -38
- package/esm2020/forms/common/wrapped-control.mjs +0 -191
- package/esm2020/forms/datalist/datalist-container.mjs +0 -121
- package/esm2020/forms/datalist/datalist-input.mjs +0 -63
- package/esm2020/forms/datalist/datalist.mjs +0 -49
- package/esm2020/forms/datalist/datalist.module.mjs +0 -32
- package/esm2020/forms/datalist/index.mjs +0 -11
- package/esm2020/forms/datalist/providers/datalist-id.service.mjs +0 -32
- package/esm2020/forms/datepicker/calendar.mjs +0 -175
- package/esm2020/forms/datepicker/date-container.mjs +0 -365
- package/esm2020/forms/datepicker/date-end-input.mjs +0 -60
- package/esm2020/forms/datepicker/date-input.mjs +0 -294
- package/esm2020/forms/datepicker/date-input.validator.mjs +0 -100
- package/esm2020/forms/datepicker/date-single-input.mjs +0 -63
- package/esm2020/forms/datepicker/date-start-input.mjs +0 -61
- package/esm2020/forms/datepicker/datepicker-action-buttons.mjs +0 -59
- package/esm2020/forms/datepicker/datepicker-view-manager.mjs +0 -74
- package/esm2020/forms/datepicker/datepicker.module.mjs +0 -111
- package/esm2020/forms/datepicker/day.mjs +0 -145
- package/esm2020/forms/datepicker/daypicker.mjs +0 -81
- package/esm2020/forms/datepicker/index.mjs +0 -21
- package/esm2020/forms/datepicker/interfaces/date-range.interface.mjs +0 -8
- package/esm2020/forms/datepicker/interfaces/day-of-week.interface.mjs +0 -8
- package/esm2020/forms/datepicker/model/calendar-view.model.mjs +0 -182
- package/esm2020/forms/datepicker/model/calendar.model.mjs +0 -79
- package/esm2020/forms/datepicker/model/day-view.model.mjs +0 -25
- package/esm2020/forms/datepicker/model/day.model.mjs +0 -72
- package/esm2020/forms/datepicker/model/year-range.model.mjs +0 -61
- package/esm2020/forms/datepicker/monthpicker.mjs +0 -325
- package/esm2020/forms/datepicker/providers/date-form-control.service.mjs +0 -37
- package/esm2020/forms/datepicker/providers/date-io.service.mjs +0 -195
- package/esm2020/forms/datepicker/providers/date-navigation.service.mjs +0 -195
- package/esm2020/forms/datepicker/providers/datepicker-enabled.service.mjs +0 -47
- package/esm2020/forms/datepicker/providers/datepicker-focus.service.mjs +0 -48
- package/esm2020/forms/datepicker/providers/locale-helper.service.mjs +0 -102
- package/esm2020/forms/datepicker/providers/view-manager.service.mjs +0 -42
- package/esm2020/forms/datepicker/utils/constants.mjs +0 -38
- package/esm2020/forms/datepicker/utils/date-utils.mjs +0 -50
- package/esm2020/forms/datepicker/yearpicker.mjs +0 -304
- package/esm2020/forms/file-input/file-input-container.mjs +0 -245
- package/esm2020/forms/file-input/file-input-validator-errors.mjs +0 -8
- package/esm2020/forms/file-input/file-input-validator.mjs +0 -101
- package/esm2020/forms/file-input/file-input-value-accessor.mjs +0 -56
- package/esm2020/forms/file-input/file-input.helpers.mjs +0 -22
- package/esm2020/forms/file-input/file-input.mjs +0 -71
- package/esm2020/forms/file-input/file-input.module.mjs +0 -74
- package/esm2020/forms/file-input/file-list.mjs +0 -160
- package/esm2020/forms/file-input/file-messages-template.mjs +0 -26
- package/esm2020/forms/file-input/file-messages.mjs +0 -61
- package/esm2020/forms/file-input/index.mjs +0 -16
- package/esm2020/forms/forms.module.mjs +0 -73
- package/esm2020/forms/index.mjs +0 -21
- package/esm2020/forms/input/index.mjs +0 -10
- package/esm2020/forms/input/input-container.mjs +0 -92
- package/esm2020/forms/input/input.mjs +0 -40
- package/esm2020/forms/input/input.module.mjs +0 -33
- package/esm2020/forms/number-input/index.mjs +0 -10
- package/esm2020/forms/number-input/number-input-container.mjs +0 -148
- package/esm2020/forms/number-input/number-input.mjs +0 -79
- package/esm2020/forms/number-input/number-input.module.mjs +0 -32
- package/esm2020/forms/password/index.mjs +0 -10
- package/esm2020/forms/password/password-container.mjs +0 -180
- package/esm2020/forms/password/password.mjs +0 -64
- package/esm2020/forms/password/password.module.mjs +0 -32
- package/esm2020/forms/radio/index.mjs +0 -11
- package/esm2020/forms/radio/radio-container.mjs +0 -150
- package/esm2020/forms/radio/radio-wrapper.mjs +0 -44
- package/esm2020/forms/radio/radio.mjs +0 -29
- package/esm2020/forms/radio/radio.module.mjs +0 -33
- package/esm2020/forms/range/index.mjs +0 -10
- package/esm2020/forms/range/range-container.mjs +0 -137
- package/esm2020/forms/range/range.mjs +0 -30
- package/esm2020/forms/range/range.module.mjs +0 -32
- package/esm2020/forms/select/index.mjs +0 -10
- package/esm2020/forms/select/select-container.mjs +0 -114
- package/esm2020/forms/select/select.mjs +0 -31
- package/esm2020/forms/select/select.module.mjs +0 -32
- package/esm2020/forms/textarea/index.mjs +0 -10
- package/esm2020/forms/textarea/textarea-container.mjs +0 -84
- package/esm2020/forms/textarea/textarea.mjs +0 -31
- package/esm2020/forms/textarea/textarea.module.mjs +0 -32
- package/esm2020/icon/icon.mjs +0 -29
- package/esm2020/icon/icon.module.mjs +0 -25
- package/esm2020/icon/index.mjs +0 -9
- package/esm2020/index.mjs +0 -23
- package/esm2020/layout/breadcrumbs/breadcrumb-item.mjs +0 -24
- package/esm2020/layout/breadcrumbs/breadcrumbs.constants.mjs +0 -8
- package/esm2020/layout/breadcrumbs/breadcrumbs.mjs +0 -46
- package/esm2020/layout/breadcrumbs/breadcrumbs.module.mjs +0 -28
- package/esm2020/layout/breadcrumbs/index.mjs +0 -11
- package/esm2020/layout/breadcrumbs/model/breadcrumbs.model.mjs +0 -8
- package/esm2020/layout/index.mjs +0 -13
- package/esm2020/layout/layout.module.mjs +0 -25
- package/esm2020/layout/main-container/index.mjs +0 -9
- package/esm2020/layout/main-container/main-container.mjs +0 -62
- package/esm2020/layout/main-container/main-container.module.mjs +0 -26
- package/esm2020/layout/nav/aria-current-link.mjs +0 -32
- package/esm2020/layout/nav/chocolate/index.mjs +0 -9
- package/esm2020/layout/nav/chocolate/main-container-willy-wonka.mjs +0 -20
- package/esm2020/layout/nav/chocolate/nav-detection-oompa-loompa.mjs +0 -36
- package/esm2020/layout/nav/header.mjs +0 -154
- package/esm2020/layout/nav/index.mjs +0 -12
- package/esm2020/layout/nav/nav-level.mjs +0 -197
- package/esm2020/layout/nav/navigation.module.mjs +0 -45
- package/esm2020/layout/nav/providers/responsive-navigation.service.mjs +0 -61
- package/esm2020/layout/nav/responsive-nav-codes.mjs +0 -21
- package/esm2020/layout/nav/responsive-nav-control-message.mjs +0 -19
- package/esm2020/layout/tabs/chocolate/active-oompa-loompa.mjs +0 -39
- package/esm2020/layout/tabs/chocolate/tabs-willy-wonka.mjs +0 -20
- package/esm2020/layout/tabs/enums/tabs-layout.enum.mjs +0 -12
- package/esm2020/layout/tabs/index.mjs +0 -17
- package/esm2020/layout/tabs/providers/tabs.service.mjs +0 -46
- package/esm2020/layout/tabs/tab-action.directive.mjs +0 -22
- package/esm2020/layout/tabs/tab-content.mjs +0 -87
- package/esm2020/layout/tabs/tab-link.directive.mjs +0 -105
- package/esm2020/layout/tabs/tab-overflow-content.mjs +0 -23
- package/esm2020/layout/tabs/tab.mjs +0 -47
- package/esm2020/layout/tabs/tabs-actions.mjs +0 -39
- package/esm2020/layout/tabs/tabs-id.provider.mjs +0 -17
- package/esm2020/layout/tabs/tabs.mjs +0 -327
- package/esm2020/layout/tabs/tabs.module.mjs +0 -67
- package/esm2020/layout/vertical-nav/index.mjs +0 -13
- package/esm2020/layout/vertical-nav/providers/vertical-nav-group-registration.service.mjs +0 -25
- package/esm2020/layout/vertical-nav/providers/vertical-nav-group.service.mjs +0 -26
- package/esm2020/layout/vertical-nav/providers/vertical-nav-icon.service.mjs +0 -28
- package/esm2020/layout/vertical-nav/providers/vertical-nav.service.mjs +0 -55
- package/esm2020/layout/vertical-nav/vertical-nav-group-children.mjs +0 -20
- package/esm2020/layout/vertical-nav/vertical-nav-group.mjs +0 -162
- package/esm2020/layout/vertical-nav/vertical-nav-icon.mjs +0 -28
- package/esm2020/layout/vertical-nav/vertical-nav-link.mjs +0 -57
- package/esm2020/layout/vertical-nav/vertical-nav.mjs +0 -85
- package/esm2020/layout/vertical-nav/vertical-nav.module.mjs +0 -50
- package/esm2020/modal/index.mjs +0 -14
- package/esm2020/modal/modal-body.mjs +0 -65
- package/esm2020/modal/modal-configuration.service.mjs +0 -21
- package/esm2020/modal/modal-host.component.mjs +0 -29
- package/esm2020/modal/modal-stack.service.mjs +0 -53
- package/esm2020/modal/modal.mjs +0 -185
- package/esm2020/modal/modal.module.mjs +0 -33
- package/esm2020/modal/side-panel.mjs +0 -227
- package/esm2020/modal/side-panel.module.mjs +0 -28
- package/esm2020/popover/common/abstract-popover.mjs +0 -138
- package/esm2020/popover/common/popover-host-anchor.token.mjs +0 -9
- package/esm2020/popover/common/popover-options.interface.mjs +0 -8
- package/esm2020/popover/common/popover.mjs +0 -267
- package/esm2020/popover/dropdown/dropdown-item.mjs +0 -105
- package/esm2020/popover/dropdown/dropdown-menu.mjs +0 -115
- package/esm2020/popover/dropdown/dropdown-trigger.mjs +0 -51
- package/esm2020/popover/dropdown/dropdown.mjs +0 -53
- package/esm2020/popover/dropdown/dropdown.module.mjs +0 -30
- package/esm2020/popover/dropdown/index.mjs +0 -13
- package/esm2020/popover/dropdown/menu-positions.mjs +0 -17
- package/esm2020/popover/dropdown/providers/dropdown-focus-handler.service.mjs +0 -186
- package/esm2020/popover/dropdown/providers/dropdown.service.mjs +0 -34
- package/esm2020/popover/index.mjs +0 -11
- package/esm2020/popover/popover.module.mjs +0 -23
- package/esm2020/popover/signpost/index.mjs +0 -12
- package/esm2020/popover/signpost/providers/signpost-focus-manager.service.mjs +0 -24
- package/esm2020/popover/signpost/providers/signpost-id.service.mjs +0 -26
- package/esm2020/popover/signpost/signpost-content.mjs +0 -179
- package/esm2020/popover/signpost/signpost-positions.mjs +0 -23
- package/esm2020/popover/signpost/signpost-title.mjs +0 -21
- package/esm2020/popover/signpost/signpost-trigger.mjs +0 -90
- package/esm2020/popover/signpost/signpost.mjs +0 -94
- package/esm2020/popover/signpost/signpost.module.mjs +0 -46
- package/esm2020/popover/tooltip/index.mjs +0 -11
- package/esm2020/popover/tooltip/providers/tooltip-id.service.mjs +0 -26
- package/esm2020/popover/tooltip/providers/tooltip-mouse.service.mjs +0 -44
- package/esm2020/popover/tooltip/tooltip-content.mjs +0 -135
- package/esm2020/popover/tooltip/tooltip-trigger.mjs +0 -62
- package/esm2020/popover/tooltip/tooltip.mjs +0 -29
- package/esm2020/popover/tooltip/tooltip.module.mjs +0 -29
- package/esm2020/progress/progress-bars/index.mjs +0 -9
- package/esm2020/progress/progress-bars/progress-bar.mjs +0 -177
- package/esm2020/progress/progress-bars/progress-bar.module.mjs +0 -25
- package/esm2020/progress/spinner/index.mjs +0 -9
- package/esm2020/progress/spinner/spinner.mjs +0 -95
- package/esm2020/progress/spinner/spinner.module.mjs +0 -25
- package/esm2020/timeline/enums/timeline-layout.enum.mjs +0 -12
- package/esm2020/timeline/enums/timeline-step-state.enum.mjs +0 -15
- package/esm2020/timeline/index.mjs +0 -15
- package/esm2020/timeline/interface/icon-attribute.interface.mjs +0 -8
- package/esm2020/timeline/providers/timeline-icon-attribute.service.mjs +0 -55
- package/esm2020/timeline/timeline-step-description.mjs +0 -21
- package/esm2020/timeline/timeline-step-header.mjs +0 -21
- package/esm2020/timeline/timeline-step-title.mjs +0 -31
- package/esm2020/timeline/timeline-step.mjs +0 -97
- package/esm2020/timeline/timeline.mjs +0 -36
- package/esm2020/timeline/timeline.module.mjs +0 -49
- package/esm2020/utils/animations/collapse/collapse.mjs +0 -17
- package/esm2020/utils/animations/collapse/index.mjs +0 -8
- package/esm2020/utils/animations/constants.mjs +0 -14
- package/esm2020/utils/animations/expandable-animation/base-expandable-animation.mjs +0 -46
- package/esm2020/utils/animations/expandable-animation/expandable-animation.directive.mjs +0 -56
- package/esm2020/utils/animations/expandable-animation/expandable-animation.mjs +0 -49
- package/esm2020/utils/animations/expandable-animation/expandable-animation.module.mjs +0 -26
- package/esm2020/utils/animations/expandable-animation/index.mjs +0 -12
- package/esm2020/utils/animations/fade/fade.mjs +0 -15
- package/esm2020/utils/animations/fade/index.mjs +0 -8
- package/esm2020/utils/animations/fade-slide/fade-slide.mjs +0 -31
- package/esm2020/utils/animations/fade-slide/index.mjs +0 -8
- package/esm2020/utils/animations/index.mjs +0 -12
- package/esm2020/utils/animations/slide/index.mjs +0 -8
- package/esm2020/utils/animations/slide/slide.mjs +0 -31
- package/esm2020/utils/assert/assert.helpers.mjs +0 -10
- package/esm2020/utils/breakpoints/breakpoints.mjs +0 -24
- package/esm2020/utils/cdk/cdk-drag.module.mjs +0 -58
- package/esm2020/utils/cdk/cdk-trap-focus.module.mjs +0 -53
- package/esm2020/utils/chocolate/oompa-loompa.mjs +0 -33
- package/esm2020/utils/chocolate/willy-wonka.mjs +0 -37
- package/esm2020/utils/component/is-boolean-attribute-set.mjs +0 -19
- package/esm2020/utils/conditional/conditional.module.mjs +0 -27
- package/esm2020/utils/conditional/if-active.directive.mjs +0 -98
- package/esm2020/utils/conditional/if-active.service.mjs +0 -71
- package/esm2020/utils/conditional/if-expanded.directive.mjs +0 -96
- package/esm2020/utils/conditional/if-expanded.service.mjs +0 -60
- package/esm2020/utils/conditional/if-open.directive.mjs +0 -81
- package/esm2020/utils/conditional/index.mjs +0 -11
- package/esm2020/utils/destroy/destroy.service.mjs +0 -45
- package/esm2020/utils/destroy/index.mjs +0 -8
- package/esm2020/utils/dom-adapter/dom-adapter.mjs +0 -62
- package/esm2020/utils/enums/keys.enum.mjs +0 -33
- package/esm2020/utils/focus/arrow-key-direction.enum.mjs +0 -14
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.mjs +0 -90
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.module.mjs +0 -27
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.provider.mjs +0 -15
- package/esm2020/utils/focus/focus-on-view-init/index.mjs +0 -10
- package/esm2020/utils/focus/focus-trap/index.mjs +0 -8
- package/esm2020/utils/focus/focus-trap/standalone-cdk-trap-focus.directive.mjs +0 -35
- package/esm2020/utils/focus/focus.service.mjs +0 -95
- package/esm2020/utils/focus/focusable-item/basic-focusable-item.service.mjs +0 -55
- package/esm2020/utils/focus/focusable-item/custom-focusable-item-provider.mjs +0 -17
- package/esm2020/utils/focus/focusable-item/focusable-item.mjs +0 -9
- package/esm2020/utils/focus/focusable-item/linkers.mjs +0 -35
- package/esm2020/utils/focus/key-focus/enums/focus-direction.enum.mjs +0 -13
- package/esm2020/utils/focus/key-focus/index.mjs +0 -9
- package/esm2020/utils/focus/key-focus/interfaces.mjs +0 -8
- package/esm2020/utils/focus/key-focus/key-focus-item.mjs +0 -35
- package/esm2020/utils/focus/key-focus/key-focus.mjs +0 -199
- package/esm2020/utils/focus/key-focus/key-focus.module.mjs +0 -27
- package/esm2020/utils/focus/key-focus/roving-tabindex.mjs +0 -103
- package/esm2020/utils/focus/key-focus/util.mjs +0 -45
- package/esm2020/utils/focus/wrap-observable.mjs +0 -20
- package/esm2020/utils/forms/validation.mjs +0 -21
- package/esm2020/utils/host-wrapping/empty-anchor.mjs +0 -19
- package/esm2020/utils/host-wrapping/host-wrapper.mjs +0 -42
- package/esm2020/utils/host-wrapping/host-wrapping.module.mjs +0 -25
- package/esm2020/utils/i18n/common-strings.default.mjs +0 -137
- package/esm2020/utils/i18n/common-strings.interface.mjs +0 -8
- package/esm2020/utils/i18n/common-strings.service.mjs +0 -48
- package/esm2020/utils/i18n/index.mjs +0 -10
- package/esm2020/utils/id-generator/id-generator.service.mjs +0 -11
- package/esm2020/utils/index.mjs +0 -15
- package/esm2020/utils/loading/index.mjs +0 -10
- package/esm2020/utils/loading/loading-listener.mjs +0 -13
- package/esm2020/utils/loading/loading.mjs +0 -58
- package/esm2020/utils/loading/loading.module.mjs +0 -25
- package/esm2020/utils/outside-click/index.mjs +0 -10
- package/esm2020/utils/outside-click/outside-click.mjs +0 -49
- package/esm2020/utils/outside-click/outside-click.module.mjs +0 -25
- package/esm2020/utils/popover/enums/alignment.enum.mjs +0 -13
- package/esm2020/utils/popover/enums/axis.enum.mjs +0 -12
- package/esm2020/utils/popover/enums/positions.enum.mjs +0 -60
- package/esm2020/utils/popover/enums/side.enum.mjs +0 -12
- package/esm2020/utils/popover/enums/viewport-violation.enum.mjs +0 -14
- package/esm2020/utils/popover/index.mjs +0 -21
- package/esm2020/utils/popover/interfaces/popover-content-offset.interface.mjs +0 -8
- package/esm2020/utils/popover/interfaces/popover-position.interface.mjs +0 -8
- package/esm2020/utils/popover/interfaces/visibility-coords.interface.mjs +0 -8
- package/esm2020/utils/popover/popover-anchor.mjs +0 -26
- package/esm2020/utils/popover/popover-close-button.mjs +0 -52
- package/esm2020/utils/popover/popover-content.mjs +0 -161
- package/esm2020/utils/popover/popover-host.directive.mjs +0 -37
- package/esm2020/utils/popover/popover-open-close-button.mjs +0 -43
- package/esm2020/utils/popover/popover.module.mjs +0 -26
- package/esm2020/utils/popover/position-operators.mjs +0 -180
- package/esm2020/utils/popover/providers/popover-events.service.mjs +0 -142
- package/esm2020/utils/popover/providers/popover-position.service.mjs +0 -230
- package/esm2020/utils/popover/providers/popover-toggle.service.mjs +0 -75
- package/esm2020/utils/popover/stop-escape-propagation.directive.mjs +0 -43
- package/esm2020/utils/scrolling/scrolling-service.mjs +0 -31
- package/esm2020/utils/template-ref/index.mjs +0 -10
- package/esm2020/utils/template-ref/template-ref-container.mjs +0 -30
- package/esm2020/utils/template-ref/template-ref.module.mjs +0 -25
- package/esm2020/wizard/heading-level.mjs +0 -8
- package/esm2020/wizard/index.mjs +0 -20
- package/esm2020/wizard/providers/button-hub.service.mjs +0 -64
- package/esm2020/wizard/providers/header-actions.service.mjs +0 -36
- package/esm2020/wizard/providers/page-collection.service.mjs +0 -360
- package/esm2020/wizard/providers/wizard-navigation.service.mjs +0 -575
- package/esm2020/wizard/wizard-button.mjs +0 -188
- package/esm2020/wizard/wizard-header-action.mjs +0 -77
- package/esm2020/wizard/wizard-page-buttons.mjs +0 -22
- package/esm2020/wizard/wizard-page-header-actions.mjs +0 -22
- package/esm2020/wizard/wizard-page-navtitle.mjs +0 -22
- package/esm2020/wizard/wizard-page-title.mjs +0 -25
- package/esm2020/wizard/wizard-page.mjs +0 -652
- package/esm2020/wizard/wizard-stepnav-item.mjs +0 -204
- package/esm2020/wizard/wizard-stepnav.mjs +0 -55
- package/esm2020/wizard/wizard-title.mjs +0 -22
- package/esm2020/wizard/wizard.mjs +0 -535
- package/esm2020/wizard/wizard.module.mjs +0 -73
- package/fesm2015/clr-angular.mjs +0 -31534
- package/fesm2015/clr-angular.mjs.map +0 -1
- package/fesm2020/clr-angular.mjs +0 -31350
- package/fesm2020/clr-angular.mjs.map +0 -1
- package/forms/checkbox/checkbox-container.d.ts +0 -25
- package/forms/checkbox/checkbox-wrapper.d.ts +0 -22
- package/forms/checkbox/checkbox.d.ts +0 -20
- package/forms/checkbox/checkbox.module.d.ts +0 -14
- package/forms/checkbox/index.d.ts +0 -4
- package/forms/combobox/combobox-container.d.ts +0 -18
- package/forms/combobox/combobox.d.ts +0 -87
- package/forms/combobox/combobox.module.d.ts +0 -22
- package/forms/combobox/index.d.ts +0 -8
- package/forms/combobox/model/combobox.model.d.ts +0 -9
- package/forms/combobox/model/multi-select-combobox.model.d.ts +0 -12
- package/forms/combobox/model/pseudo-focus.model.d.ts +0 -7
- package/forms/combobox/model/single-select-combobox.model.d.ts +0 -10
- package/forms/combobox/option-group.d.ts +0 -9
- package/forms/combobox/option-items.directive.d.ts +0 -28
- package/forms/combobox/option-selected.directive.d.ts +0 -13
- package/forms/combobox/option.d.ts +0 -25
- package/forms/combobox/options.d.ts +0 -36
- package/forms/combobox/providers/combobox-container.service.d.ts +0 -7
- package/forms/combobox/providers/combobox-focus-handler.service.d.ts +0 -48
- package/forms/combobox/providers/option-selection.service.d.ts +0 -24
- package/forms/common/abstract-container.d.ts +0 -47
- package/forms/common/abstract-control.d.ts +0 -18
- package/forms/common/common.module.d.ts +0 -19
- package/forms/common/control-container.d.ts +0 -6
- package/forms/common/control.d.ts +0 -11
- package/forms/common/error.d.ts +0 -12
- package/forms/common/form.d.ts +0 -16
- package/forms/common/helper.d.ts +0 -12
- package/forms/common/if-control-state/abstract-if-state.d.ts +0 -18
- package/forms/common/if-control-state/if-control-state.service.d.ts +0 -17
- package/forms/common/if-control-state/if-error.d.ts +0 -19
- package/forms/common/if-control-state/if-success.d.ts +0 -16
- package/forms/common/index.d.ts +0 -14
- package/forms/common/label.d.ts +0 -32
- package/forms/common/layout.d.ts +0 -11
- package/forms/common/providers/container-id.service.d.ts +0 -18
- package/forms/common/providers/control-class.service.d.ts +0 -13
- package/forms/common/providers/control-id.service.d.ts +0 -11
- package/forms/common/providers/focus.service.d.ts +0 -9
- package/forms/common/providers/layout.service.d.ts +0 -23
- package/forms/common/providers/mark-control.service.d.ts +0 -9
- package/forms/common/providers/ng-control.service.d.ts +0 -27
- package/forms/common/success.d.ts +0 -12
- package/forms/common/wrapped-control.d.ts +0 -46
- package/forms/datalist/datalist-container.d.ts +0 -14
- package/forms/datalist/datalist-input.d.ts +0 -18
- package/forms/datalist/datalist.d.ts +0 -14
- package/forms/datalist/datalist.module.d.ts +0 -13
- package/forms/datalist/index.d.ts +0 -4
- package/forms/datalist/providers/datalist-id.service.d.ts +0 -11
- package/forms/datepicker/calendar.d.ts +0 -65
- package/forms/datepicker/date-container.d.ts +0 -72
- package/forms/datepicker/date-end-input.d.ts +0 -15
- package/forms/datepicker/date-input.d.ts +0 -67
- package/forms/datepicker/date-input.validator.d.ts +0 -27
- package/forms/datepicker/date-single-input.d.ts +0 -15
- package/forms/datepicker/date-start-input.d.ts +0 -15
- package/forms/datepicker/datepicker-action-buttons.d.ts +0 -16
- package/forms/datepicker/datepicker-view-manager.d.ts +0 -30
- package/forms/datepicker/datepicker.module.d.ts +0 -29
- package/forms/datepicker/day.d.ts +0 -40
- package/forms/datepicker/daypicker.d.ts +0 -44
- package/forms/datepicker/index.d.ts +0 -14
- package/forms/datepicker/interfaces/date-range.interface.d.ts +0 -13
- package/forms/datepicker/interfaces/day-of-week.interface.d.ts +0 -4
- package/forms/datepicker/model/calendar-view.model.d.ts +0 -74
- package/forms/datepicker/model/calendar.model.d.ts +0 -35
- package/forms/datepicker/model/day-view.model.d.ts +0 -16
- package/forms/datepicker/model/day.model.d.ts +0 -30
- package/forms/datepicker/model/year-range.model.d.ts +0 -34
- package/forms/datepicker/monthpicker.d.ts +0 -87
- package/forms/datepicker/providers/date-form-control.service.d.ts +0 -14
- package/forms/datepicker/providers/date-io.service.d.ts +0 -39
- package/forms/datepicker/providers/date-navigation.service.d.ts +0 -94
- package/forms/datepicker/providers/datepicker-enabled.service.d.ts +0 -15
- package/forms/datepicker/providers/datepicker-focus.service.d.ts +0 -16
- package/forms/datepicker/providers/locale-helper.service.d.ts +0 -46
- package/forms/datepicker/providers/view-manager.service.d.ts +0 -17
- package/forms/datepicker/utils/constants.d.ts +0 -24
- package/forms/datepicker/utils/date-utils.d.ts +0 -16
- package/forms/datepicker/yearpicker.d.ts +0 -78
- package/forms/file-input/file-input-container.d.ts +0 -27
- package/forms/file-input/file-input-validator-errors.d.ts +0 -52
- package/forms/file-input/file-input-validator.d.ts +0 -14
- package/forms/file-input/file-input-value-accessor.d.ts +0 -16
- package/forms/file-input/file-input.d.ts +0 -22
- package/forms/file-input/file-input.helpers.d.ts +0 -3
- package/forms/file-input/file-input.module.d.ts +0 -17
- package/forms/file-input/file-list.d.ts +0 -18
- package/forms/file-input/file-messages-template.d.ts +0 -19
- package/forms/file-input/file-messages.d.ts +0 -17
- package/forms/file-input/index.d.ts +0 -9
- package/forms/forms.module.d.ts +0 -20
- package/forms/index.d.ts +0 -14
- package/forms/input/index.d.ts +0 -3
- package/forms/input/input-container.d.ts +0 -6
- package/forms/input/input.d.ts +0 -11
- package/forms/input/input.module.d.ts +0 -13
- package/forms/number-input/index.d.ts +0 -3
- package/forms/number-input/number-input-container.d.ts +0 -17
- package/forms/number-input/number-input.d.ts +0 -22
- package/forms/number-input/number-input.module.d.ts +0 -13
- package/forms/password/index.d.ts +0 -3
- package/forms/password/password-container.d.ts +0 -32
- package/forms/password/password.d.ts +0 -16
- package/forms/password/password.module.d.ts +0 -13
- package/forms/radio/index.d.ts +0 -4
- package/forms/radio/radio-container.d.ts +0 -28
- package/forms/radio/radio-wrapper.d.ts +0 -9
- package/forms/radio/radio.d.ts +0 -10
- package/forms/radio/radio.module.d.ts +0 -14
- package/forms/range/index.d.ts +0 -3
- package/forms/range/range-container.d.ts +0 -22
- package/forms/range/range.d.ts +0 -10
- package/forms/range/range.module.d.ts +0 -13
- package/forms/select/index.d.ts +0 -3
- package/forms/select/select-container.d.ts +0 -20
- package/forms/select/select.d.ts +0 -11
- package/forms/select/select.module.d.ts +0 -13
- package/forms/textarea/index.d.ts +0 -3
- package/forms/textarea/textarea-container.d.ts +0 -6
- package/forms/textarea/textarea.d.ts +0 -11
- package/forms/textarea/textarea.module.d.ts +0 -13
- package/icon/icon.d.ts +0 -9
- package/icon/icon.module.d.ts +0 -10
- package/icon/index.d.ts +0 -2
- package/index.d.ts +0 -16
- package/layout/breadcrumbs/breadcrumb-item.d.ts +0 -5
- package/layout/breadcrumbs/breadcrumbs.constants.d.ts +0 -1
- package/layout/breadcrumbs/breadcrumbs.d.ts +0 -17
- package/layout/breadcrumbs/breadcrumbs.module.d.ts +0 -12
- package/layout/breadcrumbs/index.d.ts +0 -4
- package/layout/breadcrumbs/model/breadcrumbs.model.d.ts +0 -9
- package/layout/index.d.ts +0 -6
- package/layout/layout.module.d.ts +0 -11
- package/layout/main-container/index.d.ts +0 -2
- package/layout/main-container/main-container.d.ts +0 -17
- package/layout/main-container/main-container.module.d.ts +0 -11
- package/layout/nav/aria-current-link.d.ts +0 -13
- package/layout/nav/chocolate/index.d.ts +0 -2
- package/layout/nav/chocolate/main-container-willy-wonka.d.ts +0 -6
- package/layout/nav/chocolate/nav-detection-oompa-loompa.d.ts +0 -12
- package/layout/nav/header.d.ts +0 -31
- package/layout/nav/index.d.ts +0 -5
- package/layout/nav/nav-level.d.ts +0 -35
- package/layout/nav/navigation.module.d.ts +0 -16
- package/layout/nav/providers/responsive-navigation.service.d.ts +0 -18
- package/layout/nav/responsive-nav-codes.d.ts +0 -14
- package/layout/nav/responsive-nav-control-message.d.ts +0 -7
- package/layout/tabs/chocolate/active-oompa-loompa.d.ts +0 -13
- package/layout/tabs/chocolate/tabs-willy-wonka.d.ts +0 -6
- package/layout/tabs/enums/tabs-layout.enum.d.ts +0 -4
- package/layout/tabs/index.d.ts +0 -11
- package/layout/tabs/providers/tabs.service.d.ts +0 -16
- package/layout/tabs/tab-action.directive.d.ts +0 -5
- package/layout/tabs/tab-content.d.ts +0 -18
- package/layout/tabs/tab-link.directive.d.ts +0 -25
- package/layout/tabs/tab-overflow-content.d.ts +0 -5
- package/layout/tabs/tab.d.ts +0 -17
- package/layout/tabs/tabs-actions.d.ts +0 -7
- package/layout/tabs/tabs-id.provider.d.ts +0 -7
- package/layout/tabs/tabs.d.ts +0 -50
- package/layout/tabs/tabs.module.d.ts +0 -23
- package/layout/vertical-nav/index.d.ts +0 -6
- package/layout/vertical-nav/providers/vertical-nav-group-registration.service.d.ts +0 -8
- package/layout/vertical-nav/providers/vertical-nav-group.service.d.ts +0 -9
- package/layout/vertical-nav/providers/vertical-nav-icon.service.d.ts +0 -9
- package/layout/vertical-nav/providers/vertical-nav.service.d.ts +0 -17
- package/layout/vertical-nav/vertical-nav-group-children.d.ts +0 -5
- package/layout/vertical-nav/vertical-nav-group.d.ts +0 -32
- package/layout/vertical-nav/vertical-nav-icon.d.ts +0 -10
- package/layout/vertical-nav/vertical-nav-link.d.ts +0 -10
- package/layout/vertical-nav/vertical-nav.d.ts +0 -28
- package/layout/vertical-nav/vertical-nav.module.d.ts +0 -18
- package/modal/index.d.ts +0 -7
- package/modal/modal-body.d.ts +0 -22
- package/modal/modal-configuration.service.d.ts +0 -7
- package/modal/modal-host.component.d.ts +0 -5
- package/modal/modal-stack.service.d.ts +0 -15
- package/modal/modal.d.ts +0 -43
- package/modal/modal.module.d.ts +0 -15
- package/modal/side-panel.d.ts +0 -53
- package/modal/side-panel.module.d.ts +0 -13
- package/popover/common/abstract-popover.d.ts +0 -35
- package/popover/common/popover-host-anchor.token.d.ts +0 -2
- package/popover/common/popover-options.interface.d.ts +0 -7
- package/popover/common/popover.d.ts +0 -30
- package/popover/dropdown/dropdown-item.d.ts +0 -27
- package/popover/dropdown/dropdown-menu.d.ts +0 -15
- package/popover/dropdown/dropdown-trigger.d.ts +0 -16
- package/popover/dropdown/dropdown.d.ts +0 -17
- package/popover/dropdown/dropdown.module.d.ts +0 -15
- package/popover/dropdown/index.d.ts +0 -6
- package/popover/dropdown/menu-positions.d.ts +0 -1
- package/popover/dropdown/providers/dropdown-focus-handler.service.d.ts +0 -49
- package/popover/dropdown/providers/dropdown.service.d.ts +0 -16
- package/popover/index.d.ts +0 -4
- package/popover/popover.module.d.ts +0 -9
- package/popover/signpost/index.d.ts +0 -5
- package/popover/signpost/providers/signpost-focus-manager.service.d.ts +0 -8
- package/popover/signpost/providers/signpost-id.service.d.ts +0 -9
- package/popover/signpost/signpost-content.d.ts +0 -57
- package/popover/signpost/signpost-positions.d.ts +0 -10
- package/popover/signpost/signpost-title.d.ts +0 -5
- package/popover/signpost/signpost-trigger.d.ts +0 -29
- package/popover/signpost/signpost.d.ts +0 -27
- package/popover/signpost/signpost.module.d.ts +0 -17
- package/popover/tooltip/index.d.ts +0 -4
- package/popover/tooltip/providers/tooltip-id.service.d.ts +0 -9
- package/popover/tooltip/providers/tooltip-mouse.service.d.ts +0 -15
- package/popover/tooltip/tooltip-content.d.ts +0 -25
- package/popover/tooltip/tooltip-trigger.d.ts +0 -18
- package/popover/tooltip/tooltip.d.ts +0 -6
- package/popover/tooltip/tooltip.module.d.ts +0 -14
- package/progress/progress-bars/index.d.ts +0 -2
- package/progress/progress-bars/progress-bar.d.ts +0 -45
- package/progress/progress-bars/progress-bar.module.d.ts +0 -10
- package/progress/spinner/index.d.ts +0 -2
- package/progress/spinner/spinner.d.ts +0 -32
- package/progress/spinner/spinner.module.d.ts +0 -10
- package/timeline/enums/timeline-layout.enum.d.ts +0 -4
- package/timeline/enums/timeline-step-state.enum.d.ts +0 -7
- package/timeline/index.d.ts +0 -8
- package/timeline/interface/icon-attribute.interface.d.ts +0 -6
- package/timeline/providers/timeline-icon-attribute.service.d.ts +0 -12
- package/timeline/timeline-step-description.d.ts +0 -5
- package/timeline/timeline-step-header.d.ts +0 -5
- package/timeline/timeline-step-title.d.ts +0 -15
- package/timeline/timeline-step.d.ts +0 -19
- package/timeline/timeline.d.ts +0 -8
- package/timeline/timeline.module.d.ts +0 -15
- package/utils/animations/collapse/collapse.d.ts +0 -2
- package/utils/animations/collapse/index.d.ts +0 -1
- package/utils/animations/constants.d.ts +0 -2
- package/utils/animations/expandable-animation/base-expandable-animation.d.ts +0 -16
- package/utils/animations/expandable-animation/expandable-animation.d.ts +0 -16
- package/utils/animations/expandable-animation/expandable-animation.directive.d.ts +0 -16
- package/utils/animations/expandable-animation/expandable-animation.module.d.ts +0 -9
- package/utils/animations/expandable-animation/index.d.ts +0 -4
- package/utils/animations/fade/fade.d.ts +0 -2
- package/utils/animations/fade/index.d.ts +0 -1
- package/utils/animations/fade-slide/fade-slide.d.ts +0 -2
- package/utils/animations/fade-slide/index.d.ts +0 -1
- package/utils/animations/index.d.ts +0 -5
- package/utils/animations/slide/index.d.ts +0 -1
- package/utils/animations/slide/slide.d.ts +0 -2
- package/utils/assert/assert.helpers.d.ts +0 -1
- package/utils/breakpoints/breakpoints.d.ts +0 -15
- package/utils/cdk/cdk-drag.module.d.ts +0 -25
- package/utils/cdk/cdk-trap-focus.module.d.ts +0 -24
- package/utils/chocolate/oompa-loompa.d.ts +0 -13
- package/utils/chocolate/willy-wonka.d.ts +0 -11
- package/utils/component/is-boolean-attribute-set.d.ts +0 -1
- package/utils/conditional/conditional.module.d.ts +0 -12
- package/utils/conditional/if-active.directive.d.ts +0 -38
- package/utils/conditional/if-active.service.d.ts +0 -45
- package/utils/conditional/if-expanded.directive.d.ts +0 -24
- package/utils/conditional/if-expanded.service.d.ts +0 -20
- package/utils/conditional/if-open.directive.d.ts +0 -36
- package/utils/conditional/index.d.ts +0 -4
- package/utils/destroy/destroy.service.d.ts +0 -32
- package/utils/destroy/index.d.ts +0 -1
- package/utils/dom-adapter/dom-adapter.d.ts +0 -12
- package/utils/enums/keys.enum.d.ts +0 -24
- package/utils/focus/arrow-key-direction.enum.d.ts +0 -6
- package/utils/focus/focus-on-view-init/focus-on-view-init.d.ts +0 -19
- package/utils/focus/focus-on-view-init/focus-on-view-init.module.d.ts +0 -10
- package/utils/focus/focus-on-view-init/focus-on-view-init.provider.d.ts +0 -6
- package/utils/focus/focus-on-view-init/index.d.ts +0 -3
- package/utils/focus/focus-trap/index.d.ts +0 -1
- package/utils/focus/focus-trap/standalone-cdk-trap-focus.directive.d.ts +0 -13
- package/utils/focus/focus.service.d.ts +0 -26
- package/utils/focus/focusable-item/basic-focusable-item.service.d.ts +0 -20
- package/utils/focus/focusable-item/custom-focusable-item-provider.d.ts +0 -6
- package/utils/focus/focusable-item/focusable-item.d.ts +0 -12
- package/utils/focus/focusable-item/linkers.d.ts +0 -13
- package/utils/focus/key-focus/enums/focus-direction.enum.d.ts +0 -5
- package/utils/focus/key-focus/index.d.ts +0 -2
- package/utils/focus/key-focus/interfaces.d.ts +0 -5
- package/utils/focus/key-focus/key-focus-item.d.ts +0 -11
- package/utils/focus/key-focus/key-focus.d.ts +0 -44
- package/utils/focus/key-focus/key-focus.module.d.ts +0 -10
- package/utils/focus/key-focus/roving-tabindex.d.ts +0 -19
- package/utils/focus/key-focus/util.d.ts +0 -3
- package/utils/focus/wrap-observable.d.ts +0 -2
- package/utils/forms/validation.d.ts +0 -2
- package/utils/host-wrapping/empty-anchor.d.ts +0 -5
- package/utils/host-wrapping/host-wrapper.d.ts +0 -11
- package/utils/host-wrapping/host-wrapping.module.d.ts +0 -10
- package/utils/i18n/common-strings.default.d.ts +0 -2
- package/utils/i18n/common-strings.interface.d.ts +0 -309
- package/utils/i18n/common-strings.service.d.ts +0 -21
- package/utils/i18n/index.d.ts +0 -3
- package/utils/id-generator/id-generator.service.d.ts +0 -1
- package/utils/index.d.ts +0 -8
- package/utils/loading/index.d.ts +0 -3
- package/utils/loading/loading-listener.d.ts +0 -8
- package/utils/loading/loading.d.ts +0 -20
- package/utils/loading/loading.module.d.ts +0 -10
- package/utils/outside-click/index.d.ts +0 -3
- package/utils/outside-click/outside-click.d.ts +0 -11
- package/utils/outside-click/outside-click.module.d.ts +0 -8
- package/utils/popover/enums/alignment.enum.d.ts +0 -5
- package/utils/popover/enums/axis.enum.d.ts +0 -4
- package/utils/popover/enums/positions.enum.d.ts +0 -23
- package/utils/popover/enums/side.enum.d.ts +0 -4
- package/utils/popover/enums/viewport-violation.enum.d.ts +0 -6
- package/utils/popover/index.d.ts +0 -14
- package/utils/popover/interfaces/popover-content-offset.interface.d.ts +0 -4
- package/utils/popover/interfaces/popover-position.interface.d.ts +0 -16
- package/utils/popover/interfaces/visibility-coords.interface.d.ts +0 -6
- package/utils/popover/popover-anchor.d.ts +0 -8
- package/utils/popover/popover-close-button.d.ts +0 -17
- package/utils/popover/popover-content.d.ts +0 -42
- package/utils/popover/popover-host.directive.d.ts +0 -6
- package/utils/popover/popover-open-close-button.d.ts +0 -13
- package/utils/popover/popover.module.d.ts +0 -10
- package/utils/popover/position-operators.d.ts +0 -10
- package/utils/popover/providers/popover-events.service.d.ts +0 -34
- package/utils/popover/providers/popover-position.service.d.ts +0 -24
- package/utils/popover/providers/popover-toggle.service.d.ts +0 -28
- package/utils/popover/stop-escape-propagation.directive.d.ts +0 -14
- package/utils/scrolling/scrolling-service.d.ts +0 -9
- package/utils/template-ref/index.d.ts +0 -3
- package/utils/template-ref/template-ref-container.d.ts +0 -7
- package/utils/template-ref/template-ref.module.d.ts +0 -8
- package/wizard/heading-level.d.ts +0 -1
- package/wizard/index.d.ts +0 -13
- package/wizard/providers/button-hub.service.d.ts +0 -20
- package/wizard/providers/header-actions.service.d.ts +0 -15
- package/wizard/providers/page-collection.service.d.ts +0 -196
- package/wizard/providers/wizard-navigation.service.d.ts +0 -366
- package/wizard/wizard-button.d.ts +0 -28
- package/wizard/wizard-header-action.d.ts +0 -12
- package/wizard/wizard-page-buttons.d.ts +0 -8
- package/wizard/wizard-page-header-actions.d.ts +0 -8
- package/wizard/wizard-page-navtitle.d.ts +0 -8
- package/wizard/wizard-page-title.d.ts +0 -10
- package/wizard/wizard-page.d.ts +0 -494
- package/wizard/wizard-stepnav-item.d.ts +0 -42
- package/wizard/wizard-stepnav.d.ts +0 -9
- package/wizard/wizard-title.d.ts +0 -7
- package/wizard/wizard.d.ts +0 -259
- package/wizard/wizard.module.d.ts +0 -22
|
@@ -0,0 +1,1106 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Optional, SkipSelf, Directive, Input, Component, EventEmitter, PLATFORM_ID, ElementRef, ContentChildren, ViewChild, Output, Inject, NgModule } from '@angular/core';
|
|
3
|
+
import { Subject, BehaviorSubject, fromEvent, isObservable } from 'rxjs';
|
|
4
|
+
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
5
|
+
import * as i3 from '@angular/common';
|
|
6
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2 from '@clr/angular/utils';
|
|
8
|
+
import { uniqueIdFactory, preventArrowKeyScroll, isKeyEitherLetterOrNumber, Keys, IfExpandService, LoadingListener, ClrLoadingModule } from '@clr/angular/utils';
|
|
9
|
+
import { filter, debounceTime } from 'rxjs/operators';
|
|
10
|
+
import * as i5 from '@clr/angular/icon';
|
|
11
|
+
import { ClarityIcons, angleIcon, ClrIcon } from '@clr/angular/icon';
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
15
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
16
|
+
* This software is released under MIT license.
|
|
17
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
18
|
+
*/
|
|
19
|
+
// TODO: I'd like this to be a CheckedState enum for the checkboxes in the future.
|
|
20
|
+
var ClrSelectedState;
|
|
21
|
+
(function (ClrSelectedState) {
|
|
22
|
+
// WARNING! Unselected has the value 0,
|
|
23
|
+
// so it's actually the only one that will evaluate to false if cast to a boolean.
|
|
24
|
+
// Don't mess with the order!
|
|
25
|
+
ClrSelectedState[ClrSelectedState["UNSELECTED"] = 0] = "UNSELECTED";
|
|
26
|
+
ClrSelectedState[ClrSelectedState["SELECTED"] = 1] = "SELECTED";
|
|
27
|
+
ClrSelectedState[ClrSelectedState["INDETERMINATE"] = 2] = "INDETERMINATE";
|
|
28
|
+
})(ClrSelectedState || (ClrSelectedState = {}));
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
32
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
33
|
+
* This software is released under MIT license.
|
|
34
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
35
|
+
*/
|
|
36
|
+
class TreeFeaturesService {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.selectable = false;
|
|
39
|
+
this.eager = true;
|
|
40
|
+
this.childrenFetched = new Subject();
|
|
41
|
+
}
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFeaturesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
43
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFeaturesService }); }
|
|
44
|
+
}
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFeaturesService, decorators: [{
|
|
46
|
+
type: Injectable
|
|
47
|
+
}] });
|
|
48
|
+
function treeFeaturesFactory(existing) {
|
|
49
|
+
return existing || new TreeFeaturesService();
|
|
50
|
+
}
|
|
51
|
+
const TREE_FEATURES_PROVIDER = {
|
|
52
|
+
provide: TreeFeaturesService,
|
|
53
|
+
useFactory: treeFeaturesFactory,
|
|
54
|
+
/*
|
|
55
|
+
* The Optional + SkipSelf pattern ensures that in case of nested components, only the root one will
|
|
56
|
+
* instantiate a new service and all its children will reuse the root's instance.
|
|
57
|
+
* If there are several roots (in this case, several independent trees on a page), each root will instantiate
|
|
58
|
+
* its own service so they won't interfere with one another.
|
|
59
|
+
*
|
|
60
|
+
* TL;DR - Optional + SkipSelf = 1 instance of TreeFeaturesService per tree.
|
|
61
|
+
*/
|
|
62
|
+
deps: [[new Optional(), new SkipSelf(), TreeFeaturesService]],
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
67
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
68
|
+
* This software is released under MIT license.
|
|
69
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
70
|
+
*/
|
|
71
|
+
class TreeFocusManagerService {
|
|
72
|
+
constructor() {
|
|
73
|
+
this._focusRequest = new Subject();
|
|
74
|
+
this._focusChange = new Subject();
|
|
75
|
+
}
|
|
76
|
+
get focusRequest() {
|
|
77
|
+
return this._focusRequest.asObservable();
|
|
78
|
+
}
|
|
79
|
+
get focusChange() {
|
|
80
|
+
return this._focusChange.asObservable();
|
|
81
|
+
}
|
|
82
|
+
focusNode(model) {
|
|
83
|
+
if (model) {
|
|
84
|
+
this._focusRequest.next(model.nodeId);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
broadcastFocusedNode(nodeId) {
|
|
88
|
+
if (this.focusedNodeId !== nodeId) {
|
|
89
|
+
this.focusedNodeId = nodeId;
|
|
90
|
+
this._focusChange.next(nodeId);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
focusParent(model) {
|
|
94
|
+
if (model) {
|
|
95
|
+
this.focusNode(model.parent);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
focusFirstVisibleNode() {
|
|
99
|
+
const focusModel = this.rootNodeModels && this.rootNodeModels[0];
|
|
100
|
+
this.focusNode(focusModel);
|
|
101
|
+
}
|
|
102
|
+
focusLastVisibleNode() {
|
|
103
|
+
this.focusNode(this.findLastVisibleInTree());
|
|
104
|
+
}
|
|
105
|
+
focusNodeAbove(model) {
|
|
106
|
+
this.focusNode(this.findNodeAbove(model));
|
|
107
|
+
}
|
|
108
|
+
focusNodeBelow(model) {
|
|
109
|
+
this.focusNode(this.findNodeBelow(model));
|
|
110
|
+
}
|
|
111
|
+
focusNodeStartsWith(searchString, model) {
|
|
112
|
+
this.focusNode(this.findClosestNodeStartsWith(searchString, model));
|
|
113
|
+
}
|
|
114
|
+
findSiblings(model) {
|
|
115
|
+
// the method will return not only sibling models but also itself among them
|
|
116
|
+
if (model.parent) {
|
|
117
|
+
return model.parent.children;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
return this.rootNodeModels;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
findLastVisibleInNode(model) {
|
|
124
|
+
// the method will traverse through until it finds the last visible node from the given node
|
|
125
|
+
if (!model) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
if (model.expanded && model.children.length > 0) {
|
|
129
|
+
const children = model.children;
|
|
130
|
+
const lastChild = children[children.length - 1];
|
|
131
|
+
return this.findLastVisibleInNode(lastChild);
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return model;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
findNextFocusable(model) {
|
|
138
|
+
if (!model) {
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
const siblings = this.findSiblings(model);
|
|
142
|
+
const selfIndex = siblings.indexOf(model);
|
|
143
|
+
if (selfIndex < siblings.length - 1) {
|
|
144
|
+
return siblings[selfIndex + 1];
|
|
145
|
+
}
|
|
146
|
+
else if (selfIndex === siblings.length - 1) {
|
|
147
|
+
return this.findNextFocusable(model.parent);
|
|
148
|
+
}
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
findLastVisibleInTree() {
|
|
152
|
+
const lastRootNode = this.rootNodeModels && this.rootNodeModels.length && this.rootNodeModels[this.rootNodeModels.length - 1];
|
|
153
|
+
return this.findLastVisibleInNode(lastRootNode);
|
|
154
|
+
}
|
|
155
|
+
findNodeAbove(model) {
|
|
156
|
+
if (!model) {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
const siblings = this.findSiblings(model);
|
|
160
|
+
const selfIndex = siblings.indexOf(model);
|
|
161
|
+
if (selfIndex === 0) {
|
|
162
|
+
return model.parent;
|
|
163
|
+
}
|
|
164
|
+
else if (selfIndex > 0) {
|
|
165
|
+
return this.findLastVisibleInNode(siblings[selfIndex - 1]);
|
|
166
|
+
}
|
|
167
|
+
return null;
|
|
168
|
+
}
|
|
169
|
+
findNodeBelow(model) {
|
|
170
|
+
if (!model) {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
if (model.expanded && model.children.length > 0) {
|
|
174
|
+
return model.children[0];
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return this.findNextFocusable(model);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
findDescendentNodeStartsWith(searchString, model) {
|
|
181
|
+
if (model.expanded && model.children.length > 0) {
|
|
182
|
+
for (const childModel of model.children) {
|
|
183
|
+
const found = this.findNodeStartsWith(searchString, childModel);
|
|
184
|
+
if (found) {
|
|
185
|
+
return found;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
findSiblingNodeStartsWith(searchString, model) {
|
|
192
|
+
const siblings = this.findSiblings(model);
|
|
193
|
+
const selfIndex = siblings.indexOf(model);
|
|
194
|
+
// Look from sibling nodes
|
|
195
|
+
for (let i = selfIndex + 1; i < siblings.length; i++) {
|
|
196
|
+
const siblingModel = siblings[i];
|
|
197
|
+
const found = this.findNodeStartsWith(searchString, siblingModel);
|
|
198
|
+
if (found) {
|
|
199
|
+
return found;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
findRootNodeStartsWith(searchString, model) {
|
|
205
|
+
for (const rootModel of this.rootNodeModels) {
|
|
206
|
+
// Don't look from a parent yet
|
|
207
|
+
if (model.parent && model.parent === rootModel) {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
const found = this.findNodeStartsWith(searchString, rootModel);
|
|
211
|
+
if (found) {
|
|
212
|
+
return found;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
findNodeStartsWith(searchString, model) {
|
|
218
|
+
if (!model) {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
if (model.textContent.startsWith(searchString)) {
|
|
222
|
+
return model;
|
|
223
|
+
}
|
|
224
|
+
return this.findDescendentNodeStartsWith(searchString, model);
|
|
225
|
+
}
|
|
226
|
+
findClosestNodeStartsWith(searchString, model) {
|
|
227
|
+
if (!model) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
const foundFromDescendents = this.findDescendentNodeStartsWith(searchString, model);
|
|
231
|
+
if (foundFromDescendents) {
|
|
232
|
+
return foundFromDescendents;
|
|
233
|
+
}
|
|
234
|
+
const foundFromSiblings = this.findSiblingNodeStartsWith(searchString, model);
|
|
235
|
+
if (foundFromSiblings) {
|
|
236
|
+
return foundFromSiblings;
|
|
237
|
+
}
|
|
238
|
+
const foundFromRootNodes = this.findRootNodeStartsWith(searchString, model);
|
|
239
|
+
if (foundFromRootNodes) {
|
|
240
|
+
return foundFromRootNodes;
|
|
241
|
+
}
|
|
242
|
+
// Now look from its own direct parent
|
|
243
|
+
return this.findNodeStartsWith(searchString, model.parent);
|
|
244
|
+
}
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFocusManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
246
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFocusManagerService }); }
|
|
247
|
+
}
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: TreeFocusManagerService, decorators: [{
|
|
249
|
+
type: Injectable
|
|
250
|
+
}] });
|
|
251
|
+
|
|
252
|
+
/*
|
|
253
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
254
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
255
|
+
* This software is released under MIT license.
|
|
256
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
257
|
+
*/
|
|
258
|
+
class TreeNodeModel {
|
|
259
|
+
constructor() {
|
|
260
|
+
this.loading$ = new BehaviorSubject(false);
|
|
261
|
+
this.selected = new BehaviorSubject(ClrSelectedState.UNSELECTED);
|
|
262
|
+
/*
|
|
263
|
+
* Being able to push this down to the RecursiveTreeNodeModel would require too much work on the angular components
|
|
264
|
+
* right now for them to know which kind of model they are using. So I'm lifting the public properties to this
|
|
265
|
+
* abstract parent class for now and we can revisit it later, when we're not facing such a close deadline.
|
|
266
|
+
*/
|
|
267
|
+
this._loading = false;
|
|
268
|
+
}
|
|
269
|
+
get loading() {
|
|
270
|
+
return this._loading;
|
|
271
|
+
}
|
|
272
|
+
set loading(isLoading) {
|
|
273
|
+
this._loading = isLoading;
|
|
274
|
+
this.loading$.next(isLoading);
|
|
275
|
+
}
|
|
276
|
+
get disabled() {
|
|
277
|
+
// when both parameters are undefined, double negative is needed to cast to false, otherwise will return undefined.
|
|
278
|
+
return !!(this._disabled || this.parent?.disabled);
|
|
279
|
+
}
|
|
280
|
+
set disabled(value) {
|
|
281
|
+
this._disabled = value;
|
|
282
|
+
}
|
|
283
|
+
destroy() {
|
|
284
|
+
// Just to be safe
|
|
285
|
+
this.selected.complete();
|
|
286
|
+
}
|
|
287
|
+
// Propagate by default when eager, don't propagate in the lazy-loaded tree.
|
|
288
|
+
setSelected(state, propagateUp, propagateDown) {
|
|
289
|
+
if (state === this.selected.value) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
this.selected.next(state);
|
|
293
|
+
if (propagateDown && state !== ClrSelectedState.INDETERMINATE && this.children) {
|
|
294
|
+
this.children.forEach(child => {
|
|
295
|
+
if (!child.disabled) {
|
|
296
|
+
child.setSelected(state, false, true);
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
if (propagateUp && this.parent) {
|
|
301
|
+
this.parent._updateSelectionFromChildren();
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
toggleSelection(propagate) {
|
|
305
|
+
if (this.disabled) {
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
// Both unselected and indeterminate toggle to selected
|
|
309
|
+
const newState = this.selected.value === ClrSelectedState.SELECTED ? ClrSelectedState.UNSELECTED : ClrSelectedState.SELECTED;
|
|
310
|
+
// NOTE: we always propagate selection up in this method because it is only called when the user takes an action.
|
|
311
|
+
// It should never be called from lifecycle hooks or app-provided inputs.
|
|
312
|
+
this.setSelected(newState, true, propagate);
|
|
313
|
+
}
|
|
314
|
+
/*
|
|
315
|
+
* Internal, but needs to be called by other nodes
|
|
316
|
+
*/
|
|
317
|
+
_updateSelectionFromChildren() {
|
|
318
|
+
const newState = this.computeSelectionStateFromChildren();
|
|
319
|
+
if (newState === this.selected.value) {
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
this.selected.next(newState);
|
|
323
|
+
if (this.parent) {
|
|
324
|
+
this.parent._updateSelectionFromChildren();
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
computeSelectionStateFromChildren() {
|
|
328
|
+
let oneSelected = false;
|
|
329
|
+
let oneUnselected = false;
|
|
330
|
+
// Using a good old for loop to exit as soon as we can tell, for better performance on large trees.
|
|
331
|
+
for (const child of this.children) {
|
|
332
|
+
switch (child.selected.value) {
|
|
333
|
+
case ClrSelectedState.INDETERMINATE:
|
|
334
|
+
if (child.disabled) {
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
return ClrSelectedState.INDETERMINATE;
|
|
338
|
+
case ClrSelectedState.SELECTED:
|
|
339
|
+
oneSelected = true;
|
|
340
|
+
if (oneUnselected) {
|
|
341
|
+
return ClrSelectedState.INDETERMINATE;
|
|
342
|
+
}
|
|
343
|
+
break;
|
|
344
|
+
case ClrSelectedState.UNSELECTED:
|
|
345
|
+
default:
|
|
346
|
+
// Default is the same as unselected, in case an undefined somehow made it all the way here.
|
|
347
|
+
oneUnselected = true;
|
|
348
|
+
if (oneSelected) {
|
|
349
|
+
return ClrSelectedState.INDETERMINATE;
|
|
350
|
+
}
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (!oneSelected) {
|
|
355
|
+
return ClrSelectedState.UNSELECTED;
|
|
356
|
+
}
|
|
357
|
+
else if (!oneUnselected) {
|
|
358
|
+
return ClrSelectedState.SELECTED;
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
return ClrSelectedState.UNSELECTED;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/*
|
|
367
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
368
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
369
|
+
* This software is released under MIT license.
|
|
370
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
371
|
+
*/
|
|
372
|
+
/*
|
|
373
|
+
* A declarative model is built by traversing the Angular component tree.
|
|
374
|
+
* Declarative = Tree node components dictate the model
|
|
375
|
+
*/
|
|
376
|
+
class DeclarativeTreeNodeModel extends TreeNodeModel {
|
|
377
|
+
constructor(parent) {
|
|
378
|
+
super();
|
|
379
|
+
this.parent = parent;
|
|
380
|
+
if (parent) {
|
|
381
|
+
parent._addChild(this);
|
|
382
|
+
}
|
|
383
|
+
this.children = [];
|
|
384
|
+
}
|
|
385
|
+
destroy() {
|
|
386
|
+
if (this.parent) {
|
|
387
|
+
this.parent._removeChild(this);
|
|
388
|
+
}
|
|
389
|
+
super.destroy();
|
|
390
|
+
}
|
|
391
|
+
_addChild(child) {
|
|
392
|
+
this.children.push(child);
|
|
393
|
+
}
|
|
394
|
+
_removeChild(child) {
|
|
395
|
+
const index = this.children.indexOf(child);
|
|
396
|
+
if (index > -1) {
|
|
397
|
+
this.children.splice(index, 1);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/*
|
|
403
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
404
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
405
|
+
* This software is released under MIT license.
|
|
406
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
407
|
+
*/
|
|
408
|
+
class ClrTreeNodeLink {
|
|
409
|
+
constructor(el) {
|
|
410
|
+
this.el = el;
|
|
411
|
+
}
|
|
412
|
+
get active() {
|
|
413
|
+
return this.el.nativeElement.classList.contains('active');
|
|
414
|
+
}
|
|
415
|
+
activate() {
|
|
416
|
+
if (this.el.nativeElement && this.el.nativeElement.click) {
|
|
417
|
+
this.el.nativeElement.click();
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeNodeLink, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
421
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ClrTreeNodeLink, isStandalone: false, selector: ".clr-treenode-link", ngImport: i0 }); }
|
|
422
|
+
}
|
|
423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeNodeLink, decorators: [{
|
|
424
|
+
type: Directive,
|
|
425
|
+
args: [{
|
|
426
|
+
selector: '.clr-treenode-link',
|
|
427
|
+
standalone: false,
|
|
428
|
+
}]
|
|
429
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
430
|
+
|
|
431
|
+
/*
|
|
432
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
433
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
434
|
+
* This software is released under MIT license.
|
|
435
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
436
|
+
*/
|
|
437
|
+
/**
|
|
438
|
+
* Internal component, do not export!
|
|
439
|
+
* This is part of the hack to get around https://github.com/angular/angular/issues/15998
|
|
440
|
+
*/
|
|
441
|
+
class RecursiveChildren {
|
|
442
|
+
constructor(featuresService, expandService) {
|
|
443
|
+
this.featuresService = featuresService;
|
|
444
|
+
this.expandService = expandService;
|
|
445
|
+
if (expandService) {
|
|
446
|
+
this.subscription = expandService.expandChange.subscribe(value => {
|
|
447
|
+
if (!value && this.parent && !featuresService.eager && featuresService.recursion) {
|
|
448
|
+
// In the case of lazy-loading recursive trees, we clear the children on collapse.
|
|
449
|
+
// This is better in case they change between two user interaction, and that way
|
|
450
|
+
// the app itself can decide whether to cache them or not.
|
|
451
|
+
this.parent.clearChildren();
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
ngAfterContentInit() {
|
|
457
|
+
this.setAriaRoles();
|
|
458
|
+
}
|
|
459
|
+
shouldRender() {
|
|
460
|
+
return (this.featuresService.recursion &&
|
|
461
|
+
// In the smart case, we eagerly render all the recursive children
|
|
462
|
+
// to make sure two-way bindings for selection are available.
|
|
463
|
+
// They will be hidden with CSS by the parent.
|
|
464
|
+
(this.featuresService.eager || !this.expandService || this.expandService.expanded));
|
|
465
|
+
}
|
|
466
|
+
getContext(node) {
|
|
467
|
+
return {
|
|
468
|
+
$implicit: node.model,
|
|
469
|
+
clrModel: node,
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
ngOnDestroy() {
|
|
473
|
+
if (this.subscription) {
|
|
474
|
+
this.subscription.unsubscribe();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
setAriaRoles() {
|
|
478
|
+
this.role = this.parent ? 'group' : null;
|
|
479
|
+
}
|
|
480
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: RecursiveChildren, deps: [{ token: TreeFeaturesService }, { token: i2.IfExpandService, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
481
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: RecursiveChildren, isStandalone: false, selector: "clr-recursive-children", inputs: { parent: "parent", children: "children" }, host: { properties: { "attr.role": "role" } }, ngImport: i0, template: `
|
|
482
|
+
@if (shouldRender()) {
|
|
483
|
+
@for (child of parent?.children || children; track child) {
|
|
484
|
+
<ng-container *ngTemplateOutlet="featuresService.recursion.template; context: getContext(child)"></ng-container>
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
488
|
+
}
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: RecursiveChildren, decorators: [{
|
|
490
|
+
type: Component,
|
|
491
|
+
args: [{
|
|
492
|
+
selector: 'clr-recursive-children',
|
|
493
|
+
template: `
|
|
494
|
+
@if (shouldRender()) {
|
|
495
|
+
@for (child of parent?.children || children; track child) {
|
|
496
|
+
<ng-container *ngTemplateOutlet="featuresService.recursion.template; context: getContext(child)"></ng-container>
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
`,
|
|
500
|
+
host: {
|
|
501
|
+
'[attr.role]': 'role', // Safari + VO needs direct relationship between treeitem and group; no element should exist between them
|
|
502
|
+
},
|
|
503
|
+
standalone: false,
|
|
504
|
+
}]
|
|
505
|
+
}], ctorParameters: () => [{ type: TreeFeaturesService }, { type: i2.IfExpandService, decorators: [{
|
|
506
|
+
type: Optional
|
|
507
|
+
}] }], propDecorators: { parent: [{
|
|
508
|
+
type: Input,
|
|
509
|
+
args: ['parent']
|
|
510
|
+
}], children: [{
|
|
511
|
+
type: Input,
|
|
512
|
+
args: ['children']
|
|
513
|
+
}] } });
|
|
514
|
+
|
|
515
|
+
/*
|
|
516
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
517
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
518
|
+
* This software is released under MIT license.
|
|
519
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
520
|
+
*/
|
|
521
|
+
const LVIEW_CONTEXT_INDEX = 8;
|
|
522
|
+
// If the user types multiple keys without allowing 200ms to pass between them,
|
|
523
|
+
// then those keys are sent together in one request.
|
|
524
|
+
const TREE_TYPE_AHEAD_TIMEOUT = 200;
|
|
525
|
+
class ClrTreeNode {
|
|
526
|
+
constructor(platformId, parent, featuresService, expandService, commonStrings, focusManager, elementRef, injector) {
|
|
527
|
+
this.platformId = platformId;
|
|
528
|
+
this.featuresService = featuresService;
|
|
529
|
+
this.expandService = expandService;
|
|
530
|
+
this.commonStrings = commonStrings;
|
|
531
|
+
this.focusManager = focusManager;
|
|
532
|
+
this.elementRef = elementRef;
|
|
533
|
+
this.selectedChange = new EventEmitter(false);
|
|
534
|
+
this.expandedChange = new EventEmitter();
|
|
535
|
+
this.STATES = ClrSelectedState;
|
|
536
|
+
this.isModelLoading = false;
|
|
537
|
+
this.nodeId = uniqueIdFactory();
|
|
538
|
+
this.contentContainerTabindex = -1;
|
|
539
|
+
this.skipEmitChange = false;
|
|
540
|
+
this.typeAheadKeyBuffer = '';
|
|
541
|
+
this.typeAheadKeyEvent = new Subject();
|
|
542
|
+
this.subscriptions = [];
|
|
543
|
+
if (featuresService.recursion) {
|
|
544
|
+
// I'm completely stuck, we have to hack into private properties until either
|
|
545
|
+
// https://github.com/angular/angular/issues/14935 or https://github.com/angular/angular/issues/15998
|
|
546
|
+
// are fixed
|
|
547
|
+
// This is for non-ivy implementations
|
|
548
|
+
if (injector.view) {
|
|
549
|
+
this._model = injector.view.context.clrModel;
|
|
550
|
+
}
|
|
551
|
+
else {
|
|
552
|
+
// Ivy puts this on a specific index of a _lView property
|
|
553
|
+
this._model = injector._lView[LVIEW_CONTEXT_INDEX].clrModel;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
// Force cast for now, not sure how to tie the correct type here to featuresService.recursion
|
|
558
|
+
this._model = new DeclarativeTreeNodeModel(parent ? parent._model : null);
|
|
559
|
+
}
|
|
560
|
+
this._model.nodeId = this.nodeId;
|
|
561
|
+
}
|
|
562
|
+
get disabled() {
|
|
563
|
+
return this._model.disabled;
|
|
564
|
+
}
|
|
565
|
+
set disabled(value) {
|
|
566
|
+
this._model.disabled = value;
|
|
567
|
+
}
|
|
568
|
+
get selected() {
|
|
569
|
+
return this._model.selected.value;
|
|
570
|
+
}
|
|
571
|
+
set selected(value) {
|
|
572
|
+
this.featuresService.selectable = true;
|
|
573
|
+
// Gracefully handle falsy states like null or undefined because it's just easier than answering questions.
|
|
574
|
+
// This shouldn't happen with strict typing on the app's side, but it's not up to us.
|
|
575
|
+
if (value === null || typeof value === 'undefined') {
|
|
576
|
+
value = ClrSelectedState.UNSELECTED;
|
|
577
|
+
}
|
|
578
|
+
// We match booleans to the corresponding ClrSelectedState
|
|
579
|
+
if (typeof value === 'boolean') {
|
|
580
|
+
value = value ? ClrSelectedState.SELECTED : ClrSelectedState.UNSELECTED;
|
|
581
|
+
}
|
|
582
|
+
// We propagate only if the tree is in smart mode, and skip emitting the output when we set the input
|
|
583
|
+
// See https://github.com/vmware/clarity/issues/3073
|
|
584
|
+
this.skipEmitChange = true;
|
|
585
|
+
this._model.setSelected(value, this.featuresService.eager, this.featuresService.eager);
|
|
586
|
+
this.skipEmitChange = false;
|
|
587
|
+
}
|
|
588
|
+
// I'm caving on this, for tree nodes I think we can tolerate having a two-way binding on the component
|
|
589
|
+
// rather than enforce the clrIfExpanded structural directive for dynamic cases. Mostly because for the smart
|
|
590
|
+
// case, you can't use a structural directive, it would need to go on an ng-container.
|
|
591
|
+
get expanded() {
|
|
592
|
+
return this.expandService.expanded;
|
|
593
|
+
}
|
|
594
|
+
set expanded(value) {
|
|
595
|
+
this.expandService.expanded = value;
|
|
596
|
+
}
|
|
597
|
+
set clrForTypeAhead(value) {
|
|
598
|
+
this._model.textContent = trimAndLowerCase(value || this.elementRef.nativeElement.textContent);
|
|
599
|
+
}
|
|
600
|
+
get ariaSelected() {
|
|
601
|
+
if (this.isSelectable()) {
|
|
602
|
+
return this._model.selected.value === ClrSelectedState.SELECTED;
|
|
603
|
+
}
|
|
604
|
+
else if (this.treeNodeLink?.active) {
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
return null;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
get treeNodeLink() {
|
|
612
|
+
return this.treeNodeLinkList && this.treeNodeLinkList.first;
|
|
613
|
+
}
|
|
614
|
+
get isParent() {
|
|
615
|
+
return this._model.children && this._model.children.length > 0;
|
|
616
|
+
}
|
|
617
|
+
ngOnInit() {
|
|
618
|
+
this._model.expanded = this.expanded;
|
|
619
|
+
this._model.disabled = this.disabled;
|
|
620
|
+
this.subscriptions.push(this._model.selected.pipe(filter(() => !this.skipEmitChange)).subscribe(value => {
|
|
621
|
+
this.selectedChange.emit(value);
|
|
622
|
+
}));
|
|
623
|
+
this.subscriptions.push(this.expandService.expandChange.subscribe(value => {
|
|
624
|
+
this.expandedChange.emit(value);
|
|
625
|
+
this._model.expanded = value;
|
|
626
|
+
}));
|
|
627
|
+
this.subscriptions.push(this.focusManager.focusRequest.subscribe(nodeId => {
|
|
628
|
+
if (this.nodeId === nodeId) {
|
|
629
|
+
this.focusTreeNode();
|
|
630
|
+
}
|
|
631
|
+
}), this.focusManager.focusChange.subscribe(nodeId => {
|
|
632
|
+
this.checkTabIndex(nodeId);
|
|
633
|
+
}));
|
|
634
|
+
this.subscriptions.push(this._model.loading$.pipe(debounceTime(0)).subscribe(isLoading => (this.isModelLoading = isLoading)));
|
|
635
|
+
}
|
|
636
|
+
ngAfterContentInit() {
|
|
637
|
+
this.subscriptions.push(this.typeAheadKeyEvent.pipe(debounceTime(TREE_TYPE_AHEAD_TIMEOUT)).subscribe((bufferedKeys) => {
|
|
638
|
+
this.focusManager.focusNodeStartsWith(bufferedKeys, this._model);
|
|
639
|
+
// reset once bufferedKeys are used
|
|
640
|
+
this.typeAheadKeyBuffer = '';
|
|
641
|
+
}));
|
|
642
|
+
}
|
|
643
|
+
ngAfterViewInit() {
|
|
644
|
+
if (!this._model.textContent) {
|
|
645
|
+
this._model.textContent = trimAndLowerCase(this.elementRef.nativeElement.textContent);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
ngOnDestroy() {
|
|
649
|
+
this._model.destroy();
|
|
650
|
+
this.subscriptions.forEach(sub => sub.unsubscribe());
|
|
651
|
+
}
|
|
652
|
+
isExpandable() {
|
|
653
|
+
if (typeof this.expandable !== 'undefined') {
|
|
654
|
+
return this.expandable;
|
|
655
|
+
}
|
|
656
|
+
return !!this.expandService.expandable || this.isParent;
|
|
657
|
+
}
|
|
658
|
+
isSelectable() {
|
|
659
|
+
return this.featuresService.selectable;
|
|
660
|
+
}
|
|
661
|
+
focusTreeNode() {
|
|
662
|
+
const containerEl = this.contentContainer.nativeElement;
|
|
663
|
+
if (isPlatformBrowser(this.platformId) && document.activeElement !== containerEl) {
|
|
664
|
+
this.setTabIndex(0);
|
|
665
|
+
containerEl.focus();
|
|
666
|
+
containerEl.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
broadcastFocusOnContainer() {
|
|
670
|
+
this.focusManager.broadcastFocusedNode(this.nodeId);
|
|
671
|
+
}
|
|
672
|
+
onKeyDown(event) {
|
|
673
|
+
// Two reasons to prevent default behavior:
|
|
674
|
+
// 1. to prevent scrolling on arrow keys
|
|
675
|
+
// 2. Assistive Technology focus differs from Keyboard focus behavior.
|
|
676
|
+
// By default, pressing arrow key makes AT focus go into the nested content of the item.
|
|
677
|
+
preventArrowKeyScroll(event);
|
|
678
|
+
// https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard-interaction-22
|
|
679
|
+
switch (event.key) {
|
|
680
|
+
case Keys.ArrowUp:
|
|
681
|
+
this.focusManager.focusNodeAbove(this._model);
|
|
682
|
+
break;
|
|
683
|
+
case Keys.ArrowDown:
|
|
684
|
+
this.focusManager.focusNodeBelow(this._model);
|
|
685
|
+
break;
|
|
686
|
+
case Keys.ArrowRight:
|
|
687
|
+
this.expandOrFocusFirstChild();
|
|
688
|
+
break;
|
|
689
|
+
case Keys.ArrowLeft:
|
|
690
|
+
this.collapseOrFocusParent();
|
|
691
|
+
break;
|
|
692
|
+
case Keys.Home:
|
|
693
|
+
event.preventDefault();
|
|
694
|
+
this.focusManager.focusFirstVisibleNode();
|
|
695
|
+
break;
|
|
696
|
+
case Keys.End:
|
|
697
|
+
event.preventDefault();
|
|
698
|
+
this.focusManager.focusLastVisibleNode();
|
|
699
|
+
break;
|
|
700
|
+
case Keys.Enter:
|
|
701
|
+
this.toggleExpandOrTriggerDefault();
|
|
702
|
+
break;
|
|
703
|
+
case Keys.Space:
|
|
704
|
+
case Keys.Spacebar:
|
|
705
|
+
// to prevent scrolling on space key in this specific case
|
|
706
|
+
event.preventDefault();
|
|
707
|
+
this.toggleExpandOrTriggerDefault();
|
|
708
|
+
break;
|
|
709
|
+
default:
|
|
710
|
+
if (this._model.textContent && isKeyEitherLetterOrNumber(event)) {
|
|
711
|
+
this.typeAheadKeyBuffer += event.key;
|
|
712
|
+
this.typeAheadKeyEvent.next(this.typeAheadKeyBuffer);
|
|
713
|
+
return;
|
|
714
|
+
}
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
// if non-letter keys are pressed, do reset.
|
|
718
|
+
this.typeAheadKeyBuffer = '';
|
|
719
|
+
}
|
|
720
|
+
setTabIndex(value) {
|
|
721
|
+
this.contentContainerTabindex = value;
|
|
722
|
+
this.contentContainer.nativeElement.setAttribute('tabindex', value.toString());
|
|
723
|
+
}
|
|
724
|
+
checkTabIndex(nodeId) {
|
|
725
|
+
if (isPlatformBrowser(this.platformId) && this.nodeId !== nodeId && this.contentContainerTabindex !== -1) {
|
|
726
|
+
this.setTabIndex(-1);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
toggleExpandOrTriggerDefault() {
|
|
730
|
+
if (this.disabled) {
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
if (this.isExpandable() && !this.isSelectable()) {
|
|
734
|
+
this.expandService.expanded = !this.expanded;
|
|
735
|
+
}
|
|
736
|
+
else {
|
|
737
|
+
this.triggerDefaultAction();
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
expandOrFocusFirstChild() {
|
|
741
|
+
if (this.disabled) {
|
|
742
|
+
return;
|
|
743
|
+
}
|
|
744
|
+
if (this.expanded) {
|
|
745
|
+
// if the node is already expanded and has children, focus its very first child
|
|
746
|
+
if (this.isParent) {
|
|
747
|
+
this.focusManager.focusNodeBelow(this._model);
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
// we must check if the node is expandable, in order to set .expanded to true from false
|
|
752
|
+
// because we shouldn't set .expanded to true if it's not expandable node
|
|
753
|
+
if (this.isExpandable()) {
|
|
754
|
+
this.expandService.expanded = true;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
collapseOrFocusParent() {
|
|
759
|
+
if (this.disabled) {
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
if (this.expanded) {
|
|
763
|
+
this.expandService.expanded = false;
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
this.focusManager.focusParent(this._model);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
triggerDefaultAction() {
|
|
770
|
+
if (this.treeNodeLink) {
|
|
771
|
+
this.treeNodeLink.activate();
|
|
772
|
+
}
|
|
773
|
+
else {
|
|
774
|
+
if (this.isSelectable()) {
|
|
775
|
+
this._model.toggleSelection(this.featuresService.eager);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeNode, deps: [{ token: PLATFORM_ID }, { token: ClrTreeNode, optional: true, skipSelf: true }, { token: TreeFeaturesService }, { token: i2.IfExpandService }, { token: i2.ClrCommonStringsService }, { token: TreeFocusManagerService }, { token: i0.ElementRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
780
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: ClrTreeNode, isStandalone: false, selector: "clr-tree-node", inputs: { expandable: ["clrExpandable", "expandable"], disabled: ["clrDisabled", "disabled"], selected: ["clrSelected", "selected"], expanded: ["clrExpanded", "expanded"], clrForTypeAhead: "clrForTypeAhead" }, outputs: { selectedChange: "clrSelectedChange", expandedChange: "clrExpandedChange" }, host: { properties: { "class.clr-tree-node": "true", "class.disabled": "this._model.disabled" } }, providers: [TREE_FEATURES_PROVIDER, IfExpandService, { provide: LoadingListener, useExisting: IfExpandService }], queries: [{ propertyName: "treeNodeLinkList", predicate: ClrTreeNodeLink }], viewQueries: [{ propertyName: "contentContainer", first: true, predicate: ["contentContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<!--\n ~ Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n -->\n\n<div\n #contentContainer\n role=\"treeitem\"\n class=\"clr-tree-node-content-container\"\n tabindex=\"-1\"\n [class.clr-form-control-disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-expanded]=\"isExpandable() ? expanded : null\"\n [attr.aria-selected]=\"ariaSelected\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"broadcastFocusOnContainer()\"\n>\n @if (isExpandable() && !isModelLoading && !expandService.loading) {\n <button\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n class=\"clr-treenode-caret\"\n (click)=\"expandService.toggle();\"\n (focus)=\"focusTreeNode()\"\n [disabled]=\"disabled\"\n >\n <cds-icon\n class=\"clr-treenode-caret-icon\"\n shape=\"angle\"\n [direction]=\"expandService.expanded ? 'down' : 'right'\"\n ></cds-icon>\n </button>\n } @if (expandService.loading || isModelLoading) {\n <div class=\"clr-treenode-spinner-container\">\n <span class=\"clr-treenode-spinner spinner\"></span>\n </div>\n } @if (featuresService.selectable) {\n <div class=\"clr-checkbox-wrapper clr-treenode-checkbox\">\n <input\n aria-hidden=\"true\"\n type=\"checkbox\"\n [id]=\"nodeId + '-check'\"\n class=\"clr-checkbox\"\n [disabled]=\"disabled\"\n [checked]=\"_model.selected.value === STATES.SELECTED\"\n [indeterminate]=\"_model.selected.value === STATES.INDETERMINATE\"\n (change)=\"_model.toggleSelection(featuresService.eager)\"\n (focus)=\"focusTreeNode()\"\n tabindex=\"-1\"\n />\n <label [for]=\"nodeId + '-check'\" class=\"clr-control-label\">\n <ng-container [ngTemplateOutlet]=\"treenodeContent\"></ng-container>\n </label>\n </div>\n } @if (!featuresService.selectable) {\n <div class=\"clr-treenode-content\" (mouseup)=\"focusTreeNode()\">\n <ng-container [ngTemplateOutlet]=\"treenodeContent\"></ng-container>\n </div>\n }\n\n <ng-template #treenodeContent>\n <ng-content></ng-content>\n @if (featuresService.selectable || ariaSelected) {\n <div class=\"clr-sr-only\">\n <span> {{ariaSelected ? commonStrings.keys.selectedTreeNode : commonStrings.keys.unselectedTreeNode}}</span>\n </div>\n }\n </ng-template>\n</div>\n<div\n class=\"clr-treenode-children\"\n [@toggleChildrenAnim]=\"expandService.expanded ? 'expanded' : 'collapsed'\"\n [attr.role]=\"isExpandable() && !featuresService.recursion ? 'group' : null\"\n>\n <ng-content select=\"clr-tree-node\"></ng-content>\n <ng-content select=\"[clrIfExpanded]\"></ng-content>\n <clr-recursive-children [parent]=\"_model\"></clr-recursive-children>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i5.ClrIcon, selector: "clr-icon, cds-icon", inputs: ["shape", "size", "direction", "flip", "solid", "status", "inverse", "badge"] }, { kind: "component", type: RecursiveChildren, selector: "clr-recursive-children", inputs: ["parent", "children"] }], animations: [
|
|
781
|
+
trigger('toggleChildrenAnim', [
|
|
782
|
+
transition('collapsed => expanded', [style({ height: 0 }), animate(200, style({ height: '*' }))]),
|
|
783
|
+
transition('expanded => collapsed', [style({ height: '*' }), animate(200, style({ height: 0 }))]),
|
|
784
|
+
state('expanded', style({ height: '*', 'overflow-y': 'visible' })),
|
|
785
|
+
state('collapsed', style({ height: 0 })),
|
|
786
|
+
]),
|
|
787
|
+
] }); }
|
|
788
|
+
}
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeNode, decorators: [{
|
|
790
|
+
type: Component,
|
|
791
|
+
args: [{ selector: 'clr-tree-node', providers: [TREE_FEATURES_PROVIDER, IfExpandService, { provide: LoadingListener, useExisting: IfExpandService }], animations: [
|
|
792
|
+
trigger('toggleChildrenAnim', [
|
|
793
|
+
transition('collapsed => expanded', [style({ height: 0 }), animate(200, style({ height: '*' }))]),
|
|
794
|
+
transition('expanded => collapsed', [style({ height: '*' }), animate(200, style({ height: 0 }))]),
|
|
795
|
+
state('expanded', style({ height: '*', 'overflow-y': 'visible' })),
|
|
796
|
+
state('collapsed', style({ height: 0 })),
|
|
797
|
+
]),
|
|
798
|
+
], host: {
|
|
799
|
+
'[class.clr-tree-node]': 'true',
|
|
800
|
+
'[class.disabled]': 'this._model.disabled',
|
|
801
|
+
}, standalone: false, template: "<!--\n ~ Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n ~ The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n ~ This software is released under MIT license.\n ~ The full license information can be found in LICENSE in the root directory of this project.\n -->\n\n<div\n #contentContainer\n role=\"treeitem\"\n class=\"clr-tree-node-content-container\"\n tabindex=\"-1\"\n [class.clr-form-control-disabled]=\"disabled\"\n [attr.aria-disabled]=\"disabled\"\n [attr.aria-expanded]=\"isExpandable() ? expanded : null\"\n [attr.aria-selected]=\"ariaSelected\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"broadcastFocusOnContainer()\"\n>\n @if (isExpandable() && !isModelLoading && !expandService.loading) {\n <button\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n class=\"clr-treenode-caret\"\n (click)=\"expandService.toggle();\"\n (focus)=\"focusTreeNode()\"\n [disabled]=\"disabled\"\n >\n <cds-icon\n class=\"clr-treenode-caret-icon\"\n shape=\"angle\"\n [direction]=\"expandService.expanded ? 'down' : 'right'\"\n ></cds-icon>\n </button>\n } @if (expandService.loading || isModelLoading) {\n <div class=\"clr-treenode-spinner-container\">\n <span class=\"clr-treenode-spinner spinner\"></span>\n </div>\n } @if (featuresService.selectable) {\n <div class=\"clr-checkbox-wrapper clr-treenode-checkbox\">\n <input\n aria-hidden=\"true\"\n type=\"checkbox\"\n [id]=\"nodeId + '-check'\"\n class=\"clr-checkbox\"\n [disabled]=\"disabled\"\n [checked]=\"_model.selected.value === STATES.SELECTED\"\n [indeterminate]=\"_model.selected.value === STATES.INDETERMINATE\"\n (change)=\"_model.toggleSelection(featuresService.eager)\"\n (focus)=\"focusTreeNode()\"\n tabindex=\"-1\"\n />\n <label [for]=\"nodeId + '-check'\" class=\"clr-control-label\">\n <ng-container [ngTemplateOutlet]=\"treenodeContent\"></ng-container>\n </label>\n </div>\n } @if (!featuresService.selectable) {\n <div class=\"clr-treenode-content\" (mouseup)=\"focusTreeNode()\">\n <ng-container [ngTemplateOutlet]=\"treenodeContent\"></ng-container>\n </div>\n }\n\n <ng-template #treenodeContent>\n <ng-content></ng-content>\n @if (featuresService.selectable || ariaSelected) {\n <div class=\"clr-sr-only\">\n <span> {{ariaSelected ? commonStrings.keys.selectedTreeNode : commonStrings.keys.unselectedTreeNode}}</span>\n </div>\n }\n </ng-template>\n</div>\n<div\n class=\"clr-treenode-children\"\n [@toggleChildrenAnim]=\"expandService.expanded ? 'expanded' : 'collapsed'\"\n [attr.role]=\"isExpandable() && !featuresService.recursion ? 'group' : null\"\n>\n <ng-content select=\"clr-tree-node\"></ng-content>\n <ng-content select=\"[clrIfExpanded]\"></ng-content>\n <clr-recursive-children [parent]=\"_model\"></clr-recursive-children>\n</div>\n" }]
|
|
802
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
803
|
+
type: Inject,
|
|
804
|
+
args: [PLATFORM_ID]
|
|
805
|
+
}] }, { type: ClrTreeNode, decorators: [{
|
|
806
|
+
type: Optional
|
|
807
|
+
}, {
|
|
808
|
+
type: SkipSelf
|
|
809
|
+
}] }, { type: TreeFeaturesService }, { type: i2.IfExpandService }, { type: i2.ClrCommonStringsService }, { type: TreeFocusManagerService }, { type: i0.ElementRef }, { type: i0.Injector }], propDecorators: { expandable: [{
|
|
810
|
+
type: Input,
|
|
811
|
+
args: ['clrExpandable']
|
|
812
|
+
}], selectedChange: [{
|
|
813
|
+
type: Output,
|
|
814
|
+
args: ['clrSelectedChange']
|
|
815
|
+
}], expandedChange: [{
|
|
816
|
+
type: Output,
|
|
817
|
+
args: ['clrExpandedChange']
|
|
818
|
+
}], contentContainer: [{
|
|
819
|
+
type: ViewChild,
|
|
820
|
+
args: ['contentContainer', { read: ElementRef, static: true }]
|
|
821
|
+
}], treeNodeLinkList: [{
|
|
822
|
+
type: ContentChildren,
|
|
823
|
+
args: [ClrTreeNodeLink, { descendants: false }]
|
|
824
|
+
}], disabled: [{
|
|
825
|
+
type: Input,
|
|
826
|
+
args: ['clrDisabled']
|
|
827
|
+
}], selected: [{
|
|
828
|
+
type: Input,
|
|
829
|
+
args: ['clrSelected']
|
|
830
|
+
}], expanded: [{
|
|
831
|
+
type: Input,
|
|
832
|
+
args: ['clrExpanded']
|
|
833
|
+
}], clrForTypeAhead: [{
|
|
834
|
+
type: Input,
|
|
835
|
+
args: ['clrForTypeAhead']
|
|
836
|
+
}] } });
|
|
837
|
+
function trimAndLowerCase(value) {
|
|
838
|
+
return value.toLocaleLowerCase().trim();
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/*
|
|
842
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
843
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
844
|
+
* This software is released under MIT license.
|
|
845
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
846
|
+
*/
|
|
847
|
+
class ClrTree {
|
|
848
|
+
constructor(featuresService, focusManagerService, renderer, el, ngZone) {
|
|
849
|
+
this.featuresService = featuresService;
|
|
850
|
+
this.focusManagerService = focusManagerService;
|
|
851
|
+
this.renderer = renderer;
|
|
852
|
+
this.el = el;
|
|
853
|
+
this.subscriptions = [];
|
|
854
|
+
this._isMultiSelectable = false;
|
|
855
|
+
const subscription = ngZone.runOutsideAngular(() => fromEvent(el.nativeElement, 'focusin').subscribe((event) => {
|
|
856
|
+
if (event.target === el.nativeElement) {
|
|
857
|
+
// After discussing with the team, I've made it so that when the tree receives focus, the first visible node will be focused.
|
|
858
|
+
// This will prevent from the page scrolling abruptly to the first selected node if it exist in a deeply nested tree.
|
|
859
|
+
focusManagerService.focusFirstVisibleNode();
|
|
860
|
+
// when the first child gets focus,
|
|
861
|
+
// tree should no longer have tabindex of 0.
|
|
862
|
+
renderer.removeAttribute(el.nativeElement, 'tabindex');
|
|
863
|
+
}
|
|
864
|
+
}));
|
|
865
|
+
this.subscriptions.push(subscription);
|
|
866
|
+
}
|
|
867
|
+
set lazy(value) {
|
|
868
|
+
this.featuresService.eager = !value;
|
|
869
|
+
}
|
|
870
|
+
get isMultiSelectable() {
|
|
871
|
+
return this._isMultiSelectable;
|
|
872
|
+
}
|
|
873
|
+
ngAfterContentInit() {
|
|
874
|
+
this.setRootNodes();
|
|
875
|
+
this.subscriptions.push(this.rootNodes.changes.subscribe(() => {
|
|
876
|
+
this.setMultiSelectable();
|
|
877
|
+
this.setRootNodes();
|
|
878
|
+
}));
|
|
879
|
+
}
|
|
880
|
+
ngOnDestroy() {
|
|
881
|
+
this.subscriptions.forEach(sub => sub.unsubscribe());
|
|
882
|
+
}
|
|
883
|
+
setMultiSelectable() {
|
|
884
|
+
if (this.featuresService.selectable && this.rootNodes.length > 0) {
|
|
885
|
+
this._isMultiSelectable = true;
|
|
886
|
+
this.renderer.setAttribute(this.el.nativeElement, 'aria-multiselectable', 'true');
|
|
887
|
+
}
|
|
888
|
+
else {
|
|
889
|
+
this._isMultiSelectable = false;
|
|
890
|
+
this.renderer.removeAttribute(this.el.nativeElement, 'aria-multiselectable');
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
setRootNodes() {
|
|
894
|
+
// if node has no parent, it's a root node
|
|
895
|
+
// for recursive tree, this.rootNodes registers also nested children
|
|
896
|
+
// so we have to use filter to extract the ones that are truly root nodes
|
|
897
|
+
this.focusManagerService.rootNodeModels = this.rootNodes.map(node => node._model).filter(node => !node.parent);
|
|
898
|
+
}
|
|
899
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTree, deps: [{ token: TreeFeaturesService }, { token: TreeFocusManagerService }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
900
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: ClrTree, isStandalone: false, selector: "clr-tree", inputs: { lazy: ["clrLazy", "lazy"] }, host: { attributes: { "tabindex": "0" }, properties: { "attr.role": "\"tree\"" } }, providers: [TREE_FEATURES_PROVIDER, TreeFocusManagerService], queries: [{ propertyName: "rootNodes", predicate: ClrTreeNode }], ngImport: i0, template: `
|
|
901
|
+
<ng-content></ng-content>
|
|
902
|
+
@if (featuresService.recursion) {
|
|
903
|
+
<clr-recursive-children [children]="featuresService.recursion.root"></clr-recursive-children>
|
|
904
|
+
}
|
|
905
|
+
`, isInline: true, dependencies: [{ kind: "component", type: RecursiveChildren, selector: "clr-recursive-children", inputs: ["parent", "children"] }] }); }
|
|
906
|
+
}
|
|
907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTree, decorators: [{
|
|
908
|
+
type: Component,
|
|
909
|
+
args: [{
|
|
910
|
+
selector: 'clr-tree',
|
|
911
|
+
template: `
|
|
912
|
+
<ng-content></ng-content>
|
|
913
|
+
@if (featuresService.recursion) {
|
|
914
|
+
<clr-recursive-children [children]="featuresService.recursion.root"></clr-recursive-children>
|
|
915
|
+
}
|
|
916
|
+
`,
|
|
917
|
+
providers: [TREE_FEATURES_PROVIDER, TreeFocusManagerService],
|
|
918
|
+
host: {
|
|
919
|
+
tabindex: '0',
|
|
920
|
+
'[attr.role]': '"tree"',
|
|
921
|
+
},
|
|
922
|
+
standalone: false,
|
|
923
|
+
}]
|
|
924
|
+
}], ctorParameters: () => [{ type: TreeFeaturesService }, { type: TreeFocusManagerService }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { rootNodes: [{
|
|
925
|
+
type: ContentChildren,
|
|
926
|
+
args: [ClrTreeNode]
|
|
927
|
+
}], lazy: [{
|
|
928
|
+
type: Input,
|
|
929
|
+
args: ['clrLazy']
|
|
930
|
+
}] } });
|
|
931
|
+
|
|
932
|
+
/*
|
|
933
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
934
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
935
|
+
* This software is released under MIT license.
|
|
936
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
937
|
+
*/
|
|
938
|
+
function isPromise(o) {
|
|
939
|
+
// Shamelessly copied from every open-source project out there.
|
|
940
|
+
return o && typeof o.then === 'function';
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
/*
|
|
944
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
945
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
946
|
+
* This software is released under MIT license.
|
|
947
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
948
|
+
*/
|
|
949
|
+
/*
|
|
950
|
+
* A recursive model is built received from the app and traversed to create the corresponding components.
|
|
951
|
+
* Recursive = Model dictates the tree node components
|
|
952
|
+
*/
|
|
953
|
+
class RecursiveTreeNodeModel extends TreeNodeModel {
|
|
954
|
+
constructor(model, parent, getChildren, featuresService) {
|
|
955
|
+
super();
|
|
956
|
+
this.getChildren = getChildren;
|
|
957
|
+
this.featuresService = featuresService;
|
|
958
|
+
this.childrenFetched = false;
|
|
959
|
+
this._children = [];
|
|
960
|
+
this.model = model;
|
|
961
|
+
this.parent = parent;
|
|
962
|
+
}
|
|
963
|
+
get children() {
|
|
964
|
+
this.fetchChildren();
|
|
965
|
+
return this._children;
|
|
966
|
+
}
|
|
967
|
+
set children(value) {
|
|
968
|
+
this._children = value;
|
|
969
|
+
}
|
|
970
|
+
destroy() {
|
|
971
|
+
if (this.subscription) {
|
|
972
|
+
this.subscription.unsubscribe();
|
|
973
|
+
}
|
|
974
|
+
super.destroy();
|
|
975
|
+
}
|
|
976
|
+
clearChildren() {
|
|
977
|
+
this._children.forEach(child => child.destroy());
|
|
978
|
+
delete this._children;
|
|
979
|
+
this.childrenFetched = false;
|
|
980
|
+
}
|
|
981
|
+
fetchChildren() {
|
|
982
|
+
if (this.childrenFetched) {
|
|
983
|
+
return;
|
|
984
|
+
}
|
|
985
|
+
const asyncChildren = this.getChildren(this.model);
|
|
986
|
+
if (isPromise(asyncChildren)) {
|
|
987
|
+
this.loading = true;
|
|
988
|
+
asyncChildren.then(raw => {
|
|
989
|
+
this._children = this.wrapChildren(raw);
|
|
990
|
+
this.loading = false;
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
else if (isObservable(asyncChildren)) {
|
|
994
|
+
this.loading = true;
|
|
995
|
+
this.subscription = asyncChildren.subscribe(raw => {
|
|
996
|
+
this._children = this.wrapChildren(raw);
|
|
997
|
+
this.loading = false;
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
else if (asyncChildren) {
|
|
1001
|
+
// Synchronous case
|
|
1002
|
+
this._children = this.wrapChildren(asyncChildren);
|
|
1003
|
+
}
|
|
1004
|
+
else {
|
|
1005
|
+
this._children = [];
|
|
1006
|
+
}
|
|
1007
|
+
this.childrenFetched = true;
|
|
1008
|
+
if (this.featuresService) {
|
|
1009
|
+
this.featuresService.childrenFetched.next();
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
wrapChildren(rawModels) {
|
|
1013
|
+
return rawModels.map(m => new RecursiveTreeNodeModel(m, this, this.getChildren, this.featuresService));
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/*
|
|
1018
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
1019
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
1020
|
+
* This software is released under MIT license.
|
|
1021
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1022
|
+
*/
|
|
1023
|
+
class ClrRecursiveForOf {
|
|
1024
|
+
constructor(template, featuresService, cdr) {
|
|
1025
|
+
this.template = template;
|
|
1026
|
+
this.featuresService = featuresService;
|
|
1027
|
+
this.cdr = cdr;
|
|
1028
|
+
}
|
|
1029
|
+
// I'm using OnChanges instead of OnInit to easily keep up to date with dynamic trees. Maybe optimizable later.
|
|
1030
|
+
ngOnChanges() {
|
|
1031
|
+
let wrapped;
|
|
1032
|
+
if (Array.isArray(this.nodes)) {
|
|
1033
|
+
wrapped = this.nodes.map(node => new RecursiveTreeNodeModel(node, null, this.getChildren, this.featuresService));
|
|
1034
|
+
}
|
|
1035
|
+
else {
|
|
1036
|
+
wrapped = [new RecursiveTreeNodeModel(this.nodes, null, this.getChildren, this.featuresService)];
|
|
1037
|
+
}
|
|
1038
|
+
if (!this.childrenFetchSubscription) {
|
|
1039
|
+
this.childrenFetchSubscription = this.featuresService.childrenFetched.pipe(debounceTime(0)).subscribe(() => {
|
|
1040
|
+
this.cdr.detectChanges();
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
this.featuresService.recursion = {
|
|
1044
|
+
template: this.template,
|
|
1045
|
+
root: wrapped,
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
ngOnDestroy() {
|
|
1049
|
+
if (this.childrenFetchSubscription) {
|
|
1050
|
+
this.childrenFetchSubscription.unsubscribe();
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrRecursiveForOf, deps: [{ token: i0.TemplateRef }, { token: TreeFeaturesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1054
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ClrRecursiveForOf, isStandalone: false, selector: "[clrRecursiveFor][clrRecursiveForOf]", inputs: { nodes: ["clrRecursiveForOf", "nodes"], getChildren: ["clrRecursiveForGetChildren", "getChildren"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1055
|
+
}
|
|
1056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrRecursiveForOf, decorators: [{
|
|
1057
|
+
type: Directive,
|
|
1058
|
+
args: [{
|
|
1059
|
+
selector: '[clrRecursiveFor][clrRecursiveForOf]',
|
|
1060
|
+
standalone: false,
|
|
1061
|
+
}]
|
|
1062
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: TreeFeaturesService }, { type: i0.ChangeDetectorRef }], propDecorators: { nodes: [{
|
|
1063
|
+
type: Input,
|
|
1064
|
+
args: ['clrRecursiveForOf']
|
|
1065
|
+
}], getChildren: [{
|
|
1066
|
+
type: Input,
|
|
1067
|
+
args: ['clrRecursiveForGetChildren']
|
|
1068
|
+
}] } });
|
|
1069
|
+
|
|
1070
|
+
/*
|
|
1071
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
1072
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
1073
|
+
* This software is released under MIT license.
|
|
1074
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1075
|
+
*/
|
|
1076
|
+
const CLR_TREE_VIEW_DIRECTIVES = [ClrTree, ClrTreeNode, ClrRecursiveForOf, ClrTreeNodeLink];
|
|
1077
|
+
class ClrTreeViewModule {
|
|
1078
|
+
constructor() {
|
|
1079
|
+
ClarityIcons.addIcons(angleIcon);
|
|
1080
|
+
}
|
|
1081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1082
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeViewModule, declarations: [ClrTree, ClrTreeNode, ClrRecursiveForOf, ClrTreeNodeLink, RecursiveChildren], imports: [CommonModule, ClrIcon, ClrLoadingModule], exports: [ClrTree, ClrTreeNode, ClrRecursiveForOf, ClrTreeNodeLink] }); }
|
|
1083
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeViewModule, imports: [CommonModule, ClrIcon, ClrLoadingModule] }); }
|
|
1084
|
+
}
|
|
1085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ClrTreeViewModule, decorators: [{
|
|
1086
|
+
type: NgModule,
|
|
1087
|
+
args: [{
|
|
1088
|
+
imports: [CommonModule, ClrIcon, ClrLoadingModule],
|
|
1089
|
+
declarations: [CLR_TREE_VIEW_DIRECTIVES, RecursiveChildren],
|
|
1090
|
+
exports: [CLR_TREE_VIEW_DIRECTIVES],
|
|
1091
|
+
}]
|
|
1092
|
+
}], ctorParameters: () => [] });
|
|
1093
|
+
|
|
1094
|
+
/*
|
|
1095
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
1096
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
1097
|
+
* This software is released under MIT license.
|
|
1098
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
1099
|
+
*/
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Generated bundle index. Do not edit.
|
|
1103
|
+
*/
|
|
1104
|
+
|
|
1105
|
+
export { CLR_TREE_VIEW_DIRECTIVES, ClrRecursiveForOf, ClrSelectedState, ClrTree, ClrTreeNode, ClrTreeNodeLink, ClrTreeViewModule, DeclarativeTreeNodeModel, RecursiveTreeNodeModel, TreeNodeModel };
|
|
1106
|
+
//# sourceMappingURL=clr-angular-data-tree-view.mjs.map
|