@wavemaker/app-ng-runtime 11.8.0-next.24904 → 11.8.0-next.27301
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/build-task/bundles/index.umd.js +5 -5
- app-ng-runtime/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +1 -1
- app-ng-runtime/build-task/esm2022/page/page.build.mjs +3 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +2 -1
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +5 -5
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +3 -2
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.directive.mjs +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/bundles/index.umd.js +6 -6
- app-ng-runtime/components/advanced/login/esm2022/login.component.mjs +4 -3
- app-ng-runtime/components/advanced/login/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/advanced/login/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +203 -171
- app-ng-runtime/components/base/esm2022/directives/show-in-device.directive.mjs +1 -1
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +12 -11
- app-ng-runtime/components/base/esm2022/pipes/wm-pipe.mjs +3 -2
- app-ng-runtime/components/base/esm2022/utils/data-utils.mjs +30 -29
- app-ng-runtime/components/base/esm2022/utils/form-utils.mjs +47 -41
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -7
- app-ng-runtime/components/base/esm2022/utils/widget-utils.mjs +28 -27
- app-ng-runtime/components/base/esm2022/widgets/common/base/base-container.component.mjs +4 -3
- app-ng-runtime/components/base/esm2022/widgets/common/base/base-field-validations.mjs +24 -21
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +12 -11
- app-ng-runtime/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +40 -14
- app-ng-runtime/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +1 -1
- app-ng-runtime/components/base/esm2022/widgets/common/partial/partial.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +6 -5
- app-ng-runtime/components/base/esm2022/widgets/framework/deviceview.mjs +1 -1
- app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +4 -3
- app-ng-runtime/components/base/fesm2022/index.mjs +206 -173
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
- app-ng-runtime/components/base/utils/data-utils.d.ts +0 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +2 -2
- app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
- app-ng-runtime/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
- app-ng-runtime/components/basic/default/bundles/index.umd.js +10 -10
- app-ng-runtime/components/basic/default/esm2022/label/label.directive.mjs +4 -3
- app-ng-runtime/components/basic/default/esm2022/spinner/spinner.component.mjs +6 -5
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +7 -6
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +13 -13
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +5 -4
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +6 -5
- app-ng-runtime/components/basic/progress/esm2022/utils.mjs +3 -3
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +10 -9
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +15 -10
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +14 -8
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +13 -7
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -2
- app-ng-runtime/components/basic/search/bundles/index.umd.js +67 -65
- app-ng-runtime/components/basic/search/esm2022/data-provider/data-provider.mjs +1 -1
- app-ng-runtime/components/basic/search/esm2022/data-provider/local-data-provider.mjs +26 -23
- app-ng-runtime/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +12 -11
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +31 -30
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +66 -63
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/tree/bundles/index.umd.js +9 -9
- app-ng-runtime/components/basic/tree/esm2022/tree.component.mjs +7 -6
- app-ng-runtime/components/basic/tree/fesm2022/index.mjs +6 -5
- app-ng-runtime/components/basic/tree/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/chart/bundles/index.umd.js +72 -63
- app-ng-runtime/components/chart/chart.component.d.ts +1 -1
- app-ng-runtime/components/chart/chart.utils.d.ts +3 -3
- app-ng-runtime/components/chart/esm2022/chart.component.mjs +58 -48
- app-ng-runtime/components/chart/esm2022/chart.utils.mjs +14 -13
- app-ng-runtime/components/chart/fesm2022/index.mjs +69 -59
- app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +16 -16
- app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +14 -13
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +13 -12
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +5 -5
- app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +3 -2
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/panel.component.d.ts +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +17 -17
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +15 -14
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -13
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +75 -75
- app-ng-runtime/components/data/form/esm2022/form-action/form-action.directive.mjs +3 -2
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +10 -9
- app-ng-runtime/components/data/form/esm2022/form.component.mjs +54 -53
- app-ng-runtime/components/data/form/esm2022/live-filter/live-filter.directive.mjs +3 -2
- app-ng-runtime/components/data/form/esm2022/live-form/live-form.directive.mjs +11 -10
- app-ng-runtime/components/data/form/fesm2022/index.mjs +77 -76
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form.component.d.ts +2 -2
- app-ng-runtime/components/data/form/live-form/live-form.directive.d.ts +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +692 -687
- app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +1 -1
- app-ng-runtime/components/data/list/esm2022/list.animator.mjs +5 -3
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +687 -682
- app-ng-runtime/components/data/list/fesm2022/index.mjs +690 -684
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +53 -53
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +2 -2
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +14 -14
- app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +12 -11
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs +11 -10
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +175 -172
- app-ng-runtime/components/data/table/esm2022/table-action/table-action.directive.mjs +3 -2
- app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +19 -18
- app-ng-runtime/components/data/table/esm2022/table-cud.directive.mjs +7 -6
- app-ng-runtime/components/data/table/esm2022/table-filter.directive.mjs +53 -55
- app-ng-runtime/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +3 -2
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +98 -91
- app-ng-runtime/components/data/table/fesm2022/index.mjs +172 -168
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +6 -6
- app-ng-runtime/components/data/table/table.component.d.ts +2 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +2 -2
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +3 -3
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +1 -1
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +33 -31
- app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +31 -28
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs +30 -27
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +29 -28
- app-ng-runtime/components/input/chips/chips.component.d.ts +1 -1
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +27 -25
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +26 -24
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form.component.d.ts +3 -3
- app-ng-runtime/components/input/default/bundles/index.umd.js +75 -62
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +4 -4
- app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +14 -8
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +3 -2
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +6 -4
- app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +29 -23
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +20 -18
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +2 -2
- app-ng-runtime/components/input/default/fesm2022/index.mjs +75 -62
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +53 -51
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +34 -31
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +5 -4
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +5 -4
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -6
- app-ng-runtime/components/input/epoch/esm2022/picker/picker.component.mjs +1 -1
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +6 -5
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +48 -45
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +15 -15
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +13 -12
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +12 -11
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/bundles/index.umd.js +12 -12
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +10 -9
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +9 -8
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +1 -1
- app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +2 -2
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +23 -22
- app-ng-runtime/components/navigation/menu/esm2022/menu-adapator.component.mjs +3 -2
- app-ng-runtime/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +10 -8
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +20 -18
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +12 -1
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +1 -1
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/bundles/index.umd.js +6 -6
- app-ng-runtime/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +3 -2
- app-ng-runtime/components/prefab/esm2022/prefab.directive.mjs +3 -2
- app-ng-runtime/components/prefab/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/prefab/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +119 -130
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/services/field-type.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/field-widget.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/pagination.service.mjs +7 -6
- app-ng-runtime/core/esm2022/services/state-persistence.service.mjs +17 -16
- app-ng-runtime/core/esm2022/services/utils.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/viewport.service.mjs +3 -2
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +5 -4
- app-ng-runtime/core/esm2022/utils/expression-parser.mjs +5 -4
- app-ng-runtime/core/esm2022/utils/lru-cache.mjs +3 -2
- app-ng-runtime/core/esm2022/utils/utils.mjs +79 -82
- app-ng-runtime/core/esm2022/utils/watcher.mjs +9 -7
- app-ng-runtime/core/fesm2022/index.mjs +117 -123
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/services/pagination.service.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +5 -9
- app-ng-runtime/http/bundles/index.umd.js +7 -7
- app-ng-runtime/http/esm2022/http.service.mjs +5 -4
- app-ng-runtime/http/esm2022/wm-http-request.mjs +1 -1
- app-ng-runtime/http/esm2022/wm-http-response.mjs +1 -1
- app-ng-runtime/http/fesm2022/index.mjs +4 -3
- app-ng-runtime/http/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +24 -20
- app-ng-runtime/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +5 -4
- app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +12 -8
- app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +5 -3
- app-ng-runtime/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +3 -2
- app-ng-runtime/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +5 -4
- app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs +21 -16
- app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +7 -7
- app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +2 -2
- app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +4 -3
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs +4 -3
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +8 -8
- app-ng-runtime/mobile/components/data/media-list/esm2022/media-list.component.mjs +4 -3
- app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs +3 -2
- app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +5 -5
- app-ng-runtime/mobile/components/page/default/esm2022/page.directive.mjs +3 -2
- app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +9 -9
- app-ng-runtime/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +7 -6
- app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs +6 -5
- app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +25 -25
- app-ng-runtime/mobile/core/esm2022/services/device-file-download.service.mjs +5 -4
- app-ng-runtime/mobile/core/esm2022/services/device-file-opener.service.mjs +3 -2
- app-ng-runtime/mobile/core/esm2022/services/device-file-upload.service.mjs +4 -3
- app-ng-runtime/mobile/core/esm2022/services/device-file.service.mjs +6 -5
- app-ng-runtime/mobile/core/esm2022/services/device.service.mjs +3 -2
- app-ng-runtime/mobile/core/esm2022/services/ext-app-message.service.mjs +5 -4
- app-ng-runtime/mobile/core/esm2022/services/network.service.mjs +9 -8
- app-ng-runtime/mobile/core/fesm2022/index.mjs +22 -21
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/core/services/ext-app-message.service.d.ts +1 -1
- app-ng-runtime/mobile/core/services/network.service.d.ts +7 -1
- app-ng-runtime/mobile/offline/bundles/index.umd.js +161 -144
- app-ng-runtime/mobile/offline/esm2022/models/local-db-store.mjs +23 -21
- app-ng-runtime/mobile/offline/esm2022/services/change-log.service.mjs +7 -6
- app-ng-runtime/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +37 -35
- app-ng-runtime/mobile/offline/esm2022/services/local-db-management.service.mjs +54 -45
- app-ng-runtime/mobile/offline/esm2022/services/local-db.service.mjs +5 -4
- app-ng-runtime/mobile/offline/esm2022/services/workers/error-blocker.mjs +4 -3
- app-ng-runtime/mobile/offline/esm2022/services/workers/file-handler.mjs +18 -13
- app-ng-runtime/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +9 -5
- app-ng-runtime/mobile/offline/esm2022/utils/live-variable.utils.mjs +12 -11
- app-ng-runtime/mobile/offline/esm2022/utils/query-executor.utils.mjs +5 -4
- app-ng-runtime/mobile/offline/esm2022/utils/security.utils.mjs +3 -2
- app-ng-runtime/mobile/offline/fesm2022/index.mjs +156 -138
- app-ng-runtime/mobile/offline/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/runtime/bundles/index.umd.js +11 -8
- app-ng-runtime/mobile/runtime/esm2022/mobile-runtime.module.mjs +3 -2
- app-ng-runtime/mobile/runtime/esm2022/services/cookie.service.mjs +6 -2
- app-ng-runtime/mobile/runtime/esm2022/services/http-interceptor.service.mjs +4 -3
- app-ng-runtime/mobile/runtime/fesm2022/index.mjs +8 -4
- app-ng-runtime/mobile/runtime/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +2 -2
- app-ng-runtime/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +3 -3
- app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs +2 -2
- app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/variables/bundles/index.umd.js +23 -16
- app-ng-runtime/mobile/variables/esm2022/services/camera-service.mjs +2 -2
- app-ng-runtime/mobile/variables/esm2022/services/datasync-service.mjs +10 -9
- app-ng-runtime/mobile/variables/esm2022/services/file-service.mjs +11 -3
- app-ng-runtime/mobile/variables/fesm2022/index.mjs +19 -11
- app-ng-runtime/mobile/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/oAuth/bundles/index.umd.js +12 -12
- app-ng-runtime/oAuth/esm2022/oAuth.service.mjs +4 -3
- app-ng-runtime/oAuth/esm2022/oAuth.utils.mjs +8 -7
- app-ng-runtime/oAuth/fesm2022/index.mjs +9 -8
- app-ng-runtime/oAuth/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +121 -120
- app-ng-runtime/runtime/base/esm2022/components/base-layout.component.mjs +4 -3
- app-ng-runtime/runtime/base/esm2022/components/base-page.component.mjs +14 -13
- app-ng-runtime/runtime/base/esm2022/components/base-partial.component.mjs +13 -12
- app-ng-runtime/runtime/base/esm2022/components/base-prefab.component.mjs +15 -14
- app-ng-runtime/runtime/base/esm2022/components/base-spa-page.component.mjs +14 -13
- app-ng-runtime/runtime/base/esm2022/components/custom-toaster.component.mjs +6 -5
- app-ng-runtime/runtime/base/esm2022/directives/accessroles.directive.mjs +11 -10
- app-ng-runtime/runtime/base/esm2022/guards/page-not-found.guard.mjs +1 -1
- app-ng-runtime/runtime/base/esm2022/guards/role.guard.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/app-defaults.service.mjs +1 -1
- app-ng-runtime/runtime/base/esm2022/services/app.manager.service.mjs +17 -14
- app-ng-runtime/runtime/base/esm2022/services/app.service.mjs +7 -6
- app-ng-runtime/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/http-interceptor.services.mjs +4 -3
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +12 -10
- app-ng-runtime/runtime/base/esm2022/services/navigation.service.mjs +8 -7
- app-ng-runtime/runtime/base/esm2022/services/prefab-manager.service.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/spinner.service.mjs +7 -6
- app-ng-runtime/runtime/base/esm2022/services/toaster.service.mjs +6 -5
- app-ng-runtime/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +6 -7
- app-ng-runtime/runtime/base/fesm2022/index.mjs +119 -117
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/services/i18n.service.d.ts +1 -1
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +7 -7
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +4 -3
- app-ng-runtime/runtime/dynamic/esm2022/main.mjs +3 -2
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +4 -3
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/jquery-ui/ui/widgets/droppable.js +7 -7
- app-ng-runtime/scripts/jquery-ui/ui/widgets/resizable.js +13 -10
- app-ng-runtime/scripts/jquery-ui/ui/widgets/sortable.js +7 -7
- app-ng-runtime/security/bundles/index.umd.js +14 -14
- app-ng-runtime/security/esm2022/security.service.mjs +12 -11
- app-ng-runtime/security/fesm2022/index.mjs +11 -10
- app-ng-runtime/security/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/security/security.service.d.ts +1 -1
- app-ng-runtime/swipey/esm2022/swipe.animation.mjs +1 -1
- app-ng-runtime/swipey/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/transpiler/bundles/index.umd.js +10 -9
- app-ng-runtime/transpiler/esm2022/build.mjs +8 -6
- app-ng-runtime/transpiler/fesm2022/index.mjs +7 -5
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +155 -145
- app-ng-runtime/variables/esm2022/manager/action/login-action.manager.mjs +15 -14
- app-ng-runtime/variables/esm2022/manager/action/notification-action.manager.mjs +9 -8
- app-ng-runtime/variables/esm2022/manager/variable/base-variable.manager.mjs +3 -2
- app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +11 -10
- app-ng-runtime/variables/esm2022/service/variables.service.mjs +7 -6
- app-ng-runtime/variables/esm2022/util/action/navigation-action.utils.mjs +4 -4
- app-ng-runtime/variables/esm2022/util/variable/pagination.utils.mjs +30 -23
- app-ng-runtime/variables/esm2022/util/variable/service-variable.utils.mjs +29 -28
- app-ng-runtime/variables/esm2022/util/variable/variables.utils.mjs +75 -70
- app-ng-runtime/variables/fesm2022/index.mjs +169 -158
- app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/util/variable/service-variable.utils.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
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('@angular/forms'), require('@wm/core'), require('@wm/components/prefab'), require('@wm/components/data/list'), require('@wm/components/data/table'), require('rxjs/operators'), require('@wm/components/data/live-table')) :
|
|
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', '@angular/forms', '@wm/core', '@wm/components/prefab', '@wm/components/data/list', '@wm/components/data/table', 'rxjs/operators', '@wm/components/data/live-table'], factory) :
|
|
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.ng.forms, global.wm.core, global.wm.components.prefab, global.wm.components.data.list, global.wm.components.data.table, global.rxjs.operators, global.wm.components.data.livetable));
|
|
5
|
-
})(this, (function (exports, i0, i7, i5, i6, i8, designDialog, i1, i1$1, i4, i3, table, operators, i1$2) { 'use strict';
|
|
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('@angular/forms'), require('@wm/core'), require('@wm/components/prefab'), require('@wm/components/data/list'), require('lodash-es'), require('@wm/components/data/table'), require('rxjs/operators'), require('@wm/components/data/live-table')) :
|
|
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', '@angular/forms', '@wm/core', '@wm/components/prefab', '@wm/components/data/list', 'lodash-es', '@wm/components/data/table', 'rxjs/operators', '@wm/components/data/live-table'], factory) :
|
|
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.ng.forms, global.wm.core, global.wm.components.prefab, global.wm.components.data.list, global._, global.wm.components.data.table, global.rxjs.operators, global.wm.components.data.livetable));
|
|
5
|
+
})(this, (function (exports, i0, i7, i5, i6, i8, designDialog, i1, i1$1, i4, i3, lodashEs, table, operators, i1$2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
// Generate the form field with given field definition. Add a grid column wrapper around the form field.
|
|
268
268
|
const setMarkupForFormField = (field, columnWidth) => {
|
|
269
269
|
let propsTmpl = '';
|
|
270
|
-
|
|
270
|
+
lodashEs.forEach(field, (value, key) => {
|
|
271
271
|
propsTmpl = `${propsTmpl} ${key}="${value}"`;
|
|
272
272
|
});
|
|
273
273
|
return `<wm-gridcolumn columnwidth="${columnWidth}">
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
309
|
if (ngForm.controls) {
|
|
310
|
-
|
|
310
|
+
lodashEs.forEach(ngForm.controls, (ctrl, fieldName) => {
|
|
311
311
|
setTouchedState(self, ctrl, fieldName);
|
|
312
312
|
});
|
|
313
313
|
}
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
type: ''
|
|
400
400
|
};
|
|
401
401
|
this.primaryKey = [];
|
|
402
|
-
this._debouncedUpdateFieldSource =
|
|
402
|
+
this._debouncedUpdateFieldSource = lodashEs.debounce(this.updateFieldSource, 350);
|
|
403
403
|
this.validationMessages = [];
|
|
404
404
|
this._debouncedSubmitForm = i1$1.debounce(($event) => {
|
|
405
405
|
// calling submit event in ngZone as change detection is not triggered post the submit callback and actions like notification are not shown
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
ngAfterViewInit() {
|
|
435
435
|
if (this.parentForm && this.parentForm.ngform && this.isParentList) {
|
|
436
436
|
// setting formArray control on ngform.
|
|
437
|
-
if (!
|
|
437
|
+
if (!lodashEs.get(this.parentForm.ngform.controls, this.parentList.name)) {
|
|
438
438
|
this.parentForm.ngform.setControl(this.parentList.name, new i1.FormArray([]));
|
|
439
439
|
}
|
|
440
440
|
// pushing the ngform to formArray.
|
|
@@ -472,10 +472,10 @@
|
|
|
472
472
|
* 5. this means form name change applies only when there is single form (immediate child) inside the parentContainer.
|
|
473
473
|
*/
|
|
474
474
|
const prefabInnerForm = parentContentEl.find('form').first();
|
|
475
|
-
if (
|
|
475
|
+
if (lodashEs.get(prefabInnerForm[0], 'widget.widgetId') === this.widgetId) {
|
|
476
476
|
// check whether form inside prefab container is inside the list. If true, do not change the name.
|
|
477
477
|
if (!prefabInnerForm.isParentList && !prefabInnerForm.siblings('form').length) {
|
|
478
|
-
binding =
|
|
478
|
+
binding = lodashEs.get(parentContainer, 'name');
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -510,16 +510,16 @@
|
|
|
510
510
|
setValidationOnInnerForms(validateTouch) {
|
|
511
511
|
const formEle = this.getNativeElement();
|
|
512
512
|
const formObjs = formEle.querySelectorAll('.app-form');
|
|
513
|
-
|
|
513
|
+
lodashEs.forEach(formObjs, e => {
|
|
514
514
|
const formInstance = e.widget;
|
|
515
515
|
// differentiating the validationMessages prefix based on the formGroupName
|
|
516
516
|
// as the formName's are same when forms are in list
|
|
517
|
-
let formName =
|
|
517
|
+
let formName = lodashEs.get(formInstance, 'formGroupName') || formInstance.name;
|
|
518
518
|
if (i1$1.isDefined(formInstance.formArrayIndex)) {
|
|
519
519
|
formName = formName + '[' + formInstance.formArrayIndex + ']';
|
|
520
520
|
}
|
|
521
521
|
let current = formInstance;
|
|
522
|
-
while (
|
|
522
|
+
while (lodashEs.get(current, 'parentForm')) {
|
|
523
523
|
let parentName = current.parentForm.formGroupName || current.parentForm.name;
|
|
524
524
|
if (current.parentForm.parentFormArray) {
|
|
525
525
|
parentName = parentName + '[' + current.parentForm.formArrayIndex + ']';
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
if (!formFields) {
|
|
543
543
|
return;
|
|
544
544
|
}
|
|
545
|
-
|
|
545
|
+
lodashEs.forEach(controls, (v, k) => {
|
|
546
546
|
const field = formFields.find(e => e.key === k);
|
|
547
547
|
if (!field || (validateTouch && !v.touched)) {
|
|
548
548
|
return;
|
|
@@ -569,18 +569,18 @@
|
|
|
569
569
|
this.validationMessages.push({
|
|
570
570
|
field: k,
|
|
571
571
|
value: field.value,
|
|
572
|
-
errorType:
|
|
572
|
+
errorType: lodashEs.keys(v.errors),
|
|
573
573
|
message: field.validationmessage || '',
|
|
574
574
|
getElement: () => {
|
|
575
575
|
return field.$element.find('[focus-target]');
|
|
576
576
|
},
|
|
577
|
-
formName:
|
|
577
|
+
formName: lodashEs.last(prefix.split('.')),
|
|
578
578
|
fullyQualifiedFormName: prefix
|
|
579
579
|
});
|
|
580
580
|
}
|
|
581
581
|
else {
|
|
582
582
|
this.validationMessages[index].value = field.value;
|
|
583
|
-
this.validationMessages[index].errorType =
|
|
583
|
+
this.validationMessages[index].errorType = lodashEs.keys(v.errors);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
else if (v.valid && index > -1) {
|
|
@@ -589,7 +589,7 @@
|
|
|
589
589
|
}
|
|
590
590
|
// This will return a object containing the error details from the list of formFields that are invalid
|
|
591
591
|
setValidationMsgs(validateTouch) {
|
|
592
|
-
if (!this.formFields.length &&
|
|
592
|
+
if (!this.formFields.length && lodashEs.isEmpty(this.ngform.controls)) {
|
|
593
593
|
return;
|
|
594
594
|
}
|
|
595
595
|
this.setValidationOnFields(this, this.name, validateTouch);
|
|
@@ -671,10 +671,10 @@
|
|
|
671
671
|
break;
|
|
672
672
|
case 'formdata':
|
|
673
673
|
// For livelist when multiselect is enabled, formdata will be array of objects. In this case consider the last object as formdata.
|
|
674
|
-
if (
|
|
674
|
+
if (lodashEs.isEqual(nv, ov)) {
|
|
675
675
|
break;
|
|
676
676
|
}
|
|
677
|
-
|
|
677
|
+
lodashEs.isArray(nv) ? this.setFormData(lodashEs.last(nv)) : this.setFormData(nv);
|
|
678
678
|
// if dataset on the formFields are not set as the datasourceChange is triggered before the formFields are registered.
|
|
679
679
|
if (!this.isDataSourceUpdated && this.datasource) {
|
|
680
680
|
this.onDataSourceChange();
|
|
@@ -704,7 +704,7 @@
|
|
|
704
704
|
const formFields = this.getFormFields();
|
|
705
705
|
formFields.forEach(field => {
|
|
706
706
|
// notifying the dataset change to the form-field widget.
|
|
707
|
-
if (!field.isDataSetBound &&
|
|
707
|
+
if (!field.isDataSetBound && lodashEs.get(field.formWidget, 'dataset$')) {
|
|
708
708
|
field.formWidget.dataset$.next();
|
|
709
709
|
}
|
|
710
710
|
});
|
|
@@ -753,7 +753,7 @@
|
|
|
753
753
|
}
|
|
754
754
|
// if there is an App.onServiceError handler for the app, that message should be used instead of server returned error message
|
|
755
755
|
checkAppServiceErrorMsg(type) {
|
|
756
|
-
const notificationAction =
|
|
756
|
+
const notificationAction = lodashEs.get(this.app, 'Actions.appNotification');
|
|
757
757
|
if (notificationAction && type === 'error') {
|
|
758
758
|
return notificationAction.getMessage();
|
|
759
759
|
}
|
|
@@ -766,7 +766,7 @@
|
|
|
766
766
|
// Set the classes on the form based on the captionposition and captionwidth properties
|
|
767
767
|
setLayoutConfig() {
|
|
768
768
|
let layoutConfig;
|
|
769
|
-
layoutConfig = i5.getFieldLayoutConfig(this.captionwidth, this.captionposition,
|
|
769
|
+
layoutConfig = i5.getFieldLayoutConfig(this.captionwidth, this.captionposition, lodashEs.get(this.app.selectedViewPort, 'os'));
|
|
770
770
|
this._widgetClass = layoutConfig.widgetCls;
|
|
771
771
|
this._captionClass = layoutConfig.captionCls;
|
|
772
772
|
i1$1.$appDigest();
|
|
@@ -787,9 +787,9 @@
|
|
|
787
787
|
this.parentForm.setFormData(this.parentForm.formdata, this.formFields, this.formdata || {});
|
|
788
788
|
}
|
|
789
789
|
// WMS-18967: Applying formadata after formfields are ready
|
|
790
|
-
if (fieldCount === this.numberOfFields && !
|
|
790
|
+
if (fieldCount === this.numberOfFields && !lodashEs.isEmpty(this.formdata)) {
|
|
791
791
|
this.onDataSourceChange();
|
|
792
|
-
|
|
792
|
+
lodashEs.isArray(this.formdata) ? this.setFormData(lodashEs.last(this.formdata)) : this.setFormData(this.formdata);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
registerActions(formAction) {
|
|
@@ -798,8 +798,8 @@
|
|
|
798
798
|
// Update the dataoutput whenever there is a change in inside form widget value
|
|
799
799
|
updateFormDataOutput(dataObject) {
|
|
800
800
|
// Set the values of the widgets inside the live form (other than form fields) in form data
|
|
801
|
-
|
|
802
|
-
if (!
|
|
801
|
+
lodashEs.forEach(this.ngform.value, (val, key) => {
|
|
802
|
+
if (!lodashEs.find(this.formFields, { key })) {
|
|
803
803
|
dataObject[key] = val;
|
|
804
804
|
}
|
|
805
805
|
});
|
|
@@ -823,20 +823,20 @@
|
|
|
823
823
|
// This form is having innerform i.e. address, these fields are listed as
|
|
824
824
|
// {"applicantName": "", "applicantID": "", "address": {"street": ""}}
|
|
825
825
|
if (field.form.widgetId !== this.widgetId && field.form.formGroupName) {
|
|
826
|
-
const fd =
|
|
826
|
+
const fd = lodashEs.get(formData, field.form.formGroupName, {});
|
|
827
827
|
fd[fieldName] = fieldValue;
|
|
828
|
-
|
|
828
|
+
lodashEs.set(formData, field.form.formGroupName, fd);
|
|
829
829
|
}
|
|
830
|
-
else if (
|
|
830
|
+
else if (this.parentForm && this.parentForm.ngform && field.form.isParentList) { // Fix for [WMS-25806]: use formArrayIndex only if form has a parent form
|
|
831
831
|
// setting formdata based on formArrayIndex
|
|
832
|
-
const fd =
|
|
832
|
+
const fd = lodashEs.get(formData, field.form.parentList.name, []);
|
|
833
833
|
fd[field.form.formArrayIndex] = fd[field.form.formArrayIndex] || {};
|
|
834
834
|
fd[field.form.formArrayIndex][fieldName] = fieldValue;
|
|
835
|
-
|
|
835
|
+
lodashEs.set(formData, field.form.parentList.name, fd);
|
|
836
836
|
}
|
|
837
837
|
else {
|
|
838
838
|
// In case of update the field will be already present in form data
|
|
839
|
-
|
|
839
|
+
lodashEs.set(formData, fieldName, fieldValue);
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
this.updateFormDataOutput(formData);
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
// FormFields will contain all the fields in parent and inner form also.
|
|
852
852
|
// This returns the formFields in the form based on the form name.
|
|
853
853
|
getFormFields() {
|
|
854
|
-
return
|
|
854
|
+
return lodashEs.filter(this.formFields, formField => {
|
|
855
855
|
return formField.form.name === this.name;
|
|
856
856
|
});
|
|
857
857
|
}
|
|
@@ -862,12 +862,12 @@
|
|
|
862
862
|
const fd = innerFormdata ? innerFormdata : data;
|
|
863
863
|
if (fd) {
|
|
864
864
|
if (fd.hasOwnProperty(key)) {
|
|
865
|
-
field.value =
|
|
865
|
+
field.value = lodashEs.get(fd, key);
|
|
866
866
|
}
|
|
867
|
-
else if (
|
|
867
|
+
else if (lodashEs.includes(key, '.')) {
|
|
868
868
|
// key contains '.' when mapping the fields to child reference i.e. childCol is having key as "parent.childCol"
|
|
869
|
-
if (fd.hasOwnProperty(
|
|
870
|
-
field.value =
|
|
869
|
+
if (fd.hasOwnProperty(lodashEs.split(key, '.')[0])) {
|
|
870
|
+
field.value = lodashEs.get(fd, key);
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
// WMS-18906: For default value, do not mark the form as dirty.
|
|
@@ -880,11 +880,11 @@
|
|
|
880
880
|
* if formGroupName is defined which means field is inside the inner form
|
|
881
881
|
* then set the formdata on the field's form using formGroupName
|
|
882
882
|
*/
|
|
883
|
-
if (formGroupName &&
|
|
883
|
+
if (formGroupName && lodashEs.get(data, formGroupName)) {
|
|
884
884
|
this.setFormData.call(field.form, data[formGroupName]);
|
|
885
885
|
}
|
|
886
886
|
// if formdata is assigned later then on propertyChangeHandler, even inner forms data also needs to be updated.
|
|
887
|
-
if (
|
|
887
|
+
if (lodashEs.get(field.form, 'parentFormArray')) {
|
|
888
888
|
this.setFormDataFromParentFormData.call(field.form, data);
|
|
889
889
|
}
|
|
890
890
|
}
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
template = this.errormessage || error.error || error;
|
|
1068
1068
|
i1$1.$appDigest();
|
|
1069
1069
|
return {
|
|
1070
|
-
'result':
|
|
1070
|
+
'result': lodashEs.get(error, 'error') || error,
|
|
1071
1071
|
'status': false,
|
|
1072
1072
|
'message': template,
|
|
1073
1073
|
'type': 'error'
|
|
@@ -1094,8 +1094,8 @@
|
|
|
1094
1094
|
}
|
|
1095
1095
|
// Method to show/hide the panel header or footer based on the buttons
|
|
1096
1096
|
showButtons(position) {
|
|
1097
|
-
return
|
|
1098
|
-
return
|
|
1097
|
+
return lodashEs.some(this.buttonArray, btn => {
|
|
1098
|
+
return lodashEs.includes(btn.position, position) && btn.updateMode === this.isUpdateMode;
|
|
1099
1099
|
});
|
|
1100
1100
|
}
|
|
1101
1101
|
// Expand or collapse the panel
|
|
@@ -1124,13 +1124,13 @@
|
|
|
1124
1124
|
if (!form.parentForm) {
|
|
1125
1125
|
return {};
|
|
1126
1126
|
}
|
|
1127
|
-
if (!form.bindformdata &&
|
|
1127
|
+
if (!form.bindformdata && lodashEs.get(form.parentForm, 'formdata') && !lodashEs.isEmpty(form.parentForm.formdata)) {
|
|
1128
1128
|
return form.parentForm.formdata;
|
|
1129
1129
|
}
|
|
1130
1130
|
return this.getNearestParentFormData(form.parentForm);
|
|
1131
1131
|
}
|
|
1132
1132
|
setFormDataFromParentFormData(formdata) {
|
|
1133
|
-
if (
|
|
1133
|
+
if (lodashEs.isEmpty(this.formdata) && this.parentForm && formdata) {
|
|
1134
1134
|
/**
|
|
1135
1135
|
* If form is inside list,
|
|
1136
1136
|
* 1. directly applying the formdata to the formArray to update the formdata on list of forms using patchValue.
|
|
@@ -1141,9 +1141,9 @@
|
|
|
1141
1141
|
* If not inside list, just set the formdata on all the formfields including innerForm fields
|
|
1142
1142
|
*/
|
|
1143
1143
|
if (this.parentFormArray) {
|
|
1144
|
-
let childFormArrayData =
|
|
1144
|
+
let childFormArrayData = lodashEs.get(formdata, this.parentList.name);
|
|
1145
1145
|
if (childFormArrayData) {
|
|
1146
|
-
if (!
|
|
1146
|
+
if (!lodashEs.isArray(childFormArrayData)) {
|
|
1147
1147
|
childFormArrayData = [childFormArrayData];
|
|
1148
1148
|
}
|
|
1149
1149
|
this.parentFormArray.patchValue(childFormArrayData);
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
this.setFormData(this.formdata);
|
|
1154
1154
|
}
|
|
1155
1155
|
else if (this.isParentList && this.parentForm.formGroupName) {
|
|
1156
|
-
const parentFormData =
|
|
1156
|
+
const parentFormData = lodashEs.get(formdata, this.parentForm.formGroupName);
|
|
1157
1157
|
this.setFormDataFromParentFormData(parentFormData);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
@@ -1164,7 +1164,7 @@
|
|
|
1164
1164
|
}
|
|
1165
1165
|
// On form data source change. This method is overridden by live form and live filter
|
|
1166
1166
|
onDataSourceChange() {
|
|
1167
|
-
if (
|
|
1167
|
+
if (lodashEs.get(this.formFields, 'length') && !this.bindformdata) {
|
|
1168
1168
|
this.isDataSourceUpdated = true;
|
|
1169
1169
|
/**
|
|
1170
1170
|
* formdata on the parent form will be set before the inner forms are rendered.
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
let noOfColumns;
|
|
1197
1197
|
let $gridLayout;
|
|
1198
1198
|
// Check if grid layout is present or not for first time
|
|
1199
|
-
if (
|
|
1199
|
+
if (lodashEs.isUndefined(this._isGridLayoutPresent)) {
|
|
1200
1200
|
this._isGridLayoutPresent = this.$element.find('.panel-body [wmlayoutgrid]').length > 0;
|
|
1201
1201
|
}
|
|
1202
1202
|
if (this._isGridLayoutPresent) {
|
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
let userFields;
|
|
1219
1219
|
let fields = this.metadata ? this.metadata.data || this.metadata : [];
|
|
1220
1220
|
this.formFields = []; // empty the form fields
|
|
1221
|
-
if (
|
|
1221
|
+
if (lodashEs.isEmpty(fields)) {
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
1224
|
if (this.onBeforeRenderEvt) {
|
|
@@ -1227,7 +1227,7 @@
|
|
|
1227
1227
|
fields = userFields;
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
if (!
|
|
1230
|
+
if (!lodashEs.isArray(fields)) {
|
|
1231
1231
|
return;
|
|
1232
1232
|
}
|
|
1233
1233
|
while (fields[colCount]) {
|
|
@@ -1313,12 +1313,12 @@
|
|
|
1313
1313
|
}
|
|
1314
1314
|
ngOnDestroy() {
|
|
1315
1315
|
// on form destroy, removing this form from the parentForm too.
|
|
1316
|
-
const controls = this.parentForm &&
|
|
1316
|
+
const controls = this.parentForm && lodashEs.get(this.parentForm, 'ngform.controls');
|
|
1317
1317
|
if (controls) {
|
|
1318
1318
|
// when current form is inside the list (i.e. incase of formArray).
|
|
1319
|
-
if (
|
|
1319
|
+
if (lodashEs.get(this.parentList, 'name') && controls.hasOwnProperty(this.parentList.name)) {
|
|
1320
1320
|
//get the index of current form in the list and remove the FormControl from FormArray
|
|
1321
|
-
const index =
|
|
1321
|
+
const index = lodashEs.findIndex(this.parentList.getWidgets(this.name), { widgetId: this.widgetId });
|
|
1322
1322
|
this.parentForm.ngform.controls[this.parentList.name].removeAt(index);
|
|
1323
1323
|
}
|
|
1324
1324
|
// when we have formGroupName set i.e. multiple formInstance with counter appended to formName
|
|
@@ -1437,7 +1437,7 @@
|
|
|
1437
1437
|
type: i0.HostListener,
|
|
1438
1438
|
args: ['keydown', ['$event']]
|
|
1439
1439
|
}] }); })();
|
|
1440
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(FormComponent, { className: "FormComponent", filePath: "form.component.ts", lineNumber:
|
|
1440
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(FormComponent, { className: "FormComponent", filePath: "form.component.ts", lineNumber: 159 }); })();
|
|
1441
1441
|
|
|
1442
1442
|
class FormWidgetDirective {
|
|
1443
1443
|
constructor(form, table, componentInstance, fb, name, key) {
|
|
@@ -1545,7 +1545,7 @@
|
|
|
1545
1545
|
show: this.show,
|
|
1546
1546
|
class: this.class ? this.class : (this['widget-type'] === 'button' ? 'btn-secondary' : ''),
|
|
1547
1547
|
iconclass: this.iconclass || '',
|
|
1548
|
-
title:
|
|
1548
|
+
title: lodashEs.isUndefined(this.title) ? (this['display-name'] || '') : this.title,
|
|
1549
1549
|
action: this.action,
|
|
1550
1550
|
accessroles: this.accessroles,
|
|
1551
1551
|
shortcutkey: this.shortcutkey,
|
|
@@ -1760,10 +1760,10 @@
|
|
|
1760
1760
|
const value = this.value;
|
|
1761
1761
|
const displayField = this.displayfield || this.displaylabel;
|
|
1762
1762
|
const displayExpr = this.displayexpression;
|
|
1763
|
-
if (
|
|
1764
|
-
if (
|
|
1765
|
-
|
|
1766
|
-
if (
|
|
1763
|
+
if (lodashEs.isObject(value)) {
|
|
1764
|
+
if (lodashEs.isArray(value)) {
|
|
1765
|
+
lodashEs.forEach(value, obj => {
|
|
1766
|
+
if (lodashEs.isObject(obj)) {
|
|
1767
1767
|
caption.push(this.evaluateExpr(obj, displayField, displayExpr));
|
|
1768
1768
|
}
|
|
1769
1769
|
});
|
|
@@ -1771,16 +1771,16 @@
|
|
|
1771
1771
|
else {
|
|
1772
1772
|
caption.push(this.evaluateExpr(value, displayField, displayExpr));
|
|
1773
1773
|
}
|
|
1774
|
-
return
|
|
1774
|
+
return lodashEs.join(caption, ',');
|
|
1775
1775
|
}
|
|
1776
1776
|
return (value === undefined || value === null) ? '' : this.value;
|
|
1777
1777
|
}
|
|
1778
1778
|
getCaption() {
|
|
1779
|
-
return (this.value === undefined || this.value === null) ? (
|
|
1779
|
+
return (this.value === undefined || this.value === null) ? (lodashEs.get(this.form.dataoutput, this._fieldName) || '') : this.value;
|
|
1780
1780
|
}
|
|
1781
1781
|
// Notifies changes to observing validation fields
|
|
1782
1782
|
notifyChanges() {
|
|
1783
|
-
|
|
1783
|
+
lodashEs.forEach(this.notifyForFields, field => {
|
|
1784
1784
|
field.fieldValidations.validate();
|
|
1785
1785
|
});
|
|
1786
1786
|
}
|
|
@@ -2048,7 +2048,7 @@
|
|
|
2048
2048
|
.subscribe(this.onValueChange.bind(this));
|
|
2049
2049
|
this.registerDestroyListener(() => onMaxValueChangeSubscription.unsubscribe());
|
|
2050
2050
|
}
|
|
2051
|
-
this.value =
|
|
2051
|
+
this.value = lodashEs.get(this.form.formdata, this._fieldName);
|
|
2052
2052
|
}
|
|
2053
2053
|
ngOnInit() {
|
|
2054
2054
|
this.ngform = this.form.ngform;
|
|
@@ -2824,7 +2824,7 @@
|
|
|
2824
2824
|
// Calls the filter function if default values are present
|
|
2825
2825
|
filterOnDefault() {
|
|
2826
2826
|
/*Check if default value is present for any filter field*/
|
|
2827
|
-
const defaultObj =
|
|
2827
|
+
const defaultObj = lodashEs.find(this.form.formFields, obj => {
|
|
2828
2828
|
return i1$1.isDefined(obj.value) || i1$1.isDefined(obj.minValue) || i1$1.isDefined(obj.maxValue);
|
|
2829
2829
|
});
|
|
2830
2830
|
/*If default value exists and data is loaded, apply the filter*/
|
|
@@ -2935,7 +2935,7 @@
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
onDataSourceChange() {
|
|
2938
|
-
if (
|
|
2938
|
+
if (lodashEs.get(this.form.formFields, 'length')) {
|
|
2939
2939
|
this.form.isDataSourceUpdated = true;
|
|
2940
2940
|
}
|
|
2941
2941
|
const formFields = this.form.getFormFields();
|
|
@@ -2990,14 +2990,14 @@
|
|
|
2990
2990
|
}
|
|
2991
2991
|
formFields = formFields || this.form.formFields;
|
|
2992
2992
|
formFields.forEach(field => {
|
|
2993
|
-
const value =
|
|
2993
|
+
const value = lodashEs.get(dataObj, field.key || field.name);
|
|
2994
2994
|
if (isTimeType(field)) {
|
|
2995
2995
|
field.value = getValidTime(value);
|
|
2996
2996
|
}
|
|
2997
2997
|
else if (field.type === i1$1.DataType.BLOB) {
|
|
2998
2998
|
this.form.resetFileUploadWidget(field, true);
|
|
2999
2999
|
field.href = this.getBlobURL(dataObj, field.key, value);
|
|
3000
|
-
field.value =
|
|
3000
|
+
field.value = lodashEs.isString(value) ? '' : value;
|
|
3001
3001
|
}
|
|
3002
3002
|
else {
|
|
3003
3003
|
this.form.setFieldValue(field, dataObj);
|
|
@@ -3049,7 +3049,7 @@
|
|
|
3049
3049
|
formFields = isPreviousData ? this.form.prevformFields : this.form.getFormFields();
|
|
3050
3050
|
formFields.forEach(field => {
|
|
3051
3051
|
let dateTime, fieldValue;
|
|
3052
|
-
const fieldTarget =
|
|
3052
|
+
const fieldTarget = lodashEs.split(field.key, '.');
|
|
3053
3053
|
const fieldName = fieldTarget[0] || field.key;
|
|
3054
3054
|
/*collect the values from the fields and construct the object*/
|
|
3055
3055
|
/*Format the output of date time widgets to the given output format*/
|
|
@@ -3110,7 +3110,7 @@
|
|
|
3110
3110
|
/*If OperationType is not set then based on the formdata object return the operation type,
|
|
3111
3111
|
this case occurs only if the form is outside a livegrid*/
|
|
3112
3112
|
/*If the formdata object has primary key value then return update else insert*/
|
|
3113
|
-
if (this.form.primaryKey && !
|
|
3113
|
+
if (this.form.primaryKey && !lodashEs.isEmpty(this.form.formdata)) {
|
|
3114
3114
|
/*If only one column is primary key*/
|
|
3115
3115
|
if (this.form.primaryKey.length === 1) {
|
|
3116
3116
|
if (this.form.formdata[this.form.primaryKey[0]]) {
|
|
@@ -3119,7 +3119,7 @@
|
|
|
3119
3119
|
/*If only no column is primary key*/
|
|
3120
3120
|
}
|
|
3121
3121
|
else if (this.form.primaryKey.length === 0) {
|
|
3122
|
-
|
|
3122
|
+
lodashEs.forEach(this.form.formdata, (value) => {
|
|
3123
3123
|
if (value) {
|
|
3124
3124
|
isPrimary = true;
|
|
3125
3125
|
}
|
|
@@ -3130,7 +3130,7 @@
|
|
|
3130
3130
|
/*If multiple columns are primary key*/
|
|
3131
3131
|
}
|
|
3132
3132
|
else {
|
|
3133
|
-
isPrimary =
|
|
3133
|
+
isPrimary = lodashEs.some(this.form.primaryKey, (primaryKey) => {
|
|
3134
3134
|
if (this.form.formdata[primaryKey]) {
|
|
3135
3135
|
return true;
|
|
3136
3136
|
}
|
|
@@ -3143,7 +3143,7 @@
|
|
|
3143
3143
|
return operation || i5.Live_Operations.INSERT;
|
|
3144
3144
|
}
|
|
3145
3145
|
getPrevDataValues() {
|
|
3146
|
-
const prevDataValues =
|
|
3146
|
+
const prevDataValues = lodashEs.fromPairs(lodashEs.map(this.form.prevDataValues, (item) => {
|
|
3147
3147
|
return [item.key, item.value];
|
|
3148
3148
|
})); // Convert of array of values to an object
|
|
3149
3149
|
this.form.formFields.forEach(field => {
|
|
@@ -3253,7 +3253,7 @@
|
|
|
3253
3253
|
}
|
|
3254
3254
|
// If operation is update, form is not touched and current data and previous data is same, Show no changes detected message
|
|
3255
3255
|
if (this.form.operationType === i5.Live_Operations.UPDATE && this.form.ngform && this.form.ngform.pristine &&
|
|
3256
|
-
(this.form.isSelected &&
|
|
3256
|
+
(this.form.isSelected && lodashEs.isEqual(data, prevData))) {
|
|
3257
3257
|
this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
|
|
3258
3258
|
i1$1.$appDigest();
|
|
3259
3259
|
return;
|
|
@@ -2,6 +2,7 @@ import { Directive, Inject, Injector, Optional } from '@angular/core';
|
|
|
2
2
|
import { BaseComponent, provideAsWidgetRef } from '@wm/components/base';
|
|
3
3
|
import { registerProps } from './form-action.props';
|
|
4
4
|
import { FormComponent } from '../form.component';
|
|
5
|
+
import { isUndefined } from "lodash-es";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
import * as i1 from "../form.component";
|
|
7
8
|
const WIDGET_CONFIG = { widgetType: 'wm-form-action', hostClass: '' };
|
|
@@ -18,7 +19,7 @@ export class FormActionDirective extends BaseComponent {
|
|
|
18
19
|
show: this.show,
|
|
19
20
|
class: this.class ? this.class : (this['widget-type'] === 'button' ? 'btn-secondary' : ''),
|
|
20
21
|
iconclass: this.iconclass || '',
|
|
21
|
-
title:
|
|
22
|
+
title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,
|
|
22
23
|
action: this.action,
|
|
23
24
|
accessroles: this.accessroles,
|
|
24
25
|
shortcutkey: this.shortcutkey,
|
|
@@ -72,4 +73,4 @@ export class FormActionDirective extends BaseComponent {
|
|
|
72
73
|
}, {
|
|
73
74
|
type: Optional
|
|
74
75
|
}] }], null); })();
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1hY3Rpb24uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29tcG9uZW50cy93aWRnZXRzL2RhdGEvZm9ybS9zcmMvZm9ybS1hY3Rpb24vZm9ybS1hY3Rpb24uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBVSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFNUUsT0FBTyxFQUFFLGFBQWEsRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBRXhFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNwRCxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbEQsT0FBTyxFQUFDLFdBQVcsRUFBQyxNQUFNLFdBQVcsQ0FBQzs7O0FBRXRDLE1BQU0sYUFBYSxHQUFHLEVBQUMsVUFBVSxFQUFFLGdCQUFnQixFQUFFLFNBQVMs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lZik7XG4gICAgfVxuXG4gICAgb25Qcm9wZXJ0eUNoYW5nZShrZXksIG52LCBvdikge1xuICAgICAgICBpZiAoIXRoaXMuX3Byb3BzSW5pdGlhbGl6ZWQpIHtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICBzd2l0Y2ggKGtleSkge1xuICAgICAgICAgICAgY2FzZSAnZGlzcGxheS1uYW1lJzpcbiAgICAgICAgICAgICAgICB0aGlzLmJ1dHRvbkRlZi5kaXNwbGF5TmFtZSA9IG52O1xuICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICB0aGlzLmJ1dHRvbkRlZltrZXldID0gbnY7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ==
|