@nova-ui/bits 12.0.17 → 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
|
@@ -24,7 +24,6 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
24
24
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
25
25
|
const change_1 = require("@schematics/angular/utility/change");
|
|
26
26
|
const find_module_1 = require("@schematics/angular/utility/find-module");
|
|
27
|
-
const lint_fix_1 = require("@schematics/angular/utility/lint-fix");
|
|
28
27
|
const parse_name_1 = require("@schematics/angular/utility/parse-name");
|
|
29
28
|
const validation_1 = require("@schematics/angular/utility/validation");
|
|
30
29
|
const project_1 = require("../utility/project");
|
|
@@ -35,12 +34,12 @@ function addDeclarationToNgModule(options) {
|
|
|
35
34
|
return host;
|
|
36
35
|
}
|
|
37
36
|
const modulePath = options.module;
|
|
38
|
-
let moduleSource = schematics_helper_1.readIntoSourceFile(host, modulePath);
|
|
39
|
-
const componentPath = `/${options.path}/`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const relativePath = find_module_1.buildRelativePath(modulePath, componentPath);
|
|
37
|
+
let moduleSource = (0, schematics_helper_1.readIntoSourceFile)(host, modulePath);
|
|
38
|
+
const componentPath = `/${options.path}/` +
|
|
39
|
+
(options.flat ? "" : core_1.strings.dasherize(options.name) + "/") +
|
|
40
|
+
core_1.strings.dasherize(options.name) +
|
|
41
|
+
".component";
|
|
42
|
+
const relativePath = (0, find_module_1.buildRelativePath)(modulePath, componentPath);
|
|
44
43
|
const componentName = core_1.strings.classify(`${options.name}Component`);
|
|
45
44
|
// default modules to be imported
|
|
46
45
|
const modules = [
|
|
@@ -48,7 +47,10 @@ function addDeclarationToNgModule(options) {
|
|
|
48
47
|
{ item: "NuiIconModule", path: "@nova-ui/bits" },
|
|
49
48
|
];
|
|
50
49
|
if (options.dataSource === "serverSide") {
|
|
51
|
-
modules.push({
|
|
50
|
+
modules.push({
|
|
51
|
+
item: "HttpClientModule",
|
|
52
|
+
path: "@angular/common/http",
|
|
53
|
+
});
|
|
52
54
|
if (options.pagingMode === "none") {
|
|
53
55
|
throw new Error("Cannot display serverSide dataSource without a pagingMode");
|
|
54
56
|
}
|
|
@@ -62,15 +64,18 @@ function addDeclarationToNgModule(options) {
|
|
|
62
64
|
modules.push({ item: "NuiPaginatorModule", path: "@nova-ui/bits" });
|
|
63
65
|
}
|
|
64
66
|
else if (options.pagingMode === "virtualScroll") {
|
|
65
|
-
modules.push({
|
|
67
|
+
modules.push({
|
|
68
|
+
item: "ScrollingModule",
|
|
69
|
+
path: "@angular/cdk/scrolling",
|
|
70
|
+
});
|
|
66
71
|
modules.push({ item: "NuiProgressModule", path: "@nova-ui/bits" });
|
|
67
72
|
}
|
|
68
|
-
schematics_helper_1.updateModuleChanges(host, options, moduleSource, modules, [], [{ item: componentName, path: relativePath }]);
|
|
73
|
+
(0, schematics_helper_1.updateModuleChanges)(host, options, moduleSource, modules, [], [{ item: componentName, path: relativePath }]);
|
|
69
74
|
if (options.export) {
|
|
70
75
|
// Need to refresh the AST because we overwrote the file in the host.
|
|
71
|
-
moduleSource = schematics_helper_1.readIntoSourceFile(host, modulePath);
|
|
76
|
+
moduleSource = (0, schematics_helper_1.readIntoSourceFile)(host, modulePath);
|
|
72
77
|
const exportRecorder = host.beginUpdate(modulePath);
|
|
73
|
-
const exportChanges = ast_utils_1.addExportToModule(moduleSource, modulePath, core_1.strings.classify(`${options.name}Component`), relativePath);
|
|
78
|
+
const exportChanges = (0, ast_utils_1.addExportToModule)(moduleSource, modulePath, core_1.strings.classify(`${options.name}Component`), relativePath);
|
|
74
79
|
for (const change of exportChanges) {
|
|
75
80
|
if (change instanceof change_1.InsertChange) {
|
|
76
81
|
exportRecorder.insertLeft(change.pos, change.toAdd);
|
|
@@ -86,46 +91,48 @@ function default_1(options) {
|
|
|
86
91
|
if (!options.project) {
|
|
87
92
|
throw new schematics_1.SchematicsException("Option (project) is required.");
|
|
88
93
|
}
|
|
89
|
-
const project = project_1.getProject(host, options.project);
|
|
94
|
+
const project = (0, project_1.getProject)(host, options.project);
|
|
90
95
|
if (options.path === undefined) {
|
|
91
|
-
options.path = project_1.buildDefaultPath(project);
|
|
96
|
+
options.path = (0, project_1.buildDefaultPath)(project);
|
|
92
97
|
}
|
|
93
|
-
options.module = find_module_1.findModuleFromOptions(host, options);
|
|
94
|
-
const parsedPath = parse_name_1.parseName(options.path, options.name);
|
|
98
|
+
options.module = (0, find_module_1.findModuleFromOptions)(host, options);
|
|
99
|
+
const parsedPath = (0, parse_name_1.parseName)(options.path, options.name);
|
|
95
100
|
options.name = parsedPath.name;
|
|
96
101
|
options.path = parsedPath.path;
|
|
97
|
-
options.selector =
|
|
102
|
+
options.selector =
|
|
103
|
+
options.selector || (0, schematics_helper_1.buildSelector)(options, project.prefix);
|
|
98
104
|
options.dataSourceName = options.dataSourceName || options.name;
|
|
99
|
-
validation_1.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if ((options.virtualScrollStrategy !== "custom") &&
|
|
105
|
+
(0, validation_1.validateHtmlSelector)(options.selector);
|
|
106
|
+
const templateSource = (0, schematics_1.apply)((0, schematics_1.url)("./files"), [
|
|
107
|
+
(0, schematics_1.template)(Object.assign(Object.assign(Object.assign({}, core_1.strings), { "if-flat": (s) => (options.flat ? "" : s) }), options)),
|
|
108
|
+
(0, schematics_1.filter)((path) => {
|
|
109
|
+
if (options.virtualScrollStrategy !== "custom" &&
|
|
105
110
|
path.endsWith("virtual-scroll-custom-strategy.service.ts")) {
|
|
106
111
|
return false;
|
|
107
112
|
}
|
|
108
|
-
if (options.dataSource === "custom" &&
|
|
113
|
+
if (options.dataSource === "custom" &&
|
|
114
|
+
(path.endsWith("data-source.service.ts") ||
|
|
115
|
+
path.endsWith("types.ts"))) {
|
|
109
116
|
return false;
|
|
110
117
|
}
|
|
111
|
-
if ((options.dataSource === "none" ||
|
|
118
|
+
if ((options.dataSource === "none" ||
|
|
119
|
+
options.dataSource === "clientSide") &&
|
|
120
|
+
path.endsWith("data-source.service.ts")) {
|
|
112
121
|
return false;
|
|
113
122
|
}
|
|
114
|
-
return (options.dataSourceName === options.name
|
|
115
|
-
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
&& !path.endsWith("data.ts"));
|
|
123
|
+
return (options.dataSourceName === options.name ||
|
|
124
|
+
(options.dataSourceName !== options.name &&
|
|
125
|
+
!path.endsWith("data-source.service.ts") &&
|
|
126
|
+
!path.endsWith("types.ts") &&
|
|
127
|
+
!path.endsWith("data.ts")));
|
|
120
128
|
}),
|
|
121
|
-
schematics_1.move(`${parsedPath.path}/${parsedPath.name}`),
|
|
129
|
+
(0, schematics_1.move)(`${parsedPath.path}/${parsedPath.name}`),
|
|
122
130
|
]);
|
|
123
|
-
return schematics_1.chain([
|
|
124
|
-
schematics_1.branchAndMerge(schematics_1.chain([
|
|
131
|
+
return (0, schematics_1.chain)([
|
|
132
|
+
(0, schematics_1.branchAndMerge)((0, schematics_1.chain)([
|
|
125
133
|
addDeclarationToNgModule(options),
|
|
126
|
-
schematics_1.mergeWith(templateSource),
|
|
134
|
+
(0, schematics_1.mergeWith)(templateSource),
|
|
127
135
|
])),
|
|
128
|
-
options.lintFix ? lint_fix_1.applyLintFix(options.path) : schematics_1.noop(),
|
|
129
136
|
]);
|
|
130
137
|
};
|
|
131
138
|
}
|
|
@@ -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,6EAA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ACxC,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;wBAC1B,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CACjC,CAAC;YACN,CAAC,CAAC;YACF,IAAA,iBAAI,EAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,EAAE,CAAC;SAChD,CAAC,CAAC;QAEH,OAAO,IAAA,kBAAK,EAAC;YACT,IAAA,2BAAc,EACV,IAAA,kBAAK,EAAC;gBACF,wBAAwB,CAAC,OAAO,CAAC;gBACjC,IAAA,sBAAS,EAAC,cAAc,CAAC;aAC5B,CAAC,CACL;SACJ,CAAC,CAAC;IACP,CAAC,CAAC;AACN,CAAC;AAzED,4BAyEC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface Schema {
|
|
2
|
+
/**
|
|
3
|
+
* Specifies if declaring module exports the component.
|
|
4
|
+
*/
|
|
5
|
+
export?: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Flag to indicate if a directory is created.
|
|
8
|
+
*/
|
|
9
|
+
flat?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies whether to apply lint fixes after generating the component.
|
|
12
|
+
*/
|
|
13
|
+
lintFix?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Allows specification of the declaring module.
|
|
16
|
+
*/
|
|
17
|
+
module?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the component.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* The path to create the component.
|
|
24
|
+
*/
|
|
25
|
+
path?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The prefix to apply to generated selectors.
|
|
28
|
+
*/
|
|
29
|
+
prefix?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the project.
|
|
32
|
+
*/
|
|
33
|
+
project?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The selector to use for the component.
|
|
36
|
+
*/
|
|
37
|
+
selector?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Flag to skip the module import.
|
|
40
|
+
*/
|
|
41
|
+
skipImport?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies if search feature is enabled (default true)
|
|
44
|
+
*/
|
|
45
|
+
enableSearch?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies if sorting feature is enabled (default true)
|
|
48
|
+
*/
|
|
49
|
+
enableSort?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Specifies the presentation mode to be used for the list
|
|
52
|
+
* (pagination | virtualScroll | none)
|
|
53
|
+
*/
|
|
54
|
+
pagingMode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies the selection mode to be used for the table
|
|
57
|
+
*/
|
|
58
|
+
selectionMode: string;
|
|
59
|
+
/**
|
|
60
|
+
* Whether to generate client-side, server-side or custom DataSource
|
|
61
|
+
*/
|
|
62
|
+
dataSource?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies the data source class
|
|
65
|
+
* (when not provided the name parameter is used to generate the class name)
|
|
66
|
+
*/
|
|
67
|
+
dataSourceName?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to generate standard or custom virtual scroll strategy
|
|
70
|
+
*/
|
|
71
|
+
virtualScrollStrategy?: string;
|
|
72
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/table/schema.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"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$id": "SchematicsNovaTableComponent",
|
|
2
3
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"id": "SchematicsNovaTableComponent",
|
|
4
|
-
"title": "Generates table component",
|
|
5
|
-
"type": "object",
|
|
6
4
|
"description": "Adds a table",
|
|
7
5
|
"properties": {
|
|
8
6
|
"name": {
|
|
@@ -88,10 +86,22 @@
|
|
|
88
86
|
"message": "What is the source of your data?",
|
|
89
87
|
"type": "list",
|
|
90
88
|
"items": [
|
|
91
|
-
{
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
{
|
|
90
|
+
"value": "clientSide",
|
|
91
|
+
"label": "The generated data source will retrieve data locally from a client side source."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "serverSide",
|
|
95
|
+
"label": "The generated data source will retrieve data remotely from a server side API."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "custom",
|
|
99
|
+
"label": "No data source will be generated, allowing you to create one from scratch."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "none",
|
|
103
|
+
"label": "No data source will be generated and no accommodations for a data source, e.g. sorting or search, will be added to the generated code."
|
|
104
|
+
}
|
|
95
105
|
]
|
|
96
106
|
}
|
|
97
107
|
},
|
|
@@ -135,5 +145,7 @@
|
|
|
135
145
|
"enum": ["standard", "custom"]
|
|
136
146
|
}
|
|
137
147
|
},
|
|
138
|
-
"required": ["name"]
|
|
148
|
+
"required": ["name"],
|
|
149
|
+
"title": "Generates table component",
|
|
150
|
+
"type": "object"
|
|
139
151
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* https://github.com/angular/angular-cli/commit/621f15aa187a2112a71d24a182e20174759fc23c
|
|
5
5
|
*
|
|
6
6
|
*****************************************************************/
|
|
7
|
-
import {
|
|
7
|
+
import { JsonValue } from "@angular-devkit/core";
|
|
8
|
+
import { JsonAstArray, JsonAstNode, JsonAstObject } from "@angular-devkit/core/src/json/parser_ast";
|
|
8
9
|
import { UpdateRecorder } from "@angular-devkit/schematics";
|
|
9
10
|
export declare function findPropertyInAstObject(node: JsonAstObject, propertyName: string): JsonAstNode | null;
|
|
10
11
|
export declare function appendValueInAstArray(recorder: UpdateRecorder, node: JsonAstArray, inputValue: JsonValue, indent?: number): void;
|
|
@@ -48,10 +48,7 @@ function appendValueInAstArray(recorder, node, inputValue, indent = 4) {
|
|
|
48
48
|
if (isClosingOnSameLine && indent) {
|
|
49
49
|
// Reformat the entire array
|
|
50
50
|
recorder.remove(node.start.offset, node.end.offset - node.start.offset);
|
|
51
|
-
newNodes = [
|
|
52
|
-
...node.elements.map(({ value }) => value),
|
|
53
|
-
inputValue,
|
|
54
|
-
];
|
|
51
|
+
newNodes = [...node.elements.map(({ value }) => value), inputValue];
|
|
55
52
|
index = node.start.offset;
|
|
56
53
|
// In case we are generating the entire node we need to reduce the spacing as
|
|
57
54
|
// otherwise we'd end up having incorrect double spacing
|
|
@@ -63,9 +60,11 @@ function appendValueInAstArray(recorder, node, inputValue, indent = 4) {
|
|
|
63
60
|
index = end.offset;
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
|
-
recorder.insertRight(index, (newNodes ? "" : indentStr)
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
recorder.insertRight(index, (newNodes ? "" : indentStr) +
|
|
64
|
+
_stringifyContent(newNodes || inputValue, indentStr) +
|
|
65
|
+
(node.elements.length === 0 && indent
|
|
66
|
+
? indentStr.substr(0, -indent) + "\n"
|
|
67
|
+
: ""));
|
|
69
68
|
}
|
|
70
69
|
exports.appendValueInAstArray = appendValueInAstArray;
|
|
71
70
|
function appendPropertyInAstObject(recorder, node, propertyName, value, indent) {
|
|
@@ -80,10 +79,10 @@ function appendPropertyInAstObject(recorder, node, propertyName, value, indent)
|
|
|
80
79
|
index = end.offset;
|
|
81
80
|
}
|
|
82
81
|
const content = _stringifyContent(value, indentStr);
|
|
83
|
-
recorder.insertRight(index, (node.properties.length === 0 && indent ? "\n" : "")
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
recorder.insertRight(index, (node.properties.length === 0 && indent ? "\n" : "") +
|
|
83
|
+
" ".repeat(indent) +
|
|
84
|
+
`"${propertyName}":${indent ? " " : ""}${content}` +
|
|
85
|
+
indentStr.slice(0, -indent));
|
|
87
86
|
}
|
|
88
87
|
exports.appendPropertyInAstObject = appendPropertyInAstObject;
|
|
89
88
|
function insertPropertyInAstObjectInOrder(recorder, node, propertyName, value, indent) {
|
|
@@ -118,9 +117,7 @@ function insertPropertyInAstObjectInOrder(recorder, node, propertyName, value, i
|
|
|
118
117
|
? node.start.offset + 1
|
|
119
118
|
: insertAfterProp.end.offset + 1;
|
|
120
119
|
const content = _stringifyContent(value, indentStr);
|
|
121
|
-
recorder.insertRight(insertIndex, indentStr
|
|
122
|
-
+ `"${propertyName}":${indent ? " " : ""}${content}`
|
|
123
|
-
+ ",");
|
|
120
|
+
recorder.insertRight(insertIndex, indentStr + `"${propertyName}":${indent ? " " : ""}${content}` + ",");
|
|
124
121
|
}
|
|
125
122
|
exports.insertPropertyInAstObjectInOrder = insertPropertyInAstObjectInOrder;
|
|
126
123
|
//# sourceMappingURL=json-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-utils.js","sourceRoot":"","sources":["json-utils.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;;;
|
|
1
|
+
{"version":3,"file":"json-utils.js","sourceRoot":"","sources":["../../src/utility/json-utils.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,iBAA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
23
23
|
const project_1 = require("./project");
|
|
24
24
|
function getProjectTargets(projectOrHost, projectName = "") {
|
|
25
|
-
const project = project_1.isWorkspaceProject(projectOrHost)
|
|
25
|
+
const project = (0, project_1.isWorkspaceProject)(projectOrHost)
|
|
26
26
|
? projectOrHost
|
|
27
|
-
: project_1.getProject(projectOrHost, projectName);
|
|
27
|
+
: (0, project_1.getProject)(projectOrHost, projectName);
|
|
28
28
|
const projectTargets = project.targets || project.architect;
|
|
29
29
|
if (!projectTargets) {
|
|
30
30
|
throw new Error("Project target not found.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-targets.js","sourceRoot":"","sources":["project-targets.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;;;
|
|
1
|
+
{"version":3,"file":"project-targets.js","sourceRoot":"","sources":["../../src/utility/project-targets.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;;;AAgBjB,uCAA2D;AAO3D,SAAgB,iBAAiB,CAC7B,aAAwD,EACxD,WAAW,GAAG,EAAE;IAEhB,MAAM,OAAO,GAAG,IAAA,4BAAkB,EAAC,aAAa,CAAC;QAC7C,CAAC,CAAC,aAAa;QACf,CAAC,CAAC,IAAA,oBAAU,EAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAE7C,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC;IAC5D,IAAI,CAAC,cAAc,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAChD;IAED,OAAO,cAAc,CAAC;AAC1B,CAAC;AAdD,8CAcC"}
|
|
@@ -33,7 +33,7 @@ exports.buildDefaultPath = buildDefaultPath;
|
|
|
33
33
|
function getProject(workspaceOrHost, projectName) {
|
|
34
34
|
const workspace = isWorkspaceSchema(workspaceOrHost)
|
|
35
35
|
? workspaceOrHost
|
|
36
|
-
: workspace_1.getWorkspace(workspaceOrHost);
|
|
36
|
+
: (0, workspace_1.getWorkspace)(workspaceOrHost);
|
|
37
37
|
return workspace.projects[projectName];
|
|
38
38
|
}
|
|
39
39
|
exports.getProject = getProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["project.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;;;AAUjB,
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/utility/project.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;;;AAUjB,mFAIsD;AAEtD,2CAA2C;AAE3C,SAAgB,gBAAgB,CAAC,OAAyB;IACtD,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU;QAC3B,CAAC,CAAC,IAAI,OAAO,CAAC,UAAU,GAAG;QAC3B,CAAC,CAAC,IAAI,OAAO,CAAC,IAAI,OAAO,CAAC;IAE9B,MAAM,cAAc,GAChB,OAAO,CAAC,WAAW,KAAK,8BAAW,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpE,OAAO,GAAG,IAAI,GAAG,cAAc,EAAE,CAAC;AACtC,CAAC;AATD,4CASC;AAED,SAAgB,UAAU,CAGtB,eAAuC,EACvC,WAAmB;IAEnB,MAAM,SAAS,GAAG,iBAAiB,CAAC,eAAe,CAAC;QAChD,CAAC,CAAC,eAAe;QACjB,CAAC,CAAC,IAAA,wBAAY,EAAC,eAAe,CAAC,CAAC;IAEpC,OAAO,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAmC,CAAC;AAC7E,CAAC;AAXD,gCAWC;AAED,SAAgB,iBAAiB,CAC7B,SAAc;IAEd,OAAO,CAAC,CAAC,CAAC,SAAS,IAAK,SAA6B,CAAC,QAAQ,CAAC,CAAC;AACpE,CAAC;AAJD,8CAIC;AAED,SAAgB,kBAAkB,CAAC,OAAY;IAC3C,OAAO,CAAC,CAAC,CAAC,OAAO,IAAK,OAA4B,CAAC,WAAW,CAAC,CAAC;AACpE,CAAC;AAFD,gDAEC"}
|
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
// THE SOFTWARE.
|
|
21
21
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
22
22
|
if (k2 === undefined) k2 = k;
|
|
23
|
-
Object.
|
|
23
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
24
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
25
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
26
|
+
}
|
|
27
|
+
Object.defineProperty(o, k2, desc);
|
|
24
28
|
}) : (function(o, m, k, k2) {
|
|
25
29
|
if (k2 === undefined) k2 = k;
|
|
26
30
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["public-api.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
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../src/utility/public-api.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,+CAA6B;AAC7B,oDAAkC;AAClC,4CAA0B;AAC1B,sDAAoC;AACpC,8CAA4B"}
|
|
@@ -12,7 +12,7 @@ export interface IModuleItem {
|
|
|
12
12
|
}
|
|
13
13
|
export declare function updateModuleChanges(host: Tree, options: any, moduleSource: ts.SourceFile, modules: IModuleItem[], providers?: IModuleItem[], declarations?: IModuleItem[]): void;
|
|
14
14
|
export declare function getBrowserProjectTargets(host: Tree, options: any): BrowserBuilderTarget;
|
|
15
|
-
export declare function addStylesToAngularJson(options: any, stylePaths: string[]):
|
|
15
|
+
export declare function addStylesToAngularJson(options: any, stylePaths: string[]): Rule;
|
|
16
16
|
export declare function installPackageJsonDependencies(): Rule;
|
|
17
17
|
export declare function assembleDependencies(dependencies: Record<string, string>): NodeDependency[];
|
|
18
18
|
export declare function omitUpperPeerDependencyVersion(version: string): string;
|
|
@@ -24,6 +24,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.omitUpperPeerDependencyVersion = exports.assembleDependencies = exports.installPackageJsonDependencies = exports.addStylesToAngularJson = exports.getBrowserProjectTargets = exports.updateModuleChanges = exports.readIntoSourceFile = exports.buildSelector = exports.updateJsonFile = void 0;
|
|
26
26
|
const core_1 = require("@angular-devkit/core");
|
|
27
|
+
const parser_1 = require("@angular-devkit/core/src/json/parser");
|
|
27
28
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
28
29
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
29
30
|
const schematics_2 = require("@angular/cdk/schematics");
|
|
@@ -40,33 +41,39 @@ function updateJsonFile(host, context, filename, propertyChain, itemToAdd) {
|
|
|
40
41
|
const lastProperty = propertyChain[propertyChain.length - 1];
|
|
41
42
|
try {
|
|
42
43
|
const source = (_b = (_a = host.read(filename)) === null || _a === void 0 ? void 0 : _a.toString("utf-8")) !== null && _b !== void 0 ? _b : "";
|
|
43
|
-
const sourceAstObj =
|
|
44
|
+
const sourceAstObj = (0, parser_1.parseJsonAst)(source, parser_1.JsonParseMode.CommentsAllowed);
|
|
44
45
|
let targetObj, parentObj;
|
|
45
46
|
targetObj = sourceAstObj;
|
|
46
47
|
for (let i = 0; i < propertyChain.length; i++) {
|
|
47
48
|
parentObj = targetObj;
|
|
48
|
-
targetObj = json_utils_1.findPropertyInAstObject(parentObj, propertyChain[i]);
|
|
49
|
+
targetObj = ((0, json_utils_1.findPropertyInAstObject)(parentObj, propertyChain[i]));
|
|
49
50
|
}
|
|
50
51
|
const recorder = host.beginUpdate(filename);
|
|
51
52
|
const targetArray = targetObj;
|
|
52
53
|
if (targetArray && Array.isArray(itemToAdd)) {
|
|
54
|
+
if (targetArray.elements.every(
|
|
53
55
|
// we don't want a double not equal here
|
|
54
56
|
// tslint:disable-next-line:triple-equals
|
|
55
|
-
|
|
57
|
+
(element) => element.value != itemToAdd)) {
|
|
56
58
|
const lastStyle = targetArray.elements[targetArray.elements.length - 1];
|
|
57
|
-
const lastStyleIndent = lastStyle
|
|
58
|
-
|
|
59
|
+
const lastStyleIndent = lastStyle
|
|
60
|
+
? lastStyle.start.character
|
|
61
|
+
: 0;
|
|
62
|
+
(0, json_utils_1.appendValueInAstArray)(recorder, targetArray, itemToAdd[0], lastStyleIndent);
|
|
59
63
|
}
|
|
60
64
|
else {
|
|
61
65
|
context.logger.info(`️ ${filename} already contains ${lastProperty}`);
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
else {
|
|
69
|
+
if (parentObj === null || parentObj === void 0 ? void 0 : parentObj.properties.every(
|
|
65
70
|
// we don't want a double not equal here
|
|
66
71
|
// tslint:disable-next-line:triple-equals
|
|
67
|
-
|
|
68
|
-
const lastItemIndent = parentObj.properties[0]
|
|
69
|
-
|
|
72
|
+
(property) => property.key.value != lastProperty)) {
|
|
73
|
+
const lastItemIndent = parentObj.properties[0]
|
|
74
|
+
? parentObj.properties[0].start.character
|
|
75
|
+
: 0;
|
|
76
|
+
(0, json_utils_1.insertPropertyInAstObjectInOrder)(recorder, parentObj, lastProperty, itemToAdd, lastItemIndent);
|
|
70
77
|
}
|
|
71
78
|
else {
|
|
72
79
|
context.logger.info(`️ ${filename} already contains ${lastProperty}`);
|
|
@@ -105,7 +112,7 @@ function updateModuleChanges(host, options, moduleSource, modules, providers = [
|
|
|
105
112
|
const modulePath = options.module;
|
|
106
113
|
const declarationRecorder = host.beginUpdate(modulePath);
|
|
107
114
|
declarations.forEach((item) => {
|
|
108
|
-
const changeList = ast_utils_1.addDeclarationToModule(moduleSource, modulePath, item.item, item.path);
|
|
115
|
+
const changeList = (0, ast_utils_1.addDeclarationToModule)(moduleSource, modulePath, item.item, item.path);
|
|
109
116
|
changeList.forEach((change) => {
|
|
110
117
|
if (change instanceof change_1.InsertChange) {
|
|
111
118
|
declarationRecorder.insertLeft(change.pos, change.toAdd);
|
|
@@ -113,7 +120,7 @@ function updateModuleChanges(host, options, moduleSource, modules, providers = [
|
|
|
113
120
|
});
|
|
114
121
|
});
|
|
115
122
|
providers.forEach((item) => {
|
|
116
|
-
const changeList = ast_utils_1.addProviderToModule(moduleSource, modulePath, item.item, item.path);
|
|
123
|
+
const changeList = (0, ast_utils_1.addProviderToModule)(moduleSource, modulePath, item.item, item.path);
|
|
117
124
|
changeList.forEach((change) => {
|
|
118
125
|
if (change instanceof change_1.InsertChange) {
|
|
119
126
|
declarationRecorder.insertLeft(change.pos, change.toAdd);
|
|
@@ -121,8 +128,8 @@ function updateModuleChanges(host, options, moduleSource, modules, providers = [
|
|
|
121
128
|
});
|
|
122
129
|
});
|
|
123
130
|
modules.forEach((item) => {
|
|
124
|
-
if (!ast_utils_1.isImported(moduleSource, item.item, item.path)) {
|
|
125
|
-
const moduleChanges = schematics_2.addImportToModule(moduleSource, modulePath, item.item, item.path);
|
|
131
|
+
if (!(0, ast_utils_1.isImported)(moduleSource, item.item, item.path)) {
|
|
132
|
+
const moduleChanges = (0, schematics_2.addImportToModule)(moduleSource, modulePath, item.item, item.path);
|
|
126
133
|
moduleChanges.forEach((change) => {
|
|
127
134
|
if (change instanceof change_1.InsertChange) {
|
|
128
135
|
declarationRecorder.insertLeft(change.pos, change.toAdd);
|
|
@@ -134,23 +141,21 @@ function updateModuleChanges(host, options, moduleSource, modules, providers = [
|
|
|
134
141
|
}
|
|
135
142
|
exports.updateModuleChanges = updateModuleChanges;
|
|
136
143
|
function getBrowserProjectTargets(host, options) {
|
|
137
|
-
const workspace = workspace_1.getWorkspace(host);
|
|
138
|
-
const clientProject = project_1.getProject(workspace, options.project);
|
|
144
|
+
const workspace = (0, workspace_1.getWorkspace)(host);
|
|
145
|
+
const clientProject = (0, project_1.getProject)(workspace, options.project);
|
|
139
146
|
// @ts-ignore: Avoiding strict mode errors, preserving old behavior
|
|
140
|
-
return project_targets_1.getProjectTargets(clientProject)["build"];
|
|
147
|
+
return (0, project_targets_1.getProjectTargets)(clientProject)["build"];
|
|
141
148
|
}
|
|
142
149
|
exports.getBrowserProjectTargets = getBrowserProjectTargets;
|
|
143
150
|
function addStylesToAngularJson(options, stylePaths) {
|
|
144
|
-
return (host, context) =>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
], stylePaths);
|
|
153
|
-
};
|
|
151
|
+
return (host, context) => updateJsonFile(host, context, "angular.json", [
|
|
152
|
+
"projects",
|
|
153
|
+
options.project,
|
|
154
|
+
"architect",
|
|
155
|
+
"build",
|
|
156
|
+
"options",
|
|
157
|
+
"styles",
|
|
158
|
+
], stylePaths);
|
|
154
159
|
}
|
|
155
160
|
exports.addStylesToAngularJson = addStylesToAngularJson;
|
|
156
161
|
function installPackageJsonDependencies() {
|