@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,291 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {AriaDescriber} from '@angular/cdk/a11y';
|
|
10
|
+
import {BooleanInput, coerceBooleanProperty} from '@angular/cdk/coercion';
|
|
11
|
+
import {
|
|
12
|
+
Directive,
|
|
13
|
+
ElementRef, HostBinding,
|
|
14
|
+
Inject,
|
|
15
|
+
Input,
|
|
16
|
+
NgZone,
|
|
17
|
+
OnDestroy,
|
|
18
|
+
OnInit,
|
|
19
|
+
Optional,
|
|
20
|
+
Renderer2,
|
|
21
|
+
} from '@angular/core';
|
|
22
|
+
import {CanDisable, mixinDisabled} from '@angular/material/core';
|
|
23
|
+
import {ANIMATION_MODULE_TYPE} from '@angular/platform-browser/animations';
|
|
24
|
+
|
|
25
|
+
let nextId = 0;
|
|
26
|
+
|
|
27
|
+
// Boilerplate for applying mixins to MatBadge.
|
|
28
|
+
/** @docs-private */
|
|
29
|
+
const _MatBadgeBase = mixinDisabled(class {});
|
|
30
|
+
|
|
31
|
+
/** Possible color palette values. */
|
|
32
|
+
export declare type ThemePalette = 'primary' | 'accent' | 'warn' | 'success' | 'error' | 'info' | 'grayscale' | undefined;
|
|
33
|
+
|
|
34
|
+
/** Allowed position options for matBadgePosition */
|
|
35
|
+
export type MatBadgePosition =
|
|
36
|
+
| 'above after'
|
|
37
|
+
| 'above before'
|
|
38
|
+
| 'below before'
|
|
39
|
+
| 'below after'
|
|
40
|
+
| 'before'
|
|
41
|
+
| 'after'
|
|
42
|
+
| 'above'
|
|
43
|
+
| 'below';
|
|
44
|
+
|
|
45
|
+
/** Allowed size options for matBadgeSize */
|
|
46
|
+
export type MatBadgeSize = 'small' | 'medium' | 'large';
|
|
47
|
+
|
|
48
|
+
const BADGE_CONTENT_CLASS = 'mat-badge-content';
|
|
49
|
+
|
|
50
|
+
/** Directive to display a text badge. */
|
|
51
|
+
@Directive({
|
|
52
|
+
selector: '[matBadge]',
|
|
53
|
+
inputs: ['disabled: matBadgeDisabled'],
|
|
54
|
+
host: {
|
|
55
|
+
'class': 'mat-badge',
|
|
56
|
+
'[class.mat-badge-overlap]': 'overlap',
|
|
57
|
+
'[class.mat-badge-above]': 'isAbove()',
|
|
58
|
+
'[class.mat-badge-below]': '!isAbove()',
|
|
59
|
+
'[class.mat-badge-before]': '!isAfter()',
|
|
60
|
+
'[class.mat-badge-after]': 'isAfter()',
|
|
61
|
+
'[class.mat-badge-small]': 'size === "small"',
|
|
62
|
+
'[class.mat-badge-medium]': 'size === "medium"',
|
|
63
|
+
'[class.mat-badge-large]': 'size === "large"',
|
|
64
|
+
'[class.mat-badge-hidden]': 'hidden || !content',
|
|
65
|
+
'[class.mat-badge-disabled]': 'disabled',
|
|
66
|
+
},
|
|
67
|
+
})
|
|
68
|
+
export class OnemrvaMatBadgeComponent extends _MatBadgeBase implements OnInit, OnDestroy, CanDisable {
|
|
69
|
+
/** The color of the badge. Can be `primary`, `accent`, or `warn`. */
|
|
70
|
+
@Input('matBadgeColor')
|
|
71
|
+
get color(): ThemePalette {
|
|
72
|
+
return this._color;
|
|
73
|
+
}
|
|
74
|
+
set color(value: ThemePalette) {
|
|
75
|
+
this._setColor(value);
|
|
76
|
+
this._color = value;
|
|
77
|
+
}
|
|
78
|
+
private _color: ThemePalette = 'primary';
|
|
79
|
+
|
|
80
|
+
/** Whether the badge should overlap its contents or not */
|
|
81
|
+
@Input('matBadgeOverlap')
|
|
82
|
+
get overlap(): boolean {
|
|
83
|
+
return this._overlap;
|
|
84
|
+
}
|
|
85
|
+
set overlap(val: BooleanInput) {
|
|
86
|
+
this._overlap = coerceBooleanProperty(val);
|
|
87
|
+
}
|
|
88
|
+
private _overlap: boolean = true;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Position the badge should reside.
|
|
92
|
+
* Accepts any combination of 'above'|'below' and 'before'|'after'
|
|
93
|
+
*/
|
|
94
|
+
@Input('matBadgePosition') position: MatBadgePosition = 'above after';
|
|
95
|
+
|
|
96
|
+
/** The content for the badge */
|
|
97
|
+
@Input('matBadge')
|
|
98
|
+
get content(): string | number | undefined | null {
|
|
99
|
+
return this._content;
|
|
100
|
+
}
|
|
101
|
+
set content(newContent: string | number | undefined | null) {
|
|
102
|
+
this._updateRenderedContent(newContent);
|
|
103
|
+
}
|
|
104
|
+
private _content: string | number | undefined | null;
|
|
105
|
+
|
|
106
|
+
/** Message used to describe the decorated element via aria-describedby */
|
|
107
|
+
@Input('matBadgeDescription')
|
|
108
|
+
get description(): string {
|
|
109
|
+
return this._description;
|
|
110
|
+
}
|
|
111
|
+
set description(newDescription: string) {
|
|
112
|
+
this._updateHostAriaDescription(newDescription);
|
|
113
|
+
}
|
|
114
|
+
private _description: string = "";
|
|
115
|
+
|
|
116
|
+
/** Size of the badge. Can be 'small', 'medium', or 'large'. */
|
|
117
|
+
@Input('matBadgeSize') size: MatBadgeSize = 'medium';
|
|
118
|
+
|
|
119
|
+
/** Whether the badge is hidden. */
|
|
120
|
+
@Input('matBadgeHidden')
|
|
121
|
+
get hidden(): boolean {
|
|
122
|
+
return this._hidden;
|
|
123
|
+
}
|
|
124
|
+
set hidden(val: BooleanInput) {
|
|
125
|
+
this._hidden = coerceBooleanProperty(val);
|
|
126
|
+
}
|
|
127
|
+
private _hidden: boolean = false;
|
|
128
|
+
|
|
129
|
+
@HostBinding('class.mat-badge-icon')
|
|
130
|
+
isIcon:boolean = false;
|
|
131
|
+
|
|
132
|
+
/** Unique id for the badge */
|
|
133
|
+
_id: number = nextId++;
|
|
134
|
+
|
|
135
|
+
/** Visible badge element. */
|
|
136
|
+
private _badgeElement: HTMLElement | undefined;
|
|
137
|
+
|
|
138
|
+
/** Whether the OnInit lifecycle hook has run yet */
|
|
139
|
+
private _isInitialized = false;
|
|
140
|
+
|
|
141
|
+
constructor(
|
|
142
|
+
private _ngZone: NgZone,
|
|
143
|
+
private _elementRef: ElementRef<HTMLElement>,
|
|
144
|
+
private _ariaDescriber: AriaDescriber,
|
|
145
|
+
private _renderer: Renderer2,
|
|
146
|
+
@Optional() @Inject(ANIMATION_MODULE_TYPE) private _animationMode?: string,
|
|
147
|
+
) {
|
|
148
|
+
super();
|
|
149
|
+
|
|
150
|
+
// if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
151
|
+
// const nativeElement = _elementRef.nativeElement;
|
|
152
|
+
// if (nativeElement.nodeType !== nativeElement.ELEMENT_NODE) {
|
|
153
|
+
// throw Error('matBadge must be attached to an element node.');
|
|
154
|
+
// }
|
|
155
|
+
// }
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Whether the badge is above the host or not */
|
|
159
|
+
isAbove(): boolean {
|
|
160
|
+
return this.position.indexOf('below') === -1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** Whether the badge is after the host or not */
|
|
164
|
+
isAfter(): boolean {
|
|
165
|
+
return this.position.indexOf('before') === -1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Gets the element into which the badge's content is being rendered. Undefined if the element
|
|
170
|
+
* hasn't been created (e.g. if the badge doesn't have content).
|
|
171
|
+
*/
|
|
172
|
+
getBadgeElement(): HTMLElement | undefined {
|
|
173
|
+
return this._badgeElement;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
ngOnInit() {
|
|
177
|
+
// We may have server-side rendered badge that we need to clear.
|
|
178
|
+
// We need to do this in ngOnInit because the full content of the component
|
|
179
|
+
// on which the badge is attached won't necessarily be in the DOM until this point.
|
|
180
|
+
this._clearExistingBadges();
|
|
181
|
+
|
|
182
|
+
if (this.content && !this._badgeElement) {
|
|
183
|
+
this._badgeElement = this._createBadgeElement();
|
|
184
|
+
this._updateRenderedContent(this.content);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
this._isInitialized = true;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
ngOnDestroy() {
|
|
191
|
+
// ViewEngine only: when creating a badge through the Renderer, Angular remembers its index.
|
|
192
|
+
// We have to destroy it ourselves, otherwise it'll be retained in memory.
|
|
193
|
+
if (this._renderer.destroyNode) {
|
|
194
|
+
this._renderer.destroyNode(this._badgeElement);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** Creates the badge element */
|
|
201
|
+
private _createBadgeElement(): HTMLElement {
|
|
202
|
+
const badgeElement = this._renderer.createElement('span');
|
|
203
|
+
const activeClass = 'mat-badge-active';
|
|
204
|
+
|
|
205
|
+
badgeElement.setAttribute('id', `mat-badge-content-${this._id}`);
|
|
206
|
+
|
|
207
|
+
// The badge is aria-hidden because we don't want it to appear in the page's navigation
|
|
208
|
+
// flow. Instead, we use the badge to describe the decorated element with aria-describedby.
|
|
209
|
+
badgeElement.setAttribute('aria-hidden', 'true');
|
|
210
|
+
badgeElement.classList.add(BADGE_CONTENT_CLASS);
|
|
211
|
+
|
|
212
|
+
if (this._animationMode === 'NoopAnimations') {
|
|
213
|
+
badgeElement.classList.add('_mat-animation-noopable');
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
this._elementRef.nativeElement.appendChild(badgeElement);
|
|
217
|
+
|
|
218
|
+
// animate in after insertion
|
|
219
|
+
if (typeof requestAnimationFrame === 'function' && this._animationMode !== 'NoopAnimations') {
|
|
220
|
+
this._ngZone.runOutsideAngular(() => {
|
|
221
|
+
requestAnimationFrame(() => {
|
|
222
|
+
badgeElement.classList.add(activeClass);
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
} else {
|
|
226
|
+
badgeElement.classList.add(activeClass);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return badgeElement;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/** Update the text content of the badge element in the DOM, creating the element if necessary. */
|
|
233
|
+
private _updateRenderedContent(newContent: string | number | undefined | null): void {
|
|
234
|
+
let newContentNormalized: string = `${newContent ?? ''}`.trim();
|
|
235
|
+
//const newContentNormalized: string = '\uf063';
|
|
236
|
+
if (typeof newContent === 'string' && newContent.substring(0,2) == "\\u"){
|
|
237
|
+
this.isIcon = true;
|
|
238
|
+
newContentNormalized = String.fromCodePoint( parseInt(newContent.substring(2, newContent.length), 16) );
|
|
239
|
+
} else if (typeof newContent === 'number' || !isNaN(Number(newContent))) {
|
|
240
|
+
if (typeof newContent === 'string') newContent = parseInt(newContent);
|
|
241
|
+
else if (newContent === null ||newContent === undefined) newContent = 0;
|
|
242
|
+
if (newContent >= 100) {
|
|
243
|
+
newContentNormalized = '99+';
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
// Don't create the badge element if the directive isn't initialized because we want to
|
|
247
|
+
// append the badge element to the *end* of the host element's content for backwards
|
|
248
|
+
// compatibility.
|
|
249
|
+
if (this._isInitialized && newContentNormalized && !this._badgeElement) {
|
|
250
|
+
this._badgeElement = this._createBadgeElement();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (this._badgeElement) {
|
|
254
|
+
this._badgeElement.textContent = newContentNormalized;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
this._content = newContentNormalized;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/** Updates the host element's aria description via AriaDescriber. */
|
|
261
|
+
private _updateHostAriaDescription(newDescription: string): void {
|
|
262
|
+
this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this.description);
|
|
263
|
+
if (newDescription) {
|
|
264
|
+
this._ariaDescriber.describe(this._elementRef.nativeElement, newDescription);
|
|
265
|
+
}
|
|
266
|
+
this._description = newDescription;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/** Adds css theme class given the color to the component host */
|
|
270
|
+
private _setColor(colorPalette: ThemePalette) {
|
|
271
|
+
const classList = this._elementRef.nativeElement.classList;
|
|
272
|
+
classList.remove(`mat-badge-${this._color}`);
|
|
273
|
+
if (colorPalette) {
|
|
274
|
+
classList.add(`mat-badge-${colorPalette}`);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** Clears any existing badges that might be left over from server-side rendering. */
|
|
279
|
+
private _clearExistingBadges() {
|
|
280
|
+
// Only check direct children of this host element in order to avoid deleting
|
|
281
|
+
// any badges that might exist in descendant elements.
|
|
282
|
+
const badges = this._elementRef.nativeElement.querySelectorAll(
|
|
283
|
+
`:scope > .${BADGE_CONTENT_CLASS}`,
|
|
284
|
+
);
|
|
285
|
+
for (const badgeElement of Array.from(badges)) {
|
|
286
|
+
if (badgeElement !== this._badgeElement) {
|
|
287
|
+
badgeElement.remove();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<ng-container *ngIf="breadcrumbs$ | async as bc">
|
|
2
|
+
<ul class="onemrva-mat-breadcrumb" *ngIf="bc.length > 0">
|
|
3
|
+
<li
|
|
4
|
+
*ngFor="let breadcrumb of bc; let i = index"
|
|
5
|
+
class="onemrva-mat-breadcrumb-link-container"
|
|
6
|
+
[ngStyle]="{ display: bc.length <= 6 || i <= 2 ? 'list-item' : 'none' }"
|
|
7
|
+
>
|
|
8
|
+
<div [routerLink]="breadcrumb.url" class="onemrva-mat-breadcrumb-link">
|
|
9
|
+
{{ breadcrumb.label }}
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<mat-icon
|
|
13
|
+
*ngIf="i < bc.length - 1"
|
|
14
|
+
class="chevron-right"
|
|
15
|
+
style="width: 10px"
|
|
16
|
+
>chevron_right</mat-icon
|
|
17
|
+
>
|
|
18
|
+
</li>
|
|
19
|
+
<li
|
|
20
|
+
*ngIf="bc.length > 6"
|
|
21
|
+
class="onemrva-mat-breadcrumb-link-container onemrva-mat-breadcrumb-link-container-hidden"
|
|
22
|
+
>
|
|
23
|
+
...
|
|
24
|
+
<mat-icon class="chevron-right" style="width: 10px"
|
|
25
|
+
>chevron_right</mat-icon
|
|
26
|
+
>
|
|
27
|
+
</li>
|
|
28
|
+
<li *ngIf="bc.length > 6" class="onemrva-mat-breadcrumb-link-container">
|
|
29
|
+
<div
|
|
30
|
+
[routerLink]="bc[bc.length - 1].url"
|
|
31
|
+
class="onemrva-mat-breadcrumb-link"
|
|
32
|
+
>
|
|
33
|
+
{{ bc[bc.length - 1].label }}
|
|
34
|
+
</div>
|
|
35
|
+
</li>
|
|
36
|
+
</ul>
|
|
37
|
+
</ng-container>
|
package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@angular/material" as mat;
|
|
3
|
+
|
|
4
|
+
@use "../../utils";
|
|
5
|
+
|
|
6
|
+
@mixin breadcrumb($theme) {
|
|
7
|
+
$font-family: map.get(
|
|
8
|
+
map.get(map.get($theme, "typography"), "label-button"),
|
|
9
|
+
"font-family"
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
.onemrva-mat-breadcrumb {
|
|
13
|
+
display: flex;
|
|
14
|
+
list-style: none;
|
|
15
|
+
padding: 0;
|
|
16
|
+
align-items: baseline;
|
|
17
|
+
|
|
18
|
+
.onemrva-mat-breadcrumb-link-container {
|
|
19
|
+
margin-right: 8px;
|
|
20
|
+
|
|
21
|
+
.chevron-right {
|
|
22
|
+
margin: 0 8px;
|
|
23
|
+
font-family: "Material Icons";
|
|
24
|
+
content: "\e5e1";
|
|
25
|
+
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
height: 16px;
|
|
29
|
+
color: #c5c4cc; // HWKTMP
|
|
30
|
+
width: 5px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:not(:last-child) {
|
|
34
|
+
.onemrva-mat-breadcrumb-link {
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
color: #acaab2; // HWKTMP
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
font-family: $font-family;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
.onemrva-mat-breadcrumb-link {
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
color: utils.palette($theme, "primary");
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:last-child {
|
|
52
|
+
.onemrva-mat-breadcrumb-link {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
color: #312f3b;
|
|
55
|
+
text-decoration: none;
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
font-family: $font-family;
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
cursor: default;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
cursor: default;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { OnemrvaBreadcrumb } from './onemrva-mat-breadcrumb.model';
|
|
4
|
+
import { OnemrvaMatBreadcrumbService } from './onemrva-mat-breadcrumb.service';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'onemrva-mat-breadcrumb',
|
|
8
|
+
templateUrl: 'onemrva-mat-breadcrumb.component.html',
|
|
9
|
+
})
|
|
10
|
+
export class OnemrvaMatBreadcrumbComponent {
|
|
11
|
+
breadcrumbs$!: Observable<OnemrvaBreadcrumb[]>;
|
|
12
|
+
|
|
13
|
+
constructor(private readonly breadcrumbService: OnemrvaMatBreadcrumbService) {
|
|
14
|
+
this.breadcrumbs$ = breadcrumbService.breadcrumbs$;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
+
import { RouterModule } from '@angular/router';
|
|
5
|
+
import { OnemrvaMatBreadcrumbComponent } from './onemrva-mat-breadcrumb.component';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [OnemrvaMatBreadcrumbComponent],
|
|
9
|
+
imports: [CommonModule, MatIconModule, RouterModule],
|
|
10
|
+
exports: [OnemrvaMatBreadcrumbComponent],
|
|
11
|
+
})
|
|
12
|
+
export class OnemrvaMatBreadcrumbModule {}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ActivatedRouteSnapshot, NavigationEnd, Router } from '@angular/router';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { filter } from 'rxjs/operators';
|
|
5
|
+
import { OnemrvaBreadcrumb } from './onemrva-mat-breadcrumb.model';
|
|
6
|
+
|
|
7
|
+
@Injectable({
|
|
8
|
+
providedIn: 'root',
|
|
9
|
+
})
|
|
10
|
+
export class OnemrvaMatBreadcrumbService {
|
|
11
|
+
// Subject emitting the breadcrumb hierarchy
|
|
12
|
+
private readonly _breadcrumbs$ = new BehaviorSubject<OnemrvaBreadcrumb[]>([]);
|
|
13
|
+
|
|
14
|
+
// Observable exposing the breadcrumb hierarchy
|
|
15
|
+
readonly breadcrumbs$ = this._breadcrumbs$.asObservable();
|
|
16
|
+
|
|
17
|
+
constructor(private router: Router) {
|
|
18
|
+
this.router.events
|
|
19
|
+
.pipe(
|
|
20
|
+
// Filter the NavigationEnd events as the breadcrumb is updated only when the route reaches its end
|
|
21
|
+
filter((event) => event instanceof NavigationEnd)
|
|
22
|
+
)
|
|
23
|
+
.subscribe((event) => {
|
|
24
|
+
// Construct the breadcrumb hierarchy
|
|
25
|
+
const root = this.router.routerState.snapshot.root;
|
|
26
|
+
const breadcrumbs: OnemrvaBreadcrumb[] = [];
|
|
27
|
+
this.addBreadcrumb(root, [], breadcrumbs);
|
|
28
|
+
|
|
29
|
+
// Emit the new hierarchy
|
|
30
|
+
this._breadcrumbs$.next(breadcrumbs);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
private addBreadcrumb(
|
|
35
|
+
route: ActivatedRouteSnapshot | null,
|
|
36
|
+
parentUrl: string[],
|
|
37
|
+
breadcrumbs: OnemrvaBreadcrumb[]
|
|
38
|
+
) {
|
|
39
|
+
if (route) {
|
|
40
|
+
// Construct the route URL
|
|
41
|
+
const routeUrl = parentUrl.concat(route.url.map((url) => url.path));
|
|
42
|
+
|
|
43
|
+
// Add an element for the current route part
|
|
44
|
+
if (route.data['navigationTitle']) {
|
|
45
|
+
const url = '/' + routeUrl.join('/');
|
|
46
|
+
const breadcrumb = {
|
|
47
|
+
label: route.data['navigationTitle'],
|
|
48
|
+
url,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
if (
|
|
52
|
+
breadcrumbs.length > 0 &&
|
|
53
|
+
url === breadcrumbs[breadcrumbs.length - 1].url
|
|
54
|
+
) {
|
|
55
|
+
breadcrumbs[breadcrumbs.length - 1] = breadcrumb;
|
|
56
|
+
} else {
|
|
57
|
+
breadcrumbs.push(breadcrumb);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Add another element for the next route part
|
|
62
|
+
this.addBreadcrumb(route.firstChild, routeUrl, breadcrumbs);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use "../../utils" as utils;
|
|
2
|
+
|
|
3
|
+
// source: https://medium.com/nerd-for-tech/beautiful-spinner-in-css-bce7a348f50f
|
|
4
|
+
|
|
5
|
+
@mixin spinner($theme) {
|
|
6
|
+
$primary: utils.palette($theme, "primary");
|
|
7
|
+
|
|
8
|
+
.onemrva-spinner-container {
|
|
9
|
+
position: relative;
|
|
10
|
+
height: 52px;
|
|
11
|
+
right: 52px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.onemrva-spinner {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 50%;
|
|
17
|
+
left: 50%;
|
|
18
|
+
transform: translate(-50%, -50%);
|
|
19
|
+
height: 52px;
|
|
20
|
+
width: 52px;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
background: conic-gradient(
|
|
23
|
+
from 90deg at 50% 50%,
|
|
24
|
+
rgba(39, 174, 96, 0) 0deg,
|
|
25
|
+
rgba(31, 144, 255, 0) 0.04deg,
|
|
26
|
+
$primary 360deg
|
|
27
|
+
);
|
|
28
|
+
border-radius: 56px;
|
|
29
|
+
/* previous code */
|
|
30
|
+
animation: 1s rotate infinite linear;
|
|
31
|
+
}
|
|
32
|
+
.onemrva-spinner::before {
|
|
33
|
+
content: "";
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 50%;
|
|
36
|
+
top: 50%;
|
|
37
|
+
transform: translate(-50%, -50%);
|
|
38
|
+
height: 43px;
|
|
39
|
+
width: 43px;
|
|
40
|
+
background: #fff;
|
|
41
|
+
border-radius: 48px;
|
|
42
|
+
}
|
|
43
|
+
.onemrva-spinner::after {
|
|
44
|
+
content: "";
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: 0;
|
|
47
|
+
top: 50%;
|
|
48
|
+
transform: translateY(-50%);
|
|
49
|
+
height: 4px;
|
|
50
|
+
width: 4px;
|
|
51
|
+
background: $primary;
|
|
52
|
+
border-radius: 8px;
|
|
53
|
+
}
|
|
54
|
+
@keyframes rotate {
|
|
55
|
+
0% {
|
|
56
|
+
transform: rotate(0deg);
|
|
57
|
+
}
|
|
58
|
+
100% {
|
|
59
|
+
transform: rotate(360deg);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-mat-clipboard',
|
|
5
|
+
template: `
|
|
6
|
+
<span><ng-content></ng-content><mat-icon *ngIf="!checked">content_copy</mat-icon><mat-icon color="success" *ngIf="checked">check</mat-icon></span>
|
|
7
|
+
`,
|
|
8
|
+
})
|
|
9
|
+
export class OnemrvaMatClipboardComponent {
|
|
10
|
+
checked: boolean = false;
|
|
11
|
+
|
|
12
|
+
constructor(
|
|
13
|
+
private clipboardService : Clipboard) {
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { OnemrvaMatClipboardComponent } from './onemrva-mat-clipboard.component';
|
|
3
|
+
import {MatIconModule} from "@angular/material/icon";
|
|
4
|
+
import {MatTooltipModule} from "@angular/material/tooltip";
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [OnemrvaMatClipboardComponent],
|
|
8
|
+
exports: [OnemrvaMatClipboardComponent],
|
|
9
|
+
imports: [
|
|
10
|
+
MatIconModule,
|
|
11
|
+
MatTooltipModule
|
|
12
|
+
]
|
|
13
|
+
})
|
|
14
|
+
export class OnemrvaMatClipboardModule {}
|