@wavemaker/app-ng-runtime 11.8.0-next.141670 → 11.8.0-next.141673
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-task/bundles/index.umd.js +33 -9
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +4 -2
- package/build-task/esm2022/advanced/carousel/carousel.build.mjs +1 -1
- package/build-task/esm2022/basic/default/label/label.build.mjs +1 -1
- package/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +1 -1
- package/build-task/esm2022/containers/accordion/accordion.build.mjs +1 -1
- package/build-task/esm2022/containers/repeat-template.build.mjs +4 -2
- package/build-task/esm2022/containers/tabs/tabs.build.mjs +1 -1
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +1 -1
- package/build-task/esm2022/data/form/form.build.mjs +5 -2
- package/build-task/esm2022/data/list/list.build.mjs +1 -1
- package/build-task/esm2022/data/media-list/media-list.build.mjs +1 -1
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +1 -1
- package/build-task/esm2022/data/table/table.build.mjs +1 -1
- package/build-task/esm2022/dialogs/partial-dialog/partial-dialog.build.mjs +1 -1
- package/build-task/esm2022/input/file-upload/file-upload.build.mjs +1 -1
- package/build-task/esm2022/navigation/menu/menu.build.mjs +19 -2
- package/build-task/esm2022/navigation/popover/popover.build.mjs +1 -1
- package/build-task/esm2022/page/page-content/page-content.build.mjs +1 -1
- package/build-task/esm2022/page/page.build.mjs +3 -2
- package/build-task/esm2022/utils/utils.mjs +1 -1
- package/build-task/fesm2022/index.mjs +31 -6
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +26 -16
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +2 -2
- package/components/advanced/carousel/carousel.directive.d.ts +2 -2
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +12 -7
- package/components/advanced/carousel/esm2022/carousel.animator.mjs +3 -2
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +12 -7
- package/components/advanced/carousel/esm2022/carousel.module.mjs +2 -2
- package/components/advanced/carousel/fesm2022/index.mjs +25 -14
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/bundles/index.umd.js +19 -13
- package/components/advanced/login/esm2022/login.component.mjs +17 -10
- package/components/advanced/login/esm2022/login.module.mjs +2 -2
- package/components/advanced/login/fesm2022/index.mjs +18 -11
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/login.component.d.ts +2 -2
- package/components/advanced/marquee/bundles/index.umd.js +11 -6
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +12 -7
- package/components/advanced/marquee/esm2022/marquee.module.mjs +2 -2
- package/components/advanced/marquee/fesm2022/index.mjs +13 -8
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/marquee.directive.d.ts +2 -2
- package/components/base/bundles/index.umd.js +357 -270
- package/components/base/esm2022/components.module.mjs +2 -2
- package/components/base/esm2022/directives/show-in-device.directive.mjs +4 -4
- package/components/base/esm2022/pipes/custom-pipes.mjs +35 -34
- package/components/base/esm2022/pipes/image.pipe.mjs +2 -2
- package/components/base/esm2022/pipes/sanitize.pipe.mjs +3 -3
- package/components/base/esm2022/pipes/trust-as.pipe.mjs +3 -3
- package/components/base/esm2022/pipes/wm-pipe.mjs +3 -2
- package/components/base/esm2022/utils/data-utils.mjs +30 -29
- package/components/base/esm2022/utils/form-utils.mjs +48 -42
- package/components/base/esm2022/utils/live-utils.mjs +8 -7
- package/components/base/esm2022/utils/widget-utils.mjs +28 -27
- package/components/base/esm2022/widgets/common/base/base-container.component.mjs +8 -7
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +24 -21
- package/components/base/esm2022/widgets/common/base/base.component.mjs +42 -16
- package/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +52 -18
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +6 -5
- package/components/base/esm2022/widgets/common/base/stylable.component.mjs +3 -3
- package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +3 -3
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +12 -7
- package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +5 -4
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +12 -7
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +3 -3
- package/components/base/esm2022/widgets/common/message/message.component.mjs +16 -10
- package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +14 -8
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +9 -8
- package/components/base/esm2022/widgets/common/pull-to-refresh/pull-to-refresh.mjs +1 -1
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +4 -4
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +12 -7
- package/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +11 -10
- package/components/base/esm2022/widgets/framework/deviceview.mjs +1 -1
- package/components/base/esm2022/widgets/framework/property-change-handler.mjs +3 -2
- package/components/base/esm2022/widgets/framework/styler.mjs +1 -1
- package/components/base/esm2022/widgets/framework/widget-props.mjs +1 -1
- package/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +4 -3
- package/components/base/esm2022/widgets/framework/widget-registry.mjs +1 -1
- package/components/base/fesm2022/index.mjs +362 -272
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/pipes/custom-pipes.d.ts +1 -1
- package/components/base/utils/data-utils.d.ts +1 -0
- package/components/base/utils/widget-utils.d.ts +2 -2
- package/components/base/widgets/common/base/base-container.component.d.ts +1 -1
- package/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
- package/components/base/widgets/common/base/base.component.d.ts +4 -2
- package/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +1 -1
- package/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
- package/components/base/widgets/common/container/container.directive.d.ts +2 -2
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +2 -2
- package/components/base/widgets/common/message/message.component.d.ts +2 -2
- package/components/base/widgets/common/partial/partial.directive.d.ts +2 -2
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +2 -2
- package/components/basic/default/anchor/anchor.component.d.ts +2 -2
- package/components/basic/default/audio/audio.component.d.ts +3 -2
- package/components/basic/default/bundles/index.umd.js +163 -119
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +31 -27
- package/components/basic/default/esm2022/audio/audio.component.mjs +18 -11
- package/components/basic/default/esm2022/basic.module.mjs +2 -2
- package/components/basic/default/esm2022/html/html.directive.mjs +13 -8
- package/components/basic/default/esm2022/icon/icon.component.mjs +19 -14
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +15 -9
- package/components/basic/default/esm2022/label/label.directive.mjs +15 -9
- package/components/basic/default/esm2022/picture/picture.directive.mjs +12 -7
- package/components/basic/default/esm2022/picture/picture.props.mjs +1 -1
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +34 -30
- package/components/basic/default/esm2022/video/video.component.mjs +21 -17
- package/components/basic/default/fesm2022/index.mjs +162 -117
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/html/html.directive.d.ts +2 -2
- package/components/basic/default/icon/icon.component.d.ts +2 -2
- package/components/basic/default/iframe/iframe.component.d.ts +2 -2
- package/components/basic/default/label/label.directive.d.ts +2 -2
- package/components/basic/default/picture/picture.directive.d.ts +2 -2
- package/components/basic/default/spinner/spinner.component.d.ts +2 -2
- package/components/basic/default/video/video.component.d.ts +2 -2
- package/components/basic/progress/bundles/index.umd.js +45 -32
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +24 -17
- package/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +20 -12
- package/components/basic/progress/esm2022/progress.module.mjs +2 -2
- package/components/basic/progress/esm2022/utils.mjs +3 -3
- package/components/basic/progress/fesm2022/index.mjs +44 -30
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -2
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -2
- package/components/basic/rich-text-editor/bundles/index.umd.js +19 -13
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +17 -10
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.module.mjs +2 -2
- package/components/basic/rich-text-editor/fesm2022/index.mjs +18 -11
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -2
- package/components/basic/search/bundles/index.umd.js +185 -175
- package/components/basic/search/esm2022/data-provider/data-provider.mjs +1 -1
- package/components/basic/search/esm2022/data-provider/local-data-provider.mjs +26 -23
- package/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +12 -11
- package/components/basic/search/esm2022/scrollable.directive.mjs +3 -3
- package/components/basic/search/esm2022/search.component.mjs +147 -138
- package/components/basic/search/esm2022/search.module.mjs +2 -2
- package/components/basic/search/fesm2022/index.mjs +185 -174
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/search.component.d.ts +2 -2
- package/components/basic/tree/bundles/index.umd.js +23 -17
- package/components/basic/tree/esm2022/tree.component.mjs +21 -14
- package/components/basic/tree/esm2022/tree.module.mjs +2 -2
- package/components/basic/tree/fesm2022/index.mjs +22 -15
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/tree.component.d.ts +2 -2
- package/components/chart/bundles/index.umd.js +97 -84
- package/components/chart/chart.component.d.ts +3 -3
- package/components/chart/chart.utils.d.ts +3 -3
- package/components/chart/esm2022/chart.component.mjs +82 -68
- package/components/chart/esm2022/chart.module.mjs +2 -2
- package/components/chart/esm2022/chart.utils.mjs +14 -13
- package/components/chart/fesm2022/index.mjs +95 -81
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -2
- package/components/containers/accordion/accordion.directive.d.ts +2 -2
- package/components/containers/accordion/bundles/index.umd.js +51 -40
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +23 -17
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.props.mjs +4 -4
- package/components/containers/accordion/esm2022/accordion.directive.mjs +25 -19
- package/components/containers/accordion/esm2022/accordion.module.mjs +2 -2
- package/components/containers/accordion/fesm2022/index.mjs +50 -38
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/bundles/index.umd.js +32 -17
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +13 -8
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +12 -7
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +12 -7
- package/components/containers/layout-grid/esm2022/layout-grid.module.mjs +2 -2
- package/components/containers/layout-grid/fesm2022/index.mjs +34 -19
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +2 -2
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +2 -2
- package/components/containers/layout-grid/layout-grid.directive.d.ts +2 -2
- package/components/containers/linear-layout/bundles/index.umd.js +21 -11
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +12 -7
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +12 -7
- package/components/containers/linear-layout/esm2022/linear-layout.module.mjs +2 -2
- package/components/containers/linear-layout/fesm2022/index.mjs +23 -13
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +2 -2
- package/components/containers/linear-layout/linear-layout.directive.d.ts +2 -2
- package/components/containers/panel/bundles/index.umd.js +85 -85
- package/components/containers/panel/esm2022/panel.component.mjs +83 -82
- package/components/containers/panel/esm2022/panel.module.mjs +2 -2
- package/components/containers/panel/fesm2022/index.mjs +84 -83
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/panel.component.d.ts +3 -3
- package/components/containers/tabs/bundles/index.umd.js +74 -63
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +14 -8
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.props.mjs +4 -4
- package/components/containers/tabs/esm2022/tabs.animator.mjs +1 -1
- package/components/containers/tabs/esm2022/tabs.component.mjs +57 -51
- package/components/containers/tabs/esm2022/tabs.module.mjs +2 -2
- package/components/containers/tabs/esm2022/tabs.props.mjs +1 -1
- package/components/containers/tabs/fesm2022/index.mjs +73 -61
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -2
- package/components/containers/tabs/tabs.component.d.ts +2 -2
- package/components/containers/tile/bundles/index.umd.js +11 -6
- package/components/containers/tile/esm2022/tile.directive.mjs +12 -7
- package/components/containers/tile/esm2022/tile.module.mjs +2 -2
- package/components/containers/tile/fesm2022/index.mjs +13 -8
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/tile.directive.d.ts +2 -2
- package/components/containers/wizard/bundles/index.umd.js +102 -98
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.directive.mjs +13 -8
- package/components/containers/wizard/esm2022/wizard.component.mjs +92 -93
- package/components/containers/wizard/esm2022/wizard.module.mjs +2 -2
- package/components/containers/wizard/fesm2022/index.mjs +104 -100
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/wizard-step/wizard-step.directive.d.ts +2 -2
- package/components/containers/wizard/wizard.component.d.ts +2 -2
- package/components/data/card/bundles/index.umd.js +70 -50
- package/components/data/card/card-actions/card-actions.directive.d.ts +2 -2
- package/components/data/card/card-content/card-content.component.d.ts +2 -2
- package/components/data/card/card-footer/card-footer.directive.d.ts +2 -2
- package/components/data/card/card.component.d.ts +2 -2
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +12 -7
- package/components/data/card/esm2022/card-content/card-content.component.mjs +15 -9
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +12 -7
- package/components/data/card/esm2022/card.component.mjs +38 -34
- package/components/data/card/esm2022/card.module.mjs +2 -2
- package/components/data/card/fesm2022/index.mjs +72 -52
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/form/bundles/index.umd.js +202 -188
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +15 -9
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +21 -16
- package/components/data/form/esm2022/form-field/form-field.props.mjs +1 -1
- package/components/data/form/esm2022/form-widget.directive.mjs +4 -4
- package/components/data/form/esm2022/form.component.mjs +139 -135
- package/components/data/form/esm2022/form.module.mjs +2 -2
- package/components/data/form/esm2022/form.props.mjs +1 -1
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +4 -4
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +4 -4
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +7 -6
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +18 -15
- package/components/data/form/fesm2022/index.mjs +206 -191
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form-action/form-action.directive.d.ts +2 -2
- package/components/data/form/form-field/form-field.directive.d.ts +2 -2
- package/components/data/form/form.component.d.ts +4 -4
- package/components/data/form/live-form/live-form.directive.d.ts +1 -1
- package/components/data/list/bundles/index.umd.js +826 -818
- package/components/data/list/esm2022/list-item.directive.mjs +4 -4
- package/components/data/list/esm2022/list.animator.mjs +5 -3
- package/components/data/list/esm2022/list.component.mjs +818 -810
- package/components/data/list/esm2022/list.module.mjs +2 -2
- package/components/data/list/fesm2022/index.mjs +825 -816
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list.component.d.ts +55 -54
- package/components/data/live-table/bundles/index.umd.js +13 -7
- package/components/data/live-table/esm2022/live-table.component.mjs +14 -8
- package/components/data/live-table/esm2022/live-table.module.mjs +2 -2
- package/components/data/live-table/fesm2022/index.mjs +15 -9
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/live-table.component.d.ts +2 -2
- package/components/data/pagination/bundles/index.umd.js +111 -109
- package/components/data/pagination/esm2022/pagination.component.mjs +109 -106
- package/components/data/pagination/esm2022/pagination.module.mjs +2 -2
- package/components/data/pagination/fesm2022/index.mjs +110 -107
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +2 -2
- package/components/data/table/bundles/index.umd.js +311 -268
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +15 -9
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +40 -25
- package/components/data/table/esm2022/table-column/table-column.props.mjs +2 -2
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +13 -8
- package/components/data/table/esm2022/table-cud.directive.mjs +10 -9
- package/components/data/table/esm2022/table-filter.directive.mjs +56 -58
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +13 -8
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +14 -8
- package/components/data/table/esm2022/table.component.mjs +162 -149
- package/components/data/table/esm2022/table.module.mjs +2 -2
- package/components/data/table/esm2022/table.props.mjs +2 -2
- package/components/data/table/fesm2022/index.mjs +310 -266
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/table-action/table-action.directive.d.ts +2 -2
- package/components/data/table/table-column/table-column.directive.d.ts +8 -8
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -2
- package/components/data/table/table-row/table-row.directive.d.ts +2 -2
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -2
- package/components/data/table/table.component.d.ts +4 -4
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -2
- package/components/dialogs/alert-dialog/bundles/index.umd.js +15 -9
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +16 -10
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.module.mjs +2 -2
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +17 -11
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +17 -11
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -2
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +18 -12
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.module.mjs +2 -2
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +19 -13
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/base-dialog.d.ts +2 -2
- package/components/dialogs/default/bundles/index.umd.js +75 -71
- package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +2 -2
- package/components/dialogs/default/esm2022/base-dialog.mjs +14 -9
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +4 -4
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +12 -7
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +49 -55
- package/components/dialogs/default/esm2022/dialog.module.mjs +2 -2
- package/components/dialogs/default/fesm2022/index.mjs +76 -72
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +20 -14
- package/components/dialogs/design-dialog/dialog.component.d.ts +2 -2
- package/components/dialogs/design-dialog/esm2022/design-dialog.module.mjs +2 -2
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +21 -15
- package/components/dialogs/design-dialog/fesm2022/index.mjs +22 -16
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +20 -14
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +21 -15
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.module.mjs +2 -2
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +22 -16
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -2
- package/components/dialogs/login-dialog/bundles/index.umd.js +4 -4
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +4 -4
- package/components/dialogs/login-dialog/esm2022/login-dialog.module.mjs +2 -2
- package/components/dialogs/login-dialog/fesm2022/index.mjs +4 -4
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +16 -10
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +17 -11
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.module.mjs +2 -2
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +18 -12
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +2 -2
- package/components/input/calendar/bundles/index.umd.js +46 -38
- package/components/input/calendar/calendar.component.d.ts +2 -2
- package/components/input/calendar/esm2022/calendar.component.mjs +44 -35
- package/components/input/calendar/esm2022/calendar.module.mjs +2 -2
- package/components/input/calendar/fesm2022/index.mjs +45 -36
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/bundles/index.umd.js +69 -61
- package/components/input/chips/chips.component.d.ts +3 -3
- package/components/input/chips/esm2022/chips.component.mjs +67 -58
- package/components/input/chips/esm2022/chips.module.mjs +2 -2
- package/components/input/chips/fesm2022/index.mjs +67 -58
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/bundles/index.umd.js +24 -11
- package/components/input/color-picker/color-picker.component.d.ts +2 -2
- package/components/input/color-picker/esm2022/color-picker.component.mjs +25 -12
- package/components/input/color-picker/esm2022/color-picker.module.mjs +2 -2
- package/components/input/color-picker/fesm2022/index.mjs +25 -12
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/bundles/index.umd.js +18 -11
- package/components/input/currency/currency.component.d.ts +2 -2
- package/components/input/currency/esm2022/currency.component.mjs +19 -12
- package/components/input/currency/esm2022/currency.module.mjs +2 -2
- package/components/input/currency/fesm2022/index.mjs +19 -12
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/default/base-form.component.d.ts +3 -3
- package/components/input/default/bundles/index.umd.js +600 -482
- package/components/input/default/button/button.component.d.ts +2 -2
- package/components/input/default/button-group/button-group.directive.d.ts +2 -2
- package/components/input/default/checkbox/checkbox.component.d.ts +3 -2
- package/components/input/default/checkboxset/checkboxset.component.d.ts +2 -2
- package/components/input/default/composite/composite.directive.d.ts +2 -2
- package/components/input/default/dataset-aware-form.component.d.ts +4 -4
- package/components/input/default/esm2022/base-form-custom.component.mjs +3 -3
- package/components/input/default/esm2022/base-form.component.mjs +17 -11
- package/components/input/default/esm2022/button/button.component.mjs +32 -28
- package/components/input/default/esm2022/button-group/button-group.directive.mjs +12 -7
- package/components/input/default/esm2022/caption-position.directive.mjs +6 -6
- package/components/input/default/esm2022/checkbox/checkbox.component.mjs +24 -15
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +107 -103
- package/components/input/default/esm2022/composite/composite.directive.mjs +12 -7
- package/components/input/default/esm2022/dataset-aware-form.component.mjs +32 -26
- package/components/input/default/esm2022/input.module.mjs +2 -2
- package/components/input/default/esm2022/number/number.component.mjs +17 -10
- package/components/input/default/esm2022/radioset/radioset.component.mjs +105 -102
- package/components/input/default/esm2022/select/select.component.mjs +69 -68
- package/components/input/default/esm2022/switch/switch.component.mjs +38 -31
- package/components/input/default/esm2022/text/base/base-input.mjs +16 -10
- package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +21 -11
- package/components/input/default/esm2022/text/color/input-color.component.mjs +21 -11
- package/components/input/default/esm2022/text/email/input-email.component.mjs +20 -11
- package/components/input/default/esm2022/text/locale/number-locale.mjs +35 -24
- package/components/input/default/esm2022/text/number/input-number.component.mjs +21 -12
- package/components/input/default/esm2022/text/text/input-text.component.mjs +20 -11
- package/components/input/default/esm2022/textarea/textarea.component.mjs +21 -12
- package/components/input/default/fesm2022/index.mjs +603 -483
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/default/number/number.component.d.ts +2 -2
- package/components/input/default/radioset/radioset.component.d.ts +2 -2
- package/components/input/default/select/select.component.d.ts +3 -4
- package/components/input/default/switch/switch.component.d.ts +2 -2
- package/components/input/default/text/base/base-input.d.ts +2 -2
- package/components/input/default/text/calendar/input-calendar.component.d.ts +2 -2
- package/components/input/default/text/color/input-color.component.d.ts +2 -2
- package/components/input/default/text/email/input-email.component.d.ts +2 -2
- package/components/input/default/text/locale/number-locale.d.ts +1 -1
- package/components/input/default/text/number/input-number.component.d.ts +2 -2
- package/components/input/default/text/text/input-text.component.d.ts +2 -2
- package/components/input/default/textarea/textarea.component.d.ts +2 -2
- package/components/input/epoch/base-date-time.component.d.ts +2 -2
- package/components/input/epoch/bundles/index.umd.js +221 -162
- package/components/input/epoch/date/date.component.d.ts +3 -2
- package/components/input/epoch/date-time/date-time.component.d.ts +2 -2
- package/components/input/epoch/esm2022/base-date-time.component.mjs +45 -36
- package/components/input/epoch/esm2022/date/date.component.mjs +48 -23
- package/components/input/epoch/esm2022/date/date.props.mjs +2 -2
- package/components/input/epoch/esm2022/date/imaskUtil.mjs +8 -2
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +42 -41
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +47 -36
- package/components/input/epoch/esm2022/epoch.module.mjs +2 -2
- package/components/input/epoch/esm2022/picker/picker.component.mjs +7 -5
- package/components/input/epoch/esm2022/time/time.component.mjs +33 -23
- package/components/input/epoch/fesm2022/index.mjs +219 -159
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/time/time.component.d.ts +2 -2
- package/components/input/file-upload/bundles/index.umd.js +133 -135
- package/components/input/file-upload/esm2022/file-upload.component.mjs +131 -132
- package/components/input/file-upload/esm2022/file-upload.module.mjs +2 -2
- package/components/input/file-upload/fesm2022/index.mjs +132 -133
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/file-upload.component.d.ts +2 -2
- package/components/input/rating/bundles/index.umd.js +57 -50
- package/components/input/rating/esm2022/rating.component.mjs +55 -47
- package/components/input/rating/esm2022/rating.module.mjs +2 -2
- package/components/input/rating/fesm2022/index.mjs +55 -47
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/rating.component.d.ts +2 -2
- package/components/input/slider/bundles/index.umd.js +21 -12
- package/components/input/slider/esm2022/slider.component.mjs +22 -13
- package/components/input/slider/esm2022/slider.module.mjs +2 -2
- package/components/input/slider/fesm2022/index.mjs +22 -13
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/slider.component.d.ts +2 -2
- package/components/navigation/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/components/navigation/breadcrumb/bundles/index.umd.js +33 -28
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +34 -29
- package/components/navigation/breadcrumb/esm2022/breadcrumb.module.mjs +2 -2
- package/components/navigation/breadcrumb/fesm2022/index.mjs +35 -30
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/bundles/index.umd.js +154 -137
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +13 -7
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +5 -4
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +27 -26
- package/components/navigation/menu/esm2022/menu.component.mjs +44 -40
- package/components/navigation/menu/esm2022/menu.module.mjs +2 -2
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +12 -7
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +60 -56
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +3 -3
- package/components/navigation/menu/fesm2022/index.mjs +153 -135
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-adapator.component.d.ts +1 -1
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +12 -1
- package/components/navigation/menu/menu.component.d.ts +2 -2
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -2
- package/components/navigation/menu/nav/nav.component.d.ts +2 -2
- package/components/navigation/navbar/bundles/index.umd.js +29 -22
- package/components/navigation/navbar/esm2022/navbar.component.mjs +30 -23
- package/components/navigation/navbar/esm2022/navbar.module.mjs +2 -2
- package/components/navigation/navbar/fesm2022/index.mjs +31 -24
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/navbar.component.d.ts +2 -2
- package/components/navigation/popover/bundles/index.umd.js +18 -11
- package/components/navigation/popover/esm2022/popover.component.mjs +19 -12
- package/components/navigation/popover/esm2022/popover.module.mjs +2 -2
- package/components/navigation/popover/fesm2022/index.mjs +20 -13
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +2 -2
- package/components/page/default/bundles/index.umd.js +63 -31
- package/components/page/default/content/content.component.d.ts +2 -2
- package/components/page/default/esm2022/content/content.component.mjs +13 -7
- package/components/page/default/esm2022/layout.directive.mjs +12 -7
- package/components/page/default/esm2022/page-content/page-content.component.mjs +13 -7
- package/components/page/default/esm2022/page.directive.mjs +12 -7
- package/components/page/default/esm2022/page.module.mjs +2 -2
- package/components/page/default/esm2022/router-outlet.directive.mjs +12 -7
- package/components/page/default/esm2022/spa-page.directive.mjs +12 -7
- package/components/page/default/fesm2022/index.mjs +65 -33
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/layout.directive.d.ts +2 -2
- package/components/page/default/page-content/page-content.component.d.ts +2 -2
- package/components/page/default/page.directive.d.ts +2 -2
- package/components/page/default/router-outlet.directive.d.ts +2 -2
- package/components/page/default/spa-page.directive.d.ts +2 -2
- package/components/page/footer/bundles/index.umd.js +11 -6
- package/components/page/footer/esm2022/footer.directive.mjs +12 -7
- package/components/page/footer/esm2022/footer.module.mjs +2 -2
- package/components/page/footer/fesm2022/index.mjs +13 -8
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/footer.directive.d.ts +2 -2
- package/components/page/header/bundles/index.umd.js +12 -6
- package/components/page/header/esm2022/header.component.mjs +13 -7
- package/components/page/header/esm2022/header.module.mjs +2 -2
- package/components/page/header/fesm2022/index.mjs +14 -8
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/header.component.d.ts +2 -2
- package/components/page/left-panel/bundles/index.umd.js +12 -7
- package/components/page/left-panel/esm2022/left-panel.animator.mjs +1 -1
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +13 -8
- package/components/page/left-panel/esm2022/left-panel.module.mjs +2 -2
- package/components/page/left-panel/fesm2022/index.mjs +14 -9
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/left-panel.directive.d.ts +2 -2
- package/components/page/right-panel/bundles/index.umd.js +11 -6
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +12 -7
- package/components/page/right-panel/esm2022/right-panel.module.mjs +2 -2
- package/components/page/right-panel/fesm2022/index.mjs +13 -8
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/right-panel.directive.d.ts +2 -2
- package/components/page/top-nav/bundles/index.umd.js +11 -6
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +12 -7
- package/components/page/top-nav/esm2022/top-nav.module.mjs +2 -2
- package/components/page/top-nav/fesm2022/index.mjs +13 -8
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/top-nav.directive.d.ts +2 -2
- package/components/prefab/bundles/index.umd.js +28 -18
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +14 -8
- package/components/prefab/esm2022/prefab.directive.mjs +15 -9
- package/components/prefab/esm2022/prefab.module.mjs +2 -2
- package/components/prefab/fesm2022/index.mjs +26 -15
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/prefab-container/prefab-container.directive.d.ts +2 -2
- package/components/prefab/prefab.directive.d.ts +2 -2
- package/core/bundles/index.umd.js +135 -146
- package/core/esm2022/core.module.mjs +2 -2
- package/core/esm2022/public_api.mjs +2 -2
- package/core/esm2022/services/constant.service.mjs +2 -2
- package/core/esm2022/services/field-type.service.mjs +5 -4
- package/core/esm2022/services/field-widget.service.mjs +5 -4
- package/core/esm2022/services/pagination.service.mjs +8 -7
- package/core/esm2022/services/script-loader.service.mjs +3 -3
- package/core/esm2022/services/state-persistence.service.mjs +18 -17
- package/core/esm2022/services/user-custom-pipe-manager.service.mjs +2 -2
- package/core/esm2022/services/utils.service.mjs +5 -4
- package/core/esm2022/services/viewport.service.mjs +5 -4
- package/core/esm2022/utils/build-utils.mjs +5 -4
- package/core/esm2022/utils/dom.mjs +1 -1
- package/core/esm2022/utils/event-notifier.mjs +1 -1
- package/core/esm2022/utils/expression-parser.mjs +6 -5
- package/core/esm2022/utils/id-generator.mjs +1 -1
- package/core/esm2022/utils/lru-cache.mjs +3 -2
- package/core/esm2022/utils/utils.mjs +79 -82
- package/core/esm2022/utils/watcher.mjs +9 -7
- package/core/esm2022/utils/wm-project-properties.mjs +1 -1
- package/core/fesm2022/index.mjs +134 -140
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -1
- package/core/services/pagination.service.d.ts +1 -1
- package/core/utils/utils.d.ts +5 -9
- package/http/bundles/index.umd.js +10 -10
- package/http/esm2022/http-service.module.mjs +2 -2
- package/http/esm2022/http.service.mjs +7 -6
- package/http/esm2022/wm-http-request.mjs +1 -1
- package/http/esm2022/wm-http-response.mjs +1 -1
- package/http/fesm2022/index.mjs +7 -6
- package/http/fesm2022/index.mjs.map +1 -1
- package/locales/angular/global/af-na.js +4 -4
- package/locales/angular/global/af.js +4 -4
- package/locales/angular/global/agq.js +4 -4
- package/locales/angular/global/ak.js +4 -4
- package/locales/angular/global/am.js +4 -4
- package/locales/angular/global/ar-ae.js +4 -4
- package/locales/angular/global/ar-bh.js +4 -4
- package/locales/angular/global/ar-dj.js +4 -4
- package/locales/angular/global/ar-dz.js +4 -4
- package/locales/angular/global/ar-eg.js +4 -4
- package/locales/angular/global/ar-eh.js +4 -4
- package/locales/angular/global/ar-er.js +4 -4
- package/locales/angular/global/ar-il.js +4 -4
- package/locales/angular/global/ar-iq.js +4 -4
- package/locales/angular/global/ar-jo.js +4 -4
- package/locales/angular/global/ar-km.js +4 -4
- package/locales/angular/global/ar-kw.js +4 -4
- package/locales/angular/global/ar-lb.js +4 -4
- package/locales/angular/global/ar-ly.js +4 -4
- package/locales/angular/global/ar-ma.js +4 -4
- package/locales/angular/global/ar-mr.js +4 -4
- package/locales/angular/global/ar-om.js +4 -4
- package/locales/angular/global/ar-ps.js +4 -4
- package/locales/angular/global/ar-qa.js +4 -4
- package/locales/angular/global/ar-sa.js +4 -4
- package/locales/angular/global/ar-sd.js +4 -4
- package/locales/angular/global/ar-so.js +4 -4
- package/locales/angular/global/ar-ss.js +4 -4
- package/locales/angular/global/ar-sy.js +4 -4
- package/locales/angular/global/ar-td.js +4 -4
- package/locales/angular/global/ar-tn.js +4 -4
- package/locales/angular/global/ar-ye.js +4 -4
- package/locales/angular/global/ar.js +4 -4
- package/locales/angular/global/as.js +4 -4
- package/locales/angular/global/asa.js +4 -4
- package/locales/angular/global/ast.js +4 -4
- package/locales/angular/global/az-cyrl.js +4 -4
- package/locales/angular/global/az-latn.js +4 -4
- package/locales/angular/global/az.js +4 -4
- package/locales/angular/global/bas.js +4 -4
- package/locales/angular/global/be-tarask.js +4 -4
- package/locales/angular/global/be.js +4 -4
- package/locales/angular/global/bem.js +4 -4
- package/locales/angular/global/bez.js +4 -4
- package/locales/angular/global/bg.js +4 -4
- package/locales/angular/global/bm.js +4 -4
- package/locales/angular/global/bn-in.js +4 -4
- package/locales/angular/global/bn.js +4 -4
- package/locales/angular/global/bo-in.js +4 -4
- package/locales/angular/global/bo.js +4 -4
- package/locales/angular/global/br.js +4 -4
- package/locales/angular/global/brx.js +4 -4
- package/locales/angular/global/bs-cyrl.js +4 -4
- package/locales/angular/global/bs-latn.js +4 -4
- package/locales/angular/global/bs.js +4 -4
- package/locales/angular/global/ca-ad.js +4 -4
- package/locales/angular/global/ca-es-valencia.js +4 -4
- package/locales/angular/global/ca-fr.js +4 -4
- package/locales/angular/global/ca-it.js +4 -4
- package/locales/angular/global/ca.js +4 -4
- package/locales/angular/global/ccp-in.js +4 -4
- package/locales/angular/global/ccp.js +4 -4
- package/locales/angular/global/ce.js +4 -4
- package/locales/angular/global/ceb.js +4 -4
- package/locales/angular/global/cgg.js +4 -4
- package/locales/angular/global/chr.js +4 -4
- package/locales/angular/global/ckb-ir.js +4 -4
- package/locales/angular/global/ckb.js +4 -4
- package/locales/angular/global/cs.js +4 -4
- package/locales/angular/global/cy.js +4 -4
- package/locales/angular/global/da-gl.js +4 -4
- package/locales/angular/global/da.js +4 -4
- package/locales/angular/global/dav.js +4 -4
- package/locales/angular/global/de-at.js +4 -4
- package/locales/angular/global/de-be.js +4 -4
- package/locales/angular/global/de-ch.js +4 -4
- package/locales/angular/global/de-it.js +4 -4
- package/locales/angular/global/de-li.js +4 -4
- package/locales/angular/global/de-lu.js +4 -4
- package/locales/angular/global/de.js +4 -4
- package/locales/angular/global/dje.js +4 -4
- package/locales/angular/global/doi.js +4 -4
- package/locales/angular/global/dsb.js +4 -4
- package/locales/angular/global/dua.js +4 -4
- package/locales/angular/global/dyo.js +4 -4
- package/locales/angular/global/dz.js +4 -4
- package/locales/angular/global/ebu.js +4 -4
- package/locales/angular/global/ee-tg.js +4 -4
- package/locales/angular/global/ee.js +4 -4
- package/locales/angular/global/el-cy.js +4 -4
- package/locales/angular/global/el.js +4 -4
- package/locales/angular/global/en-001.js +4 -4
- package/locales/angular/global/en-150.js +4 -4
- package/locales/angular/global/en-ae.js +4 -4
- package/locales/angular/global/en-ag.js +4 -4
- package/locales/angular/global/en-ai.js +4 -4
- package/locales/angular/global/en-as.js +4 -4
- package/locales/angular/global/en-at.js +4 -4
- package/locales/angular/global/en-au.js +4 -4
- package/locales/angular/global/en-bb.js +4 -4
- package/locales/angular/global/en-be.js +4 -4
- package/locales/angular/global/en-bi.js +4 -4
- package/locales/angular/global/en-bm.js +4 -4
- package/locales/angular/global/en-bs.js +4 -4
- package/locales/angular/global/en-bw.js +4 -4
- package/locales/angular/global/en-bz.js +4 -4
- package/locales/angular/global/en-ca.js +4 -4
- package/locales/angular/global/en-cc.js +4 -4
- package/locales/angular/global/en-ch.js +4 -4
- package/locales/angular/global/en-ck.js +4 -4
- package/locales/angular/global/en-cm.js +4 -4
- package/locales/angular/global/en-cx.js +4 -4
- package/locales/angular/global/en-cy.js +4 -4
- package/locales/angular/global/en-de.js +4 -4
- package/locales/angular/global/en-dg.js +4 -4
- package/locales/angular/global/en-dk.js +4 -4
- package/locales/angular/global/en-dm.js +4 -4
- package/locales/angular/global/en-er.js +4 -4
- package/locales/angular/global/en-fi.js +4 -4
- package/locales/angular/global/en-fj.js +4 -4
- package/locales/angular/global/en-fk.js +4 -4
- package/locales/angular/global/en-fm.js +4 -4
- package/locales/angular/global/en-gb.js +4 -4
- package/locales/angular/global/en-gd.js +4 -4
- package/locales/angular/global/en-gg.js +4 -4
- package/locales/angular/global/en-gh.js +4 -4
- package/locales/angular/global/en-gi.js +4 -4
- package/locales/angular/global/en-gm.js +4 -4
- package/locales/angular/global/en-gu.js +4 -4
- package/locales/angular/global/en-gy.js +4 -4
- package/locales/angular/global/en-hk.js +4 -4
- package/locales/angular/global/en-ie.js +4 -4
- package/locales/angular/global/en-il.js +4 -4
- package/locales/angular/global/en-im.js +4 -4
- package/locales/angular/global/en-in.js +4 -4
- package/locales/angular/global/en-io.js +4 -4
- package/locales/angular/global/en-je.js +4 -4
- package/locales/angular/global/en-jm.js +4 -4
- package/locales/angular/global/en-ke.js +4 -4
- package/locales/angular/global/en-ki.js +4 -4
- package/locales/angular/global/en-kn.js +4 -4
- package/locales/angular/global/en-ky.js +4 -4
- package/locales/angular/global/en-lc.js +4 -4
- package/locales/angular/global/en-lr.js +4 -4
- package/locales/angular/global/en-ls.js +4 -4
- package/locales/angular/global/en-mg.js +4 -4
- package/locales/angular/global/en-mh.js +4 -4
- package/locales/angular/global/en-mo.js +4 -4
- package/locales/angular/global/en-mp.js +4 -4
- package/locales/angular/global/en-ms.js +4 -4
- package/locales/angular/global/en-mt.js +4 -4
- package/locales/angular/global/en-mu.js +4 -4
- package/locales/angular/global/en-mv.js +4 -4
- package/locales/angular/global/en-mw.js +4 -4
- package/locales/angular/global/en-my.js +4 -4
- package/locales/angular/global/en-na.js +4 -4
- package/locales/angular/global/en-nf.js +4 -4
- package/locales/angular/global/en-ng.js +4 -4
- package/locales/angular/global/en-nl.js +4 -4
- package/locales/angular/global/en-nr.js +4 -4
- package/locales/angular/global/en-nu.js +4 -4
- package/locales/angular/global/en-nz.js +4 -4
- package/locales/angular/global/en-pg.js +4 -4
- package/locales/angular/global/en-ph.js +4 -4
- package/locales/angular/global/en-pk.js +4 -4
- package/locales/angular/global/en-pn.js +4 -4
- package/locales/angular/global/en-pr.js +4 -4
- package/locales/angular/global/en-pw.js +4 -4
- package/locales/angular/global/en-rw.js +4 -4
- package/locales/angular/global/en-sb.js +4 -4
- package/locales/angular/global/en-sc.js +4 -4
- package/locales/angular/global/en-sd.js +4 -4
- package/locales/angular/global/en-se.js +4 -4
- package/locales/angular/global/en-sg.js +4 -4
- package/locales/angular/global/en-sh.js +4 -4
- package/locales/angular/global/en-si.js +4 -4
- package/locales/angular/global/en-sl.js +4 -4
- package/locales/angular/global/en-ss.js +4 -4
- package/locales/angular/global/en-sx.js +4 -4
- package/locales/angular/global/en-sz.js +4 -4
- package/locales/angular/global/en-tc.js +4 -4
- package/locales/angular/global/en-tk.js +4 -4
- package/locales/angular/global/en-to.js +4 -4
- package/locales/angular/global/en-tt.js +4 -4
- package/locales/angular/global/en-tv.js +4 -4
- package/locales/angular/global/en-tz.js +4 -4
- package/locales/angular/global/en-ug.js +4 -4
- package/locales/angular/global/en-um.js +4 -4
- package/locales/angular/global/en-vc.js +4 -4
- package/locales/angular/global/en-vg.js +4 -4
- package/locales/angular/global/en-vi.js +4 -4
- package/locales/angular/global/en-vu.js +4 -4
- package/locales/angular/global/en-ws.js +4 -4
- package/locales/angular/global/en-za.js +4 -4
- package/locales/angular/global/en-zm.js +4 -4
- package/locales/angular/global/en-zw.js +4 -4
- package/locales/angular/global/en.js +4 -4
- package/locales/angular/global/eo.js +4 -4
- package/locales/angular/global/es-419.js +4 -4
- package/locales/angular/global/es-ar.js +4 -4
- package/locales/angular/global/es-bo.js +4 -4
- package/locales/angular/global/es-br.js +4 -4
- package/locales/angular/global/es-bz.js +4 -4
- package/locales/angular/global/es-cl.js +4 -4
- package/locales/angular/global/es-co.js +4 -4
- package/locales/angular/global/es-cr.js +4 -4
- package/locales/angular/global/es-cu.js +4 -4
- package/locales/angular/global/es-do.js +4 -4
- package/locales/angular/global/es-ea.js +4 -4
- package/locales/angular/global/es-ec.js +4 -4
- package/locales/angular/global/es-gq.js +4 -4
- package/locales/angular/global/es-gt.js +4 -4
- package/locales/angular/global/es-hn.js +4 -4
- package/locales/angular/global/es-ic.js +4 -4
- package/locales/angular/global/es-mx.js +4 -4
- package/locales/angular/global/es-ni.js +4 -4
- package/locales/angular/global/es-pa.js +4 -4
- package/locales/angular/global/es-pe.js +4 -4
- package/locales/angular/global/es-ph.js +4 -4
- package/locales/angular/global/es-pr.js +4 -4
- package/locales/angular/global/es-py.js +4 -4
- package/locales/angular/global/es-sv.js +4 -4
- package/locales/angular/global/es-us.js +4 -4
- package/locales/angular/global/es-uy.js +4 -4
- package/locales/angular/global/es-ve.js +4 -4
- package/locales/angular/global/es.js +4 -4
- package/locales/angular/global/et.js +4 -4
- package/locales/angular/global/eu.js +4 -4
- package/locales/angular/global/ewo.js +4 -4
- package/locales/angular/global/fa-af.js +4 -4
- package/locales/angular/global/fa.js +4 -4
- package/locales/angular/global/ff-adlm-bf.js +4 -4
- package/locales/angular/global/ff-adlm-cm.js +4 -4
- package/locales/angular/global/ff-adlm-gh.js +4 -4
- package/locales/angular/global/ff-adlm-gm.js +4 -4
- package/locales/angular/global/ff-adlm-gw.js +4 -4
- package/locales/angular/global/ff-adlm-lr.js +4 -4
- package/locales/angular/global/ff-adlm-mr.js +4 -4
- package/locales/angular/global/ff-adlm-ne.js +4 -4
- package/locales/angular/global/ff-adlm-ng.js +4 -4
- package/locales/angular/global/ff-adlm-sl.js +4 -4
- package/locales/angular/global/ff-adlm-sn.js +4 -4
- package/locales/angular/global/ff-adlm.js +4 -4
- package/locales/angular/global/ff-cm.js +58 -44
- package/locales/angular/global/ff-gn.js +58 -44
- package/locales/angular/global/ff-latn-bf.js +4 -4
- package/locales/angular/global/ff-latn-cm.js +4 -4
- package/locales/angular/global/ff-latn-gh.js +4 -4
- package/locales/angular/global/ff-latn-gm.js +4 -4
- package/locales/angular/global/ff-latn-gn.js +4 -4
- package/locales/angular/global/ff-latn-gw.js +4 -4
- package/locales/angular/global/ff-latn-lr.js +4 -4
- package/locales/angular/global/ff-latn-mr.js +4 -4
- package/locales/angular/global/ff-latn-ne.js +4 -4
- package/locales/angular/global/ff-latn-ng.js +4 -4
- package/locales/angular/global/ff-latn-sl.js +4 -4
- package/locales/angular/global/ff-latn.js +4 -4
- package/locales/angular/global/ff-mr.js +58 -44
- package/locales/angular/global/ff.js +4 -4
- package/locales/angular/global/fi.js +4 -4
- package/locales/angular/global/fil.js +4 -4
- package/locales/angular/global/fo-dk.js +4 -4
- package/locales/angular/global/fo.js +4 -4
- package/locales/angular/global/fr-be.js +4 -4
- package/locales/angular/global/fr-bf.js +4 -4
- package/locales/angular/global/fr-bi.js +4 -4
- package/locales/angular/global/fr-bj.js +4 -4
- package/locales/angular/global/fr-bl.js +4 -4
- package/locales/angular/global/fr-ca.js +4 -4
- package/locales/angular/global/fr-cd.js +4 -4
- package/locales/angular/global/fr-cf.js +4 -4
- package/locales/angular/global/fr-cg.js +4 -4
- package/locales/angular/global/fr-ch.js +4 -4
- package/locales/angular/global/fr-ci.js +4 -4
- package/locales/angular/global/fr-cm.js +4 -4
- package/locales/angular/global/fr-dj.js +4 -4
- package/locales/angular/global/fr-dz.js +4 -4
- package/locales/angular/global/fr-ga.js +4 -4
- package/locales/angular/global/fr-gf.js +4 -4
- package/locales/angular/global/fr-gn.js +4 -4
- package/locales/angular/global/fr-gp.js +4 -4
- package/locales/angular/global/fr-gq.js +4 -4
- package/locales/angular/global/fr-ht.js +4 -4
- package/locales/angular/global/fr-km.js +4 -4
- package/locales/angular/global/fr-lu.js +4 -4
- package/locales/angular/global/fr-ma.js +4 -4
- package/locales/angular/global/fr-mc.js +4 -4
- package/locales/angular/global/fr-mf.js +4 -4
- package/locales/angular/global/fr-mg.js +4 -4
- package/locales/angular/global/fr-ml.js +4 -4
- package/locales/angular/global/fr-mq.js +4 -4
- package/locales/angular/global/fr-mr.js +4 -4
- package/locales/angular/global/fr-mu.js +4 -4
- package/locales/angular/global/fr-nc.js +4 -4
- package/locales/angular/global/fr-ne.js +4 -4
- package/locales/angular/global/fr-pf.js +4 -4
- package/locales/angular/global/fr-pm.js +4 -4
- package/locales/angular/global/fr-re.js +4 -4
- package/locales/angular/global/fr-rw.js +4 -4
- package/locales/angular/global/fr-sc.js +4 -4
- package/locales/angular/global/fr-sn.js +4 -4
- package/locales/angular/global/fr-sy.js +4 -4
- package/locales/angular/global/fr-td.js +4 -4
- package/locales/angular/global/fr-tg.js +4 -4
- package/locales/angular/global/fr-tn.js +4 -4
- package/locales/angular/global/fr-vu.js +4 -4
- package/locales/angular/global/fr-wf.js +4 -4
- package/locales/angular/global/fr-yt.js +4 -4
- package/locales/angular/global/fr.js +4 -4
- package/locales/angular/global/fur.js +4 -4
- package/locales/angular/global/fy.js +4 -4
- package/locales/angular/global/ga-gb.js +4 -4
- package/locales/angular/global/ga.js +4 -4
- package/locales/angular/global/gd.js +4 -4
- package/locales/angular/global/gl.js +4 -4
- package/locales/angular/global/gsw-fr.js +4 -4
- package/locales/angular/global/gsw-li.js +4 -4
- package/locales/angular/global/gsw.js +4 -4
- package/locales/angular/global/gu.js +4 -4
- package/locales/angular/global/guz.js +4 -4
- package/locales/angular/global/gv.js +4 -4
- package/locales/angular/global/ha-gh.js +4 -4
- package/locales/angular/global/ha-ne.js +4 -4
- package/locales/angular/global/ha.js +4 -4
- package/locales/angular/global/haw.js +4 -4
- package/locales/angular/global/he.js +4 -4
- package/locales/angular/global/hi-latn.js +4 -4
- package/locales/angular/global/hi.js +4 -4
- package/locales/angular/global/hr-ba.js +4 -4
- package/locales/angular/global/hr.js +4 -4
- package/locales/angular/global/hsb.js +4 -4
- package/locales/angular/global/hu.js +4 -4
- package/locales/angular/global/hy.js +4 -4
- package/locales/angular/global/ia.js +4 -4
- package/locales/angular/global/id.js +4 -4
- package/locales/angular/global/ig.js +4 -4
- package/locales/angular/global/ii.js +4 -4
- package/locales/angular/global/is.js +4 -4
- package/locales/angular/global/it-ch.js +4 -4
- package/locales/angular/global/it-sm.js +4 -4
- package/locales/angular/global/it-va.js +4 -4
- package/locales/angular/global/it.js +4 -4
- package/locales/angular/global/ja.js +4 -4
- package/locales/angular/global/jgo.js +4 -4
- package/locales/angular/global/jmc.js +4 -4
- package/locales/angular/global/jv.js +4 -4
- package/locales/angular/global/ka.js +4 -4
- package/locales/angular/global/kab.js +4 -4
- package/locales/angular/global/kam.js +4 -4
- package/locales/angular/global/kde.js +4 -4
- package/locales/angular/global/kea.js +4 -4
- package/locales/angular/global/kgp.js +4 -4
- package/locales/angular/global/khq.js +4 -4
- package/locales/angular/global/ki.js +4 -4
- package/locales/angular/global/kk.js +4 -4
- package/locales/angular/global/kkj.js +4 -4
- package/locales/angular/global/kl.js +4 -4
- package/locales/angular/global/kln.js +4 -4
- package/locales/angular/global/km.js +4 -4
- package/locales/angular/global/kn.js +4 -4
- package/locales/angular/global/ko-kp.js +4 -4
- package/locales/angular/global/ko.js +4 -4
- package/locales/angular/global/kok.js +4 -4
- package/locales/angular/global/ks-arab.js +4 -4
- package/locales/angular/global/ks-deva.js +4 -4
- package/locales/angular/global/ks.js +4 -4
- package/locales/angular/global/ksb.js +4 -4
- package/locales/angular/global/ksf.js +4 -4
- package/locales/angular/global/ksh.js +4 -4
- package/locales/angular/global/ku.js +4 -4
- package/locales/angular/global/kw.js +4 -4
- package/locales/angular/global/ky.js +4 -4
- package/locales/angular/global/lag.js +4 -4
- package/locales/angular/global/lb.js +4 -4
- package/locales/angular/global/lg.js +4 -4
- package/locales/angular/global/lkt.js +4 -4
- package/locales/angular/global/ln-ao.js +4 -4
- package/locales/angular/global/ln-cf.js +4 -4
- package/locales/angular/global/ln-cg.js +4 -4
- package/locales/angular/global/ln.js +4 -4
- package/locales/angular/global/lo.js +4 -4
- package/locales/angular/global/lrc-iq.js +4 -4
- package/locales/angular/global/lrc.js +4 -4
- package/locales/angular/global/lt.js +4 -4
- package/locales/angular/global/lu.js +4 -4
- package/locales/angular/global/luo.js +4 -4
- package/locales/angular/global/luy.js +4 -4
- package/locales/angular/global/lv.js +4 -4
- package/locales/angular/global/mai.js +4 -4
- package/locales/angular/global/mas-tz.js +4 -4
- package/locales/angular/global/mas.js +4 -4
- package/locales/angular/global/mer.js +4 -4
- package/locales/angular/global/mfe.js +4 -4
- package/locales/angular/global/mg.js +4 -4
- package/locales/angular/global/mgh.js +4 -4
- package/locales/angular/global/mgo.js +4 -4
- package/locales/angular/global/mi.js +4 -4
- package/locales/angular/global/mk.js +4 -4
- package/locales/angular/global/ml.js +4 -4
- package/locales/angular/global/mn.js +4 -4
- package/locales/angular/global/mni-beng.js +4 -4
- package/locales/angular/global/mni.js +4 -4
- package/locales/angular/global/mr.js +4 -4
- package/locales/angular/global/ms-bn.js +4 -4
- package/locales/angular/global/ms-id.js +4 -4
- package/locales/angular/global/ms-sg.js +4 -4
- package/locales/angular/global/ms.js +4 -4
- package/locales/angular/global/mt.js +4 -4
- package/locales/angular/global/mua.js +4 -4
- package/locales/angular/global/my.js +4 -4
- package/locales/angular/global/mzn.js +4 -4
- package/locales/angular/global/naq.js +4 -4
- package/locales/angular/global/nb-sj.js +4 -4
- package/locales/angular/global/nb.js +4 -4
- package/locales/angular/global/nd.js +4 -4
- package/locales/angular/global/nds-nl.js +4 -4
- package/locales/angular/global/nds.js +4 -4
- package/locales/angular/global/ne-in.js +4 -4
- package/locales/angular/global/ne.js +4 -4
- package/locales/angular/global/nl-aw.js +4 -4
- package/locales/angular/global/nl-be.js +4 -4
- package/locales/angular/global/nl-bq.js +4 -4
- package/locales/angular/global/nl-cw.js +4 -4
- package/locales/angular/global/nl-sr.js +4 -4
- package/locales/angular/global/nl-sx.js +4 -4
- package/locales/angular/global/nl.js +4 -4
- package/locales/angular/global/nmg.js +4 -4
- package/locales/angular/global/nn.js +4 -4
- package/locales/angular/global/nnh.js +4 -4
- package/locales/angular/global/no.js +4 -4
- package/locales/angular/global/nus.js +4 -4
- package/locales/angular/global/nyn.js +4 -4
- package/locales/angular/global/om-ke.js +4 -4
- package/locales/angular/global/om.js +4 -4
- package/locales/angular/global/or.js +4 -4
- package/locales/angular/global/os-ru.js +4 -4
- package/locales/angular/global/os.js +4 -4
- package/locales/angular/global/pa-arab.js +4 -4
- package/locales/angular/global/pa-guru.js +4 -4
- package/locales/angular/global/pa.js +4 -4
- package/locales/angular/global/pcm.js +4 -4
- package/locales/angular/global/pl.js +4 -4
- package/locales/angular/global/ps-pk.js +4 -4
- package/locales/angular/global/ps.js +4 -4
- package/locales/angular/global/pt-ao.js +4 -4
- package/locales/angular/global/pt-ch.js +4 -4
- package/locales/angular/global/pt-cv.js +4 -4
- package/locales/angular/global/pt-gq.js +4 -4
- package/locales/angular/global/pt-gw.js +4 -4
- package/locales/angular/global/pt-lu.js +4 -4
- package/locales/angular/global/pt-mo.js +4 -4
- package/locales/angular/global/pt-mz.js +4 -4
- package/locales/angular/global/pt-pt.js +4 -4
- package/locales/angular/global/pt-st.js +4 -4
- package/locales/angular/global/pt-tl.js +4 -4
- package/locales/angular/global/pt.js +4 -4
- package/locales/angular/global/qu-bo.js +4 -4
- package/locales/angular/global/qu-ec.js +4 -4
- package/locales/angular/global/qu.js +4 -4
- package/locales/angular/global/rm.js +4 -4
- package/locales/angular/global/rn.js +4 -4
- package/locales/angular/global/ro-md.js +4 -4
- package/locales/angular/global/ro.js +4 -4
- package/locales/angular/global/rof.js +4 -4
- package/locales/angular/global/ru-by.js +4 -4
- package/locales/angular/global/ru-kg.js +4 -4
- package/locales/angular/global/ru-kz.js +4 -4
- package/locales/angular/global/ru-md.js +4 -4
- package/locales/angular/global/ru-ua.js +4 -4
- package/locales/angular/global/ru.js +4 -4
- package/locales/angular/global/rw.js +4 -4
- package/locales/angular/global/rwk.js +4 -4
- package/locales/angular/global/sa.js +4 -4
- package/locales/angular/global/sah.js +4 -4
- package/locales/angular/global/saq.js +4 -4
- package/locales/angular/global/sat-olck.js +4 -4
- package/locales/angular/global/sat.js +4 -4
- package/locales/angular/global/sbp.js +4 -4
- package/locales/angular/global/sc.js +4 -4
- package/locales/angular/global/sd-arab.js +4 -4
- package/locales/angular/global/sd-deva.js +4 -4
- package/locales/angular/global/sd.js +4 -4
- package/locales/angular/global/se-fi.js +4 -4
- package/locales/angular/global/se-se.js +4 -4
- package/locales/angular/global/se.js +4 -4
- package/locales/angular/global/seh.js +4 -4
- package/locales/angular/global/ses.js +4 -4
- package/locales/angular/global/sg.js +4 -4
- package/locales/angular/global/shi-latn.js +4 -4
- package/locales/angular/global/shi-tfng.js +4 -4
- package/locales/angular/global/shi.js +4 -4
- package/locales/angular/global/si.js +4 -4
- package/locales/angular/global/sk.js +4 -4
- package/locales/angular/global/sl.js +4 -4
- package/locales/angular/global/smn.js +4 -4
- package/locales/angular/global/sn.js +4 -4
- package/locales/angular/global/so-dj.js +4 -4
- package/locales/angular/global/so-et.js +4 -4
- package/locales/angular/global/so-ke.js +4 -4
- package/locales/angular/global/so.js +4 -4
- package/locales/angular/global/sq-mk.js +4 -4
- package/locales/angular/global/sq-xk.js +4 -4
- package/locales/angular/global/sq.js +4 -4
- package/locales/angular/global/sr-cyrl-ba.js +4 -4
- package/locales/angular/global/sr-cyrl-me.js +4 -4
- package/locales/angular/global/sr-cyrl-xk.js +4 -4
- package/locales/angular/global/sr-cyrl.js +4 -4
- package/locales/angular/global/sr-latn-ba.js +4 -4
- package/locales/angular/global/sr-latn-me.js +4 -4
- package/locales/angular/global/sr-latn-xk.js +4 -4
- package/locales/angular/global/sr-latn.js +4 -4
- package/locales/angular/global/sr.js +4 -4
- package/locales/angular/global/su-latn.js +4 -4
- package/locales/angular/global/su.js +4 -4
- package/locales/angular/global/sv-ax.js +4 -4
- package/locales/angular/global/sv-fi.js +4 -4
- package/locales/angular/global/sv.js +4 -4
- package/locales/angular/global/sw-cd.js +4 -4
- package/locales/angular/global/sw-ke.js +4 -4
- package/locales/angular/global/sw-ug.js +4 -4
- package/locales/angular/global/sw.js +4 -4
- package/locales/angular/global/ta-lk.js +4 -4
- package/locales/angular/global/ta-my.js +4 -4
- package/locales/angular/global/ta-sg.js +4 -4
- package/locales/angular/global/ta.js +4 -4
- package/locales/angular/global/te.js +4 -4
- package/locales/angular/global/teo-ke.js +4 -4
- package/locales/angular/global/teo.js +4 -4
- package/locales/angular/global/tg.js +4 -4
- package/locales/angular/global/th.js +4 -4
- package/locales/angular/global/ti-er.js +4 -4
- package/locales/angular/global/ti.js +4 -4
- package/locales/angular/global/tk.js +4 -4
- package/locales/angular/global/to.js +4 -4
- package/locales/angular/global/tr-cy.js +4 -4
- package/locales/angular/global/tr.js +4 -4
- package/locales/angular/global/tt.js +4 -4
- package/locales/angular/global/twq.js +4 -4
- package/locales/angular/global/tzm.js +4 -4
- package/locales/angular/global/ug.js +4 -4
- package/locales/angular/global/uk.js +4 -4
- package/locales/angular/global/und.js +4 -4
- package/locales/angular/global/ur-in.js +4 -4
- package/locales/angular/global/ur.js +4 -4
- package/locales/angular/global/uz-arab.js +4 -4
- package/locales/angular/global/uz-cyrl.js +4 -4
- package/locales/angular/global/uz-latn.js +4 -4
- package/locales/angular/global/uz.js +4 -4
- package/locales/angular/global/vai-latn.js +4 -4
- package/locales/angular/global/vai-vaii.js +4 -4
- package/locales/angular/global/vai.js +4 -4
- package/locales/angular/global/vi.js +4 -4
- package/locales/angular/global/vun.js +4 -4
- package/locales/angular/global/wae.js +4 -4
- package/locales/angular/global/wo.js +4 -4
- package/locales/angular/global/xh.js +4 -4
- package/locales/angular/global/xog.js +4 -4
- package/locales/angular/global/yav.js +4 -4
- package/locales/angular/global/yi.js +4 -4
- package/locales/angular/global/yo-bj.js +4 -4
- package/locales/angular/global/yo.js +4 -4
- package/locales/angular/global/yrl-co.js +4 -4
- package/locales/angular/global/yrl-ve.js +4 -4
- package/locales/angular/global/yrl.js +4 -4
- package/locales/angular/global/yue-hans.js +4 -4
- package/locales/angular/global/yue-hant.js +4 -4
- package/locales/angular/global/yue.js +4 -4
- package/locales/angular/global/zgh.js +4 -4
- package/locales/angular/global/zh-hans-hk.js +4 -4
- package/locales/angular/global/zh-hans-mo.js +4 -4
- package/locales/angular/global/zh-hans-sg.js +4 -4
- package/locales/angular/global/zh-hans.js +4 -4
- package/locales/angular/global/zh-hant-hk.js +4 -4
- package/locales/angular/global/zh-hant-mo.js +4 -4
- package/locales/angular/global/zh-hant.js +4 -4
- package/locales/angular/global/zh.js +4 -4
- package/locales/angular/global/zu.js +4 -4
- package/mobile/components/basic/default/bundles/index.umd.js +148 -143
- package/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +8 -7
- package/mobile/components/basic/default/esm2022/app-update/app-update.component.mjs +7 -6
- package/mobile/components/basic/default/esm2022/basic.module.mjs +2 -2
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +47 -43
- package/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +7 -5
- package/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +6 -5
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +49 -47
- package/mobile/components/basic/default/esm2022/process-manager/process-management.service.mjs +2 -2
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +31 -32
- package/mobile/components/basic/default/fesm2022/index.mjs +146 -140
- package/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +2 -2
- package/mobile/components/basic/search/bundles/index.umd.js +3 -3
- package/mobile/components/basic/search/esm2022/search.directive.mjs +3 -3
- package/mobile/components/basic/search/esm2022/search.module.mjs +2 -2
- package/mobile/components/basic/search/fesm2022/index.mjs +3 -3
- package/mobile/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +42 -30
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +14 -8
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +28 -21
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.module.mjs +2 -2
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +41 -28
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
- package/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +2 -2
- package/mobile/components/containers/segmented-control/segmented-control.component.d.ts +2 -2
- package/mobile/components/data/media-list/bundles/index.umd.js +53 -48
- package/mobile/components/data/media-list/esm2022/media-list-item/media-list-item.directive.mjs +2 -2
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +48 -42
- package/mobile/components/data/media-list/esm2022/media-list.module.mjs +2 -2
- package/mobile/components/data/media-list/fesm2022/index.mjs +50 -44
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
- package/mobile/components/data/media-list/media-list.component.d.ts +2 -2
- package/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +2 -2
- package/mobile/components/device/barcode-scanner/bundles/index.umd.js +14 -8
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.component.mjs +15 -9
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.module.mjs +2 -2
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs +16 -10
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
- package/mobile/components/device/camera/bundles/index.umd.js +15 -9
- package/mobile/components/device/camera/camera.component.d.ts +2 -2
- package/mobile/components/device/camera/esm2022/camera.component.mjs +16 -10
- package/mobile/components/device/camera/esm2022/camera.module.mjs +2 -2
- package/mobile/components/device/camera/fesm2022/index.mjs +17 -11
- package/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
- package/mobile/components/input/file-upload/bundles/index.umd.js +3 -3
- package/mobile/components/input/file-upload/esm2022/file-upload.directive.mjs +3 -3
- package/mobile/components/input/file-upload/esm2022/file-upload.module.mjs +2 -2
- package/mobile/components/input/file-upload/fesm2022/index.mjs +3 -3
- package/mobile/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/default/bundles/index.umd.js +11 -10
- package/mobile/components/page/default/esm2022/page-content-loader/page-content-loader.component.mjs +4 -3
- package/mobile/components/page/default/esm2022/page.directive.mjs +5 -4
- package/mobile/components/page/default/esm2022/page.module.mjs +2 -2
- package/mobile/components/page/default/fesm2022/index.mjs +8 -6
- package/mobile/components/page/default/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/left-panel/bundles/index.umd.js +3 -3
- package/mobile/components/page/left-panel/esm2022/left-panel.directive.mjs +3 -3
- package/mobile/components/page/left-panel/esm2022/left-panel.module.mjs +2 -2
- package/mobile/components/page/left-panel/fesm2022/index.mjs +3 -3
- package/mobile/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +40 -35
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +41 -36
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.module.mjs +2 -2
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +41 -36
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +2 -2
- package/mobile/components/page/tab-bar/bundles/index.umd.js +52 -46
- package/mobile/components/page/tab-bar/esm2022/tab-bar.module.mjs +2 -2
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +50 -43
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +51 -44
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
- package/mobile/components/page/tab-bar/tabbar.component.d.ts +2 -2
- package/mobile/core/bundles/index.umd.js +43 -43
- package/mobile/core/esm2022/core.module.mjs +3 -3
- package/mobile/core/esm2022/native.xhr.mjs +1 -1
- package/mobile/core/esm2022/services/device-file-cache.service.mjs +3 -3
- package/mobile/core/esm2022/services/device-file-download.service.mjs +7 -6
- package/mobile/core/esm2022/services/device-file-opener.service.mjs +5 -4
- package/mobile/core/esm2022/services/device-file-upload.service.mjs +6 -5
- package/mobile/core/esm2022/services/device-file.service.mjs +8 -7
- package/mobile/core/esm2022/services/device.service.mjs +5 -4
- package/mobile/core/esm2022/services/ext-app-message.service.mjs +7 -6
- package/mobile/core/esm2022/services/network.service.mjs +11 -10
- package/mobile/core/fesm2022/index.mjs +40 -39
- package/mobile/core/fesm2022/index.mjs.map +1 -1
- package/mobile/core/services/ext-app-message.service.d.ts +1 -1
- package/mobile/core/services/network.service.d.ts +7 -1
- package/mobile/offline/bundles/index.umd.js +176 -159
- package/mobile/offline/esm2022/models/local-db-store.mjs +23 -21
- package/mobile/offline/esm2022/offline.module.mjs +3 -3
- package/mobile/offline/esm2022/services/change-log.service.mjs +9 -8
- package/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +39 -37
- package/mobile/offline/esm2022/services/local-db-management.service.mjs +56 -47
- package/mobile/offline/esm2022/services/local-db.service.mjs +7 -6
- package/mobile/offline/esm2022/services/local-key-value.service.mjs +2 -2
- package/mobile/offline/esm2022/services/push.service.mjs +3 -3
- package/mobile/offline/esm2022/services/workers/error-blocker.mjs +4 -3
- package/mobile/offline/esm2022/services/workers/file-handler.mjs +18 -13
- package/mobile/offline/esm2022/services/workers/id-resolver.mjs +3 -3
- package/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +9 -5
- package/mobile/offline/esm2022/utils/file-upload.utils.mjs +1 -1
- package/mobile/offline/esm2022/utils/live-variable.utils.mjs +12 -11
- package/mobile/offline/esm2022/utils/query-executor.utils.mjs +5 -4
- package/mobile/offline/esm2022/utils/security.utils.mjs +3 -2
- package/mobile/offline/esm2022/utils/utils.mjs +1 -1
- package/mobile/offline/fesm2022/index.mjs +171 -153
- package/mobile/offline/fesm2022/index.mjs.map +1 -1
- package/mobile/placeholder/runtime/bundles/index.umd.js +3 -2
- package/mobile/placeholder/runtime/esm2022/components/app-ext.component.mjs +3 -2
- package/mobile/placeholder/runtime/esm2022/mobile-runtime.module.mjs +2 -2
- package/mobile/placeholder/runtime/fesm2022/index.mjs +3 -2
- package/mobile/placeholder/runtime/fesm2022/index.mjs.map +1 -1
- package/mobile/placeholder/runtime-dynamic/bundles/index.umd.js +1 -1
- package/mobile/placeholder/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +2 -2
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs +1 -1
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs.map +1 -1
- package/mobile/runtime/bundles/index.umd.js +21 -17
- package/mobile/runtime/esm2022/components/app-ext.component.mjs +4 -3
- package/mobile/runtime/esm2022/mobile-runtime.module.mjs +5 -4
- package/mobile/runtime/esm2022/services/cookie.service.mjs +7 -3
- package/mobile/runtime/esm2022/services/http-interceptor.service.mjs +6 -5
- package/mobile/runtime/esm2022/services/webprocess.service.mjs +3 -3
- package/mobile/runtime/fesm2022/index.mjs +18 -13
- package/mobile/runtime/fesm2022/index.mjs.map +1 -1
- package/mobile/runtime-dynamic/bundles/index.umd.js +5 -5
- package/mobile/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +2 -2
- package/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +5 -5
- package/mobile/runtime-dynamic/fesm2022/index.mjs +5 -5
- package/mobile/runtime-dynamic/fesm2022/index.mjs.map +1 -1
- package/mobile/variables/bundles/index.umd.js +28 -21
- package/mobile/variables/esm2022/services/camera-service.mjs +5 -5
- package/mobile/variables/esm2022/services/contacts-service.mjs +1 -1
- package/mobile/variables/esm2022/services/datasync-service.mjs +10 -9
- package/mobile/variables/esm2022/services/device-service/device-service.mjs +1 -1
- package/mobile/variables/esm2022/services/device-service/location-service.mjs +1 -1
- package/mobile/variables/esm2022/services/file-service.mjs +11 -3
- package/mobile/variables/esm2022/services/scan-service.mjs +1 -1
- package/mobile/variables/esm2022/variables.module.mjs +3 -3
- package/mobile/variables/fesm2022/index.mjs +24 -16
- package/mobile/variables/fesm2022/index.mjs.map +1 -1
- package/oAuth/bundles/index.umd.js +15 -15
- package/oAuth/esm2022/oAuth.module.mjs +2 -2
- package/oAuth/esm2022/oAuth.service.mjs +6 -5
- package/oAuth/esm2022/oAuth.utils.mjs +8 -7
- package/oAuth/fesm2022/index.mjs +12 -11
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +243 -237
- package/runtime/base/esm2022/components/app-component/app.component.mjs +27 -27
- package/runtime/base/esm2022/components/app-spinner.component.mjs +9 -8
- package/runtime/base/esm2022/components/base-layout.component.mjs +5 -4
- package/runtime/base/esm2022/components/base-page.component.mjs +16 -15
- package/runtime/base/esm2022/components/base-partial.component.mjs +15 -14
- package/runtime/base/esm2022/components/base-prefab.component.mjs +17 -16
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +16 -15
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +17 -15
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +4 -3
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +4 -3
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +13 -12
- package/runtime/base/esm2022/directives/prefab.directive.mjs +4 -4
- package/runtime/base/esm2022/guards/auth.guard.mjs +3 -3
- package/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +3 -3
- package/runtime/base/esm2022/guards/page-not-found.guard.mjs +3 -3
- package/runtime/base/esm2022/guards/role.guard.mjs +5 -4
- package/runtime/base/esm2022/overrides/wm_dom_renderer.mjs +4 -4
- package/runtime/base/esm2022/overrides/wm_shared_styles_host.mjs +5 -5
- package/runtime/base/esm2022/resolves/app-extension.resolve.mjs +3 -3
- package/runtime/base/esm2022/resolves/app-js.resolve.mjs +3 -3
- package/runtime/base/esm2022/resolves/app-variables.resolve.mjs +3 -3
- package/runtime/base/esm2022/resolves/i18n.resolve.mjs +3 -3
- package/runtime/base/esm2022/resolves/metadata.resolve.mjs +3 -3
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +3 -3
- package/runtime/base/esm2022/runtime-base.module.mjs +3 -3
- package/runtime/base/esm2022/services/app-defaults.service.mjs +3 -3
- package/runtime/base/esm2022/services/app.manager.service.mjs +19 -16
- package/runtime/base/esm2022/services/app.service.mjs +9 -8
- package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +5 -4
- package/runtime/base/esm2022/services/http-interceptor.services.mjs +6 -5
- package/runtime/base/esm2022/services/i18n.service.mjs +15 -13
- package/runtime/base/esm2022/services/navigation.service.mjs +10 -9
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +3 -3
- package/runtime/base/esm2022/services/pipe.service.mjs +3 -3
- package/runtime/base/esm2022/services/prefab-manager.service.mjs +5 -4
- package/runtime/base/esm2022/services/spinner.service.mjs +9 -8
- package/runtime/base/esm2022/services/toaster.service.mjs +8 -7
- package/runtime/base/esm2022/util/fragment-monitor.mjs +3 -3
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +7 -8
- package/runtime/base/fesm2022/index.mjs +253 -247
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/overrides/wm_dom_renderer.d.ts +2 -2
- package/runtime/base/services/i18n.service.d.ts +1 -1
- package/runtime/dynamic/bundles/index.umd.js +22 -21
- package/runtime/dynamic/esm2022/app/app.module.mjs +1 -1
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +4 -3
- package/runtime/dynamic/esm2022/app/services/app-extension.service.mjs +3 -3
- package/runtime/dynamic/esm2022/app/services/app-js-provider.service.mjs +3 -3
- package/runtime/dynamic/esm2022/app/services/app-resource-manager.service.mjs +3 -3
- package/runtime/dynamic/esm2022/app/services/app-variables-provider.service.mjs +3 -3
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +6 -5
- package/runtime/dynamic/esm2022/app/services/prefab-config-provider.service.mjs +3 -3
- package/runtime/dynamic/esm2022/main.mjs +3 -2
- package/runtime/dynamic/fesm2022/index.mjs +21 -19
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/scripts/datatable/datatable.js +2 -1
- package/scripts/jquery-ui/ui/widgets/droppable.js +7 -7
- package/scripts/jquery-ui/ui/widgets/resizable.js +13 -10
- package/scripts/jquery-ui/ui/widgets/sortable.js +7 -7
- package/security/bundles/index.umd.js +17 -17
- package/security/esm2022/security.module.mjs +2 -2
- package/security/esm2022/security.service.mjs +14 -13
- package/security/fesm2022/index.mjs +14 -13
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/security.service.d.ts +1 -1
- package/swipey/esm2022/swipe.animation.mjs +1 -1
- package/swipey/fesm2022/index.mjs.map +1 -1
- package/transpiler/bundles/index.umd.js +10 -9
- package/transpiler/esm2022/build.mjs +8 -6
- package/transpiler/fesm2022/index.mjs +7 -5
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +160 -150
- package/variables/esm2022/factory/variable.factory.mjs +1 -1
- package/variables/esm2022/manager/action/login-action.manager.mjs +15 -14
- package/variables/esm2022/manager/action/logout-action.manager.mjs +1 -1
- package/variables/esm2022/manager/action/notification-action.manager.mjs +9 -8
- package/variables/esm2022/manager/variable/base-variable.manager.mjs +3 -2
- package/variables/esm2022/manager/variable/device-variable-manager.mjs +1 -1
- package/variables/esm2022/manager/variable/device-variable-service.mjs +1 -1
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +11 -10
- package/variables/esm2022/model/action/notification-action.mjs +1 -1
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +3 -3
- package/variables/esm2022/service/variables.service.mjs +9 -8
- package/variables/esm2022/util/action/navigation-action.utils.mjs +4 -4
- package/variables/esm2022/util/variable/pagination.utils.mjs +30 -23
- package/variables/esm2022/util/variable/service-variable.utils.mjs +29 -28
- package/variables/esm2022/util/variable/variables.utils.mjs +75 -70
- package/variables/esm2022/variables.module.mjs +2 -2
- package/variables/fesm2022/index.mjs +174 -163
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/util/variable/service-variable.utils.d.ts +1 -1
- package/build-task/package.json +0 -28
- package/components/advanced/carousel/package.json +0 -23
- package/components/advanced/login/package.json +0 -23
- package/components/advanced/marquee/package.json +0 -23
- package/components/base/package.json +0 -28
- package/components/basic/default/package.json +0 -23
- package/components/basic/progress/package.json +0 -23
- package/components/basic/rich-text-editor/package.json +0 -23
- package/components/basic/search/package.json +0 -23
- package/components/basic/tree/package.json +0 -23
- package/components/chart/package.json +0 -23
- package/components/containers/accordion/package.json +0 -23
- package/components/containers/layout-grid/package.json +0 -23
- package/components/containers/linear-layout/package.json +0 -23
- package/components/containers/panel/package.json +0 -23
- package/components/containers/tabs/package.json +0 -23
- package/components/containers/tile/package.json +0 -23
- package/components/containers/wizard/package.json +0 -23
- package/components/data/card/package.json +0 -23
- package/components/data/form/package.json +0 -23
- package/components/data/list/package.json +0 -23
- package/components/data/live-table/package.json +0 -23
- package/components/data/pagination/package.json +0 -23
- package/components/data/table/package.json +0 -23
- package/components/dialogs/alert-dialog/package.json +0 -23
- package/components/dialogs/confirm-dialog/package.json +0 -23
- package/components/dialogs/default/package.json +0 -23
- package/components/dialogs/design-dialog/package.json +0 -23
- package/components/dialogs/iframe-dialog/package.json +0 -23
- package/components/dialogs/login-dialog/package.json +0 -23
- package/components/dialogs/partial-dialog/package.json +0 -23
- package/components/input/calendar/package.json +0 -23
- package/components/input/chips/package.json +0 -23
- package/components/input/color-picker/package.json +0 -23
- package/components/input/currency/package.json +0 -23
- package/components/input/default/package.json +0 -23
- package/components/input/epoch/package.json +0 -23
- package/components/input/file-upload/package.json +0 -23
- package/components/input/rating/package.json +0 -23
- package/components/input/slider/package.json +0 -23
- package/components/navigation/breadcrumb/package.json +0 -23
- package/components/navigation/menu/package.json +0 -23
- package/components/navigation/navbar/package.json +0 -23
- package/components/navigation/popover/package.json +0 -23
- package/components/page/default/package.json +0 -23
- package/components/page/footer/package.json +0 -23
- package/components/page/header/package.json +0 -23
- package/components/page/left-panel/package.json +0 -23
- package/components/page/right-panel/package.json +0 -23
- package/components/page/top-nav/package.json +0 -23
- package/components/prefab/package.json +0 -23
- package/core/package.json +0 -29
- package/http/package.json +0 -28
- package/mobile/components/basic/default/package.json +0 -23
- package/mobile/components/basic/search/package.json +0 -23
- package/mobile/components/containers/segmented-control/package.json +0 -23
- package/mobile/components/data/media-list/package.json +0 -23
- package/mobile/components/device/barcode-scanner/package.json +0 -23
- package/mobile/components/device/camera/package.json +0 -23
- package/mobile/components/input/file-upload/package.json +0 -23
- package/mobile/components/page/default/package.json +0 -23
- package/mobile/components/page/left-panel/package.json +0 -23
- package/mobile/components/page/mobile-navbar/package.json +0 -23
- package/mobile/components/page/tab-bar/package.json +0 -23
- package/mobile/core/package.json +0 -28
- package/mobile/offline/package.json +0 -28
- package/mobile/placeholder/runtime/package.json +0 -27
- package/mobile/placeholder/runtime-dynamic/package.json +0 -23
- package/mobile/runtime/package.json +0 -28
- package/mobile/runtime-dynamic/package.json +0 -23
- package/mobile/variables/package.json +0 -28
- package/oAuth/package.json +0 -28
- package/runtime/base/package.json +0 -28
- package/runtime/dynamic/package.json +0 -28
- package/security/package.json +0 -28
- package/swipey/package.json +0 -28
- package/transpiler/package.json +0 -29
- package/variables/package.json +0 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ViewContainerRef, Component, Optional, Attribute, ViewChild, ContentChildren, ContentChild, HostListener, Directive, Self,
|
|
2
|
+
import { ViewContainerRef, Component, Optional, Attribute, Inject, ViewChild, ContentChildren, ContentChild, HostListener, Directive, Self, SkipSelf, NgModule } from '@angular/core';
|
|
3
3
|
import * as i7 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/forms';
|
|
@@ -8,7 +8,7 @@ import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
|
8
8
|
import * as i6 from 'ngx-bootstrap/dropdown';
|
|
9
9
|
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
|
|
10
10
|
import * as i4 from '@wm/components/base';
|
|
11
|
-
import {
|
|
11
|
+
import { PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, StylableComponent, unsupportedStatePersistenceTypes, getConditionalClasses, DEBOUNCE_TIMES, styler, extractDataSourceName, EDIT_MODE, getRowOperationsColumn, transformData, prepareFieldDefs, getOrderByExpr, NAVIGATION_TYPE, provideAs, provideAsWidgetRef, refreshDataSource, getMatchModeTypesMap, getMatchModeMsgs, isDataSetWidget, BaseComponent, setHeaderConfigForTable, BaseFieldValidations, applyFilterOnField, getDistinctFieldProperties, getDistinctValues, getWatchIdentifier, fetchRelatedFieldData, getDistinctValuesForField, getEditModeWidget, getDataTableFilterWidget, getDefaultValue, Context, WmComponentsModule } from '@wm/components/base';
|
|
12
12
|
import * as i5 from '@wm/components/basic';
|
|
13
13
|
import { BasicModule } from '@wm/components/basic';
|
|
14
14
|
import * as i8 from '@wm/components/input';
|
|
@@ -23,6 +23,7 @@ import * as i2 from '@wm/core';
|
|
|
23
23
|
import { isDefined, getClonedObject, closePopover, $unwatch, $watch, $appDigest, triggerFn, DataSource, isDataSourceEqual, isMobile, $invokeWatchers, getValidJSON, extendProto, getDatasourceFromExpr, $parseEvent, extractCurrentItemExpr, isNumberType, DataType, adjustContainerRightEdges, FormWidgetType, isDateTimeType, getDisplayDateTimeFormat } from '@wm/core';
|
|
24
24
|
import { Subject } from 'rxjs';
|
|
25
25
|
import { debounceTime } from 'rxjs/operators';
|
|
26
|
+
import { isEmpty, floor, debounce, get, set, some, findIndex, isEqual, pullAllWith, remove, extend, isNaN, isUndefined, forEach, isArray, isObject, indexOf, keys, find, toNumber, includes, split, startsWith, omitBy, values, parseInt as parseInt$1, map, last, toString, isNull, range, filter, endsWith, toLower, head, orderBy, sum, mean, round, min, max, cloneDeep } from 'lodash-es';
|
|
26
27
|
|
|
27
28
|
const registerProps$5 = () => {
|
|
28
29
|
register('wm-table', new Map([
|
|
@@ -51,7 +52,7 @@ const registerProps$5 = () => {
|
|
|
51
52
|
['gridfirstrowselect', PROP_BOOLEAN],
|
|
52
53
|
['iconclass', PROP_STRING],
|
|
53
54
|
['insertmessage', { value: 'Record added successfully', ...PROP_STRING }],
|
|
54
|
-
['isdynamictable', PROP_BOOLEAN],
|
|
55
|
+
['isdynamictable', PROP_BOOLEAN], // internal property to determine dynamic table
|
|
55
56
|
['isrowexpansionenabled', PROP_BOOLEAN],
|
|
56
57
|
['loadingdatamsg', { value: 'Loading...', ...PROP_STRING }],
|
|
57
58
|
['loadingicon', { value: 'fa fa-circle-o-notch fa-spin', ...PROP_STRING }],
|
|
@@ -100,39 +101,40 @@ const _c13 = ["rowDetailView"];
|
|
|
100
101
|
const _c14 = ["rowExpansionActionView"];
|
|
101
102
|
const _c15 = ["dynamicTable"];
|
|
102
103
|
const _c16 = ["wmTable", ""];
|
|
104
|
+
const _c17 = a0 => ({ btn: a0 });
|
|
105
|
+
const _c18 = (a0, a1) => ({ "btn-sm": a0, "disabled-new": a1 });
|
|
103
106
|
function TableComponent_div_0_i_3_Template(rf, ctx) { if (rf & 1) {
|
|
104
107
|
i0.ɵɵelement(0, "i");
|
|
105
108
|
} if (rf & 2) {
|
|
106
|
-
const
|
|
107
|
-
i0.ɵɵclassMapInterpolate1("app-icon panel-icon ",
|
|
109
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
110
|
+
i0.ɵɵclassMapInterpolate1("app-icon panel-icon ", ctx_r0.iconclass, "");
|
|
108
111
|
} }
|
|
109
|
-
const _c17 = function (a0) { return { btn: a0 }; };
|
|
110
112
|
function TableComponent_div_0_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
111
113
|
i0.ɵɵelementContainer(0, 29);
|
|
112
114
|
} if (rf & 2) {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
|
|
115
|
+
const btn_r2 = ctx.$implicit;
|
|
116
|
+
const index_r3 = ctx.index;
|
|
117
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
118
|
+
const buttonRef_r4 = i0.ɵɵreference(8);
|
|
119
|
+
const anchorRef_r5 = i0.ɵɵreference(10);
|
|
120
|
+
i0.ɵɵproperty("ngTemplateOutlet", btn_r2.widgetType === "button" ? buttonRef_r4 : anchorRef_r5)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, btn_r2))("ngTemplateOutletInjector", ctx_r0.createCustomInjector("actions_header_" + index_r3, i0.ɵɵpureFunction1(5, _c17, btn_r2)));
|
|
118
121
|
} }
|
|
119
122
|
function TableComponent_div_0_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
120
123
|
i0.ɵɵelement(0, "div", 30);
|
|
121
124
|
} if (rf & 2) {
|
|
122
|
-
const
|
|
123
|
-
i0.ɵɵattributeInterpolate1("name", "",
|
|
125
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
126
|
+
i0.ɵɵattributeInterpolate1("name", "", ctx_r0.name, "-export");
|
|
124
127
|
} }
|
|
125
128
|
function TableComponent_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
126
129
|
i0.ɵɵelementStart(0, "div", 26);
|
|
127
|
-
i0.ɵɵtemplate(1, TableComponent_div_0_div_7_ng_container_1_Template, 1,
|
|
128
|
-
i0.ɵɵtemplate(2, TableComponent_div_0_div_7_div_2_Template, 1, 1, "div", 28);
|
|
130
|
+
i0.ɵɵtemplate(1, TableComponent_div_0_div_7_ng_container_1_Template, 1, 7, "ng-container", 27)(2, TableComponent_div_0_div_7_div_2_Template, 1, 2, "div", 28);
|
|
129
131
|
i0.ɵɵelementEnd();
|
|
130
132
|
} if (rf & 2) {
|
|
131
|
-
const
|
|
132
|
-
i0.ɵɵadvance(
|
|
133
|
-
i0.ɵɵproperty("ngForOf",
|
|
134
|
-
i0.ɵɵadvance(
|
|
135
|
-
i0.ɵɵproperty("ngIf",
|
|
133
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
134
|
+
i0.ɵɵadvance();
|
|
135
|
+
i0.ɵɵproperty("ngForOf", ctx_r0._actions.header);
|
|
136
|
+
i0.ɵɵadvance();
|
|
137
|
+
i0.ɵɵproperty("ngIf", ctx_r0.exportOptions.length);
|
|
136
138
|
} }
|
|
137
139
|
function TableComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
138
140
|
i0.ɵɵelementStart(0, "div", 19)(1, "h3", 20)(2, "div", 21);
|
|
@@ -149,50 +151,50 @@ function TableComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
149
151
|
i0.ɵɵproperty("ngIf", ctx_r0.iconclass);
|
|
150
152
|
i0.ɵɵadvance(2);
|
|
151
153
|
i0.ɵɵproperty("innerHTML", ctx_r0.title, i0.ɵɵsanitizeHtml);
|
|
152
|
-
i0.ɵɵadvance(
|
|
154
|
+
i0.ɵɵadvance();
|
|
153
155
|
i0.ɵɵproperty("innerHTML", ctx_r0.subheading, i0.ɵɵsanitizeHtml);
|
|
154
|
-
i0.ɵɵadvance(
|
|
156
|
+
i0.ɵɵadvance();
|
|
155
157
|
i0.ɵɵproperty("ngIf", ctx_r0.exportOptions.length || ctx_r0._actions.header.length);
|
|
156
158
|
} }
|
|
157
159
|
function TableComponent_div_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
158
160
|
i0.ɵɵelementContainer(0, 29);
|
|
159
161
|
} if (rf & 2) {
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
|
|
162
|
+
const btn_r6 = ctx.$implicit;
|
|
163
|
+
const index_r7 = ctx.index;
|
|
164
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
165
|
+
const buttonRef_r4 = i0.ɵɵreference(8);
|
|
166
|
+
const anchorRef_r5 = i0.ɵɵreference(10);
|
|
167
|
+
i0.ɵɵproperty("ngTemplateOutlet", btn_r6.widgetType === "button" ? buttonRef_r4 : anchorRef_r5)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, btn_r6))("ngTemplateOutletInjector", ctx_r0.createCustomInjector("actions_footer_" + index_r7, i0.ɵɵpureFunction1(5, _c17, btn_r6)));
|
|
165
168
|
} }
|
|
166
169
|
function TableComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
167
170
|
i0.ɵɵelementStart(0, "div", 31);
|
|
168
|
-
i0.ɵɵtemplate(1, TableComponent_div_6_ng_container_1_Template, 1,
|
|
171
|
+
i0.ɵɵtemplate(1, TableComponent_div_6_ng_container_1_Template, 1, 7, "ng-container", 27);
|
|
169
172
|
i0.ɵɵelementEnd();
|
|
170
173
|
} if (rf & 2) {
|
|
171
|
-
const
|
|
172
|
-
i0.ɵɵadvance(
|
|
173
|
-
i0.ɵɵproperty("ngForOf",
|
|
174
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
175
|
+
i0.ɵɵadvance();
|
|
176
|
+
i0.ɵɵproperty("ngForOf", ctx_r0._actions.footer);
|
|
174
177
|
} }
|
|
175
|
-
const _c18 = function (a0, a1) { return { "btn-sm": a0, "disabled-new": a1 }; };
|
|
176
178
|
function TableComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
177
|
-
const
|
|
179
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
178
180
|
i0.ɵɵelementStart(0, "button", 32);
|
|
179
|
-
i0.ɵɵlistener("click", function TableComponent_ng_template_7_Template_button_click_0_listener($event) { const
|
|
181
|
+
i0.ɵɵlistener("click", function TableComponent_ng_template_7_Template_button_click_0_listener($event) { const btn_r9 = i0.ɵɵrestoreView(_r8).btn; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.invokeActionEvent($event, btn_r9.action)); });
|
|
180
182
|
i0.ɵɵelementEnd();
|
|
181
183
|
} if (rf & 2) {
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c18,
|
|
185
|
-
i0.ɵɵattribute("aria-label",
|
|
184
|
+
const btn_r9 = ctx.btn;
|
|
185
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
186
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(2, _c18, ctx_r0.spacing === "condensed", btn_r9.key === "addNewRow" && (ctx_r0.isGridEditMode || ctx_r0.isLoading)));
|
|
187
|
+
i0.ɵɵattribute("aria-label", btn_r9.displayName);
|
|
186
188
|
} }
|
|
187
189
|
function TableComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
|
188
|
-
const
|
|
190
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
189
191
|
i0.ɵɵelementStart(0, "a", 33);
|
|
190
|
-
i0.ɵɵlistener("click", function TableComponent_ng_template_9_Template_a_click_0_listener($event) { const
|
|
192
|
+
i0.ɵɵlistener("click", function TableComponent_ng_template_9_Template_a_click_0_listener($event) { const btn_r11 = i0.ɵɵrestoreView(_r10).btn; const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.invokeActionEvent($event, btn_r11.action)); });
|
|
191
193
|
i0.ɵɵelementEnd();
|
|
192
194
|
} if (rf & 2) {
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c18,
|
|
195
|
+
const btn_r11 = ctx.btn;
|
|
196
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
197
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(1, _c18, ctx_r0.spacing === "condensed", btn_r11.key === "addNewRow" && (ctx_r0.isGridEditMode || ctx_r0.isLoading)));
|
|
196
198
|
} }
|
|
197
199
|
const DEFAULT_CLS = 'app-grid app-panel panel';
|
|
198
200
|
const WIDGET_CONFIG$5 = { widgetType: 'wm-table', hostClass: DEFAULT_CLS };
|
|
@@ -227,7 +229,7 @@ class TableComponent extends StylableComponent {
|
|
|
227
229
|
set gridData(newValue) {
|
|
228
230
|
this.isDataLoading = false;
|
|
229
231
|
// Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty
|
|
230
|
-
if (this.variableInflight &&
|
|
232
|
+
if (this.variableInflight && isEmpty(newValue)) {
|
|
231
233
|
return;
|
|
232
234
|
}
|
|
233
235
|
this.variableInflight = false;
|
|
@@ -243,7 +245,7 @@ class TableComponent extends StylableComponent {
|
|
|
243
245
|
[this._gridData, this.currentPage] = this.paginationService.updateFieldsOnPagination(this, newValue);
|
|
244
246
|
// When edit action is performed on previous page, update the _gridData field with the modified row data
|
|
245
247
|
if (this.gridOptions.lastActionPerformed === this.gridOptions.ACTIONS.EDIT) {
|
|
246
|
-
const rowIndex =
|
|
248
|
+
const rowIndex = floor(this.actionRowIndex % this.pagesize);
|
|
247
249
|
this._gridData.splice(this.actionRowIndex, 1, newValue[rowIndex]);
|
|
248
250
|
}
|
|
249
251
|
this.setDataGridOption('isLastPage', !!(this.dataNavigator.isDisableNext));
|
|
@@ -281,7 +283,7 @@ class TableComponent extends StylableComponent {
|
|
|
281
283
|
this.setDataGridOption('colDefs', getClonedObject(this.fieldDefs));
|
|
282
284
|
}
|
|
283
285
|
// If data and colDefs are present, call on before data render event
|
|
284
|
-
if (!this.isdynamictable && !
|
|
286
|
+
if (!this.isdynamictable && !isEmpty(newValue) && gridOptions.colDefs.length) {
|
|
285
287
|
this.invokeEventCallback('beforedatarender', { $data: this._gridData, $columns: this.columns, data: this._gridData, columns: this.columns });
|
|
286
288
|
}
|
|
287
289
|
this.setDataGridOption('data', getClonedObject(this._gridData));
|
|
@@ -294,7 +296,7 @@ class TableComponent extends StylableComponent {
|
|
|
294
296
|
if (this.multiselect) {
|
|
295
297
|
return getClonedObject(this.items);
|
|
296
298
|
}
|
|
297
|
-
if (
|
|
299
|
+
if (isEmpty(this.items)) {
|
|
298
300
|
return {};
|
|
299
301
|
}
|
|
300
302
|
return getClonedObject(this.items[0]);
|
|
@@ -309,8 +311,8 @@ class TableComponent extends StylableComponent {
|
|
|
309
311
|
this.invokeEventCallback('enterkeypress', { $event, $data: this.gridData });
|
|
310
312
|
}
|
|
311
313
|
}
|
|
312
|
-
constructor(inj, fb, app, dynamicComponentProvider, statePersistence, paginationService, viewport, parentList, binddataset, binddatasource, readonlygrid, ngZone, trustAsPipe) {
|
|
313
|
-
super(inj, WIDGET_CONFIG$5);
|
|
314
|
+
constructor(inj, fb, app, dynamicComponentProvider, statePersistence, paginationService, viewport, parentList, binddataset, binddatasource, readonlygrid, ngZone, trustAsPipe, explicitContext) {
|
|
315
|
+
super(inj, WIDGET_CONFIG$5, explicitContext);
|
|
314
316
|
this.inj = inj;
|
|
315
317
|
this.fb = fb;
|
|
316
318
|
this.app = app;
|
|
@@ -360,8 +362,8 @@ class TableComponent extends StylableComponent {
|
|
|
360
362
|
this.fullFieldDefs = [];
|
|
361
363
|
this.variableInflight = true;
|
|
362
364
|
this.applyProps = new Map();
|
|
363
|
-
this.redraw =
|
|
364
|
-
this.debouncedHandleLoading =
|
|
365
|
+
this.redraw = debounce(this._redraw, 150);
|
|
366
|
+
this.debouncedHandleLoading = debounce(this.handleLoading, 350);
|
|
365
367
|
// Filter and Sort Methods
|
|
366
368
|
this.rowFilter = {};
|
|
367
369
|
this._searchSortHandler = noop;
|
|
@@ -426,11 +428,11 @@ class TableComponent extends StylableComponent {
|
|
|
426
428
|
isLastPage: false,
|
|
427
429
|
// get the current page number
|
|
428
430
|
getCurrentPage: () => {
|
|
429
|
-
return
|
|
431
|
+
return get(this.dataNavigator, 'dn.currentPage') || 1;
|
|
430
432
|
},
|
|
431
433
|
// set the page number
|
|
432
434
|
setCurrentPage: (pageNum) => {
|
|
433
|
-
|
|
435
|
+
set(this.dataNavigator, 'dn.currentPage', pageNum || 1);
|
|
434
436
|
},
|
|
435
437
|
getDataSource: () => {
|
|
436
438
|
return this.datasource;
|
|
@@ -502,8 +504,8 @@ class TableComponent extends StylableComponent {
|
|
|
502
504
|
if (this.selectedItems.length && rowData.$index && this.getConfiguredState() !== 'none' && this.dataNavigator && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {
|
|
503
505
|
const obj = { page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1 };
|
|
504
506
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
505
|
-
if (
|
|
506
|
-
if (!
|
|
507
|
+
if (get(widgetState, 'selectedItem') && this.multiselect) {
|
|
508
|
+
if (!some(widgetState.selectedItem, obj)) {
|
|
507
509
|
widgetState.selectedItem.push(obj);
|
|
508
510
|
}
|
|
509
511
|
this.statePersistence.setWidgetState(this, { 'selectedItem': widgetState.selectedItem });
|
|
@@ -527,7 +529,7 @@ class TableComponent extends StylableComponent {
|
|
|
527
529
|
*/
|
|
528
530
|
if (this.multiselect) {
|
|
529
531
|
//Fix for [WMS-25110]: Add row to items list only if the row is selected
|
|
530
|
-
if (
|
|
532
|
+
if (findIndex(this.items, row) === -1 && (rowInfo?._selected === undefined || rowInfo?._selected == true || (this.gridfirstrowselect && rowInfo?.rowId == 0 && !this.showFirstRow))) {
|
|
531
533
|
this.items.push(row);
|
|
532
534
|
if (rowInfo?.rowId == 0) {
|
|
533
535
|
this.showFirstRow = true;
|
|
@@ -547,16 +549,16 @@ class TableComponent extends StylableComponent {
|
|
|
547
549
|
onRowDeselect: (row, e) => {
|
|
548
550
|
if (this.multiselect) {
|
|
549
551
|
this.ngZone.run(() => {
|
|
550
|
-
this.items =
|
|
552
|
+
this.items = pullAllWith(this.items, [row], isEqual);
|
|
551
553
|
this.selectedItems = this.callDataGridMethod('getSelectedRows');
|
|
552
554
|
this.invokeEventCallback('rowdeselect', { $data: row, $event: e, row });
|
|
553
555
|
const rowData = this.addRowIndex(row);
|
|
554
556
|
if (this.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.navigation) < 0) {
|
|
555
557
|
const obj = { page: this.dataNavigator.dn.currentPage, index: rowData.$index - 1 };
|
|
556
558
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
557
|
-
if (
|
|
558
|
-
|
|
559
|
-
return
|
|
559
|
+
if (get(widgetState, 'selectedItem')) {
|
|
560
|
+
remove(widgetState.selectedItem, function (selectedItem) {
|
|
561
|
+
return isEqual(selectedItem, obj);
|
|
560
562
|
});
|
|
561
563
|
this.statePersistence.removeWidgetState(this, 'selectedItem');
|
|
562
564
|
if (widgetState.selectedItem.length > 0) {
|
|
@@ -599,11 +601,16 @@ class TableComponent extends StylableComponent {
|
|
|
599
601
|
},
|
|
600
602
|
onRowDelete: (row, cancelRowDeleteCallback, e, callBack, options) => {
|
|
601
603
|
this.ngZone.run(() => {
|
|
602
|
-
this.deleteRecord(
|
|
604
|
+
this.deleteRecord(extend({}, options, {
|
|
605
|
+
row,
|
|
606
|
+
'cancelRowDeleteCallback': cancelRowDeleteCallback,
|
|
607
|
+
'evt': e,
|
|
608
|
+
'callBack': callBack
|
|
609
|
+
}));
|
|
603
610
|
});
|
|
604
611
|
},
|
|
605
612
|
onRowInsert: (row, e, callBack, options) => {
|
|
606
|
-
this.insertRecord(
|
|
613
|
+
this.insertRecord(extend({}, options, { row, event: e, 'callBack': callBack }));
|
|
607
614
|
},
|
|
608
615
|
beforeRowUpdate: (row, eventName) => {
|
|
609
616
|
if (this._liveTableParent) {
|
|
@@ -612,7 +619,7 @@ class TableComponent extends StylableComponent {
|
|
|
612
619
|
this.prevData = getClonedObject(row);
|
|
613
620
|
},
|
|
614
621
|
afterRowUpdate: (row, e, callBack, options) => {
|
|
615
|
-
this.updateRecord(
|
|
622
|
+
this.updateRecord(extend({}, options, { row, 'prevData': this.prevData, 'event': e, 'callBack': callBack }));
|
|
616
623
|
},
|
|
617
624
|
onBeforeRowUpdate: (row, e, options) => {
|
|
618
625
|
return this.invokeEventCallback('beforerowupdate', { $event: e, $data: row, row, options: options });
|
|
@@ -693,7 +700,7 @@ class TableComponent extends StylableComponent {
|
|
|
693
700
|
const customExprView = this.customExprViewRef.createEmbeddedView(tmpl, context);
|
|
694
701
|
const rootNode = customExprView.rootNodes[0];
|
|
695
702
|
const fieldName = rootNode.getAttribute('data-col-identifier');
|
|
696
|
-
|
|
703
|
+
extend(colDef, this.columns[fieldName]);
|
|
697
704
|
if (!summaryRow) {
|
|
698
705
|
this.customExprCompiledTl[fieldName + index] = rootNode;
|
|
699
706
|
}
|
|
@@ -921,7 +928,7 @@ class TableComponent extends StylableComponent {
|
|
|
921
928
|
if (this.gridOptions.isNavTypeScrollOrOndemand()) {
|
|
922
929
|
this.actionRowIndex = parseInt(val);
|
|
923
930
|
this.setDataGridOption('actionRowIndex', this.actionRowIndex);
|
|
924
|
-
if (!
|
|
931
|
+
if (!isNaN(this.actionRowIndex)) {
|
|
925
932
|
this.actionRowPage = Math.floor(this.actionRowIndex / this.pagesize) + 1;
|
|
926
933
|
this.setDataGridOption('actionRowPage', this.actionRowPage || this.gridOptions.actionRowPage);
|
|
927
934
|
}
|
|
@@ -963,7 +970,7 @@ class TableComponent extends StylableComponent {
|
|
|
963
970
|
clearForm: this.clearForm.bind(this),
|
|
964
971
|
callLoadInlineWidgetData: () => {
|
|
965
972
|
this.fullFieldDefs.forEach(col => {
|
|
966
|
-
if (
|
|
973
|
+
if (isUndefined(col.isDataSetBound)) {
|
|
967
974
|
triggerFn(col.loadInlineWidgetData && col.loadInlineWidgetData.bind(col));
|
|
968
975
|
}
|
|
969
976
|
});
|
|
@@ -1000,12 +1007,12 @@ class TableComponent extends StylableComponent {
|
|
|
1000
1007
|
const listenersToRemove = [
|
|
1001
1008
|
// Updates pagination, filter, sort etc options for service and crud variables
|
|
1002
1009
|
this.app.subscribe('check-state-persistence-options', options => {
|
|
1003
|
-
let dataSourceName =
|
|
1010
|
+
let dataSourceName = get(this.datasource, 'name');
|
|
1004
1011
|
// in Prefabs, this.datasource is not resolved at the time of variable invocation, so additional check is required.
|
|
1005
1012
|
if (!dataSourceName) {
|
|
1006
1013
|
dataSourceName = extractDataSourceName(this.binddatasource);
|
|
1007
1014
|
}
|
|
1008
|
-
if (
|
|
1015
|
+
if (get(options, 'variable.name') !== dataSourceName) {
|
|
1009
1016
|
return;
|
|
1010
1017
|
}
|
|
1011
1018
|
if (this._pageLoad && this.getConfiguredState() !== 'none') {
|
|
@@ -1052,7 +1059,7 @@ class TableComponent extends StylableComponent {
|
|
|
1052
1059
|
ngAfterContentInit() {
|
|
1053
1060
|
super.ngAfterContentInit();
|
|
1054
1061
|
this.headerConfig = this.headerConfig.filter(this.filterEmptyValues.bind(this));
|
|
1055
|
-
|
|
1062
|
+
remove(this.fieldDefs, f => f === undefined);
|
|
1056
1063
|
const runModeInitialProperties = {
|
|
1057
1064
|
showrowindex: 'showRowIndex',
|
|
1058
1065
|
multiselect: 'multiselect',
|
|
@@ -1100,7 +1107,7 @@ class TableComponent extends StylableComponent {
|
|
|
1100
1107
|
this.gridOptions.loadingdatamsg = this.loadingdatamsg;
|
|
1101
1108
|
// When loadondemand property is enabled(deferload="true") and show is true, only the column titles of the datatable are rendered, the data(body of the datatable) is not at all rendered.
|
|
1102
1109
|
// Because the griddata is setting before the datatable dom is rendered but we are sending empty data to the datatable.
|
|
1103
|
-
if (!
|
|
1110
|
+
if (!isEmpty(this.gridData)) {
|
|
1104
1111
|
this.gridOptions.data = getClonedObject(this.gridData);
|
|
1105
1112
|
}
|
|
1106
1113
|
this.gridOptions.messages = {
|
|
@@ -1109,7 +1116,7 @@ class TableComponent extends StylableComponent {
|
|
|
1109
1116
|
this.datagridElement = $(this._tableElement.nativeElement);
|
|
1110
1117
|
this.gridElement = this.$element;
|
|
1111
1118
|
this.$element.css({ 'position': 'relative' });
|
|
1112
|
-
|
|
1119
|
+
forEach(runModeInitialProperties, (value, key) => {
|
|
1113
1120
|
if (isDefined(this[key])) {
|
|
1114
1121
|
this.gridOptions[value] = (this[key] === 'true' || this[key] === true);
|
|
1115
1122
|
}
|
|
@@ -1137,17 +1144,17 @@ class TableComponent extends StylableComponent {
|
|
|
1137
1144
|
return mode && mode.toLowerCase();
|
|
1138
1145
|
}
|
|
1139
1146
|
handleStateParams(widgetState, options) {
|
|
1140
|
-
if (
|
|
1147
|
+
if (get(widgetState, 'selectedItem')) {
|
|
1141
1148
|
this._selectedItemsExist = true;
|
|
1142
1149
|
}
|
|
1143
1150
|
options.options = options.options || {};
|
|
1144
|
-
if (
|
|
1151
|
+
if (get(widgetState, 'pagination')) {
|
|
1145
1152
|
options.options.page = widgetState.pagination;
|
|
1146
|
-
if (
|
|
1153
|
+
if (get(widgetState, 'sort')) {
|
|
1147
1154
|
this.sortStateHandler(widgetState);
|
|
1148
|
-
options.options.orderBy =
|
|
1155
|
+
options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');
|
|
1149
1156
|
}
|
|
1150
|
-
if (
|
|
1157
|
+
if (get(widgetState, 'search')) {
|
|
1151
1158
|
setTimeout(() => {
|
|
1152
1159
|
this.searchStateHandler(widgetState);
|
|
1153
1160
|
}, 500);
|
|
@@ -1156,15 +1163,15 @@ class TableComponent extends StylableComponent {
|
|
|
1156
1163
|
}
|
|
1157
1164
|
else {
|
|
1158
1165
|
options.options.page = 1;
|
|
1159
|
-
if (
|
|
1166
|
+
if (get(widgetState, 'search')) {
|
|
1160
1167
|
setTimeout(() => {
|
|
1161
1168
|
this.searchStateHandler(widgetState);
|
|
1162
1169
|
}, 500);
|
|
1163
1170
|
options.options.filterFields = this.getFilterFields(widgetState.search);
|
|
1164
1171
|
}
|
|
1165
|
-
if (
|
|
1172
|
+
if (get(widgetState, 'sort')) {
|
|
1166
1173
|
this.sortStateHandler(widgetState);
|
|
1167
|
-
options.options.orderBy =
|
|
1174
|
+
options.options.orderBy = get(widgetState, 'sort.field') + ' ' + get(widgetState, 'sort.direction');
|
|
1168
1175
|
}
|
|
1169
1176
|
}
|
|
1170
1177
|
return options;
|
|
@@ -1178,17 +1185,17 @@ class TableComponent extends StylableComponent {
|
|
|
1178
1185
|
}
|
|
1179
1186
|
sortStateHandler(widgetState) {
|
|
1180
1187
|
const $gridElement = this.datagridElement;
|
|
1181
|
-
const $sortIcon = $gridElement.find('th[data-col-field="' +
|
|
1182
|
-
if (
|
|
1188
|
+
const $sortIcon = $gridElement.find('th[data-col-field="' + get(widgetState, 'sort.field') + '"] .sort-icon');
|
|
1189
|
+
if (get(widgetState, 'sort.direction') === 'asc' && $sortIcon.length) {
|
|
1183
1190
|
$sortIcon.addClass('asc wi wi-long-arrow-up');
|
|
1184
1191
|
}
|
|
1185
|
-
else if (
|
|
1192
|
+
else if (get(widgetState, 'sort.direction') === 'desc' && $sortIcon.length) {
|
|
1186
1193
|
$sortIcon.addClass('desc wi wi-long-arrow-down');
|
|
1187
1194
|
}
|
|
1188
1195
|
}
|
|
1189
1196
|
searchStateHandler(widgetState) {
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1197
|
+
if (isArray(widgetState.search)) {
|
|
1198
|
+
forEach(widgetState.search, (filterObj) => {
|
|
1192
1199
|
if (this.rowFilter[filterObj.field]) {
|
|
1193
1200
|
this.rowFilter[filterObj.field].value = filterObj.value;
|
|
1194
1201
|
this.rowFilter[filterObj.field].matchMode = filterObj.matchMode;
|
|
@@ -1215,11 +1222,11 @@ class TableComponent extends StylableComponent {
|
|
|
1215
1222
|
}
|
|
1216
1223
|
// Compares the prevFilterCriteria Rules with the new rules
|
|
1217
1224
|
compareFilterExpressions(prevFilters, newFilters) {
|
|
1218
|
-
return !!((prevFilters.length === newFilters.length) && (
|
|
1225
|
+
return !!((prevFilters.length === newFilters.length) && (isEqual(prevFilters, newFilters)));
|
|
1219
1226
|
}
|
|
1220
1227
|
// Set the table lastActionPerformed to Filter Criteria and maintain the prevFilterExpression
|
|
1221
1228
|
setLastActionToFilterCriteria() {
|
|
1222
|
-
this.prevFilterExpression =
|
|
1229
|
+
this.prevFilterExpression = get(this.datasource, 'filterExpressions.rules') ? getClonedObject(this.datasource.filterExpressions.rules) : getClonedObject([].concat(this.datasource.dataBinding));
|
|
1223
1230
|
this.gridOptions.setLastActionPerformed(this.gridOptions.ACTIONS.FILTER_CRITERIA);
|
|
1224
1231
|
this.gridOptions.setIsSearchTrigerred(true);
|
|
1225
1232
|
}
|
|
@@ -1233,8 +1240,8 @@ class TableComponent extends StylableComponent {
|
|
|
1233
1240
|
}
|
|
1234
1241
|
// Update the lastActionPerformed to Filter_Criteria, when there is change in the Variable filter criteria rules
|
|
1235
1242
|
checkIfVarFiltersApplied() {
|
|
1236
|
-
if (!
|
|
1237
|
-
const currentFilterExpr =
|
|
1243
|
+
if (!isEmpty(get(this.datasource, 'filterExpressions.rules')) || !isEmpty(get(this.datasource, 'dataBinding'))) {
|
|
1244
|
+
const currentFilterExpr = get(this.datasource, 'filterExpressions.rules') ? this.datasource.filterExpressions.rules : [].concat(this.datasource.dataBinding);
|
|
1238
1245
|
const isEqual = this.compareFilterExpressions(this.prevFilterExpression, currentFilterExpr);
|
|
1239
1246
|
if (!isEqual) {
|
|
1240
1247
|
this.setLastActionToFilterCriteria();
|
|
@@ -1248,29 +1255,29 @@ class TableComponent extends StylableComponent {
|
|
|
1248
1255
|
this.checkIfVarFiltersApplied();
|
|
1249
1256
|
}
|
|
1250
1257
|
// State handling for static variables
|
|
1251
|
-
if (
|
|
1258
|
+
if (get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') {
|
|
1252
1259
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
1253
1260
|
this._pageLoad = false;
|
|
1254
|
-
if (
|
|
1261
|
+
if (get(widgetState, 'selectedItem')) {
|
|
1255
1262
|
this._selectedItemsExist = true;
|
|
1256
1263
|
}
|
|
1257
1264
|
else {
|
|
1258
1265
|
this.setDataGridOption('selectFirstRow', this.gridfirstrowselect);
|
|
1259
1266
|
}
|
|
1260
|
-
if (
|
|
1267
|
+
if (get(widgetState, 'search')) {
|
|
1261
1268
|
this.searchStateHandler(widgetState);
|
|
1262
1269
|
this.searchSortHandler(widgetState.search, undefined, 'search', true);
|
|
1263
1270
|
}
|
|
1264
|
-
if (
|
|
1271
|
+
if (get(widgetState, 'sort')) {
|
|
1265
1272
|
this.searchSortHandler(widgetState.sort, undefined, 'sort', true);
|
|
1266
1273
|
this.sortStateHandler(widgetState);
|
|
1267
1274
|
}
|
|
1268
|
-
if (
|
|
1275
|
+
if (get(widgetState, 'pagination')) {
|
|
1269
1276
|
this.dataNavigator.pageChanged({ page: widgetState.pagination }, true);
|
|
1270
1277
|
}
|
|
1271
1278
|
}
|
|
1272
1279
|
// After the setting the watch on navigator, dataset is triggered with undefined. In this case, return here.
|
|
1273
|
-
if (this.dataNavigatorWatched &&
|
|
1280
|
+
if (this.dataNavigatorWatched && isUndefined(newVal) && this.__fullData) {
|
|
1274
1281
|
return;
|
|
1275
1282
|
}
|
|
1276
1283
|
// If variable is in loading state, show loading icon
|
|
@@ -1304,7 +1311,7 @@ class TableComponent extends StylableComponent {
|
|
|
1304
1311
|
else {
|
|
1305
1312
|
this.resetPageNavigation();
|
|
1306
1313
|
// If the dataset is undefined or empty or table is bound to static variable then set variableInflight to false inorder to update the status
|
|
1307
|
-
if (newVal === '' || newVal === undefined ||
|
|
1314
|
+
if (newVal === '' || newVal === undefined || get(this.datasource, 'category') === 'wm.Variable') {
|
|
1308
1315
|
this.variableInflight = false;
|
|
1309
1316
|
}
|
|
1310
1317
|
/*for run mode, disabling the loader and showing no data found message if dataset is not valid*/
|
|
@@ -1316,7 +1323,8 @@ class TableComponent extends StylableComponent {
|
|
|
1316
1323
|
if (!this.isNavigationEnabled() && newVal) {
|
|
1317
1324
|
this.checkFiltersApplied(this.getSortExpr());
|
|
1318
1325
|
}
|
|
1319
|
-
|
|
1326
|
+
// @ts-ignore
|
|
1327
|
+
if (!isObject(newVal) || newVal === '' || (newVal && newVal.dataValue === '')) {
|
|
1320
1328
|
if (!this.variableInflight) {
|
|
1321
1329
|
// If variable has finished loading and resultSet is empty, ender empty data
|
|
1322
1330
|
this.setGridData([]);
|
|
@@ -1339,7 +1347,7 @@ class TableComponent extends StylableComponent {
|
|
|
1339
1347
|
}
|
|
1340
1348
|
addRowIndex(row) {
|
|
1341
1349
|
const rowData = getClonedObject(row);
|
|
1342
|
-
const rowIndex =
|
|
1350
|
+
const rowIndex = indexOf(this.gridOptions.data, row);
|
|
1343
1351
|
if (rowIndex < 0) {
|
|
1344
1352
|
return row;
|
|
1345
1353
|
}
|
|
@@ -1365,7 +1373,7 @@ class TableComponent extends StylableComponent {
|
|
|
1365
1373
|
getClonedRowObject(rowData) {
|
|
1366
1374
|
const row = getClonedObject(rowData);
|
|
1367
1375
|
row.getProperty = field => {
|
|
1368
|
-
return
|
|
1376
|
+
return get(row, field);
|
|
1369
1377
|
};
|
|
1370
1378
|
row.$isFirst = row.$index === 1;
|
|
1371
1379
|
row.$isLast = this.gridData.length === row.$index;
|
|
@@ -1381,7 +1389,7 @@ class TableComponent extends StylableComponent {
|
|
|
1381
1389
|
}
|
|
1382
1390
|
else {
|
|
1383
1391
|
// If grid is in edit mode or grid has data, dont show the no data message
|
|
1384
|
-
if (!this.isGridEditMode &&
|
|
1392
|
+
if (!this.isGridEditMode && isEmpty(this.dataset)) {
|
|
1385
1393
|
this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);
|
|
1386
1394
|
}
|
|
1387
1395
|
else {
|
|
@@ -1400,7 +1408,7 @@ class TableComponent extends StylableComponent {
|
|
|
1400
1408
|
}
|
|
1401
1409
|
clearForm(newRow) {
|
|
1402
1410
|
const ctrls = this.ngform.controls;
|
|
1403
|
-
|
|
1411
|
+
keys(this.ngform.controls).forEach(key => {
|
|
1404
1412
|
// If new row, clear the controls in the new row. Else, clear the controls in edit row
|
|
1405
1413
|
if (!key.endsWith('_filter') && ((key.endsWith('_new') && newRow) || (!key.endsWith('_new') && !newRow))) {
|
|
1406
1414
|
ctrls[key].setValue('');
|
|
@@ -1452,7 +1460,7 @@ class TableComponent extends StylableComponent {
|
|
|
1452
1460
|
const data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
|
|
1453
1461
|
// fix for [WMS-24012] set variableinflight flag to false for static variables
|
|
1454
1462
|
// If the table is bound to some widget and not bound to any variable (ex: Table1.selectedItem) then set variableInflight to false
|
|
1455
|
-
if (
|
|
1463
|
+
if (get(this.datasource, 'category') === 'wm.Variable' || get(this.datasource, 'category') === undefined) {
|
|
1456
1464
|
this.variableInflight = false;
|
|
1457
1465
|
}
|
|
1458
1466
|
if (!this.variableInflight) {
|
|
@@ -1470,7 +1478,7 @@ class TableComponent extends StylableComponent {
|
|
|
1470
1478
|
return;
|
|
1471
1479
|
}
|
|
1472
1480
|
const option = {};
|
|
1473
|
-
if (isDefined && (!
|
|
1481
|
+
if (isDefined && (!isEqual(newVal, this.gridOptions[optionName]) || forceSet)) {
|
|
1474
1482
|
option[optionName] = newVal;
|
|
1475
1483
|
this.datagridElement.datatable('option', option);
|
|
1476
1484
|
this.gridOptions[optionName] = newVal;
|
|
@@ -1494,13 +1502,13 @@ class TableComponent extends StylableComponent {
|
|
|
1494
1502
|
if (!this.fieldDefs.length) {
|
|
1495
1503
|
return;
|
|
1496
1504
|
}
|
|
1497
|
-
rowActionCol =
|
|
1498
|
-
|
|
1499
|
-
|
|
1505
|
+
rowActionCol = find(this.fullFieldDefs, { 'field': ROW_OPS_FIELD, type: 'custom' }); // Check if column is fetched from markup
|
|
1506
|
+
remove(this.fieldDefs, { type: 'custom', field: ROW_OPS_FIELD }); // Removing operations column
|
|
1507
|
+
remove(this.headerConfig, { field: rowOperationsColumn.field });
|
|
1500
1508
|
/*Add the column for row operations only if at-least one operation has been enabled.*/
|
|
1501
1509
|
if (this.rowActions.length) {
|
|
1502
1510
|
if (rowActionCol) { // If column is present in markup, push the column or push the default column
|
|
1503
|
-
insertPosition = rowActionCol.rowactionsposition ?
|
|
1511
|
+
insertPosition = rowActionCol.rowactionsposition ? toNumber(rowActionCol.rowactionsposition) : this.fieldDefs.length;
|
|
1504
1512
|
this.fieldDefs.splice(insertPosition, 0, rowActionCol);
|
|
1505
1513
|
if (insertPosition === 0) {
|
|
1506
1514
|
this.headerConfig.unshift(config);
|
|
@@ -1529,15 +1537,15 @@ class TableComponent extends StylableComponent {
|
|
|
1529
1537
|
if (isDefined(newVal)) {
|
|
1530
1538
|
// Watch will not be triggered if dataset and new value are equal. So trigger the property change handler manually
|
|
1531
1539
|
// This happens in case, if dataset is directly updated.
|
|
1532
|
-
if (
|
|
1540
|
+
if (isEqual(this.dataset, newVal)) {
|
|
1533
1541
|
this.watchVariableDataSet(newVal);
|
|
1534
1542
|
}
|
|
1535
1543
|
else {
|
|
1536
|
-
if (
|
|
1544
|
+
if (isArray(newVal)) {
|
|
1537
1545
|
this.widget.dataset = [].concat(newVal);
|
|
1538
1546
|
}
|
|
1539
|
-
else if (
|
|
1540
|
-
this.widget.dataset =
|
|
1547
|
+
else if (isObject(newVal)) {
|
|
1548
|
+
this.widget.dataset = extend({}, newVal);
|
|
1541
1549
|
}
|
|
1542
1550
|
else {
|
|
1543
1551
|
this.widget.dataset = newVal;
|
|
@@ -1617,7 +1625,7 @@ class TableComponent extends StylableComponent {
|
|
|
1617
1625
|
if (this.getConfiguredState() !== 'none' && this._selectedItemsExist && serviceData.length) {
|
|
1618
1626
|
const widgetState = this.statePersistence.getWidgetState(this);
|
|
1619
1627
|
let currentPageItems;
|
|
1620
|
-
if (
|
|
1628
|
+
if (get(widgetState, 'selectedItem')) {
|
|
1621
1629
|
currentPageItems = widgetState.selectedItem.filter(val => {
|
|
1622
1630
|
return val.page === this.dataNavigator.dn.currentPage;
|
|
1623
1631
|
});
|
|
@@ -1625,7 +1633,7 @@ class TableComponent extends StylableComponent {
|
|
|
1625
1633
|
// if an item is already selected, don't trigger onSelect event for it again
|
|
1626
1634
|
if (currentPageItems.length && this.selecteditem.length !== widgetState.selectedItem.length) {
|
|
1627
1635
|
// don't reassign this.selecteditem if selected items already exist.
|
|
1628
|
-
if (
|
|
1636
|
+
if (isArray(this.selecteditem)) {
|
|
1629
1637
|
currentPageItems.forEach((item) => {
|
|
1630
1638
|
this.selectItem(item.index, undefined);
|
|
1631
1639
|
});
|
|
@@ -1642,15 +1650,15 @@ class TableComponent extends StylableComponent {
|
|
|
1642
1650
|
this.fieldDefs = []; // empty the form fields
|
|
1643
1651
|
// empty the filter field template refs.
|
|
1644
1652
|
this.filterTmpl._results = [];
|
|
1645
|
-
if (
|
|
1653
|
+
if (isEmpty(columns)) {
|
|
1646
1654
|
return;
|
|
1647
1655
|
}
|
|
1648
1656
|
let tmpl = '';
|
|
1649
1657
|
columns.forEach(col => {
|
|
1650
1658
|
let attrsTmpl = '';
|
|
1651
1659
|
let customTmpl = '';
|
|
1652
|
-
|
|
1653
|
-
if (!
|
|
1660
|
+
forEach(col, (val, key) => {
|
|
1661
|
+
if (!isUndefined(val) && val !== '') {
|
|
1654
1662
|
// If custom expression is present, keep it inside table column. Else, keep as attribute
|
|
1655
1663
|
if (key === 'customExpression') {
|
|
1656
1664
|
customTmpl = val;
|
|
@@ -1689,7 +1697,7 @@ class TableComponent extends StylableComponent {
|
|
|
1689
1697
|
/*call utility function to prepare fieldDefs for grid against given data (A MAX OF 10 COLUMNS ONLY)*/
|
|
1690
1698
|
defaultFieldDefs = prepareFieldDefs(properties);
|
|
1691
1699
|
/*append additional properties*/
|
|
1692
|
-
|
|
1700
|
+
forEach(defaultFieldDefs, columnDef => {
|
|
1693
1701
|
columnDef.binding = columnDef.field;
|
|
1694
1702
|
columnDef.caption = columnDef.displayName;
|
|
1695
1703
|
columnDef.pcDisplay = true;
|
|
@@ -1711,7 +1719,7 @@ class TableComponent extends StylableComponent {
|
|
|
1711
1719
|
this.invokeEventCallback('beforedatarender', { $data: data, $columns: this.columns, data: data, columns: this.columns });
|
|
1712
1720
|
defaultFieldDefs = [];
|
|
1713
1721
|
// Apply the changes made by the user
|
|
1714
|
-
|
|
1722
|
+
forEach(this.columns, val => {
|
|
1715
1723
|
defaultFieldDefs.push(val);
|
|
1716
1724
|
});
|
|
1717
1725
|
this.generateDynamicColumns(defaultFieldDefs);
|
|
@@ -1721,11 +1729,11 @@ class TableComponent extends StylableComponent {
|
|
|
1721
1729
|
/* check whether data is valid or not */
|
|
1722
1730
|
const dataValid = data && !data.error;
|
|
1723
1731
|
/*if the data is type json object, make it an array of the object*/
|
|
1724
|
-
if (dataValid && !
|
|
1732
|
+
if (dataValid && !isArray(data)) {
|
|
1725
1733
|
data = [data];
|
|
1726
1734
|
}
|
|
1727
1735
|
/* if the data is empty, show nodatamessage */
|
|
1728
|
-
if (
|
|
1736
|
+
if (isEmpty(data)) {
|
|
1729
1737
|
this.setGridData(data);
|
|
1730
1738
|
return;
|
|
1731
1739
|
}
|
|
@@ -1742,7 +1750,7 @@ class TableComponent extends StylableComponent {
|
|
|
1742
1750
|
let pagingOptions;
|
|
1743
1751
|
if (this.datasource && this.datasource.execute(DataSource.Operation.IS_PAGEABLE)) {
|
|
1744
1752
|
pagingOptions = this.datasource.execute(DataSource.Operation.GET_PAGING_OPTIONS);
|
|
1745
|
-
sortExp =
|
|
1753
|
+
sortExp = isEmpty(pagingOptions) ? '' : getOrderByExpr(pagingOptions.sort);
|
|
1746
1754
|
}
|
|
1747
1755
|
return sortExp || '';
|
|
1748
1756
|
}
|
|
@@ -1768,7 +1776,7 @@ class TableComponent extends StylableComponent {
|
|
|
1768
1776
|
}
|
|
1769
1777
|
// if table is inside list then table dataset will be set as "item.XXX" and there is no datasource.
|
|
1770
1778
|
// So extracting datasource from the datset bound expression.
|
|
1771
|
-
if (this.parentList && !this.datasource &&
|
|
1779
|
+
if (this.parentList && !this.datasource && startsWith(this.binddataset, 'item')) {
|
|
1772
1780
|
this.datasource = getDatasourceFromExpr(this.widget.$attrs.get('datasetboundexpr'), this);
|
|
1773
1781
|
}
|
|
1774
1782
|
if (this.gridOptions.isNavTypeScrollOrOndemand()) {
|
|
@@ -1785,7 +1793,7 @@ class TableComponent extends StylableComponent {
|
|
|
1785
1793
|
}
|
|
1786
1794
|
// for Static Variables with Retain State enabled, prevent Table from rendering more than once
|
|
1787
1795
|
// Fix for [WMS-25284]: Render table that is inside list widget and bound to static Variable
|
|
1788
|
-
if (!(
|
|
1796
|
+
if (!(get(this.datasource, 'category') === 'wm.Variable' && this._pageLoad && this.getConfiguredState() !== 'none') || (this.parentList && startsWith(this.binddataset, 'item'))) {
|
|
1789
1797
|
this.watchVariableDataSet(nv);
|
|
1790
1798
|
}
|
|
1791
1799
|
break;
|
|
@@ -1836,7 +1844,7 @@ class TableComponent extends StylableComponent {
|
|
|
1836
1844
|
this.exportOptions = [];
|
|
1837
1845
|
if (nv) {
|
|
1838
1846
|
// Populate options for export drop down menu
|
|
1839
|
-
|
|
1847
|
+
forEach(split(nv, ','), type => {
|
|
1840
1848
|
this.exportOptions.push({
|
|
1841
1849
|
label: type,
|
|
1842
1850
|
icon: exportIconMapping[type]
|
|
@@ -1846,7 +1854,7 @@ class TableComponent extends StylableComponent {
|
|
|
1846
1854
|
break;
|
|
1847
1855
|
case 'shownewrow':
|
|
1848
1856
|
// Enable new row if shownew is true or addNewRow buton is present
|
|
1849
|
-
enableNewRow = nv ||
|
|
1857
|
+
enableNewRow = nv || some(this.actions, act => includes(act.action, 'addNewRow()'));
|
|
1850
1858
|
this.callDataGridMethod('option', 'actionsEnabled.new', enableNewRow);
|
|
1851
1859
|
break;
|
|
1852
1860
|
case 'pagesize':
|
|
@@ -1901,11 +1909,11 @@ class TableComponent extends StylableComponent {
|
|
|
1901
1909
|
populateActions() {
|
|
1902
1910
|
this._actions.header = [];
|
|
1903
1911
|
this._actions.footer = [];
|
|
1904
|
-
|
|
1905
|
-
if (
|
|
1912
|
+
forEach(this.actions, (action) => {
|
|
1913
|
+
if (includes(action.position, 'header')) {
|
|
1906
1914
|
this._actions.header.push(action);
|
|
1907
1915
|
}
|
|
1908
|
-
if (
|
|
1916
|
+
if (includes(action.position, 'footer')) {
|
|
1909
1917
|
this._actions.footer.push(action);
|
|
1910
1918
|
}
|
|
1911
1919
|
});
|
|
@@ -1974,9 +1982,9 @@ class TableComponent extends StylableComponent {
|
|
|
1974
1982
|
if (data) {
|
|
1975
1983
|
this.serverData = data;
|
|
1976
1984
|
}
|
|
1977
|
-
if (
|
|
1978
|
-
item =
|
|
1979
|
-
return
|
|
1985
|
+
if (isObject(item)) {
|
|
1986
|
+
item = omitBy(item, (value) => {
|
|
1987
|
+
return isArray(value) && isEmpty(value);
|
|
1980
1988
|
});
|
|
1981
1989
|
}
|
|
1982
1990
|
this.callDataGridMethod('selectRow', item, true);
|
|
@@ -1991,7 +1999,7 @@ class TableComponent extends StylableComponent {
|
|
|
1991
1999
|
this.checkFiltersApplied(this.getSortExpr());
|
|
1992
2000
|
if (this._isClientSearch) {
|
|
1993
2001
|
data = getClonedObject(this.__fullData);
|
|
1994
|
-
if (
|
|
2002
|
+
if (isObject(data) && !isArray(data)) {
|
|
1995
2003
|
data = [data];
|
|
1996
2004
|
}
|
|
1997
2005
|
data = this.getSearchResult(data, this.filterInfo);
|
|
@@ -2007,7 +2015,7 @@ class TableComponent extends StylableComponent {
|
|
|
2007
2015
|
}
|
|
2008
2016
|
export($item) {
|
|
2009
2017
|
let filterFields;
|
|
2010
|
-
const sortOptions =
|
|
2018
|
+
const sortOptions = isEmpty(this.sortInfo) ? '' : this.sortInfo.field + ' ' + this.sortInfo.direction;
|
|
2011
2019
|
const columns = {};
|
|
2012
2020
|
let isValid;
|
|
2013
2021
|
let requestData;
|
|
@@ -2043,7 +2051,7 @@ class TableComponent extends StylableComponent {
|
|
|
2043
2051
|
if (isValid === false) {
|
|
2044
2052
|
return;
|
|
2045
2053
|
}
|
|
2046
|
-
requestData.fields =
|
|
2054
|
+
requestData.fields = values(requestData.columns);
|
|
2047
2055
|
this.datasource.execute(DataSource.Operation.DOWNLOAD, { data: requestData });
|
|
2048
2056
|
}
|
|
2049
2057
|
expandRow(rowId) {
|
|
@@ -2104,14 +2112,14 @@ class TableComponent extends StylableComponent {
|
|
|
2104
2112
|
}
|
|
2105
2113
|
ngOnDetach() {
|
|
2106
2114
|
super.ngOnDetach();
|
|
2107
|
-
if (
|
|
2115
|
+
if (get(this.datasource, 'category') === 'wm.Variable' && this.getConfiguredState() !== 'none') {
|
|
2108
2116
|
this._pageLoad = false;
|
|
2109
2117
|
}
|
|
2110
2118
|
else {
|
|
2111
2119
|
this._pageLoad = true;
|
|
2112
2120
|
}
|
|
2113
2121
|
}
|
|
2114
|
-
static { this.ɵfac = function TableComponent_Factory(t) { return new (t || TableComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.App), i0.ɵɵdirectiveInject(i2.DynamicComponentRefProvider), i0.ɵɵdirectiveInject(i2.StatePersistence), i0.ɵɵdirectiveInject(i2.PaginationService), i0.ɵɵdirectiveInject(i2.Viewport), i0.ɵɵdirectiveInject(i3.ListComponent, 8), i0.ɵɵinjectAttribute('dataset.bind'), i0.ɵɵinjectAttribute('datasource.bind'), i0.ɵɵinjectAttribute('readonlygrid'), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i4.TrustAsPipe)); }; }
|
|
2122
|
+
static { this.ɵfac = function TableComponent_Factory(t) { return new (t || TableComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.FormBuilder), i0.ɵɵdirectiveInject(i2.App), i0.ɵɵdirectiveInject(i2.DynamicComponentRefProvider), i0.ɵɵdirectiveInject(i2.StatePersistence), i0.ɵɵdirectiveInject(i2.PaginationService), i0.ɵɵdirectiveInject(i2.Viewport), i0.ɵɵdirectiveInject(i3.ListComponent, 8), i0.ɵɵinjectAttribute('dataset.bind'), i0.ɵɵinjectAttribute('datasource.bind'), i0.ɵɵinjectAttribute('readonlygrid'), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i4.TrustAsPipe), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2115
2123
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TableComponent, selectors: [["", "wmTable", ""]], contentQueries: function TableComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
2116
2124
|
i0.ɵɵcontentQuery(dirIndex, _c0$1, 5);
|
|
2117
2125
|
i0.ɵɵcontentQuery(dirIndex, _c1$1, 5);
|
|
@@ -2157,37 +2165,36 @@ class TableComponent extends StylableComponent {
|
|
|
2157
2165
|
} }, features: [i0.ɵɵProvidersFeature([
|
|
2158
2166
|
provideAs(TableComponent, NG_VALUE_ACCESSOR, true),
|
|
2159
2167
|
provideAsWidgetRef(TableComponent)
|
|
2160
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c16, decls: 29, vars: 4, consts: [["
|
|
2161
|
-
i0.ɵɵtemplate(0, TableComponent_div_0_Template, 8, 4, "div",
|
|
2162
|
-
i0.ɵɵelement(1, "div",
|
|
2163
|
-
i0.ɵɵelementStart(3, "div",
|
|
2164
|
-
i0.ɵɵelement(5, "nav",
|
|
2168
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c16, decls: 29, vars: 4, consts: [["datagridElement", ""], ["buttonRef", ""], ["anchorRef", ""], ["multiColumnFilterView", ""], ["inlineEditView", ""], ["inlineEditNewView", ""], ["rowActionsView", ""], ["rowExpansionActionView", ""], ["customExprView", ""], ["dynamicTable", ""], ["rowDetailView", ""], ["class", "panel-heading", 4, "ngIf"], [1, "app-datagrid"], [1, "panel-footer", "clearfix", 3, "hidden"], [1, "app-datagrid-paginator", 3, "hidden"], ["wmPagination", "", "show.bind", "shownavigation", "navigationalign.bind", "navigationalign", "navigationsize.bind", "navigationSize", "navigation.bind", "navControls", "showrecordcount.bind", "showrecordcount", "maxsize.bind", "maxsize", "boundarylinks.bind", "boundarylinks", "forceellipses.bind", "forceellipses", "directionlinks.bind", "directionlinks"], ["class", "app-datagrid-actions", 4, "ngIf"], ["hidden", ""], [1, "dynamic-table-container"], [1, "panel-heading"], [1, "panel-title"], [1, "pull-left"], [3, "class", 4, "ngIf"], [1, "heading", 3, "innerHTML"], [1, "description", 3, "innerHTML"], ["class", "panel-actions app-datagrid-actions", 4, "ngIf"], [1, "panel-actions", "app-datagrid-actions"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", "ngTemplateOutletInjector", 4, "ngFor", "ngForOf"], ["wmMenu", "", "dropdown", "", "caption.bind", "appLocale.LABEL_EXPORT", "autoclose", "always", "dataset.bind", "exportOptions", "select.event", "export($item)", "menuposition", "down,left", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", "ngTemplateOutletInjector"], ["wmMenu", "", "dropdown", "", "caption.bind", "appLocale.LABEL_EXPORT", "autoclose", "always", "dataset.bind", "exportOptions", "select.event", "export($item)", "menuposition", "down,left"], [1, "app-datagrid-actions"], ["wmButton", "", "caption.bind", "btn.displayName", "show.bind", "btn.show", "class.bind", "btn.class", "iconclass.bind", "btn.iconclass", "type", "button", "shortcutkey.bind", "btn.shortcutkey", "tabindex.bind", "btn.tabindex", "hint.bind", "btn.title", "disabled.bind", "btn.disabled", "conditionalclass.bind", "btn.conditionalclass", "conditionalstyle.bind", "btn.conditionalstyle", 3, "click", "ngClass"], ["wmAnchor", "", "caption.bind", "btn.displayName", "show.bind", "btn.show", "class.bind", "btn.class", "iconclass.bind", "btn.iconclass", "shortcutkey.bind", "btn.shortcutkey", "tabindex.bind", "btn.tabindex", "hint.bind", "btn.title", "hyperlink.bind", "btn.hyperlink", "target.bind", "btn.target", "conditionalclass.bind", "btn.conditionalclass", "conditionalstyle.bind", "btn.conditionalstyle", 3, "click", "ngClass"]], template: function TableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2169
|
+
i0.ɵɵtemplate(0, TableComponent_div_0_Template, 8, 4, "div", 11);
|
|
2170
|
+
i0.ɵɵelement(1, "div", 12, 0);
|
|
2171
|
+
i0.ɵɵelementStart(3, "div", 13)(4, "div", 14);
|
|
2172
|
+
i0.ɵɵelement(5, "nav", 15);
|
|
2165
2173
|
i0.ɵɵelementEnd();
|
|
2166
|
-
i0.ɵɵtemplate(6, TableComponent_div_6_Template, 2, 1, "div",
|
|
2174
|
+
i0.ɵɵtemplate(6, TableComponent_div_6_Template, 2, 1, "div", 16);
|
|
2167
2175
|
i0.ɵɵelementEnd();
|
|
2168
|
-
i0.ɵɵtemplate(7, TableComponent_ng_template_7_Template, 1, 5, "ng-template", null,
|
|
2169
|
-
i0.ɵɵ
|
|
2170
|
-
i0.ɵɵ
|
|
2171
|
-
i0.ɵɵelementContainer(12, null, 10)(14, null, 11)(16, null, 12)(18, null, 13)(20, null, 14)(22, null, 15)(24, null, 16)(26, null, 17);
|
|
2176
|
+
i0.ɵɵtemplate(7, TableComponent_ng_template_7_Template, 1, 5, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(9, TableComponent_ng_template_9_Template, 1, 4, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
2177
|
+
i0.ɵɵelementStart(11, "div", 17);
|
|
2178
|
+
i0.ɵɵelementContainer(12, null, 3)(14, null, 4)(16, null, 5)(18, null, 6)(20, null, 7)(22, null, 8)(24, null, 9)(26, null, 10);
|
|
2172
2179
|
i0.ɵɵelement(28, "div", 18);
|
|
2173
2180
|
i0.ɵɵelementEnd();
|
|
2174
2181
|
} if (rf & 2) {
|
|
2175
2182
|
i0.ɵɵproperty("ngIf", ctx.title || ctx.subheading || ctx.iconclass || ctx.exportOptions.length || ctx._actions.header.length);
|
|
2176
2183
|
i0.ɵɵadvance(3);
|
|
2177
2184
|
i0.ɵɵproperty("hidden", !ctx._actions.footer.length && (!ctx.shownavigation || ctx.onDemandLoad && ctx.dataNavigator.isDisableNext || (ctx.dataNavigator == null ? null : ctx.dataNavigator.dataSize) <= ctx.pagesize));
|
|
2178
|
-
i0.ɵɵadvance(
|
|
2185
|
+
i0.ɵɵadvance();
|
|
2179
2186
|
i0.ɵɵproperty("hidden", !(ctx.dataNavigator == null ? null : ctx.dataNavigator.dataSize) && !(ctx.dataNavigator.datasource == null ? null : ctx.dataNavigator.datasource.pagination == null ? null : ctx.dataNavigator.datasource.pagination.next) || !ctx.shownavigation || ctx.onDemandLoad && ctx.dataNavigator.isDisableNext || (ctx.dataNavigator == null ? null : ctx.dataNavigator.dataSize) <= ctx.pagesize);
|
|
2180
2187
|
i0.ɵɵadvance(2);
|
|
2181
2188
|
i0.ɵɵproperty("ngIf", ctx._actions.footer.length);
|
|
2182
2189
|
} }, dependencies: [i5.AnchorComponent, i6.BsDropdownDirective, i7.NgClass, i7.NgForOf, i7.NgIf, i7.NgTemplateOutlet, i8.ButtonComponent, i9.MenuComponent, i10.PaginationComponent], encapsulation: 2 }); }
|
|
2183
2190
|
}
|
|
2184
|
-
(
|
|
2191
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableComponent, [{
|
|
2185
2192
|
type: Component,
|
|
2186
2193
|
args: [{ selector: '[wmTable]', providers: [
|
|
2187
2194
|
provideAs(TableComponent, NG_VALUE_ACCESSOR, true),
|
|
2188
2195
|
provideAsWidgetRef(TableComponent)
|
|
2189
|
-
], template: "<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass || exportOptions.length || _actions.header.length\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" *ngIf=\"iconclass\"></i>\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=\"panel-actions app-datagrid-actions\" *ngIf=\"exportOptions.length || _actions.header.length\">\n <ng-container *ngFor=\"let btn of _actions.header
|
|
2190
|
-
}],
|
|
2196
|
+
], template: "<div class=\"panel-heading\" *ngIf=\"title || subheading || iconclass || exportOptions.length || _actions.header.length\">\n <h3 class=\"panel-title\">\n <div class=\"pull-left\">\n <i class=\"app-icon panel-icon {{iconclass}}\" *ngIf=\"iconclass\"></i>\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=\"panel-actions app-datagrid-actions\" *ngIf=\"exportOptions.length || _actions.header.length\">\n <ng-container *ngFor=\"let btn of _actions.header; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_header_' + index, {btn:btn})\">\n </ng-container>\n <div wmMenu dropdown caption.bind=\"appLocale.LABEL_EXPORT\" *ngIf=\"exportOptions.length\" autoclose=\"always\" attr.name=\"{{name}}-export\"\n dataset.bind=\"exportOptions\" select.event=\"export($item)\" menuposition=\"down,left\"></div>\n </div>\n </h3>\n</div>\n<div class=\"app-datagrid\" #datagridElement></div>\n\n<div class=\"panel-footer clearfix\" [hidden]=\"!_actions.footer.length && (!shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize)\">\n <div class=\"app-datagrid-paginator\" [hidden]=\"(!dataNavigator?.dataSize && !dataNavigator.datasource?.pagination?.next) || !shownavigation || (onDemandLoad && dataNavigator.isDisableNext) || dataNavigator?.dataSize <= pagesize\">\n <nav wmPagination show.bind=\"shownavigation\" navigationalign.bind=\"navigationalign\"\n navigationsize.bind=\"navigationSize\"\n navigation.bind=\"navControls\" showrecordcount.bind=\"showrecordcount\" maxsize.bind=\"maxsize\"\n boundarylinks.bind=\"boundarylinks\"\n forceellipses.bind=\"forceellipses\" directionlinks.bind=\"directionlinks\"></nav>\n </div>\n <div class=\"app-datagrid-actions\" *ngIf=\"_actions.footer.length\">\n <ng-container *ngFor=\"let btn of _actions.footer; let index = index;\"\n [ngTemplateOutlet]=\"btn.widgetType === 'button' ? buttonRef : anchorRef\"\n [ngTemplateOutletContext]=\"{btn:btn}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('actions_footer_' + index, {btn:btn})\">\n </ng-container>\n </div>\n</div>\n\n<ng-template #buttonRef let-btn=\"btn\">\n <button wmButton caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n type=\"button\" shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\" [attr.aria-label]=\"btn.displayName\" disabled.bind=\"btn.disabled\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></button>\n</ng-template>\n\n<ng-template #anchorRef let-btn=\"btn\">\n <a wmAnchor caption.bind=\"btn.displayName\" show.bind=\"btn.show\" class.bind=\"btn.class\" iconclass.bind=\"btn.iconclass\" (click)=\"invokeActionEvent($event, btn.action)\"\n [ngClass]=\"{'btn-sm': spacing === 'condensed', 'disabled-new': btn.key === 'addNewRow' && (isGridEditMode || isLoading)}\"\n shortcutkey.bind=\"btn.shortcutkey\" tabindex.bind=\"btn.tabindex\" hint.bind=\"btn.title\"\n hyperlink.bind=\"btn.hyperlink\" target.bind=\"btn.target\" conditionalclass.bind=\"btn.conditionalclass\" conditionalstyle.bind=\"btn.conditionalstyle\"></a>\n</ng-template>\n\n<div hidden>\n <ng-container #multiColumnFilterView></ng-container>\n\n <ng-container #inlineEditView></ng-container>\n\n <ng-container #inlineEditNewView></ng-container>\n\n <ng-container #rowActionsView></ng-container>\n\n <ng-container #rowExpansionActionView></ng-container>\n\n <ng-container #customExprView></ng-container>\n\n <ng-container #dynamicTable></ng-container>\n\n <ng-container #rowDetailView></ng-container>\n\n <div class=\"dynamic-table-container\"></div>\n</div>\n" }]
|
|
2197
|
+
}], () => [{ type: i0.Injector }, { type: i1.FormBuilder }, { type: i2.App }, { type: i2.DynamicComponentRefProvider }, { type: i2.StatePersistence }, { type: i2.PaginationService }, { type: i2.Viewport }, { type: i3.ListComponent, decorators: [{
|
|
2191
2198
|
type: Optional
|
|
2192
2199
|
}] }, { type: undefined, decorators: [{
|
|
2193
2200
|
type: Attribute,
|
|
@@ -2198,7 +2205,12 @@ class TableComponent extends StylableComponent {
|
|
|
2198
2205
|
}] }, { type: undefined, decorators: [{
|
|
2199
2206
|
type: Attribute,
|
|
2200
2207
|
args: ['readonlygrid']
|
|
2201
|
-
}] }, { type: i0.NgZone }, { type: i4.TrustAsPipe }
|
|
2208
|
+
}] }, { type: i0.NgZone }, { type: i4.TrustAsPipe }, { type: undefined, decorators: [{
|
|
2209
|
+
type: Inject,
|
|
2210
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2211
|
+
}, {
|
|
2212
|
+
type: Optional
|
|
2213
|
+
}] }], { dataNavigator: [{
|
|
2202
2214
|
type: ViewChild,
|
|
2203
2215
|
args: [PaginationComponent, { static: true }]
|
|
2204
2216
|
}], _tableElement: [{
|
|
@@ -2253,6 +2265,7 @@ class TableComponent extends StylableComponent {
|
|
|
2253
2265
|
type: HostListener,
|
|
2254
2266
|
args: ['keypress', ['$event']]
|
|
2255
2267
|
}] }); })();
|
|
2268
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TableComponent, { className: "TableComponent", filePath: "table.component.ts", lineNumber: 122 }); })();
|
|
2256
2269
|
|
|
2257
2270
|
const OPERATION = {
|
|
2258
2271
|
'NEW': 'new',
|
|
@@ -2374,23 +2387,23 @@ class TableCUDDirective {
|
|
|
2374
2387
|
generatePath(binddataset) {
|
|
2375
2388
|
let path, index;
|
|
2376
2389
|
let dataBoundExpr = this.table.widget.$attrs.get('datasetboundexpr');
|
|
2377
|
-
if (
|
|
2378
|
-
if (
|
|
2390
|
+
if (startsWith(binddataset, 'item') && dataBoundExpr) {
|
|
2391
|
+
if (startsWith(dataBoundExpr, 'Widgets.')) {
|
|
2379
2392
|
dataBoundExpr = extractCurrentItemExpr(dataBoundExpr, this.table);
|
|
2380
2393
|
}
|
|
2381
2394
|
const parentListItems = this.table.$element.parents('.app-list-item');
|
|
2382
|
-
const indexArr =
|
|
2395
|
+
const indexArr = map(parentListItems, (item) => parseInt$1($(item).attr('listitemindex')));
|
|
2383
2396
|
for (let i = indexArr.length - 1; i >= 0; i--) {
|
|
2384
2397
|
dataBoundExpr = dataBoundExpr.replace('$i', indexArr[i]);
|
|
2385
2398
|
}
|
|
2386
|
-
index =
|
|
2399
|
+
index = last(indexArr);
|
|
2387
2400
|
path = dataBoundExpr.replace(/^Variables\..*\.dataSet([^.])*(\.|$)/g, '');
|
|
2388
2401
|
}
|
|
2389
2402
|
else {
|
|
2390
2403
|
// if we have dataset as "Variables.staticVar1.dataSet[1].details" then pass index as 1.
|
|
2391
2404
|
const regEx = /^Variables\..*\.dataSet([\[][0-9]])/g;
|
|
2392
2405
|
if (regEx.test(binddataset)) {
|
|
2393
|
-
index =
|
|
2406
|
+
index = parseInt$1(binddataset.replace(/^Variables\..*\.dataSet([\[])/g, ''));
|
|
2394
2407
|
}
|
|
2395
2408
|
path = binddataset.replace(/^Variables\..*\.dataSet([^.])*(\.|$)/g, '');
|
|
2396
2409
|
}
|
|
@@ -2712,17 +2725,17 @@ class TableCUDDirective {
|
|
|
2712
2725
|
static { this.ɵfac = function TableCUDDirective_Factory(t) { return new (t || TableCUDDirective)(i0.ɵɵdirectiveInject(TableComponent, 2), i0.ɵɵdirectiveInject(i2.AbstractDialogService), i0.ɵɵdirectiveInject(i2.App)); }; }
|
|
2713
2726
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableCUDDirective, selectors: [["", "wmTableCUD", ""]] }); }
|
|
2714
2727
|
}
|
|
2715
|
-
(
|
|
2728
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableCUDDirective, [{
|
|
2716
2729
|
type: Directive,
|
|
2717
2730
|
args: [{
|
|
2718
2731
|
selector: '[wmTableCUD]'
|
|
2719
2732
|
}]
|
|
2720
|
-
}],
|
|
2733
|
+
}], () => [{ type: undefined, decorators: [{
|
|
2721
2734
|
type: Self
|
|
2722
2735
|
}, {
|
|
2723
2736
|
type: Inject,
|
|
2724
2737
|
args: [TableComponent]
|
|
2725
|
-
}] }, { type: i2.AbstractDialogService }, { type: i2.App }]
|
|
2738
|
+
}] }, { type: i2.AbstractDialogService }, { type: i2.App }], null); })();
|
|
2726
2739
|
|
|
2727
2740
|
const emptyMatchModes = ['null', 'empty', 'nullorempty', 'isnotnull', 'isnotempty'];
|
|
2728
2741
|
// Get search value based on the time
|
|
@@ -2731,12 +2744,12 @@ const getSearchValue = (value, type) => {
|
|
|
2731
2744
|
return undefined;
|
|
2732
2745
|
}
|
|
2733
2746
|
if (isNumberType(type)) {
|
|
2734
|
-
return
|
|
2747
|
+
return toNumber(value);
|
|
2735
2748
|
}
|
|
2736
2749
|
if (type === DataType.DATETIME) {
|
|
2737
2750
|
return moment(value).valueOf();
|
|
2738
2751
|
}
|
|
2739
|
-
return
|
|
2752
|
+
return toString(value).toLowerCase();
|
|
2740
2753
|
};
|
|
2741
2754
|
// Filter the data based on the search value and conditions
|
|
2742
2755
|
const getFilteredData = (data, searchObj, visibleCols = []) => {
|
|
@@ -2745,26 +2758,27 @@ const getFilteredData = (data, searchObj, visibleCols = []) => {
|
|
|
2745
2758
|
// Return whole data if
|
|
2746
2759
|
// - search value is undefined and matchmode is not an empty matchmode type
|
|
2747
2760
|
// - search value is null and datatype is number. Null can not be compared with numeric values[WMS-19275].
|
|
2748
|
-
if ((!isDefined(searchVal) && !
|
|
2761
|
+
if ((!isDefined(searchVal) && !includes(emptyMatchModes, searchObj.matchMode)) || (isNumberType(searchObj.type) && isNull(searchObj.value))) {
|
|
2749
2762
|
return data;
|
|
2750
2763
|
}
|
|
2751
2764
|
data = data.filter((obj) => {
|
|
2752
2765
|
let isExists;
|
|
2753
2766
|
if (searchObj.field) {
|
|
2754
|
-
currentVal = getSearchValue(
|
|
2767
|
+
currentVal = getSearchValue(get(obj, searchObj.field), searchObj.type);
|
|
2755
2768
|
}
|
|
2756
2769
|
else {
|
|
2757
2770
|
currentVal = [];
|
|
2758
|
-
|
|
2759
|
-
if ((
|
|
2771
|
+
forEach(obj, (val, key) => {
|
|
2772
|
+
if ((includes(visibleCols, key))) {
|
|
2760
2773
|
currentVal.push(val);
|
|
2761
2774
|
}
|
|
2762
2775
|
else {
|
|
2763
2776
|
// WMS-22271 If the key is in nested key format (dot format)
|
|
2764
2777
|
// Find all the indexes of the key in visiblecols and extract their values from obj
|
|
2765
|
-
const colIndex =
|
|
2766
|
-
|
|
2767
|
-
|
|
2778
|
+
const colIndex = filter(range(visibleCols.length), (i) => visibleCols[i].includes(key));
|
|
2779
|
+
forEach(colIndex, (index) => {
|
|
2780
|
+
// @ts-ignore
|
|
2781
|
+
const value = get(obj, visibleCols[index]);
|
|
2768
2782
|
if (currentVal.indexOf(value) < 0) {
|
|
2769
2783
|
currentVal.push(value);
|
|
2770
2784
|
}
|
|
@@ -2775,31 +2789,31 @@ const getFilteredData = (data, searchObj, visibleCols = []) => {
|
|
|
2775
2789
|
}
|
|
2776
2790
|
switch (searchObj.matchMode) {
|
|
2777
2791
|
case 'start':
|
|
2778
|
-
isExists =
|
|
2792
|
+
isExists = startsWith(currentVal, searchVal);
|
|
2779
2793
|
break;
|
|
2780
2794
|
case 'end':
|
|
2781
|
-
isExists =
|
|
2795
|
+
isExists = endsWith(currentVal, searchVal);
|
|
2782
2796
|
break;
|
|
2783
2797
|
case 'exact':
|
|
2784
|
-
isExists =
|
|
2798
|
+
isExists = isEqual(currentVal, searchVal);
|
|
2785
2799
|
break;
|
|
2786
2800
|
case 'notequals':
|
|
2787
|
-
isExists = !
|
|
2801
|
+
isExists = !isEqual(currentVal, searchVal);
|
|
2788
2802
|
break;
|
|
2789
2803
|
case 'null':
|
|
2790
|
-
isExists =
|
|
2804
|
+
isExists = isNull(currentVal);
|
|
2791
2805
|
break;
|
|
2792
2806
|
case 'isnotnull':
|
|
2793
|
-
isExists = !
|
|
2807
|
+
isExists = !isNull(currentVal);
|
|
2794
2808
|
break;
|
|
2795
2809
|
case 'empty':
|
|
2796
|
-
isExists =
|
|
2810
|
+
isExists = isEmpty(currentVal);
|
|
2797
2811
|
break;
|
|
2798
2812
|
case 'isnotempty':
|
|
2799
|
-
isExists = !
|
|
2813
|
+
isExists = !isEmpty(currentVal);
|
|
2800
2814
|
break;
|
|
2801
2815
|
case 'nullorempty':
|
|
2802
|
-
isExists =
|
|
2816
|
+
isExists = isNull(currentVal) || isEmpty(currentVal);
|
|
2803
2817
|
break;
|
|
2804
2818
|
case 'lessthan':
|
|
2805
2819
|
isExists = currentVal < searchVal;
|
|
@@ -2814,7 +2828,7 @@ const getFilteredData = (data, searchObj, visibleCols = []) => {
|
|
|
2814
2828
|
isExists = currentVal >= searchVal;
|
|
2815
2829
|
break;
|
|
2816
2830
|
default:
|
|
2817
|
-
isExists = isNumberType(searchObj.type) ?
|
|
2831
|
+
isExists = isNumberType(searchObj.type) ? isEqual(currentVal, searchVal) : includes(currentVal, searchVal);
|
|
2818
2832
|
break;
|
|
2819
2833
|
}
|
|
2820
2834
|
return isExists;
|
|
@@ -2899,13 +2913,13 @@ class TableFilterSortDirective {
|
|
|
2899
2913
|
// Get first or last page based on sort info of primary key
|
|
2900
2914
|
getNavigationTargetBySortInfo() {
|
|
2901
2915
|
return this.table.sortInfo && this.table.sortInfo.direction === 'desc' &&
|
|
2902
|
-
|
|
2916
|
+
includes(this.table.primaryKey, this.table.sortInfo.field) ? 'first' : 'last';
|
|
2903
2917
|
}
|
|
2904
2918
|
// Returns all the columns of the table wherein, showinfilter is set to true
|
|
2905
2919
|
getTableVisibleCols() {
|
|
2906
2920
|
const visibleCols = [];
|
|
2907
|
-
|
|
2908
|
-
if (
|
|
2921
|
+
forEach(this.table.columns, (val, col) => {
|
|
2922
|
+
if (toLower(toString(val.showinfilter)) === 'true' && col !== 'rowOperations' && val.searchable) {
|
|
2909
2923
|
visibleCols.push(col);
|
|
2910
2924
|
}
|
|
2911
2925
|
});
|
|
@@ -2916,7 +2930,7 @@ class TableFilterSortDirective {
|
|
|
2916
2930
|
if (searchObj.field) {
|
|
2917
2931
|
setFilterFields(filterFields, searchObj);
|
|
2918
2932
|
}
|
|
2919
|
-
else if (!
|
|
2933
|
+
else if (!isEmpty(searchObj)) {
|
|
2920
2934
|
const visibleCols = this.getTableVisibleCols();
|
|
2921
2935
|
setFilterFields(filterFields, searchObj, visibleCols);
|
|
2922
2936
|
}
|
|
@@ -2925,8 +2939,8 @@ class TableFilterSortDirective {
|
|
|
2925
2939
|
getFilterFields(searchObj) {
|
|
2926
2940
|
searchObj = searchObj || {};
|
|
2927
2941
|
const filterFields = {};
|
|
2928
|
-
if (
|
|
2929
|
-
|
|
2942
|
+
if (isArray(searchObj)) {
|
|
2943
|
+
forEach(searchObj, obj => {
|
|
2930
2944
|
this.invokeSetFilterfieldBasedOnFieldval(obj, filterFields);
|
|
2931
2945
|
});
|
|
2932
2946
|
}
|
|
@@ -2947,11 +2961,11 @@ class TableFilterSortDirective {
|
|
|
2947
2961
|
// Reset the sort based on sort returned by the call
|
|
2948
2962
|
resetSortStatus(variableSort) {
|
|
2949
2963
|
let gridSortString;
|
|
2950
|
-
if (!
|
|
2964
|
+
if (!isEmpty(this.table.sortInfo) && this.table.datasource) {
|
|
2951
2965
|
gridSortString = this.table.sortInfo.field + ' ' + this.table.sortInfo.direction;
|
|
2952
2966
|
variableSort = this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).orderBy || variableSort;
|
|
2953
2967
|
if (variableSort) { // If multiple order by fields are present, compare with the first one
|
|
2954
|
-
variableSort =
|
|
2968
|
+
variableSort = head(split(variableSort, ','));
|
|
2955
2969
|
}
|
|
2956
2970
|
if (gridSortString !== variableSort) {
|
|
2957
2971
|
this.table.callDataGridMethod('resetSortIcons');
|
|
@@ -2989,7 +3003,7 @@ class TableFilterSortDirective {
|
|
|
2989
3003
|
return;
|
|
2990
3004
|
}
|
|
2991
3005
|
if (this.table.datasource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {
|
|
2992
|
-
if (
|
|
3006
|
+
if (isEmpty(this.table.datasource.execute(DataSource.Operation.GET_OPTIONS).filterFields)) {
|
|
2993
3007
|
this.clearFilter(true);
|
|
2994
3008
|
}
|
|
2995
3009
|
this.resetSortStatus(variableSort);
|
|
@@ -3005,7 +3019,7 @@ class TableFilterSortDirective {
|
|
|
3005
3019
|
if (!searchObj) {
|
|
3006
3020
|
return data;
|
|
3007
3021
|
}
|
|
3008
|
-
if (
|
|
3022
|
+
if (isArray(searchObj)) {
|
|
3009
3023
|
searchObj.forEach((obj) => {
|
|
3010
3024
|
data = getFilteredData(data, obj, visibleCols);
|
|
3011
3025
|
});
|
|
@@ -3018,7 +3032,7 @@ class TableFilterSortDirective {
|
|
|
3018
3032
|
// Returns data sorted using sortObj
|
|
3019
3033
|
getSortResult(data, sortObj) {
|
|
3020
3034
|
if (sortObj && sortObj.direction) {
|
|
3021
|
-
data =
|
|
3035
|
+
data = orderBy(data, sortObj.field, sortObj.direction);
|
|
3022
3036
|
}
|
|
3023
3037
|
return data;
|
|
3024
3038
|
}
|
|
@@ -3033,7 +3047,7 @@ class TableFilterSortDirective {
|
|
|
3033
3047
|
else {
|
|
3034
3048
|
this.table.sortInfo = searchSortObj;
|
|
3035
3049
|
}
|
|
3036
|
-
if (
|
|
3050
|
+
if (isObject(data) && !isArray(data)) {
|
|
3037
3051
|
data = [data];
|
|
3038
3052
|
}
|
|
3039
3053
|
/*Both the functions return same 'data' if arguments are undefined*/
|
|
@@ -3065,9 +3079,9 @@ class TableFilterSortDirective {
|
|
|
3065
3079
|
this.table.filterInfo = searchObj;
|
|
3066
3080
|
data = this.getSearchResult(data, searchObj);
|
|
3067
3081
|
// Compared the filtered data and original data, to show or hide the rows
|
|
3068
|
-
|
|
3082
|
+
forEach(this.table.gridData, (value, index) => {
|
|
3069
3083
|
const $row = $($rows[index]);
|
|
3070
|
-
if (
|
|
3084
|
+
if (find(data, obj => isEqual(obj, value))) {
|
|
3071
3085
|
$row.show();
|
|
3072
3086
|
}
|
|
3073
3087
|
else {
|
|
@@ -3138,7 +3152,7 @@ class TableFilterSortDirective {
|
|
|
3138
3152
|
}
|
|
3139
3153
|
searchHandler(searchSortObj, e, type, statePersistenceTriggered) {
|
|
3140
3154
|
let obj;
|
|
3141
|
-
if (
|
|
3155
|
+
if (isArray(searchSortObj)) {
|
|
3142
3156
|
obj = searchSortObj.filter(function (searchObject) {
|
|
3143
3157
|
return (searchObject.matchMode !== undefined && searchObject.value !== undefined) || (searchObject.value !== undefined && searchObject.field === '');
|
|
3144
3158
|
});
|
|
@@ -3147,7 +3161,7 @@ class TableFilterSortDirective {
|
|
|
3147
3161
|
obj = { field: searchSortObj.field, value: searchSortObj.value, type: searchSortObj.type };
|
|
3148
3162
|
}
|
|
3149
3163
|
if (this.table.getConfiguredState() !== 'none' && unsupportedStatePersistenceTypes.indexOf(this.table.navigation) < 0) {
|
|
3150
|
-
if ((
|
|
3164
|
+
if ((isArray(searchSortObj) && obj.length) || (searchSortObj.value)) {
|
|
3151
3165
|
this.table.statePersistence.removeWidgetState(this.table, 'search');
|
|
3152
3166
|
this.table.statePersistence.setWidgetState(this.table, { search: obj });
|
|
3153
3167
|
}
|
|
@@ -3170,7 +3184,7 @@ class TableFilterSortDirective {
|
|
|
3170
3184
|
let output;
|
|
3171
3185
|
const userFilters = {};
|
|
3172
3186
|
// Transform filter fields from array to object having field names as keys
|
|
3173
|
-
if (
|
|
3187
|
+
if (isArray(filterFields)) {
|
|
3174
3188
|
filterFields.forEach(filterField => {
|
|
3175
3189
|
transformFilterField(userFilters, filterField);
|
|
3176
3190
|
});
|
|
@@ -3185,9 +3199,9 @@ class TableFilterSortDirective {
|
|
|
3185
3199
|
}
|
|
3186
3200
|
filterFields = [];
|
|
3187
3201
|
// if the field is not selected in search filter dropdown, building the filter fields object
|
|
3188
|
-
if (
|
|
3189
|
-
if (
|
|
3190
|
-
|
|
3202
|
+
if (isEmpty(userFilters) && !isEmpty(obj)) {
|
|
3203
|
+
if (isArray(obj)) {
|
|
3204
|
+
forEach(obj, searchObj => {
|
|
3191
3205
|
addToFilterFields(filterFields, searchObj);
|
|
3192
3206
|
});
|
|
3193
3207
|
}
|
|
@@ -3197,13 +3211,9 @@ class TableFilterSortDirective {
|
|
|
3197
3211
|
}
|
|
3198
3212
|
else {
|
|
3199
3213
|
// Transform back the filter fields from object to array
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
matchMode: val.matchMode,
|
|
3204
|
-
type: val.type,
|
|
3205
|
-
value: val.value
|
|
3206
|
-
});
|
|
3214
|
+
forEach(userFilters, (val, key) => {
|
|
3215
|
+
// @ts-ignore
|
|
3216
|
+
filterFields.push({ field: key, matchMode: val.matchMode, type: val.type, value: val.value });
|
|
3207
3217
|
});
|
|
3208
3218
|
}
|
|
3209
3219
|
if (dataSource && dataSource.execute(DataSource.Operation.SUPPORTS_SERVER_FILTER)) {
|
|
@@ -3281,7 +3291,7 @@ class TableFilterSortDirective {
|
|
|
3281
3291
|
this.table.rowFilter[fieldName] = this.table.rowFilter[fieldName] || {};
|
|
3282
3292
|
this.table.rowFilter[fieldName].matchMode = condition;
|
|
3283
3293
|
// For empty match modes, clear off the value and call filter
|
|
3284
|
-
if (
|
|
3294
|
+
if (includes(this.table.emptyMatchModes, condition)) {
|
|
3285
3295
|
this.table.columns[fieldName].resetFilter();
|
|
3286
3296
|
this.table.onRowFilterChange();
|
|
3287
3297
|
}
|
|
@@ -3304,10 +3314,10 @@ class TableFilterSortDirective {
|
|
|
3304
3314
|
}
|
|
3305
3315
|
const fieldName = filterDef.field;
|
|
3306
3316
|
const formFields = this.table.fullFieldDefs;
|
|
3307
|
-
const filterOnFields =
|
|
3308
|
-
const newVal =
|
|
3317
|
+
const filterOnFields = filter(formFields, { 'filteronfilter': fieldName });
|
|
3318
|
+
const newVal = get(this.table.rowFilter, [fieldName, 'value']);
|
|
3309
3319
|
// Loop over the fields for which the current field is filter on field
|
|
3310
|
-
|
|
3320
|
+
forEach(filterOnFields, filterField => {
|
|
3311
3321
|
const filterOn = filterField.filteronfilter;
|
|
3312
3322
|
const filterKey = filterField.field;
|
|
3313
3323
|
const filterFields = {};
|
|
@@ -3332,13 +3342,13 @@ class TableFilterSortDirective {
|
|
|
3332
3342
|
// This method is triggered on value change in multi column filter
|
|
3333
3343
|
onRowFilterChange(fieldName) {
|
|
3334
3344
|
const searchObj = [];
|
|
3335
|
-
const field =
|
|
3345
|
+
const field = find(this.table.fullFieldDefs, { 'field': fieldName });
|
|
3336
3346
|
// Convert row filters to a search object and call search handler
|
|
3337
|
-
|
|
3338
|
-
if ((isDefined(value.value) && value.value !== '') ||
|
|
3347
|
+
forEach(this.table.rowFilter, (value, key) => {
|
|
3348
|
+
if ((isDefined(value.value) && value.value !== '') || includes(this.table.emptyMatchModes, value.matchMode)) {
|
|
3339
3349
|
if (field && key === field.field) {
|
|
3340
3350
|
value.type = value.type || field.type;
|
|
3341
|
-
value.matchMode = value.matchMode ||
|
|
3351
|
+
value.matchMode = value.matchMode || get(this.table.matchModeTypesMap[value.type], 0);
|
|
3342
3352
|
}
|
|
3343
3353
|
searchObj.push({
|
|
3344
3354
|
field: key,
|
|
@@ -3373,17 +3383,17 @@ class TableFilterSortDirective {
|
|
|
3373
3383
|
static { this.ɵfac = function TableFilterSortDirective_Factory(t) { return new (t || TableFilterSortDirective)(i0.ɵɵdirectiveInject(TableComponent, 2)); }; }
|
|
3374
3384
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableFilterSortDirective, selectors: [["", "wmTableFilterSort", ""]] }); }
|
|
3375
3385
|
}
|
|
3376
|
-
(
|
|
3386
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableFilterSortDirective, [{
|
|
3377
3387
|
type: Directive,
|
|
3378
3388
|
args: [{
|
|
3379
3389
|
selector: '[wmTableFilterSort]'
|
|
3380
3390
|
}]
|
|
3381
|
-
}],
|
|
3391
|
+
}], () => [{ type: undefined, decorators: [{
|
|
3382
3392
|
type: Self
|
|
3383
3393
|
}, {
|
|
3384
3394
|
type: Inject,
|
|
3385
3395
|
args: [TableComponent]
|
|
3386
|
-
}] }]
|
|
3396
|
+
}] }], null); })();
|
|
3387
3397
|
|
|
3388
3398
|
const registerProps$4 = () => {
|
|
3389
3399
|
register('wm-table-action', new Map([
|
|
@@ -3412,8 +3422,8 @@ const registerProps$4 = () => {
|
|
|
3412
3422
|
const WIDGET_CONFIG$4 = { widgetType: 'wm-table-action', hostClass: '' };
|
|
3413
3423
|
class TableActionDirective extends BaseComponent {
|
|
3414
3424
|
static { this.initializeProps = registerProps$4(); }
|
|
3415
|
-
constructor(inj, table) {
|
|
3416
|
-
super(inj, WIDGET_CONFIG$4);
|
|
3425
|
+
constructor(inj, table, explicitContext) {
|
|
3426
|
+
super(inj, WIDGET_CONFIG$4, explicitContext);
|
|
3417
3427
|
this.table = table;
|
|
3418
3428
|
}
|
|
3419
3429
|
populateAction() {
|
|
@@ -3423,7 +3433,7 @@ class TableActionDirective extends BaseComponent {
|
|
|
3423
3433
|
show: this.show,
|
|
3424
3434
|
class: this.class || '',
|
|
3425
3435
|
iconclass: this.iconclass || '',
|
|
3426
|
-
title:
|
|
3436
|
+
title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,
|
|
3427
3437
|
action: this.action,
|
|
3428
3438
|
accessroles: this.accessroles,
|
|
3429
3439
|
shortcutkey: this.shortcutkey,
|
|
@@ -3455,12 +3465,12 @@ class TableActionDirective extends BaseComponent {
|
|
|
3455
3465
|
this.buttonDef[key] = nv;
|
|
3456
3466
|
}
|
|
3457
3467
|
}
|
|
3458
|
-
static { this.ɵfac = function TableActionDirective_Factory(t) { return new (t || TableActionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 8)); }; }
|
|
3468
|
+
static { this.ɵfac = function TableActionDirective_Factory(t) { return new (t || TableActionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
3459
3469
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableActionDirective, selectors: [["", "wmTableAction", ""]], features: [i0.ɵɵProvidersFeature([
|
|
3460
3470
|
provideAsWidgetRef(TableActionDirective)
|
|
3461
3471
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
3462
3472
|
}
|
|
3463
|
-
(
|
|
3473
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableActionDirective, [{
|
|
3464
3474
|
type: Directive,
|
|
3465
3475
|
args: [{
|
|
3466
3476
|
selector: '[wmTableAction]',
|
|
@@ -3468,9 +3478,14 @@ class TableActionDirective extends BaseComponent {
|
|
|
3468
3478
|
provideAsWidgetRef(TableActionDirective)
|
|
3469
3479
|
]
|
|
3470
3480
|
}]
|
|
3471
|
-
}],
|
|
3481
|
+
}], () => [{ type: i0.Injector }, { type: TableComponent, decorators: [{
|
|
3472
3482
|
type: Optional
|
|
3473
|
-
}] }
|
|
3483
|
+
}] }, { type: undefined, decorators: [{
|
|
3484
|
+
type: Inject,
|
|
3485
|
+
args: ['EXPLICIT_CONTEXT']
|
|
3486
|
+
}, {
|
|
3487
|
+
type: Optional
|
|
3488
|
+
}] }], null); })();
|
|
3474
3489
|
|
|
3475
3490
|
const registerProps$3 = () => {
|
|
3476
3491
|
register('wm-table-column', new Map([
|
|
@@ -3484,7 +3499,7 @@ const registerProps$3 = () => {
|
|
|
3484
3499
|
['collapsible', PROP_BOOLEAN],
|
|
3485
3500
|
['col-ng-class', PROP_STRING],
|
|
3486
3501
|
['currencypattern', PROP_STRING],
|
|
3487
|
-
['customExpression', PROP_BOOLEAN],
|
|
3502
|
+
['customExpression', PROP_BOOLEAN], // Internal property to check if column has custom expression
|
|
3488
3503
|
['dataentrymode', { value: 'default', ...PROP_STRING }],
|
|
3489
3504
|
['datafield', PROP_STRING],
|
|
3490
3505
|
['dataoptions', PROP_ANY],
|
|
@@ -3575,8 +3590,8 @@ const registerProps$2 = () => {
|
|
|
3575
3590
|
const WIDGET_CONFIG$3 = { widgetType: 'wm-table-column-group', hostClass: '' };
|
|
3576
3591
|
class TableColumnGroupDirective extends BaseComponent {
|
|
3577
3592
|
static { this.initializeProps = registerProps$2(); }
|
|
3578
|
-
constructor(inj, group, table) {
|
|
3579
|
-
super(inj, WIDGET_CONFIG$3);
|
|
3593
|
+
constructor(inj, group, table, explicitContext) {
|
|
3594
|
+
super(inj, WIDGET_CONFIG$3, explicitContext);
|
|
3580
3595
|
this.group = group;
|
|
3581
3596
|
this.table = table;
|
|
3582
3597
|
this.config = {};
|
|
@@ -3611,12 +3626,12 @@ class TableColumnGroupDirective extends BaseComponent {
|
|
|
3611
3626
|
const fieldName = this.group && this.group.name;
|
|
3612
3627
|
setHeaderConfigForTable(this.table.headerConfig, this.config, fieldName, fieldName ? colIndex : headerIndex);
|
|
3613
3628
|
}
|
|
3614
|
-
static { this.ɵfac = function TableColumnGroupDirective_Factory(t) { return new (t || TableColumnGroupDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableColumnGroupDirective, 12), i0.ɵɵdirectiveInject(TableComponent, 8)); }; }
|
|
3629
|
+
static { this.ɵfac = function TableColumnGroupDirective_Factory(t) { return new (t || TableColumnGroupDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableColumnGroupDirective, 12), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
3615
3630
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableColumnGroupDirective, selectors: [["", "wmTableColumnGroup", ""]], features: [i0.ɵɵProvidersFeature([
|
|
3616
3631
|
provideAsWidgetRef(TableColumnGroupDirective)
|
|
3617
3632
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
3618
3633
|
}
|
|
3619
|
-
(
|
|
3634
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableColumnGroupDirective, [{
|
|
3620
3635
|
type: Directive,
|
|
3621
3636
|
args: [{
|
|
3622
3637
|
selector: '[wmTableColumnGroup]',
|
|
@@ -3624,13 +3639,18 @@ class TableColumnGroupDirective extends BaseComponent {
|
|
|
3624
3639
|
provideAsWidgetRef(TableColumnGroupDirective)
|
|
3625
3640
|
]
|
|
3626
3641
|
}]
|
|
3627
|
-
}],
|
|
3642
|
+
}], () => [{ type: i0.Injector }, { type: TableColumnGroupDirective, decorators: [{
|
|
3628
3643
|
type: SkipSelf
|
|
3629
3644
|
}, {
|
|
3630
3645
|
type: Optional
|
|
3631
3646
|
}] }, { type: TableComponent, decorators: [{
|
|
3632
3647
|
type: Optional
|
|
3633
|
-
}] }
|
|
3648
|
+
}] }, { type: undefined, decorators: [{
|
|
3649
|
+
type: Inject,
|
|
3650
|
+
args: ['EXPLICIT_CONTEXT']
|
|
3651
|
+
}, {
|
|
3652
|
+
type: Optional
|
|
3653
|
+
}] }], null); })();
|
|
3634
3654
|
|
|
3635
3655
|
const _c0 = ["customExprTmpl"];
|
|
3636
3656
|
const _c1 = ["inlineWidgetTmpl"];
|
|
@@ -3663,8 +3683,8 @@ class FieldDef {
|
|
|
3663
3683
|
}
|
|
3664
3684
|
class TableColumnDirective extends BaseComponent {
|
|
3665
3685
|
static { this.initializeProps = registerProps$3(); }
|
|
3666
|
-
constructor(inj, appDefaults, table, group, bindfilterdataset, binddataset) {
|
|
3667
|
-
super(inj, WIDGET_CONFIG$2);
|
|
3686
|
+
constructor(inj, appDefaults, table, group, bindfilterdataset, binddataset, explicitContext) {
|
|
3687
|
+
super(inj, WIDGET_CONFIG$2, explicitContext);
|
|
3668
3688
|
this.appDefaults = appDefaults;
|
|
3669
3689
|
this.table = table;
|
|
3670
3690
|
this.group = group;
|
|
@@ -3675,22 +3695,22 @@ class TableColumnDirective extends BaseComponent {
|
|
|
3675
3695
|
this.observeOnFields = [];
|
|
3676
3696
|
this.aggregate = {
|
|
3677
3697
|
sum: () => {
|
|
3678
|
-
return
|
|
3698
|
+
return sum(this._getColumnData());
|
|
3679
3699
|
},
|
|
3680
3700
|
average: (precision = 2) => {
|
|
3681
|
-
return
|
|
3701
|
+
return round(mean(this._getColumnData()), precision);
|
|
3682
3702
|
},
|
|
3683
3703
|
count: () => {
|
|
3684
3704
|
return this._getColumnData().length;
|
|
3685
3705
|
},
|
|
3686
3706
|
minimum: () => {
|
|
3687
|
-
return
|
|
3707
|
+
return min(this._getColumnData());
|
|
3688
3708
|
},
|
|
3689
3709
|
maximum: () => {
|
|
3690
|
-
return
|
|
3710
|
+
return max(this._getColumnData());
|
|
3691
3711
|
},
|
|
3692
3712
|
percent: (value, precision = 2) => {
|
|
3693
|
-
return
|
|
3713
|
+
return round((sum(this._getColumnData()) / value) * 100, precision);
|
|
3694
3714
|
}
|
|
3695
3715
|
};
|
|
3696
3716
|
this.notifyForFields = [];
|
|
@@ -3947,7 +3967,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
3947
3967
|
if (this.relatedEntityName) {
|
|
3948
3968
|
this.widget['is-related'] = true;
|
|
3949
3969
|
this.widget['lookup-type'] = this.relatedEntityName;
|
|
3950
|
-
this.widget['lookup-field'] =
|
|
3970
|
+
this.widget['lookup-field'] = last(split(this.field, '.'));
|
|
3951
3971
|
}
|
|
3952
3972
|
if (this.filterwidget === FormWidgetType.AUTOCOMPLETE) {
|
|
3953
3973
|
this.filterInstance.dataoptions = getDistinctFieldProperties(this.table.datasource, this);
|
|
@@ -3974,11 +3994,11 @@ class TableColumnDirective extends BaseComponent {
|
|
|
3974
3994
|
if (this['related-entity-name'] && this['primary-key']) {
|
|
3975
3995
|
// Fetch the data for the related fields
|
|
3976
3996
|
this.isDataSetBound = true;
|
|
3977
|
-
const bindings =
|
|
3997
|
+
const bindings = split(this.binding, '.');
|
|
3978
3998
|
this.showPendingSpinner = true;
|
|
3979
3999
|
fetchRelatedFieldData(dataSource, this.widget, {
|
|
3980
|
-
relatedField:
|
|
3981
|
-
datafield:
|
|
4000
|
+
relatedField: head(bindings),
|
|
4001
|
+
datafield: last(bindings),
|
|
3982
4002
|
widget: 'edit-widget-type'
|
|
3983
4003
|
});
|
|
3984
4004
|
}
|
|
@@ -4007,7 +4027,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4007
4027
|
this.filterInstance.registerReadyStateListener(() => {
|
|
4008
4028
|
if (isDataSetWidget(this.filterwidget)) {
|
|
4009
4029
|
// if binding is department.deptId then field will be deptId
|
|
4010
|
-
const field =
|
|
4030
|
+
const field = last(this.binding.split('.'));
|
|
4011
4031
|
this.filterInstance.dataset = this._filterDataSet;
|
|
4012
4032
|
this.filterInstance.datafield = this.filterdatafield || field;
|
|
4013
4033
|
this.filterInstance.displayfield = this.filterdisplayfield || field;
|
|
@@ -4024,7 +4044,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4024
4044
|
}
|
|
4025
4045
|
// Notifies all the dependent validation controls incase of any changes
|
|
4026
4046
|
notifyChanges(quickEdit) {
|
|
4027
|
-
|
|
4047
|
+
forEach(this.notifyForFields, field => {
|
|
4028
4048
|
if (quickEdit && this._isNewEditableRow) {
|
|
4029
4049
|
field.fieldValidations_new.validate();
|
|
4030
4050
|
}
|
|
@@ -4035,7 +4055,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4035
4055
|
}
|
|
4036
4056
|
// Watches control for dependent validation changes
|
|
4037
4057
|
observeOn(fields) {
|
|
4038
|
-
this.observeOnFields =
|
|
4058
|
+
this.observeOnFields = cloneDeep(fields);
|
|
4039
4059
|
}
|
|
4040
4060
|
// Sets the default validators inline and quickedit new row using props
|
|
4041
4061
|
setUpValidators() {
|
|
@@ -4046,11 +4066,11 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4046
4066
|
}
|
|
4047
4067
|
// Sets the Async validators on the inline and quickedit new row form control
|
|
4048
4068
|
setAsyncValidators(validators) {
|
|
4049
|
-
this.asyncValidators =
|
|
4069
|
+
this.asyncValidators = cloneDeep(validators);
|
|
4050
4070
|
}
|
|
4051
4071
|
// Sets the default/custom validators on the inline and quickedit new row form control
|
|
4052
4072
|
setValidators(validators) {
|
|
4053
|
-
this.syncValidators =
|
|
4073
|
+
this.syncValidators = cloneDeep(validators);
|
|
4054
4074
|
}
|
|
4055
4075
|
boundFn(fn) {
|
|
4056
4076
|
return fn();
|
|
@@ -4065,7 +4085,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4065
4085
|
this._invokeSummaryRowData(newData);
|
|
4066
4086
|
}
|
|
4067
4087
|
_invokeSummaryRowData(data) {
|
|
4068
|
-
|
|
4088
|
+
forEach(data, (item, index) => {
|
|
4069
4089
|
const content = item;
|
|
4070
4090
|
if (content instanceof Promise) {
|
|
4071
4091
|
content.then(res => {
|
|
@@ -4083,7 +4103,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4083
4103
|
});
|
|
4084
4104
|
}
|
|
4085
4105
|
_getColumnData() {
|
|
4086
|
-
return
|
|
4106
|
+
return map(this.table.dataset, this.binding);
|
|
4087
4107
|
}
|
|
4088
4108
|
/* Summary Row Logic end */
|
|
4089
4109
|
// Set the props on the inline edit widget
|
|
@@ -4133,7 +4153,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4133
4153
|
this.limit = this.limit ? +this.limit : undefined;
|
|
4134
4154
|
this.editWidgetType = this['edit-widget-type'] = this['edit-widget-type'] || getEditModeWidget(this);
|
|
4135
4155
|
this.filterOn = this['filter-on'];
|
|
4136
|
-
this.readonly = isDefined(this.getAttr('readonly')) ? this.getAttr('readonly') === 'true' : (this['related-entity-name'] ? !this['primary-key'] :
|
|
4156
|
+
this.readonly = isDefined(this.getAttr('readonly')) ? this.getAttr('readonly') === 'true' : (this['related-entity-name'] ? !this['primary-key'] : includes(['identity', 'uniqueid', 'sequence'], this.generator));
|
|
4137
4157
|
this.filterwidget = this.filterwidget || getDataTableFilterWidget(this.type || 'string');
|
|
4138
4158
|
this.isFilterDataSetBound = !!this.bindfilterdataset;
|
|
4139
4159
|
this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);
|
|
@@ -4159,6 +4179,15 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4159
4179
|
case 'caption':
|
|
4160
4180
|
this.displayName = nv || '';
|
|
4161
4181
|
this.setProperty('displayName', this.displayName);
|
|
4182
|
+
// Fix for [WMS-25934]: update the headerConfig list when there is change in display name
|
|
4183
|
+
// when column is inside a group then consider the col index and not header index.
|
|
4184
|
+
const fieldName = this.group && this.group.name;
|
|
4185
|
+
const index = fieldName ? parseInt(this.getAttr('index'), 10) : parseInt(this.getAttr('headerIndex'), 10);
|
|
4186
|
+
// Register column with header config to create group structure
|
|
4187
|
+
setHeaderConfigForTable(this.table.headerConfig, {
|
|
4188
|
+
field: this.field,
|
|
4189
|
+
displayName: this.displayName
|
|
4190
|
+
}, fieldName, index);
|
|
4162
4191
|
break;
|
|
4163
4192
|
case 'defaultvalue':
|
|
4164
4193
|
this.defaultvalue = getDefaultValue(this.defaultvalue, this.type, this.editWidgetType);
|
|
@@ -4197,7 +4226,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4197
4226
|
this.table.redraw(true);
|
|
4198
4227
|
}
|
|
4199
4228
|
}
|
|
4200
|
-
static { this.ɵfac = function TableColumnDirective_Factory(t) { return new (t || TableColumnDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i2.AppDefaults), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject(TableColumnGroupDirective, 8), i0.ɵɵinjectAttribute('filterdataset.bind'), i0.ɵɵinjectAttribute('dataset.bind')); }; }
|
|
4229
|
+
static { this.ɵfac = function TableColumnDirective_Factory(t) { return new (t || TableColumnDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i2.AppDefaults), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject(TableColumnGroupDirective, 8), i0.ɵɵinjectAttribute('filterdataset.bind'), i0.ɵɵinjectAttribute('dataset.bind'), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
4201
4230
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableColumnDirective, selectors: [["", "wmTableColumn", ""]], contentQueries: function TableColumnDirective_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
4202
4231
|
i0.ɵɵcontentQuery(dirIndex, _c0, 5);
|
|
4203
4232
|
i0.ɵɵcontentQuery(dirIndex, _c1, 5);
|
|
@@ -4217,7 +4246,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4217
4246
|
provideAsWidgetRef(TableColumnDirective)
|
|
4218
4247
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
4219
4248
|
}
|
|
4220
|
-
(
|
|
4249
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableColumnDirective, [{
|
|
4221
4250
|
type: Directive,
|
|
4222
4251
|
args: [{
|
|
4223
4252
|
selector: '[wmTableColumn]',
|
|
@@ -4225,7 +4254,7 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4225
4254
|
provideAsWidgetRef(TableColumnDirective)
|
|
4226
4255
|
]
|
|
4227
4256
|
}]
|
|
4228
|
-
}],
|
|
4257
|
+
}], () => [{ type: i0.Injector }, { type: i2.AppDefaults }, { type: TableComponent, decorators: [{
|
|
4229
4258
|
type: Optional
|
|
4230
4259
|
}] }, { type: TableColumnGroupDirective, decorators: [{
|
|
4231
4260
|
type: Optional
|
|
@@ -4235,7 +4264,12 @@ class TableColumnDirective extends BaseComponent {
|
|
|
4235
4264
|
}] }, { type: undefined, decorators: [{
|
|
4236
4265
|
type: Attribute,
|
|
4237
4266
|
args: ['dataset.bind']
|
|
4238
|
-
}] }
|
|
4267
|
+
}] }, { type: undefined, decorators: [{
|
|
4268
|
+
type: Inject,
|
|
4269
|
+
args: ['EXPLICIT_CONTEXT']
|
|
4270
|
+
}, {
|
|
4271
|
+
type: Optional
|
|
4272
|
+
}] }], { _filterInstances: [{
|
|
4239
4273
|
type: ContentChildren,
|
|
4240
4274
|
args: ['filterWidget', { descendants: true }]
|
|
4241
4275
|
}], _inlineInstances: [{
|
|
@@ -4271,8 +4305,8 @@ const registerProps$1 = () => {
|
|
|
4271
4305
|
const WIDGET_CONFIG$1 = { widgetType: 'wm-table-row', hostClass: '' };
|
|
4272
4306
|
class TableRowDirective extends BaseComponent {
|
|
4273
4307
|
static { this.initializeProps = registerProps$1(); }
|
|
4274
|
-
constructor(inj, table) {
|
|
4275
|
-
super(inj, WIDGET_CONFIG$1);
|
|
4308
|
+
constructor(inj, table, explicitContext) {
|
|
4309
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
4276
4310
|
this.table = table;
|
|
4277
4311
|
}
|
|
4278
4312
|
populateConfig() {
|
|
@@ -4296,12 +4330,12 @@ class TableRowDirective extends BaseComponent {
|
|
|
4296
4330
|
this.config.content = this.content;
|
|
4297
4331
|
}
|
|
4298
4332
|
}
|
|
4299
|
-
static { this.ɵfac = function TableRowDirective_Factory(t) { return new (t || TableRowDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 12)); }; }
|
|
4333
|
+
static { this.ɵfac = function TableRowDirective_Factory(t) { return new (t || TableRowDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 12), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
4300
4334
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableRowDirective, selectors: [["", "wmTableRow", ""]], features: [i0.ɵɵProvidersFeature([
|
|
4301
4335
|
provideAsWidgetRef(TableRowDirective)
|
|
4302
4336
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
4303
4337
|
}
|
|
4304
|
-
(
|
|
4338
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableRowDirective, [{
|
|
4305
4339
|
type: Directive,
|
|
4306
4340
|
args: [{
|
|
4307
4341
|
selector: '[wmTableRow]',
|
|
@@ -4309,11 +4343,16 @@ class TableRowDirective extends BaseComponent {
|
|
|
4309
4343
|
provideAsWidgetRef(TableRowDirective)
|
|
4310
4344
|
]
|
|
4311
4345
|
}]
|
|
4312
|
-
}],
|
|
4346
|
+
}], () => [{ type: i0.Injector }, { type: TableComponent, decorators: [{
|
|
4313
4347
|
type: Optional
|
|
4314
4348
|
}, {
|
|
4315
4349
|
type: SkipSelf
|
|
4316
|
-
}] }
|
|
4350
|
+
}] }, { type: undefined, decorators: [{
|
|
4351
|
+
type: Inject,
|
|
4352
|
+
args: ['EXPLICIT_CONTEXT']
|
|
4353
|
+
}, {
|
|
4354
|
+
type: Optional
|
|
4355
|
+
}] }], null); })();
|
|
4317
4356
|
|
|
4318
4357
|
const registerProps = () => {
|
|
4319
4358
|
register('wm-table-row-action', new Map([
|
|
@@ -4337,15 +4376,15 @@ const registerProps = () => {
|
|
|
4337
4376
|
const WIDGET_CONFIG = { widgetType: 'wm-table-row-action', hostClass: '' };
|
|
4338
4377
|
class TableRowActionDirective extends BaseComponent {
|
|
4339
4378
|
static { this.initializeProps = registerProps(); }
|
|
4340
|
-
constructor(inj, table, contexts) {
|
|
4341
|
-
super(inj, WIDGET_CONFIG);
|
|
4379
|
+
constructor(inj, table, contexts, explicitContext) {
|
|
4380
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
4342
4381
|
this.table = table;
|
|
4343
4382
|
contexts[0].editRow = (evt) => this.table.editRow(evt);
|
|
4344
4383
|
contexts[0].deleteRow = (evt) => this.table.deleteRow(evt);
|
|
4345
4384
|
contexts[0].addNewRow = (evt) => this.table.addNewRow(evt);
|
|
4346
4385
|
}
|
|
4347
4386
|
getTitle() {
|
|
4348
|
-
return
|
|
4387
|
+
return isUndefined(this.title) ? (this['display-name'] || '') : this.title;
|
|
4349
4388
|
}
|
|
4350
4389
|
populateAction() {
|
|
4351
4390
|
this.buttonDef = {
|
|
@@ -4371,13 +4410,13 @@ class TableRowActionDirective extends BaseComponent {
|
|
|
4371
4410
|
this.populateAction();
|
|
4372
4411
|
this.table.registerRowActions(this.buttonDef);
|
|
4373
4412
|
}
|
|
4374
|
-
static { this.ɵfac = function TableRowActionDirective_Factory(t) { return new (t || TableRowActionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject(Context, 2)); }; }
|
|
4413
|
+
static { this.ɵfac = function TableRowActionDirective_Factory(t) { return new (t || TableRowActionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(TableComponent, 8), i0.ɵɵdirectiveInject(Context, 2), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
4375
4414
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TableRowActionDirective, selectors: [["", "wmTableRowAction", ""]], features: [i0.ɵɵProvidersFeature([
|
|
4376
4415
|
provideAsWidgetRef(TableRowActionDirective),
|
|
4377
4416
|
{ provide: Context, useFactory: () => { return {}; }, multi: true }
|
|
4378
4417
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
4379
4418
|
}
|
|
4380
|
-
(
|
|
4419
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableRowActionDirective, [{
|
|
4381
4420
|
type: Directive,
|
|
4382
4421
|
args: [{
|
|
4383
4422
|
selector: '[wmTableRowAction]',
|
|
@@ -4386,14 +4425,19 @@ class TableRowActionDirective extends BaseComponent {
|
|
|
4386
4425
|
{ provide: Context, useFactory: () => { return {}; }, multi: true }
|
|
4387
4426
|
]
|
|
4388
4427
|
}]
|
|
4389
|
-
}],
|
|
4428
|
+
}], () => [{ type: i0.Injector }, { type: TableComponent, decorators: [{
|
|
4390
4429
|
type: Optional
|
|
4391
4430
|
}] }, { type: Array, decorators: [{
|
|
4392
4431
|
type: Self
|
|
4393
4432
|
}, {
|
|
4394
4433
|
type: Inject,
|
|
4395
4434
|
args: [Context]
|
|
4396
|
-
}] }
|
|
4435
|
+
}] }, { type: undefined, decorators: [{
|
|
4436
|
+
type: Inject,
|
|
4437
|
+
args: ['EXPLICIT_CONTEXT']
|
|
4438
|
+
}, {
|
|
4439
|
+
type: Optional
|
|
4440
|
+
}] }], null); })();
|
|
4397
4441
|
|
|
4398
4442
|
const components = [
|
|
4399
4443
|
TableComponent,
|
|
@@ -4420,7 +4464,7 @@ class TableModule {
|
|
|
4420
4464
|
TooltipModule,
|
|
4421
4465
|
WmComponentsModule] }); }
|
|
4422
4466
|
}
|
|
4423
|
-
(
|
|
4467
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TableModule, [{
|
|
4424
4468
|
type: NgModule,
|
|
4425
4469
|
args: [{
|
|
4426
4470
|
imports: [
|