@valtimo/zgw 12.0.0 → 12.1.0

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 (80) hide show
  1. package/esm2022/lib/components/dossier-management-zgw/dossier-management-zgw.component.mjs +61 -13
  2. package/esm2022/lib/models/dossier-management-zgw.model.mjs +5 -3
  3. package/esm2022/lib/modules/documenten-api/components/documenten-api-column-modal/documenten-api-column-modal.component.mjs +115 -242
  4. package/esm2022/lib/modules/documenten-api/components/documenten-api-columns/documenten-api-columns.component.mjs +57 -85
  5. package/esm2022/lib/modules/documenten-api/components/documenten-api-documents/documenten-api-documents.component.mjs +171 -100
  6. package/esm2022/lib/modules/documenten-api/components/documenten-api-filter/documenten-api-filter.component.mjs +174 -0
  7. package/esm2022/lib/modules/documenten-api/components/documenten-api-metadata-modal/documenten-api-metadata-modal.component.mjs +244 -106
  8. package/esm2022/lib/modules/documenten-api/components/documenten-api-tag-modal/documenten-api-tag-modal.component.mjs +115 -0
  9. package/esm2022/lib/modules/documenten-api/components/documenten-api-tags/documenten-api-tags.component.mjs +164 -0
  10. package/esm2022/lib/modules/documenten-api/components/index.mjs +5 -2
  11. package/esm2022/lib/modules/documenten-api/formio/documenten-api-uploader/documenten-api-uploader.component.mjs +3 -3
  12. package/esm2022/lib/modules/documenten-api/models/configured-column.model.mjs +12 -2
  13. package/esm2022/lib/modules/documenten-api/models/documenten-api-filter.model.mjs +17 -0
  14. package/esm2022/lib/modules/documenten-api/models/documenten-api-metadata.model.mjs +1 -1
  15. package/esm2022/lib/modules/documenten-api/models/documenten-api-tag.model.mjs +17 -0
  16. package/esm2022/lib/modules/documenten-api/models/documenten-api-version.model.mjs +1 -1
  17. package/esm2022/lib/modules/documenten-api/models/documenten-api.model.mjs +22 -2
  18. package/esm2022/lib/modules/documenten-api/models/index.mjs +2 -1
  19. package/esm2022/lib/modules/documenten-api/services/documenten-api-column.service.mjs +10 -9
  20. package/esm2022/lib/modules/documenten-api/services/documenten-api-document.service.mjs +10 -3
  21. package/esm2022/lib/modules/documenten-api/services/documenten-api-link-process.service.mjs +1 -16
  22. package/esm2022/lib/modules/documenten-api/services/documenten-api-tag.service.mjs +36 -0
  23. package/esm2022/lib/modules/documenten-api/services/documenten-api-version.service.mjs +4 -1
  24. package/esm2022/lib/modules/documenten-api/services/index.mjs +3 -2
  25. package/esm2022/lib/modules/objecten-api/components/zaakobjecten/zaakobjecten.component.mjs +2 -2
  26. package/esm2022/lib/modules/zaakdetails/components/document-objecten-api-sync/document-objecten-api-sync.component.mjs +1 -1
  27. package/esm2022/lib/services/dossier-management-zgw.service.mjs +8 -4
  28. package/esm2022/lib/zgw.module.mjs +22 -5
  29. package/fesm2022/valtimo-zgw.mjs +1378 -781
  30. package/fesm2022/valtimo-zgw.mjs.map +1 -1
  31. package/lib/components/dossier-management-zgw/dossier-management-zgw.component.d.ts +16 -5
  32. package/lib/components/dossier-management-zgw/dossier-management-zgw.component.d.ts.map +1 -1
  33. package/lib/models/dossier-management-zgw.model.d.ts +12 -2
  34. package/lib/models/dossier-management-zgw.model.d.ts.map +1 -1
  35. package/lib/modules/documenten-api/components/documenten-api-column-modal/documenten-api-column-modal.component.d.ts +33 -63
  36. package/lib/modules/documenten-api/components/documenten-api-column-modal/documenten-api-column-modal.component.d.ts.map +1 -1
  37. package/lib/modules/documenten-api/components/documenten-api-columns/documenten-api-columns.component.d.ts +18 -20
  38. package/lib/modules/documenten-api/components/documenten-api-columns/documenten-api-columns.component.d.ts.map +1 -1
  39. package/lib/modules/documenten-api/components/documenten-api-documents/documenten-api-documents.component.d.ts +38 -20
  40. package/lib/modules/documenten-api/components/documenten-api-documents/documenten-api-documents.component.d.ts.map +1 -1
  41. package/lib/modules/documenten-api/components/documenten-api-filter/documenten-api-filter.component.d.ts +47 -0
  42. package/lib/modules/documenten-api/components/documenten-api-filter/documenten-api-filter.component.d.ts.map +1 -0
  43. package/lib/modules/documenten-api/components/documenten-api-metadata-modal/documenten-api-metadata-modal.component.d.ts +76 -39
  44. package/lib/modules/documenten-api/components/documenten-api-metadata-modal/documenten-api-metadata-modal.component.d.ts.map +1 -1
  45. package/lib/modules/documenten-api/components/documenten-api-tag-modal/documenten-api-tag-modal.component.d.ts +33 -0
  46. package/lib/modules/documenten-api/components/documenten-api-tag-modal/documenten-api-tag-modal.component.d.ts.map +1 -0
  47. package/lib/modules/documenten-api/components/documenten-api-tags/documenten-api-tags.component.d.ts +46 -0
  48. package/lib/modules/documenten-api/components/documenten-api-tags/documenten-api-tags.component.d.ts.map +1 -0
  49. package/lib/modules/documenten-api/components/index.d.ts +4 -1
  50. package/lib/modules/documenten-api/components/index.d.ts.map +1 -1
  51. package/lib/modules/documenten-api/models/configured-column.model.d.ts +8 -2
  52. package/lib/modules/documenten-api/models/configured-column.model.d.ts.map +1 -1
  53. package/lib/modules/documenten-api/models/documenten-api-filter.model.d.ts +10 -0
  54. package/lib/modules/documenten-api/models/documenten-api-filter.model.d.ts.map +1 -0
  55. package/lib/modules/documenten-api/models/documenten-api-metadata.model.d.ts +10 -9
  56. package/lib/modules/documenten-api/models/documenten-api-metadata.model.d.ts.map +1 -1
  57. package/lib/modules/documenten-api/models/documenten-api-tag.model.d.ts +5 -0
  58. package/lib/modules/documenten-api/models/documenten-api-tag.model.d.ts.map +1 -0
  59. package/lib/modules/documenten-api/models/documenten-api-version.model.d.ts +7 -1
  60. package/lib/modules/documenten-api/models/documenten-api-version.model.d.ts.map +1 -1
  61. package/lib/modules/documenten-api/models/documenten-api.model.d.ts +37 -12
  62. package/lib/modules/documenten-api/models/documenten-api.model.d.ts.map +1 -1
  63. package/lib/modules/documenten-api/models/index.d.ts +1 -0
  64. package/lib/modules/documenten-api/models/index.d.ts.map +1 -1
  65. package/lib/modules/documenten-api/services/documenten-api-column.service.d.ts +3 -2
  66. package/lib/modules/documenten-api/services/documenten-api-column.service.d.ts.map +1 -1
  67. package/lib/modules/documenten-api/services/documenten-api-document.service.d.ts +3 -2
  68. package/lib/modules/documenten-api/services/documenten-api-document.service.d.ts.map +1 -1
  69. package/lib/modules/documenten-api/services/documenten-api-link-process.service.d.ts.map +1 -1
  70. package/lib/modules/documenten-api/services/documenten-api-tag.service.d.ts +17 -0
  71. package/lib/modules/documenten-api/services/documenten-api-tag.service.d.ts.map +1 -0
  72. package/lib/modules/documenten-api/services/documenten-api-version.service.d.ts +2 -1
  73. package/lib/modules/documenten-api/services/documenten-api-version.service.d.ts.map +1 -1
  74. package/lib/modules/documenten-api/services/index.d.ts +2 -1
  75. package/lib/modules/documenten-api/services/index.d.ts.map +1 -1
  76. package/lib/modules/zaakdetails/components/document-objecten-api-sync/document-objecten-api-sync.component.d.ts.map +1 -1
  77. package/lib/services/dossier-management-zgw.service.d.ts +2 -0
  78. package/lib/services/dossier-management-zgw.service.d.ts.map +1 -1
  79. package/lib/zgw.module.d.ts.map +1 -1
  80. package/package.json +1 -1
@@ -1,11 +1,22 @@
1
+ import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
1
2
  import { DossierManagementZgwService } from '../../services';
2
- import { ZgwTabEnum } from '../../models';
3
+ import { ZgwTab, ZgwTabEnum } from '../../models';
4
+ import { DocumentenApiVersionService } from '../../modules';
5
+ import { Observable } from 'rxjs';
6
+ import { ActivatedRoute } from '@angular/router';
3
7
  import * as i0 from "@angular/core";
4
- export declare class DossierManagementZgwComponent {
8
+ export declare class DossierManagementZgwComponent implements AfterViewInit, OnDestroy {
5
9
  private readonly dossierManagementZgwService;
6
- readonly ZgwTabEnum: typeof ZgwTabEnum;
7
- readonly currentTab$: import("rxjs").Observable<ZgwTabEnum>;
8
- constructor(dossierManagementZgwService: DossierManagementZgwService);
10
+ private readonly cdr;
11
+ private readonly documentenApiVersionService;
12
+ private readonly route;
13
+ private _zgwTabContent;
14
+ private readonly _viewInitialized$;
15
+ private readonly _supportedDocumentenApiFeatures$;
16
+ readonly zgwTabs$: Observable<ZgwTab[]>;
17
+ constructor(dossierManagementZgwService: DossierManagementZgwService, cdr: ChangeDetectorRef, documentenApiVersionService: DocumentenApiVersionService, route: ActivatedRoute);
18
+ ngAfterViewInit(): void;
19
+ ngOnDestroy(): void;
9
20
  displayTab(tab: ZgwTabEnum): void;
10
21
  static ɵfac: i0.ɵɵFactoryDeclaration<DossierManagementZgwComponent, never>;
11
22
  static ɵcmp: i0.ɵɵComponentDeclaration<DossierManagementZgwComponent, "ng-component", never, {}, {}, never, never, true, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-management-zgw.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/zgw/src/lib/components/dossier-management-zgw/dossier-management-zgw.component.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAC,2BAA2B,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;;AAKxC,qBAOa,6BAA6B;IAK5B,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAJxD,SAAgB,UAAU,oBAAc;IAExC,SAAgB,WAAW,wCAAgD;gBAE9C,2BAA2B,EAAE,2BAA2B;IAE9E,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,IAAI;yCAP7B,6BAA6B;2CAA7B,6BAA6B;CAUzC"}
1
+ {"version":3,"file":"dossier-management-zgw.component.d.ts","sourceRoot":"","sources":["../../../../../../projects/valtimo/zgw/src/lib/components/dossier-management-zgw/dossier-management-zgw.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAEb,iBAAiB,EAEjB,SAAS,EAGV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAC,2BAA2B,EAAC,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAGhD,OAAO,EAGL,2BAA2B,EAE5B,MAAM,eAAe,CAAC;AACvB,OAAO,EAA8C,UAAU,EAAiB,MAAM,MAAM,CAAC;AAC7F,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;;AAE/C,qBAaa,6BAA8B,YAAW,aAAa,EAAE,SAAS;IAkD1E,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,2BAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK;IAnDxB,OAAO,CAAC,cAAc,CAAmB;IAEzC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAuC;IAEzE,OAAO,CAAC,QAAQ,CAAC,gCAAgC,CAO7C;IAEJ,SAAgB,QAAQ,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAgC5C;gBAGiB,2BAA2B,EAAE,2BAA2B,EACxD,GAAG,EAAE,iBAAiB,EACtB,2BAA2B,EAAE,2BAA2B,EACxD,KAAK,EAAE,cAAc;IAGjC,eAAe,IAAI,IAAI;IAIvB,WAAW,IAAI,IAAI;IAInB,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,IAAI;yCAhE7B,6BAA6B;2CAA7B,6BAA6B;CAmEzC"}
@@ -1,4 +1,14 @@
1
- export declare enum ZgwTabEnum {
2
- DOCUMENTEN_API_COLUMNS = 0
1
+ import { Type } from '@angular/core';
2
+ declare enum ZgwTabEnum {
3
+ DOCUMENTEN_API_COLUMNS = "documentenApiColumns",
4
+ DOCUMENTEN_API_TAGS = "documentenApiTags"
3
5
  }
6
+ interface ZgwTab {
7
+ class: string;
8
+ headingTranslationKey: string;
9
+ tab: ZgwTabEnum;
10
+ active?: boolean;
11
+ component: Type<any>;
12
+ }
13
+ export { ZgwTabEnum, ZgwTab };
4
14
  //# sourceMappingURL=dossier-management-zgw.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-management-zgw.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/zgw/src/lib/models/dossier-management-zgw.model.ts"],"names":[],"mappings":"AAgBA,oBAAY,UAAU;IACpB,sBAAsB,IAAA;CACvB"}
1
+ {"version":3,"file":"dossier-management-zgw.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/zgw/src/lib/models/dossier-management-zgw.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,IAAI,EAAC,MAAM,eAAe,CAAC;AAEnC,aAAK,UAAU;IACb,sBAAsB,yBAAyB;IAC/C,mBAAmB,sBAAsB;CAC1C;AAED,UAAU,MAAM;IACd,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB,EAAE,MAAM,CAAC;IAC9B,GAAG,EAAE,UAAU,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;CACtB;AAED,OAAO,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC"}
@@ -1,77 +1,47 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { DocumentenApiColumnModalType, DocumentenApiColumnModalTypeCloseEvent } from '../../models';
3
- import { BehaviorSubject, Observable } from 'rxjs';
4
- import { AbstractControl, FormBuilder } from '@angular/forms';
5
- import { CaseStatusService, InternalCaseStatus } from '@valtimo/document';
6
- import { IconService, ListItem } from 'carbon-components-angular';
2
+ import { FormBuilder } from '@angular/forms';
7
3
  import { TranslateService } from '@ngx-translate/core';
4
+ import { ListItem, NotificationContent } from 'carbon-components-angular';
5
+ import { Observable } from 'rxjs';
6
+ import { ConfiguredColumn, DocumentenApiColumnModalType, DocumentenApiColumnModalTypeCloseEvent } from '../../models';
7
+ import { DocumentenApiColumnService } from '../../services';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class DocumentenApiColumnModalComponent implements OnInit, OnDestroy {
10
10
  private readonly fb;
11
- private readonly iconService;
12
- private readonly caseStatusService;
13
11
  private readonly translateService;
12
+ private readonly zgwDocumentenApiColumnService;
13
+ definitionName: string;
14
+ private _prefillColumn;
15
+ set prefillColumn(value: ConfiguredColumn | undefined);
16
+ get prefillColumn(): ListItem[] | null;
17
+ private _type;
14
18
  set type(value: DocumentenApiColumnModalType);
15
- set prefill(value: InternalCaseStatus);
16
- usedKeys: string[];
17
- documentDefinitionName: string;
18
- closeModalEvent: EventEmitter<DocumentenApiColumnModalTypeCloseEvent>;
19
- private readonly _type;
20
- private readonly _typeAnimationDelay$;
21
- private readonly _prefillStatus;
22
- readonly isClosed$: Observable<boolean>;
23
- readonly statusFormGroup: import("@angular/forms").FormGroup<{
24
- title: import("@angular/forms").FormControl<string>;
25
- key: import("@angular/forms").FormControl<string>;
26
- visibleInCaseListByDefault: import("@angular/forms").FormControl<boolean>;
27
- color: import("@angular/forms").FormControl<string>;
19
+ get type(): DocumentenApiColumnModalType;
20
+ private readonly _availableColumns$;
21
+ set availableColumns(value: ConfiguredColumn[]);
22
+ readonly availableColumns$: Observable<ListItem[]>;
23
+ private _defaultSortedColumn;
24
+ set configuredColumns(value: ConfiguredColumn[]);
25
+ closeModal: EventEmitter<DocumentenApiColumnModalTypeCloseEvent>;
26
+ formGroup: import("@angular/forms").FormGroup<{
27
+ column: import("@angular/forms").FormControl<{
28
+ content: string;
29
+ selected: boolean;
30
+ column: ConfiguredColumn;
31
+ }>;
32
+ defaultSort: import("@angular/forms").FormControl<"ASC" | "DESC" | "noDefault">;
28
33
  }>;
29
- readonly isEdit$: Observable<boolean>;
30
- readonly isAdd$: Observable<boolean>;
31
- readonly disabled$: BehaviorSubject<boolean>;
32
- private readonly COLORS;
33
- private readonly _selectedColor$;
34
- readonly colorListItems$: Observable<ListItem[]>;
35
- get visibleInCaseListByDefault(): AbstractControl<boolean, boolean>;
36
- get key(): AbstractControl<string, string>;
37
- get title(): AbstractControl<string, string>;
38
- get color(): AbstractControl<string, string>;
39
- get invalid(): boolean;
40
- get pristine(): boolean;
41
- private readonly _editingKey$;
42
- readonly editingKey$: Observable<boolean>;
43
- private readonly _originalStatusKey$;
34
+ private readonly _notificationMessage$;
35
+ readonly notificationObj$: Observable<NotificationContent>;
36
+ showRadioButtons: boolean;
44
37
  private readonly _subscriptions;
45
- constructor(fb: FormBuilder, iconService: IconService, caseStatusService: CaseStatusService, translateService: TranslateService);
38
+ constructor(fb: FormBuilder, translateService: TranslateService, zgwDocumentenApiColumnService: DocumentenApiColumnService);
46
39
  ngOnInit(): void;
47
40
  ngOnDestroy(): void;
48
- onClose(): void;
49
- toggleCheckedChange(checked: boolean): void;
50
- addStatus(): void;
51
- editStatus(): void;
52
- editKeyButtonClick(): void;
53
- colorDropdownChange(event: {
54
- item: {
55
- color: string;
56
- content: string;
57
- selected: boolean;
58
- };
59
- isUpdate: boolean;
60
- }): void;
61
- private prefillForm;
62
- private resetForm;
63
- private resetEditingKey;
64
- private openAutoKeySubscription;
65
- private getUniqueKey;
66
- private getUniqueKeyWithNumber;
67
- private clearKey;
68
- private uniqueKeyValidator;
69
- private disable;
70
- private enable;
71
- private close;
72
- private closeAndRefresh;
73
- private getFormValue;
41
+ onClose(refresh?: boolean): void;
42
+ updateColumn(): void;
43
+ private openDisableRadioSubscription;
74
44
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentenApiColumnModalComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiColumnModalComponent, "valtimo-documenten-api-column-modal", never, { "type": { "alias": "type"; "required": false; }; "prefill": { "alias": "prefill"; "required": false; }; "usedKeys": { "alias": "usedKeys"; "required": false; }; "documentDefinitionName": { "alias": "documentDefinitionName"; "required": false; }; }, { "closeModalEvent": "closeModalEvent"; }, never, never, true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiColumnModalComponent, "valtimo-documenten-api-column-modal", never, { "definitionName": { "alias": "definitionName"; "required": false; }; "prefillColumn": { "alias": "prefillColumn"; "required": false; }; "type": { "alias": "type"; "required": false; }; "availableColumns": { "alias": "availableColumns"; "required": false; }; "configuredColumns": { "alias": "configuredColumns"; "required": false; }; }, { "closeModal": "closeModal"; }, never, never, true, never>;
76
46
  }
77
47
  //# sourceMappingURL=documenten-api-column-modal.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"documenten-api-column-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-column-modal/documenten-api-column-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,4BAA4B,EAAE,sCAAsC,EAAC,MAAM,cAAc,CAAC;AAClG,OAAO,EACL,eAAe,EAGf,UAAU,EAKX,MAAM,MAAM,CAAC;AAEd,OAAO,EACL,eAAe,EACf,WAAW,EAKZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAGnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,WAAW,EAEX,QAAQ,EAIT,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;;AAGtE,qBAkBa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAgIvE,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IAlInC,IAAoB,IAAI,CAAC,KAAK,EAAE,4BAA4B,EAU3D;IAED,IAAoB,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAEpD;IAEe,QAAQ,EAAG,MAAM,EAAE,CAAC;IACpB,sBAAsB,EAAG,MAAM,CAAC;IAE/B,eAAe,uDAA8D;IAE9F,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgE;IACtF,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAEnC;IACF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsD;IAErF,SAAgB,SAAS,sBAAmD;IAE5E,SAAgB,eAAe;;;;;OAK5B;IAEH,SAAgB,OAAO,sBAKrB;IAEF,SAAgB,MAAM,sBAKpB;I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,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,uBAAuB;IAgB/B,OAAO,CAAC,YAAY;IAepB,OAAO,CAAC,sBAAsB;IAiB9B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,MAAM;IAUd,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,YAAY;yCApUT,iCAAiC;2CAAjC,iCAAiC;CA4U7C"}
1
+ {"version":3,"file":"documenten-api-column-modal.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-column-modal/documenten-api-column-modal.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAGL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,WAAW,EAAkC,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAIL,QAAQ,EAER,mBAAmB,EAGpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAsC,UAAU,EAA0B,MAAM,MAAM,CAAC;AAC9F,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,sCAAsC,EACvC,MAAM,cAAc,CAAC;AACtB,OAAO,EAAC,0BAA0B,EAAC,MAAM,gBAAgB,CAAC;;AAG1D,qBAkBa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAsFvE,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,6BAA6B;IAvFhC,cAAc,EAAE,MAAM,CAAC;IAEvC,OAAO,CAAC,cAAc,CAAqB;IAC3C,IAAoB,aAAa,CAAC,KAAK,EAAE,gBAAgB,GAAG,SAAS,EAQpE;IACD,IAAW,aAAa,IAAI,QAAQ,EAAE,GAAG,IAAI,CAE5C;IAED,OAAO,CAAC,KAAK,CAAgC;IAC7C,IAAoB,IAAI,CAAC,KAAK,EAAE,4BAA4B,EAK3D;IACD,IAAW,IAAI,IAAI,4BAA4B,CAE9C;IAED,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA+C;IAClF,IAAoB,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAI7D;IAED,SAAgB,iBAAiB,EAAE,UAAU,CAAC,QAAQ,EAAE,CAAC,CAWvD;IAEF,OAAO,CAAC,oBAAoB,CAAgC;IAC5D,IAAoB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAI9D;IAES,UAAU,uDAA8D;IAE3E,SAAS;;;;;;;OAMb;IAEH,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAEpC;IACF,SAAgB,gBAAgB,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAW/D;IAEK,gBAAgB,UAAQ;IAE/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAsB;gBAGlC,EAAE,EAAE,WAAW,EACf,gBAAgB,EAAE,gBAAgB,EAClC,6BAA6B,EAAE,0BAA0B;IAGrE,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,OAAO,UAAQ,GAAG,IAAI;IAY9B,YAAY,IAAI,IAAI;IAwC3B,OAAO,CAAC,4BAA4B;yCAvJzB,iCAAiC;2CAAjC,iCAAiC;CAkK7C"}
@@ -1,39 +1,37 @@
1
1
  import { AfterViewInit, TemplateRef } from '@angular/core';
2
- import { DocumentenApiColumnService } from '../../services';
3
- import { ConfiguredColumn, DocumentenApiColumnModalType, DocumentenApiColumnModalTypeCloseEvent } from '../../models';
4
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
2
  import { ActivatedRoute } from '@angular/router';
6
- import { ActionItem, ColumnConfig, MoveRowEvent, PendingChangesComponent } from '@valtimo/components';
3
+ import { ActionItem, ColumnConfig } from '@valtimo/components';
4
+ import { BehaviorSubject, Observable } from 'rxjs';
5
+ import { ConfiguredColumn, DocumentenApiColumnModalType, DocumentenApiColumnModalTypeCloseEvent } from '../../models';
6
+ import { DocumentenApiColumnService } from '../../services';
7
7
  import * as i0 from "@angular/core";
8
- export declare class DocumentenApiColumnsComponent extends PendingChangesComponent implements AfterViewInit {
8
+ export declare class DocumentenApiColumnsComponent implements AfterViewInit {
9
9
  private readonly route;
10
10
  private readonly zgwDocumentColumnService;
11
- colorColumnTemplate: TemplateRef<any>;
11
+ readonly columnKeyTemplate: TemplateRef<any>;
12
+ readonly defaultSortTemplate: TemplateRef<any>;
12
13
  private readonly _reload$;
13
14
  private readonly _documentDefinitionName$;
14
15
  get documentDefinitionName$(): Observable<string>;
15
16
  readonly loading$: BehaviorSubject<boolean>;
16
- readonly usedKeys$: BehaviorSubject<string[]>;
17
- private _documentStatuses;
18
- readonly documentStatuses$: Observable<ConfiguredColumn[]>;
19
- readonly fields$: BehaviorSubject<ColumnConfig[]>;
17
+ readonly configuredColumns$: Observable<ConfiguredColumn[]>;
18
+ readonly configurableColumns$: Observable<ConfiguredColumn[]>;
19
+ fields: ColumnConfig[];
20
20
  readonly ACTION_ITEMS: ActionItem[];
21
21
  readonly CARBON_THEME = "g10";
22
- readonly statusModalType$: BehaviorSubject<DocumentenApiColumnModalType>;
23
- readonly prefillStatus$: BehaviorSubject<ConfiguredColumn>;
22
+ readonly columnModalType$: BehaviorSubject<DocumentenApiColumnModalType>;
23
+ readonly prefillColumn$: BehaviorSubject<ConfiguredColumn>;
24
24
  readonly columnToUpdate$: BehaviorSubject<ConfiguredColumn>;
25
- readonly showDisableModal$: Subject<boolean>;
25
+ readonly showDeleteModal$: BehaviorSubject<boolean>;
26
26
  constructor(route: ActivatedRoute, zgwDocumentColumnService: DocumentenApiColumnService);
27
27
  ngAfterViewInit(): void;
28
- openDeleteModal(status: ConfiguredColumn): void;
29
- openEditModal(status: ConfiguredColumn): void;
28
+ openDeleteModal(column: ConfiguredColumn): void;
29
+ openEditModal(column: ConfiguredColumn): void;
30
30
  openAddModal(): void;
31
- closeModal(closeModalEvent: DocumentenApiColumnModalTypeCloseEvent): void;
32
- confirmDeleteStatus(status: ConfiguredColumn): void;
33
- onMoveRowClick(event: MoveRowEvent): void;
31
+ onCloseModal(closeModalEvent: DocumentenApiColumnModalTypeCloseEvent): void;
32
+ confirmDeleteStatus(column: ConfiguredColumn, definitionName: string): void;
33
+ onItemsReordered(definitionName: string, columns: ConfiguredColumn[]): void;
34
34
  private reload;
35
- private swapStatuses;
36
- private initFields;
37
35
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentenApiColumnsComponent, never>;
38
36
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiColumnsComponent, "valtimo-documenten-api-columns", never, {}, {}, never, never, true, never>;
39
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"documenten-api-columns.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-columns/documenten-api-columns.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAGb,WAAW,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAC,0BAA0B,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC5B,sCAAsC,EACvC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,eAAe,EAIf,UAAU,EACV,OAAO,EAGR,MAAM,MAAM,CAAC;AACd,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,UAAU,EAEV,YAAY,EAGZ,YAAY,EACZ,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;;AAM7B,qBAgBa,6BACX,SAAQ,uBACR,YAAW,aAAa;IAgEtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,wBAAwB;IA/DT,mBAAmB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAExE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmD;IAE5E,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAGvC;IAEF,IAAW,uBAAuB,IAAI,UAAU,CAAC,MAAM,CAAC,CAEvD;IAED,SAAgB,QAAQ,2BAAsC;IAE9D,SAAgB,SAAS,4BAAqC;IAE9D,OAAO,CAAC,iBAAiB,CAA0B;IAEnD,SAAgB,iBAAiB,EAAE,UAAU,CAAC,gBAAgB,EAAE,CAAC,CAiB/D;IAEF,SAAgB,OAAO,kCAA2C;IAElE,SAAgB,YAAY,EAAE,UAAU,EAAE,CAWxC;IAEF,SAAgB,YAAY,SAAS;IAErC,SAAgB,gBAAgB,gDAA+D;IAC/F,SAAgB,cAAc,oCAAoD;IAElF,SAAgB,eAAe,oCAAoD;IACnF,SAAgB,iBAAiB,mBAA0B;gBAGxC,KAAK,EAAE,cAAc,EACrB,wBAAwB,EAAE,0BAA0B;IAgBhE,eAAe,IAAI,IAAI;IAIvB,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAK/C,aAAa,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAK7C,YAAY,IAAI,IAAI;IAIpB,UAAU,CAAC,eAAe,EAAE,sCAAsC,GAAG,IAAI;IAQzE,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAYnD,cAAc,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI;IAsBhD,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,UAAU;yCA9JP,6BAA6B;2CAA7B,6BAA6B;CAuLzC"}
1
+ {"version":3,"file":"documenten-api-columns.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-columns/documenten-api-columns.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,aAAa,EAGb,WAAW,EAEZ,MAAM,eA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K/C,aAAa,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI;IAK7C,YAAY,IAAI,IAAI;IAKpB,YAAY,CAAC,eAAe,EAAE,sCAAsC,GAAG,IAAI;IAM3E,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI;IAM3E,gBAAgB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAMlF,OAAO,CAAC,MAAM;yCAjIH,6BAA6B;2CAA7B,6BAA6B;CAoIzC"}
@@ -1,17 +1,17 @@
1
- import { AfterViewInit, ElementRef, OnInit, TemplateRef } from '@angular/core';
1
+ import { ElementRef, OnInit, TemplateRef } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
- import { ActionItem, ColumnConfig, DocumentenApiMetadata } from '@valtimo/components';
4
+ import { ActionItem, ColumnConfig, DocumentenApiMetadata, SortState } from '@valtimo/components';
5
5
  import { ConfigService } from '@valtimo/config';
6
- import { FileSortService } from '@valtimo/document';
7
6
  import { DownloadService, UploadProviderService } from '@valtimo/resource';
8
7
  import { UserProviderService } from '@valtimo/security';
9
8
  import { IconService } from 'carbon-components-angular';
10
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
11
- import { DocumentenApiRelatedFile, DocumentenApiRelatedFileListItem } from '../../models';
9
+ import { BehaviorSubject, Observable, ReplaySubject, Subject } from 'rxjs';
10
+ import { DocumentenApiFilterModel, DocumentenApiRelatedFile, SupportedDocumentenApiFeatures } from '../../models';
11
+ import { DocumentenApiColumnService, DocumentenApiVersionService } from '../../services';
12
12
  import { DocumentenApiDocumentService } from '../../services/documenten-api-document.service';
13
13
  import * as i0 from "@angular/core";
14
- export declare class DossierDetailTabDocumentenApiDocumentsComponent implements OnInit, AfterViewInit {
14
+ export declare class DossierDetailTabDocumentenApiDocumentsComponent implements OnInit {
15
15
  private readonly route;
16
16
  private readonly router;
17
17
  private readonly uploadProviderService;
@@ -19,47 +19,65 @@ export declare class DossierDetailTabDocumentenApiDocumentsComponent implements
19
19
  private readonly translateService;
20
20
  private readonly configService;
21
21
  private readonly userProviderService;
22
- private readonly fileSortService;
23
22
  private readonly iconService;
24
23
  private readonly documentenApiDocumentService;
24
+ private readonly documentenApiColumnService;
25
+ private readonly documentenApiVersionService;
25
26
  fileInput: ElementRef;
26
- sizeTemplate: TemplateRef<any>;
27
- fields: ColumnConfig[];
28
- actionItems: ActionItem[];
29
- fieldsConfig: string[];
27
+ translationTemplate: TemplateRef<any>;
30
28
  private readonly _documentDefinitionName$;
31
- private readonly _documentId$;
29
+ readonly supportedDocumentenApiFeatures$: BehaviorSubject<SupportedDocumentenApiFeatures>;
30
+ private readonly _supportedDocumentenApiFeatures$;
31
+ readonly fields$: Observable<ColumnConfig[]>;
32
+ document: DocumentenApiRelatedFile;
33
+ actionItems: ActionItem[];
34
+ readonly documentDefinitionName$: Observable<string>;
35
+ readonly documentId$: Observable<string>;
36
+ readonly initialSortState$: Observable<SortState | null>;
32
37
  isAdmin: boolean;
33
38
  showZaakLinkWarning: boolean;
34
39
  uploadProcessLinkedSet: boolean;
35
40
  uploadProcessLinked: boolean;
41
+ isEditMode$: BehaviorSubject<boolean>;
36
42
  readonly acceptedFiles: string | null;
37
43
  readonly maxFileSize: number;
38
44
  readonly fileToBeUploaded$: BehaviorSubject<File>;
39
- readonly hideModal$: Subject<null>;
40
45
  readonly modalDisabled$: BehaviorSubject<boolean>;
41
46
  readonly showModal$: Subject<null>;
47
+ readonly showUploadModal$: BehaviorSubject<boolean>;
48
+ readonly showDeleteConfirmationModal$: BehaviorSubject<boolean>;
42
49
  readonly uploading$: BehaviorSubject<boolean>;
43
- readonly loading$: BehaviorSubject<boolean>;
50
+ private readonly _itemsLoading$;
51
+ readonly fieldsLoading$: BehaviorSubject<boolean>;
52
+ readonly loading$: Observable<boolean>;
53
+ readonly filter$: ReplaySubject<DocumentenApiFilterModel>;
44
54
  private readonly _refetch$;
45
- relatedFiles$: Observable<Array<DocumentenApiRelatedFileListItem>>;
46
- constructor(route: ActivatedRoute, router: Router, uploadProviderService: UploadProviderService, downloadService: DownloadService, translateService: TranslateService, configService: ConfigService, userProviderService: UserProviderService, fileSortService: FileSortService, iconService: IconService, documentenApiDocumentService: DocumentenApiDocumentService);
55
+ private readonly _sort$;
56
+ relatedFiles$: Observable<Array<DocumentenApiRelatedFile>>;
57
+ constructor(route: ActivatedRoute, router: Router, uploadProviderService: UploadProviderService, downloadService: DownloadService, translateService: TranslateService, configService: ConfigService, userProviderService: UserProviderService, iconService: IconService, documentenApiDocumentService: DocumentenApiDocumentService, documentenApiColumnService: DocumentenApiColumnService, documentenApiVersionService: DocumentenApiVersionService);
47
58
  ngOnInit(): void;
48
- ngAfterViewInit(): void;
49
- bytesToMegabytes(bytes: number): string;
59
+ onDeleteActionClick(item: DocumentenApiRelatedFile): void;
60
+ deleteDocument(): void;
61
+ bytesToMegabytes(bytes: number | undefined): string;
50
62
  getUploadButtonTooltip(): string;
51
63
  isUserAdmin(): void;
52
64
  metadataSet(metadata: DocumentenApiMetadata): void;
53
- onDeleteActionClick(item: DocumentenApiRelatedFile): void;
54
65
  onDownloadActionClick(file: DocumentenApiRelatedFile): void;
66
+ onEditMetadata(file: File): void;
67
+ closeMetadataModal(): void;
55
68
  onFileSelected(event: any): void;
56
69
  onNavigateToCaseAdminClick(): void;
57
70
  onRowClick(event: any): void;
58
71
  onUploadButtonClick(): void;
72
+ onFilterEvent(filter: DocumentenApiFilterModel | null): void;
73
+ onSortChanged(sortState: SortState): void;
59
74
  refetchDocuments(): void;
75
+ private editDisabled;
60
76
  private downloadDocument;
61
- private getFields;
77
+ private openQueryParamsSubscription;
78
+ private resetFileInput;
62
79
  private setUploadProcessLinked;
80
+ private setInitialFilterAndSort;
63
81
  static ɵfac: i0.ɵɵFactoryDeclaration<DossierDetailTabDocumentenApiDocumentsComponent, never>;
64
82
  static ɵcmp: i0.ɵɵComponentDeclaration<DossierDetailTabDocumentenApiDocumentsComponent, "valtimo-dossier-detail-tab-documenten-api-documents", never, {}, {}, never, never, true, never>;
65
83
  }
@@ -1 +1 @@
1
- {"version":3,"file":"documenten-api-documents.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-documents/documenten-api-documents.component.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,aAAa,EAAa,UAAU,EAAE,MAAM,EAAE,WAAW,EAAY,MAAM,eAAe,CAAC;AACnG,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,UAAU,EAEV,YAAY,EACZ,qBAAqB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAA2B,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAEhF,OAAO,EAAC,eAAe,EAAiB,UAAU,EAAM,OAAO,EAAC,MAAM,MAAM,CAAC;AAE7E,OAAO,EAAC,wBAAwB,EAAE,gCAAgC,EAAC,MAAM,cAAc,CAAC;AACxF,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAC;;AAI5F,qBAca,+CAAgD,YAAW,MAAM,EAAE,aAAa;IAwGzF,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC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7E,QAAQ,IAAI,IAAI;IAOT,eAAe,IAAI,IAAI;IA4BvB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAWvC,sBAAsB,IAAI,MAAM;IAUhC,WAAW;IAWX,WAAW,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IAsBlD,mBAAmB,CAAC,IAAI,EAAE,wBAAwB,GAAG,IAAI;IAQzD,qBAAqB,CAAC,IAAI,EAAE,wBAAwB,GAAG,IAAI;IAI3D,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAKhC,0BAA0B,IAAI,IAAI;IAMlC,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAI5B,mBAAmB,IAAI,IAAI;IAI3B,gBAAgB,IAAI,IAAI;IAI/B,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,sBAAsB;yCA5PnB,+CAA+C;2CAA/C,+CAA+C;CA2Q3D"}
1
+ {"version":3,"file":"documenten-api-documents.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-documents/documenten-api-documents.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,UAAU,EAAE,MAAM,EAAE,WAAW,EAAY,MAAM,eAAe,CAAC;AACpF,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAkB,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACtE,OAAO,EACL,UAAU,EAEV,YAAY,EAEZ,qBAAqB,EACrB,SAAS,EAEV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,eAAe,EAAE,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAyC,WAAW,EAAC,M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AAG,MAAM;IAanD,sBAAsB,IAAI,MAAM;IAUhC,WAAW;IAWX,WAAW,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IA6BlD,qBAAqB,CAAC,IAAI,EAAE,wBAAwB,GAAG,IAAI;IAI3D,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAMhC,kBAAkB,IAAI,IAAI;IAI1B,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAOhC,0BAA0B,IAAI,IAAI;IAMlC,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAI5B,mBAAmB,IAAI,IAAI;IAI3B,aAAa,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI,GAAG,IAAI;IAI5D,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAUzC,gBAAgB,IAAI,IAAI;IAI/B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,2BAA2B;IAanC,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,sBAAsB;IAgB9B,OAAO,CAAC,uBAAuB;yCA1WpB,+CAA+C;2CAA/C,+CAA+C;CAwX3D"}
@@ -0,0 +1,47 @@
1
+ import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FormBuilder } from '@angular/forms';
3
+ import { ActivatedRoute } from '@angular/router';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import { DocumentService } from '@valtimo/document';
6
+ import { DatePicker, IconService, ListItem } from 'carbon-components-angular';
7
+ import { Observable } from 'rxjs';
8
+ import { DocumentenApiFilterModel } from '../../models';
9
+ import { DocumentenApiTagService } from '../../services';
10
+ import * as i0 from "@angular/core";
11
+ export declare class DocumentenApiFilterComponent implements OnInit, OnDestroy, AfterViewInit {
12
+ private readonly documentService;
13
+ private readonly fb;
14
+ private readonly iconService;
15
+ private readonly route;
16
+ private readonly translateService;
17
+ private readonly documentenApiTagService;
18
+ readonly creationDateFromPicker: DatePicker;
19
+ readonly creationDateToPicker: DatePicker;
20
+ filterEvent: EventEmitter<DocumentenApiFilterModel>;
21
+ private readonly _subscriptions;
22
+ private readonly _confidentialityLevels;
23
+ private readonly _filter$;
24
+ readonly confidentialityLevels$: Observable<ListItem[]>;
25
+ readonly informationObjectTypes$: Observable<ListItem[]>;
26
+ readonly tags$: Observable<ListItem[]>;
27
+ readonly formGroup: import("@angular/forms").FormGroup<{
28
+ auteur: import("@angular/forms").FormControl<string>;
29
+ vertrouwelijkHeidaanduiding: import("@angular/forms").FormControl<{}>;
30
+ creatiedatumFrom: import("@angular/forms").FormControl<string>;
31
+ creatiedatumTo: import("@angular/forms").FormControl<string>;
32
+ informatieObjectType: import("@angular/forms").FormControl<{}>;
33
+ trefwoorden: import("@angular/forms").FormControl<any[]>;
34
+ titel: import("@angular/forms").FormControl<string>;
35
+ }>;
36
+ constructor(documentService: DocumentService, fb: FormBuilder, iconService: IconService, route: ActivatedRoute, translateService: TranslateService, documentenApiTagService: DocumentenApiTagService);
37
+ ngOnInit(): void;
38
+ ngOnDestroy(): void;
39
+ ngAfterViewInit(): void;
40
+ resetFilter(): void;
41
+ onDateSelected(control: 'createdTo' | 'createdFrom', event: any): void;
42
+ private openFormValueSubscription;
43
+ private convertTrefwoordenParam;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<DocumentenApiFilterComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiFilterComponent, "valtimo-dossier-detail-tab-documenten-api-filter", never, {}, { "filterEvent": "filterEvent"; }, never, never, true, never>;
46
+ }
47
+ //# sourceMappingURL=documenten-api-filter.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documenten-api-filter.component.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/valtimo/zgw/src/lib/modules/documenten-api/components/documenten-api-filter/documenten-api-filter.component.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAGb,YAAY,EACZ,SAAS,EACT,MAAM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AGgB,eAAe,EAAE,eAAe,EAChC,EAAE,EAAE,WAAW,EACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,cAAc,EACrB,gBAAgB,EAAE,gBAAgB,EAClC,uBAAuB,EAAE,uBAAuB;IAK5D,QAAQ,IAAI,IAAI;IAIhB,WAAW,IAAI,IAAI;IAInB,eAAe,IAAI,IAAI;IAiBvB,WAAW,IAAI,IAAI;IAMnB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,aAAa,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAS7E,OAAO,CAAC,yBAAyB;IA8BjC,OAAO,CAAC,uBAAuB;yCA7KpB,4BAA4B;2CAA5B,4BAA4B;CAsLxC"}
@@ -1,45 +1,59 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AdditionalDocumentDate, ConfidentialityLevel, DocumentenApiMetadata, DocumentLanguage, DocumentStatus } from '../../models';
3
3
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
4
4
  import { TranslateService } from '@ngx-translate/core';
5
5
  import { ActivatedRoute } from '@angular/router';
6
6
  import { DocumentService } from '@valtimo/document';
7
7
  import { KeycloakService } from 'keycloak-angular';
8
- import { ModalService, SelectItem, ValtimoModalService, VModalComponent } from '@valtimo/components';
8
+ import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
9
+ import { ModalService, ValtimoModalService } from '@valtimo/components';
10
+ import { ListItem } from 'carbon-components-angular';
11
+ import { DocumentenApiDocumentService } from '../../services';
12
+ import { DocumentenApiTagService } from '../../services/documenten-api-tag.service';
9
13
  import * as i0 from "@angular/core";
10
- export declare class DocumentenApiMetadataModalComponent implements OnInit, OnDestroy {
11
- private readonly modalService;
12
- private readonly translateService;
14
+ export declare class DocumentenApiMetadataModalComponent implements OnInit, OnChanges, OnDestroy {
13
15
  private readonly route;
14
16
  private readonly documentService;
17
+ private readonly documentenApiDocumentService;
18
+ private readonly documentenApiTagService;
19
+ private readonly fb;
15
20
  private readonly keycloakService;
21
+ private readonly modalService;
22
+ private readonly translateService;
16
23
  private readonly valtimoModalService;
17
- documentenApiMetadataModal: VModalComponent;
18
- show$: Observable<null>;
19
- hide$: Observable<null>;
20
24
  disabled$: Observable<boolean>;
21
- file$: Observable<File>;
22
- documentTitle: string;
23
- disableDocumentTitle: boolean;
24
- filename: string;
25
- disableFilename: boolean;
25
+ file$: Observable<any>;
26
26
  author: string;
27
+ confidentialityLevel: string;
28
+ description: string;
27
29
  disableAuthor: boolean;
28
- status: string;
29
- disableStatus: boolean;
30
- language: string;
30
+ disableConfidentialityLevel: boolean;
31
+ disableDescription: boolean;
32
+ disableDocumentTitle: boolean;
33
+ disableDocumentType: boolean;
34
+ disableFilename: boolean;
31
35
  disableLanguage: boolean;
36
+ disableStatus: boolean;
37
+ documentTitle: string;
32
38
  documentType: string;
33
- disableDocumentType: boolean;
34
- description: string;
35
- disableDescription: boolean;
36
- confidentialityLevel: string;
37
- disableConfidentialityLevel: boolean;
38
- trefwoorden: boolean;
39
39
  disableTrefwoorden: boolean;
40
+ filename: string;
41
+ isEditMode: boolean;
42
+ language: string;
43
+ open: boolean;
44
+ status: string;
45
+ supportsTrefwoorden: boolean;
40
46
  metadata: EventEmitter<DocumentenApiMetadata>;
47
+ modalClose: EventEmitter<boolean>;
48
+ documentenApiMetadataForm: FormGroup;
49
+ get confidentialityLevelFormControl(): AbstractControl<string>;
50
+ get informatieobjecttypeFormControl(): AbstractControl<string>;
51
+ get languageFormControl(): AbstractControl<string>;
52
+ get statusFormControl(): AbstractControl<string>;
53
+ get tagFormControl(): AbstractControl<string[]>;
54
+ readonly isDefinitiveStatus$: BehaviorSubject<boolean>;
41
55
  readonly CONFIDENTIALITY_LEVELS: Array<ConfidentialityLevel>;
42
- readonly confidentialityLevelItems$: Observable<Array<SelectItem>>;
56
+ readonly confidentialityLevelItems$: Observable<Array<ListItem>>;
43
57
  readonly ADDITONAL_DOCUMENT_DATE_OPTIONS: Array<{
44
58
  value: AdditionalDocumentDate;
45
59
  translationKey: string;
@@ -49,27 +63,50 @@ export declare class DocumentenApiMetadataModalComponent implements OnInit, OnDe
49
63
  readonly STATUSES: Array<DocumentStatus>;
50
64
  readonly RECEIPT_STATUSES: Array<DocumentStatus>;
51
65
  readonly formData$: BehaviorSubject<DocumentenApiMetadata>;
52
- readonly statusItems$: Observable<Array<SelectItem>>;
66
+ readonly statusItems$: Observable<Array<ListItem>>;
67
+ readonly documentDefinitionName$: Observable<string>;
68
+ readonly tagItems$: Observable<Array<ListItem>>;
53
69
  readonly LANGUAGES: Array<DocumentLanguage>;
54
- readonly languageItems$: Observable<Array<SelectItem>>;
55
- readonly documentTypeItems$: Observable<Array<SelectItem>>;
56
- readonly showForm$: Observable<boolean>;
57
- readonly valid$: BehaviorSubject<boolean>;
70
+ languageItems$: Observable<Array<ListItem>>;
71
+ readonly documentTypeItems$: Observable<Array<ListItem>>;
58
72
  readonly userEmail$: Observable<string>;
59
- private showSubscription;
60
- private hideSubscription;
61
- constructor(modalService: ModalService, translateService: TranslateService, route: ActivatedRoute, documentService: DocumentService, keycloakService: KeycloakService, valtimoModalService: ValtimoModalService);
73
+ private readonly modalSize;
74
+ private _subscriptions;
75
+ private _fileSubscription;
76
+ constructor(route: ActivatedRoute, documentService: DocumentService, documentenApiDocumentService: DocumentenApiDocumentService, documentenApiTagService: DocumentenApiTagService, fb: FormBuilder, keycloakService: KeycloakService, modalService: ModalService, translateService: TranslateService, valtimoModalService: ValtimoModalService);
62
77
  ngOnInit(): void;
78
+ ngOnChanges(): void;
63
79
  ngOnDestroy(): void;
64
- hide(): void;
65
- cancel(): void;
80
+ languageSelected(event: {
81
+ item: {
82
+ id: string;
83
+ };
84
+ }): void;
85
+ tagsSelected(event: Array<ListItem>): void;
86
+ confidentialityLevelSelected(event: {
87
+ item: {
88
+ id: string;
89
+ };
90
+ }): void;
91
+ statusSelected(event: {
92
+ item: {
93
+ id: string;
94
+ };
95
+ }): void;
96
+ informatieobjecttypeSelected(event: {
97
+ item: {
98
+ id: string;
99
+ };
100
+ }): void;
101
+ prefillForm(file: any): void;
66
102
  save(): void;
67
- formValueChange(data: DocumentenApiMetadata): void;
68
- setAdditionalDate(value: AdditionalDocumentDate): void;
69
- private setValid;
70
- private openShowSubscription;
71
- private openHideSubscription;
103
+ closeModal(): void;
104
+ private clearForm;
105
+ private prefillFilenameAndAuthor;
106
+ private formatDate;
107
+ private openFileSubscription;
108
+ private setAdditionalDate;
72
109
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentenApiMetadataModalComponent, never>;
73
- static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiMetadataModalComponent, "valtimo-documenten-api-metadata-modal", never, { "show$": { "alias": "show$"; "required": false; }; "hide$": { "alias": "hide$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "file$": { "alias": "file$"; "required": false; }; "documentTitle": { "alias": "documentTitle"; "required": false; }; "disableDocumentTitle": { "alias": "disableDocumentTitle"; "required": false; }; "filename": { "alias": "filename"; "required": false; }; "disableFilename": { "alias": "disableFilename"; "required": false; }; "author": { "alias": "author"; "required": false; }; "disableAuthor": { "alias": "disableAuthor"; "required": false; }; "status": { "alias": "status"; "required": false; }; "disableStatus": { "alias": "disableStatus"; "required": false; }; "language": { "alias": "language"; "required": false; }; "disableLanguage": { "alias": "disableLanguage"; "required": false; }; "documentType": { "alias": "documentType"; "required": false; }; "disableDocumentType": { "alias": "disableDocumentType"; "required": false; }; "description": { "alias": "description"; "required": false; }; "disableDescription": { "alias": "disableDescription"; "required": false; }; "confidentialityLevel": { "alias": "confidentialityLevel"; "required": false; }; "disableConfidentialityLevel": { "alias": "disableConfidentialityLevel"; "required": false; }; "trefwoorden": { "alias": "trefwoorden"; "required": false; }; "disableTrefwoorden": { "alias": "disableTrefwoorden"; "required": false; }; }, { "metadata": "metadata"; }, never, never, true, never>;
110
+ static ɵcmp: i0.ɵɵComponentDeclaration<DocumentenApiMetadataModalComponent, "valtimo-documenten-api-metadata-modal", never, { "disabled$": { "alias": "disabled$"; "required": false; }; "file$": { "alias": "file$"; "required": false; }; "author": { "alias": "author"; "required": false; }; "confidentialityLevel": { "alias": "confidentialityLevel"; "required": false; }; "description": { "alias": "description"; "required": false; }; "disableAuthor": { "alias": "disableAuthor"; "required": false; }; "disableConfidentialityLevel": { "alias": "disableConfidentialityLevel"; "required": false; }; "disableDescription": { "alias": "disableDescription"; "required": false; }; "disableDocumentTitle": { "alias": "disableDocumentTitle"; "required": false; }; "disableDocumentType": { "alias": "disableDocumentType"; "required": false; }; "disableFilename": { "alias": "disableFilename"; "required": false; }; "disableLanguage": { "alias": "disableLanguage"; "required": false; }; "disableStatus": { "alias": "disableStatus"; "required": false; }; "documentTitle": { "alias": "documentTitle"; "required": false; }; "documentType": { "alias": "documentType"; "required": false; }; "disableTrefwoorden": { "alias": "disableTrefwoorden"; "required": false; }; "filename": { "alias": "filename"; "required": false; }; "isEditMode": { "alias": "isEditMode"; "required": false; }; "language": { "alias": "language"; "required": false; }; "open": { "alias": "open"; "required": false; }; "status": { "alias": "status"; "required": false; }; "supportsTrefwoorden": { "alias": "supportsTrefwoorden"; "required": false; }; }, { "metadata": "metadata"; "modalClose": "modalClose"; }, never, never, true, never>;
74
111
  }
75
112
  //# sourceMappingURL=documenten-api-metadata-modal.component.d.ts.map