@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,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Input, Component, HostListener, Directive, NgModule } from '@angular/core';
|
|
2
|
+
import { Input, Component, inject, ElementRef, HostListener, Directive, NgModule } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
4
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
5
|
-
import
|
|
5
|
+
import { Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
|
|
6
6
|
|
|
7
7
|
class OnemrvaMatTooltipComponent {
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: OnemrvaMatTooltipComponent, isStandalone: true, selector: "onemrva-mat-tooltip", inputs: { text: "text", contentTemplate: "contentTemplate" }, ngImport: i0, template: `
|
|
10
10
|
<div>
|
|
11
11
|
<div class="tooltip-container">
|
|
12
12
|
<ng-template #simpleText>
|
|
@@ -18,7 +18,7 @@ class OnemrvaMatTooltipComponent {
|
|
|
18
18
|
</div>
|
|
19
19
|
`, isInline: true, styles: [".tooltip-container{font-family:var(--text-font);background:#fff;font-size:12px;color:inherit;box-shadow:0 2px 6px #00000052;border-radius:4px;padding:var(--spacer);font-weight:400;font-style:normal;line-height:18px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{ selector: 'onemrva-mat-tooltip', template: `
|
|
24
24
|
<div>
|
|
@@ -38,10 +38,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
38
38
|
}] } });
|
|
39
39
|
|
|
40
40
|
class OnemrvaMatTooltipDirective {
|
|
41
|
-
constructor(
|
|
42
|
-
this._overlay =
|
|
43
|
-
this._overlayPositionBuilder =
|
|
44
|
-
this._elementRef =
|
|
41
|
+
constructor() {
|
|
42
|
+
this._overlay = inject(Overlay);
|
|
43
|
+
this._overlayPositionBuilder = inject(OverlayPositionBuilder);
|
|
44
|
+
this._elementRef = inject(ElementRef);
|
|
45
45
|
this.showToolTip = true;
|
|
46
46
|
this.position = 'after';
|
|
47
47
|
this.positionOffset = 5;
|
|
@@ -117,16 +117,16 @@ class OnemrvaMatTooltipDirective {
|
|
|
117
117
|
this._overlayRef.detach();
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
121
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
121
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: OnemrvaMatTooltipDirective, isStandalone: true, selector: "[OnemrvaMatTooltip]", inputs: { showToolTip: "showToolTip", customToolTip: "customToolTip", contentTemplate: "contentTemplate", position: "position", positionOffset: "positionOffset" }, host: { listeners: { "mouseenter": "show()", "mouseleave": "hide()" } }, ngImport: i0 }); }
|
|
122
122
|
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipDirective, decorators: [{
|
|
124
124
|
type: Directive,
|
|
125
125
|
args: [{
|
|
126
126
|
selector: '[OnemrvaMatTooltip]',
|
|
127
127
|
standalone: true,
|
|
128
128
|
}]
|
|
129
|
-
}],
|
|
129
|
+
}], propDecorators: { showToolTip: [{
|
|
130
130
|
type: Input
|
|
131
131
|
}], customToolTip: [{
|
|
132
132
|
type: Input
|
|
@@ -145,11 +145,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
145
145
|
}] } });
|
|
146
146
|
|
|
147
147
|
class OnemrvaMatTooltipModule {
|
|
148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
149
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
150
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
149
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipModule, imports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent], exports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent] }); }
|
|
150
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipModule }); }
|
|
151
151
|
}
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatTooltipModule, decorators: [{
|
|
153
153
|
type: NgModule,
|
|
154
154
|
args: [{
|
|
155
155
|
declarations: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-mat-tooltip.mjs","sources":["../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts","../../../../projects/onemrva/design-system/mat-tooltip/onemrvapublic-design-system-mat-tooltip.ts"],"sourcesContent":["import { Component, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-tooltip',\n styleUrls: ['./onemrva-mat-tooltip.component.scss'],\n template: `\n <div>\n <div class=\"tooltip-container\">\n <ng-template #simpleText>\n {{ text }}\n </ng-template>\n <ng-container *ngTemplateOutlet=\"contentTemplate || simpleText\">\n </ng-container>\n </div>\n </div>\n `,\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class OnemrvaMatTooltipComponent {\n @Input() text!: string;\n @Input() contentTemplate!: TemplateRef<any>;\n}\n","import {\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n} from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n Overlay,\n OverlayPositionBuilder,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TooltipPosition } from '@angular/material/tooltip';\n\n@Directive({\n selector: '[OnemrvaMatTooltip]',\n standalone: true,\n})\nexport class OnemrvaMatTooltipDirective implements OnInit, OnDestroy {\n @Input() showToolTip = true;\n\n @Input() customToolTip!: string;\n\n @Input() contentTemplate!: TemplateRef<any>;\n\n @Input() position: TooltipPosition = 'after';\n @Input() positionOffset = 5;\n\n private _overlayRef!: OverlayRef;\n\n
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-mat-tooltip.mjs","sources":["../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts","../../../../projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts","../../../../projects/onemrva/design-system/mat-tooltip/onemrvapublic-design-system-mat-tooltip.ts"],"sourcesContent":["import { Component, Input, TemplateRef } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\n\n@Component({\n selector: 'onemrva-mat-tooltip',\n styleUrls: ['./onemrva-mat-tooltip.component.scss'],\n template: `\n <div>\n <div class=\"tooltip-container\">\n <ng-template #simpleText>\n {{ text }}\n </ng-template>\n <ng-container *ngTemplateOutlet=\"contentTemplate || simpleText\">\n </ng-container>\n </div>\n </div>\n `,\n standalone: true,\n imports: [NgTemplateOutlet],\n})\nexport class OnemrvaMatTooltipComponent {\n @Input() text!: string;\n @Input() contentTemplate!: TemplateRef<any>;\n}\n","import {\n ComponentRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n TemplateRef,\n inject,\n} from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n ConnectedPosition,\n Overlay,\n OverlayPositionBuilder,\n OverlayRef,\n} from '@angular/cdk/overlay';\nimport { TooltipPosition } from '@angular/material/tooltip';\n\n@Directive({\n selector: '[OnemrvaMatTooltip]',\n standalone: true,\n})\nexport class OnemrvaMatTooltipDirective implements OnInit, OnDestroy {\n private _overlay = inject(Overlay);\n private _overlayPositionBuilder = inject(OverlayPositionBuilder);\n private _elementRef = inject(ElementRef);\n\n @Input() showToolTip = true;\n\n @Input() customToolTip!: string;\n\n @Input() contentTemplate!: TemplateRef<any>;\n\n @Input() position: TooltipPosition = 'after';\n @Input() positionOffset = 5;\n\n private _overlayRef!: OverlayRef;\n\n ngOnInit() {\n if (!this.showToolTip) {\n return;\n }\n\n const positionStrategy = this._overlayPositionBuilder\n .flexibleConnectedTo(this._elementRef)\n .withPositions(this.defineStrategy());\n this._overlayRef = this._overlay.create({ positionStrategy });\n }\n\n defineStrategy(): ConnectedPosition[] {\n switch (this.position) {\n case 'above':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom',\n },\n ];\n\n case 'below':\n return [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top',\n },\n ];\n\n case 'after':\n case 'right':\n return [\n {\n originX: 'end',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'top',\n },\n ];\n\n case 'before':\n case 'left':\n return [\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'end',\n overlayY: 'top',\n },\n ];\n default:\n return [];\n }\n }\n\n @HostListener('mouseenter')\n show() {\n if (this._overlayRef && !this._overlayRef.hasAttached()) {\n const tooltipRef: ComponentRef<OnemrvaMatTooltipComponent> =\n this._overlayRef.attach(\n new ComponentPortal(OnemrvaMatTooltipComponent),\n );\n tooltipRef.instance.text = this.customToolTip;\n tooltipRef.instance.contentTemplate = this.contentTemplate;\n }\n }\n\n @HostListener('mouseleave')\n hide() {\n this.closeToolTip();\n }\n\n ngOnDestroy() {\n this.closeToolTip();\n }\n\n private closeToolTip() {\n if (this._overlayRef) {\n this._overlayRef.detach();\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { OnemrvaMatTooltipComponent } from './onemrva-mat-tooltip.component';\nimport { OnemrvaMatTooltipDirective } from './onemrva-mat-tooltip.directive';\n\n@NgModule({\n declarations: [],\n imports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent],\n exports: [OnemrvaMatTooltipDirective, OnemrvaMatTooltipComponent],\n})\nexport class OnemrvaMatTooltipModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAoBa,0BAA0B,CAAA;8GAA1B,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA1B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAA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B;gBAEQ,eAAe,EAAA,CAAA;sBAAvB;gBAEQ,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,cAAc,EAAA,CAAA;sBAAtB;gBAgED,IAAI,EAAA,CAAA;sBADH,YAAY;uBAAC,YAAY;gBAa1B,IAAI,EAAA,CAAA;sBADH,YAAY;uBAAC,YAAY;;;MCvGf,uBAAuB,CAAA;8GAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YAHxB,0BAA0B,EAAE,0BAA0B,CACtD,EAAA,OAAA,EAAA,CAAA,0BAA0B,EAAE,0BAA0B,CAAA,EAAA,CAAA,CAAA;+GAErD,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;AACjE,oBAAA,OAAO,EAAE,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;AAClE,iBAAA;;;ACRD;;AAEG;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ViewChild, Component, Input, ContentChildren } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
2
|
+
import { TemplateRef, ViewChild, Component, inject, Renderer2, ChangeDetectorRef, Input, ContentChildren } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ngx-translate/core';
|
|
4
|
+
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
5
|
+
import { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';
|
|
6
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
|
|
8
8
|
class PageErrorActionComponent {
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageErrorActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: PageErrorActionComponent, isStandalone: true, selector: "page-error-action", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageErrorActionComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: 'page-error-action',
|
|
@@ -22,14 +22,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
22
22
|
}] } });
|
|
23
23
|
|
|
24
24
|
class PageErrorComponent {
|
|
25
|
-
constructor(
|
|
26
|
-
this.cdn = cdn;
|
|
27
|
-
this.renderer = renderer;
|
|
28
|
-
this.translate = translate;
|
|
29
|
-
this.cd = cd;
|
|
25
|
+
constructor() {
|
|
30
26
|
this.defaultCode = 500;
|
|
31
27
|
this.mdc = null;
|
|
32
28
|
this.code = this.defaultCode;
|
|
29
|
+
this.cdn = inject(OnemRvaCDNService);
|
|
30
|
+
this.renderer = inject(Renderer2);
|
|
31
|
+
this.translate = inject(TranslateService);
|
|
32
|
+
this.cd = inject(ChangeDetectorRef);
|
|
33
33
|
}
|
|
34
34
|
ngAfterViewInit() {
|
|
35
35
|
this.cd.detectChanges();
|
|
@@ -59,13 +59,13 @@ class PageErrorComponent {
|
|
|
59
59
|
? this.code
|
|
60
60
|
: this.defaultCode;
|
|
61
61
|
}
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: PageErrorComponent, isStandalone: true, selector: "page-error", inputs: { code: "code" }, queries: [{ propertyName: "actions", predicate: PageErrorActionComponent }], usesOnChanges: true, ngImport: i0, template: "<main class=\"page-error\">\n <section class=\"row\">\n <div class=\"col-6-large col-12 col-left\">\n <div class=\"error-content\">\n <h1>{{ 'error.' + code + '.h1' | translate }}</h1>\n <h2>{{ 'error.' + code + '.h2' | translate }}</h2>\n <p>{{ 'error.' + code + '.p' | translate }}</p>\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n </div>\n <div class=\"col-6-large col-12 col-right\">\n <img\n alt=\"{{ 'error.' + code + '.h2' | translate }}\"\n [src]=\"ori\"\n class=\"ori\"\n />\n </div>\n </section>\n</main>\n", styles: [".page-error section.row{min-height:calc(100vh - 200px)}.page-error section.row .col-right{display:grid!important;place-items:center}.page-error section.row .col-right img.ori{height:428px}.page-error section.row .col-left{display:flex!important;align-items:center;justify-content:flex-start;text-align:left}.page-error section.row .col-left .error-content{display:block;height:auto}.page-error section.row .col-left .error-content h1{font-size:70px;font-style:normal;font-weight:700;line-height:105px}.page-error section.row .col-left .error-content h2{font-size:23px;font-style:normal;font-weight:600;line-height:40px}.page-error section.row .col-left .error-content p{font-size:16px;font-style:normal;font-weight:400;line-height:26px}\n"], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
64
64
|
}
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
65
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageErrorComponent, decorators: [{
|
|
66
66
|
type: Component,
|
|
67
|
-
args: [{ selector: 'page-error', standalone: true, imports: [TranslateModule,
|
|
68
|
-
}],
|
|
67
|
+
args: [{ selector: 'page-error', standalone: true, imports: [TranslateModule, NgTemplateOutlet], template: "<main class=\"page-error\">\n <section class=\"row\">\n <div class=\"col-6-large col-12 col-left\">\n <div class=\"error-content\">\n <h1>{{ 'error.' + code + '.h1' | translate }}</h1>\n <h2>{{ 'error.' + code + '.h2' | translate }}</h2>\n <p>{{ 'error.' + code + '.p' | translate }}</p>\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n </div>\n <div class=\"col-6-large col-12 col-right\">\n <img\n alt=\"{{ 'error.' + code + '.h2' | translate }}\"\n [src]=\"ori\"\n class=\"ori\"\n />\n </div>\n </section>\n</main>\n", styles: [".page-error section.row{min-height:calc(100vh - 200px)}.page-error section.row .col-right{display:grid!important;place-items:center}.page-error section.row .col-right img.ori{height:428px}.page-error section.row .col-left{display:flex!important;align-items:center;justify-content:flex-start;text-align:left}.page-error section.row .col-left .error-content{display:block;height:auto}.page-error section.row .col-left .error-content h1{font-size:70px;font-style:normal;font-weight:700;line-height:105px}.page-error section.row .col-left .error-content h2{font-size:23px;font-style:normal;font-weight:600;line-height:40px}.page-error section.row .col-left .error-content p{font-size:16px;font-style:normal;font-weight:400;line-height:26px}\n"] }]
|
|
68
|
+
}], propDecorators: { actions: [{
|
|
69
69
|
type: ContentChildren,
|
|
70
70
|
args: [PageErrorActionComponent]
|
|
71
71
|
}], code: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-page-error.mjs","sources":["../../../../projects/onemrva/design-system/page-error/src/page-error-action.component.ts","../../../../projects/onemrva/design-system/page-error/src/page-error.component.ts","../../../../projects/onemrva/design-system/page-error/src/page-error.component.html","../../../../projects/onemrva/design-system/page-error/onemrvapublic-design-system-page-error.ts"],"sourcesContent":["import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-error-action',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageErrorActionComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Input,\n OnChanges,\n OnDestroy,\n QueryList,\n Renderer2,\n SimpleChanges,\n} from '@angular/core';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';\nimport {
|
|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-page-error.mjs","sources":["../../../../projects/onemrva/design-system/page-error/src/page-error-action.component.ts","../../../../projects/onemrva/design-system/page-error/src/page-error.component.ts","../../../../projects/onemrva/design-system/page-error/src/page-error.component.html","../../../../projects/onemrva/design-system/page-error/onemrvapublic-design-system-page-error.ts"],"sourcesContent":["import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-error-action',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageErrorActionComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n Input,\n OnChanges,\n OnDestroy,\n QueryList,\n Renderer2,\n SimpleChanges,\n inject,\n} from '@angular/core';\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\nimport { OnemRvaCDNService } from '@onemrvapublic/design-system/shared';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { PageErrorActionComponent } from './page-error-action.component';\n\n@Component({\n selector: 'page-error',\n styleUrls: ['./page-error.component.scss'],\n templateUrl: 'page-error.component.html',\n standalone: true,\n imports: [TranslateModule, NgTemplateOutlet],\n})\nexport class PageErrorComponent implements OnDestroy, AfterViewInit, OnChanges {\n defaultCode = 500;\n\n mdc: HTMLElement | null = null;\n\n @ContentChildren(PageErrorActionComponent)\n actions?: QueryList<PageErrorActionComponent>;\n\n @Input()\n code = this.defaultCode;\n\n cdn = inject(OnemRvaCDNService);\n renderer = inject(Renderer2);\n translate = inject(TranslateService);\n cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit(): void {\n this.cd.detectChanges();\n this.mdc = document.querySelector('#onemrva-drawer-container');\n if (this.mdc !== null) {\n this.renderer.addClass(this.mdc, 'bkg');\n }\n }\n\n ngOnDestroy(): void {\n if (this.mdc !== null) {\n this.renderer.removeClass(this.mdc, 'bkg');\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n this.updateTexts();\n }\n\n get ori() {\n return this.cdn.getOri(\n this.translate.instant('error.' + this.code + '.ori'),\n );\n }\n /**\n *\n * @private\n */\n private updateTexts() {\n const suppoertedCodes = [500, 404, 403, 401, 400, 503, 502, 408, 429];\n this.code = suppoertedCodes.includes(this.code)\n ? this.code\n : this.defaultCode;\n }\n}\n","<main class=\"page-error\">\n <section class=\"row\">\n <div class=\"col-6-large col-12 col-left\">\n <div class=\"error-content\">\n <h1>{{ 'error.' + code + '.h1' | translate }}</h1>\n <h2>{{ 'error.' + code + '.h2' | translate }}</h2>\n <p>{{ 'error.' + code + '.p' | translate }}</p>\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n </div>\n <div class=\"col-6-large col-12 col-right\">\n <img\n alt=\"{{ 'error.' + code + '.h2' | translate }}\"\n [src]=\"ori\"\n class=\"ori\"\n />\n </div>\n </section>\n</main>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,wBAAwB,CAAA;8GAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EACxB,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJZ,sDAAsD,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;2FAGrD,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,QAAQ,EAAE,sDAAsD;AAChE,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;8BAEyB,QAAQ,EAAA,CAAA;sBAA/B,SAAS;uBAAC,WAAW;;;MCiBX,kBAAkB,CAAA;AAP/B,IAAA,WAAA,GAAA;QAQE,IAAW,CAAA,WAAA,GAAG,GAAG;QAEjB,IAAG,CAAA,GAAA,GAAuB,IAAI;AAM9B,QAAA,IAAA,CAAA,IAAI,GAAG,IAAI,CAAC,WAAW;AAEvB,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EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,wHAKZ,wBAAwB,EAAA,CAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC9B3C,iwBAuBA,EDAY,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,eAAe,4FAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAEhC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cAGV,IAAI,EAAA,OAAA,EACP,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAA,QAAA,EAAA,iwBAAA,EAAA,MAAA,EAAA,CAAA,ouBAAA,CAAA,EAAA;8BAQ5C,OAAO,EAAA,CAAA;sBADN,eAAe;uBAAC,wBAAwB;gBAIzC,IAAI,EAAA,CAAA;sBADH;;;AEjCH;;AAEG;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ViewChild, Component, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
|
2
|
+
import { TemplateRef, ViewChild, Component, inject, ChangeDetectorRef, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
|
3
3
|
import { Subject, of, timer } from 'rxjs';
|
|
4
4
|
import { startWith, switchMap, map } from 'rxjs/operators';
|
|
5
|
-
import { AsyncPipe, NgStyle, NgClass,
|
|
5
|
+
import { AsyncPipe, NgStyle, NgClass, NgTemplateOutlet } from '@angular/common';
|
|
6
6
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
7
7
|
|
|
8
8
|
class PageNotFoundActionComponent {
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: PageNotFoundActionComponent, isStandalone: true, selector: "page-not-found-action", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundActionComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: 'page-not-found-action',
|
|
@@ -22,10 +22,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
22
22
|
}] } });
|
|
23
23
|
|
|
24
24
|
class PageNotFoundExtraComponent {
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundExtraComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: PageNotFoundExtraComponent, isStandalone: true, selector: "page-not-found-extra", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '<ng-template><ng-content></ng-content></ng-template>', isInline: true }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundExtraComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{
|
|
31
31
|
selector: 'page-not-found-extra',
|
|
@@ -38,8 +38,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
38
38
|
}] } });
|
|
39
39
|
|
|
40
40
|
class PageNotFoundInvaderComponent {
|
|
41
|
-
constructor(
|
|
42
|
-
this.cd =
|
|
41
|
+
constructor() {
|
|
42
|
+
this.cd = inject(ChangeDetectorRef);
|
|
43
43
|
this.level = 0;
|
|
44
44
|
this.start = new Date();
|
|
45
45
|
this.score = 0;
|
|
@@ -82,8 +82,8 @@ class PageNotFoundInvaderComponent {
|
|
|
82
82
|
this.score++;
|
|
83
83
|
this.score$.next(this.score);
|
|
84
84
|
}
|
|
85
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
86
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundInvaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
86
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.6", type: PageNotFoundInvaderComponent, isStandalone: true, selector: "page-not-found-invader", ngImport: i0, template: `
|
|
87
87
|
<img
|
|
88
88
|
role="button"
|
|
89
89
|
tabindex="1"
|
|
@@ -103,7 +103,7 @@ class PageNotFoundInvaderComponent {
|
|
|
103
103
|
<!--div class="laser"></div-->
|
|
104
104
|
`, isInline: true, styles: [".invader{max-height:20px;max-width:20px;position:absolute;border-radius:50%;z-index:100}.invader.game-over{padding:10px;border:2px solid red}.invader:hover{cursor:crosshair}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
105
105
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundInvaderComponent, decorators: [{
|
|
107
107
|
type: Component,
|
|
108
108
|
args: [{ selector: 'page-not-found-invader', template: `
|
|
109
109
|
<img
|
|
@@ -124,7 +124,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
124
124
|
<div class="score">Score: {{ score }}</div>
|
|
125
125
|
<!--div class="laser"></div-->
|
|
126
126
|
`, standalone: true, imports: [AsyncPipe, NgStyle, NgClass], styles: [".invader{max-height:20px;max-width:20px;position:absolute;border-radius:50%;z-index:100}.invader.game-over{padding:10px;border:2px solid red}.invader:hover{cursor:crosshair}\n"] }]
|
|
127
|
-
}]
|
|
127
|
+
}] });
|
|
128
128
|
|
|
129
129
|
const konamiPattern = [
|
|
130
130
|
'ArrowUp',
|
|
@@ -139,10 +139,10 @@ const konamiPattern = [
|
|
|
139
139
|
'a',
|
|
140
140
|
];
|
|
141
141
|
class PageNotFoundComponent {
|
|
142
|
-
constructor(
|
|
143
|
-
this.cd = cd;
|
|
142
|
+
constructor() {
|
|
144
143
|
this.sequence = ['', '', '', '', '', '', '', '', '', ''];
|
|
145
144
|
this.konamiMatch = false;
|
|
145
|
+
this.cd = inject(ChangeDetectorRef);
|
|
146
146
|
}
|
|
147
147
|
ngAfterViewInit() {
|
|
148
148
|
this.cd.detectChanges();
|
|
@@ -159,19 +159,13 @@ class PageNotFoundComponent {
|
|
|
159
159
|
this.konamiMatch = true;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
163
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: PageNotFoundComponent, isStandalone: true, selector: "page-not-found", queries: [{ propertyName: "extra", first: true, predicate: PageNotFoundExtraComponent, descendants: true }, { propertyName: "actions", predicate: PageNotFoundActionComponent }], ngImport: i0, template: "<div class=\"page-not-found\">\n <!--img src=\"https://cdn.services.rvaonem.fgov.be/img/404/Arri\u00E8re-plan.svg\" class=\"ap\" /-->\n <div class=\"not-found-section\">\n <div class=\"heading mat-headline-1\">{{ '404.oops' | translate }}</div>\n <h1>{{ '404.title' | translate }}</h1>\n <p>{{ '404.body' | translate }}</p>\n <h2>{{ '404.actions' | translate }}</h2>\n <div class=\"actions\">\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n @if (extra?.template; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n }\n </div>\n <div class=\"not-found-section section-flying-saucer\">\n <div class=\"not-found-section flying-saucer-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/saucer.svg\"\n class=\"soucoupe\"\n alt=\"{{ '404.flying.saucer' | translate }}\"\n />\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/lightbeam.svg\"\n class=\"halo\"\n alt=\"{{ '404.tractor.beam' | translate }}\"\n />\n <div class=\"page-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/document.svg\"\n class=\"page\"\n alt=\"{{ '404.scared.page' | translate }}\"\n />\n </div>\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/shadow.svg\"\n class=\"ombre\"\n alt=\"{{ '404.shadow' | translate }}\"\n />\n </div>\n </div>\n @if (konamiMatch) {\n <page-not-found-invader></page-not-found-invader>\n }\n</div>\n", styles: [".page-not-found{display:flex;flex-flow:row wrap;position:relative;background-image:url(https://cdn.services.rvaonem.fgov.be/img/404/background.svg);background-size:auto 160vh;background-position:40vw -30vh;min-height:100vh;background-repeat:no-repeat}.page-not-found .ap{position:absolute;top:0;right:0}.page-not-found .not-found-section{flex:1 1 300px;padding:48px 146px}.page-not-found .not-found-section .oops{font-size:7vw;line-height:11vw;font-weight:700;margin-bottom:21px}.page-not-found .not-found-section .nf-title{margin-bottom:21px}.page-not-found .not-found-section .nf-body{margin-bottom:40px}.page-not-found .not-found-section .nf-actions{margin-bottom:32px;font-size:24px;line-height:36px;font-weight:700}.page-not-found .not-found-section .actions{display:flex;gap:8px;margin-bottom:40px}.page-not-found .not-found-section.section-flying-saucer{padding-top:96px}.page-not-found not-found-invader{position:absolute}.flying-saucer-container{position:relative}.flying-saucer-container .soucoupe{position:absolute;top:0;left:0;z-index:10;transform:translateY(0);animation-name:takeOff;animation-duration:10s}.flying-saucer-container .halo{position:absolute;top:143px;left:42px;height:395px;width:273px;border-radius:0 0 130px 130px;opacity:1;animation-name:retractHalo;animation-duration:10s}.flying-saucer-container .page-container{position:absolute;top:147px;left:100px;height:350px;overflow:hidden;animation-direction:normal}.flying-saucer-container .page-container .page{transform:translateY(100px);animation-name:suckPage;animation-duration:10s}.flying-saucer-container .ombre{position:absolute;top:536px;animation-name:shadowFade;animation-duration:10s;opacity:1;width:250px;left:60px}@keyframes suckPage{0%{transform:translateY(100px);opacity:1}35%{transform:translateY(100px);opacity:1}55%{opacity:0}85%{transform:translateY(-300px);opacity:0}to{transform:translateY(100px)}}@keyframes retractHalo{0%{opacity:0}25%{opacity:0}35%{opacity:1}55%{opacity:1}85%{opacity:0}99%{opacity:0}to{opacity:1}}@keyframes takeOff{0%{transform:translateY(-300px)}25%{transform:translateY(0)}70%{transform:translateY(0)}90%{transform:translateY(-300px)}96%{transform:translateY(-300px)}to{transform:translateY(0)}}@keyframes shadowFade{0%{opacity:0;width:370px;left:0}25%{opacity:1;width:250px;left:60px}70%{opacity:1;width:250px;left:60px}90%{opacity:0;width:370px;left:0}96%{opacity:0;width:370px;left:0}to{opacity:1;width:250px;left:60px}}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PageNotFoundInvaderComponent, selector: "page-not-found-invader" }] }); }
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
|
166
166
|
type: Component,
|
|
167
|
-
args: [{ selector: 'page-not-found', standalone: true, imports: [
|
|
168
|
-
|
|
169
|
-
TranslatePipe,
|
|
170
|
-
NgTemplateOutlet,
|
|
171
|
-
NgIf,
|
|
172
|
-
PageNotFoundInvaderComponent,
|
|
173
|
-
], template: "<div class=\"page-not-found\">\n <!--img src=\"https://cdn.services.rvaonem.fgov.be/img/404/Arri\u00E8re-plan.svg\" class=\"ap\" /-->\n <div class=\"not-found-section\">\n <div class=\"heading mat-headline-1\">{{ '404.oops' | translate }}</div>\n <h1>{{ '404.title' | translate }}</h1>\n <p>{{ '404.body' | translate }}</p>\n <h2>{{ '404.actions' | translate }}</h2>\n <div class=\"actions\">\n <ng-container *ngFor=\"let action of actions?.toArray(); let i = index\">\n <ng-container *ngIf=\"action.template\">\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n </ng-container>\n </ng-container>\n </div>\n <ng-container *ngIf=\"extra?.template as tpl\">\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n </ng-container>\n </div>\n <div class=\"not-found-section section-flying-saucer\">\n <div class=\"not-found-section flying-saucer-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/saucer.svg\"\n class=\"soucoupe\"\n alt=\"{{ '404.flying.saucer' | translate }}\"\n />\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/lightbeam.svg\"\n class=\"halo\"\n alt=\"{{ '404.tractor.beam' | translate }}\"\n />\n <div class=\"page-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/document.svg\"\n class=\"page\"\n alt=\"{{ '404.scared.page' | translate }}\"\n />\n </div>\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/shadow.svg\"\n class=\"ombre\"\n alt=\"{{ '404.shadow' | translate }}\"\n />\n </div>\n </div>\n\n <page-not-found-invader *ngIf=\"konamiMatch\"></page-not-found-invader>\n</div>\n", styles: [".page-not-found{display:flex;flex-flow:row wrap;position:relative;background-image:url(https://cdn.services.rvaonem.fgov.be/img/404/background.svg);background-size:auto 160vh;background-position:40vw -30vh;min-height:100vh;background-repeat:no-repeat}.page-not-found .ap{position:absolute;top:0;right:0}.page-not-found .not-found-section{flex:1 1 300px;padding:48px 146px}.page-not-found .not-found-section .oops{font-size:7vw;line-height:11vw;font-weight:700;margin-bottom:21px}.page-not-found .not-found-section .nf-title{margin-bottom:21px}.page-not-found .not-found-section .nf-body{margin-bottom:40px}.page-not-found .not-found-section .nf-actions{margin-bottom:32px;font-size:24px;line-height:36px;font-weight:700}.page-not-found .not-found-section .actions{display:flex;gap:8px;margin-bottom:40px}.page-not-found .not-found-section.section-flying-saucer{padding-top:96px}.page-not-found not-found-invader{position:absolute}.flying-saucer-container{position:relative}.flying-saucer-container .soucoupe{position:absolute;top:0;left:0;z-index:10;transform:translateY(0);animation-name:takeOff;animation-duration:10s}.flying-saucer-container .halo{position:absolute;top:143px;left:42px;height:395px;width:273px;border-radius:0 0 130px 130px;opacity:1;animation-name:retractHalo;animation-duration:10s}.flying-saucer-container .page-container{position:absolute;top:147px;left:100px;height:350px;overflow:hidden;animation-direction:normal}.flying-saucer-container .page-container .page{transform:translateY(100px);animation-name:suckPage;animation-duration:10s}.flying-saucer-container .ombre{position:absolute;top:536px;animation-name:shadowFade;animation-duration:10s;opacity:1;width:250px;left:60px}@keyframes suckPage{0%{transform:translateY(100px);opacity:1}35%{transform:translateY(100px);opacity:1}55%{opacity:0}85%{transform:translateY(-300px);opacity:0}to{transform:translateY(100px)}}@keyframes retractHalo{0%{opacity:0}25%{opacity:0}35%{opacity:1}55%{opacity:1}85%{opacity:0}99%{opacity:0}to{opacity:1}}@keyframes takeOff{0%{transform:translateY(-300px)}25%{transform:translateY(0)}70%{transform:translateY(0)}90%{transform:translateY(-300px)}96%{transform:translateY(-300px)}to{transform:translateY(0)}}@keyframes shadowFade{0%{opacity:0;width:370px;left:0}25%{opacity:1;width:250px;left:60px}70%{opacity:1;width:250px;left:60px}90%{opacity:0;width:370px;left:0}96%{opacity:0;width:370px;left:0}to{opacity:1;width:250px;left:60px}}\n"] }]
|
|
174
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { actions: [{
|
|
167
|
+
args: [{ selector: 'page-not-found', standalone: true, imports: [TranslatePipe, NgTemplateOutlet, PageNotFoundInvaderComponent], template: "<div class=\"page-not-found\">\n <!--img src=\"https://cdn.services.rvaonem.fgov.be/img/404/Arri\u00E8re-plan.svg\" class=\"ap\" /-->\n <div class=\"not-found-section\">\n <div class=\"heading mat-headline-1\">{{ '404.oops' | translate }}</div>\n <h1>{{ '404.title' | translate }}</h1>\n <p>{{ '404.body' | translate }}</p>\n <h2>{{ '404.actions' | translate }}</h2>\n <div class=\"actions\">\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n @if (extra?.template; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n }\n </div>\n <div class=\"not-found-section section-flying-saucer\">\n <div class=\"not-found-section flying-saucer-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/saucer.svg\"\n class=\"soucoupe\"\n alt=\"{{ '404.flying.saucer' | translate }}\"\n />\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/lightbeam.svg\"\n class=\"halo\"\n alt=\"{{ '404.tractor.beam' | translate }}\"\n />\n <div class=\"page-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/document.svg\"\n class=\"page\"\n alt=\"{{ '404.scared.page' | translate }}\"\n />\n </div>\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/shadow.svg\"\n class=\"ombre\"\n alt=\"{{ '404.shadow' | translate }}\"\n />\n </div>\n </div>\n @if (konamiMatch) {\n <page-not-found-invader></page-not-found-invader>\n }\n</div>\n", styles: [".page-not-found{display:flex;flex-flow:row wrap;position:relative;background-image:url(https://cdn.services.rvaonem.fgov.be/img/404/background.svg);background-size:auto 160vh;background-position:40vw -30vh;min-height:100vh;background-repeat:no-repeat}.page-not-found .ap{position:absolute;top:0;right:0}.page-not-found .not-found-section{flex:1 1 300px;padding:48px 146px}.page-not-found .not-found-section .oops{font-size:7vw;line-height:11vw;font-weight:700;margin-bottom:21px}.page-not-found .not-found-section .nf-title{margin-bottom:21px}.page-not-found .not-found-section .nf-body{margin-bottom:40px}.page-not-found .not-found-section .nf-actions{margin-bottom:32px;font-size:24px;line-height:36px;font-weight:700}.page-not-found .not-found-section .actions{display:flex;gap:8px;margin-bottom:40px}.page-not-found .not-found-section.section-flying-saucer{padding-top:96px}.page-not-found not-found-invader{position:absolute}.flying-saucer-container{position:relative}.flying-saucer-container .soucoupe{position:absolute;top:0;left:0;z-index:10;transform:translateY(0);animation-name:takeOff;animation-duration:10s}.flying-saucer-container .halo{position:absolute;top:143px;left:42px;height:395px;width:273px;border-radius:0 0 130px 130px;opacity:1;animation-name:retractHalo;animation-duration:10s}.flying-saucer-container .page-container{position:absolute;top:147px;left:100px;height:350px;overflow:hidden;animation-direction:normal}.flying-saucer-container .page-container .page{transform:translateY(100px);animation-name:suckPage;animation-duration:10s}.flying-saucer-container .ombre{position:absolute;top:536px;animation-name:shadowFade;animation-duration:10s;opacity:1;width:250px;left:60px}@keyframes suckPage{0%{transform:translateY(100px);opacity:1}35%{transform:translateY(100px);opacity:1}55%{opacity:0}85%{transform:translateY(-300px);opacity:0}to{transform:translateY(100px)}}@keyframes retractHalo{0%{opacity:0}25%{opacity:0}35%{opacity:1}55%{opacity:1}85%{opacity:0}99%{opacity:0}to{opacity:1}}@keyframes takeOff{0%{transform:translateY(-300px)}25%{transform:translateY(0)}70%{transform:translateY(0)}90%{transform:translateY(-300px)}96%{transform:translateY(-300px)}to{transform:translateY(0)}}@keyframes shadowFade{0%{opacity:0;width:370px;left:0}25%{opacity:1;width:250px;left:60px}70%{opacity:1;width:250px;left:60px}90%{opacity:0;width:370px;left:0}96%{opacity:0;width:370px;left:0}to{opacity:1;width:250px;left:60px}}\n"] }]
|
|
168
|
+
}], propDecorators: { actions: [{
|
|
175
169
|
type: ContentChildren,
|
|
176
170
|
args: [PageNotFoundActionComponent]
|
|
177
171
|
}], extra: [{
|
|
@@ -180,17 +174,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
180
174
|
}] } });
|
|
181
175
|
|
|
182
176
|
class OnemrvaPageNotFoundModule {
|
|
183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
184
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaPageNotFoundModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
178
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaPageNotFoundModule, imports: [PageNotFoundComponent,
|
|
185
179
|
PageNotFoundInvaderComponent,
|
|
186
180
|
PageNotFoundActionComponent,
|
|
187
181
|
PageNotFoundExtraComponent], exports: [PageNotFoundComponent,
|
|
188
182
|
PageNotFoundInvaderComponent,
|
|
189
183
|
PageNotFoundActionComponent,
|
|
190
184
|
PageNotFoundExtraComponent] }); }
|
|
191
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
185
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaPageNotFoundModule }); }
|
|
192
186
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaPageNotFoundModule, decorators: [{
|
|
194
188
|
type: NgModule,
|
|
195
189
|
args: [{
|
|
196
190
|
declarations: [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onemrvapublic-design-system-page-not-found.mjs","sources":["../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.component.html","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts","../../../../projects/onemrva/design-system/page-not-found/onemrvapublic-design-system-page-not-found.ts"],"sourcesContent":["import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-not-found-action',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageNotFoundActionComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-not-found-extra',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageNotFoundExtraComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n OnDestroy,\n} from '@angular/core';\nimport { Observable, of, Subject, Subscription, timer } from 'rxjs';\nimport { map, startWith, switchMap } from 'rxjs/operators';\nimport { AsyncPipe, NgClass, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'page-not-found-invader',\n styleUrls: ['page-not-found-invader.component.scss'],\n template: `\n <img\n role=\"button\"\n tabindex=\"1\"\n src=\"https://cdn.services.rvaonem.fgov.be/assets/404/saucer.svg\"\n class=\"invader\"\n alt=\"invader\"\n [ngClass]=\"{ 'game-over': gameOver }\"\n [ngStyle]=\"{\n width: (size$ | async) + 'px',\n height: (size$ | async) + 'px',\n left: left + 'px',\n top: top + 'px',\n }\"\n (click)=\"getScore()\"\n />\n <div class=\"score\">Score: {{ score }}</div>\n <!--div class=\"laser\"></div-->\n `,\n standalone: true,\n imports: [AsyncPipe, NgStyle, NgClass],\n})\nexport class PageNotFoundInvaderComponent implements AfterViewInit, OnDestroy {\n level = 0;\n size$?: Observable<number>;\n\n start: Date = new Date();\n score = 0;\n gameOver = false;\n sub?: Subscription;\n\n score$ = new Subject<number>();\n top = 0;\n left = 0;\n\n constructor(private cd: ChangeDetectorRef) {}\n\n ngAfterViewInit() {\n this.size$ = this.score$.pipe(\n startWith(0),\n switchMap(score => {\n this.level++;\n if (this.gameOver) {\n this.sub?.unsubscribe();\n return of(10);\n }\n\n const width = window.innerWidth;\n const height = window.innerHeight;\n\n this.left = (Math.random() * width) / 2 + width / 3;\n this.top = Math.random() * height * 0.8 + height / 10;\n\n const lvl = score < 39 ? score : 39.5;\n return timer(0, 10).pipe(map(i => i / (40 - lvl)));\n }),\n );\n\n this.sub = this.size$.subscribe(s => {\n if (s > 20) {\n this.gameOver = true;\n this.score$.next(this.score);\n }\n });\n\n this.cd.detectChanges();\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n }\n\n getScore() {\n if (this.gameOver) {\n this.score$.next(this.score);\n this.sub?.unsubscribe();\n return;\n }\n this.score++;\n this.score$.next(this.score);\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n OnDestroy,\n QueryList,\n} from '@angular/core';\nimport { PageNotFoundActionComponent } from './page-not-found-action.component';\nimport { PageNotFoundExtraComponent } from './page-not-found-extra.component';\nimport { NgForOf, NgIf, NgTemplateOutlet } from '@angular/common';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { OnemrvaPageNotFoundModule } from './page-not-found.module';\nimport { PageNotFoundInvaderComponent } from './page-not-found-invader.component';\n\nconst konamiPattern = [\n 'ArrowUp',\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'ArrowLeft',\n 'ArrowRight',\n 'b',\n 'a',\n];\n@Component({\n selector: 'page-not-found',\n styleUrls: ['./page-not-found.component.scss'],\n templateUrl: 'page-not-found.component.html',\n standalone: true,\n imports: [\n NgForOf,\n TranslatePipe,\n NgTemplateOutlet,\n NgIf,\n PageNotFoundInvaderComponent,\n ],\n})\nexport class PageNotFoundComponent implements AfterViewInit, OnDestroy {\n @ContentChildren(PageNotFoundActionComponent)\n actions?: QueryList<PageNotFoundActionComponent>;\n @ContentChild(PageNotFoundExtraComponent)\n extra?: PageNotFoundExtraComponent;\n\n sequence: string[] = ['', '', '', '', '', '', '', '', '', ''];\n konamiMatch = false;\n\n constructor(private cd: ChangeDetectorRef) {}\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n window.addEventListener('keydown', this.konami.bind(this));\n }\n\n ngOnDestroy() {\n window.removeEventListener('keydown', this.konami.bind(this));\n }\n\n konami($event: any) {\n this.sequence.shift();\n this.sequence = [...this.sequence, $event.key];\n\n if (\n this.sequence.length === konamiPattern.length &&\n !this.sequence.map((s, idx) => s === konamiPattern[idx]).includes(false)\n ) {\n this.konamiMatch = true;\n }\n }\n}\n","<div class=\"page-not-found\">\n <!--img src=\"https://cdn.services.rvaonem.fgov.be/img/404/Arrière-plan.svg\" class=\"ap\" /-->\n <div class=\"not-found-section\">\n <div class=\"heading mat-headline-1\">{{ '404.oops' | translate }}</div>\n <h1>{{ '404.title' | translate }}</h1>\n <p>{{ '404.body' | translate }}</p>\n <h2>{{ '404.actions' | translate }}</h2>\n <div class=\"actions\">\n <ng-container *ngFor=\"let action of actions?.toArray(); let i = index\">\n <ng-container *ngIf=\"action.template\">\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n </ng-container>\n </ng-container>\n </div>\n <ng-container *ngIf=\"extra?.template as tpl\">\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n </ng-container>\n </div>\n <div class=\"not-found-section section-flying-saucer\">\n <div class=\"not-found-section flying-saucer-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/saucer.svg\"\n class=\"soucoupe\"\n alt=\"{{ '404.flying.saucer' | translate }}\"\n />\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/lightbeam.svg\"\n class=\"halo\"\n alt=\"{{ '404.tractor.beam' | translate }}\"\n />\n <div class=\"page-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/document.svg\"\n class=\"page\"\n alt=\"{{ '404.scared.page' | translate }}\"\n />\n </div>\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/shadow.svg\"\n class=\"ombre\"\n alt=\"{{ '404.shadow' | translate }}\"\n />\n </div>\n </div>\n\n <page-not-found-invader *ngIf=\"konamiMatch\"></page-not-found-invader>\n</div>\n","import { NgModule } from '@angular/core';\nimport { PageNotFoundComponent } from './page-not-found.component';\nimport { PageNotFoundInvaderComponent } from './page-not-found-invader.component';\nimport { PageNotFoundActionComponent } from './page-not-found-action.component';\nimport { PageNotFoundExtraComponent } from './page-not-found-extra.component';\n\n@NgModule({\n declarations: [],\n imports: [\n PageNotFoundComponent,\n PageNotFoundInvaderComponent,\n PageNotFoundActionComponent,\n PageNotFoundExtraComponent,\n ],\n exports: [\n PageNotFoundComponent,\n PageNotFoundInvaderComponent,\n PageNotFoundActionComponent,\n PageNotFoundExtraComponent,\n ],\n})\nexport class OnemrvaPageNotFoundModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,2BAA2B,CAAA;+GAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAC3B,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJZ,sDAAsD,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAGrD,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uB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|
1
|
+
{"version":3,"file":"onemrvapublic-design-system-page-not-found.mjs","sources":["../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.component.html","../../../../projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts","../../../../projects/onemrva/design-system/page-not-found/onemrvapublic-design-system-page-not-found.ts"],"sourcesContent":["import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-not-found-action',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageNotFoundActionComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import { Component, TemplateRef, ViewChild } from '@angular/core';\n\n@Component({\n selector: 'page-not-found-extra',\n template: '<ng-template><ng-content></ng-content></ng-template>',\n standalone: true,\n})\nexport class PageNotFoundExtraComponent {\n @ViewChild(TemplateRef) template?: TemplateRef<any>;\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n OnDestroy,\n inject,\n} from '@angular/core';\nimport { Observable, of, Subject, Subscription, timer } from 'rxjs';\nimport { map, startWith, switchMap } from 'rxjs/operators';\nimport { AsyncPipe, NgClass, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'page-not-found-invader',\n styleUrls: ['page-not-found-invader.component.scss'],\n template: `\n <img\n role=\"button\"\n tabindex=\"1\"\n src=\"https://cdn.services.rvaonem.fgov.be/assets/404/saucer.svg\"\n class=\"invader\"\n alt=\"invader\"\n [ngClass]=\"{ 'game-over': gameOver }\"\n [ngStyle]=\"{\n width: (size$ | async) + 'px',\n height: (size$ | async) + 'px',\n left: left + 'px',\n top: top + 'px',\n }\"\n (click)=\"getScore()\"\n />\n <div class=\"score\">Score: {{ score }}</div>\n <!--div class=\"laser\"></div-->\n `,\n standalone: true,\n imports: [AsyncPipe, NgStyle, NgClass],\n})\nexport class PageNotFoundInvaderComponent implements AfterViewInit, OnDestroy {\n private cd = inject(ChangeDetectorRef);\n\n level = 0;\n size$?: Observable<number>;\n\n start: Date = new Date();\n score = 0;\n gameOver = false;\n sub?: Subscription;\n\n score$ = new Subject<number>();\n top = 0;\n left = 0;\n\n ngAfterViewInit() {\n this.size$ = this.score$.pipe(\n startWith(0),\n switchMap(score => {\n this.level++;\n if (this.gameOver) {\n this.sub?.unsubscribe();\n return of(10);\n }\n\n const width = window.innerWidth;\n const height = window.innerHeight;\n\n this.left = (Math.random() * width) / 2 + width / 3;\n this.top = Math.random() * height * 0.8 + height / 10;\n\n const lvl = score < 39 ? score : 39.5;\n return timer(0, 10).pipe(map(i => i / (40 - lvl)));\n }),\n );\n\n this.sub = this.size$.subscribe(s => {\n if (s > 20) {\n this.gameOver = true;\n this.score$.next(this.score);\n }\n });\n\n this.cd.detectChanges();\n }\n\n ngOnDestroy(): void {\n this.sub?.unsubscribe();\n }\n\n getScore() {\n if (this.gameOver) {\n this.score$.next(this.score);\n this.sub?.unsubscribe();\n return;\n }\n this.score++;\n this.score$.next(this.score);\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n OnDestroy,\n QueryList,\n inject,\n} from '@angular/core';\nimport { PageNotFoundActionComponent } from './page-not-found-action.component';\nimport { PageNotFoundExtraComponent } from './page-not-found-extra.component';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { PageNotFoundInvaderComponent } from './page-not-found-invader.component';\n\nconst konamiPattern = [\n 'ArrowUp',\n 'ArrowUp',\n 'ArrowDown',\n 'ArrowDown',\n 'ArrowLeft',\n 'ArrowRight',\n 'ArrowLeft',\n 'ArrowRight',\n 'b',\n 'a',\n];\n@Component({\n selector: 'page-not-found',\n styleUrls: ['./page-not-found.component.scss'],\n templateUrl: 'page-not-found.component.html',\n standalone: true,\n imports: [TranslatePipe, NgTemplateOutlet, PageNotFoundInvaderComponent],\n})\nexport class PageNotFoundComponent implements AfterViewInit, OnDestroy {\n @ContentChildren(PageNotFoundActionComponent)\n actions?: QueryList<PageNotFoundActionComponent>;\n @ContentChild(PageNotFoundExtraComponent)\n extra?: PageNotFoundExtraComponent;\n\n sequence: string[] = ['', '', '', '', '', '', '', '', '', ''];\n konamiMatch = false;\n\n cd = inject(ChangeDetectorRef);\n\n ngAfterViewInit() {\n this.cd.detectChanges();\n window.addEventListener('keydown', this.konami.bind(this));\n }\n\n ngOnDestroy() {\n window.removeEventListener('keydown', this.konami.bind(this));\n }\n\n konami($event: any) {\n this.sequence.shift();\n this.sequence = [...this.sequence, $event.key];\n\n if (\n this.sequence.length === konamiPattern.length &&\n !this.sequence.map((s, idx) => s === konamiPattern[idx]).includes(false)\n ) {\n this.konamiMatch = true;\n }\n }\n}\n","<div class=\"page-not-found\">\n <!--img src=\"https://cdn.services.rvaonem.fgov.be/img/404/Arrière-plan.svg\" class=\"ap\" /-->\n <div class=\"not-found-section\">\n <div class=\"heading mat-headline-1\">{{ '404.oops' | translate }}</div>\n <h1>{{ '404.title' | translate }}</h1>\n <p>{{ '404.body' | translate }}</p>\n <h2>{{ '404.actions' | translate }}</h2>\n <div class=\"actions\">\n @for (action of actions?.toArray(); track action.template) {\n @if (action.template) {\n <ng-container *ngTemplateOutlet=\"action.template\"></ng-container>\n }\n }\n </div>\n @if (extra?.template; as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl\"></ng-container>\n }\n </div>\n <div class=\"not-found-section section-flying-saucer\">\n <div class=\"not-found-section flying-saucer-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/saucer.svg\"\n class=\"soucoupe\"\n alt=\"{{ '404.flying.saucer' | translate }}\"\n />\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/lightbeam.svg\"\n class=\"halo\"\n alt=\"{{ '404.tractor.beam' | translate }}\"\n />\n <div class=\"page-container\">\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/document.svg\"\n class=\"page\"\n alt=\"{{ '404.scared.page' | translate }}\"\n />\n </div>\n <img\n src=\"https://cdn.services.rvaonem.fgov.be/img/404/shadow.svg\"\n class=\"ombre\"\n alt=\"{{ '404.shadow' | translate }}\"\n />\n </div>\n </div>\n @if (konamiMatch) {\n <page-not-found-invader></page-not-found-invader>\n }\n</div>\n","import { NgModule } from '@angular/core';\nimport { PageNotFoundComponent } from './page-not-found.component';\nimport { PageNotFoundInvaderComponent } from './page-not-found-invader.component';\nimport { PageNotFoundActionComponent } from './page-not-found-action.component';\nimport { PageNotFoundExtraComponent } from './page-not-found-extra.component';\n\n@NgModule({\n declarations: [],\n imports: [\n PageNotFoundComponent,\n PageNotFoundInvaderComponent,\n PageNotFoundActionComponent,\n PageNotFoundExtraComponent,\n ],\n exports: [\n PageNotFoundComponent,\n PageNotFoundInvaderComponent,\n PageNotFoundActionComponent,\n PageNotFoundExtraComponent,\n ],\n})\nexport class OnemrvaPageNotFoundModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,2BAA2B,CAAA;8GAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,UAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAC3B,WAAW,EAAA,WAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAJZ,sDAAsD,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;2FAGrD,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAAC,YAAA,IAA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