@igo2/common 1.14.1 → 1.14.3
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 +2 -2
- package/esm2020/lib/action/shared/action.enums.mjs +6 -6
- package/esm2020/lib/action/shared/action.interfaces.mjs +1 -1
- package/esm2020/lib/action/shared/index.mjs +3 -3
- 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 +1 -1
- package/esm2020/lib/badge-icon/badge-icon.directive.mjs +141 -125
- package/esm2020/lib/badge-icon/badge-icon.module.mjs +25 -25
- package/esm2020/lib/badge-icon/index.mjs +1 -1
- package/esm2020/lib/clickout/clickout.directive.mjs +31 -31
- package/esm2020/lib/clickout/clickout.module.mjs +23 -23
- package/esm2020/lib/clickout/index.mjs +1 -1
- package/esm2020/lib/clone/clone.module.mjs +23 -23
- package/esm2020/lib/clone/clone.pipe.mjs +23 -23
- package/esm2020/lib/clone/index.mjs +1 -1
- 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 +21 -21
- 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 +62 -62
- package/esm2020/lib/custom-html/custom-html.component.mjs +27 -27
- 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 +1 -1
- package/esm2020/lib/dom/dom.module.mjs +22 -22
- package/esm2020/lib/dom/dom.service.mjs +29 -29
- package/esm2020/lib/dom/index.mjs +2 -2
- 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 +1 -1
- package/esm2020/lib/dynamic-component/dynamic-component.module.mjs +30 -30
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +121 -121
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +27 -27
- package/esm2020/lib/dynamic-component/index.mjs +2 -2
- package/esm2020/lib/dynamic-component/shared/dynamic-component.interfaces.mjs +1 -1
- 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 +3 -3
- 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 +1368 -1368
- 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 +27 -27
- 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 +9 -9
- 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 +3 -3
- 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 +1 -1
- package/esm2020/lib/flexible/index.mjs +2 -2
- 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 +6 -6
- 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 +5 -5
- 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 +1 -1
- 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 +4 -4
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- package/esm2020/lib/panel/panel.component.mjs +58 -58
- package/esm2020/lib/panel/panel.module.mjs +18 -18
- package/esm2020/lib/sidenav/index.mjs +1 -1
- 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 +5 -5
- package/esm2020/lib/table/table-action-color.enum.mjs +6 -6
- package/esm2020/lib/table/table-database.mjs +27 -27
- 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 +2 -2
- package/esm2020/lib/tool/shared/index.mjs +5 -5
- 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 +42 -42
- 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 +2 -2
- package/esm2020/lib/widget/shared/index.mjs +3 -3
- package/esm2020/lib/widget/shared/widget.interfaces.mjs +1 -1
- package/esm2020/lib/widget/shared/widget.mjs +3 -3
- 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 +3 -3
- 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 +10003 -9987
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +9306 -9290
- 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 -32
- 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 +10 -10
- 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 +327 -327
- 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,117 +1,117 @@
|
|
|
1
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
-
/**
|
|
3
|
-
* This class is responsible of managing the relations between
|
|
4
|
-
* entities and the actions that consume them. It also defines an
|
|
5
|
-
* entity table template that may be used by an entity table component.
|
|
6
|
-
*/
|
|
7
|
-
export class Workspace {
|
|
8
|
-
constructor(options) {
|
|
9
|
-
this.options = options;
|
|
10
|
-
/**
|
|
11
|
-
* Observable of the selected widget
|
|
12
|
-
*/
|
|
13
|
-
this.widget$ = new BehaviorSubject(undefined);
|
|
14
|
-
/**
|
|
15
|
-
* Observable of the selected widget's inputs
|
|
16
|
-
*/
|
|
17
|
-
this.widgetInputs$ = new BehaviorSubject({});
|
|
18
|
-
/**
|
|
19
|
-
* Observable of the selected widget's subscribers
|
|
20
|
-
*/
|
|
21
|
-
this.widgetSubscribers$ = new BehaviorSubject({});
|
|
22
|
-
/**
|
|
23
|
-
* State change that trigger an update of the actions availability
|
|
24
|
-
*/
|
|
25
|
-
this.change = new Subject();
|
|
26
|
-
this.active$ = new BehaviorSubject(false);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Workspace id
|
|
30
|
-
*/
|
|
31
|
-
get id() { return this.options.id; }
|
|
32
|
-
/**
|
|
33
|
-
* Workspace title
|
|
34
|
-
*/
|
|
35
|
-
get title() { return this.options.title; }
|
|
36
|
-
/**
|
|
37
|
-
* Workspace title
|
|
38
|
-
*/
|
|
39
|
-
get meta() { return this.options.meta || {}; }
|
|
40
|
-
/**
|
|
41
|
-
* Entities store
|
|
42
|
-
*/
|
|
43
|
-
get entityStore() { return this.options.entityStore; }
|
|
44
|
-
/**
|
|
45
|
-
* Actions store (some actions activate a widget)
|
|
46
|
-
*/
|
|
47
|
-
get actionStore() { return this.options.actionStore; }
|
|
48
|
-
/**
|
|
49
|
-
* Selected widget
|
|
50
|
-
*/
|
|
51
|
-
get widget() { return this.widget$.value; }
|
|
52
|
-
/**
|
|
53
|
-
* Whether a widget is selected
|
|
54
|
-
*/
|
|
55
|
-
get hasWidget() { return this.widget !== undefined; }
|
|
56
|
-
/**
|
|
57
|
-
* Whether this strategy is active
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
get active() { return this.active$.value; }
|
|
61
|
-
/**
|
|
62
|
-
* Activate the workspace. By doing that, the workspace will observe
|
|
63
|
-
* the selected entity (from the store) and update the actions availability.
|
|
64
|
-
* For example, some actions require an entity to be selected.
|
|
65
|
-
*/
|
|
66
|
-
activate() {
|
|
67
|
-
if (this.active === true) {
|
|
68
|
-
this.deactivate();
|
|
69
|
-
}
|
|
70
|
-
this.active$.next(true);
|
|
71
|
-
if (this.entityStore !== undefined) {
|
|
72
|
-
this.entities$$ = this.entityStore.stateView.all$()
|
|
73
|
-
.subscribe(() => this.onStateChange());
|
|
74
|
-
}
|
|
75
|
-
this.change.next();
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Deactivate the workspace. Unsubcribe to the selected entity.
|
|
79
|
-
*/
|
|
80
|
-
deactivate() {
|
|
81
|
-
this.active$.next(false);
|
|
82
|
-
this.deactivateWidget();
|
|
83
|
-
if (this.entities$$ !== undefined) {
|
|
84
|
-
this.entities$$.unsubscribe();
|
|
85
|
-
}
|
|
86
|
-
if (this.change$ !== undefined) {
|
|
87
|
-
this.change$.unsubscribe();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Activate a widget. In itself, activating a widget doesn't render it but,
|
|
92
|
-
* if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will
|
|
93
|
-
* show up.
|
|
94
|
-
* @param widget Widget
|
|
95
|
-
* @param inputs Inputs the widget will receive
|
|
96
|
-
*/
|
|
97
|
-
activateWidget(widget, inputs = {}, subscribers = {}) {
|
|
98
|
-
this.widget$.next(widget);
|
|
99
|
-
this.widgetInputs$.next(inputs);
|
|
100
|
-
this.widgetSubscribers$.next(subscribers);
|
|
101
|
-
this.change.next();
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Deactivate a widget.
|
|
105
|
-
*/
|
|
106
|
-
deactivateWidget() {
|
|
107
|
-
this.widget$.next(undefined);
|
|
108
|
-
this.change.next();
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* When the state changes, update the actions availability.
|
|
112
|
-
*/
|
|
113
|
-
onStateChange() {
|
|
114
|
-
this.change.next();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
+
/**
|
|
3
|
+
* This class is responsible of managing the relations between
|
|
4
|
+
* entities and the actions that consume them. It also defines an
|
|
5
|
+
* entity table template that may be used by an entity table component.
|
|
6
|
+
*/
|
|
7
|
+
export class Workspace {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this.options = options;
|
|
10
|
+
/**
|
|
11
|
+
* Observable of the selected widget
|
|
12
|
+
*/
|
|
13
|
+
this.widget$ = new BehaviorSubject(undefined);
|
|
14
|
+
/**
|
|
15
|
+
* Observable of the selected widget's inputs
|
|
16
|
+
*/
|
|
17
|
+
this.widgetInputs$ = new BehaviorSubject({});
|
|
18
|
+
/**
|
|
19
|
+
* Observable of the selected widget's subscribers
|
|
20
|
+
*/
|
|
21
|
+
this.widgetSubscribers$ = new BehaviorSubject({});
|
|
22
|
+
/**
|
|
23
|
+
* State change that trigger an update of the actions availability
|
|
24
|
+
*/
|
|
25
|
+
this.change = new Subject();
|
|
26
|
+
this.active$ = new BehaviorSubject(false);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Workspace id
|
|
30
|
+
*/
|
|
31
|
+
get id() { return this.options.id; }
|
|
32
|
+
/**
|
|
33
|
+
* Workspace title
|
|
34
|
+
*/
|
|
35
|
+
get title() { return this.options.title; }
|
|
36
|
+
/**
|
|
37
|
+
* Workspace title
|
|
38
|
+
*/
|
|
39
|
+
get meta() { return this.options.meta || {}; }
|
|
40
|
+
/**
|
|
41
|
+
* Entities store
|
|
42
|
+
*/
|
|
43
|
+
get entityStore() { return this.options.entityStore; }
|
|
44
|
+
/**
|
|
45
|
+
* Actions store (some actions activate a widget)
|
|
46
|
+
*/
|
|
47
|
+
get actionStore() { return this.options.actionStore; }
|
|
48
|
+
/**
|
|
49
|
+
* Selected widget
|
|
50
|
+
*/
|
|
51
|
+
get widget() { return this.widget$.value; }
|
|
52
|
+
/**
|
|
53
|
+
* Whether a widget is selected
|
|
54
|
+
*/
|
|
55
|
+
get hasWidget() { return this.widget !== undefined; }
|
|
56
|
+
/**
|
|
57
|
+
* Whether this strategy is active
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
get active() { return this.active$.value; }
|
|
61
|
+
/**
|
|
62
|
+
* Activate the workspace. By doing that, the workspace will observe
|
|
63
|
+
* the selected entity (from the store) and update the actions availability.
|
|
64
|
+
* For example, some actions require an entity to be selected.
|
|
65
|
+
*/
|
|
66
|
+
activate() {
|
|
67
|
+
if (this.active === true) {
|
|
68
|
+
this.deactivate();
|
|
69
|
+
}
|
|
70
|
+
this.active$.next(true);
|
|
71
|
+
if (this.entityStore !== undefined) {
|
|
72
|
+
this.entities$$ = this.entityStore.stateView.all$()
|
|
73
|
+
.subscribe(() => this.onStateChange());
|
|
74
|
+
}
|
|
75
|
+
this.change.next();
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Deactivate the workspace. Unsubcribe to the selected entity.
|
|
79
|
+
*/
|
|
80
|
+
deactivate() {
|
|
81
|
+
this.active$.next(false);
|
|
82
|
+
this.deactivateWidget();
|
|
83
|
+
if (this.entities$$ !== undefined) {
|
|
84
|
+
this.entities$$.unsubscribe();
|
|
85
|
+
}
|
|
86
|
+
if (this.change$ !== undefined) {
|
|
87
|
+
this.change$.unsubscribe();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Activate a widget. In itself, activating a widget doesn't render it but,
|
|
92
|
+
* if an WorkspaceWidgetOutlet component is bound to this workspace, the widget will
|
|
93
|
+
* show up.
|
|
94
|
+
* @param widget Widget
|
|
95
|
+
* @param inputs Inputs the widget will receive
|
|
96
|
+
*/
|
|
97
|
+
activateWidget(widget, inputs = {}, subscribers = {}) {
|
|
98
|
+
this.widget$.next(widget);
|
|
99
|
+
this.widgetInputs$.next(inputs);
|
|
100
|
+
this.widgetSubscribers$.next(subscribers);
|
|
101
|
+
this.change.next();
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Deactivate a widget.
|
|
105
|
+
*/
|
|
106
|
+
deactivateWidget() {
|
|
107
|
+
this.widget$.next(undefined);
|
|
108
|
+
this.change.next();
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* When the state changes, update the actions availability.
|
|
112
|
+
*/
|
|
113
|
+
onStateChange() {
|
|
114
|
+
this.change.next();
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
117
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL3NyYy9saWIvd29ya3NwYWNlL3NoYXJlZC93b3Jrc3BhY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFnQixlQUFlLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBUTlEOzs7O0dBSUc7QUFDSCxNQUFNLE9BQU8sU0FBUztJQW1FcEIsWUFBc0IsT0FB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1dHM6IHtba2V5OiBzdHJpbmddOiBhbnl9ID0ge30sXG4gICAgc3Vic2NyaWJlcnM6IHtba2V5OiBzdHJpbmddOiAoZXZlbnQ6IGFueSkgPT4gdm9pZH0gPSB7fVxuICApIHtcbiAgICB0aGlzLndpZGdldCQubmV4dCh3aWRnZXQpO1xuICAgIHRoaXMud2lkZ2V0SW5wdXRzJC5uZXh0KGlucHV0cyk7XG4gICAgdGhpcy53aWRnZXRTdWJzY3JpYmVycyQubmV4dChzdWJzY3JpYmVycyk7XG4gICAgdGhpcy5jaGFuZ2UubmV4dCgpO1xuICB9XG5cbiAgLyoqXG4gICAqIERlYWN0aXZhdGUgYSB3aWRnZXQuXG4gICAqL1xuICBkZWFjdGl2YXRlV2lkZ2V0KCkge1xuICAgIHRoaXMud2lkZ2V0JC5uZXh0KHVuZGVmaW5lZCk7XG4gICAgdGhpcy5jaGFuZ2UubmV4dCgpO1xuICB9XG5cbiAgLyoqXG4gICAqIFdoZW4gdGhlIHN0YXRlIGNoYW5nZXMsIHVwZGF0ZSB0aGUgYWN0aW9ucyBhdmFpbGFiaWxpdHkuXG4gICAqL1xuICBwcml2YXRlIG9uU3RhdGVDaGFuZ2UoKSB7XG4gICAgdGhpcy5jaGFuZ2UubmV4dCgpO1xuICB9XG5cbn1cbiJdfQ==
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { getEntityTitle } from '../../entity';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../entity/entity-selector/entity-selector.component";
|
|
5
|
-
/**
|
|
6
|
-
* Drop list that activates the selected workspace emit an event.
|
|
7
|
-
*/
|
|
8
|
-
export class WorkspaceSelectorComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
/**
|
|
11
|
-
* Event emitted when an workspace is selected or unselected
|
|
12
|
-
*/
|
|
13
|
-
this.selectedChange = new EventEmitter();
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
getWorkspaceTitle(workspace) {
|
|
19
|
-
return getEntityTitle(workspace);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* When an workspace is manually selected, select it into the
|
|
23
|
-
* store and emit an event.
|
|
24
|
-
* @internal
|
|
25
|
-
* @param event The selection change event
|
|
26
|
-
*/
|
|
27
|
-
onSelectedChange(event) {
|
|
28
|
-
const workspace = event.value;
|
|
29
|
-
this.store.activateWorkspace(workspace);
|
|
30
|
-
this.selectedChange.emit({ selected: true, value: workspace });
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
WorkspaceSelectorComponent.ɵfac = function WorkspaceSelectorComponent_Factory(t) { return new (t || WorkspaceSelectorComponent)(); };
|
|
34
|
-
WorkspaceSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkspaceSelectorComponent, selectors: [["igo-workspace-selector"]], inputs: { store: "store", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, decls: 1, vars: 4, consts: [[3, "store", "multi", "titleAccessor", "disabled", "selectedChange"]], template: function WorkspaceSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵelementStart(0, "igo-entity-selector", 0);
|
|
36
|
-
i0.ɵɵlistener("selectedChange", function WorkspaceSelectorComponent_Template_igo_entity_selector_selectedChange_0_listener($event) { return ctx.onSelectedChange($event); });
|
|
37
|
-
i0.ɵɵelementEnd();
|
|
38
|
-
} if (rf & 2) {
|
|
39
|
-
i0.ɵɵproperty("store", ctx.store)("multi", false)("titleAccessor", ctx.getWorkspaceTitle)("disabled", ctx.disabled);
|
|
40
|
-
} }, dependencies: [i1.EntitySelectorComponent], styles: ["igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-infix{padding:0}igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-wrapper{padding-bottom:1.75em}"], changeDetection: 0 });
|
|
41
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceSelectorComponent, [{
|
|
42
|
-
type: Component,
|
|
43
|
-
args: [{ selector: 'igo-workspace-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\">\n</igo-entity-selector>\n", styles: ["igo-entity-selector ::ng-deep mat-form-field .mat-form-field-infix{padding:0}igo-entity-selector ::ng-deep mat-form-field .mat-form-field-wrapper{padding-bottom:1.75em}\n"] }]
|
|
44
|
-
}], null, { store: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], disabled: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], selectedChange: [{
|
|
49
|
-
type: Output
|
|
50
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { getEntityTitle } from '../../entity';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../entity/entity-selector/entity-selector.component";
|
|
5
|
+
/**
|
|
6
|
+
* Drop list that activates the selected workspace emit an event.
|
|
7
|
+
*/
|
|
8
|
+
export class WorkspaceSelectorComponent {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Event emitted when an workspace is selected or unselected
|
|
12
|
+
*/
|
|
13
|
+
this.selectedChange = new EventEmitter();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
getWorkspaceTitle(workspace) {
|
|
19
|
+
return getEntityTitle(workspace);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* When an workspace is manually selected, select it into the
|
|
23
|
+
* store and emit an event.
|
|
24
|
+
* @internal
|
|
25
|
+
* @param event The selection change event
|
|
26
|
+
*/
|
|
27
|
+
onSelectedChange(event) {
|
|
28
|
+
const workspace = event.value;
|
|
29
|
+
this.store.activateWorkspace(workspace);
|
|
30
|
+
this.selectedChange.emit({ selected: true, value: workspace });
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
WorkspaceSelectorComponent.ɵfac = function WorkspaceSelectorComponent_Factory(t) { return new (t || WorkspaceSelectorComponent)(); };
|
|
34
|
+
WorkspaceSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkspaceSelectorComponent, selectors: [["igo-workspace-selector"]], inputs: { store: "store", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, decls: 1, vars: 4, consts: [[3, "store", "multi", "titleAccessor", "disabled", "selectedChange"]], template: function WorkspaceSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
i0.ɵɵelementStart(0, "igo-entity-selector", 0);
|
|
36
|
+
i0.ɵɵlistener("selectedChange", function WorkspaceSelectorComponent_Template_igo_entity_selector_selectedChange_0_listener($event) { return ctx.onSelectedChange($event); });
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
i0.ɵɵproperty("store", ctx.store)("multi", false)("titleAccessor", ctx.getWorkspaceTitle)("disabled", ctx.disabled);
|
|
40
|
+
} }, dependencies: [i1.EntitySelectorComponent], styles: ["igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-infix{padding:0}igo-entity-selector[_ngcontent-%COMP%] mat-form-field .mat-form-field-wrapper{padding-bottom:1.75em}"], changeDetection: 0 });
|
|
41
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceSelectorComponent, [{
|
|
42
|
+
type: Component,
|
|
43
|
+
args: [{ selector: 'igo-workspace-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<igo-entity-selector\n [store]=\"store\"\n [multi]=\"false\"\n [titleAccessor]=\"getWorkspaceTitle\"\n [disabled]=\"disabled\"\n (selectedChange)=\"onSelectedChange($event)\">\n</igo-entity-selector>\n", styles: ["igo-entity-selector ::ng-deep mat-form-field .mat-form-field-infix{padding:0}igo-entity-selector ::ng-deep mat-form-field .mat-form-field-wrapper{padding-bottom:1.75em}\n"] }]
|
|
44
|
+
}], null, { store: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}], disabled: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}], selectedChange: [{
|
|
49
|
+
type: Output
|
|
50
|
+
}] }); })();
|
|
51
51
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlLXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL3dvcmtzcGFjZS93b3Jrc3BhY2Utc2VsZWN0b3Ivd29ya3NwYWNlLXNlbGVjdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL3dvcmtzcGFjZS93b3Jrc3BhY2Utc2VsZWN0b3Ivd29ya3NwYWNlLXNlbGVjdG9yLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBQ1osdUJBQXVCLEVBQ3hCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxjQUFjLENBQUM7OztBQUk5Qzs7R0FFRztBQU9ILE1BQU0sT0FBTywwQkFBMEI7SUFOdkM7UUFrQkU7O1dBRUc7UUFDTyxtQkFBYyxHQUFHLElBQUksWUFBWSxFQUd2QyxDQUFDO0tBcUJOO0lBbkJDOztPQUVHO0lBQ0gsaUJBQWlCL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ya3NwYWNlOiBXb3Jrc3BhY2UpOiBzdHJpbmcge1xuICAgIHJldHVybiBnZXRFbnRpdHlUaXRsZSh3b3Jrc3BhY2UpO1xuICB9XG5cbiAgLyoqXG4gICAqIFdoZW4gYW4gd29ya3NwYWNlIGlzIG1hbnVhbGx5IHNlbGVjdGVkLCBzZWxlY3QgaXQgaW50byB0aGVcbiAgICogc3RvcmUgYW5kIGVtaXQgYW4gZXZlbnQuXG4gICAqIEBpbnRlcm5hbFxuICAgKiBAcGFyYW0gZXZlbnQgVGhlIHNlbGVjdGlvbiBjaGFuZ2UgZXZlbnRcbiAgICovXG4gIG9uU2VsZWN0ZWRDaGFuZ2UoZXZlbnQ6IHt2YWx1ZTogV29ya3NwYWNlfSkge1xuICAgIGNvbnN0IHdvcmtzcGFjZSA9IGV2ZW50LnZhbHVlO1xuICAgIHRoaXMuc3RvcmUuYWN0aXZhdGVXb3Jrc3BhY2Uod29ya3NwYWNlKTtcbiAgICB0aGlzLnNlbGVjdGVkQ2hhbmdlLmVtaXQoe3NlbGVjdGVkOiB0cnVlLCB2YWx1ZTogd29ya3NwYWNlfSk7XG4gIH1cblxufVxuIiwiPGlnby1lbnRpdHktc2VsZWN0b3JcbiAgW3N0b3JlXT1cInN0b3JlXCJcbiAgW211bHRpXT1cImZhbHNlXCJcbiAgW3RpdGxlQWNjZXNzb3JdPVwiZ2V0V29ya3NwYWNlVGl0bGVcIlxuICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxuICAoc2VsZWN0ZWRDaGFuZ2UpPVwib25TZWxlY3RlZENoYW5nZSgkZXZlbnQpXCI+XG48L2lnby1lbnRpdHktc2VsZWN0b3I+XG4iXX0=
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { IgoEntitySelectorModule } from '../../entity/entity-selector/entity-selector.module';
|
|
4
|
-
import { WorkspaceSelectorComponent } from './workspace-selector.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @ignore
|
|
8
|
-
*/
|
|
9
|
-
export class IgoWorkspaceSelectorModule {
|
|
10
|
-
}
|
|
11
|
-
IgoWorkspaceSelectorModule.ɵfac = function IgoWorkspaceSelectorModule_Factory(t) { return new (t || IgoWorkspaceSelectorModule)(); };
|
|
12
|
-
IgoWorkspaceSelectorModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoWorkspaceSelectorModule });
|
|
13
|
-
IgoWorkspaceSelectorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
14
|
-
IgoEntitySelectorModule] });
|
|
15
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoWorkspaceSelectorModule, [{
|
|
16
|
-
type: NgModule,
|
|
17
|
-
args: [{
|
|
18
|
-
imports: [
|
|
19
|
-
CommonModule,
|
|
20
|
-
IgoEntitySelectorModule
|
|
21
|
-
],
|
|
22
|
-
exports: [
|
|
23
|
-
WorkspaceSelectorComponent
|
|
24
|
-
],
|
|
25
|
-
declarations: [
|
|
26
|
-
WorkspaceSelectorComponent
|
|
27
|
-
]
|
|
28
|
-
}]
|
|
29
|
-
}], null, null); })();
|
|
30
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoWorkspaceSelectorModule, { declarations: [WorkspaceSelectorComponent], imports: [CommonModule,
|
|
31
|
-
IgoEntitySelectorModule], exports: [WorkspaceSelectorComponent] }); })();
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { IgoEntitySelectorModule } from '../../entity/entity-selector/entity-selector.module';
|
|
4
|
+
import { WorkspaceSelectorComponent } from './workspace-selector.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
export class IgoWorkspaceSelectorModule {
|
|
10
|
+
}
|
|
11
|
+
IgoWorkspaceSelectorModule.ɵfac = function IgoWorkspaceSelectorModule_Factory(t) { return new (t || IgoWorkspaceSelectorModule)(); };
|
|
12
|
+
IgoWorkspaceSelectorModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoWorkspaceSelectorModule });
|
|
13
|
+
IgoWorkspaceSelectorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
14
|
+
IgoEntitySelectorModule] });
|
|
15
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoWorkspaceSelectorModule, [{
|
|
16
|
+
type: NgModule,
|
|
17
|
+
args: [{
|
|
18
|
+
imports: [
|
|
19
|
+
CommonModule,
|
|
20
|
+
IgoEntitySelectorModule
|
|
21
|
+
],
|
|
22
|
+
exports: [
|
|
23
|
+
WorkspaceSelectorComponent
|
|
24
|
+
],
|
|
25
|
+
declarations: [
|
|
26
|
+
WorkspaceSelectorComponent
|
|
27
|
+
]
|
|
28
|
+
}]
|
|
29
|
+
}], null, null); })();
|
|
30
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoWorkspaceSelectorModule, { declarations: [WorkspaceSelectorComponent], imports: [CommonModule,
|
|
31
|
+
IgoEntitySelectorModule], exports: [WorkspaceSelectorComponent] }); })();
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlLXNlbGVjdG9yLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL3dvcmtzcGFjZS93b3Jrc3BhY2Utc2VsZWN0b3Ivd29ya3NwYWNlLXNlbGVjdG9yLm1vZHVsZS50cyJdL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JztcblxuLyoqXG4gKiBAaWdub3JlXG4gKi9cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgSWdvRW50aXR5U2VsZWN0b3JNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIFdvcmtzcGFjZVNlbGVjdG9yQ29tcG9uZW50XG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFdvcmtzcGFjZVNlbGVjdG9yQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgSWdvV29ya3NwYWNlU2VsZWN0b3JNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "../../widget/widget-outlet/widget-outlet.component";
|
|
5
|
-
function WorkspaceWidgetOutletComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
7
|
-
i0.ɵɵelementContainerStart(0);
|
|
8
|
-
i0.ɵɵelementStart(1, "igo-widget-outlet", 1);
|
|
9
|
-
i0.ɵɵlistener("cancel", function WorkspaceWidgetOutletComponent_ng_container_0_Template_igo_widget_outlet_cancel_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const widget_r1 = restoredCtx.ngIf; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onWidgetCancel(widget_r1)); })("complete", function WorkspaceWidgetOutletComponent_ng_container_0_Template_igo_widget_outlet_complete_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const widget_r1 = restoredCtx.ngIf; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onWidgetComplete(widget_r1)); });
|
|
10
|
-
i0.ɵɵpipe(2, "async");
|
|
11
|
-
i0.ɵɵpipe(3, "async");
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
i0.ɵɵelementContainerEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const widget_r1 = ctx.ngIf;
|
|
16
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
17
|
-
i0.ɵɵadvance(1);
|
|
18
|
-
i0.ɵɵproperty("widget", widget_r1)("inputs", i0.ɵɵpipeBind1(2, 3, ctx_r0.widgetInputs$))("subscribers", i0.ɵɵpipeBind1(3, 5, ctx_r0.widgetSubscribers$));
|
|
19
|
-
} }
|
|
20
|
-
/**
|
|
21
|
-
* This component dynamically render an Workspace's active widget.
|
|
22
|
-
* It also deactivate that widget whenever the widget's component
|
|
23
|
-
* emit the 'cancel' or 'complete' event.
|
|
24
|
-
*/
|
|
25
|
-
export class WorkspaceWidgetOutletComponent {
|
|
26
|
-
constructor() {
|
|
27
|
-
/**
|
|
28
|
-
* Event emitted when a widget is deactivate which happens
|
|
29
|
-
* when the widget's component emits the 'cancel' or 'complete' event.
|
|
30
|
-
*/
|
|
31
|
-
this.deactivateWidget = new EventEmitter();
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Observable of the workspace's active widget
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
get widget$() { return this.workspace.widget$; }
|
|
38
|
-
/**
|
|
39
|
-
* Observable of the workspace's widget inputs
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
get widgetInputs$() {
|
|
43
|
-
return this.workspace.widgetInputs$;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Observable of the workspace's widget inputs
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
get widgetSubscribers$() {
|
|
50
|
-
return this.workspace.widgetSubscribers$;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* When a widget's component emit the 'cancel' event,
|
|
54
|
-
* deactivate that widget and emit the 'deactivateWidget' event.
|
|
55
|
-
* @param widget Widget
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
onWidgetCancel(widget) {
|
|
59
|
-
this.workspace.deactivateWidget();
|
|
60
|
-
this.deactivateWidget.emit(widget);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* When a widget's component emit the 'cancel' event,
|
|
64
|
-
* deactivate that widget and emit the 'deactivateWidget' event.
|
|
65
|
-
* @param widget Widget
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
|
-
onWidgetComplete(widget) {
|
|
69
|
-
this.workspace.deactivateWidget();
|
|
70
|
-
this.deactivateWidget.emit(widget);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
WorkspaceWidgetOutletComponent.ɵfac = function WorkspaceWidgetOutletComponent_Factory(t) { return new (t || WorkspaceWidgetOutletComponent)(); };
|
|
74
|
-
WorkspaceWidgetOutletComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkspaceWidgetOutletComponent, selectors: [["igo-workspace-widget-outlet"]], inputs: { workspace: "workspace" }, outputs: { deactivateWidget: "deactivateWidget" }, decls: 2, vars: 3, consts: [[4, "ngIf"], [3, "widget", "inputs", "subscribers", "cancel", "complete"]], template: function WorkspaceWidgetOutletComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
-
i0.ɵɵtemplate(0, WorkspaceWidgetOutletComponent_ng_container_0_Template, 4, 7, "ng-container", 0);
|
|
76
|
-
i0.ɵɵpipe(1, "async");
|
|
77
|
-
} if (rf & 2) {
|
|
78
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.widget$));
|
|
79
|
-
} }, dependencies: [i1.NgIf, i2.WidgetOutletComponent, i1.AsyncPipe], styles: ["igo-widget-outlet[_ngcontent-%COMP%]{height:100%}"], changeDetection: 0 });
|
|
80
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceWidgetOutletComponent, [{
|
|
81
|
-
type: Component,
|
|
82
|
-
args: [{ selector: 'igo-workspace-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\">\n </igo-widget-outlet>\n</ng-container>\n", styles: ["igo-widget-outlet{height:100%}\n"] }]
|
|
83
|
-
}], function () { return []; }, { workspace: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], deactivateWidget: [{
|
|
86
|
-
type: Output
|
|
87
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "../../widget/widget-outlet/widget-outlet.component";
|
|
5
|
+
function WorkspaceWidgetOutletComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
7
|
+
i0.ɵɵelementContainerStart(0);
|
|
8
|
+
i0.ɵɵelementStart(1, "igo-widget-outlet", 1);
|
|
9
|
+
i0.ɵɵlistener("cancel", function WorkspaceWidgetOutletComponent_ng_container_0_Template_igo_widget_outlet_cancel_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const widget_r1 = restoredCtx.ngIf; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onWidgetCancel(widget_r1)); })("complete", function WorkspaceWidgetOutletComponent_ng_container_0_Template_igo_widget_outlet_complete_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r3); const widget_r1 = restoredCtx.ngIf; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onWidgetComplete(widget_r1)); });
|
|
10
|
+
i0.ɵɵpipe(2, "async");
|
|
11
|
+
i0.ɵɵpipe(3, "async");
|
|
12
|
+
i0.ɵɵelementEnd();
|
|
13
|
+
i0.ɵɵelementContainerEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const widget_r1 = ctx.ngIf;
|
|
16
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
17
|
+
i0.ɵɵadvance(1);
|
|
18
|
+
i0.ɵɵproperty("widget", widget_r1)("inputs", i0.ɵɵpipeBind1(2, 3, ctx_r0.widgetInputs$))("subscribers", i0.ɵɵpipeBind1(3, 5, ctx_r0.widgetSubscribers$));
|
|
19
|
+
} }
|
|
20
|
+
/**
|
|
21
|
+
* This component dynamically render an Workspace's active widget.
|
|
22
|
+
* It also deactivate that widget whenever the widget's component
|
|
23
|
+
* emit the 'cancel' or 'complete' event.
|
|
24
|
+
*/
|
|
25
|
+
export class WorkspaceWidgetOutletComponent {
|
|
26
|
+
constructor() {
|
|
27
|
+
/**
|
|
28
|
+
* Event emitted when a widget is deactivate which happens
|
|
29
|
+
* when the widget's component emits the 'cancel' or 'complete' event.
|
|
30
|
+
*/
|
|
31
|
+
this.deactivateWidget = new EventEmitter();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Observable of the workspace's active widget
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
get widget$() { return this.workspace.widget$; }
|
|
38
|
+
/**
|
|
39
|
+
* Observable of the workspace's widget inputs
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
get widgetInputs$() {
|
|
43
|
+
return this.workspace.widgetInputs$;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Observable of the workspace's widget inputs
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
get widgetSubscribers$() {
|
|
50
|
+
return this.workspace.widgetSubscribers$;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* When a widget's component emit the 'cancel' event,
|
|
54
|
+
* deactivate that widget and emit the 'deactivateWidget' event.
|
|
55
|
+
* @param widget Widget
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
onWidgetCancel(widget) {
|
|
59
|
+
this.workspace.deactivateWidget();
|
|
60
|
+
this.deactivateWidget.emit(widget);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* When a widget's component emit the 'cancel' event,
|
|
64
|
+
* deactivate that widget and emit the 'deactivateWidget' event.
|
|
65
|
+
* @param widget Widget
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
onWidgetComplete(widget) {
|
|
69
|
+
this.workspace.deactivateWidget();
|
|
70
|
+
this.deactivateWidget.emit(widget);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
WorkspaceWidgetOutletComponent.ɵfac = function WorkspaceWidgetOutletComponent_Factory(t) { return new (t || WorkspaceWidgetOutletComponent)(); };
|
|
74
|
+
WorkspaceWidgetOutletComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkspaceWidgetOutletComponent, selectors: [["igo-workspace-widget-outlet"]], inputs: { workspace: "workspace" }, outputs: { deactivateWidget: "deactivateWidget" }, decls: 2, vars: 3, consts: [[4, "ngIf"], [3, "widget", "inputs", "subscribers", "cancel", "complete"]], template: function WorkspaceWidgetOutletComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵtemplate(0, WorkspaceWidgetOutletComponent_ng_container_0_Template, 4, 7, "ng-container", 0);
|
|
76
|
+
i0.ɵɵpipe(1, "async");
|
|
77
|
+
} if (rf & 2) {
|
|
78
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.widget$));
|
|
79
|
+
} }, dependencies: [i1.NgIf, i2.WidgetOutletComponent, i1.AsyncPipe], styles: ["igo-widget-outlet[_ngcontent-%COMP%]{height:100%}"], changeDetection: 0 });
|
|
80
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkspaceWidgetOutletComponent, [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{ selector: 'igo-workspace-widget-outlet', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"widget$ | async as widget\">\n <igo-widget-outlet\n [widget]=\"widget\"\n [inputs]=\"widgetInputs$ | async\"\n [subscribers]=\"widgetSubscribers$ | async\"\n (cancel)=\"onWidgetCancel(widget)\"\n (complete)=\"onWidgetComplete(widget)\">\n </igo-widget-outlet>\n</ng-container>\n", styles: ["igo-widget-outlet{height:100%}\n"] }]
|
|
83
|
+
}], function () { return []; }, { workspace: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], deactivateWidget: [{
|
|
86
|
+
type: Output
|
|
87
|
+
}] }); })();
|
|
88
88
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlLXdpZGdldC1vdXRsZXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL3NyYy9saWIvd29ya3NwYWNlL3dvcmtzcGFjZS13aWRnZXQtb3V0bGV0L3dvcmtzcGFjZS13aWRnZXQtb3V0bGV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL3dvcmtzcGFjZS93b3Jrc3BhY2Utd2lkZ2V0LW91dGxldC93b3Jrc3BhY2Utd2lkZ2V0LW91dGxldC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCxNQUFNLEVBQ04sWUFBWSxFQUNaLHVCQUF1QixFQUN4QixNQUFNLGVBQWUsQ0FBQzs7Ozs7O0lDTnZCLDZCQUFnRDtJQUM5Qyw0Q0FLd0M7SU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