@wavemaker/app-ng-runtime 11.8.0-next.141669 → 11.8.0-next.141671
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 +29 -28
- 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/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,16 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, HostBinding, Directive, HostListener, Injectable,
|
|
2
|
+
import { Component, Inject, Optional, HostBinding, Directive, HostListener, Injectable, ElementRef, Attribute, ViewChild, ContentChildren, Injector, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import {
|
|
4
|
+
import { NumberSymbol, getLocaleNumberSymbol, CommonModule } from '@angular/common';
|
|
5
5
|
import * as i2$1 from '@angular/forms';
|
|
6
6
|
import { FormControlName, NgModel, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
7
7
|
import * as i3 from 'angular-imask';
|
|
8
8
|
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
|
9
9
|
import * as i2 from '@wm/components/base';
|
|
10
|
-
import {
|
|
10
|
+
import { PROP_STRING, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, register, DISPLAY_TYPE, StylableComponent, styler, provideAsWidgetRef, APPLY_STYLES_TYPE, WidgetConfig, registerFormWidget, provideAs, extractDataAsArray, ToDatePipe, ALLFIELDS, convertDataToObject, getOrderedDataset, transformDataWithKeys, transformFormData, getUniqObjsByDataField, groupData, handleHeaderClick, toggleAllHeaders, WidgetRef, INPUTMODE, TrailingZeroDecimalPipe, WmComponentsModule } from '@wm/components/base';
|
|
11
11
|
import * as i1$1 from '@wm/core';
|
|
12
|
-
import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults,
|
|
12
|
+
import { DataSource, FormWidgetType, isDefined, toggleClass, AppDefaults, $appDigest, debounce as debounce$1, noop, isEqualWithFields, toBoolean, setListClass, switchClass, addForIdAttributes, addClass, AbstractI18nService, setAttr, removeAttr, setCSS } from '@wm/core';
|
|
13
|
+
import { has, set, isArray, debounce, toString, find, isNull, isObject, isEqual, isEmpty, forEach, includes, isString, get, isUndefined, round, toArray, intersection, findIndex } from 'lodash-es';
|
|
13
14
|
import { Subject } from 'rxjs';
|
|
15
|
+
import { __param, __metadata, __decorate } from 'tslib';
|
|
14
16
|
|
|
15
17
|
const registerProps$e = () => {
|
|
16
18
|
register('wm-button', new Map([
|
|
@@ -37,39 +39,39 @@ const registerProps$e = () => {
|
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
const _c0$c = ["wmButton", ""];
|
|
40
|
-
const _c1$b =
|
|
42
|
+
const _c1$b = [[["", 8, "caret"]]];
|
|
43
|
+
const _c2$5 = [".caret"];
|
|
44
|
+
const _c3$2 = (a0, a1, a2) => ({ width: a0, height: a1, margin: a2 });
|
|
45
|
+
const _c4$2 = (a0, a1, a2, a3) => ({ width: a0, height: a1, margin: a2, fontSize: a3 });
|
|
41
46
|
function ButtonComponent_img_0_Template(rf, ctx) { if (rf & 1) {
|
|
42
47
|
i0.ɵɵelement(0, "img", 5);
|
|
43
48
|
i0.ɵɵpipe(1, "image");
|
|
44
49
|
} if (rf & 2) {
|
|
45
50
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
46
|
-
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 2, ctx_r0.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", i0.ɵɵpureFunction3(4,
|
|
51
|
+
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 2, ctx_r0.iconurl), i0.ɵɵsanitizeUrl)("ngStyle", i0.ɵɵpureFunction3(4, _c3$2, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin));
|
|
47
52
|
} }
|
|
48
|
-
const _c2$5 = function (a0, a1, a2, a3) { return { width: a0, height: a1, margin: a2, fontSize: a3 }; };
|
|
49
53
|
function ButtonComponent_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
50
54
|
i0.ɵɵelement(0, "i", 6);
|
|
51
55
|
} if (rf & 2) {
|
|
52
|
-
const
|
|
53
|
-
i0.ɵɵclassMapInterpolate1("app-icon ",
|
|
54
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction4(4,
|
|
56
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
57
|
+
i0.ɵɵclassMapInterpolate1("app-icon ", ctx_r0.iconclass, "");
|
|
58
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction4(4, _c4$2, ctx_r0.iconwidth, ctx_r0.iconheight, ctx_r0.iconmargin, ctx_r0.iconwidth));
|
|
55
59
|
} }
|
|
56
60
|
function ButtonComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
57
61
|
i0.ɵɵelementStart(0, "span", 7);
|
|
58
62
|
i0.ɵɵtext(1);
|
|
59
63
|
i0.ɵɵelementEnd();
|
|
60
64
|
} if (rf & 2) {
|
|
61
|
-
const
|
|
62
|
-
i0.ɵɵadvance(
|
|
63
|
-
i0.ɵɵtextInterpolate2("",
|
|
65
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
66
|
+
i0.ɵɵadvance();
|
|
67
|
+
i0.ɵɵtextInterpolate2("", ctx_r0.caption, " ", ctx_r0.appLocale.LABEL_ICON, "");
|
|
64
68
|
} }
|
|
65
69
|
function ButtonComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
66
70
|
i0.ɵɵelement(0, "span", 8);
|
|
67
71
|
} if (rf & 2) {
|
|
68
|
-
const
|
|
69
|
-
i0.ɵɵproperty("textContent",
|
|
72
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
73
|
+
i0.ɵɵproperty("textContent", ctx_r0.badgevalue);
|
|
70
74
|
} }
|
|
71
|
-
const _c3$2 = [[["", 8, "caret"]]];
|
|
72
|
-
const _c4$2 = [".caret"];
|
|
73
75
|
const DEFAULT_CLS$6 = 'btn app-button';
|
|
74
76
|
const WIDGET_CONFIG$e = {
|
|
75
77
|
widgetType: 'wm-button',
|
|
@@ -78,42 +80,45 @@ const WIDGET_CONFIG$e = {
|
|
|
78
80
|
};
|
|
79
81
|
class ButtonComponent extends StylableComponent {
|
|
80
82
|
static { this.initializeProps = registerProps$e(); }
|
|
81
|
-
constructor(inj) {
|
|
82
|
-
super(inj, WIDGET_CONFIG$e);
|
|
83
|
+
constructor(inj, explicitContext) {
|
|
84
|
+
super(inj, WIDGET_CONFIG$e, explicitContext);
|
|
83
85
|
styler(this.nativeElement, this);
|
|
84
86
|
}
|
|
85
|
-
static { this.ɵfac = function ButtonComponent_Factory(t) { return new (t || ButtonComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
87
|
+
static { this.ɵfac = function ButtonComponent_Factory(t) { return new (t || ButtonComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
86
88
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ButtonComponent, selectors: [["button", "wmButton", ""]], hostVars: 5, hostBindings: function ButtonComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
87
89
|
i0.ɵɵhostProperty("type", ctx.type)("tabIndex", ctx.tabindex)("disabled", ctx.disabled);
|
|
88
90
|
i0.ɵɵattribute("accesskey", ctx.shortcutkey)("icon-position", ctx.iconposition);
|
|
89
91
|
} }, exportAs: ["wmButton"], features: [i0.ɵɵProvidersFeature([
|
|
90
92
|
provideAsWidgetRef(ButtonComponent)
|
|
91
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors:
|
|
92
|
-
i0.ɵɵprojectionDef(
|
|
93
|
-
i0.ɵɵtemplate(0, ButtonComponent_img_0_Template, 2, 8, "img", 0);
|
|
94
|
-
i0.ɵɵtemplate(1, ButtonComponent_i_1_Template, 1, 9, "i", 1);
|
|
95
|
-
i0.ɵɵtemplate(2, ButtonComponent_span_2_Template, 2, 2, "span", 2);
|
|
93
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c2$5, decls: 6, vars: 5, consts: [["data-identifier", "img", "alt", "button image", "class", "button-image-icon", 3, "src", "ngStyle", 4, "ngIf"], ["aria-hidden", "true", 3, "class", "ngStyle", 4, "ngIf"], ["class", "sr-only", 4, "ngIf"], [1, "btn-caption", 3, "innerHTML"], ["class", "badge pull-right", 3, "textContent", 4, "ngIf"], ["data-identifier", "img", "alt", "button image", 1, "button-image-icon", 3, "src", "ngStyle"], ["aria-hidden", "true", 3, "ngStyle"], [1, "sr-only"], [1, "badge", "pull-right", 3, "textContent"]], template: function ButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
i0.ɵɵprojectionDef(_c1$b);
|
|
95
|
+
i0.ɵɵtemplate(0, ButtonComponent_img_0_Template, 2, 8, "img", 0)(1, ButtonComponent_i_1_Template, 1, 9, "i", 1)(2, ButtonComponent_span_2_Template, 2, 2, "span", 2);
|
|
96
96
|
i0.ɵɵelement(3, "span", 3);
|
|
97
97
|
i0.ɵɵprojection(4);
|
|
98
98
|
i0.ɵɵtemplate(5, ButtonComponent_span_5_Template, 1, 1, "span", 4);
|
|
99
99
|
} if (rf & 2) {
|
|
100
100
|
i0.ɵɵproperty("ngIf", ctx.iconurl);
|
|
101
|
-
i0.ɵɵadvance(
|
|
101
|
+
i0.ɵɵadvance();
|
|
102
102
|
i0.ɵɵproperty("ngIf", ctx.iconclass);
|
|
103
|
-
i0.ɵɵadvance(
|
|
103
|
+
i0.ɵɵadvance();
|
|
104
104
|
i0.ɵɵproperty("ngIf", ctx.iconclass);
|
|
105
|
-
i0.ɵɵadvance(
|
|
105
|
+
i0.ɵɵadvance();
|
|
106
106
|
i0.ɵɵproperty("innerHTML", ctx.caption, i0.ɵɵsanitizeHtml);
|
|
107
107
|
i0.ɵɵadvance(2);
|
|
108
108
|
i0.ɵɵproperty("ngIf", ctx.badgevalue);
|
|
109
109
|
} }, dependencies: [i1.NgIf, i1.NgStyle, i2.TextContentDirective, i2.ImagePipe], encapsulation: 2 }); }
|
|
110
110
|
}
|
|
111
|
-
(
|
|
111
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonComponent, [{
|
|
112
112
|
type: Component,
|
|
113
113
|
args: [{ selector: 'button[wmButton]', providers: [
|
|
114
114
|
provideAsWidgetRef(ButtonComponent)
|
|
115
115
|
], exportAs: 'wmButton', template: "<img data-identifier=\"img\" alt=\"button image\" class=\"button-image-icon\" [src]=\"iconurl | image\" *ngIf=\"iconurl\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin}\"/>\n<i class=\"app-icon {{iconclass}}\" aria-hidden=\"true\" [ngStyle]=\"{width:iconwidth, height:iconheight, margin:iconmargin, fontSize:iconwidth}\" *ngIf=\"iconclass\"></i>\n<span class=\"sr-only\" *ngIf=\"iconclass\">{{caption}} {{appLocale.LABEL_ICON}}</span>\n<span class=\"btn-caption\" [innerHTML]=\"caption\"></span>\n<ng-content select=\".caret\"></ng-content>\n<span *ngIf=\"badgevalue\" class=\"badge pull-right\" [textContent]=\"badgevalue\"></span>\n" }]
|
|
116
|
-
}],
|
|
116
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
117
|
+
type: Inject,
|
|
118
|
+
args: ['EXPLICIT_CONTEXT']
|
|
119
|
+
}, {
|
|
120
|
+
type: Optional
|
|
121
|
+
}] }], { type: [{
|
|
117
122
|
type: HostBinding,
|
|
118
123
|
args: ['type']
|
|
119
124
|
}], tabindex: [{
|
|
@@ -129,6 +134,7 @@ class ButtonComponent extends StylableComponent {
|
|
|
129
134
|
type: HostBinding,
|
|
130
135
|
args: ['attr.icon-position']
|
|
131
136
|
}] }); })();
|
|
137
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ButtonComponent, { className: "ButtonComponent", filePath: "button/button.component.ts", lineNumber: 22 }); })();
|
|
132
138
|
|
|
133
139
|
const registerProps$d = () => {
|
|
134
140
|
register('wm-buttongroup', new Map([
|
|
@@ -151,11 +157,11 @@ class ButtonGroupDirective extends StylableComponent {
|
|
|
151
157
|
this.$element.find('.app-button').removeClass('selected');
|
|
152
158
|
$target.addClass('selected');
|
|
153
159
|
}
|
|
154
|
-
constructor(inj) {
|
|
155
|
-
super(inj, WIDGET_CONFIG$d);
|
|
160
|
+
constructor(inj, explicitContext) {
|
|
161
|
+
super(inj, WIDGET_CONFIG$d, explicitContext);
|
|
156
162
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
|
|
157
163
|
}
|
|
158
|
-
static { this.ɵfac = function ButtonGroupDirective_Factory(t) { return new (t || ButtonGroupDirective)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
164
|
+
static { this.ɵfac = function ButtonGroupDirective_Factory(t) { return new (t || ButtonGroupDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
159
165
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ButtonGroupDirective, selectors: [["", "wmButtonGroup", ""]], hostVars: 2, hostBindings: function ButtonGroupDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
160
166
|
i0.ɵɵlistener("click", function ButtonGroupDirective_click_HostBindingHandler($event) { return ctx.handleClick($event); });
|
|
161
167
|
} if (rf & 2) {
|
|
@@ -164,7 +170,7 @@ class ButtonGroupDirective extends StylableComponent {
|
|
|
164
170
|
provideAsWidgetRef(ButtonGroupDirective)
|
|
165
171
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
166
172
|
}
|
|
167
|
-
(
|
|
173
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ButtonGroupDirective, [{
|
|
168
174
|
type: Directive,
|
|
169
175
|
args: [{
|
|
170
176
|
selector: '[wmButtonGroup]',
|
|
@@ -172,7 +178,12 @@ class ButtonGroupDirective extends StylableComponent {
|
|
|
172
178
|
provideAsWidgetRef(ButtonGroupDirective)
|
|
173
179
|
]
|
|
174
180
|
}]
|
|
175
|
-
}],
|
|
181
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
182
|
+
type: Inject,
|
|
183
|
+
args: ['EXPLICIT_CONTEXT']
|
|
184
|
+
}, {
|
|
185
|
+
type: Optional
|
|
186
|
+
}] }], { vertical: [{
|
|
176
187
|
type: HostBinding,
|
|
177
188
|
args: ['class.btn-group-vertical']
|
|
178
189
|
}], handleClick: [{
|
|
@@ -181,8 +192,8 @@ class ButtonGroupDirective extends StylableComponent {
|
|
|
181
192
|
}] }); })();
|
|
182
193
|
|
|
183
194
|
class BaseFormComponent extends StylableComponent {
|
|
184
|
-
constructor(inj, config, initPromise) {
|
|
185
|
-
super(inj, config, initPromise);
|
|
195
|
+
constructor(inj, config, explicitContext, initPromise) {
|
|
196
|
+
super(inj, config, explicitContext, initPromise);
|
|
186
197
|
this.inj = inj;
|
|
187
198
|
this.binddatavalue = this.$element.attr('datavalue.bind');
|
|
188
199
|
}
|
|
@@ -211,11 +222,11 @@ class BaseFormComponent extends StylableComponent {
|
|
|
211
222
|
}
|
|
212
223
|
binddatavalue = binddatavalue.replace(/\[\$i\]/g, '[0]');
|
|
213
224
|
// In case of list widget context will be the listItem.
|
|
214
|
-
if (
|
|
215
|
-
|
|
225
|
+
if (has(this.context, binddatavalue.split('.')[0])) {
|
|
226
|
+
set(this.context, binddatavalue, value);
|
|
216
227
|
}
|
|
217
228
|
else {
|
|
218
|
-
|
|
229
|
+
set(this.viewParent, binddatavalue, value);
|
|
219
230
|
}
|
|
220
231
|
}
|
|
221
232
|
invokeOnChange(value, $event) {
|
|
@@ -248,15 +259,20 @@ class BaseFormComponent extends StylableComponent {
|
|
|
248
259
|
});
|
|
249
260
|
}
|
|
250
261
|
}
|
|
251
|
-
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject(Promise)); }; }
|
|
262
|
+
static { this.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject('EXPLICIT_CONTEXT', 8), i0.ɵɵinject(Promise)); }; }
|
|
252
263
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BaseFormComponent, factory: BaseFormComponent.ɵfac }); }
|
|
253
264
|
}
|
|
254
|
-
(
|
|
265
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseFormComponent, [{
|
|
255
266
|
type: Injectable
|
|
256
|
-
}],
|
|
267
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
257
268
|
type: Inject,
|
|
258
269
|
args: [WidgetConfig]
|
|
259
|
-
}] }, { type:
|
|
270
|
+
}] }, { type: undefined, decorators: [{
|
|
271
|
+
type: Inject,
|
|
272
|
+
args: ['EXPLICIT_CONTEXT']
|
|
273
|
+
}, {
|
|
274
|
+
type: Optional
|
|
275
|
+
}] }, { type: Promise }], null); })();
|
|
260
276
|
|
|
261
277
|
/*
|
|
262
278
|
* WMS-18269
|
|
@@ -336,10 +352,10 @@ class BaseFormCustomComponent extends BaseFormComponent {
|
|
|
336
352
|
validate(control) {
|
|
337
353
|
return this['show'] ? validateRequiredBind(this['required'])(control) : null;
|
|
338
354
|
}
|
|
339
|
-
static { this.ɵfac = /*@__PURE__*/
|
|
355
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵBaseFormCustomComponent_BaseFactory; return function BaseFormCustomComponent_Factory(t) { return (ɵBaseFormCustomComponent_BaseFactory || (ɵBaseFormCustomComponent_BaseFactory = i0.ɵɵgetInheritedFactory(BaseFormCustomComponent)))(t || BaseFormCustomComponent); }; })(); }
|
|
340
356
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BaseFormCustomComponent, factory: BaseFormCustomComponent.ɵfac }); }
|
|
341
357
|
}
|
|
342
|
-
(
|
|
358
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseFormCustomComponent, [{
|
|
343
359
|
type: Injectable
|
|
344
360
|
}], null, null); })();
|
|
345
361
|
|
|
@@ -369,7 +385,7 @@ const registerProps$c = () => {
|
|
|
369
385
|
|
|
370
386
|
const _c0$b = ["checkbox"];
|
|
371
387
|
const _c1$a = ["wmCheckbox", ""];
|
|
372
|
-
const _c2$4 =
|
|
388
|
+
const _c2$4 = (a0, a1, a2) => ({ "unchecked": a0, "disabled": a1, "required": a2 });
|
|
373
389
|
const DEFAULT_CLS$4 = 'app-checkbox checkbox';
|
|
374
390
|
const WIDGET_CONFIG$c = {
|
|
375
391
|
widgetType: 'wm-checkbox',
|
|
@@ -407,8 +423,8 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
407
423
|
this.proxyModel = (isDefined(v) && v !== '') ? v === this._checkedvalue : undefined;
|
|
408
424
|
this.updatePrevDatavalue(this.datavalue);
|
|
409
425
|
}
|
|
410
|
-
constructor(inj, checkedVal, uncheckedVal, type) {
|
|
411
|
-
super(inj, WIDGET_CONFIG$c);
|
|
426
|
+
constructor(inj, checkedVal, uncheckedVal, type, explicitContext) {
|
|
427
|
+
super(inj, WIDGET_CONFIG$c, explicitContext);
|
|
412
428
|
this.type = type;
|
|
413
429
|
this._caption = ' ';
|
|
414
430
|
this._checkedvalue = unStringify(checkedVal, true);
|
|
@@ -465,7 +481,7 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
465
481
|
super.ngAfterViewInit();
|
|
466
482
|
styler(this.nativeElement.querySelector('label'), this);
|
|
467
483
|
}
|
|
468
|
-
static { this.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('checkedvalue'), i0.ɵɵinjectAttribute('uncheckedvalue'), i0.ɵɵinjectAttribute('type')); }; }
|
|
484
|
+
static { this.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('checkedvalue'), i0.ɵɵinjectAttribute('uncheckedvalue'), i0.ɵɵinjectAttribute('type'), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
469
485
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["", "wmCheckbox", ""]], viewQuery: function CheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
470
486
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
471
487
|
i0.ɵɵviewQuery(_c0$b, 7, ElementRef);
|
|
@@ -479,17 +495,20 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
479
495
|
provideAs(CheckboxComponent, NG_VALUE_ACCESSOR, true),
|
|
480
496
|
provideAs(CheckboxComponent, NG_VALIDATORS, true),
|
|
481
497
|
provideAsWidgetRef(CheckboxComponent)
|
|
482
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$a, decls: 6, vars: 17, consts: [[3, "ngClass"], ["type", "checkbox", "role", "checkbox", "focus-target", "", 3, "
|
|
483
|
-
i0.ɵɵ
|
|
484
|
-
i0.ɵɵ
|
|
498
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$a, decls: 6, vars: 17, consts: [["checkbox", ""], [3, "ngClass"], ["type", "checkbox", "role", "checkbox", "focus-target", "", 3, "ngModelChange", "blur", "ngModel", "readonly", "required", "disabled", "tabindex"], [1, "caption", 3, "innerHtml"], ["alt", "Checkbox Image", "aria-hidden", "true", "src", "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==", 1, "switch"], ["type", "hidden", "aria-hidden", "true", "tabindex", "-1", 1, "ng-hide", "model-holder", 3, "disabled", "value"]], template: function CheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
499
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
500
|
+
i0.ɵɵelementStart(0, "label", 1)(1, "input", 2, 0);
|
|
501
|
+
i0.ɵɵtwoWayListener("ngModelChange", function CheckboxComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.proxyModel, $event) || (ctx.proxyModel = $event); return i0.ɵɵresetView($event); });
|
|
502
|
+
i0.ɵɵlistener("blur", function CheckboxComponent_Template_input_blur_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.invokeOnTouched($event)); })("ngModelChange", function CheckboxComponent_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); });
|
|
485
503
|
i0.ɵɵelementEnd();
|
|
486
504
|
i0.ɵɵelement(3, "span", 3)(4, "img", 4);
|
|
487
505
|
i0.ɵɵelementEnd();
|
|
488
506
|
i0.ɵɵelement(5, "input", 5);
|
|
489
507
|
} if (rf & 2) {
|
|
490
508
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(13, _c2$4, !ctx.proxyModel, ctx.disabled || ctx.readonly, ctx.required && ctx._caption));
|
|
491
|
-
i0.ɵɵadvance(
|
|
492
|
-
i0.ɵɵ
|
|
509
|
+
i0.ɵɵadvance();
|
|
510
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.proxyModel);
|
|
511
|
+
i0.ɵɵproperty("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled || ctx.readonly)("tabindex", ctx.tabindex);
|
|
493
512
|
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("aria-checked", !!ctx.proxyModel)("accesskey", ctx.shortcutkey);
|
|
494
513
|
i0.ɵɵadvance(2);
|
|
495
514
|
i0.ɵɵproperty("innerHtml", ctx._caption, i0.ɵɵsanitizeHtml);
|
|
@@ -497,14 +516,14 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
497
516
|
i0.ɵɵproperty("disabled", ctx.disabled)("value", ctx.proxyModel);
|
|
498
517
|
} }, dependencies: [i1.NgClass, i2$1.CheckboxControlValueAccessor, i2$1.NgControlStatus, i2$1.CheckboxRequiredValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
499
518
|
}
|
|
500
|
-
(
|
|
519
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxComponent, [{
|
|
501
520
|
type: Component,
|
|
502
521
|
args: [{ selector: '[wmCheckbox]', providers: [
|
|
503
522
|
provideAs(CheckboxComponent, NG_VALUE_ACCESSOR, true),
|
|
504
523
|
provideAs(CheckboxComponent, NG_VALIDATORS, true),
|
|
505
524
|
provideAsWidgetRef(CheckboxComponent)
|
|
506
525
|
], template: "<label [ngClass]=\"{'unchecked': !proxyModel, 'disabled': (disabled || readonly), 'required': (required && _caption)}\">\n <input type=\"checkbox\"\n role=\"checkbox\"\n #checkbox\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-checked]=\"!!proxyModel\"\n focus-target\n [(ngModel)]=\"proxyModel\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled || readonly\"\n [attr.accesskey]=\"shortcutkey\"\n [tabindex]=\"tabindex\"\n (blur)=\"invokeOnTouched($event)\"\n (ngModelChange)=\"handleChange($event)\">\n <span class=\"caption\" [innerHtml]=\"_caption\"></span>\n <img alt=\"Checkbox Image\" aria-hidden=\"true\" src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" class=\"switch\"/>\n</label>\n<input type=\"hidden\" class=\"ng-hide model-holder\" aria-hidden=\"true\" tabindex=\"-1\" [disabled]=\"disabled\" [value]=\"proxyModel\">\n" }]
|
|
507
|
-
}],
|
|
526
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
508
527
|
type: Attribute,
|
|
509
528
|
args: ['checkedvalue']
|
|
510
529
|
}] }, { type: undefined, decorators: [{
|
|
@@ -513,7 +532,12 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
513
532
|
}] }, { type: undefined, decorators: [{
|
|
514
533
|
type: Attribute,
|
|
515
534
|
args: ['type']
|
|
516
|
-
}] }
|
|
535
|
+
}] }, { type: undefined, decorators: [{
|
|
536
|
+
type: Inject,
|
|
537
|
+
args: ['EXPLICIT_CONTEXT']
|
|
538
|
+
}, {
|
|
539
|
+
type: Optional
|
|
540
|
+
}] }], { ngModel: [{
|
|
517
541
|
type: ViewChild,
|
|
518
542
|
args: [NgModel]
|
|
519
543
|
}], checkboxEl: [{
|
|
@@ -523,6 +547,7 @@ class CheckboxComponent extends BaseFormCustomComponent {
|
|
|
523
547
|
type: HostListener,
|
|
524
548
|
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
525
549
|
}] }); })();
|
|
550
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckboxComponent, { className: "CheckboxComponent", filePath: "checkbox/checkbox.component.ts", lineNumber: 59 }); })();
|
|
526
551
|
|
|
527
552
|
class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
528
553
|
get modelByKey() {
|
|
@@ -551,17 +576,17 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
551
576
|
// invoke on datavalue change.
|
|
552
577
|
this.invokeOnChange(val, undefined, true);
|
|
553
578
|
}
|
|
554
|
-
constructor(inj, config, groupby) {
|
|
555
|
-
super(inj, config);
|
|
579
|
+
constructor(inj, config, explicitContext, groupby) {
|
|
580
|
+
super(inj, config, explicitContext);
|
|
556
581
|
this.groupby = groupby;
|
|
557
582
|
this.datasetItems = [];
|
|
558
583
|
this.acceptsArray = false; // set to true if proxyModel on widget accepts array type.
|
|
559
584
|
this.dataset$ = new Subject();
|
|
560
585
|
this.datavalue$ = new Subject();
|
|
561
586
|
this.allowempty = true;
|
|
562
|
-
this._debounceDatavalueUpdation =
|
|
587
|
+
this._debounceDatavalueUpdation = debounce((values) => {
|
|
563
588
|
// if no item is found in datasetItems, wait untill the dataset updates by preserving the datavalue in toBeProcessedDatavalue.
|
|
564
|
-
if (!isDefined(this._modelByKey) || (
|
|
589
|
+
if (!isDefined(this._modelByKey) || (isArray(this._modelByKey) && !this._modelByKey.length)) {
|
|
565
590
|
this.toBeProcessedDatavalue = values;
|
|
566
591
|
this._modelByValue = '';
|
|
567
592
|
}
|
|
@@ -569,7 +594,7 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
569
594
|
// obtain the first array value when multiple is set to false.
|
|
570
595
|
// set the modelByValue only when undefined.
|
|
571
596
|
if (!isDefined(this._modelByValue)) {
|
|
572
|
-
this._modelByValue = (!this.multiple &&
|
|
597
|
+
this._modelByValue = (!this.multiple && isArray(this.toBeProcessedDatavalue)) ? this.toBeProcessedDatavalue[0] : this.toBeProcessedDatavalue;
|
|
573
598
|
}
|
|
574
599
|
this.toBeProcessedDatavalue = undefined;
|
|
575
600
|
}
|
|
@@ -580,7 +605,7 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
580
605
|
this.binddisplayexpression = this.nativeElement.getAttribute('displayexpression.bind');
|
|
581
606
|
this.binddisplayimagesrc = this.nativeElement.getAttribute('displayimagesrc.bind');
|
|
582
607
|
this.binddisplaylabel = this.nativeElement.getAttribute('displaylabel.bind');
|
|
583
|
-
this._debouncedInitDatasetItems = debounce(() => {
|
|
608
|
+
this._debouncedInitDatasetItems = debounce$1(() => {
|
|
584
609
|
this.initDatasetItems();
|
|
585
610
|
$appDigest();
|
|
586
611
|
}, 150);
|
|
@@ -599,7 +624,7 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
599
624
|
if (!this.datasetItems.length) {
|
|
600
625
|
return;
|
|
601
626
|
}
|
|
602
|
-
if (this.multiple && !
|
|
627
|
+
if (this.multiple && !isArray(keys)) {
|
|
603
628
|
keys = [keys];
|
|
604
629
|
}
|
|
605
630
|
// Set the _modelByKey to the modified keys.
|
|
@@ -607,10 +632,10 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
607
632
|
if (this.multiple) {
|
|
608
633
|
this._modelByValue = [];
|
|
609
634
|
keys.forEach(key => {
|
|
610
|
-
const itemByKey =
|
|
635
|
+
const itemByKey = find(this.datasetItems, item => {
|
|
611
636
|
// not triple equal, as the instance type can be different.
|
|
612
637
|
// only value comparison should be done.
|
|
613
|
-
return
|
|
638
|
+
return toString(item.key) === toString(key);
|
|
614
639
|
});
|
|
615
640
|
if (itemByKey) {
|
|
616
641
|
itemByKey.selected = true;
|
|
@@ -620,10 +645,10 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
620
645
|
}
|
|
621
646
|
else {
|
|
622
647
|
this._modelByValue = '';
|
|
623
|
-
const itemByKey =
|
|
648
|
+
const itemByKey = find(this.datasetItems, item => {
|
|
624
649
|
// not triple equal, as the instance type can be different.
|
|
625
650
|
// only value comparison should be done.
|
|
626
|
-
return
|
|
651
|
+
return toString(item.key) === toString(keys);
|
|
627
652
|
});
|
|
628
653
|
if (itemByKey) {
|
|
629
654
|
itemByKey.selected = true;
|
|
@@ -642,14 +667,14 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
642
667
|
selectByValue(values) {
|
|
643
668
|
this.resetDatasetItems();
|
|
644
669
|
// if datavalue is not defined or empty then set the model as undefined.
|
|
645
|
-
if (!isDefined(values) || values === '' ||
|
|
670
|
+
if (!isDefined(values) || values === '' || isNull(values) || (values instanceof Array && !values.length)) {
|
|
646
671
|
this._modelByKey = undefined;
|
|
647
672
|
// do not return when allowempty is set to true.
|
|
648
673
|
if (!this.allowempty || !isDefined(values)) {
|
|
649
674
|
return;
|
|
650
675
|
}
|
|
651
676
|
}
|
|
652
|
-
if (this.acceptsArray && !
|
|
677
|
+
if (this.acceptsArray && !isArray(values)) {
|
|
653
678
|
values = this.allowempty ? [values] : extractDataAsArray(values);
|
|
654
679
|
}
|
|
655
680
|
// preserve the datavalue if datasetItems are empty.
|
|
@@ -658,16 +683,16 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
658
683
|
return;
|
|
659
684
|
}
|
|
660
685
|
const filterField = this.datafield === ALLFIELDS ? 'dataObject' : 'key';
|
|
661
|
-
if (
|
|
686
|
+
if (isArray(values)) {
|
|
662
687
|
this._modelByKey = [];
|
|
663
688
|
values.forEach(val => {
|
|
664
|
-
const itemByValue =
|
|
689
|
+
const itemByValue = find(this.datasetItems, item => {
|
|
665
690
|
if (filterField === 'dataObject') {
|
|
666
691
|
if (this.compareby && this.compareby.length) {
|
|
667
692
|
return isEqualWithFields(item[filterField], val, this.compareby);
|
|
668
693
|
}
|
|
669
694
|
}
|
|
670
|
-
return (
|
|
695
|
+
return (isObject(item.value) ? isEqual(item.value, val) : (toString(item.value)).toLowerCase() === (toString(val)).toLowerCase());
|
|
671
696
|
});
|
|
672
697
|
if (itemByValue) {
|
|
673
698
|
itemByValue.selected = true;
|
|
@@ -677,13 +702,13 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
677
702
|
}
|
|
678
703
|
else {
|
|
679
704
|
this._modelByKey = undefined;
|
|
680
|
-
const itemByValue =
|
|
705
|
+
const itemByValue = find(this.datasetItems, item => {
|
|
681
706
|
if (filterField === 'dataObject') {
|
|
682
707
|
if (this.compareby && this.compareby.length) {
|
|
683
708
|
return isEqualWithFields(item[filterField], values, this.compareby);
|
|
684
709
|
}
|
|
685
710
|
}
|
|
686
|
-
return (
|
|
711
|
+
return (isObject(item.value) ? isEqual(item.value, values) : (toString(item.value)).toLowerCase() === (toString(values)).toLowerCase());
|
|
687
712
|
});
|
|
688
713
|
if (itemByValue) {
|
|
689
714
|
itemByValue.selected = true;
|
|
@@ -706,7 +731,7 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
706
731
|
}
|
|
707
732
|
// This function parses the dataset and extracts the displayOptions from parsed dataset.
|
|
708
733
|
initDatasetItems() {
|
|
709
|
-
if (!this.dataset ||
|
|
734
|
+
if (!this.dataset || isEmpty(this.dataset)) {
|
|
710
735
|
this.datasetItems = [];
|
|
711
736
|
// notify the dataset listeners
|
|
712
737
|
this.dataset$.next(this.datasetItems);
|
|
@@ -734,7 +759,7 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
734
759
|
postDatasetItemsInit() {
|
|
735
760
|
if (this.datasetItems.length && !this._defaultQueryInvoked) {
|
|
736
761
|
// use the latest of toBeProcessedDatavalue, datavalue
|
|
737
|
-
const _datavalue =
|
|
762
|
+
const _datavalue = isEmpty(this.toBeProcessedDatavalue) ? this.datavalue : this.toBeProcessedDatavalue;
|
|
738
763
|
this.selectByValue(_datavalue);
|
|
739
764
|
}
|
|
740
765
|
// notify the dataset listeners
|
|
@@ -804,18 +829,23 @@ class DatasetAwareFormComponent extends BaseFormCustomComponent {
|
|
|
804
829
|
this.cancelLocaleChangeSubscription();
|
|
805
830
|
}
|
|
806
831
|
}
|
|
807
|
-
static { this.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinjectAttribute('groupby')); }; }
|
|
832
|
+
static { this.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject('EXPLICIT_CONTEXT', 8), i0.ɵɵinjectAttribute('groupby')); }; }
|
|
808
833
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DatasetAwareFormComponent, factory: DatasetAwareFormComponent.ɵfac }); }
|
|
809
834
|
}
|
|
810
|
-
(
|
|
835
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DatasetAwareFormComponent, [{
|
|
811
836
|
type: Injectable
|
|
812
|
-
}],
|
|
837
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
813
838
|
type: Inject,
|
|
814
839
|
args: [WidgetConfig]
|
|
840
|
+
}] }, { type: undefined, decorators: [{
|
|
841
|
+
type: Inject,
|
|
842
|
+
args: ['EXPLICIT_CONTEXT']
|
|
843
|
+
}, {
|
|
844
|
+
type: Optional
|
|
815
845
|
}] }, { type: undefined, decorators: [{
|
|
816
846
|
type: Attribute,
|
|
817
847
|
args: ['groupby']
|
|
818
|
-
}] }]
|
|
848
|
+
}] }], null); })();
|
|
819
849
|
|
|
820
850
|
const checkboxsetProps = new Map([
|
|
821
851
|
['class', PROP_STRING],
|
|
@@ -851,60 +881,61 @@ const registerProps$b = () => {
|
|
|
851
881
|
};
|
|
852
882
|
|
|
853
883
|
const _c0$a = ["wmCheckboxset", ""];
|
|
854
|
-
const _c1$9 =
|
|
884
|
+
const _c1$9 = (a0, a1) => ["checkbox", "app-checkbox", a0, a1];
|
|
885
|
+
const _c2$3 = a0 => ({ "disabled": a0 });
|
|
886
|
+
const _c3$1 = a0 => ({ "collapsible-content": a0 });
|
|
887
|
+
const _c4$1 = (a0, a1) => ["checkbox", "app-checkbox", "group-list-item", a0, a1];
|
|
855
888
|
function CheckboxsetComponent_ng_template_0_li_0_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
856
889
|
i0.ɵɵelementStart(0, "label", 8);
|
|
857
890
|
i0.ɵɵelement(1, "input", 9)(2, "span", 10);
|
|
858
891
|
i0.ɵɵelementEnd();
|
|
859
892
|
} if (rf & 2) {
|
|
860
|
-
const
|
|
861
|
-
const
|
|
862
|
-
const
|
|
863
|
-
const
|
|
864
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12,
|
|
865
|
-
i0.ɵɵadvance(
|
|
866
|
-
i0.ɵɵproperty("name", "checkboxset_" +
|
|
867
|
-
i0.ɵɵattribute("aria-label",
|
|
868
|
-
i0.ɵɵadvance(
|
|
869
|
-
i0.ɵɵproperty("textContent",
|
|
893
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
894
|
+
const item_r2 = ctx_r3.$implicit;
|
|
895
|
+
const i_r5 = ctx_r3.index;
|
|
896
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
897
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c2$3, ctx_r2.disabled || ctx_r2.readonly))("title", item_r2.label);
|
|
898
|
+
i0.ɵɵadvance();
|
|
899
|
+
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r2.key)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
900
|
+
i0.ɵɵattribute("aria-label", item_r2.key)("aria-checked", item_r2.selected)("data-attr-index", i_r5);
|
|
901
|
+
i0.ɵɵadvance();
|
|
902
|
+
i0.ɵɵproperty("textContent", item_r2.label);
|
|
870
903
|
} }
|
|
871
904
|
function CheckboxsetComponent_ng_template_0_li_0_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
872
905
|
i0.ɵɵelementStart(0, "label", 11);
|
|
873
906
|
i0.ɵɵelement(1, "input", 9)(2, "span", 12);
|
|
874
907
|
i0.ɵɵelementEnd();
|
|
875
908
|
} if (rf & 2) {
|
|
876
|
-
const
|
|
877
|
-
const
|
|
878
|
-
const
|
|
879
|
-
const
|
|
880
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10,
|
|
881
|
-
i0.ɵɵadvance(
|
|
882
|
-
i0.ɵɵproperty("name", "checkboxset_" +
|
|
883
|
-
i0.ɵɵattribute("aria-label",
|
|
909
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
910
|
+
const item_r2 = ctx_r3.$implicit;
|
|
911
|
+
const i_r5 = ctx_r3.index;
|
|
912
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
913
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c2$3, ctx_r2.disabled || ctx_r2.readonly));
|
|
914
|
+
i0.ɵɵadvance();
|
|
915
|
+
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r2.key)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
916
|
+
i0.ɵɵattribute("aria-label", item_r2.key)("aria-checked", item_r2.selected)("data-attr-index", i_r5);
|
|
884
917
|
} }
|
|
885
|
-
const _c2$3 = function (a2, a3) { return ["checkbox", "app-checkbox", a2, a3]; };
|
|
886
918
|
function CheckboxsetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
887
|
-
const
|
|
919
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
888
920
|
i0.ɵɵelementStart(0, "li", 5);
|
|
889
|
-
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const
|
|
890
|
-
i0.ɵɵtemplate(1, CheckboxsetComponent_ng_template_0_li_0_label_1_Template, 3, 14, "label", 6);
|
|
891
|
-
i0.ɵɵtemplate(2, CheckboxsetComponent_ng_template_0_li_0_label_2_Template, 3, 12, "label", 7);
|
|
921
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r2.key)); });
|
|
922
|
+
i0.ɵɵtemplate(1, CheckboxsetComponent_ng_template_0_li_0_label_1_Template, 3, 14, "label", 6)(2, CheckboxsetComponent_ng_template_0_li_0_label_2_Template, 3, 12, "label", 7);
|
|
892
923
|
i0.ɵɵelementEnd();
|
|
893
924
|
} if (rf & 2) {
|
|
894
|
-
const
|
|
895
|
-
const
|
|
896
|
-
i0.ɵɵclassProp("active",
|
|
897
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7,
|
|
898
|
-
i0.ɵɵadvance(
|
|
899
|
-
i0.ɵɵproperty("ngIf", !
|
|
900
|
-
i0.ɵɵadvance(
|
|
901
|
-
i0.ɵɵproperty("ngIf",
|
|
925
|
+
const item_r2 = ctx.$implicit;
|
|
926
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
927
|
+
i0.ɵɵclassProp("active", item_r2.selected);
|
|
928
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c1$9, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
929
|
+
i0.ɵɵadvance();
|
|
930
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
931
|
+
i0.ɵɵadvance();
|
|
932
|
+
i0.ɵɵproperty("ngIf", ctx_r2.content);
|
|
902
933
|
} }
|
|
903
934
|
function CheckboxsetComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
904
935
|
i0.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_li_0_Template, 3, 10, "li", 4);
|
|
905
936
|
} if (rf & 2) {
|
|
906
|
-
const
|
|
907
|
-
i0.ɵɵproperty("ngForOf",
|
|
937
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
938
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
|
|
908
939
|
} }
|
|
909
940
|
function CheckboxsetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
910
941
|
i0.ɵɵelement(0, "div", 13);
|
|
@@ -912,102 +943,98 @@ function CheckboxsetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
912
943
|
function CheckboxsetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
913
944
|
i0.ɵɵelement(0, "i", 23);
|
|
914
945
|
} if (rf & 2) {
|
|
915
|
-
const
|
|
916
|
-
i0.ɵɵpropertyInterpolate2("title", "",
|
|
946
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
947
|
+
i0.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
917
948
|
} }
|
|
918
949
|
function CheckboxsetComponent_ng_template_3_li_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
919
950
|
i0.ɵɵelement(0, "span", 24);
|
|
920
951
|
} if (rf & 2) {
|
|
921
|
-
const
|
|
922
|
-
i0.ɵɵproperty("textContent",
|
|
952
|
+
const groupObj_r7 = i0.ɵɵnextContext().$implicit;
|
|
953
|
+
i0.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
923
954
|
} }
|
|
924
955
|
function CheckboxsetComponent_ng_template_3_li_0_li_8_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
925
956
|
i0.ɵɵelementStart(0, "label", 8);
|
|
926
957
|
i0.ɵɵelement(1, "input", 26)(2, "span", 10);
|
|
927
958
|
i0.ɵɵelementEnd();
|
|
928
959
|
} if (rf & 2) {
|
|
929
|
-
const
|
|
930
|
-
const
|
|
931
|
-
const
|
|
932
|
-
const
|
|
933
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10,
|
|
934
|
-
i0.ɵɵadvance(
|
|
935
|
-
i0.ɵɵproperty("name", "checkboxset_" +
|
|
936
|
-
i0.ɵɵattribute("data-attr-index",
|
|
937
|
-
i0.ɵɵadvance(
|
|
938
|
-
i0.ɵɵproperty("textContent",
|
|
960
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
961
|
+
const item_r9 = ctx_r9.$implicit;
|
|
962
|
+
const i_r11 = ctx_r9.index;
|
|
963
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
964
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c2$3, ctx_r2.disabled || ctx_r2.readonly))("title", item_r9.label);
|
|
965
|
+
i0.ɵɵadvance();
|
|
966
|
+
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r9.key)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
967
|
+
i0.ɵɵattribute("data-attr-index", i_r11);
|
|
968
|
+
i0.ɵɵadvance();
|
|
969
|
+
i0.ɵɵproperty("textContent", item_r9.label);
|
|
939
970
|
} }
|
|
940
971
|
function CheckboxsetComponent_ng_template_3_li_0_li_8_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
941
972
|
i0.ɵɵelementStart(0, "label", 11);
|
|
942
973
|
i0.ɵɵelement(1, "input", 26)(2, "span", 27);
|
|
943
974
|
i0.ɵɵelementEnd();
|
|
944
975
|
} if (rf & 2) {
|
|
945
|
-
const
|
|
946
|
-
const
|
|
947
|
-
const
|
|
948
|
-
const
|
|
949
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8,
|
|
950
|
-
i0.ɵɵadvance(
|
|
951
|
-
i0.ɵɵproperty("name", "checkboxset_" +
|
|
952
|
-
i0.ɵɵattribute("data-attr-index",
|
|
976
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
977
|
+
const item_r9 = ctx_r9.$implicit;
|
|
978
|
+
const i_r11 = ctx_r9.index;
|
|
979
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
980
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$3, ctx_r2.disabled || ctx_r2.readonly));
|
|
981
|
+
i0.ɵɵadvance();
|
|
982
|
+
i0.ɵɵproperty("name", "checkboxset_" + ctx_r2.widgetId)("tabindex", ctx_r2.tabindex)("disabled", ctx_r2.disabled || ctx_r2.readonly)("value", item_r9.key)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
983
|
+
i0.ɵɵattribute("data-attr-index", i_r11);
|
|
953
984
|
} }
|
|
954
|
-
const _c3$1 = function (a3, a4) { return ["checkbox", "app-checkbox", "group-list-item", a3, a4]; };
|
|
955
985
|
function CheckboxsetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
956
|
-
const
|
|
986
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
957
987
|
i0.ɵɵelementStart(0, "li", 25);
|
|
958
|
-
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const
|
|
959
|
-
i0.ɵɵtemplate(1, CheckboxsetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 12, "label", 6);
|
|
960
|
-
i0.ɵɵtemplate(2, CheckboxsetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 10, "label", 7);
|
|
988
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const item_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onCheckboxLabelClick($event, item_r9)); });
|
|
989
|
+
i0.ɵɵtemplate(1, CheckboxsetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 12, "label", 6)(2, CheckboxsetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 10, "label", 7);
|
|
961
990
|
i0.ɵɵelementEnd();
|
|
962
991
|
} if (rf & 2) {
|
|
963
|
-
const
|
|
964
|
-
const
|
|
965
|
-
i0.ɵɵclassProp("active",
|
|
966
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7,
|
|
967
|
-
i0.ɵɵadvance(
|
|
968
|
-
i0.ɵɵproperty("ngIf", !
|
|
969
|
-
i0.ɵɵadvance(
|
|
970
|
-
i0.ɵɵproperty("ngIf",
|
|
992
|
+
const item_r9 = ctx.$implicit;
|
|
993
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
994
|
+
i0.ɵɵclassProp("active", item_r9.selected);
|
|
995
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c4$1, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
996
|
+
i0.ɵɵadvance();
|
|
997
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
998
|
+
i0.ɵɵadvance();
|
|
999
|
+
i0.ɵɵproperty("ngIf", ctx_r2.content);
|
|
971
1000
|
} }
|
|
972
|
-
const _c4$1 = function (a0) { return { "collapsible-content": a0 }; };
|
|
973
1001
|
function CheckboxsetComponent_ng_template_3_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
974
|
-
const
|
|
1002
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
975
1003
|
i0.ɵɵelementStart(0, "li", 15)(1, "ul", 16)(2, "li", 17);
|
|
976
|
-
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(
|
|
1004
|
+
i0.ɵɵlistener("click", function CheckboxsetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
977
1005
|
i0.ɵɵelementStart(3, "h4", 18);
|
|
978
1006
|
i0.ɵɵtext(4);
|
|
979
1007
|
i0.ɵɵelementStart(5, "div", 19);
|
|
980
|
-
i0.ɵɵtemplate(6, CheckboxsetComponent_ng_template_3_li_0_i_6_Template, 1,
|
|
981
|
-
i0.ɵɵtemplate(7, CheckboxsetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 21);
|
|
1008
|
+
i0.ɵɵtemplate(6, CheckboxsetComponent_ng_template_3_li_0_i_6_Template, 1, 3, "i", 20)(7, CheckboxsetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 21);
|
|
982
1009
|
i0.ɵɵelementEnd()()();
|
|
983
1010
|
i0.ɵɵtemplate(8, CheckboxsetComponent_ng_template_3_li_0_li_8_Template, 3, 10, "li", 22);
|
|
984
1011
|
i0.ɵɵelementEnd()();
|
|
985
1012
|
} if (rf & 2) {
|
|
986
|
-
const
|
|
987
|
-
const
|
|
1013
|
+
const groupObj_r7 = ctx.$implicit;
|
|
1014
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
988
1015
|
i0.ɵɵadvance(2);
|
|
989
|
-
i0.ɵɵproperty("title",
|
|
1016
|
+
i0.ɵɵproperty("title", groupObj_r7.key)("ngClass", i0.ɵɵpureFunction1(6, _c3$1, ctx_r2.collapsible));
|
|
990
1017
|
i0.ɵɵadvance(2);
|
|
991
|
-
i0.ɵɵtextInterpolate1("",
|
|
1018
|
+
i0.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
992
1019
|
i0.ɵɵadvance(2);
|
|
993
|
-
i0.ɵɵproperty("ngIf",
|
|
994
|
-
i0.ɵɵadvance(
|
|
995
|
-
i0.ɵɵproperty("ngIf",
|
|
996
|
-
i0.ɵɵadvance(
|
|
997
|
-
i0.ɵɵproperty("ngForOf",
|
|
1020
|
+
i0.ɵɵproperty("ngIf", ctx_r2.collapsible);
|
|
1021
|
+
i0.ɵɵadvance();
|
|
1022
|
+
i0.ɵɵproperty("ngIf", ctx_r2.showcount);
|
|
1023
|
+
i0.ɵɵadvance();
|
|
1024
|
+
i0.ɵɵproperty("ngForOf", groupObj_r7.data);
|
|
998
1025
|
} }
|
|
999
1026
|
function CheckboxsetComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
1000
1027
|
i0.ɵɵtemplate(0, CheckboxsetComponent_ng_template_3_li_0_Template, 9, 8, "li", 14);
|
|
1001
1028
|
} if (rf & 2) {
|
|
1002
|
-
const
|
|
1003
|
-
i0.ɵɵproperty("ngForOf",
|
|
1029
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1030
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.groupedData);
|
|
1004
1031
|
} }
|
|
1005
1032
|
const DEFAULT_CLS$3 = 'app-checkboxset list-group inline';
|
|
1006
1033
|
const WIDGET_CONFIG$b = { widgetType: 'wm-checkboxset', hostClass: DEFAULT_CLS$3 };
|
|
1007
1034
|
class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
1008
1035
|
static { this.initializeProps = registerProps$b(); }
|
|
1009
|
-
constructor(inj) {
|
|
1010
|
-
super(inj, WIDGET_CONFIG$b);
|
|
1036
|
+
constructor(inj, explicitContext) {
|
|
1037
|
+
super(inj, WIDGET_CONFIG$b, explicitContext);
|
|
1011
1038
|
this.layout = '';
|
|
1012
1039
|
styler(this.nativeElement, this);
|
|
1013
1040
|
this.multiple = true;
|
|
@@ -1019,7 +1046,8 @@ class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
|
1019
1046
|
// construct the _model from the checked elements.
|
|
1020
1047
|
const inputElements = this.nativeElement.querySelectorAll('input:checked');
|
|
1021
1048
|
const keys = [];
|
|
1022
|
-
|
|
1049
|
+
forEach(inputElements, ($el) => {
|
|
1050
|
+
// @ts-ignore
|
|
1023
1051
|
keys.push($el.value);
|
|
1024
1052
|
});
|
|
1025
1053
|
this.modelByKey = keys;
|
|
@@ -1038,7 +1066,7 @@ class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
|
1038
1066
|
return callback();
|
|
1039
1067
|
});
|
|
1040
1068
|
}
|
|
1041
|
-
else if (!
|
|
1069
|
+
else if (!includes(['change'], eventName)) {
|
|
1042
1070
|
super.handleEvent(node, eventName, callback, locals);
|
|
1043
1071
|
}
|
|
1044
1072
|
}
|
|
@@ -1061,38 +1089,43 @@ class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
|
1061
1089
|
super.onPropertyChange(key, nv, ov);
|
|
1062
1090
|
}
|
|
1063
1091
|
}
|
|
1064
|
-
static { this.ɵfac = function CheckboxsetComponent_Factory(t) { return new (t || CheckboxsetComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
1092
|
+
static { this.ɵfac = function CheckboxsetComponent_Factory(t) { return new (t || CheckboxsetComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1065
1093
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CheckboxsetComponent, selectors: [["", "wmCheckboxset", ""]], hostBindings: function CheckboxsetComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1066
1094
|
i0.ɵɵlistener("keydown.enter", function CheckboxsetComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
1067
1095
|
} }, exportAs: ["wmCheckboxset"], features: [i0.ɵɵProvidersFeature([
|
|
1068
1096
|
provideAs(CheckboxsetComponent, NG_VALUE_ACCESSOR, true),
|
|
1069
1097
|
provideAs(CheckboxsetComponent, NG_VALIDATORS, true),
|
|
1070
1098
|
provideAsWidgetRef(CheckboxsetComponent)
|
|
1071
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 5, vars: 4, consts: [[3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["class", "readonly-wrapper", 4, "ngIf"], ["
|
|
1072
|
-
i0.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_Template, 1, 1, "ng-template",
|
|
1073
|
-
i0.ɵɵelement(1, "input",
|
|
1074
|
-
i0.ɵɵtemplate(2, CheckboxsetComponent_div_2_Template, 1, 0, "div",
|
|
1075
|
-
i0.ɵɵtemplate(3, CheckboxsetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
1099
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 5, vars: 4, consts: [["groupedListTemplate", ""], [3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["class", "readonly-wrapper", 4, "ngIf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["class", "app-checkboxset-label", 3, "ngClass", "title", 4, "ngIf"], ["class", "app-checkboxset-label", 3, "ngClass", 4, "ngIf"], [1, "app-checkboxset-label", 3, "ngClass", "title"], ["type", "checkbox", 3, "name", "tabindex", "disabled", "value", "checked"], [1, "caption", 3, "textContent"], [1, "app-checkboxset-label", 3, "ngClass"], ["partial-container-target", "", 1, "caption", "customTemplate"], [1, "readonly-wrapper"], ["class", "app-list-item-group", "role", "presentation", 4, "ngFor", "ngForOf"], ["role", "presentation", 1, "app-list-item-group"], [1, "item-group"], [1, "list-group-header", 3, "click", "title", "ngClass"], [1, "group-title"], [1, "header-action"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["type", "checkbox", "aria-label", "checkbox group", 3, "name", "tabindex", "disabled", "value", "checked"], ["partial-container-target", "", 1, "caption"]], template: function CheckboxsetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1100
|
+
i0.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_Template, 1, 1, "ng-template", 1);
|
|
1101
|
+
i0.ɵɵelement(1, "input", 2);
|
|
1102
|
+
i0.ɵɵtemplate(2, CheckboxsetComponent_div_2_Template, 1, 0, "div", 3)(3, CheckboxsetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
1076
1103
|
} if (rf & 2) {
|
|
1077
|
-
const
|
|
1078
|
-
i0.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse",
|
|
1079
|
-
i0.ɵɵadvance(
|
|
1104
|
+
const groupedListTemplate_r12 = i0.ɵɵreference(4);
|
|
1105
|
+
i0.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse", groupedListTemplate_r12);
|
|
1106
|
+
i0.ɵɵadvance();
|
|
1080
1107
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
1081
|
-
i0.ɵɵadvance(
|
|
1108
|
+
i0.ɵɵadvance();
|
|
1082
1109
|
i0.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
1083
1110
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.ItemTemplateDirective, i2.PartialParamHandlerDirective, i2.PartialContainerDirective, i2.TextContentDirective], encapsulation: 2 }); }
|
|
1084
1111
|
}
|
|
1085
|
-
(
|
|
1112
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckboxsetComponent, [{
|
|
1086
1113
|
type: Component,
|
|
1087
1114
|
args: [{ selector: '[wmCheckboxset]', exportAs: 'wmCheckboxset', providers: [
|
|
1088
1115
|
provideAs(CheckboxsetComponent, NG_VALUE_ACCESSOR, true),
|
|
1089
1116
|
provideAs(CheckboxsetComponent, NG_VALIDATORS, true),
|
|
1090
1117
|
provideAsWidgetRef(CheckboxsetComponent)
|
|
1091
1118
|
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['checkbox', 'app-checkbox', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems; let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" [attr.aria-label]=\"item.key\"\n [tabindex]=\"tabindex\" [attr.aria-checked]=\"item.selected\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" [attr.aria-label]=\"item.key\"\n [tabindex]=\"tabindex\" [attr.aria-checked]=\"item.selected\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n</ng-template>\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData\" class=\"app-list-item-group\" role=\"presentation\">\n <ul class=\"item-group\">\n <li class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\">{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\n [ngClass]=\"['checkbox', 'app-checkbox', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onCheckboxLabelClick($event, item)\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" [title]=\"item.label\">\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" aria-label=\"checkbox group\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-checkboxset-label\" [ngClass]=\"{'disabled':disabled || readonly}\" >\n <input [name]=\"'checkboxset_' + widgetId\" type=\"checkbox\" aria-label=\"checkbox group\"\n [tabindex]=\"tabindex\"\n [disabled]=\"disabled || readonly\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" partial-container-target></span>\n </label>\n </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
1092
|
-
}],
|
|
1119
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1120
|
+
type: Inject,
|
|
1121
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1122
|
+
}, {
|
|
1123
|
+
type: Optional
|
|
1124
|
+
}] }], { onKeyDown: [{
|
|
1093
1125
|
type: HostListener,
|
|
1094
1126
|
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
1095
1127
|
}] }); })();
|
|
1128
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckboxsetComponent, { className: "CheckboxsetComponent", filePath: "checkboxset/checkboxset.component.ts", lineNumber: 27 }); })();
|
|
1096
1129
|
|
|
1097
1130
|
const registerProps$a = () => {
|
|
1098
1131
|
register('wm-form-group', new Map([
|
|
@@ -1116,8 +1149,8 @@ const CAPTION_POSITION = {
|
|
|
1116
1149
|
};
|
|
1117
1150
|
class CompositeDirective extends StylableComponent {
|
|
1118
1151
|
static { this.initializeProps = registerProps$a(); }
|
|
1119
|
-
constructor(inj) {
|
|
1120
|
-
super(inj, WIDGET_CONFIG$a);
|
|
1152
|
+
constructor(inj, explicitContext) {
|
|
1153
|
+
super(inj, WIDGET_CONFIG$a, explicitContext);
|
|
1121
1154
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER);
|
|
1122
1155
|
}
|
|
1123
1156
|
/**
|
|
@@ -1153,7 +1186,7 @@ class CompositeDirective extends StylableComponent {
|
|
|
1153
1186
|
addForIdAttributes(this.nativeElement);
|
|
1154
1187
|
this.assignRequiredToSubComponents();
|
|
1155
1188
|
}
|
|
1156
|
-
static { this.ɵfac = function CompositeDirective_Factory(t) { return new (t || CompositeDirective)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
1189
|
+
static { this.ɵfac = function CompositeDirective_Factory(t) { return new (t || CompositeDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1157
1190
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CompositeDirective, selectors: [["div", "wmComposite", ""]], contentQueries: function CompositeDirective_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
1158
1191
|
i0.ɵɵcontentQuery(dirIndex, WidgetRef, 5);
|
|
1159
1192
|
} if (rf & 2) {
|
|
@@ -1163,7 +1196,7 @@ class CompositeDirective extends StylableComponent {
|
|
|
1163
1196
|
provideAsWidgetRef(CompositeDirective)
|
|
1164
1197
|
]), i0.ɵɵInheritDefinitionFeature] }); }
|
|
1165
1198
|
}
|
|
1166
|
-
(
|
|
1199
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompositeDirective, [{
|
|
1167
1200
|
type: Directive,
|
|
1168
1201
|
args: [{
|
|
1169
1202
|
selector: 'div[wmComposite]',
|
|
@@ -1171,7 +1204,12 @@ class CompositeDirective extends StylableComponent {
|
|
|
1171
1204
|
provideAsWidgetRef(CompositeDirective)
|
|
1172
1205
|
]
|
|
1173
1206
|
}]
|
|
1174
|
-
}],
|
|
1207
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1208
|
+
type: Inject,
|
|
1209
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1210
|
+
}, {
|
|
1211
|
+
type: Optional
|
|
1212
|
+
}] }], { componentRefs: [{
|
|
1175
1213
|
type: ContentChildren,
|
|
1176
1214
|
args: [WidgetRef, { descendants: true }]
|
|
1177
1215
|
}] }); })();
|
|
@@ -1233,7 +1271,7 @@ class BaseInput extends BaseFormCustomComponent {
|
|
|
1233
1271
|
}
|
|
1234
1272
|
// invoke the change callback
|
|
1235
1273
|
handleChange(newValue) {
|
|
1236
|
-
if (this.autotrim && this.datavalue &&
|
|
1274
|
+
if (this.autotrim && this.datavalue && isString(this.datavalue)) {
|
|
1237
1275
|
this.datavalue = this.datavalue.trim();
|
|
1238
1276
|
}
|
|
1239
1277
|
this.invokeOnChange(this.datavalue, { type: 'change' }, this.ngModel.valid);
|
|
@@ -1251,7 +1289,7 @@ class BaseInput extends BaseFormCustomComponent {
|
|
|
1251
1289
|
// Update the model on enter key press
|
|
1252
1290
|
flushViewChanges(val) {
|
|
1253
1291
|
// when val contains masked value, update the model with unmasked value
|
|
1254
|
-
const unMaskedVal =
|
|
1292
|
+
const unMaskedVal = get(this.imask, 'maskRef.unmaskedValue');
|
|
1255
1293
|
val = unMaskedVal ? unMaskedVal : val;
|
|
1256
1294
|
this.ngModel.update.next(val);
|
|
1257
1295
|
$appDigest();
|
|
@@ -1264,8 +1302,8 @@ class BaseInput extends BaseFormCustomComponent {
|
|
|
1264
1302
|
}
|
|
1265
1303
|
styler(this.inputEl.nativeElement, this);
|
|
1266
1304
|
}
|
|
1267
|
-
constructor(inj, config) {
|
|
1268
|
-
super(inj, config);
|
|
1305
|
+
constructor(inj, config, explicitContext) {
|
|
1306
|
+
super(inj, config, explicitContext);
|
|
1269
1307
|
// possible values for ngModelOptions are 'blur' and 'change'
|
|
1270
1308
|
// default is 'blur'
|
|
1271
1309
|
this.ngModelOptions = {
|
|
@@ -1275,19 +1313,24 @@ class BaseInput extends BaseFormCustomComponent {
|
|
|
1275
1313
|
updateOn = updateOn === 'default' ? 'change' : updateOn;
|
|
1276
1314
|
this.ngModelOptions.updateOn = updateOn;
|
|
1277
1315
|
}
|
|
1278
|
-
static { this.ɵfac = function BaseInput_Factory(t) { return new (t || BaseInput)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig)); }; }
|
|
1316
|
+
static { this.ɵfac = function BaseInput_Factory(t) { return new (t || BaseInput)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(WidgetConfig), i0.ɵɵinject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1279
1317
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BaseInput, factory: BaseInput.ɵfac }); }
|
|
1280
1318
|
}
|
|
1281
|
-
(
|
|
1319
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseInput, [{
|
|
1282
1320
|
type: Injectable
|
|
1283
|
-
}],
|
|
1321
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1284
1322
|
type: Inject,
|
|
1285
1323
|
args: [WidgetConfig]
|
|
1286
|
-
}] }
|
|
1324
|
+
}] }, { type: undefined, decorators: [{
|
|
1325
|
+
type: Inject,
|
|
1326
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1327
|
+
}, {
|
|
1328
|
+
type: Optional
|
|
1329
|
+
}] }], null); })();
|
|
1287
1330
|
|
|
1288
|
-
class NumberLocale extends BaseInput {
|
|
1289
|
-
constructor(inj, config, i18nService, trailingZeroDecimalPipe) {
|
|
1290
|
-
super(inj, config);
|
|
1331
|
+
let NumberLocale = class NumberLocale extends BaseInput {
|
|
1332
|
+
constructor(inj, config, i18nService, trailingZeroDecimalPipe, explicitContext) {
|
|
1333
|
+
super(inj, config, explicitContext);
|
|
1291
1334
|
this.i18nService = i18nService;
|
|
1292
1335
|
this.trailingZeroDecimalPipe = trailingZeroDecimalPipe;
|
|
1293
1336
|
this.isDefaultQuery = true;
|
|
@@ -1303,7 +1346,8 @@ class NumberLocale extends BaseInput {
|
|
|
1303
1346
|
set datavalue(value) {
|
|
1304
1347
|
this.lastValIsDecimal = false;
|
|
1305
1348
|
// set text value to null if data value is empty.
|
|
1306
|
-
|
|
1349
|
+
// @ts-ignore
|
|
1350
|
+
if (includes([null, undefined, ''], value)) {
|
|
1307
1351
|
const input = this.inputEl.nativeElement;
|
|
1308
1352
|
const prevDataValue = this.prevDatavalue;
|
|
1309
1353
|
this.displayValue = input.value = this.proxyModel = null;
|
|
@@ -1316,8 +1360,8 @@ class NumberLocale extends BaseInput {
|
|
|
1316
1360
|
}
|
|
1317
1361
|
// if the widget has default value and if we change the locale, the value should be in selected locale format.
|
|
1318
1362
|
if (this.isDefaultQuery) {
|
|
1319
|
-
const isLocalizedNumber =
|
|
1320
|
-
const parts = isLocalizedNumber ? value.split(this.DECIMAL) :
|
|
1363
|
+
const isLocalizedNumber = isString(value) && includes(value, this.DECIMAL);
|
|
1364
|
+
const parts = isLocalizedNumber ? value.split(this.DECIMAL) : isString(value) && value.split('.');
|
|
1321
1365
|
this.decimalValue = parts[1] || '';
|
|
1322
1366
|
value = isLocalizedNumber ? value : this.transformNumber(value);
|
|
1323
1367
|
}
|
|
@@ -1332,7 +1376,7 @@ class NumberLocale extends BaseInput {
|
|
|
1332
1376
|
model = NaN;
|
|
1333
1377
|
}
|
|
1334
1378
|
// On keypress, if the user types a decimal and is still active on the input do not throw error.
|
|
1335
|
-
if (
|
|
1379
|
+
if (isNaN(model) && strVal[strVal.length - 1] === this.DECIMAL && this.ngModelOptions.updateOn === 'change' && this.$element.find('input:focus').length) {
|
|
1336
1380
|
this.lastValIsDecimal = true;
|
|
1337
1381
|
}
|
|
1338
1382
|
// get a valid number form the text.
|
|
@@ -1368,7 +1412,7 @@ class NumberLocale extends BaseInput {
|
|
|
1368
1412
|
*/
|
|
1369
1413
|
isValid(val) {
|
|
1370
1414
|
// id number is infinite then consider it as invalid value
|
|
1371
|
-
if (
|
|
1415
|
+
if (isNaN(val) || !isFinite(val) || (!Number.isInteger(this.step) &&
|
|
1372
1416
|
this.countDecimals(val) > this.countDecimals(this.step))) {
|
|
1373
1417
|
this.isInvalidNumber = true;
|
|
1374
1418
|
return false;
|
|
@@ -1386,11 +1430,11 @@ class NumberLocale extends BaseInput {
|
|
|
1386
1430
|
* @returns {number}
|
|
1387
1431
|
*/
|
|
1388
1432
|
getValueInRange(value) {
|
|
1389
|
-
if (!
|
|
1433
|
+
if (!isNaN(this.minvalue) && value < this.minvalue) {
|
|
1390
1434
|
this.validateType = 'minvalue';
|
|
1391
1435
|
return this.minvalue;
|
|
1392
1436
|
}
|
|
1393
|
-
if (!
|
|
1437
|
+
if (!isNaN(this.maxvalue) && value > this.maxvalue) {
|
|
1394
1438
|
this.validateType = 'maxvalue';
|
|
1395
1439
|
return this.maxvalue;
|
|
1396
1440
|
}
|
|
@@ -1519,7 +1563,7 @@ class NumberLocale extends BaseInput {
|
|
|
1519
1563
|
const valInWholeNum = parseInt(value.toString().replace(/\D/g, ''));
|
|
1520
1564
|
financialVal = valInWholeNum * this.step;
|
|
1521
1565
|
}
|
|
1522
|
-
if (!
|
|
1566
|
+
if (!isNaN(financialVal)) {
|
|
1523
1567
|
// When update on key is set keypress, update the datavalue else update only the display value
|
|
1524
1568
|
if (this.ngModelOptions.updateOn === 'change') {
|
|
1525
1569
|
this.datavalue = parseFloat(financialVal.toFixed(stepVal));
|
|
@@ -1579,7 +1623,7 @@ class NumberLocale extends BaseInput {
|
|
|
1579
1623
|
const targetVal = $event.target.value.replace(/,/g, '');
|
|
1580
1624
|
// proxyModel to be updated from $event.target.value if present to support arrow keys when input changes else pick up from this.proxymodel
|
|
1581
1625
|
let proxyModel;
|
|
1582
|
-
if (targetVal && !
|
|
1626
|
+
if (targetVal && !isNaN(parseFloat(targetVal))) {
|
|
1583
1627
|
proxyModel = parseFloat(targetVal);
|
|
1584
1628
|
}
|
|
1585
1629
|
else {
|
|
@@ -1590,14 +1634,14 @@ class NumberLocale extends BaseInput {
|
|
|
1590
1634
|
if (this.numberNotInRange) {
|
|
1591
1635
|
const inputValue = this.parseNumber(this.inputEl.nativeElement.value);
|
|
1592
1636
|
// take the textbox value as current model if the value is valid.
|
|
1593
|
-
if (!
|
|
1637
|
+
if (!isNaN(inputValue)) {
|
|
1594
1638
|
value = this.getValueInRange(inputValue);
|
|
1595
1639
|
proxyModel = inputValue;
|
|
1596
1640
|
this.resetValidations();
|
|
1597
1641
|
}
|
|
1598
1642
|
}
|
|
1599
1643
|
else {
|
|
1600
|
-
if (
|
|
1644
|
+
if (isUndefined(proxyModel) || isNull(proxyModel)) {
|
|
1601
1645
|
proxyModel = value = this.getValueInRange((this.minvalue || 0));
|
|
1602
1646
|
this.resetValidations();
|
|
1603
1647
|
}
|
|
@@ -1608,7 +1652,7 @@ class NumberLocale extends BaseInput {
|
|
|
1608
1652
|
if ((key === 'UP' && proxyModel <= value) || (key === 'DOWN' && proxyModel >= value)) {
|
|
1609
1653
|
const decimalRoundValue = Math.max(this.countDecimals(proxyModel), this.countDecimals(this.step));
|
|
1610
1654
|
// update the modelProxy.
|
|
1611
|
-
this.proxyModel =
|
|
1655
|
+
this.proxyModel = round(value, decimalRoundValue);
|
|
1612
1656
|
this.updateDisplayText();
|
|
1613
1657
|
this.handleChange(this.proxyModel);
|
|
1614
1658
|
}
|
|
@@ -1643,7 +1687,7 @@ class NumberLocale extends BaseInput {
|
|
|
1643
1687
|
validateInputEntry($event) {
|
|
1644
1688
|
this.isDefaultQuery = false;
|
|
1645
1689
|
// allow actions if control key is pressed or if backspace is pressed. (for Mozilla).
|
|
1646
|
-
if ($event.ctrlKey ||
|
|
1690
|
+
if ($event.ctrlKey || includes(['Backspace', 'ArrowRight', 'ArrowLeft', 'Tab', 'Enter', 'Delete'], $event.key)) {
|
|
1647
1691
|
return;
|
|
1648
1692
|
}
|
|
1649
1693
|
const validity = new RegExp(`^[\\d\\s-,.e+${this.GROUP}${this.DECIMAL}]$`, 'i');
|
|
@@ -1674,18 +1718,18 @@ class NumberLocale extends BaseInput {
|
|
|
1674
1718
|
return false;
|
|
1675
1719
|
}
|
|
1676
1720
|
// comma cannot be entered consecutively
|
|
1677
|
-
if (
|
|
1721
|
+
if (includes(inputValue, ',') && inputValue[inputValue.length - 1] === ',' && $event.key === ',') {
|
|
1678
1722
|
return false;
|
|
1679
1723
|
}
|
|
1680
1724
|
// a decimal value can be entered only once in the input.
|
|
1681
|
-
if (
|
|
1725
|
+
if (includes(inputValue, this.DECIMAL) && $event.key === this.DECIMAL) {
|
|
1682
1726
|
return false;
|
|
1683
1727
|
}
|
|
1684
1728
|
// 'e' can be entered only once in the input.
|
|
1685
|
-
if (
|
|
1729
|
+
if (intersection(toArray(inputValue), ['e', 'E']).length && includes('eE', $event.key)) {
|
|
1686
1730
|
return false;
|
|
1687
1731
|
}
|
|
1688
|
-
if ((
|
|
1732
|
+
if ((includes(inputValue, '+') || includes(inputValue, '-')) && ($event.key === '+' || $event.key === '-')) {
|
|
1689
1733
|
return false;
|
|
1690
1734
|
}
|
|
1691
1735
|
// Do not allow user to enter only space without any input value
|
|
@@ -1720,7 +1764,13 @@ class NumberLocale extends BaseInput {
|
|
|
1720
1764
|
super.onPropertyChange(key, nv, ov);
|
|
1721
1765
|
}
|
|
1722
1766
|
}
|
|
1723
|
-
}
|
|
1767
|
+
};
|
|
1768
|
+
NumberLocale = __decorate([
|
|
1769
|
+
__param(4, Inject('EXPLICIT_CONTEXT')),
|
|
1770
|
+
__param(4, Optional()),
|
|
1771
|
+
__metadata("design:paramtypes", [Injector, Object, AbstractI18nService,
|
|
1772
|
+
TrailingZeroDecimalPipe, Object])
|
|
1773
|
+
], NumberLocale);
|
|
1724
1774
|
|
|
1725
1775
|
const _c0$9 = ["input"];
|
|
1726
1776
|
const _c1$8 = ["wmNumber", ""];
|
|
@@ -1730,10 +1780,10 @@ const WIDGET_CONFIG$9 = {
|
|
|
1730
1780
|
};
|
|
1731
1781
|
class NumberComponent extends NumberLocale {
|
|
1732
1782
|
static { this.initializeProps = registerProps$9(); }
|
|
1733
|
-
constructor(inj, i18nService, trailingZeroDecimalPipe) {
|
|
1734
|
-
super(inj, WIDGET_CONFIG$9, i18nService, trailingZeroDecimalPipe);
|
|
1783
|
+
constructor(inj, i18nService, trailingZeroDecimalPipe, explicitContext) {
|
|
1784
|
+
super(inj, WIDGET_CONFIG$9, i18nService, trailingZeroDecimalPipe, explicitContext);
|
|
1735
1785
|
}
|
|
1736
|
-
static { this.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe)); }; }
|
|
1786
|
+
static { this.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.AbstractI18nService), i0.ɵɵdirectiveInject(i2.TrailingZeroDecimalPipe), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
1737
1787
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1738
1788
|
i0.ɵɵviewQuery(_c0$9, 7);
|
|
1739
1789
|
i0.ɵɵviewQuery(NgModel, 7);
|
|
@@ -1745,29 +1795,36 @@ class NumberComponent extends NumberLocale {
|
|
|
1745
1795
|
provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
|
|
1746
1796
|
provideAs(NumberComponent, NG_VALIDATORS, true),
|
|
1747
1797
|
provideAsWidgetRef(NumberComponent)
|
|
1748
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 14, consts: [["inputmode", "decimal", "focus-target", "", "role", "textbox", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "
|
|
1749
|
-
i0.ɵɵ
|
|
1750
|
-
i0.ɵɵ
|
|
1798
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 14, consts: [["input", ""], ["inputmode", "decimal", "focus-target", "", "role", "textbox", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown", "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngClass", "ngStyle", "ngModelOptions", "required"]], template: function NumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1799
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1800
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
1801
|
+
i0.ɵɵlistener("ngModelChange", function NumberComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onModelChange($event)); })("blur", function NumberComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("focus", function NumberComponent_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForTrailingZeros($event)); })("input", function NumberComponent_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange($event.target.value)); })("keypress", function NumberComponent_Template_input_keypress_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); })("keydown.backspace", function NumberComponent_Template_input_keydown_backspace_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onBackspace($event)); })("keydown.enter", function NumberComponent_Template_input_keydown_enter_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onEnter($event)); })("keydown.ArrowUp", function NumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "UP")); })("keydown.ArrowDown", function NumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event, "DOWN")); });
|
|
1751
1802
|
i0.ɵɵelementEnd();
|
|
1752
1803
|
} if (rf & 2) {
|
|
1753
1804
|
i0.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
1754
1805
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1755
1806
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.PatternValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
1756
1807
|
}
|
|
1757
|
-
(
|
|
1808
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NumberComponent, [{
|
|
1758
1809
|
type: Component,
|
|
1759
1810
|
args: [{ selector: '[wmNumber]', providers: [
|
|
1760
1811
|
provideAs(NumberComponent, NG_VALUE_ACCESSOR, true),
|
|
1761
1812
|
provideAs(NumberComponent, NG_VALIDATORS, true),
|
|
1762
1813
|
provideAsWidgetRef(NumberComponent)
|
|
1763
1814
|
], template: "<input class=\"form-control app-textbox app-number-input\"\n inputmode=\"decimal\"\n focus-target\n [attr.name]=\"name\"\n role=\"textbox\"\n type=\"text\"\n [ngModel]=\"displayValue\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"onModelChange($event)\"\n (blur)=\"handleBlur($event); checkForTrailingZeros($event);\"\n (focus)=\"checkForTrailingZeros($event)\"\n (input)=\"onInputChange($event.target.value)\"\n [ngModelOptions]=\"ngModelOptions\"\n [required]=\"required\"\n (keypress)=\"validateInputEntry($event)\"\n (keydown.backspace)=\"onBackspace($event)\"\n (keydown.enter)=\"onEnter($event)\"\n (keydown.ArrowUp)=\"onArrowPress($event, 'UP')\"\n (keydown.ArrowDown)=\"onArrowPress($event, 'DOWN')\"\n #input>\n" }]
|
|
1764
|
-
}],
|
|
1815
|
+
}], () => [{ type: i0.Injector }, { type: i1$1.AbstractI18nService }, { type: i2.TrailingZeroDecimalPipe }, { type: undefined, decorators: [{
|
|
1816
|
+
type: Inject,
|
|
1817
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1818
|
+
}, {
|
|
1819
|
+
type: Optional
|
|
1820
|
+
}] }], { inputEl: [{
|
|
1765
1821
|
type: ViewChild,
|
|
1766
1822
|
args: ['input', { static: true }]
|
|
1767
1823
|
}], ngModel: [{
|
|
1768
1824
|
type: ViewChild,
|
|
1769
1825
|
args: [NgModel, { static: true }]
|
|
1770
1826
|
}] }); })();
|
|
1827
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NumberComponent, { className: "NumberComponent", filePath: "number/number.component.ts", lineNumber: 24 }); })();
|
|
1771
1828
|
|
|
1772
1829
|
const radiosetProps = new Map([
|
|
1773
1830
|
['class', PROP_STRING],
|
|
@@ -1803,60 +1860,61 @@ const registerProps$8 = () => {
|
|
|
1803
1860
|
};
|
|
1804
1861
|
|
|
1805
1862
|
const _c0$8 = ["wmRadioset", ""];
|
|
1806
|
-
const _c1$7 =
|
|
1863
|
+
const _c1$7 = (a0, a1) => ["radio", "app-radio", a0, a1];
|
|
1864
|
+
const _c2$2 = a0 => ({ "disabled": a0 });
|
|
1865
|
+
const _c3 = a0 => ({ "collapsible-content": a0 });
|
|
1866
|
+
const _c4 = (a0, a1) => ["radio", "app-radio", "group-list-item", a0, a1];
|
|
1807
1867
|
function RadiosetComponent_ng_template_0_li_0_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
1808
1868
|
i0.ɵɵelementStart(0, "label", 7);
|
|
1809
1869
|
i0.ɵɵelement(1, "input", 8)(2, "span", 9);
|
|
1810
1870
|
i0.ɵɵelementEnd();
|
|
1811
1871
|
} if (rf & 2) {
|
|
1812
|
-
const
|
|
1813
|
-
const
|
|
1814
|
-
const
|
|
1815
|
-
const
|
|
1816
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10,
|
|
1817
|
-
i0.ɵɵadvance(
|
|
1818
|
-
i0.ɵɵproperty("name", "radioset_" +
|
|
1819
|
-
i0.ɵɵattribute("aria-checked",
|
|
1820
|
-
i0.ɵɵadvance(
|
|
1821
|
-
i0.ɵɵproperty("textContent",
|
|
1872
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
1873
|
+
const item_r2 = ctx_r3.$implicit;
|
|
1874
|
+
const i_r5 = ctx_r3.index;
|
|
1875
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1876
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c2$2, ctx_r2.disabled || ctx_r2.readonly));
|
|
1877
|
+
i0.ɵɵadvance();
|
|
1878
|
+
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r2.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
1879
|
+
i0.ɵɵattribute("aria-checked", item_r2.selected)("data-attr-index", i_r5)("aria-label", item_r2.key);
|
|
1880
|
+
i0.ɵɵadvance();
|
|
1881
|
+
i0.ɵɵproperty("textContent", item_r2.label);
|
|
1822
1882
|
} }
|
|
1823
1883
|
function RadiosetComponent_ng_template_0_li_0_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
1824
1884
|
i0.ɵɵelementStart(0, "label", 7);
|
|
1825
1885
|
i0.ɵɵelement(1, "input", 8)(2, "span", 10);
|
|
1826
1886
|
i0.ɵɵelementEnd();
|
|
1827
1887
|
} if (rf & 2) {
|
|
1828
|
-
const
|
|
1829
|
-
const
|
|
1830
|
-
const
|
|
1831
|
-
const
|
|
1832
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9,
|
|
1833
|
-
i0.ɵɵadvance(
|
|
1834
|
-
i0.ɵɵproperty("name", "radioset_" +
|
|
1835
|
-
i0.ɵɵattribute("aria-checked",
|
|
1888
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
1889
|
+
const item_r2 = ctx_r3.$implicit;
|
|
1890
|
+
const i_r5 = ctx_r3.index;
|
|
1891
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1892
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$2, ctx_r2.disabled || ctx_r2.readonly));
|
|
1893
|
+
i0.ɵɵadvance();
|
|
1894
|
+
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r2.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r2.selected);
|
|
1895
|
+
i0.ɵɵattribute("aria-checked", item_r2.selected)("data-attr-index", i_r5)("aria-label", item_r2.key);
|
|
1836
1896
|
} }
|
|
1837
|
-
const _c2$2 = function (a2, a3) { return ["radio", "app-radio", a2, a3]; };
|
|
1838
1897
|
function RadiosetComponent_ng_template_0_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
1839
|
-
const
|
|
1898
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
1840
1899
|
i0.ɵɵelementStart(0, "li", 5);
|
|
1841
|
-
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const
|
|
1842
|
-
i0.ɵɵtemplate(1, RadiosetComponent_ng_template_0_li_0_label_1_Template, 3, 12, "label", 6);
|
|
1843
|
-
i0.ɵɵtemplate(2, RadiosetComponent_ng_template_0_li_0_label_2_Template, 3, 11, "label", 6);
|
|
1900
|
+
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_0_li_0_Template_li_click_0_listener($event) { const item_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r2.key)); });
|
|
1901
|
+
i0.ɵɵtemplate(1, RadiosetComponent_ng_template_0_li_0_label_1_Template, 3, 12, "label", 6)(2, RadiosetComponent_ng_template_0_li_0_label_2_Template, 3, 11, "label", 6);
|
|
1844
1902
|
i0.ɵɵelementEnd();
|
|
1845
1903
|
} if (rf & 2) {
|
|
1846
|
-
const
|
|
1847
|
-
const
|
|
1848
|
-
i0.ɵɵclassProp("active",
|
|
1849
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7,
|
|
1850
|
-
i0.ɵɵadvance(
|
|
1851
|
-
i0.ɵɵproperty("ngIf", !
|
|
1852
|
-
i0.ɵɵadvance(
|
|
1853
|
-
i0.ɵɵproperty("ngIf",
|
|
1904
|
+
const item_r2 = ctx.$implicit;
|
|
1905
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1906
|
+
i0.ɵɵclassProp("active", item_r2.selected);
|
|
1907
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c1$7, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r2);
|
|
1908
|
+
i0.ɵɵadvance();
|
|
1909
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
1910
|
+
i0.ɵɵadvance();
|
|
1911
|
+
i0.ɵɵproperty("ngIf", ctx_r2.content);
|
|
1854
1912
|
} }
|
|
1855
1913
|
function RadiosetComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
1856
1914
|
i0.ɵɵtemplate(0, RadiosetComponent_ng_template_0_li_0_Template, 3, 10, "li", 4);
|
|
1857
1915
|
} if (rf & 2) {
|
|
1858
|
-
const
|
|
1859
|
-
i0.ɵɵproperty("ngForOf",
|
|
1916
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
1917
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.datasetItems);
|
|
1860
1918
|
} }
|
|
1861
1919
|
function RadiosetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1862
1920
|
i0.ɵɵelement(0, "div", 11);
|
|
@@ -1864,102 +1922,98 @@ function RadiosetComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1864
1922
|
function RadiosetComponent_ng_template_3_li_0_i_6_Template(rf, ctx) { if (rf & 1) {
|
|
1865
1923
|
i0.ɵɵelement(0, "i", 21);
|
|
1866
1924
|
} if (rf & 2) {
|
|
1867
|
-
const
|
|
1868
|
-
i0.ɵɵpropertyInterpolate2("title", "",
|
|
1925
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
1926
|
+
i0.ɵɵpropertyInterpolate2("title", "", ctx_r2.appLocale.LABEL_COLLAPSE, "/", ctx_r2.appLocale.LABEL_EXPAND, "");
|
|
1869
1927
|
} }
|
|
1870
1928
|
function RadiosetComponent_ng_template_3_li_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
1871
1929
|
i0.ɵɵelement(0, "span", 22);
|
|
1872
1930
|
} if (rf & 2) {
|
|
1873
|
-
const
|
|
1874
|
-
i0.ɵɵproperty("textContent",
|
|
1931
|
+
const groupObj_r7 = i0.ɵɵnextContext().$implicit;
|
|
1932
|
+
i0.ɵɵproperty("textContent", groupObj_r7.data.length);
|
|
1875
1933
|
} }
|
|
1876
1934
|
function RadiosetComponent_ng_template_3_li_0_li_8_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
1877
1935
|
i0.ɵɵelementStart(0, "label", 7);
|
|
1878
1936
|
i0.ɵɵelement(1, "input", 8)(2, "span", 9);
|
|
1879
1937
|
i0.ɵɵelementEnd();
|
|
1880
1938
|
} if (rf & 2) {
|
|
1881
|
-
const
|
|
1882
|
-
const
|
|
1883
|
-
const
|
|
1884
|
-
const
|
|
1885
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9,
|
|
1886
|
-
i0.ɵɵadvance(
|
|
1887
|
-
i0.ɵɵproperty("name", "radioset_" +
|
|
1888
|
-
i0.ɵɵattribute("aria-checked",
|
|
1889
|
-
i0.ɵɵadvance(
|
|
1890
|
-
i0.ɵɵproperty("textContent",
|
|
1939
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
1940
|
+
const item_r9 = ctx_r9.$implicit;
|
|
1941
|
+
const i_r11 = ctx_r9.index;
|
|
1942
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
1943
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$2, ctx_r2.disabled || ctx_r2.readonly));
|
|
1944
|
+
i0.ɵɵadvance();
|
|
1945
|
+
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r9.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
1946
|
+
i0.ɵɵattribute("aria-checked", item_r9.selected)("data-attr-index", i_r11);
|
|
1947
|
+
i0.ɵɵadvance();
|
|
1948
|
+
i0.ɵɵproperty("textContent", item_r9.label);
|
|
1891
1949
|
} }
|
|
1892
1950
|
function RadiosetComponent_ng_template_3_li_0_li_8_label_2_Template(rf, ctx) { if (rf & 1) {
|
|
1893
1951
|
i0.ɵɵelementStart(0, "label", 7);
|
|
1894
1952
|
i0.ɵɵelement(1, "input", 8)(2, "span", 10);
|
|
1895
1953
|
i0.ɵɵelementEnd();
|
|
1896
1954
|
} if (rf & 2) {
|
|
1897
|
-
const
|
|
1898
|
-
const
|
|
1899
|
-
const
|
|
1900
|
-
const
|
|
1901
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8,
|
|
1902
|
-
i0.ɵɵadvance(
|
|
1903
|
-
i0.ɵɵproperty("name", "radioset_" +
|
|
1904
|
-
i0.ɵɵattribute("aria-checked",
|
|
1955
|
+
const ctx_r9 = i0.ɵɵnextContext();
|
|
1956
|
+
const item_r9 = ctx_r9.$implicit;
|
|
1957
|
+
const i_r11 = ctx_r9.index;
|
|
1958
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
1959
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$2, ctx_r2.disabled || ctx_r2.readonly));
|
|
1960
|
+
i0.ɵɵadvance();
|
|
1961
|
+
i0.ɵɵproperty("name", "radioset_" + ctx_r2.widgetId)("value", item_r9.key)("disabled", ctx_r2.disabled || ctx_r2.readonly)("tabindex", ctx_r2.tabindex)("checked", item_r9.selected);
|
|
1962
|
+
i0.ɵɵattribute("aria-checked", item_r9.selected)("data-attr-index", i_r11);
|
|
1905
1963
|
} }
|
|
1906
|
-
const _c3 = function (a3, a4) { return ["radio", "app-radio", "group-list-item", a3, a4]; };
|
|
1907
1964
|
function RadiosetComponent_ng_template_3_li_0_li_8_Template(rf, ctx) { if (rf & 1) {
|
|
1908
|
-
const
|
|
1965
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
1909
1966
|
i0.ɵɵelementStart(0, "li", 23);
|
|
1910
|
-
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const
|
|
1911
|
-
i0.ɵɵtemplate(1, RadiosetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 11, "label", 6);
|
|
1912
|
-
i0.ɵɵtemplate(2, RadiosetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 10, "label", 6);
|
|
1967
|
+
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_li_8_Template_li_click_0_listener($event) { const item_r9 = i0.ɵɵrestoreView(_r8).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onRadioLabelClick($event, item_r9)); });
|
|
1968
|
+
i0.ɵɵtemplate(1, RadiosetComponent_ng_template_3_li_0_li_8_label_1_Template, 3, 11, "label", 6)(2, RadiosetComponent_ng_template_3_li_0_li_8_label_2_Template, 3, 10, "label", 6);
|
|
1913
1969
|
i0.ɵɵelementEnd();
|
|
1914
1970
|
} if (rf & 2) {
|
|
1915
|
-
const
|
|
1916
|
-
const
|
|
1917
|
-
i0.ɵɵclassProp("active",
|
|
1918
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7,
|
|
1919
|
-
i0.ɵɵadvance(
|
|
1920
|
-
i0.ɵɵproperty("ngIf", !
|
|
1921
|
-
i0.ɵɵadvance(
|
|
1922
|
-
i0.ɵɵproperty("ngIf",
|
|
1971
|
+
const item_r9 = ctx.$implicit;
|
|
1972
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
1973
|
+
i0.ɵɵclassProp("active", item_r9.selected);
|
|
1974
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c4, ctx_r2.itemclass, ctx_r2.itemsPerRowClass))("wmItemTemplate", ctx_r2.content)("userComponentParams", item_r9);
|
|
1975
|
+
i0.ɵɵadvance();
|
|
1976
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.content);
|
|
1977
|
+
i0.ɵɵadvance();
|
|
1978
|
+
i0.ɵɵproperty("ngIf", ctx_r2.content);
|
|
1923
1979
|
} }
|
|
1924
|
-
const _c4 = function (a0) { return { "collapsible-content": a0 }; };
|
|
1925
1980
|
function RadiosetComponent_ng_template_3_li_0_Template(rf, ctx) { if (rf & 1) {
|
|
1926
|
-
const
|
|
1981
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
1927
1982
|
i0.ɵɵelementStart(0, "li", 13)(1, "ul", 14)(2, "li", 15);
|
|
1928
|
-
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(
|
|
1983
|
+
i0.ɵɵlistener("click", function RadiosetComponent_ng_template_3_li_0_Template_li_click_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.handleHeaderClick($event)); });
|
|
1929
1984
|
i0.ɵɵelementStart(3, "h4", 16);
|
|
1930
1985
|
i0.ɵɵtext(4);
|
|
1931
1986
|
i0.ɵɵelementStart(5, "div", 17);
|
|
1932
|
-
i0.ɵɵtemplate(6, RadiosetComponent_ng_template_3_li_0_i_6_Template, 1,
|
|
1933
|
-
i0.ɵɵtemplate(7, RadiosetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 19);
|
|
1987
|
+
i0.ɵɵtemplate(6, RadiosetComponent_ng_template_3_li_0_i_6_Template, 1, 3, "i", 18)(7, RadiosetComponent_ng_template_3_li_0_span_7_Template, 1, 1, "span", 19);
|
|
1934
1988
|
i0.ɵɵelementEnd()()();
|
|
1935
1989
|
i0.ɵɵtemplate(8, RadiosetComponent_ng_template_3_li_0_li_8_Template, 3, 10, "li", 20);
|
|
1936
1990
|
i0.ɵɵelementEnd()();
|
|
1937
1991
|
} if (rf & 2) {
|
|
1938
|
-
const
|
|
1939
|
-
const
|
|
1992
|
+
const groupObj_r7 = ctx.$implicit;
|
|
1993
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
1940
1994
|
i0.ɵɵadvance(2);
|
|
1941
|
-
i0.ɵɵproperty("title",
|
|
1995
|
+
i0.ɵɵproperty("title", groupObj_r7.key)("ngClass", i0.ɵɵpureFunction1(6, _c3, ctx_r2.collapsible));
|
|
1942
1996
|
i0.ɵɵadvance(2);
|
|
1943
|
-
i0.ɵɵtextInterpolate1("",
|
|
1997
|
+
i0.ɵɵtextInterpolate1("", groupObj_r7.key, " ");
|
|
1944
1998
|
i0.ɵɵadvance(2);
|
|
1945
|
-
i0.ɵɵproperty("ngIf",
|
|
1946
|
-
i0.ɵɵadvance(
|
|
1947
|
-
i0.ɵɵproperty("ngIf",
|
|
1948
|
-
i0.ɵɵadvance(
|
|
1949
|
-
i0.ɵɵproperty("ngForOf",
|
|
1999
|
+
i0.ɵɵproperty("ngIf", ctx_r2.collapsible);
|
|
2000
|
+
i0.ɵɵadvance();
|
|
2001
|
+
i0.ɵɵproperty("ngIf", ctx_r2.showcount);
|
|
2002
|
+
i0.ɵɵadvance();
|
|
2003
|
+
i0.ɵɵproperty("ngForOf", groupObj_r7.data);
|
|
1950
2004
|
} }
|
|
1951
2005
|
function RadiosetComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
1952
2006
|
i0.ɵɵtemplate(0, RadiosetComponent_ng_template_3_li_0_Template, 9, 8, "li", 12);
|
|
1953
2007
|
} if (rf & 2) {
|
|
1954
|
-
const
|
|
1955
|
-
i0.ɵɵproperty("ngForOf",
|
|
2008
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
2009
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.groupedData);
|
|
1956
2010
|
} }
|
|
1957
2011
|
const DEFAULT_CLS$1 = 'app-radioset list-group inline';
|
|
1958
2012
|
const WIDGET_CONFIG$8 = { widgetType: 'wm-radioset', hostClass: DEFAULT_CLS$1 };
|
|
1959
2013
|
class RadiosetComponent extends DatasetAwareFormComponent {
|
|
1960
2014
|
static { this.initializeProps = registerProps$8(); }
|
|
1961
|
-
constructor(inj) {
|
|
1962
|
-
super(inj, WIDGET_CONFIG$8);
|
|
2015
|
+
constructor(inj, explicitContext) {
|
|
2016
|
+
super(inj, WIDGET_CONFIG$8, explicitContext);
|
|
1963
2017
|
this.layout = '';
|
|
1964
2018
|
styler(this.nativeElement, this);
|
|
1965
2019
|
this.multiple = false;
|
|
@@ -1987,7 +2041,7 @@ class RadiosetComponent extends DatasetAwareFormComponent {
|
|
|
1987
2041
|
return callback();
|
|
1988
2042
|
});
|
|
1989
2043
|
}
|
|
1990
|
-
else if (!
|
|
2044
|
+
else if (!includes(['change'], eventName)) {
|
|
1991
2045
|
super.handleEvent(node, eventName, callback, locals);
|
|
1992
2046
|
}
|
|
1993
2047
|
}
|
|
@@ -2002,33 +2056,38 @@ class RadiosetComponent extends DatasetAwareFormComponent {
|
|
|
2002
2056
|
super.onPropertyChange(key, nv, ov);
|
|
2003
2057
|
}
|
|
2004
2058
|
}
|
|
2005
|
-
static { this.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2059
|
+
static { this.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2006
2060
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RadiosetComponent, selectors: [["", "wmRadioset", ""]], exportAs: ["wmRadioset"], features: [i0.ɵɵProvidersFeature([
|
|
2007
2061
|
provideAs(RadiosetComponent, NG_VALUE_ACCESSOR, true),
|
|
2008
2062
|
provideAs(RadiosetComponent, NG_VALIDATORS, true),
|
|
2009
2063
|
provideAsWidgetRef(RadiosetComponent)
|
|
2010
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls: 5, vars: 4, consts: [[3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["aria-readonly", "true", "class", "readonly-wrapper", 4, "ngIf"], ["
|
|
2011
|
-
i0.ɵɵtemplate(0, RadiosetComponent_ng_template_0_Template, 1, 1, "ng-template",
|
|
2012
|
-
i0.ɵɵelement(1, "input",
|
|
2013
|
-
i0.ɵɵtemplate(2, RadiosetComponent_div_2_Template, 1, 0, "div",
|
|
2014
|
-
i0.ɵɵtemplate(3, RadiosetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
2064
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$8, decls: 5, vars: 4, consts: [["groupedListTemplate", ""], [3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["aria-readonly", "true", "class", "readonly-wrapper", 4, "ngIf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"], ["class", "app-radioset-label", 3, "ngClass", 4, "ngIf"], [1, "app-radioset-label", 3, "ngClass"], ["type", "radio", 3, "name", "value", "disabled", "tabindex", "checked"], [1, "caption", 3, "textContent"], ["partial-container-target", "", 1, "caption", "customTemplate"], ["aria-readonly", "true", 1, "readonly-wrapper"], ["class", "app-list-item-group", 4, "ngFor", "ngForOf"], [1, "app-list-item-group"], [1, "item-group"], [1, "list-group-header", 3, "click", "title", "ngClass"], [1, "group-title"], [1, "header-action"], ["class", "app-icon wi action wi-chevron-up", 3, "title", 4, "ngIf"], ["class", "label label-default", 3, "textContent", 4, "ngIf"], ["partialContainer", "", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], [1, "app-icon", "wi", "action", "wi-chevron-up", 3, "title"], [1, "label", "label-default", 3, "textContent"], ["partialContainer", "", 3, "click", "ngClass", "wmItemTemplate", "userComponentParams"]], template: function RadiosetComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2065
|
+
i0.ɵɵtemplate(0, RadiosetComponent_ng_template_0_Template, 1, 1, "ng-template", 1);
|
|
2066
|
+
i0.ɵɵelement(1, "input", 2);
|
|
2067
|
+
i0.ɵɵtemplate(2, RadiosetComponent_div_2_Template, 1, 0, "div", 3)(3, RadiosetComponent_ng_template_3_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
2015
2068
|
} if (rf & 2) {
|
|
2016
|
-
const
|
|
2017
|
-
i0.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse",
|
|
2018
|
-
i0.ɵɵadvance(
|
|
2069
|
+
const groupedListTemplate_r12 = i0.ɵɵreference(4);
|
|
2070
|
+
i0.ɵɵproperty("ngIf", !ctx.groupby)("ngIfElse", groupedListTemplate_r12);
|
|
2071
|
+
i0.ɵɵadvance();
|
|
2019
2072
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.readonly);
|
|
2020
|
-
i0.ɵɵadvance(
|
|
2073
|
+
i0.ɵɵadvance();
|
|
2021
2074
|
i0.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
2022
2075
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.ItemTemplateDirective, i2.PartialParamHandlerDirective, i2.PartialContainerDirective, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2023
2076
|
}
|
|
2024
|
-
(
|
|
2077
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2025
2078
|
type: Component,
|
|
2026
2079
|
args: [{ selector: '[wmRadioset]', exportAs: 'wmRadioset', providers: [
|
|
2027
2080
|
provideAs(RadiosetComponent, NG_VALUE_ACCESSOR, true),
|
|
2028
2081
|
provideAs(RadiosetComponent, NG_VALIDATORS, true),
|
|
2029
2082
|
provideAsWidgetRef(RadiosetComponent)
|
|
2030
2083
|
], template: "<ng-template [ngIf]=\"!groupby\" [ngIfElse]=\"groupedListTemplate\">\n <li [ngClass]=\"['radio', 'app-radio', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n *ngFor=\"let item of datasetItems;let i = index\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item.key)\" role=\"presentation\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"\n [attr.aria-label]=\"item.key\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"\n [attr.aria-label]=\"item.key\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n</ng-template>\n\n<input [disabled]=\"disabled || readonly\" hidden class=\"model-holder\">\n<div *ngIf=\"readonly || disabled\" aria-readonly=\"true\" class=\"readonly-wrapper\"></div>\n\n<!-- This template will be displayed when groupby is specified. -->\n<ng-template #groupedListTemplate>\n <li *ngFor=\"let groupObj of groupedData\" class=\"app-list-item-group\">\n <ul class=\"item-group\">\n <li class=\"list-group-header\" (click)=\"handleHeaderClick($event)\" [title]=\"groupObj.key\" [ngClass]=\"{'collapsible-content': collapsible}\">\n <h4 class=\"group-title\">{{groupObj.key}}\n <div class=\"header-action\">\n <i class=\"app-icon wi action wi-chevron-up\" *ngIf=\"collapsible\" title=\"{{appLocale.LABEL_COLLAPSE}}/{{appLocale.LABEL_EXPAND}}\"></i>\n <span *ngIf=\"showcount\" class=\"label label-default\" [textContent]=\"groupObj.data.length\"></span>\n </div>\n </h4>\n </li>\n <li *ngFor=\"let item of groupObj.data; let i = index;\"\n [ngClass]=\"['radio', 'app-radio', 'group-list-item', itemclass, itemsPerRowClass]\"\n [class.active]=\"item.selected\"\n [wmItemTemplate]=\"content\" [userComponentParams]=\"item\" partialContainer\n (click)=\"onRadioLabelClick($event, item)\">\n <!-- Default item template -->\n <label *ngIf=\"!content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption\" [textContent]=\"item.label\"></span>\n </label>\n <!-- Custom partial template -->\n <label *ngIf=\"content\" class=\"app-radioset-label\"\n [ngClass]=\"{'disabled':disabled || readonly}\">\n <input [name]=\"'radioset_' + widgetId\" type=\"radio\" [attr.aria-checked]=\"item.selected\" [attr.data-attr-index]=\"i\"\n [value]=\"item.key\" [disabled]=\"disabled || readonly\" [tabindex]=\"tabindex\" [checked]=\"item.selected\"/>\n <span class=\"caption customTemplate\" partial-container-target></span>\n </label>\n </li>\n </ul>\n </li>\n</ng-template>\n" }]
|
|
2031
|
-
}],
|
|
2084
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2085
|
+
type: Inject,
|
|
2086
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2087
|
+
}, {
|
|
2088
|
+
type: Optional
|
|
2089
|
+
}] }], null); })();
|
|
2090
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(RadiosetComponent, { className: "RadiosetComponent", filePath: "radioset/radioset.component.ts", lineNumber: 26 }); })();
|
|
2032
2091
|
|
|
2033
2092
|
const selectProps = new Map([
|
|
2034
2093
|
['autofocus', PROP_BOOLEAN],
|
|
@@ -2064,53 +2123,47 @@ const registerProps$7 = () => {
|
|
|
2064
2123
|
};
|
|
2065
2124
|
|
|
2066
2125
|
const _c0$7 = ["select"];
|
|
2067
|
-
|
|
2068
|
-
i0.ɵɵelement(0, "option", 4);
|
|
2069
|
-
} if (rf & 2) {
|
|
2070
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
2071
|
-
i0.ɵɵproperty("textContent", ctx_r1.placeholder)("hidden", !ctx_r1.placeholder);
|
|
2072
|
-
} }
|
|
2126
|
+
const _c1$6 = a0 => ["app-select form-control", a0];
|
|
2073
2127
|
function SelectComponent_ng_container_3_optgroup_1_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
2074
|
-
i0.ɵɵelement(0, "option",
|
|
2128
|
+
i0.ɵɵelement(0, "option", 7);
|
|
2075
2129
|
} if (rf & 2) {
|
|
2076
|
-
const
|
|
2077
|
-
i0.ɵɵproperty("value",
|
|
2130
|
+
const item_r2 = ctx.$implicit;
|
|
2131
|
+
i0.ɵɵproperty("value", item_r2.key)("selected", item_r2.selected)("textContent", item_r2.label);
|
|
2078
2132
|
} }
|
|
2079
2133
|
function SelectComponent_ng_container_3_optgroup_1_Template(rf, ctx) { if (rf & 1) {
|
|
2080
|
-
i0.ɵɵelementStart(0, "optgroup",
|
|
2081
|
-
i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option",
|
|
2134
|
+
i0.ɵɵelementStart(0, "optgroup", 5);
|
|
2135
|
+
i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_option_1_Template, 1, 3, "option", 6);
|
|
2082
2136
|
i0.ɵɵelementEnd();
|
|
2083
2137
|
} if (rf & 2) {
|
|
2084
|
-
const
|
|
2085
|
-
i0.ɵɵproperty("label",
|
|
2086
|
-
i0.ɵɵadvance(
|
|
2087
|
-
i0.ɵɵproperty("ngForOf",
|
|
2138
|
+
const groupObj_r3 = ctx.$implicit;
|
|
2139
|
+
i0.ɵɵproperty("label", groupObj_r3.key);
|
|
2140
|
+
i0.ɵɵadvance();
|
|
2141
|
+
i0.ɵɵproperty("ngForOf", groupObj_r3.data);
|
|
2088
2142
|
} }
|
|
2089
2143
|
function SelectComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
2090
2144
|
i0.ɵɵelementContainerStart(0);
|
|
2091
|
-
i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup",
|
|
2145
|
+
i0.ɵɵtemplate(1, SelectComponent_ng_container_3_optgroup_1_Template, 2, 2, "optgroup", 4);
|
|
2092
2146
|
i0.ɵɵelementContainerEnd();
|
|
2093
2147
|
} if (rf & 2) {
|
|
2094
|
-
const
|
|
2095
|
-
i0.ɵɵadvance(
|
|
2096
|
-
i0.ɵɵproperty("ngForOf",
|
|
2148
|
+
const ctx_r3 = i0.ɵɵnextContext();
|
|
2149
|
+
i0.ɵɵadvance();
|
|
2150
|
+
i0.ɵɵproperty("ngForOf", ctx_r3.groupedData);
|
|
2097
2151
|
} }
|
|
2098
2152
|
function SelectComponent_ng_container_4_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
2099
|
-
i0.ɵɵelement(0, "option",
|
|
2153
|
+
i0.ɵɵelement(0, "option", 7);
|
|
2100
2154
|
} if (rf & 2) {
|
|
2101
|
-
const
|
|
2102
|
-
i0.ɵɵproperty("value",
|
|
2155
|
+
const item_r5 = ctx.$implicit;
|
|
2156
|
+
i0.ɵɵproperty("value", item_r5.key)("selected", item_r5.selected)("textContent", item_r5.label);
|
|
2103
2157
|
} }
|
|
2104
2158
|
function SelectComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
2105
2159
|
i0.ɵɵelementContainerStart(0);
|
|
2106
|
-
i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option",
|
|
2160
|
+
i0.ɵɵtemplate(1, SelectComponent_ng_container_4_option_1_Template, 1, 3, "option", 6);
|
|
2107
2161
|
i0.ɵɵelementContainerEnd();
|
|
2108
2162
|
} if (rf & 2) {
|
|
2109
2163
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
2110
|
-
i0.ɵɵadvance(
|
|
2164
|
+
i0.ɵɵadvance();
|
|
2111
2165
|
i0.ɵɵproperty("ngForOf", ctx_r3.datasetItems);
|
|
2112
2166
|
} }
|
|
2113
|
-
const _c1$6 = function (a1) { return ["app-select form-control", a1]; };
|
|
2114
2167
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2115
2168
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
2116
2169
|
static { this.initializeProps = registerProps$7(); }
|
|
@@ -2119,21 +2172,18 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2119
2172
|
this.datavalue = ds.execute(DataSource.Operation.GET_DEFAULT_LOCALE);
|
|
2120
2173
|
}
|
|
2121
2174
|
}
|
|
2122
|
-
constructor(inj, app) {
|
|
2123
|
-
super(inj, WIDGET_CONFIG$7);
|
|
2175
|
+
constructor(inj, app, explicitContext) {
|
|
2176
|
+
super(inj, WIDGET_CONFIG$7, explicitContext);
|
|
2124
2177
|
this.app = app;
|
|
2125
2178
|
this.acceptsArray = true;
|
|
2126
2179
|
}
|
|
2127
2180
|
ngAfterViewInit() {
|
|
2128
2181
|
super.ngAfterViewInit();
|
|
2129
2182
|
styler(this.selectEl.nativeElement, this);
|
|
2130
|
-
setTimeout(() => {
|
|
2131
|
-
this.checkForFloatingLabel(null);
|
|
2132
|
-
}, 10);
|
|
2133
2183
|
}
|
|
2134
2184
|
// Change event is registered from the template, Prevent the framework from registering one more event
|
|
2135
2185
|
handleEvent(node, eventName, eventCallback, locals) {
|
|
2136
|
-
if (!
|
|
2186
|
+
if (!includes(['blur', 'change'], eventName)) {
|
|
2137
2187
|
super.handleEvent(this.selectEl.nativeElement, eventName, eventCallback, locals);
|
|
2138
2188
|
}
|
|
2139
2189
|
}
|
|
@@ -2176,16 +2226,6 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2176
2226
|
}
|
|
2177
2227
|
super.onPropertyChange(key, nv, ov);
|
|
2178
2228
|
}
|
|
2179
|
-
isSafariBrowser() {
|
|
2180
|
-
var reg = {
|
|
2181
|
-
MAC: /Mac/i,
|
|
2182
|
-
MACINTEL: /MacIntel/i
|
|
2183
|
-
};
|
|
2184
|
-
return reg.MAC.test(window.navigator.platform) || reg.MACINTEL.test(window.navigator.platform);
|
|
2185
|
-
}
|
|
2186
|
-
isIosPlatform() {
|
|
2187
|
-
return isIos() || this.isSafariBrowser();
|
|
2188
|
-
}
|
|
2189
2229
|
/**
|
|
2190
2230
|
* When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
|
|
2191
2231
|
* When focused add the placeholder to the option which is selected
|
|
@@ -2195,25 +2235,35 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2195
2235
|
checkForFloatingLabel($event) {
|
|
2196
2236
|
const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
|
|
2197
2237
|
if (captionEl.length > 0) {
|
|
2198
|
-
if (
|
|
2199
|
-
if (
|
|
2200
|
-
this.
|
|
2238
|
+
if ($event.type === 'focus' && (!this.datavalue || (this.datavalue && $(this.selectEl).find('select option:selected').text() === '' && this.placeholder))) {
|
|
2239
|
+
if (!(this.datavalue || this.placeholder)) {
|
|
2240
|
+
this.removePlaceholderOption();
|
|
2201
2241
|
}
|
|
2202
|
-
|
|
2242
|
+
else {
|
|
2203
2243
|
$(this.selectEl.nativeElement).find('option:first').text(this.placeholder);
|
|
2204
2244
|
}
|
|
2205
2245
|
}
|
|
2206
2246
|
else if (!this.datavalue) {
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
if (!this.isIosPlatform()) {
|
|
2210
|
-
captionEl.removeClass('float-active');
|
|
2211
|
-
}
|
|
2212
|
-
}
|
|
2247
|
+
$(this.selectEl.nativeElement).find('option:selected').text('');
|
|
2248
|
+
captionEl.removeClass('float-active');
|
|
2213
2249
|
}
|
|
2214
2250
|
}
|
|
2251
|
+
else if (!(this.datavalue || this.placeholder)) {
|
|
2252
|
+
this.removePlaceholderOption();
|
|
2253
|
+
}
|
|
2215
2254
|
}
|
|
2216
|
-
|
|
2255
|
+
/*
|
|
2256
|
+
* Removing the placeholder option if no placeholder is provided.
|
|
2257
|
+
* In html we are hiding the placeholder option using css but in apple devices and safari option is showing.
|
|
2258
|
+
* */
|
|
2259
|
+
removePlaceholderOption() {
|
|
2260
|
+
const hiddenEle = $(this.selectEl.nativeElement).find('#placeholderOption');
|
|
2261
|
+
if (hiddenEle.length) {
|
|
2262
|
+
hiddenEle.remove();
|
|
2263
|
+
this.selectEl.nativeElement.value = '';
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
static { this.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2217
2267
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectComponent, selectors: [["wm-select"]], viewQuery: function SelectComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2218
2268
|
i0.ɵɵviewQuery(_c0$7, 7, ElementRef);
|
|
2219
2269
|
} if (rf & 2) {
|
|
@@ -2223,35 +2273,44 @@ class SelectComponent extends DatasetAwareFormComponent {
|
|
|
2223
2273
|
provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
|
|
2224
2274
|
provideAs(SelectComponent, NG_VALIDATORS, true),
|
|
2225
2275
|
provideAsWidgetRef(SelectComponent)
|
|
2226
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2227
|
-
i0.ɵɵ
|
|
2228
|
-
i0.ɵɵ
|
|
2229
|
-
i0.ɵɵ
|
|
2230
|
-
i0.ɵɵ
|
|
2231
|
-
i0.ɵɵ
|
|
2276
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["select", ""], ["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngModelChange", "change", "focus", "blur", "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus"], ["selected", "", "value", "undefined", "id", "placeholderOption", 3, "textContent", "hidden"], [4, "ngIf"], [3, "label", 4, "ngFor", "ngForOf"], [3, "label"], ["role", "option", 3, "value", "selected", "textContent", 4, "ngFor", "ngForOf"], ["role", "option", 3, "value", "selected", "textContent"]], template: function SelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2277
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2278
|
+
i0.ɵɵelementStart(0, "select", 1, 0);
|
|
2279
|
+
i0.ɵɵtwoWayListener("ngModelChange", function SelectComponent_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.modelByKey, $event) || (ctx.modelByKey = $event); return i0.ɵɵresetView($event); });
|
|
2280
|
+
i0.ɵɵlistener("change", function SelectComponent_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectValueChange($event)); })("focus", function SelectComponent_Template_select_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForFloatingLabel($event)); })("blur", function SelectComponent_Template_select_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.invokeOnTouched($event); return i0.ɵɵresetView(ctx.checkForFloatingLabel($event)); });
|
|
2281
|
+
i0.ɵɵelement(2, "option", 2);
|
|
2282
|
+
i0.ɵɵtemplate(3, SelectComponent_ng_container_3_Template, 2, 1, "ng-container", 3)(4, SelectComponent_ng_container_4_Template, 2, 1, "ng-container", 3);
|
|
2232
2283
|
i0.ɵɵelementEnd();
|
|
2233
2284
|
} if (rf & 2) {
|
|
2234
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
2285
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c1$6, ctx.class))("disabled", ctx.disabled)("required", ctx.required)("tabindex", ctx.tabindex);
|
|
2286
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.modelByKey);
|
|
2287
|
+
i0.ɵɵproperty("multiple", ctx.multiple)("autofocus", ctx.autofocus);
|
|
2235
2288
|
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("aria-multiselectable", ctx.multiple);
|
|
2236
2289
|
i0.ɵɵadvance(2);
|
|
2237
|
-
i0.ɵɵproperty("
|
|
2238
|
-
i0.ɵɵadvance(
|
|
2290
|
+
i0.ɵɵproperty("textContent", ctx.placeholder)("hidden", !ctx.placeholder);
|
|
2291
|
+
i0.ɵɵadvance();
|
|
2239
2292
|
i0.ɵɵproperty("ngIf", ctx.groupby);
|
|
2240
|
-
i0.ɵɵadvance(
|
|
2293
|
+
i0.ɵɵadvance();
|
|
2241
2294
|
i0.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2242
2295
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2$1.NgSelectOption, i2$1.ɵNgSelectMultipleOption, i2$1.SelectMultipleControlValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2243
2296
|
}
|
|
2244
|
-
(
|
|
2297
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectComponent, [{
|
|
2245
2298
|
type: Component,
|
|
2246
2299
|
args: [{ selector: 'wm-select', providers: [
|
|
2247
2300
|
provideAs(SelectComponent, NG_VALUE_ACCESSOR, true),
|
|
2248
2301
|
provideAs(SelectComponent, NG_VALIDATORS, true),
|
|
2249
2302
|
provideAsWidgetRef(SelectComponent)
|
|
2250
|
-
], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\"\n
|
|
2251
|
-
}],
|
|
2303
|
+
], template: "<select role=\"listbox\" aria-haspopup=\"true\" aria-expanded=\"false\" #select\n focus-target\n [ngClass]=\"['app-select form-control', class]\"\n [disabled]=\"disabled\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [(ngModel)]=\"modelByKey\"\n [multiple]=\"multiple\"\n (change)=\"onSelectValueChange($event)\"\n (focus)=\"checkForFloatingLabel($event)\"\n (blur)=\"invokeOnTouched($event); checkForFloatingLabel($event)\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [attr.aria-multiselectable]=\"multiple\"\n [autofocus]=\"autofocus\">\n\n <option selected\n value=\"undefined\"\n [textContent]=\"placeholder\"\n id=\"placeholderOption\"\n [hidden]=\"!placeholder\"></option>\n\n <ng-container *ngIf=\"groupby\">\n <optgroup *ngFor=\"let groupObj of groupedData\"\n [label]=\"groupObj.key\">\n <option *ngFor=\"let item of groupObj.data;\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </optgroup>\n </ng-container>\n\n <ng-container *ngIf=\"!groupby\">\n <option *ngFor=\"let item of datasetItems\"\n [value]=\"item.key\"\n [selected]=\"item.selected\"\n [textContent]=\"item.label\"\n role=\"option\"></option>\n </ng-container>\n</select>\n" }]
|
|
2304
|
+
}], () => [{ type: i0.Injector }, { type: i1$1.App }, { type: undefined, decorators: [{
|
|
2305
|
+
type: Inject,
|
|
2306
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2307
|
+
}, {
|
|
2308
|
+
type: Optional
|
|
2309
|
+
}] }], { selectEl: [{
|
|
2252
2310
|
type: ViewChild,
|
|
2253
2311
|
args: ['select', { static: true, read: ElementRef }]
|
|
2254
2312
|
}] }); })();
|
|
2313
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectComponent, { className: "SelectComponent", filePath: "select/select.component.ts", lineNumber: 22 }); })();
|
|
2255
2314
|
|
|
2256
2315
|
const switchProps = new Map([
|
|
2257
2316
|
['class', PROP_STRING],
|
|
@@ -2278,45 +2337,45 @@ const registerProps$6 = () => {
|
|
|
2278
2337
|
};
|
|
2279
2338
|
|
|
2280
2339
|
const _c0$6 = ["wmSwitch", ""];
|
|
2281
|
-
const _c1$5 =
|
|
2340
|
+
const _c1$5 = (a0, a1) => ({ "selected": a0, "disabled": a1 });
|
|
2341
|
+
const _c2$1 = a0 => ["app-icon", a0];
|
|
2282
2342
|
function SwitchComponent_a_1_i_1_Template(rf, ctx) { if (rf & 1) {
|
|
2283
2343
|
i0.ɵɵelement(0, "i", 8);
|
|
2284
2344
|
} if (rf & 2) {
|
|
2285
|
-
const
|
|
2345
|
+
const opt_r3 = i0.ɵɵnextContext().$implicit;
|
|
2286
2346
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
2287
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1,
|
|
2347
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c2$1, opt_r3.dataObject[ctx_r4.iconclass] || opt_r3["icon"]));
|
|
2288
2348
|
} }
|
|
2289
|
-
const _c2$1 = function (a0, a1) { return { "selected": a0, "disabled": a1 }; };
|
|
2290
2349
|
function SwitchComponent_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2291
|
-
const
|
|
2350
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2292
2351
|
i0.ɵɵelementStart(0, "a", 5);
|
|
2293
|
-
i0.ɵɵlistener("click", function SwitchComponent_a_1_Template_a_click_0_listener($event) { const
|
|
2352
|
+
i0.ɵɵlistener("click", function SwitchComponent_a_1_Template_a_click_0_listener($event) { const ctx_r1 = i0.ɵɵrestoreView(_r1); const opt_r3 = ctx_r1.$implicit; const $index_r4 = ctx_r1.index; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.selectOpt($event, $index_r4, opt_r3)); });
|
|
2294
2353
|
i0.ɵɵtemplate(1, SwitchComponent_a_1_i_1_Template, 1, 3, "i", 6);
|
|
2295
2354
|
i0.ɵɵelement(2, "span", 7);
|
|
2296
2355
|
i0.ɵɵelementEnd();
|
|
2297
2356
|
} if (rf & 2) {
|
|
2298
|
-
const
|
|
2299
|
-
const
|
|
2300
|
-
i0.ɵɵproperty("name", "wm-switch-" +
|
|
2301
|
-
i0.ɵɵadvance(
|
|
2302
|
-
i0.ɵɵproperty("ngIf",
|
|
2303
|
-
i0.ɵɵadvance(
|
|
2304
|
-
i0.ɵɵproperty("textContent",
|
|
2357
|
+
const opt_r3 = ctx.$implicit;
|
|
2358
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
2359
|
+
i0.ɵɵproperty("name", "wm-switch-" + opt_r3.key)("ngClass", i0.ɵɵpureFunction2(4, _c1$5, opt_r3.selected, ctx_r4.disabled));
|
|
2360
|
+
i0.ɵɵadvance();
|
|
2361
|
+
i0.ɵɵproperty("ngIf", opt_r3.dataObject && opt_r3.dataObject[ctx_r4.iconclass]);
|
|
2362
|
+
i0.ɵɵadvance();
|
|
2363
|
+
i0.ɵɵproperty("textContent", opt_r3[ctx_r4.displayfield] || opt_r3.label);
|
|
2305
2364
|
} }
|
|
2306
2365
|
function SwitchComponent_i_3_Template(rf, ctx) { if (rf & 1) {
|
|
2307
2366
|
i0.ɵɵelement(0, "i");
|
|
2308
2367
|
} if (rf & 2) {
|
|
2309
|
-
const
|
|
2310
|
-
i0.ɵɵclassMapInterpolate1("app-icon ",
|
|
2368
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
2369
|
+
i0.ɵɵclassMapInterpolate1("app-icon ", ctx_r4.selectedItem && ctx_r4.selectedItem.dataObject && ctx_r4.selectedItem.dataObject[ctx_r4.iconclass], "");
|
|
2311
2370
|
} }
|
|
2312
2371
|
const DEFAULT_CLS = 'app-switch';
|
|
2313
2372
|
const WIDGET_CONFIG$6 = { widgetType: 'wm-switch', hostClass: DEFAULT_CLS };
|
|
2314
2373
|
class SwitchComponent extends DatasetAwareFormComponent {
|
|
2315
2374
|
static { this.initializeProps = registerProps$6(); }
|
|
2316
|
-
constructor(inj) {
|
|
2317
|
-
super(inj, WIDGET_CONFIG$6);
|
|
2375
|
+
constructor(inj, explicitContext) {
|
|
2376
|
+
super(inj, WIDGET_CONFIG$6, explicitContext);
|
|
2318
2377
|
this.options = [];
|
|
2319
|
-
this._debounceSetSelectedValue = debounce((val) => {
|
|
2378
|
+
this._debounceSetSelectedValue = debounce$1((val) => {
|
|
2320
2379
|
this.setSelectedValue();
|
|
2321
2380
|
this.updateHighlighter(val);
|
|
2322
2381
|
// only for default value trigger app digest to apply the selectedItem
|
|
@@ -2346,7 +2405,7 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2346
2405
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2347
2406
|
setSelectedValue() {
|
|
2348
2407
|
if (isDefined(this.datavalue) || isDefined(this.toBeProcessedDatavalue)) {
|
|
2349
|
-
this.selectedItem =
|
|
2408
|
+
this.selectedItem = find(this.datasetItems, { selected: true });
|
|
2350
2409
|
return;
|
|
2351
2410
|
}
|
|
2352
2411
|
// If no value is provided, set first value as default if options are available else set -1 ie no selection
|
|
@@ -2365,7 +2424,7 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2365
2424
|
updateHighlighter(skipAnimation) {
|
|
2366
2425
|
const handler = $(this.nativeElement).find('span.app-switch-overlay');
|
|
2367
2426
|
this.setSelectedValue();
|
|
2368
|
-
let left, index = this.selectedItem ?
|
|
2427
|
+
let left, index = this.selectedItem ? findIndex(this.datasetItems, { key: this.selectedItem.key }) : -1;
|
|
2369
2428
|
if (index === undefined || index === null) {
|
|
2370
2429
|
index = -1;
|
|
2371
2430
|
}
|
|
@@ -2395,7 +2454,7 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2395
2454
|
}
|
|
2396
2455
|
this.modelByKey = option.key;
|
|
2397
2456
|
this.invokeOnTouched();
|
|
2398
|
-
if (this.selectedItem && $index ===
|
|
2457
|
+
if (this.selectedItem && $index === findIndex(this.datasetItems, { key: this.selectedItem.key })) {
|
|
2399
2458
|
if (this.datasetItems.length === 2) {
|
|
2400
2459
|
$index = $index === 1 ? 0 : 1;
|
|
2401
2460
|
}
|
|
@@ -2417,11 +2476,11 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2417
2476
|
super.onPropertyChange(key, nv, ov);
|
|
2418
2477
|
}
|
|
2419
2478
|
}
|
|
2420
|
-
static { this.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2479
|
+
static { this.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2421
2480
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0.ɵɵProvidersFeature([
|
|
2422
2481
|
provideAs(SwitchComponent, NG_VALUE_ACCESSOR, true),
|
|
2423
2482
|
provideAsWidgetRef(SwitchComponent)
|
|
2424
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 6, vars: 8, consts: [["role", "group", 1, "btn-group", "btn-group-justified"], ["focus-target", "", "href", "javascript:void(0);", "class", "btn btn-default", 3, "name", "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "btn", "btn-primary", "app-switch-overlay", "switch-handle", 3, "title"], [3, "class", 4, "ngIf"], ["aria-hidden", "true", 1, "model-holder", "ng-hide", 3, "name", "disabled", "value", "required"], ["focus-target", "", "href", "javascript:void(0);", 1, "btn", "btn-default", 3, "
|
|
2483
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0$6, decls: 6, vars: 8, consts: [["role", "group", 1, "btn-group", "btn-group-justified"], ["focus-target", "", "href", "javascript:void(0);", "class", "btn btn-default", 3, "name", "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "btn", "btn-primary", "app-switch-overlay", "switch-handle", 3, "title"], [3, "class", 4, "ngIf"], ["aria-hidden", "true", 1, "model-holder", "ng-hide", 3, "name", "disabled", "value", "required"], ["focus-target", "", "href", "javascript:void(0);", 1, "btn", "btn-default", 3, "click", "name", "ngClass"], ["aria-hidden", "true", 3, "ngClass", 4, "ngIf"], [1, "caption", 3, "textContent"], ["aria-hidden", "true", 3, "ngClass"]], template: function SwitchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2425
2484
|
i0.ɵɵelementStart(0, "div", 0);
|
|
2426
2485
|
i0.ɵɵtemplate(1, SwitchComponent_a_1_Template, 3, 7, "a", 1);
|
|
2427
2486
|
i0.ɵɵelementEnd();
|
|
@@ -2431,25 +2490,31 @@ class SwitchComponent extends DatasetAwareFormComponent {
|
|
|
2431
2490
|
i0.ɵɵelementEnd();
|
|
2432
2491
|
i0.ɵɵelement(5, "input", 4);
|
|
2433
2492
|
} if (rf & 2) {
|
|
2434
|
-
i0.ɵɵadvance(
|
|
2493
|
+
i0.ɵɵadvance();
|
|
2435
2494
|
i0.ɵɵproperty("ngForOf", ctx.datasetItems);
|
|
2436
|
-
i0.ɵɵadvance(
|
|
2495
|
+
i0.ɵɵadvance();
|
|
2437
2496
|
i0.ɵɵproperty("title", ctx.selectedItem ? ctx.selectedItem.label : ctx.modelByKey);
|
|
2438
|
-
i0.ɵɵadvance(
|
|
2497
|
+
i0.ɵɵadvance();
|
|
2439
2498
|
i0.ɵɵproperty("ngIf", ctx.iconclass);
|
|
2440
|
-
i0.ɵɵadvance(
|
|
2499
|
+
i0.ɵɵadvance();
|
|
2441
2500
|
i0.ɵɵtextInterpolate1(" ", ctx.selectedItem ? ctx.selectedItem.label : ctx.modelByKey, "\n");
|
|
2442
|
-
i0.ɵɵadvance(
|
|
2501
|
+
i0.ɵɵadvance();
|
|
2443
2502
|
i0.ɵɵproperty("name", ctx.name)("disabled", ctx.disabled)("value", ctx.modelByKey)("required", ctx.required);
|
|
2444
2503
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.TextContentDirective], encapsulation: 2 }); }
|
|
2445
2504
|
}
|
|
2446
|
-
(
|
|
2505
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SwitchComponent, [{
|
|
2447
2506
|
type: Component,
|
|
2448
2507
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2449
2508
|
provideAs(SwitchComponent, NG_VALUE_ACCESSOR, true),
|
|
2450
2509
|
provideAsWidgetRef(SwitchComponent)
|
|
2451
2510
|
], exportAs: 'wmSwitch', template: "<div role=\"group\" class=\"btn-group btn-group-justified\">\n <a *ngFor=\"let opt of datasetItems; let $index = index;\"\n focus-target\n href=\"javascript:void(0);\"\n class=\"btn btn-default\"\n [name]=\"'wm-switch-' + opt.key\"\n [ngClass]=\"{'selected': opt.selected, 'disabled': disabled}\"\n (click)=\"selectOpt($event, $index, opt)\"\n >\n <i *ngIf=\"opt.dataObject && opt.dataObject[iconclass]\" aria-hidden=\"true\" [ngClass]=\"['app-icon', opt.dataObject[iconclass] || opt['icon']]\"></i>\n <span class=\"caption\" [textContent]=\"opt[displayfield] || opt.label\"></span>\n </a>\n</div>\n<span [title]=\"selectedItem ? selectedItem.label : modelByKey\"\n class=\"btn btn-primary app-switch-overlay switch-handle\">\n <i *ngIf=\"iconclass\"\n class=\"app-icon {{(selectedItem && selectedItem.dataObject) && selectedItem.dataObject[iconclass]}}\"></i>\n {{selectedItem ? selectedItem.label : modelByKey}}\n</span>\n<input [name]=\"name\" class=\"model-holder ng-hide\" [disabled]=\"disabled\" [value]=\"modelByKey\" [required]=\"required\" aria-hidden=\"true\">\n" }]
|
|
2452
|
-
}],
|
|
2511
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2512
|
+
type: Inject,
|
|
2513
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2514
|
+
}, {
|
|
2515
|
+
type: Optional
|
|
2516
|
+
}] }], null); })();
|
|
2517
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SwitchComponent, { className: "SwitchComponent", filePath: "switch/switch.component.ts", lineNumber: 25 }); })();
|
|
2453
2518
|
|
|
2454
2519
|
const inputCalendarTypeProps = new Map([
|
|
2455
2520
|
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
@@ -2487,10 +2552,10 @@ const WIDGET_CONFIG$5 = {
|
|
|
2487
2552
|
};
|
|
2488
2553
|
class InputCalendarComponent extends BaseInput {
|
|
2489
2554
|
static { this.initializeProps = registerProps$5(); }
|
|
2490
|
-
constructor(inj) {
|
|
2491
|
-
super(inj, WIDGET_CONFIG$5);
|
|
2555
|
+
constructor(inj, explicitContext) {
|
|
2556
|
+
super(inj, WIDGET_CONFIG$5, explicitContext);
|
|
2492
2557
|
}
|
|
2493
|
-
static { this.ɵfac = function InputCalendarComponent_Factory(t) { return new (t || InputCalendarComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2558
|
+
static { this.ɵfac = function InputCalendarComponent_Factory(t) { return new (t || InputCalendarComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2494
2559
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputCalendarComponent, selectors: [["wm-input", "type", "date"], ["wm-input", "type", "datetime-local"], ["wm-input", "type", "month"], ["wm-input", "type", "time"], ["wm-input", "type", "week"]], viewQuery: function InputCalendarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2495
2560
|
i0.ɵɵviewQuery(_c0$5, 7);
|
|
2496
2561
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2502,29 +2567,39 @@ class InputCalendarComponent extends BaseInput {
|
|
|
2502
2567
|
provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
|
|
2503
2568
|
provideAs(InputCalendarComponent, NG_VALIDATORS, true),
|
|
2504
2569
|
provideAsWidgetRef(InputCalendarComponent)
|
|
2505
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngClass", "ngStyle"
|
|
2506
|
-
i0.ɵɵ
|
|
2507
|
-
i0.ɵɵ
|
|
2570
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 17, consts: [["input", ""], ["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "type", "ngModel", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngClass", "ngStyle"]], template: function InputCalendarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2571
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2572
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
2573
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InputCalendarComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
2574
|
+
i0.ɵɵlistener("blur", function InputCalendarComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("ngModelChange", function InputCalendarComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); });
|
|
2508
2575
|
i0.ɵɵelementEnd();
|
|
2509
2576
|
} if (rf & 2) {
|
|
2510
|
-
i0.ɵɵproperty("type", ctx.type)
|
|
2577
|
+
i0.ɵɵproperty("type", ctx.type);
|
|
2578
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2579
|
+
i0.ɵɵproperty("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off")("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2511
2580
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
|
|
2512
2581
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
2513
2582
|
}
|
|
2514
|
-
(
|
|
2583
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
2515
2584
|
type: Component,
|
|
2516
2585
|
args: [{ selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
|
|
2517
2586
|
provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
|
|
2518
2587
|
provideAs(InputCalendarComponent, NG_VALIDATORS, true),
|
|
2519
2588
|
provideAsWidgetRef(InputCalendarComponent)
|
|
2520
2589
|
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n #input>\n" }]
|
|
2521
|
-
}],
|
|
2590
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2591
|
+
type: Inject,
|
|
2592
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2593
|
+
}, {
|
|
2594
|
+
type: Optional
|
|
2595
|
+
}] }], { inputEl: [{
|
|
2522
2596
|
type: ViewChild,
|
|
2523
2597
|
args: ['input', { static: true }]
|
|
2524
2598
|
}], ngModel: [{
|
|
2525
2599
|
type: ViewChild,
|
|
2526
2600
|
args: [NgModel]
|
|
2527
2601
|
}] }); })();
|
|
2602
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputCalendarComponent, { className: "InputCalendarComponent", filePath: "text/calendar/input-calendar.component.ts", lineNumber: 22 }); })();
|
|
2528
2603
|
|
|
2529
2604
|
const inputColorTypeProps = new Map([
|
|
2530
2605
|
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
@@ -2559,10 +2634,10 @@ const WIDGET_CONFIG$4 = {
|
|
|
2559
2634
|
};
|
|
2560
2635
|
class InputColorComponent extends BaseInput {
|
|
2561
2636
|
static { this.initializeProps = registerProps$4(); }
|
|
2562
|
-
constructor(inj) {
|
|
2563
|
-
super(inj, WIDGET_CONFIG$4);
|
|
2637
|
+
constructor(inj, explicitContext) {
|
|
2638
|
+
super(inj, WIDGET_CONFIG$4, explicitContext);
|
|
2564
2639
|
}
|
|
2565
|
-
static { this.ɵfac = function InputColorComponent_Factory(t) { return new (t || InputColorComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2640
|
+
static { this.ɵfac = function InputColorComponent_Factory(t) { return new (t || InputColorComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2566
2641
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputColorComponent, selectors: [["wm-input", "type", "color"]], viewQuery: function InputColorComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2567
2642
|
i0.ɵɵviewQuery(_c0$4, 7);
|
|
2568
2643
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2574,29 +2649,39 @@ class InputColorComponent extends BaseInput {
|
|
|
2574
2649
|
provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
|
|
2575
2650
|
provideAs(InputColorComponent, NG_VALIDATORS, true),
|
|
2576
2651
|
provideAsWidgetRef(InputColorComponent)
|
|
2577
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 14, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"
|
|
2578
|
-
i0.ɵɵ
|
|
2579
|
-
i0.ɵɵ
|
|
2652
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 14, consts: [["input", ""], ["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "type", "ngModel", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"]], template: function InputColorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2653
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
2654
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
2655
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InputColorComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
2656
|
+
i0.ɵɵlistener("blur", function InputColorComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("ngModelChange", function InputColorComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); });
|
|
2580
2657
|
i0.ɵɵelementEnd();
|
|
2581
2658
|
} if (rf & 2) {
|
|
2582
|
-
i0.ɵɵproperty("type", ctx.type)
|
|
2659
|
+
i0.ɵɵproperty("type", ctx.type);
|
|
2660
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2661
|
+
i0.ɵɵproperty("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2583
2662
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2584
2663
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
2585
2664
|
}
|
|
2586
|
-
(
|
|
2665
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputColorComponent, [{
|
|
2587
2666
|
type: Component,
|
|
2588
2667
|
args: [{ selector: 'wm-input[type="color"]', providers: [
|
|
2589
2668
|
provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
|
|
2590
2669
|
provideAs(InputColorComponent, NG_VALIDATORS, true),
|
|
2591
2670
|
provideAsWidgetRef(InputColorComponent)
|
|
2592
2671
|
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
2593
|
-
}],
|
|
2672
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2673
|
+
type: Inject,
|
|
2674
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2675
|
+
}, {
|
|
2676
|
+
type: Optional
|
|
2677
|
+
}] }], { inputEl: [{
|
|
2594
2678
|
type: ViewChild,
|
|
2595
2679
|
args: ['input', { static: true }]
|
|
2596
2680
|
}], ngModel: [{
|
|
2597
2681
|
type: ViewChild,
|
|
2598
2682
|
args: [NgModel]
|
|
2599
2683
|
}] }); })();
|
|
2684
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputColorComponent, { className: "InputColorComponent", filePath: "text/color/input-color.component.ts", lineNumber: 23 }); })();
|
|
2600
2685
|
|
|
2601
2686
|
const inputEmailTypeProps = new Map([
|
|
2602
2687
|
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
@@ -2633,10 +2718,10 @@ const WIDGET_CONFIG$3 = {
|
|
|
2633
2718
|
};
|
|
2634
2719
|
class InputEmailComponent extends BaseInput {
|
|
2635
2720
|
static { this.initializeProps = registerProps$3(); }
|
|
2636
|
-
constructor(inj) {
|
|
2637
|
-
super(inj, WIDGET_CONFIG$3);
|
|
2721
|
+
constructor(inj, explicitContext) {
|
|
2722
|
+
super(inj, WIDGET_CONFIG$3, explicitContext);
|
|
2638
2723
|
}
|
|
2639
|
-
static { this.ɵfac = function InputEmailComponent_Factory(t) { return new (t || InputEmailComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2724
|
+
static { this.ɵfac = function InputEmailComponent_Factory(t) { return new (t || InputEmailComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2640
2725
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputEmailComponent, selectors: [["wm-input", "type", "email"]], viewQuery: function InputEmailComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2641
2726
|
i0.ɵɵviewQuery(_c0$3, 7);
|
|
2642
2727
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2648,30 +2733,39 @@ class InputEmailComponent extends BaseInput {
|
|
|
2648
2733
|
provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
|
|
2649
2734
|
provideAs(InputEmailComponent, NG_VALIDATORS, true),
|
|
2650
2735
|
provideAsWidgetRef(InputEmailComponent)
|
|
2651
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", "email", "", 1, "form-control", "app-textbox", 3, "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete"
|
|
2736
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 17, consts: [["input", ""], ["focus-target", "", "role", "textbox", "email", "", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "keyup.enter", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete"]], template: function InputEmailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2652
2737
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2653
|
-
i0.ɵɵelementStart(0, "input",
|
|
2654
|
-
i0.ɵɵ
|
|
2738
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
2739
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InputEmailComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
2740
|
+
i0.ɵɵlistener("blur", function InputEmailComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("ngModelChange", function InputEmailComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); })("keyup.enter", function InputEmailComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const input_r2 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(input_r2.value)); });
|
|
2655
2741
|
i0.ɵɵelementEnd();
|
|
2656
2742
|
} if (rf & 2) {
|
|
2657
|
-
i0.ɵɵproperty("type", ctx.type)
|
|
2743
|
+
i0.ɵɵproperty("type", ctx.type);
|
|
2744
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2745
|
+
i0.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2658
2746
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2659
2747
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.PatternValidator, i2$1.EmailValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
2660
2748
|
}
|
|
2661
|
-
(
|
|
2749
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputEmailComponent, [{
|
|
2662
2750
|
type: Component,
|
|
2663
2751
|
args: [{ selector: 'wm-input[type="email"]', providers: [
|
|
2664
2752
|
provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
|
|
2665
2753
|
provideAs(InputEmailComponent, NG_VALIDATORS, true),
|
|
2666
2754
|
provideAsWidgetRef(InputEmailComponent)
|
|
2667
2755
|
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
2668
|
-
}],
|
|
2756
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2757
|
+
type: Inject,
|
|
2758
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2759
|
+
}, {
|
|
2760
|
+
type: Optional
|
|
2761
|
+
}] }], { inputEl: [{
|
|
2669
2762
|
type: ViewChild,
|
|
2670
2763
|
args: ['input', { static: true }]
|
|
2671
2764
|
}], ngModel: [{
|
|
2672
2765
|
type: ViewChild,
|
|
2673
2766
|
args: [NgModel]
|
|
2674
2767
|
}] }); })();
|
|
2768
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputEmailComponent, { className: "InputEmailComponent", filePath: "text/email/input-email.component.ts", lineNumber: 23 }); })();
|
|
2675
2769
|
|
|
2676
2770
|
const inputNumberTypeProps = new Map([
|
|
2677
2771
|
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
@@ -2705,15 +2799,15 @@ const registerProps$2 = () => {
|
|
|
2705
2799
|
|
|
2706
2800
|
const _c0$2 = ["input"];
|
|
2707
2801
|
const _c1$1 = ["type", "number"];
|
|
2708
|
-
const _c2 =
|
|
2802
|
+
const _c2 = a0 => ({ "step-hidden": a0 });
|
|
2709
2803
|
const WIDGET_CONFIG$2 = {
|
|
2710
2804
|
widgetType: 'wm-input-number',
|
|
2711
2805
|
hostClass: 'app-input-wrapper'
|
|
2712
2806
|
};
|
|
2713
2807
|
class InputNumberComponent extends BaseInput {
|
|
2714
2808
|
static { this.initializeProps = registerProps$2(); }
|
|
2715
|
-
constructor(inj) {
|
|
2716
|
-
super(inj, WIDGET_CONFIG$2);
|
|
2809
|
+
constructor(inj, explicitContext) {
|
|
2810
|
+
super(inj, WIDGET_CONFIG$2, explicitContext);
|
|
2717
2811
|
}
|
|
2718
2812
|
onArrowPress($event) {
|
|
2719
2813
|
if (this.step === 0) {
|
|
@@ -2725,7 +2819,7 @@ class InputNumberComponent extends BaseInput {
|
|
|
2725
2819
|
return false;
|
|
2726
2820
|
}
|
|
2727
2821
|
}
|
|
2728
|
-
static { this.ɵfac = function InputNumberComponent_Factory(t) { return new (t || InputNumberComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2822
|
+
static { this.ɵfac = function InputNumberComponent_Factory(t) { return new (t || InputNumberComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2729
2823
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["wm-input", "type", "number"]], viewQuery: function InputNumberComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2730
2824
|
i0.ɵɵviewQuery(_c0$2, 7);
|
|
2731
2825
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2737,30 +2831,39 @@ class InputNumberComponent extends BaseInput {
|
|
|
2737
2831
|
provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
|
|
2738
2832
|
provideAs(InputNumberComponent, NG_VALIDATORS, true),
|
|
2739
2833
|
provideAsWidgetRef(InputNumberComponent)
|
|
2740
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 22, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "
|
|
2834
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 22, consts: [["input", ""], ["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "keyup.enter", "keydown.ArrowUp", "keydown.ArrowDown", "keypress", "ngClass", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "min", "max", "step", "autofocus", "ngStyle", "autocomplete"]], template: function InputNumberComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2741
2835
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2742
|
-
i0.ɵɵelementStart(0, "input",
|
|
2743
|
-
i0.ɵɵ
|
|
2836
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
2837
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
2838
|
+
i0.ɵɵlistener("blur", function InputNumberComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("ngModelChange", function InputNumberComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); })("keyup.enter", function InputNumberComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const input_r2 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(input_r2.value)); })("keydown.ArrowUp", function InputNumberComponent_Template_input_keydown_ArrowUp_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event)); })("keydown.ArrowDown", function InputNumberComponent_Template_input_keydown_ArrowDown_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onArrowPress($event)); })("keypress", function InputNumberComponent_Template_input_keypress_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.validateInputEntry($event)); });
|
|
2744
2839
|
i0.ɵɵelementEnd();
|
|
2745
2840
|
} if (rf & 2) {
|
|
2746
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c2, ctx.step === 0))("type", ctx.type)
|
|
2841
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c2, ctx.step === 0))("type", ctx.type);
|
|
2842
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
2843
|
+
i0.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("min", ctx.minvalue)("max", ctx.maxvalue)("step", ctx.step)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2747
2844
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2748
2845
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
2749
2846
|
}
|
|
2750
|
-
(
|
|
2847
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputNumberComponent, [{
|
|
2751
2848
|
type: Component,
|
|
2752
2849
|
args: [{ selector: 'wm-input[type="number"]', providers: [
|
|
2753
2850
|
provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
|
|
2754
2851
|
provideAs(InputNumberComponent, NG_VALIDATORS, true),
|
|
2755
2852
|
provideAsWidgetRef(InputNumberComponent)
|
|
2756
2853
|
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [min]=\"minvalue\"\n [max]=\"maxvalue\"\n [step]=\"step\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n" }]
|
|
2757
|
-
}],
|
|
2854
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
2855
|
+
type: Inject,
|
|
2856
|
+
args: ['EXPLICIT_CONTEXT']
|
|
2857
|
+
}, {
|
|
2858
|
+
type: Optional
|
|
2859
|
+
}] }], { inputEl: [{
|
|
2758
2860
|
type: ViewChild,
|
|
2759
2861
|
args: ['input', { static: true }]
|
|
2760
2862
|
}], ngModel: [{
|
|
2761
2863
|
type: ViewChild,
|
|
2762
2864
|
args: [NgModel]
|
|
2763
2865
|
}] }); })();
|
|
2866
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputNumberComponent, { className: "InputNumberComponent", filePath: "text/number/input-number.component.ts", lineNumber: 22 }); })();
|
|
2764
2867
|
|
|
2765
2868
|
const inputTextTypeProps = new Map([
|
|
2766
2869
|
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
@@ -2809,8 +2912,8 @@ const WIDGET_CONFIG$1 = {
|
|
|
2809
2912
|
};
|
|
2810
2913
|
class InputTextComponent extends BaseInput {
|
|
2811
2914
|
static { this.initializeProps = registerProps$1(); }
|
|
2812
|
-
constructor(inj) {
|
|
2813
|
-
super(inj, WIDGET_CONFIG$1);
|
|
2915
|
+
constructor(inj, explicitContext) {
|
|
2916
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
2814
2917
|
this.lazy = false;
|
|
2815
2918
|
}
|
|
2816
2919
|
/* Define the property change handler. This function will be triggered when there is a change in the widget property */
|
|
@@ -2881,7 +2984,7 @@ class InputTextComponent extends BaseInput {
|
|
|
2881
2984
|
super.ngOnInit();
|
|
2882
2985
|
this.isFocused = !!this.datavalue;
|
|
2883
2986
|
}
|
|
2884
|
-
static { this.ɵfac = function InputTextComponent_Factory(t) { return new (t || InputTextComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
2987
|
+
static { this.ɵfac = function InputTextComponent_Factory(t) { return new (t || InputTextComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2885
2988
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InputTextComponent, selectors: [["wm-input", "type", "text"], ["wm-input", 3, "type", ""], ["wm-input", "type", "password"], ["wm-input", "type", "search"], ["wm-input", "type", "tel"], ["wm-input", "type", "url"]], viewQuery: function InputTextComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2886
2989
|
i0.ɵɵviewQuery(_c0$1, 7);
|
|
2887
2990
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2895,24 +2998,32 @@ class InputTextComponent extends BaseInput {
|
|
|
2895
2998
|
provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
|
|
2896
2999
|
provideAs(InputTextComponent, NG_VALIDATORS, true),
|
|
2897
3000
|
provideAsWidgetRef(InputTextComponent)
|
|
2898
|
-
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 19, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "
|
|
3001
|
+
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 19, consts: [["input", ""], ["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngModelChange", "blur", "focus", "keyup.enter", "type", "ngModel", "imask", "unmask", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "ngClass", "ngStyle", "autocomplete"]], template: function InputTextComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2899
3002
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2900
|
-
i0.ɵɵelementStart(0, "input",
|
|
2901
|
-
i0.ɵɵ
|
|
3003
|
+
i0.ɵɵelementStart(0, "input", 1, 0);
|
|
3004
|
+
i0.ɵɵtwoWayListener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
3005
|
+
i0.ɵɵlistener("ngModelChange", function InputTextComponent_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleChange($event)); })("blur", function InputTextComponent_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleBlur($event); return i0.ɵɵresetView(ctx.checkForDisplayFormat($event)); })("focus", function InputTextComponent_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.checkForDisplayFormat($event)); })("keyup.enter", function InputTextComponent_Template_input_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r1); const input_r2 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx.flushViewChanges(input_r2.value)); });
|
|
2902
3006
|
i0.ɵɵelementEnd();
|
|
2903
3007
|
} if (rf & 2) {
|
|
2904
|
-
i0.ɵɵproperty("type", ctx.type)
|
|
3008
|
+
i0.ɵɵproperty("type", ctx.type);
|
|
3009
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3010
|
+
i0.ɵɵproperty("imask", ctx.mask)("unmask", true)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2905
3011
|
i0.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
2906
3012
|
} }, dependencies: [i1.NgClass, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.PatternValidator, i2$1.NgModel, i3.IMaskDirective], encapsulation: 2 }); }
|
|
2907
3013
|
}
|
|
2908
|
-
(
|
|
3014
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputTextComponent, [{
|
|
2909
3015
|
type: Component,
|
|
2910
3016
|
args: [{ selector: 'wm-input[type="text"], wm-input:not([type]), wm-input[type="password"], wm-input[type="search"], wm-input[type="tel"], wm-input[type="url"]', providers: [
|
|
2911
3017
|
provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
|
|
2912
3018
|
provideAs(InputTextComponent, NG_VALIDATORS, true),
|
|
2913
3019
|
provideAsWidgetRef(InputTextComponent)
|
|
2914
3020
|
], template: "<input class=\"form-control app-textbox\"\n focus-target\n role=\"textbox\"\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n" }]
|
|
2915
|
-
}],
|
|
3021
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
3022
|
+
type: Inject,
|
|
3023
|
+
args: ['EXPLICIT_CONTEXT']
|
|
3024
|
+
}, {
|
|
3025
|
+
type: Optional
|
|
3026
|
+
}] }], { inputEl: [{
|
|
2916
3027
|
type: ViewChild,
|
|
2917
3028
|
args: ['input', { static: true }]
|
|
2918
3029
|
}], ngModel: [{
|
|
@@ -2922,6 +3033,7 @@ class InputTextComponent extends BaseInput {
|
|
|
2922
3033
|
type: ViewChild,
|
|
2923
3034
|
args: ['input', { read: IMaskDirective }]
|
|
2924
3035
|
}] }); })();
|
|
3036
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InputTextComponent, { className: "InputTextComponent", filePath: "text/text/input-text.component.ts", lineNumber: 23 }); })();
|
|
2925
3037
|
|
|
2926
3038
|
const textareaProps = new Map([
|
|
2927
3039
|
['autofocus', PROP_BOOLEAN],
|
|
@@ -2957,7 +3069,7 @@ function TextareaComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2957
3069
|
i0.ɵɵelementEnd();
|
|
2958
3070
|
} if (rf & 2) {
|
|
2959
3071
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
2960
|
-
i0.ɵɵadvance(
|
|
3072
|
+
i0.ɵɵadvance();
|
|
2961
3073
|
i0.ɵɵtextInterpolate(ctx_r1.limitdisplaytext);
|
|
2962
3074
|
} }
|
|
2963
3075
|
const WIDGET_CONFIG = {
|
|
@@ -2966,14 +3078,14 @@ const WIDGET_CONFIG = {
|
|
|
2966
3078
|
};
|
|
2967
3079
|
class TextareaComponent extends BaseInput {
|
|
2968
3080
|
static { this.initializeProps = registerProps(); }
|
|
2969
|
-
constructor(inj) {
|
|
2970
|
-
super(inj, WIDGET_CONFIG);
|
|
3081
|
+
constructor(inj, explicitContext) {
|
|
3082
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
2971
3083
|
this.charlength = 0;
|
|
2972
3084
|
}
|
|
2973
3085
|
onInputChange() {
|
|
2974
3086
|
this.charlength = this.inputEl.nativeElement.value.length;
|
|
2975
3087
|
}
|
|
2976
|
-
static { this.ɵfac = function TextareaComponent_Factory(t) { return new (t || TextareaComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
|
|
3088
|
+
static { this.ɵfac = function TextareaComponent_Factory(t) { return new (t || TextareaComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
2977
3089
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TextareaComponent, selectors: [["wm-textarea"]], viewQuery: function TextareaComponent_Query(rf, ctx) { if (rf & 1) {
|
|
2978
3090
|
i0.ɵɵviewQuery(_c0, 7);
|
|
2979
3091
|
i0.ɵɵviewQuery(NgModel, 5);
|
|
@@ -2985,32 +3097,41 @@ class TextareaComponent extends BaseInput {
|
|
|
2985
3097
|
provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
|
|
2986
3098
|
provideAs(TextareaComponent, NG_VALIDATORS, true),
|
|
2987
3099
|
provideAsWidgetRef(TextareaComponent)
|
|
2988
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["focus-target", "", "role", "textbox", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "
|
|
2989
|
-
i0.ɵɵ
|
|
2990
|
-
i0.ɵɵ
|
|
3100
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 15, consts: [["textarea", ""], ["focus-target", "", "role", "textbox", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModelChange", "blur", "input", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngClass", "ngStyle"], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3101
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
3102
|
+
i0.ɵɵelementStart(0, "textarea", 1, 0);
|
|
3103
|
+
i0.ɵɵtwoWayListener("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.datavalue, $event) || (ctx.datavalue = $event); return i0.ɵɵresetView($event); });
|
|
3104
|
+
i0.ɵɵlistener("blur", function TextareaComponent_Template_textarea_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.handleBlur($event)); })("input", function TextareaComponent_Template_textarea_input_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInputChange()); })("ngModelChange", function TextareaComponent_Template_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); ctx.handleChange($event); return i0.ɵɵresetView(ctx.onInputChange()); });
|
|
2991
3105
|
i0.ɵɵelementEnd();
|
|
2992
3106
|
i0.ɵɵtemplate(2, TextareaComponent_div_2_Template, 2, 1, "div", 2);
|
|
2993
3107
|
} if (rf & 2) {
|
|
2994
|
-
i0.ɵɵ
|
|
3108
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx.datavalue);
|
|
3109
|
+
i0.ɵɵproperty("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus)("ngClass", ctx.conditionalclass)("ngStyle", ctx.conditionalstyle);
|
|
2995
3110
|
i0.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2996
3111
|
i0.ɵɵadvance(2);
|
|
2997
3112
|
i0.ɵɵproperty("ngIf", ctx.maxchars);
|
|
2998
3113
|
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgStyle, i2$1.DefaultValueAccessor, i2$1.NgControlStatus, i2$1.RequiredValidator, i2$1.MaxLengthValidator, i2$1.NgModel], encapsulation: 2 }); }
|
|
2999
3114
|
}
|
|
3000
|
-
(
|
|
3115
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TextareaComponent, [{
|
|
3001
3116
|
type: Component,
|
|
3002
3117
|
args: [{ selector: 'wm-textarea', providers: [
|
|
3003
3118
|
provideAs(TextareaComponent, NG_VALUE_ACCESSOR, true),
|
|
3004
3119
|
provideAs(TextareaComponent, NG_VALIDATORS, true),
|
|
3005
3120
|
provideAsWidgetRef(TextareaComponent)
|
|
3006
3121
|
], template: "<textarea class=\"form-control app-textarea\"\n focus-target\n role=\"textbox\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [attr.aria-label]=\"hint\"\n aria-multiline=\"true\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (input)=\"onInputChange()\"\n (ngModelChange)=\"handleChange($event); onInputChange();\"\n #textarea\n></textarea>\n\n<div *ngIf=\"maxchars\" class=\"textarea-count\" >{{limitdisplaytext}}</div>\n" }]
|
|
3007
|
-
}],
|
|
3122
|
+
}], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
3123
|
+
type: Inject,
|
|
3124
|
+
args: ['EXPLICIT_CONTEXT']
|
|
3125
|
+
}, {
|
|
3126
|
+
type: Optional
|
|
3127
|
+
}] }], { inputEl: [{
|
|
3008
3128
|
type: ViewChild,
|
|
3009
3129
|
args: ['textarea', { static: true }]
|
|
3010
3130
|
}], ngModel: [{
|
|
3011
3131
|
type: ViewChild,
|
|
3012
3132
|
args: [NgModel]
|
|
3013
3133
|
}] }); })();
|
|
3134
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TextareaComponent, { className: "TextareaComponent", filePath: "textarea/textarea.component.ts", lineNumber: 22 }); })();
|
|
3014
3135
|
|
|
3015
3136
|
class CaptionPositionDirective {
|
|
3016
3137
|
constructor(inj, app) {
|
|
@@ -3024,7 +3145,7 @@ class CaptionPositionDirective {
|
|
|
3024
3145
|
let mobileInputVal;
|
|
3025
3146
|
// In case of mobile date / time picker check for input element's value which has 'mobile-input' class
|
|
3026
3147
|
if (this.inputEl.length > 1 && this.inputEl.hasClass('mobile-input')) {
|
|
3027
|
-
|
|
3148
|
+
forEach(this.inputEl, (el) => {
|
|
3028
3149
|
if ($(el).hasClass('mobile-input') && el.value) {
|
|
3029
3150
|
mobileInputVal = el.value;
|
|
3030
3151
|
}
|
|
@@ -3133,8 +3254,7 @@ class CaptionPositionDirective {
|
|
|
3133
3254
|
// isSelectMultiple is set to true when for select widget, multiple option is enabled
|
|
3134
3255
|
// Checking inputEl focus - when form is represented as dialog and the first field is automatically in focus
|
|
3135
3256
|
const isInputElFocused = this.inputEl && this.inputEl.is(':focus');
|
|
3136
|
-
|
|
3137
|
-
if ((data.isSelect && localName == 'select') || data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
|
|
3257
|
+
if (data.displayVal || data.isFocused || data.isSelectMultiple || isInputElFocused) {
|
|
3138
3258
|
data.nativeEl.addClass('float-active');
|
|
3139
3259
|
if (!data.displayVal && isInputElFocused) {
|
|
3140
3260
|
this.inputEl.attr('placeholder', this.placeholder);
|
|
@@ -3171,12 +3291,12 @@ class CaptionPositionDirective {
|
|
|
3171
3291
|
static { this.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1$1.App)); }; }
|
|
3172
3292
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "wmCaptionPosition", ""]] }); }
|
|
3173
3293
|
}
|
|
3174
|
-
(
|
|
3294
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptionPositionDirective, [{
|
|
3175
3295
|
type: Directive,
|
|
3176
3296
|
args: [{
|
|
3177
3297
|
selector: '[wmCaptionPosition]'
|
|
3178
3298
|
}]
|
|
3179
|
-
}],
|
|
3299
|
+
}], () => [{ type: i0.Injector }, { type: i1$1.App }], null); })();
|
|
3180
3300
|
|
|
3181
3301
|
const components = [
|
|
3182
3302
|
ButtonComponent,
|
|
@@ -3204,7 +3324,7 @@ class InputModule {
|
|
|
3204
3324
|
WmComponentsModule,
|
|
3205
3325
|
IMaskModule] }); }
|
|
3206
3326
|
}
|
|
3207
|
-
(
|
|
3327
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InputModule, [{
|
|
3208
3328
|
type: NgModule,
|
|
3209
3329
|
args: [{
|
|
3210
3330
|
imports: [
|
|
@@ -3256,5 +3376,5 @@ class InputModule {
|
|
|
3256
3376
|
* Generated bundle index. Do not edit.
|
|
3257
3377
|
*/
|
|
3258
3378
|
|
|
3259
|
-
export { BaseFormComponent, BaseFormCustomComponent, ButtonComponent, ButtonGroupDirective, CaptionPositionDirective, CheckboxComponent, CheckboxsetComponent, CompositeDirective, DatasetAwareFormComponent, InputCalendarComponent, InputColorComponent, InputEmailComponent, InputModule, InputNumberComponent, InputTextComponent, NumberComponent, NumberLocale, RadiosetComponent, SelectComponent, SwitchComponent, TextareaComponent };
|
|
3379
|
+
export { BaseFormComponent, BaseFormCustomComponent, ButtonComponent, ButtonGroupDirective, CaptionPositionDirective, CheckboxComponent, CheckboxsetComponent, CompositeDirective, DatasetAwareFormComponent, InputCalendarComponent, InputColorComponent, InputEmailComponent, InputModule, InputNumberComponent, InputTextComponent, NumberComponent, NumberLocale, RadiosetComponent, SelectComponent, SwitchComponent, TextareaComponent, unStringify };
|
|
3260
3380
|
//# sourceMappingURL=index.mjs.map
|