@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,52 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
-
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'onemrva-mat-spinner',
|
|
6
|
-
templateUrl: 'onemrva-mat-spinner.component.html',
|
|
7
|
-
})
|
|
8
|
-
export class OnemrvaMatSpinnerComponent {
|
|
9
|
-
@Input()
|
|
10
|
-
color: OnemrvaMatColor = OnemrvaMatColor.PRIMARY;
|
|
11
|
-
|
|
12
|
-
/** @hidden @internal */
|
|
13
|
-
@HostBinding('class.mat-accent')
|
|
14
|
-
public get _colorAccent(): boolean {
|
|
15
|
-
return this.color === OnemrvaMatColor.ACCENT;
|
|
16
|
-
}
|
|
17
|
-
/** @hidden @internal */
|
|
18
|
-
@HostBinding('class.mat-primary')
|
|
19
|
-
public get _isPrimary(): boolean {
|
|
20
|
-
return this.color === OnemrvaMatColor.PRIMARY;
|
|
21
|
-
}
|
|
22
|
-
/** @hidden @internal */
|
|
23
|
-
@HostBinding('class.mat-accent')
|
|
24
|
-
public get _isAccent(): boolean {
|
|
25
|
-
return this.color === OnemrvaMatColor.ACCENT;
|
|
26
|
-
}
|
|
27
|
-
/** @hidden @internal */
|
|
28
|
-
@HostBinding('class.mat-error')
|
|
29
|
-
public get _isError(): boolean {
|
|
30
|
-
return this.color === OnemrvaMatColor.ERROR;
|
|
31
|
-
}
|
|
32
|
-
/** @hidden @internal */
|
|
33
|
-
@HostBinding('class.mat-warn')
|
|
34
|
-
public get _isWarn(): boolean {
|
|
35
|
-
return this.color === OnemrvaMatColor.WARN;
|
|
36
|
-
}
|
|
37
|
-
/** @hidden @internal */
|
|
38
|
-
@HostBinding('class.mat-success')
|
|
39
|
-
public get _isSuccess(): boolean {
|
|
40
|
-
return this.color === OnemrvaMatColor.SUCCESS;
|
|
41
|
-
}
|
|
42
|
-
/** @hidden @internal */
|
|
43
|
-
@HostBinding('class.mat-info')
|
|
44
|
-
public get _isInfo(): boolean {
|
|
45
|
-
return this.color === OnemrvaMatColor.INFO;
|
|
46
|
-
}
|
|
47
|
-
/** @hidden @internal */
|
|
48
|
-
@HostBinding('class.mat-grayscale')
|
|
49
|
-
public get _isGrayscale(): boolean {
|
|
50
|
-
return this.color === OnemrvaMatColor.GRAYSCALE;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { OnemrvaMatSpinnerComponent } from './onemrva-mat-spinner.component';
|
|
3
|
-
import { OnemrvaMatLoadingDirective } from './onemrva-mat-loading.directive';
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
declarations: [OnemrvaMatSpinnerComponent],
|
|
7
|
-
exports: [OnemrvaMatSpinnerComponent, OnemrvaMatLoadingDirective],
|
|
8
|
-
imports: [OnemrvaMatLoadingDirective],
|
|
9
|
-
})
|
|
10
|
-
export class OnemrvaMatSpinnerModule {}
|
package/mat-stepper/index.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$header-height: 72px !default;
|
|
2
|
-
// Minimum height for highest density summary-stepper's is determined based on how much
|
|
3
|
-
// summary-stepper headers can shrink until the step icon or step label exceed. We can't use
|
|
4
|
-
// a value below `42px` because the optional label for steps would otherwise exceed.
|
|
5
|
-
$header-minimum-height: 42px !default;
|
|
6
|
-
$header-maximum-height: $header-height !default;
|
|
7
|
-
|
|
8
|
-
$density-config: (
|
|
9
|
-
height: (
|
|
10
|
-
default: $header-height,
|
|
11
|
-
maximum: $header-maximum-height,
|
|
12
|
-
minimum: $header-minimum-height,
|
|
13
|
-
),
|
|
14
|
-
) !default;
|
|
15
|
-
|
|
16
|
-
// Note: These variables are not denoted with `!default` because they are used in the non-theme
|
|
17
|
-
// component styles. Modifying these variables does not have the desired effect for consumers.
|
|
18
|
-
$label-header-height: 24px;
|
|
19
|
-
$label-position-bottom-top-gap: 16px;
|
|
20
|
-
$label-min-width: 50px;
|
|
21
|
-
|
|
22
|
-
$vertical-stepper-content-margin: 36px;
|
|
23
|
-
|
|
24
|
-
$side-gap: 24px;
|
|
25
|
-
$line-width: 1px;
|
|
26
|
-
$line-gap: 8px;
|
|
27
|
-
|
|
28
|
-
$step-sub-label-font-size: 12px;
|
|
29
|
-
$step-header-icon-size: 16px;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { OnemrvaMatStepperComponent } from './onemrva-mat-stepper.component';
|
|
4
|
-
|
|
5
|
-
describe('MatStepperComponent', () => {
|
|
6
|
-
let component: OnemrvaMatStepperComponent;
|
|
7
|
-
let fixture: ComponentFixture<OnemrvaMatStepperComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [OnemrvaMatStepperComponent],
|
|
12
|
-
}).compileComponents();
|
|
13
|
-
|
|
14
|
-
fixture = TestBed.createComponent(OnemrvaMatStepperComponent);
|
|
15
|
-
component = fixture.componentInstance;
|
|
16
|
-
fixture.detectChanges();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('should create', () => {
|
|
20
|
-
expect(component).toBeTruthy();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { CdkStepper, StepperOrientation } from '@angular/cdk/stepper';
|
|
3
|
-
import {
|
|
4
|
-
AfterContentInit,
|
|
5
|
-
ChangeDetectionStrategy,
|
|
6
|
-
ChangeDetectorRef,
|
|
7
|
-
Component,
|
|
8
|
-
ElementRef,
|
|
9
|
-
HostBinding,
|
|
10
|
-
Input,
|
|
11
|
-
Optional,
|
|
12
|
-
ViewEncapsulation,
|
|
13
|
-
} from '@angular/core';
|
|
14
|
-
|
|
15
|
-
import { onemrvaMatStepperAnimations } from './onemrva-stepper-animations';
|
|
16
|
-
import { MatStepper } from '@angular/material/stepper';
|
|
17
|
-
|
|
18
|
-
@Component({
|
|
19
|
-
selector:
|
|
20
|
-
'onemrva-mat-stepper, onemrva-mat-vertical-stepper, [onemrvaMatStepper]',
|
|
21
|
-
exportAs: 'matStepper, matVerticalStepper, matHorizontalStepper',
|
|
22
|
-
templateUrl: 'onemrva-mat-stepper.html',
|
|
23
|
-
styleUrls: ['onemrva-mat-stepper.scss'],
|
|
24
|
-
// eslint-disable-next-line
|
|
25
|
-
inputs: ['selectedIndex'],
|
|
26
|
-
animations: [onemrvaMatStepperAnimations.verticalStepTransition],
|
|
27
|
-
providers: [
|
|
28
|
-
{ provide: MatStepper, useExisting: OnemrvaMatStepperComponent },
|
|
29
|
-
{ provide: CdkStepper, useExisting: MatStepper },
|
|
30
|
-
],
|
|
31
|
-
encapsulation: ViewEncapsulation.None,
|
|
32
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
-
})
|
|
34
|
-
export class OnemrvaMatStepperComponent
|
|
35
|
-
extends MatStepper
|
|
36
|
-
implements AfterContentInit
|
|
37
|
-
{
|
|
38
|
-
/** Orientation of the summary-stepper. */
|
|
39
|
-
@Input()
|
|
40
|
-
override get orientation(): StepperOrientation {
|
|
41
|
-
return 'vertical';
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@HostBinding('class.mat-stepper-vertical') matStepperVertical = true;
|
|
45
|
-
@HostBinding('attr.aria-orientation') ariaOrientation = 'vertical';
|
|
46
|
-
@HostBinding('role') role = 'tablist';
|
|
47
|
-
|
|
48
|
-
override set orientation(value: StepperOrientation) {}
|
|
49
|
-
|
|
50
|
-
constructor(
|
|
51
|
-
@Optional() dir: Directionality,
|
|
52
|
-
changeDetectorRef: ChangeDetectorRef,
|
|
53
|
-
elementRef: ElementRef<HTMLElement>,
|
|
54
|
-
) {
|
|
55
|
-
super(dir, changeDetectorRef, elementRef);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<!-- Vertical summary-stepper -->
|
|
2
|
-
<ng-container>
|
|
3
|
-
<div
|
|
4
|
-
class="mat-step"
|
|
5
|
-
*ngFor="let step of steps; let i = index; let isLast = last"
|
|
6
|
-
>
|
|
7
|
-
<ng-container
|
|
8
|
-
[ngTemplateOutlet]="stepTemplate"
|
|
9
|
-
[ngTemplateOutletContext]="{step: step, i: i}"
|
|
10
|
-
></ng-container>
|
|
11
|
-
<div
|
|
12
|
-
class="mat-vertical-content-container"
|
|
13
|
-
[class.mat-stepper-vertical-line]="!isLast"
|
|
14
|
-
>
|
|
15
|
-
<div
|
|
16
|
-
class="mat-vertical-stepper-content"
|
|
17
|
-
role="tabpanel"
|
|
18
|
-
[@verticalStepTransition]="{
|
|
19
|
-
'value': _getAnimationDirection(i),
|
|
20
|
-
'params': {'animationDuration': _getAnimationDuration()}
|
|
21
|
-
}"
|
|
22
|
-
(@verticalStepTransition.done)="_animationDone.next($event)"
|
|
23
|
-
[id]="_getStepContentId(i)"
|
|
24
|
-
[attr.aria-labelledby]="_getStepLabelId(i)"
|
|
25
|
-
[attr.aria-expanded]="selectedIndex === i"
|
|
26
|
-
>
|
|
27
|
-
<div class="mat-vertical-content">
|
|
28
|
-
<ng-container [ngTemplateOutlet]="step.content"></ng-container>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</ng-container>
|
|
34
|
-
|
|
35
|
-
<!-- Common step templating -->
|
|
36
|
-
<ng-template let-step="step" let-i="i" #stepTemplate>
|
|
37
|
-
<mat-step-header
|
|
38
|
-
[class.mat-horizontal-stepper-header]="orientation === 'horizontal'"
|
|
39
|
-
[class.mat-vertical-stepper-header]="orientation === 'vertical'"
|
|
40
|
-
(click)="step.select()"
|
|
41
|
-
(keydown)="_onKeydown($event)"
|
|
42
|
-
[tabIndex]="_getFocusIndex() === i ? 0 : -1"
|
|
43
|
-
[id]="_getStepLabelId(i)"
|
|
44
|
-
[attr.aria-posinset]="i + 1"
|
|
45
|
-
[attr.aria-setsize]="steps.length"
|
|
46
|
-
[attr.aria-controls]="_getStepContentId(i)"
|
|
47
|
-
[attr.aria-selected]="selectedIndex == i"
|
|
48
|
-
[attr.aria-label]="step.ariaLabel || null"
|
|
49
|
-
[attr.aria-labelledby]="(!step.ariaLabel && step.ariaLabelledby) ? step.ariaLabelledby : null"
|
|
50
|
-
[attr.aria-disabled]="_stepIsNavigable(i, step) ? null : true"
|
|
51
|
-
[index]="i"
|
|
52
|
-
[state]="_getIndicatorType(i, step.state)"
|
|
53
|
-
[label]="step.stepLabel || step.label"
|
|
54
|
-
[selected]="selectedIndex === i"
|
|
55
|
-
[active]="_stepIsNavigable(i, step)"
|
|
56
|
-
[optional]="step.optional"
|
|
57
|
-
[errorMessage]="step.errorMessage"
|
|
58
|
-
[iconOverrides]="_iconOverrides"
|
|
59
|
-
[disableRipple]="disableRipple || !_stepIsNavigable(i, step)"
|
|
60
|
-
></mat-step-header>
|
|
61
|
-
</ng-template>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { OnemrvaMatStepperComponent } from './onemrva-mat-stepper.component';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { MatCommonModule, MatRippleModule } from '@angular/material/core';
|
|
5
|
-
import { PortalModule } from '@angular/cdk/portal';
|
|
6
|
-
import { CdkStepperModule } from '@angular/cdk/stepper';
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import { MatStepperModule } from '@angular/material/stepper';
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [
|
|
12
|
-
MatCommonModule,
|
|
13
|
-
CommonModule,
|
|
14
|
-
PortalModule,
|
|
15
|
-
CdkStepperModule,
|
|
16
|
-
MatIconModule,
|
|
17
|
-
MatRippleModule,
|
|
18
|
-
MatStepperModule,
|
|
19
|
-
],
|
|
20
|
-
exports: [MatCommonModule, MatStepperModule, OnemrvaMatStepperComponent],
|
|
21
|
-
declarations: [OnemrvaMatStepperComponent],
|
|
22
|
-
providers: [],
|
|
23
|
-
})
|
|
24
|
-
export class OnemrvaMatStepperModule {}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import {
|
|
9
|
-
animate,
|
|
10
|
-
state,
|
|
11
|
-
style,
|
|
12
|
-
transition,
|
|
13
|
-
trigger,
|
|
14
|
-
AnimationTriggerMetadata,
|
|
15
|
-
} from '@angular/animations';
|
|
16
|
-
|
|
17
|
-
export const DEFAULT_VERTICAL_ANIMATION_DURATION = '225ms';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Animations used by the Material steppers.
|
|
21
|
-
* @docs-private
|
|
22
|
-
*/
|
|
23
|
-
export const onemrvaMatStepperAnimations: {
|
|
24
|
-
readonly verticalStepTransition: AnimationTriggerMetadata;
|
|
25
|
-
} = {
|
|
26
|
-
/** Animation that transitions the step along the Y axis in a vertical summary-stepper. */
|
|
27
|
-
verticalStepTransition: trigger('verticalStepTransition', [
|
|
28
|
-
state('previous', style({ height: '*', visibility: 'inherit' })),
|
|
29
|
-
state('next', style({ height: '0px', visibility: 'hidden' })),
|
|
30
|
-
// Transition to `inherit`, rather than `visible`,
|
|
31
|
-
// because visibility on a child element the one from the parent,
|
|
32
|
-
// making this element focusable inside of a `hidden` element.
|
|
33
|
-
state('current', style({ height: '*', visibility: 'inherit' })),
|
|
34
|
-
transition(
|
|
35
|
-
'* <=> current',
|
|
36
|
-
animate('{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)'),
|
|
37
|
-
{
|
|
38
|
-
params: { animationDuration: DEFAULT_VERTICAL_ANIMATION_DURATION },
|
|
39
|
-
},
|
|
40
|
-
),
|
|
41
|
-
]),
|
|
42
|
-
};
|
package/mat-sticker/index.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';
|
|
2
|
-
import { TestBed } from '@angular/core/testing';
|
|
3
|
-
|
|
4
|
-
describe('OnemrvaMatSticker', () => {
|
|
5
|
-
beforeEach(async () => {
|
|
6
|
-
await TestBed.configureTestingModule({
|
|
7
|
-
declarations: [OnemrvaMatStickerComponent],
|
|
8
|
-
}).compileComponents();
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
it('should create the component', () => {
|
|
12
|
-
const fixture = TestBed.createComponent(OnemrvaMatStickerComponent);
|
|
13
|
-
const app = fixture.componentInstance;
|
|
14
|
-
expect(app).toBeDefined();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, Input } from '@angular/core';
|
|
2
|
-
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
3
|
-
|
|
4
|
-
export type StickerType =
|
|
5
|
-
| 'info'
|
|
6
|
-
| 'success'
|
|
7
|
-
| 'warn'
|
|
8
|
-
| 'error'
|
|
9
|
-
| 'accent'
|
|
10
|
-
| 'primary'
|
|
11
|
-
| 'grayscale';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'onemrva-mat-sticker',
|
|
15
|
-
template: `<ng-content></ng-content>`,
|
|
16
|
-
})
|
|
17
|
-
export class OnemrvaMatStickerComponent {
|
|
18
|
-
@Input()
|
|
19
|
-
color: OnemrvaMatColor = OnemrvaMatColor.PRIMARY;
|
|
20
|
-
|
|
21
|
-
/** @hidden @internal */
|
|
22
|
-
@HostBinding('class.mat-primary')
|
|
23
|
-
public get _isPrimary(): boolean {
|
|
24
|
-
return this.color === OnemrvaMatColor.PRIMARY;
|
|
25
|
-
}
|
|
26
|
-
/** @hidden @internal */
|
|
27
|
-
@HostBinding('class.mat-accent')
|
|
28
|
-
public get _isAccent(): boolean {
|
|
29
|
-
return this.color === OnemrvaMatColor.ACCENT;
|
|
30
|
-
}
|
|
31
|
-
/** @hidden @internal */
|
|
32
|
-
@HostBinding('class.mat-error')
|
|
33
|
-
public get _isError(): boolean {
|
|
34
|
-
return this.color === OnemrvaMatColor.ERROR;
|
|
35
|
-
}
|
|
36
|
-
/** @hidden @internal */
|
|
37
|
-
@HostBinding('class.mat-warn')
|
|
38
|
-
public get _isWarn(): boolean {
|
|
39
|
-
return this.color === OnemrvaMatColor.WARN;
|
|
40
|
-
}
|
|
41
|
-
/** @hidden @internal */
|
|
42
|
-
@HostBinding('class.mat-success')
|
|
43
|
-
public get _isSuccess(): boolean {
|
|
44
|
-
return this.color === OnemrvaMatColor.SUCCESS;
|
|
45
|
-
}
|
|
46
|
-
/** @hidden @internal */
|
|
47
|
-
@HostBinding('class.mat-info')
|
|
48
|
-
public get _isInfo(): boolean {
|
|
49
|
-
return this.color === OnemrvaMatColor.INFO;
|
|
50
|
-
}
|
|
51
|
-
/** @hidden @internal */
|
|
52
|
-
@HostBinding('class.mat-grayscale')
|
|
53
|
-
public get _isGrayscale(): boolean {
|
|
54
|
-
return this.color === OnemrvaMatColor.GRAYSCALE;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
constructor() {}
|
|
58
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { OnemrvaMatStickerComponent } from './onemrva-mat-sticker.component';
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
declarations: [OnemrvaMatStickerComponent],
|
|
7
|
-
imports: [CommonModule],
|
|
8
|
-
exports: [OnemrvaMatStickerComponent],
|
|
9
|
-
})
|
|
10
|
-
export class OnemrvaMatStickerModule {}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of mat-summary-stepper
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export * from './src/onemrva-mat-table-of-content.component';
|
|
6
|
-
export * from './src/onemrva-mat-table-of-content.directive';
|
|
7
|
-
export * from './src/onemrva-mat-table-of-content.service';
|
|
8
|
-
export * from './src/onemrva-mat-toc-anchor.model';
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
@use '../../utils' as utils;
|
|
2
|
-
|
|
3
|
-
@mixin toc($theme) {
|
|
4
|
-
$bckgr-color: utils.palette($theme, 'grayscale', 50);
|
|
5
|
-
$left-border-color: utils.palette($theme, 'grayscale', 300);
|
|
6
|
-
$title-color: utils.palette($theme, 'accent', 600);
|
|
7
|
-
$anchor-color: utils.palette($theme, 'grayscale', 700);
|
|
8
|
-
$highlighted-anchor-color: utils.palette($theme, 'grayscale', 900);
|
|
9
|
-
$color-checkmark: utils.palette($theme, 'success', 600);
|
|
10
|
-
|
|
11
|
-
.onemrva-mat-toc {
|
|
12
|
-
position: fixed;
|
|
13
|
-
width: 240px;
|
|
14
|
-
top: 92px;
|
|
15
|
-
left: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
overflow: auto;
|
|
18
|
-
background-color: $bckgr-color;
|
|
19
|
-
padding: 56px 8px 8px 32px;
|
|
20
|
-
box-sizing: border-box;
|
|
21
|
-
|
|
22
|
-
.onemrva-mat-toc-title {
|
|
23
|
-
color: $title-color;
|
|
24
|
-
line-height: 26px;
|
|
25
|
-
margin-bottom: 16px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
mat-list {
|
|
29
|
-
padding: 0;
|
|
30
|
-
|
|
31
|
-
mat-list-item {
|
|
32
|
-
padding: 4px 0 4px 8px;
|
|
33
|
-
height: 32px !important;
|
|
34
|
-
border-left: 1px solid $left-border-color;
|
|
35
|
-
|
|
36
|
-
&.onemrva-mat-hidden-toc-anchor {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.mdc-list-item__primary-text {
|
|
41
|
-
font-weight: 600;
|
|
42
|
-
color: $anchor-color;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.active-anchor {
|
|
46
|
-
border-left: 3px solid $title-color;
|
|
47
|
-
padding-left: 6px;
|
|
48
|
-
|
|
49
|
-
.mdc-list-item__primary-text {
|
|
50
|
-
color: $highlighted-anchor-color;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.onemrva-anchor-for-subsection {
|
|
55
|
-
.mdc-list-item__primary-text {
|
|
56
|
-
font-weight: 400;
|
|
57
|
-
padding-left: 16px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
mat-icon {
|
|
66
|
-
vertical-align: bottom !important;
|
|
67
|
-
|
|
68
|
-
&.anchor-check {
|
|
69
|
-
color: $color-checkmark;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&.anchor-warning {
|
|
73
|
-
color: $title-color;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<div class="onemrva-mat-toc">
|
|
2
|
-
<h3 class="onemrva-mat-toc-title">{{ titleKey | translate }}</h3>
|
|
3
|
-
|
|
4
|
-
<mat-list>
|
|
5
|
-
<mat-list-item
|
|
6
|
-
*ngFor="let anchor of toc$ | async"
|
|
7
|
-
(click)="goTo(anchor)"
|
|
8
|
-
[ngClass]="{
|
|
9
|
-
'active-anchor': anchor.path === activePath,
|
|
10
|
-
'onemrva-anchor-for-subsection': anchor.level === level.SUBSECTION,
|
|
11
|
-
'onemrva-mat-hidden-toc-anchor': anchor.directive.hiddenInToc
|
|
12
|
-
}"
|
|
13
|
-
>
|
|
14
|
-
{{ anchor.titleKey | translate }}
|
|
15
|
-
<mat-icon *ngIf="anchor.status === status.CHECKMARK" class="anchor-check"
|
|
16
|
-
>check</mat-icon
|
|
17
|
-
>
|
|
18
|
-
<mat-icon *ngIf="anchor.status === status.WARNING" class="anchor-warning"
|
|
19
|
-
>priority_high</mat-icon
|
|
20
|
-
>
|
|
21
|
-
</mat-list-item>
|
|
22
|
-
</mat-list>
|
|
23
|
-
</div>
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
HostBinding,
|
|
4
|
-
HostListener,
|
|
5
|
-
Input,
|
|
6
|
-
OnDestroy,
|
|
7
|
-
OnInit,
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import { MatListModule } from '@angular/material/list';
|
|
10
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
11
|
-
import { OnemrvaMatTableOfContentService } from './onemrva-mat-table-of-content.service';
|
|
12
|
-
import { Observable, map, tap } from 'rxjs';
|
|
13
|
-
import {
|
|
14
|
-
OnemrvaMatTocAnchor,
|
|
15
|
-
OnemrvaMatTocAnchorLevel,
|
|
16
|
-
OnemrvaMatTocAnchorStatus,
|
|
17
|
-
} from './onemrva-mat-toc-anchor.model';
|
|
18
|
-
import { CommonModule } from '@angular/common';
|
|
19
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
20
|
-
|
|
21
|
-
@Component({
|
|
22
|
-
selector: 'onemrva-mat-table-of-content',
|
|
23
|
-
templateUrl: 'onemrva-mat-table-of-content.component.html',
|
|
24
|
-
standalone: true,
|
|
25
|
-
imports: [MatListModule, TranslateModule, CommonModule, MatIconModule],
|
|
26
|
-
})
|
|
27
|
-
export class OnemrvaMatTableOfContentComponent implements OnInit, OnDestroy {
|
|
28
|
-
@Input()
|
|
29
|
-
titleKey!: string;
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
tocName!: string;
|
|
33
|
-
|
|
34
|
-
@HostBinding('attr.data-cy')
|
|
35
|
-
@Input()
|
|
36
|
-
dataCy: string = 'onemrva-mat-toc';
|
|
37
|
-
|
|
38
|
-
// @HostBinding('attr.aria-label')
|
|
39
|
-
// @Input()
|
|
40
|
-
// get ariaLabel() {
|
|
41
|
-
// if (!this.titleKey) return null;
|
|
42
|
-
// return this.translate.instant(this.titleKey);
|
|
43
|
-
// }
|
|
44
|
-
|
|
45
|
-
@Input()
|
|
46
|
-
tableOfContentName!: string;
|
|
47
|
-
|
|
48
|
-
@Input()
|
|
49
|
-
scrollShift: number = 0;
|
|
50
|
-
|
|
51
|
-
toc$!: Observable<OnemrvaMatTocAnchor[]>;
|
|
52
|
-
|
|
53
|
-
activePath: string = '';
|
|
54
|
-
timerId: any;
|
|
55
|
-
|
|
56
|
-
@HostListener('window:scroll', ['$event']) onScrollEvent($event: any) {
|
|
57
|
-
this.throttledUpdateActivePath($event);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@HostListener('window:resize', ['$event']) onResizeEvent($event: any) {
|
|
61
|
-
this.throttledUpdateActivePath($event);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
level = OnemrvaMatTocAnchorLevel;
|
|
65
|
-
status = OnemrvaMatTocAnchorStatus;
|
|
66
|
-
|
|
67
|
-
constructor(private tocService: OnemrvaMatTableOfContentService) {}
|
|
68
|
-
|
|
69
|
-
ngOnInit(): void {
|
|
70
|
-
this.toc$ = this.tocService.toc$.pipe(
|
|
71
|
-
map(tocMap => tocMap[this.tocName].filter(entry => !entry.hidden)),
|
|
72
|
-
tap(toc => {
|
|
73
|
-
if (!toc) this.titleKey = 'tocName.notFound';
|
|
74
|
-
else this.activePath = toc[0].path;
|
|
75
|
-
}),
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ngOnDestroy(): void {
|
|
80
|
-
this.tocService.resetToc();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
goTo(anchor: OnemrvaMatTocAnchor) {
|
|
84
|
-
const e = document.querySelector("[href='" + anchor.path + "']")!;
|
|
85
|
-
const y = e.getBoundingClientRect().y;
|
|
86
|
-
|
|
87
|
-
window.scroll({
|
|
88
|
-
top: window.scrollY + y - this.scrollShift,
|
|
89
|
-
behavior: 'smooth',
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// this.activePath = anchor.path;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
throttledUpdateActivePath(_$event: any) {
|
|
96
|
-
if (this.timerId) return;
|
|
97
|
-
|
|
98
|
-
this.timerId = setTimeout(() => {
|
|
99
|
-
this.updateActivePath();
|
|
100
|
-
this.timerId = undefined;
|
|
101
|
-
}, 200);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
updateActivePath() {
|
|
105
|
-
let prevElement: { href: string; top: number } = { href: '', top: 0 };
|
|
106
|
-
|
|
107
|
-
const anchors = document.querySelectorAll('.onemrva-mat-toc-anchor');
|
|
108
|
-
for (let i = 0; i < anchors.length; i++) {
|
|
109
|
-
const anchor = anchors[i];
|
|
110
|
-
const top = anchor.getBoundingClientRect().top - this.scrollShift;
|
|
111
|
-
const href: string = anchor.getAttribute('href')!;
|
|
112
|
-
|
|
113
|
-
if (top >= 0) {
|
|
114
|
-
if (prevElement.top < 0) {
|
|
115
|
-
this.activePath =
|
|
116
|
-
(top + prevElement.top) / 2 > 0 ? prevElement.href : href;
|
|
117
|
-
} else {
|
|
118
|
-
this.activePath = anchor.getAttribute('href')!;
|
|
119
|
-
}
|
|
120
|
-
return;
|
|
121
|
-
} else {
|
|
122
|
-
prevElement = { top, href };
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|