@wavemaker/app-ng-runtime 11.8.0-next.24904 → 11.8.0-next.27301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/build-task/bundles/index.umd.js +5 -5
- app-ng-runtime/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +1 -1
- app-ng-runtime/build-task/esm2022/page/page.build.mjs +3 -2
- app-ng-runtime/build-task/fesm2022/index.mjs +2 -1
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +5 -5
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +3 -2
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.directive.mjs +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/bundles/index.umd.js +6 -6
- app-ng-runtime/components/advanced/login/esm2022/login.component.mjs +4 -3
- app-ng-runtime/components/advanced/login/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/advanced/login/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +203 -171
- app-ng-runtime/components/base/esm2022/directives/show-in-device.directive.mjs +1 -1
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +12 -11
- app-ng-runtime/components/base/esm2022/pipes/wm-pipe.mjs +3 -2
- app-ng-runtime/components/base/esm2022/utils/data-utils.mjs +30 -29
- app-ng-runtime/components/base/esm2022/utils/form-utils.mjs +47 -41
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -7
- app-ng-runtime/components/base/esm2022/utils/widget-utils.mjs +28 -27
- app-ng-runtime/components/base/esm2022/widgets/common/base/base-container.component.mjs +4 -3
- app-ng-runtime/components/base/esm2022/widgets/common/base/base-field-validations.mjs +24 -21
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +12 -11
- app-ng-runtime/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +40 -14
- app-ng-runtime/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +1 -1
- app-ng-runtime/components/base/esm2022/widgets/common/partial/partial.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +6 -5
- app-ng-runtime/components/base/esm2022/widgets/framework/deviceview.mjs +1 -1
- app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +3 -2
- app-ng-runtime/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +4 -3
- app-ng-runtime/components/base/fesm2022/index.mjs +206 -173
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
- app-ng-runtime/components/base/utils/data-utils.d.ts +0 -1
- app-ng-runtime/components/base/utils/widget-utils.d.ts +2 -2
- app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
- app-ng-runtime/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
- app-ng-runtime/components/basic/default/bundles/index.umd.js +10 -10
- app-ng-runtime/components/basic/default/esm2022/label/label.directive.mjs +4 -3
- app-ng-runtime/components/basic/default/esm2022/spinner/spinner.component.mjs +6 -5
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +7 -6
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +13 -13
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +5 -4
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +6 -5
- app-ng-runtime/components/basic/progress/esm2022/utils.mjs +3 -3
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +10 -9
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +15 -10
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +14 -8
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +13 -7
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -2
- app-ng-runtime/components/basic/search/bundles/index.umd.js +67 -65
- app-ng-runtime/components/basic/search/esm2022/data-provider/data-provider.mjs +1 -1
- app-ng-runtime/components/basic/search/esm2022/data-provider/local-data-provider.mjs +26 -23
- app-ng-runtime/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +12 -11
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +31 -30
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +66 -63
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/tree/bundles/index.umd.js +9 -9
- app-ng-runtime/components/basic/tree/esm2022/tree.component.mjs +7 -6
- app-ng-runtime/components/basic/tree/fesm2022/index.mjs +6 -5
- app-ng-runtime/components/basic/tree/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/chart/bundles/index.umd.js +72 -63
- app-ng-runtime/components/chart/chart.component.d.ts +1 -1
- app-ng-runtime/components/chart/chart.utils.d.ts +3 -3
- app-ng-runtime/components/chart/esm2022/chart.component.mjs +58 -48
- app-ng-runtime/components/chart/esm2022/chart.utils.mjs +14 -13
- app-ng-runtime/components/chart/fesm2022/index.mjs +69 -59
- app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +16 -16
- app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +14 -13
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +13 -12
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +5 -5
- app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +3 -2
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/panel.component.d.ts +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +17 -17
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +15 -14
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -13
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +75 -75
- app-ng-runtime/components/data/form/esm2022/form-action/form-action.directive.mjs +3 -2
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +10 -9
- app-ng-runtime/components/data/form/esm2022/form.component.mjs +54 -53
- app-ng-runtime/components/data/form/esm2022/live-filter/live-filter.directive.mjs +3 -2
- app-ng-runtime/components/data/form/esm2022/live-form/live-form.directive.mjs +11 -10
- app-ng-runtime/components/data/form/fesm2022/index.mjs +77 -76
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form.component.d.ts +2 -2
- app-ng-runtime/components/data/form/live-form/live-form.directive.d.ts +1 -1
- app-ng-runtime/components/data/list/bundles/index.umd.js +692 -687
- app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +1 -1
- app-ng-runtime/components/data/list/esm2022/list.animator.mjs +5 -3
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +687 -682
- app-ng-runtime/components/data/list/fesm2022/index.mjs +690 -684
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +53 -53
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +1 -1
- app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +2 -2
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +14 -14
- app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +12 -11
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs +11 -10
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +175 -172
- app-ng-runtime/components/data/table/esm2022/table-action/table-action.directive.mjs +3 -2
- app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +19 -18
- app-ng-runtime/components/data/table/esm2022/table-cud.directive.mjs +7 -6
- app-ng-runtime/components/data/table/esm2022/table-filter.directive.mjs +53 -55
- app-ng-runtime/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +3 -2
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +98 -91
- app-ng-runtime/components/data/table/fesm2022/index.mjs +172 -168
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +6 -6
- app-ng-runtime/components/data/table/table.component.d.ts +2 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +2 -2
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +3 -3
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +1 -1
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +33 -31
- app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +31 -28
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs +30 -27
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +29 -28
- app-ng-runtime/components/input/chips/chips.component.d.ts +1 -1
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +27 -25
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +26 -24
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form.component.d.ts +3 -3
- app-ng-runtime/components/input/default/bundles/index.umd.js +75 -62
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +4 -4
- app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +14 -8
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +3 -2
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +6 -4
- app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +29 -23
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -3
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +20 -18
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +2 -2
- app-ng-runtime/components/input/default/fesm2022/index.mjs +75 -62
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +53 -51
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +34 -31
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +5 -4
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +5 -4
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -6
- app-ng-runtime/components/input/epoch/esm2022/picker/picker.component.mjs +1 -1
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +6 -5
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +48 -45
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +15 -15
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +13 -12
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +12 -11
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/bundles/index.umd.js +12 -12
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +10 -9
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +9 -8
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +1 -1
- app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +2 -2
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +23 -22
- app-ng-runtime/components/navigation/menu/esm2022/menu-adapator.component.mjs +3 -2
- app-ng-runtime/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +6 -5
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +10 -8
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +20 -18
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +12 -1
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +1 -1
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/bundles/index.umd.js +6 -6
- app-ng-runtime/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +3 -2
- app-ng-runtime/components/prefab/esm2022/prefab.directive.mjs +3 -2
- app-ng-runtime/components/prefab/fesm2022/index.mjs +3 -2
- app-ng-runtime/components/prefab/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +119 -130
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/services/field-type.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/field-widget.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/pagination.service.mjs +7 -6
- app-ng-runtime/core/esm2022/services/state-persistence.service.mjs +17 -16
- app-ng-runtime/core/esm2022/services/utils.service.mjs +3 -2
- app-ng-runtime/core/esm2022/services/viewport.service.mjs +3 -2
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +5 -4
- app-ng-runtime/core/esm2022/utils/expression-parser.mjs +5 -4
- app-ng-runtime/core/esm2022/utils/lru-cache.mjs +3 -2
- app-ng-runtime/core/esm2022/utils/utils.mjs +79 -82
- app-ng-runtime/core/esm2022/utils/watcher.mjs +9 -7
- app-ng-runtime/core/fesm2022/index.mjs +117 -123
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/services/pagination.service.d.ts +1 -1
- app-ng-runtime/core/utils/utils.d.ts +5 -9
- app-ng-runtime/http/bundles/index.umd.js +7 -7
- app-ng-runtime/http/esm2022/http.service.mjs +5 -4
- app-ng-runtime/http/esm2022/wm-http-request.mjs +1 -1
- app-ng-runtime/http/esm2022/wm-http-response.mjs +1 -1
- app-ng-runtime/http/fesm2022/index.mjs +4 -3
- app-ng-runtime/http/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +24 -20
- app-ng-runtime/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +5 -4
- app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +12 -8
- app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +5 -3
- app-ng-runtime/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +3 -2
- app-ng-runtime/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +5 -4
- app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs +21 -16
- app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +7 -7
- app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +2 -2
- app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +4 -3
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs +4 -3
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +8 -8
- app-ng-runtime/mobile/components/data/media-list/esm2022/media-list.component.mjs +4 -3
- app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs +3 -2
- app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +5 -5
- app-ng-runtime/mobile/components/page/default/esm2022/page.directive.mjs +3 -2
- app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +9 -9
- app-ng-runtime/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +7 -6
- app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs +6 -5
- app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +25 -25
- app-ng-runtime/mobile/core/esm2022/services/device-file-download.service.mjs +5 -4
- app-ng-runtime/mobile/core/esm2022/services/device-file-opener.service.mjs +3 -2
- app-ng-runtime/mobile/core/esm2022/services/device-file-upload.service.mjs +4 -3
- app-ng-runtime/mobile/core/esm2022/services/device-file.service.mjs +6 -5
- app-ng-runtime/mobile/core/esm2022/services/device.service.mjs +3 -2
- app-ng-runtime/mobile/core/esm2022/services/ext-app-message.service.mjs +5 -4
- app-ng-runtime/mobile/core/esm2022/services/network.service.mjs +9 -8
- app-ng-runtime/mobile/core/fesm2022/index.mjs +22 -21
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/core/services/ext-app-message.service.d.ts +1 -1
- app-ng-runtime/mobile/core/services/network.service.d.ts +7 -1
- app-ng-runtime/mobile/offline/bundles/index.umd.js +161 -144
- app-ng-runtime/mobile/offline/esm2022/models/local-db-store.mjs +23 -21
- app-ng-runtime/mobile/offline/esm2022/services/change-log.service.mjs +7 -6
- app-ng-runtime/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +37 -35
- app-ng-runtime/mobile/offline/esm2022/services/local-db-management.service.mjs +54 -45
- app-ng-runtime/mobile/offline/esm2022/services/local-db.service.mjs +5 -4
- app-ng-runtime/mobile/offline/esm2022/services/workers/error-blocker.mjs +4 -3
- app-ng-runtime/mobile/offline/esm2022/services/workers/file-handler.mjs +18 -13
- app-ng-runtime/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +9 -5
- app-ng-runtime/mobile/offline/esm2022/utils/live-variable.utils.mjs +12 -11
- app-ng-runtime/mobile/offline/esm2022/utils/query-executor.utils.mjs +5 -4
- app-ng-runtime/mobile/offline/esm2022/utils/security.utils.mjs +3 -2
- app-ng-runtime/mobile/offline/fesm2022/index.mjs +156 -138
- app-ng-runtime/mobile/offline/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/runtime/bundles/index.umd.js +11 -8
- app-ng-runtime/mobile/runtime/esm2022/mobile-runtime.module.mjs +3 -2
- app-ng-runtime/mobile/runtime/esm2022/services/cookie.service.mjs +6 -2
- app-ng-runtime/mobile/runtime/esm2022/services/http-interceptor.service.mjs +4 -3
- app-ng-runtime/mobile/runtime/fesm2022/index.mjs +8 -4
- app-ng-runtime/mobile/runtime/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +2 -2
- app-ng-runtime/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +3 -3
- app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs +2 -2
- app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/variables/bundles/index.umd.js +23 -16
- app-ng-runtime/mobile/variables/esm2022/services/camera-service.mjs +2 -2
- app-ng-runtime/mobile/variables/esm2022/services/datasync-service.mjs +10 -9
- app-ng-runtime/mobile/variables/esm2022/services/file-service.mjs +11 -3
- app-ng-runtime/mobile/variables/fesm2022/index.mjs +19 -11
- app-ng-runtime/mobile/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/oAuth/bundles/index.umd.js +12 -12
- app-ng-runtime/oAuth/esm2022/oAuth.service.mjs +4 -3
- app-ng-runtime/oAuth/esm2022/oAuth.utils.mjs +8 -7
- app-ng-runtime/oAuth/fesm2022/index.mjs +9 -8
- app-ng-runtime/oAuth/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +121 -120
- app-ng-runtime/runtime/base/esm2022/components/base-layout.component.mjs +4 -3
- app-ng-runtime/runtime/base/esm2022/components/base-page.component.mjs +14 -13
- app-ng-runtime/runtime/base/esm2022/components/base-partial.component.mjs +13 -12
- app-ng-runtime/runtime/base/esm2022/components/base-prefab.component.mjs +15 -14
- app-ng-runtime/runtime/base/esm2022/components/base-spa-page.component.mjs +14 -13
- app-ng-runtime/runtime/base/esm2022/components/custom-toaster.component.mjs +6 -5
- app-ng-runtime/runtime/base/esm2022/directives/accessroles.directive.mjs +11 -10
- app-ng-runtime/runtime/base/esm2022/guards/page-not-found.guard.mjs +1 -1
- app-ng-runtime/runtime/base/esm2022/guards/role.guard.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/app-defaults.service.mjs +1 -1
- app-ng-runtime/runtime/base/esm2022/services/app.manager.service.mjs +17 -14
- app-ng-runtime/runtime/base/esm2022/services/app.service.mjs +7 -6
- app-ng-runtime/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/http-interceptor.services.mjs +4 -3
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +12 -10
- app-ng-runtime/runtime/base/esm2022/services/navigation.service.mjs +8 -7
- app-ng-runtime/runtime/base/esm2022/services/prefab-manager.service.mjs +3 -2
- app-ng-runtime/runtime/base/esm2022/services/spinner.service.mjs +7 -6
- app-ng-runtime/runtime/base/esm2022/services/toaster.service.mjs +6 -5
- app-ng-runtime/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +6 -7
- app-ng-runtime/runtime/base/fesm2022/index.mjs +119 -117
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/services/i18n.service.d.ts +1 -1
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +7 -7
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +4 -3
- app-ng-runtime/runtime/dynamic/esm2022/main.mjs +3 -2
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +4 -3
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/jquery-ui/ui/widgets/droppable.js +7 -7
- app-ng-runtime/scripts/jquery-ui/ui/widgets/resizable.js +13 -10
- app-ng-runtime/scripts/jquery-ui/ui/widgets/sortable.js +7 -7
- app-ng-runtime/security/bundles/index.umd.js +14 -14
- app-ng-runtime/security/esm2022/security.service.mjs +12 -11
- app-ng-runtime/security/fesm2022/index.mjs +11 -10
- app-ng-runtime/security/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/security/security.service.d.ts +1 -1
- app-ng-runtime/swipey/esm2022/swipe.animation.mjs +1 -1
- app-ng-runtime/swipey/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/transpiler/bundles/index.umd.js +10 -9
- app-ng-runtime/transpiler/esm2022/build.mjs +8 -6
- app-ng-runtime/transpiler/fesm2022/index.mjs +7 -5
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +155 -145
- app-ng-runtime/variables/esm2022/manager/action/login-action.manager.mjs +15 -14
- app-ng-runtime/variables/esm2022/manager/action/notification-action.manager.mjs +9 -8
- app-ng-runtime/variables/esm2022/manager/variable/base-variable.manager.mjs +3 -2
- app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +11 -10
- app-ng-runtime/variables/esm2022/service/variables.service.mjs +7 -6
- app-ng-runtime/variables/esm2022/util/action/navigation-action.utils.mjs +4 -4
- app-ng-runtime/variables/esm2022/util/variable/pagination.utils.mjs +30 -23
- app-ng-runtime/variables/esm2022/util/variable/service-variable.utils.mjs +29 -28
- app-ng-runtime/variables/esm2022/util/variable/variables.utils.mjs +75 -70
- app-ng-runtime/variables/fesm2022/index.mjs +169 -158
- app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/util/variable/service-variable.utils.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/basic'), require('@wm/core')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/basic', '@wm/core'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.chart = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.basic, global.wm.core));
|
|
5
|
-
})(this, (function (exports, i0, i3, base, i2, i1) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/basic'), require('@wm/core'), require('lodash-es')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/basic', '@wm/core', 'lodash-es'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.chart = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.basic, global.wm.core, global._));
|
|
5
|
+
})(this, (function (exports, i0, i3, base, i2, i1, lodashEs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
'small': 0.3,
|
|
169
169
|
'medium': 0.6,
|
|
170
170
|
'large': 0.7
|
|
171
|
-
}, barSpacingMapInvert =
|
|
171
|
+
}, barSpacingMapInvert = lodashEs.invert(barSpacingMap), donutRatioMapInvert = lodashEs.invert(donutRatioMap), tickformats = {
|
|
172
172
|
'Thousand': {
|
|
173
173
|
'prefix': 'K',
|
|
174
174
|
'divider': 1000
|
|
@@ -207,11 +207,11 @@
|
|
|
207
207
|
// returns true if chart type is area
|
|
208
208
|
const isPieType = type => isPieChart(type) || isDonutChart(type);
|
|
209
209
|
// The format of chart data is array of json objects in case of the following types of chart
|
|
210
|
-
const isChartDataJSON = type =>
|
|
210
|
+
const isChartDataJSON = type => lodashEs.includes(dataTypeJSON, type) || !lodashEs.includes(chartTypes, type);
|
|
211
211
|
// The format of chart data is array of objects in case of the following types of chart
|
|
212
|
-
const isChartDataArray = type =>
|
|
212
|
+
const isChartDataArray = type => lodashEs.includes(dataTypeArray, type);
|
|
213
213
|
// returns true is the chart type is 'line', 'area' or 'cumulative line' else false
|
|
214
|
-
const isLineTypeChart = type =>
|
|
214
|
+
const isLineTypeChart = type => lodashEs.includes(lineTypeCharts, type);
|
|
215
215
|
// X/Y Domain properties are supported only for Column and Area charts
|
|
216
216
|
const isAxisDomainSupported = type => isColumnChart(type) || isAreaChart(type);
|
|
217
217
|
// Returns bar spacing value
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
return isChartDataJSON(type) ? 'jsonFormat' : 'arrayFormat';
|
|
413
413
|
};
|
|
414
414
|
// Sample data to populate when no data is bound
|
|
415
|
-
const getSampleData = widgetContext => constructSampleData(getDataType(widgetContext),
|
|
415
|
+
const getSampleData = widgetContext => constructSampleData(getDataType(widgetContext), lodashEs.split(widgetContext.yaxisdatakey, ',').length, widgetContext.shape);
|
|
416
416
|
// Check whether X/Y Domain was set to Min and is supported for the present chart
|
|
417
417
|
const isAxisDomainValid = (widgetContext, axis) => {
|
|
418
418
|
if (widgetContext[axis + 'domain'] === 'Min' && (isAxisDomainSupported(widgetContext.type))) {
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
};
|
|
423
423
|
// Check whether min and max values are finite or not
|
|
424
424
|
const areMinMaxValuesValid = values => {
|
|
425
|
-
if (
|
|
425
|
+
if (lodashEs.isFinite(values.min) && lodashEs.isFinite(values.max)) {
|
|
426
426
|
return true;
|
|
427
427
|
}
|
|
428
428
|
return false;
|
|
@@ -462,8 +462,8 @@
|
|
|
462
462
|
if (!propertyValueMap || i1.isEmptyObject(propertyValueMap)) {
|
|
463
463
|
propertyValueMap = {};
|
|
464
464
|
}
|
|
465
|
-
|
|
466
|
-
if (
|
|
465
|
+
lodashEs.forEach(basicProperties, prop => {
|
|
466
|
+
if (lodashEs.isUndefined(propertyValueMap[prop])) {
|
|
467
467
|
propertyValueMap[prop] = widgetContext[prop];
|
|
468
468
|
}
|
|
469
469
|
});
|
|
@@ -668,7 +668,7 @@
|
|
|
668
668
|
}
|
|
669
669
|
// Setting the legend type choosen by user or default it will be furious
|
|
670
670
|
chart.legend.vers((propertyValueMap.legendtype && propertyValueMap.legendtype.toLowerCase()) || 'furious');
|
|
671
|
-
if (!
|
|
671
|
+
if (!lodashEs.includes(chartTypes, widgetContext.type)) {
|
|
672
672
|
chart = nv.models.multiBarChart()
|
|
673
673
|
.x(d => d.x)
|
|
674
674
|
.y(d => d.y);
|
|
@@ -738,10 +738,10 @@
|
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
// Support for custom colors if user gives direct string of colors in text box
|
|
741
|
-
if (
|
|
742
|
-
colors =
|
|
741
|
+
if (lodashEs.isString(propertyValueMap.customcolors) && propertyValueMap.customcolors) {
|
|
742
|
+
colors = lodashEs.split(propertyValueMap.customcolors, ',');
|
|
743
743
|
}
|
|
744
|
-
if (
|
|
744
|
+
if (lodashEs.isArray(propertyValueMap.customcolors)) {
|
|
745
745
|
colors = propertyValueMap.customcolors;
|
|
746
746
|
}
|
|
747
747
|
showLegend = isShowLegend(propertyValueMap.showlegend);
|
|
@@ -858,8 +858,8 @@
|
|
|
858
858
|
const getLodashOrderByFormat = orderby => {
|
|
859
859
|
let columns;
|
|
860
860
|
const orderByColumns = [], orders = [];
|
|
861
|
-
|
|
862
|
-
columns =
|
|
861
|
+
lodashEs.forEach(lodashEs.split(orderby, ','), function (col) {
|
|
862
|
+
columns = lodashEs.split(col, ':');
|
|
863
863
|
orderByColumns.push(columns[0]);
|
|
864
864
|
orders.push(columns[1]);
|
|
865
865
|
});
|
|
@@ -907,7 +907,7 @@
|
|
|
907
907
|
other than integer unlike the column and bar.It is a nvd3 issue. Inorder to
|
|
908
908
|
support that this is a fix*/
|
|
909
909
|
getxAxisVal(dataObj, xKey, index) {
|
|
910
|
-
const value =
|
|
910
|
+
const value = lodashEs.get(dataObj, xKey);
|
|
911
911
|
// If x axis is other than number type then add indexes
|
|
912
912
|
if (isLineTypeChart(this.type) && !i1.isNumberType(this.xAxisDataType)) {
|
|
913
913
|
// Verification to get the unique data keys
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
input: [[10, 20], [20, 30], [30, 40]];
|
|
938
938
|
min x: 10
|
|
939
939
|
*/
|
|
940
|
-
xValues.min =
|
|
940
|
+
xValues.min = lodashEs.minBy(datum.values, dataObject => dataObject.x || dataObject[0]);
|
|
941
941
|
/*
|
|
942
942
|
compute the max x value
|
|
943
943
|
eg: When data has objects
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
input: [[10, 20], [20, 30], [30, 40]];
|
|
948
948
|
max x: 30
|
|
949
949
|
*/
|
|
950
|
-
xValues.max =
|
|
950
|
+
xValues.max = lodashEs.maxBy(datum.values, dataObject => dataObject.x || dataObject[0]);
|
|
951
951
|
return xValues;
|
|
952
952
|
}
|
|
953
953
|
// Getting the min and max values among all the y values
|
|
@@ -969,13 +969,17 @@
|
|
|
969
969
|
min y values : '20'(among first set) & '30'(among second set)
|
|
970
970
|
max y values : '40'(among first set) & '50'(among second set)
|
|
971
971
|
*/
|
|
972
|
-
|
|
973
|
-
minValues.push(
|
|
974
|
-
|
|
972
|
+
lodashEs.forEach(datum, data => {
|
|
973
|
+
minValues.push(lodashEs.minBy(data.values, function (dataObject) {
|
|
974
|
+
return dataObject.y || dataObject[1];
|
|
975
|
+
}));
|
|
976
|
+
maxValues.push(lodashEs.maxBy(data.values, function (dataObject) {
|
|
977
|
+
return dataObject.y || dataObject[1];
|
|
978
|
+
}));
|
|
975
979
|
});
|
|
976
980
|
// Gets the least and highest values among all the min and max values of respective series of data
|
|
977
|
-
yValues.min =
|
|
978
|
-
yValues.max =
|
|
981
|
+
yValues.min = lodashEs.minBy(minValues, dataObject => dataObject.y || dataObject[1]);
|
|
982
|
+
yValues.max = lodashEs.maxBy(maxValues, dataObject => dataObject.y || dataObject[1]);
|
|
979
983
|
return yValues;
|
|
980
984
|
}
|
|
981
985
|
// If the x-axis values are undefined, we return empty array else we return the values
|
|
@@ -984,7 +988,7 @@
|
|
|
984
988
|
}
|
|
985
989
|
// Returns the single data point based on the type of the data chart accepts
|
|
986
990
|
valueFinder(dataObj, xKey, yKey, index, shape) {
|
|
987
|
-
const xVal = this.getxAxisVal(dataObj, xKey, index), value =
|
|
991
|
+
const xVal = this.getxAxisVal(dataObj, xKey, index), value = lodashEs.get(dataObj, yKey), yVal = parseFloat(value) || value, size = parseFloat(dataObj[this.bubblesize]) || 2;
|
|
988
992
|
let dataPoint = {};
|
|
989
993
|
if (isChartDataJSON(this.type)) {
|
|
990
994
|
dataPoint.x = xVal;
|
|
@@ -1025,10 +1029,10 @@
|
|
|
1025
1029
|
}
|
|
1026
1030
|
let datum = [], yAxisKey, shapes = [], values = [];
|
|
1027
1031
|
const xAxisKey = this.xaxisdatakey, yAxisKeys = this.yaxisdatakey ? this.yaxisdatakey.split(',') : [], dataSet = this.chartData;
|
|
1028
|
-
if (
|
|
1032
|
+
if (lodashEs.isArray(dataSet)) {
|
|
1029
1033
|
if (isPieType(this.type)) {
|
|
1030
1034
|
yAxisKey = yAxisKeys[0];
|
|
1031
|
-
datum =
|
|
1035
|
+
datum = lodashEs.map(dataSet, (dataObj, index) => {
|
|
1032
1036
|
if (!i1.isEmptyObject(dataSet[index])) {
|
|
1033
1037
|
return this.valueFinder(dataSet[index], xAxisKey, yAxisKey);
|
|
1034
1038
|
}
|
|
@@ -1040,9 +1044,9 @@
|
|
|
1040
1044
|
shapes = this.shape === 'random' ? allShapes : this.shape;
|
|
1041
1045
|
}
|
|
1042
1046
|
yAxisKeys.forEach((yAxisKey, series) => {
|
|
1043
|
-
values =
|
|
1047
|
+
values = lodashEs.map(dataSet, (dataObj, index) => {
|
|
1044
1048
|
if (!i1.isEmptyObject(dataSet[index])) {
|
|
1045
|
-
return this.valueFinder(dataSet[index], xAxisKey, yAxisKey, index, (
|
|
1049
|
+
return this.valueFinder(dataSet[index], xAxisKey, yAxisKey, index, (lodashEs.isArray(shapes) && shapes[series]) || this.shape);
|
|
1046
1050
|
}
|
|
1047
1051
|
});
|
|
1048
1052
|
values = this.getValidData(values);
|
|
@@ -1066,21 +1070,21 @@
|
|
|
1066
1070
|
// constructing the grouped data based on the selection of orderby, x & y axis
|
|
1067
1071
|
getVisuallyGroupedData(queryResponse, groupingColumn) {
|
|
1068
1072
|
let groupData = {}, groupValues = [], orderByDetails, maxLength;
|
|
1069
|
-
const chartData = [], _isAreaChart = isAreaChart(this.type), yAxisKey =
|
|
1073
|
+
const chartData = [], _isAreaChart = isAreaChart(this.type), yAxisKey = lodashEs.first(lodashEs.split(this.yaxisdatakey, ','));
|
|
1070
1074
|
this.xDataKeyArr = [];
|
|
1071
|
-
queryResponse =
|
|
1075
|
+
queryResponse = lodashEs.orderBy(queryResponse, lodashEs.split(this.groupby, ','));
|
|
1072
1076
|
if (this.orderby) {
|
|
1073
1077
|
orderByDetails = getLodashOrderByFormat(this.orderby);
|
|
1074
|
-
queryResponse =
|
|
1078
|
+
queryResponse = lodashEs.orderBy(queryResponse, orderByDetails.columns, orderByDetails.orders);
|
|
1075
1079
|
}
|
|
1076
|
-
queryResponse =
|
|
1080
|
+
queryResponse = lodashEs.groupBy(queryResponse, groupingColumn);
|
|
1077
1081
|
// In case of area chart all the series data should be of same length
|
|
1078
1082
|
if (_isAreaChart) {
|
|
1079
|
-
maxLength =
|
|
1083
|
+
maxLength = lodashEs.max(lodashEs.map(queryResponse, obj => obj.length));
|
|
1080
1084
|
}
|
|
1081
|
-
|
|
1082
|
-
groupValues = isAreaChart ?
|
|
1083
|
-
|
|
1085
|
+
lodashEs.forEach(queryResponse, (values, groupKey) => {
|
|
1086
|
+
groupValues = isAreaChart ? lodashEs.fill(new Array(maxLength), [0, 0]) : [];
|
|
1087
|
+
lodashEs.forEachRight(values, (value, index) => {
|
|
1084
1088
|
groupValues[index] = this.valueFinder(value, this.xaxisdatakey, yAxisKey, index);
|
|
1085
1089
|
});
|
|
1086
1090
|
groupData = {
|
|
@@ -1114,14 +1118,14 @@
|
|
|
1114
1118
|
columns.push(visualGroupingColumn);
|
|
1115
1119
|
}
|
|
1116
1120
|
if (groupbyColumns.length) {
|
|
1117
|
-
columns =
|
|
1121
|
+
columns = lodashEs.concat(columns, groupbyColumns);
|
|
1118
1122
|
}
|
|
1119
1123
|
}
|
|
1120
1124
|
// If x and y axis are not included in aggregation need to be included in groupby
|
|
1121
1125
|
if (this.xaxisdatakey !== this.aggregationcolumn) {
|
|
1122
1126
|
columns.push(this.xaxisdatakey);
|
|
1123
1127
|
}
|
|
1124
|
-
|
|
1128
|
+
lodashEs.forEach(yAxisKeys, key => {
|
|
1125
1129
|
if (key !== this.aggregationcolumn) {
|
|
1126
1130
|
columns.push(key);
|
|
1127
1131
|
}
|
|
@@ -1149,16 +1153,17 @@
|
|
|
1149
1153
|
return;
|
|
1150
1154
|
}
|
|
1151
1155
|
if (this.isGroupByEnabled()) {
|
|
1152
|
-
groupByFields =
|
|
1156
|
+
groupByFields = lodashEs.split(this.groupby, ',');
|
|
1153
1157
|
}
|
|
1154
1158
|
if (this.orderby) {
|
|
1155
|
-
sortExpr =
|
|
1156
|
-
columns =
|
|
1159
|
+
sortExpr = lodashEs.replace(this.orderby, /:/g, ' ');
|
|
1160
|
+
columns = lodashEs.uniq(lodashEs.concat(columns, groupByFields, [this.aggregationcolumn]));
|
|
1157
1161
|
orderByColumns = getLodashOrderByFormat(this.orderby).columns;
|
|
1158
1162
|
// If the orderby column is chosen either in groupby or orderby then replace . with $ for that column
|
|
1159
|
-
|
|
1163
|
+
lodashEs.forEach(lodashEs.intersection(columns, orderByColumns), col => {
|
|
1160
1164
|
colAlias = getValidAliasName(col);
|
|
1161
|
-
|
|
1165
|
+
// @ts-ignore
|
|
1166
|
+
sortExpr = lodashEs.replace(sortExpr, col, colAlias);
|
|
1162
1167
|
});
|
|
1163
1168
|
}
|
|
1164
1169
|
if (this.isAggregationEnabled()) {
|
|
@@ -1180,17 +1185,17 @@
|
|
|
1180
1185
|
// Transform the result into a format supported by the chart.
|
|
1181
1186
|
const chartData = [], aggregationAlias = getValidAliasName(this.aggregationcolumn), xAxisAliasKey = getValidAliasName(this.xaxisdatakey), yAxisAliasKeys = [];
|
|
1182
1187
|
yAxisKeys.forEach(yAxisKey => yAxisAliasKeys.push(getValidAliasName(yAxisKey)));
|
|
1183
|
-
|
|
1188
|
+
lodashEs.forEach(response.body.content, (responseContent) => {
|
|
1184
1189
|
const obj = {};
|
|
1185
1190
|
// Set the response in the chartData based on 'aggregationColumn', 'xAxisDataKey' & 'yAxisDataKey'.
|
|
1186
1191
|
if (this.isAggregationEnabled()) {
|
|
1187
1192
|
obj[this.aggregationcolumn] = responseContent[aggregationAlias];
|
|
1188
|
-
obj[this.aggregationcolumn] =
|
|
1193
|
+
obj[this.aggregationcolumn] = lodashEs.get(responseContent, aggregationAlias) || lodashEs.get(responseContent, this.aggregationcolumn);
|
|
1189
1194
|
}
|
|
1190
|
-
obj[this.xaxisdatakey] =
|
|
1195
|
+
obj[this.xaxisdatakey] = lodashEs.get(responseContent, xAxisAliasKey) || lodashEs.get(responseContent, this.xaxisdatakey);
|
|
1191
1196
|
yAxisKeys.forEach((yAxisKey, index) => {
|
|
1192
1197
|
obj[yAxisKey] = responseContent[yAxisAliasKeys[index]];
|
|
1193
|
-
obj[yAxisKey] =
|
|
1198
|
+
obj[yAxisKey] = lodashEs.get(responseContent, yAxisAliasKeys[index]) || lodashEs.get(responseContent, yAxisKey);
|
|
1194
1199
|
});
|
|
1195
1200
|
chartData.push(obj);
|
|
1196
1201
|
});
|
|
@@ -1316,7 +1321,11 @@
|
|
|
1316
1321
|
break;
|
|
1317
1322
|
}
|
|
1318
1323
|
this.selecteditem = dataObj;
|
|
1319
|
-
this.invokeEventCallback('select', {
|
|
1324
|
+
this.invokeEventCallback('select', {
|
|
1325
|
+
$event: event,
|
|
1326
|
+
selectedChartItem: data,
|
|
1327
|
+
selectedItem: this.selecteditem
|
|
1328
|
+
});
|
|
1320
1329
|
});
|
|
1321
1330
|
}
|
|
1322
1331
|
/* Returns Y Scale min value
|
|
@@ -1355,7 +1364,7 @@
|
|
|
1355
1364
|
}
|
|
1356
1365
|
}
|
|
1357
1366
|
// prepare text style props object and set
|
|
1358
|
-
|
|
1367
|
+
lodashEs.forEach(styleProps, (value, key) => {
|
|
1359
1368
|
if (key === 'fontsize' || key === 'fontunit') {
|
|
1360
1369
|
styleObj[value] = this.fontsize + this.fontunit;
|
|
1361
1370
|
}
|
|
@@ -1400,7 +1409,7 @@
|
|
|
1400
1409
|
}
|
|
1401
1410
|
// get the chart object
|
|
1402
1411
|
chart = initChart(this, xDomainValues, yDomainValues, null, !this.binddataset);
|
|
1403
|
-
if (
|
|
1412
|
+
if (lodashEs.isArray(this._processedData)) {
|
|
1404
1413
|
// WMS-19499: To remove chart X-axis old ticks when chart data loaded dynamically.
|
|
1405
1414
|
const oldgTicks = $('#wmChart' + this.$id + ' svg').find('g.nv-x').find('g.tick');
|
|
1406
1415
|
if (oldgTicks && oldgTicks.length) {
|
|
@@ -1491,7 +1500,7 @@
|
|
|
1491
1500
|
this.yaxisdatakey = defaultColumns[1] || null;
|
|
1492
1501
|
}
|
|
1493
1502
|
getCutomizedOptions(prop, fields) {
|
|
1494
|
-
const groupByColumns =
|
|
1503
|
+
const groupByColumns = lodashEs.split(this.groupby, ','), aggColumns = lodashEs.split(this.aggregationcolumn, ',');
|
|
1495
1504
|
if (!this.binddataset) {
|
|
1496
1505
|
return fields;
|
|
1497
1506
|
}
|
|
@@ -1531,7 +1540,7 @@
|
|
|
1531
1540
|
case 'orderby':
|
|
1532
1541
|
// Set the 'aggregationColumn' to show all keys in case of aggregation function is count or to numeric keys in all other cases.
|
|
1533
1542
|
if (this.isLiveVariable && this.isAggregationEnabled()) {
|
|
1534
|
-
newOptions =
|
|
1543
|
+
newOptions = lodashEs.uniq(lodashEs.concat(groupByColumns, aggColumns));
|
|
1535
1544
|
}
|
|
1536
1545
|
break;
|
|
1537
1546
|
case 'bubblesize':
|
|
@@ -1549,12 +1558,12 @@
|
|
|
1549
1558
|
this.numericColumns = [];
|
|
1550
1559
|
this.nonPrimaryColumns = [];
|
|
1551
1560
|
// Fetching all the columns
|
|
1552
|
-
if (this.dataset && !
|
|
1561
|
+
if (this.dataset && !lodashEs.isEmpty(propertiesMap)) {
|
|
1553
1562
|
columns = []; // TODO: fetchPropertiesMapColumns(propertiesMap);
|
|
1554
1563
|
}
|
|
1555
1564
|
if (columns) {
|
|
1556
1565
|
// Iterating through all the columns and fetching the numeric and non primary key columns
|
|
1557
|
-
|
|
1566
|
+
lodashEs.forEach(Object.keys(columns), (key) => {
|
|
1558
1567
|
type = columns[key].type;
|
|
1559
1568
|
if (i1.isNumberType(type)) {
|
|
1560
1569
|
this.numericColumns.push(key);
|
|
@@ -1577,9 +1586,9 @@
|
|
|
1577
1586
|
this.axisoptions = null;
|
|
1578
1587
|
}
|
|
1579
1588
|
// liveVariables contain data in 'data' property' of the variable
|
|
1580
|
-
this.chartData = this.isLiveVariable ? newVal || '' : (newVal && newVal.dataValue === '' &&
|
|
1589
|
+
this.chartData = this.isLiveVariable ? newVal || '' : (newVal && newVal.dataValue === '' && lodashEs.keys(newVal).length === 1) ? '' : newVal;
|
|
1581
1590
|
// if the data returned is an object make it an array of object
|
|
1582
|
-
if (!
|
|
1591
|
+
if (!lodashEs.isArray(this.chartData) && lodashEs.isObject(this.chartData)) {
|
|
1583
1592
|
this.chartData = [this.chartData];
|
|
1584
1593
|
}
|
|
1585
1594
|
if (newVal && newVal.filterFields) {
|
|
@@ -1649,7 +1658,7 @@
|
|
|
1649
1658
|
this._plotChartProxy();
|
|
1650
1659
|
break;
|
|
1651
1660
|
}
|
|
1652
|
-
if (
|
|
1661
|
+
if (lodashEs.includes(advanceDataProps, key)) {
|
|
1653
1662
|
this._plotChartProxy();
|
|
1654
1663
|
}
|
|
1655
1664
|
}
|
|
@@ -1688,7 +1697,7 @@
|
|
|
1688
1697
|
this.chartData = [];
|
|
1689
1698
|
this._processedData = [];
|
|
1690
1699
|
this._subsciptions = [];
|
|
1691
|
-
this._plotChartProxy =
|
|
1700
|
+
this._plotChartProxy = lodashEs.debounce(this.plotChartProxy.bind(this), 100);
|
|
1692
1701
|
this.redraw = this._plotChartProxy.bind(this);
|
|
1693
1702
|
base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER, ['fontsize', 'fontunit', 'color', 'fontfamily', 'fontweight', 'fontstyle', 'textdecoration']);
|
|
1694
1703
|
// generate unique id for the component
|
|
@@ -1705,7 +1714,7 @@
|
|
|
1705
1714
|
ngAfterViewInit() {
|
|
1706
1715
|
super.ngAfterViewInit();
|
|
1707
1716
|
// For old projects
|
|
1708
|
-
if (!
|
|
1717
|
+
if (!lodashEs.includes(['outside', 'inside', 'hide'], this.showlabels)) {
|
|
1709
1718
|
this.showlabels = getBooleanValue(this.showlabels);
|
|
1710
1719
|
this.showlabelsoutside = getBooleanValue(this.showlabelsoutside);
|
|
1711
1720
|
this.showlabels = this.showlabels ? (this.showlabelsoutside ? 'outside' : 'inside') : 'hide';
|
|
@@ -1764,7 +1773,7 @@
|
|
|
1764
1773
|
type: i0.HostBinding,
|
|
1765
1774
|
args: ['class.panel']
|
|
1766
1775
|
}] }); })();
|
|
1767
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(ChartComponent, { className: "ChartComponent", filePath: "chart.component.ts", lineNumber:
|
|
1776
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(ChartComponent, { className: "ChartComponent", filePath: "chart.component.ts", lineNumber: 139 }); })();
|
|
1768
1777
|
|
|
1769
1778
|
const components = [
|
|
1770
1779
|
ChartComponent
|
|
@@ -84,7 +84,7 @@ export declare class ChartComponent extends StylableComponent implements AfterVi
|
|
|
84
84
|
getCutomizedOptions(prop: any, fields: any): any;
|
|
85
85
|
setNumericandNonPrimaryColumns(): void;
|
|
86
86
|
handleDataSet(newVal: any): void;
|
|
87
|
-
_plotChartProxy: any
|
|
87
|
+
_plotChartProxy: import("lodash").DebouncedFunc<any>;
|
|
88
88
|
setDonutCenterLabel(labelValue: any): void;
|
|
89
89
|
onPropertyChange(key: any, newVal: any, oldVal?: any): void;
|
|
90
90
|
handleLoading(data: any): void;
|
|
@@ -7,9 +7,9 @@ export declare const isBubbleChart: (type: any) => boolean;
|
|
|
7
7
|
export declare const isColumnChart: (type: any) => boolean;
|
|
8
8
|
export declare const isAreaChart: (type: any) => boolean;
|
|
9
9
|
export declare const isPieType: (type: any) => boolean;
|
|
10
|
-
export declare const isChartDataJSON: (type: any) =>
|
|
11
|
-
export declare const isChartDataArray: (type: any) =>
|
|
12
|
-
export declare const isLineTypeChart: (type: any) =>
|
|
10
|
+
export declare const isChartDataJSON: (type: any) => boolean;
|
|
11
|
+
export declare const isChartDataArray: (type: any) => boolean;
|
|
12
|
+
export declare const isLineTypeChart: (type: any) => boolean;
|
|
13
13
|
export declare const isAxisDomainSupported: (type: any) => boolean;
|
|
14
14
|
export declare const getBarSpacingValue: (value: any, prop: any) => any;
|
|
15
15
|
export declare const getRadiusValue: (value: any, prop: any) => any;
|