@hmcts/ccd-case-ui-toolkit 5.0.30-angular11-upgrade → 5.0.32-angular11-upgrade
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 +18 -33
- 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/shared/components/case-editor/case-edit-page/case-edit-page.component.js +2 -2
- package/esm2015/lib/shared/components/palette/base-field/field-read.component.js +1 -5
- package/esm2015/lib/shared/components/palette/base-field/field-write.component.js +1 -5
- package/esm2015/lib/shared/components/palette/case-flag/read-case-flag-field.component.js +5 -10
- package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +5 -15
- package/esm2015/lib/shared/components/palette/judicial-user/read-judicial-user-field.component.js +4 -4
- package/esm2015/lib/shared/services/addresses/address-parser.js +6 -6
- package/esm2015/lib/shared/services/addresses/address-type.enum.js +7 -0
- package/esm2015/lib/shared/services/addresses/addresses.service.js +3 -5
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +18 -33
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
- package/lib/shared/components/palette/base-field/field-write.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts +1 -3
- package/lib/shared/components/palette/case-flag/read-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts +1 -3
- package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/judicial-user/read-judicial-user-field.component.d.ts +3 -3
- package/lib/shared/components/palette/judicial-user/read-judicial-user-field.component.d.ts.map +1 -1
- package/lib/shared/services/addresses/address-type.enum.d.ts +6 -0
- package/lib/shared/services/addresses/address-type.enum.d.ts.map +1 -0
- package/lib/shared/services/addresses/addresses.service.d.ts +0 -3
- package/lib/shared/services/addresses/addresses.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6515,6 +6515,13 @@
|
|
|
6515
6515
|
}], null, null);
|
|
6516
6516
|
})();
|
|
6517
6517
|
|
|
6518
|
+
var AddressType;
|
|
6519
|
+
(function (AddressType) {
|
|
6520
|
+
AddressType["DPA"] = "DPA";
|
|
6521
|
+
AddressType["UK"] = "United Kingdom";
|
|
6522
|
+
AddressType["RD06"] = "RD06";
|
|
6523
|
+
})(AddressType || (AddressType = {}));
|
|
6524
|
+
|
|
6518
6525
|
/**
|
|
6519
6526
|
* Moving all this logic here into Address Parser class, so that it
|
|
6520
6527
|
* will be easier for us when we move this parsing logic to into
|
|
@@ -6531,12 +6538,12 @@
|
|
|
6531
6538
|
addressModel.AddressLine3 = this.parseAddressLine3(classification, address);
|
|
6532
6539
|
addressModel.PostCode = address.POSTCODE;
|
|
6533
6540
|
addressModel.PostTown = address.POST_TOWN;
|
|
6534
|
-
addressModel.Country =
|
|
6541
|
+
addressModel.Country = AddressType.UK;
|
|
6535
6542
|
return addressModel;
|
|
6536
6543
|
};
|
|
6537
6544
|
AddressParser.prototype.parseAddressLine1 = function (classification, address) {
|
|
6538
6545
|
var addressLine = '';
|
|
6539
|
-
if (classification ===
|
|
6546
|
+
if (classification === AddressType.RD06) {
|
|
6540
6547
|
addressLine =
|
|
6541
6548
|
address.SUB_BUILDING_NAME + " " + address.ORGANISATION_NAME + " " + address.DEPARTMENT_NAME + " " + address.PO_BOX_NUMBER;
|
|
6542
6549
|
}
|
|
@@ -6549,7 +6556,7 @@
|
|
|
6549
6556
|
};
|
|
6550
6557
|
AddressParser.prototype.parseAddressLine2 = function (classification, address) {
|
|
6551
6558
|
var addressLine = '';
|
|
6552
|
-
if (classification ===
|
|
6559
|
+
if (classification === AddressType.RD06) {
|
|
6553
6560
|
addressLine = address.BUILDING_NAME + " ";
|
|
6554
6561
|
}
|
|
6555
6562
|
else {
|
|
@@ -6560,7 +6567,7 @@
|
|
|
6560
6567
|
};
|
|
6561
6568
|
AddressParser.prototype.parseAddressLine3 = function (classification, address) {
|
|
6562
6569
|
var addressLine = '';
|
|
6563
|
-
if (classification ===
|
|
6570
|
+
if (classification === AddressType.RD06) {
|
|
6564
6571
|
addressLine =
|
|
6565
6572
|
address.BUILDING_NUMBER + " " + address.THOROUGHFARE_NAME;
|
|
6566
6573
|
}
|
|
@@ -6603,7 +6610,7 @@
|
|
|
6603
6610
|
.get(this.appConfig.getPostcodeLookupUrl()
|
|
6604
6611
|
.replace('${postcode}', postcode), undefined, false)
|
|
6605
6612
|
.pipe(operators.map(function (res) { return res.results; }))
|
|
6606
|
-
.pipe(operators.map(function (output) { return output.map(function (addresses) { return _this.format(new AddressParser().parse(addresses[
|
|
6613
|
+
.pipe(operators.map(function (output) { return output.map(function (addresses) { return _this.format(new AddressParser().parse(addresses[AddressType.DPA])); }); }));
|
|
6607
6614
|
};
|
|
6608
6615
|
AddressesService.prototype.format = function (addressModel) {
|
|
6609
6616
|
return this.formatAddressLines(this.shiftAddressLinesUp(addressModel));
|
|
@@ -6635,9 +6642,6 @@
|
|
|
6635
6642
|
};
|
|
6636
6643
|
return AddressesService;
|
|
6637
6644
|
}());
|
|
6638
|
-
AddressesService.DPA = 'DPA';
|
|
6639
|
-
AddressesService.UK = 'United Kingdom';
|
|
6640
|
-
AddressesService.RD06 = 'RD06';
|
|
6641
6645
|
AddressesService.ɵfac = function AddressesService_Factory(t) { return new (t || AddressesService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig)); };
|
|
6642
6646
|
AddressesService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: AddressesService, factory: AddressesService.ɵfac });
|
|
6643
6647
|
(function () {
|
|
@@ -11776,9 +11780,7 @@
|
|
|
11776
11780
|
}
|
|
11777
11781
|
}
|
|
11778
11782
|
}
|
|
11779
|
-
this.caseLevelFirstColumnHeader = this.
|
|
11780
|
-
? this.caseEditPageComponent.getCaseTitle()
|
|
11781
|
-
: this.caseNameMissing;
|
|
11783
|
+
this.caseLevelFirstColumnHeader = this.caseNameMissing;
|
|
11782
11784
|
};
|
|
11783
11785
|
ReadCaseFlagFieldComponent.prototype.extractNewFlagToFlagDetailDisplayObject = function (selectedFlagsLocation) {
|
|
11784
11786
|
// Use the pathToFlagsFormGroup property from the selected flag location to drill down to the correct part of the
|
|
@@ -11801,7 +11803,7 @@
|
|
|
11801
11803
|
return ReadCaseFlagFieldComponent;
|
|
11802
11804
|
}(AbstractFieldReadComponent));
|
|
11803
11805
|
ReadCaseFlagFieldComponent.ɵfac = function ReadCaseFlagFieldComponent_Factory(t) { return new (t || ReadCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
11804
|
-
ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]],
|
|
11806
|
+
ReadCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadCaseFlagFieldComponent, selectors: [["ccd-read-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "flagForSummaryDisplay", "summaryListDisplayMode"], [1, "govuk-heading-l"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader", 4, "ngIf"], [3, "tableCaption", "flagData", "firstColumnHeader"]], template: function ReadCaseFlagFieldComponent_Template(rf, ctx) {
|
|
11805
11807
|
if (rf & 1) {
|
|
11806
11808
|
i0__namespace.ɵɵelementContainerStart(0, 0);
|
|
11807
11809
|
i0__namespace.ɵɵtemplate(1, ReadCaseFlagFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
|
|
@@ -11822,9 +11824,7 @@
|
|
|
11822
11824
|
templateUrl: './read-case-flag-field.component.html',
|
|
11823
11825
|
styleUrls: ['./read-case-flag-field.component.scss']
|
|
11824
11826
|
}]
|
|
11825
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; },
|
|
11826
|
-
type: i0.Input
|
|
11827
|
-
}] });
|
|
11827
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
11828
11828
|
})();
|
|
11829
11829
|
|
|
11830
11830
|
function WriteCaseFlagFieldComponent_div_0_div_3_Template(rf, ctx) {
|
|
@@ -12060,9 +12060,7 @@
|
|
|
12060
12060
|
// Set starting field state
|
|
12061
12061
|
this.fieldState = this.isDisplayContextParameterUpdate ? exports.CaseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : exports.CaseFlagFieldState.FLAG_LOCATION;
|
|
12062
12062
|
// Get case title, to be used by child components
|
|
12063
|
-
this.caseTitle = this.
|
|
12064
|
-
? this.caseEditPageComponent.getCaseTitle()
|
|
12065
|
-
: this.caseNameMissing;
|
|
12063
|
+
this.caseTitle = this.caseNameMissing;
|
|
12066
12064
|
}
|
|
12067
12065
|
};
|
|
12068
12066
|
WriteCaseFlagFieldComponent.prototype.setDisplayContextParameterUpdate = function (caseFields) {
|
|
@@ -12095,9 +12093,6 @@
|
|
|
12095
12093
|
&& caseFlagState.selectedFlag.pathToFlagsFormGroup) {
|
|
12096
12094
|
this.setCaseFlagParentFormGroup(caseFlagState.selectedFlag.pathToFlagsFormGroup);
|
|
12097
12095
|
}
|
|
12098
|
-
// Clear validation errors from the parent CaseEditPageComponent (given the "Next" button in a child component has
|
|
12099
|
-
// been clicked)
|
|
12100
|
-
this.caseEditPageComponent.validationErrors = [];
|
|
12101
12096
|
this.errorMessages = caseFlagState.errorMessages;
|
|
12102
12097
|
this.selectedFlag = caseFlagState.selectedFlag;
|
|
12103
12098
|
// Validation succeeded; proceed to next state or final review stage ("Check your answers")
|
|
@@ -12291,13 +12286,11 @@
|
|
|
12291
12286
|
// Clear the "notAllCaseFlagStagesCompleted" error
|
|
12292
12287
|
this.allCaseFlagStagesCompleted = true;
|
|
12293
12288
|
this.formGroup.updateValueAndValidity();
|
|
12294
|
-
// Perform a submit manually (as if the user had clicked "Continue")
|
|
12295
|
-
this.caseEditPageComponent.submit();
|
|
12296
12289
|
};
|
|
12297
12290
|
return WriteCaseFlagFieldComponent;
|
|
12298
12291
|
}(AbstractFieldWriteComponent));
|
|
12299
12292
|
WriteCaseFlagFieldComponent.ɵfac = function WriteCaseFlagFieldComponent_Factory(t) { return new (t || WriteCaseFlagFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
|
|
12300
|
-
WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]],
|
|
12293
|
+
WriteCaseFlagFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteCaseFlagFieldComponent, selectors: [["ccd-write-case-flag-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], ["class", "form-group", 3, "formGroup", 4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form-group", 3, "formGroup"], [1, "govuk-form-group", 3, "ngSwitch"], ["id", "create-flag-caption", 1, "govuk-caption-l", 3, "ngClass"], [4, "ngSwitchCase"], [3, "formGroup", "flagsData", "caseFlagStateEmitter"], [3, "formGroup", "jurisdiction", "caseFlagStateEmitter", "flagCommentsOptionalEmitter"], [3, "formGroup", "languages", "flagCode", "caseFlagStateEmitter"], [3, "formGroup", "optional", "caseFlagStateEmitter"], [3, "formGroup", "flagsData", "caseTitle", "caseFlagStateEmitter"], [3, "formGroup", "selectedFlag", "caseFlagStateEmitter"]], template: function WriteCaseFlagFieldComponent_Template(rf, ctx) {
|
|
12301
12294
|
if (rf & 1) {
|
|
12302
12295
|
i0__namespace.ɵɵtemplate(0, WriteCaseFlagFieldComponent_div_0_Template, 4, 1, "div", 0);
|
|
12303
12296
|
i0__namespace.ɵɵtemplate(1, WriteCaseFlagFieldComponent_div_1_Template, 8, 10, "div", 1);
|
|
@@ -12319,9 +12312,7 @@
|
|
|
12319
12312
|
templateUrl: './write-case-flag-field.component.html',
|
|
12320
12313
|
styleUrls: ['./write-case-flag-field.component.scss']
|
|
12321
12314
|
}]
|
|
12322
|
-
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; },
|
|
12323
|
-
type: i0.Input
|
|
12324
|
-
}] });
|
|
12315
|
+
}], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
|
|
12325
12316
|
})();
|
|
12326
12317
|
|
|
12327
12318
|
function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
|
|
@@ -17249,9 +17240,6 @@
|
|
|
17249
17240
|
component.instance['caseReference'] = _this.caseReference;
|
|
17250
17241
|
component.instance['context'] = _this.context;
|
|
17251
17242
|
component.instance['markdownUseHrefAsRouterLink'] = _this.markdownUseHrefAsRouterLink;
|
|
17252
|
-
// Add a reference to the parent CaseEditPageComponent to this component (needed for access to the parent
|
|
17253
|
-
// CaseEditPageComponent's getCaseTitle method)
|
|
17254
|
-
component.instance['caseEditPageComponent'] = component.injector.get(CaseEditPageComponent);
|
|
17255
17243
|
_this.fieldContainer.insert(component.hostView);
|
|
17256
17244
|
});
|
|
17257
17245
|
};
|
|
@@ -17342,9 +17330,6 @@
|
|
|
17342
17330
|
}
|
|
17343
17331
|
component.instance['isExpanded'] = this.isExpanded;
|
|
17344
17332
|
component.instance['isInSearchBlock'] = this.isInSearchBlock;
|
|
17345
|
-
// Add a reference to the parent CaseEditPageComponent to this component (needed for access to the parent
|
|
17346
|
-
// CaseEditPageComponent's validation error messages)
|
|
17347
|
-
component.instance['caseEditPageComponent'] = component.injector.get(CaseEditPageComponent);
|
|
17348
17333
|
this.fieldContainer.insert(component.hostView);
|
|
17349
17334
|
// EUI-3267.
|
|
17350
17335
|
// Set up the flag for whether this can have a grey bar.
|