@igo2/common 1.14.2 → 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 +140 -140
- 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 +1367 -1367
- package/esm2020/lib/entity/entity-table/entity-table.module.mjs +101 -101
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +131 -131
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +1 -1
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +27 -27
- package/esm2020/lib/entity/entity.module.mjs +30 -30
- package/esm2020/lib/entity/index.mjs +5 -5
- package/esm2020/lib/entity/shared/entity.enums.mjs +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 -10003
- package/fesm2020/igo2-common.mjs +9306 -9306
- package/index.d.ts +5 -5
- package/lib/action/action.module.d.ts +8 -8
- package/lib/action/actionbar/actionbar-item.component.d.ts +78 -78
- package/lib/action/actionbar/actionbar.component.d.ts +146 -146
- package/lib/action/actionbar/actionbar.module.d.ts +20 -20
- package/lib/action/index.d.ts +2 -2
- package/lib/action/shared/action.enums.d.ts +5 -5
- package/lib/action/shared/action.interfaces.d.ts +17 -17
- package/lib/action/shared/index.d.ts +3 -3
- package/lib/action/shared/store.d.ts +8 -8
- package/lib/backdrop/backdrop.component.d.ts +9 -9
- package/lib/backdrop/backdrop.module.d.ts +10 -10
- package/lib/backdrop/index.d.ts +1 -1
- package/lib/badge-icon/badge-icon.directive.d.ts +36 -36
- package/lib/badge-icon/badge-icon.module.d.ts +11 -11
- package/lib/badge-icon/index.d.ts +1 -1
- package/lib/clickout/clickout.directive.d.ts +10 -10
- package/lib/clickout/clickout.module.d.ts +9 -9
- package/lib/clickout/index.d.ts +1 -1
- package/lib/clone/clone.module.d.ts +9 -9
- package/lib/clone/clone.pipe.d.ts +7 -7
- package/lib/clone/index.d.ts +1 -1
- package/lib/collapsible/collapse.directive.d.ts +19 -19
- package/lib/collapsible/collapsible.component.d.ts +13 -13
- package/lib/collapsible/collapsible.module.d.ts +12 -12
- package/lib/collapsible/index.d.ts +2 -2
- package/lib/confirm-dialog/confirm-dialog.component.d.ts +9 -9
- package/lib/confirm-dialog/confirm-dialog.module.d.ts +12 -12
- package/lib/confirm-dialog/confirm-dialog.service.d.ts +10 -10
- package/lib/confirm-dialog/index.d.ts +2 -2
- package/lib/context-menu/context-menu.directive.d.ts +21 -21
- package/lib/context-menu/context-menu.module.d.ts +10 -10
- package/lib/context-menu/index.d.ts +2 -2
- package/lib/context-menu/long-press.directive.d.ts +20 -20
- package/lib/custom-html/custom-html.component.d.ts +9 -9
- package/lib/custom-html/custom-html.module.d.ts +16 -16
- package/lib/custom-html/custom-html.pipe.d.ts +10 -10
- package/lib/custom-html/index.d.ts +2 -2
- package/lib/dom/dom.interfaces.d.ts +10 -10
- package/lib/dom/dom.module.d.ts +8 -8
- package/lib/dom/dom.service.d.ts +10 -10
- package/lib/dom/index.d.ts +2 -2
- package/lib/drag-drop/drag-drop.directive.d.ts +14 -14
- package/lib/drag-drop/drag-drop.module.d.ts +9 -9
- package/lib/drag-drop/index.d.ts +1 -1
- package/lib/dynamic-component/dynamic-component.module.d.ts +8 -8
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.d.ts +70 -70
- package/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.d.ts +11 -11
- package/lib/dynamic-component/index.d.ts +2 -2
- package/lib/dynamic-component/shared/dynamic-component.d.ts +88 -88
- package/lib/dynamic-component/shared/dynamic-component.interfaces.d.ts +3 -3
- package/lib/dynamic-component/shared/dynamic-component.service.d.ts +18 -18
- package/lib/dynamic-component/shared/index.d.ts +3 -3
- package/lib/entity/entity-selector/entity-selector.component.d.ts +92 -92
- package/lib/entity/entity-selector/entity-selector.module.d.ts +13 -13
- package/lib/entity/entity-table/entity-table-row.directive.d.ts +69 -69
- package/lib/entity/entity-table/entity-table.component.d.ts +327 -327
- package/lib/entity/entity-table/entity-table.module.d.ts +29 -29
- package/lib/entity/entity-table-paginator/entity-table-paginator.component.d.ts +49 -49
- package/lib/entity/entity-table-paginator/entity-table-paginator.interface.d.ts +8 -8
- package/lib/entity/entity-table-paginator/entity-table-paginator.module.d.ts +11 -11
- package/lib/entity/entity.module.d.ts +10 -10
- package/lib/entity/index.d.ts +5 -5
- package/lib/entity/shared/entity.enums.d.ts +23 -23
- package/lib/entity/shared/entity.interfaces.d.ts +114 -114
- package/lib/entity/shared/entity.utils.d.ts +49 -49
- package/lib/entity/shared/index.d.ts +9 -9
- package/lib/entity/shared/state.d.ts +103 -103
- package/lib/entity/shared/store.d.ts +176 -176
- package/lib/entity/shared/strategies/filter-custom-function.d.ts +51 -51
- package/lib/entity/shared/strategies/filter-selection.d.ts +48 -48
- package/lib/entity/shared/strategies/index.d.ts +3 -3
- package/lib/entity/shared/strategies/strategy.d.ts +56 -56
- package/lib/entity/shared/transaction.d.ts +168 -168
- package/lib/entity/shared/view.d.ts +193 -193
- package/lib/entity/shared/watcher.d.ts +72 -72
- package/lib/flexible/flexible.component.d.ts +41 -41
- package/lib/flexible/flexible.module.d.ts +9 -9
- package/lib/flexible/flexible.type.d.ts +2 -2
- package/lib/flexible/index.d.ts +2 -2
- package/lib/form/form/form.component.d.ts +53 -53
- package/lib/form/form/form.module.d.ts +12 -12
- package/lib/form/form-field/form-field-select.component.d.ts +48 -48
- package/lib/form/form-field/form-field-text.component.d.ts +41 -41
- package/lib/form/form-field/form-field-textarea.component.d.ts +41 -41
- package/lib/form/form-field/form-field.component.d.ts +34 -34
- package/lib/form/form-field/form-field.module.d.ts +21 -21
- package/lib/form/form-field/index.d.ts +4 -4
- package/lib/form/form-group/form-group.component.d.ts +49 -49
- package/lib/form/form-group/form-group.module.d.ts +14 -14
- package/lib/form/form.module.d.ts +13 -13
- package/lib/form/index.d.ts +4 -4
- package/lib/form/shared/form-field-component.d.ts +1 -1
- package/lib/form/shared/form-field.service.d.ts +19 -19
- package/lib/form/shared/form.interfaces.d.ts +57 -57
- package/lib/form/shared/form.service.d.ts +15 -15
- package/lib/form/shared/form.utils.d.ts +11 -11
- package/lib/form/shared/index.d.ts +5 -5
- package/lib/home-button/home-button.component.d.ts +9 -9
- package/lib/home-button/home-button.module.d.ts +15 -15
- package/lib/home-button/index.d.ts +1 -1
- package/lib/image/image-error.directive.d.ts +11 -11
- package/lib/image/image.module.d.ts +10 -10
- package/lib/image/index.d.ts +2 -2
- package/lib/image/secure-image.pipe.d.ts +13 -13
- package/lib/interactive-tour/index.d.ts +4 -4
- package/lib/interactive-tour/interactive-tour.component.d.ts +30 -30
- package/lib/interactive-tour/interactive-tour.interface.d.ts +32 -32
- package/lib/interactive-tour/interactive-tour.loader.d.ts +18 -18
- package/lib/interactive-tour/interactive-tour.module.d.ts +12 -12
- package/lib/interactive-tour/interactive-tour.service.d.ts +29 -29
- package/lib/json-dialog/index.d.ts +2 -2
- package/lib/json-dialog/json-dialog.component.d.ts +13 -13
- package/lib/json-dialog/json-dialog.module.d.ts +13 -13
- package/lib/json-dialog/json-dialog.service.d.ts +10 -10
- package/lib/keyvalue/index.d.ts +1 -1
- package/lib/keyvalue/keyvalue.module.d.ts +9 -9
- package/lib/keyvalue/keyvalue.pipe.d.ts +7 -7
- package/lib/list/index.d.ts +2 -2
- package/lib/list/list-item.directive.d.ts +43 -43
- package/lib/list/list.component.d.ts +51 -51
- package/lib/list/list.module.d.ts +14 -14
- package/lib/panel/index.d.ts +1 -1
- package/lib/panel/panel.component.d.ts +10 -10
- package/lib/panel/panel.module.d.ts +8 -8
- package/lib/sidenav/index.d.ts +1 -1
- package/lib/sidenav/sidenav-shim.directive.d.ts +20 -20
- package/lib/sidenav/sidenav.module.d.ts +9 -9
- package/lib/spinner/index.d.ts +2 -2
- package/lib/spinner/spinner-activity.directive.d.ts +32 -32
- package/lib/spinner/spinner.component.d.ts +12 -12
- package/lib/spinner/spinner.module.d.ts +10 -10
- package/lib/stop-propagation/index.d.ts +2 -2
- package/lib/stop-propagation/stop-drop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.directive.d.ts +6 -6
- package/lib/stop-propagation/stop-propagation.module.d.ts +10 -10
- package/lib/table/index.d.ts +5 -5
- package/lib/table/table-action-color.enum.d.ts +5 -5
- package/lib/table/table-database.d.ts +10 -10
- package/lib/table/table-datasource.d.ts +17 -17
- package/lib/table/table-model.interface.d.ts +28 -28
- package/lib/table/table.component.d.ts +40 -40
- package/lib/table/table.module.d.ts +20 -20
- package/lib/tool/index.d.ts +2 -2
- package/lib/tool/shared/index.d.ts +5 -5
- package/lib/tool/shared/tool-component.d.ts +2 -2
- package/lib/tool/shared/tool.interface.d.ts +18 -18
- package/lib/tool/shared/tool.service.d.ts +30 -30
- package/lib/tool/shared/toolbox.d.ts +95 -95
- package/lib/tool/shared/toolbox.enums.d.ts +5 -5
- package/lib/tool/tool.module.d.ts +10 -10
- package/lib/tool/toolbox/toolbox.animation.d.ts +2 -2
- package/lib/tool/toolbox/toolbox.component.d.ts +127 -127
- package/lib/tool/toolbox/toolbox.module.d.ts +13 -13
- package/lib/widget/index.d.ts +2 -2
- package/lib/widget/shared/index.d.ts +3 -3
- package/lib/widget/shared/widget.d.ts +4 -4
- package/lib/widget/shared/widget.interfaces.d.ts +12 -12
- package/lib/widget/shared/widget.service.d.ts +10 -10
- package/lib/widget/widget-outlet/widget-outlet.component.d.ts +71 -71
- package/lib/widget/widget-outlet/widget-outlet.module.d.ts +12 -12
- package/lib/widget/widget.module.d.ts +8 -8
- package/lib/workspace/index.d.ts +3 -3
- package/lib/workspace/shared/index.d.ts +3 -3
- package/lib/workspace/shared/store.d.ts +20 -20
- package/lib/workspace/shared/workspace.d.ts +108 -108
- package/lib/workspace/shared/workspace.interfaces.d.ts +11 -11
- package/lib/workspace/workspace-selector/workspace-selector.component.d.ts +39 -39
- package/lib/workspace/workspace-selector/workspace-selector.module.d.ts +12 -12
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.d.ts +57 -57
- package/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.d.ts +12 -12
- package/lib/workspace/workspace.module.d.ts +9 -9
- package/package.json +3 -3
- package/public_api.d.ts +70 -70
|
@@ -1,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>\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
|
-
}] }); })();
|
|
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
|
+
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iZm9ybUNvbnRyb2wuZXJyb3JzXCI+e3tnZXRFcnJvck1lc3NhZ2UoKSB8IHRyYW5zbGF0ZX19PC9tYXQtZXJyb3I+XG48L21hdC1mb3JtLWZpZWxkPlxuIl19
|
|
@@ -1,105 +1,105 @@
|
|
|
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 FormFieldTextareaComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
15
|
-
i0.ɵɵelementStart(0, "mat-icon", 3);
|
|
16
|
-
i0.ɵɵlistener("click", function FormFieldTextareaComponent_mat_icon_3_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 FormFieldTextareaComponent_mat_error_4_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 textarea field
|
|
35
|
-
*/
|
|
36
|
-
let FormFieldTextareaComponent = class FormFieldTextareaComponent {
|
|
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
|
-
FormFieldTextareaComponent.ɵfac = function FormFieldTextareaComponent_Factory(t) { return new (t || FormFieldTextareaComponent)(); };
|
|
74
|
-
FormFieldTextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldTextareaComponent, selectors: [["igo-form-field-textarea"]], inputs: { formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 5, 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 FormFieldTextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
-
i0.ɵɵelementStart(0, "mat-form-field")(1, "textarea", 0);
|
|
76
|
-
i0.ɵɵtext(2, " ");
|
|
77
|
-
i0.ɵɵelementEnd();
|
|
78
|
-
i0.ɵɵtemplate(3, FormFieldTextareaComponent_mat_icon_3_Template, 2, 3, "mat-icon", 1);
|
|
79
|
-
i0.ɵɵtemplate(4, FormFieldTextareaComponent_mat_error_4_Template, 3, 3, "mat-error", 2);
|
|
80
|
-
i0.ɵɵelementEnd();
|
|
81
|
-
} if (rf & 2) {
|
|
82
|
-
i0.ɵɵadvance(1);
|
|
83
|
-
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
84
|
-
i0.ɵɵadvance(2);
|
|
85
|
-
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
86
|
-
i0.ɵɵadvance(1);
|
|
87
|
-
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
88
|
-
} }, 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 });
|
|
89
|
-
FormFieldTextareaComponent = __decorate([
|
|
90
|
-
IgoFormFieldComponent('textarea')
|
|
91
|
-
], FormFieldTextareaComponent);
|
|
92
|
-
export { FormFieldTextareaComponent };
|
|
93
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextareaComponent, [{
|
|
94
|
-
type: Component,
|
|
95
|
-
args: [{ selector: 'igo-form-field-textarea', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\n <textarea\n matInput\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n </textarea>\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" }]
|
|
96
|
-
}], null, { formControl: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], placeholder: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], errors: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], disableSwitch: [{
|
|
103
|
-
type: Input
|
|
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 FormFieldTextareaComponent_mat_icon_3_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
15
|
+
i0.ɵɵelementStart(0, "mat-icon", 3);
|
|
16
|
+
i0.ɵɵlistener("click", function FormFieldTextareaComponent_mat_icon_3_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 FormFieldTextareaComponent_mat_error_4_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 textarea field
|
|
35
|
+
*/
|
|
36
|
+
let FormFieldTextareaComponent = class FormFieldTextareaComponent {
|
|
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
|
+
FormFieldTextareaComponent.ɵfac = function FormFieldTextareaComponent_Factory(t) { return new (t || FormFieldTextareaComponent)(); };
|
|
74
|
+
FormFieldTextareaComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldTextareaComponent, selectors: [["igo-form-field-textarea"]], inputs: { formControl: "formControl", placeholder: "placeholder", errors: "errors", disableSwitch: "disableSwitch" }, decls: 5, 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 FormFieldTextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
+
i0.ɵɵelementStart(0, "mat-form-field")(1, "textarea", 0);
|
|
76
|
+
i0.ɵɵtext(2, " ");
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
i0.ɵɵtemplate(3, FormFieldTextareaComponent_mat_icon_3_Template, 2, 3, "mat-icon", 1);
|
|
79
|
+
i0.ɵɵtemplate(4, FormFieldTextareaComponent_mat_error_4_Template, 3, 3, "mat-error", 2);
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
i0.ɵɵadvance(1);
|
|
83
|
+
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
84
|
+
i0.ɵɵadvance(2);
|
|
85
|
+
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
86
|
+
i0.ɵɵadvance(1);
|
|
87
|
+
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
88
|
+
} }, 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 });
|
|
89
|
+
FormFieldTextareaComponent = __decorate([
|
|
90
|
+
IgoFormFieldComponent('textarea')
|
|
91
|
+
], FormFieldTextareaComponent);
|
|
92
|
+
export { FormFieldTextareaComponent };
|
|
93
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextareaComponent, [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{ selector: 'igo-form-field-textarea', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\n <textarea\n matInput\n [required]=\"required\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n </textarea>\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" }]
|
|
96
|
+
}], null, { formControl: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], placeholder: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], errors: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], disableSwitch: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}] }); })();
|
|
105
105
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFdkMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLHNCQUFzQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDckYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7Ozs7Ozs7Ozs7SUNKckUsbUNBS1k7SUFEViw4S0FBUyxlQUFBLDZCQUFzQixDQUFBLElBQUM7O0lBRWxDLGlCQUFXOzs7SUFIVCxnSUFBK0Y7OztJQUlqRyxpQ0FBc0M7SUFBQSxZQUFpQzs7SUFBQSxpQkFBWTs7O0lBQTdDLGVBQWlDO0lBQWpDLG9FQUFpQz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ykgPT09IHRydWUgPyAnY2hlY2tib3gtYmxhbmstb3V0bGluZScgOiAnY2hlY2tib3gtbWFya2VkLW91dGxpbmUnXCJcbiAgICAoY2xpY2spPVwib25EaXNhYmxlU3dpdGNoQ2xpY2soKVwiXG4gICAgbWF0UHJlZml4PlxuICA8L21hdC1pY29uPlxuICA8bWF0LWVycm9yICpuZ0lmPVwiZm9ybUNvbnRyb2wuZXJyb3JzXCI+e3tnZXRFcnJvck1lc3NhZ2UoKSB8IHRyYW5zbGF0ZX19PC9tYXQtZXJyb3I+XG48L21hdC1mb3JtLWZpZWxkPlxuIl19
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { getDefaultErrorMessages } from '../shared';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../shared/form-field.service";
|
|
5
|
-
import * as i2 from "@angular/common";
|
|
6
|
-
import * as i3 from "../../dynamic-component/dynamic-outlet/dynamic-outlet.component";
|
|
7
|
-
function FormFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
i0.ɵɵelementContainerStart(0);
|
|
9
|
-
i0.ɵɵelement(1, "igo-dynamic-outlet", 1);
|
|
10
|
-
i0.ɵɵelementContainerEnd();
|
|
11
|
-
} if (rf & 2) {
|
|
12
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
13
|
-
i0.ɵɵadvance(1);
|
|
14
|
-
i0.ɵɵproperty("component", ctx_r0.getFieldComponent())("inputs", ctx_r0.getFieldInputs())("subscribers", ctx_r0.getFieldSubscribers());
|
|
15
|
-
} }
|
|
16
|
-
/**
|
|
17
|
-
* This component renders the proper form input based on
|
|
18
|
-
* the field configuration it receives.
|
|
19
|
-
*/
|
|
20
|
-
export class FormFieldComponent {
|
|
21
|
-
constructor(formFieldService) {
|
|
22
|
-
this.formFieldService = formFieldService;
|
|
23
|
-
/**
|
|
24
|
-
* Field inputs cache
|
|
25
|
-
*/
|
|
26
|
-
this.fieldInputs = undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Field subscribers cache
|
|
29
|
-
*/
|
|
30
|
-
this.fieldSubscribers = undefined;
|
|
31
|
-
}
|
|
32
|
-
get fieldOptions() {
|
|
33
|
-
return this.field.options || {};
|
|
34
|
-
}
|
|
35
|
-
getFieldComponent() {
|
|
36
|
-
return this.formFieldService.getFieldByType(this.field.type || 'text');
|
|
37
|
-
}
|
|
38
|
-
getFieldInputs() {
|
|
39
|
-
if (this.fieldInputs !== undefined) {
|
|
40
|
-
return this.fieldInputs;
|
|
41
|
-
}
|
|
42
|
-
const errors = this.fieldOptions.errors || {};
|
|
43
|
-
this.fieldInputs = Object.assign({
|
|
44
|
-
placeholder: this.field.title,
|
|
45
|
-
disableSwitch: this.fieldOptions.disableSwitch || false
|
|
46
|
-
}, Object.assign({}, this.field.inputs || {}), {
|
|
47
|
-
formControl: this.field.control,
|
|
48
|
-
errors: Object.assign({}, getDefaultErrorMessages(), errors)
|
|
49
|
-
});
|
|
50
|
-
return this.fieldInputs;
|
|
51
|
-
}
|
|
52
|
-
getFieldSubscribers() {
|
|
53
|
-
if (this.fieldSubscribers !== undefined) {
|
|
54
|
-
return this.fieldSubscribers;
|
|
55
|
-
}
|
|
56
|
-
this.fieldSubscribers = Object.assign({}, this.field.subscribers || {});
|
|
57
|
-
return this.fieldSubscribers;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
FormFieldComponent.ɵfac = function FormFieldComponent_Factory(t) { return new (t || FormFieldComponent)(i0.ɵɵdirectiveInject(i1.FormFieldService)); };
|
|
61
|
-
FormFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldComponent, selectors: [["igo-form-field"]], inputs: { field: "field" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "component", "inputs", "subscribers"]], template: function FormFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
-
i0.ɵɵtemplate(0, FormFieldComponent_ng_container_0_Template, 2, 3, "ng-container", 0);
|
|
63
|
-
} if (rf & 2) {
|
|
64
|
-
i0.ɵɵproperty("ngIf", ctx.field !== undefined);
|
|
65
|
-
} }, dependencies: [i2.NgIf, i3.DynamicOutletComponent], styles: ["mat-form-field{width:100%} .igo-form-disable-switch{margin-right:8px}"], changeDetection: 0 });
|
|
66
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldComponent, [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{ selector: 'igo-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "\n\n<ng-container *ngIf=\"field !== undefined\">\n <igo-dynamic-outlet\n [component]=\"getFieldComponent()\"\n [inputs]=\"getFieldInputs()\"\n [subscribers]=\"getFieldSubscribers()\">\n </igo-dynamic-outlet>\n</ng-container>\n", styles: ["::ng-deep mat-form-field{width:100%}::ng-deep .igo-form-disable-switch{margin-right:8px}\n"] }]
|
|
69
|
-
}], function () { return [{ type: i1.FormFieldService }]; }, { field: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}] }); })();
|
|
1
|
+
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { getDefaultErrorMessages } from '../shared';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../shared/form-field.service";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "../../dynamic-component/dynamic-outlet/dynamic-outlet.component";
|
|
7
|
+
function FormFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementContainerStart(0);
|
|
9
|
+
i0.ɵɵelement(1, "igo-dynamic-outlet", 1);
|
|
10
|
+
i0.ɵɵelementContainerEnd();
|
|
11
|
+
} if (rf & 2) {
|
|
12
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
13
|
+
i0.ɵɵadvance(1);
|
|
14
|
+
i0.ɵɵproperty("component", ctx_r0.getFieldComponent())("inputs", ctx_r0.getFieldInputs())("subscribers", ctx_r0.getFieldSubscribers());
|
|
15
|
+
} }
|
|
16
|
+
/**
|
|
17
|
+
* This component renders the proper form input based on
|
|
18
|
+
* the field configuration it receives.
|
|
19
|
+
*/
|
|
20
|
+
export class FormFieldComponent {
|
|
21
|
+
constructor(formFieldService) {
|
|
22
|
+
this.formFieldService = formFieldService;
|
|
23
|
+
/**
|
|
24
|
+
* Field inputs cache
|
|
25
|
+
*/
|
|
26
|
+
this.fieldInputs = undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Field subscribers cache
|
|
29
|
+
*/
|
|
30
|
+
this.fieldSubscribers = undefined;
|
|
31
|
+
}
|
|
32
|
+
get fieldOptions() {
|
|
33
|
+
return this.field.options || {};
|
|
34
|
+
}
|
|
35
|
+
getFieldComponent() {
|
|
36
|
+
return this.formFieldService.getFieldByType(this.field.type || 'text');
|
|
37
|
+
}
|
|
38
|
+
getFieldInputs() {
|
|
39
|
+
if (this.fieldInputs !== undefined) {
|
|
40
|
+
return this.fieldInputs;
|
|
41
|
+
}
|
|
42
|
+
const errors = this.fieldOptions.errors || {};
|
|
43
|
+
this.fieldInputs = Object.assign({
|
|
44
|
+
placeholder: this.field.title,
|
|
45
|
+
disableSwitch: this.fieldOptions.disableSwitch || false
|
|
46
|
+
}, Object.assign({}, this.field.inputs || {}), {
|
|
47
|
+
formControl: this.field.control,
|
|
48
|
+
errors: Object.assign({}, getDefaultErrorMessages(), errors)
|
|
49
|
+
});
|
|
50
|
+
return this.fieldInputs;
|
|
51
|
+
}
|
|
52
|
+
getFieldSubscribers() {
|
|
53
|
+
if (this.fieldSubscribers !== undefined) {
|
|
54
|
+
return this.fieldSubscribers;
|
|
55
|
+
}
|
|
56
|
+
this.fieldSubscribers = Object.assign({}, this.field.subscribers || {});
|
|
57
|
+
return this.fieldSubscribers;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
FormFieldComponent.ɵfac = function FormFieldComponent_Factory(t) { return new (t || FormFieldComponent)(i0.ɵɵdirectiveInject(i1.FormFieldService)); };
|
|
61
|
+
FormFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormFieldComponent, selectors: [["igo-form-field"]], inputs: { field: "field" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [3, "component", "inputs", "subscribers"]], template: function FormFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
62
|
+
i0.ɵɵtemplate(0, FormFieldComponent_ng_container_0_Template, 2, 3, "ng-container", 0);
|
|
63
|
+
} if (rf & 2) {
|
|
64
|
+
i0.ɵɵproperty("ngIf", ctx.field !== undefined);
|
|
65
|
+
} }, dependencies: [i2.NgIf, i3.DynamicOutletComponent], styles: ["mat-form-field{width:100%} .igo-form-disable-switch{margin-right:8px}"], changeDetection: 0 });
|
|
66
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldComponent, [{
|
|
67
|
+
type: Component,
|
|
68
|
+
args: [{ selector: 'igo-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "\n\n<ng-container *ngIf=\"field !== undefined\">\n <igo-dynamic-outlet\n [component]=\"getFieldComponent()\"\n [inputs]=\"getFieldInputs()\"\n [subscribers]=\"getFieldSubscribers()\">\n </igo-dynamic-outlet>\n</ng-container>\n", styles: ["::ng-deep mat-form-field{width:100%}::ng-deep .igo-form-disable-switch{margin-right:8px}\n"] }]
|
|
69
|
+
}], function () { return [{ type: i1.FormFieldService }]; }, { field: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}] }); })();
|
|
72
72
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9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