@wavemaker-ai/app-ng-runtime 1.0.0-rc.647469
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/.npmignore +2 -0
- package/build-task/advanced/carousel/carousel-template/carousel-template.build.d.ts +2 -0
- package/build-task/advanced/carousel/carousel.build.d.ts +2 -0
- package/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +2 -0
- package/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +2 -0
- package/build-task/advanced/login/login.build.d.ts +2 -0
- package/build-task/advanced/marquee/marquee.build.d.ts +2 -0
- package/build-task/basic/anchor/anchor.build.d.ts +2 -0
- package/build-task/basic/audio/audio.build.d.ts +2 -0
- package/build-task/basic/html/html.build.d.ts +2 -0
- package/build-task/basic/icon/icon.build.d.ts +2 -0
- package/build-task/basic/iframe/iframe.build.d.ts +2 -0
- package/build-task/basic/label/label.build.d.ts +2 -0
- package/build-task/basic/picture/picture.build.d.ts +2 -0
- package/build-task/basic/progress/progress-bar/progress-bar.build.d.ts +2 -0
- package/build-task/basic/progress/progress-circle/progress-circle.build.d.ts +2 -0
- package/build-task/basic/rich-text-editor/rich-text-editor.build.d.ts +2 -0
- package/build-task/basic/search/search.build.d.ts +2 -0
- package/build-task/basic/spinner/spinner.build.d.ts +2 -0
- package/build-task/basic/tree/tree.build.d.ts +1 -0
- package/build-task/basic/video/video.build.d.ts +2 -0
- package/build-task/bundles/index.umd.js +3106 -0
- package/build-task/chart/chart.build.d.ts +2 -0
- package/build-task/containers/accordion/accordion-pane/accordion-pane.build.d.ts +2 -0
- package/build-task/containers/accordion/accordion.build.d.ts +2 -0
- package/build-task/containers/container.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid-column/layout-grid-column.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid-row/layout-grid-row.build.d.ts +2 -0
- package/build-task/containers/layout-grid/layout-grid.build.d.ts +2 -0
- package/build-task/containers/linear-layout/linear-layout-item/linear-layout-item.build.d.ts +2 -0
- package/build-task/containers/linear-layout/linear-layout.build.d.ts +2 -0
- package/build-task/containers/panel/panel.build.d.ts +2 -0
- package/build-task/containers/repeat-template.build.d.ts +2 -0
- package/build-task/containers/segmented-control/segment-content/segment-content.build.d.ts +2 -0
- package/build-task/containers/segmented-control/segmented-control.build.d.ts +2 -0
- package/build-task/containers/tabs/tab-pane/tab-pane.build.d.ts +2 -0
- package/build-task/containers/tabs/tabs.build.d.ts +2 -0
- package/build-task/containers/tile/tile.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard-action/wizard-action.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard-step/wizard-step.build.d.ts +2 -0
- package/build-task/containers/wizard/wizard.build.d.ts +2 -0
- package/build-task/data/card/card-actions/card-actions.build.d.ts +2 -0
- package/build-task/data/card/card-content/card-content.build.d.ts +2 -0
- package/build-task/data/card/card-footer/card-footer.build.d.ts +2 -0
- package/build-task/data/card/card.build.d.ts +2 -0
- package/build-task/data/form/form-action/form-action.build.d.ts +2 -0
- package/build-task/data/form/form-field/form-field.build.d.ts +2 -0
- package/build-task/data/form/form.build.d.ts +2 -0
- package/build-task/data/list/list.build.d.ts +2 -0
- package/build-task/data/live-table/live-table.build.d.ts +2 -0
- package/build-task/data/media-list/media-list-item/media-list-item.build.d.ts +2 -0
- package/build-task/data/media-list/media-list.build.d.ts +2 -0
- package/build-task/data/pagination/pagination.build.d.ts +2 -0
- package/build-task/data/table/table-action/table-action.build.d.ts +2 -0
- package/build-task/data/table/table-column/table-column.build.d.ts +2 -0
- package/build-task/data/table/table-column-group/table-column-group.build.d.ts +2 -0
- package/build-task/data/table/table-row/table-row.build.d.ts +2 -0
- package/build-task/data/table/table-row-action/table-row-action.build.d.ts +2 -0
- package/build-task/data/table/table.build.d.ts +2 -0
- package/build-task/device/barcode-scanner/barcode-scanner.build.d.ts +2 -0
- package/build-task/device/camera/camera.build.d.ts +2 -0
- package/build-task/dialogs/alert-dialog/alert-dialog.build.d.ts +2 -0
- package/build-task/dialogs/base/dialog-footer/dialog-footer.build.d.ts +2 -0
- package/build-task/dialogs/confirm-dialog/confirm-dialog.build.d.ts +2 -0
- package/build-task/dialogs/design-dialog/dialog.build.d.ts +2 -0
- package/build-task/dialogs/iframe-dialog/iframe-dialog.build.d.ts +2 -0
- package/build-task/dialogs/login-dialog/login-dialog.build.d.ts +2 -0
- package/build-task/dialogs/partial-dialog/partial-dialog.build.d.ts +2 -0
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +31 -0
- package/build-task/esm2022/advanced/carousel/carousel.build.mjs +45 -0
- package/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +15 -0
- package/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +26 -0
- package/build-task/esm2022/advanced/login/login.build.mjs +15 -0
- package/build-task/esm2022/advanced/marquee/marquee.build.mjs +10 -0
- package/build-task/esm2022/basic/anchor/anchor.build.mjs +15 -0
- package/build-task/esm2022/basic/audio/audio.build.mjs +10 -0
- package/build-task/esm2022/basic/html/html.build.mjs +15 -0
- package/build-task/esm2022/basic/icon/icon.build.mjs +10 -0
- package/build-task/esm2022/basic/iframe/iframe.build.mjs +10 -0
- package/build-task/esm2022/basic/label/label.build.mjs +25 -0
- package/build-task/esm2022/basic/picture/picture.build.mjs +14 -0
- package/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +35 -0
- package/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +15 -0
- package/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +15 -0
- package/build-task/esm2022/basic/search/search.build.mjs +11 -0
- package/build-task/esm2022/basic/spinner/spinner.build.mjs +15 -0
- package/build-task/esm2022/basic/tree/tree.build.mjs +9 -0
- package/build-task/esm2022/basic/video/video.build.mjs +10 -0
- package/build-task/esm2022/chart/chart.build.mjs +10 -0
- package/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +15 -0
- package/build-task/esm2022/containers/accordion/accordion.build.mjs +40 -0
- package/build-task/esm2022/containers/container.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid-column/layout-grid-column.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid-row/layout-grid-row.build.mjs +10 -0
- package/build-task/esm2022/containers/layout-grid/layout-grid.build.mjs +10 -0
- package/build-task/esm2022/containers/linear-layout/linear-layout-item/linear-layout-item.build.mjs +10 -0
- package/build-task/esm2022/containers/linear-layout/linear-layout.build.mjs +21 -0
- package/build-task/esm2022/containers/panel/panel.build.mjs +21 -0
- package/build-task/esm2022/containers/repeat-template.build.mjs +26 -0
- package/build-task/esm2022/containers/segmented-control/segment-content/segment-content.build.mjs +10 -0
- package/build-task/esm2022/containers/segmented-control/segmented-control.build.mjs +10 -0
- package/build-task/esm2022/containers/tabs/tab-pane/tab-pane.build.mjs +10 -0
- package/build-task/esm2022/containers/tabs/tabs.build.mjs +40 -0
- package/build-task/esm2022/containers/tile/tile.build.mjs +10 -0
- package/build-task/esm2022/containers/wizard/wizard-action/wizard-action.build.mjs +10 -0
- package/build-task/esm2022/containers/wizard/wizard-step/wizard-step.build.mjs +16 -0
- package/build-task/esm2022/containers/wizard/wizard.build.mjs +39 -0
- package/build-task/esm2022/data/card/card-actions/card-actions.build.mjs +10 -0
- package/build-task/esm2022/data/card/card-content/card-content.build.mjs +10 -0
- package/build-task/esm2022/data/card/card-footer/card-footer.build.mjs +10 -0
- package/build-task/esm2022/data/card/card.build.mjs +10 -0
- package/build-task/esm2022/data/form/form-action/form-action.build.mjs +12 -0
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +173 -0
- package/build-task/esm2022/data/form/form.build.mjs +161 -0
- package/build-task/esm2022/data/list/list.build.mjs +89 -0
- package/build-task/esm2022/data/live-table/live-table.build.mjs +21 -0
- package/build-task/esm2022/data/media-list/media-list-item/media-list-item.build.mjs +10 -0
- package/build-task/esm2022/data/media-list/media-list.build.mjs +57 -0
- package/build-task/esm2022/data/pagination/pagination.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-action/table-action.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +294 -0
- package/build-task/esm2022/data/table/table-column-group/table-column-group.build.mjs +10 -0
- package/build-task/esm2022/data/table/table-row/table-row.build.mjs +34 -0
- package/build-task/esm2022/data/table/table-row-action/table-row-action.build.mjs +41 -0
- package/build-task/esm2022/data/table/table.build.mjs +86 -0
- package/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +15 -0
- package/build-task/esm2022/device/camera/camera.build.mjs +15 -0
- package/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/base/dialog-footer/dialog-footer.build.mjs +10 -0
- package/build-task/esm2022/dialogs/confirm-dialog/confirm-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/design-dialog/dialog.build.mjs +17 -0
- package/build-task/esm2022/dialogs/iframe-dialog/iframe-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/login-dialog/login-dialog.build.mjs +10 -0
- package/build-task/esm2022/dialogs/partial-dialog/partial-dialog.build.mjs +40 -0
- package/build-task/esm2022/index.mjs +5 -0
- package/build-task/esm2022/input/calendar/calendar.build.mjs +13 -0
- package/build-task/esm2022/input/chips/chips.build.mjs +11 -0
- package/build-task/esm2022/input/color-picker/color-picker.build.mjs +11 -0
- package/build-task/esm2022/input/currency/currency.build.mjs +11 -0
- package/build-task/esm2022/input/default/button/button.build.mjs +15 -0
- package/build-task/esm2022/input/default/button-group/button-group.build.mjs +10 -0
- package/build-task/esm2022/input/default/checkbox/checkbox.build.mjs +18 -0
- package/build-task/esm2022/input/default/checkboxset/checkboxset.build.mjs +11 -0
- package/build-task/esm2022/input/default/composite/composite.build.mjs +10 -0
- package/build-task/esm2022/input/default/number/number.build.mjs +11 -0
- package/build-task/esm2022/input/default/radioset/radioset.build.mjs +15 -0
- package/build-task/esm2022/input/default/select/select.build.mjs +11 -0
- package/build-task/esm2022/input/default/switch/switch.build.mjs +15 -0
- package/build-task/esm2022/input/default/text/text.build.mjs +11 -0
- package/build-task/esm2022/input/default/textarea/textarea.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/date/date.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/date-time/date-time.build.mjs +11 -0
- package/build-task/esm2022/input/epoch/time/time.build.mjs +11 -0
- package/build-task/esm2022/input/file-upload/file-upload.build.mjs +20 -0
- package/build-task/esm2022/input/rating/rating.build.mjs +11 -0
- package/build-task/esm2022/input/slider/slider.build.mjs +11 -0
- package/build-task/esm2022/message/message.build.mjs +15 -0
- package/build-task/esm2022/navigation/breadcrumb/breadcrumb.build.mjs +10 -0
- package/build-task/esm2022/navigation/menu/menu.build.mjs +27 -0
- package/build-task/esm2022/navigation/nav/nav-item/nav-item.build.mjs +10 -0
- package/build-task/esm2022/navigation/nav/nav.build.mjs +10 -0
- package/build-task/esm2022/navigation/navbar/navbar.build.mjs +10 -0
- package/build-task/esm2022/navigation/popover/popover.build.mjs +41 -0
- package/build-task/esm2022/page/content/content.build.mjs +10 -0
- package/build-task/esm2022/page/footer/footer.build.mjs +15 -0
- package/build-task/esm2022/page/header/header.build.mjs +15 -0
- package/build-task/esm2022/page/layout.build.mjs +15 -0
- package/build-task/esm2022/page/left-panel/left-panel.build.mjs +15 -0
- package/build-task/esm2022/page/mobile-navbar/mobile-navbar.build.mjs +10 -0
- package/build-task/esm2022/page/page-content/page-content.build.mjs +36 -0
- package/build-task/esm2022/page/page.build.mjs +59 -0
- package/build-task/esm2022/page/right-panel/right-panel.build.mjs +15 -0
- package/build-task/esm2022/page/router-outlet/router-outlet.build.mjs +10 -0
- package/build-task/esm2022/page/tab-bar/tab-bar.build.mjs +10 -0
- package/build-task/esm2022/page/top-nav/top-nav.build.mjs +15 -0
- package/build-task/esm2022/partial/partial.build.mjs +25 -0
- package/build-task/esm2022/partial-param/partial-param.build.mjs +10 -0
- package/build-task/esm2022/prefab/prefab-container/prefab-container.build.mjs +25 -0
- package/build-task/esm2022/prefab/prefab.build.mjs +10 -0
- package/build-task/esm2022/public_api.mjs +113 -0
- package/build-task/esm2022/utils/utils.mjs +69 -0
- package/build-task/fesm2022/index.mjs +2998 -0
- package/build-task/fesm2022/index.mjs.map +1 -0
- package/build-task/index.d.ts +5 -0
- package/build-task/input/calendar/calendar.build.d.ts +2 -0
- package/build-task/input/chips/chips.build.d.ts +2 -0
- package/build-task/input/color-picker/color-picker.build.d.ts +2 -0
- package/build-task/input/currency/currency.build.d.ts +2 -0
- package/build-task/input/default/button/button.build.d.ts +2 -0
- package/build-task/input/default/button-group/button-group.build.d.ts +2 -0
- package/build-task/input/default/checkbox/checkbox.build.d.ts +2 -0
- package/build-task/input/default/checkboxset/checkboxset.build.d.ts +2 -0
- package/build-task/input/default/composite/composite.build.d.ts +2 -0
- package/build-task/input/default/number/number.build.d.ts +2 -0
- package/build-task/input/default/radioset/radioset.build.d.ts +2 -0
- package/build-task/input/default/select/select.build.d.ts +2 -0
- package/build-task/input/default/switch/switch.build.d.ts +2 -0
- package/build-task/input/default/text/text.build.d.ts +2 -0
- package/build-task/input/default/textarea/textarea.build.d.ts +2 -0
- package/build-task/input/epoch/date/date.build.d.ts +2 -0
- package/build-task/input/epoch/date-time/date-time.build.d.ts +2 -0
- package/build-task/input/epoch/time/time.build.d.ts +2 -0
- package/build-task/input/file-upload/file-upload.build.d.ts +2 -0
- package/build-task/input/rating/rating.build.d.ts +2 -0
- package/build-task/input/slider/slider.build.d.ts +2 -0
- package/build-task/message/message.build.d.ts +2 -0
- package/build-task/navigation/breadcrumb/breadcrumb.build.d.ts +2 -0
- package/build-task/navigation/menu/menu.build.d.ts +2 -0
- package/build-task/navigation/nav/nav-item/nav-item.build.d.ts +2 -0
- package/build-task/navigation/nav/nav.build.d.ts +2 -0
- package/build-task/navigation/navbar/navbar.build.d.ts +2 -0
- package/build-task/navigation/popover/popover.build.d.ts +2 -0
- package/build-task/package.json +25 -0
- package/build-task/page/content/content.build.d.ts +2 -0
- package/build-task/page/footer/footer.build.d.ts +2 -0
- package/build-task/page/header/header.build.d.ts +2 -0
- package/build-task/page/layout.build.d.ts +2 -0
- package/build-task/page/left-panel/left-panel.build.d.ts +2 -0
- package/build-task/page/mobile-navbar/mobile-navbar.build.d.ts +2 -0
- package/build-task/page/page-content/page-content.build.d.ts +2 -0
- package/build-task/page/page.build.d.ts +2 -0
- package/build-task/page/right-panel/right-panel.build.d.ts +2 -0
- package/build-task/page/router-outlet/router-outlet.build.d.ts +2 -0
- package/build-task/page/tab-bar/tab-bar.build.d.ts +2 -0
- package/build-task/page/top-nav/top-nav.build.d.ts +2 -0
- package/build-task/partial/partial.build.d.ts +2 -0
- package/build-task/partial-param/partial-param.build.d.ts +2 -0
- package/build-task/prefab/prefab-container/prefab-container.build.d.ts +2 -0
- package/build-task/prefab/prefab.build.d.ts +2 -0
- package/build-task/public_api.d.ts +112 -0
- package/build-task/utils/utils.d.ts +21 -0
- package/components/advanced/carousel/.npmignore +2 -0
- package/components/advanced/carousel/bundles/index.umd.js +352 -0
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +9 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.d.ts +1 -0
- package/components/advanced/carousel/carousel.animator.d.ts +45 -0
- package/components/advanced/carousel/carousel.directive.d.ts +35 -0
- package/components/advanced/carousel/carousel.props.d.ts +1 -0
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +32 -0
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.props.mjs +7 -0
- package/components/advanced/carousel/esm2022/carousel.animator.mjs +149 -0
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +135 -0
- package/components/advanced/carousel/esm2022/carousel.props.mjs +13 -0
- package/components/advanced/carousel/esm2022/index.mjs +5 -0
- package/components/advanced/carousel/esm2022/public_api.mjs +4 -0
- package/components/advanced/carousel/fesm2022/index.mjs +335 -0
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -0
- package/components/advanced/carousel/index.d.ts +5 -0
- package/components/advanced/carousel/package.json +20 -0
- package/components/advanced/carousel/public_api.d.ts +3 -0
- package/components/advanced/custom/.npmignore +2 -0
- package/components/advanced/custom/bundles/index.umd.js +258 -0
- package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +29 -0
- package/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +2 -0
- package/components/advanced/custom/custom-widget-prop.d.ts +1 -0
- package/components/advanced/custom/custom-widget.directive.d.ts +19 -0
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +156 -0
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +12 -0
- package/components/advanced/custom/esm2022/custom-widget-prop.mjs +8 -0
- package/components/advanced/custom/esm2022/custom-widget.directive.mjs +70 -0
- package/components/advanced/custom/esm2022/index.mjs +5 -0
- package/components/advanced/custom/esm2022/public_api.mjs +3 -0
- package/components/advanced/custom/fesm2022/index.mjs +244 -0
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -0
- package/components/advanced/custom/index.d.ts +5 -0
- package/components/advanced/custom/package.json +20 -0
- package/components/advanced/custom/public_api.d.ts +2 -0
- package/components/advanced/login/.npmignore +2 -0
- package/components/advanced/login/bundles/index.umd.js +135 -0
- package/components/advanced/login/esm2022/index.mjs +5 -0
- package/components/advanced/login/esm2022/login.component.mjs +107 -0
- package/components/advanced/login/esm2022/login.props.mjs +8 -0
- package/components/advanced/login/esm2022/public_api.mjs +2 -0
- package/components/advanced/login/fesm2022/index.mjs +120 -0
- package/components/advanced/login/fesm2022/index.mjs.map +1 -0
- package/components/advanced/login/index.d.ts +5 -0
- package/components/advanced/login/login.component.d.ts +31 -0
- package/components/advanced/login/login.props.d.ts +1 -0
- package/components/advanced/login/package.json +20 -0
- package/components/advanced/login/public_api.d.ts +1 -0
- package/components/advanced/marquee/.npmignore +2 -0
- package/components/advanced/marquee/bundles/index.umd.js +71 -0
- package/components/advanced/marquee/esm2022/index.mjs +5 -0
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +36 -0
- package/components/advanced/marquee/esm2022/marquee.props.mjs +12 -0
- package/components/advanced/marquee/esm2022/public_api.mjs +2 -0
- package/components/advanced/marquee/fesm2022/index.mjs +53 -0
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -0
- package/components/advanced/marquee/index.d.ts +5 -0
- package/components/advanced/marquee/marquee.directive.d.ts +9 -0
- package/components/advanced/marquee/marquee.props.d.ts +1 -0
- package/components/advanced/marquee/package.json +20 -0
- package/components/advanced/marquee/public_api.d.ts +1 -0
- package/components/base/.npmignore +2 -0
- package/components/base/bundles/index.umd.js +5982 -0
- package/components/base/decorators/autolayout.decorator.d.ts +4 -0
- package/components/base/decorators/autolayout.props.d.ts +1 -0
- package/components/base/directives/show-in-device.directive.d.ts +16 -0
- package/components/base/esm2022/decorators/autolayout.decorator.mjs +476 -0
- package/components/base/esm2022/decorators/autolayout.props.mjs +20 -0
- package/components/base/esm2022/directives/show-in-device.directive.mjs +90 -0
- package/components/base/esm2022/index.mjs +5 -0
- package/components/base/esm2022/pipes/custom-pipes.mjs +473 -0
- package/components/base/esm2022/pipes/image.pipe.mjs +19 -0
- package/components/base/esm2022/pipes/sanitize.pipe.mjs +44 -0
- package/components/base/esm2022/pipes/trust-as.pipe.mjs +41 -0
- package/components/base/esm2022/pipes/wm-pipe.mjs +18 -0
- package/components/base/esm2022/public_api.mjs +36 -0
- package/components/base/esm2022/utils/autolayout-utils.mjs +261 -0
- package/components/base/esm2022/utils/data-utils.mjs +581 -0
- package/components/base/esm2022/utils/form-utils.mjs +451 -0
- package/components/base/esm2022/utils/live-utils.mjs +216 -0
- package/components/base/esm2022/utils/widget-utils.mjs +495 -0
- package/components/base/esm2022/widgets/common/base/base-container.component.mjs +80 -0
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +295 -0
- package/components/base/esm2022/widgets/common/base/base.component.mjs +713 -0
- package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +48 -0
- package/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +222 -0
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +115 -0
- package/components/base/esm2022/widgets/common/base/stylable.component.mjs +11 -0
- package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +26 -0
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +51 -0
- package/components/base/esm2022/widgets/common/container/container.props.mjs +15 -0
- package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +170 -0
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +89 -0
- package/components/base/esm2022/widgets/common/item-template/item-template.props.mjs +7 -0
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +84 -0
- package/components/base/esm2022/widgets/common/message/message.component.mjs +104 -0
- package/components/base/esm2022/widgets/common/message/message.props.mjs +13 -0
- package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +53 -0
- package/components/base/esm2022/widgets/common/partial/partial.props.mjs +7 -0
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +88 -0
- package/components/base/esm2022/widgets/common/pull-to-refresh/pull-to-refresh.mjs +261 -0
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +40 -0
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +33 -0
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.props.mjs +7 -0
- package/components/base/esm2022/widgets/framework/constants.mjs +36 -0
- package/components/base/esm2022/widgets/framework/deviceview.mjs +126 -0
- package/components/base/esm2022/widgets/framework/property-change-handler.mjs +96 -0
- package/components/base/esm2022/widgets/framework/styler.mjs +123 -0
- package/components/base/esm2022/widgets/framework/types.mjs +8 -0
- package/components/base/esm2022/widgets/framework/widget-id-generator.mjs +3 -0
- package/components/base/esm2022/widgets/framework/widget-props.mjs +35 -0
- package/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +75 -0
- package/components/base/esm2022/widgets/framework/widget-registry.mjs +49 -0
- package/components/base/fesm2022/index.mjs +5858 -0
- package/components/base/fesm2022/index.mjs.map +1 -0
- package/components/base/index.d.ts +5 -0
- package/components/base/package.json +28 -0
- package/components/base/pipes/custom-pipes.d.ts +104 -0
- package/components/base/pipes/image.pipe.d.ts +7 -0
- package/components/base/pipes/sanitize.pipe.d.ts +10 -0
- package/components/base/pipes/trust-as.pipe.d.ts +10 -0
- package/components/base/pipes/wm-pipe.d.ts +9 -0
- package/components/base/public_api.d.ts +35 -0
- package/components/base/utils/autolayout-utils.d.ts +29 -0
- package/components/base/utils/data-utils.d.ts +181 -0
- package/components/base/utils/form-utils.d.ts +85 -0
- package/components/base/utils/live-utils.d.ts +65 -0
- package/components/base/utils/widget-utils.d.ts +120 -0
- package/components/base/widgets/common/base/base-container.component.d.ts +16 -0
- package/components/base/widgets/common/base/base-field-validations.d.ts +27 -0
- package/components/base/widgets/common/base/base.component.d.ts +276 -0
- package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +15 -0
- package/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +77 -0
- package/components/base/widgets/common/base/partial-container.directive.d.ts +22 -0
- package/components/base/widgets/common/base/stylable.component.d.ts +54 -0
- package/components/base/widgets/common/base/text-content.directive.d.ts +9 -0
- package/components/base/widgets/common/container/container.directive.d.ts +12 -0
- package/components/base/widgets/common/container/container.props.d.ts +1 -0
- package/components/base/widgets/common/dialog/dialog.service.d.ts +54 -0
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +32 -0
- package/components/base/widgets/common/item-template/item-template.props.d.ts +1 -0
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +15 -0
- package/components/base/widgets/common/message/message.component.d.ts +19 -0
- package/components/base/widgets/common/message/message.props.d.ts +1 -0
- package/components/base/widgets/common/partial/partial.directive.d.ts +15 -0
- package/components/base/widgets/common/partial/partial.props.d.ts +1 -0
- package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +21 -0
- package/components/base/widgets/common/pull-to-refresh/pull-to-refresh.d.ts +48 -0
- package/components/base/widgets/common/redraw/redrawable.directive.d.ts +8 -0
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +9 -0
- package/components/base/widgets/common/repeat-template/repeat-template.props.d.ts +1 -0
- package/components/base/widgets/framework/constants.d.ts +16 -0
- package/components/base/widgets/framework/deviceview.d.ts +1 -0
- package/components/base/widgets/framework/property-change-handler.d.ts +8 -0
- package/components/base/widgets/framework/styler.d.ts +59 -0
- package/components/base/widgets/framework/types.d.ts +23 -0
- package/components/base/widgets/framework/widget-id-generator.d.ts +2 -0
- package/components/base/widgets/framework/widget-props.d.ts +12 -0
- package/components/base/widgets/framework/widget-proxy-provider.d.ts +11 -0
- package/components/base/widgets/framework/widget-registry.d.ts +14 -0
- package/components/basic/anchor/.npmignore +2 -0
- package/components/basic/anchor/anchor.component.d.ts +37 -0
- package/components/basic/anchor/anchor.props.d.ts +1 -0
- package/components/basic/anchor/bundles/index.umd.js +204 -0
- package/components/basic/anchor/esm2022/anchor.component.mjs +155 -0
- package/components/basic/anchor/esm2022/anchor.props.mjs +27 -0
- package/components/basic/anchor/esm2022/index.mjs +5 -0
- package/components/basic/anchor/esm2022/public_api.mjs +2 -0
- package/components/basic/anchor/fesm2022/index.mjs +187 -0
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -0
- package/components/basic/anchor/index.d.ts +5 -0
- package/components/basic/anchor/package.json +20 -0
- package/components/basic/anchor/public_api.d.ts +1 -0
- package/components/basic/audio/.npmignore +2 -0
- package/components/basic/audio/audio.component.d.ts +20 -0
- package/components/basic/audio/audio.props.d.ts +1 -0
- package/components/basic/audio/bundles/index.umd.js +83 -0
- package/components/basic/audio/esm2022/audio.component.mjs +41 -0
- package/components/basic/audio/esm2022/audio.props.mjs +19 -0
- package/components/basic/audio/esm2022/index.mjs +5 -0
- package/components/basic/audio/esm2022/public_api.mjs +2 -0
- package/components/basic/audio/fesm2022/index.mjs +65 -0
- package/components/basic/audio/fesm2022/index.mjs.map +1 -0
- package/components/basic/audio/index.d.ts +5 -0
- package/components/basic/audio/package.json +20 -0
- package/components/basic/audio/public_api.d.ts +1 -0
- package/components/basic/html/.npmignore +2 -0
- package/components/basic/html/bundles/index.umd.js +122 -0
- package/components/basic/html/esm2022/html.directive.mjs +88 -0
- package/components/basic/html/esm2022/html.props.mjs +12 -0
- package/components/basic/html/esm2022/index.mjs +5 -0
- package/components/basic/html/esm2022/public_api.mjs +2 -0
- package/components/basic/html/fesm2022/index.mjs +105 -0
- package/components/basic/html/fesm2022/index.mjs.map +1 -0
- package/components/basic/html/html.directive.d.ts +14 -0
- package/components/basic/html/html.props.d.ts +1 -0
- package/components/basic/html/index.d.ts +5 -0
- package/components/basic/html/package.json +20 -0
- package/components/basic/html/public_api.d.ts +1 -0
- package/components/basic/icon/.npmignore +2 -0
- package/components/basic/icon/bundles/index.umd.js +80 -0
- package/components/basic/icon/esm2022/icon.component.mjs +38 -0
- package/components/basic/icon/esm2022/icon.props.mjs +19 -0
- package/components/basic/icon/esm2022/index.mjs +5 -0
- package/components/basic/icon/esm2022/public_api.mjs +2 -0
- package/components/basic/icon/fesm2022/index.mjs +62 -0
- package/components/basic/icon/fesm2022/index.mjs.map +1 -0
- package/components/basic/icon/icon.component.d.ts +15 -0
- package/components/basic/icon/icon.props.d.ts +1 -0
- package/components/basic/icon/index.d.ts +5 -0
- package/components/basic/icon/package.json +20 -0
- package/components/basic/icon/public_api.d.ts +1 -0
- package/components/basic/iframe/.npmignore +2 -0
- package/components/basic/iframe/bundles/index.umd.js +101 -0
- package/components/basic/iframe/esm2022/iframe.component.mjs +65 -0
- package/components/basic/iframe/esm2022/iframe.props.mjs +15 -0
- package/components/basic/iframe/esm2022/index.mjs +5 -0
- package/components/basic/iframe/esm2022/public_api.mjs +2 -0
- package/components/basic/iframe/fesm2022/index.mjs +84 -0
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -0
- package/components/basic/iframe/iframe.component.d.ts +26 -0
- package/components/basic/iframe/iframe.props.d.ts +1 -0
- package/components/basic/iframe/index.d.ts +5 -0
- package/components/basic/iframe/package.json +20 -0
- package/components/basic/iframe/public_api.d.ts +1 -0
- package/components/basic/label/.npmignore +2 -0
- package/components/basic/label/bundles/index.umd.js +129 -0
- package/components/basic/label/esm2022/index.mjs +5 -0
- package/components/basic/label/esm2022/label.directive.mjs +91 -0
- package/components/basic/label/esm2022/label.props.mjs +17 -0
- package/components/basic/label/esm2022/public_api.mjs +2 -0
- package/components/basic/label/fesm2022/index.mjs +113 -0
- package/components/basic/label/fesm2022/index.mjs.map +1 -0
- package/components/basic/label/index.d.ts +5 -0
- package/components/basic/label/label.directive.d.ts +12 -0
- package/components/basic/label/label.props.d.ts +1 -0
- package/components/basic/label/package.json +20 -0
- package/components/basic/label/public_api.d.ts +1 -0
- package/components/basic/picture/.npmignore +2 -0
- package/components/basic/picture/bundles/index.umd.js +138 -0
- package/components/basic/picture/esm2022/index.mjs +5 -0
- package/components/basic/picture/esm2022/picture.directive.mjs +93 -0
- package/components/basic/picture/esm2022/picture.props.mjs +23 -0
- package/components/basic/picture/esm2022/public_api.mjs +2 -0
- package/components/basic/picture/fesm2022/index.mjs +121 -0
- package/components/basic/picture/fesm2022/index.mjs.map +1 -0
- package/components/basic/picture/index.d.ts +5 -0
- package/components/basic/picture/package.json +20 -0
- package/components/basic/picture/picture.directive.d.ts +19 -0
- package/components/basic/picture/picture.props.d.ts +1 -0
- package/components/basic/picture/public_api.d.ts +1 -0
- package/components/basic/progress/progress-bar/.npmignore +2 -0
- package/components/basic/progress/progress-bar/bundles/index.umd.js +170 -0
- package/components/basic/progress/progress-bar/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-bar/esm2022/progress-bar.component.mjs +130 -0
- package/components/basic/progress/progress-bar/esm2022/progress-bar.props.mjs +19 -0
- package/components/basic/progress/progress-bar/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +154 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-bar/index.d.ts +5 -0
- package/components/basic/progress/progress-bar/package.json +20 -0
- package/components/basic/progress/progress-bar/progress-bar.component.d.ts +43 -0
- package/components/basic/progress/progress-bar/progress-bar.props.d.ts +1 -0
- package/components/basic/progress/progress-bar/public_api.d.ts +1 -0
- package/components/basic/progress/progress-circle/.npmignore +2 -0
- package/components/basic/progress/progress-circle/bundles/index.umd.js +171 -0
- package/components/basic/progress/progress-circle/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-circle/esm2022/progress-circle.component.mjs +130 -0
- package/components/basic/progress/progress-circle/esm2022/progress-circle.props.mjs +21 -0
- package/components/basic/progress/progress-circle/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +155 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-circle/index.d.ts +5 -0
- package/components/basic/progress/progress-circle/package.json +20 -0
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +40 -0
- package/components/basic/progress/progress-circle/progress-circle.props.d.ts +1 -0
- package/components/basic/progress/progress-circle/public_api.d.ts +1 -0
- package/components/basic/progress/progress-utils/.npmignore +2 -0
- package/components/basic/progress/progress-utils/bundles/index.umd.js +35 -0
- package/components/basic/progress/progress-utils/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-utils/esm2022/progress-utils.mjs +25 -0
- package/components/basic/progress/progress-utils/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs +32 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-utils/index.d.ts +5 -0
- package/components/basic/progress/progress-utils/package.json +20 -0
- package/components/basic/progress/progress-utils/progress-utils.d.ts +3 -0
- package/components/basic/progress/progress-utils/public_api.d.ts +1 -0
- package/components/basic/rich-text-editor/.npmignore +2 -0
- package/components/basic/rich-text-editor/bundles/index.umd.js +236 -0
- package/components/basic/rich-text-editor/esm2022/index.mjs +5 -0
- package/components/basic/rich-text-editor/esm2022/public_api.mjs +2 -0
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +197 -0
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +21 -0
- package/components/basic/rich-text-editor/fesm2022/index.mjs +222 -0
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -0
- package/components/basic/rich-text-editor/index.d.ts +5 -0
- package/components/basic/rich-text-editor/package.json +20 -0
- package/components/basic/rich-text-editor/public_api.d.ts +1 -0
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +55 -0
- package/components/basic/rich-text-editor/rich-text-editor.props.d.ts +2 -0
- package/components/basic/search/.npmignore +2 -0
- package/components/basic/search/bundles/index.umd.js +1091 -0
- package/components/basic/search/data-provider/data-provider.d.ts +42 -0
- package/components/basic/search/data-provider/local-data-provider.d.ts +5 -0
- package/components/basic/search/data-provider/remote-data-provider.d.ts +10 -0
- package/components/basic/search/esm2022/data-provider/data-provider.mjs +34 -0
- package/components/basic/search/esm2022/data-provider/local-data-provider.mjs +77 -0
- package/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +124 -0
- package/components/basic/search/esm2022/index.mjs +5 -0
- package/components/basic/search/esm2022/public_api.mjs +3 -0
- package/components/basic/search/esm2022/scrollable.directive.mjs +44 -0
- package/components/basic/search/esm2022/search.component.mjs +754 -0
- package/components/basic/search/esm2022/search.props.mjs +55 -0
- package/components/basic/search/fesm2022/index.mjs +1080 -0
- package/components/basic/search/fesm2022/index.mjs.map +1 -0
- package/components/basic/search/index.d.ts +5 -0
- package/components/basic/search/package.json +20 -0
- package/components/basic/search/public_api.d.ts +2 -0
- package/components/basic/search/scrollable.directive.d.ts +14 -0
- package/components/basic/search/search.component.d.ts +109 -0
- package/components/basic/search/search.props.d.ts +2 -0
- package/components/basic/spinner/.npmignore +2 -0
- package/components/basic/spinner/bundles/index.umd.js +126 -0
- package/components/basic/spinner/esm2022/index.mjs +5 -0
- package/components/basic/spinner/esm2022/public_api.mjs +2 -0
- package/components/basic/spinner/esm2022/spinner.component.mjs +87 -0
- package/components/basic/spinner/esm2022/spinner.props.mjs +20 -0
- package/components/basic/spinner/fesm2022/index.mjs +111 -0
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -0
- package/components/basic/spinner/index.d.ts +5 -0
- package/components/basic/spinner/package.json +20 -0
- package/components/basic/spinner/public_api.d.ts +1 -0
- package/components/basic/spinner/spinner.component.d.ts +27 -0
- package/components/basic/spinner/spinner.props.d.ts +1 -0
- package/components/basic/tree/.npmignore +2 -0
- package/components/basic/tree/bundles/index.umd.js +566 -0
- package/components/basic/tree/esm2022/index.mjs +5 -0
- package/components/basic/tree/esm2022/public_api.mjs +2 -0
- package/components/basic/tree/esm2022/tree-node-template-host.component.mjs +33 -0
- package/components/basic/tree/esm2022/tree.component.mjs +494 -0
- package/components/basic/tree/esm2022/tree.props.mjs +22 -0
- package/components/basic/tree/fesm2022/index.mjs +550 -0
- package/components/basic/tree/fesm2022/index.mjs.map +1 -0
- package/components/basic/tree/index.d.ts +5 -0
- package/components/basic/tree/package.json +20 -0
- package/components/basic/tree/public_api.d.ts +1 -0
- package/components/basic/tree/tree-node-template-host.component.d.ts +7 -0
- package/components/basic/tree/tree.component.d.ts +66 -0
- package/components/basic/tree/tree.props.d.ts +1 -0
- package/components/basic/video/.npmignore +2 -0
- package/components/basic/video/bundles/index.umd.js +116 -0
- package/components/basic/video/esm2022/index.mjs +5 -0
- package/components/basic/video/esm2022/public_api.mjs +2 -0
- package/components/basic/video/esm2022/video.component.mjs +70 -0
- package/components/basic/video/esm2022/video.props.mjs +24 -0
- package/components/basic/video/fesm2022/index.mjs +99 -0
- package/components/basic/video/fesm2022/index.mjs.map +1 -0
- package/components/basic/video/index.d.ts +5 -0
- package/components/basic/video/package.json +20 -0
- package/components/basic/video/public_api.d.ts +1 -0
- package/components/basic/video/video.component.d.ts +27 -0
- package/components/basic/video/video.props.d.ts +1 -0
- package/components/chart/.npmignore +2 -0
- package/components/chart/bundles/index.umd.js +1747 -0
- package/components/chart/chart.component.d.ts +99 -0
- package/components/chart/chart.props.d.ts +1 -0
- package/components/chart/chart.utils.d.ts +40 -0
- package/components/chart/esm2022/chart.component.mjs +982 -0
- package/components/chart/esm2022/chart.props.mjs +67 -0
- package/components/chart/esm2022/chart.utils.mjs +723 -0
- package/components/chart/esm2022/index.mjs +5 -0
- package/components/chart/esm2022/public_api.mjs +2 -0
- package/components/chart/fesm2022/index.mjs +1774 -0
- package/components/chart/fesm2022/index.mjs.map +1 -0
- package/components/chart/index.d.ts +5 -0
- package/components/chart/package.json +20 -0
- package/components/chart/public_api.d.ts +1 -0
- package/components/containers/accordion/.npmignore +2 -0
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +50 -0
- package/components/containers/accordion/accordion-pane/accordion-pane.props.d.ts +1 -0
- package/components/containers/accordion/accordion.directive.d.ts +66 -0
- package/components/containers/accordion/accordion.props.d.ts +1 -0
- package/components/containers/accordion/bundles/index.umd.js +500 -0
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +145 -0
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.props.mjs +22 -0
- package/components/containers/accordion/esm2022/accordion.directive.mjs +309 -0
- package/components/containers/accordion/esm2022/accordion.props.mjs +16 -0
- package/components/containers/accordion/esm2022/index.mjs +5 -0
- package/components/containers/accordion/esm2022/public_api.mjs +3 -0
- package/components/containers/accordion/fesm2022/index.mjs +486 -0
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -0
- package/components/containers/accordion/index.d.ts +5 -0
- package/components/containers/accordion/package.json +20 -0
- package/components/containers/accordion/public_api.d.ts +2 -0
- package/components/containers/layout-grid/.npmignore +2 -0
- package/components/containers/layout-grid/bundles/index.umd.js +172 -0
- package/components/containers/layout-grid/esm2022/index.mjs +5 -0
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +57 -0
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.props.mjs +11 -0
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +36 -0
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.props.mjs +9 -0
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +36 -0
- package/components/containers/layout-grid/esm2022/layout-grid.props.mjs +9 -0
- package/components/containers/layout-grid/esm2022/public_api.mjs +4 -0
- package/components/containers/layout-grid/fesm2022/index.mjs +153 -0
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -0
- package/components/containers/layout-grid/index.d.ts +5 -0
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +12 -0
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.props.d.ts +1 -0
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +9 -0
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.props.d.ts +1 -0
- package/components/containers/layout-grid/layout-grid.directive.d.ts +9 -0
- package/components/containers/layout-grid/layout-grid.props.d.ts +1 -0
- package/components/containers/layout-grid/package.json +20 -0
- package/components/containers/layout-grid/public_api.d.ts +3 -0
- package/components/containers/linear-layout/.npmignore +2 -0
- package/components/containers/linear-layout/bundles/index.umd.js +186 -0
- package/components/containers/linear-layout/esm2022/index.mjs +5 -0
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +44 -0
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.props.mjs +10 -0
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +100 -0
- package/components/containers/linear-layout/esm2022/linear-layout.props.mjs +13 -0
- package/components/containers/linear-layout/esm2022/public_api.mjs +3 -0
- package/components/containers/linear-layout/fesm2022/index.mjs +167 -0
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -0
- package/components/containers/linear-layout/index.d.ts +5 -0
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +10 -0
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.props.d.ts +1 -0
- package/components/containers/linear-layout/linear-layout.directive.d.ts +16 -0
- package/components/containers/linear-layout/linear-layout.props.d.ts +1 -0
- package/components/containers/linear-layout/package.json +20 -0
- package/components/containers/linear-layout/public_api.d.ts +2 -0
- package/components/containers/panel/.npmignore +2 -0
- package/components/containers/panel/bundles/index.umd.js +223 -0
- package/components/containers/panel/esm2022/index.mjs +5 -0
- package/components/containers/panel/esm2022/panel.component.mjs +168 -0
- package/components/containers/panel/esm2022/panel.props.mjs +38 -0
- package/components/containers/panel/esm2022/public_api.mjs +2 -0
- package/components/containers/panel/fesm2022/index.mjs +210 -0
- package/components/containers/panel/fesm2022/index.mjs.map +1 -0
- package/components/containers/panel/index.d.ts +5 -0
- package/components/containers/panel/package.json +20 -0
- package/components/containers/panel/panel.component.d.ts +43 -0
- package/components/containers/panel/panel.props.d.ts +1 -0
- package/components/containers/panel/public_api.d.ts +1 -0
- package/components/containers/tabs/.npmignore +2 -0
- package/components/containers/tabs/bundles/index.umd.js +788 -0
- package/components/containers/tabs/esm2022/index.mjs +5 -0
- package/components/containers/tabs/esm2022/public_api.mjs +3 -0
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +179 -0
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.props.mjs +22 -0
- package/components/containers/tabs/esm2022/tabs.animator.mjs +83 -0
- package/components/containers/tabs/esm2022/tabs.component.mjs +478 -0
- package/components/containers/tabs/esm2022/tabs.props.mjs +20 -0
- package/components/containers/tabs/fesm2022/index.mjs +775 -0
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -0
- package/components/containers/tabs/index.d.ts +5 -0
- package/components/containers/tabs/package.json +20 -0
- package/components/containers/tabs/public_api.d.ts +2 -0
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +41 -0
- package/components/containers/tabs/tab-pane/tab-pane.props.d.ts +1 -0
- package/components/containers/tabs/tabs.animator.d.ts +30 -0
- package/components/containers/tabs/tabs.component.d.ts +87 -0
- package/components/containers/tabs/tabs.props.d.ts +1 -0
- package/components/containers/tile/.npmignore +2 -0
- package/components/containers/tile/bundles/index.umd.js +68 -0
- package/components/containers/tile/esm2022/index.mjs +5 -0
- package/components/containers/tile/esm2022/public_api.mjs +2 -0
- package/components/containers/tile/esm2022/tile.directive.mjs +33 -0
- package/components/containers/tile/esm2022/tile.props.mjs +12 -0
- package/components/containers/tile/fesm2022/index.mjs +50 -0
- package/components/containers/tile/fesm2022/index.mjs.map +1 -0
- package/components/containers/tile/index.d.ts +5 -0
- package/components/containers/tile/package.json +20 -0
- package/components/containers/tile/public_api.d.ts +1 -0
- package/components/containers/tile/tile.directive.d.ts +9 -0
- package/components/containers/tile/tile.props.d.ts +1 -0
- package/components/containers/wizard/.npmignore +2 -0
- package/components/containers/wizard/bundles/index.umd.js +1074 -0
- package/components/containers/wizard/esm2022/index.mjs +5 -0
- package/components/containers/wizard/esm2022/public_api.mjs +4 -0
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +35 -0
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.props.mjs +9 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +182 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.props.mjs +17 -0
- package/components/containers/wizard/esm2022/wizard.component.mjs +801 -0
- package/components/containers/wizard/esm2022/wizard.props.mjs +22 -0
- package/components/containers/wizard/fesm2022/index.mjs +1058 -0
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -0
- package/components/containers/wizard/index.d.ts +5 -0
- package/components/containers/wizard/package.json +20 -0
- package/components/containers/wizard/public_api.d.ts +3 -0
- package/components/containers/wizard/wizard-action/wizard-action.directive.d.ts +9 -0
- package/components/containers/wizard/wizard-action/wizard-action.props.d.ts +1 -0
- package/components/containers/wizard/wizard-step/wizard-step.component.d.ts +59 -0
- package/components/containers/wizard/wizard-step/wizard-step.props.d.ts +1 -0
- package/components/containers/wizard/wizard.component.d.ts +192 -0
- package/components/containers/wizard/wizard.props.d.ts +1 -0
- package/components/data/card/.npmignore +2 -0
- package/components/data/card/bundles/index.umd.js +237 -0
- package/components/data/card/card-actions/card-actions.directive.d.ts +9 -0
- package/components/data/card/card-actions/card-actions.props.d.ts +1 -0
- package/components/data/card/card-content/card-content.component.d.ts +12 -0
- package/components/data/card/card-content/card-content.props.d.ts +1 -0
- package/components/data/card/card-footer/card-footer.directive.d.ts +9 -0
- package/components/data/card/card-footer/card-footer.props.d.ts +1 -0
- package/components/data/card/card.component.d.ts +23 -0
- package/components/data/card/card.props.d.ts +1 -0
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +31 -0
- package/components/data/card/esm2022/card-actions/card-actions.props.mjs +9 -0
- package/components/data/card/esm2022/card-content/card-content.component.mjs +43 -0
- package/components/data/card/esm2022/card-content/card-content.props.mjs +10 -0
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +31 -0
- package/components/data/card/esm2022/card-footer/card-footer.props.mjs +9 -0
- package/components/data/card/esm2022/card.component.mjs +75 -0
- package/components/data/card/esm2022/card.props.mjs +24 -0
- package/components/data/card/esm2022/index.mjs +5 -0
- package/components/data/card/esm2022/public_api.mjs +5 -0
- package/components/data/card/fesm2022/index.mjs +220 -0
- package/components/data/card/fesm2022/index.mjs.map +1 -0
- package/components/data/card/index.d.ts +5 -0
- package/components/data/card/package.json +20 -0
- package/components/data/card/public_api.d.ts +4 -0
- package/components/data/form/.npmignore +2 -0
- package/components/data/form/bundles/index.umd.js +3308 -0
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +86 -0
- package/components/data/form/esm2022/form-action/form-action.props.mjs +25 -0
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +611 -0
- package/components/data/form/esm2022/form-field/form-field.props.mjs +52 -0
- package/components/data/form/esm2022/form-widget.directive.mjs +83 -0
- package/components/data/form/esm2022/form.component.mjs +1247 -0
- package/components/data/form/esm2022/form.props.mjs +64 -0
- package/components/data/form/esm2022/index.mjs +5 -0
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +151 -0
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +173 -0
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +356 -0
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +502 -0
- package/components/data/form/esm2022/public_api.mjs +9 -0
- package/components/data/form/fesm2022/index.mjs +3296 -0
- package/components/data/form/fesm2022/index.mjs.map +1 -0
- package/components/data/form/form-action/form-action.directive.d.ts +35 -0
- package/components/data/form/form-action/form-action.props.d.ts +1 -0
- package/components/data/form/form-field/form-field.directive.d.ts +116 -0
- package/components/data/form/form-field/form-field.props.d.ts +1 -0
- package/components/data/form/form-widget.directive.d.ts +19 -0
- package/components/data/form/form.component.d.ts +211 -0
- package/components/data/form/form.props.d.ts +3 -0
- package/components/data/form/index.d.ts +5 -0
- package/components/data/form/live-actions/dependson.directive.d.ts +27 -0
- package/components/data/form/live-actions/live-actions.directive.d.ts +24 -0
- package/components/data/form/live-filter/live-filter.directive.d.ts +24 -0
- package/components/data/form/live-form/live-form.directive.d.ts +44 -0
- package/components/data/form/package.json +20 -0
- package/components/data/form/public_api.d.ts +8 -0
- package/components/data/list/.npmignore +2 -0
- package/components/data/list/bundles/index.umd.js +1610 -0
- package/components/data/list/esm2022/index.mjs +5 -0
- package/components/data/list/esm2022/list-item.directive.mjs +260 -0
- package/components/data/list/esm2022/list-item.props.mjs +7 -0
- package/components/data/list/esm2022/list.animator.mjs +233 -0
- package/components/data/list/esm2022/list.component.mjs +1294 -0
- package/components/data/list/esm2022/list.props.mjs +48 -0
- package/components/data/list/esm2022/public_api.mjs +3 -0
- package/components/data/list/fesm2022/index.mjs +1602 -0
- package/components/data/list/fesm2022/index.mjs.map +1 -0
- package/components/data/list/index.d.ts +5 -0
- package/components/data/list/list-item.directive.d.ts +53 -0
- package/components/data/list/list-item.props.d.ts +1 -0
- package/components/data/list/list.animator.d.ts +32 -0
- package/components/data/list/list.component.d.ts +226 -0
- package/components/data/list/list.props.d.ts +1 -0
- package/components/data/list/package.json +20 -0
- package/components/data/list/public_api.d.ts +2 -0
- package/components/data/live-table/.npmignore +2 -0
- package/components/data/live-table/bundles/index.umd.js +273 -0
- package/components/data/live-table/esm2022/index.mjs +5 -0
- package/components/data/live-table/esm2022/live-table.component.mjs +243 -0
- package/components/data/live-table/esm2022/live-table.props.mjs +10 -0
- package/components/data/live-table/esm2022/public_api.mjs +2 -0
- package/components/data/live-table/fesm2022/index.mjs +258 -0
- package/components/data/live-table/fesm2022/index.mjs.map +1 -0
- package/components/data/live-table/index.d.ts +5 -0
- package/components/data/live-table/live-table.component.d.ts +36 -0
- package/components/data/live-table/live-table.props.d.ts +1 -0
- package/components/data/live-table/package.json +20 -0
- package/components/data/live-table/public_api.d.ts +1 -0
- package/components/data/pagination/.npmignore +2 -0
- package/components/data/pagination/bundles/index.umd.js +850 -0
- package/components/data/pagination/esm2022/index.mjs +5 -0
- package/components/data/pagination/esm2022/pagination.component.mjs +817 -0
- package/components/data/pagination/esm2022/pagination.props.mjs +23 -0
- package/components/data/pagination/esm2022/public_api.mjs +2 -0
- package/components/data/pagination/fesm2022/index.mjs +845 -0
- package/components/data/pagination/fesm2022/index.mjs.map +1 -0
- package/components/data/pagination/index.d.ts +5 -0
- package/components/data/pagination/package.json +20 -0
- package/components/data/pagination/pagination.component.d.ts +101 -0
- package/components/data/pagination/pagination.props.d.ts +1 -0
- package/components/data/pagination/public_api.d.ts +1 -0
- package/components/data/table/.npmignore +2 -0
- package/components/data/table/bundles/index.umd.js +4848 -0
- package/components/data/table/esm2022/index.mjs +5 -0
- package/components/data/table/esm2022/public_api.mjs +9 -0
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +83 -0
- package/components/data/table/esm2022/table-action/table-action.props.mjs +25 -0
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +744 -0
- package/components/data/table/esm2022/table-column/table-column.props.mjs +93 -0
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +80 -0
- package/components/data/table/esm2022/table-column-group/table-column-group.props.mjs +11 -0
- package/components/data/table/esm2022/table-cud.directive.mjs +484 -0
- package/components/data/table/esm2022/table-filter.directive.mjs +706 -0
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +68 -0
- package/components/data/table/esm2022/table-row/table-row.props.mjs +16 -0
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +81 -0
- package/components/data/table/esm2022/table-row-action/table-row-action.props.mjs +20 -0
- package/components/data/table/esm2022/table.component.mjs +2406 -0
- package/components/data/table/esm2022/table.props.mjs +70 -0
- package/components/data/table/fesm2022/index.mjs +4835 -0
- package/components/data/table/fesm2022/index.mjs.map +1 -0
- package/components/data/table/index.d.ts +5 -0
- package/components/data/table/package.json +20 -0
- package/components/data/table/public_api.d.ts +8 -0
- package/components/data/table/table-action/table-action.directive.d.ts +35 -0
- package/components/data/table/table-action/table-action.props.d.ts +1 -0
- package/components/data/table/table-column/table-column.directive.d.ts +152 -0
- package/components/data/table/table-column/table-column.props.d.ts +1 -0
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +23 -0
- package/components/data/table/table-column-group/table-column-group.props.d.ts +1 -0
- package/components/data/table/table-cud.directive.d.ts +34 -0
- package/components/data/table/table-filter.directive.d.ts +35 -0
- package/components/data/table/table-row/table-row.directive.d.ts +25 -0
- package/components/data/table/table-row/table-row.props.d.ts +1 -0
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +31 -0
- package/components/data/table/table-row-action/table-row-action.props.d.ts +1 -0
- package/components/data/table/table.component.d.ts +419 -0
- package/components/data/table/table.props.d.ts +1 -0
- package/components/dialogs/alert-dialog/.npmignore +2 -0
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +23 -0
- package/components/dialogs/alert-dialog/alert-dialog.props.d.ts +1 -0
- package/components/dialogs/alert-dialog/bundles/index.umd.js +126 -0
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +87 -0
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.props.mjs +22 -0
- package/components/dialogs/alert-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/alert-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +114 -0
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/alert-dialog/index.d.ts +5 -0
- package/components/dialogs/alert-dialog/package.json +20 -0
- package/components/dialogs/alert-dialog/public_api.d.ts +1 -0
- package/components/dialogs/confirm-dialog/.npmignore +2 -0
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +129 -0
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +26 -0
- package/components/dialogs/confirm-dialog/confirm-dialog.props.d.ts +1 -0
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +90 -0
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.props.mjs +22 -0
- package/components/dialogs/confirm-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/confirm-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +117 -0
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/confirm-dialog/index.d.ts +5 -0
- package/components/dialogs/confirm-dialog/package.json +20 -0
- package/components/dialogs/confirm-dialog/public_api.d.ts +1 -0
- package/components/dialogs/default/.npmignore +2 -0
- package/components/dialogs/default/base-dialog.d.ts +45 -0
- package/components/dialogs/default/bundles/index.umd.js +379 -0
- package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +13 -0
- package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +9 -0
- package/components/dialogs/default/dialog-footer/dialog-footer.props.d.ts +1 -0
- package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +25 -0
- package/components/dialogs/default/esm2022/base-dialog.mjs +184 -0
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +86 -0
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +34 -0
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.props.mjs +9 -0
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +62 -0
- package/components/dialogs/default/esm2022/index.mjs +5 -0
- package/components/dialogs/default/esm2022/public_api.mjs +5 -0
- package/components/dialogs/default/fesm2022/index.mjs +364 -0
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/default/index.d.ts +5 -0
- package/components/dialogs/default/package.json +20 -0
- package/components/dialogs/default/public_api.d.ts +4 -0
- package/components/dialogs/design-dialog/.npmignore +2 -0
- package/components/dialogs/design-dialog/bundles/index.umd.js +149 -0
- package/components/dialogs/design-dialog/dialog.component.d.ts +17 -0
- package/components/dialogs/design-dialog/dialog.props.d.ts +1 -0
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +108 -0
- package/components/dialogs/design-dialog/esm2022/dialog.props.mjs +21 -0
- package/components/dialogs/design-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/design-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/design-dialog/fesm2022/index.mjs +134 -0
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/design-dialog/index.d.ts +5 -0
- package/components/dialogs/design-dialog/package.json +20 -0
- package/components/dialogs/design-dialog/public_api.d.ts +1 -0
- package/components/dialogs/iframe-dialog/.npmignore +2 -0
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +119 -0
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +78 -0
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.props.mjs +25 -0
- package/components/dialogs/iframe-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/iframe-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +108 -0
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +19 -0
- package/components/dialogs/iframe-dialog/iframe-dialog.props.d.ts +1 -0
- package/components/dialogs/iframe-dialog/index.d.ts +5 -0
- package/components/dialogs/iframe-dialog/package.json +20 -0
- package/components/dialogs/iframe-dialog/public_api.d.ts +1 -0
- package/components/dialogs/login-dialog/.npmignore +2 -0
- package/components/dialogs/login-dialog/bundles/index.umd.js +114 -0
- package/components/dialogs/login-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +91 -0
- package/components/dialogs/login-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/login-dialog/fesm2022/index.mjs +98 -0
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/login-dialog/index.d.ts +5 -0
- package/components/dialogs/login-dialog/login-dialog.directive.d.ts +23 -0
- package/components/dialogs/login-dialog/package.json +20 -0
- package/components/dialogs/login-dialog/public_api.d.ts +1 -0
- package/components/dialogs/partial-dialog/.npmignore +2 -0
- package/components/dialogs/partial-dialog/bundles/index.umd.js +157 -0
- package/components/dialogs/partial-dialog/esm2022/index.mjs +5 -0
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +119 -0
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.props.mjs +22 -0
- package/components/dialogs/partial-dialog/esm2022/public_api.mjs +2 -0
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +146 -0
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -0
- package/components/dialogs/partial-dialog/index.d.ts +5 -0
- package/components/dialogs/partial-dialog/package.json +20 -0
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +29 -0
- package/components/dialogs/partial-dialog/partial-dialog.props.d.ts +1 -0
- package/components/dialogs/partial-dialog/public_api.d.ts +1 -0
- package/components/input/base-form/.npmignore +2 -0
- package/components/input/base-form/base-form.component.d.ts +26 -0
- package/components/input/base-form/bundles/index.umd.js +147 -0
- package/components/input/base-form/esm2022/base-form.component.mjs +124 -0
- package/components/input/base-form/esm2022/index.mjs +5 -0
- package/components/input/base-form/esm2022/public_api.mjs +2 -0
- package/components/input/base-form/fesm2022/index.mjs +131 -0
- package/components/input/base-form/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form/index.d.ts +5 -0
- package/components/input/base-form/package.json +20 -0
- package/components/input/base-form/public_api.d.ts +1 -0
- package/components/input/base-form-custom/.npmignore +2 -0
- package/components/input/base-form-custom/base-form-custom.component.d.ts +23 -0
- package/components/input/base-form-custom/bundles/index.umd.js +129 -0
- package/components/input/base-form-custom/esm2022/base-form-custom.component.mjs +105 -0
- package/components/input/base-form-custom/esm2022/index.mjs +5 -0
- package/components/input/base-form-custom/esm2022/public_api.mjs +2 -0
- package/components/input/base-form-custom/fesm2022/index.mjs +112 -0
- package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form-custom/index.d.ts +5 -0
- package/components/input/base-form-custom/package.json +20 -0
- package/components/input/base-form-custom/public_api.d.ts +1 -0
- package/components/input/button/.npmignore +2 -0
- package/components/input/button/bundles/index.umd.js +98 -0
- package/components/input/button/button.component.d.ts +19 -0
- package/components/input/button/button.props.d.ts +1 -0
- package/components/input/button/esm2022/button.component.mjs +50 -0
- package/components/input/button/esm2022/button.props.mjs +26 -0
- package/components/input/button/esm2022/index.mjs +5 -0
- package/components/input/button/esm2022/public_api.mjs +2 -0
- package/components/input/button/fesm2022/index.mjs +81 -0
- package/components/input/button/fesm2022/index.mjs.map +1 -0
- package/components/input/button/index.d.ts +5 -0
- package/components/input/button/package.json +20 -0
- package/components/input/button/public_api.d.ts +1 -0
- package/components/input/button-group/.npmignore +2 -0
- package/components/input/button-group/bundles/index.umd.js +80 -0
- package/components/input/button-group/button-group.directive.d.ts +11 -0
- package/components/input/button-group/button-group.props.d.ts +1 -0
- package/components/input/button-group/esm2022/button-group.directive.mjs +47 -0
- package/components/input/button-group/esm2022/button-group.props.mjs +10 -0
- package/components/input/button-group/esm2022/index.mjs +5 -0
- package/components/input/button-group/esm2022/public_api.mjs +2 -0
- package/components/input/button-group/fesm2022/index.mjs +62 -0
- package/components/input/button-group/fesm2022/index.mjs.map +1 -0
- package/components/input/button-group/index.d.ts +5 -0
- package/components/input/button-group/package.json +20 -0
- package/components/input/button-group/public_api.d.ts +1 -0
- package/components/input/calendar/.npmignore +2 -0
- package/components/input/calendar/bundles/index.umd.js +655 -0
- package/components/input/calendar/calendar.component.d.ts +128 -0
- package/components/input/calendar/calendar.props.d.ts +1 -0
- package/components/input/calendar/esm2022/calendar.component.mjs +637 -0
- package/components/input/calendar/esm2022/calendar.props.mjs +23 -0
- package/components/input/calendar/esm2022/index.mjs +5 -0
- package/components/input/calendar/esm2022/public_api.mjs +2 -0
- package/components/input/calendar/fesm2022/index.mjs +665 -0
- package/components/input/calendar/fesm2022/index.mjs.map +1 -0
- package/components/input/calendar/index.d.ts +5 -0
- package/components/input/calendar/package.json +20 -0
- package/components/input/calendar/public_api.d.ts +1 -0
- package/components/input/caption-position/.npmignore +2 -0
- package/components/input/caption-position/bundles/index.umd.js +196 -0
- package/components/input/caption-position/caption-position.directive.d.ts +31 -0
- package/components/input/caption-position/esm2022/caption-position.directive.mjs +172 -0
- package/components/input/caption-position/esm2022/index.mjs +5 -0
- package/components/input/caption-position/esm2022/public_api.mjs +2 -0
- package/components/input/caption-position/fesm2022/index.mjs +178 -0
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -0
- package/components/input/caption-position/index.d.ts +5 -0
- package/components/input/caption-position/package.json +20 -0
- package/components/input/caption-position/public_api.d.ts +1 -0
- package/components/input/checkbox/.npmignore +2 -0
- package/components/input/checkbox/bundles/index.umd.js +206 -0
- package/components/input/checkbox/checkbox.component.d.ts +36 -0
- package/components/input/checkbox/checkbox.props.d.ts +2 -0
- package/components/input/checkbox/esm2022/checkbox.component.mjs +158 -0
- package/components/input/checkbox/esm2022/checkbox.props.mjs +30 -0
- package/components/input/checkbox/esm2022/index.mjs +5 -0
- package/components/input/checkbox/esm2022/public_api.mjs +2 -0
- package/components/input/checkbox/fesm2022/index.mjs +191 -0
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -0
- package/components/input/checkbox/index.d.ts +5 -0
- package/components/input/checkbox/package.json +20 -0
- package/components/input/checkbox/public_api.d.ts +1 -0
- package/components/input/checkboxset/.npmignore +2 -0
- package/components/input/checkboxset/bundles/index.umd.js +178 -0
- package/components/input/checkboxset/checkboxset.component.d.ts +24 -0
- package/components/input/checkboxset/checkboxset.props.d.ts +2 -0
- package/components/input/checkboxset/esm2022/checkboxset.component.mjs +125 -0
- package/components/input/checkboxset/esm2022/checkboxset.props.mjs +36 -0
- package/components/input/checkboxset/esm2022/index.mjs +5 -0
- package/components/input/checkboxset/esm2022/public_api.mjs +2 -0
- package/components/input/checkboxset/fesm2022/index.mjs +165 -0
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -0
- package/components/input/checkboxset/index.d.ts +5 -0
- package/components/input/checkboxset/package.json +20 -0
- package/components/input/checkboxset/public_api.d.ts +1 -0
- package/components/input/chips/.npmignore +2 -0
- package/components/input/chips/bundles/index.umd.js +741 -0
- package/components/input/chips/chips.component.d.ts +87 -0
- package/components/input/chips/chips.props.d.ts +2 -0
- package/components/input/chips/esm2022/chips.component.mjs +676 -0
- package/components/input/chips/esm2022/chips.props.mjs +49 -0
- package/components/input/chips/esm2022/index.mjs +5 -0
- package/components/input/chips/esm2022/public_api.mjs +2 -0
- package/components/input/chips/fesm2022/index.mjs +729 -0
- package/components/input/chips/fesm2022/index.mjs.map +1 -0
- package/components/input/chips/index.d.ts +5 -0
- package/components/input/chips/package.json +20 -0
- package/components/input/chips/public_api.d.ts +1 -0
- package/components/input/color-picker/.npmignore +2 -0
- package/components/input/color-picker/bundles/index.umd.js +145 -0
- package/components/input/color-picker/color-picker.component.d.ts +33 -0
- package/components/input/color-picker/color-picker.props.d.ts +2 -0
- package/components/input/color-picker/esm2022/color-picker.component.mjs +107 -0
- package/components/input/color-picker/esm2022/color-picker.props.mjs +22 -0
- package/components/input/color-picker/esm2022/index.mjs +5 -0
- package/components/input/color-picker/esm2022/public_api.mjs +2 -0
- package/components/input/color-picker/fesm2022/index.mjs +132 -0
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -0
- package/components/input/color-picker/index.d.ts +5 -0
- package/components/input/color-picker/package.json +20 -0
- package/components/input/color-picker/public_api.d.ts +1 -0
- package/components/input/composite/.npmignore +2 -0
- package/components/input/composite/bundles/index.umd.js +120 -0
- package/components/input/composite/composite.directive.d.ts +24 -0
- package/components/input/composite/composite.props.d.ts +1 -0
- package/components/input/composite/esm2022/composite.directive.mjs +88 -0
- package/components/input/composite/esm2022/composite.props.mjs +10 -0
- package/components/input/composite/esm2022/index.mjs +5 -0
- package/components/input/composite/esm2022/public_api.mjs +2 -0
- package/components/input/composite/fesm2022/index.mjs +103 -0
- package/components/input/composite/fesm2022/index.mjs.map +1 -0
- package/components/input/composite/index.d.ts +5 -0
- package/components/input/composite/package.json +20 -0
- package/components/input/composite/public_api.d.ts +1 -0
- package/components/input/currency/.npmignore +2 -0
- package/components/input/currency/bundles/index.umd.js +112 -0
- package/components/input/currency/currency.component.d.ts +28 -0
- package/components/input/currency/currency.props.d.ts +2 -0
- package/components/input/currency/esm2022/currency.component.mjs +67 -0
- package/components/input/currency/esm2022/currency.props.mjs +27 -0
- package/components/input/currency/esm2022/index.mjs +5 -0
- package/components/input/currency/esm2022/public_api.mjs +2 -0
- package/components/input/currency/fesm2022/index.mjs +97 -0
- package/components/input/currency/fesm2022/index.mjs.map +1 -0
- package/components/input/currency/index.d.ts +5 -0
- package/components/input/currency/package.json +20 -0
- package/components/input/currency/public_api.d.ts +1 -0
- package/components/input/dataset-aware-form/.npmignore +2 -0
- package/components/input/dataset-aware-form/bundles/index.umd.js +352 -0
- package/components/input/dataset-aware-form/dataset-aware-form.component.d.ts +76 -0
- package/components/input/dataset-aware-form/esm2022/dataset-aware-form.component.mjs +331 -0
- package/components/input/dataset-aware-form/esm2022/index.mjs +5 -0
- package/components/input/dataset-aware-form/esm2022/public_api.mjs +2 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs +338 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -0
- package/components/input/dataset-aware-form/index.d.ts +5 -0
- package/components/input/dataset-aware-form/package.json +20 -0
- package/components/input/dataset-aware-form/public_api.d.ts +1 -0
- package/components/input/epoch/base-date-time/.npmignore +2 -0
- package/components/input/epoch/base-date-time/base-date-time.component.d.ts +246 -0
- package/components/input/epoch/base-date-time/bundles/index.umd.js +1093 -0
- package/components/input/epoch/base-date-time/esm2022/base-date-time.component.mjs +1077 -0
- package/components/input/epoch/base-date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/base-date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +1084 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/base-date-time/index.d.ts +5 -0
- package/components/input/epoch/base-date-time/package.json +20 -0
- package/components/input/epoch/base-date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date/.npmignore +2 -0
- package/components/input/epoch/date/bundles/index.umd.js +515 -0
- package/components/input/epoch/date/date.component.d.ts +61 -0
- package/components/input/epoch/date/date.props.d.ts +2 -0
- package/components/input/epoch/date/esm2022/date.component.mjs +345 -0
- package/components/input/epoch/date/esm2022/date.props.mjs +43 -0
- package/components/input/epoch/date/esm2022/imaskUtil.mjs +114 -0
- package/components/input/epoch/date/esm2022/index.mjs +5 -0
- package/components/input/epoch/date/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date/fesm2022/index.mjs +505 -0
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date/imaskUtil.d.ts +92 -0
- package/components/input/epoch/date/index.d.ts +5 -0
- package/components/input/epoch/date/package.json +20 -0
- package/components/input/epoch/date/public_api.d.ts +1 -0
- package/components/input/epoch/date-time/.npmignore +2 -0
- package/components/input/epoch/date-time/bundles/index.umd.js +519 -0
- package/components/input/epoch/date-time/date-time.component.d.ts +109 -0
- package/components/input/epoch/date-time/date-time.props.d.ts +2 -0
- package/components/input/epoch/date-time/esm2022/date-time.component.mjs +459 -0
- package/components/input/epoch/date-time/esm2022/date-time.props.mjs +47 -0
- package/components/input/epoch/date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs +510 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time/index.d.ts +5 -0
- package/components/input/epoch/date-time/package.json +20 -0
- package/components/input/epoch/date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date-time-picker/.npmignore +2 -0
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +453 -0
- package/components/input/epoch/date-time-picker/date-time-picker.component.d.ts +80 -0
- package/components/input/epoch/date-time-picker/esm2022/date-time-picker.component.mjs +433 -0
- package/components/input/epoch/date-time-picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time-picker/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +439 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time-picker/index.d.ts +5 -0
- package/components/input/epoch/date-time-picker/package.json +20 -0
- package/components/input/epoch/date-time-picker/public_api.d.ts +1 -0
- package/components/input/epoch/picker/.npmignore +2 -0
- package/components/input/epoch/picker/bundles/index.umd.js +192 -0
- package/components/input/epoch/picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/picker/esm2022/picker.component.mjs +165 -0
- package/components/input/epoch/picker/esm2022/public_api.mjs +3 -0
- package/components/input/epoch/picker/fesm2022/index.mjs +172 -0
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/picker/index.d.ts +5 -0
- package/components/input/epoch/picker/package.json +20 -0
- package/components/input/epoch/picker/picker.component.d.ts +36 -0
- package/components/input/epoch/picker/public_api.d.ts +2 -0
- package/components/input/epoch/time/.npmignore +2 -0
- package/components/input/epoch/time/bundles/index.umd.js +401 -0
- package/components/input/epoch/time/esm2022/index.mjs +5 -0
- package/components/input/epoch/time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/time/esm2022/time.component.mjs +352 -0
- package/components/input/epoch/time/esm2022/time.props.mjs +35 -0
- package/components/input/epoch/time/fesm2022/index.mjs +391 -0
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/time/index.d.ts +5 -0
- package/components/input/epoch/time/package.json +20 -0
- package/components/input/epoch/time/public_api.d.ts +1 -0
- package/components/input/epoch/time/time.component.d.ts +105 -0
- package/components/input/epoch/time/time.props.d.ts +2 -0
- package/components/input/file-upload/.npmignore +2 -0
- package/components/input/file-upload/bundles/index.umd.js +483 -0
- package/components/input/file-upload/esm2022/file-upload.component.mjs +426 -0
- package/components/input/file-upload/esm2022/file-upload.props.mjs +39 -0
- package/components/input/file-upload/esm2022/index.mjs +5 -0
- package/components/input/file-upload/esm2022/public_api.mjs +2 -0
- package/components/input/file-upload/fesm2022/index.mjs +469 -0
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -0
- package/components/input/file-upload/file-upload.component.d.ts +103 -0
- package/components/input/file-upload/file-upload.props.d.ts +1 -0
- package/components/input/file-upload/index.d.ts +5 -0
- package/components/input/file-upload/package.json +20 -0
- package/components/input/file-upload/public_api.d.ts +1 -0
- package/components/input/number/.npmignore +2 -0
- package/components/input/number/bundles/index.umd.js +109 -0
- package/components/input/number/esm2022/index.mjs +5 -0
- package/components/input/number/esm2022/number.component.mjs +57 -0
- package/components/input/number/esm2022/number.props.mjs +35 -0
- package/components/input/number/esm2022/public_api.mjs +2 -0
- package/components/input/number/fesm2022/index.mjs +95 -0
- package/components/input/number/fesm2022/index.mjs.map +1 -0
- package/components/input/number/index.d.ts +5 -0
- package/components/input/number/number.component.d.ts +26 -0
- package/components/input/number/number.props.d.ts +2 -0
- package/components/input/number/package.json +20 -0
- package/components/input/number/public_api.d.ts +1 -0
- package/components/input/radioset/.npmignore +2 -0
- package/components/input/radioset/bundles/index.umd.js +164 -0
- package/components/input/radioset/esm2022/index.mjs +5 -0
- package/components/input/radioset/esm2022/public_api.mjs +2 -0
- package/components/input/radioset/esm2022/radioset.component.mjs +110 -0
- package/components/input/radioset/esm2022/radioset.props.mjs +37 -0
- package/components/input/radioset/fesm2022/index.mjs +151 -0
- package/components/input/radioset/fesm2022/index.mjs.map +1 -0
- package/components/input/radioset/index.d.ts +5 -0
- package/components/input/radioset/package.json +20 -0
- package/components/input/radioset/public_api.d.ts +1 -0
- package/components/input/radioset/radioset.component.d.ts +23 -0
- package/components/input/radioset/radioset.props.d.ts +2 -0
- package/components/input/rating/.npmignore +2 -0
- package/components/input/rating/bundles/index.umd.js +270 -0
- package/components/input/rating/esm2022/index.mjs +5 -0
- package/components/input/rating/esm2022/public_api.mjs +2 -0
- package/components/input/rating/esm2022/rating.component.mjs +225 -0
- package/components/input/rating/esm2022/rating.props.mjs +29 -0
- package/components/input/rating/fesm2022/index.mjs +257 -0
- package/components/input/rating/fesm2022/index.mjs.map +1 -0
- package/components/input/rating/index.d.ts +5 -0
- package/components/input/rating/package.json +20 -0
- package/components/input/rating/public_api.d.ts +1 -0
- package/components/input/rating/rating.component.d.ts +44 -0
- package/components/input/rating/rating.props.d.ts +2 -0
- package/components/input/select/.npmignore +2 -0
- package/components/input/select/bundles/index.umd.js +225 -0
- package/components/input/select/esm2022/index.mjs +5 -0
- package/components/input/select/esm2022/public_api.mjs +2 -0
- package/components/input/select/esm2022/select.component.mjs +172 -0
- package/components/input/select/esm2022/select.props.mjs +36 -0
- package/components/input/select/fesm2022/index.mjs +211 -0
- package/components/input/select/fesm2022/index.mjs.map +1 -0
- package/components/input/select/index.d.ts +5 -0
- package/components/input/select/package.json +20 -0
- package/components/input/select/public_api.d.ts +1 -0
- package/components/input/select/select.component.d.ts +36 -0
- package/components/input/select/select.props.d.ts +2 -0
- package/components/input/slider/.npmignore +2 -0
- package/components/input/slider/bundles/index.umd.js +203 -0
- package/components/input/slider/esm2022/index.mjs +5 -0
- package/components/input/slider/esm2022/public_api.mjs +2 -0
- package/components/input/slider/esm2022/slider.component.mjs +157 -0
- package/components/input/slider/esm2022/slider.props.mjs +28 -0
- package/components/input/slider/fesm2022/index.mjs +189 -0
- package/components/input/slider/fesm2022/index.mjs.map +1 -0
- package/components/input/slider/index.d.ts +5 -0
- package/components/input/slider/package.json +20 -0
- package/components/input/slider/public_api.d.ts +1 -0
- package/components/input/slider/slider.component.d.ts +39 -0
- package/components/input/slider/slider.props.d.ts +2 -0
- package/components/input/switch/.npmignore +2 -0
- package/components/input/switch/bundles/index.umd.js +224 -0
- package/components/input/switch/esm2022/index.mjs +5 -0
- package/components/input/switch/esm2022/public_api.mjs +2 -0
- package/components/input/switch/esm2022/switch.component.mjs +179 -0
- package/components/input/switch/esm2022/switch.props.mjs +28 -0
- package/components/input/switch/fesm2022/index.mjs +211 -0
- package/components/input/switch/fesm2022/index.mjs.map +1 -0
- package/components/input/switch/index.d.ts +5 -0
- package/components/input/switch/package.json +20 -0
- package/components/input/switch/public_api.d.ts +1 -0
- package/components/input/switch/switch.component.d.ts +30 -0
- package/components/input/switch/switch.props.d.ts +2 -0
- package/components/input/text/.npmignore +2 -0
- package/components/input/text/base-input/base-input.d.ts +33 -0
- package/components/input/text/bundles/index.umd.js +1130 -0
- package/components/input/text/esm2022/base-input/base-input.mjs +93 -0
- package/components/input/text/esm2022/index.mjs +5 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.component.mjs +53 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.props.mjs +30 -0
- package/components/input/text/esm2022/input-color/input-color.component.mjs +53 -0
- package/components/input/text/esm2022/input-color/input-color.props.mjs +27 -0
- package/components/input/text/esm2022/input-email/input-email.component.mjs +53 -0
- package/components/input/text/esm2022/input-email/input-email.props.mjs +29 -0
- package/components/input/text/esm2022/input-number/input-number.component.mjs +63 -0
- package/components/input/text/esm2022/input-number/input-number.props.mjs +32 -0
- package/components/input/text/esm2022/input-text/input-text.component.mjs +136 -0
- package/components/input/text/esm2022/input-text/input-text.props.mjs +48 -0
- package/components/input/text/esm2022/number-locale/number-locale.mjs +554 -0
- package/components/input/text/esm2022/public_api.mjs +8 -0
- package/components/input/text/fesm2022/index.mjs +1114 -0
- package/components/input/text/fesm2022/index.mjs.map +1 -0
- package/components/input/text/index.d.ts +5 -0
- package/components/input/text/input-calendar/input-calendar.component.d.ts +30 -0
- package/components/input/text/input-calendar/input-calendar.props.d.ts +2 -0
- package/components/input/text/input-color/input-color.component.d.ts +27 -0
- package/components/input/text/input-color/input-color.props.d.ts +2 -0
- package/components/input/text/input-email/input-email.component.d.ts +29 -0
- package/components/input/text/input-email/input-email.props.d.ts +2 -0
- package/components/input/text/input-number/input-number.component.d.ts +33 -0
- package/components/input/text/input-number/input-number.props.d.ts +2 -0
- package/components/input/text/input-text/input-text.component.d.ts +52 -0
- package/components/input/text/input-text/input-text.props.d.ts +2 -0
- package/components/input/text/number-locale/number-locale.d.ts +127 -0
- package/components/input/text/package.json +20 -0
- package/components/input/text/public_api.d.ts +7 -0
- package/components/input/textarea/.npmignore +2 -0
- package/components/input/textarea/bundles/index.umd.js +108 -0
- package/components/input/textarea/esm2022/index.mjs +5 -0
- package/components/input/textarea/esm2022/public_api.mjs +2 -0
- package/components/input/textarea/esm2022/textarea.component.mjs +60 -0
- package/components/input/textarea/esm2022/textarea.props.mjs +30 -0
- package/components/input/textarea/fesm2022/index.mjs +94 -0
- package/components/input/textarea/fesm2022/index.mjs.map +1 -0
- package/components/input/textarea/index.d.ts +5 -0
- package/components/input/textarea/package.json +20 -0
- package/components/input/textarea/public_api.d.ts +1 -0
- package/components/input/textarea/textarea.component.d.ts +30 -0
- package/components/input/textarea/textarea.props.d.ts +2 -0
- package/components/navigation/breadcrumb/.npmignore +2 -0
- package/components/navigation/breadcrumb/breadcrumb.component.d.ts +25 -0
- package/components/navigation/breadcrumb/breadcrumb.props.d.ts +1 -0
- package/components/navigation/breadcrumb/bundles/index.umd.js +138 -0
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +101 -0
- package/components/navigation/breadcrumb/esm2022/breadcrumb.props.mjs +17 -0
- package/components/navigation/breadcrumb/esm2022/index.mjs +5 -0
- package/components/navigation/breadcrumb/esm2022/public_api.mjs +2 -0
- package/components/navigation/breadcrumb/fesm2022/index.mjs +121 -0
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -0
- package/components/navigation/breadcrumb/index.d.ts +5 -0
- package/components/navigation/breadcrumb/package.json +20 -0
- package/components/navigation/breadcrumb/public_api.d.ts +1 -0
- package/components/navigation/menu/.npmignore +2 -0
- package/components/navigation/menu/bundles/index.umd.js +947 -0
- package/components/navigation/menu/esm2022/index.mjs +5 -0
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +80 -0
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +105 -0
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +191 -0
- package/components/navigation/menu/esm2022/menu.component.mjs +282 -0
- package/components/navigation/menu/esm2022/menu.props.mjs +37 -0
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +66 -0
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.props.mjs +9 -0
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +131 -0
- package/components/navigation/menu/esm2022/nav/nav.props.mjs +28 -0
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +49 -0
- package/components/navigation/menu/esm2022/public_api.mjs +8 -0
- package/components/navigation/menu/fesm2022/index.mjs +929 -0
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -0
- package/components/navigation/menu/index.d.ts +5 -0
- package/components/navigation/menu/menu-adapator.component.d.ts +23 -0
- package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +15 -0
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +35 -0
- package/components/navigation/menu/menu.component.d.ts +65 -0
- package/components/navigation/menu/menu.props.d.ts +1 -0
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +14 -0
- package/components/navigation/menu/nav/nav-item/nav-item.props.d.ts +1 -0
- package/components/navigation/menu/nav/nav.component.d.ts +35 -0
- package/components/navigation/menu/nav/nav.props.d.ts +1 -0
- package/components/navigation/menu/nav/navigation-control.directive.d.ts +14 -0
- package/components/navigation/menu/package.json +20 -0
- package/components/navigation/menu/public_api.d.ts +7 -0
- package/components/navigation/navbar/.npmignore +2 -0
- package/components/navigation/navbar/bundles/index.umd.js +87 -0
- package/components/navigation/navbar/esm2022/index.mjs +5 -0
- package/components/navigation/navbar/esm2022/navbar.component.mjs +52 -0
- package/components/navigation/navbar/esm2022/navbar.props.mjs +13 -0
- package/components/navigation/navbar/esm2022/public_api.mjs +2 -0
- package/components/navigation/navbar/fesm2022/index.mjs +70 -0
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -0
- package/components/navigation/navbar/index.d.ts +5 -0
- package/components/navigation/navbar/navbar.component.d.ts +16 -0
- package/components/navigation/navbar/navbar.props.d.ts +1 -0
- package/components/navigation/navbar/package.json +20 -0
- package/components/navigation/navbar/public_api.d.ts +1 -0
- package/components/navigation/popover/.npmignore +2 -0
- package/components/navigation/popover/bundles/index.umd.js +514 -0
- package/components/navigation/popover/esm2022/index.mjs +5 -0
- package/components/navigation/popover/esm2022/popover.component.mjs +460 -0
- package/components/navigation/popover/esm2022/popover.props.mjs +35 -0
- package/components/navigation/popover/esm2022/public_api.mjs +2 -0
- package/components/navigation/popover/fesm2022/index.mjs +500 -0
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -0
- package/components/navigation/popover/index.d.ts +5 -0
- package/components/navigation/popover/package.json +20 -0
- package/components/navigation/popover/popover.component.d.ts +83 -0
- package/components/navigation/popover/popover.props.d.ts +1 -0
- package/components/navigation/popover/public_api.d.ts +1 -0
- package/components/page/default/.npmignore +2 -0
- package/components/page/default/bundles/index.umd.js +458 -0
- package/components/page/default/content/content.component.d.ts +9 -0
- package/components/page/default/content/content.props.d.ts +1 -0
- package/components/page/default/esm2022/content/content.component.mjs +29 -0
- package/components/page/default/esm2022/content/content.props.mjs +8 -0
- package/components/page/default/esm2022/index.mjs +5 -0
- package/components/page/default/esm2022/layout.directive.mjs +58 -0
- package/components/page/default/esm2022/layout.props.mjs +5 -0
- package/components/page/default/esm2022/page-content/page-content.component.mjs +85 -0
- package/components/page/default/esm2022/page-content/page-content.props.mjs +14 -0
- package/components/page/default/esm2022/page.directive.mjs +97 -0
- package/components/page/default/esm2022/page.props.mjs +11 -0
- package/components/page/default/esm2022/public_api.mjs +7 -0
- package/components/page/default/esm2022/router-outlet.directive.mjs +47 -0
- package/components/page/default/esm2022/router-outlet.props.mjs +8 -0
- package/components/page/default/esm2022/spa-page.directive.mjs +97 -0
- package/components/page/default/esm2022/spa-page.props.mjs +10 -0
- package/components/page/default/fesm2022/index.mjs +438 -0
- package/components/page/default/fesm2022/index.mjs.map +1 -0
- package/components/page/default/index.d.ts +5 -0
- package/components/page/default/layout.directive.d.ts +20 -0
- package/components/page/default/layout.props.d.ts +1 -0
- package/components/page/default/package.json +20 -0
- package/components/page/default/page-content/page-content.component.d.ts +17 -0
- package/components/page/default/page-content/page-content.props.d.ts +1 -0
- package/components/page/default/page.directive.d.ts +38 -0
- package/components/page/default/page.props.d.ts +1 -0
- package/components/page/default/public_api.d.ts +6 -0
- package/components/page/default/router-outlet.directive.d.ts +13 -0
- package/components/page/default/router-outlet.props.d.ts +1 -0
- package/components/page/default/spa-page.directive.d.ts +38 -0
- package/components/page/default/spa-page.props.d.ts +1 -0
- package/components/page/footer/.npmignore +2 -0
- package/components/page/footer/bundles/index.umd.js +71 -0
- package/components/page/footer/esm2022/footer.directive.mjs +37 -0
- package/components/page/footer/esm2022/footer.props.mjs +11 -0
- package/components/page/footer/esm2022/index.mjs +5 -0
- package/components/page/footer/esm2022/public_api.mjs +2 -0
- package/components/page/footer/fesm2022/index.mjs +53 -0
- package/components/page/footer/fesm2022/index.mjs.map +1 -0
- package/components/page/footer/footer.directive.d.ts +9 -0
- package/components/page/footer/footer.props.d.ts +1 -0
- package/components/page/footer/index.d.ts +5 -0
- package/components/page/footer/package.json +20 -0
- package/components/page/footer/public_api.d.ts +1 -0
- package/components/page/header/.npmignore +2 -0
- package/components/page/header/bundles/index.umd.js +67 -0
- package/components/page/header/esm2022/header.component.mjs +33 -0
- package/components/page/header/esm2022/header.props.mjs +11 -0
- package/components/page/header/esm2022/index.mjs +5 -0
- package/components/page/header/esm2022/public_api.mjs +2 -0
- package/components/page/header/fesm2022/index.mjs +49 -0
- package/components/page/header/fesm2022/index.mjs.map +1 -0
- package/components/page/header/header.component.d.ts +10 -0
- package/components/page/header/header.props.d.ts +1 -0
- package/components/page/header/index.d.ts +5 -0
- package/components/page/header/package.json +20 -0
- package/components/page/header/public_api.d.ts +1 -0
- package/components/page/left-panel/.npmignore +2 -0
- package/components/page/left-panel/bundles/index.umd.js +415 -0
- package/components/page/left-panel/esm2022/index.mjs +5 -0
- package/components/page/left-panel/esm2022/left-panel.animator.mjs +133 -0
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +251 -0
- package/components/page/left-panel/esm2022/left-panel.props.mjs +15 -0
- package/components/page/left-panel/esm2022/public_api.mjs +2 -0
- package/components/page/left-panel/fesm2022/index.mjs +400 -0
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -0
- package/components/page/left-panel/index.d.ts +5 -0
- package/components/page/left-panel/left-panel.animator.d.ts +49 -0
- package/components/page/left-panel/left-panel.directive.d.ts +38 -0
- package/components/page/left-panel/left-panel.props.d.ts +1 -0
- package/components/page/left-panel/package.json +20 -0
- package/components/page/left-panel/public_api.d.ts +1 -0
- package/components/page/right-panel/.npmignore +2 -0
- package/components/page/right-panel/bundles/index.umd.js +86 -0
- package/components/page/right-panel/esm2022/index.mjs +5 -0
- package/components/page/right-panel/esm2022/public_api.mjs +2 -0
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +52 -0
- package/components/page/right-panel/esm2022/right-panel.props.mjs +12 -0
- package/components/page/right-panel/fesm2022/index.mjs +69 -0
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -0
- package/components/page/right-panel/index.d.ts +5 -0
- package/components/page/right-panel/package.json +20 -0
- package/components/page/right-panel/public_api.d.ts +1 -0
- package/components/page/right-panel/right-panel.directive.d.ts +10 -0
- package/components/page/right-panel/right-panel.props.d.ts +1 -0
- package/components/page/top-nav/.npmignore +2 -0
- package/components/page/top-nav/bundles/index.umd.js +68 -0
- package/components/page/top-nav/esm2022/index.mjs +5 -0
- package/components/page/top-nav/esm2022/public_api.mjs +2 -0
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +34 -0
- package/components/page/top-nav/esm2022/top-nav.props.mjs +11 -0
- package/components/page/top-nav/fesm2022/index.mjs +50 -0
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -0
- package/components/page/top-nav/index.d.ts +5 -0
- package/components/page/top-nav/package.json +20 -0
- package/components/page/top-nav/public_api.d.ts +1 -0
- package/components/page/top-nav/top-nav.directive.d.ts +9 -0
- package/components/page/top-nav/top-nav.props.d.ts +1 -0
- package/components/prefab/.npmignore +2 -0
- package/components/prefab/bundles/index.umd.js +176 -0
- package/components/prefab/esm2022/index.mjs +5 -0
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +56 -0
- package/components/prefab/esm2022/prefab-container/prefab-container.props.mjs +9 -0
- package/components/prefab/esm2022/prefab.directive.mjs +88 -0
- package/components/prefab/esm2022/prefab.props.mjs +8 -0
- package/components/prefab/esm2022/public_api.mjs +3 -0
- package/components/prefab/fesm2022/index.mjs +159 -0
- package/components/prefab/fesm2022/index.mjs.map +1 -0
- package/components/prefab/index.d.ts +5 -0
- package/components/prefab/package.json +20 -0
- package/components/prefab/prefab-container/prefab-container.directive.d.ts +15 -0
- package/components/prefab/prefab-container/prefab-container.props.d.ts +1 -0
- package/components/prefab/prefab.directive.d.ts +17 -0
- package/components/prefab/prefab.props.d.ts +1 -0
- package/components/prefab/public_api.d.ts +2 -0
- package/core/.npmignore +2 -0
- package/core/bundles/index.umd.js +5608 -0
- package/core/constants/currency-constants.d.ts +1064 -0
- package/core/enums/enums.d.ts +67 -0
- package/core/esm2022/constants/currency-constants.mjs +1065 -0
- package/core/esm2022/enums/enums.mjs +72 -0
- package/core/esm2022/index.mjs +5 -0
- package/core/esm2022/public_api.mjs +26 -0
- package/core/esm2022/services/constant.service.mjs +25 -0
- package/core/esm2022/services/custom-icons-loader.service.mjs +20 -0
- package/core/esm2022/services/field-type.service.mjs +35 -0
- package/core/esm2022/services/field-widget.service.mjs +37 -0
- package/core/esm2022/services/pagination.service.mjs +336 -0
- package/core/esm2022/services/script-loader.service.mjs +75 -0
- package/core/esm2022/services/state-persistence.service.mjs +500 -0
- package/core/esm2022/services/user-custom-pipe-manager.service.mjs +23 -0
- package/core/esm2022/services/utils.service.mjs +16 -0
- package/core/esm2022/services/viewport.service.mjs +121 -0
- package/core/esm2022/types/types.mjs +81 -0
- package/core/esm2022/utils/build-utils.mjs +296 -0
- package/core/esm2022/utils/dom.mjs +123 -0
- package/core/esm2022/utils/event-notifier.mjs +70 -0
- package/core/esm2022/utils/expression-parser.mjs +593 -0
- package/core/esm2022/utils/id-generator.mjs +15 -0
- package/core/esm2022/utils/lru-cache.mjs +95 -0
- package/core/esm2022/utils/utils.mjs +1476 -0
- package/core/esm2022/utils/watcher.mjs +276 -0
- package/core/esm2022/utils/wm-project-properties.mjs +30 -0
- package/core/fesm2022/index.mjs +5455 -0
- package/core/fesm2022/index.mjs.map +1 -0
- package/core/index.d.ts +5 -0
- package/core/package.json +26 -0
- package/core/public_api.d.ts +22 -0
- package/core/services/constant.service.d.ts +28 -0
- package/core/services/custom-icons-loader.service.d.ts +6 -0
- package/core/services/field-type.service.d.ts +6 -0
- package/core/services/field-widget.service.d.ts +6 -0
- package/core/services/pagination.service.d.ts +59 -0
- package/core/services/script-loader.service.d.ts +17 -0
- package/core/services/state-persistence.service.d.ts +231 -0
- package/core/services/user-custom-pipe-manager.service.d.ts +9 -0
- package/core/services/utils.service.d.ts +6 -0
- package/core/services/viewport.service.d.ts +37 -0
- package/core/types/types.d.ts +208 -0
- package/core/utils/build-utils.d.ts +14 -0
- package/core/utils/dom.d.ts +16 -0
- package/core/utils/event-notifier.d.ts +26 -0
- package/core/utils/expression-parser.d.ts +8 -0
- package/core/utils/id-generator.d.ts +5 -0
- package/core/utils/lru-cache.d.ts +23 -0
- package/core/utils/utils.d.ts +279 -0
- package/core/utils/watcher.d.ts +13 -0
- package/core/utils/wm-project-properties.d.ts +4 -0
- package/http/.npmignore +2 -0
- package/http/bundles/index.umd.js +421 -0
- package/http/esm2022/http.service.mjs +301 -0
- package/http/esm2022/index.mjs +5 -0
- package/http/esm2022/public_api.mjs +4 -0
- package/http/esm2022/wm-http-request.mjs +48 -0
- package/http/esm2022/wm-http-response.mjs +52 -0
- package/http/fesm2022/index.mjs +405 -0
- package/http/fesm2022/index.mjs.map +1 -0
- package/http/http.service.d.ts +70 -0
- package/http/index.d.ts +5 -0
- package/http/package.json +25 -0
- package/http/public_api.d.ts +3 -0
- package/http/wm-http-request.d.ts +24 -0
- package/http/wm-http-response.d.ts +22 -0
- package/locales/angular/global/af-na.js +24 -0
- package/locales/angular/global/af.js +24 -0
- package/locales/angular/global/agq.js +22 -0
- package/locales/angular/global/ak.js +24 -0
- package/locales/angular/global/am.js +24 -0
- package/locales/angular/global/ar-ae.js +32 -0
- package/locales/angular/global/ar-bh.js +32 -0
- package/locales/angular/global/ar-dj.js +32 -0
- package/locales/angular/global/ar-dz.js +32 -0
- package/locales/angular/global/ar-eg.js +32 -0
- package/locales/angular/global/ar-eh.js +32 -0
- package/locales/angular/global/ar-er.js +32 -0
- package/locales/angular/global/ar-il.js +32 -0
- package/locales/angular/global/ar-iq.js +32 -0
- package/locales/angular/global/ar-jo.js +32 -0
- package/locales/angular/global/ar-km.js +32 -0
- package/locales/angular/global/ar-kw.js +32 -0
- package/locales/angular/global/ar-lb.js +32 -0
- package/locales/angular/global/ar-ly.js +32 -0
- package/locales/angular/global/ar-ma.js +32 -0
- package/locales/angular/global/ar-mr.js +32 -0
- package/locales/angular/global/ar-om.js +32 -0
- package/locales/angular/global/ar-ps.js +32 -0
- package/locales/angular/global/ar-qa.js +32 -0
- package/locales/angular/global/ar-sa.js +32 -0
- package/locales/angular/global/ar-sd.js +32 -0
- package/locales/angular/global/ar-so.js +32 -0
- package/locales/angular/global/ar-ss.js +32 -0
- package/locales/angular/global/ar-sy.js +32 -0
- package/locales/angular/global/ar-td.js +32 -0
- package/locales/angular/global/ar-tn.js +32 -0
- package/locales/angular/global/ar-ye.js +32 -0
- package/locales/angular/global/ar.js +32 -0
- package/locales/angular/global/as.js +24 -0
- package/locales/angular/global/asa.js +24 -0
- package/locales/angular/global/ast.js +24 -0
- package/locales/angular/global/az-cyrl.js +22 -0
- package/locales/angular/global/az-latn.js +24 -0
- package/locales/angular/global/az.js +24 -0
- package/locales/angular/global/bas.js +22 -0
- package/locales/angular/global/be-tarask.js +28 -0
- package/locales/angular/global/be.js +28 -0
- package/locales/angular/global/bem.js +24 -0
- package/locales/angular/global/bez.js +24 -0
- package/locales/angular/global/bg.js +24 -0
- package/locales/angular/global/bm.js +22 -0
- package/locales/angular/global/bn-in.js +24 -0
- package/locales/angular/global/bn.js +24 -0
- package/locales/angular/global/bo-in.js +22 -0
- package/locales/angular/global/bo.js +22 -0
- package/locales/angular/global/br.js +30 -0
- package/locales/angular/global/brx.js +24 -0
- package/locales/angular/global/bs-cyrl.js +22 -0
- package/locales/angular/global/bs-latn.js +26 -0
- package/locales/angular/global/bs.js +26 -0
- package/locales/angular/global/ca-ad.js +24 -0
- package/locales/angular/global/ca-es-valencia.js +24 -0
- package/locales/angular/global/ca-fr.js +24 -0
- package/locales/angular/global/ca-it.js +24 -0
- package/locales/angular/global/ca.js +24 -0
- package/locales/angular/global/ccp-in.js +22 -0
- package/locales/angular/global/ccp.js +22 -0
- package/locales/angular/global/ce.js +24 -0
- package/locales/angular/global/ceb.js +24 -0
- package/locales/angular/global/cgg.js +24 -0
- package/locales/angular/global/chr.js +24 -0
- package/locales/angular/global/ckb-ir.js +24 -0
- package/locales/angular/global/ckb.js +24 -0
- package/locales/angular/global/cs.js +28 -0
- package/locales/angular/global/cy.js +32 -0
- package/locales/angular/global/da-gl.js +24 -0
- package/locales/angular/global/da.js +24 -0
- package/locales/angular/global/dav.js +22 -0
- package/locales/angular/global/de-at.js +24 -0
- package/locales/angular/global/de-be.js +24 -0
- package/locales/angular/global/de-ch.js +24 -0
- package/locales/angular/global/de-it.js +24 -0
- package/locales/angular/global/de-li.js +24 -0
- package/locales/angular/global/de-lu.js +24 -0
- package/locales/angular/global/de.js +24 -0
- package/locales/angular/global/dje.js +22 -0
- package/locales/angular/global/doi.js +24 -0
- package/locales/angular/global/dsb.js +28 -0
- package/locales/angular/global/dua.js +22 -0
- package/locales/angular/global/dyo.js +22 -0
- package/locales/angular/global/dz.js +22 -0
- package/locales/angular/global/ebu.js +22 -0
- package/locales/angular/global/ee-tg.js +24 -0
- package/locales/angular/global/ee.js +24 -0
- package/locales/angular/global/el-cy.js +24 -0
- package/locales/angular/global/el.js +24 -0
- package/locales/angular/global/en-001.js +24 -0
- package/locales/angular/global/en-150.js +24 -0
- package/locales/angular/global/en-ae.js +24 -0
- package/locales/angular/global/en-ag.js +24 -0
- package/locales/angular/global/en-ai.js +24 -0
- package/locales/angular/global/en-as.js +24 -0
- package/locales/angular/global/en-at.js +24 -0
- package/locales/angular/global/en-au.js +24 -0
- package/locales/angular/global/en-bb.js +24 -0
- package/locales/angular/global/en-be.js +24 -0
- package/locales/angular/global/en-bi.js +24 -0
- package/locales/angular/global/en-bm.js +24 -0
- package/locales/angular/global/en-bs.js +24 -0
- package/locales/angular/global/en-bw.js +24 -0
- package/locales/angular/global/en-bz.js +24 -0
- package/locales/angular/global/en-ca.js +24 -0
- package/locales/angular/global/en-cc.js +24 -0
- package/locales/angular/global/en-ch.js +24 -0
- package/locales/angular/global/en-ck.js +24 -0
- package/locales/angular/global/en-cm.js +24 -0
- package/locales/angular/global/en-cx.js +24 -0
- package/locales/angular/global/en-cy.js +24 -0
- package/locales/angular/global/en-de.js +24 -0
- package/locales/angular/global/en-dg.js +24 -0
- package/locales/angular/global/en-dk.js +24 -0
- package/locales/angular/global/en-dm.js +24 -0
- package/locales/angular/global/en-er.js +24 -0
- package/locales/angular/global/en-fi.js +24 -0
- package/locales/angular/global/en-fj.js +24 -0
- package/locales/angular/global/en-fk.js +24 -0
- package/locales/angular/global/en-fm.js +24 -0
- package/locales/angular/global/en-gb.js +24 -0
- package/locales/angular/global/en-gd.js +24 -0
- package/locales/angular/global/en-gg.js +24 -0
- package/locales/angular/global/en-gh.js +24 -0
- package/locales/angular/global/en-gi.js +24 -0
- package/locales/angular/global/en-gm.js +24 -0
- package/locales/angular/global/en-gu.js +24 -0
- package/locales/angular/global/en-gy.js +24 -0
- package/locales/angular/global/en-hk.js +24 -0
- package/locales/angular/global/en-ie.js +24 -0
- package/locales/angular/global/en-il.js +24 -0
- package/locales/angular/global/en-im.js +24 -0
- package/locales/angular/global/en-in.js +24 -0
- package/locales/angular/global/en-io.js +24 -0
- package/locales/angular/global/en-je.js +24 -0
- package/locales/angular/global/en-jm.js +24 -0
- package/locales/angular/global/en-ke.js +24 -0
- package/locales/angular/global/en-ki.js +24 -0
- package/locales/angular/global/en-kn.js +24 -0
- package/locales/angular/global/en-ky.js +24 -0
- package/locales/angular/global/en-lc.js +24 -0
- package/locales/angular/global/en-lr.js +24 -0
- package/locales/angular/global/en-ls.js +24 -0
- package/locales/angular/global/en-mg.js +24 -0
- package/locales/angular/global/en-mh.js +24 -0
- package/locales/angular/global/en-mo.js +24 -0
- package/locales/angular/global/en-mp.js +24 -0
- package/locales/angular/global/en-ms.js +24 -0
- package/locales/angular/global/en-mt.js +24 -0
- package/locales/angular/global/en-mu.js +24 -0
- package/locales/angular/global/en-mv.js +24 -0
- package/locales/angular/global/en-mw.js +24 -0
- package/locales/angular/global/en-my.js +24 -0
- package/locales/angular/global/en-na.js +24 -0
- package/locales/angular/global/en-nf.js +24 -0
- package/locales/angular/global/en-ng.js +24 -0
- package/locales/angular/global/en-nl.js +24 -0
- package/locales/angular/global/en-nr.js +24 -0
- package/locales/angular/global/en-nu.js +24 -0
- package/locales/angular/global/en-nz.js +24 -0
- package/locales/angular/global/en-pg.js +24 -0
- package/locales/angular/global/en-ph.js +24 -0
- package/locales/angular/global/en-pk.js +24 -0
- package/locales/angular/global/en-pn.js +24 -0
- package/locales/angular/global/en-pr.js +24 -0
- package/locales/angular/global/en-pw.js +24 -0
- package/locales/angular/global/en-rw.js +24 -0
- package/locales/angular/global/en-sb.js +24 -0
- package/locales/angular/global/en-sc.js +24 -0
- package/locales/angular/global/en-sd.js +24 -0
- package/locales/angular/global/en-se.js +24 -0
- package/locales/angular/global/en-sg.js +24 -0
- package/locales/angular/global/en-sh.js +24 -0
- package/locales/angular/global/en-si.js +24 -0
- package/locales/angular/global/en-sl.js +24 -0
- package/locales/angular/global/en-ss.js +24 -0
- package/locales/angular/global/en-sx.js +24 -0
- package/locales/angular/global/en-sz.js +24 -0
- package/locales/angular/global/en-tc.js +24 -0
- package/locales/angular/global/en-tk.js +24 -0
- package/locales/angular/global/en-to.js +24 -0
- package/locales/angular/global/en-tt.js +24 -0
- package/locales/angular/global/en-tv.js +24 -0
- package/locales/angular/global/en-tz.js +24 -0
- package/locales/angular/global/en-ug.js +24 -0
- package/locales/angular/global/en-um.js +24 -0
- package/locales/angular/global/en-vc.js +24 -0
- package/locales/angular/global/en-vg.js +24 -0
- package/locales/angular/global/en-vi.js +24 -0
- package/locales/angular/global/en-vu.js +24 -0
- package/locales/angular/global/en-ws.js +24 -0
- package/locales/angular/global/en-za.js +24 -0
- package/locales/angular/global/en-zm.js +24 -0
- package/locales/angular/global/en-zw.js +24 -0
- package/locales/angular/global/en.js +24 -0
- package/locales/angular/global/eo.js +24 -0
- package/locales/angular/global/es-419.js +26 -0
- package/locales/angular/global/es-ar.js +26 -0
- package/locales/angular/global/es-bo.js +26 -0
- package/locales/angular/global/es-br.js +26 -0
- package/locales/angular/global/es-bz.js +26 -0
- package/locales/angular/global/es-cl.js +26 -0
- package/locales/angular/global/es-co.js +26 -0
- package/locales/angular/global/es-cr.js +26 -0
- package/locales/angular/global/es-cu.js +26 -0
- package/locales/angular/global/es-do.js +26 -0
- package/locales/angular/global/es-ea.js +26 -0
- package/locales/angular/global/es-ec.js +26 -0
- package/locales/angular/global/es-gq.js +26 -0
- package/locales/angular/global/es-gt.js +26 -0
- package/locales/angular/global/es-hn.js +26 -0
- package/locales/angular/global/es-ic.js +26 -0
- package/locales/angular/global/es-mx.js +26 -0
- package/locales/angular/global/es-ni.js +26 -0
- package/locales/angular/global/es-pa.js +26 -0
- package/locales/angular/global/es-pe.js +26 -0
- package/locales/angular/global/es-ph.js +26 -0
- package/locales/angular/global/es-pr.js +26 -0
- package/locales/angular/global/es-py.js +26 -0
- package/locales/angular/global/es-sv.js +26 -0
- package/locales/angular/global/es-us.js +26 -0
- package/locales/angular/global/es-uy.js +26 -0
- package/locales/angular/global/es-ve.js +26 -0
- package/locales/angular/global/es.js +26 -0
- package/locales/angular/global/et.js +24 -0
- package/locales/angular/global/eu.js +24 -0
- package/locales/angular/global/ewo.js +22 -0
- package/locales/angular/global/fa-af.js +24 -0
- package/locales/angular/global/fa.js +24 -0
- package/locales/angular/global/ff-adlm-bf.js +22 -0
- package/locales/angular/global/ff-adlm-cm.js +22 -0
- package/locales/angular/global/ff-adlm-gh.js +22 -0
- package/locales/angular/global/ff-adlm-gm.js +22 -0
- package/locales/angular/global/ff-adlm-gw.js +22 -0
- package/locales/angular/global/ff-adlm-lr.js +22 -0
- package/locales/angular/global/ff-adlm-mr.js +22 -0
- package/locales/angular/global/ff-adlm-ne.js +22 -0
- package/locales/angular/global/ff-adlm-ng.js +22 -0
- package/locales/angular/global/ff-adlm-sl.js +22 -0
- package/locales/angular/global/ff-adlm-sn.js +22 -0
- package/locales/angular/global/ff-adlm.js +22 -0
- package/locales/angular/global/ff-cm.js +74 -0
- package/locales/angular/global/ff-gn.js +74 -0
- package/locales/angular/global/ff-latn-bf.js +24 -0
- package/locales/angular/global/ff-latn-cm.js +24 -0
- package/locales/angular/global/ff-latn-gh.js +24 -0
- package/locales/angular/global/ff-latn-gm.js +24 -0
- package/locales/angular/global/ff-latn-gn.js +24 -0
- package/locales/angular/global/ff-latn-gw.js +24 -0
- package/locales/angular/global/ff-latn-lr.js +24 -0
- package/locales/angular/global/ff-latn-mr.js +24 -0
- package/locales/angular/global/ff-latn-ne.js +24 -0
- package/locales/angular/global/ff-latn-ng.js +24 -0
- package/locales/angular/global/ff-latn-sl.js +24 -0
- package/locales/angular/global/ff-latn.js +24 -0
- package/locales/angular/global/ff-mr.js +74 -0
- package/locales/angular/global/ff.js +24 -0
- package/locales/angular/global/fi.js +24 -0
- package/locales/angular/global/fil.js +24 -0
- package/locales/angular/global/fo-dk.js +24 -0
- package/locales/angular/global/fo.js +24 -0
- package/locales/angular/global/fr-be.js +26 -0
- package/locales/angular/global/fr-bf.js +26 -0
- package/locales/angular/global/fr-bi.js +26 -0
- package/locales/angular/global/fr-bj.js +26 -0
- package/locales/angular/global/fr-bl.js +26 -0
- package/locales/angular/global/fr-ca.js +26 -0
- package/locales/angular/global/fr-cd.js +26 -0
- package/locales/angular/global/fr-cf.js +26 -0
- package/locales/angular/global/fr-cg.js +26 -0
- package/locales/angular/global/fr-ch.js +26 -0
- package/locales/angular/global/fr-ci.js +26 -0
- package/locales/angular/global/fr-cm.js +26 -0
- package/locales/angular/global/fr-dj.js +26 -0
- package/locales/angular/global/fr-dz.js +26 -0
- package/locales/angular/global/fr-ga.js +26 -0
- package/locales/angular/global/fr-gf.js +26 -0
- package/locales/angular/global/fr-gn.js +26 -0
- package/locales/angular/global/fr-gp.js +26 -0
- package/locales/angular/global/fr-gq.js +26 -0
- package/locales/angular/global/fr-ht.js +26 -0
- package/locales/angular/global/fr-km.js +26 -0
- package/locales/angular/global/fr-lu.js +26 -0
- package/locales/angular/global/fr-ma.js +26 -0
- package/locales/angular/global/fr-mc.js +26 -0
- package/locales/angular/global/fr-mf.js +26 -0
- package/locales/angular/global/fr-mg.js +26 -0
- package/locales/angular/global/fr-ml.js +26 -0
- package/locales/angular/global/fr-mq.js +26 -0
- package/locales/angular/global/fr-mr.js +26 -0
- package/locales/angular/global/fr-mu.js +26 -0
- package/locales/angular/global/fr-nc.js +26 -0
- package/locales/angular/global/fr-ne.js +26 -0
- package/locales/angular/global/fr-pf.js +26 -0
- package/locales/angular/global/fr-pm.js +26 -0
- package/locales/angular/global/fr-re.js +26 -0
- package/locales/angular/global/fr-rw.js +26 -0
- package/locales/angular/global/fr-sc.js +26 -0
- package/locales/angular/global/fr-sn.js +26 -0
- package/locales/angular/global/fr-sy.js +26 -0
- package/locales/angular/global/fr-td.js +26 -0
- package/locales/angular/global/fr-tg.js +26 -0
- package/locales/angular/global/fr-tn.js +26 -0
- package/locales/angular/global/fr-vu.js +26 -0
- package/locales/angular/global/fr-wf.js +26 -0
- package/locales/angular/global/fr-yt.js +26 -0
- package/locales/angular/global/fr.js +26 -0
- package/locales/angular/global/fur.js +24 -0
- package/locales/angular/global/fy.js +24 -0
- package/locales/angular/global/ga-gb.js +30 -0
- package/locales/angular/global/ga.js +30 -0
- package/locales/angular/global/gd.js +28 -0
- package/locales/angular/global/gl.js +24 -0
- package/locales/angular/global/gsw-fr.js +24 -0
- package/locales/angular/global/gsw-li.js +24 -0
- package/locales/angular/global/gsw.js +24 -0
- package/locales/angular/global/gu.js +24 -0
- package/locales/angular/global/guz.js +22 -0
- package/locales/angular/global/gv.js +30 -0
- package/locales/angular/global/ha-gh.js +24 -0
- package/locales/angular/global/ha-ne.js +24 -0
- package/locales/angular/global/ha.js +24 -0
- package/locales/angular/global/haw.js +24 -0
- package/locales/angular/global/he.js +28 -0
- package/locales/angular/global/hi-latn.js +24 -0
- package/locales/angular/global/hi.js +24 -0
- package/locales/angular/global/hr-ba.js +26 -0
- package/locales/angular/global/hr.js +26 -0
- package/locales/angular/global/hsb.js +28 -0
- package/locales/angular/global/hu.js +24 -0
- package/locales/angular/global/hy.js +24 -0
- package/locales/angular/global/ia.js +24 -0
- package/locales/angular/global/id.js +22 -0
- package/locales/angular/global/ig.js +22 -0
- package/locales/angular/global/ii.js +22 -0
- package/locales/angular/global/is.js +24 -0
- package/locales/angular/global/it-ch.js +26 -0
- package/locales/angular/global/it-sm.js +26 -0
- package/locales/angular/global/it-va.js +26 -0
- package/locales/angular/global/it.js +26 -0
- package/locales/angular/global/ja.js +22 -0
- package/locales/angular/global/jgo.js +24 -0
- package/locales/angular/global/jmc.js +24 -0
- package/locales/angular/global/jv.js +22 -0
- package/locales/angular/global/ka.js +24 -0
- package/locales/angular/global/kab.js +24 -0
- package/locales/angular/global/kam.js +22 -0
- package/locales/angular/global/kde.js +22 -0
- package/locales/angular/global/kea.js +22 -0
- package/locales/angular/global/kgp.js +22 -0
- package/locales/angular/global/khq.js +22 -0
- package/locales/angular/global/ki.js +22 -0
- package/locales/angular/global/kk.js +24 -0
- package/locales/angular/global/kkj.js +24 -0
- package/locales/angular/global/kl.js +24 -0
- package/locales/angular/global/kln.js +22 -0
- package/locales/angular/global/km.js +22 -0
- package/locales/angular/global/kn.js +24 -0
- package/locales/angular/global/ko-kp.js +22 -0
- package/locales/angular/global/ko.js +22 -0
- package/locales/angular/global/kok.js +22 -0
- package/locales/angular/global/ks-arab.js +24 -0
- package/locales/angular/global/ks-deva.js +22 -0
- package/locales/angular/global/ks.js +24 -0
- package/locales/angular/global/ksb.js +24 -0
- package/locales/angular/global/ksf.js +22 -0
- package/locales/angular/global/ksh.js +26 -0
- package/locales/angular/global/ku.js +24 -0
- package/locales/angular/global/kw.js +32 -0
- package/locales/angular/global/ky.js +24 -0
- package/locales/angular/global/lag.js +26 -0
- package/locales/angular/global/lb.js +24 -0
- package/locales/angular/global/lg.js +24 -0
- package/locales/angular/global/lkt.js +22 -0
- package/locales/angular/global/ln-ao.js +24 -0
- package/locales/angular/global/ln-cf.js +24 -0
- package/locales/angular/global/ln-cg.js +24 -0
- package/locales/angular/global/ln.js +24 -0
- package/locales/angular/global/lo.js +22 -0
- package/locales/angular/global/lrc-iq.js +22 -0
- package/locales/angular/global/lrc.js +22 -0
- package/locales/angular/global/lt.js +28 -0
- package/locales/angular/global/lu.js +22 -0
- package/locales/angular/global/luo.js +22 -0
- package/locales/angular/global/luy.js +22 -0
- package/locales/angular/global/lv.js +26 -0
- package/locales/angular/global/mai.js +22 -0
- package/locales/angular/global/mas-tz.js +24 -0
- package/locales/angular/global/mas.js +24 -0
- package/locales/angular/global/mer.js +22 -0
- package/locales/angular/global/mfe.js +22 -0
- package/locales/angular/global/mg.js +24 -0
- package/locales/angular/global/mgh.js +22 -0
- package/locales/angular/global/mgo.js +24 -0
- package/locales/angular/global/mi.js +22 -0
- package/locales/angular/global/mk.js +24 -0
- package/locales/angular/global/ml.js +24 -0
- package/locales/angular/global/mn.js +24 -0
- package/locales/angular/global/mni-beng.js +22 -0
- package/locales/angular/global/mni.js +22 -0
- package/locales/angular/global/mr.js +24 -0
- package/locales/angular/global/ms-bn.js +22 -0
- package/locales/angular/global/ms-id.js +22 -0
- package/locales/angular/global/ms-sg.js +22 -0
- package/locales/angular/global/ms.js +22 -0
- package/locales/angular/global/mt.js +28 -0
- package/locales/angular/global/mua.js +22 -0
- package/locales/angular/global/my.js +22 -0
- package/locales/angular/global/mzn.js +22 -0
- package/locales/angular/global/naq.js +26 -0
- package/locales/angular/global/nb-sj.js +24 -0
- package/locales/angular/global/nb.js +24 -0
- package/locales/angular/global/nd.js +24 -0
- package/locales/angular/global/nds-nl.js +22 -0
- package/locales/angular/global/nds.js +22 -0
- package/locales/angular/global/ne-in.js +24 -0
- package/locales/angular/global/ne.js +24 -0
- package/locales/angular/global/nl-aw.js +24 -0
- package/locales/angular/global/nl-be.js +24 -0
- package/locales/angular/global/nl-bq.js +24 -0
- package/locales/angular/global/nl-cw.js +24 -0
- package/locales/angular/global/nl-sr.js +24 -0
- package/locales/angular/global/nl-sx.js +24 -0
- package/locales/angular/global/nl.js +24 -0
- package/locales/angular/global/nmg.js +22 -0
- package/locales/angular/global/nn.js +24 -0
- package/locales/angular/global/nnh.js +24 -0
- package/locales/angular/global/no.js +24 -0
- package/locales/angular/global/nus.js +22 -0
- package/locales/angular/global/nyn.js +24 -0
- package/locales/angular/global/om-ke.js +24 -0
- package/locales/angular/global/om.js +24 -0
- package/locales/angular/global/or.js +24 -0
- package/locales/angular/global/os-ru.js +24 -0
- package/locales/angular/global/os.js +24 -0
- package/locales/angular/global/pa-arab.js +22 -0
- package/locales/angular/global/pa-guru.js +24 -0
- package/locales/angular/global/pa.js +24 -0
- package/locales/angular/global/pcm.js +24 -0
- package/locales/angular/global/pl.js +28 -0
- package/locales/angular/global/ps-pk.js +24 -0
- package/locales/angular/global/ps.js +24 -0
- package/locales/angular/global/pt-ao.js +26 -0
- package/locales/angular/global/pt-ch.js +26 -0
- package/locales/angular/global/pt-cv.js +26 -0
- package/locales/angular/global/pt-gq.js +26 -0
- package/locales/angular/global/pt-gw.js +26 -0
- package/locales/angular/global/pt-lu.js +26 -0
- package/locales/angular/global/pt-mo.js +26 -0
- package/locales/angular/global/pt-mz.js +26 -0
- package/locales/angular/global/pt-pt.js +26 -0
- package/locales/angular/global/pt-st.js +26 -0
- package/locales/angular/global/pt-tl.js +26 -0
- package/locales/angular/global/pt.js +26 -0
- package/locales/angular/global/qu-bo.js +22 -0
- package/locales/angular/global/qu-ec.js +22 -0
- package/locales/angular/global/qu.js +22 -0
- package/locales/angular/global/rm.js +24 -0
- package/locales/angular/global/rn.js +22 -0
- package/locales/angular/global/ro-md.js +26 -0
- package/locales/angular/global/ro.js +26 -0
- package/locales/angular/global/rof.js +24 -0
- package/locales/angular/global/ru-by.js +28 -0
- package/locales/angular/global/ru-kg.js +28 -0
- package/locales/angular/global/ru-kz.js +28 -0
- package/locales/angular/global/ru-md.js +28 -0
- package/locales/angular/global/ru-ua.js +28 -0
- package/locales/angular/global/ru.js +28 -0
- package/locales/angular/global/rw.js +22 -0
- package/locales/angular/global/rwk.js +24 -0
- package/locales/angular/global/sa.js +22 -0
- package/locales/angular/global/sah.js +22 -0
- package/locales/angular/global/saq.js +24 -0
- package/locales/angular/global/sat-olck.js +26 -0
- package/locales/angular/global/sat.js +26 -0
- package/locales/angular/global/sbp.js +22 -0
- package/locales/angular/global/sc.js +24 -0
- package/locales/angular/global/sd-arab.js +24 -0
- package/locales/angular/global/sd-deva.js +22 -0
- package/locales/angular/global/sd.js +24 -0
- package/locales/angular/global/se-fi.js +26 -0
- package/locales/angular/global/se-se.js +26 -0
- package/locales/angular/global/se.js +26 -0
- package/locales/angular/global/seh.js +24 -0
- package/locales/angular/global/ses.js +22 -0
- package/locales/angular/global/sg.js +22 -0
- package/locales/angular/global/shi-latn.js +22 -0
- package/locales/angular/global/shi-tfng.js +26 -0
- package/locales/angular/global/shi.js +26 -0
- package/locales/angular/global/si.js +24 -0
- package/locales/angular/global/sk.js +28 -0
- package/locales/angular/global/sl.js +28 -0
- package/locales/angular/global/smn.js +26 -0
- package/locales/angular/global/sn.js +24 -0
- package/locales/angular/global/so-dj.js +24 -0
- package/locales/angular/global/so-et.js +24 -0
- package/locales/angular/global/so-ke.js +24 -0
- package/locales/angular/global/so.js +24 -0
- package/locales/angular/global/sq-mk.js +24 -0
- package/locales/angular/global/sq-xk.js +24 -0
- package/locales/angular/global/sq.js +24 -0
- package/locales/angular/global/sr-cyrl-ba.js +26 -0
- package/locales/angular/global/sr-cyrl-me.js +26 -0
- package/locales/angular/global/sr-cyrl-xk.js +26 -0
- package/locales/angular/global/sr-cyrl.js +26 -0
- package/locales/angular/global/sr-latn-ba.js +22 -0
- package/locales/angular/global/sr-latn-me.js +22 -0
- package/locales/angular/global/sr-latn-xk.js +22 -0
- package/locales/angular/global/sr-latn.js +22 -0
- package/locales/angular/global/sr.js +26 -0
- package/locales/angular/global/su-latn.js +22 -0
- package/locales/angular/global/su.js +22 -0
- package/locales/angular/global/sv-ax.js +24 -0
- package/locales/angular/global/sv-fi.js +24 -0
- package/locales/angular/global/sv.js +24 -0
- package/locales/angular/global/sw-cd.js +24 -0
- package/locales/angular/global/sw-ke.js +24 -0
- package/locales/angular/global/sw-ug.js +24 -0
- package/locales/angular/global/sw.js +24 -0
- package/locales/angular/global/ta-lk.js +24 -0
- package/locales/angular/global/ta-my.js +24 -0
- package/locales/angular/global/ta-sg.js +24 -0
- package/locales/angular/global/ta.js +24 -0
- package/locales/angular/global/te.js +24 -0
- package/locales/angular/global/teo-ke.js +24 -0
- package/locales/angular/global/teo.js +24 -0
- package/locales/angular/global/tg.js +22 -0
- package/locales/angular/global/th.js +22 -0
- package/locales/angular/global/ti-er.js +24 -0
- package/locales/angular/global/ti.js +24 -0
- package/locales/angular/global/tk.js +24 -0
- package/locales/angular/global/to.js +22 -0
- package/locales/angular/global/tr-cy.js +24 -0
- package/locales/angular/global/tr.js +24 -0
- package/locales/angular/global/tt.js +22 -0
- package/locales/angular/global/twq.js +22 -0
- package/locales/angular/global/tzm.js +24 -0
- package/locales/angular/global/ug.js +24 -0
- package/locales/angular/global/uk.js +28 -0
- package/locales/angular/global/und.js +24 -0
- package/locales/angular/global/ur-in.js +24 -0
- package/locales/angular/global/ur.js +24 -0
- package/locales/angular/global/uz-arab.js +22 -0
- package/locales/angular/global/uz-cyrl.js +22 -0
- package/locales/angular/global/uz-latn.js +24 -0
- package/locales/angular/global/uz.js +24 -0
- package/locales/angular/global/vai-latn.js +22 -0
- package/locales/angular/global/vai-vaii.js +22 -0
- package/locales/angular/global/vai.js +22 -0
- package/locales/angular/global/vi.js +22 -0
- package/locales/angular/global/vun.js +24 -0
- package/locales/angular/global/wae.js +24 -0
- package/locales/angular/global/wo.js +22 -0
- package/locales/angular/global/xh.js +24 -0
- package/locales/angular/global/xog.js +24 -0
- package/locales/angular/global/yav.js +22 -0
- package/locales/angular/global/yi.js +24 -0
- package/locales/angular/global/yo-bj.js +22 -0
- package/locales/angular/global/yo.js +22 -0
- package/locales/angular/global/yrl-co.js +22 -0
- package/locales/angular/global/yrl-ve.js +22 -0
- package/locales/angular/global/yrl.js +22 -0
- package/locales/angular/global/yue-hans.js +22 -0
- package/locales/angular/global/yue-hant.js +22 -0
- package/locales/angular/global/yue.js +22 -0
- package/locales/angular/global/zgh.js +22 -0
- package/locales/angular/global/zh-hans-hk.js +22 -0
- package/locales/angular/global/zh-hans-mo.js +22 -0
- package/locales/angular/global/zh-hans-sg.js +22 -0
- package/locales/angular/global/zh-hans.js +22 -0
- package/locales/angular/global/zh-hant-hk.js +22 -0
- package/locales/angular/global/zh-hant-mo.js +22 -0
- package/locales/angular/global/zh-hant.js +22 -0
- package/locales/angular/global/zh.js +22 -0
- package/locales/angular/global/zu.js +24 -0
- package/locales/moment/af.js +82 -0
- package/locales/moment/ar-dz.js +167 -0
- package/locales/moment/ar-kw.js +66 -0
- package/locales/moment/ar-ly.js +182 -0
- package/locales/moment/ar-ma.js +67 -0
- package/locales/moment/ar-ps.js +123 -0
- package/locales/moment/ar-sa.js +116 -0
- package/locales/moment/ar-tn.js +66 -0
- package/locales/moment/ar.js +200 -0
- package/locales/moment/az.js +113 -0
- package/locales/moment/be.js +153 -0
- package/locales/moment/bg.js +98 -0
- package/locales/moment/bm.js +62 -0
- package/locales/moment/bn-bd.js +140 -0
- package/locales/moment/bn.js +130 -0
- package/locales/moment/bo.js +135 -0
- package/locales/moment/br.js +179 -0
- package/locales/moment/bs.js +171 -0
- package/locales/moment/ca.js +111 -0
- package/locales/moment/cs.js +192 -0
- package/locales/moment/cv.js +74 -0
- package/locales/moment/cy.js +109 -0
- package/locales/moment/da.js +64 -0
- package/locales/moment/de-at.js +90 -0
- package/locales/moment/de-ch.js +87 -0
- package/locales/moment/de.js +89 -0
- package/locales/moment/dv.js +101 -0
- package/locales/moment/el.js +117 -0
- package/locales/moment/en-au.js +79 -0
- package/locales/moment/en-ca.js +75 -0
- package/locales/moment/en-gb.js +79 -0
- package/locales/moment/en-ie.js +79 -0
- package/locales/moment/en-il.js +75 -0
- package/locales/moment/en-in.js +79 -0
- package/locales/moment/en-nz.js +79 -0
- package/locales/moment/en-sg.js +79 -0
- package/locales/moment/eo.js +79 -0
- package/locales/moment/es-do.js +119 -0
- package/locales/moment/es-mx.js +121 -0
- package/locales/moment/es-us.js +121 -0
- package/locales/moment/es.js +121 -0
- package/locales/moment/et.js +89 -0
- package/locales/moment/eu.js +76 -0
- package/locales/moment/fa.js +124 -0
- package/locales/moment/fi.js +135 -0
- package/locales/moment/fil.js +69 -0
- package/locales/moment/fo.js +68 -0
- package/locales/moment/fr-ca.js +81 -0
- package/locales/moment/fr-ch.js +85 -0
- package/locales/moment/fr.js +119 -0
- package/locales/moment/fy.js +86 -0
- package/locales/moment/ga.js +106 -0
- package/locales/moment/gd.js +106 -0
- package/locales/moment/gl.js +86 -0
- package/locales/moment/gom-deva.js +137 -0
- package/locales/moment/gom-latn.js +135 -0
- package/locales/moment/gu.js +133 -0
- package/locales/moment/he.js +105 -0
- package/locales/moment/hi.js +179 -0
- package/locales/moment/hr.js +167 -0
- package/locales/moment/hu.js +129 -0
- package/locales/moment/hy-am.js +105 -0
- package/locales/moment/id.js +87 -0
- package/locales/moment/is.js +151 -0
- package/locales/moment/it-ch.js +75 -0
- package/locales/moment/it.js +117 -0
- package/locales/moment/ja.js +159 -0
- package/locales/moment/jv.js +87 -0
- package/locales/moment/ka.js +103 -0
- package/locales/moment/kk.js +93 -0
- package/locales/moment/km.js +114 -0
- package/locales/moment/kn.js +135 -0
- package/locales/moment/ko.js +86 -0
- package/locales/moment/ku-kmr.js +125 -0
- package/locales/moment/ku.js +129 -0
- package/locales/moment/ky.js +95 -0
- package/locales/moment/lb.js +148 -0
- package/locales/moment/lo.js +77 -0
- package/locales/moment/lt.js +136 -0
- package/locales/moment/lv.js +105 -0
- package/locales/moment/me.js +128 -0
- package/locales/moment/mi.js +71 -0
- package/locales/moment/mk.js +97 -0
- package/locales/moment/ml.js +93 -0
- package/locales/moment/mn.js +111 -0
- package/locales/moment/mr.js +214 -0
- package/locales/moment/ms-my.js +87 -0
- package/locales/moment/ms.js +86 -0
- package/locales/moment/mt.js +67 -0
- package/locales/moment/my.js +102 -0
- package/locales/moment/nb.js +71 -0
- package/locales/moment/ne.js +132 -0
- package/locales/moment/nl-be.js +113 -0
- package/locales/moment/nl.js +115 -0
- package/locales/moment/nn.js +70 -0
- package/locales/moment/oc-lnc.js +96 -0
- package/locales/moment/pa-in.js +133 -0
- package/locales/moment/pl.js +151 -0
- package/locales/moment/pt-br.js +69 -0
- package/locales/moment/pt.js +74 -0
- package/locales/moment/ro.js +87 -0
- package/locales/moment/ru.js +224 -0
- package/locales/moment/sd.js +92 -0
- package/locales/moment/se.js +68 -0
- package/locales/moment/si.js +80 -0
- package/locales/moment/sk.js +156 -0
- package/locales/moment/sl.js +182 -0
- package/locales/moment/sq.js +76 -0
- package/locales/moment/sr-cyrl.js +138 -0
- package/locales/moment/sr.js +140 -0
- package/locales/moment/ss.js +95 -0
- package/locales/moment/sv.js +79 -0
- package/locales/moment/sw.js +66 -0
- package/locales/moment/ta.js +142 -0
- package/locales/moment/te.js +99 -0
- package/locales/moment/tet.js +79 -0
- package/locales/moment/tg.js +128 -0
- package/locales/moment/th.js +76 -0
- package/locales/moment/tk.js +102 -0
- package/locales/moment/tl-ph.js +68 -0
- package/locales/moment/tlh.js +135 -0
- package/locales/moment/tr.js +117 -0
- package/locales/moment/tzl.js +100 -0
- package/locales/moment/tzm-latn.js +65 -0
- package/locales/moment/tzm.js +65 -0
- package/locales/moment/ug-cn.js +122 -0
- package/locales/moment/uk.js +178 -0
- package/locales/moment/ur.js +93 -0
- package/locales/moment/uz-latn.js +65 -0
- package/locales/moment/uz.js +62 -0
- package/locales/moment/vi.js +91 -0
- package/locales/moment/x-pseudo.js +84 -0
- package/locales/moment/yo.js +64 -0
- package/locales/moment/zh-cn.js +131 -0
- package/locales/moment/zh-hk.js +112 -0
- package/locales/moment/zh-mo.js +111 -0
- package/locales/moment/zh-tw.js +110 -0
- package/locales/moment-timezone/moment-timezone-with-data.js +1582 -0
- package/npm-shrinkwrap.json +17 -0
- package/oAuth/.npmignore +2 -0
- package/oAuth/bundles/index.umd.js +495 -0
- package/oAuth/esm2022/index.mjs +5 -0
- package/oAuth/esm2022/oAuth.service.mjs +51 -0
- package/oAuth/esm2022/oAuth.utils.mjs +423 -0
- package/oAuth/esm2022/public_api.mjs +3 -0
- package/oAuth/fesm2022/index.mjs +478 -0
- package/oAuth/fesm2022/index.mjs.map +1 -0
- package/oAuth/index.d.ts +5 -0
- package/oAuth/oAuth.service.d.ts +19 -0
- package/oAuth/oAuth.utils.d.ts +20 -0
- package/oAuth/package.json +25 -0
- package/oAuth/public_api.d.ts +2 -0
- package/package-lock.json +17 -0
- package/package.json +16 -0
- package/runtime/base/.npmignore +2 -0
- package/runtime/base/bundles/index.umd.js +6031 -0
- package/runtime/base/components/app-component/app.component.d.ts +46 -0
- package/runtime/base/components/app-spinner.component.d.ts +10 -0
- package/runtime/base/components/base-custom-widget.component.d.ts +75 -0
- package/runtime/base/components/base-layout.component.d.ts +30 -0
- package/runtime/base/components/base-page.component.d.ts +83 -0
- package/runtime/base/components/base-partial.component.d.ts +65 -0
- package/runtime/base/components/base-prefab.component.d.ts +61 -0
- package/runtime/base/components/base-spa-page.component.d.ts +85 -0
- package/runtime/base/components/custom-toaster.component.d.ts +19 -0
- package/runtime/base/components/empty-component/empty-page.component.d.ts +18 -0
- package/runtime/base/components/prefab-preview.component.d.ts +23 -0
- package/runtime/base/directives/accessroles.directive.d.ts +40 -0
- package/runtime/base/directives/prefab.directive.d.ts +17 -0
- package/runtime/base/esm2022/components/app-component/app.component.mjs +201 -0
- package/runtime/base/esm2022/components/app-spinner.component.mjs +54 -0
- package/runtime/base/esm2022/components/base-custom-widget.component.mjs +339 -0
- package/runtime/base/esm2022/components/base-layout.component.mjs +76 -0
- package/runtime/base/esm2022/components/base-page.component.mjs +378 -0
- package/runtime/base/esm2022/components/base-partial.component.mjs +221 -0
- package/runtime/base/esm2022/components/base-prefab.component.mjs +253 -0
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +353 -0
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +87 -0
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +66 -0
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +123 -0
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +118 -0
- package/runtime/base/esm2022/directives/prefab.directive.mjs +50 -0
- package/runtime/base/esm2022/guards/auth.guard.mjs +43 -0
- package/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +44 -0
- package/runtime/base/esm2022/guards/page-not-found.guard.mjs +22 -0
- package/runtime/base/esm2022/guards/role.guard.mjs +47 -0
- package/runtime/base/esm2022/index.mjs +5 -0
- package/runtime/base/esm2022/overrides/wm_dom_renderer.mjs +363 -0
- package/runtime/base/esm2022/overrides/wm_shared_styles_host.mjs +85 -0
- package/runtime/base/esm2022/public_api.mjs +49 -0
- package/runtime/base/esm2022/resolves/app-before-load.resolve.mjs +22 -0
- package/runtime/base/esm2022/resolves/app-extension.resolve.mjs +48 -0
- package/runtime/base/esm2022/resolves/app-js.resolve.mjs +39 -0
- package/runtime/base/esm2022/resolves/app-variables.resolve.mjs +31 -0
- package/runtime/base/esm2022/resolves/i18n.resolve.mjs +18 -0
- package/runtime/base/esm2022/resolves/metadata.resolve.mjs +22 -0
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +26 -0
- package/runtime/base/esm2022/runtime-base.module.mjs +942 -0
- package/runtime/base/esm2022/services/app-defaults.service.mjs +22 -0
- package/runtime/base/esm2022/services/app.manager.service.mjs +522 -0
- package/runtime/base/esm2022/services/app.service.mjs +232 -0
- package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +86 -0
- package/runtime/base/esm2022/services/http-interceptor.services.mjs +83 -0
- package/runtime/base/esm2022/services/i18n.service.mjs +305 -0
- package/runtime/base/esm2022/services/navigation.service.mjs +307 -0
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +127 -0
- package/runtime/base/esm2022/services/pipe.service.mjs +33 -0
- package/runtime/base/esm2022/services/prefab-manager.service.mjs +95 -0
- package/runtime/base/esm2022/services/spinner.service.mjs +144 -0
- package/runtime/base/esm2022/services/toaster.service.mjs +90 -0
- package/runtime/base/esm2022/types/types.mjs +22 -0
- package/runtime/base/esm2022/util/fragment-monitor.mjs +59 -0
- package/runtime/base/esm2022/util/utils.mjs +24 -0
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +176 -0
- package/runtime/base/fesm2022/index.mjs +6068 -0
- package/runtime/base/fesm2022/index.mjs.map +1 -0
- package/runtime/base/guards/auth.guard.d.ts +14 -0
- package/runtime/base/guards/can-deactivate-page.guard.d.ts +16 -0
- package/runtime/base/guards/page-not-found.guard.d.ts +12 -0
- package/runtime/base/guards/role.guard.d.ts +17 -0
- package/runtime/base/index.d.ts +5 -0
- package/runtime/base/overrides/wm_dom_renderer.d.ts +33 -0
- package/runtime/base/overrides/wm_shared_styles_host.d.ts +23 -0
- package/runtime/base/package.json +25 -0
- package/runtime/base/public_api.d.ts +48 -0
- package/runtime/base/resolves/app-before-load.resolve.d.ts +11 -0
- package/runtime/base/resolves/app-extension.resolve.d.ts +14 -0
- package/runtime/base/resolves/app-js.resolve.d.ts +15 -0
- package/runtime/base/resolves/app-variables.resolve.d.ts +11 -0
- package/runtime/base/resolves/i18n.resolve.d.ts +9 -0
- package/runtime/base/resolves/metadata.resolve.d.ts +9 -0
- package/runtime/base/resolves/security-config.resolve.d.ts +10 -0
- package/runtime/base/runtime-base.module.d.ts +171 -0
- package/runtime/base/services/app-defaults.service.d.ts +12 -0
- package/runtime/base/services/app.manager.service.d.ts +142 -0
- package/runtime/base/services/app.service.d.ts +70 -0
- package/runtime/base/services/dynamic-component-ref-provider.service.d.ts +26 -0
- package/runtime/base/services/http-interceptor.services.d.ts +17 -0
- package/runtime/base/services/i18n.service.d.ts +58 -0
- package/runtime/base/services/navigation.service.d.ts +45 -0
- package/runtime/base/services/pipe-provider.service.d.ts +31 -0
- package/runtime/base/services/pipe.service.d.ts +12 -0
- package/runtime/base/services/prefab-manager.service.d.ts +25 -0
- package/runtime/base/services/spinner.service.d.ts +49 -0
- package/runtime/base/services/toaster.service.d.ts +23 -0
- package/runtime/base/types/types.d.ts +25 -0
- package/runtime/base/util/fragment-monitor.d.ts +22 -0
- package/runtime/base/util/utils.d.ts +6 -0
- package/runtime/base/util/wm-route-reuse-strategy.d.ts +29 -0
- package/runtime/dynamic/.npmignore +2 -0
- package/runtime/dynamic/app/app.config.d.ts +5 -0
- package/runtime/dynamic/app/app.module.d.ts +37 -0
- package/runtime/dynamic/app/app.routes.d.ts +2 -0
- package/runtime/dynamic/app/components/page-wrapper.component.d.ts +37 -0
- package/runtime/dynamic/app/services/app-extension.service.d.ts +7 -0
- package/runtime/dynamic/app/services/app-js-provider.service.d.ts +10 -0
- package/runtime/dynamic/app/services/app-resource-manager.service.d.ts +10 -0
- package/runtime/dynamic/app/services/app-variables-provider.service.d.ts +12 -0
- package/runtime/dynamic/app/services/component-ref-provider.service.d.ts +17 -0
- package/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
- package/runtime/dynamic/app/services/prefab-config-provider.service.d.ts +10 -0
- package/runtime/dynamic/bundles/index.umd.js +887 -0
- package/runtime/dynamic/esm2022/app/app.config.mjs +141 -0
- package/runtime/dynamic/esm2022/app/app.module.mjs +314 -0
- package/runtime/dynamic/esm2022/app/app.routes.mjs +21 -0
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +106 -0
- package/runtime/dynamic/esm2022/app/services/app-extension.service.mjs +24 -0
- package/runtime/dynamic/esm2022/app/services/app-js-provider.service.mjs +25 -0
- package/runtime/dynamic/esm2022/app/services/app-resource-manager.service.mjs +31 -0
- package/runtime/dynamic/esm2022/app/services/app-variables-provider.service.mjs +27 -0
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +266 -0
- package/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
- package/runtime/dynamic/esm2022/app/services/prefab-config-provider.service.mjs +29 -0
- package/runtime/dynamic/esm2022/index.mjs +5 -0
- package/runtime/dynamic/esm2022/main.mjs +42 -0
- package/runtime/dynamic/esm2022/public_api.mjs +10 -0
- package/runtime/dynamic/fesm2022/index.mjs +950 -0
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -0
- package/runtime/dynamic/index.d.ts +5 -0
- package/runtime/dynamic/main.d.ts +2 -0
- package/runtime/dynamic/package.json +25 -0
- package/runtime/dynamic/public_api.d.ts +9 -0
- package/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
- package/scripts/d3/d3.min.js +2 -0
- package/scripts/datatable/datatable.js +3769 -0
- package/scripts/iscroll/build/iscroll.js +2091 -0
- package/scripts/jquery-ui/ui/widgets/droppable.js +503 -0
- package/scripts/jquery-ui/ui/widgets/resizable.js +1275 -0
- package/scripts/jquery-ui/ui/widgets/sortable.js +1608 -0
- package/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js +11 -0
- package/scripts/summernote/dist/summernote-lite.min.js +2 -0
- package/scripts/swipey/swipey.jquery.plugin.js +769 -0
- package/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
- package/security/.npmignore +2 -0
- package/security/bundles/index.umd.js +446 -0
- package/security/esm2022/index.mjs +5 -0
- package/security/esm2022/public_api.mjs +2 -0
- package/security/esm2022/security.service.mjs +439 -0
- package/security/fesm2022/index.mjs +444 -0
- package/security/fesm2022/index.mjs.map +1 -0
- package/security/index.d.ts +5 -0
- package/security/package.json +25 -0
- package/security/public_api.d.ts +1 -0
- package/security/security.service.d.ts +127 -0
- package/swipey/.npmignore +2 -0
- package/swipey/bundles/index.umd.js +54 -0
- package/swipey/esm2022/index.mjs +5 -0
- package/swipey/esm2022/public_api.mjs +2 -0
- package/swipey/esm2022/swipe.animation.mjs +45 -0
- package/swipey/fesm2022/index.mjs +51 -0
- package/swipey/fesm2022/index.mjs.map +1 -0
- package/swipey/index.d.ts +5 -0
- package/swipey/package.json +25 -0
- package/swipey/public_api.d.ts +1 -0
- package/swipey/swipe.animation.d.ts +19 -0
- package/transpiler/.npmignore +2 -0
- package/transpiler/build.d.ts +35 -0
- package/transpiler/bundles/index.umd.js +804 -0
- package/transpiler/esm2022/build.mjs +475 -0
- package/transpiler/esm2022/imports.mjs +318 -0
- package/transpiler/esm2022/index.mjs +5 -0
- package/transpiler/esm2022/public_api.mjs +3 -0
- package/transpiler/fesm2022/index.mjs +799 -0
- package/transpiler/fesm2022/index.mjs.map +1 -0
- package/transpiler/imports.d.ts +2 -0
- package/transpiler/index.d.ts +5 -0
- package/transpiler/package.json +26 -0
- package/transpiler/public_api.d.ts +2 -0
- package/variables/.npmignore +2 -0
- package/variables/advanced-options.d.ts +4 -0
- package/variables/bundles/index.umd.js +3174 -0
- package/variables/constants/variables.constants.d.ts +315 -0
- package/variables/esm2022/advanced-options.mjs +2 -0
- package/variables/esm2022/constants/variables.constants.mjs +333 -0
- package/variables/esm2022/factory/variable-manager.factory.mjs +24 -0
- package/variables/esm2022/factory/variable.factory.mjs +46 -0
- package/variables/esm2022/index.mjs +5 -0
- package/variables/esm2022/manager/action/base-action.manager.mjs +14 -0
- package/variables/esm2022/manager/action/login-action.manager.mjs +180 -0
- package/variables/esm2022/manager/action/logout-action.manager.mjs +77 -0
- package/variables/esm2022/manager/action/navigation-action.manager.mjs +8 -0
- package/variables/esm2022/manager/action/notification-action.manager.mjs +152 -0
- package/variables/esm2022/manager/variable/base-variable.manager.mjs +81 -0
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +289 -0
- package/variables/esm2022/model/action/login-action.mjs +25 -0
- package/variables/esm2022/model/action/logout-action.mjs +22 -0
- package/variables/esm2022/model/action/navigation-action.mjs +26 -0
- package/variables/esm2022/model/action/notification-action.mjs +91 -0
- package/variables/esm2022/model/variable/web-socket-variable.mjs +34 -0
- package/variables/esm2022/public_api.mjs +6 -0
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +60 -0
- package/variables/esm2022/service/variables.service.mjs +199 -0
- package/variables/esm2022/util/action/navigation-action.utils.mjs +52 -0
- package/variables/esm2022/util/oAuth.utils.mjs +11 -0
- package/variables/esm2022/util/variable/pagination.utils.mjs +402 -0
- package/variables/esm2022/util/variable/service-variable.utils.mjs +376 -0
- package/variables/esm2022/util/variable/variables.utils.mjs +809 -0
- package/variables/factory/variable-manager.factory.d.ts +3 -0
- package/variables/factory/variable.factory.d.ts +3 -0
- package/variables/fesm2022/index.mjs +3236 -0
- package/variables/fesm2022/index.mjs.map +1 -0
- package/variables/index.d.ts +5 -0
- package/variables/manager/action/base-action.manager.d.ts +4 -0
- package/variables/manager/action/login-action.manager.d.ts +7 -0
- package/variables/manager/action/logout-action.manager.d.ts +4 -0
- package/variables/manager/action/navigation-action.manager.d.ts +4 -0
- package/variables/manager/action/notification-action.manager.d.ts +23 -0
- package/variables/manager/variable/base-variable.manager.d.ts +24 -0
- package/variables/manager/variable/web-socket-variable.manager.d.ts +124 -0
- package/variables/model/action/login-action.d.ts +11 -0
- package/variables/model/action/logout-action.d.ts +10 -0
- package/variables/model/action/navigation-action.d.ts +9 -0
- package/variables/model/action/notification-action.d.ts +25 -0
- package/variables/model/variable/web-socket-variable.d.ts +11 -0
- package/variables/package.json +25 -0
- package/variables/public_api.d.ts +5 -0
- package/variables/service/metadata-service/metadata.service.d.ts +16 -0
- package/variables/service/variables.service.d.ts +57 -0
- package/variables/util/action/navigation-action.utils.d.ts +6 -0
- package/variables/util/oAuth.utils.d.ts +3 -0
- package/variables/util/variable/pagination.utils.d.ts +82 -0
- package/variables/util/variable/service-variable.utils.d.ts +16 -0
- package/variables/util/variable/variables.utils.d.ts +80 -0
|
@@ -0,0 +1,3296 @@
|
|
|
1
|
+
import * as i6 from '@angular/common';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AnchorComponent } from '@wm/components/basic/anchor';
|
|
4
|
+
import { ButtonComponent } from '@wm/components/input/button';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { ViewContainerRef, HostListener, HostBinding, ContentChildren, ViewChild, Optional, SkipSelf, Attribute, Inject, Component, Self, Directive, ContentChild } from '@angular/core';
|
|
7
|
+
import * as i1 from '@angular/forms';
|
|
8
|
+
import { FormArray, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
|
+
import * as i1$1 from '@wm/core';
|
|
10
|
+
import { removeClass, isDefined, debounce as debounce$1, removeAttr, DataSource, $appDigest, setListClass, isElementInViewport, scrollToElement, getFiles, DataType, getClonedObject, $invokeWatchers, getValidJSON, extendProto, $parseEvent, FormWidgetType, noop as noop$1, isMobile, isDateTimeType, addForIdAttributes, triggerFn, isEmptyObject, getValidDateObject } from '@wm/core';
|
|
11
|
+
import * as i5 from '@wm/components/base';
|
|
12
|
+
import { PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, StylableComponent, styler, getFieldLayoutConfig, Live_Operations, performDataOperation, parseValueByType, FilterPipe, MessageComponent, WidgetRef, provideAsWidgetRef, BaseComponent, getWidgetPropsByType, getEvaluatedData, BaseFieldValidations, getDefaultViewModeWidget, Context, provideAs, fetchDistinctValues, applyFilterOnField, isDataSetWidget, getDistinctValuesForField, getRangeFieldValue, getRangeMatchMode, getEnableEmptyFilter, getEmptyMatchMode, fetchRelatedFieldData, ALLFIELDS } from '@wm/components/base';
|
|
13
|
+
import * as i4 from '@wm/components/prefab';
|
|
14
|
+
import * as i3 from '@wm/components/data/list';
|
|
15
|
+
import { ListComponent } from '@wm/components/data/list';
|
|
16
|
+
import { forEach, debounce, get, last, keys, isEmpty, isEqual, isArray, find, set, filter, includes, split, some, isUndefined, findIndex, isObject, join, isString, fromPairs, map } from 'lodash-es';
|
|
17
|
+
import { TableComponent } from '@wm/components/data/table';
|
|
18
|
+
import { debounceTime } from 'rxjs/operators';
|
|
19
|
+
import * as i1$2 from '@wm/components/data/live-table';
|
|
20
|
+
|
|
21
|
+
const propsMap = new Map([
|
|
22
|
+
['autocomplete', { value: false, ...PROP_BOOLEAN }],
|
|
23
|
+
['captionalign', { value: 'left', ...PROP_STRING }],
|
|
24
|
+
['captionposition', { value: 'left', ...PROP_STRING }],
|
|
25
|
+
['captionsize', PROP_STRING],
|
|
26
|
+
['captionwidth', { value: 'xs-12 sm-3 md-3 lg-3', ...PROP_STRING }],
|
|
27
|
+
['class', PROP_STRING],
|
|
28
|
+
['collapsible', PROP_BOOLEAN],
|
|
29
|
+
['dataset', PROP_ANY],
|
|
30
|
+
['datasource', PROP_STRING],
|
|
31
|
+
['expanded', { value: true, ...PROP_BOOLEAN }],
|
|
32
|
+
['formdatasource', PROP_STRING],
|
|
33
|
+
['name', PROP_STRING],
|
|
34
|
+
['numberOfFields', PROP_NUMBER],
|
|
35
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
36
|
+
['showindevice', { displayType: 'inline-block', value: 'all', ...PROP_STRING }],
|
|
37
|
+
['subheading', PROP_STRING],
|
|
38
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
39
|
+
['title', PROP_STRING],
|
|
40
|
+
['itemsperrow', PROP_STRING],
|
|
41
|
+
]);
|
|
42
|
+
const registerFormProps = () => {
|
|
43
|
+
const formMap = new Map(propsMap);
|
|
44
|
+
formMap.set('action', PROP_STRING);
|
|
45
|
+
formMap.set('defaultmode', { value: 'Edit', ...PROP_STRING });
|
|
46
|
+
formMap.set('metadata', PROP_STRING);
|
|
47
|
+
formMap.set('method', PROP_STRING);
|
|
48
|
+
formMap.set('postmessage', { value: 'Data posted successfully', ...PROP_STRING });
|
|
49
|
+
formMap.set('target', PROP_STRING);
|
|
50
|
+
formMap.set('enctype', PROP_STRING);
|
|
51
|
+
formMap.set('errormessage', { value: 'An error occured. Please try again!', ...PROP_STRING });
|
|
52
|
+
formMap.set('messagelayout', { value: 'Inline', ...PROP_STRING });
|
|
53
|
+
formMap.set('formdata', PROP_STRING);
|
|
54
|
+
formMap.set('novalidate', PROP_BOOLEAN);
|
|
55
|
+
formMap.set('validationtype', { value: 'default', ...PROP_STRING });
|
|
56
|
+
formMap.set('iconclass', PROP_STRING);
|
|
57
|
+
formMap.set('readonly', { value: false, ...PROP_BOOLEAN });
|
|
58
|
+
register('wm-form', formMap);
|
|
59
|
+
};
|
|
60
|
+
const registerLiveFormProps = () => {
|
|
61
|
+
const liveFormMap = new Map(propsMap);
|
|
62
|
+
liveFormMap.set('defaultmode', { value: 'View', ...PROP_STRING });
|
|
63
|
+
liveFormMap.set('formlayout', { value: 'inline', ...PROP_STRING });
|
|
64
|
+
liveFormMap.set('insertmessage', { value: 'Record added successfully', ...PROP_STRING });
|
|
65
|
+
liveFormMap.set('updatemessage', { value: 'Record updated successfully', ...PROP_STRING });
|
|
66
|
+
liveFormMap.set('deletemessage', { value: 'Record deleted successfully', ...PROP_STRING });
|
|
67
|
+
liveFormMap.set('errormessage', { value: 'An error occured. Please try again!', ...PROP_STRING });
|
|
68
|
+
liveFormMap.set('messagelayout', { value: 'Toaster', ...PROP_STRING });
|
|
69
|
+
liveFormMap.set('formdata', PROP_STRING);
|
|
70
|
+
liveFormMap.set('novalidate', PROP_BOOLEAN);
|
|
71
|
+
liveFormMap.set('validationtype', { value: 'default', ...PROP_STRING });
|
|
72
|
+
liveFormMap.set('iconclass', PROP_STRING);
|
|
73
|
+
register('wm-liveform', liveFormMap);
|
|
74
|
+
};
|
|
75
|
+
const registerLiveFilterProps = () => {
|
|
76
|
+
const liveFilterMap = new Map(propsMap);
|
|
77
|
+
liveFilterMap.set('autoupdate', PROP_BOOLEAN);
|
|
78
|
+
liveFilterMap.set('enableemptyfilter', { value: ' ', ...PROP_STRING });
|
|
79
|
+
liveFilterMap.set('pagesize', { value: 20, ...PROP_NUMBER });
|
|
80
|
+
liveFilterMap.set('iconclass', { value: 'wi wi-filter-list', ...PROP_STRING });
|
|
81
|
+
register('wm-livefilter', liveFilterMap);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const WIDGET_CONFIG$1 = { widgetType: 'wm-form', hostClass: 'panel app-panel app-form' };
|
|
85
|
+
const LOGIN_FORM_CONFIG = { widgetType: 'wm-form', hostClass: 'app-form app-login-form' };
|
|
86
|
+
const LIVE_FORM_CONFIG = { widgetType: 'wm-liveform', hostClass: 'panel app-panel app-liveform liveform-inline' };
|
|
87
|
+
const LIVE_FILTER_CONFIG = { widgetType: 'wm-livefilter', hostClass: 'panel app-panel app-livefilter clearfix liveform-inline' };
|
|
88
|
+
const getWidgetConfig = (isLiveForm, isLiveFilter, role) => {
|
|
89
|
+
let config = WIDGET_CONFIG$1;
|
|
90
|
+
if (isLiveForm !== null) {
|
|
91
|
+
config = LIVE_FORM_CONFIG;
|
|
92
|
+
}
|
|
93
|
+
else if (isLiveFilter !== null) {
|
|
94
|
+
config = LIVE_FILTER_CONFIG;
|
|
95
|
+
}
|
|
96
|
+
else if (role === 'app-login') {
|
|
97
|
+
config = LOGIN_FORM_CONFIG;
|
|
98
|
+
}
|
|
99
|
+
return config;
|
|
100
|
+
};
|
|
101
|
+
// Generate the form field with given field definition. Add a grid column wrapper around the form field.
|
|
102
|
+
const setMarkupForFormField = (field, columnWidth) => {
|
|
103
|
+
let propsTmpl = '';
|
|
104
|
+
forEach(field, (value, key) => {
|
|
105
|
+
propsTmpl = `${propsTmpl} ${key}="${value}"`;
|
|
106
|
+
});
|
|
107
|
+
return `<wm-gridcolumn columnwidth="${columnWidth}">
|
|
108
|
+
<wm-form-field ${propsTmpl}></wm-form-field>
|
|
109
|
+
</wm-gridcolumn>`;
|
|
110
|
+
};
|
|
111
|
+
// Function to find out the first invalid element in form
|
|
112
|
+
const findInvalidElement = ($formEle, ngForm) => {
|
|
113
|
+
const $ele = $formEle.find('form.ng-invalid:visible, [formControlName].ng-invalid:visible').first();
|
|
114
|
+
let formObj = ngForm;
|
|
115
|
+
// If element is form, find out the first invalid element in this form
|
|
116
|
+
if ($ele.is('form')) {
|
|
117
|
+
formObj = ngForm && ngForm.controls[$ele.attr('formControlName') || $ele.attr('name')];
|
|
118
|
+
if (formObj) {
|
|
119
|
+
return findInvalidElement($ele, formObj);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
ngForm: formObj,
|
|
124
|
+
$ele: $ele
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
// Function to get the active element markup based on widget type
|
|
128
|
+
const getActiveElement = (element) => {
|
|
129
|
+
const widgetType = element.getAttribute('widgettype');
|
|
130
|
+
switch (widgetType) {
|
|
131
|
+
case 'select':
|
|
132
|
+
return element.querySelector('select');
|
|
133
|
+
break;
|
|
134
|
+
case 'textarea':
|
|
135
|
+
return element.querySelector('textarea');
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
return element.querySelector('input');
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const setTouchedState = (self, ngForm, fieldName) => {
|
|
142
|
+
if (ngForm.valid) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
if (ngForm.controls) {
|
|
146
|
+
forEach(ngForm.controls, (ctrl, fieldName) => {
|
|
147
|
+
setTouchedState(self, ctrl, fieldName);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
let element = self.$element.find(`[wmformfield][key="${fieldName}"]`);
|
|
152
|
+
if (!element.length) {
|
|
153
|
+
element = self.$element.find(`[wmformfield][name="${fieldName}"]`);
|
|
154
|
+
}
|
|
155
|
+
element[0].setAttribute('__errormsg', element[0].getAttribute('__validationId'));
|
|
156
|
+
const activeElement = getActiveElement(element[0]);
|
|
157
|
+
activeElement?.setAttribute('aria-invalid', ngForm.invalid);
|
|
158
|
+
activeElement?.setAttribute('aria-describedby', element[0].getAttribute('__validationId'));
|
|
159
|
+
ngForm.markAsTouched();
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
class FormComponent extends StylableComponent {
|
|
163
|
+
static { this.initializeProps = registerFormProps(); }
|
|
164
|
+
set isLayoutDialog(nv) {
|
|
165
|
+
if (nv) {
|
|
166
|
+
removeClass(this.nativeElement, 'panel app-panel liveform-inline');
|
|
167
|
+
}
|
|
168
|
+
this._isLayoutDialog = nv;
|
|
169
|
+
}
|
|
170
|
+
get isLayoutDialog() {
|
|
171
|
+
return this._isLayoutDialog;
|
|
172
|
+
}
|
|
173
|
+
set isUpdateMode(nv) {
|
|
174
|
+
this._isUpdateMode = nv;
|
|
175
|
+
this.formFields.forEach(field => {
|
|
176
|
+
field.setReadOnlyState(nv);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
get isUpdateMode() {
|
|
180
|
+
return this._isUpdateMode;
|
|
181
|
+
}
|
|
182
|
+
submit($event) {
|
|
183
|
+
this._debouncedSubmitForm($event);
|
|
184
|
+
}
|
|
185
|
+
onReset() {
|
|
186
|
+
this.reset();
|
|
187
|
+
}
|
|
188
|
+
onKeydownHandler(event) {
|
|
189
|
+
this._triggeredByUser = true;
|
|
190
|
+
}
|
|
191
|
+
// returns the formArray control on the parentForm.
|
|
192
|
+
get parentFormArray() {
|
|
193
|
+
return this.parentForm && this.isParentList && this.parentForm.ngform.get(this.parentList.name);
|
|
194
|
+
}
|
|
195
|
+
// returns true only when closest livelist is the immediate parent of the form.
|
|
196
|
+
// checks for livelist having any form elements with parentForm name.
|
|
197
|
+
// If livelist is not containing any parentForm elements then it returns true.
|
|
198
|
+
get isParentList() {
|
|
199
|
+
if (this.parentList && this.parentForm && !isDefined(this._formIsInList)) {
|
|
200
|
+
const formEle = this.$element;
|
|
201
|
+
const listEle = formEle.closest('.app-livelist[name="' + this.parentList.name + '"]');
|
|
202
|
+
if (listEle.length) {
|
|
203
|
+
this._formIsInList = !(listEle.find('form[widget-id="' + this.parentForm.widgetId + '"]')).length;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return isDefined(this._formIsInList) ? this._formIsInList : this.parentList;
|
|
207
|
+
}
|
|
208
|
+
constructor(inj, fb, app, dialogService, dynamicComponentProvider, ngZone, parentList, parentForm, parentPrefab, parentPartial, onBeforeSubmitEvt, onSubmitEvt, onBeforeRenderEvt, binddataset, bindformdata, isLiveForm, isLiveFilter, role, key, name, explicitContext) {
|
|
209
|
+
super(inj, getWidgetConfig(isLiveForm, isLiveFilter, role), explicitContext);
|
|
210
|
+
this.fb = fb;
|
|
211
|
+
this.app = app;
|
|
212
|
+
this.dialogService = dialogService;
|
|
213
|
+
this.dynamicComponentProvider = dynamicComponentProvider;
|
|
214
|
+
this.ngZone = ngZone;
|
|
215
|
+
this.parentList = parentList;
|
|
216
|
+
this.parentForm = parentForm;
|
|
217
|
+
this.parentPrefab = parentPrefab;
|
|
218
|
+
this.parentPartial = parentPartial;
|
|
219
|
+
this.onBeforeSubmitEvt = onBeforeSubmitEvt;
|
|
220
|
+
this.onSubmitEvt = onSubmitEvt;
|
|
221
|
+
this.onBeforeRenderEvt = onBeforeRenderEvt;
|
|
222
|
+
this.binddataset = binddataset;
|
|
223
|
+
this.bindformdata = bindformdata;
|
|
224
|
+
this._widgetClass = '';
|
|
225
|
+
this._captionClass = '';
|
|
226
|
+
this.formFields = [];
|
|
227
|
+
this.formfields = {};
|
|
228
|
+
this.formWidgets = {};
|
|
229
|
+
this.filterWidgets = {};
|
|
230
|
+
this.buttonArray = [];
|
|
231
|
+
this.dataoutput = {};
|
|
232
|
+
this.formdata = {};
|
|
233
|
+
this.statusMessage = {
|
|
234
|
+
caption: '',
|
|
235
|
+
type: ''
|
|
236
|
+
};
|
|
237
|
+
this.primaryKey = [];
|
|
238
|
+
this._debouncedUpdateFieldSource = debounce(this.updateFieldSource, 350);
|
|
239
|
+
this.validationMessages = [];
|
|
240
|
+
this._debouncedSubmitForm = debounce$1(($event) => {
|
|
241
|
+
// calling submit event in ngZone as change detection is not triggered post the submit callback and actions like notification are not shown
|
|
242
|
+
this.ngZone.run(() => {
|
|
243
|
+
this.submitForm($event);
|
|
244
|
+
});
|
|
245
|
+
}, 250);
|
|
246
|
+
styler(this.nativeElement, this);
|
|
247
|
+
// remove title property as attribute as it is causing unnecessary tooltip
|
|
248
|
+
removeAttr(this.nativeElement, 'title');
|
|
249
|
+
this.isUpdateMode = true;
|
|
250
|
+
this.dialogId = this.nativeElement.getAttribute('dialogId');
|
|
251
|
+
this.ngform = fb.group({});
|
|
252
|
+
this.bindingValue = key || name;
|
|
253
|
+
// On value change in form, update the dataoutput
|
|
254
|
+
const onValueChangeSubscription = this.ngform.valueChanges
|
|
255
|
+
.subscribe(this.updateDataOutput.bind(this));
|
|
256
|
+
this.registerDestroyListener(() => onValueChangeSubscription.unsubscribe());
|
|
257
|
+
this.elScope = this;
|
|
258
|
+
this.addEventsToContext(this.context);
|
|
259
|
+
}
|
|
260
|
+
ngAfterContentInit() {
|
|
261
|
+
setTimeout(() => {
|
|
262
|
+
this.componentRefs.forEach(componentRef => {
|
|
263
|
+
if (componentRef.name) {
|
|
264
|
+
// Register widgets inside form with formWidgets
|
|
265
|
+
this.formWidgets[componentRef.name] = componentRef;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}, 250);
|
|
269
|
+
}
|
|
270
|
+
ngAfterViewInit() {
|
|
271
|
+
if (this.parentForm && this.parentForm.ngform && this.isParentList) {
|
|
272
|
+
// setting formArray control on ngform.
|
|
273
|
+
if (!get(this.parentForm.ngform.controls, this.parentList.name)) {
|
|
274
|
+
this.parentForm.ngform.setControl(this.parentList.name, new FormArray([]));
|
|
275
|
+
}
|
|
276
|
+
// pushing the ngform to formArray.
|
|
277
|
+
this.parentFormArray.push(this.ngform);
|
|
278
|
+
this.formArrayIndex = this.parentFormArray.length - 1;
|
|
279
|
+
}
|
|
280
|
+
this.addInnerNgFormToForm(this.bindingValue);
|
|
281
|
+
setTimeout(() => {
|
|
282
|
+
$(this.nativeElement).find('div[data-role="form-field"], div[data-role="filter-field"]').addClass(this.itemsPerRowClass);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
findOperationType() { }
|
|
286
|
+
addInnerNgFormToForm(binding) {
|
|
287
|
+
if (this.parentForm && this.parentForm.ngform) {
|
|
288
|
+
// handling as formArray when parent is list. Hence returning here from adding to parentForm again.
|
|
289
|
+
if (this.isParentList) {
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
// assigning the control name of the form inside the prefab with the prefab name.
|
|
293
|
+
// This will happen only when there is only one form inside prefab.
|
|
294
|
+
// We do not support changing this when multiple forms are inside prefab.
|
|
295
|
+
// This scenario has to be handled by end user by changing form names in prefab according to the datamodel binding.
|
|
296
|
+
const parentContainer = this.parentPrefab || this.parentPartial;
|
|
297
|
+
if (parentContainer) {
|
|
298
|
+
let parentContentEl;
|
|
299
|
+
if (this.parentPrefab) {
|
|
300
|
+
parentContentEl = parentContainer.$element.find('[wmprefabcontainer]');
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
parentContentEl = parentContainer.$element;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* assigning the form name to the parentContainer name i.e. partial name or perfab name by following
|
|
307
|
+
* 1. retrieving all the forms in the parentContainer
|
|
308
|
+
* 2. consider the first form
|
|
309
|
+
* 3. if this form is inside list i.e. also find if this list is also inside the parentContainer (prefab / partial)
|
|
310
|
+
* 4. then do not change the form name when form is inside list and also when there are siblings to the form
|
|
311
|
+
* 5. this means form name change applies only when there is single form (immediate child) inside the parentContainer.
|
|
312
|
+
*/
|
|
313
|
+
const prefabInnerForm = parentContentEl.find('form').first();
|
|
314
|
+
if (get(prefabInnerForm[0], 'widget.widgetId') === this.widgetId) {
|
|
315
|
+
// check whether form inside prefab container is inside the list. If true, do not change the name.
|
|
316
|
+
if (!prefabInnerForm.isParentList && !prefabInnerForm.siblings('form').length) {
|
|
317
|
+
binding = get(parentContainer, 'name');
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
let counter = 1;
|
|
322
|
+
let innerBinding = binding;
|
|
323
|
+
// Inner forms may have same names. If same name is present, append unqiue identifier
|
|
324
|
+
while (this.parentForm.ngform.controls.hasOwnProperty(innerBinding)) {
|
|
325
|
+
innerBinding = `${binding}_${counter}`;
|
|
326
|
+
counter++;
|
|
327
|
+
}
|
|
328
|
+
this.formGroupName = innerBinding;
|
|
329
|
+
// If parent form is present, add the current form as as formGroup for parent form
|
|
330
|
+
this.parentForm.ngform.addControl(innerBinding, this.ngform);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
// Expose the events on context so that they can be accessed by form actions
|
|
334
|
+
addEventsToContext(context) {
|
|
335
|
+
context.cancel = () => this.cancel();
|
|
336
|
+
context.reset = () => this.reset();
|
|
337
|
+
context.save = evt => this.save(evt);
|
|
338
|
+
context.saveAndNew = () => this.saveAndNew();
|
|
339
|
+
context.saveAndView = () => this.saveAndView();
|
|
340
|
+
context.delete = () => this.delete();
|
|
341
|
+
context.new = () => this.new();
|
|
342
|
+
context.edit = () => this.edit();
|
|
343
|
+
context.highlightInvalidFields = () => this.highlightInvalidFields();
|
|
344
|
+
context.filter = () => this.filter();
|
|
345
|
+
context.clearFilter = () => this.clearFilter();
|
|
346
|
+
context.submit = evt => this.submit(evt);
|
|
347
|
+
}
|
|
348
|
+
// This method gets all the inner forms and validates each form.
|
|
349
|
+
setValidationOnInnerForms(validateTouch) {
|
|
350
|
+
const formEle = this.getNativeElement();
|
|
351
|
+
const formObjs = formEle.querySelectorAll('.app-form');
|
|
352
|
+
const validationMsgs = [];
|
|
353
|
+
forEach(formObjs, e => {
|
|
354
|
+
const formInstance = e.widget;
|
|
355
|
+
// differentiating the validationMessages prefix based on the formGroupName
|
|
356
|
+
// as the formName's are same when forms are in list
|
|
357
|
+
let formName = get(formInstance, 'formGroupName') || formInstance.name;
|
|
358
|
+
if (isDefined(formInstance.formArrayIndex)) {
|
|
359
|
+
formName = formName + '[' + formInstance.formArrayIndex + ']';
|
|
360
|
+
}
|
|
361
|
+
let current = formInstance;
|
|
362
|
+
while (get(current, 'parentForm')) {
|
|
363
|
+
let parentName = current.parentForm.formGroupName || current.parentForm.name;
|
|
364
|
+
if (current.parentForm.parentFormArray) {
|
|
365
|
+
parentName = parentName + '[' + current.parentForm.formArrayIndex + ']';
|
|
366
|
+
}
|
|
367
|
+
formName = parentName + '.' + formName;
|
|
368
|
+
current = current.parentForm;
|
|
369
|
+
}
|
|
370
|
+
this.setValidationOnFields(formInstance, formName, validateTouch);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* This method sets validation on formFields.
|
|
375
|
+
* Applies to innerform and also sets innerform validation on parent form.
|
|
376
|
+
* @param prefix contains the form name, which also includes its parents form name
|
|
377
|
+
* @param {boolean} validateTouch
|
|
378
|
+
*/
|
|
379
|
+
setValidationOnFields(form, prefix, validateTouch) {
|
|
380
|
+
const controls = form.ngform.controls;
|
|
381
|
+
const formFields = form.formFields;
|
|
382
|
+
if (!formFields) {
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
forEach(controls, (v, k) => {
|
|
386
|
+
const field = formFields.find(e => e.key === k);
|
|
387
|
+
if (!field || (validateTouch && !v.touched)) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
field.nativeElement.querySelector('input')?.setAttribute('aria-invalid', v.invalid);
|
|
391
|
+
// invoking the prepareValidation on both parent form and current form.
|
|
392
|
+
this.prepareValidationObj(v, k, field, prefix);
|
|
393
|
+
this.prepareValidationObj.call(form, v, k, field, prefix);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
// Assigns / updates validationMessages based on angular errors on field
|
|
397
|
+
prepareValidationObj(v, k, field, prefix) {
|
|
398
|
+
const index = this.validationMessages.findIndex(e => (e.field === k && e.fullyQualifiedFormName === prefix));
|
|
399
|
+
if (v.invalid) {
|
|
400
|
+
if (index === -1) {
|
|
401
|
+
/**
|
|
402
|
+
* field contains the fieldName
|
|
403
|
+
* value contains the field value
|
|
404
|
+
* errorType contains the list of errors
|
|
405
|
+
* message contains the validation message
|
|
406
|
+
* getElement returns the element having focus-target
|
|
407
|
+
* formName returns the name of the form
|
|
408
|
+
*/
|
|
409
|
+
this.validationMessages.push({
|
|
410
|
+
field: k,
|
|
411
|
+
value: field.value,
|
|
412
|
+
errorType: keys(v.errors),
|
|
413
|
+
message: field.validationmessage || '',
|
|
414
|
+
getElement: () => {
|
|
415
|
+
return field.$element.find('[focus-target]');
|
|
416
|
+
},
|
|
417
|
+
formName: last(prefix.split('.')),
|
|
418
|
+
fullyQualifiedFormName: prefix
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
this.validationMessages[index].value = field.value;
|
|
423
|
+
this.validationMessages[index].errorType = keys(v.errors);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
else if (v.valid && index > -1) {
|
|
427
|
+
this.validationMessages.splice(index, 1);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
// This will return a object containing the error details from the list of formFields that are invalid
|
|
431
|
+
setValidationMsgs(validateTouch) {
|
|
432
|
+
if (!this.formFields.length && isEmpty(this.ngform.controls)) {
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
this.setValidationOnFields(this, this.name, validateTouch);
|
|
436
|
+
this.setValidationOnInnerForms(validateTouch);
|
|
437
|
+
}
|
|
438
|
+
// change and blur events are added from the template
|
|
439
|
+
handleEvent(node, eventName, callback, locals) {
|
|
440
|
+
if (eventName !== 'submit') {
|
|
441
|
+
super.handleEvent(this.nativeElement, eventName, callback, locals);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
updateFieldSource() {
|
|
445
|
+
if (this.formdatasource && this.formdatasource.execute(DataSource.Operation.IS_API_AWARE)) {
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
else if (this.formdatasource && !this.formdatasource.twoWayBinding) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
this.formFields.forEach(formField => {
|
|
452
|
+
formField.setFormWidget('datavaluesource', this.formdatasource);
|
|
453
|
+
formField.setFormWidget('binddatavalue', `${this.bindformdata}.${formField.key}`);
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
// This method loops through the form fields and highlights the invalid fields by setting state to touched
|
|
457
|
+
highlightInvalidFields() {
|
|
458
|
+
setTouchedState(this, this.ngform, '');
|
|
459
|
+
}
|
|
460
|
+
// Disable the form submit if form is in invalid state. Highlight all the invalid fields if validation type is default
|
|
461
|
+
validateFieldsOnSubmit() {
|
|
462
|
+
this.setValidationMsgs();
|
|
463
|
+
// Disable the form submit if form is in invalid state. For delete operation, do not check the validation.
|
|
464
|
+
if (this.operationType !== 'delete' && (this.validationtype === 'html' || this.validationtype === 'default')
|
|
465
|
+
&& this.ngform && this.ngform.invalid) {
|
|
466
|
+
if (this.ngform.invalid) {
|
|
467
|
+
if (this.validationtype === 'default') {
|
|
468
|
+
this.highlightInvalidFields();
|
|
469
|
+
}
|
|
470
|
+
// Find the first invalid untoched element and set it to touched.
|
|
471
|
+
// Safari does not form validations. this will ensure that error is shown for user
|
|
472
|
+
const eleForm = findInvalidElement(this.$element, this.ngform);
|
|
473
|
+
const $invalidForm = eleForm.ngForm;
|
|
474
|
+
let $invalidEle = eleForm.$ele;
|
|
475
|
+
$invalidEle = $invalidEle.parent().find('[focus-target]');
|
|
476
|
+
const $target = eleForm?.$ele?.parent()?.find('input[type=checkbox], input[type=radio], input[type=file]')?.first();
|
|
477
|
+
if ($invalidEle.length) {
|
|
478
|
+
// on save click in page layout liveform, focus of autocomplete widget opens full-screen search.
|
|
479
|
+
if (!$invalidEle.hasClass('app-search-input')) {
|
|
480
|
+
$invalidEle.focus();
|
|
481
|
+
}
|
|
482
|
+
const ngEle = $invalidForm && $invalidForm.controls[$invalidEle.attr('formControlName') || $invalidEle.attr('name')];
|
|
483
|
+
if (ngEle && ngEle.markAsTouched) {
|
|
484
|
+
ngEle.markAsTouched();
|
|
485
|
+
}
|
|
486
|
+
$appDigest();
|
|
487
|
+
return true;
|
|
488
|
+
}
|
|
489
|
+
else if ($target && $target.length) {
|
|
490
|
+
$target.focus();
|
|
491
|
+
}
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
494
|
+
return false;
|
|
495
|
+
}
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
onPropertyChange(key, nv, ov) {
|
|
499
|
+
switch (key) {
|
|
500
|
+
case 'captionalign':
|
|
501
|
+
this.captionAlignClass = 'align-' + nv;
|
|
502
|
+
break;
|
|
503
|
+
case 'captionposition':
|
|
504
|
+
this.setLayoutConfig();
|
|
505
|
+
break;
|
|
506
|
+
case 'captionwidth':
|
|
507
|
+
this.setLayoutConfig();
|
|
508
|
+
break;
|
|
509
|
+
case 'captionsize':
|
|
510
|
+
this.captionsize = nv;
|
|
511
|
+
break;
|
|
512
|
+
case 'novalidate':
|
|
513
|
+
// Set validation type based on the novalidate property
|
|
514
|
+
this.widget.validationtype = (nv === true || nv === 'true') ? 'none' : 'default';
|
|
515
|
+
break;
|
|
516
|
+
case 'formdata':
|
|
517
|
+
// For livelist when multiselect is enabled, formdata will be array of objects. In this case consider the last object as formdata.
|
|
518
|
+
if (isEqual(nv, ov)) {
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
isArray(nv) ? this.setFormData(last(nv)) : this.setFormData(nv);
|
|
522
|
+
// if dataset on the formFields are not set as the datasourceChange is triggered before the formFields are registered.
|
|
523
|
+
if (!this.isDataSourceUpdated && this.datasource) {
|
|
524
|
+
this.onDataSourceChange();
|
|
525
|
+
}
|
|
526
|
+
break;
|
|
527
|
+
case 'defaultmode':
|
|
528
|
+
if (!this.isLayoutDialog) {
|
|
529
|
+
if (nv && nv === 'Edit') {
|
|
530
|
+
this.updateMode = true;
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
this.updateMode = false;
|
|
534
|
+
}
|
|
535
|
+
this.isUpdateMode = this.updateMode;
|
|
536
|
+
}
|
|
537
|
+
break;
|
|
538
|
+
case 'datasource':
|
|
539
|
+
this.onDataSourceChange();
|
|
540
|
+
break;
|
|
541
|
+
case 'formdatasource':
|
|
542
|
+
this.onFormDataSourceChange();
|
|
543
|
+
break;
|
|
544
|
+
case 'metadata':
|
|
545
|
+
this.generateFormFields();
|
|
546
|
+
break;
|
|
547
|
+
case 'dataset':
|
|
548
|
+
const formFields = this.getFormFields();
|
|
549
|
+
formFields.forEach(field => {
|
|
550
|
+
// notifying the dataset change to the form-field widget.
|
|
551
|
+
if (!field.isDataSetBound && get(field.formWidget, 'dataset$')) {
|
|
552
|
+
field.formWidget.dataset$.next();
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
break;
|
|
556
|
+
case 'readonly':
|
|
557
|
+
this.setReadonlyFields();
|
|
558
|
+
if (nv) {
|
|
559
|
+
this?.buttonArray?.forEach((button) => button.disabled = true);
|
|
560
|
+
}
|
|
561
|
+
else if (this.formWidgets) {
|
|
562
|
+
Object.values(this.formWidgets).forEach(widget => {
|
|
563
|
+
const w = widget;
|
|
564
|
+
if (w.widgetType === 'wm-form-action' && w.buttonDef) {
|
|
565
|
+
w.buttonDef.disabled = w.disabled ?? false;
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
break;
|
|
570
|
+
case 'itemsperrow':
|
|
571
|
+
setListClass(this);
|
|
572
|
+
break;
|
|
573
|
+
default:
|
|
574
|
+
super.onPropertyChange(key, nv, ov);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
// Event callbacks on success/error
|
|
578
|
+
onResultCb(data, status, event) {
|
|
579
|
+
const params = { $event: event, $data: data, $operation: this.operationType };
|
|
580
|
+
// whether service call success or failure call this method
|
|
581
|
+
this.invokeEventCallback('result', params);
|
|
582
|
+
if (status) {
|
|
583
|
+
// if service call is success call this method
|
|
584
|
+
this.invokeEventCallback('success', params);
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
// if service call fails call this method
|
|
588
|
+
this.invokeEventCallback('error', params);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
// Display or hide the inline message/ toaster
|
|
592
|
+
toggleMessage(show, msg, type, header) {
|
|
593
|
+
let template;
|
|
594
|
+
if (show && msg) {
|
|
595
|
+
template = (type === 'error' && this.errormessage) ? this.errormessage : msg;
|
|
596
|
+
if (this.messagelayout === 'Inline') {
|
|
597
|
+
template = this.checkAppServiceErrorMsg(type) || template;
|
|
598
|
+
this.statusMessage = { 'caption': template || '', type: type };
|
|
599
|
+
if (this.messageRef) {
|
|
600
|
+
this.messageRef.showMessage(this.statusMessage.caption, this.statusMessage.type);
|
|
601
|
+
}
|
|
602
|
+
// when message layout is inline on save, scroll the view to top of the form to see the status of the operation
|
|
603
|
+
if (!isElementInViewport(this.$element[0])) {
|
|
604
|
+
scrollToElement(this.$element[0]);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
this.app.notifyApp(template, type, header);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
this.statusMessage.caption = '';
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
// if there is an App.onServiceError handler for the app, that message should be used instead of server returned error message
|
|
616
|
+
checkAppServiceErrorMsg(type) {
|
|
617
|
+
const notificationAction = get(this.app, 'Actions.appNotification');
|
|
618
|
+
if (notificationAction && type === 'error') {
|
|
619
|
+
return notificationAction.getMessage();
|
|
620
|
+
}
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
// Hide the inline message/ toaster
|
|
624
|
+
clearMessage() {
|
|
625
|
+
this.toggleMessage(false);
|
|
626
|
+
}
|
|
627
|
+
// Set the classes on the form based on the captionposition and captionwidth properties
|
|
628
|
+
setLayoutConfig() {
|
|
629
|
+
let layoutConfig;
|
|
630
|
+
layoutConfig = getFieldLayoutConfig(this.captionwidth, this.captionposition, get(this.app.selectedViewPort, 'os'));
|
|
631
|
+
this._widgetClass = layoutConfig.widgetCls;
|
|
632
|
+
this._captionClass = layoutConfig.captionCls;
|
|
633
|
+
$appDigest();
|
|
634
|
+
}
|
|
635
|
+
registerFormWidget(widget) {
|
|
636
|
+
const name = widget.name || widget.key;
|
|
637
|
+
this.formWidgets[name] = widget;
|
|
638
|
+
}
|
|
639
|
+
registerFormFields(formField) {
|
|
640
|
+
const fieldCount = this.formFields.push(formField);
|
|
641
|
+
this.formfields[formField.key] = formField;
|
|
642
|
+
this.registerFormWidget(formField);
|
|
643
|
+
this._debouncedUpdateFieldSource();
|
|
644
|
+
if (this.parentForm) {
|
|
645
|
+
this.parentForm.formFields.push(formField);
|
|
646
|
+
this.parentForm.formfields[formField.key] = formField;
|
|
647
|
+
// inner formfields are pushed to parentForm, passing current innerForm's formdata to set innerFormdata to these innerFormFields
|
|
648
|
+
this.parentForm.setFormData(this.parentForm.formdata, this.formFields, this.formdata || {});
|
|
649
|
+
}
|
|
650
|
+
// WMS-18967: Applying formadata after formfields are ready
|
|
651
|
+
if (fieldCount === this.numberOfFields && !isEmpty(this.formdata)) {
|
|
652
|
+
this.onDataSourceChange();
|
|
653
|
+
isArray(this.formdata) ? this.setFormData(last(this.formdata)) : this.setFormData(this.formdata);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
registerActions(formAction) {
|
|
657
|
+
this.buttonArray.push(formAction);
|
|
658
|
+
}
|
|
659
|
+
// Update the dataoutput whenever there is a change in inside form widget value
|
|
660
|
+
updateFormDataOutput(dataObject) {
|
|
661
|
+
// Set the values of the widgets inside the live form (other than form fields) in form data
|
|
662
|
+
forEach(this.ngform.value, (val, key) => {
|
|
663
|
+
if (!find(this.formFields, { key })) {
|
|
664
|
+
dataObject[key] = val;
|
|
665
|
+
}
|
|
666
|
+
});
|
|
667
|
+
this.dataoutput = dataObject;
|
|
668
|
+
}
|
|
669
|
+
// Construct the data object merging the form fields and custom widgets data
|
|
670
|
+
constructDataObject() {
|
|
671
|
+
const formData = {};
|
|
672
|
+
const formFields = this.getFormFields();
|
|
673
|
+
// Get all form fields and prepare form data as key value pairs
|
|
674
|
+
formFields.forEach(field => {
|
|
675
|
+
let fieldName, fieldValue;
|
|
676
|
+
fieldValue = field.datavalue || field._control.value;
|
|
677
|
+
fieldValue = (fieldValue === null || fieldValue === '') ? undefined : fieldValue;
|
|
678
|
+
if (field.type === 'file') {
|
|
679
|
+
fieldValue = getFiles(this.name, field.key + '_formWidget', field.multiple);
|
|
680
|
+
}
|
|
681
|
+
fieldName = field.key || field.target || field.name;
|
|
682
|
+
// on current Form, when field is innerForm field then we group these fields under new object using formGroupName as key
|
|
683
|
+
// For suppose, applicantName, applicantID are formfields in currentForm
|
|
684
|
+
// This form is having innerform i.e. address, these fields are listed as
|
|
685
|
+
// {"applicantName": "", "applicantID": "", "address": {"street": ""}}
|
|
686
|
+
if (field.form.widgetId !== this.widgetId && field.form.formGroupName) {
|
|
687
|
+
const fd = get(formData, field.form.formGroupName, {});
|
|
688
|
+
fd[fieldName] = fieldValue;
|
|
689
|
+
set(formData, field.form.formGroupName, fd);
|
|
690
|
+
}
|
|
691
|
+
else if ((typeof field.form.formArrayIndex === 'number') && field.form.isParentList && !this.parentForm) { // Fix for [WMS-25806]: use formArrayIndex only if form has a parent form
|
|
692
|
+
// setting formdata based on formArrayIndex
|
|
693
|
+
const fd = get(formData, field.form.parentList.name, []);
|
|
694
|
+
fd[field.form.formArrayIndex] = fd[field.form.formArrayIndex] || {};
|
|
695
|
+
fd[field.form.formArrayIndex][fieldName] = fieldValue;
|
|
696
|
+
set(formData, field.form.parentList.name, fd);
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
// In case of update the field will be already present in form data
|
|
700
|
+
set(formData, fieldName, fieldValue);
|
|
701
|
+
}
|
|
702
|
+
});
|
|
703
|
+
this.updateFormDataOutput(formData);
|
|
704
|
+
return this.dataoutput;
|
|
705
|
+
}
|
|
706
|
+
updateDataOutput() {
|
|
707
|
+
this.constructDataObject();
|
|
708
|
+
if (this.ngform.touched) {
|
|
709
|
+
this.setValidationMsgs(true);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
// FormFields will contain all the fields in parent and inner form also.
|
|
713
|
+
// This returns the formFields in the form based on the form name.
|
|
714
|
+
getFormFields() {
|
|
715
|
+
return filter(this.formFields, formField => {
|
|
716
|
+
return formField.form.name === this.name;
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
setFieldValue(field, data, innerFormdata) {
|
|
720
|
+
const key = field.key || field.name;
|
|
721
|
+
// if customfield param value is not in the formdata then do not assign field value
|
|
722
|
+
// as it can contain default value which will again be overridden by undefined.
|
|
723
|
+
const fd = innerFormdata ? innerFormdata : data;
|
|
724
|
+
if (fd) {
|
|
725
|
+
if (fd.hasOwnProperty(key)) {
|
|
726
|
+
field.value = get(fd, key);
|
|
727
|
+
}
|
|
728
|
+
else if (includes(key, '.')) {
|
|
729
|
+
// key contains '.' when mapping the fields to child reference i.e. childCol is having key as "parent.childCol"
|
|
730
|
+
if (fd.hasOwnProperty(split(key, '.')[0])) {
|
|
731
|
+
field.value = get(fd, key);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
// WMS-18906: For default value, do not mark the form as dirty.
|
|
735
|
+
if (this.dirty && !this._triggeredByUser) {
|
|
736
|
+
this.markAsPristine();
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
const formGroupName = field.form.formGroupName;
|
|
740
|
+
/**
|
|
741
|
+
* if formGroupName is defined which means field is inside the inner form
|
|
742
|
+
* then set the formdata on the field's form using formGroupName
|
|
743
|
+
*/
|
|
744
|
+
if (formGroupName && get(data, formGroupName)) {
|
|
745
|
+
this.setFormData.call(field.form, data[formGroupName]);
|
|
746
|
+
}
|
|
747
|
+
// if formdata is assigned later then on propertyChangeHandler, even inner forms data also needs to be updated.
|
|
748
|
+
if (get(field.form, 'parentFormArray')) {
|
|
749
|
+
this.setFormDataFromParentFormData.call(field.form, data);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
setFormData(data, innerFormFields, innerFormdata) {
|
|
753
|
+
// whereas formFields explicitly passed can contain innerform fields also.
|
|
754
|
+
const formFields = innerFormFields || this.formFields;
|
|
755
|
+
formFields.forEach(field => {
|
|
756
|
+
this.setFieldValue(field, data, innerFormdata);
|
|
757
|
+
if (field.fieldValidations) {
|
|
758
|
+
field.fieldValidations.setCustomValidationMessage();
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
this.constructDataObject();
|
|
762
|
+
}
|
|
763
|
+
resetFormState() {
|
|
764
|
+
// clearing the validationMessages on reset.
|
|
765
|
+
if (this.validationMessages.length) {
|
|
766
|
+
this.validationMessages = [];
|
|
767
|
+
}
|
|
768
|
+
if (!this.ngform) {
|
|
769
|
+
return;
|
|
770
|
+
}
|
|
771
|
+
this.ngform.markAsUntouched();
|
|
772
|
+
this.ngform.markAsPristine();
|
|
773
|
+
}
|
|
774
|
+
reset() {
|
|
775
|
+
this.resetFormState();
|
|
776
|
+
this.formFields.forEach(field => {
|
|
777
|
+
field.value = '';
|
|
778
|
+
if (field.widgettype === 'upload' || field.type === DataType.BLOB) {
|
|
779
|
+
this.resetFileUploadWidget(field, true);
|
|
780
|
+
}
|
|
781
|
+
else if (field.widgettype === 'slider') {
|
|
782
|
+
this.resetSliderWidget(field);
|
|
783
|
+
}
|
|
784
|
+
field.nativeElement.querySelector('input')?.removeAttribute('aria-invalid');
|
|
785
|
+
});
|
|
786
|
+
this.constructDataObject();
|
|
787
|
+
this.clearMessage();
|
|
788
|
+
}
|
|
789
|
+
resetSliderWidget(field) {
|
|
790
|
+
const $formEle = this.$element;
|
|
791
|
+
const slider = $formEle.find('[name="' + field.key + '_formWidget"]').closest('.slider-control');
|
|
792
|
+
if (slider.length) {
|
|
793
|
+
slider.css('--end', `50%`);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
savePrevformFields() {
|
|
797
|
+
this.prevformFields = getClonedObject(this.formFields.map(field => {
|
|
798
|
+
return {
|
|
799
|
+
'key': field.key,
|
|
800
|
+
'type': field.type,
|
|
801
|
+
'widgettype': field.widgettype,
|
|
802
|
+
'outputformat': field.outputformat,
|
|
803
|
+
'value': field.value
|
|
804
|
+
};
|
|
805
|
+
}));
|
|
806
|
+
}
|
|
807
|
+
savePrevDataValues() {
|
|
808
|
+
this.prevDataValues = this.formFields.map((obj) => {
|
|
809
|
+
return { 'key': obj.key, 'value': obj.value };
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
setReadonlyFields() {
|
|
813
|
+
this.formFields.forEach(field => {
|
|
814
|
+
field.setReadOnlyState();
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
resetFileUploadWidget(field, skipValueSet) {
|
|
818
|
+
const $formEle = this.$element;
|
|
819
|
+
$formEle.find('[name="' + field.key + '_formWidget"]').val('');
|
|
820
|
+
field._control.reset();
|
|
821
|
+
if (!skipValueSet) {
|
|
822
|
+
field.href = '';
|
|
823
|
+
field.value = null;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
emptyDataModel() {
|
|
827
|
+
this.formFields.forEach(field => {
|
|
828
|
+
if (isDefined(field)) {
|
|
829
|
+
if (field.type === DataType.BLOB) {
|
|
830
|
+
this.resetFileUploadWidget(field);
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
field.datavalue = '';
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
setDefaultValues() {
|
|
839
|
+
this.formFields.forEach(field => {
|
|
840
|
+
this.onFieldDefaultValueChange(field, field.defaultvalue);
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
setOperationType(mode) {
|
|
844
|
+
this.operationType = mode || 'insert';
|
|
845
|
+
}
|
|
846
|
+
new() {
|
|
847
|
+
this.resetFormState();
|
|
848
|
+
this.operationType = Live_Operations.INSERT;
|
|
849
|
+
this.clearMessage();
|
|
850
|
+
if (this.isSelected) {
|
|
851
|
+
this.savePrevformFields();
|
|
852
|
+
}
|
|
853
|
+
this.emptyDataModel();
|
|
854
|
+
setTimeout(() => {
|
|
855
|
+
this.setDefaultValues();
|
|
856
|
+
this.savePrevDataValues();
|
|
857
|
+
this.constructDataObject();
|
|
858
|
+
});
|
|
859
|
+
this.isUpdateMode = true;
|
|
860
|
+
}
|
|
861
|
+
edit() {
|
|
862
|
+
this.resetFormState();
|
|
863
|
+
this.clearMessage();
|
|
864
|
+
this.operationType = Live_Operations.UPDATE;
|
|
865
|
+
if (this.isSelected) {
|
|
866
|
+
this.savePrevformFields();
|
|
867
|
+
this.savePrevDataValues();
|
|
868
|
+
}
|
|
869
|
+
this.prevDataObject = getClonedObject(this.formdata || {});
|
|
870
|
+
this.setReadonlyFields();
|
|
871
|
+
this.isUpdateMode = true;
|
|
872
|
+
$appDigest();
|
|
873
|
+
}
|
|
874
|
+
triggerWMEvent(eventName) {
|
|
875
|
+
const tableId = this.nativeElement.getAttribute('dependsontable');
|
|
876
|
+
if (!tableId) {
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
$invokeWatchers(true);
|
|
880
|
+
this.app.notify('wm-event', { eventName, widgetName: tableId });
|
|
881
|
+
}
|
|
882
|
+
submitForm($event) {
|
|
883
|
+
let template, formData, result;
|
|
884
|
+
const dataSource = this.datasource;
|
|
885
|
+
// Disable the form submit if form is in invalid state.
|
|
886
|
+
if (this.validateFieldsOnSubmit()) {
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
889
|
+
formData = getClonedObject(this.constructDataObject());
|
|
890
|
+
const getParams = () => {
|
|
891
|
+
return { $event, $formData: formData, $data: formData };
|
|
892
|
+
};
|
|
893
|
+
if (this.onBeforeSubmitEvt) {
|
|
894
|
+
if (this.invokeEventCallback('beforesubmit', getParams()) === false) {
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
else {
|
|
898
|
+
this.resetFormState();
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
this.resetFormState();
|
|
903
|
+
}
|
|
904
|
+
if (this.onSubmitEvt || dataSource) {
|
|
905
|
+
// If on submit is there execute it and if it returns true do service variable invoke else return
|
|
906
|
+
// If its a service variable call setInput and assign form data and invoke the service
|
|
907
|
+
if (dataSource) {
|
|
908
|
+
const currentPageNum = dataSource.pagination && dataSource.pagination.number + 1;
|
|
909
|
+
const operationType = this.operationType ? this.operationType : 'insert';
|
|
910
|
+
performDataOperation(dataSource, formData, { operationType: operationType })
|
|
911
|
+
.then((data) => {
|
|
912
|
+
if (dataSource.category === 'wm.CrudVariable') {
|
|
913
|
+
this.triggerWMEvent('resetEditMode');
|
|
914
|
+
this.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
915
|
+
'skipToggleState': true,
|
|
916
|
+
'operation': 'list',
|
|
917
|
+
'page': currentPageNum,
|
|
918
|
+
'preventMissingOpMsg': true
|
|
919
|
+
});
|
|
920
|
+
if (this.dialogId) {
|
|
921
|
+
this.closeDialog();
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
if (isDefined(data.body)) {
|
|
925
|
+
result = getValidJSON(data.body);
|
|
926
|
+
result = isDefined(result) ? result : data.body;
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
result = data;
|
|
930
|
+
}
|
|
931
|
+
return {
|
|
932
|
+
'result': result,
|
|
933
|
+
'status': true,
|
|
934
|
+
'message': this.postmessage,
|
|
935
|
+
'type': 'success'
|
|
936
|
+
};
|
|
937
|
+
}, (error) => {
|
|
938
|
+
template = this.errormessage || error.error || error;
|
|
939
|
+
$appDigest();
|
|
940
|
+
return {
|
|
941
|
+
'result': get(error, 'error') || error,
|
|
942
|
+
'status': false,
|
|
943
|
+
'message': template,
|
|
944
|
+
'type': 'error'
|
|
945
|
+
};
|
|
946
|
+
}).then(response => {
|
|
947
|
+
if ((response.type === 'error' && !this.onError) || (response.type === 'success' && !this.onSuccess)) {
|
|
948
|
+
this.toggleMessage(true, response.message, response.type);
|
|
949
|
+
}
|
|
950
|
+
this.invokeEventCallback('submit', getParams());
|
|
951
|
+
this.onResultCb(response.result, response.status, $event);
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
else {
|
|
955
|
+
this.invokeEventCallback('submit', getParams());
|
|
956
|
+
this.onResultCb({}, true, $event);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
else {
|
|
960
|
+
this.onResultCb({}, true, $event);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
closeDialog() {
|
|
964
|
+
this.dialogService.close(this.dialogId);
|
|
965
|
+
}
|
|
966
|
+
// Method to show/hide the panel header or footer based on the buttons
|
|
967
|
+
showButtons(position) {
|
|
968
|
+
return some(this.buttonArray, btn => {
|
|
969
|
+
return includes(btn.position, position) && btn.updateMode === this.isUpdateMode;
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
// Expand or collapse the panel
|
|
973
|
+
expandCollapsePanel() {
|
|
974
|
+
if (this.collapsible) {
|
|
975
|
+
// flip the active flag
|
|
976
|
+
this.expanded = !this.expanded;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
onDataSourceUpdate(response, newForm, updateMode) {
|
|
980
|
+
if (newForm) {
|
|
981
|
+
this.new();
|
|
982
|
+
}
|
|
983
|
+
else {
|
|
984
|
+
this.setFormData(response);
|
|
985
|
+
this.closeDialog();
|
|
986
|
+
}
|
|
987
|
+
this.isUpdateMode = isDefined(updateMode) ? updateMode : true;
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* This method tranverses through the parent containing formdata and returns the parent formdata.
|
|
991
|
+
* @param form, represents the current form instance
|
|
992
|
+
* @returns {any}
|
|
993
|
+
*/
|
|
994
|
+
getNearestParentFormData(form) {
|
|
995
|
+
if (!form.parentForm) {
|
|
996
|
+
return {};
|
|
997
|
+
}
|
|
998
|
+
if (!form.bindformdata && get(form.parentForm, 'formdata') && !isEmpty(form.parentForm.formdata)) {
|
|
999
|
+
return form.parentForm.formdata;
|
|
1000
|
+
}
|
|
1001
|
+
return this.getNearestParentFormData(form.parentForm);
|
|
1002
|
+
}
|
|
1003
|
+
setFormDataFromParentFormData(formdata) {
|
|
1004
|
+
if (isEmpty(this.formdata) && this.parentForm && formdata) {
|
|
1005
|
+
/**
|
|
1006
|
+
* If form is inside list,
|
|
1007
|
+
* 1. directly applying the formdata to the formArray to update the formdata on list of forms using patchValue.
|
|
1008
|
+
* 2. and also setting individual formdata to the form inside each item based on formArrayIndex, when form is not bound to formdata.
|
|
1009
|
+
* 3. explicitly invoking formdata as formFields will contain all the formfields including innerForm's fields
|
|
1010
|
+
* (if we do not invoke explicitly then formFields will just contain the fields inside current form and not inner form fields)
|
|
1011
|
+
* 4. if childFormArrayData is not available we will check for inner form data using "formGroupName" and will set the innerform data
|
|
1012
|
+
* If not inside list, just set the formdata on all the formfields including innerForm fields
|
|
1013
|
+
*/
|
|
1014
|
+
if (this.parentFormArray) {
|
|
1015
|
+
let childFormArrayData = get(formdata, this.parentList.name);
|
|
1016
|
+
if (childFormArrayData) {
|
|
1017
|
+
if (!isArray(childFormArrayData)) {
|
|
1018
|
+
childFormArrayData = [childFormArrayData];
|
|
1019
|
+
}
|
|
1020
|
+
this.parentFormArray.patchValue(childFormArrayData);
|
|
1021
|
+
if (!this.bindformdata) {
|
|
1022
|
+
this.formdata = childFormArrayData[this.formArrayIndex];
|
|
1023
|
+
}
|
|
1024
|
+
this.setFormData(this.formdata);
|
|
1025
|
+
}
|
|
1026
|
+
else if (this.isParentList && this.parentForm.formGroupName) {
|
|
1027
|
+
const parentFormData = get(formdata, this.parentForm.formGroupName);
|
|
1028
|
+
this.setFormDataFromParentFormData(parentFormData);
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
else {
|
|
1032
|
+
this.setFormData(formdata);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
// On form data source change. This method is overridden by live form and live filter
|
|
1037
|
+
onDataSourceChange() {
|
|
1038
|
+
if (get(this.formFields, 'length') && !this.bindformdata) {
|
|
1039
|
+
this.isDataSourceUpdated = true;
|
|
1040
|
+
/**
|
|
1041
|
+
* formdata on the parent form will be set before the inner forms are rendered.
|
|
1042
|
+
* Hence handling formdata on the innerForms, which might be rendered slowly (suppose prefab with form)
|
|
1043
|
+
* setting inner form's formdata obtained from parent formdata
|
|
1044
|
+
* this applies only when formdata is not given on the inner form.
|
|
1045
|
+
*/
|
|
1046
|
+
const formdata = this.getNearestParentFormData(this);
|
|
1047
|
+
this.setFormDataFromParentFormData(formdata);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
// On form data source change. This method is overridden by live form and live filter
|
|
1051
|
+
onFormDataSourceChange() {
|
|
1052
|
+
this.updateFieldSource();
|
|
1053
|
+
}
|
|
1054
|
+
// On form field default value change. This method is overridden by live form and live filter
|
|
1055
|
+
onFieldDefaultValueChange(field, nv) {
|
|
1056
|
+
field.value = parseValueByType(nv, undefined, field.widgettype, field.trailingzero);
|
|
1057
|
+
// WMS-22434: For default value set on individual form fields, do not mark the form as dirty.
|
|
1058
|
+
if (this.dirty && !this._triggeredByUser) {
|
|
1059
|
+
this.markAsPristine();
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
// On form field value change. This method is overridden by live form and live filter
|
|
1063
|
+
onFieldValueChange() {
|
|
1064
|
+
}
|
|
1065
|
+
// Function to generate and compile the form fields from the metadata
|
|
1066
|
+
async generateFormFields() {
|
|
1067
|
+
let noOfColumns;
|
|
1068
|
+
let $gridLayout;
|
|
1069
|
+
// Check if grid layout is present or not for first time
|
|
1070
|
+
if (isUndefined(this._isGridLayoutPresent)) {
|
|
1071
|
+
this._isGridLayoutPresent = this.$element.find('.panel-body [wmlayoutgrid]').length > 0;
|
|
1072
|
+
}
|
|
1073
|
+
if (this._isGridLayoutPresent) {
|
|
1074
|
+
$gridLayout = this.$element.find('.form-elements [wmlayoutgrid]').first();
|
|
1075
|
+
noOfColumns = Number($gridLayout.attr('columns')) || 1;
|
|
1076
|
+
}
|
|
1077
|
+
else {
|
|
1078
|
+
$gridLayout = this.$element.find('.form-elements .dynamic-form-container');
|
|
1079
|
+
if (!$gridLayout.length) {
|
|
1080
|
+
this.$element.find('.form-elements').prepend('<div class="dynamic-form-container"></div>');
|
|
1081
|
+
$gridLayout = this.$element.find('.form-elements .dynamic-form-container');
|
|
1082
|
+
}
|
|
1083
|
+
noOfColumns = 1;
|
|
1084
|
+
}
|
|
1085
|
+
const columnWidth = 12 / noOfColumns;
|
|
1086
|
+
let fieldTemplate = '';
|
|
1087
|
+
let colCount = 0;
|
|
1088
|
+
let index;
|
|
1089
|
+
let userFields;
|
|
1090
|
+
let fields = this.metadata ? this.metadata.data || this.metadata : [];
|
|
1091
|
+
this.formFields = []; // empty the form fields
|
|
1092
|
+
if (isEmpty(fields)) {
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1095
|
+
if (this.onBeforeRenderEvt) {
|
|
1096
|
+
userFields = this.invokeEventCallback('beforerender', { $metadata: fields });
|
|
1097
|
+
if (userFields) {
|
|
1098
|
+
fields = userFields;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
if (!isArray(fields)) {
|
|
1102
|
+
return;
|
|
1103
|
+
}
|
|
1104
|
+
while (fields[colCount]) {
|
|
1105
|
+
let colTmpl = '';
|
|
1106
|
+
for (index = 0; index < noOfColumns; index++) {
|
|
1107
|
+
if (fields[colCount]) {
|
|
1108
|
+
colTmpl += setMarkupForFormField(fields[colCount], columnWidth);
|
|
1109
|
+
}
|
|
1110
|
+
colCount++;
|
|
1111
|
+
}
|
|
1112
|
+
fieldTemplate += `<wm-gridrow>${colTmpl}</wm-gridrow>`;
|
|
1113
|
+
}
|
|
1114
|
+
if (!this._isGridLayoutPresent) {
|
|
1115
|
+
fieldTemplate = `<wm-layoutgrid>${fieldTemplate}</wm-layoutgrid>`;
|
|
1116
|
+
}
|
|
1117
|
+
this.dynamicFormRef.clear();
|
|
1118
|
+
if (!this._dynamicContext) {
|
|
1119
|
+
this._dynamicContext = Object.create(this.viewParent);
|
|
1120
|
+
this._dynamicContext.form = this;
|
|
1121
|
+
}
|
|
1122
|
+
const componentFactoryRef = await this.dynamicComponentProvider.getComponentFactoryRef('app-form-dynamic-' + this.widgetId, fieldTemplate, {
|
|
1123
|
+
noCache: true,
|
|
1124
|
+
transpile: true
|
|
1125
|
+
});
|
|
1126
|
+
const component = this.dynamicFormRef.createComponent(componentFactoryRef, 0, this.inj);
|
|
1127
|
+
extendProto(component.instance, this._dynamicContext);
|
|
1128
|
+
$gridLayout[0].appendChild(component.location.nativeElement);
|
|
1129
|
+
this.setFormData(this.formdata);
|
|
1130
|
+
}
|
|
1131
|
+
get mode() {
|
|
1132
|
+
return this.operationType || this.findOperationType();
|
|
1133
|
+
}
|
|
1134
|
+
get dirty() {
|
|
1135
|
+
return this.ngform && this.ngform.dirty;
|
|
1136
|
+
}
|
|
1137
|
+
/**
|
|
1138
|
+
* This method sets the form state to pristine by internally calling angular markAsPristine method on the form
|
|
1139
|
+
* @param value, When true, mark only this control. When false or not supplied, marks all direct ancestors. Default is false
|
|
1140
|
+
* @returns {void}
|
|
1141
|
+
*/
|
|
1142
|
+
markAsPristine(value = false) {
|
|
1143
|
+
this.ngform.markAsPristine({ onlySelf: value });
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* This method sets the form state to dirty by internally calling angular markAsDirty method on the form
|
|
1147
|
+
* @param value, When true, mark only this control. When false or not supplied, marks all direct ancestors. Default is false
|
|
1148
|
+
* @returns {void}
|
|
1149
|
+
*/
|
|
1150
|
+
markAsDirty(value = false) {
|
|
1151
|
+
this.ngform.markAsDirty({ onlySelf: value });
|
|
1152
|
+
}
|
|
1153
|
+
get invalid() {
|
|
1154
|
+
return this.ngform && this.ngform.invalid;
|
|
1155
|
+
}
|
|
1156
|
+
get touched() {
|
|
1157
|
+
return this.ngform && this.ngform.touched;
|
|
1158
|
+
}
|
|
1159
|
+
get valid() {
|
|
1160
|
+
return this.ngform && this.ngform.valid;
|
|
1161
|
+
}
|
|
1162
|
+
get pristine() {
|
|
1163
|
+
return this.ngform && this.ngform.pristine;
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* This method sets the form state to touched by internally calling angular markAsTouched method on the form
|
|
1167
|
+
* @param value, When true, mark only this control. When false or not supplied, marks all direct ancestors. Default is false
|
|
1168
|
+
* @returns {void}
|
|
1169
|
+
*/
|
|
1170
|
+
markAsTouched(value = false) {
|
|
1171
|
+
this.ngform.markAsTouched({ onlySelf: value });
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* This method sets the form state to untouched by internally calling angular markAsUntouched method on the form
|
|
1175
|
+
* @param value, When true, mark only this control. When false or not supplied, marks all direct ancestors. Default is false
|
|
1176
|
+
* @returns {void}
|
|
1177
|
+
*/
|
|
1178
|
+
markAsUntouched(value = false) {
|
|
1179
|
+
this.ngform.markAsUntouched({ onlySelf: value });
|
|
1180
|
+
}
|
|
1181
|
+
invokeActionEvent($event, expression) {
|
|
1182
|
+
const fn = $parseEvent(expression);
|
|
1183
|
+
fn(this.viewParent, Object.assign(this.context, { $event }));
|
|
1184
|
+
}
|
|
1185
|
+
ngOnDestroy() {
|
|
1186
|
+
// on form destroy, removing this form from the parentForm too.
|
|
1187
|
+
const controls = this.parentForm && get(this.parentForm, 'ngform.controls');
|
|
1188
|
+
if (controls) {
|
|
1189
|
+
// when current form is inside the list (i.e. incase of formArray).
|
|
1190
|
+
if (get(this.parentList, 'name') && controls.hasOwnProperty(this.parentList.name)) {
|
|
1191
|
+
//get the index of current form in the list and remove the FormControl from FormArray
|
|
1192
|
+
const index = findIndex(this.parentList.getWidgets(this.name), { widgetId: this.widgetId });
|
|
1193
|
+
this.parentForm.ngform.controls[this.parentList.name].removeAt(index);
|
|
1194
|
+
}
|
|
1195
|
+
// when we have formGroupName set i.e. multiple formInstance with counter appended to formName
|
|
1196
|
+
if (this.formGroupName && controls.hasOwnProperty(this.formGroupName)) {
|
|
1197
|
+
this.parentForm.ngform.removeControl(this.formGroupName);
|
|
1198
|
+
}
|
|
1199
|
+
else {
|
|
1200
|
+
this.parentForm.ngform.removeControl(this.name);
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
// MEMORY LEAK FIX: Clear ViewContainerRef for dynamically generated form fields
|
|
1204
|
+
if (this.dynamicFormRef) {
|
|
1205
|
+
this.dynamicFormRef.clear();
|
|
1206
|
+
}
|
|
1207
|
+
// MEMORY LEAK FIX: Clear dynamic context object
|
|
1208
|
+
if (this._dynamicContext) {
|
|
1209
|
+
Object.keys(this._dynamicContext).forEach(key => {
|
|
1210
|
+
delete this._dynamicContext[key];
|
|
1211
|
+
});
|
|
1212
|
+
this._dynamicContext = null;
|
|
1213
|
+
}
|
|
1214
|
+
// MEMORY LEAK FIX: Clear all data arrays and objects
|
|
1215
|
+
this.formFields = [];
|
|
1216
|
+
this.formWidgets = {};
|
|
1217
|
+
this.filterWidgets = {};
|
|
1218
|
+
this.buttonArray = [];
|
|
1219
|
+
this.validationMessages = [];
|
|
1220
|
+
this.formdata = {};
|
|
1221
|
+
this.dataoutput = {};
|
|
1222
|
+
this.formfields = {};
|
|
1223
|
+
this.prevDataValues = null;
|
|
1224
|
+
this.prevDataObject = null;
|
|
1225
|
+
this.prevformFields = null;
|
|
1226
|
+
// MEMORY LEAK FIX: Nullify debounced function closures
|
|
1227
|
+
this._debouncedUpdateFieldSource = null;
|
|
1228
|
+
this._debouncedSubmitForm = null;
|
|
1229
|
+
super.ngOnDestroy();
|
|
1230
|
+
}
|
|
1231
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormComponent, deps: [{ token: i0.Injector }, { 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 }); }
|
|
1232
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormComponent, isStandalone: true, selector: "form[wmForm]", host: { listeners: { "submit": "submit($event)", "reset": "onReset()", "keydown": "onKeydownHandler($event)" }, properties: { "action": "this.action" } }, providers: [
|
|
1233
|
+
provideAsWidgetRef(FormComponent)
|
|
1234
|
+
], 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 || showButtons('header'))) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n @if (iconclass) {\n <i class=\"app-icon panel-icon\" aria-hidden=\"true\" [ngClass]=\"iconclass\"></i>\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? (this.appLocale?.LABEL_COLLAPSE||'Collapse'):(this.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: "pipe", type: FilterPipe, name: "filter" }, { 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"] }] }); }
|
|
1235
|
+
}
|
|
1236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormComponent, decorators: [{
|
|
1237
|
+
type: Component,
|
|
1238
|
+
args: [{ standalone: true, imports: [CommonModule, FilterPipe, AnchorComponent, ButtonComponent, MessageComponent], selector: 'form[wmForm]', providers: [
|
|
1239
|
+
provideAsWidgetRef(FormComponent)
|
|
1240
|
+
], 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 || showButtons('header'))) {\n <div class=\"panel-heading\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n @if (iconclass) {\n <i class=\"app-icon panel-icon\" aria-hidden=\"true\" [ngClass]=\"iconclass\"></i>\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? (this.appLocale?.LABEL_COLLAPSE||'Collapse'):(this.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" }]
|
|
1241
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i1.FormBuilder }, { type: i1$1.App }, { type: i1$1.AbstractDialogService }, { type: i1$1.DynamicComponentRefProvider }, { type: i0.NgZone }, { type: i3.ListComponent, decorators: [{
|
|
1242
|
+
type: Optional
|
|
1243
|
+
}] }, { type: FormComponent, decorators: [{
|
|
1244
|
+
type: SkipSelf
|
|
1245
|
+
}, {
|
|
1246
|
+
type: Optional
|
|
1247
|
+
}] }, { type: i4.PrefabDirective, decorators: [{
|
|
1248
|
+
type: SkipSelf
|
|
1249
|
+
}, {
|
|
1250
|
+
type: Optional
|
|
1251
|
+
}] }, { type: i5.PartialDirective, decorators: [{
|
|
1252
|
+
type: SkipSelf
|
|
1253
|
+
}, {
|
|
1254
|
+
type: Optional
|
|
1255
|
+
}] }, { type: undefined, decorators: [{
|
|
1256
|
+
type: Attribute,
|
|
1257
|
+
args: ['beforesubmit.event']
|
|
1258
|
+
}] }, { type: undefined, decorators: [{
|
|
1259
|
+
type: Attribute,
|
|
1260
|
+
args: ['submit.event']
|
|
1261
|
+
}] }, { type: undefined, decorators: [{
|
|
1262
|
+
type: Attribute,
|
|
1263
|
+
args: ['beforerender.event']
|
|
1264
|
+
}] }, { type: undefined, decorators: [{
|
|
1265
|
+
type: Attribute,
|
|
1266
|
+
args: ['dataset.bind']
|
|
1267
|
+
}] }, { type: undefined, decorators: [{
|
|
1268
|
+
type: Attribute,
|
|
1269
|
+
args: ['formdata.bind']
|
|
1270
|
+
}] }, { type: undefined, decorators: [{
|
|
1271
|
+
type: Attribute,
|
|
1272
|
+
args: ['wmLiveForm']
|
|
1273
|
+
}] }, { type: undefined, decorators: [{
|
|
1274
|
+
type: Attribute,
|
|
1275
|
+
args: ['wmLiveFilter']
|
|
1276
|
+
}] }, { type: undefined, decorators: [{
|
|
1277
|
+
type: Attribute,
|
|
1278
|
+
args: ['data-role']
|
|
1279
|
+
}] }, { type: undefined, decorators: [{
|
|
1280
|
+
type: Attribute,
|
|
1281
|
+
args: ['key']
|
|
1282
|
+
}] }, { type: undefined, decorators: [{
|
|
1283
|
+
type: Attribute,
|
|
1284
|
+
args: ['name']
|
|
1285
|
+
}] }, { type: undefined, decorators: [{
|
|
1286
|
+
type: Inject,
|
|
1287
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1288
|
+
}, {
|
|
1289
|
+
type: Optional
|
|
1290
|
+
}] }], propDecorators: { dynamicFormRef: [{
|
|
1291
|
+
type: ViewChild,
|
|
1292
|
+
args: ['dynamicForm', { static: true, read: ViewContainerRef }]
|
|
1293
|
+
}], messageRef: [{
|
|
1294
|
+
type: ViewChild,
|
|
1295
|
+
args: [MessageComponent]
|
|
1296
|
+
}], componentRefs: [{
|
|
1297
|
+
type: ContentChildren,
|
|
1298
|
+
args: [WidgetRef, { descendants: true }]
|
|
1299
|
+
}], action: [{
|
|
1300
|
+
type: HostBinding,
|
|
1301
|
+
args: ['action']
|
|
1302
|
+
}], submit: [{
|
|
1303
|
+
type: HostListener,
|
|
1304
|
+
args: ['submit', ['$event']]
|
|
1305
|
+
}], onReset: [{
|
|
1306
|
+
type: HostListener,
|
|
1307
|
+
args: ['reset']
|
|
1308
|
+
}], onKeydownHandler: [{
|
|
1309
|
+
type: HostListener,
|
|
1310
|
+
args: ['keydown', ['$event']]
|
|
1311
|
+
}] } });
|
|
1312
|
+
|
|
1313
|
+
class FormWidgetDirective {
|
|
1314
|
+
constructor(form, table, componentInstance, fb, name, key) {
|
|
1315
|
+
this.componentInstance = componentInstance;
|
|
1316
|
+
this.name = name;
|
|
1317
|
+
this.key = key;
|
|
1318
|
+
this.fb = fb;
|
|
1319
|
+
this.parent = form || table;
|
|
1320
|
+
this.ngform = this.parent.ngform;
|
|
1321
|
+
this.componentInstance.registerPropertyChangeListener((k, nv) => {
|
|
1322
|
+
if (k === 'datavalue' && this._control) {
|
|
1323
|
+
this._control.setValue(nv);
|
|
1324
|
+
}
|
|
1325
|
+
else if (k === 'name' && !this._control) {
|
|
1326
|
+
this.addControl(this.key || nv);
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
}
|
|
1330
|
+
get _control() {
|
|
1331
|
+
const fieldName = this.key || this.name;
|
|
1332
|
+
if (!fieldName) {
|
|
1333
|
+
return undefined;
|
|
1334
|
+
}
|
|
1335
|
+
return this.ngform && this.ngform.controls[fieldName];
|
|
1336
|
+
}
|
|
1337
|
+
addControl(fieldName) {
|
|
1338
|
+
this.ngform.addControl(fieldName, this.createControl());
|
|
1339
|
+
}
|
|
1340
|
+
createControl() {
|
|
1341
|
+
return this.fb.control(this.componentInstance.datavalue);
|
|
1342
|
+
}
|
|
1343
|
+
ngOnInit() {
|
|
1344
|
+
const fieldName = this.key || this.name;
|
|
1345
|
+
if (fieldName && !this._control) {
|
|
1346
|
+
this.addControl(fieldName);
|
|
1347
|
+
this.parent.registerFormWidget(this.componentInstance);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
ngOnDestroy() {
|
|
1351
|
+
// MEMORY LEAK FIX: Clear all references
|
|
1352
|
+
this.ngform = null;
|
|
1353
|
+
this.fb = null;
|
|
1354
|
+
this.parent = null;
|
|
1355
|
+
this.componentInstance = null;
|
|
1356
|
+
}
|
|
1357
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", 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 }); }
|
|
1358
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FormWidgetDirective, isStandalone: true, selector: "[wmFormWidget]", ngImport: i0 }); }
|
|
1359
|
+
}
|
|
1360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormWidgetDirective, decorators: [{
|
|
1361
|
+
type: Directive,
|
|
1362
|
+
args: [{
|
|
1363
|
+
standalone: true,
|
|
1364
|
+
selector: '[wmFormWidget]'
|
|
1365
|
+
}]
|
|
1366
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1367
|
+
type: Optional
|
|
1368
|
+
}, {
|
|
1369
|
+
type: Inject,
|
|
1370
|
+
args: [FormComponent]
|
|
1371
|
+
}] }, { type: undefined, decorators: [{
|
|
1372
|
+
type: Optional
|
|
1373
|
+
}, {
|
|
1374
|
+
type: Inject,
|
|
1375
|
+
args: [TableComponent]
|
|
1376
|
+
}] }, { type: undefined, decorators: [{
|
|
1377
|
+
type: Self
|
|
1378
|
+
}, {
|
|
1379
|
+
type: Inject,
|
|
1380
|
+
args: [WidgetRef]
|
|
1381
|
+
}] }, { type: i1.FormBuilder }, { type: undefined, decorators: [{
|
|
1382
|
+
type: Attribute,
|
|
1383
|
+
args: ['name']
|
|
1384
|
+
}] }, { type: undefined, decorators: [{
|
|
1385
|
+
type: Attribute,
|
|
1386
|
+
args: ['key']
|
|
1387
|
+
}] }] });
|
|
1388
|
+
|
|
1389
|
+
const registerProps$1 = () => {
|
|
1390
|
+
register('wm-form-action', new Map([
|
|
1391
|
+
['accessroles', PROP_STRING],
|
|
1392
|
+
['action', PROP_STRING],
|
|
1393
|
+
['class', PROP_STRING],
|
|
1394
|
+
['binding', PROP_STRING],
|
|
1395
|
+
['disabled', PROP_BOOLEAN],
|
|
1396
|
+
['display-name', PROP_STRING],
|
|
1397
|
+
['hyperlink', PROP_STRING],
|
|
1398
|
+
['iconclass', PROP_STRING],
|
|
1399
|
+
['iconname', PROP_STRING],
|
|
1400
|
+
['key', PROP_STRING],
|
|
1401
|
+
['position', { value: 'footer', ...PROP_STRING }],
|
|
1402
|
+
['shortcutkey', PROP_STRING],
|
|
1403
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
1404
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
1405
|
+
['target', PROP_STRING],
|
|
1406
|
+
['title', PROP_STRING],
|
|
1407
|
+
['type', { value: 'button', ...PROP_STRING }],
|
|
1408
|
+
['update-mode', { value: true, ...PROP_BOOLEAN }],
|
|
1409
|
+
['widget-type', { value: 'button', ...PROP_STRING }]
|
|
1410
|
+
]));
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
const WIDGET_CONFIG = { widgetType: 'wm-form-action', hostClass: '' };
|
|
1414
|
+
class FormActionDirective extends BaseComponent {
|
|
1415
|
+
static { this.initializeProps = registerProps$1(); }
|
|
1416
|
+
constructor(inj, form, explicitContext) {
|
|
1417
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
1418
|
+
this.form = form;
|
|
1419
|
+
}
|
|
1420
|
+
populateAction() {
|
|
1421
|
+
this.buttonDef = {
|
|
1422
|
+
key: this.key || this.binding,
|
|
1423
|
+
displayName: this['display-name'],
|
|
1424
|
+
show: this.show,
|
|
1425
|
+
class: this.class ? this.class : (this['widget-type'] === 'button' ? 'btn-secondary' : ''),
|
|
1426
|
+
iconclass: this.iconclass || '',
|
|
1427
|
+
title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,
|
|
1428
|
+
action: this.action,
|
|
1429
|
+
accessroles: this.accessroles,
|
|
1430
|
+
shortcutkey: this.shortcutkey,
|
|
1431
|
+
disabled: this.disabled || this.form.readonly,
|
|
1432
|
+
tabindex: this.tabindex,
|
|
1433
|
+
iconname: this.iconname,
|
|
1434
|
+
type: this.type,
|
|
1435
|
+
updateMode: this['update-mode'],
|
|
1436
|
+
position: this.position,
|
|
1437
|
+
widgetType: this['widget-type'],
|
|
1438
|
+
hyperlink: this.hyperlink,
|
|
1439
|
+
target: this.target
|
|
1440
|
+
};
|
|
1441
|
+
this._propsInitialized = true;
|
|
1442
|
+
}
|
|
1443
|
+
ngOnInit() {
|
|
1444
|
+
super.ngOnInit();
|
|
1445
|
+
this.populateAction();
|
|
1446
|
+
this.form.registerActions(this.buttonDef);
|
|
1447
|
+
}
|
|
1448
|
+
onPropertyChange(key, nv, ov) {
|
|
1449
|
+
if (!this._propsInitialized) {
|
|
1450
|
+
return;
|
|
1451
|
+
}
|
|
1452
|
+
switch (key) {
|
|
1453
|
+
case 'disabled':
|
|
1454
|
+
this.buttonDef[key] = nv || this.form.readonly;
|
|
1455
|
+
break;
|
|
1456
|
+
case 'display-name':
|
|
1457
|
+
this.buttonDef.displayName = nv;
|
|
1458
|
+
default:
|
|
1459
|
+
this.buttonDef[key] = nv;
|
|
1460
|
+
break;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
ngOnDestroy() {
|
|
1464
|
+
// MEMORY LEAK FIX: Clear references
|
|
1465
|
+
this.form = null;
|
|
1466
|
+
this.buttonDef = null;
|
|
1467
|
+
super.ngOnDestroy();
|
|
1468
|
+
}
|
|
1469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormActionDirective, deps: [{ token: i0.Injector }, { token: FormComponent, optional: true }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1470
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FormActionDirective, isStandalone: true, selector: "[wmFormAction]", providers: [
|
|
1471
|
+
provideAsWidgetRef(FormActionDirective)
|
|
1472
|
+
], usesInheritance: true, ngImport: i0 }); }
|
|
1473
|
+
}
|
|
1474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormActionDirective, decorators: [{
|
|
1475
|
+
type: Directive,
|
|
1476
|
+
args: [{
|
|
1477
|
+
standalone: true,
|
|
1478
|
+
selector: '[wmFormAction]',
|
|
1479
|
+
providers: [
|
|
1480
|
+
provideAsWidgetRef(FormActionDirective)
|
|
1481
|
+
]
|
|
1482
|
+
}]
|
|
1483
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: FormComponent, decorators: [{
|
|
1484
|
+
type: Optional
|
|
1485
|
+
}] }, { type: undefined, decorators: [{
|
|
1486
|
+
type: Inject,
|
|
1487
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1488
|
+
}, {
|
|
1489
|
+
type: Optional
|
|
1490
|
+
}] }] });
|
|
1491
|
+
|
|
1492
|
+
const registerProps = () => {
|
|
1493
|
+
const formFieldMap = new Map([
|
|
1494
|
+
['dataentrymode', { value: 'default', ...PROP_STRING }],
|
|
1495
|
+
['debouncetime', { value: 250, ...PROP_NUMBER }],
|
|
1496
|
+
['defaultvalue', PROP_STRING],
|
|
1497
|
+
['displayname', PROP_STRING],
|
|
1498
|
+
['display-name', PROP_STRING],
|
|
1499
|
+
['field', PROP_STRING],
|
|
1500
|
+
['filterexpressions', PROP_STRING],
|
|
1501
|
+
['filter-on', PROP_STRING],
|
|
1502
|
+
['generator', PROP_STRING],
|
|
1503
|
+
['hint', PROP_STRING],
|
|
1504
|
+
['inputtype', PROP_STRING],
|
|
1505
|
+
['is-primary-key', PROP_BOOLEAN],
|
|
1506
|
+
['is-range', PROP_BOOLEAN],
|
|
1507
|
+
['is-related', PROP_BOOLEAN],
|
|
1508
|
+
['isformfield', { value: true }],
|
|
1509
|
+
['key', PROP_STRING],
|
|
1510
|
+
['limit', PROP_NUMBER],
|
|
1511
|
+
['lookup-type', PROP_STRING],
|
|
1512
|
+
['lookup-field', PROP_STRING],
|
|
1513
|
+
['name', PROP_STRING],
|
|
1514
|
+
['matchmode', PROP_STRING],
|
|
1515
|
+
['maxdefaultvalue', PROP_STRING],
|
|
1516
|
+
['maxplaceholder', PROP_STRING],
|
|
1517
|
+
['mobile-display', { value: true, ...PROP_BOOLEAN }],
|
|
1518
|
+
['period', PROP_BOOLEAN],
|
|
1519
|
+
['pc-display', { value: true, ...PROP_BOOLEAN }],
|
|
1520
|
+
['placeholder', PROP_STRING],
|
|
1521
|
+
['primary-key', PROP_BOOLEAN],
|
|
1522
|
+
['related-entity-name', PROP_STRING],
|
|
1523
|
+
['required', PROP_BOOLEAN],
|
|
1524
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
1525
|
+
['tablet-display', { value: true, ...PROP_BOOLEAN }],
|
|
1526
|
+
['type', PROP_STRING],
|
|
1527
|
+
['validationmessage', PROP_STRING],
|
|
1528
|
+
['viewmodewidget', PROP_STRING],
|
|
1529
|
+
['widgettype', PROP_STRING]
|
|
1530
|
+
]);
|
|
1531
|
+
for (const key in FormWidgetType) {
|
|
1532
|
+
const widgetName = 'wm-form-field-' + FormWidgetType[key];
|
|
1533
|
+
const widgetProps = getWidgetPropsByType(widgetName);
|
|
1534
|
+
formFieldMap.forEach((v, k) => {
|
|
1535
|
+
if (widgetProps.get(k) == undefined) {
|
|
1536
|
+
widgetProps.set(k, v);
|
|
1537
|
+
}
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
};
|
|
1541
|
+
|
|
1542
|
+
// Custom validator to show validation error, if setValidationMessage method is used
|
|
1543
|
+
const customValidatorFn = () => {
|
|
1544
|
+
return { custom: true };
|
|
1545
|
+
};
|
|
1546
|
+
const FILE_TYPES = {
|
|
1547
|
+
'image': 'image/*',
|
|
1548
|
+
'video': 'video/*',
|
|
1549
|
+
'audio': 'audio/*'
|
|
1550
|
+
};
|
|
1551
|
+
class FormFieldDirective extends StylableComponent {
|
|
1552
|
+
static { this.initializeProps = registerProps(); }
|
|
1553
|
+
onKeydownHandler(event) {
|
|
1554
|
+
this._triggeredByUser = true;
|
|
1555
|
+
}
|
|
1556
|
+
handleClick(event) {
|
|
1557
|
+
this._clicktriggeredByUser = true;
|
|
1558
|
+
}
|
|
1559
|
+
constructor(inj, form, fb, viewport, app, parentList, bindChipclass, binddataset, binddisplayexpression, binddisplaylabel, _widgetType, name, binddisplayimagesrc, key, isRange, pcDisplay, mobileDisplay, tabletDisplay, contexts, explicitContext) {
|
|
1560
|
+
const WIDGET_CONFIG = {
|
|
1561
|
+
widgetType: 'wm-form-field',
|
|
1562
|
+
hostClass: '',
|
|
1563
|
+
widgetSubType: 'wm-form-field-' + (_widgetType || FormWidgetType.TEXT).trim()
|
|
1564
|
+
};
|
|
1565
|
+
let resolveFn = noop$1;
|
|
1566
|
+
super(inj, WIDGET_CONFIG, explicitContext, new Promise(res => resolveFn = res));
|
|
1567
|
+
this._initPropsRes = resolveFn;
|
|
1568
|
+
this.app = app;
|
|
1569
|
+
this.fieldDefConfig = {};
|
|
1570
|
+
this.class = '';
|
|
1571
|
+
this.binddataset = binddataset;
|
|
1572
|
+
this.binddisplayimagesrc = binddisplayimagesrc;
|
|
1573
|
+
this.binddisplayexpression = binddisplayexpression;
|
|
1574
|
+
this.bindChipclass = bindChipclass;
|
|
1575
|
+
this.binddisplaylabel = binddisplaylabel;
|
|
1576
|
+
this.form = form;
|
|
1577
|
+
this.fb = fb;
|
|
1578
|
+
this.viewport = viewport;
|
|
1579
|
+
this._fieldName = key || name;
|
|
1580
|
+
this.isRange = isRange;
|
|
1581
|
+
this.excludeProps = new Set(['type', 'name']);
|
|
1582
|
+
this.widgettype = _widgetType;
|
|
1583
|
+
this.parentList = parentList;
|
|
1584
|
+
this.notifyForFields = [];
|
|
1585
|
+
if (this.binddataset || this.$element.attr('dataset')) {
|
|
1586
|
+
this.isDataSetBound = true;
|
|
1587
|
+
}
|
|
1588
|
+
contexts[0]._onFocusField = this._onFocusField.bind(this);
|
|
1589
|
+
contexts[0]._onBlurField = this._onBlurField.bind(this);
|
|
1590
|
+
this._debounceSetUpValidators = debounce$1(() => this.setUpValidators(), 500);
|
|
1591
|
+
}
|
|
1592
|
+
_onFocusField($evt) {
|
|
1593
|
+
this._activeField = true;
|
|
1594
|
+
$($evt.target).closest('.live-field').addClass('active');
|
|
1595
|
+
}
|
|
1596
|
+
// Function to get the active element markup based on widget type
|
|
1597
|
+
getActiveElement() {
|
|
1598
|
+
const widgetType = this.nativeElement.getAttribute('widgettype');
|
|
1599
|
+
switch (widgetType) {
|
|
1600
|
+
case 'select':
|
|
1601
|
+
return this.nativeElement.querySelector('select');
|
|
1602
|
+
case 'textarea':
|
|
1603
|
+
return this.nativeElement.querySelector('textarea');
|
|
1604
|
+
default:
|
|
1605
|
+
return this.nativeElement.querySelector('input');
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
setAriaAttributes() {
|
|
1609
|
+
const element = this.getActiveElement();
|
|
1610
|
+
if (this.ngform.controls[this._fieldName].invalid && this.ngform.controls[this._fieldName].touched && this.form.isUpdateMode) {
|
|
1611
|
+
this.nativeElement.setAttribute('__errormsg', `${this.nativeElement.getAttribute('__validationId')}`);
|
|
1612
|
+
element?.setAttribute('aria-invalid', `${this.ngform.controls[this._fieldName].invalid}`);
|
|
1613
|
+
element?.setAttribute('aria-describedby', `${this.nativeElement.getAttribute('__validationId')}`);
|
|
1614
|
+
}
|
|
1615
|
+
else {
|
|
1616
|
+
this.nativeElement.removeAttribute('__errormsg');
|
|
1617
|
+
element?.removeAttribute('aria-invalid');
|
|
1618
|
+
element?.removeAttribute('aria-describedby');
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
_onBlurField($evt) {
|
|
1622
|
+
$($evt.target).closest('.live-field').removeClass('active');
|
|
1623
|
+
const ele = this.nativeElement.querySelector('p.text-danger');
|
|
1624
|
+
// Fix for [WMS-23959]: ADA issue - adding aria-describedby, aria-invalid, __errormsg attributes only when the form field is invalid , else removing the attributes
|
|
1625
|
+
this.setAriaAttributes();
|
|
1626
|
+
this._activeField = false;
|
|
1627
|
+
this._triggeredByUser = false;
|
|
1628
|
+
this._clicktriggeredByUser = false;
|
|
1629
|
+
}
|
|
1630
|
+
// Expression to be evaluated in view mode of form field
|
|
1631
|
+
evaluateExpr(object, displayField, displayExpr) {
|
|
1632
|
+
if (!displayExpr || !displayField) {
|
|
1633
|
+
displayField = Object.keys(object)[0];
|
|
1634
|
+
// If dataset is not ready, display expression will not be defined
|
|
1635
|
+
if (!displayField) {
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
return getEvaluatedData(object, {
|
|
1640
|
+
field: displayField,
|
|
1641
|
+
expression: displayExpr
|
|
1642
|
+
}, this.viewParent);
|
|
1643
|
+
}
|
|
1644
|
+
// Expression to be evaluated in view mode of form field
|
|
1645
|
+
getDisplayExpr() {
|
|
1646
|
+
const caption = [];
|
|
1647
|
+
const value = this.value;
|
|
1648
|
+
const displayField = this.displayfield || this.displaylabel;
|
|
1649
|
+
const displayExpr = this.displayexpression;
|
|
1650
|
+
if (isObject(value)) {
|
|
1651
|
+
if (isArray(value)) {
|
|
1652
|
+
forEach(value, obj => {
|
|
1653
|
+
if (isObject(obj)) {
|
|
1654
|
+
caption.push(this.evaluateExpr(obj, displayField, displayExpr));
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
else {
|
|
1659
|
+
caption.push(this.evaluateExpr(value, displayField, displayExpr));
|
|
1660
|
+
}
|
|
1661
|
+
return join(caption, ',');
|
|
1662
|
+
}
|
|
1663
|
+
return (value === undefined || value === null) ? '' : this.value;
|
|
1664
|
+
}
|
|
1665
|
+
getCaption() {
|
|
1666
|
+
return (this.value === undefined || this.value === null) ? (get(this.form.dataoutput, this._fieldName) || '') : this.value;
|
|
1667
|
+
}
|
|
1668
|
+
// Notifies changes to observing validation fields
|
|
1669
|
+
notifyChanges() {
|
|
1670
|
+
forEach(this.notifyForFields, field => {
|
|
1671
|
+
field.fieldValidations.validate();
|
|
1672
|
+
});
|
|
1673
|
+
}
|
|
1674
|
+
// Registers observer of validation fields
|
|
1675
|
+
observeOn(fields) {
|
|
1676
|
+
this.fieldValidations.observeOn(fields, 'formfields');
|
|
1677
|
+
}
|
|
1678
|
+
// Method to setup validators for reactive form control
|
|
1679
|
+
setUpValidators(customValidator) {
|
|
1680
|
+
this.fieldValidations.setUpValidators(customValidator);
|
|
1681
|
+
}
|
|
1682
|
+
// sets the custom async validation on the form field
|
|
1683
|
+
setAsyncValidators(validators) {
|
|
1684
|
+
this.fieldValidations.setAsyncValidators(validators);
|
|
1685
|
+
}
|
|
1686
|
+
// sets the default and custom sync validation on the form field
|
|
1687
|
+
setValidators(validators) {
|
|
1688
|
+
this.fieldValidations.setValidators(validators);
|
|
1689
|
+
}
|
|
1690
|
+
// Method to set the properties on inner form widget
|
|
1691
|
+
setFormWidget(key, val) {
|
|
1692
|
+
if (this.formWidget && this.formWidget.widget) {
|
|
1693
|
+
if (key === 'inputtype' && this.widgettype === FormWidgetType.TEXT) {
|
|
1694
|
+
key = 'type';
|
|
1695
|
+
}
|
|
1696
|
+
this.formWidget.widget[key] = val;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
boundFn(fn) {
|
|
1700
|
+
return fn();
|
|
1701
|
+
}
|
|
1702
|
+
// Method to set the properties on inner max form widget (when range is selected)
|
|
1703
|
+
setMaxFormWidget(key, val) {
|
|
1704
|
+
if (this.formWidgetMax) {
|
|
1705
|
+
this.formWidgetMax.widget[key] = val;
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
onPropertyChange(key, nv, ov) {
|
|
1709
|
+
const isFormDirty = this.form.dirty;
|
|
1710
|
+
if (key !== 'tabindex') {
|
|
1711
|
+
super.onPropertyChange(key, nv, ov);
|
|
1712
|
+
}
|
|
1713
|
+
if (this.excludeProps.has(key)) {
|
|
1714
|
+
return;
|
|
1715
|
+
}
|
|
1716
|
+
// As upload widget is an HTML widget, only required property is setup
|
|
1717
|
+
if (this.widgettype === FormWidgetType.UPLOAD) {
|
|
1718
|
+
if (key === 'required') {
|
|
1719
|
+
this._debounceSetUpValidators();
|
|
1720
|
+
}
|
|
1721
|
+
super.onPropertyChange(key, nv, ov);
|
|
1722
|
+
return;
|
|
1723
|
+
}
|
|
1724
|
+
this.setFormWidget(key, nv);
|
|
1725
|
+
// Placeholder should not be setup on max widget
|
|
1726
|
+
if (key !== 'placeholder') {
|
|
1727
|
+
this.setMaxFormWidget(key, nv);
|
|
1728
|
+
}
|
|
1729
|
+
switch (key) {
|
|
1730
|
+
case 'defaultvalue':
|
|
1731
|
+
this.form.onFieldDefaultValueChange(this, nv);
|
|
1732
|
+
break;
|
|
1733
|
+
case 'maxdefaultvalue':
|
|
1734
|
+
this.maxValue = nv;
|
|
1735
|
+
this.setMaxFormWidget('datavalue', nv);
|
|
1736
|
+
this.form.onMaxDefaultValueChange();
|
|
1737
|
+
break;
|
|
1738
|
+
case 'maxplaceholder':
|
|
1739
|
+
this.setMaxFormWidget('placeholder', nv);
|
|
1740
|
+
break;
|
|
1741
|
+
case 'required':
|
|
1742
|
+
// WMS-18906 : Do not make form as dirty during required prop initialization
|
|
1743
|
+
if (isFormDirty !== this.form.dirty) {
|
|
1744
|
+
this.form.markAsPristine();
|
|
1745
|
+
}
|
|
1746
|
+
case 'maxchars':
|
|
1747
|
+
case 'minvalue':
|
|
1748
|
+
case 'maxvalue':
|
|
1749
|
+
case 'regexp':
|
|
1750
|
+
case 'show':
|
|
1751
|
+
this._debounceSetUpValidators();
|
|
1752
|
+
break;
|
|
1753
|
+
case 'primary-key':
|
|
1754
|
+
if (nv) {
|
|
1755
|
+
this.form.setPrimaryKey(this._fieldName);
|
|
1756
|
+
}
|
|
1757
|
+
break;
|
|
1758
|
+
case 'display-name':
|
|
1759
|
+
this.displayname = nv;
|
|
1760
|
+
break;
|
|
1761
|
+
case 'readonly':
|
|
1762
|
+
this.setReadOnlyState();
|
|
1763
|
+
break;
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
onStyleChange(key, nv, ov) {
|
|
1767
|
+
if (key === "width") {
|
|
1768
|
+
this.$element.css("width", nv);
|
|
1769
|
+
}
|
|
1770
|
+
this.setFormWidget(key, nv);
|
|
1771
|
+
this.setMaxFormWidget(key, nv);
|
|
1772
|
+
super.onStyleChange(key, nv, ov);
|
|
1773
|
+
}
|
|
1774
|
+
get datavalue() {
|
|
1775
|
+
return this.formWidget && this.formWidget.datavalue;
|
|
1776
|
+
}
|
|
1777
|
+
set datavalue(val) {
|
|
1778
|
+
if (this._control && this.widgettype !== FormWidgetType.UPLOAD) {
|
|
1779
|
+
this._control.setValue(val);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
get value() {
|
|
1783
|
+
return this.datavalue;
|
|
1784
|
+
}
|
|
1785
|
+
set value(val) {
|
|
1786
|
+
this.datavalue = val;
|
|
1787
|
+
}
|
|
1788
|
+
get maxValue() {
|
|
1789
|
+
return this.formWidgetMax && this.formWidgetMax.datavalue;
|
|
1790
|
+
}
|
|
1791
|
+
set maxValue(val) {
|
|
1792
|
+
if (this._maxControl) {
|
|
1793
|
+
this._maxControl.setValue(val);
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
get minValue() {
|
|
1797
|
+
return this.value;
|
|
1798
|
+
}
|
|
1799
|
+
set minValue(val) {
|
|
1800
|
+
this.value = val;
|
|
1801
|
+
}
|
|
1802
|
+
// Get the reactive form control
|
|
1803
|
+
get _control() {
|
|
1804
|
+
return this.ngform && this.ngform.controls[this._fieldName];
|
|
1805
|
+
}
|
|
1806
|
+
// Get the reactive max form control
|
|
1807
|
+
get _maxControl() {
|
|
1808
|
+
return this.ngform && this.ngform.controls[this._fieldName + '_max'];
|
|
1809
|
+
}
|
|
1810
|
+
// Get the displayValue
|
|
1811
|
+
get displayValue() {
|
|
1812
|
+
return this.formWidget && this.formWidget.displayValue;
|
|
1813
|
+
}
|
|
1814
|
+
//Get the timestamp
|
|
1815
|
+
get timestamp() {
|
|
1816
|
+
return this.formWidget && this.formWidget.timestamp;
|
|
1817
|
+
}
|
|
1818
|
+
//Get the charlength
|
|
1819
|
+
get charlength() {
|
|
1820
|
+
return this.formWidget && this.formWidget.charlength;
|
|
1821
|
+
}
|
|
1822
|
+
// Create the reactive form control
|
|
1823
|
+
createControl() {
|
|
1824
|
+
return this.fb.control(undefined, {
|
|
1825
|
+
validators: this._validators
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
// On field value change, propagate event to parent form
|
|
1829
|
+
onValueChange(val) {
|
|
1830
|
+
if (!this.isDestroyed) {
|
|
1831
|
+
const captionEl = $(this.nativeElement).find('.caption-floating');
|
|
1832
|
+
if (captionEl.length > 0) {
|
|
1833
|
+
// hasValue check whether form-field has a value from passed val attribute
|
|
1834
|
+
// Added sanity check on val to support values liked 0, false etc as input val - WMS-20084
|
|
1835
|
+
// explicitly checking for input value or -webkit-autofill to see whether there are any autofilled fields - WMS-20141
|
|
1836
|
+
const hasValue = ((isDefined(val) && val !== '' && val !== null) || captionEl.find('input').val()) || captionEl.find('input:-webkit-autofill').length;
|
|
1837
|
+
this.app.notify('captionPositionAnimate', {
|
|
1838
|
+
displayVal: hasValue,
|
|
1839
|
+
nativeEl: captionEl,
|
|
1840
|
+
isSelectMultiple: this.formWidget && this.formWidget.multiple,
|
|
1841
|
+
isFocused: this._activeField
|
|
1842
|
+
});
|
|
1843
|
+
}
|
|
1844
|
+
// Fix for [WMS-23959]: ADA issue - adding aria-describedby, aria-invalid, __errormsg attributes only when the form field is invalid , else removing the attributes
|
|
1845
|
+
this.setAriaAttributes();
|
|
1846
|
+
this.form.onFieldValueChange(this, val);
|
|
1847
|
+
this.notifyChanges();
|
|
1848
|
+
// Do mark as touched, only incase when user has entered an input but not through the script. Hence added mousedown event check
|
|
1849
|
+
// active class checks whether user is on the current field, if so marking the field as touched. And form field validation happens once a field is touched
|
|
1850
|
+
// _triggeredByUser checks whether the field is touched by the user or triggered from external script
|
|
1851
|
+
// WMS-22456: _clicktriggeredByUser checks when user selects datetimetype from picker, mark the field as touched to show validation errors in mobile
|
|
1852
|
+
if (this.$element.find('.active').length > 0 || this.form.touched) {
|
|
1853
|
+
if (this._triggeredByUser || (isMobile() && this._clicktriggeredByUser && isDateTimeType(this.widgettype))) {
|
|
1854
|
+
this.ngform.controls[this._fieldName].markAsTouched();
|
|
1855
|
+
}
|
|
1856
|
+
this.fieldValidations.setCustomValidationMessage();
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
onStatusChange(status) {
|
|
1861
|
+
if (!this.isDestroyed) {
|
|
1862
|
+
this.showPendingSpinner = (status === 'PENDING');
|
|
1863
|
+
// while running validation, widget is disabled and spinner is shown
|
|
1864
|
+
// otherwise formWidget disabled state is reset to the state of the formField.
|
|
1865
|
+
if (status === 'PENDING') {
|
|
1866
|
+
this.formWidget.disabled = true;
|
|
1867
|
+
}
|
|
1868
|
+
else if (this.formWidget.disabled !== this.disabled) {
|
|
1869
|
+
this.formWidget.disabled = this.disabled;
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
// Method to expose validation message and set control to invalid
|
|
1874
|
+
setValidationMessage(val) {
|
|
1875
|
+
setTimeout(() => {
|
|
1876
|
+
this.validationmessage = val;
|
|
1877
|
+
this.setUpValidators(customValidatorFn);
|
|
1878
|
+
});
|
|
1879
|
+
}
|
|
1880
|
+
setReadOnlyState() {
|
|
1881
|
+
let readOnly;
|
|
1882
|
+
if (this.form.isUpdateMode) {
|
|
1883
|
+
if (this['primary-key'] && !this['is-related'] && !this.period) {
|
|
1884
|
+
/*If the field is primary but is assigned set readonly false.
|
|
1885
|
+
Assigned is where the user inputs the value while a new entry.
|
|
1886
|
+
This is not editable(in update mode) once entry is successful*/
|
|
1887
|
+
readOnly = !(this.generator === 'assigned' && this.form.operationType !== 'update');
|
|
1888
|
+
}
|
|
1889
|
+
else {
|
|
1890
|
+
readOnly = this.readonly;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
else {
|
|
1894
|
+
// In view mode, set widget state to readonly always
|
|
1895
|
+
readOnly = true;
|
|
1896
|
+
}
|
|
1897
|
+
readOnly = readOnly || this.form.readonly;
|
|
1898
|
+
this.setFormWidget('readonly', readOnly);
|
|
1899
|
+
}
|
|
1900
|
+
resetDisplayInput() {
|
|
1901
|
+
if ((!isDefined(this.value) || this.value === '')) {
|
|
1902
|
+
this.formWidget && this.formWidget.resetDisplayInput && this.formWidget.resetDisplayInput();
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
reset() {
|
|
1906
|
+
if (this._control)
|
|
1907
|
+
this._control.reset();
|
|
1908
|
+
}
|
|
1909
|
+
triggerUploadEvent($event, eventName) {
|
|
1910
|
+
const params = { $event };
|
|
1911
|
+
if (eventName === 'change') {
|
|
1912
|
+
params.newVal = $event.target.files;
|
|
1913
|
+
params.oldVal = this._oldUploadVal;
|
|
1914
|
+
this._oldUploadVal = params.newVal;
|
|
1915
|
+
}
|
|
1916
|
+
this.invokeEventCallback(eventName, params);
|
|
1917
|
+
}
|
|
1918
|
+
registerFormField() {
|
|
1919
|
+
const fieldName = this._fieldName;
|
|
1920
|
+
if (this.parentList && !(this.form.parentList === this.parentList)) {
|
|
1921
|
+
let counter = 1;
|
|
1922
|
+
let _fieldName = fieldName;
|
|
1923
|
+
while (this.ngform.controls.hasOwnProperty(_fieldName)) {
|
|
1924
|
+
_fieldName = `${fieldName}_${counter}`;
|
|
1925
|
+
counter++;
|
|
1926
|
+
}
|
|
1927
|
+
this.ngform.addControl(_fieldName, this.createControl());
|
|
1928
|
+
this._fieldName = _fieldName;
|
|
1929
|
+
}
|
|
1930
|
+
else {
|
|
1931
|
+
this.ngform.addControl(fieldName, this.createControl());
|
|
1932
|
+
}
|
|
1933
|
+
const onValueChangeSubscription = this._control.valueChanges
|
|
1934
|
+
.pipe(debounceTime(200))
|
|
1935
|
+
.subscribe(this.onValueChange.bind(this));
|
|
1936
|
+
this.registerDestroyListener(() => onValueChangeSubscription.unsubscribe());
|
|
1937
|
+
const onStatusChangeSubscription = this._control.statusChanges
|
|
1938
|
+
.pipe(debounceTime(100))
|
|
1939
|
+
.subscribe(this.onStatusChange.bind(this));
|
|
1940
|
+
this.registerDestroyListener(() => onStatusChangeSubscription.unsubscribe());
|
|
1941
|
+
if (this.isRange === 'true') {
|
|
1942
|
+
this.ngform.addControl(fieldName + '_max', this.createControl());
|
|
1943
|
+
// registering for valueChanges on MaxformWidget
|
|
1944
|
+
const onMaxValueChangeSubscription = this._maxControl.valueChanges
|
|
1945
|
+
.pipe(debounceTime(200))
|
|
1946
|
+
.subscribe(this.onValueChange.bind(this));
|
|
1947
|
+
this.registerDestroyListener(() => onMaxValueChangeSubscription.unsubscribe());
|
|
1948
|
+
}
|
|
1949
|
+
this.value = get(this.form.formdata, this._fieldName);
|
|
1950
|
+
}
|
|
1951
|
+
ngOnInit() {
|
|
1952
|
+
this.ngform = this.form.ngform;
|
|
1953
|
+
this.registerFormField();
|
|
1954
|
+
// Instantiate custom validators class for form field
|
|
1955
|
+
this.fieldValidations = new BaseFieldValidations(this, this.formWidget, this.widgettype, this._control, this.form);
|
|
1956
|
+
super.ngOnInit();
|
|
1957
|
+
}
|
|
1958
|
+
prepareFormWidget() {
|
|
1959
|
+
this._initPropsRes();
|
|
1960
|
+
// setting displayExpressions on the formwidget explicitly as expr was evaluated to "".
|
|
1961
|
+
this.setFormWidget('binddisplaylabel', this.binddisplaylabel);
|
|
1962
|
+
this.setFormWidget('binddisplayexpression', this.binddisplayexpression);
|
|
1963
|
+
this.setFormWidget('binddisplayimagesrc', this.binddisplayimagesrc);
|
|
1964
|
+
this.setFormWidget('bindChipclass', this.bindChipclass);
|
|
1965
|
+
this.setFormWidget('binddataset', this.binddataset);
|
|
1966
|
+
this.registerReadyStateListener(() => {
|
|
1967
|
+
this.key = this._fieldName || this.target || this.binding;
|
|
1968
|
+
this.viewmodewidget = this.viewmodewidget || getDefaultViewModeWidget(this.widgettype);
|
|
1969
|
+
// For upload widget, generate the permitted field
|
|
1970
|
+
if (this.widgettype === FormWidgetType.UPLOAD) {
|
|
1971
|
+
let fileType;
|
|
1972
|
+
// Create the accepts string from file type and extensions
|
|
1973
|
+
fileType = this.filetype ? FILE_TYPES[this.filetype] : '';
|
|
1974
|
+
this.permitted = fileType + (this.extensions ? (fileType ? ',' : '') + this.extensions : '');
|
|
1975
|
+
}
|
|
1976
|
+
if (isMobile() && this.viewport.isMobileType) {
|
|
1977
|
+
if (!this['mobile-display']) {
|
|
1978
|
+
this.widget.show = false;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
else if (this.viewport.isTabletType) {
|
|
1982
|
+
if (!this['tablet-display']) {
|
|
1983
|
+
this.widget.show = false;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
else {
|
|
1987
|
+
if (!this['pc-display']) {
|
|
1988
|
+
this.widget.show = false;
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
this.fieldDefConfig.displaname = this.displayname;
|
|
1992
|
+
this.fieldDefConfig.show = this.show;
|
|
1993
|
+
this.fieldDefConfig.isRelated = this['is-related'];
|
|
1994
|
+
this.fieldDefConfig.inputtype = this.inputtype;
|
|
1995
|
+
this.fieldDefConfig.generator = this.generator;
|
|
1996
|
+
this.fieldDefConfig.placeholder = this.placeholder;
|
|
1997
|
+
this.fieldDefConfig.primaryKey = this['primary-key'];
|
|
1998
|
+
this.fieldDefConfig.required = this.required;
|
|
1999
|
+
this.fieldDefConfig._readonly = this.readonly;
|
|
2000
|
+
this.fieldDefConfig.regexp = this.regexp;
|
|
2001
|
+
this.fieldDefConfig.type = this.type;
|
|
2002
|
+
this.fieldDefConfig.key = this.key;
|
|
2003
|
+
this.fieldDefConfig.mobileDisplay = this['mobile-display'];
|
|
2004
|
+
this.fieldDefConfig.name = this.name;
|
|
2005
|
+
this.fieldDefConfig.pcDisplay = this['pc-display'];
|
|
2006
|
+
this.fieldDefConfig.tabletDisplay = this['tablet-display'];
|
|
2007
|
+
this.fieldDefConfig.validationmessage = this.validationmessage;
|
|
2008
|
+
this.fieldDefConfig.viewmodewidget = this.viewmodewidget;
|
|
2009
|
+
this.fieldDefConfig.widget = this.widgettype;
|
|
2010
|
+
// Register the form field with parent form
|
|
2011
|
+
this.form.registerFormFields(this.widget);
|
|
2012
|
+
addForIdAttributes(this.nativeElement);
|
|
2013
|
+
this.setReadOnlyState();
|
|
2014
|
+
});
|
|
2015
|
+
}
|
|
2016
|
+
ngAfterContentInit() {
|
|
2017
|
+
super.ngAfterContentInit();
|
|
2018
|
+
if (this.widgetSubType === "wm-form-field-custom-widget" && this.formWidget.nativeElement)
|
|
2019
|
+
this.formWidget = this.formWidget.nativeElement.widget;
|
|
2020
|
+
if (this.formWidget) {
|
|
2021
|
+
if (this.widgetSubType === "wm-form-field-custom-widget") {
|
|
2022
|
+
this.formWidget.configSubject.asObservable().subscribe(() => {
|
|
2023
|
+
this.prepareFormWidget();
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
else {
|
|
2027
|
+
this.prepareFormWidget();
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
ngOnDestroy() {
|
|
2032
|
+
// MEMORY LEAK FIX: Destroy BaseFieldValidations instance
|
|
2033
|
+
if (this.fieldValidations) {
|
|
2034
|
+
try {
|
|
2035
|
+
this.fieldValidations.destroy();
|
|
2036
|
+
}
|
|
2037
|
+
catch (e) {
|
|
2038
|
+
// Silently handle cleanup errors
|
|
2039
|
+
}
|
|
2040
|
+
this.fieldValidations = null;
|
|
2041
|
+
}
|
|
2042
|
+
// MEMORY LEAK FIX: Clear notifyForFields array
|
|
2043
|
+
if (this.notifyForFields) {
|
|
2044
|
+
this.notifyForFields = [];
|
|
2045
|
+
}
|
|
2046
|
+
// MEMORY LEAK FIX: Nullify debounced function closure
|
|
2047
|
+
this._debounceSetUpValidators = null;
|
|
2048
|
+
// MEMORY LEAK FIX: Clear form widget references
|
|
2049
|
+
this.formWidget = null;
|
|
2050
|
+
this.formWidgetMax = null;
|
|
2051
|
+
// MEMORY LEAK FIX: Clear field definition config
|
|
2052
|
+
if (this.fieldDefConfig) {
|
|
2053
|
+
this.fieldDefConfig = {};
|
|
2054
|
+
}
|
|
2055
|
+
// Call parent ngOnDestroy (StylableComponent extends BaseComponent which has cleanup)
|
|
2056
|
+
super.ngOnDestroy();
|
|
2057
|
+
}
|
|
2058
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", 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 }); }
|
|
2059
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldDirective, isStandalone: true, selector: "[wmFormField]", host: { listeners: { "keydown": "onKeydownHandler($event)", "click": "handleClick($event)" } }, providers: [
|
|
2060
|
+
provideAsWidgetRef(FormFieldDirective),
|
|
2061
|
+
provideAs(FormFieldDirective, NG_VALUE_ACCESSOR, true),
|
|
2062
|
+
{ provide: Context, useFactory: () => { return {}; }, multi: true }
|
|
2063
|
+
], 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 }); }
|
|
2064
|
+
}
|
|
2065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldDirective, decorators: [{
|
|
2066
|
+
type: Directive,
|
|
2067
|
+
args: [{
|
|
2068
|
+
standalone: true,
|
|
2069
|
+
selector: '[wmFormField]',
|
|
2070
|
+
exportAs: 'wmFormField',
|
|
2071
|
+
providers: [
|
|
2072
|
+
provideAsWidgetRef(FormFieldDirective),
|
|
2073
|
+
provideAs(FormFieldDirective, NG_VALUE_ACCESSOR, true),
|
|
2074
|
+
{ provide: Context, useFactory: () => { return {}; }, multi: true }
|
|
2075
|
+
]
|
|
2076
|
+
}]
|
|
2077
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: FormComponent }, { type: i1.FormBuilder }, { type: i1$1.Viewport }, { type: i1$1.App }, { type: i3.ListComponent, decorators: [{
|
|
2078
|
+
type: Optional
|
|
2079
|
+
}] }, { type: undefined, decorators: [{
|
|
2080
|
+
type: Attribute,
|
|
2081
|
+
args: ['chipclass.bind']
|
|
2082
|
+
}] }, { type: undefined, decorators: [{
|
|
2083
|
+
type: Attribute,
|
|
2084
|
+
args: ['dataset.bind']
|
|
2085
|
+
}] }, { type: undefined, decorators: [{
|
|
2086
|
+
type: Attribute,
|
|
2087
|
+
args: ['displayexpression.bind']
|
|
2088
|
+
}] }, { type: undefined, decorators: [{
|
|
2089
|
+
type: Attribute,
|
|
2090
|
+
args: ['displaylabel.bind']
|
|
2091
|
+
}] }, { type: undefined, decorators: [{
|
|
2092
|
+
type: Attribute,
|
|
2093
|
+
args: ['widgettype']
|
|
2094
|
+
}] }, { type: undefined, decorators: [{
|
|
2095
|
+
type: Attribute,
|
|
2096
|
+
args: ['name']
|
|
2097
|
+
}] }, { type: String, decorators: [{
|
|
2098
|
+
type: Attribute,
|
|
2099
|
+
args: ['displayimagesrc.bind']
|
|
2100
|
+
}] }, { type: undefined, decorators: [{
|
|
2101
|
+
type: Attribute,
|
|
2102
|
+
args: ['key']
|
|
2103
|
+
}] }, { type: undefined, decorators: [{
|
|
2104
|
+
type: Attribute,
|
|
2105
|
+
args: ['is-range']
|
|
2106
|
+
}] }, { type: undefined, decorators: [{
|
|
2107
|
+
type: Attribute,
|
|
2108
|
+
args: ['pc-display']
|
|
2109
|
+
}] }, { type: undefined, decorators: [{
|
|
2110
|
+
type: Attribute,
|
|
2111
|
+
args: ['mobile-display']
|
|
2112
|
+
}] }, { type: undefined, decorators: [{
|
|
2113
|
+
type: Attribute,
|
|
2114
|
+
args: ['tablet-display']
|
|
2115
|
+
}] }, { type: Array, decorators: [{
|
|
2116
|
+
type: Self
|
|
2117
|
+
}, {
|
|
2118
|
+
type: Inject,
|
|
2119
|
+
args: [Context]
|
|
2120
|
+
}] }, { type: undefined, decorators: [{
|
|
2121
|
+
type: Inject,
|
|
2122
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2123
|
+
}, {
|
|
2124
|
+
type: Optional
|
|
2125
|
+
}] }], propDecorators: { formWidget: [{
|
|
2126
|
+
type: ContentChild,
|
|
2127
|
+
args: ['formWidget', { static: true }]
|
|
2128
|
+
}], formWidgetMax: [{
|
|
2129
|
+
type: ContentChild,
|
|
2130
|
+
args: ['formWidgetMax']
|
|
2131
|
+
}], onKeydownHandler: [{
|
|
2132
|
+
type: HostListener,
|
|
2133
|
+
args: ['keydown', ['$event']]
|
|
2134
|
+
}], handleClick: [{
|
|
2135
|
+
type: HostListener,
|
|
2136
|
+
args: ['click', ['$event']]
|
|
2137
|
+
}] } });
|
|
2138
|
+
|
|
2139
|
+
class LiveActionsDirective {
|
|
2140
|
+
constructor(subscribedWidget, app, dialogService) {
|
|
2141
|
+
this.subscribedWidget = subscribedWidget;
|
|
2142
|
+
this.app = app;
|
|
2143
|
+
this.dialogService = dialogService;
|
|
2144
|
+
subscribedWidget.addRow = this.addRow.bind(this);
|
|
2145
|
+
subscribedWidget.updateRow = this.updateRow.bind(this);
|
|
2146
|
+
subscribedWidget.deleteRow = this.deleteRow.bind(this);
|
|
2147
|
+
subscribedWidget.call = this.call.bind(this);
|
|
2148
|
+
}
|
|
2149
|
+
addRow() {
|
|
2150
|
+
this.app.notify('wm-event', { eventName: Live_Operations.INSERT, widgetName: this.subscribedWidget.name, row: this.subscribedWidget.selecteditem });
|
|
2151
|
+
}
|
|
2152
|
+
updateRow() {
|
|
2153
|
+
this.app.notify('wm-event', { eventName: Live_Operations.UPDATE, widgetName: this.subscribedWidget.name, row: this.subscribedWidget.selecteditem });
|
|
2154
|
+
}
|
|
2155
|
+
deleteRow() {
|
|
2156
|
+
this.app.notify('wm-event', { eventName: Live_Operations.DELETE, widgetName: this.subscribedWidget.name, row: this.subscribedWidget.selecteditem });
|
|
2157
|
+
}
|
|
2158
|
+
successHandler(options, response) {
|
|
2159
|
+
triggerFn(options.success, response);
|
|
2160
|
+
}
|
|
2161
|
+
errorHandler(options, error) {
|
|
2162
|
+
this.app.notifyApp(error, 'error', 'ERROR');
|
|
2163
|
+
triggerFn(options.error, error);
|
|
2164
|
+
}
|
|
2165
|
+
getRecords(options, operation) {
|
|
2166
|
+
let index;
|
|
2167
|
+
let dataNavigator;
|
|
2168
|
+
if (this.subscribedWidget.navigation !== 'None' && this.subscribedWidget.dataNavigator) {
|
|
2169
|
+
dataNavigator = this.subscribedWidget.dataNavigator;
|
|
2170
|
+
// If operation is delete, decrease the data size and check if navigation to previous page is required
|
|
2171
|
+
if (operation === Live_Operations.DELETE) {
|
|
2172
|
+
dataNavigator.dataSize -= 1;
|
|
2173
|
+
dataNavigator.calculatePagingValues();
|
|
2174
|
+
index = dataNavigator.pageCount < dataNavigator.dn.currentPage ? 'prev' : undefined;
|
|
2175
|
+
}
|
|
2176
|
+
else {
|
|
2177
|
+
// If operation is insert, go to last page. If update operation, stay on current page
|
|
2178
|
+
index = operation === Live_Operations.INSERT ? 'last' : 'current';
|
|
2179
|
+
if (index === 'last') {
|
|
2180
|
+
dataNavigator.dataSize += 1;
|
|
2181
|
+
}
|
|
2182
|
+
dataNavigator.calculatePagingValues();
|
|
2183
|
+
}
|
|
2184
|
+
dataNavigator.navigatePage(index, null, true, response => {
|
|
2185
|
+
this.successHandler(options, response);
|
|
2186
|
+
});
|
|
2187
|
+
}
|
|
2188
|
+
else {
|
|
2189
|
+
this.subscribedWidget.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
2190
|
+
'skipToggleState': true
|
|
2191
|
+
}).then(response => {
|
|
2192
|
+
this.successHandler(options, response);
|
|
2193
|
+
}, err => {
|
|
2194
|
+
this.errorHandler(options, err);
|
|
2195
|
+
});
|
|
2196
|
+
}
|
|
2197
|
+
}
|
|
2198
|
+
performCUDOperation(requestData, operation, options) {
|
|
2199
|
+
performDataOperation(this.subscribedWidget.datasource, requestData, {
|
|
2200
|
+
operationType: operation
|
|
2201
|
+
}).then(response => {
|
|
2202
|
+
if (response.error) {
|
|
2203
|
+
this.errorHandler(options, response.error);
|
|
2204
|
+
return;
|
|
2205
|
+
}
|
|
2206
|
+
if (this.subscribedWidget.datasource.category === 'wm.CrudVariable' && operation === 'delete') {
|
|
2207
|
+
this.subscribedWidget.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
2208
|
+
'skipToggleState': true
|
|
2209
|
+
}).then(response => {
|
|
2210
|
+
this.successHandler(options, response);
|
|
2211
|
+
}, err => {
|
|
2212
|
+
this.errorHandler(options, err);
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
else {
|
|
2216
|
+
this.getRecords(options, operation);
|
|
2217
|
+
}
|
|
2218
|
+
// show delete success toaster
|
|
2219
|
+
if (operation === 'delete') {
|
|
2220
|
+
this.app.notifyApp(this.app.appLocale.MESSAGE_DELETE_RECORD_SUCCESS, 'success');
|
|
2221
|
+
}
|
|
2222
|
+
}, (error) => {
|
|
2223
|
+
this.errorHandler(options, error);
|
|
2224
|
+
});
|
|
2225
|
+
}
|
|
2226
|
+
insertRecord(requestData, operation, options) {
|
|
2227
|
+
this.performCUDOperation(requestData, operation, options);
|
|
2228
|
+
}
|
|
2229
|
+
updateRecord(requestData, operation, options) {
|
|
2230
|
+
this.performCUDOperation(requestData, operation, options);
|
|
2231
|
+
}
|
|
2232
|
+
deleteRecord(requestData, operation, options) {
|
|
2233
|
+
// Show the delete confirmation dialog. On Ok, delete the record.
|
|
2234
|
+
this.dialogService.showAppConfirmDialog({
|
|
2235
|
+
title: this.app.appLocale.MESSAGE_DELETE_RECORD || 'Delete Record',
|
|
2236
|
+
iconclass: 'wi wi-delete fa-lg',
|
|
2237
|
+
message: this.subscribedWidget.confirmdelete || 'Are you sure you want to delete this?',
|
|
2238
|
+
oktext: this.subscribedWidget.deleteoktext || 'Ok',
|
|
2239
|
+
canceltext: this.subscribedWidget.deletecanceltext || 'Cancel',
|
|
2240
|
+
onOk: () => {
|
|
2241
|
+
this.performCUDOperation(requestData, operation, options);
|
|
2242
|
+
this.dialogService.closeAppConfirmDialog();
|
|
2243
|
+
},
|
|
2244
|
+
onCancel: () => {
|
|
2245
|
+
triggerFn(options.cancelDeleteCallback);
|
|
2246
|
+
this.dialogService.closeAppConfirmDialog();
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
performOperation(operation, options) {
|
|
2251
|
+
const requestData = {
|
|
2252
|
+
row: options.row,
|
|
2253
|
+
prevData: {},
|
|
2254
|
+
rowData: {},
|
|
2255
|
+
transform: true,
|
|
2256
|
+
skipNotification: true
|
|
2257
|
+
};
|
|
2258
|
+
if (operation === Live_Operations.UPDATE) {
|
|
2259
|
+
requestData.rowData = options.rowData;
|
|
2260
|
+
requestData.prevData = options.prevData;
|
|
2261
|
+
}
|
|
2262
|
+
/* decide routine based on CRUD operation to be performed */
|
|
2263
|
+
switch (operation) {
|
|
2264
|
+
case Live_Operations.INSERT:
|
|
2265
|
+
this.insertRecord(requestData, operation, options);
|
|
2266
|
+
break;
|
|
2267
|
+
case Live_Operations.UPDATE:
|
|
2268
|
+
this.updateRecord(requestData, operation, options);
|
|
2269
|
+
break;
|
|
2270
|
+
case Live_Operations.DELETE:
|
|
2271
|
+
this.deleteRecord(requestData, operation, options);
|
|
2272
|
+
break;
|
|
2273
|
+
case Live_Operations.READ:
|
|
2274
|
+
this.getRecords(options, operation);
|
|
2275
|
+
break;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
// API exposed to make CRUD operations
|
|
2279
|
+
call(operation, options, success, error) {
|
|
2280
|
+
options.success = success;
|
|
2281
|
+
options.error = error;
|
|
2282
|
+
this.performOperation(operation, options);
|
|
2283
|
+
}
|
|
2284
|
+
ngOnDestroy() {
|
|
2285
|
+
// MEMORY LEAK FIX: Clear references
|
|
2286
|
+
this.subscribedWidget = null;
|
|
2287
|
+
this.app = null;
|
|
2288
|
+
this.dialogService = null;
|
|
2289
|
+
}
|
|
2290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LiveActionsDirective, deps: [{ token: ListComponent, self: true }, { token: i1$1.App }, { token: i1$1.AbstractDialogService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2291
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: LiveActionsDirective, isStandalone: true, selector: "[wmLiveActions]", ngImport: i0 }); }
|
|
2292
|
+
}
|
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LiveActionsDirective, decorators: [{
|
|
2294
|
+
type: Directive,
|
|
2295
|
+
args: [{
|
|
2296
|
+
standalone: true,
|
|
2297
|
+
selector: '[wmLiveActions]'
|
|
2298
|
+
}]
|
|
2299
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2300
|
+
type: Self
|
|
2301
|
+
}, {
|
|
2302
|
+
type: Inject,
|
|
2303
|
+
args: [ListComponent]
|
|
2304
|
+
}] }, { type: i1$1.App }, { type: i1$1.AbstractDialogService }] });
|
|
2305
|
+
|
|
2306
|
+
class DependsonDirective {
|
|
2307
|
+
constructor(dialogId, dependson, dialogService, app) {
|
|
2308
|
+
this.dialogService = dialogService;
|
|
2309
|
+
this.app = app;
|
|
2310
|
+
// If dialogId is present, form is in dialog mode
|
|
2311
|
+
if (dialogId) {
|
|
2312
|
+
this.isLayoutDialog = true;
|
|
2313
|
+
this.dialogId = dialogId;
|
|
2314
|
+
}
|
|
2315
|
+
this.dependson = dependson;
|
|
2316
|
+
// Listen to the wm-event called from subscribed widgets
|
|
2317
|
+
this.eventSubscription = this.app.subscribe('wm-event', this.handleEvent.bind(this));
|
|
2318
|
+
}
|
|
2319
|
+
openFormDialog() {
|
|
2320
|
+
this.dialogService.open(this.dialogId);
|
|
2321
|
+
}
|
|
2322
|
+
onUpdate(newValue, table, editClicked) {
|
|
2323
|
+
this.editMode = editClicked || this.editMode;
|
|
2324
|
+
this.form.operationType = Live_Operations.UPDATE;
|
|
2325
|
+
this.form.isSelected = true;
|
|
2326
|
+
let rowData = this.currentFormData;
|
|
2327
|
+
if (newValue && table) {
|
|
2328
|
+
if (table.multiselect) {
|
|
2329
|
+
rowData = newValue[0];
|
|
2330
|
+
}
|
|
2331
|
+
else {
|
|
2332
|
+
rowData = newValue[newValue.length - 1];
|
|
2333
|
+
}
|
|
2334
|
+
}
|
|
2335
|
+
this.form.setFormData(rowData);
|
|
2336
|
+
this.form.edit();
|
|
2337
|
+
if (!this.editMode) {
|
|
2338
|
+
this.form.isUpdateMode = false;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
onInsert() {
|
|
2342
|
+
this.form.operationType = Live_Operations.INSERT;
|
|
2343
|
+
this.form.isSelected = true;
|
|
2344
|
+
this.form.setFormData({});
|
|
2345
|
+
this.form.new();
|
|
2346
|
+
}
|
|
2347
|
+
handleEvent(options) {
|
|
2348
|
+
if (this.dependson !== options.widgetName) {
|
|
2349
|
+
return;
|
|
2350
|
+
}
|
|
2351
|
+
this.currentOp = options.eventName;
|
|
2352
|
+
switch (options.eventName) {
|
|
2353
|
+
case Live_Operations.UPDATE:
|
|
2354
|
+
this.currentFormData = options.row;
|
|
2355
|
+
if (this.isLayoutDialog) {
|
|
2356
|
+
this.openFormDialog();
|
|
2357
|
+
}
|
|
2358
|
+
else {
|
|
2359
|
+
this.onUpdate(undefined, undefined, true);
|
|
2360
|
+
}
|
|
2361
|
+
break;
|
|
2362
|
+
case Live_Operations.INSERT:
|
|
2363
|
+
if (this.isLayoutDialog) {
|
|
2364
|
+
this.openFormDialog();
|
|
2365
|
+
}
|
|
2366
|
+
else {
|
|
2367
|
+
this.onInsert();
|
|
2368
|
+
}
|
|
2369
|
+
break;
|
|
2370
|
+
case Live_Operations.DELETE:
|
|
2371
|
+
this.app.Widgets[this.dependson].call('delete', { row: options.row });
|
|
2372
|
+
break;
|
|
2373
|
+
case Live_Operations.READ:
|
|
2374
|
+
if (!this.isLayoutDialog) {
|
|
2375
|
+
this.form.isUpdateMode = false;
|
|
2376
|
+
}
|
|
2377
|
+
break;
|
|
2378
|
+
case 'rerender':
|
|
2379
|
+
if (options.dataSource) {
|
|
2380
|
+
options.dataSource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
2381
|
+
'skipToggleState': true,
|
|
2382
|
+
'operation': 'list'
|
|
2383
|
+
});
|
|
2384
|
+
}
|
|
2385
|
+
break;
|
|
2386
|
+
case 'selectedItemChange':
|
|
2387
|
+
if (options.table) {
|
|
2388
|
+
this.onUpdate(options.row, options.table);
|
|
2389
|
+
}
|
|
2390
|
+
break;
|
|
2391
|
+
case 'resetEditMode':
|
|
2392
|
+
this.editMode = false;
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
onFormRender() {
|
|
2396
|
+
// On opening the form in dialog mode, complete the pending operations
|
|
2397
|
+
if (this.form && this.isLayoutDialog) {
|
|
2398
|
+
this.form.isLayoutDialog = true;
|
|
2399
|
+
setTimeout(() => {
|
|
2400
|
+
if (this.currentOp === Live_Operations.UPDATE) {
|
|
2401
|
+
this.onUpdate(undefined, undefined, true);
|
|
2402
|
+
}
|
|
2403
|
+
else if (this.currentOp === Live_Operations.INSERT) {
|
|
2404
|
+
this.onInsert();
|
|
2405
|
+
}
|
|
2406
|
+
}, 250);
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
ngAfterContentInit() {
|
|
2410
|
+
// If form instance is present, form is in inline mode. Else, it is in dialog mode and listen to form instance changes
|
|
2411
|
+
if (this.formChildren.first) {
|
|
2412
|
+
this.form = this.formChildren.first;
|
|
2413
|
+
}
|
|
2414
|
+
else {
|
|
2415
|
+
this.formSubscription = this.formChildren.changes.subscribe((val) => {
|
|
2416
|
+
this.form = val.first;
|
|
2417
|
+
this.onFormRender();
|
|
2418
|
+
});
|
|
2419
|
+
}
|
|
2420
|
+
// find the dependent widget (table/list)
|
|
2421
|
+
this.app.notify('setup-cud-listener', this.dependson);
|
|
2422
|
+
}
|
|
2423
|
+
ngOnDestroy() {
|
|
2424
|
+
if (this.formSubscription) {
|
|
2425
|
+
this.formSubscription.unsubscribe();
|
|
2426
|
+
}
|
|
2427
|
+
if (this.eventSubscription) {
|
|
2428
|
+
this.eventSubscription();
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", 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 }); }
|
|
2432
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DependsonDirective, isStandalone: true, selector: "[dependson]", queries: [{ propertyName: "formChildren", predicate: FormComponent, descendants: true }], ngImport: i0 }); }
|
|
2433
|
+
}
|
|
2434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DependsonDirective, decorators: [{
|
|
2435
|
+
type: Directive,
|
|
2436
|
+
args: [{
|
|
2437
|
+
standalone: true,
|
|
2438
|
+
selector: '[dependson]'
|
|
2439
|
+
}]
|
|
2440
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2441
|
+
type: Attribute,
|
|
2442
|
+
args: ['dialogid']
|
|
2443
|
+
}] }, { type: undefined, decorators: [{
|
|
2444
|
+
type: Attribute,
|
|
2445
|
+
args: ['dependson']
|
|
2446
|
+
}] }, { type: i1$1.AbstractDialogService }, { type: i1$1.App }], propDecorators: { formChildren: [{
|
|
2447
|
+
type: ContentChildren,
|
|
2448
|
+
args: [FormComponent, { descendants: true }]
|
|
2449
|
+
}] } });
|
|
2450
|
+
|
|
2451
|
+
const FILTER_CONSTANTS = {
|
|
2452
|
+
'EMPTY_KEY': 'EMPTY_NULL_FILTER'
|
|
2453
|
+
};
|
|
2454
|
+
const noop = () => { };
|
|
2455
|
+
class LiveFilterDirective {
|
|
2456
|
+
static { this.initializeProps = registerLiveFilterProps(); }
|
|
2457
|
+
constructor(form) {
|
|
2458
|
+
this.form = form;
|
|
2459
|
+
// debounce the filter function. If multiple filter calls are made at same time, calls will be delayed and last call is fired
|
|
2460
|
+
this._filter = debounce$1(options => {
|
|
2461
|
+
this.filter(options);
|
|
2462
|
+
}, 250);
|
|
2463
|
+
form.clearFilter = this.clearFilter.bind(this);
|
|
2464
|
+
form.applyFilter = this.applyFilter.bind(this);
|
|
2465
|
+
form.filter = this.filter.bind(this);
|
|
2466
|
+
form.filterOnDefault = this.filterOnDefault.bind(this);
|
|
2467
|
+
form.execute = this.execute.bind(this);
|
|
2468
|
+
form.onFieldDefaultValueChange = this.onFieldDefaultValueChange.bind(this);
|
|
2469
|
+
form.onMaxDefaultValueChange = this.onMaxDefaultValueChange.bind(this);
|
|
2470
|
+
form.onDataSourceChange = this.onDataSourceChange.bind(this);
|
|
2471
|
+
form.onFieldValueChange = this.onFieldValueChange.bind(this);
|
|
2472
|
+
form.submitForm = this.submitForm.bind(this);
|
|
2473
|
+
form.registerFormWidget = this.registerFormWidget.bind(this);
|
|
2474
|
+
}
|
|
2475
|
+
execute(operation, options) {
|
|
2476
|
+
if (operation === DataSource.Operation.LIST_RECORDS || operation === DataSource.Operation.DOWNLOAD) {
|
|
2477
|
+
return this.applyFilter(options);
|
|
2478
|
+
}
|
|
2479
|
+
if (operation === DataSource.Operation.GET_OPTIONS) {
|
|
2480
|
+
return this._options || {};
|
|
2481
|
+
}
|
|
2482
|
+
if (operation === DataSource.Operation.GET_PAGING_OPTIONS) {
|
|
2483
|
+
return this.form.pagination;
|
|
2484
|
+
}
|
|
2485
|
+
if (!this.form.datasource) {
|
|
2486
|
+
return {};
|
|
2487
|
+
}
|
|
2488
|
+
if (operation === DataSource.Operation.FETCH_DISTINCT_VALUES) {
|
|
2489
|
+
return fetchDistinctValues(this.form.datasource, this.form.formFields, {
|
|
2490
|
+
widget: 'widgettype',
|
|
2491
|
+
enableemptyfilter: this.form.enableemptyfilter,
|
|
2492
|
+
EMPTY_VALUE: this.form.appLocale.LABEL_NO_VALUE
|
|
2493
|
+
});
|
|
2494
|
+
}
|
|
2495
|
+
return this.form.datasource.execute(operation, options);
|
|
2496
|
+
}
|
|
2497
|
+
onFieldDefaultValueChange(field, nv) {
|
|
2498
|
+
field.minValue = nv;
|
|
2499
|
+
field.value = nv;
|
|
2500
|
+
this.filterOnDefault();
|
|
2501
|
+
}
|
|
2502
|
+
onFieldValueChange(field, nv) {
|
|
2503
|
+
applyFilterOnField(this.form.datasource, field.widget, this.form.formFields, nv, {
|
|
2504
|
+
EMPTY_VALUE: this.form.appLocale.LABEL_NO_VALUE
|
|
2505
|
+
});
|
|
2506
|
+
if (this.form.autoupdate && isDefined(nv)) {
|
|
2507
|
+
this._filter();
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
onMaxDefaultValueChange() {
|
|
2511
|
+
setTimeout(() => {
|
|
2512
|
+
this.filterOnDefault();
|
|
2513
|
+
});
|
|
2514
|
+
}
|
|
2515
|
+
onDataSourceChange() {
|
|
2516
|
+
const dataSource = this.form.datasource;
|
|
2517
|
+
if (!dataSource) {
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2520
|
+
this.form.formFields.forEach(field => {
|
|
2521
|
+
if (isDataSetWidget(field.widgettype)) {
|
|
2522
|
+
getDistinctValuesForField(dataSource, field.widget, {
|
|
2523
|
+
widget: 'widgettype',
|
|
2524
|
+
enableemptyfilter: this.form.enableemptyfilter,
|
|
2525
|
+
EMPTY_VALUE: this.form.appLocale.LABEL_NO_VALUE
|
|
2526
|
+
});
|
|
2527
|
+
applyFilterOnField(dataSource, field.widget, this.form.formFields, field.value, {
|
|
2528
|
+
isFirst: true,
|
|
2529
|
+
EMPTY_VALUE: this.form.appLocale.LABEL_NO_VALUE
|
|
2530
|
+
});
|
|
2531
|
+
}
|
|
2532
|
+
});
|
|
2533
|
+
// On load check if default value exists and apply filter, Call the filter with the result options
|
|
2534
|
+
this._filter(this._options);
|
|
2535
|
+
}
|
|
2536
|
+
clearFilter() {
|
|
2537
|
+
this.form.resetFormState();
|
|
2538
|
+
this.form.formFields.forEach(filterField => {
|
|
2539
|
+
// Added check for range field
|
|
2540
|
+
if (!filterField.readonly && filterField.show) {
|
|
2541
|
+
if (filterField.widgettype === FormWidgetType.AUTOCOMPLETE || filterField.widgettype === FormWidgetType.TYPEAHEAD) {
|
|
2542
|
+
this.form.$element.find('div[name=' + filterField.name + '] input').val('');
|
|
2543
|
+
}
|
|
2544
|
+
if (filterField['is-range']) {
|
|
2545
|
+
filterField.minValue = '';
|
|
2546
|
+
filterField.maxValue = '';
|
|
2547
|
+
}
|
|
2548
|
+
else {
|
|
2549
|
+
filterField.value = '';
|
|
2550
|
+
filterField.resetDisplayInput();
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
});
|
|
2554
|
+
// If variable has any bindings, wait for the bindings to be updated
|
|
2555
|
+
setTimeout(() => {
|
|
2556
|
+
// Setting result to the default data
|
|
2557
|
+
this._filter();
|
|
2558
|
+
});
|
|
2559
|
+
}
|
|
2560
|
+
submitForm() {
|
|
2561
|
+
this.filter();
|
|
2562
|
+
}
|
|
2563
|
+
applyFilter(options) {
|
|
2564
|
+
options = options ? (options.data || options) : {};
|
|
2565
|
+
options.page = options.page || 1;
|
|
2566
|
+
options.orderBy = isDefined(options.orderBy) ? options.orderBy : this.orderBy;
|
|
2567
|
+
return this.filter(options);
|
|
2568
|
+
}
|
|
2569
|
+
filter(options) {
|
|
2570
|
+
if (!this.form.datasource) {
|
|
2571
|
+
return;
|
|
2572
|
+
}
|
|
2573
|
+
const filterFields = {};
|
|
2574
|
+
const dataModel = {};
|
|
2575
|
+
let page = 1, orderBy, isValid;
|
|
2576
|
+
options = options || {};
|
|
2577
|
+
page = options.page || page;
|
|
2578
|
+
orderBy = isDefined(options.orderBy) ? options.orderBy : (this.orderBy || '');
|
|
2579
|
+
this.orderBy = orderBy; // Store the order by in scope. This can be used to retain the sort after filtering
|
|
2580
|
+
// Copy the values to be sent to the user as '$data' before servicecall
|
|
2581
|
+
this.form.formFields.forEach(field => {
|
|
2582
|
+
const fieldSelector = 'div[name=' + field.name + '] input';
|
|
2583
|
+
const $el = this.form.$element;
|
|
2584
|
+
let fieldEle;
|
|
2585
|
+
if ((field.widgettype === FormWidgetType.AUTOCOMPLETE || field.widgettype === FormWidgetType.TYPEAHEAD) && $el) {
|
|
2586
|
+
fieldEle = $el.find(fieldSelector);
|
|
2587
|
+
if (!field['is-range']) {
|
|
2588
|
+
dataModel[field.field] = {
|
|
2589
|
+
'value': isDefined(field.value) ? field.value : fieldEle.val() // For autocomplete, set the datavalue. If not present, set query value
|
|
2590
|
+
};
|
|
2591
|
+
}
|
|
2592
|
+
else {
|
|
2593
|
+
dataModel[field.field] = {
|
|
2594
|
+
'minValue': isDefined(field.minValue) ? field.minValue : fieldEle.first().val(),
|
|
2595
|
+
'maxValue': isDefined(field.maxValue) ? field.maxValue : fieldEle.last().val()
|
|
2596
|
+
};
|
|
2597
|
+
}
|
|
2598
|
+
return;
|
|
2599
|
+
}
|
|
2600
|
+
if (!field['is-range']) {
|
|
2601
|
+
dataModel[field.field] = {
|
|
2602
|
+
'value': field.value
|
|
2603
|
+
};
|
|
2604
|
+
}
|
|
2605
|
+
else {
|
|
2606
|
+
dataModel[field.field] = {
|
|
2607
|
+
'minValue': field.minValue,
|
|
2608
|
+
'maxValue': field.maxValue
|
|
2609
|
+
};
|
|
2610
|
+
}
|
|
2611
|
+
});
|
|
2612
|
+
/*Perform this function for the event onBeforeservicecall*/
|
|
2613
|
+
try {
|
|
2614
|
+
isValid = this.form.invokeEventCallback('beforeservicecall', { $data: dataModel });
|
|
2615
|
+
if (isValid === false) {
|
|
2616
|
+
return;
|
|
2617
|
+
}
|
|
2618
|
+
if (isValid && isValid.error) {
|
|
2619
|
+
this.form.toggleMessage(true, isValid.error, 'error', 'ERROR');
|
|
2620
|
+
return;
|
|
2621
|
+
}
|
|
2622
|
+
/*Update these values in the formFields with new reference, inorder to maintain the UI values*/
|
|
2623
|
+
this.form.formFields.forEach(filterField => {
|
|
2624
|
+
if (!filterField['is-range']) {
|
|
2625
|
+
filterField._value = dataModel[filterField.field].value;
|
|
2626
|
+
}
|
|
2627
|
+
else {
|
|
2628
|
+
filterField._minValue = dataModel[filterField.field].minValue;
|
|
2629
|
+
filterField._maxValue = dataModel[filterField.field].maxValue;
|
|
2630
|
+
}
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2633
|
+
catch (err) {
|
|
2634
|
+
if (err.message === 'Abort') {
|
|
2635
|
+
return;
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
/* Construct the formFields Variable to send it to the queryBuilder */
|
|
2639
|
+
this.form.formFields.forEach(filterField => {
|
|
2640
|
+
let fieldValue;
|
|
2641
|
+
let matchMode;
|
|
2642
|
+
let colName = filterField.field;
|
|
2643
|
+
const minValue = filterField._minValue;
|
|
2644
|
+
const maxvalue = filterField._maxValue;
|
|
2645
|
+
/* if field is part of a related entity, column name will be 'entity.fieldName' */
|
|
2646
|
+
if (filterField['is-related']) {
|
|
2647
|
+
colName += '.' + filterField['lookup-field'];
|
|
2648
|
+
}
|
|
2649
|
+
if (filterField['is-range']) {
|
|
2650
|
+
/*Based on the min and max values, decide the matchmode condition*/
|
|
2651
|
+
fieldValue = getRangeFieldValue(minValue, maxvalue);
|
|
2652
|
+
matchMode = getRangeMatchMode(minValue, maxvalue);
|
|
2653
|
+
if (isDefined(fieldValue)) {
|
|
2654
|
+
filterFields[colName] = {
|
|
2655
|
+
'value': fieldValue,
|
|
2656
|
+
'matchMode': matchMode,
|
|
2657
|
+
'logicalOp': 'AND'
|
|
2658
|
+
};
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
else {
|
|
2662
|
+
switch (filterField.widgettype) {
|
|
2663
|
+
case FormWidgetType.SELECT:
|
|
2664
|
+
case FormWidgetType.RADIOSET:
|
|
2665
|
+
if (getEnableEmptyFilter(this.form.enableemptyfilter) && filterField._value === FILTER_CONSTANTS.EMPTY_KEY) {
|
|
2666
|
+
matchMode = getEmptyMatchMode(this.form.enableemptyfilter);
|
|
2667
|
+
fieldValue = filterField._value;
|
|
2668
|
+
}
|
|
2669
|
+
else {
|
|
2670
|
+
if (filterField.type === DataType.BOOLEAN) {
|
|
2671
|
+
if (isDefined(filterField._value) && filterField._value !== '') {
|
|
2672
|
+
fieldValue = JSON.parse(filterField._value);
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
else {
|
|
2676
|
+
fieldValue = filterField._value;
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
break;
|
|
2680
|
+
case FormWidgetType.CHECKBOXSET:
|
|
2681
|
+
case FormWidgetType.CHIPS:
|
|
2682
|
+
if (filterField._value && filterField._value.length) {
|
|
2683
|
+
fieldValue = filterField._value;
|
|
2684
|
+
}
|
|
2685
|
+
break;
|
|
2686
|
+
case FormWidgetType.CHECKBOX:
|
|
2687
|
+
case FormWidgetType.TOGGLE:
|
|
2688
|
+
case FormWidgetType.ICONBUTTONTOGGLE:
|
|
2689
|
+
if (isDefined(filterField._value) && filterField._value !== '') {
|
|
2690
|
+
fieldValue = filterField.type === DataType.BOOLEAN ? JSON.parse(filterField._value) : filterField._value;
|
|
2691
|
+
}
|
|
2692
|
+
break;
|
|
2693
|
+
default:
|
|
2694
|
+
fieldValue = filterField._value;
|
|
2695
|
+
break;
|
|
2696
|
+
}
|
|
2697
|
+
if (isDefined(fieldValue) && fieldValue !== '' && fieldValue !== null) {
|
|
2698
|
+
filterFields[colName] = {};
|
|
2699
|
+
if (matchMode) {
|
|
2700
|
+
filterFields[colName].matchMode = matchMode;
|
|
2701
|
+
fieldValue = undefined;
|
|
2702
|
+
}
|
|
2703
|
+
else if (filterField.type === DataType.STRING || filterField.isRelated) { // Only for string types and related fields, custom match modes are enabled.
|
|
2704
|
+
filterFields[colName].matchMode = matchMode || filterField.matchmode ||
|
|
2705
|
+
this.form.datasource.execute(DataSource.Operation.GET_MATCH_MODE);
|
|
2706
|
+
}
|
|
2707
|
+
filterFields[colName].value = fieldValue;
|
|
2708
|
+
filterFields[colName].logicalOp = 'AND';
|
|
2709
|
+
filterFields[colName].type = filterField.type;
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
});
|
|
2713
|
+
if (options.exportType) {
|
|
2714
|
+
return this.form.datasource.execute(DataSource.Operation.DOWNLOAD, {
|
|
2715
|
+
data: {
|
|
2716
|
+
matchMode: 'anywhereignorecase',
|
|
2717
|
+
filterFields: filterFields,
|
|
2718
|
+
orderBy: orderBy,
|
|
2719
|
+
exportType: options.exportType,
|
|
2720
|
+
logicalOp: 'AND',
|
|
2721
|
+
exportSize: options.exportSize,
|
|
2722
|
+
fields: options.fields,
|
|
2723
|
+
fileName: options.fileName
|
|
2724
|
+
}
|
|
2725
|
+
});
|
|
2726
|
+
}
|
|
2727
|
+
return this.form.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
2728
|
+
filterFields: filterFields,
|
|
2729
|
+
orderBy: orderBy,
|
|
2730
|
+
page: page,
|
|
2731
|
+
pagesize: this.form.pagesize || 20,
|
|
2732
|
+
skipDataSetUpdate: true, // dont update the actual variable dataset,
|
|
2733
|
+
inFlightBehavior: 'executeAll'
|
|
2734
|
+
}).then(response => {
|
|
2735
|
+
const data = response.data;
|
|
2736
|
+
this.form.pagination = response.pagination;
|
|
2737
|
+
if (data.error) {
|
|
2738
|
+
// disable readonly and show the appropriate error
|
|
2739
|
+
this.form.toggleMessage(true, data.error, 'error', 'ERROR');
|
|
2740
|
+
this.form.onResultCb(data, false);
|
|
2741
|
+
}
|
|
2742
|
+
else {
|
|
2743
|
+
this._options = {
|
|
2744
|
+
'page': page,
|
|
2745
|
+
'orderBy': orderBy
|
|
2746
|
+
};
|
|
2747
|
+
this.form.result = getClonedObject(data);
|
|
2748
|
+
this.form.onResultCb(data, true);
|
|
2749
|
+
}
|
|
2750
|
+
$appDigest();
|
|
2751
|
+
return this.form.result;
|
|
2752
|
+
}, error => {
|
|
2753
|
+
this.form.toggleMessage(true, error, 'error', 'ERROR');
|
|
2754
|
+
this.form.onResultCb(error, false);
|
|
2755
|
+
return error;
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
// Calls the filter function if default values are present
|
|
2759
|
+
filterOnDefault() {
|
|
2760
|
+
/*Check if default value is present for any filter field*/
|
|
2761
|
+
const defaultObj = find(this.form.formFields, obj => {
|
|
2762
|
+
return isDefined(obj.value) || isDefined(obj.minValue) || isDefined(obj.maxValue);
|
|
2763
|
+
});
|
|
2764
|
+
/*If default value exists and data is loaded, apply the filter*/
|
|
2765
|
+
if (defaultObj) {
|
|
2766
|
+
this._filter(this._options);
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
registerFormWidget(widget) {
|
|
2770
|
+
const name = widget.key || widget.name;
|
|
2771
|
+
this.form.filterWidgets[name] = widget;
|
|
2772
|
+
}
|
|
2773
|
+
ngOnDestroy() {
|
|
2774
|
+
// MEMORY LEAK FIX: Cancel debounced function
|
|
2775
|
+
if (this._filter && this._filter.cancel) {
|
|
2776
|
+
this._filter.cancel();
|
|
2777
|
+
this._filter = null;
|
|
2778
|
+
}
|
|
2779
|
+
// MEMORY LEAK FIX: Clear form reference
|
|
2780
|
+
this.form = null;
|
|
2781
|
+
this._options = null;
|
|
2782
|
+
this.orderBy = null;
|
|
2783
|
+
}
|
|
2784
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LiveFilterDirective, deps: [{ token: FormComponent, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2785
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: LiveFilterDirective, isStandalone: true, selector: "[wmLiveFilter]", ngImport: i0 }); }
|
|
2786
|
+
}
|
|
2787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LiveFilterDirective, decorators: [{
|
|
2788
|
+
type: Directive,
|
|
2789
|
+
args: [{
|
|
2790
|
+
standalone: true,
|
|
2791
|
+
selector: '[wmLiveFilter]'
|
|
2792
|
+
}]
|
|
2793
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2794
|
+
type: Self
|
|
2795
|
+
}, {
|
|
2796
|
+
type: Inject,
|
|
2797
|
+
args: [FormComponent]
|
|
2798
|
+
}] }] });
|
|
2799
|
+
|
|
2800
|
+
const isTimeType = field => field.widgettype === DataType.TIME || (field.type === DataType.TIME && !field.widgettype);
|
|
2801
|
+
const getValidTime = val => {
|
|
2802
|
+
if (val) {
|
|
2803
|
+
const date = (new Date()).toDateString();
|
|
2804
|
+
return (new Date(`${date} ${val}`)).getTime();
|
|
2805
|
+
}
|
|
2806
|
+
return undefined;
|
|
2807
|
+
};
|
|
2808
|
+
class LiveFormDirective {
|
|
2809
|
+
static { this.initializeProps = registerLiveFormProps(); }
|
|
2810
|
+
onKeydownHandler(event) {
|
|
2811
|
+
this._triggeredByUser = true;
|
|
2812
|
+
}
|
|
2813
|
+
constructor(form, liveTable, datePipe, dialogService, formlayout) {
|
|
2814
|
+
this.form = form;
|
|
2815
|
+
this.datePipe = datePipe;
|
|
2816
|
+
this.dialogService = dialogService;
|
|
2817
|
+
this._debouncedSavePrevDataValues = debounce$1(() => {
|
|
2818
|
+
this.savePrevDataValues();
|
|
2819
|
+
}, 250);
|
|
2820
|
+
// If parent live table is present and this form is first child of live table, set this form instance on livetable
|
|
2821
|
+
if (liveTable) {
|
|
2822
|
+
if (!this.form.parentForm) {
|
|
2823
|
+
this.form._liveTableParent = liveTable;
|
|
2824
|
+
}
|
|
2825
|
+
this.form.isLayoutDialog = liveTable.isLayoutDialog;
|
|
2826
|
+
liveTable.onFormReady(this.form);
|
|
2827
|
+
}
|
|
2828
|
+
else {
|
|
2829
|
+
this.form.isLayoutDialog = formlayout === 'dialog';
|
|
2830
|
+
}
|
|
2831
|
+
// CUD operations
|
|
2832
|
+
form.cancel = this.cancel.bind(this);
|
|
2833
|
+
form.reset = this.reset.bind(this);
|
|
2834
|
+
form.delete = this.delete.bind(this);
|
|
2835
|
+
form.save = this.save.bind(this);
|
|
2836
|
+
form.saveAndNew = this.saveAndNew.bind(this);
|
|
2837
|
+
form.saveAndView = this.saveAndView.bind(this);
|
|
2838
|
+
form.setPrimaryKey = this.setPrimaryKey.bind(this);
|
|
2839
|
+
form.constructDataObject = this.constructDataObject.bind(this);
|
|
2840
|
+
form.changeDataObject = this.setFormData.bind(this);
|
|
2841
|
+
form.setFormData = this.setFormData.bind(this);
|
|
2842
|
+
form.findOperationType = this.findOperationType.bind(this);
|
|
2843
|
+
form.clearData = this.clearData.bind(this);
|
|
2844
|
+
form.onFieldDefaultValueChange = this.onFieldDefaultValueChange.bind(this);
|
|
2845
|
+
form.onDataSourceChange = this.onDataSourceChange.bind(this);
|
|
2846
|
+
form.onFieldValueChange = this.onFieldValueChange.bind(this);
|
|
2847
|
+
form.submitForm = this.submitForm.bind(this);
|
|
2848
|
+
form.form_registerFormFields = form.registerFormFields;
|
|
2849
|
+
form.registerFormFields = this.registerFormFields.bind(this);
|
|
2850
|
+
}
|
|
2851
|
+
/*
|
|
2852
|
+
WMS:18583
|
|
2853
|
+
Overriding 'registerFormFields' for liveForms,
|
|
2854
|
+
On Each field added, check if the dataSource is updated or not
|
|
2855
|
+
if the field is added after the dataSource is updated at LiveForm, retrigger
|
|
2856
|
+
*/
|
|
2857
|
+
registerFormFields(formField) {
|
|
2858
|
+
const formFields = this.form.getFormFields();
|
|
2859
|
+
this.form.form_registerFormFields(formField);
|
|
2860
|
+
if (this.form.isDataSourceUpdated) {
|
|
2861
|
+
this._updateFieldOnDataSourceChange(formField, formFields);
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2864
|
+
_updateFieldOnDataSourceChange(field, formFields) {
|
|
2865
|
+
if (!field.isDataSetBound && isDataSetWidget(field.widgettype)) {
|
|
2866
|
+
if (field['is-related']) {
|
|
2867
|
+
field.isDataSetBound = true;
|
|
2868
|
+
fetchRelatedFieldData(this.form.datasource, field.widget, {
|
|
2869
|
+
relatedField: field.key,
|
|
2870
|
+
datafield: ALLFIELDS,
|
|
2871
|
+
widget: 'widgettype',
|
|
2872
|
+
});
|
|
2873
|
+
}
|
|
2874
|
+
else {
|
|
2875
|
+
getDistinctValuesForField(this.form.datasource, field.widget, {
|
|
2876
|
+
widget: 'widgettype',
|
|
2877
|
+
enableemptyfilter: this.form.enableemptyfilter
|
|
2878
|
+
});
|
|
2879
|
+
applyFilterOnField(this.form.datasource, field.widget, formFields, field.value, { isFirst: true });
|
|
2880
|
+
}
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
onDataSourceChange() {
|
|
2884
|
+
if (get(this.form.formFields, 'length')) {
|
|
2885
|
+
this.form.isDataSourceUpdated = true;
|
|
2886
|
+
}
|
|
2887
|
+
const formFields = this.form.getFormFields();
|
|
2888
|
+
formFields.forEach(field => {
|
|
2889
|
+
this._updateFieldOnDataSourceChange(field, formFields);
|
|
2890
|
+
});
|
|
2891
|
+
}
|
|
2892
|
+
onFieldDefaultValueChange(field, nv) {
|
|
2893
|
+
// In Edit, do not set default values
|
|
2894
|
+
if (this.form.operationType === 'update') {
|
|
2895
|
+
return;
|
|
2896
|
+
}
|
|
2897
|
+
// Set the default value only if it exists.
|
|
2898
|
+
if (isDefined(nv) && nv !== null && nv !== '' && nv !== 'null') {
|
|
2899
|
+
field.value = parseValueByType(nv, field.type, field.widgettype, field.trailingzero);
|
|
2900
|
+
}
|
|
2901
|
+
else {
|
|
2902
|
+
field.value = undefined;
|
|
2903
|
+
}
|
|
2904
|
+
// WMS-22434: For default value set on individual form fields, do not mark the form as dirty.
|
|
2905
|
+
if (this.form.dirty && !this._triggeredByUser) {
|
|
2906
|
+
this.form.markAsPristine();
|
|
2907
|
+
}
|
|
2908
|
+
this._debouncedSavePrevDataValues();
|
|
2909
|
+
}
|
|
2910
|
+
onFieldValueChange(field, nv) {
|
|
2911
|
+
applyFilterOnField(this.form.datasource, field.widget, this.form.formFields, nv);
|
|
2912
|
+
}
|
|
2913
|
+
getBlobURL(dataObj, key, value) {
|
|
2914
|
+
let href = '';
|
|
2915
|
+
let primaryKeys;
|
|
2916
|
+
let primaryKey;
|
|
2917
|
+
if (value === null || value === undefined || !this.form.datasource) {
|
|
2918
|
+
return href;
|
|
2919
|
+
}
|
|
2920
|
+
primaryKeys = this.form.datasource.execute(DataSource.Operation.GET_PRIMARY_KEY) || [];
|
|
2921
|
+
primaryKey = dataObj[primaryKeys[0]];
|
|
2922
|
+
href += this.form.datasource.execute(DataSource.Operation.GET_BLOB_URL, {
|
|
2923
|
+
primaryValue: primaryKey,
|
|
2924
|
+
columnName: key
|
|
2925
|
+
});
|
|
2926
|
+
href += '?' + Math.random();
|
|
2927
|
+
return href;
|
|
2928
|
+
}
|
|
2929
|
+
setFormData(dataObj, formFields) {
|
|
2930
|
+
if (!dataObj) {
|
|
2931
|
+
return;
|
|
2932
|
+
}
|
|
2933
|
+
formFields = formFields || this.form.formFields;
|
|
2934
|
+
formFields.forEach(field => {
|
|
2935
|
+
const value = get(dataObj, field.key || field.name);
|
|
2936
|
+
if (isTimeType(field)) {
|
|
2937
|
+
field.value = getValidTime(value);
|
|
2938
|
+
}
|
|
2939
|
+
else if (field.type === DataType.BLOB) {
|
|
2940
|
+
this.form.resetFileUploadWidget(field, true);
|
|
2941
|
+
field.href = this.getBlobURL(dataObj, field.key, value);
|
|
2942
|
+
field.value = isString(value) ? '' : value;
|
|
2943
|
+
}
|
|
2944
|
+
else {
|
|
2945
|
+
this.form.setFieldValue(field, dataObj);
|
|
2946
|
+
}
|
|
2947
|
+
});
|
|
2948
|
+
this.savePrevDataValues();
|
|
2949
|
+
this.form.constructDataObject();
|
|
2950
|
+
}
|
|
2951
|
+
onDataSourceUpdate(response, newForm, updateMode) {
|
|
2952
|
+
if (newForm) {
|
|
2953
|
+
this.form.new();
|
|
2954
|
+
}
|
|
2955
|
+
else {
|
|
2956
|
+
this.form.setFormData(response);
|
|
2957
|
+
this.closeDialog();
|
|
2958
|
+
}
|
|
2959
|
+
this.form.isUpdateMode = isDefined(updateMode) ? updateMode : true;
|
|
2960
|
+
}
|
|
2961
|
+
savePrevformFields() {
|
|
2962
|
+
this.form.prevformFields = getClonedObject(this.form.formFields.map(field => {
|
|
2963
|
+
return {
|
|
2964
|
+
'key': field.key,
|
|
2965
|
+
'type': field.type,
|
|
2966
|
+
'widgettype': field.widgettype,
|
|
2967
|
+
'outputformat': field.outputformat,
|
|
2968
|
+
'value': field.value
|
|
2969
|
+
};
|
|
2970
|
+
}));
|
|
2971
|
+
}
|
|
2972
|
+
getPrevformFields() {
|
|
2973
|
+
this.form.formFields.map(field => {
|
|
2974
|
+
const prevField = this.form.prevformFields.find(pField => pField.key === field.key);
|
|
2975
|
+
field.value = prevField.value;
|
|
2976
|
+
});
|
|
2977
|
+
}
|
|
2978
|
+
getDataObject() {
|
|
2979
|
+
if (this.form.operationType === Live_Operations.INSERT) {
|
|
2980
|
+
return {};
|
|
2981
|
+
}
|
|
2982
|
+
if (isDefined(this.form.prevDataObject) && !isEmptyObject(this.form.prevDataObject)) {
|
|
2983
|
+
return getClonedObject(this.form.prevDataObject);
|
|
2984
|
+
}
|
|
2985
|
+
return getClonedObject(this.form.formdata || {});
|
|
2986
|
+
}
|
|
2987
|
+
constructDataObject(isPreviousData) {
|
|
2988
|
+
const dataObject = this.getDataObject();
|
|
2989
|
+
const formName = this.form.name;
|
|
2990
|
+
let formFields;
|
|
2991
|
+
formFields = isPreviousData ? this.form.prevformFields : this.form.getFormFields();
|
|
2992
|
+
formFields.forEach(field => {
|
|
2993
|
+
let dateTime, fieldValue;
|
|
2994
|
+
const fieldTarget = split(field.key, '.');
|
|
2995
|
+
const fieldName = fieldTarget[0] || field.key;
|
|
2996
|
+
/*collect the values from the fields and construct the object*/
|
|
2997
|
+
/*Format the output of date time widgets to the given output format*/
|
|
2998
|
+
if ((field.widgettype && isDateTimeType(field.widgettype)) || isDateTimeType(field.type)) {
|
|
2999
|
+
if (field.value) {
|
|
3000
|
+
dateTime = getValidDateObject(field.value);
|
|
3001
|
+
if (field.outputformat === DataType.TIMESTAMP || field.type === DataType.TIMESTAMP) {
|
|
3002
|
+
fieldValue = field.value ? dateTime : null;
|
|
3003
|
+
}
|
|
3004
|
+
else if (field.outputformat) {
|
|
3005
|
+
fieldValue = this.datePipe.transform(dateTime, field.outputformat);
|
|
3006
|
+
}
|
|
3007
|
+
else {
|
|
3008
|
+
fieldValue = field.value;
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
else {
|
|
3012
|
+
fieldValue = undefined;
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
else if (field.type === DataType.BLOB) {
|
|
3016
|
+
fieldValue = getFiles(formName, fieldName + '_formWidget', field.multiple);
|
|
3017
|
+
}
|
|
3018
|
+
else if (field.type === DataType.LIST) {
|
|
3019
|
+
fieldValue = field.value || undefined;
|
|
3020
|
+
}
|
|
3021
|
+
else {
|
|
3022
|
+
fieldValue = (field.value === null || field.value === '') ? undefined : field.value;
|
|
3023
|
+
}
|
|
3024
|
+
if (fieldTarget.length === 1) {
|
|
3025
|
+
dataObject[fieldName] = fieldValue;
|
|
3026
|
+
}
|
|
3027
|
+
else {
|
|
3028
|
+
dataObject[fieldName] = dataObject[fieldName] || {};
|
|
3029
|
+
dataObject[fieldName][fieldTarget[1]] = fieldValue;
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
3032
|
+
if (!isPreviousData) {
|
|
3033
|
+
this.form.updateFormDataOutput(dataObject);
|
|
3034
|
+
return this.form.dataoutput;
|
|
3035
|
+
}
|
|
3036
|
+
return dataObject;
|
|
3037
|
+
}
|
|
3038
|
+
setPrimaryKey(fieldName) {
|
|
3039
|
+
/*Store the primary key of data*/
|
|
3040
|
+
this.form.primaryKey = this.form.primaryKey || [];
|
|
3041
|
+
if (this.form.primaryKey.indexOf(fieldName) === -1) {
|
|
3042
|
+
this.form.primaryKey.push(fieldName);
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
findOperationType() {
|
|
3046
|
+
let operation;
|
|
3047
|
+
let isPrimary = false;
|
|
3048
|
+
const sourceOperation = this.form.datasource && this.form.datasource.execute(DataSource.Operation.GET_OPERATION_TYPE);
|
|
3049
|
+
if (sourceOperation && sourceOperation !== 'read') {
|
|
3050
|
+
return sourceOperation;
|
|
3051
|
+
}
|
|
3052
|
+
/*If OperationType is not set then based on the formdata object return the operation type,
|
|
3053
|
+
this case occurs only if the form is outside a livegrid*/
|
|
3054
|
+
/*If the formdata object has primary key value then return update else insert*/
|
|
3055
|
+
if (this.form.primaryKey && !isEmpty(this.form.formdata)) {
|
|
3056
|
+
/*If only one column is primary key*/
|
|
3057
|
+
if (this.form.primaryKey.length === 1) {
|
|
3058
|
+
if (this.form.formdata[this.form.primaryKey[0]]) {
|
|
3059
|
+
operation = Live_Operations.UPDATE;
|
|
3060
|
+
}
|
|
3061
|
+
/*If only no column is primary key*/
|
|
3062
|
+
}
|
|
3063
|
+
else if (this.form.primaryKey.length === 0) {
|
|
3064
|
+
forEach(this.form.formdata, (value) => {
|
|
3065
|
+
if (value) {
|
|
3066
|
+
isPrimary = true;
|
|
3067
|
+
}
|
|
3068
|
+
});
|
|
3069
|
+
if (isPrimary) {
|
|
3070
|
+
operation = Live_Operations.UPDATE;
|
|
3071
|
+
}
|
|
3072
|
+
/*If multiple columns are primary key*/
|
|
3073
|
+
}
|
|
3074
|
+
else {
|
|
3075
|
+
isPrimary = some(this.form.primaryKey, (primaryKey) => {
|
|
3076
|
+
if (this.form.formdata[primaryKey]) {
|
|
3077
|
+
return true;
|
|
3078
|
+
}
|
|
3079
|
+
});
|
|
3080
|
+
if (isPrimary) {
|
|
3081
|
+
operation = Live_Operations.UPDATE;
|
|
3082
|
+
}
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
return operation || Live_Operations.INSERT;
|
|
3086
|
+
}
|
|
3087
|
+
getPrevDataValues() {
|
|
3088
|
+
const prevDataValues = fromPairs(map(this.form.prevDataValues, (item) => {
|
|
3089
|
+
return [item.key, item.value];
|
|
3090
|
+
})); // Convert of array of values to an object
|
|
3091
|
+
this.form.formFields.forEach(field => {
|
|
3092
|
+
field.value = prevDataValues[field.key] || '';
|
|
3093
|
+
field.resetDisplayInput();
|
|
3094
|
+
});
|
|
3095
|
+
return prevDataValues;
|
|
3096
|
+
}
|
|
3097
|
+
savePrevDataValues() {
|
|
3098
|
+
this.form.prevDataValues = this.form.formFields.map((obj) => {
|
|
3099
|
+
return { 'key': obj.key, 'value': obj.value };
|
|
3100
|
+
});
|
|
3101
|
+
}
|
|
3102
|
+
clearData() {
|
|
3103
|
+
this.form.toggleMessage(false);
|
|
3104
|
+
this.form.emptyDataModel();
|
|
3105
|
+
}
|
|
3106
|
+
setReadonlyFields() {
|
|
3107
|
+
this.form.formFields.forEach(field => {
|
|
3108
|
+
field.setReadOnlyState();
|
|
3109
|
+
});
|
|
3110
|
+
}
|
|
3111
|
+
reset() {
|
|
3112
|
+
let prevDataValues;
|
|
3113
|
+
this.form.resetFormState();
|
|
3114
|
+
prevDataValues = this.getPrevDataValues();
|
|
3115
|
+
this.form.formFields.forEach(field => {
|
|
3116
|
+
if (field.type === DataType.BLOB || field.widgettype === 'upload') {
|
|
3117
|
+
this.form.resetFileUploadWidget(field, true);
|
|
3118
|
+
field.href = this.getBlobURL(prevDataValues, field.key, field.value);
|
|
3119
|
+
}
|
|
3120
|
+
field.nativeElement.querySelector('input')?.removeAttribute('aria-invalid');
|
|
3121
|
+
});
|
|
3122
|
+
this.form.constructDataObject();
|
|
3123
|
+
}
|
|
3124
|
+
closeDialog() {
|
|
3125
|
+
if (this.form.isLayoutDialog) {
|
|
3126
|
+
this.dialogService.close(this.form.dialogId);
|
|
3127
|
+
}
|
|
3128
|
+
}
|
|
3129
|
+
cancel() {
|
|
3130
|
+
this.form.clearMessage();
|
|
3131
|
+
this.form.isUpdateMode = false;
|
|
3132
|
+
this.form.reset();
|
|
3133
|
+
/*Show the previous selected data*/
|
|
3134
|
+
if (this.form.isSelected) {
|
|
3135
|
+
this.getPrevformFields();
|
|
3136
|
+
}
|
|
3137
|
+
this.form.isUpdateMode = false;
|
|
3138
|
+
if (this.form._liveTableParent) {
|
|
3139
|
+
this.form._liveTableParent.onCancel();
|
|
3140
|
+
}
|
|
3141
|
+
else {
|
|
3142
|
+
/*
|
|
3143
|
+
WMS-18759: dialog close is calling twice and dialog onHidden subscription is calling once from the library
|
|
3144
|
+
due to this if we have another dialog inside liveform and if we click on cancel of second dialog the library
|
|
3145
|
+
subscription is calling for both the dialogs.
|
|
3146
|
+
*/
|
|
3147
|
+
this.closeDialog();
|
|
3148
|
+
}
|
|
3149
|
+
$appDigest();
|
|
3150
|
+
}
|
|
3151
|
+
delete(callBackFn) {
|
|
3152
|
+
this.form.resetFormState();
|
|
3153
|
+
this.form.operationType = Live_Operations.DELETE;
|
|
3154
|
+
this.form.prevDataObject = getClonedObject(this.form.formdata || {});
|
|
3155
|
+
this.form.save(undefined, undefined, undefined, callBackFn);
|
|
3156
|
+
}
|
|
3157
|
+
// Function use to save the form and open new form after save
|
|
3158
|
+
saveAndNew() {
|
|
3159
|
+
this.save(undefined, true, true);
|
|
3160
|
+
}
|
|
3161
|
+
// Function use to save the form and open new form after save
|
|
3162
|
+
saveAndView() {
|
|
3163
|
+
this.save(undefined, false);
|
|
3164
|
+
}
|
|
3165
|
+
submitForm($event) {
|
|
3166
|
+
this.save($event);
|
|
3167
|
+
}
|
|
3168
|
+
save(event, updateMode, newForm) {
|
|
3169
|
+
if (!this.form.datasource) {
|
|
3170
|
+
return;
|
|
3171
|
+
}
|
|
3172
|
+
let data, prevData, operationType, isValid;
|
|
3173
|
+
const requestData = {};
|
|
3174
|
+
operationType = this.form.operationType = this.form.operationType || this.findOperationType();
|
|
3175
|
+
// Disable the form submit if form is in invalid state.
|
|
3176
|
+
if (this.form.validateFieldsOnSubmit()) {
|
|
3177
|
+
return;
|
|
3178
|
+
}
|
|
3179
|
+
data = getClonedObject(this.form.constructDataObject());
|
|
3180
|
+
prevData = this.form.prevformFields ? this.form.constructDataObject(true) : data;
|
|
3181
|
+
try {
|
|
3182
|
+
isValid = this.form.invokeEventCallback('beforeservicecall', { $event: event, $operation: this.form.operationType, $data: data, options: requestData });
|
|
3183
|
+
if (isValid === false) {
|
|
3184
|
+
return;
|
|
3185
|
+
}
|
|
3186
|
+
if (isValid && isValid.error) {
|
|
3187
|
+
this.form.toggleMessage(true, isValid.error, 'error');
|
|
3188
|
+
return;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
catch (err) {
|
|
3192
|
+
if (err.message === 'Abort') {
|
|
3193
|
+
return;
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
// If operation is update, form is not touched and current data and previous data is same, Show no changes detected message
|
|
3197
|
+
if (this.form.operationType === Live_Operations.UPDATE && this.form.ngform && this.form.ngform.pristine &&
|
|
3198
|
+
(this.form.isSelected && isEqual(data, prevData))) {
|
|
3199
|
+
this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
|
|
3200
|
+
$appDigest();
|
|
3201
|
+
return;
|
|
3202
|
+
}
|
|
3203
|
+
requestData.row = data;
|
|
3204
|
+
requestData.transform = true;
|
|
3205
|
+
requestData.skipNotification = true;
|
|
3206
|
+
if (operationType === Live_Operations.UPDATE) {
|
|
3207
|
+
requestData.rowData = this.form.formdata;
|
|
3208
|
+
requestData.prevData = prevData;
|
|
3209
|
+
}
|
|
3210
|
+
performDataOperation(this.form.datasource, requestData, {
|
|
3211
|
+
operationType: operationType
|
|
3212
|
+
}).then((response) => {
|
|
3213
|
+
const msg = operationType === Live_Operations.INSERT ? this.form.insertmessage : (operationType === Live_Operations.UPDATE ?
|
|
3214
|
+
this.form.updatemessage : this.form.deletemessage);
|
|
3215
|
+
let result;
|
|
3216
|
+
if (operationType === Live_Operations.DELETE) {
|
|
3217
|
+
result = requestData.row;
|
|
3218
|
+
this.form.emptyDataModel();
|
|
3219
|
+
this.form.prevDataValues = [];
|
|
3220
|
+
this.form.isSelected = false;
|
|
3221
|
+
}
|
|
3222
|
+
else {
|
|
3223
|
+
result = response;
|
|
3224
|
+
}
|
|
3225
|
+
if (!this.form.onSuccess) {
|
|
3226
|
+
this.form.toggleMessage(true, msg, 'success');
|
|
3227
|
+
}
|
|
3228
|
+
if (this.form._liveTableParent) {
|
|
3229
|
+
// highlight the current updated row
|
|
3230
|
+
this.form._liveTableParent.onResult(operationType, response, newForm, updateMode);
|
|
3231
|
+
}
|
|
3232
|
+
else {
|
|
3233
|
+
/*get updated data without refreshing page*/
|
|
3234
|
+
this.form.datasource.execute(DataSource.Operation.LIST_RECORDS, {
|
|
3235
|
+
'skipToggleState': true
|
|
3236
|
+
});
|
|
3237
|
+
this.onDataSourceUpdate(response, newForm, updateMode);
|
|
3238
|
+
}
|
|
3239
|
+
return {
|
|
3240
|
+
'result': result,
|
|
3241
|
+
'status': true
|
|
3242
|
+
};
|
|
3243
|
+
}, (error) => {
|
|
3244
|
+
if (!this.form.onError) {
|
|
3245
|
+
this.form.toggleMessage(true, error, 'error');
|
|
3246
|
+
}
|
|
3247
|
+
$appDigest();
|
|
3248
|
+
return {
|
|
3249
|
+
'result': error,
|
|
3250
|
+
'status': false
|
|
3251
|
+
};
|
|
3252
|
+
}).then(response => {
|
|
3253
|
+
// reset the form to pristine state
|
|
3254
|
+
this.form.resetFormState();
|
|
3255
|
+
this.form.onResultCb(response.result, response.status, event);
|
|
3256
|
+
});
|
|
3257
|
+
}
|
|
3258
|
+
ngOnDestroy() {
|
|
3259
|
+
// MEMORY LEAK FIX: Cancel debounced function
|
|
3260
|
+
if (this._debouncedSavePrevDataValues && this._debouncedSavePrevDataValues.cancel) {
|
|
3261
|
+
this._debouncedSavePrevDataValues.cancel();
|
|
3262
|
+
this._debouncedSavePrevDataValues = null;
|
|
3263
|
+
}
|
|
3264
|
+
// MEMORY LEAK FIX: Clear form reference
|
|
3265
|
+
this.form = null;
|
|
3266
|
+
}
|
|
3267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", 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 }); }
|
|
3268
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: LiveFormDirective, isStandalone: true, selector: "[wmLiveForm]", host: { listeners: { "keydown": "onKeydownHandler($event)" } }, ngImport: i0 }); }
|
|
3269
|
+
}
|
|
3270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LiveFormDirective, decorators: [{
|
|
3271
|
+
type: Directive,
|
|
3272
|
+
args: [{
|
|
3273
|
+
standalone: true,
|
|
3274
|
+
selector: '[wmLiveForm]'
|
|
3275
|
+
}]
|
|
3276
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
3277
|
+
type: Self
|
|
3278
|
+
}, {
|
|
3279
|
+
type: Inject,
|
|
3280
|
+
args: [FormComponent]
|
|
3281
|
+
}] }, { type: i1$2.LiveTableComponent, decorators: [{
|
|
3282
|
+
type: Optional
|
|
3283
|
+
}] }, { type: i5.ToDatePipe }, { type: i1$1.AbstractDialogService }, { type: undefined, decorators: [{
|
|
3284
|
+
type: Attribute,
|
|
3285
|
+
args: ['formlayout']
|
|
3286
|
+
}] }], propDecorators: { onKeydownHandler: [{
|
|
3287
|
+
type: HostListener,
|
|
3288
|
+
args: ['keydown', ['$event']]
|
|
3289
|
+
}] } });
|
|
3290
|
+
|
|
3291
|
+
/**
|
|
3292
|
+
* Generated bundle index. Do not edit.
|
|
3293
|
+
*/
|
|
3294
|
+
|
|
3295
|
+
export { DependsonDirective, FormActionDirective, FormComponent, FormFieldDirective, FormWidgetDirective, LiveActionsDirective, LiveFilterDirective, LiveFormDirective };
|
|
3296
|
+
//# sourceMappingURL=index.mjs.map
|