@onemrvapublic/design-system 21.3.0-develop.1 → 21.4.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.
Files changed (84) hide show
  1. package/README.md +3 -3
  2. package/card/src/onemrva-card.component.scss +0 -1
  3. package/fesm2022/onemrvapublic-design-system-card.mjs +20 -20
  4. package/fesm2022/onemrvapublic-design-system-card.mjs.map +1 -1
  5. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs +6 -6
  6. package/fesm2022/onemrvapublic-design-system-flag-icon.mjs.map +1 -1
  7. package/fesm2022/onemrvapublic-design-system-layout.mjs +111 -111
  8. package/fesm2022/onemrvapublic-design-system-layout.mjs.map +1 -1
  9. package/fesm2022/onemrvapublic-design-system-mat-address.mjs +5 -5
  10. package/fesm2022/onemrvapublic-design-system-mat-address.mjs.map +1 -1
  11. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs +22 -22
  12. package/fesm2022/onemrvapublic-design-system-mat-avatar.mjs.map +1 -1
  13. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs +12 -12
  14. package/fesm2022/onemrvapublic-design-system-mat-breadcrumb.mjs.map +1 -1
  15. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs +14 -14
  16. package/fesm2022/onemrvapublic-design-system-mat-carousel.mjs.map +1 -1
  17. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs +8 -8
  18. package/fesm2022/onemrvapublic-design-system-mat-choice-chip.mjs.map +1 -1
  19. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs +4 -4
  20. package/fesm2022/onemrvapublic-design-system-mat-copy-to-clipboard.mjs.map +1 -1
  21. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs +5 -5
  22. package/fesm2022/onemrvapublic-design-system-mat-country-item.mjs.map +1 -1
  23. package/fesm2022/onemrvapublic-design-system-mat-datepicker-header.mjs +3 -3
  24. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs +6 -6
  25. package/fesm2022/onemrvapublic-design-system-mat-empty-row.mjs.map +1 -1
  26. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs +46 -46
  27. package/fesm2022/onemrvapublic-design-system-mat-file-upload.mjs.map +1 -1
  28. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs +14 -14
  29. package/fesm2022/onemrvapublic-design-system-mat-input-address.mjs.map +1 -1
  30. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs +13 -13
  31. package/fesm2022/onemrvapublic-design-system-mat-input-birthplace.mjs.map +1 -1
  32. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs +11 -11
  33. package/fesm2022/onemrvapublic-design-system-mat-input-country.mjs.map +1 -1
  34. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs +11 -11
  35. package/fesm2022/onemrvapublic-design-system-mat-input-enterprise-number.mjs.map +1 -1
  36. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs +10 -10
  37. package/fesm2022/onemrvapublic-design-system-mat-input-iban.mjs.map +1 -1
  38. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs +11 -11
  39. package/fesm2022/onemrvapublic-design-system-mat-input-phone.mjs.map +1 -1
  40. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs +18 -18
  41. package/fesm2022/onemrvapublic-design-system-mat-message-box.mjs.map +1 -1
  42. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs +17 -17
  43. package/fesm2022/onemrvapublic-design-system-mat-multi-select.mjs.map +1 -1
  44. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs +31 -31
  45. package/fesm2022/onemrvapublic-design-system-mat-navigation.mjs.map +1 -1
  46. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs +8 -8
  47. package/fesm2022/onemrvapublic-design-system-mat-notification.mjs.map +1 -1
  48. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs +14 -14
  49. package/fesm2022/onemrvapublic-design-system-mat-paginator.mjs.map +1 -1
  50. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs +39 -39
  51. package/fesm2022/onemrvapublic-design-system-mat-panel.mjs.map +1 -1
  52. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs +23 -23
  53. package/fesm2022/onemrvapublic-design-system-mat-pop-over.mjs.map +1 -1
  54. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs +11 -11
  55. package/fesm2022/onemrvapublic-design-system-mat-progress-bar.mjs.map +1 -1
  56. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs +36 -36
  57. package/fesm2022/onemrvapublic-design-system-mat-select-search.mjs.map +1 -1
  58. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs +13 -13
  59. package/fesm2022/onemrvapublic-design-system-mat-selectable-box.mjs.map +1 -1
  60. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs +10 -10
  61. package/fesm2022/onemrvapublic-design-system-mat-side-menu.mjs.map +1 -1
  62. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs +34 -34
  63. package/fesm2022/onemrvapublic-design-system-mat-skeleton.mjs.map +1 -1
  64. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs +11 -11
  65. package/fesm2022/onemrvapublic-design-system-mat-spinner.mjs.map +1 -1
  66. package/fesm2022/onemrvapublic-design-system-mat-stepper.mjs +7 -7
  67. package/fesm2022/onemrvapublic-design-system-mat-sticker.mjs +7 -7
  68. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs +23 -23
  69. package/fesm2022/onemrvapublic-design-system-mat-table-of-content.mjs.map +1 -1
  70. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs +31 -31
  71. package/fesm2022/onemrvapublic-design-system-mat-task-list.mjs.map +1 -1
  72. package/fesm2022/onemrvapublic-design-system-mat-toast.mjs +7 -7
  73. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs +17 -17
  74. package/fesm2022/onemrvapublic-design-system-mat-tooltip.mjs.map +1 -1
  75. package/fesm2022/onemrvapublic-design-system-page-error.mjs +10 -10
  76. package/fesm2022/onemrvapublic-design-system-page-error.mjs.map +1 -1
  77. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs +20 -20
  78. package/fesm2022/onemrvapublic-design-system-page-not-found.mjs.map +1 -1
  79. package/fesm2022/onemrvapublic-design-system-shared.mjs +98 -98
  80. package/fesm2022/onemrvapublic-design-system-shared.mjs.map +1 -1
  81. package/fesm2022/onemrvapublic-design-system.mjs +1 -1
  82. package/fesm2022/onemrvapublic-design-system.mjs.map +1 -1
  83. package/package.json +1 -1
  84. package/types/onemrvapublic-design-system.d.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-file-upload.mjs","sources":["../../../../projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/components/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts","../../../../projects/onemrva/design-system/mat-file-upload/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/onemrvapublic-design-system-mat-file-upload.ts"],"sourcesContent":["import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface ProgressFile {\n file?: File;\n message: string;\n progress: number;\n color: OnemrvaMatColor; // color 1 - 1 with status\n url: string | null;\n id: string | null; // backend identifier\n enableProgressBar: boolean;\n data?: any;\n name: string;\n lastModified?: number;\n size: number;\n type: string;\n maxSize: number | null;\n}\n\nexport interface ReferencedProgressFile extends ProgressFile {\n ref: symbol; // ref is a frontend identifier\n}\n\n/**\n * format bytes\n * @param bytes (File size in bytes)\n * @param decimals (Decimals point)\n */\nexport function formatBytes(bytes: number, decimals = 2) {\n if (bytes === 0) {\n return '0 Bytes';\n }\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals || 2;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n}\n\nexport function formattedSize(size: number | null, decimals = 2) {\n if (size === null) return '';\n return formatBytes(size, decimals);\n}\n\nexport function convertToProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n maxSize = null,\n): ProgressFile {\n return {\n id: id!,\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n maxSize: maxSize,\n };\n}\n\nexport function convertToReferencedProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n maxSize = null,\n): ReferencedProgressFile {\n return {\n id: id!,\n ref: Symbol(name),\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n maxSize: maxSize,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\nimport { ActionConfig } from '../../models/action-config.model';\nimport {\n formattedSize,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'file-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./onemrva-file-panel.component.scss'],\n templateUrl: './onemrva-file-panel.component.html',\n standalone: true,\n imports: [MatIcon, MatTooltip, TranslatePipe, MatProgressBar],\n host: {\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'dataCy()',\n '[attr.mat-accent]': 'colorAccent()',\n '[class.mat-error]': 'isError()',\n '[class.mat-warn]': 'isWarn()',\n '[class.mat-success]': 'isSuccess()',\n '[class.mat-primary]': 'isPrimary()',\n },\n})\nexport class OnemrvaFilePanelComponent {\n readonly id = input(`onemrva-file-panel-${NEXT_ID++}`);\n readonly dataCy = input<string>('onemrva-file-panel-' + NEXT_ID);\n readonly file = input.required<ReferencedProgressFile>();\n readonly actions = input<ActionConfig[]>([]);\n readonly showProgress = input(true);\n readonly displayDate = input('');\n readonly maxFileSize = input(0);\n\n readonly progress = computed(() => this.file().progress);\n readonly size = computed(() => formattedSize(this.file().size));\n readonly color = computed(() => this.file().color ?? OnemrvaMatColor.NONE);\n\n protected readonly colorAccent = computed(() =>\n this.color() === OnemrvaMatColor.ACCENT ? '' : null,\n );\n protected readonly isError = computed(\n () => this.color() === OnemrvaMatColor.ERROR,\n );\n protected readonly isWarn = computed(\n () => this.color() === OnemrvaMatColor.WARN,\n );\n protected readonly isSuccess = computed(\n () => this.color() === OnemrvaMatColor.SUCCESS,\n );\n protected readonly isPrimary = computed(\n () => this.color() === OnemrvaMatColor.PRIMARY,\n );\n\n protected readonly formattedSize = formattedSize;\n}\n","<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 aria-label=\"progress\"\n [value]=\"progress()\"\n />\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","import {\n HttpEvent,\n HttpEventType,\n HttpProgressEvent,\n HttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n BehaviorSubject,\n catchError,\n interval,\n map,\n Observable,\n of,\n take,\n} from 'rxjs';\nimport { ProgressFile } from './models/progress-file.model';\n\nexport interface OnemrvaMatFileUploadInterface {\n listUploadedFiles: (inputs: any) => Observable<ProgressFile[]>;\n upload: (file: ProgressFile) => Observable<HttpEvent<any>>;\n deleteFile: (id: any) => Observable<any>;\n retry: (file: any) => Observable<any>;\n downloadFile?: (id: any) => Observable<any>;\n isSending: BehaviorSubject<boolean>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OnemrvaMatFileUploadService implements OnemrvaMatFileUploadInterface {\n public isSending = new BehaviorSubject(false);\n\n constructor() {\n alert(\n \"Don't forget to add a provider in your component with your own implementation of OnemrvaMatFileUploadInterface. Check out the demo to have an example of how to do it\",\n );\n }\n\n listUploadedFiles(_inputs: any): Observable<ProgressFile[]> {\n return of([]);\n }\n\n upload(_file: ProgressFile): Observable<HttpEvent<any>> {\n return interval(50).pipe(\n take(101),\n map(i => {\n if (i < 100) {\n return {\n type: HttpEventType.UploadProgress,\n loaded: i,\n total: 100,\n } as HttpProgressEvent;\n } else {\n if (i >= 100 && Math.random() > 0.5) {\n throw 'Fake error thrown';\n }\n return new HttpResponse<any>();\n }\n }),\n catchError(() => of(new HttpResponse<any>({ body: {}, status: 500 }))),\n );\n }\n\n deleteFile(_id: any): Observable<any> {\n return of('F = m.a');\n }\n\n retry(file: any): Observable<any> {\n return of(file);\n }\n\n downloadFile(id: any): Observable<any> {\n alert(`Missing download implementation for file ID ${id}`);\n return of(true);\n }\n}\n","import { Injectable, InjectionToken, inject } from '@angular/core';\nimport { ComponentStore } from '@ngrx/component-store';\nimport { TranslateService } from '@ngx-translate/core';\nimport {\n catchError,\n filter,\n forkJoin,\n interval,\n map,\n merge,\n mergeMap,\n Observable,\n of,\n switchMap,\n takeWhile,\n tap,\n throttle,\n withLatestFrom,\n} from 'rxjs';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\nimport {\n ProgressFile,\n ReferencedProgressFile,\n} from './models/progress-file.model';\nimport { HttpEvent, HttpEventType } from '@angular/common/http';\nimport { OnemrvaMatFileUploadStoreItf } from './onemrva-mat-file-upload-itf.store';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface FileUploadStoreEvent {\n type: string;\n payload?: any;\n}\n\nexport interface UploadState {\n upload: ReferencedProgressFile[];\n accept: string[];\n maxFileSize: number;\n fileUploadError: string;\n event: FileUploadStoreEvent;\n}\n\nconst INIT_STATE: UploadState = {\n upload: [],\n accept: [],\n maxFileSize: 0,\n fileUploadError: '',\n event: {\n type: 'INIT',\n },\n};\n\nexport type CustomValidationFn = (\n input: [ReferencedProgressFile, ReferencedProgressFile[]],\n) => ReferencedProgressFile;\n\nexport const CUSTOM_VALIDATION_FN = new InjectionToken<CustomValidationFn>(\n 'x1, x2 = (-b -+ sqrt(rho))/2a',\n);\n\n@Injectable()\nexport class OnemrvaMatFileUploadStore\n extends ComponentStore<UploadState>\n implements OnemrvaMatFileUploadStoreItf\n{\n private fn: CustomValidationFn = (\n x: [ReferencedProgressFile, ReferencedProgressFile[]],\n ) => {\n return x[0];\n };\n\n private readonly fileUploadService = inject(OnemrvaMatFileUploadService);\n private readonly translateService = inject(TranslateService);\n public readonly customValidationFn = inject(CUSTOM_VALIDATION_FN, {\n optional: true,\n });\n\n public isSending = this.fileUploadService.isSending;\n\n constructor() {\n super(INIT_STATE);\n if (this.customValidationFn) this.fn = this.customValidationFn;\n }\n\n /*\n * U P D A T E R S\n */\n public readonly setAccept = this.updater((state, accept: string[]) => ({\n ...state,\n accept,\n event: {\n type: 'setAccept',\n payload: accept,\n },\n }));\n\n public readonly setMaxFileSize = this.updater(\n (state, maxFileSize: number) => ({\n ...state,\n maxFileSize,\n event: {\n type: 'setMaxFileSize',\n payload: maxFileSize,\n },\n }),\n );\n\n private readonly emptyList = this.updater(state => {\n return {\n ...state,\n upload: [],\n event: {\n type: 'emptyList',\n },\n };\n });\n\n private readonly pushFile = this.updater(\n (state, payload: ReferencedProgressFile) => {\n return {\n ...state,\n upload: [...state.upload, { ...payload }],\n event: {\n type: 'pushFile',\n payload,\n },\n };\n },\n );\n\n public readonly setData = this.updater(\n (state, payload: { ref: symbol; data: any }) => {\n return {\n ...state,\n upload: state.upload.map((file: ReferencedProgressFile) =>\n file.ref === payload.ref ? { ...file, data: payload.data } : file,\n ),\n event: {\n type: 'setData',\n payload,\n },\n };\n },\n );\n\n private readonly setSuccess = this.updater(\n (state, payload: { ref: symbol; body: any }) => {\n const newFile = {\n ...state.upload.find(f => f.ref === payload.ref),\n ...payload.body,\n color: 'success',\n progress: 100,\n };\n\n return {\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref ? newFile : file,\n ),\n event: {\n type: 'setData',\n payload: newFile,\n },\n };\n },\n );\n\n private readonly setFail = this.updater(\n (\n state,\n payload: { ref: symbol; message: string; color: OnemrvaMatColor },\n ) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, message: payload.message, color: payload.color }\n : file,\n ),\n event: {\n type: 'setFail',\n payload,\n },\n }),\n );\n\n private readonly setProgress = this.updater(\n (state, payload: { ref: symbol; progress: number }) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, progress: payload.progress }\n : file,\n ),\n event: {\n type: 'setProgress',\n payload,\n },\n }),\n );\n\n private readonly reset = this.updater((state, ref: symbol) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === ref\n ? { ...file, progress: 0, message: '', color: '' }\n : file,\n ),\n event: {\n type: 'reset',\n payload: ref,\n },\n }));\n\n private readonly remove = this.updater(\n (state, payload: ReferencedProgressFile) => ({\n ...state,\n upload: state.upload.filter(f => f.ref !== payload.ref),\n event: {\n type: 'remove',\n payload,\n },\n }),\n );\n\n private readonly enableProgressBar = this.updater(state => ({\n ...state,\n upload: state.upload.map(file => ({ ...file, enableProgressBar: true })),\n event: {\n type: 'enableProgressBar',\n },\n }));\n\n public readonly setFileUploadError = this.updater(\n (state, fileUploadError: string) => ({\n ...state,\n fileUploadError,\n event: {\n type: 'setFileUploadError',\n payload: fileUploadError,\n },\n }),\n );\n\n public readonly clearFileUploadError = this.updater(state => ({\n ...state,\n fileUploadError: '',\n event: {\n type: 'clearFileUploadError',\n },\n }));\n\n /*\n * S E L E C T O R S\n */\n readonly files$ = this.select(state => state.upload);\n readonly accept$ = this.select(state => state.accept);\n readonly event$ = this.select(state => state.event);\n readonly maxFileSize$ = this.select(state => state.maxFileSize);\n readonly fileUploadError$ = this.select(state => state.fileUploadError);\n\n /*\n * A C T I O N S / E F F E C T S\n */\n readonly listUploadedFiles = this.effect((inputs$: Observable<any>) => {\n return inputs$.pipe(\n tap(() => {\n this.emptyList();\n }),\n mergeMap((inputs: any) => {\n return this.fileUploadService.listUploadedFiles(inputs).pipe(\n //take(1),\n withLatestFrom(this.files$),\n tap(() => {\n // added to avoid ide errors\n }),\n tap(([newfiles, registeredFiles]) => {\n newfiles.forEach(file => {\n if (\n registeredFiles.findIndex(rfile => rfile.id === file.id) < 0\n ) {\n this.pushFile({\n ...file,\n color: 'success',\n progress: 100,\n ref: Symbol('H.psi = E.psi'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n });\n }\n });\n }),\n catchError(() => of([])),\n );\n }),\n );\n });\n\n readonly deleteFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n mergeMap((file: any) =>\n this.fileUploadService.deleteFile(file.id).pipe(\n //take(1),\n tap(() => {\n this.remove(file);\n }),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.delete.error',\n });\n return of(null);\n }),\n ),\n ),\n );\n },\n );\n\n readonly removeFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n tap(file => {\n this.remove(file);\n }),\n );\n },\n );\n\n private progressFileChecker = (file$: Observable<any>) => {\n return file$.pipe(\n withLatestFrom(this.accept$),\n\n map(([file, accept]) => {\n // Step 1 - Add a new file in the view\n let f: ReferencedProgressFile = { ...file };\n if (file.ref === undefined) {\n f = {\n ...f,\n ref: Symbol('v_sound = sqrt(gamma.P / rho)'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n this.pushFile(f);\n }\n\n // Step 2 - Check file extension\n if (accept.length > 0 && !accept.includes(file.file!.type)) {\n this.setFail({\n ref: f.ref,\n color: OnemrvaMatColor.ERROR,\n message: 'file.upload.type.not.supported',\n });\n // This trick coupled with the next filter is used to avoid catchError, which would break the effect\n return { ...f, message: 'ERROR' };\n }\n return f;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.maxFileSize$),\n\n map(([refFile, maxFileSize]) => {\n // Step 3 - Check file size\n if (maxFileSize !== 0 && refFile.size > maxFileSize) {\n this.setFail({\n ref: refFile.ref,\n color: OnemrvaMatColor.ERROR,\n message: 'file.upload.too.big',\n });\n // Same trick for error management\n return { ...refFile, message: 'ERROR' };\n }\n return refFile;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.files$),\n map(this.fn), // For custom validations\n tap(x => {\n if (!!x.message && x.message.startsWith('ERROR:'))\n this.setFileUploadError(x.message.replace('ERROR:', '').trim());\n else this.clearFileUploadError();\n }),\n filter(x => !x.message.startsWith('ERROR')),\n );\n };\n\n private loadStep = (file: any) => {\n if (file.color === OnemrvaMatColor.WARN) this.reset(file.ref);\n\n this.enableProgressBar();\n\n return this.fileUploadService.upload(file).pipe(\n throttle(() => interval(200), { leading: true, trailing: true }),\n tap((event: HttpEvent<any>) => {\n if (event.type === HttpEventType.UploadProgress) {\n this.setProgress({\n ref: file.ref,\n progress: Math.round((100 * event.loaded) / event.total!),\n });\n }\n\n if (event.type === HttpEventType.Response) {\n this.setSuccess({ ref: file.ref, body: event.body });\n }\n }),\n takeWhile(\n (event: HttpEvent<any>) => event.type === HttpEventType.UploadProgress,\n ),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.error.occurred',\n });\n return of(null);\n }),\n );\n };\n\n /**\n * For adding one file panel (creation of file panel reference skipped if already created) at a time.\n * Upload to BE not triggered\n */\n readonly addForPotentialUpload = this.effect(\n (file$: Observable<ProgressFile>) => this.progressFileChecker(file$),\n );\n\n /**\n * For adding an array of file panels (creation of file panels reference skipped if already created).\n * Uploads to BE not triggered\n */\n readonly addSeveralForPotentialUpload = this.effect(\n (files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n forkJoin(files.map(file => this.progressFileChecker(of(file)))),\n ),\n ),\n );\n\n /**\n * For adding a file panel (creation of file panels reference skipped if already created) then uploading it\n */\n readonly uploadFile = this.effect((file$: Observable<ProgressFile>) => {\n return this.progressFileChecker(file$).pipe(mergeMap(this.loadStep));\n });\n\n readonly retryFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) =>\n this.progressFileChecker(file$).pipe(mergeMap(this.loadStep)),\n );\n\n /**\n * For adding several file panels (creation of file panels reference skipped if already created) then uploading them\n */\n readonly uploadFiles = this.effect((files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n merge(\n ...files.map(file =>\n this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)),\n ),\n ),\n ),\n ),\n );\n}\n","import { Directive, output, signal } from '@angular/core';\n\n@Directive({\n selector: '[appDnd]',\n standalone: true,\n host: {\n '[class.fileover]': 'fileOver()',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'ondrop($event)',\n },\n})\nexport class DndDirective {\n readonly fileOver = signal(false);\n\n readonly fileDropped = output<any>();\n\n // Dragover listener\n onDragOver(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(true);\n }\n\n // Dragleave listener\n public onDragLeave(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(false);\n }\n\n // Drop listener\n public ondrop(evt: any) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(false);\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.fileDropped.emit(files);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n inject,\n OnInit,\n TemplateRef,\n input,\n viewChild,\n} from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { map, merge, Observable, Subject, take } from 'rxjs';\nimport {\n state,\n keyframes,\n style,\n animate,\n trigger,\n transition,\n} from '@angular/animations';\nimport {\n formatBytes,\n formattedSize,\n ProgressFile,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';\nimport { AsyncPipe, NgTemplateOutlet } from '@angular/common';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatError } from '@angular/material/form-field';\nimport { DndDirective } from '../../directives/dnd.directive';\n\nlet NEXT_ID = 0;\n\n// TODO: Also add a way to block elements from the list instead of allowing (because it can be a lot for some projects)\n// TODO: Remove files from upload list even in manual mode\n// TODO: Error message customisable\n// TODO: Multiple customisable error messages (custom validators)\n\n@Component({\n selector: 'onemrva-mat-file-upload',\n standalone: true,\n templateUrl: 'onemrva-mat-file-upload.component.html',\n styleUrl: 'onemrva-mat-file-upload.component.scss',\n animations: [\n trigger('inOutAnimation', [\n state('in', style({ opacity: 1 })),\n transition(':enter', [\n animate(\n 300,\n keyframes([\n style({ opacity: 0, offset: 0 }),\n style({ opacity: 0.25, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.75, offset: 0.75 }),\n style({ opacity: 1, offset: 1 }),\n ]),\n ),\n ]),\n transition(':leave', [\n animate(\n 300,\n keyframes([\n style({ opacity: 1, offset: 0 }),\n style({ opacity: 0.75, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.25, offset: 0.75 }),\n style({ opacity: 0, offset: 1 }),\n ]),\n ),\n ]),\n ]),\n ],\n imports: [\n AsyncPipe,\n MatIcon,\n TranslatePipe,\n NgTemplateOutlet,\n MatError,\n DndDirective,\n ],\n host: {\n '[attr.data-cy]': 'dataCy()',\n },\n})\nexport class OnemrvaMatFileUploadComponent implements OnInit {\n readonly accept = input<string[]>([]);\n\n acceptString$?: Observable<any>;\n\n readonly maxFileSize = input(0);\n\n readonly numberOfFiles = input(0);\n\n readonly maxTotalFileSize = input(0);\n\n readonly uploadOnDrop = input(true);\n\n readonly initialFiles = input<ProgressFile[]>([]);\n\n readonly errorMessage = input('');\n\n readonly hideExtensions = input<string[]>([]);\n\n readonly dropFilesHereTextTranslationKey = input('file.upload.drag.and.drop');\n\n fileUploadErrorMessage$: Observable<string>;\n\n files$: Observable<ReferencedProgressFile[]>;\n\n readonly filePanelTemplate = input.required<TemplateRef<any>>();\n\n retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();\n\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n public readonly dataCy = input(`onemrva-mat-multi-select-${NEXT_ID++}`);\n\n readonly fileDropRef = viewChild.required<ElementRef>(`fileDropRef`);\n\n inputId = `fileDropRef-${NEXT_ID}`;\n maxFileSizeFormatted = '';\n private error$ = new Subject<string>();\n\n public dialog = inject(MatDialog);\n public mimeCDN = inject(OnemRvaCDNMimeService);\n private fileUploadStore = inject(OnemrvaMatFileUploadStore);\n\n constructor() {\n this.files$ = this.fileUploadStore.files$;\n\n this.fileUploadErrorMessage$ = merge(\n this.fileUploadStore.fileUploadError$,\n this.error$,\n );\n }\n\n ngOnInit(): void {\n if (this.accept().length > 0) {\n this.acceptString$ = this.mimeCDN\n .getExtensionsForMime(this.accept())\n .pipe(\n map(items =>\n items.filter(item => !this.hideExtensions().includes(item)),\n ),\n map(arr => arr.map(item => `.${item}`).join(', ')),\n );\n this.fileUploadStore.setAccept(this.accept());\n }\n\n this.maxFileSizeFormatted = formatBytes(this.maxFileSize());\n this.fileUploadStore.setMaxFileSize(this.maxFileSize());\n }\n\n /**\n * on file drop handler\n */\n onFileDropped($event: FileList) {\n this.prepareFilesList($event);\n }\n\n /**\n * handle file from browsing\n */\n fileBrowseHandler($event: Event) {\n const elm = $event.target as HTMLInputElement,\n files = elm.files as FileList;\n\n this.prepareFilesList(files);\n }\n\n /**\n * Convert Files list to normal array list\n * @param files (Files List)\n */\n prepareFilesList(files: FileList) {\n this.fileUploadStore.files$.pipe(take(1)).subscribe(currentFiles => {\n // if numberOffiles is set and the total length of files is smal\n // ler than it\n if (\n this.numberOfFiles() > 0 &&\n files.length + currentFiles.length > this.numberOfFiles()\n ) {\n this.error$.next('file.upload.too.many.files');\n return;\n }\n if (this.maxTotalFileSize() > 0) {\n const total: number =\n Object.values(files).reduce((sum, obj) => sum + obj.size, 0) +\n currentFiles.reduce((sum, obj) => sum + obj.size, 0);\n if (total > this.maxTotalFileSize()) {\n this.error$.next('file.upload.total.max.size.exceeded');\n return;\n }\n }\n this.error$.next('');\n\n const fs: ProgressFile[] = [];\n for (let i = 0; i < files.length; i++) {\n const file = files.item(i);\n if (file === null) continue;\n\n const item: ProgressFile = {\n file,\n progress: 0,\n message: '',\n color: 'primary',\n url: null,\n id: null,\n enableProgressBar: this.uploadOnDrop(),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n maxSize: this.maxFileSize(),\n };\n\n fs.push(item);\n }\n\n if (this.uploadOnDrop()) this.fileUploadStore.uploadFiles(fs);\n else this.fileUploadStore.addSeveralForPotentialUpload(fs);\n\n this.fileDropRef().nativeElement.value = null;\n });\n }\n\n protected readonly formattedSize = formattedSize;\n}\n","@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [class.filein]=\"files.length > 0\"\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 />\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","import { OnemrvaFilePanelComponent } from './onemrva-mat-file-panel/onemrva-file-panel.component';\nimport { OnemrvaMatFileUploadComponent } from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n\nexport const components: any[] = [\n OnemrvaFilePanelComponent,\n OnemrvaMatFileUploadComponent,\n];\n\nexport * from './onemrva-mat-file-panel/onemrva-file-panel.component';\nexport * from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DndDirective } from './directives/dnd.directive';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { components } from './components';\nimport { MatInputModule } from '@angular/material/input';\nimport { OnemrvaMatFileUploadStore } from './onemrva-mat-file-upload.store';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\n\n@NgModule({\n declarations: [],\n imports: [\n components,\n DndDirective,\n CommonModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatTooltipModule,\n MatDialogModule,\n TranslateModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [components, DndDirective],\n providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService],\n})\nexport class OnemrvaMatFileUploadModule {}\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/components';\nexport * from './src/onemrva-mat-file-upload.module';\nexport * from './src/onemrva-mat-file-upload.store';\nexport * from './src/onemrva-mat-file-upload.service';\nexport * from './src/models/progress-file.model';\nexport * from './src/models/action-config.model';\nexport * from './src/onemrva-mat-file-upload-itf.store';\nexport * from './src/directives/dnd.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NEXT_ID"],"mappings":";;;;;;;;;;;;;;;;;;;AAsBA;;;;AAIG;SACa,WAAW,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACrD,IAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,QAAA,OAAO,SAAS;IAClB;IACA,MAAM,CAAC,GAAG,IAAI;AACd,IAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC;IAC5C,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;IACvE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,IAAI,C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YACZ,mBAAmB;YACnB,eAAe;YACf,gBAAgB;YAChB,eAAe;YACf,eAAe;YACf,aAAa;YACb,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAKL,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAjBtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,SAAS,EAAE,CAAC,yBAAyB,EAAE,2BAA2B,CAAC;AACpE,iBAAA;;;AC/BD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-file-upload.mjs","sources":["../../../../projects/onemrva/design-system/mat-file-upload/src/models/progress-file.model.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-panel/onemrva-file-panel.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.service.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.store.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/directives/dnd.directive.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/components/onemrva-mat-file-upload/onemrva-mat-file-upload.component.html","../../../../projects/onemrva/design-system/mat-file-upload/src/components/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/src/onemrva-mat-file-upload.module.ts","../../../../projects/onemrva/design-system/mat-file-upload/index.ts","../../../../projects/onemrva/design-system/mat-file-upload/onemrvapublic-design-system-mat-file-upload.ts"],"sourcesContent":["import { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface ProgressFile {\n file?: File;\n message: string;\n progress: number;\n color: OnemrvaMatColor; // color 1 - 1 with status\n url: string | null;\n id: string | null; // backend identifier\n enableProgressBar: boolean;\n data?: any;\n name: string;\n lastModified?: number;\n size: number;\n type: string;\n maxSize: number | null;\n}\n\nexport interface ReferencedProgressFile extends ProgressFile {\n ref: symbol; // ref is a frontend identifier\n}\n\n/**\n * format bytes\n * @param bytes (File size in bytes)\n * @param decimals (Decimals point)\n */\nexport function formatBytes(bytes: number, decimals = 2) {\n if (bytes === 0) {\n return '0 Bytes';\n }\n const k = 1024;\n const dm = decimals <= 0 ? 0 : decimals || 2;\n const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];\n}\n\nexport function formattedSize(size: number | null, decimals = 2) {\n if (size === null) return '';\n return formatBytes(size, decimals);\n}\n\nexport function convertToProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n maxSize = null,\n): ProgressFile {\n return {\n id: id!,\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n maxSize: maxSize,\n };\n}\n\nexport function convertToReferencedProgressFile(\n id: string,\n name: string,\n message = '',\n progress = 100,\n color = OnemrvaMatColor.PRIMARY,\n url: string | null = null,\n enableProgressBar = false,\n data: string | null = null,\n size = 0,\n type = '',\n maxSize = null,\n): ReferencedProgressFile {\n return {\n id: id!,\n ref: Symbol(name),\n name: name!,\n message: message,\n progress: progress,\n color: color,\n url: url,\n enableProgressBar: enableProgressBar,\n data: data,\n size: size,\n type: type,\n maxSize: maxSize,\n };\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n} from '@angular/core';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\nimport { ActionConfig } from '../../models/action-config.model';\nimport {\n formattedSize,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatTooltip } from '@angular/material/tooltip';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\n\nlet NEXT_ID = 0;\n\n@Component({\n selector: 'file-panel',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrls: ['./onemrva-file-panel.component.scss'],\n templateUrl: './onemrva-file-panel.component.html',\n standalone: true,\n imports: [MatIcon, MatTooltip, TranslatePipe, MatProgressBar],\n host: {\n '[attr.id]': 'id()',\n '[attr.data-cy]': 'dataCy()',\n '[attr.mat-accent]': 'colorAccent()',\n '[class.mat-error]': 'isError()',\n '[class.mat-warn]': 'isWarn()',\n '[class.mat-success]': 'isSuccess()',\n '[class.mat-primary]': 'isPrimary()',\n },\n})\nexport class OnemrvaFilePanelComponent {\n readonly id = input(`onemrva-file-panel-${NEXT_ID++}`);\n readonly dataCy = input<string>('onemrva-file-panel-' + NEXT_ID);\n readonly file = input.required<ReferencedProgressFile>();\n readonly actions = input<ActionConfig[]>([]);\n readonly showProgress = input(true);\n readonly displayDate = input('');\n readonly maxFileSize = input(0);\n\n readonly progress = computed(() => this.file().progress);\n readonly size = computed(() => formattedSize(this.file().size));\n readonly color = computed(() => this.file().color ?? OnemrvaMatColor.NONE);\n\n protected readonly colorAccent = computed(() =>\n this.color() === OnemrvaMatColor.ACCENT ? '' : null,\n );\n protected readonly isError = computed(\n () => this.color() === OnemrvaMatColor.ERROR,\n );\n protected readonly isWarn = computed(\n () => this.color() === OnemrvaMatColor.WARN,\n );\n protected readonly isSuccess = computed(\n () => this.color() === OnemrvaMatColor.SUCCESS,\n );\n protected readonly isPrimary = computed(\n () => this.color() === OnemrvaMatColor.PRIMARY,\n );\n\n protected readonly formattedSize = formattedSize;\n}\n","<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 aria-label=\"progress\"\n [value]=\"progress()\"\n />\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","import {\n HttpEvent,\n HttpEventType,\n HttpProgressEvent,\n HttpResponse,\n} from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport {\n BehaviorSubject,\n catchError,\n interval,\n map,\n Observable,\n of,\n take,\n} from 'rxjs';\nimport { ProgressFile } from './models/progress-file.model';\n\nexport interface OnemrvaMatFileUploadInterface {\n listUploadedFiles: (inputs: any) => Observable<ProgressFile[]>;\n upload: (file: ProgressFile) => Observable<HttpEvent<any>>;\n deleteFile: (id: any) => Observable<any>;\n retry: (file: any) => Observable<any>;\n downloadFile?: (id: any) => Observable<any>;\n isSending: BehaviorSubject<boolean>;\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OnemrvaMatFileUploadService implements OnemrvaMatFileUploadInterface {\n public isSending = new BehaviorSubject(false);\n\n constructor() {\n alert(\n \"Don't forget to add a provider in your component with your own implementation of OnemrvaMatFileUploadInterface. Check out the demo to have an example of how to do it\",\n );\n }\n\n listUploadedFiles(_inputs: any): Observable<ProgressFile[]> {\n return of([]);\n }\n\n upload(_file: ProgressFile): Observable<HttpEvent<any>> {\n return interval(50).pipe(\n take(101),\n map(i => {\n if (i < 100) {\n return {\n type: HttpEventType.UploadProgress,\n loaded: i,\n total: 100,\n } as HttpProgressEvent;\n } else {\n if (i >= 100 && Math.random() > 0.5) {\n throw 'Fake error thrown';\n }\n return new HttpResponse<any>();\n }\n }),\n catchError(() => of(new HttpResponse<any>({ body: {}, status: 500 }))),\n );\n }\n\n deleteFile(_id: any): Observable<any> {\n return of('F = m.a');\n }\n\n retry(file: any): Observable<any> {\n return of(file);\n }\n\n downloadFile(id: any): Observable<any> {\n alert(`Missing download implementation for file ID ${id}`);\n return of(true);\n }\n}\n","import { Injectable, InjectionToken, inject } from '@angular/core';\nimport { ComponentStore } from '@ngrx/component-store';\nimport { TranslateService } from '@ngx-translate/core';\nimport {\n catchError,\n filter,\n forkJoin,\n interval,\n map,\n merge,\n mergeMap,\n Observable,\n of,\n switchMap,\n takeWhile,\n tap,\n throttle,\n withLatestFrom,\n} from 'rxjs';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\nimport {\n ProgressFile,\n ReferencedProgressFile,\n} from './models/progress-file.model';\nimport { HttpEvent, HttpEventType } from '@angular/common/http';\nimport { OnemrvaMatFileUploadStoreItf } from './onemrva-mat-file-upload-itf.store';\nimport { OnemrvaMatColor } from '@onemrvapublic/design-system/utils';\n\nexport interface FileUploadStoreEvent {\n type: string;\n payload?: any;\n}\n\nexport interface UploadState {\n upload: ReferencedProgressFile[];\n accept: string[];\n maxFileSize: number;\n fileUploadError: string;\n event: FileUploadStoreEvent;\n}\n\nconst INIT_STATE: UploadState = {\n upload: [],\n accept: [],\n maxFileSize: 0,\n fileUploadError: '',\n event: {\n type: 'INIT',\n },\n};\n\nexport type CustomValidationFn = (\n input: [ReferencedProgressFile, ReferencedProgressFile[]],\n) => ReferencedProgressFile;\n\nexport const CUSTOM_VALIDATION_FN = new InjectionToken<CustomValidationFn>(\n 'x1, x2 = (-b -+ sqrt(rho))/2a',\n);\n\n@Injectable()\nexport class OnemrvaMatFileUploadStore\n extends ComponentStore<UploadState>\n implements OnemrvaMatFileUploadStoreItf\n{\n private fn: CustomValidationFn = (\n x: [ReferencedProgressFile, ReferencedProgressFile[]],\n ) => {\n return x[0];\n };\n\n private readonly fileUploadService = inject(OnemrvaMatFileUploadService);\n private readonly translateService = inject(TranslateService);\n public readonly customValidationFn = inject(CUSTOM_VALIDATION_FN, {\n optional: true,\n });\n\n public isSending = this.fileUploadService.isSending;\n\n constructor() {\n super(INIT_STATE);\n if (this.customValidationFn) this.fn = this.customValidationFn;\n }\n\n /*\n * U P D A T E R S\n */\n public readonly setAccept = this.updater((state, accept: string[]) => ({\n ...state,\n accept,\n event: {\n type: 'setAccept',\n payload: accept,\n },\n }));\n\n public readonly setMaxFileSize = this.updater(\n (state, maxFileSize: number) => ({\n ...state,\n maxFileSize,\n event: {\n type: 'setMaxFileSize',\n payload: maxFileSize,\n },\n }),\n );\n\n private readonly emptyList = this.updater(state => {\n return {\n ...state,\n upload: [],\n event: {\n type: 'emptyList',\n },\n };\n });\n\n private readonly pushFile = this.updater(\n (state, payload: ReferencedProgressFile) => {\n return {\n ...state,\n upload: [...state.upload, { ...payload }],\n event: {\n type: 'pushFile',\n payload,\n },\n };\n },\n );\n\n public readonly setData = this.updater(\n (state, payload: { ref: symbol; data: any }) => {\n return {\n ...state,\n upload: state.upload.map((file: ReferencedProgressFile) =>\n file.ref === payload.ref ? { ...file, data: payload.data } : file,\n ),\n event: {\n type: 'setData',\n payload,\n },\n };\n },\n );\n\n private readonly setSuccess = this.updater(\n (state, payload: { ref: symbol; body: any }) => {\n const newFile = {\n ...state.upload.find(f => f.ref === payload.ref),\n ...payload.body,\n color: 'success',\n progress: 100,\n };\n\n return {\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref ? newFile : file,\n ),\n event: {\n type: 'setData',\n payload: newFile,\n },\n };\n },\n );\n\n private readonly setFail = this.updater(\n (\n state,\n payload: { ref: symbol; message: string; color: OnemrvaMatColor },\n ) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, message: payload.message, color: payload.color }\n : file,\n ),\n event: {\n type: 'setFail',\n payload,\n },\n }),\n );\n\n private readonly setProgress = this.updater(\n (state, payload: { ref: symbol; progress: number }) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === payload.ref\n ? { ...file, progress: payload.progress }\n : file,\n ),\n event: {\n type: 'setProgress',\n payload,\n },\n }),\n );\n\n private readonly reset = this.updater((state, ref: symbol) => ({\n ...state,\n upload: state.upload.map(file =>\n file.ref === ref\n ? { ...file, progress: 0, message: '', color: '' }\n : file,\n ),\n event: {\n type: 'reset',\n payload: ref,\n },\n }));\n\n private readonly remove = this.updater(\n (state, payload: ReferencedProgressFile) => ({\n ...state,\n upload: state.upload.filter(f => f.ref !== payload.ref),\n event: {\n type: 'remove',\n payload,\n },\n }),\n );\n\n private readonly enableProgressBar = this.updater(state => ({\n ...state,\n upload: state.upload.map(file => ({ ...file, enableProgressBar: true })),\n event: {\n type: 'enableProgressBar',\n },\n }));\n\n public readonly setFileUploadError = this.updater(\n (state, fileUploadError: string) => ({\n ...state,\n fileUploadError,\n event: {\n type: 'setFileUploadError',\n payload: fileUploadError,\n },\n }),\n );\n\n public readonly clearFileUploadError = this.updater(state => ({\n ...state,\n fileUploadError: '',\n event: {\n type: 'clearFileUploadError',\n },\n }));\n\n /*\n * S E L E C T O R S\n */\n readonly files$ = this.select(state => state.upload);\n readonly accept$ = this.select(state => state.accept);\n readonly event$ = this.select(state => state.event);\n readonly maxFileSize$ = this.select(state => state.maxFileSize);\n readonly fileUploadError$ = this.select(state => state.fileUploadError);\n\n /*\n * A C T I O N S / E F F E C T S\n */\n readonly listUploadedFiles = this.effect((inputs$: Observable<any>) => {\n return inputs$.pipe(\n tap(() => {\n this.emptyList();\n }),\n mergeMap((inputs: any) => {\n return this.fileUploadService.listUploadedFiles(inputs).pipe(\n //take(1),\n withLatestFrom(this.files$),\n tap(() => {\n // added to avoid ide errors\n }),\n tap(([newfiles, registeredFiles]) => {\n newfiles.forEach(file => {\n if (\n registeredFiles.findIndex(rfile => rfile.id === file.id) < 0\n ) {\n this.pushFile({\n ...file,\n color: 'success',\n progress: 100,\n ref: Symbol('H.psi = E.psi'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n });\n }\n });\n }),\n catchError(() => of([])),\n );\n }),\n );\n });\n\n readonly deleteFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n mergeMap((file: any) =>\n this.fileUploadService.deleteFile(file.id).pipe(\n //take(1),\n tap(() => {\n this.remove(file);\n }),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.delete.error',\n });\n return of(null);\n }),\n ),\n ),\n );\n },\n );\n\n readonly removeFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) => {\n return file$.pipe(\n tap(() => {\n this.clearFileUploadError();\n }),\n withLatestFrom(this.files$),\n map(this.fn),\n tap(file => {\n this.remove(file);\n }),\n );\n },\n );\n\n private progressFileChecker = (file$: Observable<any>) => {\n return file$.pipe(\n withLatestFrom(this.accept$),\n\n map(([file, accept]) => {\n // Step 1 - Add a new file in the view\n let f: ReferencedProgressFile = { ...file };\n if (file.ref === undefined) {\n f = {\n ...f,\n ref: Symbol('v_sound = sqrt(gamma.P / rho)'),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n };\n this.pushFile(f);\n }\n\n // Step 2 - Check file extension\n if (accept.length > 0 && !accept.includes(file.file!.type)) {\n this.setFail({\n ref: f.ref,\n color: OnemrvaMatColor.ERROR,\n message: 'file.upload.type.not.supported',\n });\n // This trick coupled with the next filter is used to avoid catchError, which would break the effect\n return { ...f, message: 'ERROR' };\n }\n return f;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.maxFileSize$),\n\n map(([refFile, maxFileSize]) => {\n // Step 3 - Check file size\n if (maxFileSize !== 0 && refFile.size > maxFileSize) {\n this.setFail({\n ref: refFile.ref,\n color: OnemrvaMatColor.ERROR,\n message: 'file.upload.too.big',\n });\n // Same trick for error management\n return { ...refFile, message: 'ERROR' };\n }\n return refFile;\n }),\n filter(x => x.message !== 'ERROR'),\n withLatestFrom(this.files$),\n map(this.fn), // For custom validations\n tap(x => {\n if (!!x.message && x.message.startsWith('ERROR:'))\n this.setFileUploadError(x.message.replace('ERROR:', '').trim());\n else this.clearFileUploadError();\n }),\n filter(x => !x.message.startsWith('ERROR')),\n );\n };\n\n private loadStep = (file: any) => {\n if (file.color === OnemrvaMatColor.WARN) this.reset(file.ref);\n\n this.enableProgressBar();\n\n return this.fileUploadService.upload(file).pipe(\n throttle(() => interval(200), { leading: true, trailing: true }),\n tap((event: HttpEvent<any>) => {\n if (event.type === HttpEventType.UploadProgress) {\n this.setProgress({\n ref: file.ref,\n progress: Math.round((100 * event.loaded) / event.total!),\n });\n }\n\n if (event.type === HttpEventType.Response) {\n this.setSuccess({ ref: file.ref, body: event.body });\n }\n }),\n takeWhile(\n (event: HttpEvent<any>) => event.type === HttpEventType.UploadProgress,\n ),\n catchError(() => {\n this.setFail({\n ref: file.ref,\n color: OnemrvaMatColor.WARN,\n message: 'file.upload.error.occurred',\n });\n return of(null);\n }),\n );\n };\n\n /**\n * For adding one file panel (creation of file panel reference skipped if already created) at a time.\n * Upload to BE not triggered\n */\n readonly addForPotentialUpload = this.effect(\n (file$: Observable<ProgressFile>) => this.progressFileChecker(file$),\n );\n\n /**\n * For adding an array of file panels (creation of file panels reference skipped if already created).\n * Uploads to BE not triggered\n */\n readonly addSeveralForPotentialUpload = this.effect(\n (files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n forkJoin(files.map(file => this.progressFileChecker(of(file)))),\n ),\n ),\n );\n\n /**\n * For adding a file panel (creation of file panels reference skipped if already created) then uploading it\n */\n readonly uploadFile = this.effect((file$: Observable<ProgressFile>) => {\n return this.progressFileChecker(file$).pipe(mergeMap(this.loadStep));\n });\n\n readonly retryFile = this.effect(\n (file$: Observable<ReferencedProgressFile>) =>\n this.progressFileChecker(file$).pipe(mergeMap(this.loadStep)),\n );\n\n /**\n * For adding several file panels (creation of file panels reference skipped if already created) then uploading them\n */\n readonly uploadFiles = this.effect((files$: Observable<ProgressFile[]>) =>\n files$.pipe(\n switchMap(files =>\n merge(\n ...files.map(file =>\n this.progressFileChecker(of(file)).pipe(switchMap(this.loadStep)),\n ),\n ),\n ),\n ),\n );\n}\n","import { Directive, output, signal } from '@angular/core';\n\n@Directive({\n selector: '[appDnd]',\n standalone: true,\n host: {\n '[class.fileover]': 'fileOver()',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)',\n '(drop)': 'ondrop($event)',\n },\n})\nexport class DndDirective {\n readonly fileOver = signal(false);\n\n readonly fileDropped = output<any>();\n\n // Dragover listener\n onDragOver(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(true);\n }\n\n // Dragleave listener\n public onDragLeave(evt: Event) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(false);\n }\n\n // Drop listener\n public ondrop(evt: any) {\n evt.preventDefault();\n evt.stopPropagation();\n this.fileOver.set(false);\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.fileDropped.emit(files);\n }\n }\n}\n","import {\n Component,\n ElementRef,\n EventEmitter,\n inject,\n OnInit,\n TemplateRef,\n input,\n viewChild,\n} from '@angular/core';\nimport { MatDialog } from '@angular/material/dialog';\nimport { map, merge, Observable, Subject, take } from 'rxjs';\nimport {\n state,\n keyframes,\n style,\n animate,\n trigger,\n transition,\n} from '@angular/animations';\nimport {\n formatBytes,\n formattedSize,\n ProgressFile,\n ReferencedProgressFile,\n} from '../../models/progress-file.model';\nimport { OnemrvaMatFileUploadStore } from '../../onemrva-mat-file-upload.store';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { OnemRvaCDNMimeService } from '@onemrvapublic/design-system/shared';\nimport { AsyncPipe, NgTemplateOutlet } from '@angular/common';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatError } from '@angular/material/form-field';\nimport { DndDirective } from '../../directives/dnd.directive';\n\nlet NEXT_ID = 0;\n\n// TODO: Also add a way to block elements from the list instead of allowing (because it can be a lot for some projects)\n// TODO: Remove files from upload list even in manual mode\n// TODO: Error message customisable\n// TODO: Multiple customisable error messages (custom validators)\n\n@Component({\n selector: 'onemrva-mat-file-upload',\n standalone: true,\n templateUrl: 'onemrva-mat-file-upload.component.html',\n styleUrl: 'onemrva-mat-file-upload.component.scss',\n animations: [\n trigger('inOutAnimation', [\n state('in', style({ opacity: 1 })),\n transition(':enter', [\n animate(\n 300,\n keyframes([\n style({ opacity: 0, offset: 0 }),\n style({ opacity: 0.25, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.75, offset: 0.75 }),\n style({ opacity: 1, offset: 1 }),\n ]),\n ),\n ]),\n transition(':leave', [\n animate(\n 300,\n keyframes([\n style({ opacity: 1, offset: 0 }),\n style({ opacity: 0.75, offset: 0.25 }),\n style({ opacity: 0.5, offset: 0.5 }),\n style({ opacity: 0.25, offset: 0.75 }),\n style({ opacity: 0, offset: 1 }),\n ]),\n ),\n ]),\n ]),\n ],\n imports: [\n AsyncPipe,\n MatIcon,\n TranslatePipe,\n NgTemplateOutlet,\n MatError,\n DndDirective,\n ],\n host: {\n '[attr.data-cy]': 'dataCy()',\n },\n})\nexport class OnemrvaMatFileUploadComponent implements OnInit {\n readonly accept = input<string[]>([]);\n\n acceptString$?: Observable<any>;\n\n readonly maxFileSize = input(0);\n\n readonly numberOfFiles = input(0);\n\n readonly maxTotalFileSize = input(0);\n\n readonly uploadOnDrop = input(true);\n\n readonly initialFiles = input<ProgressFile[]>([]);\n\n readonly errorMessage = input('');\n\n readonly hideExtensions = input<string[]>([]);\n\n readonly dropFilesHereTextTranslationKey = input('file.upload.drag.and.drop');\n\n fileUploadErrorMessage$: Observable<string>;\n\n files$: Observable<ReferencedProgressFile[]>;\n\n readonly filePanelTemplate = input.required<TemplateRef<any>>();\n\n retryFile = new EventEmitter<{ index: number; cmpRef: symbol }>();\n\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n /**\n * Sets the `data-cy` of the element. If not set, the first component instance will have `data-cy` = `\"onemrva-mat-multi-select-0\"`.\n *\n * @example\n * ```html\n * <onemrva-mat-multi-select id=\"my-first-multi-select\"></onemrva-mat-multi-select>\n * ```\n */\n public readonly dataCy = input(`onemrva-mat-multi-select-${NEXT_ID++}`);\n\n readonly fileDropRef = viewChild.required<ElementRef>(`fileDropRef`);\n\n inputId = `fileDropRef-${NEXT_ID}`;\n maxFileSizeFormatted = '';\n private error$ = new Subject<string>();\n\n public dialog = inject(MatDialog);\n public mimeCDN = inject(OnemRvaCDNMimeService);\n private fileUploadStore = inject(OnemrvaMatFileUploadStore);\n\n constructor() {\n this.files$ = this.fileUploadStore.files$;\n\n this.fileUploadErrorMessage$ = merge(\n this.fileUploadStore.fileUploadError$,\n this.error$,\n );\n }\n\n ngOnInit(): void {\n if (this.accept().length > 0) {\n this.acceptString$ = this.mimeCDN\n .getExtensionsForMime(this.accept())\n .pipe(\n map(items =>\n items.filter(item => !this.hideExtensions().includes(item)),\n ),\n map(arr => arr.map(item => `.${item}`).join(', ')),\n );\n this.fileUploadStore.setAccept(this.accept());\n }\n\n this.maxFileSizeFormatted = formatBytes(this.maxFileSize());\n this.fileUploadStore.setMaxFileSize(this.maxFileSize());\n }\n\n /**\n * on file drop handler\n */\n onFileDropped($event: FileList) {\n this.prepareFilesList($event);\n }\n\n /**\n * handle file from browsing\n */\n fileBrowseHandler($event: Event) {\n const elm = $event.target as HTMLInputElement,\n files = elm.files as FileList;\n\n this.prepareFilesList(files);\n }\n\n /**\n * Convert Files list to normal array list\n * @param files (Files List)\n */\n prepareFilesList(files: FileList) {\n this.fileUploadStore.files$.pipe(take(1)).subscribe(currentFiles => {\n // if numberOffiles is set and the total length of files is smal\n // ler than it\n if (\n this.numberOfFiles() > 0 &&\n files.length + currentFiles.length > this.numberOfFiles()\n ) {\n this.error$.next('file.upload.too.many.files');\n return;\n }\n if (this.maxTotalFileSize() > 0) {\n const total: number =\n Object.values(files).reduce((sum, obj) => sum + obj.size, 0) +\n currentFiles.reduce((sum, obj) => sum + obj.size, 0);\n if (total > this.maxTotalFileSize()) {\n this.error$.next('file.upload.total.max.size.exceeded');\n return;\n }\n }\n this.error$.next('');\n\n const fs: ProgressFile[] = [];\n for (let i = 0; i < files.length; i++) {\n const file = files.item(i);\n if (file === null) continue;\n\n const item: ProgressFile = {\n file,\n progress: 0,\n message: '',\n color: 'primary',\n url: null,\n id: null,\n enableProgressBar: this.uploadOnDrop(),\n name: file!.name,\n lastModified: file!.lastModified,\n size: file!.size,\n type: file!.type,\n maxSize: this.maxFileSize(),\n };\n\n fs.push(item);\n }\n\n if (this.uploadOnDrop()) this.fileUploadStore.uploadFiles(fs);\n else this.fileUploadStore.addSeveralForPotentialUpload(fs);\n\n this.fileDropRef().nativeElement.value = null;\n });\n }\n\n protected readonly formattedSize = formattedSize;\n}\n","@if (files$ | async; as files) {\n <div\n class=\"onemrva-mat-file-upload-drop-area\"\n appDnd\n (fileDropped)=\"onFileDropped($event)\"\n [class.filein]=\"files.length > 0\"\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 />\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","import { OnemrvaFilePanelComponent } from './onemrva-mat-file-panel/onemrva-file-panel.component';\nimport { OnemrvaMatFileUploadComponent } from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n\nexport const components: any[] = [\n OnemrvaFilePanelComponent,\n OnemrvaMatFileUploadComponent,\n];\n\nexport * from './onemrva-mat-file-panel/onemrva-file-panel.component';\nexport * from './onemrva-mat-file-upload/onemrva-mat-file-upload.component';\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DndDirective } from './directives/dnd.directive';\nimport { MatIconModule } from '@angular/material/icon';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { components } from './components';\nimport { MatInputModule } from '@angular/material/input';\nimport { OnemrvaMatFileUploadStore } from './onemrva-mat-file-upload.store';\nimport { OnemrvaMatFileUploadService } from './onemrva-mat-file-upload.service';\n\n@NgModule({\n declarations: [],\n imports: [\n components,\n DndDirective,\n CommonModule,\n ReactiveFormsModule,\n MatButtonModule,\n MatTooltipModule,\n MatDialogModule,\n TranslateModule,\n MatIconModule,\n MatInputModule,\n ],\n exports: [components, DndDirective],\n providers: [OnemrvaMatFileUploadStore, OnemrvaMatFileUploadService],\n})\nexport class OnemrvaMatFileUploadModule {}\n","/*\n * Public API Surface of mat-file upload\n */\n\nexport * from './src/components';\nexport * from './src/onemrva-mat-file-upload.module';\nexport * from './src/onemrva-mat-file-upload.store';\nexport * from './src/onemrva-mat-file-upload.service';\nexport * from './src/models/progress-file.model';\nexport * from './src/models/action-config.model';\nexport * from './src/onemrva-mat-file-upload-itf.store';\nexport * from './src/directives/dnd.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NEXT_ID"],"mappings":";;;;;;;;;;;;;;;;;;;AAsBA;;;;AAIG;SACa,WAAW,CAAC,KAAa,EAAE,QAAQ,GAAG,CAAC,EAAA;AACrD,IAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,QAAA,OAAO,SAAS;IAClB;IACA,MAAM,CAAC,GAAG,IAAI;AACd,IAAA,MAAM,EAAE,GAAG,QAAQ,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,IAAI,CAAC;IAC5C,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAA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,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,aAF1B,CAAC,yBAAyB,EAAE,2BAA2B,CAAC,YAZjE,UAAU;YAEV,YAAY;YACZ,mBAAmB;YACnB,eAAe;YACf,gBAAgB;YAChB,eAAe;YACf,eAAe;YACf,aAAa;YACb,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAKL,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAjBtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,UAAU;wBACV,YAAY;wBACZ,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,gBAAgB;wBAChB,eAAe;wBACf,eAAe;wBACf,aAAa;wBACb,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC;AACnC,oBAAA,SAAS,EAAE,CAAC,yBAAyB,EAAE,2BAA2B,CAAC;AACpE,iBAAA;;;AC/BD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -27,10 +27,10 @@ class OSMAddressFormatPipe {
27
27
  }
28
28
  return `${result.address.road}, ${result.address.postcode} ${town}`;
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OSMAddressFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
31
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.1", ngImport: i0, type: OSMAddressFormatPipe, isStandalone: true, name: "addressFormatter" }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OSMAddressFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
31
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.4", ngImport: i0, type: OSMAddressFormatPipe, isStandalone: true, name: "addressFormatter" }); }
32
32
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OSMAddressFormatPipe, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OSMAddressFormatPipe, decorators: [{
34
34
  type: Pipe,
35
35
  args: [{
36
36
  name: 'addressFormatter',
@@ -40,14 +40,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImpor
40
40
 
41
41
  class OnemrvaMatInputAddressComponent {
42
42
  constructor() {
43
- this.placeholder = input('input.address.placeholder', ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
44
- this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
45
- this.address = input.required(...(ngDevMode ? [{ debugName: "address" }] : []));
46
- this.mode = input('full', ...(ngDevMode ? [{ debugName: "mode" }] : []));
47
- this.label = input('input.address.label', ...(ngDevMode ? [{ debugName: "label" }] : []));
48
- this.noEntriesFoundLabel = input('input.address.not-found', ...(ngDevMode ? [{ debugName: "noEntriesFoundLabel" }] : []));
49
- this.hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : []));
50
- this.countryCodes = input(['be'], ...(ngDevMode ? [{ debugName: "countryCodes" }] : []));
43
+ this.placeholder = input('input.address.placeholder', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
44
+ this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
45
+ this.address = input.required(...(ngDevMode ? [{ debugName: "address" }] : /* istanbul ignore next */ []));
46
+ this.mode = input('full', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
47
+ this.label = input('input.address.label', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
48
+ this.noEntriesFoundLabel = input('input.address.not-found', ...(ngDevMode ? [{ debugName: "noEntriesFoundLabel" }] : /* istanbul ignore next */ []));
49
+ this.hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
50
+ this.countryCodes = input(['be'], ...(ngDevMode ? [{ debugName: "countryCodes" }] : /* istanbul ignore next */ []));
51
51
  this.getAddress = output();
52
52
  this.autocompleteTrigger = viewChild.required(MatAutocompleteTrigger);
53
53
  this.osm = inject(OnemRvaOSMService);
@@ -86,10 +86,10 @@ class OnemrvaMatInputAddressComponent {
86
86
  this.selectAddress(this.firstResult, false);
87
87
  this.autocompleteTrigger().closePanel();
88
88
  }
89
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatInputAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: OnemrvaMatInputAddressComponent, isStandalone: true, selector: "onemrva-mat-input-address", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, noEntriesFoundLabel: { classPropertyName: "noEntriesFoundLabel", publicName: "noEntriesFoundLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, countryCodes: { classPropertyName: "countryCodes", publicName: "countryCodes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { getAddress: "getAddress" }, viewQueries: [{ propertyName: "autocompleteTrigger", first: true, predicate: MatAutocompleteTrigger, descendants: true, isSignal: true }], ngImport: i0, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label() | translate }}</mat-label>\n <mat-icon matPrefix [class.spin]=\"isLoading\">\n {{ isLoading ? 'refresh' : 'search' }}\n </mat-icon>\n\n @if (address().value !== '') {\n <mat-icon matSuffix class=\"clickable\" (click)=\"clear()\">close</mat-icon>\n }\n <input\n type=\"text\"\n matInput\n [formControl]=\"address()\"\n [readonly]=\"readonly()\"\n [matAutocomplete]=\"auto\"\n [placeholder]=\"placeholder() | translate\"\n (keydown.enter)=\"handleEnter()\"\n />\n\n @if (hint()) {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectAddress($event.option.value)\"\n >\n @for (result of results$ | async; track result.place_id) {\n <mat-option [value]=\"result\">\n <span class=\"country\">\n <flag-icon [countryCode]=\"result.address['country_code']\" />\n {{ result | addressFormatter }}\n </span>\n </mat-option>\n }\n @if (showNoResult) {\n <mat-option>\n {{ noEntriesFoundLabel() | translate }}\n </mat-option>\n }\n </mat-autocomplete>\n @if (address().invalid) {\n <mat-error>{{ 'input.field.invalid' | translate }}</mat-error>\n }\n</mat-form-field>\n", styles: ["onemrva-mat-input-address mat-form-field{width:100%}onemrva-mat-input-address .spin{animation:spin 1s linear infinite}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: OSMAddressFormatPipe, name: "addressFormatter" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatInputAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: OnemrvaMatInputAddressComponent, isStandalone: true, selector: "onemrva-mat-input-address", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, noEntriesFoundLabel: { classPropertyName: "noEntriesFoundLabel", publicName: "noEntriesFoundLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, countryCodes: { classPropertyName: "countryCodes", publicName: "countryCodes", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { getAddress: "getAddress" }, viewQueries: [{ propertyName: "autocompleteTrigger", first: true, predicate: MatAutocompleteTrigger, descendants: true, isSignal: true }], ngImport: i0, template: "<mat-form-field appearance=\"outline\">\n <mat-label>{{ label() | translate }}</mat-label>\n <mat-icon matPrefix [class.spin]=\"isLoading\">\n {{ isLoading ? 'refresh' : 'search' }}\n </mat-icon>\n\n @if (address().value !== '') {\n <mat-icon matSuffix class=\"clickable\" (click)=\"clear()\">close</mat-icon>\n }\n <input\n type=\"text\"\n matInput\n [formControl]=\"address()\"\n [readonly]=\"readonly()\"\n [matAutocomplete]=\"auto\"\n [placeholder]=\"placeholder() | translate\"\n (keydown.enter)=\"handleEnter()\"\n />\n\n @if (hint()) {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectAddress($event.option.value)\"\n >\n @for (result of results$ | async; track result.place_id) {\n <mat-option [value]=\"result\">\n <span class=\"country\">\n <flag-icon [countryCode]=\"result.address['country_code']\" />\n {{ result | addressFormatter }}\n </span>\n </mat-option>\n }\n @if (showNoResult) {\n <mat-option>\n {{ noEntriesFoundLabel() | translate }}\n </mat-option>\n }\n </mat-autocomplete>\n @if (address().invalid) {\n <mat-error>{{ 'input.field.invalid' | translate }}</mat-error>\n }\n</mat-form-field>\n", styles: ["onemrva-mat-input-address mat-form-field{width:100%}onemrva-mat-input-address .spin{animation:spin 1s linear infinite}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i1.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "component", type: MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: FlagIconComponent, selector: "flag-icon", inputs: ["countryCode", "mode", "width"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: OSMAddressFormatPipe, name: "addressFormatter" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatInputAddressComponent, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatInputAddressComponent, decorators: [{
93
93
  type: Component,
94
94
  args: [{ selector: 'onemrva-mat-input-address', standalone: true, imports: [
95
95
  MatInputModule,
@@ -1 +1 @@
1
- {"version":3,"file":"onemrvapublic-design-system-mat-input-address.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-address/src/format-osm.directive.ts","../../../../projects/onemrva/design-system/mat-input-address/src/onemrva-mat-input-address.component.ts","../../../../projects/onemrva/design-system/mat-input-address/src/onemrva-mat-input-address.component.html","../../../../projects/onemrva/design-system/mat-input-address/index.ts","../../../../projects/onemrva/design-system/mat-input-address/onemrvapublic-design-system-mat-input-address.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { OSMResult } from '@onemrvapublic/design-system/shared';\n\n@Pipe({\n name: 'addressFormatter',\n standalone: true,\n})\nexport class OSMAddressFormatPipe implements PipeTransform {\n transform(result: OSMResult): string {\n if (result.address.country_code !== 'be') {\n return result.display_name;\n }\n\n const town =\n result.address.village || result.address.city || result.address.town;\n if (result.address.house_number) {\n return `${result.address.road} ${result.address.house_number}, ${result.address.postcode} ${town}`;\n }\n\n return `${result.address.road}, ${result.address.postcode} ${town}`;\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n OnInit,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { debounceTime, switchMap, Observable, startWith, map, of } from 'rxjs';\nimport { AsyncPipe } from '@angular/common';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n MatAutocomplete,\n MatAutocompleteTrigger,\n} from '@angular/material/autocomplete';\nimport { MatIcon } from '@angular/material/icon';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\nimport {\n OnemRvaOSMService,\n OSMResult,\n} from '@onemrvapublic/design-system/shared';\nimport { OSMAddressFormatPipe } from './format-osm.directive';\n\n@Component({\n selector: 'onemrva-mat-input-address',\n styleUrls: ['onemrva-mat-input-address.component.scss'],\n templateUrl: 'onemrva-mat-input-address.component.html',\n standalone: true,\n imports: [\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n ReactiveFormsModule,\n TranslateModule,\n MatAutocompleteTrigger,\n MatAutocomplete,\n MatIcon,\n FlagIconComponent,\n OSMAddressFormatPipe,\n AsyncPipe,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputAddressComponent implements OnInit {\n readonly placeholder = input('input.address.placeholder');\n readonly readonly = input(false);\n readonly address = input.required<FormControl>();\n readonly mode = input<'road-only' | 'full'>('full');\n readonly label = input('input.address.label');\n readonly noEntriesFoundLabel = input('input.address.not-found');\n readonly hint = input('');\n readonly countryCodes = input(['be']);\n readonly getAddress = output<OSMResult>();\n\n readonly autocompleteTrigger = viewChild.required(MatAutocompleteTrigger);\n\n results$!: Observable<OSMResult[]>;\n\n private readonly osm = inject(OnemRvaOSMService);\n\n isLoading = false;\n\n firstResult: null | OSMResult = null;\n showNoResult = false;\n\n ngOnInit(): void {\n this.results$ = this.address().valueChanges.pipe(\n startWith(''),\n debounceTime(300),\n switchMap((value: string) => {\n this.showNoResult = false;\n this.firstResult = null;\n if (!value || value.length <= 2) {\n this.isLoading = false;\n this.autocompleteTrigger().closePanel();\n return of([]);\n }\n\n this.isLoading = true;\n return this.osm.searchAddress(value, this.countryCodes()).pipe(\n map(results => {\n this.showNoResult = results.length === 0;\n this.isLoading = false;\n this.firstResult = results[0];\n return results;\n }),\n );\n }),\n );\n }\n\n selectAddress(address: OSMResult, emit = true) {\n const finalValue =\n this.mode() === 'road-only' ? address.address.road : address.display_name;\n\n this.address().setValue(finalValue, { emitEvent: emit });\n this.getAddress.emit(address);\n }\n\n clear() {\n this.address().setValue('');\n }\n\n handleEnter() {\n if (this.firstResult !== null) this.selectAddress(this.firstResult, false);\n this.autocompleteTrigger().closePanel();\n }\n}\n","<mat-form-field appearance=\"outline\">\n <mat-label>{{ label() | translate }}</mat-label>\n <mat-icon matPrefix [class.spin]=\"isLoading\">\n {{ isLoading ? 'refresh' : 'search' }}\n </mat-icon>\n\n @if (address().value !== '') {\n <mat-icon matSuffix class=\"clickable\" (click)=\"clear()\">close</mat-icon>\n }\n <input\n type=\"text\"\n matInput\n [formControl]=\"address()\"\n [readonly]=\"readonly()\"\n [matAutocomplete]=\"auto\"\n [placeholder]=\"placeholder() | translate\"\n (keydown.enter)=\"handleEnter()\"\n />\n\n @if (hint()) {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectAddress($event.option.value)\"\n >\n @for (result of results$ | async; track result.place_id) {\n <mat-option [value]=\"result\">\n <span class=\"country\">\n <flag-icon [countryCode]=\"result.address['country_code']\" />\n {{ result | addressFormatter }}\n </span>\n </mat-option>\n }\n @if (showNoResult) {\n <mat-option>\n {{ noEntriesFoundLabel() | translate }}\n </mat-option>\n }\n </mat-autocomplete>\n @if (address().invalid) {\n <mat-error>{{ 'input.field.invalid' | translate }}</mat-error>\n }\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-address.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAOa,oBAAoB,CAAA;AAC/B,IAAA,SAAS,CAAC,MAAiB,EAAA;QACzB,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,KAAK,IAAI,EAAE;YACxC,OAAO,MAAM,CAAC,YAAY;QAC5B;AAEA,QAAA,MAAM,IAAI,GACR,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI;AACtE,QAAA,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE;YAC/B,OAAO,CAAA,EAAG,MAAM,CAAC,OAAO,CAAC,IA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A,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACjB,oBAAoB,EAAA,IAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EACpB,SAAS,EAAA,IAAA,EAAA,OAAA,EAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAIA,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBApB3C,SAAS;+BACE,2BAA2B,EAAA,UAAA,EAGzB,IAAI,EAAA,OAAA,EACP;wBACP,cAAc;wBACd,kBAAkB;wBAClB,eAAe;wBACf,mBAAmB;wBACnB,eAAe;wBACf,sBAAsB;wBACtB,eAAe;wBACf,OAAO;wBACP,iBAAiB;wBACjB,oBAAoB;wBACpB,SAAS;qBACV,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+xCAAA,EAAA,MAAA,EAAA,CAAA,0HAAA,CAAA,EAAA;y6BAaa,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3D1E;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"onemrvapublic-design-system-mat-input-address.mjs","sources":["../../../../projects/onemrva/design-system/mat-input-address/src/format-osm.directive.ts","../../../../projects/onemrva/design-system/mat-input-address/src/onemrva-mat-input-address.component.ts","../../../../projects/onemrva/design-system/mat-input-address/src/onemrva-mat-input-address.component.html","../../../../projects/onemrva/design-system/mat-input-address/index.ts","../../../../projects/onemrva/design-system/mat-input-address/onemrvapublic-design-system-mat-input-address.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { OSMResult } from '@onemrvapublic/design-system/shared';\n\n@Pipe({\n name: 'addressFormatter',\n standalone: true,\n})\nexport class OSMAddressFormatPipe implements PipeTransform {\n transform(result: OSMResult): string {\n if (result.address.country_code !== 'be') {\n return result.display_name;\n }\n\n const town =\n result.address.village || result.address.city || result.address.town;\n if (result.address.house_number) {\n return `${result.address.road} ${result.address.house_number}, ${result.address.postcode} ${town}`;\n }\n\n return `${result.address.road}, ${result.address.postcode} ${town}`;\n }\n}\n","import {\n Component,\n ViewEncapsulation,\n OnInit,\n inject,\n input,\n output,\n viewChild,\n} from '@angular/core';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { debounceTime, switchMap, Observable, startWith, map, of } from 'rxjs';\nimport { AsyncPipe } from '@angular/common';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatSelectModule } from '@angular/material/select';\nimport { TranslateModule } from '@ngx-translate/core';\nimport {\n MatAutocomplete,\n MatAutocompleteTrigger,\n} from '@angular/material/autocomplete';\nimport { MatIcon } from '@angular/material/icon';\nimport { FlagIconComponent } from '@onemrvapublic/design-system/flag-icon';\nimport {\n OnemRvaOSMService,\n OSMResult,\n} from '@onemrvapublic/design-system/shared';\nimport { OSMAddressFormatPipe } from './format-osm.directive';\n\n@Component({\n selector: 'onemrva-mat-input-address',\n styleUrls: ['onemrva-mat-input-address.component.scss'],\n templateUrl: 'onemrva-mat-input-address.component.html',\n standalone: true,\n imports: [\n MatInputModule,\n MatFormFieldModule,\n MatSelectModule,\n ReactiveFormsModule,\n TranslateModule,\n MatAutocompleteTrigger,\n MatAutocomplete,\n MatIcon,\n FlagIconComponent,\n OSMAddressFormatPipe,\n AsyncPipe,\n ],\n encapsulation: ViewEncapsulation.None,\n})\nexport class OnemrvaMatInputAddressComponent implements OnInit {\n readonly placeholder = input('input.address.placeholder');\n readonly readonly = input(false);\n readonly address = input.required<FormControl>();\n readonly mode = input<'road-only' | 'full'>('full');\n readonly label = input('input.address.label');\n readonly noEntriesFoundLabel = input('input.address.not-found');\n readonly hint = input('');\n readonly countryCodes = input(['be']);\n readonly getAddress = output<OSMResult>();\n\n readonly autocompleteTrigger = viewChild.required(MatAutocompleteTrigger);\n\n results$!: Observable<OSMResult[]>;\n\n private readonly osm = inject(OnemRvaOSMService);\n\n isLoading = false;\n\n firstResult: null | OSMResult = null;\n showNoResult = false;\n\n ngOnInit(): void {\n this.results$ = this.address().valueChanges.pipe(\n startWith(''),\n debounceTime(300),\n switchMap((value: string) => {\n this.showNoResult = false;\n this.firstResult = null;\n if (!value || value.length <= 2) {\n this.isLoading = false;\n this.autocompleteTrigger().closePanel();\n return of([]);\n }\n\n this.isLoading = true;\n return this.osm.searchAddress(value, this.countryCodes()).pipe(\n map(results => {\n this.showNoResult = results.length === 0;\n this.isLoading = false;\n this.firstResult = results[0];\n return results;\n }),\n );\n }),\n );\n }\n\n selectAddress(address: OSMResult, emit = true) {\n const finalValue =\n this.mode() === 'road-only' ? address.address.road : address.display_name;\n\n this.address().setValue(finalValue, { emitEvent: emit });\n this.getAddress.emit(address);\n }\n\n clear() {\n this.address().setValue('');\n }\n\n handleEnter() {\n if (this.firstResult !== null) this.selectAddress(this.firstResult, false);\n this.autocompleteTrigger().closePanel();\n }\n}\n","<mat-form-field appearance=\"outline\">\n <mat-label>{{ label() | translate }}</mat-label>\n <mat-icon matPrefix [class.spin]=\"isLoading\">\n {{ isLoading ? 'refresh' : 'search' }}\n </mat-icon>\n\n @if (address().value !== '') {\n <mat-icon matSuffix class=\"clickable\" (click)=\"clear()\">close</mat-icon>\n }\n <input\n type=\"text\"\n matInput\n [formControl]=\"address()\"\n [readonly]=\"readonly()\"\n [matAutocomplete]=\"auto\"\n [placeholder]=\"placeholder() | translate\"\n (keydown.enter)=\"handleEnter()\"\n />\n\n @if (hint()) {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n\n <mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"selectAddress($event.option.value)\"\n >\n @for (result of results$ | async; track result.place_id) {\n <mat-option [value]=\"result\">\n <span class=\"country\">\n <flag-icon [countryCode]=\"result.address['country_code']\" />\n {{ result | addressFormatter }}\n </span>\n </mat-option>\n }\n @if (showNoResult) {\n <mat-option>\n {{ noEntriesFoundLabel() | translate }}\n </mat-option>\n }\n </mat-autocomplete>\n @if (address().invalid) {\n <mat-error>{{ 'input.field.invalid' | translate }}</mat-error>\n }\n</mat-form-field>\n","/*\n * Public API Surface of mat-bank-account-input\n */\n\nexport * from './src/onemrva-mat-input-address.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAOa,oBAAoB,CAAA;AAC/B,IAAA,SAAS,CAAC,MAAiB,EAAA;QACzB,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,KAAK,IAAI,EAAE;YACxC,OAAO,MAAM,CAAC,YAAY;QAC5B;AAEA,QAAA,MAAM,IAAI,GACR,MAAM,CAAC,OAAO,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI;AACtE,QAAA,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE;YAC/B,OAAO,CAAA,EAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA,CAAA,EAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAA,EAAA,EAAK,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAA,CAAA,EAAI,IAAI,CAAA,CAAE;QACpG;AAEA,QAAA,OAAO,CAAA,EAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAA,EAAA,EAAK,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAA,CAAA,EAAI,IAAI,EAAE;IACrE;8GAbW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAApB,oBAAoB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,IAAI;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,SAAS;qBACV,EAAA,aAAA,EACc,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAAA,+xCAAA,EAAA,MAAA,EAAA,CAAA,0HAAA,CAAA,EAAA;y6BAaa,sBAAsB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3D1E;;AAEG;;ACFH;;AAEG;;;;"}
@@ -18,17 +18,17 @@ import { CommonCountryLookupService } from '@onemrvapublic/design-system/shared'
18
18
 
19
19
  class OnemrvaMatInputBirthPlaceComponent {
20
20
  constructor() {
21
- this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : []));
22
- this.countryCode = input(new FormControl(null), ...(ngDevMode ? [{ debugName: "countryCode" }] : []));
23
- this.label = input('Country', ...(ngDevMode ? [{ debugName: "label" }] : []));
24
- this.noEntriesFoundLabel = input('Not found', ...(ngDevMode ? [{ debugName: "noEntriesFoundLabel" }] : []));
25
- this.hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : []));
26
- this.placeholderLabel = input('Search', ...(ngDevMode ? [{ debugName: "placeholderLabel" }] : []));
27
- this.searchAriaLabel = input('', ...(ngDevMode ? [{ debugName: "searchAriaLabel" }] : []));
28
- this.returnValue = input('object', ...(ngDevMode ? [{ debugName: "returnValue" }] : []));
21
+ this.readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
22
+ this.countryCode = input(new FormControl(null), ...(ngDevMode ? [{ debugName: "countryCode" }] : /* istanbul ignore next */ []));
23
+ this.label = input('Country', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
24
+ this.noEntriesFoundLabel = input('Not found', ...(ngDevMode ? [{ debugName: "noEntriesFoundLabel" }] : /* istanbul ignore next */ []));
25
+ this.hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
26
+ this.placeholderLabel = input('Search', ...(ngDevMode ? [{ debugName: "placeholderLabel" }] : /* istanbul ignore next */ []));
27
+ this.searchAriaLabel = input('', ...(ngDevMode ? [{ debugName: "searchAriaLabel" }] : /* istanbul ignore next */ []));
28
+ this.returnValue = input('object', ...(ngDevMode ? [{ debugName: "returnValue" }] : /* istanbul ignore next */ []));
29
29
  this.getCountry = output();
30
- this.selectedCountryName = signal(null, ...(ngDevMode ? [{ debugName: "selectedCountryName" }] : []));
31
- this.selectedCountryCode = signal(null, ...(ngDevMode ? [{ debugName: "selectedCountryCode" }] : []));
30
+ this.selectedCountryName = signal(null, ...(ngDevMode ? [{ debugName: "selectedCountryName" }] : /* istanbul ignore next */ []));
31
+ this.selectedCountryCode = signal(null, ...(ngDevMode ? [{ debugName: "selectedCountryCode" }] : /* istanbul ignore next */ []));
32
32
  this.filterCtrl = new FormControl('');
33
33
  this.destroyNotifier$ = new Subject();
34
34
  this.filteredCountries$ = of([]);
@@ -111,10 +111,10 @@ class OnemrvaMatInputBirthPlaceComponent {
111
111
  .map(word => word.charAt(0).toUpperCase() + word.slice(1))
112
112
  .join(' ');
113
113
  }
114
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.1", type: OnemrvaMatInputBirthPlaceComponent, isStandalone: true, selector: "onemrva-mat-input-birthplace", inputs: { readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, countryCode: { classPropertyName: "countryCode", publicName: "countryCode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, noEntriesFoundLabel: { classPropertyName: "noEntriesFoundLabel", publicName: "noEntriesFoundLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholderLabel: { classPropertyName: "placeholderLabel", publicName: "placeholderLabel", isSignal: true, isRequired: false, transformFunction: null }, searchAriaLabel: { classPropertyName: "searchAriaLabel", publicName: "searchAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, returnValue: { classPropertyName: "returnValue", publicName: "returnValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label() }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode()\"\n [placeholder]=\"placeholderLabel()\"\n >\n <mat-select-trigger>\n <mat-country-item\n [countryCode]=\"selectedCountryCode()\"\n [countryName]=\"selectedCountryName()\"\n />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel()\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel()\"\n [placeholderLabel]=\"placeholderLabel()\"\n />\n </mat-option>\n @for (country of filteredCountries$ | async; track $index) {\n <mat-option [value]=\"country\">\n <mat-country-item\n [countryCode]=\"country.singlePropertiesMap.codeSepa.toLowerCase()\"\n [countryName]=\"getCountryName(country)\"\n />\n </mat-option>\n }\n </mat-select>\n @if (hint() !== '') {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n @if (countryCode().invalid) {\n <mat-error>{{ errors() | translate }}</mat-error>\n }\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .mdc-list-item__primary-text{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i2.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i3.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: OnemrvaCountryItemComponent, selector: "mat-country-item", inputs: ["countryCode", "countryName"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: OnemrvaMatInputBirthPlaceComponent, isStandalone: true, selector: "onemrva-mat-input-birthplace", inputs: { readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, countryCode: { classPropertyName: "countryCode", publicName: "countryCode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, noEntriesFoundLabel: { classPropertyName: "noEntriesFoundLabel", publicName: "noEntriesFoundLabel", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholderLabel: { classPropertyName: "placeholderLabel", publicName: "placeholderLabel", isSignal: true, isRequired: false, transformFunction: null }, searchAriaLabel: { classPropertyName: "searchAriaLabel", publicName: "searchAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, returnValue: { classPropertyName: "returnValue", publicName: "returnValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { getCountry: "getCountry" }, ngImport: i0, template: "<mat-form-field class=\"onemrva-input-country-common\">\n <mat-label>{{ label() }}</mat-label>\n <mat-select\n class=\"onemrva-country-select-common\"\n [formControl]=\"countryCode()\"\n [placeholder]=\"placeholderLabel()\"\n >\n <mat-select-trigger>\n <mat-country-item\n [countryCode]=\"selectedCountryCode()\"\n [countryName]=\"selectedCountryName()\"\n />\n </mat-select-trigger>\n <mat-option>\n <mat-select-search\n [formControl]=\"filterCtrl\"\n [ariaLabel]=\"searchAriaLabel()\"\n [noEntriesFoundLabel]=\"noEntriesFoundLabel()\"\n [placeholderLabel]=\"placeholderLabel()\"\n />\n </mat-option>\n @for (country of filteredCountries$ | async; track $index) {\n <mat-option [value]=\"country\">\n <mat-country-item\n [countryCode]=\"country.singlePropertiesMap.codeSepa.toLowerCase()\"\n [countryName]=\"getCountryName(country)\"\n />\n </mat-option>\n }\n </mat-select>\n @if (hint() !== '') {\n <mat-hint>{{ hint() }}</mat-hint>\n }\n @if (countryCode().invalid) {\n <mat-error>{{ errors() | translate }}</mat-error>\n }\n</mat-form-field>\n", styles: ["mat-option.mdc-list-item .mdc-list-item__primary-text{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i2.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatSelectSearchModule }, { kind: "component", type: i3.MatSelectSearchComponent, selector: "mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "component", type: OnemrvaCountryItemComponent, selector: "mat-country-item", inputs: ["countryCode", "countryName"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.1", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: OnemrvaMatInputBirthPlaceComponent, decorators: [{
118
118
  type: Component,
119
119
  args: [{ selector: 'onemrva-mat-input-birthplace', standalone: true, imports: [
120
120
  MatInputModule,