@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('@angular/forms'), require('angular-imask'), require('@wm/components/base'), require('@wm/core'), require('rxjs'), require('tslib')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-imask', '@wm/components/base', '@wm/core', 'rxjs', 'tslib'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = {}), global.ng.core, global.ng.common, global.ng.forms, global.angularIMask, global.wm.components.base, global.wm.core, global.rxjs, global.tslib));
|
|
5
|
-
})(this, (function (exports, i0, i1, i2$1, i3, i2, i1$1, rxjs, tslib) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('angular-imask'), require('@wm/components/base'), require('@wm/core'), require('lodash-es'), require('rxjs'), require('tslib')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-imask', '@wm/components/base', '@wm/core', 'lodash-es', 'rxjs', 'tslib'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = {}), global.ng.core, global.ng.common, global.ng.forms, global.angularIMask, global.wm.components.base, global.wm.core, global._, global.rxjs, global.tslib));
|
|
5
|
+
})(this, (function (exports, i0, i1, i2$1, i3, i2, i1$1, lodashEs, rxjs, tslib) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
}] }); })();
|
|
207
207
|
|
|
208
208
|
class BaseFormComponent extends i2.StylableComponent {
|
|
209
|
-
constructor(inj, config, initPromise) {
|
|
210
|
-
super(inj, config, initPromise);
|
|
209
|
+
constructor(inj, config, explicitContext, initPromise) {
|
|
210
|
+
super(inj, config, explicitContext, initPromise);
|
|
211
211
|
this.inj = inj;
|
|
212
212
|
this.binddatavalue = this.$element.attr('datavalue.bind');
|
|
213
213
|
}
|
|
@@ -236,11 +236,11 @@
|
|
|
236
236
|
}
|
|
237
237
|
binddatavalue = binddatavalue.replace(/\[\$i\]/g, '[0]');
|
|
238
238
|
// In case of list widget context will be the listItem.
|
|
239
|
-
if (
|
|
240
|
-
|
|
239
|
+
if (lodashEs.has(this.context, binddatavalue.split('.')[0])) {
|
|
240
|
+
lodashEs.set(this.context, binddatavalue, value);
|
|
241
241
|
}
|
|
242
242
|
else {
|
|
243
|
-
|
|
243
|
+
lodashEs.set(this.viewParent, binddatavalue, value);
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
invokeOnChange(value, $event) {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinject(Promise)); }; }
|
|
276
|
+
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinject(Promise)); }; }
|
|
277
277
|
static { this.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: BaseFormComponent, factory: BaseFormComponent.ɵfac }); }
|
|
278
278
|
}
|
|
279
279
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BaseFormComponent, [{
|
|
@@ -281,6 +281,11 @@
|
|
|
281
281
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
282
282
|
type: i0.Inject,
|
|
283
283
|
args: [i2.WidgetConfig]
|
|
284
|
+
}] }, { type: undefined, decorators: [{
|
|
285
|
+
type: i0.Inject,
|
|
286
|
+
args: ['EXPLICIT_CONTEXT']
|
|
287
|
+
}, {
|
|
288
|
+
type: i0.Optional
|
|
284
289
|
}] }, { type: Promise }], null); })();
|
|
285
290
|
|
|
286
291
|
/*
|
|
@@ -585,17 +590,17 @@
|
|
|
585
590
|
// invoke on datavalue change.
|
|
586
591
|
this.invokeOnChange(val, undefined, true);
|
|
587
592
|
}
|
|
588
|
-
constructor(inj, config, groupby) {
|
|
589
|
-
super(inj, config);
|
|
593
|
+
constructor(inj, config, explicitContext, groupby) {
|
|
594
|
+
super(inj, config, explicitContext);
|
|
590
595
|
this.groupby = groupby;
|
|
591
596
|
this.datasetItems = [];
|
|
592
597
|
this.acceptsArray = false; // set to true if proxyModel on widget accepts array type.
|
|
593
598
|
this.dataset$ = new rxjs.Subject();
|
|
594
599
|
this.datavalue$ = new rxjs.Subject();
|
|
595
600
|
this.allowempty = true;
|
|
596
|
-
this._debounceDatavalueUpdation =
|
|
601
|
+
this._debounceDatavalueUpdation = lodashEs.debounce((values) => {
|
|
597
602
|
// if no item is found in datasetItems, wait untill the dataset updates by preserving the datavalue in toBeProcessedDatavalue.
|
|
598
|
-
if (!i1$1.isDefined(this._modelByKey) || (
|
|
603
|
+
if (!i1$1.isDefined(this._modelByKey) || (lodashEs.isArray(this._modelByKey) && !this._modelByKey.length)) {
|
|
599
604
|
this.toBeProcessedDatavalue = values;
|
|
600
605
|
this._modelByValue = '';
|
|
601
606
|
}
|
|
@@ -603,7 +608,7 @@
|
|
|
603
608
|
// obtain the first array value when multiple is set to false.
|
|
604
609
|
// set the modelByValue only when undefined.
|
|
605
610
|
if (!i1$1.isDefined(this._modelByValue)) {
|
|
606
|
-
this._modelByValue = (!this.multiple &&
|
|
611
|
+
this._modelByValue = (!this.multiple && lodashEs.isArray(this.toBeProcessedDatavalue)) ? this.toBeProcessedDatavalue[0] : this.toBeProcessedDatavalue;
|
|
607
612
|
}
|
|
608
613
|
this.toBeProcessedDatavalue = undefined;
|
|
609
614
|
}
|
|
@@ -633,7 +638,7 @@
|
|
|
633
638
|
if (!this.datasetItems.length) {
|
|
634
639
|
return;
|
|
635
640
|
}
|
|
636
|
-
if (this.multiple && !
|
|
641
|
+
if (this.multiple && !lodashEs.isArray(keys)) {
|
|
637
642
|
keys = [keys];
|
|
638
643
|
}
|
|
639
644
|
// Set the _modelByKey to the modified keys.
|
|
@@ -641,10 +646,10 @@
|
|
|
641
646
|
if (this.multiple) {
|
|
642
647
|
this._modelByValue = [];
|
|
643
648
|
keys.forEach(key => {
|
|
644
|
-
const itemByKey =
|
|
649
|
+
const itemByKey = lodashEs.find(this.datasetItems, item => {
|
|
645
650
|
// not triple equal, as the instance type can be different.
|
|
646
651
|
// only value comparison should be done.
|
|
647
|
-
return
|
|
652
|
+
return lodashEs.toString(item.key) === lodashEs.toString(key);
|
|
648
653
|
});
|
|
649
654
|
if (itemByKey) {
|
|
650
655
|
itemByKey.selected = true;
|
|
@@ -654,10 +659,10 @@
|
|
|
654
659
|
}
|
|
655
660
|
else {
|
|
656
661
|
this._modelByValue = '';
|
|
657
|
-
const itemByKey =
|
|
662
|
+
const itemByKey = lodashEs.find(this.datasetItems, item => {
|
|
658
663
|
// not triple equal, as the instance type can be different.
|
|
659
664
|
// only value comparison should be done.
|
|
660
|
-
return
|
|
665
|
+
return lodashEs.toString(item.key) === lodashEs.toString(keys);
|
|
661
666
|
});
|
|
662
667
|
if (itemByKey) {
|
|
663
668
|
itemByKey.selected = true;
|
|
@@ -676,14 +681,14 @@
|
|
|
676
681
|
selectByValue(values) {
|
|
677
682
|
this.resetDatasetItems();
|
|
678
683
|
// if datavalue is not defined or empty then set the model as undefined.
|
|
679
|
-
if (!i1$1.isDefined(values) || values === '' ||
|
|
684
|
+
if (!i1$1.isDefined(values) || values === '' || lodashEs.isNull(values) || (values instanceof Array && !values.length)) {
|
|
680
685
|
this._modelByKey = undefined;
|
|
681
686
|
// do not return when allowempty is set to true.
|
|
682
687
|
if (!this.allowempty || !i1$1.isDefined(values)) {
|
|
683
688
|
return;
|
|
684
689
|
}
|
|
685
690
|
}
|
|
686
|
-
if (this.acceptsArray && !
|
|
691
|
+
if (this.acceptsArray && !lodashEs.isArray(values)) {
|
|
687
692
|
values = this.allowempty ? [values] : i2.extractDataAsArray(values);
|
|
688
693
|
}
|
|
689
694
|
// preserve the datavalue if datasetItems are empty.
|
|
@@ -692,16 +697,16 @@
|
|
|
692
697
|
return;
|
|
693
698
|
}
|
|
694
699
|
const filterField = this.datafield === i2.ALLFIELDS ? 'dataObject' : 'key';
|
|
695
|
-
if (
|
|
700
|
+
if (lodashEs.isArray(values)) {
|
|
696
701
|
this._modelByKey = [];
|
|
697
702
|
values.forEach(val => {
|
|
698
|
-
const itemByValue =
|
|
703
|
+
const itemByValue = lodashEs.find(this.datasetItems, item => {
|
|
699
704
|
if (filterField === 'dataObject') {
|
|
700
705
|
if (this.compareby && this.compareby.length) {
|
|
701
706
|
return i1$1.isEqualWithFields(item[filterField], val, this.compareby);
|
|
702
707
|
}
|
|
703
708
|
}
|
|
704
|
-
return (
|
|
709
|
+
return (lodashEs.isObject(item.value) ? lodashEs.isEqual(item.value, val) : (lodashEs.toString(item.value)).toLowerCase() === (lodashEs.toString(val)).toLowerCase());
|
|
705
710
|
});
|
|
706
711
|
if (itemByValue) {
|
|
707
712
|
itemByValue.selected = true;
|
|
@@ -711,13 +716,13 @@
|
|
|
711
716
|
}
|
|
712
717
|
else {
|
|
713
718
|
this._modelByKey = undefined;
|
|
714
|
-
const itemByValue =
|
|
719
|
+
const itemByValue = lodashEs.find(this.datasetItems, item => {
|
|
715
720
|
if (filterField === 'dataObject') {
|
|
716
721
|
if (this.compareby && this.compareby.length) {
|
|
717
722
|
return i1$1.isEqualWithFields(item[filterField], values, this.compareby);
|
|
718
723
|
}
|
|
719
724
|
}
|
|
720
|
-
return (
|
|
725
|
+
return (lodashEs.isObject(item.value) ? lodashEs.isEqual(item.value, values) : (lodashEs.toString(item.value)).toLowerCase() === (lodashEs.toString(values)).toLowerCase());
|
|
721
726
|
});
|
|
722
727
|
if (itemByValue) {
|
|
723
728
|
itemByValue.selected = true;
|
|
@@ -740,7 +745,7 @@
|
|
|
740
745
|
}
|
|
741
746
|
// This function parses the dataset and extracts the displayOptions from parsed dataset.
|
|
742
747
|
initDatasetItems() {
|
|
743
|
-
if (!this.dataset ||
|
|
748
|
+
if (!this.dataset || lodashEs.isEmpty(this.dataset)) {
|
|
744
749
|
this.datasetItems = [];
|
|
745
750
|
// notify the dataset listeners
|
|
746
751
|
this.dataset$.next(this.datasetItems);
|
|
@@ -768,7 +773,7 @@
|
|
|
768
773
|
postDatasetItemsInit() {
|
|
769
774
|
if (this.datasetItems.length && !this._defaultQueryInvoked) {
|
|
770
775
|
// use the latest of toBeProcessedDatavalue, datavalue
|
|
771
|
-
const _datavalue =
|
|
776
|
+
const _datavalue = lodashEs.isEmpty(this.toBeProcessedDatavalue) ? this.datavalue : this.toBeProcessedDatavalue;
|
|
772
777
|
this.selectByValue(_datavalue);
|
|
773
778
|
}
|
|
774
779
|
// notify the dataset listeners
|
|
@@ -838,7 +843,7 @@
|
|
|
838
843
|
this.cancelLocaleChangeSubscription();
|
|
839
844
|
}
|
|
840
845
|
}
|
|
841
|
-
static { this.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinjectAttribute('groupby')); }; }
|
|
846
|
+
static { this.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵinjectAttribute('groupby')); }; }
|
|
842
847
|
static { this.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: DatasetAwareFormComponent, factory: DatasetAwareFormComponent.ɵfac }); }
|
|
843
848
|
}
|
|
844
849
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatasetAwareFormComponent, [{
|
|
@@ -846,6 +851,11 @@
|
|
|
846
851
|
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
847
852
|
type: i0.Inject,
|
|
848
853
|
args: [i2.WidgetConfig]
|
|
854
|
+
}] }, { type: undefined, decorators: [{
|
|
855
|
+
type: i0.Inject,
|
|
856
|
+
args: ['EXPLICIT_CONTEXT']
|
|
857
|
+
}, {
|
|
858
|
+
type: i0.Optional
|
|
849
859
|
}] }, { type: undefined, decorators: [{
|
|
850
860
|
type: i0.Attribute,
|
|
851
861
|
args: ['groupby']
|
|
@@ -1050,7 +1060,8 @@
|
|
|
1050
1060
|
// construct the _model from the checked elements.
|
|
1051
1061
|
const inputElements = this.nativeElement.querySelectorAll('input:checked');
|
|
1052
1062
|
const keys = [];
|
|
1053
|
-
|
|
1063
|
+
lodashEs.forEach(inputElements, ($el) => {
|
|
1064
|
+
// @ts-ignore
|
|
1054
1065
|
keys.push($el.value);
|
|
1055
1066
|
});
|
|
1056
1067
|
this.modelByKey = keys;
|
|
@@ -1069,7 +1080,7 @@
|
|
|
1069
1080
|
return callback();
|
|
1070
1081
|
});
|
|
1071
1082
|
}
|
|
1072
|
-
else if (!
|
|
1083
|
+
else if (!lodashEs.includes(['change'], eventName)) {
|
|
1073
1084
|
super.handleEvent(node, eventName, callback, locals);
|
|
1074
1085
|
}
|
|
1075
1086
|
}
|
|
@@ -1128,7 +1139,7 @@
|
|
|
1128
1139
|
type: i0.HostListener,
|
|
1129
1140
|
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
1130
1141
|
}] }); })();
|
|
1131
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(CheckboxsetComponent, { className: "CheckboxsetComponent", filePath: "checkboxset/checkboxset.component.ts", lineNumber:
|
|
1142
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(CheckboxsetComponent, { className: "CheckboxsetComponent", filePath: "checkboxset/checkboxset.component.ts", lineNumber: 27 }); })();
|
|
1132
1143
|
|
|
1133
1144
|
const registerProps$a = () => {
|
|
1134
1145
|
i2.register('wm-form-group', new Map([
|
|
@@ -1274,7 +1285,7 @@
|
|
|
1274
1285
|
}
|
|
1275
1286
|
// invoke the change callback
|
|
1276
1287
|
handleChange(newValue) {
|
|
1277
|
-
if (this.autotrim && this.datavalue &&
|
|
1288
|
+
if (this.autotrim && this.datavalue && lodashEs.isString(this.datavalue)) {
|
|
1278
1289
|
this.datavalue = this.datavalue.trim();
|
|
1279
1290
|
}
|
|
1280
1291
|
this.invokeOnChange(this.datavalue, { type: 'change' }, this.ngModel.valid);
|
|
@@ -1292,7 +1303,7 @@
|
|
|
1292
1303
|
// Update the model on enter key press
|
|
1293
1304
|
flushViewChanges(val) {
|
|
1294
1305
|
// when val contains masked value, update the model with unmasked value
|
|
1295
|
-
const unMaskedVal =
|
|
1306
|
+
const unMaskedVal = lodashEs.get(this.imask, 'maskRef.unmaskedValue');
|
|
1296
1307
|
val = unMaskedVal ? unMaskedVal : val;
|
|
1297
1308
|
this.ngModel.update.next(val);
|
|
1298
1309
|
i1$1.$appDigest();
|
|
@@ -1349,7 +1360,8 @@
|
|
|
1349
1360
|
set datavalue(value) {
|
|
1350
1361
|
this.lastValIsDecimal = false;
|
|
1351
1362
|
// set text value to null if data value is empty.
|
|
1352
|
-
|
|
1363
|
+
// @ts-ignore
|
|
1364
|
+
if (lodashEs.includes([null, undefined, ''], value)) {
|
|
1353
1365
|
const input = this.inputEl.nativeElement;
|
|
1354
1366
|
const prevDataValue = this.prevDatavalue;
|
|
1355
1367
|
this.displayValue = input.value = this.proxyModel = null;
|
|
@@ -1362,8 +1374,8 @@
|
|
|
1362
1374
|
}
|
|
1363
1375
|
// if the widget has default value and if we change the locale, the value should be in selected locale format.
|
|
1364
1376
|
if (this.isDefaultQuery) {
|
|
1365
|
-
const isLocalizedNumber =
|
|
1366
|
-
const parts = isLocalizedNumber ? value.split(this.DECIMAL) :
|
|
1377
|
+
const isLocalizedNumber = lodashEs.isString(value) && lodashEs.includes(value, this.DECIMAL);
|
|
1378
|
+
const parts = isLocalizedNumber ? value.split(this.DECIMAL) : lodashEs.isString(value) && value.split('.');
|
|
1367
1379
|
this.decimalValue = parts[1] || '';
|
|
1368
1380
|
value = isLocalizedNumber ? value : this.transformNumber(value);
|
|
1369
1381
|
}
|
|
@@ -1378,7 +1390,7 @@
|
|
|
1378
1390
|
model = NaN;
|
|
1379
1391
|
}
|
|
1380
1392
|
// On keypress, if the user types a decimal and is still active on the input do not throw error.
|
|
1381
|
-
if (
|
|
1393
|
+
if (isNaN(model) && strVal[strVal.length - 1] === this.DECIMAL && this.ngModelOptions.updateOn === 'change' && this.$element.find('input:focus').length) {
|
|
1382
1394
|
this.lastValIsDecimal = true;
|
|
1383
1395
|
}
|
|
1384
1396
|
// get a valid number form the text.
|
|
@@ -1414,7 +1426,7 @@
|
|
|
1414
1426
|
*/
|
|
1415
1427
|
isValid(val) {
|
|
1416
1428
|
// id number is infinite then consider it as invalid value
|
|
1417
|
-
if (
|
|
1429
|
+
if (isNaN(val) || !isFinite(val) || (!Number.isInteger(this.step) &&
|
|
1418
1430
|
this.countDecimals(val) > this.countDecimals(this.step))) {
|
|
1419
1431
|
this.isInvalidNumber = true;
|
|
1420
1432
|
return false;
|
|
@@ -1432,11 +1444,11 @@
|
|
|
1432
1444
|
* @returns {number}
|
|
1433
1445
|
*/
|
|
1434
1446
|
getValueInRange(value) {
|
|
1435
|
-
if (!
|
|
1447
|
+
if (!isNaN(this.minvalue) && value < this.minvalue) {
|
|
1436
1448
|
this.validateType = 'minvalue';
|
|
1437
1449
|
return this.minvalue;
|
|
1438
1450
|
}
|
|
1439
|
-
if (!
|
|
1451
|
+
if (!isNaN(this.maxvalue) && value > this.maxvalue) {
|
|
1440
1452
|
this.validateType = 'maxvalue';
|
|
1441
1453
|
return this.maxvalue;
|
|
1442
1454
|
}
|
|
@@ -1565,7 +1577,7 @@
|
|
|
1565
1577
|
const valInWholeNum = parseInt(value.toString().replace(/\D/g, ''));
|
|
1566
1578
|
financialVal = valInWholeNum * this.step;
|
|
1567
1579
|
}
|
|
1568
|
-
if (!
|
|
1580
|
+
if (!isNaN(financialVal)) {
|
|
1569
1581
|
// When update on key is set keypress, update the datavalue else update only the display value
|
|
1570
1582
|
if (this.ngModelOptions.updateOn === 'change') {
|
|
1571
1583
|
this.datavalue = parseFloat(financialVal.toFixed(stepVal));
|
|
@@ -1625,7 +1637,7 @@
|
|
|
1625
1637
|
const targetVal = $event.target.value.replace(/,/g, '');
|
|
1626
1638
|
// proxyModel to be updated from $event.target.value if present to support arrow keys when input changes else pick up from this.proxymodel
|
|
1627
1639
|
let proxyModel;
|
|
1628
|
-
if (targetVal && !
|
|
1640
|
+
if (targetVal && !isNaN(parseFloat(targetVal))) {
|
|
1629
1641
|
proxyModel = parseFloat(targetVal);
|
|
1630
1642
|
}
|
|
1631
1643
|
else {
|
|
@@ -1636,14 +1648,14 @@
|
|
|
1636
1648
|
if (this.numberNotInRange) {
|
|
1637
1649
|
const inputValue = this.parseNumber(this.inputEl.nativeElement.value);
|
|
1638
1650
|
// take the textbox value as current model if the value is valid.
|
|
1639
|
-
if (!
|
|
1651
|
+
if (!isNaN(inputValue)) {
|
|
1640
1652
|
value = this.getValueInRange(inputValue);
|
|
1641
1653
|
proxyModel = inputValue;
|
|
1642
1654
|
this.resetValidations();
|
|
1643
1655
|
}
|
|
1644
1656
|
}
|
|
1645
1657
|
else {
|
|
1646
|
-
if (
|
|
1658
|
+
if (lodashEs.isUndefined(proxyModel) || lodashEs.isNull(proxyModel)) {
|
|
1647
1659
|
proxyModel = value = this.getValueInRange((this.minvalue || 0));
|
|
1648
1660
|
this.resetValidations();
|
|
1649
1661
|
}
|
|
@@ -1654,7 +1666,7 @@
|
|
|
1654
1666
|
if ((key === 'UP' && proxyModel <= value) || (key === 'DOWN' && proxyModel >= value)) {
|
|
1655
1667
|
const decimalRoundValue = Math.max(this.countDecimals(proxyModel), this.countDecimals(this.step));
|
|
1656
1668
|
// update the modelProxy.
|
|
1657
|
-
this.proxyModel =
|
|
1669
|
+
this.proxyModel = lodashEs.round(value, decimalRoundValue);
|
|
1658
1670
|
this.updateDisplayText();
|
|
1659
1671
|
this.handleChange(this.proxyModel);
|
|
1660
1672
|
}
|
|
@@ -1689,7 +1701,7 @@
|
|
|
1689
1701
|
validateInputEntry($event) {
|
|
1690
1702
|
this.isDefaultQuery = false;
|
|
1691
1703
|
// allow actions if control key is pressed or if backspace is pressed. (for Mozilla).
|
|
1692
|
-
if ($event.ctrlKey ||
|
|
1704
|
+
if ($event.ctrlKey || lodashEs.includes(['Backspace', 'ArrowRight', 'ArrowLeft', 'Tab', 'Enter', 'Delete'], $event.key)) {
|
|
1693
1705
|
return;
|
|
1694
1706
|
}
|
|
1695
1707
|
const validity = new RegExp(`^[\\d\\s-,.e+${this.GROUP}${this.DECIMAL}]$`, 'i');
|
|
@@ -1720,18 +1732,18 @@
|
|
|
1720
1732
|
return false;
|
|
1721
1733
|
}
|
|
1722
1734
|
// comma cannot be entered consecutively
|
|
1723
|
-
if (
|
|
1735
|
+
if (lodashEs.includes(inputValue, ',') && inputValue[inputValue.length - 1] === ',' && $event.key === ',') {
|
|
1724
1736
|
return false;
|
|
1725
1737
|
}
|
|
1726
1738
|
// a decimal value can be entered only once in the input.
|
|
1727
|
-
if (
|
|
1739
|
+
if (lodashEs.includes(inputValue, this.DECIMAL) && $event.key === this.DECIMAL) {
|
|
1728
1740
|
return false;
|
|
1729
1741
|
}
|
|
1730
1742
|
// 'e' can be entered only once in the input.
|
|
1731
|
-
if (
|
|
1743
|
+
if (lodashEs.intersection(lodashEs.toArray(inputValue), ['e', 'E']).length && lodashEs.includes('eE', $event.key)) {
|
|
1732
1744
|
return false;
|
|
1733
1745
|
}
|
|
1734
|
-
if ((
|
|
1746
|
+
if ((lodashEs.includes(inputValue, '+') || lodashEs.includes(inputValue, '-')) && ($event.key === '+' || $event.key === '-')) {
|
|
1735
1747
|
return false;
|
|
1736
1748
|
}
|
|
1737
1749
|
// Do not allow user to enter only space without any input value
|
|
@@ -2043,7 +2055,7 @@
|
|
|
2043
2055
|
return callback();
|
|
2044
2056
|
});
|
|
2045
2057
|
}
|
|
2046
|
-
else if (!
|
|
2058
|
+
else if (!lodashEs.includes(['change'], eventName)) {
|
|
2047
2059
|
super.handleEvent(node, eventName, callback, locals);
|
|
2048
2060
|
}
|
|
2049
2061
|
}
|
|
@@ -2089,7 +2101,7 @@
|
|
|
2089
2101
|
}, {
|
|
2090
2102
|
type: i0.Optional
|
|
2091
2103
|
}] }], null); })();
|
|
2092
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(RadiosetComponent, { className: "RadiosetComponent", filePath: "radioset/radioset.component.ts", lineNumber:
|
|
2104
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(RadiosetComponent, { className: "RadiosetComponent", filePath: "radioset/radioset.component.ts", lineNumber: 26 }); })();
|
|
2093
2105
|
|
|
2094
2106
|
const selectProps = new Map([
|
|
2095
2107
|
['autofocus', i2.PROP_BOOLEAN],
|
|
@@ -2185,7 +2197,7 @@
|
|
|
2185
2197
|
}
|
|
2186
2198
|
// Change event is registered from the template, Prevent the framework from registering one more event
|
|
2187
2199
|
handleEvent(node, eventName, eventCallback, locals) {
|
|
2188
|
-
if (!
|
|
2200
|
+
if (!lodashEs.includes(['blur', 'change'], eventName)) {
|
|
2189
2201
|
super.handleEvent(this.selectEl.nativeElement, eventName, eventCallback, locals);
|
|
2190
2202
|
}
|
|
2191
2203
|
}
|
|
@@ -2312,7 +2324,7 @@
|
|
|
2312
2324
|
type: i0.ViewChild,
|
|
2313
2325
|
args: ['select', { static: true, read: i0.ElementRef }]
|
|
2314
2326
|
}] }); })();
|
|
2315
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "select/select.component.ts", lineNumber:
|
|
2327
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "select/select.component.ts", lineNumber: 22 }); })();
|
|
2316
2328
|
|
|
2317
2329
|
const switchProps = new Map([
|
|
2318
2330
|
['class', i2.PROP_STRING],
|
|
@@ -2407,7 +2419,7 @@
|
|
|
2407
2419
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2408
2420
|
setSelectedValue() {
|
|
2409
2421
|
if (i1$1.isDefined(this.datavalue) || i1$1.isDefined(this.toBeProcessedDatavalue)) {
|
|
2410
|
-
this.selectedItem =
|
|
2422
|
+
this.selectedItem = lodashEs.find(this.datasetItems, { selected: true });
|
|
2411
2423
|
return;
|
|
2412
2424
|
}
|
|
2413
2425
|
// If no value is provided, set first value as default if options are available else set -1 ie no selection
|
|
@@ -2426,7 +2438,7 @@
|
|
|
2426
2438
|
updateHighlighter(skipAnimation) {
|
|
2427
2439
|
const handler = $(this.nativeElement).find('span.app-switch-overlay');
|
|
2428
2440
|
this.setSelectedValue();
|
|
2429
|
-
let left, index = this.selectedItem ?
|
|
2441
|
+
let left, index = this.selectedItem ? lodashEs.findIndex(this.datasetItems, { key: this.selectedItem.key }) : -1;
|
|
2430
2442
|
if (index === undefined || index === null) {
|
|
2431
2443
|
index = -1;
|
|
2432
2444
|
}
|
|
@@ -2456,7 +2468,7 @@
|
|
|
2456
2468
|
}
|
|
2457
2469
|
this.modelByKey = option.key;
|
|
2458
2470
|
this.invokeOnTouched();
|
|
2459
|
-
if (this.selectedItem && $index ===
|
|
2471
|
+
if (this.selectedItem && $index === lodashEs.findIndex(this.datasetItems, { key: this.selectedItem.key })) {
|
|
2460
2472
|
if (this.datasetItems.length === 2) {
|
|
2461
2473
|
$index = $index === 1 ? 0 : 1;
|
|
2462
2474
|
}
|
|
@@ -2516,7 +2528,7 @@
|
|
|
2516
2528
|
}, {
|
|
2517
2529
|
type: i0.Optional
|
|
2518
2530
|
}] }], null); })();
|
|
2519
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SwitchComponent, { className: "SwitchComponent", filePath: "switch/switch.component.ts", lineNumber:
|
|
2531
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SwitchComponent, { className: "SwitchComponent", filePath: "switch/switch.component.ts", lineNumber: 25 }); })();
|
|
2520
2532
|
|
|
2521
2533
|
const inputCalendarTypeProps = new Map([
|
|
2522
2534
|
['autocomplete', { value: true, ...i2.PROP_BOOLEAN }],
|
|
@@ -3035,7 +3047,7 @@
|
|
|
3035
3047
|
type: i0.ViewChild,
|
|
3036
3048
|
args: ['input', { read: i3.IMaskDirective }]
|
|
3037
3049
|
}] }); })();
|
|
3038
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(InputTextComponent, { className: "InputTextComponent", filePath: "text/text/input-text.component.ts", lineNumber:
|
|
3050
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(InputTextComponent, { className: "InputTextComponent", filePath: "text/text/input-text.component.ts", lineNumber: 23 }); })();
|
|
3039
3051
|
|
|
3040
3052
|
const textareaProps = new Map([
|
|
3041
3053
|
['autofocus', i2.PROP_BOOLEAN],
|
|
@@ -3147,7 +3159,7 @@
|
|
|
3147
3159
|
let mobileInputVal;
|
|
3148
3160
|
// In case of mobile date / time picker check for input element's value which has 'mobile-input' class
|
|
3149
3161
|
if (this.inputEl.length > 1 && this.inputEl.hasClass('mobile-input')) {
|
|
3150
|
-
|
|
3162
|
+
lodashEs.forEach(this.inputEl, (el) => {
|
|
3151
3163
|
if ($(el).hasClass('mobile-input') && el.value) {
|
|
3152
3164
|
mobileInputVal = el.value;
|
|
3153
3165
|
}
|
|
@@ -3394,5 +3406,6 @@
|
|
|
3394
3406
|
exports.SelectComponent = SelectComponent;
|
|
3395
3407
|
exports.SwitchComponent = SwitchComponent;
|
|
3396
3408
|
exports.TextareaComponent = TextareaComponent;
|
|
3409
|
+
exports.unStringify = unStringify;
|
|
3397
3410
|
|
|
3398
3411
|
}));
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef, Injector, OnInit } from '@angular/core';
|
|
|
2
2
|
import { NgModel } from '@angular/forms';
|
|
3
3
|
import { BaseFormCustomComponent } from '../base-form-custom.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const unStringify: (val: any, defaultVal?: any) => any;
|
|
5
6
|
export declare class CheckboxComponent extends BaseFormCustomComponent implements OnInit, AfterViewInit {
|
|
6
7
|
type: any;
|
|
7
8
|
static initializeProps: void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injector,
|
|
1
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import { DataSetItem, IWidgetConfig } from '@wm/components/base';
|
|
4
4
|
import { BaseFormCustomComponent } from './base-form-custom.component';
|
|
@@ -44,7 +44,7 @@ export declare abstract class DatasetAwareFormComponent extends BaseFormCustomCo
|
|
|
44
44
|
set modelByKey(val: any);
|
|
45
45
|
get datavalue(): any;
|
|
46
46
|
set datavalue(val: any);
|
|
47
|
-
protected constructor(inj: Injector, config: IWidgetConfig, groupby?: string);
|
|
47
|
+
protected constructor(inj: Injector, config: IWidgetConfig, explicitContext: any, groupby?: string);
|
|
48
48
|
/**
|
|
49
49
|
* This function sets the _datavalue value from the model and sets the selected flag when item is found.
|
|
50
50
|
* Here model is the value obtained from ngModel.
|
|
@@ -59,7 +59,7 @@ export declare abstract class DatasetAwareFormComponent extends BaseFormCustomCo
|
|
|
59
59
|
* @param values represent the datavalue.
|
|
60
60
|
*/
|
|
61
61
|
protected selectByValue(values: Array<any> | any): void;
|
|
62
|
-
protected readonly _debounceDatavalueUpdation: any
|
|
62
|
+
protected readonly _debounceDatavalueUpdation: import("lodash").DebouncedFunc<(values: any) => void>;
|
|
63
63
|
protected initDisplayValues(): void;
|
|
64
64
|
protected initDatasetItems(): void;
|
|
65
65
|
protected postDatasetItemsInit(): void;
|
|
@@ -71,6 +71,6 @@ export declare abstract class DatasetAwareFormComponent extends BaseFormCustomCo
|
|
|
71
71
|
onPropertyChange(key: string, nv: any, ov?: any): void;
|
|
72
72
|
ngOnInit(): void;
|
|
73
73
|
ngOnDestroy(): void;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatasetAwareFormComponent, [null, null, { attribute: "groupby"; }]>;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatasetAwareFormComponent, [null, null, { optional: true; }, { attribute: "groupby"; }]>;
|
|
75
75
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatasetAwareFormComponent>;
|
|
76
76
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Inject, Injectable, Injector, Optional } from '@angular/core';
|
|
2
2
|
import { DataSource } from '@wm/core';
|
|
3
3
|
import { StylableComponent, WidgetConfig } from '@wm/components/base';
|
|
4
|
+
import { has, set } from "lodash-es";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export class BaseFormComponent extends StylableComponent {
|
|
6
|
-
constructor(inj, config, initPromise) {
|
|
7
|
-
super(inj, config, initPromise);
|
|
7
|
+
constructor(inj, config, explicitContext, initPromise) {
|
|
8
|
+
super(inj, config, explicitContext, initPromise);
|
|
8
9
|
this.inj = inj;
|
|
9
10
|
this.binddatavalue = this.$element.attr('datavalue.bind');
|
|
10
11
|
}
|
|
@@ -33,11 +34,11 @@ export class BaseFormComponent extends StylableComponent {
|
|
|
33
34
|
}
|
|
34
35
|
binddatavalue = binddatavalue.replace(/\[\$i\]/g, '[0]');
|
|
35
36
|
// In case of list widget context will be the listItem.
|
|
36
|
-
if (
|
|
37
|
-
|
|
37
|
+
if (has(this.context, binddatavalue.split('.')[0])) {
|
|
38
|
+
set(this.context, binddatavalue, value);
|
|
38
39
|
}
|
|
39
40
|
else {
|
|
40
|
-
|
|
41
|
+
set(this.viewParent, binddatavalue, value);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
invokeOnChange(value, $event) {
|
|
@@ -70,7 +71,7 @@ export class BaseFormComponent extends StylableComponent {
|
|
|
70
71
|
});
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject(Promise)); }; }
|
|
74
|
+
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject('EXPLICIT_CONTEXT', 8), i0.ɵɵinject(Promise)); }; }
|
|
74
75
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BaseFormComponent, factory: BaseFormComponent.ɵfac }); }
|
|
75
76
|
}
|
|
76
77
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseFormComponent, [{
|
|
@@ -78,5 +79,10 @@ export class BaseFormComponent extends StylableComponent {
|
|
|
78
79
|
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
79
80
|
type: Inject,
|
|
80
81
|
args: [WidgetConfig]
|
|
82
|
+
}] }, { type: undefined, decorators: [{
|
|
83
|
+
type: Inject,
|
|
84
|
+
args: ['EXPLICIT_CONTEXT']
|
|
85
|
+
}, {
|
|
86
|
+
type: Optional
|
|
81
87
|
}] }, { type: Promise }], null); })();
|
|
82
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1mb3JtLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4u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