@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
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
let formObj = ngForm;
|
|
130
130
|
// If element is form, find out the first invalid element in this form
|
|
131
131
|
if ($ele.is('form')) {
|
|
132
|
-
formObj = ngForm
|
|
132
|
+
formObj = ngForm?.controls[$ele.attr('formControlName') || $ele.attr('name')];
|
|
133
133
|
if (formObj) {
|
|
134
134
|
return findInvalidElement($ele, formObj);
|
|
135
135
|
}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
}, 250);
|
|
283
283
|
}
|
|
284
284
|
ngAfterViewInit() {
|
|
285
|
-
if (this.parentForm
|
|
285
|
+
if (this.parentForm?.ngform && this.isParentList) {
|
|
286
286
|
// setting formArray control on ngform.
|
|
287
287
|
if (!lodashEs.get(this.parentForm.ngform.controls, this.parentList.name)) {
|
|
288
288
|
this.parentForm.ngform.setControl(this.parentList.name, new i1.FormArray([]));
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
}
|
|
299
299
|
findOperationType() { }
|
|
300
300
|
addInnerNgFormToForm(binding) {
|
|
301
|
-
if (this.parentForm
|
|
301
|
+
if (this.parentForm?.ngform) {
|
|
302
302
|
// handling as formArray when parent is list. Hence returning here from adding to parentForm again.
|
|
303
303
|
if (this.isParentList) {
|
|
304
304
|
return;
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
updateFieldSource() {
|
|
458
|
-
if (this.formdatasource
|
|
458
|
+
if (this.formdatasource?.execute(i1$1.DataSource.Operation.IS_API_AWARE)) {
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
461
|
else if (this.formdatasource && !this.formdatasource.twoWayBinding) {
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
this.setValidationMsgs();
|
|
476
476
|
// Disable the form submit if form is in invalid state. For delete operation, do not check the validation.
|
|
477
477
|
if (this.operationType !== 'delete' && (this.validationtype === 'html' || this.validationtype === 'default')
|
|
478
|
-
&& this.ngform
|
|
478
|
+
&& this.ngform?.invalid) {
|
|
479
479
|
if (this.ngform.invalid) {
|
|
480
480
|
if (this.validationtype === 'default') {
|
|
481
481
|
this.highlightInvalidFields();
|
|
@@ -492,14 +492,14 @@
|
|
|
492
492
|
if (!$invalidEle.hasClass('app-search-input')) {
|
|
493
493
|
$invalidEle.focus();
|
|
494
494
|
}
|
|
495
|
-
const ngEle = $invalidForm
|
|
496
|
-
if (ngEle
|
|
495
|
+
const ngEle = $invalidForm?.controls[$invalidEle.attr('formControlName') || $invalidEle.attr('name')];
|
|
496
|
+
if (ngEle?.markAsTouched) {
|
|
497
497
|
ngEle.markAsTouched();
|
|
498
498
|
}
|
|
499
499
|
i1$1.$appDigest();
|
|
500
500
|
return true;
|
|
501
501
|
}
|
|
502
|
-
else if ($target
|
|
502
|
+
else if ($target?.length) {
|
|
503
503
|
$target.focus();
|
|
504
504
|
}
|
|
505
505
|
return true;
|
|
@@ -1178,7 +1178,7 @@
|
|
|
1178
1178
|
return this.operationType || this.findOperationType();
|
|
1179
1179
|
}
|
|
1180
1180
|
get dirty() {
|
|
1181
|
-
return this.ngform
|
|
1181
|
+
return this.ngform?.dirty;
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* This method sets the form state to pristine by internally calling angular markAsPristine method on the form
|
|
@@ -1197,16 +1197,16 @@
|
|
|
1197
1197
|
this.ngform.markAsDirty({ onlySelf: value });
|
|
1198
1198
|
}
|
|
1199
1199
|
get invalid() {
|
|
1200
|
-
return this.ngform
|
|
1200
|
+
return this.ngform?.invalid;
|
|
1201
1201
|
}
|
|
1202
1202
|
get touched() {
|
|
1203
|
-
return this.ngform
|
|
1203
|
+
return this.ngform?.touched;
|
|
1204
1204
|
}
|
|
1205
1205
|
get valid() {
|
|
1206
|
-
return this.ngform
|
|
1206
|
+
return this.ngform?.valid;
|
|
1207
1207
|
}
|
|
1208
1208
|
get pristine() {
|
|
1209
|
-
return this.ngform
|
|
1209
|
+
return this.ngform?.pristine;
|
|
1210
1210
|
}
|
|
1211
1211
|
/**
|
|
1212
1212
|
* This method sets the form state to touched by internally calling angular markAsTouched method on the form
|
|
@@ -1274,12 +1274,12 @@
|
|
|
1274
1274
|
this._debouncedSubmitForm = null;
|
|
1275
1275
|
super.ngOnDestroy();
|
|
1276
1276
|
}
|
|
1277
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1278
|
-
static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1277
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormComponent, deps: [{ token: i0__namespace.Injector }, { token: i0__namespace.EnvironmentInjector }, { token: i1__namespace.FormBuilder }, { token: i1$1__namespace.App }, { token: i1$1__namespace.AbstractDialogService }, { token: i1$1__namespace.DynamicComponentRefProvider }, { token: i0__namespace.NgZone }, { token: i3__namespace.ListComponent, optional: true }, { token: FormComponent, optional: true, skipSelf: true }, { token: i4__namespace.PrefabDirective, optional: true, skipSelf: true }, { token: i5__namespace.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__namespace.ɵɵFactoryTarget.Component }); }
|
|
1278
|
+
static { this.ɵcmp = i0__namespace.ɵɵ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: [
|
|
1279
1279
|
i5.provideAsWidgetRef(FormComponent)
|
|
1280
1280
|
], queries: [{ propertyName: "componentRefs", predicate: i5.WidgetRef, descendants: true }], viewQueries: [{ propertyName: "dynamicFormRef", first: true, predicate: ["dynamicForm"], descendants: true, read: i0.ViewContainerRef, static: true }, { propertyName: "messageRef", first: true, predicate: i5.MessageComponent, descendants: true }], usesInheritance: true, ngImport: i0__namespace, 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: i6.CommonModule }, { kind: "directive", type: i6__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: anchor.AnchorComponent, selector: "a[wmAnchor]", exportAs: ["wmAnchor"] }, { kind: "component", type: button.ButtonComponent, selector: "button[wmButton]", exportAs: ["wmButton"] }, { kind: "component", type: i5.MessageComponent, selector: "[wmMessage]", exportAs: ["wmMessage"] }, { kind: "component", type: i5.WmAppIconComponent, selector: "wm-app-icon", inputs: ["icon", "iconclass", "iconurl", "defaultIconClass", "defaultClasses", "iconStyle", "alt"] }, { kind: "pipe", type: i5.FilterPipe, name: "filter" }] }); }
|
|
1281
1281
|
}
|
|
1282
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1282
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormComponent, decorators: [{
|
|
1283
1283
|
type: i0.Component,
|
|
1284
1284
|
args: [{ standalone: true, imports: [i6.CommonModule, i5.FilterPipe, anchor.AnchorComponent, button.ButtonComponent, i5.MessageComponent, i5.WmAppIconComponent], selector: 'form[wmForm]', providers: [
|
|
1285
1285
|
i5.provideAsWidgetRef(FormComponent)
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
if (!fieldName) {
|
|
1379
1379
|
return undefined;
|
|
1380
1380
|
}
|
|
1381
|
-
return this.ngform
|
|
1381
|
+
return this.ngform?.controls[fieldName];
|
|
1382
1382
|
}
|
|
1383
1383
|
addControl(fieldName) {
|
|
1384
1384
|
this.ngform.addControl(fieldName, this.createControl());
|
|
@@ -1400,10 +1400,10 @@
|
|
|
1400
1400
|
this.parent = null;
|
|
1401
1401
|
this.componentInstance = null;
|
|
1402
1402
|
}
|
|
1403
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1404
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1403
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormWidgetDirective, deps: [{ token: FormComponent, optional: true }, { token: table.TableComponent, optional: true }, { token: i5.WidgetRef, self: true }, { token: i1__namespace.FormBuilder }, { token: 'name', attribute: true }, { token: 'key', attribute: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
1404
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormWidgetDirective, isStandalone: true, selector: "[wmFormWidget]", ngImport: i0__namespace }); }
|
|
1405
1405
|
}
|
|
1406
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1406
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormWidgetDirective, decorators: [{
|
|
1407
1407
|
type: i0.Directive,
|
|
1408
1408
|
args: [{
|
|
1409
1409
|
standalone: true,
|
|
@@ -1512,12 +1512,12 @@
|
|
|
1512
1512
|
this.buttonDef = null;
|
|
1513
1513
|
super.ngOnDestroy();
|
|
1514
1514
|
}
|
|
1515
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1516
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1515
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormActionDirective, deps: [{ token: i0__namespace.Injector }, { token: FormComponent, optional: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
1516
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormActionDirective, isStandalone: true, selector: "[wmFormAction]", providers: [
|
|
1517
1517
|
i5.provideAsWidgetRef(FormActionDirective)
|
|
1518
1518
|
], usesInheritance: true, ngImport: i0__namespace }); }
|
|
1519
1519
|
}
|
|
1520
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1520
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormActionDirective, decorators: [{
|
|
1521
1521
|
type: i0.Directive,
|
|
1522
1522
|
args: [{
|
|
1523
1523
|
standalone: true,
|
|
@@ -1666,7 +1666,6 @@
|
|
|
1666
1666
|
}
|
|
1667
1667
|
_onBlurField($evt) {
|
|
1668
1668
|
$($evt.target).closest('.live-field').removeClass('active');
|
|
1669
|
-
this.nativeElement.querySelector('p.text-danger');
|
|
1670
1669
|
// Fix for [WMS-23959]: ADA issue - adding aria-describedby, aria-invalid, __errormsg attributes only when the form field is invalid , else removing the attributes
|
|
1671
1670
|
this.setAriaAttributes();
|
|
1672
1671
|
this._activeField = false;
|
|
@@ -1674,17 +1673,18 @@
|
|
|
1674
1673
|
this._clicktriggeredByUser = false;
|
|
1675
1674
|
}
|
|
1676
1675
|
// Expression to be evaluated in view mode of form field
|
|
1677
|
-
evaluateExpr(object, displayField, displayExpr) {
|
|
1678
|
-
|
|
1676
|
+
evaluateExpr(object, displayField, displayExpr, bindExpr) {
|
|
1677
|
+
// If dataset is not ready, object will be empty; nothing to evaluate yet
|
|
1678
|
+
if (!object || !Object.keys(object).length) {
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
if (!displayExpr && !displayField && !bindExpr) { // update the display Field to first key of the object if displayField, displayExpr and bindExpr are not provided
|
|
1679
1682
|
displayField = Object.keys(object)[0];
|
|
1680
|
-
// If dataset is not ready, display expression will not be defined
|
|
1681
|
-
if (!displayField) {
|
|
1682
|
-
return;
|
|
1683
|
-
}
|
|
1684
1683
|
}
|
|
1685
1684
|
return i5.getEvaluatedData(object, {
|
|
1686
1685
|
field: displayField,
|
|
1687
|
-
expression: displayExpr
|
|
1686
|
+
expression: displayExpr,
|
|
1687
|
+
bindExpression: bindExpr
|
|
1688
1688
|
}, this.viewParent);
|
|
1689
1689
|
}
|
|
1690
1690
|
// Expression to be evaluated in view mode of form field
|
|
@@ -1693,16 +1693,17 @@
|
|
|
1693
1693
|
const value = this.value;
|
|
1694
1694
|
const displayField = this.displayfield || this.displaylabel;
|
|
1695
1695
|
const displayExpr = this.displayexpression;
|
|
1696
|
+
const bindExpr = this.binddisplayexpression;
|
|
1696
1697
|
if (lodashEs.isObject(value)) {
|
|
1697
1698
|
if (lodashEs.isArray(value)) {
|
|
1698
1699
|
lodashEs.forEach(value, obj => {
|
|
1699
1700
|
if (lodashEs.isObject(obj)) {
|
|
1700
|
-
caption.push(this.evaluateExpr(obj, displayField, displayExpr));
|
|
1701
|
+
caption.push(this.evaluateExpr(obj, displayField, displayExpr, bindExpr));
|
|
1701
1702
|
}
|
|
1702
1703
|
});
|
|
1703
1704
|
}
|
|
1704
1705
|
else {
|
|
1705
|
-
caption.push(this.evaluateExpr(value, displayField, displayExpr));
|
|
1706
|
+
caption.push(this.evaluateExpr(value, displayField, displayExpr, bindExpr));
|
|
1706
1707
|
}
|
|
1707
1708
|
return lodashEs.join(caption, ',');
|
|
1708
1709
|
}
|
|
@@ -1735,7 +1736,7 @@
|
|
|
1735
1736
|
}
|
|
1736
1737
|
// Method to set the properties on inner form widget
|
|
1737
1738
|
setFormWidget(key, val) {
|
|
1738
|
-
if (this.formWidget
|
|
1739
|
+
if (this.formWidget?.widget) {
|
|
1739
1740
|
if (key === 'inputtype' && this.widgettype === i1$1.FormWidgetType.TEXT) {
|
|
1740
1741
|
key = 'type';
|
|
1741
1742
|
}
|
|
@@ -1820,7 +1821,7 @@
|
|
|
1820
1821
|
super.onStyleChange(key, nv, ov);
|
|
1821
1822
|
}
|
|
1822
1823
|
get datavalue() {
|
|
1823
|
-
return this.formWidget
|
|
1824
|
+
return this.formWidget?.datavalue;
|
|
1824
1825
|
}
|
|
1825
1826
|
set datavalue(val) {
|
|
1826
1827
|
if (this._control && this.widgettype !== i1$1.FormWidgetType.UPLOAD) {
|
|
@@ -1834,7 +1835,7 @@
|
|
|
1834
1835
|
this.datavalue = val;
|
|
1835
1836
|
}
|
|
1836
1837
|
get maxValue() {
|
|
1837
|
-
return this.formWidgetMax
|
|
1838
|
+
return this.formWidgetMax?.datavalue;
|
|
1838
1839
|
}
|
|
1839
1840
|
set maxValue(val) {
|
|
1840
1841
|
if (this._maxControl) {
|
|
@@ -1849,23 +1850,23 @@
|
|
|
1849
1850
|
}
|
|
1850
1851
|
// Get the reactive form control
|
|
1851
1852
|
get _control() {
|
|
1852
|
-
return this.ngform
|
|
1853
|
+
return this.ngform?.controls[this._fieldName];
|
|
1853
1854
|
}
|
|
1854
1855
|
// Get the reactive max form control
|
|
1855
1856
|
get _maxControl() {
|
|
1856
|
-
return this.ngform
|
|
1857
|
+
return this.ngform?.controls[this._fieldName + '_max'];
|
|
1857
1858
|
}
|
|
1858
1859
|
// Get the displayValue
|
|
1859
1860
|
get displayValue() {
|
|
1860
|
-
return this.formWidget
|
|
1861
|
+
return this.formWidget?.displayValue;
|
|
1861
1862
|
}
|
|
1862
1863
|
//Get the timestamp
|
|
1863
1864
|
get timestamp() {
|
|
1864
|
-
return this.formWidget
|
|
1865
|
+
return this.formWidget?.timestamp;
|
|
1865
1866
|
}
|
|
1866
1867
|
//Get the charlength
|
|
1867
1868
|
get charlength() {
|
|
1868
|
-
return this.formWidget
|
|
1869
|
+
return this.formWidget?.charlength;
|
|
1869
1870
|
}
|
|
1870
1871
|
// Create the reactive form control
|
|
1871
1872
|
createControl() {
|
|
@@ -1885,7 +1886,7 @@
|
|
|
1885
1886
|
this.app.notify('captionPositionAnimate', {
|
|
1886
1887
|
displayVal: hasValue,
|
|
1887
1888
|
nativeEl: captionEl,
|
|
1888
|
-
isSelectMultiple: this.formWidget
|
|
1889
|
+
isSelectMultiple: this.formWidget?.multiple,
|
|
1889
1890
|
isFocused: this._activeField
|
|
1890
1891
|
});
|
|
1891
1892
|
}
|
|
@@ -1947,7 +1948,7 @@
|
|
|
1947
1948
|
}
|
|
1948
1949
|
resetDisplayInput() {
|
|
1949
1950
|
if ((!i1$1.isDefined(this.value) || this.value === '')) {
|
|
1950
|
-
this.formWidget
|
|
1951
|
+
this.formWidget?.resetDisplayInput?.();
|
|
1951
1952
|
}
|
|
1952
1953
|
}
|
|
1953
1954
|
reset() {
|
|
@@ -2031,10 +2032,8 @@
|
|
|
2031
2032
|
this.widget.show = false;
|
|
2032
2033
|
}
|
|
2033
2034
|
}
|
|
2034
|
-
else {
|
|
2035
|
-
|
|
2036
|
-
this.widget.show = false;
|
|
2037
|
-
}
|
|
2035
|
+
else if (!this['pc-display']) {
|
|
2036
|
+
this.widget.show = false;
|
|
2038
2037
|
}
|
|
2039
2038
|
this.fieldDefConfig.displaname = this.displayname;
|
|
2040
2039
|
this.fieldDefConfig.show = this.show;
|
|
@@ -2103,14 +2102,14 @@
|
|
|
2103
2102
|
// Call parent ngOnDestroy (StylableComponent extends BaseComponent which has cleanup)
|
|
2104
2103
|
super.ngOnDestroy();
|
|
2105
2104
|
}
|
|
2106
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2107
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2105
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormFieldDirective, deps: [{ token: i0__namespace.Injector }, { token: FormComponent }, { token: i1__namespace.FormBuilder }, { token: i1$1__namespace.Viewport }, { token: i1$1__namespace.App }, { token: i3__namespace.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: i5.Context, self: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
2106
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: FormFieldDirective, isStandalone: true, selector: "[wmFormField]", host: { listeners: { "keydown": "onKeydownHandler($event)", "click": "handleClick($event)" } }, providers: [
|
|
2108
2107
|
i5.provideAsWidgetRef(FormFieldDirective),
|
|
2109
2108
|
i5.provideAs(FormFieldDirective, i1.NG_VALUE_ACCESSOR, true),
|
|
2110
2109
|
{ provide: i5.Context, useFactory: () => { return {}; }, multi: true }
|
|
2111
2110
|
], 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__namespace }); }
|
|
2112
2111
|
}
|
|
2113
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2112
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: FormFieldDirective, decorators: [{
|
|
2114
2113
|
type: i0.Directive,
|
|
2115
2114
|
args: [{
|
|
2116
2115
|
standalone: true,
|
|
@@ -2335,10 +2334,10 @@
|
|
|
2335
2334
|
this.app = null;
|
|
2336
2335
|
this.dialogService = null;
|
|
2337
2336
|
}
|
|
2338
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2339
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2337
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveActionsDirective, deps: [{ token: i3.ListComponent, self: true }, { token: i1$1__namespace.App }, { token: i1$1__namespace.AbstractDialogService }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
2338
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveActionsDirective, isStandalone: true, selector: "[wmLiveActions]", ngImport: i0__namespace }); }
|
|
2340
2339
|
}
|
|
2341
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2340
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveActionsDirective, decorators: [{
|
|
2342
2341
|
type: i0.Directive,
|
|
2343
2342
|
args: [{
|
|
2344
2343
|
standalone: true,
|
|
@@ -2476,10 +2475,10 @@
|
|
|
2476
2475
|
this.eventSubscription();
|
|
2477
2476
|
}
|
|
2478
2477
|
}
|
|
2479
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2480
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2478
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DependsonDirective, deps: [{ token: 'dialogid', attribute: true }, { token: 'dependson', attribute: true }, { token: i1$1__namespace.AbstractDialogService }, { token: i1$1__namespace.App }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
2479
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: DependsonDirective, isStandalone: true, selector: "[dependson]", queries: [{ propertyName: "formChildren", predicate: FormComponent, descendants: true }], ngImport: i0__namespace }); }
|
|
2481
2480
|
}
|
|
2482
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2481
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: DependsonDirective, decorators: [{
|
|
2483
2482
|
type: i0.Directive,
|
|
2484
2483
|
args: [{
|
|
2485
2484
|
standalone: true,
|
|
@@ -2662,7 +2661,7 @@
|
|
|
2662
2661
|
if (isValid === false) {
|
|
2663
2662
|
return;
|
|
2664
2663
|
}
|
|
2665
|
-
if (isValid
|
|
2664
|
+
if (isValid?.error) {
|
|
2666
2665
|
this.form.toggleMessage(true, isValid.error, 'error', 'ERROR');
|
|
2667
2666
|
return;
|
|
2668
2667
|
}
|
|
@@ -2713,20 +2712,18 @@
|
|
|
2713
2712
|
matchMode = i5.getEmptyMatchMode(this.form.enableemptyfilter);
|
|
2714
2713
|
fieldValue = filterField._value;
|
|
2715
2714
|
}
|
|
2716
|
-
else {
|
|
2717
|
-
if (
|
|
2718
|
-
|
|
2719
|
-
fieldValue = JSON.parse(filterField._value);
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
else {
|
|
2723
|
-
fieldValue = filterField._value;
|
|
2715
|
+
else if (filterField.type === i1$1.DataType.BOOLEAN) {
|
|
2716
|
+
if (i1$1.isDefined(filterField._value) && filterField._value !== '') {
|
|
2717
|
+
fieldValue = JSON.parse(filterField._value);
|
|
2724
2718
|
}
|
|
2725
2719
|
}
|
|
2720
|
+
else {
|
|
2721
|
+
fieldValue = filterField._value;
|
|
2722
|
+
}
|
|
2726
2723
|
break;
|
|
2727
2724
|
case i1$1.FormWidgetType.CHECKBOXSET:
|
|
2728
2725
|
case i1$1.FormWidgetType.CHIPS:
|
|
2729
|
-
if (filterField._value
|
|
2726
|
+
if (filterField._value?.length) {
|
|
2730
2727
|
fieldValue = filterField._value;
|
|
2731
2728
|
}
|
|
2732
2729
|
break;
|
|
@@ -2828,10 +2825,10 @@
|
|
|
2828
2825
|
this._options = null;
|
|
2829
2826
|
this.orderBy = null;
|
|
2830
2827
|
}
|
|
2831
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2832
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2828
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveFilterDirective, deps: [{ token: FormComponent, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
2829
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveFilterDirective, isStandalone: true, selector: "[wmLiveFilter]", ngImport: i0__namespace }); }
|
|
2833
2830
|
}
|
|
2834
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2831
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveFilterDirective, decorators: [{
|
|
2835
2832
|
type: i0.Directive,
|
|
2836
2833
|
args: [{
|
|
2837
2834
|
standalone: true,
|
|
@@ -3092,7 +3089,7 @@
|
|
|
3092
3089
|
findOperationType() {
|
|
3093
3090
|
let operation;
|
|
3094
3091
|
let isPrimary = false;
|
|
3095
|
-
const sourceOperation = this.form.datasource
|
|
3092
|
+
const sourceOperation = this.form.datasource?.execute(i1$1.DataSource.Operation.GET_OPERATION_TYPE);
|
|
3096
3093
|
if (sourceOperation && sourceOperation !== 'read') {
|
|
3097
3094
|
return sourceOperation;
|
|
3098
3095
|
}
|
|
@@ -3230,7 +3227,7 @@
|
|
|
3230
3227
|
if (isValid === false) {
|
|
3231
3228
|
return;
|
|
3232
3229
|
}
|
|
3233
|
-
if (isValid
|
|
3230
|
+
if (isValid?.error) {
|
|
3234
3231
|
this.form.toggleMessage(true, isValid.error, 'error');
|
|
3235
3232
|
return;
|
|
3236
3233
|
}
|
|
@@ -3241,7 +3238,7 @@
|
|
|
3241
3238
|
}
|
|
3242
3239
|
}
|
|
3243
3240
|
// If operation is update, form is not touched and current data and previous data is same, Show no changes detected message
|
|
3244
|
-
if (this.form.operationType === i5.Live_Operations.UPDATE && this.form.ngform
|
|
3241
|
+
if (this.form.operationType === i5.Live_Operations.UPDATE && this.form.ngform?.pristine &&
|
|
3245
3242
|
(this.form.isSelected && lodashEs.isEqual(data, prevData))) {
|
|
3246
3243
|
this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
|
|
3247
3244
|
i1$1.$appDigest();
|
|
@@ -3311,10 +3308,10 @@
|
|
|
3311
3308
|
// MEMORY LEAK FIX: Clear form reference
|
|
3312
3309
|
this.form = null;
|
|
3313
3310
|
}
|
|
3314
|
-
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3315
|
-
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
3311
|
+
static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveFormDirective, deps: [{ token: FormComponent, self: true }, { token: i1$2__namespace.LiveTableComponent, optional: true }, { token: i5__namespace.ToDatePipe }, { token: i1$1__namespace.AbstractDialogService }, { token: 'formlayout', attribute: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
|
|
3312
|
+
static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LiveFormDirective, isStandalone: true, selector: "[wmLiveForm]", host: { listeners: { "keydown": "onKeydownHandler($event)" } }, ngImport: i0__namespace }); }
|
|
3316
3313
|
}
|
|
3317
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3314
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LiveFormDirective, decorators: [{
|
|
3318
3315
|
type: i0.Directive,
|
|
3319
3316
|
args: [{
|
|
3320
3317
|
standalone: true,
|