@wavemaker-ai/app-ng-runtime 12.0.0-rc.335 → 12.0.1-rc.338
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 +15 -16
- package/build-task/fesm2022/index.mjs +15 -16
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +9 -9
- package/components/advanced/carousel/fesm2022/index.mjs +9 -9
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/types/index.d.ts +7 -7
- package/components/advanced/custom/bundles/index.umd.js +9 -10
- package/components/advanced/custom/fesm2022/index.mjs +9 -10
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/types/index.d.ts +3 -3
- package/components/advanced/login/bundles/index.umd.js +3 -3
- package/components/advanced/login/fesm2022/index.mjs +3 -3
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/types/index.d.ts +1 -1
- package/components/advanced/marquee/bundles/index.umd.js +3 -3
- package/components/advanced/marquee/fesm2022/index.mjs +3 -3
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/types/index.d.ts +1 -1
- package/components/base/bundles/index.umd.js +40 -46
- package/components/base/fesm2022/index.mjs +40 -46
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/types/index.d.ts +47 -46
- package/components/basic/anchor/bundles/index.umd.js +3 -3
- package/components/basic/anchor/fesm2022/index.mjs +3 -3
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
- package/components/basic/anchor/types/index.d.ts +3 -3
- package/components/basic/audio/bundles/index.umd.js +3 -3
- package/components/basic/audio/fesm2022/index.mjs +3 -3
- package/components/basic/audio/fesm2022/index.mjs.map +1 -1
- package/components/basic/audio/types/index.d.ts +1 -1
- package/components/basic/html/bundles/index.umd.js +10 -11
- package/components/basic/html/fesm2022/index.mjs +10 -11
- package/components/basic/html/fesm2022/index.mjs.map +1 -1
- package/components/basic/html/types/index.d.ts +3 -3
- package/components/basic/icon/bundles/index.umd.js +3 -3
- package/components/basic/icon/fesm2022/index.mjs +3 -3
- package/components/basic/icon/fesm2022/index.mjs.map +1 -1
- package/components/basic/icon/types/index.d.ts +1 -1
- package/components/basic/iframe/bundles/index.umd.js +5 -5
- package/components/basic/iframe/fesm2022/index.mjs +5 -5
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
- package/components/basic/iframe/types/index.d.ts +3 -3
- package/components/basic/label/bundles/index.umd.js +10 -11
- package/components/basic/label/fesm2022/index.mjs +10 -11
- package/components/basic/label/fesm2022/index.mjs.map +1 -1
- package/components/basic/label/types/index.d.ts +1 -1
- package/components/basic/picture/bundles/index.umd.js +3 -3
- package/components/basic/picture/fesm2022/index.mjs +3 -3
- package/components/basic/picture/fesm2022/index.mjs.map +1 -1
- package/components/basic/picture/types/index.d.ts +2 -2
- package/components/basic/progress/progress-bar/bundles/index.umd.js +8 -10
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +8 -10
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/types/index.d.ts +2 -2
- package/components/basic/progress/progress-circle/bundles/index.umd.js +3 -3
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +3 -3
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-circle/types/index.d.ts +2 -2
- package/components/basic/rich-text-editor/bundles/index.umd.js +3 -3
- package/components/basic/rich-text-editor/fesm2022/index.mjs +3 -3
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/types/index.d.ts +3 -3
- package/components/basic/search/bundles/index.umd.js +40 -42
- package/components/basic/search/fesm2022/index.mjs +40 -42
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/types/index.d.ts +13 -13
- package/components/basic/spinner/bundles/index.umd.js +3 -3
- package/components/basic/spinner/fesm2022/index.mjs +3 -3
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
- package/components/basic/spinner/types/index.d.ts +3 -3
- package/components/basic/tree/bundles/index.umd.js +9 -9
- package/components/basic/tree/fesm2022/index.mjs +9 -9
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/types/index.d.ts +7 -7
- package/components/basic/video/bundles/index.umd.js +3 -3
- package/components/basic/video/fesm2022/index.mjs +3 -3
- package/components/basic/video/fesm2022/index.mjs.map +1 -1
- package/components/basic/video/types/index.d.ts +2 -2
- package/components/chart/bundles/index.umd.js +19 -22
- package/components/chart/fesm2022/index.mjs +20 -23
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/types/index.d.ts +9 -9
- package/components/containers/accordion/bundles/index.umd.js +10 -12
- package/components/containers/accordion/fesm2022/index.mjs +10 -12
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/types/index.d.ts +9 -9
- package/components/containers/layout-grid/bundles/index.umd.js +9 -9
- package/components/containers/layout-grid/fesm2022/index.mjs +9 -9
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/types/index.d.ts +4 -4
- package/components/containers/linear-layout/bundles/index.umd.js +6 -6
- package/components/containers/linear-layout/fesm2022/index.mjs +6 -6
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/types/index.d.ts +2 -2
- package/components/containers/panel/bundles/index.umd.js +3 -3
- package/components/containers/panel/fesm2022/index.mjs +3 -3
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/types/index.d.ts +3 -3
- package/components/containers/tabs/bundles/index.umd.js +9 -9
- package/components/containers/tabs/fesm2022/index.mjs +9 -9
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/types/index.d.ts +8 -8
- package/components/containers/tile/bundles/index.umd.js +3 -3
- package/components/containers/tile/fesm2022/index.mjs +3 -3
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/types/index.d.ts +1 -1
- package/components/containers/wizard/bundles/index.umd.js +18 -18
- package/components/containers/wizard/fesm2022/index.mjs +18 -18
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/types/index.d.ts +8 -8
- package/components/data/card/bundles/index.umd.js +12 -12
- package/components/data/card/fesm2022/index.mjs +12 -12
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/types/index.d.ts +6 -6
- package/components/data/form/bundles/index.umd.js +72 -75
- package/components/data/form/fesm2022/index.mjs +72 -77
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/types/index.d.ts +29 -29
- package/components/data/list/bundles/index.umd.js +22 -27
- package/components/data/list/fesm2022/index.mjs +22 -27
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/types/index.d.ts +23 -23
- package/components/data/live-table/bundles/index.umd.js +3 -3
- package/components/data/live-table/fesm2022/index.mjs +3 -3
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/types/index.d.ts +5 -5
- package/components/data/pagination/bundles/index.umd.js +27 -28
- package/components/data/pagination/fesm2022/index.mjs +27 -28
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/types/index.d.ts +1 -1
- package/components/data/table/bundles/index.umd.js +131 -142
- package/components/data/table/fesm2022/index.mjs +131 -143
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/types/index.d.ts +20 -20
- package/components/dialogs/alert-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/types/index.d.ts +1 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/types/index.d.ts +1 -1
- package/components/dialogs/default/bundles/index.umd.js +12 -12
- package/components/dialogs/default/fesm2022/index.mjs +12 -12
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/types/index.d.ts +3 -3
- package/components/dialogs/design-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/design-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/types/index.d.ts +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/types/index.d.ts +1 -1
- package/components/dialogs/login-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/login-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/types/index.d.ts +2 -2
- package/components/dialogs/partial-dialog/bundles/index.umd.js +3 -3
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +3 -3
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/types/index.d.ts +1 -1
- package/components/input/base-form/bundles/index.umd.js +4 -4
- package/components/input/base-form/fesm2022/index.mjs +4 -4
- package/components/input/base-form/fesm2022/index.mjs.map +1 -1
- package/components/input/base-form-custom/bundles/index.umd.js +3 -3
- package/components/input/base-form-custom/fesm2022/index.mjs +3 -3
- package/components/input/button/bundles/index.umd.js +3 -3
- package/components/input/button/fesm2022/index.mjs +3 -3
- package/components/input/button/fesm2022/index.mjs.map +1 -1
- package/components/input/button/types/index.d.ts +1 -1
- package/components/input/button-group/bundles/index.umd.js +3 -3
- package/components/input/button-group/fesm2022/index.mjs +3 -3
- package/components/input/button-group/fesm2022/index.mjs.map +1 -1
- package/components/input/button-group/types/index.d.ts +1 -1
- package/components/input/calendar/bundles/index.umd.js +4 -4
- package/components/input/calendar/fesm2022/index.mjs +4 -5
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/types/index.d.ts +9 -9
- package/components/input/caption-position/bundles/index.umd.js +5 -5
- package/components/input/caption-position/fesm2022/index.mjs +5 -5
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
- package/components/input/caption-position/types/index.d.ts +4 -4
- package/components/input/checkbox/bundles/index.umd.js +3 -3
- package/components/input/checkbox/fesm2022/index.mjs +3 -3
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
- package/components/input/checkbox/types/index.d.ts +2 -2
- package/components/input/checkboxset/bundles/index.umd.js +4 -4
- package/components/input/checkboxset/fesm2022/index.mjs +4 -4
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
- package/components/input/checkboxset/types/index.d.ts +2 -2
- package/components/input/chips/bundles/index.umd.js +5 -5
- package/components/input/chips/fesm2022/index.mjs +5 -5
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/types/index.d.ts +14 -14
- package/components/input/color-picker/bundles/index.umd.js +3 -3
- package/components/input/color-picker/fesm2022/index.mjs +3 -3
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/types/index.d.ts +2 -2
- package/components/input/composite/bundles/index.umd.js +3 -3
- package/components/input/composite/fesm2022/index.mjs +3 -3
- package/components/input/composite/fesm2022/index.mjs.map +1 -1
- package/components/input/composite/types/index.d.ts +1 -1
- package/components/input/currency/bundles/index.umd.js +3 -3
- package/components/input/currency/fesm2022/index.mjs +3 -3
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/types/index.d.ts +3 -3
- package/components/input/dataset-aware-form/bundles/index.umd.js +7 -7
- package/components/input/dataset-aware-form/fesm2022/index.mjs +7 -7
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
- package/components/input/dataset-aware-form/types/index.d.ts +1 -1
- package/components/input/epoch/base-date-time/bundles/index.umd.js +10 -15
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +10 -15
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/base-date-time/types/index.d.ts +2 -2
- package/components/input/epoch/date/bundles/index.umd.js +5 -5
- package/components/input/epoch/date/fesm2022/index.mjs +5 -5
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date/types/index.d.ts +4 -4
- package/components/input/epoch/date-time/bundles/index.umd.js +3 -3
- package/components/input/epoch/date-time/fesm2022/index.mjs +3 -3
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time/types/index.d.ts +8 -8
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +8 -8
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +8 -8
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/date-time-picker/types/index.d.ts +6 -7
- package/components/input/epoch/picker/bundles/index.umd.js +6 -6
- package/components/input/epoch/picker/fesm2022/index.mjs +6 -6
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/bundles/index.umd.js +4 -5
- package/components/input/epoch/time/fesm2022/index.mjs +5 -6
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/types/index.d.ts +4 -4
- package/components/input/file-upload/bundles/index.umd.js +4 -4
- package/components/input/file-upload/fesm2022/index.mjs +4 -4
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/types/index.d.ts +5 -5
- package/components/input/number/bundles/index.umd.js +3 -3
- package/components/input/number/fesm2022/index.mjs +3 -3
- package/components/input/number/fesm2022/index.mjs.map +1 -1
- package/components/input/number/types/index.d.ts +1 -1
- package/components/input/radioset/bundles/index.umd.js +4 -4
- package/components/input/radioset/fesm2022/index.mjs +4 -4
- package/components/input/radioset/fesm2022/index.mjs.map +1 -1
- package/components/input/radioset/types/index.d.ts +2 -2
- package/components/input/rating/bundles/index.umd.js +9 -11
- package/components/input/rating/fesm2022/index.mjs +9 -11
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/types/index.d.ts +2 -2
- package/components/input/select/bundles/index.umd.js +4 -4
- package/components/input/select/fesm2022/index.mjs +4 -4
- package/components/input/select/fesm2022/index.mjs.map +1 -1
- package/components/input/select/types/index.d.ts +1 -1
- package/components/input/slider/bundles/index.umd.js +3 -3
- package/components/input/slider/fesm2022/index.mjs +3 -3
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/types/index.d.ts +1 -1
- package/components/input/switch/bundles/index.umd.js +3 -3
- package/components/input/switch/fesm2022/index.mjs +3 -3
- package/components/input/switch/fesm2022/index.mjs.map +1 -1
- package/components/input/switch/types/index.d.ts +1 -1
- package/components/input/text/bundles/index.umd.js +31 -35
- package/components/input/text/fesm2022/index.mjs +31 -35
- package/components/input/text/fesm2022/index.mjs.map +1 -1
- package/components/input/text/types/index.d.ts +12 -12
- package/components/input/textarea/bundles/index.umd.js +3 -3
- package/components/input/textarea/fesm2022/index.mjs +3 -3
- package/components/input/textarea/fesm2022/index.mjs.map +1 -1
- package/components/input/textarea/types/index.d.ts +2 -2
- package/components/navigation/breadcrumb/bundles/index.umd.js +3 -3
- package/components/navigation/breadcrumb/fesm2022/index.mjs +3 -3
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/types/index.d.ts +4 -4
- package/components/navigation/menu/bundles/index.umd.js +25 -33
- package/components/navigation/menu/fesm2022/index.mjs +25 -33
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/types/index.d.ts +21 -21
- package/components/navigation/navbar/bundles/index.umd.js +3 -3
- package/components/navigation/navbar/fesm2022/index.mjs +3 -3
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/types/index.d.ts +1 -1
- package/components/navigation/popover/bundles/index.umd.js +4 -4
- package/components/navigation/popover/fesm2022/index.mjs +4 -4
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/types/index.d.ts +4 -4
- package/components/page/default/bundles/index.umd.js +23 -23
- package/components/page/default/fesm2022/index.mjs +23 -23
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/types/index.d.ts +14 -14
- package/components/page/footer/bundles/index.umd.js +3 -3
- package/components/page/footer/fesm2022/index.mjs +3 -3
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/types/index.d.ts +1 -1
- package/components/page/header/bundles/index.umd.js +3 -3
- package/components/page/header/fesm2022/index.mjs +3 -3
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/types/index.d.ts +1 -1
- package/components/page/left-panel/bundles/index.umd.js +5 -5
- package/components/page/left-panel/fesm2022/index.mjs +5 -5
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/types/index.d.ts +3 -3
- package/components/page/right-panel/bundles/index.umd.js +3 -3
- package/components/page/right-panel/fesm2022/index.mjs +3 -3
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/types/index.d.ts +1 -1
- package/components/page/top-nav/bundles/index.umd.js +3 -3
- package/components/page/top-nav/fesm2022/index.mjs +3 -3
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/types/index.d.ts +1 -1
- package/components/prefab/bundles/index.umd.js +7 -7
- package/components/prefab/fesm2022/index.mjs +7 -7
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/types/index.d.ts +3 -3
- package/core/bundles/index.umd.js +84 -89
- package/core/fesm2022/index.mjs +84 -89
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/types/index.d.ts +11 -11
- package/http/bundles/index.umd.js +6 -6
- package/http/fesm2022/index.mjs +6 -6
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/types/index.d.ts +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +17 -21
- package/oAuth/fesm2022/index.mjs +17 -21
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/types/index.d.ts +1 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +253 -275
- package/runtime/base/fesm2022/index.mjs +253 -275
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/types/index.d.ts +90 -96
- package/runtime/dynamic/bundles/index.umd.js +28 -28
- package/runtime/dynamic/fesm2022/index.mjs +28 -28
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/runtime/dynamic/types/index.d.ts +22 -22
- package/scripts/datatable/datatable.js +293 -271
- package/scripts/tree-keyboard-navigation/keyboard-navigation.js +68 -56
- package/security/bundles/index.umd.js +6 -6
- package/security/fesm2022/index.mjs +6 -6
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/types/index.d.ts +5 -5
- package/transpiler/bundles/index.umd.js +3 -5
- package/transpiler/fesm2022/index.mjs +3 -5
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +69 -71
- package/variables/fesm2022/index.mjs +69 -72
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/types/index.d.ts +9 -9
|
@@ -175,9 +175,9 @@ class AppManagerService {
|
|
|
175
175
|
if (active) {
|
|
176
176
|
let spinnerExists;
|
|
177
177
|
// WMS-21117 : Do not trigger spinner, if the current variable is same as spinner which is in context
|
|
178
|
-
if (variable._spinnerId
|
|
178
|
+
if (variable._spinnerId?.length) {
|
|
179
179
|
forEach(variable._spinnerId, (item) => {
|
|
180
|
-
if (item.slice(0, item.lastIndexOf('_')) === variable._id && this.$spinner.messagesByContext
|
|
180
|
+
if (item.slice(0, item.lastIndexOf('_')) === variable._id && this.$spinner.messagesByContext?.[variable.spinnerContext] &&
|
|
181
181
|
(variable.spinnerMessage === this.$spinner.messagesByContext[variable.spinnerContext]["finalMessage"] || variable.spinnerMessage === this.$spinner.messagesByContext[variable.spinnerContext][item])) {
|
|
182
182
|
spinnerExists = true;
|
|
183
183
|
return;
|
|
@@ -285,7 +285,7 @@ class AppManagerService {
|
|
|
285
285
|
}
|
|
286
286
|
return this.$security.load().then(() => {
|
|
287
287
|
const securityConfig = this.$security.get();
|
|
288
|
-
if (securityConfig
|
|
288
|
+
if (securityConfig?.securityEnabled && securityConfig.authenticated) {
|
|
289
289
|
loggedInUser.isAuthenticated = securityConfig.authenticated;
|
|
290
290
|
loggedInUser.roles = securityConfig.userInfo.userRoles;
|
|
291
291
|
loggedInUser.name = securityConfig.userInfo.userName;
|
|
@@ -295,7 +295,7 @@ class AppManagerService {
|
|
|
295
295
|
}
|
|
296
296
|
else {
|
|
297
297
|
this.clearLoggedInUserVariable(loggedInUser);
|
|
298
|
-
loggedInUser.isSecurityEnabled = securityConfig
|
|
298
|
+
loggedInUser.isSecurityEnabled = securityConfig?.securityEnabled;
|
|
299
299
|
throw null;
|
|
300
300
|
}
|
|
301
301
|
return securityConfig;
|
|
@@ -328,7 +328,7 @@ class AppManagerService {
|
|
|
328
328
|
* For preview, this.$security.getRedirectedRouteQueryParams() gets the queryparams form the activated route(pagewrappercomponent)
|
|
329
329
|
* For deployed app, canactivate guard resolved to false and gets the queryparams from the canactivate gurard(no active route component)
|
|
330
330
|
*/
|
|
331
|
-
queryParams = (options
|
|
331
|
+
queryParams = (options?.queryParams) || this.$security.getRedirectedRouteQueryParams();
|
|
332
332
|
queryParams = this.$security.getQueryString(queryParams);
|
|
333
333
|
queryParams = queryParams ? '?' + queryParams : '';
|
|
334
334
|
const redirectPage = this.$security.getCurrentRoutePage();
|
|
@@ -385,9 +385,9 @@ class AppManagerService {
|
|
|
385
385
|
const config = this.$security.get();
|
|
386
386
|
let queryParamsObj = {};
|
|
387
387
|
loginConfig = config.loginConfig;
|
|
388
|
-
this.lastLoggedUserId = config.userInfo
|
|
388
|
+
this.lastLoggedUserId = config.userInfo?.userId;
|
|
389
389
|
// if user found, 401 was thrown after session time
|
|
390
|
-
if (config.userInfo
|
|
390
|
+
if (config.userInfo?.userName) {
|
|
391
391
|
config.authenticated = false;
|
|
392
392
|
sessionTimeoutConfig = loginConfig.sessionTimeout || { 'type': LOGIN_METHOD.DIALOG };
|
|
393
393
|
sessionTimeoutMethod = sessionTimeoutConfig.type.toUpperCase();
|
|
@@ -428,7 +428,7 @@ class AppManagerService {
|
|
|
428
428
|
// on app load, by default Home page is loaded
|
|
429
429
|
page = this.$security.getRedirectPage(config, page);
|
|
430
430
|
queryParamsObj['redirectTo'] = page;
|
|
431
|
-
const extraQueryParams = (options
|
|
431
|
+
const extraQueryParams = (options?.queryParams) || this.$security.getRedirectedRouteQueryParams();
|
|
432
432
|
queryParamsObj = merge(queryParamsObj, extraQueryParams);
|
|
433
433
|
this.$router.navigate([loginConfig.pageName], { queryParams: queryParamsObj });
|
|
434
434
|
this.$app.landingPageName = loginConfig.pageName;
|
|
@@ -661,10 +661,10 @@ class AppManagerService {
|
|
|
661
661
|
this.templates = null;
|
|
662
662
|
this.lastLoggedUserId = null;
|
|
663
663
|
}
|
|
664
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
665
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppManagerService, deps: [{ token: i1.AbstractHttpService }, { token: i2.SecurityService }, { token: i1.AbstractDialogService }, { token: i1$1.Router }, { token: i1.App }, { token: i4.VariablesService }, { token: i4.MetadataService }, { token: i1.AbstractSpinnerService }, { token: i1.AbstractI18nService }, { token: i5.DatePipe }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
665
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppManagerService }); }
|
|
666
666
|
}
|
|
667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppManagerService, decorators: [{
|
|
668
668
|
type: Injectable
|
|
669
669
|
}], ctorParameters: () => [{ type: i1.AbstractHttpService }, { type: i2.SecurityService }, { type: i1.AbstractDialogService }, { type: i1$1.Router }, { type: i1.App }, { type: i4.VariablesService }, { type: i4.MetadataService }, { type: i1.AbstractSpinnerService }, { type: i1.AbstractI18nService }, { type: i5.DatePipe }] });
|
|
670
670
|
|
|
@@ -770,10 +770,10 @@ class PrefabManagerService {
|
|
|
770
770
|
});
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
774
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
773
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabManagerService, deps: [{ token: i4.MetadataService }, { token: PrefabConfigProvider }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
774
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabManagerService }); }
|
|
775
775
|
}
|
|
776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabManagerService, decorators: [{
|
|
777
777
|
type: Injectable
|
|
778
778
|
}], ctorParameters: () => [{ type: i4.MetadataService }, { type: PrefabConfigProvider }] });
|
|
779
779
|
|
|
@@ -825,10 +825,10 @@ class FragmentMonitor {
|
|
|
825
825
|
this.fragmentsLoaded$.complete();
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
829
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
828
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FragmentMonitor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
829
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FragmentMonitor, isStandalone: true, ngImport: i0 }); }
|
|
830
830
|
}
|
|
831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FragmentMonitor, decorators: [{
|
|
832
832
|
type: Directive
|
|
833
833
|
}], ctorParameters: () => [] });
|
|
834
834
|
|
|
@@ -971,13 +971,13 @@ class BasePartialComponent extends FragmentMonitor {
|
|
|
971
971
|
});
|
|
972
972
|
}
|
|
973
973
|
mute() {
|
|
974
|
-
const m = o => { o
|
|
974
|
+
const m = o => { o?.mute?.(); };
|
|
975
975
|
each(this.Widgets, m);
|
|
976
976
|
each(this.Variables, m);
|
|
977
977
|
each(this.Actions, m);
|
|
978
978
|
}
|
|
979
979
|
unmute() {
|
|
980
|
-
const um = o => { o
|
|
980
|
+
const um = o => { o?.unmute?.(); };
|
|
981
981
|
each(this.Widgets, um);
|
|
982
982
|
each(this.Variables, um);
|
|
983
983
|
each(this.Actions, um);
|
|
@@ -1023,22 +1023,22 @@ class BasePartialComponent extends FragmentMonitor {
|
|
|
1023
1023
|
ngOnAttach(refreshData) {
|
|
1024
1024
|
this.unmute();
|
|
1025
1025
|
if (refreshData) {
|
|
1026
|
-
const refresh = v => { v
|
|
1026
|
+
const refresh = v => { v?.startUpdate && v?.invoke?.(); };
|
|
1027
1027
|
each(this.Variables, refresh);
|
|
1028
1028
|
each(this.Actions, refresh);
|
|
1029
1029
|
}
|
|
1030
|
-
each(this.Widgets, w => w
|
|
1030
|
+
each(this.Widgets, w => w?.ngOnAttach?.());
|
|
1031
1031
|
}
|
|
1032
1032
|
ngOnDetach() {
|
|
1033
1033
|
this.mute();
|
|
1034
|
-
each(this.Widgets, w => w
|
|
1034
|
+
each(this.Widgets, w => w?.ngOnDetach?.());
|
|
1035
1035
|
}
|
|
1036
1036
|
onReady(params) {
|
|
1037
1037
|
}
|
|
1038
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1039
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePartialComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1039
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BasePartialComponent, isStandalone: true, viewQueries: [{ propertyName: "partialDirective", first: true, predicate: PartialDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
1040
1040
|
}
|
|
1041
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePartialComponent, decorators: [{
|
|
1042
1042
|
type: Directive
|
|
1043
1043
|
}], propDecorators: { partialDirective: [{
|
|
1044
1044
|
type: ViewChild,
|
|
@@ -1069,7 +1069,7 @@ let WmDefaultRouteReuseStrategy = class WmDefaultRouteReuseStrategy {
|
|
|
1069
1069
|
const queryParams = Object.keys(route.queryParams)
|
|
1070
1070
|
.filter(k => !this.paramsToIgnore.includes(k))
|
|
1071
1071
|
.map(k => k + '=' + route.queryParams[k])
|
|
1072
|
-
.sort().join('&');
|
|
1072
|
+
.sort((a, b) => a.localeCompare(b)).join('&');
|
|
1073
1073
|
let pageName = route.params.pageName;
|
|
1074
1074
|
if (route.data.pageName && route.routeConfig.path === route.data.pageName) {
|
|
1075
1075
|
pageName = route.data.pageName;
|
|
@@ -1134,7 +1134,7 @@ let WmDefaultRouteReuseStrategy = class WmDefaultRouteReuseStrategy {
|
|
|
1134
1134
|
reset(pageName) {
|
|
1135
1135
|
if (pageName) {
|
|
1136
1136
|
this.cache.delete(pageName);
|
|
1137
|
-
const pageWithParams = pageName
|
|
1137
|
+
const pageWithParams = pageName + '?';
|
|
1138
1138
|
const entriesToDelete = [];
|
|
1139
1139
|
for (let k of this.cache.keys()) {
|
|
1140
1140
|
if (k.startsWith(pageWithParams)) {
|
|
@@ -1329,7 +1329,7 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1329
1329
|
&& lastPage) {
|
|
1330
1330
|
const $target = lastPage.parent();
|
|
1331
1331
|
const onTransitionEnd = (e) => {
|
|
1332
|
-
if (resolve && !
|
|
1332
|
+
if (resolve && !e?.pseudoElement) {
|
|
1333
1333
|
$target.off('animationend', onTransitionEnd);
|
|
1334
1334
|
$target.removeClass(transition);
|
|
1335
1335
|
$target.children().first().remove();
|
|
@@ -1349,7 +1349,7 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1349
1349
|
resolve();
|
|
1350
1350
|
}
|
|
1351
1351
|
}).then(() => {
|
|
1352
|
-
this.$page
|
|
1352
|
+
this.$page?.removeClass('page-entry');
|
|
1353
1353
|
if (lastPage) {
|
|
1354
1354
|
lastPage.remove();
|
|
1355
1355
|
BasePageComponent.lastPageSnapShot = null;
|
|
@@ -1368,7 +1368,7 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
loadScripts() {
|
|
1370
1370
|
return new Promise((resolve) => {
|
|
1371
|
-
const scriptsRequired = this.pageDirective
|
|
1371
|
+
const scriptsRequired = this.pageDirective?.$element.attr('scripts-to-load');
|
|
1372
1372
|
if (scriptsRequired) {
|
|
1373
1373
|
this.scriptLoaderService
|
|
1374
1374
|
.load(...scriptsRequired.split(','))
|
|
@@ -1517,16 +1517,16 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1517
1517
|
onBeforePageLeave() { }
|
|
1518
1518
|
onPageContentReady() { }
|
|
1519
1519
|
canReuse() {
|
|
1520
|
-
return !!(this.pageDirective
|
|
1520
|
+
return !!(this.pageDirective?.cache);
|
|
1521
1521
|
}
|
|
1522
1522
|
mute() {
|
|
1523
|
-
const m = o => { o
|
|
1523
|
+
const m = o => { o?.mute?.(); };
|
|
1524
1524
|
each(this.Widgets, m);
|
|
1525
1525
|
each(this.Variables, m);
|
|
1526
1526
|
each(this.Actions, m);
|
|
1527
1527
|
}
|
|
1528
1528
|
unmute(c = this) {
|
|
1529
|
-
const um = o => { o
|
|
1529
|
+
const um = o => { o?.unmute?.(); };
|
|
1530
1530
|
each(this.Widgets, um);
|
|
1531
1531
|
each(this.Variables, um);
|
|
1532
1532
|
each(this.Actions, um);
|
|
@@ -1542,14 +1542,14 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1542
1542
|
this.unmute();
|
|
1543
1543
|
// expose current page widgets on app
|
|
1544
1544
|
this.App.Widgets = Object.create(this.Widgets);
|
|
1545
|
-
if (this.pageDirective
|
|
1546
|
-
const refresh = v => { v
|
|
1545
|
+
if (this.pageDirective?.refreshdataonattach) {
|
|
1546
|
+
const refresh = v => { v?.startUpdate && v?.invoke?.(); };
|
|
1547
1547
|
each(this.Variables, refresh);
|
|
1548
1548
|
each(this.Actions, refresh);
|
|
1549
1549
|
}
|
|
1550
1550
|
this.runPageTransition().then(() => {
|
|
1551
1551
|
setTimeout(() => this.restoreScrollPosition(), 100);
|
|
1552
|
-
each(this.Widgets, w => w
|
|
1552
|
+
each(this.Widgets, w => w?.ngOnAttach?.());
|
|
1553
1553
|
this.appManager.notify('pageAttach', { 'name': this.pageName, instance: this });
|
|
1554
1554
|
});
|
|
1555
1555
|
}
|
|
@@ -1557,7 +1557,7 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1557
1557
|
this.saveScrollPosition();
|
|
1558
1558
|
this.savePageSnapShot();
|
|
1559
1559
|
this.mute();
|
|
1560
|
-
each(this.Widgets, w => w
|
|
1560
|
+
each(this.Widgets, w => w?.ngOnDetach?.());
|
|
1561
1561
|
this.appManager.notify('pageDetach', { 'name': this.pageName, instance: this });
|
|
1562
1562
|
}
|
|
1563
1563
|
ngAfterContentInit() {
|
|
@@ -1569,10 +1569,10 @@ class BasePageComponent extends FragmentMonitor {
|
|
|
1569
1569
|
BasePageComponent.lastPageSnapShot = null;
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1573
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePageComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1573
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BasePageComponent, isStandalone: true, host: { listeners: { "window:beforeunload": "canDeactivate()" } }, viewQueries: [{ propertyName: "pageDirective", first: true, predicate: PageDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
1574
1574
|
}
|
|
1575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePageComponent, decorators: [{
|
|
1576
1576
|
type: Directive
|
|
1577
1577
|
}], propDecorators: { pageDirective: [{
|
|
1578
1578
|
type: ViewChild,
|
|
@@ -1721,6 +1721,7 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1721
1721
|
get datavalue() {
|
|
1722
1722
|
if (this['getDatavalue'])
|
|
1723
1723
|
return this['getDatavalue']();
|
|
1724
|
+
return undefined;
|
|
1724
1725
|
}
|
|
1725
1726
|
set datavalue(value) {
|
|
1726
1727
|
this.datavalue = value;
|
|
@@ -1755,23 +1756,18 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1755
1756
|
// assign all the page variables to the pageInstance
|
|
1756
1757
|
Object.entries(variableCollection.Variables).forEach(([name, variable]) => this.Variables[name] = variable);
|
|
1757
1758
|
Object.entries(variableCollection.Actions).forEach(([name, action]) => this.Actions[name] = action);
|
|
1758
|
-
this.viewInit$.subscribe(
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1759
|
+
this.viewInit$.subscribe({
|
|
1760
|
+
complete: () => {
|
|
1761
|
+
// TEMP: triggering watchers so variables watching over params are updated
|
|
1762
|
+
$invokeWatchers(true, true);
|
|
1763
|
+
variableCollection.callback(variableCollection.Variables).catch(noop$1);
|
|
1764
|
+
variableCollection.callback(variableCollection.Actions);
|
|
1765
|
+
}
|
|
1763
1766
|
});
|
|
1764
1767
|
}
|
|
1765
|
-
/**
|
|
1766
|
-
* function to register bind expressions generated in this partial instance
|
|
1767
|
-
* getExpressions function is defined in the generated page.comp.ts file
|
|
1768
|
-
* @param expressions, map of bind expression vs generated function
|
|
1769
|
-
*/
|
|
1770
1768
|
registerExpressions() {
|
|
1771
|
-
//
|
|
1772
|
-
//
|
|
1773
|
-
// registerFnByExpr(expr, fn[0], fn[1]);
|
|
1774
|
-
// });
|
|
1769
|
+
// Intentional no-op: M3 custom widgets don't generate a getExpressions() function like pages/prefabs/partials do;
|
|
1770
|
+
// bind expressions for custom widget props are instead watched in registerPropsInContainerWidget().
|
|
1775
1771
|
}
|
|
1776
1772
|
registerProps() {
|
|
1777
1773
|
this.props = this.containerWidget.props;
|
|
@@ -1789,18 +1785,6 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1789
1785
|
this.viewParent.resolveFragment();
|
|
1790
1786
|
}
|
|
1791
1787
|
}
|
|
1792
|
-
loadScripts() {
|
|
1793
|
-
// return new Promise<void>((resolve) => {
|
|
1794
|
-
// const scriptsRequired = this.partialDirective.$element.attr('scripts-to-load');
|
|
1795
|
-
// if (scriptsRequired) {
|
|
1796
|
-
// this.scriptLoaderService
|
|
1797
|
-
// .load(...scriptsRequired.split(','))
|
|
1798
|
-
// .then(resolve);
|
|
1799
|
-
// } else {
|
|
1800
|
-
// resolve();
|
|
1801
|
-
// }
|
|
1802
|
-
// });
|
|
1803
|
-
}
|
|
1804
1788
|
registerPropsInContainerWidget(resolveFn) {
|
|
1805
1789
|
this.customwidgetConfigProvider.getConfig(this.customWidgetName).then((config) => {
|
|
1806
1790
|
if (config) {
|
|
@@ -1829,13 +1813,13 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1829
1813
|
});
|
|
1830
1814
|
}
|
|
1831
1815
|
mute() {
|
|
1832
|
-
const m = o => { o
|
|
1816
|
+
const m = o => { o?.mute?.(); };
|
|
1833
1817
|
_.each(this.Widgets, m);
|
|
1834
1818
|
_.each(this.Variables, m);
|
|
1835
1819
|
_.each(this.Actions, m);
|
|
1836
1820
|
}
|
|
1837
1821
|
unmute() {
|
|
1838
|
-
const um = o => { o
|
|
1822
|
+
const um = o => { o?.unmute?.(); };
|
|
1839
1823
|
_.each(this.Widgets, um);
|
|
1840
1824
|
_.each(this.Variables, um);
|
|
1841
1825
|
_.each(this.Actions, um);
|
|
@@ -1848,7 +1832,7 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1848
1832
|
this.registerBaseWidget();
|
|
1849
1833
|
setTimeout(() => {
|
|
1850
1834
|
this.viewInit$.complete();
|
|
1851
|
-
this.fragmentsLoaded$.subscribe(
|
|
1835
|
+
this.fragmentsLoaded$.subscribe({ complete: () => this.invokeOnReady() });
|
|
1852
1836
|
}, 100);
|
|
1853
1837
|
}
|
|
1854
1838
|
ngOnDestroy() {
|
|
@@ -1892,24 +1876,24 @@ class BaseCustomWidgetComponent extends FragmentMonitor {
|
|
|
1892
1876
|
ngOnAttach(refreshData) {
|
|
1893
1877
|
this.unmute();
|
|
1894
1878
|
if (refreshData) {
|
|
1895
|
-
const refresh = v => { v
|
|
1879
|
+
const refresh = v => { v?.startUpdate && v?.invoke?.(); };
|
|
1896
1880
|
_.each(this.Variables, refresh);
|
|
1897
1881
|
_.each(this.Actions, refresh);
|
|
1898
1882
|
}
|
|
1899
|
-
_.each(this.Widgets, w => w
|
|
1883
|
+
_.each(this.Widgets, w => w?.ngOnAttach?.());
|
|
1900
1884
|
}
|
|
1901
1885
|
ngOnDetach() {
|
|
1902
1886
|
this.mute();
|
|
1903
|
-
_.each(this.Widgets, w => w
|
|
1887
|
+
_.each(this.Widgets, w => w?.ngOnDetach?.());
|
|
1904
1888
|
}
|
|
1905
1889
|
// user overrides this
|
|
1906
1890
|
onPropertyChange() { }
|
|
1907
1891
|
onReady(params) {
|
|
1908
1892
|
}
|
|
1909
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1910
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1893
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseCustomWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1894
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BaseCustomWidgetComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
1911
1895
|
}
|
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1896
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseCustomWidgetComponent, decorators: [{
|
|
1913
1897
|
type: Directive
|
|
1914
1898
|
}] });
|
|
1915
1899
|
|
|
@@ -2011,7 +1995,7 @@ class BasePrefabComponent extends FragmentMonitor {
|
|
|
2011
1995
|
this.containerWidget[key] = (...args) => {
|
|
2012
1996
|
try {
|
|
2013
1997
|
if (this[key]) {
|
|
2014
|
-
return this[key]
|
|
1998
|
+
return this[key](...args);
|
|
2015
1999
|
}
|
|
2016
2000
|
}
|
|
2017
2001
|
catch (e) {
|
|
@@ -2083,13 +2067,13 @@ class BasePrefabComponent extends FragmentMonitor {
|
|
|
2083
2067
|
});
|
|
2084
2068
|
}
|
|
2085
2069
|
mute() {
|
|
2086
|
-
const m = o => { o
|
|
2070
|
+
const m = o => { o?.mute?.(); };
|
|
2087
2071
|
each(this.Widgets, m);
|
|
2088
2072
|
each(this.Variables, m);
|
|
2089
2073
|
each(this.Actions, m);
|
|
2090
2074
|
}
|
|
2091
2075
|
unmute() {
|
|
2092
|
-
const um = o => { o
|
|
2076
|
+
const um = o => { o?.unmute?.(); };
|
|
2093
2077
|
each(this.Widgets, um);
|
|
2094
2078
|
each(this.Variables, um);
|
|
2095
2079
|
each(this.Actions, um);
|
|
@@ -2097,15 +2081,15 @@ class BasePrefabComponent extends FragmentMonitor {
|
|
|
2097
2081
|
ngOnAttach(refreshData) {
|
|
2098
2082
|
this.unmute();
|
|
2099
2083
|
if (refreshData) {
|
|
2100
|
-
const refresh = v => { v
|
|
2084
|
+
const refresh = v => { v?.startUpdate && v?.invoke?.(); };
|
|
2101
2085
|
each(this.Variables, refresh);
|
|
2102
2086
|
each(this.Actions, refresh);
|
|
2103
2087
|
}
|
|
2104
|
-
each(this.Widgets, w => w
|
|
2088
|
+
each(this.Widgets, w => w?.ngOnAttach?.());
|
|
2105
2089
|
}
|
|
2106
2090
|
ngOnDetach() {
|
|
2107
2091
|
this.mute();
|
|
2108
|
-
each(this.Widgets, w => w
|
|
2092
|
+
each(this.Widgets, w => w?.ngOnDetach?.());
|
|
2109
2093
|
}
|
|
2110
2094
|
ngAfterViewChecked() {
|
|
2111
2095
|
if (!this.scriptsLoaded && this.prefabContainerDirective) {
|
|
@@ -2145,10 +2129,10 @@ class BasePrefabComponent extends FragmentMonitor {
|
|
|
2145
2129
|
// user overrides this
|
|
2146
2130
|
onPropertyChange() { }
|
|
2147
2131
|
onReady() { }
|
|
2148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2149
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePrefabComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2133
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BasePrefabComponent, isStandalone: true, viewQueries: [{ propertyName: "prefabContainerDirective", first: true, predicate: PrefabContainerDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2150
2134
|
}
|
|
2151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BasePrefabComponent, decorators: [{
|
|
2152
2136
|
type: Directive
|
|
2153
2137
|
}], propDecorators: { prefabContainerDirective: [{
|
|
2154
2138
|
type: ViewChild,
|
|
@@ -2212,10 +2196,10 @@ class BaseLayoutComponent {
|
|
|
2212
2196
|
//Add page component scope to layout component so that bindings and watchers in the layout will use the page scope
|
|
2213
2197
|
extend(this, pageComponent);
|
|
2214
2198
|
}
|
|
2215
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2216
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2200
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BaseLayoutComponent, isStandalone: true, viewQueries: [{ propertyName: "routerOutlet", first: true, predicate: RouterOutlet, descendants: true }, { propertyName: "pageDirective", first: true, predicate: PageDirective, descendants: true }], ngImport: i0 }); }
|
|
2217
2201
|
}
|
|
2218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseLayoutComponent, decorators: [{
|
|
2219
2203
|
type: Directive
|
|
2220
2204
|
}], propDecorators: { routerOutlet: [{
|
|
2221
2205
|
type: ViewChild,
|
|
@@ -2329,10 +2313,10 @@ class WMDomRendererFactory2 {
|
|
|
2329
2313
|
}
|
|
2330
2314
|
begin() { }
|
|
2331
2315
|
end() { }
|
|
2332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2333
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2316
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomRendererFactory2, deps: [{ token: i1$2.EventManager }, { token: i1$2.ɵSharedStylesHost }, { token: APP_ID }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2317
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomRendererFactory2 }); }
|
|
2334
2318
|
}
|
|
2335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomRendererFactory2, decorators: [{
|
|
2336
2320
|
type: Injectable
|
|
2337
2321
|
}], ctorParameters: () => [{ type: i1$2.EventManager }, { type: i1$2.ɵSharedStylesHost }, { type: undefined, decorators: [{
|
|
2338
2322
|
type: Inject,
|
|
@@ -2432,14 +2416,12 @@ let WMDefaultDomRenderer2 = class WMDefaultDomRenderer2 {
|
|
|
2432
2416
|
el.setAttribute(name, value);
|
|
2433
2417
|
}
|
|
2434
2418
|
}
|
|
2419
|
+
else if (name === 'style') {
|
|
2420
|
+
this.resetStyles(el);
|
|
2421
|
+
this.applyStyles(el, value);
|
|
2422
|
+
}
|
|
2435
2423
|
else {
|
|
2436
|
-
|
|
2437
|
-
this.resetStyles(el);
|
|
2438
|
-
this.applyStyles(el, value);
|
|
2439
|
-
}
|
|
2440
|
-
else {
|
|
2441
|
-
el.setAttribute(name, value);
|
|
2442
|
-
}
|
|
2424
|
+
el.setAttribute(name, value);
|
|
2443
2425
|
}
|
|
2444
2426
|
}
|
|
2445
2427
|
removeAttribute(el, name, namespace) {
|
|
@@ -2614,10 +2596,10 @@ class SharedStylesHost {
|
|
|
2614
2596
|
getAllStyles() {
|
|
2615
2597
|
return Array.from(this._stylesSet);
|
|
2616
2598
|
}
|
|
2617
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2618
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2599
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SharedStylesHost, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2600
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SharedStylesHost }); }
|
|
2619
2601
|
}
|
|
2620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SharedStylesHost, decorators: [{
|
|
2621
2603
|
type: Injectable
|
|
2622
2604
|
}] });
|
|
2623
2605
|
class WMDomSharedStylesHost extends SharedStylesHost {
|
|
@@ -2657,10 +2639,10 @@ class WMDomSharedStylesHost extends SharedStylesHost {
|
|
|
2657
2639
|
ngOnDestroy() {
|
|
2658
2640
|
this._hostNodes.forEach(styleNodes => styleNodes.forEach(removeStyle));
|
|
2659
2641
|
}
|
|
2660
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2661
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomSharedStylesHost, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2643
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomSharedStylesHost }); }
|
|
2662
2644
|
}
|
|
2663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: WMDomSharedStylesHost, decorators: [{
|
|
2664
2646
|
type: Injectable
|
|
2665
2647
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2666
2648
|
type: Inject,
|
|
@@ -2784,7 +2766,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2784
2766
|
&& lastPage) {
|
|
2785
2767
|
const $target = lastPage.parent();
|
|
2786
2768
|
const onTransitionEnd = (e) => {
|
|
2787
|
-
if (resolve && !
|
|
2769
|
+
if (resolve && !e?.pseudoElement) {
|
|
2788
2770
|
$target.off('animationend', onTransitionEnd);
|
|
2789
2771
|
$target.removeClass(transition);
|
|
2790
2772
|
$target.children().first().remove();
|
|
@@ -2804,7 +2786,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2804
2786
|
resolve();
|
|
2805
2787
|
}
|
|
2806
2788
|
}).then(() => {
|
|
2807
|
-
this.$page
|
|
2789
|
+
this.$page?.removeClass('page-entry');
|
|
2808
2790
|
if (lastPage) {
|
|
2809
2791
|
lastPage.remove();
|
|
2810
2792
|
BaseSpaPageComponent.lastPageSnapShot = null;
|
|
@@ -2820,7 +2802,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2820
2802
|
}
|
|
2821
2803
|
loadScripts() {
|
|
2822
2804
|
return new Promise((resolve) => {
|
|
2823
|
-
const scriptsRequired = this.spaPageDirective
|
|
2805
|
+
const scriptsRequired = this.spaPageDirective?.$element.attr('scripts-to-load');
|
|
2824
2806
|
if (scriptsRequired) {
|
|
2825
2807
|
this.scriptLoaderService
|
|
2826
2808
|
.load(...scriptsRequired.split(','))
|
|
@@ -2950,16 +2932,16 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2950
2932
|
onBeforePageLeave() { }
|
|
2951
2933
|
onPageContentReady() { }
|
|
2952
2934
|
canReuse() {
|
|
2953
|
-
return !!(this.spaPageDirective
|
|
2935
|
+
return !!(this.spaPageDirective?.cache);
|
|
2954
2936
|
}
|
|
2955
2937
|
mute() {
|
|
2956
|
-
const m = o => { o
|
|
2938
|
+
const m = o => { o?.mute?.(); };
|
|
2957
2939
|
each(this.Widgets, m);
|
|
2958
2940
|
each(this.Variables, m);
|
|
2959
2941
|
each(this.Actions, m);
|
|
2960
2942
|
}
|
|
2961
2943
|
unmute(c = this) {
|
|
2962
|
-
const um = o => { o
|
|
2944
|
+
const um = o => { o?.unmute?.(); };
|
|
2963
2945
|
each(this.Widgets, um);
|
|
2964
2946
|
each(this.Variables, um);
|
|
2965
2947
|
each(this.Actions, um);
|
|
@@ -2975,14 +2957,14 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2975
2957
|
this.unmute();
|
|
2976
2958
|
// expose current page widgets on app
|
|
2977
2959
|
this.App.Widgets = Object.create(this.Widgets);
|
|
2978
|
-
if (this.spaPageDirective
|
|
2979
|
-
const refresh = v => { v
|
|
2960
|
+
if (this.spaPageDirective?.refreshdataonattach) {
|
|
2961
|
+
const refresh = v => { v?.startUpdate && v?.invoke?.(); };
|
|
2980
2962
|
each(this.Variables, refresh);
|
|
2981
2963
|
each(this.Actions, refresh);
|
|
2982
2964
|
}
|
|
2983
2965
|
this.runPageTransition().then(() => {
|
|
2984
2966
|
setTimeout(() => this.restoreScrollPosition(), 100);
|
|
2985
|
-
each(this.Widgets, w => w
|
|
2967
|
+
each(this.Widgets, w => w?.ngOnAttach?.());
|
|
2986
2968
|
this.appManager.notify('pageAttach', { 'name': this.pageName, instance: this });
|
|
2987
2969
|
});
|
|
2988
2970
|
this.appManager.notify('highlightActiveLink', { 'pageName': this.pageName });
|
|
@@ -2991,7 +2973,7 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
2991
2973
|
this.saveScrollPosition();
|
|
2992
2974
|
this.savePageSnapShot();
|
|
2993
2975
|
this.mute();
|
|
2994
|
-
each(this.Widgets, w => w
|
|
2976
|
+
each(this.Widgets, w => w?.ngOnDetach?.());
|
|
2995
2977
|
this.appManager.notify('pageDetach', { 'name': this.pageName, instance: this });
|
|
2996
2978
|
}
|
|
2997
2979
|
ngAfterContentInit() {
|
|
@@ -3003,10 +2985,10 @@ class BaseSpaPageComponent extends FragmentMonitor {
|
|
|
3003
2985
|
BaseSpaPageComponent.lastPageSnapShot = null;
|
|
3004
2986
|
}
|
|
3005
2987
|
}
|
|
3006
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3007
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2988
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseSpaPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2989
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: BaseSpaPageComponent, isStandalone: true, host: { listeners: { "window:beforeunload": "canDeactivate()" } }, viewQueries: [{ propertyName: "spaPageDirective", first: true, predicate: SpaPageDirective, descendants: true }], usesInheritance: true, ngImport: i0 }); }
|
|
3008
2990
|
}
|
|
3009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: BaseSpaPageComponent, decorators: [{
|
|
3010
2992
|
type: Directive
|
|
3011
2993
|
}], propDecorators: { spaPageDirective: [{
|
|
3012
2994
|
type: ViewChild,
|
|
@@ -3111,10 +3093,10 @@ class AccessrolesDirective {
|
|
|
3111
3093
|
this.context = null;
|
|
3112
3094
|
}
|
|
3113
3095
|
}
|
|
3114
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3115
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3096
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AccessrolesDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i2.SecurityService }, { token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3097
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: AccessrolesDirective, isStandalone: true, selector: "[accessroles]", inputs: { accessroles: "accessroles" }, ngImport: i0 }); }
|
|
3116
3098
|
}
|
|
3117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AccessrolesDirective, decorators: [{
|
|
3118
3100
|
type: Directive,
|
|
3119
3101
|
args: [{
|
|
3120
3102
|
standalone: true,
|
|
@@ -3131,8 +3113,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.20", ngImpo
|
|
|
3131
3113
|
|
|
3132
3114
|
class AppSpinnerComponent {
|
|
3133
3115
|
constructor() { }
|
|
3134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
3116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: AppSpinnerComponent, isStandalone: true, selector: "app-spinner", inputs: { show: "show", spinnermessages: "spinnermessages", classname: "classname", arialabel: "arialabel" }, ngImport: i0, template: `
|
|
3136
3118
|
@if (show) {
|
|
3137
3119
|
<div class="app-spinner" [ngClass]="classname">
|
|
3138
3120
|
<div class="spinner-message">
|
|
@@ -3147,7 +3129,7 @@ class AppSpinnerComponent {
|
|
|
3147
3129
|
}
|
|
3148
3130
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TextContentDirective, selector: "[textContent]", inputs: ["textContent"] }] }); }
|
|
3149
3131
|
}
|
|
3150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppSpinnerComponent, decorators: [{
|
|
3151
3133
|
type: Component,
|
|
3152
3134
|
args: [{
|
|
3153
3135
|
standalone: true,
|
|
@@ -3216,8 +3198,8 @@ class CustomToasterComponent extends Toast {
|
|
|
3216
3198
|
forEach(this.watchers, watcher => watcher());
|
|
3217
3199
|
super.ngOnDestroy();
|
|
3218
3200
|
}
|
|
3219
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3220
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
3201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomToasterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3202
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: CustomToasterComponent, isStandalone: true, selector: "[custom-toaster-component]", viewQueries: [{ propertyName: "customToastRef", first: true, predicate: ["customToast"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "customToastTmpl", first: true, predicate: ["customToastTmpl"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3221
3203
|
<div class="parent-custom-toast"></div>
|
|
3222
3204
|
<ng-container #customToast></ng-container>
|
|
3223
3205
|
<ng-template #customToastTmpl>
|
|
@@ -3229,7 +3211,7 @@ class CustomToasterComponent extends Toast {
|
|
|
3229
3211
|
</div>
|
|
3230
3212
|
</ng-template>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: ContainerDirective, selector: "[wmContainer]" }, { kind: "directive", type: PartialParamHandlerDirective, selector: "[partialContainer]" }, { kind: "directive", type: PartialContainerDirective, selector: "[partialContainer]" }, { kind: "directive", type: PartialParamDirective, selector: "[wmParam]", inputs: ["name", "value"] }, { kind: "pipe", type: i5.KeyValuePipe, name: "keyvalue" }] }); }
|
|
3231
3213
|
}
|
|
3232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomToasterComponent, decorators: [{
|
|
3233
3215
|
type: Component,
|
|
3234
3216
|
args: [{
|
|
3235
3217
|
standalone: true,
|
|
@@ -3300,10 +3282,10 @@ class EmptyPageComponent {
|
|
|
3300
3282
|
this.appManger.postAppTypeInfo();
|
|
3301
3283
|
}
|
|
3302
3284
|
}
|
|
3303
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3304
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3285
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: EmptyPageComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i2.SecurityService }, { token: i1$1.Router }, { token: i1.App }, { token: AppManagerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3286
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: EmptyPageComponent, isStandalone: true, selector: "app-empty-page", ngImport: i0, template: '<div></div>', isInline: true }); }
|
|
3305
3287
|
}
|
|
3306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3288
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: EmptyPageComponent, decorators: [{
|
|
3307
3289
|
type: Component,
|
|
3308
3290
|
args: [{
|
|
3309
3291
|
standalone: true,
|
|
@@ -3421,10 +3403,10 @@ class PipeProvider {
|
|
|
3421
3403
|
return new ref(...args);
|
|
3422
3404
|
}
|
|
3423
3405
|
}
|
|
3424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3425
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeProvider, deps: [{ token: i0.Compiler }, { token: i0.Injector }, { token: i1$2.DomSanitizer }, { token: i1.AbstractI18nService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3407
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeProvider, providedIn: 'root' }); }
|
|
3426
3408
|
}
|
|
3427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeProvider, decorators: [{
|
|
3428
3410
|
type: Injectable,
|
|
3429
3411
|
args: [{
|
|
3430
3412
|
providedIn: 'root'
|
|
@@ -3450,10 +3432,10 @@ class PipeService {
|
|
|
3450
3432
|
throw Error(`The pipe '${name}' could not be found`);
|
|
3451
3433
|
}
|
|
3452
3434
|
}
|
|
3453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3454
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeService, deps: [{ token: PipeProvider }, { token: i1.App }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3436
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeService, providedIn: 'root' }); }
|
|
3455
3437
|
}
|
|
3456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PipeService, decorators: [{
|
|
3457
3439
|
type: Injectable,
|
|
3458
3440
|
args: [{ providedIn: 'root' }]
|
|
3459
3441
|
}], ctorParameters: () => [{ type: PipeProvider }, { type: i1.App }] });
|
|
@@ -3480,7 +3462,7 @@ const getHttpDependency = function () {
|
|
|
3480
3462
|
const httpService = this.httpService;
|
|
3481
3463
|
const fn = function (key, options) {
|
|
3482
3464
|
const args = Array.from(arguments).slice(1);
|
|
3483
|
-
return Promise.resolve(httpService[key]
|
|
3465
|
+
return Promise.resolve(httpService[key](...args));
|
|
3484
3466
|
};
|
|
3485
3467
|
const $http = function () {
|
|
3486
3468
|
return fn.apply(undefined, ['send', ...Array.from(arguments)]);
|
|
@@ -3534,7 +3516,7 @@ class AppRef {
|
|
|
3534
3516
|
}
|
|
3535
3517
|
}
|
|
3536
3518
|
notify(eventName, ...data) {
|
|
3537
|
-
this._eventNotifier.notify
|
|
3519
|
+
this._eventNotifier.notify(eventName, ...data);
|
|
3538
3520
|
}
|
|
3539
3521
|
importModule(moduleName) {
|
|
3540
3522
|
if (moduleName === 'moment') {
|
|
@@ -3670,10 +3652,10 @@ class AppRef {
|
|
|
3670
3652
|
this.modes = null;
|
|
3671
3653
|
this.dynamicComponentContainerRef = null;
|
|
3672
3654
|
}
|
|
3673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3674
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppRef, deps: [{ token: i0.Injector }, { token: i1.AbstractI18nService }, { token: i1.StatePersistence }, { token: i1.AbstractHttpService }, { token: i2.SecurityService }, { token: i1$1.RouteReuseStrategy }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3656
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppRef }); }
|
|
3675
3657
|
}
|
|
3676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppRef, decorators: [{
|
|
3677
3659
|
type: Injectable
|
|
3678
3660
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.AbstractI18nService }, { type: i1.StatePersistence }, { type: i1.AbstractHttpService }, { type: i2.SecurityService }, { type: i1$1.RouteReuseStrategy }] });
|
|
3679
3661
|
|
|
@@ -3753,10 +3735,10 @@ class ToasterServiceImpl extends AbstractToasterService {
|
|
|
3753
3735
|
console.warn('Please pass a valid options object, For Example : {maxOpened: 1, autoDismiss: true}');
|
|
3754
3736
|
}
|
|
3755
3737
|
}
|
|
3756
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3757
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ToasterServiceImpl, deps: [{ token: i1$3.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3739
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ToasterServiceImpl }); }
|
|
3758
3740
|
}
|
|
3759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ToasterServiceImpl, decorators: [{
|
|
3760
3742
|
type: Injectable
|
|
3761
3743
|
}], ctorParameters: () => [{ type: i1$3.ToastrService }] });
|
|
3762
3744
|
|
|
@@ -3862,7 +3844,7 @@ class I18nServiceImpl extends AbstractI18nService {
|
|
|
3862
3844
|
// For ngx bootstrap locale, get the config from script and apply locale
|
|
3863
3845
|
// moment.localeData(momentLocale) will return moment locale instance. _config inside will have actual config
|
|
3864
3846
|
let _config = moment.localeData(momentLocale);
|
|
3865
|
-
_config = _config
|
|
3847
|
+
_config = _config?._config;
|
|
3866
3848
|
defineLocale(this.selectedLocale, _config);
|
|
3867
3849
|
this.bsLocaleService.use(this.getSelectedLocale() || this.defaultSupportedLocale);
|
|
3868
3850
|
this.bundleLoaded.moment = true;
|
|
@@ -3910,29 +3892,26 @@ class I18nServiceImpl extends AbstractI18nService {
|
|
|
3910
3892
|
return Promise.all(promises);
|
|
3911
3893
|
}
|
|
3912
3894
|
setTimezone(locale, compInstance) {
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
if (localeIndex >
|
|
3923
|
-
|
|
3924
|
-
locale = locale.substr(localeIndex);
|
|
3925
|
-
}
|
|
3926
|
-
localeObj['timezone'] = find(moment.tz.names(), (timezoneName) => {
|
|
3927
|
-
return locale === moment.tz(timezoneName).format('Z');
|
|
3928
|
-
});
|
|
3895
|
+
this.loadMomentTimeZoneBundle().then(() => {
|
|
3896
|
+
/**
|
|
3897
|
+
* If locale is provided in the form of offset and not timezone name, deduce the name.
|
|
3898
|
+
* If locale is provided as GMT+9, name will be deduced as Asia/Tokyo
|
|
3899
|
+
*/
|
|
3900
|
+
let localeObj = locale;
|
|
3901
|
+
locale = localeObj['timezone'];
|
|
3902
|
+
const localeIndex = locale.indexOf('+');
|
|
3903
|
+
if (localeIndex > -1) {
|
|
3904
|
+
if (localeIndex > 0) {
|
|
3905
|
+
locale = locale.substr(localeIndex);
|
|
3929
3906
|
}
|
|
3930
|
-
moment.tz.
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3907
|
+
localeObj['timezone'] = find(moment.tz.names(), (timezoneName) => {
|
|
3908
|
+
return locale === moment.tz(timezoneName).format('Z');
|
|
3909
|
+
});
|
|
3910
|
+
}
|
|
3911
|
+
moment.tz.setDefault(locale);
|
|
3912
|
+
const localeData = compInstance?.formatsByLocale ? compInstance.formatsByLocale : this.formatsByLocale;
|
|
3913
|
+
Object.assign(localeData, localeObj);
|
|
3914
|
+
}, () => { });
|
|
3936
3915
|
}
|
|
3937
3916
|
setTimezoneEarly() {
|
|
3938
3917
|
return this.loadMomentTimeZoneBundle();
|
|
@@ -3994,7 +3973,7 @@ class I18nServiceImpl extends AbstractI18nService {
|
|
|
3994
3973
|
preferBrowserLang = true;
|
|
3995
3974
|
}
|
|
3996
3975
|
else { // convert stringified boolean values recieved from BE to booleans
|
|
3997
|
-
preferBrowserLang = (preferBrowserLang === 'true' || preferBrowserLang === true)
|
|
3976
|
+
preferBrowserLang = (preferBrowserLang === 'true' || preferBrowserLang === true);
|
|
3998
3977
|
}
|
|
3999
3978
|
let _supportedLang = Object.keys(getWmProjectProperties().supportedLanguages) || [this.defaultSupportedLocale];
|
|
4000
3979
|
// when preference is given to browser set languages, do not populate _selectedDefaultLang variable
|
|
@@ -4051,10 +4030,10 @@ class I18nServiceImpl extends AbstractI18nService {
|
|
|
4051
4030
|
$appDigest(true);
|
|
4052
4031
|
}
|
|
4053
4032
|
}
|
|
4054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4055
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4033
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nServiceImpl, deps: [{ token: i1$4.HttpClient }, { token: i2$1.BsLocaleService }, { token: i1.AppDefaults }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4034
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nServiceImpl }); }
|
|
4056
4035
|
}
|
|
4057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nServiceImpl, decorators: [{
|
|
4058
4037
|
type: Injectable
|
|
4059
4038
|
}], ctorParameters: () => [{ type: i1$4.HttpClient }, { type: i2$1.BsLocaleService }, { type: i1.AppDefaults }, { type: i0.Injector }] });
|
|
4060
4039
|
|
|
@@ -4190,10 +4169,10 @@ class SpinnerServiceImpl extends AbstractSpinnerService {
|
|
|
4190
4169
|
this.messagesByContext = null;
|
|
4191
4170
|
}
|
|
4192
4171
|
}
|
|
4193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4194
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SpinnerServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4173
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SpinnerServiceImpl }); }
|
|
4195
4174
|
}
|
|
4196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SpinnerServiceImpl, decorators: [{
|
|
4197
4176
|
type: Injectable
|
|
4198
4177
|
}], ctorParameters: () => [] });
|
|
4199
4178
|
|
|
@@ -4297,47 +4276,46 @@ class NavigationServiceImpl {
|
|
|
4297
4276
|
const transition = options.transition || '';
|
|
4298
4277
|
const $event = options.$event;
|
|
4299
4278
|
const activePage = this.app.activePage;
|
|
4300
|
-
const prefabName = variable
|
|
4279
|
+
const prefabName = variable?._context?.prefabName;
|
|
4301
4280
|
// Check if app is Prefab
|
|
4302
4281
|
if (this.app.isPrefabType) {
|
|
4303
4282
|
this.goToElementView($(parentSelector).find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4304
4283
|
}
|
|
4305
|
-
else
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
}
|
|
4313
|
-
else {
|
|
4314
|
-
// Todo[Shubham]: Make an API call to get all pages and check if the page name
|
|
4315
|
-
// is a page and then do this call else show an error as:
|
|
4316
|
-
// this.app.notifyApp(CONSTANTS.WIDGET_DOESNT_EXIST, 'error');
|
|
4317
|
-
this.goToPage(pageName, {
|
|
4318
|
-
viewName: viewName,
|
|
4319
|
-
$event: $event,
|
|
4320
|
-
transition: transition,
|
|
4321
|
-
urlParams: options.urlParams
|
|
4322
|
-
});
|
|
4323
|
-
// subscribe to an event named pageReady which notifies this subscriber
|
|
4324
|
-
// when all widgets in page are loaded i.e when page is ready
|
|
4325
|
-
const pageReadySubscriber = this.app.subscribe('pageReady', (page) => {
|
|
4326
|
-
this.goToElementView($(parentSelector).find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4327
|
-
pageReadySubscriber();
|
|
4328
|
-
});
|
|
4329
|
-
}
|
|
4330
|
-
}
|
|
4331
|
-
else if (prefabName && this.isPrefabWithNameExists(prefabName)) {
|
|
4332
|
-
this.goToElementView($('[prefabName="' + prefabName + '"]').find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4333
|
-
}
|
|
4334
|
-
else if (!pageName || pageName === activePage.activePageName) {
|
|
4335
|
-
this.goToElementView($(parentSelector).find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4284
|
+
else
|
|
4285
|
+
// checking if the element is present in the page or not, if no show an error toaster
|
|
4286
|
+
// if yes check if it is inside a partial/prefab in the page and then highlight the respective element
|
|
4287
|
+
// else goto the page in which the element exists and highlight the element
|
|
4288
|
+
if (pageName !== activePage.activePageName && !prefabName) {
|
|
4289
|
+
if (this.isPartialWithNameExists(pageName)) {
|
|
4290
|
+
this.goToElementView($('[partialcontainer][content="' + pageName + '"]').find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4336
4291
|
}
|
|
4337
4292
|
else {
|
|
4338
|
-
|
|
4293
|
+
// Todo[Shubham]: Make an API call to get all pages and check if the page name
|
|
4294
|
+
// is a page and then do this call else show an error as:
|
|
4295
|
+
// this.app.notifyApp(CONSTANTS.WIDGET_DOESNT_EXIST, 'error');
|
|
4296
|
+
this.goToPage(pageName, {
|
|
4297
|
+
viewName: viewName,
|
|
4298
|
+
$event: $event,
|
|
4299
|
+
transition: transition,
|
|
4300
|
+
urlParams: options.urlParams
|
|
4301
|
+
});
|
|
4302
|
+
// subscribe to an event named pageReady which notifies this subscriber
|
|
4303
|
+
// when all widgets in page are loaded i.e when page is ready
|
|
4304
|
+
const pageReadySubscriber = this.app.subscribe('pageReady', (page) => {
|
|
4305
|
+
this.goToElementView($(parentSelector).find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4306
|
+
pageReadySubscriber();
|
|
4307
|
+
});
|
|
4339
4308
|
}
|
|
4340
4309
|
}
|
|
4310
|
+
else if (prefabName && this.isPrefabWithNameExists(prefabName)) {
|
|
4311
|
+
this.goToElementView($('[prefabName="' + prefabName + '"]').find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4312
|
+
}
|
|
4313
|
+
else if (!pageName || pageName === activePage.activePageName) {
|
|
4314
|
+
this.goToElementView($(parentSelector).find('[name="' + viewName + '"]'), viewName, pageName, variable);
|
|
4315
|
+
}
|
|
4316
|
+
else {
|
|
4317
|
+
this.app.notifyApp(CONSTANTS.WIDGET_DOESNT_EXIST, 'error');
|
|
4318
|
+
}
|
|
4341
4319
|
}
|
|
4342
4320
|
/*
|
|
4343
4321
|
* navigates the user to a view element with given name
|
|
@@ -4451,10 +4429,10 @@ class NavigationServiceImpl {
|
|
|
4451
4429
|
});
|
|
4452
4430
|
return dialogId;
|
|
4453
4431
|
}
|
|
4454
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4455
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4432
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: NavigationServiceImpl, deps: [{ token: i1.App }, { token: i1$1.Router }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4433
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: NavigationServiceImpl }); }
|
|
4456
4434
|
}
|
|
4457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: NavigationServiceImpl, decorators: [{
|
|
4458
4436
|
type: Injectable
|
|
4459
4437
|
}], ctorParameters: () => [{ type: i1.App }, { type: i1$1.Router }, { type: i0.NgZone }] });
|
|
4460
4438
|
class PageInfo {
|
|
@@ -4509,10 +4487,10 @@ class AppDefaultsService {
|
|
|
4509
4487
|
this.dateTimeFormat = dateTimeFormat;
|
|
4510
4488
|
this.currencyCode = currency;
|
|
4511
4489
|
}
|
|
4512
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4513
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppDefaultsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4491
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppDefaultsService }); }
|
|
4514
4492
|
}
|
|
4515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppDefaultsService, decorators: [{
|
|
4516
4494
|
type: Injectable
|
|
4517
4495
|
}], ctorParameters: () => [] });
|
|
4518
4496
|
|
|
@@ -4546,10 +4524,10 @@ class AuthGuard {
|
|
|
4546
4524
|
return Promise.resolve(false);
|
|
4547
4525
|
});
|
|
4548
4526
|
}
|
|
4549
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4550
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AuthGuard, deps: [{ token: i2.SecurityService }, { token: AppManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4528
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AuthGuard }); }
|
|
4551
4529
|
}
|
|
4552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AuthGuard, decorators: [{
|
|
4553
4531
|
type: Injectable
|
|
4554
4532
|
}], ctorParameters: () => [{ type: i2.SecurityService }, { type: AppManagerService }] });
|
|
4555
4533
|
|
|
@@ -4582,10 +4560,10 @@ class RoleGuard {
|
|
|
4582
4560
|
}
|
|
4583
4561
|
});
|
|
4584
4562
|
}
|
|
4585
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4586
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RoleGuard, deps: [{ token: i2.SecurityService }, { token: AuthGuard }, { token: i1.AbstractToasterService }, { token: i1.App }, { token: AppManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4564
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RoleGuard }); }
|
|
4587
4565
|
}
|
|
4588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RoleGuard, decorators: [{
|
|
4589
4567
|
type: Injectable
|
|
4590
4568
|
}], ctorParameters: () => [{ type: i2.SecurityService }, { type: AuthGuard }, { type: i1.AbstractToasterService }, { type: i1.App }, { type: AppManagerService }] });
|
|
4591
4569
|
|
|
@@ -4598,10 +4576,10 @@ class PageNotFoundGuard {
|
|
|
4598
4576
|
this.appManager.notifyApp(this.app.appLocale.MESSAGE_PAGE_NOT_FOUND || 'The page you are trying to reach is not available', 'error');
|
|
4599
4577
|
return Promise.resolve(false);
|
|
4600
4578
|
}
|
|
4601
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4602
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PageNotFoundGuard, deps: [{ token: i1.App }, { token: AppManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4580
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PageNotFoundGuard }); }
|
|
4603
4581
|
}
|
|
4604
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PageNotFoundGuard, decorators: [{
|
|
4605
4583
|
type: Injectable
|
|
4606
4584
|
}], ctorParameters: () => [{ type: i1.App }, { type: AppManagerService }] });
|
|
4607
4585
|
|
|
@@ -4630,10 +4608,10 @@ class AppJSResolve {
|
|
|
4630
4608
|
appJsLoaded$1 = true;
|
|
4631
4609
|
return true;
|
|
4632
4610
|
}
|
|
4633
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4634
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppJSResolve, deps: [{ token: i0.Injector }, { token: i1.App }, { token: i1.UtilsService }, { token: AppJSProvider }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4612
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppJSResolve }); }
|
|
4635
4613
|
}
|
|
4636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppJSResolve, decorators: [{
|
|
4637
4615
|
type: Injectable
|
|
4638
4616
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.App }, { type: i1.UtilsService }, { type: AppJSProvider }] });
|
|
4639
4617
|
|
|
@@ -4670,10 +4648,10 @@ class AppExtensionJSResolve {
|
|
|
4670
4648
|
console.warn('Error in reading formatters.js', e);
|
|
4671
4649
|
}
|
|
4672
4650
|
}
|
|
4673
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4674
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppExtensionJSResolve, deps: [{ token: AppManagerService }, { token: AppExtensionProvider }, { token: i1.CustomPipeManager }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4652
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppExtensionJSResolve }); }
|
|
4675
4653
|
}
|
|
4676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppExtensionJSResolve, decorators: [{
|
|
4677
4655
|
type: Injectable
|
|
4678
4656
|
}], ctorParameters: () => [{ type: AppManagerService }, { type: AppExtensionProvider }, { type: i1.CustomPipeManager }] });
|
|
4679
4657
|
|
|
@@ -4684,10 +4662,10 @@ class I18nResolve {
|
|
|
4684
4662
|
resolve() {
|
|
4685
4663
|
return this.i18nService.loadDefaultLocale();
|
|
4686
4664
|
}
|
|
4687
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4688
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nResolve, deps: [{ token: i1.AbstractI18nService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4666
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nResolve }); }
|
|
4689
4667
|
}
|
|
4690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: I18nResolve, decorators: [{
|
|
4691
4669
|
type: Injectable
|
|
4692
4670
|
}], ctorParameters: () => [{ type: i1.AbstractI18nService }] });
|
|
4693
4671
|
|
|
@@ -4753,7 +4731,7 @@ class AppComponent {
|
|
|
4753
4731
|
this.app.activeLayoutName = '';
|
|
4754
4732
|
this.app.layoutPages = [];
|
|
4755
4733
|
}
|
|
4756
|
-
if (this.app.activeLayoutName && this.app.layoutPages
|
|
4734
|
+
if (this.app.activeLayoutName && this.app.layoutPages?.length && this.app.layoutPages.includes(page)) {
|
|
4757
4735
|
spinnerId = this.spinnerService.show('', 'wmRouterOutlet', '', 'wmRouterOutlet');
|
|
4758
4736
|
}
|
|
4759
4737
|
else {
|
|
@@ -4870,10 +4848,10 @@ class AppComponent {
|
|
|
4870
4848
|
this.navigationEndSubscription.unsubscribe();
|
|
4871
4849
|
}
|
|
4872
4850
|
}
|
|
4873
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4874
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
4851
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppComponent, deps: [{ token: PipeProvider }, { token: i0.ApplicationRef }, { token: i0.ElementRef }, { token: i2$2.OAuthService }, { token: i1.AbstractDialogService }, { token: i1.AbstractSpinnerService }, { token: i0.NgZone }, { token: i1$1.Router }, { token: i1.App }, { token: AppManagerService }, { token: i1.CustomIconsLoaderService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4852
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: AppComponent, isStandalone: true, selector: "app-root", viewQueries: [{ propertyName: "routerOutlet", first: true, predicate: RouterOutlet, descendants: true }, { propertyName: "dynamicComponentContainerRef", first: true, predicate: ["dynamicComponent"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "@if (startApp) {\n @if(enableSkipToMainContent) {\n <div id=\"app-focus-start\" tabindex=\"-1\"></div>\n <a href=\"javascript:void(0);\" class=\"skip\" (click)=\"skipToAppContent($event)\">{{appLocale.LABEL_SKIP_TO_MAIN_CONTENT || 'Skip to main content'}}</a>\n }\n <router-outlet></router-outlet>\n @if (isApplicationType) {\n <div wmContainer partialContainer content=\"Common\" hidden class=\"ng-hide\"></div>\n }\n <app-spinner name=\"globalspinner\" classname=\"global-spinner\" role=\"alert\" aria-live=\"assertive\" [attr.aria-label]=\"spinner.arialabel || 'Loading'\" [show]=\"spinner.show\" [spinnermessages]=\"spinner.messages\"></app-spinner>\n <div wmDialog name=\"oAuthLoginDialog\" title=\"Application is requesting you to sign in with\"\n close.event=\"closeOAuthDialog()\">\n <ng-template #dialogBody>\n <ul class=\"list-items\">\n @for (provider of providersConfig; track provider) {\n <li class=\"list-item\">\n <button class=\"btn\" (click)=\"provider.invoke()\">{{provider.name}}</button>\n </li>\n }\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name=\"_app-confirm-dialog\" title.bind=\"title\" message.bind=\"message\" oktext.bind=\"oktext\"\n canceltext.bind=\"canceltext\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n @if (!isApplicationType) {\n <div wmConfirmDialog name=\"PrefabConfirmDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n }\n @if (!isApplicationType) {\n <div wmAlertDialog name=\"PrefabAlertDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n }\n <div wmAppExt></div>\n <i id=\"wm-mobile-display\"></i>\n}\n<!--Dummy container to create the component dynamically-->\n<ng-container #dynamicComponent></ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: AlertDialogComponent, selector: "div[wmAlertDialog]" }, { kind: "component", type: ConfirmDialogComponent, selector: "div[wmConfirmDialog]" }, { kind: "component", type: DialogComponent, selector: "div[wmDialog]" }, { kind: "component", type: AppSpinnerComponent, selector: "app-spinner", inputs: ["show", "spinnermessages", "classname", "arialabel"] }, { kind: "directive", type: ContainerDirective, selector: "[wmContainer]" }, { kind: "directive", type: PartialParamHandlerDirective, selector: "[partialContainer]" }, { kind: "directive", type: PartialContainerDirective, selector: "[partialContainer]" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4875
4853
|
}
|
|
4876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppComponent, decorators: [{
|
|
4877
4855
|
type: Component,
|
|
4878
4856
|
args: [{ standalone: true, imports: [CommonModule, RouterOutlet, AlertDialogComponent, ConfirmDialogComponent, DialogComponent, AppSpinnerComponent, ContainerDirective, PartialParamHandlerDirective, PartialContainerDirective], selector: 'app-root', encapsulation: ViewEncapsulation.None, template: "@if (startApp) {\n @if(enableSkipToMainContent) {\n <div id=\"app-focus-start\" tabindex=\"-1\"></div>\n <a href=\"javascript:void(0);\" class=\"skip\" (click)=\"skipToAppContent($event)\">{{appLocale.LABEL_SKIP_TO_MAIN_CONTENT || 'Skip to main content'}}</a>\n }\n <router-outlet></router-outlet>\n @if (isApplicationType) {\n <div wmContainer partialContainer content=\"Common\" hidden class=\"ng-hide\"></div>\n }\n <app-spinner name=\"globalspinner\" classname=\"global-spinner\" role=\"alert\" aria-live=\"assertive\" [attr.aria-label]=\"spinner.arialabel || 'Loading'\" [show]=\"spinner.show\" [spinnermessages]=\"spinner.messages\"></app-spinner>\n <div wmDialog name=\"oAuthLoginDialog\" title=\"Application is requesting you to sign in with\"\n close.event=\"closeOAuthDialog()\">\n <ng-template #dialogBody>\n <ul class=\"list-items\">\n @for (provider of providersConfig; track provider) {\n <li class=\"list-item\">\n <button class=\"btn\" (click)=\"provider.invoke()\">{{provider.name}}</button>\n </li>\n }\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name=\"_app-confirm-dialog\" title.bind=\"title\" message.bind=\"message\" oktext.bind=\"oktext\"\n canceltext.bind=\"canceltext\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n @if (!isApplicationType) {\n <div wmConfirmDialog name=\"PrefabConfirmDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n }\n @if (!isApplicationType) {\n <div wmAlertDialog name=\"PrefabAlertDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n }\n <div wmAppExt></div>\n <i id=\"wm-mobile-display\"></i>\n}\n<!--Dummy container to create the component dynamically-->\n<ng-container #dynamicComponent></ng-container>\n" }]
|
|
4879
4857
|
}], ctorParameters: () => [{ type: PipeProvider }, { type: i0.ApplicationRef }, { type: i0.ElementRef }, { type: i2$2.OAuthService }, { type: i1.AbstractDialogService }, { type: i1.AbstractSpinnerService }, { type: i0.NgZone }, { type: i1$1.Router }, { type: i1.App }, { type: AppManagerService }, { type: i1.CustomIconsLoaderService }], propDecorators: { routerOutlet: [{
|
|
@@ -4911,7 +4889,7 @@ class HttpCallInterceptor {
|
|
|
4911
4889
|
request = request.clone({ url: apiUrl });
|
|
4912
4890
|
}
|
|
4913
4891
|
return from(Promise.resolve().then(() => {
|
|
4914
|
-
if (appManager
|
|
4892
|
+
if (appManager?.appOnBeforeServiceCall) {
|
|
4915
4893
|
const wmReq = this.wmHttpRequest.angularToWmRequest(request);
|
|
4916
4894
|
return appManager.appOnBeforeServiceCall(wmReq);
|
|
4917
4895
|
}
|
|
@@ -4923,7 +4901,7 @@ class HttpCallInterceptor {
|
|
|
4923
4901
|
}
|
|
4924
4902
|
return next.handle(request);
|
|
4925
4903
|
}), tap((response) => {
|
|
4926
|
-
if (response
|
|
4904
|
+
if (response?.type === 4 && appManager?.appOnServiceSuccess) {
|
|
4927
4905
|
// Convert the angular HttpResponse to wm HttpResponse
|
|
4928
4906
|
const resp = this.wmHttpResponse.angularToWmResponse(response);
|
|
4929
4907
|
// trigger the common success handler present in app.js
|
|
@@ -4939,7 +4917,7 @@ class HttpCallInterceptor {
|
|
|
4939
4917
|
if (httpService.isPlatformSessionTimeout(error)) {
|
|
4940
4918
|
httpService.handleSessionTimeout(request, error._401Subscriber);
|
|
4941
4919
|
}
|
|
4942
|
-
if (appManager
|
|
4920
|
+
if (appManager?.appOnServiceError) {
|
|
4943
4921
|
// Convert the angular HttpResponse to wm HttpResponse
|
|
4944
4922
|
const err = this.wmHttpResponse.angularToWmResponse(error);
|
|
4945
4923
|
// trigger the common error handler present in app.js
|
|
@@ -4952,10 +4930,10 @@ class HttpCallInterceptor {
|
|
|
4952
4930
|
}
|
|
4953
4931
|
}));
|
|
4954
4932
|
}
|
|
4955
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4956
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: HttpCallInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4934
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: HttpCallInterceptor }); }
|
|
4957
4935
|
}
|
|
4958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: HttpCallInterceptor, decorators: [{
|
|
4959
4937
|
type: Injectable
|
|
4960
4938
|
}], ctorParameters: () => [] });
|
|
4961
4939
|
|
|
@@ -5002,10 +4980,10 @@ class PrefabDirective {
|
|
|
5002
4980
|
// MEMORY LEAK FIX: Clear ElementRef reference
|
|
5003
4981
|
this.elRef = null;
|
|
5004
4982
|
}
|
|
5005
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5006
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabDirective, deps: [{ token: WidgetRef, self: true }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: PrefabManagerService }, { token: i0.Injector }, { token: i0.EnvironmentInjector }, { token: ComponentRefProvider }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4984
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: PrefabDirective, isStandalone: true, selector: "[wmPrefab][prefabname]", ngImport: i0 }); }
|
|
5007
4985
|
}
|
|
5008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabDirective, decorators: [{
|
|
5009
4987
|
type: Directive,
|
|
5010
4988
|
args: [{
|
|
5011
4989
|
standalone: true,
|
|
@@ -5024,7 +5002,7 @@ class PrefabPreviewComponent {
|
|
|
5024
5002
|
this.prefabManager = prefabManager;
|
|
5025
5003
|
// MEMORY LEAK FIX: Store bound function reference for cleanup
|
|
5026
5004
|
this.windowMessageListener = (e) => {
|
|
5027
|
-
const context = e.data
|
|
5005
|
+
const context = e.data?.context;
|
|
5028
5006
|
if (context !== PREFAB) {
|
|
5029
5007
|
return;
|
|
5030
5008
|
}
|
|
@@ -5111,14 +5089,14 @@ class PrefabPreviewComponent {
|
|
|
5111
5089
|
// MEMORY LEAK FIX: Clear config
|
|
5112
5090
|
this.config = null;
|
|
5113
5091
|
}
|
|
5114
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5115
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5092
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabPreviewComponent, deps: [{ token: PrefabManagerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5093
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: PrefabPreviewComponent, isStandalone: true, selector: "wm-prefab-preview", viewQueries: [{ propertyName: "prefabInstance", first: true, predicate: PrefabDirective$1, descendants: true, static: true }], ngImport: i0, template: `
|
|
5116
5094
|
<div class="prefab-preview row">
|
|
5117
5095
|
<section wmPrefab name="prefab-preview" prefabname="__self__"></section>
|
|
5118
5096
|
</div>
|
|
5119
5097
|
`, isInline: true, dependencies: [{ kind: "directive", type: PrefabDirective$1, selector: "section[wmPrefab]" }, { kind: "directive", type: PrefabDirective, selector: "[wmPrefab][prefabname]" }] }); }
|
|
5120
5098
|
}
|
|
5121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PrefabPreviewComponent, decorators: [{
|
|
5122
5100
|
type: Component,
|
|
5123
5101
|
args: [{
|
|
5124
5102
|
standalone: true,
|
|
@@ -5273,10 +5251,10 @@ class DynamicComponentRefProviderService {
|
|
|
5273
5251
|
console.error(`Error creating component [${selector}]:`, msg, err);
|
|
5274
5252
|
this.appManager.notifyApp?.(`Failed to create component: ${msg}`, 'error');
|
|
5275
5253
|
}
|
|
5276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5277
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DynamicComponentRefProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5255
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DynamicComponentRefProviderService }); }
|
|
5278
5256
|
}
|
|
5279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DynamicComponentRefProviderService, decorators: [{
|
|
5280
5258
|
type: Injectable
|
|
5281
5259
|
}] });
|
|
5282
5260
|
|
|
@@ -5292,7 +5270,7 @@ class CanDeactivatePageGuard {
|
|
|
5292
5270
|
let retVal;
|
|
5293
5271
|
const nextRoute = nextState ? nextState.url : undefined;
|
|
5294
5272
|
// Calling onBeforePageLeave method present at page level
|
|
5295
|
-
retVal = this.app.activePage
|
|
5273
|
+
retVal = this.app.activePage?.onBeforePageLeave(nextRoute);
|
|
5296
5274
|
// Calling onBeforePageLeave method present at app level only if page level method return true
|
|
5297
5275
|
// or if there is no page level method
|
|
5298
5276
|
if (retVal !== false) {
|
|
@@ -5302,10 +5280,10 @@ class CanDeactivatePageGuard {
|
|
|
5302
5280
|
}
|
|
5303
5281
|
return invokeCompDeactivate.apply(component);
|
|
5304
5282
|
}
|
|
5305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5306
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5283
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivatePageGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5284
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivatePageGuard }); }
|
|
5307
5285
|
}
|
|
5308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivatePageGuard, decorators: [{
|
|
5309
5287
|
type: Injectable
|
|
5310
5288
|
}] });
|
|
5311
5289
|
// [WMS-18847] - canDeactivate guard for angular deployment.
|
|
@@ -5314,20 +5292,20 @@ class CanDeactivateNgPageGuard {
|
|
|
5314
5292
|
const nextRoute = nextState ? nextState.url : undefined;
|
|
5315
5293
|
return component.canDeactivate ? component.canDeactivate(nextRoute) : true;
|
|
5316
5294
|
}
|
|
5317
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5318
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5295
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivateNgPageGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5296
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivateNgPageGuard }); }
|
|
5319
5297
|
}
|
|
5320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CanDeactivateNgPageGuard, decorators: [{
|
|
5321
5299
|
type: Injectable
|
|
5322
5300
|
}] });
|
|
5323
5301
|
|
|
5324
5302
|
const initializeProjectDetails = () => {
|
|
5325
|
-
let cdnUrl = document.querySelector('[name="deployUrl"]')
|
|
5303
|
+
let cdnUrl = document.querySelector('[name="deployUrl"]')?.getAttribute('content');
|
|
5326
5304
|
_WM_APP_PROJECT.isPreview = cdnUrl ? false : true;
|
|
5327
|
-
const apiUrl = document.querySelector('[name="apiUrl"]')
|
|
5305
|
+
const apiUrl = document.querySelector('[name="apiUrl"]')?.getAttribute('content');
|
|
5328
5306
|
//for preview
|
|
5329
5307
|
if (!cdnUrl) {
|
|
5330
|
-
cdnUrl = document.querySelector('[name="cdnUrl"]')
|
|
5308
|
+
cdnUrl = document.querySelector('[name="cdnUrl"]')?.getAttribute('content');
|
|
5331
5309
|
}
|
|
5332
5310
|
_WM_APP_PROJECT.id = location.href.split('/')[3];
|
|
5333
5311
|
// Integration with third party apps like in SSPA/WebComponents, this meta tag with cdnUrl will not be there then default it to ng-bundle/
|
|
@@ -5632,8 +5610,8 @@ class RuntimeBaseModule {
|
|
|
5632
5610
|
}
|
|
5633
5611
|
});
|
|
5634
5612
|
}
|
|
5635
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5636
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
5613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RuntimeBaseModule, deps: [{ token: i1.App }, { token: i1.Viewport }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5614
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.21", ngImport: i0, type: RuntimeBaseModule, imports: [CommonModule,
|
|
5637
5615
|
RouterModule,
|
|
5638
5616
|
HttpClientModule,
|
|
5639
5617
|
FormsModule,
|
|
@@ -5961,7 +5939,7 @@ class RuntimeBaseModule {
|
|
|
5961
5939
|
RightPanelDirective,
|
|
5962
5940
|
TopNavDirective,
|
|
5963
5941
|
PrefabDirective$1, PrefabContainerDirective] }); }
|
|
5964
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
5942
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RuntimeBaseModule, providers: [
|
|
5965
5943
|
{ provide: _SharedStylesHost, useClass: WMDomSharedStylesHost },
|
|
5966
5944
|
{ provide: _DomRendererFactory2, useClass: WMDomRendererFactory2 },
|
|
5967
5945
|
{ provide: AbstractDialogService, useClass: DialogServiceImpl },
|
|
@@ -6081,7 +6059,7 @@ class RuntimeBaseModule {
|
|
|
6081
6059
|
NgCircleProgressModule,
|
|
6082
6060
|
TooltipModule] }); }
|
|
6083
6061
|
}
|
|
6084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: RuntimeBaseModule, decorators: [{
|
|
6085
6063
|
type: NgModule,
|
|
6086
6064
|
args: [{
|
|
6087
6065
|
imports: [
|
|
@@ -6137,10 +6115,10 @@ class AppBeforeLoadResolve {
|
|
|
6137
6115
|
this.appManager.initAppModes();
|
|
6138
6116
|
return this.appManager.beforeAppReady();
|
|
6139
6117
|
}
|
|
6140
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6141
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6118
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppBeforeLoadResolve, deps: [{ token: AppManagerService }, { token: i1.App }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6119
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppBeforeLoadResolve }); }
|
|
6142
6120
|
}
|
|
6143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppBeforeLoadResolve, decorators: [{
|
|
6144
6122
|
type: Injectable
|
|
6145
6123
|
}], ctorParameters: () => [{ type: AppManagerService }, { type: i1.App }] });
|
|
6146
6124
|
|
|
@@ -6159,10 +6137,10 @@ class AppVariablesResolve {
|
|
|
6159
6137
|
.then((data) => this.appManager.loadAppVariables(data[2]))
|
|
6160
6138
|
.then(() => appVariablesLoaded = true);
|
|
6161
6139
|
}
|
|
6162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6163
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6140
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppVariablesResolve, deps: [{ token: AppManagerService }, { token: AppVariablesProvider }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6141
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppVariablesResolve, providedIn: 'root' }); }
|
|
6164
6142
|
}
|
|
6165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: AppVariablesResolve, decorators: [{
|
|
6166
6144
|
type: Injectable,
|
|
6167
6145
|
args: [{
|
|
6168
6146
|
providedIn: 'root'
|
|
@@ -6177,10 +6155,10 @@ class MetadataResolve {
|
|
|
6177
6155
|
resolve() {
|
|
6178
6156
|
return metadataResolved || this.appManager.loadMetadata().then(() => metadataResolved = true);
|
|
6179
6157
|
}
|
|
6180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6181
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MetadataResolve, deps: [{ token: AppManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6159
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MetadataResolve, providedIn: 'root' }); }
|
|
6182
6160
|
}
|
|
6183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MetadataResolve, decorators: [{
|
|
6184
6162
|
type: Injectable,
|
|
6185
6163
|
args: [{
|
|
6186
6164
|
providedIn: 'root'
|
|
@@ -6198,10 +6176,10 @@ class SecurityConfigResolve {
|
|
|
6198
6176
|
this.loaded = true;
|
|
6199
6177
|
});
|
|
6200
6178
|
}
|
|
6201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6202
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6179
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SecurityConfigResolve, deps: [{ token: AppManagerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6180
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SecurityConfigResolve, providedIn: 'root' }); }
|
|
6203
6181
|
}
|
|
6204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: SecurityConfigResolve, decorators: [{
|
|
6205
6183
|
type: Injectable,
|
|
6206
6184
|
args: [{
|
|
6207
6185
|
providedIn: 'root'
|