@onemrvapublic/design-system 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +4 -0
- package/.editorconfig +16 -0
- package/.github/workflows/npm-publish.yml +34 -0
- package/README.md +27 -0
- package/angular.json +214 -0
- package/build.sh +108 -0
- package/cypress.config.ts +40 -0
- package/index.html +10 -0
- package/npm-publish.sh +11 -0
- package/package.json +89 -0
- package/projects/onemrva/design-system/README.md +24 -0
- package/projects/onemrva/design-system/_index.scss +29 -0
- package/projects/onemrva/design-system/_utils.scss +25 -0
- package/projects/onemrva/design-system/layout/assets/logo_de.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_en.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_fr.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_nl.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_onem_rva.svg +32 -0
- package/projects/onemrva/design-system/layout/index.ts +7 -0
- package/projects/onemrva/design-system/layout/ng-package.json +6 -0
- package/projects/onemrva/design-system/layout/src/components/index.ts +31 -0
- package/projects/onemrva/design-system/layout/src/components/layout/_layout-mixin.component.scss +159 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.html +194 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.scss +137 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.ts +187 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.ts +23 -0
- package/projects/onemrva/design-system/layout/src/components/layout-footer/layout-footer.component.ts +11 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.html +57 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.ts +56 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.html +104 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.ts +88 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +9 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.html +44 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.ts +35 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/decorators/coerce-boolean-input.decorator.ts +19 -0
- package/projects/onemrva/design-system/layout/src/decorators/observable-content.decorator.ts +13 -0
- package/projects/onemrva/design-system/layout/src/directives/drawer-host.directive.ts +10 -0
- package/projects/onemrva/design-system/layout/src/enums/environment.enum.ts +6 -0
- package/projects/onemrva/design-system/layout/src/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/layout.module.ts +103 -0
- package/projects/onemrva/design-system/layout/src/models/onem-language.model.ts +4 -0
- package/projects/onemrva/design-system/layout/src/models/onemrva-profile.model.ts +57 -0
- package/projects/onemrva/design-system/layout/src/services/drawer.service.ts +28 -0
- package/projects/onemrva/design-system/layout/src/striphtml.pipe.ts +11 -0
- package/projects/onemrva/design-system/layout/src/test.ts +25 -0
- package/projects/onemrva/design-system/mat-avatar/index.ts +2 -0
- package/projects/onemrva/design-system/mat-avatar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.html +17 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.scss +130 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.ts +421 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.module.ts +17 -0
- package/projects/onemrva/design-system/mat-badge/index.ts +6 -0
- package/projects/onemrva/design-system/mat-badge/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.scss +152 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.ts +291 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.module.ts +8 -0
- package/projects/onemrva/design-system/mat-breadcrumb/index.ts +7 -0
- package/projects/onemrva/design-system/mat-breadcrumb/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +37 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +70 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +16 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +4 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +12 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +65 -0
- package/projects/onemrva/design-system/mat-clipboard/index.ts +6 -0
- package/projects/onemrva/design-system/mat-clipboard/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-clipboard/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.component.ts +16 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.module.ts +14 -0
- package/projects/onemrva/design-system/mat-datepicker-header/index.ts +5 -0
- package/projects/onemrva/design-system/mat-datepicker-header/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +11 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +53 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +285 -0
- package/projects/onemrva/design-system/mat-file-upload/index.ts +11 -0
- package/projects/onemrva/design-system/mat-file-upload/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/index.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +59 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +24 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +53 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +248 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +185 -0
- package/projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts +43 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/action-config.model.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts +94 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts +28 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts +68 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts +473 -0
- package/projects/onemrva/design-system/mat-input-bank-account/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-bank-account/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +32 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +9 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +125 -0
- package/projects/onemrva/design-system/mat-input-country/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-country/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-country/src/countries.ts +3182 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts +144 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +39 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +25 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +190 -0
- package/projects/onemrva/design-system/mat-input-phone/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-phone/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.html +43 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.ts +261 -0
- package/projects/onemrva/design-system/mat-input-phone/src/phone-number.directive.ts +47 -0
- package/projects/onemrva/design-system/mat-message-box/index.ts +2 -0
- package/projects/onemrva/design-system/mat-message-box/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.scss +60 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts +134 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts +12 -0
- package/projects/onemrva/design-system/mat-multi-select/index.ts +2 -0
- package/projects/onemrva/design-system/mat-multi-select/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +66 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html +24 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts +152 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts +31 -0
- package/projects/onemrva/design-system/mat-notification/index.ts +1 -0
- package/projects/onemrva/design-system/mat-notification/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-notification/src/_onemrva-mat-notification.component.scss +71 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html +10 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts +158 -0
- package/projects/onemrva/design-system/mat-paginator/index.ts +6 -0
- package/projects/onemrva/design-system/mat-paginator/ng-package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/src/_onemrva-mat-paginator.component.scss +122 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.html +104 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +184 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.ts +214 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.module.ts +15 -0
- package/projects/onemrva/design-system/mat-panel/index.ts +6 -0
- package/projects/onemrva/design-system/mat-panel/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts +20 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html +8 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html +10 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.scss +100 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts +122 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts +26 -0
- package/projects/onemrva/design-system/mat-pop-over/index.ts +4 -0
- package/projects/onemrva/design-system/mat-pop-over/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html +29 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.scss +141 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts +47 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts +19 -0
- package/projects/onemrva/design-system/mat-progress-bar/index.ts +1 -0
- package/projects/onemrva/design-system/mat-progress-bar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +37 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +13 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +27 -0
- package/projects/onemrva/design-system/mat-select-search/index.ts +3 -0
- package/projects/onemrva/design-system/mat-select-search/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-select-search/src/default-options.ts +42 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-no-entries-found.directive.ts +15 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search-clear.directive.ts +13 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.html +67 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.scss +126 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.spec.ts +790 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.ts +612 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.module.ts +53 -0
- package/projects/onemrva/design-system/mat-side-menu/index.ts +6 -0
- package/projects/onemrva/design-system/mat-side-menu/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.html +36 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.scss +50 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +66 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.ts +46 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.module.ts +14 -0
- package/projects/onemrva/design-system/mat-skeleton/index.ts +3 -0
- package/projects/onemrva/design-system/mat-skeleton/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +32 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.html +17 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.scss +216 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.ts +173 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.module.ts +16 -0
- package/projects/onemrva/design-system/mat-spinner/index.ts +6 -0
- package/projects/onemrva/design-system/mat-spinner/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-spinner/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.component.ts +11 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.module.ts +8 -0
- package/projects/onemrva/design-system/mat-stepper/index.ts +6 -0
- package/projects/onemrva/design-system/mat-stepper/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-stepper/src/_stepper-variables.scss +29 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +23 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.ts +60 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.html +53 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.module.ts +30 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.scss +106 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-stepper-animations.ts +40 -0
- package/projects/onemrva/design-system/mat-table-of-content/index.ts +8 -0
- package/projects/onemrva/design-system/mat-table-of-content/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +79 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +23 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +128 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +67 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +51 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +24 -0
- package/projects/onemrva/design-system/mat-task-list/index.ts +5 -0
- package/projects/onemrva/design-system/mat-task-list/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.html +1 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.scss +150 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.ts +50 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.module.ts +31 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.component.ts +18 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.html +17 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.scss +0 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.ts +117 -0
- package/projects/onemrva/design-system/mat-timepicker/index.ts +6 -0
- package/projects/onemrva/design-system/mat-timepicker/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.html +42 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.scss +129 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.ts +273 -0
- package/projects/onemrva/design-system/mat-timepicker/src/interfaces-and-types.ts +16 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.ts +289 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.module.ts +40 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +53 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +69 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +169 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +15 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.scss +32 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +135 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker.directive.ts +594 -0
- package/projects/onemrva/design-system/mat-timepicker/src/util.ts +97 -0
- package/projects/onemrva/design-system/mat-toast/index.ts +6 -0
- package/projects/onemrva/design-system/mat-toast/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.scss +54 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.ts +36 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.module.ts +11 -0
- package/projects/onemrva/design-system/mat-tooltip/index.ts +4 -0
- package/projects/onemrva/design-system/mat-tooltip/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.scss +9 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts +21 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +119 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts +11 -0
- package/projects/onemrva/design-system/ng-package.json +20 -0
- package/projects/onemrva/design-system/package.json +27 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Arri/303/250re-plan.svg +22 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Halo.svg +10 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Ombre.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page.svg +21 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page2.svg +19 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Soucoupe.svg +70 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Yeux.svg +6 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/shape.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/index.ts +5 -0
- package/projects/onemrva/design-system/page-not-found/ng-package.json +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.scss +16 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts +84 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-mixin.component.scss +12 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.html +31 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.scss +206 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts +59 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts +24 -0
- package/projects/onemrva/design-system/src/public-api.ts +5 -0
- package/projects/onemrva/design-system/tsconfig.lib.json +12 -0
- package/projects/onemrva/design-system/tsconfig.lib.prod.json +10 -0
- package/projects/onemrva/design-system/utils/index.ts +2 -0
- package/projects/onemrva/design-system/utils/ng-package.json +6 -0
- package/projects/onemrva/design-system/utils/src/enum.utils.ts +6 -0
- package/projects/onemrva/design-system/utils/src/enums/color.enum.ts +14 -0
- package/projects/onemrva/design-system/utils/src/enums/index.ts +2 -0
- package/projects/onemrva/design-system/utils/src/enums/size.enum.ts +11 -0
- package/projects/schematics/README.md +40 -0
- package/projects/schematics/package.json +25 -0
- package/projects/schematics/src/cmp-demo/schema.json +15 -0
- package/projects/schematics/src/collection.json +17 -0
- package/projects/schematics/src/component/files/root/ng-package.json +6 -0
- package/projects/schematics/src/component/files/src/onemrva-mat-__name__.component.html +4 -0
- package/projects/schematics/src/component/schema.json +11 -0
- package/projects/schematics/src/demo/files/demo/demo-__name__.component.html +2 -0
- package/projects/schematics/src/demo/files/demo/readme.md +26 -0
- package/projects/schematics/src/demo/schema.json +15 -0
- package/projects/schematics/tsconfig.json +24 -0
- package/projects/test/.nycrc +5 -0
- package/projects/test/cypress/coverage.webpack.ts +20 -0
- package/projects/test/cypress/cucumber-json/basictest.cucumber.json +402 -0
- package/projects/test/cypress/fixtures/example.json +5 -0
- package/projects/test/cypress/integration/basictest.feature +53 -0
- package/projects/test/cypress/integration/common/basicTestSteps.ts +54 -0
- package/projects/test/cypress/plugins/index.ts +13 -0
- package/projects/test/cypress/support/commands.ts +44 -0
- package/projects/test/cypress/support/e2e.ts +20 -0
- package/projects/test/cypress/tsconfig.json +10 -0
- package/projects/test/cypress/videos/basictest.feature.mp4 +0 -0
- package/projects/test/karma.conf.js +44 -0
- package/projects/test/src/app/app-routing.module.ts +14 -0
- package/projects/test/src/app/app.component.html +14 -0
- package/projects/test/src/app/app.component.scss +0 -0
- package/projects/test/src/app/app.component.spec.ts +35 -0
- package/projects/test/src/app/app.component.ts +51 -0
- package/projects/test/src/app/app.module.ts +103 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.html +77 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.scss +4 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.ts +13 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.html +389 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.scss +4 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.ts +22 -0
- package/projects/test/src/app/demos/badge/readme.md +30 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.html +20 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.ts +7 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.module.ts +89 -0
- package/projects/test/src/app/demos/breadcrumb/readme.md +29 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.html +10 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.scss +5 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.ts +12 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.module.ts +43 -0
- package/projects/test/src/app/demos/datepicker/readme.md +36 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.html +30 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.ts +132 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.service.ts +60 -0
- package/projects/test/src/app/demos/file-upload/readme.md +26 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.component.ts +19 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.module.ts +20 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.html +9 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.ts +14 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.module.ts +26 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.component.ts +13 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.module.ts +20 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.html +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.ts +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.module.ts +21 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.html +32 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.ts +12 -0
- package/projects/test/src/app/demos/message-box/readme.md +26 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.html +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.scss +23 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.ts +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.module.ts +38 -0
- package/projects/test/src/app/demos/multiselect/readme.md +34 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.html +21 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.scss +6 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.ts +50 -0
- package/projects/test/src/app/demos/not-found/readme.md +44 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.html +5 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.ts +10 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.html +35 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.ts +25 -0
- package/projects/test/src/app/demos/paginator/readme.md +89 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.html +53 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.scss +3 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.ts +20 -0
- package/projects/test/src/app/demos/panel/readme.md +26 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.html +130 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.scss +9 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.ts +13 -0
- package/projects/test/src/app/demos/pop-over/readme.md +26 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.html +19 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.ts +35 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.html +5 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.ts +34 -0
- package/projects/test/src/app/demos/side-menu/readme.md +30 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.html +119 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.scss +0 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.ts +35 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.html +1 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.ts +10 -0
- package/projects/test/src/app/demos/spinner/readme.md +24 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.html +108 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.scss +3 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.ts +55 -0
- package/projects/test/src/app/demos/summary-stepper/readme.md +26 -0
- package/projects/test/src/app/demos/table/demo-table-datasource.ts +140 -0
- package/projects/test/src/app/demos/table/demo-table.component.html +41 -0
- package/projects/test/src/app/demos/table/demo-table.component.scss +17 -0
- package/projects/test/src/app/demos/table/demo-table.component.ts +51 -0
- package/projects/test/src/app/demos/table/demo-table.module.ts +45 -0
- package/projects/test/src/app/demos/table/readme.md +27 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.html +37 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.scss +3 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.ts +14 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.module.ts +29 -0
- package/projects/test/src/app/demos/task-list/readme.md +26 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.html +9 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.ts +31 -0
- package/projects/test/src/app/demos/timepicker/readme.md +26 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.html +8 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.scss +3 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.ts +61 -0
- package/projects/test/src/app/demos/toast/readme.md +30 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.html +288 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.ts +26 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.html +73 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.scss +11 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.ts +14 -0
- package/projects/test/src/app/home.component.ts +54 -0
- package/projects/test/src/app/material.module.ts +39 -0
- package/projects/test/src/app/onemrva-translate-http-loader.ts +35 -0
- package/projects/test/src/app/routes.ts +198 -0
- package/projects/test/src/assets/.gitkeep +0 -0
- package/projects/test/src/assets/i18n/de.json +80 -0
- package/projects/test/src/assets/i18n/en.json +80 -0
- package/projects/test/src/assets/i18n/fr.json +80 -0
- package/projects/test/src/assets/i18n/nl.json +79 -0
- package/projects/test/src/environments/environment.e2e.ts +3 -0
- package/projects/test/src/environments/environment.prod.ts +3 -0
- package/projects/test/src/environments/environment.ts +16 -0
- package/projects/test/src/favicon.ico +0 -0
- package/projects/test/src/index.html +15 -0
- package/projects/test/src/main.ts +12 -0
- package/projects/test/src/polyfills.ts +53 -0
- package/projects/test/src/styles.scss +22 -0
- package/projects/test/src/test.ts +26 -0
- package/projects/test/tsconfig.app.json +15 -0
- package/projects/test/tsconfig.spec.json +18 -0
- package/rva.crt +36 -0
- package/tsconfig.json +44 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable, of, Subject, Subscription, timer } from 'rxjs';
|
|
3
|
+
import { map, startWith, switchMap } from 'rxjs/operators';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'page-not-found-invader',
|
|
7
|
+
styleUrls: ['page-not-found-invader.component.scss'],
|
|
8
|
+
template: `
|
|
9
|
+
<img
|
|
10
|
+
src="/assets/404/Soucoupe.svg"
|
|
11
|
+
class="invader"
|
|
12
|
+
[ngClass]="{ 'game-over': gameOver }"
|
|
13
|
+
[ngStyle]="{
|
|
14
|
+
width: (size$ | async) + 'px',
|
|
15
|
+
height: (size$ | async) + 'px',
|
|
16
|
+
left: left + 'px',
|
|
17
|
+
top: top + 'px'
|
|
18
|
+
}"
|
|
19
|
+
(click)="getScore()"
|
|
20
|
+
/>
|
|
21
|
+
<div class="score">Score: {{ score }}</div>
|
|
22
|
+
<!--div class="laser"></div-->
|
|
23
|
+
`,
|
|
24
|
+
})
|
|
25
|
+
export class PageNotFoundInvaderComponent implements AfterViewInit, OnDestroy {
|
|
26
|
+
level = 0;
|
|
27
|
+
size$?: Observable<number>;
|
|
28
|
+
|
|
29
|
+
start: Date = new Date();
|
|
30
|
+
score: number = 0;
|
|
31
|
+
gameOver = false;
|
|
32
|
+
sub?: Subscription;
|
|
33
|
+
|
|
34
|
+
score$: Subject<number> = new Subject();
|
|
35
|
+
top: number = 0;
|
|
36
|
+
left: number = 0;
|
|
37
|
+
|
|
38
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
39
|
+
|
|
40
|
+
ngAfterViewInit() {
|
|
41
|
+
this.size$ = this.score$.pipe(
|
|
42
|
+
startWith(0),
|
|
43
|
+
switchMap((score) => {
|
|
44
|
+
this.level++;
|
|
45
|
+
if (this.gameOver) {
|
|
46
|
+
this.sub?.unsubscribe();
|
|
47
|
+
return of(10);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const width = window.innerWidth;
|
|
51
|
+
const height = window.innerHeight;
|
|
52
|
+
|
|
53
|
+
this.left = (Math.random() * width) / 2 + width / 3;
|
|
54
|
+
this.top = Math.random() * height * 0.8 + height / 10;
|
|
55
|
+
|
|
56
|
+
const lvl = score < 39 ? score : 39.5;
|
|
57
|
+
return timer(0, 10).pipe(map((i) => i / (40 - lvl)));
|
|
58
|
+
})
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
this.sub = this.size$.subscribe((s) => {
|
|
62
|
+
if (s > 20) {
|
|
63
|
+
this.gameOver = true;
|
|
64
|
+
this.score$.next(this.score);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
this.cd.detectChanges();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
ngOnDestroy(): void {
|
|
72
|
+
this.sub?.unsubscribe();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
getScore() {
|
|
76
|
+
if (this.gameOver) {
|
|
77
|
+
this.score$.next(this.score);
|
|
78
|
+
this.sub?.unsubscribe();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
this.score++;
|
|
82
|
+
this.score$.next(this.score);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div class="page-not-found">
|
|
2
|
+
<!--img src="/assets/404/Arrière-plan.svg" class="ap" /-->
|
|
3
|
+
<div class="not-found-section">
|
|
4
|
+
<div class="mat-headline-1">{{ '404.oops' | translate }}</div>
|
|
5
|
+
<h1>{{ '404.title' | translate }}</h1>
|
|
6
|
+
<p>{{ '404.body' | translate }}</p>
|
|
7
|
+
<h2>{{ '404.actions' | translate }}</h2>
|
|
8
|
+
<div class="actions">
|
|
9
|
+
<ng-container *ngFor="let action of actions?.toArray(); let i = index">
|
|
10
|
+
<ng-container *ngIf="action.template">
|
|
11
|
+
<ng-container *ngTemplateOutlet="action.template"></ng-container>
|
|
12
|
+
</ng-container>
|
|
13
|
+
</ng-container>
|
|
14
|
+
</div>
|
|
15
|
+
<ng-container *ngIf="extra?.template as tpl">
|
|
16
|
+
<ng-container *ngTemplateOutlet="tpl"></ng-container>
|
|
17
|
+
</ng-container>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="not-found-section section-flying-saucer">
|
|
20
|
+
<div class="not-found-section flying-saucer-container">
|
|
21
|
+
<img src="/assets/404/Soucoupe.svg" class="soucoupe" alt="{{ '404.flying.saucer' | translate }}"/>
|
|
22
|
+
<img src="/assets/404/Halo.svg" class="halo" alt="{{ '404.tractor.beam' | translate }}" />
|
|
23
|
+
<div class="page-container">
|
|
24
|
+
<img src="/assets/404/Page.svg" class="page" alt="{{ '404.scared.page' | translate }}" />
|
|
25
|
+
</div>
|
|
26
|
+
<img src="/assets/404/Ombre.svg" class="ombre" alt="{{ '404.shadow' | translate }}"/>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<page-not-found-invader *ngIf="konamiMatch"></page-not-found-invader>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
.page-not-found {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-flow: row wrap;
|
|
4
|
+
position: relative;
|
|
5
|
+
background-image: url('/assets/404/shape.svg');
|
|
6
|
+
background-size: auto 160vh;
|
|
7
|
+
background-position: 40vw -30vh;
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
|
|
11
|
+
.ap {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
right: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.not-found-section {
|
|
18
|
+
flex: 1 1 300px;
|
|
19
|
+
padding: 48px 146px;
|
|
20
|
+
|
|
21
|
+
.oops {
|
|
22
|
+
font-size: 8vw;
|
|
23
|
+
line-height: 11vw;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
font-family: 'Poppins';
|
|
26
|
+
margin-bottom: 21px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nf-title {
|
|
30
|
+
margin-bottom: 21px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nf-body {
|
|
34
|
+
margin-bottom: 40px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nf-actions {
|
|
38
|
+
margin-bottom: 32px;
|
|
39
|
+
font-size: 24px;
|
|
40
|
+
line-height: 36px;
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.actions {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 8px;
|
|
47
|
+
margin-bottom: 40px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.section-flying-saucer {
|
|
51
|
+
padding-top: 96px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
not-found-invader {
|
|
56
|
+
position: absolute;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.flying-saucer-container {
|
|
61
|
+
position: relative;
|
|
62
|
+
|
|
63
|
+
.soucoupe {
|
|
64
|
+
position: absolute;
|
|
65
|
+
top: 0;
|
|
66
|
+
left: 0;
|
|
67
|
+
z-index: 10;
|
|
68
|
+
transform: translateY(0);
|
|
69
|
+
animation-name: takeOff;
|
|
70
|
+
animation-duration: 10s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.halo {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 143px;
|
|
76
|
+
left: 42px;
|
|
77
|
+
height: 395px;
|
|
78
|
+
width: 273px;
|
|
79
|
+
border-radius: 0 0 130px 130px;
|
|
80
|
+
opacity: 1;
|
|
81
|
+
animation-name: retractHalo;
|
|
82
|
+
animation-duration: 10s;
|
|
83
|
+
}
|
|
84
|
+
.page-container {
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 147px;
|
|
87
|
+
left: 100px;
|
|
88
|
+
height: 350px;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
animation-direction: normal;
|
|
91
|
+
|
|
92
|
+
.page {
|
|
93
|
+
transform: translateY(100px);
|
|
94
|
+
animation-name: suckPage;
|
|
95
|
+
animation-duration: 10s;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.ombre {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 536px;
|
|
101
|
+
animation-name: shadowFade;
|
|
102
|
+
animation-duration: 10s;
|
|
103
|
+
opacity: 1;
|
|
104
|
+
width: 250px;
|
|
105
|
+
left: 60px;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes suckPage {
|
|
110
|
+
0% {
|
|
111
|
+
transform: translateY(100px);
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
35% {
|
|
115
|
+
transform: translateY(100px);
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
55% {
|
|
119
|
+
opacity: 0;
|
|
120
|
+
}
|
|
121
|
+
85% {
|
|
122
|
+
transform: translateY(-300px);
|
|
123
|
+
opacity: 0;
|
|
124
|
+
}
|
|
125
|
+
100% {
|
|
126
|
+
transform: translateY(100px);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@keyframes retractHalo {
|
|
131
|
+
0% {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
25% {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
35% {
|
|
138
|
+
opacity: 1;
|
|
139
|
+
}
|
|
140
|
+
55% {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
}
|
|
143
|
+
85% {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
}
|
|
146
|
+
99% {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
}
|
|
149
|
+
100% {
|
|
150
|
+
opacity: 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@keyframes takeOff {
|
|
155
|
+
0% {
|
|
156
|
+
transform: translateY(-300px);
|
|
157
|
+
}
|
|
158
|
+
25% {
|
|
159
|
+
transform: translateY(0);
|
|
160
|
+
}
|
|
161
|
+
70% {
|
|
162
|
+
transform: translateY(0);
|
|
163
|
+
}
|
|
164
|
+
90% {
|
|
165
|
+
transform: translateY(-300px);
|
|
166
|
+
}
|
|
167
|
+
96% {
|
|
168
|
+
transform: translateY(-300px);
|
|
169
|
+
}
|
|
170
|
+
100% {
|
|
171
|
+
transform: translateY(0);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes shadowFade {
|
|
176
|
+
0% {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
width: 370px;
|
|
179
|
+
left: 0;
|
|
180
|
+
}
|
|
181
|
+
25% {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
width: 250px;
|
|
184
|
+
left: 60px;
|
|
185
|
+
}
|
|
186
|
+
70% {
|
|
187
|
+
opacity: 1;
|
|
188
|
+
width: 250px;
|
|
189
|
+
left: 60px;
|
|
190
|
+
}
|
|
191
|
+
90% {
|
|
192
|
+
opacity: 0;
|
|
193
|
+
width: 370px;
|
|
194
|
+
left: 0;
|
|
195
|
+
}
|
|
196
|
+
96% {
|
|
197
|
+
opacity: 0;
|
|
198
|
+
width: 370px;
|
|
199
|
+
left: 0;
|
|
200
|
+
}
|
|
201
|
+
100% {
|
|
202
|
+
opacity: 1;
|
|
203
|
+
width: 250px;
|
|
204
|
+
left: 60px;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
ContentChild,
|
|
6
|
+
ContentChildren,
|
|
7
|
+
OnDestroy,
|
|
8
|
+
QueryList,
|
|
9
|
+
} from '@angular/core';
|
|
10
|
+
import { PageNotFoundActionComponent } from './page-not-found-action.component';
|
|
11
|
+
import { PageNotFoundExtraComponent } from './page-not-found-extra.component';
|
|
12
|
+
|
|
13
|
+
const konamiPattern = [
|
|
14
|
+
'ArrowUp',
|
|
15
|
+
'ArrowUp',
|
|
16
|
+
'ArrowDown',
|
|
17
|
+
'ArrowDown',
|
|
18
|
+
'ArrowLeft',
|
|
19
|
+
'ArrowRight',
|
|
20
|
+
'ArrowLeft',
|
|
21
|
+
'ArrowRight',
|
|
22
|
+
'b',
|
|
23
|
+
'a',
|
|
24
|
+
];
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'page-not-found',
|
|
27
|
+
styleUrls: ['./page-not-found.component.scss'],
|
|
28
|
+
templateUrl: 'page-not-found.component.html',
|
|
29
|
+
})
|
|
30
|
+
export class PageNotFoundComponent implements AfterViewInit, OnDestroy {
|
|
31
|
+
@ContentChildren(PageNotFoundActionComponent) actions?: QueryList<PageNotFoundActionComponent>;
|
|
32
|
+
@ContentChild(PageNotFoundExtraComponent) extra?: PageNotFoundExtraComponent;
|
|
33
|
+
|
|
34
|
+
sequence: string[] = ['', '', '', '', '', '', '', '', '', ''];
|
|
35
|
+
konamiMatch = false;
|
|
36
|
+
|
|
37
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
38
|
+
|
|
39
|
+
ngAfterViewInit() {
|
|
40
|
+
this.cd.detectChanges();
|
|
41
|
+
window.addEventListener('keydown', this.konami.bind(this));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ngOnDestroy() {
|
|
45
|
+
window.removeEventListener('keydown', this.konami.bind(this));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
konami($event: any) {
|
|
49
|
+
this.sequence.shift();
|
|
50
|
+
this.sequence = [...this.sequence, $event.key];
|
|
51
|
+
|
|
52
|
+
if (
|
|
53
|
+
this.sequence.length === konamiPattern.length &&
|
|
54
|
+
!this.sequence.map((s, idx) => s === konamiPattern[idx]).includes(false)
|
|
55
|
+
) {
|
|
56
|
+
this.konamiMatch = true;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { PageNotFoundComponent } from './page-not-found.component';
|
|
4
|
+
import { PageNotFoundInvaderComponent } from './page-not-found-invader.component';
|
|
5
|
+
import { PageNotFoundActionComponent } from './page-not-found-action.component';
|
|
6
|
+
import { PageNotFoundExtraComponent } from './page-not-found-extra.component';
|
|
7
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [
|
|
11
|
+
PageNotFoundComponent,
|
|
12
|
+
PageNotFoundInvaderComponent,
|
|
13
|
+
PageNotFoundActionComponent,
|
|
14
|
+
PageNotFoundExtraComponent,
|
|
15
|
+
],
|
|
16
|
+
imports: [CommonModule, TranslateModule],
|
|
17
|
+
exports: [
|
|
18
|
+
PageNotFoundComponent,
|
|
19
|
+
PageNotFoundInvaderComponent,
|
|
20
|
+
PageNotFoundActionComponent,
|
|
21
|
+
PageNotFoundExtraComponent,
|
|
22
|
+
],
|
|
23
|
+
})
|
|
24
|
+
export class OnemrvaPageNotFoundModule {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"types": []
|
|
10
|
+
},
|
|
11
|
+
"exclude": ["src/test.ts", "**/*.spec.ts"]
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This utility type fills several purposes:
|
|
3
|
+
* - possibility to merge the enumeration and the list of possible values (not possible with an enum)
|
|
4
|
+
* - possibility to hardcode the value without using the enumeration (with enum, you have to use an enum option, not one of the strings listed among the enum options)
|
|
5
|
+
*/
|
|
6
|
+
export const mkenum = <T extends { [index: string]: U }, U extends string>(x: T) => x;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { mkenum } from '../enum.utils';
|
|
2
|
+
|
|
3
|
+
export const OnemrvaMatColor = mkenum({
|
|
4
|
+
NONE: '',
|
|
5
|
+
PRIMARY: 'primary',
|
|
6
|
+
ACCENT: 'accent',
|
|
7
|
+
WARN: 'warn',
|
|
8
|
+
SUCCESS: 'success',
|
|
9
|
+
INFO: 'info',
|
|
10
|
+
ERROR: 'error',
|
|
11
|
+
GRAYSCALE: 'grayscale',
|
|
12
|
+
});
|
|
13
|
+
export type OnemrvaMatColor =
|
|
14
|
+
(typeof OnemrvaMatColor)[keyof typeof OnemrvaMatColor];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { mkenum } from '../enum.utils';
|
|
2
|
+
|
|
3
|
+
export const OnemrvaMatSize = mkenum({
|
|
4
|
+
XSMALL: 'extrasmall',
|
|
5
|
+
SMALL: 'small',
|
|
6
|
+
MEDIUM: 'medium',
|
|
7
|
+
LARGE: 'large',
|
|
8
|
+
XLARGE: 'extralarge',
|
|
9
|
+
});
|
|
10
|
+
export type OnemrvaMatSize =
|
|
11
|
+
(typeof OnemrvaMatSize)[keyof typeof OnemrvaMatSize];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
## Prerequisites
|
|
2
|
+
|
|
3
|
+
npm install -g @angular-devkit/schematics-cli
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
This step is going to install the schematics in the project (in node_modules)
|
|
8
|
+
|
|
9
|
+
\*\*\_NOTE:\*\*\* _The next four commands can executed with npm run link:schematics_
|
|
10
|
+
|
|
11
|
+
(the next 4 commands can be run with npm run link:schematics. )
|
|
12
|
+
|
|
13
|
+
- cd onemrva
|
|
14
|
+
- npm run build
|
|
15
|
+
- cd ..
|
|
16
|
+
- npm link ./onemrva .
|
|
17
|
+
|
|
18
|
+
## Generation of custom component named calendar in @onemrvapublic/design-system with demo
|
|
19
|
+
|
|
20
|
+
\*\*\_NOTE:\*\*\* _The name must be in kebap-case_
|
|
21
|
+
|
|
22
|
+
\*\*\_NOTE2:\*\*\* _If not supplied, the project is material by default_
|
|
23
|
+
|
|
24
|
+
schematics onemrva:cmpDemo --name=calendar (--project=sandbox)
|
|
25
|
+
|
|
26
|
+
## Generation of custom component only in @onemrvapublic/design-system
|
|
27
|
+
|
|
28
|
+
\*\*\_NOTE:\*\*\* _The name must be in kebap-case_
|
|
29
|
+
|
|
30
|
+
\*\*\_NOTE2:\*\*\* _If not supplied, the project is material by default_
|
|
31
|
+
|
|
32
|
+
schematics onemrva:component --name=calendar (--project=sandbox)
|
|
33
|
+
|
|
34
|
+
## Generation of demo only for that component
|
|
35
|
+
|
|
36
|
+
\*\*\_NOTE:\*\*\* _The name must be in kebap-case_
|
|
37
|
+
|
|
38
|
+
\*\*\_NOTE2:\*\*\* _If not supplied, the project is material by default_
|
|
39
|
+
|
|
40
|
+
schematics onemrva:demo --name=calendar (--project=sandbox)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "onemrva",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Scaffolding schematics for @onemrvapublic/design-system",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc -p tsconfig.json",
|
|
7
|
+
"test": "npm run build && jasmine src/**/*_spec.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"schematics"
|
|
11
|
+
],
|
|
12
|
+
"author": "",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"schematics": "./src/collection.json",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@angular-devkit/core": "^14.2.3",
|
|
17
|
+
"@angular-devkit/schematics": "^14.2.3",
|
|
18
|
+
"typescript": "^4.9.4"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/jasmine": "~4.0.0",
|
|
22
|
+
"@types/node": "^14.15.0",
|
|
23
|
+
"jasmine": "^4.0.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "Component",
|
|
4
|
+
"title": "New @onemrvapublic/design-system component",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "component name in camel case format"
|
|
9
|
+
},
|
|
10
|
+
"project": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "project name"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"component": {
|
|
5
|
+
"description": "Generation of @onemrvapublic/design-system/component.",
|
|
6
|
+
"factory": "./component/index#component"
|
|
7
|
+
},
|
|
8
|
+
"demo": {
|
|
9
|
+
"description": "Generation of demo for @onemrvapublic/design-system/component (does not include configuration in Demos.ts).",
|
|
10
|
+
"factory": "./demo/index#demo"
|
|
11
|
+
},
|
|
12
|
+
"cmpDemo": {
|
|
13
|
+
"description": "Composition of schematics onemrva:component and onemrva:demo",
|
|
14
|
+
"factory": "./cmp-demo/index#cmpDemo"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install --save @onemrvapublic/theme
|
|
5
|
+
npm install --save @onemrvapublic/design-system
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
In style.scss:
|
|
9
|
+
|
|
10
|
+
```scss
|
|
11
|
+
@use "@onemrvapublic/theme" as theme;
|
|
12
|
+
@use "@onemrvapublic/design-system" as onemrvaMat;
|
|
13
|
+
|
|
14
|
+
@include theme.reset();
|
|
15
|
+
|
|
16
|
+
.onemrva-theme {
|
|
17
|
+
@include theme.onemrva();
|
|
18
|
+
@include onemrvaMat.<%=camelize(name) %>(theme.$onemrva-theme);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Changelog
|
|
23
|
+
|
|
24
|
+
## 14.2.XXX
|
|
25
|
+
|
|
26
|
+
Thibaut, tu as oublié de mettre à jour le changeLog
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "Component",
|
|
4
|
+
"title": "New @onemrvapublic/design-system component",
|
|
5
|
+
"properties": {
|
|
6
|
+
"name": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "component name in camel case format"
|
|
9
|
+
},
|
|
10
|
+
"project": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "project name"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|