@wavemaker/app-ng-runtime 11.4.1-next.141653 → 11.4.1-next.141654
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.
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +12 -23
- app-ng-runtime/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/carousel.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/esm2020/carousel-template/carousel-template.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/esm2020/carousel.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/bundles/index.umd.js +21 -27
- app-ng-runtime/components/advanced/login/esm2020/login.component.mjs +8 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/login.component.d.ts +2 -4
- app-ng-runtime/components/advanced/marquee/bundles/index.umd.js +8 -14
- app-ng-runtime/components/advanced/marquee/esm2020/marquee.directive.mjs +6 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/marquee.directive.d.ts +2 -4
- app-ng-runtime/components/base/bundles/index.umd.js +31 -61
- app-ng-runtime/components/base/esm2020/widgets/common/base/base-container.component.mjs +4 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +5 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/dataset-aware-nav.component.mjs +3 -3
- app-ng-runtime/components/base/esm2020/widgets/common/container/container.directive.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/item-template/item-template.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +6 -10
- app-ng-runtime/components/base/esm2020/widgets/common/message/message.component.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/repeat-template/repeat-template.directive.mjs +6 -11
- app-ng-runtime/components/base/fesm2015/index.mjs +32 -62
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +32 -50
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base-container.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +2 -3
- app-ng-runtime/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/container/container.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/item-template/item-template.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/message/message.component.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/partial/partial.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +3 -4
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/bundles/index.umd.js +247 -290
- app-ng-runtime/components/basic/default/esm2020/anchor/anchor.component.mjs +7 -10
- app-ng-runtime/components/basic/default/esm2020/audio/audio.component.mjs +8 -13
- app-ng-runtime/components/basic/default/esm2020/html/html.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/icon/icon.component.mjs +9 -14
- app-ng-runtime/components/basic/default/esm2020/iframe/iframe.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/label/label.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/picture/picture.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/spinner/spinner.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/video/video.component.mjs +9 -13
- app-ng-runtime/components/basic/default/fesm2015/index.mjs +46 -89
- app-ng-runtime/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/fesm2020/index.mjs +46 -73
- app-ng-runtime/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/html/html.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/icon/icon.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/label/label.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/spinner/spinner.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +23 -32
- app-ng-runtime/components/basic/progress/esm2020/progress-bar/progress-bar.component.mjs +8 -12
- app-ng-runtime/components/basic/progress/esm2020/progress-circle/progress-circle.component.mjs +8 -13
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs +12 -21
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs +12 -19
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +2 -4
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +14 -20
- app-ng-runtime/components/basic/rich-text-editor/esm2020/rich-text-editor.component.mjs +9 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -4
- app-ng-runtime/components/basic/search/bundles/index.umd.js +3 -6
- app-ng-runtime/components/basic/search/esm2020/search.component.mjs +6 -9
- app-ng-runtime/components/basic/search/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -4
- app-ng-runtime/components/chart/bundles/index.umd.js +4 -9
- app-ng-runtime/components/chart/chart.component.d.ts +3 -4
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +7 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/accordion/accordion.directive.d.ts +3 -4
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +56 -66
- app-ng-runtime/components/containers/accordion/esm2020/accordion-pane/accordion-pane.component.mjs +10 -14
- app-ng-runtime/components/containers/accordion/esm2020/accordion.directive.mjs +7 -10
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs +12 -22
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/bundles/index.umd.js +12 -25
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-column/layout-grid-column.directive.mjs +7 -10
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-row/layout-grid-row.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs +13 -26
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +3 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +2 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/bundles/index.umd.js +12 -23
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout-item/linear-layout-item.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/linear-layout.directive.d.ts +2 -4
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +65 -71
- app-ng-runtime/components/containers/panel/esm2020/panel.component.mjs +12 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs +10 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs +10 -14
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/panel.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +57 -63
- app-ng-runtime/components/containers/tabs/esm2020/tab-pane/tab-pane.component.mjs +8 -12
- app-ng-runtime/components/containers/tabs/esm2020/tabs.component.mjs +7 -10
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -4
- app-ng-runtime/components/containers/tile/bundles/index.umd.js +8 -14
- app-ng-runtime/components/containers/tile/esm2020/tile.directive.mjs +6 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/tile.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +48 -57
- app-ng-runtime/components/containers/wizard/esm2020/wizard-step/wizard-step.directive.mjs +5 -10
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +10 -14
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +11 -20
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +11 -18
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard-step/wizard-step.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -4
- app-ng-runtime/components/data/card/bundles/index.umd.js +83 -106
- app-ng-runtime/components/data/card/card-actions/card-actions.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card-content/card-content.component.d.ts +2 -4
- app-ng-runtime/components/data/card/card-footer/card-footer.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card.component.d.ts +2 -4
- app-ng-runtime/components/data/card/esm2020/card-actions/card-actions.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-content/card-content.component.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-footer/card-footer.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card.component.mjs +12 -18
- app-ng-runtime/components/data/card/fesm2015/index.mjs +23 -46
- app-ng-runtime/components/data/card/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/card/fesm2020/index.mjs +23 -38
- app-ng-runtime/components/data/card/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +128 -137
- app-ng-runtime/components/data/form/esm2020/form-action/form-action.directive.mjs +4 -9
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +5 -8
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +5 -8
- app-ng-runtime/components/data/form/fesm2015/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-action/form-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +3 -4
- app-ng-runtime/components/data/form/form.component.d.ts +3 -4
- app-ng-runtime/components/data/list/bundles/index.umd.js +4 -7
- app-ng-runtime/components/data/list/esm2020/list.component.mjs +7 -10
- app-ng-runtime/components/data/list/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +3 -4
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +3 -6
- app-ng-runtime/components/data/live-table/esm2020/live-table.component.mjs +6 -9
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/live-table.component.d.ts +3 -4
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +30 -34
- app-ng-runtime/components/data/pagination/esm2020/pagination.component.mjs +10 -14
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +2 -4
- app-ng-runtime/components/data/table/bundles/index.umd.js +19 -37
- app-ng-runtime/components/data/table/esm2020/table-action/table-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-column/table-column.directive.mjs +5 -8
- app-ng-runtime/components/data/table/esm2020/table-column-group/table-column-group.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row/table-row.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row-action/table-row-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +6 -9
- app-ng-runtime/components/data/table/fesm2015/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table-action/table-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +3 -4
- app-ng-runtime/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row/table-row.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table.component.d.ts +3 -4
- app-ng-runtime/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +40 -46
- app-ng-runtime/components/dialogs/alert-dialog/esm2020/alert-dialog.component.mjs +9 -15
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +16 -22
- app-ng-runtime/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/confirm-dialog/esm2020/confirm-dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +25 -31
- app-ng-runtime/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +2 -4
- app-ng-runtime/components/dialogs/default/esm2020/base-dialog.mjs +7 -8
- app-ng-runtime/components/dialogs/default/esm2020/dialog-footer/dialog-footer.directive.mjs +6 -11
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs +11 -17
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs +11 -15
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +17 -23
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -30
- app-ng-runtime/components/dialogs/iframe-dialog/esm2020/iframe-dialog.component.mjs +10 -16
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +3 -8
- app-ng-runtime/components/dialogs/partial-dialog/esm2020/partial-dialog.component.mjs +5 -10
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/partial-dialog.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +5 -10
- app-ng-runtime/components/input/calendar/calendar.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/esm2020/calendar.component.mjs +8 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs +6 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs +6 -9
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +87 -93
- app-ng-runtime/components/input/chips/chips.component.d.ts +2 -4
- app-ng-runtime/components/input/chips/esm2020/chips.component.mjs +9 -15
- app-ng-runtime/components/input/chips/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +22 -28
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +2 -4
- app-ng-runtime/components/input/color-picker/esm2020/color-picker.component.mjs +10 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -9
- app-ng-runtime/components/input/currency/currency.component.d.ts +3 -4
- app-ng-runtime/components/input/currency/esm2020/currency.component.mjs +7 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/input/currency/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form.component.d.ts +1 -2
- app-ng-runtime/components/input/default/bundles/index.umd.js +575 -648
- app-ng-runtime/components/input/default/button/button.component.d.ts +2 -4
- app-ng-runtime/components/input/default/button-group/button-group.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +2 -4
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/composite/composite.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -3
- app-ng-runtime/components/input/default/esm2020/base-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/button/button.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/button-group/button-group.directive.mjs +6 -11
- app-ng-runtime/components/input/default/esm2020/checkbox/checkbox.component.mjs +9 -13
- app-ng-runtime/components/input/default/esm2020/checkboxset/checkboxset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/composite/composite.directive.mjs +7 -11
- app-ng-runtime/components/input/default/esm2020/dataset-aware-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -10
- app-ng-runtime/components/input/default/esm2020/radioset/radioset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +11 -15
- app-ng-runtime/components/input/default/esm2020/switch/switch.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/text/base/base-input.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +3 -3
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +9 -14
- app-ng-runtime/components/input/default/fesm2015/index.mjs +94 -167
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +94 -139
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +3 -4
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/select/select.component.d.ts +2 -4
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/base/base-input.d.ts +1 -2
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +2 -2
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -4
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -4
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -21
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -6
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +3 -4
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +3 -6
- app-ng-runtime/components/input/file-upload/esm2020/file-upload.component.mjs +6 -9
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -4
- app-ng-runtime/components/input/rating/bundles/index.umd.js +45 -51
- app-ng-runtime/components/input/rating/esm2020/rating.component.mjs +11 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/rating/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +2 -4
- app-ng-runtime/components/input/slider/bundles/index.umd.js +37 -43
- app-ng-runtime/components/input/slider/esm2020/slider.component.mjs +10 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/slider/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +13 -25
- app-ng-runtime/components/navigation/menu/esm2020/menu-adapator.component.mjs +4 -6
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +4 -7
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav-item/nav-item.directive.mjs +7 -11
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -9
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +14 -26
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +14 -24
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-adapator.component.d.ts +1 -2
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +2 -3
- app-ng-runtime/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -3
- app-ng-runtime/components/navigation/navbar/bundles/index.umd.js +28 -34
- app-ng-runtime/components/navigation/navbar/esm2020/navbar.component.mjs +9 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/navbar.component.d.ts +2 -4
- app-ng-runtime/components/page/default/bundles/index.umd.js +32 -66
- app-ng-runtime/components/page/default/content/content.component.d.ts +2 -4
- app-ng-runtime/components/page/default/esm2020/content/content.component.mjs +6 -11
- app-ng-runtime/components/page/default/esm2020/layout.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/page-content/page-content.component.mjs +7 -10
- app-ng-runtime/components/page/default/esm2020/page.directive.mjs +7 -12
- app-ng-runtime/components/page/default/esm2020/router-outlet.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/spa-page.directive.mjs +7 -12
- app-ng-runtime/components/page/default/fesm2015/index.mjs +26 -60
- app-ng-runtime/components/page/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/fesm2020/index.mjs +26 -48
- app-ng-runtime/components/page/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/layout.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/page-content/page-content.component.d.ts +3 -4
- app-ng-runtime/components/page/default/page.directive.d.ts +3 -4
- app-ng-runtime/components/page/default/router-outlet.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/spa-page.directive.d.ts +3 -4
- app-ng-runtime/components/page/footer/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/footer/esm2020/footer.directive.mjs +6 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/footer/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/footer.directive.d.ts +2 -4
- app-ng-runtime/components/page/header/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/header/esm2020/header.component.mjs +6 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/header/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/header.component.d.ts +2 -4
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/left-panel/esm2020/left-panel.directive.mjs +6 -9
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +3 -4
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -12
- app-ng-runtime/components/page/right-panel/esm2020/right-panel.directive.mjs +7 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -4
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/top-nav/esm2020/top-nav.directive.mjs +6 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/top-nav.directive.d.ts +2 -4
- app-ng-runtime/components/prefab/bundles/index.umd.js +7 -15
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +7 -10
- app-ng-runtime/components/prefab/esm2020/prefab.directive.mjs +6 -10
- app-ng-runtime/components/prefab/fesm2015/index.mjs +8 -16
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/prefab-container/prefab-container.directive.d.ts +3 -4
- app-ng-runtime/components/prefab/prefab.directive.d.ts +2 -4
- app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +32 -37
- app-ng-runtime/mobile/components/basic/default/esm2020/network-info-toaster/network-info-toaster.component.mjs +7 -10
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs +10 -15
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs +10 -13
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +3 -4
- app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +18 -29
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segment-content/segment-content.component.mjs +8 -13
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segmented-control.component.mjs +9 -13
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs +12 -23
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs +12 -19
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +2 -4
- app-ng-runtime/mobile/components/containers/segmented-control/segmented-control.component.d.ts +2 -4
- app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +30 -36
- app-ng-runtime/mobile/components/data/media-list/esm2020/media-list.component.mjs +14 -18
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs +11 -17
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs +11 -15
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/media-list.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +28 -34
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2020/barcode-scanner.component.mjs +10 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs +8 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs +8 -12
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +12 -18
- app-ng-runtime/mobile/components/device/camera/camera.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/camera/esm2020/camera.component.mjs +9 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs +7 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/bundles/index.umd.js +3 -6
- app-ng-runtime/mobile/components/page/mobile-navbar/esm2020/mobile-navbar.component.mjs +6 -9
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +3 -4
- app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +32 -36
- app-ng-runtime/mobile/components/page/tab-bar/esm2020/tabbar.component.mjs +8 -13
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/tabbar.component.d.ts +2 -4
- app-ng-runtime/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/basic'), require('@wm/components/input'), require('@wm/components/dialogs/design-dialog'), require('tslib'), require('@angular/forms'), require('@wm/core'), require('@wm/components/data/list'), require('@wm/components/prefab'), require('@wm/components/data/table'), require('rxjs/operators'), require('@wm/components/data/live-table')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/basic', '@wm/components/input', '@wm/components/dialogs/design-dialog', 'tslib', '@angular/forms', '@wm/core', '@wm/components/data/list', '@wm/components/prefab', '@wm/components/data/table', 'rxjs/operators', '@wm/components/data/live-table'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.data = global.wm.components.data || {}, global.wm.components.data.form = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.basic, global.wm.components.input, global.wm.components.dialogs.designdialog, global.tslib, global.ng.forms, global.wm.core, global.wm.components.data.list, global.wm.components.prefab, global.wm.components.data.table, global.rxjs.operators, global.wm.components.data.livetable));
|
|
5
|
-
})(this, (function (exports, i0, i7, i5, i6, i8, designDialog, tslib, i1,
|
|
5
|
+
})(this, (function (exports, i0, i7, i5, i6, i8, designDialog, tslib, i1, i1$1, i3, i4, table, operators, i1$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
var i6__namespace = /*#__PURE__*/_interopNamespaceDefault(i6);
|
|
28
28
|
var i8__namespace = /*#__PURE__*/_interopNamespaceDefault(i8);
|
|
29
29
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
30
|
-
var
|
|
30
|
+
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
31
31
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
32
32
|
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
33
|
-
var i1$
|
|
33
|
+
var i1$2__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$2);
|
|
34
34
|
|
|
35
35
|
const propsMap = new Map([
|
|
36
36
|
['autocomplete', Object.assign({ value: false }, i5.PROP_BOOLEAN)],
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
['title', i5.PROP_STRING]
|
|
54
54
|
]);
|
|
55
55
|
const registerFormProps = () => {
|
|
56
|
-
if (
|
|
56
|
+
if (i1$1.isMobileApp()) {
|
|
57
57
|
propsMap.set('captionwidth', Object.assign({ value: 'xs-4 sm-4 md-4 lg-4' }, i5.PROP_STRING));
|
|
58
58
|
}
|
|
59
59
|
const formMap = new Map(propsMap);
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
i5.register('wm-form', formMap);
|
|
74
74
|
};
|
|
75
75
|
const registerLiveFormProps = () => {
|
|
76
|
-
if (
|
|
76
|
+
if (i1$1.isMobileApp()) {
|
|
77
77
|
propsMap.set('captionwidth', Object.assign({ value: 'xs-4 sm-4 md-4 lg-4' }, i5.PROP_STRING));
|
|
78
78
|
}
|
|
79
79
|
const liveFormMap = new Map(propsMap);
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
i5.register('wm-liveform', liveFormMap);
|
|
92
92
|
};
|
|
93
93
|
const registerLiveFilterProps = () => {
|
|
94
|
-
if (
|
|
94
|
+
if (i1$1.isMobileApp()) {
|
|
95
95
|
propsMap.set('captionwidth', Object.assign({ value: 'xs-4 sm-4 md-4 lg-4' }, i5.PROP_STRING));
|
|
96
96
|
}
|
|
97
97
|
const liveFilterMap = new Map(propsMap);
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
class FormComponent extends i5.StylableComponent {
|
|
348
348
|
set isLayoutDialog(nv) {
|
|
349
349
|
if (nv) {
|
|
350
|
-
|
|
350
|
+
i1$1.removeClass(this.nativeElement, 'panel app-panel liveform-inline');
|
|
351
351
|
}
|
|
352
352
|
this._isLayoutDialog = nv;
|
|
353
353
|
}
|
|
@@ -380,17 +380,17 @@
|
|
|
380
380
|
// checks for livelist having any form elements with parentForm name.
|
|
381
381
|
// If livelist is not containing any parentForm elements then it returns true.
|
|
382
382
|
get isParentList() {
|
|
383
|
-
if (this.parentList && this.parentForm && !
|
|
383
|
+
if (this.parentList && this.parentForm && !i1$1.isDefined(this._formIsInList)) {
|
|
384
384
|
const formEle = this.$element;
|
|
385
385
|
const listEle = formEle.closest('.app-livelist[name="' + this.parentList.name + '"]');
|
|
386
386
|
if (listEle.length) {
|
|
387
387
|
this._formIsInList = !(listEle.find('form[widget-id="' + this.parentForm.widgetId + '"]')).length;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
return
|
|
390
|
+
return i1$1.isDefined(this._formIsInList) ? this._formIsInList : this.parentList;
|
|
391
391
|
}
|
|
392
|
-
constructor(inj, fb, app, dialogService, dynamicComponentProvider, ngZone, parentList, parentForm, parentPrefab, parentPartial, onBeforeSubmitEvt, onSubmitEvt, onBeforeRenderEvt, binddataset, bindformdata, isLiveForm, isLiveFilter, role, key, name
|
|
393
|
-
super(inj, getWidgetConfig(isLiveForm, isLiveFilter, role)
|
|
392
|
+
constructor(inj, fb, app, dialogService, dynamicComponentProvider, ngZone, parentList, parentForm, parentPrefab, parentPartial, onBeforeSubmitEvt, onSubmitEvt, onBeforeRenderEvt, binddataset, bindformdata, isLiveForm, isLiveFilter, role, key, name) {
|
|
393
|
+
super(inj, getWidgetConfig(isLiveForm, isLiveFilter, role));
|
|
394
394
|
this.fb = fb;
|
|
395
395
|
this.app = app;
|
|
396
396
|
this.dialogService = dialogService;
|
|
@@ -405,7 +405,6 @@
|
|
|
405
405
|
this.onBeforeRenderEvt = onBeforeRenderEvt;
|
|
406
406
|
this.binddataset = binddataset;
|
|
407
407
|
this.bindformdata = bindformdata;
|
|
408
|
-
this._viewParent = _viewParent;
|
|
409
408
|
this._widgetClass = '';
|
|
410
409
|
this._captionClass = '';
|
|
411
410
|
this.formFields = [];
|
|
@@ -422,7 +421,7 @@
|
|
|
422
421
|
this.primaryKey = [];
|
|
423
422
|
this._debouncedUpdateFieldSource = _.debounce(this.updateFieldSource, 350);
|
|
424
423
|
this.validationMessages = [];
|
|
425
|
-
this._debouncedSubmitForm =
|
|
424
|
+
this._debouncedSubmitForm = i1$1.debounce(($event) => {
|
|
426
425
|
// calling submit event in ngZone as change detection is not triggered post the submit callback and actions like notification are not shown
|
|
427
426
|
this.ngZone.run(() => {
|
|
428
427
|
this.submitForm($event);
|
|
@@ -430,7 +429,7 @@
|
|
|
430
429
|
}, 250);
|
|
431
430
|
i5.styler(this.nativeElement, this);
|
|
432
431
|
// remove title property as attribute as it is causing unnecessary tooltip
|
|
433
|
-
|
|
432
|
+
i1$1.removeAttr(this.nativeElement, 'title');
|
|
434
433
|
this.isUpdateMode = true;
|
|
435
434
|
this.dialogId = this.nativeElement.getAttribute('dialogId');
|
|
436
435
|
this.ngform = fb.group({});
|
|
@@ -536,7 +535,7 @@
|
|
|
536
535
|
// differentiating the validationMessages prefix based on the formGroupName
|
|
537
536
|
// as the formName's are same when forms are in list
|
|
538
537
|
let formName = _.get(formInstance, 'formGroupName') || formInstance.name;
|
|
539
|
-
if (
|
|
538
|
+
if (i1$1.isDefined(formInstance.formArrayIndex)) {
|
|
540
539
|
formName = formName + '[' + formInstance.formArrayIndex + ']';
|
|
541
540
|
}
|
|
542
541
|
let current = formInstance;
|
|
@@ -624,7 +623,7 @@
|
|
|
624
623
|
}
|
|
625
624
|
}
|
|
626
625
|
updateFieldSource() {
|
|
627
|
-
if (this.formdatasource && this.formdatasource.execute(
|
|
626
|
+
if (this.formdatasource && this.formdatasource.execute(i1$1.DataSource.Operation.IS_API_AWARE)) {
|
|
628
627
|
return;
|
|
629
628
|
}
|
|
630
629
|
else if (this.formdatasource && !this.formdatasource.twoWayBinding) {
|
|
@@ -664,7 +663,7 @@
|
|
|
664
663
|
if (ngEle && ngEle.markAsTouched) {
|
|
665
664
|
ngEle.markAsTouched();
|
|
666
665
|
}
|
|
667
|
-
|
|
666
|
+
i1$1.$appDigest();
|
|
668
667
|
return true;
|
|
669
668
|
}
|
|
670
669
|
return true;
|
|
@@ -761,8 +760,8 @@
|
|
|
761
760
|
this.messageRef.showMessage(this.statusMessage.caption, this.statusMessage.type);
|
|
762
761
|
}
|
|
763
762
|
// when message layout is inline on save, scroll the view to top of the form to see the status of the operation
|
|
764
|
-
if (!
|
|
765
|
-
|
|
763
|
+
if (!i1$1.isElementInViewport(this.$element[0])) {
|
|
764
|
+
i1$1.scrollToElement(this.$element[0]);
|
|
766
765
|
}
|
|
767
766
|
}
|
|
768
767
|
else {
|
|
@@ -791,7 +790,7 @@
|
|
|
791
790
|
layoutConfig = i5.getFieldLayoutConfig(this.captionwidth, this.captionposition, _.get(this.app.selectedViewPort, 'os'));
|
|
792
791
|
this._widgetClass = layoutConfig.widgetCls;
|
|
793
792
|
this._captionClass = layoutConfig.captionCls;
|
|
794
|
-
|
|
793
|
+
i1$1.$appDigest();
|
|
795
794
|
}
|
|
796
795
|
registerFormWidget(widget) {
|
|
797
796
|
const name = widget.name || widget.key;
|
|
@@ -837,7 +836,7 @@
|
|
|
837
836
|
fieldValue = field.datavalue || field._control.value;
|
|
838
837
|
fieldValue = (fieldValue === null || fieldValue === '') ? undefined : fieldValue;
|
|
839
838
|
if (field.type === 'file') {
|
|
840
|
-
fieldValue =
|
|
839
|
+
fieldValue = i1$1.getFiles(this.name, field.key + '_formWidget', field.multiple);
|
|
841
840
|
}
|
|
842
841
|
fieldName = field.key || field.target || field.name;
|
|
843
842
|
// on current Form, when field is innerForm field then we group these fields under new object using formGroupName as key
|
|
@@ -937,7 +936,7 @@
|
|
|
937
936
|
this.formFields.forEach(field => {
|
|
938
937
|
var _a;
|
|
939
938
|
field.value = '';
|
|
940
|
-
if (field.widgettype === 'upload' || field.type ===
|
|
939
|
+
if (field.widgettype === 'upload' || field.type === i1$1.DataType.BLOB) {
|
|
941
940
|
this.resetFileUploadWidget(field, true);
|
|
942
941
|
}
|
|
943
942
|
(_a = field.nativeElement.querySelector('input')) === null || _a === void 0 ? void 0 : _a.removeAttribute('aria-invalid');
|
|
@@ -946,7 +945,7 @@
|
|
|
946
945
|
this.clearMessage();
|
|
947
946
|
}
|
|
948
947
|
savePrevformFields() {
|
|
949
|
-
this.prevformFields =
|
|
948
|
+
this.prevformFields = i1$1.getClonedObject(this.formFields.map(field => {
|
|
950
949
|
return {
|
|
951
950
|
'key': field.key,
|
|
952
951
|
'type': field.type,
|
|
@@ -977,8 +976,8 @@
|
|
|
977
976
|
}
|
|
978
977
|
emptyDataModel() {
|
|
979
978
|
this.formFields.forEach(field => {
|
|
980
|
-
if (
|
|
981
|
-
if (field.type ===
|
|
979
|
+
if (i1$1.isDefined(field)) {
|
|
980
|
+
if (field.type === i1$1.DataType.BLOB) {
|
|
982
981
|
this.resetFileUploadWidget(field);
|
|
983
982
|
}
|
|
984
983
|
else {
|
|
@@ -1018,17 +1017,17 @@
|
|
|
1018
1017
|
this.savePrevformFields();
|
|
1019
1018
|
this.savePrevDataValues();
|
|
1020
1019
|
}
|
|
1021
|
-
this.prevDataObject =
|
|
1020
|
+
this.prevDataObject = i1$1.getClonedObject(this.formdata || {});
|
|
1022
1021
|
this.setReadonlyFields();
|
|
1023
1022
|
this.isUpdateMode = true;
|
|
1024
|
-
|
|
1023
|
+
i1$1.$appDigest();
|
|
1025
1024
|
}
|
|
1026
1025
|
triggerWMEvent(eventName) {
|
|
1027
1026
|
const tableId = this.nativeElement.getAttribute('dependson');
|
|
1028
1027
|
if (!tableId) {
|
|
1029
1028
|
return;
|
|
1030
1029
|
}
|
|
1031
|
-
|
|
1030
|
+
i1$1.$invokeWatchers(true);
|
|
1032
1031
|
this.app.notify('wm-event', { eventName, widgetName: tableId });
|
|
1033
1032
|
}
|
|
1034
1033
|
submitForm($event) {
|
|
@@ -1038,7 +1037,7 @@
|
|
|
1038
1037
|
if (this.validateFieldsOnSubmit()) {
|
|
1039
1038
|
return;
|
|
1040
1039
|
}
|
|
1041
|
-
formData =
|
|
1040
|
+
formData = i1$1.getClonedObject(this.constructDataObject());
|
|
1042
1041
|
const getParams = () => {
|
|
1043
1042
|
return { $event, $formData: formData, $data: formData };
|
|
1044
1043
|
};
|
|
@@ -1063,7 +1062,7 @@
|
|
|
1063
1062
|
.then((data) => {
|
|
1064
1063
|
if (dataSource.category === 'wm.CrudVariable') {
|
|
1065
1064
|
this.triggerWMEvent('resetEditMode');
|
|
1066
|
-
this.datasource.execute(
|
|
1065
|
+
this.datasource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
1067
1066
|
'skipToggleState': true,
|
|
1068
1067
|
'operation': 'list',
|
|
1069
1068
|
'page': currentPageNum,
|
|
@@ -1073,9 +1072,9 @@
|
|
|
1073
1072
|
this.closeDialog();
|
|
1074
1073
|
}
|
|
1075
1074
|
}
|
|
1076
|
-
if (
|
|
1077
|
-
result =
|
|
1078
|
-
result =
|
|
1075
|
+
if (i1$1.isDefined(data.body)) {
|
|
1076
|
+
result = i1$1.getValidJSON(data.body);
|
|
1077
|
+
result = i1$1.isDefined(result) ? result : data.body;
|
|
1079
1078
|
}
|
|
1080
1079
|
else {
|
|
1081
1080
|
result = data;
|
|
@@ -1088,7 +1087,7 @@
|
|
|
1088
1087
|
};
|
|
1089
1088
|
}, (error) => {
|
|
1090
1089
|
template = this.errormessage || error.error || error;
|
|
1091
|
-
|
|
1090
|
+
i1$1.$appDigest();
|
|
1092
1091
|
return {
|
|
1093
1092
|
'result': _.get(error, 'error') || error,
|
|
1094
1093
|
'status': false,
|
|
@@ -1136,7 +1135,7 @@
|
|
|
1136
1135
|
this.setFormData(response);
|
|
1137
1136
|
this.closeDialog();
|
|
1138
1137
|
}
|
|
1139
|
-
this.isUpdateMode =
|
|
1138
|
+
this.isUpdateMode = i1$1.isDefined(updateMode) ? updateMode : true;
|
|
1140
1139
|
}
|
|
1141
1140
|
/**
|
|
1142
1141
|
* This method tranverses through the parent containing formdata and returns the parent formdata.
|
|
@@ -1277,7 +1276,7 @@
|
|
|
1277
1276
|
transpile: true
|
|
1278
1277
|
});
|
|
1279
1278
|
const component = this.dynamicFormRef.createComponent(componentFactoryRef, 0, this.inj);
|
|
1280
|
-
|
|
1279
|
+
i1$1.extendProto(component.instance, this._dynamicContext);
|
|
1281
1280
|
$gridLayout[0].appendChild(component.location.nativeElement);
|
|
1282
1281
|
this.setFormData(this.formdata);
|
|
1283
1282
|
});
|
|
@@ -1333,7 +1332,7 @@
|
|
|
1333
1332
|
this.ngform.markAsUntouched({ onlySelf: value });
|
|
1334
1333
|
}
|
|
1335
1334
|
invokeActionEvent($event, expression) {
|
|
1336
|
-
const fn =
|
|
1335
|
+
const fn = i1$1.$parseEvent(expression);
|
|
1337
1336
|
fn(this.viewParent, Object.assign(this.context, { $event }));
|
|
1338
1337
|
}
|
|
1339
1338
|
ngOnDestroy() {
|
|
@@ -1356,7 +1355,7 @@
|
|
|
1356
1355
|
}
|
|
1357
1356
|
}
|
|
1358
1357
|
FormComponent.initializeProps = registerFormProps();
|
|
1359
|
-
FormComponent.ɵfac = function FormComponent_Factory(t) { return new (t || FormComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(
|
|
1358
|
+
FormComponent.ɵfac = function FormComponent_Factory(t) { return new (t || FormComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AbstractDialogService), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.DynamicComponentRefProvider), i0__namespace.ɵɵdirectiveInject(i0__namespace.NgZone), i0__namespace.ɵɵdirectiveInject(i3__namespace.ListComponent, 8), i0__namespace.ɵɵdirectiveInject(FormComponent, 12), i0__namespace.ɵɵdirectiveInject(i4__namespace.PrefabDirective, 12), i0__namespace.ɵɵdirectiveInject(i5__namespace.PartialDirective, 12), i0__namespace.ɵɵinjectAttribute('beforesubmit.event'), i0__namespace.ɵɵinjectAttribute('submit.event'), i0__namespace.ɵɵinjectAttribute('beforerender.event'), i0__namespace.ɵɵinjectAttribute('dataset.bind'), i0__namespace.ɵɵinjectAttribute('formdata.bind'), i0__namespace.ɵɵinjectAttribute('wmLiveForm'), i0__namespace.ɵɵinjectAttribute('wmLiveFilter'), i0__namespace.ɵɵinjectAttribute('data-role'), i0__namespace.ɵɵinjectAttribute('key'), i0__namespace.ɵɵinjectAttribute('name')); };
|
|
1360
1359
|
FormComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: FormComponent, selectors: [["form", "wmForm", ""]], contentQueries: function FormComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
1361
1360
|
if (rf & 1) {
|
|
1362
1361
|
i0__namespace.ɵɵcontentQuery(dirIndex, i5.WidgetRef, 5);
|
|
@@ -1409,7 +1408,7 @@
|
|
|
1409
1408
|
i5.provideAsWidgetRef(FormComponent)
|
|
1410
1409
|
], template: "<ng-template #content><ng-content></ng-content></ng-template>\n\n<ng-container *ngIf=\"formlayout === 'page'; then pageLayoutTemplate else defaultTemplate\">\n</ng-container>\n\n<ng-template #defaultTemplate>\n <div class=\"panel-heading\" *ngIf=\"!isLayoutDialog && (title || subheading || iconclass || showButtons('header'))\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon\" aria-hidden=\"true\" [ngClass]=\"iconclass\" *ngIf=\"iconclass\"></i>\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n <div class=\"form-action panel-actions basic-btn-grp\">\n <ng-container *ngFor=\"let btn of buttonArray | filter : 'position' : 'header'\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\" [ngTemplateOutletContext]=\"{btn:btn}\">\n </ng-container>\n <button type=\"button\" class=\"app-icon wi panel-action\" *ngIf=\"collapsible\" title=\"Collapse/Expand\"\n [ngClass]=\"expanded ? 'wi-minus': 'wi-plus'\" (click)=\"expandCollapsePanel();\"></button>\n </div>\n </h3>\n </div>\n <div class=\"panel-body\" [ngClass]=\"{'form-elements': isLayoutDialog, 'form-body': !isLayoutDialog}\" [class.hidden]=\"!expanded\">\n <p wmMessage *ngIf=\"!!statusMessage.caption\" [attr.aria-hidden]=\"!statusMessage.caption\" [attr.aria-label]=\"statusMessage.caption\" caption.bind=\"statusMessage.caption\" type.bind=\"statusMessage.type\"></p>\n <div [ngClass]=\"{'form-elements': !isLayoutDialog, 'form-content': isLayoutDialog}\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <div class=\"basic-btn-grp form-action panel-footer clearfix\" [ngClass]=\"{'modal-footer': isLayoutDialog}\" [class.hidden]=\"!expanded || !showButtons('footer')\">\n <ng-container *ngFor=\"let btn of buttonArray | filter : 'position' : 'footer'\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\" [ngTemplateOutletContext]=\"{btn:btn}\">\n </ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #pageLayoutTemplate>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton name=\"{{btn.key}}\" caption.bind=\"btn.displayName\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" show.bind=\"btn.show\"\n (click)=\"invokeActionEvent($event, btn.action)\" type.bind=\"btn.type\" hint.bind=\"btn.title\" shortcutkey.bind=\"btn.shortcutkey\" disabled.bind=\"ngform.status === 'PENDING' || btn.disabled\"\n tabindex.bind=\"btn.tabindex\" [attr.aria-label]=\"btn.displayName\" [class.hidden]=\"btn.updateMode ? !isUpdateMode : isUpdateMode\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor name=\"{{btn.key}}\" caption.bind=\"btn.displayName\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" show.bind=\"btn.show\"\n (click)=\"invokeActionEvent($event, btn.action)\" hint.bind=\"btn.title\" shortcutkey.bind=\"btn.shortcutkey\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\"\n tabindex.bind=\"btn.tabindex\" [class.hidden]=\"btn.updateMode ? !isUpdateMode : isUpdateMode\"></a>\n</ng-template>\n\n<ng-container #dynamicForm></ng-container>\n" }]
|
|
1411
1410
|
}], function () {
|
|
1412
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.FormBuilder }, { type:
|
|
1411
|
+
return [{ type: i0__namespace.Injector }, { type: i1__namespace.FormBuilder }, { type: i1$1__namespace.App }, { type: i1$1__namespace.AbstractDialogService }, { type: i1$1__namespace.DynamicComponentRefProvider }, { type: i0__namespace.NgZone }, { type: i3__namespace.ListComponent, decorators: [{
|
|
1413
1412
|
type: i0.Optional
|
|
1414
1413
|
}] }, { type: FormComponent, decorators: [{
|
|
1415
1414
|
type: i0.SkipSelf
|
|
@@ -1453,8 +1452,6 @@
|
|
|
1453
1452
|
}] }, { type: undefined, decorators: [{
|
|
1454
1453
|
type: i0.Attribute,
|
|
1455
1454
|
args: ['name']
|
|
1456
|
-
}] }, { type: i2__namespace.UserDefinedExecutionContext, decorators: [{
|
|
1457
|
-
type: i0.Optional
|
|
1458
1455
|
}] }];
|
|
1459
1456
|
}, { dynamicFormRef: [{
|
|
1460
1457
|
type: i0.ViewChild,
|
|
@@ -1578,10 +1575,9 @@
|
|
|
1578
1575
|
|
|
1579
1576
|
const WIDGET_CONFIG = { widgetType: 'wm-form-action', hostClass: '' };
|
|
1580
1577
|
class FormActionDirective extends i5.BaseComponent {
|
|
1581
|
-
constructor(inj, form
|
|
1582
|
-
super(inj, WIDGET_CONFIG
|
|
1578
|
+
constructor(inj, form) {
|
|
1579
|
+
super(inj, WIDGET_CONFIG);
|
|
1583
1580
|
this.form = form;
|
|
1584
|
-
this._viewParent = _viewParent;
|
|
1585
1581
|
}
|
|
1586
1582
|
populateAction() {
|
|
1587
1583
|
this.buttonDef = {
|
|
@@ -1625,7 +1621,7 @@
|
|
|
1625
1621
|
}
|
|
1626
1622
|
}
|
|
1627
1623
|
FormActionDirective.initializeProps = registerProps$1();
|
|
1628
|
-
FormActionDirective.ɵfac = function FormActionDirective_Factory(t) { return new (t || FormActionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(FormComponent, 8)
|
|
1624
|
+
FormActionDirective.ɵfac = function FormActionDirective_Factory(t) { return new (t || FormActionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(FormComponent, 8)); };
|
|
1629
1625
|
FormActionDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: FormActionDirective, selectors: [["", "wmFormAction", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
1630
1626
|
i5.provideAsWidgetRef(FormActionDirective)
|
|
1631
1627
|
]), i0__namespace.ɵɵInheritDefinitionFeature] });
|
|
@@ -1641,8 +1637,6 @@
|
|
|
1641
1637
|
}], function () {
|
|
1642
1638
|
return [{ type: i0__namespace.Injector }, { type: FormComponent, decorators: [{
|
|
1643
1639
|
type: i0.Optional
|
|
1644
|
-
}] }, { type: i2__namespace.UserDefinedExecutionContext, decorators: [{
|
|
1645
|
-
type: i0.Optional
|
|
1646
1640
|
}] }];
|
|
1647
1641
|
}, null);
|
|
1648
1642
|
})();
|
|
@@ -1686,8 +1680,8 @@
|
|
|
1686
1680
|
['viewmodewidget', i5.PROP_STRING],
|
|
1687
1681
|
['widgettype', i5.PROP_STRING]
|
|
1688
1682
|
]);
|
|
1689
|
-
for (const key in
|
|
1690
|
-
const widgetName = 'wm-form-field-' +
|
|
1683
|
+
for (const key in i1$1.FormWidgetType) {
|
|
1684
|
+
const widgetName = 'wm-form-field-' + i1$1.FormWidgetType[key];
|
|
1691
1685
|
const widgetProps = i5.getWidgetPropsByType(widgetName);
|
|
1692
1686
|
formFieldMap.forEach((v, k) => {
|
|
1693
1687
|
if (widgetProps.get(k) == undefined) {
|
|
@@ -1715,15 +1709,14 @@
|
|
|
1715
1709
|
handleClick(event) {
|
|
1716
1710
|
this._clicktriggeredByUser = true;
|
|
1717
1711
|
}
|
|
1718
|
-
constructor(inj, form, fb, viewport, app, parentList, bindChipclass, binddataset, binddisplayexpression, binddisplaylabel, _widgetType, name, binddisplayimagesrc, key, isRange, pcDisplay, mobileDisplay, tabletDisplay, contexts
|
|
1712
|
+
constructor(inj, form, fb, viewport, app, parentList, bindChipclass, binddataset, binddisplayexpression, binddisplaylabel, _widgetType, name, binddisplayimagesrc, key, isRange, pcDisplay, mobileDisplay, tabletDisplay, contexts) {
|
|
1719
1713
|
const WIDGET_CONFIG = {
|
|
1720
1714
|
widgetType: 'wm-form-field',
|
|
1721
1715
|
hostClass: '',
|
|
1722
|
-
widgetSubType: 'wm-form-field-' + (_widgetType ||
|
|
1716
|
+
widgetSubType: 'wm-form-field-' + (_widgetType || i1$1.FormWidgetType.TEXT).trim()
|
|
1723
1717
|
};
|
|
1724
|
-
let resolveFn =
|
|
1725
|
-
super(inj, WIDGET_CONFIG,
|
|
1726
|
-
this._viewParent = _viewParent;
|
|
1718
|
+
let resolveFn = i1$1.noop;
|
|
1719
|
+
super(inj, WIDGET_CONFIG, new Promise(res => resolveFn = res));
|
|
1727
1720
|
this._initPropsRes = resolveFn;
|
|
1728
1721
|
this.app = app;
|
|
1729
1722
|
this.fieldDefConfig = {};
|
|
@@ -1747,7 +1740,7 @@
|
|
|
1747
1740
|
}
|
|
1748
1741
|
contexts[0]._onFocusField = this._onFocusField.bind(this);
|
|
1749
1742
|
contexts[0]._onBlurField = this._onBlurField.bind(this);
|
|
1750
|
-
this._debounceSetUpValidators =
|
|
1743
|
+
this._debounceSetUpValidators = i1$1.debounce(() => this.setUpValidators(), 500);
|
|
1751
1744
|
}
|
|
1752
1745
|
_onFocusField($evt) {
|
|
1753
1746
|
this._activeField = true;
|
|
@@ -1856,7 +1849,7 @@
|
|
|
1856
1849
|
return;
|
|
1857
1850
|
}
|
|
1858
1851
|
// As upload widget is an HTML widget, only required property is setup
|
|
1859
|
-
if (this.widgettype ===
|
|
1852
|
+
if (this.widgettype === i1$1.FormWidgetType.UPLOAD) {
|
|
1860
1853
|
if (key === 'required') {
|
|
1861
1854
|
this._debounceSetUpValidators();
|
|
1862
1855
|
}
|
|
@@ -1914,7 +1907,7 @@
|
|
|
1914
1907
|
return this.formWidget && this.formWidget.datavalue;
|
|
1915
1908
|
}
|
|
1916
1909
|
set datavalue(val) {
|
|
1917
|
-
if (this._control && this.widgettype !==
|
|
1910
|
+
if (this._control && this.widgettype !== i1$1.FormWidgetType.UPLOAD) {
|
|
1918
1911
|
this._control.setValue(val);
|
|
1919
1912
|
}
|
|
1920
1913
|
}
|
|
@@ -1973,7 +1966,7 @@
|
|
|
1973
1966
|
// hasValue check whether form-field has a value from passed val attribute
|
|
1974
1967
|
// Added sanity check on val to support values liked 0, false etc as input val - WMS-20084
|
|
1975
1968
|
// explicitly checking for input value or -webkit-autofill to see whether there are any autofilled fields - WMS-20141
|
|
1976
|
-
const hasValue = ((
|
|
1969
|
+
const hasValue = ((i1$1.isDefined(val) && val !== '' && val !== null) || captionEl.find('input').val()) || captionEl.find('input:-webkit-autofill').length;
|
|
1977
1970
|
this.app.notify('captionPositionAnimate', { displayVal: hasValue, nativeEl: captionEl, isSelectMultiple: this.formWidget && this.formWidget.multiple, isFocused: this._activeField });
|
|
1978
1971
|
}
|
|
1979
1972
|
// Fix for [WMS-23959]: ADA issue - adding aria-describedby, aria-invalid, __errormsg attributes only when the form field is invalid , else removing the attributes
|
|
@@ -1994,7 +1987,7 @@
|
|
|
1994
1987
|
// _triggeredByUser checks whether the field is touched by the user or triggered from external script
|
|
1995
1988
|
// WMS-22456: _clicktriggeredByUser checks when user selects datetimetype from picker, mark the field as touched to show validation errors in mobile
|
|
1996
1989
|
if (this.$element.find('.active').length > 0 || this.form.touched) {
|
|
1997
|
-
if (this._triggeredByUser || (
|
|
1990
|
+
if (this._triggeredByUser || (i1$1.isMobile() && this._clicktriggeredByUser && i1$1.isDateTimeType(this.widgettype))) {
|
|
1998
1991
|
this.ngform.controls[this._fieldName].markAsTouched();
|
|
1999
1992
|
}
|
|
2000
1993
|
this.fieldValidations.setCustomValidationMessage();
|
|
@@ -2041,7 +2034,7 @@
|
|
|
2041
2034
|
this.setFormWidget('readonly', readOnly);
|
|
2042
2035
|
}
|
|
2043
2036
|
resetDisplayInput() {
|
|
2044
|
-
if ((!
|
|
2037
|
+
if ((!i1$1.isDefined(this.value) || this.value === '')) {
|
|
2045
2038
|
this.formWidget && this.formWidget.resetDisplayInput && this.formWidget.resetDisplayInput();
|
|
2046
2039
|
}
|
|
2047
2040
|
}
|
|
@@ -2109,13 +2102,13 @@
|
|
|
2109
2102
|
this.key = this._fieldName || this.target || this.binding;
|
|
2110
2103
|
this.viewmodewidget = this.viewmodewidget || i5.getDefaultViewModeWidget(this.widgettype);
|
|
2111
2104
|
// For upload widget, generate the permitted field
|
|
2112
|
-
if (this.widgettype ===
|
|
2105
|
+
if (this.widgettype === i1$1.FormWidgetType.UPLOAD) {
|
|
2113
2106
|
let fileType;
|
|
2114
2107
|
// Create the accepts string from file type and extensions
|
|
2115
2108
|
fileType = this.filetype ? FILE_TYPES[this.filetype] : '';
|
|
2116
2109
|
this.permitted = fileType + (this.extensions ? (fileType ? ',' : '') + this.extensions : '');
|
|
2117
2110
|
}
|
|
2118
|
-
if (
|
|
2111
|
+
if (i1$1.isMobile() && this.viewport.isMobileType) {
|
|
2119
2112
|
if (!this['mobile-display']) {
|
|
2120
2113
|
this.widget.show = false;
|
|
2121
2114
|
}
|
|
@@ -2151,13 +2144,13 @@
|
|
|
2151
2144
|
this.fieldDefConfig.widget = this.widgettype;
|
|
2152
2145
|
// Register the form field with parent form
|
|
2153
2146
|
this.form.registerFormFields(this.widget);
|
|
2154
|
-
|
|
2147
|
+
i1$1.addForIdAttributes(this.nativeElement);
|
|
2155
2148
|
this.setReadOnlyState();
|
|
2156
2149
|
});
|
|
2157
2150
|
}
|
|
2158
2151
|
}
|
|
2159
2152
|
FormFieldDirective.initializeProps = registerProps();
|
|
2160
|
-
FormFieldDirective.ɵfac = function FormFieldDirective_Factory(t) { return new (t || FormFieldDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(FormComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(
|
|
2153
|
+
FormFieldDirective.ɵfac = function FormFieldDirective_Factory(t) { return new (t || FormFieldDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(FormComponent), i0__namespace.ɵɵdirectiveInject(i1__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.Viewport), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App), i0__namespace.ɵɵdirectiveInject(i3__namespace.ListComponent, 8), i0__namespace.ɵɵinjectAttribute('chipclass.bind'), i0__namespace.ɵɵinjectAttribute('dataset.bind'), i0__namespace.ɵɵinjectAttribute('displayexpression.bind'), i0__namespace.ɵɵinjectAttribute('displaylabel.bind'), i0__namespace.ɵɵinjectAttribute('widgettype'), i0__namespace.ɵɵinjectAttribute('name'), i0__namespace.ɵɵinjectAttribute('displayimagesrc.bind'), i0__namespace.ɵɵinjectAttribute('key'), i0__namespace.ɵɵinjectAttribute('is-range'), i0__namespace.ɵɵinjectAttribute('pc-display'), i0__namespace.ɵɵinjectAttribute('mobile-display'), i0__namespace.ɵɵinjectAttribute('tablet-display'), i0__namespace.ɵɵdirectiveInject(i5.Context, 2)); };
|
|
2161
2154
|
FormFieldDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: FormFieldDirective, selectors: [["", "wmFormField", ""]], contentQueries: function FormFieldDirective_ContentQueries(rf, ctx, dirIndex) {
|
|
2162
2155
|
if (rf & 1) {
|
|
2163
2156
|
i0__namespace.ɵɵcontentQuery(dirIndex, _c0, 7);
|
|
@@ -2190,7 +2183,7 @@
|
|
|
2190
2183
|
]
|
|
2191
2184
|
}]
|
|
2192
2185
|
}], function () {
|
|
2193
|
-
return [{ type: i0__namespace.Injector }, { type: FormComponent }, { type: i1__namespace.FormBuilder }, { type:
|
|
2186
|
+
return [{ type: i0__namespace.Injector }, { type: FormComponent }, { type: i1__namespace.FormBuilder }, { type: i1$1__namespace.Viewport }, { type: i1$1__namespace.App }, { type: i3__namespace.ListComponent, decorators: [{
|
|
2194
2187
|
type: i0.Optional
|
|
2195
2188
|
}] }, { type: undefined, decorators: [{
|
|
2196
2189
|
type: i0.Attribute,
|
|
@@ -2233,8 +2226,6 @@
|
|
|
2233
2226
|
}, {
|
|
2234
2227
|
type: i0.Inject,
|
|
2235
2228
|
args: [i5.Context]
|
|
2236
|
-
}] }, { type: i2__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2237
|
-
type: i0.Optional
|
|
2238
2229
|
}] }];
|
|
2239
2230
|
}, { formWidget: [{
|
|
2240
2231
|
type: i0.ContentChild,
|
|
@@ -2271,11 +2262,11 @@
|
|
|
2271
2262
|
this.app.notify('wm-event', { eventName: i5.Live_Operations.DELETE, widgetName: this.subscribedWidget.name, row: this.subscribedWidget.selecteditem });
|
|
2272
2263
|
}
|
|
2273
2264
|
successHandler(options, response) {
|
|
2274
|
-
|
|
2265
|
+
i1$1.triggerFn(options.success, response);
|
|
2275
2266
|
}
|
|
2276
2267
|
errorHandler(options, error) {
|
|
2277
2268
|
this.app.notifyApp(error, 'error', 'ERROR');
|
|
2278
|
-
|
|
2269
|
+
i1$1.triggerFn(options.error, error);
|
|
2279
2270
|
}
|
|
2280
2271
|
getRecords(options, operation) {
|
|
2281
2272
|
let index;
|
|
@@ -2301,7 +2292,7 @@
|
|
|
2301
2292
|
});
|
|
2302
2293
|
}
|
|
2303
2294
|
else {
|
|
2304
|
-
this.subscribedWidget.datasource.execute(
|
|
2295
|
+
this.subscribedWidget.datasource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
2305
2296
|
'skipToggleState': true
|
|
2306
2297
|
}).then(response => {
|
|
2307
2298
|
this.successHandler(options, response);
|
|
@@ -2319,7 +2310,7 @@
|
|
|
2319
2310
|
return;
|
|
2320
2311
|
}
|
|
2321
2312
|
if (this.subscribedWidget.datasource.category === 'wm.CrudVariable' && operation === 'delete') {
|
|
2322
|
-
this.subscribedWidget.datasource.execute(
|
|
2313
|
+
this.subscribedWidget.datasource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
2323
2314
|
'skipToggleState': true
|
|
2324
2315
|
}).then(response => {
|
|
2325
2316
|
this.successHandler(options, response);
|
|
@@ -2357,7 +2348,7 @@
|
|
|
2357
2348
|
this.dialogService.closeAppConfirmDialog();
|
|
2358
2349
|
},
|
|
2359
2350
|
onCancel: () => {
|
|
2360
|
-
|
|
2351
|
+
i1$1.triggerFn(options.cancelDeleteCallback);
|
|
2361
2352
|
this.dialogService.closeAppConfirmDialog();
|
|
2362
2353
|
}
|
|
2363
2354
|
});
|
|
@@ -2397,7 +2388,7 @@
|
|
|
2397
2388
|
this.performOperation(operation, options);
|
|
2398
2389
|
}
|
|
2399
2390
|
}
|
|
2400
|
-
LiveActionsDirective.ɵfac = function LiveActionsDirective_Factory(t) { return new (t || LiveActionsDirective)(i0__namespace.ɵɵdirectiveInject(i3.ListComponent, 2), i0__namespace.ɵɵdirectiveInject(
|
|
2391
|
+
LiveActionsDirective.ɵfac = function LiveActionsDirective_Factory(t) { return new (t || LiveActionsDirective)(i0__namespace.ɵɵdirectiveInject(i3.ListComponent, 2), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AbstractDialogService)); };
|
|
2401
2392
|
LiveActionsDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: LiveActionsDirective, selectors: [["", "wmLiveActions", ""]] });
|
|
2402
2393
|
(function () {
|
|
2403
2394
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LiveActionsDirective, [{
|
|
@@ -2411,7 +2402,7 @@
|
|
|
2411
2402
|
}, {
|
|
2412
2403
|
type: i0.Inject,
|
|
2413
2404
|
args: [i3.ListComponent]
|
|
2414
|
-
}] }, { type:
|
|
2405
|
+
}] }, { type: i1$1__namespace.App }, { type: i1$1__namespace.AbstractDialogService }];
|
|
2415
2406
|
}, null);
|
|
2416
2407
|
})();
|
|
2417
2408
|
|
|
@@ -2489,7 +2480,7 @@
|
|
|
2489
2480
|
break;
|
|
2490
2481
|
case 'rerender':
|
|
2491
2482
|
if (options.dataSource) {
|
|
2492
|
-
options.dataSource.execute(
|
|
2483
|
+
options.dataSource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
2493
2484
|
'skipToggleState': true,
|
|
2494
2485
|
'operation': 'list'
|
|
2495
2486
|
});
|
|
@@ -2541,7 +2532,7 @@
|
|
|
2541
2532
|
}
|
|
2542
2533
|
}
|
|
2543
2534
|
}
|
|
2544
|
-
DependsonDirective.ɵfac = function DependsonDirective_Factory(t) { return new (t || DependsonDirective)(i0__namespace.ɵɵinjectAttribute('dialogid'), i0__namespace.ɵɵinjectAttribute('dependson'), i0__namespace.ɵɵdirectiveInject(
|
|
2535
|
+
DependsonDirective.ɵfac = function DependsonDirective_Factory(t) { return new (t || DependsonDirective)(i0__namespace.ɵɵinjectAttribute('dialogid'), i0__namespace.ɵɵinjectAttribute('dependson'), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AbstractDialogService), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App)); };
|
|
2545
2536
|
DependsonDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: DependsonDirective, selectors: [["", "dependson", ""]], contentQueries: function DependsonDirective_ContentQueries(rf, ctx, dirIndex) {
|
|
2546
2537
|
if (rf & 1) {
|
|
2547
2538
|
i0__namespace.ɵɵcontentQuery(dirIndex, FormComponent, 5);
|
|
@@ -2564,7 +2555,7 @@
|
|
|
2564
2555
|
}] }, { type: undefined, decorators: [{
|
|
2565
2556
|
type: i0.Attribute,
|
|
2566
2557
|
args: ['dependson']
|
|
2567
|
-
}] }, { type:
|
|
2558
|
+
}] }, { type: i1$1__namespace.AbstractDialogService }, { type: i1$1__namespace.App }];
|
|
2568
2559
|
}, { formChildren: [{
|
|
2569
2560
|
type: i0.ContentChildren,
|
|
2570
2561
|
args: [FormComponent, { descendants: true }]
|
|
@@ -2578,7 +2569,7 @@
|
|
|
2578
2569
|
constructor(form) {
|
|
2579
2570
|
this.form = form;
|
|
2580
2571
|
// debounce the filter function. If multiple filter calls are made at same time, calls will be delayed and last call is fired
|
|
2581
|
-
this._filter =
|
|
2572
|
+
this._filter = i1$1.debounce(options => {
|
|
2582
2573
|
this.filter(options);
|
|
2583
2574
|
}, 250);
|
|
2584
2575
|
form.clearFilter = this.clearFilter.bind(this);
|
|
@@ -2594,19 +2585,19 @@
|
|
|
2594
2585
|
form.registerFormWidget = this.registerFormWidget.bind(this);
|
|
2595
2586
|
}
|
|
2596
2587
|
execute(operation, options) {
|
|
2597
|
-
if (operation ===
|
|
2588
|
+
if (operation === i1$1.DataSource.Operation.LIST_RECORDS || operation === i1$1.DataSource.Operation.DOWNLOAD) {
|
|
2598
2589
|
return this.applyFilter(options);
|
|
2599
2590
|
}
|
|
2600
|
-
if (operation ===
|
|
2591
|
+
if (operation === i1$1.DataSource.Operation.GET_OPTIONS) {
|
|
2601
2592
|
return this._options || {};
|
|
2602
2593
|
}
|
|
2603
|
-
if (operation ===
|
|
2594
|
+
if (operation === i1$1.DataSource.Operation.GET_PAGING_OPTIONS) {
|
|
2604
2595
|
return this.form.pagination;
|
|
2605
2596
|
}
|
|
2606
2597
|
if (!this.form.datasource) {
|
|
2607
2598
|
return {};
|
|
2608
2599
|
}
|
|
2609
|
-
if (operation ===
|
|
2600
|
+
if (operation === i1$1.DataSource.Operation.FETCH_DISTINCT_VALUES) {
|
|
2610
2601
|
return i5.fetchDistinctValues(this.form.datasource, this.form.formFields, {
|
|
2611
2602
|
widget: 'widgettype',
|
|
2612
2603
|
enableemptyfilter: this.form.enableemptyfilter,
|
|
@@ -2624,7 +2615,7 @@
|
|
|
2624
2615
|
i5.applyFilterOnField(this.form.datasource, field.widget, this.form.formFields, nv, {
|
|
2625
2616
|
EMPTY_VALUE: this.form.appLocale.LABEL_NO_VALUE
|
|
2626
2617
|
});
|
|
2627
|
-
if (this.form.autoupdate &&
|
|
2618
|
+
if (this.form.autoupdate && i1$1.isDefined(nv)) {
|
|
2628
2619
|
this._filter();
|
|
2629
2620
|
}
|
|
2630
2621
|
}
|
|
@@ -2659,7 +2650,7 @@
|
|
|
2659
2650
|
this.form.formFields.forEach(filterField => {
|
|
2660
2651
|
// Added check for range field
|
|
2661
2652
|
if (!filterField.readonly && filterField.show) {
|
|
2662
|
-
if (filterField.widgettype ===
|
|
2653
|
+
if (filterField.widgettype === i1$1.FormWidgetType.AUTOCOMPLETE || filterField.widgettype === i1$1.FormWidgetType.TYPEAHEAD) {
|
|
2663
2654
|
this.form.$element.find('div[name=' + filterField.name + '] input').val('');
|
|
2664
2655
|
}
|
|
2665
2656
|
if (filterField['is-range']) {
|
|
@@ -2684,7 +2675,7 @@
|
|
|
2684
2675
|
applyFilter(options) {
|
|
2685
2676
|
options = options ? (options.data || options) : {};
|
|
2686
2677
|
options.page = options.page || 1;
|
|
2687
|
-
options.orderBy =
|
|
2678
|
+
options.orderBy = i1$1.isDefined(options.orderBy) ? options.orderBy : this.orderBy;
|
|
2688
2679
|
return this.filter(options);
|
|
2689
2680
|
}
|
|
2690
2681
|
filter(options) {
|
|
@@ -2696,24 +2687,24 @@
|
|
|
2696
2687
|
let page = 1, orderBy, isValid;
|
|
2697
2688
|
options = options || {};
|
|
2698
2689
|
page = options.page || page;
|
|
2699
|
-
orderBy =
|
|
2690
|
+
orderBy = i1$1.isDefined(options.orderBy) ? options.orderBy : (this.orderBy || '');
|
|
2700
2691
|
this.orderBy = orderBy; // Store the order by in scope. This can be used to retain the sort after filtering
|
|
2701
2692
|
// Copy the values to be sent to the user as '$data' before servicecall
|
|
2702
2693
|
this.form.formFields.forEach(field => {
|
|
2703
2694
|
const fieldSelector = 'div[name=' + field.name + '] input';
|
|
2704
2695
|
const $el = this.form.$element;
|
|
2705
2696
|
let fieldEle;
|
|
2706
|
-
if ((field.widgettype ===
|
|
2697
|
+
if ((field.widgettype === i1$1.FormWidgetType.AUTOCOMPLETE || field.widgettype === i1$1.FormWidgetType.TYPEAHEAD) && $el) {
|
|
2707
2698
|
fieldEle = $el.find(fieldSelector);
|
|
2708
2699
|
if (!field['is-range']) {
|
|
2709
2700
|
dataModel[field.field] = {
|
|
2710
|
-
'value':
|
|
2701
|
+
'value': i1$1.isDefined(field.value) ? field.value : fieldEle.val() // For autocomplete, set the datavalue. If not present, set query value
|
|
2711
2702
|
};
|
|
2712
2703
|
}
|
|
2713
2704
|
else {
|
|
2714
2705
|
dataModel[field.field] = {
|
|
2715
|
-
'minValue':
|
|
2716
|
-
'maxValue':
|
|
2706
|
+
'minValue': i1$1.isDefined(field.minValue) ? field.minValue : fieldEle.first().val(),
|
|
2707
|
+
'maxValue': i1$1.isDefined(field.maxValue) ? field.maxValue : fieldEle.last().val()
|
|
2717
2708
|
};
|
|
2718
2709
|
}
|
|
2719
2710
|
return;
|
|
@@ -2771,7 +2762,7 @@
|
|
|
2771
2762
|
/*Based on the min and max values, decide the matchmode condition*/
|
|
2772
2763
|
fieldValue = i5.getRangeFieldValue(minValue, maxvalue);
|
|
2773
2764
|
matchMode = i5.getRangeMatchMode(minValue, maxvalue);
|
|
2774
|
-
if (
|
|
2765
|
+
if (i1$1.isDefined(fieldValue)) {
|
|
2775
2766
|
filterFields[colName] = {
|
|
2776
2767
|
'value': fieldValue,
|
|
2777
2768
|
'matchMode': matchMode,
|
|
@@ -2781,15 +2772,15 @@
|
|
|
2781
2772
|
}
|
|
2782
2773
|
else {
|
|
2783
2774
|
switch (filterField.widgettype) {
|
|
2784
|
-
case
|
|
2785
|
-
case
|
|
2775
|
+
case i1$1.FormWidgetType.SELECT:
|
|
2776
|
+
case i1$1.FormWidgetType.RADIOSET:
|
|
2786
2777
|
if (i5.getEnableEmptyFilter(this.form.enableemptyfilter) && filterField._value === FILTER_CONSTANTS.EMPTY_KEY) {
|
|
2787
2778
|
matchMode = i5.getEmptyMatchMode(this.form.enableemptyfilter);
|
|
2788
2779
|
fieldValue = filterField._value;
|
|
2789
2780
|
}
|
|
2790
2781
|
else {
|
|
2791
|
-
if (filterField.type ===
|
|
2792
|
-
if (
|
|
2782
|
+
if (filterField.type === i1$1.DataType.BOOLEAN) {
|
|
2783
|
+
if (i1$1.isDefined(filterField._value) && filterField._value !== '') {
|
|
2793
2784
|
fieldValue = JSON.parse(filterField._value);
|
|
2794
2785
|
}
|
|
2795
2786
|
}
|
|
@@ -2798,31 +2789,31 @@
|
|
|
2798
2789
|
}
|
|
2799
2790
|
}
|
|
2800
2791
|
break;
|
|
2801
|
-
case
|
|
2802
|
-
case
|
|
2792
|
+
case i1$1.FormWidgetType.CHECKBOXSET:
|
|
2793
|
+
case i1$1.FormWidgetType.CHIPS:
|
|
2803
2794
|
if (filterField._value && filterField._value.length) {
|
|
2804
2795
|
fieldValue = filterField._value;
|
|
2805
2796
|
}
|
|
2806
2797
|
break;
|
|
2807
|
-
case
|
|
2808
|
-
case
|
|
2809
|
-
if (
|
|
2810
|
-
fieldValue = filterField.type ===
|
|
2798
|
+
case i1$1.FormWidgetType.CHECKBOX:
|
|
2799
|
+
case i1$1.FormWidgetType.TOGGLE:
|
|
2800
|
+
if (i1$1.isDefined(filterField._value) && filterField._value !== '') {
|
|
2801
|
+
fieldValue = filterField.type === i1$1.DataType.BOOLEAN ? JSON.parse(filterField._value) : filterField._value;
|
|
2811
2802
|
}
|
|
2812
2803
|
break;
|
|
2813
2804
|
default:
|
|
2814
2805
|
fieldValue = filterField._value;
|
|
2815
2806
|
break;
|
|
2816
2807
|
}
|
|
2817
|
-
if (
|
|
2808
|
+
if (i1$1.isDefined(fieldValue) && fieldValue !== '' && fieldValue !== null) {
|
|
2818
2809
|
filterFields[colName] = {};
|
|
2819
2810
|
if (matchMode) {
|
|
2820
2811
|
filterFields[colName].matchMode = matchMode;
|
|
2821
2812
|
fieldValue = undefined;
|
|
2822
2813
|
}
|
|
2823
|
-
else if (filterField.type ===
|
|
2814
|
+
else if (filterField.type === i1$1.DataType.STRING || filterField.isRelated) { // Only for string types and related fields, custom match modes are enabled.
|
|
2824
2815
|
filterFields[colName].matchMode = matchMode || filterField.matchmode ||
|
|
2825
|
-
this.form.datasource.execute(
|
|
2816
|
+
this.form.datasource.execute(i1$1.DataSource.Operation.GET_MATCH_MODE);
|
|
2826
2817
|
}
|
|
2827
2818
|
filterFields[colName].value = fieldValue;
|
|
2828
2819
|
filterFields[colName].logicalOp = 'AND';
|
|
@@ -2831,7 +2822,7 @@
|
|
|
2831
2822
|
}
|
|
2832
2823
|
});
|
|
2833
2824
|
if (options.exportType) {
|
|
2834
|
-
return this.form.datasource.execute(
|
|
2825
|
+
return this.form.datasource.execute(i1$1.DataSource.Operation.DOWNLOAD, {
|
|
2835
2826
|
data: {
|
|
2836
2827
|
matchMode: 'anywhereignorecase',
|
|
2837
2828
|
filterFields: filterFields,
|
|
@@ -2844,7 +2835,7 @@
|
|
|
2844
2835
|
}
|
|
2845
2836
|
});
|
|
2846
2837
|
}
|
|
2847
|
-
return this.form.datasource.execute(
|
|
2838
|
+
return this.form.datasource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
2848
2839
|
filterFields: filterFields,
|
|
2849
2840
|
orderBy: orderBy,
|
|
2850
2841
|
page: page,
|
|
@@ -2864,10 +2855,10 @@
|
|
|
2864
2855
|
'page': page,
|
|
2865
2856
|
'orderBy': orderBy
|
|
2866
2857
|
};
|
|
2867
|
-
this.form.result =
|
|
2858
|
+
this.form.result = i1$1.getClonedObject(data);
|
|
2868
2859
|
this.form.onResultCb(data, true);
|
|
2869
2860
|
}
|
|
2870
|
-
|
|
2861
|
+
i1$1.$appDigest();
|
|
2871
2862
|
return this.form.result;
|
|
2872
2863
|
}, error => {
|
|
2873
2864
|
this.form.toggleMessage(true, error, 'error', 'ERROR');
|
|
@@ -2879,7 +2870,7 @@
|
|
|
2879
2870
|
filterOnDefault() {
|
|
2880
2871
|
/*Check if default value is present for any filter field*/
|
|
2881
2872
|
const defaultObj = _.find(this.form.formFields, obj => {
|
|
2882
|
-
return
|
|
2873
|
+
return i1$1.isDefined(obj.value) || i1$1.isDefined(obj.minValue) || i1$1.isDefined(obj.maxValue);
|
|
2883
2874
|
});
|
|
2884
2875
|
/*If default value exists and data is loaded, apply the filter*/
|
|
2885
2876
|
if (defaultObj) {
|
|
@@ -2910,7 +2901,7 @@
|
|
|
2910
2901
|
}, null);
|
|
2911
2902
|
})();
|
|
2912
2903
|
|
|
2913
|
-
const isTimeType = field => field.widgettype ===
|
|
2904
|
+
const isTimeType = field => field.widgettype === i1$1.DataType.TIME || (field.type === i1$1.DataType.TIME && !field.widgettype);
|
|
2914
2905
|
const getValidTime = val => {
|
|
2915
2906
|
if (val) {
|
|
2916
2907
|
const date = (new Date()).toDateString();
|
|
@@ -2926,7 +2917,7 @@
|
|
|
2926
2917
|
this.form = form;
|
|
2927
2918
|
this.datePipe = datePipe;
|
|
2928
2919
|
this.dialogService = dialogService;
|
|
2929
|
-
this._debouncedSavePrevDataValues =
|
|
2920
|
+
this._debouncedSavePrevDataValues = i1$1.debounce(() => {
|
|
2930
2921
|
this.savePrevDataValues();
|
|
2931
2922
|
}, 250);
|
|
2932
2923
|
// If parent live table is present and this form is first child of live table, set this form instance on livetable
|
|
@@ -3005,7 +2996,7 @@
|
|
|
3005
2996
|
return;
|
|
3006
2997
|
}
|
|
3007
2998
|
// Set the default value only if it exists.
|
|
3008
|
-
if (
|
|
2999
|
+
if (i1$1.isDefined(nv) && nv !== null && nv !== '' && nv !== 'null') {
|
|
3009
3000
|
field.value = i5.parseValueByType(nv, field.type, field.widgettype, field.trailingzero);
|
|
3010
3001
|
}
|
|
3011
3002
|
else {
|
|
@@ -3027,13 +3018,13 @@
|
|
|
3027
3018
|
if (value === null || value === undefined || !this.form.datasource) {
|
|
3028
3019
|
return href;
|
|
3029
3020
|
}
|
|
3030
|
-
primaryKeys = this.form.datasource.execute(
|
|
3021
|
+
primaryKeys = this.form.datasource.execute(i1$1.DataSource.Operation.GET_PRIMARY_KEY) || [];
|
|
3031
3022
|
primaryKey = dataObj[primaryKeys[0]];
|
|
3032
3023
|
// TODO: Handle mobile case
|
|
3033
3024
|
// if (CONSTANTS.hasCordova && CONSTANTS.isRunMode) {
|
|
3034
3025
|
// href += $rootScope.project.deployedUrl;
|
|
3035
3026
|
// }
|
|
3036
|
-
href += this.form.datasource.execute(
|
|
3027
|
+
href += this.form.datasource.execute(i1$1.DataSource.Operation.GET_BLOB_URL, {
|
|
3037
3028
|
primaryValue: primaryKey,
|
|
3038
3029
|
columnName: key
|
|
3039
3030
|
});
|
|
@@ -3050,7 +3041,7 @@
|
|
|
3050
3041
|
if (isTimeType(field)) {
|
|
3051
3042
|
field.value = getValidTime(value);
|
|
3052
3043
|
}
|
|
3053
|
-
else if (field.type ===
|
|
3044
|
+
else if (field.type === i1$1.DataType.BLOB) {
|
|
3054
3045
|
this.form.resetFileUploadWidget(field, true);
|
|
3055
3046
|
field.href = this.getBlobURL(dataObj, field.key, value);
|
|
3056
3047
|
field.value = _.isString(value) ? '' : value;
|
|
@@ -3070,10 +3061,10 @@
|
|
|
3070
3061
|
this.form.setFormData(response);
|
|
3071
3062
|
this.closeDialog();
|
|
3072
3063
|
}
|
|
3073
|
-
this.form.isUpdateMode =
|
|
3064
|
+
this.form.isUpdateMode = i1$1.isDefined(updateMode) ? updateMode : true;
|
|
3074
3065
|
}
|
|
3075
3066
|
savePrevformFields() {
|
|
3076
|
-
this.form.prevformFields =
|
|
3067
|
+
this.form.prevformFields = i1$1.getClonedObject(this.form.formFields.map(field => {
|
|
3077
3068
|
return {
|
|
3078
3069
|
'key': field.key,
|
|
3079
3070
|
'type': field.type,
|
|
@@ -3093,10 +3084,10 @@
|
|
|
3093
3084
|
if (this.form.operationType === i5.Live_Operations.INSERT) {
|
|
3094
3085
|
return {};
|
|
3095
3086
|
}
|
|
3096
|
-
if (
|
|
3097
|
-
return
|
|
3087
|
+
if (i1$1.isDefined(this.form.prevDataObject) && !i1$1.isEmptyObject(this.form.prevDataObject)) {
|
|
3088
|
+
return i1$1.getClonedObject(this.form.prevDataObject);
|
|
3098
3089
|
}
|
|
3099
|
-
return
|
|
3090
|
+
return i1$1.getClonedObject(this.form.formdata || {});
|
|
3100
3091
|
}
|
|
3101
3092
|
constructDataObject(isPreviousData) {
|
|
3102
3093
|
const dataObject = this.getDataObject();
|
|
@@ -3109,10 +3100,10 @@
|
|
|
3109
3100
|
const fieldName = fieldTarget[0] || field.key;
|
|
3110
3101
|
/*collect the values from the fields and construct the object*/
|
|
3111
3102
|
/*Format the output of date time widgets to the given output format*/
|
|
3112
|
-
if ((field.widgettype &&
|
|
3103
|
+
if ((field.widgettype && i1$1.isDateTimeType(field.widgettype)) || i1$1.isDateTimeType(field.type)) {
|
|
3113
3104
|
if (field.value) {
|
|
3114
|
-
dateTime =
|
|
3115
|
-
if (field.outputformat ===
|
|
3105
|
+
dateTime = i1$1.getValidDateObject(field.value);
|
|
3106
|
+
if (field.outputformat === i1$1.DataType.TIMESTAMP || field.type === i1$1.DataType.TIMESTAMP) {
|
|
3116
3107
|
fieldValue = field.value ? dateTime : null;
|
|
3117
3108
|
}
|
|
3118
3109
|
else if (field.outputformat) {
|
|
@@ -3126,10 +3117,10 @@
|
|
|
3126
3117
|
fieldValue = undefined;
|
|
3127
3118
|
}
|
|
3128
3119
|
}
|
|
3129
|
-
else if (field.type ===
|
|
3130
|
-
fieldValue =
|
|
3120
|
+
else if (field.type === i1$1.DataType.BLOB) {
|
|
3121
|
+
fieldValue = i1$1.getFiles(formName, fieldName + '_formWidget', field.multiple);
|
|
3131
3122
|
}
|
|
3132
|
-
else if (field.type ===
|
|
3123
|
+
else if (field.type === i1$1.DataType.LIST) {
|
|
3133
3124
|
fieldValue = field.value || undefined;
|
|
3134
3125
|
}
|
|
3135
3126
|
else {
|
|
@@ -3159,7 +3150,7 @@
|
|
|
3159
3150
|
findOperationType() {
|
|
3160
3151
|
let operation;
|
|
3161
3152
|
let isPrimary = false;
|
|
3162
|
-
const sourceOperation = this.form.datasource && this.form.datasource.execute(
|
|
3153
|
+
const sourceOperation = this.form.datasource && this.form.datasource.execute(i1$1.DataSource.Operation.GET_OPERATION_TYPE);
|
|
3163
3154
|
if (sourceOperation && sourceOperation !== 'read') {
|
|
3164
3155
|
return sourceOperation;
|
|
3165
3156
|
}
|
|
@@ -3228,7 +3219,7 @@
|
|
|
3228
3219
|
prevDataValues = this.getPrevDataValues();
|
|
3229
3220
|
this.form.formFields.forEach(field => {
|
|
3230
3221
|
var _a;
|
|
3231
|
-
if (field.type ===
|
|
3222
|
+
if (field.type === i1$1.DataType.BLOB || field.widgettype === 'upload') {
|
|
3232
3223
|
this.form.resetFileUploadWidget(field, true);
|
|
3233
3224
|
field.href = this.getBlobURL(prevDataValues, field.key, field.value);
|
|
3234
3225
|
}
|
|
@@ -3261,12 +3252,12 @@
|
|
|
3261
3252
|
*/
|
|
3262
3253
|
this.closeDialog();
|
|
3263
3254
|
}
|
|
3264
|
-
|
|
3255
|
+
i1$1.$appDigest();
|
|
3265
3256
|
}
|
|
3266
3257
|
delete(callBackFn) {
|
|
3267
3258
|
this.form.resetFormState();
|
|
3268
3259
|
this.form.operationType = i5.Live_Operations.DELETE;
|
|
3269
|
-
this.form.prevDataObject =
|
|
3260
|
+
this.form.prevDataObject = i1$1.getClonedObject(this.form.formdata || {});
|
|
3270
3261
|
this.form.save(undefined, undefined, undefined, callBackFn);
|
|
3271
3262
|
}
|
|
3272
3263
|
// Function use to save the form and open new form after save
|
|
@@ -3291,7 +3282,7 @@
|
|
|
3291
3282
|
if (this.form.validateFieldsOnSubmit()) {
|
|
3292
3283
|
return;
|
|
3293
3284
|
}
|
|
3294
|
-
data =
|
|
3285
|
+
data = i1$1.getClonedObject(this.form.constructDataObject());
|
|
3295
3286
|
prevData = this.form.prevformFields ? this.form.constructDataObject(true) : data;
|
|
3296
3287
|
try {
|
|
3297
3288
|
isValid = this.form.invokeEventCallback('beforeservicecall', { $event: event, $operation: this.form.operationType, $data: data, options: requestData });
|
|
@@ -3312,7 +3303,7 @@
|
|
|
3312
3303
|
if (this.form.operationType === i5.Live_Operations.UPDATE && this.form.ngform && this.form.ngform.pristine &&
|
|
3313
3304
|
(this.form.isSelected && _.isEqual(data, prevData))) {
|
|
3314
3305
|
this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
|
|
3315
|
-
|
|
3306
|
+
i1$1.$appDigest();
|
|
3316
3307
|
return;
|
|
3317
3308
|
}
|
|
3318
3309
|
requestData.row = data;
|
|
@@ -3346,7 +3337,7 @@
|
|
|
3346
3337
|
}
|
|
3347
3338
|
else {
|
|
3348
3339
|
/*get updated data without refreshing page*/
|
|
3349
|
-
this.form.datasource.execute(
|
|
3340
|
+
this.form.datasource.execute(i1$1.DataSource.Operation.LIST_RECORDS, {
|
|
3350
3341
|
'skipToggleState': true
|
|
3351
3342
|
});
|
|
3352
3343
|
this.onDataSourceUpdate(response, newForm, updateMode);
|
|
@@ -3359,7 +3350,7 @@
|
|
|
3359
3350
|
if (!this.form.onError) {
|
|
3360
3351
|
this.form.toggleMessage(true, error, 'error');
|
|
3361
3352
|
}
|
|
3362
|
-
|
|
3353
|
+
i1$1.$appDigest();
|
|
3363
3354
|
return {
|
|
3364
3355
|
'result': error,
|
|
3365
3356
|
'status': false
|
|
@@ -3372,7 +3363,7 @@
|
|
|
3372
3363
|
}
|
|
3373
3364
|
}
|
|
3374
3365
|
LiveFormDirective.initializeProps = registerLiveFormProps();
|
|
3375
|
-
LiveFormDirective.ɵfac = function LiveFormDirective_Factory(t) { return new (t || LiveFormDirective)(i0__namespace.ɵɵdirectiveInject(FormComponent, 2), i0__namespace.ɵɵdirectiveInject(i1$
|
|
3366
|
+
LiveFormDirective.ɵfac = function LiveFormDirective_Factory(t) { return new (t || LiveFormDirective)(i0__namespace.ɵɵdirectiveInject(FormComponent, 2), i0__namespace.ɵɵdirectiveInject(i1$2__namespace.LiveTableComponent, 8), i0__namespace.ɵɵdirectiveInject(i5__namespace.ToDatePipe), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.AbstractDialogService), i0__namespace.ɵɵinjectAttribute('formlayout')); };
|
|
3376
3367
|
LiveFormDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: LiveFormDirective, selectors: [["", "wmLiveForm", ""]], hostBindings: function LiveFormDirective_HostBindings(rf, ctx) {
|
|
3377
3368
|
if (rf & 1) {
|
|
3378
3369
|
i0__namespace.ɵɵlistener("keydown", function LiveFormDirective_keydown_HostBindingHandler($event) { return ctx.onKeydownHandler($event); });
|
|
@@ -3390,9 +3381,9 @@
|
|
|
3390
3381
|
}, {
|
|
3391
3382
|
type: i0.Inject,
|
|
3392
3383
|
args: [FormComponent]
|
|
3393
|
-
}] }, { type: i1$
|
|
3384
|
+
}] }, { type: i1$2__namespace.LiveTableComponent, decorators: [{
|
|
3394
3385
|
type: i0.Optional
|
|
3395
|
-
}] }, { type: i5__namespace.ToDatePipe }, { type:
|
|
3386
|
+
}] }, { type: i5__namespace.ToDatePipe }, { type: i1$1__namespace.AbstractDialogService }, { type: undefined, decorators: [{
|
|
3396
3387
|
type: i0.Attribute,
|
|
3397
3388
|
args: ['formlayout']
|
|
3398
3389
|
}] }];
|