@igo2/common 1.15.3 → 16.0.0-rc.0
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/common-theme.scss +19 -0
- package/{esm2020 → esm2022}/igo2-common.mjs +4 -4
- package/esm2022/lib/action/action.module.mjs +20 -0
- package/esm2022/lib/action/actionbar/actionbar-item.component.mjs +270 -0
- package/esm2022/lib/action/actionbar/actionbar.component.mjs +389 -0
- package/{esm2020 → esm2022}/lib/action/actionbar/actionbar.module.mjs +57 -57
- package/{esm2020 → esm2022}/lib/action/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/action/shared/action.enums.mjs +7 -7
- package/{esm2020 → esm2022}/lib/action/shared/action.interfaces.mjs +2 -2
- package/{esm2020 → esm2022}/lib/action/shared/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/action/shared/store.mjs +8 -8
- package/esm2022/lib/backdrop/backdrop.component.mjs +27 -0
- package/{esm2020 → esm2022}/lib/backdrop/backdrop.module.mjs +25 -25
- package/{esm2020 → esm2022}/lib/backdrop/index.mjs +2 -2
- package/esm2022/lib/badge-icon/badge-icon.directive.mjs +150 -0
- package/{esm2020 → esm2022}/lib/badge-icon/badge-icon.module.mjs +26 -26
- package/{esm2020 → esm2022}/lib/badge-icon/index.mjs +2 -2
- package/esm2022/lib/clickout/clickout.directive.mjs +33 -0
- package/{esm2020 → esm2022}/lib/clickout/clickout.module.mjs +24 -24
- package/{esm2020 → esm2022}/lib/clickout/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/clone/clone.module.mjs +24 -24
- package/esm2022/lib/clone/clone.pipe.mjs +24 -0
- package/{esm2020 → esm2022}/lib/clone/index.mjs +2 -2
- package/esm2022/lib/collapsible/collapse.directive.mjs +58 -0
- package/esm2022/lib/collapsible/collapsible.component.mjs +54 -0
- package/{esm2020 → esm2022}/lib/collapsible/collapsible.module.mjs +27 -27
- package/{esm2020 → esm2022}/lib/collapsible/index.mjs +3 -3
- package/esm2022/lib/color-picker-form-field/color-picker-form-field.component.mjs +121 -0
- package/esm2022/lib/color-picker-form-field/color-picker-form-field.module.mjs +32 -0
- package/esm2022/lib/color-picker-form-field/index.mjs +2 -0
- package/esm2022/lib/confirm-dialog/confirm-dialog.component.mjs +47 -0
- package/{esm2020 → esm2022}/lib/confirm-dialog/confirm-dialog.module.mjs +29 -29
- package/esm2022/lib/confirm-dialog/confirm-dialog.service.mjs +29 -0
- package/{esm2020 → esm2022}/lib/confirm-dialog/index.mjs +3 -3
- package/esm2022/lib/context-menu/context-menu.directive.mjs +110 -0
- package/{esm2020 → esm2022}/lib/context-menu/context-menu.module.mjs +25 -25
- package/{esm2020 → esm2022}/lib/context-menu/index.mjs +3 -3
- package/esm2022/lib/context-menu/long-press.directive.mjs +67 -0
- package/esm2022/lib/custom-html/custom-html.component.mjs +27 -0
- package/{esm2020 → esm2022}/lib/custom-html/custom-html.module.mjs +47 -47
- package/{esm2020 → esm2022}/lib/custom-html/custom-html.pipe.mjs +20 -18
- package/{esm2020 → esm2022}/lib/custom-html/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/dom/dom.interfaces.mjs +2 -2
- package/{esm2020 → esm2022}/lib/dom/dom.module.mjs +21 -23
- package/esm2022/lib/dom/dom.service.mjs +35 -0
- package/{esm2020 → esm2022}/lib/dom/index.mjs +3 -3
- package/esm2022/lib/drag-drop/drag-drop.directive.mjs +85 -0
- package/{esm2020 → esm2022}/lib/drag-drop/drag-drop.module.mjs +24 -24
- package/{esm2020 → esm2022}/lib/drag-drop/index.mjs +2 -2
- package/esm2022/lib/dynamic-component/dynamic-component.module.mjs +20 -0
- package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +138 -0
- package/esm2022/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +22 -0
- package/{esm2020 → esm2022}/lib/dynamic-component/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/dynamic-component/shared/dynamic-component.interfaces.mjs +2 -2
- package/esm2022/lib/dynamic-component/shared/dynamic-component.mjs +183 -0
- package/{esm2020 → esm2022}/lib/dynamic-component/shared/dynamic-component.service.mjs +30 -29
- package/{esm2020 → esm2022}/lib/dynamic-component/shared/index.mjs +4 -4
- package/esm2022/lib/entity/entity-selector/entity-selector.component.mjs +214 -0
- package/esm2022/lib/entity/entity-selector/entity-selector.module.mjs +24 -0
- package/esm2022/lib/entity/entity-table/entity-table-row.directive.mjs +139 -0
- package/esm2022/lib/entity/entity-table/entity-table.component.mjs +1455 -0
- package/esm2022/lib/entity/entity-table/entity-table.module.mjs +96 -0
- package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +167 -0
- package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +2 -0
- package/esm2022/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +22 -0
- package/{esm2020 → esm2022}/lib/entity/entity.module.mjs +29 -31
- package/{esm2020 → esm2022}/lib/entity/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/entity/shared/entity.enums.mjs +28 -28
- package/esm2022/lib/entity/shared/entity.interfaces.mjs +2 -0
- package/esm2022/lib/entity/shared/entity.utils.mjs +73 -0
- package/esm2022/lib/entity/shared/index.mjs +11 -0
- package/esm2022/lib/entity/shared/state.mjs +194 -0
- package/esm2022/lib/entity/shared/store-strategy.mjs +73 -0
- package/esm2022/lib/entity/shared/store.mjs +256 -0
- package/esm2022/lib/entity/shared/strategies/filter-custom-function.mjs +80 -0
- package/esm2022/lib/entity/shared/strategies/filter-selection.mjs +81 -0
- package/{esm2020 → esm2022}/lib/entity/shared/strategies/index.mjs +4 -4
- package/esm2022/lib/entity/shared/strategies/strategy.mjs +78 -0
- package/esm2022/lib/entity/shared/transaction.mjs +329 -0
- package/esm2022/lib/entity/shared/view.mjs +330 -0
- package/esm2022/lib/entity/shared/watcher.mjs +135 -0
- package/esm2022/lib/flexible/flexible.component.mjs +153 -0
- package/{esm2020 → esm2022}/lib/flexible/flexible.module.mjs +24 -24
- package/{esm2020 → esm2022}/lib/flexible/flexible.type.mjs +2 -2
- package/{esm2020 → esm2022}/lib/flexible/index.mjs +3 -3
- package/esm2022/lib/form/form/form.component.mjs +125 -0
- package/esm2022/lib/form/form/form.module.mjs +23 -0
- package/esm2022/lib/form/form-field/form-field-select.component.mjs +140 -0
- package/esm2022/lib/form/form-field/form-field-text.component.mjs +113 -0
- package/esm2022/lib/form/form-field/form-field-textarea.component.mjs +114 -0
- package/esm2022/lib/form/form-field/form-field.component.mjs +78 -0
- package/{esm2020 → esm2022}/lib/form/form-field/form-field.module.mjs +74 -74
- package/{esm2020 → esm2022}/lib/form/form-field/index.mjs +5 -5
- package/esm2022/lib/form/form-group/form-group.component.mjs +115 -0
- package/esm2022/lib/form/form-group/form-group.module.mjs +36 -0
- package/esm2022/lib/form/form.module.mjs +27 -0
- package/{esm2020 → esm2022}/lib/form/index.mjs +5 -5
- package/{esm2020 → esm2022}/lib/form/shared/form-field-component.mjs +7 -7
- package/esm2022/lib/form/shared/form-field.service.mjs +29 -0
- package/esm2022/lib/form/shared/form.interfaces.mjs +2 -0
- package/esm2022/lib/form/shared/form.service.mjs +82 -0
- package/esm2022/lib/form/shared/form.utils.mjs +40 -0
- package/{esm2020 → esm2022}/lib/form/shared/index.mjs +6 -6
- package/esm2022/lib/home-button/home-button.component.mjs +30 -0
- package/{esm2020 → esm2022}/lib/home-button/home-button.module.mjs +41 -41
- package/{esm2020 → esm2022}/lib/home-button/index.mjs +2 -2
- package/esm2022/lib/image/image-error.directive.mjs +36 -0
- package/{esm2020 → esm2022}/lib/image/image.module.mjs +25 -25
- package/{esm2020 → esm2022}/lib/image/index.mjs +3 -3
- package/esm2022/lib/image/secure-image.pipe.mjs +65 -0
- package/{esm2020 → esm2022}/lib/interactive-tour/index.mjs +5 -5
- package/esm2022/lib/interactive-tour/interactive-tour.component.mjs +161 -0
- package/esm2022/lib/interactive-tour/interactive-tour.interface.mjs +2 -0
- package/esm2022/lib/interactive-tour/interactive-tour.loader.mjs +49 -0
- package/{esm2020 → esm2022}/lib/interactive-tour/interactive-tour.module.mjs +40 -40
- package/esm2022/lib/interactive-tour/interactive-tour.service.mjs +297 -0
- package/{esm2020 → esm2022}/lib/json-dialog/index.mjs +3 -3
- package/esm2022/lib/json-dialog/json-dialog.component.mjs +114 -0
- package/{esm2020 → esm2022}/lib/json-dialog/json-dialog.module.mjs +29 -29
- package/{esm2020 → esm2022}/lib/json-dialog/json-dialog.service.mjs +26 -24
- package/{esm2020 → esm2022}/lib/keyvalue/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/keyvalue/keyvalue.module.mjs +24 -24
- package/{esm2020 → esm2022}/lib/keyvalue/keyvalue.pipe.mjs +18 -18
- package/{esm2020 → esm2022}/lib/list/index.mjs +3 -3
- package/esm2022/lib/list/list-item.directive.mjs +167 -0
- package/esm2022/lib/list/list.component.mjs +268 -0
- package/{esm2020 → esm2022}/lib/list/list.module.mjs +29 -29
- package/{esm2020 → esm2022}/lib/panel/index.mjs +2 -2
- package/esm2022/lib/panel/panel.component.mjs +60 -0
- package/{esm2020 → esm2022}/lib/panel/panel.module.mjs +19 -19
- package/{esm2020 → esm2022}/lib/sidenav/index.mjs +2 -2
- package/esm2022/lib/sidenav/sidenav-shim.directive.mjs +59 -0
- package/{esm2020 → esm2022}/lib/sidenav/sidenav.module.mjs +24 -24
- package/{esm2020 → esm2022}/lib/spinner/index.mjs +3 -3
- package/esm2022/lib/spinner/spinner-activity.directive.mjs +55 -0
- package/esm2022/lib/spinner/spinner.component.mjs +38 -0
- package/{esm2020 → esm2022}/lib/spinner/spinner.module.mjs +21 -21
- package/{esm2020 → esm2022}/lib/stop-propagation/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/stop-propagation/stop-drop-propagation.directive.mjs +22 -22
- package/{esm2020 → esm2022}/lib/stop-propagation/stop-propagation.directive.mjs +21 -21
- package/{esm2020 → esm2022}/lib/stop-propagation/stop-propagation.module.mjs +25 -25
- package/{esm2020 → esm2022}/lib/table/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/table/table-action-color.enum.mjs +7 -7
- package/esm2022/lib/table/table-database.mjs +28 -0
- package/esm2022/lib/table/table-datasource.mjs +64 -0
- package/esm2022/lib/table/table-model.interface.mjs +2 -0
- package/esm2022/lib/table/table.component.mjs +302 -0
- package/{esm2020 → esm2022}/lib/table/table.module.mjs +67 -67
- package/{esm2020 → esm2022}/lib/tool/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/tool/shared/index.mjs +6 -6
- package/esm2022/lib/tool/shared/tool-component.mjs +9 -0
- package/esm2022/lib/tool/shared/tool.interface.mjs +2 -0
- package/esm2022/lib/tool/shared/tool.service.mjs +43 -0
- package/{esm2020 → esm2022}/lib/tool/shared/toolbox.enums.mjs +7 -7
- package/esm2022/lib/tool/shared/toolbox.mjs +184 -0
- package/esm2022/lib/tool/tool.module.mjs +26 -0
- package/{esm2020 → esm2022}/lib/tool/toolbox/toolbox.animation.mjs +10 -10
- package/esm2022/lib/tool/toolbox/toolbox.component.mjs +273 -0
- package/esm2022/lib/tool/toolbox/toolbox.module.mjs +24 -0
- package/{esm2020 → esm2022}/lib/widget/index.mjs +3 -3
- package/{esm2020 → esm2022}/lib/widget/shared/index.mjs +4 -4
- package/esm2022/lib/widget/shared/widget.interfaces.mjs +2 -0
- package/{esm2020 → esm2022}/lib/widget/shared/widget.mjs +4 -4
- package/esm2022/lib/widget/shared/widget.service.mjs +22 -0
- package/esm2022/lib/widget/widget-outlet/widget-outlet.component.mjs +124 -0
- package/esm2022/lib/widget/widget-outlet/widget-outlet.module.mjs +23 -0
- package/esm2022/lib/widget/widget.module.mjs +21 -0
- package/{esm2020 → esm2022}/lib/workspace/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/workspace/shared/index.mjs +4 -4
- package/esm2022/lib/workspace/shared/store.mjs +37 -0
- package/{esm2020 → esm2022}/lib/workspace/shared/workspace.interfaces.mjs +2 -2
- package/esm2022/lib/workspace/shared/workspace.mjs +143 -0
- package/esm2022/lib/workspace/workspace-selector/workspace-selector.component.mjs +58 -0
- package/esm2022/lib/workspace/workspace-selector/workspace-selector.module.mjs +23 -0
- package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +94 -0
- package/esm2022/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +23 -0
- package/esm2022/lib/workspace/workspace.module.mjs +20 -0
- package/esm2022/public_api.mjs +76 -0
- package/{fesm2020 → fesm2022}/igo2-common.mjs +9837 -9345
- package/fesm2022/igo2-common.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/action/action.module.d.ts +8 -8
- package/lib/action/action.theming.scss +5 -0
- package/lib/action/actionbar/actionbar-item.component.d.ts +78 -78
- package/lib/action/actionbar/actionbar-item.theming.scss +32 -0
- package/lib/action/actionbar/actionbar.component.d.ts +147 -146
- package/lib/action/actionbar/actionbar.module.d.ts +20 -20
- package/lib/action/actionbar/actionbar.theming.scss +22 -0
- 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/collapsible.theming.scss +22 -0
- package/lib/collapsible/index.d.ts +2 -2
- package/lib/color-picker-form-field/color-picker-form-field.component.d.ts +26 -0
- package/lib/color-picker-form-field/color-picker-form-field.module.d.ts +10 -0
- package/lib/color-picker-form-field/index.d.ts +1 -0
- 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-selector/entity-selector.theming.scss +21 -0
- package/lib/entity/entity-table/entity-table-row.directive.d.ts +69 -69
- package/lib/entity/entity-table/entity-table.component.d.ts +327 -333
- package/lib/entity/entity-table/entity-table.module.d.ts +29 -29
- package/lib/entity/entity-table/entity-table.theming.scss +34 -0
- 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-table-paginator/entity-table-paginator.theming.scss +21 -0
- package/lib/entity/entity.module.d.ts +10 -10
- package/lib/entity/entity.theming.scss +10 -0
- 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 +95 -114
- package/lib/entity/shared/entity.utils.d.ts +49 -49
- package/lib/entity/shared/index.d.ts +10 -9
- package/lib/entity/shared/state.d.ts +108 -103
- package/lib/entity/shared/store-strategy.d.ts +38 -0
- package/lib/entity/shared/store.d.ts +147 -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 +180 -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 +29 -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 +61 -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/home-button.theming.scss +18 -0
- 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/interactive-tour/interactive-tour.theming.scss +32 -0
- 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/list/list.theming.scss +40 -0
- 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/panel/panel.theming.scss +30 -0
- 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 +18 -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/tool.theming.scss +5 -0
- package/lib/tool/toolbox/toolbox.animation.d.ts +2 -2
- package/lib/tool/toolbox/toolbox.component.d.ts +128 -127
- package/lib/tool/toolbox/toolbox.module.d.ts +13 -13
- package/lib/tool/toolbox/toolbox.theming.scss +105 -0
- 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/locale/en.common.json +43 -0
- package/locale/fr.common.json +43 -0
- package/package.json +30 -28
- package/public_api.d.ts +72 -70
- package/style/partial/common-utils.scss +9 -0
- package/style/partial/common.variables.scss +8 -8
- package/style/style.css +204 -0
- package/esm2020/lib/action/action.module.mjs +0 -27
- package/esm2020/lib/action/actionbar/actionbar-item.component.mjs +0 -252
- package/esm2020/lib/action/actionbar/actionbar.component.mjs +0 -370
- package/esm2020/lib/backdrop/backdrop.component.mjs +0 -26
- package/esm2020/lib/badge-icon/badge-icon.directive.mjs +0 -141
- package/esm2020/lib/clickout/clickout.directive.mjs +0 -32
- package/esm2020/lib/clone/clone.pipe.mjs +0 -24
- package/esm2020/lib/collapsible/collapse.directive.mjs +0 -55
- package/esm2020/lib/collapsible/collapsible.component.mjs +0 -57
- package/esm2020/lib/confirm-dialog/confirm-dialog.component.mjs +0 -44
- package/esm2020/lib/confirm-dialog/confirm-dialog.service.mjs +0 -24
- package/esm2020/lib/context-menu/context-menu.directive.mjs +0 -103
- package/esm2020/lib/context-menu/long-press.directive.mjs +0 -67
- package/esm2020/lib/custom-html/custom-html.component.mjs +0 -28
- package/esm2020/lib/dom/dom.service.mjs +0 -30
- package/esm2020/lib/drag-drop/drag-drop.directive.mjs +0 -88
- package/esm2020/lib/dynamic-component/dynamic-component.module.mjs +0 -31
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.component.mjs +0 -122
- package/esm2020/lib/dynamic-component/dynamic-outlet/dynamic-outlet.module.mjs +0 -28
- package/esm2020/lib/dynamic-component/shared/dynamic-component.mjs +0 -174
- package/esm2020/lib/entity/entity-selector/entity-selector.component.mjs +0 -194
- package/esm2020/lib/entity/entity-selector/entity-selector.module.mjs +0 -32
- package/esm2020/lib/entity/entity-table/entity-table-row.directive.mjs +0 -137
- package/esm2020/lib/entity/entity-table/entity-table.component.mjs +0 -1376
- package/esm2020/lib/entity/entity-table/entity-table.module.mjs +0 -102
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.component.mjs +0 -132
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.interface.mjs +0 -2
- package/esm2020/lib/entity/entity-table-paginator/entity-table-paginator.module.mjs +0 -28
- package/esm2020/lib/entity/shared/entity.interfaces.mjs +0 -2
- package/esm2020/lib/entity/shared/entity.utils.mjs +0 -67
- package/esm2020/lib/entity/shared/index.mjs +0 -10
- package/esm2020/lib/entity/shared/state.mjs +0 -191
- package/esm2020/lib/entity/shared/store.mjs +0 -288
- package/esm2020/lib/entity/shared/strategies/filter-custom-function.mjs +0 -79
- package/esm2020/lib/entity/shared/strategies/filter-selection.mjs +0 -84
- package/esm2020/lib/entity/shared/strategies/strategy.mjs +0 -75
- package/esm2020/lib/entity/shared/transaction.mjs +0 -316
- package/esm2020/lib/entity/shared/view.mjs +0 -315
- package/esm2020/lib/entity/shared/watcher.mjs +0 -120
- package/esm2020/lib/flexible/flexible.component.mjs +0 -148
- package/esm2020/lib/form/form/form.component.mjs +0 -117
- package/esm2020/lib/form/form/form.module.mjs +0 -40
- package/esm2020/lib/form/form-field/form-field-select.component.mjs +0 -127
- package/esm2020/lib/form/form-field/form-field-text.component.mjs +0 -104
- package/esm2020/lib/form/form-field/form-field-textarea.component.mjs +0 -105
- package/esm2020/lib/form/form-field/form-field.component.mjs +0 -72
- package/esm2020/lib/form/form-group/form-group.component.mjs +0 -105
- package/esm2020/lib/form/form-group/form-group.module.mjs +0 -40
- package/esm2020/lib/form/form.module.mjs +0 -49
- package/esm2020/lib/form/shared/form-field.service.mjs +0 -29
- package/esm2020/lib/form/shared/form.interfaces.mjs +0 -2
- package/esm2020/lib/form/shared/form.service.mjs +0 -81
- package/esm2020/lib/form/shared/form.utils.mjs +0 -40
- package/esm2020/lib/home-button/home-button.component.mjs +0 -31
- package/esm2020/lib/image/image-error.directive.mjs +0 -35
- package/esm2020/lib/image/secure-image.pipe.mjs +0 -59
- package/esm2020/lib/interactive-tour/interactive-tour.component.mjs +0 -135
- package/esm2020/lib/interactive-tour/interactive-tour.interface.mjs +0 -2
- package/esm2020/lib/interactive-tour/interactive-tour.loader.mjs +0 -44
- package/esm2020/lib/interactive-tour/interactive-tour.service.mjs +0 -285
- package/esm2020/lib/json-dialog/json-dialog.component.mjs +0 -109
- package/esm2020/lib/list/list-item.directive.mjs +0 -165
- package/esm2020/lib/list/list.component.mjs +0 -262
- package/esm2020/lib/panel/panel.component.mjs +0 -59
- package/esm2020/lib/sidenav/sidenav-shim.directive.mjs +0 -55
- package/esm2020/lib/spinner/spinner-activity.directive.mjs +0 -47
- package/esm2020/lib/spinner/spinner.component.mjs +0 -35
- package/esm2020/lib/table/table-database.mjs +0 -28
- package/esm2020/lib/table/table-datasource.mjs +0 -61
- package/esm2020/lib/table/table-model.interface.mjs +0 -2
- package/esm2020/lib/table/table.component.mjs +0 -297
- package/esm2020/lib/tool/shared/tool-component.mjs +0 -9
- package/esm2020/lib/tool/shared/tool.interface.mjs +0 -2
- package/esm2020/lib/tool/shared/tool.service.mjs +0 -43
- package/esm2020/lib/tool/shared/toolbox.mjs +0 -179
- package/esm2020/lib/tool/tool.module.mjs +0 -32
- package/esm2020/lib/tool/toolbox/toolbox.component.mjs +0 -255
- package/esm2020/lib/tool/toolbox/toolbox.module.mjs +0 -36
- package/esm2020/lib/widget/shared/widget.interfaces.mjs +0 -2
- package/esm2020/lib/widget/shared/widget.service.mjs +0 -20
- package/esm2020/lib/widget/widget-outlet/widget-outlet.component.mjs +0 -116
- package/esm2020/lib/widget/widget-outlet/widget-outlet.module.mjs +0 -32
- package/esm2020/lib/widget/widget.module.mjs +0 -32
- package/esm2020/lib/workspace/shared/store.mjs +0 -40
- package/esm2020/lib/workspace/shared/workspace.mjs +0 -117
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.component.mjs +0 -51
- package/esm2020/lib/workspace/workspace-selector/workspace-selector.module.mjs +0 -32
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.component.mjs +0 -88
- package/esm2020/lib/workspace/workspace-widget-outlet/workspace-widget-outlet.module.mjs +0 -32
- package/esm2020/lib/workspace/workspace.module.mjs +0 -27
- package/esm2020/public_api.mjs +0 -74
- package/fesm2015/igo2-common.mjs +0 -10329
- package/fesm2015/igo2-common.mjs.map +0 -1
- package/fesm2020/igo2-common.mjs.map +0 -1
- package/style/common.theming.scss +0 -12
- package/style/partial/action.scss +0 -18
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
export let FormFieldTextComponent = class FormFieldTextComponent {
|
|
37
|
+
disabled$ = new BehaviorSubject(false);
|
|
38
|
+
/**
|
|
39
|
+
* The field's form control
|
|
40
|
+
*/
|
|
41
|
+
formControl;
|
|
42
|
+
/**
|
|
43
|
+
* Field placeholder
|
|
44
|
+
*/
|
|
45
|
+
placeholder;
|
|
46
|
+
/**
|
|
47
|
+
* Field placeholder
|
|
48
|
+
*/
|
|
49
|
+
errors;
|
|
50
|
+
/**
|
|
51
|
+
* Wheter a disable switch should be available
|
|
52
|
+
*/
|
|
53
|
+
disableSwitch = false;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the field is required
|
|
56
|
+
*/
|
|
57
|
+
get required() {
|
|
58
|
+
return formControlIsRequired(this.formControl);
|
|
59
|
+
}
|
|
60
|
+
ngOnInit() {
|
|
61
|
+
this.disabled$.next(this.formControl.disabled);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get error message
|
|
65
|
+
*/
|
|
66
|
+
getErrorMessage() {
|
|
67
|
+
return getControlErrorMessage(this.formControl, this.errors);
|
|
68
|
+
}
|
|
69
|
+
onDisableSwitchClick() {
|
|
70
|
+
this.toggleDisabled();
|
|
71
|
+
}
|
|
72
|
+
toggleDisabled() {
|
|
73
|
+
const disabled = !this.disabled$.value;
|
|
74
|
+
if (disabled === true) {
|
|
75
|
+
this.formControl.disable();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.formControl.enable();
|
|
79
|
+
}
|
|
80
|
+
this.disabled$.next(disabled);
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = function FormFieldTextComponent_Factory(t) { return new (t || FormFieldTextComponent)(); };
|
|
83
|
+
static ɵ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) {
|
|
84
|
+
i0.ɵɵelementStart(0, "mat-form-field");
|
|
85
|
+
i0.ɵɵelement(1, "input", 0);
|
|
86
|
+
i0.ɵɵtemplate(2, FormFieldTextComponent_mat_icon_2_Template, 2, 3, "mat-icon", 1);
|
|
87
|
+
i0.ɵɵtemplate(3, FormFieldTextComponent_mat_error_3_Template, 3, 3, "mat-error", 2);
|
|
88
|
+
i0.ɵɵelementEnd();
|
|
89
|
+
} if (rf & 2) {
|
|
90
|
+
i0.ɵɵadvance(1);
|
|
91
|
+
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
92
|
+
i0.ɵɵadvance(1);
|
|
93
|
+
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
94
|
+
i0.ɵɵadvance(1);
|
|
95
|
+
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
96
|
+
} }, dependencies: [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatFormField, i4.MatError, i4.MatPrefix, i5.MatInput, i1.AsyncPipe, i6.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
97
|
+
};
|
|
98
|
+
FormFieldTextComponent = __decorate([
|
|
99
|
+
IgoFormFieldComponent('text')
|
|
100
|
+
], FormFieldTextComponent);
|
|
101
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextComponent, [{
|
|
102
|
+
type: Component,
|
|
103
|
+
args: [{ selector: 'igo-form-field-text', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\r\n <input\r\n matInput\r\n [required]=\"required\"\r\n [placeholder]=\"placeholder\"\r\n [formControl]=\"formControl\"\r\n />\r\n <mat-icon\r\n *ngIf=\"disableSwitch === true\"\r\n class=\"igo-form-disable-switch\"\r\n [svgIcon]=\"\r\n (disabled$ | async) === true\r\n ? 'checkbox-blank-outline'\r\n : 'checkbox-marked-outline'\r\n \"\r\n (click)=\"onDisableSwitchClick()\"\r\n matPrefix\r\n >\r\n </mat-icon>\r\n <mat-error *ngIf=\"formControl.errors\">{{\r\n getErrorMessage() | translate\r\n }}</mat-error>\r\n</mat-form-field>\r\n" }]
|
|
104
|
+
}], null, { formControl: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], placeholder: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], errors: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], disableSwitch: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}] }); })();
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZXh0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbW1vbi9zcmMvbGliL2Zvcm0vZm9ybS1maWVsZC9mb3JtLWZpZWxkLXRleHQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tbW9uL3NyYy9saWIvZm9ybS9mb3JtLWZpZWxkL2Zvcm0tZmllbGQtdGV4dC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFdkMsT0FBTyxFQUNMLHFCQUFxQixFQUNyQixzQkFBc0IsRUFDdkIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQzs7Ozs7Ozs7OztJQ1ByRSxtQ0FVQztJQUZDLDBLQUFTLGVBQUEsNkJBQXNCLENBQUEsSUFBQzs7SUFHbEMsaUJBQVc7OztJQVJULGdJQUlDOzs7SUFLSCxpQ0FBc0M7SUF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wdXRcclxuICAgIFtyZXF1aXJlZF09XCJyZXF1aXJlZFwiXHJcbiAgICBbcGxhY2Vob2xkZXJdPVwicGxhY2Vob2xkZXJcIlxyXG4gICAgW2Zvcm1Db250cm9sXT1cImZvcm1Db250cm9sXCJcclxuICAvPlxyXG4gIDxtYXQtaWNvblxyXG4gICAgKm5nSWY9XCJkaXNhYmxlU3dpdGNoID09PSB0cnVlXCJcclxuICAgIGNsYXNzPVwiaWdvLWZvcm0tZGlzYWJsZS1zd2l0Y2hcIlxyXG4gICAgW3N2Z0ljb25dPVwiXHJcbiAgICAgIChkaXNhYmxlZCQgfCBhc3luYykgPT09IHRydWVcclxuICAgICAgICA/ICdjaGVja2JveC1ibGFuay1vdXRsaW5lJ1xyXG4gICAgICAgIDogJ2NoZWNrYm94LW1hcmtlZC1vdXRsaW5lJ1xyXG4gICAgXCJcclxuICAgIChjbGljayk9XCJvbkRpc2FibGVTd2l0Y2hDbGljaygpXCJcclxuICAgIG1hdFByZWZpeFxyXG4gID5cclxuICA8L21hdC1pY29uPlxyXG4gIDxtYXQtZXJyb3IgKm5nSWY9XCJmb3JtQ29udHJvbC5lcnJvcnNcIj57e1xyXG4gICAgZ2V0RXJyb3JNZXNzYWdlKCkgfCB0cmFuc2xhdGVcclxuICB9fTwvbWF0LWVycm9yPlxyXG48L21hdC1mb3JtLWZpZWxkPlxyXG4iXX0=
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
export let FormFieldTextareaComponent = class FormFieldTextareaComponent {
|
|
37
|
+
disabled$ = new BehaviorSubject(false);
|
|
38
|
+
/**
|
|
39
|
+
* The field's form control
|
|
40
|
+
*/
|
|
41
|
+
formControl;
|
|
42
|
+
/**
|
|
43
|
+
* Field placeholder
|
|
44
|
+
*/
|
|
45
|
+
placeholder;
|
|
46
|
+
/**
|
|
47
|
+
* Field placeholder
|
|
48
|
+
*/
|
|
49
|
+
errors;
|
|
50
|
+
/**
|
|
51
|
+
* Wheter a disable switch should be available
|
|
52
|
+
*/
|
|
53
|
+
disableSwitch = false;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the field is required
|
|
56
|
+
*/
|
|
57
|
+
get required() {
|
|
58
|
+
return formControlIsRequired(this.formControl);
|
|
59
|
+
}
|
|
60
|
+
ngOnInit() {
|
|
61
|
+
this.disabled$.next(this.formControl.disabled);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Get error message
|
|
65
|
+
*/
|
|
66
|
+
getErrorMessage() {
|
|
67
|
+
return getControlErrorMessage(this.formControl, this.errors);
|
|
68
|
+
}
|
|
69
|
+
onDisableSwitchClick() {
|
|
70
|
+
this.toggleDisabled();
|
|
71
|
+
}
|
|
72
|
+
toggleDisabled() {
|
|
73
|
+
const disabled = !this.disabled$.value;
|
|
74
|
+
if (disabled === true) {
|
|
75
|
+
this.formControl.disable();
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
this.formControl.enable();
|
|
79
|
+
}
|
|
80
|
+
this.disabled$.next(disabled);
|
|
81
|
+
}
|
|
82
|
+
static ɵfac = function FormFieldTextareaComponent_Factory(t) { return new (t || FormFieldTextareaComponent)(); };
|
|
83
|
+
static ɵ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) {
|
|
84
|
+
i0.ɵɵelementStart(0, "mat-form-field")(1, "textarea", 0);
|
|
85
|
+
i0.ɵɵtext(2, " ");
|
|
86
|
+
i0.ɵɵelementEnd();
|
|
87
|
+
i0.ɵɵtemplate(3, FormFieldTextareaComponent_mat_icon_3_Template, 2, 3, "mat-icon", 1);
|
|
88
|
+
i0.ɵɵtemplate(4, FormFieldTextareaComponent_mat_error_4_Template, 3, 3, "mat-error", 2);
|
|
89
|
+
i0.ɵɵelementEnd();
|
|
90
|
+
} if (rf & 2) {
|
|
91
|
+
i0.ɵɵadvance(1);
|
|
92
|
+
i0.ɵɵproperty("required", ctx.required)("placeholder", ctx.placeholder)("formControl", ctx.formControl);
|
|
93
|
+
i0.ɵɵadvance(2);
|
|
94
|
+
i0.ɵɵproperty("ngIf", ctx.disableSwitch === true);
|
|
95
|
+
i0.ɵɵadvance(1);
|
|
96
|
+
i0.ɵɵproperty("ngIf", ctx.formControl.errors);
|
|
97
|
+
} }, dependencies: [i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.RequiredValidator, i2.FormControlDirective, i3.MatIcon, i4.MatFormField, i4.MatError, i4.MatPrefix, i5.MatInput, i1.AsyncPipe, i6.TranslatePipe], encapsulation: 2, changeDetection: 0 });
|
|
98
|
+
};
|
|
99
|
+
FormFieldTextareaComponent = __decorate([
|
|
100
|
+
IgoFormFieldComponent('textarea')
|
|
101
|
+
], FormFieldTextareaComponent);
|
|
102
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldTextareaComponent, [{
|
|
103
|
+
type: Component,
|
|
104
|
+
args: [{ selector: 'igo-form-field-textarea', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-form-field>\r\n <textarea\r\n matInput\r\n [required]=\"required\"\r\n [placeholder]=\"placeholder\"\r\n [formControl]=\"formControl\"\r\n >\r\n </textarea>\r\n <mat-icon\r\n *ngIf=\"disableSwitch === true\"\r\n class=\"igo-form-disable-switch\"\r\n [svgIcon]=\"\r\n (disabled$ | async) === true\r\n ? 'checkbox-blank-outline'\r\n : 'checkbox-marked-outline'\r\n \"\r\n (click)=\"onDisableSwitchClick()\"\r\n matPrefix\r\n >\r\n </mat-icon>\r\n <mat-error *ngIf=\"formControl.errors\">{{\r\n getErrorMessage() | translate\r\n }}</mat-error>\r\n</mat-form-field>\r\n" }]
|
|
105
|
+
}], null, { formControl: [{
|
|
106
|
+
type: Input
|
|
107
|
+
}], placeholder: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], errors: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], disableSwitch: [{
|
|
112
|
+
type: Input
|
|
113
|
+
}] }); })();
|
|
114
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUNMLEtBQUssRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXhCLE1BQU0sZUFBZSxDQUFDO0FBR3ZCLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFFdkMsT0FBTyxFQUNMLHFCQUFxQixFQUNyQixzQkFBc0IsRUFDdkIsTUFBTSxzQkFBc0IsQ0FBQztBQUM5QixPQUFPLEVB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RoaXMuZm9ybUNvbnRyb2wuZGlzYWJsZSgpO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgdGhpcy5mb3JtQ29udHJvbC5lbmFibGUoKTtcclxuICAgIH1cclxuICAgIHRoaXMuZGlzYWJsZWQkLm5leHQoZGlzYWJsZWQpO1xyXG4gIH1cclxufVxyXG4iLCI8bWF0LWZvcm0tZmllbGQ+XHJcbiAgPHRleHRhcmVhXHJcbiAgICBtYXRJbnB1dFxyXG4gICAgW3JlcXVpcmVkXT1cInJlcXVpcmVkXCJcclxuICAgIFtwbGFjZWhvbGRlcl09XCJwbGFjZWhvbGRlclwiXHJcbiAgICBbZm9ybUNvbnRyb2xdPVwiZm9ybUNvbnRyb2xcIlxyXG4gID5cclxuICA8L3RleHRhcmVhPlxyXG4gIDxtYXQtaWNvblxyXG4gICAgKm5nSWY9XCJkaXNhYmxlU3dpdGNoID09PSB0cnVlXCJcclxuICAgIGNsYXNzPVwiaWdvLWZvcm0tZGlzYWJsZS1zd2l0Y2hcIlxyXG4gICAgW3N2Z0ljb25dPVwiXHJcbiAgICAgIChkaXNhYmxlZCQgfCBhc3luYykgPT09IHRydWVcclxuICAgICAgICA/ICdjaGVja2JveC1ibGFuay1vdXRsaW5lJ1xyXG4gICAgICAgIDogJ2NoZWNrYm94LW1hcmtlZC1vdXRsaW5lJ1xyXG4gICAgXCJcclxuICAgIChjbGljayk9XCJvbkRpc2FibGVTd2l0Y2hDbGljaygpXCJcclxuICAgIG1hdFByZWZpeFxyXG4gID5cclxuICA8L21hdC1pY29uPlxyXG4gIDxtYXQtZXJyb3IgKm5nSWY9XCJmb3JtQ29udHJvbC5lcnJvcnNcIj57e1xyXG4gICAgZ2V0RXJyb3JNZXNzYWdlKCkgfCB0cmFuc2xhdGVcclxuICB9fTwvbWF0LWVycm9yPlxyXG48L21hdC1mb3JtLWZpZWxkPlxyXG4iXX0=
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { FormFieldService } from '../shared/form-field.service';
|
|
3
|
+
import { getDefaultErrorMessages } from '../shared';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../shared/form-field.service";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
import * as i3 from "../../dynamic-component/dynamic-outlet/dynamic-outlet.component";
|
|
8
|
+
function FormFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementContainerStart(0);
|
|
10
|
+
i0.ɵɵelement(1, "igo-dynamic-outlet", 1);
|
|
11
|
+
i0.ɵɵelementContainerEnd();
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
14
|
+
i0.ɵɵadvance(1);
|
|
15
|
+
i0.ɵɵproperty("component", ctx_r0.getFieldComponent())("inputs", ctx_r0.getFieldInputs())("subscribers", ctx_r0.getFieldSubscribers());
|
|
16
|
+
} }
|
|
17
|
+
/**
|
|
18
|
+
* This component renders the proper form input based on
|
|
19
|
+
* the field configuration it receives.
|
|
20
|
+
*/
|
|
21
|
+
export class FormFieldComponent {
|
|
22
|
+
formFieldService;
|
|
23
|
+
/**
|
|
24
|
+
* Field configuration
|
|
25
|
+
*/
|
|
26
|
+
field;
|
|
27
|
+
/**
|
|
28
|
+
* Field inputs cache
|
|
29
|
+
*/
|
|
30
|
+
fieldInputs = undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Field subscribers cache
|
|
33
|
+
*/
|
|
34
|
+
fieldSubscribers = undefined;
|
|
35
|
+
get fieldOptions() {
|
|
36
|
+
return this.field.options || {};
|
|
37
|
+
}
|
|
38
|
+
constructor(formFieldService) {
|
|
39
|
+
this.formFieldService = formFieldService;
|
|
40
|
+
}
|
|
41
|
+
getFieldComponent() {
|
|
42
|
+
return this.formFieldService.getFieldByType(this.field.type || 'text');
|
|
43
|
+
}
|
|
44
|
+
getFieldInputs() {
|
|
45
|
+
if (this.fieldInputs !== undefined) {
|
|
46
|
+
return this.fieldInputs;
|
|
47
|
+
}
|
|
48
|
+
const errors = this.fieldOptions.errors || {};
|
|
49
|
+
this.fieldInputs = Object.assign({
|
|
50
|
+
placeholder: this.field.title,
|
|
51
|
+
disableSwitch: this.fieldOptions.disableSwitch || false
|
|
52
|
+
}, Object.assign({}, this.field.inputs || {}), {
|
|
53
|
+
formControl: this.field.control,
|
|
54
|
+
errors: Object.assign({}, getDefaultErrorMessages(), errors)
|
|
55
|
+
});
|
|
56
|
+
return this.fieldInputs;
|
|
57
|
+
}
|
|
58
|
+
getFieldSubscribers() {
|
|
59
|
+
if (this.fieldSubscribers !== undefined) {
|
|
60
|
+
return this.fieldSubscribers;
|
|
61
|
+
}
|
|
62
|
+
this.fieldSubscribers = Object.assign({}, this.field.subscribers || {});
|
|
63
|
+
return this.fieldSubscribers;
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = function FormFieldComponent_Factory(t) { return new (t || FormFieldComponent)(i0.ɵɵdirectiveInject(i1.FormFieldService)); };
|
|
66
|
+
static ɵ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) {
|
|
67
|
+
i0.ɵɵtemplate(0, FormFieldComponent_ng_container_0_Template, 2, 3, "ng-container", 0);
|
|
68
|
+
} if (rf & 2) {
|
|
69
|
+
i0.ɵɵproperty("ngIf", ctx.field !== undefined);
|
|
70
|
+
} }, dependencies: [i2.NgIf, i3.DynamicOutletComponent], styles: ["mat-form-field{width:100%} .igo-form-disable-switch{margin-right:8px}"], changeDetection: 0 });
|
|
71
|
+
}
|
|
72
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormFieldComponent, [{
|
|
73
|
+
type: Component,
|
|
74
|
+
args: [{ selector: 'igo-form-field', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"field !== undefined\">\r\n <igo-dynamic-outlet\r\n [component]=\"getFieldComponent()\"\r\n [inputs]=\"getFieldInputs()\"\r\n [subscribers]=\"getFieldSubscribers()\"\r\n >\r\n </igo-dynamic-outlet>\r\n</ng-container>\r\n", styles: ["::ng-deep mat-form-field{width:100%}::ng-deep .igo-form-disable-switch{margin-right:8px}\n"] }]
|
|
75
|
+
}], function () { return [{ type: i1.FormFieldService }]; }, { field: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}] }); })();
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQVExRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSw4QkFBOEIsQ0FBQztBQUNoRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxXQUFXLENBQUM7Ozs7OztJQ1RwRCw2QkFBMEM7SUFDeEMsd0NBS3FCO0lBQ3ZCLDBCQUFlOzs7SUFMWCxlQUFpQztJQUFqQyxzREFBaUMsbUNBQUEsNkNBQUE7O0FEU3JDOzs7R0FHRztBQU9ILE1BQU0sT0FBTyx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JtRmllbGRTdWJzY3JpYmVycyB7XHJcbiAgICBpZiAodGhpcy5maWVsZFN1YnNjcmliZXJzICE9PSB1bmRlZmluZWQpIHtcclxuICAgICAgcmV0dXJuIHRoaXMuZmllbGRTdWJzY3JpYmVycztcclxuICAgIH1cclxuXHJcbiAgICB0aGlzLmZpZWxkU3Vic2NyaWJlcnMgPSBPYmplY3QuYXNzaWduKHt9LCB0aGlzLmZpZWxkLnN1YnNjcmliZXJzIHx8IHt9KTtcclxuICAgIHJldHVybiB0aGlzLmZpZWxkU3Vic2NyaWJlcnM7XHJcbiAgfVxyXG59XHJcbiIsIjxuZy1jb250YWluZXIgKm5nSWY9XCJmaWVsZCAhPT0gdW5kZWZpbmVkXCI+XHJcbiAgPGlnby1keW5hbWljLW91dGxldFxyXG4gICAgW2NvbXBvbmVudF09XCJnZXRGaWVsZENvbXBvbmVudCgpXCJcclxuICAgIFtpbnB1dHNdPVwiZ2V0RmllbGRJbnB1dHMoKVwiXHJcbiAgICBbc3Vic2NyaWJlcnNdPVwiZ2V0RmllbGRTdWJzY3JpYmVycygpXCJcclxuICA+XHJcbiAgPC9pZ28tZHluYW1pYy1vdXRsZXQ+XHJcbjwvbmctY29udGFpbmVyPlxyXG4iXX0=
|
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
-
import { MatInputModule } from '@angular/material/input';
|
|
7
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
8
|
-
import { IgoLanguageModule } from '@igo2/core';
|
|
9
|
-
import { IgoDynamicOutletModule } from '../../dynamic-component/dynamic-outlet/dynamic-outlet.module';
|
|
10
|
-
import { FormFieldComponent } from './form-field.component';
|
|
11
|
-
import { FormFieldSelectComponent } from './form-field-select.component';
|
|
12
|
-
import { FormFieldTextComponent } from './form-field-text.component';
|
|
13
|
-
import { FormFieldTextareaComponent } from './form-field-textarea.component';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
/**
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
export class IgoFormFieldModule {
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoFormFieldModule, [{
|
|
32
|
-
type: NgModule,
|
|
33
|
-
args: [{
|
|
34
|
-
imports: [
|
|
35
|
-
CommonModule,
|
|
36
|
-
FormsModule,
|
|
37
|
-
ReactiveFormsModule,
|
|
38
|
-
MatIconModule,
|
|
39
|
-
MatFormFieldModule,
|
|
40
|
-
MatInputModule,
|
|
41
|
-
MatSelectModule,
|
|
42
|
-
IgoLanguageModule,
|
|
43
|
-
IgoDynamicOutletModule
|
|
44
|
-
],
|
|
45
|
-
exports: [
|
|
46
|
-
FormFieldComponent,
|
|
47
|
-
FormFieldSelectComponent,
|
|
48
|
-
FormFieldTextComponent,
|
|
49
|
-
FormFieldTextareaComponent
|
|
50
|
-
],
|
|
51
|
-
declarations: [
|
|
52
|
-
FormFieldComponent,
|
|
53
|
-
FormFieldSelectComponent,
|
|
54
|
-
FormFieldTextComponent,
|
|
55
|
-
FormFieldTextareaComponent
|
|
56
|
-
]
|
|
57
|
-
}]
|
|
58
|
-
}], null, null); })();
|
|
59
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoFormFieldModule, { declarations: [FormFieldComponent,
|
|
60
|
-
FormFieldSelectComponent,
|
|
61
|
-
FormFieldTextComponent,
|
|
62
|
-
FormFieldTextareaComponent], imports: [CommonModule,
|
|
63
|
-
FormsModule,
|
|
64
|
-
ReactiveFormsModule,
|
|
65
|
-
MatIconModule,
|
|
66
|
-
MatFormFieldModule,
|
|
67
|
-
MatInputModule,
|
|
68
|
-
MatSelectModule,
|
|
69
|
-
IgoLanguageModule,
|
|
70
|
-
IgoDynamicOutletModule], exports: [FormFieldComponent,
|
|
71
|
-
FormFieldSelectComponent,
|
|
72
|
-
FormFieldTextComponent,
|
|
73
|
-
FormFieldTextareaComponent] }); })();
|
|
74
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
6
|
+
import { MatInputModule } from '@angular/material/input';
|
|
7
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
8
|
+
import { IgoLanguageModule } from '@igo2/core';
|
|
9
|
+
import { IgoDynamicOutletModule } from '../../dynamic-component/dynamic-outlet/dynamic-outlet.module';
|
|
10
|
+
import { FormFieldComponent } from './form-field.component';
|
|
11
|
+
import { FormFieldSelectComponent } from './form-field-select.component';
|
|
12
|
+
import { FormFieldTextComponent } from './form-field-text.component';
|
|
13
|
+
import { FormFieldTextareaComponent } from './form-field-textarea.component';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
/**
|
|
16
|
+
* @ignore
|
|
17
|
+
*/
|
|
18
|
+
export class IgoFormFieldModule {
|
|
19
|
+
static ɵfac = function IgoFormFieldModule_Factory(t) { return new (t || IgoFormFieldModule)(); };
|
|
20
|
+
static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoFormFieldModule });
|
|
21
|
+
static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
22
|
+
FormsModule,
|
|
23
|
+
ReactiveFormsModule,
|
|
24
|
+
MatIconModule,
|
|
25
|
+
MatFormFieldModule,
|
|
26
|
+
MatInputModule,
|
|
27
|
+
MatSelectModule,
|
|
28
|
+
IgoLanguageModule,
|
|
29
|
+
IgoDynamicOutletModule] });
|
|
30
|
+
}
|
|
31
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoFormFieldModule, [{
|
|
32
|
+
type: NgModule,
|
|
33
|
+
args: [{
|
|
34
|
+
imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
FormsModule,
|
|
37
|
+
ReactiveFormsModule,
|
|
38
|
+
MatIconModule,
|
|
39
|
+
MatFormFieldModule,
|
|
40
|
+
MatInputModule,
|
|
41
|
+
MatSelectModule,
|
|
42
|
+
IgoLanguageModule,
|
|
43
|
+
IgoDynamicOutletModule
|
|
44
|
+
],
|
|
45
|
+
exports: [
|
|
46
|
+
FormFieldComponent,
|
|
47
|
+
FormFieldSelectComponent,
|
|
48
|
+
FormFieldTextComponent,
|
|
49
|
+
FormFieldTextareaComponent
|
|
50
|
+
],
|
|
51
|
+
declarations: [
|
|
52
|
+
FormFieldComponent,
|
|
53
|
+
FormFieldSelectComponent,
|
|
54
|
+
FormFieldTextComponent,
|
|
55
|
+
FormFieldTextareaComponent
|
|
56
|
+
]
|
|
57
|
+
}]
|
|
58
|
+
}], null, null); })();
|
|
59
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoFormFieldModule, { declarations: [FormFieldComponent,
|
|
60
|
+
FormFieldSelectComponent,
|
|
61
|
+
FormFieldTextComponent,
|
|
62
|
+
FormFieldTextareaComponent], imports: [CommonModule,
|
|
63
|
+
FormsModule,
|
|
64
|
+
ReactiveFormsModule,
|
|
65
|
+
MatIconModule,
|
|
66
|
+
MatFormFieldModule,
|
|
67
|
+
MatInputModule,
|
|
68
|
+
MatSelectModule,
|
|
69
|
+
IgoLanguageModule,
|
|
70
|
+
IgoDynamicOutletModule], exports: [FormFieldComponent,
|
|
71
|
+
FormFieldSelectComponent,
|
|
72
|
+
FormFieldTextComponent,
|
|
73
|
+
FormFieldTextareaComponent] }); })();
|
|
74
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDekQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRTNELE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUMvQyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw4REFBOEQsQ0FBQztBQUV0RyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN6RSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw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ztcbmltcG9ydCB7IEZvcm1GaWVsZFRleHRhcmVhQ29tcG9uZW50IH0gZnJvbSAnLi9mb3JtLWZpZWxkLXRleHRhcmVhLmNvbXBvbmVudCc7XG5cbi8qKlxuICogQGlnbm9yZVxuICovXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIEZvcm1zTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgTWF0SWNvbk1vZHVsZSxcbiAgICBNYXRGb3JtRmllbGRNb2R1bGUsXG4gICAgTWF0SW5wdXRNb2R1bGUsXG4gICAgTWF0U2VsZWN0TW9kdWxlLFxuICAgIElnb0xhbmd1YWdlTW9kdWxlLFxuICAgIElnb0R5bmFtaWNPdXRsZXRNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEZvcm1GaWVsZENvbXBvbmVudCxcbiAgICBGb3JtRmllbGRTZWxlY3RDb21wb25lbnQsXG4gICAgRm9ybUZpZWxkVGV4dENvbXBvbmVudCxcbiAgICBGb3JtRmllbGRUZXh0YXJlYUNvbXBvbmVudFxuICBdLFxuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBGb3JtRmllbGRDb21wb25lbnQsXG4gICAgRm9ybUZpZWxkU2VsZWN0Q29tcG9uZW50LFxuICAgIEZvcm1GaWVsZFRleHRDb21wb25lbnQsXG4gICAgRm9ybUZpZWxkVGV4dGFyZWFDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBJZ29Gb3JtRmllbGRNb2R1bGUge31cbiJdfQ==
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './form-field.component';
|
|
2
|
-
export * from './form-field-text.component';
|
|
3
|
-
export * from './form-field-select.component';
|
|
4
|
-
export * from './form-field-textarea.component';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
export * from './form-field.component';
|
|
2
|
+
export * from './form-field-text.component';
|
|
3
|
+
export * from './form-field-select.component';
|
|
4
|
+
export * from './form-field-textarea.component';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21tb24vc3JjL2xpYi9mb3JtL2Zvcm0tZmllbGQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxpQ0FBaUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZm9ybS1maWVsZC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9mb3JtLWZpZWxkLXRleHQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZm9ybS1maWVsZC1zZWxlY3QuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vZm9ybS1maWVsZC10ZXh0YXJlYS5jb21wb25lbnQnO1xuIl19
|