@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
|
@@ -5,7 +5,7 @@ import { FormComponent } from '@wm/components/data/form';
|
|
|
5
5
|
import { ButtonComponent } from '@wm/components/input/button';
|
|
6
6
|
|
|
7
7
|
declare class LoginComponent extends StylableComponent implements AfterViewInit, OnDestroy {
|
|
8
|
-
static initializeProps: void;
|
|
8
|
+
static readonly initializeProps: void;
|
|
9
9
|
loginBtnCmp: ButtonComponent;
|
|
10
10
|
formCmp: FormComponent;
|
|
11
11
|
buttonComponents: QueryList<ButtonComponent>;
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
super(inj, WIDGET_CONFIG, explicitContext);
|
|
46
46
|
base.styler(this.nativeElement, this);
|
|
47
47
|
}
|
|
48
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
49
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
48
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MarqueeDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
49
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: MarqueeDirective, isStandalone: true, selector: "[wmMarquee]", providers: [
|
|
50
50
|
base.provideAsWidgetRef(MarqueeDirective)
|
|
51
51
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
52
52
|
}
|
|
53
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
53
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: MarqueeDirective, decorators: [{
|
|
54
54
|
type: i0.Directive,
|
|
55
55
|
args: [{
|
|
56
56
|
standalone: true,
|
|
@@ -24,12 +24,12 @@ class MarqueeDirective extends StylableComponent {
|
|
|
24
24
|
super(inj, WIDGET_CONFIG, explicitContext);
|
|
25
25
|
styler(this.nativeElement, this);
|
|
26
26
|
}
|
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
28
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MarqueeDirective, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
28
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: MarqueeDirective, isStandalone: true, selector: "[wmMarquee]", providers: [
|
|
29
29
|
provideAsWidgetRef(MarqueeDirective)
|
|
30
30
|
], usesInheritance: true, ngImport: i0 }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: MarqueeDirective, decorators: [{
|
|
33
33
|
type: Directive,
|
|
34
34
|
args: [{
|
|
35
35
|
standalone: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/marquee/src/marquee.props.ts","../../../../../projects/components/widgets/advanced/marquee/src/marquee.directive.ts","../../../../../projects/components/widgets/advanced/marquee/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-marquee',\n new Map(\n [\n ['class', PROP_STRING],\n ['direction', PROP_STRING],\n ['name', PROP_STRING],\n ['scrollamount', PROP_NUMBER],\n ['scrolldelay', PROP_NUMBER],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\n\nimport { registerProps } from './marquee.props';\n\nconst DEFAULT_CLS = 'app-marquee app-container';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-marquee',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n standalone: true,\n selector: '[wmMarquee]',\n providers: [\n provideAsWidgetRef(MarqueeDirective)\n ]\n})\nexport class MarqueeDirective extends StylableComponent {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n styler(this.nativeElement, this);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,YAAY,EACZ,IAAI,GAAG,CACH;QACI,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,cAAc,EAAE,WAAW,CAAC;QAC7B,CAAC,aAAa,EAAE,WAAW,CAAC;QAC5B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC;AAC1C,KAAA,CACJ,CACJ;AACL,CAAC;;ACVD,MAAM,WAAW,GAAG,2BAA2B;AAC/C,MAAM,aAAa,GAAkB;AACjC,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,SAAS,EAAE;CACd;AASK,MAAO,gBAAiB,SAAQ,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/advanced/marquee/src/marquee.props.ts","../../../../../projects/components/widgets/advanced/marquee/src/marquee.directive.ts","../../../../../projects/components/widgets/advanced/marquee/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-marquee',\n new Map(\n [\n ['class', PROP_STRING],\n ['direction', PROP_STRING],\n ['name', PROP_STRING],\n ['scrollamount', PROP_NUMBER],\n ['scrolldelay', PROP_NUMBER],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n )\n );\n};\n","import {Directive, Inject, Injector, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\n\nimport { registerProps } from './marquee.props';\n\nconst DEFAULT_CLS = 'app-marquee app-container';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-marquee',\n hostClass: DEFAULT_CLS\n};\n\n@Directive({\n standalone: true,\n selector: '[wmMarquee]',\n providers: [\n provideAsWidgetRef(MarqueeDirective)\n ]\n})\nexport class MarqueeDirective extends StylableComponent {\n static readonly initializeProps = registerProps();\n\n constructor(inj: Injector, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_CONFIG, explicitContext);\n\n styler(this.nativeElement, this);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,YAAY,EACZ,IAAI,GAAG,CACH;QACI,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,cAAc,EAAE,WAAW,CAAC;QAC7B,CAAC,aAAa,EAAE,WAAW,CAAC;QAC5B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC;AAC1C,KAAA,CACJ,CACJ;AACL,CAAC;;ACVD,MAAM,WAAW,GAAG,2BAA2B;AAC/C,MAAM,aAAa,GAAkB;AACjC,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,SAAS,EAAE;CACd;AASK,MAAO,gBAAiB,SAAQ,iBAAiB,CAAA;AACnC,IAAA,SAAA,IAAA,CAAA,eAAe,GAAG,aAAa,EAAhB,CAAmB;IAElD,WAAA,CAAY,GAAa,EAA0C,eAAoB,EAAA;AACnF,QAAA,KAAK,CAAC,GAAG,EAAE,aAAa,EAAE,eAAe,CAAC;AAE1C,QAAA,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC;IACpC;AAPS,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,0CAGU,kBAAkB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAH5C,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,aAAA,EAAA,SAAA,EAJd;YACP,kBAAkB,CAAC,gBAAgB;AACtC,SAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEQ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAP5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AACd,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,SAAS,EAAE;AACP,wBAAA,kBAAkB,CAAA,gBAAA;AACrB;AACJ,iBAAA;;0BAI+B,MAAM;2BAAC,kBAAkB;;0BAAG;;;ACtB5D;;AAEG;;;;"}
|
|
@@ -3,7 +3,7 @@ import { Injector } from '@angular/core';
|
|
|
3
3
|
import { StylableComponent } from '@wm/components/base';
|
|
4
4
|
|
|
5
5
|
declare class MarqueeDirective extends StylableComponent {
|
|
6
|
-
static initializeProps: void;
|
|
6
|
+
static readonly initializeProps: void;
|
|
7
7
|
constructor(inj: Injector, explicitContext: any);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarqueeDirective, [null, { optional: true; }]>;
|
|
9
9
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MarqueeDirective, "[wmMarquee]", never, {}, {}, never, never, true, never>;
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
/* convert indexes to properties, so as to work for even 'key1[0].child1'*/
|
|
103
103
|
strKey.replace(/\[(\w+)\]/g, '.$1').split('.').forEach(key => {
|
|
104
104
|
// If obj is null, then assign val to null.
|
|
105
|
-
val = (val
|
|
105
|
+
val = (val?.[key]) || (lodashEs.isNull(obj) ? obj : obj[key]);
|
|
106
106
|
});
|
|
107
107
|
return val;
|
|
108
108
|
}
|
|
@@ -363,15 +363,13 @@
|
|
|
363
363
|
if (options.noModifyTitle) {
|
|
364
364
|
modifiedTitle = title;
|
|
365
365
|
}
|
|
366
|
+
else if (lodashEs.isString(title)) {
|
|
367
|
+
modifiedTitle = i1.prettifyLabel(title);
|
|
368
|
+
modifiedTitle = i1.deHyphenate(modifiedTitle);
|
|
369
|
+
modifiedTitle = namePrefix ? i1.initCaps(namePrefix) + ' ' + modifiedTitle : modifiedTitle;
|
|
370
|
+
}
|
|
366
371
|
else {
|
|
367
|
-
|
|
368
|
-
modifiedTitle = i1.prettifyLabel(title);
|
|
369
|
-
modifiedTitle = i1.deHyphenate(modifiedTitle);
|
|
370
|
-
modifiedTitle = namePrefix ? i1.initCaps(namePrefix) + ' ' + modifiedTitle : modifiedTitle;
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
modifiedTitle = title;
|
|
374
|
-
}
|
|
372
|
+
modifiedTitle = title;
|
|
375
373
|
}
|
|
376
374
|
title = namePrefix ? namePrefix + '.' + title : title;
|
|
377
375
|
if (isRelated) {
|
|
@@ -636,7 +634,7 @@
|
|
|
636
634
|
primaryKeys = dataSource.execute(i1.DataSource.Operation.GET_RELATED_PRIMARY_KEYS, relatedField);
|
|
637
635
|
formField.datafield = datafield;
|
|
638
636
|
formField._primaryKey = lodashEs.isEmpty(primaryKeys) ? undefined : primaryKeys[0];
|
|
639
|
-
formField.compareby = primaryKeys
|
|
637
|
+
formField.compareby = primaryKeys?.join(',');
|
|
640
638
|
displayField = datafield === ALLFIELDS ? undefined : datafield;
|
|
641
639
|
formField.displayfield = displayField = (formField.displayfield || displayField || formField._primaryKey);
|
|
642
640
|
if (isSearchWidgetType(formField[options.widget])) {
|
|
@@ -1016,7 +1014,7 @@
|
|
|
1016
1014
|
return;
|
|
1017
1015
|
}
|
|
1018
1016
|
// For related fields, add lookupfield for query generation
|
|
1019
|
-
if (filterDef
|
|
1017
|
+
if (filterDef?.['is-related']) {
|
|
1020
1018
|
filterOn += '.' + lookUpField;
|
|
1021
1019
|
}
|
|
1022
1020
|
if (i1.isDefined(newVal)) {
|
|
@@ -1086,19 +1084,18 @@
|
|
|
1086
1084
|
}
|
|
1087
1085
|
dataObject = [dataObject];
|
|
1088
1086
|
}
|
|
1089
|
-
else
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}
|
|
1087
|
+
else
|
|
1088
|
+
/*if the dataObject is an array and each value is a string, then lite-transform the string to an object
|
|
1089
|
+
* lite-transform: just checking if the first value is string and then transforming the object, instead of traversing through the whole array
|
|
1090
|
+
* */
|
|
1091
|
+
if (lodashEs.isString(dataObject[0])) {
|
|
1092
|
+
tempArr = [];
|
|
1093
|
+
lodashEs.forEach(dataObject, str => {
|
|
1094
|
+
newObj = {};
|
|
1095
|
+
newObj[variableName.split('.').join('-')] = str;
|
|
1096
|
+
tempArr.push(newObj);
|
|
1097
|
+
});
|
|
1098
|
+
dataObject = tempArr;
|
|
1102
1099
|
}
|
|
1103
1100
|
return dataObject;
|
|
1104
1101
|
}
|
|
@@ -1703,7 +1700,7 @@
|
|
|
1703
1700
|
};
|
|
1704
1701
|
// Get filter widget applicable to the given type
|
|
1705
1702
|
const getDataTableFilterWidget = type => {
|
|
1706
|
-
let widget = fieldTypeWidgetTypeMap[type]
|
|
1703
|
+
let widget = fieldTypeWidgetTypeMap[type]?.[0];
|
|
1707
1704
|
if (type === i1.DataType.BOOLEAN) {
|
|
1708
1705
|
widget = i1.FormWidgetType.SELECT;
|
|
1709
1706
|
}
|
|
@@ -1728,7 +1725,7 @@
|
|
|
1728
1725
|
if (colDef['related-entity-name'] && colDef['primary-key']) {
|
|
1729
1726
|
return i1.FormWidgetType.SELECT;
|
|
1730
1727
|
}
|
|
1731
|
-
return (fieldTypeWidgetTypeMap[colDef.type]
|
|
1728
|
+
return (fieldTypeWidgetTypeMap[colDef.type]?.[0]) || i1.FormWidgetType.TEXT;
|
|
1732
1729
|
};
|
|
1733
1730
|
/**
|
|
1734
1731
|
* @ngdoc function
|
|
@@ -2162,10 +2159,10 @@
|
|
|
2162
2159
|
|
|
2163
2160
|
// Gets list of classes to add and remove and applies on the $el
|
|
2164
2161
|
const updateClasses = (toAdd, toRemove, el) => {
|
|
2165
|
-
if (toRemove
|
|
2162
|
+
if (toRemove?.length) {
|
|
2166
2163
|
i1.removeClass(el, lodashEs.join(toRemove, ' '));
|
|
2167
2164
|
}
|
|
2168
|
-
if (toAdd
|
|
2165
|
+
if (toAdd?.length) {
|
|
2169
2166
|
i1.addClass(el, lodashEs.join(toAdd, ' '));
|
|
2170
2167
|
}
|
|
2171
2168
|
};
|
|
@@ -2291,7 +2288,7 @@
|
|
|
2291
2288
|
}
|
|
2292
2289
|
this.initWidget();
|
|
2293
2290
|
this.setInitProps();
|
|
2294
|
-
resolveFn
|
|
2291
|
+
resolveFn?.();
|
|
2295
2292
|
});
|
|
2296
2293
|
}
|
|
2297
2294
|
if (explicitContext) {
|
|
@@ -2658,7 +2655,7 @@
|
|
|
2658
2655
|
getAttributes() {
|
|
2659
2656
|
let _tNodeAttrs = this.inj._tNode.attrs, actualAttrs = Array.from(this.nativeElement.attributes).map(attr => attr.name);
|
|
2660
2657
|
if (_tNodeAttrs === null) {
|
|
2661
|
-
return actualAttrs.sort();
|
|
2658
|
+
return actualAttrs.sort((a, b) => a.localeCompare(b));
|
|
2662
2659
|
}
|
|
2663
2660
|
lodashEs.forEach(_tNodeAttrs, (attr, i) => {
|
|
2664
2661
|
if (typeof attr === 'number') {
|
|
@@ -2679,7 +2676,7 @@
|
|
|
2679
2676
|
If array is sorted, placeholder.bind value will be set finally.
|
|
2680
2677
|
This is caused because of the way we are storing attribute names in watcher registry map
|
|
2681
2678
|
*/
|
|
2682
|
-
return actualAttrs.sort();
|
|
2679
|
+
return actualAttrs.sort((a, b) => a.localeCompare(b));
|
|
2683
2680
|
}
|
|
2684
2681
|
/**
|
|
2685
2682
|
* Process the attributes
|
|
@@ -2882,7 +2879,7 @@
|
|
|
2882
2879
|
return;
|
|
2883
2880
|
}
|
|
2884
2881
|
else {
|
|
2885
|
-
return widget.redraw
|
|
2882
|
+
return widget.redraw?.();
|
|
2886
2883
|
}
|
|
2887
2884
|
};
|
|
2888
2885
|
}
|
|
@@ -2909,10 +2906,10 @@
|
|
|
2909
2906
|
updateRedrawableComponents(widgets) {
|
|
2910
2907
|
lodashEs.pickBy(widgets, widget => {
|
|
2911
2908
|
// check for redrawable widget and whether it is already exist in reDrawableComponents query list or not
|
|
2912
|
-
if (widget
|
|
2909
|
+
if (widget?.nativeElement?.hasAttribute('redrawable') && !lodashEs.includes(this.reDrawableComponents._results, widget)) {
|
|
2913
2910
|
this.reDrawableComponents._results.push(widget);
|
|
2914
2911
|
}
|
|
2915
|
-
if (widget
|
|
2912
|
+
if (widget?.Widgets) {
|
|
2916
2913
|
this.updateRedrawableComponents(widget.Widgets);
|
|
2917
2914
|
}
|
|
2918
2915
|
});
|
|
@@ -3296,7 +3293,7 @@
|
|
|
3296
3293
|
// in place instead of destroying and recreating it (that used to cause a
|
|
3297
3294
|
// visible flicker on every param change). Fall back to a full render only if
|
|
3298
3295
|
// there's no live instance yet to refresh.
|
|
3299
|
-
if (this.instanceRef
|
|
3296
|
+
if (this.instanceRef?.instance) {
|
|
3300
3297
|
i1.$appDigest(true);
|
|
3301
3298
|
}
|
|
3302
3299
|
else {
|
|
@@ -3652,7 +3649,7 @@
|
|
|
3652
3649
|
this.setCustomValidationMessage();
|
|
3653
3650
|
}
|
|
3654
3651
|
setCustomValidationMessage() {
|
|
3655
|
-
const fieldErrors = this.widgetControl
|
|
3652
|
+
const fieldErrors = this.widgetControl?.errors;
|
|
3656
3653
|
if (!fieldErrors) {
|
|
3657
3654
|
return;
|
|
3658
3655
|
}
|
|
@@ -4437,13 +4434,11 @@
|
|
|
4437
4434
|
}
|
|
4438
4435
|
}
|
|
4439
4436
|
}
|
|
4437
|
+
else if (dialogRefMap.size === 1) {
|
|
4438
|
+
dialogRef = dialogRefMap.entries().next().value[1];
|
|
4439
|
+
}
|
|
4440
4440
|
else {
|
|
4441
|
-
|
|
4442
|
-
dialogRef = dialogRefMap.entries().next().value[1];
|
|
4443
|
-
}
|
|
4444
|
-
else {
|
|
4445
|
-
console.error('There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists.');
|
|
4446
|
-
}
|
|
4441
|
+
console.error('There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists.');
|
|
4447
4442
|
}
|
|
4448
4443
|
return dialogRef;
|
|
4449
4444
|
}
|
|
@@ -4639,7 +4634,7 @@
|
|
|
4639
4634
|
fracSize = '1.' + fracSize + '-' + fracSize;
|
|
4640
4635
|
}
|
|
4641
4636
|
if (!isNaN(+data)) {
|
|
4642
|
-
const locale = this.i18nService
|
|
4637
|
+
const locale = this.i18nService?.getwidgetLocale() ? this.i18nService.getwidgetLocale() : undefined;
|
|
4643
4638
|
const formattedLocale = locale ? locale['number'] : null;
|
|
4644
4639
|
return this.decimalPipe.transform(data, fracSize, formattedLocale);
|
|
4645
4640
|
}
|
|
@@ -4663,7 +4658,7 @@
|
|
|
4663
4658
|
}] }], null); })();
|
|
4664
4659
|
class ToCurrencyPipe {
|
|
4665
4660
|
transform(data, currencySymbol, fracSize) {
|
|
4666
|
-
const _currencySymbol = (i1.CURRENCY_INFO[currencySymbol]
|
|
4661
|
+
const _currencySymbol = (i1.CURRENCY_INFO[currencySymbol]?.symbol) || currencySymbol || '';
|
|
4667
4662
|
let _val = new ToNumberPipe(this.decimalPipe, this.i18nService).transform(data, fracSize);
|
|
4668
4663
|
const isNegativeNumber = lodashEs.startsWith(_val, '-');
|
|
4669
4664
|
if (isNegativeNumber) {
|
|
@@ -5229,7 +5224,7 @@
|
|
|
5229
5224
|
// --- override for cleanup ---
|
|
5230
5225
|
proto.ngOnDestroy = function () {
|
|
5231
5226
|
const store = this.__al_store;
|
|
5232
|
-
if (store
|
|
5227
|
+
if (store?.destroySub) {
|
|
5233
5228
|
store.destroySub.next();
|
|
5234
5229
|
store.destroySub.complete();
|
|
5235
5230
|
}
|
|
@@ -5512,7 +5507,6 @@
|
|
|
5512
5507
|
styles['flex-grow'] = '';
|
|
5513
5508
|
styles['flex-shrink'] = '0';
|
|
5514
5509
|
styles['flex-basis'] = '';
|
|
5515
|
-
styles['flex-basis'] = '';
|
|
5516
5510
|
styles['align-self'] = '';
|
|
5517
5511
|
styles[minKey] = '';
|
|
5518
5512
|
}
|
|
@@ -92,7 +92,7 @@ const getObjValueByKey = (obj, strKey) => {
|
|
|
92
92
|
/* convert indexes to properties, so as to work for even 'key1[0].child1'*/
|
|
93
93
|
strKey.replace(/\[(\w+)\]/g, '.$1').split('.').forEach(key => {
|
|
94
94
|
// If obj is null, then assign val to null.
|
|
95
|
-
val = (val
|
|
95
|
+
val = (val?.[key]) || (isNull(obj) ? obj : obj[key]);
|
|
96
96
|
});
|
|
97
97
|
return val;
|
|
98
98
|
}
|
|
@@ -353,15 +353,13 @@ const pushFieldDef = (dataObject, columnDefObj, namePrefix, options) => {
|
|
|
353
353
|
if (options.noModifyTitle) {
|
|
354
354
|
modifiedTitle = title;
|
|
355
355
|
}
|
|
356
|
+
else if (isString(title)) {
|
|
357
|
+
modifiedTitle = prettifyLabel(title);
|
|
358
|
+
modifiedTitle = deHyphenate(modifiedTitle);
|
|
359
|
+
modifiedTitle = namePrefix ? initCaps(namePrefix) + ' ' + modifiedTitle : modifiedTitle;
|
|
360
|
+
}
|
|
356
361
|
else {
|
|
357
|
-
|
|
358
|
-
modifiedTitle = prettifyLabel(title);
|
|
359
|
-
modifiedTitle = deHyphenate(modifiedTitle);
|
|
360
|
-
modifiedTitle = namePrefix ? initCaps(namePrefix) + ' ' + modifiedTitle : modifiedTitle;
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
modifiedTitle = title;
|
|
364
|
-
}
|
|
362
|
+
modifiedTitle = title;
|
|
365
363
|
}
|
|
366
364
|
title = namePrefix ? namePrefix + '.' + title : title;
|
|
367
365
|
if (isRelated) {
|
|
@@ -626,7 +624,7 @@ function fetchRelatedFieldData(dataSource, formField, options) {
|
|
|
626
624
|
primaryKeys = dataSource.execute(DataSource.Operation.GET_RELATED_PRIMARY_KEYS, relatedField);
|
|
627
625
|
formField.datafield = datafield;
|
|
628
626
|
formField._primaryKey = isEmpty(primaryKeys) ? undefined : primaryKeys[0];
|
|
629
|
-
formField.compareby = primaryKeys
|
|
627
|
+
formField.compareby = primaryKeys?.join(',');
|
|
630
628
|
displayField = datafield === ALLFIELDS ? undefined : datafield;
|
|
631
629
|
formField.displayfield = displayField = (formField.displayfield || displayField || formField._primaryKey);
|
|
632
630
|
if (isSearchWidgetType(formField[options.widget])) {
|
|
@@ -1006,7 +1004,7 @@ function applyFilterOnField(dataSource, filterDef, formFields, newVal, options =
|
|
|
1006
1004
|
return;
|
|
1007
1005
|
}
|
|
1008
1006
|
// For related fields, add lookupfield for query generation
|
|
1009
|
-
if (filterDef
|
|
1007
|
+
if (filterDef?.['is-related']) {
|
|
1010
1008
|
filterOn += '.' + lookUpField;
|
|
1011
1009
|
}
|
|
1012
1010
|
if (isDefined(newVal)) {
|
|
@@ -1076,19 +1074,18 @@ function transformData(dataObject, variableName) {
|
|
|
1076
1074
|
}
|
|
1077
1075
|
dataObject = [dataObject];
|
|
1078
1076
|
}
|
|
1079
|
-
else
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
}
|
|
1077
|
+
else
|
|
1078
|
+
/*if the dataObject is an array and each value is a string, then lite-transform the string to an object
|
|
1079
|
+
* lite-transform: just checking if the first value is string and then transforming the object, instead of traversing through the whole array
|
|
1080
|
+
* */
|
|
1081
|
+
if (isString(dataObject[0])) {
|
|
1082
|
+
tempArr = [];
|
|
1083
|
+
forEach(dataObject, str => {
|
|
1084
|
+
newObj = {};
|
|
1085
|
+
newObj[variableName.split('.').join('-')] = str;
|
|
1086
|
+
tempArr.push(newObj);
|
|
1087
|
+
});
|
|
1088
|
+
dataObject = tempArr;
|
|
1092
1089
|
}
|
|
1093
1090
|
return dataObject;
|
|
1094
1091
|
}
|
|
@@ -1695,7 +1692,7 @@ const getFieldTypeWidgetTypesMap = () => {
|
|
|
1695
1692
|
};
|
|
1696
1693
|
// Get filter widget applicable to the given type
|
|
1697
1694
|
const getDataTableFilterWidget = type => {
|
|
1698
|
-
let widget = fieldTypeWidgetTypeMap[type]
|
|
1695
|
+
let widget = fieldTypeWidgetTypeMap[type]?.[0];
|
|
1699
1696
|
if (type === DataType.BOOLEAN) {
|
|
1700
1697
|
widget = FormWidgetType.SELECT;
|
|
1701
1698
|
}
|
|
@@ -1720,7 +1717,7 @@ const getEditModeWidget = colDef => {
|
|
|
1720
1717
|
if (colDef['related-entity-name'] && colDef['primary-key']) {
|
|
1721
1718
|
return FormWidgetType.SELECT;
|
|
1722
1719
|
}
|
|
1723
|
-
return (fieldTypeWidgetTypeMap[colDef.type]
|
|
1720
|
+
return (fieldTypeWidgetTypeMap[colDef.type]?.[0]) || FormWidgetType.TEXT;
|
|
1724
1721
|
};
|
|
1725
1722
|
/**
|
|
1726
1723
|
* @ngdoc function
|
|
@@ -2158,10 +2155,10 @@ class WidgetProxyProvider {
|
|
|
2158
2155
|
|
|
2159
2156
|
// Gets list of classes to add and remove and applies on the $el
|
|
2160
2157
|
const updateClasses = (toAdd, toRemove, el) => {
|
|
2161
|
-
if (toRemove
|
|
2158
|
+
if (toRemove?.length) {
|
|
2162
2159
|
removeClass(el, join(toRemove, ' '));
|
|
2163
2160
|
}
|
|
2164
|
-
if (toAdd
|
|
2161
|
+
if (toAdd?.length) {
|
|
2165
2162
|
addClass(el, join(toAdd, ' '));
|
|
2166
2163
|
}
|
|
2167
2164
|
};
|
|
@@ -2287,7 +2284,7 @@ class BaseComponent {
|
|
|
2287
2284
|
}
|
|
2288
2285
|
this.initWidget();
|
|
2289
2286
|
this.setInitProps();
|
|
2290
|
-
resolveFn
|
|
2287
|
+
resolveFn?.();
|
|
2291
2288
|
});
|
|
2292
2289
|
}
|
|
2293
2290
|
if (explicitContext) {
|
|
@@ -2656,7 +2653,7 @@ class BaseComponent {
|
|
|
2656
2653
|
getAttributes() {
|
|
2657
2654
|
let _tNodeAttrs = this.inj._tNode.attrs, actualAttrs = Array.from(this.nativeElement.attributes).map(attr => attr.name);
|
|
2658
2655
|
if (_tNodeAttrs === null) {
|
|
2659
|
-
return actualAttrs.sort();
|
|
2656
|
+
return actualAttrs.sort((a, b) => a.localeCompare(b));
|
|
2660
2657
|
}
|
|
2661
2658
|
forEach(_tNodeAttrs, (attr, i) => {
|
|
2662
2659
|
if (typeof attr === 'number') {
|
|
@@ -2677,7 +2674,7 @@ class BaseComponent {
|
|
|
2677
2674
|
If array is sorted, placeholder.bind value will be set finally.
|
|
2678
2675
|
This is caused because of the way we are storing attribute names in watcher registry map
|
|
2679
2676
|
*/
|
|
2680
|
-
return actualAttrs.sort();
|
|
2677
|
+
return actualAttrs.sort((a, b) => a.localeCompare(b));
|
|
2681
2678
|
}
|
|
2682
2679
|
/**
|
|
2683
2680
|
* Process the attributes
|
|
@@ -2880,7 +2877,7 @@ class RedrawableDirective {
|
|
|
2880
2877
|
return;
|
|
2881
2878
|
}
|
|
2882
2879
|
else {
|
|
2883
|
-
return widget.redraw
|
|
2880
|
+
return widget.redraw?.();
|
|
2884
2881
|
}
|
|
2885
2882
|
};
|
|
2886
2883
|
}
|
|
@@ -2907,10 +2904,10 @@ class BaseContainerComponent extends StylableComponent {
|
|
|
2907
2904
|
updateRedrawableComponents(widgets) {
|
|
2908
2905
|
pickBy(widgets, widget => {
|
|
2909
2906
|
// check for redrawable widget and whether it is already exist in reDrawableComponents query list or not
|
|
2910
|
-
if (widget
|
|
2907
|
+
if (widget?.nativeElement?.hasAttribute('redrawable') && !includes(this.reDrawableComponents._results, widget)) {
|
|
2911
2908
|
this.reDrawableComponents._results.push(widget);
|
|
2912
2909
|
}
|
|
2913
|
-
if (widget
|
|
2910
|
+
if (widget?.Widgets) {
|
|
2914
2911
|
this.updateRedrawableComponents(widget.Widgets);
|
|
2915
2912
|
}
|
|
2916
2913
|
});
|
|
@@ -3294,7 +3291,7 @@ class PartialContainerDirective {
|
|
|
3294
3291
|
// in place instead of destroying and recreating it (that used to cause a
|
|
3295
3292
|
// visible flicker on every param change). Fall back to a full render only if
|
|
3296
3293
|
// there's no live instance yet to refresh.
|
|
3297
|
-
if (this.instanceRef
|
|
3294
|
+
if (this.instanceRef?.instance) {
|
|
3298
3295
|
$appDigest(true);
|
|
3299
3296
|
}
|
|
3300
3297
|
else {
|
|
@@ -3650,7 +3647,7 @@ class BaseFieldValidations {
|
|
|
3650
3647
|
this.setCustomValidationMessage();
|
|
3651
3648
|
}
|
|
3652
3649
|
setCustomValidationMessage() {
|
|
3653
|
-
const fieldErrors = this.widgetControl
|
|
3650
|
+
const fieldErrors = this.widgetControl?.errors;
|
|
3654
3651
|
if (!fieldErrors) {
|
|
3655
3652
|
return;
|
|
3656
3653
|
}
|
|
@@ -4436,13 +4433,11 @@ class DialogServiceImpl {
|
|
|
4436
4433
|
}
|
|
4437
4434
|
}
|
|
4438
4435
|
}
|
|
4436
|
+
else if (dialogRefMap.size === 1) {
|
|
4437
|
+
dialogRef = dialogRefMap.entries().next().value[1];
|
|
4438
|
+
}
|
|
4439
4439
|
else {
|
|
4440
|
-
|
|
4441
|
-
dialogRef = dialogRefMap.entries().next().value[1];
|
|
4442
|
-
}
|
|
4443
|
-
else {
|
|
4444
|
-
console.error('There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists.');
|
|
4445
|
-
}
|
|
4440
|
+
console.error('There are multiple instances of this dialog name. Please provide the Page/Partial/App instance in which the dialog exists.');
|
|
4446
4441
|
}
|
|
4447
4442
|
return dialogRef;
|
|
4448
4443
|
}
|
|
@@ -4638,7 +4633,7 @@ class ToNumberPipe {
|
|
|
4638
4633
|
fracSize = '1.' + fracSize + '-' + fracSize;
|
|
4639
4634
|
}
|
|
4640
4635
|
if (!isNaN(+data)) {
|
|
4641
|
-
const locale = this.i18nService
|
|
4636
|
+
const locale = this.i18nService?.getwidgetLocale() ? this.i18nService.getwidgetLocale() : undefined;
|
|
4642
4637
|
const formattedLocale = locale ? locale['number'] : null;
|
|
4643
4638
|
return this.decimalPipe.transform(data, fracSize, formattedLocale);
|
|
4644
4639
|
}
|
|
@@ -4662,7 +4657,7 @@ class ToNumberPipe {
|
|
|
4662
4657
|
}] }], null); })();
|
|
4663
4658
|
class ToCurrencyPipe {
|
|
4664
4659
|
transform(data, currencySymbol, fracSize) {
|
|
4665
|
-
const _currencySymbol = (CURRENCY_INFO[currencySymbol]
|
|
4660
|
+
const _currencySymbol = (CURRENCY_INFO[currencySymbol]?.symbol) || currencySymbol || '';
|
|
4666
4661
|
let _val = new ToNumberPipe(this.decimalPipe, this.i18nService).transform(data, fracSize);
|
|
4667
4662
|
const isNegativeNumber = startsWith(_val, '-');
|
|
4668
4663
|
if (isNegativeNumber) {
|
|
@@ -5228,7 +5223,7 @@ function AutoLayout(options = {}) {
|
|
|
5228
5223
|
// --- override for cleanup ---
|
|
5229
5224
|
proto.ngOnDestroy = function () {
|
|
5230
5225
|
const store = this.__al_store;
|
|
5231
|
-
if (store
|
|
5226
|
+
if (store?.destroySub) {
|
|
5232
5227
|
store.destroySub.next();
|
|
5233
5228
|
store.destroySub.complete();
|
|
5234
5229
|
}
|
|
@@ -5513,7 +5508,6 @@ function AutoLayout(options = {}) {
|
|
|
5513
5508
|
styles['flex-grow'] = '';
|
|
5514
5509
|
styles['flex-shrink'] = '0';
|
|
5515
5510
|
styles['flex-basis'] = '';
|
|
5516
|
-
styles['flex-basis'] = '';
|
|
5517
5511
|
styles['align-self'] = '';
|
|
5518
5512
|
styles[minKey] = '';
|
|
5519
5513
|
}
|