@wavemaker-ai/app-ng-runtime 1.0.0-rc.647469
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.
- package/build-task/.npmignore +2 -0
- package/build-task/advanced/carousel/carousel-template/carousel-template.build.d.ts +2 -0
- package/build-task/advanced/carousel/carousel.build.d.ts +2 -0
- package/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +2 -0
- package/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +2 -0
- package/build-task/advanced/login/login.build.d.ts +2 -0
- package/build-task/advanced/marquee/marquee.build.d.ts +2 -0
- package/build-task/basic/anchor/anchor.build.d.ts +2 -0
- package/build-task/basic/audio/audio.build.d.ts +2 -0
- package/build-task/basic/html/html.build.d.ts +2 -0
- package/build-task/basic/icon/icon.build.d.ts +2 -0
- package/build-task/basic/iframe/iframe.build.d.ts +2 -0
- package/build-task/basic/label/label.build.d.ts +2 -0
- package/build-task/basic/picture/picture.build.d.ts +2 -0
- package/build-task/basic/progress/progress-bar/progress-bar.build.d.ts +2 -0
- package/build-task/basic/progress/progress-circle/progress-circle.build.d.ts +2 -0
- package/build-task/basic/rich-text-editor/rich-text-editor.build.d.ts +2 -0
- package/build-task/basic/search/search.build.d.ts +2 -0
- package/build-task/basic/spinner/spinner.build.d.ts +2 -0
- package/build-task/basic/tree/tree.build.d.ts +1 -0
- package/build-task/basic/video/video.build.d.ts +2 -0
- package/build-task/bundles/index.umd.js +3106 -0
- package/build-task/chart/chart.build.d.ts +2 -0
- package/build-task/containers/accordion/accordion-pane/accordion-pane.build.d.ts +2 -0
- package/build-task/containers/accordion/accordion.build.d.ts +2 -0
- package/build-task/containers/container.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid-column/layout-grid-column.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid-row/layout-grid-row.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid.build.d.ts +2 -0
- package/build-task/containers/linear-layout/linear-layout-item/linear-layout-item.build.d.ts +2 -0
- package/build-task/containers/linear-layout/linear-layout.build.d.ts +2 -0
- package/build-task/containers/panel/panel.build.d.ts +2 -0
- package/build-task/containers/repeat-template.build.d.ts +2 -0
- package/build-task/containers/segmented-control/segment-content/segment-content.build.d.ts +2 -0
- package/build-task/containers/segmented-control/segmented-control.build.d.ts +2 -0
- package/build-task/containers/tabs/tab-pane/tab-pane.build.d.ts +2 -0
- package/build-task/containers/tabs/tabs.build.d.ts +2 -0
- package/build-task/containers/tile/tile.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard-action/wizard-action.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard-step/wizard-step.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard.build.d.ts +2 -0
- package/build-task/data/card/card-actions/card-actions.build.d.ts +2 -0
- package/build-task/data/card/card-content/card-content.build.d.ts +2 -0
- package/build-task/data/card/card-footer/card-footer.build.d.ts +2 -0
- package/build-task/data/card/card.build.d.ts +2 -0
- package/build-task/data/form/form-action/form-action.build.d.ts +2 -0
- package/build-task/data/form/form-field/form-field.build.d.ts +2 -0
- package/build-task/data/form/form.build.d.ts +2 -0
- package/build-task/data/list/list.build.d.ts +2 -0
- package/build-task/data/live-table/live-table.build.d.ts +2 -0
- package/build-task/data/media-list/media-list-item/media-list-item.build.d.ts +2 -0
- package/build-task/data/media-list/media-list.build.d.ts +2 -0
- package/build-task/data/pagination/pagination.build.d.ts +2 -0
- package/build-task/data/table/table-action/table-action.build.d.ts +2 -0
- package/build-task/data/table/table-column/table-column.build.d.ts +2 -0
- package/build-task/data/table/table-column-group/table-column-group.build.d.ts +2 -0
- package/build-task/data/table/table-row/table-row.build.d.ts +2 -0
- package/build-task/data/table/table-row-action/table-row-action.build.d.ts +2 -0
- package/build-task/data/table/table.build.d.ts +2 -0
- package/build-task/device/barcode-scanner/barcode-scanner.build.d.ts +2 -0
- package/build-task/device/camera/camera.build.d.ts +2 -0
- package/build-task/dialogs/alert-dialog/alert-dialog.build.d.ts +2 -0
- package/build-task/dialogs/base/dialog-footer/dialog-footer.build.d.ts +2 -0
- package/build-task/dialogs/confirm-dialog/confirm-dialog.build.d.ts +2 -0
- package/build-task/dialogs/design-dialog/dialog.build.d.ts +2 -0
- package/build-task/dialogs/iframe-dialog/iframe-dialog.build.d.ts +2 -0
- package/build-task/dialogs/login-dialog/login-dialog.build.d.ts +2 -0
- package/build-task/dialogs/partial-dialog/partial-dialog.build.d.ts +2 -0
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +31 -0
- package/build-task/esm2022/advanced/carousel/carousel.build.mjs +45 -0
- package/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +15 -0
- package/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +26 -0
- package/build-task/esm2022/advanced/login/login.build.mjs +15 -0
- package/build-task/esm2022/advanced/marquee/marquee.build.mjs +10 -0
- package/build-task/esm2022/basic/anchor/anchor.build.mjs +15 -0
- package/build-task/esm2022/basic/audio/audio.build.mjs +10 -0
- package/build-task/esm2022/basic/html/html.build.mjs +15 -0
- package/build-task/esm2022/basic/icon/icon.build.mjs +10 -0
- package/build-task/esm2022/basic/iframe/iframe.build.mjs +10 -0
- package/build-task/esm2022/basic/label/label.build.mjs +25 -0
- package/build-task/esm2022/basic/picture/picture.build.mjs +14 -0
- package/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +35 -0
- package/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +15 -0
- package/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +15 -0
- package/build-task/esm2022/basic/search/search.build.mjs +11 -0
- package/build-task/esm2022/basic/spinner/spinner.build.mjs +15 -0
- package/build-task/esm2022/basic/tree/tree.build.mjs +9 -0
- package/build-task/esm2022/basic/video/video.build.mjs +10 -0
- package/build-task/esm2022/chart/chart.build.mjs +10 -0
- package/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +15 -0
- package/build-task/esm2022/containers/accordion/accordion.build.mjs +40 -0
- package/build-task/esm2022/containers/container.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid-column/layout-grid-column.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid-row/layout-grid-row.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid.build.mjs +10 -0
- package/build-task/esm2022/containers/linear-layout/linear-layout-item/linear-layout-item.build.mjs +10 -0
- package/build-task/esm2022/containers/linear-layout/linear-layout.build.mjs +21 -0
- package/build-task/esm2022/containers/panel/panel.build.mjs +21 -0
- package/build-task/esm2022/containers/repeat-template.build.mjs +26 -0
- package/build-task/esm2022/containers/segmented-control/segment-content/segment-content.build.mjs +10 -0
- package/build-task/esm2022/containers/segmented-control/segmented-control.build.mjs +10 -0
- package/build-task/esm2022/containers/tabs/tab-pane/tab-pane.build.mjs +10 -0
- package/build-task/esm2022/containers/tabs/tabs.build.mjs +40 -0
- package/build-task/esm2022/containers/tile/tile.build.mjs +10 -0
- package/build-task/esm2022/containers/wizard/wizard-action/wizard-action.build.mjs +10 -0
- package/build-task/esm2022/containers/wizard/wizard-step/wizard-step.build.mjs +16 -0
- package/build-task/esm2022/containers/wizard/wizard.build.mjs +39 -0
- package/build-task/esm2022/data/card/card-actions/card-actions.build.mjs +10 -0
- package/build-task/esm2022/data/card/card-content/card-content.build.mjs +10 -0
- package/build-task/esm2022/data/card/card-footer/card-footer.build.mjs +10 -0
- package/build-task/esm2022/data/card/card.build.mjs +10 -0
- package/build-task/esm2022/data/form/form-action/form-action.build.mjs +12 -0
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +173 -0
- package/build-task/esm2022/data/form/form.build.mjs +161 -0
- package/build-task/esm2022/data/list/list.build.mjs +89 -0
- package/build-task/esm2022/data/live-table/live-table.build.mjs +21 -0
- package/build-task/esm2022/data/media-list/media-list-item/media-list-item.build.mjs +10 -0
- package/build-task/esm2022/data/media-list/media-list.build.mjs +57 -0
- package/build-task/esm2022/data/pagination/pagination.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-action/table-action.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +294 -0
- package/build-task/esm2022/data/table/table-column-group/table-column-group.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-row/table-row.build.mjs +34 -0
- package/build-task/esm2022/data/table/table-row-action/table-row-action.build.mjs +41 -0
- package/build-task/esm2022/data/table/table.build.mjs +86 -0
- package/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +15 -0
- package/build-task/esm2022/device/camera/camera.build.mjs +15 -0
- package/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/base/dialog-footer/dialog-footer.build.mjs +10 -0
- package/build-task/esm2022/dialogs/confirm-dialog/confirm-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/design-dialog/dialog.build.mjs +17 -0
- package/build-task/esm2022/dialogs/iframe-dialog/iframe-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/login-dialog/login-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/partial-dialog/partial-dialog.build.mjs +40 -0
- package/build-task/esm2022/index.mjs +5 -0
- package/build-task/esm2022/input/calendar/calendar.build.mjs +13 -0
- package/build-task/esm2022/input/chips/chips.build.mjs +11 -0
- package/build-task/esm2022/input/color-picker/color-picker.build.mjs +11 -0
- package/build-task/esm2022/input/currency/currency.build.mjs +11 -0
- package/build-task/esm2022/input/default/button/button.build.mjs +15 -0
- package/build-task/esm2022/input/default/button-group/button-group.build.mjs +10 -0
- package/build-task/esm2022/input/default/checkbox/checkbox.build.mjs +18 -0
- package/build-task/esm2022/input/default/checkboxset/checkboxset.build.mjs +11 -0
- package/build-task/esm2022/input/default/composite/composite.build.mjs +10 -0
- package/build-task/esm2022/input/default/number/number.build.mjs +11 -0
- package/build-task/esm2022/input/default/radioset/radioset.build.mjs +15 -0
- package/build-task/esm2022/input/default/select/select.build.mjs +11 -0
- package/build-task/esm2022/input/default/switch/switch.build.mjs +15 -0
- package/build-task/esm2022/input/default/text/text.build.mjs +11 -0
- package/build-task/esm2022/input/default/textarea/textarea.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/date/date.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/date-time/date-time.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/time/time.build.mjs +11 -0
- package/build-task/esm2022/input/file-upload/file-upload.build.mjs +20 -0
- package/build-task/esm2022/input/rating/rating.build.mjs +11 -0
- package/build-task/esm2022/input/slider/slider.build.mjs +11 -0
- package/build-task/esm2022/message/message.build.mjs +15 -0
- package/build-task/esm2022/navigation/breadcrumb/breadcrumb.build.mjs +10 -0
- package/build-task/esm2022/navigation/menu/menu.build.mjs +27 -0
- package/build-task/esm2022/navigation/nav/nav-item/nav-item.build.mjs +10 -0
- package/build-task/esm2022/navigation/nav/nav.build.mjs +10 -0
- package/build-task/esm2022/navigation/navbar/navbar.build.mjs +10 -0
- package/build-task/esm2022/navigation/popover/popover.build.mjs +41 -0
- package/build-task/esm2022/page/content/content.build.mjs +10 -0
- package/build-task/esm2022/page/footer/footer.build.mjs +15 -0
- package/build-task/esm2022/page/header/header.build.mjs +15 -0
- package/build-task/esm2022/page/layout.build.mjs +15 -0
- package/build-task/esm2022/page/left-panel/left-panel.build.mjs +15 -0
- package/build-task/esm2022/page/mobile-navbar/mobile-navbar.build.mjs +10 -0
- package/build-task/esm2022/page/page-content/page-content.build.mjs +36 -0
- package/build-task/esm2022/page/page.build.mjs +59 -0
- package/build-task/esm2022/page/right-panel/right-panel.build.mjs +15 -0
- package/build-task/esm2022/page/router-outlet/router-outlet.build.mjs +10 -0
- package/build-task/esm2022/page/tab-bar/tab-bar.build.mjs +10 -0
- package/build-task/esm2022/page/top-nav/top-nav.build.mjs +15 -0
- package/build-task/esm2022/partial/partial.build.mjs +25 -0
- package/build-task/esm2022/partial-param/partial-param.build.mjs +10 -0
- package/build-task/esm2022/prefab/prefab-container/prefab-container.build.mjs +25 -0
- package/build-task/esm2022/prefab/prefab.build.mjs +10 -0
- package/build-task/esm2022/public_api.mjs +113 -0
- package/build-task/esm2022/utils/utils.mjs +69 -0
- package/build-task/fesm2022/index.mjs +2998 -0
- package/build-task/fesm2022/index.mjs.map +1 -0
- package/build-task/index.d.ts +5 -0
- package/build-task/input/calendar/calendar.build.d.ts +2 -0
- package/build-task/input/chips/chips.build.d.ts +2 -0
- package/build-task/input/color-picker/color-picker.build.d.ts +2 -0
- package/build-task/input/currency/currency.build.d.ts +2 -0
- package/build-task/input/default/button/button.build.d.ts +2 -0
- package/build-task/input/default/button-group/button-group.build.d.ts +2 -0
- package/build-task/input/default/checkbox/checkbox.build.d.ts +2 -0
- package/build-task/input/default/checkboxset/checkboxset.build.d.ts +2 -0
- package/build-task/input/default/composite/composite.build.d.ts +2 -0
- package/build-task/input/default/number/number.build.d.ts +2 -0
- package/build-task/input/default/radioset/radioset.build.d.ts +2 -0
- package/build-task/input/default/select/select.build.d.ts +2 -0
- package/build-task/input/default/switch/switch.build.d.ts +2 -0
- package/build-task/input/default/text/text.build.d.ts +2 -0
- package/build-task/input/default/textarea/textarea.build.d.ts +2 -0
- package/build-task/input/epoch/date/date.build.d.ts +2 -0
- package/build-task/input/epoch/date-time/date-time.build.d.ts +2 -0
- package/build-task/input/epoch/time/time.build.d.ts +2 -0
- package/build-task/input/file-upload/file-upload.build.d.ts +2 -0
- package/build-task/input/rating/rating.build.d.ts +2 -0
- package/build-task/input/slider/slider.build.d.ts +2 -0
- package/build-task/message/message.build.d.ts +2 -0
- package/build-task/navigation/breadcrumb/breadcrumb.build.d.ts +2 -0
- package/build-task/navigation/menu/menu.build.d.ts +2 -0
- package/build-task/navigation/nav/nav-item/nav-item.build.d.ts +2 -0
- package/build-task/navigation/nav/nav.build.d.ts +2 -0
- package/build-task/navigation/navbar/navbar.build.d.ts +2 -0
- package/build-task/navigation/popover/popover.build.d.ts +2 -0
- package/build-task/package.json +25 -0
- package/build-task/page/content/content.build.d.ts +2 -0
- package/build-task/page/footer/footer.build.d.ts +2 -0
- package/build-task/page/header/header.build.d.ts +2 -0
- package/build-task/page/layout.build.d.ts +2 -0
- package/build-task/page/left-panel/left-panel.build.d.ts +2 -0
- package/build-task/page/mobile-navbar/mobile-navbar.build.d.ts +2 -0
- package/build-task/page/page-content/page-content.build.d.ts +2 -0
- package/build-task/page/page.build.d.ts +2 -0
- package/build-task/page/right-panel/right-panel.build.d.ts +2 -0
- package/build-task/page/router-outlet/router-outlet.build.d.ts +2 -0
- package/build-task/page/tab-bar/tab-bar.build.d.ts +2 -0
- package/build-task/page/top-nav/top-nav.build.d.ts +2 -0
- package/build-task/partial/partial.build.d.ts +2 -0
- package/build-task/partial-param/partial-param.build.d.ts +2 -0
- package/build-task/prefab/prefab-container/prefab-container.build.d.ts +2 -0
- package/build-task/prefab/prefab.build.d.ts +2 -0
- package/build-task/public_api.d.ts +112 -0
- package/build-task/utils/utils.d.ts +21 -0
- package/components/advanced/carousel/.npmignore +2 -0
- package/components/advanced/carousel/bundles/index.umd.js +352 -0
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +9 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.d.ts +1 -0
- package/components/advanced/carousel/carousel.animator.d.ts +45 -0
- package/components/advanced/carousel/carousel.directive.d.ts +35 -0
- package/components/advanced/carousel/carousel.props.d.ts +1 -0
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +32 -0
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.props.mjs +7 -0
- package/components/advanced/carousel/esm2022/carousel.animator.mjs +149 -0
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +135 -0
- package/components/advanced/carousel/esm2022/carousel.props.mjs +13 -0
- package/components/advanced/carousel/esm2022/index.mjs +5 -0
- package/components/advanced/carousel/esm2022/public_api.mjs +4 -0
- package/components/advanced/carousel/fesm2022/index.mjs +335 -0
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -0
- package/components/advanced/carousel/index.d.ts +5 -0
- package/components/advanced/carousel/package.json +20 -0
- package/components/advanced/carousel/public_api.d.ts +3 -0
- package/components/advanced/custom/.npmignore +2 -0
- package/components/advanced/custom/bundles/index.umd.js +258 -0
- package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +29 -0
- package/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +2 -0
- package/components/advanced/custom/custom-widget-prop.d.ts +1 -0
- package/components/advanced/custom/custom-widget.directive.d.ts +19 -0
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +156 -0
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +12 -0
- package/components/advanced/custom/esm2022/custom-widget-prop.mjs +8 -0
- package/components/advanced/custom/esm2022/custom-widget.directive.mjs +70 -0
- package/components/advanced/custom/esm2022/index.mjs +5 -0
- package/components/advanced/custom/esm2022/public_api.mjs +3 -0
- package/components/advanced/custom/fesm2022/index.mjs +244 -0
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -0
- package/components/advanced/custom/index.d.ts +5 -0
- package/components/advanced/custom/package.json +20 -0
- package/components/advanced/custom/public_api.d.ts +2 -0
- package/components/advanced/login/.npmignore +2 -0
- package/components/advanced/login/bundles/index.umd.js +135 -0
- package/components/advanced/login/esm2022/index.mjs +5 -0
- package/components/advanced/login/esm2022/login.component.mjs +107 -0
- package/components/advanced/login/esm2022/login.props.mjs +8 -0
- package/components/advanced/login/esm2022/public_api.mjs +2 -0
- package/components/advanced/login/fesm2022/index.mjs +120 -0
- package/components/advanced/login/fesm2022/index.mjs.map +1 -0
- package/components/advanced/login/index.d.ts +5 -0
- package/components/advanced/login/login.component.d.ts +31 -0
- package/components/advanced/login/login.props.d.ts +1 -0
- package/components/advanced/login/package.json +20 -0
- package/components/advanced/login/public_api.d.ts +1 -0
- package/components/advanced/marquee/.npmignore +2 -0
- package/components/advanced/marquee/bundles/index.umd.js +71 -0
- package/components/advanced/marquee/esm2022/index.mjs +5 -0
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +36 -0
- package/components/advanced/marquee/esm2022/marquee.props.mjs +12 -0
- package/components/advanced/marquee/esm2022/public_api.mjs +2 -0
- package/components/advanced/marquee/fesm2022/index.mjs +53 -0
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -0
- package/components/advanced/marquee/index.d.ts +5 -0
- package/components/advanced/marquee/marquee.directive.d.ts +9 -0
- package/components/advanced/marquee/marquee.props.d.ts +1 -0
- package/components/advanced/marquee/package.json +20 -0
- package/components/advanced/marquee/public_api.d.ts +1 -0
- package/components/base/.npmignore +2 -0
- package/components/base/bundles/index.umd.js +5982 -0
- package/components/base/decorators/autolayout.decorator.d.ts +4 -0
- package/components/base/decorators/autolayout.props.d.ts +1 -0
- package/components/base/directives/show-in-device.directive.d.ts +16 -0
- package/components/base/esm2022/decorators/autolayout.decorator.mjs +476 -0
- package/components/base/esm2022/decorators/autolayout.props.mjs +20 -0
- package/components/base/esm2022/directives/show-in-device.directive.mjs +90 -0
- package/components/base/esm2022/index.mjs +5 -0
- package/components/base/esm2022/pipes/custom-pipes.mjs +473 -0
- package/components/base/esm2022/pipes/image.pipe.mjs +19 -0
- package/components/base/esm2022/pipes/sanitize.pipe.mjs +44 -0
- package/components/base/esm2022/pipes/trust-as.pipe.mjs +41 -0
- package/components/base/esm2022/pipes/wm-pipe.mjs +18 -0
- package/components/base/esm2022/public_api.mjs +36 -0
- package/components/base/esm2022/utils/autolayout-utils.mjs +261 -0
- package/components/base/esm2022/utils/data-utils.mjs +581 -0
- package/components/base/esm2022/utils/form-utils.mjs +451 -0
- package/components/base/esm2022/utils/live-utils.mjs +216 -0
- package/components/base/esm2022/utils/widget-utils.mjs +495 -0
- package/components/base/esm2022/widgets/common/base/base-container.component.mjs +80 -0
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +295 -0
- package/components/base/esm2022/widgets/common/base/base.component.mjs +713 -0
- package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +48 -0
- package/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +222 -0
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +115 -0
- package/components/base/esm2022/widgets/common/base/stylable.component.mjs +11 -0
- package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +26 -0
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +51 -0
- package/components/base/esm2022/widgets/common/container/container.props.mjs +15 -0
- package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +170 -0
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +89 -0
- package/components/base/esm2022/widgets/common/item-template/item-template.props.mjs +7 -0
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +84 -0
- package/components/base/esm2022/widgets/common/message/message.component.mjs +104 -0
- package/components/base/esm2022/widgets/common/message/message.props.mjs +13 -0
- package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +53 -0
- package/components/base/esm2022/widgets/common/partial/partial.props.mjs +7 -0
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +88 -0
- package/components/base/esm2022/widgets/common/pull-to-refresh/pull-to-refresh.mjs +261 -0
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +40 -0
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +33 -0
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.props.mjs +7 -0
- package/components/base/esm2022/widgets/framework/constants.mjs +36 -0
- package/components/base/esm2022/widgets/framework/deviceview.mjs +126 -0
- package/components/base/esm2022/widgets/framework/property-change-handler.mjs +96 -0
- package/components/base/esm2022/widgets/framework/styler.mjs +123 -0
- package/components/base/esm2022/widgets/framework/types.mjs +8 -0
- package/components/base/esm2022/widgets/framework/widget-id-generator.mjs +3 -0
- package/components/base/esm2022/widgets/framework/widget-props.mjs +35 -0
- package/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +75 -0
- package/components/base/esm2022/widgets/framework/widget-registry.mjs +49 -0
- package/components/base/fesm2022/index.mjs +5858 -0
- package/components/base/fesm2022/index.mjs.map +1 -0
- package/components/base/index.d.ts +5 -0
- package/components/base/package.json +28 -0
- package/components/base/pipes/custom-pipes.d.ts +104 -0
- package/components/base/pipes/image.pipe.d.ts +7 -0
- package/components/base/pipes/sanitize.pipe.d.ts +10 -0
- package/components/base/pipes/trust-as.pipe.d.ts +10 -0
- package/components/base/pipes/wm-pipe.d.ts +9 -0
- package/components/base/public_api.d.ts +35 -0
- package/components/base/utils/autolayout-utils.d.ts +29 -0
- package/components/base/utils/data-utils.d.ts +181 -0
- package/components/base/utils/form-utils.d.ts +85 -0
- package/components/base/utils/live-utils.d.ts +65 -0
- package/components/base/utils/widget-utils.d.ts +120 -0
- package/components/base/widgets/common/base/base-container.component.d.ts +16 -0
- package/components/base/widgets/common/base/base-field-validations.d.ts +27 -0
- package/components/base/widgets/common/base/base.component.d.ts +276 -0
- package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +15 -0
- package/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +77 -0
- package/components/base/widgets/common/base/partial-container.directive.d.ts +22 -0
- package/components/base/widgets/common/base/stylable.component.d.ts +54 -0
- package/components/base/widgets/common/base/text-content.directive.d.ts +9 -0
- package/components/base/widgets/common/container/container.directive.d.ts +12 -0
- package/components/base/widgets/common/container/container.props.d.ts +1 -0
- package/components/base/widgets/common/dialog/dialog.service.d.ts +54 -0
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +32 -0
- package/components/base/widgets/common/item-template/item-template.props.d.ts +1 -0
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +15 -0
- package/components/base/widgets/common/message/message.component.d.ts +19 -0
- package/components/base/widgets/common/message/message.props.d.ts +1 -0
- package/components/base/widgets/common/partial/partial.directive.d.ts +15 -0
- package/components/base/widgets/common/partial/partial.props.d.ts +1 -0
- package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +21 -0
- package/components/base/widgets/common/pull-to-refresh/pull-to-refresh.d.ts +48 -0
- package/components/base/widgets/common/redraw/redrawable.directive.d.ts +8 -0
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +9 -0
- package/components/base/widgets/common/repeat-template/repeat-template.props.d.ts +1 -0
- package/components/base/widgets/framework/constants.d.ts +16 -0
- package/components/base/widgets/framework/deviceview.d.ts +1 -0
- package/components/base/widgets/framework/property-change-handler.d.ts +8 -0
- package/components/base/widgets/framework/styler.d.ts +59 -0
- package/components/base/widgets/framework/types.d.ts +23 -0
- package/components/base/widgets/framework/widget-id-generator.d.ts +2 -0
- package/components/base/widgets/framework/widget-props.d.ts +12 -0
- package/components/base/widgets/framework/widget-proxy-provider.d.ts +11 -0
- package/components/base/widgets/framework/widget-registry.d.ts +14 -0
- package/components/basic/anchor/.npmignore +2 -0
- package/components/basic/anchor/anchor.component.d.ts +37 -0
- package/components/basic/anchor/anchor.props.d.ts +1 -0
- package/components/basic/anchor/bundles/index.umd.js +204 -0
- package/components/basic/anchor/esm2022/anchor.component.mjs +155 -0
- package/components/basic/anchor/esm2022/anchor.props.mjs +27 -0
- package/components/basic/anchor/esm2022/index.mjs +5 -0
- package/components/basic/anchor/esm2022/public_api.mjs +2 -0
- package/components/basic/anchor/fesm2022/index.mjs +187 -0
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -0
- package/components/basic/anchor/index.d.ts +5 -0
- package/components/basic/anchor/package.json +20 -0
- package/components/basic/anchor/public_api.d.ts +1 -0
- package/components/basic/audio/.npmignore +2 -0
- package/components/basic/audio/audio.component.d.ts +20 -0
- package/components/basic/audio/audio.props.d.ts +1 -0
- package/components/basic/audio/bundles/index.umd.js +83 -0
- package/components/basic/audio/esm2022/audio.component.mjs +41 -0
- package/components/basic/audio/esm2022/audio.props.mjs +19 -0
- package/components/basic/audio/esm2022/index.mjs +5 -0
- package/components/basic/audio/esm2022/public_api.mjs +2 -0
- package/components/basic/audio/fesm2022/index.mjs +65 -0
- package/components/basic/audio/fesm2022/index.mjs.map +1 -0
- package/components/basic/audio/index.d.ts +5 -0
- package/components/basic/audio/package.json +20 -0
- package/components/basic/audio/public_api.d.ts +1 -0
- package/components/basic/html/.npmignore +2 -0
- package/components/basic/html/bundles/index.umd.js +122 -0
- package/components/basic/html/esm2022/html.directive.mjs +88 -0
- package/components/basic/html/esm2022/html.props.mjs +12 -0
- package/components/basic/html/esm2022/index.mjs +5 -0
- package/components/basic/html/esm2022/public_api.mjs +2 -0
- package/components/basic/html/fesm2022/index.mjs +105 -0
- package/components/basic/html/fesm2022/index.mjs.map +1 -0
- package/components/basic/html/html.directive.d.ts +14 -0
- package/components/basic/html/html.props.d.ts +1 -0
- package/components/basic/html/index.d.ts +5 -0
- package/components/basic/html/package.json +20 -0
- package/components/basic/html/public_api.d.ts +1 -0
- package/components/basic/icon/.npmignore +2 -0
- package/components/basic/icon/bundles/index.umd.js +80 -0
- package/components/basic/icon/esm2022/icon.component.mjs +38 -0
- package/components/basic/icon/esm2022/icon.props.mjs +19 -0
- package/components/basic/icon/esm2022/index.mjs +5 -0
- package/components/basic/icon/esm2022/public_api.mjs +2 -0
- package/components/basic/icon/fesm2022/index.mjs +62 -0
- package/components/basic/icon/fesm2022/index.mjs.map +1 -0
- package/components/basic/icon/icon.component.d.ts +15 -0
- package/components/basic/icon/icon.props.d.ts +1 -0
- package/components/basic/icon/index.d.ts +5 -0
- package/components/basic/icon/package.json +20 -0
- package/components/basic/icon/public_api.d.ts +1 -0
- package/components/basic/iframe/.npmignore +2 -0
- package/components/basic/iframe/bundles/index.umd.js +101 -0
- package/components/basic/iframe/esm2022/iframe.component.mjs +65 -0
- package/components/basic/iframe/esm2022/iframe.props.mjs +15 -0
- package/components/basic/iframe/esm2022/index.mjs +5 -0
- package/components/basic/iframe/esm2022/public_api.mjs +2 -0
- package/components/basic/iframe/fesm2022/index.mjs +84 -0
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -0
- package/components/basic/iframe/iframe.component.d.ts +26 -0
- package/components/basic/iframe/iframe.props.d.ts +1 -0
- package/components/basic/iframe/index.d.ts +5 -0
- package/components/basic/iframe/package.json +20 -0
- package/components/basic/iframe/public_api.d.ts +1 -0
- package/components/basic/label/.npmignore +2 -0
- package/components/basic/label/bundles/index.umd.js +129 -0
- package/components/basic/label/esm2022/index.mjs +5 -0
- package/components/basic/label/esm2022/label.directive.mjs +91 -0
- package/components/basic/label/esm2022/label.props.mjs +17 -0
- package/components/basic/label/esm2022/public_api.mjs +2 -0
- package/components/basic/label/fesm2022/index.mjs +113 -0
- package/components/basic/label/fesm2022/index.mjs.map +1 -0
- package/components/basic/label/index.d.ts +5 -0
- package/components/basic/label/label.directive.d.ts +12 -0
- package/components/basic/label/label.props.d.ts +1 -0
- package/components/basic/label/package.json +20 -0
- package/components/basic/label/public_api.d.ts +1 -0
- package/components/basic/picture/.npmignore +2 -0
- package/components/basic/picture/bundles/index.umd.js +138 -0
- package/components/basic/picture/esm2022/index.mjs +5 -0
- package/components/basic/picture/esm2022/picture.directive.mjs +93 -0
- package/components/basic/picture/esm2022/picture.props.mjs +23 -0
- package/components/basic/picture/esm2022/public_api.mjs +2 -0
- package/components/basic/picture/fesm2022/index.mjs +121 -0
- package/components/basic/picture/fesm2022/index.mjs.map +1 -0
- package/components/basic/picture/index.d.ts +5 -0
- package/components/basic/picture/package.json +20 -0
- package/components/basic/picture/picture.directive.d.ts +19 -0
- package/components/basic/picture/picture.props.d.ts +1 -0
- package/components/basic/picture/public_api.d.ts +1 -0
- package/components/basic/progress/progress-bar/.npmignore +2 -0
- package/components/basic/progress/progress-bar/bundles/index.umd.js +170 -0
- package/components/basic/progress/progress-bar/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-bar/esm2022/progress-bar.component.mjs +130 -0
- package/components/basic/progress/progress-bar/esm2022/progress-bar.props.mjs +19 -0
- package/components/basic/progress/progress-bar/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +154 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-bar/index.d.ts +5 -0
- package/components/basic/progress/progress-bar/package.json +20 -0
- package/components/basic/progress/progress-bar/progress-bar.component.d.ts +43 -0
- package/components/basic/progress/progress-bar/progress-bar.props.d.ts +1 -0
- package/components/basic/progress/progress-bar/public_api.d.ts +1 -0
- package/components/basic/progress/progress-circle/.npmignore +2 -0
- package/components/basic/progress/progress-circle/bundles/index.umd.js +171 -0
- package/components/basic/progress/progress-circle/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-circle/esm2022/progress-circle.component.mjs +130 -0
- package/components/basic/progress/progress-circle/esm2022/progress-circle.props.mjs +21 -0
- package/components/basic/progress/progress-circle/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +155 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-circle/index.d.ts +5 -0
- package/components/basic/progress/progress-circle/package.json +20 -0
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +40 -0
- package/components/basic/progress/progress-circle/progress-circle.props.d.ts +1 -0
- package/components/basic/progress/progress-circle/public_api.d.ts +1 -0
- package/components/basic/progress/progress-utils/.npmignore +2 -0
- package/components/basic/progress/progress-utils/bundles/index.umd.js +35 -0
- package/components/basic/progress/progress-utils/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-utils/esm2022/progress-utils.mjs +25 -0
- package/components/basic/progress/progress-utils/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs +32 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-utils/index.d.ts +5 -0
- package/components/basic/progress/progress-utils/package.json +20 -0
- package/components/basic/progress/progress-utils/progress-utils.d.ts +3 -0
- package/components/basic/progress/progress-utils/public_api.d.ts +1 -0
- package/components/basic/rich-text-editor/.npmignore +2 -0
- package/components/basic/rich-text-editor/bundles/index.umd.js +236 -0
- package/components/basic/rich-text-editor/esm2022/index.mjs +5 -0
- package/components/basic/rich-text-editor/esm2022/public_api.mjs +2 -0
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +197 -0
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +21 -0
- package/components/basic/rich-text-editor/fesm2022/index.mjs +222 -0
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -0
- package/components/basic/rich-text-editor/index.d.ts +5 -0
- package/components/basic/rich-text-editor/package.json +20 -0
- package/components/basic/rich-text-editor/public_api.d.ts +1 -0
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +55 -0
- package/components/basic/rich-text-editor/rich-text-editor.props.d.ts +2 -0
- package/components/basic/search/.npmignore +2 -0
- package/components/basic/search/bundles/index.umd.js +1091 -0
- package/components/basic/search/data-provider/data-provider.d.ts +42 -0
- package/components/basic/search/data-provider/local-data-provider.d.ts +5 -0
- package/components/basic/search/data-provider/remote-data-provider.d.ts +10 -0
- package/components/basic/search/esm2022/data-provider/data-provider.mjs +34 -0
- package/components/basic/search/esm2022/data-provider/local-data-provider.mjs +77 -0
- package/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +124 -0
- package/components/basic/search/esm2022/index.mjs +5 -0
- package/components/basic/search/esm2022/public_api.mjs +3 -0
- package/components/basic/search/esm2022/scrollable.directive.mjs +44 -0
- package/components/basic/search/esm2022/search.component.mjs +754 -0
- package/components/basic/search/esm2022/search.props.mjs +55 -0
- package/components/basic/search/fesm2022/index.mjs +1080 -0
- package/components/basic/search/fesm2022/index.mjs.map +1 -0
- package/components/basic/search/index.d.ts +5 -0
- package/components/basic/search/package.json +20 -0
- package/components/basic/search/public_api.d.ts +2 -0
- package/components/basic/search/scrollable.directive.d.ts +14 -0
- package/components/basic/search/search.component.d.ts +109 -0
- package/components/basic/search/search.props.d.ts +2 -0
- package/components/basic/spinner/.npmignore +2 -0
- package/components/basic/spinner/bundles/index.umd.js +126 -0
- package/components/basic/spinner/esm2022/index.mjs +5 -0
- package/components/basic/spinner/esm2022/public_api.mjs +2 -0
- package/components/basic/spinner/esm2022/spinner.component.mjs +87 -0
- package/components/basic/spinner/esm2022/spinner.props.mjs +20 -0
- package/components/basic/spinner/fesm2022/index.mjs +111 -0
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -0
- package/components/basic/spinner/index.d.ts +5 -0
- package/components/basic/spinner/package.json +20 -0
- package/components/basic/spinner/public_api.d.ts +1 -0
- package/components/basic/spinner/spinner.component.d.ts +27 -0
- package/components/basic/spinner/spinner.props.d.ts +1 -0
- package/components/basic/tree/.npmignore +2 -0
- package/components/basic/tree/bundles/index.umd.js +566 -0
- package/components/basic/tree/esm2022/index.mjs +5 -0
- package/components/basic/tree/esm2022/public_api.mjs +2 -0
- package/components/basic/tree/esm2022/tree-node-template-host.component.mjs +33 -0
- package/components/basic/tree/esm2022/tree.component.mjs +494 -0
- package/components/basic/tree/esm2022/tree.props.mjs +22 -0
- package/components/basic/tree/fesm2022/index.mjs +550 -0
- package/components/basic/tree/fesm2022/index.mjs.map +1 -0
- package/components/basic/tree/index.d.ts +5 -0
- package/components/basic/tree/package.json +20 -0
- package/components/basic/tree/public_api.d.ts +1 -0
- package/components/basic/tree/tree-node-template-host.component.d.ts +7 -0
- package/components/basic/tree/tree.component.d.ts +66 -0
- package/components/basic/tree/tree.props.d.ts +1 -0
- package/components/basic/video/.npmignore +2 -0
- package/components/basic/video/bundles/index.umd.js +116 -0
- package/components/basic/video/esm2022/index.mjs +5 -0
- package/components/basic/video/esm2022/public_api.mjs +2 -0
- package/components/basic/video/esm2022/video.component.mjs +70 -0
- package/components/basic/video/esm2022/video.props.mjs +24 -0
- package/components/basic/video/fesm2022/index.mjs +99 -0
- package/components/basic/video/fesm2022/index.mjs.map +1 -0
- package/components/basic/video/index.d.ts +5 -0
- package/components/basic/video/package.json +20 -0
- package/components/basic/video/public_api.d.ts +1 -0
- package/components/basic/video/video.component.d.ts +27 -0
- package/components/basic/video/video.props.d.ts +1 -0
- package/components/chart/.npmignore +2 -0
- package/components/chart/bundles/index.umd.js +1747 -0
- package/components/chart/chart.component.d.ts +99 -0
- package/components/chart/chart.props.d.ts +1 -0
- package/components/chart/chart.utils.d.ts +40 -0
- package/components/chart/esm2022/chart.component.mjs +982 -0
- package/components/chart/esm2022/chart.props.mjs +67 -0
- package/components/chart/esm2022/chart.utils.mjs +723 -0
- package/components/chart/esm2022/index.mjs +5 -0
- package/components/chart/esm2022/public_api.mjs +2 -0
- package/components/chart/fesm2022/index.mjs +1774 -0
- package/components/chart/fesm2022/index.mjs.map +1 -0
- package/components/chart/index.d.ts +5 -0
- package/components/chart/package.json +20 -0
- package/components/chart/public_api.d.ts +1 -0
- package/components/containers/accordion/.npmignore +2 -0
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +50 -0
- package/components/containers/accordion/accordion-pane/accordion-pane.props.d.ts +1 -0
- package/components/containers/accordion/accordion.directive.d.ts +66 -0
- package/components/containers/accordion/accordion.props.d.ts +1 -0
- package/components/containers/accordion/bundles/index.umd.js +500 -0
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +145 -0
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.props.mjs +22 -0
- package/components/containers/accordion/esm2022/accordion.directive.mjs +309 -0
- package/components/containers/accordion/esm2022/accordion.props.mjs +16 -0
- package/components/containers/accordion/esm2022/index.mjs +5 -0
- package/components/containers/accordion/esm2022/public_api.mjs +3 -0
- package/components/containers/accordion/fesm2022/index.mjs +486 -0
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -0
- package/components/containers/accordion/index.d.ts +5 -0
- package/components/containers/accordion/package.json +20 -0
- package/components/containers/accordion/public_api.d.ts +2 -0
- package/components/containers/layout-grid/.npmignore +2 -0
- package/components/containers/layout-grid/bundles/index.umd.js +172 -0
- package/components/containers/layout-grid/esm2022/index.mjs +5 -0
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +57 -0
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.props.mjs +11 -0
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +36 -0
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.props.mjs +9 -0
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +36 -0
- package/components/containers/layout-grid/esm2022/layout-grid.props.mjs +9 -0
- package/components/containers/layout-grid/esm2022/public_api.mjs +4 -0
- package/components/containers/layout-grid/fesm2022/index.mjs +153 -0
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -0
- package/components/containers/layout-grid/index.d.ts +5 -0
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +12 -0
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.props.d.ts +1 -0
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +9 -0
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.props.d.ts +1 -0
- package/components/containers/layout-grid/layout-grid.directive.d.ts +9 -0
- package/components/containers/layout-grid/layout-grid.props.d.ts +1 -0
- package/components/containers/layout-grid/package.json +20 -0
- package/components/containers/layout-grid/public_api.d.ts +3 -0
- package/components/containers/linear-layout/.npmignore +2 -0
- package/components/containers/linear-layout/bundles/index.umd.js +186 -0
- package/components/containers/linear-layout/esm2022/index.mjs +5 -0
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +44 -0
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.props.mjs +10 -0
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +100 -0
- package/components/containers/linear-layout/esm2022/linear-layout.props.mjs +13 -0
- package/components/containers/linear-layout/esm2022/public_api.mjs +3 -0
- package/components/containers/linear-layout/fesm2022/index.mjs +167 -0
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -0
- package/components/containers/linear-layout/index.d.ts +5 -0
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +10 -0
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.props.d.ts +1 -0
- package/components/containers/linear-layout/linear-layout.directive.d.ts +16 -0
- package/components/containers/linear-layout/linear-layout.props.d.ts +1 -0
- package/components/containers/linear-layout/package.json +20 -0
- package/components/containers/linear-layout/public_api.d.ts +2 -0
- package/components/containers/panel/.npmignore +2 -0
- package/components/containers/panel/bundles/index.umd.js +223 -0
- package/components/containers/panel/esm2022/index.mjs +5 -0
- package/components/containers/panel/esm2022/panel.component.mjs +168 -0
- package/components/containers/panel/esm2022/panel.props.mjs +38 -0
- package/components/containers/panel/esm2022/public_api.mjs +2 -0
- package/components/containers/panel/fesm2022/index.mjs +210 -0
- package/components/containers/panel/fesm2022/index.mjs.map +1 -0
- package/components/containers/panel/index.d.ts +5 -0
- package/components/containers/panel/package.json +20 -0
- package/components/containers/panel/panel.component.d.ts +43 -0
- package/components/containers/panel/panel.props.d.ts +1 -0
- package/components/containers/panel/public_api.d.ts +1 -0
- package/components/containers/tabs/.npmignore +2 -0
- package/components/containers/tabs/bundles/index.umd.js +788 -0
- package/components/containers/tabs/esm2022/index.mjs +5 -0
- package/components/containers/tabs/esm2022/public_api.mjs +3 -0
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +179 -0
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.props.mjs +22 -0
- package/components/containers/tabs/esm2022/tabs.animator.mjs +83 -0
- package/components/containers/tabs/esm2022/tabs.component.mjs +478 -0
- package/components/containers/tabs/esm2022/tabs.props.mjs +20 -0
- package/components/containers/tabs/fesm2022/index.mjs +775 -0
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -0
- package/components/containers/tabs/index.d.ts +5 -0
- package/components/containers/tabs/package.json +20 -0
- package/components/containers/tabs/public_api.d.ts +2 -0
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +41 -0
- package/components/containers/tabs/tab-pane/tab-pane.props.d.ts +1 -0
- package/components/containers/tabs/tabs.animator.d.ts +30 -0
- package/components/containers/tabs/tabs.component.d.ts +87 -0
- package/components/containers/tabs/tabs.props.d.ts +1 -0
- package/components/containers/tile/.npmignore +2 -0
- package/components/containers/tile/bundles/index.umd.js +68 -0
- package/components/containers/tile/esm2022/index.mjs +5 -0
- package/components/containers/tile/esm2022/public_api.mjs +2 -0
- package/components/containers/tile/esm2022/tile.directive.mjs +33 -0
- package/components/containers/tile/esm2022/tile.props.mjs +12 -0
- package/components/containers/tile/fesm2022/index.mjs +50 -0
- package/components/containers/tile/fesm2022/index.mjs.map +1 -0
- package/components/containers/tile/index.d.ts +5 -0
- package/components/containers/tile/package.json +20 -0
- package/components/containers/tile/public_api.d.ts +1 -0
- package/components/containers/tile/tile.directive.d.ts +9 -0
- package/components/containers/tile/tile.props.d.ts +1 -0
- package/components/containers/wizard/.npmignore +2 -0
- package/components/containers/wizard/bundles/index.umd.js +1074 -0
- package/components/containers/wizard/esm2022/index.mjs +5 -0
- package/components/containers/wizard/esm2022/public_api.mjs +4 -0
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +35 -0
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.props.mjs +9 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +182 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.props.mjs +17 -0
- package/components/containers/wizard/esm2022/wizard.component.mjs +801 -0
- package/components/containers/wizard/esm2022/wizard.props.mjs +22 -0
- package/components/containers/wizard/fesm2022/index.mjs +1058 -0
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -0
- package/components/containers/wizard/index.d.ts +5 -0
- package/components/containers/wizard/package.json +20 -0
- package/components/containers/wizard/public_api.d.ts +3 -0
- package/components/containers/wizard/wizard-action/wizard-action.directive.d.ts +9 -0
- package/components/containers/wizard/wizard-action/wizard-action.props.d.ts +1 -0
- package/components/containers/wizard/wizard-step/wizard-step.component.d.ts +59 -0
- package/components/containers/wizard/wizard-step/wizard-step.props.d.ts +1 -0
- package/components/containers/wizard/wizard.component.d.ts +192 -0
- package/components/containers/wizard/wizard.props.d.ts +1 -0
- package/components/data/card/.npmignore +2 -0
- package/components/data/card/bundles/index.umd.js +237 -0
- package/components/data/card/card-actions/card-actions.directive.d.ts +9 -0
- package/components/data/card/card-actions/card-actions.props.d.ts +1 -0
- package/components/data/card/card-content/card-content.component.d.ts +12 -0
- package/components/data/card/card-content/card-content.props.d.ts +1 -0
- package/components/data/card/card-footer/card-footer.directive.d.ts +9 -0
- package/components/data/card/card-footer/card-footer.props.d.ts +1 -0
- package/components/data/card/card.component.d.ts +23 -0
- package/components/data/card/card.props.d.ts +1 -0
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +31 -0
- package/components/data/card/esm2022/card-actions/card-actions.props.mjs +9 -0
- package/components/data/card/esm2022/card-content/card-content.component.mjs +43 -0
- package/components/data/card/esm2022/card-content/card-content.props.mjs +10 -0
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +31 -0
- package/components/data/card/esm2022/card-footer/card-footer.props.mjs +9 -0
- package/components/data/card/esm2022/card.component.mjs +75 -0
- package/components/data/card/esm2022/card.props.mjs +24 -0
- package/components/data/card/esm2022/index.mjs +5 -0
- package/components/data/card/esm2022/public_api.mjs +5 -0
- package/components/data/card/fesm2022/index.mjs +220 -0
- package/components/data/card/fesm2022/index.mjs.map +1 -0
- package/components/data/card/index.d.ts +5 -0
- package/components/data/card/package.json +20 -0
- package/components/data/card/public_api.d.ts +4 -0
- package/components/data/form/.npmignore +2 -0
- package/components/data/form/bundles/index.umd.js +3308 -0
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +86 -0
- package/components/data/form/esm2022/form-action/form-action.props.mjs +25 -0
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +611 -0
- package/components/data/form/esm2022/form-field/form-field.props.mjs +52 -0
- package/components/data/form/esm2022/form-widget.directive.mjs +83 -0
- package/components/data/form/esm2022/form.component.mjs +1247 -0
- package/components/data/form/esm2022/form.props.mjs +64 -0
- package/components/data/form/esm2022/index.mjs +5 -0
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +151 -0
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +173 -0
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +356 -0
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +502 -0
- package/components/data/form/esm2022/public_api.mjs +9 -0
- package/components/data/form/fesm2022/index.mjs +3296 -0
- package/components/data/form/fesm2022/index.mjs.map +1 -0
- package/components/data/form/form-action/form-action.directive.d.ts +35 -0
- package/components/data/form/form-action/form-action.props.d.ts +1 -0
- package/components/data/form/form-field/form-field.directive.d.ts +116 -0
- package/components/data/form/form-field/form-field.props.d.ts +1 -0
- package/components/data/form/form-widget.directive.d.ts +19 -0
- package/components/data/form/form.component.d.ts +211 -0
- package/components/data/form/form.props.d.ts +3 -0
- package/components/data/form/index.d.ts +5 -0
- package/components/data/form/live-actions/dependson.directive.d.ts +27 -0
- package/components/data/form/live-actions/live-actions.directive.d.ts +24 -0
- package/components/data/form/live-filter/live-filter.directive.d.ts +24 -0
- package/components/data/form/live-form/live-form.directive.d.ts +44 -0
- package/components/data/form/package.json +20 -0
- package/components/data/form/public_api.d.ts +8 -0
- package/components/data/list/.npmignore +2 -0
- package/components/data/list/bundles/index.umd.js +1610 -0
- package/components/data/list/esm2022/index.mjs +5 -0
- package/components/data/list/esm2022/list-item.directive.mjs +260 -0
- package/components/data/list/esm2022/list-item.props.mjs +7 -0
- package/components/data/list/esm2022/list.animator.mjs +233 -0
- package/components/data/list/esm2022/list.component.mjs +1294 -0
- package/components/data/list/esm2022/list.props.mjs +48 -0
- package/components/data/list/esm2022/public_api.mjs +3 -0
- package/components/data/list/fesm2022/index.mjs +1602 -0
- package/components/data/list/fesm2022/index.mjs.map +1 -0
- package/components/data/list/index.d.ts +5 -0
- package/components/data/list/list-item.directive.d.ts +53 -0
- package/components/data/list/list-item.props.d.ts +1 -0
- package/components/data/list/list.animator.d.ts +32 -0
- package/components/data/list/list.component.d.ts +226 -0
- package/components/data/list/list.props.d.ts +1 -0
- package/components/data/list/package.json +20 -0
- package/components/data/list/public_api.d.ts +2 -0
- package/components/data/live-table/.npmignore +2 -0
- package/components/data/live-table/bundles/index.umd.js +273 -0
- package/components/data/live-table/esm2022/index.mjs +5 -0
- package/components/data/live-table/esm2022/live-table.component.mjs +243 -0
- package/components/data/live-table/esm2022/live-table.props.mjs +10 -0
- package/components/data/live-table/esm2022/public_api.mjs +2 -0
- package/components/data/live-table/fesm2022/index.mjs +258 -0
- package/components/data/live-table/fesm2022/index.mjs.map +1 -0
- package/components/data/live-table/index.d.ts +5 -0
- package/components/data/live-table/live-table.component.d.ts +36 -0
- package/components/data/live-table/live-table.props.d.ts +1 -0
- package/components/data/live-table/package.json +20 -0
- package/components/data/live-table/public_api.d.ts +1 -0
- package/components/data/pagination/.npmignore +2 -0
- package/components/data/pagination/bundles/index.umd.js +850 -0
- package/components/data/pagination/esm2022/index.mjs +5 -0
- package/components/data/pagination/esm2022/pagination.component.mjs +817 -0
- package/components/data/pagination/esm2022/pagination.props.mjs +23 -0
- package/components/data/pagination/esm2022/public_api.mjs +2 -0
- package/components/data/pagination/fesm2022/index.mjs +845 -0
- package/components/data/pagination/fesm2022/index.mjs.map +1 -0
- package/components/data/pagination/index.d.ts +5 -0
- package/components/data/pagination/package.json +20 -0
- package/components/data/pagination/pagination.component.d.ts +101 -0
- package/components/data/pagination/pagination.props.d.ts +1 -0
- package/components/data/pagination/public_api.d.ts +1 -0
- package/components/data/table/.npmignore +2 -0
- package/components/data/table/bundles/index.umd.js +4848 -0
- package/components/data/table/esm2022/index.mjs +5 -0
- package/components/data/table/esm2022/public_api.mjs +9 -0
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +83 -0
- package/components/data/table/esm2022/table-action/table-action.props.mjs +25 -0
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +744 -0
- package/components/data/table/esm2022/table-column/table-column.props.mjs +93 -0
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +80 -0
- package/components/data/table/esm2022/table-column-group/table-column-group.props.mjs +11 -0
- package/components/data/table/esm2022/table-cud.directive.mjs +484 -0
- package/components/data/table/esm2022/table-filter.directive.mjs +706 -0
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +68 -0
- package/components/data/table/esm2022/table-row/table-row.props.mjs +16 -0
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +81 -0
- package/components/data/table/esm2022/table-row-action/table-row-action.props.mjs +20 -0
- package/components/data/table/esm2022/table.component.mjs +2406 -0
- package/components/data/table/esm2022/table.props.mjs +70 -0
- package/components/data/table/fesm2022/index.mjs +4835 -0
- package/components/data/table/fesm2022/index.mjs.map +1 -0
- package/components/data/table/index.d.ts +5 -0
- package/components/data/table/package.json +20 -0
- package/components/data/table/public_api.d.ts +8 -0
- package/components/data/table/table-action/table-action.directive.d.ts +35 -0
- package/components/data/table/table-action/table-action.props.d.ts +1 -0
- package/components/data/table/table-column/table-column.directive.d.ts +152 -0
- package/components/data/table/table-column/table-column.props.d.ts +1 -0
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +23 -0
- package/components/data/table/table-column-group/table-column-group.props.d.ts +1 -0
- package/components/data/table/table-cud.directive.d.ts +34 -0
- package/components/data/table/table-filter.directive.d.ts +35 -0
- package/components/data/table/table-row/table-row.directive.d.ts +25 -0
- package/components/data/table/table-row/table-row.props.d.ts +1 -0
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +31 -0
- package/components/data/table/table-row-action/table-row-action.props.d.ts +1 -0
- package/components/data/table/table.component.d.ts +419 -0
- package/components/data/table/table.props.d.ts +1 -0
- package/components/dialogs/alert-dialog/.npmignore +2 -0
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +23 -0
- package/components/dialogs/alert-dialog/alert-dialog.props.d.ts +1 -0
- package/components/dialogs/alert-dialog/bundles/index.umd.js +126 -0
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +87 -0
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.props.mjs +22 -0
- package/components/dialogs/alert-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/alert-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +114 -0
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/alert-dialog/index.d.ts +5 -0
- package/components/dialogs/alert-dialog/package.json +20 -0
- package/components/dialogs/alert-dialog/public_api.d.ts +1 -0
- package/components/dialogs/confirm-dialog/.npmignore +2 -0
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +129 -0
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +26 -0
- package/components/dialogs/confirm-dialog/confirm-dialog.props.d.ts +1 -0
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +90 -0
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.props.mjs +22 -0
- package/components/dialogs/confirm-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/confirm-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +117 -0
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/confirm-dialog/index.d.ts +5 -0
- package/components/dialogs/confirm-dialog/package.json +20 -0
- package/components/dialogs/confirm-dialog/public_api.d.ts +1 -0
- package/components/dialogs/default/.npmignore +2 -0
- package/components/dialogs/default/base-dialog.d.ts +45 -0
- package/components/dialogs/default/bundles/index.umd.js +379 -0
- package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +13 -0
- package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +9 -0
- package/components/dialogs/default/dialog-footer/dialog-footer.props.d.ts +1 -0
- package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +25 -0
- package/components/dialogs/default/esm2022/base-dialog.mjs +184 -0
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +86 -0
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +34 -0
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.props.mjs +9 -0
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +62 -0
- package/components/dialogs/default/esm2022/index.mjs +5 -0
- package/components/dialogs/default/esm2022/public_api.mjs +5 -0
- package/components/dialogs/default/fesm2022/index.mjs +364 -0
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/default/index.d.ts +5 -0
- package/components/dialogs/default/package.json +20 -0
- package/components/dialogs/default/public_api.d.ts +4 -0
- package/components/dialogs/design-dialog/.npmignore +2 -0
- package/components/dialogs/design-dialog/bundles/index.umd.js +149 -0
- package/components/dialogs/design-dialog/dialog.component.d.ts +17 -0
- package/components/dialogs/design-dialog/dialog.props.d.ts +1 -0
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +108 -0
- package/components/dialogs/design-dialog/esm2022/dialog.props.mjs +21 -0
- package/components/dialogs/design-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/design-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/design-dialog/fesm2022/index.mjs +134 -0
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/design-dialog/index.d.ts +5 -0
- package/components/dialogs/design-dialog/package.json +20 -0
- package/components/dialogs/design-dialog/public_api.d.ts +1 -0
- package/components/dialogs/iframe-dialog/.npmignore +2 -0
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +119 -0
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +78 -0
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.props.mjs +25 -0
- package/components/dialogs/iframe-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/iframe-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +108 -0
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +19 -0
- package/components/dialogs/iframe-dialog/iframe-dialog.props.d.ts +1 -0
- package/components/dialogs/iframe-dialog/index.d.ts +5 -0
- package/components/dialogs/iframe-dialog/package.json +20 -0
- package/components/dialogs/iframe-dialog/public_api.d.ts +1 -0
- package/components/dialogs/login-dialog/.npmignore +2 -0
- package/components/dialogs/login-dialog/bundles/index.umd.js +114 -0
- package/components/dialogs/login-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +91 -0
- package/components/dialogs/login-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/login-dialog/fesm2022/index.mjs +98 -0
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/login-dialog/index.d.ts +5 -0
- package/components/dialogs/login-dialog/login-dialog.directive.d.ts +23 -0
- package/components/dialogs/login-dialog/package.json +20 -0
- package/components/dialogs/login-dialog/public_api.d.ts +1 -0
- package/components/dialogs/partial-dialog/.npmignore +2 -0
- package/components/dialogs/partial-dialog/bundles/index.umd.js +157 -0
- package/components/dialogs/partial-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +119 -0
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.props.mjs +22 -0
- package/components/dialogs/partial-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +146 -0
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/partial-dialog/index.d.ts +5 -0
- package/components/dialogs/partial-dialog/package.json +20 -0
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +29 -0
- package/components/dialogs/partial-dialog/partial-dialog.props.d.ts +1 -0
- package/components/dialogs/partial-dialog/public_api.d.ts +1 -0
- package/components/input/base-form/.npmignore +2 -0
- package/components/input/base-form/base-form.component.d.ts +26 -0
- package/components/input/base-form/bundles/index.umd.js +147 -0
- package/components/input/base-form/esm2022/base-form.component.mjs +124 -0
- package/components/input/base-form/esm2022/index.mjs +5 -0
- package/components/input/base-form/esm2022/public_api.mjs +2 -0
- package/components/input/base-form/fesm2022/index.mjs +131 -0
- package/components/input/base-form/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form/index.d.ts +5 -0
- package/components/input/base-form/package.json +20 -0
- package/components/input/base-form/public_api.d.ts +1 -0
- package/components/input/base-form-custom/.npmignore +2 -0
- package/components/input/base-form-custom/base-form-custom.component.d.ts +23 -0
- package/components/input/base-form-custom/bundles/index.umd.js +129 -0
- package/components/input/base-form-custom/esm2022/base-form-custom.component.mjs +105 -0
- package/components/input/base-form-custom/esm2022/index.mjs +5 -0
- package/components/input/base-form-custom/esm2022/public_api.mjs +2 -0
- package/components/input/base-form-custom/fesm2022/index.mjs +112 -0
- package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form-custom/index.d.ts +5 -0
- package/components/input/base-form-custom/package.json +20 -0
- package/components/input/base-form-custom/public_api.d.ts +1 -0
- package/components/input/button/.npmignore +2 -0
- package/components/input/button/bundles/index.umd.js +98 -0
- package/components/input/button/button.component.d.ts +19 -0
- package/components/input/button/button.props.d.ts +1 -0
- package/components/input/button/esm2022/button.component.mjs +50 -0
- package/components/input/button/esm2022/button.props.mjs +26 -0
- package/components/input/button/esm2022/index.mjs +5 -0
- package/components/input/button/esm2022/public_api.mjs +2 -0
- package/components/input/button/fesm2022/index.mjs +81 -0
- package/components/input/button/fesm2022/index.mjs.map +1 -0
- package/components/input/button/index.d.ts +5 -0
- package/components/input/button/package.json +20 -0
- package/components/input/button/public_api.d.ts +1 -0
- package/components/input/button-group/.npmignore +2 -0
- package/components/input/button-group/bundles/index.umd.js +80 -0
- package/components/input/button-group/button-group.directive.d.ts +11 -0
- package/components/input/button-group/button-group.props.d.ts +1 -0
- package/components/input/button-group/esm2022/button-group.directive.mjs +47 -0
- package/components/input/button-group/esm2022/button-group.props.mjs +10 -0
- package/components/input/button-group/esm2022/index.mjs +5 -0
- package/components/input/button-group/esm2022/public_api.mjs +2 -0
- package/components/input/button-group/fesm2022/index.mjs +62 -0
- package/components/input/button-group/fesm2022/index.mjs.map +1 -0
- package/components/input/button-group/index.d.ts +5 -0
- package/components/input/button-group/package.json +20 -0
- package/components/input/button-group/public_api.d.ts +1 -0
- package/components/input/calendar/.npmignore +2 -0
- package/components/input/calendar/bundles/index.umd.js +655 -0
- package/components/input/calendar/calendar.component.d.ts +128 -0
- package/components/input/calendar/calendar.props.d.ts +1 -0
- package/components/input/calendar/esm2022/calendar.component.mjs +637 -0
- package/components/input/calendar/esm2022/calendar.props.mjs +23 -0
- package/components/input/calendar/esm2022/index.mjs +5 -0
- package/components/input/calendar/esm2022/public_api.mjs +2 -0
- package/components/input/calendar/fesm2022/index.mjs +665 -0
- package/components/input/calendar/fesm2022/index.mjs.map +1 -0
- package/components/input/calendar/index.d.ts +5 -0
- package/components/input/calendar/package.json +20 -0
- package/components/input/calendar/public_api.d.ts +1 -0
- package/components/input/caption-position/.npmignore +2 -0
- package/components/input/caption-position/bundles/index.umd.js +196 -0
- package/components/input/caption-position/caption-position.directive.d.ts +31 -0
- package/components/input/caption-position/esm2022/caption-position.directive.mjs +172 -0
- package/components/input/caption-position/esm2022/index.mjs +5 -0
- package/components/input/caption-position/esm2022/public_api.mjs +2 -0
- package/components/input/caption-position/fesm2022/index.mjs +178 -0
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -0
- package/components/input/caption-position/index.d.ts +5 -0
- package/components/input/caption-position/package.json +20 -0
- package/components/input/caption-position/public_api.d.ts +1 -0
- package/components/input/checkbox/.npmignore +2 -0
- package/components/input/checkbox/bundles/index.umd.js +206 -0
- package/components/input/checkbox/checkbox.component.d.ts +36 -0
- package/components/input/checkbox/checkbox.props.d.ts +2 -0
- package/components/input/checkbox/esm2022/checkbox.component.mjs +158 -0
- package/components/input/checkbox/esm2022/checkbox.props.mjs +30 -0
- package/components/input/checkbox/esm2022/index.mjs +5 -0
- package/components/input/checkbox/esm2022/public_api.mjs +2 -0
- package/components/input/checkbox/fesm2022/index.mjs +191 -0
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -0
- package/components/input/checkbox/index.d.ts +5 -0
- package/components/input/checkbox/package.json +20 -0
- package/components/input/checkbox/public_api.d.ts +1 -0
- package/components/input/checkboxset/.npmignore +2 -0
- package/components/input/checkboxset/bundles/index.umd.js +178 -0
- package/components/input/checkboxset/checkboxset.component.d.ts +24 -0
- package/components/input/checkboxset/checkboxset.props.d.ts +2 -0
- package/components/input/checkboxset/esm2022/checkboxset.component.mjs +125 -0
- package/components/input/checkboxset/esm2022/checkboxset.props.mjs +36 -0
- package/components/input/checkboxset/esm2022/index.mjs +5 -0
- package/components/input/checkboxset/esm2022/public_api.mjs +2 -0
- package/components/input/checkboxset/fesm2022/index.mjs +165 -0
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -0
- package/components/input/checkboxset/index.d.ts +5 -0
- package/components/input/checkboxset/package.json +20 -0
- package/components/input/checkboxset/public_api.d.ts +1 -0
- package/components/input/chips/.npmignore +2 -0
- package/components/input/chips/bundles/index.umd.js +741 -0
- package/components/input/chips/chips.component.d.ts +87 -0
- package/components/input/chips/chips.props.d.ts +2 -0
- package/components/input/chips/esm2022/chips.component.mjs +676 -0
- package/components/input/chips/esm2022/chips.props.mjs +49 -0
- package/components/input/chips/esm2022/index.mjs +5 -0
- package/components/input/chips/esm2022/public_api.mjs +2 -0
- package/components/input/chips/fesm2022/index.mjs +729 -0
- package/components/input/chips/fesm2022/index.mjs.map +1 -0
- package/components/input/chips/index.d.ts +5 -0
- package/components/input/chips/package.json +20 -0
- package/components/input/chips/public_api.d.ts +1 -0
- package/components/input/color-picker/.npmignore +2 -0
- package/components/input/color-picker/bundles/index.umd.js +145 -0
- package/components/input/color-picker/color-picker.component.d.ts +33 -0
- package/components/input/color-picker/color-picker.props.d.ts +2 -0
- package/components/input/color-picker/esm2022/color-picker.component.mjs +107 -0
- package/components/input/color-picker/esm2022/color-picker.props.mjs +22 -0
- package/components/input/color-picker/esm2022/index.mjs +5 -0
- package/components/input/color-picker/esm2022/public_api.mjs +2 -0
- package/components/input/color-picker/fesm2022/index.mjs +132 -0
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -0
- package/components/input/color-picker/index.d.ts +5 -0
- package/components/input/color-picker/package.json +20 -0
- package/components/input/color-picker/public_api.d.ts +1 -0
- package/components/input/composite/.npmignore +2 -0
- package/components/input/composite/bundles/index.umd.js +120 -0
- package/components/input/composite/composite.directive.d.ts +24 -0
- package/components/input/composite/composite.props.d.ts +1 -0
- package/components/input/composite/esm2022/composite.directive.mjs +88 -0
- package/components/input/composite/esm2022/composite.props.mjs +10 -0
- package/components/input/composite/esm2022/index.mjs +5 -0
- package/components/input/composite/esm2022/public_api.mjs +2 -0
- package/components/input/composite/fesm2022/index.mjs +103 -0
- package/components/input/composite/fesm2022/index.mjs.map +1 -0
- package/components/input/composite/index.d.ts +5 -0
- package/components/input/composite/package.json +20 -0
- package/components/input/composite/public_api.d.ts +1 -0
- package/components/input/currency/.npmignore +2 -0
- package/components/input/currency/bundles/index.umd.js +112 -0
- package/components/input/currency/currency.component.d.ts +28 -0
- package/components/input/currency/currency.props.d.ts +2 -0
- package/components/input/currency/esm2022/currency.component.mjs +67 -0
- package/components/input/currency/esm2022/currency.props.mjs +27 -0
- package/components/input/currency/esm2022/index.mjs +5 -0
- package/components/input/currency/esm2022/public_api.mjs +2 -0
- package/components/input/currency/fesm2022/index.mjs +97 -0
- package/components/input/currency/fesm2022/index.mjs.map +1 -0
- package/components/input/currency/index.d.ts +5 -0
- package/components/input/currency/package.json +20 -0
- package/components/input/currency/public_api.d.ts +1 -0
- package/components/input/dataset-aware-form/.npmignore +2 -0
- package/components/input/dataset-aware-form/bundles/index.umd.js +352 -0
- package/components/input/dataset-aware-form/dataset-aware-form.component.d.ts +76 -0
- package/components/input/dataset-aware-form/esm2022/dataset-aware-form.component.mjs +331 -0
- package/components/input/dataset-aware-form/esm2022/index.mjs +5 -0
- package/components/input/dataset-aware-form/esm2022/public_api.mjs +2 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs +338 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -0
- package/components/input/dataset-aware-form/index.d.ts +5 -0
- package/components/input/dataset-aware-form/package.json +20 -0
- package/components/input/dataset-aware-form/public_api.d.ts +1 -0
- package/components/input/epoch/base-date-time/.npmignore +2 -0
- package/components/input/epoch/base-date-time/base-date-time.component.d.ts +246 -0
- package/components/input/epoch/base-date-time/bundles/index.umd.js +1093 -0
- package/components/input/epoch/base-date-time/esm2022/base-date-time.component.mjs +1077 -0
- package/components/input/epoch/base-date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/base-date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +1084 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/base-date-time/index.d.ts +5 -0
- package/components/input/epoch/base-date-time/package.json +20 -0
- package/components/input/epoch/base-date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date/.npmignore +2 -0
- package/components/input/epoch/date/bundles/index.umd.js +515 -0
- package/components/input/epoch/date/date.component.d.ts +61 -0
- package/components/input/epoch/date/date.props.d.ts +2 -0
- package/components/input/epoch/date/esm2022/date.component.mjs +345 -0
- package/components/input/epoch/date/esm2022/date.props.mjs +43 -0
- package/components/input/epoch/date/esm2022/imaskUtil.mjs +114 -0
- package/components/input/epoch/date/esm2022/index.mjs +5 -0
- package/components/input/epoch/date/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date/fesm2022/index.mjs +505 -0
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date/imaskUtil.d.ts +92 -0
- package/components/input/epoch/date/index.d.ts +5 -0
- package/components/input/epoch/date/package.json +20 -0
- package/components/input/epoch/date/public_api.d.ts +1 -0
- package/components/input/epoch/date-time/.npmignore +2 -0
- package/components/input/epoch/date-time/bundles/index.umd.js +519 -0
- package/components/input/epoch/date-time/date-time.component.d.ts +109 -0
- package/components/input/epoch/date-time/date-time.props.d.ts +2 -0
- package/components/input/epoch/date-time/esm2022/date-time.component.mjs +459 -0
- package/components/input/epoch/date-time/esm2022/date-time.props.mjs +47 -0
- package/components/input/epoch/date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs +510 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time/index.d.ts +5 -0
- package/components/input/epoch/date-time/package.json +20 -0
- package/components/input/epoch/date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date-time-picker/.npmignore +2 -0
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +453 -0
- package/components/input/epoch/date-time-picker/date-time-picker.component.d.ts +80 -0
- package/components/input/epoch/date-time-picker/esm2022/date-time-picker.component.mjs +433 -0
- package/components/input/epoch/date-time-picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time-picker/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +439 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time-picker/index.d.ts +5 -0
- package/components/input/epoch/date-time-picker/package.json +20 -0
- package/components/input/epoch/date-time-picker/public_api.d.ts +1 -0
- package/components/input/epoch/picker/.npmignore +2 -0
- package/components/input/epoch/picker/bundles/index.umd.js +192 -0
- package/components/input/epoch/picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/picker/esm2022/picker.component.mjs +165 -0
- package/components/input/epoch/picker/esm2022/public_api.mjs +3 -0
- package/components/input/epoch/picker/fesm2022/index.mjs +172 -0
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/picker/index.d.ts +5 -0
- package/components/input/epoch/picker/package.json +20 -0
- package/components/input/epoch/picker/picker.component.d.ts +36 -0
- package/components/input/epoch/picker/public_api.d.ts +2 -0
- package/components/input/epoch/time/.npmignore +2 -0
- package/components/input/epoch/time/bundles/index.umd.js +401 -0
- package/components/input/epoch/time/esm2022/index.mjs +5 -0
- package/components/input/epoch/time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/time/esm2022/time.component.mjs +352 -0
- package/components/input/epoch/time/esm2022/time.props.mjs +35 -0
- package/components/input/epoch/time/fesm2022/index.mjs +391 -0
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/time/index.d.ts +5 -0
- package/components/input/epoch/time/package.json +20 -0
- package/components/input/epoch/time/public_api.d.ts +1 -0
- package/components/input/epoch/time/time.component.d.ts +105 -0
- package/components/input/epoch/time/time.props.d.ts +2 -0
- package/components/input/file-upload/.npmignore +2 -0
- package/components/input/file-upload/bundles/index.umd.js +483 -0
- package/components/input/file-upload/esm2022/file-upload.component.mjs +426 -0
- package/components/input/file-upload/esm2022/file-upload.props.mjs +39 -0
- package/components/input/file-upload/esm2022/index.mjs +5 -0
- package/components/input/file-upload/esm2022/public_api.mjs +2 -0
- package/components/input/file-upload/fesm2022/index.mjs +469 -0
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -0
- package/components/input/file-upload/file-upload.component.d.ts +103 -0
- package/components/input/file-upload/file-upload.props.d.ts +1 -0
- package/components/input/file-upload/index.d.ts +5 -0
- package/components/input/file-upload/package.json +20 -0
- package/components/input/file-upload/public_api.d.ts +1 -0
- package/components/input/number/.npmignore +2 -0
- package/components/input/number/bundles/index.umd.js +109 -0
- package/components/input/number/esm2022/index.mjs +5 -0
- package/components/input/number/esm2022/number.component.mjs +57 -0
- package/components/input/number/esm2022/number.props.mjs +35 -0
- package/components/input/number/esm2022/public_api.mjs +2 -0
- package/components/input/number/fesm2022/index.mjs +95 -0
- package/components/input/number/fesm2022/index.mjs.map +1 -0
- package/components/input/number/index.d.ts +5 -0
- package/components/input/number/number.component.d.ts +26 -0
- package/components/input/number/number.props.d.ts +2 -0
- package/components/input/number/package.json +20 -0
- package/components/input/number/public_api.d.ts +1 -0
- package/components/input/radioset/.npmignore +2 -0
- package/components/input/radioset/bundles/index.umd.js +164 -0
- package/components/input/radioset/esm2022/index.mjs +5 -0
- package/components/input/radioset/esm2022/public_api.mjs +2 -0
- package/components/input/radioset/esm2022/radioset.component.mjs +110 -0
- package/components/input/radioset/esm2022/radioset.props.mjs +37 -0
- package/components/input/radioset/fesm2022/index.mjs +151 -0
- package/components/input/radioset/fesm2022/index.mjs.map +1 -0
- package/components/input/radioset/index.d.ts +5 -0
- package/components/input/radioset/package.json +20 -0
- package/components/input/radioset/public_api.d.ts +1 -0
- package/components/input/radioset/radioset.component.d.ts +23 -0
- package/components/input/radioset/radioset.props.d.ts +2 -0
- package/components/input/rating/.npmignore +2 -0
- package/components/input/rating/bundles/index.umd.js +270 -0
- package/components/input/rating/esm2022/index.mjs +5 -0
- package/components/input/rating/esm2022/public_api.mjs +2 -0
- package/components/input/rating/esm2022/rating.component.mjs +225 -0
- package/components/input/rating/esm2022/rating.props.mjs +29 -0
- package/components/input/rating/fesm2022/index.mjs +257 -0
- package/components/input/rating/fesm2022/index.mjs.map +1 -0
- package/components/input/rating/index.d.ts +5 -0
- package/components/input/rating/package.json +20 -0
- package/components/input/rating/public_api.d.ts +1 -0
- package/components/input/rating/rating.component.d.ts +44 -0
- package/components/input/rating/rating.props.d.ts +2 -0
- package/components/input/select/.npmignore +2 -0
- package/components/input/select/bundles/index.umd.js +225 -0
- package/components/input/select/esm2022/index.mjs +5 -0
- package/components/input/select/esm2022/public_api.mjs +2 -0
- package/components/input/select/esm2022/select.component.mjs +172 -0
- package/components/input/select/esm2022/select.props.mjs +36 -0
- package/components/input/select/fesm2022/index.mjs +211 -0
- package/components/input/select/fesm2022/index.mjs.map +1 -0
- package/components/input/select/index.d.ts +5 -0
- package/components/input/select/package.json +20 -0
- package/components/input/select/public_api.d.ts +1 -0
- package/components/input/select/select.component.d.ts +36 -0
- package/components/input/select/select.props.d.ts +2 -0
- package/components/input/slider/.npmignore +2 -0
- package/components/input/slider/bundles/index.umd.js +203 -0
- package/components/input/slider/esm2022/index.mjs +5 -0
- package/components/input/slider/esm2022/public_api.mjs +2 -0
- package/components/input/slider/esm2022/slider.component.mjs +157 -0
- package/components/input/slider/esm2022/slider.props.mjs +28 -0
- package/components/input/slider/fesm2022/index.mjs +189 -0
- package/components/input/slider/fesm2022/index.mjs.map +1 -0
- package/components/input/slider/index.d.ts +5 -0
- package/components/input/slider/package.json +20 -0
- package/components/input/slider/public_api.d.ts +1 -0
- package/components/input/slider/slider.component.d.ts +39 -0
- package/components/input/slider/slider.props.d.ts +2 -0
- package/components/input/switch/.npmignore +2 -0
- package/components/input/switch/bundles/index.umd.js +224 -0
- package/components/input/switch/esm2022/index.mjs +5 -0
- package/components/input/switch/esm2022/public_api.mjs +2 -0
- package/components/input/switch/esm2022/switch.component.mjs +179 -0
- package/components/input/switch/esm2022/switch.props.mjs +28 -0
- package/components/input/switch/fesm2022/index.mjs +211 -0
- package/components/input/switch/fesm2022/index.mjs.map +1 -0
- package/components/input/switch/index.d.ts +5 -0
- package/components/input/switch/package.json +20 -0
- package/components/input/switch/public_api.d.ts +1 -0
- package/components/input/switch/switch.component.d.ts +30 -0
- package/components/input/switch/switch.props.d.ts +2 -0
- package/components/input/text/.npmignore +2 -0
- package/components/input/text/base-input/base-input.d.ts +33 -0
- package/components/input/text/bundles/index.umd.js +1130 -0
- package/components/input/text/esm2022/base-input/base-input.mjs +93 -0
- package/components/input/text/esm2022/index.mjs +5 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.component.mjs +53 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.props.mjs +30 -0
- package/components/input/text/esm2022/input-color/input-color.component.mjs +53 -0
- package/components/input/text/esm2022/input-color/input-color.props.mjs +27 -0
- package/components/input/text/esm2022/input-email/input-email.component.mjs +53 -0
- package/components/input/text/esm2022/input-email/input-email.props.mjs +29 -0
- package/components/input/text/esm2022/input-number/input-number.component.mjs +63 -0
- package/components/input/text/esm2022/input-number/input-number.props.mjs +32 -0
- package/components/input/text/esm2022/input-text/input-text.component.mjs +136 -0
- package/components/input/text/esm2022/input-text/input-text.props.mjs +48 -0
- package/components/input/text/esm2022/number-locale/number-locale.mjs +554 -0
- package/components/input/text/esm2022/public_api.mjs +8 -0
- package/components/input/text/fesm2022/index.mjs +1114 -0
- package/components/input/text/fesm2022/index.mjs.map +1 -0
- package/components/input/text/index.d.ts +5 -0
- package/components/input/text/input-calendar/input-calendar.component.d.ts +30 -0
- package/components/input/text/input-calendar/input-calendar.props.d.ts +2 -0
- package/components/input/text/input-color/input-color.component.d.ts +27 -0
- package/components/input/text/input-color/input-color.props.d.ts +2 -0
- package/components/input/text/input-email/input-email.component.d.ts +29 -0
- package/components/input/text/input-email/input-email.props.d.ts +2 -0
- package/components/input/text/input-number/input-number.component.d.ts +33 -0
- package/components/input/text/input-number/input-number.props.d.ts +2 -0
- package/components/input/text/input-text/input-text.component.d.ts +52 -0
- package/components/input/text/input-text/input-text.props.d.ts +2 -0
- package/components/input/text/number-locale/number-locale.d.ts +127 -0
- package/components/input/text/package.json +20 -0
- package/components/input/text/public_api.d.ts +7 -0
- package/components/input/textarea/.npmignore +2 -0
- package/components/input/textarea/bundles/index.umd.js +108 -0
- package/components/input/textarea/esm2022/index.mjs +5 -0
- package/components/input/textarea/esm2022/public_api.mjs +2 -0
- package/components/input/textarea/esm2022/textarea.component.mjs +60 -0
- package/components/input/textarea/esm2022/textarea.props.mjs +30 -0
- package/components/input/textarea/fesm2022/index.mjs +94 -0
- package/components/input/textarea/fesm2022/index.mjs.map +1 -0
- package/components/input/textarea/index.d.ts +5 -0
- package/components/input/textarea/package.json +20 -0
- package/components/input/textarea/public_api.d.ts +1 -0
- package/components/input/textarea/textarea.component.d.ts +30 -0
- package/components/input/textarea/textarea.props.d.ts +2 -0
- package/components/navigation/breadcrumb/.npmignore +2 -0
- package/components/navigation/breadcrumb/breadcrumb.component.d.ts +25 -0
- package/components/navigation/breadcrumb/breadcrumb.props.d.ts +1 -0
- package/components/navigation/breadcrumb/bundles/index.umd.js +138 -0
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +101 -0
- package/components/navigation/breadcrumb/esm2022/breadcrumb.props.mjs +17 -0
- package/components/navigation/breadcrumb/esm2022/index.mjs +5 -0
- package/components/navigation/breadcrumb/esm2022/public_api.mjs +2 -0
- package/components/navigation/breadcrumb/fesm2022/index.mjs +121 -0
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -0
- package/components/navigation/breadcrumb/index.d.ts +5 -0
- package/components/navigation/breadcrumb/package.json +20 -0
- package/components/navigation/breadcrumb/public_api.d.ts +1 -0
- package/components/navigation/menu/.npmignore +2 -0
- package/components/navigation/menu/bundles/index.umd.js +947 -0
- package/components/navigation/menu/esm2022/index.mjs +5 -0
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +80 -0
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +105 -0
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +191 -0
- package/components/navigation/menu/esm2022/menu.component.mjs +282 -0
- package/components/navigation/menu/esm2022/menu.props.mjs +37 -0
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +66 -0
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.props.mjs +9 -0
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +131 -0
- package/components/navigation/menu/esm2022/nav/nav.props.mjs +28 -0
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +49 -0
- package/components/navigation/menu/esm2022/public_api.mjs +8 -0
- package/components/navigation/menu/fesm2022/index.mjs +929 -0
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -0
- package/components/navigation/menu/index.d.ts +5 -0
- package/components/navigation/menu/menu-adapator.component.d.ts +23 -0
- package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +15 -0
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +35 -0
- package/components/navigation/menu/menu.component.d.ts +65 -0
- package/components/navigation/menu/menu.props.d.ts +1 -0
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +14 -0
- package/components/navigation/menu/nav/nav-item/nav-item.props.d.ts +1 -0
- package/components/navigation/menu/nav/nav.component.d.ts +35 -0
- package/components/navigation/menu/nav/nav.props.d.ts +1 -0
- package/components/navigation/menu/nav/navigation-control.directive.d.ts +14 -0
- package/components/navigation/menu/package.json +20 -0
- package/components/navigation/menu/public_api.d.ts +7 -0
- package/components/navigation/navbar/.npmignore +2 -0
- package/components/navigation/navbar/bundles/index.umd.js +87 -0
- package/components/navigation/navbar/esm2022/index.mjs +5 -0
- package/components/navigation/navbar/esm2022/navbar.component.mjs +52 -0
- package/components/navigation/navbar/esm2022/navbar.props.mjs +13 -0
- package/components/navigation/navbar/esm2022/public_api.mjs +2 -0
- package/components/navigation/navbar/fesm2022/index.mjs +70 -0
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -0
- package/components/navigation/navbar/index.d.ts +5 -0
- package/components/navigation/navbar/navbar.component.d.ts +16 -0
- package/components/navigation/navbar/navbar.props.d.ts +1 -0
- package/components/navigation/navbar/package.json +20 -0
- package/components/navigation/navbar/public_api.d.ts +1 -0
- package/components/navigation/popover/.npmignore +2 -0
- package/components/navigation/popover/bundles/index.umd.js +514 -0
- package/components/navigation/popover/esm2022/index.mjs +5 -0
- package/components/navigation/popover/esm2022/popover.component.mjs +460 -0
- package/components/navigation/popover/esm2022/popover.props.mjs +35 -0
- package/components/navigation/popover/esm2022/public_api.mjs +2 -0
- package/components/navigation/popover/fesm2022/index.mjs +500 -0
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -0
- package/components/navigation/popover/index.d.ts +5 -0
- package/components/navigation/popover/package.json +20 -0
- package/components/navigation/popover/popover.component.d.ts +83 -0
- package/components/navigation/popover/popover.props.d.ts +1 -0
- package/components/navigation/popover/public_api.d.ts +1 -0
- package/components/page/default/.npmignore +2 -0
- package/components/page/default/bundles/index.umd.js +458 -0
- package/components/page/default/content/content.component.d.ts +9 -0
- package/components/page/default/content/content.props.d.ts +1 -0
- package/components/page/default/esm2022/content/content.component.mjs +29 -0
- package/components/page/default/esm2022/content/content.props.mjs +8 -0
- package/components/page/default/esm2022/index.mjs +5 -0
- package/components/page/default/esm2022/layout.directive.mjs +58 -0
- package/components/page/default/esm2022/layout.props.mjs +5 -0
- package/components/page/default/esm2022/page-content/page-content.component.mjs +85 -0
- package/components/page/default/esm2022/page-content/page-content.props.mjs +14 -0
- package/components/page/default/esm2022/page.directive.mjs +97 -0
- package/components/page/default/esm2022/page.props.mjs +11 -0
- package/components/page/default/esm2022/public_api.mjs +7 -0
- package/components/page/default/esm2022/router-outlet.directive.mjs +47 -0
- package/components/page/default/esm2022/router-outlet.props.mjs +8 -0
- package/components/page/default/esm2022/spa-page.directive.mjs +97 -0
- package/components/page/default/esm2022/spa-page.props.mjs +10 -0
- package/components/page/default/fesm2022/index.mjs +438 -0
- package/components/page/default/fesm2022/index.mjs.map +1 -0
- package/components/page/default/index.d.ts +5 -0
- package/components/page/default/layout.directive.d.ts +20 -0
- package/components/page/default/layout.props.d.ts +1 -0
- package/components/page/default/package.json +20 -0
- package/components/page/default/page-content/page-content.component.d.ts +17 -0
- package/components/page/default/page-content/page-content.props.d.ts +1 -0
- package/components/page/default/page.directive.d.ts +38 -0
- package/components/page/default/page.props.d.ts +1 -0
- package/components/page/default/public_api.d.ts +6 -0
- package/components/page/default/router-outlet.directive.d.ts +13 -0
- package/components/page/default/router-outlet.props.d.ts +1 -0
- package/components/page/default/spa-page.directive.d.ts +38 -0
- package/components/page/default/spa-page.props.d.ts +1 -0
- package/components/page/footer/.npmignore +2 -0
- package/components/page/footer/bundles/index.umd.js +71 -0
- package/components/page/footer/esm2022/footer.directive.mjs +37 -0
- package/components/page/footer/esm2022/footer.props.mjs +11 -0
- package/components/page/footer/esm2022/index.mjs +5 -0
- package/components/page/footer/esm2022/public_api.mjs +2 -0
- package/components/page/footer/fesm2022/index.mjs +53 -0
- package/components/page/footer/fesm2022/index.mjs.map +1 -0
- package/components/page/footer/footer.directive.d.ts +9 -0
- package/components/page/footer/footer.props.d.ts +1 -0
- package/components/page/footer/index.d.ts +5 -0
- package/components/page/footer/package.json +20 -0
- package/components/page/footer/public_api.d.ts +1 -0
- package/components/page/header/.npmignore +2 -0
- package/components/page/header/bundles/index.umd.js +67 -0
- package/components/page/header/esm2022/header.component.mjs +33 -0
- package/components/page/header/esm2022/header.props.mjs +11 -0
- package/components/page/header/esm2022/index.mjs +5 -0
- package/components/page/header/esm2022/public_api.mjs +2 -0
- package/components/page/header/fesm2022/index.mjs +49 -0
- package/components/page/header/fesm2022/index.mjs.map +1 -0
- package/components/page/header/header.component.d.ts +10 -0
- package/components/page/header/header.props.d.ts +1 -0
- package/components/page/header/index.d.ts +5 -0
- package/components/page/header/package.json +20 -0
- package/components/page/header/public_api.d.ts +1 -0
- package/components/page/left-panel/.npmignore +2 -0
- package/components/page/left-panel/bundles/index.umd.js +415 -0
- package/components/page/left-panel/esm2022/index.mjs +5 -0
- package/components/page/left-panel/esm2022/left-panel.animator.mjs +133 -0
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +251 -0
- package/components/page/left-panel/esm2022/left-panel.props.mjs +15 -0
- package/components/page/left-panel/esm2022/public_api.mjs +2 -0
- package/components/page/left-panel/fesm2022/index.mjs +400 -0
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -0
- package/components/page/left-panel/index.d.ts +5 -0
- package/components/page/left-panel/left-panel.animator.d.ts +49 -0
- package/components/page/left-panel/left-panel.directive.d.ts +38 -0
- package/components/page/left-panel/left-panel.props.d.ts +1 -0
- package/components/page/left-panel/package.json +20 -0
- package/components/page/left-panel/public_api.d.ts +1 -0
- package/components/page/right-panel/.npmignore +2 -0
- package/components/page/right-panel/bundles/index.umd.js +86 -0
- package/components/page/right-panel/esm2022/index.mjs +5 -0
- package/components/page/right-panel/esm2022/public_api.mjs +2 -0
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +52 -0
- package/components/page/right-panel/esm2022/right-panel.props.mjs +12 -0
- package/components/page/right-panel/fesm2022/index.mjs +69 -0
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -0
- package/components/page/right-panel/index.d.ts +5 -0
- package/components/page/right-panel/package.json +20 -0
- package/components/page/right-panel/public_api.d.ts +1 -0
- package/components/page/right-panel/right-panel.directive.d.ts +10 -0
- package/components/page/right-panel/right-panel.props.d.ts +1 -0
- package/components/page/top-nav/.npmignore +2 -0
- package/components/page/top-nav/bundles/index.umd.js +68 -0
- package/components/page/top-nav/esm2022/index.mjs +5 -0
- package/components/page/top-nav/esm2022/public_api.mjs +2 -0
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +34 -0
- package/components/page/top-nav/esm2022/top-nav.props.mjs +11 -0
- package/components/page/top-nav/fesm2022/index.mjs +50 -0
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -0
- package/components/page/top-nav/index.d.ts +5 -0
- package/components/page/top-nav/package.json +20 -0
- package/components/page/top-nav/public_api.d.ts +1 -0
- package/components/page/top-nav/top-nav.directive.d.ts +9 -0
- package/components/page/top-nav/top-nav.props.d.ts +1 -0
- package/components/prefab/.npmignore +2 -0
- package/components/prefab/bundles/index.umd.js +176 -0
- package/components/prefab/esm2022/index.mjs +5 -0
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +56 -0
- package/components/prefab/esm2022/prefab-container/prefab-container.props.mjs +9 -0
- package/components/prefab/esm2022/prefab.directive.mjs +88 -0
- package/components/prefab/esm2022/prefab.props.mjs +8 -0
- package/components/prefab/esm2022/public_api.mjs +3 -0
- package/components/prefab/fesm2022/index.mjs +159 -0
- package/components/prefab/fesm2022/index.mjs.map +1 -0
- package/components/prefab/index.d.ts +5 -0
- package/components/prefab/package.json +20 -0
- package/components/prefab/prefab-container/prefab-container.directive.d.ts +15 -0
- package/components/prefab/prefab-container/prefab-container.props.d.ts +1 -0
- package/components/prefab/prefab.directive.d.ts +17 -0
- package/components/prefab/prefab.props.d.ts +1 -0
- package/components/prefab/public_api.d.ts +2 -0
- package/core/.npmignore +2 -0
- package/core/bundles/index.umd.js +5608 -0
- package/core/constants/currency-constants.d.ts +1064 -0
- package/core/enums/enums.d.ts +67 -0
- package/core/esm2022/constants/currency-constants.mjs +1065 -0
- package/core/esm2022/enums/enums.mjs +72 -0
- package/core/esm2022/index.mjs +5 -0
- package/core/esm2022/public_api.mjs +26 -0
- package/core/esm2022/services/constant.service.mjs +25 -0
- package/core/esm2022/services/custom-icons-loader.service.mjs +20 -0
- package/core/esm2022/services/field-type.service.mjs +35 -0
- package/core/esm2022/services/field-widget.service.mjs +37 -0
- package/core/esm2022/services/pagination.service.mjs +336 -0
- package/core/esm2022/services/script-loader.service.mjs +75 -0
- package/core/esm2022/services/state-persistence.service.mjs +500 -0
- package/core/esm2022/services/user-custom-pipe-manager.service.mjs +23 -0
- package/core/esm2022/services/utils.service.mjs +16 -0
- package/core/esm2022/services/viewport.service.mjs +121 -0
- package/core/esm2022/types/types.mjs +81 -0
- package/core/esm2022/utils/build-utils.mjs +296 -0
- package/core/esm2022/utils/dom.mjs +123 -0
- package/core/esm2022/utils/event-notifier.mjs +70 -0
- package/core/esm2022/utils/expression-parser.mjs +593 -0
- package/core/esm2022/utils/id-generator.mjs +15 -0
- package/core/esm2022/utils/lru-cache.mjs +95 -0
- package/core/esm2022/utils/utils.mjs +1476 -0
- package/core/esm2022/utils/watcher.mjs +276 -0
- package/core/esm2022/utils/wm-project-properties.mjs +30 -0
- package/core/fesm2022/index.mjs +5455 -0
- package/core/fesm2022/index.mjs.map +1 -0
- package/core/index.d.ts +5 -0
- package/core/package.json +26 -0
- package/core/public_api.d.ts +22 -0
- package/core/services/constant.service.d.ts +28 -0
- package/core/services/custom-icons-loader.service.d.ts +6 -0
- package/core/services/field-type.service.d.ts +6 -0
- package/core/services/field-widget.service.d.ts +6 -0
- package/core/services/pagination.service.d.ts +59 -0
- package/core/services/script-loader.service.d.ts +17 -0
- package/core/services/state-persistence.service.d.ts +231 -0
- package/core/services/user-custom-pipe-manager.service.d.ts +9 -0
- package/core/services/utils.service.d.ts +6 -0
- package/core/services/viewport.service.d.ts +37 -0
- package/core/types/types.d.ts +208 -0
- package/core/utils/build-utils.d.ts +14 -0
- package/core/utils/dom.d.ts +16 -0
- package/core/utils/event-notifier.d.ts +26 -0
- package/core/utils/expression-parser.d.ts +8 -0
- package/core/utils/id-generator.d.ts +5 -0
- package/core/utils/lru-cache.d.ts +23 -0
- package/core/utils/utils.d.ts +279 -0
- package/core/utils/watcher.d.ts +13 -0
- package/core/utils/wm-project-properties.d.ts +4 -0
- package/http/.npmignore +2 -0
- package/http/bundles/index.umd.js +421 -0
- package/http/esm2022/http.service.mjs +301 -0
- package/http/esm2022/index.mjs +5 -0
- package/http/esm2022/public_api.mjs +4 -0
- package/http/esm2022/wm-http-request.mjs +48 -0
- package/http/esm2022/wm-http-response.mjs +52 -0
- package/http/fesm2022/index.mjs +405 -0
- package/http/fesm2022/index.mjs.map +1 -0
- package/http/http.service.d.ts +70 -0
- package/http/index.d.ts +5 -0
- package/http/package.json +25 -0
- package/http/public_api.d.ts +3 -0
- package/http/wm-http-request.d.ts +24 -0
- package/http/wm-http-response.d.ts +22 -0
- package/locales/angular/global/af-na.js +24 -0
- package/locales/angular/global/af.js +24 -0
- package/locales/angular/global/agq.js +22 -0
- package/locales/angular/global/ak.js +24 -0
- package/locales/angular/global/am.js +24 -0
- package/locales/angular/global/ar-ae.js +32 -0
- package/locales/angular/global/ar-bh.js +32 -0
- package/locales/angular/global/ar-dj.js +32 -0
- package/locales/angular/global/ar-dz.js +32 -0
- package/locales/angular/global/ar-eg.js +32 -0
- package/locales/angular/global/ar-eh.js +32 -0
- package/locales/angular/global/ar-er.js +32 -0
- package/locales/angular/global/ar-il.js +32 -0
- package/locales/angular/global/ar-iq.js +32 -0
- package/locales/angular/global/ar-jo.js +32 -0
- package/locales/angular/global/ar-km.js +32 -0
- package/locales/angular/global/ar-kw.js +32 -0
- package/locales/angular/global/ar-lb.js +32 -0
- package/locales/angular/global/ar-ly.js +32 -0
- package/locales/angular/global/ar-ma.js +32 -0
- package/locales/angular/global/ar-mr.js +32 -0
- package/locales/angular/global/ar-om.js +32 -0
- package/locales/angular/global/ar-ps.js +32 -0
- package/locales/angular/global/ar-qa.js +32 -0
- package/locales/angular/global/ar-sa.js +32 -0
- package/locales/angular/global/ar-sd.js +32 -0
- package/locales/angular/global/ar-so.js +32 -0
- package/locales/angular/global/ar-ss.js +32 -0
- package/locales/angular/global/ar-sy.js +32 -0
- package/locales/angular/global/ar-td.js +32 -0
- package/locales/angular/global/ar-tn.js +32 -0
- package/locales/angular/global/ar-ye.js +32 -0
- package/locales/angular/global/ar.js +32 -0
- package/locales/angular/global/as.js +24 -0
- package/locales/angular/global/asa.js +24 -0
- package/locales/angular/global/ast.js +24 -0
- package/locales/angular/global/az-cyrl.js +22 -0
- package/locales/angular/global/az-latn.js +24 -0
- package/locales/angular/global/az.js +24 -0
- package/locales/angular/global/bas.js +22 -0
- package/locales/angular/global/be-tarask.js +28 -0
- package/locales/angular/global/be.js +28 -0
- package/locales/angular/global/bem.js +24 -0
- package/locales/angular/global/bez.js +24 -0
- package/locales/angular/global/bg.js +24 -0
- package/locales/angular/global/bm.js +22 -0
- package/locales/angular/global/bn-in.js +24 -0
- package/locales/angular/global/bn.js +24 -0
- package/locales/angular/global/bo-in.js +22 -0
- package/locales/angular/global/bo.js +22 -0
- package/locales/angular/global/br.js +30 -0
- package/locales/angular/global/brx.js +24 -0
- package/locales/angular/global/bs-cyrl.js +22 -0
- package/locales/angular/global/bs-latn.js +26 -0
- package/locales/angular/global/bs.js +26 -0
- package/locales/angular/global/ca-ad.js +24 -0
- package/locales/angular/global/ca-es-valencia.js +24 -0
- package/locales/angular/global/ca-fr.js +24 -0
- package/locales/angular/global/ca-it.js +24 -0
- package/locales/angular/global/ca.js +24 -0
- package/locales/angular/global/ccp-in.js +22 -0
- package/locales/angular/global/ccp.js +22 -0
- package/locales/angular/global/ce.js +24 -0
- package/locales/angular/global/ceb.js +24 -0
- package/locales/angular/global/cgg.js +24 -0
- package/locales/angular/global/chr.js +24 -0
- package/locales/angular/global/ckb-ir.js +24 -0
- package/locales/angular/global/ckb.js +24 -0
- package/locales/angular/global/cs.js +28 -0
- package/locales/angular/global/cy.js +32 -0
- package/locales/angular/global/da-gl.js +24 -0
- package/locales/angular/global/da.js +24 -0
- package/locales/angular/global/dav.js +22 -0
- package/locales/angular/global/de-at.js +24 -0
- package/locales/angular/global/de-be.js +24 -0
- package/locales/angular/global/de-ch.js +24 -0
- package/locales/angular/global/de-it.js +24 -0
- package/locales/angular/global/de-li.js +24 -0
- package/locales/angular/global/de-lu.js +24 -0
- package/locales/angular/global/de.js +24 -0
- package/locales/angular/global/dje.js +22 -0
- package/locales/angular/global/doi.js +24 -0
- package/locales/angular/global/dsb.js +28 -0
- package/locales/angular/global/dua.js +22 -0
- package/locales/angular/global/dyo.js +22 -0
- package/locales/angular/global/dz.js +22 -0
- package/locales/angular/global/ebu.js +22 -0
- package/locales/angular/global/ee-tg.js +24 -0
- package/locales/angular/global/ee.js +24 -0
- package/locales/angular/global/el-cy.js +24 -0
- package/locales/angular/global/el.js +24 -0
- package/locales/angular/global/en-001.js +24 -0
- package/locales/angular/global/en-150.js +24 -0
- package/locales/angular/global/en-ae.js +24 -0
- package/locales/angular/global/en-ag.js +24 -0
- package/locales/angular/global/en-ai.js +24 -0
- package/locales/angular/global/en-as.js +24 -0
- package/locales/angular/global/en-at.js +24 -0
- package/locales/angular/global/en-au.js +24 -0
- package/locales/angular/global/en-bb.js +24 -0
- package/locales/angular/global/en-be.js +24 -0
- package/locales/angular/global/en-bi.js +24 -0
- package/locales/angular/global/en-bm.js +24 -0
- package/locales/angular/global/en-bs.js +24 -0
- package/locales/angular/global/en-bw.js +24 -0
- package/locales/angular/global/en-bz.js +24 -0
- package/locales/angular/global/en-ca.js +24 -0
- package/locales/angular/global/en-cc.js +24 -0
- package/locales/angular/global/en-ch.js +24 -0
- package/locales/angular/global/en-ck.js +24 -0
- package/locales/angular/global/en-cm.js +24 -0
- package/locales/angular/global/en-cx.js +24 -0
- package/locales/angular/global/en-cy.js +24 -0
- package/locales/angular/global/en-de.js +24 -0
- package/locales/angular/global/en-dg.js +24 -0
- package/locales/angular/global/en-dk.js +24 -0
- package/locales/angular/global/en-dm.js +24 -0
- package/locales/angular/global/en-er.js +24 -0
- package/locales/angular/global/en-fi.js +24 -0
- package/locales/angular/global/en-fj.js +24 -0
- package/locales/angular/global/en-fk.js +24 -0
- package/locales/angular/global/en-fm.js +24 -0
- package/locales/angular/global/en-gb.js +24 -0
- package/locales/angular/global/en-gd.js +24 -0
- package/locales/angular/global/en-gg.js +24 -0
- package/locales/angular/global/en-gh.js +24 -0
- package/locales/angular/global/en-gi.js +24 -0
- package/locales/angular/global/en-gm.js +24 -0
- package/locales/angular/global/en-gu.js +24 -0
- package/locales/angular/global/en-gy.js +24 -0
- package/locales/angular/global/en-hk.js +24 -0
- package/locales/angular/global/en-ie.js +24 -0
- package/locales/angular/global/en-il.js +24 -0
- package/locales/angular/global/en-im.js +24 -0
- package/locales/angular/global/en-in.js +24 -0
- package/locales/angular/global/en-io.js +24 -0
- package/locales/angular/global/en-je.js +24 -0
- package/locales/angular/global/en-jm.js +24 -0
- package/locales/angular/global/en-ke.js +24 -0
- package/locales/angular/global/en-ki.js +24 -0
- package/locales/angular/global/en-kn.js +24 -0
- package/locales/angular/global/en-ky.js +24 -0
- package/locales/angular/global/en-lc.js +24 -0
- package/locales/angular/global/en-lr.js +24 -0
- package/locales/angular/global/en-ls.js +24 -0
- package/locales/angular/global/en-mg.js +24 -0
- package/locales/angular/global/en-mh.js +24 -0
- package/locales/angular/global/en-mo.js +24 -0
- package/locales/angular/global/en-mp.js +24 -0
- package/locales/angular/global/en-ms.js +24 -0
- package/locales/angular/global/en-mt.js +24 -0
- package/locales/angular/global/en-mu.js +24 -0
- package/locales/angular/global/en-mv.js +24 -0
- package/locales/angular/global/en-mw.js +24 -0
- package/locales/angular/global/en-my.js +24 -0
- package/locales/angular/global/en-na.js +24 -0
- package/locales/angular/global/en-nf.js +24 -0
- package/locales/angular/global/en-ng.js +24 -0
- package/locales/angular/global/en-nl.js +24 -0
- package/locales/angular/global/en-nr.js +24 -0
- package/locales/angular/global/en-nu.js +24 -0
- package/locales/angular/global/en-nz.js +24 -0
- package/locales/angular/global/en-pg.js +24 -0
- package/locales/angular/global/en-ph.js +24 -0
- package/locales/angular/global/en-pk.js +24 -0
- package/locales/angular/global/en-pn.js +24 -0
- package/locales/angular/global/en-pr.js +24 -0
- package/locales/angular/global/en-pw.js +24 -0
- package/locales/angular/global/en-rw.js +24 -0
- package/locales/angular/global/en-sb.js +24 -0
- package/locales/angular/global/en-sc.js +24 -0
- package/locales/angular/global/en-sd.js +24 -0
- package/locales/angular/global/en-se.js +24 -0
- package/locales/angular/global/en-sg.js +24 -0
- package/locales/angular/global/en-sh.js +24 -0
- package/locales/angular/global/en-si.js +24 -0
- package/locales/angular/global/en-sl.js +24 -0
- package/locales/angular/global/en-ss.js +24 -0
- package/locales/angular/global/en-sx.js +24 -0
- package/locales/angular/global/en-sz.js +24 -0
- package/locales/angular/global/en-tc.js +24 -0
- package/locales/angular/global/en-tk.js +24 -0
- package/locales/angular/global/en-to.js +24 -0
- package/locales/angular/global/en-tt.js +24 -0
- package/locales/angular/global/en-tv.js +24 -0
- package/locales/angular/global/en-tz.js +24 -0
- package/locales/angular/global/en-ug.js +24 -0
- package/locales/angular/global/en-um.js +24 -0
- package/locales/angular/global/en-vc.js +24 -0
- package/locales/angular/global/en-vg.js +24 -0
- package/locales/angular/global/en-vi.js +24 -0
- package/locales/angular/global/en-vu.js +24 -0
- package/locales/angular/global/en-ws.js +24 -0
- package/locales/angular/global/en-za.js +24 -0
- package/locales/angular/global/en-zm.js +24 -0
- package/locales/angular/global/en-zw.js +24 -0
- package/locales/angular/global/en.js +24 -0
- package/locales/angular/global/eo.js +24 -0
- package/locales/angular/global/es-419.js +26 -0
- package/locales/angular/global/es-ar.js +26 -0
- package/locales/angular/global/es-bo.js +26 -0
- package/locales/angular/global/es-br.js +26 -0
- package/locales/angular/global/es-bz.js +26 -0
- package/locales/angular/global/es-cl.js +26 -0
- package/locales/angular/global/es-co.js +26 -0
- package/locales/angular/global/es-cr.js +26 -0
- package/locales/angular/global/es-cu.js +26 -0
- package/locales/angular/global/es-do.js +26 -0
- package/locales/angular/global/es-ea.js +26 -0
- package/locales/angular/global/es-ec.js +26 -0
- package/locales/angular/global/es-gq.js +26 -0
- package/locales/angular/global/es-gt.js +26 -0
- package/locales/angular/global/es-hn.js +26 -0
- package/locales/angular/global/es-ic.js +26 -0
- package/locales/angular/global/es-mx.js +26 -0
- package/locales/angular/global/es-ni.js +26 -0
- package/locales/angular/global/es-pa.js +26 -0
- package/locales/angular/global/es-pe.js +26 -0
- package/locales/angular/global/es-ph.js +26 -0
- package/locales/angular/global/es-pr.js +26 -0
- package/locales/angular/global/es-py.js +26 -0
- package/locales/angular/global/es-sv.js +26 -0
- package/locales/angular/global/es-us.js +26 -0
- package/locales/angular/global/es-uy.js +26 -0
- package/locales/angular/global/es-ve.js +26 -0
- package/locales/angular/global/es.js +26 -0
- package/locales/angular/global/et.js +24 -0
- package/locales/angular/global/eu.js +24 -0
- package/locales/angular/global/ewo.js +22 -0
- package/locales/angular/global/fa-af.js +24 -0
- package/locales/angular/global/fa.js +24 -0
- package/locales/angular/global/ff-adlm-bf.js +22 -0
- package/locales/angular/global/ff-adlm-cm.js +22 -0
- package/locales/angular/global/ff-adlm-gh.js +22 -0
- package/locales/angular/global/ff-adlm-gm.js +22 -0
- package/locales/angular/global/ff-adlm-gw.js +22 -0
- package/locales/angular/global/ff-adlm-lr.js +22 -0
- package/locales/angular/global/ff-adlm-mr.js +22 -0
- package/locales/angular/global/ff-adlm-ne.js +22 -0
- package/locales/angular/global/ff-adlm-ng.js +22 -0
- package/locales/angular/global/ff-adlm-sl.js +22 -0
- package/locales/angular/global/ff-adlm-sn.js +22 -0
- package/locales/angular/global/ff-adlm.js +22 -0
- package/locales/angular/global/ff-cm.js +74 -0
- package/locales/angular/global/ff-gn.js +74 -0
- package/locales/angular/global/ff-latn-bf.js +24 -0
- package/locales/angular/global/ff-latn-cm.js +24 -0
- package/locales/angular/global/ff-latn-gh.js +24 -0
- package/locales/angular/global/ff-latn-gm.js +24 -0
- package/locales/angular/global/ff-latn-gn.js +24 -0
- package/locales/angular/global/ff-latn-gw.js +24 -0
- package/locales/angular/global/ff-latn-lr.js +24 -0
- package/locales/angular/global/ff-latn-mr.js +24 -0
- package/locales/angular/global/ff-latn-ne.js +24 -0
- package/locales/angular/global/ff-latn-ng.js +24 -0
- package/locales/angular/global/ff-latn-sl.js +24 -0
- package/locales/angular/global/ff-latn.js +24 -0
- package/locales/angular/global/ff-mr.js +74 -0
- package/locales/angular/global/ff.js +24 -0
- package/locales/angular/global/fi.js +24 -0
- package/locales/angular/global/fil.js +24 -0
- package/locales/angular/global/fo-dk.js +24 -0
- package/locales/angular/global/fo.js +24 -0
- package/locales/angular/global/fr-be.js +26 -0
- package/locales/angular/global/fr-bf.js +26 -0
- package/locales/angular/global/fr-bi.js +26 -0
- package/locales/angular/global/fr-bj.js +26 -0
- package/locales/angular/global/fr-bl.js +26 -0
- package/locales/angular/global/fr-ca.js +26 -0
- package/locales/angular/global/fr-cd.js +26 -0
- package/locales/angular/global/fr-cf.js +26 -0
- package/locales/angular/global/fr-cg.js +26 -0
- package/locales/angular/global/fr-ch.js +26 -0
- package/locales/angular/global/fr-ci.js +26 -0
- package/locales/angular/global/fr-cm.js +26 -0
- package/locales/angular/global/fr-dj.js +26 -0
- package/locales/angular/global/fr-dz.js +26 -0
- package/locales/angular/global/fr-ga.js +26 -0
- package/locales/angular/global/fr-gf.js +26 -0
- package/locales/angular/global/fr-gn.js +26 -0
- package/locales/angular/global/fr-gp.js +26 -0
- package/locales/angular/global/fr-gq.js +26 -0
- package/locales/angular/global/fr-ht.js +26 -0
- package/locales/angular/global/fr-km.js +26 -0
- package/locales/angular/global/fr-lu.js +26 -0
- package/locales/angular/global/fr-ma.js +26 -0
- package/locales/angular/global/fr-mc.js +26 -0
- package/locales/angular/global/fr-mf.js +26 -0
- package/locales/angular/global/fr-mg.js +26 -0
- package/locales/angular/global/fr-ml.js +26 -0
- package/locales/angular/global/fr-mq.js +26 -0
- package/locales/angular/global/fr-mr.js +26 -0
- package/locales/angular/global/fr-mu.js +26 -0
- package/locales/angular/global/fr-nc.js +26 -0
- package/locales/angular/global/fr-ne.js +26 -0
- package/locales/angular/global/fr-pf.js +26 -0
- package/locales/angular/global/fr-pm.js +26 -0
- package/locales/angular/global/fr-re.js +26 -0
- package/locales/angular/global/fr-rw.js +26 -0
- package/locales/angular/global/fr-sc.js +26 -0
- package/locales/angular/global/fr-sn.js +26 -0
- package/locales/angular/global/fr-sy.js +26 -0
- package/locales/angular/global/fr-td.js +26 -0
- package/locales/angular/global/fr-tg.js +26 -0
- package/locales/angular/global/fr-tn.js +26 -0
- package/locales/angular/global/fr-vu.js +26 -0
- package/locales/angular/global/fr-wf.js +26 -0
- package/locales/angular/global/fr-yt.js +26 -0
- package/locales/angular/global/fr.js +26 -0
- package/locales/angular/global/fur.js +24 -0
- package/locales/angular/global/fy.js +24 -0
- package/locales/angular/global/ga-gb.js +30 -0
- package/locales/angular/global/ga.js +30 -0
- package/locales/angular/global/gd.js +28 -0
- package/locales/angular/global/gl.js +24 -0
- package/locales/angular/global/gsw-fr.js +24 -0
- package/locales/angular/global/gsw-li.js +24 -0
- package/locales/angular/global/gsw.js +24 -0
- package/locales/angular/global/gu.js +24 -0
- package/locales/angular/global/guz.js +22 -0
- package/locales/angular/global/gv.js +30 -0
- package/locales/angular/global/ha-gh.js +24 -0
- package/locales/angular/global/ha-ne.js +24 -0
- package/locales/angular/global/ha.js +24 -0
- package/locales/angular/global/haw.js +24 -0
- package/locales/angular/global/he.js +28 -0
- package/locales/angular/global/hi-latn.js +24 -0
- package/locales/angular/global/hi.js +24 -0
- package/locales/angular/global/hr-ba.js +26 -0
- package/locales/angular/global/hr.js +26 -0
- package/locales/angular/global/hsb.js +28 -0
- package/locales/angular/global/hu.js +24 -0
- package/locales/angular/global/hy.js +24 -0
- package/locales/angular/global/ia.js +24 -0
- package/locales/angular/global/id.js +22 -0
- package/locales/angular/global/ig.js +22 -0
- package/locales/angular/global/ii.js +22 -0
- package/locales/angular/global/is.js +24 -0
- package/locales/angular/global/it-ch.js +26 -0
- package/locales/angular/global/it-sm.js +26 -0
- package/locales/angular/global/it-va.js +26 -0
- package/locales/angular/global/it.js +26 -0
- package/locales/angular/global/ja.js +22 -0
- package/locales/angular/global/jgo.js +24 -0
- package/locales/angular/global/jmc.js +24 -0
- package/locales/angular/global/jv.js +22 -0
- package/locales/angular/global/ka.js +24 -0
- package/locales/angular/global/kab.js +24 -0
- package/locales/angular/global/kam.js +22 -0
- package/locales/angular/global/kde.js +22 -0
- package/locales/angular/global/kea.js +22 -0
- package/locales/angular/global/kgp.js +22 -0
- package/locales/angular/global/khq.js +22 -0
- package/locales/angular/global/ki.js +22 -0
- package/locales/angular/global/kk.js +24 -0
- package/locales/angular/global/kkj.js +24 -0
- package/locales/angular/global/kl.js +24 -0
- package/locales/angular/global/kln.js +22 -0
- package/locales/angular/global/km.js +22 -0
- package/locales/angular/global/kn.js +24 -0
- package/locales/angular/global/ko-kp.js +22 -0
- package/locales/angular/global/ko.js +22 -0
- package/locales/angular/global/kok.js +22 -0
- package/locales/angular/global/ks-arab.js +24 -0
- package/locales/angular/global/ks-deva.js +22 -0
- package/locales/angular/global/ks.js +24 -0
- package/locales/angular/global/ksb.js +24 -0
- package/locales/angular/global/ksf.js +22 -0
- package/locales/angular/global/ksh.js +26 -0
- package/locales/angular/global/ku.js +24 -0
- package/locales/angular/global/kw.js +32 -0
- package/locales/angular/global/ky.js +24 -0
- package/locales/angular/global/lag.js +26 -0
- package/locales/angular/global/lb.js +24 -0
- package/locales/angular/global/lg.js +24 -0
- package/locales/angular/global/lkt.js +22 -0
- package/locales/angular/global/ln-ao.js +24 -0
- package/locales/angular/global/ln-cf.js +24 -0
- package/locales/angular/global/ln-cg.js +24 -0
- package/locales/angular/global/ln.js +24 -0
- package/locales/angular/global/lo.js +22 -0
- package/locales/angular/global/lrc-iq.js +22 -0
- package/locales/angular/global/lrc.js +22 -0
- package/locales/angular/global/lt.js +28 -0
- package/locales/angular/global/lu.js +22 -0
- package/locales/angular/global/luo.js +22 -0
- package/locales/angular/global/luy.js +22 -0
- package/locales/angular/global/lv.js +26 -0
- package/locales/angular/global/mai.js +22 -0
- package/locales/angular/global/mas-tz.js +24 -0
- package/locales/angular/global/mas.js +24 -0
- package/locales/angular/global/mer.js +22 -0
- package/locales/angular/global/mfe.js +22 -0
- package/locales/angular/global/mg.js +24 -0
- package/locales/angular/global/mgh.js +22 -0
- package/locales/angular/global/mgo.js +24 -0
- package/locales/angular/global/mi.js +22 -0
- package/locales/angular/global/mk.js +24 -0
- package/locales/angular/global/ml.js +24 -0
- package/locales/angular/global/mn.js +24 -0
- package/locales/angular/global/mni-beng.js +22 -0
- package/locales/angular/global/mni.js +22 -0
- package/locales/angular/global/mr.js +24 -0
- package/locales/angular/global/ms-bn.js +22 -0
- package/locales/angular/global/ms-id.js +22 -0
- package/locales/angular/global/ms-sg.js +22 -0
- package/locales/angular/global/ms.js +22 -0
- package/locales/angular/global/mt.js +28 -0
- package/locales/angular/global/mua.js +22 -0
- package/locales/angular/global/my.js +22 -0
- package/locales/angular/global/mzn.js +22 -0
- package/locales/angular/global/naq.js +26 -0
- package/locales/angular/global/nb-sj.js +24 -0
- package/locales/angular/global/nb.js +24 -0
- package/locales/angular/global/nd.js +24 -0
- package/locales/angular/global/nds-nl.js +22 -0
- package/locales/angular/global/nds.js +22 -0
- package/locales/angular/global/ne-in.js +24 -0
- package/locales/angular/global/ne.js +24 -0
- package/locales/angular/global/nl-aw.js +24 -0
- package/locales/angular/global/nl-be.js +24 -0
- package/locales/angular/global/nl-bq.js +24 -0
- package/locales/angular/global/nl-cw.js +24 -0
- package/locales/angular/global/nl-sr.js +24 -0
- package/locales/angular/global/nl-sx.js +24 -0
- package/locales/angular/global/nl.js +24 -0
- package/locales/angular/global/nmg.js +22 -0
- package/locales/angular/global/nn.js +24 -0
- package/locales/angular/global/nnh.js +24 -0
- package/locales/angular/global/no.js +24 -0
- package/locales/angular/global/nus.js +22 -0
- package/locales/angular/global/nyn.js +24 -0
- package/locales/angular/global/om-ke.js +24 -0
- package/locales/angular/global/om.js +24 -0
- package/locales/angular/global/or.js +24 -0
- package/locales/angular/global/os-ru.js +24 -0
- package/locales/angular/global/os.js +24 -0
- package/locales/angular/global/pa-arab.js +22 -0
- package/locales/angular/global/pa-guru.js +24 -0
- package/locales/angular/global/pa.js +24 -0
- package/locales/angular/global/pcm.js +24 -0
- package/locales/angular/global/pl.js +28 -0
- package/locales/angular/global/ps-pk.js +24 -0
- package/locales/angular/global/ps.js +24 -0
- package/locales/angular/global/pt-ao.js +26 -0
- package/locales/angular/global/pt-ch.js +26 -0
- package/locales/angular/global/pt-cv.js +26 -0
- package/locales/angular/global/pt-gq.js +26 -0
- package/locales/angular/global/pt-gw.js +26 -0
- package/locales/angular/global/pt-lu.js +26 -0
- package/locales/angular/global/pt-mo.js +26 -0
- package/locales/angular/global/pt-mz.js +26 -0
- package/locales/angular/global/pt-pt.js +26 -0
- package/locales/angular/global/pt-st.js +26 -0
- package/locales/angular/global/pt-tl.js +26 -0
- package/locales/angular/global/pt.js +26 -0
- package/locales/angular/global/qu-bo.js +22 -0
- package/locales/angular/global/qu-ec.js +22 -0
- package/locales/angular/global/qu.js +22 -0
- package/locales/angular/global/rm.js +24 -0
- package/locales/angular/global/rn.js +22 -0
- package/locales/angular/global/ro-md.js +26 -0
- package/locales/angular/global/ro.js +26 -0
- package/locales/angular/global/rof.js +24 -0
- package/locales/angular/global/ru-by.js +28 -0
- package/locales/angular/global/ru-kg.js +28 -0
- package/locales/angular/global/ru-kz.js +28 -0
- package/locales/angular/global/ru-md.js +28 -0
- package/locales/angular/global/ru-ua.js +28 -0
- package/locales/angular/global/ru.js +28 -0
- package/locales/angular/global/rw.js +22 -0
- package/locales/angular/global/rwk.js +24 -0
- package/locales/angular/global/sa.js +22 -0
- package/locales/angular/global/sah.js +22 -0
- package/locales/angular/global/saq.js +24 -0
- package/locales/angular/global/sat-olck.js +26 -0
- package/locales/angular/global/sat.js +26 -0
- package/locales/angular/global/sbp.js +22 -0
- package/locales/angular/global/sc.js +24 -0
- package/locales/angular/global/sd-arab.js +24 -0
- package/locales/angular/global/sd-deva.js +22 -0
- package/locales/angular/global/sd.js +24 -0
- package/locales/angular/global/se-fi.js +26 -0
- package/locales/angular/global/se-se.js +26 -0
- package/locales/angular/global/se.js +26 -0
- package/locales/angular/global/seh.js +24 -0
- package/locales/angular/global/ses.js +22 -0
- package/locales/angular/global/sg.js +22 -0
- package/locales/angular/global/shi-latn.js +22 -0
- package/locales/angular/global/shi-tfng.js +26 -0
- package/locales/angular/global/shi.js +26 -0
- package/locales/angular/global/si.js +24 -0
- package/locales/angular/global/sk.js +28 -0
- package/locales/angular/global/sl.js +28 -0
- package/locales/angular/global/smn.js +26 -0
- package/locales/angular/global/sn.js +24 -0
- package/locales/angular/global/so-dj.js +24 -0
- package/locales/angular/global/so-et.js +24 -0
- package/locales/angular/global/so-ke.js +24 -0
- package/locales/angular/global/so.js +24 -0
- package/locales/angular/global/sq-mk.js +24 -0
- package/locales/angular/global/sq-xk.js +24 -0
- package/locales/angular/global/sq.js +24 -0
- package/locales/angular/global/sr-cyrl-ba.js +26 -0
- package/locales/angular/global/sr-cyrl-me.js +26 -0
- package/locales/angular/global/sr-cyrl-xk.js +26 -0
- package/locales/angular/global/sr-cyrl.js +26 -0
- package/locales/angular/global/sr-latn-ba.js +22 -0
- package/locales/angular/global/sr-latn-me.js +22 -0
- package/locales/angular/global/sr-latn-xk.js +22 -0
- package/locales/angular/global/sr-latn.js +22 -0
- package/locales/angular/global/sr.js +26 -0
- package/locales/angular/global/su-latn.js +22 -0
- package/locales/angular/global/su.js +22 -0
- package/locales/angular/global/sv-ax.js +24 -0
- package/locales/angular/global/sv-fi.js +24 -0
- package/locales/angular/global/sv.js +24 -0
- package/locales/angular/global/sw-cd.js +24 -0
- package/locales/angular/global/sw-ke.js +24 -0
- package/locales/angular/global/sw-ug.js +24 -0
- package/locales/angular/global/sw.js +24 -0
- package/locales/angular/global/ta-lk.js +24 -0
- package/locales/angular/global/ta-my.js +24 -0
- package/locales/angular/global/ta-sg.js +24 -0
- package/locales/angular/global/ta.js +24 -0
- package/locales/angular/global/te.js +24 -0
- package/locales/angular/global/teo-ke.js +24 -0
- package/locales/angular/global/teo.js +24 -0
- package/locales/angular/global/tg.js +22 -0
- package/locales/angular/global/th.js +22 -0
- package/locales/angular/global/ti-er.js +24 -0
- package/locales/angular/global/ti.js +24 -0
- package/locales/angular/global/tk.js +24 -0
- package/locales/angular/global/to.js +22 -0
- package/locales/angular/global/tr-cy.js +24 -0
- package/locales/angular/global/tr.js +24 -0
- package/locales/angular/global/tt.js +22 -0
- package/locales/angular/global/twq.js +22 -0
- package/locales/angular/global/tzm.js +24 -0
- package/locales/angular/global/ug.js +24 -0
- package/locales/angular/global/uk.js +28 -0
- package/locales/angular/global/und.js +24 -0
- package/locales/angular/global/ur-in.js +24 -0
- package/locales/angular/global/ur.js +24 -0
- package/locales/angular/global/uz-arab.js +22 -0
- package/locales/angular/global/uz-cyrl.js +22 -0
- package/locales/angular/global/uz-latn.js +24 -0
- package/locales/angular/global/uz.js +24 -0
- package/locales/angular/global/vai-latn.js +22 -0
- package/locales/angular/global/vai-vaii.js +22 -0
- package/locales/angular/global/vai.js +22 -0
- package/locales/angular/global/vi.js +22 -0
- package/locales/angular/global/vun.js +24 -0
- package/locales/angular/global/wae.js +24 -0
- package/locales/angular/global/wo.js +22 -0
- package/locales/angular/global/xh.js +24 -0
- package/locales/angular/global/xog.js +24 -0
- package/locales/angular/global/yav.js +22 -0
- package/locales/angular/global/yi.js +24 -0
- package/locales/angular/global/yo-bj.js +22 -0
- package/locales/angular/global/yo.js +22 -0
- package/locales/angular/global/yrl-co.js +22 -0
- package/locales/angular/global/yrl-ve.js +22 -0
- package/locales/angular/global/yrl.js +22 -0
- package/locales/angular/global/yue-hans.js +22 -0
- package/locales/angular/global/yue-hant.js +22 -0
- package/locales/angular/global/yue.js +22 -0
- package/locales/angular/global/zgh.js +22 -0
- package/locales/angular/global/zh-hans-hk.js +22 -0
- package/locales/angular/global/zh-hans-mo.js +22 -0
- package/locales/angular/global/zh-hans-sg.js +22 -0
- package/locales/angular/global/zh-hans.js +22 -0
- package/locales/angular/global/zh-hant-hk.js +22 -0
- package/locales/angular/global/zh-hant-mo.js +22 -0
- package/locales/angular/global/zh-hant.js +22 -0
- package/locales/angular/global/zh.js +22 -0
- package/locales/angular/global/zu.js +24 -0
- package/locales/moment/af.js +82 -0
- package/locales/moment/ar-dz.js +167 -0
- package/locales/moment/ar-kw.js +66 -0
- package/locales/moment/ar-ly.js +182 -0
- package/locales/moment/ar-ma.js +67 -0
- package/locales/moment/ar-ps.js +123 -0
- package/locales/moment/ar-sa.js +116 -0
- package/locales/moment/ar-tn.js +66 -0
- package/locales/moment/ar.js +200 -0
- package/locales/moment/az.js +113 -0
- package/locales/moment/be.js +153 -0
- package/locales/moment/bg.js +98 -0
- package/locales/moment/bm.js +62 -0
- package/locales/moment/bn-bd.js +140 -0
- package/locales/moment/bn.js +130 -0
- package/locales/moment/bo.js +135 -0
- package/locales/moment/br.js +179 -0
- package/locales/moment/bs.js +171 -0
- package/locales/moment/ca.js +111 -0
- package/locales/moment/cs.js +192 -0
- package/locales/moment/cv.js +74 -0
- package/locales/moment/cy.js +109 -0
- package/locales/moment/da.js +64 -0
- package/locales/moment/de-at.js +90 -0
- package/locales/moment/de-ch.js +87 -0
- package/locales/moment/de.js +89 -0
- package/locales/moment/dv.js +101 -0
- package/locales/moment/el.js +117 -0
- package/locales/moment/en-au.js +79 -0
- package/locales/moment/en-ca.js +75 -0
- package/locales/moment/en-gb.js +79 -0
- package/locales/moment/en-ie.js +79 -0
- package/locales/moment/en-il.js +75 -0
- package/locales/moment/en-in.js +79 -0
- package/locales/moment/en-nz.js +79 -0
- package/locales/moment/en-sg.js +79 -0
- package/locales/moment/eo.js +79 -0
- package/locales/moment/es-do.js +119 -0
- package/locales/moment/es-mx.js +121 -0
- package/locales/moment/es-us.js +121 -0
- package/locales/moment/es.js +121 -0
- package/locales/moment/et.js +89 -0
- package/locales/moment/eu.js +76 -0
- package/locales/moment/fa.js +124 -0
- package/locales/moment/fi.js +135 -0
- package/locales/moment/fil.js +69 -0
- package/locales/moment/fo.js +68 -0
- package/locales/moment/fr-ca.js +81 -0
- package/locales/moment/fr-ch.js +85 -0
- package/locales/moment/fr.js +119 -0
- package/locales/moment/fy.js +86 -0
- package/locales/moment/ga.js +106 -0
- package/locales/moment/gd.js +106 -0
- package/locales/moment/gl.js +86 -0
- package/locales/moment/gom-deva.js +137 -0
- package/locales/moment/gom-latn.js +135 -0
- package/locales/moment/gu.js +133 -0
- package/locales/moment/he.js +105 -0
- package/locales/moment/hi.js +179 -0
- package/locales/moment/hr.js +167 -0
- package/locales/moment/hu.js +129 -0
- package/locales/moment/hy-am.js +105 -0
- package/locales/moment/id.js +87 -0
- package/locales/moment/is.js +151 -0
- package/locales/moment/it-ch.js +75 -0
- package/locales/moment/it.js +117 -0
- package/locales/moment/ja.js +159 -0
- package/locales/moment/jv.js +87 -0
- package/locales/moment/ka.js +103 -0
- package/locales/moment/kk.js +93 -0
- package/locales/moment/km.js +114 -0
- package/locales/moment/kn.js +135 -0
- package/locales/moment/ko.js +86 -0
- package/locales/moment/ku-kmr.js +125 -0
- package/locales/moment/ku.js +129 -0
- package/locales/moment/ky.js +95 -0
- package/locales/moment/lb.js +148 -0
- package/locales/moment/lo.js +77 -0
- package/locales/moment/lt.js +136 -0
- package/locales/moment/lv.js +105 -0
- package/locales/moment/me.js +128 -0
- package/locales/moment/mi.js +71 -0
- package/locales/moment/mk.js +97 -0
- package/locales/moment/ml.js +93 -0
- package/locales/moment/mn.js +111 -0
- package/locales/moment/mr.js +214 -0
- package/locales/moment/ms-my.js +87 -0
- package/locales/moment/ms.js +86 -0
- package/locales/moment/mt.js +67 -0
- package/locales/moment/my.js +102 -0
- package/locales/moment/nb.js +71 -0
- package/locales/moment/ne.js +132 -0
- package/locales/moment/nl-be.js +113 -0
- package/locales/moment/nl.js +115 -0
- package/locales/moment/nn.js +70 -0
- package/locales/moment/oc-lnc.js +96 -0
- package/locales/moment/pa-in.js +133 -0
- package/locales/moment/pl.js +151 -0
- package/locales/moment/pt-br.js +69 -0
- package/locales/moment/pt.js +74 -0
- package/locales/moment/ro.js +87 -0
- package/locales/moment/ru.js +224 -0
- package/locales/moment/sd.js +92 -0
- package/locales/moment/se.js +68 -0
- package/locales/moment/si.js +80 -0
- package/locales/moment/sk.js +156 -0
- package/locales/moment/sl.js +182 -0
- package/locales/moment/sq.js +76 -0
- package/locales/moment/sr-cyrl.js +138 -0
- package/locales/moment/sr.js +140 -0
- package/locales/moment/ss.js +95 -0
- package/locales/moment/sv.js +79 -0
- package/locales/moment/sw.js +66 -0
- package/locales/moment/ta.js +142 -0
- package/locales/moment/te.js +99 -0
- package/locales/moment/tet.js +79 -0
- package/locales/moment/tg.js +128 -0
- package/locales/moment/th.js +76 -0
- package/locales/moment/tk.js +102 -0
- package/locales/moment/tl-ph.js +68 -0
- package/locales/moment/tlh.js +135 -0
- package/locales/moment/tr.js +117 -0
- package/locales/moment/tzl.js +100 -0
- package/locales/moment/tzm-latn.js +65 -0
- package/locales/moment/tzm.js +65 -0
- package/locales/moment/ug-cn.js +122 -0
- package/locales/moment/uk.js +178 -0
- package/locales/moment/ur.js +93 -0
- package/locales/moment/uz-latn.js +65 -0
- package/locales/moment/uz.js +62 -0
- package/locales/moment/vi.js +91 -0
- package/locales/moment/x-pseudo.js +84 -0
- package/locales/moment/yo.js +64 -0
- package/locales/moment/zh-cn.js +131 -0
- package/locales/moment/zh-hk.js +112 -0
- package/locales/moment/zh-mo.js +111 -0
- package/locales/moment/zh-tw.js +110 -0
- package/locales/moment-timezone/moment-timezone-with-data.js +1582 -0
- package/npm-shrinkwrap.json +17 -0
- package/oAuth/.npmignore +2 -0
- package/oAuth/bundles/index.umd.js +495 -0
- package/oAuth/esm2022/index.mjs +5 -0
- package/oAuth/esm2022/oAuth.service.mjs +51 -0
- package/oAuth/esm2022/oAuth.utils.mjs +423 -0
- package/oAuth/esm2022/public_api.mjs +3 -0
- package/oAuth/fesm2022/index.mjs +478 -0
- package/oAuth/fesm2022/index.mjs.map +1 -0
- package/oAuth/index.d.ts +5 -0
- package/oAuth/oAuth.service.d.ts +19 -0
- package/oAuth/oAuth.utils.d.ts +20 -0
- package/oAuth/package.json +25 -0
- package/oAuth/public_api.d.ts +2 -0
- package/package-lock.json +17 -0
- package/package.json +16 -0
- package/runtime/base/.npmignore +2 -0
- package/runtime/base/bundles/index.umd.js +6031 -0
- package/runtime/base/components/app-component/app.component.d.ts +46 -0
- package/runtime/base/components/app-spinner.component.d.ts +10 -0
- package/runtime/base/components/base-custom-widget.component.d.ts +75 -0
- package/runtime/base/components/base-layout.component.d.ts +30 -0
- package/runtime/base/components/base-page.component.d.ts +83 -0
- package/runtime/base/components/base-partial.component.d.ts +65 -0
- package/runtime/base/components/base-prefab.component.d.ts +61 -0
- package/runtime/base/components/base-spa-page.component.d.ts +85 -0
- package/runtime/base/components/custom-toaster.component.d.ts +19 -0
- package/runtime/base/components/empty-component/empty-page.component.d.ts +18 -0
- package/runtime/base/components/prefab-preview.component.d.ts +23 -0
- package/runtime/base/directives/accessroles.directive.d.ts +40 -0
- package/runtime/base/directives/prefab.directive.d.ts +17 -0
- package/runtime/base/esm2022/components/app-component/app.component.mjs +201 -0
- package/runtime/base/esm2022/components/app-spinner.component.mjs +54 -0
- package/runtime/base/esm2022/components/base-custom-widget.component.mjs +339 -0
- package/runtime/base/esm2022/components/base-layout.component.mjs +76 -0
- package/runtime/base/esm2022/components/base-page.component.mjs +378 -0
- package/runtime/base/esm2022/components/base-partial.component.mjs +221 -0
- package/runtime/base/esm2022/components/base-prefab.component.mjs +253 -0
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +353 -0
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +87 -0
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +66 -0
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +123 -0
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +118 -0
- package/runtime/base/esm2022/directives/prefab.directive.mjs +50 -0
- package/runtime/base/esm2022/guards/auth.guard.mjs +43 -0
- package/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +44 -0
- package/runtime/base/esm2022/guards/page-not-found.guard.mjs +22 -0
- package/runtime/base/esm2022/guards/role.guard.mjs +47 -0
- package/runtime/base/esm2022/index.mjs +5 -0
- package/runtime/base/esm2022/overrides/wm_dom_renderer.mjs +363 -0
- package/runtime/base/esm2022/overrides/wm_shared_styles_host.mjs +85 -0
- package/runtime/base/esm2022/public_api.mjs +49 -0
- package/runtime/base/esm2022/resolves/app-before-load.resolve.mjs +22 -0
- package/runtime/base/esm2022/resolves/app-extension.resolve.mjs +48 -0
- package/runtime/base/esm2022/resolves/app-js.resolve.mjs +39 -0
- package/runtime/base/esm2022/resolves/app-variables.resolve.mjs +31 -0
- package/runtime/base/esm2022/resolves/i18n.resolve.mjs +18 -0
- package/runtime/base/esm2022/resolves/metadata.resolve.mjs +22 -0
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +26 -0
- package/runtime/base/esm2022/runtime-base.module.mjs +942 -0
- package/runtime/base/esm2022/services/app-defaults.service.mjs +22 -0
- package/runtime/base/esm2022/services/app.manager.service.mjs +522 -0
- package/runtime/base/esm2022/services/app.service.mjs +232 -0
- package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +86 -0
- package/runtime/base/esm2022/services/http-interceptor.services.mjs +83 -0
- package/runtime/base/esm2022/services/i18n.service.mjs +305 -0
- package/runtime/base/esm2022/services/navigation.service.mjs +307 -0
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +127 -0
- package/runtime/base/esm2022/services/pipe.service.mjs +33 -0
- package/runtime/base/esm2022/services/prefab-manager.service.mjs +95 -0
- package/runtime/base/esm2022/services/spinner.service.mjs +144 -0
- package/runtime/base/esm2022/services/toaster.service.mjs +90 -0
- package/runtime/base/esm2022/types/types.mjs +22 -0
- package/runtime/base/esm2022/util/fragment-monitor.mjs +59 -0
- package/runtime/base/esm2022/util/utils.mjs +24 -0
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +176 -0
- package/runtime/base/fesm2022/index.mjs +6068 -0
- package/runtime/base/fesm2022/index.mjs.map +1 -0
- package/runtime/base/guards/auth.guard.d.ts +14 -0
- package/runtime/base/guards/can-deactivate-page.guard.d.ts +16 -0
- package/runtime/base/guards/page-not-found.guard.d.ts +12 -0
- package/runtime/base/guards/role.guard.d.ts +17 -0
- package/runtime/base/index.d.ts +5 -0
- package/runtime/base/overrides/wm_dom_renderer.d.ts +33 -0
- package/runtime/base/overrides/wm_shared_styles_host.d.ts +23 -0
- package/runtime/base/package.json +25 -0
- package/runtime/base/public_api.d.ts +48 -0
- package/runtime/base/resolves/app-before-load.resolve.d.ts +11 -0
- package/runtime/base/resolves/app-extension.resolve.d.ts +14 -0
- package/runtime/base/resolves/app-js.resolve.d.ts +15 -0
- package/runtime/base/resolves/app-variables.resolve.d.ts +11 -0
- package/runtime/base/resolves/i18n.resolve.d.ts +9 -0
- package/runtime/base/resolves/metadata.resolve.d.ts +9 -0
- package/runtime/base/resolves/security-config.resolve.d.ts +10 -0
- package/runtime/base/runtime-base.module.d.ts +171 -0
- package/runtime/base/services/app-defaults.service.d.ts +12 -0
- package/runtime/base/services/app.manager.service.d.ts +142 -0
- package/runtime/base/services/app.service.d.ts +70 -0
- package/runtime/base/services/dynamic-component-ref-provider.service.d.ts +26 -0
- package/runtime/base/services/http-interceptor.services.d.ts +17 -0
- package/runtime/base/services/i18n.service.d.ts +58 -0
- package/runtime/base/services/navigation.service.d.ts +45 -0
- package/runtime/base/services/pipe-provider.service.d.ts +31 -0
- package/runtime/base/services/pipe.service.d.ts +12 -0
- package/runtime/base/services/prefab-manager.service.d.ts +25 -0
- package/runtime/base/services/spinner.service.d.ts +49 -0
- package/runtime/base/services/toaster.service.d.ts +23 -0
- package/runtime/base/types/types.d.ts +25 -0
- package/runtime/base/util/fragment-monitor.d.ts +22 -0
- package/runtime/base/util/utils.d.ts +6 -0
- package/runtime/base/util/wm-route-reuse-strategy.d.ts +29 -0
- package/runtime/dynamic/.npmignore +2 -0
- package/runtime/dynamic/app/app.config.d.ts +5 -0
- package/runtime/dynamic/app/app.module.d.ts +37 -0
- package/runtime/dynamic/app/app.routes.d.ts +2 -0
- package/runtime/dynamic/app/components/page-wrapper.component.d.ts +37 -0
- package/runtime/dynamic/app/services/app-extension.service.d.ts +7 -0
- package/runtime/dynamic/app/services/app-js-provider.service.d.ts +10 -0
- package/runtime/dynamic/app/services/app-resource-manager.service.d.ts +10 -0
- package/runtime/dynamic/app/services/app-variables-provider.service.d.ts +12 -0
- package/runtime/dynamic/app/services/component-ref-provider.service.d.ts +17 -0
- package/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
- package/runtime/dynamic/app/services/prefab-config-provider.service.d.ts +10 -0
- package/runtime/dynamic/bundles/index.umd.js +887 -0
- package/runtime/dynamic/esm2022/app/app.config.mjs +141 -0
- package/runtime/dynamic/esm2022/app/app.module.mjs +314 -0
- package/runtime/dynamic/esm2022/app/app.routes.mjs +21 -0
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +106 -0
- package/runtime/dynamic/esm2022/app/services/app-extension.service.mjs +24 -0
- package/runtime/dynamic/esm2022/app/services/app-js-provider.service.mjs +25 -0
- package/runtime/dynamic/esm2022/app/services/app-resource-manager.service.mjs +31 -0
- package/runtime/dynamic/esm2022/app/services/app-variables-provider.service.mjs +27 -0
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +266 -0
- package/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
- package/runtime/dynamic/esm2022/app/services/prefab-config-provider.service.mjs +29 -0
- package/runtime/dynamic/esm2022/index.mjs +5 -0
- package/runtime/dynamic/esm2022/main.mjs +42 -0
- package/runtime/dynamic/esm2022/public_api.mjs +10 -0
- package/runtime/dynamic/fesm2022/index.mjs +950 -0
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -0
- package/runtime/dynamic/index.d.ts +5 -0
- package/runtime/dynamic/main.d.ts +2 -0
- package/runtime/dynamic/package.json +25 -0
- package/runtime/dynamic/public_api.d.ts +9 -0
- package/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
- package/scripts/d3/d3.min.js +2 -0
- package/scripts/datatable/datatable.js +3769 -0
- package/scripts/iscroll/build/iscroll.js +2091 -0
- package/scripts/jquery-ui/ui/widgets/droppable.js +503 -0
- package/scripts/jquery-ui/ui/widgets/resizable.js +1275 -0
- package/scripts/jquery-ui/ui/widgets/sortable.js +1608 -0
- package/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js +11 -0
- package/scripts/summernote/dist/summernote-lite.min.js +2 -0
- package/scripts/swipey/swipey.jquery.plugin.js +769 -0
- package/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
- package/security/.npmignore +2 -0
- package/security/bundles/index.umd.js +446 -0
- package/security/esm2022/index.mjs +5 -0
- package/security/esm2022/public_api.mjs +2 -0
- package/security/esm2022/security.service.mjs +439 -0
- package/security/fesm2022/index.mjs +444 -0
- package/security/fesm2022/index.mjs.map +1 -0
- package/security/index.d.ts +5 -0
- package/security/package.json +25 -0
- package/security/public_api.d.ts +1 -0
- package/security/security.service.d.ts +127 -0
- package/swipey/.npmignore +2 -0
- package/swipey/bundles/index.umd.js +54 -0
- package/swipey/esm2022/index.mjs +5 -0
- package/swipey/esm2022/public_api.mjs +2 -0
- package/swipey/esm2022/swipe.animation.mjs +45 -0
- package/swipey/fesm2022/index.mjs +51 -0
- package/swipey/fesm2022/index.mjs.map +1 -0
- package/swipey/index.d.ts +5 -0
- package/swipey/package.json +25 -0
- package/swipey/public_api.d.ts +1 -0
- package/swipey/swipe.animation.d.ts +19 -0
- package/transpiler/.npmignore +2 -0
- package/transpiler/build.d.ts +35 -0
- package/transpiler/bundles/index.umd.js +804 -0
- package/transpiler/esm2022/build.mjs +475 -0
- package/transpiler/esm2022/imports.mjs +318 -0
- package/transpiler/esm2022/index.mjs +5 -0
- package/transpiler/esm2022/public_api.mjs +3 -0
- package/transpiler/fesm2022/index.mjs +799 -0
- package/transpiler/fesm2022/index.mjs.map +1 -0
- package/transpiler/imports.d.ts +2 -0
- package/transpiler/index.d.ts +5 -0
- package/transpiler/package.json +26 -0
- package/transpiler/public_api.d.ts +2 -0
- package/variables/.npmignore +2 -0
- package/variables/advanced-options.d.ts +4 -0
- package/variables/bundles/index.umd.js +3174 -0
- package/variables/constants/variables.constants.d.ts +315 -0
- package/variables/esm2022/advanced-options.mjs +2 -0
- package/variables/esm2022/constants/variables.constants.mjs +333 -0
- package/variables/esm2022/factory/variable-manager.factory.mjs +24 -0
- package/variables/esm2022/factory/variable.factory.mjs +46 -0
- package/variables/esm2022/index.mjs +5 -0
- package/variables/esm2022/manager/action/base-action.manager.mjs +14 -0
- package/variables/esm2022/manager/action/login-action.manager.mjs +180 -0
- package/variables/esm2022/manager/action/logout-action.manager.mjs +77 -0
- package/variables/esm2022/manager/action/navigation-action.manager.mjs +8 -0
- package/variables/esm2022/manager/action/notification-action.manager.mjs +152 -0
- package/variables/esm2022/manager/variable/base-variable.manager.mjs +81 -0
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +289 -0
- package/variables/esm2022/model/action/login-action.mjs +25 -0
- package/variables/esm2022/model/action/logout-action.mjs +22 -0
- package/variables/esm2022/model/action/navigation-action.mjs +26 -0
- package/variables/esm2022/model/action/notification-action.mjs +91 -0
- package/variables/esm2022/model/variable/web-socket-variable.mjs +34 -0
- package/variables/esm2022/public_api.mjs +6 -0
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +60 -0
- package/variables/esm2022/service/variables.service.mjs +199 -0
- package/variables/esm2022/util/action/navigation-action.utils.mjs +52 -0
- package/variables/esm2022/util/oAuth.utils.mjs +11 -0
- package/variables/esm2022/util/variable/pagination.utils.mjs +402 -0
- package/variables/esm2022/util/variable/service-variable.utils.mjs +376 -0
- package/variables/esm2022/util/variable/variables.utils.mjs +809 -0
- package/variables/factory/variable-manager.factory.d.ts +3 -0
- package/variables/factory/variable.factory.d.ts +3 -0
- package/variables/fesm2022/index.mjs +3236 -0
- package/variables/fesm2022/index.mjs.map +1 -0
- package/variables/index.d.ts +5 -0
- package/variables/manager/action/base-action.manager.d.ts +4 -0
- package/variables/manager/action/login-action.manager.d.ts +7 -0
- package/variables/manager/action/logout-action.manager.d.ts +4 -0
- package/variables/manager/action/navigation-action.manager.d.ts +4 -0
- package/variables/manager/action/notification-action.manager.d.ts +23 -0
- package/variables/manager/variable/base-variable.manager.d.ts +24 -0
- package/variables/manager/variable/web-socket-variable.manager.d.ts +124 -0
- package/variables/model/action/login-action.d.ts +11 -0
- package/variables/model/action/logout-action.d.ts +10 -0
- package/variables/model/action/navigation-action.d.ts +9 -0
- package/variables/model/action/notification-action.d.ts +25 -0
- package/variables/model/variable/web-socket-variable.d.ts +11 -0
- package/variables/package.json +25 -0
- package/variables/public_api.d.ts +5 -0
- package/variables/service/metadata-service/metadata.service.d.ts +16 -0
- package/variables/service/variables.service.d.ts +57 -0
- package/variables/util/action/navigation-action.utils.d.ts +6 -0
- package/variables/util/oAuth.utils.d.ts +3 -0
- package/variables/util/variable/pagination.utils.d.ts +82 -0
- package/variables/util/variable/service-variable.utils.d.ts +16 -0
- package/variables/util/variable/variables.utils.d.ts +80 -0
|
@@ -0,0 +1,3174 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wavemaker-ai/variables'), require('@wm/core'), require('lodash-es'), require('moment'), require('angular2-websocket/angular2-websocket'), require('@metrichor/jmespath'), require('@angular/core'), require('@angular/router'), require('@wm/oAuth'), require('@wm/security')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@wavemaker-ai/variables', '@wm/core', 'lodash-es', 'moment', 'angular2-websocket/angular2-websocket', '@metrichor/jmespath', '@angular/core', '@angular/router', '@wm/oAuth', '@wm/security'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.variables = {}), global.wm_common_variables, global.wm.core, global._, global.momentLib, global.angularWebSocket, global.jmespath, global.ng.core, global.ng.router, global.wm.oAuth, global.wm.security));
|
|
5
|
+
})(this, (function (exports, variables, i1, lodashEs, momentLib, angular2Websocket, jmespath, i0, i3, i4, i5) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
25
|
+
var momentLib__namespace = /*#__PURE__*/_interopNamespaceDefault(momentLib);
|
|
26
|
+
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
28
|
+
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
29
|
+
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
30
|
+
|
|
31
|
+
const CONSTANTS = {
|
|
32
|
+
isStudioMode: false,
|
|
33
|
+
isRunMode: true,
|
|
34
|
+
XSRF_COOKIE_NAME: 'wm_xsrf_token',
|
|
35
|
+
DEFAULT_TIMER_DELAY: 500,
|
|
36
|
+
WIDGET_DOESNT_EXIST: 'The widget you\'re trying to navigate to doesn\'t exist on this page'
|
|
37
|
+
};
|
|
38
|
+
const VARIABLE_CONSTANTS = {
|
|
39
|
+
CATEGORY: {
|
|
40
|
+
MODEL: 'wm.Variable',
|
|
41
|
+
LIVE: 'wm.LiveVariable',
|
|
42
|
+
CRUD: 'wm.CrudVariable',
|
|
43
|
+
SERVICE: 'wm.ServiceVariable',
|
|
44
|
+
WEBSOCKET: 'wm.WebSocketVariable',
|
|
45
|
+
NAVIGATION: 'wm.NavigationAction',
|
|
46
|
+
NOTIFICATION: 'wm.NotificationAction',
|
|
47
|
+
TIMER: 'wm.TimerAction',
|
|
48
|
+
LOGIN: 'wm.LoginAction',
|
|
49
|
+
LOGOUT: 'wm.LogoutAction',
|
|
50
|
+
},
|
|
51
|
+
EVENTS: ['onBefore',
|
|
52
|
+
'onBeforeUpdate',
|
|
53
|
+
'onResult',
|
|
54
|
+
'onBeforeOpen',
|
|
55
|
+
'onOpen',
|
|
56
|
+
'onBeforeMessageSend',
|
|
57
|
+
'onMessageReceive',
|
|
58
|
+
'onProgress',
|
|
59
|
+
'onError',
|
|
60
|
+
'onBeforeDatasetReady',
|
|
61
|
+
'onCanUpdate',
|
|
62
|
+
'onClick',
|
|
63
|
+
'onHide',
|
|
64
|
+
'onOk',
|
|
65
|
+
'onCancel',
|
|
66
|
+
'onBeforeClose',
|
|
67
|
+
'onClose',
|
|
68
|
+
'onTimerFire',
|
|
69
|
+
'onSuccess',
|
|
70
|
+
'onOnline',
|
|
71
|
+
'onOffline'],
|
|
72
|
+
EVENT: {
|
|
73
|
+
'CAN_UPDATE': 'onCanUpdate',
|
|
74
|
+
'BEFORE': 'onBefore',
|
|
75
|
+
'BEFORE_UPDATE': 'onBeforeUpdate',
|
|
76
|
+
'PREPARE_SETDATA': 'onBeforeDatasetReady',
|
|
77
|
+
'RESULT': 'onResult',
|
|
78
|
+
'ERROR': 'onError',
|
|
79
|
+
'ABORT': 'onAbort',
|
|
80
|
+
'PROGRESS': 'onProgress',
|
|
81
|
+
'CLICK': 'onClick',
|
|
82
|
+
'HIDE': 'onHide',
|
|
83
|
+
'OK': 'onOk',
|
|
84
|
+
'CANCEL': 'onCancel',
|
|
85
|
+
'CLOSE': 'onClose',
|
|
86
|
+
'TIMER_FIRE': 'onTimerFire',
|
|
87
|
+
'SUCCESS': 'onSuccess',
|
|
88
|
+
'BEFORE_OPEN': 'onBeforeOpen',
|
|
89
|
+
'OPEN': 'onOpen',
|
|
90
|
+
'BEFORE_SEND': 'onBeforeMessageSend',
|
|
91
|
+
'MESSAGE_RECEIVE': 'onMessageReceive',
|
|
92
|
+
'BEFORE_CLOSE': 'onBeforeClose'
|
|
93
|
+
},
|
|
94
|
+
OWNER: {
|
|
95
|
+
'APP': 'App',
|
|
96
|
+
'PAGE': 'Page'
|
|
97
|
+
},
|
|
98
|
+
REST_SUPPORTED_SERVICES: ['JavaService', 'SoapService', 'FeedService', 'RestService', 'SecurityServiceType', 'DataService', 'WebSocketService', 'OpenAPIService'],
|
|
99
|
+
PAGINATION_PARAMS: ['page', 'size', 'sort'],
|
|
100
|
+
REST_SERVICE: {
|
|
101
|
+
'BASE_PATH_KEY': 'x-WM-BASE_PATH',
|
|
102
|
+
'RELATIVE_PATH_KEY': 'x-WM-RELATIVE_PATH',
|
|
103
|
+
'OAUTH_PROVIDER_KEY': 'x-WM-PROVIDER_ID',
|
|
104
|
+
'AUTH_HDR_KEY': 'Authorization',
|
|
105
|
+
'SECURITY_DEFN': {
|
|
106
|
+
'BASIC': 'basic',
|
|
107
|
+
'OAUTH2': 'oauth2',
|
|
108
|
+
},
|
|
109
|
+
'AUTH_TYPE': {
|
|
110
|
+
'BASIC': 'BASIC',
|
|
111
|
+
'OAUTH': 'OAUTH2',
|
|
112
|
+
'NONE': 'NONE',
|
|
113
|
+
},
|
|
114
|
+
'CONTENT_TYPE_KEY': 'x-WM-CONTENT_TYPE',
|
|
115
|
+
'ACCESSTOKEN_PLACEHOLDER': {
|
|
116
|
+
'LEFT': '',
|
|
117
|
+
'RIGHT': '.access_token'
|
|
118
|
+
},
|
|
119
|
+
ERR_TYPE: {
|
|
120
|
+
NO_ACCESSTOKEN: 'missing_accesstoken',
|
|
121
|
+
NO_CREDENTIALS: 'no_credentials',
|
|
122
|
+
METADATA_MISSING: 'metadata_missing',
|
|
123
|
+
CRUD_OPERATION_MISSING: 'crud_operation_missing',
|
|
124
|
+
USER_UNAUTHORISED: 'user_unauthorised',
|
|
125
|
+
REQUIRED_FIELD_MISSING: 'required_field_missing',
|
|
126
|
+
},
|
|
127
|
+
ERR_MSG: {
|
|
128
|
+
NO_ACCESSTOKEN: 'Access token missing',
|
|
129
|
+
NO_CREDENTIALS: 'No credentials present',
|
|
130
|
+
METADATA_MISSING: 'Metadata missing for "$variable"',
|
|
131
|
+
USER_UNAUTHORISED: 'Unauthorized User',
|
|
132
|
+
CRUD_OPERATION_MISSING: 'Operation "$operation" not allowed for "$variable"',
|
|
133
|
+
REQUIRED_FIELD_MISSING: 'Required field(s) missing: "${0}"'
|
|
134
|
+
},
|
|
135
|
+
UNCLOAKED_HEADERS: ['CONTENT-TYPE', 'ACCEPT', 'CONTENT-LENGTH', 'ACCEPT-ENCODING', 'ACCEPT-LANGUAGE'],
|
|
136
|
+
PREFIX: {
|
|
137
|
+
AUTH_HDR_VAL: {
|
|
138
|
+
BASIC: 'Basic',
|
|
139
|
+
OAUTH: 'Bearer'
|
|
140
|
+
},
|
|
141
|
+
CLOAK_HEADER_KEY: 'X-WM-'
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
SERVICE_TYPE: {
|
|
145
|
+
JAVA: 'JavaService',
|
|
146
|
+
REST: 'RestService',
|
|
147
|
+
SOAP: 'SoapService',
|
|
148
|
+
FEED: 'FeedService',
|
|
149
|
+
DATA: 'DataService',
|
|
150
|
+
SECURITY: 'SecurityServiceType',
|
|
151
|
+
WEBSOCKET: 'WebSocketService',
|
|
152
|
+
OPENAPI: 'OpenAPIService'
|
|
153
|
+
},
|
|
154
|
+
CONTROLLER_TYPE: {
|
|
155
|
+
QUERY: 'QueryExecution',
|
|
156
|
+
PROCEDURE: 'ProcedureExecution'
|
|
157
|
+
},
|
|
158
|
+
HTTP_STATUS_CODE: {
|
|
159
|
+
CORS_FAILURE: -1,
|
|
160
|
+
UNAUTHORIZED: 401,
|
|
161
|
+
FORBIDDEN: 403
|
|
162
|
+
},
|
|
163
|
+
EXPORT_TYPES_MAP: {
|
|
164
|
+
'EXCEL': '.xlsx',
|
|
165
|
+
'CSV': '.csv'
|
|
166
|
+
},
|
|
167
|
+
DEFAULT_VAR: {
|
|
168
|
+
'NOTIFICATION': 'appNotification'
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const WS_CONSTANTS = {
|
|
172
|
+
NON_BODY_HTTP_METHODS: ['GET', 'HEAD'],
|
|
173
|
+
CONTENT_TYPES: {
|
|
174
|
+
FORM_URL_ENCODED: 'application/x-www-form-urlencoded',
|
|
175
|
+
MULTIPART_FORMDATA: 'multipart/form-data',
|
|
176
|
+
OCTET_STREAM: 'application/octet-stream'
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const MODE_CONSTANTS = {
|
|
180
|
+
LIGHT: 'light',
|
|
181
|
+
DEFAULT: 'default',
|
|
182
|
+
COLOR: 'color',
|
|
183
|
+
FONT: 'font',
|
|
184
|
+
SPACE: 'space',
|
|
185
|
+
RADIUS: 'radius',
|
|
186
|
+
MODE_KEY: 'app-mode'
|
|
187
|
+
};
|
|
188
|
+
const DB_CONSTANTS = {
|
|
189
|
+
'DATABASE_MATCH_MODES': {
|
|
190
|
+
'like': 'LIKE',
|
|
191
|
+
'start': 'STARTING_WITH',
|
|
192
|
+
'startignorecase': 'STARTING_WITH_IGNORECASE',
|
|
193
|
+
'end': 'ENDING_WITH',
|
|
194
|
+
'endignorecase': 'ENDING_WITH_IGNORECASE',
|
|
195
|
+
'anywhere': 'CONTAINING',
|
|
196
|
+
'anywhereignorecase': 'CONTAINING_IGNORECASE',
|
|
197
|
+
'nowhere': 'DOES_NOT_CONTAIN',
|
|
198
|
+
'nowhereignorecase': 'DOES_NOT_CONTAIN_IGNORECASE',
|
|
199
|
+
'exact': 'EQUALS',
|
|
200
|
+
'exactignorecase': 'EQUALS_IGNORECASE',
|
|
201
|
+
'notequals': 'NOT_EQUALS',
|
|
202
|
+
"notequalsignorecase": "NOT_EQUALS_IGNORECASE",
|
|
203
|
+
'between': 'BETWEEN',
|
|
204
|
+
'in': 'IN',
|
|
205
|
+
"notin": "NOTIN",
|
|
206
|
+
'lessthan': 'LESS_THAN',
|
|
207
|
+
'lessthanequal': 'LESS_THAN_OR_EQUALS',
|
|
208
|
+
'greaterthan': 'GREATER_THAN',
|
|
209
|
+
'greaterthanequal': 'GREATER_THAN_OR_EQUALS',
|
|
210
|
+
'null': 'NULL',
|
|
211
|
+
'isnotnull': 'IS_NOT_NULL',
|
|
212
|
+
'empty': 'EMPTY',
|
|
213
|
+
'isnotempty': 'IS_NOT_EMPTY',
|
|
214
|
+
'nullorempty': 'NULL_OR_EMPTY'
|
|
215
|
+
},
|
|
216
|
+
'DATABASE_EMPTY_MATCH_MODES': ['NULL', 'IS_NOT_NULL', 'EMPTY', 'IS_NOT_EMPTY', 'NULL_OR_EMPTY'],
|
|
217
|
+
'DATABASE_RANGE_MATCH_MODES': ['IN', 'NOTIN', 'BETWEEN', 'LESS_THAN', 'LESS_THAN_OR_EQUALS', 'GREATER_THAN', 'GREATER_THAN_OR_EQUALS', 'NOT_EQUALS'],
|
|
218
|
+
'DATABASE_NULL_EMPTY_MATCH': {
|
|
219
|
+
'NULL': 'NULL',
|
|
220
|
+
'IS_NOT_NULL': 'IS_NOT_NULL',
|
|
221
|
+
'EMPTY': 'NULL',
|
|
222
|
+
'IS_NOT_EMPTY': 'IS_NOT_NULL',
|
|
223
|
+
'NULL_OR_EMPTY': 'NULL'
|
|
224
|
+
},
|
|
225
|
+
'DATABASE_MATCH_MODES_WITH_QUERY': {
|
|
226
|
+
'LIKE': '${0} like ${1}',
|
|
227
|
+
'STARTING_WITH': '${0} like ${1}',
|
|
228
|
+
'STARTING_WITH_IGNORECASE': '${0} like ${1}',
|
|
229
|
+
'ENDING_WITH': '${0} like ${1}',
|
|
230
|
+
'ENDING_WITH_IGNORECASE': '${0} like ${1}',
|
|
231
|
+
'CONTAINING': '${0} like ${1}',
|
|
232
|
+
'CONTAINING_IGNORECASE': '${0} like ${1}',
|
|
233
|
+
'DOES_NOT_CONTAIN': '${0} not like ${1}',
|
|
234
|
+
'DOES_NOT_CONTAIN_IGNORECASE': '${0} not like ${1}',
|
|
235
|
+
'EQUALS': '${0}=${1}',
|
|
236
|
+
'EQUALS_IGNORECASE': '${0}=${1}',
|
|
237
|
+
'NOT_EQUALS': '${0}!=${1}',
|
|
238
|
+
"NOT_EQUALS_IGNORECASE": "${0}!=${1}",
|
|
239
|
+
'BETWEEN': '${0} between ${1}',
|
|
240
|
+
'IN': '${0} in ${1}',
|
|
241
|
+
'NOTIN': "${0} not in ${1}",
|
|
242
|
+
'LESS_THAN': '${0}<${1}',
|
|
243
|
+
'LESS_THAN_OR_EQUALS': '${0}<=${1}',
|
|
244
|
+
'GREATER_THAN': '${0}>${1}',
|
|
245
|
+
'GREATER_THAN_OR_EQUALS': '${0}>=${1}',
|
|
246
|
+
'NULL': '${0} is null',
|
|
247
|
+
'IS_NOT_NULL': '${0} is not null',
|
|
248
|
+
'EMPTY': '${0}=\'\'',
|
|
249
|
+
'IS_NOT_EMPTY': '${0}<>\'\'',
|
|
250
|
+
'NULL_OR_EMPTY': '${0} is null or ${0}=\'\''
|
|
251
|
+
},
|
|
252
|
+
'DATABASE_STRING_MODES': ['LIKE', 'STARTING_WITH', 'STARTING_WITH_IGNORECASE', 'ENDING_WITH', 'ENDING_WITH_IGNORECASE', 'CONTAINING', 'CONTAINING_IGNORECASE', 'DOES_NOT_CONTAIN', 'DOES_NOT_CONTAIN_IGNORECASE', 'EQUALS', 'EQUALS_IGNORECASE', 'NOT_EQUALS', "NOT_EQUALS_IGNORECASE"]
|
|
253
|
+
};
|
|
254
|
+
const SWAGGER_CONSTANTS = {
|
|
255
|
+
WM_DATA_JSON: 'wm_data_json',
|
|
256
|
+
WM_HTTP_JSON: 'wm_httpRequestDetails'
|
|
257
|
+
};
|
|
258
|
+
const VARIABLE_URLS = {
|
|
259
|
+
DATABASE: {
|
|
260
|
+
searchTableData: {
|
|
261
|
+
url: '/:service/:dataModelName/:entityName/search?page=:page&size=:size&:sort',
|
|
262
|
+
method: 'POST'
|
|
263
|
+
},
|
|
264
|
+
searchTableDataWithQuery: {
|
|
265
|
+
url: '/:service/:dataModelName/:entityName/filter?page=:page&size=:size&:sort',
|
|
266
|
+
method: 'POST',
|
|
267
|
+
headers: {
|
|
268
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
readTableData: {
|
|
272
|
+
url: '/:service/:dataModelName/:entityName?page=:page&size=:size&:sort',
|
|
273
|
+
method: 'GET'
|
|
274
|
+
},
|
|
275
|
+
insertTableData: {
|
|
276
|
+
url: '/:service/:dataModelName/:entityName',
|
|
277
|
+
method: 'POST'
|
|
278
|
+
},
|
|
279
|
+
insertMultiPartTableData: {
|
|
280
|
+
url: '/:service/:dataModelName/:entityName',
|
|
281
|
+
method: 'POST',
|
|
282
|
+
headers: {}
|
|
283
|
+
// ,transformRequest: WM.identity
|
|
284
|
+
},
|
|
285
|
+
updateTableData: {
|
|
286
|
+
url: '/:service/:dataModelName/:entityName/:id',
|
|
287
|
+
method: 'PUT'
|
|
288
|
+
},
|
|
289
|
+
updateMultiPartTableData: {
|
|
290
|
+
url: '/:service/:dataModelName/:entityName/:id',
|
|
291
|
+
method: 'POST',
|
|
292
|
+
headers: {}
|
|
293
|
+
// ,transformRequest: WM.identity
|
|
294
|
+
},
|
|
295
|
+
deleteTableData: {
|
|
296
|
+
url: '/:service/:dataModelName/:entityName/:id',
|
|
297
|
+
method: 'DELETE'
|
|
298
|
+
},
|
|
299
|
+
updateCompositeTableData: {
|
|
300
|
+
url: '/:service/:dataModelName/:entityName/composite-id?:id',
|
|
301
|
+
method: 'PUT'
|
|
302
|
+
},
|
|
303
|
+
periodUpdateCompositeTableData: {
|
|
304
|
+
url: '/:service/:dataModelName/:entityName/composite-id/periods?:id',
|
|
305
|
+
method: 'PUT'
|
|
306
|
+
},
|
|
307
|
+
updateMultiPartCompositeTableData: {
|
|
308
|
+
url: '/:service/:dataModelName/:entityName/composite-id?:id',
|
|
309
|
+
method: 'POST',
|
|
310
|
+
headers: {}
|
|
311
|
+
// , transformRequest: WM.identity
|
|
312
|
+
},
|
|
313
|
+
deleteCompositeTableData: {
|
|
314
|
+
url: '/:service/:dataModelName/:entityName/composite-id?:id',
|
|
315
|
+
method: 'DELETE'
|
|
316
|
+
},
|
|
317
|
+
periodDeleteCompositeTableData: {
|
|
318
|
+
url: '/:service/:dataModelName/:entityName/composite-id/periods?:id',
|
|
319
|
+
method: 'DELETE'
|
|
320
|
+
},
|
|
321
|
+
getDistinctDataByFields: {
|
|
322
|
+
url: '/:service/:dataModelName/:entityName/aggregations?page=:page&size=:size&:sort',
|
|
323
|
+
method: 'POST'
|
|
324
|
+
},
|
|
325
|
+
exportTableData: {
|
|
326
|
+
url: '/services/:dataModelName/:entityName/export?:sort',
|
|
327
|
+
method: 'POST'
|
|
328
|
+
},
|
|
329
|
+
readTableRelatedData: {
|
|
330
|
+
url: '/:service/:dataModelName/:entityName/:id/:relatedFieldName?page=:page&size=:size&:sort',
|
|
331
|
+
method: 'GET'
|
|
332
|
+
},
|
|
333
|
+
executeNamedQuery: {
|
|
334
|
+
url: '/:service/:dataModelName/queryExecutor/queries/:queryName?page=:page&size=:size&:queryParams',
|
|
335
|
+
method: 'GET'
|
|
336
|
+
},
|
|
337
|
+
executeCustomQuery: {
|
|
338
|
+
url: '/:service/:dataModelName/queries/execute?page=:page&size=:size',
|
|
339
|
+
method: 'POST'
|
|
340
|
+
},
|
|
341
|
+
executeAggregateQuery: {
|
|
342
|
+
url: '/services/:dataModelName/:entityName/aggregations?page=:page&size=:size&sort=:sort',
|
|
343
|
+
method: 'POST'
|
|
344
|
+
},
|
|
345
|
+
executeNamedProcedure: {
|
|
346
|
+
url: '/:service/:dataModelName/procedureExecutor/procedure/execute/:procedureName?page=:page&size=:size&:procedureParams',
|
|
347
|
+
method: 'GET'
|
|
348
|
+
},
|
|
349
|
+
countTableDataWithQuery: {
|
|
350
|
+
url: '/:service/:dataModelName/:entityName/count?:queryParams',
|
|
351
|
+
method: 'GET'
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
oauthConfiguration: {
|
|
355
|
+
getAuthorizationUrl: {
|
|
356
|
+
url: 'services/oauth2/:providerId/authorizationUrl',
|
|
357
|
+
method: 'GET'
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
const $rootScope = variables.$rootScope;
|
|
362
|
+
|
|
363
|
+
const moment = momentLib__namespace.default || window['moment'];
|
|
364
|
+
exports.appManager = void 0;
|
|
365
|
+
exports.httpService = void 0;
|
|
366
|
+
exports.metadataService = void 0;
|
|
367
|
+
exports.navigationService = void 0;
|
|
368
|
+
exports.routerService = void 0;
|
|
369
|
+
exports.toasterService = void 0;
|
|
370
|
+
exports.oauthService = void 0;
|
|
371
|
+
exports.securityService = void 0;
|
|
372
|
+
exports.dialogService = void 0;
|
|
373
|
+
const DOT_EXPR_REX = /^\[("|')[\w\W]*(\1)\]$/, internalBoundNodeMap = new Map(), timers = new Map();
|
|
374
|
+
const _invoke = (variable, op) => {
|
|
375
|
+
let debouncedFn, cancelFn = lodashEs.noop, retVal;
|
|
376
|
+
if (timers.has(variable)) {
|
|
377
|
+
cancelFn = timers.get(variable).cancel;
|
|
378
|
+
}
|
|
379
|
+
cancelFn();
|
|
380
|
+
debouncedFn = lodashEs.debounce(function () {
|
|
381
|
+
retVal = variable[op]();
|
|
382
|
+
// handle promises to avoid uncaught promise errors in console
|
|
383
|
+
if (retVal instanceof Promise) {
|
|
384
|
+
retVal.catch(lodashEs.noop);
|
|
385
|
+
}
|
|
386
|
+
}, 100);
|
|
387
|
+
timers.set(variable, debouncedFn);
|
|
388
|
+
debouncedFn();
|
|
389
|
+
};
|
|
390
|
+
const processVariablePostBindUpdate = (nodeName, nodeVal, nodeType, variable, noUpdate) => {
|
|
391
|
+
switch (variable.category) {
|
|
392
|
+
case VARIABLE_CONSTANTS.CATEGORY.LIVE:
|
|
393
|
+
if (variable.operation === 'read') {
|
|
394
|
+
if (nodeName === 'dataBinding') {
|
|
395
|
+
lodashEs.forEach(nodeVal, function (val, key) {
|
|
396
|
+
variable.filterFields[key] = {
|
|
397
|
+
'value': val
|
|
398
|
+
};
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
variable.filterFields[nodeName] = {
|
|
403
|
+
'value': nodeVal,
|
|
404
|
+
'type': nodeType
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
/* if auto-update set for the variable with read operation only, get its data */
|
|
408
|
+
if (variable.autoUpdate && !lodashEs.isUndefined(nodeVal) && lodashEs.isFunction(variable.listRecords) && !noUpdate) {
|
|
409
|
+
_invoke(variable, 'listRecords');
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
if (nodeName === 'dataBinding') {
|
|
414
|
+
variable.inputFields = nodeVal;
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
variable.inputFields[nodeName] = nodeVal;
|
|
418
|
+
}
|
|
419
|
+
/* if auto-update set for the variable with read operation only, get its data */
|
|
420
|
+
if (variable.autoUpdate && !lodashEs.isUndefined(nodeVal) && lodashEs.isFunction(variable[variable.operation + 'Record']) && !noUpdate) {
|
|
421
|
+
_invoke(variable, variable.operation + 'Record');
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
break;
|
|
425
|
+
case VARIABLE_CONSTANTS.CATEGORY.CRUD:
|
|
426
|
+
if (variable.operationType === 'list' && variable.autoUpdate && !lodashEs.isUndefined(nodeVal) && lodashEs.isFunction(variable.invoke) && !noUpdate) {
|
|
427
|
+
_invoke(variable, 'invoke');
|
|
428
|
+
}
|
|
429
|
+
break;
|
|
430
|
+
case VARIABLE_CONSTANTS.CATEGORY.SERVICE:
|
|
431
|
+
case VARIABLE_CONSTANTS.CATEGORY.LOGIN:
|
|
432
|
+
if (variable.autoUpdate && !lodashEs.isUndefined(nodeVal) && lodashEs.isFunction(variable.invoke) && !noUpdate) {
|
|
433
|
+
_invoke(variable, 'invoke');
|
|
434
|
+
}
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
const setDependency = (type, ref) => {
|
|
439
|
+
switch (type) {
|
|
440
|
+
case 'appManager':
|
|
441
|
+
exports.appManager = ref;
|
|
442
|
+
break;
|
|
443
|
+
case 'http':
|
|
444
|
+
exports.httpService = ref;
|
|
445
|
+
break;
|
|
446
|
+
case 'metadata':
|
|
447
|
+
exports.metadataService = ref;
|
|
448
|
+
break;
|
|
449
|
+
case 'navigationService':
|
|
450
|
+
exports.navigationService = ref;
|
|
451
|
+
break;
|
|
452
|
+
case 'router':
|
|
453
|
+
exports.routerService = ref;
|
|
454
|
+
break;
|
|
455
|
+
case 'toaster':
|
|
456
|
+
exports.toasterService = ref;
|
|
457
|
+
break;
|
|
458
|
+
case 'oAuth':
|
|
459
|
+
exports.oauthService = ref;
|
|
460
|
+
break;
|
|
461
|
+
case 'security':
|
|
462
|
+
exports.securityService = ref;
|
|
463
|
+
break;
|
|
464
|
+
case 'dialog':
|
|
465
|
+
exports.dialogService = ref;
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
const initiateCallback = (type, variable, data, options, skipDefaultNotification) => {
|
|
470
|
+
/*checking if event is available and variable has event property and variable event property bound to function*/
|
|
471
|
+
const eventValues = variable[type], callBackScope = variable._context;
|
|
472
|
+
let errorVariable;
|
|
473
|
+
/**
|
|
474
|
+
* For error event:
|
|
475
|
+
* trigger app level error handler.
|
|
476
|
+
* if no event is assigned, trigger default appNotification variable.
|
|
477
|
+
*/
|
|
478
|
+
if (type === VARIABLE_CONSTANTS.EVENT.ERROR && !skipDefaultNotification) {
|
|
479
|
+
if (!eventValues) {
|
|
480
|
+
/* in case of error, if no event assigned, handle through default notification variable */
|
|
481
|
+
errorVariable = callBackScope.Actions[VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION];
|
|
482
|
+
if (errorVariable) {
|
|
483
|
+
data = errorVariable.getMessage() || data;
|
|
484
|
+
data = lodashEs.isString(data) ? data : 'An error has occured. Please check the app logs.';
|
|
485
|
+
errorVariable.invoke({ 'message': data }, undefined, undefined);
|
|
486
|
+
// $rootScope.$evalAsync(function () {
|
|
487
|
+
// $rootScope.$emit("invoke-service", VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION, {scope: callBackScope, message: response});
|
|
488
|
+
// });
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
// TODO: [Vibhu], check whether to support legacy event calling mechanism (ideally, it should have been migrated)
|
|
493
|
+
const fn = i1.$parseEvent(variable[type]);
|
|
494
|
+
if (type === VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE) {
|
|
495
|
+
if (variable.category === 'wm.LiveVariable' && variable.operation === 'read') {
|
|
496
|
+
return fn(variable._context, { variable: variable, dataFilter: data, options: options });
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
return fn(variable._context, { variable: variable, inputData: data, options: options });
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
return fn(variable._context, { variable: variable, data: data, options: options });
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
const triggerOnTimeout = (success) => {
|
|
507
|
+
setTimeout(() => { i1.triggerFn(success); }, 500);
|
|
508
|
+
};
|
|
509
|
+
const downloadFilefromResponse = (response, headers, success, error) => {
|
|
510
|
+
// check for a filename
|
|
511
|
+
let filename = '', filenameRegex, matches, type, blob, URL, downloadUrl, popup;
|
|
512
|
+
const disposition = headers.get('Content-Disposition');
|
|
513
|
+
if (disposition && disposition.indexOf('attachment') !== -1) {
|
|
514
|
+
filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/;
|
|
515
|
+
matches = filenameRegex.exec(disposition);
|
|
516
|
+
if (matches !== null && matches[1]) {
|
|
517
|
+
filename = matches[1].replace(/['"]/g, '');
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
type = headers.get('Content-Type');
|
|
521
|
+
blob = new Blob([response], { type: type });
|
|
522
|
+
if (typeof window.navigator.msSaveBlob !== 'undefined') {
|
|
523
|
+
// IE workaround for "HTML7007: One or more blob URLs were revoked by closing the blob for which they were created. These URLs will no longer resolve as the data backing the URL has been freed."
|
|
524
|
+
if (window.navigator.msSaveBlob(blob, filename)) {
|
|
525
|
+
triggerOnTimeout(success);
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
i1.triggerFn(error);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
URL = window.URL || window.webkitURL;
|
|
533
|
+
downloadUrl = URL.createObjectURL(blob);
|
|
534
|
+
if (filename) {
|
|
535
|
+
// use HTML5 a[download] attribute to specify filename
|
|
536
|
+
const a = document.createElement('a');
|
|
537
|
+
let reader;
|
|
538
|
+
// safari doesn't support this yet
|
|
539
|
+
if (typeof a.download === 'undefined') {
|
|
540
|
+
reader = new FileReader();
|
|
541
|
+
reader.onloadend = function () {
|
|
542
|
+
const url = reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');
|
|
543
|
+
popup = window.open(url, '_blank');
|
|
544
|
+
if (!popup) {
|
|
545
|
+
window.location.href = url;
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
reader.onload = triggerOnTimeout.bind(undefined, success);
|
|
549
|
+
reader.onerror = error;
|
|
550
|
+
reader.readAsDataURL(blob);
|
|
551
|
+
}
|
|
552
|
+
else {
|
|
553
|
+
a.href = downloadUrl;
|
|
554
|
+
a.download = filename;
|
|
555
|
+
document.body.appendChild(a);
|
|
556
|
+
a.click();
|
|
557
|
+
triggerOnTimeout(success);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
popup = window.open(downloadUrl, '_blank');
|
|
562
|
+
if (!popup) {
|
|
563
|
+
window.location.href = downloadUrl;
|
|
564
|
+
}
|
|
565
|
+
triggerOnTimeout(success);
|
|
566
|
+
}
|
|
567
|
+
setTimeout(() => { URL.revokeObjectURL(downloadUrl); }, 100); // cleanup
|
|
568
|
+
}
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Construct the form data params from the URL
|
|
572
|
+
* @param queryParams
|
|
573
|
+
* @param params
|
|
574
|
+
*/
|
|
575
|
+
const setParamsFromURL = (queryParams, params) => {
|
|
576
|
+
queryParams = lodashEs.split(queryParams, '&');
|
|
577
|
+
lodashEs.forEach(queryParams, function (param) {
|
|
578
|
+
param = lodashEs.split(param, '=');
|
|
579
|
+
params[param[0]] = decodeURIComponent(lodashEs.join(lodashEs.slice(param, 1), '='));
|
|
580
|
+
});
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* [Todo: Shubham], Implement Download through I frame
|
|
584
|
+
* Simulates file download in an app through creating and submitting a hidden form in DOM.
|
|
585
|
+
* The action will be initiated through a Service Variable
|
|
586
|
+
*
|
|
587
|
+
* Query Params
|
|
588
|
+
* The request params like query params are added as hidden input elements
|
|
589
|
+
*
|
|
590
|
+
* Header Params
|
|
591
|
+
* The header params for a request are also added along with hidden input elements.
|
|
592
|
+
* This is done as headers can not be set for a form POST call from JavaScript
|
|
593
|
+
*
|
|
594
|
+
* Finally, request parameters are sent as follows:
|
|
595
|
+
* For a GET request, the request data is sent along with the query params.
|
|
596
|
+
* For POST, it is sent as request body.
|
|
597
|
+
*
|
|
598
|
+
* @param variable: the variable that is called from user action
|
|
599
|
+
* @param requestParams object consisting the info to construct the XHR request for the service
|
|
600
|
+
*/
|
|
601
|
+
const downloadThroughIframe = (requestParams, success, dataBinding, error) => {
|
|
602
|
+
// Todo: SHubham: URL contains '//' in between which should be handled at the URL formation only
|
|
603
|
+
if (requestParams.url[1] === '/' && requestParams.url[2] === '/') {
|
|
604
|
+
requestParams.url = requestParams.url.slice(0, 1) + requestParams.url.slice(2);
|
|
605
|
+
}
|
|
606
|
+
let iFrameElement, formEl, paramElement, queryParams = '', data;
|
|
607
|
+
const IFRAME_NAME = 'fileDownloadIFrame', FORM_NAME = 'fileDownloadForm', CONTENT_TYPE = 'Content-Type', url = requestParams.url, encType = lodashEs.get(requestParams.headers, CONTENT_TYPE), params = lodashEs.pickBy(requestParams.headers, function (val, key) {
|
|
608
|
+
return key !== CONTENT_TYPE;
|
|
609
|
+
});
|
|
610
|
+
/* Todo: shubham : define getService method
|
|
611
|
+
WS_CONSTANTS = getService('WS_CONSTANTS');*/
|
|
612
|
+
/* look for existing iframe. If exists, remove it first */
|
|
613
|
+
iFrameElement = $('#' + IFRAME_NAME);
|
|
614
|
+
if (iFrameElement.length) {
|
|
615
|
+
iFrameElement.first().remove();
|
|
616
|
+
}
|
|
617
|
+
iFrameElement = $('<iframe id="' + IFRAME_NAME + '" name="' + IFRAME_NAME + '" class="ng-hide"></iframe>');
|
|
618
|
+
formEl = $('<form id="' + FORM_NAME + '" name="' + FORM_NAME + '"></form>');
|
|
619
|
+
/* process query params, append a hidden input element in the form against each param */
|
|
620
|
+
queryParams += url.indexOf('?') !== -1 ? url.substring(url.indexOf('?') + 1) : '';
|
|
621
|
+
queryParams += encType === WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED ? ((queryParams ? '&' : '') + requestParams.dataParams) : '';
|
|
622
|
+
formEl.attr({
|
|
623
|
+
'target': iFrameElement.attr('name'),
|
|
624
|
+
'action': url,
|
|
625
|
+
'method': requestParams.method,
|
|
626
|
+
'enctype': !(lodashEs.isEmpty(requestParams.data) && lodashEs.isEmpty(queryParams)) ? encType : WS_CONSTANTS.CONTENT_TYPES.MULTIPART_FORMDATA
|
|
627
|
+
});
|
|
628
|
+
// For Non body methods only, set the input fields from query parameters
|
|
629
|
+
if (lodashEs.includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, lodashEs.toUpper(requestParams.method))) {
|
|
630
|
+
setParamsFromURL(queryParams, params); // Set params for URL query params
|
|
631
|
+
}
|
|
632
|
+
if (!lodashEs.isEmpty(requestParams.data)) {
|
|
633
|
+
setParamsFromURL(requestParams.data, params); // Set params for request data
|
|
634
|
+
data = params;
|
|
635
|
+
}
|
|
636
|
+
else {
|
|
637
|
+
data = lodashEs.isEmpty(dataBinding) ? params : dataBinding;
|
|
638
|
+
}
|
|
639
|
+
lodashEs.forEach(data, function (val, key) {
|
|
640
|
+
paramElement = $('<input type="hidden">');
|
|
641
|
+
paramElement.attr({
|
|
642
|
+
'name': key,
|
|
643
|
+
'value': val
|
|
644
|
+
});
|
|
645
|
+
formEl.append(paramElement);
|
|
646
|
+
});
|
|
647
|
+
/* append form to iFrame and iFrame to the document and submit the form */
|
|
648
|
+
$('body').append(iFrameElement);
|
|
649
|
+
// timeout for IE 10, iframeElement.contents() is empty in IE 10 without timeout
|
|
650
|
+
setTimeout(function () {
|
|
651
|
+
let completed = false;
|
|
652
|
+
iFrameElement.on("load", function () {
|
|
653
|
+
if (completed)
|
|
654
|
+
return;
|
|
655
|
+
const text = iFrameElement.contents().find('body').text();
|
|
656
|
+
if (text && text.trim()) {
|
|
657
|
+
completed = true;
|
|
658
|
+
let message;
|
|
659
|
+
try {
|
|
660
|
+
message = { error: JSON.parse(text.trim()) };
|
|
661
|
+
}
|
|
662
|
+
catch (e) {
|
|
663
|
+
message = "";
|
|
664
|
+
}
|
|
665
|
+
i1.triggerFn(error, message);
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
iFrameElement.contents().find('body').append(formEl);
|
|
669
|
+
formEl.submit();
|
|
670
|
+
setTimeout(() => {
|
|
671
|
+
if (!completed) {
|
|
672
|
+
completed = true;
|
|
673
|
+
i1.triggerFn(success);
|
|
674
|
+
}
|
|
675
|
+
}, 2000);
|
|
676
|
+
}, 100);
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Makes an XHR call against the config
|
|
680
|
+
* the response is converted into a blob url, which is assigned to the src attribute of an anchor element with download=true
|
|
681
|
+
* a click is simulated on the anchor to download the file
|
|
682
|
+
* @param config
|
|
683
|
+
* @param success
|
|
684
|
+
* @param error
|
|
685
|
+
*/
|
|
686
|
+
const downloadThroughAnchor = (config, success, error) => {
|
|
687
|
+
const url = config.url, method = config.method, data = config.dataParams || config.data, headers = config.headers;
|
|
688
|
+
headers['Content-Type'] = headers['Content-Type'] || 'application/x-www-form-urlencoded';
|
|
689
|
+
// Todo: Replace http with getService
|
|
690
|
+
exports.httpService.send({
|
|
691
|
+
'target': 'WebService',
|
|
692
|
+
'action': 'invokeRuntimeRestCall',
|
|
693
|
+
'method': method,
|
|
694
|
+
'url': url,
|
|
695
|
+
'headers': headers,
|
|
696
|
+
'data': data,
|
|
697
|
+
'responseType': 'arraybuffer'
|
|
698
|
+
}).then(function (response) {
|
|
699
|
+
setTimeout(() => {
|
|
700
|
+
downloadFilefromResponse(response.body, response.headers, success, error);
|
|
701
|
+
}, 900);
|
|
702
|
+
}, function (err) {
|
|
703
|
+
i1.triggerFn(error, err);
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* This function returns the cookieValue if xsrf is enabled.
|
|
708
|
+
* In device, xsrf cookie is stored in localStorage.
|
|
709
|
+
* @returns xsrf cookie value
|
|
710
|
+
*/
|
|
711
|
+
const isXsrfEnabled = () => {
|
|
712
|
+
return false;
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* Returns the object node for a bind object, where the value has to be updated
|
|
716
|
+
* obj.target = "a"
|
|
717
|
+
* @param obj
|
|
718
|
+
* @param root
|
|
719
|
+
* @param variable
|
|
720
|
+
* @returns {*}
|
|
721
|
+
*/
|
|
722
|
+
const getTargetObj = (obj, root, variable) => {
|
|
723
|
+
/*
|
|
724
|
+
* if the target key is in the form as "['my.param']"
|
|
725
|
+
* keep the target key as "my.param" and do not split further
|
|
726
|
+
* this is done, so that, the computed value against this binding is assigned as
|
|
727
|
+
* {"my.param": "value"}
|
|
728
|
+
* and not as
|
|
729
|
+
* {
|
|
730
|
+
* "my": {
|
|
731
|
+
* "param": "value"
|
|
732
|
+
* }
|
|
733
|
+
* }
|
|
734
|
+
*/
|
|
735
|
+
let target = obj.target, targetObj;
|
|
736
|
+
const rootNode = variable[root];
|
|
737
|
+
if (DOT_EXPR_REX.test(target)) {
|
|
738
|
+
targetObj = rootNode;
|
|
739
|
+
}
|
|
740
|
+
else {
|
|
741
|
+
target = target.substr(0, target.lastIndexOf('.'));
|
|
742
|
+
if (obj.target === root) {
|
|
743
|
+
targetObj = variable;
|
|
744
|
+
}
|
|
745
|
+
else if (target) {
|
|
746
|
+
targetObj = i1.findValueOf(rootNode, target, true);
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
targetObj = rootNode;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
return targetObj;
|
|
753
|
+
};
|
|
754
|
+
/**
|
|
755
|
+
* Gets the key for the target object
|
|
756
|
+
* the computed value will be updated against this key in the targetObject(computed by getTargetObj())
|
|
757
|
+
* @param target
|
|
758
|
+
* @param regex
|
|
759
|
+
* @returns {*}
|
|
760
|
+
*/
|
|
761
|
+
const getTargetNodeKey = (target) => {
|
|
762
|
+
/*
|
|
763
|
+
* if the target key is in the form as "['my.param']"
|
|
764
|
+
* keep the target key as "my.param" and do not split further
|
|
765
|
+
* this is done, so that, the computed value against this binding is assigned as
|
|
766
|
+
* {"my.param": "value"}
|
|
767
|
+
* and not as
|
|
768
|
+
* {
|
|
769
|
+
* "my": {
|
|
770
|
+
* "param": "value"
|
|
771
|
+
* }
|
|
772
|
+
* }
|
|
773
|
+
*/
|
|
774
|
+
let targetNodeKey;
|
|
775
|
+
if (DOT_EXPR_REX.test(target)) {
|
|
776
|
+
targetNodeKey = target.replace(/^(\[["'])|(["']\])$/g, '');
|
|
777
|
+
}
|
|
778
|
+
else {
|
|
779
|
+
targetNodeKey = target.split('.').pop();
|
|
780
|
+
}
|
|
781
|
+
return targetNodeKey;
|
|
782
|
+
};
|
|
783
|
+
const setValueToNode = (target, obj, root, variable, value, noUpdate) => {
|
|
784
|
+
const targetNodeKey = getTargetNodeKey(target), targetObj = getTargetObj(obj, root, variable);
|
|
785
|
+
value = !lodashEs.isUndefined(value) ? value : obj.value;
|
|
786
|
+
/* sanity check, user can bind parent nodes to non-object values, so child node bindings may fail */
|
|
787
|
+
if (targetObj) {
|
|
788
|
+
targetObj[targetNodeKey] = value;
|
|
789
|
+
}
|
|
790
|
+
processVariablePostBindUpdate(targetNodeKey, value, obj.type, variable, noUpdate);
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* The model internalBoundNodeMap stores the reference to latest computed values against internal(nested) bound nodes
|
|
794
|
+
* This is done so that the internal node's computed value is not lost, once its parent node's value is computed at a later point
|
|
795
|
+
* E.g.
|
|
796
|
+
* Variable.employeeVar has following bindings
|
|
797
|
+
* "dataBinding": [
|
|
798
|
+
{
|
|
799
|
+
"target": "department.budget",
|
|
800
|
+
"value": "bind:Variables.budgetVar.dataSet"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"target": "department",
|
|
804
|
+
"value": "bind:Variables.departmentVar.dataSet"
|
|
805
|
+
}
|
|
806
|
+
]
|
|
807
|
+
* When department.budget is computed, employeeVar.dataSet = {
|
|
808
|
+
* "department": {
|
|
809
|
+
* "budget": {"q1": 1111}
|
|
810
|
+
* }
|
|
811
|
+
* }
|
|
812
|
+
*
|
|
813
|
+
* When department is computed
|
|
814
|
+
* "department": {
|
|
815
|
+
* "name": "HR",
|
|
816
|
+
* "location": "Hyderabad"
|
|
817
|
+
* }
|
|
818
|
+
* The budget field (computed earlier) is LOST.
|
|
819
|
+
*
|
|
820
|
+
* To avoid this, the latest values against internal nodes (in this case department.budget) are stored in a map
|
|
821
|
+
* These values are assigned back to internal fields if the parent is computed (in this case department)
|
|
822
|
+
* @param target
|
|
823
|
+
* @param root
|
|
824
|
+
* @param variable
|
|
825
|
+
*/
|
|
826
|
+
const updateInternalNodes = (target, root, variable) => {
|
|
827
|
+
const boundInternalNodes = lodashEs.keys(lodashEs.get(internalBoundNodeMap.get(variable), [variable.name, root])), targetNodeKey = getTargetNodeKey(target);
|
|
828
|
+
let internalNodes;
|
|
829
|
+
function findInternalNodeBound() {
|
|
830
|
+
return lodashEs.filter(boundInternalNodes, function (node) {
|
|
831
|
+
// the later condition in check (targetNodeKey === root || targetNodeKey === 'dataBinding') is specifically for live variable of insert/update types
|
|
832
|
+
return (node !== targetNodeKey && lodashEs.includes(node, targetNodeKey)) || ((targetNodeKey === root || targetNodeKey === 'dataBinding') && node !== targetNodeKey);
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
internalNodes = findInternalNodeBound();
|
|
836
|
+
if ((internalNodes.length)) {
|
|
837
|
+
lodashEs.forEach(internalNodes, function (node) {
|
|
838
|
+
setValueToNode(node, { target: node }, root, variable, lodashEs.get(internalBoundNodeMap.get(variable), [variable.name, root, node]));
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
/**
|
|
843
|
+
* New Implementation (DataBinding Flat Structure with x-path targets)
|
|
844
|
+
* processes a dataBinding object, if bound to expression, watches over it, else assigns value to the expression
|
|
845
|
+
* @param obj dataBinding object
|
|
846
|
+
* @param scope scope of the variable
|
|
847
|
+
* @param root root node string (dataBinding for all variables, dataSet for static variable)
|
|
848
|
+
* @param variable variable object
|
|
849
|
+
*/
|
|
850
|
+
const processBindObject = (obj, scope, root, variable) => {
|
|
851
|
+
const target = obj.target, targetObj = getTargetObj(obj, root, variable), targetNodeKey = getTargetNodeKey(target);
|
|
852
|
+
const destroyFn = scope.registerDestroyListener ? scope.registerDestroyListener.bind(scope) : lodashEs.noop;
|
|
853
|
+
if (i1.stringStartsWith(obj.value, 'bind:')) {
|
|
854
|
+
const listener = (newVal, oldVal) => {
|
|
855
|
+
if ((newVal === oldVal && lodashEs.isUndefined(newVal)) || (lodashEs.isUndefined(newVal) && (!lodashEs.isUndefined(oldVal) || !lodashEs.isUndefined(targetObj[targetNodeKey])))) {
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
// Skip cloning for blob column
|
|
859
|
+
if (!lodashEs.includes(['blob', 'file'], obj.type)) {
|
|
860
|
+
newVal = i1.getClonedObject(newVal);
|
|
861
|
+
}
|
|
862
|
+
setValueToNode(target, obj, root, variable, newVal); // cloning newVal to keep the source clean
|
|
863
|
+
{
|
|
864
|
+
/*set the internal bound node map with the latest updated value*/
|
|
865
|
+
if (!internalBoundNodeMap.has(variable)) {
|
|
866
|
+
internalBoundNodeMap.set(variable, {});
|
|
867
|
+
}
|
|
868
|
+
lodashEs.set(internalBoundNodeMap.get(variable), [variable.name, root, target], newVal);
|
|
869
|
+
/*update the internal nodes after internal node map is set*/
|
|
870
|
+
if (lodashEs.isObject(newVal)) {
|
|
871
|
+
updateInternalNodes(target, root, variable);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
destroyFn(i1.$watch(obj.value.replace('bind:', ''), scope, {}, listener, undefined, undefined, undefined, () => variable.isMuted));
|
|
876
|
+
}
|
|
877
|
+
else if (!lodashEs.isUndefined(obj.value)) {
|
|
878
|
+
setValueToNode(target, obj, root, variable, obj.value, true);
|
|
879
|
+
if (root !== targetNodeKey) {
|
|
880
|
+
if (!internalBoundNodeMap.has(variable)) {
|
|
881
|
+
internalBoundNodeMap.set(variable, {});
|
|
882
|
+
}
|
|
883
|
+
lodashEs.set(internalBoundNodeMap.get(variable), [variable.name, root, target], obj.value);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
// *********************************************************** PUBLIC *********************************************************** //
|
|
888
|
+
/**
|
|
889
|
+
* Initializes watchers for binding expressions configured in the variable
|
|
890
|
+
* @param variable
|
|
891
|
+
* @param context, scope context in which the variable exists
|
|
892
|
+
* @param {string} bindSource, the field in variable where the databindings are configured
|
|
893
|
+
* for most variables, it will be 'dataBinding', hence default fallback is to 'dataBinding'
|
|
894
|
+
* for some it can be 'dataSet' and hence will be passed as param
|
|
895
|
+
* @param {string} bindTarget, the object field in variable where the computed bindings will be set
|
|
896
|
+
*/
|
|
897
|
+
const processBinding = (variable, context, bindSource, bindTarget) => {
|
|
898
|
+
bindSource = bindSource || 'dataBinding';
|
|
899
|
+
bindTarget = bindTarget || 'dataBinding';
|
|
900
|
+
const bindMap = variable[bindSource];
|
|
901
|
+
variable[bindSource] = {};
|
|
902
|
+
variable['_bind' + bindSource] = bindMap;
|
|
903
|
+
if (!bindMap || !lodashEs.isArray(bindMap)) {
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
bindMap.forEach(function (node) {
|
|
907
|
+
/* for static variable change the binding with target 'dataBinding' to 'dataSet', as the results have to reflect directly in the dataSet */
|
|
908
|
+
if (variable.category === 'wm.Variable' && node.target === 'dataBinding') {
|
|
909
|
+
node.target = 'dataSet';
|
|
910
|
+
}
|
|
911
|
+
processBindObject(node, context, bindTarget, variable);
|
|
912
|
+
});
|
|
913
|
+
};
|
|
914
|
+
/**
|
|
915
|
+
* Downloads a file in the browser.
|
|
916
|
+
* Two methods to do so, namely:
|
|
917
|
+
* 1. downloadThroughAnchor, called if
|
|
918
|
+
* - if a header is to be passed
|
|
919
|
+
* OR
|
|
920
|
+
* - if security is ON and XSRF token is to be sent as well
|
|
921
|
+
* NOTE: This method does not work with Safari version 10.0 and below
|
|
922
|
+
*
|
|
923
|
+
* 2. downloadThroughIframe
|
|
924
|
+
* - this method works across browsers and uses an iframe to downlad the file.
|
|
925
|
+
* @param requestParams request params object
|
|
926
|
+
* @param fileName represents the file name
|
|
927
|
+
* @param exportFormat downloaded file format
|
|
928
|
+
* @param success success callback
|
|
929
|
+
* @param error error callback
|
|
930
|
+
*/
|
|
931
|
+
const simulateFileDownload = (requestParams, fileName, exportFormat, success, error, dataBinding) => {
|
|
932
|
+
/*success and error callbacks are executed incase of downloadThroughAnchor
|
|
933
|
+
Due to technical limitation cannot be executed incase of iframe*/
|
|
934
|
+
if (!lodashEs.isEmpty(requestParams.headers) || isXsrfEnabled()) {
|
|
935
|
+
downloadThroughAnchor(requestParams, success, error);
|
|
936
|
+
}
|
|
937
|
+
else {
|
|
938
|
+
downloadThroughIframe(requestParams, success, dataBinding, error);
|
|
939
|
+
}
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* sets the value against passed key on the "inputFields" object in the variable
|
|
943
|
+
* @param targetObj: the object in which the key, value is to be set
|
|
944
|
+
* @param variable
|
|
945
|
+
* @param key: can be:
|
|
946
|
+
* - a string e.g. "username"
|
|
947
|
+
* - an object, e.g. {"username": "john", "ssn": "11111"}
|
|
948
|
+
* @param val
|
|
949
|
+
* - if key is string, the value against it (for that data type)
|
|
950
|
+
* - if key is object, not required
|
|
951
|
+
* @param options
|
|
952
|
+
* @returns {any}
|
|
953
|
+
*/
|
|
954
|
+
const setInput = (targetObj, key, val, options) => {
|
|
955
|
+
targetObj = targetObj || {};
|
|
956
|
+
let keys, lastKey, paramObj = {};
|
|
957
|
+
// content type check
|
|
958
|
+
if (lodashEs.isObject(options)) {
|
|
959
|
+
// @ts-ignore
|
|
960
|
+
switch (options.type) {
|
|
961
|
+
case 'file':
|
|
962
|
+
// @ts-ignore
|
|
963
|
+
val = i1.getBlob(val, options.contentType);
|
|
964
|
+
break;
|
|
965
|
+
case 'number':
|
|
966
|
+
val = lodashEs.isNumber(val) ? val : parseInt(val, 10);
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
if (lodashEs.isObject(key)) {
|
|
971
|
+
// check if the passed parameter is an object itself
|
|
972
|
+
paramObj = key;
|
|
973
|
+
}
|
|
974
|
+
else if (key.indexOf('.') > -1) {
|
|
975
|
+
// check for '.' in key e.g. 'employee.department'
|
|
976
|
+
keys = key.split('.');
|
|
977
|
+
lastKey = keys.pop();
|
|
978
|
+
// Finding the object based on the key
|
|
979
|
+
targetObj = i1.findValueOf(targetObj, keys.join('.'), true);
|
|
980
|
+
key = lastKey;
|
|
981
|
+
paramObj[key] = val;
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
paramObj[key] = val;
|
|
985
|
+
}
|
|
986
|
+
lodashEs.forEach(paramObj, function (paramVal, paramKey) {
|
|
987
|
+
targetObj[paramKey] = paramVal;
|
|
988
|
+
});
|
|
989
|
+
return targetObj;
|
|
990
|
+
};
|
|
991
|
+
/**
|
|
992
|
+
* returns true if HTML5 File API is available else false
|
|
993
|
+
* @returns {{prototype: Blob; new(blobParts?: any[], options?: BlobPropertyBag): Blob}}
|
|
994
|
+
*/
|
|
995
|
+
const isFileUploadSupported = () => {
|
|
996
|
+
return (window.File && window.FileReader && window.FileList && window.Blob);
|
|
997
|
+
};
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @param varOrder
|
|
1001
|
+
* @param optionsOrder
|
|
1002
|
+
* @returns {any}
|
|
1003
|
+
*/
|
|
1004
|
+
const getEvaluatedOrderBy = (varOrder, optionsOrder) => {
|
|
1005
|
+
let optionFields, varOrderBy;
|
|
1006
|
+
// If options order by is not defined, return variable order
|
|
1007
|
+
if (!optionsOrder || lodashEs.isEmpty(optionsOrder)) {
|
|
1008
|
+
return varOrder;
|
|
1009
|
+
}
|
|
1010
|
+
// If variable order by is not defined, return options order
|
|
1011
|
+
if (!varOrder) {
|
|
1012
|
+
return optionsOrder;
|
|
1013
|
+
}
|
|
1014
|
+
// If both are present, combine the options order and variable order, with options order as precedence
|
|
1015
|
+
varOrder = lodashEs.split(varOrder, ',');
|
|
1016
|
+
optionsOrder = lodashEs.split(optionsOrder, ',');
|
|
1017
|
+
optionFields = lodashEs.map(optionsOrder, function (order) {
|
|
1018
|
+
return lodashEs.split(lodashEs.trim(order), ' ')[0];
|
|
1019
|
+
});
|
|
1020
|
+
// If a field is present in both options and variable, remove the variable orderby
|
|
1021
|
+
lodashEs.remove(varOrder, function (orderBy) {
|
|
1022
|
+
return lodashEs.includes(optionFields, lodashEs.split(lodashEs.trim(orderBy), ' ')[0]);
|
|
1023
|
+
});
|
|
1024
|
+
varOrderBy = varOrder.length ? ',' + lodashEs.join(varOrder, ',') : '';
|
|
1025
|
+
return lodashEs.join(optionsOrder, ',') + varOrderBy;
|
|
1026
|
+
};
|
|
1027
|
+
/**
|
|
1028
|
+
* formatting the expression as required by backend which was enclosed by ${<expression>}.
|
|
1029
|
+
* @param fieldDefs
|
|
1030
|
+
* returns fieldDefs
|
|
1031
|
+
*/
|
|
1032
|
+
const formatExportExpression = fieldDefs => {
|
|
1033
|
+
lodashEs.forEach(fieldDefs, function (fieldDef) {
|
|
1034
|
+
if (fieldDef.expression) {
|
|
1035
|
+
fieldDef.expression = '${' + fieldDef.expression + '}';
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
return fieldDefs;
|
|
1039
|
+
};
|
|
1040
|
+
const debounceVariableCall = _invoke;
|
|
1041
|
+
const getDateTimeFormatForType = (type) => {
|
|
1042
|
+
return i1.DEFAULT_FORMATS[lodashEs.toUpper(type)];
|
|
1043
|
+
};
|
|
1044
|
+
// Format value for datetime types
|
|
1045
|
+
const _formatDate = (dateValue, type) => {
|
|
1046
|
+
let epoch;
|
|
1047
|
+
if (lodashEs.isDate(dateValue)) {
|
|
1048
|
+
epoch = dateValue.getTime();
|
|
1049
|
+
}
|
|
1050
|
+
else {
|
|
1051
|
+
if (!isNaN(dateValue)) {
|
|
1052
|
+
dateValue = parseInt(dateValue, 10);
|
|
1053
|
+
}
|
|
1054
|
+
epoch = dateValue && moment(dateValue).valueOf();
|
|
1055
|
+
}
|
|
1056
|
+
if (isNaN(epoch) && type !== i1.DataType.TIME) {
|
|
1057
|
+
return epoch;
|
|
1058
|
+
}
|
|
1059
|
+
if (type === i1.DataType.TIMESTAMP) {
|
|
1060
|
+
return epoch;
|
|
1061
|
+
}
|
|
1062
|
+
if (type === i1.DataType.TIME && !epoch) {
|
|
1063
|
+
epoch = moment(new Date().toDateString() + ' ' + dateValue).valueOf();
|
|
1064
|
+
}
|
|
1065
|
+
return dateValue && exports.appManager.getPipe('date').transform(epoch, getDateTimeFormatForType(type));
|
|
1066
|
+
};
|
|
1067
|
+
// Function to convert values of date time types into default formats
|
|
1068
|
+
const formatDate = (value, type) => {
|
|
1069
|
+
if (lodashEs.includes(type, '.')) {
|
|
1070
|
+
type = lodashEs.toLower(i1.extractType(type));
|
|
1071
|
+
}
|
|
1072
|
+
if (lodashEs.isArray(value)) {
|
|
1073
|
+
return lodashEs.map(value, function (val) {
|
|
1074
|
+
return _formatDate(val, type);
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
return _formatDate(value, type);
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Handles variable navigation operations
|
|
1082
|
+
* @param variable
|
|
1083
|
+
* @param options
|
|
1084
|
+
*/
|
|
1085
|
+
const navigate = (variable, options) => {
|
|
1086
|
+
variable.dataSet = (options && options.data) || variable.dataSet;
|
|
1087
|
+
let viewName;
|
|
1088
|
+
const pageName = variable.dataBinding.pageName || variable.pageName, operation = variable.operation, urlParams = lodashEs.clone(variable.dataSet), cacheable = lodashEs.isNil(options?.cacheable) ? variable.cacheable : options.cacheable;
|
|
1089
|
+
options = options || {};
|
|
1090
|
+
if (!lodashEs.isNil(cacheable) && (!lodashEs.isString(cacheable) || cacheable.trim() !== '')) {
|
|
1091
|
+
urlParams['_cache_page'] = cacheable;
|
|
1092
|
+
}
|
|
1093
|
+
/* if operation is goToPage, navigate to the pageName */
|
|
1094
|
+
switch (operation) {
|
|
1095
|
+
case 'goToPreviousPage':
|
|
1096
|
+
exports.navigationService.goToPrevious();
|
|
1097
|
+
break;
|
|
1098
|
+
case 'gotoPage':
|
|
1099
|
+
exports.navigationService.goToPage(pageName, {
|
|
1100
|
+
transition: variable.pageTransitions,
|
|
1101
|
+
$event: options.$event,
|
|
1102
|
+
urlParams: urlParams,
|
|
1103
|
+
cacheable: variable.cacheable
|
|
1104
|
+
});
|
|
1105
|
+
break;
|
|
1106
|
+
case 'gotoView':
|
|
1107
|
+
viewName = (variable.dataBinding && variable.dataBinding.viewName) || variable.viewName;
|
|
1108
|
+
break;
|
|
1109
|
+
case 'gotoTab':
|
|
1110
|
+
viewName = (variable.dataBinding && variable.dataBinding.tabName) || variable.tabName;
|
|
1111
|
+
break;
|
|
1112
|
+
case 'gotoAccordion':
|
|
1113
|
+
viewName = (variable.dataBinding && variable.dataBinding.accordionName) || variable.accordionName;
|
|
1114
|
+
break;
|
|
1115
|
+
case 'gotoSegment':
|
|
1116
|
+
viewName = (variable.dataBinding && variable.dataBinding.segmentName) || variable.segmentName;
|
|
1117
|
+
break;
|
|
1118
|
+
}
|
|
1119
|
+
/* if view name found, call routine to navigate to it */
|
|
1120
|
+
if (viewName) {
|
|
1121
|
+
exports.navigationService.goToView(viewName, {
|
|
1122
|
+
pageName: pageName,
|
|
1123
|
+
transition: variable.pageTransitions,
|
|
1124
|
+
$event: options.$event,
|
|
1125
|
+
urlParams: urlParams
|
|
1126
|
+
}, variable);
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
class BaseActionManager {
|
|
1131
|
+
initBinding(variable, bindSource, bindTarget) {
|
|
1132
|
+
processBinding(variable, variable._context, bindSource, bindTarget);
|
|
1133
|
+
}
|
|
1134
|
+
notifyInflight(variable, status, data) {
|
|
1135
|
+
exports.appManager.notify('toggle-variable-state', {
|
|
1136
|
+
variable: variable,
|
|
1137
|
+
active: status,
|
|
1138
|
+
data: data
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
class NavigationActionManager extends BaseActionManager {
|
|
1144
|
+
invoke(variable, options) {
|
|
1145
|
+
navigate(variable, options);
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
class NotificationActionManager extends BaseActionManager {
|
|
1150
|
+
onToasterClick(variable) {
|
|
1151
|
+
initiateCallback('onClick', variable, '');
|
|
1152
|
+
}
|
|
1153
|
+
onToasterHide(variable) {
|
|
1154
|
+
initiateCallback('onHide', variable, '');
|
|
1155
|
+
}
|
|
1156
|
+
notifyViaToaster(variable, options) {
|
|
1157
|
+
const type = (options.class || variable.dataBinding.class || 'info').toLowerCase(), body = options.message || variable.dataBinding.text, title = options.title, positionClass = 'toast-' + (options.position || variable.dataBinding.toasterPosition || 'bottom right').replace(' ', '-'), partialPage = variable.dataBinding.page, DEFAULT_DURATION = 3000;
|
|
1158
|
+
let duration = parseInt(options.duration || variable.dataBinding.duration, null), toaster;
|
|
1159
|
+
// duration
|
|
1160
|
+
if (!duration) {
|
|
1161
|
+
duration = (duration !== 0 && type === 'success') ? DEFAULT_DURATION : 0;
|
|
1162
|
+
}
|
|
1163
|
+
if (variable.dataBinding.content && variable.dataBinding.content === 'page' && partialPage) {
|
|
1164
|
+
toaster = exports.toasterService.showCustom(partialPage, { positionClass: positionClass, timeOut: duration,
|
|
1165
|
+
partialParams: variable._binddataSet, context: variable._context });
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
toaster = exports.toasterService.show(type, title, body || null, { positionClass: positionClass, timeOut: duration, enableHtml: true });
|
|
1169
|
+
}
|
|
1170
|
+
// callbacks
|
|
1171
|
+
// MEMORY LEAK FIX: Store subscriptions for cleanup (though toaster is short-lived, we track for safety)
|
|
1172
|
+
if (variable.onClick) {
|
|
1173
|
+
const onClickSubscription = toaster.onTap.subscribe(this.onToasterClick.bind(this, variable));
|
|
1174
|
+
// Store subscription on toaster for cleanup (toaster handles its own lifecycle)
|
|
1175
|
+
if (toaster && !toaster._subscriptions) {
|
|
1176
|
+
toaster._subscriptions = [];
|
|
1177
|
+
}
|
|
1178
|
+
if (toaster && toaster._subscriptions) {
|
|
1179
|
+
toaster._subscriptions.push(onClickSubscription);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
if (variable.onHide) {
|
|
1183
|
+
const onHideSubscription = toaster.onHidden.subscribe(this.onToasterHide.bind(this, variable));
|
|
1184
|
+
// Store subscription on toaster for cleanup (toaster handles its own lifecycle)
|
|
1185
|
+
if (toaster && !toaster._subscriptions) {
|
|
1186
|
+
toaster._subscriptions = [];
|
|
1187
|
+
}
|
|
1188
|
+
if (toaster && toaster._subscriptions) {
|
|
1189
|
+
toaster._subscriptions.push(onHideSubscription);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
getDialogConfig(variable, options, dialogId, closeCallBackFn) {
|
|
1194
|
+
return {
|
|
1195
|
+
'title': options.title || variable.dataBinding.title,
|
|
1196
|
+
'text': options.message || variable.dataBinding.text,
|
|
1197
|
+
'okButtonText': options.okButtonText || variable.dataBinding.okButtonText || 'OK',
|
|
1198
|
+
'cancelButtonText': options.cancelButtonText || variable.dataBinding.cancelButtonText || 'CANCEL',
|
|
1199
|
+
'alerttype': options.alerttype || variable.dataBinding.alerttype || 'information',
|
|
1200
|
+
onOk: () => {
|
|
1201
|
+
// Close the action dialog after triggering onOk callback event
|
|
1202
|
+
exports.dialogService.close(dialogId, undefined, closeCallBackFn);
|
|
1203
|
+
},
|
|
1204
|
+
onCancel: () => {
|
|
1205
|
+
initiateCallback('onCancel', variable, options.data);
|
|
1206
|
+
// Close the action dialog after triggering onCancel callback event
|
|
1207
|
+
exports.dialogService.close(dialogId, undefined);
|
|
1208
|
+
},
|
|
1209
|
+
onClose: () => {
|
|
1210
|
+
initiateCallback('onClose', variable, options.data);
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
notifyViaDialog(variable, options) {
|
|
1215
|
+
const isPrefabType = i1.getWmProjectProperties().type === 'PREFAB';
|
|
1216
|
+
const dialogPrefix = isPrefabType ? 'Prefab' : 'Common';
|
|
1217
|
+
const dialogId = dialogPrefix + lodashEs.capitalize(variable.operation) + 'Dialog';
|
|
1218
|
+
const closeCallBackFn = () => initiateCallback('onOk', variable, options.data);
|
|
1219
|
+
let dialogConfig = this.getDialogConfig(variable, options, dialogId, closeCallBackFn);
|
|
1220
|
+
dialogConfig = isPrefabType ? dialogConfig : { notification: dialogConfig };
|
|
1221
|
+
exports.dialogService.open(dialogId, undefined, dialogConfig);
|
|
1222
|
+
}
|
|
1223
|
+
// *********************************************************** PUBLIC ***********************************************************//
|
|
1224
|
+
notify(variable, options, success, error) {
|
|
1225
|
+
const operation = variable.operation;
|
|
1226
|
+
options = options || {};
|
|
1227
|
+
if (operation === 'toast') {
|
|
1228
|
+
this.notifyViaToaster(variable, options);
|
|
1229
|
+
}
|
|
1230
|
+
else {
|
|
1231
|
+
this.notifyViaDialog(variable, options);
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
getMessage(variable) {
|
|
1235
|
+
return variable.dataBinding.text;
|
|
1236
|
+
}
|
|
1237
|
+
setMessage(variable, text) {
|
|
1238
|
+
if (lodashEs.isString(text)) {
|
|
1239
|
+
variable.dataBinding.text = text;
|
|
1240
|
+
}
|
|
1241
|
+
return variable.dataBinding.text;
|
|
1242
|
+
}
|
|
1243
|
+
getOkButtonText(variable) {
|
|
1244
|
+
return variable.dataBinding.okButtonText;
|
|
1245
|
+
}
|
|
1246
|
+
setOkButtonText(variable, text) {
|
|
1247
|
+
if (lodashEs.isString(text)) {
|
|
1248
|
+
variable.dataBinding.okButtonText = text;
|
|
1249
|
+
}
|
|
1250
|
+
return variable.dataBinding.okButtonText;
|
|
1251
|
+
}
|
|
1252
|
+
getToasterDuration(variable) {
|
|
1253
|
+
return variable.dataBinding.duration;
|
|
1254
|
+
}
|
|
1255
|
+
setToasterDuration(variable, duration) {
|
|
1256
|
+
variable.dataBinding.duration = duration;
|
|
1257
|
+
return variable.dataBinding.duration;
|
|
1258
|
+
}
|
|
1259
|
+
getToasterClass(variable) {
|
|
1260
|
+
return variable.dataBinding.class;
|
|
1261
|
+
}
|
|
1262
|
+
setToasterClass(variable, type) {
|
|
1263
|
+
if (lodashEs.isString(type)) {
|
|
1264
|
+
variable.dataBinding.class = type;
|
|
1265
|
+
}
|
|
1266
|
+
return variable.dataBinding.class;
|
|
1267
|
+
}
|
|
1268
|
+
getToasterPosition(variable) {
|
|
1269
|
+
return variable.dataBinding.class;
|
|
1270
|
+
}
|
|
1271
|
+
setToasterPosition(variable, position) {
|
|
1272
|
+
if (lodashEs.isString(position)) {
|
|
1273
|
+
variable.dataBinding.position = position;
|
|
1274
|
+
}
|
|
1275
|
+
return variable.dataBinding.position;
|
|
1276
|
+
}
|
|
1277
|
+
getAlertType(variable) {
|
|
1278
|
+
return variable.dataBinding.alerttype;
|
|
1279
|
+
}
|
|
1280
|
+
setAlertType(variable, alerttype) {
|
|
1281
|
+
if (lodashEs.isString(alerttype)) {
|
|
1282
|
+
variable.dataBinding.alerttype = alerttype;
|
|
1283
|
+
}
|
|
1284
|
+
return variable.dataBinding.alerttype;
|
|
1285
|
+
}
|
|
1286
|
+
getCancelButtonText(variable) {
|
|
1287
|
+
return variable.dataBinding.cancelButtonText;
|
|
1288
|
+
}
|
|
1289
|
+
setCancelButtonText(variable, text) {
|
|
1290
|
+
if (lodashEs.isString(text)) {
|
|
1291
|
+
variable.dataBinding.cancelButtonText = text;
|
|
1292
|
+
}
|
|
1293
|
+
return variable.dataBinding.cancelButtonText;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
class BaseVariableManager {
|
|
1298
|
+
initBinding(variable, bindSource, bindTarget) {
|
|
1299
|
+
processBinding(variable, variable._context, bindSource, bindTarget);
|
|
1300
|
+
}
|
|
1301
|
+
notifyInflight(variable, status, data, options) {
|
|
1302
|
+
exports.appManager.notify('toggle-variable-state', {
|
|
1303
|
+
variable: variable,
|
|
1304
|
+
active: status,
|
|
1305
|
+
data: data,
|
|
1306
|
+
options: options
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* This method sets the variable parameter requestTrackId to X-WM-Request-Track-Id which is received in the response headers.
|
|
1311
|
+
* @param response
|
|
1312
|
+
*/
|
|
1313
|
+
setRequestTrackId(response, variable) {
|
|
1314
|
+
const requestTrackId = response?.headers?.get('x-wm-request-track-id');
|
|
1315
|
+
if (requestTrackId) {
|
|
1316
|
+
variable._requestTrackId = requestTrackId;
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* This method makes the final angular http call that returns an observable.
|
|
1321
|
+
* We attach this observable to variable to cancel a network call
|
|
1322
|
+
* @param requestParams
|
|
1323
|
+
* @param variable
|
|
1324
|
+
* @param dbOperation
|
|
1325
|
+
*/
|
|
1326
|
+
httpCall(requestParams, variable, params) {
|
|
1327
|
+
return new Promise((resolve, reject) => {
|
|
1328
|
+
variable._observable = exports.httpService.sendCallAsObservable(requestParams, params).subscribe((response) => {
|
|
1329
|
+
if (response && response.type) {
|
|
1330
|
+
this.setRequestTrackId(response, variable);
|
|
1331
|
+
resolve(response);
|
|
1332
|
+
}
|
|
1333
|
+
}, (err) => {
|
|
1334
|
+
this.setRequestTrackId(err, variable);
|
|
1335
|
+
if (exports.httpService.isPlatformSessionTimeout(err)) {
|
|
1336
|
+
// send the notification manually to hide any context spinners on page.
|
|
1337
|
+
// [TODO]: any spinners on widget listening on this variable will also go off. Need to see an approach to sovle that.
|
|
1338
|
+
this.notifyInflight(variable, false, err);
|
|
1339
|
+
// MEMORY LEAK FIX: Store subscription for cleanup (though it's a one-time promise resolver)
|
|
1340
|
+
const error401Subscription = err._401Subscriber.asObservable().subscribe(response => {
|
|
1341
|
+
resolve(response);
|
|
1342
|
+
// Unsubscribe after resolution
|
|
1343
|
+
if (error401Subscription && !error401Subscription.closed) {
|
|
1344
|
+
error401Subscription.unsubscribe();
|
|
1345
|
+
}
|
|
1346
|
+
}, e => {
|
|
1347
|
+
reject(e);
|
|
1348
|
+
// Unsubscribe after rejection
|
|
1349
|
+
if (error401Subscription && !error401Subscription.closed) {
|
|
1350
|
+
error401Subscription.unsubscribe();
|
|
1351
|
+
}
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
else {
|
|
1355
|
+
reject(err);
|
|
1356
|
+
}
|
|
1357
|
+
});
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
/**
|
|
1361
|
+
* This method prepares the options parameter for variable callbacks.
|
|
1362
|
+
* @param xhrObj, The xhrObj to be passed
|
|
1363
|
+
* @param moreOptions, any other info to be passed in the options param
|
|
1364
|
+
*/
|
|
1365
|
+
prepareCallbackOptions(xhrObj, moreOptions) {
|
|
1366
|
+
let options = {};
|
|
1367
|
+
options['xhrObj'] = xhrObj;
|
|
1368
|
+
if (moreOptions) {
|
|
1369
|
+
lodashEs.extend(options, moreOptions);
|
|
1370
|
+
}
|
|
1371
|
+
return options;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
class LoginActionManager extends BaseActionManager {
|
|
1376
|
+
validate(params) {
|
|
1377
|
+
let err, paramKey, remembermeKey;
|
|
1378
|
+
const LOGIN_PARAM_REMEMBER_ME = 'j_rememberme';
|
|
1379
|
+
const LOGIN_PARAM_REMEMBER_ME_OLD = ['rememberme', 'remembermecheck'];
|
|
1380
|
+
// for older projects
|
|
1381
|
+
LOGIN_PARAM_REMEMBER_ME_OLD.forEach((old_key) => {
|
|
1382
|
+
if (lodashEs.isBoolean(params[old_key])) {
|
|
1383
|
+
remembermeKey = old_key;
|
|
1384
|
+
}
|
|
1385
|
+
});
|
|
1386
|
+
remembermeKey = remembermeKey || LOGIN_PARAM_REMEMBER_ME;
|
|
1387
|
+
// check remember me
|
|
1388
|
+
params[remembermeKey] = lodashEs.isBoolean(params[remembermeKey]) ? params[remembermeKey] : false;
|
|
1389
|
+
for (paramKey in params) {
|
|
1390
|
+
if (params.hasOwnProperty(paramKey) &&
|
|
1391
|
+
(params[paramKey] === '' || params[paramKey] === undefined)) {
|
|
1392
|
+
err = 'Please provide required credentials';
|
|
1393
|
+
break;
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
return err;
|
|
1397
|
+
}
|
|
1398
|
+
migrateOldParams(params) {
|
|
1399
|
+
const loginParams = {}, paramMigrationMap = {
|
|
1400
|
+
'usernametext': 'j_username',
|
|
1401
|
+
'username': 'j_username',
|
|
1402
|
+
'passwordtext': 'j_password',
|
|
1403
|
+
'password': 'j_password',
|
|
1404
|
+
'remembermecheck': 'j_rememberme',
|
|
1405
|
+
'rememberme': 'j_rememberme'
|
|
1406
|
+
};
|
|
1407
|
+
lodashEs.each(params, function (value, key) {
|
|
1408
|
+
if (paramMigrationMap[key]) {
|
|
1409
|
+
loginParams[paramMigrationMap[key]] = value;
|
|
1410
|
+
}
|
|
1411
|
+
else {
|
|
1412
|
+
loginParams[key] = value;
|
|
1413
|
+
}
|
|
1414
|
+
});
|
|
1415
|
+
return loginParams;
|
|
1416
|
+
}
|
|
1417
|
+
/*
|
|
1418
|
+
* This method is used to redirect the user to app base path
|
|
1419
|
+
* After successful navigation to the base path, will reload the app
|
|
1420
|
+
*/
|
|
1421
|
+
redirectToAppBasePath() {
|
|
1422
|
+
exports.routerService.navigate(['/']).then(nav => {
|
|
1423
|
+
if (nav) {
|
|
1424
|
+
window.location.reload();
|
|
1425
|
+
}
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
login(variable, options, success, error) {
|
|
1429
|
+
let newDataSet;
|
|
1430
|
+
options = options || {};
|
|
1431
|
+
// If login info provided along explicitly with options, don't look into the variable bindings for the same
|
|
1432
|
+
const loginInfo = options.loginInfo || options.input || variable.dataBinding;
|
|
1433
|
+
// client side validation
|
|
1434
|
+
const errMsg = this.validate(loginInfo);
|
|
1435
|
+
/* if error message initialized, return error */
|
|
1436
|
+
if (errMsg) {
|
|
1437
|
+
i1.triggerFn(error, errMsg);
|
|
1438
|
+
initiateCallback('onError', variable, errMsg);
|
|
1439
|
+
return;
|
|
1440
|
+
}
|
|
1441
|
+
// Triggering 'onBeforeUpdate' and considering
|
|
1442
|
+
let params = i1.getClonedObject(loginInfo);
|
|
1443
|
+
const output = initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE, variable, params);
|
|
1444
|
+
if (lodashEs.isObject(output)) {
|
|
1445
|
+
params = output;
|
|
1446
|
+
}
|
|
1447
|
+
else if (output === false) {
|
|
1448
|
+
i1.triggerFn(error);
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
// migrate old params to new
|
|
1452
|
+
params = this.migrateOldParams(params);
|
|
1453
|
+
// get previously loggedInUser name (if any)
|
|
1454
|
+
const lastLoggedInUsername = lodashEs.get(exports.securityService.get(), 'userInfo.userName');
|
|
1455
|
+
this.notifyInflight(variable, true);
|
|
1456
|
+
variable.promise = exports.securityService.appLogin(params, (response) => {
|
|
1457
|
+
// Closing login dialog after successful login
|
|
1458
|
+
exports.dialogService.close('CommonLoginDialog');
|
|
1459
|
+
/*
|
|
1460
|
+
* Get fresh security config
|
|
1461
|
+
* Get App variables. if not loaded
|
|
1462
|
+
* Update loggedInUser variable with new user details
|
|
1463
|
+
*/
|
|
1464
|
+
exports.appManager.reloadAppData().
|
|
1465
|
+
then((config) => {
|
|
1466
|
+
// EVENT: ON_RESULT
|
|
1467
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, lodashEs.get(config, 'userInfo'));
|
|
1468
|
+
// EVENT: ON_PREPARESETDATA
|
|
1469
|
+
newDataSet = initiateCallback(VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA, variable, lodashEs.get(config, 'userInfo'));
|
|
1470
|
+
if (newDataSet) {
|
|
1471
|
+
// setting newDataSet as the response to service variable onPrepareSetData
|
|
1472
|
+
lodashEs.set(config, 'userInfo', newDataSet);
|
|
1473
|
+
}
|
|
1474
|
+
// hide the spinner after all the n/w calls are completed
|
|
1475
|
+
this.notifyInflight(variable, false, response);
|
|
1476
|
+
i1.triggerFn(success);
|
|
1477
|
+
setTimeout(() => {
|
|
1478
|
+
// EVENT: ON_SUCCESS
|
|
1479
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.SUCCESS, variable, lodashEs.get(config, 'userInfo'));
|
|
1480
|
+
/* handle navigation if defaultSuccessHandler on variable is true */
|
|
1481
|
+
if (variable.useDefaultSuccessHandler) {
|
|
1482
|
+
const isSameUserReloggedIn = lastLoggedInUsername === params['j_username'];
|
|
1483
|
+
// if first time user logging in or same user re-logging in, execute n/w calls failed before logging in
|
|
1484
|
+
if (!lastLoggedInUsername || isSameUserReloggedIn) {
|
|
1485
|
+
exports.appManager.executeSessionFailureRequests();
|
|
1486
|
+
}
|
|
1487
|
+
// get redirectTo page from URL and remove it from URL
|
|
1488
|
+
const redirectPage = exports.securityService.getCurrentRouteQueryParam('redirectTo'), noRedirect = exports.appManager.noRedirect();
|
|
1489
|
+
// Get query params(page params of page being redirected to) and append to the URL after login.
|
|
1490
|
+
const queryParamsObj = exports.securityService.getRedirectedRouteQueryParams();
|
|
1491
|
+
// The redirectTo param isn't required after login
|
|
1492
|
+
if (queryParamsObj.redirectTo) {
|
|
1493
|
+
delete queryParamsObj.redirectTo;
|
|
1494
|
+
}
|
|
1495
|
+
exports.appManager.noRedirect(false);
|
|
1496
|
+
// first time login
|
|
1497
|
+
if (!lastLoggedInUsername) {
|
|
1498
|
+
// if redirect page found, navigate to it.
|
|
1499
|
+
if (!lodashEs.isEmpty(redirectPage)) {
|
|
1500
|
+
exports.routerService.navigate([`/${redirectPage}`], { queryParams: queryParamsObj });
|
|
1501
|
+
}
|
|
1502
|
+
else if (!noRedirect) {
|
|
1503
|
+
// simply reset the URL, route handling will take care of page redirection
|
|
1504
|
+
exports.routerService.navigate([`/`]);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
else {
|
|
1508
|
+
// login after a session timeout
|
|
1509
|
+
// if redirect page found and same user logs in again, just navigate to redirect page
|
|
1510
|
+
if (!lodashEs.isEmpty(redirectPage)) {
|
|
1511
|
+
// same user logs in again, just redirect to the redirectPage
|
|
1512
|
+
if (lastLoggedInUsername === params['j_username']) {
|
|
1513
|
+
exports.routerService.navigate([`/${redirectPage}`], { queryParams: queryParamsObj });
|
|
1514
|
+
}
|
|
1515
|
+
else {
|
|
1516
|
+
// different user logs in, reload the app and discard the redirectPage
|
|
1517
|
+
this.redirectToAppBasePath();
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1521
|
+
const securityConfig = exports.securityService.get(), sessionTimeoutLoginMode = lodashEs.get(securityConfig, 'loginConfig.sessionTimeout.type') || 'PAGE';
|
|
1522
|
+
// if in dialog mode and a new user logs in OR login happening through page, reload the app
|
|
1523
|
+
if (!isSameUserReloggedIn || sessionTimeoutLoginMode !== 'DIALOG') {
|
|
1524
|
+
this.redirectToAppBasePath();
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
// EVENT: ON_CAN_UPDATE
|
|
1530
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, lodashEs.get(config, 'userInfo'));
|
|
1531
|
+
});
|
|
1532
|
+
});
|
|
1533
|
+
}, (e) => {
|
|
1534
|
+
// EVENT: ON_RESULT
|
|
1535
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, e);
|
|
1536
|
+
this.notifyInflight(variable, false, e);
|
|
1537
|
+
const errorMsg = e.error || 'Invalid credentials.';
|
|
1538
|
+
const xhrObj = e.details;
|
|
1539
|
+
/* if in RUN mode, trigger error events associated with the variable */
|
|
1540
|
+
if (CONSTANTS.isRunMode) {
|
|
1541
|
+
initiateCallback('onError', variable, errorMsg, xhrObj, true);
|
|
1542
|
+
}
|
|
1543
|
+
i1.triggerFn(error, errorMsg, xhrObj);
|
|
1544
|
+
// EVENT: ON_CAN_UPDATE
|
|
1545
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, e);
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
class LogoutActionManager extends BaseActionManager {
|
|
1551
|
+
logout(variable, options, success, error) {
|
|
1552
|
+
let handleError, redirectPage, output, newDataSet;
|
|
1553
|
+
handleError = function (msg, details, xhrObj) {
|
|
1554
|
+
/* if in RUN mode, trigger error events associated with the variable */
|
|
1555
|
+
if (!CONSTANTS.isStudioMode) {
|
|
1556
|
+
initiateCallback('onError', variable, msg, xhrObj);
|
|
1557
|
+
}
|
|
1558
|
+
i1.triggerFn(error, msg, xhrObj);
|
|
1559
|
+
};
|
|
1560
|
+
// EVENT: ON_BEFORE_UPDATE
|
|
1561
|
+
output = initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE, variable, null);
|
|
1562
|
+
if (output === false) {
|
|
1563
|
+
i1.triggerFn(error);
|
|
1564
|
+
return;
|
|
1565
|
+
}
|
|
1566
|
+
exports.securityService.isAuthenticated(isAuthenticated => {
|
|
1567
|
+
if (isAuthenticated) {
|
|
1568
|
+
this.notifyInflight(variable, true);
|
|
1569
|
+
variable.promise = exports.securityService.appLogout(response => {
|
|
1570
|
+
let redirectUrl = response.body;
|
|
1571
|
+
redirectUrl = i1.getValidJSON(redirectUrl);
|
|
1572
|
+
// Reset Security Config.
|
|
1573
|
+
// $rootScope.isUserAuthenticated = false;
|
|
1574
|
+
exports.appManager.reloadAppData().
|
|
1575
|
+
then(() => {
|
|
1576
|
+
this.notifyInflight(variable, false, redirectUrl);
|
|
1577
|
+
// EVENT: ON_RESULT
|
|
1578
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, redirectUrl);
|
|
1579
|
+
// EVENT: ON_PREPARESETDATA
|
|
1580
|
+
newDataSet = initiateCallback(VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA, variable, redirectUrl);
|
|
1581
|
+
if (newDataSet) {
|
|
1582
|
+
// setting newDataSet as the response to service variable onPrepareSetData
|
|
1583
|
+
redirectUrl = newDataSet;
|
|
1584
|
+
}
|
|
1585
|
+
setTimeout(() => {
|
|
1586
|
+
// EVENT: ON_SUCCESS
|
|
1587
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.SUCCESS, variable, redirectUrl);
|
|
1588
|
+
// EVENT: ON_CAN_UPDATE
|
|
1589
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, redirectUrl);
|
|
1590
|
+
});
|
|
1591
|
+
});
|
|
1592
|
+
// In case of CAS response will be the redirectUrl
|
|
1593
|
+
if (redirectUrl && redirectUrl.result) {
|
|
1594
|
+
window.location.href = redirectUrl.result;
|
|
1595
|
+
}
|
|
1596
|
+
else if (variable.useDefaultSuccessHandler) {
|
|
1597
|
+
redirectPage = variable.redirectTo;
|
|
1598
|
+
/* backward compatibility (index.html/login.html may be present in older projects) */
|
|
1599
|
+
if (!redirectPage || redirectPage === 'login.html' || redirectPage === 'index.html') {
|
|
1600
|
+
redirectPage = '';
|
|
1601
|
+
}
|
|
1602
|
+
exports.routerService.navigate([`/${redirectPage}`]);
|
|
1603
|
+
// do not reload the mobile app.
|
|
1604
|
+
setTimeout(() => {
|
|
1605
|
+
// reloading in timeout as, firefox and safari are not updating the url before reload(WMS-7887)
|
|
1606
|
+
window.location.reload();
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
i1.triggerFn(success);
|
|
1610
|
+
}, handleError);
|
|
1611
|
+
}
|
|
1612
|
+
else {
|
|
1613
|
+
handleError('No authenticated user to logout.');
|
|
1614
|
+
}
|
|
1615
|
+
}, (err) => {
|
|
1616
|
+
this.notifyInflight(variable, false, err);
|
|
1617
|
+
handleError(err);
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
const getAccessToken = (provider, checkLoaclStorage) => {
|
|
1622
|
+
return exports.oauthService.getAccessToken(provider, checkLoaclStorage);
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
class PaginationUtils {
|
|
1626
|
+
/**
|
|
1627
|
+
* Modifies the query values with the pagination info which is retrieved from the previous API response.
|
|
1628
|
+
* @param variable withholds variable information
|
|
1629
|
+
* @param operationInfo has metadata of the variable
|
|
1630
|
+
* @param paginationInfo has metadata of the variable pagination data
|
|
1631
|
+
* @returns {void} This method does not return anything
|
|
1632
|
+
*/
|
|
1633
|
+
static setPaginationQueryParams(variable, operationInfo, paginationInfo) {
|
|
1634
|
+
operationInfo.parameters.forEach(element => {
|
|
1635
|
+
// pagination input information varies based on the type
|
|
1636
|
+
let inputParam;
|
|
1637
|
+
if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
|
|
1638
|
+
inputParam = 'offset';
|
|
1639
|
+
}
|
|
1640
|
+
else {
|
|
1641
|
+
inputParam = 'page';
|
|
1642
|
+
}
|
|
1643
|
+
// modifies query values based on the pagination of variable
|
|
1644
|
+
// compare parameter name with the input parameter's starting naming key (ex: channelcontext in channelcontext.pagination)
|
|
1645
|
+
if (element.name === paginationInfo.input[inputParam].split('.')[0]) {
|
|
1646
|
+
element.sampleValue = variable.pagination['page'];
|
|
1647
|
+
}
|
|
1648
|
+
else if (element.name === paginationInfo.input.size.split('.')[0]) {
|
|
1649
|
+
element.sampleValue = variable.pagination['size'];
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1653
|
+
/**
|
|
1654
|
+
* Sets pagination on the variable based on the response of the triggered api call.
|
|
1655
|
+
* @param variable withholds variable information
|
|
1656
|
+
* @param response has data of the api call's response
|
|
1657
|
+
* @param options has info of the api's query params
|
|
1658
|
+
* @returns {void} This method does not return anything
|
|
1659
|
+
*/
|
|
1660
|
+
static setVariablePagination(variable, response, options) {
|
|
1661
|
+
if (!variable.pagination) {
|
|
1662
|
+
variable.pagination = {
|
|
1663
|
+
empty: false
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
variable.pagination['size'] = response.size;
|
|
1667
|
+
variable.pagination['page'] = response.page || 0;
|
|
1668
|
+
variable.pagination['totalElements'] = response.totalElements;
|
|
1669
|
+
variable.pagination['numberOfElements'] = variable.pagination['size'];
|
|
1670
|
+
variable.pagination['number'] = options['page'] ? options['page'] - 1 : 0;
|
|
1671
|
+
/**
|
|
1672
|
+
* Deduce totalPages from totalElements by size.
|
|
1673
|
+
* If the total elements are evenly split among the pages, assign the same to totalPages
|
|
1674
|
+
* Else assign totalPages + 1
|
|
1675
|
+
*/
|
|
1676
|
+
variable.pagination['totalPages'] = variable.pagination['totalElements'] / variable.pagination['size'];
|
|
1677
|
+
if (variable.pagination['totalElements'] % variable.pagination['size'] === 0) {
|
|
1678
|
+
variable.pagination['totalPages'] = parseInt(variable.pagination['totalPages']);
|
|
1679
|
+
}
|
|
1680
|
+
else {
|
|
1681
|
+
variable.pagination['totalPages'] = parseInt(variable.pagination['totalPages']) + 1;
|
|
1682
|
+
}
|
|
1683
|
+
// If pagination type is cursor, fill next & prev
|
|
1684
|
+
if (response.next) {
|
|
1685
|
+
variable.pagination['next'] = response.next;
|
|
1686
|
+
variable.pagination['prev'] = response.prev;
|
|
1687
|
+
variable.pagination['last'] = response.next ? false : true;
|
|
1688
|
+
variable.pagination['first'] = response.prev ? false : true;
|
|
1689
|
+
}
|
|
1690
|
+
else {
|
|
1691
|
+
variable.pagination['first'] = variable.pagination['page'] <= 1 ? true : false;
|
|
1692
|
+
// calculate last based on current page index against total pages
|
|
1693
|
+
variable.pagination['last'] = response.hasMoreItems === '' ? !(variable.pagination['page'] < variable.pagination['totalPages']) : !response.hasMoreItems;
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* Resolves the expression given in pagination metadata's output
|
|
1698
|
+
* @param item has value of each key which is inside output pagination metadata
|
|
1699
|
+
* @param response has data of the api call's response
|
|
1700
|
+
* @param resHeaders has data of the api call's response headers
|
|
1701
|
+
* @param res holds the information of pagination which has to be stored on the variable
|
|
1702
|
+
* @param key has key name against which data has to be stored in pagination
|
|
1703
|
+
* @returns {void} This method does not return anything
|
|
1704
|
+
*/
|
|
1705
|
+
static setPaginationItems(item, response, res, key, resHeaders) {
|
|
1706
|
+
// if the item has body, resolve the expression against the response
|
|
1707
|
+
if (lodashEs.startsWith(item, '$body')) {
|
|
1708
|
+
const bodyKey = item.replace('$body.', '');
|
|
1709
|
+
try {
|
|
1710
|
+
res[key] = jmespath.jmespath.search(response, bodyKey);
|
|
1711
|
+
}
|
|
1712
|
+
catch {
|
|
1713
|
+
console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
else if (lodashEs.startsWith(item, '$header')) { // if the item has header, resolve the expression against the response headers
|
|
1717
|
+
const headerKey = item.replace('$header.', '');
|
|
1718
|
+
const headers = Object.fromEntries(resHeaders.headers);
|
|
1719
|
+
const headerParams = headerKey.split('.');
|
|
1720
|
+
try {
|
|
1721
|
+
res[key] = jmespath.jmespath.search(headers, headerParams[0].toLowerCase());
|
|
1722
|
+
}
|
|
1723
|
+
catch {
|
|
1724
|
+
console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
|
|
1725
|
+
}
|
|
1726
|
+
if (res[key]?.length) {
|
|
1727
|
+
let headerVal = res[key].join();
|
|
1728
|
+
if (headerParams.length === 1) {
|
|
1729
|
+
/**
|
|
1730
|
+
* If the headerParams has only 1 key (which is not an object) name assing headerVal to the res[key]
|
|
1731
|
+
*/
|
|
1732
|
+
res[key] = headerVal;
|
|
1733
|
+
}
|
|
1734
|
+
else {
|
|
1735
|
+
/**
|
|
1736
|
+
* If the headerParams has more than 1 key (an object), parse the stringified headerVal which is an object
|
|
1737
|
+
* Resolve the expression against headerVal object amd assign it to res[key]
|
|
1738
|
+
*/
|
|
1739
|
+
let keyName = headerParams.slice(1).join('.');
|
|
1740
|
+
const headerResp = JSON.parse(headerVal);
|
|
1741
|
+
const specialChar = /[!@#$%^&*()+\=\[\]{};':"\\|,<>\/?]+/;
|
|
1742
|
+
if (specialChar.test(keyName)) {
|
|
1743
|
+
// If key name has expression (ex: comparission expression)
|
|
1744
|
+
// add root key name to keyName for JMES to resolve the expression
|
|
1745
|
+
keyName = 'headerResp.' + keyName;
|
|
1746
|
+
}
|
|
1747
|
+
try {
|
|
1748
|
+
res[key] = jmespath.jmespath.search(headerResp, keyName);
|
|
1749
|
+
}
|
|
1750
|
+
catch {
|
|
1751
|
+
console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Return the pagination information of the service based on its existence on swagger or on the variable
|
|
1759
|
+
* @param variable withholds variable information
|
|
1760
|
+
* @param operationInfo has metadata of the variable
|
|
1761
|
+
* @returns {object} This method return pagination metadata
|
|
1762
|
+
*/
|
|
1763
|
+
static getPaginationInfo(operationInfo, variable) {
|
|
1764
|
+
if (operationInfo?.paginationInfo) {
|
|
1765
|
+
return operationInfo.paginationInfo;
|
|
1766
|
+
}
|
|
1767
|
+
else {
|
|
1768
|
+
return variable._paginationConfig;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Set query params with the pagination info, if pagination metadata is present in query params
|
|
1773
|
+
* @param variable withholds variable information
|
|
1774
|
+
* @param operationInfo has metadata of the variable
|
|
1775
|
+
* @param options has info of the api's query params
|
|
1776
|
+
* @returns {void} This method does not return anything
|
|
1777
|
+
*/
|
|
1778
|
+
static checkPaginationAtQuery(operationInfo, variable, options) {
|
|
1779
|
+
const paginationInfo = this.getPaginationInfo(operationInfo, variable);
|
|
1780
|
+
// If page is not first, pagination is present on the variable and paginationInfo's input meta has size set pagination in query params
|
|
1781
|
+
const hasPagination = options && options['page'] && paginationInfo?.input.size && variable.pagination;
|
|
1782
|
+
if (!hasPagination) {
|
|
1783
|
+
return;
|
|
1784
|
+
}
|
|
1785
|
+
let inputParam;
|
|
1786
|
+
// if pagination type is offset, asssign inputParam to offset else page
|
|
1787
|
+
if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
|
|
1788
|
+
inputParam = 'offset';
|
|
1789
|
+
}
|
|
1790
|
+
else {
|
|
1791
|
+
inputParam = 'page';
|
|
1792
|
+
}
|
|
1793
|
+
const paramName = paginationInfo.input[inputParam].split('.')[0];
|
|
1794
|
+
const paramObj = lodashEs.find(operationInfo.parameters, function (obj) {
|
|
1795
|
+
return obj.name === paramName;
|
|
1796
|
+
});
|
|
1797
|
+
// check if the variable has query params and they are not empty
|
|
1798
|
+
if (!lodashEs.isEmpty(variable.dataBinding) && paramObj && paramObj.parameterType === 'query') {
|
|
1799
|
+
/**
|
|
1800
|
+
* For pagination type other than offset, assign page which is recieved from options
|
|
1801
|
+
* For offset type, calculate page from size and options[page]
|
|
1802
|
+
*/
|
|
1803
|
+
if (!paginationInfo.output?.page && paginationInfo.type !== 'offset') {
|
|
1804
|
+
variable.pagination['page'] = options['page'];
|
|
1805
|
+
}
|
|
1806
|
+
else {
|
|
1807
|
+
variable.pagination['page'] = this.getOffsetInfo(variable, options);
|
|
1808
|
+
}
|
|
1809
|
+
this.setPaginationQueryParams(variable, operationInfo, paginationInfo);
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* Deduces the offset information from the size and page params
|
|
1814
|
+
* @param variable withholds variable information
|
|
1815
|
+
* @param options has info of the api's query params
|
|
1816
|
+
* @returns {object} Returns the next offset number
|
|
1817
|
+
*/
|
|
1818
|
+
static getOffsetInfo(variable, options) {
|
|
1819
|
+
return variable.pagination['size'] * (options['page'] ? (options['page'] - 1) : 1);
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Sets Pagination data on the request information
|
|
1823
|
+
* @param variable withholds variable information
|
|
1824
|
+
* @param operationInfo has metadata of the variable
|
|
1825
|
+
* @param options has info of the api's query params
|
|
1826
|
+
* @param paginationInfo has pagination information of the variable
|
|
1827
|
+
* @param headers has request headers
|
|
1828
|
+
* @param requestBody has request body
|
|
1829
|
+
* @param url has request url
|
|
1830
|
+
* @returns {object} Returns the request object which has pagination info
|
|
1831
|
+
*/
|
|
1832
|
+
static setPaginationAtReq(paginationInfo, operationInfo, variable, headers, requestBody, url, options) {
|
|
1833
|
+
let reqObj = {};
|
|
1834
|
+
let inputParam;
|
|
1835
|
+
let resObj = {};
|
|
1836
|
+
// pagination input information varies based on the type
|
|
1837
|
+
if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
|
|
1838
|
+
inputParam = 'offset';
|
|
1839
|
+
}
|
|
1840
|
+
else {
|
|
1841
|
+
inputParam = 'page';
|
|
1842
|
+
}
|
|
1843
|
+
const paramName = paginationInfo.input[inputParam].split('.')[0];
|
|
1844
|
+
// check if paramName is present in parameters of operation info
|
|
1845
|
+
const paramObj = lodashEs.find(operationInfo.parameters, function (obj) {
|
|
1846
|
+
return obj.name === paramName;
|
|
1847
|
+
});
|
|
1848
|
+
// set page/offset and size from pagination if matched parameter's type is header
|
|
1849
|
+
if (paramObj?.parameterType === 'header') {
|
|
1850
|
+
lodashEs.set(reqObj, paginationInfo.input[inputParam], variable.pagination['page']);
|
|
1851
|
+
lodashEs.set(reqObj, paginationInfo.input.size, variable.pagination['size']);
|
|
1852
|
+
headers[paramName] = JSON.stringify(reqObj[paramName]);
|
|
1853
|
+
resObj['headers'] = headers;
|
|
1854
|
+
}
|
|
1855
|
+
else if (paramObj?.parameterType === 'body') {
|
|
1856
|
+
// set page/offset and size from pagination if matched parameter's type is body
|
|
1857
|
+
// assign bodyVal to updated pagination info object
|
|
1858
|
+
const bodyVal = JSON.parse(paramObj.sampleValue);
|
|
1859
|
+
const bodyParam = paginationInfo.input[inputParam].split('.')[1];
|
|
1860
|
+
if (bodyVal && bodyVal[bodyParam]) {
|
|
1861
|
+
const inputBodyParam = paginationInfo.input[inputParam].split('.').splice(1).join('.');
|
|
1862
|
+
if (inputParam !== 'offset') {
|
|
1863
|
+
lodashEs.set(reqObj, inputBodyParam, variable.pagination['page']);
|
|
1864
|
+
}
|
|
1865
|
+
else {
|
|
1866
|
+
lodashEs.set(reqObj, inputBodyParam, this.getOffsetInfo(variable, options));
|
|
1867
|
+
}
|
|
1868
|
+
lodashEs.set(reqObj, paginationInfo.input.size.split('.').splice(1).join('.'), variable.pagination['size']);
|
|
1869
|
+
bodyVal[bodyParam] = reqObj[bodyParam];
|
|
1870
|
+
requestBody = JSON.stringify(bodyVal);
|
|
1871
|
+
resObj['requestBody'] = requestBody;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
else if (variable.pagination.next && paramObj) {
|
|
1875
|
+
/**
|
|
1876
|
+
* For cursor type pagination, if pagination info is present in the path
|
|
1877
|
+
* Based on whether user clicks on the next or prev button modify the url
|
|
1878
|
+
*/
|
|
1879
|
+
if (paramObj.parameterType === 'path') {
|
|
1880
|
+
const urlParams = operationInfo.relativePath.split('/'), paramConfig = '{' + paramObj.name + '}', paramIndex = urlParams.indexOf(paramConfig);
|
|
1881
|
+
let invokeUrl;
|
|
1882
|
+
if (variable.pagination.isNext) {
|
|
1883
|
+
invokeUrl = variable.pagination.next.split('/');
|
|
1884
|
+
}
|
|
1885
|
+
else {
|
|
1886
|
+
invokeUrl = variable.pagination.prev.split('/');
|
|
1887
|
+
}
|
|
1888
|
+
let urlPathParmas;
|
|
1889
|
+
let urlPath;
|
|
1890
|
+
if (operationInfo.directPath) { // For direct path, as url has hostname, derivate pathname using URL object
|
|
1891
|
+
urlPath = new URL(url);
|
|
1892
|
+
urlPathParmas = urlPath.pathname.split('/');
|
|
1893
|
+
urlPathParmas[paramIndex] = invokeUrl[paramIndex];
|
|
1894
|
+
urlPath.pathname = urlPathParmas.join('/');
|
|
1895
|
+
url = urlPath.href;
|
|
1896
|
+
resObj['url'] = url;
|
|
1897
|
+
}
|
|
1898
|
+
else { // Else modify the url with index as +1 (following proxy pattern)
|
|
1899
|
+
urlPathParmas = url.split('/');
|
|
1900
|
+
urlPathParmas[paramIndex + 1] = invokeUrl[paramIndex];
|
|
1901
|
+
url = urlPathParmas.join('/');
|
|
1902
|
+
resObj['url'] = url;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
else if (paramObj.parameterType === 'query') {
|
|
1906
|
+
/**
|
|
1907
|
+
* For cursor type pagination, if pagination info is present in the query
|
|
1908
|
+
* Based on whether user clicks on the next or prev button modify the url's query params
|
|
1909
|
+
*/
|
|
1910
|
+
const urlParams = url.split('?');
|
|
1911
|
+
let invokeUrl;
|
|
1912
|
+
if (variable.pagination.isNext) {
|
|
1913
|
+
invokeUrl = variable.pagination.next.split('?');
|
|
1914
|
+
}
|
|
1915
|
+
else {
|
|
1916
|
+
invokeUrl = variable.pagination.prev.split('?');
|
|
1917
|
+
}
|
|
1918
|
+
urlParams[1] = invokeUrl[1];
|
|
1919
|
+
url = urlParams.join('?');
|
|
1920
|
+
resObj['url'] = url;
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
return resObj;
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Sets the pagination info recieved from api's response in the res object
|
|
1927
|
+
* @param operationInfo has metadata of the variable
|
|
1928
|
+
* @param res holds the information of pagination which has to be stored on the variable
|
|
1929
|
+
* @param paramName has key name against which data has to be stored in pagination
|
|
1930
|
+
* @param variable withholds variable information
|
|
1931
|
+
* @returns {void} This method does not return anything
|
|
1932
|
+
*/
|
|
1933
|
+
static setParameterVal(paramName, res, operationInfo, variable) {
|
|
1934
|
+
const paginationInfo = this.getPaginationInfo(operationInfo, variable);
|
|
1935
|
+
const param = paginationInfo.input[paramName].split('.')[0];
|
|
1936
|
+
const sizeObj = lodashEs.find(operationInfo.parameters, function (obj) {
|
|
1937
|
+
return obj.name === param;
|
|
1938
|
+
});
|
|
1939
|
+
res[paramName] = lodashEs.result(sizeObj, 'sampleValue');
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* Creates res object from the response recieved from the api triggered
|
|
1943
|
+
* @param variable withholds variable information
|
|
1944
|
+
* @param operationInfo has metadata of the variable
|
|
1945
|
+
* @param paginationInfo has metadata of the variable's pagination
|
|
1946
|
+
* @param response has data of the api call's response
|
|
1947
|
+
* @param options has info of the api's query params
|
|
1948
|
+
* @param resHeaders has data of the api call's response headers
|
|
1949
|
+
* @returns {object} An object which holds the information of pagination which has to be stored on the variable
|
|
1950
|
+
*/
|
|
1951
|
+
static generatePaginationRes(operationInfo, paginationInfo, response, resHeaders, options, variable) {
|
|
1952
|
+
let res = {};
|
|
1953
|
+
const resOutput = paginationInfo.output;
|
|
1954
|
+
// If pagination type is not cursor, create the following metadata
|
|
1955
|
+
if (!resOutput?.next) {
|
|
1956
|
+
/**
|
|
1957
|
+
* If size is present in the pagination's output metadata deduce size from api's response
|
|
1958
|
+
* Else deduce size from the pagination's input metadata size key
|
|
1959
|
+
*/
|
|
1960
|
+
if (resOutput?.size) {
|
|
1961
|
+
this.setPaginationItems(resOutput.size, response, res, 'size', resHeaders);
|
|
1962
|
+
}
|
|
1963
|
+
else {
|
|
1964
|
+
this.setParameterVal('size', res, operationInfo, variable);
|
|
1965
|
+
}
|
|
1966
|
+
/**
|
|
1967
|
+
* If page is present in the pagination's output metadata deduce page from api's response
|
|
1968
|
+
* Else deduce page from the pagination's input metadata page key
|
|
1969
|
+
*/
|
|
1970
|
+
if (resOutput?.page) {
|
|
1971
|
+
this.setPaginationItems(resOutput.page, response, res, 'page', resHeaders);
|
|
1972
|
+
}
|
|
1973
|
+
else if (paginationInfo.type !== 'offset') {
|
|
1974
|
+
this.setParameterVal('page', res, operationInfo, variable);
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* If totalElements has $minValue in it, set totalElements as $minValue
|
|
1978
|
+
* If the rendered elements are greater than $minValue, set totalElements as Number of elements rendered + 1
|
|
1979
|
+
|
|
1980
|
+
* If totalElements is present in the pagination's output metadata deduce totalElements from api's response
|
|
1981
|
+
|
|
1982
|
+
* If Pagination type is offset, deduce totalElements from size and options[page] else deduce from size and res[page]
|
|
1983
|
+
*/
|
|
1984
|
+
if (lodashEs.startsWith(resOutput?.totalElements, '$minValue')) {
|
|
1985
|
+
const totalEl = resOutput.totalElements.replace('$minValue=', '');
|
|
1986
|
+
const pageParam = res['page'] ? res['page'] : options['page'];
|
|
1987
|
+
const elRendered = res['size'] * pageParam;
|
|
1988
|
+
if (!variable.pagination || variable.pagination['totalElements'] > elRendered) {
|
|
1989
|
+
res['totalElements'] = parseInt(totalEl);
|
|
1990
|
+
}
|
|
1991
|
+
else {
|
|
1992
|
+
res['totalElements'] = elRendered + 1;
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
else if (resOutput?.totalElements) {
|
|
1996
|
+
this.setPaginationItems(resOutput.totalElements, response, res, 'totalElements', resHeaders);
|
|
1997
|
+
}
|
|
1998
|
+
else {
|
|
1999
|
+
if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
|
|
2000
|
+
res['totalElements'] = (res['size'] * (options['page'] ? options['page'] : 1)) + 1;
|
|
2001
|
+
}
|
|
2002
|
+
else {
|
|
2003
|
+
res['totalElements'] = (res['size'] * res['page']) + 1;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* If hasMoreItems is present in the pagination's output metadata deduce hasMoreItems from api's response
|
|
2008
|
+
* Else assign it as empty which will be calculated at pagination object generation
|
|
2009
|
+
*/
|
|
2010
|
+
if (resOutput?.hasMoreItems) {
|
|
2011
|
+
this.setPaginationItems(resOutput.hasMoreItems, response, res, 'hasMoreItems', resHeaders);
|
|
2012
|
+
}
|
|
2013
|
+
else {
|
|
2014
|
+
res['hasMoreItems'] = '';
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
else if (resOutput) { // For cursor type pagination set next and prev keys in res object
|
|
2018
|
+
this.setPaginationItems(resOutput.next, response, res, 'next', resHeaders);
|
|
2019
|
+
this.setPaginationItems(resOutput.prev, response, res, 'prev', resHeaders);
|
|
2020
|
+
}
|
|
2021
|
+
return res;
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* returns true if a Service variable is:
|
|
2027
|
+
* - for a query/procedure
|
|
2028
|
+
* - performs a PUT/POST operation, i.e, takes a Request Body as input
|
|
2029
|
+
* @param variable
|
|
2030
|
+
* @returns {any}
|
|
2031
|
+
*/
|
|
2032
|
+
const isBodyTypeQueryOrProcedure = (variable) => {
|
|
2033
|
+
return (lodashEs.includes(['QueryExecution', 'ProcedureExecution'], variable.controller)) && (lodashEs.includes(['put', 'post'], variable.operationType));
|
|
2034
|
+
};
|
|
2035
|
+
/**
|
|
2036
|
+
* returns true if the variable is a Query service variable
|
|
2037
|
+
* @param {string} controller
|
|
2038
|
+
* @param {string} serviceType
|
|
2039
|
+
* @returns {boolean}
|
|
2040
|
+
*/
|
|
2041
|
+
const isQueryServiceVar = (controller, serviceType) => {
|
|
2042
|
+
return controller === VARIABLE_CONSTANTS.CONTROLLER_TYPE.QUERY && serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA;
|
|
2043
|
+
};
|
|
2044
|
+
/**
|
|
2045
|
+
* Append given value to the formdata
|
|
2046
|
+
* @param formData
|
|
2047
|
+
* @param param - Param from which value has to be taken
|
|
2048
|
+
* @param paramValue - Value which is to be appended to formdata
|
|
2049
|
+
*/
|
|
2050
|
+
const getFormData = (formData, param, paramValue) => {
|
|
2051
|
+
const paramType = lodashEs.toLower(i1.extractType(lodashEs.get(param, 'items.type') || param.type)), paramContentType = CONSTANTS.isStudioMode ? param['x-WM-CONTENT_TYPE'] : param.contentType;
|
|
2052
|
+
if (isFileUploadSupported()) {
|
|
2053
|
+
if ((paramType !== 'file') && (paramContentType === 'string' || !paramContentType)) {
|
|
2054
|
+
if (lodashEs.isObject(paramValue)) {
|
|
2055
|
+
paramValue = JSON.stringify(paramValue);
|
|
2056
|
+
}
|
|
2057
|
+
formData.append(param.name, paramValue);
|
|
2058
|
+
}
|
|
2059
|
+
else {
|
|
2060
|
+
if (lodashEs.isArray(paramValue) && paramType === 'file') {
|
|
2061
|
+
lodashEs.forEach(paramValue, function (fileObject) {
|
|
2062
|
+
formData.append(param.name, (fileObject && fileObject.content) || i1.getBlob(fileObject), fileObject.name);
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
else {
|
|
2066
|
+
formData.append(param.name, i1.getBlob(paramValue, paramContentType), paramValue && paramValue.name);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
return formData;
|
|
2070
|
+
}
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* Check for missing required params and format the date/time param values
|
|
2074
|
+
* @param inputData
|
|
2075
|
+
* @param params
|
|
2076
|
+
* @returns {{requestBody: {}; missingParams: any[]}}
|
|
2077
|
+
*/
|
|
2078
|
+
const processRequestBody = (inputData, params) => {
|
|
2079
|
+
const requestBody = {}, missingParams = [];
|
|
2080
|
+
let paramValue;
|
|
2081
|
+
lodashEs.forEach(params, function (param) {
|
|
2082
|
+
paramValue = lodashEs.get(inputData, param.name);
|
|
2083
|
+
if (!lodashEs.isUndefined(paramValue) && paramValue !== '' && paramValue !== null && !param.readOnly) {
|
|
2084
|
+
paramValue = i1.isDateTimeType(param.type) ? formatDate(paramValue, param.type) : paramValue;
|
|
2085
|
+
// Construct ',' separated string if param is not array type but value is an array
|
|
2086
|
+
if (lodashEs.isArray(paramValue) && lodashEs.toLower(i1.extractType(param.type)) === 'string') {
|
|
2087
|
+
paramValue = lodashEs.join(paramValue, ',');
|
|
2088
|
+
}
|
|
2089
|
+
requestBody[param.name] = paramValue;
|
|
2090
|
+
}
|
|
2091
|
+
else if (param.required) {
|
|
2092
|
+
missingParams.push(param.name || param.id);
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
return {
|
|
2096
|
+
'requestBody': requestBody,
|
|
2097
|
+
'missingParams': missingParams
|
|
2098
|
+
};
|
|
2099
|
+
};
|
|
2100
|
+
/**
|
|
2101
|
+
* Done only for HTTP calls made via the proxy server
|
|
2102
|
+
* Goes though request headers, appends 'X-' to certain headers
|
|
2103
|
+
* these headers need not be processed at proxy server and should directly be passed to the server
|
|
2104
|
+
* e.g. Authorization, Cookie, etc.
|
|
2105
|
+
* @param headers
|
|
2106
|
+
* @returns {{}}
|
|
2107
|
+
*/
|
|
2108
|
+
const cloakHeadersForProxy = (headers) => {
|
|
2109
|
+
const _headers = {}, UNCLOAKED_HEADERS = VARIABLE_CONSTANTS.REST_SERVICE.UNCLOAKED_HEADERS, CLOAK_PREFIX = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.CLOAK_HEADER_KEY;
|
|
2110
|
+
lodashEs.forEach(headers, function (val, key) {
|
|
2111
|
+
if (lodashEs.includes(UNCLOAKED_HEADERS, key.toUpperCase())) {
|
|
2112
|
+
_headers[key] = val;
|
|
2113
|
+
}
|
|
2114
|
+
else {
|
|
2115
|
+
_headers[CLOAK_PREFIX + key] = val;
|
|
2116
|
+
}
|
|
2117
|
+
});
|
|
2118
|
+
return _headers;
|
|
2119
|
+
};
|
|
2120
|
+
class ServiceVariableUtils {
|
|
2121
|
+
/**
|
|
2122
|
+
* prepares the HTTP request info for a Service Variable
|
|
2123
|
+
* @param variable
|
|
2124
|
+
* @param operationInfo
|
|
2125
|
+
* @param inputFields
|
|
2126
|
+
* @returns {any}
|
|
2127
|
+
*/
|
|
2128
|
+
static constructRequestParams(variable, operationInfo, inputFields, options) {
|
|
2129
|
+
variable = variable || {};
|
|
2130
|
+
// operationInfo is specifically null for un_authorized access
|
|
2131
|
+
if (operationInfo === null) {
|
|
2132
|
+
return {
|
|
2133
|
+
'error': {
|
|
2134
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.USER_UNAUTHORISED,
|
|
2135
|
+
'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.USER_UNAUTHORISED,
|
|
2136
|
+
'field': '_wmServiceOperationInfo'
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
else if (lodashEs.isEmpty(operationInfo)) {
|
|
2141
|
+
return {
|
|
2142
|
+
'error': {
|
|
2143
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING,
|
|
2144
|
+
'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.METADATA_MISSING,
|
|
2145
|
+
'field': '_wmServiceOperationInfo'
|
|
2146
|
+
}
|
|
2147
|
+
};
|
|
2148
|
+
}
|
|
2149
|
+
else if (operationInfo && operationInfo.invalid) {
|
|
2150
|
+
return {
|
|
2151
|
+
'error': {
|
|
2152
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.CRUD_OPERATION_MISSING,
|
|
2153
|
+
'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.CRUD_OPERATION_MISSING,
|
|
2154
|
+
'field': '_wmServiceOperationInfo'
|
|
2155
|
+
}
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
const directPath = operationInfo.directPath || '', relativePath = operationInfo.basePath ? operationInfo.basePath + operationInfo.relativePath : operationInfo.relativePath, isBodyTypeQueryProcedure = isBodyTypeQueryOrProcedure(variable);
|
|
2159
|
+
let queryParams = '', bodyInfo, headers = {}, requestBody, url, requiredParamMissing = [], target, pathParamRex, invokeParams, authDetails = null, uname, pswd, method, formData, isProxyCall, paramValueInfo, params, securityDefnObj, accessToken, withCredentials;
|
|
2160
|
+
function getFormDataObj() {
|
|
2161
|
+
if (formData) {
|
|
2162
|
+
return formData;
|
|
2163
|
+
}
|
|
2164
|
+
formData = new FormData();
|
|
2165
|
+
return formData;
|
|
2166
|
+
}
|
|
2167
|
+
securityDefnObj = lodashEs.get(operationInfo.securityDefinitions, '0');
|
|
2168
|
+
if (securityDefnObj) {
|
|
2169
|
+
switch (securityDefnObj.type) {
|
|
2170
|
+
case VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2:
|
|
2171
|
+
accessToken = getAccessToken(securityDefnObj[VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY], null);
|
|
2172
|
+
if (accessToken) {
|
|
2173
|
+
headers[VARIABLE_CONSTANTS.REST_SERVICE.AUTH_HDR_KEY] = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.AUTH_HDR_VAL.OAUTH + ' ' + accessToken;
|
|
2174
|
+
}
|
|
2175
|
+
else {
|
|
2176
|
+
return {
|
|
2177
|
+
'error': {
|
|
2178
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_ACCESSTOKEN,
|
|
2179
|
+
'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.NO_ACCESSTOKEN
|
|
2180
|
+
},
|
|
2181
|
+
'securityDefnObj': securityDefnObj
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2184
|
+
break;
|
|
2185
|
+
case VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.BASIC:
|
|
2186
|
+
uname = inputFields['wm_auth_username'];
|
|
2187
|
+
pswd = inputFields['wm_auth_password'];
|
|
2188
|
+
if (uname && pswd) {
|
|
2189
|
+
// TODO[VIBHU]: bas64 encoding alternative.
|
|
2190
|
+
headers[VARIABLE_CONSTANTS.REST_SERVICE.AUTH_HDR_KEY] = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.AUTH_HDR_VAL.BASIC + ' ' + btoa(uname + ':' + pswd);
|
|
2191
|
+
authDetails = {
|
|
2192
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.AUTH_TYPE.BASIC
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
else {
|
|
2196
|
+
return {
|
|
2197
|
+
'error': {
|
|
2198
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_CREDENTIALS,
|
|
2199
|
+
'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.NO_CREDENTIALS
|
|
2200
|
+
},
|
|
2201
|
+
'securityDefnObj': securityDefnObj
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
break;
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
// set query params, if pagination info is present and the info should be present in query
|
|
2208
|
+
PaginationUtils.checkPaginationAtQuery(operationInfo, variable, options);
|
|
2209
|
+
operationInfo.proxySettings = operationInfo.proxySettings || { web: true, mobile: false };
|
|
2210
|
+
method = operationInfo.httpMethod || operationInfo.methodType;
|
|
2211
|
+
isProxyCall = (function () {
|
|
2212
|
+
return operationInfo.proxySettings.web;
|
|
2213
|
+
}());
|
|
2214
|
+
withCredentials = operationInfo.proxySettings.withCredentials;
|
|
2215
|
+
url = isProxyCall ? relativePath : directPath;
|
|
2216
|
+
/* loop through all the parameters */
|
|
2217
|
+
lodashEs.forEach(operationInfo.parameters, function (param) {
|
|
2218
|
+
// Set params based on current workspace
|
|
2219
|
+
function setParamsOfChildNode() {
|
|
2220
|
+
if (inputFields) {
|
|
2221
|
+
// specific case for body type query/procedure variable with query params
|
|
2222
|
+
if (inputFields[param.name] && lodashEs.isObject(inputFields[param.name])) {
|
|
2223
|
+
paramValueInfo = inputFields[param.name];
|
|
2224
|
+
}
|
|
2225
|
+
else {
|
|
2226
|
+
paramValueInfo = inputFields;
|
|
2227
|
+
}
|
|
2228
|
+
params = lodashEs.get(operationInfo, ['definitions', param.type]);
|
|
2229
|
+
}
|
|
2230
|
+
else {
|
|
2231
|
+
// For Api Designer
|
|
2232
|
+
paramValueInfo = paramValue || {};
|
|
2233
|
+
params = param.children;
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
let paramValue = param.sampleValue;
|
|
2237
|
+
if ((i1.isDefined(paramValue) && paramValue !== null && paramValue !== '') || (isBodyTypeQueryProcedure && param.type !== 'file')) {
|
|
2238
|
+
// Format dateTime params for dataService variables
|
|
2239
|
+
if (variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA && i1.isDateTimeType(param.type)) {
|
|
2240
|
+
paramValue = formatDate(paramValue, param.type);
|
|
2241
|
+
}
|
|
2242
|
+
// Construct ',' separated string if param is not array type but value is an array
|
|
2243
|
+
if (lodashEs.isArray(paramValue) && lodashEs.toLower(i1.extractType(param.type)) === 'string' && variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA) {
|
|
2244
|
+
paramValue = lodashEs.join(paramValue, ',');
|
|
2245
|
+
}
|
|
2246
|
+
switch (param.parameterType.toUpperCase()) {
|
|
2247
|
+
case 'QUERY':
|
|
2248
|
+
// Ignore null valued query params for queryService variable
|
|
2249
|
+
if (lodashEs.isNull(paramValue) && isQueryServiceVar(variable.controller, variable.serviceType)) {
|
|
2250
|
+
break;
|
|
2251
|
+
}
|
|
2252
|
+
if (!queryParams) {
|
|
2253
|
+
queryParams = '?' + param.name + '=' + encodeURIComponent(paramValue);
|
|
2254
|
+
}
|
|
2255
|
+
else {
|
|
2256
|
+
queryParams += '&' + param.name + '=' + encodeURIComponent(paramValue);
|
|
2257
|
+
}
|
|
2258
|
+
break;
|
|
2259
|
+
case 'PATH':
|
|
2260
|
+
/* replacing the path param based on the regular expression in the relative path */
|
|
2261
|
+
pathParamRex = new RegExp('\\s*\\{\\s*' + param.name + '(:\\.\\+)?\\s*\\}\\s*');
|
|
2262
|
+
url = url.replace(pathParamRex, paramValue);
|
|
2263
|
+
break;
|
|
2264
|
+
case 'HEADER':
|
|
2265
|
+
headers[param.name] = paramValue;
|
|
2266
|
+
break;
|
|
2267
|
+
case 'BODY':
|
|
2268
|
+
// For post/put query methods wrap the input
|
|
2269
|
+
if (isBodyTypeQueryProcedure) {
|
|
2270
|
+
setParamsOfChildNode();
|
|
2271
|
+
bodyInfo = processRequestBody(paramValueInfo, params);
|
|
2272
|
+
requestBody = bodyInfo.requestBody;
|
|
2273
|
+
requiredParamMissing = lodashEs.concat(requiredParamMissing, bodyInfo.missingParams);
|
|
2274
|
+
}
|
|
2275
|
+
else {
|
|
2276
|
+
requestBody = paramValue;
|
|
2277
|
+
}
|
|
2278
|
+
break;
|
|
2279
|
+
case 'FORMDATA':
|
|
2280
|
+
if (isBodyTypeQueryProcedure && param.name === SWAGGER_CONSTANTS.WM_DATA_JSON) {
|
|
2281
|
+
setParamsOfChildNode();
|
|
2282
|
+
// Process query/procedure formData non-file params params
|
|
2283
|
+
bodyInfo = processRequestBody(paramValueInfo, params);
|
|
2284
|
+
requestBody = getFormData(getFormDataObj(), param, bodyInfo.requestBody);
|
|
2285
|
+
requiredParamMissing = lodashEs.concat(requiredParamMissing, bodyInfo.missingParams);
|
|
2286
|
+
}
|
|
2287
|
+
else {
|
|
2288
|
+
requestBody = getFormData(getFormDataObj(), param, paramValue);
|
|
2289
|
+
}
|
|
2290
|
+
break;
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
else if (param.required) {
|
|
2294
|
+
requiredParamMissing.push(param.name || param.id);
|
|
2295
|
+
}
|
|
2296
|
+
});
|
|
2297
|
+
// if required param not found, return error
|
|
2298
|
+
if (requiredParamMissing.length) {
|
|
2299
|
+
return {
|
|
2300
|
+
'error': {
|
|
2301
|
+
'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.REQUIRED_FIELD_MISSING,
|
|
2302
|
+
'field': requiredParamMissing.join(','),
|
|
2303
|
+
'message': i1.replace(VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.REQUIRED_FIELD_MISSING, [requiredParamMissing.join(',')]),
|
|
2304
|
+
'skipDefaultNotification': true
|
|
2305
|
+
}
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
// Setting appropriate content-Type for request accepting request body like POST, PUT, etc
|
|
2309
|
+
if (!lodashEs.includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, lodashEs.toUpper(method))) {
|
|
2310
|
+
/*Based on the formData browser will automatically set the content type to 'multipart/form-data' and webkit boundary*/
|
|
2311
|
+
if (!(operationInfo.consumes && (operationInfo.consumes[0] === WS_CONSTANTS.CONTENT_TYPES.MULTIPART_FORMDATA))) {
|
|
2312
|
+
headers['Content-Type'] = (operationInfo.consumes && operationInfo.consumes[0]) || 'application/json';
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
// if the consumes has application/x-www-form-urlencoded and
|
|
2316
|
+
// if the http request of given method type can have body send the queryParams as Form Data
|
|
2317
|
+
if (lodashEs.includes(operationInfo.consumes, WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED)
|
|
2318
|
+
&& !lodashEs.includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, (method || '').toUpperCase())) {
|
|
2319
|
+
// remove the '?' at the start of the queryParams
|
|
2320
|
+
if (queryParams) {
|
|
2321
|
+
requestBody = (requestBody ? requestBody + '&' : '') + queryParams.substring(1);
|
|
2322
|
+
}
|
|
2323
|
+
headers['Content-Type'] = WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED;
|
|
2324
|
+
}
|
|
2325
|
+
else {
|
|
2326
|
+
url += queryParams;
|
|
2327
|
+
}
|
|
2328
|
+
/*
|
|
2329
|
+
* for proxy calls:
|
|
2330
|
+
* - cloak the proper headers (required only for REST services)
|
|
2331
|
+
* - prepare complete url from relativeUrl
|
|
2332
|
+
*/
|
|
2333
|
+
if (isProxyCall) {
|
|
2334
|
+
// avoiding cloakHeadersForProxy when the method is invoked from apidesigner.
|
|
2335
|
+
headers = (variable.serviceType !== VARIABLE_CONSTANTS.SERVICE_TYPE.REST && variable.serviceType !== VARIABLE_CONSTANTS.SERVICE_TYPE.OPENAPI) || operationInfo.skipCloakHeaders ? headers : cloakHeadersForProxy(headers);
|
|
2336
|
+
if (variable.getPrefabName() && VARIABLE_CONSTANTS.REST_SUPPORTED_SERVICES.indexOf(variable.serviceType) !== -1) {
|
|
2337
|
+
/* if it is a prefab variable (used in a normal project), modify the url */
|
|
2338
|
+
url = 'prefabs/' + variable.getPrefabName() + url;
|
|
2339
|
+
target = 'invokePrefabRestService';
|
|
2340
|
+
}
|
|
2341
|
+
else if (!variable.getPrefabName()) {
|
|
2342
|
+
url = 'services' + url;
|
|
2343
|
+
}
|
|
2344
|
+
url = $rootScope.project.deployedUrl + url;
|
|
2345
|
+
}
|
|
2346
|
+
// If pagination info exists, process info in request headers or body based on the metadata
|
|
2347
|
+
const paginationInfo = PaginationUtils.getPaginationInfo(operationInfo, variable);
|
|
2348
|
+
if (paginationInfo && variable.pagination) {
|
|
2349
|
+
const resp = PaginationUtils.setPaginationAtReq(paginationInfo, operationInfo, variable, headers, requestBody, url, options);
|
|
2350
|
+
if (resp) {
|
|
2351
|
+
if (resp['headers']) {
|
|
2352
|
+
headers = resp['headers'];
|
|
2353
|
+
}
|
|
2354
|
+
else if (resp['requestBody']) {
|
|
2355
|
+
requestBody = resp['requestBody'];
|
|
2356
|
+
}
|
|
2357
|
+
else if (resp['url']) {
|
|
2358
|
+
url = resp['url'];
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
/*creating the params needed to invoke the service. url is generated from the relative path for the operation*/
|
|
2363
|
+
invokeParams = {
|
|
2364
|
+
'projectID': $rootScope.project.id,
|
|
2365
|
+
'url': url,
|
|
2366
|
+
'target': target,
|
|
2367
|
+
'method': method,
|
|
2368
|
+
'headers': headers,
|
|
2369
|
+
'data': requestBody,
|
|
2370
|
+
'authDetails': authDetails,
|
|
2371
|
+
'isDirectCall': !isProxyCall,
|
|
2372
|
+
'isExtURL': variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.REST,
|
|
2373
|
+
'withCredentials': withCredentials
|
|
2374
|
+
};
|
|
2375
|
+
return invokeParams;
|
|
2376
|
+
}
|
|
2377
|
+
static isFileUploadRequest(variable) {
|
|
2378
|
+
// temporary fix, have to find proper solution for deciding weather to upload file through variable
|
|
2379
|
+
return variable.service === 'FileService' && variable.operation === 'uploadFile';
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
* This method returns array of query param names for variable other then page,size,sort
|
|
2383
|
+
* @params {params} params of the variable
|
|
2384
|
+
*/
|
|
2385
|
+
static excludePaginationParams(params) {
|
|
2386
|
+
return lodashEs.map(lodashEs.reject(params, (param) => {
|
|
2387
|
+
return lodashEs.includes(VARIABLE_CONSTANTS.PAGINATION_PARAMS, param.name);
|
|
2388
|
+
}), function (param) {
|
|
2389
|
+
return param.name;
|
|
2390
|
+
});
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
class WebSocketVariableManager extends BaseVariableManager {
|
|
2395
|
+
constructor() {
|
|
2396
|
+
super(...arguments);
|
|
2397
|
+
this.scope_var_socket_map = new Map();
|
|
2398
|
+
this.PROPERTY = {
|
|
2399
|
+
'SERVICE': 'service',
|
|
2400
|
+
'DATA_UPDATE_STRATEGY': 'dataUpdateStrategy',
|
|
2401
|
+
'DATA_LIMIT': 'dataLimit'
|
|
2402
|
+
};
|
|
2403
|
+
this.DATA_UPDATE_STRATEGY = {
|
|
2404
|
+
'REFRESH': 'refresh',
|
|
2405
|
+
'PREPEND': 'prepend',
|
|
2406
|
+
'APPEND': 'append'
|
|
2407
|
+
};
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* returns the state of property to decide weather to append new messages to dataSet or not
|
|
2411
|
+
* @param variable
|
|
2412
|
+
* @returns boolean
|
|
2413
|
+
*/
|
|
2414
|
+
shouldAppendData(variable) {
|
|
2415
|
+
variable = variable || this;
|
|
2416
|
+
return variable[this.PROPERTY.DATA_UPDATE_STRATEGY] !== this.DATA_UPDATE_STRATEGY.REFRESH;
|
|
2417
|
+
}
|
|
2418
|
+
/**
|
|
2419
|
+
* returns the state of property to decide weather to APPEND or PREPEND new messages to dataSet
|
|
2420
|
+
* @param variable
|
|
2421
|
+
* @returns boolean
|
|
2422
|
+
*/
|
|
2423
|
+
shouldAppendLast(variable) {
|
|
2424
|
+
return variable[this.PROPERTY.DATA_UPDATE_STRATEGY] === this.DATA_UPDATE_STRATEGY.APPEND;
|
|
2425
|
+
}
|
|
2426
|
+
/**
|
|
2427
|
+
* returns upper limit on number of records to be in dataSet
|
|
2428
|
+
* this is applicable only when appendData is true
|
|
2429
|
+
* @param variable
|
|
2430
|
+
* @returns {dataLimit}
|
|
2431
|
+
*/
|
|
2432
|
+
getDataLimit(variable) {
|
|
2433
|
+
return variable.dataLimit;
|
|
2434
|
+
}
|
|
2435
|
+
/**
|
|
2436
|
+
* get url from wmServiceOperationInfo
|
|
2437
|
+
* @param variable
|
|
2438
|
+
* @returns {*}
|
|
2439
|
+
*/
|
|
2440
|
+
getURL(variable) {
|
|
2441
|
+
const prefabName = variable.getPrefabName();
|
|
2442
|
+
const opInfo = prefabName ?
|
|
2443
|
+
lodashEs.get(exports.metadataService.getByOperationId(variable.operationId, prefabName), 'wmServiceOperationInfo') :
|
|
2444
|
+
lodashEs.get(exports.metadataService.getByOperationId(variable.operationId), 'wmServiceOperationInfo');
|
|
2445
|
+
const inputFields = variable.dataBinding;
|
|
2446
|
+
// add sample values to the params (url and path)
|
|
2447
|
+
lodashEs.forEach(opInfo.parameters, function (param) {
|
|
2448
|
+
param.sampleValue = inputFields[param.name];
|
|
2449
|
+
});
|
|
2450
|
+
// although, no header params will be present, keeping 'skipCloakHeaders' flag if support provided later
|
|
2451
|
+
$.extend(opInfo, {
|
|
2452
|
+
skipCloakHeaders: true
|
|
2453
|
+
});
|
|
2454
|
+
// call common method to prepare config for the service operation info.
|
|
2455
|
+
const config = ServiceVariableUtils.constructRequestParams(variable, opInfo, inputFields);
|
|
2456
|
+
/* if error found, return */
|
|
2457
|
+
if (config.error && config.error.message) {
|
|
2458
|
+
this._onSocketError(variable, { data: config.error.message });
|
|
2459
|
+
return;
|
|
2460
|
+
}
|
|
2461
|
+
return config.url;
|
|
2462
|
+
}
|
|
2463
|
+
/**
|
|
2464
|
+
* handler for onMessage event on a socket connection for a variable
|
|
2465
|
+
* the data returned is converted to JSON from string/xml and assigned to dataSet of variable
|
|
2466
|
+
* If not able to do so, message is simply assigned to the dataSet of variable
|
|
2467
|
+
* If appendData property is set, the message is appended to the dataSet, else it replaces the existing value of dataSet
|
|
2468
|
+
* @param variable
|
|
2469
|
+
* @param evt
|
|
2470
|
+
* @private
|
|
2471
|
+
*/
|
|
2472
|
+
_onSocketMessage(variable, evt) {
|
|
2473
|
+
let data = lodashEs.get(evt, 'data'), dataLength, dataLimit, shouldAddToLast, insertIdx;
|
|
2474
|
+
data = i1.getValidJSON(data) || i1.xmlToJson(data) || data;
|
|
2475
|
+
// EVENT: ON_MESSAGE
|
|
2476
|
+
const value = initiateCallback(VARIABLE_CONSTANTS.EVENT.MESSAGE_RECEIVE, variable, data, evt);
|
|
2477
|
+
data = i1.isDefined(value) ? value : data;
|
|
2478
|
+
if (this.shouldAppendData(variable)) {
|
|
2479
|
+
variable.dataSet = variable.dataSet || [];
|
|
2480
|
+
dataLength = variable.dataSet.length;
|
|
2481
|
+
dataLimit = this.getDataLimit(variable);
|
|
2482
|
+
shouldAddToLast = this.shouldAppendLast(variable);
|
|
2483
|
+
if (dataLimit && (dataLength >= dataLimit)) {
|
|
2484
|
+
if (shouldAddToLast) {
|
|
2485
|
+
variable.dataSet.shift();
|
|
2486
|
+
}
|
|
2487
|
+
else {
|
|
2488
|
+
variable.dataSet.pop();
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
insertIdx = shouldAddToLast ? dataLength : 0;
|
|
2492
|
+
variable.dataSet.splice(insertIdx, 0, data);
|
|
2493
|
+
}
|
|
2494
|
+
else {
|
|
2495
|
+
variable.dataSet = i1.isDefined(value) ? value : data;
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
/**
|
|
2499
|
+
* calls the ON_BEFORE_SEND callback on the variable
|
|
2500
|
+
* @param variable
|
|
2501
|
+
* @param message
|
|
2502
|
+
* @returns {*}
|
|
2503
|
+
* @private
|
|
2504
|
+
*/
|
|
2505
|
+
_onBeforeSend(variable, message) {
|
|
2506
|
+
// EVENT: ON_BEFORE_SEND
|
|
2507
|
+
return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_SEND, variable, message);
|
|
2508
|
+
}
|
|
2509
|
+
/**
|
|
2510
|
+
* calls the ON_BEFORE_CLOSE callback assigned to the variable
|
|
2511
|
+
* @param variable
|
|
2512
|
+
* @param evt
|
|
2513
|
+
* @returns {*}
|
|
2514
|
+
* @private
|
|
2515
|
+
*/
|
|
2516
|
+
_onBeforeSocketClose(variable, evt) {
|
|
2517
|
+
// EVENT: ON_BEFORE_CLOSE
|
|
2518
|
+
return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_CLOSE, variable, lodashEs.get(evt, 'data'), evt);
|
|
2519
|
+
}
|
|
2520
|
+
/**
|
|
2521
|
+
* calls the ON_BEFORE_OPEN callback assigned
|
|
2522
|
+
* called just before the connection is open
|
|
2523
|
+
* @param variable
|
|
2524
|
+
* @param evt
|
|
2525
|
+
* @returns {*}
|
|
2526
|
+
* @private
|
|
2527
|
+
*/
|
|
2528
|
+
_onBeforeSocketOpen(variable, evt) {
|
|
2529
|
+
// EVENT: ON_BEFORE_OPEN
|
|
2530
|
+
return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_OPEN, variable, lodashEs.get(evt, 'data'), evt);
|
|
2531
|
+
}
|
|
2532
|
+
/**
|
|
2533
|
+
* calls the ON_OPEN event on the variable
|
|
2534
|
+
* this is called once the connection is established by the variable with the target WebSocket service
|
|
2535
|
+
* @param variable
|
|
2536
|
+
* @param evt
|
|
2537
|
+
* @private
|
|
2538
|
+
*/
|
|
2539
|
+
_onSocketOpen(variable, evt) {
|
|
2540
|
+
variable._socketConnected = true;
|
|
2541
|
+
// EVENT: ON_OPEN
|
|
2542
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.OPEN, variable, lodashEs.get(evt, 'data'), evt);
|
|
2543
|
+
// Send initial request body if it exists and connectOnPageLoad is true
|
|
2544
|
+
if (variable.startUpdate) {
|
|
2545
|
+
const requestBody = lodashEs.get(variable, 'dataBinding.RequestBody');
|
|
2546
|
+
if (requestBody) {
|
|
2547
|
+
setTimeout(() => {
|
|
2548
|
+
this.send(variable, requestBody);
|
|
2549
|
+
}, 0); // Using setTimeout to ensure connection is fully established
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
freeSocket(variable) {
|
|
2554
|
+
// MEMORY LEAK FIX: Properly clean up socket reference
|
|
2555
|
+
const socket = this.scope_var_socket_map.get(variable);
|
|
2556
|
+
if (socket) {
|
|
2557
|
+
// Clear socket reference from variable
|
|
2558
|
+
variable._socket = null;
|
|
2559
|
+
}
|
|
2560
|
+
this.scope_var_socket_map.delete(variable);
|
|
2561
|
+
}
|
|
2562
|
+
/**
|
|
2563
|
+
* calls the ON_CLOSE event on the variable
|
|
2564
|
+
* this is called on close of an existing connection on a variable
|
|
2565
|
+
* @param variable
|
|
2566
|
+
* @param evt
|
|
2567
|
+
* @private
|
|
2568
|
+
*/
|
|
2569
|
+
_onSocketClose(variable, evt) {
|
|
2570
|
+
variable._socketConnected = false;
|
|
2571
|
+
this.freeSocket(variable);
|
|
2572
|
+
// EVENT: ON_CLOSE
|
|
2573
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.CLOSE, variable, lodashEs.get(evt, 'data'), evt);
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* calls the ON_ERROR event on the variable
|
|
2577
|
+
* this is called if an error occurs while connecting to the socket service
|
|
2578
|
+
* @param variable
|
|
2579
|
+
* @param evt
|
|
2580
|
+
* @private
|
|
2581
|
+
*/
|
|
2582
|
+
_onSocketError(variable, evt) {
|
|
2583
|
+
variable._socketConnected = false;
|
|
2584
|
+
this.freeSocket(variable);
|
|
2585
|
+
// EVENT: ON_ERROR
|
|
2586
|
+
initiateCallback(VARIABLE_CONSTANTS.EVENT.ERROR, variable, lodashEs.get(evt, 'data') || 'Error while connecting with ' + variable.service, evt);
|
|
2587
|
+
}
|
|
2588
|
+
/**
|
|
2589
|
+
* returns an existing socket connection on the variable
|
|
2590
|
+
* if not present, make the connection and return it
|
|
2591
|
+
* @param variable
|
|
2592
|
+
* @returns {*}
|
|
2593
|
+
*/
|
|
2594
|
+
getSocket(variable) {
|
|
2595
|
+
const url = this.getURL(variable);
|
|
2596
|
+
let _socket = this.scope_var_socket_map.get(variable);
|
|
2597
|
+
if (_socket) {
|
|
2598
|
+
return _socket;
|
|
2599
|
+
}
|
|
2600
|
+
if (i1.isInsecureContentRequest(url)) {
|
|
2601
|
+
i1.triggerFn(this._onSocketError.bind(this, variable));
|
|
2602
|
+
return;
|
|
2603
|
+
}
|
|
2604
|
+
_socket = new angular2Websocket.$WebSocket(url);
|
|
2605
|
+
_socket.onOpen(this._onSocketOpen.bind(this, variable));
|
|
2606
|
+
_socket.onError(this._onSocketError.bind(this, variable));
|
|
2607
|
+
_socket.onMessage(this._onSocketMessage.bind(this, variable));
|
|
2608
|
+
_socket.onClose(this._onSocketClose.bind(this, variable));
|
|
2609
|
+
this.scope_var_socket_map.set(variable, _socket);
|
|
2610
|
+
variable._socket = _socket;
|
|
2611
|
+
return _socket;
|
|
2612
|
+
}
|
|
2613
|
+
/**
|
|
2614
|
+
* opens a socket connection on the variable.
|
|
2615
|
+
* URL & other meta data is fetched from wmServiceOperationInfo
|
|
2616
|
+
* @returns {*}
|
|
2617
|
+
*/
|
|
2618
|
+
open(variable, success, error) {
|
|
2619
|
+
const shouldOpen = this._onBeforeSocketOpen(variable);
|
|
2620
|
+
if (shouldOpen === false) {
|
|
2621
|
+
i1.triggerFn(error);
|
|
2622
|
+
return;
|
|
2623
|
+
}
|
|
2624
|
+
const socket = this.getSocket(variable);
|
|
2625
|
+
i1.triggerFn(success);
|
|
2626
|
+
return socket;
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* closes an existing socket connection on variable
|
|
2630
|
+
*/
|
|
2631
|
+
close(variable) {
|
|
2632
|
+
const shouldClose = this._onBeforeSocketClose(variable);
|
|
2633
|
+
const socket = this.getSocket(variable);
|
|
2634
|
+
if (shouldClose === false) {
|
|
2635
|
+
return;
|
|
2636
|
+
}
|
|
2637
|
+
if (socket) {
|
|
2638
|
+
socket.close();
|
|
2639
|
+
// MEMORY LEAK FIX: Clean up socket reference after closing
|
|
2640
|
+
this.freeSocket(variable);
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2644
|
+
* sends a message to the existing socket connection on the variable
|
|
2645
|
+
* If socket connection not open yet, open a connections and then send
|
|
2646
|
+
* if message provide, it is sent, else the one present in RequestBody param is sent
|
|
2647
|
+
* @param message
|
|
2648
|
+
*/
|
|
2649
|
+
send(variable, message) {
|
|
2650
|
+
const socket = this.getSocket(variable);
|
|
2651
|
+
if (!socket) {
|
|
2652
|
+
console.error('WebSocket connection not established');
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
message = message || lodashEs.get(variable, 'dataBinding.RequestBody');
|
|
2656
|
+
if (!message) {
|
|
2657
|
+
console.warn('No message to send');
|
|
2658
|
+
return;
|
|
2659
|
+
}
|
|
2660
|
+
const response = this._onBeforeSend(variable, message);
|
|
2661
|
+
if (response === false) {
|
|
2662
|
+
return;
|
|
2663
|
+
}
|
|
2664
|
+
message = i1.isDefined(response) ? response : message;
|
|
2665
|
+
message = i1.isObject(message) ? JSON.stringify(message) : message;
|
|
2666
|
+
try {
|
|
2667
|
+
socket.send(message, 0);
|
|
2668
|
+
}
|
|
2669
|
+
catch (error) {
|
|
2670
|
+
console.error('Error sending message:', error);
|
|
2671
|
+
this._onSocketError(variable, { data: error.message });
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
const managerMap = new Map(), typeToManagerMap = {
|
|
2677
|
+
'Variable': BaseVariableManager,
|
|
2678
|
+
'Action': BaseActionManager,
|
|
2679
|
+
'wm.NavigationAction': NavigationActionManager,
|
|
2680
|
+
'wm.NotificationAction': NotificationActionManager,
|
|
2681
|
+
'wm.LoginAction': LoginActionManager,
|
|
2682
|
+
'wm.LogoutAction': LogoutActionManager,
|
|
2683
|
+
'wm.WebSocketVariable': WebSocketVariableManager
|
|
2684
|
+
};
|
|
2685
|
+
class VariableManagerFactory {
|
|
2686
|
+
static get(type) {
|
|
2687
|
+
return managerMap.has(type) ?
|
|
2688
|
+
managerMap.get(type) :
|
|
2689
|
+
managerMap.set(type, new typeToManagerMap[type]()).get(type);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
|
|
2693
|
+
const getManager$4 = () => {
|
|
2694
|
+
return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.NAVIGATION);
|
|
2695
|
+
};
|
|
2696
|
+
class NavigationAction extends variables.BaseAction {
|
|
2697
|
+
constructor(variable) {
|
|
2698
|
+
super();
|
|
2699
|
+
Object.assign(this, variable);
|
|
2700
|
+
}
|
|
2701
|
+
invoke(options) {
|
|
2702
|
+
getManager$4().invoke(this, options);
|
|
2703
|
+
}
|
|
2704
|
+
// legacy method.
|
|
2705
|
+
navigate(options) {
|
|
2706
|
+
this.invoke(options);
|
|
2707
|
+
}
|
|
2708
|
+
init() {
|
|
2709
|
+
// static property bindings
|
|
2710
|
+
getManager$4().initBinding(this, 'dataBinding', 'dataBinding');
|
|
2711
|
+
// dynamic property bindings (e.g. page params)
|
|
2712
|
+
getManager$4().initBinding(this, 'dataSet', 'dataSet');
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
const getManager$3 = () => {
|
|
2717
|
+
return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.NOTIFICATION);
|
|
2718
|
+
};
|
|
2719
|
+
class NotificationAction extends variables.BaseAction {
|
|
2720
|
+
constructor(variable) {
|
|
2721
|
+
super();
|
|
2722
|
+
Object.assign(this, variable);
|
|
2723
|
+
}
|
|
2724
|
+
execute(operation, options) {
|
|
2725
|
+
const returnVal = super.execute(operation, options);
|
|
2726
|
+
if (i1.isDefined(returnVal)) {
|
|
2727
|
+
return returnVal;
|
|
2728
|
+
}
|
|
2729
|
+
return new Promise((resolve, reject) => {
|
|
2730
|
+
switch (operation) {
|
|
2731
|
+
case i1.DataSource.Operation.INVOKE:
|
|
2732
|
+
this.invoke(options, resolve, reject);
|
|
2733
|
+
break;
|
|
2734
|
+
case i1.DataSource.Operation.NOTIFY:
|
|
2735
|
+
this.notify(options, resolve, reject);
|
|
2736
|
+
break;
|
|
2737
|
+
default:
|
|
2738
|
+
reject(`${operation} operation is not supported on this data source`);
|
|
2739
|
+
break;
|
|
2740
|
+
}
|
|
2741
|
+
});
|
|
2742
|
+
}
|
|
2743
|
+
// Backward compatible method
|
|
2744
|
+
notify(options, success, error) {
|
|
2745
|
+
getManager$3().notify(this, options, success, error);
|
|
2746
|
+
}
|
|
2747
|
+
invoke(options, success, error) {
|
|
2748
|
+
this.notify(options, success, error);
|
|
2749
|
+
}
|
|
2750
|
+
getMessage() {
|
|
2751
|
+
return getManager$3().getMessage(this);
|
|
2752
|
+
}
|
|
2753
|
+
setMessage(text) {
|
|
2754
|
+
return getManager$3().setMessage(this, text);
|
|
2755
|
+
}
|
|
2756
|
+
clearMessage() {
|
|
2757
|
+
return getManager$3().setMessage(this, '');
|
|
2758
|
+
}
|
|
2759
|
+
getOkButtonText() {
|
|
2760
|
+
return getManager$3().getOkButtonText(this);
|
|
2761
|
+
}
|
|
2762
|
+
setOkButtonText(text) {
|
|
2763
|
+
return getManager$3().setOkButtonText(this, text);
|
|
2764
|
+
}
|
|
2765
|
+
getToasterDuration() {
|
|
2766
|
+
return getManager$3().getToasterDuration(this);
|
|
2767
|
+
}
|
|
2768
|
+
setToasterDuration(duration) {
|
|
2769
|
+
return getManager$3().setToasterDuration(this, duration);
|
|
2770
|
+
}
|
|
2771
|
+
getToasterClass() {
|
|
2772
|
+
return getManager$3().getToasterClass(this);
|
|
2773
|
+
}
|
|
2774
|
+
setToasterClass(classText) {
|
|
2775
|
+
return getManager$3().setToasterClass(this, classText);
|
|
2776
|
+
}
|
|
2777
|
+
getToasterPosition() {
|
|
2778
|
+
return getManager$3().getToasterPosition(this);
|
|
2779
|
+
}
|
|
2780
|
+
setToasterPosition(position) {
|
|
2781
|
+
return getManager$3().setToasterPosition(this, position);
|
|
2782
|
+
}
|
|
2783
|
+
getAlertType() {
|
|
2784
|
+
return getManager$3().getAlertType(this);
|
|
2785
|
+
}
|
|
2786
|
+
setAlertType(type) {
|
|
2787
|
+
return getManager$3().setAlertType(this, type);
|
|
2788
|
+
}
|
|
2789
|
+
getCancelButtonText() {
|
|
2790
|
+
return getManager$3().getCancelButtonText(this);
|
|
2791
|
+
}
|
|
2792
|
+
setCancelButtonText(text) {
|
|
2793
|
+
return getManager$3().setCancelButtonText(this, text);
|
|
2794
|
+
}
|
|
2795
|
+
init() {
|
|
2796
|
+
// static property bindings
|
|
2797
|
+
getManager$3().initBinding(this, 'dataBinding', 'dataBinding');
|
|
2798
|
+
// dynamic property bindings
|
|
2799
|
+
getManager$3().initBinding(this, 'dataSet', 'dataSet');
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
const getManager$2 = () => {
|
|
2804
|
+
return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.LOGIN);
|
|
2805
|
+
};
|
|
2806
|
+
class LoginAction extends variables.BaseAction {
|
|
2807
|
+
constructor(variable) {
|
|
2808
|
+
super();
|
|
2809
|
+
Object.assign(this, variable);
|
|
2810
|
+
}
|
|
2811
|
+
login(options, success, error) {
|
|
2812
|
+
return getManager$2().login(this, options, success, error);
|
|
2813
|
+
}
|
|
2814
|
+
invoke(options, success, error) {
|
|
2815
|
+
return this.login(options, success, error);
|
|
2816
|
+
}
|
|
2817
|
+
cancel() {
|
|
2818
|
+
// TODO[VIBHU]: implement http abort logic
|
|
2819
|
+
}
|
|
2820
|
+
init() {
|
|
2821
|
+
getManager$2().initBinding(this, 'dataBinding', 'dataBinding');
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
const getManager$1 = () => {
|
|
2826
|
+
return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.LOGOUT);
|
|
2827
|
+
};
|
|
2828
|
+
class LogoutAction extends variables.BaseAction {
|
|
2829
|
+
constructor(variable) {
|
|
2830
|
+
super();
|
|
2831
|
+
Object.assign(this, variable);
|
|
2832
|
+
}
|
|
2833
|
+
logout(options, success, error) {
|
|
2834
|
+
getManager$1().logout(this, options, success, error);
|
|
2835
|
+
}
|
|
2836
|
+
invoke(options, success, error) {
|
|
2837
|
+
this.logout(options, success, error);
|
|
2838
|
+
}
|
|
2839
|
+
cancel() {
|
|
2840
|
+
// TODO[VIBHU]: implement http abort logic
|
|
2841
|
+
}
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
const getManager = () => {
|
|
2845
|
+
return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.WEBSOCKET);
|
|
2846
|
+
};
|
|
2847
|
+
class WebSocketVariable extends variables.ApiAwareVariable {
|
|
2848
|
+
constructor(variable) {
|
|
2849
|
+
super();
|
|
2850
|
+
Object.assign(this, variable);
|
|
2851
|
+
}
|
|
2852
|
+
open(success, error) {
|
|
2853
|
+
return getManager().open(this, success, error);
|
|
2854
|
+
}
|
|
2855
|
+
close() {
|
|
2856
|
+
return getManager().close(this);
|
|
2857
|
+
}
|
|
2858
|
+
update() {
|
|
2859
|
+
return getManager().update(this);
|
|
2860
|
+
}
|
|
2861
|
+
send(message) {
|
|
2862
|
+
return getManager().send(this, message);
|
|
2863
|
+
}
|
|
2864
|
+
cancel() {
|
|
2865
|
+
return this.close();
|
|
2866
|
+
}
|
|
2867
|
+
invoke(options, success, error) {
|
|
2868
|
+
this.open(success, error);
|
|
2869
|
+
}
|
|
2870
|
+
init() {
|
|
2871
|
+
getManager().initBinding(this);
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
class VariableFactory {
|
|
2876
|
+
static create(variable, context) {
|
|
2877
|
+
let variableInstance;
|
|
2878
|
+
switch (variable.category) {
|
|
2879
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.MODEL:
|
|
2880
|
+
variableInstance = new variables.ModelVariable(variable);
|
|
2881
|
+
break;
|
|
2882
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.SERVICE:
|
|
2883
|
+
variableInstance = new variables.ServiceVariable(variable);
|
|
2884
|
+
break;
|
|
2885
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.LIVE:
|
|
2886
|
+
variableInstance = new variables.LiveVariable(variable);
|
|
2887
|
+
break;
|
|
2888
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.CRUD:
|
|
2889
|
+
variableInstance = new variables.CrudVariable(variable);
|
|
2890
|
+
break;
|
|
2891
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.NAVIGATION:
|
|
2892
|
+
variableInstance = new NavigationAction(variable);
|
|
2893
|
+
break;
|
|
2894
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.NOTIFICATION:
|
|
2895
|
+
variableInstance = new NotificationAction(variable);
|
|
2896
|
+
break;
|
|
2897
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.LOGIN:
|
|
2898
|
+
variableInstance = new LoginAction(variable);
|
|
2899
|
+
break;
|
|
2900
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.LOGOUT:
|
|
2901
|
+
variableInstance = new LogoutAction(variable);
|
|
2902
|
+
break;
|
|
2903
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.TIMER:
|
|
2904
|
+
variableInstance = new variables.TimerAction(variable);
|
|
2905
|
+
break;
|
|
2906
|
+
case variables.VARIABLE_CONSTANTS.CATEGORY.WEBSOCKET:
|
|
2907
|
+
variableInstance = new WebSocketVariable(variable);
|
|
2908
|
+
}
|
|
2909
|
+
variableInstance._context = context;
|
|
2910
|
+
variableInstance.__cloneable__ = false;
|
|
2911
|
+
return variableInstance;
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
class MetadataService {
|
|
2916
|
+
constructor($http) {
|
|
2917
|
+
this.$http = $http;
|
|
2918
|
+
this.CONTEXT_APP = 'app';
|
|
2919
|
+
}
|
|
2920
|
+
isLoaded() {
|
|
2921
|
+
return this.metadataMap ? this.metadataMap.has(this.CONTEXT_APP) : false;
|
|
2922
|
+
}
|
|
2923
|
+
load(prefabName) {
|
|
2924
|
+
let url;
|
|
2925
|
+
let serviceDefFileName = prefabName ? prefabName + '-prefab-servicedefs.json' : 'app-servicedefs.json';
|
|
2926
|
+
const deployedUrl = i1._WM_APP_PROJECT.cdnUrl + 'servicedefs/' + serviceDefFileName;
|
|
2927
|
+
const previewUrl = './services/' + (prefabName ? `prefabs/${prefabName}/` : '') + 'servicedefs';
|
|
2928
|
+
url = i1._WM_APP_PROJECT.isPreview || _WM_APP_PROPERTIES?.serviceDefSources === 'DYNAMIC' ? previewUrl : deployedUrl;
|
|
2929
|
+
return new Promise((resolve, reject) => {
|
|
2930
|
+
this.$http.send({ 'url': url, 'method': 'GET' }).then((response) => {
|
|
2931
|
+
this.metadataMap = this.metadataMap || new Map();
|
|
2932
|
+
this.providerMap = this.providerMap || new Map();
|
|
2933
|
+
response.body = response.body || {};
|
|
2934
|
+
this.metadataMap.set(prefabName || this.CONTEXT_APP, response.body.serviceDefs);
|
|
2935
|
+
if (response.body.securityDefinitions) {
|
|
2936
|
+
this.providerMap.set(prefabName || this.CONTEXT_APP, response.body.securityDefinitions.oauthProvider);
|
|
2937
|
+
}
|
|
2938
|
+
resolve(response.body.serviceDefs);
|
|
2939
|
+
}, reject);
|
|
2940
|
+
});
|
|
2941
|
+
}
|
|
2942
|
+
getByOperationId(operationId, context) {
|
|
2943
|
+
context = context || this.CONTEXT_APP;
|
|
2944
|
+
const map = this.metadataMap.get(context);
|
|
2945
|
+
return map && map[operationId];
|
|
2946
|
+
}
|
|
2947
|
+
// function to get Provider details from providerMap for the passed providerId
|
|
2948
|
+
getByProviderId(providerId, context) {
|
|
2949
|
+
context = context || this.CONTEXT_APP;
|
|
2950
|
+
const map = this.providerMap.get(context);
|
|
2951
|
+
return map && map[providerId];
|
|
2952
|
+
}
|
|
2953
|
+
getByCrudId(crudId, context) {
|
|
2954
|
+
context = context || this.CONTEXT_APP;
|
|
2955
|
+
const map = this.metadataMap.get(context);
|
|
2956
|
+
let ops = [];
|
|
2957
|
+
for (let k in map) {
|
|
2958
|
+
if (map[k] && map[k].crudOperationId === crudId) {
|
|
2959
|
+
ops.push(map[k]);
|
|
2960
|
+
}
|
|
2961
|
+
}
|
|
2962
|
+
return ops;
|
|
2963
|
+
}
|
|
2964
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: MetadataService, deps: [{ token: i1__namespace.AbstractHttpService }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); }
|
|
2965
|
+
static { this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: MetadataService }); }
|
|
2966
|
+
}
|
|
2967
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: MetadataService, decorators: [{
|
|
2968
|
+
type: i0.Injectable
|
|
2969
|
+
}], ctorParameters: () => [{ type: i1__namespace.AbstractHttpService }] });
|
|
2970
|
+
|
|
2971
|
+
class Formatter {
|
|
2972
|
+
format(value, format) {
|
|
2973
|
+
return exports.appManager.getPipe('date').transform(value, format);
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
class VariablesService {
|
|
2977
|
+
constructor(httpService, metadataService, navigationService, routerService, toasterService, oAuthService, securityService, dialogService) {
|
|
2978
|
+
this.httpService = httpService;
|
|
2979
|
+
this.metadataService = metadataService;
|
|
2980
|
+
this.navigationService = navigationService;
|
|
2981
|
+
this.routerService = routerService;
|
|
2982
|
+
this.toasterService = toasterService;
|
|
2983
|
+
this.oAuthService = oAuthService;
|
|
2984
|
+
this.securityService = securityService;
|
|
2985
|
+
this.dialogService = dialogService;
|
|
2986
|
+
// set external dependencies, to be used across variable classes, managers and utils
|
|
2987
|
+
setDependency('http', this.httpService);
|
|
2988
|
+
setDependency('metadata', this.metadataService);
|
|
2989
|
+
setDependency('navigationService', this.navigationService);
|
|
2990
|
+
setDependency('router', this.routerService);
|
|
2991
|
+
setDependency('toaster', this.toasterService);
|
|
2992
|
+
setDependency('oAuth', this.oAuthService);
|
|
2993
|
+
setDependency('security', this.securityService);
|
|
2994
|
+
setDependency('dialog', this.dialogService);
|
|
2995
|
+
variables.wmSetDependency('oAuth', this.oAuthService);
|
|
2996
|
+
variables.wmSetDependency('security', this.securityService);
|
|
2997
|
+
variables.wmSetDependency('metadata', this.metadataService);
|
|
2998
|
+
variables.wmSetDependency('http', this.httpService);
|
|
2999
|
+
}
|
|
3000
|
+
/**
|
|
3001
|
+
* loop through a collection of variables/actions
|
|
3002
|
+
* trigger cancel on each (of exists)
|
|
3003
|
+
* @param collection
|
|
3004
|
+
*/
|
|
3005
|
+
bulkCancel(collection) {
|
|
3006
|
+
Object.keys(collection).forEach(name => {
|
|
3007
|
+
const variable = collection[name];
|
|
3008
|
+
if (lodashEs.isFunction(variable.cancel)) {
|
|
3009
|
+
variable.cancel();
|
|
3010
|
+
}
|
|
3011
|
+
});
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* loops over the variable/actions collection and trigger invoke on it if startUpdate on it is true
|
|
3015
|
+
* @param collection
|
|
3016
|
+
*/
|
|
3017
|
+
triggerStartUpdate(collection) {
|
|
3018
|
+
return Promise.all(Object.keys(collection)
|
|
3019
|
+
.map(name => collection[name])
|
|
3020
|
+
.filter(variable => variable?.startUpdate && variable.invoke)
|
|
3021
|
+
.map(variable => variable.invoke()));
|
|
3022
|
+
}
|
|
3023
|
+
processBindExp(d, scope, variable) {
|
|
3024
|
+
const root = variables.getTarget(variable), targetNodeKey = variables.getTargetNodeKey(d.target);
|
|
3025
|
+
let v = lodashEs.isArray(d.value) ? d.value[0] : d.value;
|
|
3026
|
+
if (v) {
|
|
3027
|
+
if (v.startsWith && v.startsWith('bind:')) {
|
|
3028
|
+
const watchExpression = i1.$watch(v.replace('bind:', ''), scope, {}, variable.invokeOnParamChange.bind(variable, d), undefined, undefined, d, () => variable.isMuted);
|
|
3029
|
+
v = scope.registerDestroyListener ? scope.registerDestroyListener(watchExpression) : watchExpression;
|
|
3030
|
+
}
|
|
3031
|
+
else if (!lodashEs.isUndefined(d.value)) {
|
|
3032
|
+
variables.setValueToNode(d.target, d, root, variable, d.value, true);
|
|
3033
|
+
if (root !== targetNodeKey) {
|
|
3034
|
+
if (!variables.internalBoundNodeMap.has(variable)) {
|
|
3035
|
+
variables.internalBoundNodeMap.set(variable, {});
|
|
3036
|
+
}
|
|
3037
|
+
lodashEs.set(variables.internalBoundNodeMap.get(variable), [variable.name, root, d.target], d.value);
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
return {
|
|
3042
|
+
name: d.target,
|
|
3043
|
+
value: v
|
|
3044
|
+
};
|
|
3045
|
+
}
|
|
3046
|
+
processBinding(variable, context, bindSource, bindTarget) {
|
|
3047
|
+
bindSource = bindSource || 'dataBinding';
|
|
3048
|
+
const bindMap = variable[bindSource];
|
|
3049
|
+
variable[bindSource] = {};
|
|
3050
|
+
variable['_bind' + bindSource] = bindMap;
|
|
3051
|
+
if (!bindMap || !lodashEs.isArray(bindMap)) {
|
|
3052
|
+
return;
|
|
3053
|
+
}
|
|
3054
|
+
bindMap.forEach((node) => {
|
|
3055
|
+
/* for static variable change the binding with target 'dataBinding' to 'dataSet', as the results have to reflect directly in the dataSet */
|
|
3056
|
+
if (variable.category === 'wm.Variable' && node.target === 'dataBinding') {
|
|
3057
|
+
node.target = 'dataSet';
|
|
3058
|
+
}
|
|
3059
|
+
this.processBindExp(node, context, variable);
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
isVariableSeperated(variablesJson, variableName) {
|
|
3063
|
+
return variablesJson[variableName].category === 'wm.Variable' || variablesJson[variableName].category === 'wm.ServiceVariable' ||
|
|
3064
|
+
variablesJson[variableName].category === 'wm.LiveVariable' || variablesJson[variableName].category === 'wm.CrudVariable';
|
|
3065
|
+
}
|
|
3066
|
+
getBindSourceTarget(variable) {
|
|
3067
|
+
if (variable.category === 'wm.LiveVariable') {
|
|
3068
|
+
return variable.operation === 'read' ? 'filterFields' : 'inputFields';
|
|
3069
|
+
}
|
|
3070
|
+
else if (variable.category === 'wm.ModelVariable') {
|
|
3071
|
+
return 'dataSet';
|
|
3072
|
+
}
|
|
3073
|
+
else {
|
|
3074
|
+
return 'dataBinding';
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
/**
|
|
3078
|
+
* Takes the raw variables and actions json as input
|
|
3079
|
+
* Initialize the variable and action instances through the factory
|
|
3080
|
+
* collect the variables and actions in separate maps and return the collection
|
|
3081
|
+
* @param {string} page
|
|
3082
|
+
* @param variablesJson
|
|
3083
|
+
* @param scope
|
|
3084
|
+
* @returns {Variables , Actions}
|
|
3085
|
+
*/
|
|
3086
|
+
register(page, variablesJson, scope) {
|
|
3087
|
+
const variableInstances = {
|
|
3088
|
+
Variables: {},
|
|
3089
|
+
Actions: {},
|
|
3090
|
+
callback: this.triggerStartUpdate
|
|
3091
|
+
};
|
|
3092
|
+
let varInstance;
|
|
3093
|
+
for (const variableName in variablesJson) {
|
|
3094
|
+
varInstance = VariableFactory.create(variablesJson[variableName], scope);
|
|
3095
|
+
varInstance.init();
|
|
3096
|
+
if (this.isVariableSeperated(variablesJson, variableName)) {
|
|
3097
|
+
this.processBinding(varInstance, scope, 'dataBinding', this.getBindSourceTarget(varInstance));
|
|
3098
|
+
varInstance.httpService = this.httpService;
|
|
3099
|
+
varInstance.dateFormatter = new Formatter();
|
|
3100
|
+
// MEMORY LEAK FIX: Store subscription unsubscribe function (cleanup handled by registerDestroyListener)
|
|
3101
|
+
const afterInvokeUnsubscribe = varInstance.subscribe('afterInvoke', () => i1.$invokeWatchers(true));
|
|
3102
|
+
// Store on variable for potential manual cleanup if needed
|
|
3103
|
+
if (!varInstance._eventSubscriptions) {
|
|
3104
|
+
varInstance._eventSubscriptions = [];
|
|
3105
|
+
}
|
|
3106
|
+
varInstance._eventSubscriptions.push(afterInvokeUnsubscribe);
|
|
3107
|
+
if (varInstance.category === 'wm.LiveVariable' && varInstance.operation === 'read') {
|
|
3108
|
+
i1.processFilterExpBindNode(varInstance._context, varInstance.filterExpressions, varInstance);
|
|
3109
|
+
}
|
|
3110
|
+
if (varInstance.category === 'wm.CrudVariable' || varInstance.category === 'wm.ServiceVariable') {
|
|
3111
|
+
varInstance.simulateFileDownload = simulateFileDownload;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
if (this.isVariableSeperated(variablesJson, variableName) || variablesJson[variableName].category === 'wm.TimerAction') {
|
|
3115
|
+
for (const e in VARIABLE_CONSTANTS.EVENT) {
|
|
3116
|
+
if (varInstance[VARIABLE_CONSTANTS.EVENT[e]]) {
|
|
3117
|
+
varInstance[VARIABLE_CONSTANTS.EVENT[e]] = i1.$parseEvent(varInstance[VARIABLE_CONSTANTS.EVENT[e]]);
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3121
|
+
// if action type, put it in Actions namespace
|
|
3122
|
+
if (varInstance instanceof variables.BaseAction) {
|
|
3123
|
+
variableInstances.Actions[variableName] = varInstance;
|
|
3124
|
+
}
|
|
3125
|
+
else {
|
|
3126
|
+
variableInstances.Variables[variableName] = varInstance;
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
// if the context has onDestroy listener, subscribe the event and trigger cancel on all varibales
|
|
3130
|
+
if (scope.registerDestroyListener) {
|
|
3131
|
+
scope.registerDestroyListener(() => {
|
|
3132
|
+
this.bulkCancel(variableInstances.Variables);
|
|
3133
|
+
this.bulkCancel(variableInstances.Actions);
|
|
3134
|
+
});
|
|
3135
|
+
}
|
|
3136
|
+
return variableInstances;
|
|
3137
|
+
}
|
|
3138
|
+
destroy() {
|
|
3139
|
+
}
|
|
3140
|
+
registerDependency(name, ref) {
|
|
3141
|
+
setDependency(name, ref);
|
|
3142
|
+
variables.wmSetDependency(name, ref);
|
|
3143
|
+
}
|
|
3144
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: VariablesService, deps: [{ token: i1__namespace.AbstractHttpService }, { token: MetadataService }, { token: i1__namespace.AbstractNavigationService }, { token: i3__namespace.Router }, { token: i1__namespace.AbstractToasterService }, { token: i4__namespace.OAuthService }, { token: i5__namespace.SecurityService }, { token: i1__namespace.AbstractDialogService }], target: i0__namespace.ɵɵFactoryTarget.Injectable }); }
|
|
3145
|
+
static { this.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: VariablesService }); }
|
|
3146
|
+
}
|
|
3147
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0__namespace, type: VariablesService, decorators: [{
|
|
3148
|
+
type: i0.Injectable
|
|
3149
|
+
}], ctorParameters: () => [{ type: i1__namespace.AbstractHttpService }, { type: MetadataService }, { type: i1__namespace.AbstractNavigationService }, { type: i3__namespace.Router }, { type: i1__namespace.AbstractToasterService }, { type: i4__namespace.OAuthService }, { type: i5__namespace.SecurityService }, { type: i1__namespace.AbstractDialogService }] });
|
|
3150
|
+
|
|
3151
|
+
exports.$rootScope = $rootScope;
|
|
3152
|
+
exports.CONSTANTS = CONSTANTS;
|
|
3153
|
+
exports.DB_CONSTANTS = DB_CONSTANTS;
|
|
3154
|
+
exports.Formatter = Formatter;
|
|
3155
|
+
exports.MODE_CONSTANTS = MODE_CONSTANTS;
|
|
3156
|
+
exports.MetadataService = MetadataService;
|
|
3157
|
+
exports.SWAGGER_CONSTANTS = SWAGGER_CONSTANTS;
|
|
3158
|
+
exports.VARIABLE_CONSTANTS = VARIABLE_CONSTANTS;
|
|
3159
|
+
exports.VARIABLE_URLS = VARIABLE_URLS;
|
|
3160
|
+
exports.VariableManagerFactory = VariableManagerFactory;
|
|
3161
|
+
exports.VariablesService = VariablesService;
|
|
3162
|
+
exports.WS_CONSTANTS = WS_CONSTANTS;
|
|
3163
|
+
exports.debounceVariableCall = debounceVariableCall;
|
|
3164
|
+
exports.formatDate = formatDate;
|
|
3165
|
+
exports.formatExportExpression = formatExportExpression;
|
|
3166
|
+
exports.getEvaluatedOrderBy = getEvaluatedOrderBy;
|
|
3167
|
+
exports.initiateCallback = initiateCallback;
|
|
3168
|
+
exports.isFileUploadSupported = isFileUploadSupported;
|
|
3169
|
+
exports.processBinding = processBinding;
|
|
3170
|
+
exports.setDependency = setDependency;
|
|
3171
|
+
exports.setInput = setInput;
|
|
3172
|
+
exports.simulateFileDownload = simulateFileDownload;
|
|
3173
|
+
|
|
3174
|
+
}));
|