@onemrvapublic/design-system 19.4.0-alpha.9 → 20.0.0-develop.1
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/address/index.d.ts +8 -0
- package/address/src/address.scss +0 -0
- package/fesm2022/onemrvapublic-design-system-address.mjs +22 -0
- package/fesm2022/onemrvapublic-design-system-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +10 -9
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-layout.mjs +125 -141
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +119 -118
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +37 -32
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +30 -24
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +43 -5
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +14 -16
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +33 -0
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +30 -29
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -10
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +92 -106
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +18 -15
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +43 -48
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +17 -17
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +15 -15
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +26 -36
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +18 -18
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +18 -8
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +20 -26
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +11 -13
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +40 -42
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +29 -29
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +19 -19
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +36 -56
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +11 -11
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +14 -15
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +9 -9
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +16 -16
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +35 -17
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +8 -8
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +35 -36
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +33 -33
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +75 -96
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +13 -16
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +17 -17
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +18 -18
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +25 -31
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +207 -187
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +10269 -3
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/flag-icon/index.d.ts +18 -1
- package/index.d.ts +3063 -3
- package/layout/index.d.ts +259 -7
- package/mat-avatar/index.d.ts +248 -2
- package/mat-avatar/src/onemrva-mat-avatar.component.scss +48 -11
- package/mat-breadcrumb/index.d.ts +40 -3
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +7 -11
- package/mat-carousel/index.d.ts +52 -2
- package/mat-carousel/src/onemrva-mat-carousel.component.scss +4 -3
- package/mat-choice-chip/index.d.ts +19 -1
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +10 -2
- package/mat-copy-to-clipboard/index.d.ts +26 -1
- package/mat-country-item/index.d.ts +10 -0
- package/mat-datepicker-header/index.d.ts +44 -1
- package/mat-empty-row/index.d.ts +19 -1
- package/mat-file-upload/index.d.ts +301 -8
- package/mat-input-address/index.d.ts +31 -1
- package/mat-input-birthplace/index.d.ts +36 -1
- package/mat-input-country/index.d.ts +30 -1
- package/mat-input-country/src/onemrva-mat-input-country.component.scss +1 -1
- package/mat-input-enterprise-number/index.d.ts +37 -1
- package/mat-input-iban/index.d.ts +79 -1
- package/mat-input-phone/index.d.ts +44 -2
- package/mat-message-box/index.d.ts +101 -2
- package/mat-multi-select/index.d.ts +57 -2
- package/mat-notification/index.d.ts +43 -1
- package/mat-paginator/index.d.ts +58 -2
- package/mat-panel/index.d.ts +55 -6
- package/mat-panel/src/onemrva-mat-panel.component.scss +34 -2
- package/mat-pop-over/index.d.ts +40 -4
- package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +9 -9
- package/mat-progress-bar/index.d.ts +18 -1
- package/mat-select-search/index.d.ts +197 -3
- package/mat-selectable-box/index.d.ts +29 -2
- package/mat-side-menu/index.d.ts +33 -2
- package/mat-skeleton/index.d.ts +100 -3
- package/mat-spinner/index.d.ts +25 -3
- package/mat-stepper/index.d.ts +36 -2
- package/mat-stepper/src/onemrva-mat-stepper.scss +2 -0
- package/mat-sticker/index.d.ts +14 -2
- package/mat-sticker/src/onemrva-mat-sticker.component.scss +5 -0
- package/mat-table-of-content/index.d.ts +84 -4
- package/mat-task-list/index.d.ts +57 -5
- package/mat-timepicker/index.d.ts +386 -6
- package/mat-timepicker/src/clock/clock.component.scss +7 -6
- package/mat-toast/index.d.ts +30 -2
- package/mat-tooltip/index.d.ts +39 -4
- package/package.json +24 -15
- package/page-error/index.d.ts +34 -2
- package/page-not-found/index.d.ts +54 -5
- package/shared/index.d.ts +532 -15
- package/utils/index.d.ts +32 -2
- package/flag-icon/src/flag-icon.component.d.ts +0 -16
- package/layout/src/components/index.d.ts +0 -23
- package/layout/src/components/layout/layout.component.d.ts +0 -60
- package/layout/src/components/layout-after-nav/layout-after-nav.component.d.ts +0 -11
- package/layout/src/components/layout-content/layout-content.component.d.ts +0 -11
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.d.ts +0 -8
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.d.ts +0 -8
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.d.ts +0 -9
- package/layout/src/components/layout-footer/layout-footer.component.d.ts +0 -7
- package/layout/src/components/layout-login-menu/layout-login-menu.component.d.ts +0 -11
- package/layout/src/components/layout-route/layout-route.component.d.ts +0 -24
- package/layout/src/components/layout-sidenav/layout-sidenav.component.d.ts +0 -24
- package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.d.ts +0 -7
- package/layout/src/components/layout-subroute/layout-subroute.component.d.ts +0 -20
- package/layout/src/components/layout-title/layout-title.component.d.ts +0 -11
- package/layout/src/decorators/coerce-boolean-input.decorator.d.ts +0 -1
- package/layout/src/decorators/index.d.ts +0 -2
- package/layout/src/decorators/observable-content.decorator.d.ts +0 -1
- package/layout/src/directives/drawer-host.directive.d.ts +0 -14
- package/layout/src/directives/index.d.ts +0 -2
- package/layout/src/directives/striphtml.pipe.d.ts +0 -7
- package/layout/src/enums/environment.enum.d.ts +0 -6
- package/layout/src/enums/index.d.ts +0 -1
- package/layout/src/layout.module.d.ts +0 -32
- package/layout/src/models/index.d.ts +0 -2
- package/layout/src/models/onem-language.model.d.ts +0 -4
- package/layout/src/models/onemrva-profile.model.d.ts +0 -16
- package/layout/src/services/drawer.service.d.ts +0 -13
- package/layout/src/services/index.d.ts +0 -1
- package/mat-avatar/src/onemrva-mat-avatar.component.d.ts +0 -240
- package/mat-avatar/src/onemrva-mat-avatar.module.d.ts +0 -7
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.d.ts +0 -11
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.d.ts +0 -5
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.d.ts +0 -10
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.d.ts +0 -12
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.d.ts +0 -11
- package/mat-carousel/src/onemrva-mat-carousel.component.d.ts +0 -40
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.d.ts +0 -10
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.d.ts +0 -26
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.d.ts +0 -43
- package/mat-empty-row/src/onemrva-mat-empty-row.component.d.ts +0 -19
- package/mat-file-upload/src/components/index.d.ts +0 -3
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.d.ts +0 -29
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +0 -60
- package/mat-file-upload/src/directives/dnd.directive.d.ts +0 -11
- package/mat-file-upload/src/models/action-config.model.d.ts +0 -9
- package/mat-file-upload/src/models/progress-file.model.d.ts +0 -28
- package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.d.ts +0 -55
- package/mat-file-upload/src/onemrva-mat-file-upload.module.d.ts +0 -17
- package/mat-file-upload/src/onemrva-mat-file-upload.service.d.ts +0 -23
- package/mat-file-upload/src/onemrva-mat-file-upload.store.d.ts +0 -79
- package/mat-input-address/src/onemrva-mat-input-address.component.d.ts +0 -28
- package/mat-input-birthplace/src/country-item.component.d.ts +0 -11
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.d.ts +0 -31
- package/mat-input-country/src/onemrva-mat-input-country.component.d.ts +0 -27
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.d.ts +0 -34
- package/mat-input-iban/src/onemrva-mat-input-iban.component.d.ts +0 -77
- package/mat-input-phone/src/onemrva-mat-input-phone.component.d.ts +0 -35
- package/mat-input-phone/src/phone-number.directive.d.ts +0 -6
- package/mat-message-box/src/onemrva-mat-message-box.component.d.ts +0 -90
- package/mat-message-box/src/onemrva-mat-message-box.module.d.ts +0 -7
- package/mat-multi-select/src/onemrva-mat-multi-select.component.d.ts +0 -48
- package/mat-multi-select/src/onemrva-mat-multi-select.module.d.ts +0 -7
- package/mat-notification/src/onemrva-mat-notification.component.d.ts +0 -40
- package/mat-paginator/src/onemrva-mat-paginator.component.d.ts +0 -50
- package/mat-paginator/src/onemrva-mat-paginator.module.d.ts +0 -7
- package/mat-panel/src/onemrva-mat-panel-content.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-icon.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-title-action.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-title.component.d.ts +0 -13
- package/mat-panel/src/onemrva-mat-panel.component.d.ts +0 -19
- package/mat-panel/src/onemrva-mat-panel.module.d.ts +0 -11
- package/mat-pop-over/src/onemrva-mat-pop-over-content.component.d.ts +0 -8
- package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.d.ts +0 -8
- package/mat-pop-over/src/onemrva-mat-pop-over.component.d.ts +0 -20
- package/mat-pop-over/src/onemrva-mat-pop-over.module.d.ts +0 -9
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.d.ts +0 -15
- package/mat-select-search/src/default-options.d.ts +0 -25
- package/mat-select-search/src/mat-select-no-entries-found.directive.d.ts +0 -14
- package/mat-select-search/src/mat-select-search-clear.directive.d.ts +0 -12
- package/mat-select-search/src/mat-select-search.component.d.ts +0 -141
- package/mat-select-search/src/mat-select-search.module.d.ts +0 -13
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.d.ts +0 -21
- package/mat-selectable-box/src/onemrva-mat-selectable-box.module.d.ts +0 -7
- package/mat-side-menu/src/onemrva-mat-side-menu.component.d.ts +0 -24
- package/mat-side-menu/src/onemrva-mat-side-menu.module.d.ts +0 -7
- package/mat-skeleton/src/onemrva-mat-skeleton-enums.d.ts +0 -21
- package/mat-skeleton/src/onemrva-mat-skeleton.component.d.ts +0 -69
- package/mat-skeleton/src/onemrva-mat-skeleton.module.d.ts +0 -7
- package/mat-spinner/src/onemrva-mat-loading.directive.d.ts +0 -12
- package/mat-spinner/src/onemrva-mat-spinner.component.d.ts +0 -5
- package/mat-spinner/src/onemrva-mat-spinner.module.d.ts +0 -8
- package/mat-stepper/src/_stepper-variables.scss +0 -29
- package/mat-stepper/src/onemrva-mat-stepper.component.d.ts +0 -21
- package/mat-stepper/src/onemrva-mat-stepper.module.d.ts +0 -8
- package/mat-stepper/src/onemrva-stepper-animations.d.ts +0 -16
- package/mat-sticker/src/onemrva-mat-sticker.component.d.ts +0 -5
- package/mat-sticker/src/onemrva-mat-sticker.module.d.ts +0 -7
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.d.ts +0 -31
- package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.d.ts +0 -27
- package/mat-table-of-content/src/onemrva-mat-table-of-content.service.d.ts +0 -12
- package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.d.ts +0 -19
- package/mat-task-list/src/onemrva-mat-task-content.component.d.ts +0 -8
- package/mat-task-list/src/onemrva-mat-task-list.component.d.ts +0 -13
- package/mat-task-list/src/onemrva-mat-task-list.module.d.ts +0 -10
- package/mat-task-list/src/onemrva-mat-task-title.component.d.ts +0 -11
- package/mat-task-list/src/onemrva-mat-task.component.d.ts +0 -25
- package/mat-timepicker/src/clock/clock.component.d.ts +0 -50
- package/mat-timepicker/src/interfaces-and-types.d.ts +0 -13
- package/mat-timepicker/src/onemrva-mat-timepicker.component.d.ts +0 -129
- package/mat-timepicker/src/onemrva-mat-timepicker.module.d.ts +0 -11
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.d.ts +0 -60
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.d.ts +0 -42
- package/mat-timepicker/src/timepicker.directive.d.ts +0 -102
- package/mat-timepicker/src/util.d.ts +0 -12
- package/mat-toast/src/onemrva-mat-toast.component.d.ts +0 -24
- package/mat-toast/src/onemrva-mat-toast.module.d.ts +0 -8
- package/mat-tooltip/src/onemrva-mat-tooltip.component.d.ts +0 -8
- package/mat-tooltip/src/onemrva-mat-tooltip.directive.d.ts +0 -24
- package/mat-tooltip/src/onemrva-mat-tooltip.module.d.ts +0 -8
- package/page-error/src/page-error-action.component.d.ts +0 -7
- package/page-error/src/page-error.component.d.ts +0 -27
- package/page-not-found/src/page-not-found-action.component.d.ts +0 -7
- package/page-not-found/src/page-not-found-extra.component.d.ts +0 -7
- package/page-not-found/src/page-not-found-invader.component.d.ts +0 -21
- package/page-not-found/src/page-not-found.component.d.ts +0 -17
- package/page-not-found/src/page-not-found.module.d.ts +0 -10
- package/public-api.d.ts +0 -1
- package/shared/src/lib/adapters/index.d.ts +0 -2
- package/shared/src/lib/adapters/luxon.date.adapter.d.ts +0 -50
- package/shared/src/lib/adapters/luxon.utils.d.ts +0 -26
- package/shared/src/lib/adapters/native.date.adapter.d.ts +0 -17
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.d.ts +0 -10
- package/shared/src/lib/components/index.d.ts +0 -1
- package/shared/src/lib/constants/CDNUrlModeOptions.d.ts +0 -4
- package/shared/src/lib/constants/cdn.d.ts +0 -2
- package/shared/src/lib/constants/constants.d.ts +0 -6
- package/shared/src/lib/constants/date.format.d.ts +0 -5
- package/shared/src/lib/constants/index.d.ts +0 -4
- package/shared/src/lib/containers/WebComponentOverlayContainer.d.ts +0 -25
- package/shared/src/lib/containers/index.d.ts +0 -1
- package/shared/src/lib/decorators/HttpCacheDecorator.d.ts +0 -28
- package/shared/src/lib/decorators/index.d.ts +0 -1
- package/shared/src/lib/directives/clipboard.directive.d.ts +0 -21
- package/shared/src/lib/directives/color.directive.d.ts +0 -24
- package/shared/src/lib/directives/date-format.directive.d.ts +0 -19
- package/shared/src/lib/directives/digit-only.directive.d.ts +0 -6
- package/shared/src/lib/directives/iconRight.directive.d.ts +0 -9
- package/shared/src/lib/directives/if-width-is.directive.d.ts +0 -16
- package/shared/src/lib/directives/index.d.ts +0 -10
- package/shared/src/lib/directives/mask.directive.d.ts +0 -21
- package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +0 -12
- package/shared/src/lib/directives/size.directive.d.ts +0 -20
- package/shared/src/lib/helpers/index.d.ts +0 -1
- package/shared/src/lib/helpers/translation-helper.d.ts +0 -17
- package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.d.ts +0 -23
- package/shared/src/lib/interfaces/index.d.ts +0 -1
- package/shared/src/lib/loaders/index.d.ts +0 -2
- package/shared/src/lib/loaders/onemrva-translate-cdn-loader.d.ts +0 -14
- package/shared/src/lib/loaders/onemrva-translate-http-loader.d.ts +0 -14
- package/shared/src/lib/pipes/index.d.ts +0 -2
- package/shared/src/lib/pipes/onemrva-bce.pipe.d.ts +0 -7
- package/shared/src/lib/pipes/onemrva-niss.pipe.d.ts +0 -7
- package/shared/src/lib/providers/index.d.ts +0 -5
- package/shared/src/lib/providers/onemrva.date.luxon.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.native.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.native.year.month.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.theme.provider.d.ts +0 -2
- package/shared/src/lib/services/cache.service.d.ts +0 -10
- package/shared/src/lib/services/cdn.service.d.ts +0 -30
- package/shared/src/lib/services/country-cdn.service.d.ts +0 -30
- package/shared/src/lib/services/country-lookup.service.d.ts +0 -15
- package/shared/src/lib/services/index.d.ts +0 -8
- package/shared/src/lib/services/mime-cdn.service.d.ts +0 -15
- package/shared/src/lib/services/onemrva-error-handler.service.d.ts +0 -12
- package/shared/src/lib/services/onemrva-missing-translation.service.d.ts +0 -4
- package/shared/src/lib/services/osm.service.d.ts +0 -45
- package/shared/src/lib/shared.module.d.ts +0 -14
- package/shared/src/lib/tokens/index.d.ts +0 -1
- package/shared/src/lib/tokens/lookup.token.d.ts +0 -2
- package/shared/src/lib/validators/bank-account.validator.utils.d.ts +0 -4
- package/shared/src/lib/validators/index.d.ts +0 -2
- package/shared/src/lib/validators/onemrva-validators.d.ts +0 -8
- package/utils/src/enum.utils.d.ts +0 -6
- package/utils/src/enums/color.enum.d.ts +0 -12
- package/utils/src/enums/index.d.ts +0 -2
- package/utils/src/enums/size.enum.d.ts +0 -10
- /package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +0 -0
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ContentChildren, Input, ViewChild, Component,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { NgIf, NgTemplateOutlet, NgFor, NgClass, DOCUMENT, NgForOf, AsyncPipe, NgStyle, CommonModule } from '@angular/common';
|
|
2
|
+
import { inject, ChangeDetectorRef, TemplateRef, ContentChildren, Input, ViewChild, Component, DestroyRef, ViewContainerRef, Directive, Injectable, EventEmitter, isDevMode, Output, ContentChild, Pipe, NgModule } from '@angular/core';
|
|
3
|
+
import { Router, RouterLink, RouterLinkActive, RouterModule } from '@angular/router';
|
|
4
|
+
import { NgTemplateOutlet, NgClass, DOCUMENT, AsyncPipe, NgStyle, CommonModule } from '@angular/common';
|
|
6
5
|
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
7
6
|
import { MatMenu, MatMenuTrigger, MatMenuItem, MatMenuModule } from '@angular/material/menu';
|
|
8
|
-
import
|
|
9
|
-
import { TranslatePipe, TranslateModule } from '@ngx-translate/core';
|
|
7
|
+
import { TranslateService, TranslatePipe, TranslateModule } from '@ngx-translate/core';
|
|
10
8
|
import { startWith, map, Subject, takeUntil, BehaviorSubject } from 'rxjs';
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import * as i1$1 from '@angular/material/sidenav';
|
|
14
|
-
import { MatDrawerContainer, MatDrawer, MatSidenavModule } from '@angular/material/sidenav';
|
|
9
|
+
import { BreakpointObserver, Breakpoints, LayoutModule } from '@angular/cdk/layout';
|
|
10
|
+
import { MatDrawer, MatDrawerContainer, MatSidenavModule } from '@angular/material/sidenav';
|
|
15
11
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
16
12
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
17
13
|
import { MatIconButton, MatFabButton, MatButtonModule } from '@angular/material/button';
|
|
18
14
|
import { MatTabGroup, MatTab, MatTabLabel, MatTabNav, MatTabLink, MatTabNavPanel, MatTabsModule } from '@angular/material/tabs';
|
|
19
15
|
import { MatDivider, MatDividerModule } from '@angular/material/divider';
|
|
16
|
+
import { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';
|
|
20
17
|
import { MatToolbar, MatToolbarModule } from '@angular/material/toolbar';
|
|
21
|
-
import * as
|
|
18
|
+
import * as i1 from '@onemrvapublic/design-system/mat-avatar';
|
|
22
19
|
import { OnemrvaMatAvatarModule } from '@onemrvapublic/design-system/mat-avatar';
|
|
23
20
|
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
24
21
|
import { MatRipple } from '@angular/material/core';
|
|
25
|
-
import * as i2 from '@onemrvapublic/design-system/shared';
|
|
26
22
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
27
23
|
import { MAT_SNACK_BAR_DEFAULT_OPTIONS } from '@angular/material/snack-bar';
|
|
28
24
|
|
|
29
25
|
class LayoutSubrouteComponent {
|
|
30
|
-
constructor(
|
|
31
|
-
this.cd =
|
|
32
|
-
this.router =
|
|
26
|
+
constructor() {
|
|
27
|
+
this.cd = inject(ChangeDetectorRef);
|
|
28
|
+
this.router = inject(Router);
|
|
33
29
|
}
|
|
34
30
|
ngAfterViewInit() {
|
|
35
31
|
this.cd.detectChanges();
|
|
@@ -44,7 +40,7 @@ class LayoutSubrouteComponent {
|
|
|
44
40
|
if (subroute.routerLink) {
|
|
45
41
|
const routerLink = Array.isArray(subroute.routerLink)
|
|
46
42
|
? this.router.createUrlTree(subroute.routerLink)
|
|
47
|
-
: subroute.routerLink;
|
|
43
|
+
: this.router.createUrlTree([subroute.routerLink]);
|
|
48
44
|
return this.router.isActive(routerLink, {
|
|
49
45
|
paths: 'exact',
|
|
50
46
|
queryParams: 'exact',
|
|
@@ -56,13 +52,13 @@ class LayoutSubrouteComponent {
|
|
|
56
52
|
return false;
|
|
57
53
|
}
|
|
58
54
|
}
|
|
59
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSubrouteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutSubrouteComponent, isStandalone: true, selector: "onemrva-layout-subroute", inputs: { customNgClass: "customNgClass", routerLink: "routerLink", routerLinkActiveOptions: "routerLinkActiveOptions", dataCy: "dataCy" }, queries: [{ propertyName: "subroutes", predicate: LayoutSubrouteComponent }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n" }); }
|
|
61
57
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSubrouteComponent, decorators: [{
|
|
63
59
|
type: Component,
|
|
64
|
-
args: [{ selector: 'onemrva-layout-subroute', standalone: true, template: "
|
|
65
|
-
}],
|
|
60
|
+
args: [{ selector: 'onemrva-layout-subroute', standalone: true, template: "<ng-template>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
61
|
+
}], propDecorators: { customNgClass: [{
|
|
66
62
|
type: Input
|
|
67
63
|
}], template: [{
|
|
68
64
|
type: ViewChild,
|
|
@@ -79,15 +75,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
79
75
|
}] } });
|
|
80
76
|
|
|
81
77
|
class LayoutRouteComponent {
|
|
82
|
-
|
|
83
|
-
return this.subroutes !== undefined && this.subroutes.length > 0;
|
|
84
|
-
}
|
|
85
|
-
constructor(cd, router) {
|
|
86
|
-
this.cd = cd;
|
|
87
|
-
this.router = router;
|
|
78
|
+
constructor() {
|
|
88
79
|
this.template = null;
|
|
89
80
|
this.mobileTemplate = null;
|
|
90
81
|
this.contentTemplate = null;
|
|
82
|
+
this.cd = inject(ChangeDetectorRef);
|
|
83
|
+
this.router = inject(Router);
|
|
84
|
+
}
|
|
85
|
+
hasSubroutes() {
|
|
86
|
+
return this.subroutes !== undefined && this.subroutes.length > 0;
|
|
91
87
|
}
|
|
92
88
|
ngAfterViewInit() {
|
|
93
89
|
this.cd.detectChanges();
|
|
@@ -104,13 +100,12 @@ class LayoutRouteComponent {
|
|
|
104
100
|
}
|
|
105
101
|
return false;
|
|
106
102
|
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
108
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutRouteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: LayoutRouteComponent, isStandalone: true, selector: "onemrva-layout-route", inputs: { customNgClass: "customNgClass", routerLink: "routerLink", routerLinkActiveOptions: "routerLinkActiveOptions", dataCy: "dataCy", baseRouteForActiveMenu: "baseRouteForActiveMenu", label: "label" }, queries: [{ propertyName: "subroutes", predicate: LayoutSubrouteComponent }], viewQueries: [{ propertyName: "template", first: true, predicate: ["navTpl"], descendants: true }, { propertyName: "mobileTemplate", first: true, predicate: ["navMblTpl"], descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTpl"], descendants: true }], ngImport: i0, template: "<ng-template #navTpl>\n @if (!hasSubroutes()) {\n <ng-container *ngTemplateOutlet=\"contentTmpl\"></ng-container>\n }\n\n @if (hasSubroutes()) {\n <span role=\"button\" [matMenuTriggerFor]=\"menu\">\n {{ label }}\n </span>\n <mat-icon [matMenuTriggerFor]=\"menu\">expand_more</mat-icon>\n <mat-menu #menu>\n @for (e of subroutes?.toArray(); track e.dataCy; let i = $index) {\n @if (!e.hasSubroutes()) {\n <button\n mat-menu-item\n [routerLink]=\"e.routerLink\"\n routerLinkActive=\"active\"\n [attr.data-cy]=\"e.dataCy\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\"></ng-container>\n }\n </button>\n }\n @if (e.hasSubroutes()) {\n <button\n mat-menu-item\n [matMenuTriggerFor]=\"submenu\"\n [ngClass]=\"{ active: e.hasActiveSubroute() }\"\n [attr.data-cy]=\"e.dataCy\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\"></ng-container>\n }\n </button>\n <mat-menu #submenu>\n @for (\n es of e.subroutes?.toArray();\n track es.dataCy;\n let i = $index\n ) {\n <button\n mat-menu-item\n [routerLink]=\"es.routerLink\"\n routerLinkActive=\"active\"\n >\n @if (es.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n }\n </button>\n }\n </mat-menu>\n }\n }\n </mat-menu>\n }\n</ng-template>\n\n<ng-template #navMblTpl>\n <ng-container *ngTemplateOutlet=\"contentTmpl\"></ng-container>\n</ng-template>\n\n<ng-template #contentTmpl>\n <ng-content></ng-content>\n</ng-template>\n", dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
109
105
|
}
|
|
110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutRouteComponent, decorators: [{
|
|
111
107
|
type: Component,
|
|
112
108
|
args: [{ selector: 'onemrva-layout-route', standalone: true, imports: [
|
|
113
|
-
NgIf,
|
|
114
109
|
MatIcon,
|
|
115
110
|
MatMenu,
|
|
116
111
|
MatMenuTrigger,
|
|
@@ -118,10 +113,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
118
113
|
MatMenuItem,
|
|
119
114
|
RouterLinkActive,
|
|
120
115
|
NgTemplateOutlet,
|
|
121
|
-
NgFor,
|
|
122
116
|
NgClass,
|
|
123
|
-
], template: "<ng-template #navTpl>\n
|
|
124
|
-
}],
|
|
117
|
+
], template: "<ng-template #navTpl>\n @if (!hasSubroutes()) {\n <ng-container *ngTemplateOutlet=\"contentTmpl\"></ng-container>\n }\n\n @if (hasSubroutes()) {\n <span role=\"button\" [matMenuTriggerFor]=\"menu\">\n {{ label }}\n </span>\n <mat-icon [matMenuTriggerFor]=\"menu\">expand_more</mat-icon>\n <mat-menu #menu>\n @for (e of subroutes?.toArray(); track e.dataCy; let i = $index) {\n @if (!e.hasSubroutes()) {\n <button\n mat-menu-item\n [routerLink]=\"e.routerLink\"\n routerLinkActive=\"active\"\n [attr.data-cy]=\"e.dataCy\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\"></ng-container>\n }\n </button>\n }\n @if (e.hasSubroutes()) {\n <button\n mat-menu-item\n [matMenuTriggerFor]=\"submenu\"\n [ngClass]=\"{ active: e.hasActiveSubroute() }\"\n [attr.data-cy]=\"e.dataCy\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\"></ng-container>\n }\n </button>\n <mat-menu #submenu>\n @for (\n es of e.subroutes?.toArray();\n track es.dataCy;\n let i = $index\n ) {\n <button\n mat-menu-item\n [routerLink]=\"es.routerLink\"\n routerLinkActive=\"active\"\n >\n @if (es.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n }\n </button>\n }\n </mat-menu>\n }\n }\n </mat-menu>\n }\n</ng-template>\n\n<ng-template #navMblTpl>\n <ng-container *ngTemplateOutlet=\"contentTmpl\"></ng-container>\n</ng-template>\n\n<ng-template #contentTmpl>\n <ng-content></ng-content>\n</ng-template>\n" }]
|
|
118
|
+
}], propDecorators: { customNgClass: [{
|
|
125
119
|
type: Input
|
|
126
120
|
}], template: [{
|
|
127
121
|
type: ViewChild,
|
|
@@ -148,23 +142,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
148
142
|
}] } });
|
|
149
143
|
|
|
150
144
|
class LayoutContentComponent {
|
|
151
|
-
constructor(
|
|
152
|
-
this.cd =
|
|
145
|
+
constructor() {
|
|
146
|
+
this.cd = inject(ChangeDetectorRef);
|
|
153
147
|
}
|
|
154
148
|
ngAfterViewInit() {
|
|
155
149
|
this.cd.detectChanges();
|
|
156
150
|
}
|
|
157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
151
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
152
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutContentComponent, isStandalone: true, selector: "onemrva-layout-content", inputs: { customNgClass: "customNgClass" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
159
153
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutContentComponent, decorators: [{
|
|
161
155
|
type: Component,
|
|
162
156
|
args: [{
|
|
163
157
|
selector: 'onemrva-layout-content',
|
|
164
158
|
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
165
159
|
standalone: true,
|
|
166
160
|
}]
|
|
167
|
-
}],
|
|
161
|
+
}], propDecorators: { customNgClass: [{
|
|
168
162
|
type: Input
|
|
169
163
|
}], template: [{
|
|
170
164
|
type: ViewChild,
|
|
@@ -172,23 +166,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
172
166
|
}] } });
|
|
173
167
|
|
|
174
168
|
class LayoutTitleComponent {
|
|
175
|
-
constructor(
|
|
176
|
-
this.cd =
|
|
169
|
+
constructor() {
|
|
170
|
+
this.cd = inject(ChangeDetectorRef);
|
|
177
171
|
}
|
|
178
172
|
ngAfterViewInit() {
|
|
179
173
|
this.cd.detectChanges();
|
|
180
174
|
}
|
|
181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
176
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutTitleComponent, isStandalone: true, selector: "onemrva-layout-title", inputs: { customNgClass: "customNgClass" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
183
177
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutTitleComponent, decorators: [{
|
|
185
179
|
type: Component,
|
|
186
180
|
args: [{
|
|
187
181
|
selector: 'onemrva-layout-title',
|
|
188
182
|
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
189
183
|
standalone: true,
|
|
190
184
|
}]
|
|
191
|
-
}],
|
|
185
|
+
}], propDecorators: { customNgClass: [{
|
|
192
186
|
type: Input
|
|
193
187
|
}], template: [{
|
|
194
188
|
type: ViewChild,
|
|
@@ -204,10 +198,10 @@ var Environment;
|
|
|
204
198
|
})(Environment || (Environment = {}));
|
|
205
199
|
|
|
206
200
|
class LayoutFooterComponent {
|
|
207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
208
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
202
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutFooterComponent, isStandalone: true, selector: "onemrva-layout-footer", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
209
203
|
}
|
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutFooterComponent, decorators: [{
|
|
211
205
|
type: Component,
|
|
212
206
|
args: [{
|
|
213
207
|
selector: 'onemrva-layout-footer',
|
|
@@ -220,23 +214,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
220
214
|
}] } });
|
|
221
215
|
|
|
222
216
|
class LayoutLoginMenuComponent {
|
|
223
|
-
constructor(
|
|
224
|
-
this.cd =
|
|
217
|
+
constructor() {
|
|
218
|
+
this.cd = inject(ChangeDetectorRef);
|
|
225
219
|
}
|
|
226
220
|
ngAfterViewInit() {
|
|
227
221
|
this.cd.detectChanges();
|
|
228
222
|
}
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutLoginMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
224
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutLoginMenuComponent, isStandalone: true, selector: "onemrva-layout-login-menu", inputs: { customNgClass: "customNgClass" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
231
225
|
}
|
|
232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutLoginMenuComponent, decorators: [{
|
|
233
227
|
type: Component,
|
|
234
228
|
args: [{
|
|
235
229
|
selector: 'onemrva-layout-login-menu',
|
|
236
230
|
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
237
231
|
standalone: true,
|
|
238
232
|
}]
|
|
239
|
-
}],
|
|
233
|
+
}], propDecorators: { customNgClass: [{
|
|
240
234
|
type: Input
|
|
241
235
|
}], template: [{
|
|
242
236
|
type: ViewChild,
|
|
@@ -245,11 +239,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
245
239
|
|
|
246
240
|
// Command to generate ng g d <Directive name>
|
|
247
241
|
class DrawerHostDirective {
|
|
248
|
-
constructor(
|
|
249
|
-
this.drawer = drawer;
|
|
250
|
-
this.viewContainerRef = viewContainerRef;
|
|
251
|
-
this.document = document;
|
|
242
|
+
constructor() {
|
|
252
243
|
this.destroyRef = inject(DestroyRef);
|
|
244
|
+
this.drawer = inject(MatDrawer);
|
|
245
|
+
this.viewContainerRef = inject(ViewContainerRef);
|
|
246
|
+
this.document = inject(DOCUMENT);
|
|
247
|
+
}
|
|
248
|
+
createComponent(component) {
|
|
249
|
+
this.viewContainerRef.clear();
|
|
250
|
+
return this.viewContainerRef.createComponent(component);
|
|
253
251
|
}
|
|
254
252
|
bodyClass() {
|
|
255
253
|
if (this.drawer?.opened) {
|
|
@@ -266,19 +264,16 @@ class DrawerHostDirective {
|
|
|
266
264
|
this.bodyClass();
|
|
267
265
|
});
|
|
268
266
|
}
|
|
269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
270
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DrawerHostDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
268
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: DrawerHostDirective, isStandalone: true, selector: "[drawerhost]", ngImport: i0 }); }
|
|
271
269
|
}
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DrawerHostDirective, decorators: [{
|
|
273
271
|
type: Directive,
|
|
274
272
|
args: [{
|
|
275
273
|
selector: '[drawerhost]',
|
|
276
274
|
standalone: true,
|
|
277
275
|
}]
|
|
278
|
-
}]
|
|
279
|
-
type: Inject,
|
|
280
|
-
args: [DOCUMENT]
|
|
281
|
-
}] }] });
|
|
276
|
+
}] });
|
|
282
277
|
|
|
283
278
|
class OnemrvaDrawerService {
|
|
284
279
|
constructor() {
|
|
@@ -299,10 +294,10 @@ class OnemrvaDrawerService {
|
|
|
299
294
|
return;
|
|
300
295
|
this.drawer?.close();
|
|
301
296
|
}
|
|
302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
303
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaDrawerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
298
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaDrawerService, providedIn: 'root' }); }
|
|
304
299
|
}
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaDrawerService, decorators: [{
|
|
306
301
|
type: Injectable,
|
|
307
302
|
args: [{
|
|
308
303
|
providedIn: 'root',
|
|
@@ -310,10 +305,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
310
305
|
}] });
|
|
311
306
|
|
|
312
307
|
class LayoutSidenavComponent {
|
|
313
|
-
constructor(
|
|
314
|
-
this.translateService =
|
|
315
|
-
this.document =
|
|
316
|
-
this.drawerService =
|
|
308
|
+
constructor() {
|
|
309
|
+
this.translateService = inject(TranslateService);
|
|
310
|
+
this.document = inject(DOCUMENT);
|
|
311
|
+
this.drawerService = inject(OnemrvaDrawerService);
|
|
317
312
|
this.selectedLanguageIndex$ = this.translateService.onLangChange.pipe(startWith(null), map(() => this.languages.findIndex(l => l.code === this.translateService.currentLang)));
|
|
318
313
|
}
|
|
319
314
|
ngOnInit() {
|
|
@@ -334,8 +329,8 @@ class LayoutSidenavComponent {
|
|
|
334
329
|
this.helpMenuOpen[index][subIdx] =
|
|
335
330
|
this.helpMenuOpen[index][subIdx] === 'out' ? 'in' : 'out';
|
|
336
331
|
}
|
|
337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
338
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSidenavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: LayoutSidenavComponent, isStandalone: true, selector: "onemrva-layout-sidenav", inputs: { isSmall: "isSmall", languages: "languages", routes: "routes" }, ngImport: i0, template: "@if (\n isSmall && (routes?.toArray()?.length || (languages && languages.length > 1))\n) {\n <ng-container>\n <button\n type=\"button\"\n mat-icon-button\n class=\"float-right\"\n (click)=\"close()\"\n data-cy=\"smallDeviceMenu\"\n attr.aria-label=\"{{ 'layout.menu' | translate }}\"\n >\n <mat-icon>close</mat-icon>\n </button>\n @if (isSmall && languages && languages.length > 1) {\n <ng-container>\n <mat-tab-group\n class=\"language-tabs\"\n [selectedIndex]=\"selectedLanguageIndex$ | async\"\n (selectedIndexChange)=\"changeLanguage($event)\"\n >\n @for (lang of languages; track lang.code) {\n <mat-tab>\n <div *matTabLabel [attr.data-cy]=\"'language_' + lang.code\">\n {{ lang.label }}\n </div>\n </mat-tab>\n }\n </mat-tab-group>\n </ng-container>\n }\n @if (isSmall && routes?.toArray()?.length) {\n <ng-container>\n @if (languages && languages.length > 1) {\n <mat-divider\n style=\"align-self: stretch; margin-bottom: 10px\"\n ></mat-divider>\n }\n <div>\n @for (e of routes?.toArray(); track e.dataCy; let i = $index) {\n @if (!e.hasSubroutes()) {\n <ng-container>\n <button\n [routerLink]=\"e.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n >\n @if (e.mobileTemplate; as routeTemplate) {\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n }\n </button>\n </ng-container>\n }\n @if (e.hasSubroutes()) {\n <ng-container>\n <button\n [routerLink]=\"e.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: false }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n (click)=\"openSubmenu(i)\"\n [attr.data-cy]=\"e.dataCy\"\n >\n {{ e.label }}\n <mat-icon>expand_more</mat-icon>\n </button>\n <div [@slideInOut]=\"helpMenuOpen[i][0]\">\n @for (\n es of e.subroutes?.toArray();\n track es.dataCy;\n let j = $index\n ) {\n <button\n [routerLink]=\"es.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n (click)=\"openSubmenu(i, j + 1)\"\n [attr.data-cy]=\"es.dataCy\"\n >\n @if (es.template; as routeTemplate) {\n <ng-container>\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n </ng-container>\n }\n @if (es.hasSubroutes()) {\n <mat-icon>expand_more</mat-icon>\n }\n </button>\n <div [@slideInOut]=\"helpMenuOpen[i][j + 1]\">\n @for (ess of es.subroutes?.toArray(); track ess.dataCy) {\n <button\n [routerLink]=\"ess.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: false }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n [attr.data-cy]=\"ess.dataCy\"\n >\n \n @if (ess.template; as routeTemplate) {\n <ng-container>\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n </ng-container>\n }\n </button>\n }\n </div>\n }\n </div>\n </ng-container>\n }\n }\n </div>\n </ng-container>\n }\n </ng-container>\n}\n", styles: [":host{min-width:250px}:host .mobile-menu-item{display:flex;width:100%;background:var(--mat-sys-background);padding:var(--spacer);border:none;box-shadow:none;font-size:1.2rem;align-items:center;text-align:left}:host .mobile-menu-item:active,:host .mobile-menu-item.active{border-right:4px solid var(--mat-sys-secondary);font-weight:700!important}:host .mobile-menu-item mat-icon{margin-left:4px}\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }], animations: [
|
|
339
334
|
trigger('slideInOut', [
|
|
340
335
|
state('in', style({
|
|
341
336
|
overflow: 'hidden',
|
|
@@ -351,7 +346,7 @@ class LayoutSidenavComponent {
|
|
|
351
346
|
]),
|
|
352
347
|
] }); }
|
|
353
348
|
}
|
|
354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSidenavComponent, decorators: [{
|
|
355
350
|
type: Component,
|
|
356
351
|
args: [{ selector: 'onemrva-layout-sidenav', animations: [
|
|
357
352
|
trigger('slideInOut', [
|
|
@@ -374,18 +369,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
374
369
|
MatTab,
|
|
375
370
|
MatDivider,
|
|
376
371
|
RouterLink,
|
|
377
|
-
NgForOf,
|
|
378
|
-
NgIf,
|
|
379
372
|
RouterLinkActive,
|
|
380
373
|
NgTemplateOutlet,
|
|
381
374
|
TranslatePipe,
|
|
382
375
|
AsyncPipe,
|
|
383
376
|
MatTabLabel,
|
|
384
|
-
], template: "
|
|
385
|
-
}], ctorParameters: () => [
|
|
386
|
-
type: Inject,
|
|
387
|
-
args: [DOCUMENT]
|
|
388
|
-
}] }, { type: OnemrvaDrawerService }], propDecorators: { isSmall: [{
|
|
377
|
+
], template: "@if (\n isSmall && (routes?.toArray()?.length || (languages && languages.length > 1))\n) {\n <ng-container>\n <button\n type=\"button\"\n mat-icon-button\n class=\"float-right\"\n (click)=\"close()\"\n data-cy=\"smallDeviceMenu\"\n attr.aria-label=\"{{ 'layout.menu' | translate }}\"\n >\n <mat-icon>close</mat-icon>\n </button>\n @if (isSmall && languages && languages.length > 1) {\n <ng-container>\n <mat-tab-group\n class=\"language-tabs\"\n [selectedIndex]=\"selectedLanguageIndex$ | async\"\n (selectedIndexChange)=\"changeLanguage($event)\"\n >\n @for (lang of languages; track lang.code) {\n <mat-tab>\n <div *matTabLabel [attr.data-cy]=\"'language_' + lang.code\">\n {{ lang.label }}\n </div>\n </mat-tab>\n }\n </mat-tab-group>\n </ng-container>\n }\n @if (isSmall && routes?.toArray()?.length) {\n <ng-container>\n @if (languages && languages.length > 1) {\n <mat-divider\n style=\"align-self: stretch; margin-bottom: 10px\"\n ></mat-divider>\n }\n <div>\n @for (e of routes?.toArray(); track e.dataCy; let i = $index) {\n @if (!e.hasSubroutes()) {\n <ng-container>\n <button\n [routerLink]=\"e.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n >\n @if (e.mobileTemplate; as routeTemplate) {\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n }\n </button>\n </ng-container>\n }\n @if (e.hasSubroutes()) {\n <ng-container>\n <button\n [routerLink]=\"e.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: false }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n (click)=\"openSubmenu(i)\"\n [attr.data-cy]=\"e.dataCy\"\n >\n {{ e.label }}\n <mat-icon>expand_more</mat-icon>\n </button>\n <div [@slideInOut]=\"helpMenuOpen[i][0]\">\n @for (\n es of e.subroutes?.toArray();\n track es.dataCy;\n let j = $index\n ) {\n <button\n [routerLink]=\"es.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: true }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n (click)=\"openSubmenu(i, j + 1)\"\n [attr.data-cy]=\"es.dataCy\"\n >\n @if (es.template; as routeTemplate) {\n <ng-container>\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n </ng-container>\n }\n @if (es.hasSubroutes()) {\n <mat-icon>expand_more</mat-icon>\n }\n </button>\n <div [@slideInOut]=\"helpMenuOpen[i][j + 1]\">\n @for (ess of es.subroutes?.toArray(); track ess.dataCy) {\n <button\n [routerLink]=\"ess.routerLink\"\n [routerLinkActiveOptions]=\"{ exact: false }\"\n routerLinkActive=\"active\"\n class=\"mobile-menu-item\"\n [attr.data-cy]=\"ess.dataCy\"\n >\n \n @if (ess.template; as routeTemplate) {\n <ng-container>\n <ng-container\n *ngTemplateOutlet=\"routeTemplate\"\n ></ng-container>\n </ng-container>\n }\n </button>\n }\n </div>\n }\n </div>\n </ng-container>\n }\n }\n </div>\n </ng-container>\n }\n </ng-container>\n}\n", styles: [":host{min-width:250px}:host .mobile-menu-item{display:flex;width:100%;background:var(--mat-sys-background);padding:var(--spacer);border:none;box-shadow:none;font-size:1.2rem;align-items:center;text-align:left}:host .mobile-menu-item:active,:host .mobile-menu-item.active{border-right:4px solid var(--mat-sys-secondary);font-weight:700!important}:host .mobile-menu-item mat-icon{margin-left:4px}\n"] }]
|
|
378
|
+
}], ctorParameters: () => [], propDecorators: { isSmall: [{
|
|
389
379
|
type: Input
|
|
390
380
|
}], languages: [{
|
|
391
381
|
type: Input
|
|
@@ -394,23 +384,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
394
384
|
}] } });
|
|
395
385
|
|
|
396
386
|
class LayoutAfterNavComponent {
|
|
397
|
-
constructor(
|
|
398
|
-
this.cd =
|
|
387
|
+
constructor() {
|
|
388
|
+
this.cd = inject(ChangeDetectorRef);
|
|
399
389
|
}
|
|
400
390
|
ngAfterViewInit() {
|
|
401
391
|
this.cd.detectChanges();
|
|
402
392
|
}
|
|
403
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
404
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutAfterNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutAfterNavComponent, isStandalone: true, selector: "onemrva-layout-after-nav", inputs: { customNgClass: "customNgClass" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
405
395
|
}
|
|
406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutAfterNavComponent, decorators: [{
|
|
407
397
|
type: Component,
|
|
408
398
|
args: [{
|
|
409
399
|
selector: 'onemrva-layout-after-nav',
|
|
410
400
|
template: '<ng-template><ng-content></ng-content></ng-template>',
|
|
411
401
|
standalone: true,
|
|
412
402
|
}]
|
|
413
|
-
}],
|
|
403
|
+
}], propDecorators: { customNgClass: [{
|
|
414
404
|
type: Input
|
|
415
405
|
}], template: [{
|
|
416
406
|
type: ViewChild,
|
|
@@ -418,13 +408,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
418
408
|
}] } });
|
|
419
409
|
|
|
420
410
|
class LayoutComponent {
|
|
421
|
-
constructor(
|
|
422
|
-
this.translateService = translateService;
|
|
423
|
-
this.cdn = cdn;
|
|
424
|
-
this.cd = cd;
|
|
425
|
-
this.breakpointObserver = breakpointObserver;
|
|
426
|
-
this.document = document;
|
|
427
|
-
this.drawerService = drawerService;
|
|
411
|
+
constructor() {
|
|
428
412
|
this.logo = ''; // custom logo, empty string will show default onem/rva/neo/lfa localised logo
|
|
429
413
|
this.languages = []; // list of languages
|
|
430
414
|
this.logoRedictionUrl = ''; // value for routerLink from logo. "" by default. Deactivated when set to null
|
|
@@ -440,6 +424,12 @@ class LayoutComponent {
|
|
|
440
424
|
this.role = 'main';
|
|
441
425
|
this.drawerClass = '';
|
|
442
426
|
this.effectiveDrawerClass = this.drawerClass;
|
|
427
|
+
this.translateService = inject(TranslateService);
|
|
428
|
+
this.cdn = inject(OnemRvaCDNService);
|
|
429
|
+
this.cd = inject(ChangeDetectorRef);
|
|
430
|
+
this.breakpointObserver = inject(BreakpointObserver);
|
|
431
|
+
this.document = inject(DOCUMENT);
|
|
432
|
+
this.drawerService = inject(OnemrvaDrawerService);
|
|
443
433
|
if (this.languages.length === 0) {
|
|
444
434
|
this.translateService.getLangs().forEach(value => {
|
|
445
435
|
this.languages.push({
|
|
@@ -508,8 +498,7 @@ class LayoutComponent {
|
|
|
508
498
|
this.document.documentElement.lang = langCode;
|
|
509
499
|
}
|
|
510
500
|
toggleSideNav() {
|
|
511
|
-
this.drawerHost.
|
|
512
|
-
const componentRef = this.drawerHost.viewContainerRef.createComponent(LayoutSidenavComponent);
|
|
501
|
+
const componentRef = this.drawerHost.createComponent(LayoutSidenavComponent);
|
|
513
502
|
componentRef.instance.isSmall = this.isSmall;
|
|
514
503
|
componentRef.instance.languages = this.languages;
|
|
515
504
|
componentRef.instance.routes = this.routes;
|
|
@@ -517,10 +506,10 @@ class LayoutComponent {
|
|
|
517
506
|
this.effectiveDrawerClass = 'side-menu';
|
|
518
507
|
this.drawer.open();
|
|
519
508
|
}
|
|
520
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
521
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.10", type: LayoutComponent, isStandalone: true, selector: "onemrva-layout", inputs: { logo: "logo", languages: "languages", environment: "environment", logoRedictionUrl: "logoRedictionUrl", profile: "profile", id: "id", role: "role", drawerClass: "drawerClass" }, outputs: { login: "login", logout: "logout" }, queries: [{ propertyName: "title", first: true, predicate: LayoutTitleComponent, descendants: true }, { propertyName: "loginMenu", first: true, predicate: LayoutLoginMenuComponent, descendants: true }, { propertyName: "content", first: true, predicate: LayoutContentComponent, descendants: true }, { propertyName: "afterNav", first: true, predicate: LayoutAfterNavComponent, descendants: true }, { propertyName: "footer", first: true, predicate: LayoutFooterComponent, descendants: true }, { propertyName: "routes", predicate: LayoutRouteComponent }], viewQueries: [{ propertyName: "drawer", first: true, predicate: MatDrawer, descendants: true, static: true }, { propertyName: "drawerHost", first: true, predicate: DrawerHostDirective, descendants: true, static: true }], ngImport: i0, template: "<mat-drawer-container\n id=\"onemrva-drawer-container\"\n [hasBackdrop]=\"drawerService.hasBackdrop\"\n autosize\n>\n <div class=\"app-content\">\n <header>\n <mat-toolbar class=\"mat-elevation-z4\">\n <div class=\"environment\" [class]=\"environment\">\n {{ environment }}\n </div>\n <div class=\"nav-container onemrva-layout-container flex-center g-m\">\n {{ logoRedictionUrl }}\n <img\n class=\"logo align-center clickable\"\n [src]=\"logo\"\n [attr.data-cy]=\"\n 'onemrva_logo_' + currentLanguage.toLocaleLowerCase()\n \"\n alt=\"Logo ONEM/RVA\"\n [routerLink]=\"\n logoRedictionUrl !== null ? logoRedictionUrl : undefined\n \"\n [ngStyle]=\"{\n cursor: logoRedictionUrl !== null ? 'pointer' : 'default',\n }\"\n />\n <div\n class=\"application-title\"\n [ngClass]=\"{ 'small-screen': isSmall }\"\n >\n <ng-container *ngIf=\"title?.template as titleTpl\">\n <ng-container *ngTemplateOutlet=\"titleTpl\"></ng-container>\n </ng-container>\n </div>\n\n <div style=\"flex: 1\"></div>\n <div\n class=\"flex-center topMenu\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n *ngIf=\"!isSmall\"\n >\n <ng-container *ngFor=\"let e of routes?.toArray(); let i = index\">\n <a\n mat-tab-link\n [routerLink]=\"e.routerLink\"\n [attr.data-ci]=\"e.dataCy\"\n [attr.data-cy]=\"e.dataCy\"\n [routerLinkActiveOptions]=\"{\n fragment: 'exact',\n matrixParams: 'exact',\n paths: 'exact',\n queryParams: 'ignored',\n }\"\n #rla=\"routerLinkActive\"\n routerLinkActive=\"mdc-tab--active\"\n [active]=\"rla.isActive || e.isRouteActive()\"\n >\n <ng-container *ngIf=\"e.template as routeTemplate\">\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n </ng-container>\n </a>\n </ng-container>\n </div>\n\n <mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n\n <ng-container *ngIf=\"afterNav?.template as tpl\">\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"profile !== null\">\n <mat-divider\n vertical\n style=\"height: 1em; align-self: center\"\n *ngIf=\"!isSmall\"\n ></mat-divider>\n <onemrva-mat-avatar\n matRipple\n *ngIf=\"profile.isLoggedIn\"\n [matMenuTriggerFor]=\"menu\"\n initials=\"{{ profile.initials() }}\"\n color=\"accent\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n\n <onemrva-mat-avatar\n matRipple\n *ngIf=\"!profile.isLoggedIn\"\n [matMenuTriggerFor]=\"menu\"\n icon=\"account_circle\"\n color=\"\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngIf=\"profile.isLoggedIn; else notConnected\">\n <div class=\"menu-header m mb-m\">\n {{ profile.firstName }} {{ profile.lastName }}\n </div>\n <mat-divider style=\"align-self: stretch\"></mat-divider>\n\n <ng-container *ngIf=\"loginMenu?.template as menuLoginTpl\">\n <ng-container *ngTemplateOutlet=\"menuLoginTpl\"></ng-container>\n </ng-container>\n\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n data-cy=\"logoutButton\"\n (click)=\"doLogout()\"\n [attr.aria-label]=\"'layout.logout' | translate\"\n >\n <mat-icon>logout</mat-icon>\n {{ 'layout.logout' | translate }}\n </button>\n </ng-container>\n <ng-template #notConnected>\n <button\n type=\"button\"\n mat-menu-item\n data-cy=\"loginButton\"\n (click)=\"doLogin()\"\n [attr.aria-label]=\"'layout.login' | translate\"\n >\n <mat-icon>login</mat-icon>\n {{ 'layout.login' | translate }}\n </button>\n </ng-template>\n </mat-menu>\n </ng-container>\n <ng-container\n *ngIf=\"\n isSmall &&\n (routes?.toArray()?.length || (languages && languages.length > 1))\n \"\n >\n <button\n type=\"button\"\n mat-icon-button\n class=\"menu-button\"\n data-cy=\"smallDeviceMenu\"\n (click)=\"toggleSideNav()\"\n [attr.aria-label]=\"'layout.menu' | translate\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n </ng-container>\n <div\n class=\"flex-center\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n *ngIf=\"!isSmall\"\n >\n <a\n [matMenuTriggerFor]=\"languageMenu\"\n data-cy=\"languageMenu\"\n [attr.aria-label]=\"'language.selection' | translate\"\n mat-tab-link\n >\n {{ currentLanguage }}\n <mat-icon style=\"width: 16px\">expand_more</mat-icon>\n </a>\n </div>\n <mat-menu #languageMenu>\n <button\n *ngFor=\"let lang of languages\"\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n [attr.data-cy]=\"'language_' + lang.code\"\n (click)=\"changeLanguage(lang.code)\"\n [attr.aria-label]=\"lang.label\"\n >\n {{ lang.label }}\n </button>\n </mat-menu>\n </div>\n </mat-toolbar>\n </header>\n <ng-container>\n <div\n [id]=\"id\"\n [attr.role]=\"role\"\n class=\"onemrva-layout-content onemrva-layout-container\"\n *ngIf=\"content?.template as tpl\"\n >\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n\n <ng-container\n *ngIf=\"\n environment &&\n (environment === env.LOCAL || environment === env.TEST)\n \"\n >\n <button\n id=\"accessibility_fab\"\n mat-fab\n color=\"accent\"\n aria-label=\"Accessibility check\"\n matTooltip=\"Accessibility check\"\n onclick=\"(function() {var _p='//openfed.github.io/AccessibilityCheck/build/';var _i=function(s,cb) {var sc=document.createElement('script');sc.onload = function() {sc.onload = null;sc.onreadystatechange = null;cb.call(this);};sc.onreadystatechange = function(){if(/^(complete|loaded)$/.test(this.readyState) === true){sc.onreadystatechange = null;sc.onload();}};sc.src=s;if (document.head) {document.head.appendChild(sc);} else {document.getElementsByTagName('head')[0].appendChild(sc);}}; var options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();\"\n >\n <mat-icon>accessibility</mat-icon>\n </button>\n </ng-container>\n </div>\n\n <footer\n class=\"onemrva-footer p mb text-center\"\n *ngIf=\"footer?.template as footer\"\n >\n <div class=\"onemrva-layout-container\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </footer>\n </ng-container>\n </div>\n\n <mat-drawer [class]=\"effectiveDrawerClass\" mode=\"over\" position=\"end\">\n <ng-template drawerhost></ng-template>\n </mat-drawer>\n</mat-drawer-container>\n", styles: [":host{position:relative}:host a:active{outline:none}:host router-outlet{display:block;margin-bottom:90px}:host header mat-toolbar{position:fixed;height:var(--layout-header-height);z-index:400}:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-before,:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-after{display:none!important}:host header mat-toolbar .logo{height:42px}:host header mat-toolbar .application-title{font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-secondary)}:host header mat-toolbar{--mat-tab-header-divider-color: transparent}:host .onemrva-layout-content{padding-top:var(--layout-content-padding-top);min-height:calc(100vh - 48px)}:host .mat-drawer-content{min-height:100vh}:host #accessibility_fab{position:fixed;bottom:16px;left:16px}:host .environment{position:fixed;top:0;left:0;z-index:24000;width:60px;height:50px;padding:15px 20px;font-weight:700;font-size:16px;border-radius:0 0 100%;color:#fff;display:none}:host .environment.LOCAL{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}:host .environment.TEST{background-color:#36c;display:block}:host .environment.VAL{background-color:#093;display:block}:host mat-drawer{padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}:host mat-drawer.xsmall{width:20%}:host mat-drawer.small{width:30%}:host mat-drawer.medium{width:50%}:host mat-drawer.large{width:60%}:host mat-drawer.xlarge{width:70%}:host mat-drawer.xxlarge{width:90%}@media screen and (max-width: 640px){:host mat-drawer{width:99%!important}}.mat-mdc-menu-content button.active>*{font-weight:700!important}.mat-mdc-menu-content button mat-icon{font-size:1.125rem!important;height:1.125rem;width:1.125rem}.mat-mdc-menu-content button span{font-size:14px!important}nav a.disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: OnemrvaMatAvatarModule }, { kind: "component", type: i5.OnemrvaMatAvatarComponent, selector: "onemrva-mat-avatar", inputs: ["id", "roundShape", "initials", "icon", "src", "size", "color"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "directive", type: DrawerHostDirective, selector: "[drawerhost]" }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
|
509
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
510
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: LayoutComponent, isStandalone: true, selector: "onemrva-layout", inputs: { logo: "logo", languages: "languages", environment: "environment", logoRedictionUrl: "logoRedictionUrl", profile: "profile", id: "id", role: "role", drawerClass: "drawerClass" }, outputs: { login: "login", logout: "logout" }, queries: [{ propertyName: "title", first: true, predicate: LayoutTitleComponent, descendants: true }, { propertyName: "loginMenu", first: true, predicate: LayoutLoginMenuComponent, descendants: true }, { propertyName: "content", first: true, predicate: LayoutContentComponent, descendants: true }, { propertyName: "afterNav", first: true, predicate: LayoutAfterNavComponent, descendants: true }, { propertyName: "footer", first: true, predicate: LayoutFooterComponent, descendants: true }, { propertyName: "routes", predicate: LayoutRouteComponent }], viewQueries: [{ propertyName: "drawer", first: true, predicate: MatDrawer, descendants: true, static: true }, { propertyName: "drawerHost", first: true, predicate: DrawerHostDirective, descendants: true, static: true }], ngImport: i0, template: "<mat-drawer-container\n id=\"onemrva-drawer-container\"\n [hasBackdrop]=\"drawerService.hasBackdrop\"\n autosize\n>\n <div class=\"app-content\">\n <header>\n <mat-toolbar class=\"mat-elevation-z4\">\n <div class=\"environment\" [class]=\"environment\">\n {{ environment }}\n </div>\n <div class=\"nav-container onemrva-layout-container flex-center g-m\">\n {{ logoRedictionUrl }}\n <img\n class=\"logo align-center clickable\"\n [src]=\"logo\"\n [attr.data-cy]=\"\n 'onemrva_logo_' + currentLanguage.toLocaleLowerCase()\n \"\n alt=\"Logo ONEM/RVA\"\n [routerLink]=\"\n logoRedictionUrl !== null ? logoRedictionUrl : undefined\n \"\n [ngStyle]=\"{\n cursor: logoRedictionUrl !== null ? 'pointer' : 'default',\n }\"\n />\n <div\n class=\"application-title\"\n [ngClass]=\"{ 'small-screen': isSmall }\"\n >\n @if (title?.template; as titleTpl) {\n <ng-container *ngTemplateOutlet=\"titleTpl\"></ng-container>\n }\n </div>\n\n <div style=\"flex: 1\"></div>\n\n @if (!isSmall) {\n <div\n class=\"flex-center topMenu\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n >\n @for (\n e of routes?.toArray();\n track e.routerLink;\n let i = $index\n ) {\n <a\n mat-tab-link\n [routerLink]=\"e.routerLink\"\n [attr.data-ci]=\"e.dataCy\"\n [attr.data-cy]=\"e.dataCy\"\n [routerLinkActiveOptions]=\"{\n fragment: 'exact',\n matrixParams: 'exact',\n paths: 'exact',\n queryParams: 'ignored',\n }\"\n #rla=\"routerLinkActive\"\n routerLinkActive=\"mdc-tab--active\"\n [active]=\"rla.isActive || e.isRouteActive()\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n }\n </a>\n }\n </div>\n }\n <mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n\n @if (afterNav?.template; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n }\n\n @if (profile !== null) {\n @if (!isSmall) {\n <mat-divider\n vertical\n style=\"height: 1em; align-self: center\"\n ></mat-divider>\n }\n @if (profile.isLoggedIn) {\n <onemrva-mat-avatar\n matRipple\n [matMenuTriggerFor]=\"menu\"\n initials=\"{{ profile.initials() }}\"\n color=\"accent\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n }\n @if (!profile.isLoggedIn) {\n <onemrva-mat-avatar\n matRipple\n [matMenuTriggerFor]=\"menu\"\n icon=\"account_circle\"\n color=\"\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n }\n <mat-menu #menu=\"matMenu\">\n @if (profile.isLoggedIn) {\n <div class=\"menu-header m mb-m\">\n {{ profile.firstName }} {{ profile.lastName }}\n </div>\n <mat-divider style=\"align-self: stretch\"></mat-divider>\n\n @if (loginMenu?.template; as menuLoginTpl) {\n <ng-container *ngTemplateOutlet=\"menuLoginTpl\"></ng-container>\n }\n\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n data-cy=\"logoutButton\"\n (click)=\"doLogout()\"\n [attr.aria-label]=\"'layout.logout' | translate\"\n >\n <mat-icon>logout</mat-icon>\n {{ 'layout.logout' | translate }}\n </button>\n } @else {\n <button\n type=\"button\"\n mat-menu-item\n data-cy=\"loginButton\"\n (click)=\"doLogin()\"\n [attr.aria-label]=\"'layout.login' | translate\"\n >\n <mat-icon>login</mat-icon>\n {{ 'layout.login' | translate }}\n </button>\n }\n </mat-menu>\n }\n\n @if (\n isSmall &&\n (routes?.toArray()?.length || (languages && languages.length > 1))\n ) {\n <button\n type=\"button\"\n mat-icon-button\n class=\"menu-button\"\n data-cy=\"smallDeviceMenu\"\n (click)=\"toggleSideNav()\"\n [attr.aria-label]=\"'layout.menu' | translate\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n }\n @if (!isSmall) {\n <div class=\"flex-center\" mat-tab-nav-bar [tabPanel]=\"tabPanel\">\n <a\n [matMenuTriggerFor]=\"languageMenu\"\n data-cy=\"languageMenu\"\n [attr.aria-label]=\"'language.selection' | translate\"\n mat-tab-link\n >\n {{ currentLanguage }}\n <mat-icon style=\"width: 16px\">expand_more</mat-icon>\n </a>\n </div>\n }\n <mat-menu #languageMenu>\n @for (lang of languages; track lang.code) {\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n [attr.data-cy]=\"'language_' + lang.code\"\n (click)=\"changeLanguage(lang.code)\"\n [attr.aria-label]=\"lang.label\"\n >\n {{ lang.label }}\n </button>\n }\n </mat-menu>\n </div>\n </mat-toolbar>\n </header>\n <ng-container>\n @if (content?.template; as tpl) {\n <div\n [id]=\"id\"\n [attr.role]=\"role\"\n class=\"onemrva-layout-content onemrva-layout-container\"\n >\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n @if (\n environment &&\n (environment === env.LOCAL || environment === env.TEST)\n ) {\n <button\n id=\"accessibility_fab\"\n mat-fab\n color=\"accent\"\n aria-label=\"Accessibility check\"\n matTooltip=\"Accessibility check\"\n onclick=\"(function() {var _p='//openfed.github.io/AccessibilityCheck/build/';var _i=function(s,cb) {var sc=document.createElement('script');sc.onload = function() {sc.onload = null;sc.onreadystatechange = null;cb.call(this);};sc.onreadystatechange = function(){if(/^(complete|loaded)$/.test(this.readyState) === true){sc.onreadystatechange = null;sc.onload();}};sc.src=s;if (document.head) {document.head.appendChild(sc);} else {document.getElementsByTagName('head')[0].appendChild(sc);}}; var options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();\"\n >\n <mat-icon>accessibility</mat-icon>\n </button>\n }\n </div>\n }\n\n <footer class=\"onemrva-footer p mb text-center\">\n @if (footer?.template; as footerTpl) {\n <div class=\"onemrva-layout-container\">\n <ng-container *ngTemplateOutlet=\"footerTpl\"></ng-container>\n </div>\n }\n </footer>\n </ng-container>\n </div>\n\n <mat-drawer [class]=\"effectiveDrawerClass\" mode=\"over\" position=\"end\">\n <ng-template drawerhost></ng-template>\n </mat-drawer>\n</mat-drawer-container>\n", styles: [":host{position:relative}:host a:active{outline:none}:host router-outlet{display:block;margin-bottom:90px}:host header mat-toolbar{position:fixed;height:var(--layout-header-height);z-index:400;--mat-tab-divider-color: transparent}:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-before,:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-after{display:none!important}:host header mat-toolbar .logo{height:42px}:host header mat-toolbar .application-title{font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-secondary)}:host .onemrva-layout-content{padding-top:var(--layout-content-padding-top);min-height:calc(100vh - 48px)}:host .mat-drawer-content{min-height:100vh}:host #accessibility_fab{position:fixed;bottom:16px;left:16px}:host .environment{position:fixed;top:0;left:0;z-index:24000;width:60px;height:50px;padding:15px 20px;font-weight:700;font-size:16px;border-radius:0 0 100%;color:#fff;display:none}:host .environment.LOCAL{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}:host .environment.TEST{background-color:#36c;display:block}:host .environment.VAL{background-color:#093;display:block}:host mat-drawer{padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}:host mat-drawer.xsmall{width:20%}:host mat-drawer.small{width:30%}:host mat-drawer.medium{width:50%}:host mat-drawer.large{width:60%}:host mat-drawer.xlarge{width:70%}:host mat-drawer.xxlarge{width:90%}@media screen and (max-width: 640px){:host mat-drawer{width:99%!important}}.mat-mdc-menu-content button.active>*{font-weight:700!important}.mat-mdc-menu-content button mat-icon{font-size:1.125rem!important;height:1.125rem;width:1.125rem}.mat-mdc-menu-content button span{font-size:14px!important}nav a.disabled{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: OnemrvaMatAvatarModule }, { kind: "component", type: i1.OnemrvaMatAvatarComponent, selector: "onemrva-mat-avatar", inputs: ["id", "roundShape", "initials", "icon", "src", "size", "color"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "directive", type: DrawerHostDirective, selector: "[drawerhost]" }, { kind: "directive", type: MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }] }); }
|
|
522
511
|
}
|
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
512
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutComponent, decorators: [{
|
|
524
513
|
type: Component,
|
|
525
514
|
args: [{ selector: 'onemrva-layout', standalone: true, imports: [
|
|
526
515
|
RouterLink,
|
|
@@ -539,7 +528,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
539
528
|
MatIcon,
|
|
540
529
|
MatMenuItem,
|
|
541
530
|
NgTemplateOutlet,
|
|
542
|
-
NgIf,
|
|
543
531
|
TranslatePipe,
|
|
544
532
|
MatIconButton,
|
|
545
533
|
MatFabButton,
|
|
@@ -547,12 +535,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
547
535
|
MatDrawer,
|
|
548
536
|
DrawerHostDirective,
|
|
549
537
|
MatRipple,
|
|
550
|
-
NgForOf,
|
|
551
|
-
], template: "<mat-drawer-container\n id=\"onemrva-drawer-container\"\n [hasBackdrop]=\"drawerService.hasBackdrop\"\n autosize\n>\n <div class=\"app-content\">\n <header>\n <mat-toolbar class=\"mat-elevation-z4\">\n <div class=\"environment\" [class]=\"environment\">\n {{ environment }}\n </div>\n <div class=\"nav-container onemrva-layout-container flex-center g-m\">\n {{ logoRedictionUrl }}\n <img\n class=\"logo align-center clickable\"\n [src]=\"logo\"\n [attr.data-cy]=\"\n 'onemrva_logo_' + currentLanguage.toLocaleLowerCase()\n \"\n alt=\"Logo ONEM/RVA\"\n [routerLink]=\"\n logoRedictionUrl !== null ? logoRedictionUrl : undefined\n \"\n [ngStyle]=\"{\n cursor: logoRedictionUrl !== null ? 'pointer' : 'default',\n }\"\n />\n <div\n class=\"application-title\"\n [ngClass]=\"{ 'small-screen': isSmall }\"\n >\n <ng-container *ngIf=\"title?.template as titleTpl\">\n <ng-container *ngTemplateOutlet=\"titleTpl\"></ng-container>\n </ng-container>\n </div>\n\n <div style=\"flex: 1\"></div>\n <div\n class=\"flex-center topMenu\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n *ngIf=\"!isSmall\"\n >\n <ng-container *ngFor=\"let e of routes?.toArray(); let i = index\">\n <a\n mat-tab-link\n [routerLink]=\"e.routerLink\"\n [attr.data-ci]=\"e.dataCy\"\n [attr.data-cy]=\"e.dataCy\"\n [routerLinkActiveOptions]=\"{\n fragment: 'exact',\n matrixParams: 'exact',\n paths: 'exact',\n queryParams: 'ignored',\n }\"\n #rla=\"routerLinkActive\"\n routerLinkActive=\"mdc-tab--active\"\n [active]=\"rla.isActive || e.isRouteActive()\"\n >\n <ng-container *ngIf=\"e.template as routeTemplate\">\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n </ng-container>\n </a>\n </ng-container>\n </div>\n\n <mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n\n <ng-container *ngIf=\"afterNav?.template as tpl\">\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"profile !== null\">\n <mat-divider\n vertical\n style=\"height: 1em; align-self: center\"\n *ngIf=\"!isSmall\"\n ></mat-divider>\n <onemrva-mat-avatar\n matRipple\n *ngIf=\"profile.isLoggedIn\"\n [matMenuTriggerFor]=\"menu\"\n initials=\"{{ profile.initials() }}\"\n color=\"accent\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n\n <onemrva-mat-avatar\n matRipple\n *ngIf=\"!profile.isLoggedIn\"\n [matMenuTriggerFor]=\"menu\"\n icon=\"account_circle\"\n color=\"\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngIf=\"profile.isLoggedIn; else notConnected\">\n <div class=\"menu-header m mb-m\">\n {{ profile.firstName }} {{ profile.lastName }}\n </div>\n <mat-divider style=\"align-self: stretch\"></mat-divider>\n\n <ng-container *ngIf=\"loginMenu?.template as menuLoginTpl\">\n <ng-container *ngTemplateOutlet=\"menuLoginTpl\"></ng-container>\n </ng-container>\n\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n data-cy=\"logoutButton\"\n (click)=\"doLogout()\"\n [attr.aria-label]=\"'layout.logout' | translate\"\n >\n <mat-icon>logout</mat-icon>\n {{ 'layout.logout' | translate }}\n </button>\n </ng-container>\n <ng-template #notConnected>\n <button\n type=\"button\"\n mat-menu-item\n data-cy=\"loginButton\"\n (click)=\"doLogin()\"\n [attr.aria-label]=\"'layout.login' | translate\"\n >\n <mat-icon>login</mat-icon>\n {{ 'layout.login' | translate }}\n </button>\n </ng-template>\n </mat-menu>\n </ng-container>\n <ng-container\n *ngIf=\"\n isSmall &&\n (routes?.toArray()?.length || (languages && languages.length > 1))\n \"\n >\n <button\n type=\"button\"\n mat-icon-button\n class=\"menu-button\"\n data-cy=\"smallDeviceMenu\"\n (click)=\"toggleSideNav()\"\n [attr.aria-label]=\"'layout.menu' | translate\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n </ng-container>\n <div\n class=\"flex-center\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n *ngIf=\"!isSmall\"\n >\n <a\n [matMenuTriggerFor]=\"languageMenu\"\n data-cy=\"languageMenu\"\n [attr.aria-label]=\"'language.selection' | translate\"\n mat-tab-link\n >\n {{ currentLanguage }}\n <mat-icon style=\"width: 16px\">expand_more</mat-icon>\n </a>\n </div>\n <mat-menu #languageMenu>\n <button\n *ngFor=\"let lang of languages\"\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n [attr.data-cy]=\"'language_' + lang.code\"\n (click)=\"changeLanguage(lang.code)\"\n [attr.aria-label]=\"lang.label\"\n >\n {{ lang.label }}\n </button>\n </mat-menu>\n </div>\n </mat-toolbar>\n </header>\n <ng-container>\n <div\n [id]=\"id\"\n [attr.role]=\"role\"\n class=\"onemrva-layout-content onemrva-layout-container\"\n *ngIf=\"content?.template as tpl\"\n >\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n\n <ng-container\n *ngIf=\"\n environment &&\n (environment === env.LOCAL || environment === env.TEST)\n \"\n >\n <button\n id=\"accessibility_fab\"\n mat-fab\n color=\"accent\"\n aria-label=\"Accessibility check\"\n matTooltip=\"Accessibility check\"\n onclick=\"(function() {var _p='//openfed.github.io/AccessibilityCheck/build/';var _i=function(s,cb) {var sc=document.createElement('script');sc.onload = function() {sc.onload = null;sc.onreadystatechange = null;cb.call(this);};sc.onreadystatechange = function(){if(/^(complete|loaded)$/.test(this.readyState) === true){sc.onreadystatechange = null;sc.onload();}};sc.src=s;if (document.head) {document.head.appendChild(sc);} else {document.getElementsByTagName('head')[0].appendChild(sc);}}; var options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();\"\n >\n <mat-icon>accessibility</mat-icon>\n </button>\n </ng-container>\n </div>\n\n <footer\n class=\"onemrva-footer p mb text-center\"\n *ngIf=\"footer?.template as footer\"\n >\n <div class=\"onemrva-layout-container\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n </footer>\n </ng-container>\n </div>\n\n <mat-drawer [class]=\"effectiveDrawerClass\" mode=\"over\" position=\"end\">\n <ng-template drawerhost></ng-template>\n </mat-drawer>\n</mat-drawer-container>\n", styles: [":host{position:relative}:host a:active{outline:none}:host router-outlet{display:block;margin-bottom:90px}:host header mat-toolbar{position:fixed;height:var(--layout-header-height);z-index:400}:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-before,:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-after{display:none!important}:host header mat-toolbar .logo{height:42px}:host header mat-toolbar .application-title{font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-secondary)}:host header mat-toolbar{--mat-tab-header-divider-color: transparent}:host .onemrva-layout-content{padding-top:var(--layout-content-padding-top);min-height:calc(100vh - 48px)}:host .mat-drawer-content{min-height:100vh}:host #accessibility_fab{position:fixed;bottom:16px;left:16px}:host .environment{position:fixed;top:0;left:0;z-index:24000;width:60px;height:50px;padding:15px 20px;font-weight:700;font-size:16px;border-radius:0 0 100%;color:#fff;display:none}:host .environment.LOCAL{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}:host .environment.TEST{background-color:#36c;display:block}:host .environment.VAL{background-color:#093;display:block}:host mat-drawer{padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}:host mat-drawer.xsmall{width:20%}:host mat-drawer.small{width:30%}:host mat-drawer.medium{width:50%}:host mat-drawer.large{width:60%}:host mat-drawer.xlarge{width:70%}:host mat-drawer.xxlarge{width:90%}@media screen and (max-width: 640px){:host mat-drawer{width:99%!important}}.mat-mdc-menu-content button.active>*{font-weight:700!important}.mat-mdc-menu-content button mat-icon{font-size:1.125rem!important;height:1.125rem;width:1.125rem}.mat-mdc-menu-content button span{font-size:14px!important}nav a.disabled{pointer-events:none}\n"] }]
|
|
552
|
-
}], ctorParameters: () => [{ type: i1$2.TranslateService }, { type: i2.OnemRvaCDNService }, { type: i0.ChangeDetectorRef }, { type: i3.BreakpointObserver }, { type: Document, decorators: [{
|
|
553
|
-
type: Inject,
|
|
554
|
-
args: [DOCUMENT]
|
|
555
|
-
}] }, { type: OnemrvaDrawerService }], propDecorators: { routes: [{
|
|
538
|
+
], template: "<mat-drawer-container\n id=\"onemrva-drawer-container\"\n [hasBackdrop]=\"drawerService.hasBackdrop\"\n autosize\n>\n <div class=\"app-content\">\n <header>\n <mat-toolbar class=\"mat-elevation-z4\">\n <div class=\"environment\" [class]=\"environment\">\n {{ environment }}\n </div>\n <div class=\"nav-container onemrva-layout-container flex-center g-m\">\n {{ logoRedictionUrl }}\n <img\n class=\"logo align-center clickable\"\n [src]=\"logo\"\n [attr.data-cy]=\"\n 'onemrva_logo_' + currentLanguage.toLocaleLowerCase()\n \"\n alt=\"Logo ONEM/RVA\"\n [routerLink]=\"\n logoRedictionUrl !== null ? logoRedictionUrl : undefined\n \"\n [ngStyle]=\"{\n cursor: logoRedictionUrl !== null ? 'pointer' : 'default',\n }\"\n />\n <div\n class=\"application-title\"\n [ngClass]=\"{ 'small-screen': isSmall }\"\n >\n @if (title?.template; as titleTpl) {\n <ng-container *ngTemplateOutlet=\"titleTpl\"></ng-container>\n }\n </div>\n\n <div style=\"flex: 1\"></div>\n\n @if (!isSmall) {\n <div\n class=\"flex-center topMenu\"\n mat-tab-nav-bar\n [tabPanel]=\"tabPanel\"\n >\n @for (\n e of routes?.toArray();\n track e.routerLink;\n let i = $index\n ) {\n <a\n mat-tab-link\n [routerLink]=\"e.routerLink\"\n [attr.data-ci]=\"e.dataCy\"\n [attr.data-cy]=\"e.dataCy\"\n [routerLinkActiveOptions]=\"{\n fragment: 'exact',\n matrixParams: 'exact',\n paths: 'exact',\n queryParams: 'ignored',\n }\"\n #rla=\"routerLinkActive\"\n routerLinkActive=\"mdc-tab--active\"\n [active]=\"rla.isActive || e.isRouteActive()\"\n >\n @if (e.template; as routeTemplate) {\n <ng-container *ngTemplateOutlet=\"routeTemplate\">\n </ng-container>\n }\n </a>\n }\n </div>\n }\n <mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>\n\n @if (afterNav?.template; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n }\n\n @if (profile !== null) {\n @if (!isSmall) {\n <mat-divider\n vertical\n style=\"height: 1em; align-self: center\"\n ></mat-divider>\n }\n @if (profile.isLoggedIn) {\n <onemrva-mat-avatar\n matRipple\n [matMenuTriggerFor]=\"menu\"\n initials=\"{{ profile.initials() }}\"\n color=\"accent\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n }\n @if (!profile.isLoggedIn) {\n <onemrva-mat-avatar\n matRipple\n [matMenuTriggerFor]=\"menu\"\n icon=\"account_circle\"\n color=\"\"\n size=\"xsmall\"\n class=\"clickable\"\n ></onemrva-mat-avatar>\n }\n <mat-menu #menu=\"matMenu\">\n @if (profile.isLoggedIn) {\n <div class=\"menu-header m mb-m\">\n {{ profile.firstName }} {{ profile.lastName }}\n </div>\n <mat-divider style=\"align-self: stretch\"></mat-divider>\n\n @if (loginMenu?.template; as menuLoginTpl) {\n <ng-container *ngTemplateOutlet=\"menuLoginTpl\"></ng-container>\n }\n\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n data-cy=\"logoutButton\"\n (click)=\"doLogout()\"\n [attr.aria-label]=\"'layout.logout' | translate\"\n >\n <mat-icon>logout</mat-icon>\n {{ 'layout.logout' | translate }}\n </button>\n } @else {\n <button\n type=\"button\"\n mat-menu-item\n data-cy=\"loginButton\"\n (click)=\"doLogin()\"\n [attr.aria-label]=\"'layout.login' | translate\"\n >\n <mat-icon>login</mat-icon>\n {{ 'layout.login' | translate }}\n </button>\n }\n </mat-menu>\n }\n\n @if (\n isSmall &&\n (routes?.toArray()?.length || (languages && languages.length > 1))\n ) {\n <button\n type=\"button\"\n mat-icon-button\n class=\"menu-button\"\n data-cy=\"smallDeviceMenu\"\n (click)=\"toggleSideNav()\"\n [attr.aria-label]=\"'layout.menu' | translate\"\n >\n <mat-icon>menu</mat-icon>\n </button>\n }\n @if (!isSmall) {\n <div class=\"flex-center\" mat-tab-nav-bar [tabPanel]=\"tabPanel\">\n <a\n [matMenuTriggerFor]=\"languageMenu\"\n data-cy=\"languageMenu\"\n [attr.aria-label]=\"'language.selection' | translate\"\n mat-tab-link\n >\n {{ currentLanguage }}\n <mat-icon style=\"width: 16px\">expand_more</mat-icon>\n </a>\n </div>\n }\n <mat-menu #languageMenu>\n @for (lang of languages; track lang.code) {\n <button\n type=\"button\"\n class=\"mat-mdc-menu-item\"\n mat-menu-item\n [attr.data-cy]=\"'language_' + lang.code\"\n (click)=\"changeLanguage(lang.code)\"\n [attr.aria-label]=\"lang.label\"\n >\n {{ lang.label }}\n </button>\n }\n </mat-menu>\n </div>\n </mat-toolbar>\n </header>\n <ng-container>\n @if (content?.template; as tpl) {\n <div\n [id]=\"id\"\n [attr.role]=\"role\"\n class=\"onemrva-layout-content onemrva-layout-container\"\n >\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n @if (\n environment &&\n (environment === env.LOCAL || environment === env.TEST)\n ) {\n <button\n id=\"accessibility_fab\"\n mat-fab\n color=\"accent\"\n aria-label=\"Accessibility check\"\n matTooltip=\"Accessibility check\"\n onclick=\"(function() {var _p='//openfed.github.io/AccessibilityCheck/build/';var _i=function(s,cb) {var sc=document.createElement('script');sc.onload = function() {sc.onload = null;sc.onreadystatechange = null;cb.call(this);};sc.onreadystatechange = function(){if(/^(complete|loaded)$/.test(this.readyState) === true){sc.onreadystatechange = null;sc.onload();}};sc.src=s;if (document.head) {document.head.appendChild(sc);} else {document.getElementsByTagName('head')[0].appendChild(sc);}}; var options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();\"\n >\n <mat-icon>accessibility</mat-icon>\n </button>\n }\n </div>\n }\n\n <footer class=\"onemrva-footer p mb text-center\">\n @if (footer?.template; as footerTpl) {\n <div class=\"onemrva-layout-container\">\n <ng-container *ngTemplateOutlet=\"footerTpl\"></ng-container>\n </div>\n }\n </footer>\n </ng-container>\n </div>\n\n <mat-drawer [class]=\"effectiveDrawerClass\" mode=\"over\" position=\"end\">\n <ng-template drawerhost></ng-template>\n </mat-drawer>\n</mat-drawer-container>\n", styles: [":host{position:relative}:host a:active{outline:none}:host router-outlet{display:block;margin-bottom:90px}:host header mat-toolbar{position:fixed;height:var(--layout-header-height);z-index:400;--mat-tab-divider-color: transparent}:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-before,:host header mat-toolbar .topMenu .mat-mdc-tab-header-pagination-after{display:none!important}:host header mat-toolbar .logo{height:42px}:host header mat-toolbar .application-title{font-size:1.3rem;font-weight:700;height:42px;line-height:42px;color:var(--mat-sys-secondary)}:host .onemrva-layout-content{padding-top:var(--layout-content-padding-top);min-height:calc(100vh - 48px)}:host .mat-drawer-content{min-height:100vh}:host #accessibility_fab{position:fixed;bottom:16px;left:16px}:host .environment{position:fixed;top:0;left:0;z-index:24000;width:60px;height:50px;padding:15px 20px;font-weight:700;font-size:16px;border-radius:0 0 100%;color:#fff;display:none}:host .environment.LOCAL{background:transparent linear-gradient(90deg,#de2174,#eb142a) 0 0 no-repeat padding-box;display:block}:host .environment.TEST{background-color:#36c;display:block}:host .environment.VAL{background-color:#093;display:block}:host mat-drawer{padding:var(--double-spacer);background:var(--mat-sys-surface-container-high)}:host mat-drawer.xsmall{width:20%}:host mat-drawer.small{width:30%}:host mat-drawer.medium{width:50%}:host mat-drawer.large{width:60%}:host mat-drawer.xlarge{width:70%}:host mat-drawer.xxlarge{width:90%}@media screen and (max-width: 640px){:host mat-drawer{width:99%!important}}.mat-mdc-menu-content button.active>*{font-weight:700!important}.mat-mdc-menu-content button mat-icon{font-size:1.125rem!important;height:1.125rem;width:1.125rem}.mat-mdc-menu-content button span{font-size:14px!important}nav a.disabled{pointer-events:none}\n"] }]
|
|
539
|
+
}], ctorParameters: () => [], propDecorators: { routes: [{
|
|
556
540
|
type: ContentChildren,
|
|
557
541
|
args: [LayoutRouteComponent]
|
|
558
542
|
}], title: [{
|
|
@@ -599,14 +583,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
599
583
|
}] } });
|
|
600
584
|
|
|
601
585
|
class LayoutSidenavTitleComponent {
|
|
602
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
603
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
586
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSidenavTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
587
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutSidenavTitleComponent, isStandalone: true, selector: "onemrva-layout-sidenav-title", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `
|
|
604
588
|
<ng-template>
|
|
605
589
|
<ng-content></ng-content>
|
|
606
590
|
</ng-template>
|
|
607
591
|
`, isInline: true }); }
|
|
608
592
|
}
|
|
609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutSidenavTitleComponent, decorators: [{
|
|
610
594
|
type: Component,
|
|
611
595
|
args: [{
|
|
612
596
|
selector: 'onemrva-layout-sidenav-title',
|
|
@@ -623,45 +607,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
623
607
|
}] } });
|
|
624
608
|
|
|
625
609
|
class LayoutDrawerActionsComponent {
|
|
626
|
-
constructor(
|
|
627
|
-
this.drawerService =
|
|
610
|
+
constructor() {
|
|
611
|
+
this.drawerService = inject(OnemrvaDrawerService);
|
|
628
612
|
}
|
|
629
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
630
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
614
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutDrawerActionsComponent, isStandalone: true, selector: "onemrva-drawer-actions", ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{width:calc(100% - var(--double-spacer));display:block;padding:var(--spacer);text-align:right}\n"] }); }
|
|
631
615
|
}
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerActionsComponent, decorators: [{
|
|
633
617
|
type: Component,
|
|
634
618
|
args: [{ selector: 'onemrva-drawer-actions', standalone: true, template: "<ng-content></ng-content>\n", styles: [":host{width:calc(100% - var(--double-spacer));display:block;padding:var(--spacer);text-align:right}\n"] }]
|
|
635
|
-
}]
|
|
619
|
+
}] });
|
|
636
620
|
|
|
637
621
|
class LayoutDrawerContentComponent {
|
|
638
|
-
constructor(
|
|
639
|
-
this.drawerService =
|
|
622
|
+
constructor() {
|
|
623
|
+
this.drawerService = inject(OnemrvaDrawerService);
|
|
640
624
|
}
|
|
641
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
642
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
625
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
626
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: LayoutDrawerContentComponent, isStandalone: true, selector: "onemrva-drawer-content", ngImport: i0, template: "<span><ng-content></ng-content></span>\n", styles: [":host{background-color:var(--mat-sys-surface);padding:23px 32px;margin:0 var(--spacer);border-radius:var(--border-radius);display:block;height:calc(100vh - 180px);overflow:auto}\n"] }); }
|
|
643
627
|
}
|
|
644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerContentComponent, decorators: [{
|
|
645
629
|
type: Component,
|
|
646
630
|
args: [{ selector: 'onemrva-drawer-content', standalone: true, template: "<span><ng-content></ng-content></span>\n", styles: [":host{background-color:var(--mat-sys-surface);padding:23px 32px;margin:0 var(--spacer);border-radius:var(--border-radius);display:block;height:calc(100vh - 180px);overflow:auto}\n"] }]
|
|
647
|
-
}]
|
|
631
|
+
}] });
|
|
648
632
|
|
|
649
633
|
class LayoutDrawerTitleComponent {
|
|
650
|
-
constructor(
|
|
651
|
-
this.drawerService = drawerService;
|
|
634
|
+
constructor() {
|
|
652
635
|
this.showClose = true;
|
|
636
|
+
this.drawerService = inject(OnemrvaDrawerService);
|
|
653
637
|
}
|
|
654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
655
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
638
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
639
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: LayoutDrawerTitleComponent, isStandalone: true, selector: "onemrva-drawer-title", inputs: { showClose: "showClose" }, ngImport: i0, template: "<span><ng-content></ng-content></span>\n@if (showClose) {\n <mat-icon\n class=\"close-drawer clickable large float-right\"\n (click)=\"drawerService.close()\"\n >close</mat-icon\n >\n}\n", styles: [":host{width:calc(100% - var(--double-spacer));display:block;padding:var(--spacer)}:host span:first-child{font:var(--mat-sys-title-large);color:var(--mat-sys-error)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
656
640
|
}
|
|
657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: LayoutDrawerTitleComponent, decorators: [{
|
|
658
642
|
type: Component,
|
|
659
|
-
args: [{ selector: 'onemrva-drawer-title', standalone: true, imports: [MatIcon
|
|
660
|
-
}],
|
|
643
|
+
args: [{ selector: 'onemrva-drawer-title', standalone: true, imports: [MatIcon], template: "<span><ng-content></ng-content></span>\n@if (showClose) {\n <mat-icon\n class=\"close-drawer clickable large float-right\"\n (click)=\"drawerService.close()\"\n >close</mat-icon\n >\n}\n", styles: [":host{width:calc(100% - var(--double-spacer));display:block;padding:var(--spacer)}:host span:first-child{font:var(--mat-sys-title-large);color:var(--mat-sys-error)}\n"] }]
|
|
644
|
+
}], propDecorators: { showClose: [{
|
|
661
645
|
type: Input
|
|
662
646
|
}] } });
|
|
663
647
|
|
|
664
|
-
const
|
|
648
|
+
const layoutComponents = [
|
|
665
649
|
LayoutComponent,
|
|
666
650
|
LayoutContentComponent,
|
|
667
651
|
LayoutFooterComponent,
|
|
@@ -678,10 +662,10 @@ class StripHtmlPipe {
|
|
|
678
662
|
transform(value) {
|
|
679
663
|
return value.replace(/<.*?>/g, ''); // replace tags
|
|
680
664
|
}
|
|
681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
682
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: StripHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
666
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: StripHtmlPipe, isStandalone: true, name: "striphtml" }); }
|
|
683
667
|
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: StripHtmlPipe, decorators: [{
|
|
685
669
|
type: Pipe,
|
|
686
670
|
args: [{
|
|
687
671
|
name: 'striphtml',
|
|
@@ -764,8 +748,8 @@ class OnemRvaProfile {
|
|
|
764
748
|
}
|
|
765
749
|
|
|
766
750
|
class OnemrvaLayoutModule {
|
|
767
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
768
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
752
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaLayoutModule, imports: [LayoutComponent, LayoutContentComponent, LayoutFooterComponent, LayoutRouteComponent, LayoutSubrouteComponent, LayoutTitleComponent, LayoutSidenavTitleComponent, LayoutSidenavComponent, LayoutLoginMenuComponent, LayoutAfterNavComponent, StripHtmlPipe,
|
|
769
753
|
DrawerHostDirective,
|
|
770
754
|
CommonModule,
|
|
771
755
|
RouterModule,
|
|
@@ -781,7 +765,7 @@ class OnemrvaLayoutModule {
|
|
|
781
765
|
MatTooltipModule,
|
|
782
766
|
TranslateModule,
|
|
783
767
|
MatRipple], exports: [LayoutComponent, LayoutContentComponent, LayoutFooterComponent, LayoutRouteComponent, LayoutSubrouteComponent, LayoutTitleComponent, LayoutSidenavTitleComponent, LayoutSidenavComponent, LayoutLoginMenuComponent, LayoutAfterNavComponent, LayoutModule] }); }
|
|
784
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
768
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaLayoutModule, providers: [
|
|
785
769
|
{
|
|
786
770
|
provide: MAT_SNACK_BAR_DEFAULT_OPTIONS,
|
|
787
771
|
useValue: { horizontalPosition: 'right' },
|
|
@@ -800,12 +784,12 @@ class OnemrvaLayoutModule {
|
|
|
800
784
|
MatTooltipModule,
|
|
801
785
|
TranslateModule, LayoutModule] }); }
|
|
802
786
|
}
|
|
803
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaLayoutModule, decorators: [{
|
|
804
788
|
type: NgModule,
|
|
805
789
|
args: [{
|
|
806
790
|
declarations: [],
|
|
807
791
|
imports: [
|
|
808
|
-
...
|
|
792
|
+
...layoutComponents,
|
|
809
793
|
StripHtmlPipe,
|
|
810
794
|
DrawerHostDirective,
|
|
811
795
|
CommonModule,
|
|
@@ -823,7 +807,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
823
807
|
TranslateModule,
|
|
824
808
|
MatRipple,
|
|
825
809
|
],
|
|
826
|
-
exports: [...
|
|
810
|
+
exports: [...layoutComponents, LayoutModule],
|
|
827
811
|
providers: [
|
|
828
812
|
{
|
|
829
813
|
provide: MAT_SNACK_BAR_DEFAULT_OPTIONS,
|
|
@@ -837,5 +821,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
837
821
|
* Generated bundle index. Do not edit.
|
|
838
822
|
*/
|
|
839
823
|
|
|
840
|
-
export { CoerceBooleanInput, DrawerHostDirective, Environment, LayoutAfterNavComponent, LayoutComponent, LayoutContentComponent, LayoutDrawerActionsComponent, LayoutDrawerContentComponent, LayoutDrawerTitleComponent, LayoutFooterComponent, LayoutLoginMenuComponent, LayoutRouteComponent, LayoutSidenavComponent, LayoutSidenavTitleComponent, LayoutSubrouteComponent, LayoutTitleComponent, ObservableContent, OnemRvaProfile, OnemrvaDrawerService, OnemrvaLayoutModule, StripHtmlPipe,
|
|
824
|
+
export { CoerceBooleanInput, DrawerHostDirective, Environment, LayoutAfterNavComponent, LayoutComponent, LayoutContentComponent, LayoutDrawerActionsComponent, LayoutDrawerContentComponent, LayoutDrawerTitleComponent, LayoutFooterComponent, LayoutLoginMenuComponent, LayoutRouteComponent, LayoutSidenavComponent, LayoutSidenavTitleComponent, LayoutSubrouteComponent, LayoutTitleComponent, ObservableContent, OnemRvaProfile, OnemrvaDrawerService, OnemrvaLayoutModule, StripHtmlPipe, layoutComponents };
|
|
841
825
|
//# sourceMappingURL=onemrvapublic-design-system-layout.mjs.map
|