@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,248 @@
|
|
|
1
|
+
@use "../../../../utils";
|
|
2
|
+
|
|
3
|
+
@keyframes fade {
|
|
4
|
+
0% {
|
|
5
|
+
opacity: 1;
|
|
6
|
+
}
|
|
7
|
+
50% {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
100% {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
text-align: left;
|
|
13
|
+
width: auto;
|
|
14
|
+
margin-left: 4px;
|
|
15
|
+
vertical-align: top;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin fileUpload($theme) {
|
|
20
|
+
$spacer: map-get($theme, "spacer");
|
|
21
|
+
|
|
22
|
+
onemrva-mat-file-upload {
|
|
23
|
+
.mat-mdc-form-field-error {
|
|
24
|
+
&:before {
|
|
25
|
+
font-family: "Material Icons";
|
|
26
|
+
content: "\e000";
|
|
27
|
+
float: left;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-variation-settings: "FILL" 1;
|
|
30
|
+
margin-right: 8px;
|
|
31
|
+
vertical-align: baseline;
|
|
32
|
+
flex: 0 0 16px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
margin-bottom: 8px;
|
|
36
|
+
padding: 8px 1em;
|
|
37
|
+
background-color: #ffebe6;
|
|
38
|
+
border-bottom: 1px solid utils.palette($theme, "error");
|
|
39
|
+
color: utils.palette($theme, "error");
|
|
40
|
+
display: flex;
|
|
41
|
+
line-height: 1.125;
|
|
42
|
+
}
|
|
43
|
+
ul {
|
|
44
|
+
list-style: none;
|
|
45
|
+
margin-block-start: 0;
|
|
46
|
+
margin-block-end: 0;
|
|
47
|
+
margin-inline-start: 0px;
|
|
48
|
+
margin-inline-end: 0px;
|
|
49
|
+
padding-inline-start: 0px;
|
|
50
|
+
li {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.onemrva-mat-file-upload-drop-area {
|
|
57
|
+
mat-icon {
|
|
58
|
+
&.filled {
|
|
59
|
+
vertical-align: bottom;
|
|
60
|
+
font-variation-settings: "FILL" 1, "wght" 900, "GRAD" 0, "opsz" 48;
|
|
61
|
+
}
|
|
62
|
+
&.mat-error {
|
|
63
|
+
color: utils.palette($theme, "error", 500);
|
|
64
|
+
}
|
|
65
|
+
&.mat-success {
|
|
66
|
+
color: utils.palette($theme, "success", 500);
|
|
67
|
+
}
|
|
68
|
+
&.mat-warn {
|
|
69
|
+
color: utils.palette($theme, "warn", 500);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
padding: $spacer * 3;
|
|
73
|
+
text-align: left;
|
|
74
|
+
border: dashed 2px utils.palette($theme, "grayscale", 500);
|
|
75
|
+
|
|
76
|
+
&.fu-error {
|
|
77
|
+
border: dashed 2px utils.palette($theme, "error", 500);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
position: relative;
|
|
81
|
+
border-radius: 16px;
|
|
82
|
+
transition: background-color 0.3s ease-in-out, border 0.3s ease-in-out;
|
|
83
|
+
min-height: 120px;
|
|
84
|
+
mat-icon.onemrva-upload {
|
|
85
|
+
color: utils.palette($theme, "grayscale", 500);
|
|
86
|
+
width: 60px;
|
|
87
|
+
height: 40px;
|
|
88
|
+
line-height: 40px;
|
|
89
|
+
font-size: 64px;
|
|
90
|
+
}
|
|
91
|
+
input[type="file"] {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
.outer {
|
|
95
|
+
display: block;
|
|
96
|
+
width: 100%;
|
|
97
|
+
margin: 0;
|
|
98
|
+
}
|
|
99
|
+
.inner {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
width: 100%;
|
|
102
|
+
text-align: center;
|
|
103
|
+
line-height: 24px;
|
|
104
|
+
margin-bottom: $spacer;
|
|
105
|
+
&:nth-child(1) {
|
|
106
|
+
margin-bottom: 16px;
|
|
107
|
+
}
|
|
108
|
+
&:nth-child(4) {
|
|
109
|
+
display: block;
|
|
110
|
+
color: utils.palette($theme, "grayscale", 500);
|
|
111
|
+
margin-bottom: 0;
|
|
112
|
+
}
|
|
113
|
+
label {
|
|
114
|
+
color: utils.palette($theme, "primary", 500);
|
|
115
|
+
text-decoration: underline;
|
|
116
|
+
font-weight: bold;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
&.filein {
|
|
121
|
+
.inner {
|
|
122
|
+
animation: fade 1s linear;
|
|
123
|
+
animation-fill-mode: forwards;
|
|
124
|
+
&:nth-child(1) {
|
|
125
|
+
margin-bottom: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
mat-icon {
|
|
129
|
+
width: 24px;
|
|
130
|
+
height: 24px;
|
|
131
|
+
line-height: 24px;
|
|
132
|
+
font-size: 24px;
|
|
133
|
+
}
|
|
134
|
+
&:nth-child(4) {
|
|
135
|
+
padding-left: 30px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
&.fileover {
|
|
140
|
+
background-color: utils.palette($theme, "primary", 50);
|
|
141
|
+
border: 2px dashed utils.palette($theme, "primary", 500);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.files-list {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-flow: row wrap;
|
|
147
|
+
gap: $spacer;
|
|
148
|
+
|
|
149
|
+
file-panel:first-child {
|
|
150
|
+
margin-top: 3 * $spacer;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
$panel-border-radius: 16px;
|
|
156
|
+
$panel-border-color: utils.palette($theme, "primary", 50);
|
|
157
|
+
$panel-padding: 16px;
|
|
158
|
+
|
|
159
|
+
.clickable {
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
file-panel {
|
|
164
|
+
// transition: all 0.5s ease-in-out;
|
|
165
|
+
|
|
166
|
+
border-radius: $panel-border-radius;
|
|
167
|
+
background-color: utils.palette($theme, "grayscale", 50);
|
|
168
|
+
padding: $panel-padding;
|
|
169
|
+
display: block;
|
|
170
|
+
|
|
171
|
+
.file-panel-content {
|
|
172
|
+
padding: 0;
|
|
173
|
+
p:last-child {
|
|
174
|
+
margin: 0;
|
|
175
|
+
}
|
|
176
|
+
.message {
|
|
177
|
+
color: utils.palette($theme, "grayscale", 900);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.file-panel-title {
|
|
181
|
+
font-family: "Poppins", sans-serif;
|
|
182
|
+
font-style: normal;
|
|
183
|
+
font-weight: 700;
|
|
184
|
+
font-size: 18px;
|
|
185
|
+
line-height: 27px;
|
|
186
|
+
margin-bottom: 0px;
|
|
187
|
+
.file-panel-title-action {
|
|
188
|
+
float: right;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
&.mat-primary {
|
|
192
|
+
border: none;
|
|
193
|
+
background: utils.palette($theme, "grayscale", 50);
|
|
194
|
+
|
|
195
|
+
.file-panel-title {
|
|
196
|
+
color: utils.palette($theme, "primary", 500);
|
|
197
|
+
}
|
|
198
|
+
.mat-progress-bar-fill::after {
|
|
199
|
+
background: utils.palette($theme, "primary", 500);
|
|
200
|
+
}
|
|
201
|
+
.mat-progress-bar-buffer {
|
|
202
|
+
background-color: utils.palette($theme, "primary", 100);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
&.mat-warn {
|
|
206
|
+
border: none;
|
|
207
|
+
background: utils.palette($theme, "warn", 50);
|
|
208
|
+
|
|
209
|
+
.file-panel-title {
|
|
210
|
+
color: utils.palette($theme, "warn", 500);
|
|
211
|
+
}
|
|
212
|
+
.mat-progress-bar-fill::after {
|
|
213
|
+
background: utils.palette($theme, "warn", 500);
|
|
214
|
+
}
|
|
215
|
+
.mat-progress-bar-buffer {
|
|
216
|
+
background-color: utils.palette($theme, "warn", 100);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
&.mat-success {
|
|
220
|
+
border: none;
|
|
221
|
+
background: utils.palette($theme, "success", 50);
|
|
222
|
+
|
|
223
|
+
.file-panel-title {
|
|
224
|
+
color: utils.palette($theme, "success", 500);
|
|
225
|
+
}
|
|
226
|
+
.mat-progress-bar-fill::after {
|
|
227
|
+
background: utils.palette($theme, "success", 500) !important;
|
|
228
|
+
}
|
|
229
|
+
.mat-progress-bar-buffer {
|
|
230
|
+
background-color: utils.palette($theme, "success", 100) !important;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
&.mat-error {
|
|
234
|
+
border: none;
|
|
235
|
+
background: utils.palette($theme, "error", 50);
|
|
236
|
+
|
|
237
|
+
.file-panel-title {
|
|
238
|
+
color: utils.palette($theme, "error", 500);
|
|
239
|
+
}
|
|
240
|
+
.mat-progress-bar-fill::after {
|
|
241
|
+
background: utils.palette($theme, "error", 500);
|
|
242
|
+
}
|
|
243
|
+
.mat-progress-bar-buffer {
|
|
244
|
+
background-color: utils.palette($theme, "error", 100);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
ElementRef,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
HostBinding,
|
|
6
|
+
Input,
|
|
7
|
+
OnInit,
|
|
8
|
+
TemplateRef,
|
|
9
|
+
ViewChild,
|
|
10
|
+
} from '@angular/core';
|
|
11
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
import { mimeTypes } from 'mime-wrapper';
|
|
14
|
+
import {
|
|
15
|
+
state,
|
|
16
|
+
keyframes,
|
|
17
|
+
style,
|
|
18
|
+
animate,
|
|
19
|
+
trigger,
|
|
20
|
+
transition,
|
|
21
|
+
} from '@angular/animations';
|
|
22
|
+
import {
|
|
23
|
+
formatBytes,
|
|
24
|
+
ProgressFile,
|
|
25
|
+
ReferencedProgressFile,
|
|
26
|
+
} from '../../models/progress-file.model';
|
|
27
|
+
import { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';
|
|
28
|
+
|
|
29
|
+
let NEXT_ID = 0;
|
|
30
|
+
|
|
31
|
+
@Component({
|
|
32
|
+
selector: 'onemrva-mat-file-upload',
|
|
33
|
+
templateUrl: 'onemrva-mat-file-upload.component.html',
|
|
34
|
+
animations: [
|
|
35
|
+
trigger('inOutAnimation', [
|
|
36
|
+
state('in', style({ opacity: 1 })),
|
|
37
|
+
transition(':enter', [
|
|
38
|
+
animate(
|
|
39
|
+
300,
|
|
40
|
+
keyframes([
|
|
41
|
+
style({ opacity: 0, offset: 0 }),
|
|
42
|
+
style({ opacity: 0.25, offset: 0.25 }),
|
|
43
|
+
style({ opacity: 0.5, offset: 0.5 }),
|
|
44
|
+
style({ opacity: 0.75, offset: 0.75 }),
|
|
45
|
+
style({ opacity: 1, offset: 1 }),
|
|
46
|
+
])
|
|
47
|
+
),
|
|
48
|
+
]),
|
|
49
|
+
transition(':leave', [
|
|
50
|
+
animate(
|
|
51
|
+
300,
|
|
52
|
+
keyframes([
|
|
53
|
+
style({ opacity: 1, offset: 0 }),
|
|
54
|
+
style({ opacity: 0.75, offset: 0.25 }),
|
|
55
|
+
style({ opacity: 0.5, offset: 0.5 }),
|
|
56
|
+
style({ opacity: 0.25, offset: 0.75 }),
|
|
57
|
+
style({ opacity: 0, offset: 1 }),
|
|
58
|
+
])
|
|
59
|
+
),
|
|
60
|
+
]),
|
|
61
|
+
]),
|
|
62
|
+
],
|
|
63
|
+
})
|
|
64
|
+
export class OnemrvaMatFileUploadComponent implements OnInit {
|
|
65
|
+
@Input()
|
|
66
|
+
accept: Array<string> = [];
|
|
67
|
+
acceptString = '';
|
|
68
|
+
|
|
69
|
+
@Input()
|
|
70
|
+
maxFileSize: number = 0;
|
|
71
|
+
|
|
72
|
+
@Input()
|
|
73
|
+
uploadOnDrop: boolean = true;
|
|
74
|
+
|
|
75
|
+
@Input()
|
|
76
|
+
initialFiles: ProgressFile[] = [];
|
|
77
|
+
|
|
78
|
+
@Input()
|
|
79
|
+
errorMessage: string = '';
|
|
80
|
+
|
|
81
|
+
fileUploadErrorMessage$: Observable<string>;
|
|
82
|
+
|
|
83
|
+
files$: Observable<ReferencedProgressFile[]>;
|
|
84
|
+
|
|
85
|
+
@Input() filePanelTemplate!: TemplateRef<any>;
|
|
86
|
+
|
|
87
|
+
retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `"onemrva-mat-multi-select-0"`.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```html
|
|
94
|
+
* <onemrva-mat-multi-select id="my-first-multi-select"></onemrva-mat-multi-select>
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
@HostBinding('attr.data-cy')
|
|
98
|
+
@Input()
|
|
99
|
+
public dataCy = `onemrva-mat-multi-select-${NEXT_ID++}`;
|
|
100
|
+
|
|
101
|
+
@ViewChild(`fileDropRef`)
|
|
102
|
+
fileDropRef!: ElementRef;
|
|
103
|
+
|
|
104
|
+
inputId = `fileDropRef-${NEXT_ID}`;
|
|
105
|
+
maxFileSizeFormatted: string = '';
|
|
106
|
+
|
|
107
|
+
constructor(
|
|
108
|
+
public dialog: MatDialog,
|
|
109
|
+
private fileUploadStore: OnemrvaMatFileUploadStore
|
|
110
|
+
) {
|
|
111
|
+
this.files$ = fileUploadStore.files$;
|
|
112
|
+
|
|
113
|
+
this.fileUploadErrorMessage$ = this.fileUploadStore.fileUploadError$;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
ngOnInit(): void {
|
|
117
|
+
if (this.accept.length > 0) {
|
|
118
|
+
this.acceptString = this.accept
|
|
119
|
+
.map((val) => {
|
|
120
|
+
const t = mimeTypes.getExtension(val);
|
|
121
|
+
return `.${t}`;
|
|
122
|
+
})
|
|
123
|
+
.filter((val) => {
|
|
124
|
+
return val.length > 1;
|
|
125
|
+
})
|
|
126
|
+
.join(', ');
|
|
127
|
+
|
|
128
|
+
this.fileUploadStore.setAccept(this.accept);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
this.maxFileSizeFormatted = formatBytes(this.maxFileSize);
|
|
132
|
+
this.fileUploadStore.setMaxFileSize(this.maxFileSize);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* on file drop handler
|
|
137
|
+
*/
|
|
138
|
+
onFileDropped($event: FileList) {
|
|
139
|
+
this.prepareFilesList($event);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* handle file from browsing
|
|
144
|
+
*/
|
|
145
|
+
fileBrowseHandler($event: Event) {
|
|
146
|
+
let elm = $event.target as HTMLInputElement,
|
|
147
|
+
files = elm.files as FileList;
|
|
148
|
+
|
|
149
|
+
this.prepareFilesList(files);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Convert Files list to normal array list
|
|
154
|
+
* @param files (Files List)
|
|
155
|
+
*/
|
|
156
|
+
prepareFilesList(files: FileList) {
|
|
157
|
+
setTimeout(() => {
|
|
158
|
+
const fs: ProgressFile[] = [];
|
|
159
|
+
for (let i = 0; i < files.length; i++) {
|
|
160
|
+
let file = files.item(i);
|
|
161
|
+
if (file === null) continue;
|
|
162
|
+
|
|
163
|
+
let item: ProgressFile = {
|
|
164
|
+
file,
|
|
165
|
+
progress: 0,
|
|
166
|
+
message: '',
|
|
167
|
+
color: 'primary',
|
|
168
|
+
url: null,
|
|
169
|
+
id: null,
|
|
170
|
+
enableProgressBar: this.uploadOnDrop,
|
|
171
|
+
|
|
172
|
+
name: file!.name,
|
|
173
|
+
lastModified: file!.lastModified,
|
|
174
|
+
size: file!.size,
|
|
175
|
+
type: file!.type,
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
fs.push(item);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (this.uploadOnDrop) this.fileUploadStore.uploadFiles(fs);
|
|
182
|
+
else this.fileUploadStore.addSeveralForPotentialUpload(fs);
|
|
183
|
+
}, 400);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Directive,
|
|
3
|
+
Output,
|
|
4
|
+
Input,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
HostBinding,
|
|
7
|
+
HostListener
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
|
|
10
|
+
@Directive({
|
|
11
|
+
selector: '[appDnd]'
|
|
12
|
+
})
|
|
13
|
+
export class DndDirective {
|
|
14
|
+
|
|
15
|
+
@HostBinding('class.fileover') fileOver: boolean = false;
|
|
16
|
+
|
|
17
|
+
@Output() fileDropped = new EventEmitter<any>();
|
|
18
|
+
|
|
19
|
+
// Dragover listener
|
|
20
|
+
@HostListener('dragover', ['$event']) onDragOver(evt: Event) {
|
|
21
|
+
evt.preventDefault();
|
|
22
|
+
evt.stopPropagation();
|
|
23
|
+
this.fileOver = true;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Dragleave listener
|
|
27
|
+
@HostListener('dragleave', ['$event']) public onDragLeave(evt: Event) {
|
|
28
|
+
evt.preventDefault();
|
|
29
|
+
evt.stopPropagation();
|
|
30
|
+
this.fileOver = false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Drop listener
|
|
34
|
+
@HostListener('drop', ['$event']) public ondrop(evt: any) {
|
|
35
|
+
evt.preventDefault();
|
|
36
|
+
evt.stopPropagation();
|
|
37
|
+
this.fileOver = false;
|
|
38
|
+
let files = evt.dataTransfer.files;
|
|
39
|
+
if (files.length > 0) {
|
|
40
|
+
this.fileDropped.emit(files);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReferencedProgressFile } from './progress-file.model';
|
|
2
|
+
|
|
3
|
+
export interface ActionConfig {
|
|
4
|
+
iconName: string; // angular material name
|
|
5
|
+
dataCy?: string;
|
|
6
|
+
tooltipCode: string;
|
|
7
|
+
ariaCode: string;
|
|
8
|
+
clickHandler: (file: ReferencedProgressFile) => void;
|
|
9
|
+
showAction: (file: ReferencedProgressFile) => boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
2
|
+
|
|
3
|
+
export interface ProgressFile {
|
|
4
|
+
file?: File;
|
|
5
|
+
message: string;
|
|
6
|
+
progress: number;
|
|
7
|
+
color: OnemrvaMatColor; // color 1 - 1 with status
|
|
8
|
+
url: string | null;
|
|
9
|
+
id: string | null; // backend identifier
|
|
10
|
+
enableProgressBar: boolean;
|
|
11
|
+
data?: any;
|
|
12
|
+
|
|
13
|
+
name: string;
|
|
14
|
+
lastModified?: number;
|
|
15
|
+
size: number;
|
|
16
|
+
type: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ReferencedProgressFile extends ProgressFile {
|
|
20
|
+
ref: symbol; // ref is a frontend identifier
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* format bytes
|
|
25
|
+
* @param bytes (File size in bytes)
|
|
26
|
+
* @param decimals (Decimals point)
|
|
27
|
+
*/
|
|
28
|
+
export function formatBytes(bytes: number, decimals: number = 2) {
|
|
29
|
+
if (bytes === 0) {
|
|
30
|
+
return '0 Bytes';
|
|
31
|
+
}
|
|
32
|
+
const k = 1024;
|
|
33
|
+
const dm = decimals <= 0 ? 0 : decimals || 2;
|
|
34
|
+
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
35
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
36
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function formattedSize(size: number, decimals: number = 2) {
|
|
40
|
+
return formatBytes(size, decimals);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function convertToProgressFile(
|
|
44
|
+
id: string,
|
|
45
|
+
name: string,
|
|
46
|
+
message: string = '',
|
|
47
|
+
progress = 100,
|
|
48
|
+
color = OnemrvaMatColor.PRIMARY,
|
|
49
|
+
url: string | null = null,
|
|
50
|
+
enableProgressBar: boolean = false,
|
|
51
|
+
data: string | null = null,
|
|
52
|
+
size = 0,
|
|
53
|
+
type = ''
|
|
54
|
+
): ProgressFile {
|
|
55
|
+
return {
|
|
56
|
+
id: id!,
|
|
57
|
+
name: name!,
|
|
58
|
+
message: message,
|
|
59
|
+
progress: progress,
|
|
60
|
+
color: color,
|
|
61
|
+
url: url,
|
|
62
|
+
enableProgressBar: enableProgressBar,
|
|
63
|
+
data: data,
|
|
64
|
+
size: size,
|
|
65
|
+
type: type,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function convertToReferencedProgressFile(
|
|
70
|
+
id: string,
|
|
71
|
+
name: string,
|
|
72
|
+
message: string = '',
|
|
73
|
+
progress = 100,
|
|
74
|
+
color = OnemrvaMatColor.PRIMARY,
|
|
75
|
+
url: string | null = null,
|
|
76
|
+
enableProgressBar: boolean = false,
|
|
77
|
+
data: string | null = null,
|
|
78
|
+
size = 0,
|
|
79
|
+
type = ''
|
|
80
|
+
): ReferencedProgressFile {
|
|
81
|
+
return {
|
|
82
|
+
id: id!,
|
|
83
|
+
ref: Symbol(name),
|
|
84
|
+
name: name!,
|
|
85
|
+
message: message,
|
|
86
|
+
progress: progress,
|
|
87
|
+
color: color,
|
|
88
|
+
url: url,
|
|
89
|
+
enableProgressBar: enableProgressBar,
|
|
90
|
+
data: data,
|
|
91
|
+
size: size,
|
|
92
|
+
type: type,
|
|
93
|
+
};
|
|
94
|
+
}
|
package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Observable, Subscription } from 'rxjs';
|
|
2
|
+
import {
|
|
3
|
+
ProgressFile,
|
|
4
|
+
ReferencedProgressFile,
|
|
5
|
+
} from './models/progress-file.model';
|
|
6
|
+
|
|
7
|
+
export interface OnemrvaMatFileUploadStoreItf {
|
|
8
|
+
/**
|
|
9
|
+
* Updater to set accepted format is made public
|
|
10
|
+
*/
|
|
11
|
+
readonly setAccept: any;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Updater to set file max size is made public
|
|
15
|
+
*/
|
|
16
|
+
readonly setMaxFileSize: any;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Updater to set data for a given file
|
|
20
|
+
*
|
|
21
|
+
* input:
|
|
22
|
+
* payload: {
|
|
23
|
+
* ref: symbol,
|
|
24
|
+
* data: any
|
|
25
|
+
* }
|
|
26
|
+
*/
|
|
27
|
+
readonly setData: any;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Selector on list of files
|
|
31
|
+
*/
|
|
32
|
+
readonly files$: Observable<ReferencedProgressFile[]>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Selector on accepted formats for file upload
|
|
36
|
+
*/
|
|
37
|
+
readonly accept$: Observable<string[]>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Selector on max file size
|
|
41
|
+
*/
|
|
42
|
+
readonly maxFileSize$: Observable<number>;
|
|
43
|
+
|
|
44
|
+
readonly listUploadedFiles: (inputs$: Observable<any>) => Subscription;
|
|
45
|
+
readonly deleteFile: (
|
|
46
|
+
file$: Observable<ReferencedProgressFile>
|
|
47
|
+
) => Subscription;
|
|
48
|
+
readonly removeFile: (
|
|
49
|
+
file$: Observable<ReferencedProgressFile>
|
|
50
|
+
) => Subscription;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Action - For adding one file panel (creation of file panel reference skipped if already created) at a time.
|
|
54
|
+
* Upload to BE not triggered
|
|
55
|
+
*/
|
|
56
|
+
readonly addForPotentialUpload: (
|
|
57
|
+
file$: Observable<ProgressFile>
|
|
58
|
+
) => Subscription;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Action - For adding an array of file panels (creation of file panels reference skipped if already created).
|
|
62
|
+
* Uploads to BE not triggered
|
|
63
|
+
*/
|
|
64
|
+
readonly addSeveralForPotentialUpload: (
|
|
65
|
+
files$: Observable<ProgressFile[]>
|
|
66
|
+
) => Subscription;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Action - For adding a file panel (creation of file panels reference skipped if already created) then uploading it
|
|
70
|
+
*/
|
|
71
|
+
readonly uploadFile: (Observable$: Observable<ProgressFile>) => Subscription;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Action - For adding several file panels (creation of file panels reference skipped if already created) then uploading them
|
|
75
|
+
*/
|
|
76
|
+
readonly uploadFiles: (
|
|
77
|
+
Observable$: Observable<ProgressFile[]>
|
|
78
|
+
) => Subscription;
|
|
79
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { DndDirective } from './directives/dnd.directive';
|
|
4
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
7
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
8
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
9
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
+
|
|
11
|
+
import { components } from './components';
|
|
12
|
+
import { MatInputModule } from '@angular/material/input';
|
|
13
|
+
|
|
14
|
+
@NgModule({
|
|
15
|
+
declarations: [components, DndDirective],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
ReactiveFormsModule,
|
|
19
|
+
MatButtonModule,
|
|
20
|
+
MatTooltipModule,
|
|
21
|
+
MatDialogModule,
|
|
22
|
+
TranslateModule,
|
|
23
|
+
MatIconModule,
|
|
24
|
+
MatInputModule,
|
|
25
|
+
],
|
|
26
|
+
exports: [components],
|
|
27
|
+
})
|
|
28
|
+
export class OnemrvaMatFileUploadModule {}
|