@wavemaker/app-ng-runtime 11.13.0-rc.6255 → 11.14.0-rc.232
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-task/bundles/index.umd.js +34 -5
- package/build-task/esm2022/basic/anchor/anchor.build.mjs +15 -0
- package/build-task/esm2022/basic/audio/audio.build.mjs +10 -0
- package/build-task/esm2022/basic/html/html.build.mjs +15 -0
- package/build-task/esm2022/basic/icon/icon.build.mjs +10 -0
- package/build-task/esm2022/basic/iframe/iframe.build.mjs +10 -0
- package/build-task/esm2022/basic/label/label.build.mjs +25 -0
- package/build-task/esm2022/basic/picture/picture.build.mjs +14 -0
- package/build-task/esm2022/basic/spinner/spinner.build.mjs +15 -0
- package/build-task/esm2022/basic/video/video.build.mjs +10 -0
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +8 -3
- package/build-task/esm2022/data/form/form.build.mjs +8 -1
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +14 -3
- package/build-task/esm2022/input/default/checkbox/checkbox.build.mjs +2 -2
- package/build-task/esm2022/page/page-content/page-content.build.mjs +8 -2
- package/build-task/esm2022/public_api.mjs +10 -10
- package/build-task/fesm2022/index.mjs +36 -7
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/build-task/package.json +3 -6
- package/build-task/public_api.d.ts +9 -9
- package/components/advanced/carousel/bundles/index.umd.js +33 -38
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +16 -16
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +19 -24
- package/components/advanced/carousel/fesm2022/index.mjs +34 -39
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/package.json +0 -3
- package/components/advanced/custom/bundles/index.umd.js +48 -48
- package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +1 -1
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +31 -31
- package/components/advanced/custom/esm2022/custom-widget.directive.mjs +15 -15
- package/components/advanced/custom/fesm2022/index.mjs +45 -45
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/package.json +0 -3
- package/components/advanced/login/bundles/index.umd.js +33 -53
- package/components/advanced/login/esm2022/login.component.mjs +26 -47
- package/components/advanced/login/fesm2022/index.mjs +27 -47
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/login.component.d.ts +1 -1
- package/components/advanced/login/package.json +0 -3
- package/components/advanced/marquee/bundles/index.umd.js +19 -19
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +20 -20
- package/components/advanced/marquee/fesm2022/index.mjs +20 -20
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/package.json +0 -3
- package/components/base/bundles/index.umd.js +4275 -4244
- package/components/base/esm2022/pipes/custom-pipes.mjs +14 -12
- package/components/base/esm2022/pipes/wm-pipe.mjs +3 -3
- package/components/base/esm2022/public_api.mjs +1 -2
- package/components/base/esm2022/utils/widget-utils.mjs +4 -2
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +154 -1
- package/components/base/esm2022/widgets/common/container/container.props.mjs +7 -2
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +1 -1
- package/components/base/fesm2022/index.mjs +4279 -4248
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/package.json +2 -2
- package/components/base/pipes/custom-pipes.d.ts +4 -2
- package/components/base/pipes/wm-pipe.d.ts +1 -1
- package/components/base/public_api.d.ts +0 -1
- package/components/base/widgets/common/container/container.directive.d.ts +9 -0
- package/components/base/widgets/common/pull-to-refresh/pull-to-refresh.d.ts +0 -2
- package/components/basic/anchor/bundles/index.umd.js +192 -0
- package/components/basic/anchor/esm2022/anchor.component.mjs +143 -0
- package/components/basic/anchor/esm2022/anchor.props.mjs +27 -0
- package/components/basic/anchor/esm2022/index.mjs +5 -0
- package/components/basic/anchor/esm2022/public_api.mjs +2 -0
- package/components/basic/anchor/fesm2022/index.mjs +175 -0
- package/components/basic/anchor/fesm2022/index.mjs.map +1 -0
- package/components/basic/{progress → anchor}/index.d.ts +1 -1
- package/components/basic/{default → anchor}/package.json +1 -4
- package/components/basic/anchor/public_api.d.ts +1 -0
- package/components/basic/audio/bundles/index.umd.js +83 -0
- package/components/basic/audio/esm2022/audio.component.mjs +41 -0
- package/components/basic/audio/esm2022/audio.props.mjs +19 -0
- package/components/{input/epoch → basic/audio}/esm2022/index.mjs +1 -1
- package/components/basic/audio/esm2022/public_api.mjs +2 -0
- package/components/basic/audio/fesm2022/index.mjs +65 -0
- package/components/basic/audio/fesm2022/index.mjs.map +1 -0
- package/components/{input/epoch → basic/audio}/index.d.ts +1 -1
- package/components/{input/default → basic/audio}/package.json +2 -5
- package/components/basic/audio/public_api.d.ts +1 -0
- package/components/basic/html/bundles/index.umd.js +110 -0
- package/components/basic/html/esm2022/html.directive.mjs +76 -0
- package/components/basic/html/esm2022/html.props.mjs +12 -0
- package/components/basic/html/esm2022/index.mjs +5 -0
- package/components/basic/html/esm2022/public_api.mjs +2 -0
- package/components/basic/html/fesm2022/index.mjs +93 -0
- package/components/basic/html/fesm2022/index.mjs.map +1 -0
- package/components/basic/{default → html}/index.d.ts +1 -1
- package/components/{input/epoch → basic/html}/package.json +1 -4
- package/components/basic/html/public_api.d.ts +1 -0
- package/components/basic/icon/bundles/index.umd.js +80 -0
- package/components/basic/icon/esm2022/icon.component.mjs +38 -0
- package/components/basic/icon/esm2022/icon.props.mjs +19 -0
- package/components/basic/icon/esm2022/index.mjs +5 -0
- package/components/basic/icon/esm2022/public_api.mjs +2 -0
- package/components/basic/icon/fesm2022/index.mjs +62 -0
- package/components/basic/icon/fesm2022/index.mjs.map +1 -0
- package/components/{input/default → basic/icon}/index.d.ts +1 -1
- package/components/basic/{progress → icon}/package.json +1 -4
- package/components/basic/icon/public_api.d.ts +1 -0
- package/components/basic/iframe/.npmignore +2 -0
- package/components/basic/iframe/bundles/index.umd.js +101 -0
- package/components/basic/iframe/esm2022/iframe.component.mjs +65 -0
- package/components/basic/iframe/esm2022/iframe.props.mjs +15 -0
- package/components/basic/iframe/esm2022/index.mjs +5 -0
- package/components/basic/iframe/esm2022/public_api.mjs +2 -0
- package/components/basic/iframe/fesm2022/index.mjs +84 -0
- package/components/basic/iframe/fesm2022/index.mjs.map +1 -0
- package/components/basic/iframe/index.d.ts +5 -0
- package/components/basic/iframe/package.json +20 -0
- package/components/basic/iframe/public_api.d.ts +1 -0
- package/components/basic/label/.npmignore +2 -0
- package/components/basic/label/bundles/index.umd.js +109 -0
- package/components/basic/label/esm2022/index.mjs +5 -0
- package/components/basic/label/esm2022/label.directive.mjs +71 -0
- package/components/basic/label/esm2022/label.props.mjs +17 -0
- package/components/basic/label/esm2022/public_api.mjs +2 -0
- package/components/basic/label/fesm2022/index.mjs +93 -0
- package/components/basic/label/fesm2022/index.mjs.map +1 -0
- package/components/basic/label/index.d.ts +5 -0
- package/components/basic/{default/label → label}/label.directive.d.ts +1 -1
- package/components/basic/label/package.json +20 -0
- package/components/basic/label/public_api.d.ts +1 -0
- package/components/basic/picture/.npmignore +2 -0
- package/components/basic/picture/bundles/index.umd.js +138 -0
- package/components/basic/{default → picture}/esm2022/index.mjs +1 -1
- package/components/basic/picture/esm2022/picture.directive.mjs +93 -0
- package/components/basic/picture/esm2022/picture.props.mjs +23 -0
- package/components/basic/picture/esm2022/public_api.mjs +2 -0
- package/components/basic/picture/fesm2022/index.mjs +121 -0
- package/components/basic/picture/fesm2022/index.mjs.map +1 -0
- package/components/basic/picture/index.d.ts +5 -0
- package/components/basic/picture/package.json +20 -0
- package/components/basic/picture/public_api.d.ts +1 -0
- package/components/basic/progress/progress-bar/.npmignore +2 -0
- package/components/basic/progress/progress-bar/bundles/index.umd.js +170 -0
- package/components/basic/progress/progress-bar/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-bar/esm2022/progress-bar.component.mjs +130 -0
- package/components/basic/progress/{esm2022/progress-bar → progress-bar/esm2022}/progress-bar.props.mjs +1 -1
- package/components/basic/progress/progress-bar/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs +154 -0
- package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-bar/index.d.ts +5 -0
- package/components/basic/progress/progress-bar/package.json +20 -0
- package/components/basic/progress/progress-bar/public_api.d.ts +1 -0
- package/components/basic/progress/progress-circle/.npmignore +2 -0
- package/components/basic/progress/progress-circle/bundles/index.umd.js +161 -0
- package/components/basic/progress/progress-circle/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-circle/esm2022/progress-circle.component.mjs +120 -0
- package/components/basic/progress/{esm2022/progress-circle → progress-circle/esm2022}/progress-circle.props.mjs +1 -1
- package/components/basic/progress/progress-circle/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs +145 -0
- package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-circle/index.d.ts +5 -0
- package/components/basic/progress/progress-circle/package.json +20 -0
- package/components/basic/progress/progress-circle/public_api.d.ts +1 -0
- package/components/basic/progress/progress-utils/.npmignore +2 -0
- package/components/basic/progress/progress-utils/bundles/index.umd.js +35 -0
- package/components/basic/progress/progress-utils/esm2022/index.mjs +5 -0
- package/components/basic/progress/progress-utils/esm2022/progress-utils.mjs +25 -0
- package/components/basic/progress/progress-utils/esm2022/public_api.mjs +2 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs +32 -0
- package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -0
- package/components/basic/progress/progress-utils/index.d.ts +5 -0
- package/components/basic/progress/progress-utils/package.json +20 -0
- package/components/basic/progress/progress-utils/public_api.d.ts +1 -0
- package/components/basic/rich-text-editor/bundles/index.umd.js +23 -40
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +19 -38
- package/components/basic/rich-text-editor/fesm2022/index.mjs +21 -39
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/package.json +0 -3
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +1 -1
- package/components/basic/search/bundles/index.umd.js +109 -313
- package/components/basic/search/esm2022/scrollable.directive.mjs +13 -14
- package/components/basic/search/esm2022/search.component.mjs +40 -246
- package/components/basic/search/fesm2022/index.mjs +52 -256
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/package.json +0 -3
- package/components/basic/search/scrollable.directive.d.ts +2 -3
- package/components/basic/search/search.component.d.ts +1 -1
- package/components/basic/spinner/.npmignore +2 -0
- package/components/basic/spinner/bundles/index.umd.js +118 -0
- package/components/{input/default → basic/spinner}/esm2022/index.mjs +1 -1
- package/components/basic/spinner/esm2022/public_api.mjs +2 -0
- package/components/basic/spinner/esm2022/spinner.component.mjs +79 -0
- package/components/basic/spinner/esm2022/spinner.props.mjs +20 -0
- package/components/basic/spinner/fesm2022/index.mjs +103 -0
- package/components/basic/spinner/fesm2022/index.mjs.map +1 -0
- package/components/basic/spinner/index.d.ts +5 -0
- package/components/basic/spinner/package.json +20 -0
- package/components/basic/spinner/public_api.d.ts +1 -0
- package/components/basic/tree/bundles/index.umd.js +34 -38
- package/components/basic/tree/esm2022/tree.component.mjs +31 -36
- package/components/basic/tree/fesm2022/index.mjs +32 -36
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/package.json +0 -3
- package/components/basic/video/.npmignore +2 -0
- package/components/basic/video/bundles/index.umd.js +116 -0
- package/components/basic/video/esm2022/index.mjs +5 -0
- package/components/basic/video/esm2022/public_api.mjs +2 -0
- package/components/basic/video/esm2022/video.component.mjs +70 -0
- package/components/basic/video/esm2022/video.props.mjs +24 -0
- package/components/basic/video/fesm2022/index.mjs +99 -0
- package/components/basic/video/fesm2022/index.mjs.map +1 -0
- package/components/basic/video/index.d.ts +5 -0
- package/components/basic/video/package.json +20 -0
- package/components/basic/video/public_api.d.ts +1 -0
- package/components/chart/bundles/index.umd.js +22 -75
- package/components/chart/esm2022/chart.component.mjs +20 -74
- package/components/chart/fesm2022/index.mjs +21 -74
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/package.json +0 -3
- package/components/containers/accordion/bundles/index.umd.js +45 -100
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +19 -70
- package/components/containers/accordion/esm2022/accordion.directive.mjs +24 -29
- package/components/containers/accordion/fesm2022/index.mjs +43 -98
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/package.json +0 -3
- package/components/containers/layout-grid/bundles/index.umd.js +60 -60
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +23 -23
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +20 -20
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +20 -20
- package/components/containers/layout-grid/fesm2022/index.mjs +61 -61
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/package.json +0 -3
- package/components/containers/linear-layout/bundles/index.umd.js +38 -38
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +20 -20
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +20 -20
- package/components/containers/linear-layout/fesm2022/index.mjs +39 -39
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/package.json +0 -3
- package/components/containers/panel/bundles/index.umd.js +62 -223
- package/components/containers/panel/esm2022/panel.component.mjs +29 -190
- package/components/containers/panel/fesm2022/index.mjs +29 -190
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/package.json +0 -3
- package/components/containers/tabs/bundles/index.umd.js +95 -204
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +34 -51
- package/components/containers/tabs/esm2022/tabs.component.mjs +29 -123
- package/components/containers/tabs/fesm2022/index.mjs +61 -170
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/package.json +0 -3
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +3 -4
- package/components/containers/tile/bundles/index.umd.js +19 -19
- package/components/containers/tile/esm2022/tile.directive.mjs +20 -20
- package/components/containers/tile/fesm2022/index.mjs +20 -20
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/package.json +0 -3
- package/components/containers/wizard/bundles/index.umd.js +119 -302
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +21 -21
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +32 -45
- package/components/containers/wizard/esm2022/wizard.component.mjs +30 -201
- package/components/containers/wizard/fesm2022/index.mjs +81 -264
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/package.json +0 -3
- package/components/containers/wizard/wizard.component.d.ts +1 -1
- package/components/data/card/bundles/index.umd.js +108 -208
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +15 -15
- package/components/data/card/esm2022/card-content/card-content.component.mjs +19 -34
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +15 -15
- package/components/data/card/esm2022/card.component.mjs +21 -107
- package/components/data/card/fesm2022/index.mjs +67 -167
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/package.json +0 -3
- package/components/data/form/bundles/index.umd.js +287 -467
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +22 -22
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +80 -91
- package/components/data/form/esm2022/form-widget.directive.mjs +31 -31
- package/components/data/form/esm2022/form.component.mjs +88 -251
- package/components/data/form/esm2022/form.props.mjs +1 -1
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +19 -24
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +15 -15
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +15 -15
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +23 -25
- package/components/data/form/fesm2022/index.mjs +288 -468
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/package.json +0 -3
- package/components/data/list/bundles/index.umd.js +80 -360
- package/components/data/list/esm2022/list-item.directive.mjs +27 -34
- package/components/data/list/esm2022/list.animator.mjs +1 -1
- package/components/data/list/esm2022/list.component.mjs +55 -330
- package/components/data/list/esm2022/list.props.mjs +1 -1
- package/components/data/list/fesm2022/index.mjs +79 -358
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list-item.directive.d.ts +3 -3
- package/components/data/list/list.component.d.ts +2 -4
- package/components/data/list/package.json +0 -3
- package/components/data/live-table/bundles/index.umd.js +28 -39
- package/components/data/live-table/esm2022/live-table.component.mjs +25 -37
- package/components/data/live-table/fesm2022/index.mjs +26 -37
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/package.json +0 -3
- package/components/data/pagination/bundles/index.umd.js +33 -505
- package/components/data/pagination/esm2022/pagination.component.mjs +33 -507
- package/components/data/pagination/esm2022/pagination.props.mjs +1 -1
- package/components/data/pagination/fesm2022/index.mjs +32 -505
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/package.json +0 -3
- package/components/data/pagination/pagination.component.d.ts +1 -1
- package/components/data/table/bundles/index.umd.js +310 -457
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +22 -22
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +50 -71
- package/components/data/table/esm2022/table-column/table-column.props.mjs +1 -1
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +26 -26
- package/components/data/table/esm2022/table-cud.directive.mjs +15 -15
- package/components/data/table/esm2022/table-filter.directive.mjs +16 -16
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +24 -24
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +29 -29
- package/components/data/table/esm2022/table.component.mjs +135 -263
- package/components/data/table/esm2022/table.props.mjs +2 -1
- package/components/data/table/fesm2022/index.mjs +312 -459
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/package.json +0 -3
- package/components/data/table/table-column/table-column.directive.d.ts +1 -1
- package/components/data/table/table.component.d.ts +3 -0
- package/components/dialogs/alert-dialog/bundles/index.umd.js +50 -79
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +32 -62
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +32 -61
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/package.json +0 -3
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +36 -72
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +34 -71
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +35 -71
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/package.json +0 -3
- package/components/dialogs/default/bundles/index.umd.js +101 -245
- package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +4 -1
- package/components/dialogs/default/esm2022/base-dialog.mjs +14 -14
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +16 -18
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +20 -20
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +39 -181
- package/components/dialogs/default/fesm2022/index.mjs +85 -229
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/package.json +0 -3
- package/components/dialogs/design-dialog/bundles/index.umd.js +52 -108
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +50 -107
- package/components/dialogs/design-dialog/fesm2022/index.mjs +51 -107
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/package.json +0 -3
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +33 -81
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +32 -82
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +33 -82
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/package.json +0 -3
- package/components/dialogs/login-dialog/bundles/index.umd.js +22 -29
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +23 -30
- package/components/dialogs/login-dialog/fesm2022/index.mjs +23 -30
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/package.json +0 -3
- package/components/dialogs/partial-dialog/bundles/index.umd.js +39 -85
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +38 -85
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +39 -85
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/package.json +0 -3
- package/components/input/base-form/.npmignore +2 -0
- package/components/input/base-form/bundles/index.umd.js +133 -0
- package/components/input/base-form/esm2022/base-form.component.mjs +110 -0
- package/components/input/base-form/esm2022/index.mjs +5 -0
- package/components/input/base-form/esm2022/public_api.mjs +2 -0
- package/components/input/base-form/fesm2022/index.mjs +117 -0
- package/components/input/base-form/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form/index.d.ts +5 -0
- package/components/input/base-form/package.json +20 -0
- package/components/input/base-form/public_api.d.ts +1 -0
- package/components/input/base-form-custom/.npmignore +2 -0
- package/components/input/{default → base-form-custom}/base-form-custom.component.d.ts +1 -1
- package/components/input/base-form-custom/bundles/index.umd.js +118 -0
- package/components/input/base-form-custom/esm2022/base-form-custom.component.mjs +94 -0
- package/components/input/base-form-custom/esm2022/index.mjs +5 -0
- package/components/input/base-form-custom/esm2022/public_api.mjs +2 -0
- package/components/input/base-form-custom/fesm2022/index.mjs +101 -0
- package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -0
- package/components/input/base-form-custom/index.d.ts +5 -0
- package/components/input/base-form-custom/package.json +20 -0
- package/components/input/base-form-custom/public_api.d.ts +1 -0
- package/components/input/button/.npmignore +2 -0
- package/components/input/button/bundles/index.umd.js +98 -0
- package/components/input/button/esm2022/button.component.mjs +50 -0
- package/components/input/button/esm2022/button.props.mjs +26 -0
- package/components/input/button/esm2022/index.mjs +5 -0
- package/components/input/button/esm2022/public_api.mjs +2 -0
- package/components/input/button/fesm2022/index.mjs +81 -0
- package/components/input/button/fesm2022/index.mjs.map +1 -0
- package/components/input/button/index.d.ts +5 -0
- package/components/input/button/package.json +20 -0
- package/components/input/button/public_api.d.ts +1 -0
- package/components/input/button-group/.npmignore +2 -0
- package/components/input/button-group/bundles/index.umd.js +80 -0
- package/components/input/button-group/esm2022/button-group.directive.mjs +47 -0
- package/components/input/button-group/esm2022/button-group.props.mjs +10 -0
- package/components/input/button-group/esm2022/index.mjs +5 -0
- package/components/input/button-group/esm2022/public_api.mjs +2 -0
- package/components/input/button-group/fesm2022/index.mjs +62 -0
- package/components/input/button-group/fesm2022/index.mjs.map +1 -0
- package/components/input/button-group/index.d.ts +5 -0
- package/components/input/button-group/package.json +20 -0
- package/components/input/button-group/public_api.d.ts +1 -0
- package/components/input/calendar/bundles/index.umd.js +25 -38
- package/components/input/calendar/esm2022/calendar.component.mjs +22 -36
- package/components/input/calendar/fesm2022/index.mjs +23 -36
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/package.json +0 -3
- package/components/input/caption-position/.npmignore +2 -0
- package/components/input/caption-position/bundles/index.umd.js +196 -0
- package/components/input/caption-position/esm2022/caption-position.directive.mjs +172 -0
- package/components/input/caption-position/esm2022/index.mjs +5 -0
- package/components/input/caption-position/esm2022/public_api.mjs +2 -0
- package/components/input/caption-position/fesm2022/index.mjs +178 -0
- package/components/input/caption-position/fesm2022/index.mjs.map +1 -0
- package/components/input/caption-position/index.d.ts +5 -0
- package/components/input/caption-position/package.json +20 -0
- package/components/input/caption-position/public_api.d.ts +1 -0
- package/components/input/checkbox/.npmignore +2 -0
- package/components/input/checkbox/bundles/index.umd.js +190 -0
- package/components/input/{default/checkbox → checkbox}/checkbox.component.d.ts +1 -1
- package/components/input/checkbox/esm2022/checkbox.component.mjs +145 -0
- package/components/input/checkbox/esm2022/checkbox.props.mjs +27 -0
- package/components/{basic/progress → input/checkbox}/esm2022/index.mjs +1 -1
- package/components/input/checkbox/esm2022/public_api.mjs +2 -0
- package/components/input/checkbox/fesm2022/index.mjs +175 -0
- package/components/input/checkbox/fesm2022/index.mjs.map +1 -0
- package/components/input/checkbox/index.d.ts +5 -0
- package/components/input/checkbox/package.json +20 -0
- package/components/input/checkbox/public_api.d.ts +1 -0
- package/components/input/checkboxset/.npmignore +2 -0
- package/components/input/checkboxset/bundles/index.umd.js +151 -0
- package/components/input/{default/checkboxset → checkboxset}/checkboxset.component.d.ts +1 -1
- package/components/input/checkboxset/esm2022/checkboxset.component.mjs +99 -0
- package/components/input/checkboxset/esm2022/checkboxset.props.mjs +35 -0
- package/components/input/checkboxset/esm2022/index.mjs +5 -0
- package/components/input/checkboxset/esm2022/public_api.mjs +2 -0
- package/components/input/checkboxset/fesm2022/index.mjs +138 -0
- package/components/input/checkboxset/fesm2022/index.mjs.map +1 -0
- package/components/input/checkboxset/index.d.ts +5 -0
- package/components/input/checkboxset/package.json +20 -0
- package/components/input/checkboxset/public_api.d.ts +1 -0
- package/components/input/chips/bundles/index.umd.js +94 -153
- package/components/input/chips/chips.component.d.ts +1 -1
- package/components/input/chips/esm2022/chips.component.mjs +41 -101
- package/components/input/chips/fesm2022/index.mjs +42 -101
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/package.json +0 -3
- package/components/input/color-picker/bundles/index.umd.js +35 -74
- package/components/input/color-picker/color-picker.component.d.ts +2 -2
- package/components/input/color-picker/esm2022/color-picker.component.mjs +34 -75
- package/components/input/color-picker/fesm2022/index.mjs +36 -75
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/package.json +0 -3
- package/components/input/composite/.npmignore +2 -0
- package/components/input/composite/bundles/index.umd.js +111 -0
- package/components/input/composite/esm2022/composite.directive.mjs +79 -0
- package/components/input/composite/esm2022/composite.props.mjs +10 -0
- package/components/input/composite/esm2022/index.mjs +5 -0
- package/components/input/composite/esm2022/public_api.mjs +2 -0
- package/components/input/composite/fesm2022/index.mjs +94 -0
- package/components/input/composite/fesm2022/index.mjs.map +1 -0
- package/components/input/composite/index.d.ts +5 -0
- package/components/input/composite/package.json +20 -0
- package/components/input/composite/public_api.d.ts +1 -0
- package/components/input/currency/bundles/index.umd.js +31 -52
- package/components/input/currency/currency.component.d.ts +1 -1
- package/components/input/currency/esm2022/currency.component.mjs +28 -50
- package/components/input/currency/fesm2022/index.mjs +30 -51
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/package.json +0 -3
- package/components/input/dataset-aware-form/.npmignore +2 -0
- package/components/input/dataset-aware-form/bundles/index.umd.js +328 -0
- package/components/input/{default → dataset-aware-form}/dataset-aware-form.component.d.ts +1 -1
- package/components/input/dataset-aware-form/esm2022/dataset-aware-form.component.mjs +307 -0
- package/components/input/dataset-aware-form/esm2022/index.mjs +5 -0
- package/components/input/dataset-aware-form/esm2022/public_api.mjs +2 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs +314 -0
- package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -0
- package/components/input/dataset-aware-form/index.d.ts +5 -0
- package/components/input/dataset-aware-form/package.json +20 -0
- package/components/input/dataset-aware-form/public_api.d.ts +1 -0
- package/components/input/epoch/base-date-time/.npmignore +2 -0
- package/components/input/epoch/{base-date-time.component.d.ts → base-date-time/base-date-time.component.d.ts} +1 -1
- package/components/input/epoch/base-date-time/bundles/index.umd.js +1086 -0
- package/components/input/epoch/{esm2022 → base-date-time/esm2022}/base-date-time.component.mjs +22 -31
- package/components/input/epoch/base-date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/base-date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs +1077 -0
- package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/base-date-time/index.d.ts +5 -0
- package/components/input/epoch/base-date-time/package.json +20 -0
- package/components/input/epoch/base-date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date/.npmignore +2 -0
- package/components/input/epoch/date/bundles/index.umd.js +492 -0
- package/components/input/epoch/date/date.component.d.ts +2 -2
- package/components/input/epoch/date/esm2022/date.component.mjs +322 -0
- package/components/input/epoch/{esm2022/date → date/esm2022}/date.props.mjs +1 -1
- package/components/input/epoch/{esm2022/date → date/esm2022}/imaskUtil.mjs +1 -1
- package/components/input/epoch/date/esm2022/index.mjs +5 -0
- package/components/input/epoch/date/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date/fesm2022/index.mjs +482 -0
- package/components/input/epoch/date/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date/index.d.ts +5 -0
- package/components/input/epoch/date/package.json +20 -0
- package/components/input/epoch/date/public_api.d.ts +1 -0
- package/components/input/epoch/date-time/.npmignore +2 -0
- package/components/input/epoch/date-time/bundles/index.umd.js +518 -0
- package/components/input/epoch/date-time/date-time.component.d.ts +1 -1
- package/components/input/epoch/date-time/esm2022/date-time.component.mjs +458 -0
- package/components/input/epoch/{esm2022/date-time → date-time/esm2022}/date-time.props.mjs +1 -1
- package/components/input/epoch/date-time/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs +509 -0
- package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time/index.d.ts +5 -0
- package/components/input/epoch/date-time/package.json +20 -0
- package/components/input/epoch/date-time/public_api.d.ts +1 -0
- package/components/input/epoch/date-time-picker/.npmignore +2 -0
- package/components/input/epoch/date-time-picker/bundles/index.umd.js +453 -0
- package/components/input/epoch/date-time-picker/esm2022/date-time-picker.component.mjs +433 -0
- package/components/input/epoch/date-time-picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/date-time-picker/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs +439 -0
- package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/date-time-picker/index.d.ts +5 -0
- package/components/input/epoch/date-time-picker/package.json +20 -0
- package/components/input/epoch/date-time-picker/public_api.d.ts +1 -0
- package/components/input/epoch/picker/.npmignore +2 -0
- package/components/input/epoch/picker/bundles/index.umd.js +192 -0
- package/components/input/epoch/picker/esm2022/index.mjs +5 -0
- package/components/input/epoch/picker/esm2022/picker.component.mjs +165 -0
- package/components/input/epoch/picker/esm2022/public_api.mjs +3 -0
- package/components/input/epoch/picker/fesm2022/index.mjs +172 -0
- package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/picker/index.d.ts +5 -0
- package/components/input/epoch/picker/package.json +20 -0
- package/components/input/epoch/picker/public_api.d.ts +2 -0
- package/components/input/epoch/time/.npmignore +2 -0
- package/components/input/epoch/time/bundles/index.umd.js +397 -0
- package/components/input/epoch/time/esm2022/index.mjs +5 -0
- package/components/input/epoch/time/esm2022/public_api.mjs +2 -0
- package/components/input/epoch/time/esm2022/time.component.mjs +348 -0
- package/components/input/epoch/{esm2022/time → time/esm2022}/time.props.mjs +1 -1
- package/components/input/epoch/time/fesm2022/index.mjs +387 -0
- package/components/input/epoch/time/fesm2022/index.mjs.map +1 -0
- package/components/input/epoch/time/index.d.ts +5 -0
- package/components/input/epoch/time/package.json +20 -0
- package/components/input/epoch/time/public_api.d.ts +1 -0
- package/components/input/epoch/time/time.component.d.ts +1 -1
- package/components/input/file-upload/bundles/index.umd.js +56 -348
- package/components/input/file-upload/esm2022/file-upload.component.mjs +20 -313
- package/components/input/file-upload/fesm2022/index.mjs +20 -312
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/package.json +0 -3
- package/components/input/number/.npmignore +2 -0
- package/components/input/number/bundles/index.umd.js +101 -0
- package/components/input/number/esm2022/index.mjs +5 -0
- package/components/input/number/esm2022/number.component.mjs +49 -0
- package/components/input/number/esm2022/number.props.mjs +35 -0
- package/components/input/number/esm2022/public_api.mjs +2 -0
- package/components/input/number/fesm2022/index.mjs +87 -0
- package/components/input/number/fesm2022/index.mjs.map +1 -0
- package/components/input/number/index.d.ts +5 -0
- package/components/input/{default/number → number}/number.component.d.ts +1 -1
- package/components/input/number/package.json +20 -0
- package/components/input/number/public_api.d.ts +1 -0
- package/components/input/radioset/.npmignore +2 -0
- package/components/input/radioset/bundles/index.umd.js +136 -0
- package/components/input/radioset/esm2022/index.mjs +5 -0
- package/components/input/radioset/esm2022/public_api.mjs +2 -0
- package/components/input/radioset/esm2022/radioset.component.mjs +84 -0
- package/components/input/radioset/esm2022/radioset.props.mjs +35 -0
- package/components/input/radioset/fesm2022/index.mjs +123 -0
- package/components/input/radioset/fesm2022/index.mjs.map +1 -0
- package/components/input/radioset/index.d.ts +5 -0
- package/components/input/radioset/package.json +20 -0
- package/components/input/radioset/public_api.d.ts +1 -0
- package/components/input/{default/radioset → radioset}/radioset.component.d.ts +1 -1
- package/components/input/rating/bundles/index.umd.js +49 -103
- package/components/input/rating/esm2022/rating.component.mjs +24 -79
- package/components/input/rating/fesm2022/index.mjs +25 -79
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/package.json +0 -3
- package/components/input/rating/rating.component.d.ts +1 -1
- package/components/input/select/.npmignore +2 -0
- package/components/input/select/bundles/index.umd.js +219 -0
- package/components/input/select/esm2022/index.mjs +5 -0
- package/components/input/select/esm2022/public_api.mjs +2 -0
- package/components/input/select/esm2022/select.component.mjs +166 -0
- package/components/input/select/esm2022/select.props.mjs +36 -0
- package/components/input/select/fesm2022/index.mjs +205 -0
- package/components/input/select/fesm2022/index.mjs.map +1 -0
- package/components/input/select/index.d.ts +5 -0
- package/components/input/select/package.json +20 -0
- package/components/input/select/public_api.d.ts +1 -0
- package/components/input/{default/select → select}/select.component.d.ts +1 -1
- package/components/input/slider/bundles/index.umd.js +44 -111
- package/components/input/slider/esm2022/slider.component.mjs +25 -95
- package/components/input/slider/esm2022/slider.props.mjs +1 -1
- package/components/input/slider/fesm2022/index.mjs +25 -93
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/package.json +0 -3
- package/components/input/slider/slider.component.d.ts +2 -2
- package/components/input/switch/.npmignore +2 -0
- package/components/input/switch/bundles/index.umd.js +204 -0
- package/components/input/switch/esm2022/index.mjs +5 -0
- package/components/input/switch/esm2022/public_api.mjs +2 -0
- package/components/input/switch/esm2022/switch.component.mjs +159 -0
- package/components/input/switch/esm2022/switch.props.mjs +28 -0
- package/components/input/switch/fesm2022/index.mjs +191 -0
- package/components/input/switch/fesm2022/index.mjs.map +1 -0
- package/components/input/switch/index.d.ts +5 -0
- package/components/input/switch/package.json +20 -0
- package/components/input/switch/public_api.d.ts +1 -0
- package/components/input/{default/switch → switch}/switch.component.d.ts +1 -1
- package/components/input/text/.npmignore +2 -0
- package/components/input/{default/text/base → text/base-input}/base-input.d.ts +1 -1
- package/components/input/text/bundles/index.umd.js +1070 -0
- package/components/input/text/esm2022/base-input/base-input.mjs +93 -0
- package/components/input/text/esm2022/index.mjs +5 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.component.mjs +46 -0
- package/components/input/text/esm2022/input-calendar/input-calendar.props.mjs +30 -0
- package/components/input/text/esm2022/input-color/input-color.component.mjs +46 -0
- package/components/input/text/esm2022/input-color/input-color.props.mjs +27 -0
- package/components/input/text/esm2022/input-email/input-email.component.mjs +46 -0
- package/components/input/text/esm2022/input-email/input-email.props.mjs +29 -0
- package/components/input/text/esm2022/input-number/input-number.component.mjs +56 -0
- package/components/input/text/esm2022/input-number/input-number.props.mjs +32 -0
- package/components/input/text/esm2022/input-text/input-text.component.mjs +121 -0
- package/components/input/text/esm2022/input-text/input-text.props.mjs +46 -0
- package/components/input/text/esm2022/number-locale/number-locale.mjs +539 -0
- package/components/input/text/esm2022/public_api.mjs +8 -0
- package/components/input/text/fesm2022/index.mjs +1054 -0
- package/components/input/text/fesm2022/index.mjs.map +1 -0
- package/components/input/text/index.d.ts +5 -0
- package/components/input/{default/text/calendar → text/input-calendar}/input-calendar.component.d.ts +1 -1
- package/components/input/{default/text/color → text/input-color}/input-color.component.d.ts +1 -1
- package/components/input/{default/text/email → text/input-email}/input-email.component.d.ts +1 -1
- package/components/input/{default/text/number → text/input-number}/input-number.component.d.ts +1 -1
- package/components/input/{default/text/text → text/input-text}/input-text.component.d.ts +1 -1
- package/components/input/{default/text/locale → text/number-locale}/number-locale.d.ts +1 -1
- package/components/input/text/package.json +20 -0
- package/components/input/text/public_api.d.ts +7 -0
- package/components/input/textarea/.npmignore +2 -0
- package/components/input/textarea/bundles/index.umd.js +101 -0
- package/components/input/textarea/esm2022/index.mjs +5 -0
- package/components/input/textarea/esm2022/public_api.mjs +2 -0
- package/components/input/textarea/esm2022/textarea.component.mjs +53 -0
- package/components/input/textarea/esm2022/textarea.props.mjs +30 -0
- package/components/input/textarea/fesm2022/index.mjs +87 -0
- package/components/input/textarea/fesm2022/index.mjs.map +1 -0
- package/components/input/textarea/index.d.ts +5 -0
- package/components/input/textarea/package.json +20 -0
- package/components/input/textarea/public_api.d.ts +1 -0
- package/components/input/{default/textarea → textarea}/textarea.component.d.ts +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +37 -79
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +20 -64
- package/components/navigation/breadcrumb/fesm2022/index.mjs +21 -64
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/package.json +0 -3
- package/components/navigation/menu/bundles/index.umd.js +247 -442
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +14 -19
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +13 -29
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +43 -100
- package/components/navigation/menu/esm2022/menu.component.mjs +53 -104
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +30 -37
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +20 -88
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +14 -14
- package/components/navigation/menu/fesm2022/index.mjs +174 -369
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +2 -3
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +3 -3
- package/components/navigation/menu/package.json +0 -3
- package/components/navigation/navbar/bundles/index.umd.js +32 -83
- package/components/navigation/navbar/esm2022/navbar.component.mjs +20 -72
- package/components/navigation/navbar/fesm2022/index.mjs +20 -71
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/package.json +0 -3
- package/components/navigation/popover/bundles/index.umd.js +31 -59
- package/components/navigation/popover/esm2022/popover.component.mjs +29 -58
- package/components/navigation/popover/fesm2022/index.mjs +31 -59
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/package.json +0 -3
- package/components/page/default/bundles/index.umd.js +109 -123
- package/components/page/default/esm2022/content/content.component.mjs +16 -25
- package/components/page/default/esm2022/layout.directive.mjs +21 -21
- package/components/page/default/esm2022/page-content/page-content.component.mjs +16 -23
- package/components/page/default/esm2022/page.directive.mjs +21 -21
- package/components/page/default/esm2022/router-outlet.directive.mjs +20 -20
- package/components/page/default/esm2022/spa-page.directive.mjs +21 -21
- package/components/page/default/fesm2022/index.mjs +111 -125
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/package.json +0 -3
- package/components/page/footer/bundles/index.umd.js +20 -20
- package/components/page/footer/esm2022/footer.directive.mjs +21 -21
- package/components/page/footer/fesm2022/index.mjs +21 -21
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/package.json +0 -3
- package/components/page/header/bundles/index.umd.js +19 -26
- package/components/page/header/esm2022/header.component.mjs +16 -24
- package/components/page/header/fesm2022/index.mjs +17 -24
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/package.json +0 -3
- package/components/page/left-panel/bundles/index.umd.js +30 -30
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +31 -31
- package/components/page/left-panel/fesm2022/index.mjs +31 -31
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/package.json +0 -3
- package/components/page/right-panel/bundles/index.umd.js +23 -23
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +24 -24
- package/components/page/right-panel/fesm2022/index.mjs +24 -24
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/package.json +0 -3
- package/components/page/top-nav/bundles/index.umd.js +20 -20
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +21 -21
- package/components/page/top-nav/fesm2022/index.mjs +21 -21
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/package.json +0 -3
- package/components/prefab/bundles/index.umd.js +41 -41
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +20 -20
- package/components/prefab/esm2022/prefab.directive.mjs +23 -23
- package/components/prefab/fesm2022/index.mjs +42 -42
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/package.json +0 -3
- package/core/bundles/index.umd.js +80 -61
- package/core/esm2022/services/constant.service.mjs +7 -7
- package/core/esm2022/services/custom-icons-loader.service.mjs +7 -7
- package/core/esm2022/services/field-type.service.mjs +7 -7
- package/core/esm2022/services/field-widget.service.mjs +7 -7
- package/core/esm2022/services/pagination.service.mjs +7 -7
- package/core/esm2022/services/script-loader.service.mjs +7 -7
- package/core/esm2022/services/state-persistence.service.mjs +7 -7
- package/core/esm2022/services/user-custom-pipe-manager.service.mjs +7 -7
- package/core/esm2022/services/utils.service.mjs +7 -7
- package/core/esm2022/services/viewport.service.mjs +7 -7
- package/core/esm2022/types/types.mjs +1 -1
- package/core/esm2022/utils/build-utils.mjs +21 -2
- package/core/fesm2022/index.mjs +80 -61
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/package.json +3 -6
- package/core/types/types.d.ts +3 -1
- package/http/bundles/index.umd.js +8 -8
- package/http/esm2022/http.service.mjs +9 -9
- package/http/fesm2022/index.mjs +8 -8
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/package.json +2 -5
- package/locales/moment/ar-dz.js +8 -8
- package/locales/moment/ar-ly.js +8 -8
- package/locales/moment/ar-ps.js +123 -0
- package/locales/moment/ar.js +8 -8
- package/locales/moment/be.js +2 -2
- package/locales/moment/bs.js +14 -4
- package/locales/moment/ca.js +6 -6
- package/locales/moment/cs.js +5 -4
- package/locales/moment/cv.js +2 -2
- package/locales/moment/en-au.js +6 -6
- package/locales/moment/en-ca.js +6 -6
- package/locales/moment/en-gb.js +6 -6
- package/locales/moment/en-ie.js +6 -6
- package/locales/moment/en-il.js +6 -6
- package/locales/moment/en-in.js +6 -6
- package/locales/moment/en-nz.js +6 -6
- package/locales/moment/en-sg.js +6 -6
- package/locales/moment/it.js +4 -4
- package/locales/moment/ku-kmr.js +125 -0
- package/locales/moment/lt.js +2 -2
- package/locales/moment/me.js +2 -2
- package/locales/moment/nb.js +4 -4
- package/locales/moment/nl-be.js +1 -1
- package/locales/moment/nl.js +1 -1
- package/locales/moment/oc-lnc.js +6 -6
- package/locales/moment/ru.js +2 -2
- package/locales/moment/sv.js +6 -6
- package/locales/moment/tet.js +6 -6
- package/locales/moment/tlh.js +8 -8
- package/locales/moment/tzl.js +2 -2
- package/locales/moment/uk.js +4 -4
- package/locales/moment/x-pseudo.js +6 -6
- package/locales/moment-timezone/moment-timezone-with-data.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +5 -5
- package/oAuth/esm2022/oAuth.service.mjs +6 -6
- package/oAuth/fesm2022/index.mjs +5 -5
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/package.json +2 -5
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +3163 -3100
- package/runtime/base/components/empty-component/empty-page.component.d.ts +1 -0
- package/runtime/base/esm2022/components/app-component/app.component.mjs +14 -95
- package/runtime/base/esm2022/components/app-spinner.component.mjs +34 -45
- package/runtime/base/esm2022/components/base-custom-widget.component.mjs +8 -7
- package/runtime/base/esm2022/components/base-layout.component.mjs +14 -21
- package/runtime/base/esm2022/components/base-page.component.mjs +12 -19
- package/runtime/base/esm2022/components/base-partial.component.mjs +9 -14
- package/runtime/base/esm2022/components/base-prefab.component.mjs +9 -14
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +12 -19
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +30 -52
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +33 -15
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +19 -26
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +17 -17
- package/runtime/base/esm2022/directives/prefab.directive.mjs +15 -15
- package/runtime/base/esm2022/guards/auth.guard.mjs +6 -6
- package/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +11 -11
- package/runtime/base/esm2022/guards/page-not-found.guard.mjs +6 -6
- package/runtime/base/esm2022/guards/role.guard.mjs +6 -6
- package/runtime/base/esm2022/overrides/wm_dom_renderer.mjs +12 -12
- package/runtime/base/esm2022/overrides/wm_shared_styles_host.mjs +14 -14
- package/runtime/base/esm2022/public_api.mjs +5 -2
- package/runtime/base/esm2022/resolves/app-before-load.resolve.mjs +22 -0
- package/runtime/base/esm2022/resolves/app-extension.resolve.mjs +6 -6
- package/runtime/base/esm2022/resolves/app-js.resolve.mjs +6 -6
- package/runtime/base/esm2022/resolves/app-variables.resolve.mjs +9 -9
- package/runtime/base/esm2022/resolves/i18n.resolve.mjs +6 -6
- package/runtime/base/esm2022/resolves/metadata.resolve.mjs +9 -9
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +9 -9
- package/runtime/base/esm2022/runtime-base.module.mjs +457 -316
- package/runtime/base/esm2022/services/app-defaults.service.mjs +6 -6
- package/runtime/base/esm2022/services/app.manager.service.mjs +25 -9
- package/runtime/base/esm2022/services/app.service.mjs +40 -18
- package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +6 -6
- package/runtime/base/esm2022/services/http-interceptor.services.mjs +6 -6
- package/runtime/base/esm2022/services/i18n.service.mjs +37 -34
- package/runtime/base/esm2022/services/navigation.service.mjs +6 -6
- package/runtime/base/esm2022/services/pipe-provider.service.mjs +13 -13
- package/runtime/base/esm2022/services/pipe.service.mjs +10 -8
- package/runtime/base/esm2022/services/prefab-manager.service.mjs +6 -6
- package/runtime/base/esm2022/services/spinner.service.mjs +6 -6
- package/runtime/base/esm2022/services/toaster.service.mjs +6 -6
- package/runtime/base/esm2022/util/fragment-monitor.mjs +6 -6
- package/runtime/base/esm2022/util/utils.mjs +15 -1
- package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +1 -1
- package/runtime/base/fesm2022/index.mjs +3146 -3071
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/package.json +2 -5
- package/runtime/base/public_api.d.ts +4 -1
- package/runtime/base/resolves/app-before-load.resolve.d.ts +11 -0
- package/runtime/base/runtime-base.module.d.ts +96 -59
- package/runtime/base/services/app.manager.service.d.ts +2 -1
- package/runtime/base/services/app.service.d.ts +4 -2
- package/runtime/base/services/i18n.service.d.ts +2 -1
- package/runtime/base/util/utils.d.ts +2 -1
- package/runtime/dynamic/app/app.config.d.ts +1 -1
- package/runtime/dynamic/app/services/app-variables-provider.service.d.ts +3 -1
- package/runtime/dynamic/bundles/index.umd.js +145 -114
- package/runtime/dynamic/esm2022/app/app.config.mjs +11 -10
- package/runtime/dynamic/esm2022/app/app.module.mjs +35 -5
- package/runtime/dynamic/esm2022/app/app.routes.mjs +2 -11
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +11 -16
- package/runtime/dynamic/esm2022/app/services/app-extension.service.mjs +9 -9
- package/runtime/dynamic/esm2022/app/services/app-js-provider.service.mjs +9 -9
- package/runtime/dynamic/esm2022/app/services/app-resource-manager.service.mjs +6 -6
- package/runtime/dynamic/esm2022/app/services/app-variables-provider.service.mjs +15 -11
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +57 -8
- package/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +6 -6
- package/runtime/dynamic/esm2022/app/services/prefab-config-provider.service.mjs +6 -6
- package/runtime/dynamic/fesm2022/index.mjs +143 -88
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/runtime/dynamic/package.json +2 -5
- package/scripts/datatable/datatable.js +26 -5
- package/scripts/jquery-ui/ui/widgets/droppable.js +3 -3
- package/scripts/jquery-ui/ui/widgets/resizable.js +72 -19
- package/scripts/jquery-ui/ui/widgets/sortable.js +9 -16
- package/security/bundles/index.umd.js +5 -5
- package/security/esm2022/security.service.mjs +6 -6
- package/security/fesm2022/index.mjs +5 -5
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/package.json +2 -5
- package/swipey/fesm2022/index.mjs.map +1 -1
- package/swipey/package.json +2 -5
- package/transpiler/build.d.ts +1 -1
- package/transpiler/bundles/index.umd.js +94 -56
- package/transpiler/esm2022/build.mjs +5 -2
- package/transpiler/esm2022/imports.mjs +92 -57
- package/transpiler/fesm2022/index.mjs +94 -56
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/transpiler/package.json +3 -6
- package/variables/bundles/index.umd.js +20 -10
- package/variables/constants/variables.constants.d.ts +9 -0
- package/variables/esm2022/constants/variables.constants.mjs +10 -1
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +6 -6
- package/variables/esm2022/service/variables.service.mjs +6 -6
- package/variables/fesm2022/index.mjs +20 -11
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/package.json +2 -5
- package/variables/service/variables.service.d.ts +1 -1
- package/build-task/esm2022/basic/default/anchor/anchor.build.mjs +0 -15
- package/build-task/esm2022/basic/default/audio/audio.build.mjs +0 -10
- package/build-task/esm2022/basic/default/html/html.build.mjs +0 -15
- package/build-task/esm2022/basic/default/icon/icon.build.mjs +0 -10
- package/build-task/esm2022/basic/default/iframe/iframe.build.mjs +0 -10
- package/build-task/esm2022/basic/default/label/label.build.mjs +0 -25
- package/build-task/esm2022/basic/default/picture/picture.build.mjs +0 -14
- package/build-task/esm2022/basic/default/spinner/spinner.build.mjs +0 -15
- package/build-task/esm2022/basic/default/video/video.build.mjs +0 -10
- package/components/base/components.module.d.ts +0 -25
- package/components/base/esm2022/components.module.mjs +0 -152
- package/components/basic/default/bundles/index.umd.js +0 -1036
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +0 -198
- package/components/basic/default/esm2022/anchor/anchor.props.mjs +0 -27
- package/components/basic/default/esm2022/audio/audio.component.mjs +0 -59
- package/components/basic/default/esm2022/audio/audio.props.mjs +0 -19
- package/components/basic/default/esm2022/html/html.directive.mjs +0 -76
- package/components/basic/default/esm2022/html/html.props.mjs +0 -12
- package/components/basic/default/esm2022/icon/icon.component.mjs +0 -70
- package/components/basic/default/esm2022/icon/icon.props.mjs +0 -19
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +0 -85
- package/components/basic/default/esm2022/iframe/iframe.props.mjs +0 -15
- package/components/basic/default/esm2022/label/label.directive.mjs +0 -71
- package/components/basic/default/esm2022/label/label.props.mjs +0 -17
- package/components/basic/default/esm2022/picture/picture.directive.mjs +0 -95
- package/components/basic/default/esm2022/picture/picture.props.mjs +0 -23
- package/components/basic/default/esm2022/public_api.mjs +0 -10
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +0 -130
- package/components/basic/default/esm2022/spinner/spinner.props.mjs +0 -20
- package/components/basic/default/esm2022/video/video.component.mjs +0 -113
- package/components/basic/default/esm2022/video/video.props.mjs +0 -24
- package/components/basic/default/fesm2022/index.mjs +0 -1012
- package/components/basic/default/fesm2022/index.mjs.map +0 -1
- package/components/basic/default/public_api.d.ts +0 -9
- package/components/basic/progress/bundles/index.umd.js +0 -361
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +0 -154
- package/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +0 -132
- package/components/basic/progress/esm2022/public_api.mjs +0 -3
- package/components/basic/progress/esm2022/utils.mjs +0 -25
- package/components/basic/progress/fesm2022/index.mjs +0 -344
- package/components/basic/progress/fesm2022/index.mjs.map +0 -1
- package/components/basic/progress/public_api.d.ts +0 -2
- package/components/input/default/bundles/index.umd.js +0 -3559
- package/components/input/default/esm2022/base-form-custom.component.mjs +0 -94
- package/components/input/default/esm2022/base-form.component.mjs +0 -110
- package/components/input/default/esm2022/button/button.component.mjs +0 -106
- package/components/input/default/esm2022/button/button.props.mjs +0 -26
- package/components/input/default/esm2022/button-group/button-group.directive.mjs +0 -51
- package/components/input/default/esm2022/button-group/button-group.props.mjs +0 -10
- package/components/input/default/esm2022/caption-position.directive.mjs +0 -172
- package/components/input/default/esm2022/checkbox/checkbox.component.mjs +0 -179
- package/components/input/default/esm2022/checkbox/checkbox.props.mjs +0 -27
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +0 -268
- package/components/input/default/esm2022/checkboxset/checkboxset.props.mjs +0 -35
- package/components/input/default/esm2022/composite/composite.directive.mjs +0 -84
- package/components/input/default/esm2022/composite/composite.props.mjs +0 -10
- package/components/input/default/esm2022/dataset-aware-form.component.mjs +0 -307
- package/components/input/default/esm2022/number/number.component.mjs +0 -68
- package/components/input/default/esm2022/number/number.props.mjs +0 -35
- package/components/input/default/esm2022/public_api.mjs +0 -21
- package/components/input/default/esm2022/radioset/radioset.component.mjs +0 -251
- package/components/input/default/esm2022/radioset/radioset.props.mjs +0 -35
- package/components/input/default/esm2022/select/select.component.mjs +0 -230
- package/components/input/default/esm2022/select/select.props.mjs +0 -36
- package/components/input/default/esm2022/switch/switch.component.mjs +0 -227
- package/components/input/default/esm2022/switch/switch.props.mjs +0 -28
- package/components/input/default/esm2022/text/base/base-input.mjs +0 -93
- package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +0 -69
- package/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +0 -30
- package/components/input/default/esm2022/text/color/input-color.component.mjs +0 -69
- package/components/input/default/esm2022/text/color/input-color.props.mjs +0 -27
- package/components/input/default/esm2022/text/email/input-email.component.mjs +0 -68
- package/components/input/default/esm2022/text/email/input-email.props.mjs +0 -29
- package/components/input/default/esm2022/text/locale/number-locale.mjs +0 -539
- package/components/input/default/esm2022/text/number/input-number.component.mjs +0 -79
- package/components/input/default/esm2022/text/number/input-number.props.mjs +0 -32
- package/components/input/default/esm2022/text/text/input-text.component.mjs +0 -145
- package/components/input/default/esm2022/text/text/input-text.props.mjs +0 -46
- package/components/input/default/esm2022/textarea/textarea.component.mjs +0 -85
- package/components/input/default/esm2022/textarea/textarea.props.mjs +0 -30
- package/components/input/default/fesm2022/index.mjs +0 -3529
- package/components/input/default/fesm2022/index.mjs.map +0 -1
- package/components/input/default/public_api.d.ts +0 -20
- package/components/input/epoch/bundles/index.umd.js +0 -3292
- package/components/input/epoch/esm2022/date/date.component.mjs +0 -376
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +0 -473
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +0 -563
- package/components/input/epoch/esm2022/picker/picker.component.mjs +0 -184
- package/components/input/epoch/esm2022/public_api.mjs +0 -6
- package/components/input/epoch/esm2022/time/time.component.mjs +0 -432
- package/components/input/epoch/fesm2022/index.mjs +0 -3280
- package/components/input/epoch/fesm2022/index.mjs.map +0 -1
- package/components/input/epoch/public_api.d.ts +0 -5
- /package/build-task/basic/{default/anchor → anchor}/anchor.build.d.ts +0 -0
- /package/build-task/basic/{default/audio → audio}/audio.build.d.ts +0 -0
- /package/build-task/basic/{default/html → html}/html.build.d.ts +0 -0
- /package/build-task/basic/{default/icon → icon}/icon.build.d.ts +0 -0
- /package/build-task/basic/{default/iframe → iframe}/iframe.build.d.ts +0 -0
- /package/build-task/basic/{default/label → label}/label.build.d.ts +0 -0
- /package/build-task/basic/{default/picture → picture}/picture.build.d.ts +0 -0
- /package/build-task/basic/{default/spinner → spinner}/spinner.build.d.ts +0 -0
- /package/build-task/basic/{default/video → video}/video.build.d.ts +0 -0
- /package/components/basic/{default → anchor}/.npmignore +0 -0
- /package/components/basic/{default/anchor → anchor}/anchor.component.d.ts +0 -0
- /package/components/basic/{default/anchor → anchor}/anchor.props.d.ts +0 -0
- /package/components/basic/{progress → audio}/.npmignore +0 -0
- /package/components/basic/{default/audio → audio}/audio.component.d.ts +0 -0
- /package/components/basic/{default/audio → audio}/audio.props.d.ts +0 -0
- /package/components/{input/default → basic/html}/.npmignore +0 -0
- /package/components/basic/{default/html → html}/html.directive.d.ts +0 -0
- /package/components/basic/{default/html → html}/html.props.d.ts +0 -0
- /package/components/{input/epoch → basic/icon}/.npmignore +0 -0
- /package/components/basic/{default/icon → icon}/icon.component.d.ts +0 -0
- /package/components/basic/{default/icon → icon}/icon.props.d.ts +0 -0
- /package/components/basic/{default/iframe → iframe}/iframe.component.d.ts +0 -0
- /package/components/basic/{default/iframe → iframe}/iframe.props.d.ts +0 -0
- /package/components/basic/{default/label → label}/label.props.d.ts +0 -0
- /package/components/basic/{default/picture → picture}/picture.directive.d.ts +0 -0
- /package/components/basic/{default/picture → picture}/picture.props.d.ts +0 -0
- /package/components/basic/progress/{utils.d.ts → progress-utils/progress-utils.d.ts} +0 -0
- /package/components/basic/{default/spinner → spinner}/spinner.component.d.ts +0 -0
- /package/components/basic/{default/spinner → spinner}/spinner.props.d.ts +0 -0
- /package/components/basic/{default/video → video}/video.component.d.ts +0 -0
- /package/components/basic/{default/video → video}/video.props.d.ts +0 -0
- /package/components/input/{default → base-form}/base-form.component.d.ts +0 -0
- /package/components/input/{default/button → button}/button.component.d.ts +0 -0
- /package/components/input/{default/button → button}/button.props.d.ts +0 -0
- /package/components/input/{default/button-group → button-group}/button-group.directive.d.ts +0 -0
- /package/components/input/{default/button-group → button-group}/button-group.props.d.ts +0 -0
- /package/components/input/{default → caption-position}/caption-position.directive.d.ts +0 -0
- /package/components/input/{default/checkbox → checkbox}/checkbox.props.d.ts +0 -0
- /package/components/input/{default/checkboxset → checkboxset}/checkboxset.props.d.ts +0 -0
- /package/components/input/{default/composite → composite}/composite.directive.d.ts +0 -0
- /package/components/input/{default/composite → composite}/composite.props.d.ts +0 -0
- /package/components/input/epoch/{date-time → date-time-picker}/date-time-picker.component.d.ts +0 -0
- /package/components/input/{default/number → number}/number.props.d.ts +0 -0
- /package/components/input/{default/radioset → radioset}/radioset.props.d.ts +0 -0
- /package/components/input/{default/select → select}/select.props.d.ts +0 -0
- /package/components/input/{default/switch → switch}/switch.props.d.ts +0 -0
- /package/components/input/{default/text/calendar → text/input-calendar}/input-calendar.props.d.ts +0 -0
- /package/components/input/{default/text/color → text/input-color}/input-color.props.d.ts +0 -0
- /package/components/input/{default/text/email → text/input-email}/input-email.props.d.ts +0 -0
- /package/components/input/{default/text/number → text/input-number}/input-number.props.d.ts +0 -0
- /package/components/input/{default/text/text → text/input-text}/input-text.props.d.ts +0 -0
- /package/components/input/{default/textarea → textarea}/textarea.props.d.ts +0 -0
|
@@ -0,0 +1,1054 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Inject, Optional, Injectable, Injector, ViewChild, Component } from '@angular/core';
|
|
3
|
+
import { switchClass, $appDigest, addClass, isDefined, AbstractI18nService, FormWidgetType } from '@wm/core';
|
|
4
|
+
import { styler, WidgetConfig, INPUTMODE, TrailingZeroDecimalPipe, PROP_BOOLEAN, PROP_STRING, PROP_ANY, PROP_NUMBER, register, provideAs, provideAsWidgetRef, registerFormWidget } from '@wm/components/base';
|
|
5
|
+
import { BaseFormCustomComponent } from '@wm/components/input/base-form-custom';
|
|
6
|
+
import { isString, get, includes, isUndefined, isNull, round, intersection, toArray } from 'lodash-es';
|
|
7
|
+
import { __decorate, __param, __metadata } from 'tslib';
|
|
8
|
+
import * as i1 from '@angular/common';
|
|
9
|
+
import { getLocaleNumberSymbol, NumberSymbol, CommonModule } from '@angular/common';
|
|
10
|
+
import * as i2 from '@angular/forms';
|
|
11
|
+
import { FormsModule, NgModel, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
12
|
+
import * as i3 from 'angular-imask';
|
|
13
|
+
import { IMaskModule, IMaskDirective } from 'angular-imask';
|
|
14
|
+
|
|
15
|
+
class BaseInput extends BaseFormCustomComponent {
|
|
16
|
+
onPropertyChange(key, nv, ov) {
|
|
17
|
+
// set the class on the input element
|
|
18
|
+
if (key === 'tabindex') {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (key === 'required') {
|
|
22
|
+
/* WMS-18269 | Update Angular about the required attr value change */
|
|
23
|
+
this._onChange(this.datavalue);
|
|
24
|
+
}
|
|
25
|
+
if (key === 'updateon') {
|
|
26
|
+
this.ngModelOptions.updateOn = nv === 'default' ? 'change' : 'blur';
|
|
27
|
+
}
|
|
28
|
+
if (key === 'class') {
|
|
29
|
+
if (this.inputEl.nativeElement) {
|
|
30
|
+
switchClass(this.inputEl.nativeElement, nv, ov);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else if (key === 'datavalue') {
|
|
34
|
+
// update the oldDataValue when the datavalue is modified programmatically
|
|
35
|
+
this.updatePrevDatavalue(nv);
|
|
36
|
+
this._onChange(this.datavalue);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
super.onPropertyChange(key, nv, ov);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// invoke the change callback
|
|
43
|
+
handleChange(newValue) {
|
|
44
|
+
if (this.autotrim && this.datavalue && isString(this.datavalue)) {
|
|
45
|
+
this.datavalue = this.datavalue.trim();
|
|
46
|
+
}
|
|
47
|
+
this.invokeOnChange(this.datavalue, { type: 'change' }, this.ngModel.valid);
|
|
48
|
+
}
|
|
49
|
+
// Change event is registered from the template, Prevent the framework from registering one more event
|
|
50
|
+
handleEvent(node, eventName, eventCallback, locals) {
|
|
51
|
+
if (eventName !== 'change' && eventName !== 'blur') {
|
|
52
|
+
super.handleEvent(this.inputEl.nativeElement, eventName, eventCallback, locals);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// invoke the blur callback
|
|
56
|
+
handleBlur($event) {
|
|
57
|
+
this.invokeOnTouched($event);
|
|
58
|
+
}
|
|
59
|
+
// Update the model on enter key press
|
|
60
|
+
flushViewChanges(val) {
|
|
61
|
+
// when val contains masked value, update the model with unmasked value
|
|
62
|
+
const unMaskedVal = get(this.imask, 'maskRef.unmaskedValue');
|
|
63
|
+
val = unMaskedVal ? unMaskedVal : val;
|
|
64
|
+
this.ngModel.update.next(val);
|
|
65
|
+
$appDigest();
|
|
66
|
+
}
|
|
67
|
+
ngAfterViewInit() {
|
|
68
|
+
super.ngAfterViewInit();
|
|
69
|
+
// add the class on the input element
|
|
70
|
+
if (this.class) {
|
|
71
|
+
addClass(this.inputEl.nativeElement, this.class);
|
|
72
|
+
}
|
|
73
|
+
styler(this.inputEl.nativeElement, this);
|
|
74
|
+
}
|
|
75
|
+
constructor(inj, config, explicitContext) {
|
|
76
|
+
super(inj, config, explicitContext);
|
|
77
|
+
// possible values for ngModelOptions are 'blur' and 'change'
|
|
78
|
+
// default is 'blur'
|
|
79
|
+
this.ngModelOptions = {
|
|
80
|
+
updateOn: '',
|
|
81
|
+
standalone: true
|
|
82
|
+
};
|
|
83
|
+
let updateOn = this.nativeElement.getAttribute('updateon') || 'blur';
|
|
84
|
+
updateOn = updateOn === 'default' ? 'change' : updateOn;
|
|
85
|
+
this.ngModelOptions.updateOn = updateOn;
|
|
86
|
+
}
|
|
87
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseInput, deps: [{ token: i0.Injector }, { token: WidgetConfig }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
88
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseInput }); }
|
|
89
|
+
}
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseInput, decorators: [{
|
|
91
|
+
type: Injectable
|
|
92
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
93
|
+
type: Inject,
|
|
94
|
+
args: [WidgetConfig]
|
|
95
|
+
}] }, { type: undefined, decorators: [{
|
|
96
|
+
type: Inject,
|
|
97
|
+
args: ['EXPLICIT_CONTEXT']
|
|
98
|
+
}, {
|
|
99
|
+
type: Optional
|
|
100
|
+
}] }] });
|
|
101
|
+
|
|
102
|
+
let NumberLocale = class NumberLocale extends BaseInput {
|
|
103
|
+
constructor(inj, config, i18nService, trailingZeroDecimalPipe, explicitContext) {
|
|
104
|
+
super(inj, config, explicitContext);
|
|
105
|
+
this.i18nService = i18nService;
|
|
106
|
+
this.trailingZeroDecimalPipe = trailingZeroDecimalPipe;
|
|
107
|
+
this.isDefaultQuery = true;
|
|
108
|
+
this.decimalValue = '';
|
|
109
|
+
this.selectedLocale = i18nService.getSelectedLocale();
|
|
110
|
+
this.DECIMAL = getLocaleNumberSymbol(this.localefilter || this.selectedLocale, NumberSymbol.Decimal);
|
|
111
|
+
this.GROUP = getLocaleNumberSymbol(this.localefilter || this.selectedLocale, NumberSymbol.Group);
|
|
112
|
+
this.numberfilter = '1.0-16';
|
|
113
|
+
this.resetValidations();
|
|
114
|
+
}
|
|
115
|
+
// Setter for the datavalue.
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
set datavalue(value) {
|
|
118
|
+
this.lastValIsDecimal = false;
|
|
119
|
+
// set text value to null if data value is empty.
|
|
120
|
+
// @ts-ignore
|
|
121
|
+
if (includes([null, undefined, ''], value)) {
|
|
122
|
+
const input = this.inputEl.nativeElement;
|
|
123
|
+
const prevDataValue = this.prevDatavalue;
|
|
124
|
+
this.displayValue = input.value = this.proxyModel = null;
|
|
125
|
+
this.resetValidations();
|
|
126
|
+
// Fix for [WMS-27648]: When a decimal value is entered (e.g., "3."), datavalue and prevDatavalue become null as it is an invalid number.
|
|
127
|
+
// handleChange() should be called when the invalid datavalue (e.g., "3.") is removed, and the value becomes an empty string ("").
|
|
128
|
+
if ((prevDataValue || prevDataValue == 0 || prevDataValue == null) && !this.isDefaultQuery) {
|
|
129
|
+
this.handleChange(value);
|
|
130
|
+
this._onChange();
|
|
131
|
+
}
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
// if the widget has default value and if we change the locale, the value should be in selected locale format.
|
|
135
|
+
if (this.isDefaultQuery) {
|
|
136
|
+
const isLocalizedNumber = isString(value) && includes(value, this.DECIMAL);
|
|
137
|
+
const parts = isLocalizedNumber ? value.split(this.DECIMAL) : isString(value) && value.split('.');
|
|
138
|
+
let decimalPlacesAttrVal = this.getAttr('decimalplaces');
|
|
139
|
+
const decimalplaces = decimalPlacesAttrVal !== '' && decimalPlacesAttrVal !== undefined ? Number(decimalPlacesAttrVal) : NaN;
|
|
140
|
+
if (this.inputmode === INPUTMODE.NATURAL && !isNaN(decimalplaces)) {
|
|
141
|
+
if (decimalplaces === 0) {
|
|
142
|
+
this.decimalValue = '';
|
|
143
|
+
value = isLocalizedNumber ? parts[0] : this.transformNumber(parts[0]);
|
|
144
|
+
}
|
|
145
|
+
if (decimalplaces > 0) {
|
|
146
|
+
this.decimalValue = parts[1] && parts[1].substring(0, decimalplaces) || '';
|
|
147
|
+
if (isLocalizedNumber) {
|
|
148
|
+
value = this.decimalValue.length ? `${parts[0]}${this.DECIMAL}${this.decimalValue}` : parts[0];
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
value = Number.parseFloat(String(value)).toFixed(decimalplaces);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
this.decimalValue = parts[1] || '';
|
|
157
|
+
value = isLocalizedNumber ? value : this.transformNumber(value);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
const numberReg = /\d/;
|
|
161
|
+
const strVal = value.toString();
|
|
162
|
+
let model;
|
|
163
|
+
// When the input value only contains seperator, do not convert the sepertaor into 0
|
|
164
|
+
if (numberReg.test(strVal)) {
|
|
165
|
+
model = this.parseNumber(strVal);
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
model = NaN;
|
|
169
|
+
}
|
|
170
|
+
// On keypress, if the user types a decimal and is still active on the input do not throw error.
|
|
171
|
+
if (isNaN(model) && strVal[strVal.length - 1] === this.DECIMAL && this.ngModelOptions.updateOn === 'change' && this.$element.find('input:focus').length) {
|
|
172
|
+
this.lastValIsDecimal = true;
|
|
173
|
+
}
|
|
174
|
+
// get a valid number form the text.
|
|
175
|
+
// if the number is valid or if number is not in range update the model value.
|
|
176
|
+
if (!this.lastValIsDecimal && this.isValid(model)) {
|
|
177
|
+
this.proxyModel = model;
|
|
178
|
+
// update the display value in the text box.
|
|
179
|
+
this.updateDisplayText();
|
|
180
|
+
// Do not trigger onchange event for default value
|
|
181
|
+
if (!this.isDefaultQuery) {
|
|
182
|
+
this.handleChange(model);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this.displayValue = value.toString();
|
|
187
|
+
this.proxyModel = null;
|
|
188
|
+
this.handleChange(null);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
// returns the actual model value of the widget.
|
|
192
|
+
get datavalue() {
|
|
193
|
+
return this.proxyModel;
|
|
194
|
+
}
|
|
195
|
+
// resets all the flags related to the widget's validation.
|
|
196
|
+
resetValidations() {
|
|
197
|
+
this.isInvalidNumber = false;
|
|
198
|
+
this.numberNotInRange = false;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Adds validations for the number before updating the widget model. like validating min and max value for the widget.
|
|
202
|
+
* @param {number} val number to be validated
|
|
203
|
+
* @returns {number}
|
|
204
|
+
*/
|
|
205
|
+
isValid(val) {
|
|
206
|
+
// id number is infinite then consider it as invalid value
|
|
207
|
+
let invalidDecimalPlaces = false;
|
|
208
|
+
if (this.inputmode === INPUTMODE.NATURAL && !isNaN(this.decimalplaces) && this.decimalplaces >= 0) {
|
|
209
|
+
invalidDecimalPlaces = this.countDecimals(val) > this.decimalplaces;
|
|
210
|
+
}
|
|
211
|
+
else if (!Number.isInteger(this.step) && this.countDecimals(val) > this.countDecimals(this.step)) {
|
|
212
|
+
invalidDecimalPlaces = true;
|
|
213
|
+
}
|
|
214
|
+
if (isNaN(val) || !isFinite(val) || invalidDecimalPlaces) {
|
|
215
|
+
this.isInvalidNumber = true;
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
if (val !== this.getValueInRange(val)) {
|
|
219
|
+
this.numberNotInRange = true;
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
this.resetValidations();
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* returns a valid number by validating the minimum and maximum values.
|
|
227
|
+
* @param {number} value
|
|
228
|
+
* @returns {number}
|
|
229
|
+
*/
|
|
230
|
+
getValueInRange(value) {
|
|
231
|
+
if (!isNaN(this.minvalue) && value < this.minvalue) {
|
|
232
|
+
this.validateType = 'minvalue';
|
|
233
|
+
return this.minvalue;
|
|
234
|
+
}
|
|
235
|
+
if (!isNaN(this.maxvalue) && value > this.maxvalue) {
|
|
236
|
+
this.validateType = 'maxvalue';
|
|
237
|
+
return this.maxvalue;
|
|
238
|
+
}
|
|
239
|
+
return value;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* convert number to localized number using angular decimal pipe. eg 10,00,000 or 1,000,000
|
|
243
|
+
* @param number
|
|
244
|
+
* @returns {string}
|
|
245
|
+
*/
|
|
246
|
+
transformNumber(number, numberfilter) {
|
|
247
|
+
const filterVal = numberfilter ? numberfilter : this.numberfilter;
|
|
248
|
+
return this.trailingZeroDecimalPipe.transform(number, this.selectedLocale, filterVal, this.localefilter, this.trailingzero, this.decimalValue, !!numberfilter, this.i18nService?.getwidgetLocale());
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* resets the cursor position in the text box.
|
|
252
|
+
* @param {number} value cursor position index form left to right.
|
|
253
|
+
*/
|
|
254
|
+
resetCursorPosition(value) {
|
|
255
|
+
const input = this.inputEl.nativeElement;
|
|
256
|
+
// position of the cursor should be given form right to left.
|
|
257
|
+
let position = input.value.length - value;
|
|
258
|
+
position = position < 0 ? 0 : position;
|
|
259
|
+
// set the cursor position in the text box.
|
|
260
|
+
input.setSelectionRange(position, position);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Method parses the Localized number(string) to a valid number.
|
|
264
|
+
* if the string dose not result to a valid number then returns NaN.
|
|
265
|
+
* @param {string} val Localized number.
|
|
266
|
+
* @returns {number}
|
|
267
|
+
*/
|
|
268
|
+
parseNumber(val) {
|
|
269
|
+
// WMS-22179: split number based on the decimal separator in the val
|
|
270
|
+
// splits string into two parts. decimal and number.
|
|
271
|
+
const parts = val.split(this.inputmode === INPUTMODE.FINANCIAL ? (val.indexOf(this.DECIMAL) > -1 ? this.DECIMAL : '.') : this.DECIMAL);
|
|
272
|
+
if (!parts.length) {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
if (parts.length > 2) {
|
|
276
|
+
return NaN;
|
|
277
|
+
}
|
|
278
|
+
// If number have decimal point and not have a decimal value then return.
|
|
279
|
+
if (parts[1] === '') {
|
|
280
|
+
return NaN;
|
|
281
|
+
}
|
|
282
|
+
// replaces all group separators form the number.
|
|
283
|
+
const number = Number(parts[0].split(this.GROUP).join(''));
|
|
284
|
+
const decimal = Number(`0.${parts[1] || 0}`);
|
|
285
|
+
if (Number.isNaN(number) || Number.isNaN(decimal)) {
|
|
286
|
+
return NaN;
|
|
287
|
+
}
|
|
288
|
+
const sum = parts.length > 1 ? parseFloat((number + decimal).toFixed(parts[1].length)) : number + decimal;
|
|
289
|
+
// if the number is negative then calculate the number as number - decimal
|
|
290
|
+
// Ex: number = -123 and decimal = 0.45 then number - decimal = -123-045 = -123.45
|
|
291
|
+
// If entered number is -0.1 to -0.9 then the number is -0 and decimal is 0.1 to 0.9. Now calaculate the number as number-decimal
|
|
292
|
+
// Ex: number = -0 and decimal = 0.1 then number-decimal = -0-0.1 = -0.1
|
|
293
|
+
if (number === 0) {
|
|
294
|
+
return Object.is(0, number) ? sum : number - decimal;
|
|
295
|
+
}
|
|
296
|
+
return number > 0 ? sum : number - decimal;
|
|
297
|
+
}
|
|
298
|
+
// updates the widgets text value.
|
|
299
|
+
updateDisplayText() {
|
|
300
|
+
const input = this.inputEl.nativeElement;
|
|
301
|
+
const position = input.selectionStart;
|
|
302
|
+
const preValue = input.value;
|
|
303
|
+
if (!this.isDefaultQuery) {
|
|
304
|
+
const parts = preValue.split(this.DECIMAL);
|
|
305
|
+
this.decimalValue = parts[1] || '';
|
|
306
|
+
}
|
|
307
|
+
const stepVal = this.stepLength();
|
|
308
|
+
if (this.inputmode === INPUTMODE.FINANCIAL && stepVal) {
|
|
309
|
+
this.displayValue = input.value = this.transformNumber(this.proxyModel, `1.${stepVal}-${stepVal}`);
|
|
310
|
+
this.decimalValue = this.decimalValue.replace(/\D/g, '');
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
this.displayValue = input.value = this.transformNumber(this.proxyModel);
|
|
314
|
+
}
|
|
315
|
+
// in safari browser, setSelectionRange will focus the input by default, which may invoke the focus event on widget.
|
|
316
|
+
// Hence preventing the setSelectionRange when default value is set i.e. widget is not focused.
|
|
317
|
+
if (this.updateon === 'default' && !this.isDefaultQuery) {
|
|
318
|
+
this.resetCursorPosition(preValue.length - position);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
// This function returns the step length set in the studio
|
|
322
|
+
stepLength() {
|
|
323
|
+
if (this.inputmode === 'INPUTMODE.NATURAL' && !isNaN(this.decimalplaces) && this.decimalplaces >= 0) {
|
|
324
|
+
return this.decimalplaces;
|
|
325
|
+
}
|
|
326
|
+
const stepLen = this.step.toString().split('.');
|
|
327
|
+
if (stepLen.length === 1) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
return stepLen[1].length;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
// This function checks if the currency widget has input mode as natural and trailing zero is defined or not
|
|
335
|
+
isNaturalCurrency() {
|
|
336
|
+
return this.inputmode === INPUTMODE.NATURAL && this.widgetType === 'wm-currency' && !!this.trailingzero;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* @param value contains the value entered in the input box
|
|
340
|
+
* This function modifies the user input value, into financial mode.
|
|
341
|
+
* Number starts from highest precesion decimal, on typing number shifts to the left
|
|
342
|
+
*/
|
|
343
|
+
onInputChange(value) {
|
|
344
|
+
const stepVal = this.stepLength();
|
|
345
|
+
const prevDataValue = this.getPrevDataValue();
|
|
346
|
+
// WMS-22355, Trigger change cb if value exists or value is empty but datavalue exists (when value is selected and deleted).
|
|
347
|
+
// Fix for [WMS-27041]: Ensure the change callback for the number widget triggers only on focus out (when updateon is set to blur),
|
|
348
|
+
// not during initial input when the previous value is undefined and the current value is null.
|
|
349
|
+
if (isDefined(value) && (value !== '' || this.datavalue || this.datavalue == 0)) {
|
|
350
|
+
if (this.widgetType === "wm-number") {
|
|
351
|
+
if (this.inputmode == INPUTMODE.FINANCIAL) {
|
|
352
|
+
// Case 1: when there is no default value, prevDataValue is undefined && this.datavalue is null
|
|
353
|
+
// Case 2: when there default value, prevDataValue is equal to this.datavalue
|
|
354
|
+
if (!((prevDataValue == undefined && this.datavalue == null) || (prevDataValue == this.datavalue))) {
|
|
355
|
+
this.handleChange(value);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
if (!(prevDataValue == undefined && this.datavalue == null)) {
|
|
360
|
+
this.handleChange(value);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
else { // currency widget
|
|
365
|
+
this.handleChange(value);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
if (!stepVal || this.inputmode !== INPUTMODE.FINANCIAL) {
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
let financialVal;
|
|
375
|
+
/**
|
|
376
|
+
* If the value is entered by the user, format the input
|
|
377
|
+
* If the value is provided as default value, skip formatting
|
|
378
|
+
*/
|
|
379
|
+
if (this.isDefaultQuery) {
|
|
380
|
+
financialVal = parseFloat(value);
|
|
381
|
+
}
|
|
382
|
+
else {
|
|
383
|
+
const valInWholeNum = parseInt(value.toString().replace(/\D/g, ''));
|
|
384
|
+
financialVal = valInWholeNum * this.step;
|
|
385
|
+
}
|
|
386
|
+
if (!isNaN(financialVal)) {
|
|
387
|
+
// When update on key is set keypress, update the datavalue else update only the display value
|
|
388
|
+
if (this.ngModelOptions.updateOn === 'change') {
|
|
389
|
+
this.datavalue = parseFloat(financialVal.toFixed(stepVal));
|
|
390
|
+
this.handleChange(this.datavalue);
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
this.displayValue = financialVal.toFixed(stepVal);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
else if (this.ngModelOptions.updateOn !== 'blur') {
|
|
397
|
+
this.datavalue = undefined;
|
|
398
|
+
this.handleChange(null);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
// Input mode is financial and trailing zero is set to false, On focus set display val to fixed point notation and On blur strip trailing zeros
|
|
402
|
+
// 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
|
|
403
|
+
checkForTrailingZeros($event) {
|
|
404
|
+
const stepVal = this.stepLength();
|
|
405
|
+
const financialMode = !this.trailingzero && this.inputmode === INPUTMODE.FINANCIAL;
|
|
406
|
+
// If the user's last input is a decimal and not active on input field, throw error
|
|
407
|
+
if (this.lastValIsDecimal) {
|
|
408
|
+
this.onModelChange(this.displayValue);
|
|
409
|
+
}
|
|
410
|
+
if (!financialMode && !this.isNaturalCurrency()) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
if (stepVal && this.datavalue) {
|
|
414
|
+
let numberfilter;
|
|
415
|
+
if ((financialMode && $event.type === 'focus') || (this.isNaturalCurrency() && $event.type === 'blur')) {
|
|
416
|
+
numberfilter = `1.${stepVal}-${stepVal}`;
|
|
417
|
+
}
|
|
418
|
+
this.displayValue = this.transformNumber(this.datavalue, numberfilter);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* returns the number of decimal places a number have.
|
|
423
|
+
* @param value: number
|
|
424
|
+
* @returns {number}
|
|
425
|
+
*/
|
|
426
|
+
countDecimals(value) {
|
|
427
|
+
const num = Number(value);
|
|
428
|
+
if (num === 0) {
|
|
429
|
+
return 0;
|
|
430
|
+
}
|
|
431
|
+
// Convert to number and handle scientific notation
|
|
432
|
+
if (Number.isNaN(num))
|
|
433
|
+
return 0;
|
|
434
|
+
// Get the exponential form to handle scientific notation properly
|
|
435
|
+
const exponentialStr = num.toExponential();
|
|
436
|
+
const match = exponentialStr.match(/^-?\d*\.?(\d+)?e([+-]\d+)$/);
|
|
437
|
+
if (match) {
|
|
438
|
+
const decimals = match[1] ? match[1].length : 0;
|
|
439
|
+
const exponent = parseInt(match[2]);
|
|
440
|
+
return Math.max(0, decimals - exponent);
|
|
441
|
+
}
|
|
442
|
+
// Fallback to regular decimal counting
|
|
443
|
+
const decimalStr = num.toString();
|
|
444
|
+
const isLocalizedNumber = includes(decimalStr, this.DECIMAL);
|
|
445
|
+
const parts = isLocalizedNumber ? decimalStr.split(this.DECIMAL) : decimalStr.split('.');
|
|
446
|
+
return parts[1] ? parts[1].length : 0;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* handles the arrow press event. Increases or decreases the number. triggered fom the template
|
|
450
|
+
* @param $event keyboard event.
|
|
451
|
+
* @param key identifier to increase or decrease the number.
|
|
452
|
+
*/
|
|
453
|
+
onArrowPress($event, key) {
|
|
454
|
+
$event.preventDefault();
|
|
455
|
+
if (this.readonly || this.step === 0) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
const targetVal = $event.target.value.replace(/,/g, '');
|
|
459
|
+
// proxyModel to be updated from $event.target.value if present to support arrow keys when input changes else pick up from this.proxymodel
|
|
460
|
+
let proxyModel;
|
|
461
|
+
if (targetVal && !isNaN(parseFloat(targetVal))) {
|
|
462
|
+
proxyModel = parseFloat(targetVal);
|
|
463
|
+
}
|
|
464
|
+
else {
|
|
465
|
+
proxyModel = this.proxyModel;
|
|
466
|
+
}
|
|
467
|
+
let value;
|
|
468
|
+
// if the number is not in range and when arrow buttons are pressed need to get appropriate number value.
|
|
469
|
+
if (this.numberNotInRange) {
|
|
470
|
+
const inputValue = this.parseNumber(this.inputEl.nativeElement.value);
|
|
471
|
+
// take the textbox value as current model if the value is valid.
|
|
472
|
+
if (!isNaN(inputValue)) {
|
|
473
|
+
value = this.getValueInRange(inputValue);
|
|
474
|
+
proxyModel = inputValue;
|
|
475
|
+
this.resetValidations();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
else {
|
|
479
|
+
if (isUndefined(proxyModel) || isNull(proxyModel)) {
|
|
480
|
+
proxyModel = value = this.getValueInRange((this.minvalue || 0));
|
|
481
|
+
this.resetValidations();
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
value = this.getValueInRange(proxyModel + (key === 'UP' ? this.step : -this.step));
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
if ((key === 'UP' && proxyModel <= value) || (key === 'DOWN' && proxyModel >= value)) {
|
|
488
|
+
const decimalRoundValue = Math.max(this.countDecimals(proxyModel), this.countDecimals(this.step));
|
|
489
|
+
// update the modelProxy.
|
|
490
|
+
this.proxyModel = round(value, decimalRoundValue);
|
|
491
|
+
this.updateDisplayText();
|
|
492
|
+
this.handleChange(this.proxyModel);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
/**
|
|
496
|
+
* method is called from the from widget. to check whether the value entered is valid or not.
|
|
497
|
+
* @returns {object}
|
|
498
|
+
*/
|
|
499
|
+
validate(c) {
|
|
500
|
+
if (this.isInvalidNumber) {
|
|
501
|
+
this.validateType = '';
|
|
502
|
+
return {
|
|
503
|
+
invalidNumber: {
|
|
504
|
+
valid: false
|
|
505
|
+
},
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
if (this.numberNotInRange) {
|
|
509
|
+
return {
|
|
510
|
+
numberNotInRange: {
|
|
511
|
+
valid: false
|
|
512
|
+
},
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
this.validateType = '';
|
|
516
|
+
/* WMS-18269 | Extending the existing validation for 'required' */
|
|
517
|
+
if (this['show'] && this['required']) {
|
|
518
|
+
return (!!c.value || c.value === 0) ? null : { required: true };
|
|
519
|
+
}
|
|
520
|
+
return null;
|
|
521
|
+
}
|
|
522
|
+
validateInputEntry($event) {
|
|
523
|
+
this.isDefaultQuery = false;
|
|
524
|
+
// allow actions if control key is pressed or if backspace is pressed. (for Mozilla).
|
|
525
|
+
if ($event.ctrlKey || includes(['Backspace', 'ArrowRight', 'ArrowLeft', 'Tab', 'Enter', 'Delete'], $event.key)) {
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
const validity = new RegExp(`^[\\d\\s-,.e+${this.GROUP}${this.DECIMAL}]$`, 'i');
|
|
529
|
+
const inputValue = $event.target?.value || "";
|
|
530
|
+
// when input mode is financial, do not restrict user on entering the value when step value limit is reached.
|
|
531
|
+
const skipStepValidation = this.inputmode === INPUTMODE.FINANCIAL;
|
|
532
|
+
// Validates if user eneters more than 16 digits
|
|
533
|
+
if (inputValue) {
|
|
534
|
+
const parsedVal = parseInt(inputValue.toString().replace(/\D/g, ''));
|
|
535
|
+
if (parsedVal.toString().length > 15) {
|
|
536
|
+
// WMS-22321: If the number is greater than MAX_SAFE_INTEGER (more than 15 numbers).
|
|
537
|
+
// user selects a range of digits and presses a key.
|
|
538
|
+
// Do not throw validation of exceeded number as selected range value will be deleted.
|
|
539
|
+
const selectedVal = window.getSelection();
|
|
540
|
+
if (selectedVal && selectedVal.toString() && selectedVal.focusNode === this.nativeElement) {
|
|
541
|
+
return true;
|
|
542
|
+
}
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
// validates entering of decimal values only when user provides decimal limit(i.e step contains decimal values).
|
|
547
|
+
// Restrict user from entering only if the decimal limit is reached and the new digit is entered in decimal place
|
|
548
|
+
// if (!skipStepValidation && inputValue && this.countDecimals(this.step) && (this.countDecimals(inputValue) >= this.countDecimals(this.step)) && $event.target.selectionStart >= inputValue.length - 1) {
|
|
549
|
+
// return false;
|
|
550
|
+
// }
|
|
551
|
+
// validates if user entered an invalid character.
|
|
552
|
+
if (!validity.test($event.key)) {
|
|
553
|
+
return false;
|
|
554
|
+
}
|
|
555
|
+
if (this.inputmode === INPUTMODE.NATURAL && !isNaN(this.decimalplaces)) {
|
|
556
|
+
if (this.decimalplaces === 0 && this.DECIMAL === $event.key) {
|
|
557
|
+
return false;
|
|
558
|
+
}
|
|
559
|
+
const parts = includes(inputValue, this.DECIMAL) ? inputValue.split(this.DECIMAL) : inputValue.split('.');
|
|
560
|
+
const isCursorPositionAtDecimalPlace = $event.target.selectionStart > parts[0].length;
|
|
561
|
+
if (this.decimalplaces > 0 && this.countDecimals(inputValue) >= this.decimalplaces && isCursorPositionAtDecimalPlace) {
|
|
562
|
+
return false;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
// comma cannot be entered consecutively
|
|
566
|
+
if (includes(inputValue, ',') && inputValue[inputValue.length - 1] === ',' && $event.key === ',') {
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
// a decimal value can be entered only once in the input.
|
|
570
|
+
if (includes(inputValue, this.DECIMAL) && $event.key === this.DECIMAL) {
|
|
571
|
+
return false;
|
|
572
|
+
}
|
|
573
|
+
// 'e' can be entered only once in the input.
|
|
574
|
+
if (intersection(toArray(inputValue), ['e', 'E']).length && includes('eE', $event.key)) {
|
|
575
|
+
return false;
|
|
576
|
+
}
|
|
577
|
+
if ((includes(inputValue, '+') || includes(inputValue, '-')) && ($event.key === '+' || $event.key === '-')) {
|
|
578
|
+
return false;
|
|
579
|
+
}
|
|
580
|
+
// Do not allow user to enter only space without any input value
|
|
581
|
+
if (!inputValue && $event.code === 'Space') {
|
|
582
|
+
return false;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
onBackspace($event) {
|
|
586
|
+
this.isDefaultQuery = false;
|
|
587
|
+
}
|
|
588
|
+
onDelete($event) {
|
|
589
|
+
this.isDefaultQuery = false;
|
|
590
|
+
}
|
|
591
|
+
onEnter($event) {
|
|
592
|
+
this.datavalue = $event.target.value;
|
|
593
|
+
}
|
|
594
|
+
onModelChange($event) {
|
|
595
|
+
if (this.inputmode === INPUTMODE.NATURAL || (this.inputmode === INPUTMODE.FINANCIAL && this.ngModelOptions.updateOn === 'blur')) {
|
|
596
|
+
this.datavalue = $event;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
onPropertyChange(key, nv, ov) {
|
|
600
|
+
if (key === 'minvalue' || key === 'maxvalue') {
|
|
601
|
+
this.isValid(nv);
|
|
602
|
+
}
|
|
603
|
+
else if (key === 'datavalue' && !ov) {
|
|
604
|
+
if (this.isNaturalCurrency()) {
|
|
605
|
+
this.checkForTrailingZeros({ type: 'blur' });
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
this.onInputChange(nv);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
else {
|
|
612
|
+
super.onPropertyChange(key, nv, ov);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
onPaste($event) {
|
|
616
|
+
const pastedData = $event.clipboardData.getData('text');
|
|
617
|
+
for (const char of pastedData) {
|
|
618
|
+
const mockEvent = new KeyboardEvent('keypress', { key: char });
|
|
619
|
+
if (this.validateInputEntry(mockEvent) === false) {
|
|
620
|
+
$event.preventDefault();
|
|
621
|
+
return;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
NumberLocale = __decorate([
|
|
627
|
+
__param(4, Inject('EXPLICIT_CONTEXT')),
|
|
628
|
+
__param(4, Optional()),
|
|
629
|
+
__metadata("design:paramtypes", [Injector, Object, AbstractI18nService,
|
|
630
|
+
TrailingZeroDecimalPipe, Object])
|
|
631
|
+
], NumberLocale);
|
|
632
|
+
|
|
633
|
+
const inputCalendarTypeProps = new Map([
|
|
634
|
+
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
635
|
+
['autotrim', { value: true, ...PROP_BOOLEAN }],
|
|
636
|
+
['autofocus', PROP_BOOLEAN],
|
|
637
|
+
['class', PROP_STRING],
|
|
638
|
+
['datasource', PROP_ANY],
|
|
639
|
+
['datavalue', PROP_STRING],
|
|
640
|
+
['disabled', PROP_BOOLEAN],
|
|
641
|
+
['hint', PROP_STRING],
|
|
642
|
+
['arialabel', PROP_STRING],
|
|
643
|
+
['maxvalue', PROP_NUMBER],
|
|
644
|
+
['minvalue', PROP_NUMBER],
|
|
645
|
+
['name', PROP_STRING],
|
|
646
|
+
['placeholder', { value: 'Enter text', ...PROP_STRING }],
|
|
647
|
+
['readonly', PROP_BOOLEAN],
|
|
648
|
+
['required', PROP_BOOLEAN],
|
|
649
|
+
['shortcutkey', PROP_STRING],
|
|
650
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
651
|
+
['step', PROP_NUMBER],
|
|
652
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
653
|
+
['type', PROP_STRING],
|
|
654
|
+
['updateon', PROP_STRING],
|
|
655
|
+
['conditionalclass', PROP_ANY],
|
|
656
|
+
['conditionalstyle', PROP_ANY]
|
|
657
|
+
]);
|
|
658
|
+
const registerProps$4 = () => {
|
|
659
|
+
register('wm-input-calendar', inputCalendarTypeProps);
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
const WIDGET_CONFIG$4 = {
|
|
663
|
+
widgetType: 'wm-input-calendar',
|
|
664
|
+
hostClass: 'app-input-wrapper'
|
|
665
|
+
};
|
|
666
|
+
class InputCalendarComponent extends BaseInput {
|
|
667
|
+
static { this.initializeProps = registerProps$4(); }
|
|
668
|
+
constructor(inj, explicitContext) {
|
|
669
|
+
super(inj, WIDGET_CONFIG$4, explicitContext);
|
|
670
|
+
}
|
|
671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCalendarComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
672
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputCalendarComponent, isStandalone: true, selector: "wm-input[type=\"date\"], wm-input[type=\"datetime-local\"], wm-input[type=\"month\"], wm-input[type=\"time\"], wm-input[type=\"week\"]", providers: [
|
|
673
|
+
provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
|
|
674
|
+
provideAs(InputCalendarComponent, NG_VALIDATORS, true),
|
|
675
|
+
provideAsWidgetRef(InputCalendarComponent)
|
|
676
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true, static: true }, { propertyName: "ngModel", first: true, predicate: NgModel, descendants: true }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\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]=\"arialabel || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n #input>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
677
|
+
}
|
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCalendarComponent, decorators: [{
|
|
679
|
+
type: Component,
|
|
680
|
+
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'wm-input[type="date"], wm-input[type="datetime-local"], wm-input[type="month"], wm-input[type="time"], wm-input[type="week"]', providers: [
|
|
681
|
+
provideAs(InputCalendarComponent, NG_VALUE_ACCESSOR, true),
|
|
682
|
+
provideAs(InputCalendarComponent, NG_VALIDATORS, true),
|
|
683
|
+
provideAsWidgetRef(InputCalendarComponent)
|
|
684
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\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]=\"arialabel || type + ' field'\"\n [autofocus]=\"autofocus\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n #input>\n" }]
|
|
685
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
686
|
+
type: Inject,
|
|
687
|
+
args: ['EXPLICIT_CONTEXT']
|
|
688
|
+
}, {
|
|
689
|
+
type: Optional
|
|
690
|
+
}] }], propDecorators: { inputEl: [{
|
|
691
|
+
type: ViewChild,
|
|
692
|
+
args: ['input', { static: true }]
|
|
693
|
+
}], ngModel: [{
|
|
694
|
+
type: ViewChild,
|
|
695
|
+
args: [NgModel]
|
|
696
|
+
}] } });
|
|
697
|
+
|
|
698
|
+
const inputColorTypeProps = new Map([
|
|
699
|
+
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
700
|
+
['autofocus', PROP_BOOLEAN],
|
|
701
|
+
['autotrim', { value: true, ...PROP_BOOLEAN }],
|
|
702
|
+
['class', PROP_STRING],
|
|
703
|
+
['datavaluesource', PROP_ANY],
|
|
704
|
+
['datavalue', PROP_STRING],
|
|
705
|
+
['disabled', PROP_BOOLEAN],
|
|
706
|
+
['hint', PROP_STRING],
|
|
707
|
+
['arialabel', PROP_STRING],
|
|
708
|
+
['name', PROP_STRING],
|
|
709
|
+
['placeholder', { value: 'Enter text', ...PROP_STRING }],
|
|
710
|
+
['readonly', PROP_BOOLEAN],
|
|
711
|
+
['required', PROP_BOOLEAN],
|
|
712
|
+
['shortcutkey', PROP_STRING],
|
|
713
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
714
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
715
|
+
['type', { value: 'color', ...PROP_STRING }],
|
|
716
|
+
['updateon', PROP_STRING],
|
|
717
|
+
['conditionalclass', PROP_ANY],
|
|
718
|
+
['conditionalstyle', PROP_ANY]
|
|
719
|
+
]);
|
|
720
|
+
const registerProps$3 = () => {
|
|
721
|
+
register('wm-input-color', inputColorTypeProps);
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
const WIDGET_CONFIG$3 = {
|
|
725
|
+
widgetType: 'wm-input-color',
|
|
726
|
+
hostClass: 'app-input-wrapper'
|
|
727
|
+
};
|
|
728
|
+
class InputColorComponent extends BaseInput {
|
|
729
|
+
static { this.initializeProps = registerProps$3(); }
|
|
730
|
+
constructor(inj, explicitContext) {
|
|
731
|
+
super(inj, WIDGET_CONFIG$3, explicitContext);
|
|
732
|
+
}
|
|
733
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputColorComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
734
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputColorComponent, isStandalone: true, selector: "wm-input[type=\"color\"]", providers: [
|
|
735
|
+
provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
|
|
736
|
+
provideAs(InputColorComponent, NG_VALIDATORS, true),
|
|
737
|
+
provideAsWidgetRef(InputColorComponent)
|
|
738
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true, static: true }, { propertyName: "ngModel", first: true, predicate: NgModel, descendants: true }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
739
|
+
}
|
|
740
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputColorComponent, decorators: [{
|
|
741
|
+
type: Component,
|
|
742
|
+
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'wm-input[type="color"]', providers: [
|
|
743
|
+
provideAs(InputColorComponent, NG_VALUE_ACCESSOR, true),
|
|
744
|
+
provideAs(InputColorComponent, NG_VALIDATORS, true),
|
|
745
|
+
provideAsWidgetRef(InputColorComponent)
|
|
746
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [(ngModel)]=\"datavalue\"\n [ngModelOptions]=\"{standalone: true}\"\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n #input>\n" }]
|
|
747
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
748
|
+
type: Inject,
|
|
749
|
+
args: ['EXPLICIT_CONTEXT']
|
|
750
|
+
}, {
|
|
751
|
+
type: Optional
|
|
752
|
+
}] }], propDecorators: { inputEl: [{
|
|
753
|
+
type: ViewChild,
|
|
754
|
+
args: ['input', { static: true }]
|
|
755
|
+
}], ngModel: [{
|
|
756
|
+
type: ViewChild,
|
|
757
|
+
args: [NgModel]
|
|
758
|
+
}] } });
|
|
759
|
+
|
|
760
|
+
const inputEmailTypeProps = new Map([
|
|
761
|
+
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
762
|
+
['autofocus', PROP_BOOLEAN],
|
|
763
|
+
['autotrim', { value: true, ...PROP_BOOLEAN }],
|
|
764
|
+
['class', PROP_STRING],
|
|
765
|
+
['datavaluesource', PROP_ANY],
|
|
766
|
+
['datavalue', PROP_STRING],
|
|
767
|
+
['disabled', PROP_BOOLEAN],
|
|
768
|
+
['hint', PROP_STRING],
|
|
769
|
+
['arialabel', PROP_STRING],
|
|
770
|
+
['maxchars', PROP_NUMBER],
|
|
771
|
+
['name', PROP_STRING],
|
|
772
|
+
['placeholder', { value: 'Enter text', ...PROP_STRING }],
|
|
773
|
+
['readonly', PROP_BOOLEAN],
|
|
774
|
+
['regexp', PROP_STRING],
|
|
775
|
+
['required', PROP_BOOLEAN],
|
|
776
|
+
['shortcutkey', PROP_STRING],
|
|
777
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
778
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
779
|
+
['type', { value: 'email', ...PROP_STRING }],
|
|
780
|
+
['updateon', PROP_STRING],
|
|
781
|
+
['conditionalclass', PROP_ANY],
|
|
782
|
+
['conditionalstyle', PROP_ANY]
|
|
783
|
+
]);
|
|
784
|
+
const registerProps$2 = () => {
|
|
785
|
+
register('wm-input-email', inputEmailTypeProps);
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
const WIDGET_CONFIG$2 = {
|
|
789
|
+
widgetType: 'wm-input-email',
|
|
790
|
+
hostClass: 'app-input-wrapper'
|
|
791
|
+
};
|
|
792
|
+
class InputEmailComponent extends BaseInput {
|
|
793
|
+
static { this.initializeProps = registerProps$2(); }
|
|
794
|
+
constructor(inj, explicitContext) {
|
|
795
|
+
super(inj, WIDGET_CONFIG$2, explicitContext);
|
|
796
|
+
}
|
|
797
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputEmailComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
798
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputEmailComponent, isStandalone: true, selector: "wm-input[type=\"email\"]", providers: [
|
|
799
|
+
provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
|
|
800
|
+
provideAs(InputEmailComponent, NG_VALIDATORS, true),
|
|
801
|
+
provideAsWidgetRef(InputEmailComponent)
|
|
802
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true, static: true }, { propertyName: "ngModel", first: true, predicate: NgModel, descendants: true }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox\"\n focus-target\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: ["email"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
803
|
+
}
|
|
804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputEmailComponent, decorators: [{
|
|
805
|
+
type: Component,
|
|
806
|
+
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'wm-input[type="email"]', providers: [
|
|
807
|
+
provideAs(InputEmailComponent, NG_VALUE_ACCESSOR, true),
|
|
808
|
+
provideAs(InputEmailComponent, NG_VALIDATORS, true),
|
|
809
|
+
provideAsWidgetRef(InputEmailComponent)
|
|
810
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n email\n #input>\n" }]
|
|
811
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
812
|
+
type: Inject,
|
|
813
|
+
args: ['EXPLICIT_CONTEXT']
|
|
814
|
+
}, {
|
|
815
|
+
type: Optional
|
|
816
|
+
}] }], propDecorators: { inputEl: [{
|
|
817
|
+
type: ViewChild,
|
|
818
|
+
args: ['input', { static: true }]
|
|
819
|
+
}], ngModel: [{
|
|
820
|
+
type: ViewChild,
|
|
821
|
+
args: [NgModel]
|
|
822
|
+
}] } });
|
|
823
|
+
|
|
824
|
+
const inputNumberTypeProps = new Map([
|
|
825
|
+
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
826
|
+
['autofocus', PROP_BOOLEAN],
|
|
827
|
+
['autotrim', { value: true, ...PROP_BOOLEAN }],
|
|
828
|
+
['class', PROP_STRING],
|
|
829
|
+
['datavaluesource', PROP_ANY],
|
|
830
|
+
['datavalue', PROP_STRING],
|
|
831
|
+
['disabled', PROP_BOOLEAN],
|
|
832
|
+
['hint', PROP_STRING],
|
|
833
|
+
['arialabel', PROP_STRING],
|
|
834
|
+
['maxchars', PROP_NUMBER],
|
|
835
|
+
['maxvalue', PROP_NUMBER],
|
|
836
|
+
['minvalue', PROP_NUMBER],
|
|
837
|
+
['name', PROP_STRING],
|
|
838
|
+
['placeholder', { value: 'Enter text', ...PROP_STRING }],
|
|
839
|
+
['readonly', PROP_BOOLEAN],
|
|
840
|
+
['regexp', PROP_STRING],
|
|
841
|
+
['required', PROP_BOOLEAN],
|
|
842
|
+
['shortcutkey', PROP_STRING],
|
|
843
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
844
|
+
['step', PROP_NUMBER],
|
|
845
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
846
|
+
['type', { value: 'number', ...PROP_STRING }],
|
|
847
|
+
['updateon', PROP_STRING],
|
|
848
|
+
['conditionalclass', PROP_ANY],
|
|
849
|
+
['conditionalstyle', PROP_ANY]
|
|
850
|
+
]);
|
|
851
|
+
const registerProps$1 = () => {
|
|
852
|
+
register('wm-input-number', inputNumberTypeProps);
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
const inputTextTypeProps = new Map([
|
|
856
|
+
['autocomplete', { value: true, ...PROP_BOOLEAN }],
|
|
857
|
+
['autofocus', PROP_BOOLEAN],
|
|
858
|
+
['autotrim', { value: true, ...PROP_BOOLEAN }],
|
|
859
|
+
['class', PROP_STRING],
|
|
860
|
+
['datavaluesource', PROP_ANY],
|
|
861
|
+
['datavalue', PROP_STRING],
|
|
862
|
+
['disabled', PROP_BOOLEAN],
|
|
863
|
+
['displayformat', PROP_STRING],
|
|
864
|
+
['hint', PROP_STRING],
|
|
865
|
+
['arialabel', PROP_STRING],
|
|
866
|
+
['maxchars', PROP_NUMBER],
|
|
867
|
+
['name', PROP_STRING],
|
|
868
|
+
['placeholder', { value: 'Enter text', ...PROP_STRING }],
|
|
869
|
+
['readonly', PROP_BOOLEAN],
|
|
870
|
+
['regexp', PROP_STRING],
|
|
871
|
+
['required', PROP_BOOLEAN],
|
|
872
|
+
['shortcutkey', PROP_STRING],
|
|
873
|
+
['show', { value: true, ...PROP_BOOLEAN }],
|
|
874
|
+
['showdisplayformaton', { value: 'always', ...PROP_ANY }],
|
|
875
|
+
['tabindex', { value: 0, ...PROP_NUMBER }],
|
|
876
|
+
['type', { value: 'text', ...PROP_STRING }],
|
|
877
|
+
['updateon', PROP_STRING],
|
|
878
|
+
['conditionalclass', PROP_ANY],
|
|
879
|
+
['conditionalstyle', PROP_ANY]
|
|
880
|
+
]);
|
|
881
|
+
const registerProps = () => {
|
|
882
|
+
register('wm-input-text', inputTextTypeProps);
|
|
883
|
+
registerFormWidget(FormWidgetType.PASSWORD, new Map(inputTextTypeProps));
|
|
884
|
+
const formTextProps = new Map(inputTextTypeProps);
|
|
885
|
+
const mergeTextProps = (typeProps) => {
|
|
886
|
+
typeProps.forEach((v, k) => formTextProps.set(k, v));
|
|
887
|
+
};
|
|
888
|
+
mergeTextProps(inputCalendarTypeProps);
|
|
889
|
+
mergeTextProps(inputColorTypeProps);
|
|
890
|
+
mergeTextProps(inputEmailTypeProps);
|
|
891
|
+
mergeTextProps(inputNumberTypeProps);
|
|
892
|
+
registerFormWidget(FormWidgetType.TEXT, new Map(formTextProps));
|
|
893
|
+
};
|
|
894
|
+
|
|
895
|
+
const WIDGET_CONFIG$1 = {
|
|
896
|
+
widgetType: 'wm-input-text',
|
|
897
|
+
hostClass: 'app-input-wrapper'
|
|
898
|
+
};
|
|
899
|
+
class InputTextComponent extends BaseInput {
|
|
900
|
+
static { this.initializeProps = registerProps(); }
|
|
901
|
+
constructor(inj, explicitContext) {
|
|
902
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
903
|
+
this.lazy = false;
|
|
904
|
+
}
|
|
905
|
+
/* Define the property change handler. This function will be triggered when there is a change in the widget property */
|
|
906
|
+
onPropertyChange(key, nv, ov) {
|
|
907
|
+
/*Monitoring changes for styles or properties and accordingly handling respective changes.*/
|
|
908
|
+
switch (key) {
|
|
909
|
+
case 'displayformat':
|
|
910
|
+
this.maskVal = this.displayformat;
|
|
911
|
+
this.checkForDisplayFormat();
|
|
912
|
+
break;
|
|
913
|
+
case 'showdisplayformaton':
|
|
914
|
+
this.lazy = nv === 'keypress' ? true : false;
|
|
915
|
+
break;
|
|
916
|
+
default:
|
|
917
|
+
super.onPropertyChange(key, nv, ov);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
get mask() {
|
|
921
|
+
if (this.displayformat && (!this.placeholder || (this.placeholder && this.isFocused))) {
|
|
922
|
+
return {
|
|
923
|
+
mask: this.maskVal,
|
|
924
|
+
lazy: this.lazy,
|
|
925
|
+
definitions: {
|
|
926
|
+
'9': /\d/,
|
|
927
|
+
'A': /[a-zA-Z]/,
|
|
928
|
+
'a': /[a-z]/,
|
|
929
|
+
'*': /\w/
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
return false;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
// show display format on focus or when it has a data value present. Else show the placeholder
|
|
938
|
+
checkForDisplayFormat($event) {
|
|
939
|
+
if (this.displayformat) {
|
|
940
|
+
this.isFocused = (($event && $event.type === 'focus') || this.datavalue) ? true : false;
|
|
941
|
+
// Do not show format placeholder when no value is present on blur
|
|
942
|
+
if (!this.isFocused && this.imask && this.imask.maskRef) {
|
|
943
|
+
this.imask.maskRef.updateOptions({ lazy: true });
|
|
944
|
+
// on blur, when no value is present assign maskref to null, as in some cases (where format palceholder starts with pranthesis) the format placeholder is still shown. WMS-20124
|
|
945
|
+
if (!this.datavalue && this.imask.maskRef.value) {
|
|
946
|
+
this.imask.maskRef.value = this.datavalue;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
else {
|
|
950
|
+
// when display format is dynamically populated, cursor position is at the end of the format, readjusting the cursor position based on masked input value
|
|
951
|
+
// Adding timeout, as the below code should be on hold until imask model is generated
|
|
952
|
+
setTimeout(() => {
|
|
953
|
+
if (this.imask && this.imask.maskRef && this.imask.maskRef.value) {
|
|
954
|
+
const maskValIndex = this.imask.maskRef.value.indexOf('_');
|
|
955
|
+
const enteredMaskVal = maskValIndex >= 0 ? this.imask.maskRef.value.slice(0, maskValIndex).length : this.imask.maskRef.value.length;
|
|
956
|
+
if (enteredMaskVal !== this.imask.maskRef.cursorPos) {
|
|
957
|
+
this.imask.maskRef.updateCursor(enteredMaskVal);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}, 50);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
else if (this.imask && this.imask.maskRef) { // When display format is bound via condition, remove the placeholder when the format is not applicable
|
|
964
|
+
this.imask.maskRef.updateOptions({ lazy: true });
|
|
965
|
+
// when display format is removed assign input value to the datavalue attr. WMS-20124
|
|
966
|
+
this.inputEl.nativeElement.value = this.datavalue;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
ngOnInit() {
|
|
970
|
+
super.ngOnInit();
|
|
971
|
+
this.isFocused = !!this.datavalue;
|
|
972
|
+
}
|
|
973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTextComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
974
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputTextComponent, isStandalone: true, 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: [
|
|
975
|
+
provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
|
|
976
|
+
provideAs(InputTextComponent, NG_VALIDATORS, true),
|
|
977
|
+
provideAsWidgetRef(InputTextComponent)
|
|
978
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true, static: true }, { propertyName: "ngModel", first: true, predicate: NgModel, descendants: true }, { propertyName: "imask", first: true, predicate: ["input"], descendants: true, read: IMaskDirective }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: ["pattern"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: IMaskModule }, { kind: "directive", type: i3.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }] }); }
|
|
979
|
+
}
|
|
980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTextComponent, decorators: [{
|
|
981
|
+
type: Component,
|
|
982
|
+
args: [{ standalone: true, imports: [CommonModule, FormsModule, IMaskModule], 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: [
|
|
983
|
+
provideAs(InputTextComponent, NG_VALUE_ACCESSOR, true),
|
|
984
|
+
provideAs(InputTextComponent, NG_VALIDATORS, true),
|
|
985
|
+
provideAsWidgetRef(InputTextComponent)
|
|
986
|
+
], template: "<input class=\"form-control app-textbox\"\n focus-target\n [type]=\"type\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel\"\n [(ngModel)]=\"datavalue\"\n [imask]=\"mask\"\n [unmask]=\"true\"\n [ngModelOptions]=\"ngModelOptions\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [maxlength]=\"maxchars\"\n [pattern]=\"regexp\"\n [attr.tabindex]=\"tabindex\"\n [attr.placeholder]=\"placeholder\"\n [attr.accesskey]=\"shortcutkey\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (ngModelChange)=\"handleChange($event)\"\n (blur)=\"handleBlur($event); checkForDisplayFormat($event)\"\n (focus)=\"checkForDisplayFormat($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n #input>\n" }]
|
|
987
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
988
|
+
type: Inject,
|
|
989
|
+
args: ['EXPLICIT_CONTEXT']
|
|
990
|
+
}, {
|
|
991
|
+
type: Optional
|
|
992
|
+
}] }], propDecorators: { inputEl: [{
|
|
993
|
+
type: ViewChild,
|
|
994
|
+
args: ['input', { static: true }]
|
|
995
|
+
}], ngModel: [{
|
|
996
|
+
type: ViewChild,
|
|
997
|
+
args: [NgModel]
|
|
998
|
+
}], imask: [{
|
|
999
|
+
type: ViewChild,
|
|
1000
|
+
args: ['input', { read: IMaskDirective }]
|
|
1001
|
+
}] } });
|
|
1002
|
+
|
|
1003
|
+
const WIDGET_CONFIG = {
|
|
1004
|
+
widgetType: 'wm-input-number',
|
|
1005
|
+
hostClass: 'app-input-wrapper'
|
|
1006
|
+
};
|
|
1007
|
+
class InputNumberComponent extends BaseInput {
|
|
1008
|
+
static { this.initializeProps = registerProps$1(); }
|
|
1009
|
+
constructor(inj, explicitContext) {
|
|
1010
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
1011
|
+
}
|
|
1012
|
+
onArrowPress($event) {
|
|
1013
|
+
if (this.step === 0) {
|
|
1014
|
+
$event.preventDefault();
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
validateInputEntry($event) {
|
|
1018
|
+
if ($event.key === 'e' && $event.target.value.indexOf($event.key) !== -1) {
|
|
1019
|
+
return false;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputNumberComponent, deps: [{ token: i0.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1023
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputNumberComponent, isStandalone: true, selector: "wm-input[type=\"number\"]", providers: [
|
|
1024
|
+
provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
|
|
1025
|
+
provideAs(InputNumberComponent, NG_VALIDATORS, true),
|
|
1026
|
+
provideAsWidgetRef(InputNumberComponent)
|
|
1027
|
+
], viewQueries: [{ propertyName: "inputEl", first: true, predicate: ["input"], descendants: true, static: true }, { propertyName: "ngModel", first: true, predicate: NgModel, descendants: true }], usesInheritance: true, ngImport: i0, template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
1028
|
+
}
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
1030
|
+
type: Component,
|
|
1031
|
+
args: [{ standalone: true, imports: [CommonModule, FormsModule], selector: 'wm-input[type="number"]', providers: [
|
|
1032
|
+
provideAs(InputNumberComponent, NG_VALUE_ACCESSOR, true),
|
|
1033
|
+
provideAs(InputNumberComponent, NG_VALIDATORS, true),
|
|
1034
|
+
provideAsWidgetRef(InputNumberComponent)
|
|
1035
|
+
], template: "<input class=\"form-control app-textbox\"\n [ngClass]=\"{'step-hidden': step === 0}\"\n focus-target\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]=\"arialabel\"\n [autofocus]=\"autofocus\"\n [ngClass]=\"conditionalclass\"\n [ngStyle]=\"conditionalstyle\"\n (blur)=\"handleBlur($event)\"\n (ngModelChange)=\"handleChange($event)\"\n [autocomplete]=\"autocomplete ? 'on' : 'off'\"\n (keyup.enter)=\"flushViewChanges(input.value)\"\n (keydown.ArrowUp)=\"onArrowPress($event)\"\n (keydown.ArrowDown)=\"onArrowPress($event)\"\n (keypress)=\"validateInputEntry($event)\"\n #input>\n" }]
|
|
1036
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: undefined, decorators: [{
|
|
1037
|
+
type: Inject,
|
|
1038
|
+
args: ['EXPLICIT_CONTEXT']
|
|
1039
|
+
}, {
|
|
1040
|
+
type: Optional
|
|
1041
|
+
}] }], propDecorators: { inputEl: [{
|
|
1042
|
+
type: ViewChild,
|
|
1043
|
+
args: ['input', { static: true }]
|
|
1044
|
+
}], ngModel: [{
|
|
1045
|
+
type: ViewChild,
|
|
1046
|
+
args: [NgModel]
|
|
1047
|
+
}] } });
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Generated bundle index. Do not edit.
|
|
1051
|
+
*/
|
|
1052
|
+
|
|
1053
|
+
export { BaseInput, InputCalendarComponent, InputColorComponent, InputEmailComponent, InputNumberComponent, InputTextComponent, NumberLocale };
|
|
1054
|
+
//# sourceMappingURL=index.mjs.map
|