@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/components/widgets/prefab/src/prefab.props.ts","../../../../projects/components/widgets/prefab/src/prefab.directive.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.props.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.directive.ts","../../../../projects/components/widgets/prefab/src/prefab.module.ts","../../../../projects/components/widgets/prefab/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING } from '@wm/components/base'; \n\nexport const prefabProps = new Map(\n [\n ['animation', PROP_STRING],\n ['class', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n);\n","import {Attribute, ChangeDetectorRef, Directive, ElementRef, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport {setCSS, noop, UserDefinedExecutionContext} from '@wm/core';\n\nimport { PROP_TYPE, register, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { prefabProps } from './prefab.props';\n\nconst DEFAULT_CLS = 'app-prefab';\n\nconst registeredPropsSet = new Set<string>();\n\ndeclare const _;\n\n@Directive({\n selector: 'section[wmPrefab]',\n providers: [\n provideAsWidgetRef(PrefabDirective)\n ]\n})\nexport class PrefabDirective extends StylableComponent implements OnDestroy {\n\n widgetType: string;\n prefabName: string;\n name: string;\n propsReady: Function;\n\n constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Attribute('prefabname') prefabName, @Optional() public _viewParent: UserDefinedExecutionContext) {\n const widgetType = `wm-prefab-${prefabName}`;\n const WIDGET_CONFIG = {widgetType, hostClass: DEFAULT_CLS};\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, _viewParent, new Promise(res => resolveFn = res));\n this.propsReady = resolveFn;\n this.prefabName = prefabName;\n this.widgetType = widgetType;\n this.name = elRef.nativeElement.getAttribute('name');\n\n styler(this.nativeElement, this);\n\n // Call on property change on name to set name attribute on element.\n this.registerReadyStateListener(() => {\n super.onPropertyChange('name', this.name);\n });\n }\n\n onStyleChange(key: string, nv: any, ov: any) {\n if (key === 'height') {\n setCSS(this.nativeElement, 'overflow', 'auto');\n }\n }\n\n public setProps(config) {\n if (!config || !config.properties) {\n return;\n }\n\n if (!registeredPropsSet.has(this.widgetType)) {\n register(this.widgetType, this.prepareProps(config.properties));\n }\n\n this.propsReady();\n }\n\n protected handleEvent() {\n // do not call the super;\n // prevent events from getting registered\n }\n\n private prepareProps(props = {}) {\n const propsMap = new Map(prefabProps);\n Object.entries(props).forEach(([k, v]: [string, any]) => {\n let type = PROP_TYPE.STRING;\n\n if (v.type === 'boolean') {\n type = PROP_TYPE.BOOLEAN;\n } else if (v.type === 'number') {\n type = PROP_TYPE.NUMBER;\n } else if (v.type !== 'string') {\n type = v.type;\n }\n\n // Do not set the 'bind:*' values\n propsMap.set(k, {type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value});\n });\n\n registeredPropsSet.add(this.widgetType);\n\n return propsMap;\n }\n\n ngOnDestroy() {\n this.invokeEventCallback('destroy', { widget: this });\n }\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-prefab-container',\n new Map(\n [\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ]\n )\n );\n};\n","import {Directive, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {UserDefinedExecutionContext, Viewport, ViewportEvent} from '@wm/core';\nimport { registerProps } from './prefab-container.props';\n\nconst DEFAULT_CLS = 'app-prefab-container full-height';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-prefab-container',\n hostClass: DEFAULT_CLS\n};\ndeclare const _;\n\n@Directive({\n selector: '[wmPrefabContainer]',\n providers: [\n provideAsWidgetRef(PrefabContainerDirective)\n ]\n})\nexport class PrefabContainerDirective extends StylableComponent implements OnDestroy {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, private viewport: Viewport, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this);\n\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.RESIZE, data => this.callback('resize', data)));\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.ORIENTATION_CHANGE, data => this.callback('orientationchange', data)));\n }\n\n private callback(eventName, locals?: object) {\n locals = _.assign({ widget: this }, locals);\n this.invokeEventCallback(eventName, locals);\n }\n\n public ngOnAttach() {\n this.callback('attach');\n }\n\n public ngOnDetach() {\n this.callback('detach');\n }\n\n public ngOnDestroy() {\n this.callback('destroy');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { PrefabDirective } from './prefab.directive';\nimport { PrefabContainerDirective } from './prefab-container/prefab-container.directive';\n\nconst components = [\n PrefabDirective,\n PrefabContainerDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PrefabModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["DEFAULT_CLS"],"mappings":";;;;;;;AAEO,MAAM,WAAW,GAAG,IAAI,GAAG,CAC9B;IACI,CAAC,WAAW,EAAE,WAAW,CAAC;AAC1B,IAAA,CAAC,OAAO,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,EAAE,EAAA,EAAK,WAAW,CAAE,CAAA;IACtC,CAAC,MAAM,EAAE,WAAW,CAAC;AACrB,IAAA,CAAC,MAAM,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAAY,CAAE,CAAA;AAC3C,CAAA,CACJ;;ACFD,MAAMA,aAAW,GAAG,YAAY,CAAC;AAEjC,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;AAUvC,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;IAOlD,WAAY,CAAA,GAAa,EAAE,KAAiB,EAAE,GAAsB,EAA2B,UAAU,EAAqB,WAAwC,EAAA;AAClK,QAAA,MAAM,UAAU,GAAG,CAAa,UAA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A,wBAAwB,aAKpB,YAAY;AACZ,YAAA,kBAAkB,aAPtB,eAAe;YACf,wBAAwB,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACV5B;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../projects/components/widgets/prefab/src/prefab.props.ts","../../../../projects/components/widgets/prefab/src/prefab.directive.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.props.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.directive.ts","../../../../projects/components/widgets/prefab/src/prefab.module.ts","../../../../projects/components/widgets/prefab/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING } from '@wm/components/base'; \n\nexport const prefabProps = new Map(\n [\n ['animation', PROP_STRING],\n ['class', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n);\n","import {Attribute, ChangeDetectorRef, Directive, ElementRef, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport {setCSS, noop, UserDefinedExecutionContext} from '@wm/core';\n\nimport { PROP_TYPE, register, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { prefabProps } from './prefab.props';\n\nconst DEFAULT_CLS = 'app-prefab';\n\nconst registeredPropsSet = new Set<string>();\n\ndeclare const _;\n\n@Directive({\n selector: 'section[wmPrefab]',\n providers: [\n provideAsWidgetRef(PrefabDirective)\n ]\n})\nexport class PrefabDirective extends StylableComponent implements OnDestroy {\n\n widgetType: string;\n prefabName: string;\n name: string;\n propsReady: Function;\n\n constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Attribute('prefabname') prefabName) {\n const widgetType = `wm-prefab-${prefabName}`;\n const WIDGET_CONFIG = {widgetType, hostClass: DEFAULT_CLS};\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, new Promise(res => resolveFn = res));\n this.propsReady = resolveFn;\n this.prefabName = prefabName;\n this.widgetType = widgetType;\n this.name = elRef.nativeElement.getAttribute('name');\n\n styler(this.nativeElement, this);\n\n // Call on property change on name to set name attribute on element.\n this.registerReadyStateListener(() => {\n super.onPropertyChange('name', this.name);\n });\n }\n\n onStyleChange(key: string, nv: any, ov: any) {\n if (key === 'height') {\n setCSS(this.nativeElement, 'overflow', 'auto');\n }\n }\n\n public setProps(config) {\n if (!config || !config.properties) {\n return;\n }\n\n if (!registeredPropsSet.has(this.widgetType)) {\n register(this.widgetType, this.prepareProps(config.properties));\n }\n\n this.propsReady();\n }\n\n protected handleEvent() {\n // do not call the super;\n // prevent events from getting registered\n }\n\n private prepareProps(props = {}) {\n const propsMap = new Map(prefabProps);\n Object.entries(props).forEach(([k, v]: [string, any]) => {\n let type = PROP_TYPE.STRING;\n\n if (v.type === 'boolean') {\n type = PROP_TYPE.BOOLEAN;\n } else if (v.type === 'number') {\n type = PROP_TYPE.NUMBER;\n } else if (v.type !== 'string') {\n type = v.type;\n }\n\n // Do not set the 'bind:*' values\n propsMap.set(k, {type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value});\n });\n\n registeredPropsSet.add(this.widgetType);\n\n return propsMap;\n }\n\n ngOnDestroy() {\n this.invokeEventCallback('destroy', { widget: this });\n }\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-prefab-container',\n new Map(\n [\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ]\n )\n );\n};\n","import {Directive, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {UserDefinedExecutionContext, Viewport, ViewportEvent} from '@wm/core';\nimport { registerProps } from './prefab-container.props';\n\nconst DEFAULT_CLS = 'app-prefab-container full-height';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-prefab-container',\n hostClass: DEFAULT_CLS\n};\ndeclare const _;\n\n@Directive({\n selector: '[wmPrefabContainer]',\n providers: [\n provideAsWidgetRef(PrefabContainerDirective)\n ]\n})\nexport class PrefabContainerDirective extends StylableComponent implements OnDestroy {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, private viewport: Viewport) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this);\n\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.RESIZE, data => this.callback('resize', data)));\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.ORIENTATION_CHANGE, data => this.callback('orientationchange', data)));\n }\n\n private callback(eventName, locals?: object) {\n locals = _.assign({ widget: this }, locals);\n this.invokeEventCallback(eventName, locals);\n }\n\n public ngOnAttach() {\n this.callback('attach');\n }\n\n public ngOnDetach() {\n this.callback('detach');\n }\n\n public ngOnDestroy() {\n this.callback('destroy');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { PrefabDirective } from './prefab.directive';\nimport { PrefabContainerDirective } from './prefab-container/prefab-container.directive';\n\nconst components = [\n PrefabDirective,\n PrefabContainerDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PrefabModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["DEFAULT_CLS"],"mappings":";;;;;;;AAEO,MAAM,WAAW,GAAG,IAAI,GAAG,CAC9B;IACI,CAAC,WAAW,EAAE,WAAW,CAAC;AAC1B,IAAA,CAAC,OAAO,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,EAAE,EAAA,EAAK,WAAW,CAAE,CAAA;IACtC,CAAC,MAAM,EAAE,WAAW,CAAC;AACrB,IAAA,CAAC,MAAM,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAAY,CAAE,CAAA;AAC3C,CAAA,CACJ;;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AA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACV5B;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Attribute,
|
|
2
|
+
import { Directive, Attribute, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { PROP_STRING, PROP_BOOLEAN, StylableComponent, styler, register, PROP_TYPE, provideAsWidgetRef, WmComponentsModule } from '@wm/components/base';
|
|
5
5
|
import * as i1 from '@wm/core';
|
|
@@ -15,12 +15,11 @@ const prefabProps = new Map([
|
|
|
15
15
|
const DEFAULT_CLS$1 = 'app-prefab';
|
|
16
16
|
const registeredPropsSet = new Set();
|
|
17
17
|
class PrefabDirective extends StylableComponent {
|
|
18
|
-
constructor(inj, elRef, cdr, prefabName
|
|
18
|
+
constructor(inj, elRef, cdr, prefabName) {
|
|
19
19
|
const widgetType = `wm-prefab-${prefabName}`;
|
|
20
20
|
const WIDGET_CONFIG = { widgetType, hostClass: DEFAULT_CLS$1 };
|
|
21
21
|
let resolveFn = noop;
|
|
22
|
-
super(inj, WIDGET_CONFIG,
|
|
23
|
-
this._viewParent = _viewParent;
|
|
22
|
+
super(inj, WIDGET_CONFIG, new Promise(res => resolveFn = res));
|
|
24
23
|
this.propsReady = resolveFn;
|
|
25
24
|
this.prefabName = prefabName;
|
|
26
25
|
this.widgetType = widgetType;
|
|
@@ -72,7 +71,7 @@ class PrefabDirective extends StylableComponent {
|
|
|
72
71
|
this.invokeEventCallback('destroy', { widget: this });
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
|
-
PrefabDirective.ɵfac = function PrefabDirective_Factory(t) { return new (t || PrefabDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵinjectAttribute('prefabname')
|
|
74
|
+
PrefabDirective.ɵfac = function PrefabDirective_Factory(t) { return new (t || PrefabDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵinjectAttribute('prefabname')); };
|
|
76
75
|
PrefabDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PrefabDirective, selectors: [["section", "wmPrefab", ""]], features: [i0.ɵɵProvidersFeature([
|
|
77
76
|
provideAsWidgetRef(PrefabDirective)
|
|
78
77
|
]), i0.ɵɵInheritDefinitionFeature] });
|
|
@@ -87,8 +86,6 @@ PrefabDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PrefabDirec
|
|
|
87
86
|
}], function () { return [{ type: i0.Injector }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
88
87
|
type: Attribute,
|
|
89
88
|
args: ['prefabname']
|
|
90
|
-
}] }, { type: i1.UserDefinedExecutionContext, decorators: [{
|
|
91
|
-
type: Optional
|
|
92
89
|
}] }]; }, null); })();
|
|
93
90
|
|
|
94
91
|
const registerProps = () => {
|
|
@@ -105,10 +102,9 @@ const WIDGET_CONFIG = {
|
|
|
105
102
|
hostClass: DEFAULT_CLS
|
|
106
103
|
};
|
|
107
104
|
class PrefabContainerDirective extends StylableComponent {
|
|
108
|
-
constructor(inj, viewport
|
|
109
|
-
super(inj, WIDGET_CONFIG
|
|
105
|
+
constructor(inj, viewport) {
|
|
106
|
+
super(inj, WIDGET_CONFIG);
|
|
110
107
|
this.viewport = viewport;
|
|
111
|
-
this._viewParent = _viewParent;
|
|
112
108
|
styler(this.nativeElement, this);
|
|
113
109
|
this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, data => this.callback('resize', data)));
|
|
114
110
|
this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, data => this.callback('orientationchange', data)));
|
|
@@ -128,7 +124,7 @@ class PrefabContainerDirective extends StylableComponent {
|
|
|
128
124
|
}
|
|
129
125
|
}
|
|
130
126
|
PrefabContainerDirective.initializeProps = registerProps();
|
|
131
|
-
PrefabContainerDirective.ɵfac = function PrefabContainerDirective_Factory(t) { return new (t || PrefabContainerDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.Viewport)
|
|
127
|
+
PrefabContainerDirective.ɵfac = function PrefabContainerDirective_Factory(t) { return new (t || PrefabContainerDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.Viewport)); };
|
|
132
128
|
PrefabContainerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PrefabContainerDirective, selectors: [["", "wmPrefabContainer", ""]], features: [i0.ɵɵProvidersFeature([
|
|
133
129
|
provideAsWidgetRef(PrefabContainerDirective)
|
|
134
130
|
]), i0.ɵɵInheritDefinitionFeature] });
|
|
@@ -140,9 +136,7 @@ PrefabContainerDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Pr
|
|
|
140
136
|
provideAsWidgetRef(PrefabContainerDirective)
|
|
141
137
|
]
|
|
142
138
|
}]
|
|
143
|
-
}], function () { return [{ type: i0.Injector }, { type: i1.Viewport }
|
|
144
|
-
type: Optional
|
|
145
|
-
}] }]; }, null); })();
|
|
139
|
+
}], function () { return [{ type: i0.Injector }, { type: i1.Viewport }]; }, null); })();
|
|
146
140
|
|
|
147
141
|
const components = [
|
|
148
142
|
PrefabDirective,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../projects/components/widgets/prefab/src/prefab.props.ts","../../../../projects/components/widgets/prefab/src/prefab.directive.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.props.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.directive.ts","../../../../projects/components/widgets/prefab/src/prefab.module.ts","../../../../projects/components/widgets/prefab/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING } from '@wm/components/base'; \n\nexport const prefabProps = new Map(\n [\n ['animation', PROP_STRING],\n ['class', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n);\n","import {Attribute, ChangeDetectorRef, Directive, ElementRef, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport {setCSS, noop, UserDefinedExecutionContext} from '@wm/core';\n\nimport { PROP_TYPE, register, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { prefabProps } from './prefab.props';\n\nconst DEFAULT_CLS = 'app-prefab';\n\nconst registeredPropsSet = new Set<string>();\n\ndeclare const _;\n\n@Directive({\n selector: 'section[wmPrefab]',\n providers: [\n provideAsWidgetRef(PrefabDirective)\n ]\n})\nexport class PrefabDirective extends StylableComponent implements OnDestroy {\n\n widgetType: string;\n prefabName: string;\n name: string;\n propsReady: Function;\n\n constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Attribute('prefabname') prefabName, @Optional() public _viewParent: UserDefinedExecutionContext) {\n const widgetType = `wm-prefab-${prefabName}`;\n const WIDGET_CONFIG = {widgetType, hostClass: DEFAULT_CLS};\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, _viewParent, new Promise(res => resolveFn = res));\n this.propsReady = resolveFn;\n this.prefabName = prefabName;\n this.widgetType = widgetType;\n this.name = elRef.nativeElement.getAttribute('name');\n\n styler(this.nativeElement, this);\n\n // Call on property change on name to set name attribute on element.\n this.registerReadyStateListener(() => {\n super.onPropertyChange('name', this.name);\n });\n }\n\n onStyleChange(key: string, nv: any, ov: any) {\n if (key === 'height') {\n setCSS(this.nativeElement, 'overflow', 'auto');\n }\n }\n\n public setProps(config) {\n if (!config || !config.properties) {\n return;\n }\n\n if (!registeredPropsSet.has(this.widgetType)) {\n register(this.widgetType, this.prepareProps(config.properties));\n }\n\n this.propsReady();\n }\n\n protected handleEvent() {\n // do not call the super;\n // prevent events from getting registered\n }\n\n private prepareProps(props = {}) {\n const propsMap = new Map(prefabProps);\n Object.entries(props).forEach(([k, v]: [string, any]) => {\n let type = PROP_TYPE.STRING;\n\n if (v.type === 'boolean') {\n type = PROP_TYPE.BOOLEAN;\n } else if (v.type === 'number') {\n type = PROP_TYPE.NUMBER;\n } else if (v.type !== 'string') {\n type = v.type;\n }\n\n // Do not set the 'bind:*' values\n propsMap.set(k, {type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value});\n });\n\n registeredPropsSet.add(this.widgetType);\n\n return propsMap;\n }\n\n ngOnDestroy() {\n this.invokeEventCallback('destroy', { widget: this });\n }\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-prefab-container',\n new Map(\n [\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ]\n )\n );\n};\n","import {Directive, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {UserDefinedExecutionContext, Viewport, ViewportEvent} from '@wm/core';\nimport { registerProps } from './prefab-container.props';\n\nconst DEFAULT_CLS = 'app-prefab-container full-height';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-prefab-container',\n hostClass: DEFAULT_CLS\n};\ndeclare const _;\n\n@Directive({\n selector: '[wmPrefabContainer]',\n providers: [\n provideAsWidgetRef(PrefabContainerDirective)\n ]\n})\nexport class PrefabContainerDirective extends StylableComponent implements OnDestroy {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, private viewport: Viewport, @Optional() public _viewParent: UserDefinedExecutionContext) {\n super(inj, WIDGET_CONFIG, _viewParent);\n styler(this.nativeElement, this);\n\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.RESIZE, data => this.callback('resize', data)));\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.ORIENTATION_CHANGE, data => this.callback('orientationchange', data)));\n }\n\n private callback(eventName, locals?: object) {\n locals = _.assign({ widget: this }, locals);\n this.invokeEventCallback(eventName, locals);\n }\n\n public ngOnAttach() {\n this.callback('attach');\n }\n\n public ngOnDetach() {\n this.callback('detach');\n }\n\n public ngOnDestroy() {\n this.callback('destroy');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { PrefabDirective } from './prefab.directive';\nimport { PrefabContainerDirective } from './prefab-container/prefab-container.directive';\n\nconst components = [\n PrefabDirective,\n PrefabContainerDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PrefabModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["DEFAULT_CLS"],"mappings":";;;;;;;AAEO,MAAM,WAAW,GAAG,IAAI,GAAG,CAC9B;IACI,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;IACtC,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;AAC3C,CAAA,CACJ;;ACFD,MAAMA,aAAW,GAAG,YAAY,CAAC;AAEjC,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;AAUvC,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;IAOlD,WAAY,CAAA,GAAa,EAAE,KAAiB,EAAE,GAAsB,EAA2B,UAAU,EAAqB,WAAwC,EAAA;AAClK,QAAA,MAAM,UAAU,GAAG,CAAa,UAAA,EAAA,UAAU,EAAE,CAAC;QAC7C,MAAM,aAAa,GAAG,EAAC,UAAU,EAAE,SAAS,EAAEA,aAAW,EAAC,CAAC;QAC3D,IAAI,SAAS,GAAa,IAAI,CAAC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/prefab/src/prefab.props.ts","../../../../projects/components/widgets/prefab/src/prefab.directive.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.props.ts","../../../../projects/components/widgets/prefab/src/prefab-container/prefab-container.directive.ts","../../../../projects/components/widgets/prefab/src/prefab.module.ts","../../../../projects/components/widgets/prefab/src/index.ts"],"sourcesContent":["import { PROP_BOOLEAN, PROP_STRING } from '@wm/components/base'; \n\nexport const prefabProps = new Map(\n [\n ['animation', PROP_STRING],\n ['class', {value: '', ...PROP_STRING}],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}]\n ]\n);\n","import {Attribute, ChangeDetectorRef, Directive, ElementRef, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport {setCSS, noop, UserDefinedExecutionContext} from '@wm/core';\n\nimport { PROP_TYPE, register, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport { prefabProps } from './prefab.props';\n\nconst DEFAULT_CLS = 'app-prefab';\n\nconst registeredPropsSet = new Set<string>();\n\ndeclare const _;\n\n@Directive({\n selector: 'section[wmPrefab]',\n providers: [\n provideAsWidgetRef(PrefabDirective)\n ]\n})\nexport class PrefabDirective extends StylableComponent implements OnDestroy {\n\n widgetType: string;\n prefabName: string;\n name: string;\n propsReady: Function;\n\n constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, @Attribute('prefabname') prefabName) {\n const widgetType = `wm-prefab-${prefabName}`;\n const WIDGET_CONFIG = {widgetType, hostClass: DEFAULT_CLS};\n let resolveFn: Function = noop;\n\n super(inj, WIDGET_CONFIG, new Promise(res => resolveFn = res));\n this.propsReady = resolveFn;\n this.prefabName = prefabName;\n this.widgetType = widgetType;\n this.name = elRef.nativeElement.getAttribute('name');\n\n styler(this.nativeElement, this);\n\n // Call on property change on name to set name attribute on element.\n this.registerReadyStateListener(() => {\n super.onPropertyChange('name', this.name);\n });\n }\n\n onStyleChange(key: string, nv: any, ov: any) {\n if (key === 'height') {\n setCSS(this.nativeElement, 'overflow', 'auto');\n }\n }\n\n public setProps(config) {\n if (!config || !config.properties) {\n return;\n }\n\n if (!registeredPropsSet.has(this.widgetType)) {\n register(this.widgetType, this.prepareProps(config.properties));\n }\n\n this.propsReady();\n }\n\n protected handleEvent() {\n // do not call the super;\n // prevent events from getting registered\n }\n\n private prepareProps(props = {}) {\n const propsMap = new Map(prefabProps);\n Object.entries(props).forEach(([k, v]: [string, any]) => {\n let type = PROP_TYPE.STRING;\n\n if (v.type === 'boolean') {\n type = PROP_TYPE.BOOLEAN;\n } else if (v.type === 'number') {\n type = PROP_TYPE.NUMBER;\n } else if (v.type !== 'string') {\n type = v.type;\n }\n\n // Do not set the 'bind:*' values\n propsMap.set(k, {type, value: _.startsWith(v.value, 'bind:') ? undefined : v.value});\n });\n\n registeredPropsSet.add(this.widgetType);\n\n return propsMap;\n }\n\n ngOnDestroy() {\n this.invokeEventCallback('destroy', { widget: this });\n }\n}\n","import { PROP_BOOLEAN, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-prefab-container',\n new Map(\n [\n ['class', PROP_STRING],\n ['name', PROP_STRING],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ]\n )\n );\n};\n","import {Directive, Injector, OnDestroy, Optional} from '@angular/core';\n\nimport { IWidgetConfig, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';\nimport {UserDefinedExecutionContext, Viewport, ViewportEvent} from '@wm/core';\nimport { registerProps } from './prefab-container.props';\n\nconst DEFAULT_CLS = 'app-prefab-container full-height';\nconst WIDGET_CONFIG: IWidgetConfig = {\n widgetType: 'wm-prefab-container',\n hostClass: DEFAULT_CLS\n};\ndeclare const _;\n\n@Directive({\n selector: '[wmPrefabContainer]',\n providers: [\n provideAsWidgetRef(PrefabContainerDirective)\n ]\n})\nexport class PrefabContainerDirective extends StylableComponent implements OnDestroy {\n static initializeProps = registerProps();\n\n constructor(inj: Injector, private viewport: Viewport) {\n super(inj, WIDGET_CONFIG);\n styler(this.nativeElement, this);\n\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.RESIZE, data => this.callback('resize', data)));\n this.registerDestroyListener(this.viewport.subscribe(ViewportEvent.ORIENTATION_CHANGE, data => this.callback('orientationchange', data)));\n }\n\n private callback(eventName, locals?: object) {\n locals = _.assign({ widget: this }, locals);\n this.invokeEventCallback(eventName, locals);\n }\n\n public ngOnAttach() {\n this.callback('attach');\n }\n\n public ngOnDetach() {\n this.callback('detach');\n }\n\n public ngOnDestroy() {\n this.callback('destroy');\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { PrefabDirective } from './prefab.directive';\nimport { PrefabContainerDirective } from './prefab-container/prefab-container.directive';\n\nconst components = [\n PrefabDirective,\n PrefabContainerDirective\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class PrefabModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["DEFAULT_CLS"],"mappings":";;;;;;;AAEO,MAAM,WAAW,GAAG,IAAI,GAAG,CAC9B;IACI,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,EAAE,EAAE,GAAG,WAAW,EAAC,CAAC;IACtC,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;AAC3C,CAAA,CACJ;;ACFD,MAAMA,aAAW,GAAG,YAAY,CAAC;AAEjC,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAU,CAAC;AAUvC,MAAO,eAAgB,SAAQ,iBAAiB,CAAA;AAOlD,IAAA,WAAA,CAAY,GAAa,EAAE,KAAiB,EAAE,GAAsB,EAA2B,UAAU,EAAA;AACrG,QAAA,MAAM,UAAU,GAAG,CAAa,UAA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AAkB,CAAC,wBAAwB,CAAC;AAC/C,SAAA,CAAA,EAAA,EAAA,CAAA,0BAAA,CAAA,EAAA,CAAA,CAAA;uFAEQ,wBAAwB,EAAA,CAAA;cANpC,SAAS;AAAC,QAAA,IAAA,EAAA,CAAA;AACP,gBAAA,QAAQ,EAAE,qBAAqB;AAC/B,gBAAA,SAAS,EAAE;AACP,oBAAA,kBAAkB,CAA0B,wBAAA,CAAA;AAC/C,iBAAA;AACJ,aAAA,CAAA;;;ACVD,MAAM,UAAU,GAAG;IACf,eAAe;IACf,wBAAwB;CAC3B,CAAC;MAUW,YAAY,CAAA;;wEAAZ,YAAY,GAAA,CAAA,EAAA,CAAA;8DAAZ,YAAY,EAAA,CAAA,CAAA;kEANjB,YAAY;QACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;uFAKb,YAAY,EAAA,CAAA;cARxB,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;AACY,CAAA,YAAA,EAAA,CAAA,OAAA,SAAA,KAAA,WAAA,IAAA,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,YAAY,mBAZrB,eAAe;AACf,QAAA,wBAAwB,aAKpB,YAAY;AACZ,QAAA,kBAAkB,aAPtB,eAAe;QACf,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACV5B;;AAEG;;;;"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { StylableComponent } from '@wm/components/base';
|
|
3
|
-
import {
|
|
3
|
+
import { Viewport } from '@wm/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PrefabContainerDirective extends StylableComponent implements OnDestroy {
|
|
6
6
|
private viewport;
|
|
7
|
-
_viewParent: UserDefinedExecutionContext;
|
|
8
7
|
static initializeProps: void;
|
|
9
|
-
constructor(inj: Injector, viewport: Viewport
|
|
8
|
+
constructor(inj: Injector, viewport: Viewport);
|
|
10
9
|
private callback;
|
|
11
10
|
ngOnAttach(): void;
|
|
12
11
|
ngOnDetach(): void;
|
|
13
12
|
ngOnDestroy(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrefabContainerDirective,
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrefabContainerDirective, never>;
|
|
15
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PrefabContainerDirective, "[wmPrefabContainer]", never, {}, {}, never, never, false, never>;
|
|
16
15
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy } 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 PrefabDirective extends StylableComponent implements OnDestroy {
|
|
6
|
-
_viewParent: UserDefinedExecutionContext;
|
|
7
5
|
widgetType: string;
|
|
8
6
|
prefabName: string;
|
|
9
7
|
name: string;
|
|
10
8
|
propsReady: Function;
|
|
11
|
-
constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, prefabName: any
|
|
9
|
+
constructor(inj: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, prefabName: any);
|
|
12
10
|
onStyleChange(key: string, nv: any, ov: any): void;
|
|
13
11
|
setProps(config: any): void;
|
|
14
12
|
protected handleEvent(): void;
|
|
15
13
|
private prepareProps;
|
|
16
14
|
ngOnDestroy(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PrefabDirective, [null, null, null, { attribute: "prefabname"; }
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PrefabDirective, [null, null, null, { attribute: "prefabname"; }]>;
|
|
18
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PrefabDirective, "section[wmPrefab]", never, {}, {}, never, never, false, never>;
|
|
19
17
|
}
|
|
@@ -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('@wm/mobile/core'), require('@awesome-cordova-plugins/file/ngx'), require('@awesome-cordova-plugins/file-opener/ngx'), require('@angular/common/http'), require('@angular/common'), require('@wm/components/basic/progress')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@wm/components/base', '@wm/core', '@wm/mobile/core', '@awesome-cordova-plugins/file/ngx', '@awesome-cordova-plugins/file-opener/ngx', '@angular/common/http', '@angular/common', '@wm/components/basic/progress'], 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.basic = {}), global.ng.core, global.wm.components.base, global.wm.core, global.wm.mobile.core, global.awesomeCordova.plugins, global.awesomeCordova.plugins, global.ng.common.http, global.ng.common, global.wm.components.basic.progress));
|
|
5
|
-
})(this, (function (exports, i0, i5,
|
|
5
|
+
})(this, (function (exports, i0, i5, i1$1, i1, i2, i3, i4, i3$1, i2$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
25
|
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
26
|
-
var
|
|
26
|
+
var i1$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1$1);
|
|
27
27
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
28
28
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
29
29
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
30
30
|
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
31
31
|
var i3$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i3$1);
|
|
32
|
-
var i2$
|
|
32
|
+
var i2$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i2$1);
|
|
33
33
|
|
|
34
34
|
class AnchorDirective {
|
|
35
35
|
constructor(widget) {
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
this.downloadProgress = 0;
|
|
92
92
|
this.downloading = false;
|
|
93
93
|
this.message = 'There is an update available. Would you like to update the app?';
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if (
|
|
94
|
+
i1$1.addClass(this.elRef.nativeElement, DEFAULT_CLS$1);
|
|
95
|
+
i1$1.setCSS(this.elRef.nativeElement, 'display', 'block');
|
|
96
|
+
if (i1$1.hasCordova()) {
|
|
97
97
|
this.getBuildMeta().then(buildMeta => {
|
|
98
98
|
if (buildMeta && buildMeta.buildMode === 'DEVELOPMENT_MODE') {
|
|
99
|
-
this.file.removeFile(cordova.file.externalApplicationStorageDirectory, AUTO_UPDATE_FILENAME).catch(
|
|
99
|
+
this.file.removeFile(cordova.file.externalApplicationStorageDirectory, AUTO_UPDATE_FILENAME).catch(i1$1.noop);
|
|
100
100
|
this.checkForUpdate()
|
|
101
|
-
.then(this.getUserConfirmation.bind(this),
|
|
101
|
+
.then(this.getUserConfirmation.bind(this), i1$1.noop);
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
cancel() {
|
|
107
|
-
|
|
107
|
+
i1$1.addClass(this.elRef.nativeElement, 'hidden');
|
|
108
108
|
}
|
|
109
109
|
installLatestVersion() {
|
|
110
110
|
const apkFile = cordova.file.externalApplicationStorageDirectory + AUTO_UPDATE_FILENAME, downloadLink = `${this._buildMeta.host}/appBuild/rest/mobileBuilds/android/download?token=${this._buildMeta.token}&buildNumber=${this._buildMeta.latestBuildNumber}&fileName=${AUTO_UPDATE_FILENAME}&releaseVersion=${this._buildMeta.platformVersion}`, progressObserver = { next: e => { this.downloadProgress = (e.loaded / e.total) * 100; }, error: null, complete: null };
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
.then(data => {
|
|
140
140
|
this._buildMeta = JSON.parse(data);
|
|
141
141
|
return this._buildMeta;
|
|
142
|
-
},
|
|
142
|
+
}, i1$1.noop);
|
|
143
143
|
}
|
|
144
144
|
return Promise.resolve(this._buildMeta);
|
|
145
145
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
this.downloadProgress = 0;
|
|
148
148
|
this.downloading = false;
|
|
149
149
|
this.message = 'There is an update available. Would you like to update the app?';
|
|
150
|
-
|
|
150
|
+
i1$1.removeClass(this.elRef.nativeElement, 'hidden');
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
AppUpdateComponent.ɵfac = function AppUpdateComponent_Factory(t) { return new (t || AppUpdateComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.DeviceService), i0__namespace.ɵɵdirectiveInject(i1__namespace.DeviceFileDownloadService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(i2__namespace.File), i0__namespace.ɵɵdirectiveInject(i3__namespace.FileOpener), i0__namespace.ɵɵdirectiveInject(i4__namespace.HttpClient)); };
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
this.isVisible = flag;
|
|
318
318
|
if (flag) {
|
|
319
319
|
if (!this.currentFolder) {
|
|
320
|
-
if (
|
|
320
|
+
if (i1$1.isIos()) {
|
|
321
321
|
rootDir = cordova.file.documentsDirectory;
|
|
322
322
|
}
|
|
323
323
|
resolveLocalFileSystemURL(rootDir, root => this.goToFolder(root));
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
else {
|
|
331
331
|
this.isVisible = false;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
i1$1.$appDigest();
|
|
334
334
|
return false;
|
|
335
335
|
}
|
|
336
336
|
});
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
if (filePath.indexOf('://') < 0) {
|
|
488
488
|
filePath = 'file://' + filePath;
|
|
489
489
|
}
|
|
490
|
-
return
|
|
490
|
+
return i1$1.convertToBlob(filePath);
|
|
491
491
|
})).then(filesList => {
|
|
492
492
|
return _.map(filesList, fileObj => {
|
|
493
493
|
const path = fileObj.filepath;
|
|
@@ -502,13 +502,13 @@
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
FileSelectorService.SERVICE_NAME = 'FileSelectorService';
|
|
505
|
-
FileSelectorService.ɵfac = function FileSelectorService_Factory(t) { return new (t || FileSelectorService)(i0__namespace.ɵɵinject(
|
|
505
|
+
FileSelectorService.ɵfac = function FileSelectorService_Factory(t) { return new (t || FileSelectorService)(i0__namespace.ɵɵinject(i1$1__namespace.AbstractSpinnerService)); };
|
|
506
506
|
FileSelectorService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: FileSelectorService, factory: FileSelectorService.ɵfac, providedIn: 'root' });
|
|
507
507
|
(function () {
|
|
508
508
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FileSelectorService, [{
|
|
509
509
|
type: i0.Injectable,
|
|
510
510
|
args: [{ providedIn: 'root' }]
|
|
511
|
-
}], function () { return [{ type:
|
|
511
|
+
}], function () { return [{ type: i1$1__namespace.AbstractSpinnerService }]; }, null);
|
|
512
512
|
})();
|
|
513
513
|
|
|
514
514
|
const DEFAULT_IMAGE = 'resources/images/imagelists/default-image.png';
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
this._lastUrl = this.componentInstance.imgSource;
|
|
528
528
|
this.componentInstance.imgSource = DEFAULT_IMAGE;
|
|
529
529
|
this.getLocalPath(this._lastUrl).then((localPath) => {
|
|
530
|
-
this._cacheUrl =
|
|
530
|
+
this._cacheUrl = i1$1.transformFileURI(localPath);
|
|
531
531
|
this.componentInstance.imgSource = this._cacheUrl;
|
|
532
532
|
});
|
|
533
533
|
}
|
|
@@ -537,12 +537,12 @@
|
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
539
|
set wmImageCache(val) {
|
|
540
|
-
this._isEnabled = (
|
|
540
|
+
this._isEnabled = (i1$1.hasCordova() && val === 'true');
|
|
541
541
|
}
|
|
542
542
|
getLocalPath(val) {
|
|
543
|
-
if (
|
|
543
|
+
if (i1$1.hasCordova() && val && val.indexOf('{{') < 0 && val.startsWith('http')) {
|
|
544
544
|
return this.deviceFileCacheService.getLocalPath(val, true, true, !this._isEnabled)
|
|
545
|
-
.catch(
|
|
545
|
+
.catch(i1$1.noop);
|
|
546
546
|
}
|
|
547
547
|
return Promise.resolve(val);
|
|
548
548
|
}
|
|
@@ -688,10 +688,9 @@
|
|
|
688
688
|
NetworkState[NetworkState["NETWORK_NOT_AVAIABLE"] = -3] = "NETWORK_NOT_AVAIABLE";
|
|
689
689
|
})(exports.NetworkState || (exports.NetworkState = {}));
|
|
690
690
|
class NetworkInfoToasterComponent extends i5.StylableComponent {
|
|
691
|
-
constructor(networkService, app, inj
|
|
692
|
-
super(inj, WIDGET_CONFIG
|
|
691
|
+
constructor(networkService, app, inj) {
|
|
692
|
+
super(inj, WIDGET_CONFIG);
|
|
693
693
|
this.networkService = networkService;
|
|
694
|
-
this._viewParent = _viewParent;
|
|
695
694
|
this.showMessage = false;
|
|
696
695
|
this.isServiceConnected = false;
|
|
697
696
|
this.isServiceAvailable = false;
|
|
@@ -730,7 +729,7 @@
|
|
|
730
729
|
if (autoHide && this.showMessage) {
|
|
731
730
|
setTimeout(() => {
|
|
732
731
|
this.showMessage = false;
|
|
733
|
-
|
|
732
|
+
i1$1.$appDigest();
|
|
734
733
|
}, 5000);
|
|
735
734
|
}
|
|
736
735
|
}
|
|
@@ -746,7 +745,7 @@
|
|
|
746
745
|
}
|
|
747
746
|
}
|
|
748
747
|
NetworkInfoToasterComponent.initializeProps = registerProps();
|
|
749
|
-
NetworkInfoToasterComponent.ɵfac = function NetworkInfoToasterComponent_Factory(t) { return new (t || NetworkInfoToasterComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.NetworkService), i0__namespace.ɵɵdirectiveInject(
|
|
748
|
+
NetworkInfoToasterComponent.ɵfac = function NetworkInfoToasterComponent_Factory(t) { return new (t || NetworkInfoToasterComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace.NetworkService), i0__namespace.ɵɵdirectiveInject(i1$1__namespace.App), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
|
|
750
749
|
NetworkInfoToasterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NetworkInfoToasterComponent, selectors: [["", "wmNetworkInfoToaster", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
751
750
|
i5.provideAsWidgetRef(NetworkInfoToasterComponent)
|
|
752
751
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$1, decls: 1, vars: 1, consts: [["class", "network-info-toaster-content", 3, "ngSwitch", 4, "ngIf"], [1, "network-info-toaster-content", 3, "ngSwitch"], ["class", "info", 4, "ngSwitchCase"], [1, "info"], [1, "message", 3, "textContent"], [1, "btn", "btn-default", "hide-btn", 3, "textContent", "click"], [1, "btn", "btn-primary", "connect-btn", 3, "textContent", "click"]], template: function NetworkInfoToasterComponent_Template(rf, ctx) {
|
|
@@ -763,11 +762,7 @@
|
|
|
763
762
|
args: [{ selector: '[wmNetworkInfoToaster]', providers: [
|
|
764
763
|
i5.provideAsWidgetRef(NetworkInfoToasterComponent)
|
|
765
764
|
], template: "<div class=\"network-info-toaster-content\" [ngSwitch]=\"networkState\" *ngIf=\"showMessage\">\n <div class=\"info\" *ngSwitchCase=\"-3\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_NETWORK_NOT_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"-2\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_NOT_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"-1\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n <button class=\"btn btn-primary connect-btn\" (click)=\"connect()\" [textContent]=\"appLocale.LABEL_CONNECT_TO_SERVICE\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"0\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_CONNECTING\"></label>\n </div>\n <div class=\"info\" *ngSwitchCase=\"1\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_CONNECTED\"></label>\n </div>\n</div>" }]
|
|
766
|
-
}], function () {
|
|
767
|
-
return [{ type: i1__namespace.NetworkService }, { type: i2$1__namespace.App }, { type: i0__namespace.Injector }, { type: i2$1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
768
|
-
type: i0.Optional
|
|
769
|
-
}] }];
|
|
770
|
-
}, null);
|
|
765
|
+
}], function () { return [{ type: i1__namespace.NetworkService }, { type: i1$1__namespace.App }, { type: i0__namespace.Injector }]; }, null);
|
|
771
766
|
})();
|
|
772
767
|
|
|
773
768
|
const _c0 = ["wmProcessManager", ""];
|
|
@@ -855,7 +850,7 @@
|
|
|
855
850
|
this.isVisible = true;
|
|
856
851
|
this.instances = [];
|
|
857
852
|
this.queue = [];
|
|
858
|
-
|
|
853
|
+
i1$1.addClass(this.el.nativeElement, 'app-global-progress-bar modal default');
|
|
859
854
|
}
|
|
860
855
|
createInstance(name, min = 0, max = 100) {
|
|
861
856
|
const instance = {
|
|
@@ -881,11 +876,11 @@
|
|
|
881
876
|
ngDoCheck() {
|
|
882
877
|
const hasInstancesToShow = !!this.instances.find(i => i.show);
|
|
883
878
|
if (this.isVisible && !hasInstancesToShow) {
|
|
884
|
-
|
|
879
|
+
i1$1.setAttr(this.el.nativeElement, 'hidden', 'true');
|
|
885
880
|
this.isVisible = false;
|
|
886
881
|
}
|
|
887
882
|
else if (!this.isVisible && hasInstancesToShow) {
|
|
888
|
-
|
|
883
|
+
i1$1.removeAttr(this.el.nativeElement, 'hidden');
|
|
889
884
|
this.isVisible = true;
|
|
890
885
|
}
|
|
891
886
|
}
|
|
@@ -949,7 +944,7 @@
|
|
|
949
944
|
if (rf & 2) {
|
|
950
945
|
i0__namespace.ɵɵproperty("ngIf", ctx.instances.length > 0);
|
|
951
946
|
}
|
|
952
|
-
}, dependencies: [i3$1__namespace.NgForOf, i3$1__namespace.NgIf, i3$1__namespace.NgTemplateOutlet, i2$
|
|
947
|
+
}, dependencies: [i3$1__namespace.NgForOf, i3$1__namespace.NgIf, i3$1__namespace.NgTemplateOutlet, i2$1__namespace.ProgressBarComponent], encapsulation: 2 });
|
|
953
948
|
(function () {
|
|
954
949
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ProcessManagerComponent, [{
|
|
955
950
|
type: i0.Component,
|
|
@@ -1019,7 +1014,7 @@
|
|
|
1019
1014
|
BasicModule.ɵfac = function BasicModule_Factory(t) { return new (t || BasicModule)(); };
|
|
1020
1015
|
BasicModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: BasicModule });
|
|
1021
1016
|
BasicModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i3$1.CommonModule,
|
|
1022
|
-
i2$
|
|
1017
|
+
i2$1.ProgressModule,
|
|
1023
1018
|
i5.WmComponentsModule] });
|
|
1024
1019
|
(function () {
|
|
1025
1020
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasicModule, [{
|
|
@@ -1027,7 +1022,7 @@
|
|
|
1027
1022
|
args: [{
|
|
1028
1023
|
imports: [
|
|
1029
1024
|
i3$1.CommonModule,
|
|
1030
|
-
i2$
|
|
1025
|
+
i2$1.ProgressModule,
|
|
1031
1026
|
i5.WmComponentsModule
|
|
1032
1027
|
],
|
|
1033
1028
|
declarations: [...components],
|
|
@@ -1042,7 +1037,7 @@
|
|
|
1042
1037
|
ImageCacheDirective,
|
|
1043
1038
|
NetworkInfoToasterComponent,
|
|
1044
1039
|
ProcessManagerComponent], imports: [i3$1.CommonModule,
|
|
1045
|
-
i2$
|
|
1040
|
+
i2$1.ProgressModule,
|
|
1046
1041
|
i5.WmComponentsModule], exports: [AnchorDirective,
|
|
1047
1042
|
AppUpdateComponent,
|
|
1048
1043
|
FileBrowserComponent,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, Injector
|
|
1
|
+
import { Component, Injector } from '@angular/core';
|
|
2
2
|
import { provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
|
|
3
3
|
import { registerProps } from './network-info-toaster.props';
|
|
4
|
-
import { $appDigest, App
|
|
4
|
+
import { $appDigest, App } from '@wm/core';
|
|
5
5
|
import { NetworkService } from '@wm/mobile/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@wm/mobile/core";
|
|
@@ -107,10 +107,9 @@ export var NetworkState;
|
|
|
107
107
|
NetworkState[NetworkState["NETWORK_NOT_AVAIABLE"] = -3] = "NETWORK_NOT_AVAIABLE";
|
|
108
108
|
})(NetworkState || (NetworkState = {}));
|
|
109
109
|
export class NetworkInfoToasterComponent extends StylableComponent {
|
|
110
|
-
constructor(networkService, app, inj
|
|
111
|
-
super(inj, WIDGET_CONFIG
|
|
110
|
+
constructor(networkService, app, inj) {
|
|
111
|
+
super(inj, WIDGET_CONFIG);
|
|
112
112
|
this.networkService = networkService;
|
|
113
|
-
this._viewParent = _viewParent;
|
|
114
113
|
this.showMessage = false;
|
|
115
114
|
this.isServiceConnected = false;
|
|
116
115
|
this.isServiceAvailable = false;
|
|
@@ -165,7 +164,7 @@ export class NetworkInfoToasterComponent extends StylableComponent {
|
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
NetworkInfoToasterComponent.initializeProps = registerProps();
|
|
168
|
-
NetworkInfoToasterComponent.ɵfac = function NetworkInfoToasterComponent_Factory(t) { return new (t || NetworkInfoToasterComponent)(i0.ɵɵdirectiveInject(i1.NetworkService), i0.ɵɵdirectiveInject(i2.App), i0.ɵɵdirectiveInject(i0.Injector)
|
|
167
|
+
NetworkInfoToasterComponent.ɵfac = function NetworkInfoToasterComponent_Factory(t) { return new (t || NetworkInfoToasterComponent)(i0.ɵɵdirectiveInject(i1.NetworkService), i0.ɵɵdirectiveInject(i2.App), i0.ɵɵdirectiveInject(i0.Injector)); };
|
|
169
168
|
NetworkInfoToasterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NetworkInfoToasterComponent, selectors: [["", "wmNetworkInfoToaster", ""]], features: [i0.ɵɵProvidersFeature([
|
|
170
169
|
provideAsWidgetRef(NetworkInfoToasterComponent)
|
|
171
170
|
]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 1, vars: 1, consts: [["class", "network-info-toaster-content", 3, "ngSwitch", 4, "ngIf"], [1, "network-info-toaster-content", 3, "ngSwitch"], ["class", "info", 4, "ngSwitchCase"], [1, "info"], [1, "message", 3, "textContent"], [1, "btn", "btn-default", "hide-btn", 3, "textContent", "click"], [1, "btn", "btn-primary", "connect-btn", 3, "textContent", "click"]], template: function NetworkInfoToasterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -178,7 +177,5 @@ NetworkInfoToasterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
178
177
|
args: [{ selector: '[wmNetworkInfoToaster]', providers: [
|
|
179
178
|
provideAsWidgetRef(NetworkInfoToasterComponent)
|
|
180
179
|
], template: "<div class=\"network-info-toaster-content\" [ngSwitch]=\"networkState\" *ngIf=\"showMessage\">\n <div class=\"info\" *ngSwitchCase=\"-3\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_NETWORK_NOT_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"-2\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_NOT_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"-1\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_AVAILABLE\"></label>\n <button class=\"btn btn-default hide-btn\" (click)=\"hideMessage()\" [textContent]=\"appLocale.LABEL_HIDE_NETWORK_INFO\"></button>\n <button class=\"btn btn-primary connect-btn\" (click)=\"connect()\" [textContent]=\"appLocale.LABEL_CONNECT_TO_SERVICE\"></button>\n </div>\n <div class=\"info\" *ngSwitchCase=\"0\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_CONNECTING\"></label>\n </div>\n <div class=\"info\" *ngSwitchCase=\"1\">\n <label class=\"message\" [textContent]=\"appLocale.MESSAGE_SERVICE_CONNECTED\"></label>\n </div>\n</div>" }]
|
|
181
|
-
}], function () { return [{ type: i1.NetworkService }, { type: i2.App }, { type: i0.Injector }
|
|
182
|
-
type: Optional
|
|
183
|
-
}] }]; }, null); })();
|
|
184
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29yay1pbmZvLXRvYXN0ZXI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ImNvbm5lY3QoKVwiIFt0ZXh0Q29udGVudF09XCJhcHBMb2NhbGUuTEFCRUxfQ09OTkVDVF9UT19TRVJWSUNFXCI+PC9idXR0b24+XG4gICAgPC9kaXY+XG4gICAgPGRpdiBjbGFzcz1cImluZm9cIiAqbmdTd2l0Y2hDYXNlPVwiMFwiPlxuICAgICAgIDxsYWJlbCBjbGFzcz1cIm1lc3NhZ2VcIiBbdGV4dENvbnRlbnRdPVwiYXBwTG9jYWxlLk1FU1NBR0VfU0VSVklDRV9DT05ORUNUSU5HXCI+PC9sYWJlbD5cbiAgICA8L2Rpdj5cbiAgICA8ZGl2IGNsYXNzPVwiaW5mb1wiICpuZ1N3aXRjaENhc2U9XCIxXCI+XG4gICAgICAgPGxhYmVsIGNsYXNzPVwibWVzc2FnZVwiIFt0ZXh0Q29udGVudF09XCJhcHBMb2NhbGUuTUVTU0FHRV9TRVJWSUNFX0NPTk5FQ1RFRFwiPjwvbGFiZWw+XG4gICAgPC9kaXY+XG48L2Rpdj4iXX0=
|
|
180
|
+
}], function () { return [{ type: i1.NetworkService }, { type: i2.App }, { type: i0.Injector }]; }, null); })();
|
|
181
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmV0d29yay1pbmZvLXRvYXN0ZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9iaWxlL2NvbXBvbmVudHMvYmFzaWMvZGVmYXVsdC9zcmMvbmV0d29yay1pbmZvLXRvYXN0ZXIvbmV0d29yay1pbmZvLXRvYXN0ZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9iaWxlL2NvbXBvbmVudHMvYmFzaWMvZGVmYXVsdC9zcmMvbmV0d29yay1pbmZvLXRvYXN0ZXIvbmV0d29yay1pbmZvLXRvYXN0ZXIuY29tcG9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