@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/compiler'), require('rxjs'), require('@angular/core'), require('@angular/common/http')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', 'rxjs', '@angular/core', '@angular/common/http'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.core = {}), global.ng.compiler, global.rxjs, global.ng.core, global.ng.common.http));
|
|
5
|
-
})(this, (function (exports, compiler, rxjs, i0, i1) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/compiler'), require('lodash-es'), require('rxjs'), require('@angular/core'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/compiler', 'lodash-es', 'rxjs', '@angular/core', '@angular/common/http'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.core = {}), global.ng.compiler, global._, global.rxjs, global.ng.core, global.ng.common.http));
|
|
5
|
+
})(this, (function (exports, compiler, lodashEs, rxjs, i0, i1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
currentItemWidgetsRegEx = new RegExp(`(Widgets.${widgetName}.currentItemWidgets)\\b`, 'g');
|
|
270
270
|
formWidgetsRegex = new RegExp(`(Widgets.(.*).(formWidgets|filterWidgets))\\b`, 'g');
|
|
271
271
|
}
|
|
272
|
-
if (!
|
|
272
|
+
if (!lodashEs.isArray(rootNode)) {
|
|
273
273
|
// [WMS-16712],[WMS-16769],[WMS-16805] The markup of root node(table, list, carousel) need to be updated only for the widgets mentioned in widgetList map.
|
|
274
274
|
nodes = widgetList[rootNode.name] ? [rootNode] : (rootNode.children || []);
|
|
275
275
|
}
|
|
@@ -283,12 +283,12 @@
|
|
|
283
283
|
childNode.attrs.forEach((attr) => {
|
|
284
284
|
// trim the extra spaces in bindings
|
|
285
285
|
let value = attr.value && attr.value.trim();
|
|
286
|
-
if (
|
|
286
|
+
if (lodashEs.startsWith(value, 'bind:')) {
|
|
287
287
|
// The markup of root node(table, list, carousel) attributes conatains same dataset variable binding then those attributes need to be updated only for specific properties mentioned in widgetList map.
|
|
288
288
|
if (!widgetList[nodeName] || (widgetList[nodeName] && widgetList[nodeName].indexOf(attr.name) > -1)) {
|
|
289
289
|
// if the attribute value is "bind:xxxxx.xxxx", either the dataSet/scopeDataSet has to contain "xxxx.xxxx"
|
|
290
290
|
// [WMS-17908]: if child widget contains bind expression as parendataset.length > 0 then dont replace it with item
|
|
291
|
-
if (
|
|
291
|
+
if (lodashEs.includes(value, parentDataSet) && value !== 'bind:' + parentDataSet && !parentDataSetLengthRegex.test(value)) {
|
|
292
292
|
value = value.replace('bind:', '');
|
|
293
293
|
addDatasetBoundExprAttribute(childNode, attr, value);
|
|
294
294
|
value = value.replace(regex, referenceName);
|
|
@@ -1982,7 +1982,7 @@
|
|
|
1982
1982
|
// handle internal bindings for wm widgets used inside a component
|
|
1983
1983
|
let _ctx = Object.assign({}, locals);
|
|
1984
1984
|
Object.setPrototypeOf(_ctx, ctx);
|
|
1985
|
-
return
|
|
1985
|
+
return lodashEs.get(_ctx, expr);
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
1988
|
else {
|
|
@@ -2039,14 +2039,14 @@
|
|
|
2039
2039
|
Object.setPrototypeOf(_ctx, ctx);
|
|
2040
2040
|
let parts = expr.split('(');
|
|
2041
2041
|
let fnName = parts[0];
|
|
2042
|
-
let computedFn =
|
|
2042
|
+
let computedFn = lodashEs.get(ctx, fnName);
|
|
2043
2043
|
if (computedFn) {
|
|
2044
2044
|
let args = parts[1].replace(')', '');
|
|
2045
2045
|
args = args.split(',');
|
|
2046
2046
|
let computedArgs = [];
|
|
2047
2047
|
args.forEach((arg) => {
|
|
2048
2048
|
arg = arg && arg.trim();
|
|
2049
|
-
computedArgs.push(
|
|
2049
|
+
computedArgs.push(lodashEs.get(_ctx, arg));
|
|
2050
2050
|
});
|
|
2051
2051
|
return computedFn.bind(_ctx)(...computedArgs);
|
|
2052
2052
|
}
|
|
@@ -2165,13 +2165,13 @@
|
|
|
2165
2165
|
};
|
|
2166
2166
|
const arrayConsumer = (listenerFn, restExpr, newVal, oldVal) => {
|
|
2167
2167
|
let data = newVal, formattedData;
|
|
2168
|
-
if (
|
|
2168
|
+
if (lodashEs.isArray(data)) {
|
|
2169
2169
|
formattedData = data.map(function (datum) {
|
|
2170
2170
|
return findValueOf(datum, restExpr);
|
|
2171
2171
|
});
|
|
2172
2172
|
// If resulting structure is an array of array, flatten it
|
|
2173
|
-
if (
|
|
2174
|
-
formattedData =
|
|
2173
|
+
if (lodashEs.isArray(formattedData[0])) {
|
|
2174
|
+
formattedData = lodashEs.flatten(formattedData);
|
|
2175
2175
|
}
|
|
2176
2176
|
listenerFn(formattedData, oldVal);
|
|
2177
2177
|
}
|
|
@@ -2241,12 +2241,13 @@
|
|
|
2241
2241
|
catch (e) {
|
|
2242
2242
|
console.warn(`error in executing expression: '${watchInfo.expr}'`);
|
|
2243
2243
|
}
|
|
2244
|
-
if (!
|
|
2244
|
+
if (!lodashEs.isEqual(nv, ov)) {
|
|
2245
2245
|
changeDetected = true;
|
|
2246
2246
|
changedByWatch = true;
|
|
2247
2247
|
watchInfo.last = nv;
|
|
2248
|
-
|
|
2249
|
-
|
|
2248
|
+
// @ts-ignore
|
|
2249
|
+
if (lodashEs.isObject(nv) && !watchInfo.doNotClone && nv.__cloneable__ !== false) {
|
|
2250
|
+
watchInfo.last = lodashEs.clone(nv);
|
|
2250
2251
|
}
|
|
2251
2252
|
listener(nv, ov);
|
|
2252
2253
|
resetChangeFromWatch();
|
|
@@ -2491,9 +2492,9 @@
|
|
|
2491
2492
|
queryParams = queryParamsString.split('&');
|
|
2492
2493
|
queryParams.forEach(function (param) {
|
|
2493
2494
|
let decodedParamValue;
|
|
2494
|
-
const i =
|
|
2495
|
+
const i = lodashEs.includes(param, '=') ? param.indexOf('=') : (param && param.length), paramName = param.substr(0, i), paramValue = param.substr(i + 1);
|
|
2495
2496
|
// add the = for param name only when the param value exists in the given param or empty value is assigned
|
|
2496
|
-
if (paramValue ||
|
|
2497
|
+
if (paramValue || lodashEs.includes(param, '=')) {
|
|
2497
2498
|
try {
|
|
2498
2499
|
decodedParamValue = decodeURIComponent(paramValue);
|
|
2499
2500
|
}
|
|
@@ -2541,7 +2542,7 @@
|
|
|
2541
2542
|
return name;
|
|
2542
2543
|
};
|
|
2543
2544
|
const prettifyLabel = label => {
|
|
2544
|
-
label =
|
|
2545
|
+
label = lodashEs.camelCase(label);
|
|
2545
2546
|
/*capitalize the initial Letter*/
|
|
2546
2547
|
label = initCaps(label);
|
|
2547
2548
|
/*Convert camel case words to separated words*/
|
|
@@ -2556,11 +2557,11 @@
|
|
|
2556
2557
|
/*Accepts an array or a string separated with symbol and returns prettified result*/
|
|
2557
2558
|
const prettifyLabels = (names, separator = ',') => {
|
|
2558
2559
|
let modifiedNames, namesArray = [];
|
|
2559
|
-
if (!
|
|
2560
|
-
namesArray =
|
|
2560
|
+
if (!lodashEs.isArray(names)) {
|
|
2561
|
+
namesArray = lodashEs.split(names, separator);
|
|
2561
2562
|
}
|
|
2562
|
-
modifiedNames =
|
|
2563
|
-
if (
|
|
2563
|
+
modifiedNames = lodashEs.map(namesArray, prettifyLabel);
|
|
2564
|
+
if (lodashEs.isArray(names)) {
|
|
2564
2565
|
return modifiedNames;
|
|
2565
2566
|
}
|
|
2566
2567
|
return modifiedNames.join(separator);
|
|
@@ -2601,7 +2602,7 @@
|
|
|
2601
2602
|
* $eval is used, as expression can be in format of field1 + ' ' + field2
|
|
2602
2603
|
* $eval can fail, if expression is not in correct format, so attempt the eval function
|
|
2603
2604
|
*/
|
|
2604
|
-
val =
|
|
2605
|
+
val = lodashEs.attempt(function () {
|
|
2605
2606
|
const argsExpr = Object.keys(object).map((fieldName) => {
|
|
2606
2607
|
return `var ${fieldName} = data['${fieldName}'];`;
|
|
2607
2608
|
}).join(' ');
|
|
@@ -2612,8 +2613,8 @@
|
|
|
2612
2613
|
* $eval fails if field expression has spaces. Ex: 'field name' or 'field@name'
|
|
2613
2614
|
* As a fallback, get value directly from object or scope
|
|
2614
2615
|
*/
|
|
2615
|
-
if (
|
|
2616
|
-
val =
|
|
2616
|
+
if (lodashEs.isError(val)) {
|
|
2617
|
+
val = lodashEs.get(object, expression);
|
|
2617
2618
|
}
|
|
2618
2619
|
return val;
|
|
2619
2620
|
};
|
|
@@ -2644,7 +2645,7 @@
|
|
|
2644
2645
|
for (start; start < len; start++) {
|
|
2645
2646
|
args[start - 1] = arguments[start];
|
|
2646
2647
|
}
|
|
2647
|
-
if (
|
|
2648
|
+
if (lodashEs.isFunction(fn)) {
|
|
2648
2649
|
return fn.apply(null, args);
|
|
2649
2650
|
}
|
|
2650
2651
|
}
|
|
@@ -2691,12 +2692,12 @@
|
|
|
2691
2692
|
// Handling localization
|
|
2692
2693
|
if (options && options.pattern && options.pattern !== 'timestamp') {
|
|
2693
2694
|
// Fix for WMS-19601, invalid date is returned on date selection.
|
|
2694
|
-
const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ?
|
|
2695
|
+
const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ? lodashEs.get(options, 'isNativePicker') : isMobile();
|
|
2695
2696
|
const pattern = isNativePicker ? 'YYYY/MM/DD HH:mm:ss' : momentPattern(options.pattern);
|
|
2696
2697
|
value = moment(value, pattern).toDate();
|
|
2697
2698
|
}
|
|
2698
2699
|
/*if the value is a date object, no need to covert it*/
|
|
2699
|
-
if (
|
|
2700
|
+
if (lodashEs.isDate(value)) {
|
|
2700
2701
|
return value;
|
|
2701
2702
|
}
|
|
2702
2703
|
/*if the value is a timestamp string, convert it to a number*/
|
|
@@ -2713,7 +2714,7 @@
|
|
|
2713
2714
|
* This is because it returns UTC time i.e. Coordinated Universal Time (UTC).
|
|
2714
2715
|
* To create date in local time use moment
|
|
2715
2716
|
*/
|
|
2716
|
-
if (
|
|
2717
|
+
if (lodashEs.isString(value)) {
|
|
2717
2718
|
/*
|
|
2718
2719
|
* If selected locale is Arabic, moment(value).format() is giving date in Arabic language
|
|
2719
2720
|
* (Ex: If date value is "1990-11-23" and moment(value).format() is "١٩٩٠-١١-٢٣T٠٠:٠٠:٠٠+٠٥:٣٠")
|
|
@@ -2756,11 +2757,11 @@
|
|
|
2756
2757
|
* @returns a clone of the passed object
|
|
2757
2758
|
*/
|
|
2758
2759
|
const getClonedObject = (object) => {
|
|
2759
|
-
return
|
|
2760
|
+
return lodashEs.cloneDeep(object);
|
|
2760
2761
|
};
|
|
2761
2762
|
const getFiles = (formName, fieldName, isList) => {
|
|
2762
|
-
const files =
|
|
2763
|
-
return isList ?
|
|
2763
|
+
const files = lodashEs.get(document.forms, [formName, fieldName, 'files']);
|
|
2764
|
+
return isList ? lodashEs.map(files, lodashEs.identity) : files && files[0];
|
|
2764
2765
|
};
|
|
2765
2766
|
/*Function to generate a random number*/
|
|
2766
2767
|
function random() {
|
|
@@ -2777,7 +2778,7 @@
|
|
|
2777
2778
|
let roles;
|
|
2778
2779
|
if (roleExp && loggedInUser) {
|
|
2779
2780
|
roles = roleExp && roleExp.split(',').map(Function.prototype.call, String.prototype.trim);
|
|
2780
|
-
return
|
|
2781
|
+
return lodashEs.intersection(roles, loggedInUser.userRoles).length;
|
|
2781
2782
|
}
|
|
2782
2783
|
return true;
|
|
2783
2784
|
};
|
|
@@ -2799,7 +2800,7 @@
|
|
|
2799
2800
|
const x2jsObj = new X2JS({ 'emptyNodeForm': 'content', 'attributePrefix': '', 'enableToStringFunc': false });
|
|
2800
2801
|
let json = x2jsObj.xml2js(xmlString);
|
|
2801
2802
|
if (json) {
|
|
2802
|
-
json =
|
|
2803
|
+
json = lodashEs.get(json, Object.keys(json)[0]);
|
|
2803
2804
|
}
|
|
2804
2805
|
return json;
|
|
2805
2806
|
};
|
|
@@ -2833,7 +2834,7 @@
|
|
|
2833
2834
|
return;
|
|
2834
2835
|
}
|
|
2835
2836
|
if (!create) {
|
|
2836
|
-
return
|
|
2837
|
+
return lodashEs.get(obj, key);
|
|
2837
2838
|
}
|
|
2838
2839
|
const parts = key.split('.'), keys = [];
|
|
2839
2840
|
let skipProcessing;
|
|
@@ -2886,7 +2887,7 @@
|
|
|
2886
2887
|
};
|
|
2887
2888
|
/* function to check if provided object is empty*/
|
|
2888
2889
|
const isEmptyObject = (obj) => {
|
|
2889
|
-
if (isObject(obj) && !
|
|
2890
|
+
if (isObject(obj) && !lodashEs.isArray(obj)) {
|
|
2890
2891
|
return Object.keys(obj).length === 0;
|
|
2891
2892
|
}
|
|
2892
2893
|
return false;
|
|
@@ -2897,7 +2898,7 @@
|
|
|
2897
2898
|
const formPosition = $element.offset().top;
|
|
2898
2899
|
const $scrollParent = $element.closest('[wmsmoothscroll="true"]');
|
|
2899
2900
|
if (isMobileApp() && $scrollParent.length) {
|
|
2900
|
-
const iScroll =
|
|
2901
|
+
const iScroll = lodashEs.get($scrollParent[0], 'iscroll');
|
|
2901
2902
|
let to = -(formPosition - iScroll.y);
|
|
2902
2903
|
to = (iScroll.maxScrollY > to) ? iScroll.maxScrollY : to;
|
|
2903
2904
|
iScroll.scrollTo(0, to);
|
|
@@ -2932,8 +2933,8 @@
|
|
|
2932
2933
|
'totalPages': 1
|
|
2933
2934
|
};
|
|
2934
2935
|
// paginated object may or may not contain 'empty' property. In either case, Pageable should return as true.
|
|
2935
|
-
const paginatedObj =
|
|
2936
|
-
return (
|
|
2936
|
+
const paginatedObj = lodashEs.omit(obj, 'empty');
|
|
2937
|
+
return (lodashEs.isEqual(lodashEs.keys(pageable), lodashEs.keys(paginatedObj).sort()));
|
|
2937
2938
|
};
|
|
2938
2939
|
/*
|
|
2939
2940
|
* Util method to replace patterns in string with object keys or array values
|
|
@@ -2952,36 +2953,36 @@
|
|
|
2952
2953
|
regEx = /\{([^\}]+)\}/g;
|
|
2953
2954
|
}
|
|
2954
2955
|
return template.replace(regEx, function (match, key) {
|
|
2955
|
-
return
|
|
2956
|
+
return lodashEs.get(map, key);
|
|
2956
2957
|
});
|
|
2957
2958
|
};
|
|
2958
2959
|
/*Function to check if date time type*/
|
|
2959
2960
|
const isDateTimeType = type => {
|
|
2960
|
-
if (
|
|
2961
|
-
type =
|
|
2961
|
+
if (lodashEs.includes(type, '.')) {
|
|
2962
|
+
type = lodashEs.toLower(extractType(type));
|
|
2962
2963
|
}
|
|
2963
|
-
return
|
|
2964
|
+
return lodashEs.includes([exports.DataType.DATE, exports.DataType.TIME, exports.DataType.TIMESTAMP, exports.DataType.DATETIME, exports.DataType.LOCALDATETIME], type);
|
|
2964
2965
|
};
|
|
2965
2966
|
const momentPattern = (pattern) => {
|
|
2966
|
-
if (
|
|
2967
|
-
pattern =
|
|
2967
|
+
if (lodashEs.includes(pattern, 'E')) {
|
|
2968
|
+
pattern = lodashEs.replace(pattern, /E[,]?/g, '');
|
|
2968
2969
|
}
|
|
2969
|
-
return
|
|
2970
|
+
return lodashEs.replace(pattern, /y*d*/g, (val) => val.toUpperCase());
|
|
2970
2971
|
};
|
|
2971
2972
|
/* This function returns date object. If val is undefined it returns invalid date */
|
|
2972
2973
|
const getValidDateObject = (val, options) => {
|
|
2973
2974
|
const defaultMeridian = ['AM', 'PM'];
|
|
2974
2975
|
const momentMeridian = moment()._locale.meridiem();
|
|
2975
2976
|
// Updating localized meridians with default meridians when moment meridian is not defined
|
|
2976
|
-
if (options && options.meridians &&
|
|
2977
|
-
|
|
2978
|
-
if (
|
|
2977
|
+
if (options && options.meridians && lodashEs.includes(defaultMeridian, momentMeridian)) {
|
|
2978
|
+
lodashEs.forEach(options.meridians, (meridian, index) => {
|
|
2979
|
+
if (lodashEs.includes(val, meridian)) {
|
|
2979
2980
|
val = val.replace(meridian, defaultMeridian[index]);
|
|
2980
2981
|
}
|
|
2981
2982
|
});
|
|
2982
2983
|
}
|
|
2983
|
-
const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ?
|
|
2984
|
-
const pattern = isNativePicker ? (
|
|
2984
|
+
const isNativePicker = (options && options.hasOwnProperty('isNativePicker')) ? lodashEs.get(options, 'isNativePicker') : isMobile();
|
|
2985
|
+
const pattern = isNativePicker ? (lodashEs.get(options, 'pattern') || 'YYYY/MM/DD HH:mm:ss') : (momentPattern(lodashEs.get(options, 'pattern')) || '');
|
|
2985
2986
|
// Handling localization
|
|
2986
2987
|
if (options && options.pattern && options.pattern !== 'timestamp') {
|
|
2987
2988
|
if (!isNaN((new Date(val)).getTime())) {
|
|
@@ -3052,21 +3053,21 @@
|
|
|
3052
3053
|
const isEqualWithFields = (obj1, obj2, compareBy) => {
|
|
3053
3054
|
// compareBy can be 'id' or 'id1, id2' or 'id1, id2:id3'
|
|
3054
3055
|
// Split the compareby comma separated values
|
|
3055
|
-
let _compareBy =
|
|
3056
|
-
_compareBy =
|
|
3057
|
-
return
|
|
3058
|
-
return
|
|
3056
|
+
let _compareBy = lodashEs.isArray(compareBy) ? compareBy : lodashEs.split(compareBy, ',');
|
|
3057
|
+
_compareBy = lodashEs.map(_compareBy, lodashEs.trim);
|
|
3058
|
+
return lodashEs.isEqualWith(obj1, obj2, function (o1, o2) {
|
|
3059
|
+
return lodashEs.every(_compareBy, function (cb) {
|
|
3059
3060
|
let cb1, cb2, _cb;
|
|
3060
3061
|
// If compareby contains : , compare the values by the keys on either side of :
|
|
3061
|
-
if (
|
|
3062
|
-
cb1 = cb2 =
|
|
3062
|
+
if (lodashEs.indexOf(cb, compareBySeparator) === -1) {
|
|
3063
|
+
cb1 = cb2 = lodashEs.trim(cb);
|
|
3063
3064
|
}
|
|
3064
3065
|
else {
|
|
3065
|
-
_cb =
|
|
3066
|
-
cb1 =
|
|
3067
|
-
cb2 =
|
|
3066
|
+
_cb = lodashEs.split(cb, compareBySeparator);
|
|
3067
|
+
cb1 = lodashEs.trim(_cb[0]);
|
|
3068
|
+
cb2 = lodashEs.trim(_cb[1]);
|
|
3068
3069
|
}
|
|
3069
|
-
return
|
|
3070
|
+
return lodashEs.get(o1, cb1) === lodashEs.get(o2, cb2);
|
|
3070
3071
|
});
|
|
3071
3072
|
});
|
|
3072
3073
|
};
|
|
@@ -3185,10 +3186,6 @@
|
|
|
3185
3186
|
}
|
|
3186
3187
|
};
|
|
3187
3188
|
const noop = (...args) => { };
|
|
3188
|
-
const isArray = v => _.isArray(v);
|
|
3189
|
-
const isString = v => typeof v === 'string';
|
|
3190
|
-
const isNumber = v => typeof v === 'number';
|
|
3191
|
-
const isBoolean = v => typeof v === 'boolean';
|
|
3192
3189
|
/**
|
|
3193
3190
|
* This function returns a blob object from the given file path
|
|
3194
3191
|
* @param filepath
|
|
@@ -3220,7 +3217,7 @@
|
|
|
3220
3217
|
INT_MAX_VALUE: 2147483647
|
|
3221
3218
|
};
|
|
3222
3219
|
const openLink = (link, target = '_self') => {
|
|
3223
|
-
if (hasCordova() &&
|
|
3220
|
+
if (hasCordova() && lodashEs.startsWith(link, '#')) {
|
|
3224
3221
|
location.hash = link;
|
|
3225
3222
|
}
|
|
3226
3223
|
else {
|
|
@@ -3263,12 +3260,12 @@
|
|
|
3263
3260
|
let retryCount = 0;
|
|
3264
3261
|
const tryFn = () => {
|
|
3265
3262
|
retryCount++;
|
|
3266
|
-
if (
|
|
3263
|
+
if (lodashEs.isFunction(fn)) {
|
|
3267
3264
|
return fn();
|
|
3268
3265
|
}
|
|
3269
3266
|
};
|
|
3270
|
-
maxRetries = (
|
|
3271
|
-
interval = (
|
|
3267
|
+
maxRetries = (lodashEs.isNumber(maxRetries) && maxRetries > 0 ? maxRetries : 0);
|
|
3268
|
+
interval = (lodashEs.isNumber(interval) && interval > 0 ? interval : 0);
|
|
3272
3269
|
return new Promise((resolve, reject) => {
|
|
3273
3270
|
const errorFn = function () {
|
|
3274
3271
|
const errArgs = arguments;
|
|
@@ -3318,10 +3315,10 @@
|
|
|
3318
3315
|
// If url params are present, construct params object and pass it to search
|
|
3319
3316
|
const index = link.indexOf('?');
|
|
3320
3317
|
if (index !== -1) {
|
|
3321
|
-
const queryParams =
|
|
3318
|
+
const queryParams = lodashEs.split(link.substring(index + 1, link.length), '&');
|
|
3322
3319
|
queryParams.forEach((param) => {
|
|
3323
|
-
|
|
3324
|
-
params[
|
|
3320
|
+
let paramArray = lodashEs.split(param, '=');
|
|
3321
|
+
params[paramArray[0]] = paramArray[1];
|
|
3325
3322
|
});
|
|
3326
3323
|
}
|
|
3327
3324
|
return params;
|
|
@@ -3355,8 +3352,8 @@
|
|
|
3355
3352
|
d = d || defer();
|
|
3356
3353
|
i = i || 0;
|
|
3357
3354
|
if (i === 0) {
|
|
3358
|
-
fns =
|
|
3359
|
-
return !(
|
|
3355
|
+
fns = lodashEs.filter(fns, function (fn) {
|
|
3356
|
+
return !(lodashEs.isUndefined(fn) || lodashEs.isNull(fn));
|
|
3360
3357
|
});
|
|
3361
3358
|
}
|
|
3362
3359
|
if (fns && i < fns.length) {
|
|
@@ -3380,7 +3377,7 @@
|
|
|
3380
3377
|
*/
|
|
3381
3378
|
const isDataSourceEqual = (d1, d2) => {
|
|
3382
3379
|
return d1.execute(DataSource.Operation.GET_UNIQUE_IDENTIFIER) === d2.execute(DataSource.Operation.GET_UNIQUE_IDENTIFIER) &&
|
|
3383
|
-
|
|
3380
|
+
lodashEs.isEqual(d1.execute(DataSource.Operation.GET_CONTEXT_IDENTIFIER), d2.execute(DataSource.Operation.GET_CONTEXT_IDENTIFIER));
|
|
3384
3381
|
};
|
|
3385
3382
|
/**
|
|
3386
3383
|
* checks if the passed datasource context matches with passed context
|
|
@@ -3398,15 +3395,15 @@
|
|
|
3398
3395
|
* @param context scope of the variable
|
|
3399
3396
|
*/
|
|
3400
3397
|
const processFilterExpBindNode = (context, filterExpressions, variable) => {
|
|
3401
|
-
const destroyFn = context.registerDestroyListener ? context.registerDestroyListener.bind(context) :
|
|
3398
|
+
const destroyFn = context.registerDestroyListener ? context.registerDestroyListener.bind(context) : lodashEs.noop;
|
|
3402
3399
|
const filter$ = new rxjs.Subject();
|
|
3403
3400
|
const bindFilExpObj = (obj, targetNodeKey) => {
|
|
3404
3401
|
const listener = (newVal, oldVal) => {
|
|
3405
|
-
if ((newVal === oldVal &&
|
|
3402
|
+
if ((newVal === oldVal && lodashEs.isUndefined(newVal)) || (lodashEs.isUndefined(newVal) && !lodashEs.isUndefined(oldVal))) {
|
|
3406
3403
|
return;
|
|
3407
3404
|
}
|
|
3408
3405
|
// Skip cloning for blob column
|
|
3409
|
-
if (!
|
|
3406
|
+
if (!lodashEs.includes(['blob', 'file'], obj.type)) {
|
|
3410
3407
|
newVal = getClonedObject(newVal);
|
|
3411
3408
|
}
|
|
3412
3409
|
// backward compatibility: where we are allowing the user to bind complete object
|
|
@@ -3414,7 +3411,7 @@
|
|
|
3414
3411
|
// remove the existing databinding element
|
|
3415
3412
|
filterExpressions.rules = [];
|
|
3416
3413
|
// now add all the returned values
|
|
3417
|
-
|
|
3414
|
+
lodashEs.forEach(newVal, function (value, target) {
|
|
3418
3415
|
filterExpressions.rules.push({
|
|
3419
3416
|
'target': target,
|
|
3420
3417
|
'value': value,
|
|
@@ -3432,12 +3429,12 @@
|
|
|
3432
3429
|
};
|
|
3433
3430
|
if (stringStartsWith(obj[targetNodeKey], 'bind:')) {
|
|
3434
3431
|
// [Todo-CSP]: needs a check, where is this used
|
|
3435
|
-
destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, variable ? variable.invokeOnFiltertExpressionChange.bind(variable, obj, targetNodeKey) : listener, undefined, false, { arrayType:
|
|
3432
|
+
destroyFn($watch(obj[targetNodeKey].replace('bind:', ''), context, {}, variable ? variable.invokeOnFiltertExpressionChange.bind(variable, obj, targetNodeKey) : listener, undefined, false, { arrayType: lodashEs.includes(['in', 'notin'], obj.matchMode) }));
|
|
3436
3433
|
}
|
|
3437
3434
|
};
|
|
3438
3435
|
const traverseFilterExpressions = expressions => {
|
|
3439
3436
|
if (expressions.rules) {
|
|
3440
|
-
|
|
3437
|
+
lodashEs.forEach(expressions.rules, (filExpObj, i) => {
|
|
3441
3438
|
if (filExpObj.rules) {
|
|
3442
3439
|
traverseFilterExpressions(filExpObj);
|
|
3443
3440
|
}
|
|
@@ -3467,12 +3464,12 @@
|
|
|
3467
3464
|
};
|
|
3468
3465
|
const removeExtraSlashes = function (url) {
|
|
3469
3466
|
const base64regex = /^data:image\/([a-z]{2,});base64,/;
|
|
3470
|
-
if (
|
|
3467
|
+
if (lodashEs.isString(url)) {
|
|
3471
3468
|
/*
|
|
3472
3469
|
* support for mobile apps having local file path url starting with file:/// and
|
|
3473
3470
|
* support for base64 format
|
|
3474
3471
|
* */
|
|
3475
|
-
if (
|
|
3472
|
+
if (lodashEs.startsWith(url, 'file:///') || base64regex.test(url)) {
|
|
3476
3473
|
return url;
|
|
3477
3474
|
}
|
|
3478
3475
|
return url.replace(new RegExp('([^:]\/)(\/)+', 'g'), '$1');
|
|
@@ -3524,7 +3521,7 @@
|
|
|
3524
3521
|
};
|
|
3525
3522
|
// This method returns the display date format for given type
|
|
3526
3523
|
const getDisplayDateTimeFormat = type => {
|
|
3527
|
-
return DEFAULT_DISPLAY_FORMATS[
|
|
3524
|
+
return DEFAULT_DISPLAY_FORMATS[lodashEs.toUpper(type)];
|
|
3528
3525
|
};
|
|
3529
3526
|
// Generate for attribute on label and ID on input element, so that label elements are associated to form controls
|
|
3530
3527
|
const addForIdAttributes = (element) => {
|
|
@@ -3580,7 +3577,7 @@
|
|
|
3580
3577
|
* @param ele Child element(jquery). For some of the widgets(time, search) containerElem doesn't have height. The inner element(dropdown-menu) has height so passing it as optional.
|
|
3581
3578
|
*/
|
|
3582
3579
|
const adjustContainerRightEdges = (containerElem, parentElem, ref, ele) => {
|
|
3583
|
-
const containerWidth = ele ?
|
|
3580
|
+
const containerWidth = ele ? parseInt(ele.css('width')) : parseInt(containerElem.css('width'));
|
|
3584
3581
|
const viewPortWidth = $(window).width() + window.scrollX;
|
|
3585
3582
|
const parentDimesion = parentElem.getBoundingClientRect();
|
|
3586
3583
|
const parentRight = parentDimesion.right + window.scrollX;
|
|
@@ -3629,7 +3626,7 @@
|
|
|
3629
3626
|
const closePopover = (element) => {
|
|
3630
3627
|
if (!element.closest('.app-popover').length) {
|
|
3631
3628
|
const popoverElements = document.querySelectorAll('.app-popover-wrapper');
|
|
3632
|
-
|
|
3629
|
+
lodashEs.forEach(popoverElements, (ele) => {
|
|
3633
3630
|
if (ele.widget.isOpen) {
|
|
3634
3631
|
ele.widget.isOpen = false;
|
|
3635
3632
|
}
|
|
@@ -3663,7 +3660,7 @@
|
|
|
3663
3660
|
if (itemLink.startsWith('#/') && (!linkTarget || linkTarget === '_self')) {
|
|
3664
3661
|
const queryParams = getUrlParams(itemLink);
|
|
3665
3662
|
itemLink = getRouteNameFromLink(itemLink);
|
|
3666
|
-
const router =
|
|
3663
|
+
const router = lodashEs.get(scope, 'route') || lodashEs.get(scope, 'menuRef.route');
|
|
3667
3664
|
router.navigate([itemLink], { queryParams });
|
|
3668
3665
|
}
|
|
3669
3666
|
else {
|
|
@@ -3679,14 +3676,14 @@
|
|
|
3679
3676
|
* Example2: expr - "Widgets.list1.currentItem.addresses" and list1 is bound to "Variables.staticVar1.dataSet.details" then the method will return datasource as Variables.staticVar1
|
|
3680
3677
|
*/
|
|
3681
3678
|
const getDatasourceFromExpr = (expr, scope) => {
|
|
3682
|
-
const isBoundToVariable =
|
|
3683
|
-
const isBoundToWidget =
|
|
3679
|
+
const isBoundToVariable = lodashEs.startsWith(expr, 'Variables.');
|
|
3680
|
+
const isBoundToWidget = lodashEs.startsWith(expr, 'Widgets.');
|
|
3684
3681
|
const parts = expr.split('.');
|
|
3685
3682
|
if (isBoundToVariable) {
|
|
3686
|
-
return
|
|
3683
|
+
return lodashEs.get(scope.viewParent.Variables, parts[1]);
|
|
3687
3684
|
}
|
|
3688
3685
|
if (isBoundToWidget) {
|
|
3689
|
-
const widgetScope =
|
|
3686
|
+
const widgetScope = lodashEs.get(scope.viewParent.Widgets, parts[1]);
|
|
3690
3687
|
const widgetDatasetBoundExpr = widgetScope.$attrs.get('datasetboundexpr');
|
|
3691
3688
|
let widgetBoundExpression;
|
|
3692
3689
|
widgetBoundExpression = (!widgetScope.datasource && widgetDatasetBoundExpr) ? widgetDatasetBoundExpr : widgetScope.binddataset;
|
|
@@ -3703,7 +3700,7 @@
|
|
|
3703
3700
|
const currentItemRegEx = /^Widgets\..*\.currentItem/g;
|
|
3704
3701
|
if (currentItemRegEx.test(expr)) {
|
|
3705
3702
|
const parts = expr.split('.');
|
|
3706
|
-
const widgetScope =
|
|
3703
|
+
const widgetScope = lodashEs.get(scope.viewParent.Widgets, parts[1]);
|
|
3707
3704
|
const widgetDatasetBoundExpr = widgetScope.$attrs.get('datasetboundexpr');
|
|
3708
3705
|
if (!widgetScope.datasource && widgetDatasetBoundExpr) {
|
|
3709
3706
|
expr = expr.replace(/^Widgets\..*\.currentItem/g, `${widgetDatasetBoundExpr}[$i]`);
|
|
@@ -3743,7 +3740,7 @@
|
|
|
3743
3740
|
EXCLUDEDAYS: 'excludedays'
|
|
3744
3741
|
};
|
|
3745
3742
|
const transformFileURI = (url) => {
|
|
3746
|
-
if (
|
|
3743
|
+
if (lodashEs.isString(url) && hasCordova() && url.startsWith('file://')) {
|
|
3747
3744
|
if (isIos()) {
|
|
3748
3745
|
return url.replace('file://', '/_app_file_');
|
|
3749
3746
|
}
|
|
@@ -3771,7 +3768,7 @@
|
|
|
3771
3768
|
document.head.appendChild(scriptele);
|
|
3772
3769
|
};
|
|
3773
3770
|
const getAppSetting = (key, defaultValue) => {
|
|
3774
|
-
return (_WM_APP_PROPERTIES.extra_settings &&
|
|
3771
|
+
return (_WM_APP_PROPERTIES.extra_settings && lodashEs.get(_WM_APP_PROPERTIES.extra_settings, key)) || defaultValue;
|
|
3775
3772
|
};
|
|
3776
3773
|
/* this function sets the itemclass depending on itemsperrow.
|
|
3777
3774
|
* if itemsperrow is 2 for large device, then itemclass is 'col-xs-1 col-sm-1 col-lg-2'
|
|
@@ -3782,8 +3779,8 @@
|
|
|
3782
3779
|
if (scope.itemsperrow) {
|
|
3783
3780
|
if (isNaN(parseInt(scope.itemsperrow, 10))) {
|
|
3784
3781
|
// handling itemsperrow containing string of classes
|
|
3785
|
-
|
|
3786
|
-
const keys =
|
|
3782
|
+
lodashEs.split(scope.itemsperrow, ' ').forEach((cls) => {
|
|
3783
|
+
const keys = lodashEs.split(cls, '-');
|
|
3787
3784
|
cls = `${keys[0]}-${(12 / parseInt(keys[1], 10))}`;
|
|
3788
3785
|
temp += ` col-${cls}`;
|
|
3789
3786
|
});
|
|
@@ -3887,9 +3884,7 @@
|
|
|
3887
3884
|
isAndroid: isAndroid,
|
|
3888
3885
|
isAndroidTablet: isAndroidTablet,
|
|
3889
3886
|
isAppleProduct: isAppleProduct,
|
|
3890
|
-
isArray: isArray,
|
|
3891
3887
|
isAudioFile: isAudioFile,
|
|
3892
|
-
isBoolean: isBoolean,
|
|
3893
3888
|
isDataSourceEqual: isDataSourceEqual,
|
|
3894
3889
|
isDateTimeType: isDateTimeType,
|
|
3895
3890
|
isDefined: isDefined,
|
|
@@ -3908,11 +3903,9 @@
|
|
|
3908
3903
|
isLargeTabletPortrait: isLargeTabletPortrait,
|
|
3909
3904
|
isMobile: isMobile,
|
|
3910
3905
|
isMobileApp: isMobileApp,
|
|
3911
|
-
isNumber: isNumber,
|
|
3912
3906
|
isNumberType: isNumberType,
|
|
3913
3907
|
isObject: isObject,
|
|
3914
3908
|
isPageable: isPageable,
|
|
3915
|
-
isString: isString,
|
|
3916
3909
|
isTablet: isTablet,
|
|
3917
3910
|
isValidWebURL: isValidWebURL,
|
|
3918
3911
|
isVideoFile: isVideoFile,
|
|
@@ -4066,7 +4059,7 @@
|
|
|
4066
4059
|
this.screenWidth > this.screenHeight ? this.screenWidth : this.screenHeight;
|
|
4067
4060
|
this.isTabletType = false;
|
|
4068
4061
|
this.isMobileType = false;
|
|
4069
|
-
if (
|
|
4062
|
+
if (lodashEs.get(this.selectedViewPort, 'deviceCategory')) {
|
|
4070
4063
|
const deviceCategory = this.selectedViewPort.deviceCategory;
|
|
4071
4064
|
if (deviceCategory === 'Tab') {
|
|
4072
4065
|
this.isTabletType = true;
|
|
@@ -4129,7 +4122,7 @@
|
|
|
4129
4122
|
|
|
4130
4123
|
class UtilsService {
|
|
4131
4124
|
constructor() {
|
|
4132
|
-
|
|
4125
|
+
lodashEs.assign(this, Utils);
|
|
4133
4126
|
}
|
|
4134
4127
|
static { this.ɵfac = function UtilsService_Factory(t) { return new (t || UtilsService)(); }; }
|
|
4135
4128
|
static { this.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: UtilsService, factory: UtilsService.ɵfac, providedIn: 'root' }); }
|
|
@@ -4141,7 +4134,7 @@
|
|
|
4141
4134
|
|
|
4142
4135
|
class FieldTypeService {
|
|
4143
4136
|
constructor() {
|
|
4144
|
-
|
|
4137
|
+
lodashEs.assign(this, {
|
|
4145
4138
|
INTEGER: 'integer',
|
|
4146
4139
|
BIG_INTEGER: 'big_integer',
|
|
4147
4140
|
SHORT: 'short',
|
|
@@ -4173,7 +4166,7 @@
|
|
|
4173
4166
|
|
|
4174
4167
|
class FieldWidgetService {
|
|
4175
4168
|
constructor() {
|
|
4176
|
-
|
|
4169
|
+
lodashEs.assign(this, {
|
|
4177
4170
|
TEXT: 'text',
|
|
4178
4171
|
NUMBER: 'number',
|
|
4179
4172
|
TEXTAREA: 'textarea',
|
|
@@ -4389,7 +4382,7 @@
|
|
|
4389
4382
|
if (parsedStateInfo && widget && widget.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
|
|
4390
4383
|
parsedStateInfo = parsedStateInfo[widget.getAppInstance().activePageName];
|
|
4391
4384
|
}
|
|
4392
|
-
if (
|
|
4385
|
+
if (lodashEs.get(parsedStateInfo, this.WIDGET_STATE_KEY)) {
|
|
4393
4386
|
const stateKey = this.getNestedPath(widget.viewParent, widget.getWidget().name);
|
|
4394
4387
|
return parsedStateInfo[this.WIDGET_STATE_KEY][stateKey];
|
|
4395
4388
|
}
|
|
@@ -4542,7 +4535,7 @@
|
|
|
4542
4535
|
parsedObj = stateObj[widget.getAppInstance().activePageName];
|
|
4543
4536
|
}
|
|
4544
4537
|
else {
|
|
4545
|
-
parsedObj =
|
|
4538
|
+
parsedObj = lodashEs.clone(stateObj);
|
|
4546
4539
|
}
|
|
4547
4540
|
if (stateParam) {
|
|
4548
4541
|
if (parsedObj && !parsedObj[stateParam]) {
|
|
@@ -4551,9 +4544,9 @@
|
|
|
4551
4544
|
else if (!parsedObj) {
|
|
4552
4545
|
parsedObj = { [stateParam]: {} };
|
|
4553
4546
|
}
|
|
4554
|
-
if (
|
|
4547
|
+
if (lodashEs.isObject(val) && !lodashEs.isArray(val)) {
|
|
4555
4548
|
parsedObj[stateParam][key] = parsedObj[stateParam][key] || {};
|
|
4556
|
-
|
|
4549
|
+
lodashEs.merge(parsedObj[stateParam][key], val);
|
|
4557
4550
|
}
|
|
4558
4551
|
else {
|
|
4559
4552
|
parsedObj[stateParam][key] = val;
|
|
@@ -4566,9 +4559,9 @@
|
|
|
4566
4559
|
else if (!parsedObj) {
|
|
4567
4560
|
parsedObj = { [key]: {} };
|
|
4568
4561
|
}
|
|
4569
|
-
if (
|
|
4562
|
+
if (lodashEs.isObject(val) && !lodashEs.isArray(val)) {
|
|
4570
4563
|
parsedObj[key] = parsedObj[key] || {};
|
|
4571
|
-
|
|
4564
|
+
lodashEs.merge(parsedObj[key], val);
|
|
4572
4565
|
}
|
|
4573
4566
|
else {
|
|
4574
4567
|
parsedObj[key] = val;
|
|
@@ -4655,28 +4648,28 @@
|
|
|
4655
4648
|
parsedObj = stateObj[widget.getAppInstance().activePageName];
|
|
4656
4649
|
}
|
|
4657
4650
|
else {
|
|
4658
|
-
parsedObj =
|
|
4651
|
+
parsedObj = lodashEs.clone(stateObj);
|
|
4659
4652
|
}
|
|
4660
|
-
if (!
|
|
4653
|
+
if (!lodashEs.get(parsedObj, [stateParam]) && !lodashEs.get(parsedObj, key)) {
|
|
4661
4654
|
return;
|
|
4662
4655
|
}
|
|
4663
4656
|
// Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
|
|
4664
|
-
//
|
|
4665
|
-
if (
|
|
4657
|
+
// get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
|
|
4658
|
+
if (lodashEs.get(parsedObj, stateParam + '.' + key) || (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key])) {
|
|
4666
4659
|
if (subParam) {
|
|
4667
4660
|
delete parsedObj[stateParam][key][subParam];
|
|
4668
4661
|
}
|
|
4669
4662
|
else {
|
|
4670
4663
|
delete parsedObj[stateParam][key];
|
|
4671
4664
|
}
|
|
4672
|
-
if (
|
|
4665
|
+
if (lodashEs.isEmpty(parsedObj[stateParam][key])) {
|
|
4673
4666
|
delete parsedObj[stateParam][key];
|
|
4674
4667
|
}
|
|
4675
|
-
if (
|
|
4668
|
+
if (lodashEs.isEmpty(parsedObj[stateParam])) {
|
|
4676
4669
|
delete parsedObj[stateParam];
|
|
4677
4670
|
}
|
|
4678
4671
|
}
|
|
4679
|
-
else if (!stateParam &&
|
|
4672
|
+
else if (!stateParam && lodashEs.get(parsedObj, key)) {
|
|
4680
4673
|
delete parsedObj[key];
|
|
4681
4674
|
}
|
|
4682
4675
|
// for Local and Session Storage, wrap state object inside page name so that widget name conflicts don't arise between pages.
|
|
@@ -4698,9 +4691,9 @@
|
|
|
4698
4691
|
return;
|
|
4699
4692
|
}
|
|
4700
4693
|
const decodedURI = decodeURIComponent(window.location.href);
|
|
4701
|
-
if (
|
|
4694
|
+
if (lodashEs.isEmpty(parsedObj)) {
|
|
4702
4695
|
url = decodedURI.replace(/(wm_state=).*?(&|$)/, '' + '$2');
|
|
4703
|
-
if (
|
|
4696
|
+
if (lodashEs.includes(['&', '?'], url.charAt(url.length - 1))) {
|
|
4704
4697
|
url = url.replace(url.charAt(url.length - 1), '');
|
|
4705
4698
|
}
|
|
4706
4699
|
}
|
|
@@ -4888,7 +4881,7 @@
|
|
|
4888
4881
|
newVal.forEach(function (newObj) {
|
|
4889
4882
|
flag = false;
|
|
4890
4883
|
fieldDefs.forEach(function (obj) {
|
|
4891
|
-
if (
|
|
4884
|
+
if (lodashEs.isEqual(newObj, obj)) {
|
|
4892
4885
|
flag = true;
|
|
4893
4886
|
}
|
|
4894
4887
|
});
|
|
@@ -4976,7 +4969,7 @@
|
|
|
4976
4969
|
* @returns debounced function definition
|
|
4977
4970
|
*/
|
|
4978
4971
|
debouncedFetchNextDatasetOnScroll(dataNavigator, debounceNum, parent) {
|
|
4979
|
-
return
|
|
4972
|
+
return lodashEs.debounce(() => this.fetchNextDatasetOnScroll(dataNavigator, parent), debounceNum);
|
|
4980
4973
|
}
|
|
4981
4974
|
/**
|
|
4982
4975
|
* @description
|
|
@@ -5008,11 +5001,11 @@
|
|
|
5008
5001
|
const dataNavigator = parent.dataNavigator;
|
|
5009
5002
|
const app = parent.app;
|
|
5010
5003
|
const $scrollParent = $element.closest('[wmsmoothscroll="true"]');
|
|
5011
|
-
const iScroll =
|
|
5004
|
+
const iScroll = lodashEs.get($scrollParent[0], 'iscroll');
|
|
5012
5005
|
// when iscroll is not initialised the notify the smoothscroll and subscribe to the iscroll update
|
|
5013
5006
|
if (!iScroll) {
|
|
5014
5007
|
const iScrollSubscription = app.subscribe('iscroll-update', (_el) => {
|
|
5015
|
-
if (!
|
|
5008
|
+
if (!lodashEs.isEmpty(_el) && _el.isSameNode($scrollParent[0])) {
|
|
5016
5009
|
this.setIscrollHandlers($scrollParent[0], dataNavigator, debounceNum);
|
|
5017
5010
|
iScrollSubscription();
|
|
5018
5011
|
}
|
|
@@ -5032,7 +5025,7 @@
|
|
|
5032
5025
|
*/
|
|
5033
5026
|
setIscrollHandlers(el, dataNavigator, debounceNum) {
|
|
5034
5027
|
let lastScrollTop = 0;
|
|
5035
|
-
const wrapper =
|
|
5028
|
+
const wrapper = lodashEs.get(el.iscroll, 'wrapper');
|
|
5036
5029
|
const self = el.iscroll;
|
|
5037
5030
|
el.iscroll.on('scrollEnd', () => {
|
|
5038
5031
|
const clientHeight = wrapper.clientHeight, totalHeight = wrapper.scrollHeight, scrollTop = Math.abs(el.iscroll.y);
|
|
@@ -5115,7 +5108,7 @@
|
|
|
5115
5108
|
return this.cache.keys();
|
|
5116
5109
|
}
|
|
5117
5110
|
set(key, dataToCache) {
|
|
5118
|
-
if (
|
|
5111
|
+
if (lodashEs.isNil(dataToCache)) {
|
|
5119
5112
|
return;
|
|
5120
5113
|
}
|
|
5121
5114
|
const cachedData = {
|
|
@@ -5258,9 +5251,7 @@
|
|
|
5258
5251
|
exports.isAndroid = isAndroid;
|
|
5259
5252
|
exports.isAndroidTablet = isAndroidTablet;
|
|
5260
5253
|
exports.isAppleProduct = isAppleProduct;
|
|
5261
|
-
exports.isArray = isArray;
|
|
5262
5254
|
exports.isAudioFile = isAudioFile;
|
|
5263
|
-
exports.isBoolean = isBoolean;
|
|
5264
5255
|
exports.isChangeFromWatch = isChangeFromWatch;
|
|
5265
5256
|
exports.isDataSourceEqual = isDataSourceEqual;
|
|
5266
5257
|
exports.isDateTimeType = isDateTimeType;
|
|
@@ -5281,11 +5272,9 @@
|
|
|
5281
5272
|
exports.isLargeTabletPortrait = isLargeTabletPortrait;
|
|
5282
5273
|
exports.isMobile = isMobile;
|
|
5283
5274
|
exports.isMobileApp = isMobileApp;
|
|
5284
|
-
exports.isNumber = isNumber;
|
|
5285
5275
|
exports.isNumberType = isNumberType;
|
|
5286
5276
|
exports.isObject = isObject;
|
|
5287
5277
|
exports.isPageable = isPageable;
|
|
5288
|
-
exports.isString = isString;
|
|
5289
5278
|
exports.isValidWebURL = isValidWebURL;
|
|
5290
5279
|
exports.isVideoFile = isVideoFile;
|
|
5291
5280
|
exports.loadScript = loadScript;
|