@igo2/common 1.15.4 → 1.15.5
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 +27 -27
- package/esm2020/lib/action/actionbar/actionbar-item.component.mjs +252 -252
- package/esm2020/lib/action/actionbar/actionbar.component.mjs +370 -370
- package/esm2020/lib/action/actionbar/actionbar.module.mjs +57 -57
- 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 +2 -2
- package/esm2020/lib/action/shared/index.mjs +4 -4
- package/esm2020/lib/action/shared/store.mjs +8 -8
- package/esm2020/lib/backdrop/backdrop.component.mjs +26 -26
- package/esm2020/lib/backdrop/backdrop.module.mjs +25 -25
- package/esm2020/lib/backdrop/index.mjs +2 -2
- package/esm2020/lib/badge-icon/badge-icon.directive.mjs +141 -141
- package/esm2020/lib/badge-icon/badge-icon.module.mjs +26 -26
- package/esm2020/lib/badge-icon/index.mjs +2 -2
- package/esm2020/lib/clickout/clickout.directive.mjs +32 -32
- package/esm2020/lib/clickout/clickout.module.mjs +24 -24
- package/esm2020/lib/clickout/index.mjs +2 -2
- package/esm2020/lib/clone/clone.module.mjs +24 -24
- package/esm2020/lib/clone/clone.pipe.mjs +24 -24
- package/esm2020/lib/clone/index.mjs +2 -2
- package/esm2020/lib/collapsible/collapse.directive.mjs +55 -55
- package/esm2020/lib/collapsible/collapsible.component.mjs +57 -57
- package/esm2020/lib/collapsible/collapsible.module.mjs +27 -27
- package/esm2020/lib/collapsible/index.mjs +3 -3
- package/esm2020/lib/confirm-dialog/confirm-dialog.component.mjs +44 -44
- package/esm2020/lib/confirm-dialog/confirm-dialog.module.mjs +29 -29
- package/esm2020/lib/confirm-dialog/confirm-dialog.service.mjs +24 -24
- package/esm2020/lib/confirm-dialog/index.mjs +3 -3
- package/esm2020/lib/context-menu/context-menu.directive.mjs +103 -103
- package/esm2020/lib/context-menu/context-menu.module.mjs +25 -25
- package/esm2020/lib/context-menu/index.mjs +3 -3
- package/esm2020/lib/context-menu/long-press.directive.mjs +67 -67
- package/esm2020/lib/custom-html/custom-html.component.mjs +28 -28
- package/esm2020/lib/custom-html/custom-html.module.mjs +47 -47
- package/esm2020/lib/custom-html/custom-html.pipe.mjs +18 -18
- package/esm2020/lib/custom-html/index.mjs +3 -3
- package/esm2020/lib/dom/dom.interfaces.mjs +2 -2
- package/esm2020/lib/dom/dom.module.mjs +23 -23
- package/esm2020/lib/dom/dom.service.mjs +30 -30
- 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 +24 -24
- package/esm2020/lib/drag-drop/index.mjs +2 -2
- package/esm2020/lib/dynamic-component/dynamic-component.module.mjs +31 -31
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +122 -122
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +28 -28
- 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 +174 -174
- package/esm2020/lib/dynamic-component/shared/dynamic-component.service.mjs +29 -29
- package/esm2020/lib/dynamic-component/shared/index.mjs +4 -4
- package/esm2020/lib/entity/entity-selector/entity-selector.component.mjs +194 -194
- package/esm2020/lib/entity/entity-selector/entity-selector.module.mjs +32 -32
- package/esm2020/lib/entity/entity-table/entity-table-row.directive.mjs +137 -137
- package/esm2020/lib/entity/entity-table/entity-table.component.mjs +1376 -1376
- package/esm2020/lib/entity/entity-table/entity-table.module.mjs +102 -102
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +132 -132
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +2 -2
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +28 -28
- package/esm2020/lib/entity/entity.module.mjs +31 -31
- package/esm2020/lib/entity/index.mjs +6 -6
- package/esm2020/lib/entity/shared/entity.enums.mjs +28 -28
- package/esm2020/lib/entity/shared/entity.interfaces.mjs +2 -2
- package/esm2020/lib/entity/shared/entity.utils.mjs +67 -67
- package/esm2020/lib/entity/shared/index.mjs +10 -10
- package/esm2020/lib/entity/shared/state.mjs +191 -191
- package/esm2020/lib/entity/shared/store.mjs +288 -288
- package/esm2020/lib/entity/shared/strategies/filter-custom-function.mjs +79 -79
- package/esm2020/lib/entity/shared/strategies/filter-selection.mjs +84 -84
- package/esm2020/lib/entity/shared/strategies/index.mjs +4 -4
- package/esm2020/lib/entity/shared/strategies/strategy.mjs +75 -75
- package/esm2020/lib/entity/shared/transaction.mjs +316 -316
- package/esm2020/lib/entity/shared/view.mjs +315 -315
- package/esm2020/lib/entity/shared/watcher.mjs +120 -120
- package/esm2020/lib/flexible/flexible.component.mjs +148 -148
- package/esm2020/lib/flexible/flexible.module.mjs +24 -24
- 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 +117 -117
- package/esm2020/lib/form/form/form.module.mjs +40 -40
- package/esm2020/lib/form/form-field/form-field-select.component.mjs +127 -127
- package/esm2020/lib/form/form-field/form-field-text.component.mjs +104 -104
- package/esm2020/lib/form/form-field/form-field-textarea.component.mjs +105 -105
- package/esm2020/lib/form/form-field/form-field.component.mjs +72 -72
- package/esm2020/lib/form/form-field/form-field.module.mjs +74 -74
- package/esm2020/lib/form/form-field/index.mjs +5 -5
- package/esm2020/lib/form/form-group/form-group.component.mjs +105 -105
- package/esm2020/lib/form/form-group/form-group.module.mjs +40 -40
- package/esm2020/lib/form/form.module.mjs +49 -49
- package/esm2020/lib/form/index.mjs +5 -5
- package/esm2020/lib/form/shared/form-field-component.mjs +7 -7
- package/esm2020/lib/form/shared/form-field.service.mjs +29 -29
- package/esm2020/lib/form/shared/form.interfaces.mjs +2 -2
- package/esm2020/lib/form/shared/form.service.mjs +81 -81
- package/esm2020/lib/form/shared/form.utils.mjs +40 -40
- package/esm2020/lib/form/shared/index.mjs +6 -6
- package/esm2020/lib/home-button/home-button.component.mjs +31 -31
- package/esm2020/lib/home-button/home-button.module.mjs +41 -41
- package/esm2020/lib/home-button/index.mjs +2 -2
- package/esm2020/lib/image/image-error.directive.mjs +35 -35
- package/esm2020/lib/image/image.module.mjs +25 -25
- package/esm2020/lib/image/index.mjs +3 -3
- 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 +135 -135
- package/esm2020/lib/interactive-tour/interactive-tour.interface.mjs +2 -2
- package/esm2020/lib/interactive-tour/interactive-tour.loader.mjs +44 -44
- package/esm2020/lib/interactive-tour/interactive-tour.module.mjs +40 -40
- package/esm2020/lib/interactive-tour/interactive-tour.service.mjs +285 -285
- package/esm2020/lib/json-dialog/index.mjs +3 -3
- package/esm2020/lib/json-dialog/json-dialog.component.mjs +109 -109
- package/esm2020/lib/json-dialog/json-dialog.module.mjs +29 -29
- package/esm2020/lib/json-dialog/json-dialog.service.mjs +24 -24
- package/esm2020/lib/keyvalue/index.mjs +2 -2
- package/esm2020/lib/keyvalue/keyvalue.module.mjs +24 -24
- package/esm2020/lib/keyvalue/keyvalue.pipe.mjs +18 -18
- package/esm2020/lib/list/index.mjs +3 -3
- package/esm2020/lib/list/list-item.directive.mjs +165 -165
- package/esm2020/lib/list/list.component.mjs +262 -262
- package/esm2020/lib/list/list.module.mjs +29 -29
- package/esm2020/lib/panel/index.mjs +2 -2
- package/esm2020/lib/panel/panel.component.mjs +59 -59
- package/esm2020/lib/panel/panel.module.mjs +19 -19
- package/esm2020/lib/sidenav/index.mjs +2 -2
- package/esm2020/lib/sidenav/sidenav-shim.directive.mjs +55 -55
- package/esm2020/lib/sidenav/sidenav.module.mjs +24 -24
- package/esm2020/lib/spinner/index.mjs +3 -3
- package/esm2020/lib/spinner/spinner-activity.directive.mjs +47 -47
- package/esm2020/lib/spinner/spinner.component.mjs +35 -35
- package/esm2020/lib/spinner/spinner.module.mjs +21 -21
- package/esm2020/lib/stop-propagation/index.mjs +3 -3
- package/esm2020/lib/stop-propagation/stop-drop-propagation.directive.mjs +22 -22
- package/esm2020/lib/stop-propagation/stop-propagation.directive.mjs +21 -21
- package/esm2020/lib/stop-propagation/stop-propagation.module.mjs +25 -25
- 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 +61 -61
- package/esm2020/lib/table/table-model.interface.mjs +2 -2
- package/esm2020/lib/table/table.component.mjs +297 -297
- package/esm2020/lib/table/table.module.mjs +67 -67
- 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 +9 -9
- package/esm2020/lib/tool/shared/tool.interface.mjs +2 -2
- package/esm2020/lib/tool/shared/tool.service.mjs +43 -43
- package/esm2020/lib/tool/shared/toolbox.enums.mjs +7 -7
- package/esm2020/lib/tool/shared/toolbox.mjs +179 -179
- package/esm2020/lib/tool/tool.module.mjs +32 -32
- package/esm2020/lib/tool/toolbox/toolbox.animation.mjs +10 -10
- package/esm2020/lib/tool/toolbox/toolbox.component.mjs +255 -255
- package/esm2020/lib/tool/toolbox/toolbox.module.mjs +36 -36
- 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 +20 -20
- package/esm2020/lib/widget/widget-outlet/widget-outlet.component.mjs +116 -116
- package/esm2020/lib/widget/widget-outlet/widget-outlet.module.mjs +32 -32
- package/esm2020/lib/widget/widget.module.mjs +32 -32
- package/esm2020/lib/workspace/index.mjs +4 -4
- package/esm2020/lib/workspace/shared/index.mjs +4 -4
- package/esm2020/lib/workspace/shared/store.mjs +40 -40
- package/esm2020/lib/workspace/shared/workspace.interfaces.mjs +2 -2
- package/esm2020/lib/workspace/shared/workspace.mjs +117 -117
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.component.mjs +51 -51
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.module.mjs +32 -32
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +88 -88
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +32 -32
- package/esm2020/lib/workspace/workspace.module.mjs +27 -27
- package/esm2020/public_api.mjs +74 -74
- package/fesm2015/igo2-common.mjs +10016 -10016
- package/fesm2015/igo2-common.mjs.map +1 -1
- package/fesm2020/igo2-common.mjs +9319 -9319
- package/fesm2020/igo2-common.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/action/action.module.d.ts +8 -8
- package/lib/action/actionbar/actionbar-item.component.d.ts +78 -78
- package/lib/action/actionbar/actionbar.component.d.ts +146 -146
- package/lib/action/actionbar/actionbar.module.d.ts +20 -20
- package/lib/action/index.d.ts +2 -2
- package/lib/action/shared/action.enums.d.ts +5 -5
- package/lib/action/shared/action.interfaces.d.ts +17 -17
- package/lib/action/shared/index.d.ts +3 -3
- package/lib/action/shared/store.d.ts +8 -8
- package/lib/backdrop/backdrop.component.d.ts +9 -9
- package/lib/backdrop/backdrop.module.d.ts +10 -10
- package/lib/backdrop/index.d.ts +1 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +36 -36
- package/lib/badge-icon/badge-icon.module.d.ts +11 -11
- package/lib/badge-icon/index.d.ts +1 -1
- package/lib/clickout/clickout.directive.d.ts +10 -10
- package/lib/clickout/clickout.module.d.ts +9 -9
- package/lib/clickout/index.d.ts +1 -1
- package/lib/clone/clone.module.d.ts +9 -9
- package/lib/clone/clone.pipe.d.ts +7 -7
- package/lib/clone/index.d.ts +1 -1
- package/lib/collapsible/collapse.directive.d.ts +19 -19
- package/lib/collapsible/collapsible.component.d.ts +13 -13
- package/lib/collapsible/collapsible.module.d.ts +12 -12
- package/lib/collapsible/index.d.ts +2 -2
- package/lib/confirm-dialog/confirm-dialog.component.d.ts +9 -9
- package/lib/confirm-dialog/confirm-dialog.module.d.ts +12 -12
- package/lib/confirm-dialog/confirm-dialog.service.d.ts +12 -12
- package/lib/confirm-dialog/index.d.ts +2 -2
- package/lib/context-menu/context-menu.directive.d.ts +21 -21
- package/lib/context-menu/context-menu.module.d.ts +10 -10
- package/lib/context-menu/index.d.ts +2 -2
- package/lib/context-menu/long-press.directive.d.ts +20 -20
- package/lib/custom-html/custom-html.component.d.ts +9 -9
- package/lib/custom-html/custom-html.module.d.ts +16 -16
- package/lib/custom-html/custom-html.pipe.d.ts +10 -10
- package/lib/custom-html/index.d.ts +2 -2
- package/lib/dom/dom.interfaces.d.ts +10 -10
- package/lib/dom/dom.module.d.ts +8 -8
- package/lib/dom/dom.service.d.ts +10 -10
- package/lib/dom/index.d.ts +2 -2
- package/lib/drag-drop/drag-drop.directive.d.ts +14 -14
- package/lib/drag-drop/drag-drop.module.d.ts +9 -9
- package/lib/drag-drop/index.d.ts +1 -1
- package/lib/dynamic-component/dynamic-component.module.d.ts +8 -8
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +70 -70
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +11 -11
- package/lib/dynamic-component/index.d.ts +2 -2
- package/lib/dynamic-component/shared/dynamic-component.d.ts +88 -88
- package/lib/dynamic-component/shared/dynamic-component.interfaces.d.ts +3 -3
- package/lib/dynamic-component/shared/dynamic-component.service.d.ts +18 -18
- package/lib/dynamic-component/shared/index.d.ts +3 -3
- package/lib/entity/entity-selector/entity-selector.component.d.ts +92 -92
- package/lib/entity/entity-selector/entity-selector.module.d.ts +13 -13
- package/lib/entity/entity-table/entity-table-row.directive.d.ts +69 -69
- package/lib/entity/entity-table/entity-table.component.d.ts +333 -333
- package/lib/entity/entity-table/entity-table.module.d.ts +29 -29
- package/lib/entity/entity-table-paginator/entity-table-paginator.component.d.ts +49 -49
- package/lib/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +8 -8
- package/lib/entity/entity-table-paginator/entity-table-paginator.module.d.ts +11 -11
- package/lib/entity/entity.module.d.ts +10 -10
- package/lib/entity/index.d.ts +5 -5
- package/lib/entity/shared/entity.enums.d.ts +23 -23
- package/lib/entity/shared/entity.interfaces.d.ts +114 -114
- package/lib/entity/shared/entity.utils.d.ts +49 -49
- package/lib/entity/shared/index.d.ts +9 -9
- package/lib/entity/shared/state.d.ts +103 -103
- package/lib/entity/shared/store.d.ts +176 -176
- package/lib/entity/shared/strategies/filter-custom-function.d.ts +51 -51
- package/lib/entity/shared/strategies/filter-selection.d.ts +48 -48
- package/lib/entity/shared/strategies/index.d.ts +3 -3
- package/lib/entity/shared/strategies/strategy.d.ts +56 -56
- package/lib/entity/shared/transaction.d.ts +168 -168
- package/lib/entity/shared/view.d.ts +193 -193
- package/lib/entity/shared/watcher.d.ts +72 -72
- package/lib/flexible/flexible.component.d.ts +41 -41
- package/lib/flexible/flexible.module.d.ts +9 -9
- package/lib/flexible/flexible.type.d.ts +2 -2
- package/lib/flexible/index.d.ts +2 -2
- package/lib/form/form/form.component.d.ts +53 -53
- package/lib/form/form/form.module.d.ts +12 -12
- package/lib/form/form-field/form-field-select.component.d.ts +48 -48
- package/lib/form/form-field/form-field-text.component.d.ts +41 -41
- package/lib/form/form-field/form-field-textarea.component.d.ts +41 -41
- package/lib/form/form-field/form-field.component.d.ts +34 -34
- package/lib/form/form-field/form-field.module.d.ts +21 -21
- package/lib/form/form-field/index.d.ts +4 -4
- package/lib/form/form-group/form-group.component.d.ts +49 -49
- package/lib/form/form-group/form-group.module.d.ts +14 -14
- package/lib/form/form.module.d.ts +13 -13
- package/lib/form/index.d.ts +4 -4
- package/lib/form/shared/form-field-component.d.ts +1 -1
- package/lib/form/shared/form-field.service.d.ts +19 -19
- package/lib/form/shared/form.interfaces.d.ts +57 -57
- package/lib/form/shared/form.service.d.ts +15 -15
- package/lib/form/shared/form.utils.d.ts +11 -11
- package/lib/form/shared/index.d.ts +5 -5
- package/lib/home-button/home-button.component.d.ts +9 -9
- package/lib/home-button/home-button.module.d.ts +15 -15
- package/lib/home-button/index.d.ts +1 -1
- package/lib/image/image-error.directive.d.ts +11 -11
- package/lib/image/image.module.d.ts +10 -10
- package/lib/image/index.d.ts +2 -2
- package/lib/image/secure-image.pipe.d.ts +13 -13
- package/lib/interactive-tour/index.d.ts +4 -4
- package/lib/interactive-tour/interactive-tour.component.d.ts +30 -30
- package/lib/interactive-tour/interactive-tour.interface.d.ts +32 -32
- package/lib/interactive-tour/interactive-tour.loader.d.ts +18 -18
- package/lib/interactive-tour/interactive-tour.module.d.ts +12 -12
- package/lib/interactive-tour/interactive-tour.service.d.ts +29 -29
- package/lib/json-dialog/index.d.ts +2 -2
- package/lib/json-dialog/json-dialog.component.d.ts +13 -13
- package/lib/json-dialog/json-dialog.module.d.ts +13 -13
- package/lib/json-dialog/json-dialog.service.d.ts +10 -10
- package/lib/keyvalue/index.d.ts +1 -1
- package/lib/keyvalue/keyvalue.module.d.ts +9 -9
- package/lib/keyvalue/keyvalue.pipe.d.ts +7 -7
- package/lib/list/index.d.ts +2 -2
- package/lib/list/list-item.directive.d.ts +43 -43
- package/lib/list/list.component.d.ts +51 -51
- package/lib/list/list.module.d.ts +14 -14
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/panel.component.d.ts +10 -10
- package/lib/panel/panel.module.d.ts +8 -8
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav-shim.directive.d.ts +20 -20
- package/lib/sidenav/sidenav.module.d.ts +9 -9
- package/lib/spinner/index.d.ts +2 -2
- package/lib/spinner/spinner-activity.directive.d.ts +32 -32
- package/lib/spinner/spinner.component.d.ts +12 -12
- package/lib/spinner/spinner.module.d.ts +10 -10
- package/lib/stop-propagation/index.d.ts +2 -2
- package/lib/stop-propagation/stop-drop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.module.d.ts +10 -10
- package/lib/table/index.d.ts +5 -5
- package/lib/table/table-action-color.enum.d.ts +5 -5
- package/lib/table/table-database.d.ts +10 -10
- package/lib/table/table-datasource.d.ts +17 -17
- package/lib/table/table-model.interface.d.ts +28 -28
- package/lib/table/table.component.d.ts +40 -40
- package/lib/table/table.module.d.ts +20 -20
- package/lib/tool/index.d.ts +2 -2
- package/lib/tool/shared/index.d.ts +5 -5
- package/lib/tool/shared/tool-component.d.ts +2 -2
- package/lib/tool/shared/tool.interface.d.ts +18 -18
- package/lib/tool/shared/tool.service.d.ts +30 -30
- package/lib/tool/shared/toolbox.d.ts +95 -95
- package/lib/tool/shared/toolbox.enums.d.ts +5 -5
- package/lib/tool/tool.module.d.ts +10 -10
- package/lib/tool/toolbox/toolbox.animation.d.ts +2 -2
- package/lib/tool/toolbox/toolbox.component.d.ts +127 -127
- package/lib/tool/toolbox/toolbox.module.d.ts +13 -13
- package/lib/widget/index.d.ts +2 -2
- package/lib/widget/shared/index.d.ts +3 -3
- package/lib/widget/shared/widget.d.ts +4 -4
- package/lib/widget/shared/widget.interfaces.d.ts +12 -12
- package/lib/widget/shared/widget.service.d.ts +10 -10
- package/lib/widget/widget-outlet/widget-outlet.component.d.ts +71 -71
- package/lib/widget/widget-outlet/widget-outlet.module.d.ts +12 -12
- package/lib/widget/widget.module.d.ts +8 -8
- package/lib/workspace/index.d.ts +3 -3
- package/lib/workspace/shared/index.d.ts +3 -3
- package/lib/workspace/shared/store.d.ts +20 -20
- package/lib/workspace/shared/workspace.d.ts +108 -108
- package/lib/workspace/shared/workspace.interfaces.d.ts +11 -11
- package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +39 -39
- package/lib/workspace/workspace-selector/workspace-selector.module.d.ts +12 -12
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +57 -57
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +12 -12
- package/lib/workspace/workspace.module.d.ts +9 -9
- package/package.json +3 -3
- package/public_api.d.ts +70 -70
- package/style/common.theming.scss +12 -12
- package/style/partial/action.scss +18 -18
- package/style/partial/common.variables.scss +8 -8
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Input, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, } from 'rxjs';
|
|
4
|
-
import { formControlIsRequired, getControlErrorMessage } from '../shared/form.utils';
|
|
5
|
-
import { IgoFormFieldComponent } from '../shared/form-field-component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/forms";
|
|
9
|
-
import * as i3 from "@angular/material/icon";
|
|
10
|
-
import * as i4 from "@angular/material/form-field";
|
|
11
|
-
import * as i5 from "@angular/material/select";
|
|
12
|
-
import * as i6 from "@angular/material/core";
|
|
13
|
-
import * as i7 from "@ngx-translate/core";
|
|
14
|
-
function FormFieldSelectComponent_mat_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
16
|
-
i0.ɵɵtext(1);
|
|
17
|
-
i0.ɵɵelementEnd();
|
|
18
|
-
} if (rf & 2) {
|
|
19
|
-
const choice_r3 = ctx.$implicit;
|
|
20
|
-
i0.ɵɵproperty("value", choice_r3.value);
|
|
21
|
-
i0.ɵɵadvance(1);
|
|
22
|
-
i0.ɵɵtextInterpolate1(" ", choice_r3.title, " ");
|
|
23
|
-
} }
|
|
24
|
-
function FormFieldSelectComponent_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
26
|
-
i0.ɵɵelementStart(0, "mat-icon", 5);
|
|
27
|
-
i0.ɵɵlistener("click", function FormFieldSelectComponent_mat_icon_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onDisableSwitchClick()); });
|
|
28
|
-
i0.ɵɵpipe(1, "async");
|
|
29
|
-
i0.ɵɵelementEnd();
|
|
30
|
-
} if (rf & 2) {
|
|
31
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
32
|
-
i0.ɵɵproperty("svgIcon", i0.ɵɵpipeBind1(1, 1, ctx_r1.disabled$) === true ? "checkbox-blank-outline" : "checkbox-marked-outline");
|
|
33
|
-
} }
|
|
34
|
-
function FormFieldSelectComponent_mat_error_5_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
36
|
-
i0.ɵɵtext(1);
|
|
37
|
-
i0.ɵɵpipe(2, "translate");
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
} if (rf & 2) {
|
|
40
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
41
|
-
i0.ɵɵadvance(1);
|
|
42
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.getErrorMessage()));
|
|
43
|
-
} }
|
|
44
|
-
/**
|
|
45
|
-
* This component renders a select field
|
|
46
|
-
*/
|
|
47
|
-
let FormFieldSelectComponent = class FormFieldSelectComponent {
|
|
48
|
-
constructor() {
|
|
49
|
-
this.disabled$ = new BehaviorSubject(false);
|
|
50
|
-
this.choices$ = new BehaviorSubject([]);
|
|
51
|
-
/**
|
|
52
|
-
* Wheter a disable switch should be available
|
|
53
|
-
*/
|
|
54
|
-
this.disableSwitch = false;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Select input choices
|
|
58
|
-
*/
|
|
59
|
-
set choices(value) { this.choices$.next(value); }
|
|
60
|
-
get choices() { return this.choices$.value; }
|
|
61
|
-
/**
|
|
62
|
-
* Whether the field is required
|
|
63
|
-
*/
|
|
64
|
-
get required() {
|
|
65
|
-
return formControlIsRequired(this.formControl);
|
|
66
|
-
}
|
|
67
|
-
ngOnInit() {
|
|
68
|
-
this.disabled$.next(this.formControl.disabled);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Get error message
|
|
72
|
-
*/
|
|
73
|
-
getErrorMessage() {
|
|
74
|
-
return getControlErrorMessage(this.formControl, this.errors);
|
|
75
|
-
}
|
|
76
|
-
onDisableSwitchClick() {
|
|
77
|
-
this.toggleDisabled();
|
|
78
|
-
}
|
|
79
|
-
toggleDisabled() {
|
|
80
|
-
const disabled = !this.disabled$.value;
|
|
81
|
-
if (disabled === true) {
|
|
82
|
-
this.formControl.disable();
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
this.formControl.enable();
|
|
86
|
-
}
|
|
87
|
-
this.disabled$.next(disabled);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
FormFieldSelectComponent.ɵfac = function FormFieldSelectComponent_Factory(t) { return new (t || FormFieldSelectComponent)(); };
|
|
91
|
-
FormFieldSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldSelectComponent, selectors: [["igo-form-field-select"]], inputs: { choices: "choices", formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 6, vars: 8, consts: [[3, "required", "placeholder", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "igo-form-disable-switch", "matPrefix", "", 3, "svgIcon", "click", 4, "ngIf"], [4, "ngIf"], [3, "value"], ["matPrefix", "", 1, "igo-form-disable-switch", 3, "svgIcon", "click"]], template: function FormFieldSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵelementStart(0, "mat-form-field")(1, "mat-select", 0);
|
|
93
|
-
i0.ɵɵtemplate(2, FormFieldSelectComponent_mat_option_2_Template, 2, 2, "mat-option", 1);
|
|
94
|
-
i0.ɵɵpipe(3, "async");
|
|
95
|
-
i0.ɵɵelementEnd();
|
|
96
|
-
i0.ɵɵtemplate(4, FormFieldSelectComponent_mat_icon_4_Template, 2, 3, "mat-icon", 2);
|
|
97
|
-
i0.ɵɵtemplate(5, FormFieldSelectComponent_mat_error_5_Template, 3, 3, "mat-error", 3);
|
|
98
|
-
i0.ɵɵelementEnd();
|
|
99
|
-
} if (rf & 2) {
|
|
100
|
-
i0.ɵɵadvance(1);
|
|
101
|
-
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
102
|
-
i0.ɵɵadvance(1);
|
|
103
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 6, ctx.choices$));
|
|
104
|
-
i0.ɵɵadvance(2);
|
|
105
|
-
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
106
|
-
i0.ɵɵadvance(1);
|
|
107
|
-
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
108
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatError, i4.MatFormField, i4.MatPrefix, i5.MatSelect, i6.MatOption, i1.AsyncPipe, i7.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
109
|
-
FormFieldSelectComponent = __decorate([
|
|
110
|
-
IgoFormFieldComponent('select')
|
|
111
|
-
], FormFieldSelectComponent);
|
|
112
|
-
export { FormFieldSelectComponent };
|
|
113
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldSelectComponent, [{
|
|
114
|
-
type: Component,
|
|
115
|
-
args: [{ selector: 'igo-form-field-select', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\
|
|
116
|
-
}], null, { choices: [{
|
|
117
|
-
type: Input
|
|
118
|
-
}], formControl: [{
|
|
119
|
-
type: Input
|
|
120
|
-
}], placeholder: [{
|
|
121
|
-
type: Input
|
|
122
|
-
}], errors: [{
|
|
123
|
-
type: Input
|
|
124
|
-
}], disableSwitch: [{
|
|
125
|
-
type: Input
|
|
126
|
-
}] }); })();
|
|
127
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Input, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, } from 'rxjs';
|
|
4
|
+
import { formControlIsRequired, getControlErrorMessage } from '../shared/form.utils';
|
|
5
|
+
import { IgoFormFieldComponent } from '../shared/form-field-component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/forms";
|
|
9
|
+
import * as i3 from "@angular/material/icon";
|
|
10
|
+
import * as i4 from "@angular/material/form-field";
|
|
11
|
+
import * as i5 from "@angular/material/select";
|
|
12
|
+
import * as i6 from "@angular/material/core";
|
|
13
|
+
import * as i7 from "@ngx-translate/core";
|
|
14
|
+
function FormFieldSelectComponent_mat_option_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
+
i0.ɵɵelementStart(0, "mat-option", 4);
|
|
16
|
+
i0.ɵɵtext(1);
|
|
17
|
+
i0.ɵɵelementEnd();
|
|
18
|
+
} if (rf & 2) {
|
|
19
|
+
const choice_r3 = ctx.$implicit;
|
|
20
|
+
i0.ɵɵproperty("value", choice_r3.value);
|
|
21
|
+
i0.ɵɵadvance(1);
|
|
22
|
+
i0.ɵɵtextInterpolate1(" ", choice_r3.title, " ");
|
|
23
|
+
} }
|
|
24
|
+
function FormFieldSelectComponent_mat_icon_4_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
26
|
+
i0.ɵɵelementStart(0, "mat-icon", 5);
|
|
27
|
+
i0.ɵɵlistener("click", function FormFieldSelectComponent_mat_icon_4_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.onDisableSwitchClick()); });
|
|
28
|
+
i0.ɵɵpipe(1, "async");
|
|
29
|
+
i0.ɵɵelementEnd();
|
|
30
|
+
} if (rf & 2) {
|
|
31
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
32
|
+
i0.ɵɵproperty("svgIcon", i0.ɵɵpipeBind1(1, 1, ctx_r1.disabled$) === true ? "checkbox-blank-outline" : "checkbox-marked-outline");
|
|
33
|
+
} }
|
|
34
|
+
function FormFieldSelectComponent_mat_error_5_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
+
i0.ɵɵelementStart(0, "mat-error");
|
|
36
|
+
i0.ɵɵtext(1);
|
|
37
|
+
i0.ɵɵpipe(2, "translate");
|
|
38
|
+
i0.ɵɵelementEnd();
|
|
39
|
+
} if (rf & 2) {
|
|
40
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
41
|
+
i0.ɵɵadvance(1);
|
|
42
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.getErrorMessage()));
|
|
43
|
+
} }
|
|
44
|
+
/**
|
|
45
|
+
* This component renders a select field
|
|
46
|
+
*/
|
|
47
|
+
let FormFieldSelectComponent = class FormFieldSelectComponent {
|
|
48
|
+
constructor() {
|
|
49
|
+
this.disabled$ = new BehaviorSubject(false);
|
|
50
|
+
this.choices$ = new BehaviorSubject([]);
|
|
51
|
+
/**
|
|
52
|
+
* Wheter a disable switch should be available
|
|
53
|
+
*/
|
|
54
|
+
this.disableSwitch = false;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Select input choices
|
|
58
|
+
*/
|
|
59
|
+
set choices(value) { this.choices$.next(value); }
|
|
60
|
+
get choices() { return this.choices$.value; }
|
|
61
|
+
/**
|
|
62
|
+
* Whether the field is required
|
|
63
|
+
*/
|
|
64
|
+
get required() {
|
|
65
|
+
return formControlIsRequired(this.formControl);
|
|
66
|
+
}
|
|
67
|
+
ngOnInit() {
|
|
68
|
+
this.disabled$.next(this.formControl.disabled);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get error message
|
|
72
|
+
*/
|
|
73
|
+
getErrorMessage() {
|
|
74
|
+
return getControlErrorMessage(this.formControl, this.errors);
|
|
75
|
+
}
|
|
76
|
+
onDisableSwitchClick() {
|
|
77
|
+
this.toggleDisabled();
|
|
78
|
+
}
|
|
79
|
+
toggleDisabled() {
|
|
80
|
+
const disabled = !this.disabled$.value;
|
|
81
|
+
if (disabled === true) {
|
|
82
|
+
this.formControl.disable();
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
this.formControl.enable();
|
|
86
|
+
}
|
|
87
|
+
this.disabled$.next(disabled);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
FormFieldSelectComponent.ɵfac = function FormFieldSelectComponent_Factory(t) { return new (t || FormFieldSelectComponent)(); };
|
|
91
|
+
FormFieldSelectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldSelectComponent, selectors: [["igo-form-field-select"]], inputs: { choices: "choices", formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 6, vars: 8, consts: [[3, "required", "placeholder", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "igo-form-disable-switch", "matPrefix", "", 3, "svgIcon", "click", 4, "ngIf"], [4, "ngIf"], [3, "value"], ["matPrefix", "", 1, "igo-form-disable-switch", 3, "svgIcon", "click"]], template: function FormFieldSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
+
i0.ɵɵelementStart(0, "mat-form-field")(1, "mat-select", 0);
|
|
93
|
+
i0.ɵɵtemplate(2, FormFieldSelectComponent_mat_option_2_Template, 2, 2, "mat-option", 1);
|
|
94
|
+
i0.ɵɵpipe(3, "async");
|
|
95
|
+
i0.ɵɵelementEnd();
|
|
96
|
+
i0.ɵɵtemplate(4, FormFieldSelectComponent_mat_icon_4_Template, 2, 3, "mat-icon", 2);
|
|
97
|
+
i0.ɵɵtemplate(5, FormFieldSelectComponent_mat_error_5_Template, 3, 3, "mat-error", 3);
|
|
98
|
+
i0.ɵɵelementEnd();
|
|
99
|
+
} if (rf & 2) {
|
|
100
|
+
i0.ɵɵadvance(1);
|
|
101
|
+
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
102
|
+
i0.ɵɵadvance(1);
|
|
103
|
+
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 6, ctx.choices$));
|
|
104
|
+
i0.ɵɵadvance(2);
|
|
105
|
+
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
106
|
+
i0.ɵɵadvance(1);
|
|
107
|
+
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
108
|
+
} }, dependencies: [i1.NgForOf, i1.NgIf, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatError, i4.MatFormField, i4.MatPrefix, i5.MatSelect, i6.MatOption, i1.AsyncPipe, i7.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
109
|
+
FormFieldSelectComponent = __decorate([
|
|
110
|
+
IgoFormFieldComponent('select')
|
|
111
|
+
], FormFieldSelectComponent);
|
|
112
|
+
export { FormFieldSelectComponent };
|
|
113
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldSelectComponent, [{
|
|
114
|
+
type: Component,
|
|
115
|
+
args: [{ selector: 'igo-form-field-select', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\n <mat-select\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <mat-option *ngFor=\"let choice of choices$ | async\" [value]=\"choice.value\">\n {{choice.title}}\n </mat-option>\n </mat-select>\n <mat-icon\n *ngIf=\"disableSwitch === true\"\n class=\"igo-form-disable-switch\"\n [svgIcon]=\"(disabled$ | async) === true ? 'checkbox-blank-outline' : 'checkbox-marked-outline'\"\n (click)=\"onDisableSwitchClick()\"\n matPrefix>\n </mat-icon>\n <mat-error *ngIf=\"formControl.errors\">{{getErrorMessage() | translate}}</mat-error>\n</mat-form-field>\n" }]
|
|
116
|
+
}], null, { choices: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], formControl: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], placeholder: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], errors: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], disableSwitch: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}] }); })();
|
|
127
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL3NyYy9saWIvZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQtc2VsZWN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2Zvcm0vZm9ybS1maWVsZC9mb3JtLWZpZWxkLXNlbGVjdC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEdBQUcsTUFBTSxNQUFNLENBQUM7QUFFeEMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLHNCQUFzQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFckYsT0FBTyxFQUFFLHFCQU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cImNob2ljZS52YWx1ZVwiPlxuICAgICAge3tjaG9pY2UudGl0bGV9fVxuICAgIDwvbWF0LW9wdGlvbj5cbiAgPC9tYXQtc2VsZWN0PlxuICA8bWF0LWljb25cbiAgICAqbmdJZj1cImRpc2FibGVTd2l0Y2ggPT09IHRydWVcIlxuICAgIGNsYXNzPVwiaWdvLWZvcm0tZGlzYWJsZS1zd2l0Y2hcIlxuICAgIFtzdmdJY29uXT1cIihkaXNhYmxlZCQgfCBhc3luYykgPT09IHRydWUgPyAnY2hlY2tib3gtYmxhbmstb3V0bGluZScgOiAnY2hlY2tib3gtbWFya2VkLW91dGxpbmUnXCJcbiAgICAoY2xpY2spPVwib25EaXNhYmxlU3dpdGNoQ2xpY2soKVwiXG4gICAgbWF0UHJlZml4PlxuICA8L21hdC1pY29uPlxuICA8bWF0LWVycm9yICpuZ0lmPVwiZm9ybUNvbnRyb2wuZXJyb3JzXCI+e3tnZXRFcnJvck1lc3NhZ2UoKSB8IHRyYW5zbGF0ZX19PC9tYXQtZXJyb3I+XG48L21hdC1mb3JtLWZpZWxkPlxuIl19
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Input, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { formControlIsRequired, getControlErrorMessage } from '../shared/form.utils';
|
|
5
|
-
import { IgoFormFieldComponent } from '../shared/form-field-component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
import * as i2 from "@angular/forms";
|
|
9
|
-
import * as i3 from "@angular/material/icon";
|
|
10
|
-
import * as i4 from "@angular/material/form-field";
|
|
11
|
-
import * as i5 from "@angular/material/input";
|
|
12
|
-
import * as i6 from "@ngx-translate/core";
|
|
13
|
-
function FormFieldTextComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
15
|
-
i0.ɵɵelementStart(0, "mat-icon", 3);
|
|
16
|
-
i0.ɵɵlistener("click", function FormFieldTextComponent_mat_icon_2_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDisableSwitchClick()); });
|
|
17
|
-
i0.ɵɵpipe(1, "async");
|
|
18
|
-
i0.ɵɵelementEnd();
|
|
19
|
-
} if (rf & 2) {
|
|
20
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
-
i0.ɵɵproperty("svgIcon", i0.ɵɵpipeBind1(1, 1, ctx_r0.disabled$) === true ? "checkbox-blank-outline" : "checkbox-marked-outline");
|
|
22
|
-
} }
|
|
23
|
-
function FormFieldTextComponent_mat_error_3_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
i0.ɵɵelementStart(0, "mat-error");
|
|
25
|
-
i0.ɵɵtext(1);
|
|
26
|
-
i0.ɵɵpipe(2, "translate");
|
|
27
|
-
i0.ɵɵelementEnd();
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵadvance(1);
|
|
31
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage()));
|
|
32
|
-
} }
|
|
33
|
-
/**
|
|
34
|
-
* This component renders a text field
|
|
35
|
-
*/
|
|
36
|
-
let FormFieldTextComponent = class FormFieldTextComponent {
|
|
37
|
-
constructor() {
|
|
38
|
-
this.disabled$ = new BehaviorSubject(false);
|
|
39
|
-
/**
|
|
40
|
-
* Wheter a disable switch should be available
|
|
41
|
-
*/
|
|
42
|
-
this.disableSwitch = false;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Whether the field is required
|
|
46
|
-
*/
|
|
47
|
-
get required() {
|
|
48
|
-
return formControlIsRequired(this.formControl);
|
|
49
|
-
}
|
|
50
|
-
ngOnInit() {
|
|
51
|
-
this.disabled$.next(this.formControl.disabled);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Get error message
|
|
55
|
-
*/
|
|
56
|
-
getErrorMessage() {
|
|
57
|
-
return getControlErrorMessage(this.formControl, this.errors);
|
|
58
|
-
}
|
|
59
|
-
onDisableSwitchClick() {
|
|
60
|
-
this.toggleDisabled();
|
|
61
|
-
}
|
|
62
|
-
toggleDisabled() {
|
|
63
|
-
const disabled = !this.disabled$.value;
|
|
64
|
-
if (disabled === true) {
|
|
65
|
-
this.formControl.disable();
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.formControl.enable();
|
|
69
|
-
}
|
|
70
|
-
this.disabled$.next(disabled);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
FormFieldTextComponent.ɵfac = function FormFieldTextComponent_Factory(t) { return new (t || FormFieldTextComponent)(); };
|
|
74
|
-
FormFieldTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldTextComponent, selectors: [["igo-form-field-text"]], inputs: { formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 4, vars: 5, consts: [["matInput", "", 3, "required", "placeholder", "formControl"], ["class", "igo-form-disable-switch", "matPrefix", "", 3, "svgIcon", "click", 4, "ngIf"], [4, "ngIf"], ["matPrefix", "", 1, "igo-form-disable-switch", 3, "svgIcon", "click"]], template: function FormFieldTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
-
i0.ɵɵelementStart(0, "mat-form-field");
|
|
76
|
-
i0.ɵɵelement(1, "input", 0);
|
|
77
|
-
i0.ɵɵtemplate(2, FormFieldTextComponent_mat_icon_2_Template, 2, 3, "mat-icon", 1);
|
|
78
|
-
i0.ɵɵtemplate(3, FormFieldTextComponent_mat_error_3_Template, 3, 3, "mat-error", 2);
|
|
79
|
-
i0.ɵɵelementEnd();
|
|
80
|
-
} if (rf & 2) {
|
|
81
|
-
i0.ɵɵadvance(1);
|
|
82
|
-
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
83
|
-
i0.ɵɵadvance(1);
|
|
84
|
-
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
85
|
-
i0.ɵɵadvance(1);
|
|
86
|
-
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
87
|
-
} }, dependencies: [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatError, i4.MatFormField, i4.MatPrefix, i5.MatInput, i1.AsyncPipe, i6.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
88
|
-
FormFieldTextComponent = __decorate([
|
|
89
|
-
IgoFormFieldComponent('text')
|
|
90
|
-
], FormFieldTextComponent);
|
|
91
|
-
export { FormFieldTextComponent };
|
|
92
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextComponent, [{
|
|
93
|
-
type: Component,
|
|
94
|
-
args: [{ selector: 'igo-form-field-text', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\
|
|
95
|
-
}], null, { formControl: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], placeholder: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], errors: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], disableSwitch: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}] }); })();
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Input, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { formControlIsRequired, getControlErrorMessage } from '../shared/form.utils';
|
|
5
|
+
import { IgoFormFieldComponent } from '../shared/form-field-component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@angular/forms";
|
|
9
|
+
import * as i3 from "@angular/material/icon";
|
|
10
|
+
import * as i4 from "@angular/material/form-field";
|
|
11
|
+
import * as i5 from "@angular/material/input";
|
|
12
|
+
import * as i6 from "@ngx-translate/core";
|
|
13
|
+
function FormFieldTextComponent_mat_icon_2_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "mat-icon", 3);
|
|
16
|
+
i0.ɵɵlistener("click", function FormFieldTextComponent_mat_icon_2_Template_mat_icon_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDisableSwitchClick()); });
|
|
17
|
+
i0.ɵɵpipe(1, "async");
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
} if (rf & 2) {
|
|
20
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21
|
+
i0.ɵɵproperty("svgIcon", i0.ɵɵpipeBind1(1, 1, ctx_r0.disabled$) === true ? "checkbox-blank-outline" : "checkbox-marked-outline");
|
|
22
|
+
} }
|
|
23
|
+
function FormFieldTextComponent_mat_error_3_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementStart(0, "mat-error");
|
|
25
|
+
i0.ɵɵtext(1);
|
|
26
|
+
i0.ɵɵpipe(2, "translate");
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
30
|
+
i0.ɵɵadvance(1);
|
|
31
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.getErrorMessage()));
|
|
32
|
+
} }
|
|
33
|
+
/**
|
|
34
|
+
* This component renders a text field
|
|
35
|
+
*/
|
|
36
|
+
let FormFieldTextComponent = class FormFieldTextComponent {
|
|
37
|
+
constructor() {
|
|
38
|
+
this.disabled$ = new BehaviorSubject(false);
|
|
39
|
+
/**
|
|
40
|
+
* Wheter a disable switch should be available
|
|
41
|
+
*/
|
|
42
|
+
this.disableSwitch = false;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Whether the field is required
|
|
46
|
+
*/
|
|
47
|
+
get required() {
|
|
48
|
+
return formControlIsRequired(this.formControl);
|
|
49
|
+
}
|
|
50
|
+
ngOnInit() {
|
|
51
|
+
this.disabled$.next(this.formControl.disabled);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get error message
|
|
55
|
+
*/
|
|
56
|
+
getErrorMessage() {
|
|
57
|
+
return getControlErrorMessage(this.formControl, this.errors);
|
|
58
|
+
}
|
|
59
|
+
onDisableSwitchClick() {
|
|
60
|
+
this.toggleDisabled();
|
|
61
|
+
}
|
|
62
|
+
toggleDisabled() {
|
|
63
|
+
const disabled = !this.disabled$.value;
|
|
64
|
+
if (disabled === true) {
|
|
65
|
+
this.formControl.disable();
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
this.formControl.enable();
|
|
69
|
+
}
|
|
70
|
+
this.disabled$.next(disabled);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
FormFieldTextComponent.ɵfac = function FormFieldTextComponent_Factory(t) { return new (t || FormFieldTextComponent)(); };
|
|
74
|
+
FormFieldTextComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldTextComponent, selectors: [["igo-form-field-text"]], inputs: { formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 4, vars: 5, consts: [["matInput", "", 3, "required", "placeholder", "formControl"], ["class", "igo-form-disable-switch", "matPrefix", "", 3, "svgIcon", "click", 4, "ngIf"], [4, "ngIf"], ["matPrefix", "", 1, "igo-form-disable-switch", 3, "svgIcon", "click"]], template: function FormFieldTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "mat-form-field");
|
|
76
|
+
i0.ɵɵelement(1, "input", 0);
|
|
77
|
+
i0.ɵɵtemplate(2, FormFieldTextComponent_mat_icon_2_Template, 2, 3, "mat-icon", 1);
|
|
78
|
+
i0.ɵɵtemplate(3, FormFieldTextComponent_mat_error_3_Template, 3, 3, "mat-error", 2);
|
|
79
|
+
i0.ɵɵelementEnd();
|
|
80
|
+
} if (rf & 2) {
|
|
81
|
+
i0.ɵɵadvance(1);
|
|
82
|
+
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
83
|
+
i0.ɵɵadvance(1);
|
|
84
|
+
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
85
|
+
i0.ɵɵadvance(1);
|
|
86
|
+
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
87
|
+
} }, dependencies: [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatError, i4.MatFormField, i4.MatPrefix, i5.MatInput, i1.AsyncPipe, i6.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
88
|
+
FormFieldTextComponent = __decorate([
|
|
89
|
+
IgoFormFieldComponent('text')
|
|
90
|
+
], FormFieldTextComponent);
|
|
91
|
+
export { FormFieldTextComponent };
|
|
92
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextComponent, [{
|
|
93
|
+
type: Component,
|
|
94
|
+
args: [{ selector: 'igo-form-field-text', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\n <input\n matInput\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <mat-icon\n *ngIf=\"disableSwitch === true\"\n class=\"igo-form-disable-switch\"\n [svgIcon]=\"(disabled$ | async) === true ? 'checkbox-blank-outline' : 'checkbox-marked-outline'\"\n (click)=\"onDisableSwitchClick()\"\n matPrefix>\n </mat-icon>\n <mat-error *ngIf=\"formControl.errors\">{{getErrorMessage() | translate}}</mat-error>\n</mat-form-field>\n" }]
|
|
95
|
+
}], null, { formControl: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], placeholder: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], errors: [{
|
|
100
|
+
type: Input
|
|
101
|
+
}], disableSwitch: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}] }); })();
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZXh0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2Zvcm0vZm9ybS1maWVsZC9mb3JtLWZpZWxkLXRleHQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL3NyYy9saWIvZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQtdGV4dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFdkMsT0FBTyxFQUNMLHFCQUFxQixFQUNyQixzQkFBc0IsRUFDdkIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQzs7Ozs7Ozs7OztJQ1JyRSxtQ0FLWTtJQURWLDBLQUFTLGVBQUEsNkJBQXNCLENBQUEsSUFBQzs7SUFFbEMsaUJBQVc7OztJQUhULGdJQUErRjs7O0lBSWpHLGlDQUFzQztJQUFBLFlBQ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