@hmcts/ccd-case-ui-toolkit 7.2.49-create-case-redirect → 7.2.49-srt-rc1
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/components/banners/notification-banner/notification-banner.component.mjs +4 -4
- package/esm2022/lib/components/form/date-input/date-input.component.mjs +56 -19
- package/esm2022/lib/components/header/header-bar/header-bar.component.mjs +5 -5
- package/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +3 -3
- package/esm2022/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.mjs +24 -3
- package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +8 -6
- package/esm2022/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +9 -20
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.mjs +9 -5
- package/esm2022/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.mjs +9 -5
- package/esm2022/lib/shared/components/case-timeline/case-timeline.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.mjs +9 -4
- package/esm2022/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.mjs +16 -3
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +28 -8
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.mjs +13 -9
- package/esm2022/lib/shared/components/case-viewer/case-review-specific-access-request/case-review-specific-access-request.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +41 -6
- package/esm2022/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.mjs +9 -5
- package/esm2022/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.mjs +9 -5
- package/esm2022/lib/shared/components/event-start/components/task-assigned/task-assigned.component.mjs +10 -6
- package/esm2022/lib/shared/components/event-start/components/task-conflict/task-conflict.component.mjs +3 -3
- package/esm2022/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.mjs +9 -5
- package/esm2022/lib/shared/components/event-start/event-guard/event-start.guard.mjs +3 -3
- package/esm2022/lib/shared/components/event-start/services/event-start-state-machine.service.mjs +6 -6
- package/esm2022/lib/shared/components/palette/address/write-address-field.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/case-file-view/case-file-view-field.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +9 -9
- package/esm2022/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +5 -4
- package/esm2022/lib/shared/components/palette/date/read-date-field.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +41 -10
- package/esm2022/lib/shared/components/palette/document/read-document-field.component.mjs +7 -7
- package/esm2022/lib/shared/components/palette/linked-cases/components/before-you-start/before-you-start.component.mjs +6 -6
- package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +5 -5
- package/esm2022/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-from-table.component.mjs +12 -12
- package/esm2022/lib/shared/components/palette/linked-cases/components/linked-cases-table/linked-cases-to-table.component.mjs +7 -7
- package/esm2022/lib/shared/components/palette/linked-cases/components/no-linked-cases/no-linked-cases.component.mjs +6 -6
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/linked-cases/read-linked-cases-field.component.mjs +7 -7
- package/esm2022/lib/shared/components/palette/organisation/write-organisation-field.component.mjs +5 -5
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +6 -2
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +71 -69
- package/esm2022/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.mjs +23 -19
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +5 -5
- package/esm2022/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +5 -5
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +5 -5
- package/esm2022/lib/shared/services/form/field-type-sanitiser.mjs +2 -1
- package/esm2022/lib/shared/services/form/form-value.service.mjs +58 -101
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +693 -542
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/components/form/date-input/date-input.component.d.ts +4 -0
- package/lib/components/form/date-input/date-input.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts +1 -0
- package/lib/shared/components/case-editor/case-edit-form/case-edit-form.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -4
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.d.ts +2 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-cancelled/case-event-completion-task-cancelled.component.d.ts.map +1 -1
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts +2 -0
- package/lib/shared/components/case-editor/case-event-completion/components/case-event-completion-task-reassigned/case-event-completion-task-reassigned.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-challenged-access-success/case-challenged-access-success.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts +1 -0
- package/lib/shared/components/case-viewer/case-event-trigger/case-event-trigger.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +1 -0
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts +2 -0
- package/lib/shared/components/case-viewer/case-review-specific-access-reject/case-review-specific-access-reject.component.d.ts.map +1 -1
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts +3 -2
- package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -1
- package/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.d.ts +2 -0
- package/lib/shared/components/event-start/components/multiple-tasks-exist/multiple-tasks-exist.component.d.ts.map +1 -1
- package/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.d.ts +2 -0
- package/lib/shared/components/event-start/components/no-tasks-available/no-tasks-available.component.d.ts.map +1 -1
- package/lib/shared/components/event-start/components/task-assigned/task-assigned.component.d.ts +2 -0
- package/lib/shared/components/event-start/components/task-assigned/task-assigned.component.d.ts.map +1 -1
- package/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.d.ts +2 -0
- package/lib/shared/components/event-start/components/task-unassigned/task-unassigned.component.d.ts.map +1 -1
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts +2 -2
- package/lib/shared/components/event-start/event-guard/event-start.guard.d.ts.map +1 -1
- package/lib/shared/components/event-start/services/event-start-state-machine.service.d.ts.map +1 -1
- package/lib/shared/components/palette/date/read-date-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts +2 -0
- package/lib/shared/components/palette/datetime-picker/datetime-picker.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts +2 -0
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts +2 -0
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts.map +1 -1
- package/lib/shared/services/form/field-type-sanitiser.d.ts +1 -0
- package/lib/shared/services/form/field-type-sanitiser.d.ts.map +1 -1
- package/lib/shared/services/form/form-value.service.d.ts +2 -100
- package/lib/shared/services/form/form-value.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,106 +3,6 @@ import { FieldTypeSanitiser } from './field-type-sanitiser';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FormValueService {
|
|
5
5
|
private readonly fieldTypeSanitiser;
|
|
6
|
-
/**
|
|
7
|
-
* Gets value of a field based on fieldKey which is a dot separated reference to value and collection index.
|
|
8
|
-
* There are two exceptions:
|
|
9
|
-
* 1) In case of a multiselect being identified as a leaf a '---LABEL' suffix is appended to the key and values of that key are returned
|
|
10
|
-
* form= { 'list': ['code1', 'code2'],
|
|
11
|
-
* 'list---LABEL': ['label1', 'label2'] },
|
|
12
|
-
* fieldKey=list,
|
|
13
|
-
* colIndex=0,
|
|
14
|
-
* value=label1, label2
|
|
15
|
-
* 2) In case of a collection of simple fields is identified as a leaf all values are joined seperated by a comma
|
|
16
|
-
* form= { 'collection': [{ 'value': 'value1' }, { 'value': 'value2' }] }
|
|
17
|
-
* fieldKey=collection
|
|
18
|
-
* colIndex=1
|
|
19
|
-
* value=value1, value2
|
|
20
|
-
*
|
|
21
|
-
* Other examples:
|
|
22
|
-
* 1) simple field reference: form={ 'PersonFirstName': 'John' }, fieldKey=PersonFirstName, value=John
|
|
23
|
-
* 2) complex field reference:
|
|
24
|
-
* form= { complex1': { 'simple11': 'value11', 'simple12': 'value12', 'complex2': { 'simple21': 'value21' } }},
|
|
25
|
-
* fieldKey=complex1.complex2.simple21
|
|
26
|
-
* colIndex=0,
|
|
27
|
-
* value=value21
|
|
28
|
-
* 3) complex field with collection field with complex field reference:
|
|
29
|
-
* form= { 'complex1': {
|
|
30
|
-
* 'collection1': [
|
|
31
|
-
* { 'value': {
|
|
32
|
-
* 'complex2': {
|
|
33
|
-
* 'simple1': 'value1',
|
|
34
|
-
* 'complex3': {
|
|
35
|
-
* 'complex4': {
|
|
36
|
-
* 'simple2': 'value12'
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* }
|
|
40
|
-
* }
|
|
41
|
-
* },
|
|
42
|
-
* { 'value': {
|
|
43
|
-
* 'complex2': {
|
|
44
|
-
* 'simple1': 'value2',
|
|
45
|
-
* 'complex3': {
|
|
46
|
-
* 'complex4': {
|
|
47
|
-
* 'simple2': 'value21'
|
|
48
|
-
* }
|
|
49
|
-
* }
|
|
50
|
-
* }
|
|
51
|
-
* }
|
|
52
|
-
* },
|
|
53
|
-
* { 'value': {
|
|
54
|
-
* 'complex2': {
|
|
55
|
-
* 'simple1': 'value3',
|
|
56
|
-
* 'complex3': {
|
|
57
|
-
* 'complex4': {
|
|
58
|
-
* 'simple2': 'value31'
|
|
59
|
-
* }
|
|
60
|
-
* }
|
|
61
|
-
* }
|
|
62
|
-
* }
|
|
63
|
-
* }
|
|
64
|
-
* ]}}
|
|
65
|
-
* fieldKey=complex1.collection1.complex2.complex3.complex4.simple2
|
|
66
|
-
* colIndex=2,
|
|
67
|
-
* value=value21
|
|
68
|
-
* 4) collection of complex types
|
|
69
|
-
* form= { 'collection1': [
|
|
70
|
-
* { 'value': {'complex1': {
|
|
71
|
-
* 'simple1': 'value11',
|
|
72
|
-
* 'complex2': {
|
|
73
|
-
* 'complex3': {
|
|
74
|
-
* 'simple2': 'value12'
|
|
75
|
-
* }
|
|
76
|
-
* }
|
|
77
|
-
* }}
|
|
78
|
-
* },
|
|
79
|
-
* { 'value': {'complex1': {
|
|
80
|
-
* 'simple1': 'value21',
|
|
81
|
-
* 'complex2': {
|
|
82
|
-
* 'complex3': {
|
|
83
|
-
* 'simple2': 'value22'
|
|
84
|
-
* }
|
|
85
|
-
* }
|
|
86
|
-
* }}
|
|
87
|
-
* },
|
|
88
|
-
* { 'value': {'complex1': {
|
|
89
|
-
* 'simple1': 'value31',
|
|
90
|
-
* 'complex2': {
|
|
91
|
-
* 'complex3': {
|
|
92
|
-
* 'simple2': 'value32'
|
|
93
|
-
* }
|
|
94
|
-
* }
|
|
95
|
-
* }}
|
|
96
|
-
* }
|
|
97
|
-
* ]}
|
|
98
|
-
* fieldKey=collection1.complex1.complex2.complex3.simple2
|
|
99
|
-
* colIndex=2
|
|
100
|
-
* value=value32
|
|
101
|
-
*
|
|
102
|
-
* If key is pointing at a complex or collection leaf (not simple, collection of simple or multiselect types) then undefined is returned.
|
|
103
|
-
* Also no key referring a leaf that is contained within collection will contain index number. The index is passed as an argument to the
|
|
104
|
-
* method.
|
|
105
|
-
*/
|
|
106
6
|
static getFieldValue(form: any, fieldKey: any, colIndex: any): any;
|
|
107
7
|
/**
|
|
108
8
|
* A recursive method to remove anything with a `---LABEL` suffix.
|
|
@@ -122,9 +22,11 @@ export declare class FormValueService {
|
|
|
122
22
|
private static clearOptionalEmpty;
|
|
123
23
|
constructor(fieldTypeSanitiser: FieldTypeSanitiser);
|
|
124
24
|
sanitise(rawValue: object): object;
|
|
25
|
+
sanitiseData(caseFields: CaseField[], rawValue: any): any;
|
|
125
26
|
sanitiseCaseReference(reference: string): string;
|
|
126
27
|
filterCurrentPageFields(caseFields: CaseField[], editForm: any): any;
|
|
127
28
|
sanitiseDynamicLists(caseFields: CaseField[], editForm: any): any;
|
|
29
|
+
sanitiseDateTimes(caseFields: CaseField[], rawValue: any): any;
|
|
128
30
|
private sanitiseObject;
|
|
129
31
|
private sanitiseArray;
|
|
130
32
|
private sanitiseValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-value.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-value.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;;AAE5D,qBACa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"form-value.service.d.ts","sourceRoot":"","sources":["../../../../../../projects/ccd-case-ui-toolkit/src/lib/shared/services/form/form-value.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;;AAE5D,qBACa,gBAAgB;IA0Ff,OAAO,CAAC,QAAQ,CAAC,kBAAkB;WAzFjC,aAAa,CAAC,IAAI,KAAA,EAAE,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAiBpD;;;OAGG;WACW,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAqBtD,OAAO,CAAC,MAAM,CAAC,UAAU;IAIzB,OAAO,CAAC,MAAM,CAAC,UAAU;IAIzB,OAAO,CAAC,MAAM,CAAC,OAAO;IAQtB,OAAO,CAAC,MAAM,CAAC,WAAW;IAkB1B;;;;;OAKG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;gBAOJ,kBAAkB,EAAE,kBAAkB;IAG5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAIlC,YAAY,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,QAAQ,EAAE,GAAG,GAAG,GAAG;IAOzD,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAShD,uBAA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