@igo2/common 1.15.5 → 1.15.6
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/esm2020/igo2-common.mjs +4 -4
- package/esm2020/lib/action/action.module.mjs +26 -26
- package/esm2020/lib/action/actionbar/actionbar-item.component.mjs +251 -251
- package/esm2020/lib/action/actionbar/actionbar.component.mjs +369 -369
- package/esm2020/lib/action/actionbar/actionbar.module.mjs +56 -56
- package/esm2020/lib/action/index.mjs +3 -3
- package/esm2020/lib/action/shared/action.enums.mjs +7 -7
- package/esm2020/lib/action/shared/action.interfaces.mjs +1 -1
- package/esm2020/lib/action/shared/index.mjs +4 -4
- package/esm2020/lib/action/shared/store.mjs +7 -7
- package/esm2020/lib/backdrop/backdrop.component.mjs +25 -25
- package/esm2020/lib/backdrop/backdrop.module.mjs +24 -24
- package/esm2020/lib/backdrop/index.mjs +2 -2
- package/esm2020/lib/badge-icon/badge-icon.directive.mjs +140 -140
- package/esm2020/lib/badge-icon/badge-icon.module.mjs +25 -25
- package/esm2020/lib/badge-icon/index.mjs +2 -2
- package/esm2020/lib/clickout/clickout.directive.mjs +31 -31
- package/esm2020/lib/clickout/clickout.module.mjs +23 -23
- package/esm2020/lib/clickout/index.mjs +2 -2
- package/esm2020/lib/clone/clone.module.mjs +23 -23
- package/esm2020/lib/clone/clone.pipe.mjs +23 -23
- package/esm2020/lib/clone/index.mjs +2 -2
- package/esm2020/lib/collapsible/collapse.directive.mjs +54 -54
- package/esm2020/lib/collapsible/collapsible.component.mjs +56 -56
- package/esm2020/lib/collapsible/collapsible.module.mjs +26 -26
- package/esm2020/lib/collapsible/index.mjs +2 -2
- package/esm2020/lib/confirm-dialog/confirm-dialog.component.mjs +43 -43
- package/esm2020/lib/confirm-dialog/confirm-dialog.module.mjs +28 -28
- package/esm2020/lib/confirm-dialog/confirm-dialog.service.mjs +23 -23
- package/esm2020/lib/confirm-dialog/index.mjs +2 -2
- package/esm2020/lib/context-menu/context-menu.directive.mjs +102 -102
- package/esm2020/lib/context-menu/context-menu.module.mjs +24 -24
- package/esm2020/lib/context-menu/index.mjs +2 -2
- package/esm2020/lib/context-menu/long-press.directive.mjs +66 -66
- package/esm2020/lib/custom-html/custom-html.component.mjs +28 -28
- package/esm2020/lib/custom-html/custom-html.module.mjs +46 -46
- package/esm2020/lib/custom-html/custom-html.pipe.mjs +17 -17
- package/esm2020/lib/custom-html/index.mjs +2 -2
- package/esm2020/lib/dom/dom.interfaces.mjs +2 -2
- package/esm2020/lib/dom/dom.module.mjs +22 -22
- package/esm2020/lib/dom/dom.service.mjs +29 -29
- package/esm2020/lib/dom/index.mjs +3 -3
- package/esm2020/lib/drag-drop/drag-drop.directive.mjs +87 -87
- package/esm2020/lib/drag-drop/drag-drop.module.mjs +23 -23
- package/esm2020/lib/drag-drop/index.mjs +2 -2
- package/esm2020/lib/dynamic-component/dynamic-component.module.mjs +30 -30
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +122 -122
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +27 -27
- package/esm2020/lib/dynamic-component/index.mjs +3 -3
- package/esm2020/lib/dynamic-component/shared/dynamic-component.interfaces.mjs +2 -2
- package/esm2020/lib/dynamic-component/shared/dynamic-component.mjs +173 -173
- package/esm2020/lib/dynamic-component/shared/dynamic-component.service.mjs +28 -28
- package/esm2020/lib/dynamic-component/shared/index.mjs +4 -4
- package/esm2020/lib/entity/entity-selector/entity-selector.component.mjs +193 -193
- package/esm2020/lib/entity/entity-selector/entity-selector.module.mjs +31 -31
- package/esm2020/lib/entity/entity-table/entity-table-row.directive.mjs +136 -136
- package/esm2020/lib/entity/entity-table/entity-table.component.mjs +1375 -1375
- package/esm2020/lib/entity/entity-table/entity-table.module.mjs +101 -101
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +131 -131
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +1 -1
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +27 -27
- package/esm2020/lib/entity/entity.module.mjs +30 -30
- package/esm2020/lib/entity/index.mjs +5 -5
- package/esm2020/lib/entity/shared/entity.enums.mjs +28 -28
- package/esm2020/lib/entity/shared/entity.interfaces.mjs +1 -1
- package/esm2020/lib/entity/shared/entity.utils.mjs +66 -66
- package/esm2020/lib/entity/shared/index.mjs +10 -10
- package/esm2020/lib/entity/shared/state.mjs +190 -190
- package/esm2020/lib/entity/shared/store.mjs +287 -287
- package/esm2020/lib/entity/shared/strategies/filter-custom-function.mjs +78 -78
- package/esm2020/lib/entity/shared/strategies/filter-selection.mjs +83 -83
- package/esm2020/lib/entity/shared/strategies/index.mjs +4 -4
- package/esm2020/lib/entity/shared/strategies/strategy.mjs +74 -74
- package/esm2020/lib/entity/shared/transaction.mjs +315 -315
- package/esm2020/lib/entity/shared/view.mjs +314 -314
- package/esm2020/lib/entity/shared/watcher.mjs +119 -119
- package/esm2020/lib/flexible/flexible.component.mjs +147 -147
- package/esm2020/lib/flexible/flexible.module.mjs +23 -23
- package/esm2020/lib/flexible/flexible.type.mjs +2 -2
- package/esm2020/lib/flexible/index.mjs +3 -3
- package/esm2020/lib/form/form/form.component.mjs +116 -116
- package/esm2020/lib/form/form/form.module.mjs +39 -39
- package/esm2020/lib/form/form-field/form-field-select.component.mjs +126 -126
- package/esm2020/lib/form/form-field/form-field-text.component.mjs +103 -103
- package/esm2020/lib/form/form-field/form-field-textarea.component.mjs +104 -104
- package/esm2020/lib/form/form-field/form-field.component.mjs +71 -71
- package/esm2020/lib/form/form-field/form-field.module.mjs +73 -73
- package/esm2020/lib/form/form-field/index.mjs +4 -4
- package/esm2020/lib/form/form-group/form-group.component.mjs +104 -104
- package/esm2020/lib/form/form-group/form-group.module.mjs +39 -39
- package/esm2020/lib/form/form.module.mjs +48 -48
- package/esm2020/lib/form/index.mjs +4 -4
- package/esm2020/lib/form/shared/form-field-component.mjs +7 -7
- package/esm2020/lib/form/shared/form-field.service.mjs +28 -28
- package/esm2020/lib/form/shared/form.interfaces.mjs +1 -1
- package/esm2020/lib/form/shared/form.service.mjs +80 -80
- package/esm2020/lib/form/shared/form.utils.mjs +39 -39
- package/esm2020/lib/form/shared/index.mjs +6 -6
- package/esm2020/lib/home-button/home-button.component.mjs +30 -30
- package/esm2020/lib/home-button/home-button.module.mjs +40 -40
- package/esm2020/lib/home-button/index.mjs +2 -2
- package/esm2020/lib/image/image-error.directive.mjs +34 -34
- package/esm2020/lib/image/image.module.mjs +24 -24
- package/esm2020/lib/image/index.mjs +2 -2
- package/esm2020/lib/image/secure-image.pipe.mjs +58 -58
- package/esm2020/lib/interactive-tour/index.mjs +5 -5
- package/esm2020/lib/interactive-tour/interactive-tour.component.mjs +134 -134
- package/esm2020/lib/interactive-tour/interactive-tour.interface.mjs +1 -1
- package/esm2020/lib/interactive-tour/interactive-tour.loader.mjs +43 -43
- package/esm2020/lib/interactive-tour/interactive-tour.module.mjs +39 -39
- package/esm2020/lib/interactive-tour/interactive-tour.service.mjs +284 -284
- package/esm2020/lib/json-dialog/index.mjs +3 -3
- package/esm2020/lib/json-dialog/json-dialog.component.mjs +108 -108
- package/esm2020/lib/json-dialog/json-dialog.module.mjs +28 -28
- package/esm2020/lib/json-dialog/json-dialog.service.mjs +23 -23
- package/esm2020/lib/keyvalue/index.mjs +2 -2
- package/esm2020/lib/keyvalue/keyvalue.module.mjs +23 -23
- package/esm2020/lib/keyvalue/keyvalue.pipe.mjs +17 -17
- package/esm2020/lib/list/index.mjs +2 -2
- package/esm2020/lib/list/list-item.directive.mjs +164 -164
- package/esm2020/lib/list/list.component.mjs +261 -261
- package/esm2020/lib/list/list.module.mjs +28 -28
- package/esm2020/lib/panel/index.mjs +2 -2
- package/esm2020/lib/panel/panel.component.mjs +58 -58
- package/esm2020/lib/panel/panel.module.mjs +18 -18
- package/esm2020/lib/sidenav/index.mjs +2 -2
- package/esm2020/lib/sidenav/sidenav-shim.directive.mjs +54 -54
- package/esm2020/lib/sidenav/sidenav.module.mjs +23 -23
- package/esm2020/lib/spinner/index.mjs +2 -2
- package/esm2020/lib/spinner/spinner-activity.directive.mjs +46 -46
- package/esm2020/lib/spinner/spinner.component.mjs +34 -34
- package/esm2020/lib/spinner/spinner.module.mjs +20 -20
- package/esm2020/lib/stop-propagation/index.mjs +2 -2
- package/esm2020/lib/stop-propagation/stop-drop-propagation.directive.mjs +21 -21
- package/esm2020/lib/stop-propagation/stop-propagation.directive.mjs +20 -20
- package/esm2020/lib/stop-propagation/stop-propagation.module.mjs +24 -24
- package/esm2020/lib/table/index.mjs +6 -6
- package/esm2020/lib/table/table-action-color.enum.mjs +7 -7
- package/esm2020/lib/table/table-database.mjs +28 -28
- package/esm2020/lib/table/table-datasource.mjs +60 -60
- package/esm2020/lib/table/table-model.interface.mjs +1 -1
- package/esm2020/lib/table/table.component.mjs +296 -296
- package/esm2020/lib/table/table.module.mjs +66 -66
- package/esm2020/lib/tool/index.mjs +3 -3
- package/esm2020/lib/tool/shared/index.mjs +6 -6
- package/esm2020/lib/tool/shared/tool-component.mjs +8 -8
- package/esm2020/lib/tool/shared/tool.interface.mjs +1 -1
- package/esm2020/lib/tool/shared/tool.service.mjs +43 -43
- package/esm2020/lib/tool/shared/toolbox.enums.mjs +6 -6
- package/esm2020/lib/tool/shared/toolbox.mjs +178 -178
- package/esm2020/lib/tool/tool.module.mjs +31 -31
- package/esm2020/lib/tool/toolbox/toolbox.animation.mjs +9 -9
- package/esm2020/lib/tool/toolbox/toolbox.component.mjs +254 -254
- package/esm2020/lib/tool/toolbox/toolbox.module.mjs +35 -35
- package/esm2020/lib/widget/index.mjs +3 -3
- package/esm2020/lib/widget/shared/index.mjs +4 -4
- package/esm2020/lib/widget/shared/widget.interfaces.mjs +2 -2
- package/esm2020/lib/widget/shared/widget.mjs +4 -4
- package/esm2020/lib/widget/shared/widget.service.mjs +19 -19
- package/esm2020/lib/widget/widget-outlet/widget-outlet.component.mjs +115 -115
- package/esm2020/lib/widget/widget-outlet/widget-outlet.module.mjs +31 -31
- package/esm2020/lib/widget/widget.module.mjs +31 -31
- package/esm2020/lib/workspace/index.mjs +3 -3
- package/esm2020/lib/workspace/shared/index.mjs +4 -4
- package/esm2020/lib/workspace/shared/store.mjs +39 -39
- package/esm2020/lib/workspace/shared/workspace.interfaces.mjs +1 -1
- package/esm2020/lib/workspace/shared/workspace.mjs +116 -116
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.component.mjs +50 -50
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.module.mjs +31 -31
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +87 -87
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +31 -31
- package/esm2020/lib/workspace/workspace.module.mjs +26 -26
- package/esm2020/public_api.mjs +73 -73
- package/fesm2015/igo2-common.mjs +10016 -10016
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +9319 -9319
- package/fesm2020/igo2-common.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/action/action.module.d.ts +8 -8
- package/lib/action/actionbar/actionbar-item.component.d.ts +78 -78
- package/lib/action/actionbar/actionbar.component.d.ts +146 -146
- package/lib/action/actionbar/actionbar.module.d.ts +20 -20
- package/lib/action/index.d.ts +2 -2
- package/lib/action/shared/action.enums.d.ts +5 -5
- package/lib/action/shared/action.interfaces.d.ts +17 -17
- package/lib/action/shared/index.d.ts +3 -3
- package/lib/action/shared/store.d.ts +8 -8
- package/lib/backdrop/backdrop.component.d.ts +9 -9
- package/lib/backdrop/backdrop.module.d.ts +10 -10
- package/lib/backdrop/index.d.ts +1 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +36 -36
- package/lib/badge-icon/badge-icon.module.d.ts +11 -11
- package/lib/badge-icon/index.d.ts +1 -1
- package/lib/clickout/clickout.directive.d.ts +10 -10
- package/lib/clickout/clickout.module.d.ts +9 -9
- package/lib/clickout/index.d.ts +1 -1
- package/lib/clone/clone.module.d.ts +9 -9
- package/lib/clone/clone.pipe.d.ts +7 -7
- package/lib/clone/index.d.ts +1 -1
- package/lib/collapsible/collapse.directive.d.ts +19 -19
- package/lib/collapsible/collapsible.component.d.ts +13 -13
- package/lib/collapsible/collapsible.module.d.ts +12 -12
- package/lib/collapsible/index.d.ts +2 -2
- package/lib/confirm-dialog/confirm-dialog.component.d.ts +9 -9
- package/lib/confirm-dialog/confirm-dialog.module.d.ts +12 -12
- package/lib/confirm-dialog/confirm-dialog.service.d.ts +12 -12
- package/lib/confirm-dialog/index.d.ts +2 -2
- package/lib/context-menu/context-menu.directive.d.ts +21 -21
- package/lib/context-menu/context-menu.module.d.ts +10 -10
- package/lib/context-menu/index.d.ts +2 -2
- package/lib/context-menu/long-press.directive.d.ts +20 -20
- package/lib/custom-html/custom-html.component.d.ts +9 -9
- package/lib/custom-html/custom-html.module.d.ts +16 -16
- package/lib/custom-html/custom-html.pipe.d.ts +10 -10
- package/lib/custom-html/index.d.ts +2 -2
- package/lib/dom/dom.interfaces.d.ts +10 -10
- package/lib/dom/dom.module.d.ts +8 -8
- package/lib/dom/dom.service.d.ts +10 -10
- package/lib/dom/index.d.ts +2 -2
- package/lib/drag-drop/drag-drop.directive.d.ts +14 -14
- package/lib/drag-drop/drag-drop.module.d.ts +9 -9
- package/lib/drag-drop/index.d.ts +1 -1
- package/lib/dynamic-component/dynamic-component.module.d.ts +8 -8
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +70 -70
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +11 -11
- package/lib/dynamic-component/index.d.ts +2 -2
- package/lib/dynamic-component/shared/dynamic-component.d.ts +88 -88
- package/lib/dynamic-component/shared/dynamic-component.interfaces.d.ts +3 -3
- package/lib/dynamic-component/shared/dynamic-component.service.d.ts +18 -18
- package/lib/dynamic-component/shared/index.d.ts +3 -3
- package/lib/entity/entity-selector/entity-selector.component.d.ts +92 -92
- package/lib/entity/entity-selector/entity-selector.module.d.ts +13 -13
- package/lib/entity/entity-table/entity-table-row.directive.d.ts +69 -69
- package/lib/entity/entity-table/entity-table.component.d.ts +333 -333
- package/lib/entity/entity-table/entity-table.module.d.ts +29 -29
- package/lib/entity/entity-table-paginator/entity-table-paginator.component.d.ts +49 -49
- package/lib/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +8 -8
- package/lib/entity/entity-table-paginator/entity-table-paginator.module.d.ts +11 -11
- package/lib/entity/entity.module.d.ts +10 -10
- package/lib/entity/index.d.ts +5 -5
- package/lib/entity/shared/entity.enums.d.ts +23 -23
- package/lib/entity/shared/entity.interfaces.d.ts +114 -114
- package/lib/entity/shared/entity.utils.d.ts +49 -49
- package/lib/entity/shared/index.d.ts +9 -9
- package/lib/entity/shared/state.d.ts +103 -103
- package/lib/entity/shared/store.d.ts +176 -176
- package/lib/entity/shared/strategies/filter-custom-function.d.ts +51 -51
- package/lib/entity/shared/strategies/filter-selection.d.ts +48 -48
- package/lib/entity/shared/strategies/index.d.ts +3 -3
- package/lib/entity/shared/strategies/strategy.d.ts +56 -56
- package/lib/entity/shared/transaction.d.ts +168 -168
- package/lib/entity/shared/view.d.ts +193 -193
- package/lib/entity/shared/watcher.d.ts +72 -72
- package/lib/flexible/flexible.component.d.ts +41 -41
- package/lib/flexible/flexible.module.d.ts +9 -9
- package/lib/flexible/flexible.type.d.ts +2 -2
- package/lib/flexible/index.d.ts +2 -2
- package/lib/form/form/form.component.d.ts +53 -53
- package/lib/form/form/form.module.d.ts +12 -12
- package/lib/form/form-field/form-field-select.component.d.ts +48 -48
- package/lib/form/form-field/form-field-text.component.d.ts +41 -41
- package/lib/form/form-field/form-field-textarea.component.d.ts +41 -41
- package/lib/form/form-field/form-field.component.d.ts +34 -34
- package/lib/form/form-field/form-field.module.d.ts +21 -21
- package/lib/form/form-field/index.d.ts +4 -4
- package/lib/form/form-group/form-group.component.d.ts +49 -49
- package/lib/form/form-group/form-group.module.d.ts +14 -14
- package/lib/form/form.module.d.ts +13 -13
- package/lib/form/index.d.ts +4 -4
- package/lib/form/shared/form-field-component.d.ts +1 -1
- package/lib/form/shared/form-field.service.d.ts +19 -19
- package/lib/form/shared/form.interfaces.d.ts +57 -57
- package/lib/form/shared/form.service.d.ts +15 -15
- package/lib/form/shared/form.utils.d.ts +11 -11
- package/lib/form/shared/index.d.ts +5 -5
- package/lib/home-button/home-button.component.d.ts +9 -9
- package/lib/home-button/home-button.module.d.ts +15 -15
- package/lib/home-button/index.d.ts +1 -1
- package/lib/image/image-error.directive.d.ts +11 -11
- package/lib/image/image.module.d.ts +10 -10
- package/lib/image/index.d.ts +2 -2
- package/lib/image/secure-image.pipe.d.ts +13 -13
- package/lib/interactive-tour/index.d.ts +4 -4
- package/lib/interactive-tour/interactive-tour.component.d.ts +30 -30
- package/lib/interactive-tour/interactive-tour.interface.d.ts +32 -32
- package/lib/interactive-tour/interactive-tour.loader.d.ts +18 -18
- package/lib/interactive-tour/interactive-tour.module.d.ts +12 -12
- package/lib/interactive-tour/interactive-tour.service.d.ts +29 -29
- package/lib/json-dialog/index.d.ts +2 -2
- package/lib/json-dialog/json-dialog.component.d.ts +13 -13
- package/lib/json-dialog/json-dialog.module.d.ts +13 -13
- package/lib/json-dialog/json-dialog.service.d.ts +10 -10
- package/lib/keyvalue/index.d.ts +1 -1
- package/lib/keyvalue/keyvalue.module.d.ts +9 -9
- package/lib/keyvalue/keyvalue.pipe.d.ts +7 -7
- package/lib/list/index.d.ts +2 -2
- package/lib/list/list-item.directive.d.ts +43 -43
- package/lib/list/list.component.d.ts +51 -51
- package/lib/list/list.module.d.ts +14 -14
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/panel.component.d.ts +10 -10
- package/lib/panel/panel.module.d.ts +8 -8
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav-shim.directive.d.ts +20 -20
- package/lib/sidenav/sidenav.module.d.ts +9 -9
- package/lib/spinner/index.d.ts +2 -2
- package/lib/spinner/spinner-activity.directive.d.ts +32 -32
- package/lib/spinner/spinner.component.d.ts +12 -12
- package/lib/spinner/spinner.module.d.ts +10 -10
- package/lib/stop-propagation/index.d.ts +2 -2
- package/lib/stop-propagation/stop-drop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.module.d.ts +10 -10
- package/lib/table/index.d.ts +5 -5
- package/lib/table/table-action-color.enum.d.ts +5 -5
- package/lib/table/table-database.d.ts +10 -10
- package/lib/table/table-datasource.d.ts +17 -17
- package/lib/table/table-model.interface.d.ts +28 -28
- package/lib/table/table.component.d.ts +40 -40
- package/lib/table/table.module.d.ts +20 -20
- package/lib/tool/index.d.ts +2 -2
- package/lib/tool/shared/index.d.ts +5 -5
- package/lib/tool/shared/tool-component.d.ts +2 -2
- package/lib/tool/shared/tool.interface.d.ts +18 -18
- package/lib/tool/shared/tool.service.d.ts +30 -30
- package/lib/tool/shared/toolbox.d.ts +95 -95
- package/lib/tool/shared/toolbox.enums.d.ts +5 -5
- package/lib/tool/tool.module.d.ts +10 -10
- package/lib/tool/toolbox/toolbox.animation.d.ts +2 -2
- package/lib/tool/toolbox/toolbox.component.d.ts +127 -127
- package/lib/tool/toolbox/toolbox.module.d.ts +13 -13
- package/lib/widget/index.d.ts +2 -2
- package/lib/widget/shared/index.d.ts +3 -3
- package/lib/widget/shared/widget.d.ts +4 -4
- package/lib/widget/shared/widget.interfaces.d.ts +12 -12
- package/lib/widget/shared/widget.service.d.ts +10 -10
- package/lib/widget/widget-outlet/widget-outlet.component.d.ts +71 -71
- package/lib/widget/widget-outlet/widget-outlet.module.d.ts +12 -12
- package/lib/widget/widget.module.d.ts +8 -8
- package/lib/workspace/index.d.ts +3 -3
- package/lib/workspace/shared/index.d.ts +3 -3
- package/lib/workspace/shared/store.d.ts +20 -20
- package/lib/workspace/shared/workspace.d.ts +108 -108
- package/lib/workspace/shared/workspace.interfaces.d.ts +11 -11
- package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +39 -39
- package/lib/workspace/workspace-selector/workspace-selector.module.d.ts +12 -12
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +57 -57
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +12 -12
- package/lib/workspace/workspace.module.d.ts +9 -9
- package/package.json +3 -3
- package/public_api.d.ts +70 -70
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { ReplaySubject } from 'rxjs';
|
|
2
|
-
import { EntityKey, EntityState, EntityStateManagerOptions } from './entity.interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* This class is used to track a store's entities state
|
|
5
|
-
*/
|
|
6
|
-
export declare class EntityStateManager<E extends object, S extends EntityState = EntityState> {
|
|
7
|
-
/**
|
|
8
|
-
* State index
|
|
9
|
-
*/
|
|
10
|
-
readonly index: Map<EntityKey, S>;
|
|
11
|
-
/**
|
|
12
|
-
* Change emitter
|
|
13
|
-
*/
|
|
14
|
-
readonly change$: ReplaySubject<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Method to get an entity's id
|
|
17
|
-
*/
|
|
18
|
-
readonly getKey: (E: any) => EntityKey;
|
|
19
|
-
private store;
|
|
20
|
-
constructor(options?: EntityStateManagerOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Clear state
|
|
23
|
-
*/
|
|
24
|
-
clear(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Get an entity's state
|
|
27
|
-
* @param entity Entity
|
|
28
|
-
* @returns State
|
|
29
|
-
*/
|
|
30
|
-
get(entity: E): S;
|
|
31
|
-
/**
|
|
32
|
-
* Set an entity's state
|
|
33
|
-
* @param entity Entity
|
|
34
|
-
* @param state State
|
|
35
|
-
*/
|
|
36
|
-
set(entity: E, state: S): void;
|
|
37
|
-
/**
|
|
38
|
-
* Set many entitie's state
|
|
39
|
-
* @param entitie Entities
|
|
40
|
-
* @param state State
|
|
41
|
-
*/
|
|
42
|
-
setMany(entities: E[], state: S): void;
|
|
43
|
-
/**
|
|
44
|
-
* Set state of all entities that already have a state. This is not
|
|
45
|
-
* the same as setting the state of all the store's entities.
|
|
46
|
-
* @param state State
|
|
47
|
-
*/
|
|
48
|
-
setAll(state: S): void;
|
|
49
|
-
/**
|
|
50
|
-
* Update an entity's state
|
|
51
|
-
* @param entity Entity
|
|
52
|
-
* @param changes State changes
|
|
53
|
-
*/
|
|
54
|
-
update(entity: E, changes: Partial<S>, exclusive?: boolean): void;
|
|
55
|
-
/**
|
|
56
|
-
* Update many entitie's state
|
|
57
|
-
* @param entitie Entities
|
|
58
|
-
* @param changes State changes
|
|
59
|
-
*/
|
|
60
|
-
updateMany(entities: E[], changes: Partial<S>, exclusive?: boolean): void;
|
|
61
|
-
/**
|
|
62
|
-
* Reversee an entity's state
|
|
63
|
-
* @param entity Entity
|
|
64
|
-
* @param keys State keys to reverse
|
|
65
|
-
*/
|
|
66
|
-
reverse(entity: E, keys: string[]): void;
|
|
67
|
-
/**
|
|
68
|
-
* Reverse many entitie's state
|
|
69
|
-
* @param entitie Entities
|
|
70
|
-
* @param keys State keys to reverse
|
|
71
|
-
*/
|
|
72
|
-
reverseMany(entities: E[], keys: string[]): void;
|
|
73
|
-
/**
|
|
74
|
-
* Update state of all entities that already have a state. This is not
|
|
75
|
-
* the same as updating the state of all the store's entities.
|
|
76
|
-
* @param changes State
|
|
77
|
-
*/
|
|
78
|
-
updateAll(changes: Partial<S>): void;
|
|
79
|
-
/**
|
|
80
|
-
* When some state changes are flagged as 'exclusive', reverse
|
|
81
|
-
* the state of all other entities. Changes are reversable when
|
|
82
|
-
* they are boolean.
|
|
83
|
-
* @param entitie Entities
|
|
84
|
-
* @param changes State changes
|
|
85
|
-
*/
|
|
86
|
-
private updateManyExclusive;
|
|
87
|
-
/**
|
|
88
|
-
* Compute a 'reversed' version of some state changes.
|
|
89
|
-
* Changes are reversable when they are boolean.
|
|
90
|
-
* @param changes State changes
|
|
91
|
-
* @returns Reversed state changes
|
|
92
|
-
*/
|
|
93
|
-
private reverseChanges;
|
|
94
|
-
/**
|
|
95
|
-
* Return all the keys in that state and in the store it's bound to, if any.
|
|
96
|
-
* @returns Set of keys
|
|
97
|
-
*/
|
|
98
|
-
private getAllKeys;
|
|
99
|
-
/**
|
|
100
|
-
* Emit 'change' event
|
|
101
|
-
*/
|
|
102
|
-
private next;
|
|
103
|
-
}
|
|
1
|
+
import { ReplaySubject } from 'rxjs';
|
|
2
|
+
import { EntityKey, EntityState, EntityStateManagerOptions } from './entity.interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* This class is used to track a store's entities state
|
|
5
|
+
*/
|
|
6
|
+
export declare class EntityStateManager<E extends object, S extends EntityState = EntityState> {
|
|
7
|
+
/**
|
|
8
|
+
* State index
|
|
9
|
+
*/
|
|
10
|
+
readonly index: Map<EntityKey, S>;
|
|
11
|
+
/**
|
|
12
|
+
* Change emitter
|
|
13
|
+
*/
|
|
14
|
+
readonly change$: ReplaySubject<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Method to get an entity's id
|
|
17
|
+
*/
|
|
18
|
+
readonly getKey: (E: any) => EntityKey;
|
|
19
|
+
private store;
|
|
20
|
+
constructor(options?: EntityStateManagerOptions);
|
|
21
|
+
/**
|
|
22
|
+
* Clear state
|
|
23
|
+
*/
|
|
24
|
+
clear(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Get an entity's state
|
|
27
|
+
* @param entity Entity
|
|
28
|
+
* @returns State
|
|
29
|
+
*/
|
|
30
|
+
get(entity: E): S;
|
|
31
|
+
/**
|
|
32
|
+
* Set an entity's state
|
|
33
|
+
* @param entity Entity
|
|
34
|
+
* @param state State
|
|
35
|
+
*/
|
|
36
|
+
set(entity: E, state: S): void;
|
|
37
|
+
/**
|
|
38
|
+
* Set many entitie's state
|
|
39
|
+
* @param entitie Entities
|
|
40
|
+
* @param state State
|
|
41
|
+
*/
|
|
42
|
+
setMany(entities: E[], state: S): void;
|
|
43
|
+
/**
|
|
44
|
+
* Set state of all entities that already have a state. This is not
|
|
45
|
+
* the same as setting the state of all the store's entities.
|
|
46
|
+
* @param state State
|
|
47
|
+
*/
|
|
48
|
+
setAll(state: S): void;
|
|
49
|
+
/**
|
|
50
|
+
* Update an entity's state
|
|
51
|
+
* @param entity Entity
|
|
52
|
+
* @param changes State changes
|
|
53
|
+
*/
|
|
54
|
+
update(entity: E, changes: Partial<S>, exclusive?: boolean): void;
|
|
55
|
+
/**
|
|
56
|
+
* Update many entitie's state
|
|
57
|
+
* @param entitie Entities
|
|
58
|
+
* @param changes State changes
|
|
59
|
+
*/
|
|
60
|
+
updateMany(entities: E[], changes: Partial<S>, exclusive?: boolean): void;
|
|
61
|
+
/**
|
|
62
|
+
* Reversee an entity's state
|
|
63
|
+
* @param entity Entity
|
|
64
|
+
* @param keys State keys to reverse
|
|
65
|
+
*/
|
|
66
|
+
reverse(entity: E, keys: string[]): void;
|
|
67
|
+
/**
|
|
68
|
+
* Reverse many entitie's state
|
|
69
|
+
* @param entitie Entities
|
|
70
|
+
* @param keys State keys to reverse
|
|
71
|
+
*/
|
|
72
|
+
reverseMany(entities: E[], keys: string[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* Update state of all entities that already have a state. This is not
|
|
75
|
+
* the same as updating the state of all the store's entities.
|
|
76
|
+
* @param changes State
|
|
77
|
+
*/
|
|
78
|
+
updateAll(changes: Partial<S>): void;
|
|
79
|
+
/**
|
|
80
|
+
* When some state changes are flagged as 'exclusive', reverse
|
|
81
|
+
* the state of all other entities. Changes are reversable when
|
|
82
|
+
* they are boolean.
|
|
83
|
+
* @param entitie Entities
|
|
84
|
+
* @param changes State changes
|
|
85
|
+
*/
|
|
86
|
+
private updateManyExclusive;
|
|
87
|
+
/**
|
|
88
|
+
* Compute a 'reversed' version of some state changes.
|
|
89
|
+
* Changes are reversable when they are boolean.
|
|
90
|
+
* @param changes State changes
|
|
91
|
+
* @returns Reversed state changes
|
|
92
|
+
*/
|
|
93
|
+
private reverseChanges;
|
|
94
|
+
/**
|
|
95
|
+
* Return all the keys in that state and in the store it's bound to, if any.
|
|
96
|
+
* @returns Set of keys
|
|
97
|
+
*/
|
|
98
|
+
private getAllKeys;
|
|
99
|
+
/**
|
|
100
|
+
* Emit 'change' event
|
|
101
|
+
*/
|
|
102
|
+
private next;
|
|
103
|
+
}
|
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { EntityStateManager } from './state';
|
|
3
|
-
import { EntityView } from './view';
|
|
4
|
-
import { EntityKey, EntityState, EntityRecord, EntityStoreOptions } from './entity.interfaces';
|
|
5
|
-
import { EntityStoreStrategy } from './strategies/strategy';
|
|
6
|
-
/**
|
|
7
|
-
* An entity store class holds any number of entities
|
|
8
|
-
* as well as their state. It can be observed, filtered and sorted and
|
|
9
|
-
* provides methods to insert, update or delete entities.
|
|
10
|
-
*/
|
|
11
|
-
export declare class EntityStore<E extends object = object, S extends EntityState = EntityState> {
|
|
12
|
-
/**
|
|
13
|
-
* Observable of the raw entities
|
|
14
|
-
*/
|
|
15
|
-
readonly entities$: BehaviorSubject<E[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Number of entities
|
|
18
|
-
*/
|
|
19
|
-
readonly count$: BehaviorSubject<number>;
|
|
20
|
-
get count(): number;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the store is empty
|
|
23
|
-
*/
|
|
24
|
-
readonly empty$: BehaviorSubject<boolean>;
|
|
25
|
-
get empty(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Entity store state
|
|
28
|
-
*/
|
|
29
|
-
readonly state: EntityStateManager<E, S>;
|
|
30
|
-
/**
|
|
31
|
-
* View of all the entities
|
|
32
|
-
*/
|
|
33
|
-
readonly view: EntityView<E>;
|
|
34
|
-
/**
|
|
35
|
-
* View of all the entities and their state
|
|
36
|
-
*/
|
|
37
|
-
readonly stateView: EntityView<E, EntityRecord<E, S>>;
|
|
38
|
-
/**
|
|
39
|
-
* Method to get an entity's id
|
|
40
|
-
*/
|
|
41
|
-
readonly getKey: (E: any) => EntityKey;
|
|
42
|
-
/**
|
|
43
|
-
* Method to get an entity's named property
|
|
44
|
-
*/
|
|
45
|
-
readonly getProperty: (E: any, prop: string) => any;
|
|
46
|
-
/**
|
|
47
|
-
* Store index
|
|
48
|
-
*/
|
|
49
|
-
get index(): Map<EntityKey, E>;
|
|
50
|
-
private _index;
|
|
51
|
-
/**
|
|
52
|
-
* Store index
|
|
53
|
-
*/
|
|
54
|
-
get pristine(): boolean;
|
|
55
|
-
private _pristine;
|
|
56
|
-
/**
|
|
57
|
-
* Strategies
|
|
58
|
-
*/
|
|
59
|
-
private strategies;
|
|
60
|
-
constructor(entities: E[], options?: EntityStoreOptions);
|
|
61
|
-
/**
|
|
62
|
-
* Get an entity from the store by key
|
|
63
|
-
* @param key Key
|
|
64
|
-
* @returns Entity
|
|
65
|
-
*/
|
|
66
|
-
get(key: EntityKey): E;
|
|
67
|
-
/**
|
|
68
|
-
* Get all entities in the store
|
|
69
|
-
* @returns Array of entities
|
|
70
|
-
*/
|
|
71
|
-
all(): E[];
|
|
72
|
-
/**
|
|
73
|
-
* Set this store's entities
|
|
74
|
-
* @param entities Entities
|
|
75
|
-
*/
|
|
76
|
-
load(entities: E[], pristine?: boolean): void;
|
|
77
|
-
/**
|
|
78
|
-
* Clear the store's entities but keep the state and views intact.
|
|
79
|
-
* Views won't return any data but future data will be subject to the
|
|
80
|
-
* current views filter and sort
|
|
81
|
-
*/
|
|
82
|
-
softClear(): void;
|
|
83
|
-
/**
|
|
84
|
-
* Clear the store's entities, state and views
|
|
85
|
-
*/
|
|
86
|
-
clear(): void;
|
|
87
|
-
destroy(): void;
|
|
88
|
-
/**
|
|
89
|
-
* Insert an entity into the store
|
|
90
|
-
* @param entity Entity
|
|
91
|
-
*/
|
|
92
|
-
insert(entity: E): void;
|
|
93
|
-
/**
|
|
94
|
-
* Insert many entities into the store
|
|
95
|
-
* @param entities Entities
|
|
96
|
-
*/
|
|
97
|
-
insertMany(entities: E[]): void;
|
|
98
|
-
/**
|
|
99
|
-
* Update or insert an entity into the store
|
|
100
|
-
* @param entity Entity
|
|
101
|
-
*/
|
|
102
|
-
update(entity: E): void;
|
|
103
|
-
/**
|
|
104
|
-
* Update or insert many entities into the store
|
|
105
|
-
* @param entities Entities
|
|
106
|
-
*/
|
|
107
|
-
updateMany(entities: E[]): void;
|
|
108
|
-
/**
|
|
109
|
-
* Delete an entity from the store
|
|
110
|
-
* @param entity Entity
|
|
111
|
-
*/
|
|
112
|
-
delete(entity: E): void;
|
|
113
|
-
/**
|
|
114
|
-
* Delete many entities from the store
|
|
115
|
-
* @param entities Entities
|
|
116
|
-
*/
|
|
117
|
-
deleteMany(entities: E[]): void;
|
|
118
|
-
/**
|
|
119
|
-
* Add a strategy to this store
|
|
120
|
-
* @param strategy Entity store strategy
|
|
121
|
-
* @returns Entity store
|
|
122
|
-
*/
|
|
123
|
-
addStrategy(strategy: EntityStoreStrategy, activate?: boolean): EntityStore;
|
|
124
|
-
/**
|
|
125
|
-
* Remove a strategy from this store
|
|
126
|
-
* @param strategy Entity store strategy
|
|
127
|
-
* @returns Entity store
|
|
128
|
-
*/
|
|
129
|
-
removeStrategy(strategy: EntityStoreStrategy): EntityStore;
|
|
130
|
-
/**
|
|
131
|
-
* Return strategies of a given type
|
|
132
|
-
* @param type Entity store strategy class
|
|
133
|
-
* @returns Strategies
|
|
134
|
-
*/
|
|
135
|
-
getStrategyOfType(type: typeof EntityStoreStrategy): EntityStoreStrategy;
|
|
136
|
-
/**
|
|
137
|
-
* Activate strategies of a given type
|
|
138
|
-
* @param type Entity store strategy class
|
|
139
|
-
*/
|
|
140
|
-
activateStrategyOfType(type: typeof EntityStoreStrategy): void;
|
|
141
|
-
/**
|
|
142
|
-
* Deactivate strategies of a given type
|
|
143
|
-
* @param type Entity store strategy class
|
|
144
|
-
*/
|
|
145
|
-
deactivateStrategyOfType(type: typeof EntityStoreStrategy): void;
|
|
146
|
-
/**
|
|
147
|
-
* Generate a complete index of all the entities
|
|
148
|
-
* @param entities Entities
|
|
149
|
-
* @returns Index
|
|
150
|
-
*/
|
|
151
|
-
private generateIndex;
|
|
152
|
-
/**
|
|
153
|
-
* Push the index's entities into the entities$ observable
|
|
154
|
-
*/
|
|
155
|
-
private next;
|
|
156
|
-
/**
|
|
157
|
-
* Update the store's count and empty
|
|
158
|
-
*/
|
|
159
|
-
private updateCount;
|
|
160
|
-
/**
|
|
161
|
-
* Create the entity state manager
|
|
162
|
-
* @returns EntityStateManager
|
|
163
|
-
*/
|
|
164
|
-
private createStateManager;
|
|
165
|
-
/**
|
|
166
|
-
* Create the data view
|
|
167
|
-
* @returns EntityView<E>
|
|
168
|
-
*/
|
|
169
|
-
private createDataView;
|
|
170
|
-
/**
|
|
171
|
-
* Create the state view
|
|
172
|
-
* @returns EntityView<EntityRecord<E>>
|
|
173
|
-
*/
|
|
174
|
-
private createStateView;
|
|
175
|
-
private statesAreTheSame;
|
|
176
|
-
}
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { EntityStateManager } from './state';
|
|
3
|
+
import { EntityView } from './view';
|
|
4
|
+
import { EntityKey, EntityState, EntityRecord, EntityStoreOptions } from './entity.interfaces';
|
|
5
|
+
import { EntityStoreStrategy } from './strategies/strategy';
|
|
6
|
+
/**
|
|
7
|
+
* An entity store class holds any number of entities
|
|
8
|
+
* as well as their state. It can be observed, filtered and sorted and
|
|
9
|
+
* provides methods to insert, update or delete entities.
|
|
10
|
+
*/
|
|
11
|
+
export declare class EntityStore<E extends object = object, S extends EntityState = EntityState> {
|
|
12
|
+
/**
|
|
13
|
+
* Observable of the raw entities
|
|
14
|
+
*/
|
|
15
|
+
readonly entities$: BehaviorSubject<E[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Number of entities
|
|
18
|
+
*/
|
|
19
|
+
readonly count$: BehaviorSubject<number>;
|
|
20
|
+
get count(): number;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the store is empty
|
|
23
|
+
*/
|
|
24
|
+
readonly empty$: BehaviorSubject<boolean>;
|
|
25
|
+
get empty(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Entity store state
|
|
28
|
+
*/
|
|
29
|
+
readonly state: EntityStateManager<E, S>;
|
|
30
|
+
/**
|
|
31
|
+
* View of all the entities
|
|
32
|
+
*/
|
|
33
|
+
readonly view: EntityView<E>;
|
|
34
|
+
/**
|
|
35
|
+
* View of all the entities and their state
|
|
36
|
+
*/
|
|
37
|
+
readonly stateView: EntityView<E, EntityRecord<E, S>>;
|
|
38
|
+
/**
|
|
39
|
+
* Method to get an entity's id
|
|
40
|
+
*/
|
|
41
|
+
readonly getKey: (E: any) => EntityKey;
|
|
42
|
+
/**
|
|
43
|
+
* Method to get an entity's named property
|
|
44
|
+
*/
|
|
45
|
+
readonly getProperty: (E: any, prop: string) => any;
|
|
46
|
+
/**
|
|
47
|
+
* Store index
|
|
48
|
+
*/
|
|
49
|
+
get index(): Map<EntityKey, E>;
|
|
50
|
+
private _index;
|
|
51
|
+
/**
|
|
52
|
+
* Store index
|
|
53
|
+
*/
|
|
54
|
+
get pristine(): boolean;
|
|
55
|
+
private _pristine;
|
|
56
|
+
/**
|
|
57
|
+
* Strategies
|
|
58
|
+
*/
|
|
59
|
+
private strategies;
|
|
60
|
+
constructor(entities: E[], options?: EntityStoreOptions);
|
|
61
|
+
/**
|
|
62
|
+
* Get an entity from the store by key
|
|
63
|
+
* @param key Key
|
|
64
|
+
* @returns Entity
|
|
65
|
+
*/
|
|
66
|
+
get(key: EntityKey): E;
|
|
67
|
+
/**
|
|
68
|
+
* Get all entities in the store
|
|
69
|
+
* @returns Array of entities
|
|
70
|
+
*/
|
|
71
|
+
all(): E[];
|
|
72
|
+
/**
|
|
73
|
+
* Set this store's entities
|
|
74
|
+
* @param entities Entities
|
|
75
|
+
*/
|
|
76
|
+
load(entities: E[], pristine?: boolean): void;
|
|
77
|
+
/**
|
|
78
|
+
* Clear the store's entities but keep the state and views intact.
|
|
79
|
+
* Views won't return any data but future data will be subject to the
|
|
80
|
+
* current views filter and sort
|
|
81
|
+
*/
|
|
82
|
+
softClear(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Clear the store's entities, state and views
|
|
85
|
+
*/
|
|
86
|
+
clear(): void;
|
|
87
|
+
destroy(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Insert an entity into the store
|
|
90
|
+
* @param entity Entity
|
|
91
|
+
*/
|
|
92
|
+
insert(entity: E): void;
|
|
93
|
+
/**
|
|
94
|
+
* Insert many entities into the store
|
|
95
|
+
* @param entities Entities
|
|
96
|
+
*/
|
|
97
|
+
insertMany(entities: E[]): void;
|
|
98
|
+
/**
|
|
99
|
+
* Update or insert an entity into the store
|
|
100
|
+
* @param entity Entity
|
|
101
|
+
*/
|
|
102
|
+
update(entity: E): void;
|
|
103
|
+
/**
|
|
104
|
+
* Update or insert many entities into the store
|
|
105
|
+
* @param entities Entities
|
|
106
|
+
*/
|
|
107
|
+
updateMany(entities: E[]): void;
|
|
108
|
+
/**
|
|
109
|
+
* Delete an entity from the store
|
|
110
|
+
* @param entity Entity
|
|
111
|
+
*/
|
|
112
|
+
delete(entity: E): void;
|
|
113
|
+
/**
|
|
114
|
+
* Delete many entities from the store
|
|
115
|
+
* @param entities Entities
|
|
116
|
+
*/
|
|
117
|
+
deleteMany(entities: E[]): void;
|
|
118
|
+
/**
|
|
119
|
+
* Add a strategy to this store
|
|
120
|
+
* @param strategy Entity store strategy
|
|
121
|
+
* @returns Entity store
|
|
122
|
+
*/
|
|
123
|
+
addStrategy(strategy: EntityStoreStrategy, activate?: boolean): EntityStore;
|
|
124
|
+
/**
|
|
125
|
+
* Remove a strategy from this store
|
|
126
|
+
* @param strategy Entity store strategy
|
|
127
|
+
* @returns Entity store
|
|
128
|
+
*/
|
|
129
|
+
removeStrategy(strategy: EntityStoreStrategy): EntityStore;
|
|
130
|
+
/**
|
|
131
|
+
* Return strategies of a given type
|
|
132
|
+
* @param type Entity store strategy class
|
|
133
|
+
* @returns Strategies
|
|
134
|
+
*/
|
|
135
|
+
getStrategyOfType(type: typeof EntityStoreStrategy): EntityStoreStrategy;
|
|
136
|
+
/**
|
|
137
|
+
* Activate strategies of a given type
|
|
138
|
+
* @param type Entity store strategy class
|
|
139
|
+
*/
|
|
140
|
+
activateStrategyOfType(type: typeof EntityStoreStrategy): void;
|
|
141
|
+
/**
|
|
142
|
+
* Deactivate strategies of a given type
|
|
143
|
+
* @param type Entity store strategy class
|
|
144
|
+
*/
|
|
145
|
+
deactivateStrategyOfType(type: typeof EntityStoreStrategy): void;
|
|
146
|
+
/**
|
|
147
|
+
* Generate a complete index of all the entities
|
|
148
|
+
* @param entities Entities
|
|
149
|
+
* @returns Index
|
|
150
|
+
*/
|
|
151
|
+
private generateIndex;
|
|
152
|
+
/**
|
|
153
|
+
* Push the index's entities into the entities$ observable
|
|
154
|
+
*/
|
|
155
|
+
private next;
|
|
156
|
+
/**
|
|
157
|
+
* Update the store's count and empty
|
|
158
|
+
*/
|
|
159
|
+
private updateCount;
|
|
160
|
+
/**
|
|
161
|
+
* Create the entity state manager
|
|
162
|
+
* @returns EntityStateManager
|
|
163
|
+
*/
|
|
164
|
+
private createStateManager;
|
|
165
|
+
/**
|
|
166
|
+
* Create the data view
|
|
167
|
+
* @returns EntityView<E>
|
|
168
|
+
*/
|
|
169
|
+
private createDataView;
|
|
170
|
+
/**
|
|
171
|
+
* Create the state view
|
|
172
|
+
* @returns EntityView<EntityRecord<E>>
|
|
173
|
+
*/
|
|
174
|
+
private createStateView;
|
|
175
|
+
private statesAreTheSame;
|
|
176
|
+
}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { EntityStoreStrategyFuncOptions } from '../entity.interfaces';
|
|
2
|
-
import { EntityStore } from '../store';
|
|
3
|
-
import { EntityStoreStrategy } from './strategy';
|
|
4
|
-
/**
|
|
5
|
-
* When active, this strategy filters a store's stateView to return
|
|
6
|
-
* selected entities only.
|
|
7
|
-
*/
|
|
8
|
-
export declare class EntityStoreFilterCustomFuncStrategy extends EntityStoreStrategy {
|
|
9
|
-
protected options: EntityStoreStrategyFuncOptions;
|
|
10
|
-
constructor(options: EntityStoreStrategyFuncOptions);
|
|
11
|
-
/**
|
|
12
|
-
* Store / filter ids map
|
|
13
|
-
*/
|
|
14
|
-
private filters;
|
|
15
|
-
/**
|
|
16
|
-
* Bind this strategy to a store and start filtering it
|
|
17
|
-
* @param store Entity store
|
|
18
|
-
*/
|
|
19
|
-
bindStore(store: EntityStore): void;
|
|
20
|
-
/**
|
|
21
|
-
* Unbind this strategy from a store and stop filtering it
|
|
22
|
-
* @param store Entity store
|
|
23
|
-
*/
|
|
24
|
-
unbindStore(store: EntityStore): void;
|
|
25
|
-
/**
|
|
26
|
-
* Start filtering all stores
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
protected doActivate(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Stop filtering all stores
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
protected doDeactivate(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Filter all stores
|
|
37
|
-
*/
|
|
38
|
-
private filterAll;
|
|
39
|
-
/**
|
|
40
|
-
* Unfilter all stores
|
|
41
|
-
*/
|
|
42
|
-
private unfilterAll;
|
|
43
|
-
/**
|
|
44
|
-
* Filter a store and add it to the filters map
|
|
45
|
-
*/
|
|
46
|
-
private filterStore;
|
|
47
|
-
/**
|
|
48
|
-
* Unfilter a store and delete it from the filters map
|
|
49
|
-
*/
|
|
50
|
-
private unfilterStore;
|
|
51
|
-
}
|
|
1
|
+
import { EntityStoreStrategyFuncOptions } from '../entity.interfaces';
|
|
2
|
+
import { EntityStore } from '../store';
|
|
3
|
+
import { EntityStoreStrategy } from './strategy';
|
|
4
|
+
/**
|
|
5
|
+
* When active, this strategy filters a store's stateView to return
|
|
6
|
+
* selected entities only.
|
|
7
|
+
*/
|
|
8
|
+
export declare class EntityStoreFilterCustomFuncStrategy extends EntityStoreStrategy {
|
|
9
|
+
protected options: EntityStoreStrategyFuncOptions;
|
|
10
|
+
constructor(options: EntityStoreStrategyFuncOptions);
|
|
11
|
+
/**
|
|
12
|
+
* Store / filter ids map
|
|
13
|
+
*/
|
|
14
|
+
private filters;
|
|
15
|
+
/**
|
|
16
|
+
* Bind this strategy to a store and start filtering it
|
|
17
|
+
* @param store Entity store
|
|
18
|
+
*/
|
|
19
|
+
bindStore(store: EntityStore): void;
|
|
20
|
+
/**
|
|
21
|
+
* Unbind this strategy from a store and stop filtering it
|
|
22
|
+
* @param store Entity store
|
|
23
|
+
*/
|
|
24
|
+
unbindStore(store: EntityStore): void;
|
|
25
|
+
/**
|
|
26
|
+
* Start filtering all stores
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
protected doActivate(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Stop filtering all stores
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
protected doDeactivate(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Filter all stores
|
|
37
|
+
*/
|
|
38
|
+
private filterAll;
|
|
39
|
+
/**
|
|
40
|
+
* Unfilter all stores
|
|
41
|
+
*/
|
|
42
|
+
private unfilterAll;
|
|
43
|
+
/**
|
|
44
|
+
* Filter a store and add it to the filters map
|
|
45
|
+
*/
|
|
46
|
+
private filterStore;
|
|
47
|
+
/**
|
|
48
|
+
* Unfilter a store and delete it from the filters map
|
|
49
|
+
*/
|
|
50
|
+
private unfilterStore;
|
|
51
|
+
}
|