@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
package/core/fesm2022/index.mjs
CHANGED
|
@@ -84,7 +84,7 @@ var DEFAULT_FORMATS;
|
|
|
84
84
|
const getUploadEventTmpl = (attrs, counter, fieldName) => {
|
|
85
85
|
let eventTmpl = '';
|
|
86
86
|
attrs.forEach((val, key) => {
|
|
87
|
-
if (key
|
|
87
|
+
if (key?.endsWith('.event')) {
|
|
88
88
|
const eventName = key.split('.')[0];
|
|
89
89
|
const counterTl = counter ? `${counter}.` : '';
|
|
90
90
|
eventTmpl = ` ${eventTmpl} (${eventName})="${counterTl}triggerUploadEvent($event, '${eventName}', '${fieldName}', row)" `;
|
|
@@ -175,7 +175,7 @@ const getFormWidgetTemplate = (widgetType, innerTmpl, attrs, options = {}) => {
|
|
|
175
175
|
const counter = options.counter;
|
|
176
176
|
const pCounter = options.pCounter;
|
|
177
177
|
const uploadProps = options.uploadProps;
|
|
178
|
-
const eventTmpl = getUploadEventTmpl(attrs, counter, uploadProps
|
|
178
|
+
const eventTmpl = getUploadEventTmpl(attrs, counter, uploadProps?.name);
|
|
179
179
|
if (uploadProps) {
|
|
180
180
|
tmpl = `<form name="${uploadProps.formName}" ${innerTmpl}>
|
|
181
181
|
<input focus-target class="file-upload" type="file" name="${uploadProps.name}" ${eventTmpl} ${showTmpl}/>
|
|
@@ -269,7 +269,7 @@ const addDatasetBoundExprAttribute = (childNode, attr, attrValue) => {
|
|
|
269
269
|
const checkIsCustomPipeExpression = function (exp) {
|
|
270
270
|
let customRegEx = /(custom(\s*:))/g;
|
|
271
271
|
let matches = exp.match(customRegEx);
|
|
272
|
-
return matches
|
|
272
|
+
return matches?.length;
|
|
273
273
|
};
|
|
274
274
|
// The bound value is replaced with {{item.fieldname}} here. This is needed by the liveList when compiling inner elements
|
|
275
275
|
const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '', referenceName = 'item') => {
|
|
@@ -300,7 +300,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
|
|
|
300
300
|
const parentDataSetLengthRegex = new RegExp('bind:\\s*\\(*' + parentDataSet + '\\)*\\.length\\)*');
|
|
301
301
|
childNode.attrs.forEach((attr) => {
|
|
302
302
|
// trim the extra spaces in bindings
|
|
303
|
-
let value = attr.value
|
|
303
|
+
let value = attr.value?.trim();
|
|
304
304
|
if (startsWith(value, 'bind:')) {
|
|
305
305
|
// The markup of root node(table, list, carousel) attributes conatains same dataset variable binding then those attributes need to be updated only for specific properties mentioned in widgetList map.
|
|
306
306
|
if (!widgetList[nodeName] || (widgetList[nodeName] && widgetList[nodeName].indexOf(attr.name) > -1)) {
|
|
@@ -320,7 +320,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
|
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
// Replace item if widget property is bound to livelist currentItem
|
|
323
|
-
if (currentItemRegEx
|
|
323
|
+
if (currentItemRegEx?.test(value)) {
|
|
324
324
|
// Change value from 'bind:Widgets.formName.formWidgets.listName.currentItem' to 'bind:Widgets.listName.currentItem'
|
|
325
325
|
if (value.includes('.formWidgets') || value.includes('.filterWidgets')) {
|
|
326
326
|
value = value.replace(formWidgetsRegex, 'Widgets');
|
|
@@ -328,7 +328,7 @@ const updateTemplateAttrs = (rootNode, parentDataSet, widgetName, instance = '',
|
|
|
328
328
|
addDatasetBoundExprAttribute(childNode, attr, value);
|
|
329
329
|
value = value.replace(currentItemRegEx, referenceName);
|
|
330
330
|
}
|
|
331
|
-
if (currentItemWidgetsRegEx
|
|
331
|
+
if (currentItemWidgetsRegEx?.test(value)) {
|
|
332
332
|
value = value.replace(currentItemWidgetsRegEx, `${instance}currentItemWidgets`);
|
|
333
333
|
}
|
|
334
334
|
attr.value = value;
|
|
@@ -2129,7 +2129,7 @@ function simpleFunctionEvaluator(expr, ctx, locals) {
|
|
|
2129
2129
|
args = args.split(',');
|
|
2130
2130
|
let computedArgs = [];
|
|
2131
2131
|
args.forEach((arg) => {
|
|
2132
|
-
arg = arg
|
|
2132
|
+
arg = arg?.trim();
|
|
2133
2133
|
computedArgs.push(get(_ctx, arg));
|
|
2134
2134
|
});
|
|
2135
2135
|
return computedFn.bind(_ctx)(...computedArgs);
|
|
@@ -2212,10 +2212,8 @@ const fnExecutor = (expr, exprType) => {
|
|
|
2212
2212
|
pipeArgs.unshift(hasPurePipe ? new Map() : undefined);
|
|
2213
2213
|
fn = fn.bind(undefined, ...pipeArgs);
|
|
2214
2214
|
}
|
|
2215
|
-
else {
|
|
2216
|
-
|
|
2217
|
-
fn = fn.bind(undefined, undefined);
|
|
2218
|
-
}
|
|
2215
|
+
else if (exprType === ExpressionType.Binding) {
|
|
2216
|
+
fn = fn.bind(undefined, undefined);
|
|
2219
2217
|
}
|
|
2220
2218
|
return fn;
|
|
2221
2219
|
};
|
|
@@ -2272,7 +2270,8 @@ const getUpdatedWatcInfo = (expr, acceptsArray, listener) => {
|
|
|
2272
2270
|
}
|
|
2273
2271
|
// listener accepts array
|
|
2274
2272
|
// replace all except the last `[$i]` with `[0]` and return the expression.
|
|
2275
|
-
|
|
2273
|
+
const index = expr.lastIndexOf($I), _expr = expr.substr(0, index).replace($I, $0), restExpr = expr.substr(index + 5);
|
|
2274
|
+
let arrayConsumerFn = listener;
|
|
2276
2275
|
if (restExpr) {
|
|
2277
2276
|
arrayConsumerFn = arrayConsumer.bind(undefined, listener, restExpr);
|
|
2278
2277
|
}
|
|
@@ -2313,7 +2312,7 @@ const triggerWatchers = (ignoreMuted) => {
|
|
|
2313
2312
|
do {
|
|
2314
2313
|
changeDetected = false;
|
|
2315
2314
|
registry.forEach(watchInfo => {
|
|
2316
|
-
if (watchInfo.isMuted
|
|
2315
|
+
if (watchInfo.isMuted?.()) {
|
|
2317
2316
|
return;
|
|
2318
2317
|
}
|
|
2319
2318
|
const fn = watchInfo.fn;
|
|
@@ -2394,7 +2393,7 @@ function executeWatchers(ignoreMuted) {
|
|
|
2394
2393
|
changeDetected = false;
|
|
2395
2394
|
log(`-------executeWatchers (run #${consecutiveReruns + 1})--------- `);
|
|
2396
2395
|
registry.forEach(watchInfo => {
|
|
2397
|
-
if (watchInfo.isMuted
|
|
2396
|
+
if (watchInfo.isMuted?.()) {
|
|
2398
2397
|
return;
|
|
2399
2398
|
}
|
|
2400
2399
|
const fn = watchInfo.fn;
|
|
@@ -2478,17 +2477,15 @@ const $appDigest = (() => {
|
|
|
2478
2477
|
ngZone.run(() => appRef.tick());
|
|
2479
2478
|
queued = false;
|
|
2480
2479
|
}
|
|
2480
|
+
else if (queued) {
|
|
2481
|
+
return;
|
|
2482
|
+
}
|
|
2481
2483
|
else {
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
$RAF(() => {
|
|
2488
|
-
ngZone.run(() => appRef.tick());
|
|
2489
|
-
queued = false;
|
|
2490
|
-
});
|
|
2491
|
-
}
|
|
2484
|
+
queued = true;
|
|
2485
|
+
$RAF(() => {
|
|
2486
|
+
ngZone.run(() => appRef.tick());
|
|
2487
|
+
queued = false;
|
|
2488
|
+
});
|
|
2492
2489
|
}
|
|
2493
2490
|
};
|
|
2494
2491
|
})();
|
|
@@ -2657,7 +2654,7 @@ const isLargeTabletPortrait = (landScapeWidth, landScapeHeight) => {
|
|
|
2657
2654
|
const isMobile = () => isAndroid() || isIos() || isAndroidTablet() || $('#wm-mobile-display:visible').length > 0;
|
|
2658
2655
|
const isTablet = () => {
|
|
2659
2656
|
const scope = document.querySelector('.app-page').widget;
|
|
2660
|
-
return scope
|
|
2657
|
+
return scope?.viewParent.Viewport.isTabletType;
|
|
2661
2658
|
};
|
|
2662
2659
|
const getAndroidVersion = () => {
|
|
2663
2660
|
const match = (window.navigator.userAgent.toLowerCase()).match(/android\s([0-9\.]*)/);
|
|
@@ -2694,7 +2691,7 @@ const encodeUrlParams = (url) => {
|
|
|
2694
2691
|
queryParams = queryParamsString.split('&');
|
|
2695
2692
|
queryParams.forEach(function (param) {
|
|
2696
2693
|
let decodedParamValue;
|
|
2697
|
-
const i = includes(param, '=') ? param.indexOf('=') : (param
|
|
2694
|
+
const i = includes(param, '=') ? param.indexOf('=') : (param?.length), paramName = param.substr(0, i), paramValue = param.substr(i + 1);
|
|
2698
2695
|
// add the = for param name only when the param value exists in the given param or empty value is assigned
|
|
2699
2696
|
if (paramValue || includes(param, '=')) {
|
|
2700
2697
|
try {
|
|
@@ -2855,7 +2852,7 @@ function triggerFn(fn, ...argmnts) {
|
|
|
2855
2852
|
args[start - 1] = arguments[start];
|
|
2856
2853
|
}
|
|
2857
2854
|
if (isFunction(fn)) {
|
|
2858
|
-
return fn
|
|
2855
|
+
return fn(...args);
|
|
2859
2856
|
}
|
|
2860
2857
|
}
|
|
2861
2858
|
/**
|
|
@@ -2890,7 +2887,7 @@ const hasOffsetStr = (dateStr) => {
|
|
|
2890
2887
|
if (typeof dateStr !== 'string')
|
|
2891
2888
|
return;
|
|
2892
2889
|
const matches = dateStr.match(REGEX.ISO_DATE_FORMAT);
|
|
2893
|
-
if (matches
|
|
2890
|
+
if (matches?.[4]) {
|
|
2894
2891
|
return true;
|
|
2895
2892
|
}
|
|
2896
2893
|
};
|
|
@@ -2899,9 +2896,9 @@ const hasOffsetStr = (dateStr) => {
|
|
|
2899
2896
|
*/
|
|
2900
2897
|
const getDateObj = (value, options, timezone) => {
|
|
2901
2898
|
// Handling localization
|
|
2902
|
-
if (options
|
|
2899
|
+
if (options?.pattern && options.pattern !== 'timestamp') {
|
|
2903
2900
|
// Fix for WMS-19601, invalid date is returned on date selection.
|
|
2904
|
-
const isNativePicker = (options
|
|
2901
|
+
const isNativePicker = (options?.hasOwnProperty('isNativePicker')) ? get(options, 'isNativePicker') : isMobile();
|
|
2905
2902
|
const pattern = isNativePicker ? 'YYYY/MM/DD HH:mm:ss' : momentPattern(options.pattern);
|
|
2906
2903
|
value = moment(value, pattern).toDate();
|
|
2907
2904
|
}
|
|
@@ -2971,7 +2968,7 @@ const getClonedObject = (object) => {
|
|
|
2971
2968
|
};
|
|
2972
2969
|
const getFiles = (formName, fieldName, isList) => {
|
|
2973
2970
|
const files = get(document.forms, [formName, fieldName, 'files']);
|
|
2974
|
-
return isList ? map(files, identity) : files
|
|
2971
|
+
return isList ? map(files, identity) : files?.[0];
|
|
2975
2972
|
};
|
|
2976
2973
|
/*Function to generate a random number*/
|
|
2977
2974
|
function random() {
|
|
@@ -2987,7 +2984,7 @@ const generateGUId = () => {
|
|
|
2987
2984
|
const validateAccessRoles = (roleExp, loggedInUser) => {
|
|
2988
2985
|
let roles;
|
|
2989
2986
|
if (roleExp && loggedInUser) {
|
|
2990
|
-
roles = roleExp
|
|
2987
|
+
roles = roleExp?.split(',').map(Function.prototype.call, String.prototype.trim);
|
|
2991
2988
|
return intersection(roles, loggedInUser.userRoles).length;
|
|
2992
2989
|
}
|
|
2993
2990
|
return true;
|
|
@@ -3087,8 +3084,8 @@ const extractType = (typeRef) => {
|
|
|
3087
3084
|
if (!typeRef) {
|
|
3088
3085
|
return DataType.STRING;
|
|
3089
3086
|
}
|
|
3090
|
-
type = typeRef
|
|
3091
|
-
type = type
|
|
3087
|
+
type = typeRef?.substring(typeRef.lastIndexOf('.') + 1);
|
|
3088
|
+
type = type?.toLowerCase();
|
|
3092
3089
|
type = type === DataType.LOCALDATETIME ? DataType.DATETIME : type;
|
|
3093
3090
|
return type;
|
|
3094
3091
|
};
|
|
@@ -3115,7 +3112,7 @@ const scrollToElement = (element) => {
|
|
|
3115
3112
|
};
|
|
3116
3113
|
// Function will return whether the given element is in viewport or not
|
|
3117
3114
|
const isElementInViewport = (element) => {
|
|
3118
|
-
|
|
3115
|
+
const rect = element.getBoundingClientRect();
|
|
3119
3116
|
return (rect.top >= 0 &&
|
|
3120
3117
|
rect.left >= 0 &&
|
|
3121
3118
|
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
|
|
@@ -3136,7 +3133,7 @@ const isPageable = (obj) => {
|
|
|
3136
3133
|
};
|
|
3137
3134
|
// paginated object may or may not contain 'empty' property. In either case, Pageable should return as true.
|
|
3138
3135
|
const paginatedObj = omit(obj, 'empty');
|
|
3139
|
-
return (isEqual(keys(pageable), keys(paginatedObj).sort()));
|
|
3136
|
+
return (isEqual(keys(pageable), keys(paginatedObj).sort((a, b) => a.localeCompare(b))));
|
|
3140
3137
|
};
|
|
3141
3138
|
/*
|
|
3142
3139
|
* Util method to replace patterns in string with object keys or array values
|
|
@@ -3176,17 +3173,17 @@ const getValidDateObject = (val, options) => {
|
|
|
3176
3173
|
const defaultMeridian = ['AM', 'PM'];
|
|
3177
3174
|
const momentMeridian = moment()._locale.meridiem();
|
|
3178
3175
|
// Updating localized meridians with default meridians when moment meridian is not defined
|
|
3179
|
-
if (options
|
|
3176
|
+
if (options?.meridians && includes(defaultMeridian, momentMeridian)) {
|
|
3180
3177
|
forEach(options.meridians, (meridian, index) => {
|
|
3181
3178
|
if (includes(val, meridian)) {
|
|
3182
3179
|
val = val.replace(meridian, defaultMeridian[index]);
|
|
3183
3180
|
}
|
|
3184
3181
|
});
|
|
3185
3182
|
}
|
|
3186
|
-
const isNativePicker = (options
|
|
3183
|
+
const isNativePicker = (options?.hasOwnProperty('isNativePicker')) ? get(options, 'isNativePicker') : isMobile();
|
|
3187
3184
|
const pattern = isNativePicker ? (get(options, 'pattern') || 'YYYY/MM/DD HH:mm:ss') : (momentPattern(get(options, 'pattern')) || '');
|
|
3188
3185
|
// Handling localization
|
|
3189
|
-
if (options
|
|
3186
|
+
if (options?.pattern && options.pattern !== 'timestamp') {
|
|
3190
3187
|
if (!isNaN(moment(val, pattern).valueOf())) { // Fix for [WMS-27658]: Date() doesn't support some formats like 'dd/MM/yyyy' so using moment() to format the value
|
|
3191
3188
|
// check whether val is a valid date or not
|
|
3192
3189
|
if (isIos()) {
|
|
@@ -3212,11 +3209,10 @@ const getValidDateObject = (val, options) => {
|
|
|
3212
3209
|
if (!isNaN(val)) {
|
|
3213
3210
|
val = parseInt(val, 10);
|
|
3214
3211
|
}
|
|
3215
|
-
else
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
}
|
|
3212
|
+
else
|
|
3213
|
+
/*if the value is in HH:mm:ss format, it returns a wrong date. So append the date to the given value to get date*/
|
|
3214
|
+
if (!(new Date(val).getTime())) {
|
|
3215
|
+
val = moment((moment().format('YYYY-MM-DD') + ' ' + val), 'YYYY-MM-DD HH:mm:ss A');
|
|
3220
3216
|
}
|
|
3221
3217
|
return new Date(moment(val).valueOf());
|
|
3222
3218
|
};
|
|
@@ -3292,7 +3288,7 @@ const loadStyleSheet = (url, attr) => {
|
|
|
3292
3288
|
const link = document.createElement('link');
|
|
3293
3289
|
link.href = url;
|
|
3294
3290
|
// To add attributes to link tag
|
|
3295
|
-
if (attr
|
|
3291
|
+
if (attr?.name) {
|
|
3296
3292
|
link.setAttribute(attr.name, attr.value);
|
|
3297
3293
|
}
|
|
3298
3294
|
link.setAttribute('rel', 'stylesheet');
|
|
@@ -3389,7 +3385,7 @@ const setSessionStorageItem = (key, value) => {
|
|
|
3389
3385
|
*/
|
|
3390
3386
|
const getSessionStorageItem = key => {
|
|
3391
3387
|
// sanity check for this to work with ng-codegen
|
|
3392
|
-
let item = window
|
|
3388
|
+
let item = window?.sessionStorage?.getItem(_WM_APP_PROJECT.id);
|
|
3393
3389
|
if (item) {
|
|
3394
3390
|
item = JSON.parse(item);
|
|
3395
3391
|
return item[key];
|
|
@@ -3429,8 +3425,8 @@ const openLink = (link, target = '_self') => {
|
|
|
3429
3425
|
/* util function to load the content from a url */
|
|
3430
3426
|
const fetchContent = (dataType, url, inSync = false, success, error) => {
|
|
3431
3427
|
return $.ajax({ type: 'get', dataType: dataType, url: url, async: !inSync })
|
|
3432
|
-
.done(response => success
|
|
3433
|
-
.fail(reason => error
|
|
3428
|
+
.done(response => success?.(response))
|
|
3429
|
+
.fail(reason => error?.(reason));
|
|
3434
3430
|
};
|
|
3435
3431
|
/**
|
|
3436
3432
|
* If the given object is a promise, then object is returned. Otherwise, a promise is resolved with the given object.
|
|
@@ -3823,7 +3819,7 @@ const setTranslation3dPosition = (containerElem, containerEleTransformations) =>
|
|
|
3823
3819
|
* @param containerElem elemet for the WebKitCSSMatrix
|
|
3824
3820
|
*/
|
|
3825
3821
|
const getWebkitTraslationMatrix = (containerElem) => {
|
|
3826
|
-
if (!containerElem
|
|
3822
|
+
if (!containerElem?.[0]) {
|
|
3827
3823
|
return null;
|
|
3828
3824
|
}
|
|
3829
3825
|
const computedStyle = window.getComputedStyle(containerElem[0]);
|
|
@@ -4029,8 +4025,7 @@ const getFontConfig = () => {
|
|
|
4029
4025
|
return getWmProjectProperties()?.fontConfig || getPreviewProperties();
|
|
4030
4026
|
};
|
|
4031
4027
|
const adjustVerticalPosition = (containerElem, parentElem, ref, ele) => {
|
|
4032
|
-
|
|
4033
|
-
zoneRef.onStable.subscribe(() => {
|
|
4028
|
+
runAfterStable(ref, () => {
|
|
4034
4029
|
const containerHeight = ele
|
|
4035
4030
|
? parseInt(ele.css('height'), 10)
|
|
4036
4031
|
: parseInt(containerElem.css('height'), 10);
|
|
@@ -4221,7 +4216,7 @@ class EventNotifier {
|
|
|
4221
4216
|
eventListener = this._subject
|
|
4222
4217
|
.subscribe((event) => {
|
|
4223
4218
|
if (event && isObject(event) && event.name === eventName) {
|
|
4224
|
-
callback
|
|
4219
|
+
callback(...event.data);
|
|
4225
4220
|
}
|
|
4226
4221
|
});
|
|
4227
4222
|
return () => {
|
|
@@ -4346,10 +4341,10 @@ class Viewport {
|
|
|
4346
4341
|
}
|
|
4347
4342
|
this.mediaQuery = null;
|
|
4348
4343
|
}
|
|
4349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4350
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: Viewport, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4345
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: Viewport, providedIn: 'root' }); }
|
|
4351
4346
|
}
|
|
4352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: Viewport, decorators: [{
|
|
4353
4348
|
type: Injectable,
|
|
4354
4349
|
args: [{ providedIn: 'root' }]
|
|
4355
4350
|
}], ctorParameters: () => [] });
|
|
@@ -4368,10 +4363,10 @@ class ConstantService {
|
|
|
4368
4363
|
};
|
|
4369
4364
|
this.VALIDATOR = VALIDATOR;
|
|
4370
4365
|
}
|
|
4371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4372
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4366
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ConstantService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4367
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ConstantService, providedIn: 'root' }); }
|
|
4373
4368
|
}
|
|
4374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ConstantService, decorators: [{
|
|
4375
4370
|
type: Injectable,
|
|
4376
4371
|
args: [{ providedIn: 'root' }]
|
|
4377
4372
|
}] });
|
|
@@ -4380,10 +4375,10 @@ class UtilsService {
|
|
|
4380
4375
|
constructor() {
|
|
4381
4376
|
assign(this, Utils);
|
|
4382
4377
|
}
|
|
4383
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4384
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4379
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, providedIn: 'root' }); }
|
|
4385
4380
|
}
|
|
4386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: UtilsService, decorators: [{
|
|
4387
4382
|
type: Injectable,
|
|
4388
4383
|
args: [{ providedIn: 'root' }]
|
|
4389
4384
|
}], ctorParameters: () => [] });
|
|
@@ -4412,10 +4407,10 @@ class FieldTypeService {
|
|
|
4412
4407
|
BLOB: 'blob'
|
|
4413
4408
|
});
|
|
4414
4409
|
}
|
|
4415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4416
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4411
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldTypeService, providedIn: 'root' }); }
|
|
4417
4412
|
}
|
|
4418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldTypeService, decorators: [{
|
|
4419
4414
|
type: Injectable,
|
|
4420
4415
|
args: [{ providedIn: 'root' }]
|
|
4421
4416
|
}], ctorParameters: () => [] });
|
|
@@ -4446,10 +4441,10 @@ class FieldWidgetService {
|
|
|
4446
4441
|
COLORPICKER: 'colorpicker'
|
|
4447
4442
|
});
|
|
4448
4443
|
}
|
|
4449
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4450
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4444
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4445
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldWidgetService, providedIn: 'root' }); }
|
|
4451
4446
|
}
|
|
4452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FieldWidgetService, decorators: [{
|
|
4453
4448
|
type: Injectable,
|
|
4454
4449
|
args: [{ providedIn: 'root' }]
|
|
4455
4450
|
}], ctorParameters: () => [] });
|
|
@@ -4467,7 +4462,7 @@ class ScriptLoaderService {
|
|
|
4467
4462
|
});
|
|
4468
4463
|
}
|
|
4469
4464
|
load(...scripts) {
|
|
4470
|
-
if (scripts
|
|
4465
|
+
if (scripts?.length) {
|
|
4471
4466
|
return Promise.all(scripts.map(s => {
|
|
4472
4467
|
return this.loadScript(s);
|
|
4473
4468
|
}));
|
|
@@ -4476,7 +4471,7 @@ class ScriptLoaderService {
|
|
|
4476
4471
|
}
|
|
4477
4472
|
loadScript(name) {
|
|
4478
4473
|
return new Promise((resolve, reject) => {
|
|
4479
|
-
if (this.scripts[name]
|
|
4474
|
+
if (this.scripts[name]?.loaded) {
|
|
4480
4475
|
resolve({ script: name, loaded: true });
|
|
4481
4476
|
return;
|
|
4482
4477
|
}
|
|
@@ -4516,10 +4511,10 @@ class ScriptLoaderService {
|
|
|
4516
4511
|
document.getElementsByTagName('head')[0].appendChild(script);
|
|
4517
4512
|
});
|
|
4518
4513
|
}
|
|
4519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4520
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4514
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ScriptLoaderService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4515
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
|
|
4521
4516
|
}
|
|
4522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: ScriptLoaderService, decorators: [{
|
|
4523
4518
|
type: Injectable,
|
|
4524
4519
|
args: [{ providedIn: 'root' }]
|
|
4525
4520
|
}], ctorParameters: () => [{ type: i1.HttpClient }] });
|
|
@@ -4537,10 +4532,10 @@ class CustomPipeManager {
|
|
|
4537
4532
|
hasCustomPipe(key) {
|
|
4538
4533
|
return this.customPipes.has(key);
|
|
4539
4534
|
}
|
|
4540
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4541
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4535
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomPipeManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4536
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomPipeManager, providedIn: 'root' }); }
|
|
4542
4537
|
}
|
|
4543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomPipeManager, decorators: [{
|
|
4544
4539
|
type: Injectable,
|
|
4545
4540
|
args: [{ providedIn: 'root' }]
|
|
4546
4541
|
}] });
|
|
@@ -4569,10 +4564,10 @@ class CustomIconsLoaderService {
|
|
|
4569
4564
|
.map(font => font.csspath);
|
|
4570
4565
|
loadStyleSheets(cssPaths);
|
|
4571
4566
|
}
|
|
4572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4573
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomIconsLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4568
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomIconsLoaderService, providedIn: 'root' }); }
|
|
4574
4569
|
}
|
|
4575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: CustomIconsLoaderService, decorators: [{
|
|
4576
4571
|
type: Injectable,
|
|
4577
4572
|
args: [{ providedIn: 'root' }]
|
|
4578
4573
|
}] });
|
|
@@ -4654,7 +4649,7 @@ class StatePersistence {
|
|
|
4654
4649
|
return;
|
|
4655
4650
|
}
|
|
4656
4651
|
let parsedStateInfo = this.getStateInformation(mode);
|
|
4657
|
-
if (parsedStateInfo && widget
|
|
4652
|
+
if (parsedStateInfo && widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
|
|
4658
4653
|
parsedStateInfo = parsedStateInfo[widget.getAppInstance().activePageName];
|
|
4659
4654
|
}
|
|
4660
4655
|
if (get(parsedStateInfo, this.WIDGET_STATE_KEY)) {
|
|
@@ -4843,7 +4838,7 @@ class StatePersistence {
|
|
|
4843
4838
|
}
|
|
4844
4839
|
}
|
|
4845
4840
|
// for Local and Session Storage, wrap state object inside page name so that widget name conflicts don't arise between pages.
|
|
4846
|
-
if (widget
|
|
4841
|
+
if (widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
|
|
4847
4842
|
if (stateObj) {
|
|
4848
4843
|
stateObj[widget.getAppInstance().activePageName] = parsedObj;
|
|
4849
4844
|
parsedObj = stateObj;
|
|
@@ -4930,7 +4925,7 @@ class StatePersistence {
|
|
|
4930
4925
|
}
|
|
4931
4926
|
// Fix for [WMS-24698]: when table is inside a prefab, state persistence key is like "TestLabel_11.TestLabel_1.staticVariable1Table1"
|
|
4932
4927
|
// get(parsedObj, stateParam + '.' + key) is undefined so using (parsedObj && parsedObj[stateParam] && parsedObj[stateParam][key]) condition.
|
|
4933
|
-
if (get(parsedObj, stateParam + '.' + key) || (parsedObj
|
|
4928
|
+
if (get(parsedObj, stateParam + '.' + key) || (parsedObj?.[stateParam]?.[key])) {
|
|
4934
4929
|
if (subParam) {
|
|
4935
4930
|
delete parsedObj[stateParam][key][subParam];
|
|
4936
4931
|
}
|
|
@@ -4948,7 +4943,7 @@ class StatePersistence {
|
|
|
4948
4943
|
delete parsedObj[key];
|
|
4949
4944
|
}
|
|
4950
4945
|
// for Local and Session Storage, wrap state object inside page name so that widget name conflicts don't arise between pages.
|
|
4951
|
-
if (widget
|
|
4946
|
+
if (widget?.getAppInstance().activePageName && (mode.toLowerCase() === 'localstorage' || mode.toLowerCase() === 'sessionstorage')) {
|
|
4952
4947
|
if (stateObj) {
|
|
4953
4948
|
stateObj[widget.getAppInstance().activePageName] = parsedObj;
|
|
4954
4949
|
parsedObj = stateObj;
|
|
@@ -5066,10 +5061,10 @@ class StatePersistence {
|
|
|
5066
5061
|
}
|
|
5067
5062
|
return response;
|
|
5068
5063
|
}
|
|
5069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5070
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5064
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: StatePersistence, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5065
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: StatePersistence, providedIn: 'root' }); }
|
|
5071
5066
|
}
|
|
5072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: StatePersistence, decorators: [{
|
|
5073
5068
|
type: Injectable,
|
|
5074
5069
|
args: [{ providedIn: 'root' }]
|
|
5075
5070
|
}] });
|
|
@@ -5398,10 +5393,10 @@ class PaginationService {
|
|
|
5398
5393
|
lastScrollTop = scrollTop;
|
|
5399
5394
|
});
|
|
5400
5395
|
}
|
|
5401
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5402
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5396
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5397
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationService, providedIn: 'root' }); }
|
|
5403
5398
|
}
|
|
5404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: PaginationService, decorators: [{
|
|
5405
5400
|
type: Injectable,
|
|
5406
5401
|
args: [{ providedIn: 'root' }]
|
|
5407
5402
|
}] });
|
|
@@ -5470,7 +5465,7 @@ class LRUCache {
|
|
|
5470
5465
|
if (key && this.cache.has(key)) {
|
|
5471
5466
|
const cachedData = this.cache.get(key);
|
|
5472
5467
|
this.cache.delete(key);
|
|
5473
|
-
this.onEvict
|
|
5468
|
+
this.onEvict?.(key, cachedData.instance);
|
|
5474
5469
|
const index = this.evictQueue.findIndex(k => (k === key));
|
|
5475
5470
|
if (index >= 0) {
|
|
5476
5471
|
this.evictQueue.splice(index, 1);
|