@clr/angular 12.0.12 → 12.0.13
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/bundles/clr-angular.umd.js +728 -591
- package/bundles/clr-angular.umd.js.map +1 -1
- package/clr-angular.metadata.json +1 -1
- package/data/stack-view/stack-block.d.ts +11 -0
- package/data/stack-view/stack-input.d.ts +0 -6
- package/data/stack-view/stack-select.d.ts +0 -5
- package/data/stack-view/stack-view-custom-tags.d.ts +10 -0
- package/esm2015/accordion/accordion-content.js +2 -2
- package/esm2015/accordion/accordion-description.js +2 -2
- package/esm2015/accordion/accordion-panel.js +2 -2
- package/esm2015/accordion/accordion-title.js +2 -2
- package/esm2015/accordion/accordion.js +2 -2
- package/esm2015/accordion/accordion.module.js +2 -2
- package/esm2015/accordion/chocolate/accordion-oompa-loompa.js +2 -2
- package/esm2015/accordion/chocolate/accordion-willy-wonka.js +2 -2
- package/esm2015/accordion/enums/accordion-status.enum.js +2 -2
- package/esm2015/accordion/enums/accordion-strategy.enum.js +2 -2
- package/esm2015/accordion/index.js +2 -2
- package/esm2015/accordion/models/accordion.model.js +2 -2
- package/esm2015/accordion/providers/accordion.service.js +2 -2
- package/esm2015/accordion/stepper/chocolate/stepper-oompa-loompa.js +2 -2
- package/esm2015/accordion/stepper/chocolate/stepper-willy-wonka.js +2 -2
- package/esm2015/accordion/stepper/index.js +2 -2
- package/esm2015/accordion/stepper/models/stepper.model.js +2 -2
- package/esm2015/accordion/stepper/providers/stepper.service.js +2 -2
- package/esm2015/accordion/stepper/step-button.js +2 -2
- package/esm2015/accordion/stepper/stepper-panel.js +2 -2
- package/esm2015/accordion/stepper/stepper.js +2 -2
- package/esm2015/accordion/stepper/stepper.module.js +2 -2
- package/esm2015/accordion/utils/animation.js +2 -2
- package/esm2015/button/button-group/button-group.js +2 -2
- package/esm2015/button/button-group/button-group.module.js +2 -2
- package/esm2015/button/button-group/button.js +2 -2
- package/esm2015/button/button-group/index.js +2 -2
- package/esm2015/button/button-loading/index.js +2 -2
- package/esm2015/button/button-loading/loading-button.js +2 -2
- package/esm2015/button/button-loading/loading-button.module.js +2 -2
- package/esm2015/button/button.module.js +2 -2
- package/esm2015/button/index.js +2 -2
- package/esm2015/button/providers/button-in-group.service.js +2 -2
- package/esm2015/clr-angular.module.js +2 -2
- package/esm2015/data/data.module.js +2 -2
- package/esm2015/data/datagrid/built-in/comparators/datagrid-property-comparator.js +6 -1
- package/esm2015/data/datagrid/built-in/filters/datagrid-numeric-filter-impl.js +2 -2
- package/esm2015/data/datagrid/built-in/filters/datagrid-numeric-filter.js +2 -2
- package/esm2015/data/datagrid/built-in/filters/datagrid-property-numeric-filter.js +6 -1
- package/esm2015/data/datagrid/built-in/filters/datagrid-property-string-filter.js +6 -1
- package/esm2015/data/datagrid/built-in/filters/datagrid-string-filter-impl.js +2 -2
- package/esm2015/data/datagrid/built-in/filters/datagrid-string-filter.js +2 -2
- package/esm2015/data/datagrid/built-in/nested-property.js +2 -2
- package/esm2015/data/datagrid/chocolate/actionable-oompa-loompa.js +2 -2
- package/esm2015/data/datagrid/chocolate/datagrid-willy-wonka.js +2 -2
- package/esm2015/data/datagrid/chocolate/expandable-oompa-loompa.js +2 -2
- package/esm2015/data/datagrid/datagrid-action-bar.js +2 -2
- package/esm2015/data/datagrid/datagrid-action-overflow.js +2 -2
- package/esm2015/data/datagrid/datagrid-cell.js +2 -2
- package/esm2015/data/datagrid/datagrid-column-separator.js +2 -2
- package/esm2015/data/datagrid/datagrid-column-toggle-button.js +2 -2
- package/esm2015/data/datagrid/datagrid-column-toggle-title.js +2 -2
- package/esm2015/data/datagrid/datagrid-column-toggle.js +2 -2
- package/esm2015/data/datagrid/datagrid-column.js +2 -2
- package/esm2015/data/datagrid/datagrid-detail-body.js +2 -2
- package/esm2015/data/datagrid/datagrid-detail-header.js +2 -2
- package/esm2015/data/datagrid/datagrid-detail-registerer.js +2 -2
- package/esm2015/data/datagrid/datagrid-detail.js +2 -2
- package/esm2015/data/datagrid/datagrid-filter.js +2 -2
- package/esm2015/data/datagrid/datagrid-footer.js +2 -2
- package/esm2015/data/datagrid/datagrid-hideable-column.js +2 -2
- package/esm2015/data/datagrid/datagrid-if-detail.js +2 -2
- package/esm2015/data/datagrid/datagrid-if-expanded.service.js +2 -2
- package/esm2015/data/datagrid/datagrid-items-trackby.js +2 -2
- package/esm2015/data/datagrid/datagrid-items.js +2 -2
- package/esm2015/data/datagrid/datagrid-page-size.js +2 -2
- package/esm2015/data/datagrid/datagrid-pagination.js +2 -2
- package/esm2015/data/datagrid/datagrid-placeholder.js +2 -2
- package/esm2015/data/datagrid/datagrid-row-detail.js +1 -1
- package/esm2015/data/datagrid/datagrid-row.js +2 -2
- package/esm2015/data/datagrid/datagrid.js +2 -2
- package/esm2015/data/datagrid/datagrid.module.js +2 -2
- package/esm2015/data/datagrid/enums/column-changes.enum.js +2 -2
- package/esm2015/data/datagrid/enums/display-mode.enum.js +2 -2
- package/esm2015/data/datagrid/enums/render-step.enum.js +2 -2
- package/esm2015/data/datagrid/enums/selection-type.js +2 -2
- package/esm2015/data/datagrid/enums/sort-order.enum.js +2 -2
- package/esm2015/data/datagrid/index.js +2 -2
- package/esm2015/data/datagrid/interfaces/column-state.interface.js +6 -1
- package/esm2015/data/datagrid/interfaces/comparator.interface.js +6 -1
- package/esm2015/data/datagrid/interfaces/filter.interface.js +6 -1
- package/esm2015/data/datagrid/interfaces/numeric-filter.interface.js +6 -1
- package/esm2015/data/datagrid/interfaces/state.interface.js +6 -1
- package/esm2015/data/datagrid/interfaces/string-filter.interface.js +6 -1
- package/esm2015/data/datagrid/providers/column-resizer.service.js +2 -2
- package/esm2015/data/datagrid/providers/column-state.provider.js +2 -2
- package/esm2015/data/datagrid/providers/columns.service.js +2 -2
- package/esm2015/data/datagrid/providers/custom-filter.js +2 -2
- package/esm2015/data/datagrid/providers/detail.service.js +2 -2
- package/esm2015/data/datagrid/providers/display-mode.service.js +2 -2
- package/esm2015/data/datagrid/providers/filters.js +2 -2
- package/esm2015/data/datagrid/providers/global-expandable-rows.js +2 -2
- package/esm2015/data/datagrid/providers/items.js +2 -2
- package/esm2015/data/datagrid/providers/page.js +2 -2
- package/esm2015/data/datagrid/providers/row-action-service.js +2 -2
- package/esm2015/data/datagrid/providers/selection.js +2 -2
- package/esm2015/data/datagrid/providers/sort.js +2 -2
- package/esm2015/data/datagrid/providers/state-debouncer.provider.js +2 -2
- package/esm2015/data/datagrid/providers/state.provider.js +2 -2
- package/esm2015/data/datagrid/providers/table-size.service.js +2 -2
- package/esm2015/data/datagrid/render/cell-renderer.js +2 -2
- package/esm2015/data/datagrid/render/constants.js +2 -2
- package/esm2015/data/datagrid/render/header-renderer.js +2 -2
- package/esm2015/data/datagrid/render/main-renderer.js +2 -2
- package/esm2015/data/datagrid/render/noop-dom-adapter.js +2 -2
- package/esm2015/data/datagrid/render/render-organizer.js +2 -2
- package/esm2015/data/datagrid/render/row-renderer.js +2 -2
- package/esm2015/data/datagrid/utils/datagrid-filter-registrar.js +2 -2
- package/esm2015/data/datagrid/wrapped-cell.js +2 -2
- package/esm2015/data/datagrid/wrapped-column.js +2 -2
- package/esm2015/data/datagrid/wrapped-row.js +2 -2
- package/esm2015/data/index.js +2 -2
- package/esm2015/data/stack-view/index.js +2 -2
- package/esm2015/data/stack-view/stack-block.js +27 -9
- package/esm2015/data/stack-view/stack-content-input.js +2 -2
- package/esm2015/data/stack-view/stack-control.js +2 -2
- package/esm2015/data/stack-view/stack-header.js +2 -2
- package/esm2015/data/stack-view/stack-input.js +2 -2
- package/esm2015/data/stack-view/stack-select.js +2 -2
- package/esm2015/data/stack-view/stack-view-custom-tags.js +45 -4
- package/esm2015/data/stack-view/stack-view.js +2 -2
- package/esm2015/data/stack-view/stack-view.module.js +4 -3
- package/esm2015/data/tree-view/index.js +2 -2
- package/esm2015/data/tree-view/models/async-array.js +2 -2
- package/esm2015/data/tree-view/models/declarative-tree-node.model.js +2 -2
- package/esm2015/data/tree-view/models/recursive-tree-node.model.js +2 -2
- package/esm2015/data/tree-view/models/selected-state.enum.js +2 -2
- package/esm2015/data/tree-view/models/tree-node.model.js +2 -2
- package/esm2015/data/tree-view/recursive-children.js +2 -2
- package/esm2015/data/tree-view/recursive-for-of.js +2 -2
- package/esm2015/data/tree-view/tree-features.service.js +2 -2
- package/esm2015/data/tree-view/tree-focus-manager.service.js +2 -2
- package/esm2015/data/tree-view/tree-node-link.js +2 -2
- package/esm2015/data/tree-view/tree-view.module.js +2 -2
- package/esm2015/data/tree-view/tree.js +2 -2
- package/esm2015/emphasis/alert/alert-text.js +2 -2
- package/esm2015/emphasis/alert/alert.js +2 -2
- package/esm2015/emphasis/alert/alert.module.js +2 -2
- package/esm2015/emphasis/alert/alerts-pager.js +2 -2
- package/esm2015/emphasis/alert/alerts.js +2 -2
- package/esm2015/emphasis/alert/index.js +2 -2
- package/esm2015/emphasis/alert/providers/icon-and-types.service.js +2 -2
- package/esm2015/emphasis/alert/providers/multi-alert.service.js +2 -2
- package/esm2015/emphasis/alert/utils/alert-info-object.js +2 -2
- package/esm2015/emphasis/alert/utils/alert-types.js +2 -2
- package/esm2015/emphasis/emphasis.module.js +2 -2
- package/esm2015/emphasis/index.js +2 -2
- package/esm2015/forms/checkbox/checkbox-container.js +3 -3
- package/esm2015/forms/checkbox/checkbox-wrapper.js +3 -3
- package/esm2015/forms/checkbox/checkbox.js +3 -3
- package/esm2015/forms/checkbox/checkbox.module.js +3 -3
- package/esm2015/forms/checkbox/index.js +2 -2
- package/esm2015/forms/combobox/combobox-container.js +3 -3
- package/esm2015/forms/combobox/combobox.js +3 -3
- package/esm2015/forms/combobox/combobox.module.js +3 -3
- package/esm2015/forms/combobox/index.js +2 -2
- package/esm2015/forms/combobox/model/combobox.model.js +3 -3
- package/esm2015/forms/combobox/model/multi-select-combobox.model.js +3 -3
- package/esm2015/forms/combobox/model/pseudo-focus.model.js +3 -3
- package/esm2015/forms/combobox/model/single-select-combobox.model.js +3 -3
- package/esm2015/forms/combobox/option-items.directive.js +2 -2
- package/esm2015/forms/combobox/option-selected.directive.js +2 -2
- package/esm2015/forms/combobox/option.js +3 -3
- package/esm2015/forms/combobox/options.js +3 -3
- package/esm2015/forms/combobox/providers/combobox-container.service.js +2 -2
- package/esm2015/forms/combobox/providers/combobox-focus-handler.service.js +2 -2
- package/esm2015/forms/combobox/providers/option-selection.service.js +2 -2
- package/esm2015/forms/common/abstract-container.js +3 -3
- package/esm2015/forms/common/abstract-control.js +3 -3
- package/esm2015/forms/common/common.module.js +3 -3
- package/esm2015/forms/common/control-container.js +3 -3
- package/esm2015/forms/common/control.js +2 -2
- package/esm2015/forms/common/error.js +3 -3
- package/esm2015/forms/common/form.js +3 -3
- package/esm2015/forms/common/helper.js +3 -3
- package/esm2015/forms/common/if-control-state/abstract-if-state.js +2 -2
- package/esm2015/forms/common/if-control-state/if-control-state.service.js +2 -2
- package/esm2015/forms/common/if-control-state/if-error.js +2 -2
- package/esm2015/forms/common/if-control-state/if-success.js +2 -2
- package/esm2015/forms/common/index.js +2 -2
- package/esm2015/forms/common/label.js +2 -2
- package/esm2015/forms/common/layout.js +3 -3
- package/esm2015/forms/common/providers/container-id.service.js +6 -1
- package/esm2015/forms/common/providers/control-class.service.js +2 -2
- package/esm2015/forms/common/providers/control-id.service.js +2 -2
- package/esm2015/forms/common/providers/focus.service.js +2 -2
- package/esm2015/forms/common/providers/layout.service.js +2 -2
- package/esm2015/forms/common/providers/mark-control.service.js +2 -2
- package/esm2015/forms/common/providers/ng-control.service.js +2 -2
- package/esm2015/forms/common/success.js +3 -3
- package/esm2015/forms/common/wrapped-control.js +3 -3
- package/esm2015/forms/datalist/datalist-container.js +3 -3
- package/esm2015/forms/datalist/datalist-input.js +3 -3
- package/esm2015/forms/datalist/datalist.js +2 -2
- package/esm2015/forms/datalist/datalist.module.js +2 -2
- package/esm2015/forms/datalist/index.js +2 -2
- package/esm2015/forms/datalist/providers/datalist-id.service.js +2 -2
- package/esm2015/forms/datepicker/calendar.js +2 -2
- package/esm2015/forms/datepicker/date-container.js +36 -6
- package/esm2015/forms/datepicker/date-input.js +2 -2
- package/esm2015/forms/datepicker/datepicker-view-manager.js +8 -3
- package/esm2015/forms/datepicker/datepicker.module.js +2 -2
- package/esm2015/forms/datepicker/day.js +3 -2
- package/esm2015/forms/datepicker/daypicker.js +2 -2
- package/esm2015/forms/datepicker/index.js +2 -2
- package/esm2015/forms/datepicker/interfaces/date-range.interface.js +2 -2
- package/esm2015/forms/datepicker/interfaces/day-of-week.interface.js +2 -2
- package/esm2015/forms/datepicker/model/calendar-view.model.js +2 -2
- package/esm2015/forms/datepicker/model/calendar.model.js +2 -2
- package/esm2015/forms/datepicker/model/day-view.model.js +2 -2
- package/esm2015/forms/datepicker/model/day.model.js +2 -2
- package/esm2015/forms/datepicker/model/year-range.model.js +2 -2
- package/esm2015/forms/datepicker/monthpicker.js +2 -2
- package/esm2015/forms/datepicker/providers/date-form-control.service.js +2 -2
- package/esm2015/forms/datepicker/providers/date-io.service.js +2 -2
- package/esm2015/forms/datepicker/providers/date-navigation.service.js +2 -2
- package/esm2015/forms/datepicker/providers/datepicker-enabled.service.js +2 -2
- package/esm2015/forms/datepicker/providers/datepicker-focus.service.js +2 -2
- package/esm2015/forms/datepicker/providers/locale-helper.service.js +2 -2
- package/esm2015/forms/datepicker/providers/view-manager.service.js +2 -2
- package/esm2015/forms/datepicker/utils/constants.js +2 -2
- package/esm2015/forms/datepicker/utils/date-utils.js +2 -2
- package/esm2015/forms/datepicker/yearpicker.js +2 -2
- package/esm2015/forms/forms.module.js +2 -2
- package/esm2015/forms/index.js +2 -2
- package/esm2015/forms/input/index.js +2 -2
- package/esm2015/forms/input/input-container.js +3 -3
- package/esm2015/forms/input/input.js +3 -3
- package/esm2015/forms/input/input.module.js +3 -3
- package/esm2015/forms/password/index.js +2 -2
- package/esm2015/forms/password/password-container.js +3 -3
- package/esm2015/forms/password/password.js +3 -3
- package/esm2015/forms/password/password.module.js +3 -3
- package/esm2015/forms/radio/index.js +2 -2
- package/esm2015/forms/radio/radio-container.js +3 -3
- package/esm2015/forms/radio/radio-wrapper.js +3 -3
- package/esm2015/forms/radio/radio.js +3 -3
- package/esm2015/forms/radio/radio.module.js +3 -3
- package/esm2015/forms/range/index.js +2 -2
- package/esm2015/forms/range/range-container.js +3 -3
- package/esm2015/forms/range/range.js +3 -3
- package/esm2015/forms/range/range.module.js +3 -3
- package/esm2015/forms/select/index.js +2 -2
- package/esm2015/forms/select/select-container.js +3 -3
- package/esm2015/forms/select/select.js +3 -3
- package/esm2015/forms/select/select.module.js +3 -3
- package/esm2015/forms/textarea/index.js +2 -2
- package/esm2015/forms/textarea/textarea-container.js +3 -3
- package/esm2015/forms/textarea/textarea.js +3 -3
- package/esm2015/forms/textarea/textarea.module.js +3 -3
- package/esm2015/icon/icon.js +2 -2
- package/esm2015/icon/icon.module.js +2 -2
- package/esm2015/icon/index.js +2 -2
- package/esm2015/index.js +2 -2
- package/esm2015/layout/index.js +2 -2
- package/esm2015/layout/layout.module.js +2 -2
- package/esm2015/layout/main-container/index.js +2 -2
- package/esm2015/layout/main-container/main-container.js +2 -2
- package/esm2015/layout/main-container/main-container.module.js +2 -2
- package/esm2015/layout/nav/chocolate/index.js +2 -2
- package/esm2015/layout/nav/chocolate/main-container-willy-wonka.js +2 -2
- package/esm2015/layout/nav/chocolate/nav-detection-oompa-loompa.js +2 -2
- package/esm2015/layout/nav/header.js +2 -2
- package/esm2015/layout/nav/index.js +2 -2
- package/esm2015/layout/nav/nav-level.js +2 -2
- package/esm2015/layout/nav/navigation.module.js +2 -2
- package/esm2015/layout/nav/providers/responsive-navigation.service.js +2 -2
- package/esm2015/layout/nav/responsive-nav-codes.js +2 -2
- package/esm2015/layout/nav/responsive-nav-control-message.js +2 -2
- package/esm2015/layout/tabs/chocolate/active-oompa-loompa.js +2 -2
- package/esm2015/layout/tabs/chocolate/tabs-willy-wonka.js +2 -2
- package/esm2015/layout/tabs/enums/tabs-layout.enum.js +2 -2
- package/esm2015/layout/tabs/index.js +2 -2
- package/esm2015/layout/tabs/providers/tabs.service.js +2 -2
- package/esm2015/layout/tabs/tab-content.js +2 -3
- package/esm2015/layout/tabs/tab-link.directive.js +2 -3
- package/esm2015/layout/tabs/tab-overflow-content.js +2 -2
- package/esm2015/layout/tabs/tab.js +2 -2
- package/esm2015/layout/tabs/tabs-id.provider.js +2 -2
- package/esm2015/layout/tabs/tabs.js +2 -2
- package/esm2015/layout/tabs/tabs.module.js +2 -2
- package/esm2015/layout/vertical-nav/index.js +2 -2
- package/esm2015/layout/vertical-nav/providers/vertical-nav-group-registration.service.js +2 -2
- package/esm2015/layout/vertical-nav/providers/vertical-nav-group.service.js +2 -2
- package/esm2015/layout/vertical-nav/providers/vertical-nav-icon.service.js +2 -2
- package/esm2015/layout/vertical-nav/providers/vertical-nav.service.js +2 -2
- package/esm2015/layout/vertical-nav/vertical-nav-group-children.js +2 -2
- package/esm2015/layout/vertical-nav/vertical-nav-group.js +5 -3
- package/esm2015/layout/vertical-nav/vertical-nav-icon.js +2 -2
- package/esm2015/layout/vertical-nav/vertical-nav-link.js +2 -2
- package/esm2015/layout/vertical-nav/vertical-nav.js +2 -2
- package/esm2015/layout/vertical-nav/vertical-nav.module.js +2 -2
- package/esm2015/modal/index.js +2 -2
- package/esm2015/modal/modal.js +3 -3
- package/esm2015/modal/modal.module.js +2 -2
- package/esm2015/popover/common/abstract-popover.js +2 -2
- package/esm2015/popover/common/popover-host-anchor.token.js +2 -2
- package/esm2015/popover/common/popover-options.interface.js +2 -2
- package/esm2015/popover/common/popover.js +2 -2
- package/esm2015/popover/dropdown/dropdown-item.js +2 -2
- package/esm2015/popover/dropdown/dropdown-menu.js +2 -2
- package/esm2015/popover/dropdown/dropdown-trigger.js +2 -2
- package/esm2015/popover/dropdown/dropdown.js +2 -2
- package/esm2015/popover/dropdown/dropdown.module.js +2 -2
- package/esm2015/popover/dropdown/index.js +2 -2
- package/esm2015/popover/dropdown/menu-positions.js +2 -2
- package/esm2015/popover/dropdown/providers/dropdown-focus-handler.service.js +2 -2
- package/esm2015/popover/dropdown/providers/dropdown.service.js +2 -2
- package/esm2015/popover/index.js +2 -2
- package/esm2015/popover/popover.module.js +2 -2
- package/esm2015/popover/signpost/index.js +2 -2
- package/esm2015/popover/signpost/providers/signpost-focus-manager.service.js +2 -2
- package/esm2015/popover/signpost/providers/signpost-id.service.js +2 -3
- package/esm2015/popover/signpost/signpost-content.js +2 -2
- package/esm2015/popover/signpost/signpost-positions.js +2 -2
- package/esm2015/popover/signpost/signpost-trigger.js +2 -2
- package/esm2015/popover/signpost/signpost.js +2 -2
- package/esm2015/popover/signpost/signpost.module.js +2 -2
- package/esm2015/popover/tooltip/index.js +2 -2
- package/esm2015/popover/tooltip/providers/tooltip-id.service.js +2 -2
- package/esm2015/popover/tooltip/tooltip-content.js +2 -2
- package/esm2015/popover/tooltip/tooltip-trigger.js +2 -2
- package/esm2015/popover/tooltip/tooltip.js +2 -2
- package/esm2015/popover/tooltip/tooltip.module.js +2 -2
- package/esm2015/progress/progress-bars/index.js +2 -2
- package/esm2015/progress/progress-bars/progress-bar.js +2 -2
- package/esm2015/progress/progress-bars/progress-bar.module.js +2 -2
- package/esm2015/progress/spinner/index.js +2 -2
- package/esm2015/progress/spinner/spinner.js +2 -2
- package/esm2015/progress/spinner/spinner.module.js +2 -2
- package/esm2015/public-api.js +2 -2
- package/esm2015/timeline/enums/timeline-layout.enum.js +2 -2
- package/esm2015/timeline/enums/timeline-step-state.enum.js +2 -2
- package/esm2015/timeline/index.js +2 -2
- package/esm2015/timeline/interface/icon-attribute.interface.js +2 -2
- package/esm2015/timeline/providers/timeline-icon-attribute.service.js +2 -2
- package/esm2015/timeline/timeline-step-description.js +2 -2
- package/esm2015/timeline/timeline-step-header.js +2 -2
- package/esm2015/timeline/timeline-step-title.js +2 -2
- package/esm2015/timeline/timeline-step.js +2 -2
- package/esm2015/timeline/timeline.js +2 -2
- package/esm2015/timeline/timeline.module.js +2 -2
- package/esm2015/utils/a11y/aria-live.service.js +2 -2
- package/esm2015/utils/a11y/index.js +2 -2
- package/esm2015/utils/animations/collapse/collapse.js +2 -2
- package/esm2015/utils/animations/collapse/index.js +2 -2
- package/esm2015/utils/animations/constants.js +2 -2
- package/esm2015/utils/animations/expandable-animation/expandable-animation.js +2 -2
- package/esm2015/utils/animations/expandable-animation/expandable-animation.module.js +2 -2
- package/esm2015/utils/animations/expandable-animation/index.js +6 -1
- package/esm2015/utils/animations/fade/fade.js +2 -2
- package/esm2015/utils/animations/fade/index.js +2 -2
- package/esm2015/utils/animations/fade-slide/fade-slide.js +2 -2
- package/esm2015/utils/animations/fade-slide/index.js +2 -2
- package/esm2015/utils/animations/index.js +2 -2
- package/esm2015/utils/animations/slide/index.js +2 -2
- package/esm2015/utils/animations/slide/slide.js +2 -2
- package/esm2015/utils/aria/aria.service.js +2 -2
- package/esm2015/utils/breakpoints/breakpoints.js +2 -2
- package/esm2015/utils/chocolate/oompa-loompa.js +2 -2
- package/esm2015/utils/chocolate/willy-wonka.js +2 -2
- package/esm2015/utils/component/is-boolean-attribute-set.js +2 -2
- package/esm2015/utils/conditional/conditional.module.js +2 -2
- package/esm2015/utils/conditional/if-active.directive.js +2 -2
- package/esm2015/utils/conditional/if-active.service.js +2 -2
- package/esm2015/utils/conditional/if-expanded.directive.js +2 -2
- package/esm2015/utils/conditional/if-expanded.service.js +2 -2
- package/esm2015/utils/conditional/if-open.directive.js +2 -2
- package/esm2015/utils/conditional/index.js +2 -2
- package/esm2015/utils/dom-adapter/dom-adapter.js +2 -2
- package/esm2015/utils/drag-and-drop/drag-and-drop.module.js +2 -2
- package/esm2015/utils/drag-and-drop/drag-event.js +6 -1
- package/esm2015/utils/drag-and-drop/drag-handle.js +2 -2
- package/esm2015/utils/drag-and-drop/draggable/draggable.js +2 -2
- package/esm2015/utils/drag-and-drop/draggable-ghost.js +2 -2
- package/esm2015/utils/drag-and-drop/droppable/droppable.js +2 -2
- package/esm2015/utils/drag-and-drop/if-dragged.js +2 -2
- package/esm2015/utils/drag-and-drop/index.js +2 -2
- package/esm2015/utils/drag-and-drop/interfaces/drag-event.interface.js +2 -2
- package/esm2015/utils/drag-and-drop/interfaces/drop-tolerance.interface.js +6 -1
- package/esm2015/utils/drag-and-drop/providers/drag-and-drop-event-bus.service.js +2 -2
- package/esm2015/utils/drag-and-drop/providers/drag-event-listener.service.js +3 -3
- package/esm2015/utils/drag-and-drop/providers/drag-handle-registrar.service.js +2 -2
- package/esm2015/utils/drag-and-drop/providers/draggable-snapshot.service.js +2 -2
- package/esm2015/utils/drag-and-drop/providers/global-drag-mode.service.js +2 -2
- package/esm2015/utils/enums/key-codes.enum.js +2 -2
- package/esm2015/utils/focus/arrow-key-direction.enum.js +2 -2
- package/esm2015/utils/focus/focus-on-view-init/focus-on-view-init.js +2 -2
- package/esm2015/utils/focus/focus-on-view-init/focus-on-view-init.module.js +2 -2
- package/esm2015/utils/focus/focus-on-view-init/focus-on-view-init.provider.js +2 -2
- package/esm2015/utils/focus/focus-on-view-init/index.js +2 -2
- package/esm2015/utils/focus/focus.service.js +2 -2
- package/esm2015/utils/focus/focusable-item/basic-focusable-item.service.js +2 -2
- package/esm2015/utils/focus/focusable-item/custom-focusable-item-provider.js +2 -2
- package/esm2015/utils/focus/focusable-item/focusable-item.js +2 -2
- package/esm2015/utils/focus/focusable-item/linkers.js +2 -2
- package/esm2015/utils/focus/key-focus/enums/focus-direction.enum.js +2 -2
- package/esm2015/utils/focus/key-focus/interfaces.js +2 -2
- package/esm2015/utils/focus/key-focus/key-focus-item.js +2 -2
- package/esm2015/utils/focus/key-focus/key-focus.js +2 -2
- package/esm2015/utils/focus/key-focus/key-focus.module.js +2 -2
- package/esm2015/utils/focus/key-focus/roving-tabindex.js +2 -2
- package/esm2015/utils/focus/key-focus/util.js +2 -2
- package/esm2015/utils/focus/wrap-observable.js +2 -2
- package/esm2015/utils/focus-trap/focus-trap-config.interface.js +2 -2
- package/esm2015/utils/focus-trap/focus-trap-tracker.service.js +2 -2
- package/esm2015/utils/focus-trap/focus-trap.directive.js +2 -2
- package/esm2015/utils/focus-trap/focus-trap.module.js +2 -2
- package/esm2015/utils/focus-trap/index.js +2 -2
- package/esm2015/utils/forms/validation.js +2 -2
- package/esm2015/utils/host-wrapping/dynamic-wrapper.js +3 -3
- package/esm2015/utils/host-wrapping/empty-anchor.js +3 -3
- package/esm2015/utils/host-wrapping/host-wrapper.js +3 -3
- package/esm2015/utils/host-wrapping/host-wrapping.module.js +3 -3
- package/esm2015/utils/i18n/common-strings.default.js +5 -2
- package/esm2015/utils/i18n/common-strings.interface.js +6 -1
- package/esm2015/utils/i18n/common-strings.service.js +2 -2
- package/esm2015/utils/i18n/index.js +2 -2
- package/esm2015/utils/id-generator/id-generator.service.js +2 -2
- package/esm2015/utils/index.js +2 -2
- package/esm2015/utils/key-codes/key-codes.js +2 -2
- package/esm2015/utils/loading/index.js +2 -2
- package/esm2015/utils/loading/loading-listener.js +2 -2
- package/esm2015/utils/loading/loading.js +2 -2
- package/esm2015/utils/loading/loading.module.js +2 -2
- package/esm2015/utils/outside-click/index.js +6 -1
- package/esm2015/utils/outside-click/outside-click.js +2 -2
- package/esm2015/utils/outside-click/outside-click.module.js +2 -2
- package/esm2015/utils/popover/enums/alignment.enum.js +2 -3
- package/esm2015/utils/popover/enums/axis.enum.js +2 -3
- package/esm2015/utils/popover/enums/positions.enum.js +2 -3
- package/esm2015/utils/popover/enums/side.enum.js +2 -3
- package/esm2015/utils/popover/enums/viewport-violation.enum.js +2 -3
- package/esm2015/utils/popover/index.js +2 -3
- package/esm2015/utils/popover/interfaces/popover-content-offset.interface.js +2 -3
- package/esm2015/utils/popover/interfaces/popover-position.interface.js +2 -3
- package/esm2015/utils/popover/interfaces/visibility-coords.interface.js +2 -3
- package/esm2015/utils/popover/popover-anchor.js +2 -3
- package/esm2015/utils/popover/popover-close-button.js +2 -3
- package/esm2015/utils/popover/popover-content.js +2 -3
- package/esm2015/utils/popover/popover-open-close-button.js +2 -3
- package/esm2015/utils/popover/popover.module.js +2 -3
- package/esm2015/utils/popover/position-operators.js +2 -3
- package/esm2015/utils/popover/providers/popover-events.service.js +2 -3
- package/esm2015/utils/popover/providers/popover-position.service.js +2 -3
- package/esm2015/utils/popover/providers/popover-toggle.service.js +2 -3
- package/esm2015/utils/scrolling/scrolling-service.js +2 -2
- package/esm2015/utils/template-ref/index.js +6 -1
- package/esm2015/utils/template-ref/template-ref-container.js +2 -2
- package/esm2015/utils/template-ref/template-ref.module.js +2 -2
- package/esm2015/wizard/index.js +2 -2
- package/esm2015/wizard/providers/button-hub.service.js +2 -2
- package/esm2015/wizard/providers/header-actions.service.js +2 -2
- package/esm2015/wizard/providers/page-collection.service.js +2 -2
- package/esm2015/wizard/providers/wizard-navigation.service.js +2 -2
- package/esm2015/wizard/wizard-button.js +2 -2
- package/esm2015/wizard/wizard-custom-tags.js +2 -2
- package/esm2015/wizard/wizard-header-action.js +2 -2
- package/esm2015/wizard/wizard-page-buttons.js +2 -2
- package/esm2015/wizard/wizard-page-header-actions.js +2 -2
- package/esm2015/wizard/wizard-page-navtitle.js +2 -2
- package/esm2015/wizard/wizard-page-title.js +2 -2
- package/esm2015/wizard/wizard-page.js +2 -2
- package/esm2015/wizard/wizard-stepnav-item.js +2 -2
- package/esm2015/wizard/wizard-stepnav.js +2 -2
- package/esm2015/wizard/wizard.js +2 -2
- package/esm2015/wizard/wizard.module.js +2 -2
- package/fesm2015/clr-angular.js +689 -529
- package/fesm2015/clr-angular.js.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/checkbox/checkbox.module.d.ts +0 -5
- package/forms/combobox/combobox-container.d.ts +0 -5
- package/forms/combobox/combobox.d.ts +0 -5
- package/forms/combobox/combobox.module.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/abstract-control.d.ts +0 -5
- package/forms/common/common.module.d.ts +0 -5
- package/forms/common/control-container.d.ts +0 -5
- package/forms/common/error.d.ts +0 -5
- package/forms/common/form.d.ts +0 -5
- package/forms/common/helper.d.ts +0 -5
- package/forms/common/layout.d.ts +0 -5
- package/forms/common/success.d.ts +0 -5
- package/forms/common/wrapped-control.d.ts +0 -5
- package/forms/datalist/datalist-container.d.ts +0 -5
- package/forms/datalist/datalist-input.d.ts +0 -5
- package/forms/datepicker/date-container.d.ts +11 -2
- package/forms/datepicker/datepicker-view-manager.d.ts +3 -1
- package/forms/input/input-container.d.ts +0 -5
- package/forms/input/input.d.ts +0 -5
- package/forms/input/input.module.d.ts +0 -5
- package/forms/password/password-container.d.ts +0 -5
- package/forms/password/password.d.ts +0 -5
- package/forms/password/password.module.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/radio/radio.module.d.ts +0 -5
- package/forms/range/range-container.d.ts +0 -5
- package/forms/range/range.d.ts +0 -5
- package/forms/range/range.module.d.ts +0 -5
- package/forms/select/select-container.d.ts +0 -5
- package/forms/select/select.d.ts +0 -5
- package/forms/select/select.module.d.ts +0 -5
- package/forms/textarea/textarea-container.d.ts +0 -5
- package/forms/textarea/textarea.d.ts +0 -5
- package/forms/textarea/textarea.module.d.ts +0 -5
- package/layout/vertical-nav/vertical-nav-group.d.ts +1 -0
- package/package.json +5 -15
- package/utils/host-wrapping/dynamic-wrapper.d.ts +0 -5
- package/utils/host-wrapping/empty-anchor.d.ts +0 -5
- package/utils/host-wrapping/host-wrapper.d.ts +0 -5
- package/utils/host-wrapping/host-wrapping.module.d.ts +0 -5
- package/utils/i18n/common-strings.interface.d.ts +3 -0
- 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 -20
- 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-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,71 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
18
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
19
|
-
const setup_project_1 = require("../utility/setup-project");
|
|
20
|
-
const get_file_content_1 = require("../utility/get-file-content");
|
|
21
|
-
const clarityCorePackageName = '@cds/core';
|
|
22
|
-
describe('Migration to version 5.0', () => {
|
|
23
|
-
let runner;
|
|
24
|
-
let workspaceTree;
|
|
25
|
-
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
26
|
-
runner = new testing_1.SchematicTestRunner('migrations', require.resolve('../migration-collection.json'));
|
|
27
|
-
workspaceTree = yield setup_project_1.setupProject(new testing_1.UnitTestTree(new schematics_1.HostTree()), runner, 'foo');
|
|
28
|
-
}));
|
|
29
|
-
it('should add the @cds/core package to the project dependencies', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
-
var _a;
|
|
31
|
-
const packageJsonPath = '/package.json';
|
|
32
|
-
const packageJsonString = (_a = workspaceTree.read(packageJsonPath)) === null || _a === void 0 ? void 0 : _a.toString();
|
|
33
|
-
if (packageJsonString === undefined) {
|
|
34
|
-
fail('Could not read package.json');
|
|
35
|
-
}
|
|
36
|
-
const packageJson = JSON.parse(packageJsonString);
|
|
37
|
-
packageJson.dependencies['@clr/angular'] = '4.0.0';
|
|
38
|
-
workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
|
|
39
|
-
const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
|
|
40
|
-
expect(tree.files).toContain(packageJsonPath);
|
|
41
|
-
const { dependencies } = JSON.parse(get_file_content_1.getFileContent(tree, packageJsonPath));
|
|
42
|
-
expect(dependencies).toBeDefined();
|
|
43
|
-
expect(dependencies[clarityCorePackageName]).toEqual('^5.0.0');
|
|
44
|
-
}));
|
|
45
|
-
it('should not modify the project dependencies if @clr/angular is not a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
46
|
-
const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
|
|
47
|
-
const packageJsonPath = '/package.json';
|
|
48
|
-
expect(tree.files).toContain(packageJsonPath);
|
|
49
|
-
const { dependencies } = JSON.parse(get_file_content_1.getFileContent(tree, packageJsonPath));
|
|
50
|
-
expect(dependencies).toBeDefined();
|
|
51
|
-
expect(dependencies[clarityCorePackageName]).not.toBeDefined();
|
|
52
|
-
}));
|
|
53
|
-
it('should not modify the project dependencies if @cds/core is already a dependency', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
var _b;
|
|
55
|
-
const packageJsonPath = '/package.json';
|
|
56
|
-
const predefinedClarityCoreVersion = 'latest';
|
|
57
|
-
const packageJsonString = (_b = workspaceTree.read(packageJsonPath)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
58
|
-
if (packageJsonString === undefined) {
|
|
59
|
-
fail('Could not read package.json');
|
|
60
|
-
}
|
|
61
|
-
const packageJson = JSON.parse(packageJsonString);
|
|
62
|
-
packageJson.dependencies[clarityCorePackageName] = predefinedClarityCoreVersion;
|
|
63
|
-
workspaceTree.overwrite(packageJsonPath, JSON.stringify(packageJson));
|
|
64
|
-
const tree = yield runner.runSchematicAsync('migration-5.0', {}, workspaceTree).toPromise();
|
|
65
|
-
expect(tree.files).toContain(packageJsonPath);
|
|
66
|
-
const { dependencies } = JSON.parse(get_file_content_1.getFileContent(tree, packageJsonPath));
|
|
67
|
-
expect(dependencies).toBeDefined();
|
|
68
|
-
expect(dependencies[clarityCorePackageName]).toEqual(predefinedClarityCoreVersion);
|
|
69
|
-
}));
|
|
70
|
-
});
|
|
71
|
-
//# sourceMappingURL=update-5.0.0.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-5.0.0.spec.js","sourceRoot":"","sources":["../../../../projects/schematics/src/update/update-5.0.0.spec.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;AAEH,gEAAuF;AACvF,2DAAsD;AACtD,4DAAwD;AACxD,kEAA6D;AAE7D,MAAM,sBAAsB,GAAG,WAAW,CAAC;AAE3C,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,IAAI,MAA2B,CAAC;IAChC,IAAI,aAA2B,CAAC;IAEhC,UAAU,CAAC,GAAS,EAAE;QACpB,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,OAAO,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC,CAAC;QAChG,aAAa,GAAG,MAAM,4BAAY,CAAC,IAAI,sBAAY,CAAC,IAAI,qBAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;IACtF,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,8DAA8D,EAAE,GAAS,EAAE;;QAC5E,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,iBAAiB,GAAG,MAAA,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,0CAAE,QAAQ,EAAE,CAAC;QAC1E,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,IAAI,CAAC,6BAA6B,CAAC,CAAC;SACrC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAkB,CAAC,CAAC;QACnD,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC;QACnD,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;QAEtE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,SAAS,EAAE,CAAC;QAC5F,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,iCAAc,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;QAE3E,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,gFAAgF,EAAE,GAAS,EAAE;QAC9F,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,SAAS,EAAE,CAAC;QAC5F,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,iCAAc,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;QAE3E,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;IACjE,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,iFAAiF,EAAE,GAAS,EAAE;;QAC/F,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,MAAM,4BAA4B,GAAG,QAAQ,CAAC;QAC9C,MAAM,iBAAiB,GAAG,MAAA,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,0CAAE,QAAQ,EAAE,CAAC;QAC1E,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,IAAI,CAAC,6BAA6B,CAAC,CAAC;SACrC;QACD,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAkB,CAAC,CAAC;QACnD,WAAW,CAAC,YAAY,CAAC,sBAAsB,CAAC,GAAG,4BAA4B,CAAC;QAChF,aAAa,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC;QAEtE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,eAAe,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC,SAAS,EAAE,CAAC;QAC5F,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,iCAAc,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;QAE3E,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QACnC,MAAM,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAC;IACrF,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,25 +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.updateStyleAssets = void 0;
|
|
9
|
-
function stripExtension(fileName) {
|
|
10
|
-
const extensionStartIndex = fileName.indexOf('.');
|
|
11
|
-
return extensionStartIndex ? fileName.substring(0, extensionStartIndex) : fileName;
|
|
12
|
-
}
|
|
13
|
-
function updateStyleAssets(target, pathPrefix, assets) {
|
|
14
|
-
const styles = target.build.options.styles || [];
|
|
15
|
-
const stylesSearch = styles.join('|');
|
|
16
|
-
assets.forEach(asset => {
|
|
17
|
-
const assetWithoutExtension = stripExtension(asset);
|
|
18
|
-
if (stylesSearch.search(assetWithoutExtension) === -1) {
|
|
19
|
-
styles.unshift(pathPrefix + asset);
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
target.build.options.styles = styles;
|
|
23
|
-
}
|
|
24
|
-
exports.updateStyleAssets = updateStyleAssets;
|
|
25
|
-
//# sourceMappingURL=add-assets-to-config-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-assets-to-config-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/add-assets-to-config-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAS,cAAc,CAAC,QAAgB;IACtC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAElD,OAAO,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;AACrF,CAAC;AAED,SAAgB,iBAAiB,CAAC,MAAW,EAAE,UAAkB,EAAE,MAAqB;IACtF,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;IACjD,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QACpD,IAAI,YAAY,CAAC,MAAM,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,EAAE;YACrD,MAAM,CAAC,OAAO,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC;SACpC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACvC,CAAC;AAZD,8CAYC"}
|
|
@@ -1,36 +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.addModuleImportToModule = void 0;
|
|
9
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
10
|
-
const change_1 = require("@schematics/angular/utility/change");
|
|
11
|
-
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
12
|
-
const get_typescript_source_file_1 = require("./get-typescript-source-file");
|
|
13
|
-
/**
|
|
14
|
-
* Import and add module to specific module path.
|
|
15
|
-
* @param host {Tree} The source tree.
|
|
16
|
-
* @param importedModuleName {String} The name of the imported module.
|
|
17
|
-
* @param importedModulePath {String} The location of the imported module.
|
|
18
|
-
* @param moduleToImportIn {String} The location of the module to import in.
|
|
19
|
-
*/
|
|
20
|
-
function addModuleImportToModule(host, importedModuleName, importedModulePath, moduleToImportIn) {
|
|
21
|
-
if (!moduleToImportIn) {
|
|
22
|
-
throw new schematics_1.SchematicsException(`Entry module not found.`);
|
|
23
|
-
}
|
|
24
|
-
const moduleSource = get_typescript_source_file_1.getTypeScriptSourceFile(host, moduleToImportIn);
|
|
25
|
-
if (!moduleSource) {
|
|
26
|
-
throw new schematics_1.SchematicsException(`Module not found: ${moduleToImportIn}`);
|
|
27
|
-
}
|
|
28
|
-
const changes = ast_utils_1.addImportToModule(moduleSource, moduleToImportIn, importedModuleName, importedModulePath);
|
|
29
|
-
const recorder = host.beginUpdate(moduleToImportIn);
|
|
30
|
-
changes
|
|
31
|
-
.filter((change) => change instanceof change_1.InsertChange)
|
|
32
|
-
.forEach((change) => recorder.insertLeft(change.pos, change.toAdd));
|
|
33
|
-
host.commitUpdate(recorder);
|
|
34
|
-
}
|
|
35
|
-
exports.addModuleImportToModule = addModuleImportToModule;
|
|
36
|
-
//# sourceMappingURL=add-module-import-to-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-module-import-to-module.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/add-module-import-to-module.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2DAAuE;AACvE,+DAA0E;AAC1E,qEAA0E;AAC1E,6EAAuE;AAEvE;;;;;;GAMG;AACH,SAAgB,uBAAuB,CACrC,IAAU,EACV,kBAA0B,EAC1B,kBAA0B,EAC1B,gBAAwB;IAExB,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,gCAAmB,CAAC,yBAAyB,CAAC,CAAC;KAC1D;IAED,MAAM,YAAY,GAAG,oDAAuB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;IACrE,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,gCAAmB,CAAC,qBAAqB,gBAAgB,EAAE,CAAC,CAAC;KACxE;IAED,MAAM,OAAO,GAAG,6BAAiB,CAAC,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;IAC1G,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEpD,OAAO;SACJ,MAAM,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,MAAM,YAAY,qBAAY,CAAC;SAC1D,OAAO,CAAC,CAAC,MAAoB,EAAE,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpF,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC;AAvBD,0DAuBC"}
|
|
@@ -1,10 +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.configFileName = void 0;
|
|
9
|
-
exports.configFileName = 'angular.json';
|
|
10
|
-
//# sourceMappingURL=angular-config-filename.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"angular-config-filename.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/angular-config-filename.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEU,QAAA,cAAc,GAAG,cAAc,CAAC"}
|
|
@@ -1,30 +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.compareVersions = void 0;
|
|
9
|
-
function removeNonDigitOrDots(text) {
|
|
10
|
-
return text.replace(/[^\d.]/g, '');
|
|
11
|
-
}
|
|
12
|
-
function compareVersions(first, second) {
|
|
13
|
-
first = removeNonDigitOrDots(first);
|
|
14
|
-
second = removeNonDigitOrDots(second);
|
|
15
|
-
const firstDigits = first.split('.');
|
|
16
|
-
const secondDigits = second.split('.');
|
|
17
|
-
for (let i = 0; i < 3; i += 1) {
|
|
18
|
-
const firstDigit = Number(firstDigits[i]);
|
|
19
|
-
const secondDigit = Number(secondDigits[i]);
|
|
20
|
-
if (firstDigit > secondDigit) {
|
|
21
|
-
return 1;
|
|
22
|
-
}
|
|
23
|
-
else if (secondDigit > firstDigit) {
|
|
24
|
-
return -1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return 0;
|
|
28
|
-
}
|
|
29
|
-
exports.compareVersions = compareVersions;
|
|
30
|
-
//# sourceMappingURL=compare-versions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compare-versions.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/compare-versions.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAS,oBAAoB,CAAC,IAAY;IACxC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AACrC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAa,EAAE,MAAc;IAC3D,KAAK,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACpC,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAEtC,MAAM,WAAW,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;QAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,WAAW,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,IAAI,UAAU,GAAG,WAAW,EAAE;YAC5B,OAAO,CAAC,CAAC;SACV;aAAM,IAAI,WAAW,GAAG,UAAU,EAAE;YACnC,OAAO,CAAC,CAAC,CAAC;SACX;KACF;IAED,OAAO,CAAC,CAAC;AACX,CAAC;AAlBD,0CAkBC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAppFromConfig = exports.getConfig = exports.configPath = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
7
|
-
*
|
|
8
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
9
|
-
* found in the LICENSE file at https://angular.io/license
|
|
10
|
-
*/
|
|
11
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
|
-
exports.configPath = '/.angular-cli.json';
|
|
13
|
-
function getConfig(host) {
|
|
14
|
-
const configBuffer = host.read(exports.configPath);
|
|
15
|
-
if (configBuffer === null) {
|
|
16
|
-
throw new schematics_1.SchematicsException('Could not find .angular-cli.json');
|
|
17
|
-
}
|
|
18
|
-
const config = JSON.parse(configBuffer.toString());
|
|
19
|
-
return config;
|
|
20
|
-
}
|
|
21
|
-
exports.getConfig = getConfig;
|
|
22
|
-
function getAppFromConfig(config, appIndexOrName) {
|
|
23
|
-
if (!config.apps) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
if (parseInt(appIndexOrName) >= 0) {
|
|
27
|
-
return config.apps[parseInt(appIndexOrName)];
|
|
28
|
-
}
|
|
29
|
-
return config.apps.filter(app => app.name === appIndexOrName)[0];
|
|
30
|
-
}
|
|
31
|
-
exports.getAppFromConfig = getAppFromConfig;
|
|
32
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/config.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,2DAAuE;AAub1D,QAAA,UAAU,GAAG,oBAAoB,CAAC;AAE/C,SAAgB,SAAS,CAAC,IAAU;IAClC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,kBAAU,CAAC,CAAC;IAC3C,IAAI,YAAY,KAAK,IAAI,EAAE;QACzB,MAAM,IAAI,gCAAmB,CAAC,kCAAkC,CAAC,CAAC;KACnE;IAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEnD,OAAO,MAAM,CAAC;AAChB,CAAC;AATD,8BASC;AAED,SAAgB,gBAAgB,CAAC,MAAiB,EAAE,cAAsB;IACxE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAChB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;QACjC,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9C;IAED,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AACnE,CAAC;AAVD,4CAUC"}
|
|
@@ -1,17 +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.findAppModule = void 0;
|
|
9
|
-
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
10
|
-
const get_main_path_1 = require("./get-main-path");
|
|
11
|
-
function findAppModule(host, config, projectName) {
|
|
12
|
-
const mainPath = get_main_path_1.getMainPath(config, projectName);
|
|
13
|
-
const appModulePath = ng_ast_utils_1.getAppModulePath(host, mainPath);
|
|
14
|
-
return appModulePath;
|
|
15
|
-
}
|
|
16
|
-
exports.findAppModule = findAppModule;
|
|
17
|
-
//# sourceMappingURL=find-app-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-app-module.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/find-app-module.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2EAA4E;AAC5E,mDAA8C;AAE9C,SAAgB,aAAa,CAAC,IAAU,EAAE,MAAW,EAAE,WAAmB;IACxE,MAAM,QAAQ,GAAG,2BAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAClD,MAAM,aAAa,GAAG,+BAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAEvD,OAAO,aAAa,CAAC;AACvB,CAAC;AALD,sCAKC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFileContent = void 0;
|
|
4
|
-
function getFileContent(tree, path) {
|
|
5
|
-
const fileEntry = tree.get(path);
|
|
6
|
-
if (!fileEntry) {
|
|
7
|
-
throw new Error(`The file (${path}) does not exist.`);
|
|
8
|
-
}
|
|
9
|
-
return fileEntry.content.toString();
|
|
10
|
-
}
|
|
11
|
-
exports.getFileContent = getFileContent;
|
|
12
|
-
//# sourceMappingURL=get-file-content.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-file-content.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-file-content.ts"],"names":[],"mappings":";;;AASA,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAY;IACrD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,CAAC,SAAS,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,aAAa,IAAI,mBAAmB,CAAC,CAAC;KACvD;IAED,OAAO,SAAS,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;AACtC,CAAC;AARD,wCAQC"}
|
|
@@ -1,14 +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.getIndexHtmlPath = void 0;
|
|
9
|
-
function getIndexHtmlPath(config, projectName) {
|
|
10
|
-
const project = config.projects[projectName];
|
|
11
|
-
return project.architect.build.options.index;
|
|
12
|
-
}
|
|
13
|
-
exports.getIndexHtmlPath = getIndexHtmlPath;
|
|
14
|
-
//# sourceMappingURL=get-index-html-path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-index-html-path.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-index-html-path.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAgB,gBAAgB,CAAC,MAAW,EAAE,WAAmB;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;AAC/C,CAAC;AAHD,4CAGC"}
|
|
@@ -1,25 +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.getJsonFile = void 0;
|
|
9
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
10
|
-
const core_1 = require("@angular-devkit/core");
|
|
11
|
-
const getJsonFile = (tree, path) => {
|
|
12
|
-
const file = tree.get(path);
|
|
13
|
-
if (!file) {
|
|
14
|
-
throw new core_1.FileDoesNotExistException(path);
|
|
15
|
-
}
|
|
16
|
-
try {
|
|
17
|
-
const content = JSON.parse(file.content.toString());
|
|
18
|
-
return content;
|
|
19
|
-
}
|
|
20
|
-
catch (e) {
|
|
21
|
-
throw new schematics_1.SchematicsException(`File ${path} could not be parsed!`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.getJsonFile = getJsonFile;
|
|
25
|
-
//# sourceMappingURL=get-json-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-json-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-json-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,2DAAiE;AACjE,+CAAiE;AAE1D,MAAM,WAAW,GAAG,CAAI,IAAU,EAAE,IAAY,EAAK,EAAE;IAC5D,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,gCAAyB,CAAC,IAAI,CAAC,CAAC;KAC3C;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEpD,OAAO,OAAY,CAAC;KACrB;IAAC,OAAO,CAAC,EAAE;QACV,MAAM,IAAI,gCAAmB,CAAC,QAAQ,IAAI,uBAAuB,CAAC,CAAC;KACpE;AACH,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
|
|
@@ -1,14 +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.getMainPath = void 0;
|
|
9
|
-
function getMainPath(config, projectName) {
|
|
10
|
-
const project = config.projects[projectName];
|
|
11
|
-
return project.architect.build.options.main;
|
|
12
|
-
}
|
|
13
|
-
exports.getMainPath = getMainPath;
|
|
14
|
-
//# sourceMappingURL=get-main-path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-main-path.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-main-path.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,SAAgB,WAAW,CAAC,MAAW,EAAE,WAAmB;IAC1D,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAC7C,OAAO,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;AAC9C,CAAC;AAHD,kCAGC"}
|
|
@@ -1,26 +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.getTypeScriptSourceFile = void 0;
|
|
9
|
-
const ts = require("typescript");
|
|
10
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
11
|
-
/**
|
|
12
|
-
* Reads file from given path and returns TypeScript source file.
|
|
13
|
-
* @param host {Tree} The source tree.
|
|
14
|
-
* @param path {String} The path to the file to read. Relative to the root of the tree.
|
|
15
|
-
* */
|
|
16
|
-
function getTypeScriptSourceFile(host, path) {
|
|
17
|
-
const buffer = host.read(path);
|
|
18
|
-
if (!buffer) {
|
|
19
|
-
throw new schematics_1.SchematicsException(`Could not find ${path}!`);
|
|
20
|
-
}
|
|
21
|
-
const content = buffer.toString();
|
|
22
|
-
const sourceFile = ts.createSourceFile(path, content, ts.ScriptTarget.Latest, true);
|
|
23
|
-
return sourceFile;
|
|
24
|
-
}
|
|
25
|
-
exports.getTypeScriptSourceFile = getTypeScriptSourceFile;
|
|
26
|
-
//# sourceMappingURL=get-typescript-source-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-typescript-source-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/get-typescript-source-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,iCAAiC;AACjC,2DAAiE;AAEjE;;;;KAIK;AACL,SAAgB,uBAAuB,CAAC,IAAU,EAAE,IAAY;IAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,gCAAmB,CAAC,kBAAkB,IAAI,GAAG,CAAC,CAAC;KAC1D;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAEpF,OAAO,UAAU,CAAC;AACpB,CAAC;AAVD,0DAUC"}
|
|
@@ -1,8 +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
|
-
//# sourceMappingURL=ng-add-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-add-options.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/ng-add-options.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
|
@@ -1,14 +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.runNpmInstall = void 0;
|
|
9
|
-
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
10
|
-
function runNpmInstall(_tree, context) {
|
|
11
|
-
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
12
|
-
}
|
|
13
|
-
exports.runNpmInstall = runNpmInstall;
|
|
14
|
-
//# sourceMappingURL=run-npm-install.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run-npm-install.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/run-npm-install.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,4DAA0E;AAE1E,SAAgB,aAAa,CAAC,KAAW,EAAE,OAAyB;IAClE,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;AAChD,CAAC;AAFD,sCAEC"}
|
|
@@ -1,37 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.setupProject = void 0;
|
|
18
|
-
function setupProject(tree, schematicRunner, name) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
tree = yield schematicRunner
|
|
21
|
-
.runExternalSchematicAsync('@schematics/angular', 'workspace', {
|
|
22
|
-
name: 'workspace',
|
|
23
|
-
version: '10.0.0',
|
|
24
|
-
newProjectRoot: '',
|
|
25
|
-
})
|
|
26
|
-
.toPromise();
|
|
27
|
-
tree = yield schematicRunner
|
|
28
|
-
.runExternalSchematicAsync('@schematics/angular', 'application', {
|
|
29
|
-
name,
|
|
30
|
-
projectRoot: '',
|
|
31
|
-
}, tree)
|
|
32
|
-
.toPromise();
|
|
33
|
-
return tree;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
exports.setupProject = setupProject;
|
|
37
|
-
//# sourceMappingURL=setup-project.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setup-project.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/setup-project.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAIH,SAAsB,YAAY,CAChC,IAAkB,EAClB,eAAoC,EACpC,IAAY;;QAEZ,IAAI,GAAG,MAAM,eAAe;aACzB,yBAAyB,CAAC,qBAAqB,EAAE,WAAW,EAAE;YAC7D,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,QAAQ;YACjB,cAAc,EAAE,EAAE;SACnB,CAAC;aACD,SAAS,EAAE,CAAC;QAEf,IAAI,GAAG,MAAM,eAAe;aACzB,yBAAyB,CACxB,qBAAqB,EACrB,aAAa,EACb;YACE,IAAI;YACJ,WAAW,EAAE,EAAE;SAChB,EACD,IAAI,CACL;aACA,SAAS,EAAE,CAAC;QAEf,OAAO,IAAI,CAAC;IACd,CAAC;CAAA;AA1BD,oCA0BC"}
|
|
@@ -1,17 +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.updateJsonFile = void 0;
|
|
9
|
-
const get_json_file_1 = require("./get-json-file");
|
|
10
|
-
// Writes changes to a JSON file
|
|
11
|
-
function updateJsonFile(tree, path, callback) {
|
|
12
|
-
const json = get_json_file_1.getJsonFile(tree, path);
|
|
13
|
-
callback(json);
|
|
14
|
-
tree.overwrite(path, JSON.stringify(json, null, 2));
|
|
15
|
-
}
|
|
16
|
-
exports.updateJsonFile = updateJsonFile;
|
|
17
|
-
//# sourceMappingURL=update-json-file.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-json-file.js","sourceRoot":"","sources":["../../../../projects/schematics/src/utility/update-json-file.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAGH,mDAA8C;AAE9C,gCAAgC;AAChC,SAAgB,cAAc,CAAC,IAAU,EAAE,IAAY,EAAE,QAAyB;IAChF,MAAM,IAAI,GAAG,2BAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACf,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACtD,CAAC;AAJD,wCAIC"}
|