@hmcts/ccd-case-ui-toolkit 7.2.25 → 7.2.26-mid-event-callback
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/components/palette/palette.module.mjs +7 -2
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +51 -193
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +59 -6
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +39 -6
- package/esm2022/lib/shared/components/palette/query-management/constants/query-management.constants.mjs +7 -0
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +18 -9
- package/esm2022/lib/shared/components/palette/query-management/services/index.mjs +2 -1
- package/esm2022/lib/shared/components/palette/query-management/services/query-management.service.mjs +179 -0
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +585 -462
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +15 -13
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +24 -3
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +12 -3
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/constants/query-management.constants.d.ts +7 -0
- package/lib/shared/components/palette/query-management/constants/query-management.constants.d.ts.map +1 -0
- package/lib/shared/components/palette/query-management/services/index.d.ts +1 -0
- package/lib/shared/components/palette/query-management/services/index.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/services/query-management.service.d.ts +21 -0
- package/lib/shared/components/palette/query-management/services/query-management.service.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.module.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"palette.module.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/palette.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8RA,qBA+Ea,aAAa;yCAAb,aAAa;0CAAb,aAAa;0CAAb,aAAa;CACzB"}
|
|
@@ -3,13 +3,14 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { CaseEventTrigger, CaseView, ErrorMessage } from '../../../../../../../lib/shared/domain';
|
|
6
|
-
import { SessionStorageService } from '../../../../../services';
|
|
7
6
|
import { EventCompletionParams } from '../../../../case-editor/domain/event-completion-params.model';
|
|
8
7
|
import { CaseNotifier, CasesService, WorkAllocationService } from '../../../../case-editor/services';
|
|
9
|
-
import { CaseQueriesCollection, QueryCreateContext, QueryListItem } from '../../models';
|
|
8
|
+
import { CaseQueriesCollection, QmCaseQueriesCollection, QueryCreateContext, QueryListItem } from '../../models';
|
|
10
9
|
import { FormDocument } from '../../../../../../../lib/shared/domain/document';
|
|
11
10
|
import { QualifyingQuestionService } from '../../services/qualifying-question.service';
|
|
12
11
|
import { Task } from '../../../../../domain/work-allocation/Task';
|
|
12
|
+
import { QueryManagementService } from '../../services/query-management.service';
|
|
13
|
+
import { AlertService, ErrorNotifierService } from '../../../../../services';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy {
|
|
15
16
|
private readonly route;
|
|
@@ -17,20 +18,27 @@ export declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy
|
|
|
17
18
|
private readonly casesService;
|
|
18
19
|
private readonly caseNotifier;
|
|
19
20
|
private readonly workAllocationService;
|
|
20
|
-
private readonly sessionStorageService;
|
|
21
21
|
private readonly qualifyingQuestionService;
|
|
22
|
+
private queryManagementService;
|
|
23
|
+
private readonly errorNotifierService;
|
|
24
|
+
private readonly alertService;
|
|
22
25
|
private readonly RAISE_A_QUERY_EVENT_TRIGGER_ID;
|
|
23
26
|
private readonly RESPOND_TO_QUERY_EVENT_TRIGGER_ID;
|
|
24
27
|
private readonly CASE_QUERIES_COLLECTION_ID;
|
|
28
|
+
static readonly TRIGGER_TEXT_CONTINUE = "Ignore Warning and Continue";
|
|
29
|
+
static readonly TRIGGER_TEXT_START = "Continue";
|
|
25
30
|
readonly FIELD_TYPE_COMPLEX = "Complex";
|
|
26
31
|
readonly DISPLAY_CONTEXT_READONLY = "READONLY";
|
|
27
32
|
readonly QM_SELECT_FIRST_COLLECTION = "selectFirstCollection";
|
|
28
33
|
readonly QM_COLLECTION_PROMPT = "promptQmCollection";
|
|
29
34
|
readonly CIVIL_JURISDICTION = "CIVIL";
|
|
35
|
+
triggerTextStart: string;
|
|
36
|
+
triggerTextIgnoreWarnings: string;
|
|
30
37
|
formGroup: FormGroup;
|
|
31
38
|
queryItem: QueryListItem;
|
|
32
39
|
queryCreateContext: QueryCreateContext;
|
|
33
40
|
eventData: CaseEventTrigger | null;
|
|
41
|
+
qmCaseQueriesCollectionData: QmCaseQueriesCollection;
|
|
34
42
|
backClicked: EventEmitter<boolean>;
|
|
35
43
|
querySubmitted: EventEmitter<boolean>;
|
|
36
44
|
callbackConfirmationMessage: EventEmitter<{
|
|
@@ -51,9 +59,10 @@ export declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy
|
|
|
51
59
|
filteredTasks: Task[];
|
|
52
60
|
readyToSubmit: boolean;
|
|
53
61
|
isSubmitting: boolean;
|
|
62
|
+
messgaeId: string;
|
|
54
63
|
callbackErrorsSubject: Subject<any>;
|
|
55
64
|
error: any;
|
|
56
|
-
constructor(route: ActivatedRoute, router: Router, casesService: CasesService, caseNotifier: CaseNotifier, workAllocationService: WorkAllocationService,
|
|
65
|
+
constructor(route: ActivatedRoute, router: Router, casesService: CasesService, caseNotifier: CaseNotifier, workAllocationService: WorkAllocationService, qualifyingQuestionService: QualifyingQuestionService, queryManagementService: QueryManagementService, errorNotifierService: ErrorNotifierService, alertService: AlertService);
|
|
57
66
|
ngOnInit(): void;
|
|
58
67
|
ngOnDestroy(): void;
|
|
59
68
|
goBack(): void;
|
|
@@ -61,17 +70,10 @@ export declare class QueryCheckYourAnswersComponent implements OnInit, OnDestroy
|
|
|
61
70
|
private createEvent;
|
|
62
71
|
private finaliseSubmission;
|
|
63
72
|
private handleError;
|
|
64
|
-
private generateCaseQueriesCollectionData;
|
|
65
|
-
setCaseQueriesCollectionData(): void;
|
|
66
|
-
private extractCaseQueryId;
|
|
67
|
-
private setMessageFieldId;
|
|
68
|
-
private isNewQueryContext;
|
|
69
|
-
private handleMultipleCollections;
|
|
70
|
-
private getCaseQueriesCollectionFieldOrderFromWizardPages;
|
|
71
|
-
private getCollectionSelectionMethod;
|
|
72
73
|
private getDocumentAttachments;
|
|
73
74
|
isServiceErrorFound(error: any): boolean;
|
|
75
|
+
setCaseQueriesCollectionData(): void;
|
|
74
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryCheckYourAnswersComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueryCheckYourAnswersComponent, "ccd-query-check-your-answers", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "queryItem": { "alias": "queryItem"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; }, { "backClicked": "backClicked"; "querySubmitted": "querySubmitted"; "callbackConfirmationMessage": "callbackConfirmationMessage"; }, never, never, false, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueryCheckYourAnswersComponent, "ccd-query-check-your-answers", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "queryItem": { "alias": "queryItem"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; "qmCaseQueriesCollectionData": { "alias": "qmCaseQueriesCollectionData"; "required": false; }; }, { "backClicked": "backClicked"; "querySubmitted": "querySubmitted"; "callbackConfirmationMessage": "callbackConfirmationMessage"; }, never, never, false, never>;
|
|
76
78
|
}
|
|
77
79
|
//# sourceMappingURL=query-check-your-answers.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-check-your-answers.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAc,OAAO,EAAgB,MAAM,MAAM,CAAC;AAEzD,OAAO,EACL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"query-check-your-answers.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAc,OAAO,EAAgB,MAAM,MAAM,CAAC;AAEzD,OAAO,EACL,gBAAgB,EAChB,QAAQ,EAER,YAAY,EAEb,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACrG,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAEjH,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,IAAI,EAAE,MAAM,4CAA4C,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EACL,YAAY,EACZ,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;;AAEjC,qBAKa,8BAA+B,YAAW,MAAM,EAAE,SAAS;IAiDpE,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IACtC,OAAO,CAAC,QAAQ,CAAC,yBAAyB;IAC1C,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAxD/B,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAA+B;IAC9E,OAAO,CAAC,QAAQ,CAAC,iCAAiC,CAAiC;IACnF,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAA2B;IAEtE,gBAAuB,qBAAqB,iCAAiC;IAC7E,gBAAuB,kBAAkB,cAAc;IAEvD,SAAgB,kBAAkB,aAAa;IAC/C,SAAgB,wBAAwB,cAAc;IACtD,SAAgB,0BAA0B,2BAA2B;IACrE,SAAgB,oBAAoB,wBAAwB;IAC5D,SAAgB,kBAAkB,WAAW;IAEtC,gBAAgB,SAAqD;IACrE,yBAAyB,SAAwD;IAExE,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,aAAa,CAAC;IACzB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAC1C,2BAA2B,EAAE,uBAAuB,CAAC;IACpD,WAAW,wBAA+B;IAC1C,cAAc,wBAA+B;IAC7C,2BAA2B;;OAAiD;IAE7F,OAAO,CAAC,eAAe,CAAkB;IAClC,WAAW,EAAE,QAAQ,CAAC;IAC7B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,uBAAuB,CAAe;IAC9C,OAAO,CAAC,uBAAuB,CAAe;IAEvC,sBAAsB,4BAAsB;IAC5C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,YAAY,EAAE,CAAC;IAE5B,aAAa,EAAE,YAAY,EAAE,CAAM;IACnC,aAAa,EAAE,IAAI,EAAE,CAAM;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,OAAO,CAAS;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAiB;IAEpD,KAAK,EAAE,GAAG,CAAC;gBAGC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,qBAAqB,EAAE,qBAAqB,EAC5C,yBAAyB,EAAE,yBAAyB,EAC7D,sBAAsB,EAAE,sBAAsB,EACrC,oBAAoB,EAAE,oBAAoB,EAC1C,YAAY,EAAE,YAAY;IAGtC,QAAQ,IAAI,IAAI;IA+DhB,WAAW,IAAI,IAAI;IAMnB,MAAM,IAAI,IAAI;IAId,MAAM,IAAI,IAAI;IAqDrB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,sBAAsB;IAQvB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;IAIxC,4BAA4B,IAAI,IAAI;yCAhOhC,8BAA8B;2CAA9B,8BAA8B;CA4O1C"}
|
|
@@ -1,16 +1,37 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
1
2
|
import { FormGroup } from '@angular/forms';
|
|
2
3
|
import { RaiseQueryErrorMessage } from '../../../enums';
|
|
4
|
+
import { CaseEventData, CaseEventTrigger, CaseView } from '../../../../../../../../lib/shared/domain';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { QmCaseQueriesCollection, QueryCreateContext, QueryListItem } from '../../../models';
|
|
7
|
+
import { EventCompletionParams } from '../../../../../case-editor/domain/event-completion-params.model';
|
|
8
|
+
import { QueryManagementService } from '../../../services';
|
|
9
|
+
import { ActivatedRoute } from '@angular/router';
|
|
3
10
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class QueryWriteRaiseQueryComponent {
|
|
11
|
+
export declare class QueryWriteRaiseQueryComponent implements OnChanges {
|
|
12
|
+
private queryManagementService;
|
|
13
|
+
private readonly route;
|
|
5
14
|
formGroup: FormGroup;
|
|
6
15
|
submitted: boolean;
|
|
7
|
-
caseDetails:
|
|
16
|
+
caseDetails: CaseView;
|
|
8
17
|
showForm: boolean;
|
|
9
18
|
serviceMessage: string | null;
|
|
19
|
+
queryCreateContext: QueryCreateContext;
|
|
20
|
+
eventData: CaseEventTrigger | null;
|
|
21
|
+
queryItem: QueryListItem;
|
|
22
|
+
validate: (caseEventData: CaseEventData, pageId: string) => Observable<object>;
|
|
23
|
+
triggerSubmission: boolean;
|
|
24
|
+
queryDataCreated: EventEmitter<QmCaseQueriesCollection>;
|
|
10
25
|
raiseQueryErrorMessage: typeof RaiseQueryErrorMessage;
|
|
26
|
+
eventCompletionParams: EventCompletionParams;
|
|
27
|
+
messgaeId: string;
|
|
28
|
+
constructor(queryManagementService: QueryManagementService, route: ActivatedRoute);
|
|
29
|
+
ngOnChanges(): void;
|
|
11
30
|
onSubjectInput(): void;
|
|
12
31
|
getSubjectErrorMessage(): string;
|
|
32
|
+
setCaseQueriesCollectionData(): boolean;
|
|
33
|
+
private generateCaseQueriesCollectionData;
|
|
13
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryWriteRaiseQueryComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueryWriteRaiseQueryComponent, "ccd-query-write-raise-query", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "caseDetails": { "alias": "caseDetails"; "required": false; }; "showForm": { "alias": "showForm"; "required": false; }; "serviceMessage": { "alias": "serviceMessage"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueryWriteRaiseQueryComponent, "ccd-query-write-raise-query", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "caseDetails": { "alias": "caseDetails"; "required": false; }; "showForm": { "alias": "showForm"; "required": false; }; "serviceMessage": { "alias": "serviceMessage"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; "queryItem": { "alias": "queryItem"; "required": false; }; "validate": { "alias": "validate"; "required": false; }; "triggerSubmission": { "alias": "triggerSubmission"; "required": false; }; }, { "queryDataCreated": "queryDataCreated"; }, never, never, false, never>;
|
|
15
36
|
}
|
|
16
37
|
//# sourceMappingURL=query-write-raise-query.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-write-raise-query.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-write-raise-query.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAU,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACT,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,iEAAiE,CAAC;AACxG,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;;AAEjD,qBAIa,6BAA8B,YAAW,SAAS;IAmB3D,OAAO,CAAC,sBAAsB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAnBR,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,QAAQ,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAC1C,SAAS,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,KAAK,UAAU,CAAC,MAAM,CAAC,CAAC;IAC/E,iBAAiB,EAAE,OAAO,CAAC;IAE1B,gBAAgB,wCAAgD;IAE1E,sBAAsB,gCAA0B;IAChD,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,SAAS,EAAE,MAAM,CAAC;gBAGf,sBAAsB,EAAE,sBAAsB,EACrC,KAAK,EAAE,cAAc;IAGjC,WAAW,IAAI,IAAI;IAW1B,cAAc,IAAI,IAAI;IAQtB,sBAAsB,IAAI,MAAM;IAWzB,4BAA4B,IAAI,OAAO;IAgB9C,OAAO,CAAC,iCAAiC;yCArE9B,6BAA6B;2CAA7B,6BAA6B;CA6EzC"}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
|
+
import { CaseEventTrigger } from '../../../../../../../../lib/shared/domain';
|
|
4
5
|
import { CaseNotifier } from '../../../../../case-editor/services';
|
|
5
6
|
import { RaiseQueryErrorMessage } from '../../../enums';
|
|
6
|
-
import { CaseQueriesCollection, QueryCreateContext, QueryListItem } from '../../../models';
|
|
7
|
+
import { CaseQueriesCollection, QmCaseQueriesCollection, QueryCreateContext, QueryListItem } from '../../../models';
|
|
8
|
+
import { QueryManagementService } from '../../../services';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class QueryWriteRespondToQueryComponent implements OnInit, OnChanges {
|
|
9
11
|
private readonly caseNotifier;
|
|
10
12
|
private readonly route;
|
|
13
|
+
private queryManagementService;
|
|
11
14
|
queryItem: QueryListItem;
|
|
12
15
|
formGroup: FormGroup;
|
|
13
16
|
queryCreateContext: QueryCreateContext;
|
|
14
17
|
submitted: boolean;
|
|
15
18
|
caseQueriesCollections: CaseQueriesCollection[];
|
|
16
19
|
showForm: any;
|
|
20
|
+
triggerSubmission: boolean;
|
|
21
|
+
eventData: CaseEventTrigger | null;
|
|
22
|
+
queryDataCreated: EventEmitter<QmCaseQueriesCollection>;
|
|
17
23
|
hasRespondedToQueryTask: EventEmitter<boolean>;
|
|
18
24
|
readonly queryCreateContextEnum: typeof QueryCreateContext;
|
|
19
25
|
readonly raiseQueryErrorMessages: typeof RaiseQueryErrorMessage;
|
|
@@ -23,13 +29,16 @@ export declare class QueryWriteRespondToQueryComponent implements OnInit, OnChan
|
|
|
23
29
|
queryResponseStatus: string;
|
|
24
30
|
queryListData: QueryListItem | undefined;
|
|
25
31
|
hasRespondedToQuery: boolean;
|
|
32
|
+
messgaeId: string;
|
|
26
33
|
private static readonly QUERY_ITEM_RESPOND;
|
|
27
34
|
private static readonly QUERY_ITEM_FOLLOWUP;
|
|
28
|
-
constructor(caseNotifier: CaseNotifier, route: ActivatedRoute);
|
|
35
|
+
constructor(caseNotifier: CaseNotifier, route: ActivatedRoute, queryManagementService: QueryManagementService);
|
|
29
36
|
ngOnInit(): void;
|
|
30
37
|
ngOnChanges(): void;
|
|
31
38
|
hasResponded(value: boolean): void;
|
|
39
|
+
setCaseQueriesCollectionData(): boolean;
|
|
40
|
+
private generateCaseQueriesCollectionData;
|
|
32
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryWriteRespondToQueryComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QueryWriteRespondToQueryComponent, "ccd-query-write-respond-to-query", never, { "queryItem": { "alias": "queryItem"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "caseQueriesCollections": { "alias": "caseQueriesCollections"; "required": false; }; "showForm": { "alias": "showForm"; "required": false; }; }, { "hasRespondedToQueryTask": "hasRespondedToQueryTask"; }, never, never, false, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueryWriteRespondToQueryComponent, "ccd-query-write-respond-to-query", never, { "queryItem": { "alias": "queryItem"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "queryCreateContext": { "alias": "queryCreateContext"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "caseQueriesCollections": { "alias": "caseQueriesCollections"; "required": false; }; "showForm": { "alias": "showForm"; "required": false; }; "triggerSubmission": { "alias": "triggerSubmission"; "required": false; }; "eventData": { "alias": "eventData"; "required": false; }; }, { "queryDataCreated": "queryDataCreated"; "hasRespondedToQueryTask": "hasRespondedToQueryTask"; }, never, never, false, never>;
|
|
34
43
|
}
|
|
35
44
|
//# sourceMappingURL=query-write-respond-to-query.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-write-respond-to-query.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAiB,aAAa,EAAE,MAAM,iBAAiB,CAAC;;
|
|
1
|
+
{"version":3,"file":"query-write-respond-to-query.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EACL,gBAAgB,EACjB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,kBAAkB,EAAiB,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnI,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;;AAC3D,qBAMa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IA2B7D,OAAO,CAAC,QAAQ,CAAC,YAAY;IACvC,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,sBAAsB;IA5BhB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,SAAS,UAAS;IAClB,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,QAAQ,MAAC;IACT,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,gBAAgB,GAAG,IAAI,CAAQ;IAEzC,gBAAgB,wCAAgD;IAChE,uBAAuB,EAAE,YAAY,CAAC,OAAO,CAAC,CAAsB;IAErF,SAAgB,sBAAsB,4BAAsB;IAC5D,SAAgB,uBAAuB,gCAA0B;IAC1D,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,MAAC;IACZ,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;IAEzC,mBAAmB,EAAE,OAAO,CAAS;IACrC,SAAS,EAAE,MAAM,CAAC;IAEzB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAO;IACjD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAO;gBAErB,YAAY,EAAE,YAAY,EACpC,KAAK,EAAE,cAAc,EAC9B,sBAAsB,EAAE,sBAAsB;IAEjD,QAAQ,IAAI,IAAI;IAahB,WAAW,IAAI,IAAI;IAiDnB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAKlC,4BAA4B,IAAI,OAAO;IAgB9C,OAAO,CAAC,iCAAiC;yCAlH9B,iCAAiC;2CAAjC,iCAAiC;CA0H7C"}
|
package/lib/shared/components/palette/query-management/constants/query-management.constants.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const CASE_QUERIES_COLLECTION_ID = "CaseQueriesCollection";
|
|
2
|
+
export declare const FIELD_TYPE_COMPLEX = "Complex";
|
|
3
|
+
export declare const DISPLAY_CONTEXT_READONLY = "READONLY";
|
|
4
|
+
export declare const QM_SELECT_FIRST_COLLECTION = "selectFirstCollection";
|
|
5
|
+
export declare const QM_COLLECTION_PROMPT = "promptQmCollection";
|
|
6
|
+
export declare const CIVIL_JURISDICTION = "CIVIL";
|
|
7
|
+
//# sourceMappingURL=query-management.constants.d.ts.map
|
package/lib/shared/components/palette/query-management/constants/query-management.constants.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-management.constants.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/constants/query-management.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AACzD,eAAO,MAAM,kBAAkB,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { CaseEventTrigger, CaseView } from '../../../../../../lib/shared/domain';
|
|
3
|
+
import { QmCaseQueriesCollection, QueryCreateContext, QueryListItem, CaseQueriesCollection } from '../models';
|
|
4
|
+
import { SessionStorageService } from '../../../../services';
|
|
5
|
+
import { FormGroup } from '@angular/forms';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class QueryManagementService {
|
|
8
|
+
private readonly router;
|
|
9
|
+
private readonly sessionStorageService;
|
|
10
|
+
caseQueriesCollections: CaseQueriesCollection[];
|
|
11
|
+
fieldId: string;
|
|
12
|
+
constructor(router: Router, sessionStorageService: SessionStorageService);
|
|
13
|
+
generateCaseQueriesCollectionData(formGroup: FormGroup, queryCreateContext: QueryCreateContext, queryItem: QueryListItem, messageId?: string): QmCaseQueriesCollection;
|
|
14
|
+
setCaseQueriesCollectionData(eventData: CaseEventTrigger, queryCreateContext: QueryCreateContext, caseDetails: CaseView, messageId?: string): void;
|
|
15
|
+
private resolveFieldId;
|
|
16
|
+
private getCaseQueriesCollectionFieldOrderFromWizardPages;
|
|
17
|
+
private getCollectionSelectionMethod;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryManagementService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryManagementService>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=query-management.service.d.ts.map
|
package/lib/shared/components/palette/query-management/services/query-management.service.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-management.service.d.ts","sourceRoot":"","sources":["../../../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/query-management/services/query-management.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAa,gBAAgB,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAW7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;;AAE3C,qBAEa,sBAAsB;IAK/B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;IALjC,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,OAAO,EAAE,MAAM,CAAC;gBAGJ,MAAM,EAAE,MAAM,EACd,qBAAqB,EAAE,qBAAqB;IAGxD,iCAAiC,CACtC,SAAS,EAAE,SAAS,EACpB,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,aAAa,EACxB,SAAS,CAAC,EAAE,MAAM,GACjB,uBAAuB;IAoFnB,4BAA4B,CACjC,SAAS,EAAE,gBAAgB,EAC3B,kBAAkB,EAAE,kBAAkB,EACtC,WAAW,EAAE,QAAQ,EACrB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI;IAqBP,OAAO,CAAC,cAAc;IAyDtB,OAAO,CAAC,iDAAiD;IA0BzD,OAAO,CAAC,4BAA4B;yCA/MzB,sBAAsB;6CAAtB,sBAAsB;CAkNlC"}
|