@wavemaker/app-ng-runtime 11.10.5-rc.6096 → 11.11.0-1.6137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-task/bundles/index.umd.js +94 -68
- package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +8 -8
- package/build-task/esm2022/containers/repeat-template.build.mjs +5 -5
- package/build-task/esm2022/containers/wizard/wizard-step/wizard-step.build.mjs +2 -2
- package/build-task/esm2022/containers/wizard/wizard.build.mjs +33 -4
- package/build-task/esm2022/data/form/form-field/form-field.build.mjs +10 -10
- package/build-task/esm2022/data/table/table-column/table-column.build.mjs +15 -11
- package/build-task/esm2022/page/page.build.mjs +2 -8
- package/build-task/esm2022/public_api.mjs +1 -1
- package/build-task/fesm2022/index.mjs +95 -69
- package/build-task/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/bundles/index.umd.js +8 -36
- package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +1 -1
- package/components/advanced/carousel/carousel.directive.d.ts +1 -1
- package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +3 -2
- package/components/advanced/carousel/esm2022/carousel.directive.mjs +3 -2
- package/components/advanced/carousel/esm2022/public_api.mjs +1 -2
- package/components/advanced/carousel/fesm2022/index.mjs +8 -36
- package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
- package/components/advanced/carousel/public_api.d.ts +0 -1
- package/components/advanced/custom/bundles/index.umd.js +8 -33
- package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +1 -1
- package/components/advanced/custom/custom-widget.directive.d.ts +1 -1
- package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +3 -2
- package/components/advanced/custom/esm2022/custom-widget.directive.mjs +3 -2
- package/components/advanced/custom/esm2022/public_api.mjs +1 -2
- package/components/advanced/custom/fesm2022/index.mjs +7 -32
- package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
- package/components/advanced/custom/public_api.d.ts +0 -1
- package/components/advanced/login/bundles/index.umd.js +10 -34
- package/components/advanced/login/esm2022/login.component.mjs +7 -6
- package/components/advanced/login/esm2022/public_api.mjs +1 -2
- package/components/advanced/login/fesm2022/index.mjs +8 -32
- package/components/advanced/login/fesm2022/index.mjs.map +1 -1
- package/components/advanced/login/login.component.d.ts +1 -1
- package/components/advanced/login/public_api.d.ts +0 -1
- package/components/advanced/marquee/bundles/index.umd.js +6 -29
- package/components/advanced/marquee/esm2022/marquee.directive.mjs +3 -2
- package/components/advanced/marquee/esm2022/public_api.mjs +1 -2
- package/components/advanced/marquee/fesm2022/index.mjs +5 -28
- package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
- package/components/advanced/marquee/marquee.directive.d.ts +1 -1
- package/components/advanced/marquee/public_api.d.ts +0 -1
- package/components/base/bundles/index.umd.js +86 -278
- package/components/base/components.module.d.ts +13 -15
- package/components/base/directives/show-in-device.directive.d.ts +1 -1
- package/components/base/esm2022/components.module.mjs +7 -13
- package/components/base/esm2022/directives/show-in-device.directive.mjs +3 -2
- package/components/base/esm2022/pipes/custom-pipes.mjs +33 -16
- package/components/base/esm2022/pipes/image.pipe.mjs +3 -2
- package/components/base/esm2022/pipes/sanitize.pipe.mjs +3 -2
- package/components/base/esm2022/pipes/trust-as.pipe.mjs +3 -2
- package/components/base/esm2022/public_api.mjs +1 -2
- package/components/base/esm2022/utils/form-utils.mjs +3 -1
- package/components/base/esm2022/utils/live-utils.mjs +3 -7
- package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +4 -2
- package/components/base/esm2022/widgets/common/base/base.component.mjs +3 -5
- package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/container/container.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +3 -3
- package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/message/message.component.mjs +5 -5
- package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +5 -3
- package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +3 -2
- package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +3 -2
- package/components/base/fesm2022/index.mjs +85 -276
- package/components/base/fesm2022/index.mjs.map +1 -1
- package/components/base/pipes/custom-pipes.d.ts +15 -15
- package/components/base/pipes/image.pipe.d.ts +1 -1
- package/components/base/pipes/sanitize.pipe.d.ts +1 -1
- package/components/base/pipes/trust-as.pipe.d.ts +1 -1
- package/components/base/public_api.d.ts +0 -1
- package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +1 -1
- package/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
- package/components/base/widgets/common/base/text-content.directive.d.ts +1 -1
- package/components/base/widgets/common/container/container.directive.d.ts +1 -1
- package/components/base/widgets/common/item-template/item-template.directive.d.ts +1 -1
- package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +1 -1
- package/components/base/widgets/common/message/message.component.d.ts +1 -1
- package/components/base/widgets/common/partial/partial.directive.d.ts +1 -1
- package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +2 -2
- package/components/base/widgets/common/redraw/redrawable.directive.d.ts +1 -1
- package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +1 -1
- package/components/basic/default/anchor/anchor.component.d.ts +1 -1
- package/components/basic/default/audio/audio.component.d.ts +1 -1
- package/components/basic/default/bundles/index.umd.js +100 -148
- package/components/basic/default/esm2022/anchor/anchor.component.mjs +23 -21
- package/components/basic/default/esm2022/audio/audio.component.mjs +7 -6
- package/components/basic/default/esm2022/html/html.directive.mjs +3 -2
- package/components/basic/default/esm2022/icon/icon.component.mjs +17 -16
- package/components/basic/default/esm2022/iframe/iframe.component.mjs +14 -13
- package/components/basic/default/esm2022/label/label.directive.mjs +3 -2
- package/components/basic/default/esm2022/picture/picture.directive.mjs +3 -2
- package/components/basic/default/esm2022/picture/picture.props.mjs +1 -5
- package/components/basic/default/esm2022/public_api.mjs +1 -2
- package/components/basic/default/esm2022/spinner/spinner.component.mjs +26 -24
- package/components/basic/default/esm2022/video/video.component.mjs +19 -18
- package/components/basic/default/fesm2022/index.mjs +101 -148
- package/components/basic/default/fesm2022/index.mjs.map +1 -1
- package/components/basic/default/html/html.directive.d.ts +1 -1
- package/components/basic/default/icon/icon.component.d.ts +1 -1
- package/components/basic/default/iframe/iframe.component.d.ts +1 -1
- package/components/basic/default/label/label.directive.d.ts +1 -1
- package/components/basic/default/picture/picture.directive.d.ts +1 -1
- package/components/basic/default/public_api.d.ts +0 -1
- package/components/basic/default/spinner/spinner.component.d.ts +1 -1
- package/components/basic/default/video/video.component.d.ts +1 -1
- package/components/basic/progress/bundles/index.umd.js +20 -51
- package/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +12 -11
- package/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
- package/components/basic/progress/esm2022/public_api.mjs +1 -2
- package/components/basic/progress/fesm2022/index.mjs +19 -49
- package/components/basic/progress/fesm2022/index.mjs.map +1 -1
- package/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -1
- package/components/basic/progress/progress-circle/progress-circle.component.d.ts +1 -1
- package/components/basic/progress/public_api.d.ts +0 -1
- package/components/basic/rich-text-editor/bundles/index.umd.js +15 -40
- package/components/basic/rich-text-editor/esm2022/public_api.mjs +1 -2
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +13 -12
- package/components/basic/rich-text-editor/fesm2022/index.mjs +13 -37
- package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
- package/components/basic/rich-text-editor/public_api.d.ts +0 -1
- package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +1 -1
- package/components/basic/search/bundles/index.umd.js +170 -207
- package/components/basic/search/esm2022/public_api.mjs +1 -2
- package/components/basic/search/esm2022/scrollable.directive.mjs +3 -2
- package/components/basic/search/esm2022/search.component.mjs +76 -72
- package/components/basic/search/fesm2022/index.mjs +107 -143
- package/components/basic/search/fesm2022/index.mjs.map +1 -1
- package/components/basic/search/public_api.d.ts +0 -1
- package/components/basic/search/scrollable.directive.d.ts +1 -1
- package/components/basic/search/search.component.d.ts +1 -1
- package/components/basic/tree/bundles/index.umd.js +9 -33
- package/components/basic/tree/esm2022/public_api.mjs +1 -2
- package/components/basic/tree/esm2022/tree.component.mjs +7 -6
- package/components/basic/tree/fesm2022/index.mjs +8 -32
- package/components/basic/tree/fesm2022/index.mjs.map +1 -1
- package/components/basic/tree/public_api.d.ts +0 -1
- package/components/basic/tree/tree.component.d.ts +1 -1
- package/components/chart/bundles/index.umd.js +27 -53
- package/components/chart/chart.component.d.ts +1 -1
- package/components/chart/esm2022/chart.component.mjs +26 -24
- package/components/chart/esm2022/chart.utils.mjs +3 -1
- package/components/chart/esm2022/public_api.mjs +1 -2
- package/components/chart/fesm2022/index.mjs +27 -52
- package/components/chart/fesm2022/index.mjs.map +1 -1
- package/components/chart/public_api.d.ts +0 -1
- package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -1
- package/components/containers/accordion/accordion.directive.d.ts +1 -1
- package/components/containers/accordion/bundles/index.umd.js +208 -237
- package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +10 -11
- package/components/containers/accordion/esm2022/accordion.directive.mjs +5 -4
- package/components/containers/accordion/esm2022/public_api.mjs +1 -2
- package/components/containers/accordion/fesm2022/index.mjs +189 -217
- package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
- package/components/containers/accordion/public_api.d.ts +0 -1
- package/components/containers/layout-grid/bundles/index.umd.js +13 -43
- package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +7 -9
- package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +3 -2
- package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +3 -2
- package/components/containers/layout-grid/esm2022/public_api.mjs +1 -2
- package/components/containers/layout-grid/fesm2022/index.mjs +13 -43
- package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
- package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +1 -1
- package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +1 -1
- package/components/containers/layout-grid/layout-grid.directive.d.ts +1 -1
- package/components/containers/layout-grid/public_api.d.ts +0 -1
- package/components/containers/linear-layout/bundles/index.umd.js +8 -33
- package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +3 -2
- package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +3 -2
- package/components/containers/linear-layout/esm2022/public_api.mjs +1 -2
- package/components/containers/linear-layout/fesm2022/index.mjs +7 -32
- package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
- package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +1 -1
- package/components/containers/linear-layout/linear-layout.directive.d.ts +1 -1
- package/components/containers/linear-layout/public_api.d.ts +0 -1
- package/components/containers/panel/bundles/index.umd.js +87 -118
- package/components/containers/panel/esm2022/panel.component.mjs +48 -46
- package/components/containers/panel/esm2022/public_api.mjs +1 -2
- package/components/containers/panel/fesm2022/index.mjs +49 -79
- package/components/containers/panel/fesm2022/index.mjs.map +1 -1
- package/components/containers/panel/panel.component.d.ts +1 -1
- package/components/containers/panel/public_api.d.ts +0 -1
- package/components/containers/tabs/bundles/index.umd.js +112 -120
- package/components/containers/tabs/esm2022/public_api.mjs +1 -2
- package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +8 -10
- package/components/containers/tabs/esm2022/tabs.component.mjs +61 -38
- package/components/containers/tabs/esm2022/tabs.props.mjs +2 -5
- package/components/containers/tabs/fesm2022/index.mjs +72 -81
- package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
- package/components/containers/tabs/public_api.d.ts +0 -1
- package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +1 -1
- package/components/containers/tabs/tabs.component.d.ts +3 -1
- package/components/containers/tile/bundles/index.umd.js +6 -29
- package/components/containers/tile/esm2022/public_api.mjs +1 -2
- package/components/containers/tile/esm2022/tile.directive.mjs +3 -2
- package/components/containers/tile/fesm2022/index.mjs +5 -28
- package/components/containers/tile/fesm2022/index.mjs.map +1 -1
- package/components/containers/tile/public_api.d.ts +0 -1
- package/components/containers/tile/tile.directive.d.ts +1 -1
- package/components/containers/wizard/bundles/index.umd.js +355 -189
- package/components/containers/wizard/esm2022/public_api.mjs +2 -3
- package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +3 -2
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +176 -0
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.props.mjs +8 -5
- package/components/containers/wizard/esm2022/wizard.component.mjs +264 -105
- package/components/containers/wizard/esm2022/wizard.props.mjs +8 -4
- package/components/containers/wizard/fesm2022/index.mjs +323 -155
- package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
- package/components/containers/wizard/public_api.d.ts +1 -2
- package/components/containers/wizard/wizard-action/wizard-action.directive.d.ts +1 -1
- package/components/containers/wizard/wizard-step/{wizard-step.directive.d.ts → wizard-step.component.d.ts} +12 -6
- package/components/containers/wizard/wizard.component.d.ts +64 -18
- package/components/data/card/bundles/index.umd.js +92 -135
- package/components/data/card/card-actions/card-actions.directive.d.ts +1 -1
- package/components/data/card/card-content/card-content.component.d.ts +1 -1
- package/components/data/card/card-footer/card-footer.directive.d.ts +1 -1
- package/components/data/card/card.component.d.ts +1 -1
- package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +3 -2
- package/components/data/card/esm2022/card-content/card-content.component.mjs +7 -6
- package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +3 -2
- package/components/data/card/esm2022/card.component.mjs +39 -38
- package/components/data/card/esm2022/public_api.mjs +1 -2
- package/components/data/card/fesm2022/index.mjs +49 -92
- package/components/data/card/fesm2022/index.mjs.map +1 -1
- package/components/data/card/public_api.d.ts +0 -1
- package/components/data/form/bundles/index.umd.js +115 -182
- package/components/data/form/esm2022/form-action/form-action.directive.mjs +3 -2
- package/components/data/form/esm2022/form-field/form-field.directive.mjs +3 -2
- package/components/data/form/esm2022/form-widget.directive.mjs +3 -2
- package/components/data/form/esm2022/form.component.mjs +101 -104
- package/components/data/form/esm2022/form.props.mjs +1 -11
- package/components/data/form/esm2022/live-actions/dependson.directive.mjs +3 -2
- package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +3 -2
- package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +3 -2
- package/components/data/form/esm2022/live-form/live-form.directive.mjs +3 -6
- package/components/data/form/esm2022/public_api.mjs +1 -2
- package/components/data/form/fesm2022/index.mjs +117 -184
- package/components/data/form/fesm2022/index.mjs.map +1 -1
- package/components/data/form/form-action/form-action.directive.d.ts +1 -1
- package/components/data/form/form-field/form-field.directive.d.ts +1 -1
- package/components/data/form/form-widget.directive.d.ts +1 -1
- package/components/data/form/form.component.d.ts +1 -1
- package/components/data/form/live-actions/dependson.directive.d.ts +1 -1
- package/components/data/form/live-actions/live-actions.directive.d.ts +1 -1
- package/components/data/form/live-filter/live-filter.directive.d.ts +1 -1
- package/components/data/form/live-form/live-form.directive.d.ts +1 -1
- package/components/data/form/public_api.d.ts +0 -1
- package/components/data/list/bundles/index.umd.js +195 -504
- package/components/data/list/esm2022/list-item.directive.mjs +4 -3
- package/components/data/list/esm2022/list.component.mjs +187 -232
- package/components/data/list/esm2022/list.props.mjs +2 -3
- package/components/data/list/esm2022/public_api.mjs +1 -2
- package/components/data/list/fesm2022/index.mjs +193 -502
- package/components/data/list/fesm2022/index.mjs.map +1 -1
- package/components/data/list/list-item.directive.d.ts +1 -1
- package/components/data/list/list.component.d.ts +1 -1
- package/components/data/list/public_api.d.ts +0 -1
- package/components/data/live-table/bundles/index.umd.js +9 -33
- package/components/data/live-table/esm2022/live-table.component.mjs +7 -6
- package/components/data/live-table/esm2022/public_api.mjs +1 -2
- package/components/data/live-table/fesm2022/index.mjs +8 -32
- package/components/data/live-table/fesm2022/index.mjs.map +1 -1
- package/components/data/live-table/live-table.component.d.ts +1 -1
- package/components/data/live-table/public_api.d.ts +0 -1
- package/components/data/pagination/bundles/index.umd.js +80 -110
- package/components/data/pagination/esm2022/pagination.component.mjs +80 -76
- package/components/data/pagination/esm2022/public_api.mjs +1 -2
- package/components/data/pagination/fesm2022/index.mjs +81 -110
- package/components/data/pagination/fesm2022/index.mjs.map +1 -1
- package/components/data/pagination/pagination.component.d.ts +1 -1
- package/components/data/pagination/public_api.d.ts +0 -1
- package/components/data/table/bundles/index.umd.js +69 -135
- package/components/data/table/esm2022/public_api.mjs +1 -2
- package/components/data/table/esm2022/table-action/table-action.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column/table-column.directive.mjs +3 -2
- package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +3 -2
- package/components/data/table/esm2022/table-cud.directive.mjs +3 -2
- package/components/data/table/esm2022/table-filter.directive.mjs +5 -2
- package/components/data/table/esm2022/table-row/table-row.directive.mjs +3 -2
- package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +3 -2
- package/components/data/table/esm2022/table.component.mjs +51 -48
- package/components/data/table/fesm2022/index.mjs +73 -140
- package/components/data/table/fesm2022/index.mjs.map +1 -1
- package/components/data/table/public_api.d.ts +0 -1
- package/components/data/table/table-action/table-action.directive.d.ts +1 -1
- package/components/data/table/table-column/table-column.directive.d.ts +1 -1
- package/components/data/table/table-column-group/table-column-group.directive.d.ts +1 -1
- package/components/data/table/table-cud.directive.d.ts +1 -1
- package/components/data/table/table-filter.directive.d.ts +1 -1
- package/components/data/table/table-row/table-row.directive.d.ts +1 -1
- package/components/data/table/table-row-action/table-row-action.directive.d.ts +1 -1
- package/components/data/table/table.component.d.ts +1 -1
- package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +1 -1
- package/components/dialogs/alert-dialog/bundles/index.umd.js +32 -64
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +10 -10
- package/components/dialogs/alert-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/alert-dialog/fesm2022/index.mjs +11 -43
- package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/alert-dialog/public_api.d.ts +0 -1
- package/components/dialogs/confirm-dialog/bundles/index.umd.js +10 -42
- package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +1 -1
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -9
- package/components/dialogs/confirm-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs +10 -42
- package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/confirm-dialog/public_api.d.ts +0 -1
- package/components/dialogs/default/bundles/index.umd.js +76 -136
- package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +1 -1
- package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +1 -1
- package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +1 -1
- package/components/dialogs/default/esm2022/base-dialog.mjs +3 -3
- package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +3 -2
- package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +3 -2
- package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +70 -97
- package/components/dialogs/default/esm2022/public_api.mjs +1 -2
- package/components/dialogs/default/fesm2022/index.mjs +78 -137
- package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/default/public_api.d.ts +0 -1
- package/components/dialogs/design-dialog/bundles/index.umd.js +16 -47
- package/components/dialogs/design-dialog/dialog.component.d.ts +1 -1
- package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +14 -13
- package/components/dialogs/design-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/design-dialog/fesm2022/index.mjs +14 -45
- package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/design-dialog/public_api.d.ts +0 -1
- package/components/dialogs/iframe-dialog/bundles/index.umd.js +20 -57
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +21 -21
- package/components/dialogs/iframe-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs +21 -57
- package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +1 -1
- package/components/dialogs/iframe-dialog/public_api.d.ts +0 -1
- package/components/dialogs/login-dialog/bundles/index.umd.js +6 -38
- package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +3 -2
- package/components/dialogs/login-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/login-dialog/fesm2022/index.mjs +6 -41
- package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/login-dialog/login-dialog.directive.d.ts +1 -1
- package/components/dialogs/login-dialog/public_api.d.ts +0 -1
- package/components/dialogs/partial-dialog/bundles/index.umd.js +17 -49
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +16 -15
- package/components/dialogs/partial-dialog/esm2022/public_api.mjs +1 -2
- package/components/dialogs/partial-dialog/fesm2022/index.mjs +16 -47
- package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
- package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +1 -1
- package/components/dialogs/partial-dialog/public_api.d.ts +0 -1
- package/components/input/calendar/bundles/index.umd.js +24 -46
- package/components/input/calendar/calendar.component.d.ts +1 -1
- package/components/input/calendar/esm2022/calendar.component.mjs +28 -10
- package/components/input/calendar/esm2022/calendar.props.mjs +1 -1
- package/components/input/calendar/esm2022/public_api.mjs +1 -2
- package/components/input/calendar/fesm2022/index.mjs +30 -48
- package/components/input/calendar/fesm2022/index.mjs.map +1 -1
- package/components/input/calendar/public_api.d.ts +0 -1
- package/components/input/chips/bundles/index.umd.js +86 -114
- package/components/input/chips/chips.component.d.ts +1 -1
- package/components/input/chips/esm2022/chips.component.mjs +28 -27
- package/components/input/chips/esm2022/public_api.mjs +1 -2
- package/components/input/chips/fesm2022/index.mjs +29 -56
- package/components/input/chips/fesm2022/index.mjs.map +1 -1
- package/components/input/chips/public_api.d.ts +0 -1
- package/components/input/color-picker/bundles/index.umd.js +14 -42
- package/components/input/color-picker/color-picker.component.d.ts +1 -1
- package/components/input/color-picker/esm2022/color-picker.component.mjs +14 -8
- package/components/input/color-picker/esm2022/public_api.mjs +1 -2
- package/components/input/color-picker/fesm2022/index.mjs +15 -42
- package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
- package/components/input/color-picker/public_api.d.ts +0 -1
- package/components/input/currency/bundles/index.umd.js +11 -41
- package/components/input/currency/currency.component.d.ts +1 -1
- package/components/input/currency/esm2022/currency.component.mjs +8 -6
- package/components/input/currency/esm2022/public_api.mjs +1 -2
- package/components/input/currency/fesm2022/index.mjs +11 -41
- package/components/input/currency/fesm2022/index.mjs.map +1 -1
- package/components/input/currency/public_api.d.ts +0 -1
- package/components/input/default/bundles/index.umd.js +2183 -2263
- package/components/input/default/button/button.component.d.ts +1 -1
- package/components/input/default/button-group/button-group.directive.d.ts +1 -1
- package/components/input/default/caption-position.directive.d.ts +1 -1
- package/components/input/default/checkbox/checkbox.component.d.ts +1 -1
- package/components/input/default/checkboxset/checkboxset.component.d.ts +1 -1
- package/components/input/default/composite/composite.directive.d.ts +1 -1
- package/components/input/default/esm2022/button/button.component.mjs +23 -21
- package/components/input/default/esm2022/button-group/button-group.directive.mjs +3 -2
- package/components/input/default/esm2022/caption-position.directive.mjs +3 -2
- package/components/input/default/esm2022/checkbox/checkbox.component.mjs +9 -6
- package/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +73 -72
- package/components/input/default/esm2022/composite/composite.directive.mjs +3 -2
- package/components/input/default/esm2022/number/number.component.mjs +9 -6
- package/components/input/default/esm2022/public_api.mjs +1 -2
- package/components/input/default/esm2022/radioset/radioset.component.mjs +73 -72
- package/components/input/default/esm2022/select/select.component.mjs +29 -32
- package/components/input/default/esm2022/switch/switch.component.mjs +29 -27
- package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +9 -6
- package/components/input/default/esm2022/text/color/input-color.component.mjs +9 -6
- package/components/input/default/esm2022/text/email/input-email.component.mjs +9 -6
- package/components/input/default/esm2022/text/number/input-number.component.mjs +9 -6
- package/components/input/default/esm2022/text/text/input-text.component.mjs +10 -6
- package/components/input/default/esm2022/textarea/textarea.component.mjs +14 -11
- package/components/input/default/fesm2022/index.mjs +2198 -2277
- package/components/input/default/fesm2022/index.mjs.map +1 -1
- package/components/input/default/number/number.component.d.ts +1 -1
- package/components/input/default/public_api.d.ts +0 -1
- package/components/input/default/radioset/radioset.component.d.ts +1 -1
- package/components/input/default/select/select.component.d.ts +1 -1
- package/components/input/default/switch/switch.component.d.ts +1 -1
- package/components/input/default/text/calendar/input-calendar.component.d.ts +1 -1
- package/components/input/default/text/color/input-color.component.d.ts +1 -1
- package/components/input/default/text/email/input-email.component.d.ts +1 -1
- package/components/input/default/text/number/input-number.component.d.ts +1 -1
- package/components/input/default/text/text/input-text.component.d.ts +1 -1
- package/components/input/default/textarea/textarea.component.d.ts +1 -1
- package/components/input/epoch/base-date-time.component.d.ts +0 -1
- package/components/input/epoch/bundles/index.umd.js +220 -262
- package/components/input/epoch/date/date.component.d.ts +1 -1
- package/components/input/epoch/date/imaskUtil.d.ts +2 -2
- package/components/input/epoch/date-time/date-time-picker.component.d.ts +6 -6
- package/components/input/epoch/date-time/date-time.component.d.ts +1 -1
- package/components/input/epoch/esm2022/base-date-time.component.mjs +6 -9
- package/components/input/epoch/esm2022/date/date.component.mjs +19 -18
- package/components/input/epoch/esm2022/date/imaskUtil.mjs +3 -1
- package/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +76 -62
- package/components/input/epoch/esm2022/date-time/date-time.component.mjs +28 -24
- package/components/input/epoch/esm2022/picker/picker.component.mjs +33 -28
- package/components/input/epoch/esm2022/public_api.mjs +1 -2
- package/components/input/epoch/esm2022/time/time.component.mjs +25 -21
- package/components/input/epoch/fesm2022/index.mjs +196 -237
- package/components/input/epoch/fesm2022/index.mjs.map +1 -1
- package/components/input/epoch/picker/picker.component.d.ts +2 -2
- package/components/input/epoch/public_api.d.ts +0 -1
- package/components/input/epoch/time/time.component.d.ts +1 -1
- package/components/input/file-upload/bundles/index.umd.js +135 -178
- package/components/input/file-upload/esm2022/file-upload.component.mjs +133 -150
- package/components/input/file-upload/esm2022/public_api.mjs +1 -2
- package/components/input/file-upload/fesm2022/index.mjs +133 -175
- package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
- package/components/input/file-upload/file-upload.component.d.ts +1 -2
- package/components/input/file-upload/public_api.d.ts +0 -1
- package/components/input/rating/bundles/index.umd.js +50 -77
- package/components/input/rating/esm2022/public_api.mjs +1 -2
- package/components/input/rating/esm2022/rating.component.mjs +23 -20
- package/components/input/rating/fesm2022/index.mjs +23 -49
- package/components/input/rating/fesm2022/index.mjs.map +1 -1
- package/components/input/rating/public_api.d.ts +0 -1
- package/components/input/rating/rating.component.d.ts +1 -1
- package/components/input/slider/bundles/index.umd.js +35 -63
- package/components/input/slider/esm2022/public_api.mjs +1 -2
- package/components/input/slider/esm2022/slider.component.mjs +15 -13
- package/components/input/slider/fesm2022/index.mjs +15 -42
- package/components/input/slider/fesm2022/index.mjs.map +1 -1
- package/components/input/slider/public_api.d.ts +0 -1
- package/components/input/slider/slider.component.d.ts +1 -1
- package/components/navigation/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/components/navigation/breadcrumb/bundles/index.umd.js +40 -67
- package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +23 -21
- package/components/navigation/breadcrumb/esm2022/public_api.mjs +1 -2
- package/components/navigation/breadcrumb/fesm2022/index.mjs +23 -50
- package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
- package/components/navigation/breadcrumb/public_api.d.ts +0 -1
- package/components/navigation/menu/bundles/index.umd.js +642 -696
- package/components/navigation/menu/esm2022/menu-adapator.component.mjs +1 -1
- package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +11 -9
- package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +24 -18
- package/components/navigation/menu/esm2022/menu.component.mjs +34 -31
- package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +3 -2
- package/components/navigation/menu/esm2022/nav/nav.component.mjs +39 -29
- package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +6 -3
- package/components/navigation/menu/esm2022/public_api.mjs +1 -2
- package/components/navigation/menu/fesm2022/index.mjs +534 -587
- package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
- package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +1 -1
- package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +1 -1
- package/components/navigation/menu/menu.component.d.ts +1 -1
- package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +1 -1
- package/components/navigation/menu/nav/nav.component.d.ts +1 -1
- package/components/navigation/menu/nav/navigation-control.directive.d.ts +1 -1
- package/components/navigation/menu/public_api.d.ts +0 -1
- package/components/navigation/navbar/bundles/index.umd.js +20 -44
- package/components/navigation/navbar/esm2022/navbar.component.mjs +18 -16
- package/components/navigation/navbar/esm2022/public_api.mjs +1 -2
- package/components/navigation/navbar/fesm2022/index.mjs +18 -41
- package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
- package/components/navigation/navbar/navbar.component.d.ts +1 -1
- package/components/navigation/navbar/public_api.d.ts +0 -1
- package/components/navigation/popover/bundles/index.umd.js +12 -43
- package/components/navigation/popover/esm2022/popover.component.mjs +11 -9
- package/components/navigation/popover/esm2022/public_api.mjs +1 -2
- package/components/navigation/popover/fesm2022/index.mjs +11 -41
- package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
- package/components/navigation/popover/popover.component.d.ts +1 -1
- package/components/navigation/popover/public_api.d.ts +0 -1
- package/components/page/default/bundles/index.umd.js +96 -138
- package/components/page/default/content/content.component.d.ts +1 -1
- package/components/page/default/esm2022/content/content.component.mjs +7 -6
- package/components/page/default/esm2022/layout.directive.mjs +3 -2
- package/components/page/default/esm2022/page-content/page-content.component.mjs +7 -6
- package/components/page/default/esm2022/page-content/page-content.props.mjs +2 -3
- package/components/page/default/esm2022/page.directive.mjs +3 -2
- package/components/page/default/esm2022/public_api.mjs +1 -2
- package/components/page/default/esm2022/router-outlet.directive.mjs +3 -2
- package/components/page/default/esm2022/spa-page.directive.mjs +3 -2
- package/components/page/default/fesm2022/index.mjs +96 -138
- package/components/page/default/fesm2022/index.mjs.map +1 -1
- package/components/page/default/layout.directive.d.ts +1 -1
- package/components/page/default/page-content/page-content.component.d.ts +1 -1
- package/components/page/default/page.directive.d.ts +1 -1
- package/components/page/default/public_api.d.ts +0 -1
- package/components/page/default/router-outlet.directive.d.ts +1 -1
- package/components/page/default/spa-page.directive.d.ts +1 -1
- package/components/page/footer/bundles/index.umd.js +6 -29
- package/components/page/footer/esm2022/footer.directive.mjs +3 -2
- package/components/page/footer/esm2022/public_api.mjs +1 -2
- package/components/page/footer/fesm2022/index.mjs +5 -28
- package/components/page/footer/fesm2022/index.mjs.map +1 -1
- package/components/page/footer/footer.directive.d.ts +1 -1
- package/components/page/footer/public_api.d.ts +0 -1
- package/components/page/header/bundles/index.umd.js +9 -33
- package/components/page/header/esm2022/header.component.mjs +7 -6
- package/components/page/header/esm2022/public_api.mjs +1 -2
- package/components/page/header/fesm2022/index.mjs +8 -32
- package/components/page/header/fesm2022/index.mjs.map +1 -1
- package/components/page/header/header.component.d.ts +1 -1
- package/components/page/header/public_api.d.ts +0 -1
- package/components/page/left-panel/bundles/index.umd.js +6 -29
- package/components/page/left-panel/esm2022/left-panel.directive.mjs +3 -2
- package/components/page/left-panel/esm2022/public_api.mjs +1 -2
- package/components/page/left-panel/fesm2022/index.mjs +5 -28
- package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/left-panel/left-panel.directive.d.ts +1 -1
- package/components/page/left-panel/public_api.d.ts +0 -1
- package/components/page/right-panel/bundles/index.umd.js +6 -29
- package/components/page/right-panel/esm2022/public_api.mjs +1 -2
- package/components/page/right-panel/esm2022/right-panel.directive.mjs +3 -2
- package/components/page/right-panel/fesm2022/index.mjs +5 -28
- package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
- package/components/page/right-panel/public_api.d.ts +0 -1
- package/components/page/right-panel/right-panel.directive.d.ts +1 -1
- package/components/page/top-nav/bundles/index.umd.js +6 -29
- package/components/page/top-nav/esm2022/public_api.mjs +1 -2
- package/components/page/top-nav/esm2022/top-nav.directive.mjs +3 -2
- package/components/page/top-nav/fesm2022/index.mjs +5 -28
- package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
- package/components/page/top-nav/public_api.d.ts +0 -1
- package/components/page/top-nav/top-nav.directive.d.ts +1 -1
- package/components/prefab/bundles/index.umd.js +8 -33
- package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +3 -2
- package/components/prefab/esm2022/prefab.directive.mjs +3 -2
- package/components/prefab/esm2022/public_api.mjs +1 -2
- package/components/prefab/fesm2022/index.mjs +7 -32
- package/components/prefab/fesm2022/index.mjs.map +1 -1
- package/components/prefab/prefab-container/prefab-container.directive.d.ts +1 -1
- package/components/prefab/prefab.directive.d.ts +1 -1
- package/components/prefab/public_api.d.ts +0 -1
- package/core/bundles/index.umd.js +32 -85
- package/core/esm2022/public_api.mjs +2 -3
- package/core/esm2022/types/types.mjs +1 -1
- package/core/esm2022/utils/build-utils.mjs +9 -5
- package/core/esm2022/utils/utils.mjs +12 -40
- package/core/fesm2022/index.mjs +32 -81
- package/core/fesm2022/index.mjs.map +1 -1
- package/core/public_api.d.ts +1 -2
- package/core/types/types.d.ts +1 -0
- package/core/utils/utils.d.ts +1 -3
- package/http/bundles/index.umd.js +9 -34
- package/http/esm2022/http.service.mjs +6 -3
- package/http/esm2022/public_api.mjs +4 -2
- package/http/fesm2022/index.mjs +9 -34
- package/http/fesm2022/index.mjs.map +1 -1
- package/http/public_api.d.ts +3 -1
- package/npm-shrinkwrap.json +2 -2
- package/oAuth/bundles/index.umd.js +9 -42
- package/oAuth/esm2022/oAuth.utils.mjs +7 -23
- package/oAuth/esm2022/public_api.mjs +1 -2
- package/oAuth/fesm2022/index.mjs +8 -40
- package/oAuth/fesm2022/index.mjs.map +1 -1
- package/oAuth/public_api.d.ts +0 -1
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/runtime/base/bundles/index.umd.js +690 -596
- package/runtime/base/components/app-component/app.component.d.ts +1 -1
- package/runtime/base/components/app-spinner.component.d.ts +1 -1
- package/runtime/base/components/custom-toaster.component.d.ts +1 -1
- package/runtime/base/components/empty-component/empty-page.component.d.ts +1 -1
- package/runtime/base/components/prefab-preview.component.d.ts +1 -1
- package/runtime/base/directives/accessroles.directive.d.ts +1 -1
- package/runtime/base/directives/prefab.directive.d.ts +1 -1
- package/runtime/base/esm2022/components/app-component/app.component.mjs +42 -49
- package/runtime/base/esm2022/components/app-spinner.component.mjs +29 -21
- package/runtime/base/esm2022/components/base-page.component.mjs +3 -11
- package/runtime/base/esm2022/components/base-spa-page.component.mjs +3 -11
- package/runtime/base/esm2022/components/custom-toaster.component.mjs +20 -14
- package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +4 -3
- package/runtime/base/esm2022/components/prefab-preview.component.mjs +8 -6
- package/runtime/base/esm2022/directives/accessroles.directive.mjs +3 -2
- package/runtime/base/esm2022/directives/prefab.directive.mjs +3 -2
- package/runtime/base/esm2022/public_api.mjs +1 -1
- package/runtime/base/esm2022/resolves/security-config.resolve.mjs +4 -6
- package/runtime/base/esm2022/runtime-base.module.mjs +486 -337
- package/runtime/base/esm2022/services/app.manager.service.mjs +31 -48
- package/runtime/base/esm2022/services/app.service.mjs +8 -1
- package/runtime/base/esm2022/services/i18n.service.mjs +39 -72
- package/runtime/base/fesm2022/index.mjs +697 -605
- package/runtime/base/fesm2022/index.mjs.map +1 -1
- package/runtime/base/runtime-base.module.d.ts +115 -84
- package/runtime/base/services/app.service.d.ts +1 -0
- package/runtime/base/services/i18n.service.d.ts +1 -1
- package/runtime/dynamic/app/app.config.d.ts +5 -0
- package/runtime/dynamic/app/components/page-wrapper.component.d.ts +1 -1
- package/runtime/dynamic/bundles/index.umd.js +270 -117
- package/runtime/dynamic/esm2022/app/app.config.mjs +136 -0
- package/runtime/dynamic/esm2022/app/app.module.mjs +151 -105
- package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +7 -4
- package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +1 -1
- package/runtime/dynamic/esm2022/main.mjs +11 -16
- package/runtime/dynamic/fesm2022/index.mjs +340 -184
- package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
- package/security/bundles/index.umd.js +3 -34
- package/security/esm2022/public_api.mjs +1 -2
- package/security/esm2022/security.service.mjs +4 -15
- package/security/fesm2022/index.mjs +5 -32
- package/security/fesm2022/index.mjs.map +1 -1
- package/security/public_api.d.ts +0 -1
- package/transpiler/bundles/index.umd.js +271 -168
- package/transpiler/esm2022/build.mjs +1 -6
- package/transpiler/esm2022/imports.mjs +268 -161
- package/transpiler/fesm2022/index.mjs +267 -165
- package/transpiler/fesm2022/index.mjs.map +1 -1
- package/variables/bundles/index.umd.js +16 -197
- package/variables/constants/variables.constants.d.ts +0 -2
- package/variables/esm2022/constants/variables.constants.mjs +1 -3
- package/variables/esm2022/factory/variable-manager.factory.mjs +1 -3
- package/variables/esm2022/factory/variable.factory.mjs +1 -5
- package/variables/esm2022/manager/action/logout-action.manager.mjs +5 -7
- package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +3 -3
- package/variables/esm2022/public_api.mjs +1 -5
- package/variables/esm2022/service/metadata-service/metadata.service.mjs +6 -11
- package/variables/esm2022/util/variable/service-variable.utils.mjs +1 -4
- package/variables/esm2022/util/variable/variables.utils.mjs +5 -19
- package/variables/fesm2022/index.mjs +16 -198
- package/variables/fesm2022/index.mjs.map +1 -1
- package/variables/public_api.d.ts +0 -4
- package/components/advanced/carousel/carousel.module.d.ts +0 -11
- package/components/advanced/carousel/esm2022/carousel.module.mjs +0 -36
- package/components/advanced/custom/custom-widget.module.d.ts +0 -10
- package/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
- package/components/advanced/login/esm2022/login.module.mjs +0 -28
- package/components/advanced/login/login.module.d.ts +0 -9
- package/components/advanced/marquee/esm2022/marquee.module.mjs +0 -28
- package/components/advanced/marquee/marquee.module.d.ts +0 -9
- package/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +0 -221
- package/components/base/widgets/common/smooth-scroll/smooth-scroll.directive.d.ts +0 -22
- package/components/basic/default/basic.module.d.ts +0 -17
- package/components/basic/default/esm2022/basic.module.mjs +0 -60
- package/components/basic/progress/esm2022/progress.module.mjs +0 -36
- package/components/basic/progress/progress.module.d.ts +0 -11
- package/components/basic/rich-text-editor/esm2022/rich-text-editor.module.mjs +0 -28
- package/components/basic/rich-text-editor/rich-text-editor.module.d.ts +0 -9
- package/components/basic/search/esm2022/search.module.mjs +0 -45
- package/components/basic/search/search.module.d.ts +0 -12
- package/components/basic/tree/esm2022/tree.module.mjs +0 -28
- package/components/basic/tree/tree.module.d.ts +0 -9
- package/components/chart/chart.module.d.ts +0 -10
- package/components/chart/esm2022/chart.module.mjs +0 -32
- package/components/containers/accordion/accordion.module.d.ts +0 -10
- package/components/containers/accordion/esm2022/accordion.module.mjs +0 -32
- package/components/containers/layout-grid/esm2022/layout-grid.module.mjs +0 -36
- package/components/containers/layout-grid/layout-grid.module.d.ts +0 -11
- package/components/containers/linear-layout/esm2022/linear-layout.module.mjs +0 -32
- package/components/containers/linear-layout/linear-layout.module.d.ts +0 -10
- package/components/containers/panel/esm2022/panel.module.mjs +0 -36
- package/components/containers/panel/panel.module.d.ts +0 -11
- package/components/containers/tabs/esm2022/tabs.module.mjs +0 -32
- package/components/containers/tabs/tabs.module.d.ts +0 -10
- package/components/containers/tile/esm2022/tile.module.mjs +0 -28
- package/components/containers/tile/tile.module.d.ts +0 -9
- package/components/containers/wizard/esm2022/wizard-step/wizard-step.directive.mjs +0 -140
- package/components/containers/wizard/esm2022/wizard.module.mjs +0 -40
- package/components/containers/wizard/wizard.module.d.ts +0 -12
- package/components/data/card/card.module.d.ts +0 -15
- package/components/data/card/esm2022/card.module.mjs +0 -52
- package/components/data/form/esm2022/form.module.mjs +0 -68
- package/components/data/form/form.module.d.ts +0 -19
- package/components/data/list/esm2022/list.module.mjs +0 -40
- package/components/data/list/list.module.d.ts +0 -11
- package/components/data/live-table/esm2022/live-table.module.mjs +0 -28
- package/components/data/live-table/live-table.module.d.ts +0 -9
- package/components/data/pagination/esm2022/pagination.module.mjs +0 -36
- package/components/data/pagination/pagination.module.d.ts +0 -11
- package/components/data/table/esm2022/table.module.mjs +0 -91
- package/components/data/table/table.module.d.ts +0 -24
- package/components/dialogs/alert-dialog/alert-dialog.module.d.ts +0 -11
- package/components/dialogs/alert-dialog/esm2022/alert-dialog.module.mjs +0 -36
- package/components/dialogs/confirm-dialog/confirm-dialog.module.d.ts +0 -11
- package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.module.mjs +0 -36
- package/components/dialogs/default/dialog.module.d.ts +0 -12
- package/components/dialogs/default/esm2022/dialog.module.mjs +0 -40
- package/components/dialogs/design-dialog/design-dialog.module.d.ts +0 -11
- package/components/dialogs/design-dialog/esm2022/design-dialog.module.mjs +0 -36
- package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.module.mjs +0 -40
- package/components/dialogs/iframe-dialog/iframe-dialog.module.d.ts +0 -12
- package/components/dialogs/login-dialog/esm2022/login-dialog.module.mjs +0 -40
- package/components/dialogs/login-dialog/login-dialog.module.d.ts +0 -12
- package/components/dialogs/partial-dialog/esm2022/partial-dialog.module.mjs +0 -36
- package/components/dialogs/partial-dialog/partial-dialog.module.d.ts +0 -11
- package/components/input/calendar/calendar.module.d.ts +0 -12
- package/components/input/calendar/esm2022/calendar.module.mjs +0 -40
- package/components/input/chips/chips.module.d.ts +0 -10
- package/components/input/chips/esm2022/chips.module.mjs +0 -32
- package/components/input/color-picker/color-picker.module.d.ts +0 -11
- package/components/input/color-picker/esm2022/color-picker.module.mjs +0 -36
- package/components/input/currency/currency.module.d.ts +0 -11
- package/components/input/currency/esm2022/currency.module.mjs +0 -36
- package/components/input/default/esm2022/input.module.mjs +0 -96
- package/components/input/default/input.module.d.ts +0 -26
- package/components/input/epoch/epoch.module.d.ts +0 -18
- package/components/input/epoch/esm2022/epoch.module.mjs +0 -70
- package/components/input/file-upload/esm2022/file-upload.module.mjs +0 -28
- package/components/input/file-upload/file-upload.module.d.ts +0 -9
- package/components/input/rating/esm2022/rating.module.mjs +0 -32
- package/components/input/rating/rating.module.d.ts +0 -10
- package/components/input/slider/esm2022/slider.module.mjs +0 -32
- package/components/input/slider/slider.module.d.ts +0 -10
- package/components/navigation/breadcrumb/breadcrumb.module.d.ts +0 -10
- package/components/navigation/breadcrumb/esm2022/breadcrumb.module.mjs +0 -32
- package/components/navigation/menu/esm2022/menu.module.mjs +0 -71
- package/components/navigation/menu/menu.module.d.ts +0 -17
- package/components/navigation/navbar/esm2022/navbar.module.mjs +0 -28
- package/components/navigation/navbar/navbar.module.d.ts +0 -9
- package/components/navigation/popover/esm2022/popover.module.mjs +0 -36
- package/components/navigation/popover/popover.module.d.ts +0 -11
- package/components/page/default/esm2022/page.module.mjs +0 -55
- package/components/page/default/page.module.d.ts +0 -14
- package/components/page/footer/esm2022/footer.module.mjs +0 -28
- package/components/page/footer/footer.module.d.ts +0 -9
- package/components/page/header/esm2022/header.module.mjs +0 -28
- package/components/page/header/header.module.d.ts +0 -9
- package/components/page/left-panel/esm2022/left-panel.module.mjs +0 -28
- package/components/page/left-panel/left-panel.module.d.ts +0 -9
- package/components/page/right-panel/esm2022/right-panel.module.mjs +0 -28
- package/components/page/right-panel/right-panel.module.d.ts +0 -9
- package/components/page/top-nav/esm2022/top-nav.module.mjs +0 -28
- package/components/page/top-nav/top-nav.module.d.ts +0 -9
- package/components/prefab/esm2022/prefab.module.mjs +0 -32
- package/components/prefab/prefab.module.d.ts +0 -10
- package/core/core.module.d.ts +0 -9
- package/core/esm2022/core.module.mjs +0 -27
- package/http/esm2022/http-service.module.mjs +0 -36
- package/http/http-service.module.d.ts +0 -14
- package/locales/fullcalendar/af.js +0 -27
- package/locales/fullcalendar/ar-dz.js +0 -28
- package/locales/fullcalendar/ar-kw.js +0 -28
- package/locales/fullcalendar/ar-ly.js +0 -28
- package/locales/fullcalendar/ar-ma.js +0 -28
- package/locales/fullcalendar/ar-sa.js +0 -28
- package/locales/fullcalendar/ar-tn.js +0 -28
- package/locales/fullcalendar/ar.js +0 -28
- package/locales/fullcalendar/az.js +0 -29
- package/locales/fullcalendar/bg.js +0 -28
- package/locales/fullcalendar/bs.js +0 -29
- package/locales/fullcalendar/ca.js +0 -27
- package/locales/fullcalendar/cs.js +0 -29
- package/locales/fullcalendar/da.js +0 -27
- package/locales/fullcalendar/de.js +0 -30
- package/locales/fullcalendar/el.js +0 -27
- package/locales/fullcalendar/en-au.js +0 -14
- package/locales/fullcalendar/en-gb.js +0 -14
- package/locales/fullcalendar/en-nz.js +0 -14
- package/locales/fullcalendar/es-us.js +0 -27
- package/locales/fullcalendar/es.js +0 -27
- package/locales/fullcalendar/et.js +0 -29
- package/locales/fullcalendar/eu.js +0 -27
- package/locales/fullcalendar/fa.js +0 -30
- package/locales/fullcalendar/fi.js +0 -27
- package/locales/fullcalendar/fr-ca.js +0 -24
- package/locales/fullcalendar/fr-ch.js +0 -28
- package/locales/fullcalendar/fr.js +0 -28
- package/locales/fullcalendar/gl.js +0 -27
- package/locales/fullcalendar/he.js +0 -24
- package/locales/fullcalendar/hi.js +0 -29
- package/locales/fullcalendar/hr.js +0 -29
- package/locales/fullcalendar/hu.js +0 -27
- package/locales/fullcalendar/id.js +0 -27
- package/locales/fullcalendar/is.js +0 -27
- package/locales/fullcalendar/it.js +0 -29
- package/locales/fullcalendar/ja.js +0 -25
- package/locales/fullcalendar/ka.js +0 -29
- package/locales/fullcalendar/kk.js +0 -29
- package/locales/fullcalendar/ko.js +0 -23
- package/locales/fullcalendar/lb.js +0 -27
- package/locales/fullcalendar/lt.js +0 -27
- package/locales/fullcalendar/lv.js +0 -29
- package/locales/fullcalendar/mk.js +0 -25
- package/locales/fullcalendar/ms.js +0 -29
- package/locales/fullcalendar/nb.js +0 -27
- package/locales/fullcalendar/ne.js +0 -27
- package/locales/fullcalendar/nl.js +0 -27
- package/locales/fullcalendar/nn.js +0 -27
- package/locales/fullcalendar/pl.js +0 -27
- package/locales/fullcalendar/pt-br.js +0 -25
- package/locales/fullcalendar/pt.js +0 -27
- package/locales/fullcalendar/ro.js +0 -29
- package/locales/fullcalendar/ru.js +0 -29
- package/locales/fullcalendar/sk.js +0 -29
- package/locales/fullcalendar/sl.js +0 -27
- package/locales/fullcalendar/sq.js +0 -29
- package/locales/fullcalendar/sr-cyrl.js +0 -29
- package/locales/fullcalendar/sr.js +0 -29
- package/locales/fullcalendar/sv.js +0 -27
- package/locales/fullcalendar/th.js +0 -30
- package/locales/fullcalendar/tr.js +0 -27
- package/locales/fullcalendar/ug.js +0 -17
- package/locales/fullcalendar/uk.js +0 -29
- package/locales/fullcalendar/uz.js +0 -21
- package/locales/fullcalendar/vi.js +0 -29
- package/locales/fullcalendar/zh-cn.js +0 -30
- package/locales/fullcalendar/zh-tw.js +0 -23
- package/mobile/components/basic/default/.npmignore +0 -2
- package/mobile/components/basic/default/anchor/anchor.directive.d.ts +0 -8
- package/mobile/components/basic/default/app-update/app-update.component.d.ts +0 -26
- package/mobile/components/basic/default/basic.module.d.ts +0 -15
- package/mobile/components/basic/default/bundles/index.umd.js +0 -980
- package/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +0 -44
- package/mobile/components/basic/default/esm2022/app-update/app-update.component.mjs +0 -116
- package/mobile/components/basic/default/esm2022/basic.module.mjs +0 -52
- package/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +0 -236
- package/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +0 -85
- package/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +0 -61
- package/mobile/components/basic/default/esm2022/index.mjs +0 -5
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.component.mjs +0 -183
- package/mobile/components/basic/default/esm2022/network-info-toaster/network-info-toaster.props.mjs +0 -5
- package/mobile/components/basic/default/esm2022/process-manager/process-management.service.mjs +0 -47
- package/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +0 -175
- package/mobile/components/basic/default/esm2022/public_api.mjs +0 -10
- package/mobile/components/basic/default/fesm2022/index.mjs +0 -958
- package/mobile/components/basic/default/fesm2022/index.mjs.map +0 -1
- package/mobile/components/basic/default/file-browser/file-browser.component.d.ts +0 -39
- package/mobile/components/basic/default/file-browser/file-selector.service.d.ts +0 -27
- package/mobile/components/basic/default/image-cache/image-cache.directive.d.ts +0 -18
- package/mobile/components/basic/default/index.d.ts +0 -5
- package/mobile/components/basic/default/network-info-toaster/network-info-toaster.component.d.ts +0 -28
- package/mobile/components/basic/default/network-info-toaster/network-info-toaster.props.d.ts +0 -1
- package/mobile/components/basic/default/package.json +0 -23
- package/mobile/components/basic/default/process-manager/process-management.service.d.ts +0 -36
- package/mobile/components/basic/default/process-manager/process-manager.component.d.ts +0 -33
- package/mobile/components/basic/default/public_api.d.ts +0 -9
- package/mobile/components/basic/search/.npmignore +0 -2
- package/mobile/components/basic/search/bundles/index.umd.js +0 -66
- package/mobile/components/basic/search/esm2022/index.mjs +0 -5
- package/mobile/components/basic/search/esm2022/public_api.mjs +0 -3
- package/mobile/components/basic/search/esm2022/search.directive.mjs +0 -17
- package/mobile/components/basic/search/esm2022/search.module.mjs +0 -28
- package/mobile/components/basic/search/fesm2022/index.mjs +0 -49
- package/mobile/components/basic/search/fesm2022/index.mjs.map +0 -1
- package/mobile/components/basic/search/index.d.ts +0 -5
- package/mobile/components/basic/search/package.json +0 -23
- package/mobile/components/basic/search/public_api.d.ts +0 -2
- package/mobile/components/basic/search/search.directive.d.ts +0 -7
- package/mobile/components/basic/search/search.module.d.ts +0 -9
- package/mobile/components/containers/segmented-control/.npmignore +0 -2
- package/mobile/components/containers/segmented-control/bundles/index.umd.js +0 -281
- package/mobile/components/containers/segmented-control/esm2022/index.mjs +0 -5
- package/mobile/components/containers/segmented-control/esm2022/public_api.mjs +0 -4
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +0 -70
- package/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.props.mjs +0 -14
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +0 -147
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.module.mjs +0 -32
- package/mobile/components/containers/segmented-control/esm2022/segmented-control.props.mjs +0 -9
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs +0 -264
- package/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +0 -1
- package/mobile/components/containers/segmented-control/index.d.ts +0 -5
- package/mobile/components/containers/segmented-control/package.json +0 -23
- package/mobile/components/containers/segmented-control/public_api.d.ts +0 -3
- package/mobile/components/containers/segmented-control/segment-content/segment-content.component.d.ts +0 -18
- package/mobile/components/containers/segmented-control/segment-content/segment-content.props.d.ts +0 -1
- package/mobile/components/containers/segmented-control/segmented-control.component.d.ts +0 -20
- package/mobile/components/containers/segmented-control/segmented-control.module.d.ts +0 -10
- package/mobile/components/containers/segmented-control/segmented-control.props.d.ts +0 -1
- package/mobile/components/data/media-list/.npmignore +0 -2
- package/mobile/components/data/media-list/bundles/index.umd.js +0 -310
- package/mobile/components/data/media-list/esm2022/index.mjs +0 -5
- package/mobile/components/data/media-list/esm2022/media-list-item/media-list-item.directive.mjs +0 -24
- package/mobile/components/data/media-list/esm2022/media-list.component.mjs +0 -213
- package/mobile/components/data/media-list/esm2022/media-list.module.mjs +0 -48
- package/mobile/components/data/media-list/esm2022/media-list.props.mjs +0 -16
- package/mobile/components/data/media-list/esm2022/public_api.mjs +0 -4
- package/mobile/components/data/media-list/fesm2022/index.mjs +0 -297
- package/mobile/components/data/media-list/fesm2022/index.mjs.map +0 -1
- package/mobile/components/data/media-list/index.d.ts +0 -5
- package/mobile/components/data/media-list/media-list-item/media-list-item.directive.d.ts +0 -8
- package/mobile/components/data/media-list/media-list.component.d.ts +0 -33
- package/mobile/components/data/media-list/media-list.module.d.ts +0 -14
- package/mobile/components/data/media-list/media-list.props.d.ts +0 -1
- package/mobile/components/data/media-list/package.json +0 -23
- package/mobile/components/data/media-list/public_api.d.ts +0 -3
- package/mobile/components/device/barcode-scanner/.npmignore +0 -2
- package/mobile/components/device/barcode-scanner/barcode-scanner.component.d.ts +0 -18
- package/mobile/components/device/barcode-scanner/barcode-scanner.module.d.ts +0 -9
- package/mobile/components/device/barcode-scanner/barcode-scanner.props.d.ts +0 -1
- package/mobile/components/device/barcode-scanner/bundles/index.umd.js +0 -129
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.component.mjs +0 -69
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.module.mjs +0 -28
- package/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +0 -15
- package/mobile/components/device/barcode-scanner/esm2022/index.mjs +0 -5
- package/mobile/components/device/barcode-scanner/esm2022/public_api.mjs +0 -3
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs +0 -112
- package/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +0 -1
- package/mobile/components/device/barcode-scanner/index.d.ts +0 -5
- package/mobile/components/device/barcode-scanner/package.json +0 -23
- package/mobile/components/device/barcode-scanner/public_api.d.ts +0 -2
- package/mobile/components/device/camera/.npmignore +0 -2
- package/mobile/components/device/camera/bundles/index.umd.js +0 -170
- package/mobile/components/device/camera/camera.component.d.ts +0 -37
- package/mobile/components/device/camera/camera.module.d.ts +0 -9
- package/mobile/components/device/camera/camera.props.d.ts +0 -1
- package/mobile/components/device/camera/esm2022/camera.component.mjs +0 -101
- package/mobile/components/device/camera/esm2022/camera.module.mjs +0 -28
- package/mobile/components/device/camera/esm2022/camera.props.mjs +0 -25
- package/mobile/components/device/camera/esm2022/index.mjs +0 -5
- package/mobile/components/device/camera/esm2022/public_api.mjs +0 -3
- package/mobile/components/device/camera/fesm2022/index.mjs +0 -153
- package/mobile/components/device/camera/fesm2022/index.mjs.map +0 -1
- package/mobile/components/device/camera/index.d.ts +0 -5
- package/mobile/components/device/camera/package.json +0 -23
- package/mobile/components/device/camera/public_api.d.ts +0 -2
- package/mobile/components/input/file-upload/.npmignore +0 -2
- package/mobile/components/input/file-upload/bundles/index.umd.js +0 -88
- package/mobile/components/input/file-upload/esm2022/file-upload.directive.mjs +0 -41
- package/mobile/components/input/file-upload/esm2022/file-upload.module.mjs +0 -28
- package/mobile/components/input/file-upload/esm2022/index.mjs +0 -5
- package/mobile/components/input/file-upload/esm2022/public_api.mjs +0 -3
- package/mobile/components/input/file-upload/fesm2022/index.mjs +0 -71
- package/mobile/components/input/file-upload/fesm2022/index.mjs.map +0 -1
- package/mobile/components/input/file-upload/file-upload.directive.d.ts +0 -11
- package/mobile/components/input/file-upload/file-upload.module.d.ts +0 -9
- package/mobile/components/input/file-upload/index.d.ts +0 -5
- package/mobile/components/input/file-upload/package.json +0 -23
- package/mobile/components/input/file-upload/public_api.d.ts +0 -2
- package/mobile/components/page/default/.npmignore +0 -2
- package/mobile/components/page/default/bundles/index.umd.js +0 -127
- package/mobile/components/page/default/esm2022/index.mjs +0 -5
- package/mobile/components/page/default/esm2022/page-content-loader/page-content-loader.component.mjs +0 -24
- package/mobile/components/page/default/esm2022/page.directive.mjs +0 -58
- package/mobile/components/page/default/esm2022/page.module.mjs +0 -32
- package/mobile/components/page/default/esm2022/public_api.mjs +0 -4
- package/mobile/components/page/default/fesm2022/index.mjs +0 -110
- package/mobile/components/page/default/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/default/index.d.ts +0 -5
- package/mobile/components/page/default/package.json +0 -23
- package/mobile/components/page/default/page-content-loader/page-content-loader.component.d.ts +0 -7
- package/mobile/components/page/default/page.directive.d.ts +0 -19
- package/mobile/components/page/default/page.module.d.ts +0 -10
- package/mobile/components/page/default/public_api.d.ts +0 -3
- package/mobile/components/page/left-panel/.npmignore +0 -2
- package/mobile/components/page/left-panel/bundles/index.umd.js +0 -91
- package/mobile/components/page/left-panel/esm2022/index.mjs +0 -5
- package/mobile/components/page/left-panel/esm2022/left-panel.directive.mjs +0 -45
- package/mobile/components/page/left-panel/esm2022/left-panel.module.mjs +0 -28
- package/mobile/components/page/left-panel/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/left-panel/fesm2022/index.mjs +0 -74
- package/mobile/components/page/left-panel/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/left-panel/index.d.ts +0 -5
- package/mobile/components/page/left-panel/left-panel.directive.d.ts +0 -16
- package/mobile/components/page/left-panel/left-panel.module.d.ts +0 -9
- package/mobile/components/page/left-panel/package.json +0 -23
- package/mobile/components/page/left-panel/public_api.d.ts +0 -2
- package/mobile/components/page/mobile-navbar/.npmignore +0 -2
- package/mobile/components/page/mobile-navbar/bundles/index.umd.js +0 -332
- package/mobile/components/page/mobile-navbar/esm2022/index.mjs +0 -5
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.component.mjs +0 -247
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.module.mjs +0 -32
- package/mobile/components/page/mobile-navbar/esm2022/mobile-navbar.props.mjs +0 -41
- package/mobile/components/page/mobile-navbar/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs +0 -317
- package/mobile/components/page/mobile-navbar/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/mobile-navbar/index.d.ts +0 -5
- package/mobile/components/page/mobile-navbar/mobile-navbar.component.d.ts +0 -50
- package/mobile/components/page/mobile-navbar/mobile-navbar.module.d.ts +0 -10
- package/mobile/components/page/mobile-navbar/mobile-navbar.props.d.ts +0 -2
- package/mobile/components/page/mobile-navbar/package.json +0 -23
- package/mobile/components/page/mobile-navbar/public_api.d.ts +0 -2
- package/mobile/components/page/tab-bar/.npmignore +0 -2
- package/mobile/components/page/tab-bar/bundles/index.umd.js +0 -279
- package/mobile/components/page/tab-bar/esm2022/index.mjs +0 -5
- package/mobile/components/page/tab-bar/esm2022/public_api.mjs +0 -3
- package/mobile/components/page/tab-bar/esm2022/tab-bar.module.mjs +0 -28
- package/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +0 -219
- package/mobile/components/page/tab-bar/esm2022/tabbar.props.mjs +0 -15
- package/mobile/components/page/tab-bar/fesm2022/index.mjs +0 -262
- package/mobile/components/page/tab-bar/fesm2022/index.mjs.map +0 -1
- package/mobile/components/page/tab-bar/index.d.ts +0 -5
- package/mobile/components/page/tab-bar/package.json +0 -23
- package/mobile/components/page/tab-bar/public_api.d.ts +0 -2
- package/mobile/components/page/tab-bar/tab-bar.module.d.ts +0 -9
- package/mobile/components/page/tab-bar/tabbar.component.d.ts +0 -40
- package/mobile/components/page/tab-bar/tabbar.props.d.ts +0 -1
- package/mobile/core/.npmignore +0 -2
- package/mobile/core/bundles/index.umd.js +0 -1658
- package/mobile/core/core.module.d.ts +0 -15
- package/mobile/core/esm2022/core.module.mjs +0 -79
- package/mobile/core/esm2022/index.mjs +0 -5
- package/mobile/core/esm2022/native.xhr.mjs +0 -340
- package/mobile/core/esm2022/public_api.mjs +0 -12
- package/mobile/core/esm2022/services/device-file-cache.service.mjs +0 -92
- package/mobile/core/esm2022/services/device-file-download.service.mjs +0 -154
- package/mobile/core/esm2022/services/device-file-opener.service.mjs +0 -112
- package/mobile/core/esm2022/services/device-file-upload.service.mjs +0 -91
- package/mobile/core/esm2022/services/device-file.service.mjs +0 -237
- package/mobile/core/esm2022/services/device-start-up-service.mjs +0 -2
- package/mobile/core/esm2022/services/device.service.mjs +0 -150
- package/mobile/core/esm2022/services/ext-app-message.service.mjs +0 -114
- package/mobile/core/esm2022/services/network.service.mjs +0 -358
- package/mobile/core/fesm2022/index.mjs +0 -1660
- package/mobile/core/fesm2022/index.mjs.map +0 -1
- package/mobile/core/index.d.ts +0 -5
- package/mobile/core/native.xhr.d.ts +0 -36
- package/mobile/core/package.json +0 -28
- package/mobile/core/public_api.d.ts +0 -11
- package/mobile/core/services/device-file-cache.service.d.ts +0 -24
- package/mobile/core/services/device-file-download.service.d.ts +0 -36
- package/mobile/core/services/device-file-opener.service.d.ts +0 -25
- package/mobile/core/services/device-file-upload.service.d.ts +0 -27
- package/mobile/core/services/device-file.service.d.ts +0 -45
- package/mobile/core/services/device-start-up-service.d.ts +0 -4
- package/mobile/core/services/device.service.d.ts +0 -52
- package/mobile/core/services/ext-app-message.service.d.ts +0 -24
- package/mobile/core/services/network.service.d.ts +0 -118
- package/mobile/offline/.npmignore +0 -2
- package/mobile/offline/bundles/index.umd.js +0 -3512
- package/mobile/offline/esm2022/index.mjs +0 -5
- package/mobile/offline/esm2022/models/config.mjs +0 -64
- package/mobile/offline/esm2022/models/local-db-store.mjs +0 -412
- package/mobile/offline/esm2022/offline.module.mjs +0 -100
- package/mobile/offline/esm2022/public_api.mjs +0 -7
- package/mobile/offline/esm2022/services/change-log.service.mjs +0 -332
- package/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +0 -525
- package/mobile/offline/esm2022/services/local-db-management.service.mjs +0 -855
- package/mobile/offline/esm2022/services/local-db.service.mjs +0 -193
- package/mobile/offline/esm2022/services/local-key-value.service.mjs +0 -87
- package/mobile/offline/esm2022/services/push.service.mjs +0 -49
- package/mobile/offline/esm2022/services/workers/error-blocker.mjs +0 -115
- package/mobile/offline/esm2022/services/workers/file-handler.mjs +0 -162
- package/mobile/offline/esm2022/services/workers/id-resolver.mjs +0 -154
- package/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +0 -63
- package/mobile/offline/esm2022/utils/file-upload.utils.mjs +0 -59
- package/mobile/offline/esm2022/utils/live-variable.utils.mjs +0 -232
- package/mobile/offline/esm2022/utils/query-executor.utils.mjs +0 -82
- package/mobile/offline/esm2022/utils/security.utils.mjs +0 -119
- package/mobile/offline/esm2022/utils/utils.mjs +0 -8
- package/mobile/offline/fesm2022/index.mjs +0 -3529
- package/mobile/offline/fesm2022/index.mjs.map +0 -1
- package/mobile/offline/index.d.ts +0 -5
- package/mobile/offline/models/config.d.ts +0 -80
- package/mobile/offline/models/local-db-store.d.ts +0 -119
- package/mobile/offline/offline.module.d.ts +0 -17
- package/mobile/offline/package.json +0 -28
- package/mobile/offline/public_api.d.ts +0 -6
- package/mobile/offline/services/change-log.service.d.ts +0 -112
- package/mobile/offline/services/local-db-data-pull.service.d.ts +0 -139
- package/mobile/offline/services/local-db-management.service.d.ts +0 -179
- package/mobile/offline/services/local-db.service.d.ts +0 -83
- package/mobile/offline/services/local-key-value.service.d.ts +0 -38
- package/mobile/offline/services/push.service.d.ts +0 -11
- package/mobile/offline/services/workers/error-blocker.d.ts +0 -26
- package/mobile/offline/services/workers/file-handler.d.ts +0 -56
- package/mobile/offline/services/workers/id-resolver.d.ts +0 -26
- package/mobile/offline/services/workers/multi-part-param-transformer.d.ts +0 -11
- package/mobile/offline/utils/file-upload.utils.d.ts +0 -14
- package/mobile/offline/utils/live-variable.utils.d.ts +0 -24
- package/mobile/offline/utils/query-executor.utils.d.ts +0 -15
- package/mobile/offline/utils/security.utils.d.ts +0 -19
- package/mobile/offline/utils/utils.d.ts +0 -2
- package/mobile/placeholder/runtime/.npmignore +0 -2
- package/mobile/placeholder/runtime/bundles/index.umd.js +0 -70
- package/mobile/placeholder/runtime/components/app-ext.component.d.ts +0 -5
- package/mobile/placeholder/runtime/esm2022/components/app-ext.component.mjs +0 -19
- package/mobile/placeholder/runtime/esm2022/index.mjs +0 -5
- package/mobile/placeholder/runtime/esm2022/mobile-runtime.module.mjs +0 -27
- package/mobile/placeholder/runtime/esm2022/public_api.mjs +0 -3
- package/mobile/placeholder/runtime/fesm2022/index.mjs +0 -50
- package/mobile/placeholder/runtime/fesm2022/index.mjs.map +0 -1
- package/mobile/placeholder/runtime/index.d.ts +0 -5
- package/mobile/placeholder/runtime/mobile-runtime.module.d.ts +0 -9
- package/mobile/placeholder/runtime/package.json +0 -27
- package/mobile/placeholder/runtime/public_api.d.ts +0 -2
- package/mobile/placeholder/runtime-dynamic/.npmignore +0 -2
- package/mobile/placeholder/runtime-dynamic/bundles/index.umd.js +0 -40
- package/mobile/placeholder/runtime-dynamic/esm2022/index.mjs +0 -5
- package/mobile/placeholder/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +0 -13
- package/mobile/placeholder/runtime-dynamic/esm2022/public_api.mjs +0 -2
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs +0 -20
- package/mobile/placeholder/runtime-dynamic/fesm2022/index.mjs.map +0 -1
- package/mobile/placeholder/runtime-dynamic/index.d.ts +0 -5
- package/mobile/placeholder/runtime-dynamic/mobile-runtime-dynamic.module.d.ts +0 -7
- package/mobile/placeholder/runtime-dynamic/package.json +0 -23
- package/mobile/placeholder/runtime-dynamic/public_api.d.ts +0 -1
- package/mobile/runtime/.npmignore +0 -2
- package/mobile/runtime/bundles/index.umd.js +0 -732
- package/mobile/runtime/components/app-ext.component.d.ts +0 -14
- package/mobile/runtime/esm2022/components/app-ext.component.mjs +0 -59
- package/mobile/runtime/esm2022/index.mjs +0 -5
- package/mobile/runtime/esm2022/mobile-runtime.module.mjs +0 -351
- package/mobile/runtime/esm2022/public_api.mjs +0 -6
- package/mobile/runtime/esm2022/services/cookie.service.mjs +0 -135
- package/mobile/runtime/esm2022/services/http-interceptor.service.mjs +0 -147
- package/mobile/runtime/esm2022/services/webprocess.service.mjs +0 -76
- package/mobile/runtime/fesm2022/index.mjs +0 -742
- package/mobile/runtime/fesm2022/index.mjs.map +0 -1
- package/mobile/runtime/index.d.ts +0 -5
- package/mobile/runtime/mobile-runtime.module.d.ts +0 -51
- package/mobile/runtime/package.json +0 -28
- package/mobile/runtime/public_api.d.ts +0 -5
- package/mobile/runtime/services/cookie.service.d.ts +0 -31
- package/mobile/runtime/services/http-interceptor.service.d.ts +0 -19
- package/mobile/runtime/services/webprocess.service.d.ts +0 -15
- package/mobile/runtime-dynamic/.npmignore +0 -2
- package/mobile/runtime-dynamic/bundles/index.umd.js +0 -461
- package/mobile/runtime-dynamic/esm2022/index.mjs +0 -5
- package/mobile/runtime-dynamic/esm2022/mobile-runtime-dynamic.module.mjs +0 -48
- package/mobile/runtime-dynamic/esm2022/public_api.mjs +0 -2
- package/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +0 -404
- package/mobile/runtime-dynamic/fesm2022/index.mjs +0 -454
- package/mobile/runtime-dynamic/fesm2022/index.mjs.map +0 -1
- package/mobile/runtime-dynamic/index.d.ts +0 -5
- package/mobile/runtime-dynamic/mobile-runtime-dynamic.module.d.ts +0 -8
- package/mobile/runtime-dynamic/package.json +0 -23
- package/mobile/runtime-dynamic/public_api.d.ts +0 -1
- package/mobile/runtime-dynamic/services/live-sync.service.d.ts +0 -38
- package/mobile/variables/.npmignore +0 -2
- package/mobile/variables/bundles/index.umd.js +0 -1166
- package/mobile/variables/esm2022/index.mjs +0 -5
- package/mobile/variables/esm2022/public_api.mjs +0 -10
- package/mobile/variables/esm2022/services/calendar-service.mjs +0 -77
- package/mobile/variables/esm2022/services/camera-service.mjs +0 -70
- package/mobile/variables/esm2022/services/contacts-service.mjs +0 -74
- package/mobile/variables/esm2022/services/datasync-service.mjs +0 -363
- package/mobile/variables/esm2022/services/device-service/device-service.mjs +0 -161
- package/mobile/variables/esm2022/services/device-service/location-service.mjs +0 -200
- package/mobile/variables/esm2022/services/file-service.mjs +0 -87
- package/mobile/variables/esm2022/services/scan-service.mjs +0 -60
- package/mobile/variables/esm2022/variables.module.mjs +0 -78
- package/mobile/variables/fesm2022/index.mjs +0 -1143
- package/mobile/variables/fesm2022/index.mjs.map +0 -1
- package/mobile/variables/index.d.ts +0 -5
- package/mobile/variables/package.json +0 -28
- package/mobile/variables/public_api.d.ts +0 -9
- package/mobile/variables/services/calendar-service.d.ts +0 -10
- package/mobile/variables/services/camera-service.d.ts +0 -8
- package/mobile/variables/services/contacts-service.d.ts +0 -6
- package/mobile/variables/services/datasync-service.d.ts +0 -11
- package/mobile/variables/services/device-service/device-service.d.ts +0 -17
- package/mobile/variables/services/device-service/location-service.d.ts +0 -63
- package/mobile/variables/services/file-service.d.ts +0 -7
- package/mobile/variables/services/scan-service.d.ts +0 -7
- package/mobile/variables/variables.module.d.ts +0 -25
- package/oAuth/esm2022/oAuth.module.mjs +0 -19
- package/oAuth/oAuth.module.d.ts +0 -8
- package/scripts/fullcalendar/main.min.js +0 -6
- package/security/esm2022/security.module.mjs +0 -19
- package/security/security.module.d.ts +0 -8
- package/variables/esm2022/manager/variable/device-variable-manager.mjs +0 -48
- package/variables/esm2022/manager/variable/device-variable-operation.mjs +0 -2
- package/variables/esm2022/manager/variable/device-variable-service.mjs +0 -45
- package/variables/esm2022/model/variable/device-variable.mjs +0 -19
- package/variables/esm2022/variables.module.mjs +0 -52
- package/variables/manager/variable/device-variable-manager.d.ts +0 -26
- package/variables/manager/variable/device-variable-operation.d.ts +0 -37
- package/variables/manager/variable/device-variable-service.d.ts +0 -6
- package/variables/model/variable/device-variable.d.ts +0 -6
- package/variables/variables.module.d.ts +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@angular/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.navigation = global.wm.components.navigation || {}, global.wm.components.navigation.menu = {}), global.ng.
|
|
5
|
-
})(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@wm/components/base'), require('@wm/components/input'), require('@angular/core'), require('@wm/core'), require('@wm/components/basic'), require('@angular/router'), require('lodash-es'), require('ngx-bootstrap/dropdown')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@angular/common', '@wm/components/base', '@wm/components/input', '@angular/core', '@wm/core', '@wm/components/basic', '@angular/router', 'lodash-es', 'ngx-bootstrap/dropdown'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.navigation = global.wm.components.navigation || {}, global.wm.components.navigation.menu = {}), global.ng.common, global.wm.components.base, global.wm.components.input, global.ng.core, global.wm.core, global.wm.components.basic, global.ng.router, global._, global.dropdown));
|
|
5
|
+
})(this, (function (exports, i3, i5, input, i0, i2, basic, i1, lodashEs, i3$1) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -21,16 +21,117 @@
|
|
|
21
21
|
return Object.freeze(n);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
25
24
|
var i3__namespace = /*#__PURE__*/_interopNamespaceDefault(i3);
|
|
26
|
-
var i2$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i2$1);
|
|
27
25
|
var i5__namespace = /*#__PURE__*/_interopNamespaceDefault(i5);
|
|
28
|
-
var
|
|
29
|
-
var i4__namespace = /*#__PURE__*/_interopNamespaceDefault(i4);
|
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
26
|
+
var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
|
|
31
27
|
var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
|
|
29
|
+
var i3$1__namespace = /*#__PURE__*/_interopNamespaceDefault(i3$1);
|
|
30
|
+
|
|
31
|
+
const disableContextMenu = ($event) => {
|
|
32
|
+
$event.preventDefault();
|
|
33
|
+
};
|
|
34
|
+
class NavigationControlDirective {
|
|
35
|
+
set wmNavigationControl(val) {
|
|
36
|
+
this._link = val;
|
|
37
|
+
if (val && !this.disableMenuContext) {
|
|
38
|
+
i2.setAttr(this.nativeElement, 'href', val);
|
|
39
|
+
this.nativeElement.removeEventListener('contextmenu', disableContextMenu);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
i2.setAttr(this.nativeElement, 'href', 'javascript:void(0)');
|
|
43
|
+
this.nativeElement.addEventListener('contextmenu', disableContextMenu);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
constructor(eleRef) {
|
|
47
|
+
this.nativeElement = eleRef.nativeElement;
|
|
48
|
+
}
|
|
49
|
+
static { this.ɵfac = function NavigationControlDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationControlDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); }; }
|
|
50
|
+
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: NavigationControlDirective, selectors: [["", "wmNavigationControl", ""]], inputs: { disableMenuContext: "disableMenuContext", wmNavigationControl: "wmNavigationControl" }, standalone: true }); }
|
|
51
|
+
}
|
|
52
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationControlDirective, [{
|
|
53
|
+
type: i0.Directive,
|
|
54
|
+
args: [{
|
|
55
|
+
standalone: true,
|
|
56
|
+
selector: '[wmNavigationControl]'
|
|
57
|
+
}]
|
|
58
|
+
}], () => [{ type: i0__namespace.ElementRef }], { disableMenuContext: [{
|
|
59
|
+
type: i0.Input
|
|
60
|
+
}], wmNavigationControl: [{
|
|
61
|
+
type: i0.Input
|
|
62
|
+
}] }); })();
|
|
32
63
|
|
|
33
64
|
const registerProps$2 = () => {
|
|
65
|
+
i5.register('wm-nav-item', new Map([
|
|
66
|
+
['class', i5.PROP_STRING],
|
|
67
|
+
['name', i5.PROP_STRING],
|
|
68
|
+
['show', { value: true, ...i5.PROP_BOOLEAN }]
|
|
69
|
+
]));
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const DEFAULT_CLS$2 = 'app-nav-item';
|
|
73
|
+
const WIDGET_CONFIG$2 = { widgetType: 'wm-nav-item', hostClass: DEFAULT_CLS$2 };
|
|
74
|
+
class NavItemDirective extends i5.StylableComponent {
|
|
75
|
+
static { this.initializeProps = registerProps$2(); }
|
|
76
|
+
makeActive() {
|
|
77
|
+
const parentNode = this.nativeElement.parentNode;
|
|
78
|
+
$(parentNode).find('> li.active').removeClass('active');
|
|
79
|
+
if (this.isAttached) {
|
|
80
|
+
i2.addClass(this.nativeElement, 'active');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
constructor(inj, explicitContext) {
|
|
84
|
+
super(inj, WIDGET_CONFIG$2, explicitContext);
|
|
85
|
+
i5.styler(this.nativeElement, this, i5.APPLY_STYLES_TYPE.CONTAINER);
|
|
86
|
+
}
|
|
87
|
+
ngAfterViewInit() {
|
|
88
|
+
if (this.innerLink) {
|
|
89
|
+
this.innerLink.onActive(() => this.makeActive());
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
ngOnDetach() {
|
|
93
|
+
i2.removeClass(this.nativeElement, 'active', true);
|
|
94
|
+
super.ngOnDetach();
|
|
95
|
+
}
|
|
96
|
+
static { this.ɵfac = function NavItemDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavItemDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
97
|
+
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: NavItemDirective, selectors: [["", "wmNavItem", ""]], contentQueries: function NavItemDirective_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
98
|
+
i0__namespace.ɵɵcontentQuery(dirIndex, basic.AnchorComponent, 5);
|
|
99
|
+
} if (rf & 2) {
|
|
100
|
+
let _t;
|
|
101
|
+
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.innerLink = _t.first);
|
|
102
|
+
} }, hostBindings: function NavItemDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
103
|
+
i0__namespace.ɵɵlistener("click", function NavItemDirective_click_HostBindingHandler() { return ctx.makeActive(); })("keydown.enter", function NavItemDirective_keydown_enter_HostBindingHandler() { return ctx.makeActive(); });
|
|
104
|
+
} }, exportAs: ["navItemRef"], standalone: true, features: [i0__namespace.ɵɵProvidersFeature([
|
|
105
|
+
i5.provideAsWidgetRef(NavItemDirective)
|
|
106
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
|
107
|
+
}
|
|
108
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavItemDirective, [{
|
|
109
|
+
type: i0.Directive,
|
|
110
|
+
args: [{
|
|
111
|
+
standalone: true,
|
|
112
|
+
selector: '[wmNavItem]',
|
|
113
|
+
exportAs: 'navItemRef',
|
|
114
|
+
providers: [
|
|
115
|
+
i5.provideAsWidgetRef(NavItemDirective)
|
|
116
|
+
]
|
|
117
|
+
}]
|
|
118
|
+
}], () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
119
|
+
type: i0.Inject,
|
|
120
|
+
args: ['EXPLICIT_CONTEXT']
|
|
121
|
+
}, {
|
|
122
|
+
type: i0.Optional
|
|
123
|
+
}] }], { innerLink: [{
|
|
124
|
+
type: i0.ContentChild,
|
|
125
|
+
args: [basic.AnchorComponent]
|
|
126
|
+
}], makeActive: [{
|
|
127
|
+
type: i0.HostListener,
|
|
128
|
+
args: ['click']
|
|
129
|
+
}, {
|
|
130
|
+
type: i0.HostListener,
|
|
131
|
+
args: ['keydown.enter']
|
|
132
|
+
}] }); })();
|
|
133
|
+
|
|
134
|
+
const registerProps$1 = () => {
|
|
34
135
|
i5.register('wm-nav', new Map([
|
|
35
136
|
['autoclose', { value: 'always', ...i5.PROP_STRING }],
|
|
36
137
|
['autoopen', { value: 'never', ...i5.PROP_STRING }],
|
|
@@ -64,41 +165,41 @@
|
|
|
64
165
|
const _c4 = (a0, a1, a2) => ({ item: a0, index: a1, liRef: a2 });
|
|
65
166
|
const _c5 = (a0, a1) => ({ item: a0, index: a1 });
|
|
66
167
|
function NavComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
-
i0__namespace.ɵɵelement(0, "div",
|
|
168
|
+
i0__namespace.ɵɵelement(0, "div", 4);
|
|
68
169
|
} }
|
|
69
170
|
function NavComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
70
|
-
i0__namespace.ɵɵelement(0, "a",
|
|
171
|
+
i0__namespace.ɵɵelement(0, "a", 5);
|
|
71
172
|
} if (rf & 2) {
|
|
72
173
|
const item_r1 = ctx.item;
|
|
73
174
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
74
175
|
i0__namespace.ɵɵproperty("disableMenuContext", ctx_r1.disableMenuContext || !!item_r1.action)("wmNavigationControl", item_r1.link);
|
|
75
176
|
i0__namespace.ɵɵattribute("aria-current", item_r1._selected || !ctx_r1.isactive && item_r1.link === "#/" + ctx_r1.activePageName ? "page" : "");
|
|
76
177
|
} }
|
|
77
|
-
function
|
|
78
|
-
i0__namespace.ɵɵelementContainer(0,
|
|
178
|
+
function NavComponent_For_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
179
|
+
i0__namespace.ɵɵelementContainer(0, 7);
|
|
79
180
|
} if (rf & 2) {
|
|
80
181
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
81
182
|
const item_r4 = ctx_r2.$implicit;
|
|
82
|
-
const
|
|
183
|
+
const ɵ$index_9_r5 = ctx_r2.$index;
|
|
83
184
|
const liRef_r6 = i0__namespace.ɵɵreference(1);
|
|
84
185
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
85
186
|
const anchorRef_r7 = i0__namespace.ɵɵreference(3);
|
|
86
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", anchorRef_r7)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction3(3, _c4, item_r4,
|
|
187
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", anchorRef_r7)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction3(3, _c4, item_r4, ɵ$index_9_r5, liRef_r6))("ngTemplateOutletInjector", ctx_r1.createCustomInjector("anchor_" + liRef_r6.trackId, i0__namespace.ɵɵpureFunction3(7, _c4, item_r4, ɵ$index_9_r5, liRef_r6)));
|
|
87
188
|
} }
|
|
88
|
-
function
|
|
89
|
-
i0__namespace.ɵɵelementContainer(0,
|
|
189
|
+
function NavComponent_For_5_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
190
|
+
i0__namespace.ɵɵelementContainer(0, 7);
|
|
90
191
|
} if (rf & 2) {
|
|
91
192
|
const ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
92
193
|
const item_r4 = ctx_r2.$implicit;
|
|
93
|
-
const
|
|
194
|
+
const ɵ$index_9_r5 = ctx_r2.$index;
|
|
94
195
|
const liRef_r6 = i0__namespace.ɵɵreference(1);
|
|
95
196
|
const ctx_r1 = i0__namespace.ɵɵnextContext();
|
|
96
197
|
const menuRef_r8 = i0__namespace.ɵɵreference(1);
|
|
97
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", menuRef_r8)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(3, _c5, item_r4,
|
|
198
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", menuRef_r8)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction2(3, _c5, item_r4, ɵ$index_9_r5))("ngTemplateOutletInjector", ctx_r1.createCustomInjector("menu_" + liRef_r6.trackId, i0__namespace.ɵɵpureFunction2(6, _c5, item_r4, ɵ$index_9_r5)));
|
|
98
199
|
} }
|
|
99
|
-
function
|
|
100
|
-
i0__namespace.ɵɵelementStart(0, "li",
|
|
101
|
-
i0__namespace.ɵɵtemplate(2,
|
|
200
|
+
function NavComponent_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
201
|
+
i0__namespace.ɵɵelementStart(0, "li", 6, 2);
|
|
202
|
+
i0__namespace.ɵɵtemplate(2, NavComponent_For_5_Conditional_2_Template, 1, 11, "ng-container", 7)(3, NavComponent_For_5_Conditional_3_Template, 1, 9, "ng-container", 7);
|
|
102
203
|
i0__namespace.ɵɵelementEnd();
|
|
103
204
|
} if (rf & 2) {
|
|
104
205
|
const item_r4 = ctx.$implicit;
|
|
@@ -106,27 +207,27 @@
|
|
|
106
207
|
i0__namespace.ɵɵclassMapInterpolate1("app-nav-item ", item_r4.class, "");
|
|
107
208
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c3, item_r4._selected || !ctx_r1.isactive && item_r4.link === "#/" + ctx_r1.activePageName));
|
|
108
209
|
i0__namespace.ɵɵadvance(2);
|
|
109
|
-
i0__namespace.ɵɵ
|
|
210
|
+
i0__namespace.ɵɵconditional(!item_r4.children.length ? 2 : -1);
|
|
110
211
|
i0__namespace.ɵɵadvance();
|
|
111
|
-
i0__namespace.ɵɵ
|
|
212
|
+
i0__namespace.ɵɵconditional(item_r4.children.length ? 3 : -1);
|
|
112
213
|
} }
|
|
113
|
-
function
|
|
114
|
-
i0__namespace.ɵɵprojection(0
|
|
214
|
+
function NavComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
215
|
+
i0__namespace.ɵɵprojection(0);
|
|
115
216
|
} }
|
|
116
|
-
const DEFAULT_CLS$
|
|
117
|
-
const WIDGET_CONFIG$
|
|
217
|
+
const DEFAULT_CLS$1 = 'nav app-nav';
|
|
218
|
+
const WIDGET_CONFIG$1 = { widgetType: 'wm-nav', hostClass: DEFAULT_CLS$1 };
|
|
118
219
|
const NavClassMap = {
|
|
119
220
|
pills: 'nav-pills',
|
|
120
221
|
tabs: 'nav-tabs',
|
|
121
222
|
navbar: 'navbar-nav'
|
|
122
223
|
};
|
|
123
224
|
class NavComponent extends i5.DatasetAwareNavComponent {
|
|
124
|
-
static { this.initializeProps = registerProps$
|
|
225
|
+
static { this.initializeProps = registerProps$1(); }
|
|
125
226
|
get activePageName() {
|
|
126
227
|
return this.app.activePageName;
|
|
127
228
|
}
|
|
128
229
|
constructor(inj, cdRef, route, userDefinedExecutionContext, app, selectEventCB, explicitContext) {
|
|
129
|
-
super(inj, WIDGET_CONFIG$
|
|
230
|
+
super(inj, WIDGET_CONFIG$1, explicitContext);
|
|
130
231
|
this.cdRef = cdRef;
|
|
131
232
|
this.route = route;
|
|
132
233
|
this.userDefinedExecutionContext = userDefinedExecutionContext;
|
|
@@ -199,23 +300,25 @@
|
|
|
199
300
|
this.invokeEventCallback('select', { $event, $item: this.selecteditem });
|
|
200
301
|
}
|
|
201
302
|
static { this.ɵfac = function NavComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i1__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.UserDefinedExecutionContext), i0__namespace.ɵɵdirectiveInject(i2__namespace.App), i0__namespace.ɵɵinjectAttribute('select.event'), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
202
|
-
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NavComponent, selectors: [["", "wmNav", ""]], features: [i0__namespace.ɵɵProvidersFeature([
|
|
303
|
+
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NavComponent, selectors: [["", "wmNav", ""]], standalone: true, features: [i0__namespace.ɵɵProvidersFeature([
|
|
203
304
|
i5.provideAsWidgetRef(NavComponent)
|
|
204
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$3, ngContentSelectors: _c2, decls:
|
|
305
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵStandaloneFeature], attrs: _c0$3, ngContentSelectors: _c2, decls: 7, vars: 1, consts: [["menuRef", ""], ["anchorRef", ""], ["liRef", "navItemRef"], ["wmNavItem", "", 3, "ngClass", "class"], ["wmMenu", "", "dropdown", "", "type", "anchor", "autoclose.bind", "autoclose", "iconclass.bind", "item.icon", "autoopen.bind", "autoopen", "caption.bind", "item.label", "hint.bind", "item.hint", "dataset.bind", "item.children", "badgevalue.bind", "item.badge", "iconposition.bind", "iconposition", "showonhover.bind", "showonhover", "select.event", "onMenuItemSelect($event, widget, $item)"], ["wmAnchor", "", "caption.bind", "item.label", "hint.bind", "item.hint", "iconclass.bind", "item.icon", "badgevalue.bind", "item.badge", "iconposition.bind", "iconposition", "click.event", "onNavSelect($event, item)", 3, "disableMenuContext", "wmNavigationControl"], ["wmNavItem", "", 3, "ngClass"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", "ngTemplateOutletInjector"]], template: function NavComponent_Template(rf, ctx) { if (rf & 1) {
|
|
205
306
|
i0__namespace.ɵɵprojectionDef(_c1$3);
|
|
206
|
-
i0__namespace.ɵɵtemplate(0, NavComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, NavComponent_ng_template_2_Template, 1, 3, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor)
|
|
307
|
+
i0__namespace.ɵɵtemplate(0, NavComponent_ng_template_0_Template, 1, 0, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, NavComponent_ng_template_2_Template, 1, 3, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
|
|
308
|
+
i0__namespace.ɵɵrepeaterCreate(4, NavComponent_For_5_Template, 4, 8, "li", 3, i0__namespace.ɵɵrepeaterTrackByIdentity);
|
|
309
|
+
i0__namespace.ɵɵtemplate(6, NavComponent_Conditional_6_Template, 1, 0);
|
|
207
310
|
} if (rf & 2) {
|
|
208
311
|
i0__namespace.ɵɵadvance(4);
|
|
209
|
-
i0__namespace.ɵɵ
|
|
210
|
-
i0__namespace.ɵɵadvance();
|
|
211
|
-
i0__namespace.ɵɵ
|
|
212
|
-
} }, encapsulation: 2 }); }
|
|
312
|
+
i0__namespace.ɵɵrepeater(ctx.nodes);
|
|
313
|
+
i0__namespace.ɵɵadvance(2);
|
|
314
|
+
i0__namespace.ɵɵconditional(!ctx.nodes.length ? 6 : -1);
|
|
315
|
+
} }, dependencies: () => [i3.CommonModule, i3__namespace.NgClass, i3__namespace.NgTemplateOutlet, i5.WmComponentsModule, i3$1.BsDropdownModule, i3$1__namespace.BsDropdownDirective, basic.AnchorComponent, MenuComponent, NavItemDirective], encapsulation: 2 }); }
|
|
213
316
|
}
|
|
214
317
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavComponent, [{
|
|
215
318
|
type: i0.Component,
|
|
216
|
-
args: [{ selector: '[wmNav]', providers: [
|
|
319
|
+
args: [{ standalone: true, imports: [i3.CommonModule, i5.WmComponentsModule, i3$1.BsDropdownModule, basic.AnchorComponent, i0.forwardRef(() => MenuComponent), NavItemDirective,], selector: '[wmNav]', providers: [
|
|
217
320
|
i5.provideAsWidgetRef(NavComponent)
|
|
218
|
-
], template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n
|
|
321
|
+
], template: "<ng-template #menuRef let-item=\"item\" let-index=\"index\">\n <div wmMenu dropdown\n type=\"anchor\"\n autoclose.bind=\"autoclose\"\n iconclass.bind=\"item.icon\"\n autoopen.bind=\"autoopen\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n dataset.bind=\"item.children\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n showonhover.bind=\"showonhover\"\n select.event=\"onMenuItemSelect($event, widget, $item)\"></div>\n</ng-template>\n\n<ng-template #anchorRef let-item=\"item\" let-index=\"index\" let-liRef=\"liRef\">\n <a wmAnchor\n [disableMenuContext]=\"disableMenuContext || !!item.action\"\n [wmNavigationControl]=\"item.link\"\n [attr.aria-current]=\"item._selected || (!isactive && item.link === '#/' + activePageName) ? 'page' : ''\"\n caption.bind=\"item.label\"\n hint.bind=\"item.hint\"\n iconclass.bind=\"item.icon\"\n badgevalue.bind=\"item.badge\"\n iconposition.bind=\"iconposition\"\n click.event=\"onNavSelect($event, item)\"></a>\n</ng-template>\n\n@for (item of nodes; track item; let index = $index) {\n <li #liRef=\"navItemRef\"\n [ngClass]=\"{active: item._selected || (!isactive && item.link === '#/' + activePageName)}\"\n class=\"app-nav-item {{item.class}}\"\n wmNavItem>\n @if (!item.children.length) {\n <ng-container [ngTemplateOutlet]=\"anchorRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index, liRef: liRef}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('anchor_' + liRef.trackId, {item: item, index:index, liRef: liRef})\"\n ></ng-container>\n }\n @if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"menuRef\"\n [ngTemplateOutletContext]=\"{item: item, index:index}\"\n [ngTemplateOutletInjector]=\"createCustomInjector('menu_' + liRef.trackId, {item: item, index:index})\"\n ></ng-container>\n }\n </li>\n}\n\n@if (!nodes.length) {\n <ng-content select=\"[wmNavItem]\"></ng-content>\n}\n" }]
|
|
219
322
|
}], () => [{ type: i0__namespace.Injector }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.Router }, { type: i2__namespace.UserDefinedExecutionContext }, { type: i2__namespace.App }, { type: undefined, decorators: [{
|
|
220
323
|
type: i0.Attribute,
|
|
221
324
|
args: ['select.event']
|
|
@@ -225,556 +328,211 @@
|
|
|
225
328
|
}, {
|
|
226
329
|
type: i0.Optional
|
|
227
330
|
}] }], null); })();
|
|
228
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(NavComponent, { className: "NavComponent", filePath: "nav/nav.component.ts", lineNumber:
|
|
229
|
-
|
|
230
|
-
const registerProps$1 = () => {
|
|
231
|
-
i5.register('wm-menu', new Map([
|
|
232
|
-
['accessroles', { value: 'Everyone', ...i5.PROP_STRING }],
|
|
233
|
-
['animateitems', i5.PROP_STRING],
|
|
234
|
-
['autoclose', { value: 'always', ...i5.PROP_STRING }],
|
|
235
|
-
['autoopen', { value: 'never', ...i5.PROP_STRING }],
|
|
236
|
-
['caption', i5.PROP_STRING],
|
|
237
|
-
['class', i5.PROP_STRING],
|
|
238
|
-
['dataset', { value: 'Menu Item 1, Menu Item 2, Menu Item 3', ...i5.PROP_ANY }],
|
|
239
|
-
['hint', { value: '', ...i5.PROP_STRING }],
|
|
240
|
-
['arialabel', i5.PROP_STRING],
|
|
241
|
-
['isactive', i5.PROP_STRING],
|
|
242
|
-
['iconclass', i5.PROP_STRING],
|
|
243
|
-
['iconposition', { value: 'left', ...i5.PROP_STRING }],
|
|
244
|
-
['itemaction', i5.PROP_STRING],
|
|
245
|
-
['itemchildren', i5.PROP_STRING],
|
|
246
|
-
['itemclass', i5.PROP_STRING],
|
|
247
|
-
['itemicon', i5.PROP_STRING],
|
|
248
|
-
['itemlabel', i5.PROP_STRING],
|
|
249
|
-
['itemlink', i5.PROP_STRING],
|
|
250
|
-
['itemtarget', i5.PROP_STRING],
|
|
251
|
-
['linktarget', { value: '_self', ...i5.PROP_STRING }],
|
|
252
|
-
['menuclass', i5.PROP_STRING],
|
|
253
|
-
['menulayout', i5.PROP_STRING],
|
|
254
|
-
['menuposition', i5.PROP_STRING],
|
|
255
|
-
['name', i5.PROP_STRING],
|
|
256
|
-
['orderby', i5.PROP_STRING],
|
|
257
|
-
['shortcutkey', i5.PROP_STRING],
|
|
258
|
-
['show', { value: true, ...i5.PROP_BOOLEAN }],
|
|
259
|
-
['showonhover', { value: false, ...i5.PROP_BOOLEAN }],
|
|
260
|
-
['tabindex', { value: 0, ...i5.PROP_NUMBER }],
|
|
261
|
-
['type', { value: 'menu', ...i5.PROP_STRING }],
|
|
262
|
-
['userrole', i5.PROP_STRING]
|
|
263
|
-
]));
|
|
264
|
-
};
|
|
331
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(NavComponent, { className: "NavComponent", filePath: "nav/nav.component.ts", lineNumber: 34 }); })();
|
|
265
332
|
|
|
266
|
-
const _c0$2 = ["
|
|
267
|
-
const _c1$2 = a0 =>
|
|
268
|
-
function
|
|
269
|
-
i0__namespace.ɵɵ
|
|
270
|
-
i0__namespace.ɵɵelement(1, "span", 5);
|
|
271
|
-
i0__namespace.ɵɵelementEnd();
|
|
333
|
+
const _c0$2 = ["wmMenuDropdownItem", ""];
|
|
334
|
+
const _c1$2 = a0 => ({ item: a0 });
|
|
335
|
+
function MenuDropdownItemComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
336
|
+
i0__namespace.ɵɵelement(0, "span");
|
|
272
337
|
} if (rf & 2) {
|
|
273
338
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
274
|
-
i0__namespace.ɵɵclassMapInterpolate1("
|
|
275
|
-
i0__namespace.ɵɵattribute("aria-label", ctx_r0.arialabel || "Menu");
|
|
276
|
-
i0__namespace.ɵɵadvance();
|
|
277
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c1$2, ctx_r0.menuCaret));
|
|
339
|
+
i0__namespace.ɵɵclassMapInterpolate1("pull-right fa caret ", ctx_r0.menualign, "");
|
|
278
340
|
} }
|
|
279
|
-
function
|
|
280
|
-
i0__namespace.ɵɵelement(0, "
|
|
341
|
+
function MenuDropdownItemComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
342
|
+
i0__namespace.ɵɵelement(0, "span", 4);
|
|
281
343
|
} if (rf & 2) {
|
|
282
344
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
283
|
-
i0__namespace.ɵɵ
|
|
284
|
-
i0__namespace.ɵɵadvance();
|
|
285
|
-
i0__namespace.ɵɵproperty("textContent", ctx_r0.caption);
|
|
286
|
-
i0__namespace.ɵɵadvance();
|
|
287
|
-
i0__namespace.ɵɵclassMapInterpolate1("pull-right caret fa ", ctx_r0.menuCaret, "");
|
|
345
|
+
i0__namespace.ɵɵproperty("textContent", ctx_r0.item.badge);
|
|
288
346
|
} }
|
|
289
|
-
function
|
|
290
|
-
i0__namespace.ɵɵ
|
|
291
|
-
i0__namespace.ɵɵelementStart(1, "a", 7);
|
|
292
|
-
i0__namespace.ɵɵelement(2, "span", 5);
|
|
293
|
-
i0__namespace.ɵɵelementEnd();
|
|
294
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
347
|
+
function MenuDropdownItemComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
348
|
+
i0__namespace.ɵɵelementContainer(0, 5);
|
|
295
349
|
} if (rf & 2) {
|
|
296
350
|
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
297
|
-
i0__namespace.ɵɵ
|
|
298
|
-
i0__namespace.ɵɵ
|
|
299
|
-
i0__namespace.ɵɵattribute("aria-label", ctx_r0.arialabel || "Menu");
|
|
300
|
-
i0__namespace.ɵɵadvance();
|
|
301
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c1$2, ctx_r0.menuCaret));
|
|
351
|
+
const nestedMenuDropdown_r2 = i0__namespace.ɵɵreference(8);
|
|
352
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", nestedMenuDropdown_r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c1$2, ctx_r0.item));
|
|
302
353
|
} }
|
|
303
|
-
function
|
|
304
|
-
i0__namespace.ɵɵelement(0, "ul",
|
|
354
|
+
function MenuDropdownItemComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
355
|
+
i0__namespace.ɵɵelement(0, "ul", 6);
|
|
305
356
|
} if (rf & 2) {
|
|
306
|
-
const
|
|
307
|
-
i0__namespace.ɵɵ
|
|
308
|
-
i0__namespace.ɵɵproperty("items", ctx_r0.nodes)("ngClass", ctx_r0.menulayout);
|
|
357
|
+
const item_r3 = ctx.item;
|
|
358
|
+
i0__namespace.ɵɵproperty("items", item_r3.children);
|
|
309
359
|
} }
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
MOVE_DOWN: 'DOWN-ARROW',
|
|
315
|
-
ON_ENTER: 'ENTER',
|
|
316
|
-
ON_MOUSE_ENTER: 'MOUSE-ENTER',
|
|
317
|
-
ON_MOUSE_LEAVE: 'MOUSE-LEAVE',
|
|
318
|
-
ON_TAB: 'TAB',
|
|
319
|
-
ON_SHIFT_TAB: 'SHIFT-TAB',
|
|
320
|
-
ON_ESCAPE: 'ESC'
|
|
321
|
-
};
|
|
322
|
-
const MENU_POSITION = {
|
|
323
|
-
UP_LEFT: 'up,left',
|
|
324
|
-
UP_RIGHT: 'up,right',
|
|
325
|
-
DOWN_LEFT: 'down,left',
|
|
326
|
-
DOWN_RIGHT: 'down,right',
|
|
327
|
-
INLINE: 'inline'
|
|
328
|
-
};
|
|
329
|
-
const POSITION = {
|
|
330
|
-
DOWN_RIGHT: 'down,right',
|
|
331
|
-
DOWN_LEFT: 'down,left',
|
|
332
|
-
UP_RIGHT: 'up,right',
|
|
333
|
-
UP_LEFT: 'up,left',
|
|
334
|
-
INLINE: 'inline'
|
|
335
|
-
};
|
|
336
|
-
const CARET_CLS = {
|
|
337
|
-
UP: 'fa-caret-up',
|
|
338
|
-
DOWN: 'fa-caret-down'
|
|
339
|
-
};
|
|
340
|
-
const PULL_CLS = {
|
|
341
|
-
LEFT: 'pull-left',
|
|
342
|
-
RIGHT: 'pull-right'
|
|
343
|
-
};
|
|
344
|
-
const AUTO_OPEN = {
|
|
345
|
-
ACTIVE_PAGE: 'activepage',
|
|
346
|
-
ALWAYS: 'always'
|
|
360
|
+
const menuAlignClass = {
|
|
361
|
+
'pull-right': 'fa-caret-left',
|
|
362
|
+
'dropinline-menu': 'fa-caret-down',
|
|
363
|
+
'pull-left': 'fa-caret-right'
|
|
347
364
|
};
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
this.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
365
|
+
const MENU_LAYOUT_TYPE = {
|
|
366
|
+
HORIZONTAL: 'horizontal'};
|
|
367
|
+
class MenuDropdownItemComponent {
|
|
368
|
+
constructor(app, menuRef, userDefinedExecutionContext, parentNav, elRef) {
|
|
369
|
+
this.app = app;
|
|
370
|
+
this.menuRef = menuRef;
|
|
371
|
+
this.userDefinedExecutionContext = userDefinedExecutionContext;
|
|
372
|
+
this.parentNav = parentNav;
|
|
373
|
+
this.onSelect = ($event, item) => {
|
|
374
|
+
if (this.nativeElement !== $($event.target).closest('.app-menu-item').get(0)) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
// prevent event event propagation if auto close is outside click.
|
|
378
|
+
if (this.menuRef.autoclose === 'outsideClick') {
|
|
379
|
+
$event.stopPropagation();
|
|
380
|
+
}
|
|
381
|
+
$event.preventDefault();
|
|
382
|
+
const args = { $event, $item: item };
|
|
383
|
+
this.menuRef.onMenuItemSelect(args);
|
|
384
|
+
const selectedItem = lodashEs.clone(item);
|
|
385
|
+
selectedItem.target = selectedItem.target || this.menuRef.linktarget;
|
|
386
|
+
// Trigger the action associated with active item
|
|
387
|
+
i2.triggerItemAction(this, selectedItem);
|
|
388
|
+
};
|
|
389
|
+
this.nativeElement = elRef.nativeElement;
|
|
390
|
+
i2.addClass(this.nativeElement, 'app-menu-item');
|
|
391
|
+
this.menualign = menuAlignClass[this.menuRef.menualign] || menuAlignClass['pull-left'];
|
|
392
|
+
}
|
|
393
|
+
ngOnInit() {
|
|
394
|
+
// add active class to the item only if it is in nav component.
|
|
395
|
+
if (this.parentNav) {
|
|
396
|
+
if (i5.hasLinkToCurrentPage([this.item], this.menuRef.route.url)) {
|
|
397
|
+
// add active class to the li, if the menu item's link is same as the current page name.
|
|
398
|
+
i2.addClass(this.nativeElement, 'active');
|
|
399
|
+
}
|
|
400
|
+
this.highlightActiveLinkSubscription = this.app.subscribe("highlightActiveLink", (data) => {
|
|
401
|
+
i2.toggleClass(this.nativeElement, 'active', i5.hasLinkToCurrentPage([this.item], this.menuRef.route.url));
|
|
356
402
|
});
|
|
357
403
|
}
|
|
358
|
-
i2.$appDigest();
|
|
359
404
|
}
|
|
360
|
-
|
|
361
|
-
this.$element.find('li').removeClass('open');
|
|
362
|
-
this._selectFirstItem = false;
|
|
363
|
-
// reset the menuposition when dropdown is closed
|
|
364
|
-
this.menuposition = this._menuposition ? this._menuposition : MENU_POSITION.DOWN_RIGHT;
|
|
365
|
-
this.setMenuPosition();
|
|
366
|
-
i2.$appDigest();
|
|
367
|
-
}
|
|
368
|
-
onKeyDown($event, eventAction) {
|
|
405
|
+
getInitialKeyMovements() {
|
|
369
406
|
const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
|
|
370
|
-
if (this.
|
|
371
|
-
KEY_MOVEMENTS.MOVE_UP = '
|
|
372
|
-
KEY_MOVEMENTS.
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
KEY_MOVEMENTS.MOVE_UP = 'DOWN-ARROW';
|
|
376
|
-
KEY_MOVEMENTS.MOVE_DOWN = 'UP-ARROW';
|
|
377
|
-
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
378
|
-
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
379
|
-
}
|
|
380
|
-
else if (this.menuposition === MENU_POSITION.DOWN_LEFT) {
|
|
381
|
-
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
382
|
-
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
407
|
+
if (this.menuRef.menulayout === MENU_LAYOUT_TYPE.HORIZONTAL) {
|
|
408
|
+
KEY_MOVEMENTS.MOVE_UP = 'LEFT-ARROW';
|
|
409
|
+
KEY_MOVEMENTS.MOVE_LEFT = 'UP-ARROW';
|
|
410
|
+
KEY_MOVEMENTS.MOVE_RIGHT = 'DOWN-ARROW';
|
|
411
|
+
KEY_MOVEMENTS.MOVE_DOWN = 'RIGHT-ARROW';
|
|
383
412
|
}
|
|
384
|
-
|
|
385
|
-
if (
|
|
386
|
-
|
|
387
|
-
|
|
413
|
+
else {
|
|
414
|
+
if (this.menuRef.menuposition === MENU_POSITION.DOWN_LEFT || this.menuRef.menuposition === MENU_POSITION.UP_LEFT) {
|
|
415
|
+
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
416
|
+
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
388
417
|
}
|
|
389
|
-
else {
|
|
390
|
-
|
|
418
|
+
else if (this.menuRef.menuposition === 'inline') {
|
|
419
|
+
KEY_MOVEMENTS.MOVE_UP = 'LEFT-ARROW';
|
|
420
|
+
KEY_MOVEMENTS.MOVE_LEFT = 'UP-ARROW';
|
|
421
|
+
KEY_MOVEMENTS.MOVE_RIGHT = 'DOWN-ARROW';
|
|
422
|
+
KEY_MOVEMENTS.MOVE_DOWN = 'RIGHT-ARROW';
|
|
391
423
|
}
|
|
392
424
|
}
|
|
393
|
-
|
|
394
|
-
|
|
425
|
+
return KEY_MOVEMENTS;
|
|
426
|
+
}
|
|
427
|
+
onKeyDown($event, eventAction) {
|
|
428
|
+
const $li = $(this.nativeElement);
|
|
429
|
+
const $ul = $(this.nativeElement).closest('ul.dropdown-menu');
|
|
430
|
+
const $parentUl = this.menuRef.$element.find('> ul.dropdown-menu');
|
|
431
|
+
const ARROW_KEYS = ['LEFT-ARROW', 'RIGHT-ARROW', 'UP-ARROW', 'DOWN-ARROW'];
|
|
432
|
+
const KEY_MOVEMENTS = this.getInitialKeyMovements();
|
|
433
|
+
if (lodashEs.includes(ARROW_KEYS, eventAction)) {
|
|
434
|
+
// preventing from page scroll when up/down arrow is pressed, in case of menu is opened.
|
|
435
|
+
$event.preventDefault();
|
|
395
436
|
}
|
|
396
|
-
|
|
397
|
-
|
|
437
|
+
if ((eventAction === KEY_MOVEMENTS.ON_TAB && $parentUl.children().last()[0] === this.nativeElement)
|
|
438
|
+
|| (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $parentUl.children().first()[0] === this.nativeElement)
|
|
439
|
+
|| eventAction === KEY_MOVEMENTS.ON_ESCAPE) {
|
|
440
|
+
/*closing all the children elements when
|
|
441
|
+
* 1. Tab is clicked on the last $element
|
|
442
|
+
* 2. Shift Tab is clicked on the first $element
|
|
443
|
+
* 3. When Escape key is clicked*/
|
|
444
|
+
$event.preventDefault();
|
|
445
|
+
this.menuRef.bsDropdown.hide();
|
|
398
446
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
this.menuCaret = 'fa-caret-down';
|
|
410
|
-
this._selectFirstItem = false;
|
|
411
|
-
if (parentNav) {
|
|
412
|
-
this.disableMenuContext = !!parentNav.disableMenuContext;
|
|
447
|
+
else if ((eventAction === KEY_MOVEMENTS.ON_ENTER && !this.item.link) || eventAction === KEY_MOVEMENTS.MOVE_RIGHT) {
|
|
448
|
+
// when there is no link for the menu, on enter open the inner child elements and focus the first $element
|
|
449
|
+
$event.stopPropagation();
|
|
450
|
+
if (this.item.children.length) {
|
|
451
|
+
$li.toggleClass('open');
|
|
452
|
+
$li.find('li').first().find('> a').focus();
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
$li.find('> a').focus();
|
|
456
|
+
}
|
|
413
457
|
}
|
|
414
|
-
else
|
|
415
|
-
|
|
458
|
+
else if (eventAction === KEY_MOVEMENTS.MOVE_LEFT
|
|
459
|
+
|| (eventAction === KEY_MOVEMENTS.ON_TAB && $ul.children().last()[0] === this.nativeElement)
|
|
460
|
+
|| (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $ul.children().first()[0] === this.nativeElement)) {
|
|
461
|
+
if ($parentUl[0] !== $ul[0]) {
|
|
462
|
+
const $parentItem = $ul.parent();
|
|
463
|
+
$parentItem.toggleClass('open').find('li.open').removeClass('open');
|
|
464
|
+
$parentItem.find('> a').focus();
|
|
465
|
+
$event.preventDefault();
|
|
466
|
+
$event.stopPropagation();
|
|
467
|
+
}
|
|
416
468
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
i2.addClass(this.nativeElement.querySelector('.dropdown-toggle'), 'active');
|
|
422
|
-
}
|
|
423
|
-
// If menu widget is inside nav widget then dont check for item isactive property because these will be handled form nav widget.
|
|
424
|
-
if (this.parentNav) {
|
|
425
|
-
return;
|
|
426
|
-
}
|
|
427
|
-
let itemFound = false;
|
|
428
|
-
const getItem = (nodes) => {
|
|
429
|
-
lodashEs.forEach(nodes, (item) => {
|
|
430
|
-
if (itemFound) {
|
|
431
|
-
return;
|
|
432
|
-
}
|
|
433
|
-
if (item.isactive) {
|
|
434
|
-
itemFound = true;
|
|
435
|
-
this.onMenuItemSelect({ $event: {}, $item: item });
|
|
436
|
-
// Trigger the action associated with active item
|
|
437
|
-
i2.triggerItemAction(this, item);
|
|
438
|
-
return false;
|
|
439
|
-
}
|
|
440
|
-
if (!lodashEs.isEmpty(item.children)) {
|
|
441
|
-
getItem(item.children);
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
};
|
|
445
|
-
getItem(this.nodes);
|
|
469
|
+
else if (eventAction === KEY_MOVEMENTS.MOVE_UP) {
|
|
470
|
+
if ($parentUl[0] !== $ul[0] || $parentUl.find('> li').first()[0] !== this.nativeElement) {
|
|
471
|
+
$event.stopPropagation();
|
|
472
|
+
$li.prev().find('> a').focus();
|
|
446
473
|
}
|
|
447
|
-
});
|
|
448
|
-
this.registerDestroyListener(() => datasetSubscription.unsubscribe());
|
|
449
|
-
}
|
|
450
|
-
resetNodes() {
|
|
451
|
-
super.resetNodes();
|
|
452
|
-
// open the menu if any of its menu items has link to current page and if autoopen value is 'active page'
|
|
453
|
-
if ((this.autoopen === AUTO_OPEN.ACTIVE_PAGE && i5.hasLinkToCurrentPage(this.nodes, this.route.url)) || this.autoopen === AUTO_OPEN.ALWAYS) {
|
|
454
|
-
this.bsDropdown.show();
|
|
455
474
|
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
return;
|
|
475
|
+
else if (eventAction === KEY_MOVEMENTS.MOVE_DOWN) {
|
|
476
|
+
$event.stopPropagation();
|
|
477
|
+
if ($parentUl.find('> li').last()[0] === this.nativeElement
|
|
478
|
+
&& (this.menuRef.menulayout !== MENU_LAYOUT_TYPE.HORIZONTAL
|
|
479
|
+
&& this.menuRef.menuposition === MENU_POSITION.UP_RIGHT
|
|
480
|
+
|| this.menuRef.menuposition === MENU_POSITION.UP_LEFT)) {
|
|
481
|
+
this.menuRef.bsDropdown.hide();
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
$li.next().find('> a').focus();
|
|
485
|
+
}
|
|
468
486
|
}
|
|
469
|
-
if (
|
|
470
|
-
this.
|
|
471
|
-
this.autoclose = nv;
|
|
487
|
+
else if (eventAction === KEY_MOVEMENTS.ON_ENTER) {
|
|
488
|
+
this.onSelect($event, this.item);
|
|
472
489
|
}
|
|
473
490
|
else {
|
|
474
|
-
|
|
491
|
+
$event.stopPropagation();
|
|
475
492
|
}
|
|
476
493
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
i2.removeClass(this.nativeElement, 'dropup');
|
|
481
|
-
this.menualign = PULL_CLS.LEFT;
|
|
482
|
-
this.menuCaret = CARET_CLS.DOWN;
|
|
483
|
-
break;
|
|
484
|
-
case POSITION.DOWN_LEFT:
|
|
485
|
-
i2.removeClass(this.nativeElement, 'dropup');
|
|
486
|
-
this.menualign = PULL_CLS.RIGHT;
|
|
487
|
-
this.menuCaret = CARET_CLS.DOWN;
|
|
488
|
-
break;
|
|
489
|
-
case POSITION.UP_LEFT:
|
|
490
|
-
i2.addClass(this.nativeElement, 'dropup');
|
|
491
|
-
this.menualign = PULL_CLS.RIGHT;
|
|
492
|
-
this.menuCaret = CARET_CLS.UP;
|
|
493
|
-
break;
|
|
494
|
-
case POSITION.UP_RIGHT:
|
|
495
|
-
i2.addClass(this.nativeElement, 'dropup');
|
|
496
|
-
this.menualign = PULL_CLS.LEFT;
|
|
497
|
-
this.menuCaret = CARET_CLS.UP;
|
|
498
|
-
break;
|
|
499
|
-
case POSITION.INLINE:
|
|
500
|
-
this.menualign = 'dropinline-menu';
|
|
501
|
-
break;
|
|
494
|
+
ngOnDestroy() {
|
|
495
|
+
if (this.highlightActiveLinkSubscription) {
|
|
496
|
+
this.highlightActiveLinkSubscription();
|
|
502
497
|
}
|
|
503
498
|
}
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
i0__namespace.ɵɵ
|
|
516
|
-
|
|
517
|
-
i5.provideAsWidgetRef(MenuComponent)
|
|
518
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature], attrs: _c0$2, decls: 6, vars: 2, consts: [["menuTemplate", ""], ["innerTemplate", ""], [4, "ngIf", "ngIfElse"], ["role", "menubar", "wmMenuDropdown", "", 3, "items", "ngClass", "class", 4, "dropdownMenu"], ["wmButton", "", "dropdownToggle", "", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition"], [1, "pull-right", "caret", "fa", 3, "ngClass"], [1, "caption", 3, "textContent"], ["wmAnchor", "", "dropdownToggle", "", "href", "javascript:void(0);", "role", "button", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition", "badgevalue.bind", "badgevalue"], ["role", "menubar", "wmMenuDropdown", "", 3, "items", "ngClass"]], template: function MenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
519
|
-
i0__namespace.ɵɵtemplate(0, MenuComponent_ng_template_0_Template, 2, 7, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, MenuComponent_ng_template_2_Template, 3, 7, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor)(4, MenuComponent_ng_container_4_Template, 3, 7, "ng-container", 2)(5, MenuComponent_ul_5_Template, 1, 5, "ul", 3);
|
|
499
|
+
static { this.ɵfac = function MenuDropdownItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuDropdownItemComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.App), i0__namespace.ɵɵdirectiveInject(MenuComponent), i0__namespace.ɵɵdirectiveInject(i2__namespace.UserDefinedExecutionContext), i0__namespace.ɵɵdirectiveInject(NavComponent, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); }; }
|
|
500
|
+
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MenuDropdownItemComponent, selectors: [["li", "wmMenuDropdownItem", ""]], hostBindings: function MenuDropdownItemComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
501
|
+
i0__namespace.ɵɵlistener("keydown.tab", function MenuDropdownItemComponent_keydown_tab_HostBindingHandler($event) { return ctx.onKeyDown($event, "TAB"); })("keydown.shift.tab", function MenuDropdownItemComponent_keydown_shift_tab_HostBindingHandler($event) { return ctx.onKeyDown($event, "SHIFT-TAB"); })("keydown.escape", function MenuDropdownItemComponent_keydown_escape_HostBindingHandler($event) { return ctx.onKeyDown($event, "ESC"); })("keydown.enter", function MenuDropdownItemComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); })("keydown.arrowup", function MenuDropdownItemComponent_keydown_arrowup_HostBindingHandler($event) { return ctx.onKeyDown($event, "UP-ARROW"); })("keydown.arrowdown", function MenuDropdownItemComponent_keydown_arrowdown_HostBindingHandler($event) { return ctx.onKeyDown($event, "DOWN-ARROW"); })("keydown.arrowright", function MenuDropdownItemComponent_keydown_arrowright_HostBindingHandler($event) { return ctx.onKeyDown($event, "RIGHT-ARROW"); })("keydown.arrowleft", function MenuDropdownItemComponent_keydown_arrowleft_HostBindingHandler($event) { return ctx.onKeyDown($event, "LEFT-ARROW"); })("click", function MenuDropdownItemComponent_click_HostBindingHandler($event) { return ctx.onSelect($event, ctx.item); });
|
|
502
|
+
} }, inputs: { item: "item" }, standalone: true, features: [i0__namespace.ɵɵStandaloneFeature], attrs: _c0$2, decls: 9, vars: 10, consts: [["nestedMenuDropdown", ""], ["href", "javascript:void(0);", 3, "title", "wmNavigationControl", "disableMenuContext"], [3, "class"], [1, "anchor-caption"], [1, "badge", "pull-right", 3, "textContent"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["wmMenuDropdown", "", 3, "items"]], template: function MenuDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
503
|
+
i0__namespace.ɵɵelementStart(0, "a", 1);
|
|
504
|
+
i0__namespace.ɵɵtemplate(1, MenuDropdownItemComponent_Conditional_1_Template, 1, 3, "span", 2);
|
|
505
|
+
i0__namespace.ɵɵelement(2, "i");
|
|
506
|
+
i0__namespace.ɵɵelementStart(3, "span", 3);
|
|
507
|
+
i0__namespace.ɵɵtext(4);
|
|
508
|
+
i0__namespace.ɵɵelementEnd();
|
|
509
|
+
i0__namespace.ɵɵtemplate(5, MenuDropdownItemComponent_Conditional_5_Template, 1, 1, "span", 4);
|
|
510
|
+
i0__namespace.ɵɵelementEnd();
|
|
511
|
+
i0__namespace.ɵɵtemplate(6, MenuDropdownItemComponent_Conditional_6_Template, 1, 4, "ng-container", 5)(7, MenuDropdownItemComponent_ng_template_7_Template, 1, 1, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
520
512
|
} if (rf & 2) {
|
|
521
|
-
|
|
522
|
-
i0__namespace.ɵɵadvance(
|
|
523
|
-
i0__namespace.ɵɵ
|
|
524
|
-
|
|
513
|
+
i0__namespace.ɵɵproperty("title", ctx.item.label)("wmNavigationControl", ctx.item.link)("disableMenuContext", ctx.menuRef.disableMenuContext || !!ctx.item.action);
|
|
514
|
+
i0__namespace.ɵɵadvance();
|
|
515
|
+
i0__namespace.ɵɵconditional(ctx.item.children.length ? 1 : -1);
|
|
516
|
+
i0__namespace.ɵɵadvance();
|
|
517
|
+
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx.item.icon, "");
|
|
518
|
+
i0__namespace.ɵɵadvance(2);
|
|
519
|
+
i0__namespace.ɵɵtextInterpolate(ctx.item.label);
|
|
520
|
+
i0__namespace.ɵɵadvance();
|
|
521
|
+
i0__namespace.ɵɵconditional(ctx.item.badge ? 5 : -1);
|
|
522
|
+
i0__namespace.ɵɵadvance();
|
|
523
|
+
i0__namespace.ɵɵconditional(ctx.item.children.length ? 6 : -1);
|
|
524
|
+
} }, dependencies: () => [i3.CommonModule, i3__namespace.NgTemplateOutlet, i5.WmComponentsModule, i5__namespace.TextContentDirective, MenuDropdownComponent, NavigationControlDirective], encapsulation: 2 }); }
|
|
525
525
|
}
|
|
526
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
526
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MenuDropdownItemComponent, [{
|
|
527
527
|
type: i0.Component,
|
|
528
|
-
args: [{ selector: '[
|
|
529
|
-
|
|
530
|
-
], template: "<ng-template #menuTemplate>\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n</ng-template>\n\n<ng-template #innerTemplate>\n <i class=\"app-icon {{iconclass}}\"></i>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n<ng-container *ngIf=\"type === 'anchor'; else menuTemplate\">\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n</ng-container>\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\n wmMenuDropdown></ul>\n" }]
|
|
531
|
-
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Router }, { type: i2__namespace.UserDefinedExecutionContext }, { type: i2__namespace.App }, { type: i2$1__namespace.BsDropdownDirective, decorators: [{
|
|
532
|
-
type: i0.Self
|
|
533
|
-
}, {
|
|
534
|
-
type: i0.Optional
|
|
535
|
-
}] }, { type: NavComponent, decorators: [{
|
|
536
|
-
type: i0.Optional
|
|
537
|
-
}] }, { type: undefined, decorators: [{
|
|
538
|
-
type: i0.Attribute,
|
|
539
|
-
args: ['select.event']
|
|
540
|
-
}] }, { type: undefined, decorators: [{
|
|
541
|
-
type: i0.Inject,
|
|
542
|
-
args: ['EXPLICIT_CONTEXT']
|
|
543
|
-
}, {
|
|
528
|
+
args: [{ standalone: true, imports: [i3.CommonModule, i5.WmComponentsModule, i0.forwardRef(() => MenuDropdownComponent), NavigationControlDirective], selector: 'li[wmMenuDropdownItem]', template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n @if (item.children.length) {\n <span class=\"pull-right fa caret {{menualign}}\"></span>\n }\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n @if (item.badge) {\n <span class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n }\n</a>\n@if (item.children.length) {\n <ng-container [ngTemplateOutlet]=\"nestedMenuDropdown\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n}\n\n<ng-template #nestedMenuDropdown let-item=\"item\">\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n</ng-template>\n" }]
|
|
529
|
+
}], () => [{ type: i2__namespace.App }, { type: MenuComponent }, { type: i2__namespace.UserDefinedExecutionContext }, { type: NavComponent, decorators: [{
|
|
544
530
|
type: i0.Optional
|
|
545
|
-
}] }], {
|
|
546
|
-
type: i0.
|
|
547
|
-
args: ['onShown']
|
|
548
|
-
}], onHide: [{
|
|
549
|
-
type: i0.HostListener,
|
|
550
|
-
args: ['onHidden']
|
|
531
|
+
}] }, { type: i0__namespace.ElementRef }], { item: [{
|
|
532
|
+
type: i0.Input
|
|
551
533
|
}], onKeyDown: [{
|
|
552
534
|
type: i0.HostListener,
|
|
553
|
-
args: ['keydown.
|
|
554
|
-
}, {
|
|
555
|
-
type: i0.HostListener,
|
|
556
|
-
args: ['mouseenter', ['$event', '"MOUSE-ENTER"']]
|
|
557
|
-
}, {
|
|
558
|
-
type: i0.HostListener,
|
|
559
|
-
args: ['mouseleave', ['$event', '"MOUSE-LEAVE"']]
|
|
560
|
-
}, {
|
|
561
|
-
type: i0.HostListener,
|
|
562
|
-
args: ['keydown.arrowdown', ['$event', '"DOWN-ARROW"']]
|
|
563
|
-
}, {
|
|
564
|
-
type: i0.HostListener,
|
|
565
|
-
args: ['keydown.arrowright', ['$event', '"RIGHT-ARROW"']]
|
|
566
|
-
}, {
|
|
567
|
-
type: i0.HostListener,
|
|
568
|
-
args: ['keydown.arrowleft', ['$event', '"LEFT-ARROW"']]
|
|
569
|
-
}, {
|
|
570
|
-
type: i0.HostListener,
|
|
571
|
-
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
572
|
-
}] }); })();
|
|
573
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuComponent, { className: "MenuComponent", filePath: "menu.component.ts", lineNumber: 89 }); })();
|
|
574
|
-
|
|
575
|
-
const _c0$1 = ["wmMenuDropdownItem", ""];
|
|
576
|
-
const _c1$1 = a0 => ({ item: a0 });
|
|
577
|
-
function MenuDropdownItemComponent_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
578
|
-
i0__namespace.ɵɵelement(0, "span");
|
|
579
|
-
} if (rf & 2) {
|
|
580
|
-
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
581
|
-
i0__namespace.ɵɵclassMapInterpolate1("pull-right fa caret ", ctx_r0.menualign, "");
|
|
582
|
-
} }
|
|
583
|
-
function MenuDropdownItemComponent_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
584
|
-
i0__namespace.ɵɵelement(0, "span", 6);
|
|
585
|
-
} if (rf & 2) {
|
|
586
|
-
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
587
|
-
i0__namespace.ɵɵproperty("textContent", ctx_r0.item.badge);
|
|
588
|
-
} }
|
|
589
|
-
function MenuDropdownItemComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
590
|
-
i0__namespace.ɵɵelementContainer(0, 7);
|
|
591
|
-
} if (rf & 2) {
|
|
592
|
-
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
593
|
-
const nestedMenuDropdown_r2 = i0__namespace.ɵɵreference(8);
|
|
594
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", nestedMenuDropdown_r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c1$1, ctx_r0.item));
|
|
595
|
-
} }
|
|
596
|
-
function MenuDropdownItemComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
|
|
597
|
-
i0__namespace.ɵɵelement(0, "ul", 8);
|
|
598
|
-
} if (rf & 2) {
|
|
599
|
-
const item_r3 = ctx.item;
|
|
600
|
-
i0__namespace.ɵɵproperty("items", item_r3.children);
|
|
601
|
-
} }
|
|
602
|
-
const menuAlignClass = {
|
|
603
|
-
'pull-right': 'fa-caret-left',
|
|
604
|
-
'dropinline-menu': 'fa-caret-down',
|
|
605
|
-
'pull-left': 'fa-caret-right'
|
|
606
|
-
};
|
|
607
|
-
const MENU_LAYOUT_TYPE = {
|
|
608
|
-
HORIZONTAL: 'horizontal'};
|
|
609
|
-
class MenuDropdownItemComponent {
|
|
610
|
-
constructor(app, menuRef, userDefinedExecutionContext, parentNav, elRef) {
|
|
611
|
-
this.app = app;
|
|
612
|
-
this.menuRef = menuRef;
|
|
613
|
-
this.userDefinedExecutionContext = userDefinedExecutionContext;
|
|
614
|
-
this.parentNav = parentNav;
|
|
615
|
-
this.onSelect = ($event, item) => {
|
|
616
|
-
if (this.nativeElement !== $($event.target).closest('.app-menu-item').get(0)) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
// prevent event event propagation if auto close is outside click.
|
|
620
|
-
if (this.menuRef.autoclose === 'outsideClick') {
|
|
621
|
-
$event.stopPropagation();
|
|
622
|
-
}
|
|
623
|
-
$event.preventDefault();
|
|
624
|
-
const args = { $event, $item: item };
|
|
625
|
-
this.menuRef.onMenuItemSelect(args);
|
|
626
|
-
const selectedItem = lodashEs.clone(item);
|
|
627
|
-
selectedItem.target = selectedItem.target || this.menuRef.linktarget;
|
|
628
|
-
// Trigger the action associated with active item
|
|
629
|
-
i2.triggerItemAction(this, selectedItem);
|
|
630
|
-
};
|
|
631
|
-
this.nativeElement = elRef.nativeElement;
|
|
632
|
-
i2.addClass(this.nativeElement, 'app-menu-item');
|
|
633
|
-
this.menualign = menuAlignClass[this.menuRef.menualign] || menuAlignClass['pull-left'];
|
|
634
|
-
}
|
|
635
|
-
ngOnInit() {
|
|
636
|
-
// add active class to the item only if it is in nav component.
|
|
637
|
-
if (this.parentNav) {
|
|
638
|
-
if (i5.hasLinkToCurrentPage([this.item], this.menuRef.route.url)) {
|
|
639
|
-
// add active class to the li, if the menu item's link is same as the current page name.
|
|
640
|
-
i2.addClass(this.nativeElement, 'active');
|
|
641
|
-
}
|
|
642
|
-
this.highlightActiveLinkSubscription = this.app.subscribe("highlightActiveLink", (data) => {
|
|
643
|
-
i2.toggleClass(this.nativeElement, 'active', i5.hasLinkToCurrentPage([this.item], this.menuRef.route.url));
|
|
644
|
-
});
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
getInitialKeyMovements() {
|
|
648
|
-
const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
|
|
649
|
-
if (this.menuRef.menulayout === MENU_LAYOUT_TYPE.HORIZONTAL) {
|
|
650
|
-
KEY_MOVEMENTS.MOVE_UP = 'LEFT-ARROW';
|
|
651
|
-
KEY_MOVEMENTS.MOVE_LEFT = 'UP-ARROW';
|
|
652
|
-
KEY_MOVEMENTS.MOVE_RIGHT = 'DOWN-ARROW';
|
|
653
|
-
KEY_MOVEMENTS.MOVE_DOWN = 'RIGHT-ARROW';
|
|
654
|
-
}
|
|
655
|
-
else {
|
|
656
|
-
if (this.menuRef.menuposition === MENU_POSITION.DOWN_LEFT || this.menuRef.menuposition === MENU_POSITION.UP_LEFT) {
|
|
657
|
-
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
658
|
-
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
659
|
-
}
|
|
660
|
-
else if (this.menuRef.menuposition === 'inline') {
|
|
661
|
-
KEY_MOVEMENTS.MOVE_UP = 'LEFT-ARROW';
|
|
662
|
-
KEY_MOVEMENTS.MOVE_LEFT = 'UP-ARROW';
|
|
663
|
-
KEY_MOVEMENTS.MOVE_RIGHT = 'DOWN-ARROW';
|
|
664
|
-
KEY_MOVEMENTS.MOVE_DOWN = 'RIGHT-ARROW';
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
return KEY_MOVEMENTS;
|
|
668
|
-
}
|
|
669
|
-
onKeyDown($event, eventAction) {
|
|
670
|
-
const $li = $(this.nativeElement);
|
|
671
|
-
const $ul = $(this.nativeElement).closest('ul.dropdown-menu');
|
|
672
|
-
const $parentUl = this.menuRef.$element.find('> ul.dropdown-menu');
|
|
673
|
-
const ARROW_KEYS = ['LEFT-ARROW', 'RIGHT-ARROW', 'UP-ARROW', 'DOWN-ARROW'];
|
|
674
|
-
const KEY_MOVEMENTS = this.getInitialKeyMovements();
|
|
675
|
-
if (lodashEs.includes(ARROW_KEYS, eventAction)) {
|
|
676
|
-
// preventing from page scroll when up/down arrow is pressed, in case of menu is opened.
|
|
677
|
-
$event.preventDefault();
|
|
678
|
-
}
|
|
679
|
-
if ((eventAction === KEY_MOVEMENTS.ON_TAB && $parentUl.children().last()[0] === this.nativeElement)
|
|
680
|
-
|| (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $parentUl.children().first()[0] === this.nativeElement)
|
|
681
|
-
|| eventAction === KEY_MOVEMENTS.ON_ESCAPE) {
|
|
682
|
-
/*closing all the children elements when
|
|
683
|
-
* 1. Tab is clicked on the last $element
|
|
684
|
-
* 2. Shift Tab is clicked on the first $element
|
|
685
|
-
* 3. When Escape key is clicked*/
|
|
686
|
-
$event.preventDefault();
|
|
687
|
-
this.menuRef.bsDropdown.hide();
|
|
688
|
-
}
|
|
689
|
-
else if ((eventAction === KEY_MOVEMENTS.ON_ENTER && !this.item.link) || eventAction === KEY_MOVEMENTS.MOVE_RIGHT) {
|
|
690
|
-
// when there is no link for the menu, on enter open the inner child elements and focus the first $element
|
|
691
|
-
$event.stopPropagation();
|
|
692
|
-
if (this.item.children.length) {
|
|
693
|
-
$li.toggleClass('open');
|
|
694
|
-
$li.find('li').first().find('> a').focus();
|
|
695
|
-
}
|
|
696
|
-
else {
|
|
697
|
-
$li.find('> a').focus();
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
else if (eventAction === KEY_MOVEMENTS.MOVE_LEFT
|
|
701
|
-
|| (eventAction === KEY_MOVEMENTS.ON_TAB && $ul.children().last()[0] === this.nativeElement)
|
|
702
|
-
|| (eventAction === KEY_MOVEMENTS.ON_SHIFT_TAB && $ul.children().first()[0] === this.nativeElement)) {
|
|
703
|
-
if ($parentUl[0] !== $ul[0]) {
|
|
704
|
-
const $parentItem = $ul.parent();
|
|
705
|
-
$parentItem.toggleClass('open').find('li.open').removeClass('open');
|
|
706
|
-
$parentItem.find('> a').focus();
|
|
707
|
-
$event.preventDefault();
|
|
708
|
-
$event.stopPropagation();
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
else if (eventAction === KEY_MOVEMENTS.MOVE_UP) {
|
|
712
|
-
if ($parentUl[0] !== $ul[0] || $parentUl.find('> li').first()[0] !== this.nativeElement) {
|
|
713
|
-
$event.stopPropagation();
|
|
714
|
-
$li.prev().find('> a').focus();
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
else if (eventAction === KEY_MOVEMENTS.MOVE_DOWN) {
|
|
718
|
-
$event.stopPropagation();
|
|
719
|
-
if ($parentUl.find('> li').last()[0] === this.nativeElement
|
|
720
|
-
&& (this.menuRef.menulayout !== MENU_LAYOUT_TYPE.HORIZONTAL
|
|
721
|
-
&& this.menuRef.menuposition === MENU_POSITION.UP_RIGHT
|
|
722
|
-
|| this.menuRef.menuposition === MENU_POSITION.UP_LEFT)) {
|
|
723
|
-
this.menuRef.bsDropdown.hide();
|
|
724
|
-
}
|
|
725
|
-
else {
|
|
726
|
-
$li.next().find('> a').focus();
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
else if (eventAction === KEY_MOVEMENTS.ON_ENTER) {
|
|
730
|
-
this.onSelect($event, this.item);
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
$event.stopPropagation();
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
ngOnDestroy() {
|
|
737
|
-
if (this.highlightActiveLinkSubscription) {
|
|
738
|
-
this.highlightActiveLinkSubscription();
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
static { this.ɵfac = function MenuDropdownItemComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuDropdownItemComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.App), i0__namespace.ɵɵdirectiveInject(MenuComponent), i0__namespace.ɵɵdirectiveInject(i2__namespace.UserDefinedExecutionContext), i0__namespace.ɵɵdirectiveInject(NavComponent, 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); }; }
|
|
742
|
-
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MenuDropdownItemComponent, selectors: [["li", "wmMenuDropdownItem", ""]], hostBindings: function MenuDropdownItemComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
743
|
-
i0__namespace.ɵɵlistener("keydown.tab", function MenuDropdownItemComponent_keydown_tab_HostBindingHandler($event) { return ctx.onKeyDown($event, "TAB"); })("keydown.shift.tab", function MenuDropdownItemComponent_keydown_shift_tab_HostBindingHandler($event) { return ctx.onKeyDown($event, "SHIFT-TAB"); })("keydown.escape", function MenuDropdownItemComponent_keydown_escape_HostBindingHandler($event) { return ctx.onKeyDown($event, "ESC"); })("keydown.enter", function MenuDropdownItemComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); })("keydown.arrowup", function MenuDropdownItemComponent_keydown_arrowup_HostBindingHandler($event) { return ctx.onKeyDown($event, "UP-ARROW"); })("keydown.arrowdown", function MenuDropdownItemComponent_keydown_arrowdown_HostBindingHandler($event) { return ctx.onKeyDown($event, "DOWN-ARROW"); })("keydown.arrowright", function MenuDropdownItemComponent_keydown_arrowright_HostBindingHandler($event) { return ctx.onKeyDown($event, "RIGHT-ARROW"); })("keydown.arrowleft", function MenuDropdownItemComponent_keydown_arrowleft_HostBindingHandler($event) { return ctx.onKeyDown($event, "LEFT-ARROW"); })("click", function MenuDropdownItemComponent_click_HostBindingHandler($event) { return ctx.onSelect($event, ctx.item); });
|
|
744
|
-
} }, inputs: { item: "item" }, attrs: _c0$1, decls: 9, vars: 10, consts: [["nestedMenuDropdown", ""], ["href", "javascript:void(0);", 3, "title", "wmNavigationControl", "disableMenuContext"], [3, "class", 4, "ngIf"], [1, "anchor-caption"], ["class", "badge pull-right", 3, "textContent", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [1, "badge", "pull-right", 3, "textContent"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["wmMenuDropdown", "", 3, "items"]], template: function MenuDropdownItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
745
|
-
i0__namespace.ɵɵelementStart(0, "a", 1);
|
|
746
|
-
i0__namespace.ɵɵtemplate(1, MenuDropdownItemComponent_span_1_Template, 1, 3, "span", 2);
|
|
747
|
-
i0__namespace.ɵɵelement(2, "i");
|
|
748
|
-
i0__namespace.ɵɵelementStart(3, "span", 3);
|
|
749
|
-
i0__namespace.ɵɵtext(4);
|
|
750
|
-
i0__namespace.ɵɵelementEnd();
|
|
751
|
-
i0__namespace.ɵɵtemplate(5, MenuDropdownItemComponent_span_5_Template, 1, 1, "span", 4);
|
|
752
|
-
i0__namespace.ɵɵelementEnd();
|
|
753
|
-
i0__namespace.ɵɵtemplate(6, MenuDropdownItemComponent_ng_container_6_Template, 1, 4, "ng-container", 5)(7, MenuDropdownItemComponent_ng_template_7_Template, 1, 1, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
754
|
-
} if (rf & 2) {
|
|
755
|
-
i0__namespace.ɵɵproperty("title", ctx.item.label)("wmNavigationControl", ctx.item.link)("disableMenuContext", ctx.menuRef.disableMenuContext || !!ctx.item.action);
|
|
756
|
-
i0__namespace.ɵɵadvance();
|
|
757
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.item.children.length);
|
|
758
|
-
i0__namespace.ɵɵadvance();
|
|
759
|
-
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx.item.icon, "");
|
|
760
|
-
i0__namespace.ɵɵadvance(2);
|
|
761
|
-
i0__namespace.ɵɵtextInterpolate(ctx.item.label);
|
|
762
|
-
i0__namespace.ɵɵadvance();
|
|
763
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.item.badge);
|
|
764
|
-
i0__namespace.ɵɵadvance();
|
|
765
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.item.children.length);
|
|
766
|
-
} }, encapsulation: 2 }); }
|
|
767
|
-
}
|
|
768
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MenuDropdownItemComponent, [{
|
|
769
|
-
type: i0.Component,
|
|
770
|
-
args: [{ selector: 'li[wmMenuDropdownItem]', template: "<a href=\"javascript:void(0);\" [title]=\"item.label\" [wmNavigationControl]=\"item.link\" [disableMenuContext]=\"menuRef.disableMenuContext || !!item.action\">\n <span *ngIf=\"item.children.length\" class=\"pull-right fa caret {{menualign}}\"></span>\n <i class=\"app-icon {{item.icon}}\"></i>\n <span class=\"anchor-caption\">{{item.label}}</span>\n <span *ngIf=\"item.badge\" class=\"badge pull-right\" [textContent]=\"item.badge\"></span>\n</a>\n<ng-container [ngTemplateOutlet]=\"nestedMenuDropdown\" *ngIf=\"item.children.length\" [ngTemplateOutletContext]=\"{item: item}\"></ng-container>\n\n<ng-template #nestedMenuDropdown let-item=\"item\">\n <ul wmMenuDropdown [items]=\"item.children\"></ul>\n</ng-template>\n" }]
|
|
771
|
-
}], () => [{ type: i2__namespace.App }, { type: MenuComponent }, { type: i2__namespace.UserDefinedExecutionContext }, { type: NavComponent, decorators: [{
|
|
772
|
-
type: i0.Optional
|
|
773
|
-
}] }, { type: i0__namespace.ElementRef }], { item: [{
|
|
774
|
-
type: i0.Input
|
|
775
|
-
}], onKeyDown: [{
|
|
776
|
-
type: i0.HostListener,
|
|
777
|
-
args: ['keydown.tab', ['$event', '"TAB"']]
|
|
535
|
+
args: ['keydown.tab', ['$event', '"TAB"']]
|
|
778
536
|
}, {
|
|
779
537
|
type: i0.HostListener,
|
|
780
538
|
args: ['keydown.shift.tab', ['$event', '"SHIFT-TAB"']]
|
|
@@ -800,16 +558,16 @@
|
|
|
800
558
|
type: i0.HostListener,
|
|
801
559
|
args: ['click', ['$event', 'item']]
|
|
802
560
|
}] }); })();
|
|
803
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuDropdownItemComponent, { className: "MenuDropdownItemComponent", filePath: "menu-dropdown-item/menu-dropdown-item.component.ts", lineNumber:
|
|
561
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuDropdownItemComponent, { className: "MenuDropdownItemComponent", filePath: "menu-dropdown-item/menu-dropdown-item.component.ts", lineNumber: 33 }); })();
|
|
804
562
|
|
|
805
|
-
const _c0 = ["wmMenuDropdown", ""];
|
|
806
|
-
const _c1 = (a0, a1) => ({ disabled: a0, "dropdown-submenu": a1 });
|
|
807
|
-
function
|
|
563
|
+
const _c0$1 = ["wmMenuDropdown", ""];
|
|
564
|
+
const _c1$1 = (a0, a1) => ({ disabled: a0, "dropdown-submenu": a1 });
|
|
565
|
+
function MenuDropdownComponent_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
808
566
|
i0__namespace.ɵɵelement(0, "li", 1);
|
|
809
567
|
} if (rf & 2) {
|
|
810
568
|
const item_r1 = ctx.$implicit;
|
|
811
569
|
i0__namespace.ɵɵclassMap(item_r1.class);
|
|
812
|
-
i0__namespace.ɵɵproperty("item", item_r1)("ngClass", i0__namespace.ɵɵpureFunction2(5, _c1, item_r1.disabled, item_r1.children.length > 0));
|
|
570
|
+
i0__namespace.ɵɵproperty("item", item_r1)("ngClass", i0__namespace.ɵɵpureFunction2(5, _c1$1, item_r1.disabled, item_r1.children.length > 0));
|
|
813
571
|
} }
|
|
814
572
|
const animationClasses = {
|
|
815
573
|
scale: {
|
|
@@ -834,13 +592,13 @@
|
|
|
834
592
|
'up,left': 'wmSlideInUp'
|
|
835
593
|
}
|
|
836
594
|
};
|
|
837
|
-
const DEFAULT_CLS
|
|
595
|
+
const DEFAULT_CLS = 'dropdown-menu';
|
|
838
596
|
class MenuDropdownComponent {
|
|
839
597
|
constructor(elRef, menuRef) {
|
|
840
598
|
this.menuRef = menuRef;
|
|
841
599
|
this.nativeElement = elRef.nativeElement;
|
|
842
600
|
this.hasExecutedCallback = false;
|
|
843
|
-
i2.addClass(this.nativeElement, DEFAULT_CLS
|
|
601
|
+
i2.addClass(this.nativeElement, DEFAULT_CLS);
|
|
844
602
|
}
|
|
845
603
|
ngAfterViewInit() {
|
|
846
604
|
const animateItems = this.menuRef.animateitems;
|
|
@@ -900,171 +658,360 @@
|
|
|
900
658
|
observer.observe(target.nativeElement);
|
|
901
659
|
}
|
|
902
660
|
static { this.ɵfac = function MenuDropdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuDropdownComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(MenuComponent)); }; }
|
|
903
|
-
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MenuDropdownComponent, selectors: [["ul", "wmMenuDropdown", ""]], inputs: { items: "items" }, attrs: _c0, decls:
|
|
904
|
-
i0__namespace.ɵɵ
|
|
661
|
+
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MenuDropdownComponent, selectors: [["ul", "wmMenuDropdown", ""]], inputs: { items: "items" }, standalone: true, features: [i0__namespace.ɵɵStandaloneFeature], attrs: _c0$1, decls: 2, vars: 0, consts: [["wmMenuDropdownItem", "", "role", "menuitem", 3, "item", "ngClass", "class"], ["wmMenuDropdownItem", "", "role", "menuitem", 3, "item", "ngClass"]], template: function MenuDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
662
|
+
i0__namespace.ɵɵrepeaterCreate(0, MenuDropdownComponent_For_1_Template, 1, 8, "li", 0, i0__namespace.ɵɵrepeaterTrackByIdentity);
|
|
905
663
|
} if (rf & 2) {
|
|
906
|
-
i0__namespace.ɵɵ
|
|
907
|
-
} }, dependencies: [i3__namespace.NgClass,
|
|
664
|
+
i0__namespace.ɵɵrepeater(ctx.items);
|
|
665
|
+
} }, dependencies: [i3.CommonModule, i3__namespace.NgClass, i5.WmComponentsModule, MenuDropdownItemComponent], encapsulation: 2 }); }
|
|
908
666
|
}
|
|
909
667
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MenuDropdownComponent, [{
|
|
910
668
|
type: i0.Component,
|
|
911
|
-
args: [{ selector: 'ul[wmMenuDropdown]', template: "
|
|
669
|
+
args: [{ standalone: true, imports: [i3.CommonModule, i5.WmComponentsModule, MenuDropdownItemComponent], selector: 'ul[wmMenuDropdown]', template: "@for (item of items; track item) {\n <li wmMenuDropdownItem\n [item]=\"item\"\n [ngClass]=\"{disabled: item.disabled, 'dropdown-submenu': item.children.length > 0}\"\n class=\"{{item.class}}\"\n role=\"menuitem\">\n </li>\n}\n" }]
|
|
912
670
|
}], () => [{ type: i0__namespace.ElementRef }, { type: MenuComponent }], { items: [{
|
|
913
671
|
type: i0.Input
|
|
914
672
|
}] }); })();
|
|
915
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuDropdownComponent, { className: "MenuDropdownComponent", filePath: "menu-dropdown/menu-dropdown.component.ts", lineNumber:
|
|
673
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuDropdownComponent, { className: "MenuDropdownComponent", filePath: "menu-dropdown/menu-dropdown.component.ts", lineNumber: 42 }); })();
|
|
916
674
|
|
|
917
675
|
const registerProps = () => {
|
|
918
|
-
i5.register('wm-
|
|
676
|
+
i5.register('wm-menu', new Map([
|
|
677
|
+
['accessroles', { value: 'Everyone', ...i5.PROP_STRING }],
|
|
678
|
+
['animateitems', i5.PROP_STRING],
|
|
679
|
+
['autoclose', { value: 'always', ...i5.PROP_STRING }],
|
|
680
|
+
['autoopen', { value: 'never', ...i5.PROP_STRING }],
|
|
681
|
+
['caption', i5.PROP_STRING],
|
|
919
682
|
['class', i5.PROP_STRING],
|
|
683
|
+
['dataset', { value: 'Menu Item 1, Menu Item 2, Menu Item 3', ...i5.PROP_ANY }],
|
|
684
|
+
['hint', { value: '', ...i5.PROP_STRING }],
|
|
685
|
+
['arialabel', i5.PROP_STRING],
|
|
686
|
+
['isactive', i5.PROP_STRING],
|
|
687
|
+
['iconclass', i5.PROP_STRING],
|
|
688
|
+
['iconposition', { value: 'left', ...i5.PROP_STRING }],
|
|
689
|
+
['itemaction', i5.PROP_STRING],
|
|
690
|
+
['itemchildren', i5.PROP_STRING],
|
|
691
|
+
['itemclass', i5.PROP_STRING],
|
|
692
|
+
['itemicon', i5.PROP_STRING],
|
|
693
|
+
['itemlabel', i5.PROP_STRING],
|
|
694
|
+
['itemlink', i5.PROP_STRING],
|
|
695
|
+
['itemtarget', i5.PROP_STRING],
|
|
696
|
+
['linktarget', { value: '_self', ...i5.PROP_STRING }],
|
|
697
|
+
['menuclass', i5.PROP_STRING],
|
|
698
|
+
['menulayout', i5.PROP_STRING],
|
|
699
|
+
['menuposition', i5.PROP_STRING],
|
|
920
700
|
['name', i5.PROP_STRING],
|
|
921
|
-
['
|
|
701
|
+
['orderby', i5.PROP_STRING],
|
|
702
|
+
['shortcutkey', i5.PROP_STRING],
|
|
703
|
+
['show', { value: true, ...i5.PROP_BOOLEAN }],
|
|
704
|
+
['showonhover', { value: false, ...i5.PROP_BOOLEAN }],
|
|
705
|
+
['tabindex', { value: 0, ...i5.PROP_NUMBER }],
|
|
706
|
+
['type', { value: 'menu', ...i5.PROP_STRING }],
|
|
707
|
+
['userrole', i5.PROP_STRING]
|
|
922
708
|
]));
|
|
923
709
|
};
|
|
924
710
|
|
|
925
|
-
const
|
|
926
|
-
const
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
711
|
+
const _c0 = ["wmMenu", ""];
|
|
712
|
+
const _c1 = a0 => [a0];
|
|
713
|
+
function MenuComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
|
714
|
+
i0__namespace.ɵɵelement(0, "i")(1, "span", 4)(2, "span");
|
|
715
|
+
} if (rf & 2) {
|
|
716
|
+
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
717
|
+
i0__namespace.ɵɵclassMapInterpolate1("app-icon ", ctx_r0.iconclass, "");
|
|
718
|
+
i0__namespace.ɵɵadvance();
|
|
719
|
+
i0__namespace.ɵɵproperty("textContent", ctx_r0.caption);
|
|
720
|
+
i0__namespace.ɵɵadvance();
|
|
721
|
+
i0__namespace.ɵɵclassMapInterpolate1("pull-right caret fa ", ctx_r0.menuCaret, "");
|
|
722
|
+
} }
|
|
723
|
+
function MenuComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
724
|
+
i0__namespace.ɵɵelementStart(0, "a", 5);
|
|
725
|
+
i0__namespace.ɵɵelement(1, "span", 6);
|
|
726
|
+
i0__namespace.ɵɵelementEnd();
|
|
727
|
+
} if (rf & 2) {
|
|
728
|
+
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
729
|
+
i0__namespace.ɵɵclassMapInterpolate1("dropdown-toggle ", ctx_r0.menuclass, "");
|
|
730
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r0.arialabel || "Menu");
|
|
731
|
+
i0__namespace.ɵɵadvance();
|
|
732
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c1, ctx_r0.menuCaret));
|
|
733
|
+
} }
|
|
734
|
+
function MenuComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
735
|
+
i0__namespace.ɵɵelementStart(0, "button", 7);
|
|
736
|
+
i0__namespace.ɵɵelement(1, "span", 6);
|
|
737
|
+
i0__namespace.ɵɵelementEnd();
|
|
738
|
+
} if (rf & 2) {
|
|
739
|
+
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
740
|
+
i0__namespace.ɵɵclassMapInterpolate1("btn app-button dropdown-toggle ", ctx_r0.menuclass, "");
|
|
741
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r0.arialabel || "Menu");
|
|
742
|
+
i0__namespace.ɵɵadvance();
|
|
743
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(5, _c1, ctx_r0.menuCaret));
|
|
744
|
+
} }
|
|
745
|
+
function MenuComponent_ul_4_Template(rf, ctx) { if (rf & 1) {
|
|
746
|
+
i0__namespace.ɵɵelement(0, "ul", 8);
|
|
747
|
+
} if (rf & 2) {
|
|
748
|
+
const ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
749
|
+
i0__namespace.ɵɵclassMapInterpolate1("icon-position-", ctx_r0.iconposition, "");
|
|
750
|
+
i0__namespace.ɵɵproperty("items", ctx_r0.nodes)("ngClass", ctx_r0.menulayout);
|
|
751
|
+
} }
|
|
752
|
+
const KEYBOARD_MOVEMENTS = {
|
|
753
|
+
MOVE_UP: 'UP-ARROW',
|
|
754
|
+
MOVE_LEFT: 'LEFT-ARROW',
|
|
755
|
+
MOVE_RIGHT: 'RIGHT-ARROW',
|
|
756
|
+
MOVE_DOWN: 'DOWN-ARROW',
|
|
757
|
+
ON_ENTER: 'ENTER',
|
|
758
|
+
ON_MOUSE_ENTER: 'MOUSE-ENTER',
|
|
759
|
+
ON_MOUSE_LEAVE: 'MOUSE-LEAVE',
|
|
760
|
+
ON_TAB: 'TAB',
|
|
761
|
+
ON_SHIFT_TAB: 'SHIFT-TAB',
|
|
762
|
+
ON_ESCAPE: 'ESC'
|
|
763
|
+
};
|
|
764
|
+
const MENU_POSITION = {
|
|
765
|
+
UP_LEFT: 'up,left',
|
|
766
|
+
UP_RIGHT: 'up,right',
|
|
767
|
+
DOWN_LEFT: 'down,left',
|
|
768
|
+
DOWN_RIGHT: 'down,right',
|
|
769
|
+
INLINE: 'inline'
|
|
770
|
+
};
|
|
771
|
+
const POSITION = {
|
|
772
|
+
DOWN_RIGHT: 'down,right',
|
|
773
|
+
DOWN_LEFT: 'down,left',
|
|
774
|
+
UP_RIGHT: 'up,right',
|
|
775
|
+
UP_LEFT: 'up,left',
|
|
776
|
+
INLINE: 'inline'
|
|
777
|
+
};
|
|
778
|
+
const CARET_CLS = {
|
|
779
|
+
UP: 'fa-caret-up',
|
|
780
|
+
DOWN: 'fa-caret-down'
|
|
781
|
+
};
|
|
782
|
+
const PULL_CLS = {
|
|
783
|
+
LEFT: 'pull-left',
|
|
784
|
+
RIGHT: 'pull-right'
|
|
785
|
+
};
|
|
786
|
+
const AUTO_OPEN = {
|
|
787
|
+
ACTIVE_PAGE: 'activepage',
|
|
788
|
+
ALWAYS: 'always'
|
|
789
|
+
};
|
|
790
|
+
const WIDGET_CONFIG = { widgetType: 'wm-menu', hostClass: 'dropdown app-menu' };
|
|
791
|
+
class MenuComponent extends i5.DatasetAwareNavComponent {
|
|
792
|
+
static { this.initializeProps = registerProps(); }
|
|
793
|
+
onShow() {
|
|
794
|
+
this._menuposition = this.menuposition;
|
|
795
|
+
if (this._selectFirstItem) {
|
|
796
|
+
setTimeout(() => {
|
|
797
|
+
this.$element.find('> ul[wmmenudropdown] li.app-menu-item').first().find('> a').focus();
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
i2.$appDigest();
|
|
944
801
|
}
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
802
|
+
onHide() {
|
|
803
|
+
this.$element.find('li').removeClass('open');
|
|
804
|
+
this._selectFirstItem = false;
|
|
805
|
+
// reset the menuposition when dropdown is closed
|
|
806
|
+
this.menuposition = this._menuposition ? this._menuposition : MENU_POSITION.DOWN_RIGHT;
|
|
807
|
+
this.setMenuPosition();
|
|
808
|
+
i2.$appDigest();
|
|
948
809
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
810
|
+
onKeyDown($event, eventAction) {
|
|
811
|
+
const KEY_MOVEMENTS = lodashEs.clone(KEYBOARD_MOVEMENTS);
|
|
812
|
+
if (this.menuposition === MENU_POSITION.UP_RIGHT) {
|
|
813
|
+
KEY_MOVEMENTS.MOVE_UP = 'DOWN-ARROW';
|
|
814
|
+
KEY_MOVEMENTS.MOVE_DOWN = 'UP-ARROW';
|
|
815
|
+
}
|
|
816
|
+
else if (this.menuposition === MENU_POSITION.UP_LEFT) {
|
|
817
|
+
KEY_MOVEMENTS.MOVE_UP = 'DOWN-ARROW';
|
|
818
|
+
KEY_MOVEMENTS.MOVE_DOWN = 'UP-ARROW';
|
|
819
|
+
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
820
|
+
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
821
|
+
}
|
|
822
|
+
else if (this.menuposition === MENU_POSITION.DOWN_LEFT) {
|
|
823
|
+
KEY_MOVEMENTS.MOVE_LEFT = 'RIGHT-ARROW';
|
|
824
|
+
KEY_MOVEMENTS.MOVE_RIGHT = 'LEFT-ARROW';
|
|
825
|
+
}
|
|
826
|
+
if (lodashEs.includes([KEY_MOVEMENTS.MOVE_DOWN, KEY_MOVEMENTS.MOVE_RIGHT], eventAction)) {
|
|
827
|
+
if (!this.bsDropdown.isOpen) {
|
|
828
|
+
this._selectFirstItem = true;
|
|
829
|
+
this.bsDropdown.show();
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
this.$element.find('> ul[wmmenudropdown] li.app-menu-item').first().find('> a').focus();
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
else if (eventAction === KEY_MOVEMENTS.ON_ENTER || (eventAction === KEY_MOVEMENTS.ON_MOUSE_ENTER && this.showonhover)) {
|
|
836
|
+
this.bsDropdown.toggle(true);
|
|
837
|
+
}
|
|
838
|
+
else if (lodashEs.includes([KEY_MOVEMENTS.MOVE_UP, KEY_MOVEMENTS.MOVE_LEFT], eventAction) || (eventAction == KEY_MOVEMENTS.ON_MOUSE_LEAVE && this.autoclose == i5.AUTOCLOSE_TYPE.ALWAYS && this.showonhover)) {
|
|
839
|
+
this.bsDropdown.hide();
|
|
840
|
+
}
|
|
841
|
+
$event.preventDefault();
|
|
842
|
+
}
|
|
843
|
+
constructor(inj, route, userDefinedExecutionContext, app, bsDropdown, parentNav, selectEventCB, explicitContext) {
|
|
844
|
+
super(inj, WIDGET_CONFIG, explicitContext);
|
|
845
|
+
this.route = route;
|
|
846
|
+
this.userDefinedExecutionContext = userDefinedExecutionContext;
|
|
847
|
+
this.app = app;
|
|
848
|
+
this.bsDropdown = bsDropdown;
|
|
849
|
+
this.parentNav = parentNav;
|
|
850
|
+
this.selectEventCB = selectEventCB;
|
|
851
|
+
this.menuCaret = 'fa-caret-down';
|
|
852
|
+
this._selectFirstItem = false;
|
|
853
|
+
if (parentNav) {
|
|
854
|
+
this.disableMenuContext = !!parentNav.disableMenuContext;
|
|
855
|
+
}
|
|
856
|
+
else {
|
|
857
|
+
this.disableMenuContext = !!selectEventCB;
|
|
858
|
+
}
|
|
859
|
+
// For selecting the item on load
|
|
860
|
+
const datasetSubscription = this.nodes$.subscribe(() => {
|
|
861
|
+
if (!lodashEs.isEmpty(this.nodes)) {
|
|
862
|
+
if (i5.hasLinkToCurrentPage(this.nodes, this.route.url)) {
|
|
863
|
+
i2.addClass(this.nativeElement.querySelector('.dropdown-toggle'), 'active');
|
|
864
|
+
}
|
|
865
|
+
// If menu widget is inside nav widget then dont check for item isactive property because these will be handled form nav widget.
|
|
866
|
+
if (this.parentNav) {
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
let itemFound = false;
|
|
870
|
+
const getItem = (nodes) => {
|
|
871
|
+
lodashEs.forEach(nodes, (item) => {
|
|
872
|
+
if (itemFound) {
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
if (item.isactive) {
|
|
876
|
+
itemFound = true;
|
|
877
|
+
this.onMenuItemSelect({ $event: {}, $item: item });
|
|
878
|
+
// Trigger the action associated with active item
|
|
879
|
+
i2.triggerItemAction(this, item);
|
|
880
|
+
return false;
|
|
881
|
+
}
|
|
882
|
+
if (!lodashEs.isEmpty(item.children)) {
|
|
883
|
+
getItem(item.children);
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
};
|
|
887
|
+
getItem(this.nodes);
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
this.registerDestroyListener(() => datasetSubscription.unsubscribe());
|
|
891
|
+
}
|
|
892
|
+
resetNodes() {
|
|
893
|
+
super.resetNodes();
|
|
894
|
+
// open the menu if any of its menu items has link to current page and if autoopen value is 'active page'
|
|
895
|
+
if ((this.autoopen === AUTO_OPEN.ACTIVE_PAGE && i5.hasLinkToCurrentPage(this.nodes, this.route.url)) || this.autoopen === AUTO_OPEN.ALWAYS) {
|
|
896
|
+
this.bsDropdown.show();
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
ngOnInit() {
|
|
900
|
+
super.ngOnInit();
|
|
901
|
+
this.setMenuPosition();
|
|
902
|
+
const cancelSubscription = this.app.subscribe("highlightActiveLink", (data) => {
|
|
903
|
+
i2.toggleClass(this.nativeElement.querySelector('.dropdown-toggle'), 'active', i5.hasLinkToCurrentPage(this.nodes, this.route.url));
|
|
904
|
+
});
|
|
905
|
+
this.registerDestroyListener(() => cancelSubscription());
|
|
906
|
+
}
|
|
907
|
+
onPropertyChange(key, nv, ov) {
|
|
908
|
+
if (key === 'tabindex') {
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
if (key === 'autoclose') {
|
|
912
|
+
this.bsDropdown.autoClose = nv !== i5.AUTOCLOSE_TYPE.DISABLED;
|
|
913
|
+
this.autoclose = nv;
|
|
914
|
+
}
|
|
915
|
+
else {
|
|
916
|
+
super.onPropertyChange(key, nv, ov);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
setMenuPosition() {
|
|
920
|
+
switch (this.menuposition) {
|
|
921
|
+
case POSITION.DOWN_RIGHT:
|
|
922
|
+
i2.removeClass(this.nativeElement, 'dropup');
|
|
923
|
+
this.menualign = PULL_CLS.LEFT;
|
|
924
|
+
this.menuCaret = CARET_CLS.DOWN;
|
|
925
|
+
break;
|
|
926
|
+
case POSITION.DOWN_LEFT:
|
|
927
|
+
i2.removeClass(this.nativeElement, 'dropup');
|
|
928
|
+
this.menualign = PULL_CLS.RIGHT;
|
|
929
|
+
this.menuCaret = CARET_CLS.DOWN;
|
|
930
|
+
break;
|
|
931
|
+
case POSITION.UP_LEFT:
|
|
932
|
+
i2.addClass(this.nativeElement, 'dropup');
|
|
933
|
+
this.menualign = PULL_CLS.RIGHT;
|
|
934
|
+
this.menuCaret = CARET_CLS.UP;
|
|
935
|
+
break;
|
|
936
|
+
case POSITION.UP_RIGHT:
|
|
937
|
+
i2.addClass(this.nativeElement, 'dropup');
|
|
938
|
+
this.menualign = PULL_CLS.LEFT;
|
|
939
|
+
this.menuCaret = CARET_CLS.UP;
|
|
940
|
+
break;
|
|
941
|
+
case POSITION.INLINE:
|
|
942
|
+
this.menualign = 'dropinline-menu';
|
|
943
|
+
break;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
onMenuItemSelect(args) {
|
|
947
|
+
const { $event } = args;
|
|
948
|
+
const $item = args.$item.value;
|
|
949
|
+
this.invokeEventCallback('select', { $event, $item });
|
|
950
|
+
}
|
|
951
|
+
ngAfterViewInit() {
|
|
952
|
+
super.ngAfterViewInit();
|
|
953
|
+
i5.styler(this.nativeElement.querySelector('.dropdown-toggle'), this);
|
|
954
|
+
}
|
|
955
|
+
static { this.ɵfac = function MenuComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.UserDefinedExecutionContext), i0__namespace.ɵɵdirectiveInject(i2__namespace.App), i0__namespace.ɵɵdirectiveInject(i3$1__namespace.BsDropdownDirective, 10), i0__namespace.ɵɵdirectiveInject(NavComponent, 8), i0__namespace.ɵɵinjectAttribute('select.event'), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
|
|
956
|
+
static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MenuComponent, selectors: [["", "wmMenu", ""]], hostBindings: function MenuComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
957
|
+
i0__namespace.ɵɵlistener("onShown", function MenuComponent_onShown_HostBindingHandler() { return ctx.onShow(); })("onHidden", function MenuComponent_onHidden_HostBindingHandler() { return ctx.onHide(); })("keydown.arrowup", function MenuComponent_keydown_arrowup_HostBindingHandler($event) { return ctx.onKeyDown($event, "UP-ARROW"); })("mouseenter", function MenuComponent_mouseenter_HostBindingHandler($event) { return ctx.onKeyDown($event, "MOUSE-ENTER"); })("mouseleave", function MenuComponent_mouseleave_HostBindingHandler($event) { return ctx.onKeyDown($event, "MOUSE-LEAVE"); })("keydown.arrowdown", function MenuComponent_keydown_arrowdown_HostBindingHandler($event) { return ctx.onKeyDown($event, "DOWN-ARROW"); })("keydown.arrowright", function MenuComponent_keydown_arrowright_HostBindingHandler($event) { return ctx.onKeyDown($event, "RIGHT-ARROW"); })("keydown.arrowleft", function MenuComponent_keydown_arrowleft_HostBindingHandler($event) { return ctx.onKeyDown($event, "LEFT-ARROW"); })("keydown.enter", function MenuComponent_keydown_enter_HostBindingHandler($event) { return ctx.onKeyDown($event, "ENTER"); });
|
|
958
|
+
} }, standalone: true, features: [i0__namespace.ɵɵProvidersFeature([
|
|
959
|
+
i5.provideAsWidgetRef(MenuComponent)
|
|
960
|
+
]), i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵStandaloneFeature], attrs: _c0, decls: 5, vars: 1, consts: [["innerTemplate", ""], ["wmAnchor", "", "dropdownToggle", "", "href", "javascript:void(0);", "role", "button", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition", "badgevalue.bind", "badgevalue", 3, "class"], ["wmButton", "", "dropdownToggle", "", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition", 3, "class"], ["role", "menubar", "wmMenuDropdown", "", 3, "items", "ngClass", "class", 4, "dropdownMenu"], [1, "caption", 3, "textContent"], ["wmAnchor", "", "dropdownToggle", "", "href", "javascript:void(0);", "role", "button", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition", "badgevalue.bind", "badgevalue"], [1, "pull-right", "caret", "fa", 3, "ngClass"], ["wmButton", "", "dropdownToggle", "", "aria-haspopup", "true", "aria-expanded", "false", "hint.bind", "hint", "shortcutkey.bind", "shortcutkey", "tabindex.bind", "tabindex", "caption.bind", "caption", "iconclass.bind", "iconclass", "iconposition.bind", "iconposition"], ["role", "menubar", "wmMenuDropdown", "", 3, "items", "ngClass"]], template: function MenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
961
|
+
i0__namespace.ɵɵtemplate(0, MenuComponent_ng_template_0_Template, 3, 7, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor)(2, MenuComponent_Conditional_2_Template, 2, 7, "a", 1)(3, MenuComponent_Conditional_3_Template, 2, 7, "button", 2)(4, MenuComponent_ul_4_Template, 1, 5, "ul", 3);
|
|
952
962
|
} if (rf & 2) {
|
|
953
|
-
|
|
954
|
-
i0__namespace.ɵɵ
|
|
955
|
-
} },
|
|
956
|
-
i0__namespace.ɵɵlistener("click", function NavItemDirective_click_HostBindingHandler() { return ctx.makeActive(); })("keydown.enter", function NavItemDirective_keydown_enter_HostBindingHandler() { return ctx.makeActive(); });
|
|
957
|
-
} }, exportAs: ["navItemRef"], features: [i0__namespace.ɵɵProvidersFeature([
|
|
958
|
-
i5.provideAsWidgetRef(NavItemDirective)
|
|
959
|
-
]), i0__namespace.ɵɵInheritDefinitionFeature] }); }
|
|
963
|
+
i0__namespace.ɵɵadvance(2);
|
|
964
|
+
i0__namespace.ɵɵconditional(ctx.type === "anchor" ? 2 : 3);
|
|
965
|
+
} }, dependencies: [i3.CommonModule, i3__namespace.NgClass, i5.WmComponentsModule, i5__namespace.TextContentDirective, basic.AnchorComponent, input.ButtonComponent, MenuDropdownComponent, i3$1.BsDropdownModule, i3$1__namespace.BsDropdownMenuDirective, i3$1__namespace.BsDropdownToggleDirective], encapsulation: 2 }); }
|
|
960
966
|
}
|
|
961
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(
|
|
962
|
-
type: i0.
|
|
963
|
-
args: [{
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
967
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MenuComponent, [{
|
|
968
|
+
type: i0.Component,
|
|
969
|
+
args: [{ standalone: true, imports: [i3.CommonModule, i5.WmComponentsModule, basic.AnchorComponent, input.ButtonComponent, MenuDropdownComponent, i3$1.BsDropdownModule], selector: '[wmMenu]', providers: [
|
|
970
|
+
i5.provideAsWidgetRef(MenuComponent)
|
|
971
|
+
], template: "\n\n<ng-template #innerTemplate>\n <i class=\"app-icon {{iconclass}}\"></i>\n <span class=\"caption\" [textContent]=\"caption\"></span>\n <span class=\"pull-right caret fa {{menuCaret}}\"></span>\n</ng-template>\n\n@if (type === 'anchor') {\n <a wmAnchor\n dropdownToggle\n [attr.aria-label]=\"arialabel || 'Menu'\"\n href=\"javascript:void(0);\"\n role=\"button\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n hint.bind=\"hint\"\n class=\"dropdown-toggle {{menuclass}}\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n badgevalue.bind=\"badgevalue\"\n >\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </a>\n} @else {\n <button wmButton\n dropdownToggle\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n [attr.aria-label]=\"arialabel || 'Menu'\"\n class=\"btn app-button dropdown-toggle {{menuclass}}\"\n hint.bind=\"hint\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n caption.bind=\"caption\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\">\n <span class=\"pull-right caret fa\" [ngClass]=\"[menuCaret]\"></span>\n </button>\n}\n\n<ul *dropdownMenu [items]=\"nodes\" [ngClass]=\"menulayout\" class=\"icon-position-{{iconposition}}\" role=\"menubar\"\nwmMenuDropdown></ul>\n" }]
|
|
972
|
+
}], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Router }, { type: i2__namespace.UserDefinedExecutionContext }, { type: i2__namespace.App }, { type: i3$1__namespace.BsDropdownDirective, decorators: [{
|
|
973
|
+
type: i0.Self
|
|
974
|
+
}, {
|
|
975
|
+
type: i0.Optional
|
|
976
|
+
}] }, { type: NavComponent, decorators: [{
|
|
977
|
+
type: i0.Optional
|
|
978
|
+
}] }, { type: undefined, decorators: [{
|
|
979
|
+
type: i0.Attribute,
|
|
980
|
+
args: ['select.event']
|
|
981
|
+
}] }, { type: undefined, decorators: [{
|
|
971
982
|
type: i0.Inject,
|
|
972
983
|
args: ['EXPLICIT_CONTEXT']
|
|
973
984
|
}, {
|
|
974
985
|
type: i0.Optional
|
|
975
|
-
}] }], {
|
|
976
|
-
type: i0.ContentChild,
|
|
977
|
-
args: [i1$1.AnchorComponent]
|
|
978
|
-
}], makeActive: [{
|
|
986
|
+
}] }], { onShow: [{
|
|
979
987
|
type: i0.HostListener,
|
|
980
|
-
args: ['
|
|
988
|
+
args: ['onShown']
|
|
989
|
+
}], onHide: [{
|
|
990
|
+
type: i0.HostListener,
|
|
991
|
+
args: ['onHidden']
|
|
992
|
+
}], onKeyDown: [{
|
|
993
|
+
type: i0.HostListener,
|
|
994
|
+
args: ['keydown.arrowup', ['$event', '"UP-ARROW"']]
|
|
981
995
|
}, {
|
|
982
996
|
type: i0.HostListener,
|
|
983
|
-
args: ['
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
constructor(eleRef) {
|
|
1002
|
-
this.nativeElement = eleRef.nativeElement;
|
|
1003
|
-
}
|
|
1004
|
-
static { this.ɵfac = function NavigationControlDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || NavigationControlDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); }; }
|
|
1005
|
-
static { this.ɵdir = /*@__PURE__*/ i0__namespace.ɵɵdefineDirective({ type: NavigationControlDirective, selectors: [["", "wmNavigationControl", ""]], inputs: { disableMenuContext: "disableMenuContext", wmNavigationControl: "wmNavigationControl" } }); }
|
|
1006
|
-
}
|
|
1007
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NavigationControlDirective, [{
|
|
1008
|
-
type: i0.Directive,
|
|
1009
|
-
args: [{ selector: '[wmNavigationControl]' }]
|
|
1010
|
-
}], () => [{ type: i0__namespace.ElementRef }], { disableMenuContext: [{
|
|
1011
|
-
type: i0.Input
|
|
1012
|
-
}], wmNavigationControl: [{
|
|
1013
|
-
type: i0.Input
|
|
997
|
+
args: ['mouseenter', ['$event', '"MOUSE-ENTER"']]
|
|
998
|
+
}, {
|
|
999
|
+
type: i0.HostListener,
|
|
1000
|
+
args: ['mouseleave', ['$event', '"MOUSE-LEAVE"']]
|
|
1001
|
+
}, {
|
|
1002
|
+
type: i0.HostListener,
|
|
1003
|
+
args: ['keydown.arrowdown', ['$event', '"DOWN-ARROW"']]
|
|
1004
|
+
}, {
|
|
1005
|
+
type: i0.HostListener,
|
|
1006
|
+
args: ['keydown.arrowright', ['$event', '"RIGHT-ARROW"']]
|
|
1007
|
+
}, {
|
|
1008
|
+
type: i0.HostListener,
|
|
1009
|
+
args: ['keydown.arrowleft', ['$event', '"LEFT-ARROW"']]
|
|
1010
|
+
}, {
|
|
1011
|
+
type: i0.HostListener,
|
|
1012
|
+
args: ['keydown.enter', ['$event', '"ENTER"']]
|
|
1014
1013
|
}] }); })();
|
|
1015
|
-
|
|
1016
|
-
const components = [
|
|
1017
|
-
MenuComponent,
|
|
1018
|
-
MenuDropdownComponent,
|
|
1019
|
-
MenuDropdownItemComponent,
|
|
1020
|
-
NavigationControlDirective,
|
|
1021
|
-
NavComponent,
|
|
1022
|
-
NavItemDirective
|
|
1023
|
-
];
|
|
1024
|
-
class MenuModule {
|
|
1025
|
-
static { this.ɵfac = function MenuModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MenuModule)(); }; }
|
|
1026
|
-
static { this.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: MenuModule }); }
|
|
1027
|
-
static { this.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [i1$1.BasicModule,
|
|
1028
|
-
i2$1.BsDropdownModule,
|
|
1029
|
-
i3.CommonModule,
|
|
1030
|
-
i4.InputModule,
|
|
1031
|
-
i5.WmComponentsModule] }); }
|
|
1032
|
-
}
|
|
1033
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MenuModule, [{
|
|
1034
|
-
type: i0.NgModule,
|
|
1035
|
-
args: [{
|
|
1036
|
-
imports: [
|
|
1037
|
-
i1$1.BasicModule,
|
|
1038
|
-
i2$1.BsDropdownModule,
|
|
1039
|
-
i3.CommonModule,
|
|
1040
|
-
i4.InputModule,
|
|
1041
|
-
i5.WmComponentsModule
|
|
1042
|
-
],
|
|
1043
|
-
declarations: [...components],
|
|
1044
|
-
exports: [...components]
|
|
1045
|
-
}]
|
|
1046
|
-
}], null, null); })();
|
|
1047
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(MenuModule, { declarations: [MenuComponent,
|
|
1048
|
-
MenuDropdownComponent,
|
|
1049
|
-
MenuDropdownItemComponent,
|
|
1050
|
-
NavigationControlDirective,
|
|
1051
|
-
NavComponent,
|
|
1052
|
-
NavItemDirective], imports: [i1$1.BasicModule,
|
|
1053
|
-
i2$1.BsDropdownModule,
|
|
1054
|
-
i3.CommonModule,
|
|
1055
|
-
i4.InputModule,
|
|
1056
|
-
i5.WmComponentsModule], exports: [MenuComponent,
|
|
1057
|
-
MenuDropdownComponent,
|
|
1058
|
-
MenuDropdownItemComponent,
|
|
1059
|
-
NavigationControlDirective,
|
|
1060
|
-
NavComponent,
|
|
1061
|
-
NavItemDirective] }); })();
|
|
1062
|
-
i0__namespace.ɵɵsetComponentScope(MenuComponent, [i1$1__namespace.AnchorComponent, i2$1__namespace.BsDropdownMenuDirective, i2$1__namespace.BsDropdownToggleDirective, i3__namespace.NgClass, i3__namespace.NgIf, i4__namespace.ButtonComponent, i5__namespace.TextContentDirective, MenuDropdownComponent], []);
|
|
1063
|
-
i0__namespace.ɵɵsetComponentScope(MenuDropdownItemComponent, [i3__namespace.NgIf, i3__namespace.NgTemplateOutlet, i5__namespace.TextContentDirective, MenuDropdownComponent,
|
|
1064
|
-
NavigationControlDirective], []);
|
|
1065
|
-
i0__namespace.ɵɵsetComponentScope(NavComponent, [i1$1__namespace.AnchorComponent, i2$1__namespace.BsDropdownDirective, i3__namespace.NgClass, i3__namespace.NgForOf, i3__namespace.NgIf, i3__namespace.NgTemplateOutlet, MenuComponent,
|
|
1066
|
-
NavigationControlDirective,
|
|
1067
|
-
NavItemDirective], []);
|
|
1014
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(MenuComponent, { className: "MenuComponent", filePath: "menu.component.ts", lineNumber: 96 }); })();
|
|
1068
1015
|
|
|
1069
1016
|
const menuProps = ['itemlabel', 'itemicon', 'itemlink', 'itemaction', 'itemchildren', 'userrole'];
|
|
1070
1017
|
class MenuAdapterComponent extends i5.BaseContainerComponent {
|
|
@@ -1138,7 +1085,6 @@
|
|
|
1138
1085
|
exports.MenuComponent = MenuComponent;
|
|
1139
1086
|
exports.MenuDropdownComponent = MenuDropdownComponent;
|
|
1140
1087
|
exports.MenuDropdownItemComponent = MenuDropdownItemComponent;
|
|
1141
|
-
exports.MenuModule = MenuModule;
|
|
1142
1088
|
exports.NavComponent = NavComponent;
|
|
1143
1089
|
exports.NavItemDirective = NavItemDirective;
|
|
1144
1090
|
exports.NavigationControlDirective = NavigationControlDirective;
|