@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,13 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { OnemrvaMatPopOverModule } from '../../../../../onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-demo-pop-over',
|
|
8
|
+
standalone: true,
|
|
9
|
+
imports: [CommonModule, OnemrvaMatPopOverModule],
|
|
10
|
+
styleUrls: ['./demo-pop-over.component.scss'],
|
|
11
|
+
templateUrl: 'demo-pop-over.component.html',
|
|
12
|
+
})
|
|
13
|
+
export class DemoPopOverComponent {}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install --save @onemrvapublic/theme
|
|
5
|
+
npm install --save @onemrvapublic/design-system
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
In style.scss:
|
|
9
|
+
|
|
10
|
+
```scss
|
|
11
|
+
@use "@onemrvapublic/theme" as theme;
|
|
12
|
+
@use "@onemrvapublic/design-system" as onemrvaMat;
|
|
13
|
+
|
|
14
|
+
@include theme.reset();
|
|
15
|
+
|
|
16
|
+
.onemrva-theme {
|
|
17
|
+
@include theme.onemrva();
|
|
18
|
+
@include popOver.panel(theme.$onemrva-theme);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Changelog
|
|
23
|
+
|
|
24
|
+
## 15.0.15
|
|
25
|
+
|
|
26
|
+
Initial version
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<mat-form-field class="mb-l">
|
|
2
|
+
<mat-label>Progress value</mat-label>
|
|
3
|
+
<input matInput [formControl]="progressState" type="number" />
|
|
4
|
+
<mat-error>The input number must be an integer between 0 and 100</mat-error>
|
|
5
|
+
</mat-form-field>
|
|
6
|
+
|
|
7
|
+
<br />
|
|
8
|
+
|
|
9
|
+
Default label$:
|
|
10
|
+
<onemrva-mat-progress-bar [value$]="value$"></onemrva-mat-progress-bar>
|
|
11
|
+
|
|
12
|
+
<br />
|
|
13
|
+
<br />
|
|
14
|
+
|
|
15
|
+
Custom label$:
|
|
16
|
+
<onemrva-mat-progress-bar
|
|
17
|
+
[label$]="label$"
|
|
18
|
+
[value$]="value$"
|
|
19
|
+
></onemrva-mat-progress-bar>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
import { FormControl, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
4
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
+
import { MatInputModule } from '@angular/material/input';
|
|
6
|
+
|
|
7
|
+
import { OnemrvaMatProgressBarComponent } from '../../../../../onemrva/design-system/mat-progress-bar';
|
|
8
|
+
import { map, Observable, startWith } from 'rxjs';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'app-demo-progress-bar',
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [
|
|
14
|
+
CommonModule,
|
|
15
|
+
ReactiveFormsModule,
|
|
16
|
+
MatFormFieldModule,
|
|
17
|
+
OnemrvaMatProgressBarComponent,
|
|
18
|
+
MatInputModule,
|
|
19
|
+
],
|
|
20
|
+
templateUrl: 'demo-progress-bar.component.html',
|
|
21
|
+
})
|
|
22
|
+
export class DemoProgressBarComponent {
|
|
23
|
+
progressState: FormControl = new FormControl(0, [
|
|
24
|
+
Validators.pattern('^([0-9]|[1-9][0-9]|100)$'),
|
|
25
|
+
]);
|
|
26
|
+
|
|
27
|
+
value$: Observable<number> = this.progressState.valueChanges.pipe(
|
|
28
|
+
startWith(0)
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
label$ = this.value$.pipe(
|
|
32
|
+
startWith(0),
|
|
33
|
+
map((v) => (v < 0 ? '0 pct.' : v > 100 ? '100 pct.' : v + ' pct.'))
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { OnemrvaMenu } from '../../../../../onemrva/design-system/mat-side-menu';
|
|
4
|
+
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
import { OnemrvaMatSideMenuModule } from '../../../../../onemrva/design-system/mat-side-menu';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: 'app-demo-side-menu',
|
|
10
|
+
standalone: true,
|
|
11
|
+
imports: [CommonModule, OnemrvaMatSideMenuModule],
|
|
12
|
+
templateUrl: './demo-side-menu.component.html',
|
|
13
|
+
})
|
|
14
|
+
export class DemoSideMenuComponent {
|
|
15
|
+
menuHeaderKey: string = 'Side Menu';
|
|
16
|
+
menus: OnemrvaMenu[] = [
|
|
17
|
+
{
|
|
18
|
+
wordingKey: 'demoSideMenu.key1',
|
|
19
|
+
path: '/north',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
wordingKey: 'demoSideMenu.key2',
|
|
23
|
+
path: '/south',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
currentMenu?: string;
|
|
27
|
+
|
|
28
|
+
constructor(public router: Router) {}
|
|
29
|
+
|
|
30
|
+
selectOption(menu: OnemrvaMenu) {
|
|
31
|
+
alert(menu.path);
|
|
32
|
+
//this.router.navigate([menu.path]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install --save @onemrvapublic/theme
|
|
5
|
+
npm install --save @onemrvapublic/design-system
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
In style.scss:
|
|
9
|
+
|
|
10
|
+
```scss
|
|
11
|
+
@use '@onemrvapublic/theme' as theme;
|
|
12
|
+
@use '@onemrvapublic/design-system' as onemrvaMat;
|
|
13
|
+
|
|
14
|
+
@include theme.reset();
|
|
15
|
+
|
|
16
|
+
.onemrva-theme {
|
|
17
|
+
@include theme.onemrva();
|
|
18
|
+
@include onemrvaMat.side-menu(theme.$onemrva-theme);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Changelog
|
|
23
|
+
|
|
24
|
+
## 14.1.558
|
|
25
|
+
|
|
26
|
+
Migration to @onemrvapublic/design-system library
|
|
27
|
+
|
|
28
|
+
## 14.1.466
|
|
29
|
+
|
|
30
|
+
Compliant version with DS4
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<onemrva-mat-panel>
|
|
2
|
+
<onemrva-mat-panel-content>
|
|
3
|
+
<div class="row">
|
|
4
|
+
<div class="col-2">
|
|
5
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" type="circle" size="extralarge">
|
|
6
|
+
</onemrva-mat-skeleton>
|
|
7
|
+
<onemrva-mat-avatar *ngIf="contentLoaded" size="extralarge" initials="TS">
|
|
8
|
+
|
|
9
|
+
</onemrva-mat-avatar>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="col-auto">
|
|
12
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" type="h2"></onemrva-mat-skeleton>
|
|
13
|
+
<h2 *ngIf="contentLoaded">This is a loaded title</h2>
|
|
14
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" type="h4" ></onemrva-mat-skeleton>
|
|
15
|
+
<h4 *ngIf="contentLoaded">This is a loaded subtitle</h4>
|
|
16
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" ></onemrva-mat-skeleton>
|
|
17
|
+
<p *ngIf="contentLoaded">This is a loaded text</p>
|
|
18
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" ></onemrva-mat-skeleton>
|
|
19
|
+
<p *ngIf="contentLoaded">This is another loaded text</p>
|
|
20
|
+
<onemrva-mat-skeleton *ngIf="!contentLoaded" type="button" class="float-right"></onemrva-mat-skeleton>
|
|
21
|
+
<button *ngIf="contentLoaded" mat-flat-button color="accent" class="float-right">Click me</button>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</onemrva-mat-panel-content>
|
|
25
|
+
</onemrva-mat-panel>
|
|
26
|
+
<br/>
|
|
27
|
+
<br/>
|
|
28
|
+
<div class="row">
|
|
29
|
+
<div class="col-auto" style="padding-top: 100px;">
|
|
30
|
+
<onemrva-mat-skeleton class="float-right" [theme]="{ 'transform': 'rotate(40deg)', width: '200px' }">
|
|
31
|
+
</onemrva-mat-skeleton>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="col-2 text-center">
|
|
34
|
+
<onemrva-mat-skeleton type="circle" size="extralarge">
|
|
35
|
+
</onemrva-mat-skeleton>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col-auto" style="padding-top: 100px;">
|
|
38
|
+
<onemrva-mat-skeleton [theme]="{ 'transform': 'rotate(-40deg)', width: '200px' }">
|
|
39
|
+
</onemrva-mat-skeleton>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="row gc-small">
|
|
43
|
+
<div class="col-auto">
|
|
44
|
+
</div>
|
|
45
|
+
<div class="col-1">
|
|
46
|
+
<onemrva-mat-skeleton [count]="3">
|
|
47
|
+
</onemrva-mat-skeleton>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="col-1">
|
|
50
|
+
<onemrva-mat-skeleton [count]="3">
|
|
51
|
+
</onemrva-mat-skeleton>
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-auto">
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row" *ngFor="let number of [0,1]">
|
|
57
|
+
<div class="col-auto">
|
|
58
|
+
</div>
|
|
59
|
+
<div class="col-2 text-center">
|
|
60
|
+
<onemrva-mat-skeleton type="circle" size="extrasmall">
|
|
61
|
+
</onemrva-mat-skeleton>
|
|
62
|
+
</div>
|
|
63
|
+
<div class="col-auto">
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="row gc-small">
|
|
67
|
+
<div class="col-auto">
|
|
68
|
+
</div>
|
|
69
|
+
<div class="col-1">
|
|
70
|
+
<onemrva-mat-skeleton type="square" size="medium" class="float-right">
|
|
71
|
+
</onemrva-mat-skeleton>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-1">
|
|
74
|
+
<onemrva-mat-skeleton type="square" size="medium">
|
|
75
|
+
</onemrva-mat-skeleton>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="col-auto">
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="row">
|
|
81
|
+
<div class="col-12"> </div>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="row">
|
|
84
|
+
<div class="col-12"> </div>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="row">
|
|
87
|
+
<div class="col-12"> </div>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="row gc-small">
|
|
90
|
+
<div class="col-auto">
|
|
91
|
+
</div>
|
|
92
|
+
<div class="col-1">
|
|
93
|
+
<onemrva-mat-skeleton [theme]="{ 'transform': 'rotate(-60deg)', width: '200px' }" class="float-right">
|
|
94
|
+
</onemrva-mat-skeleton>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="col-1">
|
|
97
|
+
<onemrva-mat-skeleton [theme]="{ 'transform': 'rotate(60deg)', width: '200px' }">
|
|
98
|
+
</onemrva-mat-skeleton>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="col-auto">
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
<br/>
|
|
104
|
+
<br/>
|
|
105
|
+
<br/>
|
|
106
|
+
<br/>
|
|
107
|
+
<h3>Skeleton using custom (SVG for example)</h3>
|
|
108
|
+
|
|
109
|
+
<div class="item">
|
|
110
|
+
<div style="width: 50%">
|
|
111
|
+
<onemrva-mat-skeleton type="custom">
|
|
112
|
+
<svg viewBox="0 0 312 103" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
113
|
+
<rect width="312" height="102" fill="white"/>
|
|
114
|
+
<path d="M14 49.5338C5.2 43.5338 1 47.3671 0 50.0338V102.034H312V44.5338C312 35.7338 303.667 37.8671 299.5 40.0338C292.167 44.5338 276.3 54.4338 271.5 58.0338C266.7 61.6338 261.833 62.2005 260 62.0338H248C243.2 62.0338 240 60.7005 239 60.0338C237.833 59.2005 233.5 56.0338 225.5 50.0338C217.5 44.0338 210.167 47.2004 207.5 49.5338C204.833 51.8671 197.6 58.0338 190 64.0338C182.4 70.0338 176.833 65.2005 175 62.0338C168.167 48.3671 153.5 19.3338 149.5 12.5338C144.7 6.13377 138.5 9.8671 136 12.5338C130.667 18.3671 118.8 31.3338 114 36.5338C109.2 41.7338 102.667 42.3671 100 42.0338H76C66.5 42.0338 48 56.5338 42 59.0338C37.2 61.0338 32.3333 59.8671 30.5 59.0338C28.6667 58.3671 22.8 55.5338 14 49.5338Z" fill="#EFEFEF"/>
|
|
115
|
+
<path d="M14 49.5338C5.2 43.5338 1 47.3671 0 50.0338V102.034H312V44.5338C312 35.7338 303.667 37.8671 299.5 40.0338C292.167 44.5338 276.3 54.4338 271.5 58.0338C266.7 61.6338 261.833 62.2005 260 62.0338H248C243.2 62.0338 240 60.7005 239 60.0338C237.833 59.2005 233.5 56.0338 225.5 50.0338C217.5 44.0338 210.167 47.2004 207.5 49.5338C204.833 51.8671 197.6 58.0338 190 64.0338C182.4 70.0338 176.833 65.2005 175 62.0338C168.167 48.3671 153.5 19.3338 149.5 12.5338C144.7 6.13377 138.5 9.8671 136 12.5338C130.667 18.3671 118.8 31.3338 114 36.5338C109.2 41.7338 102.667 42.3671 100 42.0338H76C66.5 42.0338 48 56.5338 42 59.0338C37.2 61.0338 32.3333 59.8671 30.5 59.0338C28.6667 58.3671 22.8 55.5338 14 49.5338Z" fill="black" fill-opacity="0.1"/>
|
|
116
|
+
</svg>
|
|
117
|
+
</onemrva-mat-skeleton>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import {
|
|
5
|
+
OnemrvaMatSkeletonAnimations,
|
|
6
|
+
OnemrvaMatSkeletonModule
|
|
7
|
+
} from "../../../../../onemrva/design-system/mat-skeleton";
|
|
8
|
+
import {MatButtonModule} from "@angular/material/button";
|
|
9
|
+
import {OnemrvaMatPanelModule} from "../../../../../onemrva/design-system/mat-panel";
|
|
10
|
+
import {OnemrvaMatAvatarModule} from "../../../../../onemrva/design-system/mat-avatar";
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'app-demo-avatar',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, OnemrvaMatSkeletonModule, MatButtonModule, OnemrvaMatPanelModule, OnemrvaMatAvatarModule],
|
|
16
|
+
templateUrl: 'demo-skeleton.component.html',
|
|
17
|
+
styleUrls: ['demo-skeleton.component.scss'],
|
|
18
|
+
})
|
|
19
|
+
export class DemoSkeletonComponent {
|
|
20
|
+
contentLoaded = false;
|
|
21
|
+
|
|
22
|
+
intervalId: number | null = null;
|
|
23
|
+
|
|
24
|
+
ngOnInit() {
|
|
25
|
+
setTimeout(() => {
|
|
26
|
+
this.contentLoaded = true;
|
|
27
|
+
}, 3000);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
ngOnDestroy() {
|
|
31
|
+
if (this.intervalId) {
|
|
32
|
+
clearInterval(this.intervalId);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<onemrva-mat-spinner> </onemrva-mat-spinner>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { OnemrvaMatSpinnerModule } from '../../../../../onemrva/design-system/mat-spinner';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-demo-spinner',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [OnemrvaMatSpinnerModule],
|
|
8
|
+
templateUrl: 'demo-spinner.component.html',
|
|
9
|
+
})
|
|
10
|
+
export class DemoSpinnerComponent {}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install --save @onemrvapublic/theme
|
|
5
|
+
npm install --save @onemrvapublic/design-system
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
In style.scss:
|
|
9
|
+
|
|
10
|
+
```scss
|
|
11
|
+
@use "@onemrvapublic/theme" as theme;
|
|
12
|
+
@use "@onemrvapublic/design-system" as onemrvaMat;
|
|
13
|
+
|
|
14
|
+
@include theme.reset();
|
|
15
|
+
|
|
16
|
+
.onemrva-theme {
|
|
17
|
+
@include theme.onemrva();
|
|
18
|
+
@include onemrvaMat.spinner(theme.$onemrva-theme);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
# Changelog
|
|
23
|
+
|
|
24
|
+
## 15.0.XXX
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
<onemrva-mat-vertical-stepper
|
|
2
|
+
[linear]="linear"
|
|
3
|
+
#stepper3
|
|
4
|
+
animationDuration="2000"
|
|
5
|
+
(selectionChange)="selectionChanged($event)"
|
|
6
|
+
>
|
|
7
|
+
<mat-step [stepControl]="firstFormGroup" aria-label="Fill out your name">
|
|
8
|
+
<ng-template matStepLabel>Fill out your name</ng-template>
|
|
9
|
+
<div class="mat-step-summary">
|
|
10
|
+
{{ firstFormGroup.controls.firstCtrl.value }}
|
|
11
|
+
</div>
|
|
12
|
+
<div class="mat-step-form">
|
|
13
|
+
<form [formGroup]="firstFormGroup">
|
|
14
|
+
<mat-form-field>
|
|
15
|
+
<input
|
|
16
|
+
matInput
|
|
17
|
+
placeholder="Last name, First name"
|
|
18
|
+
formControlName="firstCtrl"
|
|
19
|
+
required
|
|
20
|
+
/>
|
|
21
|
+
</mat-form-field>
|
|
22
|
+
<div style="margin-top: 8px">
|
|
23
|
+
<button
|
|
24
|
+
mat-flat-button
|
|
25
|
+
color="accent"
|
|
26
|
+
matStepperNext
|
|
27
|
+
[disabled]="linear && !firstFormGroup.valid"
|
|
28
|
+
>
|
|
29
|
+
Next
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
</form>
|
|
33
|
+
</div>
|
|
34
|
+
</mat-step>
|
|
35
|
+
<mat-step [stepControl]="secondFormGroup" aria-label="Fill out your address">
|
|
36
|
+
<ng-template matStepLabel>Fill out your address</ng-template>
|
|
37
|
+
|
|
38
|
+
<div class="mat-step-summary">
|
|
39
|
+
{{ secondFormGroup.controls.secondCtrl.value }}
|
|
40
|
+
</div>
|
|
41
|
+
<div class="mat-step-form">
|
|
42
|
+
<form [formGroup]="secondFormGroup">
|
|
43
|
+
<mat-form-field>
|
|
44
|
+
<input
|
|
45
|
+
matInput
|
|
46
|
+
placeholder="Address"
|
|
47
|
+
formControlName="secondCtrl"
|
|
48
|
+
required
|
|
49
|
+
/>
|
|
50
|
+
</mat-form-field>
|
|
51
|
+
<div style="margin-top: 8px">
|
|
52
|
+
<button mat-button color="primary" matStepperPrevious>Back</button>
|
|
53
|
+
<button
|
|
54
|
+
mat-flat-button
|
|
55
|
+
color="accent"
|
|
56
|
+
matStepperNext
|
|
57
|
+
[disabled]="linear && !secondFormGroup.valid"
|
|
58
|
+
>
|
|
59
|
+
Next
|
|
60
|
+
</button>
|
|
61
|
+
</div>
|
|
62
|
+
</form>
|
|
63
|
+
</div>
|
|
64
|
+
</mat-step>
|
|
65
|
+
<mat-step
|
|
66
|
+
[stepControl]="thirdFormGroup"
|
|
67
|
+
aria-label="Fill out your phone number"
|
|
68
|
+
>
|
|
69
|
+
<ng-template matStepLabel>Fill out your phone number</ng-template>
|
|
70
|
+
|
|
71
|
+
<div class="mat-step-summary">
|
|
72
|
+
{{ thirdFormGroup.controls.thirdCtrl.value }}
|
|
73
|
+
</div>
|
|
74
|
+
<div class="mat-step-form">
|
|
75
|
+
<form [formGroup]="thirdFormGroup">
|
|
76
|
+
<mat-form-field>
|
|
77
|
+
<input
|
|
78
|
+
matInput
|
|
79
|
+
placeholder="Address"
|
|
80
|
+
formControlName="thirdCtrl"
|
|
81
|
+
required
|
|
82
|
+
/>
|
|
83
|
+
</mat-form-field>
|
|
84
|
+
<div>
|
|
85
|
+
<button mat-button color="primary" matStepperPrevious>Back</button>
|
|
86
|
+
<button
|
|
87
|
+
mat-flat-button
|
|
88
|
+
color="accent"
|
|
89
|
+
matStepperNext
|
|
90
|
+
[disabled]="linear && !thirdFormGroup.valid"
|
|
91
|
+
>
|
|
92
|
+
Next
|
|
93
|
+
</button>
|
|
94
|
+
</div>
|
|
95
|
+
</form>
|
|
96
|
+
</div>
|
|
97
|
+
</mat-step>
|
|
98
|
+
<mat-step aria-label="Done">
|
|
99
|
+
<ng-template matStepLabel>Done</ng-template>
|
|
100
|
+
You are now done.
|
|
101
|
+
<div>
|
|
102
|
+
<button mat-button color="primary" matStepperPrevious>Back</button>
|
|
103
|
+
<button mat-button color="primary" (click)="stepper3.reset()">
|
|
104
|
+
Reset
|
|
105
|
+
</button>
|
|
106
|
+
</div>
|
|
107
|
+
</mat-step>
|
|
108
|
+
</onemrva-mat-vertical-stepper>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormBuilder, Validators } from '@angular/forms';
|
|
3
|
+
import {
|
|
4
|
+
STEPPER_GLOBAL_OPTIONS,
|
|
5
|
+
StepperSelectionEvent,
|
|
6
|
+
} from '@angular/cdk/stepper';
|
|
7
|
+
|
|
8
|
+
import { CommonModule } from '@angular/common';
|
|
9
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
10
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import { MatStepperModule } from '@angular/material/stepper';
|
|
12
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
13
|
+
import { MatInputModule } from '@angular/material/input';
|
|
14
|
+
import { OnemrvaMatStepperModule } from '../../../../../onemrva/design-system/mat-stepper';
|
|
15
|
+
|
|
16
|
+
@Component({
|
|
17
|
+
selector: 'app-demo-summary-stepper',
|
|
18
|
+
standalone: true,
|
|
19
|
+
imports: [
|
|
20
|
+
CommonModule,
|
|
21
|
+
ReactiveFormsModule,
|
|
22
|
+
MatButtonModule,
|
|
23
|
+
MatInputModule,
|
|
24
|
+
MatFormFieldModule,
|
|
25
|
+
MatStepperModule,
|
|
26
|
+
OnemrvaMatStepperModule,
|
|
27
|
+
],
|
|
28
|
+
templateUrl: './demo-summary-stepper.component.html',
|
|
29
|
+
styleUrls: ['./demo-summary-stepper.component.scss'],
|
|
30
|
+
providers: [
|
|
31
|
+
{
|
|
32
|
+
provide: STEPPER_GLOBAL_OPTIONS,
|
|
33
|
+
useValue: { showError: true, displayDefaultIndicatorType: false },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
})
|
|
37
|
+
export class DemoSummaryStepperComponent {
|
|
38
|
+
public linear: boolean = true;
|
|
39
|
+
|
|
40
|
+
firstFormGroup = this._formBuilder.group({
|
|
41
|
+
firstCtrl: ['', Validators.required],
|
|
42
|
+
});
|
|
43
|
+
secondFormGroup = this._formBuilder.group({
|
|
44
|
+
secondCtrl: ['', Validators.required],
|
|
45
|
+
});
|
|
46
|
+
thirdFormGroup = this._formBuilder.group({
|
|
47
|
+
thirdCtrl: ['', Validators.required],
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
selectionChanged($event: StepperSelectionEvent) {
|
|
51
|
+
console.log($event);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(private _formBuilder: FormBuilder) {}
|
|
55
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npm install --save @onemrvapublic/theme
|
|
5
|
+
npm install --save @onemrvapublic/design-system
|
|
6
|
+
```
|
|
7
|
+
In style.scss:
|
|
8
|
+
|
|
9
|
+
```scss
|
|
10
|
+
@use '@onemrvapublic/theme' as theme;
|
|
11
|
+
|
|
12
|
+
@include theme.reset();
|
|
13
|
+
|
|
14
|
+
.onemrva-theme {
|
|
15
|
+
@include theme.onemrva();
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
# Changelog
|
|
20
|
+
|
|
21
|
+
## 14.1.558
|
|
22
|
+
|
|
23
|
+
Migration to @onemrvapublic/design-system library
|
|
24
|
+
|
|
25
|
+
## 14.1.508
|
|
26
|
+
init
|