@igo2/common 1.14.3 → 1.14.4
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 +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 +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 +1367 -1367
- 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 +59 -59
- 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 +255 -255
- 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 +10003 -10003
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +9306 -9306
- 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 +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,194 +1,194 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { EntityStoreWatcher } from '../shared/watcher';
|
|
4
|
-
import { getEntityTitle } from '../shared/entity.utils';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/common";
|
|
7
|
-
import * as i2 from "@angular/material/form-field";
|
|
8
|
-
import * as i3 from "@angular/material/select";
|
|
9
|
-
import * as i4 from "@angular/material/core";
|
|
10
|
-
function EntitySelectorComponent_mat_option_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
-
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
12
|
-
i0.ɵɵtext(1);
|
|
13
|
-
i0.ɵɵelementEnd();
|
|
14
|
-
} if (rf & 2) {
|
|
15
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵproperty("value", ctx_r0.emptyValue);
|
|
17
|
-
i0.ɵɵadvance(1);
|
|
18
|
-
i0.ɵɵtextInterpolate(ctx_r0.emptyText);
|
|
19
|
-
} }
|
|
20
|
-
function EntitySelectorComponent_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
-
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
22
|
-
i0.ɵɵtext(1);
|
|
23
|
-
i0.ɵɵpipe(2, "async");
|
|
24
|
-
i0.ɵɵelementEnd();
|
|
25
|
-
} if (rf & 2) {
|
|
26
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
27
|
-
i0.ɵɵproperty("value", ctx_r1.multiSelectValue);
|
|
28
|
-
i0.ɵɵadvance(1);
|
|
29
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r1.multiText$));
|
|
30
|
-
} }
|
|
31
|
-
function EntitySelectorComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
33
|
-
i0.ɵɵtext(1);
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const record_r3 = ctx.$implicit;
|
|
37
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
38
|
-
i0.ɵɵproperty("value", record_r3.entity);
|
|
39
|
-
i0.ɵɵadvance(1);
|
|
40
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.titleAccessor(record_r3.entity), " ");
|
|
41
|
-
} }
|
|
42
|
-
export class EntitySelectorComponent {
|
|
43
|
-
constructor(cdRef) {
|
|
44
|
-
this.cdRef = cdRef;
|
|
45
|
-
/**
|
|
46
|
-
* The selected entity
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
this.selected$ = new BehaviorSubject(undefined);
|
|
50
|
-
/**
|
|
51
|
-
* The current multi select option text
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
this.multiText$ = new BehaviorSubject(undefined);
|
|
55
|
-
this.multiSelectValue = { id: 'IGO_MULTI_SELECT' };
|
|
56
|
-
this.emptyValue = { id: 'IGO_EMPTY_SELECT' };
|
|
57
|
-
/**
|
|
58
|
-
* Title accessor
|
|
59
|
-
*/
|
|
60
|
-
this.titleAccessor = getEntityTitle;
|
|
61
|
-
/**
|
|
62
|
-
* Text to display when nothing is selected
|
|
63
|
-
*/
|
|
64
|
-
this.emptyText = undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Wheter selecting many entities is allowed
|
|
67
|
-
*/
|
|
68
|
-
this.multi = false;
|
|
69
|
-
/**
|
|
70
|
-
* Text to display for the select all option
|
|
71
|
-
*/
|
|
72
|
-
this.multiAllText = 'All';
|
|
73
|
-
/**
|
|
74
|
-
* Text to display for the select none option
|
|
75
|
-
*/
|
|
76
|
-
this.multiNoneText = 'None';
|
|
77
|
-
/**
|
|
78
|
-
* Wheter the selector is disabled or not
|
|
79
|
-
*/
|
|
80
|
-
this.disabled = false;
|
|
81
|
-
/**
|
|
82
|
-
* Event emitted when the selection changes
|
|
83
|
-
*/
|
|
84
|
-
this.selectedChange = new EventEmitter();
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Create a store watcher and subscribe to the selected entity
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
ngOnInit() {
|
|
91
|
-
this.watcher = new EntityStoreWatcher(this.store, this.cdRef);
|
|
92
|
-
this.selected$$ = this.store.stateView
|
|
93
|
-
.manyBy$((record) => record.state.selected === true)
|
|
94
|
-
.subscribe((records) => {
|
|
95
|
-
const entities = records.map((record) => record.entity);
|
|
96
|
-
this.onSelectFromStore(entities);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Unsubscribe to the selected entity and destroy the store watcher
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
ngOnDestroy() {
|
|
104
|
-
this.watcher.destroy();
|
|
105
|
-
this.selected$$.unsubscribe();
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* On selection change, update the store's state and emit an event
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
onSelectionChange(event) {
|
|
112
|
-
const values = event.value instanceof Array ? event.value : [event.value];
|
|
113
|
-
const multiSelect = values.find((_value) => _value === this.multiSelectValue);
|
|
114
|
-
let entities = values.filter((_value) => _value !== this.multiSelectValue);
|
|
115
|
-
if (multiSelect !== undefined) {
|
|
116
|
-
if (entities.length === this.store.count) {
|
|
117
|
-
entities = [];
|
|
118
|
-
}
|
|
119
|
-
else if (entities.length < this.store.count) {
|
|
120
|
-
entities = this.store.all();
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
entities = entities.filter((entity) => entity !== this.emptyValue);
|
|
124
|
-
if (entities.length === 0) {
|
|
125
|
-
this.store.state.updateAll({ selected: false });
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
this.store.state.updateMany(entities, { selected: true }, true);
|
|
129
|
-
}
|
|
130
|
-
const value = this.multi ? entities : event.value;
|
|
131
|
-
this.selectedChange.emit({ selected: true, value });
|
|
132
|
-
}
|
|
133
|
-
onSelectFromStore(entities) {
|
|
134
|
-
if (this.multi === true) {
|
|
135
|
-
this.selected$.next(entities);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
const entity = entities.length > 0 ? entities[0] : undefined;
|
|
139
|
-
this.selected$.next(entity);
|
|
140
|
-
}
|
|
141
|
-
this.updateMultiToggleWithEntities(entities);
|
|
142
|
-
}
|
|
143
|
-
updateMultiToggleWithEntities(entities) {
|
|
144
|
-
if (entities.length === this.store.count && this.multiText$.value !== this.multiNoneText) {
|
|
145
|
-
this.multiText$.next(this.multiNoneText);
|
|
146
|
-
}
|
|
147
|
-
else if (entities.length < this.store.count && this.multiText$.value !== this.multiAllText) {
|
|
148
|
-
this.multiText$.next(this.multiAllText);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
EntitySelectorComponent.ɵfac = function EntitySelectorComponent_Factory(t) { return new (t || EntitySelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
153
|
-
EntitySelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntitySelectorComponent, selectors: [["igo-entity-selector"]], inputs: { store: "store", titleAccessor: "titleAccessor", emptyText: "emptyText", multi: "multi", multiAllText: "multiAllText", multiNoneText: "multiNoneText", placeholder: "placeholder", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, decls: 7, vars: 11, consts: [[1, "igo-entity-selector"], [3, "disabled", "value", "multiple", "placeholder", "selectionChange"], [3, "value", 4, "ngIf"], ["ngFor", "", 3, "ngForOf"], [3, "value"]], template: function EntitySelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
-
i0.ɵɵelementStart(0, "mat-form-field", 0)(1, "mat-select", 1);
|
|
155
|
-
i0.ɵɵlistener("selectionChange", function EntitySelectorComponent_Template_mat_select_selectionChange_1_listener($event) { return ctx.onSelectionChange($event); });
|
|
156
|
-
i0.ɵɵpipe(2, "async");
|
|
157
|
-
i0.ɵɵtemplate(3, EntitySelectorComponent_mat_option_3_Template, 2, 2, "mat-option", 2);
|
|
158
|
-
i0.ɵɵtemplate(4, EntitySelectorComponent_mat_option_4_Template, 3, 4, "mat-option", 2);
|
|
159
|
-
i0.ɵɵtemplate(5, EntitySelectorComponent_ng_template_5_Template, 2, 2, "ng-template", 3);
|
|
160
|
-
i0.ɵɵpipe(6, "async");
|
|
161
|
-
i0.ɵɵelementEnd()();
|
|
162
|
-
} if (rf & 2) {
|
|
163
|
-
i0.ɵɵadvance(1);
|
|
164
|
-
i0.ɵɵproperty("disabled", ctx.disabled)("value", i0.ɵɵpipeBind1(2, 7, ctx.selected$))("multiple", ctx.multi)("placeholder", ctx.placeholder);
|
|
165
|
-
i0.ɵɵadvance(2);
|
|
166
|
-
i0.ɵɵproperty("ngIf", ctx.emptyText !== undefined && ctx.multi === false);
|
|
167
|
-
i0.ɵɵadvance(1);
|
|
168
|
-
i0.ɵɵproperty("ngIf", ctx.multi === true);
|
|
169
|
-
i0.ɵɵadvance(1);
|
|
170
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(6, 9, ctx.store.stateView.all$()));
|
|
171
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.MatFormField, i3.MatSelect, i4.MatOption, i1.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
172
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntitySelectorComponent, [{
|
|
173
|
-
type: Component,
|
|
174
|
-
args: [{ selector: 'igo-entity-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field class=\"igo-entity-selector\">\n <mat-select\n [disabled]=\"disabled\"\n [value]=\"selected$ | async\"\n [multiple]=\"multi\"\n [placeholder]=\"placeholder\"\n (selectionChange)=\"onSelectionChange($event)\">\n <mat-option *ngIf=\"emptyText !== undefined && multi === false\" [value]=\"emptyValue\">{{emptyText}}</mat-option>\n <mat-option *ngIf=\"multi === true\" [value]=\"multiSelectValue\">{{multiText$ | async}}</mat-option>\n <ng-template ngFor let-record [ngForOf]=\"store.stateView.all$() | async\">\n <mat-option [value]=\"record.entity\">\n {{titleAccessor(record.entity)}}\n </mat-option>\n </ng-template>\n </mat-select>\n</mat-form-field>\n", styles: ["mat-form-field{width:100%}\n"] }]
|
|
175
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { store: [{
|
|
176
|
-
type: Input
|
|
177
|
-
}], titleAccessor: [{
|
|
178
|
-
type: Input
|
|
179
|
-
}], emptyText: [{
|
|
180
|
-
type: Input
|
|
181
|
-
}], multi: [{
|
|
182
|
-
type: Input
|
|
183
|
-
}], multiAllText: [{
|
|
184
|
-
type: Input
|
|
185
|
-
}], multiNoneText: [{
|
|
186
|
-
type: Input
|
|
187
|
-
}], placeholder: [{
|
|
188
|
-
type: Input
|
|
189
|
-
}], disabled: [{
|
|
190
|
-
type: Input
|
|
191
|
-
}], selectedChange: [{
|
|
192
|
-
type: Output
|
|
193
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { EntityStoreWatcher } from '../shared/watcher';
|
|
4
|
+
import { getEntityTitle } from '../shared/entity.utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "@angular/material/form-field";
|
|
8
|
+
import * as i3 from "@angular/material/select";
|
|
9
|
+
import * as i4 from "@angular/material/core";
|
|
10
|
+
function EntitySelectorComponent_mat_option_3_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
12
|
+
i0.ɵɵtext(1);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
16
|
+
i0.ɵɵproperty("value", ctx_r0.emptyValue);
|
|
17
|
+
i0.ɵɵadvance(1);
|
|
18
|
+
i0.ɵɵtextInterpolate(ctx_r0.emptyText);
|
|
19
|
+
} }
|
|
20
|
+
function EntitySelectorComponent_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
21
|
+
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
22
|
+
i0.ɵɵtext(1);
|
|
23
|
+
i0.ɵɵpipe(2, "async");
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
27
|
+
i0.ɵɵproperty("value", ctx_r1.multiSelectValue);
|
|
28
|
+
i0.ɵɵadvance(1);
|
|
29
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r1.multiText$));
|
|
30
|
+
} }
|
|
31
|
+
function EntitySelectorComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
+
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
33
|
+
i0.ɵɵtext(1);
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
const record_r3 = ctx.$implicit;
|
|
37
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
38
|
+
i0.ɵɵproperty("value", record_r3.entity);
|
|
39
|
+
i0.ɵɵadvance(1);
|
|
40
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r2.titleAccessor(record_r3.entity), " ");
|
|
41
|
+
} }
|
|
42
|
+
export class EntitySelectorComponent {
|
|
43
|
+
constructor(cdRef) {
|
|
44
|
+
this.cdRef = cdRef;
|
|
45
|
+
/**
|
|
46
|
+
* The selected entity
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
this.selected$ = new BehaviorSubject(undefined);
|
|
50
|
+
/**
|
|
51
|
+
* The current multi select option text
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
this.multiText$ = new BehaviorSubject(undefined);
|
|
55
|
+
this.multiSelectValue = { id: 'IGO_MULTI_SELECT' };
|
|
56
|
+
this.emptyValue = { id: 'IGO_EMPTY_SELECT' };
|
|
57
|
+
/**
|
|
58
|
+
* Title accessor
|
|
59
|
+
*/
|
|
60
|
+
this.titleAccessor = getEntityTitle;
|
|
61
|
+
/**
|
|
62
|
+
* Text to display when nothing is selected
|
|
63
|
+
*/
|
|
64
|
+
this.emptyText = undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Wheter selecting many entities is allowed
|
|
67
|
+
*/
|
|
68
|
+
this.multi = false;
|
|
69
|
+
/**
|
|
70
|
+
* Text to display for the select all option
|
|
71
|
+
*/
|
|
72
|
+
this.multiAllText = 'All';
|
|
73
|
+
/**
|
|
74
|
+
* Text to display for the select none option
|
|
75
|
+
*/
|
|
76
|
+
this.multiNoneText = 'None';
|
|
77
|
+
/**
|
|
78
|
+
* Wheter the selector is disabled or not
|
|
79
|
+
*/
|
|
80
|
+
this.disabled = false;
|
|
81
|
+
/**
|
|
82
|
+
* Event emitted when the selection changes
|
|
83
|
+
*/
|
|
84
|
+
this.selectedChange = new EventEmitter();
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Create a store watcher and subscribe to the selected entity
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
ngOnInit() {
|
|
91
|
+
this.watcher = new EntityStoreWatcher(this.store, this.cdRef);
|
|
92
|
+
this.selected$$ = this.store.stateView
|
|
93
|
+
.manyBy$((record) => record.state.selected === true)
|
|
94
|
+
.subscribe((records) => {
|
|
95
|
+
const entities = records.map((record) => record.entity);
|
|
96
|
+
this.onSelectFromStore(entities);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Unsubscribe to the selected entity and destroy the store watcher
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
ngOnDestroy() {
|
|
104
|
+
this.watcher.destroy();
|
|
105
|
+
this.selected$$.unsubscribe();
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* On selection change, update the store's state and emit an event
|
|
109
|
+
* @internal
|
|
110
|
+
*/
|
|
111
|
+
onSelectionChange(event) {
|
|
112
|
+
const values = event.value instanceof Array ? event.value : [event.value];
|
|
113
|
+
const multiSelect = values.find((_value) => _value === this.multiSelectValue);
|
|
114
|
+
let entities = values.filter((_value) => _value !== this.multiSelectValue);
|
|
115
|
+
if (multiSelect !== undefined) {
|
|
116
|
+
if (entities.length === this.store.count) {
|
|
117
|
+
entities = [];
|
|
118
|
+
}
|
|
119
|
+
else if (entities.length < this.store.count) {
|
|
120
|
+
entities = this.store.all();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
entities = entities.filter((entity) => entity !== this.emptyValue);
|
|
124
|
+
if (entities.length === 0) {
|
|
125
|
+
this.store.state.updateAll({ selected: false });
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this.store.state.updateMany(entities, { selected: true }, true);
|
|
129
|
+
}
|
|
130
|
+
const value = this.multi ? entities : event.value;
|
|
131
|
+
this.selectedChange.emit({ selected: true, value });
|
|
132
|
+
}
|
|
133
|
+
onSelectFromStore(entities) {
|
|
134
|
+
if (this.multi === true) {
|
|
135
|
+
this.selected$.next(entities);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
const entity = entities.length > 0 ? entities[0] : undefined;
|
|
139
|
+
this.selected$.next(entity);
|
|
140
|
+
}
|
|
141
|
+
this.updateMultiToggleWithEntities(entities);
|
|
142
|
+
}
|
|
143
|
+
updateMultiToggleWithEntities(entities) {
|
|
144
|
+
if (entities.length === this.store.count && this.multiText$.value !== this.multiNoneText) {
|
|
145
|
+
this.multiText$.next(this.multiNoneText);
|
|
146
|
+
}
|
|
147
|
+
else if (entities.length < this.store.count && this.multiText$.value !== this.multiAllText) {
|
|
148
|
+
this.multiText$.next(this.multiAllText);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
EntitySelectorComponent.ɵfac = function EntitySelectorComponent_Factory(t) { return new (t || EntitySelectorComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
153
|
+
EntitySelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EntitySelectorComponent, selectors: [["igo-entity-selector"]], inputs: { store: "store", titleAccessor: "titleAccessor", emptyText: "emptyText", multi: "multi", multiAllText: "multiAllText", multiNoneText: "multiNoneText", placeholder: "placeholder", disabled: "disabled" }, outputs: { selectedChange: "selectedChange" }, decls: 7, vars: 11, consts: [[1, "igo-entity-selector"], [3, "disabled", "value", "multiple", "placeholder", "selectionChange"], [3, "value", 4, "ngIf"], ["ngFor", "", 3, "ngForOf"], [3, "value"]], template: function EntitySelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
154
|
+
i0.ɵɵelementStart(0, "mat-form-field", 0)(1, "mat-select", 1);
|
|
155
|
+
i0.ɵɵlistener("selectionChange", function EntitySelectorComponent_Template_mat_select_selectionChange_1_listener($event) { return ctx.onSelectionChange($event); });
|
|
156
|
+
i0.ɵɵpipe(2, "async");
|
|
157
|
+
i0.ɵɵtemplate(3, EntitySelectorComponent_mat_option_3_Template, 2, 2, "mat-option", 2);
|
|
158
|
+
i0.ɵɵtemplate(4, EntitySelectorComponent_mat_option_4_Template, 3, 4, "mat-option", 2);
|
|
159
|
+
i0.ɵɵtemplate(5, EntitySelectorComponent_ng_template_5_Template, 2, 2, "ng-template", 3);
|
|
160
|
+
i0.ɵɵpipe(6, "async");
|
|
161
|
+
i0.ɵɵelementEnd()();
|
|
162
|
+
} if (rf & 2) {
|
|
163
|
+
i0.ɵɵadvance(1);
|
|
164
|
+
i0.ɵɵproperty("disabled", ctx.disabled)("value", i0.ɵɵpipeBind1(2, 7, ctx.selected$))("multiple", ctx.multi)("placeholder", ctx.placeholder);
|
|
165
|
+
i0.ɵɵadvance(2);
|
|
166
|
+
i0.ɵɵproperty("ngIf", ctx.emptyText !== undefined && ctx.multi === false);
|
|
167
|
+
i0.ɵɵadvance(1);
|
|
168
|
+
i0.ɵɵproperty("ngIf", ctx.multi === true);
|
|
169
|
+
i0.ɵɵadvance(1);
|
|
170
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(6, 9, ctx.store.stateView.all$()));
|
|
171
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.MatFormField, i3.MatSelect, i4.MatOption, i1.AsyncPipe], styles: ["mat-form-field[_ngcontent-%COMP%]{width:100%}"], changeDetection: 0 });
|
|
172
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EntitySelectorComponent, [{
|
|
173
|
+
type: Component,
|
|
174
|
+
args: [{ selector: 'igo-entity-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field class=\"igo-entity-selector\">\n <mat-select\n [disabled]=\"disabled\"\n [value]=\"selected$ | async\"\n [multiple]=\"multi\"\n [placeholder]=\"placeholder\"\n (selectionChange)=\"onSelectionChange($event)\">\n <mat-option *ngIf=\"emptyText !== undefined && multi === false\" [value]=\"emptyValue\">{{emptyText}}</mat-option>\n <mat-option *ngIf=\"multi === true\" [value]=\"multiSelectValue\">{{multiText$ | async}}</mat-option>\n <ng-template ngFor let-record [ngForOf]=\"store.stateView.all$() | async\">\n <mat-option [value]=\"record.entity\">\n {{titleAccessor(record.entity)}}\n </mat-option>\n </ng-template>\n </mat-select>\n</mat-form-field>\n", styles: ["mat-form-field{width:100%}\n"] }]
|
|
175
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { store: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], titleAccessor: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], emptyText: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], multi: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], multiAllText: [{
|
|
184
|
+
type: Input
|
|
185
|
+
}], multiNoneText: [{
|
|
186
|
+
type: Input
|
|
187
|
+
}], placeholder: [{
|
|
188
|
+
type: Input
|
|
189
|
+
}], disabled: [{
|
|
190
|
+
type: Input
|
|
191
|
+
}], selectedChange: [{
|
|
192
|
+
type: Output
|
|
193
|
+
}] }); })();
|
|
194
194
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2VudGl0eS9lbnRpdHktc2VsZWN0b3IvZW50aXR5LXNlbGVjdG9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2VudGl0eS9lbnRpdHktc2VsZWN0b3IvZW50aXR5LXNlbGVjdG9yLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixZQUFZLEVBQ1osdUJBQXVCLEVBSXhCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxlQUFlLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBSXJELE9BQU8sRUFBRSxrQkFBa0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HRpID09PSBmYWxzZVwiIFt2YWx1ZV09XCJlbXB0eVZhbHVlXCI+e3tlbXB0eVRleHR9fTwvbWF0LW9wdGlvbj5cbiAgICA8bWF0LW9wdGlvbiAqbmdJZj1cIm11bHRpID09PSB0cnVlXCIgW3ZhbHVlXT1cIm11bHRpU2VsZWN0VmFsdWVcIj57e211bHRpVGV4dCQgfCBhc3luY319PC9tYXQtb3B0aW9uPlxuICAgIDxuZy10ZW1wbGF0ZSBuZ0ZvciBsZXQtcmVjb3JkIFtuZ0Zvck9mXT1cInN0b3JlLnN0YXRlVmlldy5hbGwkKCkgfCBhc3luY1wiPlxuICAgICAgPG1hdC1vcHRpb24gW3ZhbHVlXT1cInJlY29yZC5lbnRpdHlcIj5cbiAgICAgICAge3t0aXRsZUFjY2Vzc29yKHJlY29yZC5lbnRpdHkpfX1cbiAgICAgIDwvbWF0LW9wdGlvbj5cbiAgICA8L25nLXRlbXBsYXRlPlxuICA8L21hdC1zZWxlY3Q+XG48L21hdC1mb3JtLWZpZWxkPlxuIl19
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
5
|
-
import { EntitySelectorComponent } from './entity-selector.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export class IgoEntitySelectorModule {
|
|
11
|
-
}
|
|
12
|
-
IgoEntitySelectorModule.ɵfac = function IgoEntitySelectorModule_Factory(t) { return new (t || IgoEntitySelectorModule)(); };
|
|
13
|
-
IgoEntitySelectorModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoEntitySelectorModule });
|
|
14
|
-
IgoEntitySelectorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
15
|
-
FormsModule,
|
|
16
|
-
MatSelectModule] });
|
|
17
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoEntitySelectorModule, [{
|
|
18
|
-
type: NgModule,
|
|
19
|
-
args: [{
|
|
20
|
-
imports: [
|
|
21
|
-
CommonModule,
|
|
22
|
-
FormsModule,
|
|
23
|
-
MatSelectModule
|
|
24
|
-
],
|
|
25
|
-
exports: [EntitySelectorComponent],
|
|
26
|
-
declarations: [EntitySelectorComponent]
|
|
27
|
-
}]
|
|
28
|
-
}], null, null); })();
|
|
29
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoEntitySelectorModule, { declarations: [EntitySelectorComponent], imports: [CommonModule,
|
|
30
|
-
FormsModule,
|
|
31
|
-
MatSelectModule], exports: [EntitySelectorComponent] }); })();
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
5
|
+
import { EntitySelectorComponent } from './entity-selector.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
export class IgoEntitySelectorModule {
|
|
11
|
+
}
|
|
12
|
+
IgoEntitySelectorModule.ɵfac = function IgoEntitySelectorModule_Factory(t) { return new (t || IgoEntitySelectorModule)(); };
|
|
13
|
+
IgoEntitySelectorModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoEntitySelectorModule });
|
|
14
|
+
IgoEntitySelectorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
15
|
+
FormsModule,
|
|
16
|
+
MatSelectModule] });
|
|
17
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoEntitySelectorModule, [{
|
|
18
|
+
type: NgModule,
|
|
19
|
+
args: [{
|
|
20
|
+
imports: [
|
|
21
|
+
CommonModule,
|
|
22
|
+
FormsModule,
|
|
23
|
+
MatSelectModule
|
|
24
|
+
],
|
|
25
|
+
exports: [EntitySelectorComponent],
|
|
26
|
+
declarations: [EntitySelectorComponent]
|
|
27
|
+
}]
|
|
28
|
+
}], null, null); })();
|
|
29
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoEntitySelectorModule, { declarations: [EntitySelectorComponent], imports: [CommonModule,
|
|
30
|
+
FormsModule,
|
|
31
|
+
MatSelectModule], exports: [EntitySelectorComponent] }); })();
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LXNlbGVjdG9yLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2VudGl0eS9lbnRpdHktc2VsZWN0b3IvZW50aXR5LXNlbGVjdG9yLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0MsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRTNELE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDOztBQUV0RTs7R0FFRztBQVVILE1BQU0sT0FBTyx1QkFBdUI7OzhGQUF2Qix1QkFBdUI7eUVBQXZCLHVCQUF1Qjs2RUFQaEMsWUFBWTtRQUNaLFdBQVc7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