@nova-ui/bits 13.0.5 → 13.0.6-2
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/animations/expand.d.ts +6 -6
- package/animations/fadeIn.d.ts +7 -7
- package/common/common.module.d.ts +22 -22
- package/common/directives/click-interceptor/click-interceptor.directive.d.ts +19 -19
- package/common/directives/clipboard/clipboard.directive.d.ts +38 -38
- package/common/directives/dragdrop/drag-and-drop.service.d.ts +17 -17
- package/common/directives/dragdrop/dragdrop.constants.d.ts +8 -8
- package/common/directives/dragdrop/draggable.directive.d.ts +70 -70
- package/common/directives/dragdrop/droppable.directive.d.ts +80 -80
- package/common/directives/dragdrop/public-api.d.ts +24 -24
- package/common/directives/index.d.ts +9 -9
- package/common/directives/public-api.d.ts +2 -2
- package/common/directives/resize/resize.directive.d.ts +64 -64
- package/common/directives/resize-observer/resize-observer.directive.d.ts +19 -19
- package/common/directives/resizer/public-api.d.ts +25 -25
- package/common/directives/resizer/resizer.directive.d.ts +90 -90
- package/common/directives/set-focus/set-focus.directive.d.ts +39 -39
- package/common/directives/zoom-content/zoom-content.directive.d.ts +48 -48
- package/constants/button.constants.d.ts +10 -10
- package/constants/dragdrop.constants.d.ts +8 -8
- package/constants/event.constants.d.ts +6 -6
- package/constants/images.constants.d.ts +3 -3
- package/constants/images.d.ts +7 -7
- package/constants/interaction.constants.d.ts +4 -4
- package/constants/keycode.constants.d.ts +40 -40
- package/constants/path.constants.d.ts +2 -2
- package/constants/popover.constants.d.ts +5 -5
- package/constants/public-api.d.ts +12 -12
- package/constants/regex.constants.d.ts +4 -4
- package/constants/resize.constants.d.ts +1 -1
- package/constants/unit-conversion.constants.d.ts +20 -20
- package/constants/wizard.constants.d.ts +5 -5
- package/environment.d.ts +27 -27
- package/esm2020/animations/expand.mjs +51 -51
- package/esm2020/animations/fadeIn.mjs +29 -29
- package/esm2020/common/common.module.mjs +166 -166
- package/esm2020/common/directives/click-interceptor/click-interceptor.directive.mjs +54 -54
- package/esm2020/common/directives/clipboard/clipboard.directive.mjs +121 -121
- package/esm2020/common/directives/dragdrop/drag-and-drop.service.mjs +76 -76
- package/esm2020/common/directives/dragdrop/dragdrop.constants.mjs +27 -27
- package/esm2020/common/directives/dragdrop/draggable.directive.mjs +259 -259
- package/esm2020/common/directives/dragdrop/droppable.directive.mjs +212 -212
- package/esm2020/common/directives/dragdrop/public-api.mjs +20 -20
- package/esm2020/common/directives/index.mjs +28 -28
- package/esm2020/common/directives/public-api.mjs +21 -21
- package/esm2020/common/directives/resize/resize.directive.mjs +187 -187
- package/esm2020/common/directives/resize-observer/resize-observer.directive.mjs +65 -65
- package/esm2020/common/directives/resizer/public-api.mjs +68 -68
- package/esm2020/common/directives/resizer/resizer.directive.mjs +322 -322
- package/esm2020/common/directives/set-focus/set-focus.directive.mjs +113 -113
- package/esm2020/common/directives/zoom-content/zoom-content.directive.mjs +159 -159
- package/esm2020/constants/button.constants.mjs +25 -25
- package/esm2020/constants/dragdrop.constants.mjs +27 -27
- package/esm2020/constants/event.constants.mjs +34 -34
- package/esm2020/constants/images.constants.mjs +25 -25
- package/esm2020/constants/images.mjs +35 -35
- package/esm2020/constants/interaction.constants.mjs +27 -27
- package/esm2020/constants/keycode.constants.mjs +61 -61
- package/esm2020/constants/path.constants.mjs +23 -23
- package/esm2020/constants/popover.constants.mjs +24 -24
- package/esm2020/constants/public-api.mjs +31 -31
- package/esm2020/constants/regex.constants.mjs +23 -23
- package/esm2020/constants/resize.constants.mjs +20 -20
- package/esm2020/constants/unit-conversion.constants.mjs +57 -57
- package/esm2020/constants/wizard.constants.mjs +42 -42
- package/esm2020/environment.mjs +55 -55
- package/esm2020/functions/immutable-set.mjs +33 -33
- package/esm2020/functions/nameof.mjs +28 -28
- package/esm2020/functions/public-api.mjs +24 -24
- package/esm2020/functions/remove-errors.mjs +38 -38
- package/esm2020/functions/traverse.mjs +31 -31
- package/esm2020/functions/uuid.mjs +30 -30
- package/esm2020/lib/breadcrumb/breadcrumb-state.service.mjs +54 -54
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +56 -56
- package/esm2020/lib/breadcrumb/breadcrumb.module.mjs +42 -42
- package/esm2020/lib/breadcrumb/public-api.mjs +20 -20
- package/esm2020/lib/busy/busy.component.mjs +93 -93
- package/esm2020/lib/busy/busy.module.mjs +41 -41
- package/esm2020/lib/busy/public-api.mjs +20 -20
- package/esm2020/lib/button/button.component.mjs +236 -236
- package/esm2020/lib/button/button.module.mjs +41 -41
- package/esm2020/lib/button/public-api.mjs +25 -25
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +157 -157
- package/esm2020/lib/checkbox/checkbox.component.mjs +236 -236
- package/esm2020/lib/checkbox/checkbox.module.mjs +41 -41
- package/esm2020/lib/checkbox/public-api.mjs +22 -22
- package/esm2020/lib/chips/chip/chip.component.mjs +64 -64
- package/esm2020/lib/chips/chips-overflow/chips-overflow.component.mjs +45 -45
- package/esm2020/lib/chips/chips-overflow.service.mjs +135 -135
- package/esm2020/lib/chips/chips.component.mjs +206 -206
- package/esm2020/lib/chips/chips.module.mjs +44 -44
- package/esm2020/lib/chips/public-api.mjs +20 -20
- package/esm2020/lib/content/content.component.mjs +42 -42
- package/esm2020/lib/content/content.module.mjs +40 -40
- package/esm2020/lib/convenience/time-frame-bar/time-frame-bar.component.mjs +188 -188
- package/esm2020/lib/convenience/time-frame-bar/time-frame-bar.module.mjs +76 -76
- package/esm2020/lib/date-picker/date-picker-day-picker.component.mjs +130 -130
- package/esm2020/lib/date-picker/date-picker-inner.component.mjs +318 -318
- package/esm2020/lib/date-picker/date-picker-month-picker.component.mjs +63 -63
- package/esm2020/lib/date-picker/date-picker-year-picker.component.mjs +68 -68
- package/esm2020/lib/date-picker/date-picker.component.mjs +311 -311
- package/esm2020/lib/date-picker/date-picker.module.mjs +74 -74
- package/esm2020/lib/date-picker/public-api.mjs +71 -71
- package/esm2020/lib/date-time-picker/date-time-picker.component.mjs +221 -221
- package/esm2020/lib/date-time-picker/date-time-picker.module.mjs +42 -42
- package/esm2020/lib/dialog/confirmation-dialog.component.mjs +80 -80
- package/esm2020/lib/dialog/dialog-backdrop.component.mjs +36 -36
- package/esm2020/lib/dialog/dialog-footer.component.mjs +32 -32
- package/esm2020/lib/dialog/dialog-header.component.mjs +59 -59
- package/esm2020/lib/dialog/dialog-ref.mjs +94 -94
- package/esm2020/lib/dialog/dialog-stack.service.mjs +135 -135
- package/esm2020/lib/dialog/dialog.component.mjs +155 -155
- package/esm2020/lib/dialog/dialog.module.mjs +59 -59
- package/esm2020/lib/dialog/dialog.service.mjs +59 -59
- package/esm2020/lib/dialog/public-api.mjs +24 -24
- package/esm2020/lib/divider/divider.component.mjs +74 -74
- package/esm2020/lib/divider/divider.module.mjs +40 -40
- package/esm2020/lib/divider/public-api.mjs +20 -20
- package/esm2020/lib/dnd/dnd-drop-target.directive.mjs +108 -108
- package/esm2020/lib/dnd/dnd.module.mjs +39 -39
- package/esm2020/lib/dnd/public-api.mjs +21 -21
- package/esm2020/lib/docs/copy-text/copy-text.component.mjs +52 -52
- package/esm2020/lib/docs/docs.module.mjs +116 -116
- package/esm2020/lib/docs/example-code/example-code.component.mjs +75 -75
- package/esm2020/lib/docs/example-wrapper/example-wrapper.component.mjs +89 -89
- package/esm2020/lib/docs/example-wrapper/plunker-files.mjs +35 -35
- package/esm2020/lib/docs/example-wrapper/plunker-project.service.mjs +110 -110
- package/esm2020/lib/docs/public-api.mjs +20 -20
- package/esm2020/lib/docs/services/sources.service.mjs +89 -89
- package/esm2020/lib/docs/srlc-indicator/public-api.mjs +29 -29
- package/esm2020/lib/docs/srlc-indicator/srlc-indicator.component.mjs +96 -96
- package/esm2020/lib/docs/theme-switcher/theme-switcher.component.mjs +42 -42
- package/esm2020/lib/dragdrop/dragdrop.module.mjs +42 -42
- package/esm2020/lib/dragdrop/draggable.component.mjs +62 -62
- package/esm2020/lib/dragdrop/droppable.component.mjs +58 -58
- package/esm2020/lib/dragdrop/public-api.mjs +2 -2
- package/esm2020/lib/expander/expander.component.mjs +111 -111
- package/esm2020/lib/expander/expander.module.mjs +41 -41
- package/esm2020/lib/form-field/form-field.component.mjs +125 -125
- package/esm2020/lib/form-field/form-field.module.mjs +42 -42
- package/esm2020/lib/form-field/public-api.mjs +27 -27
- package/esm2020/lib/form-field/touched-changes-helper.mjs +40 -40
- package/esm2020/lib/icon/icon.component.mjs +143 -143
- package/esm2020/lib/icon/icon.module.mjs +41 -41
- package/esm2020/lib/icon/icon.service.mjs +74 -74
- package/esm2020/lib/icon/icons.mjs +891 -891
- package/esm2020/lib/icon/public-api.mjs +20 -20
- package/esm2020/lib/icon/types.mjs +109 -109
- package/esm2020/lib/image/image.component.mjs +143 -143
- package/esm2020/lib/image/image.module.mjs +40 -40
- package/esm2020/lib/image/public-api.mjs +20 -20
- package/esm2020/lib/layout/card/card.component.mjs +46 -46
- package/esm2020/lib/layout/card-group/card-group.component.mjs +51 -51
- package/esm2020/lib/layout/layout-resizer/layout-resizer.component.mjs +96 -96
- package/esm2020/lib/layout/layout.module.mjs +62 -62
- package/esm2020/lib/layout/public-api.mjs +20 -20
- package/esm2020/lib/layout/sheet/sheet.component.mjs +64 -64
- package/esm2020/lib/layout/sheet-group/sheet-group.component.mjs +187 -187
- package/esm2020/lib/menu/index.mjs +28 -28
- package/esm2020/lib/menu/menu/menu.component.mjs +170 -170
- package/esm2020/lib/menu/menu-item/menu-action/menu-action.component.mjs +80 -80
- package/esm2020/lib/menu/menu-item/menu-group/menu-group.component.mjs +37 -37
- package/esm2020/lib/menu/menu-item/menu-item/menu-item-base.mjs +56 -56
- package/esm2020/lib/menu/menu-item/menu-item/menu-item.component.mjs +68 -68
- package/esm2020/lib/menu/menu-item/menu-link/menu-link.component.mjs +81 -81
- package/esm2020/lib/menu/menu-item/menu-option/menu-option.component.mjs +91 -91
- package/esm2020/lib/menu/menu-item/menu-switch/menu-switch.component.mjs +87 -87
- package/esm2020/lib/menu/menu-key-control.service.mjs +210 -210
- package/esm2020/lib/menu/menu-popup/menu-popup.component.mjs +90 -90
- package/esm2020/lib/menu/menu.module.mjs +106 -106
- package/esm2020/lib/menu/public-api.mjs +24 -24
- package/esm2020/lib/message/message.component.mjs +122 -122
- package/esm2020/lib/message/message.module.mjs +42 -42
- package/esm2020/lib/overlay/arrow-component/overlay-arrow.component.mjs +33 -33
- package/esm2020/lib/overlay/constants.mjs +24 -24
- package/esm2020/lib/overlay/overlay-additions.module.mjs +38 -38
- package/esm2020/lib/overlay/overlay-component/overlay.component.mjs +188 -188
- package/esm2020/lib/overlay/overlay-container.service.mjs +127 -127
- package/esm2020/lib/overlay/overlay-custom-container.mjs +54 -54
- package/esm2020/lib/overlay/overlay-item/overlay-item.component.mjs +51 -51
- package/esm2020/lib/overlay/overlay-position.service.mjs +270 -270
- package/esm2020/lib/overlay/overlay-utilities.service.mjs +75 -75
- package/esm2020/lib/overlay/overlay.module.mjs +43 -43
- package/esm2020/lib/overlay/overlay.service.mjs +135 -135
- package/esm2020/lib/overlay/public-api.mjs +27 -27
- package/esm2020/lib/overlay/types.mjs +47 -47
- package/esm2020/lib/paginator/paginator.component.mjs +456 -456
- package/esm2020/lib/paginator/paginator.module.mjs +60 -60
- package/esm2020/lib/paginator/public-api.mjs +20 -20
- package/esm2020/lib/panel/panel.component.mjs +452 -452
- package/esm2020/lib/panel/panel.module.mjs +41 -41
- package/esm2020/lib/panel/public-api.mjs +42 -42
- package/esm2020/lib/popover/popover-modal.component.mjs +91 -91
- package/esm2020/lib/popover/popover-modal.service.mjs +168 -168
- package/esm2020/lib/popover/popover-position.service.mjs +222 -222
- package/esm2020/lib/popover/popover.component.mjs +474 -474
- package/esm2020/lib/popover/popover.module.mjs +57 -57
- package/esm2020/lib/popover/public-api.mjs +30 -30
- package/esm2020/lib/popup/popup-container.component.mjs +75 -75
- package/esm2020/lib/popup/popup-container.service.mjs +34 -34
- package/esm2020/lib/popup/popup-toggle.directive.mjs +50 -50
- package/esm2020/lib/popup/popup.component.mjs +237 -237
- package/esm2020/lib/popup/popup.module.mjs +49 -49
- package/esm2020/lib/popup-adapter/popup-adapter.component.mjs +323 -323
- package/esm2020/lib/popup-adapter/popup-adapter.module.mjs +56 -56
- package/esm2020/lib/progress/progress.component.mjs +73 -73
- package/esm2020/lib/progress/progress.module.mjs +42 -42
- package/esm2020/lib/public-api.mjs +54 -54
- package/esm2020/lib/radio/radio-group.component.mjs +291 -291
- package/esm2020/lib/radio/radio.module.mjs +40 -40
- package/esm2020/lib/repeat/public-api.mjs +20 -20
- package/esm2020/lib/repeat/repeat-item/repeat-item.component.mjs +53 -53
- package/esm2020/lib/repeat/repeat.component.mjs +431 -431
- package/esm2020/lib/repeat/repeat.module.mjs +61 -61
- package/esm2020/lib/repeat/types.mjs +33 -33
- package/esm2020/lib/search/search.component.mjs +127 -127
- package/esm2020/lib/search/search.module.mjs +43 -43
- package/esm2020/lib/select/base-select.mjs +205 -205
- package/esm2020/lib/select/combobox/combobox.component.mjs +294 -294
- package/esm2020/lib/select/index.mjs +21 -21
- package/esm2020/lib/select/public-api.mjs +20 -20
- package/esm2020/lib/select/select.component.mjs +142 -142
- package/esm2020/lib/select/select.module.mjs +68 -68
- package/esm2020/lib/select-v2/base-select-v2.mjs +481 -481
- package/esm2020/lib/select-v2/combobox-v2/combobox-v2.component.mjs +319 -319
- package/esm2020/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.mjs +82 -82
- package/esm2020/lib/select-v2/constants.mjs +24 -24
- package/esm2020/lib/select-v2/mark-as-selected-item.directive.mjs +28 -28
- package/esm2020/lib/select-v2/option/select-v2-option.component.mjs +80 -80
- package/esm2020/lib/select-v2/option-group/select-v2-option-group.component.mjs +68 -68
- package/esm2020/lib/select-v2/option-key-control.service.mjs +137 -137
- package/esm2020/lib/select-v2/select/select-v2.component.mjs +139 -139
- package/esm2020/lib/select-v2/select-v2.module.mjs +102 -102
- package/esm2020/lib/select-v2/selected-items-key-control.service.mjs +157 -157
- package/esm2020/lib/select-v2/types.mjs +20 -20
- package/esm2020/lib/selector/public-api.mjs +32 -32
- package/esm2020/lib/selector/selector.component.mjs +153 -153
- package/esm2020/lib/selector/selector.module.mjs +60 -60
- package/esm2020/lib/selector/selector.service.mjs +288 -288
- package/esm2020/lib/sorter/constants.mjs +21 -21
- package/esm2020/lib/sorter/public-api.mjs +25 -25
- package/esm2020/lib/sorter/sorter-keyboard.service.mjs +105 -105
- package/esm2020/lib/sorter/sorter.component.mjs +235 -235
- package/esm2020/lib/sorter/sorter.module.mjs +56 -56
- package/esm2020/lib/spinner/public-api.mjs +29 -29
- package/esm2020/lib/spinner/spinner.component.mjs +152 -152
- package/esm2020/lib/spinner/spinner.module.mjs +42 -42
- package/esm2020/lib/switch/switch.component.mjs +103 -103
- package/esm2020/lib/switch/switch.module.mjs +40 -40
- package/esm2020/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.mjs +46 -46
- package/esm2020/lib/tabgroup/tab/tab-heading.directive.mjs +36 -36
- package/esm2020/lib/tabgroup/tab/tab.component.mjs +79 -79
- package/esm2020/lib/tabgroup/tab-group/tab-group.component.mjs +146 -146
- package/esm2020/lib/tabgroup/tab-heading/tab-heading.component.mjs +61 -61
- package/esm2020/lib/tabgroup/tab-heading-group/tab-heading-group.component.mjs +181 -181
- package/esm2020/lib/tabgroup/tabs.module.mjs +69 -69
- package/esm2020/lib/table/constants.mjs +23 -23
- package/esm2020/lib/table/public-api.mjs +24 -24
- package/esm2020/lib/table/table-cell/table-cell-def.directive.mjs +40 -40
- package/esm2020/lib/table/table-cell/table-cell.directive.mjs +123 -123
- package/esm2020/lib/table/table-cell/table-column-def.directive.mjs +72 -72
- package/esm2020/lib/table/table-cell/table-footer-cell-def.directive.mjs +44 -44
- package/esm2020/lib/table/table-cell/table-footer-cell.directive.mjs +43 -43
- package/esm2020/lib/table/table-cell/table-header-cell-def.directive.mjs +44 -44
- package/esm2020/lib/table/table-cell/table-header-cell.component.mjs +300 -300
- package/esm2020/lib/table/table-resizer/table-resizer.directive.mjs +74 -74
- package/esm2020/lib/table/table-row/table-row.component.mjs +456 -456
- package/esm2020/lib/table/table-state-handler.service.mjs +522 -522
- package/esm2020/lib/table/table-virtual-scroll/slice-range.pipe.mjs +22 -22
- package/esm2020/lib/table/table-virtual-scroll/table-sticky-header.directive.mjs +277 -277
- package/esm2020/lib/table/table-virtual-scroll/table-virtual-scroll-strategy.mjs +182 -182
- package/esm2020/lib/table/table-virtual-scroll/table-virtual-scroll.directive.mjs +130 -130
- package/esm2020/lib/table/table.component.mjs +294 -294
- package/esm2020/lib/table/table.module.mjs +133 -133
- package/esm2020/lib/table/types.mjs +20 -20
- package/esm2020/lib/textbox/textbox-number/textbox-number.component.mjs +272 -272
- package/esm2020/lib/textbox/textbox.component.mjs +177 -177
- package/esm2020/lib/textbox/textbox.module.mjs +64 -64
- package/esm2020/lib/time-frame-picker/public-api.mjs +20 -20
- package/esm2020/lib/time-frame-picker/quick-picker/quick-picker.component.mjs +57 -57
- package/esm2020/lib/time-frame-picker/services/timeframe.service.mjs +225 -225
- package/esm2020/lib/time-frame-picker/time-frame-format.pipe.mjs +59 -59
- package/esm2020/lib/time-frame-picker/time-frame-picker.component.mjs +129 -129
- package/esm2020/lib/time-frame-picker/time-frame-picker.module.mjs +57 -57
- package/esm2020/lib/time-picker/time-picker-keyboard.service.mjs +112 -112
- package/esm2020/lib/time-picker/time-picker.component.mjs +325 -325
- package/esm2020/lib/time-picker/time-picker.module.mjs +60 -60
- package/esm2020/lib/toast/public-api.mjs +20 -20
- package/esm2020/lib/toast/toast-container.service.mjs +89 -89
- package/esm2020/lib/toast/toast-injector.mjs +34 -34
- package/esm2020/lib/toast/toast-package.mjs +43 -43
- package/esm2020/lib/toast/toast-ref.mjs +64 -64
- package/esm2020/lib/toast/toast.component.mjs +228 -228
- package/esm2020/lib/toast/toast.directive.mjs +90 -90
- package/esm2020/lib/toast/toast.module.mjs +54 -54
- package/esm2020/lib/toast/toast.service.mjs +272 -272
- package/esm2020/lib/toast/toast.servicebase.mjs +31 -31
- package/esm2020/lib/toolbar/public-api.mjs +30 -30
- package/esm2020/lib/toolbar/toolbar-group.component.mjs +41 -41
- package/esm2020/lib/toolbar/toolbar-item.component.mjs +62 -62
- package/esm2020/lib/toolbar/toolbar-keyboard.service.mjs +80 -80
- package/esm2020/lib/toolbar/toolbar-message.component.mjs +35 -35
- package/esm2020/lib/toolbar/toolbar-splitter.component.mjs +36 -36
- package/esm2020/lib/toolbar/toolbar.component.mjs +245 -242
- package/esm2020/lib/toolbar/toolbar.module.mjs +84 -84
- package/esm2020/lib/tooltip/public-api.mjs +21 -21
- package/esm2020/lib/tooltip/tooltip.component.mjs +203 -203
- package/esm2020/lib/tooltip/tooltip.directive.mjs +226 -226
- package/esm2020/lib/tooltip/tooltip.module.mjs +41 -41
- package/esm2020/lib/validation-message/custom-validation-message/custom-validation-message.component.mjs +58 -58
- package/esm2020/lib/validation-message/public-api.mjs +21 -21
- package/esm2020/lib/validation-message/validation-message.component.mjs +45 -45
- package/esm2020/lib/validation-message/validation-message.module.mjs +46 -46
- package/esm2020/lib/wizard/public-api.mjs +20 -20
- package/esm2020/lib/wizard/wizard-step.component.mjs +131 -131
- package/esm2020/lib/wizard/wizard.component.mjs +357 -357
- package/esm2020/lib/wizard/wizard.module.mjs +61 -61
- package/esm2020/lib/wizard-v2/error-state-matcher.provider.mjs +35 -35
- package/esm2020/lib/wizard-v2/public-api.mjs +31 -31
- package/esm2020/lib/wizard-v2/types.mjs +20 -20
- package/esm2020/lib/wizard-v2/wizard-button/wizard-button.mjs +54 -54
- package/esm2020/lib/wizard-v2/wizard-footer/wizard-footer.component.mjs +59 -59
- package/esm2020/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.mjs +305 -305
- package/esm2020/lib/wizard-v2/wizard-overflow/wizard-overflow.component.mjs +43 -43
- package/esm2020/lib/wizard-v2/wizard-step/wizard-step.component.mjs +109 -109
- package/esm2020/lib/wizard-v2/wizard-step-footer.directive.mjs +34 -34
- package/esm2020/lib/wizard-v2/wizard-step-header/wizard-step-header.component.mjs +132 -132
- package/esm2020/lib/wizard-v2/wizard-step-label.directive.mjs +32 -32
- package/esm2020/lib/wizard-v2/wizard-vertical/wizard-vertical.component.mjs +70 -70
- package/esm2020/lib/wizard-v2/wizard.directive.mjs +122 -122
- package/esm2020/lib/wizard-v2/wizard.module.mjs +112 -112
- package/esm2020/nova-ui-bits.mjs +4 -4
- package/esm2020/nui-api.mjs +75 -75
- package/esm2020/pipes/highlight.pipe.mjs +89 -89
- package/esm2020/pipes/limit-to.pipe.mjs +49 -49
- package/esm2020/pipes/unit-conversion.pipe.mjs +59 -59
- package/esm2020/public_api.mjs +185 -185
- package/esm2020/services/content-ref.mjs +27 -27
- package/esm2020/services/data-filter.service.mjs +96 -96
- package/esm2020/services/data-source/client-side-data-source.service.mjs +117 -117
- package/esm2020/services/data-source/data-source-features.mjs +36 -36
- package/esm2020/services/data-source/data-source.service.mjs +135 -135
- package/esm2020/services/data-source/local-filtering-data-source.service.mjs +249 -249
- package/esm2020/services/data-source/noop-data-source.service.mjs +28 -28
- package/esm2020/services/data-source/public-api.mjs +40 -40
- package/esm2020/services/data-source/server-side-source.service.mjs +66 -66
- package/esm2020/services/dom-util.service.mjs +77 -77
- package/esm2020/services/edge-detection.service.mjs +178 -178
- package/esm2020/services/event-bus.mjs +69 -69
- package/esm2020/services/event-bus.service.mjs +47 -47
- package/esm2020/services/event-propagation.service.mjs +90 -90
- package/esm2020/services/history-storage.mjs +101 -101
- package/esm2020/services/list.service.mjs +120 -120
- package/esm2020/services/log-service.mjs +118 -118
- package/esm2020/services/notification-args.mjs +28 -28
- package/esm2020/services/notification-service.mjs +61 -61
- package/esm2020/services/position.service.mjs +189 -189
- package/esm2020/services/public-api.mjs +40 -40
- package/esm2020/services/search.service.mjs +136 -136
- package/esm2020/services/tab-navigation.service.mjs +62 -62
- package/esm2020/services/theme-switch.service.mjs +146 -146
- package/esm2020/services/transient-cache.service.mjs +78 -78
- package/esm2020/services/unit-conversion.service.mjs +176 -176
- package/esm2020/services/util.service.mjs +329 -329
- package/esm2020/services/virtual-viewport-manager.service.mjs +126 -126
- package/esm2020/types.mjs +20 -20
- package/esm2020/validators/index.mjs +20 -20
- package/esm2020/validators/nui-validators.mjs +56 -56
- package/fesm2015/nova-ui-bits.mjs +25389 -25386
- package/fesm2015/nova-ui-bits.mjs.map +1 -1
- package/fesm2020/nova-ui-bits.mjs +25554 -25551
- package/fesm2020/nova-ui-bits.mjs.map +1 -1
- package/functions/immutable-set.d.ts +8 -8
- package/functions/nameof.d.ts +7 -7
- package/functions/public-api.d.ts +5 -5
- package/functions/remove-errors.d.ts +8 -8
- package/functions/traverse.d.ts +3 -3
- package/functions/uuid.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb-state.service.d.ts +13 -13
- package/lib/breadcrumb/breadcrumb.component.d.ts +11 -11
- package/lib/breadcrumb/breadcrumb.module.d.ts +12 -12
- package/lib/breadcrumb/public-api.d.ts +5 -5
- package/lib/busy/busy.component.d.ts +28 -28
- package/lib/busy/busy.module.d.ts +12 -12
- package/lib/busy/public-api.d.ts +9 -9
- package/lib/button/button.component.d.ts +82 -82
- package/lib/button/button.module.d.ts +12 -12
- package/lib/button/public-api.d.ts +5 -5
- package/lib/checkbox/checkbox-group.component.d.ts +50 -50
- package/lib/checkbox/checkbox.component.d.ts +96 -96
- package/lib/checkbox/checkbox.module.d.ts +12 -12
- package/lib/checkbox/public-api.d.ts +20 -20
- package/lib/chips/chip/chip.component.d.ts +33 -33
- package/lib/chips/chips-overflow/chips-overflow.component.d.ts +17 -17
- package/lib/chips/chips-overflow.service.d.ts +31 -31
- package/lib/chips/chips.component.d.ts +98 -98
- package/lib/chips/chips.module.d.ts +15 -15
- package/lib/chips/public-api.d.ts +23 -23
- package/lib/content/content.component.d.ts +11 -11
- package/lib/content/content.module.d.ts +11 -11
- package/lib/convenience/time-frame-bar/time-frame-bar.component.d.ts +67 -67
- package/lib/convenience/time-frame-bar/time-frame-bar.module.d.ts +19 -19
- package/lib/date-picker/date-picker-day-picker.component.d.ts +18 -18
- package/lib/date-picker/date-picker-inner.component.d.ts +74 -74
- package/lib/date-picker/date-picker-month-picker.component.d.ts +14 -14
- package/lib/date-picker/date-picker-year-picker.component.d.ts +14 -14
- package/lib/date-picker/date-picker.component.d.ts +114 -114
- package/lib/date-picker/date-picker.module.d.ts +19 -19
- package/lib/date-picker/public-api.d.ts +32 -32
- package/lib/date-time-picker/date-time-picker.component.d.ts +54 -54
- package/lib/date-time-picker/date-time-picker.module.d.ts +13 -13
- package/lib/dialog/confirmation-dialog.component.d.ts +26 -26
- package/lib/dialog/dialog-backdrop.component.d.ts +8 -8
- package/lib/dialog/dialog-footer.component.d.ts +8 -8
- package/lib/dialog/dialog-header.component.d.ts +26 -26
- package/lib/dialog/dialog-ref.d.ts +27 -27
- package/lib/dialog/dialog-stack.service.d.ts +27 -27
- package/lib/dialog/dialog.component.d.ts +49 -49
- package/lib/dialog/dialog.module.d.ts +18 -18
- package/lib/dialog/dialog.service.d.ts +20 -20
- package/lib/dialog/public-api.d.ts +69 -69
- package/lib/divider/divider.component.d.ts +21 -21
- package/lib/divider/divider.module.d.ts +11 -11
- package/lib/divider/public-api.d.ts +2 -2
- package/lib/dnd/dnd-drop-target.directive.d.ts +22 -22
- package/lib/dnd/dnd.module.d.ts +11 -11
- package/lib/dnd/public-api.d.ts +2 -2
- package/lib/docs/copy-text/copy-text.component.d.ts +12 -12
- package/lib/docs/docs.module.d.ts +26 -26
- package/lib/docs/example-code/example-code.component.d.ts +46 -46
- package/lib/docs/example-wrapper/example-wrapper.component.d.ts +25 -25
- package/lib/docs/example-wrapper/plunker-files.d.ts +9 -9
- package/lib/docs/example-wrapper/plunker-project.service.d.ts +18 -18
- package/lib/docs/public-api.d.ts +1 -1
- package/lib/docs/services/sources.service.d.ts +18 -18
- package/lib/docs/srlc-indicator/public-api.d.ts +16 -16
- package/lib/docs/srlc-indicator/srlc-indicator.component.d.ts +16 -16
- package/lib/docs/theme-switcher/theme-switcher.component.d.ts +12 -12
- package/lib/dragdrop/dragdrop.module.d.ts +13 -13
- package/lib/dragdrop/draggable.component.d.ts +21 -21
- package/lib/dragdrop/droppable.component.d.ts +16 -16
- package/lib/dragdrop/public-api.d.ts +2 -2
- package/lib/expander/expander.component.d.ts +44 -44
- package/lib/expander/expander.module.d.ts +12 -12
- package/lib/form-field/form-field.component.d.ts +49 -49
- package/lib/form-field/form-field.module.d.ts +13 -13
- package/lib/form-field/public-api.d.ts +12 -12
- package/lib/form-field/touched-changes-helper.d.ts +12 -12
- package/lib/icon/icon.component.d.ts +37 -37
- package/lib/icon/icon.module.d.ts +11 -11
- package/lib/icon/icon.service.d.ts +23 -23
- package/lib/icon/icons.d.ts +6 -6
- package/lib/icon/public-api.d.ts +1 -1
- package/lib/icon/types.d.ts +92 -92
- package/lib/image/image.component.d.ts +61 -61
- package/lib/image/image.module.d.ts +11 -11
- package/lib/image/public-api.d.ts +8 -8
- package/lib/layout/card/card.component.d.ts +11 -11
- package/lib/layout/card-group/card-group.component.d.ts +11 -11
- package/lib/layout/layout-resizer/layout-resizer.component.d.ts +31 -31
- package/lib/layout/layout.module.d.ts +12 -12
- package/lib/layout/public-api.d.ts +4 -4
- package/lib/layout/sheet/sheet.component.d.ts +17 -17
- package/lib/layout/sheet-group/sheet-group.component.d.ts +52 -52
- package/lib/menu/index.d.ts +9 -9
- package/lib/menu/menu/menu.component.d.ts +84 -84
- package/lib/menu/menu-item/menu-action/menu-action.component.d.ts +26 -26
- package/lib/menu/menu-item/menu-group/menu-group.component.d.ts +8 -8
- package/lib/menu/menu-item/menu-item/menu-item-base.d.ts +32 -32
- package/lib/menu/menu-item/menu-item/menu-item.component.d.ts +19 -19
- package/lib/menu/menu-item/menu-link/menu-link.component.d.ts +31 -31
- package/lib/menu/menu-item/menu-option/menu-option.component.d.ts +33 -33
- package/lib/menu/menu-item/menu-switch/menu-switch.component.d.ts +26 -26
- package/lib/menu/menu-key-control.service.d.ts +42 -42
- package/lib/menu/menu-popup/menu-popup.component.d.ts +25 -25
- package/lib/menu/menu.module.d.ts +24 -24
- package/lib/menu/public-api.d.ts +31 -31
- package/lib/message/message.component.d.ts +33 -33
- package/lib/message/message.module.d.ts +13 -13
- package/lib/overlay/arrow-component/overlay-arrow.component.d.ts +9 -9
- package/lib/overlay/constants.d.ts +7 -7
- package/lib/overlay/overlay-additions.module.d.ts +11 -11
- package/lib/overlay/overlay-component/overlay.component.d.ts +60 -60
- package/lib/overlay/overlay-container.service.d.ts +17 -17
- package/lib/overlay/overlay-custom-container.d.ts +19 -19
- package/lib/overlay/overlay-item/overlay-item.component.d.ts +23 -23
- package/lib/overlay/overlay-position.service.d.ts +26 -26
- package/lib/overlay/overlay-utilities.service.d.ts +10 -10
- package/lib/overlay/overlay.module.d.ts +13 -13
- package/lib/overlay/overlay.service.d.ts +36 -36
- package/lib/overlay/public-api.d.ts +8 -8
- package/lib/overlay/types.d.ts +54 -54
- package/lib/paginator/paginator.component.d.ts +164 -164
- package/lib/paginator/paginator.module.d.ts +15 -15
- package/lib/paginator/public-api.d.ts +11 -11
- package/lib/panel/panel.component.d.ts +123 -123
- package/lib/panel/panel.module.d.ts +12 -12
- package/lib/panel/public-api.d.ts +19 -19
- package/lib/popover/popover-modal.component.d.ts +62 -62
- package/lib/popover/popover-modal.service.d.ts +45 -45
- package/lib/popover/popover-position.service.d.ts +23 -23
- package/lib/popover/popover.component.d.ts +150 -150
- package/lib/popover/popover.module.d.ts +15 -15
- package/lib/popover/public-api.d.ts +12 -12
- package/lib/popup/popup-container.component.d.ts +26 -26
- package/lib/popup/popup-container.service.d.ts +8 -8
- package/lib/popup/popup-toggle.directive.d.ts +15 -15
- package/lib/popup/popup.component.d.ts +84 -84
- package/lib/popup/popup.module.d.ts +15 -15
- package/lib/popup-adapter/popup-adapter.component.d.ts +59 -59
- package/lib/popup-adapter/popup-adapter.module.d.ts +12 -12
- package/lib/progress/progress.component.d.ts +31 -31
- package/lib/progress/progress.module.d.ts +13 -13
- package/lib/public-api.d.ts +35 -35
- package/lib/radio/radio-group.component.d.ts +96 -96
- package/lib/radio/radio.module.d.ts +11 -11
- package/lib/repeat/public-api.d.ts +1 -1
- package/lib/repeat/repeat-item/repeat-item.component.d.ts +16 -16
- package/lib/repeat/repeat.component.d.ts +180 -180
- package/lib/repeat/repeat.module.d.ts +16 -16
- package/lib/repeat/types.d.ts +31 -31
- package/lib/search/search.component.d.ts +62 -62
- package/lib/search/search.module.d.ts +14 -14
- package/lib/select/base-select.d.ts +104 -104
- package/lib/select/combobox/combobox.component.d.ts +70 -70
- package/lib/select/index.d.ts +2 -2
- package/lib/select/public-api.d.ts +8 -8
- package/lib/select/select.component.d.ts +41 -41
- package/lib/select/select.module.d.ts +16 -16
- package/lib/select-v2/base-select-v2.d.ts +138 -138
- package/lib/select-v2/combobox-v2/combobox-v2.component.d.ts +64 -64
- package/lib/select-v2/combobox-v2-option-highlight/combobox-v2-option-highlight.directive.d.ts +23 -23
- package/lib/select-v2/constants.d.ts +5 -5
- package/lib/select-v2/mark-as-selected-item.directive.d.ts +13 -13
- package/lib/select-v2/option/select-v2-option.component.d.ts +31 -31
- package/lib/select-v2/option-group/select-v2-option-group.component.d.ts +19 -19
- package/lib/select-v2/option-key-control.service.d.ts +27 -27
- package/lib/select-v2/select/select-v2.component.d.ts +32 -32
- package/lib/select-v2/select-v2.module.d.ts +23 -23
- package/lib/select-v2/selected-items-key-control.service.d.ts +31 -31
- package/lib/select-v2/types.d.ts +11 -11
- package/lib/selector/public-api.d.ts +11 -11
- package/lib/selector/selector.component.d.ts +54 -54
- package/lib/selector/selector.module.d.ts +15 -15
- package/lib/selector/selector.service.d.ts +64 -64
- package/lib/sorter/constants.d.ts +2 -2
- package/lib/sorter/public-api.d.ts +13 -13
- package/lib/sorter/sorter-keyboard.service.d.ts +23 -23
- package/lib/sorter/sorter.component.d.ts +62 -62
- package/lib/sorter/sorter.module.d.ts +14 -14
- package/lib/spinner/public-api.d.ts +8 -8
- package/lib/spinner/spinner.component.d.ts +41 -41
- package/lib/spinner/spinner.module.d.ts +13 -13
- package/lib/switch/switch.component.d.ts +25 -25
- package/lib/switch/switch.module.d.ts +11 -11
- package/lib/tabgroup/tab/tab-heading-custom-template-ref.directive.d.ts +13 -13
- package/lib/tabgroup/tab/tab-heading.directive.d.ts +11 -11
- package/lib/tabgroup/tab/tab.component.d.ts +25 -25
- package/lib/tabgroup/tab-group/tab-group.component.d.ts +37 -37
- package/lib/tabgroup/tab-heading/tab-heading.component.d.ts +22 -22
- package/lib/tabgroup/tab-heading-group/tab-heading-group.component.d.ts +44 -44
- package/lib/tabgroup/tabs.module.d.ts +17 -17
- package/lib/table/constants.d.ts +4 -4
- package/lib/table/public-api.d.ts +5 -5
- package/lib/table/table-cell/table-cell-def.directive.d.ts +12 -12
- package/lib/table/table-cell/table-cell.directive.d.ts +30 -30
- package/lib/table/table-cell/table-column-def.directive.d.ts +20 -20
- package/lib/table/table-cell/table-footer-cell-def.directive.d.ts +12 -12
- package/lib/table/table-cell/table-footer-cell.directive.d.ts +11 -11
- package/lib/table/table-cell/table-header-cell-def.directive.d.ts +12 -12
- package/lib/table/table-cell/table-header-cell.component.d.ts +57 -57
- package/lib/table/table-resizer/table-resizer.directive.d.ts +21 -21
- package/lib/table/table-row/table-row.component.d.ts +116 -116
- package/lib/table/table-state-handler.service.d.ts +272 -272
- package/lib/table/table-virtual-scroll/slice-range.pipe.d.ts +10 -10
- package/lib/table/table-virtual-scroll/table-sticky-header.directive.d.ts +44 -44
- package/lib/table/table-virtual-scroll/table-virtual-scroll-strategy.d.ts +75 -75
- package/lib/table/table-virtual-scroll/table-virtual-scroll.directive.d.ts +42 -42
- package/lib/table/table.component.d.ts +54 -54
- package/lib/table/table.module.d.ts +28 -28
- package/lib/table/types.d.ts +8 -8
- package/lib/textbox/textbox-number/textbox-number.component.d.ts +88 -88
- package/lib/textbox/textbox.component.d.ts +96 -96
- package/lib/textbox/textbox.module.d.ts +16 -16
- package/lib/time-frame-picker/public-api.d.ts +21 -21
- package/lib/time-frame-picker/quick-picker/quick-picker.component.d.ts +22 -22
- package/lib/time-frame-picker/services/timeframe.service.d.ts +87 -87
- package/lib/time-frame-picker/time-frame-format.pipe.d.ts +30 -30
- package/lib/time-frame-picker/time-frame-picker.component.d.ts +37 -37
- package/lib/time-frame-picker/time-frame-picker.module.d.ts +15 -15
- package/lib/time-picker/time-picker-keyboard.service.d.ts +22 -22
- package/lib/time-picker/time-picker.component.d.ts +83 -83
- package/lib/time-picker/time-picker.module.d.ts +15 -15
- package/lib/toast/public-api.d.ts +123 -123
- package/lib/toast/toast-container.service.d.ts +34 -34
- package/lib/toast/toast-injector.d.ts +10 -10
- package/lib/toast/toast-package.d.ts +22 -22
- package/lib/toast/toast-ref.d.ts +30 -30
- package/lib/toast/toast.component.d.ts +69 -69
- package/lib/toast/toast.directive.d.ts +26 -26
- package/lib/toast/toast.module.d.ts +14 -14
- package/lib/toast/toast.service.d.ts +77 -77
- package/lib/toast/toast.servicebase.d.ts +16 -16
- package/lib/toolbar/public-api.d.ts +18 -18
- package/lib/toolbar/toolbar-group.component.d.ts +12 -12
- package/lib/toolbar/toolbar-item.component.d.ts +22 -22
- package/lib/toolbar/toolbar-keyboard.service.d.ts +16 -16
- package/lib/toolbar/toolbar-message.component.d.ts +8 -8
- package/lib/toolbar/toolbar-splitter.component.d.ts +8 -8
- package/lib/toolbar/toolbar.component.d.ts +60 -59
- package/lib/toolbar/toolbar.module.d.ts +19 -19
- package/lib/tooltip/public-api.d.ts +3 -3
- package/lib/tooltip/tooltip.component.d.ts +62 -62
- package/lib/tooltip/tooltip.directive.d.ts +60 -60
- package/lib/tooltip/tooltip.module.d.ts +13 -13
- package/lib/validation-message/custom-validation-message/custom-validation-message.component.d.ts +19 -19
- package/lib/validation-message/public-api.d.ts +2 -2
- package/lib/validation-message/validation-message.component.d.ts +19 -19
- package/lib/validation-message/validation-message.module.d.ts +13 -13
- package/lib/wizard/public-api.d.ts +30 -30
- package/lib/wizard/wizard-step.component.d.ts +84 -84
- package/lib/wizard/wizard.component.d.ts +98 -98
- package/lib/wizard/wizard.module.d.ts +16 -16
- package/lib/wizard-v2/error-state-matcher.provider.d.ts +7 -7
- package/lib/wizard-v2/public-api.d.ts +12 -12
- package/lib/wizard-v2/types.d.ts +13 -13
- package/lib/wizard-v2/wizard-button/wizard-button.d.ts +18 -18
- package/lib/wizard-v2/wizard-footer/wizard-footer.component.d.ts +20 -20
- package/lib/wizard-v2/wizard-horizontal/wizard-horizontal.component.d.ts +59 -59
- package/lib/wizard-v2/wizard-overflow/wizard-overflow.component.d.ts +13 -13
- package/lib/wizard-v2/wizard-step/wizard-step.component.d.ts +29 -29
- package/lib/wizard-v2/wizard-step-footer.directive.d.ts +8 -8
- package/lib/wizard-v2/wizard-step-header/wizard-step-header.component.d.ts +46 -46
- package/lib/wizard-v2/wizard-step-label.directive.d.ts +6 -6
- package/lib/wizard-v2/wizard-vertical/wizard-vertical.component.d.ts +18 -18
- package/lib/wizard-v2/wizard.directive.d.ts +48 -48
- package/lib/wizard-v2/wizard.module.d.ts +23 -23
- package/nova-ui-bits.d.ts +5 -5
- package/nui-api.d.ts +56 -56
- package/package.json +2 -2
- package/pipes/highlight.pipe.d.ts +37 -37
- package/pipes/limit-to.pipe.d.ts +21 -21
- package/pipes/unit-conversion.pipe.d.ts +28 -28
- package/public_api.d.ts +160 -160
- package/sdk/atoms/atom.d.ts +47 -47
- package/sdk/atoms/atom.js +172 -172
- package/sdk/atoms/components/breadcrumb/breadcrumb.atom.d.ts +11 -11
- package/sdk/atoms/components/breadcrumb/breadcrumb.atom.js +45 -45
- package/sdk/atoms/components/busy/busy.atom.d.ts +12 -12
- package/sdk/atoms/components/busy/busy.atom.js +40 -40
- package/sdk/atoms/components/button/button.atom.d.ts +19 -19
- package/sdk/atoms/components/button/button.atom.js +62 -62
- package/sdk/atoms/components/checkbox/checkbox.atom.d.ts +30 -30
- package/sdk/atoms/components/checkbox/checkbox.atom.js +93 -93
- package/sdk/atoms/components/checkbox-group/checkbox-group.atom.d.ts +11 -11
- package/sdk/atoms/components/checkbox-group/checkbox-group.atom.js +68 -68
- package/sdk/atoms/components/chips/chips.atom.d.ts +32 -32
- package/sdk/atoms/components/chips/chips.atom.js +92 -92
- package/sdk/atoms/components/combobox/combobox.atom.d.ts +29 -29
- package/sdk/atoms/components/combobox/combobox.atom.js +66 -66
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.d.ts +23 -23
- package/sdk/atoms/components/combobox-v2/combobox-v2.atom.js +100 -100
- package/sdk/atoms/components/content/content.atom.d.ts +6 -6
- package/sdk/atoms/components/content/content.atom.js +39 -39
- package/sdk/atoms/components/convenience/time-frame-bar/time-frame-bar.atom.d.ts +22 -22
- package/sdk/atoms/components/convenience/time-frame-bar/time-frame-bar.atom.js +83 -83
- package/sdk/atoms/components/datepicker/datepicker.atom.d.ts +57 -57
- package/sdk/atoms/components/datepicker/datepicker.atom.js +194 -194
- package/sdk/atoms/components/datetimepicker/datetimepicker.atom.d.ts +9 -9
- package/sdk/atoms/components/datetimepicker/datetimepicker.atom.js +42 -42
- package/sdk/atoms/components/dialog/dialog.atom.d.ts +18 -18
- package/sdk/atoms/components/dialog/dialog.atom.js +76 -76
- package/sdk/atoms/components/divider/divider.atom.d.ts +6 -6
- package/sdk/atoms/components/divider/divider.atom.js +44 -44
- package/sdk/atoms/components/drag-and-drop/cdk-drop-item.atom.d.ts +10 -10
- package/sdk/atoms/components/drag-and-drop/cdk-drop-item.atom.js +57 -57
- package/sdk/atoms/components/drag-and-drop/cdk-drop-list.atom.d.ts +8 -8
- package/sdk/atoms/components/drag-and-drop/cdk-drop-list.atom.js +41 -41
- package/sdk/atoms/components/expander/expander.atom.d.ts +19 -19
- package/sdk/atoms/components/expander/expander.atom.js +89 -89
- package/sdk/atoms/components/form-field/form-field.atom.d.ts +12 -12
- package/sdk/atoms/components/form-field/form-field.atom.js +72 -72
- package/sdk/atoms/components/icon/icon.atom.d.ts +21 -21
- package/sdk/atoms/components/icon/icon.atom.js +90 -90
- package/sdk/atoms/components/image/image.atom.d.ts +8 -8
- package/sdk/atoms/components/image/image.atom.js +60 -60
- package/sdk/atoms/components/layout/index.d.ts +2 -2
- package/sdk/atoms/components/layout/index.js +24 -24
- package/sdk/atoms/components/layout/layout-sheet-group.atom.d.ts +14 -14
- package/sdk/atoms/components/layout/layout-sheet-group.atom.js +90 -90
- package/sdk/atoms/components/layout/layout-sheet.atom.d.ts +6 -6
- package/sdk/atoms/components/layout/layout-sheet.atom.js +44 -44
- package/sdk/atoms/components/menu/menu-item.atom.d.ts +13 -13
- package/sdk/atoms/components/menu/menu-item.atom.js +116 -116
- package/sdk/atoms/components/menu/menu.atom.d.ts +43 -43
- package/sdk/atoms/components/menu/menu.atom.js +115 -115
- package/sdk/atoms/components/menu-popup/menu-popup.atom.d.ts +11 -11
- package/sdk/atoms/components/menu-popup/menu-popup.atom.js +56 -56
- package/sdk/atoms/components/message/message.atom.d.ts +16 -16
- package/sdk/atoms/components/message/message.atom.js +50 -50
- package/sdk/atoms/components/overlay/overlay.atom.d.ts +11 -11
- package/sdk/atoms/components/overlay/overlay.atom.js +40 -40
- package/sdk/atoms/components/paginator/paginator.atom.d.ts +29 -29
- package/sdk/atoms/components/paginator/paginator.atom.js +198 -198
- package/sdk/atoms/components/panel/panel.atom.d.ts +29 -29
- package/sdk/atoms/components/panel/panel.atom.js +119 -119
- package/sdk/atoms/components/popover/popover.atom.d.ts +28 -28
- package/sdk/atoms/components/popover/popover.atom.js +93 -93
- package/sdk/atoms/components/popup/overlay-content.atom.d.ts +7 -7
- package/sdk/atoms/components/popup/overlay-content.atom.js +34 -34
- package/sdk/atoms/components/popup/popup.atom.d.ts +16 -16
- package/sdk/atoms/components/popup/popup.atom.js +67 -67
- package/sdk/atoms/components/progress/progress.atom.d.ts +14 -14
- package/sdk/atoms/components/progress/progress.atom.js +64 -64
- package/sdk/atoms/components/public_api.d.ts +54 -54
- package/sdk/atoms/components/public_api.js +76 -76
- package/sdk/atoms/components/radio-group/radio-group.atom.d.ts +13 -13
- package/sdk/atoms/components/radio-group/radio-group.atom.js +75 -75
- package/sdk/atoms/components/repeat/repeat.atom.d.ts +27 -27
- package/sdk/atoms/components/repeat/repeat.atom.js +122 -122
- package/sdk/atoms/components/search/search.atom.d.ts +11 -11
- package/sdk/atoms/components/search/search.atom.js +74 -74
- package/sdk/atoms/components/select/basic-select.atom.d.ts +21 -21
- package/sdk/atoms/components/select/basic-select.atom.js +55 -55
- package/sdk/atoms/components/select/select.atom.d.ts +10 -10
- package/sdk/atoms/components/select/select.atom.js +36 -36
- package/sdk/atoms/components/select-v2/base-select-v2.atom.d.ts +29 -29
- package/sdk/atoms/components/select-v2/base-select-v2.atom.js +122 -122
- package/sdk/atoms/components/select-v2/select-v2-option.atom.d.ts +7 -7
- package/sdk/atoms/components/select-v2/select-v2-option.atom.js +43 -43
- package/sdk/atoms/components/select-v2/select-v2.atom.d.ts +5 -5
- package/sdk/atoms/components/select-v2/select-v2.atom.js +33 -33
- package/sdk/atoms/components/selector/selector.atom.d.ts +17 -17
- package/sdk/atoms/components/selector/selector.atom.js +82 -82
- package/sdk/atoms/components/selector/selector.e2e.d.ts +6 -6
- package/sdk/atoms/components/selector/selector.e2e.js +91 -91
- package/sdk/atoms/components/sorter/sorter.atom.d.ts +33 -33
- package/sdk/atoms/components/sorter/sorter.atom.js +122 -122
- package/sdk/atoms/components/spinner/spinner.atom.d.ts +12 -12
- package/sdk/atoms/components/spinner/spinner.atom.js +44 -44
- package/sdk/atoms/components/switch/switch.atom.d.ts +14 -14
- package/sdk/atoms/components/switch/switch.atom.js +72 -72
- package/sdk/atoms/components/tab-heading-group/tab-heading-group.atom.d.ts +16 -16
- package/sdk/atoms/components/tab-heading-group/tab-heading-group.atom.js +107 -107
- package/sdk/atoms/components/tab-heading-group/tab-heading.atom.d.ts +8 -8
- package/sdk/atoms/components/tab-heading-group/tab-heading.atom.js +51 -51
- package/sdk/atoms/components/table/table.atom.d.ts +73 -73
- package/sdk/atoms/components/table/table.atom.js +209 -209
- package/sdk/atoms/components/textbox/textbox.atom.d.ts +22 -22
- package/sdk/atoms/components/textbox/textbox.atom.js +58 -58
- package/sdk/atoms/components/textbox-number/textbox-number.atom.d.ts +18 -18
- package/sdk/atoms/components/textbox-number/textbox-number.atom.js +52 -52
- package/sdk/atoms/components/time-frame-picker/quick-picker.atom.d.ts +8 -8
- package/sdk/atoms/components/time-frame-picker/quick-picker.atom.js +48 -48
- package/sdk/atoms/components/time-frame-picker/time-frame-picker.atom.d.ts +7 -7
- package/sdk/atoms/components/time-frame-picker/time-frame-picker.atom.js +35 -35
- package/sdk/atoms/components/timepicker/timepicker.atom.d.ts +18 -18
- package/sdk/atoms/components/timepicker/timepicker.atom.js +63 -63
- package/sdk/atoms/components/toolbar/toolbar.atom.d.ts +18 -18
- package/sdk/atoms/components/toolbar/toolbar.atom.js +86 -86
- package/sdk/atoms/components/wizard/wizard-step.atom.d.ts +11 -11
- package/sdk/atoms/components/wizard/wizard-step.atom.js +51 -51
- package/sdk/atoms/components/wizard/wizard.atom.d.ts +22 -22
- package/sdk/atoms/components/wizard/wizard.atom.js +90 -90
- package/sdk/atoms/directives/public_api.d.ts +3 -3
- package/sdk/atoms/directives/public_api.js +25 -25
- package/sdk/atoms/directives/resizer/resizer.atom.d.ts +12 -12
- package/sdk/atoms/directives/resizer/resizer.atom.js +51 -51
- package/sdk/atoms/directives/toast/toast.atom.d.ts +28 -28
- package/sdk/atoms/directives/toast/toast.atom.js +66 -66
- package/sdk/atoms/directives/tooltip/tooltip.atom.d.ts +9 -9
- package/sdk/atoms/directives/tooltip/tooltip.atom.js +37 -37
- package/sdk/atoms/helpers.d.ts +37 -37
- package/sdk/atoms/helpers.js +215 -265
- package/sdk/atoms/helpers.js.map +1 -1
- package/sdk/atoms/index.d.ts +5 -5
- package/sdk/atoms/index.js +30 -30
- package/sdk/atoms/virtual-camera/Camera.d.ts +21 -21
- package/sdk/atoms/virtual-camera/Camera.js +53 -53
- package/sdk/atoms/virtual-camera/camera-engine.d.ts +13 -13
- package/sdk/atoms/virtual-camera/camera-engine.js +80 -81
- package/sdk/atoms/virtual-camera/camera-engine.js.map +1 -1
- package/sdk/atoms/virtual-camera/camera-settings.d.ts +10 -10
- package/sdk/atoms/virtual-camera/camera-settings.js +58 -58
- package/sdk/atoms/virtual-camera/camera-toggle.d.ts +7 -7
- package/sdk/atoms/virtual-camera/camera-toggle.js +39 -39
- package/sdk/atoms/virtual-camera/percy-lens.d.ts +17 -17
- package/sdk/atoms/virtual-camera/percy-lens.js +78 -78
- package/sdk/atoms/virtual-camera/public_api.d.ts +2 -2
- package/sdk/atoms/virtual-camera/public_api.js +24 -24
- package/sdk/atoms/virtual-camera/types.d.ts +35 -34
- package/sdk/atoms/virtual-camera/types.js +43 -42
- package/sdk/atoms/virtual-camera/types.js.map +1 -1
- package/sdk/locale/messages.en.xlf +8 -8
- package/sdk/schematics/filter-group/index.d.ts +3 -3
- package/sdk/schematics/filter-group/index.js +80 -80
- package/sdk/schematics/filter-group/index.spec.d.ts +1 -1
- package/sdk/schematics/filter-group/index.spec.js +59 -59
- package/sdk/schematics/filter-group/schema.d.ts +50 -50
- package/sdk/schematics/filter-group/schema.js +21 -21
- package/sdk/schematics/filtered-view/index.d.ts +3 -3
- package/sdk/schematics/filtered-view/index.js +130 -130
- package/sdk/schematics/filtered-view/index.spec.d.ts +1 -1
- package/sdk/schematics/filtered-view/index.spec.js +59 -59
- package/sdk/schematics/filtered-view/schema.d.ts +87 -87
- package/sdk/schematics/filtered-view/schema.js +21 -21
- package/sdk/schematics/index.d.ts +1 -1
- package/sdk/schematics/index.js +23 -23
- package/sdk/schematics/layout/index.d.ts +3 -3
- package/sdk/schematics/layout/index.js +88 -88
- package/sdk/schematics/layout/index.spec.d.ts +1 -1
- package/sdk/schematics/layout/index.spec.js +62 -62
- package/sdk/schematics/layout/schema.d.ts +78 -78
- package/sdk/schematics/layout/schema.js +21 -21
- package/sdk/schematics/list/files/__name@dasherize__.component.ts +320 -320
- package/sdk/schematics/list/index.d.ts +3 -3
- package/sdk/schematics/list/index.js +128 -128
- package/sdk/schematics/list/schema.d.ts +72 -72
- package/sdk/schematics/list/schema.js +21 -21
- package/sdk/schematics/ng-add/index.d.ts +2 -2
- package/sdk/schematics/ng-add/index.js +180 -180
- package/sdk/schematics/ng-add/index.spec.d.ts +1 -1
- package/sdk/schematics/ng-add/index.spec.js +176 -176
- package/sdk/schematics/ng-update/index.d.ts +2 -2
- package/sdk/schematics/ng-update/index.js +44 -44
- package/sdk/schematics/ng-update/index.spec.d.ts +1 -1
- package/sdk/schematics/ng-update/index.spec.js +106 -106
- package/sdk/schematics/table/files/__name@dasherize__.component.ts +381 -381
- package/sdk/schematics/table/index.d.ts +3 -3
- package/sdk/schematics/table/index.js +139 -139
- package/sdk/schematics/table/schema.d.ts +72 -72
- package/sdk/schematics/table/schema.js +21 -21
- package/sdk/schematics/utility/index.d.ts +5 -5
- package/sdk/schematics/utility/index.js +27 -27
- package/sdk/schematics/utility/json-utils.d.ts +13 -13
- package/sdk/schematics/utility/json-utils.js +122 -122
- package/sdk/schematics/utility/project-targets.d.ts +10 -10
- package/sdk/schematics/utility/project-targets.js +34 -34
- package/sdk/schematics/utility/project.d.ts +12 -12
- package/sdk/schematics/utility/project.js +47 -47
- package/sdk/schematics/utility/schematics-helper.d.ts +18 -18
- package/sdk/schematics/utility/schematics-helper.js +179 -179
- package/sdk/schematics/utility/schematics-helper.spec.d.ts +1 -1
- package/sdk/schematics/utility/schematics-helper.spec.js +51 -51
- package/sdk/schematics/utility/workspace.d.ts +10 -10
- package/sdk/schematics/utility/workspace.js +46 -46
- package/services/content-ref.d.ts +8 -8
- package/services/data-filter.service.d.ts +23 -23
- package/services/data-source/client-side-data-source.service.d.ts +25 -25
- package/services/data-source/data-source-features.d.ts +10 -10
- package/services/data-source/data-source.service.d.ts +31 -31
- package/services/data-source/local-filtering-data-source.service.d.ts +45 -45
- package/services/data-source/noop-data-source.service.d.ts +8 -8
- package/services/data-source/public-api.d.ts +137 -137
- package/services/data-source/server-side-source.service.d.ts +23 -23
- package/services/dom-util.service.d.ts +20 -20
- package/services/edge-detection.service.d.ts +32 -32
- package/services/event-bus.d.ts +18 -18
- package/services/event-bus.service.d.ts +13 -13
- package/services/event-propagation.service.d.ts +35 -35
- package/services/history-storage.d.ts +47 -47
- package/services/list.service.d.ts +41 -41
- package/services/log-service.d.ts +48 -48
- package/services/notification-args.d.ts +14 -14
- package/services/notification-service.d.ts +24 -24
- package/services/position.service.d.ts +37 -37
- package/services/public-api.d.ts +120 -120
- package/services/search.service.d.ts +49 -49
- package/services/tab-navigation.service.d.ts +15 -15
- package/services/theme-switch.service.d.ts +42 -42
- package/services/transient-cache.service.d.ts +18 -18
- package/services/unit-conversion.service.d.ts +76 -76
- package/services/util.service.d.ts +76 -76
- package/services/virtual-viewport-manager.service.d.ts +42 -42
- package/types.d.ts +15 -15
- package/validators/index.d.ts +1 -1
- package/validators/nui-validators.d.ts +20 -20
- package/sdk/atoms/virtual-camera/eyes-lens.d.ts +0 -15
- package/sdk/atoms/virtual-camera/eyes-lens.js +0 -106
- package/sdk/atoms/virtual-camera/eyes-lens.js.map +0 -1
|
@@ -1,290 +1,290 @@
|
|
|
1
|
-
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to
|
|
5
|
-
// deal in the Software without restriction, including without limitation the
|
|
6
|
-
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
import { Injectable, Optional } from "@angular/core";
|
|
21
|
-
import _differenceWith from "lodash/differenceWith";
|
|
22
|
-
import _intersectionWith from "lodash/intersectionWith";
|
|
23
|
-
import _isEqual from "lodash/isEqual";
|
|
24
|
-
import _isUndefined from "lodash/isUndefined";
|
|
25
|
-
import _reject from "lodash/reject";
|
|
26
|
-
import _unionWith from "lodash/unionWith";
|
|
27
|
-
import { LoggerService } from "../../services/log-service";
|
|
28
|
-
import { SelectionModel, } from "../../services/public-api";
|
|
29
|
-
import { RepeatSelectionMode } from "../repeat/types";
|
|
30
|
-
import { CheckboxStatus, SelectionType } from "./public-api";
|
|
31
|
-
import * as i0 from "@angular/core";
|
|
32
|
-
import * as i1 from "../../services/log-service";
|
|
33
|
-
/**
|
|
34
|
-
* @ignore
|
|
35
|
-
*/
|
|
36
|
-
export class SelectorService {
|
|
37
|
-
constructor(logger) {
|
|
38
|
-
this.logger = logger;
|
|
39
|
-
/**
|
|
40
|
-
* Map if SelectionType to internationalized selector options
|
|
41
|
-
*/
|
|
42
|
-
this.i18nTitleMap = {};
|
|
43
|
-
this.i18nTitleMap[SelectionType.All] = $localize `Select all items on this page`;
|
|
44
|
-
this.i18nTitleMap[SelectionType.AllPages] = $localize `Select all items on all pages`;
|
|
45
|
-
this.i18nTitleMap[SelectionType.None] = $localize `Unselect all items`;
|
|
46
|
-
this.i18nTitleMap[SelectionType.UnselectAll] = $localize `Unselect all items on this page`;
|
|
47
|
-
}
|
|
48
|
-
// TODO: think about an ability to provide isEqual function from outside
|
|
49
|
-
/**
|
|
50
|
-
* Allows to react on changes of a selector component.
|
|
51
|
-
* If user has selected one of the options in a selector (Select all items pages, Select all items on all pages),
|
|
52
|
-
* the new selection object should be created.
|
|
53
|
-
* @param {ISelection} currentSelection
|
|
54
|
-
* @param {any[]} currentItems Items on current page
|
|
55
|
-
* @param {SelectionType} selectorValue
|
|
56
|
-
* @param {number} totalItems
|
|
57
|
-
* @param trackBy
|
|
58
|
-
* @param {boolean} virtualScroll Enables virtual scroll selection behavior
|
|
59
|
-
* @returns {ISelection} New selection object
|
|
60
|
-
*/
|
|
61
|
-
applySelector(currentSelection, currentItems, selectorValue, totalItems, trackBy = (i, d) => d, virtualScroll) {
|
|
62
|
-
if (virtualScroll) {
|
|
63
|
-
if (selectorValue === SelectionType.AllPages ||
|
|
64
|
-
selectorValue === SelectionType.All) {
|
|
65
|
-
return new SelectionModel({ isAllPages: true });
|
|
66
|
-
}
|
|
67
|
-
return new SelectionModel();
|
|
68
|
-
}
|
|
69
|
-
if (selectorValue === SelectionType.AllPages) {
|
|
70
|
-
return new SelectionModel({ isAllPages: true });
|
|
71
|
-
}
|
|
72
|
-
const trackedItems = currentItems.map((value, index) => trackBy(index, value));
|
|
73
|
-
if (currentSelection.isAllPages) {
|
|
74
|
-
if (selectorValue === SelectionType.All) {
|
|
75
|
-
return new SelectionModel({
|
|
76
|
-
isAllPages: true,
|
|
77
|
-
exclude: _differenceWith(currentSelection.exclude, trackedItems, _isEqual),
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
if (selectorValue === SelectionType.UnselectAll) {
|
|
81
|
-
return new SelectionModel({
|
|
82
|
-
isAllPages: true,
|
|
83
|
-
exclude: _unionWith(currentSelection.exclude, trackedItems, _isEqual),
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
if (selectorValue === SelectionType.All) {
|
|
89
|
-
return new SelectionModel({
|
|
90
|
-
include: _unionWith(currentSelection.include, trackedItems, _isEqual),
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
if (selectorValue === SelectionType.UnselectAll) {
|
|
94
|
-
return new SelectionModel({
|
|
95
|
-
include: _differenceWith(currentSelection.include, trackedItems, _isEqual),
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
return new SelectionModel();
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* You may need to obtain the set of items that are selected given selection object and some set of items.
|
|
103
|
-
* @param {ISelection} selection
|
|
104
|
-
* @param {any[]} items
|
|
105
|
-
* @returns {any[]} Set of items
|
|
106
|
-
*/
|
|
107
|
-
getSelectedItems(selection, items) {
|
|
108
|
-
if (selection.isAllPages) {
|
|
109
|
-
return _differenceWith(items, selection.exclude);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return _intersectionWith(items, selection.include);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Allows to react on changes of selected items (for selector).
|
|
117
|
-
* If user selects some items directly in a list, selector state may change
|
|
118
|
-
* @param {ISelection} currentSelection
|
|
119
|
-
* @param {number} totalOnCurrentPage
|
|
120
|
-
* @param {number} selectedOnCurrentPage
|
|
121
|
-
* @param totalItems
|
|
122
|
-
* @param selectedOnAllPages
|
|
123
|
-
* @param {boolean} virtualScroll Enables virtual scroll selection behavior
|
|
124
|
-
* @returns {ISelectorState}
|
|
125
|
-
*/
|
|
126
|
-
getSelectorState(currentSelection, totalOnCurrentPage, selectedOnCurrentPage, totalItems, selectedOnAllPages, virtualScroll) {
|
|
127
|
-
// Note: short cutting the flow in case we're preforming the selection in
|
|
128
|
-
// virtual scroll mode where we can't have options for selection, just select all and unselect all
|
|
129
|
-
if (virtualScroll) {
|
|
130
|
-
// Note: In case user manually selected all the items we should set the Checked state
|
|
131
|
-
if (selectedOnAllPages === totalItems) {
|
|
132
|
-
return {
|
|
133
|
-
checkboxStatus: CheckboxStatus.Checked,
|
|
134
|
-
selectorItems: [],
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
if (currentSelection.isAllPages) {
|
|
138
|
-
return {
|
|
139
|
-
// Note: In case master checkbox is in the checked state we should ensure
|
|
140
|
-
// that we don't have any excluded items to prevent displaying Checked state
|
|
141
|
-
checkboxStatus: currentSelection.exclude.length
|
|
142
|
-
? CheckboxStatus.Indeterminate
|
|
143
|
-
: CheckboxStatus.Checked,
|
|
144
|
-
selectorItems: [],
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
return {
|
|
149
|
-
// Note: In case master checkbox is in the unchecked state we should ensure
|
|
150
|
-
// that we don't have any included items to prevent displaying Unchecked state
|
|
151
|
-
checkboxStatus: currentSelection.include.length
|
|
152
|
-
? CheckboxStatus.Indeterminate
|
|
153
|
-
: CheckboxStatus.Unchecked,
|
|
154
|
-
selectorItems: [],
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
if (selectedOnCurrentPage === 0) {
|
|
159
|
-
if (totalOnCurrentPage === totalItems) {
|
|
160
|
-
return {
|
|
161
|
-
checkboxStatus: CheckboxStatus.Unchecked,
|
|
162
|
-
selectorItems: this.getFlatSelectorItems([
|
|
163
|
-
SelectionType.All,
|
|
164
|
-
]),
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
if (selectedOnAllPages && selectedOnAllPages > 0) {
|
|
168
|
-
return {
|
|
169
|
-
checkboxStatus: CheckboxStatus.Unchecked,
|
|
170
|
-
selectorItems: this.getFlatSelectorItems([
|
|
171
|
-
SelectionType.All,
|
|
172
|
-
SelectionType.AllPages,
|
|
173
|
-
SelectionType.None,
|
|
174
|
-
]),
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
checkboxStatus: CheckboxStatus.Unchecked,
|
|
179
|
-
selectorItems: this.getFlatSelectorItems([
|
|
180
|
-
SelectionType.AllPages,
|
|
181
|
-
SelectionType.All,
|
|
182
|
-
]),
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
// case when we have only one page. Clarified with UX team that when we have one page we need to have SelectionType.All
|
|
186
|
-
if (selectedOnCurrentPage < totalOnCurrentPage &&
|
|
187
|
-
totalOnCurrentPage === totalItems) {
|
|
188
|
-
return {
|
|
189
|
-
checkboxStatus: CheckboxStatus.Indeterminate,
|
|
190
|
-
selectorItems: this.getFlatSelectorItems([
|
|
191
|
-
SelectionType.All,
|
|
192
|
-
SelectionType.None,
|
|
193
|
-
]),
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
if (selectedOnCurrentPage === totalOnCurrentPage) {
|
|
197
|
-
return {
|
|
198
|
-
checkboxStatus: CheckboxStatus.Checked,
|
|
199
|
-
selectorItems: currentSelection.isAllPages &&
|
|
200
|
-
currentSelection.exclude.length === 0
|
|
201
|
-
? this.getFlatSelectorItems([SelectionType.None])
|
|
202
|
-
: this.getFlatSelectorItems([
|
|
203
|
-
SelectionType.AllPages,
|
|
204
|
-
SelectionType.None,
|
|
205
|
-
]),
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
return {
|
|
209
|
-
checkboxStatus: CheckboxStatus.Indeterminate,
|
|
210
|
-
selectorItems: this.getFlatSelectorItems([
|
|
211
|
-
SelectionType.All,
|
|
212
|
-
SelectionType.AllPages,
|
|
213
|
-
SelectionType.None,
|
|
214
|
-
]),
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Allows to react on selection.
|
|
219
|
-
* @param {ISelection} prevSelection Previous selection
|
|
220
|
-
* @param {any[]} selectedItems Selected items on the current page
|
|
221
|
-
* @param {any[]} items Items on the current page
|
|
222
|
-
* @param {RepeatSelectionMode} selectionMode One of possible repeater selection modes
|
|
223
|
-
* @param {number} totalItems Deprecated in v9 - Unused - Removal: NUI-5809
|
|
224
|
-
* @returns {ISelection} New selection
|
|
225
|
-
*/
|
|
226
|
-
selectItems(prevSelection, selectedItems, items, selectionMode, totalItems) {
|
|
227
|
-
if (!_isUndefined(totalItems)) {
|
|
1
|
+
// © 2022 SolarWinds Worldwide, LLC. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
// of this software and associated documentation files (the "Software"), to
|
|
5
|
+
// deal in the Software without restriction, including without limitation the
|
|
6
|
+
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
+
// sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
// furnished to do so, subject to the following conditions:
|
|
9
|
+
//
|
|
10
|
+
// The above copyright notice and this permission notice shall be included in
|
|
11
|
+
// all copies or substantial portions of the Software.
|
|
12
|
+
//
|
|
13
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
+
// THE SOFTWARE.
|
|
20
|
+
import { Injectable, Optional } from "@angular/core";
|
|
21
|
+
import _differenceWith from "lodash/differenceWith";
|
|
22
|
+
import _intersectionWith from "lodash/intersectionWith";
|
|
23
|
+
import _isEqual from "lodash/isEqual";
|
|
24
|
+
import _isUndefined from "lodash/isUndefined";
|
|
25
|
+
import _reject from "lodash/reject";
|
|
26
|
+
import _unionWith from "lodash/unionWith";
|
|
27
|
+
import { LoggerService } from "../../services/log-service";
|
|
28
|
+
import { SelectionModel, } from "../../services/public-api";
|
|
29
|
+
import { RepeatSelectionMode } from "../repeat/types";
|
|
30
|
+
import { CheckboxStatus, SelectionType } from "./public-api";
|
|
31
|
+
import * as i0 from "@angular/core";
|
|
32
|
+
import * as i1 from "../../services/log-service";
|
|
33
|
+
/**
|
|
34
|
+
* @ignore
|
|
35
|
+
*/
|
|
36
|
+
export class SelectorService {
|
|
37
|
+
constructor(logger) {
|
|
38
|
+
this.logger = logger;
|
|
39
|
+
/**
|
|
40
|
+
* Map if SelectionType to internationalized selector options
|
|
41
|
+
*/
|
|
42
|
+
this.i18nTitleMap = {};
|
|
43
|
+
this.i18nTitleMap[SelectionType.All] = $localize `Select all items on this page`;
|
|
44
|
+
this.i18nTitleMap[SelectionType.AllPages] = $localize `Select all items on all pages`;
|
|
45
|
+
this.i18nTitleMap[SelectionType.None] = $localize `Unselect all items`;
|
|
46
|
+
this.i18nTitleMap[SelectionType.UnselectAll] = $localize `Unselect all items on this page`;
|
|
47
|
+
}
|
|
48
|
+
// TODO: think about an ability to provide isEqual function from outside
|
|
49
|
+
/**
|
|
50
|
+
* Allows to react on changes of a selector component.
|
|
51
|
+
* If user has selected one of the options in a selector (Select all items pages, Select all items on all pages),
|
|
52
|
+
* the new selection object should be created.
|
|
53
|
+
* @param {ISelection} currentSelection
|
|
54
|
+
* @param {any[]} currentItems Items on current page
|
|
55
|
+
* @param {SelectionType} selectorValue
|
|
56
|
+
* @param {number} totalItems
|
|
57
|
+
* @param trackBy
|
|
58
|
+
* @param {boolean} virtualScroll Enables virtual scroll selection behavior
|
|
59
|
+
* @returns {ISelection} New selection object
|
|
60
|
+
*/
|
|
61
|
+
applySelector(currentSelection, currentItems, selectorValue, totalItems, trackBy = (i, d) => d, virtualScroll) {
|
|
62
|
+
if (virtualScroll) {
|
|
63
|
+
if (selectorValue === SelectionType.AllPages ||
|
|
64
|
+
selectorValue === SelectionType.All) {
|
|
65
|
+
return new SelectionModel({ isAllPages: true });
|
|
66
|
+
}
|
|
67
|
+
return new SelectionModel();
|
|
68
|
+
}
|
|
69
|
+
if (selectorValue === SelectionType.AllPages) {
|
|
70
|
+
return new SelectionModel({ isAllPages: true });
|
|
71
|
+
}
|
|
72
|
+
const trackedItems = currentItems.map((value, index) => trackBy(index, value));
|
|
73
|
+
if (currentSelection.isAllPages) {
|
|
74
|
+
if (selectorValue === SelectionType.All) {
|
|
75
|
+
return new SelectionModel({
|
|
76
|
+
isAllPages: true,
|
|
77
|
+
exclude: _differenceWith(currentSelection.exclude, trackedItems, _isEqual),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (selectorValue === SelectionType.UnselectAll) {
|
|
81
|
+
return new SelectionModel({
|
|
82
|
+
isAllPages: true,
|
|
83
|
+
exclude: _unionWith(currentSelection.exclude, trackedItems, _isEqual),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
if (selectorValue === SelectionType.All) {
|
|
89
|
+
return new SelectionModel({
|
|
90
|
+
include: _unionWith(currentSelection.include, trackedItems, _isEqual),
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
if (selectorValue === SelectionType.UnselectAll) {
|
|
94
|
+
return new SelectionModel({
|
|
95
|
+
include: _differenceWith(currentSelection.include, trackedItems, _isEqual),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return new SelectionModel();
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* You may need to obtain the set of items that are selected given selection object and some set of items.
|
|
103
|
+
* @param {ISelection} selection
|
|
104
|
+
* @param {any[]} items
|
|
105
|
+
* @returns {any[]} Set of items
|
|
106
|
+
*/
|
|
107
|
+
getSelectedItems(selection, items) {
|
|
108
|
+
if (selection.isAllPages) {
|
|
109
|
+
return _differenceWith(items, selection.exclude);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return _intersectionWith(items, selection.include);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Allows to react on changes of selected items (for selector).
|
|
117
|
+
* If user selects some items directly in a list, selector state may change
|
|
118
|
+
* @param {ISelection} currentSelection
|
|
119
|
+
* @param {number} totalOnCurrentPage
|
|
120
|
+
* @param {number} selectedOnCurrentPage
|
|
121
|
+
* @param totalItems
|
|
122
|
+
* @param selectedOnAllPages
|
|
123
|
+
* @param {boolean} virtualScroll Enables virtual scroll selection behavior
|
|
124
|
+
* @returns {ISelectorState}
|
|
125
|
+
*/
|
|
126
|
+
getSelectorState(currentSelection, totalOnCurrentPage, selectedOnCurrentPage, totalItems, selectedOnAllPages, virtualScroll) {
|
|
127
|
+
// Note: short cutting the flow in case we're preforming the selection in
|
|
128
|
+
// virtual scroll mode where we can't have options for selection, just select all and unselect all
|
|
129
|
+
if (virtualScroll) {
|
|
130
|
+
// Note: In case user manually selected all the items we should set the Checked state
|
|
131
|
+
if (selectedOnAllPages === totalItems) {
|
|
132
|
+
return {
|
|
133
|
+
checkboxStatus: CheckboxStatus.Checked,
|
|
134
|
+
selectorItems: [],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
if (currentSelection.isAllPages) {
|
|
138
|
+
return {
|
|
139
|
+
// Note: In case master checkbox is in the checked state we should ensure
|
|
140
|
+
// that we don't have any excluded items to prevent displaying Checked state
|
|
141
|
+
checkboxStatus: currentSelection.exclude.length
|
|
142
|
+
? CheckboxStatus.Indeterminate
|
|
143
|
+
: CheckboxStatus.Checked,
|
|
144
|
+
selectorItems: [],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
return {
|
|
149
|
+
// Note: In case master checkbox is in the unchecked state we should ensure
|
|
150
|
+
// that we don't have any included items to prevent displaying Unchecked state
|
|
151
|
+
checkboxStatus: currentSelection.include.length
|
|
152
|
+
? CheckboxStatus.Indeterminate
|
|
153
|
+
: CheckboxStatus.Unchecked,
|
|
154
|
+
selectorItems: [],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (selectedOnCurrentPage === 0) {
|
|
159
|
+
if (totalOnCurrentPage === totalItems) {
|
|
160
|
+
return {
|
|
161
|
+
checkboxStatus: CheckboxStatus.Unchecked,
|
|
162
|
+
selectorItems: this.getFlatSelectorItems([
|
|
163
|
+
SelectionType.All,
|
|
164
|
+
]),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
if (selectedOnAllPages && selectedOnAllPages > 0) {
|
|
168
|
+
return {
|
|
169
|
+
checkboxStatus: CheckboxStatus.Unchecked,
|
|
170
|
+
selectorItems: this.getFlatSelectorItems([
|
|
171
|
+
SelectionType.All,
|
|
172
|
+
SelectionType.AllPages,
|
|
173
|
+
SelectionType.None,
|
|
174
|
+
]),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
return {
|
|
178
|
+
checkboxStatus: CheckboxStatus.Unchecked,
|
|
179
|
+
selectorItems: this.getFlatSelectorItems([
|
|
180
|
+
SelectionType.AllPages,
|
|
181
|
+
SelectionType.All,
|
|
182
|
+
]),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
// case when we have only one page. Clarified with UX team that when we have one page we need to have SelectionType.All
|
|
186
|
+
if (selectedOnCurrentPage < totalOnCurrentPage &&
|
|
187
|
+
totalOnCurrentPage === totalItems) {
|
|
188
|
+
return {
|
|
189
|
+
checkboxStatus: CheckboxStatus.Indeterminate,
|
|
190
|
+
selectorItems: this.getFlatSelectorItems([
|
|
191
|
+
SelectionType.All,
|
|
192
|
+
SelectionType.None,
|
|
193
|
+
]),
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
if (selectedOnCurrentPage === totalOnCurrentPage) {
|
|
197
|
+
return {
|
|
198
|
+
checkboxStatus: CheckboxStatus.Checked,
|
|
199
|
+
selectorItems: currentSelection.isAllPages &&
|
|
200
|
+
currentSelection.exclude.length === 0
|
|
201
|
+
? this.getFlatSelectorItems([SelectionType.None])
|
|
202
|
+
: this.getFlatSelectorItems([
|
|
203
|
+
SelectionType.AllPages,
|
|
204
|
+
SelectionType.None,
|
|
205
|
+
]),
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
checkboxStatus: CheckboxStatus.Indeterminate,
|
|
210
|
+
selectorItems: this.getFlatSelectorItems([
|
|
211
|
+
SelectionType.All,
|
|
212
|
+
SelectionType.AllPages,
|
|
213
|
+
SelectionType.None,
|
|
214
|
+
]),
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Allows to react on selection.
|
|
219
|
+
* @param {ISelection} prevSelection Previous selection
|
|
220
|
+
* @param {any[]} selectedItems Selected items on the current page
|
|
221
|
+
* @param {any[]} items Items on the current page
|
|
222
|
+
* @param {RepeatSelectionMode} selectionMode One of possible repeater selection modes
|
|
223
|
+
* @param {number} totalItems Deprecated in v9 - Unused - Removal: NUI-5809
|
|
224
|
+
* @returns {ISelection} New selection
|
|
225
|
+
*/
|
|
226
|
+
selectItems(prevSelection, selectedItems, items, selectionMode, totalItems) {
|
|
227
|
+
if (!_isUndefined(totalItems)) {
|
|
228
228
|
this.logger?.warn("'totalItems' parameter of SelectorService.selectItems is unused and deprecated. As of Nova v9, this \
|
|
229
|
-
argument may be omitted. Removal: NUI-5896");
|
|
230
|
-
}
|
|
231
|
-
if (selectionMode === RepeatSelectionMode.radio ||
|
|
232
|
-
selectionMode === RepeatSelectionMode.single ||
|
|
233
|
-
selectionMode ===
|
|
234
|
-
RepeatSelectionMode.radioWithNonRequiredSelection ||
|
|
235
|
-
selectionMode === RepeatSelectionMode.singleWithRequiredSelection) {
|
|
236
|
-
return new SelectionModel({ include: selectedItems });
|
|
237
|
-
}
|
|
238
|
-
// This is just common sense: if selection mode can be dynamically changed this may be useful
|
|
239
|
-
if (selectionMode === RepeatSelectionMode.none) {
|
|
240
|
-
return new SelectionModel();
|
|
241
|
-
}
|
|
242
|
-
const includedItems = this.getIncludedItems(prevSelection, items, selectedItems);
|
|
243
|
-
if (prevSelection.isAllPages) {
|
|
244
|
-
return new SelectionModel({
|
|
245
|
-
isAllPages: prevSelection.isAllPages,
|
|
246
|
-
exclude: this.getExcludedItems(prevSelection, items, selectedItems),
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
return new SelectionModel({
|
|
250
|
-
isAllPages: prevSelection.isAllPages,
|
|
251
|
-
include: includedItems,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
// items are all items in current repeater
|
|
255
|
-
getIncludedItems(prevSelection, items, selectedItems) {
|
|
256
|
-
const unselectedItems = _differenceWith(items, selectedItems, _isEqual);
|
|
257
|
-
const includedItems = _reject(prevSelection.include, (includedItem) => unselectedItems.some((unselectedItem) => _isEqual(includedItem, unselectedItem)));
|
|
258
|
-
return _unionWith(includedItems, selectedItems, _isEqual);
|
|
259
|
-
}
|
|
260
|
-
getExcludedItems(prevSelection, items, selectedItems) {
|
|
261
|
-
const excludedItems = _reject(prevSelection.exclude, (excludedItem) => selectedItems.some((item) => _isEqual(excludedItem, item)));
|
|
262
|
-
const unselectedItemsOnPage = _differenceWith(items, selectedItems, _isEqual);
|
|
263
|
-
return unselectedItemsOnPage.reduce((memo, item) => {
|
|
264
|
-
const isItemExcluded = excludedItems.some((excludedItem) => _isEqual(excludedItem, item));
|
|
265
|
-
if (!isItemExcluded) {
|
|
266
|
-
memo.push(item);
|
|
267
|
-
}
|
|
268
|
-
return memo;
|
|
269
|
-
}, excludedItems);
|
|
270
|
-
}
|
|
271
|
-
getFlatSelectorItems(arr) {
|
|
272
|
-
return [
|
|
273
|
-
{
|
|
274
|
-
itemsSource: arr.map((element) => ({
|
|
275
|
-
value: element,
|
|
276
|
-
title: this.i18nTitleMap[element],
|
|
277
|
-
})),
|
|
278
|
-
},
|
|
279
|
-
];
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
SelectorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, deps: [{ token: i1.LoggerService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
-
SelectorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, providedIn: "root" });
|
|
284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, decorators: [{
|
|
285
|
-
type: Injectable,
|
|
286
|
-
args: [{ providedIn: "root" }]
|
|
287
|
-
}], ctorParameters: function () { return [{ type: i1.LoggerService, decorators: [{
|
|
288
|
-
type: Optional
|
|
289
|
-
}] }]; } });
|
|
229
|
+
argument may be omitted. Removal: NUI-5896");
|
|
230
|
+
}
|
|
231
|
+
if (selectionMode === RepeatSelectionMode.radio ||
|
|
232
|
+
selectionMode === RepeatSelectionMode.single ||
|
|
233
|
+
selectionMode ===
|
|
234
|
+
RepeatSelectionMode.radioWithNonRequiredSelection ||
|
|
235
|
+
selectionMode === RepeatSelectionMode.singleWithRequiredSelection) {
|
|
236
|
+
return new SelectionModel({ include: selectedItems });
|
|
237
|
+
}
|
|
238
|
+
// This is just common sense: if selection mode can be dynamically changed this may be useful
|
|
239
|
+
if (selectionMode === RepeatSelectionMode.none) {
|
|
240
|
+
return new SelectionModel();
|
|
241
|
+
}
|
|
242
|
+
const includedItems = this.getIncludedItems(prevSelection, items, selectedItems);
|
|
243
|
+
if (prevSelection.isAllPages) {
|
|
244
|
+
return new SelectionModel({
|
|
245
|
+
isAllPages: prevSelection.isAllPages,
|
|
246
|
+
exclude: this.getExcludedItems(prevSelection, items, selectedItems),
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return new SelectionModel({
|
|
250
|
+
isAllPages: prevSelection.isAllPages,
|
|
251
|
+
include: includedItems,
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
// items are all items in current repeater
|
|
255
|
+
getIncludedItems(prevSelection, items, selectedItems) {
|
|
256
|
+
const unselectedItems = _differenceWith(items, selectedItems, _isEqual);
|
|
257
|
+
const includedItems = _reject(prevSelection.include, (includedItem) => unselectedItems.some((unselectedItem) => _isEqual(includedItem, unselectedItem)));
|
|
258
|
+
return _unionWith(includedItems, selectedItems, _isEqual);
|
|
259
|
+
}
|
|
260
|
+
getExcludedItems(prevSelection, items, selectedItems) {
|
|
261
|
+
const excludedItems = _reject(prevSelection.exclude, (excludedItem) => selectedItems.some((item) => _isEqual(excludedItem, item)));
|
|
262
|
+
const unselectedItemsOnPage = _differenceWith(items, selectedItems, _isEqual);
|
|
263
|
+
return unselectedItemsOnPage.reduce((memo, item) => {
|
|
264
|
+
const isItemExcluded = excludedItems.some((excludedItem) => _isEqual(excludedItem, item));
|
|
265
|
+
if (!isItemExcluded) {
|
|
266
|
+
memo.push(item);
|
|
267
|
+
}
|
|
268
|
+
return memo;
|
|
269
|
+
}, excludedItems);
|
|
270
|
+
}
|
|
271
|
+
getFlatSelectorItems(arr) {
|
|
272
|
+
return [
|
|
273
|
+
{
|
|
274
|
+
itemsSource: arr.map((element) => ({
|
|
275
|
+
value: element,
|
|
276
|
+
title: this.i18nTitleMap[element],
|
|
277
|
+
})),
|
|
278
|
+
},
|
|
279
|
+
];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
SelectorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, deps: [{ token: i1.LoggerService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
283
|
+
SelectorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, providedIn: "root" });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectorService, decorators: [{
|
|
285
|
+
type: Injectable,
|
|
286
|
+
args: [{ providedIn: "root" }]
|
|
287
|
+
}], ctorParameters: function () { return [{ type: i1.LoggerService, decorators: [{
|
|
288
|
+
type: Optional
|
|
289
|
+
}] }]; } });
|
|
290
290
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0b3Iuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9saWIvc2VsZWN0b3Ivc2VsZWN0b3Iuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx5REFBeUQ7QUFDekQsRUFBRTtBQUNGLCtFQUErRTtBQUMvRSw0RUFBNEU7QUFDNUUsOEVBQThFO0FBQzlFLCtFQUErRTtBQUMvRSw4RUFBOEU7QUFDOUUsNERBQTREO0FBQzVELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsdURBQXVEO0FBQ3ZELEVBQUU7QUFDRiw2RUFBNkU7QUFDN0UsNEVBQTRFO0FBQzVFLCtFQUErRTtBQUMvRSwwRUFBMEU7QUFDMUUsaUZBQWlGO0FBQ2pGLDZFQUE2RTtBQUM3RSxpQkFBaUI7QUFFakIsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQW1CLE1BQU0sZUFBZSxDQUFDO0FBQ3RFLE9BQU8sZUFBZSxNQUFNLHVCQUF1QixDQUFDO0FBQ3BELE9BQU8saUJBQWlCLE1BQU0seUJBQXlCLENBQUM7QUFDeEQsT0FBTyxRQUFRLE1BQU0sZ0JBQWdCLENBQUM7QUFDdEMsT0FBTyxZQUFZLE1BQU0sb0JBQW9CLENBQUM7QUFDOUMsT0FBTyxPQUFPLE1BQU0sZUFBZSxDQUFDO0FBQ3BDLE9BQU8sVUFBVSxNQUFNLGtCQUFrQixDQUFDO0FBRTFDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSw0QkFBNEIsQ0FBQztBQUMzRCxPQUFPLE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25zdCB0cmFja2VkSXRlbXMgPSBjdXJyZW50SXRlbXMubWFwKCh2YWx1ZSwgaW5kZXgpID0+XG4gICAgICAgICAgICB0cmFja0J5KGluZGV4LCB2YWx1ZSlcbiAgICAgICAgKTtcbiAgICAgICAgaWYgKGN1cnJlbnRTZWxlY3Rpb24uaXNBbGxQYWdlcykge1xuICAgICAgICAgICAgaWYgKHNlbGVjdG9yVmFsdWUgPT09IFNlbGVjdGlvblR5cGUuQWxsKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTZWxlY3Rpb25Nb2RlbCh7XG4gICAgICAgICAgICAgICAgICAgIGlzQWxsUGFnZXM6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGV4Y2x1ZGU6IF9kaWZmZXJlbmNlV2l0aChcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnJlbnRTZWxlY3Rpb24uZXhjbHVkZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRyYWNrZWRJdGVtcyxcbiAgICAgICAgICAgICAgICAgICAgICAgIF9pc0VxdWFsXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChzZWxlY3RvclZhbHVlID09PSBTZWxlY3Rpb25UeXBlLlVuc2VsZWN0QWxsKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTZWxlY3Rpb25Nb2RlbCh7XG4gICAgICAgICAgICAgICAgICAgIGlzQWxsUGFnZXM6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgIGV4Y2x1ZGU6IF91bmlvbldpdGgoXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50U2VsZWN0aW9uLmV4Y2x1ZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB0cmFja2VkSXRlbXMsXG4gICAgICAgICAgICAgICAgICAgICAgICBfaXNFcXVhbFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKHNlbGVjdG9yVmFsdWUgPT09IFNlbGVjdGlvblR5cGUuQWxsKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTZWxlY3Rpb25Nb2RlbCh7XG4gICAgICAgICAgICAgICAgICAgIGluY2x1ZGU6IF91bmlvbldpdGgoXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50U2VsZWN0aW9uLmluY2x1ZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB0cmFja2VkSXRlbXMsXG4gICAgICAgICAgICAgICAgICAgICAgICBfaXNFcXVhbFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBpZiAoc2VsZWN0b3JWYWx1ZSA9PT0gU2VsZWN0aW9uVHlwZS5VbnNlbGVjdEFsbCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBuZXcgU2VsZWN0aW9uTW9kZWwoe1xuICAgICAgICAgICAgICAgICAgICBpbmNsdWRlOiBfZGlmZmVyZW5jZVdpdGgoXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJyZW50U2VsZWN0aW9uLmluY2x1ZGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB0cmFja2VkSXRlbXMsXG4gICAgICAgICAgICAgICAgICAgICAgICBfaXNFcXVhbFxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIG5ldyBTZWxlY3Rpb25Nb2RlbCgpO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIFlvdSBtYXkgbmVlZCB0byBvYnRhaW4gdGhlIHNldCBvZiBpdGVtcyB0aGF0IGFyZSBzZWxlY3RlZCBnaXZlbiBzZWxlY3Rpb24gb2JqZWN0IGFuZCBzb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2VsZWN0b3JJdGVtczogW10sXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKGN1cnJlbnRTZWxlY3Rpb24uaXNBbGxQYWdlcykge1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIE5vdGU6IEluIGNhc2UgbWFzdGVyIGNoZWNrYm94IGlzIGluIHRoZSBjaGVja2VkIHN0YXRlIHdlIHNob3VsZCBlbnN1cmVcbiAgICAgICAgICAgICAgICAgICAgLy8gdGhhdCB3ZSBkb24ndCBoYXZlIGFueSBleGNsdWRlZCBpdGVtcyB0byBwcmV2ZW50IGRpc3BsYXlpbmcgQ2hlY2tlZCBzdGF0ZVxuICAgICAgICAgICAgICAgICAgICBjaGVja2JveFN0YXR1czogY3VycmVudFNlbGVjdGlvbi5leGNsdWRlLmxlbmd0aFxuICAgICAgICAgICAgICAgICAgICAgICAgPyBDaGVja2JveFN0YXR1cy5JbmRldGVybWluYXRlXG4gICAgICAgICAgICAgICAgICAgICAgICA6IENoZWNrYm94U3RhdHVzLkNoZWNrZWQsXG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdG9ySXRlbXM6IFtdLFxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICAgIC8vIE5vdGU6IEluIGNhc2UgbWFzdGVyIGNoZWNrYm94IGlzIGluIHRoZSB1bmNoZWNrZWQgc3RhdGUgd2Ugc2hvdWxkIGVuc3VyZVxuICAgICAgICAgICAgICAgICAgICAvLyB0aGF0IHdlIGRvbid0IGhhdmUgYW55IGluY2x1ZGVkIGl0ZW1zIHRvIHByZXZlbnQgZGlzcGxheWluZyBVbmNoZWNrZWQgc3RhdGVcbiAgICAgICAgICAgICAgICAgICAgY2hlY2tib3hTdGF0dXM6IGN1cnJlbnRTZWxlY3Rpb24uaW5jbHVkZS5sZW5ndGhcbiAgICAgICAgICAgICAgICAgICAgICAgID8gQ2hlY2tib3hTdGF0dXMuSW5kZXRlcm1pbmF0ZVxuICAgICAgICAgICAgICAgICAgICAgICAgOiBDaGVja2JveFN0YXR1cy5VbmNoZWNrZWQsXG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdG9ySXRlbXM6IFtdLFxuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoc2VsZWN0ZWRPbkN1cnJlbnRQYWdlID09PSAwKSB7XG4gICAgICAgICAgICBpZiAodG90YWxPbkN1cnJlbnRQYWdlID09PSB0b3RhbEl0ZW1zKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgICAgICAgICAgY2hlY2tib3hTdGF0dXM6IENoZWNrYm94U3RhdHVzLlVuY2hlY2tlZCxcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0b3JJdGVtczogdGhpcy5nZXRGbGF0U2VsZWN0b3JJdGVtcyhbXG4gICAgICAgICAgICAgICAgICAgICAgICBTZWxlY3Rpb25UeXBlLkFsbCxcbiAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChzZWxlY3RlZE9uQWxsUGFnZXMgJiYgc2VsZWN0ZWRPbkFsbFBhZ2VzID4gMCkge1xuICAgICAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgICAgIGNoZWNrYm94U3RhdHVzOiBDaGVja2JveFN0YXR1cy5VbmNoZWNrZWQsXG4gICAgICAgICAgICAgICAgICAgIHNlbGVjdG9ySXRlbXM6IHRoaXMuZ2V0RmxhdFNlbGVjdG9ySXRlbXMoW1xuICAgICAgICAgICAgICAgICAgICAgICAgU2VsZWN0aW9uVHlwZS5BbGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBTZWxlY3Rpb25UeXBlLkFsbFBhZ2VzLFxuICAgICAgICAgICAgICAgICAgICAgICAgU2VsZWN0aW9uVHlwZS5Ob25lLFxuICAgICAgICAgICAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIGNoZWNrYm94U3RhdHVzOiBDaGVja2JveFN0YXR1cy5VbmNoZWNrZWQsXG4gICAgICAgICAgICAgICAgc2VsZWN0b3JJdGVtczogdGhpcy5nZXRGbGF0U2VsZWN0b3JJdGVtcyhbXG4gICAgICAgICAgICAgICAgICAgIFNlbGVjdGlvblR5cGUuQWxsUGFnZXMsXG4gICAgICAgICAgICAgICAgICAgIFNlbGVjdGlvblR5cGUuQWxsLFxuICAgICAgICAgICAgICAgIF0pLFxuICAgICAgICAgICAgfTtcbiAgICAgICAgfVxuICAgICAgICAvLyBjYXNlIHdoZW4gd2UgaGF2ZSBvbmx5IG9uZSBwYWdlLiBDbGFyaWZpZWQgd2l0aCBVWCB0ZWFtIHRoYXQgd2hlbiB3ZSBoYXZlIG9uZSBwYWdlIHdlIG5lZWQgdG8gaGF2ZSBTZWxlY3Rpb25UeXBlLkFsbFxuICAgICAgICBpZiAoXG4gICAgICAgICAgICBzZWxlY3RlZE9uQ3VycmVudFBhZ2UgPCB0b3RhbE9uQ3VycmVudFBhZ2UgJiZcbiAgICAgICAgICAgIHRvdGFsT25DdXJyZW50UGFnZSA9PT0gdG90YWxJdGVtc1xuICAgICAgICApIHtcbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgICAgY2hlY2tib3hTdGF0dXM6IENoZWNrYm94U3RhdHVzLkluZGV0ZXJtaW5hdGUsXG4gICAgICAgICAgICAgICAgc2VsZWN0b3JJdGVtczogdGhpcy5nZXRGbGF0U2VsZWN0b3JJdGVtcyhbXG4gICAgICAgICAgICAgICAgICAgIFNlbGVjdGlvblR5cGUuQWxsLFxuICAgICAgICAgICAgICAgICAgICBTZWxlY3Rpb25UeXBlLk5vbmUsXG4gICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHNlbGVjdGVkT25DdXJyZW50UGFnZSA9PT0gdG90YWxPbkN1cnJlbnRQYWdlKSB7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIGNoZWNrYm94U3RhdHVzOiBDaGVja2JveFN0YXR1cy5DaGVja2VkLFxuICAgICAgICAgICAgICAgIHNlbGVjdG9ySXRlbXM6XG4gICAgICAgICAgICAgICAgICAgIGN1cnJlbnRTZWxlY3Rpb24uaXNBbGxQYWdlcyAmJlxuICAgICAgICAgICAgICAgICAgICBjdXJyZW50U2VsZWN0aW9uLmV4Y2x1ZGUubGVuZ3RoID09PSAwXG4gICAgICAgICAgICAgICAgICAgICAgICA/IHRoaXMuZ2V0RmxhdFNlbGVjdG9ySXRlbXMoW1NlbGVjdGlvblR5cGUuTm9uZV0pXG4gICAgICAgICAgICAgICAgICAgICAgICA6IHRoaXMuZ2V0RmxhdFNlbGVjdG9ySXRlbXMoW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgU2VsZWN0aW9uVHlwZS5BbGxQYWdlcyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFNlbGVjdGlvblR5cGUuTm9uZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgXSksXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGNoZWNrYm94U3RhdHVzOiBDaGVja2JveFN0YXR1cy5JbmRldGVybWluYXRlLFxuICAgICAgICAgICAgc2VsZWN0b3JJdGVtczogdGhpcy5nZXRGbGF0U2VsZWN0b3JJdGVtcyhbXG4gICAgICAgICAgICAgICAgU2VsZWN0aW9uVHlwZS5BbGwsXG4gICAgICAgICAgICAgICAgU2VsZWN0aW9uVHlwZS5BbGxQYWdlcyxcbiAgICAgICAgICAgIC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XG5cbiAgICAgICAgY29uc3QgaW5jbHVkZWRJdGVtcyA9IHRoaXMuZ2V0SW5jbHVkZWRJdGVtcyhcbiAgICAgICAgICAgIHByZXZTZWxlY3Rpb24sXG4gICAgICAgICAgICBpdGVtcyxcbiAgICAgICAgICAgIHNlbGVjdGVkSXRlbXNcbiAgICAgICAgKTtcblxuICAgICAgICBpZiAocHJldlNlbGVjdGlvbi5pc0FsbFBhZ2VzKSB7XG4gICAgICAgICAgICByZXR1cm4gbmV3IFNlbGVjdGlvbk1vZGVsKHtcbiAgICAgICAgICAgICAgICBpc0FsbFBhZ2VzOiBwcmV2U2VsZWN0aW9uLmlzQWxsUGFnZXMsXG4gICAgICAgICAgICAgICAgZXhjbHVkZTogdGhpcy5nZXRFeGNsdWRlZEl0ZW1zKFxuICAgICAgICAgICAgICAgICAgICBwcmV2U2VsZWN0aW9uLFxuICAgICAgICAgICAgICAgICAgICBpdGVtcyxcbiAgICAgICAgICAgICAgICAgICAgc2VsZWN0ZWRJdGVtc1xuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBuZXcgU2VsZWN0aW9uTW9kZWwoe1xuICAgICAgICAgICAgaXNBbGxQYWdlczogcHJldlNlbGVjdGlvbi5pc0FsbFBhZ2VzLFxuICAgICAgICAgICAgaW5jbHVkZTogaW5jbHVkZWRJdGVtcyxcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgLy8gaXRlbXMgYXJlIGFsbCBpdGVtcyBpbiBjdXJyZW50IHJlcGVhdGVyXG4gICAgcHJpdmF0ZSBnZXRJbmNsdWRlZEl0ZW1zKFxuICAgICAgICBwcmV2U2VsZWN0aW9uOiBJU2VsZWN0aW9uLFxuICAgICAgICBpdGVtczogYW55W10sXG4gICAgICAgIHNlbGVjdGVkSXRlbXM6IGFueVtdXG4gICAgKTogYW55W10ge1xuICAgICAgICBjb25zdCB1bnNlbGVjdGVkSXRlbXMgPSBfZG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nJlZHVjZSgobWVtbywgaXRlbSkgPT4ge1xuICAgICAgICAgICAgY29uc3QgaXNJdGVtRXhjbHVkZWQgPSBleGNsdWRlZEl0ZW1zLnNvbWUoKGV4Y2x1ZGVkSXRlbSkgPT5cbiAgICAgICAgICAgICAgICBfaXNFcXVhbChleGNsdWRlZEl0ZW0sIGl0ZW0pXG4gICAgICAgICAgICApO1xuICAgICAgICAgICAgaWYgKCFpc0l0ZW1FeGNsdWRlZCkge1xuICAgICAgICAgICAgICAgIG1lbW8ucHVzaChpdGVtKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBtZW1vO1xuICAgICAgICB9LCBleGNsdWRlZEl0ZW1zKTtcbiAgICB9XG5cbiAgICBwcml2YXRlIGdldEZsYXRTZWxlY3Rvckl0ZW1zKGFycjogU2VsZWN0aW9uVHlwZVtdKTogSU1lbnVHcm91cFtdIHtcbiAgICAgICAgcmV0dXJuIFtcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBpdGVtc1NvdXJjZTogYXJyLm1hcCgoZWxlbWVudDogU2VsZWN0aW9uVHlwZSkgPT4gKHtcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGVsZW1lbnQsXG4gICAgICAgICAgICAgICAgICAgIHRpdGxlOiB0aGlzLmkxOG5UaXRsZU1hcFtlbGVtZW50XSxcbiAgICAgICAgICAgICAgICB9KSksXG4gICAgICAgICAgICB9LFxuICAgICAgICBdO1xuICAgIH1cbn1cbiJdfQ==
|