@wavemaker/app-ng-runtime 11.4.1-next.141652 → 11.4.1-next.141654
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +12 -23
- app-ng-runtime/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/carousel.directive.d.ts +2 -4
- app-ng-runtime/components/advanced/carousel/esm2020/carousel-template/carousel-template.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/esm2020/carousel.directive.mjs +6 -11
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/advanced/carousel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/advanced/carousel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/bundles/index.umd.js +21 -27
- app-ng-runtime/components/advanced/login/esm2020/login.component.mjs +8 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/advanced/login/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/advanced/login/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/login/login.component.d.ts +2 -4
- app-ng-runtime/components/advanced/marquee/bundles/index.umd.js +8 -14
- app-ng-runtime/components/advanced/marquee/esm2020/marquee.directive.mjs +6 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/advanced/marquee/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/advanced/marquee/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/advanced/marquee/marquee.directive.d.ts +2 -4
- app-ng-runtime/components/base/bundles/index.umd.js +31 -61
- app-ng-runtime/components/base/esm2020/widgets/common/base/base-container.component.mjs +4 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/base.component.mjs +5 -6
- app-ng-runtime/components/base/esm2020/widgets/common/base/dataset-aware-nav.component.mjs +3 -3
- app-ng-runtime/components/base/esm2020/widgets/common/container/container.directive.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/item-template/item-template.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/lazy-load/lazy-load.directive.mjs +6 -10
- app-ng-runtime/components/base/esm2020/widgets/common/message/message.component.mjs +7 -11
- app-ng-runtime/components/base/esm2020/widgets/common/partial/partial.directive.mjs +7 -10
- app-ng-runtime/components/base/esm2020/widgets/common/repeat-template/repeat-template.directive.mjs +6 -11
- app-ng-runtime/components/base/fesm2015/index.mjs +32 -62
- app-ng-runtime/components/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/base/fesm2020/index.mjs +32 -50
- app-ng-runtime/components/base/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/base/widgets/common/base/base-container.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +2 -3
- app-ng-runtime/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +1 -2
- app-ng-runtime/components/base/widgets/common/container/container.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/item-template/item-template.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/message/message.component.d.ts +2 -4
- app-ng-runtime/components/base/widgets/common/partial/partial.directive.d.ts +3 -4
- app-ng-runtime/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +3 -4
- app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/bundles/index.umd.js +247 -290
- app-ng-runtime/components/basic/default/esm2020/anchor/anchor.component.mjs +7 -10
- app-ng-runtime/components/basic/default/esm2020/audio/audio.component.mjs +8 -13
- app-ng-runtime/components/basic/default/esm2020/html/html.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/icon/icon.component.mjs +9 -14
- app-ng-runtime/components/basic/default/esm2020/iframe/iframe.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/label/label.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/picture/picture.directive.mjs +7 -11
- app-ng-runtime/components/basic/default/esm2020/spinner/spinner.component.mjs +9 -13
- app-ng-runtime/components/basic/default/esm2020/video/video.component.mjs +9 -13
- app-ng-runtime/components/basic/default/fesm2015/index.mjs +46 -89
- app-ng-runtime/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/fesm2020/index.mjs +46 -73
- app-ng-runtime/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/default/html/html.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/icon/icon.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/label/label.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -4
- app-ng-runtime/components/basic/default/spinner/spinner.component.d.ts +2 -4
- app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/bundles/index.umd.js +23 -32
- app-ng-runtime/components/basic/progress/esm2020/progress-bar/progress-bar.component.mjs +8 -12
- app-ng-runtime/components/basic/progress/esm2020/progress-circle/progress-circle.component.mjs +8 -13
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs +12 -21
- app-ng-runtime/components/basic/progress/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs +12 -19
- app-ng-runtime/components/basic/progress/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -4
- app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +2 -4
- app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +14 -20
- app-ng-runtime/components/basic/rich-text-editor/esm2020/rich-text-editor.component.mjs +9 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/basic/rich-text-editor/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs +7 -11
- app-ng-runtime/components/basic/rich-text-editor/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -4
- app-ng-runtime/components/basic/search/bundles/index.umd.js +3 -6
- app-ng-runtime/components/basic/search/esm2020/search.component.mjs +6 -9
- app-ng-runtime/components/basic/search/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/basic/search/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/basic/search/search.component.d.ts +3 -4
- app-ng-runtime/components/chart/bundles/index.umd.js +4 -9
- app-ng-runtime/components/chart/chart.component.d.ts +3 -4
- app-ng-runtime/components/chart/esm2020/chart.component.mjs +7 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/chart/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/chart/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/chart/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/accordion/accordion.directive.d.ts +3 -4
- app-ng-runtime/components/containers/accordion/bundles/index.umd.js +56 -66
- app-ng-runtime/components/containers/accordion/esm2020/accordion-pane/accordion-pane.component.mjs +10 -14
- app-ng-runtime/components/containers/accordion/esm2020/accordion.directive.mjs +7 -10
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs +12 -22
- app-ng-runtime/components/containers/accordion/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/accordion/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/bundles/index.umd.js +12 -25
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-column/layout-grid-column.directive.mjs +7 -10
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid-row/layout-grid-row.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/esm2020/layout-grid.directive.mjs +6 -11
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs +13 -26
- app-ng-runtime/components/containers/layout-grid/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/containers/layout-grid/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +3 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +2 -4
- app-ng-runtime/components/containers/layout-grid/layout-grid.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/bundles/index.umd.js +12 -23
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout-item/linear-layout-item.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/esm2020/linear-layout.directive.mjs +6 -11
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs +9 -20
- app-ng-runtime/components/containers/linear-layout/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs +9 -16
- app-ng-runtime/components/containers/linear-layout/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +2 -4
- app-ng-runtime/components/containers/linear-layout/linear-layout.directive.d.ts +2 -4
- app-ng-runtime/components/containers/panel/bundles/index.umd.js +65 -71
- app-ng-runtime/components/containers/panel/esm2020/panel.component.mjs +12 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs +10 -16
- app-ng-runtime/components/containers/panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs +10 -14
- app-ng-runtime/components/containers/panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/panel/panel.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/bundles/index.umd.js +57 -63
- app-ng-runtime/components/containers/tabs/esm2020/tab-pane/tab-pane.component.mjs +8 -12
- app-ng-runtime/components/containers/tabs/esm2020/tabs.component.mjs +7 -10
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs +12 -18
- app-ng-runtime/components/containers/tabs/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tabs/tab-pane/tab-pane.component.d.ts +2 -4
- app-ng-runtime/components/containers/tabs/tabs.component.d.ts +3 -4
- app-ng-runtime/components/containers/tile/bundles/index.umd.js +8 -14
- app-ng-runtime/components/containers/tile/esm2020/tile.directive.mjs +6 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/containers/tile/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/containers/tile/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/tile/tile.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/bundles/index.umd.js +48 -57
- app-ng-runtime/components/containers/wizard/esm2020/wizard-step/wizard-step.directive.mjs +5 -10
- app-ng-runtime/components/containers/wizard/esm2020/wizard.component.mjs +10 -14
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs +11 -20
- app-ng-runtime/components/containers/wizard/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs +11 -18
- app-ng-runtime/components/containers/wizard/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/containers/wizard/wizard-step/wizard-step.directive.d.ts +2 -4
- app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -4
- app-ng-runtime/components/data/card/bundles/index.umd.js +83 -106
- app-ng-runtime/components/data/card/card-actions/card-actions.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card-content/card-content.component.d.ts +2 -4
- app-ng-runtime/components/data/card/card-footer/card-footer.directive.d.ts +2 -4
- app-ng-runtime/components/data/card/card.component.d.ts +2 -4
- app-ng-runtime/components/data/card/esm2020/card-actions/card-actions.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-content/card-content.component.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card-footer/card-footer.directive.mjs +6 -11
- app-ng-runtime/components/data/card/esm2020/card.component.mjs +12 -18
- app-ng-runtime/components/data/card/fesm2015/index.mjs +23 -46
- app-ng-runtime/components/data/card/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/card/fesm2020/index.mjs +23 -38
- app-ng-runtime/components/data/card/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +128 -137
- app-ng-runtime/components/data/form/esm2020/form-action/form-action.directive.mjs +4 -9
- app-ng-runtime/components/data/form/esm2020/form-field/form-field.directive.mjs +5 -8
- app-ng-runtime/components/data/form/esm2020/form.component.mjs +5 -8
- app-ng-runtime/components/data/form/fesm2015/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/fesm2020/index.mjs +20 -29
- app-ng-runtime/components/data/form/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-action/form-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +3 -4
- app-ng-runtime/components/data/form/form.component.d.ts +3 -4
- app-ng-runtime/components/data/list/bundles/index.umd.js +4 -7
- app-ng-runtime/components/data/list/esm2020/list.component.mjs +7 -10
- app-ng-runtime/components/data/list/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/list/list.component.d.ts +3 -4
- app-ng-runtime/components/data/live-table/bundles/index.umd.js +3 -6
- app-ng-runtime/components/data/live-table/esm2020/live-table.component.mjs +6 -9
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/data/live-table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/live-table/live-table.component.d.ts +3 -4
- app-ng-runtime/components/data/pagination/bundles/index.umd.js +30 -34
- app-ng-runtime/components/data/pagination/esm2020/pagination.component.mjs +10 -14
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/data/pagination/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/pagination/pagination.component.d.ts +2 -4
- app-ng-runtime/components/data/table/bundles/index.umd.js +19 -37
- app-ng-runtime/components/data/table/esm2020/table-action/table-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-column/table-column.directive.mjs +5 -8
- app-ng-runtime/components/data/table/esm2020/table-column-group/table-column-group.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row/table-row.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table-row-action/table-row-action.directive.mjs +4 -9
- app-ng-runtime/components/data/table/esm2020/table.component.mjs +6 -9
- app-ng-runtime/components/data/table/fesm2015/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/fesm2020/index.mjs +19 -37
- app-ng-runtime/components/data/table/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table-action/table-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +3 -4
- app-ng-runtime/components/data/table/table-column-group/table-column-group.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row/table-row.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table-row-action/table-row-action.directive.d.ts +2 -4
- app-ng-runtime/components/data/table/table.component.d.ts +3 -4
- app-ng-runtime/components/dialogs/alert-dialog/alert-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +40 -46
- app-ng-runtime/components/dialogs/alert-dialog/esm2020/alert-dialog.component.mjs +9 -15
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/dialogs/alert-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +16 -22
- app-ng-runtime/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/confirm-dialog/esm2020/confirm-dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/confirm-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -2
- app-ng-runtime/components/dialogs/default/bundles/index.umd.js +25 -31
- app-ng-runtime/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +2 -4
- app-ng-runtime/components/dialogs/default/esm2020/base-dialog.mjs +7 -8
- app-ng-runtime/components/dialogs/default/esm2020/dialog-footer/dialog-footer.directive.mjs +6 -11
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs +11 -17
- app-ng-runtime/components/dialogs/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs +11 -15
- app-ng-runtime/components/dialogs/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +17 -23
- app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/design-dialog/esm2020/dialog.component.mjs +8 -14
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs +7 -13
- app-ng-runtime/components/dialogs/design-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +24 -30
- app-ng-runtime/components/dialogs/iframe-dialog/esm2020/iframe-dialog.component.mjs +10 -16
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs +9 -15
- app-ng-runtime/components/dialogs/iframe-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +2 -4
- app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +3 -8
- app-ng-runtime/components/dialogs/partial-dialog/esm2020/partial-dialog.component.mjs +5 -10
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs +4 -9
- app-ng-runtime/components/dialogs/partial-dialog/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/dialogs/partial-dialog/partial-dialog.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/bundles/index.umd.js +5 -10
- app-ng-runtime/components/input/calendar/calendar.component.d.ts +3 -4
- app-ng-runtime/components/input/calendar/esm2020/calendar.component.mjs +8 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs +6 -11
- app-ng-runtime/components/input/calendar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs +6 -9
- app-ng-runtime/components/input/calendar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/bundles/index.umd.js +87 -93
- app-ng-runtime/components/input/chips/chips.component.d.ts +2 -4
- app-ng-runtime/components/input/chips/esm2020/chips.component.mjs +9 -15
- app-ng-runtime/components/input/chips/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/chips/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/input/chips/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/bundles/index.umd.js +22 -28
- app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +2 -4
- app-ng-runtime/components/input/color-picker/esm2020/color-picker.component.mjs +10 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/input/color-picker/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/input/color-picker/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -9
- app-ng-runtime/components/input/currency/currency.component.d.ts +3 -4
- app-ng-runtime/components/input/currency/esm2020/currency.component.mjs +7 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs +5 -10
- app-ng-runtime/components/input/currency/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/currency/fesm2020/index.mjs +5 -8
- app-ng-runtime/components/input/currency/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/base-form.component.d.ts +1 -2
- app-ng-runtime/components/input/default/bundles/index.umd.js +575 -648
- app-ng-runtime/components/input/default/button/button.component.d.ts +2 -4
- app-ng-runtime/components/input/default/button-group/button-group.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +2 -4
- app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/composite/composite.directive.d.ts +2 -4
- app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -3
- app-ng-runtime/components/input/default/esm2020/base-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/button/button.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/button-group/button-group.directive.mjs +6 -11
- app-ng-runtime/components/input/default/esm2020/checkbox/checkbox.component.mjs +9 -13
- app-ng-runtime/components/input/default/esm2020/checkboxset/checkboxset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/composite/composite.directive.mjs +7 -11
- app-ng-runtime/components/input/default/esm2020/dataset-aware-form.component.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/number/number.component.mjs +7 -10
- app-ng-runtime/components/input/default/esm2020/radioset/radioset.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/select/select.component.mjs +11 -15
- app-ng-runtime/components/input/default/esm2020/switch/switch.component.mjs +10 -14
- app-ng-runtime/components/input/default/esm2020/text/base/base-input.mjs +6 -7
- app-ng-runtime/components/input/default/esm2020/text/calendar/input-calendar.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/color/input-color.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/email/input-email.component.mjs +8 -13
- app-ng-runtime/components/input/default/esm2020/text/locale/number-locale.mjs +3 -3
- app-ng-runtime/components/input/default/esm2020/text/number/input-number.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/text/text/input-text.component.mjs +9 -14
- app-ng-runtime/components/input/default/esm2020/textarea/textarea.component.mjs +9 -14
- app-ng-runtime/components/input/default/fesm2015/index.mjs +94 -167
- app-ng-runtime/components/input/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/fesm2020/index.mjs +94 -139
- app-ng-runtime/components/input/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/default/number/number.component.d.ts +3 -4
- app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +2 -4
- app-ng-runtime/components/input/default/select/select.component.d.ts +2 -4
- app-ng-runtime/components/input/default/switch/switch.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/base/base-input.d.ts +1 -2
- app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +2 -2
- app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +2 -4
- app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +2 -4
- app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +2 -4
- app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -2
- app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -21
- app-ng-runtime/components/input/epoch/date/date.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +3 -4
- app-ng-runtime/components/input/epoch/esm2020/base-date-time.component.mjs +5 -6
- app-ng-runtime/components/input/epoch/esm2020/date/date.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/date-time/date-time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/esm2020/time/time.component.mjs +6 -9
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs +13 -22
- app-ng-runtime/components/input/epoch/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/epoch/time/time.component.d.ts +3 -4
- app-ng-runtime/components/input/file-upload/bundles/index.umd.js +3 -6
- app-ng-runtime/components/input/file-upload/esm2020/file-upload.component.mjs +6 -9
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/input/file-upload/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +3 -4
- app-ng-runtime/components/input/rating/bundles/index.umd.js +45 -51
- app-ng-runtime/components/input/rating/esm2020/rating.component.mjs +11 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/rating/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/rating/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/rating/rating.component.d.ts +2 -4
- app-ng-runtime/components/input/slider/bundles/index.umd.js +37 -43
- app-ng-runtime/components/input/slider/esm2020/slider.component.mjs +10 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs +9 -15
- app-ng-runtime/components/input/slider/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/fesm2020/index.mjs +9 -13
- app-ng-runtime/components/input/slider/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/input/slider/slider.component.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/bundles/index.umd.js +13 -25
- app-ng-runtime/components/navigation/menu/esm2020/menu-adapator.component.mjs +4 -6
- app-ng-runtime/components/navigation/menu/esm2020/menu.component.mjs +4 -7
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav-item/nav-item.directive.mjs +7 -11
- app-ng-runtime/components/navigation/menu/esm2020/nav/nav.component.mjs +5 -9
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs +14 -26
- app-ng-runtime/components/navigation/menu/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs +14 -24
- app-ng-runtime/components/navigation/menu/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/menu/menu-adapator.component.d.ts +1 -2
- app-ng-runtime/components/navigation/menu/menu.component.d.ts +2 -3
- app-ng-runtime/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +2 -4
- app-ng-runtime/components/navigation/menu/nav/nav.component.d.ts +3 -3
- app-ng-runtime/components/navigation/navbar/bundles/index.umd.js +28 -34
- app-ng-runtime/components/navigation/navbar/esm2020/navbar.component.mjs +9 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs +8 -14
- app-ng-runtime/components/navigation/navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs +8 -12
- app-ng-runtime/components/navigation/navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/navigation/navbar/navbar.component.d.ts +2 -4
- app-ng-runtime/components/page/default/bundles/index.umd.js +32 -64
- app-ng-runtime/components/page/default/content/content.component.d.ts +2 -4
- app-ng-runtime/components/page/default/esm2020/content/content.component.mjs +6 -11
- app-ng-runtime/components/page/default/esm2020/layout.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/page-content/page-content.component.mjs +7 -10
- app-ng-runtime/components/page/default/esm2020/page.directive.mjs +7 -12
- app-ng-runtime/components/page/default/esm2020/router-outlet.directive.mjs +7 -11
- app-ng-runtime/components/page/default/esm2020/spa-page.directive.mjs +7 -10
- app-ng-runtime/components/page/default/fesm2015/index.mjs +26 -58
- app-ng-runtime/components/page/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/fesm2020/index.mjs +26 -46
- app-ng-runtime/components/page/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/default/layout.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/page-content/page-content.component.d.ts +3 -4
- app-ng-runtime/components/page/default/page.directive.d.ts +3 -4
- app-ng-runtime/components/page/default/router-outlet.directive.d.ts +2 -4
- app-ng-runtime/components/page/default/spa-page.directive.d.ts +3 -4
- app-ng-runtime/components/page/footer/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/footer/esm2020/footer.directive.mjs +6 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/footer/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/footer/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/footer/footer.directive.d.ts +2 -4
- app-ng-runtime/components/page/header/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/header/esm2020/header.component.mjs +6 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/header/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/header/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/header/header.component.d.ts +2 -4
- app-ng-runtime/components/page/left-panel/bundles/index.umd.js +4 -7
- app-ng-runtime/components/page/left-panel/esm2020/left-panel.directive.mjs +6 -9
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs +4 -7
- app-ng-runtime/components/page/left-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +3 -4
- app-ng-runtime/components/page/right-panel/bundles/index.umd.js +6 -12
- app-ng-runtime/components/page/right-panel/esm2020/right-panel.directive.mjs +7 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/right-panel/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/right-panel/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -4
- app-ng-runtime/components/page/top-nav/bundles/index.umd.js +8 -14
- app-ng-runtime/components/page/top-nav/esm2020/top-nav.directive.mjs +6 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs +5 -11
- app-ng-runtime/components/page/top-nav/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs +5 -9
- app-ng-runtime/components/page/top-nav/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/page/top-nav/top-nav.directive.d.ts +2 -4
- app-ng-runtime/components/prefab/bundles/index.umd.js +7 -15
- app-ng-runtime/components/prefab/esm2020/prefab-container/prefab-container.directive.mjs +7 -10
- app-ng-runtime/components/prefab/esm2020/prefab.directive.mjs +6 -10
- app-ng-runtime/components/prefab/fesm2015/index.mjs +8 -16
- app-ng-runtime/components/prefab/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/fesm2020/index.mjs +8 -14
- app-ng-runtime/components/prefab/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/components/prefab/prefab-container/prefab-container.directive.d.ts +3 -4
- app-ng-runtime/components/prefab/prefab.directive.d.ts +2 -4
- app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +32 -37
- app-ng-runtime/mobile/components/basic/default/esm2020/network-info-toaster/network-info-toaster.component.mjs +7 -10
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs +10 -15
- app-ng-runtime/mobile/components/basic/default/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs +10 -13
- app-ng-runtime/mobile/components/basic/default/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +3 -4
- app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +18 -29
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segment-content/segment-content.component.mjs +8 -13
- app-ng-runtime/mobile/components/containers/segmented-control/esm2020/segmented-control.component.mjs +9 -13
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs +12 -23
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs +12 -19
- app-ng-runtime/mobile/components/containers/segmented-control/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +2 -4
- app-ng-runtime/mobile/components/containers/segmented-control/segmented-control.component.d.ts +2 -4
- app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +30 -36
- app-ng-runtime/mobile/components/data/media-list/esm2020/media-list.component.mjs +14 -18
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs +11 -17
- app-ng-runtime/mobile/components/data/media-list/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs +11 -15
- app-ng-runtime/mobile/components/data/media-list/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/data/media-list/media-list.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +28 -34
- app-ng-runtime/mobile/components/device/barcode-scanner/esm2020/barcode-scanner.component.mjs +10 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs +8 -14
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs +8 -12
- app-ng-runtime/mobile/components/device/barcode-scanner/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +12 -18
- app-ng-runtime/mobile/components/device/camera/camera.component.d.ts +2 -4
- app-ng-runtime/mobile/components/device/camera/esm2020/camera.component.mjs +9 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs +7 -13
- app-ng-runtime/mobile/components/device/camera/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/device/camera/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/bundles/index.umd.js +3 -6
- app-ng-runtime/mobile/components/page/mobile-navbar/esm2020/mobile-navbar.component.mjs +6 -9
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs +4 -7
- app-ng-runtime/mobile/components/page/mobile-navbar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +3 -4
- app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +32 -36
- app-ng-runtime/mobile/components/page/tab-bar/esm2020/tabbar.component.mjs +8 -13
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs +7 -11
- app-ng-runtime/mobile/components/page/tab-bar/fesm2020/index.mjs.map +1 -1
- app-ng-runtime/mobile/components/page/tab-bar/tabbar.component.d.ts +2 -4
- app-ng-runtime/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/data/media-list/src/media-list-item/media-list-item.directive.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.props.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.component.html","../../../../../../projects/mobile/components/data/media-list/src/media-list.component.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.module.ts","../../../../../../projects/mobile/components/data/media-list/src/index.ts"],"sourcesContent":["import { Directive, Input } from '@angular/core';\n\nimport { provideAsWidgetRef } from '@wm/components/base';\n\n@Directive({\n selector: '[wmMediaListItem]',\n providers: [\n provideAsWidgetRef(MediaListItemDirective)\n ]\n})\nexport class MediaListItemDirective {\n\n public index;\n public item;\n\n @Input() set wmMediaListItem(val) {\n this.item = val;\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-media-list',\n new Map(\n [\n ['class', PROP_STRING],\n ['dataset', PROP_ANY],\n ['layout', {value: 'Single-row', ...PROP_STRING}],\n ['mediaurl', PROP_STRING],\n ['name', PROP_STRING],\n ['offline', {value: true, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['thumbnailheight', {value: '100pt', ...PROP_STRING}],\n ['thumbnailwidth', {value: '100pt', ...PROP_STRING}],\n ['thumbnailurl', PROP_STRING],\n ]\n )\n );\n};\n","<ul class=\"list-unstyled list-inline app-media-thumbnail\">\n <li *ngFor=\"let item of fieldDefs; index as index;\" [ngStyle]=\"{width: thumbnailwidth, height: thumbnailheight}\" (click)=\"showFullScreen(index)\">\n <div class=\"thumbnail\">\n <ng-container [ngTemplateOutlet]=\"imgTemplate\"\n [ngTemplateOutletContext]=\"{src: item.thumbnailUrlVal, class: 'thumbnail-image'}\">\n </ng-container>\n <div class=\"thumbnail-details\">\n <ng-container [ngTemplateOutlet]=\"mediaListTemplate\" [ngTemplateOutletContext]=\"{item:item, index:index}\" [wmMediaListItem]=\"item\">\n </ng-container>\n </div>\n </div>\n </li>\n</ul>\n<div class=\"app-media-fullscreen\" *ngIf=\"selectedMediaIndex >= 0 && appendToBody()\">\n <header wmMobileNavbar\n backbutton=\"true\"\n backbtnclick.event=\"exitFullScreen()\"\n showLeftnavbtn=\"false\"\n backbuttoniconclass.event=\"wi wi-chevron-left\"\n title.bind=\"getPicTitle()\">\n </header>\n <div wmContent>\n <div wmPageContent>\n <div class=\"media-content\">\n <div class=\"image-container\" (swipeleft)=\"showNext()\" (swiperight)=\"showPrev()\">\n <ng-container [ngTemplateOutlet]=\"imgTemplate\"\n [ngTemplateOutletContext]=\"{field: 'mediaUrlVal', class: 'center-block'}\">\n </ng-container>\n <a class=\"app-media-fullscreen-nav-control left\" [hidden]=\"!(selectedMediaIndex > 0)\" (click)=\"showPrev()\">\n <i class=\"wi wi-chevron-left\"></i>\n </a>\n <a class=\"app-media-fullscreen-nav-control right\" [hidden]=\"!(selectedMediaIndex < fieldDefs.length-1)\" (click)=\"showNext()\">\n <i class=\"wi wi-chevron-right\"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #imgTemplate let-src=\"src\" let-classname=\"class\" let-field=\"field\">\n <img wmPicture class=\"{{classname}}\" picturesource.bind=\"src || getSrc(field)\" wmImageCache=\"{{offline}}\" />\n</ng-template>\n","import {Component, ContentChild, ElementRef, Injector, Optional, TemplateRef} from '@angular/core';\n\nimport {$appDigest, addClass, isArray, isObject, isString, removeClass, UserDefinedExecutionContext} from '@wm/core';\nimport {\n APPLY_STYLES_TYPE,\n getEvaluatedData,\n IWidgetConfig,\n provideAsWidgetRef,\n StylableComponent,\n styler\n} from '@wm/components/base';\n\nimport { registerProps } from './media-list.props';\n\nconst DEFAULT_CLS = 'app-medialist';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-media-list', hostClass: DEFAULT_CLS};\n\nenum Layout {\n SINGLE_ROW = 'Single-row',\n MULTI_ROW = 'Multi-row'\n}\n\n@Component({\n selector: '[wmMediaList]',\n templateUrl: './media-list.component.html',\n providers: [\n provideAsWidgetRef(MediaListComponent)\n ]\n})\nexport class MediaListComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n private $fullScreenEle;\n public binddataset;\n public fieldDefs: any[] [];\n public mediaurl: string;\n public thumbnailurl: string;\n public selectedMediaIndex = -1;\n\n @ContentChild('mediaListTemplate') mediaListTemplate: TemplateRef<ElementRef>;\n\n constructor(inj: Injector, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n public appendToBody() {\n if (!this.$fullScreenEle) {\n setTimeout(() => {\n this.$fullScreenEle = this.$element.find('>.app-media-fullscreen');\n this.$fullScreenEle.appendTo('body');\n }, 100);\n }\n return true;\n }\n\n public onPropertyChange(key, nv, ov?) {\n if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'layout') {\n if (nv === Layout.SINGLE_ROW) {\n addClass(this.nativeElement, 'singlerow');\n } else {\n removeClass(this.nativeElement, 'singlerow');\n }\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public exitFullScreen() {\n this.selectedMediaIndex = -1;\n this.$fullScreenEle.appendTo(this.$element);\n this.$fullScreenEle = null;\n $appDigest();\n }\n\n public getPicTitle() {\n return this.selectedMediaIndex + 1 + '/' + this.fieldDefs.length;\n }\n\n public showFullScreen(i) {\n this.selectedMediaIndex = i;\n $appDigest();\n }\n\n public showNext() {\n if (this.selectedMediaIndex < this.fieldDefs.length - 1) {\n this.selectedMediaIndex++;\n $appDigest();\n }\n }\n\n // Returns the field value (src) from the fieldDefs\n private getSrc(field) {\n if (field) {\n return this.fieldDefs[this.selectedMediaIndex][field];\n }\n return '';\n }\n\n public showPrev() {\n if (this.selectedMediaIndex > 0) {\n this.selectedMediaIndex--;\n $appDigest();\n }\n }\n\n private onDataChange(nv: any) {\n if (nv) {\n\n if (isObject(nv) && !isArray(nv)) {\n nv = [nv];\n }\n if (!this.binddataset) {\n if (isString(nv)) {\n nv = nv.split(',');\n }\n }\n if (isArray(nv)) {\n this.updateFieldDefs(nv as any[]);\n }\n } else {\n this.updateFieldDefs([]);\n }\n }\n\n /** With given data, creates media list items*/\n private updateFieldDefs(data: any[]) {\n this.fieldDefs = data;\n data.forEach(field => {\n field.mediaUrlVal = getEvaluatedData(field, {field: this.mediaurl}, this.viewParent);\n field.thumbnailUrlVal = getEvaluatedData(field, this.thumbnailurl, this.viewParent);\n });\n this.fieldDefs = data;\n }\n\n /**\n * used to track list items by Index.\n * @param {number} index value of the list item\n * @returns {number} index.\n */\n private listTrackByFn(index: number): number {\n return index;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule as MobileBasicModule } from '@wm/mobile/components/basic'\nimport { MobileNavbarModule } from '@wm/mobile/components/page/mobile-navbar';\nimport { PageModule } from '@wm/components/page';\nimport { BasicModule } from '@wm/components/basic';\n\nimport { MediaListComponent } from './media-list.component';\nimport { MediaListItemDirective } from './media-list-item/media-list-item.directive';\n\nconst components = [\n MediaListItemDirective,\n MediaListComponent\n];\n\n@NgModule({\n imports: [\n BasicModule,\n CommonModule,\n MobileBasicModule,\n MobileNavbarModule,\n PageModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class MediaListModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["MobileBasicModule"],"mappings":";;;;;;;;;;;;;;;;MAUa,sBAAsB,CAAA;IAK/B,IAAa,eAAe,CAAC,GAAG,EAAA;AAC5B,QAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;KACnB;;4FAPQ,sBAAsB,GAAA,CAAA,EAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,IAAA,EAAA,sBAAsB,EAJpB,SAAA,EAAA,CAAA,CAAA,EAAA,EAAA,iBAAA,EAAA,EAAA,CAAA,CAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,EAAA,CAAA,kBAAA,CAAA;YACP,kBAAk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dtB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/data/media-list/src/media-list-item/media-list-item.directive.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.props.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.component.html","../../../../../../projects/mobile/components/data/media-list/src/media-list.component.ts","../../../../../../projects/mobile/components/data/media-list/src/media-list.module.ts","../../../../../../projects/mobile/components/data/media-list/src/index.ts"],"sourcesContent":["import { Directive, Input } from '@angular/core';\n\nimport { provideAsWidgetRef } from '@wm/components/base';\n\n@Directive({\n selector: '[wmMediaListItem]',\n providers: [\n provideAsWidgetRef(MediaListItemDirective)\n ]\n})\nexport class MediaListItemDirective {\n\n public index;\n public item;\n\n @Input() set wmMediaListItem(val) {\n this.item = val;\n }\n}\n","import { PROP_ANY, PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-media-list',\n new Map(\n [\n ['class', PROP_STRING],\n ['dataset', PROP_ANY],\n ['layout', {value: 'Single-row', ...PROP_STRING}],\n ['mediaurl', PROP_STRING],\n ['name', PROP_STRING],\n ['offline', {value: true, ...PROP_BOOLEAN}],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['thumbnailheight', {value: '100pt', ...PROP_STRING}],\n ['thumbnailwidth', {value: '100pt', ...PROP_STRING}],\n ['thumbnailurl', PROP_STRING],\n ]\n )\n );\n};\n","<ul class=\"list-unstyled list-inline app-media-thumbnail\">\n <li *ngFor=\"let item of fieldDefs; index as index;\" [ngStyle]=\"{width: thumbnailwidth, height: thumbnailheight}\" (click)=\"showFullScreen(index)\">\n <div class=\"thumbnail\">\n <ng-container [ngTemplateOutlet]=\"imgTemplate\"\n [ngTemplateOutletContext]=\"{src: item.thumbnailUrlVal, class: 'thumbnail-image'}\">\n </ng-container>\n <div class=\"thumbnail-details\">\n <ng-container [ngTemplateOutlet]=\"mediaListTemplate\" [ngTemplateOutletContext]=\"{item:item, index:index}\" [wmMediaListItem]=\"item\">\n </ng-container>\n </div>\n </div>\n </li>\n</ul>\n<div class=\"app-media-fullscreen\" *ngIf=\"selectedMediaIndex >= 0 && appendToBody()\">\n <header wmMobileNavbar\n backbutton=\"true\"\n backbtnclick.event=\"exitFullScreen()\"\n showLeftnavbtn=\"false\"\n backbuttoniconclass.event=\"wi wi-chevron-left\"\n title.bind=\"getPicTitle()\">\n </header>\n <div wmContent>\n <div wmPageContent>\n <div class=\"media-content\">\n <div class=\"image-container\" (swipeleft)=\"showNext()\" (swiperight)=\"showPrev()\">\n <ng-container [ngTemplateOutlet]=\"imgTemplate\"\n [ngTemplateOutletContext]=\"{field: 'mediaUrlVal', class: 'center-block'}\">\n </ng-container>\n <a class=\"app-media-fullscreen-nav-control left\" [hidden]=\"!(selectedMediaIndex > 0)\" (click)=\"showPrev()\">\n <i class=\"wi wi-chevron-left\"></i>\n </a>\n <a class=\"app-media-fullscreen-nav-control right\" [hidden]=\"!(selectedMediaIndex < fieldDefs.length-1)\" (click)=\"showNext()\">\n <i class=\"wi wi-chevron-right\"></i>\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #imgTemplate let-src=\"src\" let-classname=\"class\" let-field=\"field\">\n <img wmPicture class=\"{{classname}}\" picturesource.bind=\"src || getSrc(field)\" wmImageCache=\"{{offline}}\" />\n</ng-template>\n","import {Component, ContentChild, ElementRef, Injector, Optional, TemplateRef} from '@angular/core';\n\nimport {$appDigest, addClass, isArray, isObject, isString, removeClass, UserDefinedExecutionContext} from '@wm/core';\nimport {\n APPLY_STYLES_TYPE,\n getEvaluatedData,\n IWidgetConfig,\n provideAsWidgetRef,\n StylableComponent,\n styler\n} from '@wm/components/base';\n\nimport { registerProps } from './media-list.props';\n\nconst DEFAULT_CLS = 'app-medialist';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-media-list', hostClass: DEFAULT_CLS};\n\nenum Layout {\n SINGLE_ROW = 'Single-row',\n MULTI_ROW = 'Multi-row'\n}\n\n@Component({\n selector: '[wmMediaList]',\n templateUrl: './media-list.component.html',\n providers: [\n provideAsWidgetRef(MediaListComponent)\n ]\n})\nexport class MediaListComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n private $fullScreenEle;\n public binddataset;\n public fieldDefs: any[] [];\n public mediaurl: string;\n public thumbnailurl: string;\n public selectedMediaIndex = -1;\n\n @ContentChild('mediaListTemplate') mediaListTemplate: TemplateRef<ElementRef>;\n\n constructor(inj: Injector) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n public appendToBody() {\n if (!this.$fullScreenEle) {\n setTimeout(() => {\n this.$fullScreenEle = this.$element.find('>.app-media-fullscreen');\n this.$fullScreenEle.appendTo('body');\n }, 100);\n }\n return true;\n }\n\n public onPropertyChange(key, nv, ov?) {\n if (key === 'dataset') {\n this.onDataChange(nv);\n } else if (key === 'layout') {\n if (nv === Layout.SINGLE_ROW) {\n addClass(this.nativeElement, 'singlerow');\n } else {\n removeClass(this.nativeElement, 'singlerow');\n }\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n public exitFullScreen() {\n this.selectedMediaIndex = -1;\n this.$fullScreenEle.appendTo(this.$element);\n this.$fullScreenEle = null;\n $appDigest();\n }\n\n public getPicTitle() {\n return this.selectedMediaIndex + 1 + '/' + this.fieldDefs.length;\n }\n\n public showFullScreen(i) {\n this.selectedMediaIndex = i;\n $appDigest();\n }\n\n public showNext() {\n if (this.selectedMediaIndex < this.fieldDefs.length - 1) {\n this.selectedMediaIndex++;\n $appDigest();\n }\n }\n\n // Returns the field value (src) from the fieldDefs\n private getSrc(field) {\n if (field) {\n return this.fieldDefs[this.selectedMediaIndex][field];\n }\n return '';\n }\n\n public showPrev() {\n if (this.selectedMediaIndex > 0) {\n this.selectedMediaIndex--;\n $appDigest();\n }\n }\n\n private onDataChange(nv: any) {\n if (nv) {\n\n if (isObject(nv) && !isArray(nv)) {\n nv = [nv];\n }\n if (!this.binddataset) {\n if (isString(nv)) {\n nv = nv.split(',');\n }\n }\n if (isArray(nv)) {\n this.updateFieldDefs(nv as any[]);\n }\n } else {\n this.updateFieldDefs([]);\n }\n }\n\n /** With given data, creates media list items*/\n private updateFieldDefs(data: any[]) {\n this.fieldDefs = data;\n data.forEach(field => {\n field.mediaUrlVal = getEvaluatedData(field, {field: this.mediaurl}, this.viewParent);\n field.thumbnailUrlVal = getEvaluatedData(field, this.thumbnailurl, this.viewParent);\n });\n this.fieldDefs = data;\n }\n\n /**\n * used to track list items by Index.\n * @param {number} index value of the list item\n * @returns {number} index.\n */\n private listTrackByFn(index: number): number {\n return index;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { BasicModule as MobileBasicModule } from '@wm/mobile/components/basic'\nimport { MobileNavbarModule } from '@wm/mobile/components/page/mobile-navbar';\nimport { PageModule } from '@wm/components/page';\nimport { BasicModule } from '@wm/components/basic';\n\nimport { MediaListComponent } from './media-list.component';\nimport { MediaListItemDirective } from './media-list-item/media-list-item.directive';\n\nconst components = [\n MediaListItemDirective,\n MediaListComponent\n];\n\n@NgModule({\n imports: [\n BasicModule,\n CommonModule,\n MobileBasicModule,\n MobileNavbarModule,\n PageModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class MediaListModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["MobileBasicModule"],"mappings":";;;;;;;;;;;;;;;MAUa,sBAAsB,CAAA;IAK/B,IAAa,eAAe,CAAC,GAAG,EAAA;AAC5B,QAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;KACnB;;4FAPQ,sBAAsB,GAAA,CAAA,EAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,iBAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,IAAA,EAAA,sBAAsB,EAJpB,SA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AA,CAAA,EAAA,GAAA;;ACdtB;;AAEG;;;;"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ElementRef, Injector, TemplateRef } from '@angular/core';
|
|
2
|
-
import { UserDefinedExecutionContext } from '@wm/core';
|
|
3
2
|
import { StylableComponent } from '@wm/components/base';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class MediaListComponent extends StylableComponent {
|
|
6
|
-
_viewParent: UserDefinedExecutionContext;
|
|
7
5
|
static initializeProps: void;
|
|
8
6
|
private $fullScreenEle;
|
|
9
7
|
binddataset: any;
|
|
@@ -12,7 +10,7 @@ export declare class MediaListComponent extends StylableComponent {
|
|
|
12
10
|
thumbnailurl: string;
|
|
13
11
|
selectedMediaIndex: number;
|
|
14
12
|
mediaListTemplate: TemplateRef<ElementRef>;
|
|
15
|
-
constructor(inj: Injector
|
|
13
|
+
constructor(inj: Injector);
|
|
16
14
|
appendToBody(): boolean;
|
|
17
15
|
onPropertyChange(key: any, nv: any, ov?: any): void;
|
|
18
16
|
exitFullScreen(): void;
|
|
@@ -30,6 +28,6 @@ export declare class MediaListComponent extends StylableComponent {
|
|
|
30
28
|
* @returns {number} index.
|
|
31
29
|
*/
|
|
32
30
|
private listTrackByFn;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MediaListComponent,
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaListComponent, never>;
|
|
34
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<MediaListComponent, "[wmMediaList]", never, {}, {}, ["mediaListTemplate"], never, false, never>;
|
|
35
33
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';
|
|
3
3
|
import { StylableComponent } from '@wm/components/base';
|
|
4
|
-
import { UserDefinedExecutionContext } from '@wm/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class BarcodeScannerComponent extends StylableComponent {
|
|
7
6
|
private scanner;
|
|
8
|
-
_viewParent: UserDefinedExecutionContext;
|
|
9
7
|
static initializeProps: void;
|
|
10
8
|
barcodeformat: string;
|
|
11
9
|
datavalue: string;
|
|
12
10
|
iconclass: any;
|
|
13
11
|
iconsize: any;
|
|
14
12
|
caption: any;
|
|
15
|
-
constructor(scanner: BarcodeScanner, inj: Injector
|
|
13
|
+
constructor(scanner: BarcodeScanner, inj: Injector);
|
|
16
14
|
openBarcodescanner($event: any): void;
|
|
17
15
|
private scan;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeScannerComponent,
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BarcodeScannerComponent, never>;
|
|
19
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<BarcodeScannerComponent, "button[wmBarcodescanner]", ["wmBarcodescanner"], {}, {}, never, never, false, never>;
|
|
20
18
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@wm/components/base'), require('@wm/core'), require('@awesome-cordova-plugins/barcode-scanner/ngx'), require('@angular/common')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@wm/components/base', '@wm/core', '@awesome-cordova-plugins/barcode-scanner/ngx', '@angular/common'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.mobile = global.wm.mobile || {}, global.wm.mobile.components = global.wm.mobile.components || {}, global.wm.mobile.components.device = global.wm.mobile.components.device || {}, global.wm.mobile.components.device.barcodescanner = {}), global.ng.core, global.wm.components.base, global.wm.core, global.awesomeCordova.plugins, global.ng.common));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
5
|
+
})(this, (function (exports, i0, i3, core, i1, i2) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -22,21 +22,20 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
-
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
26
|
-
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
27
|
-
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
28
25
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
29
28
|
|
|
30
29
|
const registerProps = () => {
|
|
31
|
-
|
|
32
|
-
['barcodeformat', Object.assign({ value: 'ALL' },
|
|
33
|
-
['caption', Object.assign({ value: '' },
|
|
34
|
-
['class',
|
|
35
|
-
['iconclass', Object.assign({ value: 'glyphicon glyphicon-barcode' },
|
|
36
|
-
['iconsize', Object.assign({ value: '2em' },
|
|
37
|
-
['name',
|
|
38
|
-
['show', Object.assign({ value: true },
|
|
39
|
-
['hint',
|
|
30
|
+
i3.register('wm-barcodescanner', new Map([
|
|
31
|
+
['barcodeformat', Object.assign({ value: 'ALL' }, i3.PROP_STRING)],
|
|
32
|
+
['caption', Object.assign({ value: '' }, i3.PROP_STRING)],
|
|
33
|
+
['class', i3.PROP_STRING],
|
|
34
|
+
['iconclass', Object.assign({ value: 'glyphicon glyphicon-barcode' }, i3.PROP_STRING)],
|
|
35
|
+
['iconsize', Object.assign({ value: '2em' }, i3.PROP_STRING)],
|
|
36
|
+
['name', i3.PROP_STRING],
|
|
37
|
+
['show', Object.assign({ value: true }, i3.PROP_BOOLEAN)],
|
|
38
|
+
['hint', i3.PROP_STRING]
|
|
40
39
|
]));
|
|
41
40
|
};
|
|
42
41
|
|
|
@@ -44,12 +43,11 @@
|
|
|
44
43
|
const _c1 = function (a0) { return { "font-size": a0 }; };
|
|
45
44
|
const DEFAULT_CLS = 'btn app-barcode';
|
|
46
45
|
const WIDGET_CONFIG = { widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS };
|
|
47
|
-
class BarcodeScannerComponent extends
|
|
48
|
-
constructor(scanner, inj
|
|
49
|
-
super(inj, WIDGET_CONFIG
|
|
46
|
+
class BarcodeScannerComponent extends i3.StylableComponent {
|
|
47
|
+
constructor(scanner, inj) {
|
|
48
|
+
super(inj, WIDGET_CONFIG);
|
|
50
49
|
this.scanner = scanner;
|
|
51
|
-
this.
|
|
52
|
-
i4.styler(this.nativeElement, this, i4.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
50
|
+
i3.styler(this.nativeElement, this, i3.APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
53
51
|
}
|
|
54
52
|
openBarcodescanner($event) {
|
|
55
53
|
this.scan().then(text => {
|
|
@@ -62,7 +60,7 @@
|
|
|
62
60
|
showFlipCameraButton: true,
|
|
63
61
|
showTorchButton: true
|
|
64
62
|
};
|
|
65
|
-
if (
|
|
63
|
+
if (core.hasCordova()) {
|
|
66
64
|
if (this.barcodeformat && this.barcodeformat !== 'ALL') {
|
|
67
65
|
options.formats = this.barcodeformat;
|
|
68
66
|
}
|
|
@@ -73,13 +71,13 @@
|
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
BarcodeScannerComponent.initializeProps = registerProps();
|
|
76
|
-
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.BarcodeScanner), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)
|
|
74
|
+
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.BarcodeScanner), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
77
75
|
BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: BarcodeScannerComponent, selectors: [["button", "wmBarcodescanner", ""]], hostBindings: function BarcodeScannerComponent_HostBindings(rf, ctx) {
|
|
78
76
|
if (rf & 1) {
|
|
79
77
|
i0__namespace.ɵɵlistener("click", function BarcodeScannerComponent_click_HostBindingHandler($event) { return ctx.openBarcodescanner($event); });
|
|
80
78
|
}
|
|
81
79
|
}, exportAs: ["wmBarcodescanner"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
82
|
-
|
|
80
|
+
i3.provideAsWidgetRef(BarcodeScannerComponent)
|
|
83
81
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 2, vars: 5, consts: [[3, "ngClass", "ngStyle"], [1, "btn-caption", 3, "textContent"]], template: function BarcodeScannerComponent_Template(rf, ctx) {
|
|
84
82
|
if (rf & 1) {
|
|
85
83
|
i0__namespace.ɵɵelement(0, "i", 0)(1, "span", 1);
|
|
@@ -89,18 +87,14 @@
|
|
|
89
87
|
i0__namespace.ɵɵadvance(1);
|
|
90
88
|
i0__namespace.ɵɵproperty("textContent", ctx.caption);
|
|
91
89
|
}
|
|
92
|
-
}, dependencies: [
|
|
90
|
+
}, dependencies: [i2__namespace.NgClass, i2__namespace.NgStyle, i3__namespace.TextContentDirective], encapsulation: 2 });
|
|
93
91
|
(function () {
|
|
94
92
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BarcodeScannerComponent, [{
|
|
95
93
|
type: i0.Component,
|
|
96
94
|
args: [{ selector: 'button[wmBarcodescanner]', providers: [
|
|
97
|
-
|
|
95
|
+
i3.provideAsWidgetRef(BarcodeScannerComponent)
|
|
98
96
|
], exportAs: 'wmBarcodescanner', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>" }]
|
|
99
|
-
}], function () {
|
|
100
|
-
return [{ type: i1__namespace.BarcodeScanner }, { type: i0__namespace.Injector }, { type: i2__namespace.UserDefinedExecutionContext, decorators: [{
|
|
101
|
-
type: i0.Optional
|
|
102
|
-
}] }];
|
|
103
|
-
}, { openBarcodescanner: [{
|
|
97
|
+
}], function () { return [{ type: i1__namespace.BarcodeScanner }, { type: i0__namespace.Injector }]; }, { openBarcodescanner: [{
|
|
104
98
|
type: i0.HostListener,
|
|
105
99
|
args: ['click', ['$event']]
|
|
106
100
|
}] });
|
|
@@ -113,15 +107,15 @@
|
|
|
113
107
|
}
|
|
114
108
|
BarcodeScannerModule.ɵfac = function BarcodeScannerModule_Factory(t) { return new (t || BarcodeScannerModule)(); };
|
|
115
109
|
BarcodeScannerModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: BarcodeScannerModule });
|
|
116
|
-
BarcodeScannerModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [
|
|
117
|
-
|
|
110
|
+
BarcodeScannerModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i2.CommonModule,
|
|
111
|
+
i3.WmComponentsModule] });
|
|
118
112
|
(function () {
|
|
119
113
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BarcodeScannerModule, [{
|
|
120
114
|
type: i0.NgModule,
|
|
121
115
|
args: [{
|
|
122
116
|
imports: [
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
i2.CommonModule,
|
|
118
|
+
i3.WmComponentsModule
|
|
125
119
|
],
|
|
126
120
|
declarations: [...components],
|
|
127
121
|
exports: [...components]
|
|
@@ -129,8 +123,8 @@
|
|
|
129
123
|
}], null, null);
|
|
130
124
|
})();
|
|
131
125
|
(function () {
|
|
132
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(BarcodeScannerModule, { declarations: [BarcodeScannerComponent], imports: [
|
|
133
|
-
|
|
126
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(BarcodeScannerModule, { declarations: [BarcodeScannerComponent], imports: [i2.CommonModule,
|
|
127
|
+
i3.WmComponentsModule], exports: [BarcodeScannerComponent] });
|
|
134
128
|
})();
|
|
135
129
|
|
|
136
130
|
exports.BarcodeScannerComponent = BarcodeScannerComponent;
|
app-ng-runtime/mobile/components/device/barcode-scanner/esm2020/barcode-scanner.component.mjs
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { Component, HostListener, Injector
|
|
1
|
+
import { Component, HostListener, Injector } from '@angular/core';
|
|
2
2
|
import { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';
|
|
3
3
|
import { APPLY_STYLES_TYPE, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
|
|
4
|
-
import { hasCordova
|
|
4
|
+
import { hasCordova } from '@wm/core';
|
|
5
5
|
import { registerProps } from './barcode-scanner.props';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@awesome-cordova-plugins/barcode-scanner/ngx";
|
|
8
|
-
import * as i2 from "@
|
|
9
|
-
import * as i3 from "@
|
|
10
|
-
import * as i4 from "@wm/components/base";
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
import * as i3 from "@wm/components/base";
|
|
11
10
|
const _c0 = ["wmBarcodescanner", ""];
|
|
12
11
|
const _c1 = function (a0) { return { "font-size": a0 }; };
|
|
13
12
|
const DEFAULT_CLS = 'btn app-barcode';
|
|
14
13
|
const WIDGET_CONFIG = { widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS };
|
|
15
14
|
export class BarcodeScannerComponent extends StylableComponent {
|
|
16
|
-
constructor(scanner, inj
|
|
17
|
-
super(inj, WIDGET_CONFIG
|
|
15
|
+
constructor(scanner, inj) {
|
|
16
|
+
super(inj, WIDGET_CONFIG);
|
|
18
17
|
this.scanner = scanner;
|
|
19
|
-
this._viewParent = _viewParent;
|
|
20
18
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
21
19
|
}
|
|
22
20
|
openBarcodescanner($event) {
|
|
@@ -41,7 +39,7 @@ export class BarcodeScannerComponent extends StylableComponent {
|
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
BarcodeScannerComponent.initializeProps = registerProps();
|
|
44
|
-
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)
|
|
42
|
+
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
45
43
|
BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BarcodeScannerComponent, selectors: [["button", "wmBarcodescanner", ""]], hostBindings: function BarcodeScannerComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
46
44
|
i0.ɵɵlistener("click", function BarcodeScannerComponent_click_HostBindingHandler($event) { return ctx.openBarcodescanner($event); });
|
|
47
45
|
} }, exportAs: ["wmBarcodescanner"], features: [i0.ɵɵProvidersFeature([
|
|
@@ -52,16 +50,14 @@ BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Bar
|
|
|
52
50
|
i0.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0.ɵɵpureFunction1(3, _c1, ctx.iconsize));
|
|
53
51
|
i0.ɵɵadvance(1);
|
|
54
52
|
i0.ɵɵproperty("textContent", ctx.caption);
|
|
55
|
-
} }, dependencies: [
|
|
53
|
+
} }, dependencies: [i2.NgClass, i2.NgStyle, i3.TextContentDirective], encapsulation: 2 });
|
|
56
54
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BarcodeScannerComponent, [{
|
|
57
55
|
type: Component,
|
|
58
56
|
args: [{ selector: 'button[wmBarcodescanner]', providers: [
|
|
59
57
|
provideAsWidgetRef(BarcodeScannerComponent)
|
|
60
58
|
], exportAs: 'wmBarcodescanner', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>" }]
|
|
61
|
-
}], function () { return [{ type: i1.BarcodeScanner }, { type: i0.Injector }, {
|
|
62
|
-
type: Optional
|
|
63
|
-
}] }]; }, { openBarcodescanner: [{
|
|
59
|
+
}], function () { return [{ type: i1.BarcodeScanner }, { type: i0.Injector }]; }, { openBarcodescanner: [{
|
|
64
60
|
type: HostListener,
|
|
65
61
|
args: ['click', ['$event']]
|
|
66
62
|
}] }); })();
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFyY29kZS1zY2FubmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vYmlsZS9jb21wb25lbnRzL2RldmljZS9iYXJjb2RlLXNjYW5uZXIvc3JjL2JhcmNvZGUtc2Nhbm5lci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb2JpbGUvY29tcG9uZW50cy9kZXZpY2UvYmFyY29kZS1zY2FubmVyL3NyYy9iYXJjb2RlLXNjYW5uZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxZQUFZLEVBQUUsUUFBUSxFQUFXLE1BQU0sZUFBZSxDQUFDO0FBRTFFLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztB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cm1hdHMgPSB0aGlzLmJhcmNvZGVmb3JtYXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5zY2FubmVyLnNjYW4ob3B0aW9ucylcbiAgICAgICAgICAgICAgICAudGhlbihkYXRhID0+IGRhdGEudGV4dCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIFByb21pc2UucmVzb2x2ZSgnQkFSX0NPREUnKTtcbiAgICB9XG59XG4iLCI8aSBbbmdDbGFzc109XCJpY29uY2xhc3NcIiBbbmdTdHlsZV09XCJ7J2ZvbnQtc2l6ZSc6IGljb25zaXplfVwiPjwvaT5cbjxzcGFuIGNsYXNzPVwiYnRuLWNhcHRpb25cIiBbdGV4dENvbnRlbnRdPVwiY2FwdGlvblwiPjwvc3Bhbj4iXX0=
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
3
|
-
import * as
|
|
2
|
+
import { Component, HostListener, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@wm/components/base';
|
|
4
4
|
import { register, PROP_STRING, PROP_BOOLEAN, StylableComponent, styler, APPLY_STYLES_TYPE, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
|
5
|
-
import * as i2 from '@wm/core';
|
|
6
5
|
import { hasCordova } from '@wm/core';
|
|
7
6
|
import * as i1 from '@awesome-cordova-plugins/barcode-scanner/ngx';
|
|
8
|
-
import * as
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
9
8
|
import { CommonModule } from '@angular/common';
|
|
10
9
|
|
|
11
10
|
const registerProps = () => {
|
|
@@ -26,10 +25,9 @@ const _c1 = function (a0) { return { "font-size": a0 }; };
|
|
|
26
25
|
const DEFAULT_CLS = 'btn app-barcode';
|
|
27
26
|
const WIDGET_CONFIG = { widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS };
|
|
28
27
|
class BarcodeScannerComponent extends StylableComponent {
|
|
29
|
-
constructor(scanner, inj
|
|
30
|
-
super(inj, WIDGET_CONFIG
|
|
28
|
+
constructor(scanner, inj) {
|
|
29
|
+
super(inj, WIDGET_CONFIG);
|
|
31
30
|
this.scanner = scanner;
|
|
32
|
-
this._viewParent = _viewParent;
|
|
33
31
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
34
32
|
}
|
|
35
33
|
openBarcodescanner($event) {
|
|
@@ -54,7 +52,7 @@ class BarcodeScannerComponent extends StylableComponent {
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
BarcodeScannerComponent.initializeProps = registerProps();
|
|
57
|
-
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)
|
|
55
|
+
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
58
56
|
BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BarcodeScannerComponent, selectors: [["button", "wmBarcodescanner", ""]], hostBindings: function BarcodeScannerComponent_HostBindings(rf, ctx) {
|
|
59
57
|
if (rf & 1) {
|
|
60
58
|
i0.ɵɵlistener("click", function BarcodeScannerComponent_click_HostBindingHandler($event) { return ctx.openBarcodescanner($event); });
|
|
@@ -70,18 +68,14 @@ BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Bar
|
|
|
70
68
|
i0.ɵɵadvance(1);
|
|
71
69
|
i0.ɵɵproperty("textContent", ctx.caption);
|
|
72
70
|
}
|
|
73
|
-
}, dependencies: [
|
|
71
|
+
}, dependencies: [i2.NgClass, i2.NgStyle, i3.TextContentDirective], encapsulation: 2 });
|
|
74
72
|
(function () {
|
|
75
73
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BarcodeScannerComponent, [{
|
|
76
74
|
type: Component,
|
|
77
75
|
args: [{ selector: 'button[wmBarcodescanner]', providers: [
|
|
78
76
|
provideAsWidgetRef(BarcodeScannerComponent)
|
|
79
77
|
], exportAs: 'wmBarcodescanner', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>" }]
|
|
80
|
-
}], function () {
|
|
81
|
-
return [{ type: i1.BarcodeScanner }, { type: i0.Injector }, { type: i2.UserDefinedExecutionContext, decorators: [{
|
|
82
|
-
type: Optional
|
|
83
|
-
}] }];
|
|
84
|
-
}, { openBarcodescanner: [{
|
|
78
|
+
}], function () { return [{ type: i1.BarcodeScanner }, { type: i0.Injector }]; }, { openBarcodescanner: [{
|
|
85
79
|
type: HostListener,
|
|
86
80
|
args: ['click', ['$event']]
|
|
87
81
|
}] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.props.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.html","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.module.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-barcodescanner',\n new Map(\n [\n ['barcodeformat', {value: 'ALL', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['iconclass', {value: 'glyphicon glyphicon-barcode', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, HostListener, Injector, Optional} from '@angular/core';\n\nimport { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './barcode-scanner.props';\n\nconst DEFAULT_CLS = 'btn app-barcode';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'button[wmBarcodescanner]',\n templateUrl: './barcode-scanner.component.html',\n providers: [\n provideAsWidgetRef(BarcodeScannerComponent)\n ],\n exportAs: 'wmBarcodescanner'\n})\nexport class BarcodeScannerComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n public barcodeformat: string;\n public datavalue: string;\n public iconclass: any;\n public iconsize: any;\n public caption: any;\n\n\n constructor(private scanner: BarcodeScanner, inj: Injector
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.props.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.html","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.module.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-barcodescanner',\n new Map(\n [\n ['barcodeformat', {value: 'ALL', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['iconclass', {value: 'glyphicon glyphicon-barcode', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, HostListener, Injector, Optional} from '@angular/core';\n\nimport { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './barcode-scanner.props';\n\nconst DEFAULT_CLS = 'btn app-barcode';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'button[wmBarcodescanner]',\n templateUrl: './barcode-scanner.component.html',\n providers: [\n provideAsWidgetRef(BarcodeScannerComponent)\n ],\n exportAs: 'wmBarcodescanner'\n})\nexport class BarcodeScannerComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n public barcodeformat: string;\n public datavalue: string;\n public iconclass: any;\n public iconsize: any;\n public caption: any;\n\n\n constructor(private scanner: BarcodeScanner, inj: Injector) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openBarcodescanner($event) {\n this.scan().then(text => {\n this.datavalue = text;\n this.invokeEventCallback('success', {$event});\n });\n }\n\n private scan(): Promise<string> {\n let options = {\n showFlipCameraButton : true,\n showTorchButton : true\n } as any;\n if (hasCordova()) {\n if (this.barcodeformat && this.barcodeformat !== 'ALL') {\n options.formats = this.barcodeformat;\n }\n return this.scanner.scan(options)\n .then(data => data.text);\n }\n return Promise.resolve('BAR_CODE');\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { BarcodeScannerComponent } from './barcode-scanner.component';\n\nconst components = [\n BarcodeScannerComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class BarcodeScannerModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,mBAAmB,EACnB,IAAI,GAAG,CACH;AACI,QAAA,CAAC,eAAe,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,KAAK,EAAA,EAAK,WAAW,CAAE,CAAA;AACjD,QAAA,CAAC,SAAS,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,EAAE,EAAA,EAAK,WAAW,CAAE,CAAA;QACxC,CAAC,OAAO,EAAE,WAAW,CAAC;AACtB,QAAA,CAAC,WAAW,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,6BAA6B,EAAA,EAAK,WAAW,CAAE,CAAA;AACrE,QAAA,CAAC,UAAU,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,KAAK,EAAA,EAAK,WAAW,CAAE,CAAA;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;AACrB,QAAA,CAAC,MAAM,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAAY,CAAE,CAAA;QACxC,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;;;ACTD,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,aAAa,GAAkB,EAAC,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAC,CAAC;AAUzF,MAAO,uBAAwB,SAAQ,iBAAiB,CAAA;IAU1D,WAAoB,CAAA,OAAuB,EAAE,GAAa,EAAA;AACtD,QAAA,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;AADV,QAAA,IAAO,CAAA,OAA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AA;4FAkBrB,kBAAkB,EAAA,CAAA;sBADxB,YAAY;uBAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAA;;;;AE5BrC,MAAM,UAAU,GAAG;IACf,uBAAuB;CAC1B,CAAC;MAUW,oBAAoB,CAAA;;wFAApB,oBAAoB,GAAA,CAAA,EAAA,CAAA;sEAApB,oBAAoB,EAAA,CAAA,CAAA;0EANzB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4EAKb,oBAAoB,EAAA,CAAA;kBARhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,kBAAkB;AACrB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBAC3B,CAAA;;;;6EACY,oBAAoB,EAAA,EAAA,YAAA,EAAA,CAX7B,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAKnB,YAAY;YACZ,kBAAkB,aANtB,uBAAuB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACR3B;;AAEG;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, HostListener, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1 from '@awesome-cordova-plugins/barcode-scanner/ngx';
|
|
4
|
-
import * as
|
|
4
|
+
import * as i3 from '@wm/components/base';
|
|
5
5
|
import { register, PROP_STRING, PROP_BOOLEAN, StylableComponent, styler, APPLY_STYLES_TYPE, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
|
6
|
-
import * as i2 from '@wm/core';
|
|
7
6
|
import { hasCordova } from '@wm/core';
|
|
8
|
-
import * as
|
|
7
|
+
import * as i2 from '@angular/common';
|
|
9
8
|
import { CommonModule } from '@angular/common';
|
|
10
9
|
|
|
11
10
|
const registerProps = () => {
|
|
@@ -26,10 +25,9 @@ const _c1 = function (a0) { return { "font-size": a0 }; };
|
|
|
26
25
|
const DEFAULT_CLS = 'btn app-barcode';
|
|
27
26
|
const WIDGET_CONFIG = { widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS };
|
|
28
27
|
class BarcodeScannerComponent extends StylableComponent {
|
|
29
|
-
constructor(scanner, inj
|
|
30
|
-
super(inj, WIDGET_CONFIG
|
|
28
|
+
constructor(scanner, inj) {
|
|
29
|
+
super(inj, WIDGET_CONFIG);
|
|
31
30
|
this.scanner = scanner;
|
|
32
|
-
this._viewParent = _viewParent;
|
|
33
31
|
styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);
|
|
34
32
|
}
|
|
35
33
|
openBarcodescanner($event) {
|
|
@@ -54,7 +52,7 @@ class BarcodeScannerComponent extends StylableComponent {
|
|
|
54
52
|
}
|
|
55
53
|
}
|
|
56
54
|
BarcodeScannerComponent.initializeProps = registerProps();
|
|
57
|
-
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)
|
|
55
|
+
BarcodeScannerComponent.ɵfac = function BarcodeScannerComponent_Factory(t) { return new (t || BarcodeScannerComponent)(i0.ɵɵdirectiveInject(i1.BarcodeScanner), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
58
56
|
BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BarcodeScannerComponent, selectors: [["button", "wmBarcodescanner", ""]], hostBindings: function BarcodeScannerComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
59
57
|
i0.ɵɵlistener("click", function BarcodeScannerComponent_click_HostBindingHandler($event) { return ctx.openBarcodescanner($event); });
|
|
60
58
|
} }, exportAs: ["wmBarcodescanner"], features: [i0.ɵɵProvidersFeature([
|
|
@@ -65,15 +63,13 @@ BarcodeScannerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Bar
|
|
|
65
63
|
i0.ɵɵproperty("ngClass", ctx.iconclass)("ngStyle", i0.ɵɵpureFunction1(3, _c1, ctx.iconsize));
|
|
66
64
|
i0.ɵɵadvance(1);
|
|
67
65
|
i0.ɵɵproperty("textContent", ctx.caption);
|
|
68
|
-
} }, dependencies: [
|
|
66
|
+
} }, dependencies: [i2.NgClass, i2.NgStyle, i3.TextContentDirective], encapsulation: 2 });
|
|
69
67
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BarcodeScannerComponent, [{
|
|
70
68
|
type: Component,
|
|
71
69
|
args: [{ selector: 'button[wmBarcodescanner]', providers: [
|
|
72
70
|
provideAsWidgetRef(BarcodeScannerComponent)
|
|
73
71
|
], exportAs: 'wmBarcodescanner', template: "<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>" }]
|
|
74
|
-
}], function () { return [{ type: i1.BarcodeScanner }, { type: i0.Injector }, {
|
|
75
|
-
type: Optional
|
|
76
|
-
}] }]; }, { openBarcodescanner: [{
|
|
72
|
+
}], function () { return [{ type: i1.BarcodeScanner }, { type: i0.Injector }]; }, { openBarcodescanner: [{
|
|
77
73
|
type: HostListener,
|
|
78
74
|
args: ['click', ['$event']]
|
|
79
75
|
}] }); })();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.props.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.html","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.module.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-barcodescanner',\n new Map(\n [\n ['barcodeformat', {value: 'ALL', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['iconclass', {value: 'glyphicon glyphicon-barcode', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, HostListener, Injector, Optional} from '@angular/core';\n\nimport { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './barcode-scanner.props';\n\nconst DEFAULT_CLS = 'btn app-barcode';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'button[wmBarcodescanner]',\n templateUrl: './barcode-scanner.component.html',\n providers: [\n provideAsWidgetRef(BarcodeScannerComponent)\n ],\n exportAs: 'wmBarcodescanner'\n})\nexport class BarcodeScannerComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n public barcodeformat: string;\n public datavalue: string;\n public iconclass: any;\n public iconsize: any;\n public caption: any;\n\n\n constructor(private scanner: BarcodeScanner, inj: Injector
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.props.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.component.html","../../../../../../projects/mobile/components/device/barcode-scanner/src/barcode-scanner.module.ts","../../../../../../projects/mobile/components/device/barcode-scanner/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-barcodescanner',\n new Map(\n [\n ['barcodeformat', {value: 'ALL', ...PROP_STRING}],\n ['caption', {value: '', ...PROP_STRING}],\n ['class', PROP_STRING],\n ['iconclass', {value: 'glyphicon glyphicon-barcode', ...PROP_STRING}],\n ['iconsize', {value: '2em', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['hint', PROP_STRING]\n ]\n )\n );\n};\n","import {Component, HostListener, Injector, Optional} from '@angular/core';\n\nimport { BarcodeScanner } from '@awesome-cordova-plugins/barcode-scanner/ngx';\n\nimport { APPLY_STYLES_TYPE, IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {hasCordova, UserDefinedExecutionContext} from '@wm/core';\n\nimport { registerProps } from './barcode-scanner.props';\n\nconst DEFAULT_CLS = 'btn app-barcode';\nconst WIDGET_CONFIG: IWidgetConfig = {widgetType: 'wm-barcodescanner', hostClass: DEFAULT_CLS};\n\n@Component({\n selector: 'button[wmBarcodescanner]',\n templateUrl: './barcode-scanner.component.html',\n providers: [\n provideAsWidgetRef(BarcodeScannerComponent)\n ],\n exportAs: 'wmBarcodescanner'\n})\nexport class BarcodeScannerComponent extends StylableComponent {\n static initializeProps = registerProps();\n\n public barcodeformat: string;\n public datavalue: string;\n public iconclass: any;\n public iconsize: any;\n public caption: any;\n\n\n constructor(private scanner: BarcodeScanner, inj: Injector) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.SCROLLABLE_CONTAINER);\n }\n\n @HostListener('click', ['$event'])\n public openBarcodescanner($event) {\n this.scan().then(text => {\n this.datavalue = text;\n this.invokeEventCallback('success', {$event});\n });\n }\n\n private scan(): Promise<string> {\n let options = {\n showFlipCameraButton : true,\n showTorchButton : true\n } as any;\n if (hasCordova()) {\n if (this.barcodeformat && this.barcodeformat !== 'ALL') {\n options.formats = this.barcodeformat;\n }\n return this.scanner.scan(options)\n .then(data => data.text);\n }\n return Promise.resolve('BAR_CODE');\n }\n}\n","<i [ngClass]=\"iconclass\" [ngStyle]=\"{'font-size': iconsize}\"></i>\n<span class=\"btn-caption\" [textContent]=\"caption\"></span>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { BarcodeScannerComponent } from './barcode-scanner.component';\n\nconst components = [\n BarcodeScannerComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class BarcodeScannerModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,mBAAmB,EACnB,IAAI,GAAG,CACH;QACI,CAAC,eAAe,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,WAAW,EAAC,CAAC;QACjD,CAAC,SAAS,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;QACxC,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,6BAA6B,EAAE,GAAG,WAAW,EAAC,CAAC;QACrE,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,WAAW,EAAC,CAAC;QAC5C,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QACxC,CAAC,MAAM,EAAE,WAAW,CAAC;AACxB,KAAA,CACJ,CACJ,CAAC;AACN,CAAC;;;;ACTD,MAAM,WAAW,GAAG,iBAAiB,CAAC;AACtC,MAAM,aAAa,GAAkB,EAAC,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAC,CAAC;AAUzF,MAAO,uBAAwB,SAAQ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