@hmcts/ccd-case-ui-toolkit 4.11.2 → 4.11.3
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/RELEASE-NOTES.md +6 -0
- package/dist/index.umd.js +21 -43
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-header/case-header.component.d.ts +0 -1
- package/dist/shared/components/case-header/case-header.component.js +1 -2
- package/dist/shared/components/case-header/case-header.component.js.map +1 -1
- package/dist/shared/components/case-header/case-header.component.metadata.json +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +9 -28
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js.map +1 -1
- package/dist/shared/components/palette/payment/case-payment-history-viewer-field.component.js.map +1 -1
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js +10 -12
- package/dist/shared/components/workbasket-filters/workbasket-filters.component.js.map +1 -1
- package/package.json +3 -3
package/RELEASE-NOTES.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
## RELEASE NOTES
|
|
2
2
|
|
|
3
|
+
### Version 4.11.2
|
|
4
|
+
Add refunds functionality
|
|
5
|
+
|
|
3
6
|
### Version 4.3.6-hotfix-EUI-4404
|
|
4
7
|
**EUI-4404** Fix rendering of read-only Collection field within editable Complex field
|
|
5
8
|
|
|
9
|
+
### Version 4.7.6-tab-not-defined-error"
|
|
10
|
+
**EUI-4562** Case details Active tasks tab on success not returning to active tasks page
|
|
11
|
+
|
|
6
12
|
### Version 4.7.6-hearings-tab
|
|
7
13
|
**EUI-4441** Add hearings tab in case details
|
|
8
14
|
**EUI-4627** Can't access /hearings tab from URL
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
|
|
3
|
-
* @version v4.11.
|
|
3
|
+
* @version v4.11.3
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -20827,7 +20827,6 @@ var CaseHeaderComponent = /** @class */ (function () {
|
|
|
20827
20827
|
this.caseTitle = new domain_1.CaseField();
|
|
20828
20828
|
if (!this.isDraft() && this.caseDetails.state.title_display) {
|
|
20829
20829
|
this.caseTitle.label = this.caseDetails.state.title_display;
|
|
20830
|
-
this.label = this.caseTitle.label;
|
|
20831
20830
|
this.caseFields = this.getCaseFields();
|
|
20832
20831
|
}
|
|
20833
20832
|
};
|
|
@@ -22370,35 +22369,16 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
22370
22369
|
var matTab;
|
|
22371
22370
|
var url = this.location.path(true);
|
|
22372
22371
|
var hashValue = url.substring(url.indexOf('#') + 1);
|
|
22373
|
-
if
|
|
22372
|
+
// if we have prepended tabs route to one of the prepended tabs
|
|
22373
|
+
if (!url.includes('#') && this.prependedTabs && this.prependedTabs.length) {
|
|
22374
22374
|
var paths = url.split('/');
|
|
22375
|
-
|
|
22376
|
-
var
|
|
22377
|
-
var
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22381
|
-
}
|
|
22382
|
-
// found tasks or hearing tab
|
|
22383
|
-
if (foundTab_1) {
|
|
22384
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id, foundTab_1.id]).then(function () {
|
|
22385
|
-
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === foundTab_1.label; });
|
|
22386
|
-
if (matTab && matTab.position) {
|
|
22387
|
-
_this.tabGroup.selectedIndex = matTab.position;
|
|
22388
|
-
}
|
|
22389
|
-
});
|
|
22390
|
-
// last path is caseId
|
|
22391
|
-
}
|
|
22392
|
-
else {
|
|
22393
|
-
// sort with the order of CCD predefined tabs
|
|
22394
|
-
this.caseDetails.tabs.sort(function (aTab, bTab) { return aTab.order > bTab.order ? 1 : (bTab.order > aTab.order ? -1 : 0); });
|
|
22395
|
-
// preselect the 1st order of CCD predefined tabs
|
|
22396
|
-
var preSelectTab_1 = this.caseDetails.tabs[0];
|
|
22397
|
-
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
22398
|
-
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === preSelectTab_1.label; });
|
|
22399
|
-
_this.tabGroup.selectedIndex = matTab.position;
|
|
22400
|
-
});
|
|
22401
|
-
}
|
|
22375
|
+
var tabName_1 = decodeURIComponent(paths[paths.length - 1]);
|
|
22376
|
+
var selectedTab_1 = this.prependedTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === tabName_1.toLowerCase(); });
|
|
22377
|
+
var tab = selectedTab_1 ? selectedTab_1.id : 'tasks';
|
|
22378
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id, tab]).then(function () {
|
|
22379
|
+
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === selectedTab_1.label; });
|
|
22380
|
+
_this.tabGroup.selectedIndex = matTab.position;
|
|
22381
|
+
});
|
|
22402
22382
|
}
|
|
22403
22383
|
else {
|
|
22404
22384
|
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
@@ -34622,18 +34602,16 @@ var WorkbasketFiltersComponent = /** @class */ (function () {
|
|
|
34622
34602
|
var formGroupLS = JSON.parse(this.windowService.getLocalStorage(FORM_GROUP_VAL_LOC_STORAGE));
|
|
34623
34603
|
// Form group local storage is available and contains regionList property
|
|
34624
34604
|
if (util_1.isDefined(formGroupLS) && formGroupLS.hasOwnProperty(REGION_LIST_AND_FRC_FILTER)) {
|
|
34625
|
-
|
|
34626
|
-
|
|
34627
|
-
|
|
34628
|
-
|
|
34629
|
-
|
|
34630
|
-
|
|
34631
|
-
|
|
34632
|
-
|
|
34633
|
-
|
|
34634
|
-
|
|
34635
|
-
this.formGroup.get(key).setValue(null);
|
|
34636
|
-
}
|
|
34605
|
+
// If regionList value does not match between local storage and form group
|
|
34606
|
+
// then the filter value has been changed and we need to clear the old filter values
|
|
34607
|
+
if (formGroupLS[REGION_LIST_AND_FRC_FILTER] !== this.formGroup.get(REGION_LIST_AND_FRC_FILTER).value) {
|
|
34608
|
+
for (var key in formGroupLS) {
|
|
34609
|
+
if (formGroupLS.hasOwnProperty(key)) {
|
|
34610
|
+
var value = formGroupLS[key];
|
|
34611
|
+
// Clear the filter form group control values if it has a value in local storage
|
|
34612
|
+
// The regionList form group control value should be ignored as it always contain the latest value
|
|
34613
|
+
if (key !== REGION_LIST_AND_FRC_FILTER && value != null) {
|
|
34614
|
+
this.formGroup.get(key).setValue(null);
|
|
34637
34615
|
}
|
|
34638
34616
|
}
|
|
34639
34617
|
}
|
|
@@ -69908,7 +69886,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-edit [submit]=\"
|
|
|
69908
69886
|
/***/ 59541:
|
|
69909
69887
|
/***/ ((module) => {
|
|
69910
69888
|
|
|
69911
|
-
module.exports = "<h1 *ngIf=\"!label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n\n<div *ngIf=\"label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n"
|
|
69889
|
+
module.exports = "<h1 *ngIf=\"!caseTitle.label\" class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n\n<div *ngIf=\"caseTitle.label\" class=\"case-title\">\n <ccd-label-field [caseField]=\"caseTitle\" [caseFields]=\"caseFields\"></ccd-label-field>\n</div>\n"
|
|
69912
69890
|
|
|
69913
69891
|
/***/ }),
|
|
69914
69892
|
|