@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
package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
Component, ContentChildren, EventEmitter, forwardRef, HostBinding, Input, OnDestroy, OnInit, QueryList
|
|
4
|
+
} from '@angular/core';
|
|
5
|
+
import {FormControl, NG_VALUE_ACCESSOR} from "@angular/forms";
|
|
6
|
+
import {MatFormFieldControl} from "@angular/material/form-field";
|
|
7
|
+
import {TranslateService} from "@ngx-translate/core";
|
|
8
|
+
import {MatOption} from "@angular/material/core";
|
|
9
|
+
import {map, startWith} from "rxjs/operators";
|
|
10
|
+
import {option} from "yargs";
|
|
11
|
+
import {Observable} from "rxjs";
|
|
12
|
+
|
|
13
|
+
let NEXT_ID = 0;
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
selector: 'onemrva-mat-multi-select',
|
|
17
|
+
templateUrl: 'onemrva-mat-multi-select.component.html',
|
|
18
|
+
providers: [
|
|
19
|
+
{
|
|
20
|
+
provide: MatFormFieldControl,
|
|
21
|
+
useExisting: OnemrvaMatMultiSelectComponent,
|
|
22
|
+
multi: false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
provide: NG_VALUE_ACCESSOR,
|
|
26
|
+
useExisting: forwardRef(() => OnemrvaMatMultiSelectComponent),
|
|
27
|
+
multi: true,
|
|
28
|
+
}
|
|
29
|
+
// {
|
|
30
|
+
// provide: MatFormFieldControl,
|
|
31
|
+
// useExisting: OnemrvaMatMultiSelectComponent,
|
|
32
|
+
// },
|
|
33
|
+
// {
|
|
34
|
+
// provide: MAT_OPTION_PARENT_COMPONENT,
|
|
35
|
+
// useExisting: OnemrvaMatMultiSelectComponent,
|
|
36
|
+
// },
|
|
37
|
+
],
|
|
38
|
+
})
|
|
39
|
+
export class OnemrvaMatMultiSelectComponent extends MatFormFieldControl<any>
|
|
40
|
+
implements OnInit, OnDestroy, AfterViewInit
|
|
41
|
+
{
|
|
42
|
+
|
|
43
|
+
counter = 0;
|
|
44
|
+
_values : any[] = [];
|
|
45
|
+
public override stateChanges : Observable<any> = new Observable<any>();
|
|
46
|
+
|
|
47
|
+
@Input()
|
|
48
|
+
formControl!: FormControl;
|
|
49
|
+
|
|
50
|
+
@Input()
|
|
51
|
+
showFilter: boolean = true;
|
|
52
|
+
|
|
53
|
+
@Input()
|
|
54
|
+
selectionToggle: boolean = true;
|
|
55
|
+
|
|
56
|
+
searchFilter: FormControl = new FormControl<string>('');
|
|
57
|
+
|
|
58
|
+
@ContentChildren(MatOption)
|
|
59
|
+
matOptions: QueryList<MatOption> = new QueryList<MatOption>();
|
|
60
|
+
matOptions$?: Observable<MatOption<any>[]>;
|
|
61
|
+
|
|
62
|
+
@HostBinding('style.opacity')
|
|
63
|
+
get opacity() {
|
|
64
|
+
return this.disabled ? 0.25 : 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
constructor(
|
|
68
|
+
public translate: TranslateService
|
|
69
|
+
) {
|
|
70
|
+
super();
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Function to call when the rating changes.
|
|
75
|
+
onChange = (values: any[]) => {
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// Function to call when the input is touched (when a star is clicked).
|
|
79
|
+
onTouched = () => {};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// Allows Angular to update the model (rating).
|
|
83
|
+
// Update the model and changes needed for the view here.
|
|
84
|
+
writeValue(values: any[]): void {
|
|
85
|
+
if (values !== null)
|
|
86
|
+
this.counter = values.length;
|
|
87
|
+
this._values = values;
|
|
88
|
+
this.onChange(this._values);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Allows Angular to register a function to call when the model (rating) changes.
|
|
92
|
+
// Save the function as a property to call later here.
|
|
93
|
+
registerOnChange(fn: (value: any[]) => void): void {
|
|
94
|
+
this.onChange = fn;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Allows Angular to register a function to call when the input has been touched.
|
|
98
|
+
// Save the function as a property to call later here.
|
|
99
|
+
registerOnTouched(fn: () => void): void {
|
|
100
|
+
this.onTouched = fn;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
isAllSelected() {
|
|
104
|
+
return this.counter === this.matOptions.length;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
selectAll() {
|
|
108
|
+
this._values = this.matOptions.map((option) => {
|
|
109
|
+
return option.value;
|
|
110
|
+
});
|
|
111
|
+
this.formControl.setValue(this._values);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
isNoneSelected() {
|
|
115
|
+
return this.counter === 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
deselectAll($event: MouseEvent) {
|
|
119
|
+
this._values = [];
|
|
120
|
+
this.formControl.setValue(this._values);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
onContainerClick(event: MouseEvent): void {
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
setDescribedByIds(ids: string[]): void {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
ngAfterViewInit(): void {
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
ngOnDestroy(): void {
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
ngOnInit(): void {
|
|
136
|
+
this.matOptions$ = this.searchFilter.valueChanges.pipe(
|
|
137
|
+
startWith(''),
|
|
138
|
+
map((value: string) => {
|
|
139
|
+
if (value === '') {
|
|
140
|
+
return this.matOptions.filter((o)=> {return true});
|
|
141
|
+
}
|
|
142
|
+
return this.matOptions.filter((option) => {
|
|
143
|
+
return option?._text?.nativeElement.innerHTML.toLowerCase().includes(value.toLowerCase());
|
|
144
|
+
});
|
|
145
|
+
})
|
|
146
|
+
)
|
|
147
|
+
this.formControl.valueChanges.subscribe((values) => {
|
|
148
|
+
this._values = values;
|
|
149
|
+
this.counter = this._values.length;
|
|
150
|
+
})
|
|
151
|
+
}
|
|
152
|
+
}
|
package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import {CommonModule} from '@angular/common';
|
|
3
|
+
import { OnemrvaMatMultiSelectComponent } from "./onemrva-mat-multi-select.component";
|
|
4
|
+
import {MatSelectModule} from "@angular/material/select";
|
|
5
|
+
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
|
6
|
+
import {MatInputModule} from "@angular/material/input";
|
|
7
|
+
import {MatFormFieldModule} from "@angular/material/form-field";
|
|
8
|
+
import {TranslateModule} from "@ngx-translate/core";
|
|
9
|
+
import {MatIconModule} from "@angular/material/icon";
|
|
10
|
+
import {MatSelectSearchModule} from "@onemrvapublic/design-system/mat-select-search";
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
declarations: [
|
|
14
|
+
OnemrvaMatMultiSelectComponent
|
|
15
|
+
],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
FormsModule,
|
|
19
|
+
TranslateModule,
|
|
20
|
+
MatFormFieldModule,
|
|
21
|
+
MatSelectModule,
|
|
22
|
+
MatInputModule,
|
|
23
|
+
MatIconModule,
|
|
24
|
+
MatSelectSearchModule,
|
|
25
|
+
ReactiveFormsModule
|
|
26
|
+
],
|
|
27
|
+
exports: [
|
|
28
|
+
OnemrvaMatMultiSelectComponent
|
|
29
|
+
],
|
|
30
|
+
})
|
|
31
|
+
export class OnemrvaMatMultiSelectModule {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/onemrva-mat-notification.component';
|
package/projects/onemrva/design-system/mat-notification/src/_onemrva-mat-notification.component.scss
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@use "../../utils" as utils;
|
|
2
|
+
|
|
3
|
+
@mixin notification($theme) {
|
|
4
|
+
onemrva-mat-notification {
|
|
5
|
+
position: fixed;
|
|
6
|
+
top: 92px;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
transition: max-height 400ms ease-out;
|
|
10
|
+
max-height: 100vh;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
|
|
13
|
+
.onemrva-mat-notification {
|
|
14
|
+
padding: 16px 16px 16px 40px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.close-notification {
|
|
18
|
+
float: right;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.collapse-notification {
|
|
22
|
+
max-height: 0;
|
|
23
|
+
border-bottom: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:before {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 16px;
|
|
29
|
+
left: 16px;
|
|
30
|
+
width: 26px;
|
|
31
|
+
font-family: "Material Icons";
|
|
32
|
+
font-size: 20px;
|
|
33
|
+
font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.mat-info {
|
|
37
|
+
background-color: utils.palette($theme, "info", 50);
|
|
38
|
+
color: utils.palette($theme, "info", 500);
|
|
39
|
+
border-bottom: 1px solid utils.palette($theme, "info", 500);
|
|
40
|
+
&:before {
|
|
41
|
+
content: "\e88e";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&.mat-success {
|
|
45
|
+
background-color: utils.palette($theme, "success", 50);
|
|
46
|
+
color: utils.palette($theme, "success", 600);
|
|
47
|
+
border-bottom: 1px solid utils.palette($theme, "success", 600);
|
|
48
|
+
&:before {
|
|
49
|
+
content: "\e86c";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
&.mat-warn {
|
|
53
|
+
background-color: utils.palette($theme, "warn", 50);
|
|
54
|
+
color: utils.palette($theme, "warn", 600);
|
|
55
|
+
border-bottom: 1px solid utils.palette($theme, "warn", 600);
|
|
56
|
+
|
|
57
|
+
&:before {
|
|
58
|
+
content: "\e002";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&.mat-error {
|
|
62
|
+
background-color: utils.palette($theme, "error", 50);
|
|
63
|
+
color: utils.palette($theme, "error", 500);
|
|
64
|
+
border-bottom: 1px solid utils.palette($theme, "error", 500);
|
|
65
|
+
|
|
66
|
+
&:before {
|
|
67
|
+
content: "\e000";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BreakpointObserver,
|
|
3
|
+
Breakpoints,
|
|
4
|
+
BreakpointState,
|
|
5
|
+
} from '@angular/cdk/layout';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import {
|
|
8
|
+
Component,
|
|
9
|
+
EventEmitter,
|
|
10
|
+
HostBinding,
|
|
11
|
+
Input,
|
|
12
|
+
OnDestroy,
|
|
13
|
+
Output,
|
|
14
|
+
} from '@angular/core';
|
|
15
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
17
|
+
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
18
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
19
|
+
|
|
20
|
+
@Component({
|
|
21
|
+
selector: 'onemrva-mat-notification',
|
|
22
|
+
templateUrl: 'onemrva-mat-notification.component.html',
|
|
23
|
+
standalone: true,
|
|
24
|
+
imports: [CommonModule, TranslateModule, MatIconModule],
|
|
25
|
+
})
|
|
26
|
+
export class OnemrvaMatNotificationComponent implements OnDestroy {
|
|
27
|
+
@Input() message: string = 'Missing message';
|
|
28
|
+
@Input() closable: boolean = true;
|
|
29
|
+
|
|
30
|
+
_isOpen = true;
|
|
31
|
+
|
|
32
|
+
@Output()
|
|
33
|
+
notificationClose: EventEmitter<void> = new EventEmitter();
|
|
34
|
+
|
|
35
|
+
/** @hidden @internal */
|
|
36
|
+
@HostBinding('class.collapse-notification')
|
|
37
|
+
public get _closed(): boolean {
|
|
38
|
+
return !this._isOpen;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@HostBinding('attr.id')
|
|
42
|
+
@Input()
|
|
43
|
+
public id = `onemrva-mat-notification`;
|
|
44
|
+
|
|
45
|
+
@HostBinding('attr.data-cy')
|
|
46
|
+
@Input()
|
|
47
|
+
dataCy: string = 'onemrva-mat-notification';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Returns the `aria-label` attribute of the component.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```typescript
|
|
54
|
+
* let ariaLabel = this.avatar.ariaLabel;
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
@HostBinding('attr.aria-live')
|
|
59
|
+
public ariaLive = 'assertive';
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Returns the `role` attribute of the component.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* let avatarRole = this.avatar.role;
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
@HostBinding('attr.role')
|
|
70
|
+
public role = 'alert';
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @hidden
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
private _color: OnemrvaMatColor = OnemrvaMatColor.INFO;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Returns the color of the avatar.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```typescript
|
|
83
|
+
* let avatarSize = this.avatar.size;
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
@Input()
|
|
87
|
+
public get color(): OnemrvaMatColor {
|
|
88
|
+
return this._color;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Sets the component color.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```html
|
|
96
|
+
* <onemrva-mat-notification color="primary"></onemrva-mat-notification>
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
public set color(value: OnemrvaMatColor) {
|
|
100
|
+
switch (value) {
|
|
101
|
+
case OnemrvaMatColor.SUCCESS:
|
|
102
|
+
case OnemrvaMatColor.WARN:
|
|
103
|
+
case OnemrvaMatColor.INFO:
|
|
104
|
+
case OnemrvaMatColor.ERROR:
|
|
105
|
+
this._color = value;
|
|
106
|
+
break;
|
|
107
|
+
default:
|
|
108
|
+
this._color = OnemrvaMatColor.INFO;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @hidden @internal */
|
|
113
|
+
@HostBinding('class.mat-error')
|
|
114
|
+
public get _isError(): boolean {
|
|
115
|
+
return this.color === OnemrvaMatColor.ERROR;
|
|
116
|
+
}
|
|
117
|
+
/** @hidden @internal */
|
|
118
|
+
@HostBinding('class.mat-warn')
|
|
119
|
+
public get _isWarn(): boolean {
|
|
120
|
+
return this.color === OnemrvaMatColor.WARN;
|
|
121
|
+
}
|
|
122
|
+
/** @hidden @internal */
|
|
123
|
+
@HostBinding('class.mat-success')
|
|
124
|
+
public get _isSuccess(): boolean {
|
|
125
|
+
return this.color === OnemrvaMatColor.SUCCESS;
|
|
126
|
+
}
|
|
127
|
+
/** @hidden @internal */
|
|
128
|
+
@HostBinding('class.mat-info')
|
|
129
|
+
public get _isInfo(): boolean {
|
|
130
|
+
return this.color === OnemrvaMatColor.INFO;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
private destroyNotifier$: Subject<void> = new Subject();
|
|
134
|
+
isSmall = false;
|
|
135
|
+
|
|
136
|
+
constructor(public breakpointObserver: BreakpointObserver) {
|
|
137
|
+
this.breakpointObserver
|
|
138
|
+
.observe([Breakpoints.XSmall, Breakpoints.Small])
|
|
139
|
+
.pipe(takeUntil(this.destroyNotifier$))
|
|
140
|
+
.subscribe((state: BreakpointState) => {
|
|
141
|
+
if (state.matches) {
|
|
142
|
+
this.isSmall = true;
|
|
143
|
+
} else {
|
|
144
|
+
this.isSmall = false;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
ngOnDestroy(): void {
|
|
150
|
+
this.destroyNotifier$.next();
|
|
151
|
+
this.destroyNotifier$.complete();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
closeNotification() {
|
|
155
|
+
this._isOpen = false;
|
|
156
|
+
this.notificationClose.emit();
|
|
157
|
+
}
|
|
158
|
+
}
|
package/projects/onemrva/design-system/mat-paginator/src/_onemrva-mat-paginator.component.scss
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@use "../../utils" as utils;
|
|
2
|
+
|
|
3
|
+
@mixin paginator($theme) {
|
|
4
|
+
onemrva-mat-paginator {
|
|
5
|
+
// Get the primary color palette from the color-config.
|
|
6
|
+
$primary: utils.palette($theme, "primary");
|
|
7
|
+
$dark-primary: utils.palette(
|
|
8
|
+
$theme,
|
|
9
|
+
"primary",
|
|
10
|
+
700
|
|
11
|
+
); // HWKTODO accent instead?
|
|
12
|
+
|
|
13
|
+
$gradient: utils.gradient($theme);
|
|
14
|
+
$accent: utils.palette($theme, "accent");
|
|
15
|
+
$dark-accent: utils.palette($theme, "accent", 700);
|
|
16
|
+
|
|
17
|
+
$disabled: utils.palette($theme, "grayscale");
|
|
18
|
+
|
|
19
|
+
$field-divider: utils.palette($theme, "grayscale", 700);
|
|
20
|
+
$divider: utils.palette($theme, "grayscale", 900, 0.12);
|
|
21
|
+
|
|
22
|
+
.onemrva-mat-paginator {
|
|
23
|
+
display: flex;
|
|
24
|
+
|
|
25
|
+
button {
|
|
26
|
+
background-color: white;
|
|
27
|
+
padding: 8px 0;
|
|
28
|
+
text-align: center;
|
|
29
|
+
border: 1px solid $divider;
|
|
30
|
+
border-right: none;
|
|
31
|
+
color: $primary;
|
|
32
|
+
transition: all 200ms;
|
|
33
|
+
line-height: 20px;
|
|
34
|
+
width: 36px;
|
|
35
|
+
|
|
36
|
+
&:disabled {
|
|
37
|
+
color: $disabled;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.onemrva-mat-paginator-btn {
|
|
41
|
+
font-family: "Poppins";
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:first-child {
|
|
46
|
+
border-radius: 18px 0 0 18px;
|
|
47
|
+
width: initial;
|
|
48
|
+
padding: 8px 16px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:last-child {
|
|
52
|
+
border-radius: 0 18px 18px 0;
|
|
53
|
+
border-right: 1px solid $divider;
|
|
54
|
+
width: initial;
|
|
55
|
+
padding: 8px 16px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover:not(:disabled):not(.onemrva-mat-paginator-current-index) {
|
|
59
|
+
background: $gradient;
|
|
60
|
+
color: white;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.onemrva-mat-paginator-current-index {
|
|
65
|
+
background: $gradient;
|
|
66
|
+
color: white;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.paginator-container {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: baseline;
|
|
75
|
+
|
|
76
|
+
.paginator-size-selector-container {
|
|
77
|
+
flex: 1 0 200px;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: baseline;
|
|
80
|
+
justify-content: flex-start;
|
|
81
|
+
gap: 16px;
|
|
82
|
+
|
|
83
|
+
mat-divider {
|
|
84
|
+
display: inline-block;
|
|
85
|
+
vertical-align: middle;
|
|
86
|
+
margin: 0 8px;
|
|
87
|
+
height: 24px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.paginator-size-selector {
|
|
91
|
+
.mat-mdc-select-arrow-wrapper {
|
|
92
|
+
transform: translateY(8%);
|
|
93
|
+
|
|
94
|
+
.mat-mdc-select-arrow {
|
|
95
|
+
color: utils.palette($theme, "primary");
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.mdc-notched-outline {
|
|
100
|
+
border: 1px solid utils.palette($theme, "grayscale", 200);
|
|
101
|
+
border-radius: 500px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mdc-notched-outline__leading,
|
|
105
|
+
.mdc-notched-outline__trailing,
|
|
106
|
+
.mdc-notched-outline__notch {
|
|
107
|
+
border: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.mat-mdc-text-field-wrapper {
|
|
111
|
+
height: 38px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.mat-mdc-form-field-infix {
|
|
115
|
+
padding: 4px 0 0;
|
|
116
|
+
width: 40px;
|
|
117
|
+
height: 18px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<div class="paginator-container">
|
|
2
|
+
<div class="paginator-size-selector-container" *ngIf="pageSizeSelector">
|
|
3
|
+
<mat-form-field
|
|
4
|
+
appearance="outline"
|
|
5
|
+
class="paginator-size-selector"
|
|
6
|
+
data-cy="onemrva-mat-paginator-page-size-selector"
|
|
7
|
+
>
|
|
8
|
+
<mat-select [value]="pageSizeDefaultOption">
|
|
9
|
+
<mat-option
|
|
10
|
+
*ngFor="let size of pageSizeOptions"
|
|
11
|
+
[value]="size"
|
|
12
|
+
(click)="pageSize = size"
|
|
13
|
+
[attr.data-cy]="'onemrva-mat-paginator-page-size-option-' + size"
|
|
14
|
+
>{{ size }}</mat-option
|
|
15
|
+
>
|
|
16
|
+
</mat-select>
|
|
17
|
+
</mat-form-field>
|
|
18
|
+
<div>
|
|
19
|
+
<span style="display: inline-block">{{
|
|
20
|
+
"paginator." + recordKey | translate
|
|
21
|
+
}}</span>
|
|
22
|
+
<mat-divider vertical></mat-divider>
|
|
23
|
+
|
|
24
|
+
{{ pageIndex * pageSize + 1 }} - {{ maxRecordNumber }}
|
|
25
|
+
<span>{{ "paginator.outOf" | translate }}</span>
|
|
26
|
+
{{ length }}
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="onemrva-mat-paginator" data-cy="onemrva-mat-paginator">
|
|
31
|
+
<button
|
|
32
|
+
type="button"
|
|
33
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-previous"
|
|
34
|
+
data-cy="onemrva-mat-paginator-btn-previous"
|
|
35
|
+
[disabled]="pageIndex === 0"
|
|
36
|
+
(click)="pageIndex = pageIndex - 1"
|
|
37
|
+
>
|
|
38
|
+
{{ "paginator." + previousKey | translate }}
|
|
39
|
+
</button>
|
|
40
|
+
|
|
41
|
+
<button
|
|
42
|
+
type="button"
|
|
43
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-first"
|
|
44
|
+
data-cy="onemrva-mat-paginator-first"
|
|
45
|
+
*ngIf="pages[0] > 0 && type === 'complex'"
|
|
46
|
+
(click)="pageIndex = 0"
|
|
47
|
+
>
|
|
48
|
+
1
|
|
49
|
+
</button>
|
|
50
|
+
|
|
51
|
+
<button
|
|
52
|
+
type="button"
|
|
53
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-too-many"
|
|
54
|
+
data-cy="onemrva-mat-paginator-btn-too-many-before"
|
|
55
|
+
*ngIf="pages[0] > 0"
|
|
56
|
+
(click)="pageIndex = pageIndex - numberOfReachablePages"
|
|
57
|
+
>
|
|
58
|
+
...
|
|
59
|
+
</button>
|
|
60
|
+
|
|
61
|
+
<button
|
|
62
|
+
type="button"
|
|
63
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-page"
|
|
64
|
+
[ngClass]="{ 'onemrva-mat-paginator-current-index': pageIndex === page }"
|
|
65
|
+
data-cy="onemrva-mat-paginator-btn-page"
|
|
66
|
+
*ngFor="let page of pages"
|
|
67
|
+
(click)="pageIndex = page"
|
|
68
|
+
>
|
|
69
|
+
{{ page + 1 }}
|
|
70
|
+
</button>
|
|
71
|
+
|
|
72
|
+
<button
|
|
73
|
+
type="button"
|
|
74
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-too-many"
|
|
75
|
+
data-cy="onemrva-mat-paginator-btn-too-many-after"
|
|
76
|
+
*ngIf="pages[pages.length - 1] < totalNumberOfPages - 1"
|
|
77
|
+
(click)="pageIndex = pageIndex + numberOfReachablePages"
|
|
78
|
+
>
|
|
79
|
+
...
|
|
80
|
+
</button>
|
|
81
|
+
|
|
82
|
+
<button
|
|
83
|
+
type="button"
|
|
84
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-last"
|
|
85
|
+
data-cy="onemrva-mat-paginator-btn-last"
|
|
86
|
+
*ngIf="
|
|
87
|
+
pages[pages.length - 1] < totalNumberOfPages - 1 && type === 'complex'
|
|
88
|
+
"
|
|
89
|
+
(click)="pageIndex = totalNumberOfPages - 1"
|
|
90
|
+
>
|
|
91
|
+
{{ totalNumberOfPages }}
|
|
92
|
+
</button>
|
|
93
|
+
|
|
94
|
+
<button
|
|
95
|
+
type="button"
|
|
96
|
+
class="onemrva-mat-paginator-btn onemrva-mat-paginator-btn-next"
|
|
97
|
+
data-cy="onemrva-mat-paginator-btn-next"
|
|
98
|
+
[disabled]="pageIndex >= totalNumberOfPages - 1"
|
|
99
|
+
(click)="pageIndex = pageIndex + 1"
|
|
100
|
+
>
|
|
101
|
+
{{ "paginator." + nextKey | translate }}
|
|
102
|
+
</button>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|