Icard/angular-clarity-master(work.../node_modules/@clr/angular/fesm2020/clr-angular.mjs.map

1 line
1.6 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"file":"clr-angular.mjs","sources":["../../../projects/angular/src/icon/icon.ts","../../../projects/angular/src/icon/icon.module.ts","../../../projects/angular/src/utils/loading/loading-listener.ts","../../../projects/angular/src/utils/loading/loading.ts","../../../projects/angular/src/utils/conditional/if-expanded.service.ts","../../../projects/angular/src/utils/id-generator/id-generator.service.ts","../../../projects/angular/src/accordion/accordion-description.ts","../../../projects/angular/src/accordion/enums/accordion-status.enum.ts","../../../projects/angular/src/utils/animations/constants.ts","../../../projects/angular/src/accordion/utils/animation.ts","../../../projects/angular/src/utils/i18n/common-strings.default.ts","../../../projects/angular/src/utils/i18n/common-strings.service.ts","../../../projects/angular/src/accordion/enums/accordion-strategy.enum.ts","../../../projects/angular/src/accordion/models/accordion.model.ts","../../../projects/angular/src/accordion/providers/accordion.service.ts","../../../projects/angular/src/accordion/accordion-panel.ts","../../../projects/angular/src/accordion/accordion-panel.html","../../../projects/angular/src/accordion/accordion.ts","../../../projects/angular/src/accordion/accordion-content.ts","../../../projects/angular/src/accordion/accordion-title.ts","../../../projects/angular/src/utils/chocolate/willy-wonka.ts","../../../projects/angular/src/utils/chocolate/oompa-loompa.ts","../../../projects/angular/src/accordion/chocolate/accordion-willy-wonka.ts","../../../projects/angular/src/accordion/chocolate/accordion-oompa-loompa.ts","../../../projects/angular/src/accordion/accordion.module.ts","../../../projects/angular/src/utils/forms/validation.ts","../../../projects/angular/src/accordion/stepper/models/stepper.model.ts","../../../projects/angular/src/accordion/stepper/providers/stepper.service.ts","../../../projects/angular/src/accordion/stepper/stepper-panel.ts","../../../projects/angular/src/accordion/stepper/step-button.ts","../../../projects/angular/src/accordion/stepper/stepper.ts","../../../projects/angular/src/accordion/stepper/chocolate/stepper-willy-wonka.ts","../../../projects/angular/src/accordion/stepper/chocolate/stepper-oompa-loompa.ts","../../../projects/angular/src/accordion/stepper/stepper.module.ts","../../../projects/angular/src/utils/enums/keys.enum.ts","../../../projects/angular/src/utils/focus/key-focus/util.ts","../../../projects/angular/src/utils/popover/providers/popover-toggle.service.ts","../../../projects/angular/src/utils/popover/providers/popover-events.service.ts","../../../projects/angular/src/utils/popover/popover-anchor.ts","../../../projects/angular/src/utils/popover/popover-close-button.ts","../../../projects/angular/src/utils/popover/enums/axis.enum.ts","../../../projects/angular/src/utils/popover/enums/alignment.enum.ts","../../../projects/angular/src/utils/popover/enums/viewport-violation.enum.ts","../../../projects/angular/src/utils/popover/position-operators.ts","../../../projects/angular/src/utils/popover/providers/popover-position.service.ts","../../../projects/angular/src/utils/popover/popover-content.ts","../../../projects/angular/src/utils/popover/popover-open-close-button.ts","../../../projects/angular/src/utils/popover/popover.module.ts","../../../projects/angular/src/button/providers/button-in-group.service.ts","../../../projects/angular/src/button/button-group/button.ts","../../../projects/angular/src/utils/destroy/destroy.service.ts","../../../projects/angular/src/utils/focus/arrow-key-direction.enum.ts","../../../projects/angular/src/utils/focus/focus.service.ts","../../../projects/angular/src/utils/popover/enums/side.enum.ts","../../../projects/angular/src/utils/popover/enums/positions.enum.ts","../../../projects/angular/src/popover/common/popover-host-anchor.token.ts","../../../projects/angular/src/utils/popover/stop-escape-propagation.directive.ts","../../../projects/angular/src/utils/popover/popover-host.directive.ts","../../../projects/angular/src/utils/focus/focusable-item/linkers.ts","../../../projects/angular/src/button/providers/button-group-focus.enum.ts","../../../projects/angular/src/utils/animations/collapse/collapse.ts","../../../projects/angular/src/utils/animations/collapse/index.ts","../../../projects/angular/src/utils/dom-adapter/dom-adapter.ts","../../../projects/angular/src/utils/animations/expandable-animation/expandable-animation.ts","../../../projects/angular/src/utils/animations/expandable-animation/index.ts","../../../projects/angular/src/utils/animations/fade/fade.ts","../../../projects/angular/src/utils/animations/fade/index.ts","../../../projects/angular/src/utils/animations/fade-slide/fade-slide.ts","../../../projects/angular/src/utils/animations/fade-slide/index.ts","../../../projects/angular/src/utils/animations/slide/slide.ts","../../../projects/angular/src/utils/animations/slide/index.ts","../../../projects/angular/src/utils/animations/index.ts","../../../projects/angular/src/utils/loading/loading.module.ts","../../../projects/angular/src/utils/loading/index.ts","../../../projects/angular/src/utils/conditional/if-active.service.ts","../../../projects/angular/src/utils/conditional/if-active.directive.ts","../../../projects/angular/src/utils/conditional/if-open.directive.ts","../../../projects/angular/src/utils/conditional/if-expanded.directive.ts","../../../projects/angular/src/utils/conditional/conditional.module.ts","../../../projects/angular/src/utils/conditional/index.ts","../../../projects/angular/src/utils/i18n/common-strings.interface.ts","../../../projects/angular/src/utils/i18n/index.ts","../../../projects/angular/src/utils/popover/interfaces/popover-position.interface.ts","../../../projects/angular/src/utils/popover/index.ts","../../../projects/angular/src/utils/focus/focus-on-view-init/focus-on-view-init.provider.ts","../../../projects/angular/src/utils/focus/focus-on-view-init/focus-on-view-init.ts","../../../projects/angular/src/utils/focus/focus-on-view-init/focus-on-view-init.module.ts","../../../projects/angular/src/utils/focus/focus-on-view-init/index.ts","../../../projects/angular/src/utils/focus/focus-trap/standalone-cdk-trap-focus.directive.ts","../../../projects/angular/src/utils/focus/focus-trap/index.ts","../../../projects/angular/src/utils/destroy/index.ts","../../../projects/angular/src/utils/index.ts","../../../projects/angular/src/button/providers/button-group-focus-handler.service.ts","../../../projects/angular/src/button/button-group/button-group.ts","../../../projects/angular/src/button/button-group/button-group.html","../../../projects/angular/src/button/button-group/button-group.module.ts","../../../projects/angular/src/button/button-loading/loading-button.ts","../../../projects/angular/src/button/button-loading/loading-button.module.ts","../../../projects/angular/src/button/button.module.ts","../../../projects/angular/src/utils/host-wrapping/empty-anchor.ts","../../../projects/angular/src/utils/host-wrapping/host-wrapping.module.ts","../../../projects/angular/src/forms/common/providers/control-id.service.ts","../../../projects/angular/src/forms/common/providers/container-id.service.ts","../../../projects/angular/src/forms/common/abstract-control.ts","../../../projects/angular/src/forms/common/error.ts","../../../projects/angular/src/forms/common/helper.ts","../../../projects/angular/src/forms/common/providers/ng-control.service.ts","../../../projects/angular/src/forms/common/if-control-state/if-control-state.service.ts","../../../projects/angular/src/forms/common/providers/layout.service.ts","../../../projects/angular/src/forms/common/label.ts","../../../projects/angular/src/forms/common/success.ts","../../../projects/angular/src/forms/common/providers/control-class.service.ts","../../../projects/angular/src/forms/common/abstract-container.ts","../../../projects/angular/src/forms/common/control-container.ts","../../../projects/angular/src/utils/host-wrapping/host-wrapper.ts","../../../projects/angular/src/forms/common/providers/mark-control.service.ts","../../../projects/angular/src/forms/common/wrapped-control.ts","../../../projects/angular/src/forms/common/control.ts","../../../projects/angular/src/forms/common/form.ts","../../../projects/angular/src/forms/common/if-control-state/abstract-if-state.ts","../../../projects/angular/src/forms/common/if-control-state/if-error.ts","../../../projects/angular/src/forms/common/if-control-state/if-success.ts","../../../projects/angular/src/forms/common/layout.ts","../../../projects/angular/src/forms/common/common.module.ts","../../../projects/angular/src/forms/checkbox/checkbox-wrapper.ts","../../../projects/angular/src/forms/checkbox/checkbox.ts","../../../projects/angular/src/forms/checkbox/checkbox-container.ts","../../../projects/angular/src/forms/checkbox/checkbox.module.ts","../../../projects/angular/src/utils/component/is-boolean-attribute-set.ts","../../../projects/angular/src/progress/spinner/spinner.ts","../../../projects/angular/src/progress/spinner/spinner.module.ts","../../../projects/angular/src/utils/focus/key-focus/enums/focus-direction.enum.ts","../../../projects/angular/src/utils/focus/key-focus/key-focus-item.ts","../../../projects/angular/src/utils/focus/key-focus/key-focus.ts","../../../projects/angular/src/utils/focus/key-focus/roving-tabindex.ts","../../../projects/angular/src/utils/focus/key-focus/key-focus.module.ts","../../../projects/angular/src/forms/combobox/providers/combobox-container.service.ts","../../../projects/angular/src/forms/combobox/combobox-container.ts","../../../projects/angular/src/forms/combobox/model/multi-select-combobox.model.ts","../../../projects/angular/src/forms/combobox/model/single-select-combobox.model.ts","../../../projects/angular/src/forms/combobox/option-selected.directive.ts","../../../projects/angular/src/utils/focus/focusable-item/focusable-item.ts","../../../projects/angular/src/utils/focus/focusable-item/custom-focusable-item-provider.ts","../../../projects/angular/src/forms/combobox/model/pseudo-focus.model.ts","../../../projects/angular/src/forms/combobox/providers/option-selection.service.ts","../../../projects/angular/src/forms/combobox/providers/combobox-focus-handler.service.ts","../../../projects/angular/src/forms/combobox/option.ts","../../../projects/angular/src/forms/combobox/options.ts","../../../projects/angular/src/forms/combobox/combobox.ts","../../../projects/angular/src/forms/combobox/combobox.html","../../../projects/angular/src/forms/combobox/option-items.directive.ts","../../../projects/angular/src/forms/combobox/combobox.module.ts","../../../projects/angular/src/forms/input/input-container.ts","../../../projects/angular/src/forms/input/input.ts","../../../projects/angular/src/forms/input/input.module.ts","../../../projects/angular/src/forms/datalist/providers/datalist-id.service.ts","../../../projects/angular/src/forms/datalist/datalist.ts","../../../projects/angular/src/forms/common/providers/focus.service.ts","../../../projects/angular/src/forms/datalist/datalist-container.ts","../../../projects/angular/src/forms/datalist/datalist-input.ts","../../../projects/angular/src/forms/datalist/datalist.module.ts","../../../projects/angular/src/utils/cdk/cdk-trap-focus.module.ts","../../../projects/angular/src/forms/datepicker/utils/constants.ts","../../../projects/angular/src/forms/datepicker/utils/date-utils.ts","../../../projects/angular/src/forms/datepicker/model/day-view.model.ts","../../../projects/angular/src/forms/datepicker/model/day.model.ts","../../../projects/angular/src/forms/datepicker/model/calendar-view.model.ts","../../../projects/angular/src/forms/datepicker/providers/locale-helper.service.ts","../../../projects/angular/src/forms/datepicker/model/calendar.model.ts","../../../projects/angular/src/forms/datepicker/providers/date-navigation.service.ts","../../../projects/angular/src/forms/datepicker/providers/datepicker-focus.service.ts","../../../projects/angular/src/forms/datepicker/providers/date-io.service.ts","../../../projects/angular/src/forms/datepicker/providers/date-form-control.service.ts","../../../projects/angular/src/forms/datepicker/day.ts","../../../projects/angular/src/forms/datepicker/calendar.ts","../../../projects/angular/src/forms/datepicker/calendar.html","../../../projects/angular/src/utils/breakpoints/breakpoints.ts","../../../projects/angular/src/forms/datepicker/providers/datepicker-enabled.service.ts","../../../projects/angular/src/forms/datepicker/providers/view-manager.service.ts","../../../projects/angular/src/forms/datepicker/monthpicker.ts","../../../projects/angular/src/forms/datepicker/model/year-range.model.ts","../../../projects/angular/src/forms/datepicker/yearpicker.ts","../../../projects/angular/src/forms/datepicker/daypicker.ts","../../../projects/angular/src/forms/datepicker/daypicker.html","../../../projects/angular/src/forms/datepicker/datepicker-view-manager.ts","../../../projects/angular/src/forms/datepicker/datepicker-view-manager.html","../../../projects/angular/src/forms/datepicker/date-container.ts","../../../projects/angular/src/forms/datepicker/date-input.ts","../../../projects/angular/src/forms/datepicker/date-input.validator.ts","../../../projects/angular/src/forms/datepicker/datepicker.module.ts","../../../projects/angular/src/forms/password/password-container.ts","../../../projects/angular/src/forms/password/password.ts","../../../projects/angular/src/forms/password/password.module.ts","../../../projects/angular/src/forms/radio/radio-wrapper.ts","../../../projects/angular/src/forms/radio/radio.ts","../../../projects/angular/src/forms/radio/radio-container.ts","../../../projects/angular/src/forms/radio/radio.module.ts","../../../projects/angular/src/forms/range/range-container.ts","../../../projects/angular/src/forms/range/range.ts","../../../projects/angular/src/forms/range/range.module.ts","../../../projects/angular/src/forms/select/select-container.ts","../../../projects/angular/src/forms/select/select.ts","../../../projects/angular/src/forms/select/select.module.ts","../../../projects/angular/src/forms/textarea/textarea-container.ts","../../../projects/angular/src/forms/textarea/textarea.ts","../../../projects/angular/src/forms/textarea/textarea.module.ts","../../../projects/angular/src/forms/forms.module.ts","../../../projects/angular/src/utils/animations/expandable-animation/expandable-animation.module.ts","../../../projects/angular/src/utils/cdk/cdk-drag.module.ts","../../../projects/angular/src/utils/outside-click/outside-click.ts","../../../projects/angular/src/utils/outside-click/index.ts","../../../projects/angular/src/utils/outside-click/outside-click.module.ts","../../../projects/angular/src/data/datagrid/providers/custom-filter.ts","../../../projects/angular/src/data/datagrid/providers/state-debouncer.provider.ts","../../../projects/angular/src/data/datagrid/providers/page.ts","../../../projects/angular/src/data/datagrid/providers/filters.ts","../../../projects/angular/src/data/datagrid/utils/datagrid-filter-registrar.ts","../../../projects/angular/src/data/datagrid/datagrid-filter.ts","../../../projects/angular/src/data/datagrid/built-in/nested-property.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-property-numeric-filter.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-numeric-filter.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-property-string-filter.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-string-filter-impl.ts","../../../projects/angular/src/data/datagrid/built-in/filters/datagrid-string-filter.ts","../../../projects/angular/src/data/datagrid/chocolate/datagrid-willy-wonka.ts","../../../projects/angular/src/data/datagrid/providers/row-action-service.ts","../../../projects/angular/src/data/datagrid/chocolate/actionable-oompa-loompa.ts","../../../projects/angular/src/modal/modal-stack.service.ts","../../../projects/angular/src/data/datagrid/providers/detail.service.ts","../../../projects/angular/src/data/datagrid/providers/global-expandable-rows.ts","../../../projects/angular/src/data/datagrid/chocolate/expandable-oompa-loompa.ts","../../../projects/angular/src/data/datagrid/built-in/comparators/datagrid-property-comparator.ts","../../../projects/angular/src/data/datagrid/enums/sort-order.enum.ts","../../../projects/angular/src/data/datagrid/wrapped-column.ts","../../../projects/angular/src/data/datagrid/providers/sort.ts","../../../projects/angular/src/data/datagrid/enums/render-step.enum.ts","../../../projects/angular/src/data/datagrid/render/render-organizer.ts","../../../projects/angular/src/data/datagrid/providers/column-resizer.service.ts","../../../projects/angular/src/data/datagrid/providers/table-size.service.ts","../../../projects/angular/src/data/datagrid/datagrid-column-separator.ts","../../../projects/angular/src/data/datagrid/datagrid-column.ts","../../../projects/angular/src/data/datagrid/providers/items.ts","../../../projects/angular/src/data/datagrid/datagrid-items.ts","../../../projects/angular/src/data/datagrid/datagrid-placeholder.ts","../../../projects/angular/src/popover/signpost/providers/signpost-focus-manager.service.ts","../../../projects/angular/src/popover/signpost/providers/signpost-id.service.ts","../../../projects/angular/src/popover/signpost/signpost-trigger.ts","../../../projects/angular/src/popover/signpost/signpost.ts","../../../projects/angular/src/data/datagrid/wrapped-cell.ts","../../../projects/angular/src/data/datagrid/datagrid-cell.ts","../../../projects/angular/src/data/datagrid/datagrid-if-expanded.service.ts","../../../projects/angular/src/data/datagrid/enums/display-mode.enum.ts","../../../projects/angular/src/data/datagrid/enums/selection-type.ts","../../../projects/angular/src/data/datagrid/wrapped-row.ts","../../../projects/angular/src/data/datagrid/providers/selection.ts","../../../projects/angular/src/data/datagrid/providers/display-mode.service.ts","../../../projects/angular/src/data/datagrid/datagrid-selection-cell.directive.ts","../../../projects/angular/src/data/datagrid/datagrid-row.ts","../../../projects/angular/src/data/datagrid/datagrid-row.html","../../../projects/angular/src/data/datagrid/enums/column-changes.enum.ts","../../../projects/angular/src/data/datagrid/providers/columns.service.ts","../../../projects/angular/src/data/datagrid/providers/state.provider.ts","../../../projects/angular/src/data/datagrid/utils/key-navigation-grid.controller.ts","../../../projects/angular/src/data/datagrid/datagrid.ts","../../../projects/angular/src/data/datagrid/datagrid.html","../../../projects/angular/src/data/datagrid/datagrid-action-bar.ts","../../../projects/angular/src/utils/focus/key-focus/index.ts","../../../projects/angular/src/data/datagrid/datagrid-action-overflow.ts","../../../projects/angular/src/data/datagrid/datagrid-column-toggle-trackby.ts","../../../projects/angular/src/data/datagrid/datagrid-items-trackby.ts","../../../projects/angular/src/data/datagrid/datagrid-column-toggle-button.ts","../../../projects/angular/src/data/datagrid/datagrid-column-toggle.ts","../../../projects/angular/src/data/datagrid/datagrid-detail-header.ts","../../../projects/angular/src/data/datagrid/datagrid-detail.ts","../../../projects/angular/src/data/datagrid/datagrid-detail-body.ts","../../../projects/angular/src/data/datagrid/datagrid-detail-registerer.ts","../../../projects/angular/src/data/datagrid/datagrid-footer.ts","../../../projects/angular/src/data/datagrid/providers/column-state.provider.ts","../../../projects/angular/src/data/datagrid/datagrid-hideable-column.ts","../../../projects/angular/src/data/datagrid/datagrid-if-detail.ts","../../../projects/angular/src/data/datagrid/datagrid-page-size.ts","../../../projects/angular/src/data/datagrid/datagrid-pagination.ts","../../../projects/angular/src/data/datagrid/datagrid-row-detail.ts","../../../projects/angular/src/data/datagrid/render/constants.ts","../../../projects/angular/src/data/datagrid/render/cell-renderer.ts","../../../projects/angular/src/data/datagrid/render/header-renderer.ts","../../../projects/angular/src/data/datagrid/render/noop-dom-adapter.ts","../../../projects/angular/src/data/datagrid/render/row-renderer.ts","../../../projects/angular/src/data/datagrid/render/main-renderer.ts","../../../projects/angular/src/data/datagrid/datagrid.module.ts","../../../projects/angular/src/data/stack-view/stack-view-custom-tags.ts","../../../projects/angular/src/data/stack-view/stack-block.ts","../../../projects/angular/src/data/stack-view/stack-content-input.ts","../../../projects/angular/src/data/stack-view/stack-view.ts","../../../projects/angular/src/data/stack-view/stack-header.ts","../../../projects/angular/src/data/stack-view/stack-view.module.ts","../../../projects/angular/src/data/tree-view/tree-features.service.ts","../../../projects/angular/src/data/tree-view/recursive-children.ts","../../../projects/angular/src/data/tree-view/models/async-array.ts","../../../projects/angular/src/data/tree-view/models/selected-state.enum.ts","../../../projects/angular/src/data/tree-view/models/tree-node.model.ts","../../../projects/angular/src/data/tree-view/models/recursive-tree-node.model.ts","../../../projects/angular/src/data/tree-view/recursive-for-of.ts","../../../projects/angular/src/data/tree-view/tree-focus-manager.service.ts","../../../projects/angular/src/data/tree-view/models/declarative-tree-node.model.ts","../../../projects/angular/src/data/tree-view/tree-node-link.ts","../../../projects/angular/src/data/tree-view/tree-node.ts","../../../projects/angular/src/data/tree-view/tree-node.html","../../../projects/angular/src/data/tree-view/tree.ts","../../../projects/angular/src/data/tree-view/tree-view.module.ts","../../../projects/angular/src/data/data.module.ts","../../../projects/angular/src/utils/focus/wrap-observable.ts","../../../projects/angular/src/popover/dropdown/providers/dropdown-focus-handler.service.ts","../../../projects/angular/src/popover/dropdown/providers/dropdown.service.ts","../../../projects/angular/src/popover/dropdown/dropdown.ts","../../../projects/angular/src/utils/focus/focusable-item/basic-focusable-item.service.ts","../../../projects/angular/src/popover/dropdown/dropdown-item.ts","../../../projects/angular/src/popover/common/popover.ts","../../../projects/angular/src/popover/common/abstract-popover.ts","../../../projects/angular/src/popover/dropdown/dropdown-menu.ts","../../../projects/angular/src/popover/dropdown/dropdown-trigger.ts","../../../projects/angular/src/popover/dropdown/dropdown.module.ts","../../../projects/angular/src/emphasis/alert/utils/alert-types.ts","../../../projects/angular/src/emphasis/alert/providers/icon-and-types.service.ts","../../../projects/angular/src/emphasis/alert/providers/multi-alert.service.ts","../../../projects/angular/src/emphasis/alert/alert.ts","../../../projects/angular/src/emphasis/alert/alert.html","../../../projects/angular/src/emphasis/alert/alert-item.ts","../../../projects/angular/src/emphasis/alert/alert-text.ts","../../../projects/angular/src/emphasis/alert/alerts-pager.ts","../../../projects/angular/src/emphasis/alert/alerts-pager.html","../../../projects/angular/src/emphasis/alert/alerts.ts","../../../projects/angular/src/emphasis/alert/alerts.html","../../../projects/angular/src/emphasis/alert/alert.module.ts","../../../projects/angular/src/emphasis/emphasis.module.ts","../../../projects/angular/src/layout/nav/responsive-nav-codes.ts","../../../projects/angular/src/layout/nav/responsive-nav-control-message.ts","../../../projects/angular/src/layout/nav/providers/responsive-navigation.service.ts","../../../projects/angular/src/layout/main-container/main-container.ts","../../../projects/angular/src/layout/main-container/main-container.module.ts","../../../projects/angular/src/layout/nav/aria-current-link.ts","../../../projects/angular/src/layout/nav/chocolate/main-container-willy-wonka.ts","../../../projects/angular/src/layout/nav/chocolate/nav-detection-oompa-loompa.ts","../../../projects/angular/src/layout/nav/header.ts","../../../projects/angular/src/layout/nav/nav-level.ts","../../../projects/angular/src/layout/nav/navigation.module.ts","../../../projects/angular/src/utils/template-ref/template-ref-container.ts","../../../projects/angular/src/utils/template-ref/index.ts","../../../projects/angular/src/utils/template-ref/template-ref.module.ts","../../../projects/angular/src/layout/tabs/chocolate/tabs-willy-wonka.ts","../../../projects/angular/src/layout/tabs/chocolate/active-oompa-loompa.ts","../../../projects/angular/src/layout/tabs/enums/tabs-layout.enum.ts","../../../projects/angular/src/layout/tabs/providers/tabs.service.ts","../../../projects/angular/src/layout/tabs/tab-content.ts","../../../projects/angular/src/layout/tabs/tabs-id.provider.ts","../../../projects/angular/src/layout/tabs/tab-link.directive.ts","../../../projects/angular/src/layout/tabs/tab.ts","../../../projects/angular/src/layout/tabs/tab-overflow-content.ts","../../../projects/angular/src/layout/tabs/tabs.ts","../../../projects/angular/src/layout/tabs/tabs.module.ts","../../../projects/angular/src/layout/vertical-nav/providers/vertical-nav-group-registration.service.ts","../../../projects/angular/src/layout/vertical-nav/providers/vertical-nav-icon.service.ts","../../../projects/angular/src/layout/vertical-nav/providers/vertical-nav.service.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav.html","../../../projects/angular/src/layout/vertical-nav/providers/vertical-nav-group.service.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav-group.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav-group.html","../../../projects/angular/src/layout/vertical-nav/vertical-nav-group-children.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav-icon.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav-link.ts","../../../projects/angular/src/layout/vertical-nav/vertical-nav.module.ts","../../../projects/angular/src/layout/layout.module.ts","../../../projects/angular/src/utils/scrolling/scrolling-service.ts","../../../projects/angular/src/modal/modal.ts","../../../projects/angular/src/modal/modal.html","../../../projects/angular/src/modal/modal-body.ts","../../../projects/angular/src/modal/modal.module.ts","../../../projects/angular/src/popover/signpost/signpost-positions.ts","../../../projects/angular/src/popover/signpost/signpost-content.ts","../../../projects/angular/src/popover/signpost/signpost.module.ts","../../../projects/angular/src/popover/tooltip/providers/tooltip-id.service.ts","../../../projects/angular/src/popover/tooltip/providers/tooltip-mouse.service.ts","../../../projects/angular/src/popover/tooltip/tooltip.ts","../../../projects/angular/src/utils/assert/assert.helpers.ts","../../../projects/angular/src/popover/tooltip/tooltip-content.ts","../../../projects/angular/src/popover/tooltip/tooltip-trigger.ts","../../../projects/angular/src/popover/tooltip/tooltip.module.ts","../../../projects/angular/src/popover/popover.module.ts","../../../projects/angular/src/progress/progress-bars/progress-bar.ts","../../../projects/angular/src/progress/progress-bars/progress-bar.module.ts","../../../projects/angular/src/timeline/enums/timeline-layout.enum.ts","../../../projects/angular/src/timeline/enums/timeline-step-state.enum.ts","../../../projects/angular/src/timeline/providers/timeline-icon-attribute.service.ts","../../../projects/angular/src/timeline/timeline.ts","../../../projects/angular/src/timeline/timeline-step-title.ts","../../../projects/angular/src/timeline/timeline-step.ts","../../../projects/angular/src/timeline/timeline-step-description.ts","../../../projects/angular/src/timeline/timeline-step-header.ts","../../../projects/angular/src/timeline/timeline.module.ts","../../../projects/angular/src/wizard/providers/button-hub.service.ts","../../../projects/angular/src/wizard/providers/page-collection.service.ts","../../../projects/angular/src/wizard/providers/wizard-navigation.service.ts","../../../projects/angular/src/wizard/providers/header-actions.service.ts","../../../projects/angular/src/wizard/wizard-header-action.ts","../../../projects/angular/src/wizard/wizard-page-buttons.ts","../../../projects/angular/src/wizard/wizard-page-header-actions.ts","../../../projects/angular/src/wizard/wizard-page-navtitle.ts","../../../projects/angular/src/wizard/wizard-page-title.ts","../../../projects/angular/src/wizard/wizard-page.ts","../../../projects/angular/src/wizard/wizard-title.ts","../../../projects/angular/src/wizard/wizard-stepnav-item.ts","../../../projects/angular/src/wizard/wizard-stepnav.ts","../../../projects/angular/src/wizard/wizard.ts","../../../projects/angular/src/wizard/wizard.html","../../../projects/angular/src/wizard/wizard-button.ts","../../../projects/angular/src/wizard/wizard.module.ts","../../../projects/angular/src/clr-angular.module.ts","../../../projects/angular/src/button/button-group/index.ts","../../../projects/angular/src/button/button-loading/index.ts","../../../projects/angular/src/button/index.ts","../../../projects/angular/src/data/datagrid/interfaces/state.interface.ts","../../../projects/angular/src/data/datagrid/interfaces/filter.interface.ts","../../../projects/angular/src/data/datagrid/interfaces/string-filter.interface.ts","../../../projects/angular/src/data/datagrid/interfaces/numeric-filter.interface.ts","../../../projects/angular/src/data/datagrid/interfaces/comparator.interface.ts","../../../projects/angular/src/data/datagrid/index.ts","../../../projects/angular/src/data/tree-view/index.ts","../../../projects/angular/src/data/stack-view/index.ts","../../../projects/angular/src/data/index.ts","../../../projects/angular/src/emphasis/alert/index.ts","../../../projects/angular/src/emphasis/index.ts","../../../projects/angular/src/forms/common/index.ts","../../../projects/angular/src/forms/checkbox/index.ts","../../../projects/angular/src/forms/combobox/index.ts","../../../projects/angular/src/forms/datalist/index.ts","../../../projects/angular/src/forms/datepicker/index.ts","../../../projects/angular/src/forms/input/index.ts","../../../projects/angular/src/forms/password/index.ts","../../../projects/angular/src/forms/radio/index.ts","../../../projects/angular/src/forms/select/index.ts","../../../projects/angular/src/forms/textarea/index.ts","../../../projects/angular/src/forms/range/index.ts","../../../projects/angular/src/forms/index.ts","../../../projects/angular/src/icon/index.ts","../../../projects/angular/src/layout/main-container/index.ts","../../../projects/angular/src/layout/nav/chocolate/index.ts","../../../projects/angular/src/layout/nav/index.ts","../../../projects/angular/src/layout/tabs/index.ts","../../../projects/angular/src/layout/vertical-nav/index.ts","../../../projects/angular/src/layout/index.ts","../../../projects/angular/src/modal/index.ts","../../../projects/angular/src/popover/dropdown/menu-positions.ts","../../../projects/angular/src/popover/dropdown/index.ts","../../../projects/angular/src/popover/signpost/index.ts","../../../projects/angular/src/popover/tooltip/index.ts","../../../projects/angular/src/popover/index.ts","../../../projects/angular/src/wizard/heading-level.ts","../../../projects/angular/src/wizard/index.ts","../../../projects/angular/src/accordion/index.ts","../../../projects/angular/src/accordion/stepper/index.ts","../../../projects/angular/src/progress/spinner/index.ts","../../../projects/angular/src/progress/progress-bars/index.ts","../../../projects/angular/src/timeline/index.ts","../../../projects/angular/src/index.ts","../../../projects/angular/src/clr-angular.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\n@Directive({\n selector: 'clr-icon',\n})\nexport class ClrIconCustomTag {\n // No behavior\n // The only purpose is to \"declare\" the tag in Angular\n}\n\n@Directive({\n selector: 'cds-icon',\n})\nexport class CdsIconCustomTag {\n // No behavior\n // The only purpose is to \"declare\" the tag in Angular\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { CdsIconCustomTag, ClrIconCustomTag } from './icon';\n\nexport const CLR_ICON_DIRECTIVES: Type<any>[] = [ClrIconCustomTag, CdsIconCustomTag];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_ICON_DIRECTIVES],\n exports: [CLR_ICON_DIRECTIVES],\n})\nexport class ClrIconModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrLoadingState } from './loading';\n\n/**\n * This is an abstract class because we need it to still be a valid token for dependency injection after transpiling.\n * This does not mean you should extend it, simply implementing it is fine.\n */\nexport abstract class LoadingListener {\n abstract loadingStateChange(state: ClrLoadingState | string): void;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input, OnDestroy, Optional } from '@angular/core';\n\nimport { LoadingListener } from './loading-listener';\n\nexport enum ClrLoadingState {\n DEFAULT,\n LOADING,\n SUCCESS,\n ERROR,\n}\n\n@Directive({\n selector: '[clrLoading]',\n})\nexport class ClrLoading implements OnDestroy {\n static ngAcceptInputType_loadingState: boolean | ClrLoadingState | null | string;\n\n private _loadingState: ClrLoadingState | string = ClrLoadingState.DEFAULT;\n\n // We find the first parent that handles something loading\n constructor(@Optional() private listener: LoadingListener) {}\n\n @Input('clrLoading')\n get loadingState() {\n return this._loadingState;\n }\n set loadingState(value: boolean | string | ClrLoadingState) {\n if (value === true) {\n value = ClrLoadingState.LOADING;\n } else if (!value) {\n value = ClrLoadingState.DEFAULT;\n }\n\n if (value === this._loadingState) {\n return;\n }\n\n this._loadingState = value;\n if (this.listener) {\n this.listener.loadingStateChange(value);\n }\n }\n\n ngOnDestroy() {\n this.loadingState = ClrLoadingState.DEFAULT;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\nimport { ClrLoadingState } from '../loading/loading';\nimport { LoadingListener } from '../loading/loading-listener';\n\n@Injectable()\nexport class IfExpandService implements LoadingListener {\n expandable = 0;\n\n protected _loading = false;\n protected _expanded = false;\n protected _expandChange = new Subject<boolean>();\n\n get loading(): boolean {\n return this._loading;\n }\n set loading(value: boolean) {\n value = !!value;\n if (value !== this._loading) {\n this._loading = value;\n }\n }\n\n get expanded(): boolean {\n return this._expanded;\n }\n set expanded(value: boolean) {\n value = !!value;\n if (value !== this._expanded) {\n this._expanded = value;\n this._expandChange.next(value);\n }\n }\n\n get expandChange(): Observable<boolean> {\n return this._expandChange.asObservable();\n }\n\n toggle() {\n this.expanded = !this._expanded;\n }\n\n loadingStateChange(state: ClrLoadingState): void {\n switch (state) {\n case ClrLoadingState.LOADING:\n this.loading = true;\n break;\n default:\n this.loading = false;\n break;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nlet NB_INSTANCES = 0;\n\nexport function uniqueIdFactory() {\n return 'clr-id-' + NB_INSTANCES++;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'clr-accordion-description, clr-step-description',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-accordion-description]': 'true' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrAccordionDescription {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum AccordionStatus {\n Inactive = 'inactive',\n Error = 'error',\n Complete = 'complete',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport const defaultAnimationTiming = '0.2s ease-in-out';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, style, transition, trigger } from '@angular/animations';\n\nimport { defaultAnimationTiming } from '../../utils/animations/constants';\n\nexport const panelAnimation = [\n trigger('skipInitialRender', [transition(':enter', [])]),\n trigger('toggle', [\n transition('void => *', [\n style({ display: 'block', height: 0 }),\n animate(defaultAnimationTiming, style({ height: '*' })),\n ]),\n ]),\n];\n\nexport const stepAnimation = [\n trigger('skipInitialRender', [transition(':enter', [])]),\n trigger('toggle', [\n transition('void => *', [\n style({ display: 'block', height: 0 }),\n animate(defaultAnimationTiming, style({ height: '*' })),\n ]),\n transition('* => void', [\n style({ display: 'block' }),\n animate(defaultAnimationTiming, style({ height: 0, display: 'none' })),\n ]),\n ]),\n];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrCommonStrings } from './common-strings.interface';\n\nexport const commonStringsDefault: ClrCommonStrings = {\n open: 'Open',\n close: 'Close',\n show: 'Show',\n hide: 'Hide',\n expand: 'Expand',\n collapse: 'Collapse',\n more: 'More',\n select: 'Select',\n selectAll: 'Select All',\n previous: 'Previous',\n next: 'Next',\n current: 'Jump to current',\n info: 'Info',\n success: 'Success',\n warning: 'Warning',\n danger: 'Error',\n rowActions: 'Available actions',\n pickColumns: 'Manage Columns',\n showColumns: 'Show Columns',\n sortColumn: 'Sort Column',\n firstPage: 'First Page',\n lastPage: 'Last Page',\n nextPage: 'Next Page',\n previousPage: 'Previous Page',\n currentPage: 'Current Page',\n totalPages: 'Total Pages',\n filterItems: 'Filter items',\n minValue: 'Min value',\n maxValue: 'Max value',\n modalContentStart: 'Beginning of Modal Content',\n modalContentEnd: 'End of Modal Content',\n showColumnsMenuDescription: 'Show or hide columns menu',\n allColumnsSelected: 'All columns selected',\n signpostToggle: 'Signpost Toggle',\n signpostClose: 'Signpost Close',\n loading: 'Loading',\n // Datagrid\n detailPaneStart: 'Start of row details',\n detailPaneEnd: 'End of row details',\n singleSelectionAriaLabel: 'Single selection header',\n singleActionableAriaLabel: 'Single actionable header',\n detailExpandableAriaLabel: 'Toggle more row content',\n datagridFilterAriaLabel: 'Toggle {COLUMN} filter',\n datagridFilterDialogAriaLabel: 'Filter dialog',\n columnSeparatorAriaLabel: 'Column resize handle',\n columnSeparatorDescription: 'Use left or right key to resize the column',\n // Alert\n alertCloseButtonAriaLabel: 'Close alert',\n alertNextAlertAriaLabel: 'Next alert message, {CURRENT} of {COUNT}',\n alertPreviousAlertAriaLabel: 'Previous alert message, {CURRENT} of {COUNT}',\n // Date Picker\n datepickerDialogLabel: 'Choose date',\n datepickerToggleChooseDateLabel: 'Choose date',\n datepickerToggleChangeDateLabel: 'Change date, {SELECTED_DATE}',\n datepickerPreviousMonth: 'Previous month',\n datepickerCurrentMonth: 'Current month',\n datepickerNextMonth: 'Next month',\n datepickerPreviousDecade: 'Previous decade',\n datepickerNextDecade: 'Next decade',\n datepickerCurrentDecade: 'Current decade',\n datepickerSelectMonthText: 'Select month, the current month is {CALENDAR_MONTH}',\n datepickerSelectYearText: 'Select year, the current year is {CALENDAR_YEAR}',\n datepickerSelectedLabel: '{FULL_DATE} - Selected',\n // Stack View\n stackViewChanged: 'Value changed.',\n // Responsive Nav\n responsiveNavToggleOpen: 'Open navigation menu',\n responsiveNavToggleClose: 'Close navigation menu',\n responsiveNavOverflowOpen: 'Open navigation overflow menu',\n responsiveNavOverflowClose: 'Close navigation overflow menu',\n //Vertical Nav\n verticalNavToggle: 'Toggle vertical navigation',\n // Timeline steps\n timelineStepNotStarted: 'Not started',\n timelineStepCurrent: 'Current',\n timelineStepSuccess: 'Completed',\n timelineStepError: 'Error',\n timelineStepProcessing: 'In progress',\n // Combobox\n comboboxDelete: 'Delete selected option',\n comboboxSearching: 'Searching for matches for \"{INPUT}\"',\n comboboxSelection: 'Selection',\n comboboxSelected: 'Selected',\n comboboxNoResults: 'No results',\n comboboxOpen: 'Show options',\n // Datagrid expandable rows\n datagridExpandableBeginningOf: 'Beginning of',\n datagridExpandableEndOf: 'End of',\n datagridExpandableRowContent: 'Expandable row content',\n datagridExpandableRowsHelperText: `Screen reader table commands may not work for viewing expanded content, please use your screen reader's browse mode to read the content exposed by this button`,\n // Wizard\n wizardStepSuccess: 'Completed',\n wizardStepError: 'Error',\n wizardStepnavAriaLabel: 'Step navigation',\n\n /**\n * Password Input\n * Screen-reader text for the hide/show password field button\n */\n passwordHide: 'Hide password for {LABEL}',\n passwordShow: 'Show password for {LABEL}',\n\n /**\n * Datagrid footer; sr-only text after the number of selected rows.\n */\n selectedRows: 'Selected rows',\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { commonStringsDefault } from '../../utils/i18n/common-strings.default';\nimport { ClrCommonStrings } from '../../utils/i18n/common-strings.interface';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ClrCommonStringsService {\n private _strings = commonStringsDefault;\n\n /**\n * Access to all of the keys as strings\n */\n get keys(): Readonly<ClrCommonStrings> {\n return this._strings;\n }\n\n /**\n * Allows you to pass in new overrides for localization\n */\n localize(overrides: Partial<ClrCommonStrings>) {\n this._strings = { ...this._strings, ...overrides };\n }\n\n /**\n * Parse a string with a set of tokens to replace\n */\n parse(source: string, tokens: { [key: string]: string } = {}) {\n const names = Object.keys(tokens);\n let output = source;\n if (names.length) {\n names.forEach(name => {\n output = output.replace(`{${name}}`, tokens[name]);\n });\n }\n return output;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum AccordionStrategy {\n Default = 'default', // only one panel at a time\n Multi = 'multi', // can have multiple panels open at a time\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AccordionStatus } from '../enums/accordion-status.enum';\nimport { AccordionStrategy } from '../enums/accordion-strategy.enum';\n\nlet accordionCount = 0;\n\nexport class AccordionPanelModel {\n status = AccordionStatus.Inactive;\n index: number = null;\n disabled = false;\n open = false;\n templateId = `${this.id}-${this.accordionId}`;\n constructor(public id: string, public accordionId: number | string) {}\n}\n\nexport class AccordionModel {\n protected strategy = AccordionStrategy.Default;\n protected accordionCount = accordionCount++;\n protected _panels: { [id: string]: AccordionPanelModel } = {};\n\n get panels(): AccordionPanelModel[] {\n return Object.keys(this._panels).map(id => this._panels[id]);\n }\n\n setStrategy(strategy: AccordionStrategy) {\n this.strategy = strategy;\n }\n\n updatePanelOrder(ids: string[]) {\n ids.forEach((id, index) => (this._panels[id].index = index));\n this.removeOldPanels(ids);\n }\n\n addPanel(id: string, open = false) {\n this._panels[id] = new AccordionPanelModel(id, this.accordionCount);\n this._panels[id].open = open;\n }\n\n togglePanel(panelId: string, open?: boolean) {\n const panelIsOpen = this._panels[panelId].open;\n const newOpenState = open !== undefined ? open : !panelIsOpen;\n if (newOpenState && this.strategy === AccordionStrategy.Default) {\n this.closeAllPanels();\n }\n\n this._panels[panelId].open = newOpenState;\n }\n\n disablePanel(panelId: string, disabled: boolean) {\n this._panels[panelId].disabled = disabled;\n }\n\n private closeAllPanels() {\n this.panels.forEach(panel => (this._panels[panel.id].open = false));\n }\n\n private removeOldPanels(ids: string[]) {\n this.panels\n .filter(panel => ids.find(id => id === panel.id) === undefined)\n .forEach(panel => delete this._panels[panel.id]);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { AccordionStrategy } from '../enums/accordion-strategy.enum';\nimport { AccordionModel, AccordionPanelModel } from '../models/accordion.model';\n\n@Injectable()\nexport class AccordionService {\n protected accordion = new AccordionModel();\n protected readonly _panelsChanges = new BehaviorSubject(this.accordion.panels);\n\n getPanelChanges(panelId: string): Observable<AccordionPanelModel> {\n return this._panelsChanges.pipe(map(panels => panels.find(s => s.id === panelId)));\n }\n\n setStrategy(strategy: AccordionStrategy) {\n this.accordion.setStrategy(strategy);\n }\n\n addPanel(panelId: string, open = false) {\n this.accordion.addPanel(panelId, open);\n this.emitUpdatedPanels();\n }\n\n togglePanel(panelId: string, open?: boolean) {\n this.accordion.togglePanel(panelId, open);\n this.emitUpdatedPanels();\n }\n\n disablePanel(panelId: string, disabled?: boolean) {\n this.accordion.disablePanel(panelId, disabled);\n this.emitUpdatedPanels();\n }\n\n updatePanelOrder(ids: string[]) {\n this.accordion.updatePanelOrder(ids);\n this.emitUpdatedPanels();\n }\n\n protected emitUpdatedPanels() {\n this._panelsChanges.next(this.accordion.panels);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n HostBinding,\n Input,\n OnChanges,\n OnInit,\n Output,\n QueryList,\n SimpleChanges,\n} from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\nimport { IfExpandService } from '../utils/conditional/if-expanded.service';\nimport { ClrCommonStringsService } from '../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../utils/id-generator/id-generator.service';\nimport { ClrAccordionDescription } from './accordion-description';\nimport { AccordionStatus } from './enums/accordion-status.enum';\nimport { AccordionPanelModel } from './models/accordion.model';\nimport { AccordionService } from './providers/accordion.service';\nimport { panelAnimation } from './utils/animation';\n\n@Component({\n selector: 'clr-accordion-panel',\n templateUrl: './accordion-panel.html',\n host: { '[class.clr-accordion-panel]': 'true' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: panelAnimation,\n providers: [IfExpandService],\n})\nexport class ClrAccordionPanel implements OnInit, OnChanges {\n @Input('clrAccordionPanelDisabled') @HostBinding('class.clr-accordion-panel-disabled') disabled = false;\n @Input('clrAccordionPanelOpen') panelOpen = false;\n\n @Output('clrAccordionPanelOpenChange') panelOpenChange = new EventEmitter<boolean>();\n\n @ContentChildren(ClrAccordionDescription) accordionDescription: QueryList<ClrAccordionDescription>;\n\n readonly AccordionStatus = AccordionStatus;\n\n isAccordion = true;\n panel: Observable<AccordionPanelModel>;\n\n private _id = uniqueIdFactory();\n private _panelIndex: number;\n\n constructor(\n public commonStrings: ClrCommonStringsService,\n private accordionService: AccordionService,\n private ifExpandService: IfExpandService,\n private cdr: ChangeDetectorRef\n ) {}\n\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value;\n }\n\n get panelNumber() {\n return this._panelIndex + 1;\n }\n\n ngOnInit() {\n this.panel = this.accordionService.getPanelChanges(this.id).pipe(tap(panel => this.emitPanelChange(panel)));\n this.accordionService.addPanel(this.id, this.panelOpen);\n this.accordionService.togglePanel(this.id, this.panelOpen);\n this.accordionService.disablePanel(this.id, this.disabled);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this.panel && changes.panelOpen && changes.panelOpen.currentValue !== changes.panelOpen.previousValue) {\n this.accordionService.togglePanel(this.id, changes.panelOpen.currentValue);\n }\n\n if (this.panel && changes.disabled && changes.disabled.currentValue !== changes.disabled.previousValue) {\n this.accordionService.disablePanel(this.id, changes.disabled.currentValue);\n }\n }\n\n togglePanel() {\n this.accordionService.togglePanel(this.id);\n }\n\n collapsePanelOnAnimationDone(panel: AccordionPanelModel) {\n if (!panel.open) {\n this.ifExpandService.expanded = false;\n }\n }\n\n getPanelStateClasses(panel: AccordionPanelModel) {\n return `clr-accordion-panel-${panel.status} ${panel.open ? 'clr-accordion-panel-open' : ''}`;\n }\n\n getAccordionContentId(id: string) {\n return `clr-accordion-content-${id}'`;\n }\n\n getAccordionHeaderId(id: string) {\n return `clr-accordion-header-${id}`;\n }\n\n private emitPanelChange(panel: AccordionPanelModel) {\n if (panel.index !== this._panelIndex) {\n this._panelIndex = panel.index;\n // The whole chain of updates leading to this line starts in a ngAfterViewInit subscription in accordion.ts,\n // listening for DOM changes. It seems to only fails in tests, but as this is not a frequently called code,\n // I prefer to stay on the safe side and initiate a detection cycle here.\n this.cdr.detectChanges();\n }\n\n if (panel.open !== this.panelOpen) {\n this.panelOpenChange.emit(panel.open);\n /**\n * @Note: this line below is needed because we don't want to use another value to track\n * for changes of the panel. Because we use BehaviorSubject this emit event is trigger on\n * init (that is not needed - there is no change of the original value) - in some cases this\n * lead to duplicate events.\n *\n * To prevent this we try to emit only when the value is changed and keep the value in sync\n * even that is used only into the Initial Lifecycle (ngOnInit).\n */\n this.panelOpen = panel.open;\n }\n\n if (panel.open) {\n this.ifExpandService.expanded = true;\n }\n }\n}\n","<ng-container *ngIf=\"panel | async; let panel\">\n <div [ngClass]=\"getPanelStateClasses(panel)\">\n <div class=\"clr-accordion-header\">\n <button\n type=\"button\"\n class=\"clr-accordion-header-button\"\n (click)=\"togglePanel()\"\n [id]=\"getAccordionHeaderId(panel.templateId)\"\n [disabled]=\"isAccordion && panel.disabled\"\n [attr.aria-disabled]=\"!isAccordion && panel.disabled\"\n [attr.aria-controls]=\"getAccordionContentId(panel.templateId)\"\n [attr.aria-expanded]=\"panel.open\"\n [class.clr-accordion-header-has-description]=\"(accordionDescription.changes | async)?.length || accordionDescription.length\"\n #headerButton\n >\n <span class=\"clr-sr-only\">\n <ng-container *ngIf=\"panel.status === AccordionStatus.Error\">{{commonStrings.keys.danger}}</ng-container>\n <ng-container *ngIf=\"panel.status === AccordionStatus.Complete\">{{commonStrings.keys.success}}</ng-container>\n </span>\n <span class=\"clr-accordion-status\">\n <cds-icon shape=\"angle\" direction=\"right\" class=\"clr-accordion-angle\"></cds-icon>\n <span class=\"clr-accordion-number\">{{panelNumber}}.</span>\n <cds-icon status=\"danger\" shape=\"exclamation-circle\" class=\"clr-accordion-error-icon\"></cds-icon>\n <cds-icon status=\"success\" shape=\"check-circle\" class=\"clr-accordion-complete-icon\"></cds-icon>\n </span>\n <ng-content select=\"clr-accordion-title, clr-step-title\"></ng-content>\n <ng-content select=\"clr-accordion-description, clr-step-description\"></ng-content>\n </button>\n </div>\n <div\n @skipInitialRender\n role=\"region\"\n class=\"clr-accordion-content-region\"\n [id]=\"getAccordionContentId(panel.templateId)\"\n [attr.aria-hidden]=\"!panel.open\"\n [attr.aria-labelledby]=\"getAccordionHeaderId(panel.templateId)\"\n >\n <div\n *ngIf=\"panel.open\"\n @toggle\n (@toggle.done)=\"collapsePanelOnAnimationDone(panel)\"\n class=\"clr-accordion-content\"\n >\n <div class=\"clr-accordion-inner-content\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n QueryList,\n SimpleChanges,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\n\nimport { ClrAccordionPanel } from './accordion-panel';\nimport { AccordionStrategy } from './enums/accordion-strategy.enum';\nimport { AccordionService } from './providers/accordion.service';\n\n@Component({\n selector: 'clr-accordion',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-accordion]': 'true' },\n providers: [AccordionService],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrAccordion implements OnInit, OnChanges, AfterViewInit, OnDestroy {\n @Input('clrAccordionMultiPanel') multiPanel: boolean | string = false;\n @ContentChildren(ClrAccordionPanel) panels: QueryList<ClrAccordionPanel>;\n subscriptions: Subscription[] = [];\n\n constructor(private accordionService: AccordionService) {}\n\n ngOnInit() {\n this.setAccordionStrategy();\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.multiPanel.currentValue !== changes.multiPanel.previousValue) {\n this.setAccordionStrategy();\n }\n }\n\n ngAfterViewInit() {\n this.subscriptions.push(this.listenForDOMChanges());\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n private setAccordionStrategy() {\n const strategy = this.multiPanel ? AccordionStrategy.Multi : AccordionStrategy.Default;\n this.accordionService.setStrategy(strategy);\n }\n\n private listenForDOMChanges() {\n return this.panels.changes\n .pipe(startWith(this.panels))\n .subscribe((panels: QueryList<ClrAccordionPanel>) =>\n this.accordionService.updatePanelOrder(panels.toArray().map(p => p.id))\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'clr-accordion-content, clr-step-content',\n template: `<ng-content></ng-content>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrAccordionContent {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'clr-accordion-title, clr-step-title',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-accordion-title]': 'true' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrAccordionTitle {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewChecked, Directive } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n/*\n * After a conversation with the Angular core team, it turns out we don't have much of a choice for our\n * declarative API, we need to fight against change detection and its one-way flow. This is\n * currently the least dirty solution to do what we want.\n *\n * Do not modify or even use this class unless you know exactly what you're doing.\n * It has the potential to trigger change detection loops or kill app performances.\n */\n@Directive()\nexport class WillyWonka implements AfterViewChecked {\n disableChocolateCheck = false;\n\n private _chocolate = new Subject<string>();\n\n get chocolate(): Observable<string> {\n return this._chocolate.asObservable();\n }\n\n ngAfterViewChecked() {\n if (!this.disableChocolateCheck) {\n this._chocolate.next();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentChecked, ChangeDetectorRef, Directive, OnDestroy } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { WillyWonka } from './willy-wonka';\n\n@Directive()\nexport abstract class OompaLoompa implements AfterContentChecked, OnDestroy {\n private latestFlavor: any;\n private subscription: Subscription;\n\n // FIXME: Request Injector once we move to Angular 4.2+, it'll allow easier refactors\n constructor(cdr: ChangeDetectorRef, willyWonka: WillyWonka) {\n this.subscription = willyWonka.chocolate.subscribe(() => {\n if (this.latestFlavor !== this.flavor) {\n willyWonka.disableChocolateCheck = true;\n cdr.detectChanges();\n willyWonka.disableChocolateCheck = false;\n }\n });\n }\n\n abstract get flavor(): any;\n\n ngAfterContentChecked() {\n this.latestFlavor = this.flavor;\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { WillyWonka } from '../../utils/chocolate/willy-wonka';\n\n@Directive({\n selector: 'clr-accordion',\n})\nexport class AccordionWillyWonka extends WillyWonka {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../utils/chocolate/oompa-loompa';\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { AccordionWillyWonka } from './accordion-willy-wonka';\n\n@Directive({\n selector: 'clr-accordion-panel',\n})\nexport class AccordionOompaLoompa extends OompaLoompa {\n private expand: IfExpandService;\n\n constructor(cdr: ChangeDetectorRef, @Optional() willyWonka: AccordionWillyWonka, ifExpandService: IfExpandService) {\n if (!willyWonka) {\n throw new Error('clr-accordion-panel should only be used inside of clr-accordion');\n }\n super(cdr, willyWonka);\n this.expand = ifExpandService;\n }\n\n get flavor() {\n return this.expand.expanded;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { angleIcon, checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../icon/icon.module';\nimport { ClrAccordion } from './accordion';\nimport { ClrAccordionContent } from './accordion-content';\nimport { ClrAccordionDescription } from './accordion-description';\nimport { ClrAccordionPanel } from './accordion-panel';\nimport { ClrAccordionTitle } from './accordion-title';\nimport { AccordionOompaLoompa } from './chocolate/accordion-oompa-loompa';\nimport { AccordionWillyWonka } from './chocolate/accordion-willy-wonka';\n\nconst declarations = [\n ClrAccordion,\n ClrAccordionPanel,\n ClrAccordionTitle,\n ClrAccordionDescription,\n ClrAccordionContent,\n AccordionOompaLoompa,\n AccordionWillyWonka,\n];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule],\n declarations: [...declarations],\n exports: [...declarations],\n})\nexport class ClrAccordionModule {\n constructor() {\n ClarityIcons.addIcons(angleIcon, exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { FormControl, FormGroup } from '@angular/forms';\n\nexport function triggerAllFormControlValidation(formGroup: FormGroup) {\n Object.keys(formGroup.controls).forEach(field => {\n const control = formGroup.get(field);\n if (control instanceof FormControl) {\n control.markAsTouched();\n control.markAsDirty();\n control.updateValueAndValidity();\n } else if (control instanceof FormGroup) {\n triggerAllFormControlValidation(control);\n }\n });\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AccordionStatus } from '../../enums/accordion-status.enum';\nimport { AccordionModel } from '../../models/accordion.model';\n\nexport class StepperModel extends AccordionModel {\n private stepperModelInitialize = false;\n\n get allPanelsCompleted(): boolean {\n return this.panels.length && this.getNumberOfIncompletePanels() === 0 && this.getNumberOfOpenPanels() === 0;\n }\n\n override addPanel(id: string, open = false) {\n super.addPanel(id, open);\n this._panels[id].disabled = true;\n }\n\n override updatePanelOrder(ids: string[]) {\n super.updatePanelOrder(ids);\n if (this.stepperModelInitialize === false) {\n this.openFirstPanel();\n }\n }\n\n override togglePanel(panelId: string) {\n if (this._panels[panelId].status === AccordionStatus.Complete) {\n this._panels[panelId].open = !this._panels[panelId].open;\n }\n }\n\n navigateToNextPanel(currentPanelId: string, currentPanelValid = true) {\n if (currentPanelValid) {\n this.completePanel(currentPanelId);\n this.openNextPanel(this._panels[currentPanelId].id);\n } else {\n this.setPanelError(currentPanelId);\n }\n }\n\n overrideInitialPanel(panelId: string) {\n this.panels\n .filter(() => this._panels[panelId] !== undefined)\n .forEach(panel => {\n if (panel.index < this._panels[panelId].index) {\n this.completePanel(panel.id);\n } else if (panel.id === panelId) {\n this._panels[panel.id].open = true;\n } else {\n this._panels[panel.id].open = false;\n }\n });\n }\n\n setPanelValid(panelId: string) {\n this._panels[panelId].status = AccordionStatus.Complete;\n }\n\n setPanelInvalid(panelId: string) {\n this._panels[panelId].status = AccordionStatus.Error;\n }\n\n setPanelsWithErrors(ids: string[]) {\n ids.forEach(id => this.setPanelError(id));\n }\n\n resetPanels() {\n /* return stepper to initialize state */\n this.stepperModelInitialize = false;\n this.panels.forEach(p => this.resetPanel(p.id));\n this.openFirstPanel();\n }\n\n getNextPanel(currentPanelId: string) {\n return this.panels.find(s => s.index === this._panels[currentPanelId].index + 1);\n }\n\n private resetAllFuturePanels(panelId: string) {\n this.panels.filter(panel => panel.index >= this._panels[panelId].index).forEach(panel => this.resetPanel(panel.id));\n }\n\n private resetPanel(panelId: string) {\n this._panels[panelId].status = AccordionStatus.Inactive;\n this._panels[panelId].open = false;\n this._panels[panelId].disabled = true;\n }\n\n private openFirstPanel() {\n const firstPanel = this.getFirstPanel();\n /**\n * You need to call updatePanelOrder first to get the correct order,\n * else the list of panels will not have `index` set and we won't know\n * how to find the first panel.\n */\n if (!firstPanel) {\n return;\n }\n\n this._panels[firstPanel.id].open = true;\n this._panels[firstPanel.id].disabled = true;\n this.stepperModelInitialize = true;\n }\n\n private completePanel(panelId: string) {\n this._panels[panelId].status = AccordionStatus.Complete;\n this._panels[panelId].disabled = false;\n this._panels[panelId].open = false;\n }\n\n private openNextPanel(currentPanelId: string) {\n const nextPanel = this.getNextPanel(currentPanelId);\n\n if (nextPanel) {\n this.resetAllFuturePanels(nextPanel.id);\n this._panels[nextPanel.id].open = true;\n this._panels[nextPanel.id].disabled = true;\n }\n }\n\n private setPanelError(panelId: string) {\n this.resetAllFuturePanels(panelId);\n this._panels[panelId].open = true;\n this._panels[panelId].status = AccordionStatus.Error;\n }\n\n private getFirstPanel() {\n return this.panels.find(panel => panel.index === 0);\n }\n\n private getNumberOfIncompletePanels() {\n return this.panels.reduce((prev, next) => (next.status !== AccordionStatus.Complete ? prev + 1 : prev), 0);\n }\n\n private getNumberOfOpenPanels() {\n return this.panels.reduce((prev, next) => (next.open !== false ? prev + 1 : prev), 0);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { distinctUntilChanged, map } from 'rxjs/operators';\n\nimport { AccordionService } from '../../providers/accordion.service';\nimport { StepperModel } from '../models/stepper.model';\n\n@Injectable()\nexport class StepperService extends AccordionService {\n readonly activeStep: Observable<string>;\n readonly panelsCompleted = this.getAllCompletedPanelChanges();\n\n protected override accordion = new StepperModel();\n\n private _activeStepChanges = new Subject<string>();\n\n constructor() {\n super();\n\n this.activeStep = this._activeStepChanges.asObservable();\n }\n\n resetPanels() {\n this.accordion.resetPanels();\n this.emitUpdatedPanels();\n }\n\n setPanelValid(panelId: string) {\n this.accordion.setPanelValid(panelId);\n this.emitUpdatedPanels();\n }\n\n setPanelInvalid(panelId: string) {\n this.accordion.setPanelInvalid(panelId);\n this.emitUpdatedPanels();\n }\n\n setPanelsWithErrors(ids: string[]) {\n this.accordion.setPanelsWithErrors(ids);\n this.emitUpdatedPanels();\n }\n\n navigateToNextPanel(currentPanelId: string, currentPanelValid = true) {\n this.accordion.navigateToNextPanel(currentPanelId, currentPanelValid);\n this.updateNextStep(currentPanelId, currentPanelValid);\n this.emitUpdatedPanels();\n }\n\n overrideInitialPanel(panelId: string) {\n this.accordion.overrideInitialPanel(panelId);\n this.emitUpdatedPanels();\n }\n\n private updateNextStep(currentPanelId: string, currentPanelValid: boolean) {\n const nextPanel = this.accordion.getNextPanel(currentPanelId);\n\n if (currentPanelValid && nextPanel) {\n this._activeStepChanges.next(nextPanel.id);\n } else if (currentPanelValid) {\n this._activeStepChanges.next(currentPanelId);\n }\n }\n\n private getAllCompletedPanelChanges(): Observable<boolean> {\n return this._panelsChanges.pipe(\n map(() => this.accordion.allPanelsCompleted),\n distinctUntilChanged()\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n Inject,\n OnInit,\n Optional,\n PLATFORM_ID,\n ViewChild,\n} from '@angular/core';\nimport { FormGroupName, NgModelGroup } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { distinctUntilChanged, filter, skipUntil, tap } from 'rxjs/operators';\n\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { triggerAllFormControlValidation } from '../../utils/forms/validation';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrAccordionPanel } from '../accordion-panel';\nimport { AccordionStatus } from '../enums/accordion-status.enum';\nimport { AccordionPanelModel } from '../models/accordion.model';\nimport { stepAnimation } from '../utils/animation';\nimport { StepperService } from './providers/stepper.service';\n\n@Component({\n selector: 'clr-stepper-panel',\n templateUrl: '../accordion-panel.html',\n host: { '[class.clr-accordion-panel]': 'true' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: stepAnimation,\n providers: [IfExpandService],\n})\nexport class ClrStepperPanel extends ClrAccordionPanel implements OnInit {\n override isAccordion = false;\n\n @ViewChild('headerButton') headerButton: ElementRef;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n @Inject(PLATFORM_ID) private platformId: any,\n public override commonStrings: ClrCommonStringsService,\n @Optional() private formGroupName: FormGroupName,\n @Optional() private ngModelGroup: NgModelGroup,\n private stepperService: StepperService,\n ifExpandService: IfExpandService,\n cdr: ChangeDetectorRef\n ) {\n super(commonStrings, stepperService, ifExpandService, cdr);\n }\n\n override get id(): string {\n return this.formGroupName ? this.formGroupName.name.toString() : this.ngModelGroup.name;\n }\n override set id(_value: string) {\n // overriding parent id required empty setter\n }\n\n get formGroup() {\n return this.formGroupName ? this.formGroupName.control : this.ngModelGroup.control;\n }\n\n override ngOnInit(): void {\n super.ngOnInit();\n this.panel = this.panel.pipe(tap(panel => this.triggerAllFormControlValidationIfError(panel)));\n this.stepperService.disablePanel(this.id, true);\n this.listenToFocusChanges();\n\n // not all stepper panels are guaranteed to have a form (i.e. empty template-driven)\n if (this.formGroup) {\n // set panel status on form status change only after the form becomes invalid\n const invalidStatusTrigger = this.formGroup.statusChanges.pipe(filter(status => status === 'INVALID'));\n\n this.subscriptions.push(\n this.formGroup.statusChanges.pipe(skipUntil(invalidStatusTrigger), distinctUntilChanged()).subscribe(status => {\n if (status === 'VALID') {\n this.stepperService.setPanelValid(this.id);\n } else if (status === 'INVALID') {\n this.stepperService.setPanelInvalid(this.id);\n }\n })\n );\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n private listenToFocusChanges() {\n this.subscriptions.push(\n this.stepperService.activeStep\n .pipe(filter(panelId => isPlatformBrowser(this.platformId) && panelId === this.id))\n .subscribe(() => this.headerButton.nativeElement.focus())\n );\n }\n\n private triggerAllFormControlValidationIfError(panel: AccordionPanelModel) {\n if (panel.status === AccordionStatus.Error) {\n triggerAllFormControlValidation(this.formGroup);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, HostBinding, HostListener, Input, OnInit } from '@angular/core';\n\nimport { StepperService } from './providers/stepper.service';\nimport { ClrStepperPanel } from './stepper-panel';\n\nexport enum ClrStepButtonType {\n Next = 'next',\n Submit = 'submit',\n}\n\n@Directive({\n selector: '[clrStepButton]',\n host: {\n '[class.clr-step-button]': 'true',\n '[class.btn]': 'true',\n '[type]': \"'button'\",\n },\n})\nexport class ClrStepButton implements OnInit {\n @Input('clrStepButton') type: ClrStepButtonType | string = ClrStepButtonType.Next;\n @HostBinding('class.btn-primary') submitButton = false;\n\n constructor(private clrStep: ClrStepperPanel, private stepperService: StepperService) {}\n\n ngOnInit() {\n this.submitButton = this.type === ClrStepButtonType.Submit;\n }\n\n @HostListener('click')\n navigateToNextPanel() {\n this.stepperService.navigateToNextPanel(this.clrStep.id, this.clrStep.formGroup.valid);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Optional,\n QueryList,\n SimpleChanges,\n} from '@angular/core';\nimport { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';\nimport { Observable, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\n\nimport { AccordionService } from '../providers/accordion.service';\nimport { StepperService } from './providers/stepper.service';\nimport { ClrStepperPanel } from './stepper-panel';\n\n@Component({\n selector: 'form[clrStepper]',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.clr-accordion]': 'true',\n '[class.clr-stepper-forms]': 'true',\n },\n providers: [StepperService, { provide: AccordionService, useExisting: StepperService }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrStepper implements OnInit, OnChanges, AfterViewInit, OnDestroy {\n @Input('clrInitialStep') initialPanel: string;\n @ContentChildren(ClrStepperPanel, { descendants: true }) panels: QueryList<ClrStepperPanel>;\n subscriptions: Subscription[] = [];\n form: FormGroupDirective | NgForm;\n\n constructor(\n @Optional() private formGroup: FormGroupDirective,\n @Optional() private ngForm: NgForm,\n private stepperService: StepperService\n ) {}\n\n ngOnInit() {\n if (!this.formGroup && !this.ngForm) {\n throw new Error('To use stepper a Reactive or Template Form is required.');\n }\n\n this.form = this.formGroup ? this.formGroup : this.ngForm;\n this.subscriptions.push(this.listenForPanelsCompleted());\n this.subscriptions.push(this.listenForFormResetChanges());\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes.initialPanel.currentValue !== changes.initialPanel.previousValue) {\n this.stepperService.overrideInitialPanel(this.initialPanel);\n }\n }\n\n ngAfterViewInit() {\n this.subscriptions.push(this.listenForDOMChanges());\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n private listenForFormResetChanges() {\n return fromControlReset(this.form.form).subscribe(() => this.stepperService.resetPanels());\n }\n\n private listenForPanelsCompleted() {\n return this.stepperService.panelsCompleted.subscribe(panelsCompleted => {\n if (panelsCompleted && this.form.valid) {\n this.form.ngSubmit.emit();\n } else if (!this.form.valid && this.form.touched) {\n this.setPanelsWithFormErrors();\n }\n });\n }\n\n private setPanelsWithFormErrors() {\n const panelsWithErrors = this.panels.reduce((panels, p) => (p.formGroup.invalid ? [...panels, p.id] : panels), []);\n this.stepperService.setPanelsWithErrors(panelsWithErrors);\n }\n\n private listenForDOMChanges() {\n return this.panels.changes.pipe(startWith(this.panels)).subscribe((panels: QueryList<ClrStepperPanel>) => {\n this.stepperService.updatePanelOrder(panels.toArray().map(p => p.id));\n\n if (this.initialPanel) {\n this.stepperService.overrideInitialPanel(this.initialPanel);\n }\n });\n }\n}\n\nfunction fromControlReset(control: AbstractControl) {\n return new Observable<void>(observer => {\n const unpatchedControlReset = control.reset;\n\n control.reset = () => {\n observer.next();\n unpatchedControlReset.apply(control);\n };\n\n return () => {\n control.reset = unpatchedControlReset;\n };\n });\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { WillyWonka } from '../../../utils/chocolate/willy-wonka';\n\n@Directive({\n selector: 'form[clrStepper]',\n})\nexport class StepperWillyWonka extends WillyWonka {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';\nimport { IfExpandService } from '../../../utils/conditional/if-expanded.service';\nimport { StepperWillyWonka } from './stepper-willy-wonka';\n\n@Directive({\n selector: 'clr-stepper-panel, [clrStepButton]',\n})\nexport class StepperOompaLoompa extends OompaLoompa {\n private expand: IfExpandService;\n\n constructor(cdr: ChangeDetectorRef, @Optional() willyWonka: StepperWillyWonka, ifExpandService: IfExpandService) {\n if (!willyWonka) {\n throw new Error('clr-stepper-panel should only be used inside of clrStepper');\n }\n super(cdr, willyWonka);\n this.expand = ifExpandService;\n }\n\n get flavor() {\n return this.expand.expanded;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrAccordionModule } from '../accordion.module';\nimport { ClrStepButton } from '../stepper/step-button';\nimport { ClrStepper } from '../stepper/stepper';\nimport { StepperOompaLoompa } from './chocolate/stepper-oompa-loompa';\nimport { StepperWillyWonka } from './chocolate/stepper-willy-wonka';\nimport { ClrStepperPanel } from './stepper-panel';\n\nconst declarations = [ClrStepper, ClrStepButton, ClrStepperPanel, StepperOompaLoompa, StepperWillyWonka];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrAccordionModule],\n declarations: [...declarations],\n exports: [...declarations, ClrAccordionModule],\n})\nexport class ClrStepperModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum Keys {\n ArrowLeft = 'ArrowLeft',\n ArrowUp = 'ArrowUp',\n ArrowRight = 'ArrowRight',\n ArrowDown = 'ArrowDown',\n Backspace = 'Backspace',\n Tab = 'Tab',\n Enter = 'Enter',\n Escape = 'Escape',\n Space = 'Space',\n Spacebar = ' ',\n Home = 'Home',\n End = 'End',\n}\n\nexport enum IEKeys {\n ArrowUp = 'Up',\n ArrowDown = 'Down',\n ArrowRight = 'Right',\n ArrowLeft = 'Left',\n Space = 'Spacebar',\n Escape = 'Esc',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { IEKeys, Keys } from '../../enums/keys.enum';\n\nexport function normalizeKey(key: string) {\n if (key === Keys.ArrowUp || key === IEKeys.ArrowUp) {\n return Keys.ArrowUp;\n } else if (key === Keys.ArrowDown || key === IEKeys.ArrowDown) {\n return Keys.ArrowDown;\n } else if (key === Keys.ArrowRight || key === IEKeys.ArrowRight) {\n return Keys.ArrowRight;\n } else if (key === Keys.ArrowLeft || key === IEKeys.ArrowLeft) {\n return Keys.ArrowLeft;\n } else if (key === Keys.Space || key === IEKeys.Space) {\n return Keys.Space;\n } else if (key === Keys.Escape || key === IEKeys.Escape) {\n return Keys.Escape;\n } else {\n return key;\n }\n}\n\nexport function preventArrowKeyScroll(event: KeyboardEvent) {\n const key = normalizeKey(event.key);\n\n if (key === Keys.ArrowUp || key === Keys.ArrowDown || key === Keys.ArrowLeft || key === Keys.ArrowRight) {\n // prevent element container scroll\n // MDN references this is really the only way to prevent native browser interactions\n // https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets\n event.preventDefault();\n }\n}\n\nexport function isKeyEitherLetterOrNumber(event: KeyboardEvent) {\n const char = event.key;\n // Only letter characters differ when they switch between lowercase and uppercase, whether it's an English or non-English letter.\n return char.toLowerCase() !== char.toUpperCase() || (char >= '0' && char <= '9');\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\nimport { preventArrowKeyScroll } from '../../focus/key-focus/util';\n\n// Popovers might need to ignore click events on an element\n// (eg: popover opens on focus on an input field. Clicks should be ignored in this case)\n\n@Injectable()\nexport class ClrPopoverToggleService {\n private _open = false;\n private _openChange = new Subject<boolean>();\n private _openEvent: Event;\n private _openEventChange = new Subject<Event>();\n private _popoverAligned = new Subject<HTMLElement>();\n private _popoverVisible = new Subject<boolean>();\n\n get openChange(): Observable<boolean> {\n return this._openChange.asObservable();\n }\n\n get popoverVisible(): Observable<boolean> {\n return this._popoverVisible.asObservable();\n }\n\n get openEvent(): Event {\n return this._openEvent;\n }\n set openEvent(event: Event) {\n this._openEvent = event;\n this._openEventChange.next(event);\n }\n\n get open(): boolean {\n return this._open;\n }\n set open(value: boolean) {\n value = !!value;\n if (this._open !== value) {\n this._open = value;\n this._openChange.next(value);\n }\n }\n\n // For compatibility with legacy IfOpenService based implementations\n get originalEvent(): Event {\n return this._openEvent;\n }\n\n get popoverAligned(): Observable<HTMLElement> {\n return this._popoverAligned.asObservable();\n }\n\n getEventChange(): Observable<Event> {\n return this._openEventChange.asObservable();\n }\n\n /**\n * Sometimes, we need to remember the event that triggered the toggling to avoid loops.\n * This is for instance the case of components that open on a click, but close on a click outside.\n */\n toggleWithEvent(event: any) {\n preventArrowKeyScroll(event);\n\n this.openEvent = event;\n this.open = !this.open;\n }\n\n popoverVisibleEmit(visible: boolean) {\n this._popoverVisible.next(visible);\n }\n\n popoverAlignedEmit(popoverNode: HTMLElement) {\n this._popoverAligned.next(popoverNode);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport { ElementRef, Inject, Injectable, OnDestroy, Renderer2 } from '@angular/core';\nimport { fromEvent, Observable, Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { ClrPopoverToggleService } from './popover-toggle.service';\n\n// https://github.com/angular/angular/issues/20351#issuecomment-344009887\n/** @dynamic */\n@Injectable()\nexport class ClrPopoverEventsService implements OnDestroy {\n outsideClickClose = true;\n scrollToClose = true;\n ignoredEvent: any;\n anchorButtonRef: ElementRef;\n closeButtonRef: ElementRef;\n contentRef: ElementRef;\n\n private documentClickListener: () => void;\n private escapeListener: () => void;\n private scrollSubscription: Subscription;\n private subscriptions: Subscription[] = [];\n private documentScroller: Observable<Event>;\n\n constructor(\n private renderer: Renderer2,\n private smartOpenService: ClrPopoverToggleService,\n @Inject(DOCUMENT) private document: HTMLDocument\n ) {\n this.subscriptions.push(\n smartOpenService.openChange.subscribe(open => {\n if (open) {\n this.addEscapeListener();\n this.addClickListener();\n this.addScrollListener();\n } else {\n this.removeAllEventListeners();\n }\n }),\n smartOpenService.getEventChange().subscribe(event => {\n // Remember the event that was used to open the content\n this.ignoredEvent = event;\n })\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n this.removeAllEventListeners();\n }\n\n addScrollListener() {\n if (this.scrollToClose) {\n this.documentScroller = fromEvent(this.document, 'scroll', { capture: true });\n this.scrollSubscription = this.documentScroller\n .pipe(filter(this.testForSmartPopoverContentContainer))\n .subscribe(() => {\n this.smartOpenService.open = false;\n this.setAnchorFocus();\n });\n } else {\n // I think this is where dynamic re-positioning will be added\n // Instead of testing like we do in the close pipe below\n // we need to switch positioning to use an observable and then\n // debounce the scroll events to recalculate content position in a performant way\n // For now, ignore scrolling events.\n return;\n }\n }\n\n removeScrollListener() {\n if (this.documentScroller) {\n this.scrollSubscription.unsubscribe();\n delete this.documentScroller;\n }\n }\n\n addClickListener() {\n if (this.outsideClickClose) {\n this.documentClickListener = this.renderer.listen(this.document, 'click', (event: MouseEvent) => {\n if (event === this.ignoredEvent) {\n // Here we ignore the opening click event (w/o this content opens and immediately closes.\n delete this.ignoredEvent;\n } else {\n this.smartOpenService.open = false;\n // Rather than a complex change to the focus trap I put focus on the element that was clicked\n const clickedElement = event.target as HTMLElement;\n clickedElement.focus();\n }\n });\n }\n }\n\n removeClickListener() {\n if (this.outsideClickClose) {\n delete this.ignoredEvent;\n if (this.documentClickListener) {\n this.documentClickListener();\n delete this.documentClickListener;\n }\n }\n }\n\n addEscapeListener() {\n this.escapeListener = this.renderer.listen(this.document, 'keydown.escape', () => {\n this.smartOpenService.open = false;\n this.setAnchorFocus();\n });\n }\n\n removeEscapeListener() {\n if (this.escapeListener) {\n this.escapeListener();\n delete this.escapeListener;\n }\n }\n\n setCloseFocus(): void {\n this.closeButtonRef.nativeElement.focus();\n }\n\n setAnchorFocus(): void {\n this.anchorButtonRef.nativeElement.focus();\n }\n\n private testForSmartPopoverContentContainer(event: Event): boolean {\n // Filter for the documentScroller observable event targets\n let target = event.target as HTMLElement;\n\n // Walk up the DOM tree until we get to the element that is a direct child of the body.\n while (target.classList && target.parentElement.localName !== 'body') {\n target = target.parentElement;\n }\n\n // Target is the child element of body where the scroll events originated.\n // Return false and prevent the popover content container from closing for any scroll events inside a popover\n // content container.\n if (target.classList) {\n // check scroll events to see if they are happening in popover content or elsewhere\n return target.classList.contains('clr-popover-content') ? false : true;\n } else {\n // prevents it from closing right after first opening\n return false;\n }\n }\n\n private removeAllEventListeners() {\n this.removeScrollListener();\n this.removeClickListener();\n this.removeEscapeListener();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef } from '@angular/core';\n\nimport { ClrPopoverEventsService } from './providers/popover-events.service';\n\n@Directive({\n selector: '[clrPopoverAnchor]',\n host: {\n '[class.clr-anchor]': 'true',\n },\n})\nexport class ClrPopoverAnchor {\n constructor(smartEventService: ClrPopoverEventsService, element: ElementRef) {\n smartEventService.anchorButtonRef = element;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Directive, ElementRef, EventEmitter, HostListener, OnDestroy, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { ClrPopoverEventsService } from './providers/popover-events.service';\nimport { ClrPopoverToggleService } from './providers/popover-toggle.service';\n\n@Directive({\n selector: '[clrPopoverCloseButton]',\n host: {\n '[class.clr-smart-close-button]': 'true',\n },\n})\nexport class ClrPopoverCloseButton implements OnDestroy, AfterViewInit {\n @Output('clrPopoverOnCloseChange') closeChange = new EventEmitter<void>();\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n private elementRef: ElementRef,\n private smartEventsService: ClrPopoverEventsService,\n private smartOpenService: ClrPopoverToggleService\n ) {\n this.subscriptions.push(\n smartOpenService.openChange.pipe(filter(value => !value)).subscribe(() => {\n this.closeChange.next();\n })\n );\n }\n\n @HostListener('click', ['$event'])\n handleClick(event: MouseEvent) {\n this.smartOpenService.toggleWithEvent(event);\n this.smartEventsService.setAnchorFocus();\n }\n\n ngAfterViewInit() {\n this.smartEventsService.closeButtonRef = this.elementRef;\n this.smartEventsService.setCloseFocus();\n }\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrAxis {\n VERTICAL,\n HORIZONTAL,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrAlignment {\n START = 0,\n CENTER = 0.5,\n END = 1,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrViewportViolation {\n BOTTOM = 0,\n LEFT = 1,\n RIGHT = 2,\n TOP = 3,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrAlignment } from './enums/alignment.enum';\nimport { ClrViewportViolation } from './enums/viewport-violation.enum';\nimport { ClrPopoverContentOffset } from './interfaces/popover-content-offset.interface';\nimport { ClrPopoverPosition } from './interfaces/popover-position.interface';\nimport { ClrVisibilityCoords } from './interfaces/visibility-coords.interface';\n\n// Put the forward arg here but it is only needed when nudging content or anchors.\nexport type ClrTransform = (position: ClrPopoverPosition, back?: boolean) => ClrPopoverPosition;\n\nexport const flipSides: ClrTransform = position => {\n return {\n ...position,\n side: -1 * position.side,\n };\n};\n\n// This could be used in more advanced positioning algorithms.\n// flipAxisFlipSideAndNudgeContent(flipAxis, flipSide, nudge, nudgeForward?): ClrTransform {...}\n// I would like to keep it for now.\nexport const flipAxis: ClrTransform = position => {\n return {\n ...position,\n axis: position.axis === 0 ? 1 : 0,\n };\n};\n\nexport const nudgeContent: ClrTransform = (position, forward) => {\n const nextAlignment = position.content + (forward ? 0.5 : -0.5);\n if (nextAlignment < 0 || nextAlignment > 1) {\n return position;\n } else {\n return {\n ...position,\n content: nextAlignment,\n };\n }\n};\n\nexport function flipSidesAndNudgeContent(flip: ClrTransform, nudge: ClrTransform, nudgeBack?: boolean): ClrTransform {\n return (position: ClrPopoverPosition): ClrPopoverPosition => nudge(flip(position), nudgeBack);\n}\n\nexport function align(position: ClrPopoverPosition, anchor: ClientRect, content: ClientRect): ClrPopoverContentOffset {\n let xDiff = anchor.left;\n let yDiff = anchor.top;\n\n // When ClrAxis is VERTICAL BEFORE = left, AFTER = right\n // When ClrAxis is HORIZONTAL BEFORE is top, AFTER is bottom\n switch (position.axis + position.side) {\n case -1: {\n // ClrAxis.VERTICAL + ClrSide.BEFORE\n xDiff += alignHorizontal(position, anchor, content);\n yDiff -= content.height; // pull content up to the top of the anchor\n break;\n }\n case 1: {\n // ClrAxis.VERTICAL + ClrSide.AFTER\n xDiff += alignHorizontal(position, anchor, content);\n yDiff += anchor.height; // push the content down to below the anchor\n break;\n }\n case 0: {\n // ClrAxis.HORIZONTAL + ClrSide.BEFORE\n xDiff -= content.width; // pull the content left of the anchor\n yDiff += alignVertical(position, anchor, content);\n break;\n }\n case 2: {\n // ClrAxis.HORIZONTAL + ClrSide.AFTER\n xDiff += anchor.width; // push the content right of of the anchor\n yDiff += alignVertical(position, anchor, content);\n break;\n }\n default: {\n break;\n }\n }\n return { xOffset: xDiff, yOffset: yDiff };\n}\n\nfunction alignHorizontal(position: ClrPopoverPosition, anchor: ClientRect, content: ClientRect): number {\n let horizontalOffset = 0;\n // horizontal offset for the anchor position\n switch (position.anchor /*calculate for the anchor alignment*/) {\n case ClrAlignment.START: {\n // nothing to calculate here\n break;\n }\n case ClrAlignment.CENTER: {\n horizontalOffset += anchor.width / 2; // push content over 1/2 anchor width\n break;\n }\n case ClrAlignment.END: {\n horizontalOffset += anchor.width; // push content over width of the anchor\n break;\n }\n default: {\n break;\n }\n }\n\n // horizontal offsets for anchor alignment\n switch (\n position.content // calculate for the content alignment\n ) {\n case ClrAlignment.START: {\n // Nothing to calculate here\n break;\n }\n case ClrAlignment.CENTER: {\n horizontalOffset -= content.width / 2; // pull content left by a value of 1/2 content width\n break;\n }\n case ClrAlignment.END: {\n // subtract the width of currentContent from horizontalOffset to pull it back\n horizontalOffset -= content.width;\n break;\n }\n default: {\n break;\n }\n }\n\n return horizontalOffset;\n}\n\nfunction alignVertical(position: ClrPopoverPosition, anchor: ClientRect, content: ClientRect): number {\n // y axis offsets for anchor alignment\n let verticalOffset = 0;\n\n // Calculate y offset for anchor position\n switch (position.anchor) {\n case ClrAlignment.START: {\n // nothing to calculate here\n break;\n }\n case ClrAlignment.CENTER: {\n verticalOffset += anchor.height / 2; // push content down to the middle of the anchor rect\n break;\n }\n case ClrAlignment.END: {\n verticalOffset += anchor.height; // push content down to the bottom of the anchor\n break;\n }\n default: {\n break;\n }\n }\n\n // Calculate y offsets for content alignment\n switch (position.content) {\n case ClrAlignment.START: {\n // aligned to the top of the content rect\n break;\n }\n case ClrAlignment.CENTER: {\n verticalOffset -= content.height / 2; // pull content back up to the middle of the content rect\n break;\n }\n case ClrAlignment.END: {\n verticalOffset -= content.height; // pull content back up to the bottom of the content rect\n break;\n }\n default: {\n break;\n }\n }\n return verticalOffset;\n}\n\nexport function testVisibility(offset: ClrPopoverContentOffset, content: ClientRect): ClrViewportViolation[] {\n const violations: ClrViewportViolation[] = [];\n const mockCoords: ClrVisibilityCoords = {\n bottom: offset.yOffset + content.height,\n left: offset.xOffset,\n right: offset.xOffset + content.width,\n top: offset.yOffset,\n };\n\n if (!(mockCoords.top >= 0)) {\n violations.push(ClrViewportViolation.TOP);\n }\n if (!(mockCoords.left >= 0)) {\n violations.push(ClrViewportViolation.LEFT);\n }\n if (!(mockCoords.bottom <= (window.innerHeight || document.documentElement.clientHeight))) {\n violations.push(ClrViewportViolation.BOTTOM);\n }\n if (!(mockCoords.right <= (window.innerWidth || document.documentElement.clientWidth))) {\n violations.push(ClrViewportViolation.RIGHT);\n }\n\n return violations;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\nimport { ClrAxis } from '../enums/axis.enum';\nimport { ClrViewportViolation } from '../enums/viewport-violation.enum';\nimport { ClrPopoverContentOffset } from '../interfaces/popover-content-offset.interface';\nimport { ClrPopoverPosition } from '../interfaces/popover-position.interface';\nimport { align, flipSides, flipSidesAndNudgeContent, nudgeContent, testVisibility } from '../position-operators';\nimport { ClrPopoverEventsService } from './popover-events.service';\n\n@Injectable()\nexport class ClrPopoverPositionService {\n position: ClrPopoverPosition;\n shouldRealign: Observable<void>;\n\n private currentAnchorCoords: ClientRect;\n private currentContentCoords: ClientRect;\n private contentOffsets: ClrPopoverContentOffset;\n private _shouldRealign = new Subject<void>();\n\n constructor(private eventService: ClrPopoverEventsService, @Inject(PLATFORM_ID) public platformId: any) {\n this.shouldRealign = this._shouldRealign.asObservable();\n }\n\n realign() {\n this._shouldRealign.next();\n }\n\n alignContent(content: HTMLElement): ClrPopoverContentOffset {\n if (!isPlatformBrowser(this.platformId)) {\n // Only position when in a browser.\n // Default to the browser origin and prevent getBoundingClientRect from running.\n return {\n xOffset: 0,\n yOffset: 0,\n };\n }\n\n this.currentAnchorCoords = this.eventService.anchorButtonRef.nativeElement.getBoundingClientRect();\n this.currentContentCoords = content.getBoundingClientRect();\n this.contentOffsets = align(this.position, this.currentAnchorCoords, this.currentContentCoords);\n\n const visibilityViolations: ClrViewportViolation[] = testVisibility(this.contentOffsets, this.currentContentCoords);\n /**\n * Calculate the sum of viewport errors. This calculation is used below with the provided Axis in the given\n * ClrPopoverPosition. Its worth putting the ClrViewportViolation enum values here:\n *\n * BOTTOM = 0,\n * LEFT = 1,\n * RIGHT = 2,\n * TOP = 3,\n *\n * So, this.visibilityViolations.length tells us how many sides of the viewport that the popover content was\n * clipped on. We can only help when the content has an issue on one or two sides.\n * errorSum is calculated to determine _how_ to change the position. Looking at both the axis and the number\n * of violations I can use the errorSum to determine how to transform the position (on the fly) and adjust\n * where it can be improved.\n *\n * Note, more than 3 viewport violations and there isn't anything we can do to help. Also when there are two\n * violations, we can't help if the violations are TOP+BOTTOM || LEFT+RIGHT => There is no transformation we\n * can make to the position that will help.\n *\n * Some examples:\n * There is only one error and Primary axis is VERTICAL\n * - this.handleVerticalAxisOneViolation has a switch that will use the error sum to apply the correct\n * transform to the position based on the reduction of visibilityViolations.\n *\n * There are two errors and Primary axis is HORIZONTAL\n * - handleHorizontalAxisTwoViolations has a switch that uses the error sum to apply both transforms needed to\n * improve the content position based on the reduction of visibilityViolations.\n */\n\n const errorSum = visibilityViolations.reduce((count, current) => {\n return count + current;\n }, 0);\n\n if (visibilityViolations.length === 1 && this.position.axis === ClrAxis.VERTICAL) {\n // When primary axis is VERTICAL and there is one viewport violation\n this.handleVerticalAxisOneViolation(errorSum);\n } else if (visibilityViolations.length === 1 && this.position.axis === ClrAxis.HORIZONTAL) {\n // When primary axis is HORIZONTAL and there is one viewport violation\n this.handleHorizontalAxisOneViolation(errorSum);\n } else if (visibilityViolations.length === 2 && this.position.axis === ClrAxis.VERTICAL) {\n // When primary axis is VERTICAL and there are two viewport violations\n this.handleVerticalAxisTwoViolations(errorSum);\n } else if (visibilityViolations.length === 2 && this.position.axis === ClrAxis.HORIZONTAL) {\n // When primary axis is HORIZONTAL and there are two viewport violations\n this.handleHorizontalAxisTwoViolations(errorSum);\n }\n\n /**\n * Adjusts popover position based on scroll value by adding the negative 'top' value of currentContentCoords to yOffset for proper alignment.\n * - The negative value means that the 'top' of the content is scrolled out of view at the top of the viewport.\n */\n if (this.currentContentCoords.top < 0) {\n this.contentOffsets.yOffset += Math.abs(this.currentContentCoords.top);\n }\n\n /**\n * This detects the condition where the popover is flipped because it would violate the bottom of the viewport, but flipping it results in the\n * popover rendering above the top of the body (y coordinate outside the body). In that event, it should be rendered within the body\n * as much as possible, so this logic sets the top of popover to render touching the top of the body.\n */\n if (this.contentOffsets.yOffset + this.currentAnchorCoords.y < 0) {\n this.contentOffsets.yOffset = 0 - this.currentContentCoords.top;\n }\n\n return this.contentOffsets;\n }\n\n private handleVerticalAxisOneViolation(errorSum: number): void {\n switch (errorSum) {\n case 0:\n case 3: {\n // BOTTOM(0) or TOP(3) are primary violations and we can just flip sides\n this.contentOffsets = align(flipSides(this.position), this.currentAnchorCoords, this.currentContentCoords);\n break;\n }\n case 1: {\n // LEFT(1) is secondary and needs to nudge content right\n this.contentOffsets = align(this.position, this.currentAnchorCoords, this.currentContentCoords);\n\n /**\n * Even with the nudge we still have a problem. We need to check if the content is going to be clipped\n */\n if (this.contentOffsets.xOffset < 0) {\n this.contentOffsets.xOffset = 10;\n }\n\n break;\n }\n case 2: {\n // RIGHT(2) is secondary and needs to nudge content left\n this.contentOffsets = align(\n nudgeContent(this.position, true),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n default: {\n break;\n }\n }\n }\n\n private handleVerticalAxisTwoViolations(errorSum: number): void {\n switch (errorSum) {\n // We know there are two violations. We can use the errorSum to determine which combination of sides were\n // violated and handle appropriately.\n case 5: {\n // TOP(3)+RIGHT(2) is case 5. We need to flip sides and nudge the content to the left\n const flipAndNudgeLeft = flipSidesAndNudgeContent(flipSides, nudgeContent, true);\n this.contentOffsets = align(\n flipAndNudgeLeft(this.position),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n case 4: {\n //TOP(3)+LEFT(1) is case 4, we need to flip sides and nudge content to the right\n const flipAndNudgeRight = flipSidesAndNudgeContent(flipSides, nudgeContent, false);\n this.contentOffsets = align(\n flipAndNudgeRight(this.position),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n case 3: {\n // TOP(3)+BOTTOM(0) || left(1)+RIGHT(2) is case 3. There is nothing we can do position wise to improve the\n // placement for this content.\n break;\n }\n case 2: {\n // BOTTOM(0)+RIGHT(2) is case 2. We need to flip sides and nudge the content to the left\n const flipAndNudgeLeft = flipSidesAndNudgeContent(flipSides, nudgeContent, true);\n this.contentOffsets = align(\n flipAndNudgeLeft(this.position),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n case 1: {\n // BOTTOM(0)+LEFT(1) is case 1. We need to flip sides and nudge to the right\n const flipAndNudgeRight = flipSidesAndNudgeContent(flipSides, nudgeContent, false);\n this.contentOffsets = align(\n flipAndNudgeRight(this.position),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n default: {\n break;\n }\n }\n }\n\n private handleHorizontalAxisOneViolation(errorSum: number): void {\n switch (errorSum) {\n case 1:\n case 2: {\n // LEFT(1) and RIGHT(2) are primary violations so we can flip sides\n this.contentOffsets = align(flipSides(this.position), this.currentAnchorCoords, this.currentContentCoords);\n break;\n }\n case 0: {\n // BOTTOM(0) is a secondary violation and we need to nudge content up\n this.contentOffsets = align(\n nudgeContent(this.position, true),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n case 3: {\n // TOP(3) is a secondary violation and we need to nudge content down\n this.contentOffsets = align(nudgeContent(this.position), this.currentAnchorCoords, this.currentContentCoords);\n break;\n }\n default: {\n break;\n }\n }\n }\n\n private handleHorizontalAxisTwoViolations(errorSum: number): void {\n switch (errorSum) {\n case 5:\n case 4: {\n // TOP(3)+LEFT(1) is case 4.\n // TOP(3)+RIGHT(2) is case 5.\n // In both of these cases we need to flip sides and nudge content down\n const flipAndNudgeDown = flipSidesAndNudgeContent(flipSides, nudgeContent, false);\n this.contentOffsets = align(\n flipAndNudgeDown(this.position),\n this.currentAnchorCoords,\n this.currentContentCoords\n );\n break;\n }\n case 3: {\n // TOP(3)+BOTTOM(0) || left(1)+RIGHT(2) is case 3. There is nothing we can do position wise to improve the\n // placement for this content.\n break;\n }\n case 2:\n case 1: {\n // BOTTOM(0)+RIGHT(2) is case 2.\n // BOTTOM(0)+LEFT(1) is case 1.\n // In both cases we need to flip sides and nudge content up\n const flipAndNudgeUp = flipSidesAndNudgeContent(flipSides, nudgeContent, true);\n this.contentOffsets = align(flipAndNudgeUp(this.position), this.currentAnchorCoords, this.currentContentCoords);\n break;\n }\n default: {\n break;\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterContentChecked,\n Directive,\n EmbeddedViewRef,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\nimport { ClrPopoverPosition } from './interfaces/popover-position.interface';\nimport { ClrPopoverEventsService } from './providers/popover-events.service';\nimport { ClrPopoverPositionService } from './providers/popover-position.service';\nimport { ClrPopoverToggleService } from './providers/popover-toggle.service';\n\n// https://github.com/angular/angular/issues/20351#issuecomment-344009887\n/** @dynamic */\n@Directive({\n selector: '[clrPopoverContent]',\n})\nexport class ClrPopoverContent implements AfterContentChecked, OnDestroy {\n private view: EmbeddedViewRef<void>;\n private subscriptions: Subscription[] = [];\n private removeClickListenerFn: VoidFunction | null = null;\n\n private shouldRealign = false;\n\n // Check-collector pattern:\n // In order to get accurate content height/width values, we cannot calculate alignment offsets until\n // after the projected content has stabilized.\n // As multiple check events may happen in the same rendering cycle, we need to collect all events\n // and only act after the content is really stable. Or we may get wrong intermediate positioning values.\n // We will channel subsequent content check events through this observable.\n private checkCollector = new EventEmitter<void>();\n\n constructor(\n @Inject(DOCUMENT) private document: Document,\n private container: ViewContainerRef,\n private template: TemplateRef<any>,\n private renderer: Renderer2,\n private smartPositionService: ClrPopoverPositionService,\n private smartEventsService: ClrPopoverEventsService,\n private smartOpenService: ClrPopoverToggleService\n ) {}\n\n @Input('clrPopoverContent')\n set open(value: boolean) {\n this.smartOpenService.open = !!value;\n }\n\n @Input('clrPopoverContentAt')\n set contentAt(position: ClrPopoverPosition) {\n this.smartPositionService.position = position;\n }\n\n @Input('clrPopoverContentOutsideClickToClose')\n set outsideClickClose(clickToClose: boolean) {\n this.smartEventsService.outsideClickClose = !!clickToClose;\n }\n\n @Input('clrPopoverContentScrollToClose')\n set scrollToClose(scrollToClose: boolean) {\n this.smartEventsService.scrollToClose = !!scrollToClose;\n }\n\n ngAfterContentChecked(): void {\n if (this.smartOpenService.open && this.view && this.shouldRealign) {\n // Channel content-check event through the check-collector\n this.checkCollector.emit();\n }\n }\n\n ngAfterViewInit() {\n this.subscriptions.push(\n this.smartOpenService.openChange.subscribe(change => {\n if (change) {\n this.addContent();\n } else {\n this.removeContent();\n }\n }),\n this.smartPositionService.shouldRealign.subscribe(() => {\n this.shouldRealign = true;\n }),\n // Here we collect subsequent synchronously received content-check events and only take action\n // at the end of the cycle. See below for details on the check-collector pattern.\n this.checkCollector.pipe(debounceTime(0)).subscribe(() => {\n this.alignContent();\n this.shouldRealign = false;\n if (this.view) {\n this.renderer.setStyle(this.view.rootNodes[0], 'opacity', '1');\n this.smartOpenService.popoverVisibleEmit(true);\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.removeContent();\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n /**\n * TODO(matt): investigate why DebugElement retains a reference to the nodes and causes a memory leak.\n * A note about the use of appendChild/removeChild\n * The DebugElement is keeping a reference to the detached node and its unclear why.\n * This does warrant further investigation. But, since it doesn't happen in production mode\n * it is a low priority issue for now.\n */\n private addContent() {\n // Create the view container\n this.view = this.container.createEmbeddedView(this.template);\n const [rootNode] = this.view.rootNodes;\n this.smartEventsService.contentRef = rootNode; // So we know where/what to set close focus on\n this.renderer.addClass(rootNode, 'clr-popover-content');\n // Reset to the begining of the document to be available for sizing/positioning calculations.\n // If we add new content to the bottom it triggers changes in the layout that may lead to false anchor\n // coordinates values.\n this.renderer.setStyle(rootNode, 'top', '0px');\n this.renderer.setStyle(rootNode, 'left', '0px');\n // We need to hide it during the calculation phase, while it's not yet finally positioned.\n this.renderer.setStyle(rootNode, 'opacity', '0');\n this.removeClickListenerFn = this.renderer.listen(rootNode, 'click', event => {\n this.smartOpenService.openEvent = event;\n });\n this.view.rootNodes.forEach(node => {\n this.renderer.appendChild(this.document.body, node);\n });\n // Mark for realingment on the next content-check cycle.\n this.shouldRealign = true;\n }\n\n private removeContent(): void {\n if (!this.view) {\n return;\n }\n if (this.removeClickListenerFn) {\n this.removeClickListenerFn();\n this.removeClickListenerFn = null;\n }\n this.view.rootNodes.forEach(node => this.renderer.removeChild(this.document.body, node));\n this.container.clear();\n delete this.view;\n this.smartOpenService.popoverVisibleEmit(false);\n }\n\n private alignContent() {\n if (!this.view) {\n return;\n }\n\n const positionCoords = this.smartPositionService.alignContent(this.view.rootNodes[0]);\n this.renderer.setStyle(this.view.rootNodes[0], 'top', `${positionCoords.yOffset}px`);\n this.renderer.setStyle(this.view.rootNodes[0], 'left', `${positionCoords.xOffset}px`);\n this.smartOpenService.popoverAlignedEmit(this.view.rootNodes[0]);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, EventEmitter, HostListener, OnDestroy, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrPopoverToggleService } from './providers/popover-toggle.service';\n\n@Directive({\n selector: '[clrPopoverOpenCloseButton]',\n host: {\n '[class.clr-smart-open-close]': 'true',\n },\n})\nexport class ClrPopoverOpenCloseButton implements OnDestroy {\n @Output('clrPopoverOpenCloseChange') openCloseChange = new EventEmitter<boolean>();\n\n private subscriptions: Subscription[] = [];\n\n constructor(private smartOpenService: ClrPopoverToggleService) {\n this.subscriptions.push(\n this.smartOpenService.openChange.subscribe(change => {\n this.openCloseChange.next(change);\n })\n );\n }\n\n @HostListener('click', ['$event'])\n handleClick(event: MouseEvent) {\n this.smartOpenService.toggleWithEvent(event);\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrPopoverAnchor } from './popover-anchor';\nimport { ClrPopoverCloseButton } from './popover-close-button';\nimport { ClrPopoverContent } from './popover-content';\nimport { ClrPopoverOpenCloseButton } from './popover-open-close-button';\n\n@NgModule({\n imports: [],\n declarations: [ClrPopoverAnchor, ClrPopoverCloseButton, ClrPopoverOpenCloseButton, ClrPopoverContent],\n exports: [ClrPopoverAnchor, ClrPopoverCloseButton, ClrPopoverOpenCloseButton, ClrPopoverContent],\n})\nexport class ClrPopoverModuleNext {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { ClrButton } from '../button-group/button';\n\n@Injectable()\nexport class ButtonInGroupService {\n private _changes = new Subject<ClrButton>();\n\n get changes(): Observable<ClrButton> {\n return this._changes.asObservable();\n }\n\n updateButtonGroup(button: ClrButton): void {\n this._changes.next(button);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Input, Optional, Output, SkipSelf, TemplateRef, ViewChild } from '@angular/core';\n\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrLoadingState } from '../../utils/loading/loading';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\nimport { ButtonInGroupService } from '../providers/button-in-group.service';\n\n@Component({\n selector: 'clr-button',\n template: `\n <ng-template #buttonProjectedRef>\n <button\n [class]=\"classNames\"\n (click)=\"emitClick()\"\n [attr.type]=\"type\"\n [attr.name]=\"name\"\n [attr.disabled]=\"disabled\"\n [attr.role]=\"role\"\n [attr.id]=\"id\"\n >\n <span class=\"spinner spinner-inline\" *ngIf=\"loading\"></span>\n <ng-content></ng-content>\n </button>\n </ng-template>\n `,\n providers: [{ provide: LoadingListener, useExisting: ClrButton }],\n})\nexport class ClrButton implements LoadingListener {\n @Output('click') _click = new EventEmitter<boolean>(false);\n\n @ViewChild('buttonProjectedRef', { static: true }) templateRef: TemplateRef<ClrButton>;\n\n loading: boolean;\n\n private _inMenu = false;\n private _enableService = false;\n private _classNames = 'btn';\n private _name: string = null;\n private _type: string = null;\n private _disabled: any = null;\n private _id: string = uniqueIdFactory();\n\n constructor(\n @SkipSelf()\n @Optional()\n public buttonInGroupService: ButtonInGroupService\n ) {}\n\n @Input('clrInMenu')\n get inMenu(): boolean {\n return this._inMenu;\n }\n set inMenu(value: boolean) {\n value = !!value;\n if (this._inMenu !== value) {\n this._inMenu = value;\n // We check if the service flag is enabled\n // and if the service exists because the service is optional\n if (this._enableService && this.buttonInGroupService) {\n this.buttonInGroupService.updateButtonGroup(this);\n }\n }\n }\n\n @Input('class')\n get classNames(): string {\n return this._classNames;\n }\n set classNames(value: string) {\n if (typeof value === 'string') {\n const classNames: string[] = value.split(' ');\n if (classNames.indexOf('btn') === -1) {\n classNames.push('btn');\n }\n this._classNames = classNames.join(' ');\n }\n }\n\n @Input('name')\n get name(): string {\n return this._name;\n }\n set name(value: string) {\n if (typeof value === 'string') {\n this._name = value;\n }\n }\n\n @Input('type')\n get type(): string {\n return this._type;\n }\n set type(value: string) {\n if (typeof value === 'string') {\n this._type = value;\n }\n }\n\n @Input('id')\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n if (typeof value === 'string') {\n this._id = value;\n }\n }\n\n @Input('disabled')\n get disabled(): any {\n return this._disabled;\n }\n set disabled(value: any) {\n if (value !== null && value !== false) {\n this._disabled = '';\n } else {\n this._disabled = null;\n }\n }\n\n get role(): string {\n return this.inMenu ? 'menuitem' : null;\n }\n\n ngAfterViewInit() {\n this._enableService = true;\n }\n\n loadingStateChange(state: ClrLoadingState): void {\n this.loading = state === ClrLoadingState.LOADING;\n }\n\n emitClick(): void {\n this._click.emit(true);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, OnDestroy } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n/**\n * @description\n *\n * Developers should explicitly add this service to providers; it then can be injected\n * into a constructor and used as a notifier for the `takeUntil` operator. This eliminates\n * the need for boilerplates with subscriptions, and we don't need to implement the `OnDestroy`\n * interface and teardown subscriptions there.\n *\n * This can be used as follows:\n * ```ts\n * @Component({\n * selector: 'clr-button-group',\n * templateUrl: 'button-group.html',\n * providers: [ClrDestroyService],\n * })\n * export class ClrButtonGroup {\n * constructor(public buttonGroupNewService: ButtonInGroupService, private destroy$: ClrDestroyService) {}\n *\n * ngAfterContentInit() {\n * this.buttonGroupNewService.changes.pipe(takeUntil(this.destroy$)).subscribe(button => this.rearrangeButton(button));\n * }\n * }\n * ```\n */\n@Injectable()\nexport class ClrDestroyService extends Subject<void> implements OnDestroy {\n ngOnDestroy(): void {\n this.next();\n this.complete();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ArrowKeyDirection {\n UP = 'up',\n DOWN = 'down',\n LEFT = 'left',\n RIGHT = 'right',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, Optional, Renderer2, SkipSelf } from '@angular/core';\nimport { isObservable, of } from 'rxjs';\n\nimport { ArrowKeyDirection } from './arrow-key-direction.enum';\nimport { FocusableItem } from './focusable-item/focusable-item';\n\n@Injectable()\nexport class FocusService {\n private _current: FocusableItem;\n private _unlistenFuncs: (() => void)[] = [];\n\n constructor(private renderer: Renderer2) {}\n\n get current() {\n return this._current;\n }\n\n reset(first: FocusableItem) {\n this._current = first;\n }\n\n listenToArrowKeys(el: HTMLElement) {\n // The following listeners return false when there was an action to take for the key pressed,\n // in order to prevent the default behavior of that key.\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowup', () => !this.move(ArrowKeyDirection.UP)));\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowdown', () => !this.move(ArrowKeyDirection.DOWN)));\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowleft', () => !this.move(ArrowKeyDirection.LEFT)));\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.arrowright', () => !this.move(ArrowKeyDirection.RIGHT)));\n }\n\n registerContainer(el: HTMLElement, tabIndex = '0') {\n this.renderer.setAttribute(el, 'tabindex', tabIndex);\n this.listenToArrowKeys(el);\n // The following listeners return false when there was an action to take for the key pressed,\n // in order to prevent the default behavior of that key.\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.space', () => !this.activateCurrent()));\n this._unlistenFuncs.push(this.renderer.listen(el, 'keydown.enter', () => !this.activateCurrent()));\n }\n\n moveTo(item: FocusableItem) {\n /**\n * Make sure that item is not undefined,\n * This is safety net in the case that someone sometime decide to\n * call this method without having FocusableItem.\n */\n if (item === undefined) {\n return;\n }\n\n if (this.current) {\n this.current.blur();\n }\n item.focus();\n this._current = item;\n }\n\n move(direction: ArrowKeyDirection): boolean {\n let moved = false;\n if (this.current) {\n const next = this.current[direction];\n if (next) {\n // Turning the value into an Observable isn't great, but it's the fastest way to avoid code duplication.\n // If performance ever matters for this, we can refactor using additional private methods.\n const nextObs = isObservable(next) ? next : of(next);\n nextObs.subscribe(item => {\n if (item) {\n this.moveTo(item);\n moved = true;\n }\n });\n }\n }\n return moved;\n }\n\n activateCurrent() {\n if (this.current && this.current.activate) {\n this.current.activate();\n return true;\n }\n return false;\n }\n\n detachListeners() {\n this._unlistenFuncs.forEach(unlisten => unlisten());\n }\n}\n\nexport function clrFocusServiceFactory(existing: FocusService, renderer: Renderer2) {\n return existing || new FocusService(renderer);\n}\n\nexport const FOCUS_SERVICE_PROVIDER = {\n provide: FocusService,\n useFactory: clrFocusServiceFactory,\n deps: [[new Optional(), new SkipSelf(), FocusService], Renderer2],\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrSide {\n BEFORE = -1,\n AFTER = 1,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrAlignment } from './alignment.enum';\nimport { ClrAxis } from './axis.enum';\nimport { ClrSide } from './side.enum';\n\ninterface ClrPopoverPositionsInterface {\n axis: ClrAxis;\n side: ClrSide;\n anchor: ClrAlignment;\n content: ClrAlignment;\n}\n\nexport interface ClrPopoverPositions {\n [key: string]: any;\n}\n\nexport class ClrPopoverPositions {\n static 'top-right': ClrPopoverPositionsInterface = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.BEFORE,\n anchor: ClrAlignment.END,\n content: ClrAlignment.END,\n };\n\n static 'top-left': ClrPopoverPositionsInterface = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.BEFORE,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n\n static 'bottom-right': ClrPopoverPositionsInterface = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.END,\n content: ClrAlignment.END,\n };\n\n static 'bottom-left': ClrPopoverPositionsInterface = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n\n static 'right-top': ClrPopoverPositionsInterface = {\n axis: ClrAxis.HORIZONTAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.CENTER,\n content: ClrAlignment.END,\n };\n\n static 'right-bottom': ClrPopoverPositionsInterface = {\n axis: ClrAxis.HORIZONTAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n\n static 'left-top': ClrPopoverPositionsInterface = {\n axis: ClrAxis.HORIZONTAL,\n side: ClrSide.BEFORE,\n anchor: ClrAlignment.CENTER,\n content: ClrAlignment.END,\n };\n\n static 'left-bottom': ClrPopoverPositionsInterface = {\n axis: ClrAxis.HORIZONTAL,\n side: ClrSide.BEFORE,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ElementRef, InjectionToken } from '@angular/core';\n\nexport const POPOVER_HOST_ANCHOR = new InjectionToken<ElementRef>('POPOVER_HOST_ANCHOR');\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, HostListener, OnDestroy, OnInit } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrPopoverToggleService } from './providers/popover-toggle.service';\n\n@Directive({\n standalone: true,\n})\nexport class ClrStopEscapePropagationDirective implements OnInit, OnDestroy {\n private subscription: Subscription;\n private lastOpenChange: boolean | null = null;\n\n constructor(private toggleService: ClrPopoverToggleService) {}\n\n ngOnInit() {\n this.subscription = this.toggleService.openChange.subscribe(open => {\n this.lastOpenChange = open;\n });\n }\n\n ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n @HostListener('keyup.escape', ['$event'])\n onEscapeKey(event: KeyboardEvent) {\n if (this.lastOpenChange !== null) {\n if (this.lastOpenChange === false) {\n event.stopPropagation();\n }\n\n this.lastOpenChange = null;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef } from '@angular/core';\n\nimport { POPOVER_HOST_ANCHOR } from '../../popover/common/popover-host-anchor.token';\nimport { ClrPopoverEventsService } from './providers/popover-events.service';\nimport { ClrPopoverPositionService } from './providers/popover-position.service';\nimport { ClrPopoverToggleService } from './providers/popover-toggle.service';\nimport { ClrStopEscapePropagationDirective } from './stop-escape-propagation.directive';\n\n@Directive({\n standalone: true,\n providers: [\n ClrPopoverToggleService,\n ClrPopoverEventsService,\n ClrPopoverPositionService,\n { provide: POPOVER_HOST_ANCHOR, useExisting: ElementRef },\n ],\n hostDirectives: [ClrStopEscapePropagationDirective],\n})\nexport class ClrPopoverHostDirective {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable } from 'rxjs';\n\nimport { ArrowKeyDirection } from '../arrow-key-direction.enum';\nimport { FocusableItem } from './focusable-item';\n\nexport class Linkers {\n /**\n * Links a set of focusable items to a parent along one direction\n */\n static linkParent(\n items: FocusableItem[],\n parent: FocusableItem | Observable<FocusableItem>,\n direction: ArrowKeyDirection\n ) {\n items.forEach(item => (item[direction] = parent));\n }\n\n /**\n * Double-links a set of focusable items vertically, possibly looping\n */\n static linkVertical(items: FocusableItem[], loop = true) {\n items.forEach((item, index) => {\n if (index > 0) {\n item.up = items[index - 1];\n }\n if (index < items.length - 1) {\n item.down = items[index + 1];\n }\n });\n if (loop && items.length > 1) {\n items[0].up = items[items.length - 1];\n items[items.length - 1].down = items[0];\n }\n }\n}\n\n// Right now I only need the two linkers above, but we can easily add more linkers. A couple examples:\n// export function linkHorizontal(items: FocusableItem[], loop = true);\n// export function linkTable(items: FocusableItem[][]);\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum InitialFocus {\n FIRST_ITEM = 'first',\n LAST_ITEM = 'last',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationMetadata, state, style, transition } from '@angular/animations';\n\nimport { defaultAnimationTiming } from '../constants';\n\nexport function collapse(): AnimationMetadata[] {\n 'use strict';\n return [\n state('true', style({ height: 0, 'overflow-y': 'hidden' })),\n transition('true => false', [animate(defaultAnimationTiming, style({ height: '*', 'overflow-y': 'hidden' }))]),\n transition('false => true', [style({ height: '*', 'overflow-y': 'hidden' }), animate(defaultAnimationTiming)]),\n ];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './collapse';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/*\n * If we someday want to be able to render the datagrid in a webworker,\n * this is where we would test if we're in headless mode. Right now it's not testing anything, but any access\n * to native DOM elements' methods and properties in the Datagrid happens here.\n */\n\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class DomAdapter {\n userDefinedWidth(element: HTMLElement): number {\n element.classList.add('datagrid-cell-width-zero');\n const userDefinedWidth = this.clientRect(element).width;\n element.classList.remove('datagrid-cell-width-zero');\n return userDefinedWidth;\n }\n\n scrollBarWidth(element: any) {\n return element.offsetWidth - element.clientWidth;\n }\n\n scrollWidth(element: any) {\n return element.scrollWidth || 0;\n }\n\n computedHeight(element: any): number {\n return parseInt(getComputedStyle(element).getPropertyValue('height'), 10);\n }\n\n clientRect(element: any): DOMRect {\n const elementClientRect = element.getBoundingClientRect();\n return {\n top: parseInt(elementClientRect.top, 10),\n bottom: parseInt(elementClientRect.bottom, 10),\n left: parseInt(elementClientRect.left, 10),\n right: parseInt(elementClientRect.right, 10),\n width: parseInt(elementClientRect.width, 10),\n height: parseInt(elementClientRect.height, 10),\n } as DOMRect;\n }\n\n minWidth(element: any): number {\n return parseInt(getComputedStyle(element).getPropertyValue('min-width'), 10);\n }\n\n focus(element: any): void {\n element.focus();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, style, transition, trigger } from '@angular/animations';\nimport { Component, ElementRef, HostBinding, HostListener, Input } from '@angular/core';\n\nimport { DomAdapter } from '../../dom-adapter/dom-adapter';\n\n@Component({\n selector: 'clr-expandable-animation',\n template: `<ng-content></ng-content>`,\n styles: [\n `\n :host {\n display: block;\n overflow: hidden;\n }\n `,\n ],\n animations: [\n trigger('expandAnimation', [\n transition('true <=> false', [\n style({ height: '{{startHeight}}px' }),\n animate('0.2s ease-in-out', style({ height: '*' })),\n ]),\n ]),\n ],\n providers: [DomAdapter],\n})\nexport class ClrExpandableAnimation {\n @Input() clrExpandTrigger: any;\n\n startHeight = 0;\n\n constructor(private element: ElementRef, private domAdapter: DomAdapter) {}\n\n @HostBinding('@expandAnimation')\n get expandAnimation() {\n return { value: this.clrExpandTrigger, params: { startHeight: this.startHeight } };\n }\n\n @HostListener('@expandAnimation.done')\n animationDone() {\n // A \"safe\" auto-update of the height ensuring basic OOTB user experience .\n // Prone to small jumps in initial animation height if data was changed in the meantime, window was resized, etc.\n // For optimal behavior call manually updateStartHeight() from the parent component before initiating the update.\n this.updateStartHeight();\n }\n\n updateStartHeight() {\n this.startHeight = this.domAdapter.computedHeight(this.element.nativeElement) || 0;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Type } from '@angular/core';\n\nimport { ClrExpandableAnimation } from './expandable-animation';\n\nexport * from './expandable-animation';\n\nexport const EXPANDABLE_ANIMATION_DIRECTIVES: Type<any>[] = [ClrExpandableAnimation];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationMetadata, style, transition } from '@angular/animations';\n\nimport { defaultAnimationTiming } from '../constants';\n\nexport function fade(opacity = 1): AnimationMetadata[] {\n return [\n transition('void => *', [style({ opacity: 0 }), animate(defaultAnimationTiming, style({ opacity: opacity }))]),\n transition('* => void', [animate(defaultAnimationTiming, style({ opacity: 0 }))]),\n ];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './fade';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationMetadata, style, transition } from '@angular/animations';\n\nimport { defaultAnimationTiming } from '../constants';\n\nexport function fadeSlide(direction: string): AnimationMetadata[] {\n let transform: string = null;\n if (direction === 'up') {\n transform = 'translate(0, 25%)';\n } else if (direction === 'down') {\n transform = 'translate(0, -25%)';\n } else if (direction === 'left') {\n transform = 'translate(25%, 0)';\n } else if (direction === 'right') {\n transform = 'translate(-25%, 0)';\n } else {\n throw new Error('Unknown direction ' + direction + ' for slide animation.');\n }\n return [\n transition('void => *', [style({ opacity: 0, transform: transform }), animate(defaultAnimationTiming)]),\n transition('* => void', [animate(defaultAnimationTiming, style({ opacity: 0, transform: transform }))]),\n ];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './fade-slide';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationMetadata, style, transition } from '@angular/animations';\n\nimport { defaultAnimationTiming } from '../constants';\n\nexport function slide(direction: string): AnimationMetadata[] {\n let transform: string = null;\n if (direction === 'up') {\n transform = 'translate(0, 25%)';\n } else if (direction === 'down') {\n transform = 'translate(0, -25%)';\n } else if (direction === 'left') {\n transform = 'translate(25%, 0)';\n } else if (direction === 'right') {\n transform = 'translate(-25%, 0)';\n } else {\n throw new Error('Unknown direction ' + direction + ' for slide animation.');\n }\n return [\n transition('void => *', [style({ transform: transform }), animate(defaultAnimationTiming)]),\n transition('* => void', [animate(defaultAnimationTiming, style({ transform: transform }))]),\n ];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './slide';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './collapse/index';\nexport * from './expandable-animation/index';\nexport * from './fade/index';\nexport * from './fade-slide/index';\nexport * from './slide/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrLoading } from './loading';\n\nexport const CLR_LOADING_DIRECTIVES: Type<any>[] = [ClrLoading];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_LOADING_DIRECTIVES],\n exports: [CLR_LOADING_DIRECTIVES],\n})\nexport class ClrLoadingModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './loading';\nexport * from './loading-listener';\nexport * from './loading.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, InjectionToken } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nlet activeCounter = 0;\n\nexport const IF_ACTIVE_ID = new InjectionToken<number>('IF_ACTIVE_ID');\n\nexport function tokenFactory() {\n return ++activeCounter;\n}\n\nexport const IF_ACTIVE_ID_PROVIDER = {\n provide: IF_ACTIVE_ID,\n useFactory: tokenFactory,\n};\n\n@Injectable()\n\n/*********\n * @class IfActiveService\n *\n * @description\n * An injectable service used by IfActive structural directives and the components that implement IfActive in their\n * templates. It holds the value of the current state and provides an Observable that both the directive and the\n * implementing component can subscribe to in order to take action on current value changes.\n *\n */\nexport class IfActiveService {\n /********\n * @property _currentChange\n *\n * @description\n * A RXJS Subject that updates and provides subscriptions to for the current current state of a component template\n * implemting the IfActive structural directive.\n *\n */\n private _currentChange = new Subject<number>();\n\n /*********\n * @property _current\n *\n * @description\n * A property holding the current value for current/closed state of an IfActive structural directive.\n */\n private _current: number;\n\n /*********\n *\n * @description\n * A getter function that provides an observable for the _current Subject.\n *\n */\n get currentChange(): Observable<number> {\n return this._currentChange.asObservable();\n }\n\n /*********\n *\n * @description\n * A property that gets/sets the current state of _current for this instance of IfActive structural directive.\n * And, broadcasts the new value to all subscribers.\n *\n */\n get current(): number {\n return this._current;\n }\n set current(value: number) {\n if (this._current !== value) {\n this._current = value;\n this._currentChange.next(value);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n Output,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { IF_ACTIVE_ID, IfActiveService } from './if-active.service';\n\n@Directive({\n selector: '[clrIfActive]',\n})\n\n/**********\n *\n * @class ClrIfActive\n *\n * @description\n * A structural directive that controls whether or not the associated TemplateRef is instantiated or not.\n * It makes use of a Component instance level service: IfActiveService to maintain state between itself and\n * the component using it in the component template.\n *\n */\nexport class ClrIfActive implements OnDestroy {\n /**********\n * @property activeChange\n *\n * @description\n * An event emitter that emits when the active property is set to allow for 2way binding when the directive is\n * used with de-structured / de-sugared syntax.\n *\n */\n @Output('clrIfActiveChange') activeChange = new EventEmitter<boolean>(false);\n\n private subscription: Subscription;\n private wasActive = false;\n\n constructor(\n private ifActiveService: IfActiveService,\n @Inject(IF_ACTIVE_ID) private id: number,\n private template: TemplateRef<any>,\n private container: ViewContainerRef\n ) {\n this.checkAndUpdateView(ifActiveService.current);\n\n this.subscription = this.ifActiveService.currentChange.subscribe(newCurrentId => {\n this.checkAndUpdateView(newCurrentId);\n });\n }\n\n /**\n * @description\n * A property that gets/sets IfActiveService.active with value.\n *\n */\n @Input('clrIfActive')\n get active() {\n return this.ifActiveService.current === this.id;\n }\n set active(value: boolean | string) {\n if (value) {\n this.ifActiveService.current = this.id;\n }\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n /**\n * @description\n * Function that takes a any value and either created an embedded view for the associated ViewContainerRef or,\n * Clears all views from the ViewContainerRef\n */\n updateView(value: boolean) {\n if (value) {\n this.container.createEmbeddedView(this.template);\n } else {\n this.container.clear();\n }\n }\n\n private checkAndUpdateView(currentId: number) {\n const isNowActive = currentId === this.id;\n // only emit if the new active state is changed since last time.\n if (isNowActive !== this.wasActive) {\n this.updateView(isNowActive);\n this.activeChange.emit(isNowActive);\n this.wasActive = isNowActive;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, EventEmitter, Input, OnDestroy, Output, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrPopoverToggleService } from '../popover/providers/popover-toggle.service';\n\n@Directive({\n selector: '[clrIfOpen]',\n})\n\n/**********\n *\n * @class ClrIfOpen\n *\n * @description\n * A structural directive that controls whether or not the associated TemplateRef is instantiated or not.\n * It makes use of a Component instance level service: ClrPopoverToggleService to maintain state between itself and the component\n * using it in the component template.\n *\n */\nexport class ClrIfOpen implements OnDestroy {\n static ngAcceptInputType_open: boolean | '';\n\n /**********\n * @property openChange\n *\n * @description\n * An event emitter that emits when the open property is set to allow for 2way binding when the directive is\n * used with de-structured / de-sugared syntax.\n */\n @Output('clrIfOpenChange') openChange = new EventEmitter<boolean>(false);\n\n private subscription: Subscription;\n\n constructor(\n private toggleService: ClrPopoverToggleService,\n private template: TemplateRef<any>,\n private container: ViewContainerRef\n ) {\n this.subscription = this.toggleService.openChange.subscribe(change => {\n this.updateView(change);\n this.openChange.emit(change);\n });\n }\n\n /**\n * @description\n * A property that gets/sets ClrPopoverToggleService.open with value.\n */\n @Input('clrIfOpen')\n get open() {\n return this.toggleService.open;\n }\n set open(value: boolean | string) {\n this.toggleService.open = value as boolean;\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n /**\n * @description\n * Function that takes a boolean value and either created an embedded view for the associated ViewContainerRef or,\n * Clears all views from the ViewContainerRef\n *\n * @param value\n */\n updateView(value: boolean) {\n if (value) {\n this.container.createEmbeddedView(this.template);\n } else {\n this.container.clear();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { IfExpandService } from './if-expanded.service';\n\n@Directive({\n selector: '[clrIfExpanded]',\n})\nexport class ClrIfExpanded implements OnInit, OnDestroy {\n @Output('clrIfExpandedChange') expandedChange = new EventEmitter<boolean>(true);\n\n private _expanded = false;\n\n /**\n * Subscriptions to all the services and queries changes\n */\n private _subscriptions: Subscription[] = [];\n\n constructor(\n @Optional() private template: TemplateRef<any>,\n private container: ViewContainerRef,\n private el: ElementRef,\n private renderer: Renderer2,\n private expand: IfExpandService\n ) {\n this._subscriptions.push(\n expand.expandChange.subscribe(() => {\n this.updateView();\n this.expandedChange.emit(this.expand.expanded);\n })\n );\n }\n\n @Input('clrIfExpanded')\n get expanded(): boolean | string {\n return this._expanded;\n }\n set expanded(value: boolean | string) {\n if (typeof value === 'boolean') {\n this.expand.expanded = value;\n this._expanded = value;\n }\n }\n\n ngOnInit() {\n this.expand.expandable++;\n this.updateView();\n }\n\n ngOnDestroy() {\n this.expand.expandable--;\n this._subscriptions.forEach((sub: Subscription) => sub.unsubscribe());\n }\n\n private updateView() {\n if (this.expand.expanded && this.container.length !== 0) {\n return;\n }\n if (this.template) {\n if (this.expand.expanded) {\n // Should we pass a context? I don't see anything useful to pass right now,\n // but we can come back to it in the future as a solution for additional features.\n this.container.createEmbeddedView(this.template);\n } else {\n // TODO: Move when we move the animation logic to Datagrid Row Expand\n // We clear before the animation is over. Not ideal, but doing better would involve a much heavier\n // process for very little gain. Once Angular animations are dynamic enough, we should be able to\n // get the optimal behavior.\n this.container.clear();\n }\n } else {\n try {\n // If we don't have a template ref, we fallback to a crude display: none for now.\n if (this.expand.expanded) {\n this.renderer.setStyle(this.el.nativeElement, 'display', null);\n } else {\n this.renderer.setStyle(this.el.nativeElement, 'display', 'none');\n }\n } catch (e) {\n // We catch the case where clrIfExpanded was put on a non-DOM element, and we just do nothing\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIfActive } from './if-active.directive';\nimport { ClrIfExpanded } from './if-expanded.directive';\nimport { ClrIfOpen } from './if-open.directive';\n\nexport const CONDITIONAL_DIRECTIVES: Type<any>[] = [ClrIfActive, ClrIfOpen, ClrIfExpanded];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CONDITIONAL_DIRECTIVES],\n exports: [CONDITIONAL_DIRECTIVES],\n})\nexport class ClrConditionalModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './if-active.directive';\nexport * from './if-open.directive';\nexport * from './if-expanded.directive';\nexport * from './conditional.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport interface ClrCommonStrings {\n /**\n * Open button\n */\n open: string;\n /**\n * Close button\n */\n close: string;\n /**\n * Show button\n */\n show: string;\n /**\n * Hide button\n */\n hide: string;\n /**\n * Delete button\n */\n delete?: string;\n /**\n * Expandable components: expand caret\n */\n expand: string;\n /**\n * Expandable components: collapse caret\n */\n collapse: string;\n /**\n * Overflow menus: ellipsis button\n */\n more: string;\n /**\n * Selectable components: checkbox or radio\n */\n select: string;\n /**\n * Selectable components: checkbox to select all\n */\n selectAll: string;\n /**\n * Selected item(s): combobox\n */\n selection?: string;\n /**\n * Pagination: previous button\n */\n previous: string;\n /**\n * Pagination: next button\n */\n next: string;\n /**\n * Pagination: go to current\n */\n current: string;\n /**\n * Alert levels: info\n */\n info: string;\n /**\n * Alert levels: success\n */\n success: string;\n /**\n * Alert levels: warning\n */\n warning: string;\n /**\n * Alert levels: danger\n */\n danger: string;\n /**\n * Datagrid: row actions\n */\n rowActions: string;\n /**\n * Datagrid: pick columns\n */\n pickColumns: string;\n /**\n * Datagrid: show columns\n */\n showColumns: string;\n /**\n * Datagrid: sort of columns\n */\n sortColumn: string;\n /**\n * Datagrid: first page\n */\n firstPage: string;\n /**\n * Datagrid: last page\n */\n lastPage: string;\n /**\n * Datagrid: next page\n */\n nextPage: string;\n /**\n * Datagrid: previous page\n */\n previousPage: string;\n /**\n * Datagrid: previous page\n */\n currentPage: string;\n /**\n * Datagird: total pages\n */\n totalPages: string;\n /**\n * Datagrid string filter: filter items\n */\n filterItems: string;\n /**\n * Datagrid numeric filter: min\n */\n minValue: string;\n /**\n * Datagrid numeric filter: max\n */\n maxValue: string;\n /**\n * Datagrid filter toggle button\n */\n datagridFilterAriaLabel?: string;\n /**\n * Datagrid filter dialog\n */\n datagridFilterDialogAriaLabel?: string;\n /**\n * Datagrid column handler string\n */\n columnSeparatorAriaLabel?: string;\n /**\n * Datagrid column resize handler string\n */\n columnSeparatorDescription?: string;\n /**\n * Modal start of content\n */\n modalContentStart: string;\n /**\n * Modal end of content\n */\n modalContentEnd: string;\n\n /**\n * Datagrid Show columns menu description\n */\n showColumnsMenuDescription: string;\n /**\n * Datagrid Show columns / All columns selected confirmation\n */\n allColumnsSelected: string;\n /**\n * Signpost Toggle Button\n */\n signpostToggle: string;\n /**\n * Signpost Close Button\n * (used inside signpost content components)\n */\n signpostClose: string;\n /*\n * Loaders/Spinners\n */\n loading: string;\n /**\n * Datagrid: detail pane start content for screen reader\n */\n detailPaneStart: string;\n /**\n * Datagrid: detail pane end content for screen reader\n */\n detailPaneEnd: string;\n /**\n * Datagrid: Single selection header\n */\n singleSelectionAriaLabel: string;\n\n /**\n * Datagrid: Single actionable header\n */\n singleActionableAriaLabel: string;\n\n /**\n * Datagrid: Expandable row\n */\n detailExpandableAriaLabel: string;\n\n /**\n * Alert: Close alert button\n */\n alertCloseButtonAriaLabel: string;\n\n /**\n * Alert: Next Alert button\n */\n alertNextAlertAriaLabel: string;\n\n /**\n * Alert: Previous Alert button\n */\n alertPreviousAlertAriaLabel: string;\n\n /**\n * Datepicker UI labels\n */\n datepickerDialogLabel: string;\n datepickerToggleChooseDateLabel: string;\n datepickerToggleChangeDateLabel: string;\n datepickerPreviousMonth: string;\n datepickerCurrentMonth: string;\n datepickerNextMonth: string;\n datepickerPreviousDecade: string;\n datepickerNextDecade: string;\n datepickerCurrentDecade: string;\n datepickerSelectMonthText: string;\n datepickerSelectYearText: string;\n datepickerSelectedLabel: string;\n /**\n * Stack View: Record has changed\n */\n stackViewChanged: string;\n // Responsive Nav\n responsiveNavToggleOpen: string;\n responsiveNavToggleClose: string;\n responsiveNavOverflowOpen: string;\n responsiveNavOverflowClose: string;\n // Vertical Nav\n verticalNavToggle: string;\n /**\n * Timeline Steps\n */\n timelineStepNotStarted: string;\n timelineStepCurrent: string;\n timelineStepSuccess: string;\n timelineStepError: string;\n timelineStepProcessing: string;\n\n // Datagrid Helper text for expandable rows\n datagridExpandableBeginningOf?: string;\n datagridExpandableEndOf?: string;\n datagridExpandableRowContent?: string;\n datagridExpandableRowsHelperText?: string;\n\n /**\n * Combobox Searching Text\n */\n comboboxSearching: string;\n comboboxDelete: string;\n comboboxSelection: string;\n comboboxSelected: string;\n comboboxNoResults: string;\n comboboxOpen: string;\n\n /**\n * Wizard: Screen-reader text for completed step.\n */\n wizardStepSuccess: string;\n\n /**\n * Wizard: Screen-reader text for step with error.\n */\n wizardStepError: string;\n\n /**\n * Wizard: Aria-label for the stepnav section.\n */\n wizardStepnavAriaLabel: string;\n\n /**\n * Password Input\n * Screen-reader text for the hide/show password field button.\n */\n passwordHide: string;\n passwordShow: string;\n\n /**\n * Datagrid footer; sr-only text after the number of selected rows.\n */\n selectedRows: string;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './common-strings.service';\nexport * from './common-strings.interface';\nexport * from './common-strings.default';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrAlignment } from '../enums/alignment.enum';\nimport { ClrAxis } from '../enums/axis.enum';\nimport { ClrSide } from '../enums/side.enum';\n\n/**\n * ClrPopoverPosition\n *\n * @description\n * A ClrPopover needs a way to describe the relationship between the anchor and the content (for when its\n * visible). The ClrPopoverPosition interface is that description.\n */\n\nexport interface ClrPopoverPosition {\n axis: ClrAxis; // The axis on which content and anchor push against each other\n side: ClrSide; // The side where content appears (top/bottom or left/right depending on the axis)\n anchor: ClrAlignment; // The position that the content element should align to\n content: ClrAlignment; // The position that the anchor element should align to\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './enums/alignment.enum';\nexport * from './enums/axis.enum';\nexport * from './enums/side.enum';\nexport * from './interfaces/popover-position.interface';\nexport * from './providers/popover-events.service';\nexport * from './providers/popover-position.service';\nexport * from './providers/popover-toggle.service';\nexport * from './popover-anchor';\nexport * from './popover-content';\nexport * from './popover-host.directive';\nexport * from './stop-escape-propagation.directive';\n\nexport { ClrPopoverModuleNext as ÇlrClrPopoverModuleNext } from './popover.module';\nexport { ClrPopoverCloseButton as ÇlrClrPopoverCloseButton } from './popover-close-button';\nexport { ClrPopoverOpenCloseButton as ÇlrClrPopoverOpenCloseButton } from './popover-open-close-button';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { InjectionToken } from '@angular/core';\n\nexport const FOCUS_ON_VIEW_INIT = new InjectionToken<boolean>('FOCUS_ON_VIEW_INIT');\n\n// This provider holds the default value for clrFocusOnViewInit directive's isEnabled property.\n// So users can interject this provider and set their own value for this provider.\nexport const FOCUS_ON_VIEW_INIT_PROVIDER = {\n provide: FOCUS_ON_VIEW_INIT,\n useValue: true,\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n PLATFORM_ID,\n Renderer2,\n} from '@angular/core';\nimport { fromEvent, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { FOCUS_ON_VIEW_INIT } from './focus-on-view-init.provider';\n\n/* This directive is for guiding the document focus to the newly added content when its view is initialized\n so that assistive technologies can read its content. */\n@Directive({\n selector: '[clrFocusOnViewInit]',\n})\nexport class ClrFocusOnViewInit implements AfterViewInit, OnDestroy {\n private document: Document;\n private directFocus = true; // true if the element gets focused without need to set tabindex;\n private destroy$ = new Subject<void>();\n private _isEnabled: boolean;\n\n constructor(\n private el: ElementRef,\n @Inject(PLATFORM_ID) private platformId: any,\n @Inject(FOCUS_ON_VIEW_INIT) private focusOnViewInit: boolean,\n @Inject(DOCUMENT) document: any,\n private renderer: Renderer2,\n ngZone: NgZone\n ) {\n this._isEnabled = this.focusOnViewInit;\n\n // Angular compiler doesn't understand the type Document\n // when working out the metadata for injectable parameters,\n // even though it understands the injection token DOCUMENT\n // https://github.com/angular/angular/issues/20351\n this.document = document;\n\n ngZone.runOutsideAngular(() =>\n fromEvent(el.nativeElement, 'focusout')\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n if (!this.directFocus) {\n // manually set attributes and styles should be removed\n this.renderer.removeAttribute(this.el.nativeElement, 'tabindex');\n this.renderer.setStyle(this.el.nativeElement, 'outline', null);\n }\n })\n );\n }\n\n @Input('clrFocusOnViewInit')\n set isEnabled(value: boolean | string) {\n if (this.focusOnViewInit && typeof value === 'boolean') {\n this._isEnabled = value;\n }\n }\n\n ngAfterViewInit() {\n this.focus();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n\n private focus() {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n if (!this._isEnabled) {\n return;\n }\n if (this.document && this.document.activeElement !== this.el.nativeElement) {\n this.el.nativeElement.focus();\n if (this.document.activeElement !== this.el.nativeElement) {\n // if it's not directly focused now, it means it was a non-interactive element\n // so we need to give it a tabindex.\n this.directFocus = false;\n this.renderer.setAttribute(this.el.nativeElement, 'tabindex', '-1');\n this.renderer.setStyle(this.el.nativeElement, 'outline', 'none');\n this.el.nativeElement.focus();\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrFocusOnViewInit } from './focus-on-view-init';\nimport { FOCUS_ON_VIEW_INIT_PROVIDER } from './focus-on-view-init.provider';\n\nexport const FOCUS_ON_VIEW_INIT_DIRECTIVES: Type<any>[] = [ClrFocusOnViewInit];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [FOCUS_ON_VIEW_INIT_DIRECTIVES],\n providers: [FOCUS_ON_VIEW_INIT_PROVIDER],\n exports: [FOCUS_ON_VIEW_INIT_DIRECTIVES],\n})\nexport class ClrFocusOnViewInitModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './focus-on-view-init';\nexport { FOCUS_ON_VIEW_INIT } from './focus-on-view-init.provider';\nexport * from './focus-on-view-init.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { Directive } from '@angular/core';\n\n@Directive({\n standalone: true,\n})\nexport class ClrStandaloneCdkTrapFocus extends CdkTrapFocus {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './standalone-cdk-trap-focus.directive';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './destroy.service';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './animations/index';\nexport * from './loading/index';\nexport * from './conditional/index';\nexport * from './i18n/index';\nexport * from './popover/index';\nexport * from './focus/focus-on-view-init/index';\nexport * from './focus/focus-trap/index';\nexport * from './destroy';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, Renderer2 } from '@angular/core';\n\nimport { ClrPopoverToggleService } from '../../utils';\nimport { FocusService } from '../../utils/focus/focus.service';\nimport { FocusableItem } from '../../utils/focus/focusable-item/focusable-item';\nimport { Linkers } from '../../utils/focus/focusable-item/linkers';\nimport { InitialFocus } from './button-group-focus.enum';\n\n@Injectable()\nexport class ButtonGroupFocusHandler {\n initialFocus: InitialFocus = InitialFocus.FIRST_ITEM;\n\n private menu: HTMLElement;\n private menuToggle: HTMLElement;\n private buttons: FocusableItem[];\n private _unlistenFuncs: (() => void)[] = [];\n\n constructor(\n private focusService: FocusService,\n private toggleService: ClrPopoverToggleService,\n private renderer: Renderer2\n ) {}\n\n ngOnDestroy() {\n this._unlistenFuncs.forEach((unlisten: () => void) => unlisten());\n this.focusService.detachListeners();\n }\n\n initialize({ menu, menuToggle }: { menu: HTMLElement; menuToggle: HTMLElement }) {\n this.menu = menu;\n this.menuToggle = menuToggle;\n\n this.focusService.registerContainer(this.menu, '-1');\n this.listenToKeys();\n this.linkButtons();\n\n switch (this.initialFocus) {\n case InitialFocus.LAST_ITEM:\n this.focusLastItem();\n break;\n default:\n this.focusFirstItem();\n break;\n }\n }\n\n private resetButtonsFocus() {\n this.buttons.forEach(button => {\n button.blur();\n });\n }\n\n private listenToKeys() {\n this._unlistenFuncs.push(\n this.renderer.listen(this.menu, 'keydown.shift.tab', event => this.closeMenu(event, false))\n );\n this._unlistenFuncs.push(this.renderer.listen(this.menu, 'keydown.tab', event => this.closeMenu(event, true)));\n }\n\n private closeMenu(event: KeyboardEvent, focusBackOnToggle: boolean) {\n this.toggleService.toggleWithEvent(event);\n if (focusBackOnToggle) {\n this.menuToggle.focus();\n }\n this.resetButtonsFocus();\n }\n\n private linkButtons() {\n const buttonElements = Array.from(this.menu.children) as HTMLElement[];\n this.buttons = buttonElements.map<FocusableItem>(buttonElement => {\n this._unlistenFuncs.push(this.renderer.listen(buttonElement, 'click', event => this.closeMenu(event, true)));\n return {\n id: buttonElement.id,\n value: buttonElement,\n focus: () => {\n buttonElement.setAttribute('tabindex', '0');\n buttonElement.focus();\n },\n blur: () => {\n buttonElement.setAttribute('tabindex', '-1');\n buttonElement.blur();\n },\n };\n });\n this.resetButtonsFocus();\n Linkers.linkVertical(this.buttons);\n }\n\n private focusFirstItem(): void {\n if (this.buttons.length) {\n this.focusService.moveTo(this.buttons[0]);\n }\n this.initialFocus = InitialFocus.FIRST_ITEM;\n }\n\n private focusLastItem(): void {\n if (this.buttons.length) {\n this.focusService.moveTo(this.buttons[this.buttons.length - 1]);\n }\n this.initialFocus = InitialFocus.FIRST_ITEM;\n }\n}\n\nexport const BUTTON_GROUP_FOCUS_HANDLER_PROVIDER = {\n provide: ButtonGroupFocusHandler,\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n AfterViewInit,\n Component,\n ContentChildren,\n ElementRef,\n Input,\n QueryList,\n ViewChild,\n} from '@angular/core';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { ClrDestroyService } from '../../utils/destroy/destroy.service';\nimport { FOCUS_SERVICE_PROVIDER } from '../../utils/focus/focus.service';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrPopoverPositions } from '../../utils/popover/enums/positions.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport {\n BUTTON_GROUP_FOCUS_HANDLER_PROVIDER,\n ButtonGroupFocusHandler,\n} from '../providers/button-group-focus-handler.service';\nimport { InitialFocus } from '../providers/button-group-focus.enum';\nimport { ButtonInGroupService } from '../providers/button-in-group.service';\nimport { ClrButton } from './button';\n\n@Component({\n selector: 'clr-button-group',\n templateUrl: 'button-group.html',\n providers: [ButtonInGroupService, ClrDestroyService, BUTTON_GROUP_FOCUS_HANDLER_PROVIDER, FOCUS_SERVICE_PROVIDER],\n hostDirectives: [ClrPopoverHostDirective],\n host: { '[class.btn-group]': 'true' },\n})\nexport class ClrButtonGroup implements AfterContentInit, AfterViewInit {\n @Input('clrToggleButtonAriaLabel') clrToggleButtonAriaLabel: string = this.commonStrings.keys.rowActions;\n\n @ViewChild('menuToggle') menuToggle: ElementRef<HTMLElement>;\n @ViewChild('menu') menu: ElementRef<HTMLElement>;\n\n @ContentChildren(ClrButton) buttons: QueryList<ClrButton>;\n\n popoverId = uniqueIdFactory();\n InitialFocus = InitialFocus;\n\n popoverPosition: ClrPopoverPosition = ClrPopoverPositions['bottom-left'];\n inlineButtons: ClrButton[] = [];\n menuButtons: ClrButton[] = [];\n\n // Indicates the position of the overflow menu\n private _menuPosition: string;\n\n constructor(\n public buttonGroupNewService: ButtonInGroupService,\n private toggleService: ClrPopoverToggleService,\n public commonStrings: ClrCommonStringsService,\n private destroy$: ClrDestroyService,\n private focusHandler: ButtonGroupFocusHandler\n ) {}\n\n @Input('clrMenuPosition')\n get menuPosition(): string {\n return this._menuPosition;\n }\n set menuPosition(pos: string) {\n if (pos && (ClrPopoverPositions as Record<string, any>)[pos]) {\n this._menuPosition = pos;\n } else {\n this._menuPosition = 'bottom-left';\n }\n\n this.popoverPosition = (ClrPopoverPositions as Record<string, any>)[this._menuPosition];\n }\n\n get open() {\n return this.toggleService.open;\n }\n\n /**\n * 1. Initializes the initial Button Group View\n * 2. Subscribes to changes on the ContentChildren\n * in case the user content projection changes\n */\n ngAfterContentInit() {\n this.initializeButtons();\n this.buttonGroupNewService.changes.pipe(takeUntil(this.destroy$)).subscribe(button => this.rearrangeButton(button));\n this.buttons.changes.subscribe(() => {\n this.initializeButtons();\n });\n }\n\n ngAfterViewInit() {\n this.handleFocusOnMenuOpen();\n }\n\n /**\n * Moves the button into the other ViewContainer\n * when an update is received.\n *\n * @param button\n */\n rearrangeButton(button: ClrButton): void {\n let fromView: ClrButton[];\n let toView: ClrButton[];\n if (button.inMenu) {\n fromView = this.inlineButtons;\n toView = this.menuButtons;\n } else {\n fromView = this.menuButtons;\n toView = this.inlineButtons;\n }\n const index: number = fromView.indexOf(button);\n if (index > -1) {\n fromView.splice(index, 1);\n const moveIndex = this.getMoveIndex(button);\n if (moveIndex <= toView.length) {\n toView.splice(moveIndex, 0, button);\n }\n }\n }\n\n openMenu(event: Event, initialFocus: InitialFocus) {\n this.focusHandler.initialFocus = initialFocus;\n if (!this.toggleService.open) {\n this.toggleService.toggleWithEvent(event);\n }\n }\n\n /**\n * Author: Eudes\n *\n * Finds the order of a button w.r.t other buttons\n *\n * @param buttonToMove\n * @returns\n */\n getMoveIndex(buttonToMove: ClrButton): number {\n const tempArr: ClrButton[] = this.buttons.filter(button => button.inMenu === buttonToMove.inMenu);\n return tempArr.indexOf(buttonToMove);\n }\n\n initializeButtons(): void {\n const tempInlineButtons: ClrButton[] = [];\n const tempInMenuButtons: ClrButton[] = [];\n this.buttons.forEach(button => {\n if (button.inMenu) {\n tempInMenuButtons.push(button);\n } else {\n tempInlineButtons.push(button);\n }\n });\n this.inlineButtons = tempInlineButtons;\n this.menuButtons = tempInMenuButtons;\n }\n\n private handleFocusOnMenuOpen() {\n this.toggleService.popoverVisible.pipe(takeUntil(this.destroy$)).subscribe(visible => {\n if (visible) {\n this.focusHandler.initialize({\n menu: this.menu.nativeElement,\n menuToggle: this.menuToggle.nativeElement,\n });\n }\n });\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<ng-template *ngFor=\"let inlineButton of inlineButtons\" [ngTemplateOutlet]=\"inlineButton.templateRef\"></ng-template>\n\n<div *ngIf=\"menuButtons.length > 0\" class=\"btn-group-overflow open\" [ngClass]=\"menuPosition\">\n <button\n #menuToggle\n class=\"btn dropdown-toggle\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n (keydown.arrowup)=\"openMenu($event, InitialFocus.LAST_ITEM)\"\n (keydown.arrowdown)=\"openMenu($event, InitialFocus.FIRST_ITEM)\"\n [attr.aria-controls]=\"popoverId\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"clrToggleButtonAriaLabel\"\n >\n <cds-icon shape=\"ellipsis-horizontal\" [attr.title]=\"commonStrings.keys.more\"></cds-icon>\n </button>\n <div\n #menu\n role=\"menu\"\n class=\"dropdown-menu clr-button-group-menu\"\n [id]=\"popoverId\"\n [attr.id]=\"popoverId\"\n [attr.aria-hidden]=\"!open\"\n *clrPopoverContent=\"open at popoverPosition; outsideClickToClose: true; scrollToClose: true\"\n >\n <ng-template *ngFor=\"let menuButton of menuButtons\" [ngTemplateOutlet]=\"menuButton.templateRef\"></ng-template>\n </div>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrPopoverModuleNext } from '../../utils/popover/popover.module';\nimport { ClrButton } from './button';\nimport { ClrButtonGroup } from './button-group';\n\nexport const CLR_BUTTON_GROUP_DIRECTIVES: Type<any>[] = [ClrButton, ClrButtonGroup];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrPopoverModuleNext],\n declarations: [CLR_BUTTON_GROUP_DIRECTIVES],\n exports: [CLR_BUTTON_GROUP_DIRECTIVES],\n})\nexport class ClrButtonGroupModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, keyframes, style, transition, trigger } from '@angular/animations';\nimport { Component, ElementRef, EventEmitter, Input, Output, Renderer2 } from '@angular/core';\n\nimport { ClrLoadingState } from '../../utils/loading/loading';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\n\n// minimum width to fit loading spinner\nconst MIN_BUTTON_WIDTH = 42;\n\n@Component({\n selector: 'button[clrLoading]',\n template: `\n <span @parent [ngSwitch]=\"state\">\n <span *ngSwitchCase=\"buttonState.LOADING\">\n <span @spinner class=\"spinner spinner-inline\"></span>\n </span>\n <span *ngSwitchCase=\"buttonState.SUCCESS\">\n <span\n @validated\n (@validated.done)=\"this.loadingStateChange(this.buttonState.DEFAULT)\"\n class=\"spinner spinner-inline spinner-check\"\n ></span>\n </span>\n <span *ngSwitchCase=\"buttonState.DEFAULT\" @defaultButton>\n <ng-content></ng-content>\n </span>\n </span>\n `,\n providers: [{ provide: LoadingListener, useExisting: ClrLoadingButton }],\n animations: [\n trigger('parent', [\n // Skip :enter animation on first render.\n // The button text/content should only be faded when transitioning to or from a non-default state.\n transition(':enter', []),\n ]),\n trigger('defaultButton', [\n transition(':enter', [style({ opacity: 0 }), animate('200ms 100ms ease-in', style({ opacity: 1 }))]),\n // TODO: see if we can get leave animation to work before spinner's enter animation\n transition(':leave', [style({ opacity: 0 })]),\n ]),\n trigger('spinner', [\n transition(':enter', [style({ opacity: 0 }), animate('200ms 100ms ease-in', style({ opacity: 1 }))]),\n transition(':leave', [style({ opacity: 1 }), animate('100ms ease-out', style({ opacity: 0 }))]),\n ]),\n trigger('validated', [\n transition(':enter', [\n animate(\n '600ms',\n keyframes([\n style({ transform: 'scale(0,0)', offset: 0 }),\n style({ opacity: 1, offset: 0.2 }),\n style({ transform: 'scale(1.2,1.2)', offset: 0.4 }),\n style({ transform: 'scale(.9,.9)', offset: 0.6 }),\n style({ transform: 'scale(1,1)', offset: 1 }),\n ])\n ),\n ]),\n transition(':leave', [style({ opacity: 1 }), animate('100ms ease-out', style({ opacity: 0 }))]),\n ]),\n ],\n host: { '[attr.disabled]': \"disabled? '' : null\" },\n})\nexport class ClrLoadingButton implements LoadingListener {\n @Input('disabled') disabled: boolean;\n\n @Output('clrLoadingChange') clrLoadingChange = new EventEmitter<ClrLoadingState>(false);\n\n buttonState = ClrLoadingState;\n state: ClrLoadingState = ClrLoadingState.DEFAULT;\n\n constructor(public el: ElementRef, private renderer: Renderer2) {}\n\n loadingStateChange(state: ClrLoadingState): void {\n if (state === this.state) {\n return;\n }\n this.state = state;\n\n switch (state) {\n case ClrLoadingState.DEFAULT:\n this.renderer.removeStyle(this.el.nativeElement, 'width');\n this.renderer.removeStyle(this.el.nativeElement, 'transform'); // for chromium render bug see issue https://github.com/vmware/clarity/issues/2700\n if (!this.disabled) {\n this.renderer.removeAttribute(this.el.nativeElement, 'disabled');\n }\n break;\n case ClrLoadingState.LOADING:\n this.setExplicitButtonWidth();\n this.renderer.setStyle(this.el.nativeElement, 'transform', 'translatez(0)'); // for chromium render bug see issue https://github.com/vmware/clarity/issues/2700\n this.renderer.setAttribute(this.el.nativeElement, 'disabled', '');\n break;\n case ClrLoadingState.SUCCESS:\n this.setExplicitButtonWidth();\n break;\n case ClrLoadingState.ERROR:\n this.loadingStateChange(ClrLoadingState.DEFAULT);\n break;\n default:\n break;\n }\n this.clrLoadingChange.emit(state);\n }\n\n private setExplicitButtonWidth() {\n if (this.el.nativeElement && this.el.nativeElement.getBoundingClientRect) {\n const boundingClientRect = this.el.nativeElement.getBoundingClientRect();\n const width = Math.max(MIN_BUTTON_WIDTH, boundingClientRect.width);\n this.renderer.setStyle(this.el.nativeElement, 'width', `${width}px`);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrLoadingButton } from './loading-button';\n\nexport const CLR_LOADING_BUTTON_DIRECTIVES: Type<any>[] = [ClrLoadingButton];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_LOADING_BUTTON_DIRECTIVES],\n exports: [CLR_LOADING_BUTTON_DIRECTIVES],\n})\nexport class ClrLoadingButtonModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\nimport { ClarityIcons, ellipsisHorizontalIcon } from '@cds/core/icon';\n\nimport { ClrButtonGroupModule } from './button-group/button-group.module';\nimport { ClrLoadingButtonModule } from './button-loading/loading-button.module';\n\n@NgModule({\n exports: [ClrLoadingButtonModule, ClrButtonGroupModule],\n})\nexport class ClrButtonModule {\n constructor() {\n ClarityIcons.addIcons(ellipsisHorizontalIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n template: '',\n})\nexport class EmptyAnchor {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { EmptyAnchor } from './empty-anchor';\n\n/**\n * Internal module, please do not export!\n */\n@NgModule({\n declarations: [EmptyAnchor],\n exports: [EmptyAnchor],\n})\nexport class ClrHostWrappingModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\nimport { Observable } from 'rxjs';\n\nlet counter = 0;\n\n@Injectable()\nexport class ControlIdService {\n private _id = 'clr-form-control-' + ++counter;\n private _idChange = new BehaviorSubject(this._id);\n\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value;\n this._idChange.next(value);\n }\n\n get idChange(): Observable<string> {\n return this._idChange.asObservable();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nlet counter = 0;\n\n/**\n * @TODO No idea why I need to use provideIn .. without I'm getting error that\n * ContainerIdService is not defined - But this must be optional service!?\n *\n * There is something wrong - will come back to investigate it when I have more time\n *\n */\n@Injectable()\nexport class ContainerIdService {\n private _id = `clr-form-container-${++counter}`;\n private _idChange = new BehaviorSubject(this._id);\n\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value;\n this._idChange.next(value);\n }\n\n get idChange(): Observable<string> {\n return this._idChange.asObservable();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Optional } from '@angular/core';\n\nimport { ContainerIdService } from './providers/container-id.service';\nimport { ControlIdService } from './providers/control-id.service';\n\nexport const CONTROL_SUFFIX: { [key: string]: string | null } = {\n HELPER: 'helper',\n ERROR: 'error',\n SUCCESS: 'success',\n NONE: null,\n};\n\n@Directive()\nexport abstract class ClrAbstractControl {\n /**\n * Hold the suffix for the ID\n */\n controlIdSuffix = 'abstract';\n\n constructor(\n @Optional() protected controlIdService: ControlIdService,\n @Optional() protected containerIdService: ContainerIdService\n ) {}\n\n get id(): string {\n /**\n * The order of witch the id will be pick is:\n * - Container ID (Wrapper arround multiple Controls like, Checkbox, Radio, ...)\n * - Control ID (Single Control wrapper like Input, Textarea, Password, ...)\n * - None\n */\n if (this.containerIdService) {\n return `${this.containerIdService.id}-${this.controlIdSuffix}`;\n }\n\n if (this.controlIdService) {\n return `${this.controlIdService.id}-${this.controlIdSuffix}`;\n }\n\n return null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Optional } from '@angular/core';\n\nimport { ClrAbstractControl, CONTROL_SUFFIX } from './abstract-control';\nimport { ContainerIdService } from './providers/container-id.service';\nimport { ControlIdService } from './providers/control-id.service';\n\n@Component({\n selector: 'clr-control-error',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.clr-subtext]': 'true',\n '[attr.id]': 'id',\n },\n})\nexport class ClrControlError extends ClrAbstractControl {\n override controlIdSuffix = CONTROL_SUFFIX.ERROR;\n\n constructor(\n @Optional() protected override controlIdService: ControlIdService,\n @Optional() protected override containerIdService: ContainerIdService\n ) {\n super(controlIdService, containerIdService);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Optional } from '@angular/core';\n\nimport { ClrAbstractControl, CONTROL_SUFFIX } from './abstract-control';\nimport { ContainerIdService } from './providers/container-id.service';\nimport { ControlIdService } from './providers/control-id.service';\n\n@Component({\n selector: 'clr-control-helper',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.clr-subtext]': 'true',\n '[attr.id]': 'id',\n },\n})\nexport class ClrControlHelper extends ClrAbstractControl {\n override controlIdSuffix = CONTROL_SUFFIX.HELPER;\n\n constructor(\n @Optional() protected override controlIdService: ControlIdService,\n @Optional() protected override containerIdService: ContainerIdService\n ) {\n super(controlIdService, containerIdService);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Observable, Subject } from 'rxjs';\n\nexport interface Helpers {\n show?: boolean;\n showInvalid?: boolean;\n showValid?: boolean;\n showHelper?: boolean;\n}\n\n@Injectable()\nexport class NgControlService {\n // Observable to subscribe to the control, since its not available immediately for projected content\n private _controlChanges = new Subject<NgControl>();\n\n private _helpers = new Subject<Helpers>();\n\n get controlChanges(): Observable<NgControl> {\n return this._controlChanges.asObservable();\n }\n\n get helpersChange(): Observable<Helpers> {\n return this._helpers.asObservable();\n }\n\n setControl(control: NgControl) {\n this._controlChanges.next(control);\n }\n\n setHelpers(state: Helpers) {\n this._helpers.next(state);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, OnDestroy } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { BehaviorSubject, Observable, Subscription } from 'rxjs';\n\nimport { NgControlService } from '../providers/ng-control.service';\n\nexport enum CONTROL_STATE {\n NONE = 'NONE',\n VALID = 'VALID',\n INVALID = 'INVALID',\n}\n\n@Injectable()\nexport class IfControlStateService implements OnDestroy {\n private subscriptions: Subscription[] = [];\n private control: NgControl;\n\n // Implement our own status changes observable, since Angular controls don't\n private _statusChanges = new BehaviorSubject(CONTROL_STATE.NONE);\n\n constructor(private ngControlService: NgControlService) {\n // Wait for the control to be available\n this.subscriptions.push(\n this.ngControlService.controlChanges.subscribe(control => {\n if (control) {\n this.control = control;\n // Subscribe to the status change events, only after touched\n // and emit the control\n this.subscriptions.push(\n this.control.statusChanges.subscribe(() => {\n this.triggerStatusChange();\n })\n );\n }\n })\n );\n }\n\n get statusChanges(): Observable<CONTROL_STATE> {\n return this._statusChanges.asObservable();\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(subscription => subscription.unsubscribe());\n }\n\n triggerStatusChange() {\n /* Check if control is defined and run the code only then */\n if (this.control) {\n // These status values are mutually exclusive, so a control\n // cannot be both valid AND invalid or invalid AND disabled.\n const status = CONTROL_STATE[this.control.status];\n this._statusChanges.next(['VALID', 'INVALID'].includes(status) ? status : CONTROL_STATE.NONE);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nexport enum ClrFormLayout {\n VERTICAL = 'vertical',\n HORIZONTAL = 'horizontal',\n COMPACT = 'compact',\n}\n\n@Injectable()\nexport class LayoutService {\n readonly minLabelSize = 1;\n readonly maxLabelSize = 12;\n\n layout: ClrFormLayout | string = ClrFormLayout.HORIZONTAL;\n\n // This is basically a replacement for Object.values(), which IE11 and Node <9 don't support :(\n // String enums cannot be reverse-mapped, meaning ClrFormLayout['COMPACT'] does not return 'compact' so\n // this exists to deal with this little caveat to get the list of the values as an array.\n private layoutValues: string[] = Object.keys(ClrFormLayout).map(key => (ClrFormLayout as Record<string, any>)[key]);\n private _labelSize = 2;\n\n get labelSize(): number {\n return this._labelSize;\n }\n set labelSize(size: number) {\n if (this.labelSizeIsValid(size)) {\n this._labelSize = size;\n }\n }\n\n get layoutClass(): string {\n return `clr-form-${this.layout}`;\n }\n\n isVertical(): boolean {\n return this.layout === ClrFormLayout.VERTICAL;\n }\n\n isHorizontal(): boolean {\n return this.layout === ClrFormLayout.HORIZONTAL;\n }\n\n isCompact(): boolean {\n return this.layout === ClrFormLayout.COMPACT;\n }\n\n isValid(layout: string): boolean {\n return this.layoutValues.indexOf(layout) > -1;\n }\n\n labelSizeIsValid(labelSize: number): boolean {\n return Number.isInteger(labelSize) && labelSize >= this.minLabelSize && labelSize <= this.maxLabelSize;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, HostBinding, Input, OnDestroy, OnInit, Optional, Renderer2 } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ControlIdService } from './providers/control-id.service';\nimport { LayoutService } from './providers/layout.service';\nimport { NgControlService } from './providers/ng-control.service';\n\n@Directive({\n selector: 'label',\n})\nexport class ClrLabel implements OnInit, OnDestroy {\n @Input('for') @HostBinding('attr.for') forAttr: string;\n\n private enableGrid = true;\n private subscriptions: Subscription[] = [];\n\n constructor(\n @Optional() private controlIdService: ControlIdService,\n @Optional() private layoutService: LayoutService,\n @Optional() private ngControlService: NgControlService,\n private renderer: Renderer2,\n private el: ElementRef\n ) {}\n\n get labelText(): string {\n return this.el.nativeElement && this.el.nativeElement.textContent;\n }\n\n ngOnInit() {\n // Only add the clr-control-label if it is inside a control container\n if (this.controlIdService || this.ngControlService) {\n this.renderer.addClass(this.el.nativeElement, 'clr-control-label');\n }\n // Only set the grid column classes if we are in the right context and if they aren't already set\n if (\n this.enableGrid &&\n this.layoutService &&\n !this.layoutService.isVertical() &&\n this.el.nativeElement &&\n this.el.nativeElement.className.indexOf('clr-col') < 0\n ) {\n this.renderer.addClass(this.el.nativeElement, 'clr-col-12');\n this.renderer.addClass(this.el.nativeElement, `clr-col-md-${this.layoutService.labelSize}`);\n }\n if (this.controlIdService && !this.forAttr) {\n this.subscriptions.push(this.controlIdService.idChange.subscribe(id => (this.forAttr = id)));\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n disableGrid() {\n this.enableGrid = false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Optional } from '@angular/core';\n\nimport { ClrAbstractControl, CONTROL_SUFFIX } from './abstract-control';\nimport { ContainerIdService } from './providers/container-id.service';\nimport { ControlIdService } from './providers/control-id.service';\n\n@Component({\n selector: 'clr-control-success',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.clr-subtext]': 'true',\n '[attr.id]': 'id',\n },\n})\nexport class ClrControlSuccess extends ClrAbstractControl {\n override controlIdSuffix = CONTROL_SUFFIX.SUCCESS;\n\n constructor(\n @Optional() protected override controlIdService: ControlIdService,\n @Optional() protected override containerIdService: ContainerIdService\n ) {\n super(controlIdService, containerIdService);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, Optional, Renderer2 } from '@angular/core';\n\nimport { CONTROL_STATE } from '../if-control-state/if-control-state.service';\nimport { LayoutService } from './layout.service';\n\nconst CLASS_ERROR = 'clr-error';\nconst CLASS_SUCCESS = 'clr-success';\n\n@Injectable()\nexport class ControlClassService {\n className = '';\n\n constructor(@Optional() private layoutService: LayoutService) {}\n\n controlClass(state: CONTROL_STATE = CONTROL_STATE.NONE, grid = false, additional = '') {\n const controlClasses = [this.className, additional];\n\n switch (state) {\n case CONTROL_STATE.VALID:\n controlClasses.push(CLASS_SUCCESS);\n break;\n case CONTROL_STATE.INVALID:\n controlClasses.push(CLASS_ERROR);\n break;\n }\n\n if (grid && this.layoutService && this.className.indexOf('clr-col') === -1) {\n controlClasses.push(`clr-col-md-${this.layoutService.maxLabelSize - this.layoutService.labelSize} clr-col-12`);\n }\n return controlClasses.join(' ').trim();\n }\n\n // We want to remove the column classes from the input up to the container\n initControlClass(renderer: Renderer2, element: HTMLElement) {\n if (element && element.className) {\n this.className = element.className;\n const klasses = element.className.split(' ');\n klasses.forEach(klass => {\n if (klass.startsWith('clr-col')) {\n renderer.removeClass(element, klass);\n }\n });\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, ContentChild, Directive, OnDestroy, Optional } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\nimport { ClrControlError } from './error';\nimport { ClrControlHelper } from './helper';\nimport { CONTROL_STATE, IfControlStateService } from './if-control-state/if-control-state.service';\nimport { ClrLabel } from './label';\nimport { ControlClassService } from './providers/control-class.service';\nimport { LayoutService } from './providers/layout.service';\nimport { NgControlService } from './providers/ng-control.service';\nimport { ClrControlSuccess } from './success';\n\n@Directive()\nexport abstract class ClrAbstractContainer implements DynamicWrapper, OnDestroy, AfterContentInit {\n @ContentChild(ClrLabel, { static: false }) label: ClrLabel;\n @ContentChild(ClrControlSuccess) controlSuccessComponent: ClrControlSuccess;\n @ContentChild(ClrControlError) controlErrorComponent: ClrControlError;\n @ContentChild(ClrControlHelper) controlHelperComponent: ClrControlHelper;\n\n control: NgControl;\n _dynamic = false;\n\n protected subscriptions: Subscription[] = [];\n\n private state: CONTROL_STATE;\n\n constructor(\n protected ifControlStateService: IfControlStateService,\n @Optional() protected layoutService: LayoutService,\n protected controlClassService: ControlClassService,\n protected ngControlService: NgControlService\n ) {\n this.subscriptions.push(\n this.ifControlStateService.statusChanges.subscribe((state: CONTROL_STATE) => {\n this.state = state;\n this.updateHelpers();\n })\n );\n\n this.subscriptions.push(\n this.ngControlService.controlChanges.subscribe(control => {\n this.control = control;\n })\n );\n }\n\n /**\n * @NOTE\n * Helper control is a bit different than the others, it must be visible most of the time:\n * - Helper must NOT be visible when CONTROL_STATE is not NONE and Success or Error components are \\\n * defined.\n *\n * For example user implement only Error control then if CONTROL_STATE is VALID then helper\n * control must be visible.\n */\n get showHelper(): boolean {\n // without existence of helper component there is no need of additional checks.\n if (!!this.controlHelperComponent === false) {\n return false;\n }\n\n return (\n /* Helper Component exist and the state of the form is NONE (not touched) */\n (!!this.controlHelperComponent && (!this.touched || this.state === CONTROL_STATE.NONE)) ||\n /* or there is no success component but the state of the form is VALID - show helper information */\n (!!this.controlSuccessComponent === false && this.state === CONTROL_STATE.VALID) ||\n /* or there is no error component but the state of the form is INVALID - show helper information */\n (!!this.controlErrorComponent === false && this.state === CONTROL_STATE.INVALID)\n );\n }\n\n get showValid(): boolean {\n return this.touched && this.state === CONTROL_STATE.VALID && !!this.controlSuccessComponent;\n }\n\n get showInvalid(): boolean {\n return this.touched && this.state === CONTROL_STATE.INVALID && !!this.controlErrorComponent;\n }\n\n private get touched() {\n return this.control?.touched;\n }\n\n ngAfterContentInit() {\n /**\n * We gonna set the helper control state, after all or most of the components\n * are ready - also this will trigger some initial flows into wrappers and controls,\n * like locating IDs and setting attributes.\n */\n this.updateHelpers();\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(subscription => subscription.unsubscribe());\n }\n\n controlClass() {\n /**\n * Decide what subtext to display:\n * - container is valid but no success component is implemented - use helper class\n * - container is valid and success component is implemented - use success class\n */\n if ((!this.controlSuccessComponent && this.state === CONTROL_STATE.VALID) || !this.touched) {\n return this.controlClassService.controlClass(CONTROL_STATE.NONE, this.addGrid());\n }\n /**\n * Pass form control state and return string of classes to be applied to the container.\n */\n return this.controlClassService.controlClass(this.state, this.addGrid());\n }\n\n addGrid() {\n return this.layoutService && !this.layoutService.isVertical();\n }\n\n private updateHelpers() {\n if (this.ngControlService) {\n this.ngControlService.setHelpers({\n show: this.showInvalid || this.showHelper || this.showValid,\n showInvalid: this.showInvalid,\n showHelper: this.showHelper,\n showValid: this.showValid,\n });\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from './if-control-state/if-control-state.service';\nimport { ControlClassService } from './providers/control-class.service';\nimport { ControlIdService } from './providers/control-id.service';\nimport { NgControlService } from './providers/ng-control.service';\n\n@Component({\n selector: 'clr-control-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-input-wrapper\">\n <ng-content></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService],\n})\nexport class ClrControlContainer extends ClrAbstractContainer {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n ComponentFactory,\n ComponentFactoryResolver,\n ElementRef,\n InjectionToken,\n Injector,\n Type,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { DynamicWrapper } from './dynamic-wrapper';\nimport { EmptyAnchor } from './empty-anchor';\n\n/**\n * HostWrapper must be called in OnInit to ensure that the Views are ready. If its called in a constructor the view is\n * still undefined.\n * TODO - make sure these comment annotations do not break ng-packgr.\n */\nexport class HostWrapper<W extends DynamicWrapper> implements Injector {\n private injector: Injector;\n\n constructor(containerType: Type<W>, vcr: ViewContainerRef, index = 0) {\n this.injector = vcr.injector;\n // If the host is already wrapped, we don't do anything\n if (!this.injector.get(containerType, null)) {\n const cfr = this.injector.get(ComponentFactoryResolver);\n const el = this.injector.get(ElementRef);\n\n // We need a new anchor, since we're projecting the current one.\n vcr.createComponent(cfr.resolveComponentFactory(EmptyAnchor));\n const factory: ComponentFactory<W> = cfr.resolveComponentFactory(containerType);\n // Craft the element array based on what slot to use. Angular only uses the index to determine\n // which ng-content to project into, so if you have more than one ng-content you'll need to set\n // the index in the constructor appropriately\n const element = [];\n element[index] = [el.nativeElement];\n // We're assuming only one projection slot, but in more complex cases we might want to provide\n // a different array of projected elements.\n const containerRef = vcr.createComponent(factory, undefined, undefined, element);\n // We can now remove the useless anchor\n vcr.remove(0);\n\n // We note that the container was dynamically created\n containerRef.instance._dynamic = true;\n\n // We keep the wrapper's injector to access the dependencies that weren't available before.\n this.injector = containerRef.injector;\n }\n }\n\n get<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T): T {\n return this.injector.get(token, notFoundValue);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable()\nexport class MarkControlService {\n private _touched = new Subject<void>();\n\n get touchedChange(): Observable<void> {\n return this._touched.asObservable();\n }\n\n markAsTouched() {\n this._touched.next();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n DoCheck,\n ElementRef,\n HostBinding,\n HostListener,\n InjectionToken,\n Injector,\n Input,\n KeyValueDiffer,\n KeyValueDiffers,\n OnDestroy,\n OnInit,\n Renderer2,\n Type,\n ViewContainerRef,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\nimport { HostWrapper } from '../../utils/host-wrapping/host-wrapper';\nimport { CONTROL_SUFFIX } from './abstract-control';\nimport { IfControlStateService } from './if-control-state/if-control-state.service';\nimport { ContainerIdService } from './providers/container-id.service';\nimport { ControlClassService } from './providers/control-class.service';\nimport { ControlIdService } from './providers/control-id.service';\nimport { MarkControlService } from './providers/mark-control.service';\nimport { Helpers, NgControlService } from './providers/ng-control.service';\n\nexport enum CHANGE_KEYS {\n FORM = 'form',\n MODEL = 'model',\n}\n\n@Directive()\nexport class WrappedFormControl<W extends DynamicWrapper> implements OnInit, DoCheck, OnDestroy {\n _id: string;\n\n protected renderer: Renderer2;\n protected controlIdService: ControlIdService;\n protected ngControlService: NgControlService;\n protected el: ElementRef<any>;\n protected index = 0;\n protected subscriptions: Subscription[] = [];\n\n private ifControlStateService: IfControlStateService;\n private controlClassService: ControlClassService;\n private markControlService: MarkControlService;\n private containerIdService: ContainerIdService;\n private _containerInjector: Injector;\n private differs: KeyValueDiffers;\n private differ: KeyValueDiffer<any, any>;\n\n // I lost way too much time trying to make this work without injecting the ViewContainerRef and the Injector,\n // I'm giving up. So we have to inject these two manually for now.\n constructor(\n protected vcr: ViewContainerRef,\n protected wrapperType: Type<W>,\n injector: Injector,\n private ngControl: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n this.renderer = renderer;\n this.el = el;\n\n if (injector) {\n this.ngControlService = injector.get(NgControlService, null);\n this.ifControlStateService = injector.get(IfControlStateService, null);\n this.controlClassService = injector.get(ControlClassService, null);\n this.markControlService = injector.get(MarkControlService, null);\n this.differs = injector.get(KeyValueDiffers, null);\n }\n\n if (this.controlClassService) {\n this.controlClassService.initControlClass(renderer, el.nativeElement);\n }\n if (this.markControlService) {\n this.subscriptions.push(\n this.markControlService.touchedChange.subscribe(() => {\n this.markAsTouched();\n })\n );\n }\n\n if (this.ngControlService) {\n this.subscriptions.push(\n this.ngControlService.helpersChange.subscribe((state: Helpers) => {\n this.setAriaDescribedBy(state);\n })\n );\n }\n\n if (ngControl) {\n this.differ = this.differs.find(ngControl).create();\n }\n }\n\n @Input()\n @HostBinding()\n get id() {\n return this._id;\n }\n set id(value: string) {\n this._id = value;\n if (this.controlIdService) {\n this.controlIdService.id = value;\n }\n }\n\n ngOnInit() {\n this._containerInjector = new HostWrapper(this.wrapperType, this.vcr, this.index);\n this.controlIdService = this._containerInjector.get(ControlIdService);\n\n /**\n * not all containers will provide `ContainerIdService`\n */\n this.containerIdService = this._containerInjector.get(ContainerIdService, null);\n\n if (this._id) {\n this.controlIdService.id = this._id;\n } else {\n this._id = this.controlIdService.id;\n }\n\n if (this.ngControlService) {\n this.ngControlService.setControl(this.ngControl);\n }\n }\n\n ngDoCheck() {\n if (this.differ) {\n const changes = this.differ.diff(this.ngControl);\n if (changes) {\n changes.forEachChangedItem(change => {\n if (\n (change.key === CHANGE_KEYS.FORM || change.key === CHANGE_KEYS.MODEL) &&\n change.currentValue !== change.previousValue\n ) {\n this.triggerValidation();\n }\n });\n }\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n @HostListener('blur')\n triggerValidation() {\n if (this.ifControlStateService) {\n this.ifControlStateService.triggerStatusChange();\n }\n }\n\n // @TODO This method has a try/catch due to an unknown issue that came when building the clrToggle feature\n // We need to figure out why this fails for the ClrToggle scenario but works for Date picker...\n // To see the error, remove the try/catch here and run the ClrToggle suite to see issues getting the container\n // injector in time, and this ONLY HAPPENS in tests and not in dev/prod mode.\n protected getProviderFromContainer<T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T): T {\n try {\n return this._containerInjector.get(token, notFoundValue);\n } catch (e) {\n return notFoundValue;\n }\n }\n\n private markAsTouched(): void {\n this.ngControl.control.markAsTouched();\n this.ngControl.control.updateValueAndValidity();\n }\n\n private setAriaDescribedBy(helpers: Helpers) {\n if (helpers.show) {\n const ariaDescribedBy = this.getAriaDescribedById(helpers);\n if (ariaDescribedBy !== null) {\n this.renderer.setAttribute(this.el.nativeElement, 'aria-describedby', ariaDescribedBy);\n return;\n }\n }\n\n this.renderer.removeAttribute(this.el.nativeElement, 'aria-describedby');\n }\n\n private getAriaDescribedById(helpers: Helpers): string | null {\n let suffix = CONTROL_SUFFIX.HELPER;\n\n if (helpers.showInvalid) {\n suffix = CONTROL_SUFFIX.ERROR;\n } else if (helpers.showValid) {\n suffix = CONTROL_SUFFIX.SUCCESS;\n }\n\n if (this.containerIdService) {\n return this.containerIdService.id.concat('-', suffix);\n }\n\n if (this.controlIdService) {\n return this.controlIdService.id.concat('-', suffix);\n }\n\n /**\n * If ContainerIdService or ControlIdService are missing don't try to guess\n * Don't set anything.\n */\n return null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { ClrControlContainer } from './control-container';\nimport { WrappedFormControl } from './wrapped-control';\n\n@Directive({\n selector: '[clrControl]',\n host: { '[class.clr-input]': 'true' },\n})\nexport class ClrControl extends WrappedFormControl<ClrControlContainer> {\n protected override index = 1;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrControlContainer, injector, control, renderer, el);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ContentChildren, Directive, HostListener, Input, QueryList } from '@angular/core';\n\nimport { ClrLabel } from './label';\nimport { LayoutService } from './providers/layout.service';\nimport { MarkControlService } from './providers/mark-control.service';\n\n@Directive({\n selector: '[clrForm]',\n providers: [LayoutService, MarkControlService],\n host: {\n '[class.clr-form]': 'true',\n '[class.clr-form-horizontal]': 'layoutService.isHorizontal()',\n '[class.clr-form-compact]': 'layoutService.isCompact()',\n },\n})\nexport class ClrForm {\n @ContentChildren(ClrLabel, { descendants: true }) labels: QueryList<ClrLabel>;\n\n constructor(public layoutService: LayoutService, private markControlService: MarkControlService) {}\n\n @Input('clrLabelSize')\n set labelSize(size: number | string) {\n const sizeNumber = parseInt(size as string, 10) || 2;\n this.layoutService.labelSize = sizeNumber;\n }\n\n @HostListener('submit')\n onFormSubmit() {\n this.markAsTouched();\n }\n\n // Trying to avoid adding an input and keep this backwards compatible at the same time\n markAsTouched() {\n this.markControlService.markAsTouched();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Optional } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { Subscription } from 'rxjs';\n\nimport { NgControlService } from '../providers/ng-control.service';\nimport { CONTROL_STATE, IfControlStateService } from './if-control-state.service';\n\n@Directive()\nexport abstract class AbstractIfState {\n protected subscriptions: Subscription[] = [];\n protected displayedContent = false;\n protected control: NgControl;\n\n constructor(\n @Optional() protected ifControlStateService: IfControlStateService,\n @Optional() protected ngControlService: NgControlService\n ) {\n if (ngControlService) {\n this.subscriptions.push(\n this.ngControlService.controlChanges.subscribe(control => {\n this.control = control;\n })\n );\n }\n\n if (ifControlStateService) {\n this.subscriptions.push(\n this.ifControlStateService.statusChanges.subscribe((state: CONTROL_STATE) => {\n this.handleState(state);\n })\n );\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n protected handleState(_state: CONTROL_STATE): void {\n /* overwrite in implementation to handle status change */\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, EmbeddedViewRef, Input, Optional, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { NgControlService } from '../providers/ng-control.service';\nimport { AbstractIfState } from './abstract-if-state';\nimport { CONTROL_STATE, IfControlStateService } from './if-control-state.service';\n\n@Directive({\n selector: '[clrIfError]',\n})\nexport class ClrIfError extends AbstractIfState {\n @Input('clrIfError') error: string;\n\n private embeddedViewRef: EmbeddedViewRef<any>;\n\n constructor(\n @Optional() ifControlStateService: IfControlStateService,\n @Optional() ngControlService: NgControlService,\n private template: TemplateRef<any>,\n private container: ViewContainerRef\n ) {\n super(ifControlStateService, ngControlService);\n\n if (!this.ifControlStateService) {\n throw new Error('clrIfError can only be used within a form control container element like clr-input-container');\n }\n }\n /**\n * @param state CONTROL_STATE\n */\n protected override handleState(state: CONTROL_STATE) {\n if (this.error && this.control) {\n this.displayError(this.control.hasError(this.error));\n } else {\n this.displayError(CONTROL_STATE.INVALID === state);\n }\n }\n\n private displayError(invalid: boolean) {\n /* if no container do nothing */\n if (!this.container) {\n return;\n }\n if (invalid) {\n if (this.displayedContent === false) {\n this.embeddedViewRef = this.container.createEmbeddedView(this.template, {\n error: this.control.getError(this.error),\n });\n this.displayedContent = true;\n } else if (this.embeddedViewRef && this.embeddedViewRef.context) {\n // if view is already rendered, update the error object to keep it in sync\n this.embeddedViewRef.context.error = this.control.getError(this.error);\n }\n } else {\n this.container.clear();\n this.displayedContent = false;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Optional, TemplateRef, ViewContainerRef } from '@angular/core';\n\nimport { NgControlService } from '../providers/ng-control.service';\nimport { AbstractIfState } from './abstract-if-state';\nimport { CONTROL_STATE, IfControlStateService } from './if-control-state.service';\n\n@Directive({\n selector: '[clrIfSuccess]',\n})\nexport class ClrIfSuccess extends AbstractIfState {\n constructor(\n @Optional() ifControlStateService: IfControlStateService,\n @Optional() ngControlService: NgControlService,\n private template: TemplateRef<any>,\n private container: ViewContainerRef\n ) {\n super(ifControlStateService, ngControlService);\n\n if (!ifControlStateService) {\n throw new Error('ClrIfSuccess can only be used within a form control container element like clr-input-container');\n }\n }\n\n /**\n * @param state CONTROL_STATE\n */\n protected override handleState(state: CONTROL_STATE) {\n const isValid = CONTROL_STATE.VALID === state;\n\n if (isValid && !this.displayedContent) {\n this.container.createEmbeddedView(this.template);\n } else if (!isValid && this.container) {\n this.container.clear();\n }\n this.displayedContent = isValid;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input, OnInit } from '@angular/core';\n\nimport { ClrFormLayout, LayoutService } from './providers/layout.service';\n\n@Directive({\n selector: '[clrForm][clrLayout]',\n})\nexport class ClrLayout implements OnInit {\n @Input('clrLayout') layout: ClrFormLayout | string;\n\n constructor(public layoutService: LayoutService) {}\n\n ngOnInit() {\n // Only set the layout if it is a valid option\n if (this.layout && this.layoutService.isValid(this.layout)) {\n this.layoutService.layout = this.layout;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrControl } from './control';\nimport { ClrControlContainer } from './control-container';\nimport { ClrControlError } from './error';\nimport { ClrForm } from './form';\nimport { ClrControlHelper } from './helper';\nimport { ClrIfError } from './if-control-state/if-error';\nimport { ClrIfSuccess } from './if-control-state/if-success';\nimport { ClrLabel } from './label';\nimport { ClrLayout } from './layout';\nimport { ClrControlSuccess } from './success';\n\n@NgModule({\n imports: [CommonModule, ClrIconModule],\n declarations: [\n ClrLabel,\n ClrControlError,\n ClrControlSuccess,\n ClrControlHelper,\n ClrIfError,\n ClrIfSuccess,\n ClrForm,\n ClrLayout,\n ClrControlContainer,\n ClrControl,\n ],\n exports: [\n ClrLabel,\n ClrControlError,\n ClrControlSuccess,\n ClrControlHelper,\n ClrIfError,\n ClrIfSuccess,\n ClrForm,\n ClrLayout,\n ClrControlContainer,\n ClrControl,\n ],\n})\nexport class ClrCommonFormsModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild, Inject, InjectionToken, OnDestroy, OnInit } from '@angular/core';\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\nimport { ClrLabel } from '../common/label';\nimport { ControlIdService } from '../common/providers/control-id.service';\n\nexport const IS_TOGGLE = new InjectionToken<BehaviorSubject<boolean>>('IS_TOGGLE');\nexport function isToggleFactory() {\n return new BehaviorSubject<boolean>(false);\n}\nexport const IS_TOGGLE_PROVIDER = { provide: IS_TOGGLE, useFactory: isToggleFactory };\n\n@Component({\n selector: 'clr-checkbox-wrapper,clr-toggle-wrapper',\n template: `\n <ng-content select=\"[clrCheckbox],[clrToggle]\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label\"></label>\n `,\n host: {\n '[class.clr-checkbox-wrapper]': '!toggle',\n '[class.clr-toggle-wrapper]': 'toggle',\n },\n providers: [ControlIdService, IS_TOGGLE_PROVIDER],\n})\nexport class ClrCheckboxWrapper implements DynamicWrapper, OnInit, OnDestroy {\n // We need both _dynamic for HostWrapper and ContentChild(ClrLabel) in cases where\n // the user puts a radio inside a wrapper without a label, host wrapping doesn't apply\n // but we'd still need to insert a label\n _dynamic = false;\n @ContentChild(ClrLabel, { static: true }) label: ClrLabel;\n toggle = false;\n private subscriptions: Subscription[] = [];\n\n constructor(@Inject(IS_TOGGLE) toggleService: BehaviorSubject<boolean>) {\n this.subscriptions.push(\n toggleService.subscribe(state => {\n this.toggle = state;\n })\n );\n }\n\n ngOnInit() {\n if (this.label) {\n this.label.disableGrid();\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Attribute, Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrCheckboxWrapper, IS_TOGGLE } from './checkbox-wrapper';\n\n/**\n * This implements both the clrCheckbox and clrToggle functionality, since they are both just checkboxes with different\n * visual styling. The challenge is that the container needs to know which selector was used, which the @Attribute\n * decorator gets for us to determine if the toggle is used, and emits a value to the wrapper container to tell it\n * there is a toggle switch instead.\n */\n@Directive({\n selector: '[clrCheckbox],[clrToggle]',\n})\nexport class ClrCheckbox extends WrappedFormControl<ClrCheckboxWrapper> {\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef,\n @Attribute('clrToggle') private toggle: string\n ) {\n super(vcr, ClrCheckboxWrapper, injector, control, renderer, el);\n }\n\n override ngOnInit() {\n super.ngOnInit();\n\n const toggleService = this.getProviderFromContainer<BehaviorSubject<boolean>>(IS_TOGGLE, null);\n\n if (toggleService && this.toggle !== null) {\n toggleService.next(true);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, Component, ContentChildren, Input, Optional, QueryList } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ContainerIdService } from '../common/providers/container-id.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\nimport { ClrCheckbox } from './checkbox';\n\n@Component({\n selector: 'clr-checkbox-container,clr-toggle-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [class.clr-control-inline]=\"clrInline\" [ngClass]=\"controlClass()\">\n <ng-content select=\"clr-checkbox-wrapper,clr-toggle-wrapper\"></ng-content>\n <div class=\"clr-subtext-wrapper\">\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n '[attr.role]': 'role',\n },\n providers: [IfControlStateService, NgControlService, ControlClassService, ContainerIdService],\n})\nexport class ClrCheckboxContainer extends ClrAbstractContainer implements AfterContentInit {\n role: string;\n\n @ContentChildren(ClrCheckbox, { descendants: true }) checkboxes: QueryList<ClrCheckbox>;\n\n private inline = false;\n\n constructor(\n @Optional() protected override layoutService: LayoutService,\n protected override controlClassService: ControlClassService,\n protected override ngControlService: NgControlService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n }\n\n /*\n * Here we want to support the following cases\n * clrInline - true by presence\n * clrInline=\"true|false\" - unless it is explicitly false, strings are considered true\n * [clrInline]=\"true|false\" - expect a boolean\n */\n @Input()\n get clrInline() {\n return this.inline;\n }\n set clrInline(value: boolean | string) {\n if (typeof value === 'string') {\n this.inline = value === 'false' ? false : true;\n } else {\n this.inline = !!value;\n }\n }\n\n override ngAfterContentInit() {\n this.setAriaRoles();\n }\n\n private setAriaRoles() {\n this.role = this.checkboxes.length ? 'group' : null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrHostWrappingModule } from '../../utils/host-wrapping/host-wrapping.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrCheckbox } from './checkbox';\nimport { ClrCheckboxContainer } from './checkbox-container';\nimport { ClrCheckboxWrapper } from './checkbox-wrapper';\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrCommonFormsModule, ClrHostWrappingModule],\n declarations: [ClrCheckbox, ClrCheckboxContainer, ClrCheckboxWrapper],\n exports: [ClrCommonFormsModule, ClrCheckbox, ClrCheckboxContainer, ClrCheckboxWrapper],\n})\nexport class ClrCheckboxModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport function isBooleanAttributeSet(value: string | boolean): boolean {\n // for null just return false no need to check anything\n if (value === null) {\n return false;\n }\n if (typeof value === 'string') {\n // Empty string is valid, 'true' as string is also valid\n return value.length >= 0;\n }\n // Boolean value will be read as it is, everything else is false\n return typeof value === 'boolean' ? value : false;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, HostBinding, Input } from '@angular/core';\n\nimport { isBooleanAttributeSet } from '../../utils/component/is-boolean-attribute-set';\n\n@Component({\n selector: 'clr-spinner',\n template: `<ng-content></ng-content>`,\n host: {\n '[attr.aria-busy]': 'true',\n },\n})\nexport class ClrSpinner {\n private _inline: boolean;\n private _inverse: boolean;\n private _small: boolean;\n private _medium: boolean;\n\n /**\n * Default class for all spinners. This class is always true\n */\n @HostBinding('class.spinner')\n get spinnerClass() {\n return true;\n }\n\n @HostBinding('class.spinner-inline')\n get inlineClass() {\n return this._inline;\n }\n\n @Input('clrInline')\n set clrInline(value: boolean | string) {\n this._inline = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.spinner-inverse')\n get inverseClass() {\n return this._inverse;\n }\n\n @Input('clrInverse')\n set clrInverse(value: boolean | string) {\n this._inverse = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.spinner-sm')\n get smallClass() {\n return this._small;\n }\n\n @Input('clrSmall')\n set clrSmall(value: boolean | string) {\n this._small = isBooleanAttributeSet(value);\n }\n\n /**\n * When clrSmall & clrMedium are set both to true.\n * The CSS with high priority will be small - so medium size will be ignored.\n *\n * For this reason if clrSmall is set we won't add clrMedium class.\n *\n * NOTE: This is dictated by the CSS rules.\n * DON'T USE clrSmall & clrMedium to toggle classes. This could change without notice.\n *\n * Also there is no logical need to have both of them set to TRUE or FALSE.\n */\n @HostBinding('class.spinner-md')\n get mediumClass() {\n if (this._small) {\n return false;\n }\n return this._medium;\n }\n\n @Input('clrMedium')\n set clrMedium(value: boolean | string) {\n this._medium = isBooleanAttributeSet(value);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrSpinner } from './spinner';\n\nexport const CLR_SPINNER_DIRECTIVES: Type<any>[] = [ClrSpinner];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_SPINNER_DIRECTIVES],\n exports: [CLR_SPINNER_DIRECTIVES],\n})\nexport class ClrSpinnerModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrFocusDirection {\n VERTICAL = 'vertical',\n HORIZONTAL = 'horizontal',\n BOTH = 'both',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, Inject, PLATFORM_ID } from '@angular/core';\n\n@Directive({\n selector: '[clrKeyFocusItem]',\n})\nexport class ClrKeyFocusItem {\n constructor(private elementRef: ElementRef, @Inject(PLATFORM_ID) private platformId: any) {}\n\n get nativeElement() {\n return this.elementRef.nativeElement;\n }\n\n focus() {\n if (isPlatformBrowser(this.platformId)) {\n this.elementRef.nativeElement.focus();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n HostListener,\n Input,\n Output,\n QueryList,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { Keys } from '../../enums/keys.enum';\nimport { ClrFocusDirection } from './enums/focus-direction.enum';\nimport { FocusableItem } from './interfaces';\nimport { ClrKeyFocusItem } from './key-focus-item';\nimport { normalizeKey, preventArrowKeyScroll } from './util';\n\n@Component({\n selector: '[clrKeyFocus]',\n template: '<ng-content></ng-content>',\n})\nexport class ClrKeyFocus {\n @Input('clrDirection') direction: ClrFocusDirection | string = ClrFocusDirection.VERTICAL;\n @Input('clrFocusOnLoad') focusOnLoad = false;\n\n @ContentChildren(ClrKeyFocusItem, { descendants: true }) protected clrKeyFocusItems: QueryList<ClrKeyFocusItem>;\n\n protected subscriptions: Subscription[] = [];\n\n @Output('clrFocusChange') private focusChange = new EventEmitter<number>();\n\n private _current = 0;\n private _focusableItems: Array<FocusableItem>;\n\n constructor(private elementRef: ElementRef) {}\n\n /**\n * Here we use `any` cause any other type require reworking all methods below and a lot of more ifs.\n * this method will only work with array with FocusableItems anyway so any other value will be ignored.\n */\n @Input('clrKeyFocus')\n get focusableItems() {\n if (this._focusableItems) {\n return this._focusableItems;\n } else if (this.clrKeyFocusItems) {\n return this.clrKeyFocusItems.toArray();\n }\n return [];\n }\n set focusableItems(elements: Array<FocusableItem> | any) {\n // We accept a list of focusable elements (HTMLElements or existing Directives) or auto query for clrKeyFocusItem\n // We accept a list reference in the cases where we cannot use ContentChildren to query\n // ContentChildren can be unavailable if content is projected outside the scope of the component (see tabs).\n if (Array.isArray(elements) && elements.length) {\n this._focusableItems = elements as Array<FocusableItem>;\n this.initializeFocus();\n }\n }\n\n get nativeElement(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n get current() {\n return this._current;\n }\n set current(value: number) {\n if (this._current !== value) {\n this._current = value;\n }\n }\n\n get currentItem() {\n return this.focusableItems[this._current];\n }\n\n get currentItemElement(): HTMLElement {\n return this.currentItem.nativeElement ? this.currentItem.nativeElement : (this.currentItem as HTMLElement);\n }\n\n ngAfterContentInit() {\n this.subscriptions.push(this.listenForItemUpdates());\n this.initializeFocus();\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n @HostListener('keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n // Make sure event was originated on the current item's element\n if (this.currentItemElement !== event.target) {\n const position = this.getItemPosition(event.target as HTMLElement);\n if (this.positionInRange(position)) {\n this.current = position;\n }\n }\n\n if (this.prevKeyPressed(event) && this.currentFocusIsNotFirstItem()) {\n this.moveTo(this.current - 1);\n } else if (this.nextKeyPressed(event) && this.currentFocusIsNotLastItem()) {\n this.moveTo(this.current + 1);\n } else if (event.code === Keys.Home) {\n this.moveTo(0);\n } else if (event.code === Keys.End) {\n this.moveTo(this.focusableItems.length - 1);\n }\n\n preventArrowKeyScroll(event);\n }\n\n @HostListener('click', ['$event'])\n setClickedItemCurrent(event: any) {\n const position = this.getItemPosition(event.target);\n\n if (position > -1) {\n this.moveTo(position);\n }\n }\n\n focusCurrent() {\n this.currentItem.focus();\n this.focusChange.next(this._current);\n }\n\n moveTo(position: number) {\n if (this.positionInRange(position)) {\n this.current = position;\n this.focusCurrent();\n }\n }\n\n protected positionInRange(position: number) {\n return position >= 0 && position < this.focusableItems.length;\n }\n\n protected currentFocusIsNotFirstItem() {\n return this._current - 1 >= 0;\n }\n\n protected currentFocusIsNotLastItem() {\n return this._current + 1 < this.focusableItems.length;\n }\n\n protected initializeFocus() {\n if (this.focusableItems && this.focusableItems.length) {\n // It is possible that the focus was on an element, whose index is no longer available.\n // This can happen when some of the focusable elements are being removed.\n // In such cases, the new focus is initialized on the last focusable element.\n if (this._current >= this.focusableItems.length) {\n this._current = this.focusableItems.length - 1;\n }\n\n if (this.focusOnLoad) {\n this.currentItem.focus();\n this.focusChange.next();\n }\n }\n }\n\n protected nextKeyPressed(event: KeyboardEvent) {\n const key = normalizeKey(event.key);\n\n switch (this.direction) {\n case ClrFocusDirection.VERTICAL:\n return key === Keys.ArrowDown;\n case ClrFocusDirection.HORIZONTAL:\n return key === Keys.ArrowRight;\n case ClrFocusDirection.BOTH:\n return key === Keys.ArrowDown || key === Keys.ArrowRight;\n default:\n return false;\n }\n }\n\n protected prevKeyPressed(event: KeyboardEvent) {\n const key = normalizeKey(event.key);\n\n switch (this.direction) {\n case ClrFocusDirection.VERTICAL:\n return key === Keys.ArrowUp;\n case ClrFocusDirection.HORIZONTAL:\n return key === Keys.ArrowLeft;\n case ClrFocusDirection.BOTH:\n return key === Keys.ArrowUp || key === Keys.ArrowLeft;\n default:\n return false;\n }\n }\n\n private getItemPosition(item: HTMLElement) {\n if (this._focusableItems) {\n return this.focusableItems.indexOf(item);\n } else {\n return this.focusableItems.map(_item => _item.nativeElement).indexOf(item);\n }\n }\n\n private listenForItemUpdates() {\n return this.clrKeyFocusItems.changes.subscribe(() => {\n this.initializeFocus();\n });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ElementRef, Input, Renderer2 } from '@angular/core';\n\nimport { Keys } from '../../../utils/enums/keys.enum';\nimport { FocusableItem } from './interfaces';\nimport { ClrKeyFocus } from './key-focus';\n\n@Component({\n selector: '[clrRovingTabindex]',\n template: '<ng-content></ng-content>',\n})\nexport class ClrRovingTabindex extends ClrKeyFocus {\n private disabled = false;\n\n constructor(elementRef: ElementRef, private renderer: Renderer2) {\n super(elementRef);\n }\n\n // Proxy the input, as the selector name from parent class will still be \"clrKeyFocus\".\n @Input('clrRovingTabindex')\n get rovingIndexItems(): Array<FocusableItem> | string {\n return this.focusableItems;\n }\n set rovingIndexItems(elements: Array<FocusableItem> | string) {\n this.focusableItems = elements as Array<FocusableItem>;\n }\n\n @Input('clrRovingTabindexDisabled')\n set rovingTabindexDisabled(disabled: boolean) {\n this.disabled = disabled;\n if (this.currentItem) {\n this.setTabindex(this.currentItem, disabled ? -1 : 0);\n }\n }\n\n override handleKeyboardEvent(event: KeyboardEvent) {\n if (this.prevKeyPressed(event) && this.currentFocusIsNotFirstItem()) {\n this.updateTabindex(this.current - 1);\n } else if (this.nextKeyPressed(event) && this.currentFocusIsNotLastItem()) {\n this.updateTabindex(this.current + 1);\n } else if (event.code === Keys.Home) {\n this.updateTabindex(0);\n } else if (event.code === Keys.End) {\n this.updateTabindex(this.focusableItems.length - 1);\n }\n super.handleKeyboardEvent(event);\n }\n\n override setClickedItemCurrent(event: any) {\n let position: number;\n\n if (this.focusableItems[0].nativeElement) {\n position = this.focusableItems.map(item => item.nativeElement).indexOf(event.target);\n } else {\n position = this.focusableItems.indexOf(event.target);\n }\n\n if (position > -1) {\n this.updateTabindex(position);\n }\n super.setClickedItemCurrent(event);\n }\n\n protected override initializeFocus() {\n if (this.focusableItems && this.focusableItems.length) {\n this.focusableItems.forEach(item => {\n this.setTabindex(item, -1);\n });\n\n // It is possible that the focus was on an element, whose index is no longer available.\n // This can happen when some of the focusable elements are being removed.\n // In such cases, the new focus is initialized on the last focusable element.\n if (this.current >= this.focusableItems.length) {\n this.current = this.focusableItems.length - 1;\n }\n if (!this.disabled && this.currentItem) {\n this.setTabindex(this.currentItem, 0);\n }\n }\n super.initializeFocus();\n }\n\n private updateTabindex(newIndex: number) {\n this.setTabindex(this.currentItem, -1);\n this.setTabindex(this.focusableItems[newIndex], 0);\n }\n\n private setTabindex(item: FocusableItem, value: number) {\n if (item instanceof HTMLElement) {\n this.renderer.setAttribute(item, 'tabindex', value.toString());\n } else {\n this.renderer.setAttribute(item.nativeElement, 'tabindex', value.toString());\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrKeyFocus } from './key-focus';\nimport { ClrKeyFocusItem } from './key-focus-item';\nimport { ClrRovingTabindex } from './roving-tabindex';\n\nconst KEY_FOCUS_DIRECTIVES: Type<any>[] = [ClrKeyFocus, ClrRovingTabindex, ClrKeyFocusItem];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [KEY_FOCUS_DIRECTIVES],\n exports: [KEY_FOCUS_DIRECTIVES],\n})\nexport class ClrKeyFocusModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class ComboboxContainerService {\n labelOffset = 0;\n labelText: string;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, AfterViewInit, Component, ElementRef, Optional, ViewChild } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\nimport { ComboboxContainerService } from './providers/combobox-container.service';\n\n@Component({\n selector: 'clr-combobox-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\" #controlContainer>\n <ng-content select=\"clr-combobox\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-combobox-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService, ComboboxContainerService],\n})\nexport class ClrComboboxContainer extends ClrAbstractContainer implements AfterContentInit, AfterViewInit {\n @ViewChild('controlContainer') controlContainer: ElementRef;\n\n constructor(\n ifControlStateService: IfControlStateService,\n @Optional() layoutService: LayoutService,\n controlClassService: ControlClassService,\n ngControlService: NgControlService,\n private containerService: ComboboxContainerService,\n private el: ElementRef\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n }\n\n override ngAfterContentInit() {\n if (this.label) {\n this.containerService.labelText = this.label.labelText;\n }\n }\n\n ngAfterViewInit() {\n this.containerService.labelOffset =\n this.controlContainer.nativeElement.offsetHeight - this.el.nativeElement.offsetHeight;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ComboboxModel } from './combobox.model';\n\nexport class MultiSelectComboboxModel<T> implements ComboboxModel<T> {\n model: T[];\n\n containsItem(item: T): boolean {\n return this.model ? this.model.includes(item) : false;\n }\n\n select(item: T): void {\n this.addItem(item);\n }\n\n unselect(item: T): void {\n this.removeItem(item);\n }\n\n isEmpty(): boolean {\n return !(this.model && this.model.length > 0);\n }\n\n pop(): T {\n let item;\n if (this.model && this.model.length > 0) {\n item = this.model[this.model.length - 1];\n this.removeItem(item);\n }\n return item;\n }\n\n toString(displayField?: string, index = -1): string {\n let displayString = '';\n\n if (this.model) {\n // If the model is array, we can use a specific item from it, to retrieve the display value.\n if (index > -1) {\n if (this.model[index]) {\n // If we have a defined display field, we'll use it's value as display value\n if (displayField && (this.model[index] as any)[displayField]) {\n displayString += (this.model[index] as any)[displayField];\n } else {\n // If we don't have a defined display field, we'll use the toString representation of the\n // item as display value.\n displayString += this.model[index].toString();\n }\n }\n } else {\n this.model.forEach((model: T) => {\n // If we have a defined display field, we'll use it's value as display value\n if (displayField && (model as any)[displayField]) {\n displayString += (model as any)[displayField];\n } else {\n // If we don't have a defined display field, we'll use the toString representation of the\n // model as display value.\n displayString += model.toString();\n }\n displayString += ' ';\n });\n }\n }\n\n return displayString.trim();\n }\n\n private addItem(item: T) {\n if (!this.containsItem(item)) {\n this.model = this.model || [];\n this.model.push(item);\n }\n }\n\n private removeItem(item: T) {\n if (this.model === null || this.model === undefined) {\n return;\n }\n\n const index = this.model.indexOf(item);\n\n if (index > -1) {\n this.model.splice(index, 1);\n }\n\n // we intentionally set the model to null for form validation\n if (this.model.length === 0) {\n this.model = null;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ComboboxModel } from './combobox.model';\n\nexport class SingleSelectComboboxModel<T> implements ComboboxModel<T> {\n model: T;\n\n containsItem(item: T): boolean {\n return this.model === item;\n }\n\n select(item: T): void {\n this.model = item;\n }\n\n unselect(item: T): void {\n if (this.containsItem(item)) {\n this.model = null;\n }\n }\n\n isEmpty(): boolean {\n return !this.model;\n }\n\n pop(): T {\n const item = this.model;\n this.model = null;\n return item;\n }\n\n toString(displayField?: string): string {\n if (!this.model) {\n return '';\n }\n if (displayField && (this.model as any)[displayField]) {\n return (this.model as any)[displayField];\n } else {\n return this.model.toString();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[clrOptionSelected]',\n})\nexport class ClrOptionSelected<T> {\n @Input('clrOptionSelected') selected: T;\n\n constructor(public template: TemplateRef<{ $implicit: T }>) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable } from 'rxjs';\n\nexport abstract class FocusableItem {\n id: string;\n disabled?: boolean;\n\n up?: FocusableItem | Observable<FocusableItem>;\n down?: FocusableItem | Observable<FocusableItem>;\n left?: FocusableItem | Observable<FocusableItem>;\n right?: FocusableItem | Observable<FocusableItem>;\n\n abstract focus(): void;\n abstract blur(): void;\n abstract activate?(): void;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Type } from '@angular/core';\n\nimport { FocusableItem } from './focusable-item';\n\nexport function customFocusableItemProvider<T>(implementation: Type<T>) {\n return [\n implementation,\n {\n provide: FocusableItem,\n useExisting: implementation,\n },\n ];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nimport { SingleSelectComboboxModel } from './single-select-combobox.model';\n\nexport class PseudoFocusModel<T> extends SingleSelectComboboxModel<T> {\n private _focusChanged = new BehaviorSubject<T>(null);\n get focusChanged(): Observable<T> {\n return this._focusChanged.asObservable();\n }\n\n override select(item: T): void {\n if (this.model !== item) {\n this.model = item;\n this._focusChanged.next(item);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';\n\nimport { ComboboxModel } from '../model/combobox.model';\nimport { MultiSelectComboboxModel } from '../model/multi-select-combobox.model';\n\n@Injectable()\nexport class OptionSelectionService<T> {\n loading = false;\n displayField: string;\n selectionModel: ComboboxModel<T>;\n inputChanged: Observable<string>;\n\n // Display all options on first open, even if filter text exists.\n // https://github.com/vmware-clarity/ng-clarity/issues/386\n showAllOptions = true;\n\n private _currentInput = '';\n private _inputChanged = new BehaviorSubject('');\n private _selectionChanged = new ReplaySubject<ComboboxModel<T>>(1);\n\n constructor() {\n this.inputChanged = this._inputChanged.asObservable();\n }\n\n get currentInput(): string {\n return this._currentInput;\n }\n set currentInput(input) {\n // clear value in single selection model when input is empty\n if (input === '' && !this.multiselectable) {\n this.setSelectionValue(null);\n }\n this._currentInput = input;\n this._inputChanged.next(input);\n }\n\n // This observable is for notifying the ClrOption to update its\n // selection by comparing the value\n get selectionChanged(): Observable<ComboboxModel<T>> {\n return this._selectionChanged.asObservable();\n }\n\n get multiselectable(): boolean {\n return this.selectionModel instanceof MultiSelectComboboxModel;\n }\n\n select(item: T) {\n if (item === null || item === undefined || this.selectionModel.containsItem(item)) {\n return;\n }\n this.selectionModel.select(item);\n this._selectionChanged.next(this.selectionModel);\n }\n\n toggle(item: T) {\n if (item === null || item === undefined) {\n return;\n }\n if (this.selectionModel.containsItem(item)) {\n this.selectionModel.unselect(item);\n } else {\n this.selectionModel.select(item);\n }\n this._selectionChanged.next(this.selectionModel);\n }\n\n unselect(item: T) {\n if (item === null || item === undefined || !this.selectionModel.containsItem(item)) {\n return;\n }\n this.selectionModel.unselect(item);\n this._selectionChanged.next(this.selectionModel);\n }\n\n // TODO: Add support for trackBy and compareFn\n setSelectionValue(value: T | T[]): void {\n // NOTE: Currently we assume that no 2 options will have the same value\n // but Eudes and I discussed that this is a possibility but we will handle\n // this later\n\n // if selection is undefined, or its value hasn't changed, or changing from null <-> undefined, that's not really changing so we return\n if (!this.selectionModel || this.selectionModel.model === value || (!this.selectionModel.model && !value)) {\n return;\n }\n\n this.selectionModel.model = value;\n this._selectionChanged.next(this.selectionModel);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { ChangeDetectorRef, Inject, Injectable, PLATFORM_ID, Renderer2, RendererFactory2 } from '@angular/core';\nimport { take } from 'rxjs/operators';\n\nimport { Keys } from '../../../utils/enums/keys.enum';\nimport { ArrowKeyDirection } from '../../../utils/focus/arrow-key-direction.enum';\nimport { customFocusableItemProvider } from '../../../utils/focus/focusable-item/custom-focusable-item-provider';\nimport { normalizeKey } from '../../../utils/focus/key-focus/util';\nimport { ClrPopoverToggleService } from '../../../utils/popover/providers/popover-toggle.service';\nimport { PseudoFocusModel } from '../model/pseudo-focus.model';\nimport { OptionSelectionService } from './option-selection.service';\n\n@Injectable()\nexport class ComboboxFocusHandler<T> {\n // We need a Change Detector from the related component, so we can update it on Blur\n // (which is needed because of Edge specific lifecycle mis-behavior)\n componentCdRef: ChangeDetectorRef;\n pseudoFocus: PseudoFocusModel<OptionData<T>> = new PseudoFocusModel<OptionData<T>>();\n\n private renderer: Renderer2;\n private _trigger: HTMLElement;\n private _listbox: HTMLElement;\n private _textInput: HTMLElement;\n private optionData: OptionData<T>[] = [];\n\n constructor(\n rendererFactory: RendererFactory2,\n private toggleService: ClrPopoverToggleService,\n private selectionService: OptionSelectionService<T>,\n @Inject(PLATFORM_ID) private platformId: any\n ) {\n this.handleFocusSubscription();\n // Direct renderer injection can be problematic and leads to failing tests at least\n this.renderer = rendererFactory.createRenderer(null, null);\n }\n\n get trigger() {\n return this._trigger;\n }\n set trigger(el: HTMLElement) {\n this._trigger = el;\n this.addFocusOnBlurListener(el);\n }\n\n get listbox() {\n return this._listbox;\n }\n set listbox(el: HTMLElement) {\n this._listbox = el;\n this.addFocusOnBlurListener(el);\n }\n\n get textInput() {\n return this._textInput;\n }\n set textInput(el: HTMLElement) {\n this._textInput = el;\n this.renderer.listen(el, 'keydown', event => !this.handleTextInput(event));\n this.addFocusOnBlurListener(el);\n }\n\n focusInput() {\n if (this.textInput && isPlatformBrowser(this.platformId)) {\n this.textInput.focus();\n }\n }\n\n focusFirstActive() {\n if (this.optionData.length > 0) {\n if (this.selectionService.selectionModel.isEmpty()) {\n this.pseudoFocus.select(this.optionData[0]);\n } else {\n let firstActive: T;\n if (this.selectionService.multiselectable) {\n firstActive = (this.selectionService.selectionModel.model as T[])[0];\n } else {\n firstActive = this.selectionService.selectionModel.model as T;\n }\n const activeProxy = this.optionData.find(option => option.value === firstActive);\n if (activeProxy) {\n // active element is visible\n this.pseudoFocus.select(activeProxy);\n } else {\n // we have active element, but it's filtered out\n this.pseudoFocus.select(this.optionData[0]);\n }\n this.scrollIntoSelectedModel('auto');\n }\n }\n }\n\n addOptionValues(options: OptionData<T>[]) {\n this.optionData = options;\n }\n\n private handleFocusSubscription() {\n this.toggleService.openChange.subscribe(open => {\n if (!open) {\n this.pseudoFocus.model = null;\n }\n });\n }\n\n private moveFocusTo(direction: ArrowKeyDirection) {\n let index = this.optionData.findIndex(option => option.equals(this.pseudoFocus.model));\n if (direction === ArrowKeyDirection.UP) {\n if (index === -1 || index === 0) {\n index = this.optionData.length - 1;\n } else {\n index--;\n }\n } else if (direction === ArrowKeyDirection.DOWN) {\n if (index === -1 || index === this.optionData.length - 1) {\n index = 0;\n } else {\n index++;\n }\n }\n this.pseudoFocus.select(this.optionData[index]);\n this.scrollIntoSelectedModel();\n }\n\n private openAndMoveTo(direction: ArrowKeyDirection) {\n if (!this.toggleService.open) {\n this.toggleService.openChange.pipe(take(1)).subscribe(open => {\n if (open) {\n this.moveFocusTo(direction);\n }\n });\n this.toggleService.open = true;\n } else {\n this.moveFocusTo(direction);\n }\n }\n\n // this service is only interested in keys that may move the focus\n private handleTextInput(event: KeyboardEvent): boolean {\n let preventDefault = false;\n const key = normalizeKey(event.key);\n if (event) {\n switch (key) {\n case Keys.Enter:\n if (this.toggleService.open && this.pseudoFocus.model) {\n if (this.selectionService.multiselectable) {\n this.selectionService.toggle(this.pseudoFocus.model.value);\n } else {\n this.selectionService.select(this.pseudoFocus.model.value);\n }\n preventDefault = true;\n }\n break;\n case Keys.Space:\n if (!this.toggleService.open) {\n this.toggleService.open = true;\n preventDefault = true;\n }\n break;\n case Keys.ArrowUp:\n this.preventViewportScrolling(event);\n this.openAndMoveTo(ArrowKeyDirection.UP);\n preventDefault = true;\n break;\n case Keys.ArrowDown:\n this.preventViewportScrolling(event);\n this.openAndMoveTo(ArrowKeyDirection.DOWN);\n preventDefault = true;\n break;\n default:\n // Any other keypress\n if (\n event.key !== Keys.Tab &&\n !(this.selectionService.multiselectable && event.key === Keys.Backspace) &&\n !(event.key === Keys.Escape) &&\n !this.toggleService.open\n ) {\n this.toggleService.open = true;\n }\n break;\n }\n }\n return preventDefault;\n }\n\n private scrollIntoSelectedModel(behavior: ScrollBehavior = 'smooth') {\n if (this.pseudoFocus.model && this.pseudoFocus.model.el) {\n this.pseudoFocus.model.el.scrollIntoView({ behavior, block: 'center', inline: 'nearest' });\n }\n }\n\n private preventViewportScrolling(event: KeyboardEvent) {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n\n private addFocusOnBlurListener(el: HTMLElement) {\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.listen(el, 'blur', event => {\n if (this.focusOutOfComponent(event)) {\n this.toggleService.open = false;\n // Workaround for popover close-on-outside-click timing issues in Edge browser\n if (this.componentCdRef) {\n this.componentCdRef.detectChanges();\n }\n }\n });\n }\n }\n\n private focusOutOfComponent(event: FocusEvent): boolean {\n // event.relatedTarget is null in IE11. In that case we use document.activeElement\n // which points to the element that becomes active as the blur event occurs on the input.\n const target = (event.relatedTarget || document.activeElement) as Node;\n return !(this.textInput.contains(target) || this.trigger.contains(target) || this.listbox.contains(target));\n }\n}\n\nexport const COMBOBOX_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(ComboboxFocusHandler);\n\nexport class OptionData<T> {\n id: string;\n el: HTMLElement;\n value: T;\n constructor(id: string, value: T) {\n this.id = id;\n this.value = value;\n }\n equals(other: OptionData<T>): boolean {\n if (!other) {\n return false;\n }\n return this.id === other.id && this.value === other.value;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ElementRef, HostBinding, HostListener, Input, OnInit } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ComboboxFocusHandler, OptionData as OptionProxy } from './providers/combobox-focus-handler.service';\nimport { OptionSelectionService } from './providers/option-selection.service';\n@Component({\n selector: 'clr-option',\n template: `\n <ng-content></ng-content>\n <span *ngIf=\"selected\" class=\"clr-sr-only\">{{ commonStrings.keys.comboboxSelected }}</span>\n `,\n host: {\n '[class.clr-combobox-option]': 'true',\n '[attr.role]': '\"option\"',\n // Do not remove. Or click-selection will not work.\n '[attr.tabindex]': '-1',\n '[attr.id]': 'optionId',\n },\n})\nexport class ClrOption<T> implements OnInit {\n // A proxy with only the necessary data to be used for a11y and the focus handler service.\n optionProxy: OptionProxy<T> = new OptionProxy(null, null);\n\n private _id: string;\n private _value: T;\n\n constructor(\n public elRef: ElementRef,\n public commonStrings: ClrCommonStringsService,\n private focusHandler: ComboboxFocusHandler<T>,\n private optionSelectionService: OptionSelectionService<T>\n ) {\n this.optionProxy.el = this.elRef.nativeElement;\n }\n\n @Input('id')\n get optionId() {\n return this._id;\n }\n set optionId(id: string) {\n this._id = id;\n this.optionProxy.id = this._id;\n }\n\n @Input('clrValue')\n get value(): T {\n return this._value;\n }\n set value(value: T) {\n this._value = value;\n this.optionProxy.value = value;\n }\n\n @HostBinding('class.active')\n get selected() {\n return (\n this.optionSelectionService.selectionModel && this.optionSelectionService.selectionModel.containsItem(this.value)\n );\n }\n\n @HostBinding('class.clr-focus')\n get focusClass() {\n return this.focusHandler.pseudoFocus.containsItem(this.optionProxy);\n }\n\n ngOnInit() {\n if (!this._id) {\n this._id = 'clr-option-' + uniqueIdFactory();\n this.optionProxy.id = this._id;\n }\n }\n\n @HostListener('click')\n onClick() {\n if (this.optionSelectionService.multiselectable) {\n this.optionSelectionService.toggle(this.value);\n } else {\n this.optionSelectionService.select(this.value);\n }\n // As the popover stays open in multi-select mode now, we have to take focus back to the input\n // This way we achieve two things:\n // - do not lose focus\n // - we're still able to use onBlur for \"outside-click\" handling\n this.focusHandler.focusInput();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ContentChildren,\n ElementRef,\n Inject,\n Input,\n OnDestroy,\n Optional,\n QueryList,\n} from '@angular/core';\nimport { fromEvent, Subscription } from 'rxjs';\n\nimport { POPOVER_HOST_ANCHOR } from '../../popover/common/popover-host-anchor.token';\nimport { IF_ACTIVE_ID } from '../../utils/conditional/if-active.service';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrLoadingState } from '../../utils/loading/loading';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { ClrOption } from './option';\nimport { ComboboxFocusHandler } from './providers/combobox-focus-handler.service';\nimport { OptionSelectionService } from './providers/option-selection.service';\n\nlet nbOptionsComponents = 0;\n\n@Component({\n selector: 'clr-options',\n template: `\n <div *ngIf=\"optionSelectionService.loading\" class=\"clr-combobox-options-loading\">\n <clr-spinner clrInline>\n {{ commonStrings.keys.loading }}\n </clr-spinner>\n <span class=\"clr-combobox-options-text\">\n {{ searchText(optionSelectionService.currentInput) }}\n </span>\n </div>\n\n <!-- Rendered if data set is empty -->\n <div *ngIf=\"emptyOptions\">\n <span class=\"clr-combobox-options-empty-text\">\n {{ commonStrings.keys.comboboxNoResults }}\n </span>\n </div>\n\n <!--Option Groups and Options will be projected here-->\n <ng-content></ng-content>\n `,\n providers: [{ provide: LoadingListener, useExisting: ClrOptions }],\n host: {\n '[class.clr-combobox-options]': 'true',\n '[attr.role]': '\"listbox\"',\n '[id]': 'optionsId',\n },\n})\nexport class ClrOptions<T> implements AfterViewInit, LoadingListener, OnDestroy {\n @Input('id') optionsId: string;\n\n loading = false;\n _items: QueryList<ClrOption<T>>;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n public optionSelectionService: OptionSelectionService<T>,\n @Inject(IF_ACTIVE_ID) public id: number,\n private el: ElementRef,\n public commonStrings: ClrCommonStringsService,\n private focusHandler: ComboboxFocusHandler<T>,\n private toggleService: ClrPopoverToggleService,\n @Optional()\n @Inject(POPOVER_HOST_ANCHOR)\n parentHost: ElementRef,\n @Inject(DOCUMENT) private document: any\n ) {\n if (!parentHost) {\n throw new Error('clr-options should only be used inside of a clr-combobox');\n }\n\n if (!this.optionsId) {\n this.optionsId = 'clr-options-' + nbOptionsComponents++;\n }\n }\n\n @ContentChildren(ClrOption)\n get items(): QueryList<ClrOption<T>> {\n return this._items;\n }\n set items(items: QueryList<ClrOption<T>>) {\n this._items = items;\n this.focusHandler.addOptionValues(this._items.map(option => option.optionProxy));\n }\n\n /**\n * Tests if the list of options is empty, meaning it doesn't contain any items\n */\n get emptyOptions() {\n return !this.optionSelectionService.loading && this.items.length === 0;\n }\n\n ngAfterViewInit() {\n this.focusHandler.listbox = this.el.nativeElement;\n\n this.subscriptions.push(\n fromEvent(this.document, 'scroll', { capture: true }).subscribe(event => {\n if (\n this.toggleService.open &&\n (event as Event).target !== this.el.nativeElement &&\n (event as Event).target !== this.focusHandler.textInput\n ) {\n this.toggleService.open = false;\n }\n }),\n this.items.changes.subscribe(items => {\n if (items.length) {\n setTimeout(() => {\n this.focusHandler.focusFirstActive();\n });\n } else {\n this.focusHandler.pseudoFocus.pop();\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n searchText(input: string) {\n return this.commonStrings.parse(this.commonStrings.keys.comboboxSearching, { INPUT: input });\n }\n\n loadingStateChange(state: ClrLoadingState): void {\n this.loading = state === ClrLoadingState.LOADING;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n HostListener,\n Inject,\n Injector,\n Input,\n Optional,\n Output,\n PLATFORM_ID,\n Renderer2,\n Self,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core';\nimport { ControlValueAccessor, NgControl } from '@angular/forms';\n\nimport { IF_ACTIVE_ID_PROVIDER } from '../../utils/conditional/if-active.service';\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { FOCUS_SERVICE_PROVIDER } from '../../utils/focus/focus.service';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrLoadingState } from '../../utils/loading/loading';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\nimport { ClrAlignment } from '../../utils/popover/enums/alignment.enum';\nimport { ClrAxis } from '../../utils/popover/enums/axis.enum';\nimport { ClrSide } from '../../utils/popover/enums/side.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverPositionService } from '../../utils/popover/providers/popover-position.service';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { CONTROL_STATE, IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrComboboxContainer } from './combobox-container';\nimport { ComboboxModel } from './model/combobox.model';\nimport { MultiSelectComboboxModel } from './model/multi-select-combobox.model';\nimport { SingleSelectComboboxModel } from './model/single-select-combobox.model';\nimport { ClrOptionSelected } from './option-selected.directive';\nimport { ClrOptions } from './options';\nimport { ComboboxContainerService } from './providers/combobox-container.service';\nimport { COMBOBOX_FOCUS_HANDLER_PROVIDER, ComboboxFocusHandler } from './providers/combobox-focus-handler.service';\nimport { OptionSelectionService } from './providers/option-selection.service';\n\n@Component({\n selector: 'clr-combobox',\n templateUrl: './combobox.html',\n providers: [\n OptionSelectionService,\n { provide: LoadingListener, useExisting: ClrCombobox },\n IF_ACTIVE_ID_PROVIDER,\n FOCUS_SERVICE_PROVIDER,\n COMBOBOX_FOCUS_HANDLER_PROVIDER,\n ],\n hostDirectives: [ClrPopoverHostDirective],\n host: {\n '[class.aria-required]': 'true',\n '[class.clr-combobox]': 'true',\n '[class.clr-combobox-disabled]': 'control?.disabled',\n },\n})\nexport class ClrCombobox<T>\n extends WrappedFormControl<ClrComboboxContainer>\n implements ControlValueAccessor, LoadingListener, AfterContentInit\n{\n @Input('placeholder') placeholder = '';\n\n @Output('clrInputChange') clrInputChange = new EventEmitter<string>(false);\n @Output('clrOpenChange') clrOpenChange = this.toggleService.openChange;\n\n /**\n * This output should be used to set up a live region using aria-live and populate it with updates that reflect each combobox change.\n */\n @Output('clrSelectionChange') clrSelectionChange = this.optionSelectionService.selectionChanged;\n\n @ViewChild('textboxInput') textbox: ElementRef;\n @ViewChild('trigger') trigger: ElementRef;\n @ContentChild(ClrOptionSelected) optionSelected: ClrOptionSelected<T>;\n\n invalid = false;\n focused = false;\n focusedPill: any;\n\n smartPosition: ClrPopoverPosition = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n\n protected override index = 1;\n\n @ContentChild(ClrOptions) private options: ClrOptions<T>;\n\n private _searchText = '';\n private onTouchedCallback: () => any;\n private onChangeCallback: (model: T | T[]) => any;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n public control: NgControl,\n protected override renderer: Renderer2,\n protected override el: ElementRef,\n public optionSelectionService: OptionSelectionService<T>,\n public commonStrings: ClrCommonStringsService,\n private toggleService: ClrPopoverToggleService,\n private positionService: ClrPopoverPositionService,\n @Optional() private controlStateService: IfControlStateService,\n @Optional() private containerService: ComboboxContainerService,\n @Inject(PLATFORM_ID) private platformId: any,\n private focusHandler: ComboboxFocusHandler<T>,\n private cdr: ChangeDetectorRef\n ) {\n super(vcr, ClrComboboxContainer, injector, control, renderer, el);\n if (control) {\n control.valueAccessor = this;\n }\n // default to SingleSelectComboboxModel, in case the optional input [ClrMulti] isn't used\n this.optionSelectionService.selectionModel = new SingleSelectComboboxModel<T>();\n this.updateControlValue();\n }\n\n @Input('clrMulti')\n get multiSelect() {\n return this.optionSelectionService.multiselectable;\n }\n set multiSelect(value: boolean | string) {\n if (value) {\n this.optionSelectionService.selectionModel = new MultiSelectComboboxModel<T>();\n } else {\n // in theory, setting this again should not cause errors even though we already set it in constructor,\n // since the initial call to writeValue (caused by [ngModel] input) should happen after this\n this.optionSelectionService.selectionModel = new SingleSelectComboboxModel<T>();\n }\n this.updateControlValue();\n }\n\n // Override the id of WrappedFormControl, as we want to move it to the embedded input.\n // Otherwise the label/component connection does not work and screen readers do not read the label.\n override get id() {\n return this.controlIdService.id + '-combobox';\n }\n override set id(id: string) {\n super.id = id;\n }\n\n get searchText(): string {\n return this._searchText;\n }\n set searchText(text: string) {\n // if input text has changed since last time, fire a change event so application can react to it\n if (text !== this._searchText) {\n if (this.toggleService.open) {\n this.optionSelectionService.showAllOptions = false;\n }\n this._searchText = text;\n this.clrInputChange.emit(this.searchText);\n }\n // We need to trigger this even if unchanged, so the option-items directive will update its list\n // based on the \"showAllOptions\" variable which may have changed in the openChange subscription below.\n // The option-items directive does not listen to openChange, but it listens to currentInput changes.\n this.optionSelectionService.currentInput = this.searchText;\n }\n\n get openState(): boolean {\n return this.toggleService.open;\n }\n\n get multiSelectModel(): T[] {\n if (!this.multiSelect) {\n throw Error('multiSelectModel is not available in single selection context');\n }\n return (this.optionSelectionService.selectionModel as MultiSelectComboboxModel<T>).model;\n }\n\n get ariaControls(): string {\n return this.options?.optionsId;\n }\n\n get ariaOwns(): string {\n return this.options?.optionsId;\n }\n\n get ariaDescribedBySelection(): string {\n return 'selection-' + this.id;\n }\n\n get displayField(): string {\n return this.optionSelectionService.displayField;\n }\n\n private get disabled() {\n return this.control && this.control.disabled;\n }\n\n ngAfterContentInit() {\n this.initializeSubscriptions();\n\n // Initialize with preselected value\n if (!this.optionSelectionService.selectionModel.isEmpty()) {\n this.updateInputValue(this.optionSelectionService.selectionModel);\n }\n }\n\n ngAfterViewInit() {\n this.focusHandler.componentCdRef = this.cdr;\n this.focusHandler.textInput = this.textbox.nativeElement;\n this.focusHandler.trigger = this.trigger.nativeElement;\n // The text input is the actual element we are wrapping\n // This assignment is needed by the wrapper, so it can set\n // the aria properties on the input element, not on the component.\n this.el = this.textbox;\n }\n\n @HostListener('keydown', ['$event'])\n onKeyUp(event: KeyboardEvent) {\n // if BACKSPACE in multiselect mode, delete the last pill if text is empty\n if (event.key === Keys.Backspace && this.multiSelect && this._searchText.length === 0) {\n const multiModel: T[] = this.optionSelectionService.selectionModel.model as T[];\n if (multiModel && multiModel.length > 0) {\n const lastItem: T = multiModel[multiModel.length - 1];\n this.control.control.markAsTouched();\n this.optionSelectionService.unselect(lastItem);\n }\n }\n }\n\n inputId(): string {\n return this.controlIdService.id;\n }\n\n loadingStateChange(state: ClrLoadingState): void {\n this.optionSelectionService.loading = state === ClrLoadingState.LOADING;\n this.positionService.realign();\n if (state !== ClrLoadingState.LOADING && isPlatformBrowser(this.platformId)) {\n this.focusFirstActive();\n }\n }\n\n unselect(item: T) {\n if (!this.disabled) {\n this.optionSelectionService.unselect(item);\n }\n }\n\n onBlur() {\n this.onTouchedCallback();\n if (this.control.control.updateOn === 'blur') {\n this.control.control.updateValueAndValidity();\n }\n this.focused = false;\n }\n\n onFocus() {\n this.focused = true;\n\n // fix for \"expression changed\" error when focus is returned to a combobox after a modal is closed\n // https://github.com/vmware-clarity/ng-clarity/issues/663\n this.cdr.detectChanges();\n }\n\n getSelectionAriaLabel() {\n if (this.containerService && this.containerService.labelText) {\n return `${this.containerService.labelText} ${this.commonStrings.keys.comboboxSelection}`;\n }\n return this.commonStrings.keys.comboboxSelection;\n }\n\n focusFirstActive() {\n setTimeout(() => {\n this.focusHandler.focusFirstActive();\n });\n }\n\n writeValue(value: T | T[]): void {\n this.optionSelectionService.selectionModel.model = value;\n this.updateInputValue(this.optionSelectionService.selectionModel);\n }\n\n registerOnTouched(onTouched: any): void {\n this.onTouchedCallback = onTouched;\n }\n\n registerOnChange(onChange: any): void {\n this.onChangeCallback = onChange;\n }\n\n getActiveDescendant() {\n const model = this.focusHandler.pseudoFocus.model;\n return model ? model.id : null;\n }\n\n setDisabledState(): void {\n // do nothing\n }\n\n focusInput() {\n this.focusHandler.focusInput();\n }\n\n private initializeSubscriptions(): void {\n this.subscriptions.push(\n this.optionSelectionService.selectionChanged.subscribe((newSelection: ComboboxModel<T>) => {\n this.updateInputValue(newSelection);\n if (this.multiSelect) {\n this.positionService.realign();\n }\n if (!this.multiSelect && newSelection && !newSelection.isEmpty()) {\n this.toggleService.open = false;\n }\n this.updateControlValue();\n })\n );\n\n this.subscriptions.push(\n this.toggleService.openChange.subscribe(open => {\n if (open) {\n this.focusFirstActive();\n } else {\n this.optionSelectionService.showAllOptions = true;\n }\n if (this.multiSelect) {\n this.searchText = '';\n } else {\n this.searchText = this.getDisplayNames(this.optionSelectionService.selectionModel.model)[0] || '';\n }\n })\n );\n\n this.subscriptions.push(\n this.toggleService.popoverAligned.subscribe(popoverNode => {\n // When used outside a combobox container\n if (!this.containerService) {\n return;\n }\n const popover: HTMLElement = popoverNode as HTMLElement;\n // Update position if popover hides the label\n if (popover.getBoundingClientRect().top < this.el.nativeElement.getBoundingClientRect().top) {\n this.renderer.setStyle(popoverNode, 'top', `${popover.offsetTop + this.containerService.labelOffset}px`);\n }\n })\n );\n\n if (this.controlStateService) {\n this.subscriptions.push(\n this.controlStateService.statusChanges.subscribe(invalid => {\n this.invalid = invalid === CONTROL_STATE.INVALID;\n })\n );\n }\n }\n\n private updateInputValue(model: ComboboxModel<T>) {\n if (!this.multiSelect) {\n this.searchText = model.model ? this.getDisplayNames(model.model)[0] : '';\n if (this.searchText) {\n this.optionSelectionService.currentInput = this.searchText;\n }\n }\n }\n\n private updateControlValue() {\n if (this.onChangeCallback) {\n this.onChangeCallback(this.optionSelectionService.selectionModel.model);\n }\n }\n\n private getDisplayNames(model: T | T[]) {\n if (this.displayField) {\n if (!Array.isArray(model)) {\n model = [model];\n }\n return model.map(item => (item ? (item as any)[this.displayField] : null));\n }\n return [this.optionSelectionService.selectionModel.model];\n }\n}\n","<!--\n* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<!-- The (click) handler is needed to auto-focus on input field which can not currently occupy the whole\n width of the component, after being wrapped to a new line -->\n<div\n class=\"clr-combobox-wrapper\"\n clrPopoverAnchor\n (click)=\"focusInput()\"\n [class.multi]=\"multiSelect\"\n [class.invalid]=\"invalid\"\n [class.disabled]=\"control?.disabled? true: null\"\n>\n <span\n *ngIf=\"multiSelect && optionSelectionService.selectionModel.model\"\n role=\"grid\"\n clrRovingTabindex\n [clrRovingTabindexDisabled]=\"control?.disabled\"\n clrDirection=\"both\"\n [attr.aria-label]=\"getSelectionAriaLabel()\"\n [attr.aria-disabled]=\"control?.disabled? true: null\"\n >\n <span *ngFor=\"let item of multiSelectModel; let i = index\" class=\"label label-combobox-pill\" role=\"row\">\n <span role=\"gridcell\">\n <span class=\"clr-combobox-pill-content\" clrKeyFocusItem>\n <ng-container\n *ngIf=\"optionSelected\"\n [ngTemplateOutlet]=\"optionSelected.template\"\n [ngTemplateOutletContext]=\"{$implicit: optionSelectionService.selectionModel.model[i]}\"\n ></ng-container>\n </span>\n </span>\n <span role=\"gridcell\">\n <button\n clrKeyFocusItem\n type=\"button\"\n class=\"clr-combobox-remove-btn\"\n [disabled]=\"control?.disabled? true: null\"\n [attr.aria-label]=\"commonStrings.keys.comboboxDelete + ' ' + optionSelectionService.selectionModel.toString(displayField, i)\"\n (click)=\"unselect(item)\"\n >\n <cds-icon shape=\"window-close\" size=\"12\"></cds-icon>\n </button>\n </span>\n </span>\n </span>\n\n <span class=\"clr-combobox-input-wrapper\">\n <input\n #textboxInput\n type=\"text\"\n role=\"combobox\"\n [id]=\"inputId()\"\n class=\"clr-input clr-combobox-input\"\n [(ngModel)]=\"searchText\"\n (blur)=\"onBlur()\"\n (focus)=\"onFocus()\"\n [attr.aria-expanded]=\"openState\"\n [attr.aria-owns]=\"ariaOwns\"\n aria-haspopup=\"listbox\"\n aria-autocomplete=\"list\"\n autocomplete=\"off\"\n [attr.aria-invalid]=\"control?.invalid? true: null\"\n [disabled]=\"control?.disabled? true: null\"\n [attr.aria-activedescendant]=\"getActiveDescendant()\"\n [attr.placeholder]=\"placeholder\"\n />\n </span>\n\n <!-- No click handler, as it uses the handler on the .clr-combobox-wrapper -->\n <button\n clrPopoverOpenCloseButton\n #trigger\n type=\"button\"\n class=\"clr-combobox-trigger\"\n tabindex=\"-1\"\n [disabled]=\"control?.disabled || null\"\n [attr.aria-label]=\"commonStrings.keys.comboboxOpen\"\n >\n <cds-icon shape=\"angle\" direction=\"down\"></cds-icon>\n </button>\n\n <div class=\"clr-focus-indicator\" [class.clr-focus]=\"focused\"></div>\n</div>\n\n<!-- Both close handlers are handled manually due to issues in Edge browser.\n Additionally 'outsideClickToClose' has complex handling that's necessary\n to be manual due to the component architecture -->\n<div role=\"dialog\" *clrPopoverContent=\"openState at smartPosition; outsideClickToClose: false; scrollToClose: false\">\n <ng-content></ng-content>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgForOf, NgForOfContext } from '@angular/common';\nimport {\n Directive,\n DoCheck,\n Input,\n IterableDiffer,\n IterableDiffers,\n OnDestroy,\n TemplateRef,\n TrackByFunction,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrPopoverPositionService } from '../../utils/popover/providers/popover-position.service';\nimport { OptionSelectionService } from './providers/option-selection.service';\n\n@Directive({\n selector: '[clrOptionItems][clrOptionItemsOf]',\n})\nexport class ClrOptionItems<T> implements DoCheck, OnDestroy {\n private iterableProxy: NgForOf<T>;\n private _rawItems: T[];\n private filteredItems: T[];\n private subscriptions: Subscription[] = [];\n private filter = '';\n private _filterField: string;\n private differ: IterableDiffer<T> | null = null;\n\n constructor(\n public template: TemplateRef<NgForOfContext<T>>,\n private differs: IterableDiffers,\n private optionService: OptionSelectionService<T>,\n private positionService: ClrPopoverPositionService,\n private vcr: ViewContainerRef\n ) {\n this.iterableProxy = new NgForOf<T>(this.vcr, this.template, this.differs);\n this.subscriptions.push(\n optionService.inputChanged.subscribe(filter => {\n this.filter = filter;\n this.updateItems();\n })\n );\n }\n\n @Input('clrOptionItemsOf')\n set rawItems(items: T[]) {\n this._rawItems = items ? items : [];\n this.updateItems();\n }\n\n @Input('clrOptionItemsTrackBy')\n set trackBy(value: TrackByFunction<T>) {\n this.iterableProxy.ngForTrackBy = value;\n }\n\n @Input('clrOptionItemsField')\n set field(field: string) {\n this._filterField = field;\n this.optionService.displayField = field;\n }\n\n ngDoCheck() {\n if (!this.differ) {\n this.differ = this.differs.find(this.filteredItems).create(this.iterableProxy.ngForTrackBy);\n }\n if (this.differ) {\n const changes = this.differ.diff(this.filteredItems);\n if (changes) {\n this.iterableProxy.ngDoCheck();\n this.positionService.realign();\n }\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n private updateItems() {\n if (!this._rawItems || this.filter === undefined || this.filter === null) {\n return;\n }\n\n const normalizedFilterValue = normalizeValue(this.filter);\n\n if (this.optionService.showAllOptions) {\n this.filteredItems = this._rawItems;\n } else if (this._filterField) {\n this.filteredItems = this._rawItems.filter(item => {\n const objValue = (item as any)[this._filterField];\n return objValue ? normalizeValue(objValue).includes(normalizedFilterValue) : false;\n });\n } else {\n // Filter by all item object values\n this.filteredItems = this._rawItems.filter(item => {\n if (typeof item !== 'object') {\n return normalizeValue(item).includes(normalizedFilterValue);\n }\n const objValues = Object.values(item).filter(value => {\n return value !== null && value !== undefined ? normalizeValue(value).includes(normalizedFilterValue) : false;\n });\n return objValues.length > 0;\n });\n }\n this.iterableProxy.ngForOf = this.filteredItems;\n }\n}\n\nfunction normalizeValue(value: any) {\n return value\n .toString()\n .normalize('NFD')\n .replace(/\\p{Diacritic}/gu, '')\n .toLowerCase();\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { angleIcon, checkCircleIcon, ClarityIcons, exclamationCircleIcon, windowCloseIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrSpinnerModule } from '../../progress/spinner/spinner.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrKeyFocusModule } from '../../utils/focus/key-focus/key-focus.module';\nimport { ClrPopoverModuleNext } from '../../utils/popover/popover.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrCombobox } from './combobox';\nimport { ClrComboboxContainer } from './combobox-container';\nimport { ClrOption } from './option';\nimport { ClrOptionItems } from './option-items.directive';\nimport { ClrOptionSelected } from './option-selected.directive';\nimport { ClrOptions } from './options';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ClrIconModule,\n ClrKeyFocusModule,\n ClrCommonFormsModule,\n ClrConditionalModule,\n ClrPopoverModuleNext,\n ClrSpinnerModule,\n ],\n declarations: [ClrCombobox, ClrComboboxContainer, ClrOptions, ClrOption, ClrOptionSelected, ClrOptionItems],\n exports: [\n ClrCommonFormsModule,\n ClrCombobox,\n ClrComboboxContainer,\n ClrOptions,\n ClrOption,\n ClrOptionSelected,\n ClrConditionalModule,\n ClrOptionItems,\n ],\n})\nexport class ClrComboboxModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon, angleIcon, windowCloseIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\n\n@Component({\n selector: 'clr-input-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-input-wrapper\">\n <ng-content select=\"[clrInput]\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService],\n})\nexport class ClrInputContainer extends ClrAbstractContainer {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrInputContainer } from './input-container';\n\n@Directive({\n selector: '[clrInput]',\n host: { '[class.clr-input]': 'true' },\n})\nexport class ClrInput extends WrappedFormControl<ClrInputContainer> {\n protected override index = 1;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrInputContainer, injector, control, renderer, el);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrInput } from './input';\nimport { ClrInputContainer } from './input-container';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ClrIconModule, ClrCommonFormsModule],\n declarations: [ClrInput, ClrInputContainer],\n exports: [ClrCommonFormsModule, ClrInput, ClrInputContainer],\n})\nexport class ClrInputModule {\n constructor() {\n ClarityIcons.addIcons(\n exclamationCircleIcon,\n checkCircleIcon // caret\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nlet counter = 0;\n\n@Injectable()\nexport class DatalistIdService {\n private _id = 'clr-datalist-' + ++counter;\n private _idChange = new BehaviorSubject(this._id);\n\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n this._id = value;\n this._idChange.next(value);\n }\n\n get idChange(): Observable<string> {\n return this._idChange.asObservable();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, Directive, Input, Optional } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { DatalistIdService } from './providers/datalist-id.service';\n\n@Directive({\n selector: 'datalist',\n host: {\n '[id]': 'datalistId',\n },\n})\nexport class ClrDatalist implements AfterContentInit {\n datalistId: string;\n\n private subscriptions: Subscription[] = [];\n\n constructor(@Optional() private datalistIdService: DatalistIdService) {}\n\n @Input()\n set id(idValue: string) {\n if (!!idValue && this.datalistIdService) {\n this.datalistId = idValue;\n this.datalistIdService.id = idValue;\n } else if (idValue) {\n this.datalistId = idValue;\n }\n }\n\n ngAfterContentInit() {\n if (!this.datalistIdService) {\n return;\n }\n this.subscriptions.push(this.datalistIdService.idChange.subscribe(id => (this.datalistId = id)));\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\n@Injectable()\nexport class FocusService {\n private _focused = new BehaviorSubject(false);\n get focusChange(): Observable<boolean> {\n return this._focused.asObservable();\n }\n set focused(state: boolean) {\n this._focused.next(state);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Optional } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { FocusService } from '../common/providers/focus.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\nimport { DatalistIdService } from './providers/datalist-id.service';\n\n@Component({\n selector: 'clr-datalist-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-input-wrapper\">\n <div class=\"clr-input-group\" [class.clr-focus]=\"focus\">\n <ng-content select=\"[clrDatalistInput]\"></ng-content>\n <ng-content select=\"datalist\"></ng-content>\n <cds-icon shape=\"angle\" class=\"clr-datalist-caret\" direction=\"down\"></cds-icon>\n </div>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [\n ControlClassService,\n LayoutService,\n ControlIdService,\n FocusService,\n NgControlService,\n DatalistIdService,\n IfControlStateService,\n ],\n})\nexport class ClrDatalistContainer extends ClrAbstractContainer {\n focus = false;\n\n constructor(\n controlClassService: ControlClassService,\n @Optional() layoutService: LayoutService,\n ngControlService: NgControlService,\n private focusService: FocusService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n\n this.subscriptions.push(this.focusService.focusChange.subscribe(state => (this.focus = state)));\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n Directive,\n ElementRef,\n HostListener,\n Injector,\n Optional,\n Renderer2,\n Self,\n ViewContainerRef,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { FocusService } from '../common/providers/focus.service';\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrDatalistContainer } from './datalist-container';\nimport { DatalistIdService } from './providers/datalist-id.service';\n\n@Directive({\n selector: '[clrDatalistInput]',\n host: {\n '[class.clr-input]': 'true',\n '[attr.list]': 'listValue',\n },\n})\nexport class ClrDatalistInput extends WrappedFormControl<ClrDatalistContainer> implements AfterContentInit {\n listValue: string;\n\n constructor(\n @Optional() private focusService: FocusService,\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef,\n private datalistIdService: DatalistIdService\n ) {\n super(vcr, ClrDatalistContainer, injector, control, renderer, el);\n\n if (!this.focusService) {\n throw new Error('clrDatalist requires being wrapped in <clr-datalist-container>');\n }\n }\n\n ngAfterContentInit() {\n // Subscriptions is inherited from WrappedFormControl, unsubscribe is handled there\n this.subscriptions.push(this.datalistIdService.idChange.subscribe(id => (this.listValue = id)));\n }\n\n @HostListener('focus')\n triggerFocus() {\n if (this.focusService) {\n this.focusService.focused = true;\n }\n }\n\n @HostListener('blur')\n override triggerValidation() {\n super.triggerValidation();\n if (this.focusService) {\n this.focusService.focused = false;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrInputModule } from '../input/input.module';\nimport { ClrDatalist } from './datalist';\nimport { ClrDatalistContainer } from './datalist-container';\nimport { ClrDatalistInput } from './datalist-input';\n\n@NgModule({\n imports: [CommonModule, ClrInputModule, ClrIconModule],\n declarations: [ClrDatalist, ClrDatalistInput, ClrDatalistContainer],\n exports: [ClrDatalist, ClrDatalistInput, ClrDatalistContainer],\n})\nexport class ClrDatalistModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CdkTrapFocus } from '@angular/cdk/a11y';\nimport { Directive, NgModule } from '@angular/core';\n\n/**\n * This is just a copy of CdkTrapFocus so it can be used independent of the rest of the A11yModule.\n */\n@Directive({\n selector: '[cdkTrapFocus]',\n})\nexport class CdkTrapFocusModule_CdkTrapFocus extends CdkTrapFocus {}\n\n/**\n * This module allows us to avoid importing all of A11yModule which results in a smaller application bundle.\n */\n@NgModule({\n declarations: [CdkTrapFocusModule_CdkTrapFocus],\n exports: [CdkTrapFocusModule_CdkTrapFocus],\n})\nexport class CdkTrapFocusModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/**\n * This is the en-001 short locale date format. Setting as default.\n */\nexport const DEFAULT_LOCALE_FORMAT = 'dd/MM/y';\n\n// https://en.wikipedia.org/wiki/Date_format_by_country\nexport const LITTLE_ENDIAN_REGEX = /d+.+m+.+y+/i;\nexport const MIDDLE_ENDIAN_REGEX = /m+.+d+.+y+/i;\n// No need for BIG_ENDIAN_REGEX because anything that doesn't satisfy the above 2\n// is automatically BIG_ENDIAN\n\nexport const DELIMITER_REGEX = /d+|m+|y+/i;\n\nexport const USER_INPUT_REGEX = /\\d+/g;\n\nexport const MOBILE_USERAGENT_REGEX = /Mobi/i;\n\nexport const RTL_REGEX = /\\u200f/g;\n\nexport const YEAR = 'YYYY';\nexport const MONTH = 'MM';\nexport const DATE = 'DD';\n\nexport type FormatType = 'LITTLE_ENDIAN' | 'MIDDLE_ENDIAN' | 'BIG_ENDIAN';\n\nexport type InputDateDisplayFormat = {\n readonly name: FormatType;\n readonly format: [string, string, string];\n};\n\nexport const LITTLE_ENDIAN: InputDateDisplayFormat = {\n name: 'LITTLE_ENDIAN',\n format: [DATE, MONTH, YEAR],\n};\n\nexport const MIDDLE_ENDIAN: InputDateDisplayFormat = {\n name: 'MIDDLE_ENDIAN',\n format: [MONTH, DATE, YEAR],\n};\n\nexport const BIG_ENDIAN: InputDateDisplayFormat = {\n name: 'BIG_ENDIAN',\n format: [YEAR, MONTH, DATE],\n};\n\nexport const NO_OF_DAYS_IN_A_WEEK = 7;\nexport const NO_OF_ROWS_IN_CALENDAR_VIEW = 6;\nexport const TOTAL_DAYS_IN_DAYS_VIEW: number = NO_OF_DAYS_IN_A_WEEK * NO_OF_ROWS_IN_CALENDAR_VIEW;\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { WeekDay } from '@angular/common';\n\n/**\n * Returns the number of days in a month.\n */\nexport function getNumberOfDaysInTheMonth(year: number, month: number): number {\n // If we go to the next month, but use a day of 0, it returns the last day from the previous month\n return new Date(year, month + 1, 0).getDate();\n}\n\n/**\n * Returns the day for the corresponding date where 0 represents Sunday.\n */\nexport function getDay(year: number, month: number, date: number): WeekDay {\n return new Date(year, month, date).getDay();\n}\n\n/**\n * Takes in a year and if it is a 2 digit year, returns the corresponding 4 digit year.\n * Window of 80 years before and 20 years after the present year.\n * Credit: https://github.com/globalizejs/globalize/blob/e1b31cd6a4f1cff75b185b68b7a32220aac5196f/src/date/parse.js\n */\nexport function parseToFourDigitYear(year: number): number {\n if (year > 9999 || (year > 100 && year < 999) || year < 10) {\n return -1;\n }\n if (year > 999) {\n return year;\n }\n const currYear: number = new Date().getFullYear();\n const century: number = Math.floor(currYear / 100) * 100;\n let result: number = year + century;\n if (result > currYear + 20) {\n result = result - 100;\n }\n return result;\n}\n\nexport function datesAreEqual(date1: Date, date2: Date) {\n if (date1 instanceof Date && date2 instanceof Date) {\n return (\n date1.getFullYear() === date2.getFullYear() &&\n date1.getMonth() === date2.getMonth() &&\n date1.getDate() === date2.getDate()\n );\n } else {\n return false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DayModel } from './day.model';\n\nexport class DayViewModel {\n constructor(\n public dayModel: DayModel,\n public isTodaysDate: boolean = false,\n public isExcluded: boolean = false,\n public isDisabled: boolean = false,\n public isSelected: boolean = false,\n public isFocusable: boolean = false\n ) {}\n\n /**\n * Gets the tab index based on the isFocusable flag.\n */\n get tabIndex(): number {\n return this.isFocusable ? 0 : -1;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport class DayModel {\n constructor(readonly year: number, readonly month: number, readonly date: number) {}\n\n /**\n * Checks if the passed CalendarDate is equal to itself.\n */\n isEqual(day: DayModel) {\n if (day) {\n return this.year === day.year && this.month === day.month && this.date === day.date;\n }\n return false;\n }\n\n toDate(): Date {\n return new Date(this.year, this.month, this.date);\n }\n\n /**\n * Returns a new DayModel which is incremented based on the value passed.\n */\n incrementBy(value: number): DayModel {\n // Creating new Javascript Date object to increment because\n // it will automatically take care of switching to next or previous\n // months & years without we having to worry about it.\n const date: Date = new Date(this.year, this.month, this.date + value);\n return new DayModel(date.getFullYear(), date.getMonth(), date.getDate());\n }\n\n /**\n * Clones the current day model.\n */\n clone(): DayModel {\n return new DayModel(this.year, this.month, this.date);\n }\n\n toComparisonString(): string {\n return `${this.year}${this.pad(this.month)}${this.pad(this.date)}`;\n }\n\n toDateString(): string {\n return this.toDate().toLocaleDateString();\n }\n\n private pad(num: number): string {\n return num < 10 ? `0${num}` : `${num}`;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DateRange } from '../interfaces/date-range.interface';\nimport { NO_OF_DAYS_IN_A_WEEK, NO_OF_ROWS_IN_CALENDAR_VIEW, TOTAL_DAYS_IN_DAYS_VIEW } from '../utils/constants';\nimport { getDay } from '../utils/date-utils';\nimport { CalendarModel } from './calendar.model';\nimport { DayViewModel } from './day-view.model';\nimport { DayModel } from './day.model';\n\nexport class CalendarViewModel {\n private currMonthDayViews: DayViewModel[] = [];\n private _calendarView: DayViewModel[][];\n\n constructor(\n public calendar: CalendarModel,\n private selectedDay: DayModel,\n private focusableDay: DayModel,\n private today: DayModel,\n public firstDayOfWeek: number,\n private excludedDates: DateRange\n ) {\n this.initializeCalendarView();\n }\n\n /**\n * DayViewModel matrix. Size 6x7\n */\n get calendarView(): DayViewModel[][] {\n return this._calendarView;\n }\n\n /**\n * Updates the focusable day in the calendar.\n */\n updateFocusableDay(day: DayModel): void {\n this.setFocusableFlag(this.focusableDay, false);\n this.setFocusableFlag(day, true);\n this.focusableDay = day;\n }\n\n /**\n * Generates a 6x7 matrix of DayViewModel based on the Calendar.\n * The 6x7 matrix is structured according to the first day of the week.\n * 6 rows to accommodate months which might have dates spanning over 6 weeks.\n * 7 columns because there are 7 days in a week :P :D\n */\n private initializeCalendarView(): void {\n // Generate prev and next month calendar models.\n const prevMonthCalendar: CalendarModel = this.calendar.previousMonth();\n const nextMonthCalendar: CalendarModel = this.calendar.nextMonth();\n\n // Get no of days from prev and next months.\n const daysFromPrevMonthInCalView: number = this.numDaysFromPrevMonthInCalView(\n this.calendar.year,\n this.calendar.month\n );\n const daysFromNextMonthInCalView: number =\n TOTAL_DAYS_IN_DAYS_VIEW - (this.calendar.days.length + daysFromPrevMonthInCalView);\n\n // Generate prev, curr and next day view models\n let prevMonthDayViews: DayViewModel[] = [];\n let nextMonthDayViews: DayViewModel[] = [];\n\n if (daysFromPrevMonthInCalView > 0) {\n prevMonthDayViews = this.generateDayViewModels(\n prevMonthCalendar.days.slice(-1 * daysFromPrevMonthInCalView),\n true,\n false\n );\n }\n\n this.currMonthDayViews = this.generateDayViewModels(this.calendar.days, false, true);\n\n if (daysFromNextMonthInCalView > 0) {\n nextMonthDayViews = this.generateDayViewModels(\n nextMonthCalendar.days.slice(0, daysFromNextMonthInCalView),\n true,\n false\n );\n }\n\n // Generate calendar view and initialize flags\n this._calendarView = this.generateCalendarView(prevMonthDayViews, this.currMonthDayViews, nextMonthDayViews);\n this.initializeSelectedDay();\n this.initializeFocusableDay();\n }\n\n private isDateExcluded(date: DayModel) {\n const { minDate, maxDate }: DateRange = this.excludedDates;\n const from = minDate.toComparisonString();\n const to = maxDate.toComparisonString();\n const today = date.toComparisonString();\n\n return !(today >= from && today <= to);\n }\n\n /**\n * Generates a DayViewModel array based on the DayModel passed\n */\n private generateDayViewModels(days: DayModel[], isExcluded: boolean, isCurrentCalendar: boolean): DayViewModel[] {\n const dayViews: DayViewModel[] = days.map(day => {\n return new DayViewModel(day, false, isExcluded, this.isDateExcluded(day), false, false);\n });\n if (isCurrentCalendar && this.calendar.isDayInCalendar(this.today)) {\n dayViews[this.today.date - 1].isTodaysDate = true;\n }\n return dayViews;\n }\n\n /**\n * Gets the first day of the current month to figure out how many dates of previous month\n * are needed to complete the Calendar View based on the first day of the week.\n * eg: Assuming locale en-US, the first day of the week is Sunday,\n * if first day of the current month lands on Wednesday, then\n * (this.getDay function would return 3 since\n * first day of the week is 0), we need the 3 days from the previous month.\n */\n private numDaysFromPrevMonthInCalView(currentYear: number, currentMonth: number): number {\n const firstDayOfCurrMonth: number = getDay(currentYear, currentMonth, 1);\n\n if (firstDayOfCurrMonth >= this.firstDayOfWeek) {\n return firstDayOfCurrMonth - this.firstDayOfWeek;\n } else {\n return NO_OF_DAYS_IN_A_WEEK + firstDayOfCurrMonth - this.firstDayOfWeek;\n }\n }\n\n /**\n * Checks if the Day passed is in the CalendarView.\n */\n private isDayInCalendarView(day: DayModel): boolean {\n if (!this.calendar.isDayInCalendar(day)) {\n return false;\n }\n return true;\n }\n\n /**\n * Using the DayViewModels from the previous, current and next month, this function\n * generates the CalendarView.\n */\n private generateCalendarView(prev: DayViewModel[], curr: DayViewModel[], next: DayViewModel[]): DayViewModel[][] {\n const combinationArr: DayViewModel[] = [...prev, ...curr, ...next];\n\n const calendarView: DayViewModel[][] = [];\n for (let i = 0; i < NO_OF_ROWS_IN_CALENDAR_VIEW; i++) {\n calendarView[i] = combinationArr.slice(i * NO_OF_DAYS_IN_A_WEEK, (i + 1) * NO_OF_DAYS_IN_A_WEEK);\n }\n return calendarView;\n }\n\n /**\n * Initialize the selected day if the day is in the calendar.\n */\n private initializeSelectedDay(): void {\n if (this.selectedDay && this.isDayInCalendarView(this.selectedDay)) {\n this.currMonthDayViews[this.selectedDay.date - 1].isSelected = true;\n }\n }\n\n /**\n * Initializes the focusable day if the day is in the calendar. If focusable day is not set, then\n * we check for the selected day. If selected day is not set then check if today is in the current\n * calendar. If not then just set the 15th of the current calendar month.\n */\n private initializeFocusableDay(): void {\n if (this.focusableDay && this.isDayInCalendarView(this.focusableDay)) {\n this.setFocusableFlag(this.focusableDay, true);\n } else if (this.selectedDay && this.isDayInCalendarView(this.selectedDay)) {\n this.setFocusableFlag(this.selectedDay, true);\n this.focusableDay = this.selectedDay.clone();\n } else if (this.isDayInCalendarView(this.today)) {\n this.setFocusableFlag(this.today, true);\n this.focusableDay = this.today.clone();\n } else {\n this.focusableDay = new DayModel(this.calendar.year, this.calendar.month, 15);\n this.setFocusableFlag(this.focusableDay, true);\n }\n }\n\n private setFocusableFlag(day: DayModel, flag: boolean): void {\n if (day) {\n this.currMonthDayViews[day.date - 1].isFocusable = flag;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n FormatWidth,\n FormStyle,\n getLocaleDateFormat,\n getLocaleDayNames,\n getLocaleFirstDayOfWeek,\n getLocaleMonthNames,\n TranslationWidth,\n} from '@angular/common';\nimport { Inject, Injectable, LOCALE_ID } from '@angular/core';\n\nimport { ClrDayOfWeek } from '../interfaces/day-of-week.interface';\n\n/**\n * This service extracts the Angular CLDR data needed by the datepicker.\n */\n@Injectable()\nexport class LocaleHelperService {\n private _firstDayOfWeek = 0;\n private _localeDays: ReadonlyArray<ClrDayOfWeek>;\n private _localeMonthsAbbreviated: ReadonlyArray<string>;\n private _localeMonthsWide: ReadonlyArray<string>;\n private _localeDateFormat: string;\n\n constructor(@Inject(LOCALE_ID) public locale: string) {\n this.initializeLocaleData();\n }\n\n get firstDayOfWeek(): number {\n return this._firstDayOfWeek;\n }\n\n get localeDays(): ReadonlyArray<ClrDayOfWeek> {\n return this._localeDays;\n }\n\n // leave for backward compatibility\n get localeDaysNarrow(): ReadonlyArray<string> {\n return this._localeDays.map(day => day.narrow);\n }\n\n get localeMonthsAbbreviated(): ReadonlyArray<string> {\n return this._localeMonthsAbbreviated;\n }\n\n get localeMonthsWide(): ReadonlyArray<string> {\n return this._localeMonthsWide;\n }\n\n get localeDateFormat(): string {\n return this._localeDateFormat;\n }\n\n /**\n * Initializes the locale data.\n */\n private initializeLocaleData(): void {\n // Order in which these functions is called is very important.\n this.initializeFirstDayOfWeek();\n this.initializeLocaleDateFormat();\n this.initializeLocaleMonthsAbbreviated();\n this.initializeLocaleMonthsWide();\n this.initializeLocaleDays();\n }\n\n /**\n * Initialize day names based on the locale.\n * eg: [{day: Sunday, narrow: S}, {day: Monday, narrow: M}...] for en-US.\n */\n private initializeLocaleDays(): void {\n // Get locale day names starting with Sunday\n const tempArr = [];\n const tempWideArr: string[] = getLocaleDayNames(this.locale, FormStyle.Standalone, TranslationWidth.Wide).slice();\n const tempNarrowArr: string[] = getLocaleDayNames(\n this.locale,\n FormStyle.Standalone,\n TranslationWidth.Narrow\n ).slice();\n // Get first day of the week based on the locale\n const firstDayOfWeek: number = this.firstDayOfWeek;\n for (let i = 0; i < 7; i++) {\n tempArr.push({ day: tempWideArr[i], narrow: tempNarrowArr[i] });\n }\n // Rearrange the tempArr to start with the first day of the week based on the locale.\n if (firstDayOfWeek > 0) {\n const prevDays: { day: string; narrow: string }[] = tempArr.splice(0, firstDayOfWeek);\n tempArr.push(...prevDays);\n }\n this._localeDays = tempArr;\n }\n\n /**\n * Initializes the array of month names in the TranslationWidth.Abbreviated format.\n * e.g. `[Jan, Feb, ...]` for en-US\n */\n private initializeLocaleMonthsAbbreviated(): void {\n this._localeMonthsAbbreviated = getLocaleMonthNames(\n this.locale,\n FormStyle.Standalone,\n TranslationWidth.Abbreviated\n ).slice();\n }\n\n /**\n * Initializes the array of month names in the TranslationWidth.Wide format.\n * e.g. `[January, February, ...]` for en-US\n */\n private initializeLocaleMonthsWide(): void {\n this._localeMonthsWide = getLocaleMonthNames(this.locale, FormStyle.Standalone, TranslationWidth.Wide).slice();\n }\n\n /**\n * Initializes the first day of the week based on the locale.\n */\n private initializeFirstDayOfWeek(): void {\n this._firstDayOfWeek = getLocaleFirstDayOfWeek(this.locale);\n }\n\n private initializeLocaleDateFormat(): void {\n this._localeDateFormat = getLocaleDateFormat(this.locale, FormatWidth.Short);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { getNumberOfDaysInTheMonth } from '../utils/date-utils';\nimport { DayModel } from './day.model';\n\nexport class CalendarModel {\n days: DayModel[];\n\n constructor(readonly year: number, readonly month: number) {\n this.initializeDaysInCalendar();\n }\n\n /**\n * Checks if the calendar passed is equal to the current calendar.\n */\n isEqual(calendar: CalendarModel) {\n if (calendar) {\n return this.year === calendar.year && this.month === calendar.month;\n }\n return false;\n }\n\n /**\n * Checks if a DayModel is in the Calendar\n */\n isDayInCalendar(day: DayModel): boolean {\n if (day) {\n return this.year === day.year && this.month === day.month;\n }\n return false;\n }\n\n /**\n * Returns CalendarModel of the previous month.\n */\n previousMonth(): CalendarModel {\n if (this.month === 0) {\n return new CalendarModel(this.year - 1, 11);\n } else {\n return new CalendarModel(this.year, this.month - 1);\n }\n }\n\n /**\n * Returns CalendarModel of the next month.\n */\n nextMonth(): CalendarModel {\n if (this.month === 11) {\n return new CalendarModel(this.year + 1, 0);\n } else {\n return new CalendarModel(this.year, this.month + 1);\n }\n }\n\n /**\n * Populates the days array with the DayModels in the current Calendar.\n */\n private initializeDaysInCalendar(): void {\n const noOfDaysInCalendar: number = getNumberOfDaysInTheMonth(this.year, this.month);\n this.days = Array(noOfDaysInCalendar)\n .fill(null)\n .map((_date, index) => {\n return new DayModel(this.year, this.month, index + 1);\n });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { CalendarModel } from '../model/calendar.model';\nimport { DayModel } from '../model/day.model';\n\n/**\n * This service is responsible for:\n * 1. Initializing the displayed calendar.\n * 2. Moving the calendar to the next, previous or current months\n * 3. Managing the focused and selected day models.\n */\n@Injectable()\nexport class DateNavigationService {\n selectedDay: DayModel;\n focusedDay: DayModel;\n\n private _displayedCalendar: CalendarModel;\n private _todaysFullDate: Date = new Date();\n private _today: DayModel;\n private _selectedDayChange = new Subject<DayModel>();\n private _displayedCalendarChange = new Subject<void>();\n private _focusOnCalendarChange = new Subject<void>();\n private _focusedDayChange = new Subject<DayModel>();\n\n get today(): DayModel {\n return this._today;\n }\n\n get displayedCalendar(): CalendarModel {\n return this._displayedCalendar;\n }\n\n get selectedDayChange(): Observable<DayModel> {\n return this._selectedDayChange.asObservable();\n }\n\n /**\n * This observable lets the subscriber know that the displayed calendar has changed.\n */\n get displayedCalendarChange(): Observable<void> {\n return this._displayedCalendarChange.asObservable();\n }\n\n /**\n * This observable lets the subscriber know that the focus should be applied on the calendar.\n */\n get focusOnCalendarChange(): Observable<void> {\n return this._focusOnCalendarChange.asObservable();\n }\n\n /**\n * This observable lets the subscriber know that the focused day in the displayed calendar has changed.\n */\n get focusedDayChange(): Observable<DayModel> {\n return this._focusedDayChange.asObservable();\n }\n\n /**\n * Notifies that the selected day has changed so that the date can be emitted to the user.\n * Note: Only to be called from day.ts\n */\n notifySelectedDayChanged(dayModel: DayModel) {\n this.selectedDay = dayModel;\n this._selectedDayChange.next(dayModel);\n }\n\n /**\n * Initializes the calendar based on the selected day.\n */\n initializeCalendar(): void {\n this.focusedDay = null; // Can be removed later on the store focus\n this.initializeTodaysDate();\n if (this.selectedDay) {\n this._displayedCalendar = new CalendarModel(this.selectedDay.year, this.selectedDay.month);\n } else {\n this._displayedCalendar = new CalendarModel(this.today.year, this.today.month);\n }\n }\n\n changeMonth(month: number): void {\n this.setDisplayedCalendar(new CalendarModel(this._displayedCalendar.year, month));\n }\n\n changeYear(year: number): void {\n this.setDisplayedCalendar(new CalendarModel(year, this._displayedCalendar.month));\n }\n\n /**\n * Moves the displayed calendar to the next month.\n */\n moveToNextMonth(): void {\n this.setDisplayedCalendar(this._displayedCalendar.nextMonth());\n }\n\n /**\n * Moves the displayed calendar to the previous month.\n */\n moveToPreviousMonth(): void {\n this.setDisplayedCalendar(this._displayedCalendar.previousMonth());\n }\n\n /**\n * Moves the displayed calendar to the current month and year.\n */\n moveToCurrentMonth(): void {\n if (!this.displayedCalendar.isDayInCalendar(this.today)) {\n this.setDisplayedCalendar(new CalendarModel(this.today.year, this.today.month));\n }\n this._focusOnCalendarChange.next();\n }\n\n incrementFocusDay(value: number): void {\n this.focusedDay = this.focusedDay.incrementBy(value);\n if (this._displayedCalendar.isDayInCalendar(this.focusedDay)) {\n this._focusedDayChange.next(this.focusedDay);\n } else {\n this.setDisplayedCalendar(new CalendarModel(this.focusedDay.year, this.focusedDay.month));\n }\n this._focusOnCalendarChange.next();\n }\n\n // not a setter because i want this to remain private\n private setDisplayedCalendar(value: CalendarModel) {\n if (!this._displayedCalendar.isEqual(value)) {\n this._displayedCalendar = value;\n this._displayedCalendarChange.next();\n }\n }\n\n private initializeTodaysDate(): void {\n this._todaysFullDate = new Date();\n this._today = new DayModel(\n this._todaysFullDate.getFullYear(),\n this._todaysFullDate.getMonth(),\n this._todaysFullDate.getDate()\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { ElementRef, Inject, Injectable, NgZone, PLATFORM_ID } from '@angular/core';\nimport { filter, first } from 'rxjs/operators';\n\n/**\n * This service focuses the day that is focusable in the calendar.\n */\n@Injectable()\nexport class DatepickerFocusService {\n constructor(private _ngZone: NgZone, @Inject(PLATFORM_ID) private platformId: any) {}\n\n focusCell(elRef: ElementRef): void {\n this._ngZone.runOutsideAngular(() => {\n this.ngZoneIsStableInBrowser().subscribe(() => {\n const focusEl = elRef.nativeElement.querySelector('[tabindex=\"0\"]');\n if (focusEl) {\n focusEl.focus();\n }\n });\n });\n }\n\n focusInput(element: HTMLInputElement): void {\n this._ngZone.runOutsideAngular(() => this.ngZoneIsStableInBrowser().subscribe(() => element.focus()));\n }\n\n elementIsFocused(element: HTMLInputElement) {\n return isPlatformBrowser(this.platformId) && document.activeElement === element;\n }\n\n private ngZoneIsStableInBrowser() {\n // Credit: Material: https://github.com/angular/material2/blob/master/src/lib/datepicker/calendar.ts\n return this._ngZone.onStable.asObservable().pipe(\n first(),\n filter(() => isPlatformBrowser(this.platformId))\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { DateRange } from '../interfaces/date-range.interface';\nimport { DayModel } from '../model/day.model';\nimport {\n BIG_ENDIAN,\n DEFAULT_LOCALE_FORMAT,\n DELIMITER_REGEX,\n InputDateDisplayFormat,\n LITTLE_ENDIAN,\n LITTLE_ENDIAN_REGEX,\n MIDDLE_ENDIAN,\n MIDDLE_ENDIAN_REGEX,\n RTL_REGEX,\n USER_INPUT_REGEX,\n} from '../utils/constants';\nimport { getNumberOfDaysInTheMonth, parseToFourDigitYear } from '../utils/date-utils';\nimport { LocaleHelperService } from './locale-helper.service';\n\n@Injectable()\nexport class DateIOService {\n disabledDates: DateRange = {\n // This is the default range. It approximates the beginning of time to the end of time.\n // Unless a minDate or maxDate is set with the native HTML5 api the range is all dates\n // TODO: turn this into an Array of min/max ranges that allow configuration of multiple ranges.\n minDate: new DayModel(0, 0, 1),\n maxDate: new DayModel(9999, 11, 31),\n };\n\n cldrLocaleDateFormat: string = DEFAULT_LOCALE_FORMAT;\n\n private localeDisplayFormat: InputDateDisplayFormat = LITTLE_ENDIAN;\n private delimiters: [string, string] = ['/', '/'];\n\n constructor(private _localeHelperService: LocaleHelperService) {\n this.cldrLocaleDateFormat = this._localeHelperService.localeDateFormat;\n this.initializeLocaleDisplayFormat();\n }\n\n get placeholderText(): string {\n const format: [string, string, string] = this.localeDisplayFormat.format;\n return format[0] + this.delimiters[0] + format[1] + this.delimiters[1] + format[2];\n }\n\n setMinDate(date: string): void {\n // NOTE: I'm expecting consumers to pass one of four things here:\n // A proper date string(2019-11-11), null, undefined or empty string ('')\n if (!date) {\n // attribute binding was removed, reset back to the beginning of time\n this.disabledDates.minDate = new DayModel(0, 0, 1);\n } else {\n const [year, month, day] = date.split('-').map(n => parseInt(n, 10));\n this.disabledDates.minDate = new DayModel(year, month - 1, day);\n }\n }\n\n setMaxDate(date: string): void {\n // NOTE: I'm expecting consumers to pass one of four things here:\n // A proper date string(2019-11-11), null, undefined or empty string ('')\n if (!date) {\n // attribute binding was removed, reset forward to the end of time\n this.disabledDates.maxDate = new DayModel(9999, 11, 31);\n } else {\n const [year, month, day] = date.split('-').map(n => parseInt(n, 10));\n this.disabledDates.maxDate = new DayModel(year, month - 1, day);\n }\n }\n\n toLocaleDisplayFormatString(date: Date): string {\n if (date) {\n if (isNaN(date.getTime())) {\n return '';\n }\n const dateNo: number = date.getDate();\n const monthNo: number = date.getMonth() + 1;\n const dateStr: string = dateNo > 9 ? dateNo.toString() : '0' + dateNo;\n const monthStr: string = monthNo > 9 ? monthNo.toString() : '0' + monthNo;\n if (this.localeDisplayFormat === LITTLE_ENDIAN) {\n return dateStr + this.delimiters[0] + monthStr + this.delimiters[1] + date.getFullYear();\n } else if (this.localeDisplayFormat === MIDDLE_ENDIAN) {\n return monthStr + this.delimiters[0] + dateStr + this.delimiters[1] + date.getFullYear();\n } else {\n return date.getFullYear() + this.delimiters[0] + monthStr + this.delimiters[1] + dateStr;\n }\n }\n return '';\n }\n\n getDateValueFromDateString(date: string): Date {\n if (!date || typeof date !== 'string') {\n return null;\n }\n const dateParts: string[] = date.match(USER_INPUT_REGEX);\n if (!dateParts || dateParts.length !== 3) {\n return null;\n }\n const [firstPart, secondPart, thirdPart] = dateParts;\n if (this.localeDisplayFormat === LITTLE_ENDIAN) {\n // secondPart is month && firstPart is date\n return this.validateAndGetDate(thirdPart, secondPart, firstPart);\n } else if (this.localeDisplayFormat === MIDDLE_ENDIAN) {\n // firstPart is month && secondPart is date\n return this.validateAndGetDate(thirdPart, firstPart, secondPart);\n } else {\n // secondPart is month && thirdPart is date\n return this.validateAndGetDate(firstPart, secondPart, thirdPart);\n }\n }\n\n private initializeLocaleDisplayFormat(): void {\n const format: string = this.cldrLocaleDateFormat.toLocaleLowerCase();\n if (LITTLE_ENDIAN_REGEX.test(format)) {\n this.localeDisplayFormat = LITTLE_ENDIAN;\n } else if (MIDDLE_ENDIAN_REGEX.test(format)) {\n this.localeDisplayFormat = MIDDLE_ENDIAN;\n } else {\n // everything else is set to BIG-ENDIAN FORMAT\n this.localeDisplayFormat = BIG_ENDIAN;\n }\n this.extractDelimiters();\n }\n\n private extractDelimiters(): void {\n if (this.cldrLocaleDateFormat) {\n // Sanitize Date Format. Remove RTL characters.\n // FIXME: When we support RTL, remove this and handle it correctly.\n const localeFormat: string = this.cldrLocaleDateFormat.replace(RTL_REGEX, '');\n const delimiters: string[] = localeFormat.split(DELIMITER_REGEX);\n\n // NOTE: The split from the CLDR date format should always result\n // in an arary with 4 elements. The 1st and the 2nd values are the delimiters\n // we will use in order.\n // Eg: \"dd/MM/y\".split(/d+|m+|y+/i) results in [\"\", \"/\", \"/\", \"\"]\n if (delimiters && delimiters.length === 4) {\n this.delimiters = [delimiters[1], delimiters[2]];\n } else {\n console.error('Unexpected date format received. Delimiters extracted: ', delimiters);\n }\n }\n }\n\n /**\n * Checks if the month entered by the user is valid or not.\n * Note: Month is 0 based.\n */\n private isValidMonth(month: number): boolean {\n return month > -1 && month < 12;\n }\n\n /**\n * Checks if the date is valid depending on the year and month provided.\n */\n private isValidDate(year: number, month: number, date: number): boolean {\n return date > 0 && date <= getNumberOfDaysInTheMonth(year, month);\n }\n\n /**\n * Validates the parameters provided and returns the date.\n * If the parameters are not\n * valid then return null.\n * NOTE: (Month here is 1 based since the user has provided that as an input)\n */\n private validateAndGetDate(year: string, month: string, date: string): Date {\n // I don't know whats wrong with the TS compiler. It throws an error if I write\n // the below if statement. The error is:\n // Operator '!==' cannot be applied to types '2' and '4'\n // More info here: https://github.com/Microsoft/TypeScript/issues/12794#issuecomment-270342936\n /*\n if (year.length !== 2 || year.length !== 4) {\n return null;\n }\n */\n\n // Instead I have to write the logic like this x-(\n const y: number = +year;\n const m: number = +month - 1; // month is 0 based\n const d: number = +date;\n if (!this.isValidMonth(m) || !this.isValidDate(y, m, d)) {\n return null;\n }\n const result: number = parseToFourDigitYear(y);\n return result !== -1 ? new Date(result, m, d) : null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable()\nexport class DateFormControlService {\n disabled: boolean;\n\n private _touchedChange = new Subject<void>();\n private _dirtyChange = new Subject<void>();\n\n get touchedChange(): Observable<void> {\n return this._touchedChange.asObservable();\n }\n\n get dirtyChange(): Observable<void> {\n return this._dirtyChange.asObservable();\n }\n\n markAsTouched(): void {\n this._touchedChange.next();\n }\n\n markAsDirty(): void {\n this._dirtyChange.next();\n }\n\n // friendly wrapper\n setDisabled(state: boolean) {\n this.disabled = state;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Input } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { DayViewModel } from './model/day-view.model';\nimport { DayModel } from './model/day.model';\nimport { DateFormControlService } from './providers/date-form-control.service';\nimport { DateNavigationService } from './providers/date-navigation.service';\n\n@Component({\n selector: 'clr-day',\n template: `\n <button\n class=\"day-btn\"\n type=\"button\"\n [class.is-today]=\"dayView.isTodaysDate\"\n [class.is-excluded]=\"dayView.isExcluded\"\n [class.is-disabled]=\"dayView.isDisabled\"\n [class.is-selected]=\"dayView.isSelected\"\n [attr.tabindex]=\"dayView.tabIndex\"\n (click)=\"selectDay()\"\n (focus)=\"onDayViewFocus()\"\n [attr.aria-current]=\"dayView.isTodaysDate ? 'date' : 'false'\"\n [attr.aria-label]=\"dayString\"\n [attr.aria-selected]=\"dayView.isSelected\"\n >\n {{ dayView.dayModel.date }}\n </button>\n `,\n host: { '[class.day]': 'true' },\n})\nexport class ClrDay {\n private _dayView: DayViewModel;\n\n constructor(\n private _dateNavigationService: DateNavigationService,\n private _toggleService: ClrPopoverToggleService,\n private dateFormControlService: DateFormControlService,\n private commonStrings: ClrCommonStringsService\n ) {}\n\n /**\n * DayViewModel input which is used to build the Day View.\n */\n\n @Input('clrDayView')\n get dayView(): DayViewModel {\n return this._dayView;\n }\n set dayView(day: DayViewModel) {\n this._dayView = day;\n }\n\n get dayString(): string {\n return this.dayView.isSelected\n ? this.commonStrings.parse(this.commonStrings.keys.datepickerSelectedLabel, {\n FULL_DATE: this._dayView.dayModel.toDateString(),\n })\n : this._dayView.dayModel.toDateString();\n }\n\n /**\n * Updates the focusedDay in the DateNavigationService when the ClrDay is focused.\n */\n onDayViewFocus() {\n this._dateNavigationService.focusedDay = this.dayView.dayModel;\n }\n\n /**\n * Updates the selectedDay when the ClrDay is selected and closes the datepicker popover.\n */\n selectDay(): void {\n const day: DayModel = this.dayView.dayModel;\n this._dateNavigationService.notifySelectedDayChanged(day);\n this.dateFormControlService.markAsDirty();\n this._toggleService.open = false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ElementRef, HostListener, OnDestroy } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { normalizeKey } from '../../utils/focus/key-focus/util';\nimport { ClrDayOfWeek } from './interfaces/day-of-week.interface';\nimport { CalendarViewModel } from './model/calendar-view.model';\nimport { CalendarModel } from './model/calendar.model';\nimport { DayModel } from './model/day.model';\nimport { DateIOService } from './providers/date-io.service';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { DatepickerFocusService } from './providers/datepicker-focus.service';\nimport { LocaleHelperService } from './providers/locale-helper.service';\nimport { NO_OF_DAYS_IN_A_WEEK } from './utils/constants';\n\n@Component({\n selector: 'clr-calendar',\n templateUrl: './calendar.html',\n})\nexport class ClrCalendar implements OnDestroy {\n /**\n * Calendar View Model to generate the Calendar.\n */\n calendarViewModel: CalendarViewModel;\n\n private _subs: Subscription[] = [];\n\n constructor(\n private _localeHelperService: LocaleHelperService,\n private _dateNavigationService: DateNavigationService,\n private _datepickerFocusService: DatepickerFocusService,\n private _dateIOService: DateIOService,\n private _elRef: ElementRef\n ) {\n this.generateCalendarView();\n this.initializeSubscriptions();\n }\n\n /**\n * Gets the locale days according to the TranslationWidth.Narrow format.\n */\n get localeDays(): ReadonlyArray<ClrDayOfWeek> {\n return this._localeHelperService.localeDays;\n }\n\n get calendar(): CalendarModel {\n return this._dateNavigationService.displayedCalendar;\n }\n\n get selectedDay(): DayModel {\n return this._dateNavigationService.selectedDay;\n }\n\n get focusedDay(): DayModel {\n return this._dateNavigationService.focusedDay;\n }\n\n get today(): DayModel {\n return this._dateNavigationService.today;\n }\n\n /**\n * Focuses on the focusable day when the Calendar View is initialized.\n */\n ngAfterViewInit() {\n this._datepickerFocusService.focusCell(this._elRef);\n }\n\n /**\n * Unsubscribe from subscriptions.\n */\n ngOnDestroy(): void {\n this._subs.forEach((sub: Subscription) => sub.unsubscribe());\n }\n\n /**\n * Delegates Keyboard arrow navigation to the DateNavigationService.\n */\n @HostListener('keydown', ['$event'])\n onKeyDown(event: KeyboardEvent) {\n if (event && this.focusedDay) {\n switch (normalizeKey(event.key)) {\n case Keys.ArrowUp:\n event.preventDefault();\n this._dateNavigationService.incrementFocusDay(-1 * NO_OF_DAYS_IN_A_WEEK);\n break;\n case Keys.ArrowDown:\n event.preventDefault();\n this._dateNavigationService.incrementFocusDay(NO_OF_DAYS_IN_A_WEEK);\n break;\n case Keys.ArrowLeft:\n event.preventDefault();\n this._dateNavigationService.incrementFocusDay(-1);\n break;\n case Keys.ArrowRight:\n event.preventDefault();\n this._dateNavigationService.incrementFocusDay(1);\n break;\n default:\n break; // No default case. ESLint x-(\n }\n }\n }\n\n /**\n * Initialize subscriptions to:\n * 1. update the calendar view model.\n * 2. update the focusable day in the calendar view model.\n * 3. focus on the focusable day in the calendar.\n */\n private initializeSubscriptions(): void {\n this._subs.push(\n this._dateNavigationService.displayedCalendarChange.subscribe(() => {\n this.generateCalendarView();\n })\n );\n\n this._subs.push(\n this._dateNavigationService.focusedDayChange.subscribe((focusedDay: DayModel) => {\n this.calendarViewModel.updateFocusableDay(focusedDay);\n })\n );\n\n this._subs.push(\n this._dateNavigationService.focusOnCalendarChange.subscribe(() => {\n this._datepickerFocusService.focusCell(this._elRef);\n })\n );\n }\n\n /**\n * Generates the Calendar View based on the calendar retrieved from the DateNavigationService.\n */\n private generateCalendarView(): void {\n this.calendarViewModel = new CalendarViewModel(\n this.calendar,\n this.selectedDay,\n this.focusedDay,\n this.today,\n this._localeHelperService.firstDayOfWeek,\n this._dateIOService.disabledDates\n );\n }\n}\n","<table class=\"calendar-table\">\n <tr class=\"calendar-row weekdays\">\n <th *ngFor=\"let day of localeDays\" class=\"calendar-cell weekday\" role=\"heading\" [attr.aria-label]=\"day.day\">\n {{day.narrow}}\n </th>\n </tr>\n <tr class=\"calendar-row\" *ngFor=\"let row of calendarViewModel.calendarView\">\n <td *ngFor=\"let dayView of row\" class=\"calendar-cell\">\n <clr-day [clrDayView]=\"dayView\"></clr-day>\n </td>\n </tr>\n</table>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/**\n * TODO:\n * Using core functions like:\n * - pluckPixelValue\n * - getCssPropertyValue\n *\n * to get the value of the design token.\n *\n * Note: Memoization/Cache usage possible.\n */\n\n// iPad mini screen width\n// http://stephen.io/mediaqueries/#iPadMini\nexport const DATEPICKER_ENABLE_BREAKPOINT = 768;\nexport const SMALL_BREAKPOINT = 576;\nexport const MEDIUM_BREAKPOINT = 768;\nexport const LARGE_BREAKPOINT = 992;\nexport const EXTRA_LARGE_BREAKPOINT = 1200;\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\n\nimport { DATEPICKER_ENABLE_BREAKPOINT } from '../../../utils/breakpoints/breakpoints';\nimport { MOBILE_USERAGENT_REGEX } from '../utils/constants';\n\n@Injectable()\nexport class DatepickerEnabledService {\n private _isUserAgentMobile = false;\n private _innerWidth: number;\n\n constructor(@Inject(DOCUMENT) private _document: any) {\n if (this._document) {\n this._isUserAgentMobile = MOBILE_USERAGENT_REGEX.test(_document.defaultView.navigator.userAgent);\n this._innerWidth = _document.defaultView.innerWidth;\n }\n }\n\n /**\n * Returns if the calendar should be active or not.\n * If the user agent is mobile and the screen width is less than DATEPICKER_ACTIVE_BREAKPOINT\n * then the calendar is inactive.\n */\n get isEnabled(): boolean {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent\n // What they recommend is:\n //\"In summary, we recommend looking for the string 'Mobi'\n // anywhere in the User Agent to detect a mobile device.\"\n if (this._document) {\n if (this._innerWidth < DATEPICKER_ENABLE_BREAKPOINT && this._isUserAgentMobile) {\n return false;\n }\n }\n return true;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { ClrPopoverPositions } from '../../../utils/popover/enums/positions.enum';\nimport { ClrPopoverPosition } from '../../../utils/popover/interfaces/popover-position.interface';\n\nconst enum DatepickerViewEnum {\n MONTHVIEW = 'MONTHVIEW',\n YEARVIEW = 'YEARVIEW',\n DAYVIEW = 'DAYVIEW',\n}\n\n/**\n * This service manages which view is visible in the datepicker popover.\n */\n@Injectable()\nexport class ViewManagerService {\n position: ClrPopoverPosition = ClrPopoverPositions['bottom-left'];\n\n private _currentView: DatepickerViewEnum = DatepickerViewEnum.DAYVIEW;\n\n get isDayView(): boolean {\n return this._currentView === DatepickerViewEnum.DAYVIEW;\n }\n\n get isYearView(): boolean {\n return this._currentView === DatepickerViewEnum.YEARVIEW;\n }\n\n get isMonthView(): boolean {\n return this._currentView === DatepickerViewEnum.MONTHVIEW;\n }\n\n changeToMonthView(): void {\n this._currentView = DatepickerViewEnum.MONTHVIEW;\n }\n\n changeToYearView(): void {\n this._currentView = DatepickerViewEnum.YEARVIEW;\n }\n\n changeToDayView(): void {\n this._currentView = DatepickerViewEnum.DAYVIEW;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, ElementRef, HostListener } from '@angular/core';\n\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { normalizeKey } from '../../utils/focus/key-focus/util';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { DatepickerFocusService } from './providers/datepicker-focus.service';\nimport { LocaleHelperService } from './providers/locale-helper.service';\nimport { ViewManagerService } from './providers/view-manager.service';\n\n@Component({\n selector: 'clr-monthpicker',\n template: `\n <button\n type=\"button\"\n class=\"calendar-btn month\"\n *ngFor=\"let month of monthNames; let monthIndex = index\"\n (click)=\"changeMonth(monthIndex)\"\n [class.is-selected]=\"monthIndex === calendarMonthIndex\"\n [attr.tabindex]=\"getTabIndex(monthIndex)\"\n >\n {{ month }}\n </button>\n `,\n host: {\n '[class.monthpicker]': 'true',\n },\n})\nexport class ClrMonthpicker implements AfterViewInit {\n /**\n * Keeps track of the current focused month.\n */\n private _focusedMonthIndex: number;\n\n constructor(\n private _viewManagerService: ViewManagerService,\n private _localeHelperService: LocaleHelperService,\n private _dateNavigationService: DateNavigationService,\n private _datepickerFocusService: DatepickerFocusService,\n private _elRef: ElementRef\n ) {\n this._focusedMonthIndex = this.calendarMonthIndex;\n }\n\n /**\n * Gets the months array which is used to rendered the monthpicker view.\n * Months are in the TranslationWidth.Wide format.\n */\n get monthNames(): ReadonlyArray<string> {\n return this._localeHelperService.localeMonthsWide;\n }\n\n /**\n * Gets the month value of the Calendar.\n */\n get calendarMonthIndex(): number {\n return this._dateNavigationService.displayedCalendar.month;\n }\n\n /**\n * Focuses on the current calendar month when the View is initialized.\n */\n ngAfterViewInit() {\n this._datepickerFocusService.focusCell(this._elRef);\n }\n\n /**\n * Handles the Keyboard arrow navigation for the monthpicker.\n */\n @HostListener('keydown', ['$event'])\n onKeyDown(event: KeyboardEvent) {\n // NOTE: Didn't move this to the date navigation service because\n // the logic is fairly simple and it didn't make sense for me\n // to create extra observables just to move this logic to the service.\n if (event) {\n const key = normalizeKey(event.key);\n if (key === Keys.ArrowUp && this._focusedMonthIndex > 0) {\n event.preventDefault();\n this._focusedMonthIndex--;\n this._datepickerFocusService.focusCell(this._elRef);\n } else if (key === Keys.ArrowDown && this._focusedMonthIndex < 11) {\n event.preventDefault();\n this._focusedMonthIndex++;\n this._datepickerFocusService.focusCell(this._elRef);\n } else if (key === Keys.ArrowRight && this._focusedMonthIndex < 6) {\n event.preventDefault();\n this._focusedMonthIndex = this._focusedMonthIndex + 6;\n this._datepickerFocusService.focusCell(this._elRef);\n } else if (key === Keys.ArrowLeft && this._focusedMonthIndex > 5) {\n event.preventDefault();\n this._focusedMonthIndex = this._focusedMonthIndex - 6;\n this._datepickerFocusService.focusCell(this._elRef);\n }\n }\n }\n\n /**\n * Calls the DateNavigationService to update the month value of the calendar.\n * Also changes the view to the daypicker.\n */\n changeMonth(monthIndex: number) {\n this._dateNavigationService.changeMonth(monthIndex);\n this._viewManagerService.changeToDayView();\n }\n\n /**\n * Compares the month passed to the focused month and returns the tab index.\n */\n getTabIndex(monthIndex: number): number {\n return monthIndex === this._focusedMonthIndex ? 0 : -1;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nconst YEARS_TO_DISPLAY = 10;\n\nexport class YearRangeModel {\n yearRange: number[] = [];\n\n constructor(private readonly year: number) {\n this.generateYearRange();\n }\n\n /**\n * Gets the number in the middle of the range.\n */\n get middleYear(): number {\n return this.yearRange[Math.floor(this.yearRange.length / 2)];\n }\n\n /**\n * Generates the YearRangeModel for the next decade.\n */\n nextDecade(): YearRangeModel {\n return new YearRangeModel(this.year + 10);\n }\n\n /**\n * Generates the YearRangeModel for the previous decade.\n */\n previousDecade(): YearRangeModel {\n return new YearRangeModel(this.year - 10);\n }\n\n /**\n * Generates the YearRangeModel for the current decade.\n */\n currentDecade(): YearRangeModel {\n return new YearRangeModel(new Date().getFullYear());\n }\n\n /**\n * Checks if the value is in the YearRangeModel.\n */\n inRange(value: number): boolean {\n return this.yearRange.indexOf(value) > -1;\n }\n\n /**\n * Generates the year range based on the year parameter.\n * eg: If 2018 is passed the output will be [2010, 2011, ..., 2019]\n */\n private generateYearRange() {\n const remainder: number = this.year % YEARS_TO_DISPLAY;\n const floor: number = this.year - remainder;\n const ceil: number = floor + YEARS_TO_DISPLAY;\n this.yearRange = this.generateRange(floor, ceil);\n }\n\n /**\n * Function which generate a range of numbers from floor to ceil.\n */\n private generateRange(floor: number, ceil: number): number[] {\n return Array.from({ length: ceil - floor }, (_v, k) => k + floor);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, ElementRef, HostListener } from '@angular/core';\n\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { normalizeKey } from '../../utils/focus/key-focus/util';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { YearRangeModel } from './model/year-range.model';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { DatepickerFocusService } from './providers/datepicker-focus.service';\nimport { ViewManagerService } from './providers/view-manager.service';\n\n@Component({\n selector: 'clr-yearpicker',\n template: `\n <div class=\"year-switchers\">\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"previousDecade()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerPreviousDecade\"\n >\n <cds-icon shape=\"angle\" direction=\"left\" [attr.title]=\"commonStrings.keys.datepickerPreviousDecade\"></cds-icon>\n </button>\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"currentDecade()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerCurrentDecade\"\n >\n <cds-icon shape=\"event\" [attr.title]=\"commonStrings.keys.datepickerCurrentDecade\"></cds-icon>\n </button>\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"nextDecade()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerNextDecade\"\n >\n <cds-icon shape=\"angle\" direction=\"right\" [attr.title]=\"commonStrings.keys.datepickerNextDecade\"></cds-icon>\n </button>\n </div>\n <div class=\"years\">\n <button\n *ngFor=\"let year of yearRangeModel.yearRange\"\n type=\"button\"\n class=\"calendar-btn year\"\n [attr.tabindex]=\"getTabIndex(year)\"\n [class.is-selected]=\"year === calendarYear\"\n (click)=\"changeYear(year)\"\n >\n {{ year }}\n </button>\n </div>\n `,\n host: {\n '[class.yearpicker]': 'true',\n },\n})\nexport class ClrYearpicker implements AfterViewInit {\n /**\n * YearRangeModel which is used to build the YearPicker view.\n */\n yearRangeModel: YearRangeModel;\n\n /**\n * Keeps track of the current focused year.\n */\n private _focusedYear: number;\n\n constructor(\n private _dateNavigationService: DateNavigationService,\n private _viewManagerService: ViewManagerService,\n private _datepickerFocusService: DatepickerFocusService,\n private _elRef: ElementRef,\n public commonStrings: ClrCommonStringsService\n ) {\n this.yearRangeModel = new YearRangeModel(this.calendarYear);\n this._focusedYear = this.calendarYear;\n }\n\n /**\n * Gets the year which the user is currently on.\n */\n get calendarYear(): number {\n return this._dateNavigationService.displayedCalendar.year;\n }\n\n /**\n * Focuses on the current calendar year when the View is initialized.\n */\n ngAfterViewInit() {\n this._datepickerFocusService.focusCell(this._elRef);\n }\n\n /**\n * Handles the Keyboard arrow navigation for the yearpicker.\n */\n @HostListener('keydown', ['$event'])\n onKeyDown(event: KeyboardEvent) {\n // NOTE: Didn't move this to the date navigation service because\n // the logic is fairly simple and it didn't make sense for me\n // to create extra observables just to move this logic to the service.\n if (event) {\n const key = normalizeKey(event.key);\n if (key === Keys.ArrowUp) {\n event.preventDefault();\n this.incrementFocusYearBy(-1);\n } else if (key === Keys.ArrowDown) {\n event.preventDefault();\n this.incrementFocusYearBy(1);\n } else if (key === Keys.ArrowRight) {\n event.preventDefault();\n this.incrementFocusYearBy(5);\n } else if (key === Keys.ArrowLeft) {\n event.preventDefault();\n this.incrementFocusYearBy(-5);\n }\n }\n }\n\n /**\n * Calls the DateNavigationService to update the year value of the calendar.\n * Also changes the view to the daypicker.\n */\n changeYear(year: number): void {\n this._dateNavigationService.changeYear(year);\n this._viewManagerService.changeToDayView();\n }\n\n /**\n * Updates the YearRangeModel to the previous decade.\n */\n previousDecade(): void {\n this.yearRangeModel = this.yearRangeModel.previousDecade();\n // Year in the yearpicker is not focused because while navigating to a different decade,\n // you want the focus to remain on the decade switcher arrows.\n }\n\n /**\n * Updates the YearRangeModel to the current decade.\n */\n currentDecade(): void {\n if (!this.yearRangeModel.inRange(this._dateNavigationService.today.year)) {\n this.yearRangeModel = this.yearRangeModel.currentDecade();\n }\n this._datepickerFocusService.focusCell(this._elRef);\n }\n\n /**\n * Updates the YearRangeModel to the next decade.\n */\n nextDecade(): void {\n this.yearRangeModel = this.yearRangeModel.nextDecade();\n // Year in the yearpicker is not focused because while navigating to a different decade,\n // you want the focus to remain on the decade switcher arrows.\n }\n\n /**\n * Compares the year passed to the focused year and returns the tab index.\n */\n getTabIndex(year: number): number {\n if (!this.yearRangeModel.inRange(this._focusedYear)) {\n if (this.yearRangeModel.inRange(this.calendarYear)) {\n this._focusedYear = this.calendarYear;\n } else {\n this._focusedYear = this.yearRangeModel.middleYear;\n }\n }\n return this._focusedYear === year ? 0 : -1;\n }\n\n /**\n * Increments the focus year by the value passed. Updates the YearRangeModel if the\n * new value is not in the current decade.\n */\n private incrementFocusYearBy(value: number): void {\n this._focusedYear = this._focusedYear + value;\n if (!this.yearRangeModel.inRange(this._focusedYear)) {\n if (value > 0) {\n this.yearRangeModel = this.yearRangeModel.nextDecade();\n } else {\n this.yearRangeModel = this.yearRangeModel.previousDecade();\n }\n }\n this._datepickerFocusService.focusCell(this._elRef);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { LocaleHelperService } from './providers/locale-helper.service';\nimport { ViewManagerService } from './providers/view-manager.service';\n\n@Component({\n selector: 'clr-daypicker',\n templateUrl: './daypicker.html',\n host: { '[class.daypicker]': 'true' },\n})\nexport class ClrDaypicker {\n constructor(\n private _viewManagerService: ViewManagerService,\n private _dateNavigationService: DateNavigationService,\n private _localeHelperService: LocaleHelperService,\n public commonStrings: ClrCommonStringsService\n ) {}\n\n get monthAttrString(): string {\n return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectMonthText, {\n CALENDAR_MONTH: this.calendarMonth,\n });\n }\n\n get yearAttrString(): string {\n return this.commonStrings.parse(this.commonStrings.keys.datepickerSelectYearText, {\n CALENDAR_YEAR: this.calendarYear.toString(),\n });\n }\n\n /**\n * Returns the month value of the calendar in the TranslationWidth.Abbreviated format.\n */\n get calendarMonth(): string {\n return this._localeHelperService.localeMonthsAbbreviated[this._dateNavigationService.displayedCalendar.month];\n }\n\n /**\n * Returns the year value of the calendar.\n */\n get calendarYear(): number {\n return this._dateNavigationService.displayedCalendar.year;\n }\n\n /**\n * Calls the ViewManagerService to change to the monthpicker view.\n */\n changeToMonthView(): void {\n this._viewManagerService.changeToMonthView();\n }\n\n /**\n * Calls the ViewManagerService to change to the yearpicker view.\n */\n changeToYearView(): void {\n this._viewManagerService.changeToYearView();\n }\n\n /**\n * Calls the DateNavigationService to move to the next month.\n */\n nextMonth(): void {\n this._dateNavigationService.moveToNextMonth();\n }\n\n /**\n * Calls the DateNavigationService to move to the previous month.\n */\n previousMonth(): void {\n this._dateNavigationService.moveToPreviousMonth();\n }\n\n /**\n * Calls the DateNavigationService to move to the current month.\n */\n currentMonth(): void {\n this._dateNavigationService.moveToCurrentMonth();\n }\n}\n","<div class=\"clr-sr-only\">{{commonStrings.keys.modalContentStart}}</div>\n<div class=\"calendar-header\">\n <div class=\"calendar-pickers\">\n <button\n class=\"calendar-btn monthpicker-trigger\"\n type=\"button\"\n (click)=\"changeToMonthView()\"\n [attr.aria-label]=\"monthAttrString\"\n [attr.title]=\"monthAttrString\"\n >\n {{calendarMonth}}\n </button>\n <button\n class=\"calendar-btn yearpicker-trigger\"\n type=\"button\"\n (click)=\"changeToYearView()\"\n [attr.aria-label]=\"yearAttrString\"\n [attr.title]=\"yearAttrString\"\n >\n {{calendarYear}}\n </button>\n </div>\n <div class=\"calendar-switchers\">\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"previousMonth()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerPreviousMonth\"\n >\n <cds-icon shape=\"angle\" direction=\"left\" [attr.title]=\"commonStrings.keys.datepickerPreviousMonth\"></cds-icon>\n </button>\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"currentMonth()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerCurrentMonth\"\n >\n <cds-icon shape=\"event\" [attr.title]=\"commonStrings.keys.datepickerCurrentMonth\"></cds-icon>\n </button>\n <button\n class=\"calendar-btn switcher\"\n type=\"button\"\n (click)=\"nextMonth()\"\n [attr.aria-label]=\"commonStrings.keys.datepickerNextMonth\"\n >\n <cds-icon shape=\"angle\" direction=\"right\" [attr.title]=\"commonStrings.keys.datepickerNextMonth\"></cds-icon>\n </button>\n </div>\n</div>\n<clr-calendar></clr-calendar>\n<div class=\"clr-sr-only\">{{commonStrings.keys.modalContentEnd}}</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { DatepickerFocusService } from './providers/datepicker-focus.service';\nimport { ViewManagerService } from './providers/view-manager.service';\n\n@Component({\n selector: 'clr-datepicker-view-manager',\n templateUrl: './datepicker-view-manager.html',\n providers: [DatepickerFocusService],\n host: {\n '[class.datepicker]': 'true',\n '[attr.aria-modal]': 'true',\n '[attr.aria-label]': 'commonStrings.keys.datepickerDialogLabel',\n role: 'dialog',\n },\n})\nexport class ClrDatepickerViewManager {\n constructor(public commonStrings: ClrCommonStringsService, private viewManagerService: ViewManagerService) {}\n\n /**\n * Returns if the current view is the monthpicker.\n */\n get isMonthView(): boolean {\n return this.viewManagerService.isMonthView;\n }\n\n /**\n * Returns if the current view is the yearpicker.\n */\n get isYearView(): boolean {\n return this.viewManagerService.isYearView;\n }\n\n /**\n * Returns if the current view is the daypicker.\n */\n get isDayView(): boolean {\n return this.viewManagerService.isDayView;\n }\n}\n","<!--\n* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<clr-monthpicker *ngIf=\"isMonthView\"></clr-monthpicker>\n<clr-yearpicker *ngIf=\"isYearView\"></clr-yearpicker>\n<clr-daypicker *ngIf=\"isDayView\"></clr-daypicker>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, ElementRef, Input, Optional, Renderer2, ViewChild } from '@angular/core';\nimport { startWith } from 'rxjs/operators';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrPopoverPositions } from '../../utils/popover/enums/positions.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { FocusService } from '../common/providers/focus.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\nimport { DayModel } from './model/day.model';\nimport { DateFormControlService } from './providers/date-form-control.service';\nimport { DateIOService } from './providers/date-io.service';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { DatepickerEnabledService } from './providers/datepicker-enabled.service';\nimport { LocaleHelperService } from './providers/locale-helper.service';\nimport { ViewManagerService } from './providers/view-manager.service';\n\n@Component({\n selector: 'clr-date-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-input-wrapper\" clrPopoverAnchor>\n <div class=\"clr-input-group\" [class.clr-focus]=\"focus\">\n <ng-content select=\"[clrDate]\"></ng-content>\n <button\n #actionButton\n type=\"button\"\n clrPopoverOpenCloseButton\n class=\"clr-input-group-icon-action\"\n [disabled]=\"isInputDateDisabled\"\n *ngIf=\"isEnabled\"\n >\n <cds-icon status=\"info\" shape=\"calendar\"></cds-icon>\n </button>\n <clr-datepicker-view-manager\n *clrPopoverContent=\"open; at: popoverPosition; outsideClickToClose: true; scrollToClose: true\"\n cdkTrapFocus\n ></clr-datepicker-view-manager>\n </div>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n providers: [\n ControlIdService,\n LocaleHelperService,\n ControlClassService,\n FocusService,\n NgControlService,\n DateIOService,\n DateNavigationService,\n DatepickerEnabledService,\n DateFormControlService,\n ViewManagerService,\n IfControlStateService,\n ],\n hostDirectives: [ClrPopoverHostDirective],\n host: {\n '[class.clr-date-container]': 'true',\n '[class.clr-form-control-disabled]': 'isInputDateDisabled',\n '[class.clr-form-control]': 'true',\n '[class.clr-row]': 'addGrid()',\n },\n})\nexport class ClrDateContainer extends ClrAbstractContainer implements AfterViewInit {\n focus = false;\n\n private toggleButton: ElementRef;\n\n constructor(\n protected renderer: Renderer2,\n private toggleService: ClrPopoverToggleService,\n private dateNavigationService: DateNavigationService,\n private datepickerEnabledService: DatepickerEnabledService,\n private dateFormControlService: DateFormControlService,\n private dateIOService: DateIOService,\n public commonStrings: ClrCommonStringsService,\n private focusService: FocusService,\n private viewManagerService: ViewManagerService,\n protected override controlClassService: ControlClassService,\n @Optional() protected override layoutService: LayoutService,\n protected override ngControlService: NgControlService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n\n this.subscriptions.push(\n this.focusService.focusChange.subscribe(state => {\n this.focus = state;\n })\n );\n\n this.subscriptions.push(\n this.toggleService.openChange.subscribe(() => {\n this.dateFormControlService.markAsTouched();\n })\n );\n }\n\n @Input('clrPosition')\n set clrPosition(position: string) {\n if (position && (ClrPopoverPositions as Record<string, any>)[position]) {\n this.viewManagerService.position = (ClrPopoverPositions as Record<string, any>)[position];\n }\n }\n\n @ViewChild('actionButton')\n set actionButton(button: ElementRef) {\n this.toggleButton = button;\n }\n\n get popoverPosition(): ClrPopoverPosition {\n return this.viewManagerService.position;\n }\n\n get open() {\n return this.toggleService.open;\n }\n\n /**\n * Returns if the Datepicker is enabled or not. If disabled, hides the datepicker trigger.\n */\n get isEnabled(): boolean {\n return this.datepickerEnabledService.isEnabled;\n }\n\n /**\n * Return if Datepicker is diabled or not as Form Control\n */\n get isInputDateDisabled(): boolean {\n /* clrForm wrapper or without clrForm */\n return (\n (this.control && this.control.disabled) || (this.dateFormControlService && this.dateFormControlService.disabled)\n );\n }\n\n ngAfterViewInit(): void {\n this.subscriptions.push(\n this.toggleService.openChange.subscribe(open => {\n if (open) {\n this.initializeCalendar();\n } else {\n this.toggleButton.nativeElement.focus();\n }\n })\n );\n\n this.subscriptions.push(this.listenForDateChanges());\n }\n\n /**\n * Return the label for the toggle button.\n * If there's a selected date, the date is included in the label.\n */\n private getToggleButtonLabel(day: DayModel): string {\n if (day) {\n const formattedDate = this.dateIOService.toLocaleDisplayFormatString(day.toDate());\n\n return this.commonStrings.parse(this.commonStrings.keys.datepickerToggleChangeDateLabel, {\n SELECTED_DATE: formattedDate,\n });\n }\n return this.commonStrings.keys.datepickerToggleChooseDateLabel;\n }\n\n private listenForDateChanges() {\n // because date-input.ts initializes the input in ngAfterViewInit,\n // using a databound attribute to change the button labels results in ExpressionChangedAfterItHasBeenCheckedError.\n // so instead, update the attribute directly on the element\n return this.dateNavigationService.selectedDayChange\n .pipe(startWith(this.dateNavigationService.selectedDay))\n .subscribe(day => {\n if (this.isEnabled) {\n const label = this.getToggleButtonLabel(day);\n const toggleEl = this.toggleButton.nativeElement;\n this.renderer.setAttribute(toggleEl, 'aria-label', label);\n this.renderer.setAttribute(toggleEl, 'title', label);\n }\n });\n }\n\n /**\n * Processes the user input and Initializes the Calendar everytime the datepicker popover is open.\n */\n private initializeCalendar(): void {\n this.dateNavigationService.initializeCalendar();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n EventEmitter,\n HostBinding,\n HostListener,\n Inject,\n Injector,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n PLATFORM_ID,\n Renderer2,\n Self,\n ViewContainerRef,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { of } from 'rxjs';\nimport { filter, switchMap } from 'rxjs/operators';\n\nimport { isBooleanAttributeSet } from '../../utils/component/is-boolean-attribute-set';\nimport { FocusService } from '../common/providers/focus.service';\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrDateContainer } from './date-container';\nimport { DayModel } from './model/day.model';\nimport { DateFormControlService } from './providers/date-form-control.service';\nimport { DateIOService } from './providers/date-io.service';\nimport { DateNavigationService } from './providers/date-navigation.service';\nimport { DatepickerEnabledService } from './providers/datepicker-enabled.service';\nimport { DatepickerFocusService } from './providers/datepicker-focus.service';\nimport { datesAreEqual } from './utils/date-utils';\n\n// There are four ways the datepicker value is set\n// 1. Value set by user typing into text input as a string ex: '01/28/2015'\n// 2. Value set explicitly by Angular Forms APIs as a string ex: '01/28/2015'\n// 3. Value set by user via datepicker UI as a Date Object\n// 4. Value set via `clrDate` input as a Date Object\n\n@Directive({\n selector: '[clrDate]',\n host: {\n '[class.clr-input]': 'true',\n },\n providers: [DatepickerFocusService],\n})\nexport class ClrDateInput extends WrappedFormControl<ClrDateContainer> implements OnInit, AfterViewInit, OnDestroy {\n static ngAcceptInputType_date: Date | null | string;\n\n @Input() placeholder: string;\n @Output('clrDateChange') dateChange = new EventEmitter<Date>(false);\n\n protected override index = 1;\n\n private initialClrDateInputValue: Date;\n private previousDateChange: Date;\n\n constructor(\n viewContainerRef: ViewContainerRef,\n injector: Injector,\n protected override el: ElementRef,\n protected override renderer: Renderer2,\n @Self()\n @Optional()\n protected control: NgControl,\n @Optional() private container: ClrDateContainer,\n @Optional() private dateIOService: DateIOService,\n @Optional() private dateNavigationService: DateNavigationService,\n @Optional() private datepickerEnabledService: DatepickerEnabledService,\n @Optional() private dateFormControlService: DateFormControlService,\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional() private focusService: FocusService,\n private datepickerFocusService: DatepickerFocusService\n ) {\n super(viewContainerRef, ClrDateContainer, injector, control, renderer, el);\n }\n\n @Input('clrDate')\n set date(date: Date | string) {\n if (this.previousDateChange !== date) {\n this.updateDate(this.getValidDateValueFromDate(date as Date));\n }\n\n if (!this.initialClrDateInputValue) {\n this.initialClrDateInputValue = date as Date;\n }\n }\n\n @Input()\n set min(dateString: string) {\n this.dateIOService.setMinDate(dateString);\n this.triggerControlValidation();\n }\n\n @Input()\n set max(dateString: string) {\n this.dateIOService.setMaxDate(dateString);\n this.triggerControlValidation();\n }\n\n get disabled() {\n if (this.dateFormControlService) {\n return this.dateFormControlService.disabled;\n }\n return null;\n }\n\n @Input('disabled')\n @HostBinding('disabled')\n set disabled(value: boolean | string) {\n if (this.dateFormControlService) {\n this.dateFormControlService.setDisabled(isBooleanAttributeSet(value));\n }\n }\n\n @HostBinding('attr.placeholder')\n get placeholderText(): string {\n return this.placeholder ? this.placeholder : this.dateIOService.placeholderText;\n }\n\n @HostBinding('attr.type')\n get inputType(): string {\n return isPlatformBrowser(this.platformId) && this.usingNativeDatepicker() ? 'date' : 'text';\n }\n\n override ngOnInit() {\n super.ngOnInit();\n this.populateServicesFromContainerComponent();\n\n this.subscriptions.push(\n this.listenForUserSelectedDayChanges(),\n this.listenForControlValueChanges(),\n this.listenForTouchChanges(),\n this.listenForDirtyChanges(),\n this.listenForInputRefocus()\n );\n }\n\n ngAfterViewInit() {\n // I don't know why I have to do this but after using the new HostWrapping Module I have to delay the processing\n // of the initial Input set by the user to here. If I do not 2 issues occur:\n // 1. The Input setter is called before ngOnInit. ngOnInit initializes the services without which the setter fails.\n // 2. The Renderer doesn't work before ngAfterViewInit (It used to before the new HostWrapping Module for some reason).\n // I need the renderer to set the value property on the input to make sure that if the user has supplied a Date\n // input object, we reflect it with the right date on the input field using the IO service. I am not sure if\n // these are major issues or not but just noting them down here.\n this.processInitialInputs();\n }\n\n @HostListener('focus')\n setFocusStates() {\n this.setFocus(true);\n }\n\n @HostListener('blur')\n override triggerValidation() {\n super.triggerValidation();\n this.setFocus(false);\n }\n\n @HostListener('change', ['$event.target'])\n onValueChange(target: HTMLInputElement) {\n const validDateValue = this.dateIOService.getDateValueFromDateString(target.value);\n if (this.usingClarityDatepicker() && validDateValue) {\n this.updateDate(validDateValue, true);\n } else if (this.usingNativeDatepicker()) {\n const [year, month, day] = target.value.split('-');\n this.updateDate(new Date(+year, +month - 1, +day), true);\n } else {\n this.emitDateOutput(null);\n }\n }\n\n private usingClarityDatepicker() {\n return this.datepickerEnabledService.isEnabled;\n }\n\n private usingNativeDatepicker() {\n return !this.datepickerEnabledService.isEnabled;\n }\n\n private setFocus(focus: boolean) {\n if (this.focusService) {\n this.focusService.focused = focus;\n }\n }\n\n private triggerControlValidation() {\n if (this.datepickerHasFormControl()) {\n // Set `emitEvent` to false to prevent unnecessary value change event. Status change event will be emitted by `setErrors` below.\n this.control.control?.updateValueAndValidity({ emitEvent: false });\n this.control.control?.setErrors(this.control.control.errors);\n }\n }\n\n private populateServicesFromContainerComponent() {\n if (!this.container) {\n this.dateIOService = this.getProviderFromContainer(DateIOService);\n this.dateNavigationService = this.getProviderFromContainer(DateNavigationService);\n this.datepickerEnabledService = this.getProviderFromContainer(DatepickerEnabledService);\n this.dateFormControlService = this.getProviderFromContainer(DateFormControlService);\n }\n }\n\n private processInitialInputs() {\n if (this.datepickerHasFormControl()) {\n this.updateDate(this.dateIOService.getDateValueFromDateString(this.control.value));\n } else {\n this.updateDate(this.initialClrDateInputValue);\n }\n }\n\n private updateDate(value: Date, setByUserInteraction = false) {\n const date = this.getValidDateValueFromDate(value);\n\n if (setByUserInteraction) {\n this.emitDateOutput(date);\n } else {\n this.previousDateChange = date;\n }\n\n if (this.dateNavigationService) {\n this.dateNavigationService.selectedDay = date\n ? new DayModel(date.getFullYear(), date.getMonth(), date.getDate())\n : null;\n }\n\n this.updateInput(date);\n }\n\n private updateInput(date: Date) {\n if (date) {\n const dateString = this.dateIOService.toLocaleDisplayFormatString(date);\n if (this.usingNativeDatepicker()) {\n // valueAsDate expects UTC, date from input is time-zoned\n date.setMinutes(date.getMinutes() - date.getTimezoneOffset());\n this.renderer.setProperty(this.el.nativeElement, 'valueAsDate', date);\n } else if (this.datepickerHasFormControl() && dateString !== this.control.value) {\n this.control.control.setValue(dateString);\n } else {\n this.renderer.setProperty(this.el.nativeElement, 'value', dateString);\n }\n } else {\n this.renderer.setProperty(this.el.nativeElement, 'value', '');\n }\n }\n\n private getValidDateValueFromDate(date: Date) {\n if (this.dateIOService) {\n const dateString = this.dateIOService.toLocaleDisplayFormatString(date);\n return this.dateIOService.getDateValueFromDateString(dateString);\n } else {\n return null;\n }\n }\n\n private emitDateOutput(date: Date) {\n if (!datesAreEqual(date, this.previousDateChange)) {\n this.dateChange.emit(date);\n this.previousDateChange = date;\n } else if (!date && this.previousDateChange) {\n this.dateChange.emit(null);\n this.previousDateChange = null;\n }\n }\n\n private datepickerHasFormControl() {\n return !!this.control;\n }\n\n private listenForControlValueChanges() {\n return of(this.datepickerHasFormControl())\n .pipe(\n filter(hasControl => hasControl),\n switchMap(() => this.control.valueChanges),\n // only update date value if not being set by user\n filter(() => !this.datepickerFocusService.elementIsFocused(this.el.nativeElement))\n )\n .subscribe((value: string) => this.updateDate(this.dateIOService.getDateValueFromDateString(value)));\n }\n\n private listenForUserSelectedDayChanges() {\n return this.dateNavigationService.selectedDayChange.subscribe(dayModel => this.updateDate(dayModel.toDate(), true));\n }\n\n private listenForTouchChanges() {\n return this.dateFormControlService.touchedChange\n .pipe(filter(() => this.datepickerHasFormControl()))\n .subscribe(() => this.control.control.markAsTouched());\n }\n\n private listenForDirtyChanges() {\n return this.dateFormControlService.dirtyChange\n .pipe(filter(() => this.datepickerHasFormControl()))\n .subscribe(() => this.control.control.markAsDirty());\n }\n\n private listenForInputRefocus() {\n return this.dateNavigationService.selectedDayChange\n .pipe(filter(date => !!date))\n .subscribe(() => this.datepickerFocusService.focusInput(this.el.nativeElement));\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Optional } from '@angular/core';\nimport { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\n\nimport { DateIOService } from './providers/date-io.service';\n\n@Directive({\n selector: '[clrDate]',\n providers: [{ provide: NG_VALIDATORS, useExisting: ClrDateInputValidator, multi: true }],\n})\nexport class ClrDateInputValidator implements Validator {\n constructor(@Optional() private dateIOService: DateIOService) {}\n\n validate(control: AbstractControl): ValidationErrors {\n if (this.dateIOService) {\n const value = this.dateIOService.getDateValueFromDateString(control.value);\n const minDate = this.dateIOService.disabledDates.minDate.toDate();\n const maxDate = this.dateIOService.disabledDates.maxDate.toDate();\n\n if (value && value < this.dateIOService.disabledDates.minDate.toDate()) {\n return { min: { min: minDate.toLocaleDateString(), actual: value.toLocaleDateString() } };\n } else if (value && value > this.dateIOService.disabledDates.maxDate.toDate()) {\n return { max: { max: maxDate.toLocaleDateString(), actual: value.toLocaleDateString() } };\n }\n }\n\n return null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport {\n angleIcon,\n calendarIcon,\n checkCircleIcon,\n ClarityIcons,\n eventIcon,\n exclamationCircleIcon,\n} from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { CdkTrapFocusModule } from '../../utils/cdk/cdk-trap-focus.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrHostWrappingModule } from '../../utils/host-wrapping/host-wrapping.module';\nimport { ClrPopoverModuleNext } from '../../utils/popover/popover.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrCalendar } from './calendar';\nimport { ClrDateContainer } from './date-container';\nimport { ClrDateInput } from './date-input';\nimport { ClrDateInputValidator } from './date-input.validator';\nimport { ClrDatepickerViewManager } from './datepicker-view-manager';\nimport { ClrDay } from './day';\nimport { ClrDaypicker } from './daypicker';\nimport { ClrMonthpicker } from './monthpicker';\nimport { ClrYearpicker } from './yearpicker';\n\nexport const CLR_DATEPICKER_DIRECTIVES: Type<any>[] = [\n ClrDay,\n ClrDateContainer,\n ClrDateInput,\n ClrDateInputValidator,\n ClrDatepickerViewManager,\n ClrMonthpicker,\n ClrYearpicker,\n ClrDaypicker,\n ClrCalendar,\n];\n\n@NgModule({\n imports: [\n CommonModule,\n CdkTrapFocusModule,\n ClrHostWrappingModule,\n ClrConditionalModule,\n ClrPopoverModuleNext,\n ClrIconModule,\n ClrCommonFormsModule,\n ],\n declarations: [CLR_DATEPICKER_DIRECTIVES],\n exports: [CLR_DATEPICKER_DIRECTIVES],\n})\nexport class ClrDatepickerModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon, angleIcon, eventIcon, calendarIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Inject, InjectionToken, Input, Optional } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { FocusService } from '../common/providers/focus.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\n\nexport const TOGGLE_SERVICE = new InjectionToken<BehaviorSubject<boolean>>(undefined);\nexport function ToggleServiceFactory() {\n return new BehaviorSubject<boolean>(false);\n}\nexport const TOGGLE_SERVICE_PROVIDER = { provide: TOGGLE_SERVICE, useFactory: ToggleServiceFactory };\n\n@Component({\n selector: 'clr-password-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-input-wrapper\">\n <div class=\"clr-input-group\" [class.clr-focus]=\"focus\">\n <ng-content select=\"[clrPassword]\"></ng-content>\n <button\n *ngIf=\"clrToggle\"\n (click)=\"toggle()\"\n [disabled]=\"control?.disabled\"\n class=\"clr-input-group-icon-action\"\n type=\"button\"\n >\n <cds-icon status=\"info\" class=\"clr-password-eye-icon\" [attr.shape]=\"show ? 'eye-hide' : 'eye'\"></cds-icon>\n <span class=\"clr-sr-only\">\n {{ show ? hidePasswordText(label?.labelText) : showPasswordText(label?.labelText) }}\n </span>\n </button>\n </div>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [\n NgControlService,\n ControlIdService,\n ControlClassService,\n FocusService,\n TOGGLE_SERVICE_PROVIDER,\n IfControlStateService,\n ],\n})\nexport class ClrPasswordContainer extends ClrAbstractContainer {\n show = false;\n focus = false;\n\n private _toggle = true;\n\n constructor(\n ifControlStateService: IfControlStateService,\n @Optional() layoutService: LayoutService,\n controlClassService: ControlClassService,\n ngControlService: NgControlService,\n public focusService: FocusService,\n @Inject(TOGGLE_SERVICE) private toggleService: BehaviorSubject<boolean>,\n public commonStrings: ClrCommonStringsService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n\n /* The unsubscribe is handle inside the ClrAbstractContainer */\n this.subscriptions.push(\n this.focusService.focusChange.subscribe(state => {\n this.focus = state;\n })\n );\n }\n\n @Input('clrToggle')\n get clrToggle() {\n return this._toggle;\n }\n set clrToggle(state: boolean) {\n this._toggle = state;\n if (!state) {\n this.show = false;\n }\n }\n\n toggle() {\n this.show = !this.show;\n this.toggleService.next(this.show);\n }\n\n showPasswordText(label: string) {\n return this.commonStrings.parse(this.commonStrings.keys.passwordShow, { LABEL: label });\n }\n\n hidePasswordText(label: string) {\n return this.commonStrings.parse(this.commonStrings.keys.passwordHide, { LABEL: label });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Injector,\n OnDestroy,\n OnInit,\n Optional,\n Renderer2,\n Self,\n ViewContainerRef,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { FocusService } from '../common/providers/focus.service';\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrPasswordContainer, TOGGLE_SERVICE } from './password-container';\n\n@Directive({\n selector: '[clrPassword]',\n host: { '[class.clr-input]': 'true' },\n})\nexport class ClrPassword extends WrappedFormControl<ClrPasswordContainer> implements OnInit, OnDestroy {\n protected override index = 1;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef,\n @Optional() private focusService: FocusService,\n @Optional()\n @Inject(TOGGLE_SERVICE)\n private toggleService: BehaviorSubject<boolean>\n ) {\n super(vcr, ClrPasswordContainer, injector, control, renderer, el);\n\n if (!this.focusService) {\n throw new Error('clrPassword requires being wrapped in <clr-password-container>');\n }\n\n this.subscriptions.push(\n this.toggleService.subscribe(toggle => {\n renderer.setProperty(el.nativeElement, 'type', toggle ? 'text' : 'password');\n })\n );\n }\n\n @HostListener('focus')\n triggerFocus() {\n if (this.focusService) {\n this.focusService.focused = true;\n }\n }\n\n @HostListener('blur')\n override triggerValidation() {\n super.triggerValidation();\n if (this.focusService) {\n this.focusService.focused = false;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon, eyeHideIcon, eyeIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrPassword } from './password';\nimport { ClrPasswordContainer } from './password-container';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ClrIconModule, ClrCommonFormsModule],\n declarations: [ClrPassword, ClrPasswordContainer],\n exports: [ClrCommonFormsModule, ClrPassword, ClrPasswordContainer],\n})\nexport class ClrPasswordModule {\n constructor() {\n ClarityIcons.addIcons(eyeHideIcon, eyeIcon, exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild, OnInit } from '@angular/core';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\nimport { ClrLabel } from '../common/label';\nimport { ControlIdService } from '../common/providers/control-id.service';\n\n@Component({\n selector: 'clr-radio-wrapper',\n template: `\n <ng-content select=\"[clrRadio]\"></ng-content>\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label\"></label>\n `,\n host: {\n '[class.clr-radio-wrapper]': 'true',\n },\n providers: [ControlIdService],\n})\nexport class ClrRadioWrapper implements DynamicWrapper, OnInit {\n // We need both _dynamic for HostWrapper and ContentChild(ClrLabel) in cases where\n // the user puts a radio inside a wrapper without a label, host wrapping doesn't apply\n // but we'd still need to insert a label\n _dynamic = false;\n @ContentChild(ClrLabel, { static: true }) label: ClrLabel;\n\n ngOnInit() {\n if (this.label) {\n this.label.disableGrid();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrRadioWrapper } from '../radio/radio-wrapper';\n\n@Directive({\n selector: '[clrRadio]',\n})\nexport class ClrRadio extends WrappedFormControl<ClrRadioWrapper> {\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrRadioWrapper, injector, control, renderer, el);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, Component, ContentChildren, Input, Optional, QueryList } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ContainerIdService } from '../common/providers/container-id.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\nimport { ClrRadio } from './radio';\n\n@Component({\n selector: 'clr-radio-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [class.clr-control-inline]=\"clrInline\" [ngClass]=\"controlClass()\">\n <ng-content select=\"clr-radio-wrapper\"></ng-content>\n <div class=\"clr-subtext-wrapper\">\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n '[attr.role]': 'role',\n },\n providers: [NgControlService, IfControlStateService, ControlClassService, ContainerIdService],\n})\nexport class ClrRadioContainer extends ClrAbstractContainer implements AfterContentInit {\n role: string;\n\n @ContentChildren(ClrRadio, { descendants: true }) radios: QueryList<ClrRadio>;\n\n private inline = false;\n\n constructor(\n @Optional() protected override layoutService: LayoutService,\n protected override controlClassService: ControlClassService,\n protected override ngControlService: NgControlService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n }\n\n /*\n * Here we want to support the following cases\n * clrInline - true by presence\n * clrInline=\"true|false\" - unless it is explicitly false, strings are considered true\n * [clrInline]=\"true|false\" - expect a boolean\n */\n @Input()\n get clrInline() {\n return this.inline;\n }\n set clrInline(value: boolean | string) {\n if (typeof value === 'string') {\n this.inline = value === 'false' ? false : true;\n } else {\n this.inline = !!value;\n }\n }\n\n override ngAfterContentInit() {\n this.setAriaRoles();\n }\n\n private setAriaRoles() {\n this.role = this.radios.length ? 'group' : null;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrHostWrappingModule } from '../../utils/host-wrapping/host-wrapping.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrRadio } from './radio';\nimport { ClrRadioContainer } from './radio-container';\nimport { ClrRadioWrapper } from './radio-wrapper';\n\n@NgModule({\n imports: [CommonModule, ClrCommonFormsModule, ClrHostWrappingModule, ClrIconModule],\n declarations: [ClrRadio, ClrRadioContainer, ClrRadioWrapper],\n exports: [ClrCommonFormsModule, ClrRadio, ClrRadioContainer, ClrRadioWrapper],\n})\nexport class ClrRadioModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Input, Optional, Renderer2 } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\n\n@Component({\n selector: 'clr-range-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-range-wrapper\" [class.progress-fill]=\"hasProgress\">\n <ng-content select=\"[clrRange]\"></ng-content>\n <span *ngIf=\"hasProgress\" class=\"fill-input\" [style.width]=\"getRangeProgressFillWidth()\"></span>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService],\n})\nexport class ClrRangeContainer extends ClrAbstractContainer {\n private _hasProgress = false;\n private lastRangeProgressFillWidth: string;\n\n constructor(\n @Optional() layoutService: LayoutService,\n controlClassService: ControlClassService,\n ngControlService: NgControlService,\n private renderer: Renderer2,\n private idService: ControlIdService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n }\n\n @Input('clrRangeHasProgress')\n get hasProgress() {\n return this._hasProgress;\n }\n set hasProgress(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._hasProgress) {\n this._hasProgress = valBool;\n }\n }\n\n getRangeProgressFillWidth(): string {\n const input = this.selectRangeElement();\n\n if (!input) {\n return this.lastRangeProgressFillWidth;\n }\n\n const inputWidth = input.offsetWidth;\n const inputMinValue = +input.min;\n let inputMaxValue = +input.max;\n\n if (inputMinValue === 0 && inputMaxValue === 0) {\n inputMaxValue = 100;\n }\n\n const inputMiddle = (inputMinValue + inputMaxValue) / 2;\n const inputValue = !!this.control && this.control.value !== undefined ? this.control.value : inputMiddle;\n const valueAsPercent = ((inputValue - inputMinValue) * 100) / (inputMaxValue - inputMinValue);\n\n this.lastRangeProgressFillWidth = (valueAsPercent * inputWidth) / 100 + 'px';\n\n return this.lastRangeProgressFillWidth;\n }\n\n private selectRangeElement() {\n try {\n return this.renderer.selectRootElement('[clrRange]#' + this.idService.id);\n } catch {\n return undefined;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrRangeContainer } from './range-container';\n\n@Directive({\n selector: '[clrRange]',\n host: { '[class.clr-range]': 'true' },\n})\nexport class ClrRange extends WrappedFormControl<ClrRangeContainer> {\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrRangeContainer, injector, control, renderer, el);\n }\n\n // Notes: We need an output here EventEmitter for the value\n // Does this implementation also need a display for the value?\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrHostWrappingModule } from '../../utils/host-wrapping/host-wrapping.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrRange } from './range';\nimport { ClrRangeContainer } from './range-container';\n\n@NgModule({\n imports: [CommonModule, ClrCommonFormsModule, ClrHostWrappingModule, ClrIconModule],\n declarations: [ClrRange, ClrRangeContainer],\n exports: [ClrCommonFormsModule, ClrRange, ClrRangeContainer],\n})\nexport class ClrRangeModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild, Optional } from '@angular/core';\nimport { SelectMultipleControlValueAccessor } from '@angular/forms';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { LayoutService } from '../common/providers/layout.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\n\n@Component({\n selector: 'clr-select-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div [ngClass]=\"wrapperClass()\">\n <ng-content select=\"[clrSelect]\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService],\n})\nexport class ClrSelectContainer extends ClrAbstractContainer {\n @ContentChild(SelectMultipleControlValueAccessor, { static: false }) multiple: SelectMultipleControlValueAccessor;\n private multi = false;\n\n constructor(\n @Optional() protected override layoutService: LayoutService,\n protected override controlClassService: ControlClassService,\n protected override ngControlService: NgControlService,\n protected override ifControlStateService: IfControlStateService\n ) {\n super(ifControlStateService, layoutService, controlClassService, ngControlService);\n }\n\n ngOnInit() {\n /* The unsubscribe is handle inside the ClrAbstractContainer */\n this.subscriptions.push(\n this.ngControlService.controlChanges.subscribe(control => {\n if (control) {\n this.multi = control.valueAccessor instanceof SelectMultipleControlValueAccessor;\n this.control = control;\n }\n })\n );\n }\n\n wrapperClass() {\n return this.multi ? 'clr-multiselect-wrapper' : 'clr-select-wrapper';\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrSelectContainer } from './select-container';\n\n@Directive({\n selector: '[clrSelect]',\n host: { '[class.clr-select]': 'true' },\n})\nexport class ClrSelect extends WrappedFormControl<ClrSelectContainer> {\n protected override index = 1;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrSelectContainer, injector, control, renderer, el);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrSelect } from './select';\nimport { ClrSelectContainer } from './select-container';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ClrIconModule, ClrCommonFormsModule],\n declarations: [ClrSelect, ClrSelectContainer],\n exports: [ClrCommonFormsModule, ClrSelect, ClrSelectContainer],\n})\nexport class ClrSelectModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrAbstractContainer } from '../common/abstract-container';\nimport { IfControlStateService } from '../common/if-control-state/if-control-state.service';\nimport { ControlClassService } from '../common/providers/control-class.service';\nimport { ControlIdService } from '../common/providers/control-id.service';\nimport { NgControlService } from '../common/providers/ng-control.service';\n\n@Component({\n selector: 'clr-textarea-container',\n template: `\n <ng-content select=\"label\"></ng-content>\n <label *ngIf=\"!label && addGrid()\"></label>\n <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n <div class=\"clr-textarea-wrapper\">\n <ng-content select=\"[clrTextarea]\"></ng-content>\n <cds-icon\n *ngIf=\"showInvalid\"\n class=\"clr-validate-icon\"\n shape=\"exclamation-circle\"\n status=\"danger\"\n aria-hidden=\"true\"\n ></cds-icon>\n <cds-icon\n *ngIf=\"showValid\"\n class=\"clr-validate-icon\"\n shape=\"check-circle\"\n status=\"success\"\n aria-hidden=\"true\"\n ></cds-icon>\n </div>\n <ng-content select=\"clr-control-helper\" *ngIf=\"showHelper\"></ng-content>\n <ng-content select=\"clr-control-error\" *ngIf=\"showInvalid\"></ng-content>\n <ng-content select=\"clr-control-success\" *ngIf=\"showValid\"></ng-content>\n </div>\n `,\n host: {\n '[class.clr-form-control]': 'true',\n '[class.clr-form-control-disabled]': 'control?.disabled',\n '[class.clr-row]': 'addGrid()',\n },\n providers: [IfControlStateService, NgControlService, ControlIdService, ControlClassService],\n})\nexport class ClrTextareaContainer extends ClrAbstractContainer {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, Injector, Optional, Renderer2, Self, ViewContainerRef } from '@angular/core';\nimport { NgControl } from '@angular/forms';\n\nimport { WrappedFormControl } from '../common/wrapped-control';\nimport { ClrTextareaContainer } from './textarea-container';\n\n@Directive({\n selector: '[clrTextarea]',\n host: { '[class.clr-textarea]': 'true' },\n})\nexport class ClrTextarea extends WrappedFormControl<ClrTextareaContainer> {\n protected override index = 1;\n\n constructor(\n vcr: ViewContainerRef,\n injector: Injector,\n @Self()\n @Optional()\n control: NgControl,\n renderer: Renderer2,\n el: ElementRef\n ) {\n super(vcr, ClrTextareaContainer, injector, control, renderer, el);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { checkCircleIcon, ClarityIcons, exclamationCircleIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrCommonFormsModule } from '../common/common.module';\nimport { ClrTextarea } from './textarea';\nimport { ClrTextareaContainer } from './textarea-container';\n\n@NgModule({\n imports: [CommonModule, FormsModule, ClrIconModule, ClrCommonFormsModule],\n declarations: [ClrTextarea, ClrTextareaContainer],\n exports: [ClrCommonFormsModule, ClrTextarea, ClrTextareaContainer],\n})\nexport class ClrTextareaModule {\n constructor() {\n ClarityIcons.addIcons(exclamationCircleIcon, checkCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { ClrCheckboxModule } from './checkbox/checkbox.module';\nimport { ClrComboboxModule } from './combobox/combobox.module';\nimport { ClrCommonFormsModule } from './common/common.module';\nimport { ClrDatalistModule } from './datalist/datalist.module';\nimport { ClrDatepickerModule } from './datepicker/datepicker.module';\nimport { ClrInputModule } from './input/input.module';\nimport { ClrPasswordModule } from './password/password.module';\nimport { ClrRadioModule } from './radio/radio.module';\nimport { ClrRangeModule } from './range/range.module';\nimport { ClrSelectModule } from './select/select.module';\nimport { ClrTextareaModule } from './textarea/textarea.module';\n\n@NgModule({\n imports: [CommonModule],\n exports: [\n ClrCommonFormsModule,\n ClrCheckboxModule,\n ClrComboboxModule,\n ClrDatepickerModule,\n ClrInputModule,\n ClrPasswordModule,\n ClrRadioModule,\n ClrSelectModule,\n ClrTextareaModule,\n ClrRangeModule,\n ClrDatalistModule,\n ],\n})\nexport class ClrFormsModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { EXPANDABLE_ANIMATION_DIRECTIVES } from './index';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [EXPANDABLE_ANIMATION_DIRECTIVES],\n exports: [EXPANDABLE_ANIMATION_DIRECTIVES],\n})\nexport class ClrExpandableAnimationModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CdkDrag } from '@angular/cdk/drag-drop';\nimport { Directive, NgModule } from '@angular/core';\n\n/**\n * This is just a copy of CdkDrag so it can be used independent of the rest of the CdkDragDropModule.\n */\n@Directive({\n selector: '[cdkDrag]',\n})\nexport class CdkDragModule_CdkDrag extends CdkDrag {}\n\n/**\n * This module allows us to avoid importing all of CdkDragDropModule which results in a smaller application bundle.\n */\n@NgModule({\n declarations: [CdkDragModule_CdkDrag],\n exports: [CdkDragModule_CdkDrag],\n})\nexport class CdkDragModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, EventEmitter, Input, NgZone, OnDestroy, Output, Renderer2 } from '@angular/core';\n\n@Directive({\n selector: '[clrOutsideClick]',\n})\nexport class OutsideClick implements OnDestroy {\n @Input('clrStrict') strict = false;\n\n @Output('clrOutsideClick') outsideClick = new EventEmitter<any>(false);\n\n private documentClickListener: VoidFunction;\n\n constructor(host: ElementRef<HTMLElement>, renderer: Renderer2, ngZone: NgZone) {\n ngZone.runOutsideAngular(() => {\n this.documentClickListener = renderer.listen('document', 'click', (event: MouseEvent) => {\n // Compare the element in the DOM on which the mouse was clicked\n // with the current actionMenu native HTML element.\n if (host.nativeElement === event.target) {\n return;\n }\n\n if (!this.strict && host.nativeElement.contains(event.target as HTMLElement)) {\n return;\n }\n\n // We'll run change detection only if the click event actually happened outside of\n // the host element.\n ngZone.run(() => {\n this.outsideClick.emit(event);\n });\n });\n });\n }\n\n ngOnDestroy(): void {\n this.documentClickListener();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Type } from '@angular/core';\n\nimport { OutsideClick } from './outside-click';\n\nexport * from './outside-click';\n\nexport const OUSTIDE_CLICK_DIRECTIVES: Type<any>[] = [OutsideClick];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { OUSTIDE_CLICK_DIRECTIVES } from './index';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [OUSTIDE_CLICK_DIRECTIVES],\n exports: [OUSTIDE_CLICK_DIRECTIVES],\n})\nexport class ClrOutsideClickModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport abstract class CustomFilter {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n/*\n * This provider implements some form of synchronous debouncing through a lock pattern\n * to avoid emitting multiple state changes for a single user action.\n */\n@Injectable()\nexport class StateDebouncer {\n /*\n * This is the lock, to only emit once all the changes have finished processing\n */\n private nbChanges = 0;\n\n /**\n * The Observable that lets other classes subscribe to global state changes\n */\n private _change = new Subject<void>();\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<void> {\n return this._change.asObservable();\n }\n\n changeStart() {\n this.nbChanges++;\n }\n\n changeDone() {\n if (--this.nbChanges === 0) {\n this._change.next();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { StateDebouncer } from './state-debouncer.provider';\n\n@Injectable()\nexport class Page {\n activated = false;\n\n /**\n * Page size, a value of 0 means no pagination\n */\n private _size = 0;\n\n /**\n * Total items (needed to guess the last page)\n */\n private _totalItems?: number;\n\n /**\n * Last page\n */\n private _last: number;\n\n /**\n * Current page\n */\n private _current = 1;\n\n /**\n * The Observable that lets other classes subscribe to page changes\n */\n private _change = new Subject<number>();\n\n private preventEmit = false;\n private _sizeChange = new Subject<number>();\n\n constructor(private stateDebouncer: StateDebouncer) {}\n\n get size(): number {\n return this._size;\n }\n set size(size: number) {\n const oldSize = this._size;\n if (size !== oldSize) {\n if (!this.preventEmit) {\n this.stateDebouncer.changeStart();\n }\n this._size = size;\n if (size === 0) {\n this._current = 1;\n } else {\n // Yeap. That's the formula to keep the first item from the old page still\n // displayed in the new one.\n this._current = Math.floor((oldSize / size) * (this._current - 1)) + 1;\n }\n // We always emit an event even if the current page index didn't change, because\n // the size changing means the items inside the page are different\n if (!this.preventEmit) {\n this._change.next(this._current);\n this._sizeChange.next(this._size);\n this.stateDebouncer.changeDone();\n }\n }\n this.preventEmit = false;\n }\n\n get totalItems(): number {\n return this._totalItems || 0; // remains 0 if not set to avoid breaking change\n }\n set totalItems(total: number) {\n this._totalItems = total;\n // If we have less items than before, we might need to change the current page\n if (this.current > this.last) {\n this.current = this.last;\n }\n }\n\n get last(): number {\n if (this._last) {\n return this._last;\n }\n // If the last page isn't known, we compute it from the last item's index\n if (this.size > 0 && this.totalItems) {\n return Math.ceil(this.totalItems / this.size);\n }\n return 1;\n }\n set last(page: number) {\n this._last = page;\n }\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<number> {\n return this._change.asObservable();\n }\n\n get sizeChange(): Observable<number> {\n return this._sizeChange.asObservable();\n }\n\n get current(): number {\n return this._current;\n }\n set current(page: number) {\n if (page !== this._current) {\n this.stateDebouncer.changeStart();\n this._current = page;\n this._change.next(page);\n this.stateDebouncer.changeDone();\n }\n }\n\n /**\n * Index of the first item displayed on the current page, starting at 0, -1 if none displayed\n */\n get firstItem(): number {\n if (this._totalItems === 0) {\n return -1;\n }\n\n if (this.size === 0) {\n return 0;\n }\n return (this.current - 1) * this.size;\n }\n\n /**\n * Index of the last item displayed on the current page, starting at 0, -1 if none displayed\n */\n get lastItem(): number {\n if (this._totalItems === 0) {\n return -1;\n }\n\n if (this.size === 0) {\n return this.totalItems - 1;\n }\n let lastInPage = this.current * this.size - 1;\n if (this.totalItems) {\n lastInPage = Math.min(lastInPage, this.totalItems - 1);\n }\n return lastInPage;\n }\n\n /**\n * Moves to the previous page if it exists\n */\n previous() {\n if (this.current > 1) {\n this.current--;\n }\n }\n\n /**\n * Moves to the next page if it exists\n */\n next() {\n if (this.current < this.last) {\n this.current++;\n }\n }\n\n /**\n * Resets the page size to 0\n */\n resetPageSize(preventEmit = false): void {\n this.preventEmit = preventEmit;\n this.size = 0;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { ClrDatagridFilterInterface } from '../interfaces/filter.interface';\nimport { Page } from './page';\nimport { StateDebouncer } from './state-debouncer.provider';\n\n@Injectable()\nexport class FiltersProvider<T = any> {\n /**\n * This subject is the list of filters that changed last, not the whole list.\n * We emit a list rather than just one filter to allow batch changes to several at once.\n */\n private _change = new Subject<ClrDatagridFilterInterface<T>[]>();\n\n /**\n * List of all filters, whether they're active or not\n */\n private _all: RegisteredFilter<T, ClrDatagridFilterInterface<T>>[] = [];\n\n constructor(private _page: Page, private stateDebouncer: StateDebouncer) {}\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<ClrDatagridFilterInterface<T>[]> {\n return this._change.asObservable();\n }\n\n /**\n * Tests if at least one filter is currently active\n */\n hasActiveFilters(): boolean {\n // We do not use getActiveFilters() because this function will be called much more often\n // and stopping the loop early might be relevant.\n for (const { filter } of this._all) {\n if (filter && filter.isActive()) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Returns a list of all currently active filters\n */\n getActiveFilters(): ClrDatagridFilterInterface<T>[] {\n const ret: ClrDatagridFilterInterface<T>[] = [];\n for (const { filter } of this._all) {\n if (filter && filter.isActive()) {\n ret.push(filter);\n }\n }\n return ret;\n }\n\n /**\n * Registers a filter, and returns a deregistration function\n */\n add<F extends ClrDatagridFilterInterface<T>>(filter: F): RegisteredFilter<T, F> {\n const subscription = filter.changes.subscribe(() => this.resetPageAndEmitFilterChange([filter]));\n let hasUnregistered = false;\n const registered = new RegisteredFilter(filter, () => {\n if (hasUnregistered) {\n return;\n }\n subscription.unsubscribe();\n const matchIndex = this._all.findIndex(item => item.filter === filter);\n if (matchIndex >= 0) {\n this._all.splice(matchIndex, 1);\n }\n if (filter.isActive()) {\n this.resetPageAndEmitFilterChange([]);\n }\n hasUnregistered = true;\n });\n this._all.push(registered);\n if (filter.isActive()) {\n this.resetPageAndEmitFilterChange([filter]);\n }\n return registered;\n }\n\n /**\n * Accepts an item if it is accepted by all currently active filters\n */\n accepts(item: T): boolean {\n for (const { filter } of this._all) {\n if (filter && filter.isActive() && !filter.accepts(item)) {\n return false;\n }\n }\n return true;\n }\n\n private resetPageAndEmitFilterChange(filters: ClrDatagridFilterInterface<T>[]) {\n this.stateDebouncer.changeStart();\n // filtering may change the page number such that current page number doesn't exist in the filtered dataset.\n // So here we always set the current page to 1 so that it'll fetch first page's data with the given filter.\n this._page.current = 1;\n this._change.next(filters);\n this.stateDebouncer.changeDone();\n }\n}\n\nexport class RegisteredFilter<T, F extends ClrDatagridFilterInterface<T>> {\n constructor(public filter: F, public unregister: () => void) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, OnDestroy } from '@angular/core';\n\nimport { ClrDatagridFilterInterface } from '../interfaces/filter.interface';\nimport { FiltersProvider, RegisteredFilter } from '../providers/filters';\n\n@Directive()\nexport abstract class DatagridFilterRegistrar<T, F extends ClrDatagridFilterInterface<T>> implements OnDestroy {\n /**\n * @NOTEe Type `any` is set here to be able to pass templateStrictMode\n */\n registered: any;\n\n constructor(private filters: FiltersProvider<T>) {}\n\n get filter(): F {\n return this.registered && this.registered.filter;\n }\n\n ngOnDestroy(): void {\n this.deleteFilter();\n }\n\n setFilter(filter: F | RegisteredFilter<T, F>) {\n // If we previously had another filter, we unregister it\n this.deleteFilter();\n if (filter instanceof RegisteredFilter) {\n this.registered = filter;\n } else if (filter) {\n this.registered = this.filters.add(filter);\n }\n }\n\n deleteFilter() {\n if (this.registered) {\n this.registered.unregister();\n delete this.registered;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n OnChanges,\n OnDestroy,\n Output,\n PLATFORM_ID,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrAlignment } from '../../utils/popover/enums/alignment.enum';\nimport { ClrAxis } from '../../utils/popover/enums/axis.enum';\nimport { ClrSide } from '../../utils/popover/enums/side.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { ClrDatagridFilterInterface } from './interfaces/filter.interface';\nimport { CustomFilter } from './providers/custom-filter';\nimport { FiltersProvider, RegisteredFilter } from './providers/filters';\nimport { DatagridFilterRegistrar } from './utils/datagrid-filter-registrar';\n\n/**\n * Custom filter that can be added in any column to override the default object property string filter.\n * The reason this is not just an input on DatagridColumn is because we need the filter's template to be projected,\n * since it can be anything (not just a text input).\n */\n@Component({\n selector: 'clr-dg-filter',\n // We register this component as a CustomFilter, for the parent column to detect it.\n providers: [{ provide: CustomFilter, useExisting: ClrDatagridFilter }],\n template: `\n <button\n class=\"datagrid-filter-toggle\"\n type=\"button\"\n #anchor\n [attr.aria-label]=\"toggleButtonAriaLabel\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"popoverId\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [class.datagrid-filter-open]=\"open\"\n [class.datagrid-filtered]=\"active\"\n >\n <cds-icon\n [attr.status]=\"active ? 'info' : null\"\n [attr.shape]=\"active ? 'filter-grid-circle' : 'filter-grid'\"\n solid\n ></cds-icon>\n </button>\n\n <div\n class=\"datagrid-filter\"\n [id]=\"popoverId\"\n cdkTrapFocus\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n role=\"dialog\"\n [attr.aria-label]=\"commonStrings.keys.datagridFilterDialogAriaLabel\"\n >\n <div class=\"datagrid-filter-close-wrapper\">\n <button type=\"button\" class=\"close\" clrPopoverCloseButton>\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n\n <ng-content></ng-content>\n </div>\n `,\n})\nexport class ClrDatagridFilter<T = any>\n extends DatagridFilterRegistrar<T, ClrDatagridFilterInterface<T>>\n implements CustomFilter, OnChanges, OnDestroy\n{\n @Output('clrDgFilterOpenChange') openChange = new EventEmitter<boolean>(false);\n\n ariaExpanded = false;\n popoverId = uniqueIdFactory();\n toggleButtonAriaLabel: string;\n\n // Smart Popover\n smartPosition: ClrPopoverPosition = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.END,\n content: ClrAlignment.END,\n };\n\n @ViewChild('anchor', { read: ElementRef }) anchor: ElementRef;\n\n private _open = false;\n private subs: Subscription[] = [];\n\n constructor(\n _filters: FiltersProvider<T>,\n public commonStrings: ClrCommonStringsService,\n private smartToggleService: ClrPopoverToggleService,\n @Inject(PLATFORM_ID) private platformId: any,\n private elementRef: ElementRef<HTMLElement>\n ) {\n super(_filters);\n this.subs.push(\n smartToggleService.openChange.subscribe(change => {\n this.open = change;\n this.ariaExpanded = change;\n })\n );\n }\n\n @Input('clrDgFilterOpen')\n get open() {\n return this._open;\n }\n set open(open: boolean) {\n open = !!open;\n if (this.open !== open) {\n this.smartToggleService.open = open;\n this.openChange.emit(open);\n if (!open && isPlatformBrowser(this.platformId)) {\n this.anchor.nativeElement.focus();\n }\n // keep track of the state\n this._open = open;\n }\n }\n\n @Input('clrDgFilter')\n set customFilter(filter: ClrDatagridFilterInterface<T> | RegisteredFilter<T, ClrDatagridFilterInterface<T>>) {\n this.setFilter(filter);\n }\n\n /**\n * Indicates if the filter is currently active\n */\n get active() {\n return !!this.filter && this.filter.isActive();\n }\n\n ngOnChanges() {\n this.setToggleButtonAriaLabel();\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.subs.forEach(sub => sub.unsubscribe());\n }\n\n /**\n * This is not in a getter to prevent \"expression has changed after it was checked\" errors.\n * And it's more performant this way since it only runs on change.\n */\n private setToggleButtonAriaLabel() {\n const columnElement = this.elementRef.nativeElement?.closest('clr-dg-column');\n const columnTitleElement = columnElement?.querySelector('.datagrid-column-title');\n\n const columnTitle = columnTitleElement?.textContent.trim().toLocaleLowerCase();\n\n this.toggleButtonAriaLabel = this.commonStrings.parse(this.commonStrings.keys.datagridFilterAriaLabel, {\n COLUMN: columnTitle || '',\n });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/**\n * Generic accessor for deep object properties\n * that can be specified as simple dot-separated strings.\n */\nexport class NestedProperty<T = any> {\n private splitProp: string[];\n\n constructor(private prop: string) {\n if (prop.indexOf('.') >= 0) {\n this.splitProp = prop.split('.');\n }\n }\n\n // Safe getter for a deep object property, will not throw an error but return\n // undefined if one of the intermediate properties is null or undefined.\n getPropValue(item: T): any {\n if (this.splitProp) {\n let value = item;\n for (const nestedProp of this.splitProp) {\n if (\n value === null ||\n typeof value === 'undefined' ||\n typeof (value as Record<string, any>)[nestedProp] === 'undefined'\n ) {\n return undefined;\n }\n value = (value as Record<string, any>)[nestedProp];\n }\n return value;\n } else {\n return (item as Record<string, any>)[this.prop];\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrDatagridNumericFilterInterface } from '../../interfaces/numeric-filter.interface';\nimport { NestedProperty } from '../nested-property';\n\nexport class DatagridPropertyNumericFilter<T = any> implements ClrDatagridNumericFilterInterface<T> {\n private nestedProp: NestedProperty<T>;\n\n constructor(public prop: string, public exact = false) {\n this.nestedProp = new NestedProperty(prop);\n }\n\n accepts(item: T, low: number, high: number): boolean {\n const propValue = this.nestedProp.getPropValue(item);\n if (propValue === undefined) {\n return false;\n }\n if (low !== null && (typeof propValue !== 'number' || propValue < low)) {\n return false;\n }\n if (high !== null && (typeof propValue !== 'number' || propValue > high)) {\n return false;\n }\n return true;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable, Subject } from 'rxjs';\n\nimport { ClrDatagridFilterInterface } from '../../interfaces/filter.interface';\nimport { ClrDatagridNumericFilterInterface } from '../../interfaces/numeric-filter.interface';\nimport { DatagridPropertyNumericFilter } from './datagrid-property-numeric-filter';\n\nexport class DatagridNumericFilterImpl<T = any> implements ClrDatagridFilterInterface<T> {\n /**\n * The Observable required as part of the Filter interface\n */\n private _changes = new Subject<[number, number]>();\n\n /**\n * Internal values and accessor\n */\n private _low: number | null = null;\n private _high: number | null = null;\n\n constructor(public filterFn: ClrDatagridNumericFilterInterface<T>) {}\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get changes(): Observable<[number, number]> {\n return this._changes.asObservable();\n }\n\n get value(): [number, number] {\n return [this._low, this._high];\n }\n set value(vals: [number, number]) {\n const low = vals[0];\n const high = vals[1];\n if (low !== this._low || high !== this._high) {\n this._low = low;\n this._high = high;\n this._changes.next([this._low, this._high]);\n }\n }\n\n get low() {\n return this._low;\n }\n set low(low: number) {\n if (low !== this._low) {\n this._low = low;\n this._changes.next([this._low, this._high]);\n }\n }\n\n get high() {\n return this._high;\n }\n set high(high: number) {\n if (high !== this._high) {\n this._high = high;\n this._changes.next([this._low, this._high]);\n }\n }\n\n get state() {\n if (this.filterFn instanceof DatagridPropertyNumericFilter) {\n return {\n property: this.filterFn.prop,\n low: this._low,\n high: this._high,\n };\n }\n return this;\n }\n\n /**\n * Indicates if the filter is currently active, (at least one input is set)\n */\n isActive(): boolean {\n return this._low !== null || this.high !== null;\n }\n\n /**\n * Tests if an item matches a search text\n */\n accepts(item: T): boolean {\n // We have a filter function in case someone wants to implement a numeric\n // filter that always passes nulls or similar\n return this.filterFn.accepts(item, this._low, this._high);\n }\n\n equals(other: ClrDatagridFilterInterface<T, any>): boolean {\n if (other instanceof DatagridNumericFilterImpl) {\n if (other.filterFn instanceof DatagridPropertyNumericFilter) {\n return (\n this.filterFn instanceof DatagridPropertyNumericFilter &&\n other.filterFn.prop === this.filterFn.prop &&\n other.low === this._low &&\n other.high === this._high\n );\n }\n return other === this;\n }\n return false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, ElementRef, EventEmitter, Input, NgZone, Output, ViewChild } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { DomAdapter } from '../../../../utils/dom-adapter/dom-adapter';\nimport { ClrCommonStringsService } from '../../../../utils/i18n/common-strings.service';\nimport { ClrPopoverToggleService } from '../../../../utils/popover/providers/popover-toggle.service';\nimport { ClrDatagridFilter } from '../../datagrid-filter';\nimport { ClrDatagridNumericFilterInterface } from '../../interfaces/numeric-filter.interface';\nimport { CustomFilter } from '../../providers/custom-filter';\nimport { FiltersProvider, RegisteredFilter } from '../../providers/filters';\nimport { DatagridFilterRegistrar } from '../../utils/datagrid-filter-registrar';\nimport { DatagridNumericFilterImpl } from './datagrid-numeric-filter-impl';\n\n@Component({\n selector: 'clr-dg-numeric-filter',\n providers: [{ provide: CustomFilter, useExisting: DatagridNumericFilter }],\n template: `\n <clr-dg-filter [clrDgFilter]=\"registered\" [(clrDgFilterOpen)]=\"open\">\n <input\n class=\"datagrid-numeric-filter-input\"\n #input_low\n type=\"number\"\n autocomplete=\"off\"\n name=\"low\"\n [(ngModel)]=\"low\"\n [placeholder]=\"minPlaceholderValue\"\n [attr.aria-label]=\"minPlaceholderValue\"\n />\n <span class=\"datagrid-filter-input-spacer\"></span>\n <input\n class=\"datagrid-numeric-filter-input\"\n #input_high\n type=\"number\"\n autocomplete=\"off\"\n name=\"high\"\n [(ngModel)]=\"high\"\n [placeholder]=\"maxPlaceholderValue\"\n [attr.aria-label]=\"maxPlaceholderValue\"\n />\n </clr-dg-filter>\n `,\n})\nexport class DatagridNumericFilter<T = any>\n extends DatagridFilterRegistrar<T, DatagridNumericFilterImpl<T>>\n implements CustomFilter, AfterViewInit\n{\n @Input('clrFilterMinPlaceholder') minPlaceholder: string;\n @Input('clrFilterMaxPlaceholder') maxPlaceholder: string;\n\n @Output('clrFilterValueChange') filterValueChange = new EventEmitter();\n\n /**\n * Indicates if the filter dropdown is open\n */\n open = false;\n\n /**\n * We need the actual input element to automatically focus on it\n */\n @ViewChild('input_low') input: ElementRef;\n\n /**\n * We grab the ClrDatagridFilter we wrap to register this StringFilter to it.\n */\n @ViewChild(ClrDatagridFilter) filterContainer: ClrDatagridFilter<T>;\n\n private initFilterValues: [number, number];\n private subscriptions: Subscription[] = [];\n\n constructor(\n filters: FiltersProvider<T>,\n private domAdapter: DomAdapter,\n public commonStrings: ClrCommonStringsService,\n private popoverToggleService: ClrPopoverToggleService,\n private ngZone: NgZone\n ) {\n super(filters);\n }\n\n /**\n * Common setter for the input values\n */\n @Input('clrFilterValue')\n get value() {\n return [this.filter.low, this.filter.high];\n }\n set value(values: [number, number]) {\n if (this.filter && Array.isArray(values)) {\n if (values && (values[0] !== this.filter.low || values[1] !== this.filter.high)) {\n if (typeof values[0] === 'number') {\n this.filter.low = values[0];\n } else {\n this.filter.low = null;\n }\n if (typeof values[1] === 'number') {\n this.filter.high = values[1];\n } else {\n this.filter.high = null;\n }\n this.filterValueChange.emit(values);\n }\n } else {\n this.initFilterValues = values;\n }\n }\n\n /**\n * Customizable filter logic based on high and low values\n */\n @Input('clrDgNumericFilter')\n set customNumericFilter(\n value: ClrDatagridNumericFilterInterface<T> | RegisteredFilter<T, DatagridNumericFilterImpl<T>>\n ) {\n if (value instanceof RegisteredFilter) {\n this.setFilter(value);\n } else {\n this.setFilter(new DatagridNumericFilterImpl(value));\n }\n if (this.initFilterValues) {\n this.value = this.initFilterValues;\n // This initFilterValues should be used only once after the filter registration\n // So deleting this property value to prevent it from being used again\n // if this customStringFilter property is set again\n delete this.initFilterValues;\n }\n }\n\n get maxPlaceholderValue() {\n return this.maxPlaceholder || this.commonStrings.keys.maxValue;\n }\n\n get minPlaceholderValue() {\n return this.minPlaceholder || this.commonStrings.keys.minValue;\n }\n\n get low() {\n if (typeof this.filter.low === 'number' && isFinite(this.filter.low)) {\n return this.filter.low;\n } else {\n // There's not a low limit\n return null;\n }\n }\n set low(low: number | string) {\n if (typeof low === 'number' && low !== this.filter.low) {\n this.filter.low = low;\n this.filterValueChange.emit([this.filter.low, this.filter.high]);\n } else if (typeof low !== 'number') {\n this.filter.low = null;\n this.filterValueChange.emit([this.filter.low, this.filter.high]);\n }\n }\n\n get high() {\n if (typeof this.filter.high === 'number' && isFinite(this.filter.high)) {\n return this.filter.high;\n } else {\n // There's not a high limit\n return null;\n }\n }\n set high(high: number | string) {\n if (typeof high === 'number' && high !== this.filter.high) {\n this.filter.high = high;\n this.filterValueChange.emit([this.filter.low, this.filter.high]);\n } else if (typeof high !== 'number') {\n this.filter.high = null;\n this.filterValueChange.emit([this.filter.low, this.filter.high]);\n }\n }\n\n ngAfterViewInit() {\n this.subscriptions.push(\n this.popoverToggleService.openChange.subscribe(openChange => {\n this.open = openChange;\n // Note: this is being run outside of the Angular zone because `element.focus()` doesn't require\n // running change detection.\n this.ngZone.runOutsideAngular(() => {\n // The animation frame in used because when this executes, the input isn't displayed.\n // Note: `element.focus()` causes re-layout and this may lead to frame drop on slower devices.\n // `setTimeout` is a macrotask and macrotasks are executed within the current rendering frame.\n // Animation tasks are executed within the next rendering frame.\n requestAnimationFrame(() => {\n this.domAdapter.focus(this.input.nativeElement);\n });\n });\n })\n );\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this.subscriptions.forEach(sub => {\n sub.unsubscribe();\n });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrDatagridStringFilterInterface } from '../../interfaces/string-filter.interface';\nimport { NestedProperty } from '../nested-property';\n\nexport class DatagridPropertyStringFilter<T = any> implements ClrDatagridStringFilterInterface<T> {\n private nestedProp: NestedProperty<T>;\n\n constructor(public prop: string, public exact = false) {\n this.nestedProp = new NestedProperty(prop);\n }\n\n accepts(item: T, search: string): boolean {\n const propValue = this.nestedProp.getPropValue(item);\n if (typeof propValue === 'undefined') {\n return false;\n } else if (this.exact) {\n return ('' + propValue).toLowerCase() === search;\n } else {\n return ('' + propValue).toLowerCase().indexOf(search) >= 0;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable, Subject } from 'rxjs';\n\nimport { ClrDatagridFilterInterface } from '../../interfaces/filter.interface';\nimport { ClrDatagridStringFilterInterface } from '../../interfaces/string-filter.interface';\nimport { DatagridPropertyStringFilter } from './datagrid-property-string-filter';\n\nexport class DatagridStringFilterImpl<T = any> implements ClrDatagridFilterInterface<T> {\n /**\n * The Observable required as part of the Filter interface\n */\n private _changes = new Subject<string>();\n\n /**\n * Input value converted to lowercase\n */\n private _lowerCaseValue = '';\n\n /**\n * Raw input value\n */\n private _rawValue = '';\n\n constructor(public filterFn: ClrDatagridStringFilterInterface<T>) {}\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get changes(): Observable<string> {\n return this._changes.asObservable();\n }\n\n get lowerCaseValue() {\n return this._lowerCaseValue;\n }\n\n get state() {\n if (this.filterFn instanceof DatagridPropertyStringFilter) {\n return {\n property: this.filterFn.prop,\n value: this.value,\n };\n }\n return this;\n }\n\n get value(): string {\n return this._rawValue;\n }\n /**\n * Common setter for the input value\n */\n set value(value: string) {\n if (!value) {\n value = '';\n }\n if (value !== this._rawValue) {\n this._rawValue = value;\n this._lowerCaseValue = value.toLowerCase().trim();\n this._changes.next(value);\n }\n }\n\n /**\n * Indicates if the filter is currently active, meaning the input is not empty\n */\n isActive(): boolean {\n return !!this.value;\n }\n\n /**\n * Tests if an item matches a search text\n */\n accepts(item: T): boolean {\n // We always test with the lowercase value of the input, to stay case insensitive\n return this.filterFn.accepts(item, this.lowerCaseValue);\n }\n\n equals(other: ClrDatagridFilterInterface<T, any>): boolean {\n if (other instanceof DatagridStringFilterImpl) {\n if (other.filterFn instanceof DatagridPropertyStringFilter) {\n return (\n this.filterFn instanceof DatagridPropertyStringFilter &&\n other.filterFn.prop === this.filterFn.prop &&\n other.value === this.value\n );\n }\n return other === this;\n }\n return false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n NgZone,\n OnDestroy,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { DomAdapter } from '../../../../utils/dom-adapter/dom-adapter';\nimport { ClrCommonStringsService } from '../../../../utils/i18n/common-strings.service';\nimport { ClrPopoverToggleService } from '../../../../utils/popover/providers/popover-toggle.service';\nimport { ClrDatagridFilter } from '../../datagrid-filter';\nimport { ClrDatagridStringFilterInterface } from '../../interfaces/string-filter.interface';\nimport { CustomFilter } from '../../providers/custom-filter';\nimport { FiltersProvider, RegisteredFilter } from '../../providers/filters';\nimport { DatagridFilterRegistrar } from '../../utils/datagrid-filter-registrar';\nimport { DatagridStringFilterImpl } from './datagrid-string-filter-impl';\n\n@Component({\n selector: 'clr-dg-string-filter',\n providers: [{ provide: CustomFilter, useExisting: DatagridStringFilter }],\n template: `\n <clr-dg-filter [clrDgFilter]=\"registered\" [(clrDgFilterOpen)]=\"open\">\n <input\n #input\n type=\"text\"\n autocomplete=\"off\"\n name=\"search\"\n [(ngModel)]=\"value\"\n class=\"clr-input\"\n [attr.aria-label]=\"placeholderValue\"\n [placeholder]=\"placeholderValue\"\n />\n </clr-dg-filter>\n `,\n})\nexport class DatagridStringFilter<T = any>\n extends DatagridFilterRegistrar<T, DatagridStringFilterImpl<T>>\n implements CustomFilter, AfterViewInit, OnDestroy\n{\n /**\n * Provide a way to pass external placeholder and aria-label to the filter input\n */\n @Input('clrFilterPlaceholder') placeholder: string;\n\n @Output('clrFilterValueChange') filterValueChange = new EventEmitter();\n\n /**\n * Indicates if the filter dropdown is open\n */\n open = false;\n\n /**\n * We need the actual input element to automatically focus on it\n */\n @ViewChild('input') input: ElementRef;\n\n /**\n * We grab the ClrDatagridFilter we wrap to register this StringFilter to it.\n */\n @ViewChild(ClrDatagridFilter) filterContainer: ClrDatagridFilter<T>;\n\n private initFilterValue: string;\n private subs: Subscription[] = [];\n\n constructor(\n filters: FiltersProvider<T>,\n private domAdapter: DomAdapter,\n public commonStrings: ClrCommonStringsService,\n private smartToggleService: ClrPopoverToggleService,\n private ngZone: NgZone\n ) {\n super(filters);\n }\n\n /**\n * Customizable filter logic based on a search text\n */\n @Input('clrDgStringFilter')\n set customStringFilter(\n value: ClrDatagridStringFilterInterface<T> | RegisteredFilter<T, DatagridStringFilterImpl<T>>\n ) {\n if (value instanceof RegisteredFilter) {\n this.setFilter(value);\n } else {\n this.setFilter(new DatagridStringFilterImpl(value));\n }\n if (this.initFilterValue) {\n this.value = this.initFilterValue;\n // This initFilterValue should be used only once after the filter registration\n // So deleting this property value to prevent it from being used again\n // if this customStringFilter property is set again\n delete this.initFilterValue;\n }\n }\n\n /**\n * Common setter for the input value\n */\n @Input('clrFilterValue')\n get value() {\n return this.filter.value;\n }\n set value(value: string) {\n if (this.filter && typeof value === 'string') {\n if (!value) {\n value = '';\n }\n if (value !== this.filter.value) {\n this.filter.value = value;\n this.filterValueChange.emit(value);\n }\n } else {\n this.initFilterValue = value;\n }\n }\n\n get placeholderValue() {\n return this.placeholder || this.commonStrings.keys.filterItems;\n }\n\n ngAfterViewInit() {\n this.subs.push(\n this.smartToggleService.openChange.subscribe(openChange => {\n this.open = openChange;\n // Note: this is being run outside of the Angular zone because `element.focus()` doesn't require\n // running change detection.\n this.ngZone.runOutsideAngular(() => {\n // The animation frame in used because when this executes, the input isn't displayed.\n // Note: `element.focus()` causes re-layout and this may lead to frame drop on slower devices.\n // `setTimeout` is a macrotask and macrotasks are executed within the current rendering frame.\n // Animation tasks are executed within the next rendering frame.\n requestAnimationFrame(() => {\n this.domAdapter.focus(this.input.nativeElement);\n });\n });\n })\n );\n }\n\n override ngOnDestroy(): void {\n super.ngOnDestroy();\n this.subs.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { WillyWonka } from '../../../utils/chocolate/willy-wonka';\n\n@Directive({\n selector: 'clr-datagrid',\n})\nexport class DatagridWillyWonka extends WillyWonka {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class RowActionService {\n private actionableCount = 0;\n\n /**\n * false means no rows with action\n */\n get hasActionableRow(): boolean {\n return this.actionableCount > 0;\n }\n\n register() {\n this.actionableCount++;\n }\n\n unregister() {\n this.actionableCount--;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';\nimport { RowActionService } from '../providers/row-action-service';\nimport { DatagridWillyWonka } from './datagrid-willy-wonka';\n\n@Directive({\n selector: 'clr-datagrid, clr-dg-row',\n})\nexport class ActionableOompaLoompa extends OompaLoompa {\n private rowActions: RowActionService;\n\n constructor(cdr: ChangeDetectorRef, @Optional() willyWonka: DatagridWillyWonka, rowActions: RowActionService) {\n if (!willyWonka) {\n throw new Error('clr-dg-row should only be used inside of a clr-datagrid');\n }\n super(cdr, willyWonka);\n this.rowActions = rowActions;\n }\n\n get flavor() {\n return this.rowActions.hasActionableRow;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, PLATFORM_ID } from '@angular/core';\n\nimport { Keys } from '../utils/enums/keys.enum';\nimport { normalizeKey } from '../utils/focus/key-focus/util';\n\nexport interface Closable {\n close(): void;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class ModalStackService {\n private readonly modalStack: Closable[] = [];\n private readonly keyUpEventListener = this.onKeyUp.bind(this);\n\n constructor(@Inject(PLATFORM_ID) private readonly platformId: unknown) {}\n\n trackModalOpen(openedModal: Closable) {\n if (this.modalStack.includes(openedModal) === false) {\n this.modalStack.unshift(openedModal);\n }\n\n if (isPlatformBrowser(this.platformId)) {\n document.body.addEventListener('keyup', this.keyUpEventListener);\n }\n }\n\n trackModalClose(closedModal: Closable) {\n const closedModalIndex = this.modalStack.indexOf(closedModal);\n\n if (closedModalIndex > -1) {\n this.modalStack.splice(closedModalIndex, 1);\n }\n\n if (this.modalStack.length === 0 && isPlatformBrowser(this.platformId)) {\n document.body.removeEventListener('keyup', this.keyUpEventListener);\n }\n }\n\n private onKeyUp(event: KeyboardEvent) {\n if (this.modalStack.length && normalizeKey(event.key) === Keys.Escape) {\n // We blur the active element because escaping with an input element in focus could cause\n // an ExpressionChangedAfterItHasBeenCheckedError for the touched state. (CDE-1662)\n (document.activeElement as HTMLElement).blur();\n\n this.modalStack[0].close();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\n\nimport { ModalStackService } from '../../../modal/modal-stack.service';\n\n@Injectable()\nexport class DetailService {\n id: string;\n\n private toggleState = false;\n private cache: any;\n private button: HTMLButtonElement;\n private _enabled = false;\n private _state = new BehaviorSubject<boolean | null>(this.toggleState);\n\n constructor(private readonly modalStackService: ModalStackService) {}\n\n get enabled(): boolean {\n return this._enabled;\n }\n set enabled(state: boolean) {\n this._enabled = state;\n }\n\n get state() {\n return this.cache;\n }\n\n get stateChange(): Observable<boolean | null> {\n return this._state.asObservable();\n }\n\n get isOpen() {\n return this.toggleState === true;\n }\n\n open(item: any, button?: HTMLButtonElement) {\n this.cache = item;\n this.button = button;\n this.toggleState = true;\n this._state.next(this.toggleState);\n this.modalStackService.trackModalOpen(this);\n }\n\n close() {\n this.toggleState = false;\n this._state.next(this.toggleState);\n this.modalStackService.trackModalClose(this);\n if (this.button) {\n this.button.focus();\n this.button = null;\n }\n }\n\n toggle(item: any, button?: HTMLButtonElement) {\n if (this.isRowOpen(item) || !item) {\n this.close();\n } else {\n this.open(item, button);\n }\n }\n\n isRowOpen(item: any) {\n return !!(this.toggleState && this.cache === item);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { DetailService } from './detail.service';\n\n@Injectable()\nexport class ExpandableRowsCount {\n private expandableCount = 0;\n\n constructor(private detailService: DetailService) {}\n\n /**\n * false means no rows with action\n * check if details are on, and disable rows entirely\n */\n get hasExpandableRow(): boolean {\n return !this.detailService.enabled && this.expandableCount > 0;\n }\n\n register() {\n this.expandableCount++;\n }\n\n unregister() {\n this.expandableCount--;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';\nimport { ExpandableRowsCount } from '../providers/global-expandable-rows';\nimport { DatagridWillyWonka } from './datagrid-willy-wonka';\n\n@Directive({\n selector: 'clr-datagrid, clr-dg-row',\n})\nexport class ExpandableOompaLoompa extends OompaLoompa {\n private expandableCount: ExpandableRowsCount;\n\n constructor(\n cdr: ChangeDetectorRef,\n @Optional() willyWonka: DatagridWillyWonka,\n expandableCount: ExpandableRowsCount\n ) {\n if (!willyWonka) {\n throw new Error('clr-dg-row should only be used inside of a clr-datagrid');\n }\n super(cdr, willyWonka);\n this.expandableCount = expandableCount;\n }\n\n get flavor() {\n return this.expandableCount.hasExpandableRow;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrDatagridComparatorInterface } from '../../interfaces/comparator.interface';\nimport { NestedProperty } from '../nested-property';\n\nexport class DatagridPropertyComparator<T = any> implements ClrDatagridComparatorInterface<T> {\n private nestedProp: NestedProperty<T>;\n\n constructor(public prop: string) {\n this.nestedProp = new NestedProperty(prop);\n }\n\n compare(a: T, b: T): number {\n let propA = this.nestedProp.getPropValue(a);\n let propB = this.nestedProp.getPropValue(b);\n\n if (typeof propA === 'string') {\n propA = propA.toLowerCase();\n }\n\n if (typeof propB === 'string') {\n propB = propB.toLowerCase();\n }\n\n if (typeof propA === 'undefined' || propA === null) {\n if (typeof propB === 'undefined' || propB === null) {\n return 0;\n } else {\n return 1;\n }\n } else {\n if (typeof propB === 'undefined' || propB === null) {\n return -1;\n } else if (propA < propB) {\n return -1;\n } else if (propA > propB) {\n return 1;\n } else {\n return 0;\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/**\n * Enumeration representing the sorting order of a datagrid column. It is a constant Enum,\n * i.e. each value needs to be treated as a `number`, starting at index 0.\n *\n * @export\n * @enum {number}\n */\nexport enum ClrDatagridSortOrder {\n UNSORTED = 0,\n ASC = 1,\n DESC = -1,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, EmbeddedViewRef, OnDestroy, TemplateRef, ViewChild } from '@angular/core';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\n\n@Component({\n selector: 'dg-wrapped-column',\n template: `\n <ng-template #columnPortal>\n <ng-content></ng-content>\n </ng-template>\n `,\n})\nexport class WrappedColumn implements DynamicWrapper, AfterViewInit, OnDestroy {\n _dynamic = false;\n\n @ViewChild('columnPortal') templateRef: TemplateRef<void>;\n columnView: EmbeddedViewRef<void>; // the columns projected view (in memory)\n\n ngAfterViewInit() {\n // Create the cells view in memory, not the DOM.\n this.columnView = this.templateRef.createEmbeddedView(null);\n }\n\n ngOnDestroy() {\n this.columnView.destroy();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { ClrDatagridComparatorInterface } from '../interfaces/comparator.interface';\nimport { StateDebouncer } from './state-debouncer.provider';\n\n@Injectable()\nexport class Sort<T = any> {\n /**\n * Currently active comparator\n */\n private _comparator: ClrDatagridComparatorInterface<T>;\n\n /**\n * Ascending order if false, descending if true\n */\n private _reverse = false;\n\n /**\n * The Observable that lets other classes subscribe to sort changes\n */\n private _change = new Subject<Sort<T>>();\n\n constructor(private stateDebouncer: StateDebouncer) {}\n\n get comparator(): ClrDatagridComparatorInterface<T> {\n return this._comparator;\n }\n set comparator(value: ClrDatagridComparatorInterface<T>) {\n this.stateDebouncer.changeStart();\n this._comparator = value;\n this.emitChange();\n this.stateDebouncer.changeDone();\n }\n\n get reverse(): boolean {\n return this._reverse;\n }\n set reverse(value: boolean) {\n this.stateDebouncer.changeStart();\n this._reverse = value;\n this.emitChange();\n this.stateDebouncer.changeDone();\n }\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<Sort<T>> {\n return this._change.asObservable();\n }\n\n /**\n * Sets a comparator as the current one, or toggles reverse if the comparator is already used. The\n * optional forceReverse input parameter allows to override that toggling behavior by sorting in\n * reverse order if `true`.\n *\n * @memberof Sort\n */\n toggle(sortBy: ClrDatagridComparatorInterface<T>, forceReverse?: boolean) {\n this.stateDebouncer.changeStart();\n // We modify private properties directly, to batch the change event\n if (this.comparator === sortBy) {\n this._reverse = typeof forceReverse !== 'undefined' ? forceReverse || !this._reverse : !this._reverse;\n } else {\n this._comparator = sortBy;\n this._reverse = typeof forceReverse !== 'undefined' ? forceReverse : false;\n }\n this.emitChange();\n this.stateDebouncer.changeDone();\n }\n\n /**\n * Clears the current sorting order\n */\n clear() {\n this.comparator = null;\n }\n\n /**\n * Compares two objects according to the current comparator\n */\n compare(a: T, b: T): number {\n return (this.reverse ? -1 : 1) * this.comparator.compare(a, b);\n }\n\n private emitChange() {\n this._change.next(this);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum DatagridRenderStep {\n ALIGN_COLUMNS,\n CALCULATE_MODE_ON,\n CALCULATE_MODE_OFF,\n CLEAR_WIDTHS, // Note this is listened to by both cells and columns\n COMPUTE_COLUMN_WIDTHS,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { DatagridRenderStep } from '../enums/render-step.enum';\n\n@Injectable()\nexport class DatagridRenderOrganizer {\n protected _renderStep = new Subject<DatagridRenderStep>();\n\n private alreadySized = false;\n\n get renderStep(): Observable<DatagridRenderStep> {\n return this._renderStep.asObservable();\n }\n\n filterRenderSteps(step: DatagridRenderStep) {\n return this.renderStep.pipe(filter(testStep => step === testStep));\n }\n\n resize() {\n this._renderStep.next(DatagridRenderStep.CALCULATE_MODE_ON);\n if (this.alreadySized) {\n this._renderStep.next(DatagridRenderStep.CLEAR_WIDTHS);\n }\n this._renderStep.next(DatagridRenderStep.COMPUTE_COLUMN_WIDTHS);\n this._renderStep.next(DatagridRenderStep.ALIGN_COLUMNS);\n this.alreadySized = true;\n this._renderStep.next(DatagridRenderStep.CALCULATE_MODE_OFF);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ElementRef, Injectable } from '@angular/core';\n\nimport { DomAdapter } from '../../../utils/dom-adapter/dom-adapter';\nimport { DatagridRenderOrganizer } from '../render/render-organizer';\n\nconst MIN_COLUMN_WIDTH = 96;\n\n// This service allows DatagridHeaderRenderer and ClrDatagridColumnSeparator\n// to share column resize data with each other.\n\n@Injectable()\nexport class ColumnResizerService {\n // is it within the maximum resize range to the left\n isWithinMaxResizeRange: boolean;\n\n private widthBeforeResize: number;\n private _resizedBy = 0;\n\n constructor(private el: ElementRef, private domAdapter: DomAdapter, private organizer: DatagridRenderOrganizer) {}\n\n get resizedBy() {\n return this._resizedBy;\n }\n\n get minColumnWidth() {\n return this.domAdapter.minWidth(this.el.nativeElement) || MIN_COLUMN_WIDTH;\n }\n\n get maxResizeRange() {\n return this.widthBeforeResize - this.minColumnWidth;\n }\n\n get widthAfterResize(): number {\n return this.widthBeforeResize + this._resizedBy;\n }\n\n startResize(): void {\n this._resizedBy = 0;\n this.isWithinMaxResizeRange = true;\n this.widthBeforeResize = this.domAdapter.clientRect(this.el.nativeElement).width;\n }\n\n endResize(): void {\n this.organizer.resize();\n }\n\n calculateResize(resizedBy: number): void {\n // calculates the resize amount within the allowed range\n if (resizedBy < -this.maxResizeRange) {\n this._resizedBy = -this.maxResizeRange;\n this.isWithinMaxResizeRange = false;\n } else {\n this._resizedBy = resizedBy;\n this.isWithinMaxResizeRange = true;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { ElementRef, Inject, Injectable, PLATFORM_ID } from '@angular/core';\n\n/**\n * @description\n * Internal datagrid service that holds a reference to the clr-dg-table element and exposes a method to get height.\n */\n@Injectable()\nexport class TableSizeService {\n private _tableRef: HTMLElement;\n\n constructor(@Inject(PLATFORM_ID) private platformId: any) {}\n\n get tableRef(): HTMLElement {\n return this._tableRef;\n }\n set tableRef(element: HTMLElement) {\n this._tableRef = element;\n }\n\n set table(table: ElementRef) {\n if (isPlatformBrowser(this.platformId) && table.nativeElement) {\n this.tableRef = table.nativeElement.querySelector('.datagrid-table');\n }\n }\n\n // Used when resizing columns to show the column border being dragged.\n getColumnDragHeight(): string {\n if (!this.tableRef) {\n return null;\n }\n return `${this.tableRef.clientHeight}px`;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport { AfterViewInit, Component, ElementRef, Inject, NgZone, OnDestroy, Renderer2, ViewChild } from '@angular/core';\n\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { normalizeKey } from '../../utils/focus/key-focus/util';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ColumnResizerService } from './providers/column-resizer.service';\nimport { TableSizeService } from './providers/table-size.service';\n\n// Default resize length on each keyboard move event\nconst KEYBOARD_RESIZE_LENGTH = 12;\n\n@Component({\n selector: 'clr-dg-column-separator',\n template: `\n <button\n type=\"button\"\n class=\"datagrid-column-handle\"\n [attr.aria-label]=\"commonString.keys.columnSeparatorAriaLabel\"\n [attr.aria-describedby]=\"descriptionId\"\n cdkDrag\n cdkDragLockAxis=\"x\"\n (cdkDragStarted)=\"showTracker()\"\n (cdkDragMoved)=\"moveTracker($event.distance.x)\"\n (cdkDragEnded)=\"hideTracker(); $event.source._dragRef.reset()\"\n #columnHandle\n ></button>\n <span class=\"clr-sr-only\" [attr.id]=\"descriptionId\">\n {{ commonString.keys.columnSeparatorDescription }}\n </span>\n <div class=\"datagrid-column-resize-tracker\" #resizeTracker></div>\n `,\n host: {\n '[class.datagrid-column-separator]': 'true',\n },\n})\nexport class ClrDatagridColumnSeparator implements AfterViewInit, OnDestroy {\n columnSeparatorId = uniqueIdFactory();\n\n private resizeStartedOnKeyDown = false;\n private isWithinMaxResizeRange: boolean;\n private unlisteners: (() => void)[] = [];\n\n @ViewChild('resizeTracker') private resizeTrackerRef: ElementRef;\n @ViewChild('columnHandle') private columnHandleRef: ElementRef;\n\n constructor(\n private columnResizerService: ColumnResizerService,\n private renderer: Renderer2,\n private ngZone: NgZone,\n private tableSizeService: TableSizeService,\n public commonString: ClrCommonStringsService,\n @Inject(DOCUMENT) private document: any\n ) {}\n\n get descriptionId(): string {\n return `${this.columnSeparatorId}-aria-describedby`;\n }\n\n private get resizeTrackerEl() {\n return this.resizeTrackerRef.nativeElement;\n }\n\n private get columnHandleEl() {\n return this.columnHandleRef.nativeElement;\n }\n\n ngAfterViewInit() {\n this.ngZone.runOutsideAngular(() => {\n this.unlisteners.push(\n this.renderer.listen(this.columnHandleEl, 'keydown', event => {\n this.showTrackerOnFirstKeyDown(event);\n this.moveTrackerOnKeyDown(event);\n })\n );\n this.unlisteners.push(\n this.renderer.listen(this.columnHandleEl, 'keyup', event => {\n this.hideTrackerOnKeyUp(event);\n })\n );\n });\n }\n\n ngOnDestroy() {\n this.unlisteners.forEach(unlistener => unlistener());\n }\n\n showTracker(): void {\n this.columnResizerService.startResize();\n const tableHeight = this.tableSizeService.getColumnDragHeight();\n this.renderer.setStyle(this.resizeTrackerEl, 'height', tableHeight);\n this.renderer.setStyle(this.resizeTrackerEl, 'display', 'block');\n }\n\n moveTracker(movedBy: number): void {\n this.columnResizerService.calculateResize(movedBy);\n this.renderer.setStyle(this.resizeTrackerEl, 'transform', `translateX(${this.columnResizerService.resizedBy}px)`);\n this.renderer.setStyle(this.document.body, 'cursor', 'col-resize');\n this.redFlagTracker();\n }\n\n hideTracker(): void {\n this.columnResizerService.endResize();\n this.renderer.setStyle(this.resizeTrackerEl, 'display', 'none');\n this.renderer.setStyle(this.resizeTrackerEl, 'transform', `translateX(0px)`);\n this.renderer.setStyle(this.columnHandleEl, 'transform', `translateX(0px)`);\n this.renderer.setStyle(this.document.body, 'cursor', 'auto');\n }\n\n private showTrackerOnFirstKeyDown(event: KeyboardEvent): void {\n if (!this.resizeStartedOnKeyDown && (this.isArrowLeftKeyEvent(event) || this.isArrowRightKeyEvent(event))) {\n this.resizeStartedOnKeyDown = true;\n this.renderer.addClass(this.resizeTrackerEl, 'on-arrow-key-resize');\n this.showTracker();\n }\n }\n\n private moveTrackerOnKeyDown(event: KeyboardEvent): void {\n if (this.isArrowLeftKeyEvent(event)) {\n event.stopPropagation();\n this.moveTracker(this.columnResizerService.resizedBy - KEYBOARD_RESIZE_LENGTH);\n } else if (this.isArrowRightKeyEvent(event)) {\n event.stopPropagation();\n this.moveTracker(this.columnResizerService.resizedBy + KEYBOARD_RESIZE_LENGTH);\n }\n }\n\n private hideTrackerOnKeyUp(event: KeyboardEvent): void {\n if (this.resizeStartedOnKeyDown && (this.isArrowLeftKeyEvent(event) || this.isArrowRightKeyEvent(event))) {\n this.resizeStartedOnKeyDown = false;\n this.renderer.removeClass(this.resizeTrackerEl, 'on-arrow-key-resize');\n this.hideTracker();\n this.columnHandleEl.focus();\n }\n }\n\n private redFlagTracker(): void {\n if (this.isWithinMaxResizeRange !== this.columnResizerService.isWithinMaxResizeRange) {\n this.isWithinMaxResizeRange = this.columnResizerService.isWithinMaxResizeRange;\n if (!this.isWithinMaxResizeRange) {\n this.renderer.addClass(this.resizeTrackerEl, 'exceeded-max');\n } else {\n this.renderer.removeClass(this.resizeTrackerEl, 'exceeded-max');\n }\n }\n }\n\n private isArrowLeftKeyEvent(event: KeyboardEvent) {\n return normalizeKey(event.key) === Keys.ArrowLeft;\n }\n\n private isArrowRightKeyEvent(event: KeyboardEvent) {\n return normalizeKey(event.key) === Keys.ArrowRight;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChild,\n EventEmitter,\n Injector,\n Input,\n OnChanges,\n OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { HostWrapper } from '../../utils/host-wrapping/host-wrapper';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { DatagridPropertyComparator } from './built-in/comparators/datagrid-property-comparator';\nimport { DatagridNumericFilterImpl } from './built-in/filters/datagrid-numeric-filter-impl';\nimport { DatagridPropertyNumericFilter } from './built-in/filters/datagrid-property-numeric-filter';\nimport { DatagridPropertyStringFilter } from './built-in/filters/datagrid-property-string-filter';\nimport { DatagridStringFilterImpl } from './built-in/filters/datagrid-string-filter-impl';\nimport { ClrDatagridSortOrder } from './enums/sort-order.enum';\nimport { ClrDatagridComparatorInterface } from './interfaces/comparator.interface';\nimport { ClrDatagridFilterInterface } from './interfaces/filter.interface';\nimport { CustomFilter } from './providers/custom-filter';\nimport { DetailService } from './providers/detail.service';\nimport { FiltersProvider } from './providers/filters';\nimport { Sort } from './providers/sort';\nimport { DatagridFilterRegistrar } from './utils/datagrid-filter-registrar';\nimport { WrappedColumn } from './wrapped-column';\n\n@Component({\n selector: 'clr-dg-column',\n template: `\n <div class=\"datagrid-column-flex\">\n <button class=\"datagrid-column-title\" *ngIf=\"sortable\" (click)=\"sort()\" type=\"button\">\n <ng-container *ngTemplateOutlet=\"columnTitle\"></ng-container>\n <cds-icon\n *ngIf=\"sortDirection\"\n shape=\"arrow\"\n [attr.direction]=\"sortDirection\"\n aria-hidden=\"true\"\n class=\"sort-icon\"\n ></cds-icon>\n </button>\n <!-- I'm really not happy with that select since it's not very scalable -->\n <ng-content select=\"clr-dg-filter, clr-dg-string-filter, clr-dg-numeric-filter\"></ng-content>\n\n <clr-dg-string-filter\n *ngIf=\"field && !customFilter && colType == 'string'\"\n [clrFilterPlaceholder]=\"filterStringPlaceholder\"\n [clrDgStringFilter]=\"registered\"\n [(clrFilterValue)]=\"filterValue\"\n ></clr-dg-string-filter>\n\n <clr-dg-numeric-filter\n *ngIf=\"field && !customFilter && colType == 'number'\"\n [clrFilterMaxPlaceholder]=\"filterNumberMaxPlaceholder\"\n [clrFilterMinPlaceholder]=\"filterNumberMinPlaceholder\"\n [clrDgNumericFilter]=\"registered\"\n [(clrFilterValue)]=\"filterValue\"\n ></clr-dg-numeric-filter>\n\n <ng-template #columnTitle>\n <ng-content></ng-content>\n </ng-template>\n\n <span class=\"datagrid-column-title\" *ngIf=\"!sortable\">\n <ng-container *ngTemplateOutlet=\"columnTitle\"></ng-container>\n </span>\n\n <clr-dg-column-separator *ngIf=\"showSeparator\"></clr-dg-column-separator>\n </div>\n `,\n hostDirectives: [ClrPopoverHostDirective],\n host: {\n '[class.datagrid-column]': 'true',\n '[attr.aria-sort]': 'ariaSort',\n role: 'columnheader',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ClrDatagridColumn<T = any>\n extends DatagridFilterRegistrar<T, ClrDatagridFilterInterface<T>>\n implements OnDestroy, OnInit, OnChanges\n{\n @Input('clrFilterStringPlaceholder') filterStringPlaceholder: string;\n @Input('clrFilterNumberMaxPlaceholder') filterNumberMaxPlaceholder: string;\n @Input('clrFilterNumberMinPlaceholder') filterNumberMinPlaceholder: string;\n\n @Output('clrDgSortOrderChange') sortOrderChange = new EventEmitter<ClrDatagridSortOrder>();\n @Output('clrFilterValueChange') filterValueChange = new EventEmitter();\n\n showSeparator = true;\n\n /**\n * A custom filter for this column that can be provided in the projected content\n */\n customFilter = false;\n\n /*\n * What type is this column? This defaults to STRING, but can also be\n * set to NUMBER. Unsupported types default to STRING. Users can set it\n * via the [clrDgColType] input by setting it to 'string' or 'number'.\n */\n private _colType: 'string' | 'number' = 'string';\n\n /*\n * Simple object property shortcut, activates both sorting and filtering\n * based on native comparison of the specified property on the items.\n */\n private _field: string;\n\n /**\n * ClrDatagridComparatorInterface to use when sorting the column\n */\n private _sortBy: ClrDatagridComparatorInterface<T>;\n\n /**\n * Indicates how the column is currently sorted\n */\n private _sortOrder: ClrDatagridSortOrder = ClrDatagridSortOrder.UNSORTED;\n\n private _sortDirection: 'up' | 'down' | null;\n\n // This property holds filter value temporarily while this.filter property is not yet registered\n // When this.filter is registered, this property value would be used update this.filter.value\n //\n private initFilterValue: string | [number, number];\n\n private wrappedInjector: Injector;\n\n /**\n * Subscription to the sort service changes\n */\n private subscriptions: Subscription[] = [];\n\n constructor(\n private _sort: Sort<T>,\n filters: FiltersProvider<T>,\n private vcr: ViewContainerRef,\n private detailService: DetailService,\n private changeDetectorRef: ChangeDetectorRef\n ) {\n super(filters);\n this.subscriptions.push(this.listenForSortingChanges());\n this.subscriptions.push(this.listenForDetailPaneChanges());\n }\n\n // TODO: We might want to make this an enum in the future\n @Input('clrDgColType')\n get colType() {\n return this._colType;\n }\n set colType(value: 'string' | 'number') {\n this._colType = value;\n }\n\n @Input('clrDgField')\n get field() {\n return this._field;\n }\n set field(field: string) {\n if (typeof field === 'string') {\n this._field = field;\n\n if (!this._sortBy) {\n this._sortBy = new DatagridPropertyComparator(field);\n }\n }\n }\n\n @Input('clrDgSortBy')\n get sortBy() {\n return this._sortBy;\n }\n set sortBy(comparator: ClrDatagridComparatorInterface<T> | string) {\n if (typeof comparator === 'string') {\n this._sortBy = new DatagridPropertyComparator(comparator);\n } else {\n if (comparator) {\n this._sortBy = comparator;\n } else {\n if (this.field) {\n this._sortBy = new DatagridPropertyComparator(this.field);\n } else {\n delete this._sortBy;\n }\n }\n }\n }\n\n @Input('clrDgSortOrder')\n get sortOrder() {\n return this._sortOrder;\n }\n set sortOrder(value: ClrDatagridSortOrder) {\n if (typeof value === 'undefined') {\n return;\n }\n\n // only if the incoming order is different from the current one\n if (this._sortOrder === value) {\n return;\n }\n\n switch (value) {\n // the Unsorted case happens when the current state is either Asc or Desc\n default:\n case ClrDatagridSortOrder.UNSORTED:\n this._sort.clear();\n break;\n case ClrDatagridSortOrder.ASC:\n this.sort(false);\n break;\n case ClrDatagridSortOrder.DESC:\n this.sort(true);\n break;\n }\n }\n\n @Input('clrFilterValue')\n set updateFilterValue(newValue: string | [number, number]) {\n if (this.filter) {\n if (this.filter instanceof DatagridStringFilterImpl) {\n if (!newValue || typeof newValue !== 'string') {\n newValue = '';\n }\n if (newValue !== this.filter.value) {\n this.filter.value = newValue;\n }\n } else if (this.filter instanceof DatagridNumericFilterImpl) {\n if (!newValue || !(newValue instanceof Array)) {\n newValue = [null, null];\n }\n if (newValue.length === 2 && (newValue[0] !== this.filter.value[0] || newValue[1] !== this.filter.value[1])) {\n this.filter.value = newValue;\n }\n }\n } else {\n this.initFilterValue = newValue;\n }\n }\n\n @ContentChild(CustomFilter)\n set projectedFilter(custom: any) {\n if (custom) {\n this.deleteFilter();\n this.customFilter = true;\n }\n }\n\n /**\n * Indicates if the column is sortable\n */\n get sortable(): boolean {\n return !!this._sortBy;\n }\n\n get ariaSort() {\n switch (this._sortOrder) {\n default:\n case ClrDatagridSortOrder.UNSORTED:\n return 'none';\n case ClrDatagridSortOrder.ASC:\n return 'ascending';\n case ClrDatagridSortOrder.DESC:\n return 'descending';\n }\n }\n\n get sortDirection(): 'up' | 'down' | null {\n return this._sortDirection;\n }\n\n /**\n * @NOTE type `any` here is to let us pass templateStrictMode, because in our code we try to handle\n * two types of filters String and Number with the same variable but both of them work with different\n * format we got an error for casting. We could not cast anything inside the template so to not mess the\n * casting, the last type is set to `any`\n *\n * Orignial types: string | [number, number]\n */\n get filterValue() {\n if (this.filter instanceof DatagridStringFilterImpl || this.filter instanceof DatagridNumericFilterImpl) {\n return this.filter.value;\n }\n return null;\n }\n set filterValue(newValue: any) {\n if (this.filter instanceof DatagridStringFilterImpl || this.filter instanceof DatagridNumericFilterImpl) {\n this.updateFilterValue = newValue;\n this.filterValueChange.emit(this.filter.value);\n }\n }\n\n get _view() {\n return this.wrappedInjector.get(WrappedColumn, this.vcr).columnView;\n }\n\n ngOnInit() {\n this.wrappedInjector = new HostWrapper(WrappedColumn, this.vcr);\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (\n changes.colType &&\n changes.colType.currentValue &&\n changes.colType.currentValue !== changes.colType.previousValue\n ) {\n if (!this.customFilter && !this.filter && this.colType && this.field) {\n this.setupDefaultFilter(this.field, this.colType);\n }\n }\n if (changes.field && changes.field.currentValue && changes.field.currentValue !== changes.field.previousValue) {\n if (!this.customFilter && this.colType) {\n this.setupDefaultFilter(this.field, this.colType);\n }\n }\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n /**\n * Sorts the datagrid based on this column\n */\n sort(reverse?: boolean) {\n if (!this.sortable) {\n return;\n }\n\n this._sort.toggle(this._sortBy, reverse);\n\n // setting the private variable to not retrigger the setter logic\n this._sortOrder = this._sort.reverse ? ClrDatagridSortOrder.DESC : ClrDatagridSortOrder.ASC;\n // Sets the correct icon for current sort order\n this._sortDirection = this._sortOrder === ClrDatagridSortOrder.DESC ? 'down' : 'up';\n this.sortOrderChange.emit(this._sortOrder);\n }\n\n private listenForDetailPaneChanges() {\n return this.detailService.stateChange.subscribe(state => {\n if (this.showSeparator !== !state) {\n this.showSeparator = !state;\n // Have to manually change because of OnPush\n this.changeDetectorRef.markForCheck();\n }\n });\n }\n\n private listenForSortingChanges() {\n return this._sort.change.subscribe(sort => {\n // Need to manually mark the component to be checked\n // for both activating and deactivating sorting\n this.changeDetectorRef.markForCheck();\n // We're only listening to make sure we emit an event when the column goes from sorted to unsorted\n if (this.sortOrder !== ClrDatagridSortOrder.UNSORTED && sort.comparator !== this._sortBy) {\n this._sortOrder = ClrDatagridSortOrder.UNSORTED;\n this.sortOrderChange.emit(this._sortOrder);\n this._sortDirection = null;\n }\n });\n }\n\n private setupDefaultFilter(field: string, colType: 'string' | 'number') {\n if (colType === 'number') {\n this.setFilter(new DatagridNumericFilterImpl(new DatagridPropertyNumericFilter(field)));\n } else if (colType === 'string') {\n this.setFilter(new DatagridStringFilterImpl(new DatagridPropertyStringFilter(field)));\n }\n if (this.filter && this.initFilterValue) {\n this.updateFilterValue = this.initFilterValue;\n // This initFilterValue should be used only once after the filter registration\n // So deleting this property value to prevent it from being used again\n // if this field property is set again\n delete this.initFilterValue;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, TrackByFunction } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\nimport { Subscription } from 'rxjs';\n\nimport { FiltersProvider } from './filters';\nimport { Page } from './page';\nimport { Sort } from './sort';\n\nexport type ClrDatagridItemsTrackByFunction<T> = (item: T) => any;\n\n@Injectable()\nexport class Items<T = any> {\n /**\n * Indicates if the data is currently loading\n */\n loading = false;\n\n /**\n * New tracking function to identify objects. If provided, this will be used instead of `iteratorTrackBy`.\n */\n datagridTrackBy: ClrDatagridItemsTrackByFunction<T>;\n\n /**\n * Subscriptions to the other providers changes.\n */\n private _filtersSub: Subscription;\n private _sortSub: Subscription;\n private _pageSub: Subscription;\n\n /**\n * Whether we should use smart items for this datagrid or let the user handle\n * everything.\n */\n private _smart = false;\n\n /**\n * List of all items in the datagrid\n */\n private _all: T[];\n\n /**\n * Internal temporary step, which we preserve to avoid re-filtering or re-sorting if not necessary\n */\n private _filtered: T[];\n\n /**\n * List of items currently displayed\n */\n private _displayed: T[] = [];\n\n /**\n * The Observable that lets other classes subscribe to items changes\n */\n private _change = new Subject<T[]>();\n\n private _allChanges = new Subject<T[]>();\n\n constructor(private _filters: FiltersProvider<T>, private _sort: Sort<T>, private _page: Page) {}\n\n get smart(): boolean {\n return this._smart;\n }\n\n get all() {\n return this._all;\n }\n set all(items: T[]) {\n this._all = items;\n this.emitAllChanges(items);\n if (this.smart) {\n this._filterItems();\n } else {\n this._displayed = items;\n this.emitChange();\n }\n }\n\n get displayed(): T[] {\n // Ideally we could return an immutable array, but we don't have it in Clarity yet.\n return this._displayed;\n }\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<T[]> {\n return this._change.asObservable();\n }\n\n get allChanges(): Observable<T[]> {\n return this._allChanges.asObservable();\n }\n\n /**\n * Checks if we don't have data to process yet, to abort early operations\n */\n private get uninitialized() {\n return !this._all;\n }\n\n /**\n * Tracking function to identify objects. Default is reference equality.\n *\n * @deprecated in v15 and scheduled for removal in v17 (CDE-71)\n */\n iteratorTrackBy: TrackByFunction<T> = (_index, item) => item;\n\n /**\n * Cleans up our subscriptions to other providers\n */\n destroy() {\n if (this._filtersSub) {\n this._filtersSub.unsubscribe();\n }\n if (this._sortSub) {\n this._sortSub.unsubscribe();\n }\n if (this._pageSub) {\n this._pageSub.unsubscribe();\n }\n }\n\n smartenUp() {\n this._smart = true;\n /*\n * These observers trigger a chain of function: filter -> sort -> paginate\n * An observer up the chain re-triggers all the operations that follow it.\n */\n this._filtersSub = this._filters.change.subscribe(() => this._filterItems());\n this._sortSub = this._sort.change.subscribe(() => {\n // Special case, if the datagrid went from sorted to unsorted, we have to re-filter\n // to get the original order back\n if (!this._sort.comparator) {\n this._filterItems();\n } else {\n this._sortItems();\n }\n });\n this._pageSub = this._page.change.subscribe(() => this._changePage());\n }\n\n /**\n * Manually recompute the list of displayed items\n */\n refresh() {\n if (this.smart) {\n this._filterItems();\n }\n }\n\n canTrackBy(): boolean {\n // all items are needed unless `datagridTrackBy` is set because `iteratorTrackBy` requires the item's index\n return !!this.datagridTrackBy || Array.isArray(this.all);\n }\n\n trackBy(item: T, index?: number) {\n if (this.datagridTrackBy) {\n return this.datagridTrackBy(item);\n } else if (Array.isArray(this.all)) {\n index = index ?? this.all.indexOf(item);\n return this.iteratorTrackBy(index, item);\n } else {\n throw new Error('improper call to Items#trackBy');\n }\n }\n\n private emitChange() {\n this._change.next(this.displayed);\n }\n\n private emitAllChanges(items: T[]): void {\n this._allChanges.next(items);\n }\n\n /**\n * FiltersProvider items from the raw list\n */\n private _filterItems() {\n if (this.uninitialized) {\n return;\n }\n if (this._filters.hasActiveFilters()) {\n this._filtered = this._all.filter(item => this._filters.accepts(item));\n } else {\n // Work on a shallow copy of the array, to not modify the user's model\n this._filtered = this._all.slice();\n }\n this._page.totalItems = this._filtered.length;\n this._sortItems();\n }\n\n /**\n * Sorts items in the filtered list\n */\n private _sortItems() {\n if (this.uninitialized) {\n return;\n }\n if (this._sort.comparator) {\n this._filtered.sort((a, b) => this._sort.compare(a, b));\n }\n this._changePage();\n }\n\n /**\n * Extracts the current page from the sorted list\n */\n private _changePage() {\n // If we know we have pagination but the page size hasn't been set yet, we wait for it.\n if (this.uninitialized || (this._page.activated && this._page.size === 0)) {\n return;\n }\n if (this._page.size > 0) {\n this._displayed = this._filtered.slice(this._page.firstItem, this._page.lastItem + 1);\n } else {\n this._displayed = this._filtered;\n }\n this.emitChange();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgForOf, NgForOfContext } from '@angular/common';\nimport {\n Directive,\n DoCheck,\n Input,\n IterableDiffer,\n IterableDiffers,\n OnDestroy,\n TemplateRef,\n TrackByFunction,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { Items } from './providers/items';\n\n@Directive({\n selector: '[clrDgItems][clrDgItemsOf]',\n})\nexport class ClrDatagridItems<T> implements DoCheck, OnDestroy {\n private iterableProxy: NgForOf<T>;\n private _rawItems: T[];\n private differ: IterableDiffer<T> | null = null;\n private subscriptions: Subscription[] = [];\n\n constructor(\n public template: TemplateRef<NgForOfContext<T>>,\n private differs: IterableDiffers,\n private items: Items,\n private vcr: ViewContainerRef\n ) {\n items.smartenUp();\n this.iterableProxy = new NgForOf<T>(this.vcr, this.template, this.differs);\n this.subscriptions.push(\n items.change.subscribe(newItems => {\n this.iterableProxy.ngForOf = newItems;\n this.iterableProxy.ngDoCheck();\n })\n );\n }\n\n @Input('clrDgItemsOf')\n set rawItems(items: T[]) {\n this._rawItems = items ? items : []; // local copy for ngOnChange diffing\n }\n\n @Input('clrDgItemsTrackBy')\n set trackBy(value: TrackByFunction<T>) {\n this.items.iteratorTrackBy = value;\n this.iterableProxy.ngForTrackBy = value;\n }\n\n /**\n * Asserts the correct type of the template context that the directive will render.\n * See https://angular.io/guide/structural-directives#typing-the-directives-context\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(_dir: ClrDatagridItems<T>, _ctx: unknown): _ctx is NgForOfContext<T> {\n return true;\n }\n\n ngDoCheck() {\n if (!this.differ) {\n this.differ = this.differs.find(this._rawItems).create(this.iterableProxy.ngForTrackBy);\n }\n if (this.differ) {\n const changes = this.differ.diff(this._rawItems);\n if (changes) {\n // TODO: not very efficient right now,\n // but premature optimization is the root of all evil.\n this.items.all = this._rawItems;\n }\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { Items } from './providers/items';\n\n@Component({\n selector: 'clr-dg-placeholder',\n template: `\n <div class=\"datagrid-placeholder\" [class.datagrid-empty]=\"emptyDatagrid\" role=\"row\">\n <div class=\"datagrid-placeholder-image\" *ngIf=\"emptyDatagrid\"></div>\n <span role=\"gridcell\" class=\"datagrid-placeholder-content\"><ng-content *ngIf=\"emptyDatagrid\"></ng-content></span>\n </div>\n `,\n host: { '[class.datagrid-placeholder-container]': 'true' },\n})\nexport class ClrDatagridPlaceholder<T = any> {\n constructor(private items: Items<T>) {}\n\n /**\n * Tests if the datagrid is empty, meaning it doesn't contain any items\n */\n get emptyDatagrid() {\n return !this.items.loading && (!this.items.displayed || this.items.displayed.length === 0);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class SignpostFocusManager {\n private _triggerEl: HTMLElement;\n\n set triggerEl(value: HTMLElement) {\n this._triggerEl = value;\n }\n\n focusTrigger() {\n if (this._triggerEl) {\n this._triggerEl.focus();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class SignpostIdService {\n private _id = new Subject<string>();\n\n get id(): Observable<string> {\n return this._id.asObservable();\n }\n\n setId(id: string) {\n this._id.next(id);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, HostListener, Inject, OnDestroy, PLATFORM_ID } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { SignpostFocusManager } from './providers/signpost-focus-manager.service';\nimport { SignpostIdService } from './providers/signpost-id.service';\n\n@Directive({\n selector: '[clrSignpostTrigger]',\n host: {\n class: 'signpost-trigger',\n '[attr.aria-expanded]': 'ariaExpanded',\n '[attr.aria-controls]': 'ariaControl',\n '[class.active]': 'isOpen',\n },\n})\n\n/*********\n *\n * @description\n * A Directive added to the ClrSignpost Trigger button that will call the ClrSignpost.toggle() function to hide/show the\n * ClrSignpostContent.\n *\n */\nexport class ClrSignpostTrigger implements OnDestroy {\n ariaExpanded = false;\n ariaControl: string;\n isOpen: boolean;\n\n private document: Document;\n private subscriptions: Subscription[] = [];\n\n constructor(\n private toggleService: ClrPopoverToggleService,\n private el: ElementRef,\n public commonStrings: ClrCommonStringsService,\n private signpostIdService: SignpostIdService,\n private signpostFocusManager: SignpostFocusManager,\n @Inject(DOCUMENT) document: any,\n @Inject(PLATFORM_ID) private platformId: any\n ) {\n this.document = document;\n }\n\n ngOnInit() {\n this.signpostFocusManager.triggerEl = this.el.nativeElement;\n this.subscriptions.push(\n this.toggleService.openChange.subscribe((isOpen: boolean) => {\n this.ariaExpanded = isOpen;\n\n const prevIsOpen = this.isOpen;\n this.isOpen = isOpen;\n\n // openChange fires false on initialization because signpost starts as closed by default\n // but we shouldn't focus on that initial false value\n // we should focus back only if it's closed after being opened\n if (!this.isOpen && prevIsOpen) {\n this.focusOnClose();\n }\n }),\n this.signpostIdService.id.subscribe(idChange => (this.ariaControl = idChange))\n );\n this.addDefaultAriaLabel(this.el.nativeElement);\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((sub: Subscription) => sub.unsubscribe());\n }\n\n /**********\n *\n * @description\n * click handler for the ClrSignpost trigger button used to hide/show ClrSignpostContent.\n */\n @HostListener('click', ['$event'])\n onSignpostTriggerClick(event: Event): void {\n this.toggleService.toggleWithEvent(event);\n }\n\n private addDefaultAriaLabel(el: HTMLElement) {\n if (!el.hasAttribute('aria-label')) {\n el.setAttribute('aria-label', this.commonStrings.keys.signpostToggle);\n }\n }\n\n private focusOnClose() {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n // we have to set the focus back on the trigger only if the focus is reset back to the body element\n // if the focus is on another element, we are not allowed to move that focus back to this trigger again.\n if (!this.isOpen && this.document.activeElement === this.document.body) {\n this.signpostFocusManager.focusTrigger();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { SignpostFocusManager } from './providers/signpost-focus-manager.service';\nimport { SignpostIdService } from './providers/signpost-id.service';\nimport { ClrSignpostTrigger } from './signpost-trigger';\n\n@Component({\n selector: 'clr-signpost',\n template: `\n <ng-container *ngIf=\"!useCustomTrigger\">\n <button type=\"button\" class=\"signpost-action btn btn-small btn-icon btn-link\" clrSignpostTrigger>\n <cds-icon shape=\"info-circle\" [attr.title]=\"commonStrings.keys.info\"></cds-icon>\n </button>\n </ng-container>\n\n <ng-content></ng-content>\n `,\n host: { '[class.signpost]': 'true' },\n providers: [SignpostFocusManager, SignpostIdService],\n hostDirectives: [ClrPopoverHostDirective],\n})\n\n/*********\n *\n * @class ClrSignpost\n *\n * @description\n * Class used to configure and control the state of a ClrSignpost and its associated ClrSignpostContent.\n * It supports the clrPosition with a 'right-middle' default.\n *\n */\nexport class ClrSignpost {\n /**********\n * @property useCustomTrigger\n *\n * @description\n * Flag used to determine if we need to use the default trigger or a user supplied trigger element.\n *\n */\n useCustomTrigger = false;\n\n constructor(public commonStrings: ClrCommonStringsService) {}\n\n /**********\n * @property signPostTrigger\n *\n * @description\n * Uses ContentChild to check for a user supplied element with the ClrSignpostTrigger on it.\n *\n */\n @ContentChild(ClrSignpostTrigger)\n set customTrigger(trigger: ClrSignpostTrigger) {\n this.useCustomTrigger = !!trigger;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, EmbeddedViewRef, OnDestroy, TemplateRef, ViewChild } from '@angular/core';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\n\n@Component({\n selector: 'dg-wrapped-cell',\n template: `\n <ng-template #cellPortal>\n <ng-content></ng-content>\n </ng-template>\n `,\n})\nexport class WrappedCell implements DynamicWrapper, AfterViewInit, OnDestroy {\n _dynamic = false;\n @ViewChild('cellPortal') templateRef: TemplateRef<void>;\n cellView: EmbeddedViewRef<void>; // the cells projected view\n\n ngAfterViewInit() {\n this.cellView = this.templateRef.createEmbeddedView(null);\n }\n\n ngOnDestroy() {\n this.cellView.destroy();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChildren, Injector, OnInit, QueryList, ViewContainerRef } from '@angular/core';\n\nimport { ClrSignpost } from '../../popover/signpost/signpost';\nimport { HostWrapper } from '../../utils/host-wrapping/host-wrapper';\nimport { WrappedCell } from './wrapped-cell';\n\n@Component({\n selector: 'clr-dg-cell',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.datagrid-cell]': 'true',\n '[class.datagrid-signpost-trigger]': 'signpost.length > 0',\n role: 'gridcell',\n },\n})\nexport class ClrDatagridCell implements OnInit {\n /*********\n * @property signpost\n *\n * @description\n * @ContentChild is used to detect the presence of a Signpost in the projected content.\n * On the host, we set the .datagrid-signpost-trigger class on the cell when signpost.length is greater than 0.\n *\n */\n @ContentChildren(ClrSignpost) signpost: QueryList<ClrSignpost>;\n\n private wrappedInjector: Injector;\n\n constructor(private vcr: ViewContainerRef) {}\n\n get _view() {\n return this.wrappedInjector.get(WrappedCell, this.vcr).cellView;\n }\n\n ngOnInit() {\n this.wrappedInjector = new HostWrapper(WrappedCell, this.vcr);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\n\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { ClrLoadingState } from '../../utils/loading/loading';\n\nlet nbRow = 0;\n\n@Injectable()\nexport class DatagridIfExpandService extends IfExpandService {\n expandableId = '';\n\n private _replace = new BehaviorSubject(false);\n private _animate = new Subject<boolean>();\n\n constructor() {\n super();\n nbRow++;\n this.expandableId = 'clr-dg-expandable-row-' + nbRow;\n }\n // due to the es5 spec if the set is overridden on base class the getter must also be overridden\n override get expanded(): boolean {\n return this._expanded;\n }\n override set expanded(value: boolean) {\n value = !!value;\n if (value !== this._expanded) {\n this._expanded = value;\n this._animate.next();\n this._expandChange.next(value);\n }\n }\n\n get replace(): Observable<boolean> {\n return this._replace.asObservable();\n }\n\n get animate(): Observable<boolean> {\n return this._animate.asObservable();\n }\n\n override loadingStateChange(state: ClrLoadingState) {\n super.loadingStateChange(state);\n if (state !== ClrLoadingState.LOADING) {\n this._animate.next();\n }\n }\n\n setReplace(replaceValue: boolean) {\n this._replace.next(replaceValue);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum DatagridDisplayMode {\n DISPLAY,\n CALCULATE,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum SelectionType {\n None,\n Single,\n Multi,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterViewInit, Component, EmbeddedViewRef, OnDestroy, TemplateRef, ViewChild } from '@angular/core';\n\nimport { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';\n\n@Component({\n selector: 'dg-wrapped-row',\n template: `\n <ng-template #rowPortal>\n <ng-content></ng-content>\n </ng-template>\n `,\n})\nexport class WrappedRow implements DynamicWrapper, AfterViewInit, OnDestroy {\n _dynamic = false;\n\n @ViewChild('rowPortal') templateRef: TemplateRef<void>;\n rowView: EmbeddedViewRef<void>; // the rows projected view (in memory)\n\n ngAfterViewInit() {\n // Create the cells view in memory, not the DOM.\n this.rowView = this.templateRef.createEmbeddedView(null);\n }\n\n ngOnDestroy() {\n this.rowView.destroy();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject, Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\nimport { SelectionType } from '../enums/selection-type';\nimport { FiltersProvider } from './filters';\nimport { Items } from './items';\n\nlet nbSelection = 0;\n\n@Injectable()\nexport class Selection<T = any> {\n id: string;\n preserveSelection = false;\n\n /**\n * Last selection, for use in range selection.\n */\n rangeStart: T;\n\n /**\n * Shift key state, for use in range selection.\n */\n shiftPressed = false;\n\n /** @deprecated since 2.0, remove in 3.0 */\n rowSelectionMode = false;\n\n private prevSelectionRefs: T[] = []; // Refs of selected items\n private prevSingleSelectionRef: T; // Ref of single selected item\n private lockedRefs: T[] = []; // Ref of locked items\n private valueCollector = new Subject<T[]>();\n private _selectionType: SelectionType = SelectionType.None;\n\n /**\n * The current selection\n */\n private _current: T[];\n\n /**\n * The current selection in single selection type\n */\n private _currentSingle: T;\n\n /**\n * The Observable that lets other classes subscribe to selection changes\n */\n private _change = new Subject<T[] | T>();\n\n /**\n * Subscriptions to the other providers changes.\n */\n private subscriptions: Subscription[] = [];\n\n constructor(private _items: Items<T>, private _filters: FiltersProvider<T>) {\n this.id = 'clr-dg-selection' + nbSelection++;\n\n this.subscriptions.push(\n this._filters.change.subscribe(() => {\n if (!this._selectable || this.preserveSelection) {\n return;\n }\n this.clearSelection();\n })\n );\n\n this.subscriptions.push(\n this._items.allChanges.subscribe(updatedItems => {\n // Reset the lockedRefs;\n const updateLockedRef: T[] = [];\n\n switch (this.selectionType) {\n case SelectionType.None: {\n break;\n }\n\n case SelectionType.Single: {\n let newSingle: any;\n let selectionUpdated = false;\n\n // if the currentSingle has been set before data was loaded, we look up and save the ref from current data set\n if (this.currentSingle && !this.prevSingleSelectionRef) {\n if (this._items.canTrackBy()) {\n this.prevSingleSelectionRef = this._items.trackBy(this.currentSingle);\n }\n }\n\n updatedItems.forEach((item, index) => {\n const ref = this._items.trackBy(item, index);\n // If one of the updated items is the previously selectedSingle, set it as the new one\n if (this.prevSingleSelectionRef === ref) {\n newSingle = item;\n selectionUpdated = true;\n }\n if (this.lockedRefs.indexOf(ref) > -1) {\n updateLockedRef.push(ref);\n }\n });\n\n // If we're using smart datagrids, we expect all items to be present in the updatedItems array.\n // Therefore, we should delete the currentSingle if it used to be defined but doesn't exist anymore.\n // No explicit \"delete\" is required, since newSingle would be undefined at this point.\n // Marking it as selectionUpdated here will set currentSingle to undefined below in the setTimeout.\n if (this._items.smart && !newSingle) {\n selectionUpdated = true;\n }\n\n // TODO: Discussed this with Eudes and this is fine for now.\n // But we need to figure out a different pattern for the\n // child triggering the parent change detection problem.\n // Using setTimeout for now to fix this.\n setTimeout(() => {\n if (selectionUpdated) {\n this.currentSingle = newSingle;\n }\n }, 0);\n break;\n }\n\n case SelectionType.Multi: {\n let leftOver: any[] = this.current.slice();\n let selectionUpdated = false;\n\n // if the current has been set before data was loaded, we look up and save the ref from current data set\n if (this.current.length > 0 && this.prevSelectionRefs.length !== this.current.length) {\n if (this._items.canTrackBy()) {\n this.prevSelectionRefs = [];\n this.current.forEach(item => {\n this.prevSelectionRefs.push(this._items.trackBy(item));\n });\n }\n }\n\n // Duplicate loop, when the issue is issue#2342 is revisited keep in mind that\n // we need to go over every updated item and check to see if there are valid to be\n // locked or not and update it. When only add items that are found in the lockedRefs back.\n //\n // The both loops below that goes over updatedItems could be combined into one.\n updatedItems.forEach((item, index) => {\n const ref = this._items.trackBy(item, index);\n if (this.lockedRefs.indexOf(ref) > -1) {\n updateLockedRef.push(ref);\n }\n });\n\n // TODO: revisit this when we work on https://github.com/vmware/clarity/issues/2342\n // currently, the selection is cleared when filter is applied, so the logic inside\n // the if statement below results in broken behavior.\n if (leftOver.length > 0) {\n updatedItems.forEach((item, index) => {\n const ref = this._items.trackBy(item, index);\n // Look in current selected refs array if item is selected, and update actual value\n const selectedIndex = this.prevSelectionRefs.indexOf(ref);\n if (selectedIndex > -1) {\n leftOver[selectedIndex] = item;\n selectionUpdated = true;\n }\n });\n\n // Filter out any unmatched items if we're using smart datagrids where we expect all items to be\n // present\n if (this._items.smart) {\n leftOver = leftOver.filter(selected => updatedItems.indexOf(selected) > -1);\n if (this.current.length !== leftOver.length) {\n selectionUpdated = true;\n }\n }\n\n // TODO: Discussed this with Eudes and this is fine for now.\n // But we need to figure out a different pattern for the\n // child triggering the parent change detection problem.\n // Using setTimeout for now to fix this.\n setTimeout(() => {\n if (selectionUpdated) {\n this.current = leftOver;\n }\n }, 0);\n }\n break;\n }\n\n default: {\n break;\n }\n }\n // Sync locked items\n this.lockedRefs = updateLockedRef;\n })\n );\n\n this.subscriptions.push(this.valueCollector.pipe(debounceTime(0)).subscribe(() => this.emitChange()));\n }\n\n get selectionType(): SelectionType {\n return this._selectionType;\n }\n set selectionType(value: SelectionType) {\n if (value === this.selectionType) {\n return;\n }\n this._selectionType = value;\n if (value === SelectionType.None) {\n delete this.current;\n } else {\n this.updateCurrent([], false);\n }\n }\n\n get current(): T[] {\n return this._current;\n }\n set current(value: T[]) {\n this.updateCurrent(value, true);\n }\n\n get currentSingle(): T {\n return this._currentSingle;\n }\n set currentSingle(value: T) {\n if (value === this._currentSingle) {\n return;\n }\n\n this._currentSingle = value;\n if (this._items.canTrackBy() && value) {\n this.prevSingleSelectionRef = this._items.trackBy(value);\n }\n this.emitChange();\n }\n\n // We do not want to expose the Subject itself, but the Observable which is read-only\n get change(): Observable<T[] | T> {\n return this._change.asObservable();\n }\n\n private get _selectable(): boolean {\n return this._selectionType === SelectionType.Multi || this._selectionType === SelectionType.Single;\n }\n\n clearSelection(): void {\n this._current = [];\n this.prevSelectionRefs = [];\n this.prevSingleSelectionRef = null;\n this._currentSingle = null;\n this.emitChange();\n }\n\n /**\n * Cleans up our subscriptions to other providers\n */\n destroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n updateCurrent(value: T[], emit: boolean) {\n this._current = value;\n\n if (emit) {\n this.valueCollector.next(value);\n }\n }\n\n /**\n * Checks if an item is currently selected\n */\n isSelected(item: T): boolean {\n if (this._selectionType === SelectionType.Single) {\n return this.currentSingle === item;\n } else if (this._selectionType === SelectionType.Multi) {\n return this.current.indexOf(item) >= 0;\n }\n return false;\n }\n\n /**\n * Selects or deselects an item\n */\n setSelected(item: T, selected: boolean) {\n const index = this.current ? this.current.indexOf(item) : -1;\n\n switch (this._selectionType) {\n case SelectionType.None:\n break;\n case SelectionType.Single:\n // in single selection, set currentSingle method should be used\n break;\n case SelectionType.Multi:\n if (index >= 0 && !selected) {\n this.deselectItem(index);\n } else if (index < 0 && selected) {\n this.selectItem(item);\n }\n break;\n default:\n break;\n }\n }\n\n /**\n * Checks if all currently displayed items are selected\n */\n isAllSelected(): boolean {\n if (this._selectionType !== SelectionType.Multi || !this._items.displayed) {\n return false;\n }\n // make sure to exclude the locked items from the list when counting\n const displayedItems: T[] = this._items.displayed.filter(item => {\n return this.isLocked(item) === false;\n });\n\n const nbDisplayed = displayedItems.length;\n if (nbDisplayed < 1) {\n return false;\n }\n const temp: T[] = displayedItems.filter(item => this.current.indexOf(item) > -1);\n return temp.length === displayedItems.length;\n }\n\n /**\n * Lock and unlock item\n */\n lockItem(item: T, lock: boolean) {\n if (this.canItBeLocked()) {\n const ref = this._items.trackBy(item);\n if (lock === true) {\n // Add to lockedRef\n this.lockedRefs.push(ref);\n } else {\n // Remove from lockedRef\n this.lockedRefs = this.lockedRefs.filter(lockedItem => ref !== lockedItem);\n }\n }\n }\n\n /**\n * Check is item locked or not by searching into lockedRefs for entry\n */\n isLocked(item: T): boolean {\n /**\n * The check for selectionType will boost the performance by NOT searching\n * into the array when there is no need for that.\n */\n if (this.canItBeLocked()) {\n const ref = this._items.trackBy(item);\n return this.lockedRefs.indexOf(ref) > -1;\n }\n\n return false;\n }\n\n /**\n * Selects or deselects all currently displayed items\n */\n toggleAll() {\n if (this._selectionType === SelectionType.None || this._selectionType === SelectionType.Single) {\n return;\n }\n /**\n * If every currently displayed item is already selected, we clear them.\n * If at least one item isn't selected, we select every currently displayed item.\n */\n if (this.isAllSelected()) {\n this._items.displayed.forEach(item => {\n const currentIndex = this.current.indexOf(item);\n if (currentIndex > -1 && this.isLocked(item) === false) {\n this.deselectItem(currentIndex);\n }\n });\n } else {\n this._items.displayed.forEach(item => {\n if (this.current.indexOf(item) < 0 && this.isLocked(item) === false) {\n this.selectItem(item);\n }\n });\n }\n }\n\n /**\n * Selects an item\n */\n private selectItem(item: T): void {\n this.current = this.current.concat(item);\n if (this._items.canTrackBy()) {\n // Push selected ref onto array\n this.prevSelectionRefs.push(this._items.trackBy(item));\n }\n }\n\n /**\n * Deselects an item\n */\n private deselectItem(indexOfItem: number): void {\n this.current = this.current.slice(0, indexOfItem).concat(this.current.slice(indexOfItem + 1));\n if (indexOfItem < this.prevSelectionRefs.length) {\n // Keep selected refs array in sync\n const removedItems = this.prevSelectionRefs.splice(indexOfItem, 1);\n // locked reference is no longer needed (if any)\n this.lockedRefs = this.lockedRefs.filter(locked => locked !== removedItems[0]);\n }\n }\n\n /**\n * Make sure that it could be locked\n */\n private canItBeLocked(): boolean {\n return this._selectionType !== SelectionType.None && this._items.canTrackBy();\n }\n\n private emitChange() {\n if (this._selectionType === SelectionType.Single) {\n this._change.next(this.currentSingle);\n } else if (this._selectionType === SelectionType.Multi) {\n this._change.next(this.current);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, OnDestroy } from '@angular/core';\nimport { BehaviorSubject, Observable, Subscription } from 'rxjs';\n\nimport { DatagridDisplayMode } from '../enums/display-mode.enum';\nimport { DatagridRenderStep } from '../enums/render-step.enum';\nimport { DatagridRenderOrganizer } from '../render/render-organizer';\n\n@Injectable()\nexport class DisplayModeService implements OnDestroy {\n protected _view = new BehaviorSubject(DatagridDisplayMode.DISPLAY);\n\n private subscriptions: Subscription[] = [];\n\n constructor(renderOrganizer: DatagridRenderOrganizer) {\n this.subscriptions.push(\n renderOrganizer\n .filterRenderSteps(DatagridRenderStep.CALCULATE_MODE_ON)\n .subscribe(() => this._view.next(DatagridDisplayMode.CALCULATE))\n );\n\n this.subscriptions.push(\n renderOrganizer\n .filterRenderSteps(DatagridRenderStep.CALCULATE_MODE_OFF)\n .subscribe(() => this._view.next(DatagridDisplayMode.DISPLAY))\n );\n }\n\n get view(): Observable<DatagridDisplayMode> {\n return this._view.asObservable();\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, HostListener } from '@angular/core';\n\nimport { Selection } from './providers/selection';\n\n@Directive({\n selector: '.datagrid-select',\n})\nexport class ClrDatagridSelectionCellDirective {\n constructor(private readonly selection: Selection) {}\n\n @HostListener('click', ['$event'])\n private onSelectionCellClick(event: MouseEvent & { target: HTMLElement }) {\n // We want to effectively expand the selection click target to the entire selection cell.\n\n // If row selection is enabled, do nothing because the entire selection cell is already clickable.\n if (this.selection.rowSelectionMode) {\n return;\n }\n\n // If click was outside the label/input, forward the click to the input.\n if (event.target.tagName !== 'LABEL' && event.target.tagName !== 'INPUT') {\n event.target.querySelector('input').click();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Injector,\n Input,\n Output,\n QueryList,\n Renderer2,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core';\nimport { combineLatest, ReplaySubject, Subscription } from 'rxjs';\n\nimport { ClrExpandableAnimation } from '../../utils/animations/expandable-animation/expandable-animation';\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { HostWrapper } from '../../utils/host-wrapping/host-wrapper';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\nimport { ClrDatagridCell } from './datagrid-cell';\nimport { DatagridIfExpandService } from './datagrid-if-expanded.service';\nimport { DatagridDisplayMode } from './enums/display-mode.enum';\nimport { SelectionType } from './enums/selection-type';\nimport { DetailService } from './providers/detail.service';\nimport { DisplayModeService } from './providers/display-mode.service';\nimport { ExpandableRowsCount } from './providers/global-expandable-rows';\nimport { Items } from './providers/items';\nimport { RowActionService } from './providers/row-action-service';\nimport { Selection } from './providers/selection';\nimport { WrappedRow } from './wrapped-row';\n\nlet nbRow = 0;\n\n@Component({\n selector: 'clr-dg-row',\n templateUrl: './datagrid-row.html',\n host: {\n '[class.datagrid-row]': 'true',\n '[class.datagrid-selected]': 'selected',\n '[attr.aria-owns]': 'id',\n role: 'rowgroup',\n },\n providers: [\n DatagridIfExpandService,\n { provide: IfExpandService, useExisting: DatagridIfExpandService },\n { provide: LoadingListener, useExisting: DatagridIfExpandService },\n ],\n})\nexport class ClrDatagridRow<T = any> implements AfterContentInit, AfterViewInit {\n @Output('clrDgSelectedChange') selectedChanged = new EventEmitter<boolean>(false);\n @Output('clrDgExpandedChange') expandedChange = new EventEmitter<boolean>(false);\n\n id: string;\n radioId: string;\n checkboxId: string;\n expandableId: string;\n replaced: boolean;\n displayCells = false;\n expandAnimationTrigger = false;\n\n /* reference to the enum so that template can access */\n SELECTION_TYPE = SelectionType;\n\n /**\n * @internal\n */\n itemChanges = new ReplaySubject<T>(1);\n\n /*****\n * property dgCells\n *\n * @description\n * A Query List of the ClrDatagrid cells in this row.\n *\n */\n @ContentChildren(ClrDatagridCell) dgCells: QueryList<ClrDatagridCell>;\n\n @ViewChild(ClrExpandableAnimation) expandAnimation: ClrExpandableAnimation;\n @ViewChild('detailButton') detailButton: ElementRef;\n @ViewChild('stickyCells', { read: ViewContainerRef }) _stickyCells: ViewContainerRef;\n @ViewChild('scrollableCells', { read: ViewContainerRef }) _scrollableCells: ViewContainerRef;\n @ViewChild('calculatedCells', { read: ViewContainerRef }) _calculatedCells: ViewContainerRef;\n\n private _item: T;\n private _selected = false;\n private _detailOpenLabel = '';\n private _detailCloseLabel = '';\n private _rowAriaLabel = '';\n private wrappedInjector: Injector;\n private subscriptions: Subscription[] = [];\n\n // By default, every item is selectable; it becomes not selectable only if it's explicitly set to false\n private _selectable: boolean | string = true;\n\n constructor(\n public selection: Selection<T>,\n public rowActionService: RowActionService,\n public globalExpandable: ExpandableRowsCount,\n public expand: DatagridIfExpandService,\n public detailService: DetailService,\n private displayMode: DisplayModeService,\n private vcr: ViewContainerRef,\n private renderer: Renderer2,\n private el: ElementRef,\n public commonStrings: ClrCommonStringsService,\n private items: Items,\n @Inject(DOCUMENT) private document: any\n ) {\n nbRow++;\n this.id = 'clr-dg-row' + nbRow;\n this.radioId = 'clr-dg-row-rd' + nbRow;\n this.checkboxId = 'clr-dg-row-cb' + nbRow;\n this.expandableId = expand.expandableId;\n\n this.subscriptions.push(\n combineLatest(this.expand.replace, this.expand.expandChange).subscribe(\n ([expandReplaceValue, expandChangeValue]) => {\n if (expandReplaceValue && expandChangeValue) {\n // replaced and expanding\n this.replaced = true;\n this.renderer.addClass(this.el.nativeElement, 'datagrid-row-replaced');\n } else {\n this.replaced = false;\n // Handles these cases: not replaced and collapsing & replaced and\n // collapsing and not replaced and expanding.\n this.renderer.removeClass(this.el.nativeElement, 'datagrid-row-replaced');\n }\n }\n )\n );\n }\n\n /**\n * Model of the row, to use for selection\n */\n @Input('clrDgItem')\n get item(): T {\n return this._item;\n }\n set item(item: T) {\n this._item = item;\n this.itemChanges.next(item);\n this.clrDgSelectable = this._selectable;\n }\n\n @Input('clrDgSelectable')\n get clrDgSelectable() {\n return !this.selection.isLocked(this.item);\n }\n set clrDgSelectable(value: boolean | string) {\n if (this.item) {\n this.selection.lockItem(this.item, value === 'false' || value === false);\n }\n // Store this value locally, to be initialized when item is initialized\n this._selectable = value;\n }\n\n /**\n * Indicates if the row is selected\n */\n @Input('clrDgSelected')\n get selected() {\n if (this.selection.selectionType === SelectionType.None) {\n return this._selected;\n } else {\n return this.selection.isSelected(this.item);\n }\n }\n set selected(value: boolean | string) {\n if (this.selection.selectionType === SelectionType.None) {\n this._selected = value as boolean;\n } else {\n if (value && this.selection.selectionType === SelectionType.Multi) {\n this.rangeSelect();\n } else {\n this.selection.rangeStart = null;\n }\n this.selection.setSelected(this.item, value as boolean);\n }\n }\n\n @Input('clrDgExpanded')\n get expanded() {\n return this.expand.expanded;\n }\n set expanded(value: boolean | string) {\n this.expand.expanded = value as boolean;\n }\n\n @Input()\n get clrDgDetailOpenLabel(): string {\n return this._detailOpenLabel ? this._detailOpenLabel : this.commonStrings.keys.open;\n }\n set clrDgDetailOpenLabel(label: string) {\n this._detailOpenLabel = label;\n }\n\n @Input()\n get clrDgDetailCloseLabel(): string {\n return this._detailCloseLabel ? this._detailCloseLabel : this.commonStrings.keys.close;\n }\n set clrDgDetailCloseLabel(label: string) {\n this._detailCloseLabel = label;\n }\n\n // CDE-151: Rename this field to clrDgRowSelectionLabel in v16\n @Input()\n get clrDgRowAriaLabel(): string {\n return this._rowAriaLabel ? this._rowAriaLabel : this.commonStrings.keys.select;\n }\n set clrDgRowAriaLabel(label: string) {\n this._rowAriaLabel = label;\n }\n\n get _view() {\n return this.wrappedInjector.get(WrappedRow, this.vcr).rowView;\n }\n\n ngOnInit() {\n this.wrappedInjector = new HostWrapper(WrappedRow, this.vcr);\n this.selection.lockItem(this.item, this.clrDgSelectable === false);\n }\n\n ngAfterContentInit() {\n this.dgCells.changes.subscribe(() => {\n this.dgCells.forEach(cell => {\n if (!cell._view.destroyed) {\n this._scrollableCells.insert(cell._view);\n }\n });\n });\n }\n\n ngAfterViewInit() {\n this.subscriptions.push(\n this.displayMode.view.subscribe(viewChange => {\n // Listen for view changes and move cells around depending on the current displayType\n // remove cell views from display view\n for (let i = this._scrollableCells.length; i > 0; i--) {\n this._scrollableCells.detach();\n }\n // remove cell views from calculated view\n for (let i = this._calculatedCells.length; i > 0; i--) {\n this._calculatedCells.detach();\n }\n if (viewChange === DatagridDisplayMode.CALCULATE) {\n this.displayCells = false;\n this.dgCells.forEach(cell => {\n if (!cell._view.destroyed) {\n this._calculatedCells.insert(cell._view);\n }\n });\n } else {\n this.displayCells = true;\n this.dgCells.forEach(cell => {\n if (!cell._view.destroyed) {\n this._scrollableCells.insert(cell._view);\n }\n });\n }\n }),\n this.expand.animate.subscribe(() => {\n this.expandAnimationTrigger = !this.expandAnimationTrigger;\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach((sub: Subscription) => sub.unsubscribe());\n }\n\n toggle(selected = !this.selected) {\n if (selected !== this.selected) {\n this.selected = selected;\n this.selectedChanged.emit(selected);\n }\n }\n\n toggleExpand() {\n if (this.expand.expandable) {\n this.expandAnimation.updateStartHeight();\n this.expanded = !this.expanded;\n this.expandedChange.emit(this.expanded);\n }\n }\n\n /**\n * The default behavior in Chrome and Firefox for shift-clicking on a label is to perform text-selection.\n * This prevents our intended range-selection, because this text-selection overrides our shift-click event.\n * We need to clear the stored selection range when shift-clicking. This will override the mostly unused shift-click\n * selection browser functionality, which is inconsistently implemented in browsers anyway.\n */\n clearRanges(event: MouseEvent) {\n if (event.shiftKey) {\n this.document.getSelection().removeAllRanges();\n // Firefox is too persistent about its text-selection behaviour. So we need to add a preventDefault();\n // We should not try to enforce this on the other browsers, though, because their toggle cycle does not get canceled by\n // the preventDefault() and they toggle the checkbox second time, effectively retrurning it to not-selected.\n if (window.navigator.userAgent.indexOf('Firefox') !== -1) {\n event.preventDefault();\n this.toggle(true);\n }\n }\n }\n\n /**\n * @deprecated related to clrDgRowSelection, which is deprecated\n */\n protected selectRow(selected = !this.selected, $event) {\n // The label also captures clicks that bubble up to the row event listener, causing\n // this handler to run twice. This exits early to prevent toggling the checkbox twice.\n if ($event.target.tagName === 'LABEL') {\n return;\n }\n if (this.selection.selectionType === this.SELECTION_TYPE.Single) {\n this.selection.currentSingle = this.item;\n } else {\n this.toggle(selected);\n }\n }\n\n private rangeSelect() {\n const items = this.items.displayed;\n if (!items) {\n return;\n }\n const startIx = items.indexOf(this.selection.rangeStart);\n if (\n this.selection.rangeStart &&\n this.selection.current.includes(this.selection.rangeStart) &&\n this.selection.shiftPressed &&\n startIx !== -1\n ) {\n const endIx = items.indexOf(this.item);\n // Using Set to remove duplicates\n const newSelection = new Set(\n this.selection.current.concat(items.slice(Math.min(startIx, endIx), Math.max(startIx, endIx) + 1))\n );\n this.selection.clearSelection();\n this.selection.current.push(...newSelection);\n } else {\n // page number has changed or\n // no Shift was pressed or\n // rangeStart not yet set\n this.selection.rangeStart = this.item;\n }\n }\n}\n","<!--\n We need to wrap the #rowContent in label element if we are in rowSelectionMode.\n Clicking of that wrapper label will equate to clicking on the whole row, which triggers the checkbox to toggle.\n-->\n<div\n class=\"datagrid-row-clickable\"\n *ngIf=\"selection.rowSelectionMode\"\n (mousedown)=\"clearRanges($event)\"\n (click)=\"selectRow(!selected, $event)\"\n>\n <clr-expandable-animation [clrExpandTrigger]=\"expandAnimationTrigger\" *ngIf=\"expand.expandable\">\n <ng-template [ngTemplateOutlet]=\"rowContent\"></ng-template>\n </clr-expandable-animation>\n <ng-template [ngTemplateOutlet]=\"rowContent\" *ngIf=\"!expand.expandable\"></ng-template>\n</div>\n\n<clr-expandable-animation\n *ngIf=\"!selection.rowSelectionMode && expand.expandable\"\n [clrExpandTrigger]=\"expandAnimationTrigger\"\n>\n <ng-template [ngTemplateOutlet]=\"rowContent\"></ng-template>\n</clr-expandable-animation>\n\n<ng-template *ngIf=\"!selection.rowSelectionMode && !expand.expandable\" [ngTemplateOutlet]=\"rowContent\"></ng-template>\n\n<!--\n We need the \"project into template\" hacks because we need this in 2 different places\n depending on whether the details replace the row or not.\n-->\n<ng-template #detail>\n <ng-content select=\"clr-dg-row-detail\"></ng-content>\n</ng-template>\n\n<ng-template #rowContent>\n <div\n role=\"row\"\n [id]=\"id\"\n class=\"datagrid-row-master datagrid-row-flex\"\n [class.datagrid-row-detail-open]=\"detailService.isRowOpen(item)\"\n >\n <div class=\"datagrid-row-sticky\">\n <!-- Sticky elements here -->\n <ng-container #stickyCells>\n <div\n *ngIf=\"selection.selectionType === SELECTION_TYPE.Multi\"\n class=\"datagrid-select datagrid-fixed-column datagrid-cell\"\n [ngClass]=\"{ 'clr-form-control-disabled': !clrDgSelectable }\"\n role=\"gridcell\"\n >\n <clr-checkbox-wrapper>\n <input\n type=\"checkbox\"\n clrCheckbox\n [ngModel]=\"selected\"\n (ngModelChange)=\"toggle($event)\"\n [id]=\"checkboxId\"\n [disabled]=\"clrDgSelectable ? null : true\"\n [attr.aria-disabled]=\"clrDgSelectable ? null : true\"\n />\n <!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm -->\n <label [for]=\"checkboxId\" class=\"clr-control-label clr-col-null\" (click)=\"clearRanges($event)\">\n <span class=\"clr-sr-only\">{{clrDgRowAriaLabel || commonStrings.keys.select}}</span>\n </label>\n </clr-checkbox-wrapper>\n </div>\n <div\n *ngIf=\"selection.selectionType === SELECTION_TYPE.Single\"\n class=\"datagrid-select datagrid-fixed-column datagrid-cell\"\n [ngClass]=\"{ 'clr-form-control-disabled': !clrDgSelectable }\"\n role=\"gridcell\"\n >\n <clr-radio-wrapper>\n <input\n type=\"radio\"\n clrRadio\n [id]=\"radioId\"\n [name]=\"selection.id + '-radio'\"\n [value]=\"item\"\n [(ngModel)]=\"selection.currentSingle\"\n [checked]=\"selection.currentSingle === item\"\n [disabled]=\"clrDgSelectable ? null : true\"\n [attr.aria-disabled]=\"clrDgSelectable ? null : true\"\n />\n <label class=\"clr-control-label clr-col-null\" [for]=\"radioId\">\n <span class=\"clr-sr-only\">{{ clrDgRowAriaLabel || commonStrings.keys.select }}</span>\n </label>\n </clr-radio-wrapper>\n </div>\n <div\n *ngIf=\"rowActionService.hasActionableRow\"\n class=\"datagrid-row-actions datagrid-fixed-column datagrid-cell\"\n role=\"gridcell\"\n >\n <ng-content select=\"clr-dg-action-overflow\"></ng-content>\n </div>\n <div\n *ngIf=\"globalExpandable.hasExpandableRow\"\n class=\"datagrid-expandable-caret datagrid-fixed-column datagrid-cell\"\n role=\"gridcell\"\n >\n <ng-container *ngIf=\"expand.expandable\">\n <button\n *ngIf=\"!expand.loading\"\n (click)=\"toggleExpand()\"\n type=\"button\"\n class=\"datagrid-expandable-caret-button\"\n [attr.aria-expanded]=\"expand.expanded\"\n [attr.aria-label]=\"expand.expanded ? clrDgDetailCloseLabel : clrDgDetailOpenLabel\"\n [attr.aria-controls]=\"expandableId\"\n >\n <cds-icon\n shape=\"angle\"\n class=\"datagrid-expandable-caret-icon\"\n [attr.direction]=\"expand.expanded ? 'down' : 'right'\"\n [attr.title]=\"expand.expanded ? commonStrings.keys.collapse : commonStrings.keys.expand\"\n ></cds-icon>\n </button>\n <clr-spinner *ngIf=\"expand.loading\" clrSmall>{{ commonStrings.keys.loading }}</clr-spinner>\n </ng-container>\n </div>\n <div\n *ngIf=\"detailService.enabled\"\n class=\"datagrid-detail-caret datagrid-fixed-column datagrid-cell\"\n role=\"gridcell\"\n >\n <button\n (click)=\"detailService.toggle(item, detailButton)\"\n type=\"button\"\n #detailButton\n class=\"datagrid-detail-caret-button\"\n [class.is-open]=\"detailService.isRowOpen(item)\"\n [attr.aria-label]=\"detailService.isRowOpen(item) ? clrDgDetailCloseLabel : clrDgDetailOpenLabel\"\n [attr.aria-expanded]=\"detailService.isOpen\"\n [attr.aria-controls]=\"detailService.id\"\n aria-haspopup=\"dialog\"\n >\n <cds-icon\n shape=\"angle-double\"\n [attr.direction]=\"detailService.isRowOpen(item) ? 'left' : 'right'\"\n class=\"datagrid-detail-caret-icon\"\n [attr.title]=\"detailService.isRowOpen(item) ? commonStrings.keys.close: commonStrings.keys.open\"\n ></cds-icon>\n </button>\n </div>\n </ng-container>\n <!-- placeholder for projecting other sticky cells as pinned-->\n </div>\n <div class=\"datagrid-row-scrollable\" [ngClass]=\"{'is-replaced': replaced && expanded}\">\n <div class=\"datagrid-scrolling-cells\">\n <ng-content select=\"clr-dg-cell\"></ng-content>\n <ng-container #scrollableCells></ng-container>\n </div>\n <!-- details here when replace, re-visit when sticky container is used for pinned cells -->\n <ng-template *ngIf=\"replaced && !expand.loading\" [ngTemplateOutlet]=\"detail\"></ng-template>\n <ng-template *ngIf=\"!replaced && !expand.loading\" [ngTemplateOutlet]=\"detail\"></ng-template>\n </div>\n </div>\n</ng-template>\n\n<ng-container #calculatedCells></ng-container>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum DatagridColumnChanges {\n WIDTH,\n HIDDEN,\n}\n\nexport const ALL_COLUMN_CHANGES: DatagridColumnChanges[] = Object.keys(DatagridColumnChanges)\n .map(key => (DatagridColumnChanges as Record<string, any>)[key])\n .filter(key => key === parseInt(key, 10)); // extracts only integer keys\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { ALL_COLUMN_CHANGES } from '../enums/column-changes.enum';\nimport { ColumnState, ColumnStateDiff } from '../interfaces/column-state.interface';\n\n@Injectable()\nexport class ColumnsService {\n columns: BehaviorSubject<ColumnState>[] = [];\n\n private _cache: ColumnState[] = [];\n\n get columnStates(): ColumnState[] {\n return this.columns.map(column => column.value);\n }\n\n get hasHideableColumns(): boolean {\n return this.columnStates.filter(state => state.hideable).length > 0;\n }\n\n cache() {\n this._cache = this.columns.map(subject => {\n const value = { ...subject.value };\n delete value.changes;\n return value;\n });\n }\n\n hasCache() {\n return !!this._cache.length;\n }\n\n resetToLastCache() {\n this._cache.forEach((state, index) => {\n // Just emit the exact value from the cache\n this.columns[index].next({ ...state, changes: ALL_COLUMN_CHANGES });\n });\n this._cache = [];\n }\n\n // Helper method to emit a change to a column only when there is an actual diff to process for that column\n emitStateChangeAt(columnIndex: number, diff: ColumnStateDiff) {\n if (!this.columns[columnIndex]) {\n return;\n }\n this.emitStateChange(this.columns[columnIndex], diff);\n }\n\n emitStateChange(column: BehaviorSubject<ColumnState>, diff: ColumnStateDiff) {\n column.next({ ...column.value, ...diff });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\nimport { DatagridPropertyComparator } from '../built-in/comparators/datagrid-property-comparator';\nimport { ClrDatagridStateInterface } from '../interfaces/state.interface';\nimport { FiltersProvider } from './filters';\nimport { Page } from './page';\nimport { Sort } from './sort';\nimport { StateDebouncer } from './state-debouncer.provider';\n\n/**\n * This provider aggregates state changes from the various providers of the Datagrid\n */\n@Injectable()\nexport class StateProvider<T> {\n /**\n * The Observable that lets other classes subscribe to global state changes\n */\n change: Observable<ClrDatagridStateInterface<T>> = this.debouncer.change.pipe(map(() => this.state));\n\n constructor(\n private filters: FiltersProvider<T>,\n private sort: Sort<T>,\n private page: Page,\n private debouncer: StateDebouncer\n ) {}\n\n /*\n * By making this a getter, we open the possibility for a setter in the future.\n * It's been requested a couple times.\n */\n get state(): ClrDatagridStateInterface<T> {\n const state: ClrDatagridStateInterface<T> = {};\n if (this.page.size > 0) {\n state.page = {\n from: this.page.firstItem,\n to: this.page.lastItem,\n size: this.page.size,\n current: this.page.current,\n };\n }\n if (this.sort.comparator) {\n if (this.sort.comparator instanceof DatagridPropertyComparator) {\n /*\n * Special case for the default object property comparator,\n * we give the property name instead of the actual comparator.\n */\n state.sort = { by: (this.sort.comparator as DatagridPropertyComparator<T>).prop, reverse: this.sort.reverse };\n } else {\n state.sort = { by: this.sort.comparator, reverse: this.sort.reverse };\n }\n }\n\n const activeFilters = this.filters.getActiveFilters();\n if (activeFilters.length > 0) {\n state.filters = [];\n for (const filter of activeFilters) {\n if (filter.state) {\n state.filters.push(filter.state);\n } else {\n state.filters.push(filter);\n }\n }\n }\n return state;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, NgZone, OnDestroy } from '@angular/core';\nimport { fromEvent, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport function getTabableItems(el: HTMLElement) {\n const tabableSelector = [\n 'a[href]',\n 'area[href]',\n 'input:not([disabled])',\n 'button:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n 'iframe',\n 'object',\n 'embed',\n '*[tabindex]',\n '*[contenteditable=true]',\n '[role=button]:not([disabled])',\n ].join(',');\n return Array.from(el.querySelectorAll(tabableSelector)) as HTMLElement[];\n}\n\nexport interface KeyNavigationGridConfig {\n keyGrid: string;\n keyGridRows: string;\n keyGridCells: string;\n}\n\n@Injectable()\nexport class KeyNavigationGridController implements OnDestroy {\n private host: HTMLElement;\n private config: KeyNavigationGridConfig;\n private listenersAdded = false;\n private destroy$ = new Subject<void>();\n\n constructor(private zone: NgZone) {\n this.config = {\n keyGridRows: '[role=row]:not(.datagrid-placeholder)',\n keyGridCells:\n '[role=gridcell]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), [role=columnheader]:not(.datagrid-hidden-column):not(.datagrid-placeholder-content), .datagrid-detail-caret',\n keyGrid: '[role=grid]',\n };\n }\n\n private get grid() {\n return this.host?.querySelector(this.config.keyGrid);\n }\n\n private get rows() {\n return this.host?.querySelectorAll(this.config.keyGridRows) as NodeListOf<HTMLElement>;\n }\n\n private get cells() {\n return this.host?.querySelectorAll(this.config.keyGridCells) as NodeListOf<HTMLElement>;\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n this.destroy$.complete();\n }\n\n addListeners() {\n if (this.listenersAdded) {\n return;\n }\n\n this.zone.runOutsideAngular(() => {\n fromEvent(this.grid, 'mousedown')\n .pipe(takeUntil(this.destroy$))\n .subscribe((e: MouseEvent) => {\n // preserve right click for context menus & keyboard mouse control https://apple.stackexchange.com/questions/32715/how-do-i-open-the-context-menu-from-a-mac-keyboard\n if (e.buttons === 1 && !e.ctrlKey) {\n const activeCell = this.cells\n ? Array.from(this.cells).find(\n c => c === e.target || c === (e.target as HTMLElement).closest(this.config.keyGridCells)\n )\n : null;\n if (activeCell) {\n this.setActiveCell(activeCell);\n }\n }\n });\n\n fromEvent(this.grid, 'keydown')\n .pipe(takeUntil(this.destroy$))\n .subscribe((e: KeyboardEvent) => {\n // Skip column resize events\n if (\n (e.target as HTMLElement).classList.contains('drag-handle') &&\n (e.code === 'ArrowLeft' || e.code === 'ArrowRight')\n ) {\n return;\n }\n if (\n e.code === 'ArrowUp' ||\n e.code === 'ArrowDown' ||\n e.code === 'ArrowLeft' ||\n e.code === 'ArrowRight' ||\n e.code === 'End' ||\n e.code === 'Home' ||\n e.code === 'PageUp' ||\n e.code === 'PageDown'\n ) {\n const { x, y } = this.getNextItemCoordinate(e);\n const activeItem = this.rows\n ? (Array.from(this.rows[y].querySelectorAll(this.config.keyGridCells))[x] as HTMLElement)\n : null;\n if (activeItem) {\n this.setActiveCell(activeItem);\n }\n e.preventDefault();\n }\n });\n });\n this.listenersAdded = true;\n }\n\n initializeKeyGrid(host: HTMLElement) {\n this.host = host;\n this.addListeners();\n this.resetKeyGrid();\n }\n\n resetKeyGrid() {\n this.cells?.forEach((i: HTMLElement) => i.setAttribute('tabindex', '-1'));\n const firstCell = this.cells ? this.cells[0] : null;\n firstCell?.setAttribute('tabindex', '0');\n }\n\n private setActiveCell(activeCell: HTMLElement) {\n const prior = this.cells ? Array.from(this.cells).find(c => c.getAttribute('tabindex') === '0') : null;\n\n if (prior) {\n prior.setAttribute('tabindex', '-1');\n }\n\n activeCell.setAttribute('tabindex', '0');\n\n const items = getTabableItems(activeCell);\n const item = activeCell.getAttribute('role') !== 'columnheader' && items[0] ? items[0] : activeCell;\n item.focus();\n }\n\n private getNextItemCoordinate(e: any) {\n let currentCell = this.cells ? Array.from(this.cells).find(i => i.getAttribute('tabindex') === '0') : null;\n if (e.code === 'Tab') {\n currentCell = document.activeElement as HTMLElement;\n }\n const currentRow = this.rows && currentCell ? Array.from(this.rows).find(r => r.contains(currentCell)) : null;\n const numOfRows = this.rows ? this.rows.length - 1 : 0;\n const numOfColumns = this.cells ? this.cells.length / this.rows.length - 1 : 0;\n\n let x =\n currentRow && currentCell\n ? Array.from(currentRow.querySelectorAll(this.config.keyGridCells)).indexOf(currentCell)\n : 0;\n let y = currentRow && currentCell && this.rows ? Array.from(this.rows).indexOf(currentRow) : 0;\n\n const dir = this.host.dir;\n const inlineStart = dir === 'rtl' ? 'ArrowRight' : 'ArrowLeft';\n const inlineEnd = dir === 'rtl' ? 'ArrowLeft' : 'ArrowRight';\n\n const itemsPerPage =\n Math.floor(this.host?.querySelector('.datagrid').clientHeight / this.rows[0].clientHeight) - 1 || 0;\n\n if (e.code === 'ArrowUp' && y !== 0) {\n y = y - 1;\n } else if (e.code === 'ArrowDown' && y < numOfRows) {\n y = y + 1;\n } else if (e.code === inlineStart && x !== 0) {\n x = x - 1;\n } else if (e.code === inlineEnd && x < numOfColumns) {\n x = x + 1;\n } else if (e.code === 'End') {\n x = numOfColumns;\n\n if (e.ctrlKey) {\n y = numOfRows;\n }\n } else if (e.code === 'Home') {\n x = 0;\n\n if (e.ctrlKey) {\n y = 0;\n }\n } else if (e.code === 'PageUp') {\n y = y - itemsPerPage > 0 ? y - itemsPerPage : 0;\n } else if (e.code === 'PageDown') {\n y = y + itemsPerPage < numOfRows ? y + itemsPerPage : numOfRows;\n }\n\n return { x, y };\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n Component,\n ContentChild,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n QueryList,\n Renderer2,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core';\nimport { combineLatest, fromEvent, merge, of, Subscription } from 'rxjs';\nimport { debounceTime, switchMap } from 'rxjs/operators';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrDatagridColumn } from './datagrid-column';\nimport { ClrDatagridItems } from './datagrid-items';\nimport { ClrDatagridPlaceholder } from './datagrid-placeholder';\nimport { ClrDatagridRow } from './datagrid-row';\nimport { DatagridDisplayMode } from './enums/display-mode.enum';\nimport { SelectionType } from './enums/selection-type';\nimport { ClrDatagridStateInterface } from './interfaces/state.interface';\nimport { ColumnsService } from './providers/columns.service';\nimport { DetailService } from './providers/detail.service';\nimport { DisplayModeService } from './providers/display-mode.service';\nimport { FiltersProvider } from './providers/filters';\nimport { ExpandableRowsCount } from './providers/global-expandable-rows';\nimport { ClrDatagridItemsTrackByFunction, Items } from './providers/items';\nimport { Page } from './providers/page';\nimport { RowActionService } from './providers/row-action-service';\nimport { Selection } from './providers/selection';\nimport { Sort } from './providers/sort';\nimport { StateDebouncer } from './providers/state-debouncer.provider';\nimport { StateProvider } from './providers/state.provider';\nimport { TableSizeService } from './providers/table-size.service';\nimport { DatagridRenderOrganizer } from './render/render-organizer';\nimport { KeyNavigationGridController } from './utils/key-navigation-grid.controller';\n\n@Component({\n selector: 'clr-datagrid',\n templateUrl: './datagrid.html',\n providers: [\n Selection,\n Sort,\n FiltersProvider,\n Page,\n Items,\n DatagridRenderOrganizer,\n RowActionService,\n ExpandableRowsCount,\n StateDebouncer,\n DetailService,\n StateProvider,\n TableSizeService,\n ColumnsService,\n DisplayModeService,\n KeyNavigationGridController,\n ],\n host: {\n '[class.datagrid-host]': 'true',\n '[class.datagrid-detail-open]': 'detailService.isOpen',\n },\n})\nexport class ClrDatagrid<T = any> implements AfterContentInit, AfterViewInit, OnDestroy {\n @Input() clrDgSingleSelectionAriaLabel: string = this.commonStrings.keys.singleSelectionAriaLabel;\n @Input() clrDgSingleActionableAriaLabel: string = this.commonStrings.keys.singleActionableAriaLabel;\n @Input() clrDetailExpandableAriaLabel: string = this.commonStrings.keys.detailExpandableAriaLabel;\n\n // Allows disabling of the auto focus on page/state changes (excludes focus management inside of popups)\n @Input() clrDgDisablePageFocus = false;\n\n @Output('clrDgSelectedChange') selectedChanged = new EventEmitter<T[]>(false);\n @Output('clrDgSingleSelectedChange') singleSelectedChanged = new EventEmitter<T>(false);\n\n /**\n * Output emitted whenever the data needs to be refreshed, based on user action or external ones\n */\n @Output('clrDgRefresh') refresh = new EventEmitter<ClrDatagridStateInterface<T>>(false);\n\n /**\n * We grab the smart iterator from projected content\n */\n @ContentChild(ClrDatagridItems) iterator: ClrDatagridItems<T>;\n\n /**\n * Custom placeholder detection\n */\n @ContentChild(ClrDatagridPlaceholder) placeholder: ClrDatagridPlaceholder<T>;\n\n /**\n * Hideable Column data source / detection.\n */\n @ContentChildren(ClrDatagridColumn) columns: QueryList<ClrDatagridColumn<T>>;\n\n /**\n * When the datagrid is user-managed without the smart iterator, we get the items displayed\n * by querying the projected content. This is needed to keep track of the models currently\n * displayed, typically for selection.\n */\n @ContentChildren(ClrDatagridRow) rows: QueryList<ClrDatagridRow<T>>;\n\n @ViewChild('datagridTable', { read: ElementRef }) datagridTable: ElementRef;\n @ViewChild('scrollableColumns', { read: ViewContainerRef }) scrollableColumns: ViewContainerRef;\n @ViewChild('projectedDisplayColumns', { read: ViewContainerRef }) _projectedDisplayColumns: ViewContainerRef;\n @ViewChild('projectedCalculationColumns', { read: ViewContainerRef }) _projectedCalculationColumns: ViewContainerRef;\n @ViewChild('displayedRows', { read: ViewContainerRef }) _displayedRows: ViewContainerRef;\n @ViewChild('calculationRows', { read: ViewContainerRef }) _calculationRows: ViewContainerRef;\n\n selectAllId: string;\n\n /* reference to the enum so that template can access */\n SELECTION_TYPE = SelectionType;\n\n /**\n * Subscriptions to all the services and queries changes\n */\n private _subscriptions: Subscription[] = [];\n\n constructor(\n private organizer: DatagridRenderOrganizer,\n public items: Items<T>,\n public expandableRows: ExpandableRowsCount,\n public selection: Selection<T>,\n public rowActionService: RowActionService,\n private stateProvider: StateProvider<T>,\n private displayMode: DisplayModeService,\n private renderer: Renderer2,\n public detailService: DetailService,\n @Inject(DOCUMENT) private document: any,\n private el: ElementRef,\n private page: Page,\n public commonStrings: ClrCommonStringsService,\n private columnsService: ColumnsService,\n private keyNavigation: KeyNavigationGridController,\n private zone: NgZone\n ) {\n const datagridId = uniqueIdFactory();\n\n this.selectAllId = 'clr-dg-select-all-' + datagridId;\n this.detailService.id = datagridId;\n }\n\n /**\n * Freezes the datagrid while data is loading\n */\n @Input('clrDgLoading')\n get loading(): boolean {\n return this.items.loading;\n }\n set loading(value: boolean) {\n this.items.loading = value;\n }\n\n /**\n * Array of all selected items\n */\n @Input('clrDgSelected')\n set selected(value: T[] | undefined) {\n if (value) {\n this.selection.selectionType = SelectionType.Multi;\n } else {\n this.selection.selectionType = SelectionType.None;\n }\n this.selection.updateCurrent(value, false);\n }\n\n /**\n * Selected item in single-select mode\n */\n @Input('clrDgSingleSelected')\n set singleSelected(value: T) {\n this.selection.selectionType = SelectionType.Single;\n // the clrDgSingleSelected is updated in one of two cases:\n // 1. an explicit value is passed\n // 2. is being set to null or undefined, where previously it had a value\n if (value) {\n this.selection.currentSingle = value;\n } else if (this.selection.currentSingle) {\n this.selection.currentSingle = null;\n }\n }\n\n @Input()\n set clrDgPreserveSelection(state: boolean) {\n this.selection.preserveSelection = state;\n }\n\n /**\n * @deprecated since 2.0, remove in 3.0\n *\n * Selection/Deselection on row click mode\n */\n @Input('clrDgRowSelection')\n set rowSelectionMode(value: boolean) {\n this.selection.rowSelectionMode = value;\n }\n\n @Input('clrDgItemsTrackBy')\n set trackBy(value: ClrDatagridItemsTrackByFunction<T>) {\n this.items.datagridTrackBy = value;\n }\n\n /**\n * Indicates if all currently displayed items are selected\n */\n get allSelected() {\n return this.selection.isAllSelected();\n }\n set allSelected(_value: boolean) {\n /**\n * This is a setter but we ignore the value.\n * It's strange, but it lets us have an indeterminate state where only\n * some of the items are selected.\n */\n this.selection.toggleAll();\n }\n\n ngAfterContentInit() {\n if (!this.items.smart) {\n this.items.all = this.rows.map((row: ClrDatagridRow<T>) => row.item);\n }\n\n const rowItemsChanges = this.rows.changes.pipe(\n switchMap((rows: ClrDatagridRow<T>[]) =>\n merge(\n // immediate update\n of(rows.map(row => row.item)),\n // subsequent updates once per tick\n combineLatest(rows.map(row => row.itemChanges)).pipe(debounceTime(0))\n )\n )\n );\n\n this._subscriptions.push(\n rowItemsChanges.subscribe(all => {\n if (!this.items.smart) {\n this.items.all = all;\n }\n }),\n this.rows.changes.subscribe(() => {\n // Remove any projected rows from the displayedRows container\n // Necessary with Ivy off. See https://github.com/vmware/clarity/issues/4692\n for (let i = this._displayedRows.length - 1; i >= 0; i--) {\n if (this._displayedRows.get(i).destroyed) {\n this._displayedRows.remove(i);\n }\n }\n this.rows.forEach(row => {\n this._displayedRows.insert(row._view);\n });\n\n // Try to update only when there is something cached and its open.\n if (this.detailService.state && this.detailService.isOpen) {\n const row = this.items.canTrackBy()\n ? this.rows.find(row => this.items.trackBy(row.item) === this.items.trackBy(this.detailService.state))\n : undefined;\n\n /**\n * Reopen updated row or close it\n */\n row ? this.detailService.open(row.item, row.detailButton.nativeElement) : this.detailService.close();\n }\n })\n );\n }\n\n /**\n * Our setup happens in the view of some of our components, so we wait for it to be done before starting\n */\n ngAfterViewInit() {\n this.keyNavigation.initializeKeyGrid(this.el.nativeElement);\n\n // TODO: determine if we can get rid of provider wiring in view init so that subscriptions can be done earlier\n this.refresh.emit(this.stateProvider.state);\n this._subscriptions.push(\n this.stateProvider.change.subscribe(state => this.refresh.emit(state)),\n this.selection.change.subscribe(s => {\n if (this.selection.selectionType === SelectionType.Single) {\n this.singleSelectedChanged.emit(s as T);\n } else if (this.selection.selectionType === SelectionType.Multi) {\n this.selectedChanged.emit(s as T[]);\n }\n }),\n // Reinitialize arrow key navigation on page changes\n this.page.change.subscribe(() => {\n this.keyNavigation.resetKeyGrid();\n if (!this.clrDgDisablePageFocus) {\n this.datagridTable.nativeElement.focus();\n }\n }),\n // Reinitialize arrow key navigation on hide/unhide columns\n combineLatest(this.columnsService.columns).subscribe(() => this.keyNavigation?.resetKeyGrid()),\n // A subscription that listens for displayMode changes on the datagrid\n this.displayMode.view.subscribe(viewChange => {\n // Remove any projected columns from the projectedDisplayColumns container\n for (let i = this._projectedDisplayColumns.length; i > 0; i--) {\n this._projectedDisplayColumns.detach();\n }\n // Remove any projected columns from the projectedCalculationColumns container\n for (let i = this._projectedCalculationColumns.length; i > 0; i--) {\n this._projectedCalculationColumns.detach();\n }\n // Remove any projected rows from the calculationRows container\n for (let i = this._calculationRows.length; i > 0; i--) {\n this._calculationRows.detach();\n }\n // Remove any projected rows from the displayedRows container\n for (let i = this._displayedRows.length; i > 0; i--) {\n this._displayedRows.detach();\n }\n if (viewChange === DatagridDisplayMode.DISPLAY) {\n // Set state, style for the datagrid to DISPLAY and insert row & columns into containers\n this.renderer.removeClass(this.el.nativeElement, 'datagrid-calculate-mode');\n this.columns.forEach(column => {\n this._projectedDisplayColumns.insert(column._view);\n });\n this.rows.forEach(row => {\n this._displayedRows.insert(row._view);\n });\n } else {\n // Set state, style for the datagrid to CALCULATE and insert row & columns into containers\n this.renderer.addClass(this.el.nativeElement, 'datagrid-calculate-mode');\n this.columns.forEach(column => {\n this._projectedCalculationColumns.insert(column._view);\n });\n this.rows.forEach(row => {\n this._calculationRows.insert(row._view);\n });\n }\n })\n );\n\n // We need to preserve shift state, so it can be used on selection change, regardless of the input event\n // that triggered the change. This helps us to easily resolve the k/b only case together with the mouse selection case.\n this.zone.runOutsideAngular(() => {\n this._subscriptions.push(\n fromEvent(this.document.body, 'keydown').subscribe((event: KeyboardEvent) => {\n if (event.key === 'Shift') {\n this.selection.shiftPressed = true;\n }\n }),\n fromEvent(this.document.body, 'keyup').subscribe((event: KeyboardEvent) => {\n if (event.key === 'Shift') {\n this.selection.shiftPressed = false;\n }\n })\n );\n });\n }\n\n ngOnDestroy() {\n this._subscriptions.forEach((sub: Subscription) => sub.unsubscribe());\n }\n\n resize(): void {\n this.organizer.resize();\n }\n\n /**\n * Public method to re-trigger the computation of displayed items manually\n */\n dataChanged() {\n this.items.refresh();\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<ng-content select=\"clr-dg-action-bar\"></ng-content>\n<div class=\"datagrid-outer-wrapper\">\n <div class=\"datagrid-inner-wrapper\">\n <div class=\"datagrid\" #datagrid [attr.aria-hidden]=\"detailService.isOpen ? true : null\">\n <div class=\"datagrid-table-wrapper\">\n <div role=\"grid\" class=\"datagrid-table\" tabindex=\"-1\" #datagridTable>\n <div role=\"rowgroup\" class=\"datagrid-header\">\n <div role=\"row\" class=\"datagrid-row\">\n <div class=\"datagrid-row-master datagrid-row-flex\">\n <div class=\"datagrid-row-sticky\">\n <!--header for datagrid where you can select multiple rows -->\n <div\n role=\"columnheader\"\n class=\"datagrid-column datagrid-select datagrid-fixed-column\"\n *ngIf=\"selection.selectionType === SELECTION_TYPE.Multi\"\n (keydown.space)=\"allSelected = !allSelected; $event.preventDefault()\"\n >\n <div class=\"clr-checkbox-wrapper\">\n <!-- We need to move focus and space-key handling to the parent because of keyboard arrow key navigation,\n which is not able to transfer focus directly on the input when focused with the tab key -->\n <input\n type=\"checkbox\"\n [id]=\"selectAllId\"\n [(ngModel)]=\"allSelected\"\n [attr.aria-label]=\"commonStrings.keys.selectAll\"\n tabindex=\"-1\"\n />\n <!-- Usage of class clr-col-null here prevents clr-col-* classes from being added when a datagrid is wrapped inside clrForm -->\n <label [for]=\"selectAllId\" class=\"clr-control-label clr-col-null\">\n <span class=\"clr-sr-only\">{{commonStrings.keys.selectAll}}</span>\n </label>\n </div>\n\n <div class=\"datagrid-column-separator\"></div>\n </div>\n <!-- header for datagrid where you can select one row only -->\n <div\n role=\"columnheader\"\n class=\"datagrid-column datagrid-select datagrid-fixed-column\"\n *ngIf=\"selection.selectionType === SELECTION_TYPE.Single\"\n [attr.aria-label]=\"clrDgSingleSelectionAriaLabel\"\n >\n <div class=\"datagrid-column-separator\"></div>\n </div>\n <!-- header for single row action; only displayType if we have at least one actionable row in datagrid -->\n <div\n role=\"columnheader\"\n class=\"datagrid-column datagrid-row-actions datagrid-fixed-column\"\n *ngIf=\"rowActionService.hasActionableRow\"\n [attr.aria-label]=\"clrDgSingleActionableAriaLabel\"\n >\n <div class=\"datagrid-column-separator\"></div>\n </div>\n <!-- header for carets; only displayType if we have at least one expandable row in datagrid -->\n <div\n role=\"columnheader\"\n class=\"datagrid-column datagrid-expandable-caret datagrid-fixed-column\"\n *ngIf=\"expandableRows.hasExpandableRow || detailService.enabled\"\n [attr.aria-label]=\"clrDetailExpandableAriaLabel\"\n >\n <div class=\"datagrid-column-separator\"></div>\n </div>\n </div>\n <div class=\"datagrid-row-scrollable\">\n <ng-container #projectedDisplayColumns></ng-container>\n </div>\n </div>\n </div>\n </div>\n <ng-container #displayedRows></ng-container>\n <!-- Custom placeholder overrides the default empty one -->\n <ng-content select=\"clr-dg-placeholder\"></ng-content>\n <clr-dg-placeholder *ngIf=\"!placeholder\"></clr-dg-placeholder>\n </div>\n </div>\n </div>\n <ng-content select=\"clr-dg-footer\"></ng-content>\n <div class=\"datagrid-spinner\" *ngIf=\"loading\">\n <clr-spinner clrMedium>Loading</clr-spinner>\n </div>\n </div>\n <ng-content select=\"[clrIfDetail],clr-dg-detail\"></ng-content>\n</div>\n\n<div class=\"datagrid-calculation-table\">\n <div class=\"datagrid-calculation-header\">\n <ng-container #projectedCalculationColumns></ng-container>\n </div>\n <ng-container #calculationRows></ng-container>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-dg-action-bar',\n template: `<ng-content></ng-content>`,\n host: { '[class.datagrid-action-bar]': 'true' },\n})\nexport class ClrDatagridActionBar {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './key-focus';\nexport * from './key-focus-item';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n Component,\n EventEmitter,\n Inject,\n Input,\n NgZone,\n OnDestroy,\n Output,\n PLATFORM_ID,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrKeyFocus } from '../../utils/focus/key-focus';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrAlignment } from '../../utils/popover/enums/alignment.enum';\nimport { ClrAxis } from '../../utils/popover/enums/axis.enum';\nimport { ClrSide } from '../../utils/popover/enums/side.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { RowActionService } from './providers/row-action-service';\n\nlet clrDgActionId = 0;\n\n@Component({\n selector: 'clr-dg-action-overflow',\n hostDirectives: [ClrPopoverHostDirective],\n template: `\n <button\n class=\"datagrid-action-toggle\"\n type=\"button\"\n role=\"button\"\n aria-haspopup=\"true\"\n #anchor\n [attr.aria-controls]=\"popoverId\"\n [attr.aria-expanded]=\"open\"\n [attr.aria-label]=\"buttonLabel || commonStrings.keys.rowActions\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n >\n <cds-icon shape=\"ellipsis-vertical\" [attr.title]=\"buttonLabel || commonStrings.keys.rowActions\"></cds-icon>\n </button>\n\n <div\n class=\"datagrid-action-overflow\"\n [id]=\"popoverId\"\n [attr.aria-hidden]=\"!open\"\n [attr.id]=\"popoverId\"\n clrKeyFocus\n cdkTrapFocus\n (click)=\"closeOverflowContent($event)\"\n *clrPopoverContent=\"open; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n >\n <ng-content></ng-content>\n </div>\n `,\n})\nexport class ClrDatagridActionOverflow implements OnDestroy {\n @Input('clrDgActionOverflowButtonLabel') buttonLabel: string;\n\n @Output('clrDgActionOverflowOpenChange') openChange = new EventEmitter<boolean>(false);\n\n popoverId = uniqueIdFactory();\n\n smartPosition: ClrPopoverPosition = {\n axis: ClrAxis.HORIZONTAL,\n side: ClrSide.AFTER,\n anchor: ClrAlignment.CENTER,\n content: ClrAlignment.CENTER,\n };\n\n @ViewChild(ClrKeyFocus) private readonly keyFocus: ClrKeyFocus;\n\n private _open = false;\n private subscriptions: Subscription[] = [];\n\n constructor(\n private rowActionService: RowActionService,\n public commonStrings: ClrCommonStringsService,\n @Inject(PLATFORM_ID) private platformId: any,\n private zone: NgZone,\n private smartToggleService: ClrPopoverToggleService\n ) {\n this.rowActionService.register();\n this.subscriptions.push(\n this.smartToggleService.openChange.subscribe(openState => {\n this.open = openState;\n }),\n this.smartToggleService.popoverVisible.subscribe(visible => {\n if (visible) {\n this.initializeFocus();\n }\n })\n );\n this.popoverId = 'clr-action-menu' + clrDgActionId++;\n }\n\n @Input('clrDgActionOverflowOpen')\n get open() {\n return this._open;\n }\n set open(open: boolean) {\n const openState = !!open;\n if (!!openState !== this.open) {\n // prevents chocolate mess\n this.smartToggleService.open = openState;\n this.openChange.emit(openState);\n this._open = openState;\n }\n }\n\n ngOnDestroy() {\n this.rowActionService.unregister();\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n closeOverflowContent(event: Event): void {\n this.smartToggleService.toggleWithEvent(event);\n }\n\n private initializeFocus(): void {\n if (isPlatformBrowser(this.platformId)) {\n const buttons = Array.from(document.querySelectorAll<HTMLButtonElement>('button.action-item'));\n\n if (buttons.length) {\n this.keyFocus.current = 0;\n this.keyFocus.focusableItems = buttons;\n\n this.keyFocus.focusCurrent();\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/**\n * This file prevents an import cycle.\n */\n\nimport { TrackByFunction } from '@angular/core';\n\nimport { ColumnState } from './interfaces/column-state.interface';\n\nexport const columnToggleTrackByFn: TrackByFunction<ColumnState> = index => index;\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input, Optional, TrackByFunction } from '@angular/core';\n\nimport { columnToggleTrackByFn } from './datagrid-column-toggle-trackby';\nimport { Items } from './providers/items';\n\n@Directive({\n selector: '[ngForTrackBy]',\n})\nexport class ClrDatagridItemsTrackBy<T = any> {\n constructor(@Optional() private _items: Items<T>) {}\n\n @Input('ngForTrackBy')\n set trackBy(value: TrackByFunction<T>) {\n /**\n * This is a workaround to prevent the items `trackBy` function from\n * being replaced when the \"manage columns\" button is clicked. This is\n * not a complete solution. If there is another `ngForTrackBy` function\n * within the datagrid in application code, it could sill replace the\n * items `trackBy` function whether it is the row iterator or not.\n */\n if (value === columnToggleTrackByFn) {\n return;\n }\n\n if (this._items) {\n this._items.iteratorTrackBy = value;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Output } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { DatagridColumnChanges } from './enums/column-changes.enum';\nimport { ColumnState } from './interfaces/column-state.interface';\nimport { ColumnsService } from './providers/columns.service';\n\n@Component({\n selector: 'clr-dg-column-toggle-button',\n template: `\n <button\n class=\"btn btn-sm btn-link switch-button\"\n (click)=\"selectAll()\"\n [disabled]=\"allHideablesVisible\"\n type=\"button\"\n >\n {{ commonStrings.keys.selectAll }}\n </button>\n `,\n})\nexport class ClrDatagridColumnToggleButton {\n private allSelected: Subject<boolean> = new EventEmitter();\n\n constructor(public commonStrings: ClrCommonStringsService, private columnsService: ColumnsService) {}\n\n @Output('clrAllSelected')\n get clrAllSelected(): Observable<boolean> {\n return this.allSelected.asObservable();\n }\n\n get allHideablesVisible() {\n return this.hideableColumns().filter(column => column.value.hidden).length === 0;\n }\n\n selectAll() {\n this.hideableColumns().forEach(hideableColumn =>\n this.columnsService.emitStateChange(hideableColumn, {\n hidden: false,\n changes: [DatagridColumnChanges.HIDDEN],\n })\n );\n this.allSelected.next(true);\n }\n\n private hideableColumns(): BehaviorSubject<ColumnState>[] {\n return this.columnsService.columns.filter(column => column.value.hideable);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ElementRef, OnDestroy, ViewChild } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrAlignment } from '../../utils/popover/enums/alignment.enum';\nimport { ClrAxis } from '../../utils/popover/enums/axis.enum';\nimport { ClrSide } from '../../utils/popover/enums/side.enum';\nimport { ClrPopoverPosition } from '../../utils/popover/interfaces/popover-position.interface';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { columnToggleTrackByFn } from './datagrid-column-toggle-trackby';\nimport { DatagridColumnChanges } from './enums/column-changes.enum';\nimport { ColumnState } from './interfaces/column-state.interface';\nimport { ColumnsService } from './providers/columns.service';\n\n@Component({\n selector: 'clr-dg-column-toggle',\n template: `\n <button\n role=\"button\"\n type=\"button\"\n class=\"btn btn-sm column-toggle--action\"\n clrPopoverAnchor\n clrPopoverOpenCloseButton\n [attr.aria-controls]=\"popoverId\"\n [attr.aria-owns]=\"popoverId\"\n [attr.aria-expanded]=\"openState\"\n >\n {{ commonStrings.keys.pickColumns }}\n </button>\n <div\n class=\"column-switch\"\n role=\"dialog\"\n [attr.aria-label]=\"commonStrings.keys.showColumnsMenuDescription\"\n [id]=\"popoverId\"\n cdkTrapFocus\n *clrPopoverContent=\"openState; at: smartPosition; outsideClickToClose: true; scrollToClose: true\"\n >\n <div class=\"switch-header\">\n <div class=\"clr-sr-only\" tabindex=\"-1\" #allSelected>{{ commonStrings.keys.allColumnsSelected }}</div>\n <h2>{{ commonStrings.keys.showColumns }}</h2>\n <button\n class=\"btn btn-sm btn-link toggle-switch-close-button\"\n clrPopoverCloseButton\n type=\"button\"\n [attr.aria-label]=\"commonStrings.keys.close\"\n >\n <cds-icon shape=\"window-close\" aria-hidden=\"true\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n <span class=\"clr-sr-only\">{{ commonStrings.keys.close }}</span>\n </button>\n </div>\n <ul class=\"switch-content list-unstyled\">\n <li *ngFor=\"let columnState of hideableColumnStates; trackBy: trackByFn\">\n <clr-checkbox-wrapper>\n <input\n clrCheckbox\n type=\"checkbox\"\n [disabled]=\"hasOnlyOneVisibleColumn && !columnState.hidden\"\n [ngModel]=\"!columnState.hidden\"\n (ngModelChange)=\"toggleColumnState(columnState, !$event)\"\n />\n <label>\n <ng-template [ngTemplateOutlet]=\"columnState.titleTemplateRef\"></ng-template>\n </label>\n </clr-checkbox-wrapper>\n </li>\n </ul>\n <div class=\"switch-footer\">\n <clr-dg-column-toggle-button (clrAllSelected)=\"allColumnsSelected()\"></clr-dg-column-toggle-button>\n </div>\n </div>\n `,\n host: { '[class.column-switch-wrapper]': 'true', '[class.active]': 'openState' },\n hostDirectives: [ClrPopoverHostDirective],\n})\nexport class ClrDatagridColumnToggle implements OnDestroy {\n popoverId = uniqueIdFactory();\n openState: boolean;\n\n // Smart Popover\n smartPosition: ClrPopoverPosition = {\n axis: ClrAxis.VERTICAL,\n side: ClrSide.BEFORE,\n anchor: ClrAlignment.START,\n content: ClrAlignment.START,\n };\n\n // Without tracking the checkboxes get rerendered on model update, which leads\n // to loss of focus after checkbox toggle.\n readonly trackByFn = columnToggleTrackByFn;\n\n private _allColumnsVisible: boolean;\n private subscription: Subscription;\n\n @ViewChild('allSelected', { read: ElementRef }) private allSelectedElement: ElementRef<HTMLElement>;\n\n constructor(\n public commonStrings: ClrCommonStringsService,\n private columnsService: ColumnsService,\n popoverToggleService: ClrPopoverToggleService\n ) {\n this.subscription = popoverToggleService.openChange.subscribe(change => (this.openState = change));\n }\n\n get allColumnsVisible(): boolean {\n return this._allColumnsVisible;\n }\n set allColumnsVisible(value: boolean) {\n this._allColumnsVisible = value;\n }\n\n get hideableColumnStates(): ColumnState[] {\n const hideables = this.columnsService.columns.filter(column => column.value.hideable);\n return hideables.map(column => column.value);\n }\n\n get hasOnlyOneVisibleColumn(): boolean {\n const nbNonHideableColumns = this.columnsService.columns.length - this.hideableColumnStates.length;\n // this should only return true when there is no non-hideable columns.\n return (\n nbNonHideableColumns === 0 && this.hideableColumnStates.filter(columnState => !columnState.hidden).length === 1\n );\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n\n toggleColumnState(columnState: ColumnState, event: boolean) {\n const columnToToggle = this.columnsService.columns.filter(column => column.value === columnState)[0];\n this.columnsService.emitStateChange(columnToToggle, {\n hidden: event,\n changes: [DatagridColumnChanges.HIDDEN],\n });\n }\n\n toggleSwitchPanel() {\n this.openState = !this.openState;\n }\n\n allColumnsSelected() {\n this.allSelectedElement.nativeElement.focus();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { DetailService } from './providers/detail.service';\n\n@Component({\n selector: 'clr-dg-detail-header',\n host: {\n '[class.datagrid-detail-header]': 'true',\n },\n template: `\n <div class=\"datagrid-detail-header-title\" cdkFocusInitial tabindex=\"-1\" [id]=\"titleId\">\n <ng-content></ng-content>\n </div>\n <div class=\"datagrid-detail-pane-close\">\n <button\n type=\"button\"\n class=\"btn btn-link\"\n (click)=\"detailService.close()\"\n [attr.aria-label]=\"commonStrings.keys.close\"\n >\n <cds-icon shape=\"times\"></cds-icon>\n </button>\n </div>\n `,\n})\nexport class ClrDatagridDetailHeader {\n constructor(public detailService: DetailService, public commonStrings: ClrCommonStringsService) {}\n\n get titleId() {\n return `${this.detailService.id}-title`;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrDatagridDetailHeader } from './datagrid-detail-header';\nimport { DetailService } from './providers/detail.service';\n\n@Component({\n selector: 'clr-dg-detail',\n host: {\n '[class.datagrid-detail-pane]': 'true',\n },\n // We put the *ngIf on the cdkTrapFocus so it doesn't always exist on the page\n // have to test for presence of header for aria-describedby because it was causing unit tests to crash\n template: `\n <div\n cdkTrapFocus\n [cdkTrapFocusAutoCapture]=\"true\"\n class=\"datagrid-detail-pane-content\"\n *ngIf=\"detailService.isOpen\"\n role=\"dialog\"\n [id]=\"detailService.id\"\n aria-modal=\"true\"\n [attr.aria-describedby]=\"header ? header.titleId : ''\"\n >\n <div class=\"clr-sr-only\">{{ commonStrings.keys.detailPaneStart }}</div>\n <ng-content></ng-content>\n <div class=\"clr-sr-only\">{{ commonStrings.keys.detailPaneEnd }}</div>\n </div>\n `,\n})\nexport class ClrDatagridDetail {\n @ContentChild(ClrDatagridDetailHeader) header: ClrDatagridDetailHeader;\n\n constructor(public detailService: DetailService, public commonStrings: ClrCommonStringsService) {}\n\n close(): void {\n this.detailService.close();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-dg-detail-body',\n template: `\n <div class=\"clr-dg-detail-body-wrapper\">\n <ng-content></ng-content>\n </div>\n `,\n host: {\n '[class.datagrid-detail-body]': 'true',\n },\n})\nexport class ClrDatagridDetailBody {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Optional } from '@angular/core';\n\nimport { ExpandableRowsCount } from './providers/global-expandable-rows';\n\n/*\n * I don't think this deserves to be in IfExpanded itself,\n * so I'm adding a second directive on the same selector for now just for the datagrid\n */\n@Directive({\n selector: '[clrIfExpanded]',\n})\nexport class DatagridDetailRegisterer {\n constructor(@Optional() private expandableRowsCount: ExpandableRowsCount) {\n if (this.expandableRowsCount) {\n this.expandableRowsCount.register();\n }\n }\n\n ngOnDestroy() {\n if (this.expandableRowsCount) {\n this.expandableRowsCount.unregister();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils';\nimport { SelectionType } from './enums/selection-type';\nimport { ColumnsService } from './providers/columns.service';\nimport { DetailService } from './providers/detail.service';\nimport { Selection } from './providers/selection';\n\n@Component({\n selector: 'clr-dg-footer',\n template: `\n <ng-container *ngIf=\"selection.selectionType === SELECTION_TYPE.Multi && selection.current.length > 0\">\n <div class=\"clr-form-control-disabled\">\n <clr-checkbox-wrapper class=\"datagrid-footer-select\">\n <input clrCheckbox type=\"checkbox\" checked=\"checked\" disabled />\n <label>{{ selection.current.length }}</label>\n <span class=\"clr-sr-only\">{{ commonStrings.keys.selectedRows }}</span>\n </clr-checkbox-wrapper>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!detailService.isOpen\">\n <clr-dg-column-toggle *ngIf=\"hasHideableColumns\"></clr-dg-column-toggle>\n <div class=\"datagrid-footer-description\">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <ng-content select=\"clr-dg-pagination\"></ng-content>\n `,\n host: {\n '[class.datagrid-footer]': 'true',\n },\n})\nexport class ClrDatagridFooter<T = any> {\n /* reference to the enum so that template can access */\n SELECTION_TYPE = SelectionType;\n\n constructor(\n public selection: Selection<T>,\n public detailService: DetailService,\n private columnsService: ColumnsService,\n public commonStrings: ClrCommonStringsService\n ) {}\n\n get hasHideableColumns(): boolean {\n return this.columnsService.hasHideableColumns;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { InjectionToken } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs';\n\nimport { ColumnState } from '../interfaces/column-state.interface';\n\nexport const COLUMN_STATE = new InjectionToken<ColumnState>('COLUMN_STATE');\n\nexport function columnStateFactory() {\n return new BehaviorSubject<ColumnState>({\n changes: [],\n });\n}\n\nexport const COLUMN_STATE_PROVIDER = {\n provide: COLUMN_STATE,\n useFactory: columnStateFactory,\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n EventEmitter,\n Inject,\n Input,\n OnDestroy,\n Optional,\n Output,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\nimport { DatagridColumnChanges } from './enums/column-changes.enum';\nimport { ColumnState } from './interfaces/column-state.interface';\nimport { COLUMN_STATE } from './providers/column-state.provider';\nimport { ColumnsService } from './providers/columns.service';\n\n@Directive({\n selector: '[clrDgHideableColumn]',\n})\n\n/**\n *\n * @description\n * A structural directive meant to be used inside a clr-dg-column component.\n *\n * <clr-dg-column>\n * <ng-container *clrDgHideableColumn=\"{ hidden: true }\">\n * User ID\n * </ng-container>\n * </clr-dg-column>\n *\n * It sets up state and properties so that columns can be manges for hide/show by a service and an internal\n * datagrid toggle component.\n *\n */\nexport class ClrDatagridHideableColumn implements OnDestroy {\n @Output('clrDgHiddenChange') hiddenChange = new EventEmitter<boolean>();\n\n /**\n *\n * @description\n * Used to initialize the column with either hidden or visible state.\n *\n */\n private _hidden: boolean;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n private titleTemplateRef: TemplateRef<any>,\n private viewContainerRef: ViewContainerRef,\n private columnsService: ColumnsService,\n @Optional()\n @Inject(COLUMN_STATE)\n private columnState: BehaviorSubject<ColumnState>\n ) {\n this.viewContainerRef.createEmbeddedView(this.titleTemplateRef);\n\n if (!this.columnState) {\n throw new Error('The *clrDgHideableColumn directive can only be used inside of a clr-dg-column component.');\n }\n }\n\n /**\n *\n * @description\n * Setter fn for the @Input with the same name as this structural directive.\n * It allows the user to pre-configure the column's hide/show state. { hidden: true }\n * It's more verbose but has more Clarity.\n *\n * @example\n * *clrDgHideableColumn\n * *clrDgHideableColumn={hidden: false}\n * *clrDgHideableColumn={hidden: true}\n *\n */\n @Input('clrDgHideableColumn')\n set clrDgHideableColumn(value: { hidden: boolean } | string) {\n if (typeof value === 'string') {\n this.clrDgHidden = false;\n return;\n }\n this.clrDgHidden = value && value.hidden ? value.hidden : false;\n }\n\n @Input('clrDgHidden')\n set clrDgHidden(hidden: boolean) {\n this._hidden = hidden ? hidden : false;\n this.columnsService.emitStateChange(this.columnState, {\n hidden: this._hidden,\n changes: [DatagridColumnChanges.HIDDEN],\n });\n }\n\n ngOnInit() {\n this.columnsService.emitStateChange(this.columnState, {\n hideable: true,\n titleTemplateRef: this.titleTemplateRef,\n hidden: this._hidden,\n changes: [DatagridColumnChanges.HIDDEN],\n });\n\n this.subscriptions.push(\n this.columnState.subscribe((state: ColumnState) => {\n if (state.changes && state.changes.indexOf(DatagridColumnChanges.HIDDEN) > -1) {\n this.hiddenChange.emit(state.hidden); // Can emit through @Output when desugared syntax is used\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Directive,\n EmbeddedViewRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { DetailService } from './providers/detail.service';\n\n@Directive({\n selector: '[clrIfDetail]',\n})\nexport class ClrIfDetail implements OnInit, OnDestroy {\n @Output('clrIfDetailChange') stateChange = new EventEmitter<any>(null);\n\n private subscriptions: Subscription[] = [];\n private skip = false; // This keeps us from resetting the input and calling the toggle twice\n private embeddedViewRef: EmbeddedViewRef<any>;\n\n constructor(\n private templateRef: TemplateRef<any>,\n private viewContainer: ViewContainerRef,\n private detailService: DetailService\n ) {\n this.detailService.enabled = true;\n }\n\n @Input('clrIfDetail')\n set state(model: any) {\n if (!this.skip) {\n this.detailService.toggle(model);\n }\n this.skip = false;\n }\n\n ngOnInit() {\n this.subscriptions.push(\n this.detailService.stateChange.subscribe(state => {\n if (state === true) {\n this.togglePanel(true);\n } else {\n this.togglePanel(false);\n }\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n private togglePanel(showPanel: boolean) {\n let stateChangeParams = null;\n\n if (showPanel === true) {\n const embeddedViewContext = { $implicit: this.detailService.state };\n\n if (this.embeddedViewRef) {\n this.embeddedViewRef.context = embeddedViewContext;\n } else {\n this.embeddedViewRef = this.viewContainer.createEmbeddedView(this.templateRef, embeddedViewContext);\n }\n\n this.skip = true;\n stateChangeParams = this.detailService.state;\n } else {\n this.viewContainer.clear();\n this.embeddedViewRef = null;\n }\n\n this.stateChange.emit(stateChangeParams);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Input } from '@angular/core';\n\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { Page } from './providers/page';\n\n@Component({\n selector: 'clr-dg-page-size',\n template: `\n <label [for]=\"pageSizeOptionsId\"><ng-content></ng-content></label>\n <div class=\"clr-select-wrapper\">\n <select [id]=\"pageSizeOptionsId\" [class.clr-page-size-select]=\"true\" [(ngModel)]=\"page.size\">\n <option *ngFor=\"let option of pageSizeOptions\" [ngValue]=\"option\">{{ option }}</option>\n </select>\n </div>\n `,\n})\nexport class ClrDatagridPageSize {\n @Input('clrPageSizeOptions') pageSizeOptions: number[];\n @Input('clrPageSizeOptionsId') pageSizeOptionsId = uniqueIdFactory();\n\n constructor(public page: Page) {}\n\n ngOnInit() {\n if (!this.pageSizeOptions || this.pageSizeOptions.length === 0) {\n this.pageSizeOptions = [this.page.size];\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrDatagridPageSize } from './datagrid-page-size';\nimport { DetailService } from './providers/detail.service';\nimport { Page } from './providers/page';\n\n@Component({\n selector: 'clr-dg-pagination',\n template: `\n <ng-container *ngIf=\"!detailService.isOpen\">\n <div class=\"pagination-size\" *ngIf=\"_pageSizeComponent\">\n <ng-content select=\"clr-dg-page-size\"></ng-content>\n </div>\n <div class=\"pagination-description\">\n <ng-content></ng-content>\n </div>\n <div class=\"pagination-list\" *ngIf=\"page.last > 1\">\n <button\n type=\"button\"\n class=\"pagination-first\"\n [disabled]=\"page.current <= 1\"\n (click)=\"page.current = 1\"\n [attr.aria-label]=\"commonStrings.keys.firstPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.firstPage }}</span>\n <cds-icon shape=\"step-forward-2\" direction=\"down\"></cds-icon>\n </button>\n <button\n type=\"button\"\n class=\"pagination-previous\"\n [disabled]=\"page.current <= 1\"\n (click)=\"page.current = page.current - 1\"\n [attr.aria-label]=\"commonStrings.keys.previousPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.previousPage }}</span>\n <cds-icon shape=\"angle\" direction=\"left\"></cds-icon>\n </button>\n <input\n *ngIf=\"!disableCurrentPageInput; else readOnly\"\n #currentPageInput\n type=\"text\"\n class=\"pagination-current clr-input\"\n [size]=\"page.last.toString().length\"\n [value]=\"page.current\"\n (keydown.enter)=\"updateCurrentPage($event)\"\n (blur)=\"verifyCurrentPage($event)\"\n [attr.aria-label]=\"commonStrings.keys.currentPage\"\n />\n <ng-template #readOnly>\n <span>{{ page.current }}</span>\n </ng-template>\n\n &nbsp;/&nbsp;<span [attr.aria-label]=\"commonStrings.keys.totalPages\">{{ page.last }}</span>\n <button\n type=\"button\"\n class=\"pagination-next\"\n [disabled]=\"page.current >= page.last\"\n (click)=\"page.current = page.current + 1\"\n [attr.aria-label]=\"commonStrings.keys.nextPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.nextPage }}</span>\n <cds-icon shape=\"angle\" direction=\"right\"></cds-icon>\n </button>\n <button\n type=\"button\"\n class=\"pagination-last\"\n [disabled]=\"page.current >= page.last\"\n (click)=\"page.current = page.last\"\n [attr.aria-label]=\"commonStrings.keys.lastPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.lastPage }}</span>\n <cds-icon shape=\"step-forward-2\" direction=\"up\"></cds-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"detailService.isOpen\">\n <div class=\"pagination-description-compact\">\n {{ page.firstItem + 1 }}-{{ page.lastItem + 1 }} / {{ page.totalItems }}\n </div>\n <div class=\"pagination-list\">\n <button\n type=\"button\"\n class=\"pagination-previous\"\n [disabled]=\"page.current <= 1\"\n (click)=\"page.current = page.current - 1\"\n [attr.aria-label]=\"commonStrings.keys.previousPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.previousPage }}</span>\n <cds-icon shape=\"angle\" direction=\"left\"></cds-icon>\n </button>\n <span>{{ page.current }}</span>\n <button\n type=\"button\"\n class=\"pagination-next\"\n [disabled]=\"page.current >= page.last\"\n (click)=\"page.current = page.current + 1\"\n [attr.aria-label]=\"commonStrings.keys.nextPage\"\n >\n <span class=\"clr-sr-only\">{{ commonStrings.keys.nextPage }}</span>\n <cds-icon shape=\"angle\" direction=\"right\"></cds-icon>\n </button>\n </div>\n </ng-container>\n `,\n host: { '[class.pagination]': 'true' },\n})\nexport class ClrDatagridPagination implements OnDestroy, OnInit {\n @Input('clrDgPageInputDisabled') disableCurrentPageInput: boolean;\n\n @Output('clrDgPageChange') currentChanged = new EventEmitter<number>(false);\n\n @ContentChild(ClrDatagridPageSize) _pageSizeComponent: ClrDatagridPageSize;\n\n @ViewChild('currentPageInput') currentPageInputRef: ElementRef;\n\n /**\n * Subscription to the page service changes\n */\n private _pageSubscription: Subscription;\n\n constructor(public page: Page, public commonStrings: ClrCommonStringsService, public detailService: DetailService) {\n this.page.activated = true;\n }\n\n /**\n * Page size\n */\n @Input('clrDgPageSize')\n get pageSize(): number {\n return this.page.size;\n }\n set pageSize(size: number) {\n // todo(v16): Remove this check. The property type used to be `string | number`. I kept this check to maintain the no-op if you pass a string.\n if (typeof size === 'number') {\n this.page.size = size;\n }\n }\n\n /**\n * Total items (needed to guess the last page)\n */\n @Input('clrDgTotalItems')\n get totalItems(): number {\n return this.page.totalItems;\n }\n set totalItems(total: number) {\n // todo(v16): Remove this check. The property type used to be `string | number`. I kept this check to maintain the no-op if you pass a string.\n if (typeof total === 'number') {\n this.page.totalItems = total;\n }\n }\n\n /**\n * Last page\n */\n @Input('clrDgLastPage')\n get lastPage(): number {\n return this.page.last;\n }\n set lastPage(last: number) {\n // todo(v16): Remove this check. The property type used to be `string | number`. I kept this check to maintain the no-op if you pass a string.\n if (typeof last === 'number') {\n this.page.last = last;\n }\n }\n\n /**\n * Current page\n */\n @Input('clrDgPage')\n get currentPage(): number {\n return this.page.current;\n }\n set currentPage(page: number) {\n // todo(v16): Remove this check. The property type used to be `string | number`. I kept this check to maintain the no-op if you pass a string.\n if (typeof page === 'number') {\n this.page.current = page;\n }\n }\n\n /**\n * Index of the first item displayed on the current page, starting at 0, -1 if none displayed\n */\n get firstItem(): number {\n return this.page.firstItem;\n }\n\n /**\n * Index of the last item displayed on the current page, starting at 0, -1 if none displayed\n */\n get lastItem(): number {\n return this.page.lastItem;\n }\n\n /**\n * Conditionally adds page numbers before and after the current page\n */\n get middlePages(): number[] {\n const middlePages: number[] = [];\n if (this.page.current > 1) {\n middlePages.push(this.page.current - 1);\n }\n middlePages.push(this.page.current);\n if (this.page.current < this.page.last) {\n middlePages.push(this.page.current + 1);\n }\n return middlePages;\n }\n\n /**********\n * Subscription to the Page service for page changes.\n * Note: this only emits after the datagrid is initialized/stabalized and the page changes.\n */\n ngOnInit() {\n /*\n * Default page size is 10.\n * The reason we set it here and not in the provider itself is because\n * we don't want pagination if this component isn't present in the datagrid.\n */\n if (!this.page.size) {\n this.page.size = 10;\n }\n this._pageSubscription = this.page.change.subscribe(current => this.currentChanged.emit(current));\n }\n\n ngOnDestroy() {\n this.page.resetPageSize(true);\n if (this._pageSubscription) {\n this._pageSubscription.unsubscribe();\n }\n }\n\n /**\n * Moves to the previous page if it exists\n */\n previous() {\n this.page.previous();\n }\n\n /**\n * Moves to the next page if it exists\n */\n next() {\n this.page.next();\n }\n\n verifyCurrentPage(event: any): void {\n const parsed = parseInt(event.target.value, 10);\n if (parsed !== this.page.current) {\n event.target.value = this.page.current;\n }\n }\n\n /**\n * We only update the pagination's current page on enter.\n */\n updateCurrentPage(event: any): void {\n const parsed = parseInt(event.target.value, 10);\n\n // if the input value, is not a number, we don't update the page\n if (!isNaN(parsed)) {\n if (parsed < 1) {\n this.page.current = 1;\n } else if (parsed > this.page.last) {\n this.page.current = this.page.last;\n } else {\n this.page.current = parsed;\n }\n }\n\n /**\n * Set the input's value to the new current page. This is needed because the code\n * above may have changed the value from what the user entered in.\n */\n this.currentPageInputRef.nativeElement.value = this.page.current;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, Component, ContentChildren, Input, OnDestroy, QueryList } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrDatagridCell } from './datagrid-cell';\nimport { DatagridIfExpandService } from './datagrid-if-expanded.service';\nimport { SelectionType } from './enums/selection-type';\nimport { ExpandableRowsCount } from './providers/global-expandable-rows';\nimport { RowActionService } from './providers/row-action-service';\nimport { Selection } from './providers/selection';\n\n/**\n * Generic bland container serving various purposes for Datagrid.\n * For instance, it can help span a text over multiple rows in detail view.\n */\n@Component({\n selector: 'clr-dg-row-detail',\n template: `\n <div class=\"clr-sr-only\">\n {{ beginningOfExpandableContentAriaText }}\n {{ commonStrings.keys.datagridExpandableRowsHelperText }}\n </div>\n <ng-content></ng-content>\n <div class=\"clr-sr-only\">{{ endOfExpandableContentAriaText }}</div>\n `,\n host: {\n '[class.datagrid-row-flex]': 'true',\n '[class.datagrid-row-detail]': 'true',\n '[class.datagrid-container]': 'cells.length === 0',\n '[attr.id]': 'expand.expandableId',\n role: 'gridcell',\n },\n})\nexport class ClrDatagridRowDetail implements AfterContentInit, OnDestroy {\n @Input('clrRowDetailBeginningAriaText') _beginningOfExpandableContentAriaText: string;\n @Input('clrRowDetailEndAriaText') _endOfExpandableContentAriaText: string;\n\n replacedRow = false;\n\n /* reference to the enum so that template can access it */\n SELECTION_TYPE = SelectionType;\n\n @ContentChildren(ClrDatagridCell) cells: QueryList<ClrDatagridCell>;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n public selection: Selection,\n public rowActionService: RowActionService,\n public expand: DatagridIfExpandService,\n public expandableRows: ExpandableRowsCount,\n public commonStrings: ClrCommonStringsService\n ) {}\n\n @Input('clrDgReplace')\n set replace(value: boolean) {\n this.expand.setReplace(!!value);\n }\n\n get beginningOfExpandableContentAriaText() {\n return (\n this._beginningOfExpandableContentAriaText ||\n `${this.commonStrings.keys.datagridExpandableBeginningOf} \n ${this.commonStrings.keys.datagridExpandableRowContent}`\n );\n }\n\n get endOfExpandableContentAriaText() {\n return (\n this._endOfExpandableContentAriaText ||\n `${this.commonStrings.keys.datagridExpandableEndOf} \n ${this.commonStrings.keys.datagridExpandableRowContent}`\n );\n }\n\n ngAfterContentInit() {\n this.subscriptions.push(\n this.expand.replace.subscribe(replaceChange => {\n this.replacedRow = replaceChange;\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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// @TODO The top two are not used now, which is probably a performance drag that was broken along the way.\n// There was a previous pattern to hide everything to do computation then display, for Firefox, needs revisiting.\nexport const NO_LAYOUT_CLASS = 'datagrid-no-layout';\nexport const COMPUTE_WIDTH_CLASS = 'datagrid-computing-columns-width';\nexport const STRICT_WIDTH_CLASS = 'datagrid-fixed-width';\nexport const HIDDEN_COLUMN_CLASS = 'datagrid-hidden-column';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, OnDestroy, Renderer2 } from '@angular/core';\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\nimport { ALL_COLUMN_CHANGES, DatagridColumnChanges } from '../enums/column-changes.enum';\nimport { DatagridRenderStep } from '../enums/render-step.enum';\nimport { ColumnState } from '../interfaces/column-state.interface';\nimport { HIDDEN_COLUMN_CLASS, STRICT_WIDTH_CLASS } from './constants';\nimport { DatagridRenderOrganizer } from './render-organizer';\n\n@Directive({\n selector: 'clr-dg-cell',\n})\nexport class DatagridCellRenderer implements OnDestroy {\n private runAllChanges: DatagridColumnChanges[];\n private stateSubscription: Subscription;\n private subscriptions: Subscription[] = [];\n\n constructor(private el: ElementRef, private renderer: Renderer2, organizer: DatagridRenderOrganizer) {\n this.subscriptions.push(\n organizer.filterRenderSteps(DatagridRenderStep.CLEAR_WIDTHS).subscribe(() => this.clearWidth())\n );\n }\n\n // @TODO(JEREMY) Work out how to dedupe some of this code between header and cell renderers\n set columnState(columnState: BehaviorSubject<ColumnState>) {\n if (this.stateSubscription) {\n this.stateSubscription.unsubscribe();\n }\n\n this.runAllChanges = ALL_COLUMN_CHANGES;\n this.stateSubscription = columnState.subscribe(state => this.stateChanges(state));\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n if (this.stateSubscription) {\n this.stateSubscription.unsubscribe();\n }\n }\n\n private stateChanges(state: ColumnState) {\n if (this.runAllChanges) {\n state.changes = this.runAllChanges;\n delete this.runAllChanges;\n }\n if (state.changes && state.changes.length) {\n state.changes.forEach(change => {\n switch (change) {\n case DatagridColumnChanges.WIDTH:\n this.setWidth(state);\n break;\n case DatagridColumnChanges.HIDDEN:\n this.setHidden(state);\n break;\n default:\n break;\n }\n });\n }\n }\n\n private clearWidth() {\n this.renderer.removeClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n this.renderer.setStyle(this.el.nativeElement, 'width', null);\n }\n\n private setWidth(state: ColumnState) {\n if (state.strictWidth) {\n this.renderer.addClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n } else {\n this.renderer.removeClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n }\n this.renderer.setStyle(this.el.nativeElement, 'width', state.width + 'px');\n }\n\n private setHidden(state: ColumnState) {\n if (state.hidden) {\n this.renderer.addClass(this.el.nativeElement, HIDDEN_COLUMN_CLASS);\n } else {\n this.renderer.removeClass(this.el.nativeElement, HIDDEN_COLUMN_CLASS);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, EventEmitter, Inject, OnDestroy, Output, Renderer2 } from '@angular/core';\nimport { BehaviorSubject, Subscription } from 'rxjs';\n\nimport { DomAdapter } from '../../../utils/dom-adapter/dom-adapter';\nimport { DatagridColumnChanges } from '../enums/column-changes.enum';\nimport { DatagridRenderStep } from '../enums/render-step.enum';\nimport { ColumnState } from '../interfaces/column-state.interface';\nimport { ColumnResizerService } from '../providers/column-resizer.service';\nimport { COLUMN_STATE, COLUMN_STATE_PROVIDER } from '../providers/column-state.provider';\nimport { ColumnsService } from '../providers/columns.service';\nimport { HIDDEN_COLUMN_CLASS, STRICT_WIDTH_CLASS } from './constants';\nimport { DatagridRenderOrganizer } from './render-organizer';\n\n@Directive({\n selector: 'clr-dg-column',\n providers: [ColumnResizerService, COLUMN_STATE_PROVIDER],\n})\nexport class DatagridHeaderRenderer implements OnDestroy {\n @Output('clrDgColumnResize') resizeEmitter = new EventEmitter<number>();\n\n /**\n * Indicates if the column has a strict width, so it doesn't shrink or expand based on the content.\n */\n private widthSet = false;\n private autoSet = false;\n private subscriptions: Subscription[] = [];\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2,\n private organizer: DatagridRenderOrganizer,\n private domAdapter: DomAdapter,\n private columnResizerService: ColumnResizerService,\n private columnsService: ColumnsService,\n @Inject(COLUMN_STATE) private columnState: BehaviorSubject<ColumnState>\n ) {\n this.subscriptions.push(\n this.organizer.filterRenderSteps(DatagridRenderStep.CLEAR_WIDTHS).subscribe(() => this.clearWidth())\n );\n\n this.subscriptions.push(columnState.subscribe(state => this.stateChanges(state)));\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n getColumnWidthState(): Partial<ColumnState> {\n const strictWidth = this.detectStrictWidth();\n return {\n width: this.computeWidth(strictWidth),\n strictWidth: strictWidth,\n };\n }\n\n setColumnState(index: number) {\n this.columnsService.columns[index] = this.columnState;\n }\n\n private stateChanges(state: ColumnState) {\n if (state.changes && state.changes.length) {\n state.changes.forEach(change => {\n switch (change) {\n case DatagridColumnChanges.WIDTH:\n this.setWidth(state);\n break;\n case DatagridColumnChanges.HIDDEN:\n this.setHidden(state);\n break;\n default:\n break;\n }\n });\n }\n }\n\n private clearWidth() {\n // remove the width only if we set it, and it is not changed by dragging.\n if (this.widthSet && !this.columnResizerService.resizedBy) {\n this.renderer.setStyle(this.el.nativeElement, 'width', null);\n }\n if (this.autoSet) {\n this.renderer.removeClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n }\n }\n\n private detectStrictWidth(): number {\n if (this.columnResizerService.resizedBy) {\n return this.columnResizerService.widthAfterResize;\n } else if (this.autoSet) {\n return 0;\n } else {\n return this.domAdapter.userDefinedWidth(this.el.nativeElement);\n }\n }\n\n private computeWidth(strictWidth: number): number {\n let width: number = strictWidth;\n if (!width) {\n width = this.domAdapter.scrollWidth(this.el.nativeElement);\n }\n return width;\n }\n\n private setWidth(state: ColumnState) {\n if (state.strictWidth) {\n if (this.columnResizerService.resizedBy) {\n this.resizeEmitter.emit(state.width);\n this.renderer.setStyle(this.el.nativeElement, 'width', state.width + 'px');\n this.widthSet = false;\n }\n // Don't set width if there is a user-defined one. Just add the strict width class.\n this.renderer.addClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n this.autoSet = false;\n } else {\n this.renderer.removeClass(this.el.nativeElement, STRICT_WIDTH_CLASS);\n this.renderer.setStyle(this.el.nativeElement, 'width', state.width + 'px');\n this.widthSet = true;\n this.autoSet = true;\n }\n }\n\n private setHidden(state: ColumnState) {\n if (state.hidden) {\n this.renderer.addClass(this.el.nativeElement, HIDDEN_COLUMN_CLASS);\n } else {\n this.renderer.removeClass(this.el.nativeElement, HIDDEN_COLUMN_CLASS);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/*\n * This version of the DomAdapter is for use on non-browser platforms, where there are no\n * nativeElements to use for calculations.\n */\n\nimport { Injectable } from '@angular/core';\n\nimport { DomAdapter } from '../../../utils/dom-adapter/dom-adapter';\n\n@Injectable()\nexport class NoopDomAdapter implements DomAdapter {\n userDefinedWidth(_element: any): number {\n return 0;\n }\n\n scrollBarWidth(_element: any) {\n return 0;\n }\n\n scrollWidth(_element: any) {\n return 0;\n }\n\n computedHeight(_element: any): number {\n return 0;\n }\n\n clientRect(_element: any): DOMRect {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n width: 0,\n height: 0,\n } as DOMRect;\n }\n\n minWidth(_element: any): number {\n return 0;\n }\n\n focus(_element: any): void {\n // Do nothing\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { AfterContentInit, ContentChildren, Directive, OnDestroy, QueryList } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ColumnsService } from '../providers/columns.service';\nimport { DatagridCellRenderer } from './cell-renderer';\n\n@Directive({\n selector: 'clr-dg-row, clr-dg-row-detail',\n})\nexport class DatagridRowRenderer implements AfterContentInit, OnDestroy {\n @ContentChildren(DatagridCellRenderer) private cells: QueryList<DatagridCellRenderer>;\n\n private subscriptions: Subscription[] = [];\n\n constructor(private columnsService: ColumnsService) {}\n\n ngAfterContentInit() {\n this.setColumnState(); // case #3 and #4\n this.subscriptions.push(\n this.cells.changes.subscribe(() => {\n this.setColumnState(); // case #2\n // Note on case #2: In the case of dynamic columns, when one column (header/cell together) gets deleted,\n // this.cells.changes emits before this.columnsService.columns gets updated in MainRenderer\n // when this.headers.changes emits as well. So that means there will be n+1 column state providers\n // when this.cells.changes emits. Hence, we should quit earlier there. But this method will be called\n // right after again when this.headers.changes emits. By then, there will be the same number of column state\n // providers as column headers.\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n setColumnState() {\n // This method runs in four cases:\n // 1. When the initial rows appear on the first page.\n // In this case, the method will be called in DatagridMainRenderer.\n // 2. When columns (corresponding header/cells) get added and deleted.\n // In this case, the method will be called in DatagridMainRenderer. (Read the note on this case above).\n // 3. When rows load asynchronously.\n // In this case, the method will be called in this class.\n // 4. When rows load after switching pages.\n // In this case, the method will be called in this class (Basically, same as the case 3).\n if (this.cells.length === this.columnsService.columns.length) {\n this.cells.forEach((cell, index) => {\n if (this.columnsService.columns[index]) {\n cell.columnState = this.columnsService.columns[index];\n }\n });\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewChecked,\n AfterViewInit,\n ContentChildren,\n Directive,\n ElementRef,\n NgZone,\n OnDestroy,\n PLATFORM_ID,\n QueryList,\n Renderer2,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { DomAdapter } from '../../../utils/dom-adapter/dom-adapter';\nimport { DatagridColumnChanges } from '../enums/column-changes.enum';\nimport { DatagridRenderStep } from '../enums/render-step.enum';\nimport { ColumnStateDiff } from '../interfaces/column-state.interface';\nimport { ColumnsService } from '../providers/columns.service';\nimport { DetailService } from '../providers/detail.service';\nimport { Items } from '../providers/items';\nimport { Page } from '../providers/page';\nimport { TableSizeService } from '../providers/table-size.service';\nimport { DatagridHeaderRenderer } from './header-renderer';\nimport { NoopDomAdapter } from './noop-dom-adapter';\nimport { DatagridRenderOrganizer } from './render-organizer';\nimport { DatagridRowRenderer } from './row-renderer';\n\n// Fixes build error\n// @dynamic (https://github.com/angular/angular/issues/19698#issuecomment-338340211)\nexport const domAdapterFactory = (platformId: any) => {\n if (isPlatformBrowser(platformId)) {\n return new DomAdapter();\n } else {\n return new NoopDomAdapter();\n }\n};\n\n// Fixes build error\n// @dynamic (https://github.com/angular/angular/issues/19698#issuecomment-338340211)\n@Directive({\n selector: 'clr-datagrid',\n providers: [{ provide: DomAdapter, useFactory: domAdapterFactory, deps: [PLATFORM_ID] }],\n})\nexport class DatagridMainRenderer implements AfterContentInit, AfterViewInit, AfterViewChecked, OnDestroy {\n @ContentChildren(DatagridHeaderRenderer) private headers: QueryList<DatagridHeaderRenderer>;\n @ContentChildren(DatagridRowRenderer, { descendants: true }) private rows: QueryList<DatagridRowRenderer>; // if expandable row is expanded initially, query its cells too.\n\n private _heightSet = false;\n private shouldStabilizeColumns = true;\n private subscriptions: Subscription[] = [];\n\n /**\n * Indicates if we want to re-compute columns width. This should only happen:\n * 1) When headers change, with columns being added or removed\n * 2) When rows are lazily loaded for the first time\n */\n private columnsSizesStable = false;\n\n constructor(\n private organizer: DatagridRenderOrganizer,\n private items: Items,\n private page: Page,\n private domAdapter: DomAdapter,\n private el: ElementRef,\n private renderer: Renderer2,\n private detailService: DetailService,\n private tableSizeService: TableSizeService,\n private columnsService: ColumnsService,\n private ngZone: NgZone\n ) {\n this.subscriptions.push(\n this.organizer\n .filterRenderSteps(DatagridRenderStep.COMPUTE_COLUMN_WIDTHS)\n .subscribe(() => this.computeHeadersWidth())\n );\n\n this.subscriptions.push(\n this.page.sizeChange.subscribe(() => {\n if (this._heightSet) {\n this.resetDatagridHeight();\n }\n })\n );\n this.subscriptions.push(this.detailService.stateChange.subscribe(state => this.toggleDetailPane(state)));\n this.subscriptions.push(this.items.change.subscribe(() => (this.shouldStabilizeColumns = true)));\n }\n\n ngAfterContentInit() {\n this.setupColumns();\n\n this.subscriptions.push(\n this.headers.changes.subscribe(() => {\n // TODO: only re-stabilize if a column was added or removed. Reordering is fine.\n // Need to setup columns before stabalizing them\n this.setupColumns();\n this.columnsSizesStable = false;\n this.stabilizeColumns();\n })\n );\n }\n\n // Initialize and set Table width for horizontal scrolling here.\n ngAfterViewInit() {\n this.tableSizeService.table = this.el;\n }\n\n ngAfterViewChecked() {\n if (this.shouldStabilizeColumns) {\n this.stabilizeColumns();\n }\n if (this.shouldComputeHeight()) {\n this.ngZone.runOutsideAngular(() => {\n setTimeout(() => {\n this.computeDatagridHeight();\n });\n });\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n toggleDetailPane(state: boolean) {\n if (this.headers) {\n if (state && !this.columnsService.hasCache()) {\n this.columnsService.cache();\n this.headers.forEach((_header, index) => {\n if (index > 0) {\n this.columnsService.emitStateChangeAt(index, {\n changes: [DatagridColumnChanges.HIDDEN],\n hidden: state,\n });\n }\n });\n } else if (!state) {\n this.columnsService.resetToLastCache();\n }\n }\n }\n\n private setupColumns() {\n this.headers.forEach((header, index) => header.setColumnState(index));\n this.columnsService.columns.splice(this.headers.length); // Trim any old columns\n this.rows.forEach(row => row.setColumnState());\n }\n\n private shouldComputeHeight(): boolean {\n if (!this._heightSet && this.page.size > 0) {\n if (this.items.displayed.length === this.page.size) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Computes the height of the datagrid.\n *\n * NOTE: We had to choose to set the height instead of the min-height because\n * IE 11 requires the height on the parent for the children flex grow/shrink properties to work.\n * When we used min-height, 1 1 auto doesn't used to work in IE11 :-(\n * But this doesn't affect the fix. It works in both fixed & variable height datagrids.\n *\n * Refer: http://stackoverflow.com/questions/24396205/flex-grow-not-working-in-internet-explorer-11-0\n */\n private computeDatagridHeight() {\n // IE doesn't return correct value for getComputedStyle(element).getPropertyValue(\"height\")\n const value: number = this.domAdapter.clientRect(this.el.nativeElement).height;\n this.renderer.setStyle(this.el.nativeElement, 'height', value + 'px');\n this._heightSet = true;\n }\n\n private resetDatagridHeight() {\n this.renderer.setStyle(this.el.nativeElement, 'height', '');\n this._heightSet = false;\n }\n\n /**\n * Makes each header compute its width.\n */\n private computeHeadersWidth() {\n const nbColumns: number = this.headers.length;\n let allStrict = true;\n this.headers.forEach((header, index) => {\n // On the last header column check whether all columns have strict widths.\n // If all columns have strict widths, remove the strict width from the last column and make it the column's\n // minimum width so that when all previous columns shrink, it will get a flexible width and cover the empty\n // gap in the Datagrid.\n const state: ColumnStateDiff = {\n changes: [DatagridColumnChanges.WIDTH],\n ...header.getColumnWidthState(),\n };\n\n if (!state.strictWidth) {\n allStrict = false;\n }\n\n if (nbColumns === index + 1 && allStrict) {\n state.strictWidth = 0;\n }\n\n this.columnsService.emitStateChangeAt(index, state);\n });\n }\n\n /**\n * Triggers a whole re-rendring cycle to set column sizes, if needed.\n */\n private stabilizeColumns() {\n this.shouldStabilizeColumns = false;\n if (this.columnsSizesStable) {\n // Nothing to do.\n return;\n }\n // Resize when the rows are loaded.\n if (this.items.displayed.length > 0) {\n this.organizer.resize();\n this.columnsSizesStable = true;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n angleDoubleIcon,\n arrowIcon,\n ClarityIcons,\n ellipsisVerticalIcon,\n filterGridCircleIcon,\n filterGridIcon,\n stepForward2Icon,\n timesIcon,\n viewColumnsIcon,\n windowCloseIcon,\n} from '@cds/core/icon';\n\nimport { ClrFormsModule } from '../../forms/forms.module';\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrSpinnerModule } from '../../progress/spinner/spinner.module';\nimport { ClrExpandableAnimationModule } from '../../utils/animations/expandable-animation/expandable-animation.module';\nimport { CdkDragModule } from '../../utils/cdk/cdk-drag.module';\nimport { CdkTrapFocusModule } from '../../utils/cdk/cdk-trap-focus.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrKeyFocusModule } from '../../utils/focus/key-focus/key-focus.module';\nimport { ClrLoadingModule } from '../../utils/loading/loading.module';\nimport { ClrOutsideClickModule } from '../../utils/outside-click/outside-click.module';\nimport { ClrPopoverModuleNext } from '../../utils/popover/popover.module';\nimport { DatagridNumericFilter } from './built-in/filters/datagrid-numeric-filter';\nimport { DatagridStringFilter } from './built-in/filters/datagrid-string-filter';\nimport { ActionableOompaLoompa } from './chocolate/actionable-oompa-loompa';\nimport { DatagridWillyWonka } from './chocolate/datagrid-willy-wonka';\nimport { ExpandableOompaLoompa } from './chocolate/expandable-oompa-loompa';\nimport { ClrDatagrid } from './datagrid';\nimport { ClrDatagridActionBar } from './datagrid-action-bar';\nimport { ClrDatagridActionOverflow } from './datagrid-action-overflow';\nimport { ClrDatagridCell } from './datagrid-cell';\nimport { ClrDatagridColumn } from './datagrid-column';\nimport { ClrDatagridColumnSeparator } from './datagrid-column-separator';\nimport { ClrDatagridColumnToggle } from './datagrid-column-toggle';\nimport { ClrDatagridColumnToggleButton } from './datagrid-column-toggle-button';\nimport { ClrDatagridDetail } from './datagrid-detail';\nimport { ClrDatagridDetailBody } from './datagrid-detail-body';\nimport { ClrDatagridDetailHeader } from './datagrid-detail-header';\nimport { DatagridDetailRegisterer } from './datagrid-detail-registerer';\nimport { ClrDatagridFilter } from './datagrid-filter';\nimport { ClrDatagridFooter } from './datagrid-footer';\nimport { ClrDatagridHideableColumn } from './datagrid-hideable-column';\nimport { ClrIfDetail } from './datagrid-if-detail';\nimport { ClrDatagridItems } from './datagrid-items';\nimport { ClrDatagridItemsTrackBy } from './datagrid-items-trackby';\nimport { ClrDatagridPageSize } from './datagrid-page-size';\nimport { ClrDatagridPagination } from './datagrid-pagination';\nimport { ClrDatagridPlaceholder } from './datagrid-placeholder';\nimport { ClrDatagridRow } from './datagrid-row';\nimport { ClrDatagridRowDetail } from './datagrid-row-detail';\nimport { ClrDatagridSelectionCellDirective } from './datagrid-selection-cell.directive';\nimport { DatagridCellRenderer } from './render/cell-renderer';\nimport { DatagridHeaderRenderer } from './render/header-renderer';\nimport { DatagridMainRenderer } from './render/main-renderer';\nimport { DatagridRowRenderer } from './render/row-renderer';\nimport { WrappedCell } from './wrapped-cell';\nimport { WrappedColumn } from './wrapped-column';\nimport { WrappedRow } from './wrapped-row';\n\nexport const CLR_DATAGRID_DIRECTIVES: Type<any>[] = [\n // Core\n ClrDatagrid,\n ClrDatagridActionBar,\n ClrDatagridActionOverflow,\n ClrDatagridCell,\n ClrDatagridColumn,\n ClrDatagridColumnSeparator,\n ClrDatagridDetail,\n ClrDatagridDetailBody,\n ClrDatagridDetailHeader,\n ClrDatagridFilter,\n ClrDatagridFooter,\n ClrDatagridHideableColumn,\n ClrDatagridItems,\n ClrDatagridItemsTrackBy,\n ClrDatagridPageSize,\n ClrDatagridPagination,\n ClrDatagridPlaceholder,\n ClrDatagridRow,\n ClrDatagridRowDetail,\n ClrDatagridSelectionCellDirective,\n ClrIfDetail,\n DatagridDetailRegisterer,\n WrappedCell,\n WrappedColumn,\n WrappedRow,\n\n // Renderers\n DatagridCellRenderer,\n DatagridHeaderRenderer,\n DatagridMainRenderer,\n DatagridRowRenderer,\n\n // Chocolate\n ActionableOompaLoompa,\n DatagridWillyWonka,\n ExpandableOompaLoompa,\n\n // Built-in shortcuts\n DatagridNumericFilter,\n DatagridStringFilter,\n];\n\nconst CLR_DATAGRID_INTERNAL_DIRECTIVES = [ClrDatagridColumnToggle, ClrDatagridColumnToggleButton];\n\n@NgModule({\n imports: [\n CommonModule,\n CdkDragModule,\n CdkTrapFocusModule,\n ClrIconModule,\n ClrFormsModule,\n FormsModule,\n ClrLoadingModule,\n ClrConditionalModule,\n ClrOutsideClickModule,\n ClrExpandableAnimationModule,\n ClrSpinnerModule,\n ClrPopoverModuleNext,\n ClrKeyFocusModule,\n ],\n declarations: [CLR_DATAGRID_DIRECTIVES, CLR_DATAGRID_INTERNAL_DIRECTIVES],\n exports: [CLR_DATAGRID_DIRECTIVES],\n})\nexport class ClrDatagridModule {\n constructor() {\n ClarityIcons.addIcons(\n ellipsisVerticalIcon,\n viewColumnsIcon,\n windowCloseIcon,\n arrowIcon,\n timesIcon,\n stepForward2Icon,\n angleDoubleIcon,\n filterGridCircleIcon,\n filterGridIcon\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Directive, Input, OnInit } from '@angular/core';\n\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\n\n@Directive({\n selector: 'clr-stack-content',\n})\nexport class ClrStackViewCustomTags {\n // No behavior\n // The only purpose is to \"declare\" the tag in Angular\n}\n\n@Component({\n selector: 'clr-stack-label',\n template: '<ng-content></ng-content>',\n host: {\n '[attr.id]': 'id',\n },\n})\nexport class ClrStackViewLabel implements OnInit {\n private _generatedId: string = null;\n\n private _id: string = null;\n\n @Input()\n get id() {\n return this._id;\n }\n set id(val: string) {\n if (typeof val === 'string' && val !== '') {\n this._id = val;\n } else {\n this._id = this._generatedId + '';\n }\n }\n\n ngOnInit() {\n this._generatedId = 'clr-stack-label-' + uniqueIdFactory();\n\n if (!this.id) {\n this._id = this._generatedId + '';\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n Component,\n ContentChild,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n Optional,\n Output,\n SkipSelf,\n} from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { ClrStackViewLabel } from './stack-view-custom-tags';\n\n@Component({\n selector: 'clr-stack-block',\n template: `\n <!-- The 'preventDefault' for the space keydown event prevents the page\n from scrolling when a stack block is toggled via the space key. -->\n <div\n class=\"stack-block-label\"\n (click)=\"toggleExpand($event)\"\n (keyup.enter)=\"toggleExpand($event)\"\n (keyup.space)=\"toggleExpand($event)\"\n (keydown.space)=\"preventDefaultIfNotInputEvent($event)\"\n (focus)=\"focused = true\"\n (blur)=\"focused = false\"\n [id]=\"uniqueId\"\n [attr.role]=\"role\"\n [attr.tabindex]=\"tabIndex\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-controls]=\"getStackChildrenId()\"\n >\n <cds-icon shape=\"angle\" class=\"stack-block-caret\" *ngIf=\"expandable\" [attr.direction]=\"caretDirection\"></cds-icon>\n <span class=\"clr-sr-only\" *ngIf=\"getChangedValue\">{{ commonStrings.keys.stackViewChanged }}</span>\n <div class=\"stack-view-key\">\n <!-- This structure changed to fix #3567 and the a11y request was to move away from dl's -->\n <!-- I added the key class to update css targets for the original component style -->\n <ng-content select=\"clr-stack-label\"></ng-content>\n </div>\n <div class=\"stack-block-content\">\n <ng-content></ng-content>\n </div>\n </div>\n\n <clr-expandable-animation [clrExpandTrigger]=\"expanded\" class=\"stack-children\">\n <div\n [style.height]=\"expanded ? 'auto' : 0\"\n role=\"region\"\n *ngIf=\"expanded\"\n [attr.id]=\"getStackChildrenId()\"\n [attr.aria-labelledby]=\"labelledById\"\n >\n <ng-content select=\"clr-stack-block\"></ng-content>\n </div>\n </clr-expandable-animation>\n `,\n // Custom elements are inline by default\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n // Make sure the host has the proper class for styling purposes\n host: {\n '[class.stack-block]': 'true',\n '[attr.role]': '\"heading\"',\n '[attr.aria-level]': 'headingLevel',\n },\n})\nexport class ClrStackBlock implements OnInit {\n @Input('clrSbExpanded') @HostBinding('class.stack-block-expanded') expanded = false;\n @Input('clrSbExpandable') @HostBinding('class.stack-block-expandable') expandable = false;\n\n /**\n * Depth of the stack view starting from 1 for first level\n */\n @Input('clrStackViewLevel') ariaLevel: number;\n\n @Output('clrSbExpandedChange') expandedChange = new EventEmitter<boolean>(false);\n\n @ContentChild(ClrStackViewLabel) stackBlockTitle: any;\n\n focused = false;\n uniqueId = uniqueIdFactory();\n\n private _changedChildren = 0;\n private _fullyInitialized = false;\n private _changed = false;\n\n /*\n * This would be more efficient with @ContentChildren, with the parent ClrStackBlock\n * querying for children StackBlocks, but this feature is not available when downgrading\n * the component for Angular 1.\n */\n constructor(\n @SkipSelf()\n @Optional()\n private parent: ClrStackBlock,\n public commonStrings: ClrCommonStringsService\n ) {\n if (parent) {\n parent.addChild();\n }\n }\n\n @Input('clrSbNotifyChange')\n set setChangedValue(value: boolean) {\n this._changed = value;\n\n if (this.parent && this._fullyInitialized) {\n if (value) {\n this.parent._changedChildren++;\n } else {\n this.parent._changedChildren--;\n }\n }\n }\n\n @HostBinding('class.stack-block-changed')\n get getChangedValue(): boolean {\n return this._changed || (this._changedChildren > 0 && !this.expanded);\n }\n\n @HostBinding('class.on-focus')\n get onStackLabelFocus(): boolean {\n return this.expandable && !this.expanded && this.focused;\n }\n\n get labelledById() {\n return this.stackBlockTitle.id;\n }\n\n get headingLevel() {\n if (this.ariaLevel) {\n return this.ariaLevel + '';\n }\n\n return this.parent ? '4' : '3';\n }\n\n get caretDirection(): string {\n return this.expanded ? 'down' : 'right';\n }\n\n get role(): string {\n return this.expandable ? 'button' : null;\n }\n\n get tabIndex(): string {\n return this.expandable ? '0' : null;\n }\n\n get ariaExpanded(): string {\n if (!this.expandable) {\n return null;\n } else {\n return this.expanded ? 'true' : 'false';\n }\n }\n\n ngOnInit(): void {\n // in order to access the parent ClrStackBlock's properties,\n // the child ClrStackBlock has to be fully initialized at first.\n this._fullyInitialized = true;\n }\n\n addChild(): void {\n this.expandable = true;\n }\n\n toggleExpand(event?: Event): void {\n if (eventIsInputEvent(event)) {\n return;\n }\n\n if (this.expandable) {\n this.expanded = !this.expanded;\n this.expandedChange.emit(this.expanded);\n }\n }\n\n getStackChildrenId() {\n return this.expanded ? `clr-stack-children-${this.uniqueId}` : null;\n }\n\n protected preventDefaultIfNotInputEvent(event: Event) {\n if (eventIsInputEvent(event)) {\n return;\n }\n\n event.preventDefault();\n }\n}\n\nfunction eventIsInputEvent(event?: Event) {\n const targetElement = event?.target as HTMLElement;\n\n return targetElement?.tagName === 'INPUT';\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\n\n@Directive({\n selector: '[clrStackInput]',\n host: {\n '[class.clr-input]': 'true',\n '[attr.aria-labelledby]': 'uniqueId',\n },\n})\nexport class ClrStackContentInput {\n uniqueId = uniqueIdFactory();\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-stack-view',\n template: `\n <ng-content select=\"clr-stack-header\"></ng-content>\n <div class=\"stack-view\"><ng-content></ng-content></div>\n `,\n // Custom elements are inline by default.\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class ClrStackView {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrStackView } from './stack-view';\n\n@Component({\n selector: 'clr-stack-header',\n template: `\n <div class=\"stack-header\">\n <h4 class=\"stack-title\"><ng-content></ng-content></h4>\n\n <span class=\"stack-actions\">\n <ng-content select=\".stack-action\"></ng-content>\n </span>\n </div>\n `,\n // Custom elements are inline by default\n styles: [\n `\n :host {\n display: block;\n }\n `,\n ],\n})\nexport class ClrStackHeader {\n constructor(public stackView: ClrStackView) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { angleIcon, ClarityIcons } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrExpandableAnimationModule } from '../../utils/animations/expandable-animation/expandable-animation.module';\nimport { ClrStackBlock } from './stack-block';\nimport { ClrStackContentInput } from './stack-content-input';\nimport { ClrStackHeader } from './stack-header';\nimport { ClrStackView } from './stack-view';\nimport { ClrStackViewCustomTags, ClrStackViewLabel } from './stack-view-custom-tags';\n\nexport const CLR_STACK_VIEW_DIRECTIVES: Type<any>[] = [\n ClrStackView,\n ClrStackHeader,\n ClrStackBlock,\n ClrStackContentInput,\n ClrStackViewLabel,\n ClrStackViewCustomTags,\n];\n\n@NgModule({\n imports: [CommonModule, FormsModule, ClrIconModule, ClrExpandableAnimationModule],\n declarations: [CLR_STACK_VIEW_DIRECTIVES],\n exports: [CLR_STACK_VIEW_DIRECTIVES],\n})\nexport class ClrStackViewModule {\n constructor() {\n ClarityIcons.addIcons(angleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, Optional, SkipSelf, TemplateRef } from '@angular/core';\nimport { Subject } from 'rxjs';\n\nimport { RecursiveTreeNodeModel } from './models/recursive-tree-node.model';\nimport { ClrRecursiveForOfContext } from './recursive-for-of';\n\n@Injectable()\nexport class TreeFeaturesService<T> {\n selectable = false;\n eager = true;\n recursion: {\n template: TemplateRef<ClrRecursiveForOfContext<T>>;\n root: RecursiveTreeNodeModel<T>[];\n };\n childrenFetched = new Subject<void>();\n}\n\nexport function treeFeaturesFactory<T>(existing: TreeFeaturesService<T>) {\n return existing || new TreeFeaturesService();\n}\n\nexport const TREE_FEATURES_PROVIDER = {\n provide: TreeFeaturesService,\n useFactory: treeFeaturesFactory,\n /*\n * The Optional + SkipSelf pattern ensures that in case of nested components, only the root one will\n * instantiate a new service and all its children will reuse the root's instance.\n * If there are several roots (in this case, several independent trees on a page), each root will instantiate\n * its own service so they won't interfere with one another.\n *\n * TL;DR - Optional + SkipSelf = 1 instance of TreeFeaturesService per tree.\n */\n deps: [[new Optional(), new SkipSelf(), TreeFeaturesService]],\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Input, Optional } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { RecursiveTreeNodeModel } from './models/recursive-tree-node.model';\nimport { TreeNodeModel } from './models/tree-node.model';\nimport { ClrRecursiveForOfContext } from './recursive-for-of';\nimport { TreeFeaturesService } from './tree-features.service';\n\n@Component({\n selector: 'clr-recursive-children',\n template: `\n <ng-container *ngIf=\"shouldRender()\">\n <ng-container *ngFor=\"let child of parent?.children || children\">\n <ng-container *ngTemplateOutlet=\"featuresService.recursion.template; context: getContext(child)\"></ng-container>\n </ng-container>\n </ng-container>\n `,\n host: {\n '[attr.role]': '\"group\"', // Safari + VO needs direct relationship between treeitem and group; no element should exist between them\n },\n})\n/**\n * Internal component, do not export!\n * This is part of the hack to get around https://github.com/angular/angular/issues/15998\n */\nexport class RecursiveChildren<T> {\n // Offering the option to either give the parent node to recurse potentially lazily,\n // or directly the list of children to display.\n @Input('parent') parent: TreeNodeModel<T>;\n @Input('children') children: TreeNodeModel<T>[];\n\n subscription: Subscription;\n\n constructor(public featuresService: TreeFeaturesService<T>, @Optional() private expandService: IfExpandService) {\n if (expandService) {\n this.subscription = this.expandService.expandChange.subscribe(value => {\n if (!value && this.parent && !this.featuresService.eager && this.featuresService.recursion) {\n // In the case of lazy-loading recursive trees, we clear the children on collapse.\n // This is better in case they change between two user interaction, and that way\n // the app itself can decide whether to cache them or not.\n (this.parent as RecursiveTreeNodeModel<T>).clearChildren();\n }\n });\n }\n }\n\n shouldRender() {\n return (\n this.featuresService.recursion &&\n // In the smart case, we eagerly render all the recursive children\n // to make sure two-way bindings for selection are available.\n // They will be hidden with CSS by the parent.\n (this.featuresService.eager || !this.expandService || this.expandService.expanded)\n );\n }\n\n getContext(node: TreeNodeModel<T>): ClrRecursiveForOfContext<T> {\n return {\n $implicit: node.model,\n clrModel: node,\n };\n }\n\n ngOnDestroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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// We need to make sure people can give us null or undefined children even if they run strict type checking.\nimport { Observable } from 'rxjs';\n\nexport type AsyncArray<T> =\n | T[]\n | null\n | undefined\n | Promise<T[] | null | undefined>\n | Observable<T[] | null | undefined>;\n\nexport function isPromise<T>(o: AsyncArray<T>): o is Promise<T[]> {\n // Shamelessly copied from every open-source project out there.\n return o && typeof (o as any).then === 'function';\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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// TODO: I'd like this to be a CheckedState enum for the checkboxes in the future.\nexport enum ClrSelectedState {\n // WARNING! Unselected has the value 0,\n // so it's actually the only one that will evaluate to false if cast to a boolean.\n // Don't mess with the order!\n UNSELECTED = 0,\n SELECTED,\n INDETERMINATE,\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { BehaviorSubject } from 'rxjs';\n\nimport { ClrSelectedState } from './selected-state.enum';\n\nexport abstract class TreeNodeModel<T> {\n nodeId: string;\n expanded: boolean;\n model: T | null;\n textContent: string;\n loading$ = new BehaviorSubject(false);\n selected = new BehaviorSubject(ClrSelectedState.UNSELECTED);\n\n /*\n * Being able to push this down to the RecursiveTreeNodeModel would require too much work on the angular components\n * right now for them to know which kind of model they are using. So I'm lifting the public properties to this\n * abstract parent class for now and we can revisit it later, when we're not facing such a close deadline.\n */\n private _loading = false;\n\n /*\n * Ideally, I would like to use a polymorphic this type here to ensure homogeneity of the tree, something like:\n * abstract parent: this<T> | null;\n * abstract children: this<T>[];\n * But I'm hitting limitations on typescript not allowing that type in constructors or static methods.\n * So I'm resorting to forcing override with more precise types by marking these abstract.\n */\n abstract parent: TreeNodeModel<T> | null;\n abstract children: TreeNodeModel<T>[];\n\n get loading() {\n return this._loading;\n }\n set loading(isLoading: boolean) {\n this._loading = isLoading;\n this.loading$.next(isLoading);\n }\n\n destroy() {\n // Just to be safe\n this.selected.complete();\n }\n\n // Propagate by default when eager, don't propagate in the lazy-loaded tree.\n setSelected(state: ClrSelectedState, propagateUp: boolean, propagateDown: boolean) {\n if (state === this.selected.value) {\n return;\n }\n this.selected.next(state);\n if (propagateDown && state !== ClrSelectedState.INDETERMINATE && this.children) {\n this.children.forEach(child => child.setSelected(state, false, true));\n }\n if (propagateUp && this.parent) {\n this.parent._updateSelectionFromChildren();\n }\n }\n\n toggleSelection(propagate: boolean) {\n // Both unselected and indeterminate toggle to selected\n const newState =\n this.selected.value === ClrSelectedState.SELECTED ? ClrSelectedState.UNSELECTED : ClrSelectedState.SELECTED;\n // NOTE: we always propagate selection up in this method because it is only called when the user takes an action.\n // It should never be called from lifecycle hooks or app-provided inputs.\n this.setSelected(newState, true, propagate);\n }\n\n /*\n * Internal, but needs to be called by other nodes\n */\n _updateSelectionFromChildren() {\n const newState = this.computeSelectionStateFromChildren();\n if (newState === this.selected.value) {\n return;\n }\n this.selected.next(newState);\n if (this.parent) {\n this.parent._updateSelectionFromChildren();\n }\n }\n\n private computeSelectionStateFromChildren() {\n let oneSelected = false;\n let oneUnselected = false;\n // Using a good old for loop to exit as soon as we can tell, for better performance on large trees.\n for (const child of this.children) {\n switch (child.selected.value) {\n case ClrSelectedState.INDETERMINATE:\n return ClrSelectedState.INDETERMINATE;\n case ClrSelectedState.SELECTED:\n oneSelected = true;\n if (oneUnselected) {\n return ClrSelectedState.INDETERMINATE;\n }\n break;\n case ClrSelectedState.UNSELECTED:\n default:\n // Default is the same as unselected, in case an undefined somehow made it all the way here.\n oneUnselected = true;\n if (oneSelected) {\n return ClrSelectedState.INDETERMINATE;\n }\n break;\n }\n }\n if (!oneSelected) {\n return ClrSelectedState.UNSELECTED;\n } else if (!oneUnselected) {\n return ClrSelectedState.SELECTED;\n } else {\n return ClrSelectedState.UNSELECTED;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isObservable, Subscription } from 'rxjs';\n\nimport { TreeFeaturesService } from '../tree-features.service';\nimport { AsyncArray, isPromise } from './async-array';\nimport { TreeNodeModel } from './tree-node.model';\n\n/*\n * A recursive model is built received from the app and traversed to create the corresponding components.\n * Recursive = Model dictates the tree node components\n */\nexport class RecursiveTreeNodeModel<T> extends TreeNodeModel<T> {\n parent: RecursiveTreeNodeModel<T> | null;\n\n private subscription: Subscription;\n private childrenFetched = false;\n private _children: RecursiveTreeNodeModel<T>[] = [];\n\n constructor(\n model: T,\n parent: RecursiveTreeNodeModel<T> | null,\n private getChildren: (node: T) => AsyncArray<T> | undefined,\n private featuresService: TreeFeaturesService<T> | undefined\n ) {\n super();\n this.model = model;\n this.parent = parent;\n }\n\n get children(): RecursiveTreeNodeModel<T>[] {\n this.fetchChildren();\n return this._children;\n }\n set children(value: RecursiveTreeNodeModel<T>[]) {\n this._children = value;\n }\n\n override destroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n super.destroy();\n }\n\n clearChildren() {\n this._children.forEach(child => child.destroy());\n delete this._children;\n this.childrenFetched = false;\n }\n\n fetchChildren() {\n if (this.childrenFetched) {\n return;\n }\n\n const asyncChildren = this.getChildren(this.model);\n if (isPromise(asyncChildren)) {\n this.loading = true;\n asyncChildren.then(raw => {\n this._children = this.wrapChildren(raw);\n this.loading = false;\n });\n } else if (isObservable(asyncChildren)) {\n this.loading = true;\n this.subscription = asyncChildren.subscribe(raw => {\n this._children = this.wrapChildren(raw);\n this.loading = false;\n });\n } else if (asyncChildren) {\n // Synchronous case\n this._children = this.wrapChildren(asyncChildren);\n } else {\n this._children = [];\n }\n this.childrenFetched = true;\n if (this.featuresService) {\n this.featuresService.childrenFetched.next();\n }\n }\n\n private wrapChildren(rawModels: T[]) {\n return rawModels.map(m => new RecursiveTreeNodeModel(m, this, this.getChildren, this.featuresService));\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Input, OnChanges, OnDestroy, TemplateRef } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\n\nimport { AsyncArray } from './models/async-array';\nimport { RecursiveTreeNodeModel } from './models/recursive-tree-node.model';\nimport { TreeNodeModel } from './models/tree-node.model';\nimport { TreeFeaturesService } from './tree-features.service';\n\nexport interface ClrRecursiveForOfContext<T> {\n $implicit: T;\n clrModel: TreeNodeModel<T>;\n}\n\n@Directive({\n selector: '[clrRecursiveFor][clrRecursiveForOf]',\n})\nexport class ClrRecursiveForOf<T> implements OnChanges, OnDestroy {\n // TODO: accept NgIterable<T>\n @Input('clrRecursiveForOf') nodes: T | T[];\n\n // TODO: accept NgIterable<T> return type\n @Input('clrRecursiveForGetChildren') getChildren: (node: T) => AsyncArray<T>;\n\n private childrenFetchSubscription: Subscription;\n\n constructor(\n private template: TemplateRef<ClrRecursiveForOfContext<T>>,\n private featuresService: TreeFeaturesService<T>,\n private cdr: ChangeDetectorRef\n ) {}\n\n // I'm using OnChanges instead of OnInit to easily keep up to date with dynamic trees. Maybe optimizable later.\n ngOnChanges() {\n let wrapped: RecursiveTreeNodeModel<T>[];\n if (Array.isArray(this.nodes)) {\n wrapped = this.nodes.map(node => new RecursiveTreeNodeModel(node, null, this.getChildren, this.featuresService));\n } else {\n wrapped = [new RecursiveTreeNodeModel(this.nodes, null, this.getChildren, this.featuresService)];\n }\n if (!this.childrenFetchSubscription) {\n this.childrenFetchSubscription = this.featuresService.childrenFetched.pipe(debounceTime(0)).subscribe(() => {\n this.cdr.detectChanges();\n });\n }\n\n this.featuresService.recursion = {\n template: this.template,\n root: wrapped,\n };\n }\n\n ngOnDestroy() {\n if (this.childrenFetchSubscription) {\n this.childrenFetchSubscription.unsubscribe();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\nimport { TreeNodeModel } from './models/tree-node.model';\n\n@Injectable()\nexport class TreeFocusManagerService<T> {\n rootNodeModels: TreeNodeModel<T>[];\n\n private focusedNodeId: string;\n private _focusRequest = new Subject<string>();\n private _focusChange = new Subject<string>();\n\n get focusRequest(): Observable<string> {\n return this._focusRequest.asObservable();\n }\n\n get focusChange(): Observable<string> {\n return this._focusChange.asObservable();\n }\n\n focusNode(model: TreeNodeModel<T>): void {\n if (model) {\n this._focusRequest.next(model.nodeId);\n }\n }\n\n broadcastFocusedNode(nodeId: string): void {\n if (this.focusedNodeId !== nodeId) {\n this.focusedNodeId = nodeId;\n this._focusChange.next(nodeId);\n }\n }\n\n focusParent(model: TreeNodeModel<T>): void {\n if (model) {\n this.focusNode(model.parent);\n }\n }\n\n focusFirstVisibleNode(): void {\n const focusModel = this.rootNodeModels && this.rootNodeModels[0];\n this.focusNode(focusModel);\n }\n\n focusLastVisibleNode(): void {\n this.focusNode(this.findLastVisibleInTree());\n }\n\n focusNodeAbove(model: TreeNodeModel<T>): void {\n this.focusNode(this.findNodeAbove(model));\n }\n\n focusNodeBelow(model: TreeNodeModel<T>): void {\n this.focusNode(this.findNodeBelow(model));\n }\n\n focusNodeStartsWith(searchString: string, model: TreeNodeModel<T>): void {\n this.focusNode(this.findClosestNodeStartsWith(searchString, model));\n }\n\n private findSiblings(model: TreeNodeModel<T>): TreeNodeModel<T>[] {\n // the method will return not only sibling models but also itself among them\n if (model.parent) {\n return model.parent.children;\n } else {\n return this.rootNodeModels;\n }\n }\n\n private findLastVisibleInNode(model: TreeNodeModel<T>): TreeNodeModel<T> {\n // the method will traverse through until it finds the last visible node from the given node\n if (!model) {\n return null;\n }\n if (model.expanded && model.children.length > 0) {\n const children = model.children;\n const lastChild = children[children.length - 1];\n return this.findLastVisibleInNode(lastChild);\n } else {\n return model;\n }\n }\n\n private findNextFocusable(model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (!model) {\n return null;\n }\n\n const siblings = this.findSiblings(model);\n const selfIndex = siblings.indexOf(model);\n\n if (selfIndex < siblings.length - 1) {\n return siblings[selfIndex + 1];\n } else if (selfIndex === siblings.length - 1) {\n return this.findNextFocusable(model.parent);\n }\n return null;\n }\n\n private findLastVisibleInTree(): TreeNodeModel<T> {\n const lastRootNode =\n this.rootNodeModels && this.rootNodeModels.length && this.rootNodeModels[this.rootNodeModels.length - 1];\n return this.findLastVisibleInNode(lastRootNode);\n }\n\n private findNodeAbove(model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (!model) {\n return null;\n }\n\n const siblings = this.findSiblings(model);\n const selfIndex = siblings.indexOf(model);\n\n if (selfIndex === 0) {\n return model.parent;\n } else if (selfIndex > 0) {\n return this.findLastVisibleInNode(siblings[selfIndex - 1]);\n }\n return null;\n }\n\n private findNodeBelow(model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (!model) {\n return null;\n }\n\n if (model.expanded && model.children.length > 0) {\n return model.children[0];\n } else {\n return this.findNextFocusable(model);\n }\n }\n\n private findDescendentNodeStartsWith(searchString: string, model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (model.expanded && model.children.length > 0) {\n for (const childModel of model.children) {\n const found = this.findNodeStartsWith(searchString, childModel);\n if (found) {\n return found;\n }\n }\n }\n return null;\n }\n\n private findSiblingNodeStartsWith(searchString: string, model: TreeNodeModel<T>): TreeNodeModel<T> {\n const siblings = this.findSiblings(model);\n const selfIndex = siblings.indexOf(model);\n\n // Look from sibling nodes\n for (let i = selfIndex + 1; i < siblings.length; i++) {\n const siblingModel = siblings[i];\n const found = this.findNodeStartsWith(searchString, siblingModel);\n if (found) {\n return found;\n }\n }\n return null;\n }\n\n private findRootNodeStartsWith(searchString: string, model: TreeNodeModel<T>): TreeNodeModel<T> {\n for (const rootModel of this.rootNodeModels) {\n // Don't look from a parent yet\n if (model.parent && model.parent === rootModel) {\n continue;\n }\n\n const found = this.findNodeStartsWith(searchString, rootModel);\n if (found) {\n return found;\n }\n }\n return null;\n }\n\n private findNodeStartsWith(searchString: string, model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (!model) {\n return null;\n }\n\n if (model.textContent.startsWith(searchString)) {\n return model;\n }\n\n return this.findDescendentNodeStartsWith(searchString, model);\n }\n\n private findClosestNodeStartsWith(searchString: string, model: TreeNodeModel<T>): TreeNodeModel<T> {\n if (!model) {\n return null;\n }\n\n const foundFromDescendents = this.findDescendentNodeStartsWith(searchString, model);\n\n if (foundFromDescendents) {\n return foundFromDescendents;\n }\n\n const foundFromSiblings = this.findSiblingNodeStartsWith(searchString, model);\n\n if (foundFromSiblings) {\n return foundFromSiblings;\n }\n\n const foundFromRootNodes = this.findRootNodeStartsWith(searchString, model);\n\n if (foundFromRootNodes) {\n return foundFromRootNodes;\n }\n // Now look from its own direct parent\n return this.findNodeStartsWith(searchString, model.parent);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { TreeNodeModel } from './tree-node.model';\n\n/*\n * A declarative model is built by traversing the Angular component tree.\n * Declarative = Tree node components dictate the model\n */\nexport class DeclarativeTreeNodeModel<T> extends TreeNodeModel<T> {\n // Override for a more precise type\n parent: DeclarativeTreeNodeModel<T> | null;\n children: DeclarativeTreeNodeModel<T>[];\n\n constructor(parent: DeclarativeTreeNodeModel<T> | null) {\n super();\n this.parent = parent;\n if (parent) {\n parent._addChild(this);\n }\n this.children = [];\n }\n\n override destroy() {\n if (this.parent) {\n this.parent._removeChild(this);\n }\n super.destroy();\n }\n\n _addChild(child: DeclarativeTreeNodeModel<T>) {\n this.children.push(child);\n }\n\n _removeChild(child: DeclarativeTreeNodeModel<T>) {\n const index = this.children.indexOf(child);\n if (index > -1) {\n this.children.splice(index, 1);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef } from '@angular/core';\n\n@Directive({\n selector: '.clr-treenode-link',\n})\nexport class ClrTreeNodeLink {\n constructor(private el: ElementRef<HTMLElement>) {}\n\n get active() {\n return this.el.nativeElement.classList.contains('active');\n }\n\n activate() {\n if (this.el.nativeElement && this.el.nativeElement.click) {\n this.el.nativeElement.click();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, state, style, transition, trigger } from '@angular/animations';\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n AfterViewInit,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n Inject,\n Injector,\n Input,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n PLATFORM_ID,\n QueryList,\n SkipSelf,\n ViewChild,\n} from '@angular/core';\nimport { Subject, Subscription } from 'rxjs';\nimport { debounceTime, filter } from 'rxjs/operators';\n\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { isKeyEitherLetterOrNumber, normalizeKey, preventArrowKeyScroll } from '../../utils/focus/key-focus/util';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { LoadingListener } from '../../utils/loading/loading-listener';\nimport { DeclarativeTreeNodeModel } from './models/declarative-tree-node.model';\nimport { ClrSelectedState } from './models/selected-state.enum';\nimport { TreeNodeModel } from './models/tree-node.model';\nimport { TREE_FEATURES_PROVIDER, TreeFeaturesService } from './tree-features.service';\nimport { TreeFocusManagerService } from './tree-focus-manager.service';\nimport { ClrTreeNodeLink } from './tree-node-link';\n\nconst LVIEW_CONTEXT_INDEX = 8;\n\n// If the user types multiple keys without allowing 200ms to pass between them,\n// then those keys are sent together in one request.\nconst TREE_TYPE_AHEAD_TIMEOUT = 200;\n\n@Component({\n selector: 'clr-tree-node',\n templateUrl: './tree-node.html',\n providers: [TREE_FEATURES_PROVIDER, IfExpandService, { provide: LoadingListener, useExisting: IfExpandService }],\n animations: [\n trigger('toggleChildrenAnim', [\n transition('collapsed => expanded', [style({ height: 0 }), animate(200, style({ height: '*' }))]),\n transition('expanded => collapsed', [style({ height: '*' }), animate(200, style({ height: 0 }))]),\n state('expanded', style({ height: '*', 'overflow-y': 'visible' })),\n state('collapsed', style({ height: 0 })),\n ]),\n ],\n host: {\n '[class.clr-tree-node]': 'true',\n },\n})\nexport class ClrTreeNode<T> implements OnInit, AfterContentInit, AfterViewInit, OnDestroy {\n // Allows the consumer to override our logic deciding if a node is expandable.\n // Useful for recursive trees that don't want to pre-load one level ahead just to know which nodes are expandable.\n @Input('clrExpandable') expandable: boolean | undefined;\n\n @Output('clrSelectedChange') selectedChange = new EventEmitter<ClrSelectedState>(false);\n @Output('clrExpandedChange') expandedChange = new EventEmitter<boolean>();\n\n STATES = ClrSelectedState;\n isModelLoading = false;\n nodeId = uniqueIdFactory();\n contentContainerTabindex = -1;\n _model: TreeNodeModel<T>;\n\n private skipEmitChange = false;\n private typeAheadKeyBuffer = '';\n private typeAheadKeyEvent = new Subject<string>();\n private subscriptions: Subscription[] = [];\n\n @ViewChild('contentContainer', { read: ElementRef, static: true }) private contentContainer: ElementRef;\n\n // @ContentChild would have been more succinct\n // but it doesn't offer a way to query only an immediate child\n @ContentChildren(ClrTreeNodeLink, { descendants: false }) private treeNodeLinkList: QueryList<ClrTreeNodeLink>;\n\n constructor(\n @Inject(PLATFORM_ID) private platformId: any,\n @Optional()\n @SkipSelf()\n parent: ClrTreeNode<T>,\n public featuresService: TreeFeaturesService<T>,\n public expandService: IfExpandService,\n public commonStrings: ClrCommonStringsService,\n private focusManager: TreeFocusManagerService<T>,\n private elementRef: ElementRef<HTMLElement>,\n injector: Injector\n ) {\n if (this.featuresService.recursion) {\n // I'm completely stuck, we have to hack into private properties until either\n // https://github.com/angular/angular/issues/14935 or https://github.com/angular/angular/issues/15998\n // are fixed\n // This is for non-ivy implementations\n if ((injector as any).view) {\n this._model = (injector as any).view.context.clrModel;\n } else {\n // Ivy puts this on a specific index of a _lView property\n this._model = (injector as any)._lView[LVIEW_CONTEXT_INDEX].clrModel;\n }\n } else {\n // Force cast for now, not sure how to tie the correct type here to featuresService.recursion\n this._model = new DeclarativeTreeNodeModel(parent ? (parent._model as DeclarativeTreeNodeModel<T>) : null);\n }\n this._model.nodeId = this.nodeId;\n }\n\n @Input('clrSelected')\n get selected(): ClrSelectedState | boolean {\n return this._model.selected.value;\n }\n set selected(value: ClrSelectedState | boolean) {\n this.featuresService.selectable = true;\n // Gracefully handle falsy states like null or undefined because it's just easier than answering questions.\n // This shouldn't happen with strict typing on the app's side, but it's not up to us.\n if (value === null || typeof value === 'undefined') {\n value = ClrSelectedState.UNSELECTED;\n }\n // We match booleans to the corresponding ClrSelectedState\n if (typeof value === 'boolean') {\n value = value ? ClrSelectedState.SELECTED : ClrSelectedState.UNSELECTED;\n }\n // We propagate only if the tree is in smart mode, and skip emitting the output when we set the input\n // See https://github.com/vmware/clarity/issues/3073\n this.skipEmitChange = true;\n this._model.setSelected(value, this.featuresService.eager, this.featuresService.eager);\n this.skipEmitChange = false;\n }\n\n // I'm caving on this, for tree nodes I think we can tolerate having a two-way binding on the component\n // rather than enforce the clrIfExpanded structural directive for dynamic cases. Mostly because for the smart\n // case, you can't use a structural directive, it would need to go on an ng-container.\n @Input('clrExpanded')\n get expanded(): boolean {\n return this.expandService.expanded;\n }\n set expanded(value: boolean) {\n this.expandService.expanded = value;\n }\n\n @Input('clrForTypeAhead')\n set clrForTypeAhead(value: string) {\n this._model.textContent = trimAndLowerCase(value || this.elementRef.nativeElement.textContent);\n }\n\n get ariaSelected(): boolean {\n if (this.isSelectable()) {\n return this._model.selected.value === ClrSelectedState.SELECTED;\n } else if (this.treeNodeLink?.active) {\n return true;\n } else {\n return null;\n }\n }\n\n get treeNodeLink() {\n return this.treeNodeLinkList && this.treeNodeLinkList.first;\n }\n\n private get isParent() {\n return this._model.children && this._model.children.length > 0;\n }\n\n ngOnInit() {\n this._model.expanded = this.expanded;\n this.subscriptions.push(\n this._model.selected.pipe(filter(() => !this.skipEmitChange)).subscribe(value => {\n this.selectedChange.emit(value);\n })\n );\n this.subscriptions.push(\n this.expandService.expandChange.subscribe(value => {\n this.expandedChange.emit(value);\n this._model.expanded = value;\n })\n );\n this.subscriptions.push(\n this.focusManager.focusRequest.subscribe(nodeId => {\n if (this.nodeId === nodeId) {\n this.focusTreeNode();\n }\n }),\n this.focusManager.focusChange.subscribe(nodeId => {\n this.checkTabIndex(nodeId);\n })\n );\n\n this.subscriptions.push(\n this._model.loading$.pipe(debounceTime(0)).subscribe(isLoading => (this.isModelLoading = isLoading))\n );\n }\n\n ngAfterContentInit() {\n this.subscriptions.push(\n this.typeAheadKeyEvent.pipe(debounceTime(TREE_TYPE_AHEAD_TIMEOUT)).subscribe((bufferedKeys: string) => {\n this.focusManager.focusNodeStartsWith(bufferedKeys, this._model);\n // reset once bufferedKeys are used\n this.typeAheadKeyBuffer = '';\n })\n );\n }\n\n ngAfterViewInit() {\n if (!this._model.textContent) {\n this._model.textContent = trimAndLowerCase(this.elementRef.nativeElement.textContent);\n }\n }\n\n ngOnDestroy() {\n this._model.destroy();\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n isExpandable() {\n if (typeof this.expandable !== 'undefined') {\n return this.expandable;\n }\n return !!this.expandService.expandable || this.isParent;\n }\n\n isSelectable() {\n return this.featuresService.selectable;\n }\n\n focusTreeNode(): void {\n const containerEl = this.contentContainer.nativeElement;\n if (isPlatformBrowser(this.platformId) && document.activeElement !== containerEl) {\n this.setTabIndex(0);\n containerEl.focus();\n containerEl.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n }\n }\n\n broadcastFocusOnContainer() {\n this.focusManager.broadcastFocusedNode(this.nodeId);\n }\n\n onKeyDown(event: KeyboardEvent) {\n // Two reasons to prevent default behavior:\n // 1. to prevent scrolling on arrow keys\n // 2. Assistive Technology focus differs from Keyboard focus behavior.\n // By default, pressing arrow key makes AT focus go into the nested content of the item.\n preventArrowKeyScroll(event);\n\n // https://www.w3.org/TR/wai-aria-practices-1.1/#keyboard-interaction-22\n switch (normalizeKey(event.key)) {\n case Keys.ArrowUp:\n this.focusManager.focusNodeAbove(this._model);\n break;\n case Keys.ArrowDown:\n this.focusManager.focusNodeBelow(this._model);\n break;\n case Keys.ArrowRight:\n this.expandOrFocusFirstChild();\n break;\n case Keys.ArrowLeft:\n this.collapseOrFocusParent();\n break;\n case Keys.Home:\n event.preventDefault();\n this.focusManager.focusFirstVisibleNode();\n break;\n case Keys.End:\n event.preventDefault();\n this.focusManager.focusLastVisibleNode();\n break;\n case Keys.Enter:\n this.toggleExpandOrTriggerDefault();\n break;\n case Keys.Space:\n case Keys.Spacebar:\n // to prevent scrolling on space key in this specific case\n event.preventDefault();\n this.toggleExpandOrTriggerDefault();\n break;\n default:\n if (this._model.textContent && isKeyEitherLetterOrNumber(event)) {\n this.typeAheadKeyBuffer += event.key;\n this.typeAheadKeyEvent.next(this.typeAheadKeyBuffer);\n return;\n }\n break;\n }\n\n // if non-letter keys are pressed, do reset.\n this.typeAheadKeyBuffer = '';\n }\n\n private setTabIndex(value: number) {\n this.contentContainerTabindex = value;\n this.contentContainer.nativeElement.setAttribute('tabindex', value);\n }\n\n private checkTabIndex(nodeId: string): void {\n if (isPlatformBrowser(this.platformId) && this.nodeId !== nodeId && this.contentContainerTabindex !== -1) {\n this.setTabIndex(-1);\n }\n }\n\n private toggleExpandOrTriggerDefault() {\n if (this.isExpandable() && !this.isSelectable()) {\n this.expandService.expanded = !this.expanded;\n } else {\n this.triggerDefaultAction();\n }\n }\n\n private expandOrFocusFirstChild() {\n if (this.expanded) {\n // if the node is already expanded and has children, focus its very first child\n if (this.isParent) {\n this.focusManager.focusNodeBelow(this._model);\n }\n } else {\n // we must check if the node is expandable, in order to set .expanded to true from false\n // because we shouldn't set .expanded to true if it's not expandable node\n if (this.isExpandable()) {\n this.expandService.expanded = true;\n }\n }\n }\n\n private collapseOrFocusParent() {\n if (this.expanded) {\n this.expandService.expanded = false;\n } else {\n this.focusManager.focusParent(this._model);\n }\n }\n\n private triggerDefaultAction() {\n if (this.treeNodeLink) {\n this.treeNodeLink.activate();\n } else {\n if (this.isSelectable()) {\n this._model.toggleSelection(this.featuresService.eager);\n }\n }\n }\n}\n\nfunction trimAndLowerCase(value: string) {\n return value.toLocaleLowerCase().trim();\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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 [attr.aria-expanded]=\"isExpandable() ? expanded : null\"\n [attr.aria-selected]=\"ariaSelected\"\n (keydown)=\"onKeyDown($event)\"\n (focus)=\"broadcastFocusOnContainer()\"\n>\n <button\n *ngIf=\"isExpandable() && !isModelLoading && !expandService.loading\"\n aria-hidden=\"true\"\n type=\"button\"\n tabindex=\"-1\"\n class=\"clr-treenode-caret\"\n (click)=\"expandService.toggle();\"\n (focus)=\"focusTreeNode()\"\n >\n <cds-icon\n class=\"clr-treenode-caret-icon\"\n shape=\"angle\"\n [attr.direction]=\"expandService.expanded ? 'down' : 'right'\"\n ></cds-icon>\n </button>\n <div class=\"clr-treenode-spinner-container\" *ngIf=\"expandService.loading || isModelLoading\">\n <span class=\"clr-treenode-spinner spinner\"></span>\n </div>\n <div class=\"clr-checkbox-wrapper clr-treenode-checkbox\" *ngIf=\"featuresService.selectable\">\n <input\n aria-hidden=\"true\"\n type=\"checkbox\"\n id=\"{{nodeId}}-check\"\n class=\"clr-checkbox\"\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 <div class=\"clr-treenode-content\" (mousedown)=\"focusTreeNode()\" *ngIf=\"!featuresService.selectable\">\n <ng-container [ngTemplateOutlet]=\"treenodeContent\"></ng-container>\n </div>\n\n <ng-template #treenodeContent>\n <ng-content></ng-content>\n <div class=\"clr-sr-only\" *ngIf=\"featuresService.selectable || ariaSelected\">\n <span *ngIf=\"ariaSelected\"> selected</span>\n <span *ngIf=\"!ariaSelected\"> unselected</span>\n </div>\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","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n Component,\n ContentChildren,\n ElementRef,\n Input,\n NgZone,\n OnDestroy,\n QueryList,\n Renderer2,\n} from '@angular/core';\nimport { fromEvent, Subscription } from 'rxjs';\n\nimport { TREE_FEATURES_PROVIDER, TreeFeaturesService } from './tree-features.service';\nimport { TreeFocusManagerService } from './tree-focus-manager.service';\nimport { ClrTreeNode } from './tree-node';\n\n@Component({\n selector: 'clr-tree',\n template: `\n <ng-content></ng-content>\n <clr-recursive-children\n *ngIf=\"featuresService.recursion\"\n [children]=\"featuresService.recursion.root\"\n ></clr-recursive-children>\n `,\n providers: [TREE_FEATURES_PROVIDER, TreeFocusManagerService],\n host: {\n tabindex: '0',\n '[attr.role]': '\"tree\"',\n '[attr.aria-multiselectable]': 'isMultiSelectable',\n },\n})\nexport class ClrTree<T> implements AfterContentInit, OnDestroy {\n @ContentChildren(ClrTreeNode) private rootNodes: QueryList<ClrTreeNode<T>>;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n public featuresService: TreeFeaturesService<T>,\n private focusManagerService: TreeFocusManagerService<T>,\n { nativeElement }: ElementRef<HTMLElement>,\n renderer: Renderer2,\n ngZone: NgZone\n ) {\n const subscription = ngZone.runOutsideAngular(() =>\n fromEvent(nativeElement, 'focusin').subscribe((event: FocusEvent) => {\n if (event.target === nativeElement) {\n // After discussing with the team, I've made it so that when the tree receives focus, the first visible node will be focused.\n // This will prevent from the page scrolling abruptly to the first selected node if it exist in a deeply nested tree.\n this.focusManagerService.focusFirstVisibleNode();\n // when the first child gets focus,\n // tree should no longer have tabindex of 0.\n renderer.removeAttribute(nativeElement, 'tabindex');\n }\n })\n );\n\n this.subscriptions.push(subscription);\n }\n\n @Input('clrLazy')\n set lazy(value: boolean) {\n this.featuresService.eager = !value;\n }\n\n get isMultiSelectable() {\n return this.featuresService.selectable && this.rootNodes.length > 0;\n }\n\n ngAfterContentInit() {\n this.setRootNodes();\n this.subscriptions.push(\n this.rootNodes.changes.subscribe(() => {\n this.setRootNodes();\n })\n );\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n private setRootNodes(): void {\n // if node has no parent, it's a root node\n // for recursive tree, this.rootNodes registers also nested children\n // so we have to use filter to extract the ones that are truly root nodes\n this.focusManagerService.rootNodeModels = this.rootNodes.map(node => node._model).filter(node => !node.parent);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { angleIcon, ClarityIcons } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrLoadingModule } from '../../utils/loading/loading.module';\nimport { RecursiveChildren } from './recursive-children';\nimport { ClrRecursiveForOf } from './recursive-for-of';\nimport { ClrTree } from './tree';\nimport { ClrTreeNode } from './tree-node';\nimport { ClrTreeNodeLink } from './tree-node-link';\n\nexport const CLR_TREE_VIEW_DIRECTIVES: Type<any>[] = [ClrTree, ClrTreeNode, ClrRecursiveForOf, ClrTreeNodeLink];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrLoadingModule],\n declarations: [CLR_TREE_VIEW_DIRECTIVES, RecursiveChildren],\n exports: [CLR_TREE_VIEW_DIRECTIVES],\n})\nexport class ClrTreeViewModule {\n constructor() {\n ClarityIcons.addIcons(angleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrDatagridModule } from './datagrid/datagrid.module';\nimport { ClrStackViewModule } from './stack-view/stack-view.module';\nimport { ClrTreeViewModule } from './tree-view/tree-view.module';\n\n@NgModule({\n exports: [ClrDatagridModule, ClrStackViewModule, ClrTreeViewModule],\n})\nexport class ClrDataModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable, Observer } from 'rxjs';\n\nexport function wrapObservable<T>(\n observable: Observable<T>,\n onSubscribe?: (observer: Observer<T>) => void,\n onUnsubscribe?: (observer: Observer<T>) => void\n): Observable<T> {\n return Observable.create((observer: Observer<T>) => {\n onSubscribe(observer);\n const subscription = observable.subscribe(observer);\n return () => {\n subscription.unsubscribe();\n if (onUnsubscribe) {\n onUnsubscribe(observer);\n }\n };\n });\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { Inject, Injectable, OnDestroy, Optional, PLATFORM_ID, Renderer2, SkipSelf } from '@angular/core';\nimport { Observable, of, ReplaySubject } from 'rxjs';\nimport { map, take } from 'rxjs/operators';\n\nimport { ArrowKeyDirection } from '../../../utils/focus/arrow-key-direction.enum';\nimport { FocusService } from '../../../utils/focus/focus.service';\nimport { customFocusableItemProvider } from '../../../utils/focus/focusable-item/custom-focusable-item-provider';\nimport { FocusableItem } from '../../../utils/focus/focusable-item/focusable-item';\nimport { Linkers } from '../../../utils/focus/focusable-item/linkers';\nimport { wrapObservable } from '../../../utils/focus/wrap-observable';\nimport { uniqueIdFactory } from '../../../utils/id-generator/id-generator.service';\nimport { ClrPopoverToggleService } from '../../../utils/popover/providers/popover-toggle.service';\n\n@Injectable()\nexport class DropdownFocusHandler implements OnDestroy, FocusableItem {\n id = uniqueIdFactory();\n focusBackOnTriggerWhenClosed = false;\n\n right?: Observable<FocusableItem>;\n down?: Observable<FocusableItem>;\n up?: Observable<FocusableItem>;\n\n private _trigger: HTMLElement;\n private _container: HTMLElement;\n private children: ReplaySubject<FocusableItem[]>;\n private _unlistenFuncs: (() => void)[] = [];\n\n constructor(\n private renderer: Renderer2,\n @SkipSelf()\n @Optional()\n private parent: DropdownFocusHandler,\n private toggleService: ClrPopoverToggleService,\n private focusService: FocusService,\n @Inject(PLATFORM_ID) private platformId: any\n ) {\n this.resetChildren();\n this.moveToFirstItemWhenOpen();\n if (!this.parent) {\n this.handleRootFocus();\n }\n }\n\n get trigger() {\n return this._trigger;\n }\n set trigger(el: HTMLElement) {\n this._trigger = el;\n\n if (this.parent) {\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowright', event => this.toggleService.toggleWithEvent(event))\n );\n } else {\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowup', event => this.toggleService.toggleWithEvent(event))\n );\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.arrowdown', event => this.toggleService.toggleWithEvent(event))\n );\n this.focusService.listenToArrowKeys(el);\n }\n }\n\n get container() {\n return this._container;\n }\n set container(el: HTMLElement) {\n this._container = el;\n\n // whether root container or not, tab key should always toggle (i.e. close) the container\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.tab', event => this.toggleService.toggleWithEvent(event))\n );\n\n if (this.parent) {\n // if it's a nested container, pressing escape has the same effect as pressing left key, which closes the current\n // popup and moves up to its parent. Here, we stop propagation so that the parent container\n // doesn't receive the escape keydown\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.escape', event => {\n this.focusService.move(ArrowKeyDirection.LEFT);\n event.stopPropagation();\n })\n );\n } else {\n // The root container is the only one we register to the focus service, others do not need focus\n this.focusService.registerContainer(el);\n\n // The root container will simply close the container when escape key is pressed\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'keydown.escape', event => this.toggleService.toggleWithEvent(event))\n );\n\n // When the user moves focus outside of the menu, we close the dropdown\n this._unlistenFuncs.push(\n this.renderer.listen(el, 'blur', event => {\n // we clear out any existing focus on the items\n this.children.pipe(take(1)).subscribe(items => items.forEach(item => item.blur()));\n\n // event.relatedTarget is null in IE11. In that case we use document.activeElement which correctly points\n // to the element we want to check. Note that other browsers might point document.activeElement to the\n // wrong element. This is ok, because all the other browsers we support relies on event.relatedTarget.\n const target = event.relatedTarget || document.activeElement;\n\n // If the user clicks on an item which triggers the blur, we don't want to close it since it may open a submenu.\n // In the case of needing to close it (i.e. user selected an item and the dropdown menu is set to close on\n // selection), dropdown-item.ts handles it.\n if (target && isPlatformBrowser(this.platformId)) {\n if (el.contains(target) || target === this.trigger) {\n return;\n }\n }\n // We let the user move focus to where the want, we don't force the focus back on the trigger\n this.focusBackOnTriggerWhenClosed = false;\n this.toggleService.open = false;\n })\n );\n }\n }\n\n ngOnDestroy() {\n this._unlistenFuncs.forEach((unlisten: () => void) => unlisten());\n this.focusService.detachListeners();\n }\n\n /**\n * If the dropdown was opened by clicking on the trigger, we automatically move to the first item\n */\n moveToFirstItemWhenOpen() {\n const subscription = this.toggleService.openChange.subscribe(open => {\n if (open && this.toggleService.originalEvent) {\n // Even if we properly waited for ngAfterViewInit, the container still wouldn't be attached to the DOM.\n // So setTimeout is the only way to wait for the container to be ready to move focus to first item.\n setTimeout(() => {\n this.focusService.moveTo(this);\n if (this.parent) {\n this.focusService.move(ArrowKeyDirection.RIGHT);\n } else {\n this.focusService.move(ArrowKeyDirection.DOWN);\n }\n });\n }\n });\n\n this._unlistenFuncs.push(() => subscription.unsubscribe());\n }\n\n /**\n * Focus on the menu when it opens, and focus back on the root trigger when the whole dropdown becomes closed\n */\n handleRootFocus() {\n const subscription = this.toggleService.openChange.subscribe(open => {\n if (!open) {\n // We reset the state of the focus service both on initialization and when closing.\n this.focusService.reset(this);\n // But we only actively focus the trigger when closing, not on initialization.\n if (this.focusBackOnTriggerWhenClosed) {\n this.focus();\n }\n }\n this.focusBackOnTriggerWhenClosed = open;\n });\n\n this._unlistenFuncs.push(() => subscription.unsubscribe());\n }\n\n focus() {\n if (this.trigger && isPlatformBrowser(this.platformId)) {\n this.trigger.focus();\n }\n }\n\n blur() {\n if (this.trigger && isPlatformBrowser(this.platformId)) {\n this.trigger.blur();\n }\n }\n\n activate() {\n if (isPlatformBrowser(this.platformId)) {\n this.trigger.click();\n }\n }\n\n resetChildren() {\n this.children = new ReplaySubject<FocusableItem[]>(1);\n if (this.parent) {\n this.right = this.openAndGetChildren().pipe(map(all => all[0]));\n } else {\n this.down = this.openAndGetChildren().pipe(map(all => all[0]));\n this.up = this.openAndGetChildren().pipe(map(all => all[all.length - 1]));\n }\n }\n\n addChildren(children: FocusableItem[]) {\n Linkers.linkVertical(children);\n if (this.parent) {\n Linkers.linkParent(children, this.closeAndGetThis(), ArrowKeyDirection.LEFT);\n }\n this.children.next(children);\n }\n\n private openAndGetChildren() {\n return wrapObservable(this.children, () => (this.toggleService.open = true));\n }\n\n private closeAndGetThis() {\n return wrapObservable(of(this), () => (this.toggleService.open = false));\n }\n}\n\nexport const DROPDOWN_FOCUS_HANDLER_PROVIDER = customFocusableItemProvider(DropdownFocusHandler);\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, Optional, SkipSelf } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class RootDropdownService {\n private _changes = new Subject<boolean>();\n\n get changes(): Observable<boolean> {\n return this._changes.asObservable();\n }\n\n closeMenus(): void {\n this._changes.next(false);\n }\n}\n\nexport function clrRootDropdownFactory(existing: RootDropdownService) {\n return existing || new RootDropdownService();\n}\n\nexport const ROOT_DROPDOWN_PROVIDER = {\n provide: RootDropdownService,\n useFactory: clrRootDropdownFactory,\n deps: [[new Optional(), new SkipSelf(), RootDropdownService]],\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Component, Input, OnDestroy, Optional, SkipSelf } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { FOCUS_SERVICE_PROVIDER } from '../../utils/focus/focus.service';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { DROPDOWN_FOCUS_HANDLER_PROVIDER, DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\nimport { ROOT_DROPDOWN_PROVIDER, RootDropdownService } from './providers/dropdown.service';\n\n@Component({\n selector: 'clr-dropdown',\n template: '<ng-content></ng-content>',\n host: {\n '[class.dropdown]': 'true',\n '[class.open]': 'toggleService.open',\n },\n providers: [ROOT_DROPDOWN_PROVIDER, FOCUS_SERVICE_PROVIDER, DROPDOWN_FOCUS_HANDLER_PROVIDER],\n hostDirectives: [ClrPopoverHostDirective],\n})\nexport class ClrDropdown implements OnDestroy {\n @Input('clrCloseMenuOnItemClick') isMenuClosable = true;\n\n private subscriptions: Subscription[] = [];\n\n constructor(\n @SkipSelf()\n @Optional()\n public parent: ClrDropdown,\n public toggleService: ClrPopoverToggleService,\n public focusHandler: DropdownFocusHandler,\n private cdr: ChangeDetectorRef,\n dropdownService: RootDropdownService\n ) {\n this.subscriptions.push(dropdownService.changes.subscribe(value => (this.toggleService.open = value)));\n this.subscriptions.push(toggleService.openChange.subscribe(() => this.cdr.markForCheck()));\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { ElementRef, Inject, Injectable, PLATFORM_ID, Renderer2 } from '@angular/core';\n\nimport { uniqueIdFactory } from '../../id-generator/id-generator.service';\nimport { FocusableItem } from './focusable-item';\n\n@Injectable()\nexport class BasicFocusableItem implements FocusableItem {\n id = uniqueIdFactory();\n disabled = false;\n\n constructor(\n private el: ElementRef<HTMLElement>,\n private renderer: Renderer2,\n @Inject(PLATFORM_ID) private platformId: any\n ) {\n renderer.setAttribute(el.nativeElement, 'id', this.id);\n renderer.setAttribute(el.nativeElement, 'tabindex', '-1');\n }\n\n focus() {\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.setAttribute(this.el.nativeElement, 'tabindex', '0');\n this.el.nativeElement.focus();\n this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' });\n }\n }\n blur() {\n if (isPlatformBrowser(this.platformId)) {\n this.renderer.setAttribute(this.el.nativeElement, 'tabindex', '-1');\n this.el.nativeElement.blur();\n }\n }\n\n activate() {\n if (isPlatformBrowser(this.platformId)) {\n this.el.nativeElement.click();\n }\n }\n}\n\nexport const BASIC_FOCUSABLE_ITEM_PROVIDER = [\n {\n provide: FocusableItem,\n useClass: BasicFocusableItem,\n },\n];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, HostListener, Input } from '@angular/core';\n\nimport { BASIC_FOCUSABLE_ITEM_PROVIDER } from '../../utils/focus/focusable-item/basic-focusable-item.service';\nimport { FocusableItem } from '../../utils/focus/focusable-item/focusable-item';\nimport { ClrDropdown } from './dropdown';\nimport { RootDropdownService } from './providers/dropdown.service';\n\n@Directive({\n selector: '[clrDropdownItem]',\n host: {\n '[class.disabled]': 'disabled',\n '[class.dropdown-item]': 'true',\n '[attr.role]': '\"menuitem\"',\n '[attr.aria-disabled]': 'disabled',\n '[attr.id]': 'dropdownItemId',\n },\n providers: [BASIC_FOCUSABLE_ITEM_PROVIDER],\n})\nexport class ClrDropdownItem {\n constructor(\n private dropdown: ClrDropdown,\n private _dropdownService: RootDropdownService,\n private focusableItem: FocusableItem\n ) {}\n\n @Input('clrDisabled')\n get disabled() {\n return this.focusableItem.disabled;\n }\n set disabled(value: boolean | string) {\n // Empty string attribute evaluates to false but should disable the item, so we need to add a special case for it.\n this.focusableItem.disabled = !!value || value === '';\n }\n\n /**\n * Let you overwrite the focusable auto increment id.\n */\n @Input('id')\n get dropdownItemId() {\n return this.focusableItem.id;\n }\n set dropdownItemId(value: string) {\n this.focusableItem.id = value;\n }\n\n @HostListener('click')\n private onDropdownItemClick(): void {\n // Move focus back to the root dropdown trigger.\n // This is done BEFORE the dropdown is closed so that focus gets moved properly if a modal is opened.\n if (this.dropdown.isMenuClosable && !this.disabled && this.dropdown.toggleService.open) {\n const rootDropdown = this.findRootDropdown();\n\n rootDropdown.focusHandler.focus();\n // Prevent moving focus back to the trigger when the dropdown menu is closed.\n // Without this line, focus could be \"stolen\" from a modal that was opened from a dropdown item.\n rootDropdown.focusHandler.focusBackOnTriggerWhenClosed = false;\n }\n\n // Ensure that the dropdown is closed after custom dropdown item click event handlers have run.\n setTimeout(() => {\n if (this.dropdown.isMenuClosable && !this.disabled) {\n this._dropdownService.closeMenus();\n }\n });\n }\n\n @HostListener('keydown.space', ['$event'])\n private onSpaceKeydown($event: KeyboardEvent) {\n this.stopImmediatePropagationIfDisabled($event);\n }\n\n @HostListener('keydown.enter', ['$event'])\n private onEnterKeydown($event: KeyboardEvent) {\n this.stopImmediatePropagationIfDisabled($event);\n }\n\n private stopImmediatePropagationIfDisabled($event: Event) {\n if (this.disabled) {\n $event.preventDefault(); // prevent click event\n $event.stopImmediatePropagation();\n }\n }\n\n private findRootDropdown() {\n let rootDropdown = this.dropdown;\n\n while (rootDropdown.parent) {\n rootDropdown = rootDropdown.parent;\n }\n\n return rootDropdown;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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/*\n * Do NOT Angular this up. It assumes we're in the DOM, plays with native elements, ...\n * It could potentially be used as part of @clr/ui as a vanilla Javascript helper.\n */\n\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { PopoverOptions } from './popover-options.interface';\nexport enum Point {\n RIGHT_CENTER,\n RIGHT_TOP,\n RIGHT_BOTTOM,\n TOP_CENTER,\n TOP_RIGHT,\n TOP_LEFT,\n BOTTOM_CENTER,\n BOTTOM_RIGHT,\n BOTTOM_LEFT,\n LEFT_CENTER,\n LEFT_TOP,\n LEFT_BOTTOM,\n}\n\nconst POSITION_RELATIVE = 'relative';\nconst POSITION_ABSOLUTE = 'absolute';\nconst POSITION_FIXED = 'fixed';\n\nconst OVERFLOW_SCROLL = 'scroll';\nconst OVERFLOW_AUTO = 'auto';\n\nexport class Popover {\n private _scroll: Subject<void>;\n private boundOnScrollListener: any = this.emitScrollEvent.bind(this);\n\n /*\n * Containers up to the first positioned one will have an event on scroll\n */\n private scrollableElements: HTMLElement[] = [];\n\n constructor(private element: any) {\n // Browsers don't agree with what to do if some of these are not specified, so we set them all to be safe.\n element.style.position = POSITION_ABSOLUTE;\n element.style.top = 0;\n element.style.bottom = 'auto';\n element.style.left = 0;\n element.style.right = 'auto';\n }\n\n // TODO: need a way to account for parameters that change dynamically (positioning).\n anchor(\n anchor: any,\n anchorAlign: Point,\n popoverAlign: Point,\n { offsetX = 0, offsetY = 0, useAnchorParent = false }: PopoverOptions = {}\n ): Observable<any> {\n // TODO: we are assuming here that the popover is inside or next to the anchor.\n // We'd need to go up the popover tree too otherwise\n\n this.addScrollEventListeners(anchor);\n if (useAnchorParent) {\n anchor = anchor.parentNode;\n }\n // explicitly override anchor's style to static\n anchor.style.position = 'static';\n\n const anchorRect = anchor.getBoundingClientRect();\n const popoverRect = this.element.getBoundingClientRect();\n\n // position of left top corner of anchor + the offset\n let leftDiff: number = anchorRect.left - popoverRect.left + offsetX;\n let topDiff: number = anchorRect.top - popoverRect.top + offsetY;\n\n // first, adjust positioning based on anchor's align point\n switch (anchorAlign) {\n case Point.LEFT_TOP:\n case Point.TOP_LEFT:\n break;\n case Point.TOP_CENTER:\n leftDiff += anchorRect.width / 2;\n break;\n case Point.TOP_RIGHT:\n leftDiff += anchorRect.width;\n break;\n case Point.RIGHT_TOP:\n leftDiff += anchorRect.width;\n break;\n case Point.LEFT_BOTTOM:\n topDiff += anchorRect.height;\n break;\n case Point.BOTTOM_LEFT:\n topDiff += anchorRect.height;\n break;\n case Point.BOTTOM_CENTER:\n topDiff += anchorRect.height;\n leftDiff += anchorRect.width / 2;\n break;\n case Point.BOTTOM_RIGHT:\n topDiff += anchorRect.height;\n leftDiff += anchorRect.width;\n break;\n case Point.RIGHT_BOTTOM:\n topDiff += anchorRect.height;\n leftDiff += anchorRect.width;\n break;\n case Point.LEFT_CENTER:\n topDiff += anchorRect.height / 2;\n break;\n case Point.RIGHT_CENTER:\n topDiff += anchorRect.height / 2;\n leftDiff += anchorRect.width;\n break;\n default:\n }\n\n // second, adjust positioning based on popover's align point\n switch (popoverAlign) {\n case Point.LEFT_TOP:\n case Point.TOP_LEFT:\n break;\n case Point.TOP_CENTER:\n leftDiff -= popoverRect.width / 2;\n break;\n case Point.TOP_RIGHT:\n leftDiff -= popoverRect.width;\n break;\n case Point.RIGHT_TOP:\n leftDiff -= popoverRect.width;\n break;\n case Point.LEFT_BOTTOM:\n topDiff -= popoverRect.height;\n break;\n case Point.BOTTOM_LEFT:\n topDiff -= popoverRect.height;\n break;\n case Point.BOTTOM_CENTER:\n topDiff -= popoverRect.height;\n leftDiff -= popoverRect.width / 2;\n break;\n case Point.BOTTOM_RIGHT:\n topDiff -= popoverRect.height;\n leftDiff -= popoverRect.width;\n break;\n case Point.RIGHT_BOTTOM:\n topDiff -= popoverRect.height;\n leftDiff -= popoverRect.width;\n break;\n case Point.LEFT_CENTER:\n topDiff -= popoverRect.height / 2;\n break;\n case Point.RIGHT_CENTER:\n topDiff -= popoverRect.height / 2;\n leftDiff -= popoverRect.width;\n break;\n default:\n }\n\n // Third, adjust with popover's margins based on the two align points.\n // Here, we make an assumption that popover is primarily positioned outside the\n // anchor with minor offset. Without this assumption, it's impossible to apply\n // the popover's margins in a predictable way. For example, assume that a popover\n // and its anchor are exactly the same size. if a popover is positioned inside the\n // anchor (which is technically possible), then it becomes impossible to know what to do\n // if the popover has a non-zero margin value all around (because applying the margin in\n // all four directions will result in no margin visually, which isn't what we want).\n // Therefore, our logic makes assumptions about margins of interest given the points,\n // and only covers the cases where popover is outside the anchor.\n\n const popoverComputedStyle = getComputedStyle(this.element);\n const marginLeft = parseInt(popoverComputedStyle.marginLeft, 10);\n const marginRight = parseInt(popoverComputedStyle.marginRight, 10);\n const marginTop = parseInt(popoverComputedStyle.marginTop, 10);\n const marginBottom = parseInt(popoverComputedStyle.marginBottom, 10);\n\n switch (anchorAlign) {\n case Point.LEFT_TOP:\n case Point.TOP_LEFT:\n case Point.TOP_RIGHT:\n case Point.RIGHT_TOP:\n if (popoverAlign === Point.BOTTOM_RIGHT || popoverAlign === Point.RIGHT_BOTTOM) {\n topDiff -= marginBottom;\n leftDiff -= marginRight;\n }\n if (popoverAlign === Point.BOTTOM_LEFT || popoverAlign === Point.LEFT_BOTTOM) {\n topDiff -= marginTop;\n leftDiff += marginLeft;\n }\n if (popoverAlign === Point.TOP_LEFT || popoverAlign === Point.LEFT_TOP) {\n topDiff += marginTop;\n leftDiff += marginLeft;\n }\n if (popoverAlign === Point.TOP_RIGHT || popoverAlign === Point.RIGHT_TOP) {\n topDiff += marginTop;\n leftDiff -= marginRight;\n }\n break;\n case Point.LEFT_BOTTOM:\n case Point.BOTTOM_LEFT:\n case Point.BOTTOM_RIGHT:\n case Point.RIGHT_BOTTOM:\n if (popoverAlign === Point.BOTTOM_LEFT || popoverAlign === Point.LEFT_BOTTOM) {\n topDiff -= marginBottom;\n leftDiff += marginLeft;\n }\n if (popoverAlign === Point.BOTTOM_RIGHT || popoverAlign === Point.RIGHT_BOTTOM) {\n topDiff -= marginBottom;\n leftDiff -= marginRight;\n }\n if (popoverAlign === Point.TOP_LEFT || popoverAlign === Point.LEFT_TOP) {\n topDiff += marginTop;\n leftDiff += marginLeft;\n }\n if (popoverAlign === Point.TOP_RIGHT || popoverAlign === Point.RIGHT_TOP) {\n topDiff += marginTop;\n leftDiff -= marginRight;\n }\n break;\n case Point.TOP_CENTER:\n topDiff -= marginBottom;\n leftDiff += marginLeft;\n leftDiff -= marginRight;\n break;\n case Point.BOTTOM_CENTER:\n topDiff += marginTop;\n leftDiff += marginLeft;\n leftDiff -= marginRight;\n break;\n case Point.LEFT_CENTER:\n topDiff += marginTop;\n topDiff -= marginBottom;\n leftDiff -= marginRight;\n break;\n case Point.RIGHT_CENTER:\n topDiff += marginTop;\n topDiff -= marginBottom;\n leftDiff += marginLeft;\n break;\n default:\n }\n\n this.element.style.transform = `translateX(${Math.round(leftDiff)}px) translateY(${Math.round(topDiff)}px)`;\n return this._scroll.asObservable();\n }\n\n release() {\n this.element.style.transform = '';\n this.removeScrollEventListeners();\n }\n\n private isPositioned(container: any) {\n const position = getComputedStyle(container).position;\n return position === POSITION_RELATIVE || position === POSITION_ABSOLUTE || position === POSITION_FIXED;\n }\n\n private emitScrollEvent() {\n this._scroll.next();\n }\n\n private addScrollEventListeners(e: any) {\n this._scroll = new Subject<void>();\n const anchor: any = e;\n let current: any = e;\n while (current && current !== document) {\n if (this.scrolls(current)) {\n current.addEventListener('scroll', this.boundOnScrollListener);\n this.scrollableElements.push(current);\n }\n if (current !== anchor && this.isPositioned(current)) {\n break;\n }\n current = current.parentNode;\n }\n }\n\n private removeScrollEventListeners() {\n for (const elem of this.scrollableElements) {\n elem.removeEventListener('scroll', this.boundOnScrollListener);\n }\n this.scrollableElements.length = 0;\n if (this._scroll) {\n this._scroll.complete();\n delete this._scroll;\n }\n }\n\n private scrolls(container: any): boolean {\n const computedStyles = getComputedStyle(container);\n return (\n computedStyles.overflowX === OVERFLOW_SCROLL ||\n computedStyles.overflowX === OVERFLOW_AUTO ||\n computedStyles.overflowY === OVERFLOW_SCROLL ||\n computedStyles.overflowY === OVERFLOW_AUTO\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterViewChecked,\n ChangeDetectorRef,\n Directive,\n ElementRef,\n HostBinding,\n Injector,\n NgZone,\n OnDestroy,\n Renderer2,\n SkipSelf,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { Keys } from '../../utils/enums/keys.enum';\nimport { normalizeKey } from '../../utils/focus/key-focus/util';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { Point, Popover } from './popover';\nimport { PopoverOptions } from './popover-options.interface';\n\n@Directive()\nexport abstract class AbstractPopover implements AfterViewChecked, OnDestroy {\n /*\n * Until https://github.com/angular/angular/issues/8785 is supported, we don't have any way to instantiate\n * a separate directive on the host. So let's do dirty but performant for now.\n */\n closeOnOutsideClick = false;\n\n protected el: ElementRef;\n protected toggleService: ClrPopoverToggleService;\n protected renderer: Renderer2;\n protected ngZone: NgZone;\n protected ref: ChangeDetectorRef;\n protected anchorElem: any;\n protected anchorPoint: Point;\n protected popoverPoint: Point;\n protected popoverOptions: PopoverOptions = {};\n protected ignoredElement: any;\n\n private updateAnchor = false;\n private popoverInstance: Popover;\n private subscription: Subscription;\n private documentESCListener: VoidFunction | null = null;\n\n constructor(injector: Injector, @SkipSelf() protected parentHost: ElementRef) {\n this.el = injector.get(ElementRef);\n this.toggleService = injector.get(ClrPopoverToggleService);\n this.renderer = injector.get(Renderer2);\n this.ngZone = injector.get(NgZone);\n this.ref = injector.get(ChangeDetectorRef);\n // Default anchor is the parent host\n this.anchorElem = parentHost.nativeElement;\n\n this.popoverInstance = new Popover(this.el.nativeElement);\n this.subscription = this.toggleService.openChange.subscribe(change => {\n if (change) {\n this.anchor();\n this.attachESCListener();\n } else {\n this.release();\n this.detachESCListener();\n }\n });\n if (this.toggleService.open) {\n this.anchor();\n this.attachESCListener();\n }\n }\n\n /*\n * Fallback to hide when *clrIfOpen is not being used\n */\n @HostBinding('class.is-off-screen')\n get isOffScreen() {\n return this.toggleService.open ? false : true;\n }\n\n ngAfterViewChecked() {\n if (this.updateAnchor) {\n this.updateAnchor = false;\n this.popoverInstance\n .anchor(this.anchorElem, this.anchorPoint, this.popoverPoint, this.popoverOptions)\n .subscribe(() => {\n // if a scroll event is detected, close the popover\n this.toggleService.open = false;\n });\n this.attachOutsideClickListener();\n }\n }\n\n ngOnDestroy() {\n this.release();\n this.detachESCListener();\n this.subscription.unsubscribe();\n }\n\n protected anchor() {\n this.updateAnchor = true;\n }\n\n protected release() {\n this.detachOutsideClickListener();\n this.popoverInstance.release();\n }\n\n private attachESCListener(): void {\n if (this.popoverOptions.ignoreGlobalESCListener) {\n return;\n }\n\n this.ngZone.runOutsideAngular(() => {\n this.documentESCListener = this.renderer.listen('document', 'keydown', event => {\n if (event && event.key) {\n if (normalizeKey(event.key) === Keys.Escape) {\n this.ngZone.run(() => {\n this.toggleService.open = false;\n this.ref.markForCheck();\n });\n }\n }\n });\n });\n }\n\n private detachESCListener(): void {\n if (this.documentESCListener) {\n this.documentESCListener();\n this.documentESCListener = null;\n }\n }\n\n private closeOnOutsideClickCallback = event => {\n // The anchor element containing the click event origin means, the click wasn't triggered outside.\n if (this.anchorElem.contains(event.target)) {\n return;\n }\n this.toggleService.open = false;\n };\n\n private attachOutsideClickListener() {\n if (this.closeOnOutsideClick && this.toggleService.open) {\n if (document && document.addEventListener) {\n // To listen outside click, the listener should catch the event during the capturing phase.\n // We have to do this ugly document check as Renderer2.listen doesn't allow passive/useCapture listen.\n document.addEventListener('click', this.closeOnOutsideClickCallback, true);\n }\n }\n }\n\n private detachOutsideClickListener() {\n if (this.closeOnOutsideClick) {\n if (document && document.removeEventListener) {\n document.removeEventListener('click', this.closeOnOutsideClickCallback, true);\n }\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n Component,\n ContentChildren,\n ElementRef,\n Inject,\n Injector,\n Input,\n OnDestroy,\n Optional,\n QueryList,\n SkipSelf,\n} from '@angular/core';\n\nimport { FocusableItem } from '../../utils/focus/focusable-item/focusable-item';\nimport { AbstractPopover } from '../common/abstract-popover';\nimport { Point } from '../common/popover';\nimport { POPOVER_HOST_ANCHOR } from '../common/popover-host-anchor.token';\nimport { DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\n\n@Component({\n selector: 'clr-dropdown-menu',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.dropdown-menu]': 'true',\n '[attr.role]': '\"menu\"',\n },\n})\nexport class ClrDropdownMenu extends AbstractPopover implements AfterContentInit, OnDestroy {\n @ContentChildren(FocusableItem) items: QueryList<FocusableItem>;\n\n private focusHandler: DropdownFocusHandler;\n\n constructor(\n injector: Injector,\n @Optional()\n @Inject(POPOVER_HOST_ANCHOR)\n parentHost: ElementRef<HTMLElement>,\n @Optional()\n @SkipSelf()\n nested: ClrDropdownMenu,\n focusHandler: DropdownFocusHandler\n ) {\n if (!parentHost) {\n throw new Error('clr-dropdown-menu should only be used inside of a clr-dropdown');\n }\n super(injector, parentHost);\n if (!nested) {\n // Default positioning for normal dropdown is bottom-left\n this.anchorPoint = Point.BOTTOM_LEFT;\n this.popoverPoint = Point.LEFT_TOP;\n } else {\n // Default positioning for nested dropdown is right-top\n this.anchorPoint = Point.RIGHT_TOP;\n this.popoverPoint = Point.LEFT_TOP;\n }\n this.popoverOptions.allowMultipleOpen = true;\n this.popoverOptions.ignoreGlobalESCListener = true;\n this.closeOnOutsideClick = true;\n this.focusHandler = focusHandler;\n }\n\n @Input('clrPosition')\n set position(position: string) {\n // set the popover values based on menu position\n switch (position) {\n case 'top-right':\n this.anchorPoint = Point.TOP_RIGHT;\n this.popoverPoint = Point.RIGHT_BOTTOM;\n break;\n case 'top-left':\n this.anchorPoint = Point.TOP_LEFT;\n this.popoverPoint = Point.LEFT_BOTTOM;\n break;\n case 'bottom-right':\n this.anchorPoint = Point.BOTTOM_RIGHT;\n this.popoverPoint = Point.RIGHT_TOP;\n break;\n case 'bottom-left':\n this.anchorPoint = Point.BOTTOM_LEFT;\n this.popoverPoint = Point.LEFT_TOP;\n break;\n case 'right-top':\n this.anchorPoint = Point.RIGHT_TOP;\n this.popoverPoint = Point.LEFT_TOP;\n break;\n case 'right-bottom':\n this.anchorPoint = Point.RIGHT_BOTTOM;\n this.popoverPoint = Point.LEFT_BOTTOM;\n break;\n case 'left-top':\n this.anchorPoint = Point.LEFT_TOP;\n this.popoverPoint = Point.RIGHT_TOP;\n break;\n case 'left-bottom':\n this.anchorPoint = Point.LEFT_BOTTOM;\n this.popoverPoint = Point.RIGHT_BOTTOM;\n break;\n default:\n this.anchorPoint = Point.BOTTOM_LEFT;\n this.popoverPoint = Point.LEFT_TOP;\n break;\n }\n }\n\n ngAfterContentInit() {\n this.focusHandler.container = this.el.nativeElement;\n this.items.changes.subscribe(() => this.focusHandler.addChildren(this.items.toArray()));\n // I saw this on GitHub as a solution to avoid code duplication because of missed QueryList changes\n this.items.notifyOnChanges();\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n this.focusHandler.resetChildren();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, HostListener } from '@angular/core';\n\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { ClrDropdown } from './dropdown';\nimport { DropdownFocusHandler } from './providers/dropdown-focus-handler.service';\n\n@Directive({\n // We support both selectors for legacy reasons\n selector: '[clrDropdownTrigger],[clrDropdownToggle]',\n host: {\n '[class.dropdown-toggle]': 'isRootLevelToggle',\n '[class.dropdown-item]': '!isRootLevelToggle',\n '[class.expandable]': '!isRootLevelToggle',\n '[class.active]': 'active',\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'active',\n },\n})\nexport class ClrDropdownTrigger {\n isRootLevelToggle = true;\n\n constructor(\n dropdown: ClrDropdown,\n private toggleService: ClrPopoverToggleService,\n el: ElementRef<HTMLElement>,\n focusHandler: DropdownFocusHandler\n ) {\n // if the containing dropdown has a parent, then this is not the root level one\n if (dropdown.parent) {\n this.isRootLevelToggle = false;\n }\n focusHandler.trigger = el.nativeElement;\n }\n\n get active(): boolean {\n return this.toggleService.open;\n }\n\n @HostListener('click', ['$event'])\n onDropdownTriggerClick(event: any): void {\n this.toggleService.toggleWithEvent(event);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrDropdown } from './dropdown';\nimport { ClrDropdownItem } from './dropdown-item';\nimport { ClrDropdownMenu } from './dropdown-menu';\nimport { ClrDropdownTrigger } from './dropdown-trigger';\n\nexport const CLR_DROPDOWN_DIRECTIVES: Type<any>[] = [ClrDropdown, ClrDropdownMenu, ClrDropdownTrigger, ClrDropdownItem];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_DROPDOWN_DIRECTIVES],\n exports: [CLR_DROPDOWN_DIRECTIVES, ClrConditionalModule, ClrIconModule],\n})\nexport class ClrDropdownModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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// @TODO Make this an enum\nexport const ALERT_TYPES: string[] = ['info', 'warning', 'danger', 'success'];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../../utils/i18n/common-strings.service';\nimport { AlertInfoObject } from '../utils/alert-info-object';\nimport { ALERT_TYPES } from '../utils/alert-types';\n\n@Injectable()\nexport class AlertIconAndTypesService {\n private defaultIconShape = 'info-circle';\n private _alertIconShape = '';\n private _alertType = 'info';\n\n constructor(private commonStrings: ClrCommonStringsService) {}\n\n get alertType(): string {\n return this._alertType;\n }\n set alertType(val: string) {\n if (ALERT_TYPES.indexOf(val) > -1) {\n this._alertType = val;\n }\n }\n\n get alertIconShape(): string {\n if ('' === this._alertIconShape) {\n return this.iconInfoFromType(this._alertType).shape;\n }\n return this._alertIconShape;\n }\n set alertIconShape(val: string) {\n if (!val) {\n this._alertIconShape = '';\n } else if (val !== this._alertIconShape) {\n this._alertIconShape = val;\n }\n }\n\n get alertIconTitle(): string {\n return this.iconInfoFromType(this._alertType).title;\n }\n\n iconInfoFromType(type: string): AlertInfoObject {\n const returnObj = { shape: '', cssClass: '', title: '' };\n\n switch (type) {\n case 'warning':\n returnObj.shape = 'exclamation-triangle';\n returnObj.cssClass = 'alert-warning';\n returnObj.title = this.commonStrings.keys.warning;\n break;\n case 'danger':\n returnObj.shape = 'exclamation-circle';\n returnObj.cssClass = 'alert-danger';\n returnObj.title = this.commonStrings.keys.danger;\n break;\n case 'success':\n returnObj.shape = 'check-circle';\n returnObj.cssClass = 'alert-success';\n returnObj.title = this.commonStrings.keys.success;\n break;\n default:\n returnObj.shape = this.defaultIconShape;\n returnObj.cssClass = 'alert-info';\n returnObj.title = this.commonStrings.keys.info;\n break;\n }\n\n return returnObj;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, QueryList } from '@angular/core';\nimport { Observable, Subject, Subscription } from 'rxjs';\n\nimport { ClrAlert } from '../alert';\n\n@Injectable()\nexport class MultiAlertService {\n private subscription: Subscription;\n private allAlerts: QueryList<ClrAlert>;\n private _change = new Subject<number>();\n private _current: number;\n\n /**\n * The Observable that lets other classes subscribe to changes\n */\n get changes(): Observable<number> {\n return this._change.asObservable();\n }\n\n get current() {\n return this._current;\n }\n set current(index: number) {\n if (index !== this._current) {\n this._current = index;\n this._change.next(index);\n }\n }\n\n get activeAlerts() {\n return this.allAlerts && this.allAlerts.filter(alert => !alert._closed);\n }\n\n get currentAlert() {\n return this.activeAlerts && this.activeAlerts[this.current];\n }\n set currentAlert(alert: ClrAlert) {\n this.current = this.activeAlerts.indexOf(alert);\n }\n\n get count() {\n return (this.activeAlerts && this.activeAlerts.length) || 0;\n }\n\n manage(alerts: QueryList<ClrAlert>) {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n this.allAlerts = alerts;\n // After receiving alerts' QueryList,\n // we are picking index 0 as current by default if a user hasn't any index\n this.current = typeof this._current === 'number' ? this._current : 0;\n // we have to also broadcast that initial index\n this._change.next(this.current);\n\n this.subscription = this.allAlerts.changes.subscribe(() => {\n if (this.current >= this.allAlerts.length) {\n this.current = Math.max(0, this.allAlerts.length - 1);\n }\n });\n }\n\n next() {\n this._current = this.current === this.activeAlerts.length - 1 ? 0 : this.current + 1;\n this._change.next(this._current);\n }\n\n previous() {\n if (this.activeAlerts.length === 0) {\n return;\n }\n this._current = this.current === 0 ? this.activeAlerts.length - 1 : this.current - 1;\n this._change.next(this._current);\n }\n\n open() {\n if (this.activeAlerts.length === 0) {\n return;\n }\n\n if (!this.currentAlert) {\n this._current = 0;\n }\n\n this._change.next(this._current);\n }\n\n close(isCurrentAlert: boolean) {\n if (this.activeAlerts.length === 0) {\n return;\n }\n\n if (isCurrentAlert) {\n this._current = Math.max(0, this.current - 1);\n }\n\n this._change.next(this._current);\n }\n\n destroy() {\n if (this.subscription) {\n this.subscription.unsubscribe();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Component, EventEmitter, Input, OnDestroy, OnInit, Optional, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { AlertIconAndTypesService } from './providers/icon-and-types.service';\nimport { MultiAlertService } from './providers/multi-alert.service';\n\n@Component({\n selector: 'clr-alert',\n providers: [AlertIconAndTypesService],\n templateUrl: './alert.html',\n styles: [':host { display: block; }'],\n})\nexport class ClrAlert implements OnInit, OnDestroy {\n @Input('clrAlertSizeSmall') isSmall = false;\n @Input('clrAlertClosable') closable = true;\n @Input('clrAlertAppLevel') isAppLevel = false;\n @Input() clrCloseButtonAriaLabel: string = this.commonStrings.keys.alertCloseButtonAriaLabel;\n\n @Output('clrAlertClosedChange') _closedChanged = new EventEmitter<boolean>(false);\n\n _closed = false;\n\n private _hidden: boolean;\n private subscriptions: Subscription[] = [];\n\n constructor(\n private iconService: AlertIconAndTypesService,\n private cdr: ChangeDetectorRef,\n @Optional() private multiAlertService: MultiAlertService,\n private commonStrings: ClrCommonStringsService\n ) {}\n\n @Input('clrAlertType')\n get alertType(): string {\n return this.iconService.alertType;\n }\n set alertType(val: string) {\n this.iconService.alertType = val;\n }\n\n @Input('clrAlertIcon')\n set alertIconShape(value: string) {\n this.iconService.alertIconShape = value;\n }\n\n @Input('clrAlertClosed')\n set closed(value: boolean) {\n if (value && !this._closed) {\n this.close();\n } else if (!value && this._closed) {\n this.open();\n }\n }\n\n get alertClass(): string {\n return this.iconService.iconInfoFromType(this.iconService.alertType).cssClass;\n }\n\n get hidden() {\n return this._hidden;\n }\n set hidden(value: boolean) {\n if (value !== this._hidden) {\n this._hidden = value;\n this.cdr.detectChanges();\n }\n }\n\n ngOnInit() {\n if (this.multiAlertService) {\n this.subscriptions.push(\n this.multiAlertService.changes.subscribe(() => {\n this.hidden = this.multiAlertService.currentAlert !== this;\n })\n );\n }\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n }\n\n open(): void {\n this._closed = false;\n if (this.multiAlertService) {\n this.multiAlertService.open();\n }\n this._closedChanged.emit(false);\n }\n\n close(): void {\n if (!this.closable) {\n return;\n }\n const isCurrentAlert = this.multiAlertService?.currentAlert === this;\n this._closed = true;\n if (this.multiAlertService?.activeAlerts) {\n this.multiAlertService.close(isCurrentAlert);\n }\n this._closedChanged.emit(true);\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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 *ngIf=\"!_closed\"\n class=\"alert\"\n [ngClass]=\"alertClass\"\n [class.alert-hidden]=\"hidden\"\n [class.alert-sm]=\"isSmall\"\n [class.alert-app-level]=\"isAppLevel\"\n>\n <div class=\"alert-items\">\n <ng-content></ng-content>\n </div>\n <button type=\"button\" class=\"close\" *ngIf=\"closable\" (click)=\"close()\" [attr.aria-label]=\"clrCloseButtonAriaLabel\">\n <cds-icon shape=\"window-close\"></cds-icon>\n </button>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { AlertIconAndTypesService } from './providers/icon-and-types.service';\n\n@Component({\n selector: 'clr-alert-item',\n template: `\n <div class=\"alert-icon-wrapper\">\n <cds-icon\n class=\"alert-icon\"\n role=\"img\"\n [attr.shape]=\"iconService.alertIconShape\"\n [attr.aria-label]=\"iconService.alertIconTitle\"\n ></cds-icon>\n </div>\n <ng-content></ng-content>\n `,\n host: { class: 'alert-item' },\n})\nexport class ClrAlertItem {\n constructor(public iconService: AlertIconAndTypesService) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\n/**\n * @remark\n * This directive is used only of selectin alert text.\n */\n@Directive({\n selector: '.alert-text',\n})\nexport class ClrAlertText {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrAlert } from './alert';\nimport { MultiAlertService } from './providers/multi-alert.service';\n\n@Component({\n selector: 'clr-alerts-pager',\n templateUrl: './alerts-pager.html',\n host: { '[class.alerts-pager]': 'true' },\n})\nexport class ClrAlertsPager implements OnInit, OnDestroy {\n @Output('clrCurrentAlertChange') currentAlertChange = new EventEmitter<ClrAlert>(false);\n @Output('clrCurrentAlertIndexChange') currentAlertIndexChange = new EventEmitter<number>();\n\n private multiAlertServiceChanges: Subscription;\n\n constructor(public multiAlertService: MultiAlertService, public commonStrings: ClrCommonStringsService) {}\n\n /**\n * Input/Output to support two way binding on current alert instance\n */\n @Input('clrCurrentAlert')\n get currentAlert() {\n return this.multiAlertService.currentAlert;\n }\n set currentAlert(alert: ClrAlert) {\n if (alert) {\n this.multiAlertService.currentAlert = alert;\n }\n }\n\n /**\n * Input/Output to support two way binding on current alert index\n */\n @Input('clrCurrentAlertIndex')\n get currentAlertIndex() {\n return this.multiAlertService.current;\n }\n set currentAlertIndex(index: number) {\n this.multiAlertService.current = index;\n }\n\n protected get previousAlertAriaLabel() {\n const CURRENT = this.currentAlertIndex + 1;\n return this.commonStrings.parse(this.commonStrings.keys.alertPreviousAlertAriaLabel, {\n CURRENT: (CURRENT === 1 ? this.multiAlertService.count : CURRENT - 1).toString(),\n COUNT: this.multiAlertService.count.toString(),\n });\n }\n\n protected get nextAlertAriaLabel() {\n const CURRENT = this.currentAlertIndex + 1;\n return this.commonStrings.parse(this.commonStrings.keys.alertNextAlertAriaLabel, {\n CURRENT: (CURRENT === this.multiAlertService.count ? 1 : CURRENT + 1).toString(),\n COUNT: this.multiAlertService.count.toString(),\n });\n }\n\n ngOnInit() {\n this.multiAlertServiceChanges = this.multiAlertService.changes.subscribe(index => {\n this.currentAlertIndexChange.emit(index);\n this.currentAlertChange.emit(this.multiAlertService.activeAlerts[index]);\n });\n }\n\n ngOnDestroy() {\n this.multiAlertServiceChanges.unsubscribe();\n }\n\n pageUp() {\n this.multiAlertService.next();\n }\n\n pageDown() {\n this.multiAlertService.previous();\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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 class=\"alerts-pager-control\">\n <div class=\"alerts-page-down\">\n <button class=\"alerts-pager-button\" type=\"button\" (click)=\"pageDown()\" [attr.aria-label]=\"previousAlertAriaLabel\">\n <cds-icon shape=\"angle\" direction=\"left\"></cds-icon>\n </button>\n </div>\n <div class=\"alerts-pager-text\">{{this.multiAlertService.current+1}} / {{this.multiAlertService.count}}</div>\n <div class=\"alerts-page-up\">\n <button class=\"alerts-pager-button\" type=\"button\" (click)=\"pageUp()\" [attr.aria-label]=\"nextAlertAriaLabel\">\n <cds-icon shape=\"angle\" direction=\"right\"></cds-icon>\n </button>\n </div>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n QueryList,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrAlert } from './alert';\nimport { MultiAlertService } from './providers/multi-alert.service';\n\n@Component({\n selector: 'clr-alerts',\n templateUrl: './alerts.html',\n providers: [MultiAlertService],\n host: {\n '[class.alerts]': 'true',\n '[class.alert-danger]': \"this.currentAlertType == 'danger'\",\n '[class.alert-info]': \"this.currentAlertType == 'info'\",\n '[class.alert-success]': \"this.currentAlertType == 'success'\",\n '[class.alert-warning]': \"this.currentAlertType == 'warning'\",\n },\n styles: [':host { display: block }'],\n})\nexport class ClrAlerts implements AfterContentInit, OnDestroy {\n @Output('clrCurrentAlertChange') currentAlertChange = new EventEmitter<ClrAlert>(false);\n @Output('clrCurrentAlertIndexChange') currentAlertIndexChange = new EventEmitter<number>(false);\n\n private subscriptions: Subscription[] = [];\n\n constructor(public multiAlertService: MultiAlertService) {}\n\n @ContentChildren(ClrAlert)\n set allAlerts(value: QueryList<ClrAlert>) {\n this.multiAlertService.manage(value); // provide alerts\n }\n\n /**\n * Input/Output to support two way binding on current alert index\n */\n @Input('clrCurrentAlertIndex')\n set _inputCurrentIndex(index: number) {\n if (Number.isInteger(index) && index >= 0) {\n this.multiAlertService.current = index;\n }\n }\n\n get currentAlertIndex() {\n return this.multiAlertService.current;\n }\n set currentAlertIndex(index: number) {\n this.multiAlertService.current = index;\n }\n\n /**\n * Input/Output to support two way binding on current alert instance\n */\n @Input('clrCurrentAlert')\n get currentAlert() {\n return this.multiAlertService.currentAlert;\n }\n set currentAlert(alert: ClrAlert) {\n if (alert) {\n this.multiAlertService.currentAlert = alert;\n }\n }\n\n /**\n * Ensure we are only dealing with alerts that have not been closed yet\n */\n get alerts() {\n return this.allAlerts.filter(alert => {\n return alert.hidden === false;\n });\n }\n\n get currentAlertType(): string {\n if (this.multiAlertService.currentAlert) {\n return this.multiAlertService.currentAlert.alertType;\n }\n return '';\n }\n\n ngAfterContentInit() {\n this.subscriptions.push(\n this.multiAlertService.changes.subscribe(index => {\n this.currentAlertIndexChange.next(index);\n this.currentAlertChange.next(this.multiAlertService.currentAlert);\n })\n );\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(sub => sub.unsubscribe());\n this.multiAlertService.destroy();\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<clr-alerts-pager *ngIf=\"multiAlertService.count > 1\" [clrCurrentAlertIndex]=\"currentAlertIndex\"></clr-alerts-pager>\n<ng-content select=\"clr-alert\"></ng-content>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport {\n checkCircleIcon,\n ClarityIcons,\n exclamationCircleIcon,\n exclamationTriangleIcon,\n infoCircleIcon,\n windowCloseIcon,\n} from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrDropdownModule } from '../../popover/dropdown/dropdown.module';\nimport { ClrAlert } from './alert';\nimport { ClrAlertItem } from './alert-item';\nimport { ClrAlertText } from './alert-text';\nimport { ClrAlerts } from './alerts';\nimport { ClrAlertsPager } from './alerts-pager';\n\nexport const CLR_ALERT_DIRECTIVES: Type<any>[] = [ClrAlert, ClrAlertItem, ClrAlerts, ClrAlertsPager, ClrAlertText];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrDropdownModule],\n declarations: [CLR_ALERT_DIRECTIVES],\n exports: [CLR_ALERT_DIRECTIVES],\n})\nexport class ClrAlertModule {\n constructor() {\n ClarityIcons.addIcons(\n checkCircleIcon,\n infoCircleIcon,\n exclamationCircleIcon,\n exclamationTriangleIcon,\n windowCloseIcon\n );\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrAlertModule } from './alert/alert.module';\n\n@NgModule({\n exports: [ClrAlertModule],\n})\nexport class ClrEmphasisModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport class ResponsiveNavCodes {\n static NAV_LEVEL_1 = 1;\n static NAV_LEVEL_2 = 2;\n static NAV_CLOSE_ALL = 'NAV_CLOSE_ALL';\n static NAV_OPEN = 'NAV_OPEN';\n static NAV_CLOSE = 'NAV_CLOSE';\n static NAV_TOGGLE = 'NAV_TOGGLE';\n static NAV_CLASS_HAMBURGER_MENU = 'open-hamburger-menu';\n static NAV_CLASS_OVERFLOW_MENU = 'open-overflow-menu';\n static NAV_CLASS_TRIGGER_1 = 'header-hamburger-trigger';\n static NAV_CLASS_TRIGGER_2 = 'header-overflow-trigger';\n static NAV_CLASS_LEVEL_1 = 'clr-nav-level-1';\n static NAV_CLASS_LEVEL_2 = 'clr-nav-level-2';\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport class ResponsiveNavControlMessage {\n constructor(private _controlCode: string, private _navLevel: number) {}\n\n get controlCode(): string {\n return this._controlCode;\n }\n\n get navLevel(): number {\n return this._navLevel;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { ReplaySubject, Subject } from 'rxjs';\n\nimport { ResponsiveNavCodes } from '../responsive-nav-codes';\nimport { ResponsiveNavControlMessage } from '../responsive-nav-control-message';\n\n@Injectable({ providedIn: 'root' })\nexport class ResponsiveNavigationService {\n responsiveNavList: number[] = [];\n\n private registerNavSubject = new ReplaySubject<number[]>();\n private controlNavSubject = new Subject<ResponsiveNavControlMessage>();\n\n constructor() {\n this.closeAllNavs(); // We start with all navs closed\n }\n\n get registeredNavs(): Observable<number[]> {\n return this.registerNavSubject.asObservable();\n }\n\n get navControl(): Observable<ResponsiveNavControlMessage> {\n return this.controlNavSubject.asObservable();\n }\n\n registerNav(navLevel: number): void {\n if (!navLevel || this.isNavRegistered(navLevel)) {\n return;\n }\n this.responsiveNavList.push(navLevel);\n this.registerNavSubject.next(this.responsiveNavList);\n }\n\n isNavRegistered(navLevel: number): boolean {\n if (this.responsiveNavList.indexOf(navLevel) > -1) {\n console.error('Multiple clr-nav-level ' + navLevel + ' attributes found. Please make sure that only one exists');\n return true;\n }\n return false;\n }\n\n unregisterNav(navLevel: number) {\n const index = this.responsiveNavList.indexOf(navLevel);\n if (index > -1) {\n this.responsiveNavList.splice(index, 1);\n this.registerNavSubject.next(this.responsiveNavList);\n }\n }\n\n sendControlMessage(controlCode: string, navLevel: number) {\n const message: ResponsiveNavControlMessage = new ResponsiveNavControlMessage(controlCode, navLevel);\n this.controlNavSubject.next(message);\n }\n\n closeAllNavs() {\n const message: ResponsiveNavControlMessage = new ResponsiveNavControlMessage(\n ResponsiveNavCodes.NAV_CLOSE_ALL,\n -999\n );\n this.controlNavSubject.next(message);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, OnDestroy, OnInit } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ResponsiveNavigationService } from '../nav/providers/responsive-navigation.service';\nimport { ResponsiveNavCodes } from '../nav/responsive-nav-codes';\nimport { ResponsiveNavControlMessage } from '../nav/responsive-nav-control-message';\n\n@Directive({\n selector: 'clr-main-container',\n host: { '[class.main-container]': 'true' },\n})\nexport class ClrMainContainer implements OnDestroy, OnInit {\n private _subscription: Subscription;\n private _classList: DOMTokenList;\n\n constructor(private elRef: ElementRef, private responsiveNavService: ResponsiveNavigationService) {}\n\n ngOnInit() {\n this._classList = this.elRef.nativeElement.classList;\n this._subscription = this.responsiveNavService.navControl.subscribe({\n next: (message: ResponsiveNavControlMessage) => {\n this.processMessage(message);\n },\n });\n }\n\n processMessage(message: ResponsiveNavControlMessage): void {\n let navClass: string = ResponsiveNavCodes.NAV_CLASS_HAMBURGER_MENU;\n if (message.controlCode === ResponsiveNavCodes.NAV_CLOSE_ALL) {\n this._classList.remove(ResponsiveNavCodes.NAV_CLASS_HAMBURGER_MENU);\n this._classList.remove(ResponsiveNavCodes.NAV_CLASS_OVERFLOW_MENU);\n } else if (message.navLevel === ResponsiveNavCodes.NAV_LEVEL_1) {\n this.controlNav(message.controlCode, navClass);\n } else if (message.navLevel === ResponsiveNavCodes.NAV_LEVEL_2) {\n navClass = ResponsiveNavCodes.NAV_CLASS_OVERFLOW_MENU;\n this.controlNav(message.controlCode, navClass);\n }\n }\n\n controlNav(controlCode: string, navClass: string): void {\n if (controlCode === ResponsiveNavCodes.NAV_OPEN) {\n this._classList.add(navClass);\n } else if (controlCode === ResponsiveNavCodes.NAV_CLOSE) {\n this._classList.remove(navClass);\n } else if (controlCode === ResponsiveNavCodes.NAV_TOGGLE) {\n this._classList.toggle(navClass);\n }\n }\n\n ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrMainContainer } from './main-container';\n\nexport const CLR_LAYOUT_DIRECTIVES: Type<any>[] = [ClrMainContainer];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule],\n declarations: [CLR_LAYOUT_DIRECTIVES],\n exports: [CLR_LAYOUT_DIRECTIVES],\n})\nexport class ClrMainContainerModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, OnDestroy, OnInit } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[clrAriaCurrentLink]',\n host: { '[attr.aria-current]': 'ariaCurrent' },\n})\nexport class ClrAriaCurrentLink implements OnInit, OnDestroy {\n ariaCurrent: string | undefined;\n private subscription: Subscription;\n\n constructor(private rla: RouterLinkActive) {}\n\n ngOnInit() {\n this.subscription = this.rla.isActiveChange.subscribe(isActive => {\n this.ariaCurrent = isActive ? 'page' : undefined;\n });\n }\n\n ngOnDestroy() {\n this.subscription.unsubscribe();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { WillyWonka } from '../../../utils/chocolate/willy-wonka';\n\n@Directive({\n selector: 'clr-main-container',\n})\nexport class MainContainerWillyWonka extends WillyWonka {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';\nimport { ResponsiveNavigationService } from '../providers/responsive-navigation.service';\nimport { MainContainerWillyWonka } from './main-container-willy-wonka';\n\n@Directive({\n selector: 'clr-header',\n})\nexport class NavDetectionOompaLoompa extends OompaLoompa {\n private responsiveNavService: ResponsiveNavigationService;\n\n constructor(\n cdr: ChangeDetectorRef,\n @Optional() willyWonka: MainContainerWillyWonka,\n responsiveNavService: ResponsiveNavigationService\n ) {\n if (!willyWonka) {\n throw new Error('clr-header should only be used inside of a clr-main-container');\n }\n super(cdr, willyWonka);\n this.responsiveNavService = responsiveNavService;\n }\n\n // NavDetectionOompaLoompa is the addition of the nav levels\n // Since we support 2 levels, the possibilities are 0, 1 or 3 (1 + 2)\n get flavor() {\n return this.responsiveNavService.responsiveNavList.reduce((sum, navLevel) => sum + navLevel, 0);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, HostBinding, Input, OnDestroy } from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ResponsiveNavigationService } from './providers/responsive-navigation.service';\nimport { ResponsiveNavCodes } from './responsive-nav-codes';\n\n@Component({\n selector: 'clr-header',\n template: `\n <button\n type=\"button\"\n *ngIf=\"isNavLevel1OnPage\"\n class=\"header-hamburger-trigger\"\n [attr.aria-label]=\"responsiveNavCommonString\"\n (click)=\"openNav(responsiveNavCodes.NAV_LEVEL_1)\"\n >\n <span></span>\n </button>\n <ng-content></ng-content>\n <button\n type=\"button\"\n *ngIf=\"isNavLevel2OnPage\"\n class=\"header-overflow-trigger\"\n [attr.aria-label]=\"responsiveOverflowCommonString\"\n (click)=\"openNav(responsiveNavCodes.NAV_LEVEL_2)\"\n >\n <span></span>\n </button>\n <div class=\"header-backdrop\" (click)=\"closeOpenNav()\"></div>\n `,\n host: { '[class.header]': 'true' },\n})\nexport class ClrHeader implements OnDestroy {\n @Input() @HostBinding('attr.role') role = 'banner';\n\n isNavLevel1OnPage = false;\n isNavLevel2OnPage = false;\n openNavLevel: number = null;\n responsiveNavCodes = ResponsiveNavCodes;\n private _subscription: Subscription;\n\n constructor(\n private responsiveNavService: ResponsiveNavigationService,\n public commonStrings: ClrCommonStringsService\n ) {\n this._subscription = this.responsiveNavService.registeredNavs.subscribe({\n next: (navLevelList: number[]) => {\n this.initializeNavTriggers(navLevelList);\n },\n });\n\n this._subscription.add(\n this.responsiveNavService.navControl\n .pipe(\n filter(\n ({ controlCode }) =>\n controlCode === ResponsiveNavCodes.NAV_CLOSE || controlCode === ResponsiveNavCodes.NAV_CLOSE_ALL\n )\n )\n .subscribe(() => {\n this.openNavLevel = null;\n })\n );\n }\n\n get responsiveNavCommonString() {\n const myCommonStrings = this.commonStrings.keys;\n if (this.openNavLevel !== this.responsiveNavCodes.NAV_LEVEL_1) {\n return myCommonStrings.responsiveNavToggleOpen;\n } else {\n return myCommonStrings.responsiveNavToggleClose;\n }\n }\n\n get responsiveOverflowCommonString() {\n const myCommonStrings = this.commonStrings.keys;\n if (this.openNavLevel !== this.responsiveNavCodes.NAV_LEVEL_2) {\n return myCommonStrings.responsiveNavOverflowOpen;\n } else {\n return myCommonStrings.responsiveNavOverflowClose;\n }\n }\n\n // reset triggers. handles cases when an application has different nav levels on different pages.\n resetNavTriggers() {\n this.isNavLevel1OnPage = false;\n this.isNavLevel2OnPage = false;\n }\n\n // decides which triggers to show on the header\n initializeNavTriggers(navList: number[]): void {\n this.resetNavTriggers();\n if (navList.length > 2) {\n console.error('More than 2 Nav Levels detected.');\n return;\n }\n navList.forEach(navLevel => {\n if (navLevel === ResponsiveNavCodes.NAV_LEVEL_1) {\n this.isNavLevel1OnPage = true;\n } else if (navLevel === ResponsiveNavCodes.NAV_LEVEL_2) {\n this.isNavLevel2OnPage = true;\n }\n });\n }\n\n // closes the nav that is open\n closeOpenNav() {\n this.responsiveNavService.closeAllNavs();\n }\n\n /**\n * @deprecated Will be removed in with @clr/angular v15.0.0\n *\n * Use `openNav(navLevel)` instead to open the navigation and ResponsiveNavService to close it.\n */\n toggleNav(navLevel: number) {\n if (this.openNavLevel === navLevel) {\n this.responsiveNavService.sendControlMessage(ResponsiveNavCodes.NAV_CLOSE, navLevel);\n return;\n }\n\n this.openNav(navLevel);\n }\n\n openNav(navLevel: number) {\n this.openNavLevel = navLevel;\n this.responsiveNavService.sendControlMessage(ResponsiveNavCodes.NAV_OPEN, navLevel);\n }\n\n ngOnDestroy() {\n this._subscription.unsubscribe();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n Directive,\n ElementRef,\n HostListener,\n Inject,\n Injector,\n Input,\n OnInit,\n PLATFORM_ID,\n Renderer2,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { commonStringsDefault } from '../../utils';\nimport { LARGE_BREAKPOINT } from '../../utils/breakpoints/breakpoints';\nimport { ClrStandaloneCdkTrapFocus } from '../../utils/focus/focus-trap';\nimport { ResponsiveNavigationService } from './providers/responsive-navigation.service';\nimport { ResponsiveNavCodes } from './responsive-nav-codes';\n\nimport '@cds/core/internal-components/close-button/register.js';\n\nconst createCdsCloseButton = (document: Document, ariaLabel: string) => {\n const cdsCloseButton = document.createElement('cds-internal-close-button');\n cdsCloseButton.setAttribute('icon-size', '32');\n cdsCloseButton.setAttribute('aria-label', ariaLabel);\n cdsCloseButton.setAttribute('aria-hidden', 'true');\n cdsCloseButton.setAttribute('type', 'button');\n /**\n * The button is hidden by default based on our Desktop-first approach.\n */\n cdsCloseButton.setAttribute('hidden', 'true');\n cdsCloseButton.className = 'clr-nav-close';\n return cdsCloseButton;\n};\n\n@Directive({\n selector: '[clr-nav-level]',\n hostDirectives: [ClrStandaloneCdkTrapFocus],\n})\nexport class ClrNavLevel implements OnInit {\n @Input('clr-nav-level') _level: number;\n @Input('closeAriaLabel') closeButtonAriaLabel: string;\n\n private _isOpen = false;\n private _document: Document;\n private _subscription: Subscription;\n\n constructor(\n @Inject(PLATFORM_ID) platformId: any,\n private cdkTrapFocus: ClrStandaloneCdkTrapFocus,\n private responsiveNavService: ResponsiveNavigationService,\n private elementRef: ElementRef<HTMLElement>,\n private renderer: Renderer2,\n injector: Injector\n ) {\n if (isPlatformBrowser(platformId)) {\n this._document = injector.get(DOCUMENT);\n }\n\n this._subscription = responsiveNavService.navControl\n .pipe(\n filter(x => x.navLevel === this.level),\n filter(\n ({ controlCode }) =>\n (controlCode === ResponsiveNavCodes.NAV_OPEN && !this.isOpen) ||\n (controlCode === ResponsiveNavCodes.NAV_CLOSE && this.isOpen)\n )\n )\n .subscribe(({ controlCode }) => {\n if (controlCode === ResponsiveNavCodes.NAV_OPEN) {\n this.open();\n return;\n }\n\n this.close();\n });\n\n this._subscription.add(\n responsiveNavService.navControl\n .pipe(filter(({ controlCode }) => controlCode === ResponsiveNavCodes.NAV_CLOSE_ALL))\n .subscribe(() => this.close())\n );\n }\n\n get level(): number {\n return this._level;\n }\n\n // getter to access the responsive navigation codes from the template\n get responsiveNavCodes(): ResponsiveNavCodes {\n return ResponsiveNavCodes;\n }\n\n get isOpen(): boolean {\n return this._isOpen;\n }\n\n ngOnInit() {\n this.cdkTrapFocus.enabled = false;\n\n if (!this.closeButtonAriaLabel) {\n this.closeButtonAriaLabel =\n this._level === ResponsiveNavCodes.NAV_LEVEL_1\n ? commonStringsDefault.responsiveNavToggleClose\n : commonStringsDefault.responsiveNavOverflowClose;\n }\n\n if (this.level !== ResponsiveNavCodes.NAV_LEVEL_1 && this.level !== ResponsiveNavCodes.NAV_LEVEL_2) {\n console.error('Nav Level can only be 1 or 2');\n return;\n }\n this.responsiveNavService.registerNav(this.level);\n this.addNavClass(this.level);\n }\n\n ngAfterViewInit() {\n const closeButton = createCdsCloseButton(this._document, this.closeButtonAriaLabel);\n this.renderer.listen(closeButton, 'click', this.close.bind(this));\n this.renderer.insertBefore(this.elementRef.nativeElement, closeButton, this.elementRef.nativeElement.firstChild); // Adding the button at the top of the nav\n\n if (this._document.body.clientWidth < LARGE_BREAKPOINT) {\n /**\n * Close if the document body is smaller than the large breakpoint for example:\n * - Refreshing the page\n * - Browser window size is changed when opening the applicaiton\n * - Browser zoom is turned on and zoomed to a size that makes the document smaller than the large breakpoint\n */\n this.close();\n }\n }\n\n ngOnDestroy() {\n this.responsiveNavService.unregisterNav(this.level);\n this._subscription.unsubscribe();\n }\n\n @HostListener('window:resize', ['$event'])\n onResize(event: Event) {\n const target = event.target as Window;\n\n if (target.innerWidth < LARGE_BREAKPOINT && this.isOpen) {\n this.close();\n return;\n }\n\n this.showNavigation();\n }\n\n // TODO: Figure out whats the best way to do this. Possible methods\n // 1. HostListener (current solution)\n // 2. Directives on the .nav-link class. We discussed on moving away from class selectors but I forget the reason\n // why\n @HostListener('click', ['$event.target'])\n onMouseClick(target: any) {\n let current: any = target; // Get the element in the DOM on which the mouse was clicked\n const navHost: any = this.elementRef.nativeElement; // Get the current nav native HTML element\n\n // Start checking if current and navHost are equal.\n // If not traverse to the parentNode and check again.\n while (current) {\n if (current === navHost) {\n return;\n } else if (current.classList.contains('nav-link') && this._document.body.clientWidth < LARGE_BREAKPOINT) {\n this.close();\n return;\n }\n current = current.parentNode;\n }\n }\n\n addNavClass(level: number) {\n const navHostClassList = this.elementRef.nativeElement.classList;\n if (level === ResponsiveNavCodes.NAV_LEVEL_1) {\n navHostClassList.add(ResponsiveNavCodes.NAV_CLASS_LEVEL_1);\n } else if (level === ResponsiveNavCodes.NAV_LEVEL_2) {\n navHostClassList.add(ResponsiveNavCodes.NAV_CLASS_LEVEL_2);\n }\n }\n\n open(): void {\n this._isOpen = true;\n this.showNavigation();\n this.cdkTrapFocus.enabled = true;\n this.showCloseButton();\n this.responsiveNavService.sendControlMessage(ResponsiveNavCodes.NAV_OPEN, this.level);\n }\n\n close(): void {\n this._isOpen = false;\n this.hideNavigation();\n this.cdkTrapFocus.enabled = false;\n this.hideCloseButton();\n this.responsiveNavService.sendControlMessage(ResponsiveNavCodes.NAV_CLOSE, this.level);\n }\n\n protected hideNavigation() {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'aria-hidden', 'true');\n this.renderer.setAttribute(this.elementRef.nativeElement, 'hidden', 'true');\n }\n\n protected showNavigation() {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'aria-hidden', 'false');\n this.renderer.removeAttribute(this.elementRef.nativeElement, 'hidden');\n }\n\n protected hideCloseButton() {\n this.renderer.setAttribute(this.elementRef.nativeElement, 'aria-hidden', 'true');\n this.renderer.setAttribute(this.elementRef.nativeElement.querySelector('.clr-nav-close'), 'hidden', 'true');\n }\n\n protected showCloseButton() {\n this.renderer.setAttribute(this.elementRef.nativeElement.querySelector('.clr-nav-close'), 'aria-hidden', 'false');\n this.renderer.removeAttribute(this.elementRef.nativeElement.querySelector('.clr-nav-close'), 'hidden');\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrDropdownModule } from '../../popover/dropdown/dropdown.module';\nimport { ClrAriaCurrentLink } from './aria-current-link';\nimport { MainContainerWillyWonka } from './chocolate/main-container-willy-wonka';\nimport { NavDetectionOompaLoompa } from './chocolate/nav-detection-oompa-loompa';\nimport { ClrHeader } from './header';\nimport { ClrNavLevel } from './nav-level';\n\nexport const CLR_NAVIGATION_DIRECTIVES: Type<any>[] = [\n ClrHeader,\n ClrNavLevel,\n ClrAriaCurrentLink,\n NavDetectionOompaLoompa,\n MainContainerWillyWonka,\n];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrDropdownModule],\n declarations: [CLR_NAVIGATION_DIRECTIVES],\n exports: [CLR_NAVIGATION_DIRECTIVES],\n})\nexport class ClrNavigationModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n template: `\n <ng-template>\n <ng-content></ng-content>\n </ng-template>\n `,\n})\nexport class TemplateRefContainer {\n @ViewChild(TemplateRef) template: TemplateRef<any>;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Type } from '@angular/core';\n\nimport { TemplateRefContainer } from './template-ref-container';\n\nexport * from './template-ref-container';\n\nexport const TEMPLATE_REF_DIRECTIVES: Type<any>[] = [TemplateRefContainer];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { TEMPLATE_REF_DIRECTIVES } from './index';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TEMPLATE_REF_DIRECTIVES],\n exports: [TEMPLATE_REF_DIRECTIVES],\n})\nexport class ClrTemplateRefModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive } from '@angular/core';\n\nimport { WillyWonka } from '../../../utils/chocolate/willy-wonka';\n\n@Directive({\n selector: 'clr-tabs',\n})\nexport class TabsWillyWonka extends WillyWonka {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Directive, Inject, Optional } from '@angular/core';\n\nimport { OompaLoompa } from '../../../utils/chocolate/oompa-loompa';\nimport { IF_ACTIVE_ID, IfActiveService } from '../../../utils/conditional/if-active.service';\nimport { TabsWillyWonka } from './tabs-willy-wonka';\n\n@Directive({\n selector: '[clrTabLink], clr-tab-content',\n})\nexport class ActiveOompaLoompa extends OompaLoompa {\n private ifActive: IfActiveService;\n private id: number;\n\n constructor(\n cdr: ChangeDetectorRef,\n @Optional() willyWonka: TabsWillyWonka,\n @Inject(IF_ACTIVE_ID) id: number,\n ifActive: IfActiveService\n ) {\n if (!willyWonka) {\n throw new Error('clrTabLink and clr-tab-content should only be used inside of a clr-tabs');\n }\n super(cdr, willyWonka);\n this.ifActive = ifActive;\n this.id = id;\n }\n\n get flavor() {\n return this.ifActive.current === this.id;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum TabsLayout {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, ViewContainerRef } from '@angular/core';\n\nimport { TabsLayout } from '../enums/tabs-layout.enum';\nimport { ClrTab } from '../tab';\n\n@Injectable()\nexport class TabsService {\n layout: TabsLayout | string = TabsLayout.HORIZONTAL;\n tabContentViewContainer: ViewContainerRef;\n\n private _children: ClrTab[] = [];\n\n get children() {\n return this._children;\n }\n\n get activeTab() {\n return this.children.find((tab: ClrTab) => {\n return tab.active;\n });\n }\n\n get overflowTabs() {\n if (this.layout === TabsLayout.VERTICAL) {\n return [];\n } else {\n return this.children.filter((tab: ClrTab) => tab.tabLink.inOverflow === true);\n }\n }\n\n register(tab: ClrTab) {\n this._children.push(tab);\n }\n\n unregister(tab: ClrTab) {\n const index = this.children.indexOf(tab);\n if (index > -1) {\n this.children.splice(index, 1);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EmbeddedViewRef, Inject, Input, OnDestroy, TemplateRef, ViewChild } from '@angular/core';\n\nimport { IF_ACTIVE_ID, IfActiveService } from '../../utils/conditional/if-active.service';\nimport { TabsService } from './providers/tabs.service';\n\nlet nbTabContentComponents = 0;\n\n@Component({\n selector: 'clr-tab-content',\n template: `\n <ng-template #tabContentProjectedRef>\n <section\n [id]=\"tabContentId\"\n role=\"tabpanel\"\n class=\"tab-content\"\n [class.active]=\"active\"\n [hidden]=\"!active\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.aria-hidden]=\"!active\"\n >\n <ng-content></ng-content>\n </section>\n </ng-template>\n `,\n})\nexport class ClrTabContent implements OnDestroy {\n @Input('id') tabContentId: string;\n\n private viewRef: EmbeddedViewRef<ClrTabContent>;\n\n constructor(\n public ifActiveService: IfActiveService,\n @Inject(IF_ACTIVE_ID) public id: number,\n private tabsService: TabsService\n ) {\n if (!this.tabContentId) {\n this.tabContentId = 'clr-tab-content-' + nbTabContentComponents++;\n }\n }\n\n get active() {\n return this.ifActiveService.current === this.id;\n }\n\n get ariaLabelledBy(): string {\n return this.tabsService.children.find(tab => tab.tabContent === this)?.tabLink?.tabLinkId;\n }\n\n // The template must be applied on the top-down phase of view-child initialization to prevent\n // components in the content from initializing before a content container exists.\n // Some child components need their container for sizing calculations.\n @ViewChild('tabContentProjectedRef', { static: true })\n private set templateRef(value: TemplateRef<ClrTabContent>) {\n this.viewRef = this.tabsService.tabContentViewContainer.createEmbeddedView(value);\n }\n\n ngOnDestroy(): void {\n const index = this.tabsService.tabContentViewContainer.indexOf(this.viewRef);\n if (index > -1) {\n this.tabsService.tabContentViewContainer.remove(index);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { InjectionToken } from '@angular/core';\n\nlet nbTabsComponent = 0;\n\nexport const TABS_ID = new InjectionToken<number>('TABS_ID');\n\nexport function tokenFactory() {\n return 'clr-tabs-' + nbTabsComponent++;\n}\n\nexport const TABS_ID_PROVIDER = {\n provide: TABS_ID,\n useFactory: tokenFactory,\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n ComponentFactoryResolver,\n Directive,\n ElementRef,\n HostBinding,\n HostListener,\n Inject,\n Input,\n ViewContainerRef,\n} from '@angular/core';\n\nimport { IF_ACTIVE_ID, IfActiveService } from '../../utils/conditional/if-active.service';\nimport { TemplateRefContainer } from '../../utils/template-ref/template-ref-container';\nimport { TabsLayout } from './enums/tabs-layout.enum';\nimport { TabsService } from './providers/tabs.service';\nimport { TABS_ID } from './tabs-id.provider';\n\nlet nbTabLinkComponents = 0;\n\n@Directive({\n selector: '[clrTabLink]',\n host: {\n '[class.btn]': 'true',\n role: 'tab',\n type: 'button',\n },\n})\nexport class ClrTabLink {\n @Input('id') @HostBinding('id') tabLinkId: string;\n\n templateRefContainer: TemplateRefContainer;\n\n private _inOverflow: boolean;\n\n constructor(\n public ifActiveService: IfActiveService,\n @Inject(IF_ACTIVE_ID) private id: number,\n public el: ElementRef,\n private cfr: ComponentFactoryResolver,\n private viewContainerRef: ViewContainerRef,\n private tabsService: TabsService,\n @Inject(TABS_ID) public tabsId: number\n ) {\n if (!this.tabLinkId) {\n this.tabLinkId = 'clr-tab-link-' + nbTabLinkComponents++;\n }\n\n // Tab links can be rendered in one of two places: in the main area or inside the overflow dropdown menu.\n // Here, we create a container so that its template can be used to create embeddedView on the fly.\n // See TabsService's renderView() method and how it's used in Tabs class for an example.\n const factory = this.cfr.resolveComponentFactory(TemplateRefContainer);\n this.templateRefContainer = this.viewContainerRef.createComponent(factory, undefined, undefined, [\n [this.el.nativeElement],\n ]).instance;\n }\n\n @Input('clrTabLinkInOverflow')\n get inOverflow(): boolean {\n return this._inOverflow && this.tabsService.layout !== TabsLayout.VERTICAL;\n }\n set inOverflow(inOverflow) {\n this._inOverflow = inOverflow;\n }\n\n @HostBinding('class.btn-link')\n @HostBinding('class.nav-link')\n get addLinkClasses() {\n return !this.inOverflow;\n }\n\n @HostBinding('attr.aria-controls')\n get ariaControls(): string {\n return this.tabsService.children.find(tab => tab.tabLink === this)?.tabContent?.tabContentId;\n }\n\n @HostBinding('class.active')\n @HostBinding('attr.aria-selected')\n get active() {\n return this.ifActiveService.current === this.id;\n }\n\n @HostBinding('attr.tabindex')\n get tabindex() {\n return this.active ? 0 : -1;\n }\n\n @HostListener('click')\n activate() {\n this.ifActiveService.current = this.id;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild, Inject } from '@angular/core';\n\nimport { IF_ACTIVE_ID, IF_ACTIVE_ID_PROVIDER, IfActiveService } from '../../utils/conditional/if-active.service';\nimport { TabsService } from './providers/tabs.service';\nimport { ClrTabContent } from './tab-content';\nimport { ClrTabLink } from './tab-link.directive';\n\n@Component({\n selector: 'clr-tab',\n template: `<ng-content></ng-content>`,\n providers: [IF_ACTIVE_ID_PROVIDER],\n})\nexport class ClrTab {\n @ContentChild(ClrTabLink, { static: true }) tabLink: ClrTabLink;\n @ContentChild(ClrTabContent, { static: true }) tabContent: ClrTabContent;\n\n constructor(\n public ifActiveService: IfActiveService,\n @Inject(IF_ACTIVE_ID) public id: number,\n private tabsService: TabsService\n ) {\n tabsService.register(this);\n }\n\n get active() {\n return this.ifActiveService.current === this.id;\n }\n\n ngOnDestroy() {\n this.tabsService.unregister(this);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-tab-overflow-content',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.dropdown-menu]': 'true',\n },\n})\nexport class ClrTabOverflowContent {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport {\n AfterContentInit,\n Component,\n ContentChildren,\n ElementRef,\n HostBinding,\n Inject,\n Input,\n OnDestroy,\n QueryList,\n ViewChild,\n ViewContainerRef,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\n\nimport { IfActiveService } from '../../utils/conditional/if-active.service';\nimport { ClrKeyFocus } from '../../utils/focus/key-focus/key-focus';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { TabsLayout } from './enums/tabs-layout.enum';\nimport { TabsService } from './providers/tabs.service';\nimport { ClrTab } from './tab';\nimport { ClrTabLink } from './tab-link.directive';\nimport { ClrTabOverflowContent } from './tab-overflow-content';\nimport { TABS_ID, TABS_ID_PROVIDER } from './tabs-id.provider';\n\n@Component({\n selector: 'clr-tabs',\n template: `\n <ul\n class=\"nav\"\n role=\"tablist\"\n [clrKeyFocus]=\"tabLinkElements\"\n clrDirection=\"both\"\n (clrFocusChange)=\"toggleOverflowOnPosition($event)\"\n (focusout)=\"resetKeyFocusCurrentToActive($event)\"\n >\n <!--tab links-->\n <ng-container *ngFor=\"let link of tabLinkDirectives\">\n <ng-container *ngIf=\"link.tabsId === tabsId && !link.inOverflow\">\n <li role=\"presentation\" class=\"nav-item\">\n <ng-container [ngTemplateOutlet]=\"link.templateRefContainer.template\"></ng-container>\n </li>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"tabsService.overflowTabs.length > 0\">\n <div class=\"tabs-overflow bottom-right\" role=\"presentation\" [class.open]=\"toggleService.open\">\n <li role=\"application\" class=\"nav-item\">\n <button\n #tabOverflowTrigger\n class=\"btn btn-link nav-link dropdown-toggle\"\n type=\"button\"\n aria-hidden=\"true\"\n [attr.tabindex]=\"activeTabInOverflow && !toggleService.open ? 0 : -1\"\n [class.active]=\"activeTabInOverflow\"\n [class.open]=\"toggleService.open\"\n (mousedown)=\"_mousedown = true\"\n (focus)=\"openOverflowOnFocus()\"\n (click)=\"toggleOverflowOnClick()\"\n [attr.title]=\"commonStrings.keys.more\"\n >\n <cds-icon\n shape=\"ellipsis-horizontal\"\n [attr.status]=\"toggleService.open ? 'info' : null\"\n [attr.title]=\"commonStrings.keys.more\"\n ></cds-icon>\n </button>\n </li>\n <!--tab links in overflow menu-->\n <clr-tab-overflow-content\n *ngIf=\"toggleService.open\"\n (document:keydown.escape)=\"closeOnEscapeKey()\"\n (document:click)=\"closeOnOutsideClick($event, tabOverflowTrigger)\"\n (focusout)=\"closeOnFocusOut($event)\"\n >\n <ng-container *ngFor=\"let link of tabLinkDirectives\">\n <ng-container\n *ngIf=\"link.tabsId === tabsId && link.inOverflow\"\n [ngTemplateOutlet]=\"link.templateRefContainer.template\"\n ></ng-container>\n </ng-container>\n </clr-tab-overflow-content>\n </div>\n </ng-container>\n </ul>\n <ng-container #tabContentViewContainer></ng-container>\n `,\n providers: [IfActiveService, TabsService, TABS_ID_PROVIDER],\n hostDirectives: [ClrPopoverHostDirective],\n})\nexport class ClrTabs implements AfterContentInit, OnDestroy {\n tabLinkElements: HTMLElement[] = [];\n\n // in order to check focus is triggered by click\n // we are using this _mousedown flag\n _mousedown = false;\n\n @ViewChild(ClrKeyFocus, { static: true }) keyFocus: ClrKeyFocus;\n\n @ContentChildren(ClrTab) private tabs: QueryList<ClrTab>;\n\n private subscriptions: Subscription[] = [];\n private _tabOverflowEl: HTMLElement;\n private _tabLinkDirectives: ClrTabLink[] = [];\n\n constructor(\n public ifActiveService: IfActiveService,\n public toggleService: ClrPopoverToggleService,\n public tabsService: TabsService,\n @Inject(TABS_ID) public tabsId: number,\n public commonStrings: ClrCommonStringsService\n ) {}\n\n @Input('clrLayout')\n get layout(): TabsLayout | string {\n return this.tabsService.layout;\n }\n set layout(layout: TabsLayout | string) {\n if (\n Object.keys(TabsLayout)\n .map(key => {\n return (TabsLayout as Record<string, any>)[key];\n })\n .indexOf(layout) >= 0\n ) {\n this.tabsService.layout = layout;\n }\n }\n\n get tabLinkDirectives(): ClrTabLink[] {\n return this._tabLinkDirectives;\n }\n\n get activeTabInOverflow() {\n return this.tabsService.overflowTabs.indexOf(this.tabsService.activeTab) > -1;\n }\n\n get activeTabPosition() {\n return this._tabLinkDirectives.findIndex(link => link.active);\n }\n\n get isCurrentInOverflow() {\n return this.keyFocus.current >= this.overflowPosition;\n }\n\n @HostBinding('class.tabs-vertical')\n get isVertical() {\n return this.layout === TabsLayout.VERTICAL;\n }\n\n @ViewChild(ClrTabOverflowContent, { read: ElementRef })\n set tabOverflowEl(value: ElementRef) {\n this._tabOverflowEl = value && value.nativeElement;\n if (this.toggleService.open && value) {\n // only when tab overflow view element is registered,\n // we need to move the focus to the first item\n this.keyFocus.focusCurrent();\n }\n }\n\n private get overflowPosition() {\n return this._tabLinkDirectives.filter(link => !link.inOverflow).length;\n }\n\n @ViewChild('tabContentViewContainer', { static: true, read: ViewContainerRef })\n private set tabContentViewContainer(value: ViewContainerRef) {\n this.tabsService.tabContentViewContainer = value;\n }\n\n ngAfterContentInit() {\n this.subscriptions.push(this.listenForTabLinkChanges());\n\n if (typeof this.ifActiveService.current === 'undefined' && this.tabLinkDirectives[0]) {\n this.tabLinkDirectives[0].activate();\n }\n\n // set initial current position\n this.keyFocus.current = this.activeTabPosition;\n }\n\n ngOnDestroy() {\n this.subscriptions.forEach(sub => {\n sub.unsubscribe();\n });\n }\n\n toggleOverflowOnPosition(position: number) {\n // we need to check current position to determine\n // whether we need to open the tab overflow or not\n this.toggleService.open = position >= this.overflowPosition;\n }\n\n resetKeyFocusCurrentToActive(event: FocusEvent) {\n const keyFocusContainsFocus = this.keyFocus.nativeElement.contains(event.relatedTarget as HTMLElement);\n if (!keyFocusContainsFocus && this.keyFocus.current !== this.activeTabPosition) {\n this.keyFocus.current = this.activeTabPosition;\n }\n }\n\n toggleOverflowOnClick() {\n if (this.isCurrentInOverflow && this.toggleService.open) {\n this.keyFocus.moveTo(this.overflowPosition - 1);\n } else {\n this.keyFocus.moveTo(this.overflowPosition);\n }\n\n // once click handler completes running,\n // reset the _mousedown flag\n this._mousedown = false;\n }\n\n openOverflowOnFocus() {\n // This method should be called only on keyboard generated focus\n // when the active tab is in the overflow\n if (!this._mousedown && !this.toggleService.open) {\n this.keyFocus.moveTo(this.activeTabPosition);\n }\n }\n\n closeOnFocusOut(event: FocusEvent) {\n if (\n !this._tabOverflowEl.contains(event.relatedTarget as HTMLElement) &&\n this.toggleService.open &&\n !this._mousedown\n ) {\n this.toggleService.open = false;\n\n // if the focus is out of overflow and lands on the active tab link\n // which is currently visible, set the key focus current to activeTabPosition\n if (this.tabLinkElements[this.activeTabPosition] === event.relatedTarget) {\n this.keyFocus.current = this.activeTabPosition;\n }\n }\n }\n\n closeOnEscapeKey() {\n // Move current to the last visible focusable item\n this.keyFocus.moveTo(this.overflowPosition - 1);\n }\n\n closeOnOutsideClick(event: Event, tabOverflowTrigger: HTMLElement) {\n // Exit early if the event target is the trigger element itself or element that's inside the trigger element.\n // This is because we have another handler on the tabOverflowTrigger element itself.\n // As this handler method is on the document level so the event bubbles up to it and conflicts\n // with the tabOverflowTrigger handler resulting in opening the tab overflow and closing it right away consecutively.\n if (event.target === tabOverflowTrigger || tabOverflowTrigger.contains(event.target as HTMLElement)) {\n return;\n }\n\n // Move current to the last visible focusable item\n if (!this._tabOverflowEl.contains(event.target as HTMLElement) && this.isCurrentInOverflow) {\n this.keyFocus.moveTo(this.overflowPosition - 1);\n }\n }\n\n private listenForTabLinkChanges() {\n return this.tabs.changes.pipe(startWith(this.tabs.map(tab => tab.tabLink))).subscribe(() => {\n this._tabLinkDirectives = this.tabs.map(tab => tab.tabLink);\n this.tabLinkElements = this._tabLinkDirectives.map(tab => tab.el.nativeElement);\n });\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { ClarityIcons, ellipsisHorizontalIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrKeyFocusModule } from '../../utils/focus/key-focus/key-focus.module';\nimport { ClrTemplateRefModule } from '../../utils/template-ref/template-ref.module';\nimport { ActiveOompaLoompa } from './chocolate/active-oompa-loompa';\nimport { TabsWillyWonka } from './chocolate/tabs-willy-wonka';\nimport { ClrTab } from './tab';\nimport { ClrTabContent } from './tab-content';\nimport { ClrTabLink } from './tab-link.directive';\nimport { ClrTabOverflowContent } from './tab-overflow-content';\nimport { ClrTabs } from './tabs';\n\nexport const CLR_TABS_DIRECTIVES: Type<any>[] = [\n ClrTabContent,\n ClrTab,\n ClrTabs,\n ClrTabOverflowContent,\n ClrTabLink,\n TabsWillyWonka,\n ActiveOompaLoompa,\n];\n\n@NgModule({\n imports: [CommonModule, ClrConditionalModule, ClrIconModule, ClrTemplateRefModule, ClrKeyFocusModule],\n declarations: [CLR_TABS_DIRECTIVES],\n exports: [CLR_TABS_DIRECTIVES, ClrConditionalModule],\n})\nexport class ClrTabsModule {\n constructor() {\n ClarityIcons.addIcons(ellipsisHorizontalIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class VerticalNavGroupRegistrationService {\n navGroupCount = 0;\n\n registerNavGroup() {\n this.navGroupCount++;\n }\n\n unregisterNavGroup(): void {\n this.navGroupCount--;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class VerticalNavIconService {\n private _icons = 0;\n\n get hasIcons(): boolean {\n return this._icons > 0;\n }\n\n registerIcon(): void {\n this._icons++;\n }\n\n unregisterIcon(): void {\n this._icons--;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class VerticalNavService {\n private _animateOnCollapsed = new Subject<boolean>();\n private _collapsedChanged = new Subject<boolean>();\n private _collapsed = false;\n private _collapsible = false;\n\n get animateOnCollapsed(): Observable<boolean> {\n return this._animateOnCollapsed.asObservable();\n }\n\n get collapsedChanged(): Observable<boolean> {\n return this._collapsedChanged.asObservable();\n }\n\n get collapsed(): boolean {\n return this._collapsed;\n }\n set collapsed(value: boolean) {\n value = !!value;\n if (this.collapsible && this._collapsed !== value) {\n this.updateCollapseBehavior(value);\n }\n }\n\n get collapsible(): boolean {\n return this._collapsible;\n }\n set collapsible(value: boolean) {\n value = !!value;\n if (this._collapsible !== value) {\n if (!value && this.collapsed) {\n this.updateCollapseBehavior(false);\n }\n this._collapsible = value;\n }\n }\n\n private updateCollapseBehavior(value: boolean): void {\n this._animateOnCollapsed.next(value);\n this._collapsed = value;\n this._collapsedChanged.next(value);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Input, OnDestroy, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { VerticalNavGroupRegistrationService } from './providers/vertical-nav-group-registration.service';\nimport { VerticalNavIconService } from './providers/vertical-nav-icon.service';\nimport { VerticalNavService } from './providers/vertical-nav.service';\n\n@Component({\n selector: 'clr-vertical-nav',\n templateUrl: './vertical-nav.html',\n providers: [VerticalNavService, VerticalNavIconService, VerticalNavGroupRegistrationService],\n host: {\n class: 'clr-vertical-nav',\n '[class.is-collapsed]': 'collapsed',\n '[class.has-nav-groups]': 'hasNavGroups',\n '[class.has-icons]': 'hasIcons',\n },\n})\nexport class ClrVerticalNav implements OnDestroy {\n @Output('clrVerticalNavCollapsedChange') private _collapsedChanged = new EventEmitter<boolean>(true);\n\n private _sub: Subscription;\n\n constructor(\n private _navService: VerticalNavService,\n private _navIconService: VerticalNavIconService,\n private _navGroupRegistrationService: VerticalNavGroupRegistrationService,\n public commonStrings: ClrCommonStringsService\n ) {\n this._sub = this._navService.collapsedChanged.subscribe(value => {\n this._collapsedChanged.emit(value);\n });\n }\n\n @Input('clrVerticalNavCollapsible')\n get collapsible(): boolean | string {\n return this._navService.collapsible;\n }\n set collapsible(value: boolean | string) {\n this._navService.collapsible = value as boolean;\n }\n\n @Input('clrVerticalNavCollapsed')\n get collapsed(): boolean | string {\n return this._navService.collapsed;\n }\n set collapsed(value: boolean | string) {\n this._navService.collapsed = value as boolean;\n }\n\n get hasNavGroups(): boolean {\n return this._navGroupRegistrationService.navGroupCount > 0;\n }\n\n get hasIcons(): boolean {\n return this._navIconService.hasIcons;\n }\n\n get ariaExpanded(): string {\n if (!this.collapsible) {\n return null;\n }\n return !this.collapsed ? 'true' : 'false';\n }\n\n ngOnDestroy() {\n this._sub.unsubscribe();\n }\n\n toggleByButton() {\n this.collapsed = !this.collapsed;\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<button\n type=\"button\"\n class=\"nav-trigger\"\n [class.on-collapse]=\"collapsed\"\n [attr.aria-expanded]=\"ariaExpanded\"\n [attr.aria-label]=\"commonStrings.keys.verticalNavToggle\"\n (click)=\"toggleByButton()\"\n *ngIf=\"collapsible\"\n>\n <cds-icon\n shape=\"angle-double\"\n class=\"nav-trigger-icon\"\n [attr.direction]=\"(this.collapsed) ? 'right' : 'left'\"\n ></cds-icon>\n</button>\n<div class=\"nav-content\">\n <ng-content></ng-content>\n <button\n type=\"button\"\n (click)=\"collapsed = false\"\n class=\"nav-btn\"\n aria-hidden=\"true\"\n tabindex=\"-1\"\n [attr.aria-label]=\"commonStrings.keys.verticalNavToggle\"\n *ngIf=\"collapsible && collapsed\"\n ></button>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class VerticalNavGroupService {\n private _expandChange = new Subject<boolean>();\n\n get expandChange(): Observable<boolean> {\n return this._expandChange.asObservable();\n }\n\n expand(): void {\n this._expandChange.next(true);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationEvent, state, style, transition, trigger } from '@angular/animations';\nimport { AfterContentInit, Component, EventEmitter, HostBinding, Input, OnDestroy, Output } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { IfExpandService } from '../../utils/conditional/if-expanded.service';\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { VerticalNavGroupRegistrationService } from './providers/vertical-nav-group-registration.service';\nimport { VerticalNavGroupService } from './providers/vertical-nav-group.service';\nimport { VerticalNavService } from './providers/vertical-nav.service';\n\nconst EXPANDED_STATE = 'expanded';\nconst COLLAPSED_STATE = 'collapsed';\n\n@Component({\n selector: 'clr-vertical-nav-group',\n templateUrl: './vertical-nav-group.html',\n providers: [IfExpandService, VerticalNavGroupService],\n animations: [\n trigger('clrExpand', [\n state(EXPANDED_STATE, style({ height: '*' })),\n state(COLLAPSED_STATE, style({ height: 0, visibility: 'hidden' })),\n transition(`${EXPANDED_STATE} <=> ${COLLAPSED_STATE}`, animate('0.2s ease-in-out')),\n ]),\n ],\n host: { class: 'nav-group' },\n})\nexport class ClrVerticalNavGroup implements AfterContentInit, OnDestroy {\n @Output('clrVerticalNavGroupExpandedChange') expandedChange = new EventEmitter<boolean>(true);\n\n private wasExpanded = false;\n private _subscriptions: Subscription[] = [];\n private _expandAnimationState: string = COLLAPSED_STATE;\n\n constructor(\n private _itemExpand: IfExpandService,\n private _navGroupRegistrationService: VerticalNavGroupRegistrationService,\n private _navGroupService: VerticalNavGroupService,\n private _navService: VerticalNavService,\n public commonStrings: ClrCommonStringsService\n ) {\n this._navGroupRegistrationService.registerNavGroup();\n\n // FIXME: This subscription handles a corner case\n // Vertical Nav collapse requires the animation to run first and then\n // remove the nodes from the DOM. If the user directly sets the input\n // on the clrIfExpanded directive, we have no chance to run the animation\n // and wait for it to complete. This subscription makes sure that the\n // animation states are correct for that edge case.\n this._subscriptions.push(\n this._itemExpand.expandChange.subscribe(value => {\n if (value && this.expandAnimationState === COLLAPSED_STATE) {\n if (this._navService.collapsed) {\n this._navService.collapsed = false;\n }\n this.expandAnimationState = EXPANDED_STATE;\n } else if (!value && this.expandAnimationState === EXPANDED_STATE) {\n this.expandAnimationState = COLLAPSED_STATE;\n }\n })\n );\n\n // 1. If the nav is collapsing, close the open nav group + save its state\n // 2. If the nav is expanding, expand the nav group if the previous state was expanded\n this._subscriptions.push(\n this._navService.animateOnCollapsed.subscribe((goingToCollapse: boolean) => {\n if (goingToCollapse && this.expanded) {\n this.wasExpanded = true;\n this.expandAnimationState = COLLAPSED_STATE;\n } else if (!goingToCollapse && this.wasExpanded) {\n this.expandGroup();\n this.wasExpanded = false;\n }\n })\n );\n\n // If a link is clicked, expand the nav group\n this._subscriptions.push(\n this._navGroupService.expandChange.subscribe((expand: boolean) => {\n if (expand && !this.expanded) {\n this.expandGroup();\n }\n })\n );\n }\n\n @HostBinding('class.is-expanded')\n get expanded(): boolean {\n return this._itemExpand.expanded;\n }\n set expanded(value: boolean) {\n if (this._itemExpand.expanded !== value) {\n this._itemExpand.expanded = value;\n this.expandedChange.emit(value);\n }\n }\n\n @Input('clrVerticalNavGroupExpanded')\n set userExpandedInput(value: boolean | string) {\n value = !!value;\n if (this.expanded !== value) {\n // We have to call toggleExpand because some cases require animations to occur first\n // Directly setting the Expand service value skips the animation and can result in\n // nodes in the DOM but the nav group still being collapsed\n this.toggleExpand();\n }\n }\n\n get expandAnimationState(): string {\n return this._expandAnimationState;\n }\n set expandAnimationState(value: string) {\n if (value !== this._expandAnimationState) {\n this._expandAnimationState = value;\n }\n }\n\n ngAfterContentInit() {\n // This makes sure that if someone marks a nav group expanded in a collapsed nav\n // the expanded property is switched back to collapsed state.\n if (this._navService.collapsed && this.expanded) {\n this.wasExpanded = true;\n this.expandAnimationState = COLLAPSED_STATE;\n }\n }\n\n ngOnDestroy() {\n this._subscriptions.forEach((sub: Subscription) => sub.unsubscribe());\n this._navGroupRegistrationService.unregisterNavGroup();\n }\n\n expandGroup(): void {\n this.expanded = true;\n // Expanded animation occurs after Expand.expand is set to true\n this.expandAnimationState = EXPANDED_STATE;\n }\n\n collapseGroup(): void {\n // If a Vertical Nav Group toggle button is clicked while the Vertical Nav is in Collapsed state,\n // the Vertical Nav should be expanded first.\n this.expandAnimationState = COLLAPSED_STATE;\n }\n\n // closes a group after the collapse animation\n expandAnimationDone($event: AnimationEvent) {\n if ($event.toState === COLLAPSED_STATE) {\n this.expanded = false;\n }\n }\n\n toggleExpand(): void {\n if (this.expanded) {\n this.collapseGroup();\n } else {\n // If nav is collasped, first open the nav\n if (this._navService.collapsed) {\n this._navService.collapsed = false;\n }\n // then expand the nav group\n this.expandGroup();\n }\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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 class=\"nav-group-content\">\n <ng-content select=\"[clrVerticalNavLink]\"></ng-content>\n <button class=\"nav-group-trigger\" type=\"button\" [attr.aria-expanded]=\"expanded\" (click)=\"toggleExpand()\">\n <ng-content select=\"[clrVerticalNavIcon]\"></ng-content>\n <div class=\"nav-group-text\">\n <ng-content></ng-content>\n </div>\n <cds-icon shape=\"angle\" class=\"nav-group-trigger-icon\" [attr.direction]=\"expanded ? 'down' : 'right'\"></cds-icon>\n </button>\n</div>\n<!--TODO: This animation needs to be added to the clr-vertical-nav-group-children component-->\n<div class=\"nav-group-children\" [@clrExpand]=\"expandAnimationState\" (@clrExpand.done)=\"expandAnimationDone($event)\">\n <ng-content select=\"[clrIfExpanded], clr-vertical-nav-group-children\"></ng-content>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-vertical-nav-group-children',\n template: `<ng-content></ng-content>`,\n})\nexport class ClrVerticalNavGroupChildren {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, OnDestroy } from '@angular/core';\n\nimport { VerticalNavIconService } from './providers/vertical-nav-icon.service';\n\n@Directive({\n selector: '[clrVerticalNavIcon]',\n host: { class: 'nav-icon' },\n})\nexport class ClrVerticalNavIcon implements OnDestroy {\n constructor(private _verticalNavIconService: VerticalNavIconService) {\n this._verticalNavIconService.registerIcon();\n }\n\n ngOnDestroy() {\n this._verticalNavIconService.unregisterIcon();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ChangeDetectorRef, Component, ElementRef, Inject, OnDestroy, Optional } from '@angular/core';\nimport { fromEvent, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { VerticalNavGroupService } from './providers/vertical-nav-group.service';\n\n@Component({\n selector: '[clrVerticalNavLink]',\n template: `\n <ng-content select=\"[clrVerticalNavIcon]\"></ng-content>\n <span class=\"nav-text\">\n <ng-content></ng-content>\n </span>\n `,\n host: {\n class: 'nav-link',\n },\n})\nexport class ClrVerticalNavLink implements OnDestroy {\n private destroy$ = new Subject<void>();\n\n constructor(\n host: ElementRef<HTMLElement>,\n ref: ChangeDetectorRef,\n @Optional() @Inject(VerticalNavGroupService) navGroupService: VerticalNavGroupService | null\n ) {\n // Note: since the `VerticalNavGroupService` is an optional provider, we'll setup the event\n // listener only when the `[clrVerticalLink]` is located within the `clr-vertical-nav-group`.\n navGroupService &&\n fromEvent(host.nativeElement, 'click')\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n navGroupService.expand();\n ref.markForCheck();\n });\n }\n\n ngOnDestroy(): void {\n this.destroy$.next();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { angleDoubleIcon, angleIcon, ClarityIcons } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrFocusOnViewInitModule } from '../../utils/focus/focus-on-view-init/focus-on-view-init.module';\nimport { ClrVerticalNav } from './vertical-nav';\nimport { ClrVerticalNavGroup } from './vertical-nav-group';\nimport { ClrVerticalNavGroupChildren } from './vertical-nav-group-children';\nimport { ClrVerticalNavIcon } from './vertical-nav-icon';\nimport { ClrVerticalNavLink } from './vertical-nav-link';\n\nexport const CLR_VERTICAL_NAV_DIRECTIVES: Type<any>[] = [\n ClrVerticalNav,\n ClrVerticalNavLink,\n ClrVerticalNavGroup,\n ClrVerticalNavGroupChildren,\n ClrVerticalNavIcon,\n];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrConditionalModule, ClrFocusOnViewInitModule],\n declarations: [CLR_VERTICAL_NAV_DIRECTIVES],\n exports: [CLR_VERTICAL_NAV_DIRECTIVES, ClrConditionalModule, ClrIconModule, ClrFocusOnViewInitModule],\n})\nexport class ClrVerticalNavModule {\n constructor() {\n ClarityIcons.addIcons(angleIcon, angleDoubleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrMainContainerModule } from './main-container/main-container.module';\nimport { ClrNavigationModule } from './nav/navigation.module';\nimport { ClrTabsModule } from './tabs/tabs.module';\nimport { ClrVerticalNavModule } from './vertical-nav/vertical-nav.module';\n\n@NgModule({\n exports: [ClrMainContainerModule, ClrNavigationModule, ClrTabsModule, ClrVerticalNavModule],\n})\nexport class ClrLayoutModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT } from '@angular/common';\nimport { Inject, Injectable } from '@angular/core';\n\n@Injectable()\nexport class ScrollingService {\n constructor(@Inject(DOCUMENT) private _document: any) {}\n\n stopScrolling(): void {\n this._document.body.classList.add('no-scrolling');\n }\n\n resumeScrolling(): void {\n if (this._document.body.classList.contains('no-scrolling')) {\n this._document.body.classList.remove('no-scrolling');\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { animate, AnimationEvent, style, transition, trigger } from '@angular/animations';\nimport { Component, EventEmitter, HostBinding, Input, OnChanges, OnDestroy, Output, SimpleChange } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../utils/id-generator/id-generator.service';\nimport { ScrollingService } from '../utils/scrolling/scrolling-service';\nimport { ModalStackService } from './modal-stack.service';\n\n@Component({\n selector: 'clr-modal',\n viewProviders: [ScrollingService],\n templateUrl: './modal.html',\n styles: [\n `\n :host {\n display: none;\n }\n :host.open {\n display: inline;\n }\n `,\n ],\n animations: [\n trigger('fadeDown', [\n transition('* => false', [style({ opacity: 0, transform: 'translate(0, -25%)' }), animate('0.2s ease-in-out')]),\n transition('false => *', [animate('0.2s ease-in-out', style({ opacity: 0, transform: 'translate(0, -25%)' }))]),\n ]),\n trigger('fade', [\n transition('void => *', [style({ opacity: 0 }), animate('0.2s ease-in-out', style({ opacity: 0.85 }))]),\n transition('* => void', [animate('0.2s ease-in-out', style({ opacity: 0 }))]),\n ]),\n ],\n})\nexport class ClrModal implements OnChanges, OnDestroy {\n modalId = uniqueIdFactory();\n\n @Input('clrModalOpen') @HostBinding('class.open') _open = false;\n @Output('clrModalOpenChange') _openChanged = new EventEmitter<boolean>(false);\n\n @Input('clrModalClosable') closable = true;\n @Input('clrModalCloseButtonAriaLabel') closeButtonAriaLabel = this.commonStrings.keys.close;\n @Input('clrModalSize') size: string;\n @Input('clrModalStaticBackdrop') staticBackdrop = true;\n @Input('clrModalSkipAnimation') skipAnimation = 'false';\n\n @Input('clrModalPreventClose') stopClose = false;\n @Output('clrModalAlternateClose') altClose = new EventEmitter<boolean>(false);\n\n @Input('clrModalLabelledById') labelledBy = this.modalId;\n\n // presently this is only used by inline wizards\n @Input('clrModalOverrideScrollService') bypassScrollService = false;\n\n constructor(\n private _scrollingService: ScrollingService,\n public commonStrings: ClrCommonStringsService,\n private modalStackService: ModalStackService\n ) {}\n\n // Detect when _open is set to true and set no-scrolling to true\n ngOnChanges(changes: { [propName: string]: SimpleChange }): void {\n if (!this.bypassScrollService && changes && Object.prototype.hasOwnProperty.call(changes, '_open')) {\n if (changes._open.currentValue) {\n this._scrollingService.stopScrolling();\n this.modalStackService.trackModalOpen(this);\n } else {\n this._scrollingService.resumeScrolling();\n }\n }\n }\n\n ngOnDestroy(): void {\n this._scrollingService.resumeScrolling();\n }\n\n open(): void {\n if (this._open) {\n return;\n }\n this._open = true;\n this._openChanged.emit(true);\n this.modalStackService.trackModalOpen(this);\n }\n\n close(): void {\n if (this.stopClose) {\n this.altClose.emit(false);\n return;\n }\n if (!this.closable || !this._open) {\n return;\n }\n this._open = false;\n }\n\n fadeDone(e: AnimationEvent) {\n if (e.toState === 'void') {\n // TODO: Investigate if we can decouple from animation events\n this._openChanged.emit(false);\n this.modalStackService.trackModalClose(this);\n }\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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 class=\"modal\" *ngIf=\"_open\">\n <!--fixme: revisit when ngClass works with exit animation-->\n <div\n cdkTrapFocus\n [cdkTrapFocusAutoCapture]=\"true\"\n [@fadeDown]=\"skipAnimation\"\n (@fadeDown.done)=\"fadeDone($event)\"\n class=\"modal-dialog\"\n [class.modal-sm]=\"size == 'sm'\"\n [class.modal-lg]=\"size == 'lg'\"\n [class.modal-xl]=\"size == 'xl'\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-hidden]=\"!_open\"\n [attr.aria-labelledby]=\"labelledBy\"\n >\n <div class=\"clr-sr-only\">{{commonStrings.keys.modalContentStart}}</div>\n <div class=\"modal-content-wrapper\">\n <!-- only used in wizards -->\n <ng-content select=\".modal-nav\"></ng-content>\n\n <div class=\"modal-content\">\n <div class=\"modal-header--accessible\">\n <div class=\"modal-title-wrapper\" id=\"{{modalId}}\" cdkFocusInitial tabindex=\"-1\">\n <ng-content select=\".modal-title\"></ng-content>\n </div>\n <button\n type=\"button\"\n [attr.aria-label]=\"closeButtonAriaLabel || commonStrings.keys.close\"\n class=\"close\"\n *ngIf=\"closable\"\n (click)=\"close()\"\n >\n <cds-icon shape=\"window-close\"></cds-icon>\n </button>\n </div>\n <div class=\"modal-body-wrapper\">\n <ng-content select=\".modal-body\"></ng-content>\n </div>\n <ng-content select=\".modal-footer\"></ng-content>\n </div>\n </div>\n <div class=\"clr-sr-only\">{{commonStrings.keys.modalContentEnd}}</div>\n </div>\n\n <div [@fade] class=\"modal-backdrop\" aria-hidden=\"true\" (click)=\"staticBackdrop || close()\"></div>\n</div>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';\n\n/**\n * Allows modal overflow area to be scrollable via keyboard.\n * The modal body will focus with keyboard navigation only.\n * This allows inner focusable items to be focused without\n * the overflow scroll being focused.\n */\n@Directive({\n selector: '.modal-body',\n})\nexport class ClrModalBody implements OnDestroy {\n private tabindex = '0';\n private unlisteners: VoidFunction[] = [];\n private observer: ResizeObserver;\n\n constructor(private readonly renderer: Renderer2, private readonly host: ElementRef<HTMLElement>, ngZone: NgZone) {\n ngZone.runOutsideAngular(() => {\n this.observer = new ResizeObserver(() => this.addOrRemoveTabIndex());\n this.observer.observe(this.host.nativeElement);\n\n this.unlisteners.push(\n this.renderer.listen(this.host.nativeElement, 'mouseup', () => {\n // set the tabindex binding back when click is completed with mouseup\n this.addOrRemoveTabIndex();\n }),\n this.renderer.listen(this.host.nativeElement, 'mousedown', () => {\n // tabindex = 0 binding should be removed\n // so it won't be focused when click starts with mousedown\n this.removeTabIndex();\n })\n );\n });\n }\n\n ngOnDestroy(): void {\n while (this.unlisteners.length) {\n this.unlisteners.pop()();\n }\n\n this.observer.disconnect();\n this.observer = null;\n }\n\n private addTabIndex() {\n this.renderer.setAttribute(this.host.nativeElement, 'tabindex', this.tabindex);\n }\n\n private removeTabIndex() {\n this.renderer.removeAttribute(this.host.nativeElement, 'tabindex');\n }\n\n private addOrRemoveTabIndex() {\n const modalBody = this.host.nativeElement.parentElement;\n\n if (modalBody && modalBody.clientHeight < modalBody.scrollHeight) {\n this.addTabIndex();\n } else {\n this.removeTabIndex();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { ClarityIcons, windowCloseIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../icon/icon.module';\nimport { CdkTrapFocusModule } from '../utils/cdk/cdk-trap-focus.module';\nimport { ClrModal } from './modal';\nimport { ClrModalBody } from './modal-body';\n\nexport const CLR_MODAL_DIRECTIVES: Type<any>[] = [ClrModal, ClrModalBody];\n\n@NgModule({\n imports: [CommonModule, CdkTrapFocusModule, ClrIconModule],\n declarations: [CLR_MODAL_DIRECTIVES],\n exports: [CLR_MODAL_DIRECTIVES, ClrIconModule],\n})\nexport class ClrModalModule {\n constructor() {\n ClarityIcons.addIcons(windowCloseIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Point } from '../common/popover';\n\nexport interface Position {\n anchorPoint: Point;\n popoverPoint: Point;\n offsetY: number;\n offsetX: number;\n}\n\nexport const SIGNPOST_POSITIONS: { [input: string]: Position } = {\n 'top-left': { anchorPoint: Point.TOP_CENTER, popoverPoint: Point.BOTTOM_RIGHT, offsetY: -10, offsetX: 0 },\n 'top-middle': { anchorPoint: Point.TOP_CENTER, popoverPoint: Point.BOTTOM_CENTER, offsetY: -10, offsetX: 0 },\n 'top-right': { anchorPoint: Point.TOP_CENTER, popoverPoint: Point.BOTTOM_LEFT, offsetY: -10, offsetX: 0 },\n 'right-top': { anchorPoint: Point.RIGHT_CENTER, popoverPoint: Point.LEFT_BOTTOM, offsetY: 2, offsetX: 14 },\n 'right-middle': { anchorPoint: Point.RIGHT_CENTER, popoverPoint: Point.LEFT_CENTER, offsetY: 6, offsetX: 14 },\n 'right-bottom': { anchorPoint: Point.RIGHT_CENTER, popoverPoint: Point.LEFT_TOP, offsetY: -1, offsetX: 14 },\n 'bottom-right': { anchorPoint: Point.BOTTOM_CENTER, popoverPoint: Point.TOP_LEFT, offsetY: 9, offsetX: -1 },\n 'bottom-middle': { anchorPoint: Point.BOTTOM_CENTER, popoverPoint: Point.TOP_CENTER, offsetY: 9, offsetX: 12 },\n 'bottom-left': { anchorPoint: Point.BOTTOM_CENTER, popoverPoint: Point.TOP_RIGHT, offsetY: 9, offsetX: 0 },\n 'left-bottom': { anchorPoint: Point.LEFT_CENTER, popoverPoint: Point.RIGHT_TOP, offsetY: 0, offsetX: -14 },\n 'left-middle': { anchorPoint: Point.LEFT_CENTER, popoverPoint: Point.RIGHT_CENTER, offsetY: 4, offsetX: -14 },\n 'left-top': { anchorPoint: Point.LEFT_CENTER, popoverPoint: Point.RIGHT_BOTTOM, offsetY: 0, offsetX: -14 },\n default: { anchorPoint: Point.RIGHT_CENTER, popoverPoint: Point.LEFT_CENTER, offsetY: 6, offsetX: 14 },\n};\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport { Component, ElementRef, Inject, Injector, Input, OnDestroy, Optional, PLATFORM_ID } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { AbstractPopover } from '../common/abstract-popover';\nimport { POPOVER_HOST_ANCHOR } from '../common/popover-host-anchor.token';\nimport { SignpostFocusManager } from './providers/signpost-focus-manager.service';\nimport { SignpostIdService } from './providers/signpost-id.service';\nimport { SIGNPOST_POSITIONS } from './signpost-positions';\n\n// aka where the arrow / pointer is at in relation to the anchor\nconst POSITIONS: string[] = [\n 'top-left',\n 'top-middle',\n 'top-right',\n 'right-top',\n 'right-middle', // default\n 'right-bottom',\n 'bottom-right',\n 'bottom-middle',\n 'bottom-left',\n 'left-bottom',\n 'left-middle',\n 'left-top',\n];\n\n@Component({\n selector: 'clr-signpost-content',\n template: `\n <div class=\"signpost-wrap\">\n <div class=\"popover-pointer\"></div>\n <div class=\"signpost-content-header\">\n <button\n type=\"button\"\n [attr.aria-label]=\"commonStrings.keys.signpostClose\"\n class=\"signpost-action close\"\n (click)=\"close()\"\n [attr.aria-controls]=\"signpostContentId\"\n >\n <cds-icon shape=\"window-close\" [attr.title]=\"commonStrings.keys.close\"></cds-icon>\n </button>\n </div>\n <div class=\"signpost-content-body\" tabindex=\"0\">\n <ng-content></ng-content>\n </div>\n </div>\n `,\n host: { '[class.signpost-content]': 'true', '[id]': 'signpostContentId' },\n})\nexport class ClrSignpostContent extends AbstractPopover implements OnDestroy {\n signpostContentId = uniqueIdFactory();\n\n private document: Document;\n private _position: string;\n\n constructor(\n injector: Injector,\n @Optional()\n @Inject(POPOVER_HOST_ANCHOR)\n parentHost: ElementRef,\n public commonStrings: ClrCommonStringsService,\n private signpostIdService: SignpostIdService,\n private signpostFocusManager: SignpostFocusManager,\n @Inject(PLATFORM_ID) private platformId: any,\n @Inject(DOCUMENT) document: any\n ) {\n super(injector, parentHost);\n if (!parentHost) {\n throw new Error('clr-signpost-content should only be used inside of a clr-signpost');\n }\n // Defaults\n this.position = 'right-middle';\n this.closeOnOutsideClick = true;\n this.signpostIdService.setId(this.signpostContentId);\n\n this.document = document;\n }\n\n /*********\n *\n * @description\n * A setter for the position of the ClrSignpostContent popover. This is a combination of the following:\n * - anchorPoint - where on the trigger to anchor the ClrSignpostContent\n * - popoverPoint - where on the ClrSignpostContent container to align with the anchorPoint\n * - offsetY - where on the Y axis to align the ClrSignpostContent so it meets specs\n * - offsetX - where on the X axis to align the ClrSignpostContent so it meets specs\n * There are 12 possible positions to place a ClrSignpostContent container:\n * - top-left\n * - top-middle\n * - top-right\n * - right-top\n * - right-middle\n * - right-bottom\n * - bottom-right\n * - bottom-middle\n * - bottom-left\n * - left-bottom\n * - left-middle\n * - left-top\n *\n * I think of it as follows for 'top-left' -> CONTAINER_SIDE-SIDE_POSITION. In this case CONTAINER_SIDE is 'top'\n * meaning the top of the trigger icon (above the icon that hides/shows) the ClrSignpostContent. And, SIDE_POSITION\n * is 'left' meaning two things: 1) the ClrSignpostContent container extends to the left and 2) the 'arrow/pointer'\n * linking the SingpostContent to the trigger points down at the horizontal center of the trigger icon.\n *\n * @param newPosition\n */\n @Input('clrPosition')\n get position() {\n return this._position;\n }\n set position(position: string) {\n // Ugh\n this.renderer.removeClass(this.el.nativeElement, this.position);\n if (position && POSITIONS.indexOf(position) > -1) {\n this._position = position;\n } else {\n this._position = 'right-middle';\n }\n // Ugh\n this.renderer.addClass(this.el.nativeElement, this.position);\n\n const setPosition = SIGNPOST_POSITIONS[this.position];\n this.anchorPoint = setPosition.anchorPoint;\n this.popoverPoint = setPosition.popoverPoint;\n this.popoverOptions.offsetY = setPosition.offsetY;\n this.popoverOptions.offsetX = setPosition.offsetX;\n }\n\n /**********\n *\n * @description\n * Close function that uses the signpost instance to toggle the state of the content popover.\n *\n */\n close() {\n this.toggleService.open = false;\n }\n\n override ngOnDestroy() {\n super.ngOnDestroy();\n\n if (isPlatformBrowser(this.platformId) && this.el.nativeElement.contains(this.document.activeElement)) {\n this.signpostFocusManager.focusTrigger();\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { ClarityIcons, infoCircleIcon, windowCloseIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrFocusOnViewInitModule } from '../../utils/focus/focus-on-view-init/focus-on-view-init.module';\nimport { ClrSignpost } from './signpost';\nimport { ClrSignpostContent } from './signpost-content';\nimport { ClrSignpostTrigger } from './signpost-trigger';\n\nexport const CLR_SIGNPOST_DIRECTIVES: Type<any>[] = [ClrSignpost, ClrSignpostContent, ClrSignpostTrigger];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrFocusOnViewInitModule],\n declarations: [CLR_SIGNPOST_DIRECTIVES],\n exports: [CLR_SIGNPOST_DIRECTIVES, ClrConditionalModule],\n})\nexport class ClrSignpostModule {\n constructor() {\n ClarityIcons.addIcons(windowCloseIcon, infoCircleIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable()\nexport class TooltipIdService {\n private _id = new Subject<string>();\n\n get id(): Observable<string> {\n return this._id.asObservable();\n }\n\n updateId(id: string) {\n this._id.next(id);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { ClrPopoverToggleService } from '../../../utils/popover/providers/popover-toggle.service';\n\n@Injectable()\nexport class TooltipMouseService {\n private mouseOverTrigger: boolean;\n private mouseOverContent: boolean;\n\n constructor(private readonly toggleService: ClrPopoverToggleService) {}\n\n onMouseEnterTrigger() {\n this.mouseOverTrigger = true;\n this.toggleService.open = true;\n }\n\n onMouseLeaveTrigger() {\n this.mouseOverTrigger = false;\n this.hideIfMouseOut();\n }\n\n onMouseEnterContent() {\n this.mouseOverContent = true;\n }\n\n onMouseLeaveContent() {\n this.mouseOverContent = false;\n this.hideIfMouseOut();\n }\n\n private hideIfMouseOut() {\n // A zero timeout is used so that the code has a chance to update\n // the `mouseOverContent` property after the user moves the mouse from the trigger to the content.\n setTimeout(() => {\n if (!this.mouseOverTrigger && !this.mouseOverContent) {\n this.toggleService.open = false;\n }\n }, 0);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { ClrPopoverHostDirective } from '../../utils/popover/popover-host.directive';\nimport { TooltipIdService } from './providers/tooltip-id.service';\nimport { TooltipMouseService } from './providers/tooltip-mouse.service';\n\n@Component({\n selector: 'clr-tooltip',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.tooltip]': 'true',\n },\n providers: [TooltipIdService, TooltipMouseService],\n hostDirectives: [ClrPopoverHostDirective],\n})\nexport class ClrTooltip {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport function assertNever(value: never) {\n throw new Error(`Unhandled value: ${value}`);\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ElementRef, HostListener, Inject, Injector, Input, OnInit, Optional } from '@angular/core';\n\nimport { assertNever } from '../../utils/assert/assert.helpers';\nimport { uniqueIdFactory } from '../../utils/id-generator/id-generator.service';\nimport { AbstractPopover } from '../common/abstract-popover';\nimport { Point } from '../common/popover';\nimport { POPOVER_HOST_ANCHOR } from '../common/popover-host-anchor.token';\nimport { TooltipIdService } from './providers/tooltip-id.service';\nimport { TooltipMouseService } from './providers/tooltip-mouse.service';\n\nconst POSITIONS = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'right', 'left'] as const;\ntype Position = typeof POSITIONS[number];\n\nconst SIZES = ['xs', 'sm', 'md', 'lg'];\n\nconst defaultPosition = 'right';\nconst defaultSize = 'sm';\n\n@Component({\n selector: 'clr-tooltip-content',\n template: `<ng-content></ng-content>`,\n host: {\n '[class.tooltip-content]': 'true',\n '[style.opacity]': '1',\n '[attr.role]': '\"tooltip\"',\n '[id]': 'id',\n },\n})\nexport class ClrTooltipContent extends AbstractPopover implements OnInit {\n private _id: string;\n private _position: string;\n private _size: string;\n\n constructor(\n injector: Injector,\n @Optional()\n @Inject(POPOVER_HOST_ANCHOR)\n parentHost: ElementRef,\n private tooltipIdService: TooltipIdService,\n private tooltipMouseService: TooltipMouseService\n ) {\n super(injector, parentHost);\n\n if (!parentHost) {\n throw new Error('clr-tooltip-content should only be used inside of a clr-tooltip');\n }\n\n // Set the default id in case consumer does not supply a custom id.\n this.id = uniqueIdFactory();\n }\n\n @Input()\n get id(): string {\n return this._id;\n }\n set id(value: string) {\n const id = value || '';\n\n this._id = id;\n this.tooltipIdService.updateId(id);\n }\n\n @Input('clrPosition')\n get position() {\n return this._position;\n }\n set position(value: string) {\n const oldPosition = this._position;\n const newPosition = POSITIONS.includes(value as any) ? (value as Position) : defaultPosition;\n\n this._position = newPosition;\n this.updateCssClass({ oldClass: `tooltip-${oldPosition}`, newClass: `tooltip-${newPosition}` });\n\n // set the popover values based on direction\n switch (newPosition) {\n case 'top-right':\n this.anchorPoint = Point.TOP_CENTER;\n this.popoverPoint = Point.LEFT_BOTTOM;\n break;\n case 'top-left':\n this.anchorPoint = Point.TOP_CENTER;\n this.popoverPoint = Point.RIGHT_BOTTOM;\n break;\n case 'bottom-right':\n this.anchorPoint = Point.BOTTOM_CENTER;\n this.popoverPoint = Point.LEFT_TOP;\n break;\n case 'bottom-left':\n this.anchorPoint = Point.BOTTOM_CENTER;\n this.popoverPoint = Point.RIGHT_TOP;\n break;\n case 'right':\n this.anchorPoint = Point.RIGHT_CENTER;\n this.popoverPoint = Point.LEFT_TOP;\n break;\n case 'left':\n this.anchorPoint = Point.LEFT_CENTER;\n this.popoverPoint = Point.RIGHT_TOP;\n break;\n default:\n assertNever(newPosition);\n }\n }\n\n @Input('clrSize')\n get size() {\n return this._size;\n }\n set size(value: string) {\n const oldSize = this._size;\n const newSize = SIZES.includes(value) ? value : defaultSize;\n\n this._size = newSize;\n this.updateCssClass({ oldClass: `tooltip-${oldSize}`, newClass: `tooltip-${newSize}` });\n }\n\n ngOnInit() {\n this.size = this.size || defaultSize;\n this.position = this.position || defaultPosition;\n }\n\n @HostListener('mouseenter')\n private onMouseEnter() {\n this.tooltipMouseService.onMouseEnterContent();\n }\n\n @HostListener('mouseleave')\n private onMouseLeave() {\n this.tooltipMouseService.onMouseLeaveContent();\n }\n\n private updateCssClass({ oldClass, newClass }: { oldClass: string; newClass: string }) {\n this.renderer.removeClass(this.el.nativeElement, oldClass);\n this.renderer.addClass(this.el.nativeElement, newClass);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, HostListener } from '@angular/core';\nimport { Subscription } from 'rxjs';\n\nimport { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';\nimport { TooltipIdService } from './providers/tooltip-id.service';\nimport { TooltipMouseService } from './providers/tooltip-mouse.service';\n\n@Directive({\n selector: '[clrTooltipTrigger]',\n host: {\n tabindex: '0',\n '[class.tooltip-trigger]': 'true',\n '[attr.aria-describedby]': 'ariaDescribedBy',\n '[attr.role]': '\"button\"',\n },\n})\nexport class ClrTooltipTrigger {\n ariaDescribedBy: string;\n private subs: Subscription[] = [];\n\n constructor(\n private toggleService: ClrPopoverToggleService,\n private tooltipIdService: TooltipIdService,\n private tooltipMouseService: TooltipMouseService\n ) {\n // The aria-described by comes from the id of content. It\n this.subs.push(this.tooltipIdService.id.subscribe(tooltipId => (this.ariaDescribedBy = tooltipId)));\n }\n\n ngOnDestroy() {\n this.subs.forEach(sub => sub.unsubscribe());\n }\n\n @HostListener('focus')\n showTooltip(): void {\n this.toggleService.open = true;\n }\n\n @HostListener('blur')\n hideTooltip(): void {\n this.toggleService.open = false;\n }\n\n @HostListener('mouseenter')\n private onMouseEnter() {\n this.tooltipMouseService.onMouseEnterTrigger();\n }\n\n @HostListener('mouseleave')\n private onMouseLeave() {\n this.tooltipMouseService.onMouseLeaveTrigger();\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrIconModule } from '../../icon/icon.module';\nimport { ClrConditionalModule } from '../../utils/conditional/conditional.module';\nimport { ClrTooltip } from './tooltip';\nimport { ClrTooltipContent } from './tooltip-content';\nimport { ClrTooltipTrigger } from './tooltip-trigger';\n\nexport const CLR_TOOLTIP_DIRECTIVES: Type<any>[] = [ClrTooltip, ClrTooltipTrigger, ClrTooltipContent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_TOOLTIP_DIRECTIVES],\n exports: [CLR_TOOLTIP_DIRECTIVES, ClrConditionalModule, ClrIconModule],\n})\nexport class ClrTooltipModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrDropdownModule } from './dropdown/dropdown.module';\nimport { ClrSignpostModule } from './signpost/signpost.module';\nimport { ClrTooltipModule } from './tooltip/tooltip.module';\n\n@NgModule({\n exports: [ClrDropdownModule, ClrSignpostModule, ClrTooltipModule],\n})\nexport class ClrPopoverModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, HostBinding, Input } from '@angular/core';\n\nimport { isBooleanAttributeSet } from '../../utils/component/is-boolean-attribute-set';\n\n@Component({\n selector: 'clr-progress-bar',\n template: `\n <progress [id]=\"id\" [attr.max]=\"max\" [attr.value]=\"value\" [attr.data-displayval]=\"displayValue\"></progress>\n <span *ngIf=\"displayStringValue()\">{{ displayValue }}</span>\n `,\n})\nexport class ClrProgressBar {\n @Input('clrMax') max: number | string = 100;\n @Input('clrDisplayval') displayval: string;\n\n /*\n * No need to convert to `number` cause we could have\n * floating point and parseInt will round the numbers\n *\n * working with string won't have any side-effects,\n * we don't do any math so string will do the job.\n */\n @Input('clrValue') value: number | string = 0;\n\n @HostBinding('attr.id') externalId = '';\n\n private _ID: string;\n private _labeled: boolean;\n private _fade: boolean;\n private _loop: boolean;\n private _success: boolean;\n private _danger: boolean;\n private _flash: boolean;\n private _flashDanger: boolean;\n\n @Input()\n get id() {\n return this._ID;\n }\n set id(value: string) {\n this._ID = value;\n this.externalId = null;\n }\n\n @HostBinding('class.progress')\n get progressClass() {\n return true;\n }\n\n @Input('clrLabeled')\n set clrLabeled(value: boolean | string) {\n this._labeled = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.labeled')\n get labeledClass() {\n return this._labeled;\n }\n\n @Input('clrFade')\n set clrFade(value: boolean | string) {\n this._fade = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.progress-fade')\n get fadeClass() {\n return this._fade;\n }\n\n @Input('clrLoop')\n set clrLoop(value: boolean | string) {\n this._loop = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.loop')\n get loopClass() {\n return this._loop;\n }\n\n /** @deprecated since 2.0, remove in 4.0 */\n @Input('clrSuccess')\n set clrSuccess(value: boolean | string) {\n this._success = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.success')\n get successClass() {\n return this._success;\n }\n\n /** @deprecated since 2.0, remove in 4.0 */\n @Input('clrDanger')\n set clrDanger(value: boolean | string) {\n this._danger = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.danger')\n get dangerClass() {\n return this._danger;\n }\n\n @Input('clrFlash')\n set clrFlash(value: boolean | string) {\n this._flash = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.flash')\n get flashClass() {\n return this._flash;\n }\n\n /** @deprecated since 2.0, remove in 4.0 */\n @Input('clrFlashDanger')\n set clrFlashDanger(value: boolean | string) {\n this._flashDanger = isBooleanAttributeSet(value);\n }\n\n @HostBinding('class.flash-danger')\n get flashDangerClass() {\n return this._flashDanger;\n }\n\n /**\n * Make sure that we always will have something that is readable\n * for the screen reader\n */\n get displayValue() {\n if (this.displayval) {\n return this.displayval;\n }\n return `${this.value || 0}%`;\n }\n\n /**\n * Display optional text only when labeled is eneabled\n */\n displayStringValue() {\n return this._labeled;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\n\nimport { ClrProgressBar } from './progress-bar';\n\nexport const CLR_PROGRESS_BAR_DIRECTIVES: Type<any>[] = [ClrProgressBar];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLR_PROGRESS_BAR_DIRECTIVES],\n exports: [CLR_PROGRESS_BAR_DIRECTIVES],\n})\nexport class ClrProgressBarModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrTimelineLayout {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport enum ClrTimelineStepState {\n NOT_STARTED = 'not-started',\n CURRENT = 'current',\n PROCESSING = 'processing',\n SUCCESS = 'success',\n ERROR = 'error',\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';\nimport { ClrTimelineStepState } from '../enums/timeline-step-state.enum';\nimport { IconAttributes } from '../interface/icon-attribute.interface';\n\n@Injectable()\nexport class TimelineIconAttributeService {\n private attributeMap: Map<ClrTimelineStepState, IconAttributes> = new Map<ClrTimelineStepState, IconAttributes>();\n\n constructor(commonStrings: ClrCommonStringsService) {\n this.attributeMap.set(ClrTimelineStepState.NOT_STARTED, {\n iconShape: 'circle',\n iconStatus: null,\n ariaLabel: commonStrings.keys.timelineStepNotStarted,\n });\n this.attributeMap.set(ClrTimelineStepState.CURRENT, {\n iconShape: 'dot-circle',\n iconStatus: 'info',\n ariaLabel: commonStrings.keys.timelineStepCurrent,\n });\n this.attributeMap.set(ClrTimelineStepState.PROCESSING, {\n iconShape: undefined,\n iconStatus: null,\n ariaLabel: commonStrings.keys.timelineStepProcessing,\n });\n this.attributeMap.set(ClrTimelineStepState.SUCCESS, {\n iconShape: 'success-standard',\n iconStatus: 'success',\n ariaLabel: commonStrings.keys.timelineStepSuccess,\n });\n this.attributeMap.set(ClrTimelineStepState.ERROR, {\n iconShape: 'error-standard',\n iconStatus: 'danger',\n ariaLabel: commonStrings.keys.timelineStepError,\n });\n }\n\n getAriaLabel(step: ClrTimelineStepState): string {\n return this.attributeMap.get(step).ariaLabel;\n }\n\n getIconShape(step: ClrTimelineStepState): string {\n return this.attributeMap.get(step).iconShape;\n }\n\n getIconStatus(step: ClrTimelineStepState): string {\n return this.attributeMap.get(step).iconStatus;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, HostBinding, Input } from '@angular/core';\n\nimport { ClrTimelineLayout } from './enums/timeline-layout.enum';\nimport { TimelineIconAttributeService } from './providers/timeline-icon-attribute.service';\n\n@Component({\n selector: 'clr-timeline',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-timeline]': 'true' },\n providers: [TimelineIconAttributeService],\n})\nexport class ClrTimeline {\n @Input('clrLayout') layout: ClrTimelineLayout = ClrTimelineLayout.HORIZONTAL;\n\n @HostBinding('class.clr-timeline-vertical')\n get isVertical(): boolean {\n return this.layout === ClrTimelineLayout.VERTICAL;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n/**\n * Note: Why does this component have aria-hidden attribute?\n *\n * tl;dr: we want screen readers to ignore this element when its reading out to blind users.\n *\n * In order to make a timeline step accessible to screen readers we need the title read out before the\n * icon. In order to do this, ClrTimeLine step has a ContentChild that queries for the ClrTimelineStepTitle and\n * then adds the projected text into a .clr-sr-only element that is a sibling element to the icon. See the\n * ClrTimlineStep template for the DOM structure.\n */\n@Component({\n selector: 'clr-timeline-step-title',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-timeline-step-title]': 'true', '[attr.aria-hidden]': 'true' },\n})\nexport class ClrTimelineStepTitle {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport { Component, ContentChild, ElementRef, Inject, Input, PLATFORM_ID } from '@angular/core';\n\nimport { ClrTimelineStepState } from './enums/timeline-step-state.enum';\nimport { TimelineIconAttributeService } from './providers/timeline-icon-attribute.service';\nimport { ClrTimelineStepTitle } from './timeline-step-title';\n\n@Component({\n selector: 'clr-timeline-step',\n template: `\n <ng-content select=\"clr-timeline-step-header\"></ng-content>\n <span class=\"clr-sr-only\">{{ stepTitleText }}</span>\n <ng-container *ngIf=\"!isProcessing; else processing\">\n <cds-icon\n [attr.status]=\"iconStatus\"\n [attr.shape]=\"iconShape\"\n [attr.aria-label]=\"iconAriaLabel\"\n role=\"img\"\n ></cds-icon>\n </ng-container>\n <div class=\"clr-timeline-step-body\">\n <ng-content select=\"clr-timeline-step-title\"></ng-content>\n <ng-content select=\"clr-timeline-step-description\"></ng-content>\n </div>\n\n <ng-template #processing>\n <clr-spinner clrMedium [attr.aria-label]=\"iconAriaLabel\"></clr-spinner>\n </ng-template>\n `,\n host: { '[class.clr-timeline-step]': 'true' },\n})\nexport class ClrTimelineStep {\n @Input('clrState') state: ClrTimelineStepState = ClrTimelineStepState.NOT_STARTED;\n\n @ContentChild(ClrTimelineStepTitle, { read: ElementRef }) stepTitle: ElementRef;\n\n stepTitleText: string;\n\n constructor(\n private iconAttributeService: TimelineIconAttributeService,\n @Inject(PLATFORM_ID) private platformId: any\n ) {}\n\n get iconAriaLabel(): string {\n return this.iconAttributeService.getAriaLabel(this.state);\n }\n\n get iconShape(): string {\n return this.iconAttributeService.getIconShape(this.state);\n }\n\n get iconStatus(): string {\n return this.iconAttributeService.getIconStatus(this.state);\n }\n\n get isProcessing(): boolean {\n return this.state === ClrTimelineStepState.PROCESSING;\n }\n\n ngAfterContentInit() {\n if (this.stepTitle && isPlatformBrowser(this.platformId)) {\n this.stepTitleText = this.stepTitle.nativeElement.innerText;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-timeline-step-description',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-timeline-step-description]': 'true' },\n})\nexport class ClrTimelineStepDescription {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'clr-timeline-step-header',\n template: `<ng-content></ng-content>`,\n host: { '[class.clr-timeline-step-header]': 'true' },\n})\nexport class ClrTimelineStepHeader {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule, Type } from '@angular/core';\nimport { circleIcon, ClarityIcons, dotCircleIcon, errorStandardIcon, successStandardIcon } from '@cds/core/icon';\n\nimport { ClrIconModule } from '../icon/icon.module';\nimport { ClrSpinnerModule } from '../progress/spinner/spinner.module';\nimport { ClrTimeline } from './timeline';\nimport { ClrTimelineStep } from './timeline-step';\nimport { ClrTimelineStepDescription } from './timeline-step-description';\nimport { ClrTimelineStepHeader } from './timeline-step-header';\nimport { ClrTimelineStepTitle } from './timeline-step-title';\n\nconst CLR_TIMELINE_DIRECTIVES: Type<any>[] = [\n ClrTimeline,\n ClrTimelineStep,\n ClrTimelineStepDescription,\n ClrTimelineStepHeader,\n ClrTimelineStepTitle,\n];\n\n@NgModule({\n imports: [CommonModule, ClrIconModule, ClrSpinnerModule],\n exports: [...CLR_TIMELINE_DIRECTIVES, ClrIconModule, ClrSpinnerModule],\n declarations: [CLR_TIMELINE_DIRECTIVES],\n})\nexport class ClrTimelineModule {\n constructor() {\n ClarityIcons.addIcons(circleIcon, dotCircleIcon, errorStandardIcon, successStandardIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class ButtonHubService {\n buttonsReady = false;\n\n private _previousBtnClicked = new Subject<any>();\n private _nextBtnClicked = new Subject<any>();\n private _dangerBtnClicked = new Subject<any>();\n private _cancelBtnClicked = new Subject<any>();\n private _finishBtnClicked = new Subject<any>();\n private _customBtnClicked = new Subject<any>();\n\n get previousBtnClicked(): Observable<any> {\n return this._previousBtnClicked.asObservable();\n }\n\n get nextBtnClicked(): Observable<any> {\n return this._nextBtnClicked.asObservable();\n }\n\n get dangerBtnClicked(): Observable<any> {\n return this._dangerBtnClicked.asObservable();\n }\n\n get cancelBtnClicked(): Observable<any> {\n return this._cancelBtnClicked.asObservable();\n }\n\n get finishBtnClicked(): Observable<any> {\n return this._finishBtnClicked.asObservable();\n }\n\n get customBtnClicked(): Observable<any> {\n return this._customBtnClicked.asObservable();\n }\n\n buttonClicked(buttonType: string): void {\n if ('previous' === buttonType) {\n this._previousBtnClicked.next();\n } else if ('next' === buttonType) {\n this._nextBtnClicked.next();\n } else if ('finish' === buttonType) {\n this._finishBtnClicked.next();\n } else if ('danger' === buttonType) {\n this._dangerBtnClicked.next();\n } else if ('cancel' === buttonType) {\n this._cancelBtnClicked.next();\n } else {\n this._customBtnClicked.next(buttonType);\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, QueryList } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { Subject } from 'rxjs';\n\nimport { ClrWizardPage } from '../wizard-page';\n\n/**\n * PageCollectionService manages the collection of pages assigned to the wizard and offers\n * a number of functions useful across the wizards providers and subcomponents -- all related\n * to essentially lookups on the collection of pages.\n *\n * The easiest way to access PageCollectionService is via the wizard. The\n * following example would allow you to access your instance of the wizard from your host\n * component and thereby access the page collection via YourHostComponent.wizard.pageCollection.\n *\n * @example\n * <clr-wizard #wizard ...>\n *\n * @example\n * export class YourHostComponent {\n * @ViewChild(\"wizard\") wizard: Wizard;\n * ...\n * }\n *\n * The heart of the page collection is the query list of pages, which it is assigned as a\n * reference to the Wizard.pages QueryList when the wizard is created.\n *\n */\n@Injectable()\nexport class PageCollectionService {\n /**\n * A reference to the Wizard.pages QueryList.\n *\n * Populated when the wizard is created.\n *\n * @memberof PageCollectionService\n */\n pages: QueryList<ClrWizardPage>;\n\n /**\n *\n * @memberof PageCollectionService\n */\n private _pagesReset = new Subject<boolean>();\n\n /**\n * Converts the PageCollectionService.pages QueryList to an array and returns it.\n *\n * Useful for many instances when you would prefer a QueryList to act like an array.\n *\n * @memberof PageCollectionService\n */\n get pagesAsArray(): ClrWizardPage[] {\n return this.pages ? this.pages.toArray() : [];\n }\n\n /**\n * Returns the length of the pages query list.\n *\n * @memberof PageCollectionService\n */\n get pagesCount(): number {\n return this.pages ? this.pages.length : 0;\n }\n\n /**\n * Returns the next-to-last page in the query list of pages. Operates as a getter\n * so that it isn't working with stale data.\n *\n * @memberof PageCollectionService\n */\n get penultimatePage(): ClrWizardPage {\n const pageCount = this.pagesCount;\n\n if (pageCount < 2) {\n return null;\n }\n\n return this.pagesAsArray[pageCount - 2];\n }\n\n /**\n * Returns the last page in the query list of pages. Operates as a getter\n * so that it isn't working with stale data.\n *\n * @memberof PageCollectionService\n */\n get lastPage(): ClrWizardPage {\n const pageCount = this.pagesCount;\n\n if (pageCount < 1) {\n return null;\n }\n\n return this.pagesAsArray[pageCount - 1];\n }\n\n /**\n * Returns the first page in the query list of pages. Operates as a getter\n * so that it isn't working with stale data.\n *\n * @memberof PageCollectionService\n */\n get firstPage(): ClrWizardPage {\n if (!this.pagesCount) {\n return null;\n }\n\n return this.pagesAsArray[0];\n }\n\n /**\n * An observable that the navigation service listens to in order to know when\n * the page collection completed states have been reset to false so that way it\n * can also reset the navigation to make the first page in the page collection\n * current/active.\n *\n * @memberof PageCollectionService\n */\n get pagesReset(): Observable<boolean> {\n return this._pagesReset.asObservable();\n }\n\n /**\n * Used mostly internally, but accepts a string ID and returns a ClrWizardPage\n * object that matches the ID passed. Note that IDs here should include the prefix\n * \"clr-wizard-page-\".\n *\n * Returns the next-to-last page in the query list of pages. Operates as a getter\n * so that it isn't working with stale data.\n *\n * @memberof PageCollectionService\n */\n getPageById(id: string): ClrWizardPage {\n const foundPages: ClrWizardPage[] = this.pages.filter((page: ClrWizardPage) => id === page.id);\n return this.checkResults(foundPages, id);\n }\n\n /**\n * Accepts s number as a parameter and treats that number as the index of the page\n * you're looking for in the collection of pages. Returns a wizard page object.\n *\n * @memberof PageCollectionService\n */\n getPageByIndex(index: number): ClrWizardPage {\n const pageCount = this.pagesCount;\n const pagesLastIndex: number = pageCount > 1 ? pageCount - 1 : 0;\n\n if (index < 0) {\n throw new Error('Cannot retrieve page with index of ' + index);\n }\n\n if (index > pagesLastIndex) {\n throw new Error('Page index is greater than length of pages array.');\n }\n\n return this.pagesAsArray[index];\n }\n\n /**\n * Takes a wizard page object as a parameter and returns its index in the\n * collection of pages.\n *\n * @memberof PageCollectionService\n */\n getPageIndex(page: ClrWizardPage): number {\n const index = this.pagesAsArray.indexOf(page);\n\n if (index < 0) {\n throw new Error('Requested page cannot be found in collection of pages.');\n }\n\n return index;\n }\n\n /**\n * Accepts two numeric indexes and returns an array of wizard page objects that include\n * all wizard pages in the page collection from the first index to the second.\n *\n * @memberof PageCollectionService\n */\n pageRange(start: number, end: number): ClrWizardPage[] {\n let pages: ClrWizardPage[] = [];\n\n if (start < 0 || end < 0) {\n return [];\n }\n\n if (start === null || typeof start === 'undefined' || isNaN(start)) {\n return [];\n }\n\n if (end === null || typeof end === 'undefined' || isNaN(end)) {\n return [];\n }\n\n if (end > this.pagesCount) {\n end = this.pagesCount;\n }\n\n pages = this.pagesAsArray;\n\n if (end - start === 0) {\n // just return the one page they want\n return [this.getPageByIndex(start)];\n }\n\n // slice end does not include item referenced by end index, which is weird for users\n // incrementing end index here to correct that so users and other methods\n // don't have to think about it\n end = end + 1;\n\n // slice does not return the last one in the range but it does include the first one\n // does not modify original array\n return pages.slice(start, end);\n }\n\n /**\n * Accepts two wizard page objects and returns those page objects with all other page\n * objects between them in the page collection. It doesn't care which page is ahead of the\n * other in the parameters. It will be smart enough to figure that out on its own.\n *\n * @memberof PageCollectionService\n */\n getPageRangeFromPages(page: ClrWizardPage, otherPage: ClrWizardPage): ClrWizardPage[] {\n const pageIndex = this.getPageIndex(page);\n const otherPageIndex = this.getPageIndex(otherPage);\n let startIndex: number;\n let endIndex: number;\n\n if (pageIndex <= otherPageIndex) {\n startIndex = pageIndex;\n endIndex = otherPageIndex;\n } else {\n startIndex = otherPageIndex;\n endIndex = pageIndex;\n }\n return this.pageRange(startIndex, endIndex);\n }\n\n /**\n * Takes a wizard page object as a parameter and returns the wizard page object of\n * the page immediately before it in the page collection. Returns null if there is\n * no page before the page it is passed.\n *\n * @memberof PageCollectionService\n */\n getPreviousPage(page: ClrWizardPage) {\n const myPageIndex = this.getPageIndex(page);\n const previousPageIndex = myPageIndex - 1;\n if (previousPageIndex < 0) {\n return null;\n }\n return this.getPageByIndex(previousPageIndex);\n }\n\n /**\n * Accepts a wizard page object as a parameter and returns a Boolean that says if\n * the page you sent it is complete.\n *\n * @memberof PageCollectionService\n */\n previousPageIsCompleted(page: ClrWizardPage) {\n if (!page) {\n return false;\n }\n\n const previousPage = this.getPreviousPage(page);\n\n if (null === previousPage) {\n // page is the first page. no previous page.\n return true;\n }\n\n return previousPage.completed;\n }\n\n /**\n * Takes a wizard page object as a parameter and returns the wizard page object of\n * the page immediately after it in the page collection. Returns null if there is\n * no page after the page it is passed.\n *\n * @memberof PageCollectionService\n */\n getNextPage(page: ClrWizardPage) {\n const myPageIndex = this.getPageIndex(page);\n const nextPageIndex = myPageIndex + 1;\n\n if (nextPageIndex >= this.pagesAsArray.length) {\n return null;\n }\n return this.getPageByIndex(nextPageIndex);\n }\n\n /**\n * Takes a wizard page object as a parameter and generates a step item id from the\n * page ID. Returns the generated step item ID as a string.\n *\n * @memberof PageCollectionService\n */\n getStepItemIdForPage(page: ClrWizardPage) {\n const pageId = page.id;\n const pageIdParts = pageId.split('-').reverse();\n\n pageIdParts[1] = 'step';\n return pageIdParts.reverse().join('-');\n }\n\n /**\n * Generally only used internally to mark that a specific page has been \"committed\".\n * This involves marking the page complete and firing the ClrWizardPage.onCommit\n * (clrWizardPageOnCommit) output. Takes the wizard page object that you intend to\n * mark completed as a parameter.\n *\n * @memberof PageCollectionService\n */\n commitPage(page: ClrWizardPage) {\n const pageHasOverrides = page.stopNext || page.preventDefault;\n page.completed = true;\n\n if (!pageHasOverrides) {\n // prevent loop of event emission; alternate flows work off\n // of event emitters this is how they break that cycle.\n page.onCommit.emit(page.id);\n }\n }\n\n /**\n * Sets all completed states of the pages in the page collection to false and\n * notifies the navigation service to likewise reset the navigation.\n *\n * @memberof PageCollectionService\n */\n reset() {\n this.pagesAsArray.forEach((page: ClrWizardPage) => {\n page.completed = false;\n });\n this._pagesReset.next(true);\n }\n\n /**\n * Rolls through all the pages in the page collection to make sure there are no\n * incomplete pages sandwiched between completed pages in the workflow. Identifies\n * the first incomplete page index and sets all pages behind it to a completed\n * state of false.\n *\n * @memberof PageCollectionService\n */\n updateCompletedStates(): void {\n const firstIncompleteIndex = this.findFirstIncompletePageIndex();\n\n if (firstIncompleteIndex === this.pagesAsArray.length - 1) {\n // all complete no need to do anything\n return;\n }\n\n this.pagesAsArray.forEach((page: ClrWizardPage, index: number) => {\n if (index > firstIncompleteIndex) {\n page.completed = false;\n }\n });\n }\n\n /**\n * Retrieves the index of the first incomplete page in the page collection.\n *\n * @memberof PageCollectionService\n */\n findFirstIncompletePageIndex(): number {\n let returnIndex: number = null;\n this.pagesAsArray.forEach((page: ClrWizardPage, index: number) => {\n if (null === returnIndex && false === page.completed) {\n returnIndex = index;\n }\n });\n\n // fallthrough, all completed, return last page\n if (null === returnIndex) {\n returnIndex = this.pagesCount - 1;\n }\n\n return returnIndex;\n }\n\n findFirstIncompletePage(): ClrWizardPage {\n const myIncompleteIndex = this.findFirstIncompletePageIndex();\n return this.pagesAsArray[myIncompleteIndex];\n }\n\n /**\n * Consolidates guard logic that prevents a couple of unfortunate edge cases with\n * look ups on the collection of pages.\n *\n * @memberof PageCollectionService\n */\n private checkResults(results: ClrWizardPage[], requestedPageId: string) {\n const foundPagesCount: number = results.length || 0;\n\n if (foundPagesCount > 1) {\n throw new Error('More than one page has the requested id ' + requestedPageId + '.');\n } else if (foundPagesCount < 1) {\n throw new Error('No page can be found with the id ' + requestedPageId + '.');\n } else {\n return results[0];\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, OnDestroy, TemplateRef } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { Subscription } from 'rxjs';\n\nimport { ClrWizardPage } from '../wizard-page';\nimport { ButtonHubService } from './button-hub.service';\nimport { PageCollectionService } from './page-collection.service';\n\n/**\n * Performs navigation functions for a wizard and manages the current page. Presented as a\n * separate service to encapsulate the behavior of navigating and completing the wizard so\n * that it can be shared across the wizard and its sub-components.\n *\n * The easiest way to access the navigation service is there a reference on your wizard. The\n * Following example would allow you to access your instance of the wizard from your host\n * component and thereby access the navigation service via YourHostComponent.wizard.navService.\n *\n * @example\n * <clr-wizard #wizard ...>\n *\n * @example\n * export class YourHostComponent {\n * @ViewChild(\"wizard\") wizard: Wizard;\n * ...\n * }\n *\n */\n@Injectable()\nexport class WizardNavigationService implements OnDestroy {\n /**\n * Is notified when a previous button is clicked in the wizard. Performs checks\n * before alerting the current page of the button click. Enacts navigation to\n * the previous page if not overridden at the page level.\n *\n * @memberof WizardNavigationService\n */\n previousButtonSubscription: Subscription;\n\n /**\n * Is notified when a Next button is clicked in the wizard.\n *\n * @memberof WizardNavigationService\n */\n nextButtonSubscription: Subscription;\n\n /**\n * Is notified when a danger button is clicked in the wizard.\n *\n * @memberof WizardNavigationService\n */\n dangerButtonSubscription: Subscription;\n\n /**\n * Is notified when a finish button is clicked in the wizard.\n *\n * @memberof WizardNavigationService\n */\n finishButtonSubscription: Subscription;\n\n /**\n * Is notified when a Custom button is clicked in the wizard.\n *\n * @memberof WizardNavigationService\n */\n customButtonSubscription: Subscription;\n\n /**\n * Is notified when a Cancel button is clicked in the wizard. Notifies the wizard,\n * which handles all cancel functionality, if cancel is not overridden at the page\n * level.\n *\n * @memberof WizardNavigationService\n */\n cancelButtonSubscription: Subscription;\n\n /**\n * Resets navigation to make the first page current when the page collection service\n * emits an event notifying WizardNavigationService that it has reset all pages\n * to their pristine, incomplete state.\n *\n * @memberof WizardNavigationService\n */\n pagesResetSubscription: Subscription;\n\n /**\n * A Boolean flag used by the ClrWizardPage to avoid a race condition when pages are\n * loading and there is no current page defined.\n *\n * @memberof WizardNavigationService\n */\n navServiceLoaded = false;\n\n /**\n * A boolean flag shared across the Wizard subcomponents that follows the value\n * of the Wizard.forceForward (clrWizardForceForwardNavigation) input. When true,\n * navigating backwards in the stepnav menu will reset any skipped pages' completed\n * state to false.\n *\n * This is useful when a wizard executes validation on a page-by-page basis when\n * the next button is clicked.\n *\n * @memberof WizardNavigationService\n */\n forceForwardNavigation = false;\n\n /**\n * A boolean flag shared across the Wizard subcomponents that follows the value\n * of the Wizard.stopCancel (clrWizardPreventDefaultCancel) input. When true, the cancel\n * routine is subverted and must be reinstated in the host component calling Wizard.close()\n * at some point.\n *\n * @memberof WizardNavigationService\n */\n wizardHasAltCancel = false;\n\n /**\n * A boolean flag shared across the Wizard subcomponents that follows the value\n * of the Wizard.stopNext (clrWizardPreventDefaultNext) input. When true, the next and finish\n * routines are subverted and must be reinstated in the host component calling Wizard.next(),\n * Wizard.forceNext(), Wizard.finish(), or Wizard.forceFinish().\n *\n * @memberof WizardNavigationService\n */\n wizardHasAltNext = false;\n\n /**\n * A boolean flag shared across the Wizard subcomponents that follows the value\n * of the Wizard.stopNavigation (clrWizardPreventNavigation) input. When true, all\n * navigational elements in the wizard are disabled.\n *\n * This is intended to freeze the wizard in place. Events are not fired so this is\n * not a way to implement alternate functionality for navigation.\n *\n * @memberof WizardNavigationService\n */\n wizardStopNavigation = false;\n\n /**\n * A boolean flag shared with the stepnav items that prevents user clicks on\n * stepnav items from navigating the wizard.\n *\n * @memberof WizardNavigationService\n */\n wizardDisableStepnav = false;\n\n /**\n * @memberof WizardNavigationService\n */\n private _currentPage: ClrWizardPage;\n\n /**\n *\n * @memberof WizardNavigationService\n */\n private _currentChanged = new Subject<ClrWizardPage>();\n\n /**\n * @memberof WizardNavigationService\n */\n private _movedToNextPage = new Subject<boolean>();\n\n /**\n * @memberof WizardNavigationService\n */\n private _wizardFinished = new Subject<boolean>();\n\n /**\n * @memberof WizardNavigationService\n */\n private _movedToPreviousPage = new Subject<boolean>();\n\n /**\n * @memberof WizardNavigationService\n */\n private _cancelWizard = new Subject<any>();\n\n /**\n * Creates an instance of WizardNavigationService. Also sets up subscriptions\n * that listen to the button service to determine when a button has been clicked\n * in the wizard. Is also responsible for taking action when the page collection\n * requests that navigation be reset to its pristine state.\n *\n * @memberof WizardNavigationService\n */\n constructor(public pageCollection: PageCollectionService, public buttonService: ButtonHubService) {\n this.previousButtonSubscription = this.buttonService.previousBtnClicked.subscribe(() => {\n const currentPage = this.currentPage;\n if (this.currentPageIsFirst || currentPage.previousStepDisabled) {\n return;\n }\n currentPage.previousButtonClicked.emit(currentPage);\n if (!currentPage.preventDefault) {\n this.previous();\n }\n });\n\n this.nextButtonSubscription = this.buttonService.nextBtnClicked.subscribe(() => {\n this.checkAndCommitCurrentPage('next');\n });\n\n this.dangerButtonSubscription = this.buttonService.dangerBtnClicked.subscribe(() => {\n this.checkAndCommitCurrentPage('danger');\n });\n\n this.finishButtonSubscription = this.buttonService.finishBtnClicked.subscribe(() => {\n this.checkAndCommitCurrentPage('finish');\n });\n\n this.customButtonSubscription = this.buttonService.customBtnClicked.subscribe((type: string) => {\n if (!this.wizardStopNavigation) {\n this.currentPage.customButtonClicked.emit(type);\n }\n });\n\n this.cancelButtonSubscription = this.buttonService.cancelBtnClicked.subscribe(() => {\n if (this.wizardStopNavigation) {\n return;\n }\n\n if (this.currentPage.preventDefault) {\n this.currentPage.pageOnCancel.emit(this.currentPage);\n } else {\n this.cancel();\n }\n });\n\n this.pagesResetSubscription = this.pageCollection.pagesReset.subscribe(() => {\n this.setFirstPageCurrent();\n });\n }\n\n /**\n * An Observable that is predominantly used amongst the subcomponents and services\n * of the wizard. It is recommended that users listen to the ClrWizardPage.onLoad\n * (clrWizardPageOnLoad) output instead of this Observable.\n *\n * @memberof WizardNavigationService\n */\n get currentPageChanged(): Observable<ClrWizardPage> {\n // TODO: MAKE SURE EXTERNAL OUTPUTS SAY 'CHANGE' NOT 'CHANGED'\n // A BREAKING CHANGE SO AWAITING MINOR RELEASE\n return this._currentChanged.asObservable();\n }\n\n /**\n * @memberof WizardNavigationService\n */\n get currentPageTitle(): TemplateRef<any> {\n // when the querylist of pages is empty. this is the first place it fails...\n if (!this.currentPage) {\n return null;\n }\n return this.currentPage.title;\n }\n\n /**\n * Returns a Boolean that tells you whether or not the current page is the first\n * page in the Wizard.\n *\n * This is helpful for determining whether a page is navigable.\n *\n * @memberof WizardNavigationService\n */\n get currentPageIsFirst(): boolean {\n return this.pageCollection.firstPage === this.currentPage;\n }\n\n /**\n * Returns a Boolean that tells you whether or not the current page is the\n * last page in the Wizard.\n *\n * This is used to determine which buttons should display in the wizard footer.\n *\n * @memberof WizardNavigationService\n */\n get currentPageIsLast(): boolean {\n return this.pageCollection.lastPage === this.currentPage;\n }\n\n /**\n * Returns the ClrWizardPage object of the current page or null.\n *\n * @memberof WizardNavigationService\n */\n get currentPage(): ClrWizardPage {\n if (!this._currentPage) {\n return null;\n }\n return this._currentPage;\n }\n\n /**\n * Accepts a ClrWizardPage object, since that object to be the current/active\n * page in the wizard, and emits the ClrWizardPage.onLoad (clrWizardPageOnLoad)\n * event for that page.\n *\n * Note that all of this work is bypassed if the ClrWizardPage object is already\n * the current page.\n *\n * @memberof WizardNavigationService\n */\n set currentPage(page: ClrWizardPage) {\n if (this._currentPage !== page && !this.wizardStopNavigation) {\n this._currentPage = page;\n page.onLoad.emit(page.id);\n this._currentChanged.next(page);\n }\n }\n\n /**\n * An observable used internally to alert the wizard that forward navigation\n * has occurred. It is recommended that you use the Wizard.onMoveNext\n * (clrWizardOnNext) output instead of this one.\n *\n * @memberof WizardNavigationService\n */\n get movedToNextPage(): Observable<boolean> {\n return this._movedToNextPage.asObservable();\n }\n\n /**\n * An observable used internally to alert the wizard that the nav service\n * has approved completion of the wizard.\n *\n * It is recommended that you use the Wizard.wizardFinished (clrWizardOnFinish)\n * output instead of this one.\n *\n * @memberof WizardNavigationService\n */\n get wizardFinished(): Observable<boolean> {\n return this._wizardFinished.asObservable();\n }\n\n /**\n * Notifies the wizard when backwards navigation has occurred via the\n * previous button.\n *\n * @memberof WizardNavigationService\n */\n get movedToPreviousPage(): Observable<boolean> {\n return this._movedToPreviousPage.asObservable();\n }\n\n /**\n * Notifies the wizard that a user is trying to cancel it.\n *\n * @memberof WizardNavigationService\n */\n get notifyWizardCancel(): Observable<any> {\n return this._cancelWizard.asObservable();\n }\n\n /**\n *\n * @memberof WizardNavigationService\n */\n ngOnDestroy(): void {\n this.previousButtonSubscription.unsubscribe();\n this.nextButtonSubscription.unsubscribe();\n this.dangerButtonSubscription.unsubscribe();\n this.finishButtonSubscription.unsubscribe();\n this.customButtonSubscription.unsubscribe();\n this.cancelButtonSubscription.unsubscribe();\n this.pagesResetSubscription.unsubscribe();\n }\n\n /**\n * This is a public function that can be used to programmatically advance\n * the user to the next page.\n *\n * When invoked, this method will move the wizard to the next page after\n * successful validation. Note that this method goes through all checks\n * and event emissions as if Wizard.next(false) had been called.\n *\n * In most cases, it makes more sense to use Wizard.next(false).\n *\n * @memberof WizardNavigationService\n */\n next(): void {\n if (this.currentPageIsLast) {\n this.checkAndCommitCurrentPage('finish');\n } else {\n this.checkAndCommitCurrentPage('next');\n }\n }\n\n /**\n * Bypasses checks and most event emissions to force a page to navigate forward.\n *\n * Comparable to calling Wizard.next() or Wizard.forceNext().\n *\n * @memberof WizardNavigationService\n */\n forceNext(): void {\n const currentPage: ClrWizardPage = this.currentPage;\n const nextPage: ClrWizardPage = this.pageCollection.getNextPage(currentPage);\n\n // catch errant null or undefineds that creep in\n if (!nextPage) {\n throw new Error('The wizard has no next page to go to.');\n }\n\n if (this.wizardStopNavigation) {\n return;\n }\n\n if (!currentPage.completed) {\n // this is a state that alt next flows can get themselves in...\n this.pageCollection.commitPage(currentPage);\n }\n this.currentPage = nextPage;\n }\n\n /**\n * Accepts a button/action type as a parameter. Encapsulates all logic for\n * event emissions, state of the current page, and wizard and page level overrides.\n *\n * Avoid calling this function directly unless you really know what you're doing.\n *\n * @memberof WizardNavigationService\n */\n checkAndCommitCurrentPage(buttonType: string): void {\n const currentPage: ClrWizardPage = this.currentPage;\n\n if (!currentPage.readyToComplete || this.wizardStopNavigation) {\n return;\n }\n\n const iAmTheLastPage = this.currentPageIsLast;\n\n const isNext = buttonType === 'next';\n const isDanger = buttonType === 'danger';\n const isDangerNext = isDanger && !iAmTheLastPage;\n const isDangerFinish = isDanger && iAmTheLastPage;\n const isFinish = buttonType === 'finish' || isDangerFinish;\n\n if (isFinish && !iAmTheLastPage) {\n return;\n }\n\n currentPage.primaryButtonClicked.emit(buttonType);\n\n if (isFinish) {\n currentPage.finishButtonClicked.emit(currentPage);\n } else if (isDanger) {\n currentPage.dangerButtonClicked.emit();\n } else if (isNext) {\n currentPage.nextButtonClicked.emit();\n }\n\n if (currentPage.stopNext || currentPage.preventDefault) {\n currentPage.onCommit.emit(currentPage.id);\n return;\n }\n\n // order is very important with these emitters!\n if (isFinish) {\n // mark page as complete\n if (!this.wizardHasAltNext) {\n this.pageCollection.commitPage(currentPage);\n }\n this._wizardFinished.next();\n }\n\n if (this.wizardHasAltNext) {\n this.pageCollection.commitPage(currentPage);\n\n if (isNext || isDangerNext) {\n this._movedToNextPage.next(true);\n }\n // jump out here, no matter what type we're looking at\n return;\n }\n\n if (isNext || isDangerNext) {\n this.forceNext();\n }\n\n if (!this.wizardHasAltNext && !this.wizardStopNavigation) {\n this._movedToNextPage.next(true);\n }\n }\n\n /**\n * This is a public function that can be used to programmatically conclude\n * the wizard.\n *\n * When invoked, this method will initiate the work involved with finalizing\n * and finishing the wizard workflow. Note that this method goes through all\n * checks and event emissions as if Wizard.finish(false) had been called.\n *\n * In most cases, it makes more sense to use Wizard.finish(false).\n *\n * @memberof WizardNavigationService\n */\n finish(): void {\n this.checkAndCommitCurrentPage('finish');\n }\n\n /**\n * Programmatically moves the wizard to the page before the current page.\n *\n * In most instances, it makes more sense to call Wizard.previous()\n * which does the same thing.\n *\n * @memberof WizardNavigationService\n */\n previous(): void {\n if (this.currentPageIsFirst || this.wizardStopNavigation) {\n return;\n }\n\n const previousPage = this.pageCollection.getPreviousPage(this.currentPage);\n\n if (!previousPage) {\n return;\n }\n\n this._movedToPreviousPage.next(true);\n\n if (this.forceForwardNavigation) {\n this.currentPage.completed = false;\n }\n\n this.currentPage = previousPage;\n }\n\n /**\n * Allows a hook into the cancel workflow of the wizard from the nav service. Note that\n * this route goes through all checks and event emissions as if a cancel button had\n * been clicked.\n *\n * In most cases, users looking for a hook into the cancel routine are actually looking\n * for a way to close the wizard from their host component because they have prevented\n * the default cancel action.\n *\n * In this instance, it is recommended that you use Wizard.close() to avoid any event\n * emission loop resulting from an event handler calling back into routine that will\n * again evoke the events it handles.\n *\n * @memberof WizardNavigationService\n */\n cancel(): void {\n this._cancelWizard.next();\n }\n\n /**\n * Performs all required checks to determine if a user can navigate to a page. Checking at each\n * point if a page is navigable -- completed where the page immediately after the last completed\n * page.\n *\n * Takes two parameters. The first one must be either the ClrWizardPage object or the ID of the\n * ClrWizardPage object that you want to make the current page.\n *\n * The second parameter is optional and is a Boolean flag for \"lazy completion\". What this means\n * is the Wizard will mark all pages between the current page and the page you want to navigate\n * to as completed. This is useful for informational wizards that do not require user action,\n * allowing an easy means for users to jump ahead.\n *\n * To avoid checks on navigation, use ClrWizardPage.makeCurrent() instead.\n *\n * @memberof WizardNavigationService\n */\n goTo(pageToGoToOrId: any, lazyComplete = false) {\n const myPages = this.pageCollection;\n const pageToGoTo = typeof pageToGoToOrId === 'string' ? myPages.getPageById(pageToGoToOrId) : pageToGoToOrId;\n const currentPage = this.currentPage;\n\n // no point in going to the current page. you're there already!\n // also hard block on any navigation when stopNavigation is true\n if (pageToGoTo === currentPage || this.wizardStopNavigation) {\n return;\n }\n\n const currentPageIndex = myPages.getPageIndex(currentPage);\n const goToPageIndex = myPages.getPageIndex(pageToGoTo);\n const goingForward = goToPageIndex > currentPageIndex;\n const pagesToCheck = myPages.getPageRangeFromPages(this.currentPage, pageToGoTo);\n const okayToMove = lazyComplete || this.canGoTo(pagesToCheck);\n\n if (!okayToMove) {\n return;\n }\n\n if (goingForward && lazyComplete) {\n pagesToCheck.forEach((page: ClrWizardPage) => {\n if (page !== pageToGoTo) {\n page.completed = true;\n }\n });\n } else if (!goingForward && this.forceForwardNavigation) {\n pagesToCheck.forEach((page: ClrWizardPage) => {\n page.completed = false;\n });\n }\n\n this.currentPage = pageToGoTo;\n }\n\n /**\n * Accepts a range of ClrWizardPage objects as a parameter. Performs the work of checking\n * those objects to determine if navigation can be accomplished.\n *\n * @memberof WizardNavigationService\n */\n canGoTo(pagesToCheck: ClrWizardPage[]): boolean {\n let okayToMove = true;\n const myPages = this.pageCollection;\n\n // previous page can be important when moving because if it's completed it\n // allows us to move to the page even if it's incomplete...\n let previousPagePasses: boolean;\n\n if (!pagesToCheck || pagesToCheck.length < 1) {\n return false;\n }\n\n pagesToCheck.forEach((page: ClrWizardPage) => {\n if (!okayToMove) {\n return;\n }\n\n if (page.completed) {\n // default is true. just jump out instead of complicating it.\n return;\n }\n\n // so we know our page is not completed...\n const previousPage = myPages.getPageIndex(page) > 0 ? myPages.getPreviousPage(page) : null;\n previousPagePasses = previousPage === null || previousPage.completed === true;\n\n // we are false if not the current page AND previous page is not completed\n // (but must have a previous page)\n if (!page.current && !previousPagePasses) {\n okayToMove = false;\n }\n // falls through to true as default\n });\n\n return okayToMove;\n }\n\n /**\n * Looks through the collection of pages to find the first one that is incomplete\n * and makes that page the current/active page.\n *\n * @memberof WizardNavigationService\n */\n setLastEnabledPageCurrent(): void {\n const allPages: ClrWizardPage[] = this.pageCollection.pagesAsArray;\n let lastCompletedPageIndex: number = null;\n\n allPages.forEach((page: ClrWizardPage, index: number) => {\n if (page.completed) {\n lastCompletedPageIndex = index;\n }\n });\n\n if (lastCompletedPageIndex === null) {\n // always is at least the first item...\n lastCompletedPageIndex = 0;\n } else if (lastCompletedPageIndex + 1 < allPages.length) {\n lastCompletedPageIndex = lastCompletedPageIndex + 1;\n }\n\n this.currentPage = allPages[lastCompletedPageIndex];\n }\n\n /**\n * Finds the first page in the collection of pages and makes that page the\n * current/active page.\n *\n * @memberof WizardNavigationService\n */\n setFirstPageCurrent(): void {\n this.currentPage = this.pageCollection.pagesAsArray[0];\n }\n\n /**\n * Updates the stepnav on the left side of the wizard when pages are dynamically\n * added or removed from the collection of pages.\n *\n * @memberof WizardNavigationService\n */\n updateNavigation(): void {\n let toSetCurrent: ClrWizardPage;\n\n this.pageCollection.updateCompletedStates();\n\n const currentPageRemoved = this.pageCollection.pagesAsArray.indexOf(this.currentPage) < 0;\n if (currentPageRemoved) {\n toSetCurrent = this.pageCollection.findFirstIncompletePage();\n this.currentPage = toSetCurrent;\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Injectable, QueryList } from '@angular/core';\n\nimport { ClrWizardHeaderAction } from '../wizard-header-action';\nimport { WizardNavigationService } from './wizard-navigation.service';\n\n@Injectable()\nexport class HeaderActionService {\n // this service communicates information about the presence/display of header actions\n // across the wizard\n\n wizardHeaderActions: QueryList<ClrWizardHeaderAction>;\n\n constructor(public navService: WizardNavigationService) {}\n\n get wizardHasHeaderActions(): boolean {\n const wizardHdrActions = this.wizardHeaderActions;\n if (!wizardHdrActions) {\n return false;\n }\n return wizardHdrActions.toArray().length > 0;\n }\n\n get currentPageHasHeaderActions(): boolean {\n return this.navService.currentPage ? this.navService.currentPage.hasHeaderActions : false;\n }\n\n get showWizardHeaderActions(): boolean {\n return !this.currentPageHasHeaderActions && this.wizardHasHeaderActions;\n }\n\n get displayHeaderActionsWrapper(): boolean {\n return this.currentPageHasHeaderActions || this.wizardHasHeaderActions;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\nlet wizardHeaderActionIndex = 0;\n\n@Component({\n selector: 'clr-wizard-header-action',\n template: `\n <button\n type=\"button\"\n class=\"btn clr-wizard-header-action btn-link\"\n [id]=\"id\"\n [class.disabled]=\"disabled\"\n (click)=\"click()\"\n [title]=\"title\"\n >\n <ng-content></ng-content>\n </button>\n `,\n host: { class: 'clr-wizard-header-action-wrapper' },\n})\nexport class ClrWizardHeaderAction {\n // title is explanatory text added to the header action\n @Input('title') title = '';\n\n // If our host has an ID attribute, we use this instead of our index.\n @Input('id') _id: string = (wizardHeaderActionIndex++).toString();\n\n @Input('clrWizardHeaderActionDisabled') disabled = false;\n\n @Output('actionClicked') headerActionClicked = new EventEmitter<string>(false);\n\n get id(): string {\n return `clr-wizard-header-action-${this._id}`;\n }\n\n click(): void {\n if (this.disabled) {\n return;\n }\n\n // passing the header action id allows users to have one method that\n // routes to many different actions based on the type of header action\n // clicked. this is further aided by users being able to specify ids\n // for their header actions.\n this.headerActionClicked.emit(this._id);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[clrPageButtons]',\n})\nexport class ClrWizardPageButtons {\n constructor(public pageButtonsTemplateRef: TemplateRef<any>) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[clrPageHeaderActions]',\n})\nexport class ClrWizardPageHeaderActions {\n constructor(public pageHeaderActionsTemplateRef: TemplateRef<any>) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[clrPageNavTitle]',\n})\nexport class ClrWizardPageNavTitle {\n constructor(public pageNavTitleTemplateRef: TemplateRef<any>) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input, TemplateRef } from '@angular/core';\n\nimport { HeadingLevel } from './heading-level';\n\n@Directive({\n selector: '[clrPageTitle]',\n})\nexport class ClrWizardPageTitle {\n @Input('clrHeadingLevel') headingLevel: HeadingLevel;\n\n constructor(public pageTitleTemplateRef: TemplateRef<any>) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef } from '@angular/core';\n\nimport { ButtonHubService } from './providers/button-hub.service';\nimport { PageCollectionService } from './providers/page-collection.service';\nimport { WizardNavigationService } from './providers/wizard-navigation.service';\nimport { ClrWizardPageButtons } from './wizard-page-buttons';\nimport { ClrWizardPageHeaderActions } from './wizard-page-header-actions';\nimport { ClrWizardPageNavTitle } from './wizard-page-navtitle';\nimport { ClrWizardPageTitle } from './wizard-page-title';\n\nlet wizardPageIndex = 0;\n\n/**\n * The ClrWizardPage component is responsible for displaying the content of each step\n * in the wizard workflow.\n *\n * ClrWizardPage component has hooks into the navigation service (ClrWizardPage.navService),\n * page collection (ClrWizardPage.pageCollection), and button service\n * (ClrWizardPage.buttonService). These three providers are shared across the components\n * within each instance of a Wizard.\n *\n */\n@Component({\n selector: 'clr-wizard-page',\n template: '<ng-content></ng-content>',\n host: {\n '[id]': 'id',\n '[attr.aria-hidden]': '!current',\n '[attr.aria-labelledby]': 'stepItemId',\n '[class.active]': 'current',\n '[class.clr-wizard-page]': 'true',\n },\n})\nexport class ClrWizardPage implements OnInit {\n /**\n * An input value that is used internally to generate the ClrWizardPage ID as\n * well as the step nav item ID.\n *\n * Typed as any because it should be able to accept numbers as well as\n * strings. Passing an index for wizard whose pages are created with an\n * ngFor loop is a common use case.\n *\n * @memberof WizardPage\n *\n */\n @Input('id') _id: any = (wizardPageIndex++).toString();\n\n /**\n * Overrides all actions from the page level, so you can use an alternate function for\n * validation or data-munging with a ClrWizardPage.onCommit (clrWizardPageOnCommit output),\n * ClrWizardPage.onCancel (clrWizardPageOnCancel output), or one\n * of the granular page-level button click event emitters.\n *\n * @memberof WizardPage\n *\n */\n @Input('clrWizardPagePreventDefault') preventDefault: boolean | string = false;\n\n /**\n * Emits when the value of ClrWizardPage.nextStepDisabled changes.\n * Should emit the new value of nextStepDisabled.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageNextDisabledChange') nextStepDisabledChange = new EventEmitter<boolean>();\n\n /**\n * Emits when the value of ClrWizardPage.previousStepDisabled changes.\n * Should emit the new value of previousStepDisabled.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPagePreviousDisabledChange') previousStepDisabledChange = new EventEmitter<boolean>();\n\n /**\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPagePreventDefaultCancelChange') stopCancelChange = new EventEmitter<boolean>();\n\n /**\n * An event emitter carried over from a legacy version of ClrWizardPage.\n * Fires an event on ClrWizardPage whenever the next or finish buttons\n * are clicked and the page is the current page of the Wizard.\n *\n * Note that this does not automatically emit an event when a custom\n * button is used in place of a next or finish button.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageOnCommit') onCommit = new EventEmitter<string>(false);\n\n /**\n * Emits an event when ClrWizardPage becomes the current page of the\n * Wizard.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageOnLoad') onLoad = new EventEmitter<string>();\n\n /**\n * Emits an event when the ClrWizardPage invokes the cancel routine for the wizard.\n *\n * Can be used in conjunction with the ClrWizardPage.stopCancel\n * (clrWizardPagePreventDefaultCancel) or ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) inputs to implement custom cancel\n * functionality at the page level. This is useful if you would like to do\n * validation, save data, or warn users before cancelling the wizard.\n *\n * Note that this requires you to call Wizard.close() from the host component.\n * This constitues a full replacement of the cancel functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageOnCancel') pageOnCancel = new EventEmitter<ClrWizardPage>();\n\n /**\n * Emits an event when the finish button is clicked and the ClrWizardPage is\n * the wizard's current page.\n *\n * Can be used in conjunction with the ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) input to implement custom finish\n * functionality at the page level. This is useful if you would like to do\n * validation, save data, or warn users before allowing them to complete\n * the wizard.\n *\n * Note that this requires you to call Wizard.finish() or Wizard.forceFinish()\n * from the host component. This combination creates a full replacement of\n * the finish functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageFinish') finishButtonClicked = new EventEmitter<ClrWizardPage>();\n\n /**\n * Emits an event when the previous button is clicked and the ClrWizardPage is\n * the wizard's current page.\n *\n * Can be used in conjunction with the ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) input to implement custom backwards\n * navigation at the page level. This is useful if you would like to do\n * validation, save data, or warn users before allowing them to go\n * backwards in the wizard.\n *\n * Note that this requires you to call Wizard.previous()\n * from the host component. This combination creates a full replacement of\n * the backwards navigation functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPagePrevious') previousButtonClicked = new EventEmitter<ClrWizardPage>();\n\n /**\n * Emits an event when the next button is clicked and the ClrWizardPage is\n * the wizard's current page.\n *\n * Can be used in conjunction with the ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) input to implement custom forwards\n * navigation at the page level. This is useful if you would like to do\n * validation, save data, or warn users before allowing them to go\n * to the next page in the wizard.\n *\n * Note that this requires you to call Wizard.forceNext() or Wizard.next()\n * from the host component. This combination creates a full replacement of\n * the forward navigation functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageNext') nextButtonClicked = new EventEmitter<ClrWizardPage>();\n\n /**\n * Emits an event when a danger button is clicked and the ClrWizardPage is\n * the wizard's current page. By default, a danger button will act as\n * either a \"next\" or \"finish\" button depending on if the ClrWizardPage is the\n * last page or not.\n *\n * Can be used in conjunction with the ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) input to implement custom forwards\n * or finish navigation at the page level when the danger button is clicked.\n * This is useful if you would like to do validation, save data, or warn\n * users before allowing them to go to the next page in the wizard or\n * finish the wizard.\n *\n * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(),\n * Wizard.forceNext() or Wizard.next() from the host component. This\n * combination creates a full replacement of the forward navigation and\n * finish functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPageDanger') dangerButtonClicked = new EventEmitter<ClrWizardPage>();\n\n /**\n * Emits an event when a next, finish, or danger button is clicked and the\n * ClrWizardPage is the wizard's current page.\n *\n * Can be used in conjunction with the ClrWizardPage.preventDefault\n * (clrWizardPagePagePreventDefault) input to implement custom forwards\n * or finish navigation at the page level, regardless of the type of\n * primary button.\n *\n * This is useful if you would like to do validation, save data, or warn\n * users before allowing them to go to the next page in the wizard or\n * finish the wizard.\n *\n * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(),\n * Wizard.forceNext() or Wizard.next() from the host component. This\n * combination creates a full replacement of the forward navigation and\n * finish functionality.\n *\n * @memberof WizardPage\n *\n */\n @Output('clrWizardPagePrimary') primaryButtonClicked = new EventEmitter<string>();\n\n @Output('clrWizardPageCustomButton') customButtonClicked = new EventEmitter<string>();\n\n /**\n * Contains a reference to the page title which is used for a number\n * of different tasks for display in the wizard.\n *\n * @memberof WizardPage\n *\n */\n @ContentChild(ClrWizardPageTitle, { static: true }) pageTitle: ClrWizardPageTitle;\n\n /**\n * Contains a reference to the desired title for the page's step in the\n * navigation on the left side of the wizard. Can be projected to change the\n * navigation link's text.\n *\n * If not defined, then ClrWizardPage.pageTitle will be displayed in the stepnav.\n *\n * @memberof WizardPage\n *\n */\n @ContentChild(ClrWizardPageNavTitle, { static: true }) pageNavTitle: ClrWizardPageNavTitle;\n\n /**\n * Contains a reference to the buttons defined within the page. If not defined,\n * the wizard defaults to the set of buttons defined as a direct child of the\n * wizard.\n *\n * @memberof WizardPage\n *\n */\n @ContentChild(ClrWizardPageButtons, { static: true }) _buttons: ClrWizardPageButtons;\n\n /**\n * Contains a reference to the header actions defined within the page. If not defined,\n * the wizard defaults to the set of header actions defined as a direct child of the\n * wizard.\n *\n * @memberof WizardPage\n *\n */\n @ContentChild(ClrWizardPageHeaderActions, { static: true }) _headerActions: ClrWizardPageHeaderActions;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _nextStepDisabled = false;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _previousStepDisabled = false;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _hasError = false;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _stopCancel = false;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _stopNext = false;\n\n /**\n *\n * @memberof WizardPage\n *\n */\n private _complete = false;\n\n /**\n * Creates an instance of ClrWizardPage.\n *\n * @memberof WizardPage\n */\n constructor(\n private navService: WizardNavigationService,\n public pageCollection: PageCollectionService,\n public buttonService: ButtonHubService\n ) {}\n\n /**\n * A property that tells whether or not the wizard should be allowed\n * to move to the next page.\n *\n * Useful for in-page validation because it prevents forward navigation\n * and visibly disables the next button.\n *\n * Does not require that you re-implement navigation routines like you\n * would if you were using ClrWizardPage.preventDefault or\n * Wizard.preventDefault.\n *\n * @memberof WizardPage\n *\n */\n @Input('clrWizardPageNextDisabled')\n get nextStepDisabled(): boolean {\n return this._nextStepDisabled;\n }\n set nextStepDisabled(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._nextStepDisabled) {\n this._nextStepDisabled = valBool;\n this.nextStepDisabledChange.emit(valBool);\n }\n }\n\n /**\n * A property that tells whether or not the wizard should be allowed\n * to move to the previous page.\n *\n * Useful for in-page validation because it prevents backward navigation\n * and visibly disables the previous button.\n *\n * Does not require that you re-implement navigation routines like you\n * would if you were using ClrWizardPage.preventDefault or\n * Wizard.preventDefault.\n *\n * @memberof WizardPage\n *\n */\n @Input('clrWizardPagePreviousDisabled')\n get previousStepDisabled(): boolean {\n return this._previousStepDisabled;\n }\n set previousStepDisabled(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._previousStepDisabled) {\n this._previousStepDisabled = valBool;\n this.previousStepDisabledChange.emit(valBool);\n }\n }\n\n /**\n * Whether the page has an error and also resolve the \"falsy\" value. The\n * current logic treat a \"0\" or an empty string as false and likewise will treat any\n * \"truthy\" value as true.\n *\n * @memberof WizardPage\n *\n */\n @Input('clrWizardPageHasError')\n get hasError(): boolean {\n return this._hasError;\n }\n set hasError(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._hasError) {\n this._hasError = valBool;\n }\n }\n\n /**\n * Overrides the cancel action from the page level. Allows you to use an\n * alternate function for validation or data-munging before cancelling the\n * wizard when combined with the ClrWizardPage.onCancel\n * (the clrWizardPageOnCancel output).\n *\n * Requires that you manually close the wizard from your host component,\n * usually with a call to Wizard.forceNext() or wizard.next();\n *\n * @memberof ClrWizardPage\n */\n @Input('clrWizardPagePreventDefaultCancel')\n get stopCancel(): boolean {\n return this._stopCancel;\n }\n set stopCancel(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._stopCancel) {\n this._stopCancel = valBool;\n this.stopCancelChange.emit(valBool);\n }\n }\n\n /**\n * Overrides forward navigation from the page level. Allows you to use an\n * alternate function for validation or data-munging before moving the\n * wizard to the next pagewhen combined with the ClrWizardPage.onCommit\n * (clrWizardPageOnCommit) or ClrWizardPage.nextButtonClicked\n * (clrWizardPageNext) outputs.\n *\n * Requires that you manually tell the wizard to navigate forward from\n * the hostComponent, usually with a call to Wizard.forceNext() or\n * wizard.next();\n *\n * @memberof ClrWizardPage\n */\n @Input('clrWizardPagePreventDefaultNext')\n get stopNext(): boolean {\n return this._stopNext;\n }\n set stopNext(val: boolean) {\n const valBool = !!val;\n if (valBool !== this._stopNext) {\n this._stopNext = valBool;\n }\n }\n\n /**\n * A read-only getter that generates an ID string for the wizard page from\n * either the value passed to the ClrWizardPage \"id\" input or a wizard page\n * counter shared across all wizard pages in the application.\n *\n * Note that the value passed into the ID input Will be prefixed with\n * \"clr-wizard-page-\".\n *\n * @readonly\n *\n * @memberof ClrWizardPage\n */\n get id(): string {\n // covers things like null, undefined, false, and empty string\n // while allowing zero to pass\n const idIsNonZeroFalsy = !this._id && this._id !== 0;\n\n // in addition to non-zero falsy we also want to make sure _id is not a negative\n // number.\n if (idIsNonZeroFalsy || this._id < 0) {\n // guard here in the event that input becomes undefined or null by accident\n this._id = (wizardPageIndex++).toString();\n }\n return `clr-wizard-page-${this._id}`;\n }\n\n /**\n * A read-only getter that serves as a convenience for those who would rather\n * not think in the terms of !ClrWizardPage.nextStepDisabled. For some use cases,\n * ClrWizardPage.readyToComplete is more logical and declarative.\n *\n * @memberof WizardPage\n *\n */\n get readyToComplete(): boolean {\n return !this.nextStepDisabled;\n }\n\n /**\n * A page is marked as completed if it is both readyToComplete and completed,\n * as in the next or finish action has been executed while this page was current.\n *\n * Note there is and open question about how to handle pages that are marked\n * complete but who are no longer readyToComplete. This might indicate an error\n * state for the ClrWizardPage. Currently, the wizard does not acknowledge this state\n * and only returns that the page is incomplete.\n *\n * @memberof WizardPage\n *\n */\n get completed(): boolean {\n return this._complete && this.readyToComplete;\n\n // FOR V2: UNWIND COMPLETED, READYTOCOMPLETE, AND ERRORS\n // SUCH THAT ERRORS IS ITS OWN INPUT. IF A STEP IS\n // INCOMPLETE AND ERRORED, ERRORED WILL NOT SHOW.\n // FIRST QUESTION: AM I GREY OR COLORED?\n // SECOND QUESTION: AM I GREEN OR RED?\n }\n\n /**\n * A ClrWizardPage can be manually set to completed using this boolean setter.\n * It is recommended that users rely on the convenience functions in the wizard\n * and navigation service instead of manually setting pages completion state.\n *\n * @memberof ClrWizardPage\n */\n set completed(value: boolean) {\n this._complete = value;\n }\n\n /**\n * Checks with the navigation service to see if it is the current page.\n *\n * @memberof WizardPage\n *\n */\n get current(): boolean {\n return this.navService.currentPage === this;\n }\n\n get disabled(): boolean {\n return !this.enabled;\n }\n\n /**\n * A read-only getter that returns whether or not the page is navigable\n * in the wizard. A wizard page can be navigated to if it is completed\n * or the page before it is completed.\n *\n * This getter handles the logic for enabling or disabling the links in\n * the step nav on the left Side of the wizard.\n *\n * @memberof WizardPage\n *\n */\n get enabled(): boolean {\n return this.current || this.completed || this.previousCompleted;\n }\n\n /**\n * A read-only getter that returns whether or not the page before this\n * ClrWizardPage is completed. This is useful for determining whether or not\n * a page is navigable if it is not current or already completed.\n *\n * @memberof WizardPage\n *\n */\n get previousCompleted(): boolean {\n const previousPage = this.pageCollection.getPreviousPage(this);\n\n if (!previousPage) {\n return true;\n }\n\n return previousPage.completed;\n }\n\n /**\n *\n * @memberof WizardPage\n *\n */\n get title(): TemplateRef<any> {\n return this.pageTitle.pageTitleTemplateRef;\n }\n\n /**\n *\n * @memberof WizardPage\n *\n */\n get navTitle(): TemplateRef<any> {\n if (this.pageNavTitle) {\n return this.pageNavTitle.pageNavTitleTemplateRef;\n }\n return this.pageTitle.pageTitleTemplateRef;\n }\n\n /**\n *\n * @memberof WizardPage\n *\n */\n get headerActions(): TemplateRef<any> {\n if (!this._headerActions) {\n return undefined;\n }\n return this._headerActions.pageHeaderActionsTemplateRef;\n }\n\n /**\n *\n * @memberof WizardPage\n *\n */\n get hasHeaderActions(): boolean {\n return !!this._headerActions;\n }\n\n /**\n *\n * @memberof WizardPage\n *\n */\n get buttons(): TemplateRef<any> {\n if (!this._buttons) {\n return undefined;\n }\n return this._buttons.pageButtonsTemplateRef;\n }\n\n /**\n * A read-only getter that returns a boolean that says whether or\n * not the ClrWizardPage includes buttons. Used to determine if the\n * Wizard should override the default button set defined as\n * its direct children.\n *\n * @memberof WizardPage\n *\n */\n get hasButtons(): boolean {\n return !!this._buttons;\n }\n\n /**\n * A read-only getter that returns the id used by the step nav item associated with the page.\n *\n * ClrWizardPage needs this ID string for aria information.\n *\n * @memberof WizardPage\n *\n */\n get stepItemId(): string {\n return this.pageCollection.getStepItemIdForPage(this);\n }\n\n /**\n * Links the nav service and establishes the current page if one is not defined.\n *\n * @memberof WizardPage\n *\n */\n ngOnInit(): void {\n const navService = this.navService;\n if (!navService.currentPage && !navService.navServiceLoaded) {\n this.makeCurrent();\n this.navService.navServiceLoaded = true;\n }\n }\n\n /**\n * Uses the nav service to make the ClrWizardPage the current page in the\n * wizard. Bypasses all checks but still emits the ClrWizardPage.onLoad\n * (clrWizardPageOnLoad) output.\n *\n * In most cases, it is better to use the default navigation functions\n * in Wizard.\n *\n * @memberof WizardPage\n *\n */\n makeCurrent(): void {\n this.navService.currentPage = this;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Directive, Input } from '@angular/core';\n\nimport { HeadingLevel } from './heading-level';\n\n@Directive({\n selector: 'clr-wizard-title',\n})\nexport class ClrWizardTitle {\n @Input('clrHeadingLevel') headingLevel: HeadingLevel;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, Input } from '@angular/core';\n\nimport { ClrCommonStringsService } from '../utils';\nimport { PageCollectionService } from './providers/page-collection.service';\nimport { WizardNavigationService } from './providers/wizard-navigation.service';\nimport { ClrWizardPage } from './wizard-page';\n\n@Component({\n selector: '[clr-wizard-stepnav-item]',\n template: `\n <button\n type=\"button\"\n class=\"btn btn-link clr-wizard-stepnav-link\"\n (click)=\"click()\"\n [attr.disabled]=\"isDisabled ? '' : null\"\n >\n <span class=\"clr-wizard-stepnav-link-suffix\">\n <cds-icon\n shape=\"error-standard\"\n status=\"danger\"\n class=\"clr-wizard-stepnav-item-error-icon\"\n *ngIf=\"hasError\"\n ></cds-icon>\n <ng-content *ngIf=\"!hasError\"></ng-content>\n </span>\n <span class=\"clr-wizard-stepnav-link-title\">\n <ng-template [ngTemplateOutlet]=\"page.navTitle\"></ng-template>\n </span>\n <span *ngIf=\"hasError\" class=\"clr-sr-only\">{{ commonStrings.keys.wizardStepError }}</span>\n <span *ngIf=\"!hasError && isComplete\" class=\"clr-sr-only\">{{ commonStrings.keys.wizardStepSuccess }}</span>\n </button>\n `,\n host: {\n '[id]': 'id',\n '[attr.aria-current]': 'stepAriaCurrent',\n '[attr.aria-controls]': 'page.id',\n '[class.clr-nav-link]': 'true',\n '[class.nav-item]': 'true',\n '[class.active]': 'isCurrent',\n '[class.disabled]': 'isDisabled',\n '[class.no-click]': '!canNavigate',\n '[class.complete]': 'isComplete',\n '[class.error]': 'hasError',\n },\n})\nexport class ClrWizardStepnavItem {\n @Input('page') page: ClrWizardPage;\n\n constructor(\n public navService: WizardNavigationService,\n public pageCollection: PageCollectionService,\n public commonStrings: ClrCommonStringsService\n ) {}\n\n get id(): string {\n this.pageGuard();\n return this.pageCollection.getStepItemIdForPage(this.page);\n }\n\n get stepAriaCurrent(): string {\n return this.isCurrent && 'step';\n }\n\n get isDisabled(): boolean {\n this.pageGuard();\n return this.page.disabled || this.navService.wizardStopNavigation || this.navService.wizardDisableStepnav;\n }\n\n get isCurrent(): boolean {\n this.pageGuard();\n return this.page.current;\n }\n\n get isComplete(): boolean {\n this.pageGuard();\n return this.page.completed;\n }\n\n get hasError(): boolean {\n this.pageGuard();\n return this.page.hasError && this.isComplete;\n }\n\n get canNavigate(): boolean {\n this.pageGuard();\n return this.pageCollection.previousPageIsCompleted(this.page);\n }\n\n click(): void {\n this.pageGuard();\n\n // if we click on our own stepnav or a disabled stepnav, we don't want to do anything\n if (this.isDisabled || this.isCurrent) {\n return;\n }\n\n this.navService.goTo(this.page);\n }\n\n private pageGuard(): void {\n if (!this.page) {\n throw new Error('Wizard stepnav item is not associated with a wizard page.');\n }\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component } from '@angular/core';\n\nimport { PageCollectionService } from './providers/page-collection.service';\n\n@Component({\n selector: 'clr-wizard-stepnav',\n template: `\n <div class=\"clr-wizard-stepnav-list\">\n <div\n *ngFor=\"let page of pageService.pages; let i = index\"\n clr-wizard-stepnav-item\n [page]=\"page\"\n class=\"clr-wizard-stepnav-item\"\n >\n {{ i + 1 }}\n </div>\n </div>\n `,\n host: { class: 'clr-wizard-stepnav' },\n})\nexport class ClrWizardStepnav {\n constructor(public pageService: PageCollectionService) {}\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n Component,\n ContentChild,\n ContentChildren,\n DoCheck,\n ElementRef,\n EventEmitter,\n Inject,\n Input,\n IterableDiffers,\n OnDestroy,\n Output,\n PLATFORM_ID,\n QueryList,\n ViewChild,\n} from '@angular/core';\nimport { Subscription } from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { ClrCommonStringsService } from '../utils';\nimport { uniqueIdFactory } from '../utils/id-generator/id-generator.service';\nimport { ButtonHubService } from './providers/button-hub.service';\nimport { HeaderActionService } from './providers/header-actions.service';\nimport { PageCollectionService } from './providers/page-collection.service';\nimport { WizardNavigationService } from './providers/wizard-navigation.service';\nimport { ClrWizardHeaderAction } from './wizard-header-action';\nimport { ClrWizardPage } from './wizard-page';\nimport { ClrWizardTitle } from './wizard-title';\n\n@Component({\n selector: 'clr-wizard',\n providers: [WizardNavigationService, PageCollectionService, ButtonHubService, HeaderActionService],\n templateUrl: './wizard.html',\n host: {\n '[class.clr-wizard]': 'true',\n '[class.wizard-md]': \"size == 'md'\",\n '[class.wizard-lg]': \"size == 'lg'\",\n '[class.wizard-xl]': \"size == 'xl'\",\n '[class.lastPage]': 'navService.currentPageIsLast',\n },\n})\nexport class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {\n /**\n * Set the aria-label for the stepnav section of the wizard. Set using `[clrWizardStepnavAriaLabel]` input.\n */\n @Input('clrWizardStepnavAriaLabel') stepnavAriaLabel = this.commonStrings.keys.wizardStepnavAriaLabel;\n\n /**\n * Set the modal size of the wizard. Set using `[clrWizardSize]` input.\n */\n @Input('clrWizardSize') size = 'xl';\n\n /**\n * Tells the modal part of the wizard whether it should have a close \"X\"\n * in the top right corner. Set using `[clrWizardClosable]` input.\n */\n @Input('clrWizardClosable') closable = true;\n\n /**\n * Used to communicate to the underlying modal that animations are not\n * wanted. Primary use is for the display of static/inline wizards.\n * Set using `[clrWizardPreventModalAnimation]` input.\n */\n @Input('clrWizardPreventModalAnimation') _stopModalAnimations = false;\n\n /**\n * Emits when the wizard is opened or closed.\n * Listen via `(clrWizardOpenChange)` event.\n */\n @Output('clrWizardOpenChange') _openChanged = new EventEmitter<boolean>(false);\n\n /**\n * Emits when the wizard is canceled. Listen via `(clrWizardOnCancel)` event.\n * Can be combined with the `[clrWizardPreventDefaultCancel]` input to create\n * wizard-level custom cancel routines.\n */\n @Output('clrWizardOnCancel') onCancel = new EventEmitter<any>(false);\n\n /**\n * Emits when the wizard is completed. Listen via `(clrWizardOnFinish)` event.\n * Can be combined with the `[clrWizardPreventDefaultNext]` input to create\n * wizard-level custom completion routines.\n */\n @Output('clrWizardOnFinish') wizardFinished = new EventEmitter<any>(false);\n\n /**\n * Emits when the wizard is reset. Listen via `(clrWizardOnReset)` event.\n */\n @Output('clrWizardOnReset') onReset = new EventEmitter<any>(false);\n\n /**\n * Emits when the current page has changed. Listen via `(clrWizardCurrentPageChanged)` event.\n * output. Useful for non-blocking validation.\n */\n @Output('clrWizardCurrentPageChanged') currentPageChanged = new EventEmitter<any>(false);\n\n /**\n * Emits when the wizard moves to the next page. Listen via `(clrWizardOnNext)` event.\n * Can be combined with the `[clrWizardPreventDefaultNext]` input to create\n * wizard-level custom navigation routines, which are useful for validation.\n */\n @Output('clrWizardOnNext') onMoveNext = new EventEmitter<any>(false);\n\n /**\n * Emits when the wizard moves to the previous page. Can be useful for validation.\n * Listen via `(clrWizardOnPrevious)` event.\n */\n @Output('clrWizardOnPrevious') onMovePrevious = new EventEmitter<any>(false);\n\n @ViewChild('pageTitle') pageTitle: ElementRef;\n @ContentChildren(ClrWizardPage, { descendants: true }) pages: QueryList<ClrWizardPage>;\n @ContentChildren(ClrWizardHeaderAction) headerActions: QueryList<ClrWizardHeaderAction>;\n\n _open = false;\n wizardId = uniqueIdFactory();\n\n @ContentChild(ClrWizardTitle) protected wizardTitle: ClrWizardTitle;\n\n private _forceForward = false;\n private _stopNext = false;\n private _stopCancel = false;\n private _stopNavigation = false;\n private _disableStepnav = false;\n private differ: any; // for marking when the collection of wizard pages has been added to or deleted from\n private subscriptions: Subscription[] = [];\n\n constructor(\n @Inject(PLATFORM_ID) private platformId: any,\n private commonStrings: ClrCommonStringsService,\n public navService: WizardNavigationService,\n public pageCollection: PageCollectionService,\n public buttonService: ButtonHubService,\n public headerActionService: HeaderActionService,\n private elementRef: ElementRef<HTMLElement>,\n differs: IterableDiffers\n ) {\n this.subscriptions.push(\n this.listenForNextPageChanges(),\n this.listenForPreviousPageChanges(),\n this.listenForCancelChanges(),\n this.listenForFinishedChanges(),\n this.listenForPageChanges()\n );\n\n this.differ = differs.find([]).create(null);\n }\n\n /**\n * Resets page completed states when navigating backwards.\n * Set using `[clrWizardForceForwardNavigation]` input.\n */\n @Input('clrWizardForceForwardNavigation')\n get forceForward(): boolean {\n return this._forceForward;\n }\n set forceForward(value: boolean) {\n this._forceForward = !!value;\n this.navService.forceForwardNavigation = value;\n }\n\n /**\n * Toggles open/close of the wizard component.\n * Set using the `[clrWizardOpen]` input.\n */\n @Input('clrWizardOpen')\n set clrWizardOpen(open: boolean) {\n if (open) {\n this.buttonService.buttonsReady = true;\n }\n this._open = open;\n }\n\n /**\n * Prevents ClrWizard from moving to the next page or closing itself on finishing.\n * Set using the `[clrWizardPreventDefaultNext]` input. Note that using stopNext\n * will require you to create your own calls to .next() and .finish() in your\n * host component to make the ClrWizard work as expected.\n */\n @Input('clrWizardPreventDefaultNext')\n get stopNext(): boolean {\n return this._stopNext;\n }\n set stopNext(value: boolean) {\n this._stopNext = !!value;\n this.navService.wizardHasAltNext = value;\n }\n\n /**\n * Prevents ClrWizard from closing when the cancel button or close \"X\" is clicked.\n * Set using the `[clrWizardPreventDefaultCancel]` input.\n *\n * Note that using stopCancel will require you to create your own calls to `close()` in your host compone`nt\n * to make the ClrWizard work as expected. Useful for doing checks or prompts\n * before closing a ClrWizard.\n */\n @Input('clrWizardPreventDefaultCancel')\n get stopCancel(): boolean {\n return this._stopCancel;\n }\n set stopCancel(value: boolean) {\n this._stopCancel = !!value;\n this.navService.wizardHasAltCancel = value;\n }\n\n /**\n * Prevents ClrWizard from performing any form of navigation away from the current\n * page. Set using the `[clrWizardPreventNavigation]` input.\n * Note that stopNavigation is meant to freeze the wizard in place, typically\n * during a long validation or background action where you want the wizard to\n * display loading content but not allow the user to execute navigation in\n * the stepnav, close X, or the back, finish, or next buttons.\n */\n @Input('clrWizardPreventNavigation')\n get stopNavigation(): boolean {\n return this._stopNavigation;\n }\n set stopNavigation(value: boolean) {\n this._stopNavigation = !!value;\n this.navService.wizardStopNavigation = value;\n }\n\n /**\n * Prevents clicks on the links in the stepnav from working.\n * Set using `[clrWizardDisableStepnav]` input.\n * A more granular bypassing of navigation which can be useful when your\n * ClrWizard is in a state of completion and you don't want users to be\n * able to jump backwards and change things.\n */\n @Input('clrWizardDisableStepnav')\n get disableStepnav(): boolean {\n return this._disableStepnav;\n }\n set disableStepnav(value: boolean) {\n this._disableStepnav = !!value;\n this.navService.wizardDisableStepnav = value;\n }\n\n get currentPage(): ClrWizardPage {\n return this.navService.currentPage;\n }\n set currentPage(page: ClrWizardPage) {\n this.navService.goTo(page, true);\n }\n\n get isLast(): boolean {\n return this.navService.currentPageIsLast;\n }\n\n get isFirst(): boolean {\n return this.navService.currentPageIsFirst;\n }\n\n get isInline(): boolean {\n return this.elementRef.nativeElement.classList.contains('clr-wizard--inline');\n }\n\n get stopModalAnimations(): string {\n return this._stopModalAnimations ? 'true' : 'false';\n }\n\n ngAfterContentInit(): void {\n this.pageCollection.pages = this.pages;\n this.headerActionService.wizardHeaderActions = this.headerActions;\n this.initializeButtons();\n }\n\n ngDoCheck(): void {\n this.updateNavOnPageChanges();\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n }\n\n /**\n * Marks Wizard as finished. By default it does not execute event\n * emissions or checks before completing and closing. This method is commonly\n * used as part of an alternative navigation with `[clrWizardPreventDefaultNext]`.\n *\n * If `skipChecksAndEmits` is true, the wizard will complete and close\n * regardless of the state of its current page. This is useful for alternative\n * navigation where event emissions have already been done and firing them again\n * may cause an event loop.\n */\n finish(skipChecksAndEmits = true): void {\n if (skipChecksAndEmits) {\n this.forceFinish();\n } else {\n this.navService.finish();\n }\n }\n\n /**\n * Marks the wizard as finished but does run checks and emissions.\n * Good for a last step in an alternate workflow. Does the same thing as\n * calling `ClrWizard.finish(true)` or `ClrWizard.finish()` without a parameter.\n */\n forceFinish(): void {\n if (this.stopNavigation) {\n return;\n }\n\n this.close();\n }\n\n /**\n * Opens the wizard. If there is no current page defined, sets the first page in the wizard to be current.\n */\n open(): void {\n this._open = true;\n\n if (!this.currentPage) {\n this.navService.setFirstPageCurrent();\n }\n\n // Only render buttons when wizard is opened, to avoid chocolate errors\n this.buttonService.buttonsReady = true;\n\n this._openChanged.emit(true);\n }\n\n /**\n * Closes the wizard. Call this directly instead of `cancel()` to implement alternative cancel functionality.\n */\n close(): void {\n if (this.stopNavigation) {\n return;\n }\n\n this._open = false;\n this._openChanged.emit(false);\n }\n\n /**\n * Used to open and close the wizard. By default the wizard will\n * close if invoked with no parameter. If parameter is true wizard will open\n * else if false will close.\n */\n toggle(open: boolean): void {\n if (open) {\n this.open();\n } else {\n this.close();\n }\n }\n\n /**\n * Moves the wizard to the previous page.\n */\n previous(): void {\n this.navService.previous();\n }\n\n /**\n * By default, `next()` does not execute event emissions.\n * This method is commonly called as part of an alternative navigation\n * with `[clrWizardPreventDefaultNext]`. The wizard will move to the next page\n * regardless of the state of its current page. This is useful for alternative\n * navigation where event emissions have already been done and firing them again\n * may cause an event loop.\n *\n * If `skipChecksAndEmits` is false, the wizard will execute default checks\n * and emit events as normal. This is useful for custom buttons or programmatic\n * workflows that are not executing the wizards default checks and emissions.\n * It is another way to navigate without having to rewrite the wizards default\n * functionality from scratch.\n */\n next(skipChecksAndEmits = true): void {\n if (skipChecksAndEmits) {\n this.forceNext();\n } else {\n this.navService.next();\n }\n }\n\n /**\n * Moves the wizard to the next page without the checks and emissions.\n * Good for a last step in an alternate workflow.\n * Alias for `ClrWizard.next(true)` or `ClrWizard.next()`\n */\n forceNext(): void {\n this.navService.forceNext();\n }\n\n /**\n * Cancels and closes the wizard. Do not use this for an override of the cancel\n * the functionality with `[clrWizardPreventDefaultCancel]`, `[clrWizardPreventPageDefaultCancel]`,\n * or `[clrWizardPagePreventDefault]` because it will initiate the same checks\n * and event emissions that invoked your event handler. Use `ClrWizard.close()` instead.\n */\n cancel(): void {\n this.navService.cancel();\n }\n\n /**\n * Overrides behavior of the underlying modal to avoid collisions with\n * alternative cancel functionality. In most cases, use `ClrWizard.cancel()` instead.\n */\n modalCancel(): void {\n if (this.closable) {\n this.checkAndCancel();\n }\n }\n\n /**\n * Checks for alternative cancel flows defined at the current page or\n * wizard level. Performs a canceled if not. Emits events that initiate\n * the alternative cancel outputs `(clrWizardPageOnCancel)` and `(clrWizardOnCancel)`.\n */\n checkAndCancel(): void {\n const currentPage = this.currentPage;\n const currentPageHasOverrides = currentPage.stopCancel || currentPage.preventDefault;\n\n if (this.stopNavigation) {\n return;\n }\n\n currentPage.pageOnCancel.emit();\n if (!currentPageHasOverrides) {\n this.onCancel.emit();\n }\n\n if (!this.stopCancel && !currentPageHasOverrides) {\n this.close();\n }\n }\n\n /**\n * Navigates to a given page in the Wizard. Navigation will invoke the wizards default\n * checks and event emissions.\n *\n * The format of the expected ID parameter can be found in the return of the\n * ClrWizardPage.id getter, usually prefixed with `clr-wizard-page-` and then either a\n * numeric ID or the ID specified for the `ClrWizardPage` components `id` input.\n */\n goTo(pageId: string): void {\n if (!pageId) {\n return;\n }\n this.navService.goTo(pageId);\n }\n\n /**\n * Reset sets all WizardPages to incomplete and sets the first page in the `ClrWizard` to\n * be the current page, resetting the wizard navigation.\n * Use `(clrWizardOnReset)` event to reset the data or model of your wizard.\n */\n reset(): void {\n this.pageCollection.reset();\n this.onReset.next();\n }\n\n private listenForNextPageChanges(): Subscription {\n return this.navService.movedToNextPage.pipe(filter(() => isPlatformBrowser(this.platformId))).subscribe(() => {\n this.onMoveNext.emit();\n this.pageTitle?.nativeElement.focus();\n });\n }\n\n private listenForPreviousPageChanges(): Subscription {\n return this.navService.movedToPreviousPage.pipe(filter(() => isPlatformBrowser(this.platformId))).subscribe(() => {\n this.onMovePrevious.emit();\n this.pageTitle?.nativeElement.focus();\n });\n }\n\n private listenForCancelChanges(): Subscription {\n return this.navService.notifyWizardCancel.subscribe(() => this.checkAndCancel());\n }\n\n private listenForFinishedChanges(): Subscription {\n return this.navService.wizardFinished.subscribe(() => this.emitWizardFinished());\n }\n\n private listenForPageChanges(): Subscription {\n return this.navService.currentPageChanged.subscribe(() => {\n // Added to address VPAT-749:\n // When clicking on a wizard tab, focus should move to that\n // tabs content to make the wizard more accessible.\n this.pageTitle?.nativeElement.focus();\n this.currentPageChanged.emit();\n });\n }\n\n private updateNavOnPageChanges(): void {\n const changes = this.differ.diff(this.pages);\n if (changes) {\n changes.forEachAddedItem(() => this.navService.updateNavigation());\n changes.forEachRemovedItem(() => this.navService.updateNavigation());\n }\n }\n\n private initializeButtons(): void {\n // Only trigger buttons ready if default is open (inlined)\n if (this._open) {\n this.buttonService.buttonsReady = true;\n }\n }\n\n private emitWizardFinished(): void {\n if (!this.stopNext) {\n this.forceFinish();\n }\n this.wizardFinished.emit();\n }\n}\n","<!--\n ~ Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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<clr-modal\n [clrModalOpen]=\"_open\"\n [clrModalSize]=\"size\"\n [clrModalClosable]=\"closable\"\n [clrModalStaticBackdrop]=\"true\"\n [clrModalSkipAnimation]=\"stopModalAnimations\"\n [clrModalOverrideScrollService]=\"isInline\"\n [clrModalPreventClose]=\"true\"\n (clrModalAlternateClose)=\"modalCancel()\"\n [clrModalLabelledById]=\"wizardId\"\n>\n <div class=\"modal-nav clr-wizard-stepnav-wrapper\" role=\"region\" [attr.aria-label]=\"stepnavAriaLabel\">\n <div class=\"clr-wizard-title\" id=\"{{wizardId}}\" role=\"heading\" [attr.aria-level]=\"wizardTitle.headingLevel || 1\">\n <ng-content select=\"clr-wizard-title\"></ng-content>\n </div>\n <clr-wizard-stepnav></clr-wizard-stepnav>\n </div>\n\n <div class=\"modal-title\" role=\"heading\" [attr.aria-level]=\"navService.currentPage.pageTitle.headingLevel || 2\">\n <span tabindex=\"-1\" #pageTitle class=\"modal-title-text\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPageTitle\"></ng-template>\n </span>\n\n <div class=\"modal-header-actions-wrapper\" *ngIf=\"headerActionService.displayHeaderActionsWrapper\">\n <div *ngIf=\"headerActionService.showWizardHeaderActions\">\n <ng-content select=\"clr-wizard-header-action\"></ng-content>\n </div>\n <div *ngIf=\"headerActionService.currentPageHasHeaderActions\">\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.headerActions\"></ng-template>\n </div>\n </div>\n </div>\n\n <div class=\"modal-body\">\n <main clr-wizard-pages-wrapper class=\"clr-wizard-content\">\n <ng-content></ng-content>\n </main>\n </div>\n <div class=\"modal-footer clr-wizard-footer\">\n <div class=\"clr-wizard-footer-buttons\">\n <div\n *ngIf=\"navService.currentPage && !navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-content select=\"clr-wizard-button\"></ng-content>\n </div>\n <div\n *ngIf=\"navService.currentPage && navService.currentPage.hasButtons\"\n class=\"clr-wizard-footer-buttons-wrapper\"\n >\n <ng-template [ngTemplateOutlet]=\"navService.currentPage.buttons\"></ng-template>\n </div>\n </div>\n </div>\n</clr-modal>\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { ButtonHubService } from './providers/button-hub.service';\nimport { WizardNavigationService } from './providers/wizard-navigation.service';\n\nexport const DEFAULT_BUTTON_TYPES: any = {\n cancel: 'cancel',\n previous: 'previous',\n next: 'next',\n finish: 'finish',\n danger: 'danger',\n};\n\nexport const CUSTOM_BUTTON_TYPES: any = {\n cancel: 'custom-cancel',\n previous: 'custom-previous',\n next: 'custom-next',\n finish: 'custom-finish',\n danger: 'custom-danger',\n};\n\n@Component({\n selector: 'clr-wizard-button',\n template: `\n <button\n type=\"button\"\n class=\"btn clr-wizard-btn\"\n [class.btn-link]=\"isCancel\"\n [class.clr-wizard-btn--tertiary]=\"isCancel\"\n [class.btn-outline]=\"isPrevious\"\n [class.clr-wizard-btn--secondary]=\"isPrevious\"\n [class.btn-primary]=\"isPrimaryAction\"\n [class.clr-wizard-btn--primary]=\"isPrimaryAction\"\n [class.btn-success]=\"isFinish\"\n [class.btn-danger]=\"isDanger\"\n [class.disabled]=\"isDisabled\"\n [attr.disabled]=\"_disabledAttribute\"\n (click)=\"click()\"\n >\n <ng-content></ng-content>\n </button>\n `,\n host: { class: 'clr-wizard-btn-wrapper', '[attr.aria-hidden]': 'isHidden' },\n})\nexport class ClrWizardButton {\n @Input('type') type = '';\n\n @Input('clrWizardButtonDisabled') disabled = false;\n\n @Input('clrWizardButtonHidden') hidden = false;\n\n // EventEmitter which is emitted when a button is clicked.\n @Output('clrWizardButtonClicked') wasClicked = new EventEmitter<string>(false);\n\n constructor(public navService: WizardNavigationService, public buttonService: ButtonHubService) {}\n\n get isCancel(): boolean {\n return this.checkDefaultAndCustomType(this.type, 'cancel');\n }\n\n get isNext(): boolean {\n return this.checkDefaultAndCustomType(this.type, 'next');\n }\n\n get isPrevious(): boolean {\n return this.checkDefaultAndCustomType(this.type, 'previous');\n }\n\n get isFinish(): boolean {\n return this.checkDefaultAndCustomType(this.type, 'finish');\n }\n\n get isDanger(): boolean {\n return this.checkDefaultAndCustomType(this.type, 'danger');\n }\n\n get isPrimaryAction(): boolean {\n return this.isNext || this.isDanger || this.isFinish;\n }\n\n get _disabledAttribute(): string | null {\n if (this.isDisabled) {\n return '';\n }\n return null;\n }\n\n get isDisabled(): boolean {\n // dealing with negatives here. cognitively easier to think of it like this...\n const disabled = true;\n const nav = this.navService;\n const page = this.navService.currentPage;\n\n // Ensure we don't change the response until buttons are ready to avoid chocolate\n if (!this.buttonService.buttonsReady) {\n return !disabled;\n }\n\n if (this.disabled || nav.wizardStopNavigation || !page) {\n return true;\n }\n\n if (this.isCancel) {\n return !disabled;\n }\n\n if (this.isPrevious && (nav.currentPageIsFirst || page.previousStepDisabled)) {\n return disabled;\n }\n\n if (this.isDanger && !page.readyToComplete) {\n return disabled;\n }\n\n if (this.isNext && (nav.currentPageIsLast || !page.readyToComplete)) {\n return disabled;\n }\n\n if (this.isFinish && (!nav.currentPageIsLast || !page.readyToComplete)) {\n return disabled;\n }\n\n return !disabled;\n }\n\n get isHidden(): boolean {\n // dealing with negatives here. cognitively easier to think of it like this...\n const hidden = true;\n const nav = this.navService;\n\n // Ensure we don't change the response until buttons are ready to avoid chocolate\n if (!this.buttonService.buttonsReady) {\n return !hidden;\n }\n\n if (this.hidden) {\n return true;\n }\n\n if (this.isCancel) {\n return !hidden;\n }\n\n if (this.isPrevious && nav.currentPageIsFirst) {\n return hidden;\n }\n\n if (this.isNext && nav.currentPageIsLast) {\n return hidden;\n }\n\n if (this.isFinish && !nav.currentPageIsLast) {\n return hidden;\n }\n\n return !hidden;\n }\n\n click(): void {\n if (this.isDisabled) {\n return;\n }\n\n this.wasClicked.emit(this.type);\n this.buttonService.buttonClicked(this.type);\n }\n\n private checkDefaultAndCustomType(valueToCheck = '', typeToLookUp: string) {\n if (DEFAULT_BUTTON_TYPES[typeToLookUp] === valueToCheck) {\n return true;\n }\n if (CUSTOM_BUTTON_TYPES[typeToLookUp] === valueToCheck) {\n return true;\n }\n return false;\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ClarityIcons, errorStandardIcon } from '@cds/core/icon';\n\nimport { ClrAlertModule } from '../emphasis/alert/alert.module';\nimport { ClrModalModule } from '../modal/modal.module';\nimport { ClrWizard } from './wizard';\nimport { ClrWizardButton } from './wizard-button';\nimport { ClrWizardHeaderAction } from './wizard-header-action';\nimport { ClrWizardPage } from './wizard-page';\nimport { ClrWizardPageButtons } from './wizard-page-buttons';\nimport { ClrWizardPageHeaderActions } from './wizard-page-header-actions';\nimport { ClrWizardPageNavTitle } from './wizard-page-navtitle';\nimport { ClrWizardPageTitle } from './wizard-page-title';\nimport { ClrWizardStepnav } from './wizard-stepnav';\nimport { ClrWizardStepnavItem } from './wizard-stepnav-item';\nimport { ClrWizardTitle } from './wizard-title';\n\nexport const CLR_WIZARD_DIRECTIVES: any[] = [\n ClrWizard,\n ClrWizardPage,\n ClrWizardStepnav,\n ClrWizardStepnavItem,\n ClrWizardButton,\n ClrWizardHeaderAction,\n ClrWizardTitle,\n ClrWizardPageTitle,\n ClrWizardPageNavTitle,\n ClrWizardPageButtons,\n ClrWizardPageHeaderActions,\n];\n\n@NgModule({\n imports: [CommonModule, ClrModalModule, ClrAlertModule],\n declarations: [CLR_WIZARD_DIRECTIVES],\n exports: [CLR_WIZARD_DIRECTIVES],\n})\nexport class ClrWizardModule {\n constructor() {\n ClarityIcons.addIcons(errorStandardIcon);\n }\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { NgModule } from '@angular/core';\n\nimport { ClrStepperModule } from './accordion/stepper/stepper.module';\nimport { ClrButtonModule } from './button/button.module';\nimport { ClrDataModule } from './data/data.module';\nimport { ClrEmphasisModule } from './emphasis/emphasis.module';\nimport { ClrFormsModule } from './forms/forms.module';\nimport { ClrIconModule } from './icon/icon.module';\nimport { ClrLayoutModule } from './layout/layout.module';\nimport { ClrModalModule } from './modal/modal.module';\nimport { ClrPopoverModule } from './popover/popover.module';\nimport { ClrProgressBarModule } from './progress/progress-bars/progress-bar.module';\nimport { ClrSpinnerModule } from './progress/spinner/spinner.module';\nimport { ClrTimelineModule } from './timeline/timeline.module';\nimport { ClrConditionalModule } from './utils/conditional/conditional.module';\nimport { ClrFocusOnViewInitModule } from './utils/focus/focus-on-view-init/focus-on-view-init.module';\nimport { ClrLoadingModule } from './utils/loading/loading.module';\nimport { ClrPopoverModuleNext } from './utils/popover/popover.module';\nimport { ClrWizardModule } from './wizard/wizard.module';\n\n// Register the icon library\nimport '@cds/core/icon/register';\n\n@NgModule({\n exports: [\n ClrEmphasisModule,\n ClrDataModule,\n ClrIconModule,\n ClrModalModule,\n ClrLoadingModule,\n ClrConditionalModule,\n ClrFocusOnViewInitModule,\n ClrButtonModule,\n ClrFormsModule,\n ClrLayoutModule,\n ClrPopoverModule,\n ClrWizardModule,\n ClrStepperModule,\n ClrSpinnerModule,\n ClrProgressBarModule,\n ClrPopoverModuleNext,\n ClrTimelineModule,\n ],\n})\nexport class ClarityModule {}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './button';\nexport * from './button-group';\nexport * from './button-group.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './loading-button';\nexport * from './loading-button.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './button.module';\nexport * from './button-group/index';\nexport * from './button-loading/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { ClrDatagridComparatorInterface } from './comparator.interface';\n\nexport interface ClrDatagridStateInterface<T = any> {\n page?: { from?: number; to?: number; size?: number; current?: number };\n sort?: { by: string | ClrDatagridComparatorInterface<T>; reverse: boolean };\n filters?: any[];\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nimport { Observable } from 'rxjs';\n\nexport interface ClrDatagridFilterInterface<T, S = any> {\n readonly state?: S;\n\n changes: Observable<any>;\n\n isActive(): boolean;\n\n accepts(item: T): boolean;\n\n equals?(other: ClrDatagridFilterInterface<T, any>): boolean;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport interface ClrDatagridStringFilterInterface<T> {\n accepts(item: T, search: string): boolean;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport interface ClrDatagridNumericFilterInterface<T> {\n accepts(item: T, low: number, high: number): boolean;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport interface ClrDatagridComparatorInterface<T> {\n compare(a: T, b: T): number;\n}\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './datagrid';\nexport * from './datagrid-action-bar';\nexport * from './datagrid-action-overflow';\nexport * from './datagrid-column';\nexport * from './datagrid-column-toggle';\nexport * from './datagrid-column-toggle-button';\nexport * from './datagrid-column-separator';\nexport * from './datagrid-detail';\nexport * from './datagrid-detail-body';\nexport * from './datagrid-detail-header';\nexport * from './datagrid-hideable-column';\nexport * from './datagrid-filter';\nexport * from './datagrid-if-detail';\nexport * from './datagrid-items';\nexport * from './datagrid-items-trackby';\nexport * from './datagrid-row';\nexport * from './datagrid-row-detail';\nexport * from './datagrid-cell';\nexport * from './datagrid-footer';\nexport * from './datagrid-page-size';\nexport * from './datagrid-pagination';\nexport * from './datagrid-placeholder';\n\nexport * from './interfaces/state.interface';\nexport * from './enums/sort-order.enum';\nexport * from './interfaces/filter.interface';\nexport * from './interfaces/string-filter.interface';\nexport * from './interfaces/numeric-filter.interface';\nexport * from './interfaces/comparator.interface';\n\nexport * from './built-in/filters/datagrid-string-filter';\nexport * from './built-in/filters/datagrid-numeric-filter';\nexport * from './built-in/filters/datagrid-property-string-filter';\nexport * from './built-in/filters/datagrid-property-numeric-filter';\nexport * from './built-in/comparators/datagrid-property-comparator';\n\nexport * from './datagrid.module';\n\nexport { ClrDatagridItemsTrackByFunction } from './providers/items';\n\nexport { ClrDatagridSelectionCellDirective as ÇlrDatagridSelectionCellDirective } from './datagrid-selection-cell.directive';\nexport { DatagridDetailRegisterer as ÇlrDatagridDetailRegisterer } from './datagrid-detail-registerer';\nexport { WrappedCell as ÇlrWrappedCell } from './wrapped-cell';\nexport { WrappedColumn as ÇlrWrappedColumn } from './wrapped-column';\nexport { WrappedRow as ÇlrWrappedRow } from './wrapped-row';\nexport { DatagridMainRenderer as ÇlrDatagridMainRenderer } from './render/main-renderer';\nexport { DatagridHeaderRenderer as ÇlrDatagridHeaderRenderer } from './render/header-renderer';\nexport { DatagridCellRenderer as ÇlrDatagridCellRenderer } from './render/cell-renderer';\nexport { DatagridRowRenderer as ÇlrDatagridRowRenderer } from './render/row-renderer';\nexport { ExpandableOompaLoompa as ÇlrExpandableOompaLoompa } from './chocolate/expandable-oompa-loompa';\nexport { ActionableOompaLoompa as ÇlrActionableOompaLoompa } from './chocolate/actionable-oompa-loompa';\nexport { DatagridWillyWonka as ÇlrDatagridWillyWonka } from './chocolate/datagrid-willy-wonka';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './models/selected-state.enum';\nexport * from './tree';\nexport * from './tree-node';\nexport * from './recursive-for-of';\nexport * from './tree-view.module';\nexport * from './tree-node-link';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './stack-view';\nexport * from './stack-header';\nexport * from './stack-block';\nexport * from './stack-view.module';\nexport * from './stack-view-custom-tags';\nexport * from './stack-content-input';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './data.module';\nexport * from './datagrid/index';\nexport * from './tree-view/index';\nexport * from './stack-view/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './alert';\nexport * from './alert-item';\nexport * from './alert-text';\nexport * from './alerts';\nexport * from './alerts-pager';\nexport * from './alert.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './emphasis.module';\nexport * from './alert/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './if-control-state/if-error';\nexport * from './if-control-state/if-success';\nexport { ClrFormLayout } from './providers/layout.service';\nexport * from './error';\nexport * from './success';\nexport * from './form';\nexport * from './helper';\nexport * from './label';\nexport * from './layout';\nexport * from './abstract-container';\nexport * from './control';\nexport * from './control-container';\nexport * from './wrapped-control';\nexport * from './common.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './checkbox';\nexport * from './checkbox-container';\nexport * from './checkbox-wrapper';\nexport * from './checkbox.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './combobox.module';\nexport * from './combobox-container';\nexport * from './combobox';\nexport * from './options';\nexport * from './option';\nexport * from './option-items.directive';\nexport * from './option-selected.directive';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './datalist';\nexport * from './datalist-input';\nexport * from './datalist-container';\nexport * from './datalist.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './date-container';\nexport * from './date-input';\nexport * from './date-input.validator';\nexport * from './datepicker-view-manager';\nexport * from './daypicker';\nexport * from './monthpicker';\nexport * from './yearpicker';\nexport * from './calendar';\nexport * from './day';\n\nexport * from './datepicker.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './input';\nexport * from './input-container';\nexport * from './input.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './password';\nexport * from './password-container';\nexport * from './password.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './radio';\nexport * from './radio-container';\nexport * from './radio-wrapper';\nexport * from './radio.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './select';\nexport * from './select-container';\nexport * from './select.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './textarea';\nexport * from './textarea-container';\nexport * from './textarea.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './range';\nexport * from './range-container';\nexport * from './range.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './common/index';\nexport * from './checkbox/index';\nexport * from './combobox/index';\nexport * from './datalist/index';\nexport * from './datepicker/index';\nexport * from './input/index';\nexport * from './password/index';\nexport * from './radio/index';\nexport * from './select/index';\nexport * from './textarea/index';\nexport * from './range/index';\nexport * from './forms.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './icon';\nexport * from './icon.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './main-container';\nexport * from './main-container.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './main-container-willy-wonka';\nexport * from './nav-detection-oompa-loompa';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './chocolate/index';\nexport * from './header';\nexport * from './nav-level';\nexport * from './aria-current-link';\nexport * from './navigation.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './tabs';\nexport * from './tab';\nexport * from './tab-content';\nexport * from './tab-overflow-content';\nexport * from './tab-link.directive';\nexport * from './tabs.module';\n\nexport { TabsWillyWonka as ÇlrTabsWillyWonka } from './chocolate/tabs-willy-wonka';\nexport { ActiveOompaLoompa as ÇlrActiveOompaLoompa } from './chocolate/active-oompa-loompa';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './vertical-nav-group-children';\nexport * from './vertical-nav-group';\nexport * from './vertical-nav';\nexport * from './vertical-nav-link';\nexport * from './vertical-nav-icon';\nexport * from './vertical-nav.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './layout.module';\nexport * from './main-container/index';\nexport * from './nav/index';\nexport * from './tabs/index';\nexport * from './vertical-nav/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './modal';\nexport * from './modal.module';\nexport * from './modal-body';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport const CLR_MENU_POSITIONS: string[] = [\n 'bottom-left',\n 'bottom-right',\n 'top-left',\n 'top-right',\n 'left-bottom',\n 'left-top',\n 'right-bottom',\n 'right-top',\n];\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './dropdown';\nexport * from './dropdown-menu';\nexport * from './dropdown-trigger';\nexport * from './dropdown-item';\nexport * from './menu-positions';\nexport * from './dropdown.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './signpost';\nexport * from './signpost-content';\nexport * from './signpost-trigger';\nexport * from './signpost.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './tooltip';\nexport * from './tooltip-trigger';\nexport * from './tooltip-content';\nexport * from './tooltip.module';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './dropdown/index';\nexport * from './popover.module';\nexport * from './signpost/index';\nexport * from './tooltip/index';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './wizard';\nexport * from './wizard-page';\nexport * from './wizard-stepnav';\nexport * from './wizard-stepnav-item';\nexport * from './wizard-button';\nexport * from './wizard-header-action';\nexport * from './wizard-title';\nexport * from './wizard-page-title';\nexport * from './wizard-page-navtitle';\nexport * from './wizard-page-buttons';\nexport * from './wizard-page-header-actions';\nexport * from './wizard.module';\n\nexport * from './heading-level';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './accordion';\nexport * from './accordion-panel';\nexport * from './accordion-title';\nexport * from './accordion-content';\nexport * from './accordion-description';\nexport * from './accordion.module';\n\nexport { AccordionWillyWonka as ÇlrAccordionWillyWonka } from './chocolate/accordion-willy-wonka';\nexport { AccordionOompaLoompa as ÇlrAccordionOompaLoompa } from './chocolate/accordion-oompa-loompa';\nexport { StepperWillyWonka as ÇlrStepperWillyWonka } from './stepper/chocolate/stepper-willy-wonka';\nexport { StepperOompaLoompa as ÇlrStepperOompaLoompa } from './stepper/chocolate/stepper-oompa-loompa';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './stepper-panel';\nexport * from './stepper';\nexport * from './stepper.module';\nexport * from './step-button';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './spinner.module';\nexport * from './spinner';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './progress-bar.module';\nexport * from './progress-bar';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './timeline.module';\n\nexport * from './timeline';\nexport * from './timeline-step';\nexport * from './timeline-step-header';\nexport * from './timeline-step-description';\nexport * from './timeline-step-title';\n\nexport * from './enums/timeline-step-state.enum';\nexport * from './enums/timeline-layout.enum';\n","/*\n * Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.\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\nexport * from './clr-angular.module';\n\nexport * from './button/index';\nexport * from './data/index';\nexport * from './emphasis/index';\nexport * from './forms/index';\nexport * from './icon/index';\nexport * from './layout/index';\nexport * from './modal/index';\nexport * from './popover/index';\nexport * from './utils/index';\nexport * from './wizard/index';\nexport * from './accordion/index';\nexport * from './accordion/stepper/index';\nexport * from './progress/spinner/index';\nexport * from './progress/progress-bars/index';\nexport * from './timeline/index';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.LoadingListener","i1.ClrCommonStringsService","i2.AccordionService","i3.IfExpandService","i4","i5.CdsIconCustomTag","i1.AccordionService","i1.WillyWonka","i1.AccordionWillyWonka","i2.IfExpandService","declarations","i2","i3.StepperService","i4.IfExpandService","i1.ClrStepperPanel","i2.StepperService","i1.StepperWillyWonka","i1.ClrPopoverEventsService","i2.ClrPopoverToggleService","i1.ClrPopoverPositionService","i2.ClrPopoverEventsService","i3.ClrPopoverToggleService","i1.ClrPopoverToggleService","i1.ButtonInGroupService","FocusService","i1.ClrStopEscapePropagationDirective","i1.DomAdapter","tokenFactory","i1.IfExpandService","i1.FocusService","i3.ClrCommonStringsService","i4.ClrDestroyService","i5.ButtonGroupFocusHandler","i7","i8.CdsIconCustomTag","i9.ClrPopoverAnchor","i10.ClrPopoverOpenCloseButton","i11.ClrPopoverContent","i1","counter","i1.ControlIdService","i2.ContainerIdService","i1.NgControlService","i2.LayoutService","i3.NgControlService","i1.LayoutService","i1.IfControlStateService","i3.ControlClassService","i4.NgControlService","i2.CdsIconCustomTag","i3.ClrLabel","i2.MarkControlService","i2.NgControlService","i2.ClrLabel","i2.ControlClassService","i4.IfControlStateService","i6.CdsIconCustomTag","i7.ClrLabel","i5.ComboboxContainerService","i6","i7.CdsIconCustomTag","i8.ClrLabel","OptionProxy","i2.ComboboxFocusHandler","i3.OptionSelectionService","i1.OptionSelectionService","i2.ClrCommonStringsService","i3.ComboboxFocusHandler","i4.ClrPopoverToggleService","i6.ClrSpinner","i8.ComboboxFocusHandler","i9.ClrPopoverHostDirective","i10","i11.CdsIconCustomTag","i12.ClrRovingTabindex","i13.ClrKeyFocusItem","i14.ClrPopoverAnchor","i15.ClrPopoverOpenCloseButton","i16.ClrPopoverContent","i2.ClrPopoverPositionService","i1.DatalistIdService","i1.ControlClassService","i4.FocusService","i5.IfControlStateService","i3.DatalistIdService","i1.LocaleHelperService","i1.DateNavigationService","i3.DateFormControlService","i4.ClrCommonStringsService","i2.DateNavigationService","i3.DatepickerFocusService","i4.DateIOService","i6.ClrDay","i1.ViewManagerService","i2.LocaleHelperService","i3.DateNavigationService","i4.DatepickerFocusService","i2.ViewManagerService","i3.LocaleHelperService","i6.ClrCalendar","i3","i4.ClrMonthpicker","i5.ClrYearpicker","i6.ClrDaypicker","i3.DatepickerEnabledService","i4.DateFormControlService","i5.DateIOService","i6.ClrCommonStringsService","i7.FocusService","i8.ViewManagerService","i9.ControlClassService","i10.LayoutService","i11.NgControlService","i12.IfControlStateService","i13.ClrPopoverHostDirective","i14","i15.CdkTrapFocusModule_CdkTrapFocus","i16.ClrPopoverAnchor","i17.ClrPopoverOpenCloseButton","i18.ClrPopoverContent","i19.CdsIconCustomTag","i20.ClrLabel","i21.ClrDatepickerViewManager","i8.DatepickerFocusService","i1.DateIOService","i9.ClrLabel","i6.ClrLabel","i4.ControlIdService","i1.ClrExpandableAnimation","i1.OutsideClick","i1.StateDebouncer","i1.Page","i2.StateDebouncer","i1.FiltersProvider","i4.CdkTrapFocusModule_CdkTrapFocus","i6.ClrPopoverAnchor","i7.ClrPopoverCloseButton","i8.ClrPopoverOpenCloseButton","i9.ClrPopoverContent","i2.DomAdapter","i5","i6.ClrDatagridFilter","i1.DatagridWillyWonka","i2.RowActionService","i1.ModalStackService","i1.DetailService","i2.ExpandableRowsCount","i2.DatagridRenderOrganizer","i4.CdkDragModule_CdkDrag","i1.Sort","i2.FiltersProvider","i3.DetailService","i4.ClrPopoverHostDirective","i7.ClrDatagridColumnSeparator","i8.DatagridNumericFilter","i9.DatagridStringFilter","i2.Sort","i3.Page","i1.Items","i3.SignpostIdService","i4.SignpostFocusManager","i2.ClrPopoverHostDirective","i4.CdsIconCustomTag","i5.ClrSignpostTrigger","nbRow","i1.DatagridRenderOrganizer","i1.Selection","i9","i10.CdsIconCustomTag","i11.ClrLabel","i12.ClrCheckbox","i13.ClrCheckboxWrapper","i14.ClrRadio","i15.ClrRadioWrapper","i16","i17.ClrExpandableAnimation","i18.ClrSpinner","i19.ClrDatagridSelectionCellDirective","i4.StateDebouncer","i9.Page","i10.ClrCommonStringsService","i11.ColumnsService","i12.KeyNavigationGridController","i13","i14.ClrLabel","i15","i16.ClrSpinner","i17.ClrDatagridPlaceholder","i18.ClrDatagridSelectionCellDirective","i5.CdkTrapFocusModule_CdkTrapFocus","i7.ClrPopoverAnchor","i10.ClrKeyFocus","i2.ColumnsService","i6.CdkTrapFocusModule_CdkTrapFocus","i9.ClrCheckbox","i10.ClrCheckboxWrapper","i11","i12.ClrPopoverAnchor","i13.ClrPopoverCloseButton","i14.ClrPopoverOpenCloseButton","i15.ClrPopoverContent","i16.ClrDatagridItemsTrackBy","i17.ClrDatagridColumnToggleButton","i3.CdsIconCustomTag","i1.ExpandableRowsCount","i2.DetailService","i3.ColumnsService","i7.ClrCheckbox","i8.ClrCheckboxWrapper","i9.ClrDatagridColumnToggle","i3.DatagridIfExpandService","i4.ExpandableRowsCount","i5.ClrCommonStringsService","i1.ColumnsService","i2.Items","i4.DomAdapter","i5.DetailService","i6.TableSizeService","i7.ColumnsService","i4.ClrExpandableAnimation","i1.ClrStackView","i1.TreeFeaturesService","i4.TreeFocusManagerService","i7.RecursiveChildren","i2.TreeFocusManagerService","i4.RecursiveChildren","i2.DropdownFocusHandler","i3.RootDropdownService","i1.ClrDropdown","i2.RootDropdownService","i3.FocusableItem","i1.DropdownFocusHandler","i3.DropdownFocusHandler","i1.AlertIconAndTypesService","i2.MultiAlertService","i1.MultiAlertService","i3.ClrAlertsPager","i1.ResponsiveNavigationService","i1.MainContainerWillyWonka","i2.ResponsiveNavigationService","i1.ClrStandaloneCdkTrapFocus","i3.ClrStandaloneCdkTrapFocus","i1.TemplateRefContainer","i2.IfActiveService","i2.TabsService","i1.IfActiveService","i5.ClrPopoverHostDirective","i8.ClrKeyFocus","i9.ClrTabOverflowContent","i1.VerticalNavService","i2.VerticalNavIconService","i3.VerticalNavGroupRegistrationService","i2.VerticalNavGroupRegistrationService","i3.VerticalNavGroupService","i4.VerticalNavService","i1.VerticalNavIconService","i1.ScrollingService","i3.ModalStackService","POSITIONS","i2.SignpostIdService","i3.SignpostFocusManager","i1.TooltipIdService","i2.TooltipMouseService","i2.TooltipIdService","i3.TooltipMouseService","i4.ClrSpinner","i1.PageCollectionService","i2.ButtonHubService","i1.WizardNavigationService","i2.PageCollectionService","i3.ButtonHubService","i3.ClrWizardStepnavItem","i2.WizardNavigationService","i3.PageCollectionService","i4.ButtonHubService","i5.HeaderActionService","i7.ClrModal","i8.ClrModalBody","i9.ClrWizardStepnav"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;AAIG;MAOU,gBAAgB,CAAA;;6GAAhB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