@nova-ui/bits 12.0.17-3905 → 13.0.1-3938
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/bundles/css/styles-css-variables.css +3 -1
- package/bundles/css/styles-font-roboto.css +3 -1
- package/bundles/css/styles.css +3 -15
- package/common/common.module.d.ts +17 -0
- package/common/directives/click-interceptor/click-interceptor.directive.d.ts +3 -0
- package/common/directives/clipboard/clipboard.directive.d.ts +3 -0
- package/common/directives/dragdrop/drag-and-drop.service.d.ts +3 -0
- package/common/directives/dragdrop/draggable.directive.d.ts +3 -0
- package/common/directives/dragdrop/droppable.directive.d.ts +3 -0
- package/common/directives/resize/resize.directive.d.ts +3 -0
- package/common/directives/resize-observer/resize-observer.directive.d.ts +3 -0
- package/common/directives/resizer/resizer.directive.d.ts +3 -0
- package/common/directives/set-focus/set-focus.directive.d.ts +3 -0
- package/common/directives/zoom-content/zoom-content.directive.d.ts +3 -0
- package/constants/dragdrop.constants.d.ts +8 -0
- package/constants/index.d.ts +5 -4
- package/environment.d.ts +3 -0
- package/{esm2015/animations/expand.js → esm2020/animations/expand.mjs} +0 -0
- package/{esm2015/animations/fadeIn.js → esm2020/animations/fadeIn.mjs} +0 -0
- package/esm2020/common/common.module.mjs +167 -0
- package/esm2020/common/directives/click-interceptor/click-interceptor.directive.mjs +57 -0
- package/esm2020/common/directives/clipboard/clipboard.directive.mjs +122 -0
- package/esm2020/common/directives/dragdrop/drag-and-drop.service.mjs +77 -0
- package/{esm2015/common/directives/dragdrop/dragdrop.constants.js → esm2020/common/directives/dragdrop/dragdrop.constants.mjs} +0 -0
- package/esm2020/common/directives/dragdrop/draggable.directive.mjs +260 -0
- package/esm2020/common/directives/dragdrop/droppable.directive.mjs +213 -0
- package/{esm2015/common/directives/dragdrop/public-api.js → esm2020/common/directives/dragdrop/public-api.mjs} +0 -0
- package/{esm2015/common/directives/index.js → esm2020/common/directives/index.mjs} +0 -0
- package/{esm2015/common/directives/public-api.js → esm2020/common/directives/public-api.mjs} +0 -0
- package/esm2020/common/directives/resize/resize.directive.mjs +193 -0
- package/esm2020/common/directives/resize-observer/resize-observer.directive.mjs +66 -0
- package/{esm2015/common/directives/resizer/public-api.js → esm2020/common/directives/resizer/public-api.mjs} +0 -0
- package/esm2020/common/directives/resizer/resizer.directive.mjs +324 -0
- package/esm2020/common/directives/set-focus/set-focus.directive.mjs +114 -0
- package/esm2020/common/directives/zoom-content/zoom-content.directive.mjs +160 -0
- package/{esm2015/constants/button.constants.js → esm2020/constants/button.constants.mjs} +0 -0
- package/esm2020/constants/dragdrop.constants.mjs +28 -0
- package/{esm2015/constants/event.constants.js → esm2020/constants/event.constants.mjs} +0 -0
- package/{esm2015/constants/images.constants.js → esm2020/constants/images.constants.mjs} +0 -0
- package/{esm2015/constants/images.js → esm2020/constants/images.mjs} +0 -0
- package/{esm2015/lib/tabgroup/tab/tab-heading.directive.js → esm2020/constants/index.mjs} +9 -17
- package/{esm2015/constants/interaction.constants.js → esm2020/constants/interaction.constants.mjs} +0 -0
- package/{esm2015/constants/keycode.constants.js → esm2020/constants/keycode.constants.mjs} +0 -0
- package/{esm2015/constants/path.constant.js → esm2020/constants/path.constant.mjs} +0 -0
- package/{esm2015/constants/popover.constants.js → esm2020/constants/popover.constants.mjs} +0 -0
- package/{esm2015/constants/regex.constants.js → esm2020/constants/regex.constants.mjs} +0 -0
- package/{esm2015/constants/resize.constants.js → esm2020/constants/resize.constants.mjs} +0 -0
- package/{esm2015/constants/unit-conversion.constants.js → esm2020/constants/unit-conversion.constants.mjs} +0 -0
- package/esm2020/constants/wizard.constants.mjs +43 -0
- package/esm2020/environment.mjs +56 -0
- package/{esm2015/functions/immutable-set.js → esm2020/functions/immutable-set.mjs} +0 -0
- package/{esm2015/functions/nameof.js → esm2020/functions/nameof.mjs} +0 -0
- package/{esm2015/functions/public-api.js → esm2020/functions/public-api.mjs} +0 -0
- package/{esm2015/functions/remove-errors.js → esm2020/functions/remove-errors.mjs} +0 -0
- package/{esm2015/functions/traverse.js → esm2020/functions/traverse.mjs} +0 -0
- package/{esm2015/functions/uuid.js → esm2020/functions/uuid.mjs} +0 -0
- package/esm2020/lib/breadcrumb/breadcrumb-state.service.mjs +55 -0
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +57 -0
- package/esm2020/lib/breadcrumb/breadcrumb.module.mjs +43 -0
- package/{esm2015/lib/breadcrumb/public-api.js → esm2020/lib/breadcrumb/public-api.mjs} +0 -0
- package/esm2020/lib/busy/busy.component.mjs +95 -0
- package/esm2020/lib/busy/busy.module.mjs +42 -0
- package/{esm2015/lib/busy/public-api.js → esm2020/lib/busy/public-api.mjs} +0 -0
- package/esm2020/lib/button/button.component.mjs +245 -0
- package/esm2020/lib/button/button.module.mjs +42 -0
- package/{esm2015/lib/button/public-api.js → esm2020/lib/button/public-api.mjs} +0 -0
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +158 -0
- package/esm2020/lib/checkbox/checkbox.component.mjs +237 -0
- package/esm2020/lib/checkbox/checkbox.module.mjs +42 -0
- package/{esm2015/lib/checkbox/public-api.js → esm2020/lib/checkbox/public-api.mjs} +0 -0
- package/esm2020/lib/chips/chip/chip.component.mjs +65 -0
- package/esm2020/lib/chips/chips-overflow/chips-overflow.component.mjs +46 -0
- package/esm2020/lib/chips/chips-overflow.service.mjs +136 -0
- package/esm2020/lib/chips/chips.component.mjs +207 -0
- package/esm2020/lib/chips/chips.module.mjs +45 -0
- package/{esm2015/lib/chips/public-api.js → esm2020/lib/chips/public-api.mjs} +0 -0
- package/esm2020/lib/content/content.component.mjs +43 -0
- package/esm2020/lib/content/content.module.mjs +41 -0
- package/esm2020/lib/convenience/time-frame-bar/time-frame-bar.component.mjs +190 -0
- package/esm2020/lib/convenience/time-frame-bar/time-frame-bar.module.mjs +77 -0
- package/esm2020/lib/date-picker/date-picker-day-picker.component.mjs +131 -0
- package/esm2020/lib/date-picker/date-picker-inner.component.mjs +319 -0
- package/esm2020/lib/date-picker/date-picker-month-picker.component.mjs +64 -0
- package/esm2020/lib/date-picker/date-picker-year-picker.component.mjs +69 -0
- package/esm2020/lib/date-picker/date-picker.component.mjs +312 -0
- package/esm2020/lib/date-picker/date-picker.module.mjs +75 -0
- package/{esm2015/lib/date-picker/public-api.js → esm2020/lib/date-picker/public-api.mjs} +0 -0
- package/esm2020/lib/date-time-picker/date-time-picker.component.mjs +222 -0
- package/esm2020/lib/date-time-picker/date-time-picker.module.mjs +43 -0
- package/esm2020/lib/dialog/confirmation-dialog.component.mjs +81 -0
- package/{esm2015/lib/toolbar/toolbar-message.component.js → esm2020/lib/dialog/dialog-backdrop.component.mjs} +13 -8
- package/esm2020/lib/dialog/dialog-footer.component.mjs +33 -0
- package/esm2020/lib/dialog/dialog-header.component.mjs +60 -0
- package/esm2020/lib/dialog/dialog-ref.mjs +95 -0
- package/esm2020/lib/dialog/dialog-stack.service.mjs +136 -0
- package/esm2020/lib/dialog/dialog.component.mjs +156 -0
- package/esm2020/lib/dialog/dialog.module.mjs +60 -0
- package/esm2020/lib/dialog/dialog.service.mjs +60 -0
- package/{esm2015/lib/dialog/public-api.js → esm2020/lib/dialog/public-api.mjs} +0 -0
- package/esm2020/lib/divider/divider.component.mjs +75 -0
- package/esm2020/lib/divider/divider.module.mjs +41 -0
- package/{esm2015/lib/divider/public-api.js → esm2020/lib/divider/public-api.mjs} +0 -0
- package/esm2020/lib/dnd/dnd-drop-target.directive.mjs +112 -0
- package/esm2020/lib/dnd/dnd.module.mjs +40 -0
- package/{esm2015/lib/dnd/public-api.js → esm2020/lib/dnd/public-api.mjs} +0 -0
- package/esm2020/lib/docs/copy-text/copy-text.component.mjs +53 -0
- package/esm2020/lib/docs/docs.module.mjs +117 -0
- package/esm2020/lib/docs/example-code/example-code.component.mjs +76 -0
- package/esm2020/lib/docs/example-wrapper/example-wrapper.component.mjs +85 -0
- package/esm2020/lib/docs/example-wrapper/plunker-files.mjs +414 -0
- package/esm2020/lib/docs/example-wrapper/plunker-project.service.mjs +111 -0
- package/{esm2015/lib/docs/public-api.js → esm2020/lib/docs/public-api.mjs} +0 -0
- package/esm2020/lib/docs/services/sources.service.mjs +99 -0
- package/{esm2015/lib/docs/srlc-indicator/public-api.js → esm2020/lib/docs/srlc-indicator/public-api.mjs} +0 -0
- package/esm2020/lib/docs/srlc-indicator/srlc-indicator.component.mjs +102 -0
- package/esm2020/lib/docs/theme-switcher/theme-switcher.component.mjs +43 -0
- package/esm2020/lib/expander/expander.component.mjs +112 -0
- package/{esm2015/lib/message/message.module.js → esm2020/lib/expander/expander.module.mjs} +17 -13
- package/esm2020/lib/form-field/form-field.component.mjs +126 -0
- package/{esm2015/lib/popover/popover.module.js → esm2020/lib/form-field/form-field.module.mjs} +17 -19
- package/{esm2015/lib/form-field/public-api.js → esm2020/lib/form-field/public-api.mjs} +0 -0
- package/{esm2015/lib/form-field/touched-changes-helper.js → esm2020/lib/form-field/touched-changes-helper.mjs} +0 -0
- package/esm2020/lib/icon/icon.component.mjs +148 -0
- package/{esm2015/lib/dnd/dnd.module.js → esm2020/lib/icon/icon.module.mjs} +17 -10
- package/esm2020/lib/icon/icon.service.mjs +79 -0
- package/{esm2015/lib/icon/icons.js → esm2020/lib/icon/icons.mjs} +0 -0
- package/{esm2015/lib/icon/public-api.js → esm2020/lib/icon/public-api.mjs} +0 -0
- package/{esm2015/lib/icon/types.js → esm2020/lib/icon/types.mjs} +0 -0
- package/esm2020/lib/image/image.component.mjs +144 -0
- package/{esm2015/lib/content/content.module.js → esm2020/lib/image/image.module.mjs} +16 -11
- package/{esm2015/lib/image/public-api.js → esm2020/lib/image/public-api.mjs} +0 -0
- package/esm2020/lib/layout/card/card.component.mjs +47 -0
- package/esm2020/lib/layout/card-group/card-group.component.mjs +52 -0
- package/esm2020/lib/layout/layout-resizer/layout-resizer.component.mjs +97 -0
- package/esm2020/lib/layout/layout.module.mjs +63 -0
- package/{esm2015/lib/layout/public-api.js → esm2020/lib/layout/public-api.mjs} +0 -0
- package/esm2020/lib/layout/sheet/sheet.component.mjs +65 -0
- package/esm2020/lib/layout/sheet-group/sheet-group.component.mjs +188 -0
- package/{esm2015/lib/menu/index.js → esm2020/lib/menu/index.mjs} +0 -0
- package/esm2020/lib/menu/menu/menu.component.mjs +171 -0
- package/esm2020/lib/menu/menu-item/menu-action/menu-action.component.mjs +115 -0
- package/esm2020/lib/menu/menu-item/menu-group/menu-group.component.mjs +70 -0
- package/esm2020/lib/menu/menu-item/menu-item/menu-item-base.mjs +58 -0
- package/esm2020/lib/menu/menu-item/menu-item/menu-item.component.mjs +87 -0
- package/esm2020/lib/menu/menu-item/menu-link/menu-link.component.mjs +106 -0
- package/esm2020/lib/menu/menu-item/menu-option/menu-option.component.mjs +116 -0
- package/esm2020/lib/menu/menu-item/menu-switch/menu-switch.component.mjs +110 -0
- package/esm2020/lib/menu/menu-key-control.service.mjs +212 -0
- package/esm2020/lib/menu/menu-popup/menu-popup.component.mjs +91 -0
- package/esm2020/lib/menu/menu.module.mjs +107 -0
- package/{esm2015/lib/menu/public-api.js → esm2020/lib/menu/public-api.mjs} +0 -0
- package/esm2020/lib/message/message.component.mjs +124 -0
- package/esm2020/lib/message/message.module.mjs +43 -0
- package/esm2020/lib/overlay/arrow-component/overlay-arrow.component.mjs +34 -0
- package/{esm2015/lib/overlay/constants.js → esm2020/lib/overlay/constants.mjs} +0 -0
- package/esm2020/lib/overlay/overlay-additions.module.mjs +39 -0
- package/esm2020/lib/overlay/overlay-component/overlay.component.mjs +208 -0
- package/esm2020/lib/overlay/overlay-container.service.mjs +128 -0
- package/esm2020/lib/overlay/overlay-custom-container.mjs +55 -0
- package/esm2020/lib/overlay/overlay-item/overlay-item.component.mjs +52 -0
- package/esm2020/lib/overlay/overlay-position.service.mjs +271 -0
- package/esm2020/lib/overlay/overlay-utilities.service.mjs +76 -0
- package/esm2020/lib/overlay/overlay.module.mjs +44 -0
- package/esm2020/lib/overlay/overlay.service.mjs +136 -0
- package/{esm2015/lib/overlay/public-api.js → esm2020/lib/overlay/public-api.mjs} +0 -0
- package/{esm2015/lib/overlay/types.js → esm2020/lib/overlay/types.mjs} +0 -0
- package/esm2020/lib/paginator/paginator.component.mjs +458 -0
- package/esm2020/lib/paginator/paginator.module.mjs +61 -0
- package/{esm2015/lib/paginator/public-api.js → esm2020/lib/paginator/public-api.mjs} +0 -0
- package/esm2020/lib/panel/panel.component.mjs +460 -0
- package/esm2020/lib/panel/panel.module.mjs +42 -0
- package/{esm2015/lib/panel/public-api.js → esm2020/lib/panel/public-api.mjs} +0 -0
- package/esm2020/lib/popover/popover-modal.component.mjs +92 -0
- package/esm2020/lib/popover/popover-modal.service.mjs +169 -0
- package/esm2020/lib/popover/popover-position.service.mjs +223 -0
- package/esm2020/lib/popover/popover.component.mjs +479 -0
- package/esm2020/lib/popover/popover.module.mjs +58 -0
- package/{esm2015/lib/popover/public-api.js → esm2020/lib/popover/public-api.mjs} +0 -0
- package/esm2020/lib/popup/popup-container.component.mjs +93 -0
- package/esm2020/lib/popup/popup-container.service.mjs +35 -0
- package/esm2020/lib/popup/popup-toggle.directive.mjs +51 -0
- package/esm2020/lib/popup/popup.component.mjs +294 -0
- package/esm2020/lib/popup/popup.module.mjs +50 -0
- package/esm2020/lib/popup-adapter/popup-adapter.component.mjs +324 -0
- package/esm2020/lib/popup-adapter/popup-adapter.module.mjs +57 -0
- package/esm2020/lib/progress/progress.component.mjs +74 -0
- package/esm2020/lib/progress/progress.module.mjs +43 -0
- package/{esm2015/lib/public-api.js → esm2020/lib/public-api.mjs} +0 -0
- package/esm2020/lib/radio/radio-group.component.mjs +298 -0
- package/{esm2015/lib/sorter/sorter.module.js → esm2020/lib/radio/radio.module.mjs} +16 -19
- package/{esm2015/lib/repeat/public-api.js → esm2020/lib/repeat/public-api.mjs} +0 -0
- package/esm2020/lib/repeat/repeat-item/repeat-item.component.mjs +54 -0
- package/esm2020/lib/repeat/repeat.component.mjs +432 -0
- package/esm2020/lib/repeat/repeat.module.mjs +62 -0
- package/{esm2015/lib/repeat/types.js → esm2020/lib/repeat/types.mjs} +0 -0
- package/esm2020/lib/search/search.component.mjs +128 -0
- package/esm2020/lib/search/search.module.mjs +44 -0
- package/esm2020/lib/select/base-select.mjs +207 -0
- package/esm2020/lib/select/combobox/combobox.component.mjs +296 -0
- package/{esm2015/lib/select/index.js → esm2020/lib/select/index.mjs} +0 -0
- package/{esm2015/lib/select/public-api.js → esm2020/lib/select/public-api.mjs} +0 -0
- package/esm2020/lib/select/select.component.mjs +143 -0
- package/esm2020/lib/select/select.module.mjs +69 -0
- package/esm2020/lib/select-v2/base-select-v2.mjs +477 -0
- package/esm2020/lib/select-v2/combobox-v2/combobox-v2.component.mjs +320 -0
- package/esm2020/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.mjs +83 -0
- package/{esm2015/lib/select-v2/constants.js → esm2020/lib/select-v2/constants.mjs} +0 -0
- package/esm2020/lib/select-v2/mark-as-selected-item.directive.mjs +29 -0
- package/esm2020/lib/select-v2/option/select-v2-option.component.mjs +81 -0
- package/esm2020/lib/select-v2/option-group/select-v2-option-group.component.mjs +69 -0
- package/esm2020/lib/select-v2/option-key-control.service.mjs +138 -0
- package/esm2020/lib/select-v2/select/select-v2.component.mjs +140 -0
- package/esm2020/lib/select-v2/select-v2.module.mjs +103 -0
- package/esm2020/lib/select-v2/selected-items-key-control.service.mjs +158 -0
- package/{esm2015/lib/select-v2/types.js → esm2020/lib/select-v2/types.mjs} +0 -0
- package/{esm2015/lib/selector/public-api.js → esm2020/lib/selector/public-api.mjs} +0 -0
- package/esm2020/lib/selector/selector.component.mjs +154 -0
- package/esm2020/lib/selector/selector.module.mjs +61 -0
- package/esm2020/lib/selector/selector.service.mjs +290 -0
- package/{esm2015/lib/sorter/constants.js → esm2020/lib/sorter/constants.mjs} +0 -0
- package/{esm2015/lib/sorter/public-api.js → esm2020/lib/sorter/public-api.mjs} +0 -0
- package/{esm2015/lib/sorter/sorter-keyboard.service.js → esm2020/lib/sorter/sorter-keyboard.service.mjs} +12 -13
- package/esm2020/lib/sorter/sorter.component.mjs +237 -0
- package/esm2020/lib/sorter/sorter.module.mjs +57 -0
- package/{esm2015/lib/spinner/public-api.js → esm2020/lib/spinner/public-api.mjs} +0 -0
- package/esm2020/lib/spinner/spinner.component.mjs +153 -0
- package/esm2020/lib/spinner/spinner.module.mjs +43 -0
- package/esm2020/lib/switch/switch.component.mjs +104 -0
- package/esm2020/lib/switch/switch.module.mjs +41 -0
- package/esm2020/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.mjs +47 -0
- package/esm2020/lib/tabgroup/tab/tab-heading.directive.mjs +37 -0
- package/esm2020/lib/tabgroup/tab/tab.component.mjs +88 -0
- package/esm2020/lib/tabgroup/tab-group/tab-group.component.mjs +147 -0
- package/esm2020/lib/tabgroup/tab-heading/tab-heading.component.mjs +62 -0
- package/esm2020/lib/tabgroup/tab-heading-group/tab-heading-group.component.mjs +182 -0
- package/esm2020/lib/tabgroup/tabs.module.mjs +70 -0
- package/{esm2015/lib/table/constants.js → esm2020/lib/table/constants.mjs} +0 -0
- package/{esm2015/lib/table/public-api.js → esm2020/lib/table/public-api.mjs} +0 -0
- package/esm2020/lib/table/table-cell/table-cell-def.directive.mjs +41 -0
- package/esm2020/lib/table/table-cell/table-cell.directive.mjs +125 -0
- package/esm2020/lib/table/table-cell/table-column-def.directive.mjs +74 -0
- package/esm2020/lib/table/table-cell/table-footer-cell-def.directive.mjs +45 -0
- package/esm2020/lib/table/table-cell/table-footer-cell.directive.mjs +44 -0
- package/esm2020/lib/table/table-cell/table-header-cell-def.directive.mjs +45 -0
- package/esm2020/lib/table/table-cell/table-header-cell.component.mjs +328 -0
- package/esm2020/lib/table/table-resizer/table-resizer.directive.mjs +75 -0
- package/esm2020/lib/table/table-row/table-row.component.mjs +515 -0
- package/esm2020/lib/table/table-state-handler.service.mjs +523 -0
- package/esm2020/lib/table/table-virtual-scroll/slice-range.pipe.mjs +23 -0
- package/esm2020/lib/table/table-virtual-scroll/table-sticky-header.directive.mjs +276 -0
- package/esm2020/lib/table/table-virtual-scroll/table-virtual-scroll-strategy.mjs +183 -0
- package/esm2020/lib/table/table-virtual-scroll/table-virtual-scroll.directive.mjs +128 -0
- package/esm2020/lib/table/table.component.mjs +295 -0
- package/esm2020/lib/table/table.module.mjs +134 -0
- package/{esm2015/lib/table/types.js → esm2020/lib/table/types.mjs} +0 -0
- package/esm2020/lib/textbox/textbox-number/textbox-number.component.mjs +273 -0
- package/esm2020/lib/textbox/textbox.component.mjs +178 -0
- package/esm2020/lib/textbox/textbox.module.mjs +65 -0
- package/{esm2015/lib/time-frame-picker/public-api.js → esm2020/lib/time-frame-picker/public-api.mjs} +0 -0
- package/esm2020/lib/time-frame-picker/quick-picker/quick-picker.component.mjs +58 -0
- package/esm2020/lib/time-frame-picker/services/timeframe.service.mjs +226 -0
- package/esm2020/lib/time-frame-picker/time-frame-format.pipe.mjs +60 -0
- package/esm2020/lib/time-frame-picker/time-frame-picker.component.mjs +130 -0
- package/esm2020/lib/time-frame-picker/time-frame-picker.module.mjs +58 -0
- package/esm2020/lib/time-picker/time-picker-keyboard.service.mjs +113 -0
- package/esm2020/lib/time-picker/time-picker.component.mjs +326 -0
- package/esm2020/lib/time-picker/time-picker.module.mjs +61 -0
- package/{esm2015/lib/toast/public-api.js → esm2020/lib/toast/public-api.mjs} +0 -0
- package/esm2020/lib/toast/toast-container.service.mjs +90 -0
- package/{esm2015/lib/toast/toast-injector.js → esm2020/lib/toast/toast-injector.mjs} +0 -0
- package/esm2020/lib/toast/toast-package.mjs +44 -0
- package/esm2020/lib/toast/toast-ref.mjs +65 -0
- package/esm2020/lib/toast/toast.component.mjs +229 -0
- package/esm2020/lib/toast/toast.directive.mjs +91 -0
- package/esm2020/lib/toast/toast.module.mjs +55 -0
- package/esm2020/lib/toast/toast.service.mjs +277 -0
- package/esm2020/lib/toast/toast.servicebase.mjs +32 -0
- package/{esm2015/lib/toolbar/public-api.js → esm2020/lib/toolbar/public-api.mjs} +0 -0
- package/esm2020/lib/toolbar/toolbar-group.component.mjs +42 -0
- package/esm2020/lib/toolbar/toolbar-item.component.mjs +63 -0
- package/esm2020/lib/toolbar/toolbar-keyboard.service.mjs +81 -0
- package/{esm2015/lib/toolbar/toolbar-group.component.js → esm2020/lib/toolbar/toolbar-message.component.mjs} +13 -14
- package/{esm2015/lib/wizard-v2/wizard-step-footer.directive.js → esm2020/lib/toolbar/toolbar-splitter.component.mjs} +17 -14
- package/esm2020/lib/toolbar/toolbar.component.mjs +242 -0
- package/esm2020/lib/toolbar/toolbar.module.mjs +85 -0
- package/{esm2015/lib/tooltip/public-api.js → esm2020/lib/tooltip/public-api.mjs} +0 -0
- package/esm2020/lib/tooltip/tooltip.component.mjs +232 -0
- package/esm2020/lib/tooltip/tooltip.directive.mjs +226 -0
- package/esm2020/lib/tooltip/tooltip.module.mjs +42 -0
- package/esm2020/lib/validation-message/custom-validation-message/custom-validation-message.component.mjs +67 -0
- package/{esm2015/lib/validation-message/public-api.js → esm2020/lib/validation-message/public-api.mjs} +0 -0
- package/esm2020/lib/validation-message/validation-message.component.mjs +46 -0
- package/esm2020/lib/validation-message/validation-message.module.mjs +47 -0
- package/{esm2015/lib/wizard/public-api.js → esm2020/lib/wizard/public-api.mjs} +0 -0
- package/esm2020/lib/wizard/wizard-step.component.mjs +132 -0
- package/esm2020/lib/wizard/wizard.component.mjs +359 -0
- package/esm2020/lib/wizard/wizard.module.mjs +62 -0
- package/{esm2015/lib/docs/theme-switcher/theme-switcher.component.js → esm2020/lib/wizard-v2/error-state-matcher.provider.mjs} +15 -21
- package/{esm2015/lib/wizard-v2/public-api.js → esm2020/lib/wizard-v2/public-api.mjs} +0 -0
- package/{esm2015/lib/wizard-v2/types.js → esm2020/lib/wizard-v2/types.mjs} +0 -0
- package/esm2020/lib/wizard-v2/wizard-button/wizard-button.mjs +55 -0
- package/esm2020/lib/wizard-v2/wizard-footer/wizard-footer.component.mjs +60 -0
- package/esm2020/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.mjs +306 -0
- package/esm2020/lib/wizard-v2/wizard-overflow/wizard-overflow.component.mjs +44 -0
- package/esm2020/lib/wizard-v2/wizard-step/wizard-step.component.mjs +124 -0
- package/{esm2015/lib/panel/panel.module.js → esm2020/lib/wizard-v2/wizard-step-footer.directive.mjs} +15 -17
- package/esm2020/lib/wizard-v2/wizard-step-header/wizard-step-header.component.mjs +133 -0
- package/{esm2015/lib/toast/toast.servicebase.js → esm2020/lib/wizard-v2/wizard-step-label.directive.mjs} +13 -9
- package/esm2020/lib/wizard-v2/wizard-vertical/wizard-vertical.component.mjs +71 -0
- package/esm2020/lib/wizard-v2/wizard.directive.mjs +123 -0
- package/esm2020/lib/wizard-v2/wizard.module.mjs +113 -0
- package/esm2020/nova-ui-bits.mjs +5 -0
- package/{esm2015/nui-api.js → esm2020/nui-api.mjs} +0 -0
- package/esm2020/pipes/highlight.pipe.mjs +90 -0
- package/esm2020/pipes/limit-to.pipe.mjs +50 -0
- package/esm2020/pipes/unit-conversion.pipe.mjs +60 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/{esm2015/services/content-ref.js → esm2020/services/content-ref.mjs} +0 -0
- package/esm2020/services/data-filter.service.mjs +97 -0
- package/esm2020/services/data-source/client-side-data-source.service.mjs +118 -0
- package/esm2020/services/data-source/data-source-features.mjs +37 -0
- package/esm2020/services/data-source/data-source.service.mjs +135 -0
- package/esm2020/services/data-source/local-filtering-data-source.service.mjs +250 -0
- package/{esm2015/pipes/limit-to.pipe.js → esm2020/services/data-source/noop-data-source.service.mjs} +6 -23
- package/{esm2015/services/data-source/public-api.js → esm2020/services/data-source/public-api.mjs} +0 -0
- package/esm2020/services/data-source/server-side-source.service.mjs +67 -0
- package/esm2020/services/dom-util.service.mjs +78 -0
- package/esm2020/services/edge-detection.service.mjs +179 -0
- package/esm2020/services/event-bus.mjs +70 -0
- package/esm2020/services/event-bus.service.mjs +48 -0
- package/esm2020/services/event-propagation.service.mjs +91 -0
- package/esm2020/services/history-storage.mjs +102 -0
- package/esm2020/services/list.service.mjs +121 -0
- package/{esm2015/services/log-service.js → esm2020/services/log-service.mjs} +9 -8
- package/{esm2015/services/notification-args.js → esm2020/services/notification-args.mjs} +0 -0
- package/esm2020/services/notification-service.mjs +62 -0
- package/esm2020/services/position.service.mjs +194 -0
- package/{esm2015/services/public-api.js → esm2020/services/public-api.mjs} +0 -0
- package/{esm2015/services/search.service.js → esm2020/services/search.service.mjs} +7 -9
- package/esm2020/services/tab-navigation.service.mjs +63 -0
- package/esm2020/services/theme-switch.service.mjs +147 -0
- package/esm2020/services/transient-cache.service.mjs +79 -0
- package/esm2020/services/unit-conversion.service.mjs +177 -0
- package/esm2020/services/util.service.mjs +329 -0
- package/esm2020/services/virtual-viewport-manager.service.mjs +127 -0
- package/{esm2015/types.js → esm2020/types.mjs} +0 -0
- package/{esm2015/validators/index.js → esm2020/validators/index.mjs} +0 -0
- package/{esm2015/validators/nui-validators.js → esm2020/validators/nui-validators.mjs} +0 -0
- package/fesm2015/nova-ui-bits.mjs +26743 -0
- package/fesm2015/nova-ui-bits.mjs.map +1 -0
- package/fesm2020/nova-ui-bits.mjs +26661 -0
- package/fesm2020/nova-ui-bits.mjs.map +1 -0
- package/lib/breadcrumb/breadcrumb-state.service.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.module.d.ts +7 -0
- package/lib/busy/busy.component.d.ts +3 -0
- package/lib/busy/busy.module.d.ts +7 -0
- package/lib/button/button.component.d.ts +3 -0
- package/lib/button/button.module.d.ts +7 -0
- package/lib/checkbox/checkbox-group.component.d.ts +3 -0
- package/lib/checkbox/checkbox.component.d.ts +3 -0
- package/lib/checkbox/checkbox.module.d.ts +7 -0
- package/lib/chips/chip/chip.component.d.ts +3 -0
- package/lib/chips/chips-overflow/chips-overflow.component.d.ts +3 -0
- package/lib/chips/chips-overflow.service.d.ts +3 -0
- package/lib/chips/chips.component.d.ts +3 -0
- package/lib/chips/chips.module.d.ts +10 -0
- package/lib/content/content.component.d.ts +3 -0
- package/lib/content/content.module.d.ts +6 -0
- package/lib/convenience/time-frame-bar/time-frame-bar.component.d.ts +4 -1
- package/lib/convenience/time-frame-bar/time-frame-bar.module.d.ts +14 -0
- package/lib/date-picker/date-picker-day-picker.component.d.ts +3 -0
- package/lib/date-picker/date-picker-inner.component.d.ts +3 -0
- package/lib/date-picker/date-picker-month-picker.component.d.ts +3 -0
- package/lib/date-picker/date-picker-year-picker.component.d.ts +3 -0
- package/lib/date-picker/date-picker.component.d.ts +3 -0
- package/lib/date-picker/date-picker.module.d.ts +14 -0
- package/lib/date-time-picker/date-time-picker.component.d.ts +3 -0
- package/lib/date-time-picker/date-time-picker.module.d.ts +8 -0
- package/lib/dialog/confirmation-dialog.component.d.ts +3 -0
- package/lib/dialog/dialog-backdrop.component.d.ts +3 -0
- package/lib/dialog/dialog-footer.component.d.ts +3 -0
- package/lib/dialog/dialog-header.component.d.ts +3 -0
- package/lib/dialog/dialog-stack.service.d.ts +3 -0
- package/lib/dialog/dialog.component.d.ts +3 -0
- package/lib/dialog/dialog.module.d.ts +13 -0
- package/lib/dialog/dialog.service.d.ts +3 -0
- package/lib/divider/divider.component.d.ts +3 -0
- package/lib/divider/divider.module.d.ts +6 -0
- package/lib/dnd/dnd-drop-target.directive.d.ts +3 -0
- package/lib/dnd/dnd.module.d.ts +6 -0
- package/lib/docs/copy-text/copy-text.component.d.ts +3 -0
- package/lib/docs/docs.module.d.ts +21 -0
- package/lib/docs/example-code/example-code.component.d.ts +3 -1
- package/lib/docs/example-wrapper/example-wrapper.component.d.ts +4 -2
- package/lib/docs/example-wrapper/plunker-files.d.ts +3 -0
- package/lib/docs/example-wrapper/plunker-project.service.d.ts +3 -0
- package/lib/docs/services/sources.service.d.ts +3 -0
- package/lib/docs/srlc-indicator/srlc-indicator.component.d.ts +4 -1
- package/lib/docs/theme-switcher/theme-switcher.component.d.ts +3 -0
- package/lib/expander/expander.component.d.ts +3 -0
- package/lib/expander/expander.module.d.ts +7 -0
- package/lib/form-field/form-field.component.d.ts +3 -0
- package/lib/form-field/form-field.module.d.ts +8 -0
- package/lib/icon/icon.component.d.ts +3 -0
- package/lib/icon/icon.module.d.ts +6 -0
- package/lib/icon/icon.service.d.ts +3 -0
- package/lib/image/image.component.d.ts +3 -0
- package/lib/image/image.module.d.ts +6 -0
- package/lib/layout/card/card.component.d.ts +3 -0
- package/lib/layout/card-group/card-group.component.d.ts +3 -0
- package/lib/layout/layout-resizer/layout-resizer.component.d.ts +3 -0
- package/lib/layout/layout.module.d.ts +10 -0
- package/lib/layout/sheet/sheet.component.d.ts +3 -0
- package/lib/layout/sheet-group/sheet-group.component.d.ts +3 -0
- package/lib/menu/menu/menu.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-action/menu-action.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-group/menu-group.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-item/menu-item-base.d.ts +3 -0
- package/lib/menu/menu-item/menu-item/menu-item.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-link/menu-link.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-option/menu-option.component.d.ts +3 -0
- package/lib/menu/menu-item/menu-switch/menu-switch.component.d.ts +3 -0
- package/lib/menu/menu-key-control.service.d.ts +3 -0
- package/lib/menu/menu-popup/menu-popup.component.d.ts +3 -0
- package/lib/menu/menu.module.d.ts +19 -0
- package/lib/message/message.component.d.ts +3 -0
- package/lib/message/message.module.d.ts +8 -0
- package/lib/overlay/arrow-component/overlay-arrow.component.d.ts +3 -0
- package/lib/overlay/overlay-additions.module.d.ts +6 -0
- package/lib/overlay/overlay-component/overlay.component.d.ts +6 -3
- package/lib/overlay/overlay-container.service.d.ts +3 -0
- package/lib/overlay/overlay-custom-container.d.ts +3 -0
- package/lib/overlay/overlay-item/overlay-item.component.d.ts +3 -0
- package/lib/overlay/overlay-position.service.d.ts +3 -0
- package/lib/overlay/overlay.module.d.ts +8 -0
- package/lib/overlay/overlay.service.d.ts +3 -0
- package/lib/paginator/paginator.component.d.ts +3 -0
- package/lib/paginator/paginator.module.d.ts +10 -0
- package/lib/panel/panel.component.d.ts +3 -0
- package/lib/panel/panel.module.d.ts +7 -0
- package/lib/popover/popover-modal.component.d.ts +3 -0
- package/lib/popover/popover-modal.service.d.ts +3 -0
- package/lib/popover/popover-position.service.d.ts +3 -0
- package/lib/popover/popover.component.d.ts +3 -0
- package/lib/popover/popover.module.d.ts +10 -0
- package/lib/popup/popup-container.component.d.ts +3 -0
- package/lib/popup/popup-container.service.d.ts +3 -0
- package/lib/popup/popup-toggle.directive.d.ts +3 -0
- package/lib/popup/popup.component.d.ts +3 -0
- package/lib/popup/popup.module.d.ts +10 -0
- package/lib/popup-adapter/popup-adapter.component.d.ts +3 -0
- package/lib/popup-adapter/popup-adapter.module.d.ts +10 -0
- package/lib/progress/progress.component.d.ts +3 -0
- package/lib/progress/progress.module.d.ts +8 -0
- package/lib/radio/radio-group.component.d.ts +5 -0
- package/lib/radio/radio.module.d.ts +6 -0
- package/lib/repeat/repeat-item/repeat-item.component.d.ts +3 -0
- package/lib/repeat/repeat.component.d.ts +3 -0
- package/lib/repeat/repeat.module.d.ts +11 -0
- package/lib/search/search.component.d.ts +3 -0
- package/lib/search/search.module.d.ts +9 -0
- package/lib/select/base-select.d.ts +3 -0
- package/lib/select/combobox/combobox.component.d.ts +3 -0
- package/lib/select/select.component.d.ts +3 -0
- package/lib/select/select.module.d.ts +13 -0
- package/lib/select-v2/base-select-v2.d.ts +3 -0
- package/lib/select-v2/combobox-v2/combobox-v2.component.d.ts +3 -0
- package/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.d.ts +3 -0
- package/lib/select-v2/mark-as-selected-item.directive.d.ts +3 -0
- package/lib/select-v2/option/select-v2-option.component.d.ts +3 -0
- package/lib/select-v2/option-group/select-v2-option-group.component.d.ts +3 -0
- package/lib/select-v2/option-key-control.service.d.ts +3 -0
- package/lib/select-v2/select/select-v2.component.d.ts +3 -0
- package/lib/select-v2/select-v2.module.d.ts +18 -0
- package/lib/select-v2/selected-items-key-control.service.d.ts +3 -0
- package/lib/selector/selector.component.d.ts +3 -0
- package/lib/selector/selector.module.d.ts +10 -0
- package/lib/selector/selector.service.d.ts +3 -0
- package/lib/sorter/sorter-keyboard.service.d.ts +3 -0
- package/lib/sorter/sorter.component.d.ts +3 -0
- package/lib/sorter/sorter.module.d.ts +9 -0
- package/lib/spinner/spinner.component.d.ts +3 -0
- package/lib/spinner/spinner.module.d.ts +8 -0
- package/lib/switch/switch.component.d.ts +3 -0
- package/lib/switch/switch.module.d.ts +6 -0
- package/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.d.ts +3 -0
- package/lib/tabgroup/tab/tab-heading.directive.d.ts +3 -0
- package/lib/tabgroup/tab/tab.component.d.ts +3 -0
- package/lib/tabgroup/tab-group/tab-group.component.d.ts +3 -0
- package/lib/tabgroup/tab-heading/tab-heading.component.d.ts +3 -0
- package/lib/tabgroup/tab-heading-group/tab-heading-group.component.d.ts +3 -0
- package/lib/tabgroup/tabs.module.d.ts +12 -0
- package/lib/table/table-cell/table-cell-def.directive.d.ts +3 -0
- package/lib/table/table-cell/table-cell.directive.d.ts +3 -0
- package/lib/table/table-cell/table-column-def.directive.d.ts +3 -0
- package/lib/table/table-cell/table-footer-cell-def.directive.d.ts +3 -0
- package/lib/table/table-cell/table-footer-cell.directive.d.ts +3 -0
- package/lib/table/table-cell/table-header-cell-def.directive.d.ts +3 -0
- package/lib/table/table-cell/table-header-cell.component.d.ts +3 -0
- package/lib/table/table-resizer/table-resizer.directive.d.ts +3 -0
- package/lib/table/table-row/table-row.component.d.ts +13 -0
- package/lib/table/table-state-handler.service.d.ts +4 -1
- package/lib/table/table-virtual-scroll/slice-range.pipe.d.ts +3 -0
- package/lib/table/table-virtual-scroll/table-sticky-header.directive.d.ts +3 -0
- package/lib/table/table-virtual-scroll/table-virtual-scroll.directive.d.ts +5 -0
- package/lib/table/table.component.d.ts +3 -0
- package/lib/table/table.module.d.ts +23 -0
- package/lib/textbox/textbox-number/textbox-number.component.d.ts +3 -0
- package/lib/textbox/textbox.component.d.ts +3 -0
- package/lib/textbox/textbox.module.d.ts +11 -0
- package/lib/time-frame-picker/quick-picker/quick-picker.component.d.ts +3 -0
- package/lib/time-frame-picker/services/timeframe.service.d.ts +3 -0
- package/lib/time-frame-picker/time-frame-format.pipe.d.ts +3 -0
- package/lib/time-frame-picker/time-frame-picker.component.d.ts +3 -0
- package/lib/time-frame-picker/time-frame-picker.module.d.ts +10 -0
- package/lib/time-picker/time-picker-keyboard.service.d.ts +3 -0
- package/lib/time-picker/time-picker.component.d.ts +3 -0
- package/lib/time-picker/time-picker.module.d.ts +10 -0
- package/lib/toast/toast-container.service.d.ts +3 -0
- package/lib/toast/toast.component.d.ts +3 -0
- package/lib/toast/toast.directive.d.ts +3 -0
- package/lib/toast/toast.module.d.ts +9 -0
- package/lib/toast/toast.service.d.ts +3 -0
- package/lib/toast/toast.servicebase.d.ts +3 -0
- package/lib/toolbar/toolbar-group.component.d.ts +3 -0
- package/lib/toolbar/toolbar-item.component.d.ts +3 -0
- package/lib/toolbar/toolbar-keyboard.service.d.ts +3 -0
- package/lib/toolbar/toolbar-message.component.d.ts +3 -0
- package/lib/toolbar/toolbar-splitter.component.d.ts +3 -0
- package/lib/toolbar/toolbar.component.d.ts +3 -0
- package/lib/toolbar/toolbar.module.d.ts +14 -0
- package/lib/tooltip/tooltip.component.d.ts +3 -0
- package/lib/tooltip/tooltip.directive.d.ts +3 -0
- package/lib/tooltip/tooltip.module.d.ts +10 -0
- package/lib/validation-message/custom-validation-message/custom-validation-message.component.d.ts +3 -0
- package/lib/validation-message/validation-message.component.d.ts +3 -0
- package/lib/validation-message/validation-message.module.d.ts +8 -0
- package/lib/wizard/wizard-step.component.d.ts +3 -0
- package/lib/wizard/wizard.component.d.ts +3 -0
- package/lib/wizard/wizard.module.d.ts +11 -0
- package/lib/wizard-v2/error-state-matcher.provider.d.ts +3 -0
- package/lib/wizard-v2/wizard-button/wizard-button.d.ts +5 -0
- package/lib/wizard-v2/wizard-footer/wizard-footer.component.d.ts +3 -0
- package/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.d.ts +3 -0
- package/lib/wizard-v2/wizard-overflow/wizard-overflow.component.d.ts +3 -0
- package/lib/wizard-v2/wizard-step/wizard-step.component.d.ts +3 -0
- package/lib/wizard-v2/wizard-step-footer.directive.d.ts +3 -0
- package/lib/wizard-v2/wizard-step-header/wizard-step-header.component.d.ts +3 -0
- package/lib/wizard-v2/wizard-step-label.directive.d.ts +3 -0
- package/lib/wizard-v2/wizard-vertical/wizard-vertical.component.d.ts +3 -0
- package/lib/wizard-v2/wizard.directive.d.ts +3 -0
- package/lib/wizard-v2/wizard.module.d.ts +18 -0
- package/nova-ui-bits.d.ts +1 -31
- package/package.json +39 -28
- package/pipes/highlight.pipe.d.ts +3 -0
- package/pipes/limit-to.pipe.d.ts +3 -0
- package/pipes/unit-conversion.pipe.d.ts +3 -0
- package/schematics/README.md +28 -0
- package/sdk/atoms/atom.js +2 -2
- package/sdk/atoms/atom.js.map +1 -1
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.js +2 -2
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.js.map +1 -1
- package/sdk/atoms/components/datepicker/datepicker.atom.js +2 -2
- package/sdk/atoms/components/datepicker/datepicker.atom.js.map +1 -1
- package/sdk/atoms/components/dialog/dialog.atom.js +3 -3
- package/sdk/atoms/components/dialog/dialog.atom.js.map +1 -1
- package/sdk/atoms/components/icon/icon.atom.js +2 -0
- package/sdk/atoms/components/icon/icon.atom.js.map +1 -1
- package/sdk/atoms/components/menu/menu.atom.js.map +1 -1
- package/sdk/atoms/components/overlay/overlay.atom.js +3 -3
- package/sdk/atoms/components/overlay/overlay.atom.js.map +1 -1
- package/sdk/atoms/components/popover/popover.atom.js +6 -6
- package/sdk/atoms/components/popover/popover.atom.js.map +1 -1
- package/sdk/atoms/components/popup/overlay-content.atom.js +1 -1
- package/sdk/atoms/components/popup/overlay-content.atom.js.map +1 -1
- package/sdk/atoms/components/popup/popup.atom.js +1 -1
- package/sdk/atoms/components/popup/popup.atom.js.map +1 -1
- package/sdk/atoms/components/select-v2/base-select-v2.atom.js +1 -1
- package/sdk/atoms/components/select-v2/base-select-v2.atom.js.map +1 -1
- package/sdk/atoms/components/selector/selector.e2e.js +2 -2
- package/sdk/atoms/components/selector/selector.e2e.js.map +1 -1
- package/sdk/atoms/components/table/table.atom.js +3 -3
- package/sdk/atoms/components/table/table.atom.js.map +1 -1
- package/sdk/atoms/components/timepicker/timepicker.atom.js +3 -3
- package/sdk/atoms/components/timepicker/timepicker.atom.js.map +1 -1
- package/sdk/atoms/virtual-camera/eyes-lens.js +1 -1
- package/sdk/atoms/virtual-camera/eyes-lens.js.map +1 -1
- package/sdk/atoms/virtual-camera/percy-lens.js +1 -1
- package/sdk/atoms/virtual-camera/percy-lens.js.map +1 -1
- package/sdk/schematics/filter-group/index.js +28 -26
- package/sdk/schematics/filter-group/index.js.map +1 -1
- package/sdk/schematics/filter-group/index.spec.d.ts +1 -0
- package/sdk/schematics/filter-group/index.spec.js +91 -0
- package/sdk/schematics/filter-group/index.spec.js.map +1 -0
- package/sdk/schematics/filter-group/schema.d.ts +50 -0
- package/sdk/schematics/filter-group/schema.js +22 -0
- package/sdk/schematics/filter-group/schema.js.map +1 -0
- package/sdk/schematics/filter-group/schema.json +6 -6
- package/sdk/schematics/filtered-view/index.js +46 -40
- package/sdk/schematics/filtered-view/index.js.map +1 -1
- package/sdk/schematics/filtered-view/index.spec.d.ts +1 -0
- package/sdk/schematics/filtered-view/index.spec.js +91 -0
- package/sdk/schematics/filtered-view/index.spec.js.map +1 -0
- package/sdk/schematics/filtered-view/schema.d.ts +87 -0
- package/sdk/schematics/filtered-view/schema.js +22 -0
- package/sdk/schematics/filtered-view/schema.js.map +1 -0
- package/sdk/schematics/filtered-view/schema.json +42 -14
- package/sdk/schematics/index.js +5 -1
- package/sdk/schematics/index.js.map +1 -1
- package/sdk/schematics/layout/index.js +22 -26
- package/sdk/schematics/layout/index.js.map +1 -1
- package/sdk/schematics/layout/index.spec.d.ts +1 -0
- package/sdk/schematics/layout/index.spec.js +71 -0
- package/sdk/schematics/layout/index.spec.js.map +1 -0
- package/sdk/schematics/layout/schema.d.ts +78 -0
- package/sdk/schematics/layout/schema.js +22 -0
- package/sdk/schematics/layout/schema.js.map +1 -0
- package/sdk/schematics/layout/schema.json +5 -5
- package/sdk/schematics/list/files/__name@dasherize__.component.ts +2 -2
- package/sdk/schematics/list/index.js +37 -34
- package/sdk/schematics/list/index.js.map +1 -1
- package/sdk/schematics/list/schema.d.ts +72 -0
- package/sdk/schematics/list/schema.js +22 -0
- package/sdk/schematics/list/schema.js.map +1 -0
- package/sdk/schematics/list/schema.json +41 -13
- package/sdk/schematics/migration.json +7 -7
- package/sdk/schematics/ng-add/index.js +36 -30
- package/sdk/schematics/ng-add/index.js.map +1 -1
- package/sdk/schematics/ng-add/index.spec.d.ts +1 -0
- package/sdk/schematics/ng-add/index.spec.js +183 -0
- package/sdk/schematics/ng-add/index.spec.js.map +1 -0
- package/sdk/schematics/ng-add/schema.json +4 -4
- package/sdk/schematics/ng-update/index.js +4 -4
- package/sdk/schematics/ng-update/index.js.map +1 -1
- package/sdk/schematics/ng-update/index.spec.d.ts +1 -0
- package/sdk/schematics/ng-update/index.spec.js +108 -0
- package/sdk/schematics/ng-update/index.spec.js.map +1 -0
- package/sdk/schematics/ng-update/schema.json +4 -6
- package/sdk/schematics/table/files/__name@dasherize__.component.ts +2 -2
- package/sdk/schematics/table/index.js +43 -36
- package/sdk/schematics/table/index.js.map +1 -1
- package/sdk/schematics/table/schema.d.ts +72 -0
- package/sdk/schematics/table/schema.js +22 -0
- package/sdk/schematics/table/schema.js.map +1 -0
- package/sdk/schematics/table/schema.json +20 -8
- package/sdk/schematics/utility/json-utils.d.ts +2 -1
- package/sdk/schematics/utility/json-utils.js +11 -14
- package/sdk/schematics/utility/json-utils.js.map +1 -1
- package/sdk/schematics/utility/project-targets.js +2 -2
- package/sdk/schematics/utility/project-targets.js.map +1 -1
- package/sdk/schematics/utility/project.js +1 -1
- package/sdk/schematics/utility/project.js.map +1 -1
- package/sdk/schematics/utility/public-api.js +5 -1
- package/sdk/schematics/utility/public-api.js.map +1 -1
- package/sdk/schematics/utility/schematics-helper.d.ts +1 -1
- package/sdk/schematics/utility/schematics-helper.js +30 -25
- package/sdk/schematics/utility/schematics-helper.js.map +1 -1
- package/sdk/schematics/utility/schematics-helper.spec.d.ts +1 -0
- package/sdk/schematics/utility/schematics-helper.spec.js +63 -0
- package/sdk/schematics/utility/schematics-helper.spec.js.map +1 -0
- package/sdk/schematics/utility/workspace.d.ts +6 -0
- package/sdk/schematics/utility/workspace.js +3 -3
- package/sdk/schematics/utility/workspace.js.map +1 -1
- package/services/data-filter.service.d.ts +3 -0
- package/services/data-source/client-side-data-source.service.d.ts +3 -0
- package/services/data-source/data-source.service.d.ts +3 -0
- package/services/data-source/local-filtering-data-source.service.d.ts +3 -0
- package/services/data-source/server-side-source.service.d.ts +3 -0
- package/services/dom-util.service.d.ts +3 -0
- package/services/edge-detection.service.d.ts +3 -0
- package/services/event-bus.d.ts +3 -0
- package/services/event-bus.service.d.ts +3 -0
- package/services/event-propagation.service.d.ts +3 -0
- package/services/history-storage.d.ts +3 -0
- package/services/list.service.d.ts +3 -0
- package/services/log-service.d.ts +4 -4
- package/services/notification-service.d.ts +3 -0
- package/services/position.service.d.ts +3 -0
- package/services/search.service.d.ts +3 -0
- package/services/tab-navigation.service.d.ts +3 -0
- package/services/theme-switch.service.d.ts +3 -0
- package/services/transient-cache.service.d.ts +3 -0
- package/services/unit-conversion.service.d.ts +3 -0
- package/services/util.service.d.ts +3 -0
- package/services/virtual-viewport-manager.service.d.ts +3 -0
- package/bundles/css/styles-v7-compat.css +0 -1
- package/bundles/nova-ui-bits.umd.js +0 -26761
- package/bundles/nova-ui-bits.umd.js.map +0 -1
- package/esm2015/common/common.module.js +0 -120
- package/esm2015/common/directives/click-interceptor/click-interceptor.directive.js +0 -55
- package/esm2015/common/directives/clipboard/clipboard.directive.js +0 -114
- package/esm2015/common/directives/dragdrop/drag-and-drop.service.js +0 -77
- package/esm2015/common/directives/dragdrop/draggable.directive.js +0 -250
- package/esm2015/common/directives/dragdrop/droppable.directive.js +0 -198
- package/esm2015/common/directives/resize/resize.directive.js +0 -193
- package/esm2015/common/directives/resize-observer/resize-observer.directive.js +0 -68
- package/esm2015/common/directives/resizer/resizer.directive.js +0 -322
- package/esm2015/common/directives/set-focus/set-focus.directive.js +0 -110
- package/esm2015/common/directives/zoom-content/zoom-content.directive.js +0 -146
- package/esm2015/constants/index.js +0 -27
- package/esm2015/constants/wizard.constants.js +0 -43
- package/esm2015/environment.js +0 -53
- package/esm2015/lib/breadcrumb/breadcrumb-state.service.js +0 -54
- package/esm2015/lib/breadcrumb/breadcrumb.component.js +0 -56
- package/esm2015/lib/breadcrumb/breadcrumb.module.js +0 -38
- package/esm2015/lib/busy/busy.component.js +0 -96
- package/esm2015/lib/busy/busy.module.js +0 -37
- package/esm2015/lib/button/button.component.js +0 -216
- package/esm2015/lib/button/button.module.js +0 -37
- package/esm2015/lib/checkbox/checkbox-group.component.js +0 -147
- package/esm2015/lib/checkbox/checkbox.component.js +0 -217
- package/esm2015/lib/checkbox/checkbox.module.js +0 -37
- package/esm2015/lib/chips/chip/chip.component.js +0 -64
- package/esm2015/lib/chips/chips-overflow/chips-overflow.component.js +0 -47
- package/esm2015/lib/chips/chips-overflow.service.js +0 -141
- package/esm2015/lib/chips/chips.component.js +0 -190
- package/esm2015/lib/chips/chips.module.js +0 -40
- package/esm2015/lib/content/content.component.js +0 -45
- package/esm2015/lib/convenience/time-frame-bar/time-frame-bar.component.js +0 -181
- package/esm2015/lib/convenience/time-frame-bar/time-frame-bar.module.js +0 -54
- package/esm2015/lib/date-picker/date-picker-day-picker.component.js +0 -131
- package/esm2015/lib/date-picker/date-picker-inner.component.js +0 -293
- package/esm2015/lib/date-picker/date-picker-month-picker.component.js +0 -63
- package/esm2015/lib/date-picker/date-picker-year-picker.component.js +0 -68
- package/esm2015/lib/date-picker/date-picker.component.js +0 -275
- package/esm2015/lib/date-picker/date-picker.module.js +0 -56
- package/esm2015/lib/date-time-picker/date-time-picker.component.js +0 -206
- package/esm2015/lib/date-time-picker/date-time-picker.module.js +0 -38
- package/esm2015/lib/dialog/confirmation-dialog.component.js +0 -75
- package/esm2015/lib/dialog/dialog-backdrop.component.js +0 -33
- package/esm2015/lib/dialog/dialog-footer.component.js +0 -34
- package/esm2015/lib/dialog/dialog-header.component.js +0 -54
- package/esm2015/lib/dialog/dialog-ref.js +0 -96
- package/esm2015/lib/dialog/dialog-stack.service.js +0 -139
- package/esm2015/lib/dialog/dialog.component.js +0 -153
- package/esm2015/lib/dialog/dialog.module.js +0 -56
- package/esm2015/lib/dialog/dialog.service.js +0 -63
- package/esm2015/lib/divider/divider.component.js +0 -65
- package/esm2015/lib/divider/divider.module.js +0 -36
- package/esm2015/lib/dnd/dnd-drop-target.directive.js +0 -108
- package/esm2015/lib/docs/copy-text/copy-text.component.js +0 -51
- package/esm2015/lib/docs/docs.module.js +0 -77
- package/esm2015/lib/docs/example-code/example-code.component.js +0 -76
- package/esm2015/lib/docs/example-wrapper/example-wrapper.component.js +0 -78
- package/esm2015/lib/docs/example-wrapper/plunker-files.js +0 -412
- package/esm2015/lib/docs/example-wrapper/plunker-project.service.js +0 -111
- package/esm2015/lib/docs/services/sources.service.js +0 -92
- package/esm2015/lib/docs/srlc-indicator/srlc-indicator.component.js +0 -102
- package/esm2015/lib/expander/expander.component.js +0 -109
- package/esm2015/lib/expander/expander.module.js +0 -37
- package/esm2015/lib/form-field/form-field.component.js +0 -114
- package/esm2015/lib/form-field/form-field.module.js +0 -38
- package/esm2015/lib/icon/icon.component.js +0 -145
- package/esm2015/lib/icon/icon.module.js +0 -37
- package/esm2015/lib/icon/icon.service.js +0 -78
- package/esm2015/lib/image/image.component.js +0 -145
- package/esm2015/lib/image/image.module.js +0 -36
- package/esm2015/lib/layout/card/card.component.js +0 -44
- package/esm2015/lib/layout/card-group/card-group.component.js +0 -49
- package/esm2015/lib/layout/layout-resizer/layout-resizer.component.js +0 -99
- package/esm2015/lib/layout/layout.module.js +0 -51
- package/esm2015/lib/layout/sheet/sheet.component.js +0 -61
- package/esm2015/lib/layout/sheet-group/sheet-group.component.js +0 -174
- package/esm2015/lib/menu/menu/menu.component.js +0 -154
- package/esm2015/lib/menu/menu-item/menu-action/menu-action.component.js +0 -93
- package/esm2015/lib/menu/menu-item/menu-group/menu-group.component.js +0 -55
- package/esm2015/lib/menu/menu-item/menu-item/menu-item-base.js +0 -69
- package/esm2015/lib/menu/menu-item/menu-item/menu-item.component.js +0 -77
- package/esm2015/lib/menu/menu-item/menu-link/menu-link.component.js +0 -88
- package/esm2015/lib/menu/menu-item/menu-option/menu-option.component.js +0 -95
- package/esm2015/lib/menu/menu-item/menu-switch/menu-switch.component.js +0 -91
- package/esm2015/lib/menu/menu-key-control.service.js +0 -214
- package/esm2015/lib/menu/menu-popup/menu-popup.component.js +0 -80
- package/esm2015/lib/menu/menu.module.js +0 -74
- package/esm2015/lib/message/message.component.js +0 -116
- package/esm2015/lib/overlay/arrow-component/overlay-arrow.component.js +0 -35
- package/esm2015/lib/overlay/overlay-additions.module.js +0 -35
- package/esm2015/lib/overlay/overlay-component/overlay.component.js +0 -191
- package/esm2015/lib/overlay/overlay-container.service.js +0 -126
- package/esm2015/lib/overlay/overlay-custom-container.js +0 -52
- package/esm2015/lib/overlay/overlay-item/overlay-item.component.js +0 -67
- package/esm2015/lib/overlay/overlay-position.service.js +0 -287
- package/esm2015/lib/overlay/overlay-utilities.service.js +0 -78
- package/esm2015/lib/overlay/overlay.module.js +0 -40
- package/esm2015/lib/overlay/overlay.service.js +0 -132
- package/esm2015/lib/paginator/paginator.component.js +0 -438
- package/esm2015/lib/paginator/paginator.module.js +0 -46
- package/esm2015/lib/panel/panel.component.js +0 -439
- package/esm2015/lib/popover/popover-modal.component.js +0 -103
- package/esm2015/lib/popover/popover-modal.service.js +0 -166
- package/esm2015/lib/popover/popover-position.service.js +0 -240
- package/esm2015/lib/popover/popover.component.js +0 -449
- package/esm2015/lib/popup/popup-container.component.js +0 -85
- package/esm2015/lib/popup/popup-container.service.js +0 -32
- package/esm2015/lib/popup/popup-toggle.directive.js +0 -47
- package/esm2015/lib/popup/popup.component.js +0 -259
- package/esm2015/lib/popup/popup.module.js +0 -44
- package/esm2015/lib/popup-adapter/popup-adapter.component.js +0 -303
- package/esm2015/lib/popup-adapter/popup-adapter.module.js +0 -42
- package/esm2015/lib/progress/progress.component.js +0 -61
- package/esm2015/lib/progress/progress.module.js +0 -38
- package/esm2015/lib/radio/radio-group.component.js +0 -274
- package/esm2015/lib/radio/radio.module.js +0 -36
- package/esm2015/lib/repeat/repeat-item/repeat-item.component.js +0 -53
- package/esm2015/lib/repeat/repeat.component.js +0 -411
- package/esm2015/lib/repeat/repeat.module.js +0 -47
- package/esm2015/lib/search/search.component.js +0 -121
- package/esm2015/lib/search/search.module.js +0 -39
- package/esm2015/lib/select/base-select.js +0 -192
- package/esm2015/lib/select/combobox/combobox.component.js +0 -267
- package/esm2015/lib/select/select.component.js +0 -128
- package/esm2015/lib/select/select.module.js +0 -50
- package/esm2015/lib/select-v2/base-select-v2.js +0 -442
- package/esm2015/lib/select-v2/combobox-v2/combobox-v2.component.js +0 -303
- package/esm2015/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.js +0 -80
- package/esm2015/lib/select-v2/mark-as-selected-item.directive.js +0 -48
- package/esm2015/lib/select-v2/option/select-v2-option.component.js +0 -89
- package/esm2015/lib/select-v2/option-group/select-v2-option-group.component.js +0 -67
- package/esm2015/lib/select-v2/option-key-control.service.js +0 -140
- package/esm2015/lib/select-v2/select/select-v2.component.js +0 -131
- package/esm2015/lib/select-v2/select-v2.module.js +0 -72
- package/esm2015/lib/select-v2/selected-items-key-control.service.js +0 -159
- package/esm2015/lib/selector/selector.component.js +0 -161
- package/esm2015/lib/selector/selector.module.js +0 -46
- package/esm2015/lib/selector/selector.service.js +0 -290
- package/esm2015/lib/sorter/sorter.component.js +0 -251
- package/esm2015/lib/spinner/spinner.component.js +0 -139
- package/esm2015/lib/spinner/spinner.module.js +0 -38
- package/esm2015/lib/switch/switch.component.js +0 -93
- package/esm2015/lib/switch/switch.module.js +0 -36
- package/esm2015/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.js +0 -47
- package/esm2015/lib/tabgroup/tab/tab.component.js +0 -75
- package/esm2015/lib/tabgroup/tab-group/tab-group.component.js +0 -151
- package/esm2015/lib/tabgroup/tab-heading/tab-heading.component.js +0 -62
- package/esm2015/lib/tabgroup/tab-heading-group/tab-heading-group.component.js +0 -181
- package/esm2015/lib/tabgroup/tabs.module.js +0 -55
- package/esm2015/lib/table/table-cell/table-cell-def.directive.js +0 -40
- package/esm2015/lib/table/table-cell/table-cell.directive.js +0 -119
- package/esm2015/lib/table/table-cell/table-column-def.directive.js +0 -68
- package/esm2015/lib/table/table-cell/table-footer-cell-def.directive.js +0 -42
- package/esm2015/lib/table/table-cell/table-footer-cell.directive.js +0 -43
- package/esm2015/lib/table/table-cell/table-header-cell-def.directive.js +0 -42
- package/esm2015/lib/table/table-cell/table-header-cell.component.js +0 -279
- package/esm2015/lib/table/table-resizer/table-resizer.directive.js +0 -69
- package/esm2015/lib/table/table-row/table-row.component.js +0 -455
- package/esm2015/lib/table/table-state-handler.service.js +0 -523
- package/esm2015/lib/table/table-virtual-scroll/slice-range.pipe.js +0 -38
- package/esm2015/lib/table/table-virtual-scroll/table-sticky-header.directive.js +0 -276
- package/esm2015/lib/table/table-virtual-scroll/table-virtual-scroll-strategy.js +0 -183
- package/esm2015/lib/table/table-virtual-scroll/table-virtual-scroll.directive.js +0 -109
- package/esm2015/lib/table/table.component.js +0 -270
- package/esm2015/lib/table/table.module.js +0 -81
- package/esm2015/lib/textbox/textbox-number/textbox-number.component.js +0 -245
- package/esm2015/lib/textbox/textbox.component.js +0 -150
- package/esm2015/lib/textbox/textbox.module.js +0 -48
- package/esm2015/lib/time-frame-picker/quick-picker/quick-picker.component.js +0 -58
- package/esm2015/lib/time-frame-picker/services/timeframe.service.js +0 -215
- package/esm2015/lib/time-frame-picker/time-frame-format.pipe.js +0 -56
- package/esm2015/lib/time-frame-picker/time-frame-picker.component.js +0 -131
- package/esm2015/lib/time-frame-picker/time-frame-picker.module.js +0 -49
- package/esm2015/lib/time-picker/time-picker-keyboard.service.js +0 -115
- package/esm2015/lib/time-picker/time-picker.component.js +0 -311
- package/esm2015/lib/time-picker/time-picker.module.js +0 -46
- package/esm2015/lib/toast/toast-container.service.js +0 -93
- package/esm2015/lib/toast/toast-package.js +0 -44
- package/esm2015/lib/toast/toast-ref.js +0 -65
- package/esm2015/lib/toast/toast.component.js +0 -221
- package/esm2015/lib/toast/toast.directive.js +0 -91
- package/esm2015/lib/toast/toast.module.js +0 -47
- package/esm2015/lib/toast/toast.service.js +0 -282
- package/esm2015/lib/toolbar/toolbar-item.component.js +0 -56
- package/esm2015/lib/toolbar/toolbar-keyboard.service.js +0 -81
- package/esm2015/lib/toolbar/toolbar-splitter.component.js +0 -33
- package/esm2015/lib/toolbar/toolbar.component.js +0 -223
- package/esm2015/lib/toolbar/toolbar.module.js +0 -62
- package/esm2015/lib/tooltip/tooltip.component.js +0 -226
- package/esm2015/lib/tooltip/tooltip.directive.js +0 -227
- package/esm2015/lib/tooltip/tooltip.module.js +0 -38
- package/esm2015/lib/validation-message/custom-validation-message/custom-validation-message.component.js +0 -53
- package/esm2015/lib/validation-message/validation-message.component.js +0 -46
- package/esm2015/lib/validation-message/validation-message.module.js +0 -41
- package/esm2015/lib/wizard/wizard-step.component.js +0 -119
- package/esm2015/lib/wizard/wizard.component.js +0 -351
- package/esm2015/lib/wizard/wizard.module.js +0 -48
- package/esm2015/lib/wizard-v2/error-state-matcher.provider.js +0 -34
- package/esm2015/lib/wizard-v2/wizard-button/wizard-button.js +0 -50
- package/esm2015/lib/wizard-v2/wizard-footer/wizard-footer.component.js +0 -66
- package/esm2015/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.js +0 -303
- package/esm2015/lib/wizard-v2/wizard-overflow/wizard-overflow.component.js +0 -44
- package/esm2015/lib/wizard-v2/wizard-step/wizard-step.component.js +0 -99
- package/esm2015/lib/wizard-v2/wizard-step-header/wizard-step-header.component.js +0 -128
- package/esm2015/lib/wizard-v2/wizard-step-label.directive.js +0 -29
- package/esm2015/lib/wizard-v2/wizard-vertical/wizard-vertical.component.js +0 -71
- package/esm2015/lib/wizard-v2/wizard.directive.js +0 -132
- package/esm2015/lib/wizard-v2/wizard.module.js +0 -79
- package/esm2015/nova-ui-bits.js +0 -36
- package/esm2015/pipes/highlight.pipe.js +0 -86
- package/esm2015/pipes/unit-conversion.pipe.js +0 -58
- package/esm2015/services/data-filter.service.js +0 -90
- package/esm2015/services/data-source/client-side-data-source.service.js +0 -121
- package/esm2015/services/data-source/data-source-features.js +0 -38
- package/esm2015/services/data-source/data-source.service.js +0 -138
- package/esm2015/services/data-source/local-filtering-data-source.service.js +0 -249
- package/esm2015/services/data-source/noop-data-source.service.js +0 -32
- package/esm2015/services/data-source/server-side-source.service.js +0 -73
- package/esm2015/services/dom-util.service.js +0 -78
- package/esm2015/services/edge-detection.service.js +0 -178
- package/esm2015/services/event-bus.js +0 -67
- package/esm2015/services/event-bus.service.js +0 -49
- package/esm2015/services/event-propagation.service.js +0 -90
- package/esm2015/services/history-storage.js +0 -99
- package/esm2015/services/list.service.js +0 -99
- package/esm2015/services/notification-service.js +0 -60
- package/esm2015/services/position.service.js +0 -193
- package/esm2015/services/tab-navigation.service.js +0 -61
- package/esm2015/services/theme-switch.service.js +0 -149
- package/esm2015/services/transient-cache.service.js +0 -81
- package/esm2015/services/unit-conversion.service.js +0 -178
- package/esm2015/services/util.service.js +0 -344
- package/esm2015/services/virtual-viewport-manager.service.js +0 -140
- package/fesm2015/nova-ui-bits.js +0 -25208
- package/fesm2015/nova-ui-bits.js.map +0 -1
- package/nova-ui-bits.metadata.json +0 -1
|
@@ -29,23 +29,29 @@ function default_1(options) {
|
|
|
29
29
|
if (!options.project) {
|
|
30
30
|
throw new schematics_1.SchematicsException("Option (project) is required.");
|
|
31
31
|
}
|
|
32
|
-
return schematics_1.chain([
|
|
33
|
-
options && options.skipPackageJson
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
options && options.
|
|
37
|
-
|
|
32
|
+
return (0, schematics_1.chain)([
|
|
33
|
+
options && options.skipPackageJson
|
|
34
|
+
? (0, schematics_1.noop)()
|
|
35
|
+
: addPackageJsonDependencies(),
|
|
36
|
+
options && options.skipPackageJson
|
|
37
|
+
? (0, schematics_1.noop)()
|
|
38
|
+
: (0, schematics_helper_1.installPackageJsonDependencies)(),
|
|
39
|
+
options && options.skipProviders ? (0, schematics_1.noop)() : addProviders(options),
|
|
40
|
+
options && options.skipCss ? (0, schematics_1.noop)() : addRootCssClass(options),
|
|
41
|
+
options && options.skipCss ? (0, schematics_1.noop)() : addCssToAngularJson(options),
|
|
38
42
|
addPreprocessorOptionsToAngularJson(options),
|
|
39
|
-
options && options.skipTsConfig
|
|
43
|
+
options && options.skipTsConfig
|
|
44
|
+
? (0, schematics_1.noop)()
|
|
45
|
+
: addSyntheticImportsToTsConfig(options),
|
|
40
46
|
]);
|
|
41
47
|
}
|
|
42
48
|
exports.default = default_1;
|
|
43
49
|
function addPackageJsonDependencies() {
|
|
44
50
|
return (host, context) => {
|
|
45
51
|
const { peerDependencies } = require("../../../package.json");
|
|
46
|
-
const dependencies = schematics_helper_1.assembleDependencies(peerDependencies);
|
|
47
|
-
dependencies.forEach(dependency => {
|
|
48
|
-
dependencies_1.addPackageJsonDependency(host, dependency);
|
|
52
|
+
const dependencies = (0, schematics_helper_1.assembleDependencies)(peerDependencies);
|
|
53
|
+
dependencies.forEach((dependency) => {
|
|
54
|
+
(0, dependencies_1.addPackageJsonDependency)(host, dependency);
|
|
49
55
|
context.logger.info(`✅️ Added "${dependency.name}" into ${dependency.type}`);
|
|
50
56
|
});
|
|
51
57
|
return host;
|
|
@@ -54,26 +60,29 @@ function addPackageJsonDependencies() {
|
|
|
54
60
|
function addProviders(options) {
|
|
55
61
|
return (host, context) => {
|
|
56
62
|
try {
|
|
57
|
-
const projectTargets = schematics_helper_1.getBrowserProjectTargets(host, options);
|
|
63
|
+
const projectTargets = (0, schematics_helper_1.getBrowserProjectTargets)(host, options);
|
|
58
64
|
const mainPath = projectTargets.options.main;
|
|
59
|
-
const modulePath = ng_ast_utils_1.getAppModulePath(host, mainPath);
|
|
60
|
-
const moduleSource = schematics_helper_1.readIntoSourceFile(host, modulePath);
|
|
65
|
+
const modulePath = (0, ng_ast_utils_1.getAppModulePath)(host, mainPath);
|
|
66
|
+
const moduleSource = (0, schematics_helper_1.readIntoSourceFile)(host, modulePath);
|
|
61
67
|
const providers = [
|
|
62
68
|
`{provide: TRANSLATIONS_FORMAT, useValue: "xlf"},`,
|
|
63
69
|
`{provide: TRANSLATIONS, useValue: ""},`,
|
|
64
70
|
];
|
|
65
71
|
const declarationRecorder = host.beginUpdate(modulePath);
|
|
66
72
|
const spaceRegex = /\r?\n|\r| /g;
|
|
67
|
-
providers.forEach(provider => {
|
|
73
|
+
providers.forEach((provider) => {
|
|
68
74
|
const moduleSourceMinified = moduleSource.text.replace(spaceRegex, "");
|
|
69
75
|
const providerIndex = provider.indexOf("provide:");
|
|
70
76
|
const commaIndex = provider.indexOf(",");
|
|
71
|
-
const providerString = provider
|
|
77
|
+
const providerString = provider
|
|
78
|
+
.replace(spaceRegex, "")
|
|
79
|
+
.substring(providerIndex, commaIndex);
|
|
72
80
|
// since we are doing a "usevalue" provide, we can't use the nice isImported
|
|
73
81
|
if (!moduleSourceMinified.includes(providerString)) {
|
|
82
|
+
const providerChanges = (0, ast_utils_1.addProviderToModule)(moduleSource, modulePath, provider,
|
|
74
83
|
// @ts-ignore: Avoiding strict mode errors, preserving old behaviour
|
|
75
|
-
|
|
76
|
-
providerChanges.forEach(change => {
|
|
84
|
+
undefined);
|
|
85
|
+
providerChanges.forEach((change) => {
|
|
77
86
|
if (change instanceof change_1.InsertChange) {
|
|
78
87
|
declarationRecorder.insertLeft(change.pos, change.toAdd);
|
|
79
88
|
}
|
|
@@ -89,10 +98,10 @@ function addProviders(options) {
|
|
|
89
98
|
{ item: `MissingTranslationStrategy`, path: `@angular/core` },
|
|
90
99
|
{ item: `TRANSLATIONS_FORMAT`, path: `@angular/core` },
|
|
91
100
|
];
|
|
92
|
-
imports.forEach(importable => {
|
|
101
|
+
imports.forEach((importable) => {
|
|
93
102
|
if (!moduleSource.text.includes(importable.item)) {
|
|
94
103
|
// since we are doing a "useValue" provide, we can't use the nice isImported
|
|
95
|
-
const importChange = ast_utils_1.insertImport(moduleSource, modulePath, importable.item, importable.path);
|
|
104
|
+
const importChange = (0, ast_utils_1.insertImport)(moduleSource, modulePath, importable.item, importable.path);
|
|
96
105
|
if (importChange instanceof change_1.InsertChange) {
|
|
97
106
|
declarationRecorder.insertLeft(importChange.pos, importChange.toAdd);
|
|
98
107
|
}
|
|
@@ -114,15 +123,15 @@ function addProviders(options) {
|
|
|
114
123
|
function addRootCssClass(options) {
|
|
115
124
|
return (host, context) => {
|
|
116
125
|
try {
|
|
117
|
-
const projectTargets = schematics_helper_1.getBrowserProjectTargets(host, options);
|
|
126
|
+
const projectTargets = (0, schematics_helper_1.getBrowserProjectTargets)(host, options);
|
|
118
127
|
const filePath = projectTargets.options.index;
|
|
119
128
|
const rootHtmlFile = host.read(filePath !== null && filePath !== void 0 ? filePath : "");
|
|
120
129
|
if (rootHtmlFile) {
|
|
121
130
|
let rootHtml = rootHtmlFile.toString("utf-8");
|
|
122
131
|
if (!rootHtml.match(/<html.*(class=".*nui.*").*>/)) {
|
|
123
132
|
// TODO need a proper html parser here
|
|
124
|
-
rootHtml = rootHtml.replace("<html",
|
|
125
|
-
host.overwrite(
|
|
133
|
+
rootHtml = rootHtml.replace("<html", '<html class="nui"');
|
|
134
|
+
host.overwrite(filePath !== null && filePath !== void 0 ? filePath : "", rootHtml);
|
|
126
135
|
}
|
|
127
136
|
else {
|
|
128
137
|
context.logger.info(`️ root html already contains class`);
|
|
@@ -138,17 +147,14 @@ function addRootCssClass(options) {
|
|
|
138
147
|
}
|
|
139
148
|
function addSyntheticImportsToTsConfig(options) {
|
|
140
149
|
return (host, context) => {
|
|
141
|
-
const projectTargets = schematics_helper_1.getBrowserProjectTargets(host, options);
|
|
150
|
+
const projectTargets = (0, schematics_helper_1.getBrowserProjectTargets)(host, options);
|
|
142
151
|
const tsConfigPath = projectTargets.options.tsConfig;
|
|
143
|
-
schematics_helper_1.updateJsonFile(host, context, tsConfigPath, [
|
|
144
|
-
"compilerOptions",
|
|
145
|
-
"allowSyntheticDefaultImports",
|
|
146
|
-
], true);
|
|
152
|
+
(0, schematics_helper_1.updateJsonFile)(host, context, tsConfigPath, ["compilerOptions", "allowSyntheticDefaultImports"], true);
|
|
147
153
|
};
|
|
148
154
|
}
|
|
149
155
|
function addCssToAngularJson(options) {
|
|
150
156
|
return (host, context) => {
|
|
151
|
-
schematics_helper_1.updateJsonFile(host, context, "angular.json", [
|
|
157
|
+
(0, schematics_helper_1.updateJsonFile)(host, context, "angular.json", [
|
|
152
158
|
"projects",
|
|
153
159
|
options.project,
|
|
154
160
|
"architect",
|
|
@@ -160,7 +166,7 @@ function addCssToAngularJson(options) {
|
|
|
160
166
|
}
|
|
161
167
|
function addPreprocessorOptionsToAngularJson(options) {
|
|
162
168
|
return (host, context) => {
|
|
163
|
-
schematics_helper_1.updateJsonFile(host, context, "angular.json", [
|
|
169
|
+
(0, schematics_helper_1.updateJsonFile)(host, context, "angular.json", [
|
|
164
170
|
"projects",
|
|
165
171
|
options.project,
|
|
166
172
|
"architect",
|
|
@@ -168,7 +174,7 @@ function addPreprocessorOptionsToAngularJson(options) {
|
|
|
168
174
|
"options",
|
|
169
175
|
"stylePreprocessorOptions",
|
|
170
176
|
], {
|
|
171
|
-
|
|
177
|
+
includePaths: ["node_modules"],
|
|
172
178
|
});
|
|
173
179
|
};
|
|
174
180
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;AAEjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ng-add/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;AAEjB,2DAOoC;AACpC,qEAG+C;AAC/C,+DAAkE;AAClE,2EAGkD;AAClD,2EAA4E;AAE5E,oEAMsC;AAEtC,mBAAyB,OAAY;IACjC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;QAClB,MAAM,IAAI,gCAAmB,CAAC,+BAA+B,CAAC,CAAC;KAClE;IAED,OAAO,IAAA,kBAAK,EAAC;QACT,OAAO,IAAI,OAAO,CAAC,eAAe;YAC9B,CAAC,CAAC,IAAA,iBAAI,GAAE;YACR,CAAC,CAAC,0BAA0B,EAAE;QAClC,OAAO,IAAI,OAAO,CAAC,eAAe;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C,IAAI,EAAE,OAAO,CAAC,CAAC;QAC/D,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC;QAErD,IAAA,kCAAc,EACV,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,CAAC,iBAAiB,EAAE,8BAA8B,CAAC,EACnD,IAAI,CACP,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAED,SAAS,mBAAmB,CAAC,OAAY;IACrC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC7C,IAAA,kCAAc,EACV,IAAI,EACJ,OAAO,EACP,cAAc,EACd;YACI,UAAU;YACV,OAAO,CAAC,OAAO;YACf,WAAW;YACX,OAAO;YACP,SAAS;YACT,QAAQ;SACX,EACD,CAAC,qDAAqD,CAAC,CAC1D,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AACD,SAAS,mCAAmC,CAAC,OAAY;IACrD,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC7C,IAAA,kCAAc,EACV,IAAI,EACJ,OAAO,EACP,cAAc,EACd;YACI,UAAU;YACV,OAAO,CAAC,OAAO;YACf,WAAW;YACX,OAAO;YACP,SAAS;YACT,0BAA0B;SAC7B,EACD;YACI,YAAY,EAAE,CAAC,cAAc,CAAC;SACjC,CACJ,CAAC;IACN,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to
|
|
6
|
+
// deal in the Software without restriction, including without limitation the
|
|
7
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in
|
|
12
|
+
// all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
// THE SOFTWARE.
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
32
|
+
const jsonc_parser_1 = require("jsonc-parser");
|
|
33
|
+
const schematics_helper_1 = require("../utility/schematics-helper");
|
|
34
|
+
function readJsonFile(tree, path) {
|
|
35
|
+
return (0, jsonc_parser_1.parse)(tree.readContent(path).toString());
|
|
36
|
+
}
|
|
37
|
+
describe("ng-add", () => {
|
|
38
|
+
const runner = new testing_1.SchematicTestRunner("schematics", require.resolve("../collection.json"));
|
|
39
|
+
let appTree;
|
|
40
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
const workspaceOptions = {
|
|
42
|
+
name: "workspace",
|
|
43
|
+
newProjectRoot: "projects",
|
|
44
|
+
version: "6.0.0",
|
|
45
|
+
};
|
|
46
|
+
const appOptions = {
|
|
47
|
+
name: "bar",
|
|
48
|
+
inlineStyle: false,
|
|
49
|
+
inlineTemplate: false,
|
|
50
|
+
routing: false,
|
|
51
|
+
style: "css",
|
|
52
|
+
skipTests: false,
|
|
53
|
+
skipPackageJson: false,
|
|
54
|
+
};
|
|
55
|
+
appTree = yield runner
|
|
56
|
+
.runExternalSchematicAsync("@schematics/angular", "workspace", workspaceOptions)
|
|
57
|
+
.toPromise();
|
|
58
|
+
appTree = yield runner
|
|
59
|
+
.runExternalSchematicAsync("@schematics/angular", "application", appOptions, appTree)
|
|
60
|
+
.toPromise();
|
|
61
|
+
}));
|
|
62
|
+
it("adds style to angular.json without property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
+
appTree.overwrite("angular.json", JSON.stringify({
|
|
64
|
+
projects: {
|
|
65
|
+
bar: {
|
|
66
|
+
architect: {
|
|
67
|
+
build: {
|
|
68
|
+
options: {},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
}));
|
|
74
|
+
const afterTree = yield runner
|
|
75
|
+
.runSchematicAsync("ng-add", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
76
|
+
.toPromise();
|
|
77
|
+
const file = readJsonFile(afterTree, "angular.json");
|
|
78
|
+
expect(file.projects.bar.architect.build.options.styles[0]).toEqual("./node_modules/@nova-ui/bits/bundles/css/styles.css");
|
|
79
|
+
}));
|
|
80
|
+
it("adds style to angular.json without property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
81
|
+
appTree.overwrite("angular.json", JSON.stringify({
|
|
82
|
+
projects: {
|
|
83
|
+
bar: {
|
|
84
|
+
architect: {
|
|
85
|
+
build: {
|
|
86
|
+
options: {},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
}));
|
|
92
|
+
const afterTree = yield runner
|
|
93
|
+
.runSchematicAsync("ng-add", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
94
|
+
.toPromise();
|
|
95
|
+
const file = readJsonFile(afterTree, "angular.json");
|
|
96
|
+
expect(file.projects.bar.architect.build.options.stylePreprocessorOptions
|
|
97
|
+
.includePaths[0]).toEqual("node_modules");
|
|
98
|
+
}));
|
|
99
|
+
it("does not re-add style to angular.json", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
appTree.overwrite("angular.json", JSON.stringify({
|
|
101
|
+
projects: {
|
|
102
|
+
bar: {
|
|
103
|
+
architect: {
|
|
104
|
+
build: {
|
|
105
|
+
options: {
|
|
106
|
+
styles: [
|
|
107
|
+
"./node_modules/@nova-ui/bits/bundles/css/styles.css",
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
}));
|
|
115
|
+
const afterTree = yield runner
|
|
116
|
+
.runSchematicAsync("ng-add", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
117
|
+
.toPromise();
|
|
118
|
+
const file = readJsonFile(afterTree, "angular.json");
|
|
119
|
+
expect(file.projects.bar.architect.build.options.styles.length).toEqual(1);
|
|
120
|
+
}));
|
|
121
|
+
it("updates style array in angular.json", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
122
|
+
const afterTree = yield runner
|
|
123
|
+
.runSchematicAsync("ng-add", { skipTsConfig: true, project: "bar" }, appTree)
|
|
124
|
+
.toPromise();
|
|
125
|
+
const file = readJsonFile(afterTree, "angular.json");
|
|
126
|
+
expect(file.projects.bar.architect.build.options.styles[1]).toContain("@nova-ui/bits");
|
|
127
|
+
}));
|
|
128
|
+
it("add class to html", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
129
|
+
var _a;
|
|
130
|
+
const afterTree = yield runner
|
|
131
|
+
.runSchematicAsync("ng-add", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
132
|
+
.toPromise();
|
|
133
|
+
expect(((_a = afterTree.read(`/projects/bar/src/index.html`)) !== null && _a !== void 0 ? _a : "").toString("utf-8")).toContain("nui");
|
|
134
|
+
}));
|
|
135
|
+
it("add property to tsConfig", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
136
|
+
const afterTree = yield runner
|
|
137
|
+
.runSchematicAsync("ng-add", {
|
|
138
|
+
skipCss: true,
|
|
139
|
+
skipProviders: true,
|
|
140
|
+
skipPackageJson: true,
|
|
141
|
+
project: "bar",
|
|
142
|
+
}, appTree)
|
|
143
|
+
.toPromise();
|
|
144
|
+
const afterFile = readJsonFile(afterTree, `projects/bar/tsconfig.app.json`);
|
|
145
|
+
expect(afterFile.compilerOptions.allowSyntheticDefaultImports).toEqual(true);
|
|
146
|
+
}));
|
|
147
|
+
it("won't re-add property to tsConfig", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
148
|
+
appTree.overwrite(`projects/bar/tsconfig.app.json`, JSON.stringify({
|
|
149
|
+
compilerOptions: {
|
|
150
|
+
allowSyntheticDefaultImports: false,
|
|
151
|
+
module: "commonjs",
|
|
152
|
+
},
|
|
153
|
+
exclude: ["node_modules", "atoms.d.ts"],
|
|
154
|
+
lib: ["es2017", "dom"],
|
|
155
|
+
}));
|
|
156
|
+
const afterTree = yield runner
|
|
157
|
+
.runSchematicAsync("ng-add", {
|
|
158
|
+
skipCss: true,
|
|
159
|
+
skipProviders: true,
|
|
160
|
+
skipPackageJson: true,
|
|
161
|
+
project: "bar",
|
|
162
|
+
}, appTree)
|
|
163
|
+
.toPromise();
|
|
164
|
+
const afterFile = readJsonFile(afterTree, `projects/bar/tsconfig.app.json`);
|
|
165
|
+
expect(afterFile.compilerOptions.allowSyntheticDefaultImports).toEqual(false);
|
|
166
|
+
}));
|
|
167
|
+
it("updates the dependencies in package.json with the peerDependencies from Bits and ignores upper versions of peer dependencies if provided", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
168
|
+
const afterTree = yield runner
|
|
169
|
+
.runSchematicAsync("ng-add", {
|
|
170
|
+
project: "bar",
|
|
171
|
+
skipCss: true,
|
|
172
|
+
skipProviders: true,
|
|
173
|
+
skipTsConfig: true,
|
|
174
|
+
}, appTree)
|
|
175
|
+
.toPromise();
|
|
176
|
+
const file = readJsonFile(afterTree, "package.json");
|
|
177
|
+
const { peerDependencies } = require("../../../package.json");
|
|
178
|
+
Object.keys(peerDependencies).forEach((key) => {
|
|
179
|
+
expect((0, schematics_helper_1.omitUpperPeerDependencyVersion)(peerDependencies[key])).toEqual(file.dependencies[key], `Dependency ${key} wasn't updated`);
|
|
180
|
+
});
|
|
181
|
+
}));
|
|
182
|
+
});
|
|
183
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/ng-add/index.spec.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;;;;;;;;;;AAEjB,gEAG4C;AAC5C,+CAAqC;AAErC,oEAA8E;AAE9E,SAAS,YAAY,CAAC,IAAkB,EAAE,IAAY;IAClD,OAAO,IAAA,oBAAK,EAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CA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ClE,KAAK,CACR,CAAC;IACN,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,0IAA0I,EAAE,GAAS,EAAE;QACtJ,MAAM,SAAS,GAAG,MAAM,MAAM;aACzB,iBAAiB,CACd,QAAQ,EACR;YACI,OAAO,EAAE,KAAK;YACd,OAAO,EAAE,IAAI;YACb,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,IAAI;SACrB,EACD,OAAO,CACV;aACA,SAAS,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,YAAY,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QACrD,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC1C,MAAM,CACF,IAAA,kDAA8B,EAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CACxD,CAAC,OAAO,CACL,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EACtB,cAAc,GAAG,iBAAiB,CACrC,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$id": "SchematicsNovaAdd",
|
|
2
3
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"id": "SchematicsNovaAdd",
|
|
4
|
-
"title": "ng-add schematic for bits",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"description": "bootstraps a project for bits consumption",
|
|
7
5
|
"properties": {
|
|
8
6
|
"project": {
|
|
@@ -38,5 +36,7 @@
|
|
|
38
36
|
"default": false
|
|
39
37
|
}
|
|
40
38
|
},
|
|
41
|
-
"required": []
|
|
39
|
+
"required": [],
|
|
40
|
+
"title": "ng-add schematic for bits",
|
|
41
|
+
"type": "object"
|
|
42
42
|
}
|
|
@@ -25,21 +25,21 @@ function default_1(options) {
|
|
|
25
25
|
if (!options.project) {
|
|
26
26
|
throw new schematics_1.SchematicsException("Option (project) is required.");
|
|
27
27
|
}
|
|
28
|
-
return schematics_1.chain([
|
|
29
|
-
options && options.skipCss ? schematics_1.noop() : addCssToAngularJson(options),
|
|
28
|
+
return (0, schematics_1.chain)([
|
|
29
|
+
options && options.skipCss ? (0, schematics_1.noop)() : addCssToAngularJson(options),
|
|
30
30
|
]);
|
|
31
31
|
}
|
|
32
32
|
exports.default = default_1;
|
|
33
33
|
function addCssToAngularJson(options) {
|
|
34
34
|
return (host, context) => {
|
|
35
|
-
schematics_helper_1.updateJsonFile(host, context, "angular.json", [
|
|
35
|
+
(0, schematics_helper_1.updateJsonFile)(host, context, "angular.json", [
|
|
36
36
|
"projects",
|
|
37
37
|
options.project,
|
|
38
38
|
"architect",
|
|
39
39
|
"build",
|
|
40
40
|
"options",
|
|
41
41
|
"styles",
|
|
42
|
-
], ["./node_modules/@nova-ui/bits/bundles/css/styles
|
|
42
|
+
], ["./node_modules/@nova-ui/bits/bundles/css/styles.css"]);
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;AAEjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ng-update/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,+EAA+E;AAC/E,0EAA0E;AAC1E,iFAAiF;AACjF,6EAA6E;AAC7E,iBAAiB;;AAEjB,2DAOoC;AAEpC,oEAA8D;AAE9D,mBAAyB,OAAY;IACjC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;QAClB,MAAM,IAAI,gCAAmB,CAAC,+BAA+B,CAAC,CAAC;KAClE;IAED,OAAO,IAAA,kBAAK,EAAC;QACT,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC;KACrE,CAAC,CAAC;AACP,CAAC;AARD,4BAQC;AAED,SAAS,mBAAmB,CAAC,OAAY;IACrC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC7C,IAAA,kCAAc,EACV,IAAI,EACJ,OAAO,EACP,cAAc,EACd;YACI,UAAU;YACV,OAAO,CAAC,OAAO;YACf,WAAW;YACX,OAAO;YACP,SAAS;YACT,QAAQ;SACX,EACD,CAAC,qDAAqD,CAAC,CAC1D,CAAC;IACN,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
// of this software and associated documentation files (the "Software"), to
|
|
6
|
+
// deal in the Software without restriction, including without limitation the
|
|
7
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
8
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
// furnished to do so, subject to the following conditions:
|
|
10
|
+
//
|
|
11
|
+
// The above copyright notice and this permission notice shall be included in
|
|
12
|
+
// all copies or substantial portions of the Software.
|
|
13
|
+
//
|
|
14
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
20
|
+
// THE SOFTWARE.
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
+
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
32
|
+
describe("ng-update", () => {
|
|
33
|
+
const runner = new testing_1.SchematicTestRunner("schematics", require.resolve("../migration.json"));
|
|
34
|
+
let appTree;
|
|
35
|
+
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
|
+
const workspaceOptions = {
|
|
37
|
+
name: "workspace",
|
|
38
|
+
newProjectRoot: "projects",
|
|
39
|
+
version: "6.0.0",
|
|
40
|
+
};
|
|
41
|
+
const appOptions = {
|
|
42
|
+
name: "bar",
|
|
43
|
+
inlineStyle: false,
|
|
44
|
+
inlineTemplate: false,
|
|
45
|
+
routing: false,
|
|
46
|
+
style: "css",
|
|
47
|
+
skipTests: false,
|
|
48
|
+
skipPackageJson: false,
|
|
49
|
+
};
|
|
50
|
+
appTree = yield runner
|
|
51
|
+
.runExternalSchematicAsync("@schematics/angular", "workspace", workspaceOptions)
|
|
52
|
+
.toPromise();
|
|
53
|
+
appTree = yield runner
|
|
54
|
+
.runExternalSchematicAsync("@schematics/angular", "application", appOptions, appTree)
|
|
55
|
+
.toPromise();
|
|
56
|
+
}));
|
|
57
|
+
it("adds style to angular.json without property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
58
|
+
var _a;
|
|
59
|
+
appTree.overwrite("angular.json", JSON.stringify({
|
|
60
|
+
projects: {
|
|
61
|
+
bar: {
|
|
62
|
+
architect: {
|
|
63
|
+
build: {
|
|
64
|
+
options: {},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
}));
|
|
70
|
+
const afterTree = yield runner
|
|
71
|
+
.runSchematicAsync("nova-migration-v8", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
72
|
+
.toPromise();
|
|
73
|
+
const file = JSON.parse(((_a = afterTree.read("angular.json")) !== null && _a !== void 0 ? _a : "").toString("utf-8"));
|
|
74
|
+
expect(file.projects.bar.architect.build.options.styles[0]).toEqual("./node_modules/@nova-ui/bits/bundles/css/styles-v7-compat.css");
|
|
75
|
+
}));
|
|
76
|
+
it("does not re-add style to angular.json", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
77
|
+
var _b, _c;
|
|
78
|
+
appTree.overwrite("angular.json", JSON.stringify({
|
|
79
|
+
projects: {
|
|
80
|
+
bar: {
|
|
81
|
+
architect: {
|
|
82
|
+
build: {
|
|
83
|
+
options: {
|
|
84
|
+
styles: [
|
|
85
|
+
"./node_modules/@nova-ui/bits/bundles/css/styles-v7-compat.css",
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
}));
|
|
93
|
+
const afterTree = yield runner
|
|
94
|
+
.runSchematicAsync("nova-migration-v8", { skipTsConfig: true, project: "bar", skipCss: false }, appTree)
|
|
95
|
+
.toPromise();
|
|
96
|
+
const file = JSON.parse((_c = ((_b = afterTree.read("angular.json")) !== null && _b !== void 0 ? _b : "")) === null || _c === void 0 ? void 0 : _c.toString("utf-8"));
|
|
97
|
+
expect(file.projects.bar.architect.build.options.styles.length).toEqual(1);
|
|
98
|
+
}));
|
|
99
|
+
it("updates style array in angular.json", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
100
|
+
var _d;
|
|
101
|
+
const afterTree = yield runner
|
|
102
|
+
.runSchematicAsync("nova-migration-v8", { skipTsConfig: true, project: "bar" }, appTree)
|
|
103
|
+
.toPromise();
|
|
104
|
+
const file = JSON.parse(((_d = afterTree.read("angular.json")) !== null && _d !== void 0 ? _d : "").toString("utf-8"));
|
|
105
|
+
expect(file.projects.bar.architect.build.options.styles[1]).toContain("@nova-ui/bits");
|
|
106
|
+
}));
|
|
107
|
+
});
|
|
108
|
+
//# sourceMappingURL=index.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/ng-update/index.spec.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,+EAA+E;AAC/E,8EAA8E;AAC9E,4DAA4D;AAC5D,EAAE;AACF,6EAA6E;AAC7E,uDAAuD;AACvD,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AA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AC,CACJ,CAAC;IACN,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAS,EAAE;;QACjD,MAAM,SAAS,GAAG,MAAM,MAAM;aACzB,iBAAiB,CACd,mBAAmB,EACnB,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EACtC,OAAO,CACV;aACA,SAAS,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CACnB,CAAC,MAAA,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,mCAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAC3D,CAAC;QACF,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CACjE,eAAe,CAClB,CAAC;IACN,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$id": "SchematicsNovaUpdate",
|
|
2
3
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"id": "SchematicsNovaUpdate",
|
|
4
|
-
"title": "ng-update schematic for bits",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"description": "updates a bits project",
|
|
7
5
|
"properties": {
|
|
8
6
|
"project": {
|
|
@@ -28,7 +26,7 @@
|
|
|
28
26
|
"default": false
|
|
29
27
|
}
|
|
30
28
|
},
|
|
31
|
-
"required": [
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
"required": [],
|
|
30
|
+
"title": "ng-update schematic for bits",
|
|
31
|
+
"type": "object"
|
|
34
32
|
}
|
|
@@ -167,7 +167,7 @@ export class <%= classify(name) %>Component implements <% if (dataSource === "se
|
|
|
167
167
|
|
|
168
168
|
private previouslyLoadedCount: number;<% }} %>
|
|
169
169
|
|
|
170
|
-
private destroy$ = new Subject();
|
|
170
|
+
private destroy$ = new Subject<void>();
|
|
171
171
|
|
|
172
172
|
constructor(
|
|
173
173
|
@Inject(DataSourceService) private dataSource: <%
|
|
@@ -378,4 +378,4 @@ export class <%= classify(name) %>Component implements <% if (dataSource === "se
|
|
|
378
378
|
<% } %>
|
|
379
379
|
await this.dataSource.applyFilters();
|
|
380
380
|
}
|
|
381
|
-
}
|
|
381
|
+
}
|