@onemrvapublic/design-system 19.4.0-alpha.9 → 20.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/address/index.d.ts +8 -0
- package/address/src/address.scss +0 -0
- package/fesm2022/onemrvapublic-design-system-address.mjs +22 -0
- package/fesm2022/onemrvapublic-design-system-address.mjs.map +1 -0
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +10 -9
- package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-layout.mjs +125 -141
- package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +119 -118
- package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +37 -32
- package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +30 -24
- package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +43 -5
- package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +14 -16
- package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
- 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 +30 -29
- package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +10 -10
- package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +92 -106
- package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +18 -15
- package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +43 -48
- package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +17 -17
- package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +15 -15
- package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +26 -36
- package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +18 -18
- package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +18 -8
- package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +20 -26
- package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +11 -13
- package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +40 -42
- package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +29 -29
- package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +19 -19
- package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +3 -3
- package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +36 -56
- package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +11 -11
- package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +14 -15
- package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +9 -9
- package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +16 -16
- package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +35 -17
- package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +8 -8
- package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +35 -36
- package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +33 -33
- package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs +75 -96
- package/fesm2022/onemrvapublic-design-system-mat-timepicker.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +13 -16
- package/fesm2022/onemrvapublic-design-system-mat-toast.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +17 -17
- package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-error.mjs +18 -18
- package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +25 -31
- package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system-shared.mjs +207 -187
- package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
- package/fesm2022/onemrvapublic-design-system.mjs +10269 -3
- package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
- package/flag-icon/index.d.ts +18 -1
- package/index.d.ts +3063 -3
- package/layout/index.d.ts +259 -7
- package/mat-avatar/index.d.ts +248 -2
- package/mat-avatar/src/onemrva-mat-avatar.component.scss +48 -11
- package/mat-breadcrumb/index.d.ts +40 -3
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.scss +7 -11
- package/mat-carousel/index.d.ts +52 -2
- package/mat-carousel/src/onemrva-mat-carousel.component.scss +4 -3
- package/mat-choice-chip/index.d.ts +19 -1
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.scss +10 -2
- package/mat-copy-to-clipboard/index.d.ts +26 -1
- package/mat-country-item/index.d.ts +10 -0
- package/mat-datepicker-header/index.d.ts +44 -1
- package/mat-empty-row/index.d.ts +19 -1
- package/mat-file-upload/index.d.ts +301 -8
- package/mat-input-address/index.d.ts +31 -1
- package/mat-input-birthplace/index.d.ts +36 -1
- package/mat-input-country/index.d.ts +30 -1
- package/mat-input-country/src/onemrva-mat-input-country.component.scss +1 -1
- package/mat-input-enterprise-number/index.d.ts +37 -1
- package/mat-input-iban/index.d.ts +79 -1
- package/mat-input-phone/index.d.ts +44 -2
- package/mat-message-box/index.d.ts +101 -2
- package/mat-multi-select/index.d.ts +57 -2
- package/mat-notification/index.d.ts +43 -1
- package/mat-paginator/index.d.ts +58 -2
- package/mat-panel/index.d.ts +55 -6
- package/mat-panel/src/onemrva-mat-panel.component.scss +34 -2
- package/mat-pop-over/index.d.ts +40 -4
- package/mat-pop-over/src/onemrva-mat-pop-over.component.scss +9 -9
- package/mat-progress-bar/index.d.ts +18 -1
- package/mat-select-search/index.d.ts +197 -3
- package/mat-selectable-box/index.d.ts +29 -2
- package/mat-side-menu/index.d.ts +33 -2
- package/mat-skeleton/index.d.ts +100 -3
- package/mat-spinner/index.d.ts +25 -3
- package/mat-stepper/index.d.ts +36 -2
- package/mat-stepper/src/onemrva-mat-stepper.scss +2 -0
- package/mat-sticker/index.d.ts +14 -2
- package/mat-sticker/src/onemrva-mat-sticker.component.scss +5 -0
- package/mat-table-of-content/index.d.ts +84 -4
- package/mat-task-list/index.d.ts +57 -5
- package/mat-timepicker/index.d.ts +386 -6
- package/mat-timepicker/src/clock/clock.component.scss +7 -6
- package/mat-toast/index.d.ts +30 -2
- package/mat-tooltip/index.d.ts +39 -4
- package/package.json +24 -15
- package/page-error/index.d.ts +34 -2
- package/page-not-found/index.d.ts +54 -5
- package/shared/index.d.ts +532 -15
- package/utils/index.d.ts +32 -2
- package/flag-icon/src/flag-icon.component.d.ts +0 -16
- package/layout/src/components/index.d.ts +0 -23
- package/layout/src/components/layout/layout.component.d.ts +0 -60
- package/layout/src/components/layout-after-nav/layout-after-nav.component.d.ts +0 -11
- package/layout/src/components/layout-content/layout-content.component.d.ts +0 -11
- package/layout/src/components/layout-drawer-actions/layout-drawer-actions.component.d.ts +0 -8
- package/layout/src/components/layout-drawer-content/layout-drawer-content.component.d.ts +0 -8
- package/layout/src/components/layout-drawer-title/layout-drawer-title.component.d.ts +0 -9
- package/layout/src/components/layout-footer/layout-footer.component.d.ts +0 -7
- package/layout/src/components/layout-login-menu/layout-login-menu.component.d.ts +0 -11
- package/layout/src/components/layout-route/layout-route.component.d.ts +0 -24
- package/layout/src/components/layout-sidenav/layout-sidenav.component.d.ts +0 -24
- package/layout/src/components/layout-sidenav-title/layout-sidenav-title.component.d.ts +0 -7
- package/layout/src/components/layout-subroute/layout-subroute.component.d.ts +0 -20
- package/layout/src/components/layout-title/layout-title.component.d.ts +0 -11
- package/layout/src/decorators/coerce-boolean-input.decorator.d.ts +0 -1
- package/layout/src/decorators/index.d.ts +0 -2
- package/layout/src/decorators/observable-content.decorator.d.ts +0 -1
- package/layout/src/directives/drawer-host.directive.d.ts +0 -14
- package/layout/src/directives/index.d.ts +0 -2
- package/layout/src/directives/striphtml.pipe.d.ts +0 -7
- package/layout/src/enums/environment.enum.d.ts +0 -6
- package/layout/src/enums/index.d.ts +0 -1
- package/layout/src/layout.module.d.ts +0 -32
- package/layout/src/models/index.d.ts +0 -2
- package/layout/src/models/onem-language.model.d.ts +0 -4
- package/layout/src/models/onemrva-profile.model.d.ts +0 -16
- package/layout/src/services/drawer.service.d.ts +0 -13
- package/layout/src/services/index.d.ts +0 -1
- package/mat-avatar/src/onemrva-mat-avatar.component.d.ts +0 -240
- package/mat-avatar/src/onemrva-mat-avatar.module.d.ts +0 -7
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.component.d.ts +0 -11
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.model.d.ts +0 -5
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.module.d.ts +0 -10
- package/mat-breadcrumb/src/onemrva-mat-breadcrumb.service.d.ts +0 -12
- package/mat-carousel/src/mat-carousel-item/onemrva-mat-carousel-item.component.d.ts +0 -11
- package/mat-carousel/src/onemrva-mat-carousel.component.d.ts +0 -40
- package/mat-choice-chip/src/onemrva-mat-choice-chip.component.d.ts +0 -10
- package/mat-copy-to-clipboard/src/components/copy-to-clipboard.component.d.ts +0 -26
- package/mat-datepicker-header/src/onemrva-mat-datepicker-header.component.d.ts +0 -43
- package/mat-empty-row/src/onemrva-mat-empty-row.component.d.ts +0 -19
- package/mat-file-upload/src/components/index.d.ts +0 -3
- package/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.d.ts +0 -29
- package/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.d.ts +0 -60
- package/mat-file-upload/src/directives/dnd.directive.d.ts +0 -11
- package/mat-file-upload/src/models/action-config.model.d.ts +0 -9
- package/mat-file-upload/src/models/progress-file.model.d.ts +0 -28
- package/mat-file-upload/src/onemrva-mat-file-upload-itf.store.d.ts +0 -55
- package/mat-file-upload/src/onemrva-mat-file-upload.module.d.ts +0 -17
- package/mat-file-upload/src/onemrva-mat-file-upload.service.d.ts +0 -23
- package/mat-file-upload/src/onemrva-mat-file-upload.store.d.ts +0 -79
- package/mat-input-address/src/onemrva-mat-input-address.component.d.ts +0 -28
- package/mat-input-birthplace/src/country-item.component.d.ts +0 -11
- package/mat-input-birthplace/src/onemrva-mat-input-birthplace.component.d.ts +0 -31
- package/mat-input-country/src/onemrva-mat-input-country.component.d.ts +0 -27
- package/mat-input-enterprise-number/src/onemrva-mat-input-enterprise-number.component.d.ts +0 -34
- package/mat-input-iban/src/onemrva-mat-input-iban.component.d.ts +0 -77
- package/mat-input-phone/src/onemrva-mat-input-phone.component.d.ts +0 -35
- package/mat-input-phone/src/phone-number.directive.d.ts +0 -6
- package/mat-message-box/src/onemrva-mat-message-box.component.d.ts +0 -90
- package/mat-message-box/src/onemrva-mat-message-box.module.d.ts +0 -7
- package/mat-multi-select/src/onemrva-mat-multi-select.component.d.ts +0 -48
- package/mat-multi-select/src/onemrva-mat-multi-select.module.d.ts +0 -7
- package/mat-notification/src/onemrva-mat-notification.component.d.ts +0 -40
- package/mat-paginator/src/onemrva-mat-paginator.component.d.ts +0 -50
- package/mat-paginator/src/onemrva-mat-paginator.module.d.ts +0 -7
- package/mat-panel/src/onemrva-mat-panel-content.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-icon.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-title-action.component.d.ts +0 -8
- package/mat-panel/src/onemrva-mat-panel-title.component.d.ts +0 -13
- package/mat-panel/src/onemrva-mat-panel.component.d.ts +0 -19
- package/mat-panel/src/onemrva-mat-panel.module.d.ts +0 -11
- package/mat-pop-over/src/onemrva-mat-pop-over-content.component.d.ts +0 -8
- package/mat-pop-over/src/onemrva-mat-pop-over-trigger.component.d.ts +0 -8
- package/mat-pop-over/src/onemrva-mat-pop-over.component.d.ts +0 -20
- package/mat-pop-over/src/onemrva-mat-pop-over.module.d.ts +0 -9
- package/mat-progress-bar/src/onemrva-mat-progress-bar.component.d.ts +0 -15
- package/mat-select-search/src/default-options.d.ts +0 -25
- package/mat-select-search/src/mat-select-no-entries-found.directive.d.ts +0 -14
- package/mat-select-search/src/mat-select-search-clear.directive.d.ts +0 -12
- package/mat-select-search/src/mat-select-search.component.d.ts +0 -141
- package/mat-select-search/src/mat-select-search.module.d.ts +0 -13
- package/mat-selectable-box/src/onemrva-mat-selectable-box.component.d.ts +0 -21
- package/mat-selectable-box/src/onemrva-mat-selectable-box.module.d.ts +0 -7
- package/mat-side-menu/src/onemrva-mat-side-menu.component.d.ts +0 -24
- package/mat-side-menu/src/onemrva-mat-side-menu.module.d.ts +0 -7
- package/mat-skeleton/src/onemrva-mat-skeleton-enums.d.ts +0 -21
- package/mat-skeleton/src/onemrva-mat-skeleton.component.d.ts +0 -69
- package/mat-skeleton/src/onemrva-mat-skeleton.module.d.ts +0 -7
- package/mat-spinner/src/onemrva-mat-loading.directive.d.ts +0 -12
- package/mat-spinner/src/onemrva-mat-spinner.component.d.ts +0 -5
- package/mat-spinner/src/onemrva-mat-spinner.module.d.ts +0 -8
- package/mat-stepper/src/_stepper-variables.scss +0 -29
- package/mat-stepper/src/onemrva-mat-stepper.component.d.ts +0 -21
- package/mat-stepper/src/onemrva-mat-stepper.module.d.ts +0 -8
- package/mat-stepper/src/onemrva-stepper-animations.d.ts +0 -16
- package/mat-sticker/src/onemrva-mat-sticker.component.d.ts +0 -5
- package/mat-sticker/src/onemrva-mat-sticker.module.d.ts +0 -7
- package/mat-table-of-content/src/onemrva-mat-table-of-content.component.d.ts +0 -31
- package/mat-table-of-content/src/onemrva-mat-table-of-content.directive.d.ts +0 -27
- package/mat-table-of-content/src/onemrva-mat-table-of-content.service.d.ts +0 -12
- package/mat-table-of-content/src/onemrva-mat-toc-anchor.model.d.ts +0 -19
- package/mat-task-list/src/onemrva-mat-task-content.component.d.ts +0 -8
- package/mat-task-list/src/onemrva-mat-task-list.component.d.ts +0 -13
- package/mat-task-list/src/onemrva-mat-task-list.module.d.ts +0 -10
- package/mat-task-list/src/onemrva-mat-task-title.component.d.ts +0 -11
- package/mat-task-list/src/onemrva-mat-task.component.d.ts +0 -25
- package/mat-timepicker/src/clock/clock.component.d.ts +0 -50
- package/mat-timepicker/src/interfaces-and-types.d.ts +0 -13
- package/mat-timepicker/src/onemrva-mat-timepicker.component.d.ts +0 -129
- package/mat-timepicker/src/onemrva-mat-timepicker.module.d.ts +0 -11
- package/mat-timepicker/src/timepicker-dialog/timepicker-dialog.component.d.ts +0 -60
- package/mat-timepicker/src/timepicker-toggle/timepicker-toggle.component.d.ts +0 -42
- package/mat-timepicker/src/timepicker.directive.d.ts +0 -102
- package/mat-timepicker/src/util.d.ts +0 -12
- package/mat-toast/src/onemrva-mat-toast.component.d.ts +0 -24
- package/mat-toast/src/onemrva-mat-toast.module.d.ts +0 -8
- package/mat-tooltip/src/onemrva-mat-tooltip.component.d.ts +0 -8
- package/mat-tooltip/src/onemrva-mat-tooltip.directive.d.ts +0 -24
- package/mat-tooltip/src/onemrva-mat-tooltip.module.d.ts +0 -8
- package/page-error/src/page-error-action.component.d.ts +0 -7
- package/page-error/src/page-error.component.d.ts +0 -27
- package/page-not-found/src/page-not-found-action.component.d.ts +0 -7
- package/page-not-found/src/page-not-found-extra.component.d.ts +0 -7
- package/page-not-found/src/page-not-found-invader.component.d.ts +0 -21
- package/page-not-found/src/page-not-found.component.d.ts +0 -17
- package/page-not-found/src/page-not-found.module.d.ts +0 -10
- package/public-api.d.ts +0 -1
- package/shared/src/lib/adapters/index.d.ts +0 -2
- package/shared/src/lib/adapters/luxon.date.adapter.d.ts +0 -50
- package/shared/src/lib/adapters/luxon.utils.d.ts +0 -26
- package/shared/src/lib/adapters/native.date.adapter.d.ts +0 -17
- package/shared/src/lib/components/clipboard-icon/clipboard-icon.component.d.ts +0 -10
- package/shared/src/lib/components/index.d.ts +0 -1
- package/shared/src/lib/constants/CDNUrlModeOptions.d.ts +0 -4
- package/shared/src/lib/constants/cdn.d.ts +0 -2
- package/shared/src/lib/constants/constants.d.ts +0 -6
- package/shared/src/lib/constants/date.format.d.ts +0 -5
- package/shared/src/lib/constants/index.d.ts +0 -4
- package/shared/src/lib/containers/WebComponentOverlayContainer.d.ts +0 -25
- package/shared/src/lib/containers/index.d.ts +0 -1
- package/shared/src/lib/decorators/HttpCacheDecorator.d.ts +0 -28
- package/shared/src/lib/decorators/index.d.ts +0 -1
- package/shared/src/lib/directives/clipboard.directive.d.ts +0 -21
- package/shared/src/lib/directives/color.directive.d.ts +0 -24
- package/shared/src/lib/directives/date-format.directive.d.ts +0 -19
- package/shared/src/lib/directives/digit-only.directive.d.ts +0 -6
- package/shared/src/lib/directives/iconRight.directive.d.ts +0 -9
- package/shared/src/lib/directives/if-width-is.directive.d.ts +0 -16
- package/shared/src/lib/directives/index.d.ts +0 -10
- package/shared/src/lib/directives/mask.directive.d.ts +0 -21
- package/shared/src/lib/directives/mat-row-clickable.directive.d.ts +0 -12
- package/shared/src/lib/directives/size.directive.d.ts +0 -20
- package/shared/src/lib/helpers/index.d.ts +0 -1
- package/shared/src/lib/helpers/translation-helper.d.ts +0 -17
- package/shared/src/lib/interfaces/OnemRvaCommonCountry.interface.d.ts +0 -23
- package/shared/src/lib/interfaces/index.d.ts +0 -1
- package/shared/src/lib/loaders/index.d.ts +0 -2
- package/shared/src/lib/loaders/onemrva-translate-cdn-loader.d.ts +0 -14
- package/shared/src/lib/loaders/onemrva-translate-http-loader.d.ts +0 -14
- package/shared/src/lib/pipes/index.d.ts +0 -2
- package/shared/src/lib/pipes/onemrva-bce.pipe.d.ts +0 -7
- package/shared/src/lib/pipes/onemrva-niss.pipe.d.ts +0 -7
- package/shared/src/lib/providers/index.d.ts +0 -5
- package/shared/src/lib/providers/onemrva.date.luxon.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.luxon.year.month.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.native.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.date.native.year.month.provider.d.ts +0 -2
- package/shared/src/lib/providers/onemrva.theme.provider.d.ts +0 -2
- package/shared/src/lib/services/cache.service.d.ts +0 -10
- package/shared/src/lib/services/cdn.service.d.ts +0 -30
- package/shared/src/lib/services/country-cdn.service.d.ts +0 -30
- package/shared/src/lib/services/country-lookup.service.d.ts +0 -15
- package/shared/src/lib/services/index.d.ts +0 -8
- package/shared/src/lib/services/mime-cdn.service.d.ts +0 -15
- package/shared/src/lib/services/onemrva-error-handler.service.d.ts +0 -12
- package/shared/src/lib/services/onemrva-missing-translation.service.d.ts +0 -4
- package/shared/src/lib/services/osm.service.d.ts +0 -45
- package/shared/src/lib/shared.module.d.ts +0 -14
- package/shared/src/lib/tokens/index.d.ts +0 -1
- package/shared/src/lib/tokens/lookup.token.d.ts +0 -2
- package/shared/src/lib/validators/bank-account.validator.utils.d.ts +0 -4
- package/shared/src/lib/validators/index.d.ts +0 -2
- package/shared/src/lib/validators/onemrva-validators.d.ts +0 -8
- package/utils/src/enum.utils.d.ts +0 -6
- package/utils/src/enums/color.enum.d.ts +0 -12
- package/utils/src/enums/index.d.ts +0 -2
- package/utils/src/enums/size.enum.d.ts +0 -10
- /package/{mat-input-birthplace/src/country-item.component.scss → mat-country-item/src/onemrva-mat-country-item.component.scss} +0 -0
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { HostBinding, Input, ChangeDetectionStrategy, Component,
|
|
2
|
+
import { HostBinding, Input, ChangeDetectionStrategy, Component, Injectable, InjectionToken, inject, EventEmitter, HostListener, Output, Directive, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';
|
|
4
4
|
import { of, BehaviorSubject, interval, take, map, catchError, tap, mergeMap, withLatestFrom, filter, throttle, takeWhile, switchMap, forkJoin, merge, Subject } from 'rxjs';
|
|
5
5
|
import { MatIcon, MatIconModule } from '@angular/material/icon';
|
|
6
|
-
import {
|
|
6
|
+
import { AsyncPipe, NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
7
7
|
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
8
|
-
import
|
|
9
|
-
import { TranslatePipe, TranslateModule } from '@ngx-translate/core';
|
|
8
|
+
import { TranslatePipe, TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
10
9
|
import { MatProgressBar } from '@angular/material/progress-bar';
|
|
10
|
+
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
11
11
|
import { trigger, state, transition, style, animate, keyframes } from '@angular/animations';
|
|
12
|
-
import { MatError } from '@angular/material/form-field';
|
|
13
|
-
import * as i1 from '@angular/material/dialog';
|
|
14
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
15
|
-
import * as i2$1 from '@onemrvapublic/design-system/shared';
|
|
16
12
|
import { ComponentStore } from '@ngrx/component-store';
|
|
17
13
|
import { HttpEventType, HttpResponse } from '@angular/common/http';
|
|
14
|
+
import { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';
|
|
15
|
+
import { MatError } from '@angular/material/form-field';
|
|
18
16
|
import { MatButtonModule } from '@angular/material/button';
|
|
19
17
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
20
18
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -114,20 +112,12 @@ class OnemrvaFilePanelComponent {
|
|
|
114
112
|
get _isPrimary() {
|
|
115
113
|
return this.color === OnemrvaMatColor.PRIMARY;
|
|
116
114
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
118
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaFilePanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
116
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: OnemrvaFilePanelComponent, isStandalone: true, selector: "file-panel", inputs: { id: "id", dataCy: "dataCy", file: "file", actions: "actions", showProgress: "showProgress", displayDate: "displayDate", maxFileSize: "maxFileSize", color: "color" }, host: { properties: { "attr.id": "this.id", "attr.data-cy": "this.dataCy", "mat-accent": "this._colorAccent", "class.mat-error": "this._isError", "class.mat-warn": "this._isWarn", "class.mat-success": "this._isSuccess", "class.mat-primary": "this._isPrimary" } }, ngImport: i0, template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n @if (actions.length > 0) {\n @for (action of actions; track action.dataCy) {\n @if (action.showAction(file)) {\n <mat-icon\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n }\n }\n }\n </div>\n</div>\n<div class=\"file-panel-content\">\n @if (file.message === '') {\n <ng-container>\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n @if (file.size > 0) {\n <span class=\"float-right\">{{ size }}</span>\n }\n </div>\n @if (showProgress && file.enableProgressBar) {\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n }\n </ng-container>\n }\n @if (file.message !== '') {\n <p class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n }\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
119
117
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaFilePanelComponent, decorators: [{
|
|
121
119
|
type: Component,
|
|
122
|
-
args: [{ selector: 'file-panel', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
123
|
-
MatIcon,
|
|
124
|
-
NgIf,
|
|
125
|
-
MatTooltip,
|
|
126
|
-
TranslatePipe,
|
|
127
|
-
NgForOf,
|
|
128
|
-
AsyncPipe,
|
|
129
|
-
MatProgressBar,
|
|
130
|
-
], template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n <ng-container *ngIf=\"actions.length > 0\">\n <ng-container *ngFor=\"let action of actions\">\n <mat-icon\n *ngIf=\"action.showAction(file)\"\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n </ng-container>\n </ng-container>\n </div>\n</div>\n<div class=\"file-panel-content\">\n <ng-container *ngIf=\"file.message === ''\">\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n <span class=\"float-right\" *ngIf=\"file.size > 0\">{{ size }}</span>\n </div>\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n *ngIf=\"showProgress && file.enableProgressBar\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n </ng-container>\n <p *ngIf=\"file.message !== ''\" class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"] }]
|
|
120
|
+
args: [{ selector: 'file-panel', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatIcon, MatTooltip, TranslatePipe, AsyncPipe, MatProgressBar], template: "<div class=\"file-panel-title show-icon\" [attr.data-cy]=\"dataCy\">\n <div class=\"file-panel-title-left\">\n <span class=\"file-name\">\n {{ file.name }}\n </span>\n </div>\n <div class=\"file-panel-title-action float-right\">\n @if (actions.length > 0) {\n @for (action of actions; track action.dataCy) {\n @if (action.showAction(file)) {\n <mat-icon\n role=\"button\"\n color=\"primary\"\n [attr.data-cy]=\"action.dataCy\"\n matTooltip=\"{{ action.tooltipCode | translate }}\"\n [attr.aria-label]=\"action.ariaCode | translate\"\n class=\"clickable\"\n (click)=\"action.clickHandler(file)\"\n >{{ action.iconName }}</mat-icon\n >\n }\n }\n }\n </div>\n</div>\n<div class=\"file-panel-content\">\n @if (file.message === '') {\n <ng-container>\n <div class=\"fileInfos\">\n <span>{{ displayDate }}</span>\n\n @if (file.size > 0) {\n <span class=\"float-right\">{{ size }}</span>\n }\n </div>\n @if (showProgress && file.enableProgressBar) {\n <mat-progress-bar\n data-cy=\"file-upload-progress\"\n mode=\"determinate\"\n [value]=\"progress$ | async\"\n ></mat-progress-bar>\n }\n </ng-container>\n }\n @if (file.message !== '') {\n <p class=\"message\">\n {{ file.message | translate: { limit: formattedSize(file.maxSize) } }}\n </p>\n }\n</div>\n", styles: [":host{flex:1 1 100%;border-radius:var(--border-radius);background-color:var(--mat-sys-primary-container);padding:var(--double-spacer);display:block}:host .file-panel-content{padding:0}:host .file-panel-content p:last-child{margin:0}:host .fileInfos{display:inline-block;width:100%;height:1.5rem;font:var(--mat-sys-body-medium)}:host .fileInfos .float-right{margin-right:var(--spacer)}:host .file-panel-title{font:var(--mat-sys-title-medium);margin-bottom:0;color:var(--mat-sys-primary)}:host .file-panel-title .file-panel-title-left{display:inline-flex;align-items:center;gap:var(--spacer)}:host .file-panel-title:before{margin-right:var(--spacer);margin-top:var(--quarter-spacer)}:host .file-panel-title .mat-progress-bar-fill:after{background:var(--mat-sys-primary)}:host .file-panel-title .mat-progress-bar-buffer{background-color:var(--mat-sys-primary-container)}\n"] }]
|
|
131
121
|
}], propDecorators: { id: [{
|
|
132
122
|
type: HostBinding,
|
|
133
123
|
args: ['attr.id']
|
|
@@ -167,58 +157,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
167
157
|
args: ['class.mat-primary']
|
|
168
158
|
}] } });
|
|
169
159
|
|
|
170
|
-
class DndDirective {
|
|
171
|
-
constructor() {
|
|
172
|
-
this.fileOver = false;
|
|
173
|
-
this.fileDropped = new EventEmitter();
|
|
174
|
-
}
|
|
175
|
-
// Dragover listener
|
|
176
|
-
onDragOver(evt) {
|
|
177
|
-
evt.preventDefault();
|
|
178
|
-
evt.stopPropagation();
|
|
179
|
-
this.fileOver = true;
|
|
180
|
-
}
|
|
181
|
-
// Dragleave listener
|
|
182
|
-
onDragLeave(evt) {
|
|
183
|
-
evt.preventDefault();
|
|
184
|
-
evt.stopPropagation();
|
|
185
|
-
this.fileOver = false;
|
|
186
|
-
}
|
|
187
|
-
// Drop listener
|
|
188
|
-
ondrop(evt) {
|
|
189
|
-
evt.preventDefault();
|
|
190
|
-
evt.stopPropagation();
|
|
191
|
-
this.fileOver = false;
|
|
192
|
-
const files = evt.dataTransfer.files;
|
|
193
|
-
if (files.length > 0) {
|
|
194
|
-
this.fileDropped.emit(files);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
198
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.10", type: DndDirective, isStandalone: true, selector: "[appDnd]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.fileover": "this.fileOver" } }, ngImport: i0 }); }
|
|
199
|
-
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DndDirective, decorators: [{
|
|
201
|
-
type: Directive,
|
|
202
|
-
args: [{
|
|
203
|
-
selector: '[appDnd]',
|
|
204
|
-
standalone: true,
|
|
205
|
-
}]
|
|
206
|
-
}], propDecorators: { fileOver: [{
|
|
207
|
-
type: HostBinding,
|
|
208
|
-
args: ['class.fileover']
|
|
209
|
-
}], fileDropped: [{
|
|
210
|
-
type: Output
|
|
211
|
-
}], onDragOver: [{
|
|
212
|
-
type: HostListener,
|
|
213
|
-
args: ['dragover', ['$event']]
|
|
214
|
-
}], onDragLeave: [{
|
|
215
|
-
type: HostListener,
|
|
216
|
-
args: ['dragleave', ['$event']]
|
|
217
|
-
}], ondrop: [{
|
|
218
|
-
type: HostListener,
|
|
219
|
-
args: ['drop', ['$event']]
|
|
220
|
-
}] } });
|
|
221
|
-
|
|
222
160
|
class OnemrvaMatFileUploadService {
|
|
223
161
|
constructor() {
|
|
224
162
|
this.isSending = new BehaviorSubject(false);
|
|
@@ -254,10 +192,10 @@ class OnemrvaMatFileUploadService {
|
|
|
254
192
|
alert(`Missing download implementation for file ID ${id}`);
|
|
255
193
|
return of(true);
|
|
256
194
|
}
|
|
257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
258
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
195
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
196
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, providedIn: 'root' }); }
|
|
259
197
|
}
|
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadService, decorators: [{
|
|
261
199
|
type: Injectable,
|
|
262
200
|
args: [{
|
|
263
201
|
providedIn: 'root',
|
|
@@ -275,14 +213,16 @@ const INIT_STATE = {
|
|
|
275
213
|
};
|
|
276
214
|
const CUSTOM_VALIDATION_FN = new InjectionToken('x1, x2 = (-b -+ sqrt(rho))/2a');
|
|
277
215
|
class OnemrvaMatFileUploadStore extends ComponentStore {
|
|
278
|
-
constructor(
|
|
216
|
+
constructor() {
|
|
279
217
|
super(INIT_STATE);
|
|
280
|
-
this.fileUploadService = fileUploadService;
|
|
281
|
-
this.translateService = translateService;
|
|
282
|
-
this.customValidationFn = customValidationFn;
|
|
283
218
|
this.fn = (x) => {
|
|
284
219
|
return x[0];
|
|
285
220
|
};
|
|
221
|
+
this.fileUploadService = inject(OnemrvaMatFileUploadService);
|
|
222
|
+
this.translateService = inject(TranslateService);
|
|
223
|
+
this.customValidationFn = inject(CUSTOM_VALIDATION_FN, {
|
|
224
|
+
optional: true,
|
|
225
|
+
});
|
|
286
226
|
this.isSending = this.fileUploadService.isSending;
|
|
287
227
|
/*
|
|
288
228
|
* U P D A T E R S
|
|
@@ -558,27 +498,71 @@ class OnemrvaMatFileUploadStore extends ComponentStore {
|
|
|
558
498
|
* For adding several file panels (creation of file panels reference skipped if already created) then uploading them
|
|
559
499
|
*/
|
|
560
500
|
this.uploadFiles = this.effect((files$) => files$.pipe(switchMap(files => merge(...files.map(file => this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)))))));
|
|
561
|
-
if (customValidationFn)
|
|
562
|
-
this.fn = customValidationFn;
|
|
501
|
+
if (this.customValidationFn)
|
|
502
|
+
this.fn = this.customValidationFn;
|
|
563
503
|
}
|
|
564
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
565
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
504
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
505
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore }); }
|
|
566
506
|
}
|
|
567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadStore, decorators: [{
|
|
568
508
|
type: Injectable
|
|
569
|
-
}], ctorParameters: () => [
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
509
|
+
}], ctorParameters: () => [] });
|
|
510
|
+
|
|
511
|
+
class DndDirective {
|
|
512
|
+
constructor() {
|
|
513
|
+
this.fileOver = false;
|
|
514
|
+
this.fileDropped = new EventEmitter();
|
|
515
|
+
}
|
|
516
|
+
// Dragover listener
|
|
517
|
+
onDragOver(evt) {
|
|
518
|
+
evt.preventDefault();
|
|
519
|
+
evt.stopPropagation();
|
|
520
|
+
this.fileOver = true;
|
|
521
|
+
}
|
|
522
|
+
// Dragleave listener
|
|
523
|
+
onDragLeave(evt) {
|
|
524
|
+
evt.preventDefault();
|
|
525
|
+
evt.stopPropagation();
|
|
526
|
+
this.fileOver = false;
|
|
527
|
+
}
|
|
528
|
+
// Drop listener
|
|
529
|
+
ondrop(evt) {
|
|
530
|
+
evt.preventDefault();
|
|
531
|
+
evt.stopPropagation();
|
|
532
|
+
this.fileOver = false;
|
|
533
|
+
const files = evt.dataTransfer.files;
|
|
534
|
+
if (files.length > 0) {
|
|
535
|
+
this.fileDropped.emit(files);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
539
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.6", type: DndDirective, isStandalone: true, selector: "[appDnd]", outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "ondrop($event)" }, properties: { "class.fileover": "this.fileOver" } }, ngImport: i0 }); }
|
|
540
|
+
}
|
|
541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DndDirective, decorators: [{
|
|
542
|
+
type: Directive,
|
|
543
|
+
args: [{
|
|
544
|
+
selector: '[appDnd]',
|
|
545
|
+
standalone: true,
|
|
546
|
+
}]
|
|
547
|
+
}], propDecorators: { fileOver: [{
|
|
548
|
+
type: HostBinding,
|
|
549
|
+
args: ['class.fileover']
|
|
550
|
+
}], fileDropped: [{
|
|
551
|
+
type: Output
|
|
552
|
+
}], onDragOver: [{
|
|
553
|
+
type: HostListener,
|
|
554
|
+
args: ['dragover', ['$event']]
|
|
555
|
+
}], onDragLeave: [{
|
|
556
|
+
type: HostListener,
|
|
557
|
+
args: ['dragleave', ['$event']]
|
|
558
|
+
}], ondrop: [{
|
|
559
|
+
type: HostListener,
|
|
560
|
+
args: ['drop', ['$event']]
|
|
561
|
+
}] } });
|
|
575
562
|
|
|
576
563
|
let NEXT_ID = 0;
|
|
577
564
|
class OnemrvaMatFileUploadComponent {
|
|
578
|
-
constructor(
|
|
579
|
-
this.dialog = dialog;
|
|
580
|
-
this.mimeCDN = mimeCDN;
|
|
581
|
-
this.fileUploadStore = fileUploadStore;
|
|
565
|
+
constructor() {
|
|
582
566
|
this.accept = [];
|
|
583
567
|
this.maxFileSize = 0;
|
|
584
568
|
this.numberOfFiles = 0;
|
|
@@ -601,8 +585,11 @@ class OnemrvaMatFileUploadComponent {
|
|
|
601
585
|
this.inputId = `fileDropRef-${NEXT_ID}`;
|
|
602
586
|
this.maxFileSizeFormatted = '';
|
|
603
587
|
this.error$ = new Subject();
|
|
588
|
+
this.dialog = inject(MatDialog);
|
|
589
|
+
this.mimeCDN = inject(OnemRvaCDNMimeService);
|
|
590
|
+
this.fileUploadStore = inject(OnemrvaMatFileUploadStore);
|
|
604
591
|
this.formattedSize = formattedSize;
|
|
605
|
-
this.files$ = fileUploadStore.files$;
|
|
592
|
+
this.files$ = this.fileUploadStore.files$;
|
|
606
593
|
this.fileUploadErrorMessage$ = merge(this.fileUploadStore.fileUploadError$, this.error$);
|
|
607
594
|
}
|
|
608
595
|
ngOnInit() {
|
|
@@ -676,8 +663,8 @@ class OnemrvaMatFileUploadComponent {
|
|
|
676
663
|
this.fileDropRef.nativeElement.value = null;
|
|
677
664
|
});
|
|
678
665
|
}
|
|
679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
680
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
666
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
667
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: OnemrvaMatFileUploadComponent, isStandalone: true, selector: "onemrva-mat-file-upload", inputs: { accept: "accept", maxFileSize: "maxFileSize", numberOfFiles: "numberOfFiles", maxTotalFileSize: "maxTotalFileSize", uploadOnDrop: "uploadOnDrop", initialFiles: "initialFiles", errorMessage: "errorMessage", hideExtensions: "hideExtensions", dropFilesHereTextTranslationKey: "dropFilesHereTextTranslationKey", filePanelTemplate: "filePanelTemplate", dataCy: "dataCy" }, host: { properties: { "attr.data-cy": "this.dataCy" } }, viewQueries: [{ propertyName: "fileDropRef", first: true, predicate: ["fileDropRef"], descendants: true }], ngImport: i0, template: "@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n @if (numberOfFiles === 0 || numberOfFiles > files.length) {\n <div class=\"download-outer\">\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n @if (maxFileSize > 0) {\n <span class=\"restrictions\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n @if (accept.length > 0) {\n <span>{{ '| ' }}</span>\n }\n\n {{ acceptString$ | async }}\n </span>\n }\n </div>\n </div>\n }\n <ul class=\"files-list\">\n @for (file of files; track file.id) {\n <li>\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n }\n </ul>\n </div>\n @if (fileUploadErrorMessage$ | async; as fileUploadErrorMessage) {\n <mat-error>\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n }\n}\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: DndDirective, selector: "[appDnd]", outputs: ["fileDropped"] }], animations: [
|
|
681
668
|
trigger('inOutAnimation', [
|
|
682
669
|
state('in', style({ opacity: 1 })),
|
|
683
670
|
transition(':enter', [
|
|
@@ -701,7 +688,7 @@ class OnemrvaMatFileUploadComponent {
|
|
|
701
688
|
]),
|
|
702
689
|
] }); }
|
|
703
690
|
}
|
|
704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadComponent, decorators: [{
|
|
705
692
|
type: Component,
|
|
706
693
|
args: [{ selector: 'onemrva-mat-file-upload', standalone: true, animations: [
|
|
707
694
|
trigger('inOutAnimation', [
|
|
@@ -730,13 +717,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
730
717
|
AsyncPipe,
|
|
731
718
|
MatIcon,
|
|
732
719
|
TranslatePipe,
|
|
733
|
-
NgForOf,
|
|
734
720
|
NgTemplateOutlet,
|
|
735
721
|
MatError,
|
|
736
|
-
NgIf,
|
|
737
722
|
DndDirective,
|
|
738
|
-
], template: "
|
|
739
|
-
}], ctorParameters: () => [
|
|
723
|
+
], template: "@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [ngClass]=\"{\n filein: files.length > 0,\n }\"\n >\n <input\n type=\"file\"\n #fileDropRef\n [attr.id]=\"inputId\"\n role=\"button\"\n multiple\n (change)=\"fileBrowseHandler($event)\"\n accept=\"{{ acceptString$ | async }}\"\n />\n @if (numberOfFiles === 0 || numberOfFiles > files.length) {\n <div class=\"download-outer\">\n <div class=\"download-icon\">\n <mat-icon class=\"onemrva-upload xxlarge\">download</mat-icon>\n </div>\n\n <div class=\"download-text\">\n {{ dropFilesHereTextTranslationKey | translate }}\n {{ 'file.upload.or' | translate }}\n <label for=\"{{ inputId }}\" class=\"content\">\n {{ 'file.upload.browse.for.file' | translate }} </label\n ><br />\n @if (maxFileSize > 0) {\n <span class=\"restrictions\">\n {{ 'file.upload.maximum' | translate }}\n {{ maxFileSizeFormatted }}\n\n @if (accept.length > 0) {\n <span>{{ '| ' }}</span>\n }\n\n {{ acceptString$ | async }}\n </span>\n }\n </div>\n </div>\n }\n <ul class=\"files-list\">\n @for (file of files; track file.id) {\n <li>\n <ng-container\n *ngTemplateOutlet=\"\n filePanelTemplate;\n context: { file, $implicit: file }\n \"\n ></ng-container>\n </li>\n }\n </ul>\n </div>\n @if (fileUploadErrorMessage$ | async; as fileUploadErrorMessage) {\n <mat-error>\n {{\n fileUploadErrorMessage\n | translate\n : {\n limit: numberOfFiles,\n maxTotalFileSize: formattedSize(maxTotalFileSize),\n }\n }}\n @if (errorMessage !== '') {\n [ {{ errorMessage }} ]\n }\n </mat-error>\n }\n}\n", styles: [":host .mat-mdc-form-field-error{margin-bottom:var(--spacer);padding:var(--spacer) 1em;background-color:var(--mat-sys-error-container);color:var(--mat-sys-on-error-container);border-bottom:1px solid var(--mat-sys-error);display:flex;line-height:1.125rem}:host .mat-mdc-form-field-error:before{font-family:var(--icon-font);content:\"\\e000\";float:left;font-size:1rem;font-variation-settings:\"FILL\" 1;margin-right:var(--spacer);vertical-align:baseline;flex:0 0 var(--double-spacer)}:host ul{list-style:none;margin-block-start:0;margin-block-end:0;margin-inline-start:0;margin-inline-end:0;padding-inline-start:0}:host ul li{width:100%}:host .onemrva-mat-file-upload-drop-area{padding:var(--triple-spacer);text-align:left;border:dashed 2px var(--mat-sys-outline);position:relative;border-radius:var(--border-radius);transition:background-color .3s ease-in-out,border .3s ease-in-out}:host .onemrva-mat-file-upload-drop-area mat-icon{color:var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area.fu-error{border:dashed 2px var(--mat-sys-error)}:host .onemrva-mat-file-upload-drop-area input[type=file]{display:none}:host .onemrva-mat-file-upload-drop-area .download-outer{display:flex;width:100%;margin:0}:host .onemrva-mat-file-upload-drop-area .download-outer .download-icon{padding-right:var(--double-spacer)}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text label{display:block;color:var(--mat-sys-primary);text-decoration:underline;cursor:pointer;font-weight:700}:host .onemrva-mat-file-upload-drop-area .download-outer .download-text .restrictions{display:block;color:var(--mat-sys-outline);margin-bottom:0}:host .onemrva-mat-file-upload-drop-area.filein .download-outer{margin:0 0 var(--triple-spacer) 0}:host .onemrva-mat-file-upload-drop-area.fileover{background:var(--mat-sys-primary-container);border:2px dashed var(--mat-sys-primary)}:host .onemrva-mat-file-upload-drop-area .files-list{display:flex;flex-flow:row wrap;gap:var(--double-spacer)}\n"] }]
|
|
724
|
+
}], ctorParameters: () => [], propDecorators: { accept: [{
|
|
740
725
|
type: Input
|
|
741
726
|
}], maxFileSize: [{
|
|
742
727
|
type: Input
|
|
@@ -772,8 +757,8 @@ const components = [
|
|
|
772
757
|
];
|
|
773
758
|
|
|
774
759
|
class OnemrvaMatFileUploadModule {
|
|
775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
776
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
760
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
761
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, imports: [OnemrvaFilePanelComponent, OnemrvaMatFileUploadComponent, DndDirective,
|
|
777
762
|
CommonModule,
|
|
778
763
|
ReactiveFormsModule,
|
|
779
764
|
MatButtonModule,
|
|
@@ -782,7 +767,7 @@ class OnemrvaMatFileUploadModule {
|
|
|
782
767
|
TranslateModule,
|
|
783
768
|
MatIconModule,
|
|
784
769
|
MatInputModule], exports: [OnemrvaFilePanelComponent, OnemrvaMatFileUploadComponent, DndDirective] }); }
|
|
785
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
770
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService], imports: [components,
|
|
786
771
|
CommonModule,
|
|
787
772
|
ReactiveFormsModule,
|
|
788
773
|
MatButtonModule,
|
|
@@ -792,7 +777,7 @@ class OnemrvaMatFileUploadModule {
|
|
|
792
777
|
MatIconModule,
|
|
793
778
|
MatInputModule] }); }
|
|
794
779
|
}
|
|
795
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: OnemrvaMatFileUploadModule, decorators: [{
|
|
796
781
|
type: NgModule,
|
|
797
782
|
args: [{
|
|
798
783
|
declarations: [],
|
|
@@ -809,6 +794,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
809
794
|
MatInputModule,
|
|
810
795
|
],
|
|
811
796
|
exports: [components, DndDirective],
|
|
797
|
+
providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService],
|
|
812
798
|
}]
|
|
813
799
|
}] });
|
|
814
800
|
|