@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
|
@@ -117,7 +117,7 @@ const findInvalidElement = ($formEle, ngForm) => {
|
|
|
117
117
|
let formObj = ngForm;
|
|
118
118
|
// If element is form, find out the first invalid element in this form
|
|
119
119
|
if ($ele.is('form')) {
|
|
120
|
-
formObj = ngForm
|
|
120
|
+
formObj = ngForm?.controls[$ele.attr('formControlName') || $ele.attr('name')];
|
|
121
121
|
if (formObj) {
|
|
122
122
|
return findInvalidElement($ele, formObj);
|
|
123
123
|
}
|
|
@@ -133,10 +133,8 @@ const getActiveElement = (element) => {
|
|
|
133
133
|
switch (widgetType) {
|
|
134
134
|
case 'select':
|
|
135
135
|
return element.querySelector('select');
|
|
136
|
-
break;
|
|
137
136
|
case 'textarea':
|
|
138
137
|
return element.querySelector('textarea');
|
|
139
|
-
break;
|
|
140
138
|
default:
|
|
141
139
|
return element.querySelector('input');
|
|
142
140
|
}
|
|
@@ -272,7 +270,7 @@ class FormComponent extends StylableComponent {
|
|
|
272
270
|
}, 250);
|
|
273
271
|
}
|
|
274
272
|
ngAfterViewInit() {
|
|
275
|
-
if (this.parentForm
|
|
273
|
+
if (this.parentForm?.ngform && this.isParentList) {
|
|
276
274
|
// setting formArray control on ngform.
|
|
277
275
|
if (!get(this.parentForm.ngform.controls, this.parentList.name)) {
|
|
278
276
|
this.parentForm.ngform.setControl(this.parentList.name, new FormArray([]));
|
|
@@ -288,7 +286,7 @@ class FormComponent extends StylableComponent {
|
|
|
288
286
|
}
|
|
289
287
|
findOperationType() { }
|
|
290
288
|
addInnerNgFormToForm(binding) {
|
|
291
|
-
if (this.parentForm
|
|
289
|
+
if (this.parentForm?.ngform) {
|
|
292
290
|
// handling as formArray when parent is list. Hence returning here from adding to parentForm again.
|
|
293
291
|
if (this.isParentList) {
|
|
294
292
|
return;
|
|
@@ -446,7 +444,7 @@ class FormComponent extends StylableComponent {
|
|
|
446
444
|
}
|
|
447
445
|
}
|
|
448
446
|
updateFieldSource() {
|
|
449
|
-
if (this.formdatasource
|
|
447
|
+
if (this.formdatasource?.execute(DataSource.Operation.IS_API_AWARE)) {
|
|
450
448
|
return;
|
|
451
449
|
}
|
|
452
450
|
else if (this.formdatasource && !this.formdatasource.twoWayBinding) {
|
|
@@ -466,7 +464,7 @@ class FormComponent extends StylableComponent {
|
|
|
466
464
|
this.setValidationMsgs();
|
|
467
465
|
// Disable the form submit if form is in invalid state. For delete operation, do not check the validation.
|
|
468
466
|
if (this.operationType !== 'delete' && (this.validationtype === 'html' || this.validationtype === 'default')
|
|
469
|
-
&& this.ngform
|
|
467
|
+
&& this.ngform?.invalid) {
|
|
470
468
|
if (this.ngform.invalid) {
|
|
471
469
|
if (this.validationtype === 'default') {
|
|
472
470
|
this.highlightInvalidFields();
|
|
@@ -483,14 +481,14 @@ class FormComponent extends StylableComponent {
|
|
|
483
481
|
if (!$invalidEle.hasClass('app-search-input')) {
|
|
484
482
|
$invalidEle.focus();
|
|
485
483
|
}
|
|
486
|
-
const ngEle = $invalidForm
|
|
487
|
-
if (ngEle
|
|
484
|
+
const ngEle = $invalidForm?.controls[$invalidEle.attr('formControlName') || $invalidEle.attr('name')];
|
|
485
|
+
if (ngEle?.markAsTouched) {
|
|
488
486
|
ngEle.markAsTouched();
|
|
489
487
|
}
|
|
490
488
|
$appDigest();
|
|
491
489
|
return true;
|
|
492
490
|
}
|
|
493
|
-
else if ($target
|
|
491
|
+
else if ($target?.length) {
|
|
494
492
|
$target.focus();
|
|
495
493
|
}
|
|
496
494
|
return true;
|
|
@@ -1169,7 +1167,7 @@ class FormComponent extends StylableComponent {
|
|
|
1169
1167
|
return this.operationType || this.findOperationType();
|
|
1170
1168
|
}
|
|
1171
1169
|
get dirty() {
|
|
1172
|
-
return this.ngform
|
|
1170
|
+
return this.ngform?.dirty;
|
|
1173
1171
|
}
|
|
1174
1172
|
/**
|
|
1175
1173
|
* This method sets the form state to pristine by internally calling angular markAsPristine method on the form
|
|
@@ -1188,16 +1186,16 @@ class FormComponent extends StylableComponent {
|
|
|
1188
1186
|
this.ngform.markAsDirty({ onlySelf: value });
|
|
1189
1187
|
}
|
|
1190
1188
|
get invalid() {
|
|
1191
|
-
return this.ngform
|
|
1189
|
+
return this.ngform?.invalid;
|
|
1192
1190
|
}
|
|
1193
1191
|
get touched() {
|
|
1194
|
-
return this.ngform
|
|
1192
|
+
return this.ngform?.touched;
|
|
1195
1193
|
}
|
|
1196
1194
|
get valid() {
|
|
1197
|
-
return this.ngform
|
|
1195
|
+
return this.ngform?.valid;
|
|
1198
1196
|
}
|
|
1199
1197
|
get pristine() {
|
|
1200
|
-
return this.ngform
|
|
1198
|
+
return this.ngform?.pristine;
|
|
1201
1199
|
}
|
|
1202
1200
|
/**
|
|
1203
1201
|
* This method sets the form state to touched by internally calling angular markAsTouched method on the form
|
|
@@ -1265,12 +1263,12 @@ class FormComponent extends StylableComponent {
|
|
|
1265
1263
|
this._debouncedSubmitForm = null;
|
|
1266
1264
|
super.ngOnDestroy();
|
|
1267
1265
|
}
|
|
1268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1269
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormComponent, deps: [{ token: i0.Injector }, { token: i0.EnvironmentInjector }, { token: i1.FormBuilder }, { token: i1$1.App }, { token: i1$1.AbstractDialogService }, { token: i1$1.DynamicComponentRefProvider }, { token: i0.NgZone }, { token: i3.ListComponent, optional: true }, { token: FormComponent, optional: true, skipSelf: true }, { token: i4.PrefabDirective, optional: true, skipSelf: true }, { token: i5.PartialDirective, optional: true, skipSelf: true }, { token: 'beforesubmit.event', attribute: true }, { token: 'submit.event', attribute: true }, { token: 'beforerender.event', attribute: true }, { token: 'dataset.bind', attribute: true }, { token: 'formdata.bind', attribute: true }, { token: 'wmLiveForm', attribute: true }, { token: 'wmLiveFilter', attribute: true }, { token: 'data-role', attribute: true }, { token: 'key', attribute: true }, { token: 'name', attribute: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.21", type: FormComponent, isStandalone: true, selector: "form[wmForm]", host: { listeners: { "submit": "submit($event)", "reset": "onReset()", "keydown": "onKeydownHandler($event)" }, properties: { "action": "this.action" } }, providers: [
|
|
1270
1268
|
provideAsWidgetRef(FormComponent)
|
|
1271
1269
|
], queries: [{ propertyName: "componentRefs", predicate: WidgetRef, descendants: true }], viewQueries: [{ propertyName: "dynamicFormRef", first: true, predicate: ["dynamicForm"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "messageRef", first: true, predicate: MessageComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #content><ng-content></ng-content></ng-template>\n\n@if (formlayout === 'page') {\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n} @else {\n @if (!isLayoutDialog && (title || subheading || iconclass || iconurl || showButtons('header'))) {\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=\"Form 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 <div class=\"form-action panel-actions basic-btn-grp\">\n @for (btn of buttonArray | filter : 'position' : 'header'; track btn; let index = $index) {\n <ng-container\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('action_header_' + index, {btn:btn})\">\n </ng-container>\n }\n @if (collapsible) {\n <button type=\"button\" class=\"app-icon wi panel-action\" [title]=\"expanded? (appLocale?.LABEL_COLLAPSE||'Collapse'):(appLocale?.LABEL_EXPAND||'Expand')\"\n [ngClass]=\"expanded ? 'wi-minus': 'wi-plus'\" (click)=\"expandCollapsePanel();\"></button>\n }\n </div>\n </h3>\n </div>\n }\n <div class=\"panel-body\" [ngClass]=\"{'form-elements': isLayoutDialog, 'form-body': !isLayoutDialog}\" [class.hidden]=\"!expanded\">\n @if (!!statusMessage.caption) {\n <p wmMessage [attr.aria-hidden]=\"!statusMessage.caption\" [attr.aria-label]=\"statusMessage.caption\" caption.bind=\"statusMessage.caption\" type.bind=\"statusMessage.type\"></p>\n }\n <div [ngClass]=\"{'form-elements': !isLayoutDialog, 'form-content': isLayoutDialog}\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n <div class=\"basic-btn-grp form-action panel-footer clearfix\" [ngClass]=\"{'modal-footer': isLayoutDialog}\" [class.hidden]=\"!expanded || !showButtons('footer')\">\n @for (btn of buttonArray | filter : 'position' : 'footer'; track btn; let index = $index) {\n <ng-container\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('action_footer_' + index, {btn:btn})\">\n </ng-container>\n }\n </div>\n </div>\n}\n\n\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton name=\"{{btn.key}}\" caption.bind=\"btn.displayName\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" show.bind=\"btn.show\"\n (click)=\"invokeActionEvent($event, btn.action)\" type.bind=\"btn.type\" hint.bind=\"btn.title\" shortcutkey.bind=\"btn.shortcutkey\" disabled.bind=\"ngform.status === 'PENDING' || btn.disabled\"\n tabindex.bind=\"btn.tabindex\" [attr.aria-label]=\"btn.displayName\" [class.hidden]=\"btn.updateMode ? !isUpdateMode : isUpdateMode\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor name=\"{{btn.key}}\" caption.bind=\"btn.displayName\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" show.bind=\"btn.show\"\n (click)=\"invokeActionEvent($event, btn.action)\" hint.bind=\"btn.title\" shortcutkey.bind=\"btn.shortcutkey\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\"\n tabindex.bind=\"btn.tabindex\" [class.hidden]=\"btn.updateMode ? !isUpdateMode : isUpdateMode\"></a>\n</ng-template>\n\n<ng-container #dynamicForm></ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AnchorComponent, selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }, { kind: "component", type: ButtonComponent, selector: "button[wmButton]", exportAs: ["wmButton"] }, { kind: "component", type: MessageComponent, selector: "[wmMessage]", exportAs: ["wmMessage"] }, { kind: "component", type: WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }, { kind: "pipe", type: FilterPipe, name: "filter" }] }); }
|
|
1272
1270
|
}
|
|
1273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1271
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormComponent, decorators: [{
|
|
1274
1272
|
type: Component,
|
|
1275
1273
|
args: [{ standalone: true, imports: [CommonModule, FilterPipe, AnchorComponent, ButtonComponent, MessageComponent, WmAppIconComponent], selector: 'form[wmForm]', providers: [
|
|
1276
1274
|
provideAsWidgetRef(FormComponent)
|
|
@@ -1369,7 +1367,7 @@ class FormWidgetDirective {
|
|
|
1369
1367
|
if (!fieldName) {
|
|
1370
1368
|
return undefined;
|
|
1371
1369
|
}
|
|
1372
|
-
return this.ngform
|
|
1370
|
+
return this.ngform?.controls[fieldName];
|
|
1373
1371
|
}
|
|
1374
1372
|
addControl(fieldName) {
|
|
1375
1373
|
this.ngform.addControl(fieldName, this.createControl());
|
|
@@ -1391,10 +1389,10 @@ class FormWidgetDirective {
|
|
|
1391
1389
|
this.parent = null;
|
|
1392
1390
|
this.componentInstance = null;
|
|
1393
1391
|
}
|
|
1394
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1395
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1392
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormWidgetDirective, deps: [{ token: FormComponent, optional: true }, { token: TableComponent, optional: true }, { token: WidgetRef, self: true }, { token: i1.FormBuilder }, { token: 'name', attribute: true }, { token: 'key', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1393
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormWidgetDirective, isStandalone: true, selector: "[wmFormWidget]", ngImport: i0 }); }
|
|
1396
1394
|
}
|
|
1397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormWidgetDirective, decorators: [{
|
|
1398
1396
|
type: Directive,
|
|
1399
1397
|
args: [{
|
|
1400
1398
|
standalone: true,
|
|
@@ -1503,12 +1501,12 @@ class FormActionDirective extends BaseComponent {
|
|
|
1503
1501
|
this.buttonDef = null;
|
|
1504
1502
|
super.ngOnDestroy();
|
|
1505
1503
|
}
|
|
1506
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1507
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1504
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormActionDirective, deps: [{ token: i0.Injector }, { token: FormComponent, optional: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1505
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormActionDirective, isStandalone: true, selector: "[wmFormAction]", providers: [
|
|
1508
1506
|
provideAsWidgetRef(FormActionDirective)
|
|
1509
1507
|
], usesInheritance: true, ngImport: i0 }); }
|
|
1510
1508
|
}
|
|
1511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormActionDirective, decorators: [{
|
|
1512
1510
|
type: Directive,
|
|
1513
1511
|
args: [{
|
|
1514
1512
|
standalone: true,
|
|
@@ -1657,7 +1655,6 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1657
1655
|
}
|
|
1658
1656
|
_onBlurField($evt) {
|
|
1659
1657
|
$($evt.target).closest('.live-field').removeClass('active');
|
|
1660
|
-
const ele = this.nativeElement.querySelector('p.text-danger');
|
|
1661
1658
|
// Fix for [WMS-23959]: ADA issue - adding aria-describedby, aria-invalid, __errormsg attributes only when the form field is invalid , else removing the attributes
|
|
1662
1659
|
this.setAriaAttributes();
|
|
1663
1660
|
this._activeField = false;
|
|
@@ -1665,17 +1662,18 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1665
1662
|
this._clicktriggeredByUser = false;
|
|
1666
1663
|
}
|
|
1667
1664
|
// Expression to be evaluated in view mode of form field
|
|
1668
|
-
evaluateExpr(object, displayField, displayExpr) {
|
|
1669
|
-
|
|
1665
|
+
evaluateExpr(object, displayField, displayExpr, bindExpr) {
|
|
1666
|
+
// If dataset is not ready, object will be empty; nothing to evaluate yet
|
|
1667
|
+
if (!object || !Object.keys(object).length) {
|
|
1668
|
+
return;
|
|
1669
|
+
}
|
|
1670
|
+
if (!displayExpr && !displayField && !bindExpr) { // update the display Field to first key of the object if displayField, displayExpr and bindExpr are not provided
|
|
1670
1671
|
displayField = Object.keys(object)[0];
|
|
1671
|
-
// If dataset is not ready, display expression will not be defined
|
|
1672
|
-
if (!displayField) {
|
|
1673
|
-
return;
|
|
1674
|
-
}
|
|
1675
1672
|
}
|
|
1676
1673
|
return getEvaluatedData(object, {
|
|
1677
1674
|
field: displayField,
|
|
1678
|
-
expression: displayExpr
|
|
1675
|
+
expression: displayExpr,
|
|
1676
|
+
bindExpression: bindExpr
|
|
1679
1677
|
}, this.viewParent);
|
|
1680
1678
|
}
|
|
1681
1679
|
// Expression to be evaluated in view mode of form field
|
|
@@ -1684,16 +1682,17 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1684
1682
|
const value = this.value;
|
|
1685
1683
|
const displayField = this.displayfield || this.displaylabel;
|
|
1686
1684
|
const displayExpr = this.displayexpression;
|
|
1685
|
+
const bindExpr = this.binddisplayexpression;
|
|
1687
1686
|
if (isObject(value)) {
|
|
1688
1687
|
if (isArray(value)) {
|
|
1689
1688
|
forEach(value, obj => {
|
|
1690
1689
|
if (isObject(obj)) {
|
|
1691
|
-
caption.push(this.evaluateExpr(obj, displayField, displayExpr));
|
|
1690
|
+
caption.push(this.evaluateExpr(obj, displayField, displayExpr, bindExpr));
|
|
1692
1691
|
}
|
|
1693
1692
|
});
|
|
1694
1693
|
}
|
|
1695
1694
|
else {
|
|
1696
|
-
caption.push(this.evaluateExpr(value, displayField, displayExpr));
|
|
1695
|
+
caption.push(this.evaluateExpr(value, displayField, displayExpr, bindExpr));
|
|
1697
1696
|
}
|
|
1698
1697
|
return join(caption, ',');
|
|
1699
1698
|
}
|
|
@@ -1726,7 +1725,7 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1726
1725
|
}
|
|
1727
1726
|
// Method to set the properties on inner form widget
|
|
1728
1727
|
setFormWidget(key, val) {
|
|
1729
|
-
if (this.formWidget
|
|
1728
|
+
if (this.formWidget?.widget) {
|
|
1730
1729
|
if (key === 'inputtype' && this.widgettype === FormWidgetType.TEXT) {
|
|
1731
1730
|
key = 'type';
|
|
1732
1731
|
}
|
|
@@ -1811,7 +1810,7 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1811
1810
|
super.onStyleChange(key, nv, ov);
|
|
1812
1811
|
}
|
|
1813
1812
|
get datavalue() {
|
|
1814
|
-
return this.formWidget
|
|
1813
|
+
return this.formWidget?.datavalue;
|
|
1815
1814
|
}
|
|
1816
1815
|
set datavalue(val) {
|
|
1817
1816
|
if (this._control && this.widgettype !== FormWidgetType.UPLOAD) {
|
|
@@ -1825,7 +1824,7 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1825
1824
|
this.datavalue = val;
|
|
1826
1825
|
}
|
|
1827
1826
|
get maxValue() {
|
|
1828
|
-
return this.formWidgetMax
|
|
1827
|
+
return this.formWidgetMax?.datavalue;
|
|
1829
1828
|
}
|
|
1830
1829
|
set maxValue(val) {
|
|
1831
1830
|
if (this._maxControl) {
|
|
@@ -1840,23 +1839,23 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1840
1839
|
}
|
|
1841
1840
|
// Get the reactive form control
|
|
1842
1841
|
get _control() {
|
|
1843
|
-
return this.ngform
|
|
1842
|
+
return this.ngform?.controls[this._fieldName];
|
|
1844
1843
|
}
|
|
1845
1844
|
// Get the reactive max form control
|
|
1846
1845
|
get _maxControl() {
|
|
1847
|
-
return this.ngform
|
|
1846
|
+
return this.ngform?.controls[this._fieldName + '_max'];
|
|
1848
1847
|
}
|
|
1849
1848
|
// Get the displayValue
|
|
1850
1849
|
get displayValue() {
|
|
1851
|
-
return this.formWidget
|
|
1850
|
+
return this.formWidget?.displayValue;
|
|
1852
1851
|
}
|
|
1853
1852
|
//Get the timestamp
|
|
1854
1853
|
get timestamp() {
|
|
1855
|
-
return this.formWidget
|
|
1854
|
+
return this.formWidget?.timestamp;
|
|
1856
1855
|
}
|
|
1857
1856
|
//Get the charlength
|
|
1858
1857
|
get charlength() {
|
|
1859
|
-
return this.formWidget
|
|
1858
|
+
return this.formWidget?.charlength;
|
|
1860
1859
|
}
|
|
1861
1860
|
// Create the reactive form control
|
|
1862
1861
|
createControl() {
|
|
@@ -1876,7 +1875,7 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1876
1875
|
this.app.notify('captionPositionAnimate', {
|
|
1877
1876
|
displayVal: hasValue,
|
|
1878
1877
|
nativeEl: captionEl,
|
|
1879
|
-
isSelectMultiple: this.formWidget
|
|
1878
|
+
isSelectMultiple: this.formWidget?.multiple,
|
|
1880
1879
|
isFocused: this._activeField
|
|
1881
1880
|
});
|
|
1882
1881
|
}
|
|
@@ -1938,7 +1937,7 @@ class FormFieldDirective extends StylableComponent {
|
|
|
1938
1937
|
}
|
|
1939
1938
|
resetDisplayInput() {
|
|
1940
1939
|
if ((!isDefined(this.value) || this.value === '')) {
|
|
1941
|
-
this.formWidget
|
|
1940
|
+
this.formWidget?.resetDisplayInput?.();
|
|
1942
1941
|
}
|
|
1943
1942
|
}
|
|
1944
1943
|
reset() {
|
|
@@ -2022,10 +2021,8 @@ class FormFieldDirective extends StylableComponent {
|
|
|
2022
2021
|
this.widget.show = false;
|
|
2023
2022
|
}
|
|
2024
2023
|
}
|
|
2025
|
-
else {
|
|
2026
|
-
|
|
2027
|
-
this.widget.show = false;
|
|
2028
|
-
}
|
|
2024
|
+
else if (!this['pc-display']) {
|
|
2025
|
+
this.widget.show = false;
|
|
2029
2026
|
}
|
|
2030
2027
|
this.fieldDefConfig.displaname = this.displayname;
|
|
2031
2028
|
this.fieldDefConfig.show = this.show;
|
|
@@ -2094,14 +2091,14 @@ class FormFieldDirective extends StylableComponent {
|
|
|
2094
2091
|
// Call parent ngOnDestroy (StylableComponent extends BaseComponent which has cleanup)
|
|
2095
2092
|
super.ngOnDestroy();
|
|
2096
2093
|
}
|
|
2097
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2098
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2094
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormFieldDirective, deps: [{ token: i0.Injector }, { token: FormComponent }, { token: i1.FormBuilder }, { token: i1$1.Viewport }, { token: i1$1.App }, { token: i3.ListComponent, optional: true }, { token: 'chipclass.bind', attribute: true }, { token: 'dataset.bind', attribute: true }, { token: 'displayexpression.bind', attribute: true }, { token: 'displaylabel.bind', attribute: true }, { token: 'widgettype', attribute: true }, { token: 'name', attribute: true }, { token: 'displayimagesrc.bind', attribute: true }, { token: 'key', attribute: true }, { token: 'is-range', attribute: true }, { token: 'pc-display', attribute: true }, { token: 'mobile-display', attribute: true }, { token: 'tablet-display', attribute: true }, { token: Context, self: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2095
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormFieldDirective, isStandalone: true, selector: "[wmFormField]", host: { listeners: { "keydown": "onKeydownHandler($event)", "click": "handleClick($event)" } }, providers: [
|
|
2099
2096
|
provideAsWidgetRef(FormFieldDirective),
|
|
2100
2097
|
provideAs(FormFieldDirective, NG_VALUE_ACCESSOR, true),
|
|
2101
2098
|
{ provide: Context, useFactory: () => { return {}; }, multi: true }
|
|
2102
2099
|
], queries: [{ propertyName: "formWidget", first: true, predicate: ["formWidget"], descendants: true, static: true }, { propertyName: "formWidgetMax", first: true, predicate: ["formWidgetMax"], descendants: true }], exportAs: ["wmFormField"], usesInheritance: true, ngImport: i0 }); }
|
|
2103
2100
|
}
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: FormFieldDirective, decorators: [{
|
|
2105
2102
|
type: Directive,
|
|
2106
2103
|
args: [{
|
|
2107
2104
|
standalone: true,
|
|
@@ -2326,10 +2323,10 @@ class LiveActionsDirective {
|
|
|
2326
2323
|
this.app = null;
|
|
2327
2324
|
this.dialogService = null;
|
|
2328
2325
|
}
|
|
2329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2330
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2326
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveActionsDirective, deps: [{ token: ListComponent, self: true }, { token: i1$1.App }, { token: i1$1.AbstractDialogService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2327
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveActionsDirective, isStandalone: true, selector: "[wmLiveActions]", ngImport: i0 }); }
|
|
2331
2328
|
}
|
|
2332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveActionsDirective, decorators: [{
|
|
2333
2330
|
type: Directive,
|
|
2334
2331
|
args: [{
|
|
2335
2332
|
standalone: true,
|
|
@@ -2467,10 +2464,10 @@ class DependsonDirective {
|
|
|
2467
2464
|
this.eventSubscription();
|
|
2468
2465
|
}
|
|
2469
2466
|
}
|
|
2470
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2471
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2467
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DependsonDirective, deps: [{ token: 'dialogid', attribute: true }, { token: 'dependson', attribute: true }, { token: i1$1.AbstractDialogService }, { token: i1$1.App }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2468
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: DependsonDirective, isStandalone: true, selector: "[dependson]", queries: [{ propertyName: "formChildren", predicate: FormComponent, descendants: true }], ngImport: i0 }); }
|
|
2472
2469
|
}
|
|
2473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: DependsonDirective, decorators: [{
|
|
2474
2471
|
type: Directive,
|
|
2475
2472
|
args: [{
|
|
2476
2473
|
standalone: true,
|
|
@@ -2654,7 +2651,7 @@ class LiveFilterDirective {
|
|
|
2654
2651
|
if (isValid === false) {
|
|
2655
2652
|
return;
|
|
2656
2653
|
}
|
|
2657
|
-
if (isValid
|
|
2654
|
+
if (isValid?.error) {
|
|
2658
2655
|
this.form.toggleMessage(true, isValid.error, 'error', 'ERROR');
|
|
2659
2656
|
return;
|
|
2660
2657
|
}
|
|
@@ -2705,20 +2702,18 @@ class LiveFilterDirective {
|
|
|
2705
2702
|
matchMode = getEmptyMatchMode(this.form.enableemptyfilter);
|
|
2706
2703
|
fieldValue = filterField._value;
|
|
2707
2704
|
}
|
|
2708
|
-
else {
|
|
2709
|
-
if (filterField.
|
|
2710
|
-
|
|
2711
|
-
fieldValue = JSON.parse(filterField._value);
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
|
-
else {
|
|
2715
|
-
fieldValue = filterField._value;
|
|
2705
|
+
else if (filterField.type === DataType.BOOLEAN) {
|
|
2706
|
+
if (isDefined(filterField._value) && filterField._value !== '') {
|
|
2707
|
+
fieldValue = JSON.parse(filterField._value);
|
|
2716
2708
|
}
|
|
2717
2709
|
}
|
|
2710
|
+
else {
|
|
2711
|
+
fieldValue = filterField._value;
|
|
2712
|
+
}
|
|
2718
2713
|
break;
|
|
2719
2714
|
case FormWidgetType.CHECKBOXSET:
|
|
2720
2715
|
case FormWidgetType.CHIPS:
|
|
2721
|
-
if (filterField._value
|
|
2716
|
+
if (filterField._value?.length) {
|
|
2722
2717
|
fieldValue = filterField._value;
|
|
2723
2718
|
}
|
|
2724
2719
|
break;
|
|
@@ -2820,10 +2815,10 @@ class LiveFilterDirective {
|
|
|
2820
2815
|
this._options = null;
|
|
2821
2816
|
this.orderBy = null;
|
|
2822
2817
|
}
|
|
2823
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2824
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveFilterDirective, deps: [{ token: FormComponent, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2819
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveFilterDirective, isStandalone: true, selector: "[wmLiveFilter]", ngImport: i0 }); }
|
|
2825
2820
|
}
|
|
2826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveFilterDirective, decorators: [{
|
|
2827
2822
|
type: Directive,
|
|
2828
2823
|
args: [{
|
|
2829
2824
|
standalone: true,
|
|
@@ -3084,7 +3079,7 @@ class LiveFormDirective {
|
|
|
3084
3079
|
findOperationType() {
|
|
3085
3080
|
let operation;
|
|
3086
3081
|
let isPrimary = false;
|
|
3087
|
-
const sourceOperation = this.form.datasource
|
|
3082
|
+
const sourceOperation = this.form.datasource?.execute(DataSource.Operation.GET_OPERATION_TYPE);
|
|
3088
3083
|
if (sourceOperation && sourceOperation !== 'read') {
|
|
3089
3084
|
return sourceOperation;
|
|
3090
3085
|
}
|
|
@@ -3222,7 +3217,7 @@ class LiveFormDirective {
|
|
|
3222
3217
|
if (isValid === false) {
|
|
3223
3218
|
return;
|
|
3224
3219
|
}
|
|
3225
|
-
if (isValid
|
|
3220
|
+
if (isValid?.error) {
|
|
3226
3221
|
this.form.toggleMessage(true, isValid.error, 'error');
|
|
3227
3222
|
return;
|
|
3228
3223
|
}
|
|
@@ -3233,7 +3228,7 @@ class LiveFormDirective {
|
|
|
3233
3228
|
}
|
|
3234
3229
|
}
|
|
3235
3230
|
// If operation is update, form is not touched and current data and previous data is same, Show no changes detected message
|
|
3236
|
-
if (this.form.operationType === Live_Operations.UPDATE && this.form.ngform
|
|
3231
|
+
if (this.form.operationType === Live_Operations.UPDATE && this.form.ngform?.pristine &&
|
|
3237
3232
|
(this.form.isSelected && isEqual(data, prevData))) {
|
|
3238
3233
|
this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
|
|
3239
3234
|
$appDigest();
|
|
@@ -3303,10 +3298,10 @@ class LiveFormDirective {
|
|
|
3303
3298
|
// MEMORY LEAK FIX: Clear form reference
|
|
3304
3299
|
this.form = null;
|
|
3305
3300
|
}
|
|
3306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3307
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveFormDirective, deps: [{ token: FormComponent, self: true }, { token: i1$2.LiveTableComponent, optional: true }, { token: i5.ToDatePipe }, { token: i1$1.AbstractDialogService }, { token: 'formlayout', attribute: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3302
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveFormDirective, isStandalone: true, selector: "[wmLiveForm]", host: { listeners: { "keydown": "onKeydownHandler($event)" } }, ngImport: i0 }); }
|
|
3308
3303
|
}
|
|
3309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0, type: LiveFormDirective, decorators: [{
|
|
3310
3305
|
type: Directive,
|
|
3311
3306
|
args: [{
|
|
3312
3307
|
standalone: true,
|