@wavemaker/app-ng-runtime 11.4.1-next.141652 → 11.4.1-next.141654
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.
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +12 -23
- app-ng-runtime/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/carousel.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/esm2020/carousel-template/carousel-template.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/esm2020/carousel.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/bundles/index.umd.js +21 -27
- app-ng-runtime/components/advanced/login/esm2020/login.component.mjs +8 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/login.component.d.ts +2 -4
- app-ng-runtime/components/advanced/marquee/bundles/index.umd.js +8 -14
- app-ng-runtime/components/advanced/marquee/esm2020/marquee.directive.mjs +6 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/marquee.directive.d.ts +2 -4
- app-ng-runtime/components/base/bundles/index.umd.js +31 -61
- app-ng-runtime/components/base/esm2020/widgets/common/base/base-container.component.mjs +4 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +5 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/dataset-aware-nav.component.mjs +3 -3
- app-ng-runtime/components/base/esm2020/widgets/common/container/container.directive.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/item-template/item-template.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +6 -10
- app-ng-runtime/components/base/esm2020/widgets/common/message/message.component.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/repeat-template/repeat-template.directive.mjs +6 -11
- app-ng-runtime/components/base/fesm2015/index.mjs +32 -62
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +32 -50
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base-container.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +2 -3
- app-ng-runtime/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/container/container.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/item-template/item-template.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/message/message.component.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/partial/partial.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +3 -4
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/bundles/index.umd.js +247 -290
- app-ng-runtime/components/basic/default/esm2020/anchor/anchor.component.mjs +7 -10
- app-ng-runtime/components/basic/default/esm2020/audio/audio.component.mjs +8 -13
- app-ng-runtime/components/basic/default/esm2020/html/html.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/icon/icon.component.mjs +9 -14
- app-ng-runtime/components/basic/default/esm2020/iframe/iframe.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/label/label.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/picture/picture.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/spinner/spinner.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/video/video.component.mjs +9 -13
- app-ng-runtime/components/basic/default/fesm2015/index.mjs +46 -89
- app-ng-runtime/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/fesm2020/index.mjs +46 -73
- app-ng-runtime/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/html/html.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/icon/icon.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/label/label.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/spinner/spinner.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +23 -32
- app-ng-runtime/components/basic/progress/esm2020/progress-bar/progress-bar.component.mjs +8 -12
- app-ng-runtime/components/basic/progress/esm2020/progress-circle/progress-circle.component.mjs +8 -13
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs +12 -21
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs +12 -19
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +2 -4
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +14 -20
- app-ng-runtime/components/basic/rich-text-editor/esm2020/rich-text-editor.component.mjs +9 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -4
- app-ng-runtime/components/basic/search/bundles/index.umd.js +3 -6
- app-ng-runtime/components/basic/search/esm2020/search.component.mjs +6 -9
- app-ng-runtime/components/basic/search/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -4
- app-ng-runtime/components/chart/bundles/index.umd.js +4 -9
- app-ng-runtime/components/chart/chart.component.d.ts +3 -4
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +7 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/accordion/accordion.directive.d.ts +3 -4
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +56 -66
- app-ng-runtime/components/containers/accordion/esm2020/accordion-pane/accordion-pane.component.mjs +10 -14
- app-ng-runtime/components/containers/accordion/esm2020/accordion.directive.mjs +7 -10
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs +12 -22
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/bundles/index.umd.js +12 -25
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-column/layout-grid-column.directive.mjs +7 -10
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-row/layout-grid-row.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs +13 -26
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +3 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +2 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/bundles/index.umd.js +12 -23
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout-item/linear-layout-item.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/linear-layout.directive.d.ts +2 -4
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +65 -71
- app-ng-runtime/components/containers/panel/esm2020/panel.component.mjs +12 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs +10 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs +10 -14
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/panel.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +57 -63
- app-ng-runtime/components/containers/tabs/esm2020/tab-pane/tab-pane.component.mjs +8 -12
- app-ng-runtime/components/containers/tabs/esm2020/tabs.component.mjs +7 -10
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -4
- app-ng-runtime/components/containers/tile/bundles/index.umd.js +8 -14
- app-ng-runtime/components/containers/tile/esm2020/tile.directive.mjs +6 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/tile.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +48 -57
- app-ng-runtime/components/containers/wizard/esm2020/wizard-step/wizard-step.directive.mjs +5 -10
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +10 -14
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +11 -20
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +11 -18
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard-step/wizard-step.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -4
- app-ng-runtime/components/data/card/bundles/index.umd.js +83 -106
- app-ng-runtime/components/data/card/card-actions/card-actions.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card-content/card-content.component.d.ts +2 -4
- app-ng-runtime/components/data/card/card-footer/card-footer.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card.component.d.ts +2 -4
- app-ng-runtime/components/data/card/esm2020/card-actions/card-actions.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-content/card-content.component.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-footer/card-footer.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card.component.mjs +12 -18
- app-ng-runtime/components/data/card/fesm2015/index.mjs +23 -46
- app-ng-runtime/components/data/card/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/card/fesm2020/index.mjs +23 -38
- app-ng-runtime/components/data/card/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +128 -137
- app-ng-runtime/components/data/form/esm2020/form-action/form-action.directive.mjs +4 -9
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +5 -8
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +5 -8
- app-ng-runtime/components/data/form/fesm2015/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-action/form-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +3 -4
- app-ng-runtime/components/data/form/form.component.d.ts +3 -4
- app-ng-runtime/components/data/list/bundles/index.umd.js +4 -7
- app-ng-runtime/components/data/list/esm2020/list.component.mjs +7 -10
- app-ng-runtime/components/data/list/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +3 -4
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +3 -6
- app-ng-runtime/components/data/live-table/esm2020/live-table.component.mjs +6 -9
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/live-table.component.d.ts +3 -4
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +30 -34
- app-ng-runtime/components/data/pagination/esm2020/pagination.component.mjs +10 -14
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +2 -4
- app-ng-runtime/components/data/table/bundles/index.umd.js +19 -37
- app-ng-runtime/components/data/table/esm2020/table-action/table-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-column/table-column.directive.mjs +5 -8
- app-ng-runtime/components/data/table/esm2020/table-column-group/table-column-group.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row/table-row.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row-action/table-row-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +6 -9
- app-ng-runtime/components/data/table/fesm2015/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table-action/table-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +3 -4
- app-ng-runtime/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row/table-row.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table.component.d.ts +3 -4
- app-ng-runtime/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +40 -46
- app-ng-runtime/components/dialogs/alert-dialog/esm2020/alert-dialog.component.mjs +9 -15
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +16 -22
- app-ng-runtime/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/confirm-dialog/esm2020/confirm-dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +25 -31
- app-ng-runtime/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +2 -4
- app-ng-runtime/components/dialogs/default/esm2020/base-dialog.mjs +7 -8
- app-ng-runtime/components/dialogs/default/esm2020/dialog-footer/dialog-footer.directive.mjs +6 -11
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs +11 -17
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs +11 -15
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +17 -23
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -30
- app-ng-runtime/components/dialogs/iframe-dialog/esm2020/iframe-dialog.component.mjs +10 -16
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +3 -8
- app-ng-runtime/components/dialogs/partial-dialog/esm2020/partial-dialog.component.mjs +5 -10
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/partial-dialog.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +5 -10
- app-ng-runtime/components/input/calendar/calendar.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/esm2020/calendar.component.mjs +8 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs +6 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs +6 -9
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +87 -93
- app-ng-runtime/components/input/chips/chips.component.d.ts +2 -4
- app-ng-runtime/components/input/chips/esm2020/chips.component.mjs +9 -15
- app-ng-runtime/components/input/chips/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +22 -28
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +2 -4
- app-ng-runtime/components/input/color-picker/esm2020/color-picker.component.mjs +10 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -9
- app-ng-runtime/components/input/currency/currency.component.d.ts +3 -4
- app-ng-runtime/components/input/currency/esm2020/currency.component.mjs +7 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/input/currency/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form.component.d.ts +1 -2
- app-ng-runtime/components/input/default/bundles/index.umd.js +575 -648
- app-ng-runtime/components/input/default/button/button.component.d.ts +2 -4
- app-ng-runtime/components/input/default/button-group/button-group.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +2 -4
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/composite/composite.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -3
- app-ng-runtime/components/input/default/esm2020/base-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/button/button.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/button-group/button-group.directive.mjs +6 -11
- app-ng-runtime/components/input/default/esm2020/checkbox/checkbox.component.mjs +9 -13
- app-ng-runtime/components/input/default/esm2020/checkboxset/checkboxset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/composite/composite.directive.mjs +7 -11
- app-ng-runtime/components/input/default/esm2020/dataset-aware-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -10
- app-ng-runtime/components/input/default/esm2020/radioset/radioset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +11 -15
- app-ng-runtime/components/input/default/esm2020/switch/switch.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/text/base/base-input.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +3 -3
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +9 -14
- app-ng-runtime/components/input/default/fesm2015/index.mjs +94 -167
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +94 -139
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +3 -4
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/select/select.component.d.ts +2 -4
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/base/base-input.d.ts +1 -2
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +2 -2
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -4
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -4
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -21
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -6
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +3 -4
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +3 -6
- app-ng-runtime/components/input/file-upload/esm2020/file-upload.component.mjs +6 -9
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -4
- app-ng-runtime/components/input/rating/bundles/index.umd.js +45 -51
- app-ng-runtime/components/input/rating/esm2020/rating.component.mjs +11 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/rating/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +2 -4
- app-ng-runtime/components/input/slider/bundles/index.umd.js +37 -43
- app-ng-runtime/components/input/slider/esm2020/slider.component.mjs +10 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/slider/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +13 -25
- app-ng-runtime/components/navigation/menu/esm2020/menu-adapator.component.mjs +4 -6
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +4 -7
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav-item/nav-item.directive.mjs +7 -11
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -9
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +14 -26
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +14 -24
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-adapator.component.d.ts +1 -2
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +2 -3
- app-ng-runtime/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -3
- app-ng-runtime/components/navigation/navbar/bundles/index.umd.js +28 -34
- app-ng-runtime/components/navigation/navbar/esm2020/navbar.component.mjs +9 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/navbar.component.d.ts +2 -4
- app-ng-runtime/components/page/default/bundles/index.umd.js +32 -64
- app-ng-runtime/components/page/default/content/content.component.d.ts +2 -4
- app-ng-runtime/components/page/default/esm2020/content/content.component.mjs +6 -11
- app-ng-runtime/components/page/default/esm2020/layout.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/page-content/page-content.component.mjs +7 -10
- app-ng-runtime/components/page/default/esm2020/page.directive.mjs +7 -12
- app-ng-runtime/components/page/default/esm2020/router-outlet.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/spa-page.directive.mjs +7 -10
- app-ng-runtime/components/page/default/fesm2015/index.mjs +26 -58
- app-ng-runtime/components/page/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/fesm2020/index.mjs +26 -46
- app-ng-runtime/components/page/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/layout.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/page-content/page-content.component.d.ts +3 -4
- app-ng-runtime/components/page/default/page.directive.d.ts +3 -4
- app-ng-runtime/components/page/default/router-outlet.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/spa-page.directive.d.ts +3 -4
- app-ng-runtime/components/page/footer/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/footer/esm2020/footer.directive.mjs +6 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/footer/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/footer.directive.d.ts +2 -4
- app-ng-runtime/components/page/header/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/header/esm2020/header.component.mjs +6 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/header/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/header.component.d.ts +2 -4
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/left-panel/esm2020/left-panel.directive.mjs +6 -9
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +3 -4
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -12
- app-ng-runtime/components/page/right-panel/esm2020/right-panel.directive.mjs +7 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -4
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/top-nav/esm2020/top-nav.directive.mjs +6 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/top-nav.directive.d.ts +2 -4
- app-ng-runtime/components/prefab/bundles/index.umd.js +7 -15
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +7 -10
- app-ng-runtime/components/prefab/esm2020/prefab.directive.mjs +6 -10
- app-ng-runtime/components/prefab/fesm2015/index.mjs +8 -16
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/prefab-container/prefab-container.directive.d.ts +3 -4
- app-ng-runtime/components/prefab/prefab.directive.d.ts +2 -4
- app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +32 -37
- app-ng-runtime/mobile/components/basic/default/esm2020/network-info-toaster/network-info-toaster.component.mjs +7 -10
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs +10 -15
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs +10 -13
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +3 -4
- app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +18 -29
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segment-content/segment-content.component.mjs +8 -13
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segmented-control.component.mjs +9 -13
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs +12 -23
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs +12 -19
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +2 -4
- app-ng-runtime/mobile/components/containers/segmented-control/segmented-control.component.d.ts +2 -4
- app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +30 -36
- app-ng-runtime/mobile/components/data/media-list/esm2020/media-list.component.mjs +14 -18
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs +11 -17
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs +11 -15
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/media-list.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +28 -34
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2020/barcode-scanner.component.mjs +10 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs +8 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs +8 -12
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +12 -18
- app-ng-runtime/mobile/components/device/camera/camera.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/camera/esm2020/camera.component.mjs +9 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs +7 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/bundles/index.umd.js +3 -6
- app-ng-runtime/mobile/components/page/mobile-navbar/esm2020/mobile-navbar.component.mjs +6 -9
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +3 -4
- app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +32 -36
- app-ng-runtime/mobile/components/page/tab-bar/esm2020/tabbar.component.mjs +8 -13
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/tabbar.component.d.ts +2 -4
- app-ng-runtime/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('angular-imask'), require('@wm/components/base'), require('@wm/core'), require('rxjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'angular-imask', '@wm/components/base', '@wm/core', 'rxjs'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.input = {}), global.ng.core, global.ng.common, global.ng.forms, global.IMask, global.wm.components.base, global.wm.core, global.rxjs));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, i2$1, i2, i1$2, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -22,33 +22,33 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
-
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
26
|
-
var i3$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i3$1);
|
|
27
|
-
var i3$2__namespace = /*#__PURE__*/_interopNamespaceDefault(i3$2);
|
|
28
|
-
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
29
25
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
26
|
+
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
27
|
+
var i2$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i2$1);
|
|
28
|
+
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
29
|
+
var i1$2__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$2);
|
|
30
30
|
|
|
31
31
|
const registerProps$e = () => {
|
|
32
|
-
|
|
33
|
-
['animation',
|
|
34
|
-
['badgevalue',
|
|
35
|
-
['caption',
|
|
36
|
-
['class',
|
|
37
|
-
['conditionalclass',
|
|
38
|
-
['conditionalstyle',
|
|
39
|
-
['disabled',
|
|
40
|
-
['hint',
|
|
41
|
-
['iconclass',
|
|
42
|
-
['iconheight',
|
|
43
|
-
['iconmargin',
|
|
44
|
-
['iconposition',
|
|
45
|
-
['iconurl',
|
|
46
|
-
['iconwidth',
|
|
47
|
-
['name',
|
|
48
|
-
['shortcutkey',
|
|
49
|
-
['show', Object.assign({ value: true },
|
|
50
|
-
['tabindex', Object.assign({ value: 0 },
|
|
51
|
-
['type',
|
|
32
|
+
i2.register('wm-button', new Map([
|
|
33
|
+
['animation', i2.PROP_STRING],
|
|
34
|
+
['badgevalue', i2.PROP_STRING],
|
|
35
|
+
['caption', i2.PROP_STRING],
|
|
36
|
+
['class', i2.PROP_STRING],
|
|
37
|
+
['conditionalclass', i2.PROP_ANY],
|
|
38
|
+
['conditionalstyle', i2.PROP_ANY],
|
|
39
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
40
|
+
['hint', i2.PROP_STRING],
|
|
41
|
+
['iconclass', i2.PROP_STRING],
|
|
42
|
+
['iconheight', i2.PROP_STRING],
|
|
43
|
+
['iconmargin', i2.PROP_STRING],
|
|
44
|
+
['iconposition', i2.PROP_STRING],
|
|
45
|
+
['iconurl', i2.PROP_STRING],
|
|
46
|
+
['iconwidth', i2.PROP_STRING],
|
|
47
|
+
['name', i2.PROP_STRING],
|
|
48
|
+
['shortcutkey', i2.PROP_STRING],
|
|
49
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
50
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
51
|
+
['type', i2.PROP_STRING]
|
|
52
52
|
]));
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -102,24 +102,23 @@
|
|
|
102
102
|
const WIDGET_CONFIG$e = {
|
|
103
103
|
widgetType: 'wm-button',
|
|
104
104
|
hostClass: DEFAULT_CLS$6,
|
|
105
|
-
displayType:
|
|
105
|
+
displayType: i2.DISPLAY_TYPE.INLINE_BLOCK
|
|
106
106
|
};
|
|
107
|
-
class ButtonComponent extends
|
|
108
|
-
constructor(inj
|
|
109
|
-
super(inj, WIDGET_CONFIG$e
|
|
110
|
-
this.
|
|
111
|
-
i3.styler(this.nativeElement, this);
|
|
107
|
+
class ButtonComponent extends i2.StylableComponent {
|
|
108
|
+
constructor(inj) {
|
|
109
|
+
super(inj, WIDGET_CONFIG$e);
|
|
110
|
+
i2.styler(this.nativeElement, this);
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
ButtonComponent.initializeProps = registerProps$e();
|
|
115
|
-
ButtonComponent.ɵfac = function ButtonComponent_Factory(t) { return new (t || ButtonComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
114
|
+
ButtonComponent.ɵfac = function ButtonComponent_Factory(t) { return new (t || ButtonComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
116
115
|
ButtonComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: ButtonComponent, selectors: [["button", "wmButton", ""]], hostVars: 5, hostBindings: function ButtonComponent_HostBindings(rf, ctx) {
|
|
117
116
|
if (rf & 2) {
|
|
118
117
|
i0__namespace.ɵɵhostProperty("type", ctx.type)("tabIndex", ctx.tabindex)("disabled", ctx.disabled);
|
|
119
118
|
i0__namespace.ɵɵattribute("accesskey", ctx.shortcutkey)("icon-position", ctx.iconposition);
|
|
120
119
|
}
|
|
121
120
|
}, exportAs: ["wmButton"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
122
|
-
|
|
121
|
+
i2.provideAsWidgetRef(ButtonComponent)
|
|
123
122
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$c, ngContentSelectors: _c4$2, 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) {
|
|
124
123
|
if (rf & 1) {
|
|
125
124
|
i0__namespace.ɵɵprojectionDef(_c3$2);
|
|
@@ -141,18 +140,14 @@
|
|
|
141
140
|
i0__namespace.ɵɵadvance(2);
|
|
142
141
|
i0__namespace.ɵɵproperty("ngIf", ctx.badgevalue);
|
|
143
142
|
}
|
|
144
|
-
}, dependencies: [
|
|
143
|
+
}, dependencies: [i1__namespace.NgIf, i1__namespace.NgStyle, i2__namespace.TextContentDirective, i2__namespace.ImagePipe], encapsulation: 2 });
|
|
145
144
|
(function () {
|
|
146
145
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ButtonComponent, [{
|
|
147
146
|
type: i0.Component,
|
|
148
147
|
args: [{ selector: 'button[wmButton]', providers: [
|
|
149
|
-
|
|
148
|
+
i2.provideAsWidgetRef(ButtonComponent)
|
|
150
149
|
], 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" }]
|
|
151
|
-
}], function () {
|
|
152
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
153
|
-
type: i0.Optional
|
|
154
|
-
}] }];
|
|
155
|
-
}, { type: [{
|
|
150
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { type: [{
|
|
156
151
|
type: i0.HostBinding,
|
|
157
152
|
args: ['type']
|
|
158
153
|
}], tabindex: [{
|
|
@@ -171,11 +166,11 @@
|
|
|
171
166
|
})();
|
|
172
167
|
|
|
173
168
|
const registerProps$d = () => {
|
|
174
|
-
|
|
175
|
-
['class',
|
|
176
|
-
['name',
|
|
177
|
-
['show', Object.assign({ value: true },
|
|
178
|
-
['vertical',
|
|
169
|
+
i2.register('wm-buttongroup', new Map([
|
|
170
|
+
['class', i2.PROP_STRING],
|
|
171
|
+
['name', i2.PROP_STRING],
|
|
172
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
173
|
+
['vertical', i2.PROP_BOOLEAN]
|
|
179
174
|
]));
|
|
180
175
|
};
|
|
181
176
|
|
|
@@ -184,20 +179,19 @@
|
|
|
184
179
|
widgetType: 'wm-buttongroup',
|
|
185
180
|
hostClass: DEFAULT_CLS$5
|
|
186
181
|
};
|
|
187
|
-
class ButtonGroupDirective extends
|
|
182
|
+
class ButtonGroupDirective extends i2.StylableComponent {
|
|
188
183
|
handleClick(event) {
|
|
189
184
|
const $target = $(event.target).closest('.app-button');
|
|
190
185
|
this.$element.find('.app-button').removeClass('selected');
|
|
191
186
|
$target.addClass('selected');
|
|
192
187
|
}
|
|
193
|
-
constructor(inj
|
|
194
|
-
super(inj, WIDGET_CONFIG$d
|
|
195
|
-
this.
|
|
196
|
-
i3.styler(this.nativeElement, this, i3.APPLY_STYLES_TYPE.CONTAINER);
|
|
188
|
+
constructor(inj) {
|
|
189
|
+
super(inj, WIDGET_CONFIG$d);
|
|
190
|
+
i2.styler(this.nativeElement, this, i2.APPLY_STYLES_TYPE.CONTAINER);
|
|
197
191
|
}
|
|
198
192
|
}
|
|
199
193
|
ButtonGroupDirective.initializeProps = registerProps$d();
|
|
200
|
-
ButtonGroupDirective.ɵfac = function ButtonGroupDirective_Factory(t) { return new (t || ButtonGroupDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
194
|
+
ButtonGroupDirective.ɵfac = function ButtonGroupDirective_Factory(t) { return new (t || ButtonGroupDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
201
195
|
ButtonGroupDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: ButtonGroupDirective, selectors: [["", "wmButtonGroup", ""]], hostVars: 2, hostBindings: function ButtonGroupDirective_HostBindings(rf, ctx) {
|
|
202
196
|
if (rf & 1) {
|
|
203
197
|
i0__namespace.ɵɵlistener("click", function ButtonGroupDirective_click_HostBindingHandler($event) { return ctx.handleClick($event); });
|
|
@@ -206,7 +200,7 @@
|
|
|
206
200
|
i0__namespace.ɵɵclassProp("btn-group-vertical", ctx.vertical);
|
|
207
201
|
}
|
|
208
202
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
209
|
-
|
|
203
|
+
i2.provideAsWidgetRef(ButtonGroupDirective)
|
|
210
204
|
]), i0__namespace.ɵɵInheritDefinitionFeature] });
|
|
211
205
|
(function () {
|
|
212
206
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ButtonGroupDirective, [{
|
|
@@ -214,14 +208,10 @@
|
|
|
214
208
|
args: [{
|
|
215
209
|
selector: '[wmButtonGroup]',
|
|
216
210
|
providers: [
|
|
217
|
-
|
|
211
|
+
i2.provideAsWidgetRef(ButtonGroupDirective)
|
|
218
212
|
]
|
|
219
213
|
}]
|
|
220
|
-
}], function () {
|
|
221
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
222
|
-
type: i0.Optional
|
|
223
|
-
}] }];
|
|
224
|
-
}, { vertical: [{
|
|
214
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { vertical: [{
|
|
225
215
|
type: i0.HostBinding,
|
|
226
216
|
args: ['class.btn-group-vertical']
|
|
227
217
|
}], handleClick: [{
|
|
@@ -230,9 +220,9 @@
|
|
|
230
220
|
}] });
|
|
231
221
|
})();
|
|
232
222
|
|
|
233
|
-
class BaseFormComponent extends
|
|
234
|
-
constructor(inj, config,
|
|
235
|
-
super(inj, config,
|
|
223
|
+
class BaseFormComponent extends i2.StylableComponent {
|
|
224
|
+
constructor(inj, config, initPromise) {
|
|
225
|
+
super(inj, config, initPromise);
|
|
236
226
|
this.inj = inj;
|
|
237
227
|
this.binddatavalue = this.$element.attr('datavalue.bind');
|
|
238
228
|
}
|
|
@@ -249,7 +239,7 @@
|
|
|
249
239
|
updateBoundVariable(value) {
|
|
250
240
|
let binddatavalue = this.binddatavalue;
|
|
251
241
|
// return if the variable bound is not static.
|
|
252
|
-
if (this.datavaluesource && this.datavaluesource.execute(i1.DataSource.Operation.IS_API_AWARE)) {
|
|
242
|
+
if (this.datavaluesource && this.datavaluesource.execute(i1$2.DataSource.Operation.IS_API_AWARE)) {
|
|
253
243
|
return;
|
|
254
244
|
}
|
|
255
245
|
else if (this.datavaluesource && !this.datavaluesource.twoWayBinding) {
|
|
@@ -299,7 +289,7 @@
|
|
|
299
289
|
}
|
|
300
290
|
}
|
|
301
291
|
}
|
|
302
|
-
BaseFormComponent.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(
|
|
292
|
+
BaseFormComponent.ɵfac = function BaseFormComponent_Factory(t) { return new (t || BaseFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinject(Promise)); };
|
|
303
293
|
BaseFormComponent.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: BaseFormComponent, factory: BaseFormComponent.ɵfac });
|
|
304
294
|
(function () {
|
|
305
295
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BaseFormComponent, [{
|
|
@@ -307,8 +297,8 @@
|
|
|
307
297
|
}], function () {
|
|
308
298
|
return [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
309
299
|
type: i0.Inject,
|
|
310
|
-
args: [
|
|
311
|
-
}] }, { type:
|
|
300
|
+
args: [i2.WidgetConfig]
|
|
301
|
+
}] }, { type: Promise }];
|
|
312
302
|
}, null);
|
|
313
303
|
})();
|
|
314
304
|
|
|
@@ -342,7 +332,7 @@
|
|
|
342
332
|
}
|
|
343
333
|
ngOnInit() {
|
|
344
334
|
super.ngOnInit();
|
|
345
|
-
this._formControl = this.inj.get(
|
|
335
|
+
this._formControl = this.inj.get(i1$1.FormControlName, null);
|
|
346
336
|
}
|
|
347
337
|
registerOnChange(fn) {
|
|
348
338
|
this._onChange = fn;
|
|
@@ -396,27 +386,27 @@
|
|
|
396
386
|
})();
|
|
397
387
|
|
|
398
388
|
const checkboxProps = new Map([
|
|
399
|
-
['caption',
|
|
400
|
-
['class',
|
|
401
|
-
['conditionalclass',
|
|
402
|
-
['conditionalstyle',
|
|
403
|
-
['checkedvalue', Object.assign({ value: true },
|
|
404
|
-
['datavaluesource',
|
|
405
|
-
['datavalue',
|
|
406
|
-
['disabled',
|
|
407
|
-
['hint',
|
|
408
|
-
['name',
|
|
409
|
-
['readonly',
|
|
410
|
-
['required',
|
|
411
|
-
['shortcutkey',
|
|
412
|
-
['show', Object.assign({ value: true },
|
|
413
|
-
['tabindex', Object.assign({ value: 0 },
|
|
414
|
-
['uncheckedvalue', Object.assign({ value: false },
|
|
389
|
+
['caption', i2.PROP_STRING],
|
|
390
|
+
['class', i2.PROP_STRING],
|
|
391
|
+
['conditionalclass', i2.PROP_ANY],
|
|
392
|
+
['conditionalstyle', i2.PROP_ANY],
|
|
393
|
+
['checkedvalue', Object.assign({ value: true }, i2.PROP_STRING)],
|
|
394
|
+
['datavaluesource', i2.PROP_ANY],
|
|
395
|
+
['datavalue', i2.PROP_STRING],
|
|
396
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
397
|
+
['hint', i2.PROP_STRING],
|
|
398
|
+
['name', i2.PROP_STRING],
|
|
399
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
400
|
+
['required', i2.PROP_BOOLEAN],
|
|
401
|
+
['shortcutkey', i2.PROP_STRING],
|
|
402
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
403
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
404
|
+
['uncheckedvalue', Object.assign({ value: false }, i2.PROP_STRING)]
|
|
415
405
|
]);
|
|
416
406
|
const registerProps$c = () => {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
407
|
+
i2.register('wm-checkbox', checkboxProps);
|
|
408
|
+
i2.registerFormWidget(i1$2.FormWidgetType.CHECKBOX, checkboxProps);
|
|
409
|
+
i2.registerFormWidget(i1$2.FormWidgetType.TOGGLE, checkboxProps);
|
|
420
410
|
};
|
|
421
411
|
|
|
422
412
|
const _c0$b = ["checkbox"];
|
|
@@ -450,23 +440,22 @@
|
|
|
450
440
|
// if the checkbox is checked, return checkedvalue else return uncheckedvalue
|
|
451
441
|
// @ts-ignore
|
|
452
442
|
get datavalue() {
|
|
453
|
-
return i1.isDefined(this.proxyModel) ? (this.proxyModel ? this._checkedvalue : this._uncheckedvalue) : undefined;
|
|
443
|
+
return i1$2.isDefined(this.proxyModel) ? (this.proxyModel ? this._checkedvalue : this._uncheckedvalue) : undefined;
|
|
454
444
|
}
|
|
455
445
|
// when the datavalue is set, update the checked state
|
|
456
446
|
// @ts-ignore
|
|
457
447
|
set datavalue(v) {
|
|
458
|
-
this.proxyModel = (i1.isDefined(v) && v !== '') ? v === this._checkedvalue : undefined;
|
|
448
|
+
this.proxyModel = (i1$2.isDefined(v) && v !== '') ? v === this._checkedvalue : undefined;
|
|
459
449
|
this.updatePrevDatavalue(this.datavalue);
|
|
460
450
|
}
|
|
461
|
-
constructor(inj, checkedVal, uncheckedVal, type
|
|
462
|
-
super(inj, WIDGET_CONFIG$c
|
|
451
|
+
constructor(inj, checkedVal, uncheckedVal, type) {
|
|
452
|
+
super(inj, WIDGET_CONFIG$c);
|
|
463
453
|
this.type = type;
|
|
464
|
-
this._viewParent = _viewParent;
|
|
465
454
|
this._caption = ' ';
|
|
466
455
|
this._checkedvalue = unStringify(checkedVal, true);
|
|
467
456
|
this._uncheckedvalue = unStringify(uncheckedVal, false);
|
|
468
457
|
// if the type of the checkbox is toggle update the related classes on the host node
|
|
469
|
-
i1.toggleClass(this.nativeElement, 'app-toggle', type === 'toggle');
|
|
458
|
+
i1$2.toggleClass(this.nativeElement, 'app-toggle', type === 'toggle');
|
|
470
459
|
}
|
|
471
460
|
onPropertyChange(key, nv, ov) {
|
|
472
461
|
if (key === 'tabindex') {
|
|
@@ -477,7 +466,7 @@
|
|
|
477
466
|
return;
|
|
478
467
|
}
|
|
479
468
|
if (key === 'caption') {
|
|
480
|
-
if (!i1.isDefined(nv) || nv === '') {
|
|
469
|
+
if (!i1$2.isDefined(nv) || nv === '') {
|
|
481
470
|
this._caption = ' ';
|
|
482
471
|
}
|
|
483
472
|
else {
|
|
@@ -515,14 +504,14 @@
|
|
|
515
504
|
}
|
|
516
505
|
ngAfterViewInit() {
|
|
517
506
|
super.ngAfterViewInit();
|
|
518
|
-
|
|
507
|
+
i2.styler(this.nativeElement.querySelector('label'), this);
|
|
519
508
|
}
|
|
520
509
|
}
|
|
521
510
|
CheckboxComponent.initializeProps = registerProps$c();
|
|
522
|
-
CheckboxComponent.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('checkedvalue'), i0__namespace.ɵɵinjectAttribute('uncheckedvalue'), i0__namespace.ɵɵinjectAttribute('type')
|
|
511
|
+
CheckboxComponent.ɵfac = function CheckboxComponent_Factory(t) { return new (t || CheckboxComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('checkedvalue'), i0__namespace.ɵɵinjectAttribute('uncheckedvalue'), i0__namespace.ɵɵinjectAttribute('type')); };
|
|
523
512
|
CheckboxComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: CheckboxComponent, selectors: [["", "wmCheckbox", ""]], viewQuery: function CheckboxComponent_Query(rf, ctx) {
|
|
524
513
|
if (rf & 1) {
|
|
525
|
-
i0__namespace.ɵɵviewQuery(
|
|
514
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
526
515
|
i0__namespace.ɵɵviewQuery(_c0$b, 7, i0.ElementRef);
|
|
527
516
|
}
|
|
528
517
|
if (rf & 2) {
|
|
@@ -535,9 +524,9 @@
|
|
|
535
524
|
i0__namespace.ɵɵlistener("keydown.enter", function CheckboxComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
536
525
|
}
|
|
537
526
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
527
|
+
i2.provideAs(CheckboxComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
528
|
+
i2.provideAs(CheckboxComponent, i1$1.NG_VALIDATORS, true),
|
|
529
|
+
i2.provideAsWidgetRef(CheckboxComponent)
|
|
541
530
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$a, decls: 6, vars: 17, consts: [[3, "ngClass"], ["type", "checkbox", "role", "checkbox", "focus-target", "", 3, "ngModel", "readonly", "required", "disabled", "tabindex", "ngModelChange", "blur"], ["checkbox", ""], [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) {
|
|
542
531
|
if (rf & 1) {
|
|
543
532
|
i0__namespace.ɵɵelementStart(0, "label", 0)(1, "input", 1, 2);
|
|
@@ -557,14 +546,14 @@
|
|
|
557
546
|
i0__namespace.ɵɵadvance(2);
|
|
558
547
|
i0__namespace.ɵɵproperty("disabled", ctx.disabled)("value", ctx.proxyModel);
|
|
559
548
|
}
|
|
560
|
-
}, dependencies: [
|
|
549
|
+
}, dependencies: [i1__namespace.NgClass, i1$1__namespace.CheckboxControlValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.CheckboxRequiredValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
561
550
|
(function () {
|
|
562
551
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckboxComponent, [{
|
|
563
552
|
type: i0.Component,
|
|
564
553
|
args: [{ selector: '[wmCheckbox]', providers: [
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
554
|
+
i2.provideAs(CheckboxComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
555
|
+
i2.provideAs(CheckboxComponent, i1$1.NG_VALIDATORS, true),
|
|
556
|
+
i2.provideAsWidgetRef(CheckboxComponent)
|
|
568
557
|
], 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" }]
|
|
569
558
|
}], function () {
|
|
570
559
|
return [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
@@ -576,12 +565,10 @@
|
|
|
576
565
|
}] }, { type: undefined, decorators: [{
|
|
577
566
|
type: i0.Attribute,
|
|
578
567
|
args: ['type']
|
|
579
|
-
}] }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
580
|
-
type: i0.Optional
|
|
581
568
|
}] }];
|
|
582
569
|
}, { ngModel: [{
|
|
583
570
|
type: i0.ViewChild,
|
|
584
|
-
args: [
|
|
571
|
+
args: [i1$1.NgModel]
|
|
585
572
|
}], checkboxEl: [{
|
|
586
573
|
type: i0.ViewChild,
|
|
587
574
|
args: ['checkbox', { static: true, read: i0.ElementRef }]
|
|
@@ -609,7 +596,7 @@
|
|
|
609
596
|
// @ts-ignore
|
|
610
597
|
set datavalue(val) {
|
|
611
598
|
if (this.multiple) {
|
|
612
|
-
val =
|
|
599
|
+
val = i2.extractDataAsArray(val);
|
|
613
600
|
}
|
|
614
601
|
this._modelByValue = val;
|
|
615
602
|
this.selectByValue(val);
|
|
@@ -618,8 +605,8 @@
|
|
|
618
605
|
// invoke on datavalue change.
|
|
619
606
|
this.invokeOnChange(val, undefined, true);
|
|
620
607
|
}
|
|
621
|
-
constructor(inj, config,
|
|
622
|
-
super(inj, config
|
|
608
|
+
constructor(inj, config, groupby) {
|
|
609
|
+
super(inj, config);
|
|
623
610
|
this.groupby = groupby;
|
|
624
611
|
this.datasetItems = [];
|
|
625
612
|
this.acceptsArray = false; // set to true if proxyModel on widget accepts array type.
|
|
@@ -628,30 +615,30 @@
|
|
|
628
615
|
this.allowempty = true;
|
|
629
616
|
this._debounceDatavalueUpdation = _.debounce((values) => {
|
|
630
617
|
// if no item is found in datasetItems, wait untill the dataset updates by preserving the datavalue in toBeProcessedDatavalue.
|
|
631
|
-
if (!i1.isDefined(this._modelByKey) || (_.isArray(this._modelByKey) && !this._modelByKey.length)) {
|
|
618
|
+
if (!i1$2.isDefined(this._modelByKey) || (_.isArray(this._modelByKey) && !this._modelByKey.length)) {
|
|
632
619
|
this.toBeProcessedDatavalue = values;
|
|
633
620
|
this._modelByValue = '';
|
|
634
621
|
}
|
|
635
|
-
else if (i1.isDefined(this.toBeProcessedDatavalue)) {
|
|
622
|
+
else if (i1$2.isDefined(this.toBeProcessedDatavalue)) {
|
|
636
623
|
// obtain the first array value when multiple is set to false.
|
|
637
624
|
// set the modelByValue only when undefined.
|
|
638
|
-
if (!i1.isDefined(this._modelByValue)) {
|
|
625
|
+
if (!i1$2.isDefined(this._modelByValue)) {
|
|
639
626
|
this._modelByValue = (!this.multiple && _.isArray(this.toBeProcessedDatavalue)) ? this.toBeProcessedDatavalue[0] : this.toBeProcessedDatavalue;
|
|
640
627
|
}
|
|
641
628
|
this.toBeProcessedDatavalue = undefined;
|
|
642
629
|
}
|
|
643
630
|
this.initDisplayValues();
|
|
644
631
|
}, 150);
|
|
645
|
-
this.datePipe = this.inj.get(
|
|
646
|
-
this.appDefaults = this.inj.get(i1.AppDefaults);
|
|
632
|
+
this.datePipe = this.inj.get(i2.ToDatePipe);
|
|
633
|
+
this.appDefaults = this.inj.get(i1$2.AppDefaults);
|
|
647
634
|
this.binddisplayexpression = this.nativeElement.getAttribute('displayexpression.bind');
|
|
648
635
|
this.binddisplayimagesrc = this.nativeElement.getAttribute('displayimagesrc.bind');
|
|
649
636
|
this.binddisplaylabel = this.nativeElement.getAttribute('displaylabel.bind');
|
|
650
|
-
this._debouncedInitDatasetItems = i1.debounce(() => {
|
|
637
|
+
this._debouncedInitDatasetItems = i1$2.debounce(() => {
|
|
651
638
|
this.initDatasetItems();
|
|
652
|
-
i1.$appDigest();
|
|
639
|
+
i1$2.$appDigest();
|
|
653
640
|
}, 150);
|
|
654
|
-
this.handleHeaderClick = i1.noop;
|
|
641
|
+
this.handleHeaderClick = i1$2.noop;
|
|
655
642
|
}
|
|
656
643
|
/**
|
|
657
644
|
* This function sets the _datavalue value from the model and sets the selected flag when item is found.
|
|
@@ -706,29 +693,29 @@
|
|
|
706
693
|
selectByValue(values) {
|
|
707
694
|
this.resetDatasetItems();
|
|
708
695
|
// if datavalue is not defined or empty then set the model as undefined.
|
|
709
|
-
if (!i1.isDefined(values) || values === '' || _.isNull(values) || (values instanceof Array && !values.length)) {
|
|
696
|
+
if (!i1$2.isDefined(values) || values === '' || _.isNull(values) || (values instanceof Array && !values.length)) {
|
|
710
697
|
this._modelByKey = undefined;
|
|
711
698
|
// do not return when allowempty is set to true.
|
|
712
|
-
if (!this.allowempty || !i1.isDefined(values)) {
|
|
699
|
+
if (!this.allowempty || !i1$2.isDefined(values)) {
|
|
713
700
|
return;
|
|
714
701
|
}
|
|
715
702
|
}
|
|
716
703
|
if (this.acceptsArray && !_.isArray(values)) {
|
|
717
|
-
values = this.allowempty ? [values] :
|
|
704
|
+
values = this.allowempty ? [values] : i2.extractDataAsArray(values);
|
|
718
705
|
}
|
|
719
706
|
// preserve the datavalue if datasetItems are empty.
|
|
720
|
-
if (!this.datasetItems.length && i1.isDefined(values)) {
|
|
707
|
+
if (!this.datasetItems.length && i1$2.isDefined(values)) {
|
|
721
708
|
this.toBeProcessedDatavalue = values;
|
|
722
709
|
return;
|
|
723
710
|
}
|
|
724
|
-
const filterField = this.datafield ===
|
|
711
|
+
const filterField = this.datafield === i2.ALLFIELDS ? 'dataObject' : 'key';
|
|
725
712
|
if (_.isArray(values)) {
|
|
726
713
|
this._modelByKey = [];
|
|
727
714
|
values.forEach(val => {
|
|
728
715
|
const itemByValue = _.find(this.datasetItems, item => {
|
|
729
716
|
if (filterField === 'dataObject') {
|
|
730
717
|
if (this.compareby && this.compareby.length) {
|
|
731
|
-
return i1.isEqualWithFields(item[filterField], val, this.compareby);
|
|
718
|
+
return i1$2.isEqualWithFields(item[filterField], val, this.compareby);
|
|
732
719
|
}
|
|
733
720
|
}
|
|
734
721
|
return (_.isObject(item.value) ? _.isEqual(item.value, val) : (_.toString(item.value)).toLowerCase() === (_.toString(val)).toLowerCase());
|
|
@@ -744,7 +731,7 @@
|
|
|
744
731
|
const itemByValue = _.find(this.datasetItems, item => {
|
|
745
732
|
if (filterField === 'dataObject') {
|
|
746
733
|
if (this.compareby && this.compareby.length) {
|
|
747
|
-
return i1.isEqualWithFields(item[filterField], values, this.compareby);
|
|
734
|
+
return i1$2.isEqualWithFields(item[filterField], values, this.compareby);
|
|
748
735
|
}
|
|
749
736
|
}
|
|
750
737
|
return (_.isObject(item.value) ? _.isEqual(item.value, values) : (_.toString(item.value)).toLowerCase() === (_.toString(values)).toLowerCase());
|
|
@@ -777,12 +764,12 @@
|
|
|
777
764
|
return;
|
|
778
765
|
}
|
|
779
766
|
// convert any dataset to the object format.
|
|
780
|
-
const orderedDataset =
|
|
767
|
+
const orderedDataset = i2.getOrderedDataset(i2.convertDataToObject(this.dataset), this.orderby);
|
|
781
768
|
if (this.usekeys) {
|
|
782
|
-
this.datasetItems =
|
|
769
|
+
this.datasetItems = i2.transformDataWithKeys(orderedDataset);
|
|
783
770
|
}
|
|
784
771
|
else {
|
|
785
|
-
const displayOptions =
|
|
772
|
+
const displayOptions = i2.transformFormData(this.viewParent, orderedDataset, this.datafield, {
|
|
786
773
|
displayField: this.displayfield || this.displaylabel,
|
|
787
774
|
displayExpr: this.displayexpression,
|
|
788
775
|
bindDisplayExpr: this.binddisplayexpression || this.binddisplaylabel,
|
|
@@ -790,7 +777,7 @@
|
|
|
790
777
|
displayImgSrc: this.displayimagesrc
|
|
791
778
|
});
|
|
792
779
|
// get the unique objects out of the extracted data. Notify change in datasetItems using [...datasetItems] notation
|
|
793
|
-
this.datasetItems = [...
|
|
780
|
+
this.datasetItems = [...i2.getUniqObjsByDataField(displayOptions, this.datafield, this.displayfield || this.displaylabel, i1$2.toBoolean(this.allowempty))];
|
|
794
781
|
}
|
|
795
782
|
this.postDatasetItemsInit();
|
|
796
783
|
}
|
|
@@ -815,7 +802,7 @@
|
|
|
815
802
|
}
|
|
816
803
|
}
|
|
817
804
|
getGroupedData() {
|
|
818
|
-
return this.datasetItems.length ?
|
|
805
|
+
return this.datasetItems.length ? i2.groupData(this, i2.convertDataToObject(this.datasetItems), this.groupby, this.match, this.orderby, this.dateformat, this.datePipe, 'dataObject', this.appDefaults) : [];
|
|
819
806
|
}
|
|
820
807
|
datasetSubscription() {
|
|
821
808
|
const datasetSubscription = this.dataset$.subscribe(() => {
|
|
@@ -859,12 +846,12 @@
|
|
|
859
846
|
}
|
|
860
847
|
// adding the handler for header click and toggle headers.
|
|
861
848
|
if (this.groupby && this.collapsible) {
|
|
862
|
-
this.handleHeaderClick =
|
|
863
|
-
this.toggleAllHeaders =
|
|
849
|
+
this.handleHeaderClick = i2.handleHeaderClick;
|
|
850
|
+
this.toggleAllHeaders = i2.toggleAllHeaders.bind(undefined, this);
|
|
864
851
|
}
|
|
865
852
|
}
|
|
866
853
|
}
|
|
867
|
-
DatasetAwareFormComponent.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(
|
|
854
|
+
DatasetAwareFormComponent.ɵfac = function DatasetAwareFormComponent_Factory(t) { return new (t || DatasetAwareFormComponent)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig), i0__namespace.ɵɵinjectAttribute('groupby')); };
|
|
868
855
|
DatasetAwareFormComponent.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: DatasetAwareFormComponent, factory: DatasetAwareFormComponent.ɵfac });
|
|
869
856
|
(function () {
|
|
870
857
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(DatasetAwareFormComponent, [{
|
|
@@ -872,8 +859,8 @@
|
|
|
872
859
|
}], function () {
|
|
873
860
|
return [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
874
861
|
type: i0.Inject,
|
|
875
|
-
args: [
|
|
876
|
-
}] }, { type:
|
|
862
|
+
args: [i2.WidgetConfig]
|
|
863
|
+
}] }, { type: undefined, decorators: [{
|
|
877
864
|
type: i0.Attribute,
|
|
878
865
|
args: ['groupby']
|
|
879
866
|
}] }];
|
|
@@ -881,36 +868,36 @@
|
|
|
881
868
|
})();
|
|
882
869
|
|
|
883
870
|
const checkboxsetProps = new Map([
|
|
884
|
-
['class',
|
|
885
|
-
['collapsible',
|
|
886
|
-
['compareby',
|
|
887
|
-
['datafield',
|
|
888
|
-
['dataset', Object.assign({ value: 'Option 1, Option 2, Option 3' },
|
|
889
|
-
['datavaluesource',
|
|
890
|
-
['datavalue',
|
|
891
|
-
['dateformat',
|
|
892
|
-
['disabled',
|
|
893
|
-
['displayexpression',
|
|
894
|
-
['displayfield',
|
|
895
|
-
['displayValue',
|
|
896
|
-
['groupby',
|
|
897
|
-
['itemclass', Object.assign({ value: '' },
|
|
898
|
-
['itemsperrow', Object.assign({ value: 'xs-1 sm-1 md-1 lg-1' },
|
|
899
|
-
['listclass', Object.assign({ value: '' },
|
|
900
|
-
['match',
|
|
901
|
-
['name',
|
|
902
|
-
['orderby',
|
|
903
|
-
['readonly',
|
|
904
|
-
['required',
|
|
905
|
-
['show', Object.assign({ value: true },
|
|
906
|
-
['showcount',
|
|
907
|
-
['showindevice', Object.assign({ displayType: 'inline-block', value: 'all' },
|
|
908
|
-
['tabindex', Object.assign({ value: 0 },
|
|
909
|
-
['usekeys',
|
|
871
|
+
['class', i2.PROP_STRING],
|
|
872
|
+
['collapsible', i2.PROP_BOOLEAN],
|
|
873
|
+
['compareby', i2.PROP_STRING],
|
|
874
|
+
['datafield', i2.PROP_STRING],
|
|
875
|
+
['dataset', Object.assign({ value: 'Option 1, Option 2, Option 3' }, i2.PROP_ANY)],
|
|
876
|
+
['datavaluesource', i2.PROP_ANY],
|
|
877
|
+
['datavalue', i2.PROP_STRING],
|
|
878
|
+
['dateformat', i2.PROP_STRING],
|
|
879
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
880
|
+
['displayexpression', i2.PROP_STRING],
|
|
881
|
+
['displayfield', i2.PROP_STRING],
|
|
882
|
+
['displayValue', i2.PROP_STRING],
|
|
883
|
+
['groupby', i2.PROP_STRING],
|
|
884
|
+
['itemclass', Object.assign({ value: '' }, i2.PROP_STRING)],
|
|
885
|
+
['itemsperrow', Object.assign({ value: 'xs-1 sm-1 md-1 lg-1' }, i2.PROP_STRING)],
|
|
886
|
+
['listclass', Object.assign({ value: '' }, i2.PROP_STRING)],
|
|
887
|
+
['match', i2.PROP_STRING],
|
|
888
|
+
['name', i2.PROP_STRING],
|
|
889
|
+
['orderby', i2.PROP_STRING],
|
|
890
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
891
|
+
['required', i2.PROP_BOOLEAN],
|
|
892
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
893
|
+
['showcount', i2.PROP_BOOLEAN],
|
|
894
|
+
['showindevice', Object.assign({ displayType: 'inline-block', value: 'all' }, i2.PROP_STRING)],
|
|
895
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
896
|
+
['usekeys', i2.PROP_BOOLEAN]
|
|
910
897
|
]);
|
|
911
898
|
const registerProps$b = () => {
|
|
912
|
-
|
|
913
|
-
|
|
899
|
+
i2.register('wm-checkboxset', checkboxsetProps);
|
|
900
|
+
i2.registerFormWidget(i1$2.FormWidgetType.CHECKBOXSET, new Map(checkboxsetProps));
|
|
914
901
|
};
|
|
915
902
|
|
|
916
903
|
const _c0$a = ["wmCheckboxset", ""];
|
|
@@ -1103,11 +1090,10 @@
|
|
|
1103
1090
|
const DEFAULT_CLS$3 = 'app-checkboxset list-group inline';
|
|
1104
1091
|
const WIDGET_CONFIG$b = { widgetType: 'wm-checkboxset', hostClass: DEFAULT_CLS$3 };
|
|
1105
1092
|
class CheckboxsetComponent extends DatasetAwareFormComponent {
|
|
1106
|
-
constructor(inj
|
|
1107
|
-
super(inj, WIDGET_CONFIG$b
|
|
1108
|
-
this._viewParent = _viewParent;
|
|
1093
|
+
constructor(inj) {
|
|
1094
|
+
super(inj, WIDGET_CONFIG$b);
|
|
1109
1095
|
this.layout = '';
|
|
1110
|
-
|
|
1096
|
+
i2.styler(this.nativeElement, this);
|
|
1111
1097
|
this.multiple = true;
|
|
1112
1098
|
}
|
|
1113
1099
|
onCheckboxLabelClick($event, key) {
|
|
@@ -1153,7 +1139,7 @@
|
|
|
1153
1139
|
return;
|
|
1154
1140
|
}
|
|
1155
1141
|
if (key === 'itemsperrow') {
|
|
1156
|
-
i1.setListClass(this);
|
|
1142
|
+
i1$2.setListClass(this);
|
|
1157
1143
|
}
|
|
1158
1144
|
else {
|
|
1159
1145
|
super.onPropertyChange(key, nv, ov);
|
|
@@ -1161,15 +1147,15 @@
|
|
|
1161
1147
|
}
|
|
1162
1148
|
}
|
|
1163
1149
|
CheckboxsetComponent.initializeProps = registerProps$b();
|
|
1164
|
-
CheckboxsetComponent.ɵfac = function CheckboxsetComponent_Factory(t) { return new (t || CheckboxsetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
1150
|
+
CheckboxsetComponent.ɵfac = function CheckboxsetComponent_Factory(t) { return new (t || CheckboxsetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
1165
1151
|
CheckboxsetComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: CheckboxsetComponent, selectors: [["", "wmCheckboxset", ""]], hostBindings: function CheckboxsetComponent_HostBindings(rf, ctx) {
|
|
1166
1152
|
if (rf & 1) {
|
|
1167
1153
|
i0__namespace.ɵɵlistener("keydown.enter", function CheckboxsetComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
1168
1154
|
}
|
|
1169
1155
|
}, exportAs: ["wmCheckboxset"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1156
|
+
i2.provideAs(CheckboxsetComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
1157
|
+
i2.provideAs(CheckboxsetComponent, i1$1.NG_VALIDATORS, true),
|
|
1158
|
+
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1173
1159
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$a, decls: 5, vars: 4, consts: [[3, "ngIf", "ngIfElse"], ["hidden", "", 1, "model-holder", 3, "disabled"], ["class", "readonly-wrapper", 4, "ngIf"], ["groupedListTemplate", ""], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["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, "title", "ngClass", "click"], [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, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["type", "checkbox", "aria-label", "checkbox group", 3, "name", "tabindex", "disabled", "value", "checked"], ["partial-container-target", "", 1, "caption"]], template: function CheckboxsetComponent_Template(rf, ctx) {
|
|
1174
1160
|
if (rf & 1) {
|
|
1175
1161
|
i0__namespace.ɵɵtemplate(0, CheckboxsetComponent_ng_template_0_Template, 1, 1, "ng-template", 0);
|
|
@@ -1185,31 +1171,27 @@
|
|
|
1185
1171
|
i0__namespace.ɵɵadvance(1);
|
|
1186
1172
|
i0__namespace.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
1187
1173
|
}
|
|
1188
|
-
}, dependencies: [
|
|
1174
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 });
|
|
1189
1175
|
(function () {
|
|
1190
1176
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CheckboxsetComponent, [{
|
|
1191
1177
|
type: i0.Component,
|
|
1192
1178
|
args: [{ selector: '[wmCheckboxset]', exportAs: 'wmCheckboxset', providers: [
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1179
|
+
i2.provideAs(CheckboxsetComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
1180
|
+
i2.provideAs(CheckboxsetComponent, i1$1.NG_VALIDATORS, true),
|
|
1181
|
+
i2.provideAsWidgetRef(CheckboxsetComponent)
|
|
1196
1182
|
], 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" }]
|
|
1197
|
-
}], function () {
|
|
1198
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
1199
|
-
type: i0.Optional
|
|
1200
|
-
}] }];
|
|
1201
|
-
}, { onKeyDown: [{
|
|
1183
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { onKeyDown: [{
|
|
1202
1184
|
type: i0.HostListener,
|
|
1203
1185
|
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
1204
1186
|
}] });
|
|
1205
1187
|
})();
|
|
1206
1188
|
|
|
1207
1189
|
const registerProps$a = () => {
|
|
1208
|
-
|
|
1209
|
-
['captionposition',
|
|
1210
|
-
['name',
|
|
1211
|
-
['required',
|
|
1212
|
-
['show', Object.assign({ value: true },
|
|
1190
|
+
i2.register('wm-form-group', new Map([
|
|
1191
|
+
['captionposition', i2.PROP_STRING],
|
|
1192
|
+
['name', i2.PROP_STRING],
|
|
1193
|
+
['required', i2.PROP_BOOLEAN],
|
|
1194
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)]
|
|
1213
1195
|
]));
|
|
1214
1196
|
};
|
|
1215
1197
|
|
|
@@ -1224,11 +1206,10 @@
|
|
|
1224
1206
|
top: 'caption-top',
|
|
1225
1207
|
floating: 'caption-floating'
|
|
1226
1208
|
};
|
|
1227
|
-
class CompositeDirective extends
|
|
1228
|
-
constructor(inj
|
|
1229
|
-
super(inj, WIDGET_CONFIG$a
|
|
1230
|
-
this.
|
|
1231
|
-
i3.styler(this.nativeElement, this, i3.APPLY_STYLES_TYPE.CONTAINER);
|
|
1209
|
+
class CompositeDirective extends i2.StylableComponent {
|
|
1210
|
+
constructor(inj) {
|
|
1211
|
+
super(inj, WIDGET_CONFIG$a);
|
|
1212
|
+
i2.styler(this.nativeElement, this, i2.APPLY_STYLES_TYPE.CONTAINER);
|
|
1232
1213
|
}
|
|
1233
1214
|
/**
|
|
1234
1215
|
* this is onPropertyChange handler for the form-group component
|
|
@@ -1238,7 +1219,7 @@
|
|
|
1238
1219
|
*/
|
|
1239
1220
|
onPropertyChange(key, nv, ov) {
|
|
1240
1221
|
if (key === 'captionposition') {
|
|
1241
|
-
i1.switchClass(this.nativeElement, CAPTION_POSITION[nv], CAPTION_POSITION[ov]);
|
|
1222
|
+
i1$2.switchClass(this.nativeElement, CAPTION_POSITION[nv], CAPTION_POSITION[ov]);
|
|
1242
1223
|
}
|
|
1243
1224
|
else if (key === 'required') {
|
|
1244
1225
|
this.required = nv;
|
|
@@ -1260,22 +1241,22 @@
|
|
|
1260
1241
|
}
|
|
1261
1242
|
ngAfterViewInit() {
|
|
1262
1243
|
super.ngAfterViewInit();
|
|
1263
|
-
i1.addForIdAttributes(this.nativeElement);
|
|
1244
|
+
i1$2.addForIdAttributes(this.nativeElement);
|
|
1264
1245
|
this.assignRequiredToSubComponents();
|
|
1265
1246
|
}
|
|
1266
1247
|
}
|
|
1267
1248
|
CompositeDirective.initializeProps = registerProps$a();
|
|
1268
|
-
CompositeDirective.ɵfac = function CompositeDirective_Factory(t) { return new (t || CompositeDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
1249
|
+
CompositeDirective.ɵfac = function CompositeDirective_Factory(t) { return new (t || CompositeDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
1269
1250
|
CompositeDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CompositeDirective, selectors: [["div", "wmComposite", ""]], contentQueries: function CompositeDirective_ContentQueries(rf, ctx, dirIndex) {
|
|
1270
1251
|
if (rf & 1) {
|
|
1271
|
-
i0__namespace.ɵɵcontentQuery(dirIndex,
|
|
1252
|
+
i0__namespace.ɵɵcontentQuery(dirIndex, i2.WidgetRef, 5);
|
|
1272
1253
|
}
|
|
1273
1254
|
if (rf & 2) {
|
|
1274
1255
|
let _t;
|
|
1275
1256
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.componentRefs = _t);
|
|
1276
1257
|
}
|
|
1277
1258
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
1278
|
-
|
|
1259
|
+
i2.provideAsWidgetRef(CompositeDirective)
|
|
1279
1260
|
]), i0__namespace.ɵɵInheritDefinitionFeature] });
|
|
1280
1261
|
(function () {
|
|
1281
1262
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CompositeDirective, [{
|
|
@@ -1283,46 +1264,42 @@
|
|
|
1283
1264
|
args: [{
|
|
1284
1265
|
selector: 'div[wmComposite]',
|
|
1285
1266
|
providers: [
|
|
1286
|
-
|
|
1267
|
+
i2.provideAsWidgetRef(CompositeDirective)
|
|
1287
1268
|
]
|
|
1288
1269
|
}]
|
|
1289
|
-
}], function () {
|
|
1290
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
1291
|
-
type: i0.Optional
|
|
1292
|
-
}] }];
|
|
1293
|
-
}, { componentRefs: [{
|
|
1270
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { componentRefs: [{
|
|
1294
1271
|
type: i0.ContentChildren,
|
|
1295
|
-
args: [
|
|
1272
|
+
args: [i2.WidgetRef, { descendants: true }]
|
|
1296
1273
|
}] });
|
|
1297
1274
|
})();
|
|
1298
1275
|
|
|
1299
1276
|
const numberProps = new Map([
|
|
1300
|
-
['autofocus',
|
|
1301
|
-
['class',
|
|
1302
|
-
['datavaluesource',
|
|
1303
|
-
['datavalue',
|
|
1304
|
-
['disabled',
|
|
1305
|
-
['hint',
|
|
1306
|
-
['localefilter',
|
|
1307
|
-
['minvalue',
|
|
1308
|
-
['maxvalue',
|
|
1309
|
-
['name',
|
|
1310
|
-
['numberfilter',
|
|
1311
|
-
['placeholder', Object.assign({ value: 'Enter number' },
|
|
1312
|
-
['readonly',
|
|
1313
|
-
['regexp',
|
|
1314
|
-
['required',
|
|
1315
|
-
['shortcutkey',
|
|
1316
|
-
['show', Object.assign({ value: true },
|
|
1317
|
-
['step', Object.assign({ value: 1 },
|
|
1318
|
-
['tabindex', Object.assign({ value: 0 },
|
|
1319
|
-
['trailingzero', Object.assign({ value: false },
|
|
1320
|
-
['updateon',
|
|
1321
|
-
['inputmode', Object.assign({ value: 'natural' },
|
|
1277
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
1278
|
+
['class', i2.PROP_STRING],
|
|
1279
|
+
['datavaluesource', i2.PROP_ANY],
|
|
1280
|
+
['datavalue', i2.PROP_STRING],
|
|
1281
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
1282
|
+
['hint', i2.PROP_STRING],
|
|
1283
|
+
['localefilter', i2.PROP_STRING],
|
|
1284
|
+
['minvalue', i2.PROP_NUMBER],
|
|
1285
|
+
['maxvalue', i2.PROP_NUMBER],
|
|
1286
|
+
['name', i2.PROP_STRING],
|
|
1287
|
+
['numberfilter', i2.PROP_STRING],
|
|
1288
|
+
['placeholder', Object.assign({ value: 'Enter number' }, i2.PROP_STRING)],
|
|
1289
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
1290
|
+
['regexp', i2.PROP_STRING],
|
|
1291
|
+
['required', i2.PROP_BOOLEAN],
|
|
1292
|
+
['shortcutkey', i2.PROP_STRING],
|
|
1293
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
1294
|
+
['step', Object.assign({ value: 1 }, i2.PROP_NUMBER)],
|
|
1295
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
1296
|
+
['trailingzero', Object.assign({ value: false }, i2.PROP_BOOLEAN)],
|
|
1297
|
+
['updateon', i2.PROP_STRING],
|
|
1298
|
+
['inputmode', Object.assign({ value: 'natural' }, i2.PROP_STRING)]
|
|
1322
1299
|
]);
|
|
1323
1300
|
const registerProps$9 = () => {
|
|
1324
|
-
|
|
1325
|
-
|
|
1301
|
+
i2.register('wm-number', numberProps);
|
|
1302
|
+
i2.registerFormWidget(i1$2.FormWidgetType.NUMBER, new Map(numberProps));
|
|
1326
1303
|
};
|
|
1327
1304
|
|
|
1328
1305
|
class BaseInput extends BaseFormCustomComponent {
|
|
@@ -1337,7 +1314,7 @@
|
|
|
1337
1314
|
}
|
|
1338
1315
|
if (key === 'class') {
|
|
1339
1316
|
if (this.inputEl.nativeElement) {
|
|
1340
|
-
i1.switchClass(this.inputEl.nativeElement, nv, ov);
|
|
1317
|
+
i1$2.switchClass(this.inputEl.nativeElement, nv, ov);
|
|
1341
1318
|
}
|
|
1342
1319
|
}
|
|
1343
1320
|
else if (key === 'datavalue') {
|
|
@@ -1372,18 +1349,18 @@
|
|
|
1372
1349
|
const unMaskedVal = _.get(this.imask, 'maskRef.unmaskedValue');
|
|
1373
1350
|
val = unMaskedVal ? unMaskedVal : val;
|
|
1374
1351
|
this.ngModel.update.next(val);
|
|
1375
|
-
i1.$appDigest();
|
|
1352
|
+
i1$2.$appDigest();
|
|
1376
1353
|
}
|
|
1377
1354
|
ngAfterViewInit() {
|
|
1378
1355
|
super.ngAfterViewInit();
|
|
1379
1356
|
// add the class on the input element
|
|
1380
1357
|
if (this.class) {
|
|
1381
|
-
i1.addClass(this.inputEl.nativeElement, this.class);
|
|
1358
|
+
i1$2.addClass(this.inputEl.nativeElement, this.class);
|
|
1382
1359
|
}
|
|
1383
|
-
|
|
1360
|
+
i2.styler(this.inputEl.nativeElement, this);
|
|
1384
1361
|
}
|
|
1385
|
-
constructor(inj, config
|
|
1386
|
-
super(inj, config
|
|
1362
|
+
constructor(inj, config) {
|
|
1363
|
+
super(inj, config);
|
|
1387
1364
|
// possible values for ngModelOptions are 'blur' and 'change'
|
|
1388
1365
|
// default is 'blur'
|
|
1389
1366
|
this.ngModelOptions = {
|
|
@@ -1394,7 +1371,7 @@
|
|
|
1394
1371
|
this.ngModelOptions.updateOn = updateOn;
|
|
1395
1372
|
}
|
|
1396
1373
|
}
|
|
1397
|
-
BaseInput.ɵfac = function BaseInput_Factory(t) { return new (t || BaseInput)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(
|
|
1374
|
+
BaseInput.ɵfac = function BaseInput_Factory(t) { return new (t || BaseInput)(i0__namespace.ɵɵinject(i0__namespace.Injector), i0__namespace.ɵɵinject(i2.WidgetConfig)); };
|
|
1398
1375
|
BaseInput.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: BaseInput, factory: BaseInput.ɵfac });
|
|
1399
1376
|
(function () {
|
|
1400
1377
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BaseInput, [{
|
|
@@ -1402,21 +1379,21 @@
|
|
|
1402
1379
|
}], function () {
|
|
1403
1380
|
return [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
1404
1381
|
type: i0.Inject,
|
|
1405
|
-
args: [
|
|
1406
|
-
}] }
|
|
1382
|
+
args: [i2.WidgetConfig]
|
|
1383
|
+
}] }];
|
|
1407
1384
|
}, null);
|
|
1408
1385
|
})();
|
|
1409
1386
|
|
|
1410
1387
|
class NumberLocale extends BaseInput {
|
|
1411
|
-
constructor(inj, config,
|
|
1412
|
-
super(inj, config
|
|
1388
|
+
constructor(inj, config, i18nService, trailingZeroDecimalPipe) {
|
|
1389
|
+
super(inj, config);
|
|
1413
1390
|
this.i18nService = i18nService;
|
|
1414
1391
|
this.trailingZeroDecimalPipe = trailingZeroDecimalPipe;
|
|
1415
1392
|
this.isDefaultQuery = true;
|
|
1416
1393
|
this.decimalValue = '';
|
|
1417
1394
|
this.selectedLocale = i18nService.getSelectedLocale();
|
|
1418
|
-
this.DECIMAL =
|
|
1419
|
-
this.GROUP =
|
|
1395
|
+
this.DECIMAL = i1.getLocaleNumberSymbol(this.localefilter || this.selectedLocale, i1.NumberSymbol.Decimal);
|
|
1396
|
+
this.GROUP = i1.getLocaleNumberSymbol(this.localefilter || this.selectedLocale, i1.NumberSymbol.Group);
|
|
1420
1397
|
this.numberfilter = '1.0-16';
|
|
1421
1398
|
this.resetValidations();
|
|
1422
1399
|
}
|
|
@@ -1593,7 +1570,7 @@
|
|
|
1593
1570
|
this.decimalValue = parts[1] || '';
|
|
1594
1571
|
}
|
|
1595
1572
|
const stepVal = this.stepLength();
|
|
1596
|
-
if (this.inputmode ===
|
|
1573
|
+
if (this.inputmode === i2.INPUTMODE.FINANCIAL && stepVal) {
|
|
1597
1574
|
this.displayValue = input.value = this.transformNumber(this.proxyModel, `1.${stepVal}-${stepVal}`);
|
|
1598
1575
|
this.decimalValue = this.decimalValue.replace(/\D/g, '');
|
|
1599
1576
|
}
|
|
@@ -1618,7 +1595,7 @@
|
|
|
1618
1595
|
}
|
|
1619
1596
|
// This function checks if the currency widget has input mode as natural and trailing zero is defined or not
|
|
1620
1597
|
isNaturalCurrency() {
|
|
1621
|
-
return this.inputmode ===
|
|
1598
|
+
return this.inputmode === i2.INPUTMODE.NATURAL && this.widgetType === 'wm-currency' && !!this.trailingzero;
|
|
1622
1599
|
}
|
|
1623
1600
|
/**
|
|
1624
1601
|
* @param value contains the value entered in the input box
|
|
@@ -1628,13 +1605,13 @@
|
|
|
1628
1605
|
onInputChange(value) {
|
|
1629
1606
|
const stepVal = this.stepLength();
|
|
1630
1607
|
// WMS-22355, Trigger change cb if value exists or value is empty but datavalue exists (when value is selected and deleted).
|
|
1631
|
-
if (i1.isDefined(value) && (value !== '' || this.datavalue)) {
|
|
1608
|
+
if (i1$2.isDefined(value) && (value !== '' || this.datavalue)) {
|
|
1632
1609
|
this.handleChange(value);
|
|
1633
1610
|
}
|
|
1634
1611
|
else {
|
|
1635
1612
|
return;
|
|
1636
1613
|
}
|
|
1637
|
-
if (!stepVal || this.inputmode !==
|
|
1614
|
+
if (!stepVal || this.inputmode !== i2.INPUTMODE.FINANCIAL) {
|
|
1638
1615
|
return;
|
|
1639
1616
|
}
|
|
1640
1617
|
let financialVal;
|
|
@@ -1668,7 +1645,7 @@
|
|
|
1668
1645
|
// In currency, inputmode is natural and trailing zero and step are defined, on blur display val to fixed point notation and on focus strip the zeros
|
|
1669
1646
|
checkForTrailingZeros($event) {
|
|
1670
1647
|
const stepVal = this.stepLength();
|
|
1671
|
-
const financialMode = !this.trailingzero && this.inputmode ===
|
|
1648
|
+
const financialMode = !this.trailingzero && this.inputmode === i2.INPUTMODE.FINANCIAL;
|
|
1672
1649
|
// If the user's last input is a decimal and not active on input field, throw error
|
|
1673
1650
|
if (this.lastValIsDecimal) {
|
|
1674
1651
|
this.onModelChange(this.displayValue);
|
|
@@ -1779,7 +1756,7 @@
|
|
|
1779
1756
|
const validity = new RegExp(`^[\\d\\s-,.e+${this.GROUP}${this.DECIMAL}]$`, 'i');
|
|
1780
1757
|
const inputValue = $event.target.value;
|
|
1781
1758
|
// when input mode is financial, do not restrict user on entering the value when step value limit is reached.
|
|
1782
|
-
const skipStepValidation = this.inputmode ===
|
|
1759
|
+
const skipStepValidation = this.inputmode === i2.INPUTMODE.FINANCIAL;
|
|
1783
1760
|
// Validates if user eneters more than 16 digits
|
|
1784
1761
|
if (inputValue) {
|
|
1785
1762
|
const parsedVal = parseInt(inputValue.toString().replace(/\D/g, ''));
|
|
@@ -1830,7 +1807,7 @@
|
|
|
1830
1807
|
this.datavalue = $event.target.value;
|
|
1831
1808
|
}
|
|
1832
1809
|
onModelChange($event) {
|
|
1833
|
-
if (this.inputmode ===
|
|
1810
|
+
if (this.inputmode === i2.INPUTMODE.NATURAL || (this.inputmode === i2.INPUTMODE.FINANCIAL && this.ngModelOptions.updateOn === 'blur')) {
|
|
1834
1811
|
this.datavalue = $event;
|
|
1835
1812
|
}
|
|
1836
1813
|
}
|
|
@@ -1859,17 +1836,16 @@
|
|
|
1859
1836
|
hostClass: 'app-input-wrapper'
|
|
1860
1837
|
};
|
|
1861
1838
|
class NumberComponent extends NumberLocale {
|
|
1862
|
-
constructor(inj, i18nService, trailingZeroDecimalPipe
|
|
1863
|
-
super(inj, WIDGET_CONFIG$9,
|
|
1864
|
-
this._viewParent = _viewParent;
|
|
1839
|
+
constructor(inj, i18nService, trailingZeroDecimalPipe) {
|
|
1840
|
+
super(inj, WIDGET_CONFIG$9, i18nService, trailingZeroDecimalPipe);
|
|
1865
1841
|
}
|
|
1866
1842
|
}
|
|
1867
1843
|
NumberComponent.initializeProps = registerProps$9();
|
|
1868
|
-
NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(
|
|
1844
|
+
NumberComponent.ɵfac = function NumberComponent_Factory(t) { return new (t || NumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$2__namespace.AbstractI18nService), i0__namespace.ɵɵdirectiveInject(i2__namespace.TrailingZeroDecimalPipe)); };
|
|
1869
1845
|
NumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NumberComponent, selectors: [["", "wmNumber", ""]], viewQuery: function NumberComponent_Query(rf, ctx) {
|
|
1870
1846
|
if (rf & 1) {
|
|
1871
1847
|
i0__namespace.ɵɵviewQuery(_c0$9, 7);
|
|
1872
|
-
i0__namespace.ɵɵviewQuery(
|
|
1848
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 7);
|
|
1873
1849
|
}
|
|
1874
1850
|
if (rf & 2) {
|
|
1875
1851
|
let _t;
|
|
@@ -1877,9 +1853,9 @@
|
|
|
1877
1853
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
1878
1854
|
}
|
|
1879
1855
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1856
|
+
i2.provideAs(NumberComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
1857
|
+
i2.provideAs(NumberComponent, i1$1.NG_VALIDATORS, true),
|
|
1858
|
+
i2.provideAsWidgetRef(NumberComponent)
|
|
1883
1859
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$8, decls: 2, vars: 12, consts: [["inputmode", "decimal", "focus-target", "", "role", "textbox", "type", "text", 1, "form-control", "app-textbox", "app-number-input", 3, "ngModel", "readonly", "disabled", "pattern", "autofocus", "ngModelOptions", "required", "ngModelChange", "blur", "focus", "input", "keypress", "keydown.backspace", "keydown.enter", "keydown.ArrowUp", "keydown.ArrowDown"], ["input", ""]], template: function NumberComponent_Template(rf, ctx) {
|
|
1884
1860
|
if (rf & 1) {
|
|
1885
1861
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -1890,59 +1866,55 @@
|
|
|
1890
1866
|
i0__namespace.ɵɵproperty("ngModel", ctx.displayValue)("readonly", ctx.readonly)("disabled", ctx.disabled)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("ngModelOptions", ctx.ngModelOptions)("required", ctx.required);
|
|
1891
1867
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
1892
1868
|
}
|
|
1893
|
-
}, dependencies: [
|
|
1869
|
+
}, dependencies: [i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.PatternValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
1894
1870
|
(function () {
|
|
1895
1871
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NumberComponent, [{
|
|
1896
1872
|
type: i0.Component,
|
|
1897
1873
|
args: [{ selector: '[wmNumber]', providers: [
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1874
|
+
i2.provideAs(NumberComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
1875
|
+
i2.provideAs(NumberComponent, i1$1.NG_VALIDATORS, true),
|
|
1876
|
+
i2.provideAsWidgetRef(NumberComponent)
|
|
1901
1877
|
], 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 (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" }]
|
|
1902
|
-
}], function () {
|
|
1903
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.AbstractI18nService }, { type: i3__namespace.TrailingZeroDecimalPipe }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
1904
|
-
type: i0.Optional
|
|
1905
|
-
}] }];
|
|
1906
|
-
}, { inputEl: [{
|
|
1878
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$2__namespace.AbstractI18nService }, { type: i2__namespace.TrailingZeroDecimalPipe }]; }, { inputEl: [{
|
|
1907
1879
|
type: i0.ViewChild,
|
|
1908
1880
|
args: ['input', { static: true }]
|
|
1909
1881
|
}], ngModel: [{
|
|
1910
1882
|
type: i0.ViewChild,
|
|
1911
|
-
args: [
|
|
1883
|
+
args: [i1$1.NgModel, { static: true }]
|
|
1912
1884
|
}] });
|
|
1913
1885
|
})();
|
|
1914
1886
|
|
|
1915
1887
|
const radiosetProps = new Map([
|
|
1916
|
-
['class',
|
|
1917
|
-
['collapsible',
|
|
1918
|
-
['compareby',
|
|
1919
|
-
['datafield',
|
|
1920
|
-
['dataset', Object.assign({ value: 'Option 1, Option 2, Option 3' },
|
|
1921
|
-
['datavaluesource',
|
|
1922
|
-
['datavalue',
|
|
1923
|
-
['dateformat',
|
|
1924
|
-
['disabled',
|
|
1925
|
-
['displayexpression',
|
|
1926
|
-
['displayfield',
|
|
1927
|
-
['displayValue',
|
|
1928
|
-
['groupby',
|
|
1929
|
-
['itemclass', Object.assign({ value: '' },
|
|
1930
|
-
['itemsperrow', Object.assign({ value: 'xs-1 sm-1 md-1 lg-1' },
|
|
1931
|
-
['listclass', Object.assign({ value: '' },
|
|
1932
|
-
['match',
|
|
1933
|
-
['name',
|
|
1934
|
-
['orderby',
|
|
1935
|
-
['readonly',
|
|
1936
|
-
['required',
|
|
1937
|
-
['show', Object.assign({ value: true },
|
|
1938
|
-
['showcount',
|
|
1939
|
-
['showindevice', Object.assign({ displayType: 'inline-block', value: 'all' },
|
|
1940
|
-
['tabindex', Object.assign({ value: 0 },
|
|
1941
|
-
['usekeys',
|
|
1888
|
+
['class', i2.PROP_STRING],
|
|
1889
|
+
['collapsible', i2.PROP_BOOLEAN],
|
|
1890
|
+
['compareby', i2.PROP_STRING],
|
|
1891
|
+
['datafield', i2.PROP_STRING],
|
|
1892
|
+
['dataset', Object.assign({ value: 'Option 1, Option 2, Option 3' }, i2.PROP_ANY)],
|
|
1893
|
+
['datavaluesource', i2.PROP_ANY],
|
|
1894
|
+
['datavalue', i2.PROP_ANY],
|
|
1895
|
+
['dateformat', i2.PROP_STRING],
|
|
1896
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
1897
|
+
['displayexpression', i2.PROP_STRING],
|
|
1898
|
+
['displayfield', i2.PROP_STRING],
|
|
1899
|
+
['displayValue', i2.PROP_STRING],
|
|
1900
|
+
['groupby', i2.PROP_STRING],
|
|
1901
|
+
['itemclass', Object.assign({ value: '' }, i2.PROP_STRING)],
|
|
1902
|
+
['itemsperrow', Object.assign({ value: 'xs-1 sm-1 md-1 lg-1' }, i2.PROP_STRING)],
|
|
1903
|
+
['listclass', Object.assign({ value: '' }, i2.PROP_STRING)],
|
|
1904
|
+
['match', i2.PROP_STRING],
|
|
1905
|
+
['name', i2.PROP_STRING],
|
|
1906
|
+
['orderby', i2.PROP_STRING],
|
|
1907
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
1908
|
+
['required', i2.PROP_BOOLEAN],
|
|
1909
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
1910
|
+
['showcount', i2.PROP_BOOLEAN],
|
|
1911
|
+
['showindevice', Object.assign({ displayType: 'inline-block', value: 'all' }, i2.PROP_STRING)],
|
|
1912
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
1913
|
+
['usekeys', i2.PROP_BOOLEAN]
|
|
1942
1914
|
]);
|
|
1943
1915
|
const registerProps$8 = () => {
|
|
1944
|
-
|
|
1945
|
-
|
|
1916
|
+
i2.register('wm-radioset', radiosetProps);
|
|
1917
|
+
i2.registerFormWidget(i1$2.FormWidgetType.RADIOSET, new Map(radiosetProps));
|
|
1946
1918
|
};
|
|
1947
1919
|
|
|
1948
1920
|
const _c0$8 = ["wmRadioset", ""];
|
|
@@ -2135,11 +2107,10 @@
|
|
|
2135
2107
|
const DEFAULT_CLS$1 = 'app-radioset list-group inline';
|
|
2136
2108
|
const WIDGET_CONFIG$8 = { widgetType: 'wm-radioset', hostClass: DEFAULT_CLS$1 };
|
|
2137
2109
|
class RadiosetComponent extends DatasetAwareFormComponent {
|
|
2138
|
-
constructor(inj
|
|
2139
|
-
super(inj, WIDGET_CONFIG$8
|
|
2140
|
-
this._viewParent = _viewParent;
|
|
2110
|
+
constructor(inj) {
|
|
2111
|
+
super(inj, WIDGET_CONFIG$8);
|
|
2141
2112
|
this.layout = '';
|
|
2142
|
-
|
|
2113
|
+
i2.styler(this.nativeElement, this);
|
|
2143
2114
|
this.multiple = false;
|
|
2144
2115
|
}
|
|
2145
2116
|
/**
|
|
@@ -2174,7 +2145,7 @@
|
|
|
2174
2145
|
return;
|
|
2175
2146
|
}
|
|
2176
2147
|
if (key === 'itemsperrow') {
|
|
2177
|
-
i1.setListClass(this);
|
|
2148
|
+
i1$2.setListClass(this);
|
|
2178
2149
|
}
|
|
2179
2150
|
else {
|
|
2180
2151
|
super.onPropertyChange(key, nv, ov);
|
|
@@ -2182,11 +2153,11 @@
|
|
|
2182
2153
|
}
|
|
2183
2154
|
}
|
|
2184
2155
|
RadiosetComponent.initializeProps = registerProps$8();
|
|
2185
|
-
RadiosetComponent.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2156
|
+
RadiosetComponent.ɵfac = function RadiosetComponent_Factory(t) { return new (t || RadiosetComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2186
2157
|
RadiosetComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: RadiosetComponent, selectors: [["", "wmRadioset", ""]], exportAs: ["wmRadioset"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2158
|
+
i2.provideAs(RadiosetComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2159
|
+
i2.provideAs(RadiosetComponent, i1$1.NG_VALIDATORS, true),
|
|
2160
|
+
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2190
2161
|
]), i0__namespace.ɵɵ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"], ["groupedListTemplate", ""], ["partialContainer", "", "role", "presentation", 3, "ngClass", "active", "wmItemTemplate", "userComponentParams", "click", 4, "ngFor", "ngForOf"], ["partialContainer", "", "role", "presentation", 3, "ngClass", "wmItemTemplate", "userComponentParams", "click"], ["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, "title", "ngClass", "click"], [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, "ngClass", "wmItemTemplate", "userComponentParams", "click"]], template: function RadiosetComponent_Template(rf, ctx) {
|
|
2191
2162
|
if (rf & 1) {
|
|
2192
2163
|
i0__namespace.ɵɵtemplate(0, RadiosetComponent_ng_template_0_Template, 1, 1, "ng-template", 0);
|
|
@@ -2202,53 +2173,49 @@
|
|
|
2202
2173
|
i0__namespace.ɵɵadvance(1);
|
|
2203
2174
|
i0__namespace.ɵɵproperty("ngIf", ctx.readonly || ctx.disabled);
|
|
2204
2175
|
}
|
|
2205
|
-
}, dependencies: [
|
|
2176
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.ItemTemplateDirective, i2__namespace.PartialParamHandlerDirective, i2__namespace.PartialContainerDirective, i2__namespace.TextContentDirective], encapsulation: 2 });
|
|
2206
2177
|
(function () {
|
|
2207
2178
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RadiosetComponent, [{
|
|
2208
2179
|
type: i0.Component,
|
|
2209
2180
|
args: [{ selector: '[wmRadioset]', exportAs: 'wmRadioset', providers: [
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2181
|
+
i2.provideAs(RadiosetComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2182
|
+
i2.provideAs(RadiosetComponent, i1$1.NG_VALIDATORS, true),
|
|
2183
|
+
i2.provideAsWidgetRef(RadiosetComponent)
|
|
2213
2184
|
], 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" }]
|
|
2214
|
-
}], function () {
|
|
2215
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2216
|
-
type: i0.Optional
|
|
2217
|
-
}] }];
|
|
2218
|
-
}, null);
|
|
2185
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
2219
2186
|
})();
|
|
2220
2187
|
|
|
2221
2188
|
const selectProps = new Map([
|
|
2222
|
-
['autofocus',
|
|
2223
|
-
['class', Object.assign({ value: '' },
|
|
2224
|
-
['compareby',
|
|
2225
|
-
['datafield',
|
|
2226
|
-
['dataset',
|
|
2227
|
-
['datavaluesource',
|
|
2228
|
-
['datavalue',
|
|
2229
|
-
['dateformat',
|
|
2230
|
-
['disabled',
|
|
2231
|
-
['displayexpression',
|
|
2232
|
-
['displayfield',
|
|
2233
|
-
['displayValue',
|
|
2234
|
-
['groupby',
|
|
2235
|
-
['hint',
|
|
2236
|
-
['match',
|
|
2237
|
-
['multiple', Object.assign({ value: false },
|
|
2238
|
-
['name',
|
|
2239
|
-
['orderby',
|
|
2240
|
-
['placeholder',
|
|
2241
|
-
['readonly',
|
|
2242
|
-
['required',
|
|
2243
|
-
['shortcutkey',
|
|
2244
|
-
['show', Object.assign({ value: true },
|
|
2245
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2246
|
-
['usekeys',
|
|
2189
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2190
|
+
['class', Object.assign({ value: '' }, i2.PROP_STRING)],
|
|
2191
|
+
['compareby', i2.PROP_STRING],
|
|
2192
|
+
['datafield', i2.PROP_STRING],
|
|
2193
|
+
['dataset', i2.PROP_ANY],
|
|
2194
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2195
|
+
['datavalue', i2.PROP_STRING],
|
|
2196
|
+
['dateformat', i2.PROP_STRING],
|
|
2197
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2198
|
+
['displayexpression', i2.PROP_STRING],
|
|
2199
|
+
['displayfield', i2.PROP_STRING],
|
|
2200
|
+
['displayValue', i2.PROP_STRING],
|
|
2201
|
+
['groupby', i2.PROP_STRING],
|
|
2202
|
+
['hint', i2.PROP_STRING],
|
|
2203
|
+
['match', i2.PROP_STRING],
|
|
2204
|
+
['multiple', Object.assign({ value: false }, i2.PROP_BOOLEAN)],
|
|
2205
|
+
['name', i2.PROP_STRING],
|
|
2206
|
+
['orderby', i2.PROP_STRING],
|
|
2207
|
+
['placeholder', i2.PROP_STRING],
|
|
2208
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2209
|
+
['required', i2.PROP_BOOLEAN],
|
|
2210
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2211
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2212
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2213
|
+
['usekeys', i2.PROP_BOOLEAN]
|
|
2247
2214
|
]);
|
|
2248
2215
|
const registerProps$7 = () => {
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2216
|
+
i2.register('wm-select', selectProps);
|
|
2217
|
+
i2.registerFormWidget(i1$2.FormWidgetType.SELECT, new Map(selectProps));
|
|
2218
|
+
i2.registerFormWidget(i1$2.FormWidgetType.TYPEAHEAD, new Map(selectProps));
|
|
2252
2219
|
};
|
|
2253
2220
|
|
|
2254
2221
|
const _c0$7 = ["select"];
|
|
@@ -2311,18 +2278,17 @@
|
|
|
2311
2278
|
const WIDGET_CONFIG$7 = { widgetType: 'wm-select', hostClass: 'app-select-wrapper' };
|
|
2312
2279
|
class SelectComponent extends DatasetAwareFormComponent {
|
|
2313
2280
|
set datasource(ds) {
|
|
2314
|
-
if (ds && ds.execute && ds.execute(i1.DataSource.Operation.IS_BOUND_TO_LOCALE)) {
|
|
2315
|
-
this.datavalue = ds.execute(i1.DataSource.Operation.GET_DEFAULT_LOCALE);
|
|
2281
|
+
if (ds && ds.execute && ds.execute(i1$2.DataSource.Operation.IS_BOUND_TO_LOCALE)) {
|
|
2282
|
+
this.datavalue = ds.execute(i1$2.DataSource.Operation.GET_DEFAULT_LOCALE);
|
|
2316
2283
|
}
|
|
2317
2284
|
}
|
|
2318
|
-
constructor(inj
|
|
2319
|
-
super(inj, WIDGET_CONFIG$7
|
|
2320
|
-
this._viewParent = _viewParent;
|
|
2285
|
+
constructor(inj) {
|
|
2286
|
+
super(inj, WIDGET_CONFIG$7);
|
|
2321
2287
|
this.acceptsArray = true;
|
|
2322
2288
|
}
|
|
2323
2289
|
ngAfterViewInit() {
|
|
2324
2290
|
super.ngAfterViewInit();
|
|
2325
|
-
|
|
2291
|
+
i2.styler(this.selectEl.nativeElement, this);
|
|
2326
2292
|
}
|
|
2327
2293
|
// Change event is registered from the template, Prevent the framework from registering one more event
|
|
2328
2294
|
handleEvent(node, eventName, eventCallback, locals) {
|
|
@@ -2354,7 +2320,7 @@
|
|
|
2354
2320
|
return;
|
|
2355
2321
|
}
|
|
2356
2322
|
else if (key === 'readonly') {
|
|
2357
|
-
(nv === true) ? i1.setAttr(this.selectEl.nativeElement, 'readonly', 'readonly') : i1.removeAttr(this.selectEl.nativeElement, 'readonly');
|
|
2323
|
+
(nv === true) ? i1$2.setAttr(this.selectEl.nativeElement, 'readonly', 'readonly') : i1$2.removeAttr(this.selectEl.nativeElement, 'readonly');
|
|
2358
2324
|
}
|
|
2359
2325
|
super.onPropertyChange(key, nv, ov);
|
|
2360
2326
|
}
|
|
@@ -2378,7 +2344,7 @@
|
|
|
2378
2344
|
}
|
|
2379
2345
|
}
|
|
2380
2346
|
SelectComponent.initializeProps = registerProps$7();
|
|
2381
|
-
SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2347
|
+
SelectComponent.ɵfac = function SelectComponent_Factory(t) { return new (t || SelectComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2382
2348
|
SelectComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SelectComponent, selectors: [["wm-select"]], viewQuery: function SelectComponent_Query(rf, ctx) {
|
|
2383
2349
|
if (rf & 1) {
|
|
2384
2350
|
i0__namespace.ɵɵviewQuery(_c0$7, 7, i0.ElementRef);
|
|
@@ -2388,9 +2354,9 @@
|
|
|
2388
2354
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.selectEl = _t.first);
|
|
2389
2355
|
}
|
|
2390
2356
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2357
|
+
i2.provideAs(SelectComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2358
|
+
i2.provideAs(SelectComponent, i1$1.NG_VALIDATORS, true),
|
|
2359
|
+
i2.provideAsWidgetRef(SelectComponent)
|
|
2394
2360
|
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["role", "listbox", "aria-haspopup", "true", "aria-expanded", "false", "focus-target", "", 3, "ngClass", "disabled", "required", "tabindex", "ngModel", "multiple", "autofocus", "ngModelChange", "change", "focus", "blur"], ["select", ""], ["selected", "", "value", "undefined", 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) {
|
|
2395
2361
|
if (rf & 1) {
|
|
2396
2362
|
i0__namespace.ɵɵelementStart(0, "select", 0, 1);
|
|
@@ -2410,47 +2376,43 @@
|
|
|
2410
2376
|
i0__namespace.ɵɵadvance(1);
|
|
2411
2377
|
i0__namespace.ɵɵproperty("ngIf", !ctx.groupby);
|
|
2412
2378
|
}
|
|
2413
|
-
}, dependencies: [
|
|
2379
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i1$1__namespace.NgSelectOption, i1$1__namespace.ɵNgSelectMultipleOption, i1$1__namespace.SelectMultipleControlValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.NgModel, i2__namespace.TextContentDirective], encapsulation: 2 });
|
|
2414
2380
|
(function () {
|
|
2415
2381
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SelectComponent, [{
|
|
2416
2382
|
type: i0.Component,
|
|
2417
2383
|
args: [{ selector: 'wm-select', providers: [
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2384
|
+
i2.provideAs(SelectComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2385
|
+
i2.provideAs(SelectComponent, i1$1.NG_VALIDATORS, true),
|
|
2386
|
+
i2.provideAsWidgetRef(SelectComponent)
|
|
2421
2387
|
], 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 [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" }]
|
|
2422
|
-
}], function () {
|
|
2423
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2424
|
-
type: i0.Optional
|
|
2425
|
-
}] }];
|
|
2426
|
-
}, { selectEl: [{
|
|
2388
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { selectEl: [{
|
|
2427
2389
|
type: i0.ViewChild,
|
|
2428
2390
|
args: ['select', { static: true, read: i0.ElementRef }]
|
|
2429
2391
|
}] });
|
|
2430
2392
|
})();
|
|
2431
2393
|
|
|
2432
2394
|
const switchProps = new Map([
|
|
2433
|
-
['class',
|
|
2434
|
-
['compareby',
|
|
2435
|
-
['datafield',
|
|
2436
|
-
['dataset', Object.assign({ value: 'yes, no, maybe' },
|
|
2437
|
-
['datavaluesource',
|
|
2438
|
-
['datavalue',
|
|
2439
|
-
['disabled',
|
|
2440
|
-
['displayexpression',
|
|
2441
|
-
['displayfield',
|
|
2442
|
-
['hint',
|
|
2443
|
-
['iconclass',
|
|
2444
|
-
['name',
|
|
2445
|
-
['orderby',
|
|
2446
|
-
['required',
|
|
2447
|
-
['show', Object.assign({ value: true },
|
|
2448
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2395
|
+
['class', i2.PROP_STRING],
|
|
2396
|
+
['compareby', i2.PROP_STRING],
|
|
2397
|
+
['datafield', i2.PROP_STRING],
|
|
2398
|
+
['dataset', Object.assign({ value: 'yes, no, maybe' }, i2.PROP_ANY)],
|
|
2399
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2400
|
+
['datavalue', i2.PROP_STRING],
|
|
2401
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2402
|
+
['displayexpression', i2.PROP_STRING],
|
|
2403
|
+
['displayfield', i2.PROP_STRING],
|
|
2404
|
+
['hint', i2.PROP_STRING],
|
|
2405
|
+
['iconclass', i2.PROP_STRING],
|
|
2406
|
+
['name', i2.PROP_STRING],
|
|
2407
|
+
['orderby', i2.PROP_STRING],
|
|
2408
|
+
['required', i2.PROP_BOOLEAN],
|
|
2409
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2410
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)]
|
|
2449
2411
|
]);
|
|
2450
2412
|
const registerProps$6 = () => {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2413
|
+
i2.register('wm-switch', switchProps);
|
|
2414
|
+
i2.registerFormWidget(i1$2.FormWidgetType.SWITCH, new Map(switchProps));
|
|
2415
|
+
i2.registerFormWidget(i1$2.FormWidgetType.TOGGLE, new Map(switchProps));
|
|
2454
2416
|
};
|
|
2455
2417
|
|
|
2456
2418
|
const _c0$6 = ["wmSwitch", ""];
|
|
@@ -2497,16 +2459,15 @@
|
|
|
2497
2459
|
const DEFAULT_CLS = 'app-switch';
|
|
2498
2460
|
const WIDGET_CONFIG$6 = { widgetType: 'wm-switch', hostClass: DEFAULT_CLS };
|
|
2499
2461
|
class SwitchComponent extends DatasetAwareFormComponent {
|
|
2500
|
-
constructor(inj
|
|
2501
|
-
super(inj, WIDGET_CONFIG$6
|
|
2502
|
-
this._viewParent = _viewParent;
|
|
2462
|
+
constructor(inj) {
|
|
2463
|
+
super(inj, WIDGET_CONFIG$6);
|
|
2503
2464
|
this.options = [];
|
|
2504
|
-
this._debounceSetSelectedValue = i1.debounce((val) => {
|
|
2465
|
+
this._debounceSetSelectedValue = i1$2.debounce((val) => {
|
|
2505
2466
|
this.setSelectedValue();
|
|
2506
2467
|
this.updateHighlighter(val);
|
|
2507
2468
|
// only for default value trigger app digest to apply the selectedItem
|
|
2508
2469
|
if (val) {
|
|
2509
|
-
i1.$appDigest();
|
|
2470
|
+
i1$2.$appDigest();
|
|
2510
2471
|
}
|
|
2511
2472
|
}, 200);
|
|
2512
2473
|
const datasetSubscription = this.dataset$.subscribe(() => this.updateSwitchOptions());
|
|
@@ -2518,11 +2479,11 @@
|
|
|
2518
2479
|
}
|
|
2519
2480
|
ngAfterViewInit() {
|
|
2520
2481
|
super.ngAfterViewInit();
|
|
2521
|
-
|
|
2482
|
+
i2.styler(this.nativeElement, this);
|
|
2522
2483
|
}
|
|
2523
2484
|
onStyleChange(key, nv, ov) {
|
|
2524
2485
|
if (key === 'height') {
|
|
2525
|
-
i1.setCSS(this.nativeElement, 'overflow', nv ? 'auto' : '');
|
|
2486
|
+
i1$2.setCSS(this.nativeElement, 'overflow', nv ? 'auto' : '');
|
|
2526
2487
|
}
|
|
2527
2488
|
else {
|
|
2528
2489
|
super.onStyleChange(key, nv, ov);
|
|
@@ -2530,7 +2491,7 @@
|
|
|
2530
2491
|
}
|
|
2531
2492
|
// This function sets the selectedItem by either using compareby fields or selected flag on datasetItems.
|
|
2532
2493
|
setSelectedValue() {
|
|
2533
|
-
if (i1.isDefined(this.datavalue) || i1.isDefined(this.toBeProcessedDatavalue)) {
|
|
2494
|
+
if (i1$2.isDefined(this.datavalue) || i1$2.isDefined(this.toBeProcessedDatavalue)) {
|
|
2534
2495
|
this.selectedItem = _.find(this.datasetItems, { selected: true });
|
|
2535
2496
|
return;
|
|
2536
2497
|
}
|
|
@@ -2542,7 +2503,7 @@
|
|
|
2542
2503
|
updateSwitchOptions() {
|
|
2543
2504
|
if (this.datasetItems.length) {
|
|
2544
2505
|
this.btnwidth = (100 / this.datasetItems.length);
|
|
2545
|
-
i1.setCSS(this.nativeElement.querySelector('.app-switch-overlay'), 'width', this.btnwidth + '%');
|
|
2506
|
+
i1$2.setCSS(this.nativeElement.querySelector('.app-switch-overlay'), 'width', this.btnwidth + '%');
|
|
2546
2507
|
}
|
|
2547
2508
|
this._debounceSetSelectedValue(true);
|
|
2548
2509
|
}
|
|
@@ -2592,10 +2553,10 @@
|
|
|
2592
2553
|
this.updateHighlighter();
|
|
2593
2554
|
// invoke on datavalue change.
|
|
2594
2555
|
this.invokeOnChange(this.datavalue, $event || {}, true);
|
|
2595
|
-
i1.$appDigest();
|
|
2556
|
+
i1$2.$appDigest();
|
|
2596
2557
|
}
|
|
2597
2558
|
onPropertyChange(key, nv, ov) {
|
|
2598
|
-
if (key === 'disabled' && !i1.toBoolean(nv)) {
|
|
2559
|
+
if (key === 'disabled' && !i1$2.toBoolean(nv)) {
|
|
2599
2560
|
this.nativeElement.removeAttribute(key);
|
|
2600
2561
|
}
|
|
2601
2562
|
else {
|
|
@@ -2604,10 +2565,10 @@
|
|
|
2604
2565
|
}
|
|
2605
2566
|
}
|
|
2606
2567
|
SwitchComponent.initializeProps = registerProps$6();
|
|
2607
|
-
SwitchComponent.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2568
|
+
SwitchComponent.ɵfac = function SwitchComponent_Factory(t) { return new (t || SwitchComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2608
2569
|
SwitchComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: SwitchComponent, selectors: [["", "wmSwitch", ""]], exportAs: ["wmSwitch"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
2609
|
-
|
|
2610
|
-
|
|
2570
|
+
i2.provideAs(SwitchComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2571
|
+
i2.provideAsWidgetRef(SwitchComponent)
|
|
2611
2572
|
]), i0__namespace.ɵɵ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, "name", "ngClass", "click"], ["aria-hidden", "true", 3, "ngClass", 4, "ngIf"], [1, "caption", 3, "textContent"], ["aria-hidden", "true", 3, "ngClass"]], template: function SwitchComponent_Template(rf, ctx) {
|
|
2612
2573
|
if (rf & 1) {
|
|
2613
2574
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -2631,45 +2592,41 @@
|
|
|
2631
2592
|
i0__namespace.ɵɵadvance(1);
|
|
2632
2593
|
i0__namespace.ɵɵproperty("name", ctx.name)("disabled", ctx.disabled)("value", ctx.modelByKey)("required", ctx.required);
|
|
2633
2594
|
}
|
|
2634
|
-
}, dependencies: [
|
|
2595
|
+
}, dependencies: [i1__namespace.NgClass, i1__namespace.NgForOf, i1__namespace.NgIf, i2__namespace.TextContentDirective], encapsulation: 2 });
|
|
2635
2596
|
(function () {
|
|
2636
2597
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(SwitchComponent, [{
|
|
2637
2598
|
type: i0.Component,
|
|
2638
2599
|
args: [{ selector: '[wmSwitch]', providers: [
|
|
2639
|
-
|
|
2640
|
-
|
|
2600
|
+
i2.provideAs(SwitchComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2601
|
+
i2.provideAsWidgetRef(SwitchComponent)
|
|
2641
2602
|
], 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" }]
|
|
2642
|
-
}], function () {
|
|
2643
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2644
|
-
type: i0.Optional
|
|
2645
|
-
}] }];
|
|
2646
|
-
}, null);
|
|
2603
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, null);
|
|
2647
2604
|
})();
|
|
2648
2605
|
|
|
2649
2606
|
const inputCalendarTypeProps = new Map([
|
|
2650
|
-
['autocomplete', Object.assign({ value: true },
|
|
2651
|
-
['autotrim', Object.assign({ value: true },
|
|
2652
|
-
['autofocus',
|
|
2653
|
-
['class',
|
|
2654
|
-
['datasource',
|
|
2655
|
-
['datavalue',
|
|
2656
|
-
['disabled',
|
|
2657
|
-
['hint',
|
|
2658
|
-
['maxvalue',
|
|
2659
|
-
['minvalue',
|
|
2660
|
-
['name',
|
|
2661
|
-
['placeholder', Object.assign({ value: 'Enter text' },
|
|
2662
|
-
['readonly',
|
|
2663
|
-
['required',
|
|
2664
|
-
['shortcutkey',
|
|
2665
|
-
['show', Object.assign({ value: true },
|
|
2666
|
-
['step',
|
|
2667
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2668
|
-
['type',
|
|
2669
|
-
['updateon',
|
|
2607
|
+
['autocomplete', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2608
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2609
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2610
|
+
['class', i2.PROP_STRING],
|
|
2611
|
+
['datasource', i2.PROP_ANY],
|
|
2612
|
+
['datavalue', i2.PROP_STRING],
|
|
2613
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2614
|
+
['hint', i2.PROP_STRING],
|
|
2615
|
+
['maxvalue', i2.PROP_NUMBER],
|
|
2616
|
+
['minvalue', i2.PROP_NUMBER],
|
|
2617
|
+
['name', i2.PROP_STRING],
|
|
2618
|
+
['placeholder', Object.assign({ value: 'Enter text' }, i2.PROP_STRING)],
|
|
2619
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2620
|
+
['required', i2.PROP_BOOLEAN],
|
|
2621
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2622
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2623
|
+
['step', i2.PROP_NUMBER],
|
|
2624
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2625
|
+
['type', i2.PROP_STRING],
|
|
2626
|
+
['updateon', i2.PROP_STRING]
|
|
2670
2627
|
]);
|
|
2671
2628
|
const registerProps$5 = () => {
|
|
2672
|
-
|
|
2629
|
+
i2.register('wm-input-calendar', inputCalendarTypeProps);
|
|
2673
2630
|
};
|
|
2674
2631
|
|
|
2675
2632
|
const _c0$5 = ["input"];
|
|
@@ -2679,17 +2636,16 @@
|
|
|
2679
2636
|
hostClass: 'app-input-wrapper'
|
|
2680
2637
|
};
|
|
2681
2638
|
class InputCalendarComponent extends BaseInput {
|
|
2682
|
-
constructor(inj
|
|
2683
|
-
super(inj, WIDGET_CONFIG$5
|
|
2684
|
-
this._viewParent = _viewParent;
|
|
2639
|
+
constructor(inj) {
|
|
2640
|
+
super(inj, WIDGET_CONFIG$5);
|
|
2685
2641
|
}
|
|
2686
2642
|
}
|
|
2687
2643
|
InputCalendarComponent.initializeProps = registerProps$5();
|
|
2688
|
-
InputCalendarComponent.ɵfac = function InputCalendarComponent_Factory(t) { return new (t || InputCalendarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2644
|
+
InputCalendarComponent.ɵfac = function InputCalendarComponent_Factory(t) { return new (t || InputCalendarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2689
2645
|
InputCalendarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
|
|
2690
2646
|
if (rf & 1) {
|
|
2691
2647
|
i0__namespace.ɵɵviewQuery(_c0$5, 7);
|
|
2692
|
-
i0__namespace.ɵɵviewQuery(
|
|
2648
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
2693
2649
|
}
|
|
2694
2650
|
if (rf & 2) {
|
|
2695
2651
|
let _t;
|
|
@@ -2697,9 +2653,9 @@
|
|
|
2697
2653
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2698
2654
|
}
|
|
2699
2655
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2656
|
+
i2.provideAs(InputCalendarComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2657
|
+
i2.provideAs(InputCalendarComponent, i1$1.NG_VALIDATORS, true),
|
|
2658
|
+
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2703
2659
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$4, decls: 2, vars: 15, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "min", "max", "step", "autofocus", "autocomplete", "ngModelChange", "blur"], ["input", ""]], template: function InputCalendarComponent_Template(rf, ctx) {
|
|
2704
2660
|
if (rf & 1) {
|
|
2705
2661
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2710,49 +2666,45 @@
|
|
|
2710
2666
|
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("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");
|
|
2711
2667
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint || ctx.type + " field");
|
|
2712
2668
|
}
|
|
2713
|
-
}, dependencies: [
|
|
2669
|
+
}, dependencies: [i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
2714
2670
|
(function () {
|
|
2715
2671
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputCalendarComponent, [{
|
|
2716
2672
|
type: i0.Component,
|
|
2717
2673
|
args: [{ selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2674
|
+
i2.provideAs(InputCalendarComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2675
|
+
i2.provideAs(InputCalendarComponent, i1$1.NG_VALIDATORS, true),
|
|
2676
|
+
i2.provideAsWidgetRef(InputCalendarComponent)
|
|
2721
2677
|
], 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 #input>\n" }]
|
|
2722
|
-
}], function () {
|
|
2723
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2724
|
-
type: i0.Optional
|
|
2725
|
-
}] }];
|
|
2726
|
-
}, { inputEl: [{
|
|
2678
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2727
2679
|
type: i0.ViewChild,
|
|
2728
2680
|
args: ['input', { static: true }]
|
|
2729
2681
|
}], ngModel: [{
|
|
2730
2682
|
type: i0.ViewChild,
|
|
2731
|
-
args: [
|
|
2683
|
+
args: [i1$1.NgModel]
|
|
2732
2684
|
}] });
|
|
2733
2685
|
})();
|
|
2734
2686
|
|
|
2735
2687
|
const inputColorTypeProps = new Map([
|
|
2736
|
-
['autocomplete', Object.assign({ value: true },
|
|
2737
|
-
['autofocus',
|
|
2738
|
-
['autotrim', Object.assign({ value: true },
|
|
2739
|
-
['class',
|
|
2740
|
-
['datavaluesource',
|
|
2741
|
-
['datavalue',
|
|
2742
|
-
['disabled',
|
|
2743
|
-
['hint',
|
|
2744
|
-
['name',
|
|
2745
|
-
['placeholder', Object.assign({ value: 'Enter text' },
|
|
2746
|
-
['readonly',
|
|
2747
|
-
['required',
|
|
2748
|
-
['shortcutkey',
|
|
2749
|
-
['show', Object.assign({ value: true },
|
|
2750
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2751
|
-
['type', Object.assign({ value: 'color' },
|
|
2752
|
-
['updateon',
|
|
2688
|
+
['autocomplete', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2689
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2690
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2691
|
+
['class', i2.PROP_STRING],
|
|
2692
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2693
|
+
['datavalue', i2.PROP_STRING],
|
|
2694
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2695
|
+
['hint', i2.PROP_STRING],
|
|
2696
|
+
['name', i2.PROP_STRING],
|
|
2697
|
+
['placeholder', Object.assign({ value: 'Enter text' }, i2.PROP_STRING)],
|
|
2698
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2699
|
+
['required', i2.PROP_BOOLEAN],
|
|
2700
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2701
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2702
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2703
|
+
['type', Object.assign({ value: 'color' }, i2.PROP_STRING)],
|
|
2704
|
+
['updateon', i2.PROP_STRING]
|
|
2753
2705
|
]);
|
|
2754
2706
|
const registerProps$4 = () => {
|
|
2755
|
-
|
|
2707
|
+
i2.register('wm-input-color', inputColorTypeProps);
|
|
2756
2708
|
};
|
|
2757
2709
|
|
|
2758
2710
|
const _c0$4 = ["input"];
|
|
@@ -2762,17 +2714,16 @@
|
|
|
2762
2714
|
hostClass: 'app-input-wrapper'
|
|
2763
2715
|
};
|
|
2764
2716
|
class InputColorComponent extends BaseInput {
|
|
2765
|
-
constructor(inj
|
|
2766
|
-
super(inj, WIDGET_CONFIG$4
|
|
2767
|
-
this._viewParent = _viewParent;
|
|
2717
|
+
constructor(inj) {
|
|
2718
|
+
super(inj, WIDGET_CONFIG$4);
|
|
2768
2719
|
}
|
|
2769
2720
|
}
|
|
2770
2721
|
InputColorComponent.initializeProps = registerProps$4();
|
|
2771
|
-
InputColorComponent.ɵfac = function InputColorComponent_Factory(t) { return new (t || InputColorComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2722
|
+
InputColorComponent.ɵfac = function InputColorComponent_Factory(t) { return new (t || InputColorComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2772
2723
|
InputColorComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputColorComponent, selectors: [["wm-input", "type", "color"]], viewQuery: function InputColorComponent_Query(rf, ctx) {
|
|
2773
2724
|
if (rf & 1) {
|
|
2774
2725
|
i0__namespace.ɵɵviewQuery(_c0$4, 7);
|
|
2775
|
-
i0__namespace.ɵɵviewQuery(
|
|
2726
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
2776
2727
|
}
|
|
2777
2728
|
if (rf & 2) {
|
|
2778
2729
|
let _t;
|
|
@@ -2780,9 +2731,9 @@
|
|
|
2780
2731
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2781
2732
|
}
|
|
2782
2733
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2734
|
+
i2.provideAs(InputColorComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2735
|
+
i2.provideAs(InputColorComponent, i1$1.NG_VALIDATORS, true),
|
|
2736
|
+
i2.provideAsWidgetRef(InputColorComponent)
|
|
2786
2737
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$3, decls: 2, vars: 12, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "readonly", "required", "disabled", "maxlength", "autofocus", "ngModelChange", "blur"], ["input", ""]], template: function InputColorComponent_Template(rf, ctx) {
|
|
2787
2738
|
if (rf & 1) {
|
|
2788
2739
|
i0__namespace.ɵɵelementStart(0, "input", 0, 1);
|
|
@@ -2793,51 +2744,47 @@
|
|
|
2793
2744
|
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("autofocus", ctx.autofocus);
|
|
2794
2745
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2795
2746
|
}
|
|
2796
|
-
}, dependencies: [
|
|
2747
|
+
}, dependencies: [i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.MaxLengthValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
2797
2748
|
(function () {
|
|
2798
2749
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputColorComponent, [{
|
|
2799
2750
|
type: i0.Component,
|
|
2800
2751
|
args: [{ selector: 'wm-input[type="color"]', providers: [
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2752
|
+
i2.provideAs(InputColorComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2753
|
+
i2.provideAs(InputColorComponent, i1$1.NG_VALIDATORS, true),
|
|
2754
|
+
i2.provideAsWidgetRef(InputColorComponent)
|
|
2804
2755
|
], 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 (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
2805
|
-
}], function () {
|
|
2806
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2807
|
-
type: i0.Optional
|
|
2808
|
-
}] }];
|
|
2809
|
-
}, { inputEl: [{
|
|
2756
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2810
2757
|
type: i0.ViewChild,
|
|
2811
2758
|
args: ['input', { static: true }]
|
|
2812
2759
|
}], ngModel: [{
|
|
2813
2760
|
type: i0.ViewChild,
|
|
2814
|
-
args: [
|
|
2761
|
+
args: [i1$1.NgModel]
|
|
2815
2762
|
}] });
|
|
2816
2763
|
})();
|
|
2817
2764
|
|
|
2818
2765
|
const inputEmailTypeProps = new Map([
|
|
2819
|
-
['autocomplete', Object.assign({ value: true },
|
|
2820
|
-
['autofocus',
|
|
2821
|
-
['autotrim', Object.assign({ value: true },
|
|
2822
|
-
['class',
|
|
2823
|
-
['datavaluesource',
|
|
2824
|
-
['datavalue',
|
|
2825
|
-
['disabled',
|
|
2826
|
-
['hint',
|
|
2827
|
-
['maxchars',
|
|
2828
|
-
['name',
|
|
2829
|
-
['placeholder', Object.assign({ value: 'Enter text' },
|
|
2830
|
-
['readonly',
|
|
2831
|
-
['regexp',
|
|
2832
|
-
['required',
|
|
2833
|
-
['shortcutkey',
|
|
2834
|
-
['show', Object.assign({ value: true },
|
|
2835
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2836
|
-
['type', Object.assign({ value: 'email' },
|
|
2837
|
-
['updateon',
|
|
2766
|
+
['autocomplete', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2767
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2768
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2769
|
+
['class', i2.PROP_STRING],
|
|
2770
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2771
|
+
['datavalue', i2.PROP_STRING],
|
|
2772
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2773
|
+
['hint', i2.PROP_STRING],
|
|
2774
|
+
['maxchars', i2.PROP_NUMBER],
|
|
2775
|
+
['name', i2.PROP_STRING],
|
|
2776
|
+
['placeholder', Object.assign({ value: 'Enter text' }, i2.PROP_STRING)],
|
|
2777
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2778
|
+
['regexp', i2.PROP_STRING],
|
|
2779
|
+
['required', i2.PROP_BOOLEAN],
|
|
2780
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2781
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2782
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2783
|
+
['type', Object.assign({ value: 'email' }, i2.PROP_STRING)],
|
|
2784
|
+
['updateon', i2.PROP_STRING]
|
|
2838
2785
|
]);
|
|
2839
2786
|
const registerProps$3 = () => {
|
|
2840
|
-
|
|
2787
|
+
i2.register('wm-input-email', inputEmailTypeProps);
|
|
2841
2788
|
};
|
|
2842
2789
|
|
|
2843
2790
|
const _c0$3 = ["input"];
|
|
@@ -2847,17 +2794,16 @@
|
|
|
2847
2794
|
hostClass: 'app-input-wrapper'
|
|
2848
2795
|
};
|
|
2849
2796
|
class InputEmailComponent extends BaseInput {
|
|
2850
|
-
constructor(inj
|
|
2851
|
-
super(inj, WIDGET_CONFIG$3
|
|
2852
|
-
this._viewParent = _viewParent;
|
|
2797
|
+
constructor(inj) {
|
|
2798
|
+
super(inj, WIDGET_CONFIG$3);
|
|
2853
2799
|
}
|
|
2854
2800
|
}
|
|
2855
2801
|
InputEmailComponent.initializeProps = registerProps$3();
|
|
2856
|
-
InputEmailComponent.ɵfac = function InputEmailComponent_Factory(t) { return new (t || InputEmailComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2802
|
+
InputEmailComponent.ɵfac = function InputEmailComponent_Factory(t) { return new (t || InputEmailComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2857
2803
|
InputEmailComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputEmailComponent, selectors: [["wm-input", "type", "email"]], viewQuery: function InputEmailComponent_Query(rf, ctx) {
|
|
2858
2804
|
if (rf & 1) {
|
|
2859
2805
|
i0__namespace.ɵɵviewQuery(_c0$3, 7);
|
|
2860
|
-
i0__namespace.ɵɵviewQuery(
|
|
2806
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
2861
2807
|
}
|
|
2862
2808
|
if (rf & 2) {
|
|
2863
2809
|
let _t;
|
|
@@ -2865,9 +2811,9 @@
|
|
|
2865
2811
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2866
2812
|
}
|
|
2867
2813
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2814
|
+
i2.provideAs(InputEmailComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2815
|
+
i2.provideAs(InputEmailComponent, i1$1.NG_VALIDATORS, true),
|
|
2816
|
+
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2871
2817
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$2, decls: 2, vars: 15, consts: [["focus-target", "", "role", "textbox", "email", "", 1, "form-control", "app-textbox", 3, "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "autocomplete", "ngModelChange", "blur", "keyup.enter"], ["input", ""]], template: function InputEmailComponent_Template(rf, ctx) {
|
|
2872
2818
|
if (rf & 1) {
|
|
2873
2819
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -2879,54 +2825,50 @@
|
|
|
2879
2825
|
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("ngModelOptions", ctx.ngModelOptions)("readonly", ctx.readonly)("required", ctx.required)("disabled", ctx.disabled)("maxlength", ctx.maxchars)("pattern", ctx.regexp)("autofocus", ctx.autofocus)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2880
2826
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2881
2827
|
}
|
|
2882
|
-
}, dependencies: [
|
|
2828
|
+
}, dependencies: [i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.MaxLengthValidator, i1$1__namespace.PatternValidator, i1$1__namespace.EmailValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
2883
2829
|
(function () {
|
|
2884
2830
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputEmailComponent, [{
|
|
2885
2831
|
type: i0.Component,
|
|
2886
2832
|
args: [{ selector: 'wm-input[type="email"]', providers: [
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2833
|
+
i2.provideAs(InputEmailComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2834
|
+
i2.provideAs(InputEmailComponent, i1$1.NG_VALIDATORS, true),
|
|
2835
|
+
i2.provideAsWidgetRef(InputEmailComponent)
|
|
2890
2836
|
], 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 (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
2891
|
-
}], function () {
|
|
2892
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2893
|
-
type: i0.Optional
|
|
2894
|
-
}] }];
|
|
2895
|
-
}, { inputEl: [{
|
|
2837
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2896
2838
|
type: i0.ViewChild,
|
|
2897
2839
|
args: ['input', { static: true }]
|
|
2898
2840
|
}], ngModel: [{
|
|
2899
2841
|
type: i0.ViewChild,
|
|
2900
|
-
args: [
|
|
2842
|
+
args: [i1$1.NgModel]
|
|
2901
2843
|
}] });
|
|
2902
2844
|
})();
|
|
2903
2845
|
|
|
2904
2846
|
const inputNumberTypeProps = new Map([
|
|
2905
|
-
['autocomplete', Object.assign({ value: true },
|
|
2906
|
-
['autofocus',
|
|
2907
|
-
['autotrim', Object.assign({ value: true },
|
|
2908
|
-
['class',
|
|
2909
|
-
['datavaluesource',
|
|
2910
|
-
['datavalue',
|
|
2911
|
-
['disabled',
|
|
2912
|
-
['hint',
|
|
2913
|
-
['maxchars',
|
|
2914
|
-
['maxvalue',
|
|
2915
|
-
['minvalue',
|
|
2916
|
-
['name',
|
|
2917
|
-
['placeholder', Object.assign({ value: 'Enter text' },
|
|
2918
|
-
['readonly',
|
|
2919
|
-
['regexp',
|
|
2920
|
-
['required',
|
|
2921
|
-
['shortcutkey',
|
|
2922
|
-
['show', Object.assign({ value: true },
|
|
2923
|
-
['step',
|
|
2924
|
-
['tabindex', Object.assign({ value: 0 },
|
|
2925
|
-
['type', Object.assign({ value: 'number' },
|
|
2926
|
-
['updateon',
|
|
2847
|
+
['autocomplete', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2848
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2849
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2850
|
+
['class', i2.PROP_STRING],
|
|
2851
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2852
|
+
['datavalue', i2.PROP_STRING],
|
|
2853
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2854
|
+
['hint', i2.PROP_STRING],
|
|
2855
|
+
['maxchars', i2.PROP_NUMBER],
|
|
2856
|
+
['maxvalue', i2.PROP_NUMBER],
|
|
2857
|
+
['minvalue', i2.PROP_NUMBER],
|
|
2858
|
+
['name', i2.PROP_STRING],
|
|
2859
|
+
['placeholder', Object.assign({ value: 'Enter text' }, i2.PROP_STRING)],
|
|
2860
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2861
|
+
['regexp', i2.PROP_STRING],
|
|
2862
|
+
['required', i2.PROP_BOOLEAN],
|
|
2863
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2864
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2865
|
+
['step', i2.PROP_NUMBER],
|
|
2866
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2867
|
+
['type', Object.assign({ value: 'number' }, i2.PROP_STRING)],
|
|
2868
|
+
['updateon', i2.PROP_STRING]
|
|
2927
2869
|
]);
|
|
2928
2870
|
const registerProps$2 = () => {
|
|
2929
|
-
|
|
2871
|
+
i2.register('wm-input-number', inputNumberTypeProps);
|
|
2930
2872
|
};
|
|
2931
2873
|
|
|
2932
2874
|
const _c0$2 = ["input"];
|
|
@@ -2937,9 +2879,8 @@
|
|
|
2937
2879
|
hostClass: 'app-input-wrapper'
|
|
2938
2880
|
};
|
|
2939
2881
|
class InputNumberComponent extends BaseInput {
|
|
2940
|
-
constructor(inj
|
|
2941
|
-
super(inj, WIDGET_CONFIG$2
|
|
2942
|
-
this._viewParent = _viewParent;
|
|
2882
|
+
constructor(inj) {
|
|
2883
|
+
super(inj, WIDGET_CONFIG$2);
|
|
2943
2884
|
}
|
|
2944
2885
|
onArrowPress($event) {
|
|
2945
2886
|
if (this.step === 0) {
|
|
@@ -2953,11 +2894,11 @@
|
|
|
2953
2894
|
}
|
|
2954
2895
|
}
|
|
2955
2896
|
InputNumberComponent.initializeProps = registerProps$2();
|
|
2956
|
-
InputNumberComponent.ɵfac = function InputNumberComponent_Factory(t) { return new (t || InputNumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
2897
|
+
InputNumberComponent.ɵfac = function InputNumberComponent_Factory(t) { return new (t || InputNumberComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
2957
2898
|
InputNumberComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: InputNumberComponent, selectors: [["wm-input", "type", "number"]], viewQuery: function InputNumberComponent_Query(rf, ctx) {
|
|
2958
2899
|
if (rf & 1) {
|
|
2959
2900
|
i0__namespace.ɵɵviewQuery(_c0$2, 7);
|
|
2960
|
-
i0__namespace.ɵɵviewQuery(
|
|
2901
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
2961
2902
|
}
|
|
2962
2903
|
if (rf & 2) {
|
|
2963
2904
|
let _t;
|
|
@@ -2965,9 +2906,9 @@
|
|
|
2965
2906
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
2966
2907
|
}
|
|
2967
2908
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2909
|
+
i2.provideAs(InputNumberComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2910
|
+
i2.provideAs(InputNumberComponent, i1$1.NG_VALIDATORS, true),
|
|
2911
|
+
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2971
2912
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1$1, decls: 2, vars: 20, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "ngClass", "type", "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "min", "max", "step", "autofocus", "autocomplete", "ngModelChange", "blur", "keyup.enter", "keydown.ArrowUp", "keydown.ArrowDown", "keypress"], ["input", ""]], template: function InputNumberComponent_Template(rf, ctx) {
|
|
2972
2913
|
if (rf & 1) {
|
|
2973
2914
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -2979,54 +2920,50 @@
|
|
|
2979
2920
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(18, _c2, ctx.step === 0))("type", ctx.type)("ngModel", ctx.datavalue)("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)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
2980
2921
|
i0__namespace.ɵɵattribute("name", ctx.name)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey)("aria-label", ctx.hint);
|
|
2981
2922
|
}
|
|
2982
|
-
}, dependencies: [
|
|
2923
|
+
}, dependencies: [i1__namespace.NgClass, i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.MaxLengthValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
2983
2924
|
(function () {
|
|
2984
2925
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputNumberComponent, [{
|
|
2985
2926
|
type: i0.Component,
|
|
2986
2927
|
args: [{ selector: 'wm-input[type="number"]', providers: [
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2928
|
+
i2.provideAs(InputNumberComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
2929
|
+
i2.provideAs(InputNumberComponent, i1$1.NG_VALIDATORS, true),
|
|
2930
|
+
i2.provideAsWidgetRef(InputNumberComponent)
|
|
2990
2931
|
], 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 (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" }]
|
|
2991
|
-
}], function () {
|
|
2992
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
2993
|
-
type: i0.Optional
|
|
2994
|
-
}] }];
|
|
2995
|
-
}, { inputEl: [{
|
|
2932
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
2996
2933
|
type: i0.ViewChild,
|
|
2997
2934
|
args: ['input', { static: true }]
|
|
2998
2935
|
}], ngModel: [{
|
|
2999
2936
|
type: i0.ViewChild,
|
|
3000
|
-
args: [
|
|
2937
|
+
args: [i1$1.NgModel]
|
|
3001
2938
|
}] });
|
|
3002
2939
|
})();
|
|
3003
2940
|
|
|
3004
2941
|
const inputTextTypeProps = new Map([
|
|
3005
|
-
['autocomplete', Object.assign({ value: true },
|
|
3006
|
-
['autofocus',
|
|
3007
|
-
['autotrim', Object.assign({ value: true },
|
|
3008
|
-
['class',
|
|
3009
|
-
['datavaluesource',
|
|
3010
|
-
['datavalue',
|
|
3011
|
-
['disabled',
|
|
3012
|
-
['displayformat',
|
|
3013
|
-
['hint',
|
|
3014
|
-
['maxchars',
|
|
3015
|
-
['name',
|
|
3016
|
-
['placeholder', Object.assign({ value: 'Enter text' },
|
|
3017
|
-
['readonly',
|
|
3018
|
-
['regexp',
|
|
3019
|
-
['required',
|
|
3020
|
-
['shortcutkey',
|
|
3021
|
-
['show', Object.assign({ value: true },
|
|
3022
|
-
['showdisplayformaton', Object.assign({ value: 'always' },
|
|
3023
|
-
['tabindex', Object.assign({ value: 0 },
|
|
3024
|
-
['type', Object.assign({ value: 'text' },
|
|
3025
|
-
['updateon',
|
|
2942
|
+
['autocomplete', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2943
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
2944
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2945
|
+
['class', i2.PROP_STRING],
|
|
2946
|
+
['datavaluesource', i2.PROP_ANY],
|
|
2947
|
+
['datavalue', i2.PROP_STRING],
|
|
2948
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
2949
|
+
['displayformat', i2.PROP_STRING],
|
|
2950
|
+
['hint', i2.PROP_STRING],
|
|
2951
|
+
['maxchars', i2.PROP_NUMBER],
|
|
2952
|
+
['name', i2.PROP_STRING],
|
|
2953
|
+
['placeholder', Object.assign({ value: 'Enter text' }, i2.PROP_STRING)],
|
|
2954
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
2955
|
+
['regexp', i2.PROP_STRING],
|
|
2956
|
+
['required', i2.PROP_BOOLEAN],
|
|
2957
|
+
['shortcutkey', i2.PROP_STRING],
|
|
2958
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
2959
|
+
['showdisplayformaton', Object.assign({ value: 'always' }, i2.PROP_ANY)],
|
|
2960
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
2961
|
+
['type', Object.assign({ value: 'text' }, i2.PROP_STRING)],
|
|
2962
|
+
['updateon', i2.PROP_STRING]
|
|
3026
2963
|
]);
|
|
3027
2964
|
const registerProps$1 = () => {
|
|
3028
|
-
|
|
3029
|
-
|
|
2965
|
+
i2.register('wm-input-text', inputTextTypeProps);
|
|
2966
|
+
i2.registerFormWidget(i1$2.FormWidgetType.PASSWORD, new Map(inputTextTypeProps));
|
|
3030
2967
|
const formTextProps = new Map(inputTextTypeProps);
|
|
3031
2968
|
const mergeTextProps = (typeProps) => {
|
|
3032
2969
|
typeProps.forEach((v, k) => formTextProps.set(k, v));
|
|
@@ -3035,7 +2972,7 @@
|
|
|
3035
2972
|
mergeTextProps(inputColorTypeProps);
|
|
3036
2973
|
mergeTextProps(inputEmailTypeProps);
|
|
3037
2974
|
mergeTextProps(inputNumberTypeProps);
|
|
3038
|
-
|
|
2975
|
+
i2.registerFormWidget(i1$2.FormWidgetType.TEXT, new Map(formTextProps));
|
|
3039
2976
|
};
|
|
3040
2977
|
|
|
3041
2978
|
const _c0$1 = ["input"];
|
|
@@ -3045,9 +2982,8 @@
|
|
|
3045
2982
|
hostClass: 'app-input-wrapper'
|
|
3046
2983
|
};
|
|
3047
2984
|
class InputTextComponent extends BaseInput {
|
|
3048
|
-
constructor(inj
|
|
3049
|
-
super(inj, WIDGET_CONFIG$1
|
|
3050
|
-
this._viewParent = _viewParent;
|
|
2985
|
+
constructor(inj) {
|
|
2986
|
+
super(inj, WIDGET_CONFIG$1);
|
|
3051
2987
|
this.lazy = false;
|
|
3052
2988
|
}
|
|
3053
2989
|
/* Define the property change handler. This function will be triggered when there is a change in the widget property */
|
|
@@ -3120,12 +3056,12 @@
|
|
|
3120
3056
|
}
|
|
3121
3057
|
}
|
|
3122
3058
|
InputTextComponent.initializeProps = registerProps$1();
|
|
3123
|
-
InputTextComponent.ɵfac = function InputTextComponent_Factory(t) { return new (t || InputTextComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
3059
|
+
InputTextComponent.ɵfac = function InputTextComponent_Factory(t) { return new (t || InputTextComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
3124
3060
|
InputTextComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
|
|
3125
3061
|
if (rf & 1) {
|
|
3126
3062
|
i0__namespace.ɵɵviewQuery(_c0$1, 7);
|
|
3127
|
-
i0__namespace.ɵɵviewQuery(
|
|
3128
|
-
i0__namespace.ɵɵviewQuery(_c0$1, 5,
|
|
3063
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
3064
|
+
i0__namespace.ɵɵviewQuery(_c0$1, 5, i2$1.IMaskDirective);
|
|
3129
3065
|
}
|
|
3130
3066
|
if (rf & 2) {
|
|
3131
3067
|
let _t;
|
|
@@ -3134,9 +3070,9 @@
|
|
|
3134
3070
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.imask = _t.first);
|
|
3135
3071
|
}
|
|
3136
3072
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3073
|
+
i2.provideAs(InputTextComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
3074
|
+
i2.provideAs(InputTextComponent, i1$1.NG_VALIDATORS, true),
|
|
3075
|
+
i2.provideAsWidgetRef(InputTextComponent)
|
|
3140
3076
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 17, consts: [["focus-target", "", "role", "textbox", 1, "form-control", "app-textbox", 3, "type", "ngModel", "imask", "unmask", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "pattern", "autofocus", "autocomplete", "ngModelChange", "blur", "focus", "keyup.enter"], ["input", ""]], template: function InputTextComponent_Template(rf, ctx) {
|
|
3141
3077
|
if (rf & 1) {
|
|
3142
3078
|
const _r1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -3148,54 +3084,50 @@
|
|
|
3148
3084
|
i0__namespace.ɵɵproperty("type", ctx.type)("ngModel", ctx.datavalue)("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)("autocomplete", ctx.autocomplete ? "on" : "off");
|
|
3149
3085
|
i0__namespace.ɵɵattribute("name", ctx.name)("aria-label", ctx.hint)("tabindex", ctx.tabindex)("placeholder", ctx.placeholder)("accesskey", ctx.shortcutkey);
|
|
3150
3086
|
}
|
|
3151
|
-
}, dependencies: [
|
|
3087
|
+
}, dependencies: [i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.MaxLengthValidator, i1$1__namespace.PatternValidator, i1$1__namespace.NgModel, i2$1__namespace.IMaskDirective], encapsulation: 2 });
|
|
3152
3088
|
(function () {
|
|
3153
3089
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputTextComponent, [{
|
|
3154
3090
|
type: i0.Component,
|
|
3155
3091
|
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: [
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3092
|
+
i2.provideAs(InputTextComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
3093
|
+
i2.provideAs(InputTextComponent, i1$1.NG_VALIDATORS, true),
|
|
3094
|
+
i2.provideAsWidgetRef(InputTextComponent)
|
|
3159
3095
|
], 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 (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" }]
|
|
3160
|
-
}], function () {
|
|
3161
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
3162
|
-
type: i0.Optional
|
|
3163
|
-
}] }];
|
|
3164
|
-
}, { inputEl: [{
|
|
3096
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3165
3097
|
type: i0.ViewChild,
|
|
3166
3098
|
args: ['input', { static: true }]
|
|
3167
3099
|
}], ngModel: [{
|
|
3168
3100
|
type: i0.ViewChild,
|
|
3169
|
-
args: [
|
|
3101
|
+
args: [i1$1.NgModel]
|
|
3170
3102
|
}], imask: [{
|
|
3171
3103
|
type: i0.ViewChild,
|
|
3172
|
-
args: ['input', { read:
|
|
3104
|
+
args: ['input', { read: i2$1.IMaskDirective }]
|
|
3173
3105
|
}] });
|
|
3174
3106
|
})();
|
|
3175
3107
|
|
|
3176
3108
|
const textareaProps = new Map([
|
|
3177
|
-
['autofocus',
|
|
3178
|
-
['autotrim', Object.assign({ value: true },
|
|
3179
|
-
['class',
|
|
3180
|
-
['datavaluesource',
|
|
3181
|
-
['datavalue',
|
|
3182
|
-
['disabled',
|
|
3183
|
-
['hint',
|
|
3184
|
-
['maxchars',
|
|
3185
|
-
['name',
|
|
3186
|
-
['placeholder', Object.assign({ value: 'Place your text' },
|
|
3187
|
-
['readonly',
|
|
3188
|
-
['required',
|
|
3189
|
-
['shortcutkey',
|
|
3190
|
-
['show', Object.assign({ value: true },
|
|
3191
|
-
['tabindex', Object.assign({ value: 0 },
|
|
3192
|
-
['updateon',
|
|
3193
|
-
['limitdisplaytext',
|
|
3194
|
-
['charlength',
|
|
3109
|
+
['autofocus', i2.PROP_BOOLEAN],
|
|
3110
|
+
['autotrim', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
3111
|
+
['class', i2.PROP_STRING],
|
|
3112
|
+
['datavaluesource', i2.PROP_ANY],
|
|
3113
|
+
['datavalue', i2.PROP_STRING],
|
|
3114
|
+
['disabled', i2.PROP_BOOLEAN],
|
|
3115
|
+
['hint', i2.PROP_STRING],
|
|
3116
|
+
['maxchars', i2.PROP_NUMBER],
|
|
3117
|
+
['name', i2.PROP_STRING],
|
|
3118
|
+
['placeholder', Object.assign({ value: 'Place your text' }, i2.PROP_STRING)],
|
|
3119
|
+
['readonly', i2.PROP_BOOLEAN],
|
|
3120
|
+
['required', i2.PROP_BOOLEAN],
|
|
3121
|
+
['shortcutkey', i2.PROP_STRING],
|
|
3122
|
+
['show', Object.assign({ value: true }, i2.PROP_BOOLEAN)],
|
|
3123
|
+
['tabindex', Object.assign({ value: 0 }, i2.PROP_NUMBER)],
|
|
3124
|
+
['updateon', i2.PROP_STRING],
|
|
3125
|
+
['limitdisplaytext', i2.PROP_STRING],
|
|
3126
|
+
['charlength', i2.PROP_NUMBER],
|
|
3195
3127
|
]);
|
|
3196
3128
|
const registerProps = () => {
|
|
3197
|
-
|
|
3198
|
-
|
|
3129
|
+
i2.register('wm-textarea', textareaProps);
|
|
3130
|
+
i2.registerFormWidget(i1$2.FormWidgetType.TEXTAREA, new Map(textareaProps));
|
|
3199
3131
|
};
|
|
3200
3132
|
|
|
3201
3133
|
const _c0 = ["textarea"];
|
|
@@ -3216,9 +3148,8 @@
|
|
|
3216
3148
|
hostClass: 'app-input-wrapper'
|
|
3217
3149
|
};
|
|
3218
3150
|
class TextareaComponent extends BaseInput {
|
|
3219
|
-
constructor(inj
|
|
3220
|
-
super(inj, WIDGET_CONFIG
|
|
3221
|
-
this._viewParent = _viewParent;
|
|
3151
|
+
constructor(inj) {
|
|
3152
|
+
super(inj, WIDGET_CONFIG);
|
|
3222
3153
|
this.charlength = 0;
|
|
3223
3154
|
}
|
|
3224
3155
|
onInputChange() {
|
|
@@ -3226,11 +3157,11 @@
|
|
|
3226
3157
|
}
|
|
3227
3158
|
}
|
|
3228
3159
|
TextareaComponent.initializeProps = registerProps();
|
|
3229
|
-
TextareaComponent.ɵfac = function TextareaComponent_Factory(t) { return new (t || TextareaComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
3160
|
+
TextareaComponent.ɵfac = function TextareaComponent_Factory(t) { return new (t || TextareaComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
3230
3161
|
TextareaComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: TextareaComponent, selectors: [["wm-textarea"]], viewQuery: function TextareaComponent_Query(rf, ctx) {
|
|
3231
3162
|
if (rf & 1) {
|
|
3232
3163
|
i0__namespace.ɵɵviewQuery(_c0, 7);
|
|
3233
|
-
i0__namespace.ɵɵviewQuery(
|
|
3164
|
+
i0__namespace.ɵɵviewQuery(i1$1.NgModel, 5);
|
|
3234
3165
|
}
|
|
3235
3166
|
if (rf & 2) {
|
|
3236
3167
|
let _t;
|
|
@@ -3238,9 +3169,9 @@
|
|
|
3238
3169
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.ngModel = _t.first);
|
|
3239
3170
|
}
|
|
3240
3171
|
}, features: [i0__namespace.ɵɵProvidersFeature([
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3172
|
+
i2.provideAs(TextareaComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
3173
|
+
i2.provideAs(TextareaComponent, i1$1.NG_VALIDATORS, true),
|
|
3174
|
+
i2.provideAsWidgetRef(TextareaComponent)
|
|
3244
3175
|
]), i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 13, consts: [["focus-target", "", "role", "textbox", "aria-multiline", "true", 1, "form-control", "app-textarea", 3, "ngModel", "ngModelOptions", "readonly", "required", "disabled", "maxlength", "autofocus", "ngModelChange", "blur", "input"], ["textarea", ""], ["class", "textarea-count", 4, "ngIf"], [1, "textarea-count"]], template: function TextareaComponent_Template(rf, ctx) {
|
|
3245
3176
|
if (rf & 1) {
|
|
3246
3177
|
i0__namespace.ɵɵelementStart(0, "textarea", 0, 1);
|
|
@@ -3254,25 +3185,21 @@
|
|
|
3254
3185
|
i0__namespace.ɵɵadvance(2);
|
|
3255
3186
|
i0__namespace.ɵɵproperty("ngIf", ctx.maxchars);
|
|
3256
3187
|
}
|
|
3257
|
-
}, dependencies: [
|
|
3188
|
+
}, dependencies: [i1__namespace.NgIf, i1$1__namespace.DefaultValueAccessor, i1$1__namespace.NgControlStatus, i1$1__namespace.RequiredValidator, i1$1__namespace.MaxLengthValidator, i1$1__namespace.NgModel], encapsulation: 2 });
|
|
3258
3189
|
(function () {
|
|
3259
3190
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(TextareaComponent, [{
|
|
3260
3191
|
type: i0.Component,
|
|
3261
3192
|
args: [{ selector: 'wm-textarea', providers: [
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3193
|
+
i2.provideAs(TextareaComponent, i1$1.NG_VALUE_ACCESSOR, true),
|
|
3194
|
+
i2.provideAs(TextareaComponent, i1$1.NG_VALIDATORS, true),
|
|
3195
|
+
i2.provideAsWidgetRef(TextareaComponent)
|
|
3265
3196
|
], 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 (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" }]
|
|
3266
|
-
}], function () {
|
|
3267
|
-
return [{ type: i0__namespace.Injector }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
3268
|
-
type: i0.Optional
|
|
3269
|
-
}] }];
|
|
3270
|
-
}, { inputEl: [{
|
|
3197
|
+
}], function () { return [{ type: i0__namespace.Injector }]; }, { inputEl: [{
|
|
3271
3198
|
type: i0.ViewChild,
|
|
3272
3199
|
args: ['textarea', { static: true }]
|
|
3273
3200
|
}], ngModel: [{
|
|
3274
3201
|
type: i0.ViewChild,
|
|
3275
|
-
args: [
|
|
3202
|
+
args: [i1$1.NgModel]
|
|
3276
3203
|
}] });
|
|
3277
3204
|
})();
|
|
3278
3205
|
|
|
@@ -3432,7 +3359,7 @@
|
|
|
3432
3359
|
}
|
|
3433
3360
|
}
|
|
3434
3361
|
}
|
|
3435
|
-
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(
|
|
3362
|
+
CaptionPositionDirective.ɵfac = function CaptionPositionDirective_Factory(t) { return new (t || CaptionPositionDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1$2__namespace.App)); };
|
|
3436
3363
|
CaptionPositionDirective.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: CaptionPositionDirective, selectors: [["", "captionPosition", ""]] });
|
|
3437
3364
|
(function () {
|
|
3438
3365
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaptionPositionDirective, [{
|
|
@@ -3440,7 +3367,7 @@
|
|
|
3440
3367
|
args: [{
|
|
3441
3368
|
selector: '[captionPosition]'
|
|
3442
3369
|
}]
|
|
3443
|
-
}], function () { return [{ type: i0__namespace.Injector }, { type:
|
|
3370
|
+
}], function () { return [{ type: i0__namespace.Injector }, { type: i1$2__namespace.App }]; }, null);
|
|
3444
3371
|
})();
|
|
3445
3372
|
|
|
3446
3373
|
const components = [
|
|
@@ -3465,19 +3392,19 @@
|
|
|
3465
3392
|
}
|
|
3466
3393
|
InputModule.ɵfac = function InputModule_Factory(t) { return new (t || InputModule)(); };
|
|
3467
3394
|
InputModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: InputModule });
|
|
3468
|
-
InputModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3395
|
+
InputModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1.CommonModule,
|
|
3396
|
+
i1$1.FormsModule,
|
|
3397
|
+
i2.WmComponentsModule,
|
|
3398
|
+
i2$1.IMaskModule] });
|
|
3472
3399
|
(function () {
|
|
3473
3400
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(InputModule, [{
|
|
3474
3401
|
type: i0.NgModule,
|
|
3475
3402
|
args: [{
|
|
3476
3403
|
imports: [
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3404
|
+
i1.CommonModule,
|
|
3405
|
+
i1$1.FormsModule,
|
|
3406
|
+
i2.WmComponentsModule,
|
|
3407
|
+
i2$1.IMaskModule
|
|
3481
3408
|
],
|
|
3482
3409
|
declarations: [...components],
|
|
3483
3410
|
exports: [...components]
|
|
@@ -3500,10 +3427,10 @@
|
|
|
3500
3427
|
InputEmailComponent,
|
|
3501
3428
|
InputNumberComponent,
|
|
3502
3429
|
InputTextComponent,
|
|
3503
|
-
TextareaComponent], imports: [
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3430
|
+
TextareaComponent], imports: [i1.CommonModule,
|
|
3431
|
+
i1$1.FormsModule,
|
|
3432
|
+
i2.WmComponentsModule,
|
|
3433
|
+
i2$1.IMaskModule], exports: [ButtonComponent,
|
|
3507
3434
|
ButtonGroupDirective,
|
|
3508
3435
|
CaptionPositionDirective,
|
|
3509
3436
|
CheckboxComponent,
|