@wavemaker/app-ng-runtime 12.0.0-next.141131 → 12.0.0-next.141138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/build-task/bundles/index.umd.js +402 -440
- app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/icon/icon.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/default/spinner/spinner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +7 -2
- app-ng-runtime/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +3 -4
- app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/calendar/calendar.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
- app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +6 -2
- app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
- app-ng-runtime/build-task/esm2022/public_api.mjs +1 -3
- app-ng-runtime/build-task/fesm2022/index.mjs +403 -443
- app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/build-task/public_api.d.ts +0 -2
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
- app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/bundles/index.umd.js +22 -69
- app-ng-runtime/components/base/components.module.d.ts +11 -12
- app-ng-runtime/components/base/esm2022/components.module.mjs +1 -5
- app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
- app-ng-runtime/components/base/esm2022/public_api.mjs +1 -2
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
- app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +15 -30
- app-ng-runtime/components/base/fesm2022/index.mjs +23 -69
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
- app-ng-runtime/components/base/public_api.d.ts +0 -1
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +5 -10
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +3 -0
- app-ng-runtime/components/basic/default/bundles/index.umd.js +39 -19
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
- app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +14 -6
- app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
- app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
- app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
- app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
- app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
- app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
- app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
- app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +8 -4
- app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
- app-ng-runtime/components/basic/default/fesm2022/index.mjs +39 -19
- app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
- app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -0
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +17 -9
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +9 -5
- app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
- app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs +17 -9
- app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -0
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/bundles/index.umd.js +35 -40
- app-ng-runtime/components/basic/search/esm2022/search.component.mjs +37 -40
- app-ng-runtime/components/basic/search/esm2022/search.props.mjs +3 -5
- app-ng-runtime/components/basic/search/fesm2022/index.mjs +35 -40
- app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +4 -5
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
- app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
- app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
- app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
- app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
- app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +6 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +7 -14
- app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +2 -3
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +6 -14
- app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +0 -1
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +23 -6
- app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +24 -7
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +23 -6
- app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +1 -0
- app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -3
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -2
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
- app-ng-runtime/components/data/list/bundles/index.umd.js +11 -11
- app-ng-runtime/components/data/list/esm2022/list.component.mjs +12 -12
- app-ng-runtime/components/data/list/fesm2022/index.mjs +11 -11
- app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
- app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
- app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/bundles/index.umd.js +44 -10
- app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +30 -7
- app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
- app-ng-runtime/components/data/table/fesm2022/index.mjs +45 -11
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +8 -1
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
- app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
- app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +0 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +23 -17
- app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
- app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +13 -1
- app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +2 -14
- app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +12 -6
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +24 -18
- app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +7 -25
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -3
- app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +8 -26
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +7 -25
- app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
- app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
- app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
- app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +7 -3
- app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +7 -4
- app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
- app-ng-runtime/components/input/chips/fesm2022/index.mjs +7 -3
- app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
- app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
- app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
- app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
- app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
- app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
- app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
- app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +257 -197
- app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +0 -1
- app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
- app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
- app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +25 -23
- app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
- app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +32 -30
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +60 -30
- app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +39 -64
- app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -2
- app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +1 -4
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +51 -14
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
- app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +9 -6
- app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
- app-ng-runtime/components/input/default/fesm2022/index.mjs +257 -197
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +0 -1
- app-ng-runtime/components/input/default/select/select.component.d.ts +4 -4
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +0 -2
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +4 -2
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +31 -21
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
- app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
- app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +8 -8
- app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +12 -9
- app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
- app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs +28 -18
- app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +241 -112
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +238 -115
- app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +7 -1
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +242 -113
- app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +23 -12
- app-ng-runtime/components/input/rating/bundles/index.umd.js +35 -26
- app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +37 -26
- app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +1 -3
- app-ng-runtime/components/input/rating/fesm2022/index.mjs +36 -27
- app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +1 -3
- app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
- app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
- app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
- app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
- app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
- app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
- app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
- app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +10 -8
- app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +9 -8
- app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
- app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +2 -2
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +10 -8
- app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
- app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
- app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
- app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
- app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
- app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
- app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
- app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
- app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +6 -9
- app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +5 -9
- app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +6 -9
- app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
- app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
- app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/bundles/index.umd.js +11 -31
- app-ng-runtime/core/enums/enums.d.ts +1 -2
- app-ng-runtime/core/esm2022/enums/enums.mjs +1 -2
- app-ng-runtime/core/esm2022/public_api.mjs +2 -2
- app-ng-runtime/core/esm2022/types/types.mjs +1 -4
- app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -12
- app-ng-runtime/core/esm2022/utils/utils.mjs +4 -12
- app-ng-runtime/core/fesm2022/index.mjs +11 -29
- app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/core/public_api.d.ts +1 -1
- app-ng-runtime/core/types/types.d.ts +1 -5
- app-ng-runtime/core/utils/utils.d.ts +1 -2
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
- app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
- app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/mobile/core/bundles/index.umd.js +18 -2
- app-ng-runtime/mobile/core/esm2022/native.xhr.mjs +19 -3
- app-ng-runtime/mobile/core/fesm2022/index.mjs +18 -2
- app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +11 -300
- app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
- app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
- app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
- app-ng-runtime/runtime/base/esm2022/public_api.mjs +1 -2
- app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +1 -6
- app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +2 -2
- app-ng-runtime/runtime/base/esm2022/types/types.mjs +1 -4
- app-ng-runtime/runtime/base/fesm2022/index.mjs +10 -298
- app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
- app-ng-runtime/runtime/base/public_api.d.ts +0 -1
- app-ng-runtime/runtime/base/runtime-base.module.d.ts +8 -9
- app-ng-runtime/runtime/base/types/types.d.ts +1 -5
- app-ng-runtime/runtime/dynamic/bundles/index.umd.js +13 -49
- app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +3 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +7 -23
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +11 -50
- app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +38 -34
- app-ng-runtime/scripts/summernote/dist/summernote-lite.min.js +2 -3
- app-ng-runtime/transpiler/bundles/index.umd.js +0 -5
- app-ng-runtime/transpiler/esm2022/build.mjs +1 -4
- app-ng-runtime/transpiler/esm2022/imports.mjs +1 -3
- app-ng-runtime/transpiler/fesm2022/index.mjs +0 -5
- app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/bundles/index.umd.js +34 -16
- app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
- app-ng-runtime/variables/fesm2022/index.mjs +34 -16
- app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
- app-ng-runtime/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +0 -2
- app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +0 -2
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +0 -15
- app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +0 -26
- app-ng-runtime/components/advanced/custom/.npmignore +0 -2
- app-ng-runtime/components/advanced/custom/bundles/index.umd.js +0 -232
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +0 -19
- app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +0 -2
- app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +0 -1
- app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +0 -19
- app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +0 -10
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +0 -102
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +0 -12
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +0 -8
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +0 -68
- app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
- app-ng-runtime/components/advanced/custom/esm2022/index.mjs +0 -5
- app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +0 -4
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +0 -215
- app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +0 -1
- app-ng-runtime/components/advanced/custom/index.d.ts +0 -5
- app-ng-runtime/components/advanced/custom/package.json +0 -23
- app-ng-runtime/components/advanced/custom/public_api.d.ts +0 -3
- app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +0 -39
- app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +0 -14
- app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +0 -73
- app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +0 -294
- app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +0 -8
- app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +0 -22
|
@@ -10,13 +10,12 @@ import * as i2 from '@wm/security';
|
|
|
10
10
|
import { SecurityModule } from '@wm/security';
|
|
11
11
|
import * as i4 from '@wm/variables';
|
|
12
12
|
import { CONSTANTS, routerService, $rootScope, VariablesService, appManager, httpService, VariablesModule } from '@wm/variables';
|
|
13
|
-
import { trim, isEmpty, forEach, extend, get, merge, isUndefined, isObject, endsWith, each, isNil,
|
|
13
|
+
import { trim, isEmpty, forEach, extend, get, merge, isUndefined, isObject, endsWith, each, isNil, startsWith, split, includes, isString, isNumber, find, intersection, toLower, map, values, keys, findKey, isEqual, filter } from 'lodash-es';
|
|
14
14
|
import { SpaPageDirective, PageDirective, LayoutDirective, PageModule } from '@wm/components/page';
|
|
15
15
|
import { Subject } from 'rxjs';
|
|
16
16
|
import * as i3 from '@wm/components/base';
|
|
17
17
|
import { WidgetRef, PartialDirective, FileIconClassPipe, FileExtensionFromMimePipe, StateClassPipe, FileSizePipe, FilterPipe, ToDatePipe, ToNumberPipe, ToCurrencyPipe, PrefixPipe, SuffixPipe, TimeFromNowPipe, NumberToStringPipe, StringToNumberPipe, CustomPipe, TrustAsPipe, SanitizePipe, WmComponentsModule } from '@wm/components/base';
|
|
18
18
|
import { __param, __metadata, __decorate } from 'tslib';
|
|
19
|
-
import { RadiosetComponent, CheckboxsetComponent, InputModule } from '@wm/components/input';
|
|
20
19
|
import * as i2$3 from '@wm/components/prefab';
|
|
21
20
|
import { PrefabContainerDirective, PrefabDirective as PrefabDirective$1, PrefabModule } from '@wm/components/prefab';
|
|
22
21
|
import * as i1$5 from '@angular/common/http';
|
|
@@ -61,6 +60,7 @@ import { ColorPickerModule } from '@wm/components/input/color-picker';
|
|
|
61
60
|
import { CurrencyModule } from '@wm/components/input/currency';
|
|
62
61
|
import { EpochModule } from '@wm/components/input/epoch';
|
|
63
62
|
import { FileUploadModule } from '@wm/components/input/file-upload';
|
|
63
|
+
import { InputModule } from '@wm/components/input';
|
|
64
64
|
import { RatingModule } from '@wm/components/input/rating';
|
|
65
65
|
import { SliderModule } from '@wm/components/input/slider';
|
|
66
66
|
import { CardModule } from '@wm/components/data/card';
|
|
@@ -87,7 +87,6 @@ import { PopoverModule as PopoverModule$1 } from '@wm/components/navigation/popo
|
|
|
87
87
|
import { CarouselModule as CarouselModule$1 } from '@wm/components/advanced/carousel';
|
|
88
88
|
import { LoginModule } from '@wm/components/advanced/login';
|
|
89
89
|
import { MarqueeModule } from '@wm/components/advanced/marquee';
|
|
90
|
-
import { CustomModule } from '@wm/components/advanced/custom';
|
|
91
90
|
import { TimepickerModule } from 'ngx-bootstrap/timepicker';
|
|
92
91
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
93
92
|
import { PaginationModule } from 'ngx-bootstrap/pagination';
|
|
@@ -103,7 +102,6 @@ var ComponentType;
|
|
|
103
102
|
ComponentType[ComponentType["PAGE"] = 0] = "PAGE";
|
|
104
103
|
ComponentType[ComponentType["PREFAB"] = 1] = "PREFAB";
|
|
105
104
|
ComponentType[ComponentType["PARTIAL"] = 2] = "PARTIAL";
|
|
106
|
-
ComponentType[ComponentType["WIDGET"] = 3] = "WIDGET";
|
|
107
105
|
})(ComponentType || (ComponentType = {}));
|
|
108
106
|
class ComponentRefProvider {
|
|
109
107
|
clearComponentFactoryRefCache() { }
|
|
@@ -111,8 +109,6 @@ class ComponentRefProvider {
|
|
|
111
109
|
}
|
|
112
110
|
class PrefabConfigProvider {
|
|
113
111
|
}
|
|
114
|
-
class CustomwidgetConfigProvider {
|
|
115
|
-
}
|
|
116
112
|
class AppJSProvider {
|
|
117
113
|
}
|
|
118
114
|
class AppVariablesProvider {
|
|
@@ -1445,288 +1441,6 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1445
1441
|
args: ['window:beforeunload']
|
|
1446
1442
|
}] }); })();
|
|
1447
1443
|
|
|
1448
|
-
// export const commonPartialWidgets = {};
|
|
1449
|
-
class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
1450
|
-
constructor() {
|
|
1451
|
-
super(...arguments);
|
|
1452
|
-
this.BaseWidget = {};
|
|
1453
|
-
this.compileContent = false;
|
|
1454
|
-
this.destroy$ = new Subject();
|
|
1455
|
-
this.viewInit$ = new Subject();
|
|
1456
|
-
this.invokeEvent = (eventName) => {
|
|
1457
|
-
this.events[eventName]();
|
|
1458
|
-
};
|
|
1459
|
-
}
|
|
1460
|
-
getContainerWidgetInjector() {
|
|
1461
|
-
return this.containerWidget.inj || this.containerWidget.injector;
|
|
1462
|
-
}
|
|
1463
|
-
init() {
|
|
1464
|
-
let resolveFn;
|
|
1465
|
-
const promise = new Promise((res) => resolveFn = res);
|
|
1466
|
-
this.App = this.injector ? this.injector.get(App) : inject(App);
|
|
1467
|
-
//making the code compatible in both the JIT and AOT modes
|
|
1468
|
-
this.containerWidget = this.injector ? this.injector.get(WidgetRef) : inject(WidgetRef);
|
|
1469
|
-
this.i18nService = this.injector ? this.injector.get(AbstractI18nService) : inject(AbstractI18nService);
|
|
1470
|
-
this.scriptLoaderService = this.injector ? this.injector.get(ScriptLoaderService) : inject(ScriptLoaderService);
|
|
1471
|
-
this.Viewport = this.injector ? this.injector.get(Viewport) : inject(Viewport);
|
|
1472
|
-
this.customwidgetConfigProvider = this.injector ? this.injector.get(CustomwidgetConfigProvider) : inject(CustomwidgetConfigProvider);
|
|
1473
|
-
// this.viewContainerRef = this.getContainerWidgetInjector().get(ViewContainerRef);
|
|
1474
|
-
// Replacing this.getContainerWidgetInjector().view.component as viewParent
|
|
1475
|
-
// this.viewParent = (this.viewContainerRef as any).parentInjector._lView[8];
|
|
1476
|
-
this.viewParent = this.containerWidget.viewParent;
|
|
1477
|
-
if (this.viewParent.registerFragment) {
|
|
1478
|
-
this.viewParent.registerFragment();
|
|
1479
|
-
}
|
|
1480
|
-
// register functions for binding evaluation
|
|
1481
|
-
this.registerExpressions();
|
|
1482
|
-
this.initUserScript();
|
|
1483
|
-
this.registerPropsInContainerWidget(resolveFn);
|
|
1484
|
-
// Using promise to make sure the props are registered in the container widget before registering events, Otherwise no events will be registered
|
|
1485
|
-
promise.then(() => this.registerEvents());
|
|
1486
|
-
this.registerWidgets();
|
|
1487
|
-
this.initVariables();
|
|
1488
|
-
this.activePageName = this.App.activePageName; // Todo: remove this
|
|
1489
|
-
this.registerProps();
|
|
1490
|
-
this.defineI18nProps();
|
|
1491
|
-
this.viewInit$.subscribe(noop$1, noop$1, () => {
|
|
1492
|
-
this.props = this.containerWidget.props;
|
|
1493
|
-
});
|
|
1494
|
-
if (this.spa) {
|
|
1495
|
-
this.pageDirective = this.injector ? this.injector.get(SpaPageDirective) : inject(SpaPageDirective);
|
|
1496
|
-
}
|
|
1497
|
-
else {
|
|
1498
|
-
this.pageDirective = this.injector ? this.injector.get(PageDirective) : inject(PageDirective);
|
|
1499
|
-
}
|
|
1500
|
-
if (this.pageDirective) {
|
|
1501
|
-
this.registerDestroyListener(this.pageDirective.subscribe('attach', data => this.ngOnAttach(data.refreshData)));
|
|
1502
|
-
this.registerDestroyListener(this.pageDirective.subscribe('detach', () => this.ngOnDetach()));
|
|
1503
|
-
}
|
|
1504
|
-
super.init();
|
|
1505
|
-
}
|
|
1506
|
-
registerWidgets() {
|
|
1507
|
-
// common partial widgets should be accessible from page
|
|
1508
|
-
this.Widgets = Object.create(commonPartialWidgets);
|
|
1509
|
-
// expose current page widgets on app
|
|
1510
|
-
this.App.Widgets = Object.create(this.Widgets);
|
|
1511
|
-
}
|
|
1512
|
-
initializeComponentData(children) {
|
|
1513
|
-
Array.from(children).forEach((child) => {
|
|
1514
|
-
if (!child.hasAttribute('wmcustomwidget'))
|
|
1515
|
-
this.initializeComponentData(child.children);
|
|
1516
|
-
else {
|
|
1517
|
-
const asAttr = child.getAttribute('as') || '';
|
|
1518
|
-
if (!asAttr) {
|
|
1519
|
-
return;
|
|
1520
|
-
}
|
|
1521
|
-
let baseWidget, splitArr = asAttr.split('-'), modifiedArr = [];
|
|
1522
|
-
modifiedArr = splitArr.map((item) => {
|
|
1523
|
-
item = item !== 'wm' ? capitalize(item) : item;
|
|
1524
|
-
return item;
|
|
1525
|
-
});
|
|
1526
|
-
baseWidget = modifiedArr.join('');
|
|
1527
|
-
switch (baseWidget) {
|
|
1528
|
-
case 'wmCheckboxset':
|
|
1529
|
-
this[baseWidget] = new CheckboxsetComponent(this.injector, undefined);
|
|
1530
|
-
this[baseWidget]["_select"] = (item, $event) => {
|
|
1531
|
-
const keys = [];
|
|
1532
|
-
forEach(this[baseWidget].datasetItems, (datasetItem) => {
|
|
1533
|
-
if (datasetItem.key === item.key)
|
|
1534
|
-
datasetItem.selected = !datasetItem.selected;
|
|
1535
|
-
if (datasetItem.selected)
|
|
1536
|
-
keys.push(datasetItem.key);
|
|
1537
|
-
});
|
|
1538
|
-
this[baseWidget].triggerInvokeOnChange(keys, $event);
|
|
1539
|
-
};
|
|
1540
|
-
break;
|
|
1541
|
-
case 'wmRadioset':
|
|
1542
|
-
this[baseWidget] = new RadiosetComponent(this.injector, undefined);
|
|
1543
|
-
this[baseWidget]["_select"] = (item, $event) => {
|
|
1544
|
-
this[baseWidget].triggerInvokeOnChange(item.key, $event);
|
|
1545
|
-
};
|
|
1546
|
-
break;
|
|
1547
|
-
}
|
|
1548
|
-
for (let [key, value] of this.containerWidget.$attrs) {
|
|
1549
|
-
if (key.startsWith('base-')) {
|
|
1550
|
-
let modifiedKey = key.replace('base-', '');
|
|
1551
|
-
this[baseWidget][modifiedKey] = value;
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
this[baseWidget].initDatasetItems();
|
|
1555
|
-
this.containerWidget[baseWidget] = this[baseWidget];
|
|
1556
|
-
}
|
|
1557
|
-
});
|
|
1558
|
-
}
|
|
1559
|
-
registerBaseWidget() {
|
|
1560
|
-
this.initializeComponentData(this.containerWidget.nativeElement.children);
|
|
1561
|
-
}
|
|
1562
|
-
registerEvents() {
|
|
1563
|
-
this.events = {};
|
|
1564
|
-
this.containerWidget.eventHandlers.forEach((callback, key) => {
|
|
1565
|
-
this.events[key] = (...args) => {
|
|
1566
|
-
this.containerWidget.invokeEventCallback(key, { $event: args[0], $data: args[1] });
|
|
1567
|
-
};
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
registerDestroyListener(fn) {
|
|
1571
|
-
this.destroy$.subscribe(noop$1, noop$1, () => fn());
|
|
1572
|
-
}
|
|
1573
|
-
registerChangeListeners() {
|
|
1574
|
-
this.containerWidget.registerPropertyChangeListener(this.onPropertyChange);
|
|
1575
|
-
this.containerWidget.registerStyleChangeListener(this.onPropertyChange);
|
|
1576
|
-
}
|
|
1577
|
-
initUserScript() {
|
|
1578
|
-
try {
|
|
1579
|
-
// partials inside prefab should have access to Prefab properties and events
|
|
1580
|
-
if (this.viewParent.prefabName) {
|
|
1581
|
-
// for partial within partial within prefabs, just assign the parent partial's prefab object
|
|
1582
|
-
if (this.viewParent.Prefab) {
|
|
1583
|
-
this.Prefab = this.viewParent.Prefab;
|
|
1584
|
-
}
|
|
1585
|
-
else {
|
|
1586
|
-
this.Prefab = this.viewParent;
|
|
1587
|
-
}
|
|
1588
|
-
}
|
|
1589
|
-
this.evalUserScript(this, this.App, this.injector ? this.injector.get(UtilsService) : inject(UtilsService));
|
|
1590
|
-
}
|
|
1591
|
-
catch (e) {
|
|
1592
|
-
console.error(`Error in evaluating partial (${this.customWidgetName}) script\n`, e);
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
initVariables() {
|
|
1596
|
-
const variablesService = this.injector ? this.injector.get(VariablesService) : inject(VariablesService);
|
|
1597
|
-
// get variables and actions instances for the page
|
|
1598
|
-
const variableCollection = variablesService.register(this.customWidgetName, this.getVariables(), this);
|
|
1599
|
-
// create namespace for Variables nad Actions on page/partial, which inherits the Variables and Actions from App instance
|
|
1600
|
-
this.Variables = Object.create(this.App.Variables);
|
|
1601
|
-
this.Actions = Object.create(this.App.Actions);
|
|
1602
|
-
this.containerWidget.Variables = this.Variables;
|
|
1603
|
-
this.containerWidget.Actions = this.Actions;
|
|
1604
|
-
// assign all the page variables to the pageInstance
|
|
1605
|
-
Object.entries(variableCollection.Variables).forEach(([name, variable]) => this.Variables[name] = variable);
|
|
1606
|
-
Object.entries(variableCollection.Actions).forEach(([name, action]) => this.Actions[name] = action);
|
|
1607
|
-
this.viewInit$.subscribe(noop$1, noop$1, () => {
|
|
1608
|
-
// TEMP: triggering watchers so variables watching over params are updated
|
|
1609
|
-
$invokeWatchers(true, true);
|
|
1610
|
-
variableCollection.callback(variableCollection.Variables).catch(noop$1);
|
|
1611
|
-
variableCollection.callback(variableCollection.Actions);
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
/**
|
|
1615
|
-
* function to register bind expressions generated in this partial instance
|
|
1616
|
-
* getExpressions function is defined in the generated page.comp.ts file
|
|
1617
|
-
* @param expressions, map of bind expression vs generated function
|
|
1618
|
-
*/
|
|
1619
|
-
registerExpressions() {
|
|
1620
|
-
// const expressions = this.getExpressions();
|
|
1621
|
-
// _.each(expressions, (fn, expr)=>{
|
|
1622
|
-
// registerFnByExpr(expr, fn[0], fn[1]);
|
|
1623
|
-
// });
|
|
1624
|
-
}
|
|
1625
|
-
registerProps() {
|
|
1626
|
-
this.props = this.containerWidget.props;
|
|
1627
|
-
}
|
|
1628
|
-
defineI18nProps() {
|
|
1629
|
-
this.appLocale = this.i18nService.getAppLocale();
|
|
1630
|
-
}
|
|
1631
|
-
invokeOnReady() {
|
|
1632
|
-
let params;
|
|
1633
|
-
if (this.containerWidget.userComponentParams) {
|
|
1634
|
-
params = this.containerWidget.userComponentParams;
|
|
1635
|
-
}
|
|
1636
|
-
this.onReady(params);
|
|
1637
|
-
if (this.viewParent.resolveFragment) {
|
|
1638
|
-
this.viewParent.resolveFragment();
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
loadScripts() {
|
|
1642
|
-
// return new Promise<void>((resolve) => {
|
|
1643
|
-
// const scriptsRequired = this.partialDirective.$element.attr('scripts-to-load');
|
|
1644
|
-
// if (scriptsRequired) {
|
|
1645
|
-
// this.scriptLoaderService
|
|
1646
|
-
// .load(...scriptsRequired.split(','))
|
|
1647
|
-
// .then(resolve);
|
|
1648
|
-
// } else {
|
|
1649
|
-
// resolve();
|
|
1650
|
-
// }
|
|
1651
|
-
// });
|
|
1652
|
-
}
|
|
1653
|
-
registerPropsInContainerWidget(resolveFn) {
|
|
1654
|
-
this.customwidgetConfigProvider.getConfig(this.customWidgetName).then((config) => {
|
|
1655
|
-
if (config) {
|
|
1656
|
-
Object.entries((config.properties || {})).forEach(([key, prop]) => {
|
|
1657
|
-
let expr;
|
|
1658
|
-
const value = _.trim(prop.value);
|
|
1659
|
-
if (_.startsWith(value, 'bind:')) {
|
|
1660
|
-
expr = value.replace('bind:', '');
|
|
1661
|
-
}
|
|
1662
|
-
Object.defineProperty(this, key, {
|
|
1663
|
-
get: () => this.containerWidget[key],
|
|
1664
|
-
set: nv => this.containerWidget.widget[key] = nv
|
|
1665
|
-
});
|
|
1666
|
-
if (expr) {
|
|
1667
|
-
//[Todo-CSP]: expr will be generated with prefab.comp.expr.ts
|
|
1668
|
-
this.registerDestroyListener($watch(expr, this, {}, nv => this.containerWidget.widget[key] = nv));
|
|
1669
|
-
}
|
|
1670
|
-
});
|
|
1671
|
-
}
|
|
1672
|
-
this.containerWidget.setProps(config, resolveFn);
|
|
1673
|
-
// Reassigning the proxy handler for prefab inbound properties as we
|
|
1674
|
-
// will get them only after the prefab config call.
|
|
1675
|
-
if (isIE()) {
|
|
1676
|
-
this.containerWidget.widget = this.containerWidget.createProxy();
|
|
1677
|
-
}
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
mute() {
|
|
1681
|
-
const m = o => { o && o.mute && o.mute(); };
|
|
1682
|
-
_.each(this.Widgets, m);
|
|
1683
|
-
_.each(this.Variables, m);
|
|
1684
|
-
_.each(this.Actions, m);
|
|
1685
|
-
}
|
|
1686
|
-
unmute() {
|
|
1687
|
-
const um = o => { o && o.unmute && o.unmute(); };
|
|
1688
|
-
_.each(this.Widgets, um);
|
|
1689
|
-
_.each(this.Variables, um);
|
|
1690
|
-
_.each(this.Actions, um);
|
|
1691
|
-
}
|
|
1692
|
-
// ngOnInit() {
|
|
1693
|
-
// this.init();
|
|
1694
|
-
// }
|
|
1695
|
-
ngAfterViewInit() {
|
|
1696
|
-
this.registerChangeListeners();
|
|
1697
|
-
this.registerBaseWidget();
|
|
1698
|
-
setTimeout(() => {
|
|
1699
|
-
this.viewInit$.complete();
|
|
1700
|
-
this.fragmentsLoaded$.subscribe(noop$1, noop$1, () => this.invokeOnReady());
|
|
1701
|
-
}, 100);
|
|
1702
|
-
}
|
|
1703
|
-
ngOnDestroy() {
|
|
1704
|
-
this.destroy$.complete();
|
|
1705
|
-
}
|
|
1706
|
-
ngOnAttach(refreshData) {
|
|
1707
|
-
this.unmute();
|
|
1708
|
-
if (refreshData) {
|
|
1709
|
-
const refresh = v => { v && v.startUpdate && v.invoke && v.invoke(); };
|
|
1710
|
-
_.each(this.Variables, refresh);
|
|
1711
|
-
_.each(this.Actions, refresh);
|
|
1712
|
-
}
|
|
1713
|
-
_.each(this.Widgets, w => w && w.ngOnAttach && w.ngOnAttach());
|
|
1714
|
-
}
|
|
1715
|
-
ngOnDetach() {
|
|
1716
|
-
this.mute();
|
|
1717
|
-
_.each(this.Widgets, w => w && w.ngOnDetach && w.ngOnDetach());
|
|
1718
|
-
}
|
|
1719
|
-
// user overrides this
|
|
1720
|
-
onPropertyChange() { }
|
|
1721
|
-
onReady(params) {
|
|
1722
|
-
}
|
|
1723
|
-
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseCustomWidgetComponent_BaseFactory; return function BaseCustomWidgetComponent_Factory(t) { return (ɵBaseCustomWidgetComponent_BaseFactory || (ɵBaseCustomWidgetComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BaseCustomWidgetComponent)))(t || BaseCustomWidgetComponent); }; })(); }
|
|
1724
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseCustomWidgetComponent, features: [i0.ɵɵInheritDefinitionFeature] }); }
|
|
1725
|
-
}
|
|
1726
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseCustomWidgetComponent, [{
|
|
1727
|
-
type: Directive
|
|
1728
|
-
}], null, null); })();
|
|
1729
|
-
|
|
1730
1444
|
class BasePrefabComponent extends FragmentMonitor {
|
|
1731
1445
|
constructor() {
|
|
1732
1446
|
super(...arguments);
|
|
@@ -3197,7 +2911,7 @@ class I18nServiceImpl extends AbstractI18nService {
|
|
|
3197
2911
|
return locale === moment.tz(timezoneName).format('Z');
|
|
3198
2912
|
});
|
|
3199
2913
|
}
|
|
3200
|
-
|
|
2914
|
+
moment.tz.setDefault(locale);
|
|
3201
2915
|
const localeData = compInstance && compInstance.formatsByLocale ? compInstance.formatsByLocale : this.formatsByLocale;
|
|
3202
2916
|
Object.assign(localeData, localeObj);
|
|
3203
2917
|
resolve();
|
|
@@ -4169,6 +3883,7 @@ class AppComponent {
|
|
|
4169
3883
|
};
|
|
4170
3884
|
}
|
|
4171
3885
|
ngAfterViewInit() {
|
|
3886
|
+
document.documentElement.setAttribute('lang', getWmProjectProperties().defaultLanguage);
|
|
4172
3887
|
if (hasCordova() && !window['wmDeviceReady']) {
|
|
4173
3888
|
document.addEventListener('wmDeviceReady', () => this.start());
|
|
4174
3889
|
}
|
|
@@ -4204,7 +3919,7 @@ class AppComponent {
|
|
|
4204
3919
|
type: ViewChild,
|
|
4205
3920
|
args: ['dynamicComponent', { read: ViewContainerRef }]
|
|
4206
3921
|
}] }); })();
|
|
4207
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "components/app-component/app.component.ts", lineNumber:
|
|
3922
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "components/app-component/app.component.ts", lineNumber: 46 }); })();
|
|
4208
3923
|
|
|
4209
3924
|
/**
|
|
4210
3925
|
* This Interceptor intercepts all network calls and if a network call fails
|
|
@@ -4451,15 +4166,16 @@ class DynamicComponentRefProviderService {
|
|
|
4451
4166
|
here component is pagewrapper so adding custom implementation for route change
|
|
4452
4167
|
*/
|
|
4453
4168
|
class CanDeactivatePageGuard {
|
|
4454
|
-
canDeactivate(component) {
|
|
4169
|
+
canDeactivate(component, currentRoute, currentState, nextState) {
|
|
4455
4170
|
function invokeCompDeactivate() {
|
|
4456
4171
|
let retVal;
|
|
4172
|
+
const nextRoute = nextState ? nextState.url : undefined;
|
|
4457
4173
|
// Calling onBeforePageLeave method present at page level
|
|
4458
|
-
retVal = this.app.activePage && this.app.activePage.onBeforePageLeave();
|
|
4174
|
+
retVal = this.app.activePage && this.app.activePage.onBeforePageLeave(nextRoute);
|
|
4459
4175
|
// Calling onBeforePageLeave method present at app level only if page level method return true
|
|
4460
4176
|
// or if there is no page level method
|
|
4461
4177
|
if (retVal !== false) {
|
|
4462
|
-
retVal = (this.app.onBeforePageLeave || noop$1)(this.app.activePageName, this.app.activePage);
|
|
4178
|
+
retVal = (this.app.onBeforePageLeave || noop$1)(this.app.activePageName, this.app.activePage, nextRoute);
|
|
4463
4179
|
}
|
|
4464
4180
|
return retVal === undefined ? true : retVal;
|
|
4465
4181
|
}
|
|
@@ -5029,7 +4745,6 @@ const REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS = [
|
|
|
5029
4745
|
CarouselModule$1,
|
|
5030
4746
|
LoginModule,
|
|
5031
4747
|
MarqueeModule,
|
|
5032
|
-
CustomModule,
|
|
5033
4748
|
PageModule,
|
|
5034
4749
|
FooterModule,
|
|
5035
4750
|
HeaderModule,
|
|
@@ -5224,7 +4939,6 @@ class RuntimeBaseModule {
|
|
|
5224
4939
|
CarouselModule$1,
|
|
5225
4940
|
LoginModule,
|
|
5226
4941
|
MarqueeModule,
|
|
5227
|
-
CustomModule,
|
|
5228
4942
|
PageModule,
|
|
5229
4943
|
FooterModule,
|
|
5230
4944
|
HeaderModule,
|
|
@@ -5355,7 +5069,6 @@ class RuntimeBaseModule {
|
|
|
5355
5069
|
CarouselModule$1,
|
|
5356
5070
|
LoginModule,
|
|
5357
5071
|
MarqueeModule,
|
|
5358
|
-
CustomModule,
|
|
5359
5072
|
PageModule,
|
|
5360
5073
|
FooterModule,
|
|
5361
5074
|
HeaderModule,
|
|
@@ -5440,7 +5153,6 @@ class RuntimeBaseModule {
|
|
|
5440
5153
|
CarouselModule$1,
|
|
5441
5154
|
LoginModule,
|
|
5442
5155
|
MarqueeModule,
|
|
5443
|
-
CustomModule,
|
|
5444
5156
|
PageModule,
|
|
5445
5157
|
FooterModule,
|
|
5446
5158
|
HeaderModule,
|
|
@@ -5529,5 +5241,5 @@ class SecurityConfigResolve {
|
|
|
5529
5241
|
* Generated bundle index. Do not edit.
|
|
5530
5242
|
*/
|
|
5531
5243
|
|
|
5532
|
-
export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard,
|
|
5244
|
+
export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard, BaseLayoutComponent, BasePageComponent, BasePartialComponent, BasePrefabComponent, BaseSpaPageComponent, CACHE_PAGE, CanDeactivateNgPageGuard, CanDeactivatePageGuard, ComponentRefProvider, ComponentType, CustomToasterComponent, DynamicComponentRefProviderService, EmptyPageComponent, FragmentMonitor, HttpCallInterceptor, I18nResolve, I18nServiceImpl, InitializeApp, MAX_CACHE_AGE, MAX_CACHE_SIZE, MetadataResolve, NavigationServiceImpl, PageNotFoundGuard, PipeProvider, PipeService, PrefabConfigProvider, PrefabDirective, PrefabManagerService, PrefabPreviewComponent, REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS, RoleGuard, RuntimeBaseModule, SecurityConfigResolve, SpinnerServiceImpl, ToasterServiceImpl, WM_MODULES_FOR_ROOT, WmDefaultRouteReuseStrategy, WmNgRouteReuseStrategy, WmRouteReuseStrategy, commonPartialWidgets, getPrefabBaseUrl, getPrefabConfigUrl, getPrefabMinJsonUrl, getPrefabPartialJsonUrl, isPrefabInPreview, setAngularLocale };
|
|
5533
5245
|
//# sourceMappingURL=index.mjs.map
|