@wavemaker/app-ng-runtime 11.10.5-rc.6100 → 11.11.0-next.27920
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/bundles/index.umd.js +94 -68
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +8 -8
- package/build-task/esm2022/containers/repeat-template.build.mjs +5 -5
- package/build-task/esm2022/containers/wizard/wizard-step/wizard-step.build.mjs +2 -2
- package/build-task/esm2022/containers/wizard/wizard.build.mjs +33 -4
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +10 -10
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +15 -11
- package/build-task/esm2022/page/page.build.mjs +2 -8
- package/build-task/esm2022/public_api.mjs +1 -1
- package/build-task/fesm2022/index.mjs +95 -69
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +8 -36
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +1 -1
- package/components/advanced/carousel/carousel.directive.d.ts +1 -1
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +3 -2
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +3 -2
- package/components/advanced/carousel/esm2022/public_api.mjs +1 -2
- package/components/advanced/carousel/fesm2022/index.mjs +8 -36
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/public_api.d.ts +0 -1
- package/components/advanced/custom/bundles/index.umd.js +8 -33
- package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +1 -1
- package/components/advanced/custom/custom-widget.directive.d.ts +1 -1
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +3 -2
- package/components/advanced/custom/esm2022/custom-widget.directive.mjs +3 -2
- package/components/advanced/custom/esm2022/public_api.mjs +1 -2
- package/components/advanced/custom/fesm2022/index.mjs +7 -32
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/public_api.d.ts +0 -1
- package/components/advanced/login/bundles/index.umd.js +10 -34
- package/components/advanced/login/esm2022/login.component.mjs +7 -6
- package/components/advanced/login/esm2022/public_api.mjs +1 -2
- package/components/advanced/login/fesm2022/index.mjs +8 -32
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/login.component.d.ts +1 -1
- package/components/advanced/login/public_api.d.ts +0 -1
- package/components/advanced/marquee/bundles/index.umd.js +6 -29
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +3 -2
- package/components/advanced/marquee/esm2022/public_api.mjs +1 -2
- package/components/advanced/marquee/fesm2022/index.mjs +5 -28
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/marquee.directive.d.ts +1 -1
- package/components/advanced/marquee/public_api.d.ts +0 -1
- package/components/base/bundles/index.umd.js +76 -274
- package/components/base/components.module.d.ts +13 -15
- package/components/base/directives/show-in-device.directive.d.ts +1 -1
- package/components/base/esm2022/components.module.mjs +7 -13
- package/components/base/esm2022/directives/show-in-device.directive.mjs +3 -2
- package/components/base/esm2022/pipes/custom-pipes.mjs +32 -16
- package/components/base/esm2022/pipes/image.pipe.mjs +3 -2
- package/components/base/esm2022/pipes/sanitize.pipe.mjs +3 -2
- package/components/base/esm2022/pipes/trust-as.pipe.mjs +3 -2
- package/components/base/esm2022/public_api.mjs +1 -2
- package/components/base/esm2022/utils/form-utils.mjs +2 -1
- package/components/base/esm2022/utils/live-utils.mjs +3 -7
- package/components/base/esm2022/widgets/common/base/base.component.mjs +3 -5
- package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +3 -3
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/message/message.component.mjs +5 -5
- package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +5 -3
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +3 -2
- package/components/base/fesm2022/index.mjs +76 -272
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/pipes/custom-pipes.d.ts +16 -16
- package/components/base/pipes/image.pipe.d.ts +1 -1
- package/components/base/pipes/sanitize.pipe.d.ts +1 -1
- package/components/base/pipes/trust-as.pipe.d.ts +1 -1
- package/components/base/public_api.d.ts +0 -1
- package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +1 -1
- package/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
- package/components/base/widgets/common/base/text-content.directive.d.ts +1 -1
- package/components/base/widgets/common/container/container.directive.d.ts +1 -1
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +1 -1
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +1 -1
- package/components/base/widgets/common/message/message.component.d.ts +1 -1
- package/components/base/widgets/common/partial/partial.directive.d.ts +1 -1
- package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +2 -2
- package/components/base/widgets/common/redraw/redrawable.directive.d.ts +1 -1
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +1 -1
- package/components/basic/default/anchor/anchor.component.d.ts +1 -1
- package/components/basic/default/audio/audio.component.d.ts +1 -1
- package/components/basic/default/bundles/index.umd.js +100 -148
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +23 -21
- package/components/basic/default/esm2022/audio/audio.component.mjs +7 -6
- package/components/basic/default/esm2022/html/html.directive.mjs +3 -2
- package/components/basic/default/esm2022/icon/icon.component.mjs +17 -16
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +14 -13
- package/components/basic/default/esm2022/label/label.directive.mjs +3 -2
- package/components/basic/default/esm2022/picture/picture.directive.mjs +3 -2
- package/components/basic/default/esm2022/picture/picture.props.mjs +1 -5
- package/components/basic/default/esm2022/public_api.mjs +1 -2
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +26 -24
- package/components/basic/default/esm2022/video/video.component.mjs +19 -18
- package/components/basic/default/fesm2022/index.mjs +101 -148
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/html/html.directive.d.ts +1 -1
- package/components/basic/default/icon/icon.component.d.ts +1 -1
- package/components/basic/default/iframe/iframe.component.d.ts +1 -1
- package/components/basic/default/label/label.directive.d.ts +1 -1
- package/components/basic/default/picture/picture.directive.d.ts +1 -1
- package/components/basic/default/public_api.d.ts +0 -1
- package/components/basic/default/spinner/spinner.component.d.ts +1 -1
- package/components/basic/default/video/video.component.d.ts +1 -1
- package/components/basic/progress/bundles/index.umd.js +20 -51
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +12 -11
- package/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
- package/components/basic/progress/esm2022/public_api.mjs +1 -2
- package/components/basic/progress/fesm2022/index.mjs +19 -49
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -1
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +1 -1
- package/components/basic/progress/public_api.d.ts +0 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +15 -40
- package/components/basic/rich-text-editor/esm2022/public_api.mjs +1 -2
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +13 -12
- package/components/basic/rich-text-editor/fesm2022/index.mjs +13 -37
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/public_api.d.ts +0 -1
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +1 -1
- package/components/basic/search/bundles/index.umd.js +170 -207
- package/components/basic/search/esm2022/public_api.mjs +1 -2
- package/components/basic/search/esm2022/scrollable.directive.mjs +3 -2
- package/components/basic/search/esm2022/search.component.mjs +76 -72
- package/components/basic/search/fesm2022/index.mjs +107 -143
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/public_api.d.ts +0 -1
- package/components/basic/search/scrollable.directive.d.ts +1 -1
- package/components/basic/search/search.component.d.ts +1 -1
- package/components/basic/tree/bundles/index.umd.js +9 -33
- package/components/basic/tree/esm2022/public_api.mjs +1 -2
- package/components/basic/tree/esm2022/tree.component.mjs +7 -6
- package/components/basic/tree/fesm2022/index.mjs +8 -32
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/public_api.d.ts +0 -1
- package/components/basic/tree/tree.component.d.ts +1 -1
- package/components/chart/bundles/index.umd.js +25 -53
- package/components/chart/chart.component.d.ts +1 -1
- package/components/chart/esm2022/chart.component.mjs +26 -24
- package/components/chart/esm2022/chart.utils.mjs +2 -1
- package/components/chart/esm2022/public_api.mjs +1 -2
- package/components/chart/fesm2022/index.mjs +26 -52
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/public_api.d.ts +0 -1
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -1
- package/components/containers/accordion/accordion.directive.d.ts +1 -1
- package/components/containers/accordion/bundles/index.umd.js +208 -237
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +10 -11
- package/components/containers/accordion/esm2022/accordion.directive.mjs +5 -4
- package/components/containers/accordion/esm2022/public_api.mjs +1 -2
- package/components/containers/accordion/fesm2022/index.mjs +189 -217
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/public_api.d.ts +0 -1
- package/components/containers/layout-grid/bundles/index.umd.js +13 -43
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +7 -9
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +3 -2
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +3 -2
- package/components/containers/layout-grid/esm2022/public_api.mjs +1 -2
- package/components/containers/layout-grid/fesm2022/index.mjs +13 -43
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +1 -1
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +1 -1
- package/components/containers/layout-grid/layout-grid.directive.d.ts +1 -1
- package/components/containers/layout-grid/public_api.d.ts +0 -1
- package/components/containers/linear-layout/bundles/index.umd.js +8 -33
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +3 -2
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +3 -2
- package/components/containers/linear-layout/esm2022/public_api.mjs +1 -2
- package/components/containers/linear-layout/fesm2022/index.mjs +7 -32
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +1 -1
- package/components/containers/linear-layout/linear-layout.directive.d.ts +1 -1
- package/components/containers/linear-layout/public_api.d.ts +0 -1
- package/components/containers/panel/bundles/index.umd.js +87 -118
- package/components/containers/panel/esm2022/panel.component.mjs +48 -46
- package/components/containers/panel/esm2022/public_api.mjs +1 -2
- package/components/containers/panel/fesm2022/index.mjs +49 -79
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/panel.component.d.ts +1 -1
- package/components/containers/panel/public_api.d.ts +0 -1
- package/components/containers/tabs/bundles/index.umd.js +84 -116
- package/components/containers/tabs/esm2022/public_api.mjs +1 -2
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +8 -10
- package/components/containers/tabs/esm2022/tabs.component.mjs +35 -33
- package/components/containers/tabs/esm2022/tabs.props.mjs +1 -5
- package/components/containers/tabs/fesm2022/index.mjs +45 -76
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/public_api.d.ts +0 -1
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +1 -1
- package/components/containers/tabs/tabs.component.d.ts +1 -1
- package/components/containers/tile/bundles/index.umd.js +6 -29
- package/components/containers/tile/esm2022/public_api.mjs +1 -2
- package/components/containers/tile/esm2022/tile.directive.mjs +3 -2
- package/components/containers/tile/fesm2022/index.mjs +5 -28
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/public_api.d.ts +0 -1
- package/components/containers/tile/tile.directive.d.ts +1 -1
- package/components/containers/wizard/bundles/index.umd.js +355 -186
- package/components/containers/wizard/esm2022/public_api.mjs +2 -3
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +3 -2
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +176 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.props.mjs +8 -5
- package/components/containers/wizard/esm2022/wizard.component.mjs +264 -102
- package/components/containers/wizard/esm2022/wizard.props.mjs +8 -4
- package/components/containers/wizard/fesm2022/index.mjs +323 -152
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/public_api.d.ts +1 -2
- package/components/containers/wizard/wizard-action/wizard-action.directive.d.ts +1 -1
- package/components/containers/wizard/wizard-step/{wizard-step.directive.d.ts → wizard-step.component.d.ts} +12 -6
- package/components/containers/wizard/wizard.component.d.ts +64 -18
- package/components/data/card/bundles/index.umd.js +92 -135
- package/components/data/card/card-actions/card-actions.directive.d.ts +1 -1
- package/components/data/card/card-content/card-content.component.d.ts +1 -1
- package/components/data/card/card-footer/card-footer.directive.d.ts +1 -1
- package/components/data/card/card.component.d.ts +1 -1
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +3 -2
- package/components/data/card/esm2022/card-content/card-content.component.mjs +7 -6
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +3 -2
- package/components/data/card/esm2022/card.component.mjs +39 -38
- package/components/data/card/esm2022/public_api.mjs +1 -2
- package/components/data/card/fesm2022/index.mjs +49 -92
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/public_api.d.ts +0 -1
- package/components/data/form/bundles/index.umd.js +115 -182
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +3 -2
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +3 -2
- package/components/data/form/esm2022/form-widget.directive.mjs +3 -2
- package/components/data/form/esm2022/form.component.mjs +101 -104
- package/components/data/form/esm2022/form.props.mjs +1 -11
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +3 -2
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +3 -2
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +3 -2
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +3 -6
- package/components/data/form/esm2022/public_api.mjs +1 -2
- package/components/data/form/fesm2022/index.mjs +117 -184
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form-action/form-action.directive.d.ts +1 -1
- package/components/data/form/form-field/form-field.directive.d.ts +1 -1
- package/components/data/form/form-widget.directive.d.ts +1 -1
- package/components/data/form/form.component.d.ts +1 -1
- package/components/data/form/live-actions/dependson.directive.d.ts +1 -1
- package/components/data/form/live-actions/live-actions.directive.d.ts +1 -1
- package/components/data/form/live-filter/live-filter.directive.d.ts +1 -1
- package/components/data/form/live-form/live-form.directive.d.ts +1 -1
- package/components/data/form/public_api.d.ts +0 -1
- package/components/data/list/bundles/index.umd.js +195 -504
- package/components/data/list/esm2022/list-item.directive.mjs +4 -3
- package/components/data/list/esm2022/list.component.mjs +187 -232
- package/components/data/list/esm2022/list.props.mjs +2 -3
- package/components/data/list/esm2022/public_api.mjs +1 -2
- package/components/data/list/fesm2022/index.mjs +193 -502
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list-item.directive.d.ts +1 -1
- package/components/data/list/list.component.d.ts +1 -1
- package/components/data/list/public_api.d.ts +0 -1
- package/components/data/live-table/bundles/index.umd.js +9 -33
- package/components/data/live-table/esm2022/live-table.component.mjs +7 -6
- package/components/data/live-table/esm2022/public_api.mjs +1 -2
- package/components/data/live-table/fesm2022/index.mjs +8 -32
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/live-table.component.d.ts +1 -1
- package/components/data/live-table/public_api.d.ts +0 -1
- package/components/data/pagination/bundles/index.umd.js +80 -110
- package/components/data/pagination/esm2022/pagination.component.mjs +80 -76
- package/components/data/pagination/esm2022/public_api.mjs +1 -2
- package/components/data/pagination/fesm2022/index.mjs +81 -110
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +1 -1
- package/components/data/pagination/public_api.d.ts +0 -1
- package/components/data/table/bundles/index.umd.js +66 -135
- package/components/data/table/esm2022/public_api.mjs +1 -2
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +3 -2
- package/components/data/table/esm2022/table-cud.directive.mjs +3 -2
- package/components/data/table/esm2022/table-filter.directive.mjs +4 -2
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +3 -2
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +3 -2
- package/components/data/table/esm2022/table.component.mjs +50 -49
- package/components/data/table/fesm2022/index.mjs +70 -140
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/public_api.d.ts +0 -1
- package/components/data/table/table-action/table-action.directive.d.ts +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -1
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +1 -1
- package/components/data/table/table-cud.directive.d.ts +1 -1
- package/components/data/table/table-filter.directive.d.ts +1 -1
- package/components/data/table/table-row/table-row.directive.d.ts +1 -1
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +1 -1
- package/components/data/table/table.component.d.ts +1 -1
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +1 -1
- package/components/dialogs/alert-dialog/bundles/index.umd.js +32 -64
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +10 -10
- package/components/dialogs/alert-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +11 -43
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/public_api.d.ts +0 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +10 -42
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -9
- package/components/dialogs/confirm-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +10 -42
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/public_api.d.ts +0 -1
- package/components/dialogs/default/bundles/index.umd.js +76 -136
- package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +1 -1
- package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +1 -1
- package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +1 -1
- package/components/dialogs/default/esm2022/base-dialog.mjs +3 -3
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +3 -2
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +3 -2
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +70 -97
- package/components/dialogs/default/esm2022/public_api.mjs +1 -2
- package/components/dialogs/default/fesm2022/index.mjs +78 -137
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/public_api.d.ts +0 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +16 -47
- package/components/dialogs/design-dialog/dialog.component.d.ts +1 -1
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +14 -13
- package/components/dialogs/design-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/design-dialog/fesm2022/index.mjs +14 -45
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/public_api.d.ts +0 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +20 -57
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +21 -21
- package/components/dialogs/iframe-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +21 -57
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +1 -1
- package/components/dialogs/iframe-dialog/public_api.d.ts +0 -1
- package/components/dialogs/login-dialog/bundles/index.umd.js +6 -38
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +3 -2
- package/components/dialogs/login-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/login-dialog/fesm2022/index.mjs +6 -41
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/login-dialog.directive.d.ts +1 -1
- package/components/dialogs/login-dialog/public_api.d.ts +0 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +17 -49
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +16 -15
- package/components/dialogs/partial-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +16 -47
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +1 -1
- package/components/dialogs/partial-dialog/public_api.d.ts +0 -1
- package/components/input/calendar/bundles/index.umd.js +19 -46
- package/components/input/calendar/calendar.component.d.ts +1 -1
- package/components/input/calendar/esm2022/calendar.component.mjs +24 -10
- package/components/input/calendar/esm2022/calendar.props.mjs +1 -1
- package/components/input/calendar/esm2022/public_api.mjs +1 -2
- package/components/input/calendar/fesm2022/index.mjs +26 -48
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/public_api.d.ts +0 -1
- package/components/input/chips/bundles/index.umd.js +86 -114
- package/components/input/chips/chips.component.d.ts +1 -1
- package/components/input/chips/esm2022/chips.component.mjs +28 -27
- package/components/input/chips/esm2022/public_api.mjs +1 -2
- package/components/input/chips/fesm2022/index.mjs +29 -56
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/public_api.d.ts +0 -1
- package/components/input/color-picker/bundles/index.umd.js +10 -40
- package/components/input/color-picker/color-picker.component.d.ts +1 -1
- package/components/input/color-picker/esm2022/color-picker.component.mjs +10 -6
- package/components/input/color-picker/esm2022/public_api.mjs +1 -2
- package/components/input/color-picker/fesm2022/index.mjs +11 -40
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/public_api.d.ts +0 -1
- package/components/input/currency/bundles/index.umd.js +11 -41
- package/components/input/currency/currency.component.d.ts +1 -1
- package/components/input/currency/esm2022/currency.component.mjs +8 -6
- package/components/input/currency/esm2022/public_api.mjs +1 -2
- package/components/input/currency/fesm2022/index.mjs +11 -41
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/public_api.d.ts +0 -1
- package/components/input/default/bundles/index.umd.js +2183 -2263
- package/components/input/default/button/button.component.d.ts +1 -1
- package/components/input/default/button-group/button-group.directive.d.ts +1 -1
- package/components/input/default/caption-position.directive.d.ts +1 -1
- package/components/input/default/checkbox/checkbox.component.d.ts +1 -1
- package/components/input/default/checkboxset/checkboxset.component.d.ts +1 -1
- package/components/input/default/composite/composite.directive.d.ts +1 -1
- package/components/input/default/esm2022/button/button.component.mjs +23 -21
- package/components/input/default/esm2022/button-group/button-group.directive.mjs +3 -2
- package/components/input/default/esm2022/caption-position.directive.mjs +3 -2
- package/components/input/default/esm2022/checkbox/checkbox.component.mjs +9 -6
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +73 -72
- package/components/input/default/esm2022/composite/composite.directive.mjs +3 -2
- package/components/input/default/esm2022/number/number.component.mjs +9 -6
- package/components/input/default/esm2022/public_api.mjs +1 -2
- package/components/input/default/esm2022/radioset/radioset.component.mjs +73 -72
- package/components/input/default/esm2022/select/select.component.mjs +29 -32
- package/components/input/default/esm2022/switch/switch.component.mjs +29 -27
- package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +9 -6
- package/components/input/default/esm2022/text/color/input-color.component.mjs +9 -6
- package/components/input/default/esm2022/text/email/input-email.component.mjs +9 -6
- package/components/input/default/esm2022/text/number/input-number.component.mjs +9 -6
- package/components/input/default/esm2022/text/text/input-text.component.mjs +10 -6
- package/components/input/default/esm2022/textarea/textarea.component.mjs +14 -11
- package/components/input/default/fesm2022/index.mjs +2198 -2277
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/default/number/number.component.d.ts +1 -1
- package/components/input/default/public_api.d.ts +0 -1
- package/components/input/default/radioset/radioset.component.d.ts +1 -1
- package/components/input/default/select/select.component.d.ts +1 -1
- package/components/input/default/switch/switch.component.d.ts +1 -1
- package/components/input/default/text/calendar/input-calendar.component.d.ts +1 -1
- package/components/input/default/text/color/input-color.component.d.ts +1 -1
- package/components/input/default/text/email/input-email.component.d.ts +1 -1
- package/components/input/default/text/number/input-number.component.d.ts +1 -1
- package/components/input/default/text/text/input-text.component.d.ts +1 -1
- package/components/input/default/textarea/textarea.component.d.ts +1 -1
- package/components/input/epoch/base-date-time.component.d.ts +0 -1
- package/components/input/epoch/bundles/index.umd.js +181 -229
- package/components/input/epoch/date/date.component.d.ts +1 -1
- package/components/input/epoch/date/imaskUtil.d.ts +2 -2
- package/components/input/epoch/date-time/date-time-picker.component.d.ts +6 -6
- package/components/input/epoch/date-time/date-time.component.d.ts +1 -1
- package/components/input/epoch/esm2022/base-date-time.component.mjs +5 -9
- package/components/input/epoch/esm2022/date/date.component.mjs +19 -18
- package/components/input/epoch/esm2022/date/imaskUtil.mjs +2 -1
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +75 -62
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +27 -24
- package/components/input/epoch/esm2022/picker/picker.component.mjs +33 -28
- package/components/input/epoch/esm2022/public_api.mjs +1 -2
- package/components/input/epoch/esm2022/time/time.component.mjs +24 -21
- package/components/input/epoch/fesm2022/index.mjs +158 -204
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/picker/picker.component.d.ts +2 -2
- package/components/input/epoch/public_api.d.ts +0 -1
- package/components/input/epoch/time/time.component.d.ts +1 -1
- package/components/input/file-upload/bundles/index.umd.js +135 -178
- package/components/input/file-upload/esm2022/file-upload.component.mjs +133 -150
- package/components/input/file-upload/esm2022/public_api.mjs +1 -2
- package/components/input/file-upload/fesm2022/index.mjs +133 -175
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/file-upload.component.d.ts +1 -2
- package/components/input/file-upload/public_api.d.ts +0 -1
- package/components/input/rating/bundles/index.umd.js +50 -77
- package/components/input/rating/esm2022/public_api.mjs +1 -2
- package/components/input/rating/esm2022/rating.component.mjs +23 -20
- package/components/input/rating/fesm2022/index.mjs +23 -49
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/public_api.d.ts +0 -1
- package/components/input/rating/rating.component.d.ts +1 -1
- package/components/input/slider/bundles/index.umd.js +35 -63
- package/components/input/slider/esm2022/public_api.mjs +1 -2
- package/components/input/slider/esm2022/slider.component.mjs +15 -13
- package/components/input/slider/fesm2022/index.mjs +15 -42
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/public_api.d.ts +0 -1
- package/components/input/slider/slider.component.d.ts +1 -1
- package/components/navigation/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +40 -67
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +23 -21
- package/components/navigation/breadcrumb/esm2022/public_api.mjs +1 -2
- package/components/navigation/breadcrumb/fesm2022/index.mjs +23 -50
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/public_api.d.ts +0 -1
- package/components/navigation/menu/bundles/index.umd.js +642 -696
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +1 -1
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +11 -9
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +24 -18
- package/components/navigation/menu/esm2022/menu.component.mjs +34 -31
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +3 -2
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +39 -29
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +6 -3
- package/components/navigation/menu/esm2022/public_api.mjs +1 -2
- package/components/navigation/menu/fesm2022/index.mjs +534 -587
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +1 -1
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +1 -1
- package/components/navigation/menu/menu.component.d.ts +1 -1
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +1 -1
- package/components/navigation/menu/nav/nav.component.d.ts +1 -1
- package/components/navigation/menu/nav/navigation-control.directive.d.ts +1 -1
- package/components/navigation/menu/public_api.d.ts +0 -1
- package/components/navigation/navbar/bundles/index.umd.js +20 -44
- package/components/navigation/navbar/esm2022/navbar.component.mjs +18 -16
- package/components/navigation/navbar/esm2022/public_api.mjs +1 -2
- package/components/navigation/navbar/fesm2022/index.mjs +18 -41
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/navbar.component.d.ts +1 -1
- package/components/navigation/navbar/public_api.d.ts +0 -1
- package/components/navigation/popover/bundles/index.umd.js +12 -43
- package/components/navigation/popover/esm2022/popover.component.mjs +11 -9
- package/components/navigation/popover/esm2022/public_api.mjs +1 -2
- package/components/navigation/popover/fesm2022/index.mjs +11 -41
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +1 -1
- package/components/navigation/popover/public_api.d.ts +0 -1
- package/components/page/default/bundles/index.umd.js +96 -138
- package/components/page/default/content/content.component.d.ts +1 -1
- package/components/page/default/esm2022/content/content.component.mjs +7 -6
- package/components/page/default/esm2022/layout.directive.mjs +3 -2
- package/components/page/default/esm2022/page-content/page-content.component.mjs +7 -6
- package/components/page/default/esm2022/page-content/page-content.props.mjs +2 -3
- package/components/page/default/esm2022/page.directive.mjs +3 -2
- package/components/page/default/esm2022/public_api.mjs +1 -2
- package/components/page/default/esm2022/router-outlet.directive.mjs +3 -2
- package/components/page/default/esm2022/spa-page.directive.mjs +3 -2
- package/components/page/default/fesm2022/index.mjs +96 -138
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/layout.directive.d.ts +1 -1
- package/components/page/default/page-content/page-content.component.d.ts +1 -1
- package/components/page/default/page.directive.d.ts +1 -1
- package/components/page/default/public_api.d.ts +0 -1
- package/components/page/default/router-outlet.directive.d.ts +1 -1
- package/components/page/default/spa-page.directive.d.ts +1 -1
- package/components/page/footer/bundles/index.umd.js +6 -29
- package/components/page/footer/esm2022/footer.directive.mjs +3 -2
- package/components/page/footer/esm2022/public_api.mjs +1 -2
- package/components/page/footer/fesm2022/index.mjs +5 -28
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/footer.directive.d.ts +1 -1
- package/components/page/footer/public_api.d.ts +0 -1
- package/components/page/header/bundles/index.umd.js +9 -33
- package/components/page/header/esm2022/header.component.mjs +7 -6
- package/components/page/header/esm2022/public_api.mjs +1 -2
- package/components/page/header/fesm2022/index.mjs +8 -32
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/header.component.d.ts +1 -1
- package/components/page/header/public_api.d.ts +0 -1
- package/components/page/left-panel/bundles/index.umd.js +6 -29
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +3 -2
- package/components/page/left-panel/esm2022/public_api.mjs +1 -2
- package/components/page/left-panel/fesm2022/index.mjs +5 -28
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/left-panel.directive.d.ts +1 -1
- package/components/page/left-panel/public_api.d.ts +0 -1
- package/components/page/right-panel/bundles/index.umd.js +6 -29
- package/components/page/right-panel/esm2022/public_api.mjs +1 -2
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +3 -2
- package/components/page/right-panel/fesm2022/index.mjs +5 -28
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/public_api.d.ts +0 -1
- package/components/page/right-panel/right-panel.directive.d.ts +1 -1
- package/components/page/top-nav/bundles/index.umd.js +6 -29
- package/components/page/top-nav/esm2022/public_api.mjs +1 -2
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +3 -2
- package/components/page/top-nav/fesm2022/index.mjs +5 -28
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/public_api.d.ts +0 -1
- package/components/page/top-nav/top-nav.directive.d.ts +1 -1
- package/components/prefab/bundles/index.umd.js +8 -33
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +3 -2
- package/components/prefab/esm2022/prefab.directive.mjs +3 -2
- package/components/prefab/esm2022/public_api.mjs +1 -2
- package/components/prefab/fesm2022/index.mjs +7 -32
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/prefab-container/prefab-container.directive.d.ts +1 -1
- package/components/prefab/prefab.directive.d.ts +1 -1
- package/components/prefab/public_api.d.ts +0 -1
- package/core/bundles/index.umd.js +30 -85
- package/core/esm2022/public_api.mjs +2 -3
- package/core/esm2022/utils/build-utils.mjs +9 -5
- package/core/esm2022/utils/utils.mjs +11 -40
- package/core/fesm2022/index.mjs +31 -81
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -2
- package/core/utils/utils.d.ts +1 -3
- package/http/bundles/index.umd.js +9 -34
- package/http/esm2022/http.service.mjs +6 -3
- package/http/esm2022/public_api.mjs +4 -2
- package/http/fesm2022/index.mjs +9 -34
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/public_api.d.ts +3 -1
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +7 -42
- package/oAuth/esm2022/oAuth.utils.mjs +6 -23
- package/oAuth/esm2022/public_api.mjs +1 -2
- package/oAuth/fesm2022/index.mjs +7 -40
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/public_api.d.ts +0 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +681 -596
- package/runtime/base/components/app-component/app.component.d.ts +1 -1
- package/runtime/base/components/app-spinner.component.d.ts +1 -1
- package/runtime/base/components/custom-toaster.component.d.ts +1 -1
- package/runtime/base/components/empty-component/empty-page.component.d.ts +1 -1
- package/runtime/base/components/prefab-preview.component.d.ts +1 -1
- package/runtime/base/directives/accessroles.directive.d.ts +1 -1
- package/runtime/base/directives/prefab.directive.d.ts +1 -1
- package/runtime/base/esm2022/components/app-component/app.component.mjs +42 -49
- package/runtime/base/esm2022/components/app-spinner.component.mjs +29 -21
- package/runtime/base/esm2022/components/base-page.component.mjs +3 -11
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +3 -11
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +20 -14
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +4 -3
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +8 -6
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +3 -2
- package/runtime/base/esm2022/directives/prefab.directive.mjs +3 -2
- package/runtime/base/esm2022/public_api.mjs +1 -1
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +4 -6
- package/runtime/base/esm2022/runtime-base.module.mjs +486 -337
- package/runtime/base/esm2022/services/app.manager.service.mjs +31 -48
- package/runtime/base/esm2022/services/i18n.service.mjs +37 -72
- package/runtime/base/fesm2022/index.mjs +689 -605
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/runtime-base.module.d.ts +115 -84
- package/runtime/base/services/i18n.service.d.ts +1 -1
- package/runtime/dynamic/app/components/page-wrapper.component.d.ts +1 -1
- package/runtime/dynamic/bundles/index.umd.js +113 -69
- package/runtime/dynamic/esm2022/app/app.module.mjs +151 -105
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +7 -4
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +4 -2
- package/runtime/dynamic/esm2022/main.mjs +2 -7
- package/runtime/dynamic/fesm2022/index.mjs +159 -114
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/security/bundles/index.umd.js +3 -34
- package/security/esm2022/public_api.mjs +1 -2
- package/security/esm2022/security.service.mjs +4 -15
- package/security/fesm2022/index.mjs +5 -32
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/public_api.d.ts +0 -1
- package/transpiler/bundles/index.umd.js +271 -168
- package/transpiler/esm2022/build.mjs +1 -6
- package/transpiler/esm2022/imports.mjs +268 -161
- package/transpiler/fesm2022/index.mjs +267 -165
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +14 -198
- package/variables/constants/variables.constants.d.ts +0 -2
- package/variables/esm2022/constants/variables.constants.mjs +1 -3
- package/variables/esm2022/factory/variable-manager.factory.mjs +1 -3
- package/variables/esm2022/factory/variable.factory.mjs +1 -5
- package/variables/esm2022/manager/action/logout-action.manager.mjs +5 -7
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +3 -3
- package/variables/esm2022/public_api.mjs +1 -5
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +6 -11
- package/variables/esm2022/util/variable/service-variable.utils.mjs +1 -4
- package/variables/esm2022/util/variable/variables.utils.mjs +4 -19
- package/variables/fesm2022/index.mjs +15 -198
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/public_api.d.ts +0 -4
- package/components/advanced/carousel/carousel.module.d.ts +0 -11
- package/components/advanced/carousel/esm2022/carousel.module.mjs +0 -36
- package/components/advanced/custom/custom-widget.module.d.ts +0 -10
- package/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
- package/components/advanced/login/esm2022/login.module.mjs +0 -28
- package/components/advanced/login/login.module.d.ts +0 -9
- package/components/advanced/marquee/esm2022/marquee.module.mjs +0 -28
- package/components/advanced/marquee/marquee.module.d.ts +0 -9
- package/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +0 -221
- package/components/base/widgets/common/smooth-scroll/smooth-scroll.directive.d.ts +0 -22
- package/components/basic/default/basic.module.d.ts +0 -17
- package/components/basic/default/esm2022/basic.module.mjs +0 -60
- package/components/basic/progress/esm2022/progress.module.mjs +0 -36
- package/components/basic/progress/progress.module.d.ts +0 -11
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.module.mjs +0 -28
- package/components/basic/rich-text-editor/rich-text-editor.module.d.ts +0 -9
- package/components/basic/search/esm2022/search.module.mjs +0 -45
- package/components/basic/search/search.module.d.ts +0 -12
- package/components/basic/tree/esm2022/tree.module.mjs +0 -28
- package/components/basic/tree/tree.module.d.ts +0 -9
- package/components/chart/chart.module.d.ts +0 -10
- package/components/chart/esm2022/chart.module.mjs +0 -32
- package/components/containers/accordion/accordion.module.d.ts +0 -10
- package/components/containers/accordion/esm2022/accordion.module.mjs +0 -32
- package/components/containers/layout-grid/esm2022/layout-grid.module.mjs +0 -36
- package/components/containers/layout-grid/layout-grid.module.d.ts +0 -11
- package/components/containers/linear-layout/esm2022/linear-layout.module.mjs +0 -32
- package/components/containers/linear-layout/linear-layout.module.d.ts +0 -10
- package/components/containers/panel/esm2022/panel.module.mjs +0 -36
- package/components/containers/panel/panel.module.d.ts +0 -11
- package/components/containers/tabs/esm2022/tabs.module.mjs +0 -32
- package/components/containers/tabs/tabs.module.d.ts +0 -10
- package/components/containers/tile/esm2022/tile.module.mjs +0 -28
- package/components/containers/tile/tile.module.d.ts +0 -9
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.directive.mjs +0 -140
- package/components/containers/wizard/esm2022/wizard.module.mjs +0 -40
- package/components/containers/wizard/wizard.module.d.ts +0 -12
- package/components/data/card/card.module.d.ts +0 -15
- package/components/data/card/esm2022/card.module.mjs +0 -52
- package/components/data/form/esm2022/form.module.mjs +0 -68
- package/components/data/form/form.module.d.ts +0 -19
- package/components/data/list/esm2022/list.module.mjs +0 -40
- package/components/data/list/list.module.d.ts +0 -11
- package/components/data/live-table/esm2022/live-table.module.mjs +0 -28
- package/components/data/live-table/live-table.module.d.ts +0 -9
- package/components/data/pagination/esm2022/pagination.module.mjs +0 -36
- package/components/data/pagination/pagination.module.d.ts +0 -11
- package/components/data/table/esm2022/table.module.mjs +0 -91
- package/components/data/table/table.module.d.ts +0 -24
- package/components/dialogs/alert-dialog/alert-dialog.module.d.ts +0 -11
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.module.mjs +0 -36
- package/components/dialogs/confirm-dialog/confirm-dialog.module.d.ts +0 -11
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.module.mjs +0 -36
- package/components/dialogs/default/dialog.module.d.ts +0 -12
- package/components/dialogs/default/esm2022/dialog.module.mjs +0 -40
- package/components/dialogs/design-dialog/design-dialog.module.d.ts +0 -11
- package/components/dialogs/design-dialog/esm2022/design-dialog.module.mjs +0 -36
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.module.mjs +0 -40
- package/components/dialogs/iframe-dialog/iframe-dialog.module.d.ts +0 -12
- package/components/dialogs/login-dialog/esm2022/login-dialog.module.mjs +0 -40
- package/components/dialogs/login-dialog/login-dialog.module.d.ts +0 -12
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.module.mjs +0 -36
- package/components/dialogs/partial-dialog/partial-dialog.module.d.ts +0 -11
- package/components/input/calendar/calendar.module.d.ts +0 -12
- package/components/input/calendar/esm2022/calendar.module.mjs +0 -40
- package/components/input/chips/chips.module.d.ts +0 -10
- package/components/input/chips/esm2022/chips.module.mjs +0 -32
- package/components/input/color-picker/color-picker.module.d.ts +0 -11
- package/components/input/color-picker/esm2022/color-picker.module.mjs +0 -36
- package/components/input/currency/currency.module.d.ts +0 -11
- package/components/input/currency/esm2022/currency.module.mjs +0 -36
- package/components/input/default/esm2022/input.module.mjs +0 -96
- package/components/input/default/input.module.d.ts +0 -26
- package/components/input/epoch/epoch.module.d.ts +0 -18
- package/components/input/epoch/esm2022/epoch.module.mjs +0 -70
- package/components/input/file-upload/esm2022/file-upload.module.mjs +0 -28
- package/components/input/file-upload/file-upload.module.d.ts +0 -9
- package/components/input/rating/esm2022/rating.module.mjs +0 -32
- package/components/input/rating/rating.module.d.ts +0 -10
- package/components/input/slider/esm2022/slider.module.mjs +0 -32
- package/components/input/slider/slider.module.d.ts +0 -10
- package/components/navigation/breadcrumb/breadcrumb.module.d.ts +0 -10
- package/components/navigation/breadcrumb/esm2022/breadcrumb.module.mjs +0 -32
- package/components/navigation/menu/esm2022/menu.module.mjs +0 -71
- package/components/navigation/menu/menu.module.d.ts +0 -17
- package/components/navigation/navbar/esm2022/navbar.module.mjs +0 -28
- package/components/navigation/navbar/navbar.module.d.ts +0 -9
- package/components/navigation/popover/esm2022/popover.module.mjs +0 -36
- package/components/navigation/popover/popover.module.d.ts +0 -11
- package/components/page/default/esm2022/page.module.mjs +0 -55
- package/components/page/default/page.module.d.ts +0 -14
- package/components/page/footer/esm2022/footer.module.mjs +0 -28
- package/components/page/footer/footer.module.d.ts +0 -9
- package/components/page/header/esm2022/header.module.mjs +0 -28
- package/components/page/header/header.module.d.ts +0 -9
- package/components/page/left-panel/esm2022/left-panel.module.mjs +0 -28
- package/components/page/left-panel/left-panel.module.d.ts +0 -9
- package/components/page/right-panel/esm2022/right-panel.module.mjs +0 -28
- package/components/page/right-panel/right-panel.module.d.ts +0 -9
- package/components/page/top-nav/esm2022/top-nav.module.mjs +0 -28
- package/components/page/top-nav/top-nav.module.d.ts +0 -9
- package/components/prefab/esm2022/prefab.module.mjs +0 -32
- package/components/prefab/prefab.module.d.ts +0 -10
- package/core/core.module.d.ts +0 -9
- package/core/esm2022/core.module.mjs +0 -27
- package/http/esm2022/http-service.module.mjs +0 -36
- package/http/http-service.module.d.ts +0 -14
- package/locales/fullcalendar/af.js +0 -27
- package/locales/fullcalendar/ar-dz.js +0 -28
- package/locales/fullcalendar/ar-kw.js +0 -28
- package/locales/fullcalendar/ar-ly.js +0 -28
- package/locales/fullcalendar/ar-ma.js +0 -28
- package/locales/fullcalendar/ar-sa.js +0 -28
- package/locales/fullcalendar/ar-tn.js +0 -28
- package/locales/fullcalendar/ar.js +0 -28
- package/locales/fullcalendar/az.js +0 -29
- package/locales/fullcalendar/bg.js +0 -28
- package/locales/fullcalendar/bs.js +0 -29
- package/locales/fullcalendar/ca.js +0 -27
- package/locales/fullcalendar/cs.js +0 -29
- package/locales/fullcalendar/da.js +0 -27
- package/locales/fullcalendar/de.js +0 -30
- package/locales/fullcalendar/el.js +0 -27
- package/locales/fullcalendar/en-au.js +0 -14
- package/locales/fullcalendar/en-gb.js +0 -14
- package/locales/fullcalendar/en-nz.js +0 -14
- package/locales/fullcalendar/es-us.js +0 -27
- package/locales/fullcalendar/es.js +0 -27
- package/locales/fullcalendar/et.js +0 -29
- package/locales/fullcalendar/eu.js +0 -27
- package/locales/fullcalendar/fa.js +0 -30
- package/locales/fullcalendar/fi.js +0 -27
- package/locales/fullcalendar/fr-ca.js +0 -24
- package/locales/fullcalendar/fr-ch.js +0 -28
- package/locales/fullcalendar/fr.js +0 -28
- package/locales/fullcalendar/gl.js +0 -27
- package/locales/fullcalendar/he.js +0 -24
- package/locales/fullcalendar/hi.js +0 -29
- package/locales/fullcalendar/hr.js +0 -29
- package/locales/fullcalendar/hu.js +0 -27
- package/locales/fullcalendar/id.js +0 -27
- package/locales/fullcalendar/is.js +0 -27
- package/locales/fullcalendar/it.js +0 -29
- package/locales/fullcalendar/ja.js +0 -25
- package/locales/fullcalendar/ka.js +0 -29
- package/locales/fullcalendar/kk.js +0 -29
- package/locales/fullcalendar/ko.js +0 -23
- package/locales/fullcalendar/lb.js +0 -27
- package/locales/fullcalendar/lt.js +0 -27
- package/locales/fullcalendar/lv.js +0 -29
- package/locales/fullcalendar/mk.js +0 -25
- package/locales/fullcalendar/ms.js +0 -29
- package/locales/fullcalendar/nb.js +0 -27
- package/locales/fullcalendar/ne.js +0 -27
- package/locales/fullcalendar/nl.js +0 -27
- package/locales/fullcalendar/nn.js +0 -27
- package/locales/fullcalendar/pl.js +0 -27
- package/locales/fullcalendar/pt-br.js +0 -25
- package/locales/fullcalendar/pt.js +0 -27
- package/locales/fullcalendar/ro.js +0 -29
- package/locales/fullcalendar/ru.js +0 -29
- package/locales/fullcalendar/sk.js +0 -29
- package/locales/fullcalendar/sl.js +0 -27
- package/locales/fullcalendar/sq.js +0 -29
- package/locales/fullcalendar/sr-cyrl.js +0 -29
- package/locales/fullcalendar/sr.js +0 -29
- package/locales/fullcalendar/sv.js +0 -27
- package/locales/fullcalendar/th.js +0 -30
- package/locales/fullcalendar/tr.js +0 -27
- package/locales/fullcalendar/ug.js +0 -17
- package/locales/fullcalendar/uk.js +0 -29
- package/locales/fullcalendar/uz.js +0 -21
- package/locales/fullcalendar/vi.js +0 -29
- package/locales/fullcalendar/zh-cn.js +0 -30
- package/locales/fullcalendar/zh-tw.js +0 -23
- package/mobile/components/basic/default/.npmignore +0 -2
- package/mobile/components/basic/default/anchor/anchor.directive.d.ts +0 -8
- package/mobile/components/basic/default/app-update/app-update.component.d.ts +0 -26
- package/mobile/components/basic/default/basic.module.d.ts +0 -15
- package/mobile/components/basic/default/bundles/index.umd.js +0 -980
- package/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +0 -44
- package/mobile/components/basic/default/esm2022/app-update/app-update.component.mjs +0 -116
- package/mobile/components/basic/default/esm2022/basic.module.mjs +0 -52
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +0 -236
- package/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +0 -85
- package/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +0 -61
- package/mobile/components/basic/default/esm2022/index.mjs +0 -5
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +0 -183
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.props.mjs +0 -5
- package/mobile/components/basic/default/esm2022/process-manager/process-management.service.mjs +0 -47
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +0 -175
- package/mobile/components/basic/default/esm2022/public_api.mjs +0 -10
- package/mobile/components/basic/default/fesm2022/index.mjs +0 -958
- package/mobile/components/basic/default/fesm2022/index.mjs.map +0 -1
- package/mobile/components/basic/default/file-browser/file-browser.component.d.ts +0 -39
- package/mobile/components/basic/default/file-browser/file-selector.service.d.ts +0 -27
- package/mobile/components/basic/default/image-cache/image-cache.directive.d.ts +0 -18
- package/mobile/components/basic/default/index.d.ts +0 -5
- package/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +0 -28
- package/mobile/components/basic/default/network-info-toaster/network-info-toaster.props.d.ts +0 -1
- package/mobile/components/basic/default/package.json +0 -23
- package/mobile/components/basic/default/process-manager/process-management.service.d.ts +0 -36
- package/mobile/components/basic/default/process-manager/process-manager.component.d.ts +0 -33
- package/mobile/components/basic/default/public_api.d.ts +0 -9
- package/mobile/components/basic/search/.npmignore +0 -2
- package/mobile/components/basic/search/bundles/index.umd.js +0 -66
- package/mobile/components/basic/search/esm2022/index.mjs +0 -5
- package/mobile/components/basic/search/esm2022/public_api.mjs +0 -3
- package/mobile/components/basic/search/esm2022/search.directive.mjs +0 -17
- package/mobile/components/basic/search/esm2022/search.module.mjs +0 -28
- package/mobile/components/basic/search/fesm2022/index.mjs +0 -49
- package/mobile/components/basic/search/fesm2022/index.mjs.map +0 -1
- package/mobile/components/basic/search/index.d.ts +0 -5
- package/mobile/components/basic/search/package.json +0 -23
- package/mobile/components/basic/search/public_api.d.ts +0 -2
- package/mobile/components/basic/search/search.directive.d.ts +0 -7
- package/mobile/components/basic/search/search.module.d.ts +0 -9
- package/mobile/components/containers/segmented-control/.npmignore +0 -2
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +0 -281
- package/mobile/components/containers/segmented-control/esm2022/index.mjs +0 -5
- package/mobile/components/containers/segmented-control/esm2022/public_api.mjs +0 -4
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +0 -70
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.props.mjs +0 -14
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +0 -147
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.module.mjs +0 -32
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.props.mjs +0 -9
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +0 -264
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +0 -1
- package/mobile/components/containers/segmented-control/index.d.ts +0 -5
- package/mobile/components/containers/segmented-control/package.json +0 -23
- package/mobile/components/containers/segmented-control/public_api.d.ts +0 -3
- package/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +0 -18
- package/mobile/components/containers/segmented-control/segment-content/segment-content.props.d.ts +0 -1
- package/mobile/components/containers/segmented-control/segmented-control.component.d.ts +0 -20
- package/mobile/components/containers/segmented-control/segmented-control.module.d.ts +0 -10
- package/mobile/components/containers/segmented-control/segmented-control.props.d.ts +0 -1
- package/mobile/components/data/media-list/.npmignore +0 -2
- package/mobile/components/data/media-list/bundles/index.umd.js +0 -310
- package/mobile/components/data/media-list/esm2022/index.mjs +0 -5
- package/mobile/components/data/media-list/esm2022/media-list-item/media-list-item.directive.mjs +0 -24
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +0 -213
- package/mobile/components/data/media-list/esm2022/media-list.module.mjs +0 -48
- package/mobile/components/data/media-list/esm2022/media-list.props.mjs +0 -16
- package/mobile/components/data/media-list/esm2022/public_api.mjs +0 -4
- package/mobile/components/data/media-list/fesm2022/index.mjs +0 -297
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +0 -1
- package/mobile/components/data/media-list/index.d.ts +0 -5
- package/mobile/components/data/media-list/media-list-item/media-list-item.directive.d.ts +0 -8
- package/mobile/components/data/media-list/media-list.component.d.ts +0 -33
- package/mobile/components/data/media-list/media-list.module.d.ts +0 -14
- package/mobile/components/data/media-list/media-list.props.d.ts +0 -1
- package/mobile/components/data/media-list/package.json +0 -23
- package/mobile/components/data/media-list/public_api.d.ts +0 -3
- package/mobile/components/device/barcode-scanner/.npmignore +0 -2
- package/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +0 -18
- package/mobile/components/device/barcode-scanner/barcode-scanner.module.d.ts +0 -9
- package/mobile/components/device/barcode-scanner/barcode-scanner.props.d.ts +0 -1
- package/mobile/components/device/barcode-scanner/bundles/index.umd.js +0 -129
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.component.mjs +0 -69
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.module.mjs +0 -28
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +0 -15
- package/mobile/components/device/barcode-scanner/esm2022/index.mjs +0 -5
- package/mobile/components/device/barcode-scanner/esm2022/public_api.mjs +0 -3
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs +0 -112
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +0 -1
- package/mobile/components/device/barcode-scanner/index.d.ts +0 -5
- package/mobile/components/device/barcode-scanner/package.json +0 -23
- package/mobile/components/device/barcode-scanner/public_api.d.ts +0 -2
- package/mobile/components/device/camera/.npmignore +0 -2
- package/mobile/components/device/camera/bundles/index.umd.js +0 -170
- package/mobile/components/device/camera/camera.component.d.ts +0 -37
- package/mobile/components/device/camera/camera.module.d.ts +0 -9
- package/mobile/components/device/camera/camera.props.d.ts +0 -1
- package/mobile/components/device/camera/esm2022/camera.component.mjs +0 -101
- package/mobile/components/device/camera/esm2022/camera.module.mjs +0 -28
- package/mobile/components/device/camera/esm2022/camera.props.mjs +0 -25
- package/mobile/components/device/camera/esm2022/index.mjs +0 -5
- package/mobile/components/device/camera/esm2022/public_api.mjs +0 -3
- package/mobile/components/device/camera/fesm2022/index.mjs +0 -153
- package/mobile/components/device/camera/fesm2022/index.mjs.map +0 -1
- package/mobile/components/device/camera/index.d.ts +0 -5
- package/mobile/components/device/camera/package.json +0 -23
- package/mobile/components/device/camera/public_api.d.ts +0 -2
- package/mobile/components/input/file-upload/.npmignore +0 -2
- package/mobile/components/input/file-upload/bundles/index.umd.js +0 -88
- package/mobile/components/input/file-upload/esm2022/file-upload.directive.mjs +0 -41
- package/mobile/components/input/file-upload/esm2022/file-upload.module.mjs +0 -28
- package/mobile/components/input/file-upload/esm2022/index.mjs +0 -5
- package/mobile/components/input/file-upload/esm2022/public_api.mjs +0 -3
- package/mobile/components/input/file-upload/fesm2022/index.mjs +0 -71
- package/mobile/components/input/file-upload/fesm2022/index.mjs.map +0 -1
- package/mobile/components/input/file-upload/file-upload.directive.d.ts +0 -11
- package/mobile/components/input/file-upload/file-upload.module.d.ts +0 -9
- package/mobile/components/input/file-upload/index.d.ts +0 -5
- package/mobile/components/input/file-upload/package.json +0 -23
- package/mobile/components/input/file-upload/public_api.d.ts +0 -2
- package/mobile/components/page/default/.npmignore +0 -2
- package/mobile/components/page/default/bundles/index.umd.js +0 -127
- package/mobile/components/page/default/esm2022/index.mjs +0 -5
- package/mobile/components/page/default/esm2022/page-content-loader/page-content-loader.component.mjs +0 -24
- package/mobile/components/page/default/esm2022/page.directive.mjs +0 -58
- package/mobile/components/page/default/esm2022/page.module.mjs +0 -32
- package/mobile/components/page/default/esm2022/public_api.mjs +0 -4
- package/mobile/components/page/default/fesm2022/index.mjs +0 -110
- package/mobile/components/page/default/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/default/index.d.ts +0 -5
- package/mobile/components/page/default/package.json +0 -23
- package/mobile/components/page/default/page-content-loader/page-content-loader.component.d.ts +0 -7
- package/mobile/components/page/default/page.directive.d.ts +0 -19
- package/mobile/components/page/default/page.module.d.ts +0 -10
- package/mobile/components/page/default/public_api.d.ts +0 -3
- package/mobile/components/page/left-panel/.npmignore +0 -2
- package/mobile/components/page/left-panel/bundles/index.umd.js +0 -91
- package/mobile/components/page/left-panel/esm2022/index.mjs +0 -5
- package/mobile/components/page/left-panel/esm2022/left-panel.directive.mjs +0 -45
- package/mobile/components/page/left-panel/esm2022/left-panel.module.mjs +0 -28
- package/mobile/components/page/left-panel/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/left-panel/fesm2022/index.mjs +0 -74
- package/mobile/components/page/left-panel/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/left-panel/index.d.ts +0 -5
- package/mobile/components/page/left-panel/left-panel.directive.d.ts +0 -16
- package/mobile/components/page/left-panel/left-panel.module.d.ts +0 -9
- package/mobile/components/page/left-panel/package.json +0 -23
- package/mobile/components/page/left-panel/public_api.d.ts +0 -2
- package/mobile/components/page/mobile-navbar/.npmignore +0 -2
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +0 -332
- package/mobile/components/page/mobile-navbar/esm2022/index.mjs +0 -5
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +0 -247
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.module.mjs +0 -32
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.props.mjs +0 -41
- package/mobile/components/page/mobile-navbar/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +0 -317
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/mobile-navbar/index.d.ts +0 -5
- package/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +0 -50
- package/mobile/components/page/mobile-navbar/mobile-navbar.module.d.ts +0 -10
- package/mobile/components/page/mobile-navbar/mobile-navbar.props.d.ts +0 -2
- package/mobile/components/page/mobile-navbar/package.json +0 -23
- package/mobile/components/page/mobile-navbar/public_api.d.ts +0 -2
- package/mobile/components/page/tab-bar/.npmignore +0 -2
- package/mobile/components/page/tab-bar/bundles/index.umd.js +0 -279
- package/mobile/components/page/tab-bar/esm2022/index.mjs +0 -5
- package/mobile/components/page/tab-bar/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/tab-bar/esm2022/tab-bar.module.mjs +0 -28
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +0 -219
- package/mobile/components/page/tab-bar/esm2022/tabbar.props.mjs +0 -15
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +0 -262
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/tab-bar/index.d.ts +0 -5
- package/mobile/components/page/tab-bar/package.json +0 -23
- package/mobile/components/page/tab-bar/public_api.d.ts +0 -2
- package/mobile/components/page/tab-bar/tab-bar.module.d.ts +0 -9
- package/mobile/components/page/tab-bar/tabbar.component.d.ts +0 -40
- package/mobile/components/page/tab-bar/tabbar.props.d.ts +0 -1
- package/mobile/core/.npmignore +0 -2
- package/mobile/core/bundles/index.umd.js +0 -1658
- package/mobile/core/core.module.d.ts +0 -15
- package/mobile/core/esm2022/core.module.mjs +0 -79
- package/mobile/core/esm2022/index.mjs +0 -5
- package/mobile/core/esm2022/native.xhr.mjs +0 -340
- package/mobile/core/esm2022/public_api.mjs +0 -12
- package/mobile/core/esm2022/services/device-file-cache.service.mjs +0 -92
- package/mobile/core/esm2022/services/device-file-download.service.mjs +0 -154
- package/mobile/core/esm2022/services/device-file-opener.service.mjs +0 -112
- package/mobile/core/esm2022/services/device-file-upload.service.mjs +0 -91
- package/mobile/core/esm2022/services/device-file.service.mjs +0 -237
- package/mobile/core/esm2022/services/device-start-up-service.mjs +0 -2
- package/mobile/core/esm2022/services/device.service.mjs +0 -150
- package/mobile/core/esm2022/services/ext-app-message.service.mjs +0 -114
- package/mobile/core/esm2022/services/network.service.mjs +0 -358
- package/mobile/core/fesm2022/index.mjs +0 -1660
- package/mobile/core/fesm2022/index.mjs.map +0 -1
- package/mobile/core/index.d.ts +0 -5
- package/mobile/core/native.xhr.d.ts +0 -36
- package/mobile/core/package.json +0 -28
- package/mobile/core/public_api.d.ts +0 -11
- package/mobile/core/services/device-file-cache.service.d.ts +0 -24
- package/mobile/core/services/device-file-download.service.d.ts +0 -36
- package/mobile/core/services/device-file-opener.service.d.ts +0 -25
- package/mobile/core/services/device-file-upload.service.d.ts +0 -27
- package/mobile/core/services/device-file.service.d.ts +0 -45
- package/mobile/core/services/device-start-up-service.d.ts +0 -4
- package/mobile/core/services/device.service.d.ts +0 -52
- package/mobile/core/services/ext-app-message.service.d.ts +0 -24
- package/mobile/core/services/network.service.d.ts +0 -118
- package/mobile/offline/.npmignore +0 -2
- package/mobile/offline/bundles/index.umd.js +0 -3512
- package/mobile/offline/esm2022/index.mjs +0 -5
- package/mobile/offline/esm2022/models/config.mjs +0 -64
- package/mobile/offline/esm2022/models/local-db-store.mjs +0 -412
- package/mobile/offline/esm2022/offline.module.mjs +0 -100
- package/mobile/offline/esm2022/public_api.mjs +0 -7
- package/mobile/offline/esm2022/services/change-log.service.mjs +0 -332
- package/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +0 -525
- package/mobile/offline/esm2022/services/local-db-management.service.mjs +0 -855
- package/mobile/offline/esm2022/services/local-db.service.mjs +0 -193
- package/mobile/offline/esm2022/services/local-key-value.service.mjs +0 -87
- package/mobile/offline/esm2022/services/push.service.mjs +0 -49
- package/mobile/offline/esm2022/services/workers/error-blocker.mjs +0 -115
- package/mobile/offline/esm2022/services/workers/file-handler.mjs +0 -162
- package/mobile/offline/esm2022/services/workers/id-resolver.mjs +0 -154
- package/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +0 -63
- package/mobile/offline/esm2022/utils/file-upload.utils.mjs +0 -59
- package/mobile/offline/esm2022/utils/live-variable.utils.mjs +0 -232
- package/mobile/offline/esm2022/utils/query-executor.utils.mjs +0 -82
- package/mobile/offline/esm2022/utils/security.utils.mjs +0 -119
- package/mobile/offline/esm2022/utils/utils.mjs +0 -8
- package/mobile/offline/fesm2022/index.mjs +0 -3529
- package/mobile/offline/fesm2022/index.mjs.map +0 -1
- package/mobile/offline/index.d.ts +0 -5
- package/mobile/offline/models/config.d.ts +0 -80
- package/mobile/offline/models/local-db-store.d.ts +0 -119
- package/mobile/offline/offline.module.d.ts +0 -17
- package/mobile/offline/package.json +0 -28
- package/mobile/offline/public_api.d.ts +0 -6
- package/mobile/offline/services/change-log.service.d.ts +0 -112
- package/mobile/offline/services/local-db-data-pull.service.d.ts +0 -139
- package/mobile/offline/services/local-db-management.service.d.ts +0 -179
- package/mobile/offline/services/local-db.service.d.ts +0 -83
- package/mobile/offline/services/local-key-value.service.d.ts +0 -38
- package/mobile/offline/services/push.service.d.ts +0 -11
- package/mobile/offline/services/workers/error-blocker.d.ts +0 -26
- package/mobile/offline/services/workers/file-handler.d.ts +0 -56
- package/mobile/offline/services/workers/id-resolver.d.ts +0 -26
- package/mobile/offline/services/workers/multi-part-param-transformer.d.ts +0 -11
- package/mobile/offline/utils/file-upload.utils.d.ts +0 -14
- package/mobile/offline/utils/live-variable.utils.d.ts +0 -24
- package/mobile/offline/utils/query-executor.utils.d.ts +0 -15
- package/mobile/offline/utils/security.utils.d.ts +0 -19
- package/mobile/offline/utils/utils.d.ts +0 -2
- package/mobile/placeholder/runtime/.npmignore +0 -2
- package/mobile/placeholder/runtime/bundles/index.umd.js +0 -70
- package/mobile/placeholder/runtime/components/app-ext.component.d.ts +0 -5
- package/mobile/placeholder/runtime/esm2022/components/app-ext.component.mjs +0 -19
- package/mobile/placeholder/runtime/esm2022/index.mjs +0 -5
- package/mobile/placeholder/runtime/esm2022/mobile-runtime.module.mjs +0 -27
- package/mobile/placeholder/runtime/esm2022/public_api.mjs +0 -3
- package/mobile/placeholder/runtime/fesm2022/index.mjs +0 -50
- package/mobile/placeholder/runtime/fesm2022/index.mjs.map +0 -1
- package/mobile/placeholder/runtime/index.d.ts +0 -5
- package/mobile/placeholder/runtime/mobile-runtime.module.d.ts +0 -9
- package/mobile/placeholder/runtime/package.json +0 -27
- package/mobile/placeholder/runtime/public_api.d.ts +0 -2
- package/mobile/placeholder/runtime-dynamic/.npmignore +0 -2
- package/mobile/placeholder/runtime-dynamic/bundles/index.umd.js +0 -40
- package/mobile/placeholder/runtime-dynamic/esm2022/index.mjs +0 -5
- package/mobile/placeholder/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +0 -13
- package/mobile/placeholder/runtime-dynamic/esm2022/public_api.mjs +0 -2
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs +0 -20
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs.map +0 -1
- package/mobile/placeholder/runtime-dynamic/index.d.ts +0 -5
- package/mobile/placeholder/runtime-dynamic/mobile-runtime-dynamic.module.d.ts +0 -7
- package/mobile/placeholder/runtime-dynamic/package.json +0 -23
- package/mobile/placeholder/runtime-dynamic/public_api.d.ts +0 -1
- package/mobile/runtime/.npmignore +0 -2
- package/mobile/runtime/bundles/index.umd.js +0 -732
- package/mobile/runtime/components/app-ext.component.d.ts +0 -14
- package/mobile/runtime/esm2022/components/app-ext.component.mjs +0 -59
- package/mobile/runtime/esm2022/index.mjs +0 -5
- package/mobile/runtime/esm2022/mobile-runtime.module.mjs +0 -351
- package/mobile/runtime/esm2022/public_api.mjs +0 -6
- package/mobile/runtime/esm2022/services/cookie.service.mjs +0 -135
- package/mobile/runtime/esm2022/services/http-interceptor.service.mjs +0 -147
- package/mobile/runtime/esm2022/services/webprocess.service.mjs +0 -76
- package/mobile/runtime/fesm2022/index.mjs +0 -742
- package/mobile/runtime/fesm2022/index.mjs.map +0 -1
- package/mobile/runtime/index.d.ts +0 -5
- package/mobile/runtime/mobile-runtime.module.d.ts +0 -51
- package/mobile/runtime/package.json +0 -28
- package/mobile/runtime/public_api.d.ts +0 -5
- package/mobile/runtime/services/cookie.service.d.ts +0 -31
- package/mobile/runtime/services/http-interceptor.service.d.ts +0 -19
- package/mobile/runtime/services/webprocess.service.d.ts +0 -15
- package/mobile/runtime-dynamic/.npmignore +0 -2
- package/mobile/runtime-dynamic/bundles/index.umd.js +0 -461
- package/mobile/runtime-dynamic/esm2022/index.mjs +0 -5
- package/mobile/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +0 -48
- package/mobile/runtime-dynamic/esm2022/public_api.mjs +0 -2
- package/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +0 -404
- package/mobile/runtime-dynamic/fesm2022/index.mjs +0 -454
- package/mobile/runtime-dynamic/fesm2022/index.mjs.map +0 -1
- package/mobile/runtime-dynamic/index.d.ts +0 -5
- package/mobile/runtime-dynamic/mobile-runtime-dynamic.module.d.ts +0 -8
- package/mobile/runtime-dynamic/package.json +0 -23
- package/mobile/runtime-dynamic/public_api.d.ts +0 -1
- package/mobile/runtime-dynamic/services/live-sync.service.d.ts +0 -38
- package/mobile/variables/.npmignore +0 -2
- package/mobile/variables/bundles/index.umd.js +0 -1166
- package/mobile/variables/esm2022/index.mjs +0 -5
- package/mobile/variables/esm2022/public_api.mjs +0 -10
- package/mobile/variables/esm2022/services/calendar-service.mjs +0 -77
- package/mobile/variables/esm2022/services/camera-service.mjs +0 -70
- package/mobile/variables/esm2022/services/contacts-service.mjs +0 -74
- package/mobile/variables/esm2022/services/datasync-service.mjs +0 -363
- package/mobile/variables/esm2022/services/device-service/device-service.mjs +0 -161
- package/mobile/variables/esm2022/services/device-service/location-service.mjs +0 -200
- package/mobile/variables/esm2022/services/file-service.mjs +0 -87
- package/mobile/variables/esm2022/services/scan-service.mjs +0 -60
- package/mobile/variables/esm2022/variables.module.mjs +0 -78
- package/mobile/variables/fesm2022/index.mjs +0 -1143
- package/mobile/variables/fesm2022/index.mjs.map +0 -1
- package/mobile/variables/index.d.ts +0 -5
- package/mobile/variables/package.json +0 -28
- package/mobile/variables/public_api.d.ts +0 -9
- package/mobile/variables/services/calendar-service.d.ts +0 -10
- package/mobile/variables/services/camera-service.d.ts +0 -8
- package/mobile/variables/services/contacts-service.d.ts +0 -6
- package/mobile/variables/services/datasync-service.d.ts +0 -11
- package/mobile/variables/services/device-service/device-service.d.ts +0 -17
- package/mobile/variables/services/device-service/location-service.d.ts +0 -63
- package/mobile/variables/services/file-service.d.ts +0 -7
- package/mobile/variables/services/scan-service.d.ts +0 -7
- package/mobile/variables/variables.module.d.ts +0 -25
- package/oAuth/esm2022/oAuth.module.mjs +0 -19
- package/oAuth/oAuth.module.d.ts +0 -8
- package/scripts/fullcalendar/main.min.js +0 -6
- package/security/esm2022/security.module.mjs +0 -19
- package/security/security.module.d.ts +0 -8
- package/variables/esm2022/manager/variable/device-variable-manager.mjs +0 -48
- package/variables/esm2022/manager/variable/device-variable-operation.mjs +0 -2
- package/variables/esm2022/manager/variable/device-variable-service.mjs +0 -45
- package/variables/esm2022/model/variable/device-variable.mjs +0 -19
- package/variables/esm2022/variables.module.mjs +0 -52
- package/variables/manager/variable/device-variable-manager.d.ts +0 -26
- package/variables/manager/variable/device-variable-operation.d.ts +0 -37
- package/variables/manager/variable/device-variable-service.d.ts +0 -6
- package/variables/model/variable/device-variable.d.ts +0 -6
- package/variables/variables.module.d.ts +0 -16
|
@@ -1,1166 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@awesome-cordova-plugins/app-version/ngx'), require('@awesome-cordova-plugins/barcode-scanner/ngx'), require('@awesome-cordova-plugins/calendar/ngx'), require('@awesome-cordova-plugins/camera/ngx'), require('@awesome-cordova-plugins/device/ngx'), require('@awesome-cordova-plugins/media-capture/ngx'), require('@awesome-cordova-plugins/geolocation/ngx'), require('@awesome-cordova-plugins/vibration/ngx'), require('@awesome-cordova-plugins/location-accuracy/ngx'), require('@awesome-cordova-plugins/diagnostic/ngx'), require('@wm/core'), require('@wm/mobile/core'), require('@wm/mobile/offline'), require('@wm/security'), require('@wm/variables'), require('lodash-es'), require('@wm/mobile/components/basic')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@awesome-cordova-plugins/app-version/ngx', '@awesome-cordova-plugins/barcode-scanner/ngx', '@awesome-cordova-plugins/calendar/ngx', '@awesome-cordova-plugins/camera/ngx', '@awesome-cordova-plugins/device/ngx', '@awesome-cordova-plugins/media-capture/ngx', '@awesome-cordova-plugins/geolocation/ngx', '@awesome-cordova-plugins/vibration/ngx', '@awesome-cordova-plugins/location-accuracy/ngx', '@awesome-cordova-plugins/diagnostic/ngx', '@wm/core', '@wm/mobile/core', '@wm/mobile/offline', '@wm/security', '@wm/variables', 'lodash-es', '@wm/mobile/components/basic'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.mobile = global.wm.mobile || {}, global.wm.mobile.variables = {}), global.ng.core, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.wm.core, global.wm.mobile.core, global.wm.mobile.offline, global.wm.security, global.wm.variables, global._, global.wm.mobile.components.basic));
|
|
5
|
-
})(this, (function (exports, i0, i2, i3, i5, i6, i9, i11, i10, i13, i14, i15, i1, i7, i4, i12, variables, lodashEs, i8) { '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 i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
-
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
26
|
-
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
27
|
-
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
28
|
-
var i6__namespace = /*#__PURE__*/_interopNamespaceDefault(i6);
|
|
29
|
-
var i9__namespace = /*#__PURE__*/_interopNamespaceDefault(i9);
|
|
30
|
-
var i11__namespace = /*#__PURE__*/_interopNamespaceDefault(i11);
|
|
31
|
-
var i10__namespace = /*#__PURE__*/_interopNamespaceDefault(i10);
|
|
32
|
-
var i13__namespace = /*#__PURE__*/_interopNamespaceDefault(i13);
|
|
33
|
-
var i14__namespace = /*#__PURE__*/_interopNamespaceDefault(i14);
|
|
34
|
-
var i15__namespace = /*#__PURE__*/_interopNamespaceDefault(i15);
|
|
35
|
-
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
36
|
-
var i7__namespace = /*#__PURE__*/_interopNamespaceDefault(i7);
|
|
37
|
-
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
38
|
-
var i12__namespace = /*#__PURE__*/_interopNamespaceDefault(i12);
|
|
39
|
-
var i8__namespace = /*#__PURE__*/_interopNamespaceDefault(i8);
|
|
40
|
-
|
|
41
|
-
const DEFAULT_TIME = new Date().getTime();
|
|
42
|
-
/*3 months timestamp value*/
|
|
43
|
-
const DELTA_VALUE_DATE = (3 * 30 * 24 * 60 * 60 * 1000);
|
|
44
|
-
const DEFAULT_START_DATE = (DEFAULT_TIME - DELTA_VALUE_DATE);
|
|
45
|
-
const DEFAULT_END_DATE = (DEFAULT_TIME + DELTA_VALUE_DATE);
|
|
46
|
-
const EVENT_META = {
|
|
47
|
-
title: '',
|
|
48
|
-
message: '',
|
|
49
|
-
location: '',
|
|
50
|
-
startDate: new Date(),
|
|
51
|
-
endDate: new Date()
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* this file contains all calendar operations under 'calendar' service.
|
|
55
|
-
*/
|
|
56
|
-
class CalendarService extends variables.DeviceVariableService {
|
|
57
|
-
constructor(calendar) {
|
|
58
|
-
super();
|
|
59
|
-
this.name = 'calendar';
|
|
60
|
-
this.operations = [];
|
|
61
|
-
this.operations.push(new CreateEventOperation(calendar), new DeleteEventOperation(calendar), new GetEventsOperation(calendar));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
class CreateEventOperation {
|
|
65
|
-
constructor(calendar) {
|
|
66
|
-
this.calendar = calendar;
|
|
67
|
-
this.name = 'createEvent';
|
|
68
|
-
this.properties = [
|
|
69
|
-
{ target: 'eventTitle', type: 'string', dataBinding: true },
|
|
70
|
-
{ target: 'eventNotes', type: 'string', dataBinding: true },
|
|
71
|
-
{ target: 'eventLocation', type: 'string', dataBinding: true },
|
|
72
|
-
{ target: 'eventStart', type: 'datetime', dataBinding: true },
|
|
73
|
-
{ target: 'eventEnd', type: 'datetime', dataBinding: true }
|
|
74
|
-
];
|
|
75
|
-
this.requiredCordovaPlugins = ['CALENDAR'];
|
|
76
|
-
}
|
|
77
|
-
invoke(variable, options, eventInfo) {
|
|
78
|
-
return this.calendar.createEvent(eventInfo.get('eventTitle'), eventInfo.get('eventLocation'), eventInfo.get('eventNotes'), new Date(eventInfo.get('eventStart') || 0), new Date(eventInfo.get('eventEnd') || 0));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
class DeleteEventOperation {
|
|
82
|
-
constructor(calendar) {
|
|
83
|
-
this.calendar = calendar;
|
|
84
|
-
this.name = 'deleteEvent';
|
|
85
|
-
this.properties = [
|
|
86
|
-
{ target: 'eventTitle', type: 'string', dataBinding: true },
|
|
87
|
-
{ target: 'eventNotes', type: 'string', dataBinding: true },
|
|
88
|
-
{ target: 'eventLocation', type: 'string', dataBinding: true },
|
|
89
|
-
{ target: 'eventStart', type: 'datetime', dataBinding: true },
|
|
90
|
-
{ target: 'eventEnd', type: 'datetime', dataBinding: true }
|
|
91
|
-
];
|
|
92
|
-
this.requiredCordovaPlugins = ['CALENDAR'];
|
|
93
|
-
}
|
|
94
|
-
invoke(variable, options, eventInfo) {
|
|
95
|
-
return this.calendar.deleteEvent(eventInfo.get('eventTitle'), eventInfo.get('eventLocation'), eventInfo.get('eventNotes'), new Date(eventInfo.get('eventStart') || DEFAULT_START_DATE), new Date(eventInfo.get('eventEnd') || DEFAULT_END_DATE));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
class GetEventsOperation {
|
|
99
|
-
constructor(calendar) {
|
|
100
|
-
this.calendar = calendar;
|
|
101
|
-
this.name = 'getEvents';
|
|
102
|
-
this.model = [EVENT_META];
|
|
103
|
-
this.properties = [
|
|
104
|
-
{ target: 'eventTitle', type: 'string', dataBinding: true },
|
|
105
|
-
{ target: 'eventNotes', type: 'string', dataBinding: true },
|
|
106
|
-
{ target: 'eventLocation', type: 'string', dataBinding: true },
|
|
107
|
-
{ target: 'eventStart', type: 'datetime', dataBinding: true },
|
|
108
|
-
{ target: 'eventEnd', type: 'datetime', dataBinding: true }
|
|
109
|
-
];
|
|
110
|
-
this.requiredCordovaPlugins = ['CALENDAR'];
|
|
111
|
-
}
|
|
112
|
-
invoke(variable, options, eventInfo) {
|
|
113
|
-
return this.calendar.findEvent(eventInfo.get('eventTitle'), eventInfo.get('eventLocation'), eventInfo.get('eventNotes'), new Date(eventInfo.get('eventStart') || DEFAULT_START_DATE), new Date(eventInfo.get('eventEnd') || DEFAULT_END_DATE));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
class CameraService extends variables.DeviceVariableService {
|
|
118
|
-
constructor(camera, mediaCapture) {
|
|
119
|
-
super();
|
|
120
|
-
this.name = 'camera';
|
|
121
|
-
this.operations = [];
|
|
122
|
-
this.operations.push(new CaptureImageOperation(camera), new CaptureVideoOperation(mediaCapture));
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
class CaptureImageOperation {
|
|
126
|
-
constructor(camera) {
|
|
127
|
-
this.camera = camera;
|
|
128
|
-
this.name = 'captureImage';
|
|
129
|
-
this.model = {
|
|
130
|
-
imagePath: 'resources/images/imagelists/default-image.png'
|
|
131
|
-
};
|
|
132
|
-
this.properties = [
|
|
133
|
-
{ target: 'allowImageEdit', type: 'boolean', value: false, dataBinding: true },
|
|
134
|
-
{ target: 'imageQuality', type: 'number', value: 80, dataBinding: true },
|
|
135
|
-
{ target: 'imageEncodingType', type: 'list', options: { '0': 'JPEG', '1': 'PNG' }, value: '0', dataBinding: true },
|
|
136
|
-
{ target: 'correctOrientation', type: 'boolean', value: true, dataBinding: true },
|
|
137
|
-
{ target: 'imageTargetWidth', type: 'number', dataBinding: true },
|
|
138
|
-
{ target: 'imageTargetHeight', type: 'number', dataBinding: true }
|
|
139
|
-
];
|
|
140
|
-
this.requiredCordovaPlugins = ['CAMERA', 'CAPTURE'];
|
|
141
|
-
}
|
|
142
|
-
invoke(variable, options, dataBindings) {
|
|
143
|
-
const imageTargetWidth = dataBindings.get('imageTargetWidth'), imageTargetHeight = dataBindings.get('imageTargetHeight');
|
|
144
|
-
let imageEncodingType = parseInt(dataBindings.get('imageEncodingType'), 10), cameraOptions;
|
|
145
|
-
if (isNaN(imageEncodingType)) {
|
|
146
|
-
imageEncodingType = (dataBindings.get('imageEncodingType') === 'JPEG' ? 0 : 1);
|
|
147
|
-
}
|
|
148
|
-
cameraOptions = {
|
|
149
|
-
quality: dataBindings.get('imageQuality'),
|
|
150
|
-
destinationType: 1, // only file url
|
|
151
|
-
sourceType: 1, // camera
|
|
152
|
-
allowEdit: dataBindings.get('allowImageEdit'),
|
|
153
|
-
encodingType: imageEncodingType,
|
|
154
|
-
mediaType: 0, // always picture
|
|
155
|
-
correctOrientation: dataBindings.get('correctOrientation'),
|
|
156
|
-
targetWidth: lodashEs.isNumber(imageTargetWidth) ? imageTargetWidth : undefined,
|
|
157
|
-
targetHeight: lodashEs.isNumber(imageTargetHeight) ? imageTargetHeight : undefined,
|
|
158
|
-
};
|
|
159
|
-
return this.camera.getPicture(cameraOptions).then(data => {
|
|
160
|
-
return { imagePath: data };
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
class CaptureVideoOperation {
|
|
165
|
-
constructor(mediaCapture) {
|
|
166
|
-
this.mediaCapture = mediaCapture;
|
|
167
|
-
this.name = 'captureVideo';
|
|
168
|
-
this.model = {
|
|
169
|
-
videoPath: ''
|
|
170
|
-
};
|
|
171
|
-
this.properties = [];
|
|
172
|
-
this.requiredCordovaPlugins = ['CAMERA', 'CAPTURE'];
|
|
173
|
-
}
|
|
174
|
-
invoke(variable, options) {
|
|
175
|
-
return this.mediaCapture.captureVideo({
|
|
176
|
-
limit: 1
|
|
177
|
-
}).then(data => {
|
|
178
|
-
let path = data[0].fullPath;
|
|
179
|
-
path = (path.startsWith('file://') ? '' : 'file://') + path;
|
|
180
|
-
return { videoPath: path };
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
class FileService extends variables.DeviceVariableService {
|
|
186
|
-
constructor(fileOpener, fileUploader) {
|
|
187
|
-
super();
|
|
188
|
-
this.name = 'file';
|
|
189
|
-
this.operations = [];
|
|
190
|
-
this.operations.push(new OpenFileOperation(fileOpener), new UploadFileOperation(fileUploader));
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
class OpenFileOperation {
|
|
194
|
-
constructor(fileOpener) {
|
|
195
|
-
this.fileOpener = fileOpener;
|
|
196
|
-
this._defaultFileTypesToOpen = {
|
|
197
|
-
'doc': { 'label': 'Microsoft Office Word Document', 'mimeType': 'application/msword', 'extension': 'doc' },
|
|
198
|
-
'pdf': { 'label': 'PDF Document', 'mimeType': 'application/pdf', 'extension': 'pdf' },
|
|
199
|
-
'ppt': { 'label': 'Microsoft Office Powerpoint', 'mimeType': 'application/vnd.ms-powerpoint', 'extension': 'ppt' },
|
|
200
|
-
'xls': { 'label': 'Microsoft Office Excel', 'mimeType': 'application/vnd.ms-excel', 'extension': 'xls' }
|
|
201
|
-
};
|
|
202
|
-
this.name = 'openFile';
|
|
203
|
-
this.model = {};
|
|
204
|
-
this.properties = [
|
|
205
|
-
{ target: 'filePath', type: 'string', value: '', dataBinding: true },
|
|
206
|
-
{
|
|
207
|
-
target: 'fileType',
|
|
208
|
-
type: 'list',
|
|
209
|
-
options: lodashEs.mapValues(this._defaultFileTypesToOpen, 'label'),
|
|
210
|
-
value: 'pdf',
|
|
211
|
-
dataBinding: true,
|
|
212
|
-
hide: true
|
|
213
|
-
},
|
|
214
|
-
{ target: 'spinnerContext', hide: false },
|
|
215
|
-
{ target: 'spinnerMessage', hide: false }
|
|
216
|
-
];
|
|
217
|
-
this.requiredCordovaPlugins = [];
|
|
218
|
-
}
|
|
219
|
-
invoke(variable, options, dataBindings) {
|
|
220
|
-
const fileType = this._defaultFileTypesToOpen[dataBindings.get('fileType')];
|
|
221
|
-
let filePath = dataBindings.get('filePath');
|
|
222
|
-
// if relative path is given, then append url with deployedUrl, to access files in resources.
|
|
223
|
-
if (!i1.isValidWebURL(filePath)) {
|
|
224
|
-
filePath = variables.$rootScope.project.deployedUrl + filePath;
|
|
225
|
-
}
|
|
226
|
-
return this.fileOpener.openRemoteFile(filePath, fileType.extension);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
class UploadFileOperation {
|
|
230
|
-
constructor(fileUploader) {
|
|
231
|
-
this.fileUploader = fileUploader;
|
|
232
|
-
this.name = 'upload';
|
|
233
|
-
this.model = {
|
|
234
|
-
fileName: '',
|
|
235
|
-
path: '',
|
|
236
|
-
length: 0,
|
|
237
|
-
success: false,
|
|
238
|
-
inlinePath: '',
|
|
239
|
-
errorMessage: '',
|
|
240
|
-
inProgress: false,
|
|
241
|
-
loaded: 0
|
|
242
|
-
};
|
|
243
|
-
this.properties = [
|
|
244
|
-
{ target: 'localFile', type: 'string', value: '', dataBinding: true },
|
|
245
|
-
{ target: 'remoteFolder', type: 'string', value: '', dataBinding: true },
|
|
246
|
-
{ target: 'onProgress', hide: false },
|
|
247
|
-
{ target: 'spinnerContext', hide: false },
|
|
248
|
-
{ target: 'spinnerMessage', hide: false }
|
|
249
|
-
];
|
|
250
|
-
this.requiredCordovaPlugins = [];
|
|
251
|
-
}
|
|
252
|
-
invoke(variable, options, dataBindings) {
|
|
253
|
-
const serverUrl = variables.$rootScope.project.deployedUrl + 'services/file/uploadFile?relativePath=' + (dataBindings.get('remoteFolder') || ''), filePath = dataBindings.get('localFile'), fileName = filePath.split('/').pop(), data = {
|
|
254
|
-
fileName: fileName,
|
|
255
|
-
fileSize: 0,
|
|
256
|
-
inProgress: true,
|
|
257
|
-
length: 0,
|
|
258
|
-
loaded: 0
|
|
259
|
-
};
|
|
260
|
-
return this.fileUploader.upload(serverUrl, 'files', filePath, fileName)
|
|
261
|
-
.then(uploadResponse => {
|
|
262
|
-
lodashEs.assignIn(data, JSON.parse(uploadResponse.text)[0]);
|
|
263
|
-
data.loaded = data.length;
|
|
264
|
-
return data;
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
const APP_IS_OFFLINE = 'App is offline.';
|
|
270
|
-
const OFFLINE_PLUGIN_NOT_FOUND = 'Offline DB Plugin is required, but missing.';
|
|
271
|
-
const ON_BEFORE_BLOCKED = 'onBefore callback returned false.';
|
|
272
|
-
const REQUIRED_PLUGINS = ['OFFLINE_DB', 'NETWORK'];
|
|
273
|
-
class DatasyncService extends variables.DeviceVariableService {
|
|
274
|
-
constructor(app, changeLogService, fileSelectorService, localDBManagementService, localDBDataPullService, processManagementService, securityService, networkService) {
|
|
275
|
-
super();
|
|
276
|
-
this.name = 'datasync';
|
|
277
|
-
this.operations = [];
|
|
278
|
-
this.operations.push(new ExportDBOperation(localDBManagementService));
|
|
279
|
-
this.operations.push(new GetOfflineChangesOperation(changeLogService));
|
|
280
|
-
this.operations.push(new ImportDBOperation(fileSelectorService, localDBManagementService));
|
|
281
|
-
this.operations.push(new LastPullInfoOperation(localDBDataPullService));
|
|
282
|
-
this.operations.push(new LastPushInfoOperation(changeLogService));
|
|
283
|
-
this.operations.push(new PullOperation(app, processManagementService, networkService, securityService, localDBDataPullService));
|
|
284
|
-
this.operations.push(new PushOperation(app, changeLogService, processManagementService, networkService, securityService));
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
class ExportDBOperation {
|
|
288
|
-
constructor(localDBManagementService) {
|
|
289
|
-
this.localDBManagementService = localDBManagementService;
|
|
290
|
-
this.name = 'exportDB';
|
|
291
|
-
this.model = { path: '' };
|
|
292
|
-
this.properties = [
|
|
293
|
-
{ target: 'spinnerContext', hide: false },
|
|
294
|
-
{ target: 'spinnerMessage', hide: false }
|
|
295
|
-
];
|
|
296
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
297
|
-
}
|
|
298
|
-
invoke(variable, options, dataBindings) {
|
|
299
|
-
if (window['SQLitePlugin']) {
|
|
300
|
-
return this.localDBManagementService.exportDB();
|
|
301
|
-
}
|
|
302
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
class GetOfflineChangesOperation {
|
|
306
|
-
static { this.DATA_CHANGE_TEMPLATE = {
|
|
307
|
-
service: 'DatabaseService',
|
|
308
|
-
operation: 'operation',
|
|
309
|
-
params: {
|
|
310
|
-
data: {},
|
|
311
|
-
dataModelName: 'dataModelName',
|
|
312
|
-
entityName: 'entityName'
|
|
313
|
-
},
|
|
314
|
-
hasError: 0,
|
|
315
|
-
errorMessage: ''
|
|
316
|
-
}; }
|
|
317
|
-
static { this.CHANGE_LOG_SET = {
|
|
318
|
-
total: 0,
|
|
319
|
-
database: {
|
|
320
|
-
create: [GetOfflineChangesOperation.DATA_CHANGE_TEMPLATE],
|
|
321
|
-
update: [GetOfflineChangesOperation.DATA_CHANGE_TEMPLATE],
|
|
322
|
-
delete: [GetOfflineChangesOperation.DATA_CHANGE_TEMPLATE]
|
|
323
|
-
},
|
|
324
|
-
uploads: [{
|
|
325
|
-
service: 'OfflineFileUploadService',
|
|
326
|
-
operation: 'uploadToServer',
|
|
327
|
-
params: {
|
|
328
|
-
file: 'localFilePath',
|
|
329
|
-
serverUrl: 'serverUrl',
|
|
330
|
-
ftOptions: {}
|
|
331
|
-
},
|
|
332
|
-
hasError: 0,
|
|
333
|
-
errorMessage: ''
|
|
334
|
-
}]
|
|
335
|
-
}; }
|
|
336
|
-
constructor(changeLogService) {
|
|
337
|
-
this.changeLogService = changeLogService;
|
|
338
|
-
this.name = 'getOfflineChanges';
|
|
339
|
-
this.model = {
|
|
340
|
-
total: 0,
|
|
341
|
-
pendingToSync: GetOfflineChangesOperation.CHANGE_LOG_SET,
|
|
342
|
-
failedToSync: GetOfflineChangesOperation.CHANGE_LOG_SET
|
|
343
|
-
};
|
|
344
|
-
this.properties = [
|
|
345
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true },
|
|
346
|
-
{ target: 'autoUpdate', type: 'boolean', value: true, hide: true }
|
|
347
|
-
];
|
|
348
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
349
|
-
}
|
|
350
|
-
invoke(variable, options, dataBindings) {
|
|
351
|
-
if (window['SQLitePlugin']) {
|
|
352
|
-
return getOfflineChanges(this.changeLogService);
|
|
353
|
-
}
|
|
354
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
class LastPullInfoOperation {
|
|
358
|
-
constructor(localDBDataPullService) {
|
|
359
|
-
this.localDBDataPullService = localDBDataPullService;
|
|
360
|
-
this.name = 'lastPullInfo';
|
|
361
|
-
this.model = {
|
|
362
|
-
databases: [{
|
|
363
|
-
name: 'datbaseName',
|
|
364
|
-
entities: [{
|
|
365
|
-
entityName: 'entityName',
|
|
366
|
-
pulledRecordCount: 0
|
|
367
|
-
}],
|
|
368
|
-
pulledRecordCount: 0
|
|
369
|
-
}],
|
|
370
|
-
totalPulledRecordCount: 0,
|
|
371
|
-
startTime: new Date().toJSON(),
|
|
372
|
-
endTime: new Date().toJSON()
|
|
373
|
-
};
|
|
374
|
-
this.properties = [
|
|
375
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true },
|
|
376
|
-
{ target: 'spinnerContext', hide: false },
|
|
377
|
-
{ target: 'spinnerMessage', hide: false }
|
|
378
|
-
];
|
|
379
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
380
|
-
}
|
|
381
|
-
invoke(variable, options, dataBindings) {
|
|
382
|
-
if (window['SQLitePlugin']) {
|
|
383
|
-
return this.localDBDataPullService.getLastPullInfo();
|
|
384
|
-
}
|
|
385
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
class LastPushInfoOperation {
|
|
389
|
-
constructor(changeLogService) {
|
|
390
|
-
this.changeLogService = changeLogService;
|
|
391
|
-
this.name = 'lastPushInfo';
|
|
392
|
-
this.model = {
|
|
393
|
-
successfulTaskCount: 0,
|
|
394
|
-
failedTaskCount: 0,
|
|
395
|
-
completedTaskCount: 0,
|
|
396
|
-
totalTaskCount: 0,
|
|
397
|
-
startTime: new Date().toJSON(),
|
|
398
|
-
endTime: new Date().toJSON()
|
|
399
|
-
};
|
|
400
|
-
this.properties = [
|
|
401
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true },
|
|
402
|
-
{ target: 'spinnerContext', hide: false },
|
|
403
|
-
{ target: 'spinnerMessage', hide: false }
|
|
404
|
-
];
|
|
405
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
406
|
-
}
|
|
407
|
-
invoke(variable, options, dataBindings) {
|
|
408
|
-
if (window['SQLitePlugin']) {
|
|
409
|
-
return this.changeLogService.getLastPushInfo();
|
|
410
|
-
}
|
|
411
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
class ImportDBOperation {
|
|
415
|
-
constructor(fileSelectorService, localDBManagementService) {
|
|
416
|
-
this.fileSelectorService = fileSelectorService;
|
|
417
|
-
this.localDBManagementService = localDBManagementService;
|
|
418
|
-
this.name = 'importDB';
|
|
419
|
-
this.model = {};
|
|
420
|
-
this.properties = [
|
|
421
|
-
{ target: 'spinnerContext', hide: false },
|
|
422
|
-
{ target: 'spinnerMessage', hide: false }
|
|
423
|
-
];
|
|
424
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
425
|
-
}
|
|
426
|
-
invoke(variable, options, dataBindings) {
|
|
427
|
-
if (window['SQLitePlugin']) {
|
|
428
|
-
return this.fileSelectorService.selectFiles(false, 'zip')
|
|
429
|
-
.then(files => {
|
|
430
|
-
if (files && files.length) {
|
|
431
|
-
return this.localDBManagementService.importDB(files[0].path, true);
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
class PullOperation {
|
|
439
|
-
constructor(app, processManagementService, networkService, securityService, localDBDataPullService) {
|
|
440
|
-
this.app = app;
|
|
441
|
-
this.processManagementService = processManagementService;
|
|
442
|
-
this.networkService = networkService;
|
|
443
|
-
this.securityService = securityService;
|
|
444
|
-
this.localDBDataPullService = localDBDataPullService;
|
|
445
|
-
this.name = 'pull';
|
|
446
|
-
this.model = {
|
|
447
|
-
totalTaskCount: 0,
|
|
448
|
-
completedTaskCount: 0,
|
|
449
|
-
inProgress: false
|
|
450
|
-
};
|
|
451
|
-
this.properties = [
|
|
452
|
-
{ target: 'clearData', type: 'boolean', widgettype: 'boolean-inputfirst', value: true, group: 'properties', subGroup: 'behavior' },
|
|
453
|
-
{ target: 'startUpdate', type: 'boolean', hide: false },
|
|
454
|
-
{ target: 'onBefore', hide: false },
|
|
455
|
-
{ target: 'onProgress', hide: false },
|
|
456
|
-
{ target: 'showProgress', hide: false }
|
|
457
|
-
];
|
|
458
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
459
|
-
}
|
|
460
|
-
invoke(variable, options, dataBindings) {
|
|
461
|
-
let progressInstance;
|
|
462
|
-
return canExecute(variable, this.networkService, this.securityService)
|
|
463
|
-
.then(() => {
|
|
464
|
-
if (variable.showProgress) {
|
|
465
|
-
return this.processManagementService.createInstance(this.app.appLocale.LABEL_DATA_PULL_PROGRESS, 0, 0);
|
|
466
|
-
}
|
|
467
|
-
return null;
|
|
468
|
-
}).then((instance) => {
|
|
469
|
-
const progressObserver = {
|
|
470
|
-
next: (pullInfo) => {
|
|
471
|
-
// variable.dataSet = progress; Todo: progress
|
|
472
|
-
variables.initiateCallback('onProgress', variable, pullInfo);
|
|
473
|
-
if (progressInstance) {
|
|
474
|
-
progressInstance.set('max', pullInfo.totalRecordsToPull);
|
|
475
|
-
progressInstance.set('value', pullInfo.totalPulledRecordCount);
|
|
476
|
-
}
|
|
477
|
-
}, error: i1.noop, complete: i1.noop
|
|
478
|
-
};
|
|
479
|
-
const clearData = variable.clearData === 'true' || variable.clearData === true, pullPromise = this.localDBDataPullService.pullAllDbData(clearData, progressObserver);
|
|
480
|
-
if (instance) {
|
|
481
|
-
progressInstance = instance;
|
|
482
|
-
progressInstance.set('stopButtonLabel', this.app.appLocale.LABEL_DATA_PULL_PROGRESS_STOP_BTN);
|
|
483
|
-
progressInstance.set('onStop', () => {
|
|
484
|
-
this.localDBDataPullService.cancel(pullPromise);
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
return pullPromise;
|
|
488
|
-
}).catch(pullInfo => pullInfo)
|
|
489
|
-
.then(pullInfo => {
|
|
490
|
-
if (progressInstance) {
|
|
491
|
-
progressInstance.destroy();
|
|
492
|
-
}
|
|
493
|
-
return pullInfo;
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
class PushOperation {
|
|
498
|
-
constructor(app, changeLogService, processManagementService, networkService, securityService) {
|
|
499
|
-
this.app = app;
|
|
500
|
-
this.changeLogService = changeLogService;
|
|
501
|
-
this.processManagementService = processManagementService;
|
|
502
|
-
this.networkService = networkService;
|
|
503
|
-
this.securityService = securityService;
|
|
504
|
-
this.name = 'push';
|
|
505
|
-
this.model = {
|
|
506
|
-
successfulTaskCount: 0,
|
|
507
|
-
failedTaskCount: 0,
|
|
508
|
-
completedTaskCount: 0,
|
|
509
|
-
totalTaskCount: 0,
|
|
510
|
-
inProgress: false
|
|
511
|
-
};
|
|
512
|
-
this.properties = [
|
|
513
|
-
{ target: 'onBefore', hide: false },
|
|
514
|
-
{ target: 'onProgress', hide: false },
|
|
515
|
-
{ target: 'showProgress', 'hide': false, 'value': true }
|
|
516
|
-
];
|
|
517
|
-
this.requiredCordovaPlugins = REQUIRED_PLUGINS;
|
|
518
|
-
}
|
|
519
|
-
invoke(variable, options, dataBindings) {
|
|
520
|
-
let progressInstance;
|
|
521
|
-
if (this.changeLogService.isFlushInProgress()) {
|
|
522
|
-
return Promise.resolve();
|
|
523
|
-
}
|
|
524
|
-
return canExecute(variable, this.networkService, this.securityService)
|
|
525
|
-
.then(() => getOfflineChanges(this.changeLogService))
|
|
526
|
-
.then(changes => {
|
|
527
|
-
if (changes.pendingToSync.total <= 0) {
|
|
528
|
-
return Promise.reject(lodashEs.clone(this.model));
|
|
529
|
-
}
|
|
530
|
-
}).then(() => {
|
|
531
|
-
if (variable.showProgress) {
|
|
532
|
-
return this.processManagementService.createInstance(this.app.appLocale.LABEL_DATA_PUSH_PROGRESS, 0, 0);
|
|
533
|
-
}
|
|
534
|
-
return null;
|
|
535
|
-
}).then((instance) => {
|
|
536
|
-
const progressObserver = {
|
|
537
|
-
next: (pushInfo) => {
|
|
538
|
-
pushInfo = addOldPropertiesForPushData(pushInfo);
|
|
539
|
-
variables.initiateCallback('onProgress', variable, pushInfo);
|
|
540
|
-
if (progressInstance) {
|
|
541
|
-
progressInstance.set('max', pushInfo.totalTaskCount);
|
|
542
|
-
progressInstance.set('value', pushInfo.completedTaskCount);
|
|
543
|
-
}
|
|
544
|
-
}, error: i1.noop, complete: i1.noop
|
|
545
|
-
};
|
|
546
|
-
const pushPromise = this.changeLogService.flush(progressObserver);
|
|
547
|
-
if (instance) {
|
|
548
|
-
progressInstance = instance;
|
|
549
|
-
progressInstance.set('stopButtonLabel', this.app.appLocale.LABEL_DATA_PUSH_PROGRESS_STOP_BTN);
|
|
550
|
-
progressInstance.set('onStop', () => this.changeLogService.stop());
|
|
551
|
-
}
|
|
552
|
-
return pushPromise;
|
|
553
|
-
})
|
|
554
|
-
.catch(pushInfo => pushInfo)
|
|
555
|
-
.then(pushInfo => {
|
|
556
|
-
if (progressInstance) {
|
|
557
|
-
progressInstance.destroy();
|
|
558
|
-
}
|
|
559
|
-
if (pushInfo && pushInfo.totalTaskCount !== undefined) {
|
|
560
|
-
pushInfo = addOldPropertiesForPushData(pushInfo);
|
|
561
|
-
if (pushInfo.failedTaskCount !== 0) {
|
|
562
|
-
return Promise.reject(pushInfo);
|
|
563
|
-
}
|
|
564
|
-
return pushInfo;
|
|
565
|
-
}
|
|
566
|
-
return Promise.reject(pushInfo);
|
|
567
|
-
});
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* This function adds the old properties to the push dataSet to support old projects.
|
|
572
|
-
* @param data
|
|
573
|
-
* @returns {*}
|
|
574
|
-
*/
|
|
575
|
-
const addOldPropertiesForPushData = data => {
|
|
576
|
-
const result = lodashEs.clone(data);
|
|
577
|
-
result.success = data.successfulTaskCount;
|
|
578
|
-
result.error = data.failedTaskCount;
|
|
579
|
-
result.completed = data.completedTaskCount;
|
|
580
|
-
result.total = data.totalTaskCount;
|
|
581
|
-
return result;
|
|
582
|
-
};
|
|
583
|
-
const canExecute = (variable, networkService, securityService) => {
|
|
584
|
-
if (!window['SQLitePlugin']) {
|
|
585
|
-
return Promise.reject(OFFLINE_PLUGIN_NOT_FOUND);
|
|
586
|
-
}
|
|
587
|
-
if (!networkService.isConnected()) {
|
|
588
|
-
return Promise.reject(APP_IS_OFFLINE);
|
|
589
|
-
}
|
|
590
|
-
return i1.toPromise(variables.initiateCallback(variables.VARIABLE_CONSTANTS.EVENT.BEFORE, variable, null))
|
|
591
|
-
.then(proceed => {
|
|
592
|
-
if (proceed === false) {
|
|
593
|
-
return Promise.reject(ON_BEFORE_BLOCKED);
|
|
594
|
-
}
|
|
595
|
-
// If user is authenticated and online, then start the data pull process.
|
|
596
|
-
return securityService.onUserLogin();
|
|
597
|
-
});
|
|
598
|
-
};
|
|
599
|
-
const generateChangeSet = (changes) => {
|
|
600
|
-
const createChanges = lodashEs.filter(changes, c => {
|
|
601
|
-
return c.service === 'DatabaseService' &&
|
|
602
|
-
(c.operation === 'insertTableData'
|
|
603
|
-
|| c.operation === 'insertMultiPartTableData');
|
|
604
|
-
}), updateChanges = lodashEs.filter(changes, c => {
|
|
605
|
-
return c.service === 'DatabaseService' &&
|
|
606
|
-
(c.operation === 'updateTableData'
|
|
607
|
-
|| c.operation === 'updateMultiPartTableData');
|
|
608
|
-
});
|
|
609
|
-
return {
|
|
610
|
-
total: changes ? changes.length : 0,
|
|
611
|
-
database: {
|
|
612
|
-
create: createChanges,
|
|
613
|
-
update: updateChanges,
|
|
614
|
-
delete: lodashEs.filter(changes, { service: 'DatabaseService', operation: 'deleteTableData' })
|
|
615
|
-
},
|
|
616
|
-
uploads: lodashEs.filter(changes, { service: 'OfflineFileUploadService', operation: 'uploadToServer' })
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
const getOfflineChanges = (changeLogService) => {
|
|
620
|
-
return changeLogService.getChanges().then(changes => {
|
|
621
|
-
return {
|
|
622
|
-
'total': changes ? changes.length : 0,
|
|
623
|
-
'pendingToSync': generateChangeSet(lodashEs.filter(changes, { 'hasError': 0 })),
|
|
624
|
-
'failedToSync': generateChangeSet(lodashEs.filter(changes, { 'hasError': 1 }))
|
|
625
|
-
};
|
|
626
|
-
});
|
|
627
|
-
};
|
|
628
|
-
|
|
629
|
-
const PERMISSION_DENIED_ONCE = "DENIED_ONCE";
|
|
630
|
-
/**
|
|
631
|
-
* This class handles 'getCurrentGeoPosition' device operation.
|
|
632
|
-
*/
|
|
633
|
-
class CurrentGeoPositionOperation {
|
|
634
|
-
constructor(app, geoLocation, locationAccuracyService, diagnosticService) {
|
|
635
|
-
this.app = app;
|
|
636
|
-
this.geoLocation = geoLocation;
|
|
637
|
-
this.locationAccuracyService = locationAccuracyService;
|
|
638
|
-
this.diagnosticService = diagnosticService;
|
|
639
|
-
this.name = 'getCurrentGeoPosition';
|
|
640
|
-
this.model = {
|
|
641
|
-
coords: {
|
|
642
|
-
latitude: 0,
|
|
643
|
-
longitude: 0,
|
|
644
|
-
altitude: 0,
|
|
645
|
-
accuracy: 0,
|
|
646
|
-
altitudeAccuracy: 0,
|
|
647
|
-
heading: 0,
|
|
648
|
-
speed: 0
|
|
649
|
-
},
|
|
650
|
-
timestamp: 0
|
|
651
|
-
};
|
|
652
|
-
this.properties = [
|
|
653
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true },
|
|
654
|
-
{ target: 'autoUpdate', type: 'boolean', value: true, hide: true },
|
|
655
|
-
{ target: 'geolocationHighAccuracy', type: 'boolean', value: true, dataBinding: true },
|
|
656
|
-
{ target: 'geolocationMaximumAge', type: 'number', value: 3, dataBinding: true },
|
|
657
|
-
{ target: 'geolocationTimeout', type: 'number', value: 5, dataBinding: true },
|
|
658
|
-
];
|
|
659
|
-
this.requiredCordovaPlugins = ['GEOLOCATION'];
|
|
660
|
-
this.waitingQueue = [];
|
|
661
|
-
this.locationRequestedAlready = false;
|
|
662
|
-
this.options = {
|
|
663
|
-
maximumAge: 3000,
|
|
664
|
-
timeout: (2 * 60) * 1000,
|
|
665
|
-
enableHighAccuracy: true
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
watchPosition() {
|
|
669
|
-
if (this.watchId) {
|
|
670
|
-
navigator.geolocation.clearWatch(this.watchId);
|
|
671
|
-
this.watchId = null;
|
|
672
|
-
}
|
|
673
|
-
const options = window['WM_GEO_LOCATION_OPTIONS'] || this.options;
|
|
674
|
-
this.watchId = navigator.geolocation.watchPosition(position => {
|
|
675
|
-
this.lastKnownPosition = {
|
|
676
|
-
coords: {
|
|
677
|
-
latitude: position.coords.latitude,
|
|
678
|
-
longitude: position.coords.longitude,
|
|
679
|
-
altitude: position.coords.altitude,
|
|
680
|
-
accuracy: position.coords.accuracy,
|
|
681
|
-
altitudeAccuracy: position.coords.altitudeAccuracy,
|
|
682
|
-
heading: position.coords.heading,
|
|
683
|
-
speed: position.coords.speed
|
|
684
|
-
},
|
|
685
|
-
timestamp: position.timestamp
|
|
686
|
-
};
|
|
687
|
-
if (this.waitingQueue.length > 0) {
|
|
688
|
-
this.waitingQueue.forEach(fn => fn(this.lastKnownPosition));
|
|
689
|
-
this.waitingQueue.length = 0;
|
|
690
|
-
}
|
|
691
|
-
$(document).off('touchend.usergesture');
|
|
692
|
-
}, () => {
|
|
693
|
-
this.watchId = null;
|
|
694
|
-
}, options);
|
|
695
|
-
}
|
|
696
|
-
geoLocationService(variable, options, dataBindings) {
|
|
697
|
-
if (!this.watchId || !this.lastKnownPosition) {
|
|
698
|
-
this.watchPosition();
|
|
699
|
-
$(document).on('touchend.usergesture', () => this.watchPosition());
|
|
700
|
-
}
|
|
701
|
-
({
|
|
702
|
-
maximumAge: dataBindings.get('geolocationMaximumAge') * 1000,
|
|
703
|
-
timeout: dataBindings.get('geolocationTimeout') * 1000,
|
|
704
|
-
enableHighAccuracy: dataBindings.get('geolocationHighAccuracy')
|
|
705
|
-
});
|
|
706
|
-
if (this.lastKnownPosition) {
|
|
707
|
-
return Promise.resolve(this.lastKnownPosition);
|
|
708
|
-
}
|
|
709
|
-
return new Promise(resolve => {
|
|
710
|
-
const c = position => {
|
|
711
|
-
resolve(position);
|
|
712
|
-
};
|
|
713
|
-
setTimeout(() => {
|
|
714
|
-
const index = this.waitingQueue.indexOf(c);
|
|
715
|
-
if (index > -1) {
|
|
716
|
-
this.waitingQueue.splice(index, 1);
|
|
717
|
-
resolve(this.model);
|
|
718
|
-
}
|
|
719
|
-
}, this.options.timeout);
|
|
720
|
-
this.waitingQueue.push(c);
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
requestLocationService(variable, options, dataBindings) {
|
|
724
|
-
return this.locationAccuracyService.canRequest()
|
|
725
|
-
.then((canRequest) => {
|
|
726
|
-
if (canRequest && !this.locationRequestedAlready) {
|
|
727
|
-
//In iOS, Only once location service request can be made, Repeated access will be blocked by OS
|
|
728
|
-
//https://github.com/dpa99c/cordova-plugin-request-location-accuracy#ios-cancel-button-caveat
|
|
729
|
-
this.locationRequestedAlready = i1.isIos();
|
|
730
|
-
return this.locationAccuracyService.request(this.locationAccuracyService.REQUEST_PRIORITY_HIGH_ACCURACY);
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
if (i1.isIos() && confirm(this.app.appLocale.MESSAGE_REQUEST_LOCATION_PERMISSION)) {
|
|
734
|
-
this.diagnosticService.switchToSettings();
|
|
735
|
-
return Promise.reject();
|
|
736
|
-
}
|
|
737
|
-
return Promise.resolve();
|
|
738
|
-
}
|
|
739
|
-
})
|
|
740
|
-
.then(() => {
|
|
741
|
-
return this.geoLocationService(variable, options, dataBindings);
|
|
742
|
-
})
|
|
743
|
-
.catch((e) => {
|
|
744
|
-
if (e && e.code
|
|
745
|
-
&& e.code !== this.locationAccuracyService.ERROR_USER_DISAGREED
|
|
746
|
-
&& e.code !== this.locationAccuracyService.ERROR_CANNOT_CHANGE_ACCURACY) {
|
|
747
|
-
if (confirm(this.app.appLocale.MESSAGE_REQUEST_LOCATION_PERMISSION)) {
|
|
748
|
-
this.diagnosticService.switchToSettings();
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
return Promise.resolve(this.lastKnownPosition ? this.lastKnownPosition : this.model);
|
|
752
|
-
});
|
|
753
|
-
}
|
|
754
|
-
handleLocationAuthorizationStatus(variable, options, dataBindings, permissionStatus) {
|
|
755
|
-
this.previousPermissionStatus = this.currentPermissionStatus;
|
|
756
|
-
this.currentPermissionStatus = permissionStatus;
|
|
757
|
-
switch (permissionStatus) {
|
|
758
|
-
case this.diagnosticService.permissionStatus.GRANTED_WHEN_IN_USE:
|
|
759
|
-
case this.diagnosticService.permissionStatus.GRANTED: {
|
|
760
|
-
return this.onLocationGranted(variable, options, dataBindings);
|
|
761
|
-
}
|
|
762
|
-
case PERMISSION_DENIED_ONCE: {
|
|
763
|
-
return this.requestLocationService(variable, options, dataBindings);
|
|
764
|
-
}
|
|
765
|
-
case this.diagnosticService.permissionStatus.DENIED_ALWAYS: {
|
|
766
|
-
if (i1.isIos()) {
|
|
767
|
-
//iOS Location Service Turned Off returns DENIED_ALWAYS
|
|
768
|
-
return this.requestLocationService(variable, options, dataBindings);
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
if (confirm(this.app.appLocale.MESSAGE_REQUEST_LOCATION_PERMISSION)) {
|
|
772
|
-
this.diagnosticService.switchToSettings();
|
|
773
|
-
}
|
|
774
|
-
return Promise.resolve(this.model);
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
case this.diagnosticService.permissionStatus.NOT_REQUESTED: {
|
|
778
|
-
return this.requestLocationAuthorization(variable, options, dataBindings);
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
requestLocationAuthorization(variable, options, dataBindings) {
|
|
783
|
-
return this.diagnosticService.requestLocationAuthorization()
|
|
784
|
-
.then((permissionStatus) => {
|
|
785
|
-
return this.handleLocationAuthorizationStatus(variable, options, dataBindings, permissionStatus);
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
requestLocationAccuracy(variable, options, dataBindings) {
|
|
789
|
-
return this.diagnosticService.getLocationAuthorizationStatus()
|
|
790
|
-
.then((permissionStatus) => {
|
|
791
|
-
return this.handleLocationAuthorizationStatus(variable, options, dataBindings, permissionStatus);
|
|
792
|
-
})
|
|
793
|
-
.catch((e) => {
|
|
794
|
-
//In case of device older than Android 6, Due to absence of Permission Check API.
|
|
795
|
-
return this.geoLocationService(variable, options, dataBindings);
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
onLocationGranted(variable, options, dataBindings) {
|
|
799
|
-
//iOS updates 'Granted' Only if Location service is turned On
|
|
800
|
-
//Android updates 'Granted' even if Location service is turned Off
|
|
801
|
-
if (i1.isIos()) {
|
|
802
|
-
return this.geoLocationService(variable, options, dataBindings);
|
|
803
|
-
}
|
|
804
|
-
else if (i1.isAndroid()
|
|
805
|
-
&& parseInt(i1.getAndroidVersion(), 10) <= 10
|
|
806
|
-
&& this.previousPermissionStatus === PERMISSION_DENIED_ONCE
|
|
807
|
-
&& this.currentPermissionStatus === this.diagnosticService.permissionStatus.GRANTED_WHEN_IN_USE
|
|
808
|
-
&& !this.lastKnownPosition) {
|
|
809
|
-
//Below Android 11, Chrome webview of Cordova is not updating the permission status from "denied" to "allowed" and throwing the below message
|
|
810
|
-
//"application does not have sufficient geolocation permissions" For navigator.geolocation.watchPosition method
|
|
811
|
-
//Hence we are reloading the webview manually
|
|
812
|
-
location.reload();
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
return this.requestLocationService(variable, options, dataBindings);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
invoke(variable, options, dataBindings) {
|
|
819
|
-
if (cordova['plugins'] && cordova['plugins']['locationAccuracy']) {
|
|
820
|
-
return this.requestLocationAccuracy(variable, options, dataBindings);
|
|
821
|
-
}
|
|
822
|
-
else {
|
|
823
|
-
return this.geoLocationService(variable, options, dataBindings);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
/**
|
|
829
|
-
* this file contains all device operations under 'device' service.
|
|
830
|
-
*/
|
|
831
|
-
class DeviceService extends variables.DeviceVariableService {
|
|
832
|
-
constructor(app, appVersion, device, geoLocation, networkService, vibrateService, locationAccuracyService, diagnosticService) {
|
|
833
|
-
super();
|
|
834
|
-
this.name = 'device';
|
|
835
|
-
this.operations = [];
|
|
836
|
-
this.operations.push(new AppInfoOperation(device, appVersion), new CurrentGeoPositionOperation(app, geoLocation, locationAccuracyService, diagnosticService), new DeviceInfoOperation(device), new GetNetworkInfoOperation(app, networkService), new GoOfflineOperation(networkService), new GoOnlineOperation(networkService), new VibrateOperation(vibrateService));
|
|
837
|
-
app.subscribe('onNetworkStateChange', data => {
|
|
838
|
-
app.networkStatus = data;
|
|
839
|
-
i1.$appDigest();
|
|
840
|
-
});
|
|
841
|
-
app.networkStatus = {
|
|
842
|
-
isConnecting: false,
|
|
843
|
-
isConnected: true,
|
|
844
|
-
isNetworkAvailable: true,
|
|
845
|
-
isServiceAvailable: true
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
/**
|
|
850
|
-
* This class handles 'getAppInfo' device operation.
|
|
851
|
-
*/
|
|
852
|
-
class AppInfoOperation {
|
|
853
|
-
constructor(device, appVersion) {
|
|
854
|
-
this.device = device;
|
|
855
|
-
this.appVersion = appVersion;
|
|
856
|
-
this.name = 'getAppInfo';
|
|
857
|
-
this.model = {
|
|
858
|
-
appversion: 'X.X.X',
|
|
859
|
-
cordovaversion: 'X.X.X'
|
|
860
|
-
};
|
|
861
|
-
this.properties = [
|
|
862
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true }
|
|
863
|
-
];
|
|
864
|
-
}
|
|
865
|
-
invoke(variable, options) {
|
|
866
|
-
const cordovaVersion = this.device.cordova;
|
|
867
|
-
return this.appVersion.getVersionNumber().then(appVersion => {
|
|
868
|
-
return {
|
|
869
|
-
appversion: appVersion,
|
|
870
|
-
cordovaversion: cordovaVersion
|
|
871
|
-
};
|
|
872
|
-
});
|
|
873
|
-
}
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* This class handles 'getDeviceInfo' device operation.
|
|
877
|
-
*/
|
|
878
|
-
class DeviceInfoOperation {
|
|
879
|
-
constructor(device) {
|
|
880
|
-
this.device = device;
|
|
881
|
-
this.name = 'getDeviceInfo';
|
|
882
|
-
this.model = {
|
|
883
|
-
deviceModel: 'DEVICEMODEL',
|
|
884
|
-
os: 'DEVICEOS',
|
|
885
|
-
osVersion: 'X.X.X',
|
|
886
|
-
deviceUUID: 'DEVICEUUID'
|
|
887
|
-
};
|
|
888
|
-
this.properties = [
|
|
889
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true }
|
|
890
|
-
];
|
|
891
|
-
}
|
|
892
|
-
invoke(variable, options) {
|
|
893
|
-
const response = {
|
|
894
|
-
'deviceModel': this.device.model,
|
|
895
|
-
'os': this.device.platform,
|
|
896
|
-
'osVersion': this.device.version,
|
|
897
|
-
'deviceUUID': this.device.uuid
|
|
898
|
-
};
|
|
899
|
-
return Promise.resolve(response);
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
class GetNetworkInfoOperation {
|
|
903
|
-
constructor(app, networkService) {
|
|
904
|
-
this.app = app;
|
|
905
|
-
this.networkService = networkService;
|
|
906
|
-
this.name = 'getNetworkInfo';
|
|
907
|
-
this.model = {
|
|
908
|
-
connectionType: 'NONE',
|
|
909
|
-
isConnecting: false,
|
|
910
|
-
isNetworkAvailable: true,
|
|
911
|
-
isOnline: true,
|
|
912
|
-
isOffline: false
|
|
913
|
-
};
|
|
914
|
-
this.properties = [
|
|
915
|
-
{ target: 'autoUpdate', type: 'boolean', value: true, hide: true },
|
|
916
|
-
{ target: 'startUpdate', type: 'boolean', value: true, hide: true },
|
|
917
|
-
{ target: 'networkStatus', type: 'object', value: 'bind:App.networkStatus', dataBinding: true, hide: true },
|
|
918
|
-
{ target: 'onOnline', hide: false },
|
|
919
|
-
{ target: 'onOffline', hide: false }
|
|
920
|
-
];
|
|
921
|
-
this.requiredCordovaPlugins = ['NETWORK'];
|
|
922
|
-
}
|
|
923
|
-
invoke(variable, options, dataBindings) {
|
|
924
|
-
const data = {
|
|
925
|
-
connectionType: navigator.connection.type,
|
|
926
|
-
isConnecting: this.app.networkStatus.isConnecting,
|
|
927
|
-
isNetworkAvailable: this.app.networkStatus.isNetworkAvailable,
|
|
928
|
-
isOnline: this.app.networkStatus.isConnected,
|
|
929
|
-
isOffline: !this.app.networkStatus.isConnected
|
|
930
|
-
};
|
|
931
|
-
if (this.networkService.isConnected()) {
|
|
932
|
-
variables.initiateCallback('onOnline', variable, data);
|
|
933
|
-
}
|
|
934
|
-
else {
|
|
935
|
-
variables.initiateCallback('onOffline', variable, data);
|
|
936
|
-
}
|
|
937
|
-
return Promise.resolve(data);
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
class GoOfflineOperation {
|
|
941
|
-
constructor(networkService) {
|
|
942
|
-
this.networkService = networkService;
|
|
943
|
-
this.name = 'goOffline';
|
|
944
|
-
this.model = {};
|
|
945
|
-
this.properties = [];
|
|
946
|
-
this.requiredCordovaPlugins = ['NETWORK'];
|
|
947
|
-
}
|
|
948
|
-
invoke(variable, options, dataBindings) {
|
|
949
|
-
return this.networkService.disconnect();
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
class GoOnlineOperation {
|
|
953
|
-
constructor(networkService) {
|
|
954
|
-
this.networkService = networkService;
|
|
955
|
-
this.name = 'goOnline';
|
|
956
|
-
this.model = {};
|
|
957
|
-
this.properties = [];
|
|
958
|
-
this.requiredCordovaPlugins = ['NETWORK'];
|
|
959
|
-
}
|
|
960
|
-
invoke(variable, options, dataBindings) {
|
|
961
|
-
return this.networkService.connect();
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* This class handles 'vibrate' device operation.
|
|
966
|
-
*/
|
|
967
|
-
class VibrateOperation {
|
|
968
|
-
constructor(vibrationService) {
|
|
969
|
-
this.vibrationService = vibrationService;
|
|
970
|
-
this.name = 'vibrate';
|
|
971
|
-
this.model = {
|
|
972
|
-
appversion: 'X.X.X',
|
|
973
|
-
cordovaversion: 'X.X.X'
|
|
974
|
-
};
|
|
975
|
-
this.properties = [
|
|
976
|
-
{ target: 'vibrationtime', type: 'number', value: 2, dataBinding: true }
|
|
977
|
-
];
|
|
978
|
-
this.requiredCordovaPlugins = ['VIBRATE'];
|
|
979
|
-
}
|
|
980
|
-
invoke(variable, options, dataBindings) {
|
|
981
|
-
this.vibrationService.vibrate(dataBindings.get('vibrationtime') * 1000);
|
|
982
|
-
return Promise.resolve();
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
class ContactsService extends variables.DeviceVariableService {
|
|
987
|
-
constructor() {
|
|
988
|
-
super();
|
|
989
|
-
this.name = 'contacts';
|
|
990
|
-
this.operations = [];
|
|
991
|
-
this.operations.push(new GetContactsOperation());
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
class GetContactsOperation {
|
|
995
|
-
constructor() {
|
|
996
|
-
this.name = 'getContacts';
|
|
997
|
-
this.model = {
|
|
998
|
-
id: '',
|
|
999
|
-
displayName: '',
|
|
1000
|
-
phoneNumbers: [{ value: '' }]
|
|
1001
|
-
};
|
|
1002
|
-
this.properties = [
|
|
1003
|
-
{ target: 'startUpdate', type: 'boolean' },
|
|
1004
|
-
{ target: 'autoUpdate', type: 'boolean' },
|
|
1005
|
-
{ target: 'contactFilter', type: 'string', value: '', dataBinding: true }
|
|
1006
|
-
];
|
|
1007
|
-
this.requiredCordovaPlugins = ['CONTACTS'];
|
|
1008
|
-
this.waitingCalls = [];
|
|
1009
|
-
}
|
|
1010
|
-
extractDisplayName(c) {
|
|
1011
|
-
const name = c.displayName;
|
|
1012
|
-
// In IOS, displayName is undefined, so using the formatted name.
|
|
1013
|
-
if (!name || name === '') {
|
|
1014
|
-
if (c.name.formatted) {
|
|
1015
|
-
return c.name.formatted;
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
return name;
|
|
1019
|
-
}
|
|
1020
|
-
processNextCall() {
|
|
1021
|
-
if (this.waitingCalls.length > 0) {
|
|
1022
|
-
this.waitingCalls[0]();
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
findContacts(requiredFields, findOptions) {
|
|
1026
|
-
return new Promise((resolve, reject) => {
|
|
1027
|
-
// Contacts plugin is not processing two simultaneous calls. It is anwsering to only call.
|
|
1028
|
-
this.waitingCalls.push(() => {
|
|
1029
|
-
new Promise((resolve, reject) => {
|
|
1030
|
-
navigator.contacts.find(requiredFields, resolve, reject, findOptions);
|
|
1031
|
-
}).then((data) => {
|
|
1032
|
-
if (data != null) {
|
|
1033
|
-
const contacts = data.filter(c => {
|
|
1034
|
-
c.displayName = this.extractDisplayName(c);
|
|
1035
|
-
return c.phoneNumbers && c.phoneNumbers.length > 0;
|
|
1036
|
-
});
|
|
1037
|
-
resolve(contacts);
|
|
1038
|
-
}
|
|
1039
|
-
}, reject).then(() => {
|
|
1040
|
-
this.waitingCalls.shift();
|
|
1041
|
-
this.processNextCall();
|
|
1042
|
-
});
|
|
1043
|
-
});
|
|
1044
|
-
if (this.waitingCalls.length === 1) {
|
|
1045
|
-
this.processNextCall();
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
invoke(variable, options, dataBindings) {
|
|
1050
|
-
const requiredFields = ['displayName', 'name'];
|
|
1051
|
-
const findOptions = {
|
|
1052
|
-
filter: dataBindings.get('contactFilter'),
|
|
1053
|
-
multiple: true
|
|
1054
|
-
};
|
|
1055
|
-
return this.findContacts(requiredFields, findOptions);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
const barcodeFormatOptions = {
|
|
1060
|
-
'ALL': 'ALL',
|
|
1061
|
-
'CODABAR': 'CODABAR (not supported in iOS)',
|
|
1062
|
-
'CODE_39': 'CODE_39',
|
|
1063
|
-
'CODE_93': 'CODE_93 (not supported in iOS)',
|
|
1064
|
-
'CODE_128': 'CODE_128',
|
|
1065
|
-
'DATA_MATRIX': 'DATA_MATRIX',
|
|
1066
|
-
'EAN_8': 'EAN_8',
|
|
1067
|
-
'EAN_13': 'EAN_13',
|
|
1068
|
-
'ITF': 'ITF',
|
|
1069
|
-
'PDF_417': 'PDF_417 (not supported in iOS)',
|
|
1070
|
-
'QR_CODE': 'QR_CODE',
|
|
1071
|
-
'RSS14': 'RSS14 (not supported in iOS)',
|
|
1072
|
-
'RSS_EXPANDED': 'RSS_EXPANDED (not supported in iOS)',
|
|
1073
|
-
'UPC_E': 'UPC_E',
|
|
1074
|
-
'UPC_A': 'UPC_A'
|
|
1075
|
-
};
|
|
1076
|
-
class ScanService extends variables.DeviceVariableService {
|
|
1077
|
-
constructor(barcodeScanner) {
|
|
1078
|
-
super();
|
|
1079
|
-
this.name = 'scan';
|
|
1080
|
-
this.operations = [];
|
|
1081
|
-
this.operations.push(new ScanOperation(barcodeScanner));
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
1084
|
-
class ScanOperation {
|
|
1085
|
-
constructor(barcodeScanner) {
|
|
1086
|
-
this.barcodeScanner = barcodeScanner;
|
|
1087
|
-
this.name = 'scanBarCode';
|
|
1088
|
-
this.model = {
|
|
1089
|
-
text: 'BAR CODE',
|
|
1090
|
-
format: 'TEXT',
|
|
1091
|
-
cancelled: false
|
|
1092
|
-
};
|
|
1093
|
-
this.properties = [
|
|
1094
|
-
{
|
|
1095
|
-
target: 'barcodeFormat',
|
|
1096
|
-
type: 'list',
|
|
1097
|
-
options: barcodeFormatOptions,
|
|
1098
|
-
value: 'ALL',
|
|
1099
|
-
group: 'properties',
|
|
1100
|
-
subGroup: 'behavior',
|
|
1101
|
-
hide: false
|
|
1102
|
-
}
|
|
1103
|
-
];
|
|
1104
|
-
this.requiredCordovaPlugins = ['BARCODE_SCANNER'];
|
|
1105
|
-
}
|
|
1106
|
-
invoke(variable, options) {
|
|
1107
|
-
let scanOptions = {
|
|
1108
|
-
showFlipCameraButton: true,
|
|
1109
|
-
showTorchButton: true
|
|
1110
|
-
};
|
|
1111
|
-
if (variable.barcodeFormat && variable.barcodeFormat !== 'ALL') {
|
|
1112
|
-
scanOptions.formats = variable.barcodeFormat;
|
|
1113
|
-
}
|
|
1114
|
-
return this.barcodeScanner.scan(scanOptions);
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
class VariablesModule {
|
|
1119
|
-
static { this.initialized = false; }
|
|
1120
|
-
// Device variable services have to be added only once in the app life-cycle.
|
|
1121
|
-
static initialize(app, appVersion, barcodeScanner, changeLogService, calendar, camera, fileOpener, fileSelectorService, fileUploader, device, geoLocation, localDBDataPullService, localDBManagementService, mediaCapture, processManagementService, securityService, networkService, vibrateService, locationAccuracyService, diagnosticService) {
|
|
1122
|
-
if (this.initialized) {
|
|
1123
|
-
return;
|
|
1124
|
-
}
|
|
1125
|
-
this.initialized = true;
|
|
1126
|
-
const deviceVariableManager = variables.VariableManagerFactory.get(variables.VARIABLE_CONSTANTS.CATEGORY.DEVICE);
|
|
1127
|
-
deviceVariableManager.registerService(new CameraService(camera, mediaCapture));
|
|
1128
|
-
deviceVariableManager.registerService(new CalendarService(calendar));
|
|
1129
|
-
deviceVariableManager.registerService(new FileService(fileOpener, fileUploader));
|
|
1130
|
-
deviceVariableManager.registerService(new ContactsService());
|
|
1131
|
-
deviceVariableManager.registerService(new DatasyncService(app, changeLogService, fileSelectorService, localDBManagementService, localDBDataPullService, processManagementService, securityService, networkService));
|
|
1132
|
-
deviceVariableManager.registerService(new DeviceService(app, appVersion, device, geoLocation, networkService, vibrateService, locationAccuracyService, diagnosticService));
|
|
1133
|
-
deviceVariableManager.registerService(new ScanService(barcodeScanner));
|
|
1134
|
-
}
|
|
1135
|
-
constructor(app, appVersion, barcodeScanner, changeLogService, calendar, camera, fileOpener, fileSelectorService, fileUploader, device, geoLocation, localDBDataPullService, localDBManagementService, mediaCapture, processManagementService, securityService, networkService, vibrateService, locationAccuracyService, diagnosticService) {
|
|
1136
|
-
VariablesModule.initialize(app, appVersion, barcodeScanner, changeLogService, calendar, camera, fileOpener, fileSelectorService, fileUploader, device, geoLocation, localDBDataPullService, localDBManagementService, mediaCapture, processManagementService, securityService, networkService, vibrateService, locationAccuracyService, diagnosticService);
|
|
1137
|
-
}
|
|
1138
|
-
static { this.ɵfac = function VariablesModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || VariablesModule)(i0__namespace.ɵɵinject(i1__namespace.App), i0__namespace.ɵɵinject(i2__namespace.AppVersion), i0__namespace.ɵɵinject(i3__namespace.BarcodeScanner), i0__namespace.ɵɵinject(i4__namespace.ChangeLogService), i0__namespace.ɵɵinject(i5__namespace.Calendar), i0__namespace.ɵɵinject(i6__namespace.Camera), i0__namespace.ɵɵinject(i7__namespace.DeviceFileOpenerService), i0__namespace.ɵɵinject(i8__namespace.FileSelectorService), i0__namespace.ɵɵinject(i7__namespace.DeviceFileUploadService), i0__namespace.ɵɵinject(i9__namespace.Device), i0__namespace.ɵɵinject(i10__namespace.Geolocation), i0__namespace.ɵɵinject(i4__namespace.LocalDBDataPullService), i0__namespace.ɵɵinject(i4__namespace.LocalDBManagementService), i0__namespace.ɵɵinject(i11__namespace.MediaCapture), i0__namespace.ɵɵinject(i8__namespace.ProcessManagementService), i0__namespace.ɵɵinject(i12__namespace.SecurityService), i0__namespace.ɵɵinject(i7__namespace.NetworkService), i0__namespace.ɵɵinject(i13__namespace.Vibration), i0__namespace.ɵɵinject(i14__namespace.LocationAccuracy), i0__namespace.ɵɵinject(i15__namespace.Diagnostic)); }; }
|
|
1139
|
-
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: VariablesModule }); }
|
|
1140
|
-
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i4.OfflineModule] }); }
|
|
1141
|
-
}
|
|
1142
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(VariablesModule, [{
|
|
1143
|
-
type: i0.NgModule,
|
|
1144
|
-
args: [{
|
|
1145
|
-
imports: [
|
|
1146
|
-
i4.OfflineModule
|
|
1147
|
-
],
|
|
1148
|
-
declarations: [],
|
|
1149
|
-
providers: [
|
|
1150
|
-
// add providers to mobile-runtime module.
|
|
1151
|
-
]
|
|
1152
|
-
}]
|
|
1153
|
-
}], () => [{ type: i1__namespace.App }, { type: i2__namespace.AppVersion }, { type: i3__namespace.BarcodeScanner }, { type: i4__namespace.ChangeLogService }, { type: i5__namespace.Calendar }, { type: i6__namespace.Camera }, { type: i7__namespace.DeviceFileOpenerService }, { type: i8__namespace.FileSelectorService }, { type: i7__namespace.DeviceFileUploadService }, { type: i9__namespace.Device }, { type: i10__namespace.Geolocation }, { type: i4__namespace.LocalDBDataPullService }, { type: i4__namespace.LocalDBManagementService }, { type: i11__namespace.MediaCapture }, { type: i8__namespace.ProcessManagementService }, { type: i12__namespace.SecurityService }, { type: i7__namespace.NetworkService }, { type: i13__namespace.Vibration }, { type: i14__namespace.LocationAccuracy }, { type: i15__namespace.Diagnostic }], null); })();
|
|
1154
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(VariablesModule, { imports: [i4.OfflineModule] }); })();
|
|
1155
|
-
|
|
1156
|
-
exports.CalendarService = CalendarService;
|
|
1157
|
-
exports.CameraService = CameraService;
|
|
1158
|
-
exports.ContactsService = ContactsService;
|
|
1159
|
-
exports.CurrentGeoPositionOperation = CurrentGeoPositionOperation;
|
|
1160
|
-
exports.DatasyncService = DatasyncService;
|
|
1161
|
-
exports.DeviceService = DeviceService;
|
|
1162
|
-
exports.FileService = FileService;
|
|
1163
|
-
exports.ScanService = ScanService;
|
|
1164
|
-
exports.VariablesModule = VariablesModule;
|
|
1165
|
-
|
|
1166
|
-
}));
|