@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,29 +1,29 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./entity-table.component";
|
|
3
|
-
import * as i2 from "./entity-table-row.directive";
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@angular/material/table";
|
|
6
|
-
import * as i5 from "@angular/material/autocomplete";
|
|
7
|
-
import * as i6 from "@angular/material/sort";
|
|
8
|
-
import * as i7 from "@angular/material/icon";
|
|
9
|
-
import * as i8 from "@angular/material/button";
|
|
10
|
-
import * as i9 from "@angular/material/checkbox";
|
|
11
|
-
import * as i10 from "@angular/material/paginator";
|
|
12
|
-
import * as i11 from "@angular/material/select";
|
|
13
|
-
import * as i12 from "../../stop-propagation/stop-propagation.module";
|
|
14
|
-
import * as i13 from "../../custom-html/custom-html.module";
|
|
15
|
-
import * as i14 from "../entity-table-paginator/entity-table-paginator.module";
|
|
16
|
-
import * as i15 from "../../image/image.module";
|
|
17
|
-
import * as i16 from "@igo2/core";
|
|
18
|
-
import * as i17 from "@angular/forms";
|
|
19
|
-
import * as i18 from "@angular/material/input";
|
|
20
|
-
import * as i19 from "@angular/material/datepicker";
|
|
21
|
-
import * as i20 from "@angular/material/tooltip";
|
|
22
|
-
/**
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
export declare class IgoEntityTableModule {
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTableModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTableModule, [typeof i1.EntityTableComponent, typeof i2.EntityTableRowDirective], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatAutocompleteModule, typeof i6.MatSortModule, typeof i7.MatIconModule, typeof i8.MatButtonModule, typeof i9.MatCheckboxModule, typeof i10.MatPaginatorModule, typeof i11.MatSelectModule, typeof i12.IgoStopPropagationModule, typeof i13.IgoCustomHtmlModule, typeof i14.IgoEntityTablePaginatorModule, typeof i15.IgoImageModule, typeof i16.IgoLanguageModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.MatInputModule, typeof i19.MatDatepickerModule, typeof i20.MatTooltipModule], [typeof i1.EntityTableComponent]>;
|
|
28
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTableModule>;
|
|
29
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./entity-table.component";
|
|
3
|
+
import * as i2 from "./entity-table-row.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/material/table";
|
|
6
|
+
import * as i5 from "@angular/material/autocomplete";
|
|
7
|
+
import * as i6 from "@angular/material/sort";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/checkbox";
|
|
11
|
+
import * as i10 from "@angular/material/paginator";
|
|
12
|
+
import * as i11 from "@angular/material/select";
|
|
13
|
+
import * as i12 from "../../stop-propagation/stop-propagation.module";
|
|
14
|
+
import * as i13 from "../../custom-html/custom-html.module";
|
|
15
|
+
import * as i14 from "../entity-table-paginator/entity-table-paginator.module";
|
|
16
|
+
import * as i15 from "../../image/image.module";
|
|
17
|
+
import * as i16 from "@igo2/core";
|
|
18
|
+
import * as i17 from "@angular/forms";
|
|
19
|
+
import * as i18 from "@angular/material/input";
|
|
20
|
+
import * as i19 from "@angular/material/datepicker";
|
|
21
|
+
import * as i20 from "@angular/material/tooltip";
|
|
22
|
+
/**
|
|
23
|
+
* @ignore
|
|
24
|
+
*/
|
|
25
|
+
export declare class IgoEntityTableModule {
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTableModule, never>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTableModule, [typeof i1.EntityTableComponent, typeof i2.EntityTableRowDirective], [typeof i3.CommonModule, typeof i4.MatTableModule, typeof i5.MatAutocompleteModule, typeof i6.MatSortModule, typeof i7.MatIconModule, typeof i8.MatButtonModule, typeof i9.MatCheckboxModule, typeof i10.MatPaginatorModule, typeof i11.MatSelectModule, typeof i12.IgoStopPropagationModule, typeof i13.IgoCustomHtmlModule, typeof i14.IgoEntityTablePaginatorModule, typeof i15.IgoImageModule, typeof i16.IgoLanguageModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.MatInputModule, typeof i19.MatDatepickerModule, typeof i20.MatTooltipModule], [typeof i1.EntityTableComponent]>;
|
|
28
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTableModule>;
|
|
29
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { OnChanges, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { EntityStore } from '../shared';
|
|
3
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { LanguageService, MediaService } from '@igo2/core';
|
|
6
|
-
import { EntityTablePaginatorOptions } from './entity-table-paginator.interface';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class EntityTablePaginatorComponent implements OnChanges, OnDestroy {
|
|
9
|
-
private languageService;
|
|
10
|
-
private mediaService;
|
|
11
|
-
disabled: boolean;
|
|
12
|
-
hidePageSize: boolean;
|
|
13
|
-
pageIndex: number;
|
|
14
|
-
pageSize: number;
|
|
15
|
-
pageSizeOptions: number[];
|
|
16
|
-
showFirstLastButtons: boolean;
|
|
17
|
-
private count$$;
|
|
18
|
-
private entitySortChange$$;
|
|
19
|
-
private paginationLabelTranslation$$;
|
|
20
|
-
entitySortChange$: BehaviorSubject<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* Entity store
|
|
23
|
-
*/
|
|
24
|
-
store: EntityStore<object>;
|
|
25
|
-
/**
|
|
26
|
-
* Paginator options
|
|
27
|
-
*/
|
|
28
|
-
paginatorOptions: EntityTablePaginatorOptions;
|
|
29
|
-
/**
|
|
30
|
-
* Event emitted when the paginator changes the page size or page index.
|
|
31
|
-
*/
|
|
32
|
-
page: EventEmitter<PageEvent>;
|
|
33
|
-
length: number;
|
|
34
|
-
/**
|
|
35
|
-
* Paginator emitted.
|
|
36
|
-
*/
|
|
37
|
-
paginatorChange: EventEmitter<MatPaginator>;
|
|
38
|
-
constructor(languageService: LanguageService, mediaService: MediaService);
|
|
39
|
-
paginator: MatPaginator;
|
|
40
|
-
ngOnChanges(): void;
|
|
41
|
-
initPaginatorOptions(): void;
|
|
42
|
-
translateLabels(): void;
|
|
43
|
-
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
44
|
-
private unsubscribeAll;
|
|
45
|
-
ngOnDestroy(): void;
|
|
46
|
-
emitPaginator(): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTablePaginatorComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntityTablePaginatorComponent, "igo-entity-table-paginator", never, { "entitySortChange$": "entitySortChange$"; "store": "store"; "paginatorOptions": "paginatorOptions"; }, { "page": "page"; "paginatorChange": "paginatorChange"; }, never, never, false>;
|
|
49
|
-
}
|
|
1
|
+
import { OnChanges, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { EntityStore } from '../shared';
|
|
3
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { LanguageService, MediaService } from '@igo2/core';
|
|
6
|
+
import { EntityTablePaginatorOptions } from './entity-table-paginator.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class EntityTablePaginatorComponent implements OnChanges, OnDestroy {
|
|
9
|
+
private languageService;
|
|
10
|
+
private mediaService;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
hidePageSize: boolean;
|
|
13
|
+
pageIndex: number;
|
|
14
|
+
pageSize: number;
|
|
15
|
+
pageSizeOptions: number[];
|
|
16
|
+
showFirstLastButtons: boolean;
|
|
17
|
+
private count$$;
|
|
18
|
+
private entitySortChange$$;
|
|
19
|
+
private paginationLabelTranslation$$;
|
|
20
|
+
entitySortChange$: BehaviorSubject<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* Entity store
|
|
23
|
+
*/
|
|
24
|
+
store: EntityStore<object>;
|
|
25
|
+
/**
|
|
26
|
+
* Paginator options
|
|
27
|
+
*/
|
|
28
|
+
paginatorOptions: EntityTablePaginatorOptions;
|
|
29
|
+
/**
|
|
30
|
+
* Event emitted when the paginator changes the page size or page index.
|
|
31
|
+
*/
|
|
32
|
+
page: EventEmitter<PageEvent>;
|
|
33
|
+
length: number;
|
|
34
|
+
/**
|
|
35
|
+
* Paginator emitted.
|
|
36
|
+
*/
|
|
37
|
+
paginatorChange: EventEmitter<MatPaginator>;
|
|
38
|
+
constructor(languageService: LanguageService, mediaService: MediaService);
|
|
39
|
+
paginator: MatPaginator;
|
|
40
|
+
ngOnChanges(): void;
|
|
41
|
+
initPaginatorOptions(): void;
|
|
42
|
+
translateLabels(): void;
|
|
43
|
+
rangeLabel: (page: number, pageSize: number, length: number) => string;
|
|
44
|
+
private unsubscribeAll;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
emitPaginator(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntityTablePaginatorComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityTablePaginatorComponent, "igo-entity-table-paginator", never, { "entitySortChange$": "entitySortChange$"; "store": "store"; "paginatorOptions": "paginatorOptions"; }, { "page": "page"; "paginatorChange": "paginatorChange"; }, never, never, false>;
|
|
49
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface EntityTablePaginatorOptions {
|
|
2
|
-
disabled?: boolean;
|
|
3
|
-
hidePageSize?: boolean;
|
|
4
|
-
pageIndex?: number;
|
|
5
|
-
pageSize?: number;
|
|
6
|
-
pageSizeOptions?: number[];
|
|
7
|
-
showFirstLastButtons?: boolean;
|
|
8
|
-
}
|
|
1
|
+
export interface EntityTablePaginatorOptions {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
hidePageSize?: boolean;
|
|
4
|
+
pageIndex?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
pageSizeOptions?: number[];
|
|
7
|
+
showFirstLastButtons?: boolean;
|
|
8
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./entity-table-paginator.component";
|
|
3
|
-
import * as i2 from "@angular/material/paginator";
|
|
4
|
-
/**
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export declare class IgoEntityTablePaginatorModule {
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTablePaginatorModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTablePaginatorModule, [typeof i1.EntityTablePaginatorComponent], [typeof i2.MatPaginatorModule], [typeof i1.EntityTablePaginatorComponent]>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTablePaginatorModule>;
|
|
11
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./entity-table-paginator.component";
|
|
3
|
+
import * as i2 from "@angular/material/paginator";
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
export declare class IgoEntityTablePaginatorModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityTablePaginatorModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityTablePaginatorModule, [typeof i1.EntityTablePaginatorComponent], [typeof i2.MatPaginatorModule], [typeof i1.EntityTablePaginatorComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityTablePaginatorModule>;
|
|
11
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/common";
|
|
3
|
-
import * as i2 from "./entity-selector/entity-selector.module";
|
|
4
|
-
import * as i3 from "./entity-table/entity-table.module";
|
|
5
|
-
import * as i4 from "./entity-table-paginator/entity-table-paginator.module";
|
|
6
|
-
export declare class IgoEntityModule {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityModule, never, [typeof i1.CommonModule], [typeof i2.IgoEntitySelectorModule, typeof i3.IgoEntityTableModule, typeof i4.IgoEntityTablePaginatorModule]>;
|
|
9
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityModule>;
|
|
10
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./entity-selector/entity-selector.module";
|
|
4
|
+
import * as i3 from "./entity-table/entity-table.module";
|
|
5
|
+
import * as i4 from "./entity-table-paginator/entity-table-paginator.module";
|
|
6
|
+
export declare class IgoEntityModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IgoEntityModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoEntityModule, never, [typeof i1.CommonModule], [typeof i2.IgoEntitySelectorModule, typeof i3.IgoEntityTableModule, typeof i4.IgoEntityTablePaginatorModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IgoEntityModule>;
|
|
10
|
+
}
|
package/lib/entity/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './entity-selector/entity-selector.component';
|
|
3
|
-
export * from './entity-table/entity-table.component';
|
|
4
|
-
export * from './entity-table-paginator/entity-table-paginator.component';
|
|
5
|
-
export * from './entity-table-paginator/entity-table-paginator.interface';
|
|
1
|
+
export * from './shared';
|
|
2
|
+
export * from './entity-selector/entity-selector.component';
|
|
3
|
+
export * from './entity-table/entity-table.component';
|
|
4
|
+
export * from './entity-table-paginator/entity-table-paginator.component';
|
|
5
|
+
export * from './entity-table-paginator/entity-table-paginator.interface';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare enum EntityOperationType {
|
|
2
|
-
Insert = "Insert",
|
|
3
|
-
Update = "Update",
|
|
4
|
-
Delete = "Delete"
|
|
5
|
-
}
|
|
6
|
-
export declare enum EntityTableColumnRenderer {
|
|
7
|
-
Default = "Default",
|
|
8
|
-
HTML = "HTML",
|
|
9
|
-
UnsanitizedHTML = "UnsanitizedHTML",
|
|
10
|
-
Editable = "Editable",
|
|
11
|
-
Icon = "Icon",
|
|
12
|
-
ButtonGroup = "ButtonGroup"
|
|
13
|
-
}
|
|
14
|
-
export declare enum EntityTableScrollBehavior {
|
|
15
|
-
Auto = "auto",
|
|
16
|
-
Instant = "instant",
|
|
17
|
-
Smooth = "smooth"
|
|
18
|
-
}
|
|
19
|
-
export declare enum EntityTableSelectionState {
|
|
20
|
-
None = "None",
|
|
21
|
-
All = "All",
|
|
22
|
-
Some = "Some"
|
|
23
|
-
}
|
|
1
|
+
export declare enum EntityOperationType {
|
|
2
|
+
Insert = "Insert",
|
|
3
|
+
Update = "Update",
|
|
4
|
+
Delete = "Delete"
|
|
5
|
+
}
|
|
6
|
+
export declare enum EntityTableColumnRenderer {
|
|
7
|
+
Default = "Default",
|
|
8
|
+
HTML = "HTML",
|
|
9
|
+
UnsanitizedHTML = "UnsanitizedHTML",
|
|
10
|
+
Editable = "Editable",
|
|
11
|
+
Icon = "Icon",
|
|
12
|
+
ButtonGroup = "ButtonGroup"
|
|
13
|
+
}
|
|
14
|
+
export declare enum EntityTableScrollBehavior {
|
|
15
|
+
Auto = "auto",
|
|
16
|
+
Instant = "instant",
|
|
17
|
+
Smooth = "smooth"
|
|
18
|
+
}
|
|
19
|
+
export declare enum EntityTableSelectionState {
|
|
20
|
+
None = "None",
|
|
21
|
+
All = "All",
|
|
22
|
+
Some = "Some"
|
|
23
|
+
}
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { EntityOperationType, EntityTableColumnRenderer } from './entity.enums';
|
|
3
|
-
import { EntityStore } from './store';
|
|
4
|
-
export declare type EntityKey = string | number;
|
|
5
|
-
export interface EntityState {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
}
|
|
8
|
-
export interface EntityRecord<E extends object, S extends EntityState = EntityState> {
|
|
9
|
-
entity: E;
|
|
10
|
-
state: S;
|
|
11
|
-
revision: number;
|
|
12
|
-
ref: string;
|
|
13
|
-
edition?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface EntityStoreOptions {
|
|
16
|
-
getKey?: (entity: object) => EntityKey;
|
|
17
|
-
getProperty?: (entity: object, property: string) => any;
|
|
18
|
-
}
|
|
19
|
-
export interface EntityStateManagerOptions {
|
|
20
|
-
getKey?: (entity: object) => EntityKey;
|
|
21
|
-
store?: EntityStore<object>;
|
|
22
|
-
}
|
|
23
|
-
export interface EntityStoreStrategyOptions {
|
|
24
|
-
}
|
|
25
|
-
export interface EntityStoreStrategyFuncOptions extends EntityStoreStrategyOptions {
|
|
26
|
-
filterClauseFunc: EntityFilterClause;
|
|
27
|
-
}
|
|
28
|
-
export interface EntityTransactionOptions {
|
|
29
|
-
getKey?: (entity: object) => EntityKey;
|
|
30
|
-
}
|
|
31
|
-
export declare type EntityFilterClause<E = object> = (entity: E) => boolean;
|
|
32
|
-
export interface EntitySortClause<E = object> {
|
|
33
|
-
valueAccessor: (entity: E) => string | number;
|
|
34
|
-
direction: string;
|
|
35
|
-
nullsFirst?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface EntityJoinClause {
|
|
38
|
-
source: Observable<any | void>;
|
|
39
|
-
reduce: (param1: object, param2: any) => object;
|
|
40
|
-
}
|
|
41
|
-
export interface EntityOperation<E extends object = object> {
|
|
42
|
-
key: EntityKey;
|
|
43
|
-
type: EntityOperationType;
|
|
44
|
-
previous: E | undefined;
|
|
45
|
-
current: E | undefined;
|
|
46
|
-
store?: EntityStore<E>;
|
|
47
|
-
meta?: {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export interface EntityOperationState {
|
|
52
|
-
added: boolean;
|
|
53
|
-
canceled: boolean;
|
|
54
|
-
}
|
|
55
|
-
export interface EntityTableTemplate {
|
|
56
|
-
columns: EntityTableColumn[];
|
|
57
|
-
selection?: boolean;
|
|
58
|
-
selectionCheckbox?: boolean;
|
|
59
|
-
selectMany?: boolean;
|
|
60
|
-
sort?: boolean;
|
|
61
|
-
fixedHeader?: boolean;
|
|
62
|
-
tableHeight?: string;
|
|
63
|
-
valueAccessor?: (entity: object, property: string, record: EntityRecord<object>) => any;
|
|
64
|
-
headerClassFunc?: () => {
|
|
65
|
-
[key: string]: boolean;
|
|
66
|
-
};
|
|
67
|
-
rowClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
68
|
-
[key: string]: boolean;
|
|
69
|
-
};
|
|
70
|
-
cellClassFunc?: (entity: object, column: EntityTableColumn, record: EntityRecord<object>) => {
|
|
71
|
-
[key: string]: boolean;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
export interface EntityTableColumnValidation {
|
|
75
|
-
readonly?: boolean;
|
|
76
|
-
mandatory?: boolean;
|
|
77
|
-
maxlength?: number;
|
|
78
|
-
minlength?: number;
|
|
79
|
-
minValue?: number;
|
|
80
|
-
maxValue?: number;
|
|
81
|
-
}
|
|
82
|
-
export interface TableRelation {
|
|
83
|
-
table: string;
|
|
84
|
-
}
|
|
85
|
-
export interface EntityTableColumn {
|
|
86
|
-
validation?: EntityTableColumnValidation;
|
|
87
|
-
name: string;
|
|
88
|
-
title: string;
|
|
89
|
-
renderer?: EntityTableColumnRenderer;
|
|
90
|
-
valueAccessor?: (entity: object, record: EntityRecord<object>) => any;
|
|
91
|
-
visible?: boolean;
|
|
92
|
-
linkColumnForce?: string;
|
|
93
|
-
sort?: boolean;
|
|
94
|
-
type?: string;
|
|
95
|
-
multiple?: boolean;
|
|
96
|
-
domainValues?: Array<SelectOption>;
|
|
97
|
-
relation?: TableRelation;
|
|
98
|
-
tooltip?: string;
|
|
99
|
-
cellClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
100
|
-
[key: string]: boolean;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface SelectOption {
|
|
104
|
-
id: number;
|
|
105
|
-
value: string;
|
|
106
|
-
}
|
|
107
|
-
export interface EntityTableButton {
|
|
108
|
-
icon: string;
|
|
109
|
-
click: (entity: object, record: EntityRecord<object>) => void;
|
|
110
|
-
color?: 'primary' | 'accent' | 'warn';
|
|
111
|
-
disabled?: boolean;
|
|
112
|
-
style?: 'mat-mini-fab' | 'mat-icon-button';
|
|
113
|
-
editMode?: boolean;
|
|
114
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { EntityOperationType, EntityTableColumnRenderer } from './entity.enums';
|
|
3
|
+
import { EntityStore } from './store';
|
|
4
|
+
export declare type EntityKey = string | number;
|
|
5
|
+
export interface EntityState {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export interface EntityRecord<E extends object, S extends EntityState = EntityState> {
|
|
9
|
+
entity: E;
|
|
10
|
+
state: S;
|
|
11
|
+
revision: number;
|
|
12
|
+
ref: string;
|
|
13
|
+
edition?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface EntityStoreOptions {
|
|
16
|
+
getKey?: (entity: object) => EntityKey;
|
|
17
|
+
getProperty?: (entity: object, property: string) => any;
|
|
18
|
+
}
|
|
19
|
+
export interface EntityStateManagerOptions {
|
|
20
|
+
getKey?: (entity: object) => EntityKey;
|
|
21
|
+
store?: EntityStore<object>;
|
|
22
|
+
}
|
|
23
|
+
export interface EntityStoreStrategyOptions {
|
|
24
|
+
}
|
|
25
|
+
export interface EntityStoreStrategyFuncOptions extends EntityStoreStrategyOptions {
|
|
26
|
+
filterClauseFunc: EntityFilterClause;
|
|
27
|
+
}
|
|
28
|
+
export interface EntityTransactionOptions {
|
|
29
|
+
getKey?: (entity: object) => EntityKey;
|
|
30
|
+
}
|
|
31
|
+
export declare type EntityFilterClause<E = object> = (entity: E) => boolean;
|
|
32
|
+
export interface EntitySortClause<E = object> {
|
|
33
|
+
valueAccessor: (entity: E) => string | number;
|
|
34
|
+
direction: string;
|
|
35
|
+
nullsFirst?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface EntityJoinClause {
|
|
38
|
+
source: Observable<any | void>;
|
|
39
|
+
reduce: (param1: object, param2: any) => object;
|
|
40
|
+
}
|
|
41
|
+
export interface EntityOperation<E extends object = object> {
|
|
42
|
+
key: EntityKey;
|
|
43
|
+
type: EntityOperationType;
|
|
44
|
+
previous: E | undefined;
|
|
45
|
+
current: E | undefined;
|
|
46
|
+
store?: EntityStore<E>;
|
|
47
|
+
meta?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface EntityOperationState {
|
|
52
|
+
added: boolean;
|
|
53
|
+
canceled: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface EntityTableTemplate {
|
|
56
|
+
columns: EntityTableColumn[];
|
|
57
|
+
selection?: boolean;
|
|
58
|
+
selectionCheckbox?: boolean;
|
|
59
|
+
selectMany?: boolean;
|
|
60
|
+
sort?: boolean;
|
|
61
|
+
fixedHeader?: boolean;
|
|
62
|
+
tableHeight?: string;
|
|
63
|
+
valueAccessor?: (entity: object, property: string, record: EntityRecord<object>) => any;
|
|
64
|
+
headerClassFunc?: () => {
|
|
65
|
+
[key: string]: boolean;
|
|
66
|
+
};
|
|
67
|
+
rowClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
68
|
+
[key: string]: boolean;
|
|
69
|
+
};
|
|
70
|
+
cellClassFunc?: (entity: object, column: EntityTableColumn, record: EntityRecord<object>) => {
|
|
71
|
+
[key: string]: boolean;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export interface EntityTableColumnValidation {
|
|
75
|
+
readonly?: boolean;
|
|
76
|
+
mandatory?: boolean;
|
|
77
|
+
maxlength?: number;
|
|
78
|
+
minlength?: number;
|
|
79
|
+
minValue?: number;
|
|
80
|
+
maxValue?: number;
|
|
81
|
+
}
|
|
82
|
+
export interface TableRelation {
|
|
83
|
+
table: string;
|
|
84
|
+
}
|
|
85
|
+
export interface EntityTableColumn {
|
|
86
|
+
validation?: EntityTableColumnValidation;
|
|
87
|
+
name: string;
|
|
88
|
+
title: string;
|
|
89
|
+
renderer?: EntityTableColumnRenderer;
|
|
90
|
+
valueAccessor?: (entity: object, record: EntityRecord<object>) => any;
|
|
91
|
+
visible?: boolean;
|
|
92
|
+
linkColumnForce?: string;
|
|
93
|
+
sort?: boolean;
|
|
94
|
+
type?: string;
|
|
95
|
+
multiple?: boolean;
|
|
96
|
+
domainValues?: Array<SelectOption>;
|
|
97
|
+
relation?: TableRelation;
|
|
98
|
+
tooltip?: string;
|
|
99
|
+
cellClassFunc?: (entity: object, record: EntityRecord<object>) => {
|
|
100
|
+
[key: string]: boolean;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export interface SelectOption {
|
|
104
|
+
id: number;
|
|
105
|
+
value: string;
|
|
106
|
+
}
|
|
107
|
+
export interface EntityTableButton {
|
|
108
|
+
icon: string;
|
|
109
|
+
click: (entity: object, record: EntityRecord<object>) => void;
|
|
110
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
111
|
+
disabled?: boolean;
|
|
112
|
+
style?: 'mat-mini-fab' | 'mat-icon-button';
|
|
113
|
+
editMode?: boolean;
|
|
114
|
+
}
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { EntityKey } from './entity.interfaces';
|
|
2
|
-
/**
|
|
3
|
-
* Get an entity's named property. Nested properties are supported
|
|
4
|
-
* with the dotted notation. (i.e 'author.name')
|
|
5
|
-
*
|
|
6
|
-
* Note: this method is a 'best attempt' at getting an entity's property.
|
|
7
|
-
* It fits the most common cases but you might need to explicitely define
|
|
8
|
-
* a property getter when using an EntityStore, for example.
|
|
9
|
-
* @param entity Entity
|
|
10
|
-
* @param property Property name
|
|
11
|
-
* @returns Property value
|
|
12
|
-
*/
|
|
13
|
-
export declare function getEntityProperty(entity: object, property: string): any;
|
|
14
|
-
/**
|
|
15
|
-
* Get an entity's id. An entity's id can be one of:
|
|
16
|
-
* 'entity.meta.id', 'entity.meta.idProperty' or 'entity.id'.
|
|
17
|
-
*
|
|
18
|
-
* Note: See the note in the 'getEntityProperty' documentation.
|
|
19
|
-
* @param entity Entity
|
|
20
|
-
* @returns Entity id
|
|
21
|
-
*/
|
|
22
|
-
export declare function getEntityId(entity: object): EntityKey;
|
|
23
|
-
/**
|
|
24
|
-
* Get an entity's title. An entity's title can be one of:
|
|
25
|
-
* 'entity.meta.title', 'entity.meta.titleProperty' or 'entity.title'.
|
|
26
|
-
* @param entity Entity
|
|
27
|
-
* @returns Entity title
|
|
28
|
-
*/
|
|
29
|
-
export declare function getEntityTitle(entity: object): string;
|
|
30
|
-
/**
|
|
31
|
-
* Get an entity's HTML title. An entity's HTML title can be one of:
|
|
32
|
-
* 'entity.meta.titleHtml', 'entity.meta.titleHtmlProperty' or 'entity.titleHtml'.
|
|
33
|
-
* @param entity Entity
|
|
34
|
-
* @returns Entity HTML title
|
|
35
|
-
*/
|
|
36
|
-
export declare function getEntityTitleHtml(entity: object): string;
|
|
37
|
-
/**
|
|
38
|
-
* Get an entity's icon. An entity's icon can be one of:
|
|
39
|
-
* 'entity.meta.icon', 'entity.meta.iconProperty' or 'entity.icon'.
|
|
40
|
-
* @param entity Entity
|
|
41
|
-
* @returns Entity icon
|
|
42
|
-
*/
|
|
43
|
-
export declare function getEntityIcon(entity: object): string;
|
|
44
|
-
/**
|
|
45
|
-
* Get an entity's revision.
|
|
46
|
-
* @param entity Entity
|
|
47
|
-
* @returns Entity revision
|
|
48
|
-
*/
|
|
49
|
-
export declare function getEntityRevision(entity: object): number;
|
|
1
|
+
import { EntityKey } from './entity.interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Get an entity's named property. Nested properties are supported
|
|
4
|
+
* with the dotted notation. (i.e 'author.name')
|
|
5
|
+
*
|
|
6
|
+
* Note: this method is a 'best attempt' at getting an entity's property.
|
|
7
|
+
* It fits the most common cases but you might need to explicitely define
|
|
8
|
+
* a property getter when using an EntityStore, for example.
|
|
9
|
+
* @param entity Entity
|
|
10
|
+
* @param property Property name
|
|
11
|
+
* @returns Property value
|
|
12
|
+
*/
|
|
13
|
+
export declare function getEntityProperty(entity: object, property: string): any;
|
|
14
|
+
/**
|
|
15
|
+
* Get an entity's id. An entity's id can be one of:
|
|
16
|
+
* 'entity.meta.id', 'entity.meta.idProperty' or 'entity.id'.
|
|
17
|
+
*
|
|
18
|
+
* Note: See the note in the 'getEntityProperty' documentation.
|
|
19
|
+
* @param entity Entity
|
|
20
|
+
* @returns Entity id
|
|
21
|
+
*/
|
|
22
|
+
export declare function getEntityId(entity: object): EntityKey;
|
|
23
|
+
/**
|
|
24
|
+
* Get an entity's title. An entity's title can be one of:
|
|
25
|
+
* 'entity.meta.title', 'entity.meta.titleProperty' or 'entity.title'.
|
|
26
|
+
* @param entity Entity
|
|
27
|
+
* @returns Entity title
|
|
28
|
+
*/
|
|
29
|
+
export declare function getEntityTitle(entity: object): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get an entity's HTML title. An entity's HTML title can be one of:
|
|
32
|
+
* 'entity.meta.titleHtml', 'entity.meta.titleHtmlProperty' or 'entity.titleHtml'.
|
|
33
|
+
* @param entity Entity
|
|
34
|
+
* @returns Entity HTML title
|
|
35
|
+
*/
|
|
36
|
+
export declare function getEntityTitleHtml(entity: object): string;
|
|
37
|
+
/**
|
|
38
|
+
* Get an entity's icon. An entity's icon can be one of:
|
|
39
|
+
* 'entity.meta.icon', 'entity.meta.iconProperty' or 'entity.icon'.
|
|
40
|
+
* @param entity Entity
|
|
41
|
+
* @returns Entity icon
|
|
42
|
+
*/
|
|
43
|
+
export declare function getEntityIcon(entity: object): string;
|
|
44
|
+
/**
|
|
45
|
+
* Get an entity's revision.
|
|
46
|
+
* @param entity Entity
|
|
47
|
+
* @returns Entity revision
|
|
48
|
+
*/
|
|
49
|
+
export declare function getEntityRevision(entity: object): number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './entity.enums';
|
|
2
|
-
export * from './entity.interfaces';
|
|
3
|
-
export * from './entity.utils';
|
|
4
|
-
export * from './store';
|
|
5
|
-
export * from './state';
|
|
6
|
-
export * from './watcher';
|
|
7
|
-
export * from './transaction';
|
|
8
|
-
export * from './view';
|
|
9
|
-
export * from './strategies';
|
|
1
|
+
export * from './entity.enums';
|
|
2
|
+
export * from './entity.interfaces';
|
|
3
|
+
export * from './entity.utils';
|
|
4
|
+
export * from './store';
|
|
5
|
+
export * from './state';
|
|
6
|
+
export * from './watcher';
|
|
7
|
+
export * from './transaction';
|
|
8
|
+
export * from './view';
|
|
9
|
+
export * from './strategies';
|