@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
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
if (!this.$element.find('.on-demand-datagrid').length && !this.dataNavigator.isDisableNext && this.onDemandLoad) {
|
|
160
160
|
this.gridOptions.addLoadMoreBtn();
|
|
161
161
|
}
|
|
162
|
-
else if ((this._gridData
|
|
162
|
+
else if ((this._gridData?.length) && (this.dataNavigator.isDisableNext || !this.isDataLoading)) {
|
|
163
163
|
// when the next page is disabled or when the data is not loading remove the loading/load more button accordingly
|
|
164
164
|
this.callDataGridMethod('hideLoadingIndicator', this.dataNavigator.isDisableNext, this.infScroll);
|
|
165
165
|
}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
// Filter and Sort Methods
|
|
283
283
|
this.rowFilter = {};
|
|
284
284
|
this._searchSortHandler = noop;
|
|
285
|
-
this.searchSortHandler = (...args) => { this._searchSortHandler
|
|
285
|
+
this.searchSortHandler = (...args) => { this._searchSortHandler(...args); };
|
|
286
286
|
this.onRowFilterChange = noop;
|
|
287
287
|
this.onFilterConditionSelect = noop;
|
|
288
288
|
this.showClearIcon = noop;
|
|
@@ -524,7 +524,7 @@
|
|
|
524
524
|
// WMS-18774: If we invoke navigation action variable on rowclick callback, the navigation is triggering outside angular zone so adding ngZone.run
|
|
525
525
|
this.ngZone.run(() => {
|
|
526
526
|
// Call row click only if click is triggered by user
|
|
527
|
-
if (e
|
|
527
|
+
if (e?.hasOwnProperty('originalEvent')) {
|
|
528
528
|
const rowData = this.addRowIndex(row);
|
|
529
529
|
this.invokeEventCallback('rowclick', { $data: rowData, $event: e, row: rowData });
|
|
530
530
|
}
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
},
|
|
598
598
|
afterRowUpdate: (row, e, callBack, options) => {
|
|
599
599
|
i2.muteWatchers();
|
|
600
|
-
const v = lodashEs.get(this.datasource, 'category') === 'wm.Variable' && options
|
|
600
|
+
const v = lodashEs.get(this.datasource, 'category') === 'wm.Variable' && options?.rowindex != null;
|
|
601
601
|
this.updateRecord(lodashEs.extend({}, options, { row, prevData: v ? options.rowindex : this.prevData, event: e, callBack }));
|
|
602
602
|
setTimeout(() => {
|
|
603
603
|
i2.unMuteWatchers();
|
|
@@ -808,10 +808,10 @@
|
|
|
808
808
|
return this.ngform.controls[fieldName + '_new'] || {};
|
|
809
809
|
},
|
|
810
810
|
getValidationMessage: () => {
|
|
811
|
-
return this.columns[fieldName]
|
|
811
|
+
return this.columns[fieldName]?.validationmessage;
|
|
812
812
|
},
|
|
813
813
|
getPendingSpinnerStatusNew: () => {
|
|
814
|
-
return this.columns[fieldName]
|
|
814
|
+
return this.columns[fieldName]?.showPendingSpinnerNew;
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
const rootNode = this.inlineEditNewViewRef.createEmbeddedView(tmpl, context).rootNodes[0];
|
|
@@ -834,10 +834,10 @@
|
|
|
834
834
|
return this.ngform.controls[fieldName] || {};
|
|
835
835
|
},
|
|
836
836
|
getValidationMessage: () => {
|
|
837
|
-
return this.columns[fieldName]
|
|
837
|
+
return this.columns[fieldName]?.validationmessage;
|
|
838
838
|
},
|
|
839
839
|
getPendingSpinnerStatus: () => {
|
|
840
|
-
return this.columns[fieldName]
|
|
840
|
+
return this.columns[fieldName]?.showPendingSpinner;
|
|
841
841
|
}
|
|
842
842
|
};
|
|
843
843
|
const rootNode = this.inlineEditViewRef.createEmbeddedView(tmpl, context).rootNodes[0];
|
|
@@ -854,14 +854,14 @@
|
|
|
854
854
|
return this.inlineCompliedTl[fieldName];
|
|
855
855
|
},
|
|
856
856
|
setFieldValue: (fieldName, value) => {
|
|
857
|
-
const control = this.ngform.controls
|
|
857
|
+
const control = this.ngform.controls?.[fieldName];
|
|
858
858
|
if (control) {
|
|
859
859
|
control.setValue(value);
|
|
860
860
|
}
|
|
861
861
|
},
|
|
862
862
|
getFieldValue: fieldName => {
|
|
863
|
-
const control = this.ngform.controls
|
|
864
|
-
return control
|
|
863
|
+
const control = this.ngform.controls?.[fieldName];
|
|
864
|
+
return control?.value;
|
|
865
865
|
},
|
|
866
866
|
// function to add load more button to table
|
|
867
867
|
addLoadMoreBtn: () => {
|
|
@@ -880,7 +880,7 @@
|
|
|
880
880
|
},
|
|
881
881
|
// function to bind scroll event
|
|
882
882
|
bindScrollEvt: () => {
|
|
883
|
-
if (this._gridData
|
|
883
|
+
if (this._gridData?.length && this.infScroll) {
|
|
884
884
|
// smoothscroll events will be binded.
|
|
885
885
|
// Added timeout as the table html is rendered at runtime
|
|
886
886
|
setTimeout(() => {
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
const context = {
|
|
898
898
|
changeFn: this.onRowFilterChange.bind(this),
|
|
899
899
|
isDisabled: (fieldName) => {
|
|
900
|
-
return this.emptyMatchModes.indexOf(this.rowFilter[fieldName]
|
|
900
|
+
return this.emptyMatchModes.indexOf(this.rowFilter[fieldName]?.matchMode) > -1;
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
903
|
const rootNode = this.filterViewRef.createEmbeddedView(tmpl, context).rootNodes[0];
|
|
@@ -943,9 +943,9 @@
|
|
|
943
943
|
// Function to redraw the widgets on resize of columns
|
|
944
944
|
redrawWidgets: () => {
|
|
945
945
|
this.fieldDefs.forEach(col => {
|
|
946
|
-
i2.triggerFn(col.inlineInstance
|
|
947
|
-
i2.triggerFn(col.inlineInstanceNew
|
|
948
|
-
i2.triggerFn(col.filterInstance
|
|
946
|
+
i2.triggerFn(col.inlineInstance?.redraw);
|
|
947
|
+
i2.triggerFn(col.inlineInstanceNew?.redraw);
|
|
948
|
+
i2.triggerFn(col.filterInstance?.redraw);
|
|
949
949
|
});
|
|
950
950
|
},
|
|
951
951
|
searchHandler: this.searchSortHandler.bind(this),
|
|
@@ -969,17 +969,17 @@
|
|
|
969
969
|
callLoadInlineWidgetData: () => {
|
|
970
970
|
this.fullFieldDefs.forEach(col => {
|
|
971
971
|
if (lodashEs.isUndefined(col.isDataSetBound)) {
|
|
972
|
-
i2.triggerFn(col.loadInlineWidgetData
|
|
972
|
+
i2.triggerFn(col.loadInlineWidgetData?.bind(col));
|
|
973
973
|
}
|
|
974
974
|
});
|
|
975
975
|
},
|
|
976
976
|
// Function to apply validators to Inline form controls
|
|
977
977
|
applyValidations: (col, alwaysNewRow) => {
|
|
978
978
|
if (alwaysNewRow) {
|
|
979
|
-
i2.triggerFn(col.applyNewRowValidations
|
|
979
|
+
i2.triggerFn(col.applyNewRowValidations?.bind(col));
|
|
980
980
|
}
|
|
981
981
|
else {
|
|
982
|
-
i2.triggerFn(col.applyValidations
|
|
982
|
+
i2.triggerFn(col.applyValidations?.bind(col));
|
|
983
983
|
}
|
|
984
984
|
},
|
|
985
985
|
// Function to remove validators and set form state to untouched for inline form control
|
|
@@ -987,10 +987,10 @@
|
|
|
987
987
|
this.fullFieldDefs.forEach(col => {
|
|
988
988
|
if (!col.readonly && col.binding !== 'rowOperations') {
|
|
989
989
|
if (alwaysNewRow) {
|
|
990
|
-
i2.triggerFn(col.removeNewRowValidations
|
|
990
|
+
i2.triggerFn(col.removeNewRowValidations?.bind(col));
|
|
991
991
|
}
|
|
992
992
|
else {
|
|
993
|
-
i2.triggerFn(col.removeValidations
|
|
993
|
+
i2.triggerFn(col.removeValidations?.bind(col));
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
});
|
|
@@ -1017,7 +1017,7 @@
|
|
|
1017
1017
|
this._pageLoad = false;
|
|
1018
1018
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
1019
1019
|
if (widgetState) {
|
|
1020
|
-
|
|
1020
|
+
this.handleStateParams(widgetState, options);
|
|
1021
1021
|
}
|
|
1022
1022
|
else {
|
|
1023
1023
|
this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
}),
|
|
1027
1027
|
// Show loading status based on the variable life cycle
|
|
1028
1028
|
this.app.subscribe('toggle-variable-state', options => {
|
|
1029
|
-
if (this.datasource
|
|
1029
|
+
if (this.datasource?.execute(i2.DataSource.Operation.IS_API_AWARE) && i2.isDataSourceEqual(options.variable, this.datasource)) {
|
|
1030
1030
|
if (this._pageLoad && this.getConfiguredState() !== 'none') {
|
|
1031
1031
|
this._pageLoad = false;
|
|
1032
1032
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
@@ -1082,13 +1082,11 @@
|
|
|
1082
1082
|
if (this.readonlygrid === 'true') {
|
|
1083
1083
|
this.editmode = '';
|
|
1084
1084
|
}
|
|
1085
|
+
else if (this.isPartOfLiveGrid) {
|
|
1086
|
+
this.editmode = this.isPartOfLiveGrid.formlayout === 'inline' ? i4.EDIT_MODE.FORM : i4.EDIT_MODE.DIALOG;
|
|
1087
|
+
}
|
|
1085
1088
|
else {
|
|
1086
|
-
|
|
1087
|
-
this.editmode = this.isPartOfLiveGrid.formlayout === 'inline' ? i4.EDIT_MODE.FORM : i4.EDIT_MODE.DIALOG;
|
|
1088
|
-
}
|
|
1089
|
-
else {
|
|
1090
|
-
this.editmode = this.readonlygrid ? i4.EDIT_MODE.INLINE : '';
|
|
1091
|
-
}
|
|
1089
|
+
this.editmode = this.readonlygrid ? i4.EDIT_MODE.INLINE : '';
|
|
1092
1090
|
}
|
|
1093
1091
|
}
|
|
1094
1092
|
this.gridOptions.colDefs = this.fullFieldDefs;
|
|
@@ -1154,7 +1152,7 @@
|
|
|
1154
1152
|
}
|
|
1155
1153
|
getConfiguredState() {
|
|
1156
1154
|
const mode = this.statePersistence.computeMode(this.statehandler);
|
|
1157
|
-
return mode
|
|
1155
|
+
return mode?.toLowerCase();
|
|
1158
1156
|
}
|
|
1159
1157
|
handleStateParams(widgetState, options) {
|
|
1160
1158
|
if (lodashEs.get(widgetState, 'selectedItem')) {
|
|
@@ -1214,7 +1212,7 @@
|
|
|
1214
1212
|
this.rowFilter[filterObj.field].matchMode = filterObj.matchMode;
|
|
1215
1213
|
this.rowFilter[filterObj.field].type = filterObj.type;
|
|
1216
1214
|
if ($(this.rowFilterCompliedTl[filterObj.field]).length) {
|
|
1217
|
-
filterObj.type === 'integer' ? parseInt(filterObj.value) : filterObj.value;
|
|
1215
|
+
//const val = filterObj.type === 'integer' ? parseInt(filterObj.value) : filterObj.value;
|
|
1218
1216
|
$(this.rowFilterCompliedTl[filterObj.field]).find('input').val(filterObj.value);
|
|
1219
1217
|
}
|
|
1220
1218
|
}
|
|
@@ -1297,10 +1295,8 @@
|
|
|
1297
1295
|
this.dataNavigator.pageChanged({ page: widgetState.pagination || 1, pagesize: widgetState.pagesize }, true);
|
|
1298
1296
|
}
|
|
1299
1297
|
}
|
|
1300
|
-
else {
|
|
1301
|
-
|
|
1302
|
-
this.dataNavigator.pageChanged({ page: widgetState.pagination }, true);
|
|
1303
|
-
}
|
|
1298
|
+
else if (lodashEs.get(widgetState, 'pagination')) {
|
|
1299
|
+
this.dataNavigator.pageChanged({ page: widgetState.pagination }, true);
|
|
1304
1300
|
}
|
|
1305
1301
|
}
|
|
1306
1302
|
// After the setting the watch on navigator, dataset is triggered with undefined. In this case, return here.
|
|
@@ -1452,7 +1448,7 @@
|
|
|
1452
1448
|
this.fullFieldDefs = [];
|
|
1453
1449
|
this.__fullData = null;
|
|
1454
1450
|
// MEMORY LEAK FIX: Destroy jQuery datatable widget before clearing gridOptions
|
|
1455
|
-
if (this.datagridElement
|
|
1451
|
+
if (this.datagridElement?.datatable) {
|
|
1456
1452
|
try {
|
|
1457
1453
|
this.datagridElement.datatable('destroy');
|
|
1458
1454
|
}
|
|
@@ -1552,14 +1548,13 @@
|
|
|
1552
1548
|
if (data.active) {
|
|
1553
1549
|
this.callDataGridMethod('setStatus', 'loading', this.loadingdatamsg);
|
|
1554
1550
|
}
|
|
1551
|
+
else
|
|
1552
|
+
// If grid is in edit mode or grid has data, dont show the no data message
|
|
1553
|
+
if (!this.isGridEditMode && lodashEs.isEmpty(this.dataset)) {
|
|
1554
|
+
this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
|
|
1555
|
+
}
|
|
1555
1556
|
else {
|
|
1556
|
-
|
|
1557
|
-
if (!this.isGridEditMode && lodashEs.isEmpty(this.dataset)) {
|
|
1558
|
-
this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
|
|
1559
|
-
}
|
|
1560
|
-
else {
|
|
1561
|
-
this.callDataGridMethod('setStatus', 'ready');
|
|
1562
|
-
}
|
|
1557
|
+
this.callDataGridMethod('setStatus', 'ready');
|
|
1563
1558
|
}
|
|
1564
1559
|
}
|
|
1565
1560
|
setDisabledOnField(operation, colDef, widgetType) {
|
|
@@ -1616,7 +1611,7 @@
|
|
|
1616
1611
|
removeEmptyRecords(serviceData) {
|
|
1617
1612
|
const allRecords = serviceData;
|
|
1618
1613
|
let filteredData = [];
|
|
1619
|
-
if (allRecords
|
|
1614
|
+
if (allRecords?.length) {
|
|
1620
1615
|
/*Comparing and pushing the non-empty data columns*/
|
|
1621
1616
|
filteredData = allRecords.filter(record => {
|
|
1622
1617
|
return record && !this.isEmptyRecord(record);
|
|
@@ -1642,7 +1637,7 @@
|
|
|
1642
1637
|
this.gridData = data;
|
|
1643
1638
|
}
|
|
1644
1639
|
setDataGridOption(optionName, newVal, forceSet = false) {
|
|
1645
|
-
if (!this.datagridElement
|
|
1640
|
+
if (!this.datagridElement?.datatable?.('instance')) {
|
|
1646
1641
|
// Bound properties can update before the jQuery widget is initialized.
|
|
1647
1642
|
// Keep gridOptions in sync so the initial datatable() call sees the latest value.
|
|
1648
1643
|
this.gridOptions[optionName] = newVal;
|
|
@@ -1656,11 +1651,11 @@
|
|
|
1656
1651
|
}
|
|
1657
1652
|
}
|
|
1658
1653
|
callDataGridMethod(...args) {
|
|
1659
|
-
if (!this.datagridElement
|
|
1654
|
+
if (!this.datagridElement?.datatable('instance')) {
|
|
1660
1655
|
this.applyProps.set(args[1], args);
|
|
1661
1656
|
return; // If datagrid is not initiliazed or destroyed, return here
|
|
1662
1657
|
}
|
|
1663
|
-
return this.datagridElement.datatable
|
|
1658
|
+
return this.datagridElement.datatable(...args);
|
|
1664
1659
|
}
|
|
1665
1660
|
renderOperationColumns() {
|
|
1666
1661
|
let rowActionCol, insertPosition;
|
|
@@ -1722,16 +1717,14 @@
|
|
|
1722
1717
|
if (lodashEs.isEqual(this.dataset, newVal)) {
|
|
1723
1718
|
this.watchVariableDataSet(newVal);
|
|
1724
1719
|
}
|
|
1720
|
+
else if (lodashEs.isArray(newVal)) {
|
|
1721
|
+
this.widget.dataset = [].concat(newVal);
|
|
1722
|
+
}
|
|
1723
|
+
else if (lodashEs.isObject(newVal)) {
|
|
1724
|
+
this.widget.dataset = lodashEs.extend({}, newVal);
|
|
1725
|
+
}
|
|
1725
1726
|
else {
|
|
1726
|
-
|
|
1727
|
-
this.widget.dataset = [].concat(newVal);
|
|
1728
|
-
}
|
|
1729
|
-
else if (lodashEs.isObject(newVal)) {
|
|
1730
|
-
this.widget.dataset = lodashEs.extend({}, newVal);
|
|
1731
|
-
}
|
|
1732
|
-
else {
|
|
1733
|
-
this.widget.dataset = newVal;
|
|
1734
|
-
}
|
|
1727
|
+
this.widget.dataset = newVal;
|
|
1735
1728
|
}
|
|
1736
1729
|
}
|
|
1737
1730
|
else {
|
|
@@ -1769,7 +1762,7 @@
|
|
|
1769
1762
|
if (dataset.error) {
|
|
1770
1763
|
error = dataset.error;
|
|
1771
1764
|
}
|
|
1772
|
-
if (dataset.data
|
|
1765
|
+
if (dataset.data?.error) {
|
|
1773
1766
|
if (dataset.data.errorMessage) {
|
|
1774
1767
|
error = dataset.data.errorMessage;
|
|
1775
1768
|
}
|
|
@@ -1999,7 +1992,7 @@
|
|
|
1999
1992
|
getSortExpr() {
|
|
2000
1993
|
let sortExp;
|
|
2001
1994
|
let pagingOptions;
|
|
2002
|
-
if (this.datasource
|
|
1995
|
+
if (this.datasource?.execute(i2.DataSource.Operation.IS_PAGEABLE)) {
|
|
2003
1996
|
pagingOptions = this.datasource.execute(i2.DataSource.Operation.GET_PAGING_OPTIONS);
|
|
2004
1997
|
sortExp = lodashEs.isEmpty(pagingOptions) ? '' : i4.getOrderByExpr(pagingOptions.sort);
|
|
2005
1998
|
}
|
|
@@ -2290,7 +2283,7 @@
|
|
|
2290
2283
|
}
|
|
2291
2284
|
onDataSourceChange() {
|
|
2292
2285
|
this.fieldDefs.forEach(col => {
|
|
2293
|
-
i2.triggerFn(col.onDataSourceChange
|
|
2286
|
+
i2.triggerFn(col.onDataSourceChange?.bind(col));
|
|
2294
2287
|
});
|
|
2295
2288
|
}
|
|
2296
2289
|
refreshRowFilterDataFromDataset() {
|
|
@@ -2298,7 +2291,7 @@
|
|
|
2298
2291
|
return;
|
|
2299
2292
|
}
|
|
2300
2293
|
this.fieldDefs.forEach(col => {
|
|
2301
|
-
i2.triggerFn(col.loadFilterData
|
|
2294
|
+
i2.triggerFn(col.loadFilterData?.bind(col));
|
|
2302
2295
|
});
|
|
2303
2296
|
}
|
|
2304
2297
|
clearActionRowVars() {
|
|
@@ -2348,10 +2341,8 @@
|
|
|
2348
2341
|
return;
|
|
2349
2342
|
}
|
|
2350
2343
|
}
|
|
2351
|
-
else {
|
|
2352
|
-
|
|
2353
|
-
return;
|
|
2354
|
-
}
|
|
2344
|
+
else if (!tableColumn.pcDisplay) {
|
|
2345
|
+
return;
|
|
2355
2346
|
}
|
|
2356
2347
|
if (tableColumn['primary-key']) {
|
|
2357
2348
|
this.primaryKey.push(tableColumn.field);
|
|
@@ -2536,13 +2527,13 @@
|
|
|
2536
2527
|
this._pageLoad = true;
|
|
2537
2528
|
}
|
|
2538
2529
|
}
|
|
2539
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2540
|
-
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2530
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableComponent, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.EnvironmentInjector }, { token: i1__namespace.FormBuilder }, { token: i2__namespace.App }, { token: i2__namespace.DynamicComponentRefProvider }, { token: i2__namespace.StatePersistence }, { token: i2__namespace.PaginationService }, { token: i2__namespace.Viewport }, { token: i3__namespace.ListComponent, optional: true }, { token: 'dataset.bind', attribute: true }, { token: 'datasource.bind', attribute: true }, { token: 'readonlygrid', attribute: true }, { token: i0__namespace.NgZone }, { token: i4__namespace.TrustAsPipe }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
|
|
2531
|
+
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: TableComponent, isStandalone: true, selector: "[wmTable]", host: { listeners: { "keypress": "onKeyPress($event)" } }, providers: [
|
|
2541
2532
|
i4.provideAs(TableComponent, i1.NG_VALUE_ACCESSOR, true),
|
|
2542
2533
|
i4.provideAsWidgetRef(TableComponent)
|
|
2543
2534
|
], queries: [{ propertyName: "rowExpansionTmpl", first: true, predicate: ["rowExpansionTmpl"], descendants: true }, { propertyName: "rowActionTmpl", predicate: ["rowActionTmpl"], descendants: true }, { propertyName: "filterTmpl", predicate: ["filterTmpl"], descendants: true }, { propertyName: "inlineWidgetTmpl", predicate: ["inlineWidgetTmpl"], descendants: true }, { propertyName: "inlineWidgetNewTmpl", predicate: ["inlineWidgetTmplNew"], descendants: true }, { propertyName: "customExprTmpl", predicate: ["customExprTmpl"], descendants: true }, { propertyName: "rowExpansionActionTmpl", predicate: ["rowExpansionActionTmpl"], descendants: true }], viewQueries: [{ propertyName: "dataNavigator", first: true, predicate: pagination.PaginationComponent, descendants: true, static: true }, { propertyName: "_tableElement", first: true, predicate: ["datagridElement"], descendants: true, static: true }, { propertyName: "rowActionsViewRef", first: true, predicate: ["rowActionsView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "filterViewRef", first: true, predicate: ["multiColumnFilterView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "inlineEditViewRef", first: true, predicate: ["inlineEditView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "inlineEditNewViewRef", first: true, predicate: ["inlineEditNewView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "customExprViewRef", first: true, predicate: ["customExprView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "rowDetailViewRef", first: true, predicate: ["rowDetailView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "rowExpansionActionViewRef", first: true, predicate: ["rowExpansionActionView"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "dynamicTableRef", first: true, predicate: ["dynamicTable"], descendants: true, read: i0.ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "@if (title || subheading || iconclass || iconurl || exportOptions.length || _actions.header.length) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n @if (iconclass || iconurl) {\n <wm-app-icon [iconclass]=\"iconclass\" [iconurl]=\"iconurl\" [iconClasses]=\"iconurl ? 'panel-image-icon' : 'panel-icon'\" alt=\"Table icon\"></wm-app-icon>\n }\n </div>\n <div class=\"pull-left\">\n <div class=\"heading\" [innerHTML]=\"title\"></div>\n <div class=\"description\" [innerHTML]=\"subheading\"></div>\n </div>\n @if (exportOptions.length || _actions.header.length) {\n <div class=\"panel-actions app-datagrid-actions\">\n @for (btn of _actions.header; track btn; let index = $index) {\n <ng-container\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_header_' + index, {btn:btn})\">\n </ng-container>\n }\n @if (exportOptions.length) {\n <div wmMenu dropdown caption.bind=\"appLocale.LABEL_EXPORT\" autoclose=\"always\" attr.name=\"{{name}}-export\"\n dataset.bind=\"exportOptions\" select.event=\"export($item)\" menuposition=\"down,left\"></div>\n }\n </div>\n }\n </h3>\n </div>\n}\n<div class=\"app-datagrid\" #datagridElement></div>\n\n<div class=\"panel-footer clearfix\" [hidden]=\"!_actions.footer.length && (!shownavigation || (onDemandLoad && dataNavigator.isDisableNext)) \">\n <div class=\"app-datagrid-paginator\" [hidden]=\"(!dataNavigator?.dataSize && !dataNavigator.datasource?.pagination?.next) || !shownavigation || (onDemandLoad && dataNavigator.isDisableNext)\">\n <nav wmPagination show.bind=\"shownavigation\" navigationalign.bind=\"navigationalign\"\n navigationsize.bind=\"navigationSize\"\n navigation.bind=\"navControls\" showrecordcount.bind=\"showrecordcount\" maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\" directionlinks.bind=\"directionlinks\"></nav>\n </div>\n @if (_actions.footer.length) {\n <div class=\"app-datagrid-actions\">\n @for (btn of _actions.footer; track btn; let index = $index) {\n <ng-container\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_footer_' + index, {btn:btn})\">\n </ng-container>\n }\n </div>\n }\n</div>\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n type=\"button\" shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\" [attr.aria-label]=\"btn.displayName\" disabled.bind=\"btn.disabled\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></a>\n</ng-template>\n\n<div hidden>\n <ng-container #multiColumnFilterView></ng-container>\n\n <ng-container #inlineEditView></ng-container>\n\n <ng-container #inlineEditNewView></ng-container>\n\n <ng-container #rowActionsView></ng-container>\n\n <ng-container #rowExpansionActionView></ng-container>\n\n <ng-container #customExprView></ng-container>\n\n <ng-container #dynamicTable></ng-container>\n\n <ng-container #rowDetailView></ng-container>\n\n <div class=\"dynamic-table-container\"></div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: i5.CommonModule }, { kind: "directive", type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: anchor.AnchorComponent, selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }, { kind: "component", type: pagination.PaginationComponent, selector: "[wmPagination]", outputs: ["resultEmitter", "maxResultsEmitter"] }, { kind: "component", type: button.ButtonComponent, selector: "button[wmButton]", exportAs: ["wmButton"] }, { kind: "ngmodule", type: i6.BsDropdownModule }, { kind: "directive", type: i6__namespace.BsDropdownDirective, selector: "[bsDropdown], [dropdown]", inputs: ["placement", "triggers", "container", "dropup", "autoClose", "isAnimated", "insideClick", "isDisabled", "isOpen"], outputs: ["isOpenChange", "onShown", "onHidden"], exportAs: ["bs-dropdown"] }, { kind: "component", type: menu.MenuComponent, selector: "[wmMenu]" }, { kind: "component", type: i4.WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }] }); }
|
|
2544
2535
|
}
|
|
2545
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2536
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableComponent, decorators: [{
|
|
2546
2537
|
type: i0.Component,
|
|
2547
2538
|
args: [{ standalone: true, imports: [i5.CommonModule, anchor.AnchorComponent, pagination.PaginationComponent, button.ButtonComponent, i6.BsDropdownModule, menu.MenuComponent, i4.WmAppIconComponent], selector: '[wmTable]', providers: [
|
|
2548
2539
|
i4.provideAs(TableComponent, i1.NG_VALUE_ACCESSOR, true),
|
|
@@ -2694,7 +2685,7 @@
|
|
|
2694
2685
|
dataSource.execute(i2.DataSource.Operation.FETCH_DISTINCT_VALUES);
|
|
2695
2686
|
if (!this.table.isNavigationEnabled()) {
|
|
2696
2687
|
const sortInfo = this.table.sortInfo;
|
|
2697
|
-
const sortOptions = sortInfo
|
|
2688
|
+
const sortOptions = sortInfo?.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';
|
|
2698
2689
|
i4.refreshDataSource(dataSource, {
|
|
2699
2690
|
page: 1,
|
|
2700
2691
|
filterFields: this.table.getFilterFields(this.table.filterInfo),
|
|
@@ -2896,7 +2887,7 @@
|
|
|
2896
2887
|
deleteSuccessHandler(row, response, evt, callBack) {
|
|
2897
2888
|
/* check the response whether the data successfully deleted or not , if any error occurred show the
|
|
2898
2889
|
* corresponding error , other wise remove the row from grid */
|
|
2899
|
-
if (response
|
|
2890
|
+
if (response?.error) {
|
|
2900
2891
|
if (!this.table.onError) {
|
|
2901
2892
|
this.table.toggleMessage(true, 'error', this.table.errormessage || response.error);
|
|
2902
2893
|
}
|
|
@@ -3010,24 +3001,23 @@
|
|
|
3010
3001
|
this.triggerWMEvent('update');
|
|
3011
3002
|
return;
|
|
3012
3003
|
}
|
|
3013
|
-
if (evt
|
|
3004
|
+
if (evt?.target) {
|
|
3014
3005
|
this.table.callDataGridMethod('toggleEditRow', evt, { 'selectRow': true, action: 'edit' });
|
|
3015
3006
|
}
|
|
3007
|
+
else
|
|
3008
|
+
// For live form, call the update function with selected item
|
|
3009
|
+
if (this.table.editmode === 'form' || this.table.editmode === 'dialog') {
|
|
3010
|
+
row = evt || this.table.selectedItems[0];
|
|
3011
|
+
this.table.gridOptions.beforeRowUpdate(row);
|
|
3012
|
+
}
|
|
3016
3013
|
else {
|
|
3017
|
-
//
|
|
3018
|
-
|
|
3019
|
-
row =
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
setTimeout(() => {
|
|
3025
|
-
row = this.table.datagridElement.find('tr.active');
|
|
3026
|
-
if (row.length) {
|
|
3027
|
-
this.table.callDataGridMethod('toggleEditRow', undefined, { $row: row, action: 'edit' });
|
|
3028
|
-
}
|
|
3029
|
-
});
|
|
3030
|
-
}
|
|
3014
|
+
// Wait for the selected item to get updated
|
|
3015
|
+
setTimeout(() => {
|
|
3016
|
+
row = this.table.datagridElement.find('tr.active');
|
|
3017
|
+
if (row.length) {
|
|
3018
|
+
this.table.callDataGridMethod('toggleEditRow', undefined, { $row: row, action: 'edit' });
|
|
3019
|
+
}
|
|
3020
|
+
});
|
|
3031
3021
|
}
|
|
3032
3022
|
this.table._triggeredByUser = true;
|
|
3033
3023
|
// Fix for [WMS-23263]: set 'isDataUpdatedByUser' flag to false since dataset is not being updated from script
|
|
@@ -3054,7 +3044,7 @@
|
|
|
3054
3044
|
}
|
|
3055
3045
|
deleteRow(evt) {
|
|
3056
3046
|
let row;
|
|
3057
|
-
if (evt
|
|
3047
|
+
if (evt?.target) {
|
|
3058
3048
|
this.table.callDataGridMethod('deleteRowAndUpdateSelectAll', evt);
|
|
3059
3049
|
}
|
|
3060
3050
|
else {
|
|
@@ -3092,10 +3082,10 @@
|
|
|
3092
3082
|
this.dialogService = null;
|
|
3093
3083
|
this.app = null;
|
|
3094
3084
|
}
|
|
3095
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3096
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3085
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableCUDDirective, deps: [{ token: TableComponent, self: true }, { token: i2__namespace.AbstractDialogService }, { token: i2__namespace.App }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
3086
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableCUDDirective, isStandalone: true, selector: "[wmTableCUD]", ngImport: i0__namespace }); }
|
|
3097
3087
|
}
|
|
3098
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3088
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableCUDDirective, decorators: [{
|
|
3099
3089
|
type: i0.Directive,
|
|
3100
3090
|
args: [{
|
|
3101
3091
|
standalone: true,
|
|
@@ -3222,7 +3212,7 @@
|
|
|
3222
3212
|
};
|
|
3223
3213
|
// Set the filter fields as required by datasource
|
|
3224
3214
|
const setFilterFields = (filterFields, searchObj, visibleCols = []) => {
|
|
3225
|
-
const field = searchObj
|
|
3215
|
+
const field = searchObj?.field;
|
|
3226
3216
|
/*Set the filter options when a field/column has been selected.*/
|
|
3227
3217
|
if (field) {
|
|
3228
3218
|
filterFields[field] = {
|
|
@@ -3426,7 +3416,7 @@
|
|
|
3426
3416
|
}
|
|
3427
3417
|
// Returns data sorted using sortObj
|
|
3428
3418
|
getSortResult(data, sortObj) {
|
|
3429
|
-
if (sortObj
|
|
3419
|
+
if (sortObj?.direction) {
|
|
3430
3420
|
const sampleItem = lodashEs.find(data, (item) => {
|
|
3431
3421
|
const v = lodashEs.get(item, sortObj.field);
|
|
3432
3422
|
return typeof v === 'string' && !!v.trim();
|
|
@@ -3523,7 +3513,7 @@
|
|
|
3523
3513
|
$row.hide();
|
|
3524
3514
|
}
|
|
3525
3515
|
});
|
|
3526
|
-
if (data
|
|
3516
|
+
if (data?.length) {
|
|
3527
3517
|
this.table.callDataGridMethod('setStatus', 'ready');
|
|
3528
3518
|
// Select the first row after the search for single select
|
|
3529
3519
|
if (this.table.gridfirstrowselect && !this.table.multiselect) {
|
|
@@ -3543,7 +3533,7 @@
|
|
|
3543
3533
|
return;
|
|
3544
3534
|
}
|
|
3545
3535
|
const sortInfo = this.table.sortInfo;
|
|
3546
|
-
const sortOptions = sortInfo
|
|
3536
|
+
const sortOptions = sortInfo?.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';
|
|
3547
3537
|
const filterFields = this.getFilterFields(searchObj);
|
|
3548
3538
|
const logicalOp = this.getLogicalOperator(filterFields);
|
|
3549
3539
|
i4.refreshDataSource(this.table.datasource, {
|
|
@@ -3563,7 +3553,7 @@
|
|
|
3563
3553
|
this.table.gridOptions.sortInfo.field = sortObj.field;
|
|
3564
3554
|
this.table.gridOptions.sortInfo.direction = sortObj.direction;
|
|
3565
3555
|
this.table.sortInfo = i2.getClonedObject(sortObj);
|
|
3566
|
-
const sortOptions = sortObj
|
|
3556
|
+
const sortOptions = sortObj?.direction ? (sortObj.field + ' ' + sortObj.direction) : '';
|
|
3567
3557
|
const filterFields = this.getFilterFields(this.table.filterInfo);
|
|
3568
3558
|
const condition = this.getLogicalOperator(filterFields);
|
|
3569
3559
|
if (!statePersistenceTriggered && this.table.getConfiguredState() !== 'none') {
|
|
@@ -3576,7 +3566,7 @@
|
|
|
3576
3566
|
condition: condition
|
|
3577
3567
|
}).then((response) => {
|
|
3578
3568
|
i2.$appDigest();
|
|
3579
|
-
const data = (response
|
|
3569
|
+
const data = (response?.data) ? response.data : response;
|
|
3580
3570
|
this.table.invokeEventCallback('sort', { $event: e, $data: {
|
|
3581
3571
|
data,
|
|
3582
3572
|
sortDirection: sortObj.direction,
|
|
@@ -3651,11 +3641,11 @@
|
|
|
3651
3641
|
filterFields.push({ field: key, matchMode: val.matchMode, type: val.type, value: val.value });
|
|
3652
3642
|
});
|
|
3653
3643
|
}
|
|
3654
|
-
if (dataSource
|
|
3644
|
+
if (dataSource?.execute(i2.DataSource.Operation.SUPPORTS_SERVER_FILTER)) {
|
|
3655
3645
|
this.handleServerSideSearch(filterFields);
|
|
3656
3646
|
return;
|
|
3657
3647
|
}
|
|
3658
|
-
if (dataSource
|
|
3648
|
+
if (dataSource?.execute(i2.DataSource.Operation.IS_API_AWARE) && dataSource.execute(i2.DataSource.Operation.IS_PAGEABLE)) {
|
|
3659
3649
|
this.handleSinglePageSearch(filterFields);
|
|
3660
3650
|
}
|
|
3661
3651
|
else {
|
|
@@ -3681,7 +3671,7 @@
|
|
|
3681
3671
|
console.warn('Retain State handling on Widget ' + this.table.name + ' is not supported for current pagination type.');
|
|
3682
3672
|
}
|
|
3683
3673
|
// WMS-22387: For server side pagination, execute client side sorting
|
|
3684
|
-
if (dataSource
|
|
3674
|
+
if (dataSource?.execute(i2.DataSource.Operation.IS_SORTABLE)) {
|
|
3685
3675
|
this.handleSeverSideSort(searchSortObj, e, statePersistenceTriggered);
|
|
3686
3676
|
}
|
|
3687
3677
|
else {
|
|
@@ -3711,12 +3701,12 @@
|
|
|
3711
3701
|
}
|
|
3712
3702
|
// Method to show/hide clear icon in multi column filter
|
|
3713
3703
|
showClearIcon(fieldName) {
|
|
3714
|
-
const value = this.table.rowFilter[fieldName]
|
|
3704
|
+
const value = this.table.rowFilter[fieldName]?.value;
|
|
3715
3705
|
return i2.isDefined(value) && value !== '' && value !== null;
|
|
3716
3706
|
}
|
|
3717
3707
|
// Method clear the filter value in multi column filter
|
|
3718
3708
|
clearRowFilter(fieldName) {
|
|
3719
|
-
if (this.table.rowFilter
|
|
3709
|
+
if (this.table.rowFilter?.[fieldName]) {
|
|
3720
3710
|
this.table.columns[fieldName].resetFilter();
|
|
3721
3711
|
this.onRowFilterChange(fieldName);
|
|
3722
3712
|
}
|
|
@@ -3730,21 +3720,20 @@
|
|
|
3730
3720
|
this.table.columns[fieldName].resetFilter();
|
|
3731
3721
|
this.table.onRowFilterChange();
|
|
3732
3722
|
}
|
|
3723
|
+
else
|
|
3724
|
+
// If value is present, call the filter. Else, focus on the field
|
|
3725
|
+
if (i2.isDefined(this.table.rowFilter[fieldName].value) && this.table.rowFilter[fieldName].value !== '') {
|
|
3726
|
+
this.table.onRowFilterChange();
|
|
3727
|
+
}
|
|
3733
3728
|
else {
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
}
|
|
3738
|
-
else {
|
|
3739
|
-
setTimeout(() => {
|
|
3740
|
-
this.table.columns[fieldName].filterInstance.focus();
|
|
3741
|
-
});
|
|
3742
|
-
}
|
|
3729
|
+
setTimeout(() => {
|
|
3730
|
+
this.table.columns[fieldName].filterInstance.focus();
|
|
3731
|
+
});
|
|
3743
3732
|
}
|
|
3744
3733
|
}
|
|
3745
3734
|
// Method to get the updated values when filter on field is changed for multicolumn filter
|
|
3746
3735
|
getFilterOnFieldValues(filterDef) {
|
|
3747
|
-
if (!this.table.datasource
|
|
3736
|
+
if (!this.table.datasource?.execute(i2.DataSource.Operation.SUPPORTS_DISTINCT_API)) {
|
|
3748
3737
|
return;
|
|
3749
3738
|
}
|
|
3750
3739
|
const fieldName = filterDef.field;
|
|
@@ -3805,7 +3794,7 @@
|
|
|
3805
3794
|
}
|
|
3806
3795
|
const page = isSamePage ? this.table.dataNavigator.dn.currentPage : 1;
|
|
3807
3796
|
const sortInfo = this.table.sortInfo;
|
|
3808
|
-
const sortOptions = sortInfo
|
|
3797
|
+
const sortOptions = sortInfo?.direction ? (sortInfo.field + ' ' + sortInfo.direction) : '';
|
|
3809
3798
|
const filterFields = this.getFilterFields(this.table.filterInfo);
|
|
3810
3799
|
const logicalOp = this.getLogicalOperator(filterFields);
|
|
3811
3800
|
i4.refreshDataSource(this.table.datasource, {
|
|
@@ -3819,10 +3808,10 @@
|
|
|
3819
3808
|
// MEMORY LEAK FIX: Clear table reference
|
|
3820
3809
|
this.table = null;
|
|
3821
3810
|
}
|
|
3822
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3823
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3811
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableFilterSortDirective, deps: [{ token: TableComponent, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
3812
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableFilterSortDirective, isStandalone: true, selector: "[wmTableFilterSort]", ngImport: i0__namespace }); }
|
|
3824
3813
|
}
|
|
3825
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3814
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableFilterSortDirective, decorators: [{
|
|
3826
3815
|
type: i0.Directive,
|
|
3827
3816
|
args: [{
|
|
3828
3817
|
standalone: true,
|
|
@@ -3912,12 +3901,12 @@
|
|
|
3912
3901
|
// Call parent ngOnDestroy (BaseComponent has cleanup)
|
|
3913
3902
|
super.ngOnDestroy();
|
|
3914
3903
|
}
|
|
3915
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3916
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3904
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableActionDirective, deps: [{ token: i0__namespace.Injector }, { token: TableComponent, optional: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
3905
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableActionDirective, isStandalone: true, selector: "[wmTableAction]", providers: [
|
|
3917
3906
|
i4.provideAsWidgetRef(TableActionDirective)
|
|
3918
3907
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
3919
3908
|
}
|
|
3920
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3909
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableActionDirective, decorators: [{
|
|
3921
3910
|
type: i0.Directive,
|
|
3922
3911
|
args: [{
|
|
3923
3912
|
standalone: true,
|
|
@@ -4084,12 +4073,12 @@
|
|
|
4084
4073
|
// Call parent ngOnDestroy (BaseComponent has cleanup)
|
|
4085
4074
|
super.ngOnDestroy();
|
|
4086
4075
|
}
|
|
4087
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4088
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4076
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableColumnGroupDirective, deps: [{ token: i0__namespace.Injector }, { token: TableColumnGroupDirective, optional: true, skipSelf: true }, { token: TableComponent, optional: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
4077
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableColumnGroupDirective, isStandalone: true, selector: "[wmTableColumnGroup]", providers: [
|
|
4089
4078
|
i4.provideAsWidgetRef(TableColumnGroupDirective)
|
|
4090
4079
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
4091
4080
|
}
|
|
4092
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4081
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableColumnGroupDirective, decorators: [{
|
|
4093
4082
|
type: i0.Directive,
|
|
4094
4083
|
args: [{
|
|
4095
4084
|
standalone: true,
|
|
@@ -4187,7 +4176,7 @@
|
|
|
4187
4176
|
// when column is inside a group then consider the col index and not header index.
|
|
4188
4177
|
const colIndex = parseInt(this.getAttr('index'), 10);
|
|
4189
4178
|
const headerIndex = parseInt(this.getAttr('headerIndex'), 10);
|
|
4190
|
-
const fieldName = this.group
|
|
4179
|
+
const fieldName = this.group?.name;
|
|
4191
4180
|
// Register column with header config to create group structure
|
|
4192
4181
|
i4.setHeaderConfigForTable(this.table.headerConfig, {
|
|
4193
4182
|
field: this.field,
|
|
@@ -4222,7 +4211,7 @@
|
|
|
4222
4211
|
if (this._isRowFilter) {
|
|
4223
4212
|
// Listen on the inner row filter widget and setup the widget
|
|
4224
4213
|
const s1 = this._filterInstances.changes.subscribe((val) => {
|
|
4225
|
-
this.filterInstance = val.first
|
|
4214
|
+
this.filterInstance = val.first?.widget;
|
|
4226
4215
|
this.setUpFilterWidget();
|
|
4227
4216
|
});
|
|
4228
4217
|
this.registerDestroyListener(() => s1.unsubscribe());
|
|
@@ -4230,7 +4219,7 @@
|
|
|
4230
4219
|
if (this._isInlineEditable) {
|
|
4231
4220
|
const s2 = this._inlineInstances.changes.subscribe((val) => {
|
|
4232
4221
|
// Listen on the inner inline widget and setup the widget
|
|
4233
|
-
this.inlineInstance = val.first
|
|
4222
|
+
this.inlineInstance = val.first?.widget;
|
|
4234
4223
|
this.fieldValidations.formwidget = val.first;
|
|
4235
4224
|
this.table.registerFormField(this.binding, new FieldDef(this.inlineInstance));
|
|
4236
4225
|
this.setUpInlineWidget('inlineInstance');
|
|
@@ -4239,7 +4228,7 @@
|
|
|
4239
4228
|
if (this._isNewEditableRow) {
|
|
4240
4229
|
const s3 = this._inlineInstancesNew.changes.subscribe((val) => {
|
|
4241
4230
|
// Listen on the inner inline widget and setup the widget
|
|
4242
|
-
this.inlineInstanceNew = val.first
|
|
4231
|
+
this.inlineInstanceNew = val.first?.widget;
|
|
4243
4232
|
this.fieldValidations_new.formwidget = val.first;
|
|
4244
4233
|
this.setUpInlineWidget('inlineInstanceNew');
|
|
4245
4234
|
});
|
|
@@ -4279,7 +4268,7 @@
|
|
|
4279
4268
|
// Remove validators for the inline widget and set form to untouched
|
|
4280
4269
|
removeValidations() {
|
|
4281
4270
|
// Guard against component destruction or table/ngform being null
|
|
4282
|
-
if (this.isDestroyed || !this.table
|
|
4271
|
+
if (this.isDestroyed || !this.table?.ngform) {
|
|
4283
4272
|
return;
|
|
4284
4273
|
}
|
|
4285
4274
|
this.table.ngform.markAsUntouched();
|
|
@@ -4294,7 +4283,7 @@
|
|
|
4294
4283
|
// Apply default|sync|async|prop validators for QuickEdit new row form control
|
|
4295
4284
|
applyNewRowValidations() {
|
|
4296
4285
|
// Guard against component destruction or table/ngform being null
|
|
4297
|
-
if (this.isDestroyed || !this.table
|
|
4286
|
+
if (this.isDestroyed || !this.table?.ngform) {
|
|
4298
4287
|
return;
|
|
4299
4288
|
}
|
|
4300
4289
|
if (!this._checkNewEditableRowControl()) {
|
|
@@ -4314,7 +4303,7 @@
|
|
|
4314
4303
|
// Remove validators for the QuickEdit new row widget and set form to untouched
|
|
4315
4304
|
removeNewRowValidations() {
|
|
4316
4305
|
// Guard against component destruction or table/ngform being null
|
|
4317
|
-
if (this.isDestroyed || !this.table
|
|
4306
|
+
if (this.isDestroyed || !this.table?.ngform) {
|
|
4318
4307
|
return;
|
|
4319
4308
|
}
|
|
4320
4309
|
this.table.ngform.markAsUntouched();
|
|
@@ -4331,7 +4320,7 @@
|
|
|
4331
4320
|
}
|
|
4332
4321
|
addFormControl(suffix) {
|
|
4333
4322
|
// Guard against component destruction or table/ngform being null
|
|
4334
|
-
if (this.isDestroyed || !this.table
|
|
4323
|
+
if (this.isDestroyed || !this.table?.ngform) {
|
|
4335
4324
|
return;
|
|
4336
4325
|
}
|
|
4337
4326
|
const ctrlName = suffix ? (this.binding + suffix) : this.binding;
|
|
@@ -4339,7 +4328,7 @@
|
|
|
4339
4328
|
}
|
|
4340
4329
|
getFormControl(suffix) {
|
|
4341
4330
|
// Guard against component destruction or table/ngform being null
|
|
4342
|
-
if (this.isDestroyed || !this.table
|
|
4331
|
+
if (this.isDestroyed || !this.table?.ngform) {
|
|
4343
4332
|
return null;
|
|
4344
4333
|
}
|
|
4345
4334
|
const ctrlName = suffix ? (this.binding + suffix) : this.binding;
|
|
@@ -4398,7 +4387,7 @@
|
|
|
4398
4387
|
// When a row-filter widget value changes (multi-column filter),
|
|
4399
4388
|
// apply cascading filter so dependent filter widgets update their datasets.
|
|
4400
4389
|
// Example: filtering City should narrow down Street filter options.
|
|
4401
|
-
if (this.isDestroyed || !this.table
|
|
4390
|
+
if (this.isDestroyed || !this.table?.datasource) {
|
|
4402
4391
|
return;
|
|
4403
4392
|
}
|
|
4404
4393
|
// Don't cascade on null/undefined; clearing a filter should reset dependent datasets via their own refresh.
|
|
@@ -4410,7 +4399,7 @@
|
|
|
4410
4399
|
}
|
|
4411
4400
|
// Get of the active from control
|
|
4412
4401
|
get datavalue() {
|
|
4413
|
-
return this[this.activeControlType]
|
|
4402
|
+
return this[this.activeControlType]?.datavalue;
|
|
4414
4403
|
}
|
|
4415
4404
|
set datavalue(val) {
|
|
4416
4405
|
const control = this.getFormControl(this.activeControlType === 'inlineInstanceNew' ? '_new' : undefined);
|
|
@@ -4438,7 +4427,7 @@
|
|
|
4438
4427
|
widget: 'edit-widget-type'
|
|
4439
4428
|
});
|
|
4440
4429
|
}
|
|
4441
|
-
if (this.table.ngform
|
|
4430
|
+
if (this.table.ngform?.touched) {
|
|
4442
4431
|
this.activeControlType = widget;
|
|
4443
4432
|
if (widget === 'inlineInstance') {
|
|
4444
4433
|
this.notifyChanges();
|
|
@@ -4643,7 +4632,7 @@
|
|
|
4643
4632
|
this.ngclass = this['col-ng-class'];
|
|
4644
4633
|
this.formatpattern = this.formatpattern === 'toNumber' ? 'numberToString' : this.formatpattern;
|
|
4645
4634
|
this.searchable = (this.type === 'blob' || this.type === 'clob') ? false : this.searchable;
|
|
4646
|
-
this.showinfilter = (this.nativeElement.hasAttribute('showinfilter') && !(this.table
|
|
4635
|
+
this.showinfilter = (this.nativeElement.hasAttribute('showinfilter') && !(this.table?.isdynamictable)) ? this.nativeElement.getAttribute('showinfilter') : (this.show);
|
|
4647
4636
|
this.limit = this.limit ? +this.limit : undefined;
|
|
4648
4637
|
this.editWidgetType = this['edit-widget-type'] = this['edit-widget-type'] || i4.getEditModeWidget(this);
|
|
4649
4638
|
this.filterOn = this['filter-on'];
|
|
@@ -4677,7 +4666,7 @@
|
|
|
4677
4666
|
this.setProperty('displayName', this.displayName);
|
|
4678
4667
|
// Fix for [WMS-25934]: update the headerConfig list when there is change in display name
|
|
4679
4668
|
// when column is inside a group then consider the col index and not header index.
|
|
4680
|
-
const fieldName = this.group
|
|
4669
|
+
const fieldName = this.group?.name;
|
|
4681
4670
|
const index = fieldName ? parseInt(this.getAttr('index'), 10) : parseInt(this.getAttr('headerIndex'), 10);
|
|
4682
4671
|
// Register column with header config to create group structure
|
|
4683
4672
|
if (!this.table.headerConfig.some(value => this.field == value.field)) {
|
|
@@ -4813,12 +4802,12 @@
|
|
|
4813
4802
|
// Call parent ngOnDestroy
|
|
4814
4803
|
super.ngOnDestroy();
|
|
4815
4804
|
}
|
|
4816
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4817
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4805
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableColumnDirective, deps: [{ token: i0__namespace.Injector }, { token: i2__namespace.AppDefaults }, { token: TableComponent, optional: true }, { token: TableColumnGroupDirective, optional: true }, { token: 'filterdataset.bind', attribute: true }, { token: 'dataset.bind', attribute: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
4806
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableColumnDirective, isStandalone: true, selector: "[wmTableColumn]", providers: [
|
|
4818
4807
|
i4.provideAsWidgetRef(TableColumnDirective)
|
|
4819
4808
|
], queries: [{ propertyName: "customExprTmpl", first: true, predicate: ["customExprTmpl"], descendants: true }, { propertyName: "inlineWidthTempRef", first: true, predicate: ["inlineWidgetTmpl"], descendants: true }, { propertyName: "filterTemplateRef", first: true, predicate: ["filterTmpl"], descendants: true }, { propertyName: "_filterInstances", predicate: ["filterWidget"], descendants: true }, { propertyName: "_inlineInstances", predicate: ["inlineWidget"], descendants: true }, { propertyName: "_inlineInstancesNew", predicate: ["inlineWidgetNew"], descendants: true }], usesInheritance: true, ngImport: i0__namespace }); }
|
|
4820
4809
|
}
|
|
4821
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4810
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableColumnDirective, decorators: [{
|
|
4822
4811
|
type: i0.Directive,
|
|
4823
4812
|
args: [{
|
|
4824
4813
|
standalone: true,
|
|
@@ -4914,12 +4903,12 @@
|
|
|
4914
4903
|
// Call parent ngOnDestroy (BaseComponent has cleanup)
|
|
4915
4904
|
super.ngOnDestroy();
|
|
4916
4905
|
}
|
|
4917
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4918
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4906
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableRowDirective, deps: [{ token: i0__namespace.Injector }, { token: TableComponent, optional: true, skipSelf: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
4907
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableRowDirective, isStandalone: true, selector: "[wmTableRow]", providers: [
|
|
4919
4908
|
i4.provideAsWidgetRef(TableRowDirective)
|
|
4920
4909
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
4921
4910
|
}
|
|
4922
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4911
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableRowDirective, decorators: [{
|
|
4923
4912
|
type: i0.Directive,
|
|
4924
4913
|
args: [{
|
|
4925
4914
|
standalone: true,
|
|
@@ -5002,13 +4991,13 @@
|
|
|
5002
4991
|
// Call parent ngOnDestroy (BaseComponent has cleanup)
|
|
5003
4992
|
super.ngOnDestroy();
|
|
5004
4993
|
}
|
|
5005
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5006
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4994
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableRowActionDirective, deps: [{ token: i0__namespace.Injector }, { token: TableComponent, optional: true }, { token: i4.Context, self: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
4995
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: TableRowActionDirective, isStandalone: true, selector: "[wmTableRowAction]", providers: [
|
|
5007
4996
|
i4.provideAsWidgetRef(TableRowActionDirective),
|
|
5008
4997
|
{ provide: i4.Context, useFactory: () => { return {}; }, multi: true }
|
|
5009
4998
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
5010
4999
|
}
|
|
5011
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5000
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: TableRowActionDirective, decorators: [{
|
|
5012
5001
|
type: i0.Directive,
|
|
5013
5002
|
args: [{
|
|
5014
5003
|
standalone: true,
|