@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
package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<div class="file-panel-title" [attr.data-cy]="dataCy">
|
|
2
|
-
<div class="file-panel-title-left">
|
|
3
|
-
<mat-icon *ngIf="file.color === 'error'" class="filled mat-error"
|
|
4
|
-
>error</mat-icon
|
|
5
|
-
>
|
|
6
|
-
<mat-icon *ngIf="file.color === 'success'" class="filled mat-success"
|
|
7
|
-
>check_circle</mat-icon
|
|
8
|
-
>
|
|
9
|
-
<mat-icon *ngIf="file.color === 'warn'" class="filled mat-warn"
|
|
10
|
-
>warning</mat-icon
|
|
11
|
-
>
|
|
12
|
-
<span class="file-name">
|
|
13
|
-
{{ file.name }}
|
|
14
|
-
</span>
|
|
15
|
-
</div>
|
|
16
|
-
<div class="file-panel-title-action">
|
|
17
|
-
<ng-container *ngIf="actions.length > 0">
|
|
18
|
-
<ng-container *ngFor="let action of actions">
|
|
19
|
-
<mat-icon
|
|
20
|
-
*ngIf="action.showAction(file)"
|
|
21
|
-
role="button"
|
|
22
|
-
color="primary"
|
|
23
|
-
[attr.data-cy]="action.dataCy"
|
|
24
|
-
matTooltip="{{ action.tooltipCode | translate }}"
|
|
25
|
-
[attr.aria-label]="action.ariaCode | translate"
|
|
26
|
-
class="clickable"
|
|
27
|
-
(click)="action.clickHandler(file)"
|
|
28
|
-
>{{ action.iconName }}</mat-icon
|
|
29
|
-
>
|
|
30
|
-
</ng-container>
|
|
31
|
-
</ng-container>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="file-panel-content">
|
|
35
|
-
<ng-container *ngIf="file.message === ''">
|
|
36
|
-
<div class="fileInfos">
|
|
37
|
-
{{ file.lastModified | date }}
|
|
38
|
-
<span class="float-right" *ngIf="file.size > 0">{{ size }}</span>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div
|
|
42
|
-
class="onemrva-progress-bar"
|
|
43
|
-
*ngIf="showProgress && file.enableProgressBar"
|
|
44
|
-
>
|
|
45
|
-
<div class="onemrva-progress-bar-outer mt-s" #onemrvaProgressBar>
|
|
46
|
-
<div
|
|
47
|
-
class="onemrva-progress-bar-inner"
|
|
48
|
-
[ngStyle]="{ width: (progress$ | async) + '%' }"
|
|
49
|
-
[ngClass]="{
|
|
50
|
-
'progress-success': (progress$ | async)! >= 100
|
|
51
|
-
}"
|
|
52
|
-
data-cy="file-upload-progress"
|
|
53
|
-
[attr.value]="progress$ | async"
|
|
54
|
-
></div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
</ng-container>
|
|
58
|
-
<p *ngIf="file.message !== ''" class="message">{{ file.message }}</p>
|
|
59
|
-
</div>
|
package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
HostBinding,
|
|
5
|
-
Input,
|
|
6
|
-
} from '@angular/core';
|
|
7
|
-
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
8
|
-
import { of } from 'rxjs';
|
|
9
|
-
import { ActionConfig } from '../../models/action-config.model';
|
|
10
|
-
import {
|
|
11
|
-
formattedSize,
|
|
12
|
-
ReferencedProgressFile,
|
|
13
|
-
} from '../../models/progress-file.model';
|
|
14
|
-
|
|
15
|
-
let NEXT_ID = 0;
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'file-panel',
|
|
19
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
styleUrls: ['./onemrva-file-panel.component.scss'],
|
|
21
|
-
templateUrl: './onemrva-file-panel.component.html',
|
|
22
|
-
})
|
|
23
|
-
export class OnemrvaFilePanelComponent {
|
|
24
|
-
@HostBinding('attr.id')
|
|
25
|
-
@Input()
|
|
26
|
-
public id = `onemrva-file-panel-${NEXT_ID++}`;
|
|
27
|
-
|
|
28
|
-
@HostBinding('attr.data-cy')
|
|
29
|
-
@Input()
|
|
30
|
-
dataCy: string = 'onemrva-file-panel-' + NEXT_ID;
|
|
31
|
-
|
|
32
|
-
@Input()
|
|
33
|
-
file!: ReferencedProgressFile;
|
|
34
|
-
|
|
35
|
-
@Input()
|
|
36
|
-
actions: ActionConfig[] = [];
|
|
37
|
-
|
|
38
|
-
@Input()
|
|
39
|
-
showProgress: boolean = true;
|
|
40
|
-
|
|
41
|
-
get progress$() {
|
|
42
|
-
return of(this.file.progress);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
get size() {
|
|
46
|
-
return formattedSize(this.file.size);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
get color(): OnemrvaMatColor {
|
|
50
|
-
return this.file.color;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** @hidden @internal */
|
|
54
|
-
@HostBinding('mat-accent')
|
|
55
|
-
public get _colorAccent(): boolean {
|
|
56
|
-
return this.color === OnemrvaMatColor.ACCENT;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** @hidden @internal */
|
|
60
|
-
@HostBinding('class.mat-error')
|
|
61
|
-
public get _isError(): boolean {
|
|
62
|
-
return this.color === OnemrvaMatColor.ERROR;
|
|
63
|
-
}
|
|
64
|
-
/** @hidden @internal */
|
|
65
|
-
@HostBinding('class.mat-warn')
|
|
66
|
-
public get _isWarn(): boolean {
|
|
67
|
-
return this.color === OnemrvaMatColor.WARN;
|
|
68
|
-
}
|
|
69
|
-
/** @hidden @internal */
|
|
70
|
-
@HostBinding('class.mat-success')
|
|
71
|
-
public get _isSuccess(): boolean {
|
|
72
|
-
return this.color === OnemrvaMatColor.SUCCESS;
|
|
73
|
-
}
|
|
74
|
-
/** @hidden @internal */
|
|
75
|
-
@HostBinding('class.mat-primary')
|
|
76
|
-
public get _isPrimary(): boolean {
|
|
77
|
-
return this.color === OnemrvaMatColor.PRIMARY;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<ng-container *ngIf="files$ | async as files">
|
|
2
|
-
<div
|
|
3
|
-
class="onemrva-mat-file-upload-drop-area"
|
|
4
|
-
appDnd
|
|
5
|
-
[ngClass]="{ filein: files.length > 0 }"
|
|
6
|
-
(fileDropped)="onFileDropped($event)"
|
|
7
|
-
[ngClass]="{ 'fu-error': errorMessage !== '' }"
|
|
8
|
-
>
|
|
9
|
-
<input
|
|
10
|
-
type="file"
|
|
11
|
-
#fileDropRef
|
|
12
|
-
[attr.id]="inputId"
|
|
13
|
-
role="button"
|
|
14
|
-
multiple
|
|
15
|
-
(change)="fileBrowseHandler($event)"
|
|
16
|
-
accept="{{ acceptString }}"
|
|
17
|
-
/>
|
|
18
|
-
<p
|
|
19
|
-
class="outer"
|
|
20
|
-
*ngIf="numberOfFiles === 0 || numberOfFiles > files.length"
|
|
21
|
-
>
|
|
22
|
-
<span class="inner"
|
|
23
|
-
><mat-icon class="onemrva-upload">download</mat-icon></span
|
|
24
|
-
>
|
|
25
|
-
<span class="inner">{{
|
|
26
|
-
dropFilesHereTextTranslationKey | translate
|
|
27
|
-
}}</span>
|
|
28
|
-
<span class="inner"
|
|
29
|
-
>{{ 'file.upload.or' | translate }}
|
|
30
|
-
<label for="{{ inputId }}" class="content">{{
|
|
31
|
-
'file.upload.browse.for.file' | translate
|
|
32
|
-
}}</label></span
|
|
33
|
-
>
|
|
34
|
-
<span class="inner" aria-disabled="true"
|
|
35
|
-
><span *ngIf="maxFileSize > 0"
|
|
36
|
-
>{{ 'file.upload.maximum' | translate }} {{ maxFileSizeFormatted }}
|
|
37
|
-
<span *ngIf="acceptString.length > 0">{{ '| ' }}</span>
|
|
38
|
-
{{ acceptString }}</span
|
|
39
|
-
></span
|
|
40
|
-
>
|
|
41
|
-
</p>
|
|
42
|
-
<ul class="files-list">
|
|
43
|
-
<li *ngFor="let file of files">
|
|
44
|
-
<ng-container
|
|
45
|
-
*ngTemplateOutlet="
|
|
46
|
-
filePanelTemplate;
|
|
47
|
-
context: { file, $implicit: file }
|
|
48
|
-
"
|
|
49
|
-
></ng-container>
|
|
50
|
-
</li>
|
|
51
|
-
</ul>
|
|
52
|
-
</div>
|
|
53
|
-
<mat-error *ngIf="errorMessage">{{ errorMessage | translate }}</mat-error>
|
|
54
|
-
<mat-error
|
|
55
|
-
*ngIf="fileUploadErrorMessage$ | async as fileUploadErrorMessage"
|
|
56
|
-
>{{ fileUploadErrorMessage | translate }}</mat-error
|
|
57
|
-
>
|
|
58
|
-
</ng-container>
|
package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
ElementRef,
|
|
4
|
-
EventEmitter,
|
|
5
|
-
HostBinding,
|
|
6
|
-
Input,
|
|
7
|
-
OnInit,
|
|
8
|
-
TemplateRef,
|
|
9
|
-
ViewChild,
|
|
10
|
-
} from '@angular/core';
|
|
11
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
12
|
-
import { Observable, take } from 'rxjs';
|
|
13
|
-
import { mimeTypes } from 'mime-wrapper';
|
|
14
|
-
import {
|
|
15
|
-
state,
|
|
16
|
-
keyframes,
|
|
17
|
-
style,
|
|
18
|
-
animate,
|
|
19
|
-
trigger,
|
|
20
|
-
transition,
|
|
21
|
-
} from '@angular/animations';
|
|
22
|
-
import {
|
|
23
|
-
formatBytes,
|
|
24
|
-
ProgressFile,
|
|
25
|
-
ReferencedProgressFile,
|
|
26
|
-
} from '../../models/progress-file.model';
|
|
27
|
-
import { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';
|
|
28
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
29
|
-
|
|
30
|
-
let NEXT_ID = 0;
|
|
31
|
-
|
|
32
|
-
@Component({
|
|
33
|
-
selector: 'onemrva-mat-file-upload',
|
|
34
|
-
templateUrl: 'onemrva-mat-file-upload.component.html',
|
|
35
|
-
animations: [
|
|
36
|
-
trigger('inOutAnimation', [
|
|
37
|
-
state('in', style({ opacity: 1 })),
|
|
38
|
-
transition(':enter', [
|
|
39
|
-
animate(
|
|
40
|
-
300,
|
|
41
|
-
keyframes([
|
|
42
|
-
style({ opacity: 0, offset: 0 }),
|
|
43
|
-
style({ opacity: 0.25, offset: 0.25 }),
|
|
44
|
-
style({ opacity: 0.5, offset: 0.5 }),
|
|
45
|
-
style({ opacity: 0.75, offset: 0.75 }),
|
|
46
|
-
style({ opacity: 1, offset: 1 }),
|
|
47
|
-
]),
|
|
48
|
-
),
|
|
49
|
-
]),
|
|
50
|
-
transition(':leave', [
|
|
51
|
-
animate(
|
|
52
|
-
300,
|
|
53
|
-
keyframes([
|
|
54
|
-
style({ opacity: 1, offset: 0 }),
|
|
55
|
-
style({ opacity: 0.75, offset: 0.25 }),
|
|
56
|
-
style({ opacity: 0.5, offset: 0.5 }),
|
|
57
|
-
style({ opacity: 0.25, offset: 0.75 }),
|
|
58
|
-
style({ opacity: 0, offset: 1 }),
|
|
59
|
-
]),
|
|
60
|
-
),
|
|
61
|
-
]),
|
|
62
|
-
]),
|
|
63
|
-
],
|
|
64
|
-
})
|
|
65
|
-
export class OnemrvaMatFileUploadComponent implements OnInit {
|
|
66
|
-
@Input()
|
|
67
|
-
accept: Array<string> = [];
|
|
68
|
-
acceptString = '';
|
|
69
|
-
|
|
70
|
-
@Input()
|
|
71
|
-
maxFileSize: number = 0;
|
|
72
|
-
|
|
73
|
-
@Input()
|
|
74
|
-
numberOfFiles: number = 0;
|
|
75
|
-
|
|
76
|
-
@Input()
|
|
77
|
-
uploadOnDrop: boolean = true;
|
|
78
|
-
|
|
79
|
-
@Input()
|
|
80
|
-
initialFiles: ProgressFile[] = [];
|
|
81
|
-
|
|
82
|
-
@Input()
|
|
83
|
-
errorMessage: string = '';
|
|
84
|
-
|
|
85
|
-
@Input()
|
|
86
|
-
dropFilesHereTextTranslationKey: string = 'file.upload.drag.and.drop';
|
|
87
|
-
|
|
88
|
-
fileUploadErrorMessage$: Observable<string>;
|
|
89
|
-
|
|
90
|
-
files$: Observable<ReferencedProgressFile[]>;
|
|
91
|
-
|
|
92
|
-
@Input() filePanelTemplate!: TemplateRef<any>;
|
|
93
|
-
|
|
94
|
-
retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `"onemrva-mat-multi-select-0"`.
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```html
|
|
101
|
-
* <onemrva-mat-multi-select id="my-first-multi-select"></onemrva-mat-multi-select>
|
|
102
|
-
* ```
|
|
103
|
-
*/
|
|
104
|
-
@HostBinding('attr.data-cy')
|
|
105
|
-
@Input()
|
|
106
|
-
public dataCy = `onemrva-mat-multi-select-${NEXT_ID++}`;
|
|
107
|
-
|
|
108
|
-
@ViewChild(`fileDropRef`)
|
|
109
|
-
fileDropRef!: ElementRef;
|
|
110
|
-
|
|
111
|
-
inputId = `fileDropRef-${NEXT_ID}`;
|
|
112
|
-
maxFileSizeFormatted: string = '';
|
|
113
|
-
|
|
114
|
-
constructor(
|
|
115
|
-
public dialog: MatDialog,
|
|
116
|
-
private translate: TranslateService,
|
|
117
|
-
private fileUploadStore: OnemrvaMatFileUploadStore,
|
|
118
|
-
) {
|
|
119
|
-
this.files$ = fileUploadStore.files$;
|
|
120
|
-
|
|
121
|
-
this.fileUploadErrorMessage$ = this.fileUploadStore.fileUploadError$;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
ngOnInit(): void {
|
|
125
|
-
if (this.accept.length > 0) {
|
|
126
|
-
this.acceptString = this.accept
|
|
127
|
-
.map(val => {
|
|
128
|
-
const t = mimeTypes.getExtension(val);
|
|
129
|
-
return `.${t}`;
|
|
130
|
-
})
|
|
131
|
-
.filter(val => {
|
|
132
|
-
return val.length > 1;
|
|
133
|
-
})
|
|
134
|
-
.join(', ');
|
|
135
|
-
|
|
136
|
-
this.fileUploadStore.setAccept(this.accept);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
this.maxFileSizeFormatted = formatBytes(this.maxFileSize);
|
|
140
|
-
this.fileUploadStore.setMaxFileSize(this.maxFileSize);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* on file drop handler
|
|
145
|
-
*/
|
|
146
|
-
onFileDropped($event: FileList) {
|
|
147
|
-
this.prepareFilesList($event);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* handle file from browsing
|
|
152
|
-
*/
|
|
153
|
-
fileBrowseHandler($event: Event) {
|
|
154
|
-
const elm = $event.target as HTMLInputElement,
|
|
155
|
-
files = elm.files as FileList;
|
|
156
|
-
|
|
157
|
-
this.prepareFilesList(files);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Convert Files list to normal array list
|
|
162
|
-
* @param files (Files List)
|
|
163
|
-
*/
|
|
164
|
-
prepareFilesList(files: FileList) {
|
|
165
|
-
this.fileUploadStore.files$.pipe(take(1)).subscribe(value => {
|
|
166
|
-
// if numberOffiles is set and the total length of files is smaller than it
|
|
167
|
-
if (
|
|
168
|
-
this.numberOfFiles > 0 &&
|
|
169
|
-
files.length + value.length <= this.numberOfFiles
|
|
170
|
-
) {
|
|
171
|
-
// clear error message
|
|
172
|
-
this.errorMessage = '';
|
|
173
|
-
|
|
174
|
-
const fs: ProgressFile[] = [];
|
|
175
|
-
for (let i = 0; i < files.length; i++) {
|
|
176
|
-
const file = files.item(i);
|
|
177
|
-
if (file === null) continue;
|
|
178
|
-
|
|
179
|
-
const item: ProgressFile = {
|
|
180
|
-
file,
|
|
181
|
-
progress: 0,
|
|
182
|
-
message: '',
|
|
183
|
-
color: 'primary',
|
|
184
|
-
url: null,
|
|
185
|
-
id: null,
|
|
186
|
-
enableProgressBar: this.uploadOnDrop,
|
|
187
|
-
|
|
188
|
-
name: file!.name,
|
|
189
|
-
lastModified: file!.lastModified,
|
|
190
|
-
size: file!.size,
|
|
191
|
-
type: file!.type,
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
fs.push(item);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
if (this.uploadOnDrop) this.fileUploadStore.uploadFiles(fs);
|
|
198
|
-
else this.fileUploadStore.addSeveralForPotentialUpload(fs);
|
|
199
|
-
|
|
200
|
-
this.fileDropRef.nativeElement.value = null;
|
|
201
|
-
} else {
|
|
202
|
-
// too many files
|
|
203
|
-
this.errorMessage = this.translate.instant(
|
|
204
|
-
'file.upload.too.many.files',
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Directive,
|
|
3
|
-
Output,
|
|
4
|
-
EventEmitter,
|
|
5
|
-
HostBinding,
|
|
6
|
-
HostListener,
|
|
7
|
-
} from '@angular/core';
|
|
8
|
-
|
|
9
|
-
@Directive({
|
|
10
|
-
selector: '[appDnd]',
|
|
11
|
-
})
|
|
12
|
-
export class DndDirective {
|
|
13
|
-
@HostBinding('class.fileover') fileOver: boolean = false;
|
|
14
|
-
|
|
15
|
-
@Output() fileDropped = new EventEmitter<any>();
|
|
16
|
-
|
|
17
|
-
// Dragover listener
|
|
18
|
-
@HostListener('dragover', ['$event']) onDragOver(evt: Event) {
|
|
19
|
-
evt.preventDefault();
|
|
20
|
-
evt.stopPropagation();
|
|
21
|
-
this.fileOver = true;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Dragleave listener
|
|
25
|
-
@HostListener('dragleave', ['$event']) public onDragLeave(evt: Event) {
|
|
26
|
-
evt.preventDefault();
|
|
27
|
-
evt.stopPropagation();
|
|
28
|
-
this.fileOver = false;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Drop listener
|
|
32
|
-
@HostListener('drop', ['$event']) public ondrop(evt: any) {
|
|
33
|
-
evt.preventDefault();
|
|
34
|
-
evt.stopPropagation();
|
|
35
|
-
this.fileOver = false;
|
|
36
|
-
const files = evt.dataTransfer.files;
|
|
37
|
-
if (files.length > 0) {
|
|
38
|
-
this.fileDropped.emit(files);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReferencedProgressFile } from './progress-file.model';
|
|
2
|
-
|
|
3
|
-
export interface ActionConfig {
|
|
4
|
-
iconName: string; // angular material name
|
|
5
|
-
dataCy?: string;
|
|
6
|
-
tooltipCode: string;
|
|
7
|
-
ariaCode: string;
|
|
8
|
-
clickHandler: (file: ReferencedProgressFile) => void;
|
|
9
|
-
showAction: (file: ReferencedProgressFile) => boolean;
|
|
10
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
2
|
-
|
|
3
|
-
export interface ProgressFile {
|
|
4
|
-
file?: File;
|
|
5
|
-
message: string;
|
|
6
|
-
progress: number;
|
|
7
|
-
color: OnemrvaMatColor; // color 1 - 1 with status
|
|
8
|
-
url: string | null;
|
|
9
|
-
id: string | null; // backend identifier
|
|
10
|
-
enableProgressBar: boolean;
|
|
11
|
-
data?: any;
|
|
12
|
-
|
|
13
|
-
name: string;
|
|
14
|
-
lastModified?: number;
|
|
15
|
-
size: number;
|
|
16
|
-
type: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ReferencedProgressFile extends ProgressFile {
|
|
20
|
-
ref: symbol; // ref is a frontend identifier
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* format bytes
|
|
25
|
-
* @param bytes (File size in bytes)
|
|
26
|
-
* @param decimals (Decimals point)
|
|
27
|
-
*/
|
|
28
|
-
export function formatBytes(bytes: number, decimals: number = 2) {
|
|
29
|
-
if (bytes === 0) {
|
|
30
|
-
return '0 Bytes';
|
|
31
|
-
}
|
|
32
|
-
const k = 1024;
|
|
33
|
-
const dm = decimals <= 0 ? 0 : decimals || 2;
|
|
34
|
-
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
|
35
|
-
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
36
|
-
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function formattedSize(size: number, decimals: number = 2) {
|
|
40
|
-
return formatBytes(size, decimals);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function convertToProgressFile(
|
|
44
|
-
id: string,
|
|
45
|
-
name: string,
|
|
46
|
-
message: string = '',
|
|
47
|
-
progress = 100,
|
|
48
|
-
color = OnemrvaMatColor.PRIMARY,
|
|
49
|
-
url: string | null = null,
|
|
50
|
-
enableProgressBar: boolean = false,
|
|
51
|
-
data: string | null = null,
|
|
52
|
-
size = 0,
|
|
53
|
-
type = '',
|
|
54
|
-
): ProgressFile {
|
|
55
|
-
return {
|
|
56
|
-
id: id!,
|
|
57
|
-
name: name!,
|
|
58
|
-
message: message,
|
|
59
|
-
progress: progress,
|
|
60
|
-
color: color,
|
|
61
|
-
url: url,
|
|
62
|
-
enableProgressBar: enableProgressBar,
|
|
63
|
-
data: data,
|
|
64
|
-
size: size,
|
|
65
|
-
type: type,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function convertToReferencedProgressFile(
|
|
70
|
-
id: string,
|
|
71
|
-
name: string,
|
|
72
|
-
message: string = '',
|
|
73
|
-
progress = 100,
|
|
74
|
-
color = OnemrvaMatColor.PRIMARY,
|
|
75
|
-
url: string | null = null,
|
|
76
|
-
enableProgressBar: boolean = false,
|
|
77
|
-
data: string | null = null,
|
|
78
|
-
size = 0,
|
|
79
|
-
type = '',
|
|
80
|
-
): ReferencedProgressFile {
|
|
81
|
-
return {
|
|
82
|
-
id: id!,
|
|
83
|
-
ref: Symbol(name),
|
|
84
|
-
name: name!,
|
|
85
|
-
message: message,
|
|
86
|
-
progress: progress,
|
|
87
|
-
color: color,
|
|
88
|
-
url: url,
|
|
89
|
-
enableProgressBar: enableProgressBar,
|
|
90
|
-
data: data,
|
|
91
|
-
size: size,
|
|
92
|
-
type: type,
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Observable, Subscription } from 'rxjs';
|
|
2
|
-
import {
|
|
3
|
-
ProgressFile,
|
|
4
|
-
ReferencedProgressFile,
|
|
5
|
-
} from './models/progress-file.model';
|
|
6
|
-
|
|
7
|
-
export interface OnemrvaMatFileUploadStoreItf {
|
|
8
|
-
/**
|
|
9
|
-
* Updater to set accepted format is made public
|
|
10
|
-
*/
|
|
11
|
-
readonly setAccept: any;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Updater to set file max size is made public
|
|
15
|
-
*/
|
|
16
|
-
readonly setMaxFileSize: any;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Updater to set data for a given file
|
|
20
|
-
*
|
|
21
|
-
* input:
|
|
22
|
-
* payload: {
|
|
23
|
-
* ref: symbol,
|
|
24
|
-
* data: any
|
|
25
|
-
* }
|
|
26
|
-
*/
|
|
27
|
-
readonly setData: any;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Selector on list of files
|
|
31
|
-
*/
|
|
32
|
-
readonly files$: Observable<ReferencedProgressFile[]>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Selector on accepted formats for file upload
|
|
36
|
-
*/
|
|
37
|
-
readonly accept$: Observable<string[]>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Selector on max file size
|
|
41
|
-
*/
|
|
42
|
-
readonly maxFileSize$: Observable<number>;
|
|
43
|
-
|
|
44
|
-
readonly listUploadedFiles: (inputs$: Observable<any>) => Subscription;
|
|
45
|
-
readonly deleteFile: (
|
|
46
|
-
file$: Observable<ReferencedProgressFile>,
|
|
47
|
-
) => Subscription;
|
|
48
|
-
readonly removeFile: (
|
|
49
|
-
file$: Observable<ReferencedProgressFile>,
|
|
50
|
-
) => Subscription;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Action - For adding one file panel (creation of file panel reference skipped if already created) at a time.
|
|
54
|
-
* Upload to BE not triggered
|
|
55
|
-
*/
|
|
56
|
-
readonly addForPotentialUpload: (
|
|
57
|
-
file$: Observable<ProgressFile>,
|
|
58
|
-
) => Subscription;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Action - For adding an array of file panels (creation of file panels reference skipped if already created).
|
|
62
|
-
* Uploads to BE not triggered
|
|
63
|
-
*/
|
|
64
|
-
readonly addSeveralForPotentialUpload: (
|
|
65
|
-
files$: Observable<ProgressFile[]>,
|
|
66
|
-
) => Subscription;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Action - For adding a file panel (creation of file panels reference skipped if already created) then uploading it
|
|
70
|
-
*/
|
|
71
|
-
readonly uploadFile: (Observable$: Observable<ProgressFile>) => Subscription;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Action - For adding several file panels (creation of file panels reference skipped if already created) then uploading them
|
|
75
|
-
*/
|
|
76
|
-
readonly uploadFiles: (
|
|
77
|
-
Observable$: Observable<ProgressFile[]>,
|
|
78
|
-
) => Subscription;
|
|
79
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { DndDirective } from './directives/dnd.directive';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
6
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
7
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
8
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
9
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
-
|
|
11
|
-
import { components } from './components';
|
|
12
|
-
import { MatInputModule } from '@angular/material/input';
|
|
13
|
-
|
|
14
|
-
@NgModule({
|
|
15
|
-
declarations: [components, DndDirective],
|
|
16
|
-
imports: [
|
|
17
|
-
CommonModule,
|
|
18
|
-
ReactiveFormsModule,
|
|
19
|
-
MatButtonModule,
|
|
20
|
-
MatTooltipModule,
|
|
21
|
-
MatDialogModule,
|
|
22
|
-
TranslateModule,
|
|
23
|
-
MatIconModule,
|
|
24
|
-
MatInputModule,
|
|
25
|
-
],
|
|
26
|
-
exports: [components],
|
|
27
|
-
})
|
|
28
|
-
export class OnemrvaMatFileUploadModule {}
|