@onemrvapublic/design-system 0.0.0
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/.dockerignore +4 -0
- package/.editorconfig +16 -0
- package/.github/workflows/npm-publish.yml +34 -0
- package/README.md +27 -0
- package/angular.json +214 -0
- package/build.sh +108 -0
- package/cypress.config.ts +40 -0
- package/index.html +10 -0
- package/npm-publish.sh +11 -0
- package/package.json +89 -0
- package/projects/onemrva/design-system/README.md +24 -0
- package/projects/onemrva/design-system/_index.scss +29 -0
- package/projects/onemrva/design-system/_utils.scss +25 -0
- package/projects/onemrva/design-system/layout/assets/logo_de.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_en.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_fr.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_nl.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_onem_rva.svg +32 -0
- package/projects/onemrva/design-system/layout/index.ts +7 -0
- package/projects/onemrva/design-system/layout/ng-package.json +6 -0
- package/projects/onemrva/design-system/layout/src/components/index.ts +31 -0
- package/projects/onemrva/design-system/layout/src/components/layout/_layout-mixin.component.scss +159 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.html +194 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.scss +137 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.ts +187 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.ts +23 -0
- package/projects/onemrva/design-system/layout/src/components/layout-footer/layout-footer.component.ts +11 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.html +57 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.ts +56 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.html +104 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.ts +88 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +9 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.html +44 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.ts +35 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/decorators/coerce-boolean-input.decorator.ts +19 -0
- package/projects/onemrva/design-system/layout/src/decorators/observable-content.decorator.ts +13 -0
- package/projects/onemrva/design-system/layout/src/directives/drawer-host.directive.ts +10 -0
- package/projects/onemrva/design-system/layout/src/enums/environment.enum.ts +6 -0
- package/projects/onemrva/design-system/layout/src/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/layout.module.ts +103 -0
- package/projects/onemrva/design-system/layout/src/models/onem-language.model.ts +4 -0
- package/projects/onemrva/design-system/layout/src/models/onemrva-profile.model.ts +57 -0
- package/projects/onemrva/design-system/layout/src/services/drawer.service.ts +28 -0
- package/projects/onemrva/design-system/layout/src/striphtml.pipe.ts +11 -0
- package/projects/onemrva/design-system/layout/src/test.ts +25 -0
- package/projects/onemrva/design-system/mat-avatar/index.ts +2 -0
- package/projects/onemrva/design-system/mat-avatar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.html +17 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.scss +130 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.ts +421 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.module.ts +17 -0
- package/projects/onemrva/design-system/mat-badge/index.ts +6 -0
- package/projects/onemrva/design-system/mat-badge/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.scss +152 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.ts +291 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.module.ts +8 -0
- package/projects/onemrva/design-system/mat-breadcrumb/index.ts +7 -0
- package/projects/onemrva/design-system/mat-breadcrumb/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +37 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +70 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +16 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +4 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +12 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +65 -0
- package/projects/onemrva/design-system/mat-clipboard/index.ts +6 -0
- package/projects/onemrva/design-system/mat-clipboard/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-clipboard/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.component.ts +16 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.module.ts +14 -0
- package/projects/onemrva/design-system/mat-datepicker-header/index.ts +5 -0
- package/projects/onemrva/design-system/mat-datepicker-header/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +11 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +53 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +285 -0
- package/projects/onemrva/design-system/mat-file-upload/index.ts +11 -0
- package/projects/onemrva/design-system/mat-file-upload/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/index.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +59 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +24 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +53 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +248 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +185 -0
- package/projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts +43 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/action-config.model.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts +94 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts +28 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts +68 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts +473 -0
- package/projects/onemrva/design-system/mat-input-bank-account/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-bank-account/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +32 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +9 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +125 -0
- package/projects/onemrva/design-system/mat-input-country/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-country/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-country/src/countries.ts +3182 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts +144 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +39 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +25 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +190 -0
- package/projects/onemrva/design-system/mat-input-phone/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-phone/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.html +43 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.ts +261 -0
- package/projects/onemrva/design-system/mat-input-phone/src/phone-number.directive.ts +47 -0
- package/projects/onemrva/design-system/mat-message-box/index.ts +2 -0
- package/projects/onemrva/design-system/mat-message-box/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.scss +60 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts +134 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts +12 -0
- package/projects/onemrva/design-system/mat-multi-select/index.ts +2 -0
- package/projects/onemrva/design-system/mat-multi-select/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +66 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html +24 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts +152 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts +31 -0
- package/projects/onemrva/design-system/mat-notification/index.ts +1 -0
- package/projects/onemrva/design-system/mat-notification/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-notification/src/_onemrva-mat-notification.component.scss +71 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html +10 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts +158 -0
- package/projects/onemrva/design-system/mat-paginator/index.ts +6 -0
- package/projects/onemrva/design-system/mat-paginator/ng-package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/src/_onemrva-mat-paginator.component.scss +122 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.html +104 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +184 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.ts +214 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.module.ts +15 -0
- package/projects/onemrva/design-system/mat-panel/index.ts +6 -0
- package/projects/onemrva/design-system/mat-panel/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts +20 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html +8 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html +10 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.scss +100 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts +122 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts +26 -0
- package/projects/onemrva/design-system/mat-pop-over/index.ts +4 -0
- package/projects/onemrva/design-system/mat-pop-over/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html +29 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.scss +141 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts +47 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts +19 -0
- package/projects/onemrva/design-system/mat-progress-bar/index.ts +1 -0
- package/projects/onemrva/design-system/mat-progress-bar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +37 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +13 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +27 -0
- package/projects/onemrva/design-system/mat-select-search/index.ts +3 -0
- package/projects/onemrva/design-system/mat-select-search/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-select-search/src/default-options.ts +42 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-no-entries-found.directive.ts +15 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search-clear.directive.ts +13 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.html +67 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.scss +126 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.spec.ts +790 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.ts +612 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.module.ts +53 -0
- package/projects/onemrva/design-system/mat-side-menu/index.ts +6 -0
- package/projects/onemrva/design-system/mat-side-menu/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.html +36 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.scss +50 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +66 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.ts +46 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.module.ts +14 -0
- package/projects/onemrva/design-system/mat-skeleton/index.ts +3 -0
- package/projects/onemrva/design-system/mat-skeleton/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +32 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.html +17 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.scss +216 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.ts +173 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.module.ts +16 -0
- package/projects/onemrva/design-system/mat-spinner/index.ts +6 -0
- package/projects/onemrva/design-system/mat-spinner/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-spinner/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.component.ts +11 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.module.ts +8 -0
- package/projects/onemrva/design-system/mat-stepper/index.ts +6 -0
- package/projects/onemrva/design-system/mat-stepper/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-stepper/src/_stepper-variables.scss +29 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +23 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.ts +60 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.html +53 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.module.ts +30 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.scss +106 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-stepper-animations.ts +40 -0
- package/projects/onemrva/design-system/mat-table-of-content/index.ts +8 -0
- package/projects/onemrva/design-system/mat-table-of-content/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +79 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +23 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +128 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +67 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +51 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +24 -0
- package/projects/onemrva/design-system/mat-task-list/index.ts +5 -0
- package/projects/onemrva/design-system/mat-task-list/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.html +1 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.scss +150 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.ts +50 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.module.ts +31 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.component.ts +18 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.html +17 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.scss +0 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.ts +117 -0
- package/projects/onemrva/design-system/mat-timepicker/index.ts +6 -0
- package/projects/onemrva/design-system/mat-timepicker/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.html +42 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.scss +129 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.ts +273 -0
- package/projects/onemrva/design-system/mat-timepicker/src/interfaces-and-types.ts +16 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.ts +289 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.module.ts +40 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +53 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +69 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +169 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +15 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.scss +32 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +135 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker.directive.ts +594 -0
- package/projects/onemrva/design-system/mat-timepicker/src/util.ts +97 -0
- package/projects/onemrva/design-system/mat-toast/index.ts +6 -0
- package/projects/onemrva/design-system/mat-toast/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.scss +54 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.ts +36 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.module.ts +11 -0
- package/projects/onemrva/design-system/mat-tooltip/index.ts +4 -0
- package/projects/onemrva/design-system/mat-tooltip/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.scss +9 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts +21 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +119 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts +11 -0
- package/projects/onemrva/design-system/ng-package.json +20 -0
- package/projects/onemrva/design-system/package.json +27 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Arri/303/250re-plan.svg +22 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Halo.svg +10 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Ombre.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page.svg +21 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page2.svg +19 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Soucoupe.svg +70 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Yeux.svg +6 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/shape.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/index.ts +5 -0
- package/projects/onemrva/design-system/page-not-found/ng-package.json +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.scss +16 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts +84 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-mixin.component.scss +12 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.html +31 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.scss +206 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts +59 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts +24 -0
- package/projects/onemrva/design-system/src/public-api.ts +5 -0
- package/projects/onemrva/design-system/tsconfig.lib.json +12 -0
- package/projects/onemrva/design-system/tsconfig.lib.prod.json +10 -0
- package/projects/onemrva/design-system/utils/index.ts +2 -0
- package/projects/onemrva/design-system/utils/ng-package.json +6 -0
- package/projects/onemrva/design-system/utils/src/enum.utils.ts +6 -0
- package/projects/onemrva/design-system/utils/src/enums/color.enum.ts +14 -0
- package/projects/onemrva/design-system/utils/src/enums/index.ts +2 -0
- package/projects/onemrva/design-system/utils/src/enums/size.enum.ts +11 -0
- package/projects/schematics/README.md +40 -0
- package/projects/schematics/package.json +25 -0
- package/projects/schematics/src/cmp-demo/schema.json +15 -0
- package/projects/schematics/src/collection.json +17 -0
- package/projects/schematics/src/component/files/root/ng-package.json +6 -0
- package/projects/schematics/src/component/files/src/onemrva-mat-__name__.component.html +4 -0
- package/projects/schematics/src/component/schema.json +11 -0
- package/projects/schematics/src/demo/files/demo/demo-__name__.component.html +2 -0
- package/projects/schematics/src/demo/files/demo/readme.md +26 -0
- package/projects/schematics/src/demo/schema.json +15 -0
- package/projects/schematics/tsconfig.json +24 -0
- package/projects/test/.nycrc +5 -0
- package/projects/test/cypress/coverage.webpack.ts +20 -0
- package/projects/test/cypress/cucumber-json/basictest.cucumber.json +402 -0
- package/projects/test/cypress/fixtures/example.json +5 -0
- package/projects/test/cypress/integration/basictest.feature +53 -0
- package/projects/test/cypress/integration/common/basicTestSteps.ts +54 -0
- package/projects/test/cypress/plugins/index.ts +13 -0
- package/projects/test/cypress/support/commands.ts +44 -0
- package/projects/test/cypress/support/e2e.ts +20 -0
- package/projects/test/cypress/tsconfig.json +10 -0
- package/projects/test/cypress/videos/basictest.feature.mp4 +0 -0
- package/projects/test/karma.conf.js +44 -0
- package/projects/test/src/app/app-routing.module.ts +14 -0
- package/projects/test/src/app/app.component.html +14 -0
- package/projects/test/src/app/app.component.scss +0 -0
- package/projects/test/src/app/app.component.spec.ts +35 -0
- package/projects/test/src/app/app.component.ts +51 -0
- package/projects/test/src/app/app.module.ts +103 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.html +77 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.scss +4 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.ts +13 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.html +389 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.scss +4 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.ts +22 -0
- package/projects/test/src/app/demos/badge/readme.md +30 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.html +20 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.ts +7 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.module.ts +89 -0
- package/projects/test/src/app/demos/breadcrumb/readme.md +29 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.html +10 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.scss +5 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.ts +12 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.module.ts +43 -0
- package/projects/test/src/app/demos/datepicker/readme.md +36 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.html +30 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.ts +132 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.service.ts +60 -0
- package/projects/test/src/app/demos/file-upload/readme.md +26 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.component.ts +19 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.module.ts +20 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.html +9 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.ts +14 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.module.ts +26 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.component.ts +13 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.module.ts +20 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.html +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.ts +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.module.ts +21 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.html +32 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.ts +12 -0
- package/projects/test/src/app/demos/message-box/readme.md +26 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.html +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.scss +23 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.ts +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.module.ts +38 -0
- package/projects/test/src/app/demos/multiselect/readme.md +34 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.html +21 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.scss +6 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.ts +50 -0
- package/projects/test/src/app/demos/not-found/readme.md +44 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.html +5 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.ts +10 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.html +35 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.ts +25 -0
- package/projects/test/src/app/demos/paginator/readme.md +89 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.html +53 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.scss +3 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.ts +20 -0
- package/projects/test/src/app/demos/panel/readme.md +26 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.html +130 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.scss +9 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.ts +13 -0
- package/projects/test/src/app/demos/pop-over/readme.md +26 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.html +19 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.ts +35 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.html +5 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.ts +34 -0
- package/projects/test/src/app/demos/side-menu/readme.md +30 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.html +119 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.scss +0 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.ts +35 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.html +1 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.ts +10 -0
- package/projects/test/src/app/demos/spinner/readme.md +24 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.html +108 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.scss +3 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.ts +55 -0
- package/projects/test/src/app/demos/summary-stepper/readme.md +26 -0
- package/projects/test/src/app/demos/table/demo-table-datasource.ts +140 -0
- package/projects/test/src/app/demos/table/demo-table.component.html +41 -0
- package/projects/test/src/app/demos/table/demo-table.component.scss +17 -0
- package/projects/test/src/app/demos/table/demo-table.component.ts +51 -0
- package/projects/test/src/app/demos/table/demo-table.module.ts +45 -0
- package/projects/test/src/app/demos/table/readme.md +27 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.html +37 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.scss +3 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.ts +14 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.module.ts +29 -0
- package/projects/test/src/app/demos/task-list/readme.md +26 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.html +9 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.ts +31 -0
- package/projects/test/src/app/demos/timepicker/readme.md +26 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.html +8 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.scss +3 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.ts +61 -0
- package/projects/test/src/app/demos/toast/readme.md +30 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.html +288 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.ts +26 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.html +73 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.scss +11 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.ts +14 -0
- package/projects/test/src/app/home.component.ts +54 -0
- package/projects/test/src/app/material.module.ts +39 -0
- package/projects/test/src/app/onemrva-translate-http-loader.ts +35 -0
- package/projects/test/src/app/routes.ts +198 -0
- package/projects/test/src/assets/.gitkeep +0 -0
- package/projects/test/src/assets/i18n/de.json +80 -0
- package/projects/test/src/assets/i18n/en.json +80 -0
- package/projects/test/src/assets/i18n/fr.json +80 -0
- package/projects/test/src/assets/i18n/nl.json +79 -0
- package/projects/test/src/environments/environment.e2e.ts +3 -0
- package/projects/test/src/environments/environment.prod.ts +3 -0
- package/projects/test/src/environments/environment.ts +16 -0
- package/projects/test/src/favicon.ico +0 -0
- package/projects/test/src/index.html +15 -0
- package/projects/test/src/main.ts +12 -0
- package/projects/test/src/polyfills.ts +53 -0
- package/projects/test/src/styles.scss +22 -0
- package/projects/test/src/test.ts +26 -0
- package/projects/test/tsconfig.app.json +15 -0
- package/projects/test/tsconfig.spec.json +18 -0
- package/rva.crt +36 -0
- package/tsconfig.json +44 -0
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
ContentChild,
|
|
5
|
+
ContentChildren,
|
|
6
|
+
Input,
|
|
7
|
+
AfterViewInit,
|
|
8
|
+
OnDestroy,
|
|
9
|
+
QueryList,
|
|
10
|
+
OnInit,
|
|
11
|
+
Inject,
|
|
12
|
+
isDevMode,
|
|
13
|
+
EventEmitter,
|
|
14
|
+
Output,
|
|
15
|
+
ViewChild,
|
|
16
|
+
ElementRef,
|
|
17
|
+
} from '@angular/core';
|
|
18
|
+
import { LayoutRouteComponent } from '../layout-route/layout-route.component';
|
|
19
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
20
|
+
import { LayoutContentComponent } from '../layout-content/layout-content.component';
|
|
21
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
22
|
+
import { LayoutTitleComponent } from '../layout-title/layout-title.component';
|
|
23
|
+
|
|
24
|
+
import { CoerceBooleanInput } from '../../decorators/coerce-boolean-input.decorator';
|
|
25
|
+
|
|
26
|
+
import { OnemRvaLanguage } from '../../models/onem-language.model';
|
|
27
|
+
import { Environment } from '../../enums/environment.enum';
|
|
28
|
+
import {
|
|
29
|
+
BreakpointObserver,
|
|
30
|
+
Breakpoints,
|
|
31
|
+
BreakpointState,
|
|
32
|
+
} from '@angular/cdk/layout';
|
|
33
|
+
import { DOCUMENT } from '@angular/common';
|
|
34
|
+
import { LayoutFooterComponent } from '../layout-footer/layout-footer.component';
|
|
35
|
+
import { OnemRvaProfile } from '../../models/onemrva-profile.model';
|
|
36
|
+
import { LayoutLoginMenuComponent } from '../layout-login-menu/layout-login-menu.component';
|
|
37
|
+
import { MatDrawer } from '@angular/material/sidenav';
|
|
38
|
+
import { DrawerHostDirective } from '../../directives/drawer-host.directive';
|
|
39
|
+
import { OnemrvaDrawerService } from '../../services/drawer.service';
|
|
40
|
+
import { LayoutSidenavComponent } from '../layout-sidenav/layout-sidenav.component';
|
|
41
|
+
|
|
42
|
+
@Component({
|
|
43
|
+
selector: 'onemrva-layout',
|
|
44
|
+
templateUrl: './layout.component.html',
|
|
45
|
+
styleUrls: ['./layout.component.scss'],
|
|
46
|
+
})
|
|
47
|
+
export class LayoutComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
48
|
+
@ContentChildren(LayoutRouteComponent)
|
|
49
|
+
routes?: QueryList<LayoutRouteComponent>;
|
|
50
|
+
|
|
51
|
+
@ContentChild(LayoutTitleComponent) title?: LayoutTitleComponent;
|
|
52
|
+
@ContentChild(LayoutLoginMenuComponent) loginMenu?: LayoutLoginMenuComponent;
|
|
53
|
+
@ContentChild(LayoutContentComponent) content?: LayoutContentComponent;
|
|
54
|
+
|
|
55
|
+
@ContentChild(LayoutFooterComponent)
|
|
56
|
+
footer?: LayoutFooterComponent;
|
|
57
|
+
|
|
58
|
+
@Input()
|
|
59
|
+
@CoerceBooleanInput(true)
|
|
60
|
+
fluid: any = false;
|
|
61
|
+
|
|
62
|
+
@Input()
|
|
63
|
+
logo: string = ''; // custom logo, empty string will show default onem/rva/neo/lfa localised logo
|
|
64
|
+
|
|
65
|
+
@Input()
|
|
66
|
+
languages: OnemRvaLanguage[] = []; // list of languages
|
|
67
|
+
|
|
68
|
+
@Input()
|
|
69
|
+
environment?: Environment; // possible environment to show on the frontend LOCAL, TEST, VAL, PROD
|
|
70
|
+
|
|
71
|
+
@Input()
|
|
72
|
+
logoRedictionUrl?: string | any[] | null = ''; // value for routerLink from logo. "" by default. Deactivated when set to null
|
|
73
|
+
|
|
74
|
+
selectedIndex = 0;
|
|
75
|
+
destroyNotifier$: Subject<void> = new Subject();
|
|
76
|
+
|
|
77
|
+
@Input()
|
|
78
|
+
profile: OnemRvaProfile | null = null; // To be defined for application with authentication
|
|
79
|
+
|
|
80
|
+
@Output()
|
|
81
|
+
login: EventEmitter<void> = new EventEmitter<void>();
|
|
82
|
+
|
|
83
|
+
@Output()
|
|
84
|
+
logout: EventEmitter<void> = new EventEmitter<void>();
|
|
85
|
+
// isLogoutUsed: boolean = false;
|
|
86
|
+
|
|
87
|
+
env = Environment;
|
|
88
|
+
|
|
89
|
+
isSmall = true;
|
|
90
|
+
|
|
91
|
+
@ViewChild(MatDrawer, { static: true }) drawer!: MatDrawer;
|
|
92
|
+
@ViewChild(DrawerHostDirective, { static: true })
|
|
93
|
+
drawerHost!: DrawerHostDirective;
|
|
94
|
+
|
|
95
|
+
@Input()
|
|
96
|
+
id: string = 'main';
|
|
97
|
+
|
|
98
|
+
@Input()
|
|
99
|
+
role: string = 'main';
|
|
100
|
+
|
|
101
|
+
constructor(
|
|
102
|
+
public translateService: TranslateService,
|
|
103
|
+
private cd: ChangeDetectorRef,
|
|
104
|
+
public breakpointObserver: BreakpointObserver,
|
|
105
|
+
@Inject(DOCUMENT) private document: Document,
|
|
106
|
+
public drawerService: OnemrvaDrawerService
|
|
107
|
+
) {
|
|
108
|
+
// this.isLogoutUsed = this.logout.observers.length > 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
ngOnInit() {
|
|
112
|
+
this.selectedIndex = this.languages.findIndex(
|
|
113
|
+
(l) => l.code === this.translateService.currentLang
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
this.document.documentElement.lang = this.translateService.currentLang;
|
|
117
|
+
|
|
118
|
+
this.breakpointObserver
|
|
119
|
+
.observe([Breakpoints.XSmall, Breakpoints.Small])
|
|
120
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
121
|
+
.subscribe((state: BreakpointState) => {
|
|
122
|
+
if (state.matches) {
|
|
123
|
+
this.isSmall = true;
|
|
124
|
+
} else {
|
|
125
|
+
this.drawerService.close();
|
|
126
|
+
this.isSmall = false;
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
if (this.logo === '') {
|
|
131
|
+
this.logo = `/assets/logo_${this.translateService.currentLang}.svg`;
|
|
132
|
+
this.translateService.onLangChange
|
|
133
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
134
|
+
.subscribe((lang) => {
|
|
135
|
+
this.logo = `/assets/logo_${lang.lang}.svg`;
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
this.translateService.onLangChange
|
|
139
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
140
|
+
.subscribe((event) => {
|
|
141
|
+
this.selectedIndex = this.languages.findIndex(
|
|
142
|
+
(lang) => lang.code === event.lang
|
|
143
|
+
);
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
this.drawerService.host = this.drawerHost;
|
|
147
|
+
this.drawerService.drawer = this.drawer;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
ngAfterViewInit() {
|
|
151
|
+
if (isDevMode()) {
|
|
152
|
+
this.cd.detectChanges();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
ngOnDestroy(): void {
|
|
157
|
+
this.destroyNotifier$.next();
|
|
158
|
+
this.destroyNotifier$.complete();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
doLogout() {
|
|
162
|
+
this.logout.next();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
doLogin() {
|
|
166
|
+
this.login.next();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
changeLanguage(index: number) {
|
|
170
|
+
const language = this.languages[index];
|
|
171
|
+
this.translateService.use(language.code);
|
|
172
|
+
this.document.documentElement.lang = language.code;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
toggleSideNav() {
|
|
176
|
+
this.drawerHost.viewContainerRef.clear();
|
|
177
|
+
const componentRef = this.drawerHost.viewContainerRef.createComponent(
|
|
178
|
+
LayoutSidenavComponent
|
|
179
|
+
);
|
|
180
|
+
componentRef.instance.isSmall = this.isSmall;
|
|
181
|
+
componentRef.instance.languages = this.languages;
|
|
182
|
+
componentRef.instance.routes = this.routes;
|
|
183
|
+
this.drawerService.hasBackdrop = false;
|
|
184
|
+
|
|
185
|
+
this.drawer.open();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { LayoutContentComponent } from './layout-content.component';
|
|
4
|
+
|
|
5
|
+
describe('LayoutContentComponent', () => {
|
|
6
|
+
let component: LayoutContentComponent;
|
|
7
|
+
let fixture: ComponentFixture<LayoutContentComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [LayoutContentComponent],
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(LayoutContentComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
TemplateRef,
|
|
6
|
+
ViewChild,
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'onemrva-layout-content',
|
|
11
|
+
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
12
|
+
})
|
|
13
|
+
export class LayoutContentComponent {
|
|
14
|
+
@Input() customNgClass: any;
|
|
15
|
+
|
|
16
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
17
|
+
|
|
18
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
19
|
+
|
|
20
|
+
ngAfterViewInit() {
|
|
21
|
+
this.cd.detectChanges();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-layout-footer',
|
|
5
|
+
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
6
|
+
})
|
|
7
|
+
export class LayoutFooterComponent {
|
|
8
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
9
|
+
|
|
10
|
+
constructor() {}
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { LayoutLoginMenuComponent } from './layout-login-menu.component';
|
|
4
|
+
|
|
5
|
+
describe('LayoutLoginMenuComponent', () => {
|
|
6
|
+
let component: LayoutLoginMenuComponent;
|
|
7
|
+
let fixture: ComponentFixture<LayoutLoginMenuComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ LayoutLoginMenuComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(LayoutLoginMenuComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {AfterViewInit, ChangeDetectorRef, Component, Input, TemplateRef, ViewChild} from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-layout-login-menu',
|
|
5
|
+
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
6
|
+
})
|
|
7
|
+
export class LayoutLoginMenuComponent implements AfterViewInit {
|
|
8
|
+
@Input() customNgClass: any;
|
|
9
|
+
|
|
10
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
11
|
+
|
|
12
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
13
|
+
|
|
14
|
+
ngAfterViewInit() {
|
|
15
|
+
this.cd.detectChanges();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
<ng-template #navTpl>
|
|
3
|
+
<ng-container *ngIf="!hasSubroutes()">
|
|
4
|
+
<ng-container *ngTemplateOutlet="contentTmpl"></ng-container>
|
|
5
|
+
</ng-container>
|
|
6
|
+
|
|
7
|
+
<ng-container *ngIf="hasSubroutes()">
|
|
8
|
+
<span
|
|
9
|
+
[matMenuTriggerFor]="menu">
|
|
10
|
+
{{ label }}
|
|
11
|
+
</span>
|
|
12
|
+
<mat-icon
|
|
13
|
+
[matMenuTriggerFor]="menu" style="width: 16px;">expand_more</mat-icon>
|
|
14
|
+
<mat-menu #menu>
|
|
15
|
+
<ng-container *ngFor="let e of subroutes?.toArray(); let i = index">
|
|
16
|
+
<ng-container *ngIf="!e.hasSubroutes()">
|
|
17
|
+
<button mat-menu-item
|
|
18
|
+
[routerLink]="e.routerLink"
|
|
19
|
+
routerLinkActive="active">
|
|
20
|
+
<ng-container *ngIf="e.template as routeTemplate">
|
|
21
|
+
<ng-container *ngTemplateOutlet="routeTemplate"></ng-container>
|
|
22
|
+
</ng-container>
|
|
23
|
+
</button>
|
|
24
|
+
</ng-container>
|
|
25
|
+
<ng-container *ngIf="e.hasSubroutes()">
|
|
26
|
+
<button mat-menu-item
|
|
27
|
+
[matMenuTriggerFor]="submenu">
|
|
28
|
+
<ng-container *ngIf="e.template as routeTemplate">
|
|
29
|
+
<ng-container *ngTemplateOutlet="routeTemplate"></ng-container>
|
|
30
|
+
</ng-container>
|
|
31
|
+
</button>
|
|
32
|
+
<mat-menu #submenu>
|
|
33
|
+
<ng-container *ngFor="let es of e.subroutes?.toArray(); let i = index">
|
|
34
|
+
<button mat-menu-item
|
|
35
|
+
[routerLink]="es.routerLink"
|
|
36
|
+
routerLinkActive="active">
|
|
37
|
+
<ng-container *ngIf="es.template as routeTemplate">
|
|
38
|
+
<ng-container *ngTemplateOutlet="routeTemplate">
|
|
39
|
+
|
|
40
|
+
</ng-container>
|
|
41
|
+
</ng-container>
|
|
42
|
+
</button>
|
|
43
|
+
</ng-container>
|
|
44
|
+
</mat-menu>
|
|
45
|
+
</ng-container>
|
|
46
|
+
</ng-container>
|
|
47
|
+
</mat-menu>
|
|
48
|
+
</ng-container>
|
|
49
|
+
</ng-template>
|
|
50
|
+
|
|
51
|
+
<ng-template #navMblTpl>
|
|
52
|
+
<ng-container *ngTemplateOutlet="contentTmpl"></ng-container>
|
|
53
|
+
</ng-template>
|
|
54
|
+
|
|
55
|
+
<ng-template #contentTmpl>
|
|
56
|
+
<ng-content></ng-content>
|
|
57
|
+
</ng-template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { LayoutRouteComponent } from './layout-route.component';
|
|
4
|
+
|
|
5
|
+
describe('LayoutRouteComponent', () => {
|
|
6
|
+
let component: LayoutRouteComponent;
|
|
7
|
+
let fixture: ComponentFixture<LayoutRouteComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [LayoutRouteComponent],
|
|
12
|
+
}).compileComponents();
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
beforeEach(() => {
|
|
16
|
+
fixture = TestBed.createComponent(LayoutRouteComponent);
|
|
17
|
+
component = fixture.componentInstance;
|
|
18
|
+
fixture.detectChanges();
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
it('should create', () => {
|
|
22
|
+
expect(component).toBeTruthy();
|
|
23
|
+
});
|
|
24
|
+
});
|
package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component, ContentChildren,
|
|
4
|
+
Input, QueryList,
|
|
5
|
+
TemplateRef,
|
|
6
|
+
ViewChild,
|
|
7
|
+
} from '@angular/core';
|
|
8
|
+
import {Router, RouterLink} from '@angular/router';
|
|
9
|
+
import {LayoutSubrouteComponent} from "../layout-subroute/layout-subroute.component";
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'onemrva-layout-route',
|
|
13
|
+
templateUrl: 'layout-route.component.html'
|
|
14
|
+
})
|
|
15
|
+
export class LayoutRouteComponent {
|
|
16
|
+
@Input() customNgClass: any;
|
|
17
|
+
|
|
18
|
+
@ViewChild('navTpl') template: TemplateRef<any> | null = null;
|
|
19
|
+
@ViewChild('navMblTpl') mobileTemplate: TemplateRef<any> | null = null;
|
|
20
|
+
@ViewChild('contentTpl') contentTemplate: TemplateRef<any> | null = null;
|
|
21
|
+
|
|
22
|
+
@Input() routerLink: typeof RouterLink.prototype.routerLink;
|
|
23
|
+
@Input() routerLinkActiveOptions?: any;
|
|
24
|
+
@Input() dataCy?: string;
|
|
25
|
+
@Input() baseRouteForActiveMenu?: string;
|
|
26
|
+
@Input() label?: string;
|
|
27
|
+
|
|
28
|
+
@ContentChildren(LayoutSubrouteComponent)
|
|
29
|
+
subroutes?: QueryList<LayoutSubrouteComponent>;
|
|
30
|
+
|
|
31
|
+
hasSubroutes() {
|
|
32
|
+
return this.subroutes !== undefined && this.subroutes.length > 0;
|
|
33
|
+
}
|
|
34
|
+
constructor(
|
|
35
|
+
private cd: ChangeDetectorRef,
|
|
36
|
+
private router: Router
|
|
37
|
+
) {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
ngAfterViewInit() {
|
|
41
|
+
this.cd.detectChanges();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
isRouteActive() {
|
|
45
|
+
if (
|
|
46
|
+
this.routerLink === null ||
|
|
47
|
+
this.routerLink === undefined ) {
|
|
48
|
+
if (this.baseRouteForActiveMenu) {
|
|
49
|
+
const split_route = this.router.url.split('/');
|
|
50
|
+
const split_menu_route = this.baseRouteForActiveMenu.split('/');
|
|
51
|
+
return split_route[1] === split_menu_route[1];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<ng-container
|
|
2
|
+
*ngIf="
|
|
3
|
+
isSmall &&
|
|
4
|
+
(routes?.toArray()?.length || (languages && languages.length > 1))
|
|
5
|
+
"
|
|
6
|
+
>
|
|
7
|
+
<button
|
|
8
|
+
type="button"
|
|
9
|
+
mat-icon-button
|
|
10
|
+
class="menu-close-button"
|
|
11
|
+
(click)="close()"
|
|
12
|
+
data-cy="smallDeviceMenu"
|
|
13
|
+
attr.aria-label="{{ 'layout.menu' | translate }}"
|
|
14
|
+
>
|
|
15
|
+
<mat-icon>close</mat-icon>
|
|
16
|
+
</button>
|
|
17
|
+
<ng-container *ngIf="isSmall && languages && languages.length > 1">
|
|
18
|
+
<mat-tab-group
|
|
19
|
+
class="language-tabs"
|
|
20
|
+
[selectedIndex]="selectedLanguageIndex$ | async"
|
|
21
|
+
(selectedIndexChange)="changeLanguage($event)"
|
|
22
|
+
>
|
|
23
|
+
<mat-tab *ngFor="let lang of languages">
|
|
24
|
+
<div *matTabLabel [attr.data-cy]="'language_' + lang.code">
|
|
25
|
+
{{ lang.label }}
|
|
26
|
+
</div>
|
|
27
|
+
</mat-tab>
|
|
28
|
+
</mat-tab-group>
|
|
29
|
+
</ng-container>
|
|
30
|
+
<ng-container *ngIf="isSmall && routes?.toArray()?.length">
|
|
31
|
+
<mat-divider
|
|
32
|
+
style="align-self: stretch; margin-bottom: 10px"
|
|
33
|
+
*ngIf="languages && languages.length > 1"
|
|
34
|
+
></mat-divider>
|
|
35
|
+
<div>
|
|
36
|
+
<ng-container *ngFor="let e of routes?.toArray(); let i = index">
|
|
37
|
+
<ng-container *ngIf="!e.hasSubroutes()">
|
|
38
|
+
<button
|
|
39
|
+
[routerLink]="e.routerLink"
|
|
40
|
+
[routerLinkActiveOptions]="{ exact: true }"
|
|
41
|
+
routerLinkActive="active"
|
|
42
|
+
class="mobile-menu-item"
|
|
43
|
+
>
|
|
44
|
+
<ng-container *ngIf="e.mobileTemplate as routeTemplate">
|
|
45
|
+
<ng-container *ngTemplateOutlet="routeTemplate"></ng-container>
|
|
46
|
+
</ng-container>
|
|
47
|
+
</button>
|
|
48
|
+
</ng-container>
|
|
49
|
+
<ng-container *ngIf="e.hasSubroutes()">
|
|
50
|
+
<button
|
|
51
|
+
[routerLink]="e.routerLink"
|
|
52
|
+
[routerLinkActiveOptions]="{ exact: false }"
|
|
53
|
+
routerLinkActive="active"
|
|
54
|
+
class="mobile-menu-item"
|
|
55
|
+
(click)="openSubmenu(i)"
|
|
56
|
+
>
|
|
57
|
+
<ng-container *ngIf="e.mobileTemplate as routeTemplate">
|
|
58
|
+
<ng-container *ngTemplateOutlet="routeTemplate"></ng-container>
|
|
59
|
+
</ng-container>
|
|
60
|
+
<mat-icon>expand_more</mat-icon>
|
|
61
|
+
</button>
|
|
62
|
+
<div [@slideInOut]="helpMenuOpen[i][0]">
|
|
63
|
+
<ng-container
|
|
64
|
+
*ngFor="let es of e.subroutes?.toArray(); let j = index"
|
|
65
|
+
>
|
|
66
|
+
<button
|
|
67
|
+
[routerLink]="es.routerLink"
|
|
68
|
+
[routerLinkActiveOptions]="{ exact: true }"
|
|
69
|
+
routerLinkActive="active"
|
|
70
|
+
class="mobile-menu-item"
|
|
71
|
+
(click)="openSubmenu(i, j + 1)"
|
|
72
|
+
>
|
|
73
|
+
|
|
74
|
+
<ng-container *ngIf="es.template as routeTemplate">
|
|
75
|
+
<ng-container
|
|
76
|
+
*ngTemplateOutlet="routeTemplate"
|
|
77
|
+
></ng-container>
|
|
78
|
+
</ng-container>
|
|
79
|
+
<mat-icon *ngIf="es.hasSubroutes()">expand_more</mat-icon>
|
|
80
|
+
</button>
|
|
81
|
+
<div [@slideInOut]="helpMenuOpen[i][j + 1]">
|
|
82
|
+
<ng-container *ngFor="let ess of es.subroutes?.toArray()">
|
|
83
|
+
<button
|
|
84
|
+
[routerLink]="ess.routerLink"
|
|
85
|
+
[routerLinkActiveOptions]="{ exact: false }"
|
|
86
|
+
routerLinkActive="active"
|
|
87
|
+
class="mobile-menu-item"
|
|
88
|
+
>
|
|
89
|
+
|
|
90
|
+
<ng-container *ngIf="ess.template as routeTemplate">
|
|
91
|
+
<ng-container
|
|
92
|
+
*ngTemplateOutlet="routeTemplate"
|
|
93
|
+
></ng-container>
|
|
94
|
+
</ng-container>
|
|
95
|
+
</button>
|
|
96
|
+
</ng-container>
|
|
97
|
+
</div>
|
|
98
|
+
</ng-container>
|
|
99
|
+
</div>
|
|
100
|
+
</ng-container>
|
|
101
|
+
</ng-container>
|
|
102
|
+
</div>
|
|
103
|
+
</ng-container>
|
|
104
|
+
</ng-container>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import { Component, Inject, Input, OnInit, QueryList } from '@angular/core';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { LayoutRouteComponent } from '../layout-route/layout-route.component';
|
|
5
|
+
import { OnemRvaLanguage } from '../../models/onem-language.model';
|
|
6
|
+
import { Observable, map, startWith } from 'rxjs';
|
|
7
|
+
import { OnemrvaDrawerService } from '../../services/drawer.service';
|
|
8
|
+
import {
|
|
9
|
+
animate,
|
|
10
|
+
state,
|
|
11
|
+
style,
|
|
12
|
+
transition,
|
|
13
|
+
trigger,
|
|
14
|
+
} from '@angular/animations';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'onemrva-layout-sidenav',
|
|
18
|
+
templateUrl: 'layout-sidenav.component.html',
|
|
19
|
+
animations: [
|
|
20
|
+
trigger('slideInOut', [
|
|
21
|
+
state(
|
|
22
|
+
'in',
|
|
23
|
+
style({
|
|
24
|
+
overflow: 'hidden',
|
|
25
|
+
height: '*',
|
|
26
|
+
})
|
|
27
|
+
),
|
|
28
|
+
state(
|
|
29
|
+
'out',
|
|
30
|
+
style({
|
|
31
|
+
opacity: '0',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
height: '0px',
|
|
34
|
+
})
|
|
35
|
+
),
|
|
36
|
+
transition('in => out', animate('400ms ease-in-out')),
|
|
37
|
+
transition('out => in', animate('400ms ease-in-out')),
|
|
38
|
+
]),
|
|
39
|
+
],
|
|
40
|
+
})
|
|
41
|
+
export class LayoutSidenavComponent implements OnInit {
|
|
42
|
+
@Input() isSmall!: boolean;
|
|
43
|
+
@Input() languages!: OnemRvaLanguage[];
|
|
44
|
+
@Input() routes?: QueryList<LayoutRouteComponent>;
|
|
45
|
+
|
|
46
|
+
selectedLanguageIndex$: Observable<number>;
|
|
47
|
+
|
|
48
|
+
helpMenuOpen!: string[][];
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
private translateService: TranslateService,
|
|
52
|
+
@Inject(DOCUMENT) private document: Document,
|
|
53
|
+
private drawerService: OnemrvaDrawerService
|
|
54
|
+
) {
|
|
55
|
+
this.selectedLanguageIndex$ = this.translateService.onLangChange.pipe(
|
|
56
|
+
startWith(null),
|
|
57
|
+
map(() =>
|
|
58
|
+
this.languages.findIndex(
|
|
59
|
+
(l) => l.code === this.translateService.currentLang
|
|
60
|
+
)
|
|
61
|
+
)
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
ngOnInit() {
|
|
66
|
+
if (!!this.routes)
|
|
67
|
+
this.helpMenuOpen = this.routes.map((route) =>
|
|
68
|
+
route.hasSubroutes()
|
|
69
|
+
? ['out', ...route.subroutes!.map(() => 'out')]
|
|
70
|
+
: ['in']
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
changeLanguage(index: number) {
|
|
75
|
+
const language = this.languages[index];
|
|
76
|
+
this.translateService.use(language.code);
|
|
77
|
+
this.document.documentElement.lang = language.code;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
close() {
|
|
81
|
+
this.drawerService.close();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
openSubmenu(index: number, subIdx: number = 0) {
|
|
85
|
+
this.helpMenuOpen[index][subIdx] =
|
|
86
|
+
this.helpMenuOpen[index][subIdx] === 'out' ? 'in' : 'out';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component, TemplateRef, ViewChild } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-layout-sidenav-title',
|
|
5
|
+
template: ` <ng-template><ng-content></ng-content></ng-template> `,
|
|
6
|
+
})
|
|
7
|
+
export class LayoutSidenavTitleComponent {
|
|
8
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
// This does not seem to work for sub menus as they how the sub menu only on click instead of on hover
|
|
3
|
+
<ng-template #navTpl>
|
|
4
|
+
<ng-container *ngIf="!hasSubroutes()">
|
|
5
|
+
<button mat-menu-item
|
|
6
|
+
[routerLink]="routerLink"
|
|
7
|
+
routerLinkActive="active">
|
|
8
|
+
<ng-container *ngIf="template as routeTemplate">
|
|
9
|
+
|
|
10
|
+
<ng-container *ngTemplateOutlet="contentTmpl"></ng-container>
|
|
11
|
+
</ng-container>
|
|
12
|
+
</button>
|
|
13
|
+
</ng-container>
|
|
14
|
+
|
|
15
|
+
<ng-container *ngIf="hasSubroutes()">
|
|
16
|
+
<button mat-menu-item
|
|
17
|
+
[matMenuTriggerFor]="submenu">
|
|
18
|
+
<ng-container *ngTemplateOutlet="contentTmpl"></ng-container>
|
|
19
|
+
</button>
|
|
20
|
+
<mat-menu #submenu>
|
|
21
|
+
<ng-container *ngFor="let e of subroutes?.toArray(); let i = index">
|
|
22
|
+
<button mat-menu-item
|
|
23
|
+
[routerLink]="e.routerLink"
|
|
24
|
+
routerLinkActive="active">
|
|
25
|
+
<ng-container *ngIf="e.template as routeTemplate">
|
|
26
|
+
<ng-container *ngTemplateOutlet="routeTemplate">
|
|
27
|
+
|
|
28
|
+
</ng-container>
|
|
29
|
+
</ng-container>
|
|
30
|
+
</button>
|
|
31
|
+
</ng-container>
|
|
32
|
+
</mat-menu>
|
|
33
|
+
</ng-container>
|
|
34
|
+
|
|
35
|
+
<ng-template #contentTmpl>
|
|
36
|
+
<ng-content></ng-content>
|
|
37
|
+
</ng-template>
|
|
38
|
+
|
|
39
|
+
</ng-template>-->
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<ng-template>
|
|
43
|
+
<ng-content></ng-content>
|
|
44
|
+
</ng-template>
|