@onemrvapublic/design-system 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +4 -0
- package/.editorconfig +16 -0
- package/.github/workflows/npm-publish.yml +34 -0
- package/README.md +27 -0
- package/angular.json +214 -0
- package/build.sh +108 -0
- package/cypress.config.ts +40 -0
- package/index.html +10 -0
- package/npm-publish.sh +11 -0
- package/package.json +89 -0
- package/projects/onemrva/design-system/README.md +24 -0
- package/projects/onemrva/design-system/_index.scss +29 -0
- package/projects/onemrva/design-system/_utils.scss +25 -0
- package/projects/onemrva/design-system/layout/assets/logo_de.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_en.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_fr.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_nl.svg +3 -0
- package/projects/onemrva/design-system/layout/assets/logo_onem_rva.svg +32 -0
- package/projects/onemrva/design-system/layout/index.ts +7 -0
- package/projects/onemrva/design-system/layout/ng-package.json +6 -0
- package/projects/onemrva/design-system/layout/src/components/index.ts +31 -0
- package/projects/onemrva/design-system/layout/src/components/layout/_layout-mixin.component.scss +159 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.html +194 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.scss +137 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout/layout.component.ts +187 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-content/layout-content.component.ts +23 -0
- package/projects/onemrva/design-system/layout/src/components/layout-footer/layout-footer.component.ts +11 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-login-menu/layout-login-menu.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.html +57 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-route/layout-route.component.ts +56 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.html +104 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav/layout-sidenav.component.ts +88 -0
- package/projects/onemrva/design-system/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +9 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.html +44 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/components/layout-subroute/layout-subroute.component.ts +35 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.spec.ts +25 -0
- package/projects/onemrva/design-system/layout/src/components/layout-title/layout-title.component.ts +17 -0
- package/projects/onemrva/design-system/layout/src/decorators/coerce-boolean-input.decorator.ts +19 -0
- package/projects/onemrva/design-system/layout/src/decorators/observable-content.decorator.ts +13 -0
- package/projects/onemrva/design-system/layout/src/directives/drawer-host.directive.ts +10 -0
- package/projects/onemrva/design-system/layout/src/enums/environment.enum.ts +6 -0
- package/projects/onemrva/design-system/layout/src/layout.component.spec.ts +24 -0
- package/projects/onemrva/design-system/layout/src/layout.module.ts +103 -0
- package/projects/onemrva/design-system/layout/src/models/onem-language.model.ts +4 -0
- package/projects/onemrva/design-system/layout/src/models/onemrva-profile.model.ts +57 -0
- package/projects/onemrva/design-system/layout/src/services/drawer.service.ts +28 -0
- package/projects/onemrva/design-system/layout/src/striphtml.pipe.ts +11 -0
- package/projects/onemrva/design-system/layout/src/test.ts +25 -0
- package/projects/onemrva/design-system/mat-avatar/index.ts +2 -0
- package/projects/onemrva/design-system/mat-avatar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.html +17 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.scss +130 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.component.ts +421 -0
- package/projects/onemrva/design-system/mat-avatar/src/onemrva-mat-avatar.module.ts +17 -0
- package/projects/onemrva/design-system/mat-badge/index.ts +6 -0
- package/projects/onemrva/design-system/mat-badge/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.scss +152 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.component.ts +291 -0
- package/projects/onemrva/design-system/mat-badge/src/onemrva-mat-badge.module.ts +8 -0
- package/projects/onemrva/design-system/mat-breadcrumb/index.ts +7 -0
- package/projects/onemrva/design-system/mat-breadcrumb/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +37 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +70 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +16 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +4 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +12 -0
- package/projects/onemrva/design-system/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +65 -0
- package/projects/onemrva/design-system/mat-clipboard/index.ts +6 -0
- package/projects/onemrva/design-system/mat-clipboard/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-clipboard/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.component.ts +16 -0
- package/projects/onemrva/design-system/mat-clipboard/src/onemrva-mat-clipboard.module.ts +14 -0
- package/projects/onemrva/design-system/mat-datepicker-header/index.ts +5 -0
- package/projects/onemrva/design-system/mat-datepicker-header/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +11 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +53 -0
- package/projects/onemrva/design-system/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +285 -0
- package/projects/onemrva/design-system/mat-file-upload/index.ts +11 -0
- package/projects/onemrva/design-system/mat-file-upload/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/index.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +59 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +24 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +53 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +248 -0
- package/projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +185 -0
- package/projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts +43 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/action-config.model.ts +10 -0
- package/projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts +94 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +79 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts +28 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts +68 -0
- package/projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts +473 -0
- package/projects/onemrva/design-system/mat-input-bank-account/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-bank-account/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +32 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +9 -0
- package/projects/onemrva/design-system/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +125 -0
- package/projects/onemrva/design-system/mat-input-country/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-country/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-country/src/countries.ts +3182 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.html +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-country/src/onemrva-mat-input-country.component.ts +144 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/index.ts +5 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +39 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +25 -0
- package/projects/onemrva/design-system/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +190 -0
- package/projects/onemrva/design-system/mat-input-phone/index.ts +6 -0
- package/projects/onemrva/design-system/mat-input-phone/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.html +43 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.scss +29 -0
- package/projects/onemrva/design-system/mat-input-phone/src/onemrva-mat-input-phone.component.ts +261 -0
- package/projects/onemrva/design-system/mat-input-phone/src/phone-number.directive.ts +47 -0
- package/projects/onemrva/design-system/mat-message-box/index.ts +2 -0
- package/projects/onemrva/design-system/mat-message-box/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.scss +60 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.component.ts +134 -0
- package/projects/onemrva/design-system/mat-message-box/src/onemrva-mat-message-box.module.ts +12 -0
- package/projects/onemrva/design-system/mat-multi-select/index.ts +2 -0
- package/projects/onemrva/design-system/mat-multi-select/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +66 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.html +24 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.component.ts +152 -0
- package/projects/onemrva/design-system/mat-multi-select/src/onemrva-mat-multi-select.module.ts +31 -0
- package/projects/onemrva/design-system/mat-notification/index.ts +1 -0
- package/projects/onemrva/design-system/mat-notification/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-notification/src/_onemrva-mat-notification.component.scss +71 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.html +10 -0
- package/projects/onemrva/design-system/mat-notification/src/onemrva-mat-notification.component.ts +158 -0
- package/projects/onemrva/design-system/mat-paginator/index.ts +6 -0
- package/projects/onemrva/design-system/mat-paginator/ng-package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/package.json +7 -0
- package/projects/onemrva/design-system/mat-paginator/src/_onemrva-mat-paginator.component.scss +122 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.html +104 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +184 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.ts +214 -0
- package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.module.ts +15 -0
- package/projects/onemrva/design-system/mat-panel/index.ts +6 -0
- package/projects/onemrva/design-system/mat-panel/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-content.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-icon.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts +12 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.html +5 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.component.ts +20 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title.html +8 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.html +10 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.scss +100 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.component.ts +122 -0
- package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel.module.ts +26 -0
- package/projects/onemrva/design-system/mat-pop-over/index.ts +4 -0
- package/projects/onemrva/design-system/mat-pop-over/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +13 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.html +29 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.scss +141 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.component.ts +47 -0
- package/projects/onemrva/design-system/mat-pop-over/src/onemrva-mat-pop-over.module.ts +19 -0
- package/projects/onemrva/design-system/mat-progress-bar/index.ts +1 -0
- package/projects/onemrva/design-system/mat-progress-bar/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +37 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +13 -0
- package/projects/onemrva/design-system/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +27 -0
- package/projects/onemrva/design-system/mat-select-search/index.ts +3 -0
- package/projects/onemrva/design-system/mat-select-search/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-select-search/src/default-options.ts +42 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-no-entries-found.directive.ts +15 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search-clear.directive.ts +13 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.html +67 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.scss +126 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.spec.ts +790 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.component.ts +612 -0
- package/projects/onemrva/design-system/mat-select-search/src/mat-select-search.module.ts +53 -0
- package/projects/onemrva/design-system/mat-side-menu/index.ts +6 -0
- package/projects/onemrva/design-system/mat-side-menu/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.html +36 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.scss +50 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +66 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.component.ts +46 -0
- package/projects/onemrva/design-system/mat-side-menu/src/onemrva-mat-side-menu.module.ts +14 -0
- package/projects/onemrva/design-system/mat-skeleton/index.ts +3 -0
- package/projects/onemrva/design-system/mat-skeleton/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +32 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.html +17 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.scss +216 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.component.ts +173 -0
- package/projects/onemrva/design-system/mat-skeleton/src/onemrva-mat-skeleton.module.ts +16 -0
- package/projects/onemrva/design-system/mat-spinner/index.ts +6 -0
- package/projects/onemrva/design-system/mat-spinner/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-spinner/src/_onemrva-mat-spinner.component.scss +62 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.component.ts +11 -0
- package/projects/onemrva/design-system/mat-spinner/src/onemrva-mat-spinner.module.ts +8 -0
- package/projects/onemrva/design-system/mat-stepper/index.ts +6 -0
- package/projects/onemrva/design-system/mat-stepper/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-stepper/src/_stepper-variables.scss +29 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +23 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.component.ts +60 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.html +53 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.module.ts +30 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-mat-stepper.scss +106 -0
- package/projects/onemrva/design-system/mat-stepper/src/onemrva-stepper-animations.ts +40 -0
- package/projects/onemrva/design-system/mat-table-of-content/index.ts +8 -0
- package/projects/onemrva/design-system/mat-table-of-content/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +79 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +23 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +128 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +67 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +51 -0
- package/projects/onemrva/design-system/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +24 -0
- package/projects/onemrva/design-system/mat-task-list/index.ts +5 -0
- package/projects/onemrva/design-system/mat-task-list/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.component.ts +12 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-content.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.html +1 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.scss +150 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.component.ts +50 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-list.module.ts +31 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.component.ts +18 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task-title.html +5 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.html +17 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.scss +0 -0
- package/projects/onemrva/design-system/mat-task-list/src/onemrva-mat-task.component.ts +117 -0
- package/projects/onemrva/design-system/mat-timepicker/index.ts +6 -0
- package/projects/onemrva/design-system/mat-timepicker/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.html +42 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.scss +129 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/clock/clock.component.ts +273 -0
- package/projects/onemrva/design-system/mat-timepicker/src/interfaces-and-types.ts +16 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.component.ts +289 -0
- package/projects/onemrva/design-system/mat-timepicker/src/onemrva-mat-timepicker.module.ts +40 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +53 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +69 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +25 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +169 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +15 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.scss +32 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +135 -0
- package/projects/onemrva/design-system/mat-timepicker/src/timepicker.directive.ts +594 -0
- package/projects/onemrva/design-system/mat-timepicker/src/util.ts +97 -0
- package/projects/onemrva/design-system/mat-toast/index.ts +6 -0
- package/projects/onemrva/design-system/mat-toast/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.scss +54 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.component.ts +36 -0
- package/projects/onemrva/design-system/mat-toast/src/onemrva-mat-toast.module.ts +11 -0
- package/projects/onemrva/design-system/mat-tooltip/index.ts +4 -0
- package/projects/onemrva/design-system/mat-tooltip/ng-package.json +6 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.scss +9 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.component.ts +21 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +119 -0
- package/projects/onemrva/design-system/mat-tooltip/src/onemrva-mat-tooltip.module.ts +11 -0
- package/projects/onemrva/design-system/ng-package.json +20 -0
- package/projects/onemrva/design-system/package.json +27 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Arri/303/250re-plan.svg +22 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Halo.svg +10 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Ombre.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page.svg +21 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Page2.svg +19 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Soucoupe.svg +70 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/Yeux.svg +6 -0
- package/projects/onemrva/design-system/page-not-found/assets/404/shape.svg +3 -0
- package/projects/onemrva/design-system/page-not-found/index.ts +5 -0
- package/projects/onemrva/design-system/page-not-found/ng-package.json +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-action.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-extra.component.ts +9 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.scss +16 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-invader.component.ts +84 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found-mixin.component.scss +12 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.html +31 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.scss +206 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.component.ts +59 -0
- package/projects/onemrva/design-system/page-not-found/src/page-not-found.module.ts +24 -0
- package/projects/onemrva/design-system/src/public-api.ts +5 -0
- package/projects/onemrva/design-system/tsconfig.lib.json +12 -0
- package/projects/onemrva/design-system/tsconfig.lib.prod.json +10 -0
- package/projects/onemrva/design-system/utils/index.ts +2 -0
- package/projects/onemrva/design-system/utils/ng-package.json +6 -0
- package/projects/onemrva/design-system/utils/src/enum.utils.ts +6 -0
- package/projects/onemrva/design-system/utils/src/enums/color.enum.ts +14 -0
- package/projects/onemrva/design-system/utils/src/enums/index.ts +2 -0
- package/projects/onemrva/design-system/utils/src/enums/size.enum.ts +11 -0
- package/projects/schematics/README.md +40 -0
- package/projects/schematics/package.json +25 -0
- package/projects/schematics/src/cmp-demo/schema.json +15 -0
- package/projects/schematics/src/collection.json +17 -0
- package/projects/schematics/src/component/files/root/ng-package.json +6 -0
- package/projects/schematics/src/component/files/src/onemrva-mat-__name__.component.html +4 -0
- package/projects/schematics/src/component/schema.json +11 -0
- package/projects/schematics/src/demo/files/demo/demo-__name__.component.html +2 -0
- package/projects/schematics/src/demo/files/demo/readme.md +26 -0
- package/projects/schematics/src/demo/schema.json +15 -0
- package/projects/schematics/tsconfig.json +24 -0
- package/projects/test/.nycrc +5 -0
- package/projects/test/cypress/coverage.webpack.ts +20 -0
- package/projects/test/cypress/cucumber-json/basictest.cucumber.json +402 -0
- package/projects/test/cypress/fixtures/example.json +5 -0
- package/projects/test/cypress/integration/basictest.feature +53 -0
- package/projects/test/cypress/integration/common/basicTestSteps.ts +54 -0
- package/projects/test/cypress/plugins/index.ts +13 -0
- package/projects/test/cypress/support/commands.ts +44 -0
- package/projects/test/cypress/support/e2e.ts +20 -0
- package/projects/test/cypress/tsconfig.json +10 -0
- package/projects/test/cypress/videos/basictest.feature.mp4 +0 -0
- package/projects/test/karma.conf.js +44 -0
- package/projects/test/src/app/app-routing.module.ts +14 -0
- package/projects/test/src/app/app.component.html +14 -0
- package/projects/test/src/app/app.component.scss +0 -0
- package/projects/test/src/app/app.component.spec.ts +35 -0
- package/projects/test/src/app/app.component.ts +51 -0
- package/projects/test/src/app/app.module.ts +103 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.html +77 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.scss +4 -0
- package/projects/test/src/app/demos/avatar/demo-avatar.component.ts +13 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.html +389 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.scss +4 -0
- package/projects/test/src/app/demos/badge/demo-badge.component.ts +22 -0
- package/projects/test/src/app/demos/badge/readme.md +30 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.html +20 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.component.ts +7 -0
- package/projects/test/src/app/demos/breadcrumb/demo-breadcrumb.module.ts +89 -0
- package/projects/test/src/app/demos/breadcrumb/readme.md +29 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.html +10 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.scss +5 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.component.ts +12 -0
- package/projects/test/src/app/demos/datepicker/demo-datepicker.module.ts +43 -0
- package/projects/test/src/app/demos/datepicker/readme.md +36 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.html +30 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.component.ts +132 -0
- package/projects/test/src/app/demos/file-upload/demo-file-upload.service.ts +60 -0
- package/projects/test/src/app/demos/file-upload/readme.md +26 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.component.ts +19 -0
- package/projects/test/src/app/demos/input-bank-account/demo-input-bank-account.module.ts +20 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.html +9 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.component.ts +14 -0
- package/projects/test/src/app/demos/input-country/demo-input-country.module.ts +26 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.component.ts +13 -0
- package/projects/test/src/app/demos/input-enterprise-number/demo-input-enterprise-number.module.ts +20 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.html +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.component.ts +16 -0
- package/projects/test/src/app/demos/input-phone/demo-input-phone.module.ts +21 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.html +32 -0
- package/projects/test/src/app/demos/message-box/demo-message-box.component.ts +12 -0
- package/projects/test/src/app/demos/message-box/readme.md +26 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.html +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.scss +23 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.component.ts +53 -0
- package/projects/test/src/app/demos/multiselect/demo-multiselect.module.ts +38 -0
- package/projects/test/src/app/demos/multiselect/readme.md +34 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.html +21 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.scss +6 -0
- package/projects/test/src/app/demos/not-found/demo-not-found.component.ts +50 -0
- package/projects/test/src/app/demos/not-found/readme.md +44 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.html +5 -0
- package/projects/test/src/app/demos/notification/demo-notification.component.ts +10 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.html +35 -0
- package/projects/test/src/app/demos/paginator/demo-paginator.component.ts +25 -0
- package/projects/test/src/app/demos/paginator/readme.md +89 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.html +53 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.scss +3 -0
- package/projects/test/src/app/demos/panel/demo-panel.component.ts +20 -0
- package/projects/test/src/app/demos/panel/readme.md +26 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.html +130 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.scss +9 -0
- package/projects/test/src/app/demos/pop-over/demo-pop-over.component.ts +13 -0
- package/projects/test/src/app/demos/pop-over/readme.md +26 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.html +19 -0
- package/projects/test/src/app/demos/progress-bar/demo-progress-bar.component.ts +35 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.html +5 -0
- package/projects/test/src/app/demos/side-menu/demo-side-menu.component.ts +34 -0
- package/projects/test/src/app/demos/side-menu/readme.md +30 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.html +119 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.scss +0 -0
- package/projects/test/src/app/demos/skeleton/demo-skeleton.component.ts +35 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.html +1 -0
- package/projects/test/src/app/demos/spinner/demo-spinner.component.ts +10 -0
- package/projects/test/src/app/demos/spinner/readme.md +24 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.html +108 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.scss +3 -0
- package/projects/test/src/app/demos/summary-stepper/demo-summary-stepper.component.ts +55 -0
- package/projects/test/src/app/demos/summary-stepper/readme.md +26 -0
- package/projects/test/src/app/demos/table/demo-table-datasource.ts +140 -0
- package/projects/test/src/app/demos/table/demo-table.component.html +41 -0
- package/projects/test/src/app/demos/table/demo-table.component.scss +17 -0
- package/projects/test/src/app/demos/table/demo-table.component.ts +51 -0
- package/projects/test/src/app/demos/table/demo-table.module.ts +45 -0
- package/projects/test/src/app/demos/table/readme.md +27 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.html +37 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.scss +3 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.component.ts +14 -0
- package/projects/test/src/app/demos/task-list/demo-task-list.module.ts +29 -0
- package/projects/test/src/app/demos/task-list/readme.md +26 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.html +9 -0
- package/projects/test/src/app/demos/timepicker/demo-timepicker.component.ts +31 -0
- package/projects/test/src/app/demos/timepicker/readme.md +26 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.html +8 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.scss +3 -0
- package/projects/test/src/app/demos/toast/demo-toast.component.ts +61 -0
- package/projects/test/src/app/demos/toast/readme.md +30 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.html +288 -0
- package/projects/test/src/app/demos/toc/demo-toc.component.ts +26 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.html +73 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.scss +11 -0
- package/projects/test/src/app/demos/tooltip/demo-tooltip.component.ts +14 -0
- package/projects/test/src/app/home.component.ts +54 -0
- package/projects/test/src/app/material.module.ts +39 -0
- package/projects/test/src/app/onemrva-translate-http-loader.ts +35 -0
- package/projects/test/src/app/routes.ts +198 -0
- package/projects/test/src/assets/.gitkeep +0 -0
- package/projects/test/src/assets/i18n/de.json +80 -0
- package/projects/test/src/assets/i18n/en.json +80 -0
- package/projects/test/src/assets/i18n/fr.json +80 -0
- package/projects/test/src/assets/i18n/nl.json +79 -0
- package/projects/test/src/environments/environment.e2e.ts +3 -0
- package/projects/test/src/environments/environment.prod.ts +3 -0
- package/projects/test/src/environments/environment.ts +16 -0
- package/projects/test/src/favicon.ico +0 -0
- package/projects/test/src/index.html +15 -0
- package/projects/test/src/main.ts +12 -0
- package/projects/test/src/polyfills.ts +53 -0
- package/projects/test/src/styles.scss +22 -0
- package/projects/test/src/test.ts +26 -0
- package/projects/test/tsconfig.app.json +15 -0
- package/projects/test/tsconfig.spec.json +18 -0
- package/rva.crt +36 -0
- package/tsconfig.json +44 -0
package/projects/onemrva/design-system/mat-paginator/src/onemrva-mat-paginator.component.spec.ts
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { TestBed, ComponentFixture } from "@angular/core/testing";
|
|
2
|
+
import { By } from "@angular/platform-browser";
|
|
3
|
+
import { TranslateModule } from "@ngx-translate/core";
|
|
4
|
+
import { jest } from '@jest/globals';
|
|
5
|
+
|
|
6
|
+
import { OnemrvaMatPaginatorComponent } from './onemrva-mat-paginator.component';
|
|
7
|
+
|
|
8
|
+
describe('OnemrvaMatPaginatorComponent', () => {
|
|
9
|
+
let component: OnemrvaMatPaginatorComponent;
|
|
10
|
+
let fixture: ComponentFixture<OnemrvaMatPaginatorComponent>;
|
|
11
|
+
const maxNumberOfReachablePages = 7;
|
|
12
|
+
|
|
13
|
+
beforeEach(() => {
|
|
14
|
+
TestBed.configureTestingModule({
|
|
15
|
+
declarations: [OnemrvaMatPaginatorComponent],
|
|
16
|
+
imports: [TranslateModule.forRoot()]
|
|
17
|
+
}).compileComponents(); // the component will be compiled
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
beforeEach(() => {
|
|
21
|
+
fixture = TestBed.createComponent(OnemrvaMatPaginatorComponent);
|
|
22
|
+
component = fixture.componentInstance;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it(`Must display some pages when the number of pages > ${maxNumberOfReachablePages}`, () => {
|
|
26
|
+
component.totalNumberOfPages = maxNumberOfReachablePages + 1;
|
|
27
|
+
component.ngOnChanges();
|
|
28
|
+
fixture.detectChanges();
|
|
29
|
+
|
|
30
|
+
const { debugElement } = fixture;
|
|
31
|
+
expect(debugElement.queryAll(By.css("[data-cy=onemrva-mat-paginator-btn-page]")).length).toEqual(maxNumberOfReachablePages - 1);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it(`Must display all the pages when number of pages <= ${maxNumberOfReachablePages}`, () => {
|
|
35
|
+
component.totalNumberOfPages = maxNumberOfReachablePages;
|
|
36
|
+
component.ngOnChanges();
|
|
37
|
+
fixture.detectChanges();
|
|
38
|
+
|
|
39
|
+
const { debugElement } = fixture;
|
|
40
|
+
expect(debugElement.queryAll(By.css("[data-cy=onemrva-mat-paginator-btn-page]")).length).toEqual(maxNumberOfReachablePages);
|
|
41
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeNull();
|
|
42
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeNull();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('Must request the next page', () => {
|
|
46
|
+
component.totalNumberOfPages = 10;
|
|
47
|
+
component.ngOnChanges();
|
|
48
|
+
fixture.detectChanges();
|
|
49
|
+
|
|
50
|
+
jest.spyOn(component.onRequestPage, 'emit');
|
|
51
|
+
|
|
52
|
+
const next = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-next]") as HTMLButtonElement;
|
|
53
|
+
next.click();
|
|
54
|
+
expect(component.onRequestPage.emit).toHaveBeenCalledWith(1);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('Must request the previous page', () => {
|
|
58
|
+
component.totalNumberOfPages = 10;
|
|
59
|
+
component.pageIndex = 4;
|
|
60
|
+
component.ngOnChanges();
|
|
61
|
+
fixture.detectChanges();
|
|
62
|
+
|
|
63
|
+
jest.spyOn(component.onRequestPage, 'emit');
|
|
64
|
+
|
|
65
|
+
const previous = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-previous]") as HTMLButtonElement;
|
|
66
|
+
const next = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-next]") as HTMLButtonElement;
|
|
67
|
+
expect(previous.disabled).toBeFalsy();
|
|
68
|
+
expect(next.disabled).toBeFalsy();
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
previous.click();
|
|
72
|
+
expect(component.onRequestPage.emit).toHaveBeenCalledWith(3);
|
|
73
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeTruthy();
|
|
74
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeTruthy();
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
it('Must hide the first pages', () => {
|
|
78
|
+
component.totalNumberOfPages = 10;
|
|
79
|
+
component.pageIndex = 4;
|
|
80
|
+
component.ngOnChanges();
|
|
81
|
+
fixture.detectChanges();
|
|
82
|
+
|
|
83
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeTruthy();
|
|
84
|
+
|
|
85
|
+
component.pageIndex = 0;
|
|
86
|
+
component.ngOnChanges();
|
|
87
|
+
fixture.detectChanges();
|
|
88
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeNull();
|
|
89
|
+
|
|
90
|
+
component.pageIndex = 1;
|
|
91
|
+
component.ngOnChanges();
|
|
92
|
+
fixture.detectChanges();
|
|
93
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeNull();
|
|
94
|
+
|
|
95
|
+
component.pageIndex = 2;
|
|
96
|
+
component.ngOnChanges();
|
|
97
|
+
fixture.detectChanges();
|
|
98
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-before]")).toBeNull();
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('Must hide the last pages', () => {
|
|
102
|
+
const numberOfPages = 10;
|
|
103
|
+
component.totalNumberOfPages = numberOfPages;
|
|
104
|
+
component.pageIndex = 4;
|
|
105
|
+
component.ngOnChanges();
|
|
106
|
+
fixture.detectChanges();
|
|
107
|
+
|
|
108
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeTruthy();
|
|
109
|
+
|
|
110
|
+
component.pageIndex = numberOfPages - 3;
|
|
111
|
+
component.ngOnChanges();
|
|
112
|
+
fixture.detectChanges();
|
|
113
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeNull();
|
|
114
|
+
|
|
115
|
+
component.pageIndex = numberOfPages - 2;
|
|
116
|
+
component.ngOnChanges();
|
|
117
|
+
fixture.detectChanges();
|
|
118
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeNull();
|
|
119
|
+
|
|
120
|
+
component.pageIndex = numberOfPages - 1;
|
|
121
|
+
component.ngOnChanges();
|
|
122
|
+
fixture.detectChanges();
|
|
123
|
+
expect(fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-too-many-after]")).toBeNull();
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
it("Must prevent user from going to negative pageIndex", () => {
|
|
127
|
+
component.totalNumberOfPages = 10;
|
|
128
|
+
component.ngOnChanges();
|
|
129
|
+
fixture.detectChanges();
|
|
130
|
+
|
|
131
|
+
jest.spyOn(component.onRequestPage, 'emit');
|
|
132
|
+
|
|
133
|
+
const previous = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-previous]");
|
|
134
|
+
expect(previous.disabled).toBeTruthy();
|
|
135
|
+
|
|
136
|
+
previous.click();
|
|
137
|
+
expect(component.onRequestPage.emit).toHaveBeenCalledTimes(0);
|
|
138
|
+
|
|
139
|
+
const next = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-next]");
|
|
140
|
+
expect(next.disabled).toBeFalsy();
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
it("Must prevent user from going beyond last page", () => {
|
|
144
|
+
const lastPageIndex = 9;
|
|
145
|
+
component.totalNumberOfPages = lastPageIndex + 1;
|
|
146
|
+
component.pageIndex = lastPageIndex;
|
|
147
|
+
component.ngOnChanges();
|
|
148
|
+
fixture.detectChanges();
|
|
149
|
+
|
|
150
|
+
jest.spyOn(component.onRequestPage, 'emit');
|
|
151
|
+
|
|
152
|
+
const next = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-next]");
|
|
153
|
+
expect(next.disabled).toBeTruthy();
|
|
154
|
+
|
|
155
|
+
next.click();
|
|
156
|
+
expect(component.onRequestPage.emit).toHaveBeenCalledTimes(0);
|
|
157
|
+
|
|
158
|
+
const previous = fixture.nativeElement.querySelector("[data-cy=onemrva-mat-paginator-btn-previous]");
|
|
159
|
+
expect(previous.disabled).toBeFalsy();
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
describe('Must throw an error', () => {
|
|
163
|
+
it("... when requesting a negative pageIndex", () => {
|
|
164
|
+
component.totalNumberOfPages = 10;
|
|
165
|
+
component.pageIndex = -1;
|
|
166
|
+
|
|
167
|
+
expect(() => component.ngOnChanges()).toThrow();
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
it("... when requesting a non integer pageIndex", () => {
|
|
171
|
+
component.totalNumberOfPages = 10;
|
|
172
|
+
component.pageIndex = 0.1;
|
|
173
|
+
|
|
174
|
+
expect(() => component.ngOnChanges()).toThrow();
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
it("... when requesting an out of bound pageIndex", () => {
|
|
178
|
+
component.totalNumberOfPages = 10;
|
|
179
|
+
component.pageIndex = 10;
|
|
180
|
+
|
|
181
|
+
expect(() => component.ngOnChanges()).toThrow();
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
});
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
Input,
|
|
4
|
+
Output,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
ChangeDetectionStrategy,
|
|
7
|
+
ChangeDetectorRef,
|
|
8
|
+
} from '@angular/core';
|
|
9
|
+
import { BehaviorSubject } from 'rxjs';
|
|
10
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'onemrva-mat-paginator',
|
|
14
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
templateUrl: './onemrva-mat-paginator.component.html',
|
|
16
|
+
})
|
|
17
|
+
export class OnemrvaMatPaginatorComponent {
|
|
18
|
+
@Input() type: 'default' | 'complex' = 'default';
|
|
19
|
+
@Input() pageSizeSelector = true; // Specs: DS-74
|
|
20
|
+
@Input() pageSizeOptions: number[] = [10, 20, 50, 100]; // Specs: DS-74
|
|
21
|
+
@Input() pageSizeDefaultOption: number = 10;
|
|
22
|
+
@Input() recordKey: string = 'recordsPerPage'; // this record key will be inside key "paginator". I.e the default key value that will be generated out of this input is paginator.recordsPerPage
|
|
23
|
+
|
|
24
|
+
maxRecordNumber = 0;
|
|
25
|
+
private _pageIndex: number = 0;
|
|
26
|
+
private _length: number = 0;
|
|
27
|
+
private _pageSize: number = this.pageSizeDefaultOption;
|
|
28
|
+
private _totalNumberOfPages: number = 0;
|
|
29
|
+
|
|
30
|
+
public get pageIndex(): number {
|
|
31
|
+
return this._pageIndex;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@Input()
|
|
35
|
+
public set pageIndex(index: number) {
|
|
36
|
+
if (this._pageIndex !== index) {
|
|
37
|
+
this._pageIndex = Math.min(index, this._totalNumberOfPages - 1);
|
|
38
|
+
this._emitPageEvent(this._pageIndex);
|
|
39
|
+
this.refreshState();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public get length(): number {
|
|
44
|
+
return this._length;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@Input()
|
|
48
|
+
public set length(length: number) {
|
|
49
|
+
if (this._length !== length) {
|
|
50
|
+
this._length = length;
|
|
51
|
+
this.refreshState();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public get pageSize(): number {
|
|
56
|
+
return this._pageSize;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@Input()
|
|
60
|
+
public set pageSize(pageSize: number) {
|
|
61
|
+
if (this._pageSize !== pageSize) {
|
|
62
|
+
this._pageSize = pageSize;
|
|
63
|
+
this.pageSize$.next(this._pageSize);
|
|
64
|
+
this._pageIndex = 0;
|
|
65
|
+
this._emitPageEvent(this._pageIndex);
|
|
66
|
+
this.refreshState();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
get totalNumberOfPages(): number {
|
|
71
|
+
return this._totalNumberOfPages;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@Input() previousKey: string = 'Previous';
|
|
75
|
+
@Input() nextKey: string = 'Next';
|
|
76
|
+
|
|
77
|
+
/** Deprecated **/
|
|
78
|
+
@Output() onRequestPage: EventEmitter<number> = new EventEmitter(); // Pages are displayed starting from 1 but the index starts at 0
|
|
79
|
+
|
|
80
|
+
/** Event emitted when the paginator changes the page size or page index. */
|
|
81
|
+
@Output() readonly page: EventEmitter<PageEvent> =
|
|
82
|
+
new EventEmitter<PageEvent>();
|
|
83
|
+
|
|
84
|
+
pageIndex$: BehaviorSubject<number> = new BehaviorSubject(0);
|
|
85
|
+
pageSize$: BehaviorSubject<number> = new BehaviorSubject(
|
|
86
|
+
this.pageSizeDefaultOption
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
pages: number[] = [];
|
|
90
|
+
numberOfReachablePages = 5;
|
|
91
|
+
|
|
92
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
93
|
+
|
|
94
|
+
refreshState() {
|
|
95
|
+
this.maxRecordNumber = Math.min(
|
|
96
|
+
this._pageIndex * this._pageSize + this._pageSize,
|
|
97
|
+
this._length
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
if (this._pageIndex < 0) throw Error('Negative index');
|
|
101
|
+
this._totalNumberOfPages = Math.ceil(this.length / this.pageSize);
|
|
102
|
+
if (
|
|
103
|
+
this._totalNumberOfPages > 0 &&
|
|
104
|
+
this._pageIndex > this._totalNumberOfPages
|
|
105
|
+
)
|
|
106
|
+
throw Error('Index out of bound');
|
|
107
|
+
if (!Number.isInteger(this._pageIndex)) throw Error('Index is not integer');
|
|
108
|
+
|
|
109
|
+
this.pageIndex$.next(this._pageIndex);
|
|
110
|
+
|
|
111
|
+
if (this.type === 'complex') this.refreshComplex();
|
|
112
|
+
else this.refreshDefault();
|
|
113
|
+
|
|
114
|
+
this.cd.detectChanges();
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
refreshDefault() {
|
|
118
|
+
if (this._totalNumberOfPages <= this.numberOfReachablePages + 1) {
|
|
119
|
+
// Case 1: not enough pages to display the first "..."
|
|
120
|
+
this.pages = [...Array(this._totalNumberOfPages).keys()];
|
|
121
|
+
} else if (this.pageIndex <= this.numberOfReachablePages - 1) {
|
|
122
|
+
// Case 2: page index in first 5 pages
|
|
123
|
+
this.pages = [...Array(this.numberOfReachablePages).keys()];
|
|
124
|
+
} else {
|
|
125
|
+
let firstPageIndex =
|
|
126
|
+
Math.floor(this._pageIndex / this.numberOfReachablePages) *
|
|
127
|
+
this.numberOfReachablePages;
|
|
128
|
+
|
|
129
|
+
if (
|
|
130
|
+
this._totalNumberOfPages - firstPageIndex <=
|
|
131
|
+
this.numberOfReachablePages + 1
|
|
132
|
+
) {
|
|
133
|
+
if (this._totalNumberOfPages - firstPageIndex <= 1) {
|
|
134
|
+
// Case 3: in the last block containing only 1 page
|
|
135
|
+
firstPageIndex = firstPageIndex - this.numberOfReachablePages;
|
|
136
|
+
this.pages = [
|
|
137
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
138
|
+
].map((x) => x + firstPageIndex);
|
|
139
|
+
} else {
|
|
140
|
+
// Case 4: one block before the last with last block containing only 1 page
|
|
141
|
+
this.pages = [
|
|
142
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
143
|
+
].map((x) => x + firstPageIndex);
|
|
144
|
+
}
|
|
145
|
+
} else if (this._totalNumberOfPages - 1 - firstPageIndex <= 2) {
|
|
146
|
+
// Case 5: in the last block containing 2 pages or more
|
|
147
|
+
firstPageIndex = firstPageIndex - this.numberOfReachablePages;
|
|
148
|
+
this.pages = [
|
|
149
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
150
|
+
].map((x) => x + firstPageIndex);
|
|
151
|
+
} else {
|
|
152
|
+
// Case 6: same as case 4 but the next block contains at least 2 pages
|
|
153
|
+
this.pages = [...Array(this.numberOfReachablePages).keys()].map(
|
|
154
|
+
(x) => x + firstPageIndex
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
refreshComplex() {
|
|
160
|
+
if (this._totalNumberOfPages <= this.numberOfReachablePages + 2) {
|
|
161
|
+
// Case 1: not enough pages to display the first "..."
|
|
162
|
+
this.pages = [...Array(this._totalNumberOfPages).keys()];
|
|
163
|
+
} else if (this.pageIndex <= this.numberOfReachablePages - 1) {
|
|
164
|
+
// Case 2: page index in first 5 pages
|
|
165
|
+
this.pages = [...Array(this.numberOfReachablePages).keys()];
|
|
166
|
+
} else {
|
|
167
|
+
let firstPageIndex =
|
|
168
|
+
Math.floor(this._pageIndex / this.numberOfReachablePages) *
|
|
169
|
+
this.numberOfReachablePages;
|
|
170
|
+
|
|
171
|
+
if (
|
|
172
|
+
this._totalNumberOfPages - firstPageIndex <=
|
|
173
|
+
this.numberOfReachablePages + 2
|
|
174
|
+
) {
|
|
175
|
+
if (this._totalNumberOfPages - firstPageIndex <= 2) {
|
|
176
|
+
// Case 3: in the last block containing max 2 pages
|
|
177
|
+
firstPageIndex = firstPageIndex - this.numberOfReachablePages;
|
|
178
|
+
this.pages = [
|
|
179
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
180
|
+
].map((x) => x + firstPageIndex);
|
|
181
|
+
} else {
|
|
182
|
+
// Case 4: one block before the last with last block containing max 2 pages
|
|
183
|
+
this.pages = [
|
|
184
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
185
|
+
].map((x) => x + firstPageIndex);
|
|
186
|
+
}
|
|
187
|
+
} else if (this._totalNumberOfPages - 1 - firstPageIndex <= 3) {
|
|
188
|
+
// Case 5: in the last block containing 2 pages or more
|
|
189
|
+
firstPageIndex = firstPageIndex - this.numberOfReachablePages;
|
|
190
|
+
this.pages = [
|
|
191
|
+
...Array(this._totalNumberOfPages - firstPageIndex).keys(),
|
|
192
|
+
].map((x) => x + firstPageIndex);
|
|
193
|
+
} else {
|
|
194
|
+
// Case 6: same as case 4 but the next block contains at least 2 pages
|
|
195
|
+
this.pages = [...Array(this.numberOfReachablePages).keys()].map(
|
|
196
|
+
(x) => x + firstPageIndex
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Emits an event notifying that a change of the paginator's properties has been triggered. */
|
|
203
|
+
private _emitPageEvent(previousPageIndex: number) {
|
|
204
|
+
this.page.emit({
|
|
205
|
+
previousPageIndex,
|
|
206
|
+
pageIndex: this._pageIndex,
|
|
207
|
+
pageSize: this._pageSize,
|
|
208
|
+
length: this._length,
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
// Deprecated
|
|
212
|
+
this.onRequestPage.emit(this._pageIndex);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
|
|
6
|
+
import { OnemrvaMatPaginatorComponent } from './onemrva-mat-paginator.component';
|
|
7
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
8
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
9
|
+
|
|
10
|
+
@NgModule({
|
|
11
|
+
declarations: [OnemrvaMatPaginatorComponent],
|
|
12
|
+
imports: [CommonModule, TranslateModule, MatButtonModule, MatSelectModule, MatDividerModule],
|
|
13
|
+
exports: [OnemrvaMatPaginatorComponent],
|
|
14
|
+
})
|
|
15
|
+
export class OnemrvaMatPaginatorModule {}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './src/onemrva-mat-panel.module';
|
|
2
|
+
export * from './src/onemrva-mat-panel.component';
|
|
3
|
+
export * from './src/onemrva-mat-panel-title.component';
|
|
4
|
+
export * from './src/onemrva-mat-panel-content.component';
|
|
5
|
+
export * from './src/onemrva-mat-panel-title-action.component';
|
|
6
|
+
export * from './src/onemrva-mat-panel-icon.component';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {Component, Input, TemplateRef, ViewChild} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-mat-panel-content',
|
|
5
|
+
templateUrl: './onemrva-mat-panel-content.html',
|
|
6
|
+
})
|
|
7
|
+
export class OnemrvaMatPanelContentComponent {
|
|
8
|
+
@Input() customNgClass: any;
|
|
9
|
+
|
|
10
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
11
|
+
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {Component, Input, TemplateRef, ViewChild} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-mat-panel-icon',
|
|
5
|
+
templateUrl: './onemrva-mat-panel-icon.html',
|
|
6
|
+
})
|
|
7
|
+
export class OnemrvaMatPanelIconComponent {
|
|
8
|
+
@Input() customNgClass: any;
|
|
9
|
+
|
|
10
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
11
|
+
|
|
12
|
+
}
|
package/projects/onemrva/design-system/mat-panel/src/onemrva-mat-panel-title-action.component.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {Component, Input, TemplateRef, ViewChild} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'onemrva-mat-panel-title-action',
|
|
5
|
+
templateUrl: './onemrva-mat-panel-title-action.html',
|
|
6
|
+
})
|
|
7
|
+
export class OnemrvaMatPanelTitleActionComponent {
|
|
8
|
+
@Input() customNgClass: any;
|
|
9
|
+
|
|
10
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
11
|
+
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {AfterViewInit, ChangeDetectorRef, Component, ContentChild, Input, TemplateRef, ViewChild} from "@angular/core";
|
|
2
|
+
import {OnemrvaMatPanelTitleActionComponent} from "./onemrva-mat-panel-title-action.component";
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'onemrva-mat-panel-title',
|
|
6
|
+
templateUrl: './onemrva-mat-panel-title.html',
|
|
7
|
+
})
|
|
8
|
+
export class OnemrvaMatPanelTitleComponent implements AfterViewInit{
|
|
9
|
+
@Input() customNgClass: any;
|
|
10
|
+
|
|
11
|
+
@ViewChild(TemplateRef) template?: TemplateRef<any>;
|
|
12
|
+
|
|
13
|
+
@ContentChild(OnemrvaMatPanelTitleActionComponent) content?: OnemrvaMatPanelTitleActionComponent;
|
|
14
|
+
|
|
15
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
16
|
+
|
|
17
|
+
ngAfterViewInit() {
|
|
18
|
+
this.cd.detectChanges();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<ng-container *ngIf="icon?.template as tpl">
|
|
2
|
+
<ng-container *ngTemplateOutlet="tpl"></ng-container>
|
|
3
|
+
</ng-container>
|
|
4
|
+
<h1 *ngIf="error" style="color: red">{{ error }}</h1>
|
|
5
|
+
<ng-container *ngIf="title?.template as tpl">
|
|
6
|
+
<ng-container *ngTemplateOutlet="tpl"></ng-container>
|
|
7
|
+
</ng-container>
|
|
8
|
+
<ng-container *ngIf="content?.template as tpl">
|
|
9
|
+
<ng-container *ngTemplateOutlet="tpl"></ng-container>
|
|
10
|
+
</ng-container>
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use '../../utils';
|
|
2
|
+
|
|
3
|
+
@mixin panel($theme) {
|
|
4
|
+
$panel-border-radius: 16px;
|
|
5
|
+
$panel-border-color: utils.palette($theme, 'primary', 50);
|
|
6
|
+
$panel-padding: 24px;
|
|
7
|
+
|
|
8
|
+
onemrva-mat-panel {
|
|
9
|
+
border-radius: $panel-border-radius;
|
|
10
|
+
border: 1px solid $panel-border-color;
|
|
11
|
+
padding: $panel-padding;
|
|
12
|
+
display: block;
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&.has-icon {
|
|
16
|
+
.onemrva-mat-panel-content,
|
|
17
|
+
.onemrva-mat-panel-title {
|
|
18
|
+
margin-left: 80px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.onemrva-mat-panel-icon {
|
|
23
|
+
float: left;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 50%;
|
|
26
|
+
-ms-transform: translateY(-50%);
|
|
27
|
+
transform: translateY(-50%);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.onemrva-mat-panel-content {
|
|
31
|
+
margin-top: 16px;
|
|
32
|
+
p:last-child {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.onemrva-mat-panel-title {
|
|
37
|
+
font-family: 'Poppins', sans-serif;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
font-size: 20px;
|
|
41
|
+
line-height: 35px;
|
|
42
|
+
.onemrva-mat-panel-title-action {
|
|
43
|
+
float: right;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&.mat-accent {
|
|
48
|
+
border: none;
|
|
49
|
+
background: utils.gradient($theme);
|
|
50
|
+
color: white;
|
|
51
|
+
}
|
|
52
|
+
&.mat-primary {
|
|
53
|
+
border: none;
|
|
54
|
+
background: utils.palette($theme, 'primary', 50);
|
|
55
|
+
.onemrva-mat-panel-title {
|
|
56
|
+
color: utils.palette($theme, 'grayscale', 900);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
&.mat-warn {
|
|
60
|
+
border: none;
|
|
61
|
+
background: utils.palette($theme, 'warn', 50);
|
|
62
|
+
|
|
63
|
+
.onemrva-mat-panel-title {
|
|
64
|
+
color: utils.palette($theme, 'warn', 500);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&.mat-grayscale {
|
|
68
|
+
border: none;
|
|
69
|
+
background: utils.palette($theme, 'grayscale', 50);
|
|
70
|
+
|
|
71
|
+
.onemrva-mat-panel-title {
|
|
72
|
+
color: utils.palette($theme, 'grayscale', 500);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
&.mat-info {
|
|
76
|
+
border: none;
|
|
77
|
+
background: utils.palette($theme, 'info', 50);
|
|
78
|
+
|
|
79
|
+
.onemrva-mat-panel-title {
|
|
80
|
+
color: utils.palette($theme, 'info', 500);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&.mat-success {
|
|
84
|
+
border: none;
|
|
85
|
+
background: utils.palette($theme, 'success', 50);
|
|
86
|
+
|
|
87
|
+
.onemrva-mat-panel-title {
|
|
88
|
+
color: utils.palette($theme, 'success', 500);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&.mat-error {
|
|
92
|
+
border: none;
|
|
93
|
+
background: utils.palette($theme, 'error', 50);
|
|
94
|
+
|
|
95
|
+
.onemrva-mat-panel-title {
|
|
96
|
+
color: utils.palette($theme, 'error', 500);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|