@hmcts/ccd-case-ui-toolkit 5.0.47-fix-related-cases-tab → 5.0.48-fee-pay-props
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/bundles/hmcts-ccd-case-ui-toolkit.umd.js +83 -129
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
- package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
- package/esm2015/lib/app.config.js +1 -1
- package/esm2015/lib/shared/components/palette/base-field/abstract-form-field.component.js +11 -13
- package/esm2015/lib/shared/components/palette/base-field/payment-field.component.js +4 -1
- package/esm2015/lib/shared/components/palette/case-link/read-case-link-field.component.js +2 -3
- package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +41 -84
- package/esm2015/lib/shared/components/palette/palette.module.js +2 -2
- package/esm2015/lib/shared/components/palette/palette.service.js +3 -3
- package/esm2015/lib/shared/components/palette/payment/case-payment-history-viewer-field.component.js +3 -3
- package/esm2015/lib/shared/components/palette/waystopay/waystopay-field.component.js +4 -4
- package/esm2015/lib/shared/services/fields/fields.utils.js +2 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +76 -118
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/app.config.d.ts +2 -0
- package/lib/app.config.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts +1 -0
- package/lib/shared/components/palette/base-field/payment-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/read-case-link-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts +3 -6
- package/lib/shared/components/palette/case-link/write-case-link-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -119,14 +119,14 @@
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
var _c0$_ = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
122
|
-
var _c1$
|
|
122
|
+
var _c1$r = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
123
123
|
var FooterComponent = /** @class */ (function () {
|
|
124
124
|
function FooterComponent() {
|
|
125
125
|
}
|
|
126
126
|
return FooterComponent;
|
|
127
127
|
}());
|
|
128
128
|
FooterComponent.ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
129
|
-
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
129
|
+
FooterComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$r, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) {
|
|
130
130
|
if (rf & 1) {
|
|
131
131
|
i0__namespace.ɵɵprojectionDef(_c0$_);
|
|
132
132
|
i0__namespace.ɵɵelementStart(0, "footer", 0);
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
var _c0$Z = [[["", "headerNavigation", ""]]];
|
|
211
|
-
var _c1$
|
|
211
|
+
var _c1$q = ["[headerNavigation]"];
|
|
212
212
|
var HeaderBarComponent = /** @class */ (function () {
|
|
213
213
|
function HeaderBarComponent() {
|
|
214
214
|
this.signOutRequest = new i0.EventEmitter();
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
return HeaderBarComponent;
|
|
220
220
|
}());
|
|
221
221
|
HeaderBarComponent.ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
222
|
-
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
222
|
+
HeaderBarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$q, decls: 15, vars: 8, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) {
|
|
223
223
|
if (rf & 1) {
|
|
224
224
|
i0__namespace.ɵɵprojectionDef(_c0$Z);
|
|
225
225
|
i0__namespace.ɵɵelementStart(0, "header", 0);
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
})();
|
|
284
284
|
|
|
285
285
|
var _c0$Y = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
286
|
-
var _c1$
|
|
286
|
+
var _c1$p = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
287
287
|
var NavigationComponent = /** @class */ (function () {
|
|
288
288
|
function NavigationComponent() {
|
|
289
289
|
}
|
|
290
290
|
return NavigationComponent;
|
|
291
291
|
}());
|
|
292
292
|
NavigationComponent.ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
293
|
-
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
293
|
+
NavigationComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$p, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) {
|
|
294
294
|
if (rf & 1) {
|
|
295
295
|
i0__namespace.ɵɵprojectionDef(_c0$Y);
|
|
296
296
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
@@ -438,14 +438,14 @@
|
|
|
438
438
|
})();
|
|
439
439
|
|
|
440
440
|
var _c0$X = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
441
|
-
var _c1$
|
|
441
|
+
var _c1$o = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
442
442
|
var BodyComponent = /** @class */ (function () {
|
|
443
443
|
function BodyComponent() {
|
|
444
444
|
}
|
|
445
445
|
return BodyComponent;
|
|
446
446
|
}());
|
|
447
447
|
BodyComponent.ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
448
|
-
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
448
|
+
BodyComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$o, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) {
|
|
449
449
|
if (rf & 1) {
|
|
450
450
|
i0__namespace.ɵɵprojectionDef(_c0$X);
|
|
451
451
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1472,14 +1472,14 @@
|
|
|
1472
1472
|
})();
|
|
1473
1473
|
|
|
1474
1474
|
var _c0$U = function (a0) { return { "js-hidden": a0 }; };
|
|
1475
|
-
var _c1$
|
|
1475
|
+
var _c1$n = ["*"];
|
|
1476
1476
|
var TabComponent = /** @class */ (function () {
|
|
1477
1477
|
function TabComponent() {
|
|
1478
1478
|
}
|
|
1479
1479
|
return TabComponent;
|
|
1480
1480
|
}());
|
|
1481
1481
|
TabComponent.ɵfac = function TabComponent_Factory(t) { return new (t || TabComponent)(); };
|
|
1482
|
-
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$
|
|
1482
|
+
TabComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: TabComponent, selectors: [["cut-tab"]], inputs: { id: "id", title: "title", selected: "selected" }, ngContentSelectors: _c1$n, decls: 2, vars: 5, consts: [["role", "tabpanel", 1, "tabs-panel", 3, "id", "ngClass"]], template: function TabComponent_Template(rf, ctx) {
|
|
1483
1483
|
if (rf & 1) {
|
|
1484
1484
|
i0__namespace.ɵɵprojectionDef();
|
|
1485
1485
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -1511,7 +1511,7 @@
|
|
|
1511
1511
|
})();
|
|
1512
1512
|
|
|
1513
1513
|
var _c0$T = ["tab"];
|
|
1514
|
-
var _c1$
|
|
1514
|
+
var _c1$m = function () { return ["."]; };
|
|
1515
1515
|
var _c2$3 = function (a0) { return { "tabs-toggle-selected": a0 }; };
|
|
1516
1516
|
function TabsComponent_li_2_Template(rf, ctx) {
|
|
1517
1517
|
if (rf & 1) {
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
if (rf & 2) {
|
|
1527
1527
|
var panel_r1 = ctx.$implicit;
|
|
1528
1528
|
i0__namespace.ɵɵadvance(1);
|
|
1529
|
-
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$
|
|
1529
|
+
i0__namespace.ɵɵproperty("routerLink", i0__namespace.ɵɵpureFunction0(6, _c1$m))("fragment", panel_r1.id)("ngClass", i0__namespace.ɵɵpureFunction1(7, _c2$3, panel_r1.selected));
|
|
1530
1530
|
i0__namespace.ɵɵattribute("aria-controls", panel_r1.id)("aria-selected", panel_r1.selected);
|
|
1531
1531
|
i0__namespace.ɵɵadvance(2);
|
|
1532
1532
|
i0__namespace.ɵɵtextInterpolate(panel_r1.title);
|
|
@@ -3923,7 +3923,7 @@
|
|
|
3923
3923
|
if (!caseField) {
|
|
3924
3924
|
return false;
|
|
3925
3925
|
}
|
|
3926
|
-
return caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
3926
|
+
return caseField.field_type.collection_field_type.id === 'CaseLink';
|
|
3927
3927
|
};
|
|
3928
3928
|
FieldsUtils.cloneObject = function (obj) {
|
|
3929
3929
|
return Object.assign({}, obj);
|
|
@@ -4863,19 +4863,18 @@
|
|
|
4863
4863
|
return control;
|
|
4864
4864
|
};
|
|
4865
4865
|
AbstractFormFieldComponent.prototype.addControlToFormGroup = function (control, parent, replace) {
|
|
4866
|
-
if (
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4866
|
+
if (replace) {
|
|
4867
|
+
if (this.caseField.field_type && this.caseField.field_type.collection_field_type
|
|
4868
|
+
&& this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
4869
|
+
&& this.caseField.field_type.type === 'Complex' && /^-?\d+$/.test(this.caseField.id)) {
|
|
4870
|
+
parent.setControl('CaseReference', control['controls']['CaseReference']);
|
|
4871
|
+
}
|
|
4872
|
+
else {
|
|
4873
|
+
parent.setControl(this.caseField.id, control);
|
|
4874
|
+
}
|
|
4876
4875
|
}
|
|
4877
4876
|
else {
|
|
4878
|
-
parent.
|
|
4877
|
+
parent.addControl(this.caseField.id, control);
|
|
4879
4878
|
}
|
|
4880
4879
|
return control;
|
|
4881
4880
|
};
|
|
@@ -11696,7 +11695,7 @@
|
|
|
11696
11695
|
i0__namespace.ɵɵelementEnd();
|
|
11697
11696
|
}
|
|
11698
11697
|
}
|
|
11699
|
-
var _c1$
|
|
11698
|
+
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
11700
11699
|
var _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11701
11700
|
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11702
11701
|
if (rf & 1) {
|
|
@@ -11717,7 +11716,7 @@
|
|
|
11717
11716
|
}
|
|
11718
11717
|
if (rf & 2) {
|
|
11719
11718
|
var ctx_r2 = i0__namespace.ɵɵnextContext(2);
|
|
11720
|
-
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$
|
|
11719
|
+
i0__namespace.ɵɵproperty("id", ctx_r2.createElementId("postcodeLookup"))("ngClass", i0__namespace.ɵɵpureFunction1(7, _c1$l, ctx_r2.missingPostcode));
|
|
11721
11720
|
i0__namespace.ɵɵadvance(1);
|
|
11722
11721
|
i0__namespace.ɵɵproperty("for", ctx_r2.createElementId("postcodeInput"));
|
|
11723
11722
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -13008,8 +13007,7 @@
|
|
|
13008
13007
|
ReadCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13009
13008
|
return (this.caseField.field_type &&
|
|
13010
13009
|
this.caseField.field_type.type === 'Collection' &&
|
|
13011
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink'
|
|
13012
|
-
this.caseField.id === 'caseLinks');
|
|
13010
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13013
13011
|
};
|
|
13014
13012
|
return ReadCaseLinkFieldComponent;
|
|
13015
13013
|
}(AbstractFieldReadComponent));
|
|
@@ -13039,7 +13037,7 @@
|
|
|
13039
13037
|
var _c0$P = ["writeComplexFieldComponent"];
|
|
13040
13038
|
function WriteCaseLinkFieldComponent_div_1_span_2_Template(rf, ctx) {
|
|
13041
13039
|
if (rf & 1) {
|
|
13042
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13040
|
+
i0__namespace.ɵɵelementStart(0, "span", 6);
|
|
13043
13041
|
i0__namespace.ɵɵtext(1);
|
|
13044
13042
|
i0__namespace.ɵɵpipe(2, "ccdFieldLabel");
|
|
13045
13043
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -13052,7 +13050,7 @@
|
|
|
13052
13050
|
}
|
|
13053
13051
|
function WriteCaseLinkFieldComponent_div_1_span_3_Template(rf, ctx) {
|
|
13054
13052
|
if (rf & 1) {
|
|
13055
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13053
|
+
i0__namespace.ɵɵelementStart(0, "span", 7);
|
|
13056
13054
|
i0__namespace.ɵɵtext(1);
|
|
13057
13055
|
i0__namespace.ɵɵelementEnd();
|
|
13058
13056
|
}
|
|
@@ -13062,52 +13060,34 @@
|
|
|
13062
13060
|
i0__namespace.ɵɵtextInterpolate(ctx_r3.caseField.hint_text);
|
|
13063
13061
|
}
|
|
13064
13062
|
}
|
|
13065
|
-
function WriteCaseLinkFieldComponent_div_1_span_4_Template(rf, ctx) {
|
|
13066
|
-
if (rf & 1) {
|
|
13067
|
-
i0__namespace.ɵɵelementStart(0, "span", 10);
|
|
13068
|
-
i0__namespace.ɵɵtext(1);
|
|
13069
|
-
i0__namespace.ɵɵpipe(2, "ccdFirstError");
|
|
13070
|
-
i0__namespace.ɵɵelementEnd();
|
|
13071
|
-
}
|
|
13072
|
-
if (rf & 2) {
|
|
13073
|
-
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
13074
|
-
i0__namespace.ɵɵadvance(1);
|
|
13075
|
-
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r4.caseReferenceControl.errors, ctx_r4.caseField.label));
|
|
13076
|
-
}
|
|
13077
|
-
}
|
|
13078
|
-
var _c1$l = function (a0) { return { "form-group-error": a0 }; };
|
|
13079
13063
|
function WriteCaseLinkFieldComponent_div_1_Template(rf, ctx) {
|
|
13080
13064
|
if (rf & 1) {
|
|
13081
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13082
|
-
i0__namespace.ɵɵelementStart(1, "label",
|
|
13083
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span",
|
|
13065
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
13066
|
+
i0__namespace.ɵɵelementStart(1, "label", 2);
|
|
13067
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_1_span_2_Template, 3, 3, "span", 3);
|
|
13084
13068
|
i0__namespace.ɵɵelementEnd();
|
|
13085
|
-
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span",
|
|
13086
|
-
i0__namespace.ɵɵ
|
|
13087
|
-
i0__namespace.ɵɵelement(5, "input", 7);
|
|
13069
|
+
i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_div_1_span_3_Template, 2, 1, "span", 4);
|
|
13070
|
+
i0__namespace.ɵɵelement(4, "input", 5);
|
|
13088
13071
|
i0__namespace.ɵɵelementEnd();
|
|
13089
13072
|
}
|
|
13090
13073
|
if (rf & 2) {
|
|
13091
13074
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13092
|
-
i0__namespace.ɵɵproperty("formGroup", ctx_r0.caseLinkGroup)("ngClass", i0__namespace.ɵɵpureFunction1(8, _c1$l, !ctx_r0.caseReferenceControl.valid && (ctx_r0.caseReferenceControl.dirty || ctx_r0.caseReferenceControl.touched)));
|
|
13093
13075
|
i0__namespace.ɵɵadvance(1);
|
|
13094
|
-
i0__namespace.ɵɵproperty("for", ctx_r0.
|
|
13076
|
+
i0__namespace.ɵɵproperty("for", ctx_r0.id());
|
|
13095
13077
|
i0__namespace.ɵɵadvance(1);
|
|
13096
13078
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.label);
|
|
13097
13079
|
i0__namespace.ɵɵadvance(1);
|
|
13098
13080
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
13099
13081
|
i0__namespace.ɵɵadvance(1);
|
|
13100
|
-
i0__namespace.ɵɵproperty("
|
|
13101
|
-
i0__namespace.ɵɵadvance(1);
|
|
13102
|
-
i0__namespace.ɵɵproperty("id", ctx_r0.caseReferenceControl)("formControl", ctx_r0.caseReferenceControl);
|
|
13082
|
+
i0__namespace.ɵɵproperty("id", ctx_r0.id())("formControl", ctx_r0.caseReferenceControl);
|
|
13103
13083
|
}
|
|
13104
13084
|
}
|
|
13105
13085
|
function WriteCaseLinkFieldComponent_div_2_Template(rf, ctx) {
|
|
13106
13086
|
if (rf & 1) {
|
|
13107
|
-
var
|
|
13108
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13109
|
-
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases",
|
|
13110
|
-
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
13087
|
+
var _r5_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13088
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
13089
|
+
i0__namespace.ɵɵelementStart(1, "ccd-write-linked-cases", 8);
|
|
13090
|
+
i0__namespace.ɵɵlistener("onLinkedCasesSelected", function WriteCaseLinkFieldComponent_div_2_Template_ccd_write_linked_cases_onLinkedCasesSelected_1_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(); return ctx_r4.submitLinkedCases(); });
|
|
13111
13091
|
i0__namespace.ɵɵelementEnd();
|
|
13112
13092
|
i0__namespace.ɵɵelementEnd();
|
|
13113
13093
|
}
|
|
@@ -13127,72 +13107,32 @@
|
|
|
13127
13107
|
}
|
|
13128
13108
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
13129
13109
|
var e_1, _a;
|
|
13130
|
-
|
|
13131
|
-
this.
|
|
13132
|
-
if (!this.
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
}), true);
|
|
13137
|
-
}
|
|
13138
|
-
else {
|
|
13139
|
-
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
13140
|
-
CaseReference: new i2.FormControl(null, i2.Validators.required),
|
|
13141
|
-
}), true);
|
|
13142
|
-
}
|
|
13143
|
-
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
13144
|
-
this.caseReferenceControl.setValidators(this.caseReferenceValidator());
|
|
13145
|
-
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
13146
|
-
// field uses the Complex type, it is meant to be treated as one field
|
|
13147
|
-
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
13148
|
-
try {
|
|
13149
|
-
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13150
|
-
var caseLinkSubField = _c.value;
|
|
13151
|
-
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
13152
|
-
}
|
|
13153
|
-
}
|
|
13154
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13155
|
-
finally {
|
|
13156
|
-
try {
|
|
13157
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13158
|
-
}
|
|
13159
|
-
finally { if (e_1) throw e_1.error; }
|
|
13160
|
-
}
|
|
13161
|
-
}
|
|
13110
|
+
this.formArray = this.registerControl(new i2.FormArray([]), true);
|
|
13111
|
+
this.formArray['caseField'] = this.caseField;
|
|
13112
|
+
if (!this.hasCaseLinkCollection()) {
|
|
13113
|
+
this.caseLinkGroup = this.registerControl(new i2.FormGroup({
|
|
13114
|
+
CaseReference: new i2.FormControl(this.caseField.value.CaseReference, i2.Validators.required),
|
|
13115
|
+
}), true);
|
|
13162
13116
|
}
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13117
|
+
// Ensure that all sub-fields inherit the same value for retain_hidden_value as this parent; although a CaseLink
|
|
13118
|
+
// field uses the Complex type, it is meant to be treated as one field
|
|
13119
|
+
if (this.caseField && this.caseField.field_type.type === 'Complex') {
|
|
13120
|
+
try {
|
|
13121
|
+
for (var _b = __values(this.caseField.field_type.complex_fields), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
13122
|
+
var caseLinkSubField = _c.value;
|
|
13123
|
+
caseLinkSubField.retain_hidden_value = this.caseField.retain_hidden_value;
|
|
13170
13124
|
}
|
|
13171
|
-
return { error: 'Please use a valid 16 Digit Case Reference' };
|
|
13172
13125
|
}
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13126
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
13127
|
+
finally {
|
|
13128
|
+
try {
|
|
13129
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
13176
13130
|
}
|
|
13131
|
+
finally { if (e_1) throw e_1.error; }
|
|
13177
13132
|
}
|
|
13178
|
-
return null;
|
|
13179
|
-
};
|
|
13180
|
-
};
|
|
13181
|
-
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13182
|
-
if (!valueString) {
|
|
13183
|
-
return false;
|
|
13184
13133
|
}
|
|
13185
|
-
|
|
13186
|
-
};
|
|
13187
|
-
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13188
|
-
return (this.caseField.field_type &&
|
|
13189
|
-
this.caseField.field_type.type === 'Collection' &&
|
|
13190
|
-
this.caseField.field_type.collection_field_type.id === 'CaseLink' &&
|
|
13191
|
-
this.caseField.id === 'caseLinks');
|
|
13134
|
+
this.containsCaseLinkCollection = this.hasCaseLinkCollection();
|
|
13192
13135
|
};
|
|
13193
|
-
/**
|
|
13194
|
-
* This method is applicable only for new Case link/unlink journey
|
|
13195
|
-
*/
|
|
13196
13136
|
WriteCaseLinkFieldComponent.prototype.submitLinkedCases = function () {
|
|
13197
13137
|
var formGroup = this.formGroup;
|
|
13198
13138
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
@@ -13204,6 +13144,17 @@
|
|
|
13204
13144
|
this.formGroup.value.caseLinks = this.linkedCasesService.caseFieldValue;
|
|
13205
13145
|
}
|
|
13206
13146
|
};
|
|
13147
|
+
WriteCaseLinkFieldComponent.prototype.validCaseReference = function (valueString) {
|
|
13148
|
+
if (!valueString) {
|
|
13149
|
+
return false;
|
|
13150
|
+
}
|
|
13151
|
+
return new RegExp('^\\b\\d{4}[ -]?\\d{4}[ -]?\\d{4}[ -]?\\d{4}\\b$').test(valueString.trim());
|
|
13152
|
+
};
|
|
13153
|
+
WriteCaseLinkFieldComponent.prototype.hasCaseLinkCollection = function () {
|
|
13154
|
+
return (this.caseField.field_type &&
|
|
13155
|
+
this.caseField.field_type.type === 'Collection' &&
|
|
13156
|
+
this.caseField.field_type.collection_field_type.id === 'CaseLink');
|
|
13157
|
+
};
|
|
13207
13158
|
return WriteCaseLinkFieldComponent;
|
|
13208
13159
|
}(AbstractFieldWriteComponent));
|
|
13209
13160
|
WriteCaseLinkFieldComponent.ɵfac = function WriteCaseLinkFieldComponent_Factory(t) { return new (t || WriteCaseLinkFieldComponent)(i0__namespace.ɵɵdirectiveInject(LinkedCasesService)); };
|
|
@@ -13215,11 +13166,11 @@
|
|
|
13215
13166
|
var _t = void 0;
|
|
13216
13167
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
13217
13168
|
}
|
|
13218
|
-
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group",
|
|
13169
|
+
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["class", "form-group", 4, "ngIf"], [1, "form-group"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [3, "caseFields", "caseField", "formGroup", "isLinkedCasesJourney", "onLinkedCasesSelected"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
13219
13170
|
if (rf & 1) {
|
|
13220
13171
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
13221
|
-
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template,
|
|
13222
|
-
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div",
|
|
13172
|
+
i0__namespace.ɵɵtemplate(1, WriteCaseLinkFieldComponent_div_1_Template, 5, 5, "div", 0);
|
|
13173
|
+
i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_div_2_Template, 2, 4, "div", 0);
|
|
13223
13174
|
i0__namespace.ɵɵelementContainerEnd();
|
|
13224
13175
|
}
|
|
13225
13176
|
if (rf & 2) {
|
|
@@ -17186,6 +17137,9 @@
|
|
|
17186
17137
|
PaymentField.prototype.getRefundsUrl = function () {
|
|
17187
17138
|
return this.appConfig.getRefundsUrl();
|
|
17188
17139
|
};
|
|
17140
|
+
PaymentField.prototype.getNotificationUrl = function () {
|
|
17141
|
+
return this.appConfig.getNotificationUrl();
|
|
17142
|
+
};
|
|
17189
17143
|
PaymentField.prototype.getUserRoles = function () {
|
|
17190
17144
|
var userDetails = JSON.parse(this.sessionStorage.getItem('userDetails') || null);
|
|
17191
17145
|
if (!userDetails || !userDetails.hasOwnProperty('roles')) {
|
|
@@ -17211,12 +17165,12 @@
|
|
|
17211
17165
|
return CasePaymentHistoryViewerFieldComponent;
|
|
17212
17166
|
}(PaymentField));
|
|
17213
17167
|
CasePaymentHistoryViewerFieldComponent.ɵfac = function CasePaymentHistoryViewerFieldComponent_Factory(t) { return new (t || CasePaymentHistoryViewerFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17214
|
-
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars:
|
|
17168
|
+
CasePaymentHistoryViewerFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CasePaymentHistoryViewerFieldComponent, selectors: [["ccd-case-payment-history-viewer-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 16, consts: [[3, "API_ROOT", "CCD_CASE_NUMBER", "BULKSCAN_API_ROOT", "SELECTED_OPTION", "ISBSENABLE", "LOGGEDINUSEREMAIL", "LOGGEDINUSERROLES", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "ISPAYMENTSTATUSENABLED"]], template: function CasePaymentHistoryViewerFieldComponent_Template(rf, ctx) {
|
|
17215
17169
|
if (rf & 1) {
|
|
17216
17170
|
i0__namespace.ɵɵelement(0, "ccpay-payment-lib", 0);
|
|
17217
17171
|
}
|
|
17218
17172
|
if (rf & 2) {
|
|
17219
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17173
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx.getBaseURL())("CCD_CASE_NUMBER", ctx.caseReference)("BULKSCAN_API_ROOT", ctx.getPayBulkScanBaseURL())("SELECTED_OPTION", "CCDorException")("ISBSENABLE", "true")("LOGGEDINUSEREMAIL", ctx.getUserEmail())("LOGGEDINUSERROLES", ctx.getUserRoles())("REFUNDS_API_ROOT", ctx.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx.getNotificationUrl())("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", false)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx.caseReference)("DCN_NUMBER", null)("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17220
17174
|
}
|
|
17221
17175
|
}, directives: [i3__namespace.PaymentLibComponent], encapsulation: 2 });
|
|
17222
17176
|
(function () {
|
|
@@ -17624,7 +17578,7 @@
|
|
|
17624
17578
|
}
|
|
17625
17579
|
if (rf & 2) {
|
|
17626
17580
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
17627
|
-
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17581
|
+
i0__namespace.ɵɵproperty("API_ROOT", ctx_r0.getBaseURL())("BULKSCAN_API_ROOT", ctx_r0.getPayBulkScanBaseURL())("REFUNDS_API_ROOT", ctx_r0.getRefundsUrl())("NOTIFICATION_API_ROOT", ctx_r0.getNotificationUrl())("CCD_CASE_NUMBER", ctx_r0.caseReference)("VIEW", "case-transactions")("TAKEPAYMENT", false)("SERVICEREQUEST", true)("PAYMENT_GROUP_REF", null)("EXC_REFERENCE", ctx_r0.caseReference)("DCN_NUMBER", null)("SELECTED_OPTION", "CCDorException")("LOGGEDINUSERROLES", ctx_r0.getUserRoles())("CARDPAYMENTRETURNURL", ctx_r0.getCardPaymentReturnUrl())("ISPAYMENTSTATUSENABLED", "Enable");
|
|
17628
17582
|
}
|
|
17629
17583
|
}
|
|
17630
17584
|
var WaysToPayFieldComponent = /** @class */ (function (_super) {
|
|
@@ -17638,9 +17592,9 @@
|
|
|
17638
17592
|
return WaysToPayFieldComponent;
|
|
17639
17593
|
}(PaymentField));
|
|
17640
17594
|
WaysToPayFieldComponent.ɵfac = function WaysToPayFieldComponent_Factory(t) { return new (t || WaysToPayFieldComponent)(i0__namespace.ɵɵdirectiveInject(AbstractAppConfig), i0__namespace.ɵɵdirectiveInject(SessionStorageService)); };
|
|
17641
|
-
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
17595
|
+
WaysToPayFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WaysToPayFieldComponent, selectors: [["ccd-ways-to-pay-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED", 4, "ngIf"], [3, "API_ROOT", "BULKSCAN_API_ROOT", "REFUNDS_API_ROOT", "NOTIFICATION_API_ROOT", "CCD_CASE_NUMBER", "VIEW", "TAKEPAYMENT", "SERVICEREQUEST", "PAYMENT_GROUP_REF", "EXC_REFERENCE", "DCN_NUMBER", "SELECTED_OPTION", "LOGGEDINUSERROLES", "CARDPAYMENTRETURNURL", "ISPAYMENTSTATUSENABLED"]], template: function WaysToPayFieldComponent_Template(rf, ctx) {
|
|
17642
17596
|
if (rf & 1) {
|
|
17643
|
-
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1,
|
|
17597
|
+
i0__namespace.ɵɵtemplate(0, WaysToPayFieldComponent_ccpay_payment_lib_0_Template, 1, 15, "ccpay-payment-lib", 0);
|
|
17644
17598
|
}
|
|
17645
17599
|
if (rf & 2) {
|
|
17646
17600
|
i0__namespace.ɵɵproperty("ngIf", ctx.getUserRoles().length > 0);
|
|
@@ -17902,11 +17856,11 @@
|
|
|
17902
17856
|
return write ? WriteOrganisationFieldComponent : ReadOrganisationFieldComponent;
|
|
17903
17857
|
case 'JudicialUser':
|
|
17904
17858
|
return write ? WriteJudicialUserFieldComponent : ReadJudicialUserFieldComponent;
|
|
17859
|
+
case 'CaseLink':
|
|
17860
|
+
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17905
17861
|
default:
|
|
17906
17862
|
return write ? WriteComplexFieldComponent : ReadComplexFieldComponent;
|
|
17907
17863
|
}
|
|
17908
|
-
case 'CaseLink':
|
|
17909
|
-
return write ? WriteCaseLinkFieldComponent : ReadCaseLinkFieldComponent;
|
|
17910
17864
|
case 'Collection':
|
|
17911
17865
|
switch (caseField.field_type.collection_field_type.id) {
|
|
17912
17866
|
case 'CaseLink':
|
|
@@ -25560,7 +25514,7 @@
|
|
|
25560
25514
|
WriteOrganisationComplexFieldComponent], [i1__namespace.AsyncPipe]);
|
|
25561
25515
|
i0__namespace.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, [ReadOrderSummaryFieldComponent], []);
|
|
25562
25516
|
i0__namespace.ɵɵsetComponentScope(WriteDateContainerFieldComponent, [i1__namespace.NgIf, DatetimePickerComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, WriteDateFieldComponent], []);
|
|
25563
|
-
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.
|
|
25517
|
+
i0__namespace.ɵɵsetComponentScope(WriteCaseLinkFieldComponent, [i1__namespace.NgIf, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlDirective, WriteLinkedCasesComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe]);
|
|
25564
25518
|
i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
|
|
25565
25519
|
i0__namespace.ɵɵsetComponentScope(
|
|
25566
25520
|
// ComponentLauncher web components
|