@clr/angular 13.0.2 → 13.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -12
- package/clarity.api.md +5503 -0
- package/data/datagrid/datagrid-column-toggle.d.ts +7 -3
- package/data/datagrid/datagrid-footer.d.ts +3 -1
- package/data/datagrid/datagrid-row.d.ts +4 -1
- package/data/stack-view/stack-block.d.ts +12 -1
- package/data/stack-view/stack-view-custom-tags.d.ts +13 -1
- package/data/stack-view/stack-view.module.d.ts +1 -1
- package/data/tree-view/tree-node.d.ts +3 -0
- package/esm2020/accordion/accordion-content.mjs +5 -5
- package/esm2020/accordion/accordion-description.mjs +5 -5
- package/esm2020/accordion/accordion-panel.mjs +5 -5
- package/esm2020/accordion/accordion-title.mjs +5 -5
- package/esm2020/accordion/accordion.mjs +5 -5
- package/esm2020/accordion/accordion.module.mjs +6 -6
- package/esm2020/accordion/chocolate/accordion-oompa-loompa.mjs +5 -5
- package/esm2020/accordion/chocolate/accordion-willy-wonka.mjs +5 -5
- package/esm2020/accordion/enums/accordion-status.enum.mjs +2 -2
- package/esm2020/accordion/enums/accordion-strategy.enum.mjs +2 -2
- package/esm2020/accordion/index.mjs +2 -2
- package/esm2020/accordion/models/accordion.model.mjs +2 -2
- package/esm2020/accordion/providers/accordion.service.mjs +5 -5
- package/esm2020/accordion/stepper/chocolate/stepper-oompa-loompa.mjs +5 -5
- package/esm2020/accordion/stepper/chocolate/stepper-willy-wonka.mjs +5 -5
- package/esm2020/accordion/stepper/index.mjs +2 -2
- package/esm2020/accordion/stepper/models/stepper.model.mjs +2 -2
- package/esm2020/accordion/stepper/providers/stepper.service.mjs +5 -5
- package/esm2020/accordion/stepper/step-button.mjs +5 -5
- package/esm2020/accordion/stepper/stepper-panel.mjs +5 -5
- package/esm2020/accordion/stepper/stepper.mjs +5 -5
- package/esm2020/accordion/stepper/stepper.module.mjs +6 -6
- package/esm2020/accordion/utils/animation.mjs +2 -2
- package/esm2020/button/button-group/button-group.mjs +5 -5
- package/esm2020/button/button-group/button-group.module.mjs +6 -6
- package/esm2020/button/button-group/button.mjs +5 -5
- package/esm2020/button/button-group/index.mjs +2 -2
- package/esm2020/button/button-loading/index.mjs +2 -2
- package/esm2020/button/button-loading/loading-button.mjs +3 -3
- package/esm2020/button/button-loading/loading-button.module.mjs +6 -6
- package/esm2020/button/button.module.mjs +6 -6
- package/esm2020/button/index.mjs +2 -2
- package/esm2020/button/providers/button-in-group.service.mjs +5 -5
- package/esm2020/clr-angular.module.mjs +6 -6
- package/esm2020/data/data.module.mjs +6 -6
- package/esm2020/data/datagrid/built-in/comparators/datagrid-property-comparator.mjs +6 -1
- package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.mjs +2 -2
- package/esm2020/data/datagrid/built-in/filters/datagrid-numeric-filter.mjs +5 -5
- package/esm2020/data/datagrid/built-in/filters/datagrid-property-numeric-filter.mjs +6 -1
- package/esm2020/data/datagrid/built-in/filters/datagrid-property-string-filter.mjs +6 -1
- package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter-impl.mjs +2 -2
- package/esm2020/data/datagrid/built-in/filters/datagrid-string-filter.mjs +5 -5
- package/esm2020/data/datagrid/built-in/nested-property.mjs +2 -2
- package/esm2020/data/datagrid/chocolate/actionable-oompa-loompa.mjs +5 -5
- package/esm2020/data/datagrid/chocolate/datagrid-willy-wonka.mjs +5 -5
- package/esm2020/data/datagrid/chocolate/expandable-oompa-loompa.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-action-bar.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-action-overflow.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-cell.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-column-separator.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-column-toggle-button.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-column-toggle-title.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-column-toggle.mjs +33 -25
- package/esm2020/data/datagrid/datagrid-column.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-detail-body.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-detail-header.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-detail-registerer.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-detail.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-filter.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-footer.mjs +17 -13
- package/esm2020/data/datagrid/datagrid-hideable-column.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-if-detail.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-if-expanded.service.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-items-trackby.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-items.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-page-size.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-pagination.mjs +17 -5
- package/esm2020/data/datagrid/datagrid-placeholder.mjs +5 -5
- package/esm2020/data/datagrid/datagrid-row-detail.mjs +4 -4
- package/esm2020/data/datagrid/datagrid-row.mjs +16 -7
- package/esm2020/data/datagrid/datagrid.mjs +5 -5
- package/esm2020/data/datagrid/datagrid.module.mjs +6 -6
- package/esm2020/data/datagrid/enums/column-changes.enum.mjs +2 -2
- package/esm2020/data/datagrid/enums/display-mode.enum.mjs +2 -2
- package/esm2020/data/datagrid/enums/render-step.enum.mjs +2 -2
- package/esm2020/data/datagrid/enums/selection-type.mjs +2 -2
- package/esm2020/data/datagrid/enums/sort-order.enum.mjs +2 -2
- package/esm2020/data/datagrid/index.mjs +2 -2
- package/esm2020/data/datagrid/interfaces/column-state.interface.mjs +6 -1
- package/esm2020/data/datagrid/interfaces/comparator.interface.mjs +6 -1
- package/esm2020/data/datagrid/interfaces/filter.interface.mjs +6 -1
- package/esm2020/data/datagrid/interfaces/numeric-filter.interface.mjs +6 -1
- package/esm2020/data/datagrid/interfaces/state.interface.mjs +6 -1
- package/esm2020/data/datagrid/interfaces/string-filter.interface.mjs +6 -1
- package/esm2020/data/datagrid/providers/column-resizer.service.mjs +5 -5
- package/esm2020/data/datagrid/providers/column-state.provider.mjs +2 -2
- package/esm2020/data/datagrid/providers/columns.service.mjs +5 -5
- package/esm2020/data/datagrid/providers/custom-filter.mjs +2 -2
- package/esm2020/data/datagrid/providers/detail.service.mjs +5 -5
- package/esm2020/data/datagrid/providers/display-mode.service.mjs +5 -5
- package/esm2020/data/datagrid/providers/filters.mjs +5 -5
- package/esm2020/data/datagrid/providers/global-expandable-rows.mjs +5 -5
- package/esm2020/data/datagrid/providers/items.mjs +5 -5
- package/esm2020/data/datagrid/providers/page.mjs +5 -5
- package/esm2020/data/datagrid/providers/row-action-service.mjs +5 -5
- package/esm2020/data/datagrid/providers/selection.mjs +5 -5
- package/esm2020/data/datagrid/providers/sort.mjs +5 -5
- package/esm2020/data/datagrid/providers/state-debouncer.provider.mjs +5 -5
- package/esm2020/data/datagrid/providers/state.provider.mjs +5 -5
- package/esm2020/data/datagrid/providers/table-size.service.mjs +5 -5
- package/esm2020/data/datagrid/render/cell-renderer.mjs +5 -5
- package/esm2020/data/datagrid/render/constants.mjs +2 -2
- package/esm2020/data/datagrid/render/header-renderer.mjs +5 -5
- package/esm2020/data/datagrid/render/main-renderer.mjs +5 -5
- package/esm2020/data/datagrid/render/noop-dom-adapter.mjs +5 -5
- package/esm2020/data/datagrid/render/render-organizer.mjs +5 -5
- package/esm2020/data/datagrid/render/row-renderer.mjs +5 -5
- package/esm2020/data/datagrid/utils/datagrid-filter-registrar.mjs +5 -5
- package/esm2020/data/datagrid/wrapped-cell.mjs +5 -5
- package/esm2020/data/datagrid/wrapped-column.mjs +5 -5
- package/esm2020/data/datagrid/wrapped-row.mjs +5 -5
- package/esm2020/data/index.mjs +2 -2
- package/esm2020/data/stack-view/index.mjs +2 -2
- package/esm2020/data/stack-view/stack-block.mjs +40 -17
- package/esm2020/data/stack-view/stack-content-input.mjs +5 -5
- package/esm2020/data/stack-view/stack-control.mjs +2 -2
- package/esm2020/data/stack-view/stack-header.mjs +5 -5
- package/esm2020/data/stack-view/stack-input.mjs +5 -5
- package/esm2020/data/stack-view/stack-select.mjs +5 -5
- package/esm2020/data/stack-view/stack-view-custom-tags.mjs +50 -7
- package/esm2020/data/stack-view/stack-view.mjs +5 -5
- package/esm2020/data/stack-view/stack-view.module.mjs +10 -7
- package/esm2020/data/tree-view/index.mjs +2 -2
- package/esm2020/data/tree-view/models/async-array.mjs +2 -2
- package/esm2020/data/tree-view/models/declarative-tree-node.model.mjs +2 -2
- package/esm2020/data/tree-view/models/recursive-tree-node.model.mjs +2 -2
- package/esm2020/data/tree-view/models/selected-state.enum.mjs +2 -2
- package/esm2020/data/tree-view/models/tree-node.model.mjs +2 -2
- package/esm2020/data/tree-view/recursive-children.mjs +5 -5
- package/esm2020/data/tree-view/recursive-for-of.mjs +5 -5
- package/esm2020/data/tree-view/tree-features.service.mjs +5 -5
- package/esm2020/data/tree-view/tree-focus-manager.service.mjs +5 -5
- package/esm2020/data/tree-view/tree-node-link.mjs +5 -5
- package/esm2020/data/tree-view/tree-node.mjs +25 -10
- package/esm2020/data/tree-view/tree-view.module.mjs +6 -6
- package/esm2020/data/tree-view/tree.mjs +5 -5
- package/esm2020/emphasis/alert/alert-item.mjs +3 -3
- package/esm2020/emphasis/alert/alert-text.mjs +5 -5
- package/esm2020/emphasis/alert/alert.mjs +4 -4
- package/esm2020/emphasis/alert/alert.module.mjs +6 -6
- package/esm2020/emphasis/alert/alerts-pager.mjs +5 -5
- package/esm2020/emphasis/alert/alerts.mjs +5 -5
- package/esm2020/emphasis/alert/index.mjs +2 -2
- package/esm2020/emphasis/alert/providers/icon-and-types.service.mjs +5 -5
- package/esm2020/emphasis/alert/providers/multi-alert.service.mjs +4 -4
- package/esm2020/emphasis/alert/utils/alert-info-object.mjs +2 -2
- package/esm2020/emphasis/alert/utils/alert-types.mjs +2 -2
- package/esm2020/emphasis/emphasis.module.mjs +6 -6
- package/esm2020/emphasis/index.mjs +2 -2
- package/esm2020/forms/checkbox/checkbox-container.mjs +6 -6
- package/esm2020/forms/checkbox/checkbox-wrapper.mjs +6 -6
- package/esm2020/forms/checkbox/checkbox.mjs +6 -6
- package/esm2020/forms/checkbox/checkbox.module.mjs +7 -7
- package/esm2020/forms/checkbox/index.mjs +2 -2
- package/esm2020/forms/combobox/combobox-container.mjs +6 -6
- package/esm2020/forms/combobox/combobox.mjs +6 -6
- package/esm2020/forms/combobox/combobox.module.mjs +7 -7
- package/esm2020/forms/combobox/index.mjs +2 -2
- package/esm2020/forms/combobox/model/combobox.model.mjs +3 -3
- package/esm2020/forms/combobox/model/multi-select-combobox.model.mjs +3 -3
- package/esm2020/forms/combobox/model/pseudo-focus.model.mjs +3 -3
- package/esm2020/forms/combobox/model/single-select-combobox.model.mjs +3 -3
- package/esm2020/forms/combobox/option-items.directive.mjs +5 -5
- package/esm2020/forms/combobox/option-selected.directive.mjs +5 -5
- package/esm2020/forms/combobox/option.mjs +6 -6
- package/esm2020/forms/combobox/options.mjs +6 -6
- package/esm2020/forms/combobox/providers/combobox-container.service.mjs +5 -5
- package/esm2020/forms/combobox/providers/combobox-focus-handler.service.mjs +5 -5
- package/esm2020/forms/combobox/providers/option-selection.service.mjs +5 -5
- package/esm2020/forms/common/abstract-container.mjs +6 -6
- package/esm2020/forms/common/abstract-control.mjs +6 -6
- package/esm2020/forms/common/common.module.mjs +7 -7
- package/esm2020/forms/common/control-container.mjs +6 -6
- package/esm2020/forms/common/control.mjs +5 -5
- package/esm2020/forms/common/error.mjs +6 -6
- package/esm2020/forms/common/form.mjs +6 -6
- package/esm2020/forms/common/helper.mjs +6 -6
- package/esm2020/forms/common/if-control-state/abstract-if-state.mjs +5 -5
- package/esm2020/forms/common/if-control-state/if-control-state.service.mjs +5 -5
- package/esm2020/forms/common/if-control-state/if-error.mjs +5 -5
- package/esm2020/forms/common/if-control-state/if-success.mjs +5 -5
- package/esm2020/forms/common/index.mjs +2 -2
- package/esm2020/forms/common/label.mjs +5 -5
- package/esm2020/forms/common/layout.mjs +6 -6
- package/esm2020/forms/common/providers/container-id.service.mjs +9 -4
- package/esm2020/forms/common/providers/control-class.service.mjs +5 -5
- package/esm2020/forms/common/providers/control-id.service.mjs +5 -5
- package/esm2020/forms/common/providers/focus.service.mjs +5 -5
- package/esm2020/forms/common/providers/layout.service.mjs +5 -5
- package/esm2020/forms/common/providers/mark-control.service.mjs +5 -5
- package/esm2020/forms/common/providers/ng-control.service.mjs +5 -5
- package/esm2020/forms/common/success.mjs +6 -6
- package/esm2020/forms/common/wrapped-control.mjs +6 -6
- package/esm2020/forms/datalist/datalist-container.mjs +6 -6
- package/esm2020/forms/datalist/datalist-input.mjs +6 -6
- package/esm2020/forms/datalist/datalist.mjs +5 -5
- package/esm2020/forms/datalist/datalist.module.mjs +6 -6
- package/esm2020/forms/datalist/index.mjs +2 -2
- package/esm2020/forms/datalist/providers/datalist-id.service.mjs +5 -5
- package/esm2020/forms/datepicker/calendar.mjs +5 -5
- package/esm2020/forms/datepicker/date-container.mjs +55 -28
- package/esm2020/forms/datepicker/date-input.mjs +5 -5
- package/esm2020/forms/datepicker/datepicker-view-manager.mjs +16 -12
- package/esm2020/forms/datepicker/datepicker.module.mjs +6 -6
- package/esm2020/forms/datepicker/day.mjs +7 -5
- package/esm2020/forms/datepicker/daypicker.mjs +5 -5
- package/esm2020/forms/datepicker/index.mjs +2 -2
- package/esm2020/forms/datepicker/interfaces/date-range.interface.mjs +2 -2
- package/esm2020/forms/datepicker/interfaces/day-of-week.interface.mjs +2 -2
- package/esm2020/forms/datepicker/model/calendar-view.model.mjs +2 -2
- package/esm2020/forms/datepicker/model/calendar.model.mjs +2 -2
- package/esm2020/forms/datepicker/model/day-view.model.mjs +2 -2
- package/esm2020/forms/datepicker/model/day.model.mjs +2 -2
- package/esm2020/forms/datepicker/model/year-range.model.mjs +2 -2
- package/esm2020/forms/datepicker/monthpicker.mjs +5 -5
- package/esm2020/forms/datepicker/providers/date-form-control.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/date-io.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/date-navigation.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/datepicker-enabled.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/datepicker-focus.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/locale-helper.service.mjs +5 -5
- package/esm2020/forms/datepicker/providers/view-manager.service.mjs +5 -5
- package/esm2020/forms/datepicker/utils/constants.mjs +2 -2
- package/esm2020/forms/datepicker/utils/date-utils.mjs +2 -2
- package/esm2020/forms/datepicker/yearpicker.mjs +5 -5
- package/esm2020/forms/forms.module.mjs +6 -6
- package/esm2020/forms/index.mjs +2 -2
- package/esm2020/forms/input/index.mjs +2 -2
- package/esm2020/forms/input/input-container.mjs +6 -6
- package/esm2020/forms/input/input.mjs +6 -6
- package/esm2020/forms/input/input.module.mjs +7 -7
- package/esm2020/forms/password/index.mjs +2 -2
- package/esm2020/forms/password/password-container.mjs +5 -5
- package/esm2020/forms/password/password.mjs +6 -6
- package/esm2020/forms/password/password.module.mjs +7 -7
- package/esm2020/forms/radio/index.mjs +2 -2
- package/esm2020/forms/radio/radio-container.mjs +6 -6
- package/esm2020/forms/radio/radio-wrapper.mjs +6 -6
- package/esm2020/forms/radio/radio.mjs +6 -6
- package/esm2020/forms/radio/radio.module.mjs +7 -7
- package/esm2020/forms/range/index.mjs +2 -2
- package/esm2020/forms/range/range-container.mjs +6 -6
- package/esm2020/forms/range/range.mjs +6 -6
- package/esm2020/forms/range/range.module.mjs +7 -7
- package/esm2020/forms/select/index.mjs +2 -2
- package/esm2020/forms/select/select-container.mjs +6 -6
- package/esm2020/forms/select/select.mjs +6 -6
- package/esm2020/forms/select/select.module.mjs +7 -7
- package/esm2020/forms/textarea/index.mjs +2 -2
- package/esm2020/forms/textarea/textarea-container.mjs +6 -6
- package/esm2020/forms/textarea/textarea.mjs +6 -6
- package/esm2020/forms/textarea/textarea.module.mjs +7 -7
- package/esm2020/icon/icon.mjs +8 -8
- package/esm2020/icon/icon.module.mjs +6 -6
- package/esm2020/icon/index.mjs +2 -2
- package/esm2020/index.mjs +2 -2
- package/esm2020/layout/index.mjs +2 -2
- package/esm2020/layout/layout.module.mjs +6 -6
- package/esm2020/layout/main-container/index.mjs +2 -2
- package/esm2020/layout/main-container/main-container.mjs +5 -5
- package/esm2020/layout/main-container/main-container.module.mjs +6 -6
- package/esm2020/layout/nav/chocolate/index.mjs +2 -2
- package/esm2020/layout/nav/chocolate/main-container-willy-wonka.mjs +5 -5
- package/esm2020/layout/nav/chocolate/nav-detection-oompa-loompa.mjs +5 -5
- package/esm2020/layout/nav/header.mjs +8 -4
- package/esm2020/layout/nav/index.mjs +2 -2
- package/esm2020/layout/nav/nav-level.mjs +5 -5
- package/esm2020/layout/nav/navigation.module.mjs +6 -6
- package/esm2020/layout/nav/providers/responsive-navigation.service.mjs +5 -5
- package/esm2020/layout/nav/responsive-nav-codes.mjs +2 -2
- package/esm2020/layout/nav/responsive-nav-control-message.mjs +2 -2
- package/esm2020/layout/tabs/chocolate/active-oompa-loompa.mjs +5 -5
- package/esm2020/layout/tabs/chocolate/tabs-willy-wonka.mjs +5 -5
- package/esm2020/layout/tabs/enums/tabs-layout.enum.mjs +2 -2
- package/esm2020/layout/tabs/index.mjs +2 -2
- package/esm2020/layout/tabs/providers/tabs.service.mjs +5 -5
- package/esm2020/layout/tabs/tab-content.mjs +5 -7
- package/esm2020/layout/tabs/tab-link.directive.mjs +5 -6
- package/esm2020/layout/tabs/tab-overflow-content.mjs +5 -5
- package/esm2020/layout/tabs/tab.mjs +5 -5
- package/esm2020/layout/tabs/tabs-id.provider.mjs +2 -2
- package/esm2020/layout/tabs/tabs.mjs +5 -5
- package/esm2020/layout/tabs/tabs.module.mjs +6 -6
- package/esm2020/layout/vertical-nav/index.mjs +2 -2
- package/esm2020/layout/vertical-nav/providers/vertical-nav-group-registration.service.mjs +5 -5
- package/esm2020/layout/vertical-nav/providers/vertical-nav-group.service.mjs +5 -5
- package/esm2020/layout/vertical-nav/providers/vertical-nav-icon.service.mjs +5 -5
- package/esm2020/layout/vertical-nav/providers/vertical-nav.service.mjs +5 -5
- package/esm2020/layout/vertical-nav/vertical-nav-group-children.mjs +5 -5
- package/esm2020/layout/vertical-nav/vertical-nav-group.mjs +3 -3
- package/esm2020/layout/vertical-nav/vertical-nav-icon.mjs +5 -5
- package/esm2020/layout/vertical-nav/vertical-nav-link.mjs +5 -5
- package/esm2020/layout/vertical-nav/vertical-nav.mjs +5 -5
- package/esm2020/layout/vertical-nav/vertical-nav.module.mjs +6 -6
- package/esm2020/modal/index.mjs +2 -2
- package/esm2020/modal/modal-body.mjs +3 -3
- package/esm2020/modal/modal.mjs +11 -7
- package/esm2020/modal/modal.module.mjs +6 -6
- package/esm2020/popover/common/abstract-popover.mjs +4 -4
- package/esm2020/popover/common/popover-host-anchor.token.mjs +2 -2
- package/esm2020/popover/common/popover-options.interface.mjs +2 -2
- package/esm2020/popover/common/popover.mjs +2 -2
- package/esm2020/popover/dropdown/dropdown-item.mjs +5 -5
- package/esm2020/popover/dropdown/dropdown-menu.mjs +5 -5
- package/esm2020/popover/dropdown/dropdown-trigger.mjs +5 -5
- package/esm2020/popover/dropdown/dropdown.mjs +5 -5
- package/esm2020/popover/dropdown/dropdown.module.mjs +6 -6
- package/esm2020/popover/dropdown/index.mjs +2 -2
- package/esm2020/popover/dropdown/menu-positions.mjs +2 -2
- package/esm2020/popover/dropdown/providers/dropdown-focus-handler.service.mjs +5 -5
- package/esm2020/popover/dropdown/providers/dropdown.service.mjs +5 -5
- package/esm2020/popover/index.mjs +2 -2
- package/esm2020/popover/popover.module.mjs +6 -6
- package/esm2020/popover/signpost/index.mjs +2 -2
- package/esm2020/popover/signpost/providers/signpost-focus-manager.service.mjs +5 -5
- package/esm2020/popover/signpost/providers/signpost-id.service.mjs +5 -6
- package/esm2020/popover/signpost/signpost-content.mjs +5 -5
- package/esm2020/popover/signpost/signpost-positions.mjs +2 -2
- package/esm2020/popover/signpost/signpost-trigger.mjs +5 -5
- package/esm2020/popover/signpost/signpost.mjs +5 -5
- package/esm2020/popover/signpost/signpost.module.mjs +6 -6
- package/esm2020/popover/tooltip/index.mjs +2 -2
- package/esm2020/popover/tooltip/providers/tooltip-id.service.mjs +5 -5
- package/esm2020/popover/tooltip/tooltip-content.mjs +5 -5
- package/esm2020/popover/tooltip/tooltip-trigger.mjs +5 -5
- package/esm2020/popover/tooltip/tooltip.mjs +5 -5
- package/esm2020/popover/tooltip/tooltip.module.mjs +6 -6
- package/esm2020/progress/progress-bars/index.mjs +2 -2
- package/esm2020/progress/progress-bars/progress-bar.mjs +5 -5
- package/esm2020/progress/progress-bars/progress-bar.module.mjs +6 -6
- package/esm2020/progress/spinner/index.mjs +2 -2
- package/esm2020/progress/spinner/spinner.mjs +5 -5
- package/esm2020/progress/spinner/spinner.module.mjs +6 -6
- package/esm2020/public-api.mjs +2 -2
- package/esm2020/timeline/enums/timeline-layout.enum.mjs +2 -2
- package/esm2020/timeline/enums/timeline-step-state.enum.mjs +2 -2
- package/esm2020/timeline/index.mjs +2 -2
- package/esm2020/timeline/interface/icon-attribute.interface.mjs +2 -2
- package/esm2020/timeline/providers/timeline-icon-attribute.service.mjs +5 -5
- package/esm2020/timeline/timeline-step-description.mjs +5 -5
- package/esm2020/timeline/timeline-step-header.mjs +5 -5
- package/esm2020/timeline/timeline-step-title.mjs +5 -5
- package/esm2020/timeline/timeline-step.mjs +7 -19
- package/esm2020/timeline/timeline.mjs +5 -5
- package/esm2020/timeline/timeline.module.mjs +6 -6
- package/esm2020/utils/a11y/aria-live.service.mjs +5 -5
- package/esm2020/utils/a11y/index.mjs +2 -2
- package/esm2020/utils/animations/collapse/collapse.mjs +2 -2
- package/esm2020/utils/animations/collapse/index.mjs +2 -2
- package/esm2020/utils/animations/constants.mjs +2 -2
- package/esm2020/utils/animations/expandable-animation/expandable-animation.mjs +5 -5
- package/esm2020/utils/animations/expandable-animation/expandable-animation.module.mjs +6 -6
- package/esm2020/utils/animations/expandable-animation/index.mjs +6 -1
- package/esm2020/utils/animations/fade/fade.mjs +2 -2
- package/esm2020/utils/animations/fade/index.mjs +2 -2
- package/esm2020/utils/animations/fade-slide/fade-slide.mjs +2 -2
- package/esm2020/utils/animations/fade-slide/index.mjs +2 -2
- package/esm2020/utils/animations/index.mjs +2 -2
- package/esm2020/utils/animations/slide/index.mjs +2 -2
- package/esm2020/utils/animations/slide/slide.mjs +2 -2
- package/esm2020/utils/aria/aria.service.mjs +5 -5
- package/esm2020/utils/breakpoints/breakpoints.mjs +2 -2
- package/esm2020/utils/chocolate/oompa-loompa.mjs +5 -5
- package/esm2020/utils/chocolate/willy-wonka.mjs +5 -5
- package/esm2020/utils/component/is-boolean-attribute-set.mjs +2 -2
- package/esm2020/utils/conditional/conditional.module.mjs +6 -6
- package/esm2020/utils/conditional/if-active.directive.mjs +5 -5
- package/esm2020/utils/conditional/if-active.service.mjs +5 -5
- package/esm2020/utils/conditional/if-expanded.directive.mjs +5 -5
- package/esm2020/utils/conditional/if-expanded.service.mjs +5 -5
- package/esm2020/utils/conditional/if-open.directive.mjs +5 -5
- package/esm2020/utils/conditional/index.mjs +2 -2
- package/esm2020/utils/dom-adapter/dom-adapter.mjs +5 -5
- package/esm2020/utils/drag-and-drop/drag-and-drop.module.mjs +6 -6
- package/esm2020/utils/drag-and-drop/drag-event.mjs +6 -1
- package/esm2020/utils/drag-and-drop/drag-handle.mjs +5 -5
- package/esm2020/utils/drag-and-drop/draggable/draggable.mjs +5 -5
- package/esm2020/utils/drag-and-drop/draggable-ghost.mjs +5 -5
- package/esm2020/utils/drag-and-drop/droppable/droppable.mjs +5 -5
- package/esm2020/utils/drag-and-drop/if-dragged.mjs +5 -5
- package/esm2020/utils/drag-and-drop/index.mjs +2 -2
- package/esm2020/utils/drag-and-drop/interfaces/drag-event.interface.mjs +2 -2
- package/esm2020/utils/drag-and-drop/interfaces/drop-tolerance.interface.mjs +6 -1
- package/esm2020/utils/drag-and-drop/providers/drag-and-drop-event-bus.service.mjs +5 -5
- package/esm2020/utils/drag-and-drop/providers/drag-event-listener.service.mjs +6 -6
- package/esm2020/utils/drag-and-drop/providers/drag-handle-registrar.service.mjs +5 -5
- package/esm2020/utils/drag-and-drop/providers/draggable-snapshot.service.mjs +5 -5
- package/esm2020/utils/drag-and-drop/providers/global-drag-mode.service.mjs +5 -5
- package/esm2020/utils/enums/key-codes.enum.mjs +3 -2
- package/esm2020/utils/focus/arrow-key-direction.enum.mjs +2 -2
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.mjs +5 -5
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.module.mjs +6 -6
- package/esm2020/utils/focus/focus-on-view-init/focus-on-view-init.provider.mjs +2 -2
- package/esm2020/utils/focus/focus-on-view-init/index.mjs +2 -2
- package/esm2020/utils/focus/focus.service.mjs +5 -5
- package/esm2020/utils/focus/focusable-item/basic-focusable-item.service.mjs +5 -5
- package/esm2020/utils/focus/focusable-item/custom-focusable-item-provider.mjs +2 -2
- package/esm2020/utils/focus/focusable-item/focusable-item.mjs +2 -2
- package/esm2020/utils/focus/focusable-item/linkers.mjs +2 -2
- package/esm2020/utils/focus/key-focus/enums/focus-direction.enum.mjs +2 -2
- package/esm2020/utils/focus/key-focus/interfaces.mjs +2 -2
- package/esm2020/utils/focus/key-focus/key-focus-item.mjs +5 -5
- package/esm2020/utils/focus/key-focus/key-focus.mjs +5 -5
- package/esm2020/utils/focus/key-focus/key-focus.module.mjs +6 -6
- package/esm2020/utils/focus/key-focus/roving-tabindex.mjs +5 -5
- package/esm2020/utils/focus/key-focus/util.mjs +2 -2
- package/esm2020/utils/focus/wrap-observable.mjs +2 -2
- package/esm2020/utils/focus-trap/focus-trap-config.interface.mjs +2 -2
- package/esm2020/utils/focus-trap/focus-trap-tracker.service.mjs +5 -5
- package/esm2020/utils/focus-trap/focus-trap.directive.mjs +5 -5
- package/esm2020/utils/focus-trap/focus-trap.module.mjs +6 -6
- package/esm2020/utils/focus-trap/index.mjs +2 -2
- package/esm2020/utils/forms/validation.mjs +2 -2
- package/esm2020/utils/host-wrapping/dynamic-wrapper.mjs +3 -3
- package/esm2020/utils/host-wrapping/empty-anchor.mjs +6 -6
- package/esm2020/utils/host-wrapping/host-wrapper.mjs +3 -3
- package/esm2020/utils/host-wrapping/host-wrapping.module.mjs +7 -7
- package/esm2020/utils/i18n/common-strings.default.mjs +12 -5
- package/esm2020/utils/i18n/common-strings.interface.mjs +6 -1
- package/esm2020/utils/i18n/common-strings.service.mjs +5 -5
- package/esm2020/utils/i18n/index.mjs +2 -2
- package/esm2020/utils/id-generator/id-generator.service.mjs +2 -2
- package/esm2020/utils/index.mjs +2 -2
- package/esm2020/utils/key-codes/key-codes.mjs +2 -2
- package/esm2020/utils/loading/index.mjs +2 -2
- package/esm2020/utils/loading/loading-listener.mjs +2 -2
- package/esm2020/utils/loading/loading.mjs +5 -5
- package/esm2020/utils/loading/loading.module.mjs +6 -6
- package/esm2020/utils/outside-click/index.mjs +6 -1
- package/esm2020/utils/outside-click/outside-click.mjs +5 -5
- package/esm2020/utils/outside-click/outside-click.module.mjs +6 -6
- package/esm2020/utils/popover/enums/alignment.enum.mjs +2 -3
- package/esm2020/utils/popover/enums/axis.enum.mjs +2 -3
- package/esm2020/utils/popover/enums/positions.enum.mjs +2 -3
- package/esm2020/utils/popover/enums/side.enum.mjs +2 -3
- package/esm2020/utils/popover/enums/viewport-violation.enum.mjs +2 -3
- package/esm2020/utils/popover/index.mjs +2 -3
- package/esm2020/utils/popover/interfaces/popover-content-offset.interface.mjs +2 -3
- package/esm2020/utils/popover/interfaces/popover-position.interface.mjs +2 -3
- package/esm2020/utils/popover/interfaces/visibility-coords.interface.mjs +2 -3
- package/esm2020/utils/popover/popover-anchor.mjs +5 -6
- package/esm2020/utils/popover/popover-close-button.mjs +5 -6
- package/esm2020/utils/popover/popover-content.mjs +5 -6
- package/esm2020/utils/popover/popover-open-close-button.mjs +5 -6
- package/esm2020/utils/popover/popover.module.mjs +6 -7
- package/esm2020/utils/popover/position-operators.mjs +2 -3
- package/esm2020/utils/popover/providers/popover-events.service.mjs +5 -6
- package/esm2020/utils/popover/providers/popover-position.service.mjs +12 -7
- package/esm2020/utils/popover/providers/popover-toggle.service.mjs +5 -6
- package/esm2020/utils/scrolling/scrolling-service.mjs +5 -5
- package/esm2020/utils/template-ref/index.mjs +6 -1
- package/esm2020/utils/template-ref/template-ref-container.mjs +5 -5
- package/esm2020/utils/template-ref/template-ref.module.mjs +6 -6
- package/esm2020/wizard/index.mjs +2 -2
- package/esm2020/wizard/providers/button-hub.service.mjs +5 -5
- package/esm2020/wizard/providers/header-actions.service.mjs +5 -5
- package/esm2020/wizard/providers/page-collection.service.mjs +5 -5
- package/esm2020/wizard/providers/wizard-navigation.service.mjs +3 -3
- package/esm2020/wizard/wizard-button.mjs +5 -5
- package/esm2020/wizard/wizard-custom-tags.mjs +5 -5
- package/esm2020/wizard/wizard-header-action.mjs +5 -5
- package/esm2020/wizard/wizard-page-buttons.mjs +5 -5
- package/esm2020/wizard/wizard-page-header-actions.mjs +5 -5
- package/esm2020/wizard/wizard-page-navtitle.mjs +5 -5
- package/esm2020/wizard/wizard-page-title.mjs +5 -5
- package/esm2020/wizard/wizard-page.mjs +3 -3
- package/esm2020/wizard/wizard-stepnav-item.mjs +3 -3
- package/esm2020/wizard/wizard-stepnav.mjs +5 -5
- package/esm2020/wizard/wizard.mjs +27 -10
- package/esm2020/wizard/wizard.module.mjs +6 -6
- package/fesm2015/clr-angular.mjs +2653 -2459
- package/fesm2015/clr-angular.mjs.map +1 -1
- package/fesm2020/clr-angular.mjs +2453 -2222
- package/fesm2020/clr-angular.mjs.map +1 -1
- package/forms/checkbox/checkbox-container.d.ts +0 -5
- package/forms/checkbox/checkbox-wrapper.d.ts +0 -5
- package/forms/checkbox/checkbox.d.ts +0 -5
- package/forms/combobox/combobox-container.d.ts +0 -5
- package/forms/combobox/model/combobox.model.d.ts +0 -5
- package/forms/combobox/model/multi-select-combobox.model.d.ts +0 -5
- package/forms/combobox/model/pseudo-focus.model.d.ts +0 -5
- package/forms/combobox/model/single-select-combobox.model.d.ts +0 -5
- package/forms/combobox/option.d.ts +0 -5
- package/forms/combobox/options.d.ts +0 -5
- package/forms/common/abstract-container.d.ts +0 -5
- package/forms/common/form.d.ts +0 -5
- package/forms/common/layout.d.ts +0 -5
- package/forms/common/wrapped-control.d.ts +0 -5
- package/forms/datalist/datalist-input.d.ts +0 -5
- package/forms/datepicker/date-container.d.ts +12 -3
- package/forms/datepicker/datepicker-view-manager.d.ts +3 -1
- package/forms/input/input.d.ts +0 -5
- package/forms/password/password-container.d.ts +0 -5
- package/forms/password/password.d.ts +0 -5
- package/forms/radio/radio-container.d.ts +0 -5
- package/forms/radio/radio-wrapper.d.ts +0 -5
- package/forms/radio/radio.d.ts +0 -5
- package/forms/range/range-container.d.ts +0 -5
- package/forms/range/range.d.ts +0 -5
- package/forms/select/select.d.ts +0 -5
- package/forms/textarea/textarea.d.ts +0 -5
- package/modal/modal.d.ts +2 -1
- package/package.json +4 -14
- package/utils/enums/key-codes.enum.d.ts +1 -0
- package/utils/host-wrapping/dynamic-wrapper.d.ts +0 -5
- package/utils/host-wrapping/host-wrapper.d.ts +0 -5
- package/utils/i18n/common-strings.interface.d.ts +7 -0
- package/wizard/wizard.d.ts +2 -1
- package/schematics/add/index.js +0 -123
- package/schematics/add/index.js.map +0 -1
- package/schematics/add/index.spec.js +0 -114
- package/schematics/add/index.spec.js.map +0 -1
- package/schematics/add/schema.json +0 -18
- package/schematics/collection.json +0 -10
- package/schematics/migration-collection.json +0 -25
- package/schematics/update/update-0.13.0.js +0 -147
- package/schematics/update/update-0.13.0.js.map +0 -1
- package/schematics/update/update-13.0.0.js +0 -37
- package/schematics/update/update-13.0.0.js.map +0 -1
- package/schematics/update/update-13.0.0.spec.js +0 -71
- package/schematics/update/update-13.0.0.spec.js.map +0 -1
- package/schematics/update/update-3.0.0.js +0 -89
- package/schematics/update/update-3.0.0.js.map +0 -1
- package/schematics/update/update-5.0.0.js +0 -37
- package/schematics/update/update-5.0.0.js.map +0 -1
- package/schematics/update/update-5.0.0.spec.js +0 -71
- package/schematics/update/update-5.0.0.spec.js.map +0 -1
- package/schematics/utility/add-assets-to-config-file.js +0 -25
- package/schematics/utility/add-assets-to-config-file.js.map +0 -1
- package/schematics/utility/add-module-import-to-module.js +0 -36
- package/schematics/utility/add-module-import-to-module.js.map +0 -1
- package/schematics/utility/angular-config-filename.js +0 -10
- package/schematics/utility/angular-config-filename.js.map +0 -1
- package/schematics/utility/compare-versions.js +0 -30
- package/schematics/utility/compare-versions.js.map +0 -1
- package/schematics/utility/config.js +0 -32
- package/schematics/utility/config.js.map +0 -1
- package/schematics/utility/find-app-module.js +0 -17
- package/schematics/utility/find-app-module.js.map +0 -1
- package/schematics/utility/get-file-content.js +0 -12
- package/schematics/utility/get-file-content.js.map +0 -1
- package/schematics/utility/get-index-html-path.js +0 -14
- package/schematics/utility/get-index-html-path.js.map +0 -1
- package/schematics/utility/get-json-file.js +0 -25
- package/schematics/utility/get-json-file.js.map +0 -1
- package/schematics/utility/get-main-path.js +0 -14
- package/schematics/utility/get-main-path.js.map +0 -1
- package/schematics/utility/get-typescript-source-file.js +0 -26
- package/schematics/utility/get-typescript-source-file.js.map +0 -1
- package/schematics/utility/ng-add-options.js +0 -8
- package/schematics/utility/ng-add-options.js.map +0 -1
- package/schematics/utility/run-npm-install.js +0 -14
- package/schematics/utility/run-npm-install.js.map +0 -1
- package/schematics/utility/setup-project.js +0 -37
- package/schematics/utility/setup-project.js.map +0 -1
- package/schematics/utility/update-json-file.js +0 -17
- package/schematics/utility/update-json-file.js.map +0 -1
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { AfterContentInit, QueryList } from '@angular/core';
|
|
7
2
|
import { ControlClassService } from '../common/providers/control-class.service';
|
|
8
3
|
import { NgControlService } from '../common/providers/ng-control.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { OnInit, InjectionToken, OnDestroy } from '@angular/core';
|
|
7
2
|
import { BehaviorSubject } from 'rxjs';
|
|
8
3
|
import { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { Renderer2, ElementRef, Injector, ViewContainerRef } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { ClrCheckboxWrapper } from './checkbox-wrapper';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ElementRef, AfterViewInit, AfterContentInit } from '@angular/core';
|
|
7
2
|
import { NgControlService } from '../common/providers/ng-control.service';
|
|
8
3
|
import { ControlClassService } from '../common/providers/control-class.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
export declare abstract class ComboboxModel<T> {
|
|
7
2
|
model: T | T[];
|
|
8
3
|
abstract containsItem(item: T): boolean;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ComboboxModel } from './combobox.model';
|
|
7
2
|
export declare class MultiSelectComboboxModel<T> implements ComboboxModel<T> {
|
|
8
3
|
model: T[];
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { SingleSelectComboboxModel } from './single-select-combobox.model';
|
|
7
2
|
import { Observable } from 'rxjs';
|
|
8
3
|
export declare class PseudoFocusModel<T> extends SingleSelectComboboxModel<T> {
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ComboboxModel } from './combobox.model';
|
|
7
2
|
export declare class SingleSelectComboboxModel<T> implements ComboboxModel<T> {
|
|
8
3
|
model: T;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ElementRef, OnInit } from '@angular/core';
|
|
7
2
|
import { OptionSelectionService } from './providers/option-selection.service';
|
|
8
3
|
import { ComboboxFocusHandler, OptionData as OptionProxy } from './providers/combobox-focus-handler.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ElementRef, QueryList, AfterViewInit, OnDestroy } from '@angular/core';
|
|
7
2
|
import { OptionSelectionService } from './providers/option-selection.service';
|
|
8
3
|
import { AriaService } from '../../utils/aria/aria.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { AfterContentInit, OnDestroy } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { NgControlService } from './providers/ng-control.service';
|
package/forms/common/form.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { QueryList } from '@angular/core';
|
|
7
2
|
import { LayoutService } from './providers/layout.service';
|
|
8
3
|
import { MarkControlService } from './providers/mark-control.service';
|
package/forms/common/layout.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { OnInit } from '@angular/core';
|
|
7
2
|
import { ClrFormLayout, LayoutService } from './providers/layout.service';
|
|
8
3
|
import * as i0 from "@angular/core";
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { InjectionToken, Injector, OnInit, Type, ViewContainerRef, Renderer2, ElementRef, OnDestroy } from '@angular/core';
|
|
7
2
|
import { Subscription } from 'rxjs';
|
|
8
3
|
import { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ViewContainerRef, Injector, Renderer2, ElementRef, AfterContentInit } from '@angular/core';
|
|
7
2
|
import { WrappedFormControl } from '../common/wrapped-control';
|
|
8
3
|
import { ClrDatalistContainer } from './datalist-container';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ElementRef, AfterViewInit } from '@angular/core';
|
|
1
|
+
import { ElementRef, AfterViewInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ClrPopoverToggleService } from '../../utils/popover/providers/popover-toggle.service';
|
|
3
3
|
import { ControlClassService } from '../common/providers/control-class.service';
|
|
4
4
|
import { FocusService } from '../common/providers/focus.service';
|
|
5
5
|
import { LayoutService } from '../common/providers/layout.service';
|
|
6
6
|
import { NgControlService } from '../common/providers/ng-control.service';
|
|
7
7
|
import { DateFormControlService } from './providers/date-form-control.service';
|
|
8
|
+
import { DateIOService } from './providers/date-io.service';
|
|
8
9
|
import { DateNavigationService } from './providers/date-navigation.service';
|
|
9
10
|
import { DatepickerEnabledService } from './providers/datepicker-enabled.service';
|
|
10
11
|
import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';
|
|
@@ -14,10 +15,12 @@ import { IfControlStateService } from '../common/if-control-state/if-control-sta
|
|
|
14
15
|
import { ClrAbstractContainer } from '../common/abstract-container';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export declare class ClrDateContainer extends ClrAbstractContainer implements AfterViewInit {
|
|
18
|
+
protected renderer: Renderer2;
|
|
17
19
|
private toggleService;
|
|
18
20
|
private dateNavigationService;
|
|
19
21
|
private datepickerEnabledService;
|
|
20
22
|
private dateFormControlService;
|
|
23
|
+
private dateIOService;
|
|
21
24
|
commonStrings: ClrCommonStringsService;
|
|
22
25
|
private focusService;
|
|
23
26
|
private viewManagerService;
|
|
@@ -31,7 +34,7 @@ export declare class ClrDateContainer extends ClrAbstractContainer implements Af
|
|
|
31
34
|
get open(): boolean;
|
|
32
35
|
private toggleButton;
|
|
33
36
|
set actionButton(button: ElementRef);
|
|
34
|
-
constructor(toggleService: ClrPopoverToggleService, dateNavigationService: DateNavigationService, datepickerEnabledService: DatepickerEnabledService, dateFormControlService: DateFormControlService, commonStrings: ClrCommonStringsService, focusService: FocusService, viewManagerService: ViewManagerService, controlClassService: ControlClassService, layoutService: LayoutService, ngControlService: NgControlService, ifControlStateService: IfControlStateService);
|
|
37
|
+
constructor(renderer: Renderer2, toggleService: ClrPopoverToggleService, dateNavigationService: DateNavigationService, datepickerEnabledService: DatepickerEnabledService, dateFormControlService: DateFormControlService, dateIOService: DateIOService, commonStrings: ClrCommonStringsService, focusService: FocusService, viewManagerService: ViewManagerService, controlClassService: ControlClassService, layoutService: LayoutService, ngControlService: NgControlService, ifControlStateService: IfControlStateService);
|
|
35
38
|
ngAfterViewInit(): void;
|
|
36
39
|
/**
|
|
37
40
|
* Returns if the Datepicker is enabled or not. If disabled, hides the datepicker trigger.
|
|
@@ -41,10 +44,16 @@ export declare class ClrDateContainer extends ClrAbstractContainer implements Af
|
|
|
41
44
|
* Return if Datepicker is diabled or not as Form Control
|
|
42
45
|
*/
|
|
43
46
|
get isInputDateDisabled(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Return the label for the toggle button.
|
|
49
|
+
* If there's a selected date, the date is included in the label.
|
|
50
|
+
*/
|
|
51
|
+
private getToggleButtonLabel;
|
|
52
|
+
private listenForDateChanges;
|
|
44
53
|
/**
|
|
45
54
|
* Processes the user input and Initializes the Calendar everytime the datepicker popover is open.
|
|
46
55
|
*/
|
|
47
56
|
private initializeCalendar;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDateContainer, [null, null, null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDateContainer, [null, null, null, null, null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
49
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<ClrDateContainer, "clr-date-container", never, { "clrPosition": "clrPosition"; }, {}, never, ["label", "[clrDate]", "clr-control-helper", "clr-control-error", "clr-control-success"]>;
|
|
50
59
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';
|
|
1
2
|
import { ViewManagerService } from './providers/view-manager.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ClrDatepickerViewManager {
|
|
5
|
+
commonStrings: ClrCommonStringsService;
|
|
4
6
|
private viewManagerService;
|
|
5
|
-
constructor(viewManagerService: ViewManagerService);
|
|
7
|
+
constructor(commonStrings: ClrCommonStringsService, viewManagerService: ViewManagerService);
|
|
6
8
|
/**
|
|
7
9
|
* Returns if the current view is the monthpicker.
|
|
8
10
|
*/
|
package/forms/input/input.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ViewContainerRef, Renderer2, ElementRef, Injector } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { ClrInputContainer } from './input-container';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2022 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { InjectionToken } from '@angular/core';
|
|
7
2
|
import { BehaviorSubject } from 'rxjs';
|
|
8
3
|
import { ControlClassService } from '../common/providers/control-class.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ElementRef, Injector, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
7
2
|
import { BehaviorSubject } from 'rxjs';
|
|
8
3
|
import { NgControl } from '@angular/forms';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { AfterContentInit, QueryList } from '@angular/core';
|
|
7
2
|
import { ControlClassService } from '../common/providers/control-class.service';
|
|
8
3
|
import { NgControlService } from '../common/providers/ng-control.service';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { OnInit } from '@angular/core';
|
|
7
2
|
import { DynamicWrapper } from '../../utils/host-wrapping/dynamic-wrapper';
|
|
8
3
|
import { ClrLabel } from '../common/label';
|
package/forms/radio/radio.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ElementRef, Injector, Renderer2, ViewContainerRef } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { WrappedFormControl } from '../common/wrapped-control';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { Renderer2 } from '@angular/core';
|
|
7
2
|
import { NgControlService } from '../common/providers/ng-control.service';
|
|
8
3
|
import { LayoutService } from '../common/providers/layout.service';
|
package/forms/range/range.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ViewContainerRef, Renderer2, ElementRef, Injector } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { WrappedFormControl } from '../common/wrapped-control';
|
package/forms/select/select.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ViewContainerRef, Renderer2, ElementRef, Injector } from '@angular/core';
|
|
7
2
|
import { WrappedFormControl } from '../common/wrapped-control';
|
|
8
3
|
import { ClrSelectContainer } from './select-container';
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { ViewContainerRef, Renderer2, ElementRef, Injector } from '@angular/core';
|
|
7
2
|
import { NgControl } from '@angular/forms';
|
|
8
3
|
import { WrappedFormControl } from '../common/wrapped-control';
|
package/modal/modal.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare class ClrModal implements OnChanges, OnDestroy {
|
|
|
18
18
|
bypassScrollService: boolean;
|
|
19
19
|
stopClose: boolean;
|
|
20
20
|
altClose: EventEmitter<boolean>;
|
|
21
|
+
labelledBy: string;
|
|
21
22
|
constructor(_scrollingService: ScrollingService, commonStrings: ClrCommonStringsService, modalId: string);
|
|
22
23
|
ngOnChanges(changes: {
|
|
23
24
|
[propName: string]: SimpleChange;
|
|
@@ -27,5 +28,5 @@ export declare class ClrModal implements OnChanges, OnDestroy {
|
|
|
27
28
|
close(): void;
|
|
28
29
|
fadeDone(e: AnimationEvent): void;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrModal, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClrModal, "clr-modal", never, { "_open": "clrModalOpen"; "closable": "clrModalClosable"; "size": "clrModalSize"; "staticBackdrop": "clrModalStaticBackdrop"; "skipAnimation": "clrModalSkipAnimation"; "bypassScrollService": "clrModalOverrideScrollService"; "stopClose": "clrModalPreventClose"; }, { "_openChanged": "clrModalOpenChange"; "altClose": "clrModalAlternateClose"; }, never, [".modal-nav", ".modal-title", ".modal-body", ".modal-footer"]>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClrModal, "clr-modal", never, { "_open": "clrModalOpen"; "closable": "clrModalClosable"; "size": "clrModalSize"; "staticBackdrop": "clrModalStaticBackdrop"; "skipAnimation": "clrModalSkipAnimation"; "bypassScrollService": "clrModalOverrideScrollService"; "stopClose": "clrModalPreventClose"; "labelledBy": "clrModalLabelledById"; }, { "_openChanged": "clrModalOpenChange"; "altClose": "clrModalAlternateClose"; }, never, [".modal-nav", ".modal-title", ".modal-body", ".modal-footer"]>;
|
|
31
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clr/angular",
|
|
3
|
-
"version": "13.0.2",
|
|
4
3
|
"description": "Angular components for Clarity",
|
|
5
4
|
"homepage": "https://clarity.design",
|
|
6
5
|
"keywords": [
|
|
@@ -21,17 +20,7 @@
|
|
|
21
20
|
"peerDependencies": {
|
|
22
21
|
"@angular/common": "^13.0.0",
|
|
23
22
|
"@angular/core": "^13.0.0",
|
|
24
|
-
"@cds/core": "next || ^6.0.0 || ^5.6.0"
|
|
25
|
-
"@clr/ui": "13.0.2"
|
|
26
|
-
},
|
|
27
|
-
"schematics": "./schematics/collection.json",
|
|
28
|
-
"ng-update": {
|
|
29
|
-
"migrations": "./schematics/migration-collection.json",
|
|
30
|
-
"packageGroup": [
|
|
31
|
-
"@clr/angular",
|
|
32
|
-
"@clr/ui",
|
|
33
|
-
"@cds/core"
|
|
34
|
-
]
|
|
23
|
+
"@cds/core": "next || ^6.0.0 || ^5.6.0"
|
|
35
24
|
},
|
|
36
25
|
"module": "fesm2015/clr-angular.mjs",
|
|
37
26
|
"es2020": "fesm2020/clr-angular.mjs",
|
|
@@ -55,5 +44,6 @@
|
|
|
55
44
|
"sideEffects": false,
|
|
56
45
|
"dependencies": {
|
|
57
46
|
"tslib": "^2.3.0"
|
|
58
|
-
}
|
|
59
|
-
|
|
47
|
+
},
|
|
48
|
+
"version": "13.0.3"
|
|
49
|
+
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
export interface DynamicWrapper {
|
|
7
2
|
_dynamic: boolean;
|
|
8
3
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
3
|
-
* This software is released under MIT license.
|
|
4
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
5
|
-
*/
|
|
6
1
|
import { InjectionToken, Injector, Type, ViewContainerRef } from '@angular/core';
|
|
7
2
|
import { DynamicWrapper } from './dynamic-wrapper';
|
|
8
3
|
/**
|
|
@@ -192,7 +192,10 @@ export interface ClrCommonStrings {
|
|
|
192
192
|
/**
|
|
193
193
|
* Datepicker UI labels
|
|
194
194
|
*/
|
|
195
|
+
datepickerDialogLabel: string;
|
|
195
196
|
datepickerToggle: string;
|
|
197
|
+
datepickerToggleChooseDateLabel: string;
|
|
198
|
+
datepickerToggleChangeDateLabel: string;
|
|
196
199
|
datepickerPreviousMonth: string;
|
|
197
200
|
datepickerCurrentMonth: string;
|
|
198
201
|
datepickerNextMonth: string;
|
|
@@ -262,4 +265,8 @@ export interface ClrCommonStrings {
|
|
|
262
265
|
*/
|
|
263
266
|
passwordHide: string;
|
|
264
267
|
passwordShow: string;
|
|
268
|
+
/**
|
|
269
|
+
* Datagrid footer; sr-only text after the number of selected rows.
|
|
270
|
+
*/
|
|
271
|
+
selectedRows: string;
|
|
265
272
|
}
|
package/wizard/wizard.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
13
13
|
buttonService: ButtonHubService;
|
|
14
14
|
headerActionService: HeaderActionService;
|
|
15
15
|
private elementRef;
|
|
16
|
+
wizardId: string;
|
|
16
17
|
/**
|
|
17
18
|
* Set the modal size of the wizard. Set using `[clrWizardSize]` input.
|
|
18
19
|
*/
|
|
@@ -131,7 +132,7 @@ export declare class ClrWizard implements OnDestroy, AfterContentInit, DoCheck {
|
|
|
131
132
|
get isStatic(): boolean;
|
|
132
133
|
private differ;
|
|
133
134
|
private subscriptions;
|
|
134
|
-
constructor(platformId: any, navService: WizardNavigationService, pageCollection: PageCollectionService, buttonService: ButtonHubService, headerActionService: HeaderActionService, elementRef: ElementRef, differs: IterableDiffers);
|
|
135
|
+
constructor(platformId: any, navService: WizardNavigationService, pageCollection: PageCollectionService, buttonService: ButtonHubService, headerActionService: HeaderActionService, elementRef: ElementRef, differs: IterableDiffers, wizardId: string);
|
|
135
136
|
ngAfterContentInit(): void;
|
|
136
137
|
ngDoCheck(): void;
|
|
137
138
|
ngOnDestroy(): void;
|
package/schematics/add/index.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2016-2021 VMware, Inc. All Rights Reserved.
|
|
4
|
-
* This software is released under MIT license.
|
|
5
|
-
* The full license information can be found in LICENSE in the root directory of this project.
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.getVersion = void 0;
|
|
9
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
10
|
-
const fs_1 = require("fs");
|
|
11
|
-
const path_1 = require("path");
|
|
12
|
-
const get_json_file_1 = require("../utility/get-json-file");
|
|
13
|
-
const update_json_file_1 = require("../utility/update-json-file");
|
|
14
|
-
const find_app_module_1 = require("../utility/find-app-module");
|
|
15
|
-
const add_module_import_to_module_1 = require("../utility/add-module-import-to-module");
|
|
16
|
-
const run_npm_install_1 = require("../utility/run-npm-install");
|
|
17
|
-
const add_assets_to_config_file_1 = require("../utility/add-assets-to-config-file");
|
|
18
|
-
const angular_config_filename_1 = require("../utility/angular-config-filename");
|
|
19
|
-
let projectSettings = {};
|
|
20
|
-
// TODO: Stop using fs, keep the version somewhere else
|
|
21
|
-
// Determine where to load the package.json, if doing local dev or not
|
|
22
|
-
let corePackage;
|
|
23
|
-
if ((0, fs_1.existsSync)((0, path_1.join)(__dirname, '../../package.json'))) {
|
|
24
|
-
corePackage = require('../../package.json');
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
corePackage = require('../../../../package.json');
|
|
28
|
-
}
|
|
29
|
-
function setProjectSettings(options) {
|
|
30
|
-
return (host) => {
|
|
31
|
-
if (!host.exists(angular_config_filename_1.configFileName)) {
|
|
32
|
-
throw new schematics_1.SchematicsException('Could not install Clarity, requires Angular and Angular CLI version 6 or greater');
|
|
33
|
-
}
|
|
34
|
-
projectSettings = Object.assign({}, options);
|
|
35
|
-
const config = (0, get_json_file_1.getJsonFile)(host, angular_config_filename_1.configFileName);
|
|
36
|
-
if (!options.project) {
|
|
37
|
-
if (!config.defaultProject) {
|
|
38
|
-
throw new schematics_1.SchematicsException('Could not find a default project, please specify --project PROJECT_NAME');
|
|
39
|
-
}
|
|
40
|
-
projectSettings.project = config.defaultProject;
|
|
41
|
-
}
|
|
42
|
-
projectSettings.module = (0, find_app_module_1.findAppModule)(host, config, projectSettings.project || '');
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
// Checks if a version of Angular is compatible with current or next
|
|
46
|
-
function getVersion(ngVersion, clrVersion) {
|
|
47
|
-
const majorNgVersion = Number.parseInt(ngVersion.split('.')[0].replace(/\D/g, ''));
|
|
48
|
-
if (majorNgVersion >= 12) {
|
|
49
|
-
return getVersionsAfterTwelve(ngVersion, clrVersion);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
// Otherwise, just link to installed version for latest or next releases
|
|
53
|
-
return getVersionsBeforeTwelve(ngVersion, clrVersion);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
exports.getVersion = getVersion;
|
|
57
|
-
function getVersionsAfterTwelve(ngVersion, clrVersion) {
|
|
58
|
-
const majorNgVersion = Number.parseInt(ngVersion.split('.')[0].replace(/\D/g, ''));
|
|
59
|
-
const majorClrVersion = Number.parseInt(clrVersion.split('.')[0].replace(/\D/g, ''));
|
|
60
|
-
if (majorNgVersion === majorClrVersion) {
|
|
61
|
-
return clrVersion;
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
// Otherwise, just link to installed version for latest or next releases
|
|
65
|
-
throw new schematics_1.SchematicsException(`Clarity ${majorClrVersion} doesn't support Angular ${majorNgVersion}`);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
function getVersionsBeforeTwelve(ngVersion, clrVersion) {
|
|
69
|
-
const diff = 6; // Number disparity between Angular and Clarity, this works as long as we stay in sync with versioning
|
|
70
|
-
const majorNgVersion = Number.parseInt(ngVersion.split('.')[0].replace(/\D/g, ''));
|
|
71
|
-
const majorClrVersion = Number.parseInt(clrVersion.split('.')[0].replace(/\D/g, ''));
|
|
72
|
-
if (majorNgVersion - majorClrVersion < diff) {
|
|
73
|
-
return `^${majorNgVersion - diff}.0.0`;
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
// Otherwise, just link to installed version for latest or next releases
|
|
77
|
-
return clrVersion;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function addClarityDependencies(host) {
|
|
81
|
-
(0, update_json_file_1.updateJsonFile)(host, 'package.json', json => {
|
|
82
|
-
const version = getVersion(json.dependencies['@angular/core'], corePackage.version);
|
|
83
|
-
json.dependencies['@clr/angular'] = version;
|
|
84
|
-
json.dependencies['@clr/ui'] = version;
|
|
85
|
-
json.dependencies['@cds/core'] = '^5.0.0';
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function addAssetsToConfigFile(host, context) {
|
|
89
|
-
(0, update_json_file_1.updateJsonFile)(host, angular_config_filename_1.configFileName, json => {
|
|
90
|
-
const project = Object.keys(json.projects).find(key => key === projectSettings.project);
|
|
91
|
-
if (!project) {
|
|
92
|
-
context.logger.warn(`Could not update CLI config file to add styles. You'll have to add them manually.`);
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const target = json.projects[project].targets || json.projects[project].architect;
|
|
96
|
-
const pathPrefix = json.apps ? '../' : '';
|
|
97
|
-
(0, add_assets_to_config_file_1.updateStyleAssets)(target, pathPrefix, ['node_modules/@clr/ui/clr-ui.min.css']);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function importClarityModule() {
|
|
101
|
-
return (host) => (0, add_module_import_to_module_1.addModuleImportToModule)(host, 'ClarityModule', '@clr/angular', projectSettings.module || '');
|
|
102
|
-
}
|
|
103
|
-
function importBrowserAnimationsModule() {
|
|
104
|
-
return (host) => (0, add_module_import_to_module_1.addModuleImportToModule)(host, 'BrowserAnimationsModule', '@angular/platform-browser/animations', projectSettings.module || '');
|
|
105
|
-
}
|
|
106
|
-
// Chain a series of tasks to setup Clarity
|
|
107
|
-
// 1. Add Clarity dependencies
|
|
108
|
-
// 2. Add style assets to angular.json
|
|
109
|
-
// 3. Add ClarityModule to NgModule
|
|
110
|
-
// 4. Add BrowserAnimationsModule to NgModule
|
|
111
|
-
// 5. Run npm install
|
|
112
|
-
function default_1(options) {
|
|
113
|
-
return (0, schematics_1.chain)([
|
|
114
|
-
setProjectSettings(options),
|
|
115
|
-
addClarityDependencies,
|
|
116
|
-
addAssetsToConfigFile,
|
|
117
|
-
importClarityModule,
|
|
118
|
-
importBrowserAnimationsModule,
|
|
119
|
-
run_npm_install_1.runNpmInstall,
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
exports.default = default_1;
|
|
123
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/schematics/src/add/index.ts"],"names":[],"mappings":"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"}
|