@valtimo/dossier-management 10.1.0 → 10.2.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.
@@ -1,19 +1,90 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  import { ListField } from '@valtimo/components';
2
- import { Observable } from 'rxjs';
3
- import { CaseListColumnView, DocumentService } from '@valtimo/document';
3
+ import { ConfigService } from '@valtimo/config';
4
+ import { BehaviorSubject, Observable, Subject } from 'rxjs';
5
+ import { CaseListColumn, CaseListColumnView, DocumentService } from '@valtimo/document';
4
6
  import { ActivatedRoute } from '@angular/router';
5
7
  import { TranslateService } from '@ngx-translate/core';
8
+ import { ListColumnModal } from '../../../models';
9
+ import { FormControl, FormGroup } from '@angular/forms';
10
+ import { ListItem } from 'carbon-components-angular/dropdown/list-item.interface';
11
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
12
+ import { MultiInputValues } from '@valtimo/user-interface';
6
13
  import * as i0 from "@angular/core";
7
14
  export declare class DossierManagementListColumnsComponent {
8
15
  private readonly documentService;
9
16
  private readonly route;
10
17
  private readonly translateService;
18
+ private readonly configService;
19
+ private readonly sanitizer;
20
+ moveRowButtonsTemplateRef: TemplateRef<any>;
21
+ readonly downloadName$: BehaviorSubject<string>;
22
+ readonly downloadUrl$: BehaviorSubject<SafeUrl>;
11
23
  private readonly COLUMNS;
24
+ loadingCaseListColumns: boolean;
12
25
  readonly fields$: Observable<Array<ListField>>;
13
26
  readonly documentDefinitionName$: Observable<string>;
14
- readonly caseListColumns$: Observable<Array<CaseListColumnView>>;
15
- constructor(documentService: DocumentService, route: ActivatedRoute, translateService: TranslateService);
27
+ readonly disableInput$: BehaviorSubject<boolean>;
28
+ readonly hasEnvironmentConfig$: Observable<boolean>;
29
+ private cachedCaseListColumns;
30
+ private readonly refreshCaseListcolumns$;
31
+ private readonly caseListColumns$;
32
+ readonly translatedCaseListColumns$: Observable<Array<CaseListColumnView>>;
33
+ readonly currentModalType$: BehaviorSubject<ListColumnModal>;
34
+ readonly showModal$: BehaviorSubject<boolean>;
35
+ readonly modalShowing$: Observable<boolean>;
36
+ readonly INVALID_KEY = "invalid";
37
+ readonly formGroup: FormGroup<{
38
+ title: FormControl<string>;
39
+ key: FormControl<string>;
40
+ path: FormControl<string>;
41
+ dateFormat: FormControl<string>;
42
+ displayType: FormControl<{
43
+ key: string;
44
+ }>;
45
+ sortable: FormControl<boolean>;
46
+ defaultSort: FormControl<{
47
+ key: string;
48
+ }>;
49
+ enum: FormControl<any[]>;
50
+ }>;
51
+ readonly disableDefaultSort$: Observable<boolean | CaseListColumn>;
52
+ readonly DISPLAY_TYPES: Array<string>;
53
+ readonly showDateFormat$: Observable<boolean>;
54
+ readonly showEnum$: Observable<boolean>;
55
+ readonly isYesNo$: Observable<boolean>;
56
+ readonly selectedViewTypeItemIndex$: BehaviorSubject<number>;
57
+ readonly viewTypeItems$: Observable<Array<ListItem>>;
58
+ readonly selectedSortItemIndex$: BehaviorSubject<number>;
59
+ readonly sortItems$: Observable<Array<ListItem>>;
60
+ readonly validKey$: Observable<boolean>;
61
+ readonly valid$: Observable<boolean>;
62
+ readonly showDeleteModal$: Subject<boolean>;
63
+ readonly deleteRowIndex$: BehaviorSubject<number>;
64
+ readonly defaultEnumValues$: BehaviorSubject<MultiInputValues>;
65
+ constructor(documentService: DocumentService, route: ActivatedRoute, translateService: TranslateService, configService: ConfigService, sanitizer: DomSanitizer);
66
+ openModal(modalType: ListColumnModal): void;
67
+ closeModal(): void;
68
+ deleteRow(caseListColumnRowIndex: number, clickEvent: MouseEvent): void;
69
+ deleteRowConfirmation(caseListColumnRowIndex: number): void;
70
+ moveRow(caseListColumnRowIndex: number, moveUp: boolean, clickEvent: MouseEvent, documentDefinitionName: string): void;
71
+ saveCasListColumns(): void;
72
+ enumValueChange(value: Array<{
73
+ [key: string]: string;
74
+ }>): void;
75
+ columnRowClicked(row: {
76
+ key: string;
77
+ }): void;
78
+ private updateCaseListColumns;
79
+ private addColumn;
16
80
  private getDisplayTypeParametersView;
81
+ private updateColumn;
82
+ private setDownload;
83
+ private disableInput;
84
+ private enableInput;
85
+ private refreshCaseListColumns;
86
+ private resetFormGroup;
87
+ private mapFormValuesToColumn;
17
88
  static ɵfac: i0.ɵɵFactoryDeclaration<DossierManagementListColumnsComponent, never>;
18
89
  static ɵcmp: i0.ɵɵComponentDeclaration<DossierManagementListColumnsComponent, "valtimo-dossier-management-list-columns", never, {}, {}, never, never, false>;
19
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-management-list-columns.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dossier-management/src/lib/dossier-management-detail-container/tabs/dossier-management-list-columns/dossier-management-list-columns.component.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAc,UAAU,EAAY,MAAM,MAAM,CAAC;AACxD,OAAO,EAAC,kBAAkB,EAAyB,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;;AAErD,qBAKa,qCAAqC;IA4F9C,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IA7FnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CA2CtB;IAEF,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAU5C;IAEF,QAAQ,CAAC,uBAAuB,EAAE,UAAU,CAAC,MAAM,CAAC,CAGlD;IAEF,QAAQ,CAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CA0B5D;gBAGe,eAAe,EAAE,eAAe,EAChC,KAAK,EAAE,cAAc,EACrB,gBAAgB,EAAE,gBAAgB;IAGrD,OAAO,CAAC,4BAA4B;yCAjGzB,qCAAqC;2CAArC,qCAAqC;CAiHjD"}
1
+ {"version":3,"file":"dossier-management-list-columns.component.d.ts","sourceRoot":"","sources":["../../../../../../../projects/valtimo/dossier-management/src/lib/dossier-management-detail-container/tabs/dossier-management-list-columns/dossier-management-list-columns.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,WAAW,EAAY,MAAM,eAAe,CAAC;AAChE,OAAO,EAAC,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAmB,MAAM,iBAAiB,CAAC;AAChE,OAAO,EACL,eAAe,EAKf,UAAU,EAEV,OAAO,EAGR,MAAM,MAAM,CAAC;AACd,OAAO,EACL,cAAc,EACd,kBAAkB,EAElB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,WAAW,EAAE,SAAS,EAAa,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAC,QAAQ,EAAC,MAAM,wDAAwD,CAAC;AAEhF,OAAO,EAAC,YAAY,EAAE,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;;AAEzD,qBAKa,qCAAqC;IA2R9C,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,gBAAgB;IACjC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS;IA9RQ,yBAAyB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAChF,QAAQ,CAAC,aAAa,0BAAmC;IACzD,QAAQ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* as i19 from "@valtimo/user-interface";
21
+ import * as i20 from "carbon-components-angular";
21
22
  export declare class DossierManagementModule {
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<DossierManagementModule, never>;
23
- static ɵmod: i0.ɵɵNgModuleDeclaration<DossierManagementModule, [typeof i1.DossierManagementListComponent, typeof i2.DossierManagementDetailComponent, typeof i3.DossierManagementConnectModalComponent, typeof i4.DossierManagementRemoveModalComponent, typeof i5.DossierManagementUploadComponent, typeof i6.DossierManagementRolesComponent, typeof i7.DossierManagementLinkProcessComponent, typeof i8.DossierManagementSearchFieldsComponent, typeof i9.DossierManagementDetailContainerComponent, typeof i10.DossierManagementAssigneeComponent, typeof i11.DossierManagementListColumnsComponent], [typeof i12.CommonModule, typeof i13.WidgetModule, typeof i13.DropzoneModule, typeof i13.ListModule, typeof i14.DossierManagementRoutingModule, typeof i15.FormsModule, typeof i16.TranslateModule, typeof i13.ModalModule, typeof i17.ConfigModule, typeof i18.NgbTooltipModule, typeof i13.MultiselectDropdownModule, typeof i19.ParagraphModule, typeof i19.SelectModule, typeof i13.SpinnerModule, typeof i19.InputModule, typeof i19.SelectModule, typeof i19.FormModule], never>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DossierManagementModule, [typeof i1.DossierManagementListComponent, typeof i2.DossierManagementDetailComponent, typeof i3.DossierManagementConnectModalComponent, typeof i4.DossierManagementRemoveModalComponent, typeof i5.DossierManagementUploadComponent, typeof i6.DossierManagementRolesComponent, typeof i7.DossierManagementLinkProcessComponent, typeof i8.DossierManagementSearchFieldsComponent, typeof i9.DossierManagementDetailContainerComponent, typeof i10.DossierManagementAssigneeComponent, typeof i11.DossierManagementListColumnsComponent], [typeof i12.CommonModule, typeof i13.WidgetModule, typeof i13.DropzoneModule, typeof i13.ListModule, typeof i14.DossierManagementRoutingModule, typeof i15.FormsModule, typeof i16.TranslateModule, typeof i13.ModalModule, typeof i17.ConfigModule, typeof i18.NgbTooltipModule, typeof i13.MultiselectDropdownModule, typeof i19.ParagraphModule, typeof i19.SelectModule, typeof i13.SpinnerModule, typeof i19.InputModule, typeof i19.SelectModule, typeof i19.FormModule, typeof i20.NotificationModule, typeof i20.ButtonModule, typeof i20.IconModule, typeof i20.ModalModule, typeof i20.InputModule, typeof i15.ReactiveFormsModule, typeof i20.DropdownModule, typeof i20.CheckboxModule, typeof i19.TooltipIconModule, typeof i13.CarbonMultiInputModule, typeof i20.LoadingModule, typeof i20.LinkModule, typeof i13.ConfirmationModalModule], never>;
24
25
  static ɵinj: i0.ɵɵInjectorDeclaration<DossierManagementModule>;
25
26
  }
26
27
  //# sourceMappingURL=dossier-management.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dossier-management.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/dossier-management/src/lib/dossier-management.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA4CA,qBAmCa,uBAAuB;yCAAvB,uBAAuB;0CAAvB,uBAAuB;0CAAvB,uBAAuB;CAAG"}
1
+ {"version":3,"file":"dossier-management.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/dossier-management/src/lib/dossier-management.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AA+DA,qBAgDa,uBAAuB;yCAAvB,uBAAuB;0CAAvB,uBAAuB;0CAAvB,uBAAuB;CAAG"}
@@ -0,0 +1,2 @@
1
+ export * from './list-column.model';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dossier-management/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare type ListColumnModal = 'create' | 'edit';
2
+ export { ListColumnModal };
3
+ //# sourceMappingURL=list-column.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-column.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/dossier-management/src/lib/models/list-column.model.ts"],"names":[],"mappings":"AAAA,aAAK,eAAe,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEzC,OAAO,EAAC,eAAe,EAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo/dossier-management",
3
3
  "license": "EUPL-1.2",
4
- "version": "10.1.0",
4
+ "version": "10.2.1",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^14.2.5",
7
7
  "@angular/core": "^14.2.5"
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './lib/dossier-management.module';
2
2
  export * from './lib/dossier-management-list/dossier-management-list.component';
3
+ export * from './lib/models';
3
4
  //# sourceMappingURL=public-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dossier-management/src/public-api.ts"],"names":[],"mappings":"AAoBA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iEAAiE,CAAC"}
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dossier-management/src/public-api.ts"],"names":[],"mappings":"AAoBA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iEAAiE,CAAC;AAChF,cAAc,cAAc,CAAC"}