@onemrvapublic/design-system 1.0.0-beta.4 → 1.0.0-develop.1
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/README.md +9 -4
- package/assets/i18n/de.json +84 -12
- package/assets/i18n/en.json +78 -6
- package/assets/i18n/fr.json +79 -7
- package/assets/i18n/nl.json +84 -12
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +49 -0
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-layout.mjs +948 -0
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs +111 -0
- package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +318 -0
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +125 -0
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +208 -0
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +84 -0
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +90 -0
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +33 -0
- package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +211 -0
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +42 -0
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +810 -0
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +138 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +135 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +98 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +189 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +308 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +295 -0
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +210 -0
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +225 -0
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +169 -0
- package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +103 -0
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +269 -0
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +185 -0
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +118 -0
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +52 -0
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +612 -0
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +96 -0
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +72 -0
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +241 -0
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +65 -0
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +146 -0
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +36 -0
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +232 -0
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +170 -0
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +1363 -0
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +73 -0
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +166 -0
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +80 -0
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +211 -0
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-shared.mjs +2188 -0
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-utils.mjs +35 -0
- package/fesm2022/onemrvapublic-design-system-utils.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system.mjs +10573 -0
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -0
- package/flag-icon/index.d.ts +18 -0
- package/flag-icon/src/flag-icon.component.scss +12 -0
- package/index.d.ts +3140 -0
- package/layout/index.d.ts +293 -0
- package/layout/src/components/layout/layout.component.scss +90 -80
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.scss +3 -2
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.scss +9 -0
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.scss +9 -5
- package/layout/src/components/layout-left-sidenav/layout-left-sidenav.component.scss +5 -0
- package/layout/src/components/layout-sidenav/layout-sidenav.component.scss +43 -0
- package/layout/src/index.scss +0 -1
- package/mat-address/index.d.ts +36 -0
- package/mat-address/src/onemrva-address.scss +14 -0
- package/mat-avatar/index.d.ts +187 -0
- package/mat-avatar/src/onemrva-mat-avatar.component.scss +79 -123
- package/mat-breadcrumb/index.d.ts +40 -0
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +39 -53
- package/mat-carousel/index.d.ts +52 -0
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.scss +10 -0
- package/mat-carousel/src/onemrva-mat-carousel.component.scss +38 -45
- package/mat-choice-chip/index.d.ts +20 -0
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +83 -0
- package/mat-copy-to-clipboard/index.d.ts +26 -0
- package/mat-country-item/index.d.ts +10 -0
- package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +6 -1
- package/mat-datepicker-header/index.d.ts +44 -0
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.scss +8 -0
- package/mat-empty-row/index.d.ts +19 -0
- package/mat-empty-row/src/onemrva-mat-empty-row.component.scss +29 -0
- package/mat-file-upload/index.d.ts +301 -0
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.scss +48 -16
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.scss +72 -218
- package/mat-input-address/index.d.ts +32 -0
- package/mat-input-address/src/onemrva-mat-input-address.component.scss +8 -0
- package/mat-input-birthplace/index.d.ts +36 -0
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.scss +4 -2
- package/mat-input-country/index.d.ts +32 -0
- package/mat-input-country/src/onemrva-mat-input-country.component.scss +13 -0
- package/mat-input-enterprise-number/index.d.ts +37 -0
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.scss +7 -0
- package/mat-input-iban/index.d.ts +79 -0
- package/mat-input-iban/src/onemrva-mat-input-iban.component.scss +10 -0
- package/mat-input-phone/index.d.ts +44 -0
- package/mat-message-box/index.d.ts +101 -0
- package/mat-message-box/src/onemrva-mat-message-box.component.scss +13 -65
- package/mat-multi-select/index.d.ts +57 -0
- package/mat-multi-select/src/onemrva-mat-multi-select.component.scss +35 -0
- package/mat-navigation/index.d.ts +54 -0
- package/mat-navigation/src/mat-navigation-item/onemrva-mat-navigation-item.component.scss +66 -0
- package/mat-navigation/src/onemrva-mat-navigation.component.scss +36 -0
- package/mat-notification/index.d.ts +43 -0
- package/mat-notification/src/onemrva-mat-notification.component.scss +26 -0
- package/mat-paginator/index.d.ts +58 -0
- package/mat-paginator/src/onemrva-mat-paginator.component.scss +146 -0
- package/mat-panel/index.d.ts +66 -0
- package/mat-panel/src/mat-expansion-panel-header-arrow-divider.scss +11 -0
- package/mat-panel/src/onemrva-mat-panel-content.scss +8 -0
- package/mat-panel/src/onemrva-mat-panel-icon.scss +7 -0
- package/mat-panel/src/onemrva-mat-panel-title.scss +13 -0
- package/mat-panel/src/onemrva-mat-panel.component.scss +75 -82
- package/mat-pop-over/index.d.ts +40 -0
- package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +11 -11
- package/mat-progress-bar/index.d.ts +18 -0
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.scss +26 -0
- package/mat-select-search/index.d.ts +197 -0
- package/mat-select-search/src/mat-select-search.component.scss +62 -109
- package/mat-selectable-box/index.d.ts +29 -0
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.scss +68 -90
- package/mat-side-menu/index.d.ts +33 -0
- package/mat-side-menu/src/onemrva-mat-side-menu.component.scss +36 -38
- package/mat-skeleton/index.d.ts +100 -0
- package/mat-skeleton/src/onemrva-mat-skeleton.component.scss +10 -59
- package/mat-spinner/index.d.ts +25 -0
- package/mat-spinner/src/onemrva-mat-spinner.component.scss +21 -0
- package/mat-stepper/index.d.ts +36 -0
- package/mat-stepper/src/onemrva-mat-stepper.scss +40 -105
- package/mat-sticker/index.d.ts +14 -0
- package/mat-sticker/src/onemrva-mat-sticker.component.scss +26 -63
- package/mat-table-of-content/index.d.ts +84 -0
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.scss +57 -0
- package/mat-task-list/index.d.ts +57 -0
- package/mat-task-list/src/onemrva-mat-task-content.scss +11 -0
- package/mat-task-list/src/onemrva-mat-task-list.component.scss +0 -150
- package/mat-task-list/src/onemrva-mat-task-title.scss +16 -0
- package/mat-task-list/src/onemrva-mat-task.component.scss +67 -0
- package/mat-timepicker/index.d.ts +386 -0
- package/mat-timepicker/src/clock/clock.component.scss +13 -7
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.scss +2 -7
- package/mat-toast/index.d.ts +30 -0
- package/mat-toast/src/onemrva-mat-toast.component.scss +7 -49
- package/mat-tooltip/index.d.ts +39 -0
- package/mat-tooltip/src/onemrva-mat-tooltip.component.scss +8 -5
- package/package.json +196 -26
- package/page-error/index.d.ts +34 -0
- package/page-error/src/page-error.component.scss +25 -0
- package/page-not-found/index.d.ts +54 -0
- package/page-not-found/src/page-not-found-mixin.component.scss +1 -1
- package/page-not-found/src/page-not-found.component.scss +2 -2
- package/shared/index.d.ts +541 -0
- package/utils/index.d.ts +32 -0
- package/.eslintrc.json +0 -33
- package/_index.scss +0 -34
- package/_utils.scss +0 -30
- package/core/index.ts +0 -3
- package/core/ng-package.json +0 -6
- package/core/src/lib/core.module.ts +0 -26
- package/core/src/lib/modules/index.ts +0 -1
- package/core/src/lib/modules/translate.loader.ts +0 -34
- package/core/src/lib/modules/translate.module.ts +0 -66
- package/core/src/lib/services/index.ts +0 -2
- package/core/src/lib/services/onemrva-error-handler.service.ts +0 -24
- package/core/src/lib/services/onemrva-missing-translation.service.ts +0 -12
- package/core/src/test.ts +0 -30
- package/layout/index.ts +0 -7
- package/layout/ng-package.json +0 -6
- package/layout/src/components/index.ts +0 -37
- package/layout/src/components/layout/_layout-mixin.component.scss +0 -189
- package/layout/src/components/layout/layout.component.html +0 -213
- package/layout/src/components/layout/layout.component.spec.ts +0 -59
- package/layout/src/components/layout/layout.component.ts +0 -185
- package/layout/src/components/layout-after-nav/layout-after-nav.component.spec.ts +0 -24
- package/layout/src/components/layout-after-nav/layout-after-nav.component.ts +0 -24
- package/layout/src/components/layout-content/layout-content.component.spec.ts +0 -24
- package/layout/src/components/layout-content/layout-content.component.ts +0 -24
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.html +0 -1
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.ts +0 -14
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.html +0 -1
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.ts +0 -14
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.html +0 -7
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.ts +0 -18
- package/layout/src/components/layout-footer/layout-footer.component.ts +0 -11
- package/layout/src/components/layout-login-menu/layout-login-menu.component.spec.ts +0 -24
- package/layout/src/components/layout-login-menu/layout-login-menu.component.ts +0 -24
- package/layout/src/components/layout-route/layout-route.component.html +0 -64
- package/layout/src/components/layout-route/layout-route.component.spec.ts +0 -24
- package/layout/src/components/layout-route/layout-route.component.ts +0 -57
- package/layout/src/components/layout-sidenav/layout-sidenav.component.html +0 -104
- package/layout/src/components/layout-sidenav/layout-sidenav.component.ts +0 -88
- package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.ts +0 -9
- package/layout/src/components/layout-subroute/layout-subroute.component.html +0 -43
- package/layout/src/components/layout-subroute/layout-subroute.component.spec.ts +0 -24
- package/layout/src/components/layout-subroute/layout-subroute.component.ts +0 -62
- package/layout/src/components/layout-title/layout-title.component.spec.ts +0 -24
- package/layout/src/components/layout-title/layout-title.component.ts +0 -24
- package/layout/src/decorators/coerce-boolean-input.decorator.ts +0 -19
- package/layout/src/decorators/observable-content.decorator.ts +0 -13
- package/layout/src/directives/drawer-host.directive.ts +0 -42
- package/layout/src/enums/environment.enum.ts +0 -6
- package/layout/src/layout.module.ts +0 -47
- package/layout/src/models/onem-language.model.ts +0 -4
- package/layout/src/models/onemrva-profile.model.ts +0 -57
- package/layout/src/services/drawer.service.ts +0 -30
- package/layout/src/striphtml.pipe.ts +0 -10
- package/layout/src/test.ts +0 -31
- package/mat-avatar/index.ts +0 -2
- package/mat-avatar/ng-package.json +0 -6
- package/mat-avatar/src/onemrva-mat-avatar.component.html +0 -21
- package/mat-avatar/src/onemrva-mat-avatar.component.ts +0 -421
- package/mat-avatar/src/onemrva-mat-avatar.module.ts +0 -11
- package/mat-avatar/src/onemrva-mat.avatar.component.spec.ts +0 -54
- package/mat-badge/index.ts +0 -6
- package/mat-badge/ng-package.json +0 -6
- package/mat-badge/src/onemrva-mat-badge.component.scss +0 -157
- package/mat-badge/src/onemrva-mat-badge.component.ts +0 -331
- package/mat-badge/src/onemrva-mat-badge.module.ts +0 -8
- package/mat-breadcrumb/index.ts +0 -7
- package/mat-breadcrumb/ng-package.json +0 -6
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.html +0 -37
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.ts +0 -16
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.ts +0 -4
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.ts +0 -12
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.ts +0 -65
- package/mat-carousel/index.ts +0 -2
- package/mat-carousel/ng-package.json +0 -6
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.html +0 -5
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.ts +0 -27
- package/mat-carousel/src/onemrva-mat-carousel-item.directive.ts +0 -8
- package/mat-carousel/src/onemrva-mat-carousel.component.html +0 -43
- package/mat-carousel/src/onemrva-mat-carousel.component.ts +0 -160
- package/mat-copy-to-clipboard/index.ts +0 -1
- package/mat-copy-to-clipboard/ng-package.json +0 -6
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.html +0 -14
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.ts +0 -76
- package/mat-datepicker-header/index.ts +0 -5
- package/mat-datepicker-header/ng-package.json +0 -6
- package/mat-datepicker-header/src/_onemrva-mat-datepicker-header.component.scss +0 -12
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.html +0 -54
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.ts +0 -283
- package/mat-file-upload/index.ts +0 -11
- package/mat-file-upload/ng-package.json +0 -6
- package/mat-file-upload/src/components/index.ts +0 -10
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html +0 -59
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts +0 -79
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html +0 -58
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts +0 -209
- package/mat-file-upload/src/directives/dnd.directive.ts +0 -41
- package/mat-file-upload/src/models/action-config.model.ts +0 -10
- package/mat-file-upload/src/models/progress-file.model.ts +0 -94
- package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.ts +0 -79
- package/mat-file-upload/src/onemrva-mat-file-upload.module.ts +0 -28
- package/mat-file-upload/src/onemrva-mat-file-upload.service.ts +0 -68
- package/mat-file-upload/src/onemrva-mat-file-upload.store.ts +0 -482
- package/mat-input-bank-account/index.ts +0 -5
- package/mat-input-bank-account/ng-package.json +0 -6
- package/mat-input-bank-account/src/bank-account.component.html +0 -36
- package/mat-input-bank-account/src/bank-account.component.scss +0 -42
- package/mat-input-bank-account/src/bank-account.component.ts +0 -308
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.html +0 -11
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.scss +0 -14
- package/mat-input-bank-account/src/onemrva-mat-input-bank-account.component.ts +0 -82
- package/mat-input-birthplace/index.ts +0 -5
- package/mat-input-birthplace/ng-package.json +0 -6
- package/mat-input-birthplace/src/country-item.component.html +0 -8
- package/mat-input-birthplace/src/country-item.component.ts +0 -33
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.html +0 -28
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.ts +0 -129
- package/mat-input-country/index.ts +0 -6
- package/mat-input-country/ng-package.json +0 -6
- package/mat-input-country/src/countries.ts +0 -3198
- package/mat-input-country/src/onemrva-mat-input-country.component.html +0 -25
- package/mat-input-country/src/onemrva-mat-input-country.component.ts +0 -152
- package/mat-input-enterprise-number/index.ts +0 -5
- package/mat-input-enterprise-number/ng-package.json +0 -6
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.html +0 -42
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.ts +0 -212
- package/mat-input-phone/index.ts +0 -6
- package/mat-input-phone/ng-package.json +0 -6
- package/mat-input-phone/src/onemrva-mat-input-phone.component.html +0 -47
- package/mat-input-phone/src/onemrva-mat-input-phone.component.ts +0 -274
- package/mat-input-phone/src/phone-number.directive.ts +0 -46
- package/mat-message-box/index.ts +0 -2
- package/mat-message-box/ng-package.json +0 -6
- package/mat-message-box/src/onemrva-mat-message-box.component.html +0 -3
- package/mat-message-box/src/onemrva-mat-message-box.component.ts +0 -172
- package/mat-message-box/src/onemrva-mat-message-box.module.ts +0 -12
- package/mat-multi-select/index.ts +0 -2
- package/mat-multi-select/ng-package.json +0 -6
- package/mat-multi-select/src/_onemrva-mat-multi-select.component.scss +0 -66
- package/mat-multi-select/src/onemrva-mat-multi-select.component.html +0 -44
- package/mat-multi-select/src/onemrva-mat-multi-select.component.ts +0 -194
- package/mat-multi-select/src/onemrva-mat-multi-select.module.ts +0 -27
- package/mat-multi-select/src/onemrva-mat-select-counter.component.ts +0 -0
- package/mat-notification/index.ts +0 -1
- package/mat-notification/ng-package.json +0 -6
- package/mat-notification/src/_onemrva-mat-notification.component.scss +0 -102
- package/mat-notification/src/onemrva-mat-notification.component.html +0 -15
- package/mat-notification/src/onemrva-mat-notification.component.ts +0 -158
- package/mat-paginator/index.ts +0 -6
- package/mat-paginator/ng-package.json +0 -6
- package/mat-paginator/src/_onemrva-mat-paginator.component.scss +0 -122
- package/mat-paginator/src/onemrva-mat-paginator.component.html +0 -108
- package/mat-paginator/src/onemrva-mat-paginator.component.spec.ts +0 -184
- package/mat-paginator/src/onemrva-mat-paginator.component.ts +0 -216
- package/mat-paginator/src/onemrva-mat-paginator.module.ts +0 -21
- package/mat-panel/index.ts +0 -6
- package/mat-panel/ng-package.json +0 -6
- package/mat-panel/src/onemrva-mat-panel-content.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-content.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-icon.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-icon.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-title-action.component.ts +0 -11
- package/mat-panel/src/onemrva-mat-panel-title-action.html +0 -5
- package/mat-panel/src/onemrva-mat-panel-title.component.ts +0 -29
- package/mat-panel/src/onemrva-mat-panel-title.html +0 -8
- package/mat-panel/src/onemrva-mat-panel.component.html +0 -10
- package/mat-panel/src/onemrva-mat-panel.component.ts +0 -122
- package/mat-panel/src/onemrva-mat-panel.module.ts +0 -26
- package/mat-pop-over/index.ts +0 -4
- package/mat-pop-over/ng-package.json +0 -6
- package/mat-pop-over/src/onemrva-mat-pop-over-content.component.ts +0 -13
- package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.ts +0 -13
- package/mat-pop-over/src/onemrva-mat-pop-over.component.html +0 -29
- package/mat-pop-over/src/onemrva-mat-pop-over.component.ts +0 -46
- package/mat-pop-over/src/onemrva-mat-pop-over.module.ts +0 -19
- package/mat-progress-bar/index.ts +0 -1
- package/mat-progress-bar/ng-package.json +0 -6
- package/mat-progress-bar/src/_onemrva-mat-progress-bar-mixin.component.scss +0 -37
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.html +0 -13
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.ts +0 -27
- package/mat-select-search/index.ts +0 -3
- package/mat-select-search/ng-package.json +0 -6
- package/mat-select-search/src/default-options.ts +0 -48
- package/mat-select-search/src/mat-select-no-entries-found.directive.ts +0 -15
- package/mat-select-search/src/mat-select-search-clear.directive.ts +0 -13
- package/mat-select-search/src/mat-select-search.component.html +0 -82
- package/mat-select-search/src/mat-select-search.component.spec.ts +0 -790
- package/mat-select-search/src/mat-select-search.component.ts +0 -705
- package/mat-select-search/src/mat-select-search.module.ts +0 -52
- package/mat-selectable-box/index.ts +0 -6
- package/mat-selectable-box/ng-package.json +0 -6
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.ts +0 -99
- package/mat-selectable-box/src/onemrva-mat-selectable-box.module.ts +0 -30
- package/mat-side-menu/index.ts +0 -6
- package/mat-side-menu/ng-package.json +0 -6
- package/mat-side-menu/src/onemrva-mat-side-menu.component.html +0 -36
- package/mat-side-menu/src/onemrva-mat-side-menu.component.spec.ts +0 -66
- package/mat-side-menu/src/onemrva-mat-side-menu.component.ts +0 -58
- package/mat-side-menu/src/onemrva-mat-side-menu.module.ts +0 -14
- package/mat-skeleton/index.ts +0 -3
- package/mat-skeleton/ng-package.json +0 -6
- package/mat-skeleton/src/onemrva-mat-skeleton-enums.ts +0 -32
- package/mat-skeleton/src/onemrva-mat-skeleton.component.html +0 -14
- package/mat-skeleton/src/onemrva-mat-skeleton.component.ts +0 -187
- package/mat-skeleton/src/onemrva-mat-skeleton.module.ts +0 -10
- package/mat-spinner/index.ts +0 -7
- package/mat-spinner/ng-package.json +0 -6
- package/mat-spinner/src/_onemrva-mat-spinner.component.scss +0 -151
- package/mat-spinner/src/onemrva-mat-loading.directive.ts +0 -41
- package/mat-spinner/src/onemrva-mat-spinner.component.html +0 -2138
- package/mat-spinner/src/onemrva-mat-spinner.component.ts +0 -52
- package/mat-spinner/src/onemrva-mat-spinner.module.ts +0 -10
- package/mat-stepper/index.ts +0 -6
- package/mat-stepper/ng-package.json +0 -6
- package/mat-stepper/src/_stepper-variables.scss +0 -29
- package/mat-stepper/src/onemrva-mat-stepper.component.spec.ts +0 -22
- package/mat-stepper/src/onemrva-mat-stepper.component.ts +0 -57
- package/mat-stepper/src/onemrva-mat-stepper.html +0 -61
- package/mat-stepper/src/onemrva-mat-stepper.module.ts +0 -24
- package/mat-stepper/src/onemrva-stepper-animations.ts +0 -42
- package/mat-sticker/index.ts +0 -6
- package/mat-sticker/ng-package.json +0 -6
- package/mat-sticker/src/onemrva-mat-sticker.component.spec.ts +0 -16
- package/mat-sticker/src/onemrva-mat-sticker.component.ts +0 -58
- package/mat-sticker/src/onemrva-mat-sticker.module.ts +0 -10
- package/mat-table-of-content/index.ts +0 -8
- package/mat-table-of-content/ng-package.json +0 -6
- package/mat-table-of-content/src/_onemrva-mat-table-of-content.component.scss +0 -79
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.html +0 -23
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.ts +0 -126
- package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.ts +0 -67
- package/mat-table-of-content/src/onemrva-mat-table-of-content.service.ts +0 -51
- package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.ts +0 -24
- package/mat-task-list/index.ts +0 -5
- package/mat-task-list/ng-package.json +0 -6
- package/mat-task-list/src/onemrva-mat-task-content.component.ts +0 -11
- package/mat-task-list/src/onemrva-mat-task-content.html +0 -5
- package/mat-task-list/src/onemrva-mat-task-list.component.html +0 -1
- package/mat-task-list/src/onemrva-mat-task-list.component.ts +0 -39
- package/mat-task-list/src/onemrva-mat-task-list.module.ts +0 -31
- package/mat-task-list/src/onemrva-mat-task-title.component.ts +0 -24
- package/mat-task-list/src/onemrva-mat-task-title.html +0 -5
- package/mat-task-list/src/onemrva-mat-task.component.html +0 -23
- package/mat-task-list/src/onemrva-mat-task.component.ts +0 -121
- package/mat-timepicker/index.ts +0 -6
- package/mat-timepicker/ng-package.json +0 -6
- package/mat-timepicker/src/clock/clock.component.html +0 -109
- package/mat-timepicker/src/clock/clock.component.spec.ts +0 -38
- package/mat-timepicker/src/clock/clock.component.ts +0 -274
- package/mat-timepicker/src/interfaces-and-types.ts +0 -18
- package/mat-timepicker/src/onemrva-mat-timepicker.component.html +0 -0
- package/mat-timepicker/src/onemrva-mat-timepicker.component.ts +0 -300
- package/mat-timepicker/src/onemrva-mat-timepicker.module.ts +0 -40
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.html +0 -53
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.spec.ts +0 -41
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.ts +0 -176
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.html +0 -15
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.ts +0 -140
- package/mat-timepicker/src/timepicker.directive.ts +0 -596
- package/mat-timepicker/src/util.ts +0 -109
- package/mat-toast/index.ts +0 -6
- package/mat-toast/ng-package.json +0 -6
- package/mat-toast/src/onemrva-mat-toast.component.ts +0 -36
- package/mat-toast/src/onemrva-mat-toast.module.ts +0 -11
- package/mat-tooltip/index.ts +0 -4
- package/mat-tooltip/ng-package.json +0 -6
- package/mat-tooltip/src/onemrva-mat-tooltip.component.ts +0 -21
- package/mat-tooltip/src/onemrva-mat-tooltip.directive.ts +0 -123
- package/mat-tooltip/src/onemrva-mat-tooltip.module.ts +0 -11
- package/ng-package.json +0 -25
- package/npm-shrinkwrap.json +0 -30
- package/page-not-found/index.ts +0 -5
- package/page-not-found/ng-package.json +0 -6
- package/page-not-found/src/page-not-found-action.component.ts +0 -9
- package/page-not-found/src/page-not-found-extra.component.ts +0 -9
- package/page-not-found/src/page-not-found-invader.component.ts +0 -93
- package/page-not-found/src/page-not-found.component.html +0 -47
- package/page-not-found/src/page-not-found.component.ts +0 -60
- package/page-not-found/src/page-not-found.module.ts +0 -24
- package/shared/index.ts +0 -17
- package/shared/ng-package.json +0 -6
- package/shared/src/lib/OnemrvaDateAdapter.ts +0 -78
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.css +0 -0
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.html +0 -1
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.spec.ts +0 -21
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.ts +0 -18
- package/shared/src/lib/containers/WebComponentOverlayContainer.ts +0 -90
- package/shared/src/lib/containers/index.ts +0 -1
- package/shared/src/lib/date.format.ts +0 -11
- package/shared/src/lib/directives/clipboard.directive.ts +0 -52
- package/shared/src/lib/directives/color.directive.ts +0 -46
- package/shared/src/lib/directives/digit-only.directive.ts +0 -46
- package/shared/src/lib/directives/if-width-is.directive.ts +0 -39
- package/shared/src/lib/directives/index.ts +0 -22
- package/shared/src/lib/directives/mask.directive.ts +0 -223
- package/shared/src/lib/directives/mat-row-clickable.directive.ts +0 -66
- package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.ts +0 -23
- package/shared/src/lib/interfaces/index.ts +0 -1
- package/shared/src/lib/pipes/index.ts +0 -2
- package/shared/src/lib/pipes/onemrva-bce.pipe.ts +0 -18
- package/shared/src/lib/pipes/onemrva-niss.pipe.ts +0 -18
- package/shared/src/lib/services/commonCountryLookup.service.ts +0 -50
- package/shared/src/lib/services/index.ts +0 -1
- package/shared/src/lib/shared.datepicker.module.ts +0 -60
- package/shared/src/lib/shared.module.ts +0 -10
- package/shared/src/lib/validators/bankAccountValidator.utils.ts +0 -61
- package/shared/src/lib/validators/onemrva-validators.spec.ts +0 -79
- package/shared/src/lib/validators/onemrva-validators.ts +0 -97
- package/shared/src/onemrva-validators.spec.ts +0 -14
- package/src/polyfills.ts +0 -52
- package/src/public-api.spec.ts +0 -7
- package/src/public-api.ts +0 -5
- package/tsconfig.lib.json +0 -12
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -10
- package/utils/index.ts +0 -2
- package/utils/ng-package.json +0 -6
- package/utils/src/enum.utils.ts +0 -8
- package/utils/src/enums/color.enum.ts +0 -14
- package/utils/src/enums/index.ts +0 -2
- package/utils/src/enums/size.enum.ts +0 -11
- /package/{assets/.gitkeep → mat-navigation/src/mat-navigation-tree/onemrva-mat-navigation-tree.component.scss} +0 -0
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterContentChecked,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
|
-
Component,
|
|
5
|
-
ContentChildren,
|
|
6
|
-
forwardRef,
|
|
7
|
-
HostBinding,
|
|
8
|
-
Input,
|
|
9
|
-
OnDestroy,
|
|
10
|
-
OnInit,
|
|
11
|
-
QueryList,
|
|
12
|
-
} from '@angular/core';
|
|
13
|
-
import { FormControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
|
-
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
15
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
16
|
-
import { MatOption } from '@angular/material/core';
|
|
17
|
-
import {
|
|
18
|
-
debounceTime,
|
|
19
|
-
map,
|
|
20
|
-
Observable,
|
|
21
|
-
startWith,
|
|
22
|
-
Subject,
|
|
23
|
-
takeUntil,
|
|
24
|
-
} from 'rxjs';
|
|
25
|
-
|
|
26
|
-
let NEXT_ID = 0;
|
|
27
|
-
|
|
28
|
-
@Component({
|
|
29
|
-
selector: 'onemrva-mat-multi-select',
|
|
30
|
-
templateUrl: 'onemrva-mat-multi-select.component.html',
|
|
31
|
-
providers: [
|
|
32
|
-
{
|
|
33
|
-
provide: MatFormFieldControl,
|
|
34
|
-
useExisting: OnemrvaMatMultiSelectComponent,
|
|
35
|
-
multi: false,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
provide: NG_VALUE_ACCESSOR,
|
|
39
|
-
useExisting: forwardRef(() => OnemrvaMatMultiSelectComponent),
|
|
40
|
-
multi: true,
|
|
41
|
-
},
|
|
42
|
-
// {
|
|
43
|
-
// provide: MatFormFieldControl,
|
|
44
|
-
// useExisting: OnemrvaMatMultiSelectComponent,
|
|
45
|
-
// },
|
|
46
|
-
// {
|
|
47
|
-
// provide: MAT_OPTION_PARENT_COMPONENT,
|
|
48
|
-
// useExisting: OnemrvaMatMultiSelectComponent,
|
|
49
|
-
// },
|
|
50
|
-
],
|
|
51
|
-
})
|
|
52
|
-
export class OnemrvaMatMultiSelectComponent
|
|
53
|
-
extends MatFormFieldControl<any>
|
|
54
|
-
implements OnInit, OnDestroy, AfterContentChecked
|
|
55
|
-
{
|
|
56
|
-
counter = 0;
|
|
57
|
-
_values: any[] = [];
|
|
58
|
-
public override stateChanges: Observable<any> = new Observable<any>();
|
|
59
|
-
|
|
60
|
-
@Input()
|
|
61
|
-
formControl!: FormControl;
|
|
62
|
-
|
|
63
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
64
|
-
@Input('attr.role')
|
|
65
|
-
public role = 'select';
|
|
66
|
-
|
|
67
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
68
|
-
@Input('attr.aria-label')
|
|
69
|
-
public label = '';
|
|
70
|
-
|
|
71
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
72
|
-
@Input('attr.aria-invalid')
|
|
73
|
-
public invalid = false;
|
|
74
|
-
|
|
75
|
-
@Input()
|
|
76
|
-
showFilter: boolean = true;
|
|
77
|
-
|
|
78
|
-
@Input()
|
|
79
|
-
selectionToggle: boolean = true;
|
|
80
|
-
|
|
81
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
82
|
-
@Input('attr.data-cy')
|
|
83
|
-
public dataCy = `onemrva-mat-multi-select-${NEXT_ID++}`;
|
|
84
|
-
|
|
85
|
-
searchFilter: FormControl = new FormControl<string>('');
|
|
86
|
-
|
|
87
|
-
@ContentChildren(MatOption)
|
|
88
|
-
matOptions: QueryList<MatOption> = new QueryList<MatOption>();
|
|
89
|
-
matOptions$?: Observable<MatOption<any>[]>;
|
|
90
|
-
private onDestroy$: Subject<any> = new Subject<any>();
|
|
91
|
-
|
|
92
|
-
@HostBinding('style.opacity')
|
|
93
|
-
get opacity() {
|
|
94
|
-
return this.disabled ? 0.25 : 1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
constructor(
|
|
98
|
-
public translate: TranslateService,
|
|
99
|
-
public cd: ChangeDetectorRef,
|
|
100
|
-
) {
|
|
101
|
-
super();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Function to call when the rating changes.
|
|
105
|
-
onChange = (_values: any[]) => {};
|
|
106
|
-
|
|
107
|
-
// Function to call when the input is touched (when a star is clicked).
|
|
108
|
-
onTouched = () => {};
|
|
109
|
-
|
|
110
|
-
// Allows Angular to update the model (rating).
|
|
111
|
-
// Update the model and changes needed for the view here.
|
|
112
|
-
writeValue(values: any[]): void {
|
|
113
|
-
if (values !== null) this.counter = values.length;
|
|
114
|
-
this._values = values;
|
|
115
|
-
this.onChange(this._values);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Allows Angular to register a function to call when the model (rating) changes.
|
|
119
|
-
// Save the function as a property to call later here.
|
|
120
|
-
registerOnChange(fn: (value: any[]) => void): void {
|
|
121
|
-
this.onChange = fn;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Allows Angular to register a function to call when the input has been touched.
|
|
125
|
-
// Save the function as a property to call later here.
|
|
126
|
-
registerOnTouched(fn: () => void): void {
|
|
127
|
-
this.onTouched = fn;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
isAllSelected() {
|
|
131
|
-
return this.counter === this.matOptions.length;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
selectAll() {
|
|
135
|
-
this._values = this.matOptions.map(option => {
|
|
136
|
-
return option.value;
|
|
137
|
-
});
|
|
138
|
-
this.formControl.setValue(this._values);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
isNoneSelected() {
|
|
142
|
-
return this.counter === 0;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
deselectAll(_$event: MouseEvent) {
|
|
146
|
-
this._values = [];
|
|
147
|
-
this.formControl.setValue(this._values);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
onContainerClick(_event: MouseEvent): void {}
|
|
151
|
-
|
|
152
|
-
setDescribedByIds(_ids: string[]): void {}
|
|
153
|
-
|
|
154
|
-
ngOnDestroy(): void {
|
|
155
|
-
this.onDestroy$.next('');
|
|
156
|
-
this.onDestroy$.complete();
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
private optionSize = 0;
|
|
160
|
-
|
|
161
|
-
ngOnInit(): void {
|
|
162
|
-
this.matOptions$ = this.searchFilter.valueChanges.pipe(
|
|
163
|
-
debounceTime(200),
|
|
164
|
-
startWith(''),
|
|
165
|
-
map((value: string) => {
|
|
166
|
-
this.optionSize = this.matOptions.length;
|
|
167
|
-
if (value === '') {
|
|
168
|
-
return this.matOptions.filter(_o => {
|
|
169
|
-
return true;
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
return this.matOptions.filter(option => {
|
|
173
|
-
return option?._text?.nativeElement.innerHTML
|
|
174
|
-
.toLowerCase()
|
|
175
|
-
.includes(value.toLowerCase());
|
|
176
|
-
});
|
|
177
|
-
}),
|
|
178
|
-
);
|
|
179
|
-
this.formControl.valueChanges
|
|
180
|
-
.pipe(takeUntil(this.onDestroy$))
|
|
181
|
-
.subscribe(values => {
|
|
182
|
-
this._values = values;
|
|
183
|
-
this.counter = this._values.length;
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
ngAfterContentChecked(): void {
|
|
188
|
-
if (this.matOptions.length !== this.optionSize) {
|
|
189
|
-
this.optionSize = this.matOptions.length;
|
|
190
|
-
this.counter = 0;
|
|
191
|
-
this.searchFilter.updateValueAndValidity({ emitEvent: true });
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { OnemrvaMatMultiSelectComponent } from './onemrva-mat-multi-select.component';
|
|
4
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
5
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
-
import { MatInputModule } from '@angular/material/input';
|
|
7
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
8
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
9
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
10
|
-
import { MatSelectSearchModule } from '@onemrvapublic/design-system/mat-select-search';
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
declarations: [OnemrvaMatMultiSelectComponent],
|
|
14
|
-
imports: [
|
|
15
|
-
CommonModule,
|
|
16
|
-
FormsModule,
|
|
17
|
-
TranslateModule,
|
|
18
|
-
MatFormFieldModule,
|
|
19
|
-
MatSelectModule,
|
|
20
|
-
MatInputModule,
|
|
21
|
-
MatIconModule,
|
|
22
|
-
MatSelectSearchModule,
|
|
23
|
-
ReactiveFormsModule,
|
|
24
|
-
],
|
|
25
|
-
exports: [OnemrvaMatMultiSelectComponent],
|
|
26
|
-
})
|
|
27
|
-
export class OnemrvaMatMultiSelectModule {}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/onemrva-mat-notification.component';
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
@use '../../utils' as utils;
|
|
2
|
-
|
|
3
|
-
@mixin notification($theme) {
|
|
4
|
-
onemrva-mat-notification {
|
|
5
|
-
position: fixed;
|
|
6
|
-
top: 92px;
|
|
7
|
-
left: 0;
|
|
8
|
-
right: 0;
|
|
9
|
-
transition: max-height 400ms ease-out;
|
|
10
|
-
max-height: 100vh;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
z-index: 21;
|
|
13
|
-
|
|
14
|
-
.onemrva-mat-notification {
|
|
15
|
-
position: relative;
|
|
16
|
-
|
|
17
|
-
.onemrva-mat-notification-content {
|
|
18
|
-
padding: 16px 0 16px 32px;
|
|
19
|
-
&:before {
|
|
20
|
-
position: absolute;
|
|
21
|
-
top: 16px;
|
|
22
|
-
left: 16px;
|
|
23
|
-
width: 26px;
|
|
24
|
-
font-family: 'Material Icons';
|
|
25
|
-
font-size: 20px;
|
|
26
|
-
font-variation-settings:
|
|
27
|
-
'FILL' 1,
|
|
28
|
-
'wght' 400,
|
|
29
|
-
'GRAD' 0,
|
|
30
|
-
'opsz' 48;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.close-notification {
|
|
36
|
-
float: right;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&.collapse-notification {
|
|
40
|
-
max-height: 0;
|
|
41
|
-
border-bottom: none !important;
|
|
42
|
-
}
|
|
43
|
-
&.mat-info {
|
|
44
|
-
background-color: utils.palette($theme, 'info', 50);
|
|
45
|
-
color: utils.palette($theme, 'info', 500);
|
|
46
|
-
border-bottom: 1px solid utils.palette($theme, 'info', 500);
|
|
47
|
-
.onemrva-mat-notification-content {
|
|
48
|
-
a {
|
|
49
|
-
color: utils.palette($theme, 'info', 500);
|
|
50
|
-
font-weight: bold;
|
|
51
|
-
}
|
|
52
|
-
&:before {
|
|
53
|
-
content: '\e88e';
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
&.mat-success {
|
|
58
|
-
background-color: utils.palette($theme, 'success', 50);
|
|
59
|
-
color: utils.palette($theme, 'success', 600);
|
|
60
|
-
border-bottom: 1px solid utils.palette($theme, 'success', 600);
|
|
61
|
-
.onemrva-mat-notification-content {
|
|
62
|
-
a {
|
|
63
|
-
color: utils.palette($theme, 'success', 500);
|
|
64
|
-
font-weight: bold;
|
|
65
|
-
}
|
|
66
|
-
&:before {
|
|
67
|
-
content: '\e86c';
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
&.mat-warn {
|
|
72
|
-
background-color: utils.palette($theme, 'warn', 50);
|
|
73
|
-
color: utils.palette($theme, 'warn', 600);
|
|
74
|
-
border-bottom: 1px solid utils.palette($theme, 'warn', 600);
|
|
75
|
-
|
|
76
|
-
.onemrva-mat-notification-content {
|
|
77
|
-
a {
|
|
78
|
-
color: utils.palette($theme, 'warn', 500);
|
|
79
|
-
font-weight: bold;
|
|
80
|
-
}
|
|
81
|
-
&:before {
|
|
82
|
-
content: '\e002';
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
&.mat-error {
|
|
87
|
-
background-color: utils.palette($theme, 'error', 50);
|
|
88
|
-
color: utils.palette($theme, 'error', 500);
|
|
89
|
-
border-bottom: 1px solid utils.palette($theme, 'error', 500);
|
|
90
|
-
|
|
91
|
-
.onemrva-mat-notification-content {
|
|
92
|
-
a {
|
|
93
|
-
color: utils.palette($theme, 'error', 500);
|
|
94
|
-
font-weight: bold;
|
|
95
|
-
}
|
|
96
|
-
&:before {
|
|
97
|
-
content: '\e000';
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<div class="onemrva-mat-notification container">
|
|
2
|
-
<div class="onemrva-mat-notification-content">
|
|
3
|
-
<ng-container *ngIf="message !== ''">{{
|
|
4
|
-
message | translate
|
|
5
|
-
}}</ng-container>
|
|
6
|
-
<ng-content></ng-content>
|
|
7
|
-
<mat-icon
|
|
8
|
-
class="close-notification"
|
|
9
|
-
(click)="closeNotification()"
|
|
10
|
-
*ngIf="closable || isSmall"
|
|
11
|
-
>
|
|
12
|
-
close
|
|
13
|
-
</mat-icon>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BreakpointObserver,
|
|
3
|
-
Breakpoints,
|
|
4
|
-
BreakpointState,
|
|
5
|
-
} from '@angular/cdk/layout';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import {
|
|
8
|
-
Component,
|
|
9
|
-
EventEmitter,
|
|
10
|
-
HostBinding,
|
|
11
|
-
Input,
|
|
12
|
-
OnDestroy,
|
|
13
|
-
Output,
|
|
14
|
-
} from '@angular/core';
|
|
15
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
16
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
17
|
-
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
18
|
-
import { Subject, takeUntil } from 'rxjs';
|
|
19
|
-
|
|
20
|
-
@Component({
|
|
21
|
-
selector: 'onemrva-mat-notification',
|
|
22
|
-
templateUrl: 'onemrva-mat-notification.component.html',
|
|
23
|
-
standalone: true,
|
|
24
|
-
imports: [CommonModule, TranslateModule, MatIconModule],
|
|
25
|
-
})
|
|
26
|
-
export class OnemrvaMatNotificationComponent implements OnDestroy {
|
|
27
|
-
@Input() message: string = '';
|
|
28
|
-
@Input() closable: boolean = true;
|
|
29
|
-
|
|
30
|
-
_isOpen = true;
|
|
31
|
-
|
|
32
|
-
@Output()
|
|
33
|
-
notificationClose: EventEmitter<void> = new EventEmitter();
|
|
34
|
-
|
|
35
|
-
/** @hidden @internal */
|
|
36
|
-
@HostBinding('class.collapse-notification')
|
|
37
|
-
public get _closed(): boolean {
|
|
38
|
-
return !this._isOpen;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@HostBinding('attr.id')
|
|
42
|
-
@Input()
|
|
43
|
-
public id = `onemrva-mat-notification`;
|
|
44
|
-
|
|
45
|
-
@HostBinding('attr.data-cy')
|
|
46
|
-
@Input()
|
|
47
|
-
dataCy: string = 'onemrva-mat-notification';
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Returns the `aria-label` attribute of the component.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* let ariaLabel = this.avatar.ariaLabel;
|
|
55
|
-
* ```
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
@HostBinding('attr.aria-live')
|
|
59
|
-
public ariaLive = 'assertive';
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Returns the `role` attribute of the component.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```typescript
|
|
66
|
-
* let avatarRole = this.avatar.role;
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
@HostBinding('attr.role')
|
|
70
|
-
public role = 'alert';
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @hidden
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
private _color: OnemrvaMatColor = OnemrvaMatColor.INFO;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Returns the color of the avatar.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```typescript
|
|
83
|
-
* let avatarSize = this.avatar.size;
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
@Input()
|
|
87
|
-
public get color(): OnemrvaMatColor {
|
|
88
|
-
return this._color;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Sets the component color.
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```html
|
|
96
|
-
* <onemrva-mat-notification color="primary"></onemrva-mat-notification>
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
public set color(value: OnemrvaMatColor) {
|
|
100
|
-
switch (value) {
|
|
101
|
-
case OnemrvaMatColor.SUCCESS:
|
|
102
|
-
case OnemrvaMatColor.WARN:
|
|
103
|
-
case OnemrvaMatColor.INFO:
|
|
104
|
-
case OnemrvaMatColor.ERROR:
|
|
105
|
-
this._color = value;
|
|
106
|
-
break;
|
|
107
|
-
default:
|
|
108
|
-
this._color = OnemrvaMatColor.INFO;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** @hidden @internal */
|
|
113
|
-
@HostBinding('class.mat-error')
|
|
114
|
-
public get _isError(): boolean {
|
|
115
|
-
return this.color === OnemrvaMatColor.ERROR;
|
|
116
|
-
}
|
|
117
|
-
/** @hidden @internal */
|
|
118
|
-
@HostBinding('class.mat-warn')
|
|
119
|
-
public get _isWarn(): boolean {
|
|
120
|
-
return this.color === OnemrvaMatColor.WARN;
|
|
121
|
-
}
|
|
122
|
-
/** @hidden @internal */
|
|
123
|
-
@HostBinding('class.mat-success')
|
|
124
|
-
public get _isSuccess(): boolean {
|
|
125
|
-
return this.color === OnemrvaMatColor.SUCCESS;
|
|
126
|
-
}
|
|
127
|
-
/** @hidden @internal */
|
|
128
|
-
@HostBinding('class.mat-info')
|
|
129
|
-
public get _isInfo(): boolean {
|
|
130
|
-
return this.color === OnemrvaMatColor.INFO;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
private destroyNotifier$: Subject<void> = new Subject();
|
|
134
|
-
isSmall = false;
|
|
135
|
-
|
|
136
|
-
constructor(public breakpointObserver: BreakpointObserver) {
|
|
137
|
-
this.breakpointObserver
|
|
138
|
-
.observe([Breakpoints.XSmall, Breakpoints.Small])
|
|
139
|
-
.pipe(takeUntil(this.destroyNotifier$))
|
|
140
|
-
.subscribe((state: BreakpointState) => {
|
|
141
|
-
if (state.matches) {
|
|
142
|
-
this.isSmall = true;
|
|
143
|
-
} else {
|
|
144
|
-
this.isSmall = false;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
ngOnDestroy(): void {
|
|
150
|
-
this.destroyNotifier$.next();
|
|
151
|
-
this.destroyNotifier$.complete();
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
closeNotification() {
|
|
155
|
-
this._isOpen = false;
|
|
156
|
-
this.notificationClose.emit();
|
|
157
|
-
}
|
|
158
|
-
}
|
package/mat-paginator/index.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
@use '../../utils' as utils;
|
|
2
|
-
|
|
3
|
-
@mixin paginator($theme) {
|
|
4
|
-
onemrva-mat-paginator {
|
|
5
|
-
// Get the primary color palette from the color-config.
|
|
6
|
-
$primary: utils.palette($theme, 'primary');
|
|
7
|
-
$dark-primary: utils.palette(
|
|
8
|
-
$theme,
|
|
9
|
-
'primary',
|
|
10
|
-
700
|
|
11
|
-
); // HWKTODO accent instead?
|
|
12
|
-
|
|
13
|
-
$gradient: utils.gradient($theme);
|
|
14
|
-
$accent: utils.palette($theme, 'accent');
|
|
15
|
-
$dark-accent: utils.palette($theme, 'accent', 700);
|
|
16
|
-
|
|
17
|
-
$disabled: utils.palette($theme, 'grayscale');
|
|
18
|
-
|
|
19
|
-
$field-divider: utils.palette($theme, 'grayscale', 700);
|
|
20
|
-
$divider: utils.palette($theme, 'grayscale', 900, 0.12);
|
|
21
|
-
|
|
22
|
-
.onemrva-mat-paginator {
|
|
23
|
-
display: flex;
|
|
24
|
-
|
|
25
|
-
button {
|
|
26
|
-
background-color: white;
|
|
27
|
-
padding: 8px 0;
|
|
28
|
-
text-align: center;
|
|
29
|
-
border: 1px solid $divider;
|
|
30
|
-
border-right: none;
|
|
31
|
-
color: $primary;
|
|
32
|
-
transition: all 200ms;
|
|
33
|
-
line-height: 20px;
|
|
34
|
-
width: 36px;
|
|
35
|
-
|
|
36
|
-
&:disabled {
|
|
37
|
-
color: $disabled;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.onemrva-mat-paginator-btn {
|
|
41
|
-
font-family: utils.fontFamily($theme, 'headline-1');
|
|
42
|
-
font-size: 14px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&:first-child {
|
|
46
|
-
border-radius: 18px 0 0 18px;
|
|
47
|
-
width: initial;
|
|
48
|
-
padding: 8px 16px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:last-child {
|
|
52
|
-
border-radius: 0 18px 18px 0;
|
|
53
|
-
border-right: 1px solid $divider;
|
|
54
|
-
width: initial;
|
|
55
|
-
padding: 8px 16px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&:hover:not(:disabled):not(.onemrva-mat-paginator-current-index) {
|
|
59
|
-
background: $gradient;
|
|
60
|
-
color: white;
|
|
61
|
-
cursor: pointer;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.onemrva-mat-paginator-current-index {
|
|
65
|
-
background: $gradient;
|
|
66
|
-
color: white;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.paginator-container {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: baseline;
|
|
75
|
-
|
|
76
|
-
.paginator-size-selector-container {
|
|
77
|
-
flex: 1 0 200px;
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: baseline;
|
|
80
|
-
justify-content: flex-start;
|
|
81
|
-
gap: 16px;
|
|
82
|
-
|
|
83
|
-
mat-divider {
|
|
84
|
-
display: inline-block;
|
|
85
|
-
vertical-align: middle;
|
|
86
|
-
margin: 0 8px;
|
|
87
|
-
height: 24px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.paginator-size-selector {
|
|
91
|
-
.mat-mdc-select-arrow-wrapper {
|
|
92
|
-
transform: translateY(8%);
|
|
93
|
-
|
|
94
|
-
.mat-mdc-select-arrow {
|
|
95
|
-
color: utils.palette($theme, 'primary');
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.mdc-notched-outline {
|
|
100
|
-
border: 1px solid utils.palette($theme, 'grayscale', 200);
|
|
101
|
-
border-radius: 500px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.mdc-notched-outline__leading,
|
|
105
|
-
.mdc-notched-outline__trailing,
|
|
106
|
-
.mdc-notched-outline__notch {
|
|
107
|
-
border: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.mat-mdc-text-field-wrapper {
|
|
111
|
-
height: 38px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.mat-mdc-form-field-infix {
|
|
115
|
-
padding: 4px 0 0;
|
|
116
|
-
width: 40px;
|
|
117
|
-
height: 18px;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|