@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,12 +1,11 @@
|
|
|
1
|
-
import { Attribute, Component, ContentChild, Inject, Injector,
|
|
1
|
+
import { Attribute, Component, ContentChild, Inject, Injector, Self, TemplateRef, ViewChild } from '@angular/core';
|
|
2
2
|
import { toBoolean, UserDefinedExecutionContext } from '@wm/core';
|
|
3
3
|
import { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';
|
|
4
4
|
import { BaseDialog } from '@wm/components/dialogs';
|
|
5
5
|
import { registerProps } from './dialog.props';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@
|
|
8
|
-
import * as i2 from "@
|
|
9
|
-
import * as i3 from "@wm/components/dialogs";
|
|
7
|
+
import * as i1 from "@angular/common";
|
|
8
|
+
import * as i2 from "@wm/components/dialogs";
|
|
10
9
|
const _c0 = ["dialogBody"];
|
|
11
10
|
const _c1 = ["dialogFooter"];
|
|
12
11
|
const _c2 = ["dialogTemplate"];
|
|
@@ -40,7 +39,7 @@ function DialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
40
39
|
const DIALOG_CLS = 'app-dialog modal-dialog';
|
|
41
40
|
const WIDGET_INFO = { widgetType: 'wm-dialog' };
|
|
42
41
|
export class DialogComponent extends BaseDialog {
|
|
43
|
-
constructor(inj, dialogClass, modal, closable, contexts
|
|
42
|
+
constructor(inj, dialogClass, modal, closable, contexts) {
|
|
44
43
|
if (modal === null || modal === undefined) {
|
|
45
44
|
modal = true;
|
|
46
45
|
}
|
|
@@ -51,12 +50,11 @@ export class DialogComponent extends BaseDialog {
|
|
|
51
50
|
contexts[0].closeDialog = () => this.close();
|
|
52
51
|
// setting the backdrop to 'static' will not close the dialog on backdrop click
|
|
53
52
|
const backdrop = toBoolean(modal) ? 'static' : true;
|
|
54
|
-
super(inj, WIDGET_INFO,
|
|
53
|
+
super(inj, WIDGET_INFO, {
|
|
55
54
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
56
55
|
backdrop,
|
|
57
56
|
keyboard: !toBoolean(modal)
|
|
58
57
|
});
|
|
59
|
-
this._viewParent = _viewParent;
|
|
60
58
|
}
|
|
61
59
|
getTemplateRef() {
|
|
62
60
|
return this.dialogTemplate;
|
|
@@ -67,7 +65,7 @@ export class DialogComponent extends BaseDialog {
|
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
DialogComponent.initializeProps = registerProps();
|
|
70
|
-
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)
|
|
68
|
+
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)); };
|
|
71
69
|
DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogComponent, selectors: [["div", "wmDialog", ""]], contentQueries: function DialogComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
72
70
|
i0.ɵɵcontentQuery(dirIndex, _c0, 5, TemplateRef);
|
|
73
71
|
i0.ɵɵcontentQuery(dirIndex, _c1, 5, TemplateRef);
|
|
@@ -90,7 +88,7 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
90
88
|
}
|
|
91
89
|
]), i0.ɵɵInheritDefinitionFeature], attrs: _c3, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid", 4, "ngIf"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid"]], template: function DialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
90
|
i0.ɵɵtemplate(0, DialogComponent_ng_template_0_Template, 4, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
93
|
-
} }, dependencies: [
|
|
91
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.DialogBodyDirective, i2.DialogHeaderComponent], encapsulation: 2 });
|
|
94
92
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogComponent, [{
|
|
95
93
|
type: Component,
|
|
96
94
|
args: [{ selector: 'div[wmDialog]', providers: [
|
|
@@ -116,10 +114,6 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
116
114
|
}, {
|
|
117
115
|
type: Inject,
|
|
118
116
|
args: [Context]
|
|
119
|
-
}] }, { type: i1.UserDefinedExecutionContext, decorators: [{
|
|
120
|
-
type: SkipSelf
|
|
121
|
-
}, {
|
|
122
|
-
type: Optional
|
|
123
117
|
}] }]; }, { dialogTemplate: [{
|
|
124
118
|
type: ViewChild,
|
|
125
119
|
args: ['dialogTemplate', { static: true, read: TemplateRef }]
|
|
@@ -130,4 +124,4 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
130
124
|
type: ContentChild,
|
|
131
125
|
args: ['dialogFooter', /* TODO: add static flag */ { read: TemplateRef }]
|
|
132
126
|
}] }); })();
|
|
133
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
127
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9kaWFsb2dzL2Rlc2lnbi1kaWFsb2cvc3JjL2RpYWxvZy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvZGlhbG9ncy9kZXNpZ24tZGlhbG9nL3NyYy9kaWFsb2cuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltd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
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, Component, Attribute, Self, Inject,
|
|
3
|
-
import * as
|
|
2
|
+
import { TemplateRef, Component, Attribute, Self, Inject, ViewChild, ContentChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { register, PROP_STRING, PROP_BOOLEAN, PROP_NUMBER, PROP_ANY, Context, provideAsWidgetRef, provideAsDialogRef, WmComponentsModule } from '@wm/components/base';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i2 from '@wm/components/dialogs';
|
|
7
7
|
import { BaseDialog, DialogModule } from '@wm/components/dialogs';
|
|
8
8
|
import { InputModule } from '@wm/components/input';
|
|
9
|
-
import * as i1 from '@wm/core';
|
|
10
9
|
import { toBoolean, UserDefinedExecutionContext } from '@wm/core';
|
|
11
10
|
|
|
12
11
|
const registerProps = () => {
|
|
@@ -71,7 +70,7 @@ function DialogComponent_ng_template_0_Template(rf, ctx) {
|
|
|
71
70
|
const DIALOG_CLS = 'app-dialog modal-dialog';
|
|
72
71
|
const WIDGET_INFO = { widgetType: 'wm-dialog' };
|
|
73
72
|
class DialogComponent extends BaseDialog {
|
|
74
|
-
constructor(inj, dialogClass, modal, closable, contexts
|
|
73
|
+
constructor(inj, dialogClass, modal, closable, contexts) {
|
|
75
74
|
if (modal === null || modal === undefined) {
|
|
76
75
|
modal = true;
|
|
77
76
|
}
|
|
@@ -82,12 +81,11 @@ class DialogComponent extends BaseDialog {
|
|
|
82
81
|
contexts[0].closeDialog = () => this.close();
|
|
83
82
|
// setting the backdrop to 'static' will not close the dialog on backdrop click
|
|
84
83
|
const backdrop = toBoolean(modal) ? 'static' : true;
|
|
85
|
-
super(inj, WIDGET_INFO,
|
|
84
|
+
super(inj, WIDGET_INFO, {
|
|
86
85
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
87
86
|
backdrop,
|
|
88
87
|
keyboard: !toBoolean(modal)
|
|
89
88
|
});
|
|
90
|
-
this._viewParent = _viewParent;
|
|
91
89
|
}
|
|
92
90
|
getTemplateRef() {
|
|
93
91
|
return this.dialogTemplate;
|
|
@@ -98,7 +96,7 @@ class DialogComponent extends BaseDialog {
|
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
DialogComponent.initializeProps = registerProps();
|
|
101
|
-
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)
|
|
99
|
+
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)); };
|
|
102
100
|
DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogComponent, selectors: [["div", "wmDialog", ""]], contentQueries: function DialogComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
103
101
|
if (rf & 1) {
|
|
104
102
|
i0.ɵɵcontentQuery(dirIndex, _c0, 5, TemplateRef);
|
|
@@ -129,7 +127,7 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
129
127
|
if (rf & 1) {
|
|
130
128
|
i0.ɵɵtemplate(0, DialogComponent_ng_template_0_Template, 4, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
131
129
|
}
|
|
132
|
-
}, dependencies: [
|
|
130
|
+
}, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.DialogBodyDirective, i2.DialogHeaderComponent], encapsulation: 2 });
|
|
133
131
|
(function () {
|
|
134
132
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogComponent, [{
|
|
135
133
|
type: Component,
|
|
@@ -157,10 +155,6 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
157
155
|
}, {
|
|
158
156
|
type: Inject,
|
|
159
157
|
args: [Context]
|
|
160
|
-
}] }, { type: i1.UserDefinedExecutionContext, decorators: [{
|
|
161
|
-
type: SkipSelf
|
|
162
|
-
}, {
|
|
163
|
-
type: Optional
|
|
164
158
|
}] }];
|
|
165
159
|
}, { dialogTemplate: [{
|
|
166
160
|
type: ViewChild,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean, UserDefinedExecutionContext} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true},\n {\n provide: UserDefinedExecutionContext,\n useExisting: DialogComponent\n }\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Self() @Inject(Context) contexts: Array<any>,\n @SkipSelf() @Optional() public _viewParent: UserDefinedExecutionContext\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n _viewParent,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n }\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CAAC;QACtD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;AAC1B,QAAA,CAAC,OAAO,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAA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B,CAAA;;;;6EACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACVnB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean, UserDefinedExecutionContext} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true},\n {\n provide: UserDefinedExecutionContext,\n useExisting: DialogComponent\n }\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Self() @Inject(Context) contexts: Array<any>\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n }\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CAAC;QACtD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;AAC1B,QAAA,CAAC,OAAO,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAAY,CAAE,CAAA;QACzC,CAAC,MAAM,EAAE,WAAW,CAAC;AACrB,QAAA,CAAC,YAAY,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,EAAA,EAAK,YAAY,CAAE,CAAA;AAC9C,QAAA,CAAC,UAAU,EAAG,MAAA,CAAA,MAAA,CAAA,EAAA,KA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EAAA,CAAA;sBAA/E,SAAS;uBAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA;gBACe,UAAU,EAAA,CAAA;sBAAxF,YAAY;gBAAC,IAAA,EAAA,CAAA,YAAY,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA;gBACI,YAAY,EAAA,CAAA;sBAA5F,YAAY;gBAAC,IAAA,EAAA,CAAA,cAAc,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA;;;;AChCnF,MAAM,UAAU,GAAG;IACf,eAAe;CAClB,CAAC;MAYW,kBAAkB,CAAA;;oFAAlB,kBAAkB,GAAA,CAAA,EAAA,CAAA;oEAAlB,kBAAkB,EAAA,CAAA,CAAA;wEARvB,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,kBAAkB,CAAA,EAAA,CAAA,CAAA;;4EAKb,kBAAkB,EAAA,CAAA;kBAV9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,YAAY;wBACZ,WAAW;wBACX,kBAAkB;AACrB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;iBAC3B,CAAA;;;;6EACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA;AAAA,CAAA,GAAA;;ACVnB;;AAEG;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, Component, Attribute, Self, Inject,
|
|
3
|
-
import * as
|
|
2
|
+
import { TemplateRef, Component, Attribute, Self, Inject, ViewChild, ContentChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { register, PROP_STRING, PROP_BOOLEAN, PROP_NUMBER, PROP_ANY, Context, provideAsWidgetRef, provideAsDialogRef, WmComponentsModule } from '@wm/components/base';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i2 from '@wm/components/dialogs';
|
|
7
7
|
import { BaseDialog, DialogModule } from '@wm/components/dialogs';
|
|
8
8
|
import { InputModule } from '@wm/components/input';
|
|
9
|
-
import * as i1 from '@wm/core';
|
|
10
9
|
import { toBoolean, UserDefinedExecutionContext } from '@wm/core';
|
|
11
10
|
|
|
12
11
|
const registerProps = () => {
|
|
@@ -61,7 +60,7 @@ function DialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
61
60
|
const DIALOG_CLS = 'app-dialog modal-dialog';
|
|
62
61
|
const WIDGET_INFO = { widgetType: 'wm-dialog' };
|
|
63
62
|
class DialogComponent extends BaseDialog {
|
|
64
|
-
constructor(inj, dialogClass, modal, closable, contexts
|
|
63
|
+
constructor(inj, dialogClass, modal, closable, contexts) {
|
|
65
64
|
if (modal === null || modal === undefined) {
|
|
66
65
|
modal = true;
|
|
67
66
|
}
|
|
@@ -72,12 +71,11 @@ class DialogComponent extends BaseDialog {
|
|
|
72
71
|
contexts[0].closeDialog = () => this.close();
|
|
73
72
|
// setting the backdrop to 'static' will not close the dialog on backdrop click
|
|
74
73
|
const backdrop = toBoolean(modal) ? 'static' : true;
|
|
75
|
-
super(inj, WIDGET_INFO,
|
|
74
|
+
super(inj, WIDGET_INFO, {
|
|
76
75
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
77
76
|
backdrop,
|
|
78
77
|
keyboard: !toBoolean(modal)
|
|
79
78
|
});
|
|
80
|
-
this._viewParent = _viewParent;
|
|
81
79
|
}
|
|
82
80
|
getTemplateRef() {
|
|
83
81
|
return this.dialogTemplate;
|
|
@@ -88,7 +86,7 @@ class DialogComponent extends BaseDialog {
|
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
DialogComponent.initializeProps = registerProps();
|
|
91
|
-
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)
|
|
89
|
+
DialogComponent.ɵfac = function DialogComponent_Factory(t) { return new (t || DialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable'), i0.ɵɵdirectiveInject(Context, 2)); };
|
|
92
90
|
DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogComponent, selectors: [["div", "wmDialog", ""]], contentQueries: function DialogComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
93
91
|
i0.ɵɵcontentQuery(dirIndex, _c0, 5, TemplateRef);
|
|
94
92
|
i0.ɵɵcontentQuery(dirIndex, _c1, 5, TemplateRef);
|
|
@@ -111,7 +109,7 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
111
109
|
}
|
|
112
110
|
]), i0.ɵɵInheritDefinitionFeature], attrs: _c3, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid", 4, "ngIf"], ["wmDialogBody", ""], [4, "ngTemplateOutlet"], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid"]], template: function DialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
113
111
|
i0.ɵɵtemplate(0, DialogComponent_ng_template_0_Template, 4, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
114
|
-
} }, dependencies: [
|
|
112
|
+
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet, i2.DialogBodyDirective, i2.DialogHeaderComponent], encapsulation: 2 });
|
|
115
113
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DialogComponent, [{
|
|
116
114
|
type: Component,
|
|
117
115
|
args: [{ selector: 'div[wmDialog]', providers: [
|
|
@@ -137,10 +135,6 @@ DialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DialogCompo
|
|
|
137
135
|
}, {
|
|
138
136
|
type: Inject,
|
|
139
137
|
args: [Context]
|
|
140
|
-
}] }, { type: i1.UserDefinedExecutionContext, decorators: [{
|
|
141
|
-
type: SkipSelf
|
|
142
|
-
}, {
|
|
143
|
-
type: Optional
|
|
144
138
|
}] }]; }, { dialogTemplate: [{
|
|
145
139
|
type: ViewChild,
|
|
146
140
|
args: ['dialogTemplate', { static: true, read: TemplateRef }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean, UserDefinedExecutionContext} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true},\n {\n provide: UserDefinedExecutionContext,\n useExisting: DialogComponent\n }\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Self() @Inject(Context) contexts: Array<any>,\n @SkipSelf() @Optional() public _viewParent: UserDefinedExecutionContext\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n _viewParent,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n }\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CA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E,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVnB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.props.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.html","../../../../../projects/components/widgets/dialogs/design-dialog/src/dialog.component.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/design-dialog.module.ts","../../../../../projects/components/widgets/dialogs/design-dialog/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register } from '@wm/components/base';\n\nexport const registerProps = () => {\n register(\n 'wm-dialog',\n new Map(\n [\n ['animation', PROP_STRING],\n ['class', PROP_STRING],\n ['closable', {value: true, PROP_BOOLEAN}],\n ['iconclass', {value: 'wi wi-file-text', PROP_STRING}],\n ['iconheight', PROP_STRING],\n ['iconmargin', PROP_STRING],\n ['iconurl', PROP_STRING],\n ['iconwidth', PROP_STRING],\n ['modal', {value: true, ...PROP_BOOLEAN}],\n ['name', PROP_STRING],\n ['showheader', {value: true, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}],\n ['title', {value: 'Information', ...PROP_STRING}],\n ['eventsource', PROP_ANY]\n ]\n )\n );\n};\n","<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <ng-container *ngTemplateOutlet=\"dialogBody\"></ng-container>\n </div>\n <ng-container *ngTemplateOutlet=\"dialogFooter\"></ng-container>\n</ng-template>\n","import {\n Attribute,\n Component,\n ContentChild,\n Inject,\n Injector,\n OnInit,\n Optional,\n Self, SkipSelf,\n TemplateRef,\n ViewChild\n} from '@angular/core';\n\nimport {toBoolean, UserDefinedExecutionContext} from '@wm/core';\nimport { Context, provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';\nimport { BaseDialog } from '@wm/components/dialogs';\n\nimport { registerProps } from './dialog.props';\n\nconst DIALOG_CLS = 'app-dialog modal-dialog';\n\nconst WIDGET_INFO = {widgetType: 'wm-dialog'};\n\n@Component({\n selector: 'div[wmDialog]',\n templateUrl: './dialog.component.html',\n providers: [\n provideAsWidgetRef(DialogComponent),\n provideAsDialogRef(DialogComponent),\n {provide: Context, useFactory: () => { return {} }, multi: true},\n {\n provide: UserDefinedExecutionContext,\n useExisting: DialogComponent\n }\n ]\n})\nexport class DialogComponent extends BaseDialog implements OnInit {\n static initializeProps = registerProps();\n\n @ViewChild('dialogTemplate', { static: true, read: TemplateRef }) dialogTemplate: TemplateRef<any>;\n @ContentChild('dialogBody', /* TODO: add static flag */ { read: TemplateRef }) dialogBody: TemplateRef<any>;\n @ContentChild('dialogFooter', /* TODO: add static flag */ { read: TemplateRef }) dialogFooter: TemplateRef<any>;\n\n constructor(\n inj: Injector,\n @Attribute('class') dialogClass: string,\n @Attribute('modal') modal: string | boolean,\n @Attribute('closable') closable: string | boolean,\n @Self() @Inject(Context) contexts: Array<any>\n ) {\n if (modal === null || modal === undefined) {\n modal = true;\n }\n\n if (closable === null || closable === undefined) {\n closable = true;\n }\n\n // contexts[0] will refer to the self context provided by this component\n contexts[0].closeDialog = () => this.close();\n\n // setting the backdrop to 'static' will not close the dialog on backdrop click\n const backdrop: boolean | 'static' = toBoolean(modal) ? 'static' : true;\n\n super(\n inj,\n WIDGET_INFO,\n {\n class: `${DIALOG_CLS} ${dialogClass || ''}`,\n backdrop,\n keyboard: !toBoolean(modal)\n }\n );\n }\n\n protected getTemplateRef(): TemplateRef<any> {\n return this.dialogTemplate;\n }\n\n ngOnInit() {\n super.ngOnInit();\n this.register(this.viewParent);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\nimport { DialogModule } from '@wm/components/dialogs';\nimport { InputModule } from '@wm/components/input';\n\nimport { DialogComponent } from './dialog.component';\n\nconst components = [\n DialogComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n DialogModule,\n InputModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class DesignDialogModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAEO,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,WAAW,EACX,IAAI,GAAG,CACH;QACI,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,WAAW,CAAC;QACtB,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,YAAY,EAAC,CAAC;QACzC,CAAC,WAAW,EAAE,EAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAC,CAAC;QACtD,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,YAAY,EAAE,WAAW,CAAC;QAC3B,CAAC,SAAS,EAAE,WAAW,CAAC;QACxB,CAAC,WAAW,EAAE,WAAW,CAAC;QAC1B,CAAC,OAAO,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QACzC,CAAC,MAAM,EAAE,WAAW,CAAC;QACrB,CAAC,YAAY,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;QAC9C,CAAC,UAAU,EAAE,EAAC,KAAK,E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AE,IAAI,EAAE,WAAW,EAAE,CAAA;YACe,UAAU,EAAA,CAAA;kBAAxF,YAAY;AAAC,YAAA,IAAA,EAAA,CAAA,YAAY,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA;YACI,YAAY,EAAA,CAAA;kBAA5F,YAAY;AAAC,YAAA,IAAA,EAAA,CAAA,cAAc,8BAA8B,EAAE,IAAI,EAAE,WAAW,EAAE,CAAA;;;AChCnF,MAAM,UAAU,GAAG;IACf,eAAe;CAClB,CAAC;MAYW,kBAAkB,CAAA;;oFAAlB,kBAAkB,GAAA,CAAA,EAAA,CAAA;oEAAlB,kBAAkB,EAAA,CAAA,CAAA;wEARvB,YAAY;QACZ,YAAY;QACZ,WAAW;QACX,kBAAkB,CAAA,EAAA,CAAA,CAAA;uFAKb,kBAAkB,EAAA,CAAA;cAV9B,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,YAAY;oBACZ,WAAW;oBACX,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,kBAAkB,EAAA,EAAA,YAAA,EAAA,CAb3B,eAAe,CAAA,EAAA,OAAA,EAAA,CAKX,YAAY;QACZ,YAAY;QACZ,WAAW;AACX,QAAA,kBAAkB,aARtB,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACVnB;;AAEG;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@wm/components/base'), require('@wm/components/basic'), require('@wm/components/dialogs'), require('@wm/components/input'), require('@wm/core')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@wm/components/base', '@wm/components/basic', '@wm/components/dialogs', '@wm/components/input', '@wm/core'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.dialogs = global.wm.components.dialogs || {}, global.wm.components.dialogs.iframedialog = {}), global.ng.core, global.ng.common, global.wm.components.base, global.wm.components.basic, global.wm.components.dialogs, global.wm.components.input, global.wm.core));
|
|
5
|
-
})(this, (function (exports, i0,
|
|
5
|
+
})(this, (function (exports, i0, i2, base, i1, i3, i4, core) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -22,11 +22,10 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
|
-
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
26
25
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
27
|
-
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
28
|
-
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
29
26
|
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
27
|
+
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
28
|
+
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
30
29
|
|
|
31
30
|
const registerProps = () => {
|
|
32
31
|
base.register('wm-iframedialog', new Map([
|
|
@@ -87,19 +86,18 @@
|
|
|
87
86
|
}
|
|
88
87
|
const DIALOG_CLS = 'app-dialog modal-dialog app-iframe-dialog';
|
|
89
88
|
const WIDGET_INFO = { widgetType: 'wm-iframedialog' };
|
|
90
|
-
class IframeDialogComponent extends
|
|
91
|
-
constructor(inj, dialogClass, modal, closable
|
|
89
|
+
class IframeDialogComponent extends i3.BaseDialog {
|
|
90
|
+
constructor(inj, dialogClass, modal, closable) {
|
|
92
91
|
if (modal === null || modal === undefined) {
|
|
93
92
|
modal = false;
|
|
94
93
|
}
|
|
95
94
|
// setting the backdrop to 'static' will not close the dialog on backdrop click
|
|
96
|
-
const backdrop =
|
|
97
|
-
super(inj, WIDGET_INFO,
|
|
95
|
+
const backdrop = core.toBoolean(modal) ? 'static' : true;
|
|
96
|
+
super(inj, WIDGET_INFO, {
|
|
98
97
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
99
98
|
backdrop,
|
|
100
|
-
keyboard: !
|
|
99
|
+
keyboard: !core.toBoolean(modal)
|
|
101
100
|
});
|
|
102
|
-
this._viewParent = _viewParent;
|
|
103
101
|
}
|
|
104
102
|
getTemplateRef() {
|
|
105
103
|
return this.dialogTemplate;
|
|
@@ -118,7 +116,7 @@
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
IframeDialogComponent.initializeProps = registerProps();
|
|
121
|
-
IframeDialogComponent.ɵfac = function IframeDialogComponent_Factory(t) { return new (t || IframeDialogComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('class'), i0__namespace.ɵɵinjectAttribute('modal'), i0__namespace.ɵɵinjectAttribute('closable')
|
|
119
|
+
IframeDialogComponent.ɵfac = function IframeDialogComponent_Factory(t) { return new (t || IframeDialogComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵinjectAttribute('class'), i0__namespace.ɵɵinjectAttribute('modal'), i0__namespace.ɵɵinjectAttribute('closable')); };
|
|
122
120
|
IframeDialogComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: IframeDialogComponent, selectors: [["div", "wmIframeDialog", ""]], viewQuery: function IframeDialogComponent_Query(rf, ctx) {
|
|
123
121
|
if (rf & 1) {
|
|
124
122
|
i0__namespace.ɵɵviewQuery(_c0, 7);
|
|
@@ -131,14 +129,14 @@
|
|
|
131
129
|
base.provideAsWidgetRef(IframeDialogComponent),
|
|
132
130
|
base.provideAsDialogRef(IframeDialogComponent),
|
|
133
131
|
{
|
|
134
|
-
provide:
|
|
132
|
+
provide: core.UserDefinedExecutionContext,
|
|
135
133
|
useExisting: IframeDialogComponent
|
|
136
134
|
}
|
|
137
135
|
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid", 4, "ngIf"], ["wmDialogBody", ""], ["wmIframe", "", "encodeurl.bind", "encodeurl", "iframesrc.bind", "url", "height.bind", "height", "width.bind", "width", "hint.bind", "hint"], ["wmDialogFooter", "", 4, "ngIf"], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid"], ["wmDialogFooter", ""], ["wmButton", "", "caption.bind", "oktext", "aria-label", "Submit button", 1, "btn-primary", "ok-action", 3, "click"]], template: function IframeDialogComponent_Template(rf, ctx) {
|
|
138
136
|
if (rf & 1) {
|
|
139
137
|
i0__namespace.ɵɵtemplate(0, IframeDialogComponent_ng_template_0_Template, 4, 2, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
140
138
|
}
|
|
141
|
-
}, dependencies: [
|
|
139
|
+
}, dependencies: [i1__namespace.IframeComponent, i2__namespace.NgIf, i3__namespace.DialogBodyDirective, i3__namespace.DialogFooterDirective, i3__namespace.DialogHeaderComponent, i4__namespace.ButtonComponent], encapsulation: 2 });
|
|
142
140
|
(function () {
|
|
143
141
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IframeDialogComponent, [{
|
|
144
142
|
type: i0.Component,
|
|
@@ -146,7 +144,7 @@
|
|
|
146
144
|
base.provideAsWidgetRef(IframeDialogComponent),
|
|
147
145
|
base.provideAsDialogRef(IframeDialogComponent),
|
|
148
146
|
{
|
|
149
|
-
provide:
|
|
147
|
+
provide: core.UserDefinedExecutionContext,
|
|
150
148
|
useExisting: IframeDialogComponent
|
|
151
149
|
}
|
|
152
150
|
], template: "<ng-template #dialogTemplate>\n <div wmDialogHeader [closable]=\"closable\"\n [iconclass]=\"iconclass\"\n [iconurl]=\"iconurl\"\n [iconwidth]=\"iconwidth\"\n [iconheight]=\"iconheight\"\n [iconmargin]=\"iconmargin\"\n [heading]=\"title\"\n *ngIf=\"showheader\"\n [titleid]=\"titleId\"\n ></div>\n <div wmDialogBody>\n <div wmIframe encodeurl.bind=\"encodeurl\" iframesrc.bind=\"url\" height.bind=\"height\" width.bind=\"width\" hint.bind=\"hint\"></div>\n </div>\n <div wmDialogFooter *ngIf=\"showactions\">\n <button wmButton class=\"btn-primary ok-action\" caption.bind=\"oktext\" aria-label=\"Submit button\" (click)=\"onOk($event)\"></button>\n </div>\n</ng-template>\n" }]
|
|
@@ -160,10 +158,6 @@
|
|
|
160
158
|
}] }, { type: undefined, decorators: [{
|
|
161
159
|
type: i0.Attribute,
|
|
162
160
|
args: ['closable']
|
|
163
|
-
}] }, { type: i1__namespace.UserDefinedExecutionContext, decorators: [{
|
|
164
|
-
type: i0.SkipSelf
|
|
165
|
-
}, {
|
|
166
|
-
type: i0.Optional
|
|
167
161
|
}] }];
|
|
168
162
|
}, { dialogTemplate: [{
|
|
169
163
|
type: i0.ViewChild,
|
|
@@ -178,20 +172,20 @@
|
|
|
178
172
|
}
|
|
179
173
|
IframeDialogModule.ɵfac = function IframeDialogModule_Factory(t) { return new (t || IframeDialogModule)(); };
|
|
180
174
|
IframeDialogModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IframeDialogModule });
|
|
181
|
-
IframeDialogModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
IframeDialogModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1.BasicModule,
|
|
176
|
+
i2.CommonModule,
|
|
177
|
+
i3.DialogModule,
|
|
178
|
+
i4.InputModule,
|
|
185
179
|
base.WmComponentsModule] });
|
|
186
180
|
(function () {
|
|
187
181
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IframeDialogModule, [{
|
|
188
182
|
type: i0.NgModule,
|
|
189
183
|
args: [{
|
|
190
184
|
imports: [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
i1.BasicModule,
|
|
186
|
+
i2.CommonModule,
|
|
187
|
+
i3.DialogModule,
|
|
188
|
+
i4.InputModule,
|
|
195
189
|
base.WmComponentsModule
|
|
196
190
|
],
|
|
197
191
|
declarations: [...components],
|
|
@@ -200,10 +194,10 @@
|
|
|
200
194
|
}], null, null);
|
|
201
195
|
})();
|
|
202
196
|
(function () {
|
|
203
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IframeDialogModule, { declarations: [IframeDialogComponent], imports: [
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
197
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IframeDialogModule, { declarations: [IframeDialogComponent], imports: [i1.BasicModule,
|
|
198
|
+
i2.CommonModule,
|
|
199
|
+
i3.DialogModule,
|
|
200
|
+
i4.InputModule,
|
|
207
201
|
base.WmComponentsModule], exports: [IframeDialogComponent] });
|
|
208
202
|
})();
|
|
209
203
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Attribute, Component, Injector,
|
|
1
|
+
import { Attribute, Component, Injector, TemplateRef, ViewChild } from '@angular/core';
|
|
2
2
|
import { toBoolean, UserDefinedExecutionContext } from '@wm/core';
|
|
3
3
|
import { provideAsDialogRef, provideAsWidgetRef } from '@wm/components/base';
|
|
4
4
|
import { BaseDialog } from '@wm/components/dialogs';
|
|
5
5
|
import { registerProps } from './iframe-dialog.props';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@wm/
|
|
8
|
-
import * as i2 from "@
|
|
9
|
-
import * as i3 from "@
|
|
10
|
-
import * as i4 from "@wm/components/
|
|
11
|
-
import * as i5 from "@wm/components/input";
|
|
7
|
+
import * as i1 from "@wm/components/basic";
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
import * as i3 from "@wm/components/dialogs";
|
|
10
|
+
import * as i4 from "@wm/components/input";
|
|
12
11
|
const _c0 = ["dialogTemplate"];
|
|
13
12
|
const _c1 = ["wmIframeDialog", ""];
|
|
14
13
|
function IframeDialogComponent_ng_template_0_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -38,7 +37,7 @@ function IframeDialogComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
38
37
|
const DIALOG_CLS = 'app-dialog modal-dialog app-iframe-dialog';
|
|
39
38
|
const WIDGET_INFO = { widgetType: 'wm-iframedialog' };
|
|
40
39
|
export class IframeDialogComponent extends BaseDialog {
|
|
41
|
-
constructor(inj, dialogClass, modal, closable
|
|
40
|
+
constructor(inj, dialogClass, modal, closable) {
|
|
42
41
|
if (modal === null || modal === undefined) {
|
|
43
42
|
modal = false;
|
|
44
43
|
}
|
|
@@ -47,12 +46,11 @@ export class IframeDialogComponent extends BaseDialog {
|
|
|
47
46
|
}
|
|
48
47
|
// setting the backdrop to 'static' will not close the dialog on backdrop click
|
|
49
48
|
const backdrop = toBoolean(modal) ? 'static' : true;
|
|
50
|
-
super(inj, WIDGET_INFO,
|
|
49
|
+
super(inj, WIDGET_INFO, {
|
|
51
50
|
class: `${DIALOG_CLS} ${dialogClass || ''}`,
|
|
52
51
|
backdrop,
|
|
53
52
|
keyboard: !toBoolean(modal)
|
|
54
53
|
});
|
|
55
|
-
this._viewParent = _viewParent;
|
|
56
54
|
}
|
|
57
55
|
getTemplateRef() {
|
|
58
56
|
return this.dialogTemplate;
|
|
@@ -71,7 +69,7 @@ export class IframeDialogComponent extends BaseDialog {
|
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
IframeDialogComponent.initializeProps = registerProps();
|
|
74
|
-
IframeDialogComponent.ɵfac = function IframeDialogComponent_Factory(t) { return new (t || IframeDialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable')
|
|
72
|
+
IframeDialogComponent.ɵfac = function IframeDialogComponent_Factory(t) { return new (t || IframeDialogComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵinjectAttribute('class'), i0.ɵɵinjectAttribute('modal'), i0.ɵɵinjectAttribute('closable')); };
|
|
75
73
|
IframeDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IframeDialogComponent, selectors: [["div", "wmIframeDialog", ""]], viewQuery: function IframeDialogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
76
74
|
i0.ɵɵviewQuery(_c0, 7);
|
|
77
75
|
} if (rf & 2) {
|
|
@@ -86,7 +84,7 @@ IframeDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ifram
|
|
|
86
84
|
}
|
|
87
85
|
]), i0.ɵɵInheritDefinitionFeature], attrs: _c1, decls: 2, vars: 0, consts: [["dialogTemplate", ""], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid", 4, "ngIf"], ["wmDialogBody", ""], ["wmIframe", "", "encodeurl.bind", "encodeurl", "iframesrc.bind", "url", "height.bind", "height", "width.bind", "width", "hint.bind", "hint"], ["wmDialogFooter", "", 4, "ngIf"], ["wmDialogHeader", "", 3, "closable", "iconclass", "iconurl", "iconwidth", "iconheight", "iconmargin", "heading", "titleid"], ["wmDialogFooter", ""], ["wmButton", "", "caption.bind", "oktext", "aria-label", "Submit button", 1, "btn-primary", "ok-action", 3, "click"]], template: function IframeDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
88
86
|
i0.ɵɵtemplate(0, IframeDialogComponent_ng_template_0_Template, 4, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
89
|
-
} }, dependencies: [
|
|
87
|
+
} }, dependencies: [i1.IframeComponent, i2.NgIf, i3.DialogBodyDirective, i3.DialogFooterDirective, i3.DialogHeaderComponent, i4.ButtonComponent], encapsulation: 2 });
|
|
90
88
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IframeDialogComponent, [{
|
|
91
89
|
type: Component,
|
|
92
90
|
args: [{ selector: 'div[wmIframeDialog]', providers: [
|
|
@@ -106,12 +104,8 @@ IframeDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Ifram
|
|
|
106
104
|
}] }, { type: undefined, decorators: [{
|
|
107
105
|
type: Attribute,
|
|
108
106
|
args: ['closable']
|
|
109
|
-
}] }, { type: i1.UserDefinedExecutionContext, decorators: [{
|
|
110
|
-
type: SkipSelf
|
|
111
|
-
}, {
|
|
112
|
-
type: Optional
|
|
113
107
|
}] }]; }, { dialogTemplate: [{
|
|
114
108
|
type: ViewChild,
|
|
115
109
|
args: ['dialogTemplate', { static: true }]
|
|
116
110
|
}] }); })();
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
111
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWZyYW1lLWRpYWxvZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvZGlhbG9ncy9pZnJhbWUtZGlhbG9nL3NyYy9pZnJhbWUtZGlhbG9nLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9kaWFsb2dzL2lmcmFtZS1kaWFsb2cvc3Jj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