@hmcts/ccd-case-ui-toolkit 7.0.0-rc4 → 7.0.0-rc6
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/esm2020/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +3 -2
- package/esm2020/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +4 -3
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +2 -16
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +6 -19
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +5 -17
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +0 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -13148,15 +13148,6 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13148
13148
|
this.jurisdictionService = jurisdictionService;
|
|
13149
13149
|
this.valid = true;
|
|
13150
13150
|
}
|
|
13151
|
-
clickout(event) {
|
|
13152
|
-
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
13153
|
-
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
13154
|
-
this.clickInsideTheDocument = true;
|
|
13155
|
-
}
|
|
13156
|
-
else {
|
|
13157
|
-
this.fileValidations();
|
|
13158
|
-
}
|
|
13159
|
-
}
|
|
13160
13151
|
ngOnInit() {
|
|
13161
13152
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
13162
13153
|
if (this.secureModeOn) {
|
|
@@ -13414,10 +13405,6 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13414
13405
|
let _t;
|
|
13415
13406
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
13416
13407
|
}
|
|
13417
|
-
}, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) {
|
|
13418
|
-
if (rf & 1) {
|
|
13419
|
-
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0.ɵɵresolveDocument);
|
|
13420
|
-
}
|
|
13421
13408
|
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) {
|
|
13422
13409
|
if (rf & 1) {
|
|
13423
13410
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1)(2, "span", 2);
|
|
@@ -13475,9 +13462,6 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13475
13462
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$4.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
13476
13463
|
type: ViewChild,
|
|
13477
13464
|
args: ['fileInput', { static: false }]
|
|
13478
|
-
}], clickout: [{
|
|
13479
|
-
type: HostListener,
|
|
13480
|
-
args: ['document:click', ['$event']]
|
|
13481
13465
|
}] });
|
|
13482
13466
|
})();
|
|
13483
13467
|
|
|
@@ -19414,7 +19398,7 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
19414
19398
|
}
|
|
19415
19399
|
ngAfterViewInit() {
|
|
19416
19400
|
const path = this.findPath();
|
|
19417
|
-
path.forEach(p => document.getElementById(p).checked = true);
|
|
19401
|
+
path.forEach((p) => document.getElementById(p).checked = true);
|
|
19418
19402
|
}
|
|
19419
19403
|
handleChange(evt) {
|
|
19420
19404
|
if (evt.target.checked) {
|
|
@@ -19445,9 +19429,10 @@ class CaseFileViewFolderSelectorComponent {
|
|
|
19445
19429
|
return r;
|
|
19446
19430
|
}
|
|
19447
19431
|
}
|
|
19432
|
+
return [];
|
|
19448
19433
|
}
|
|
19449
19434
|
containsDocument(cat, document) {
|
|
19450
|
-
if (cat.documents.findIndex(doc => doc.document_binary_url === document.document_binary_url) > -1) {
|
|
19435
|
+
if (cat.documents.findIndex((doc) => doc.document_binary_url === document.document_binary_url) > -1) {
|
|
19451
19436
|
return [cat.category_id];
|
|
19452
19437
|
}
|
|
19453
19438
|
for (const c of cat.sub_categories) {
|
|
@@ -29174,12 +29159,13 @@ class CaseFullAccessViewComponent {
|
|
|
29174
29159
|
}
|
|
29175
29160
|
// Refactored under EXUI-110 to address infinite tab loop to use tabIndexChanged instead
|
|
29176
29161
|
tabChanged(tabIndexChanged) {
|
|
29162
|
+
var _a;
|
|
29177
29163
|
const matTab = this.tabGroup._tabs.find(tab => tab.isActive);
|
|
29178
29164
|
const tabLabel = matTab.textLabel;
|
|
29179
29165
|
// sortedTabs are fragments
|
|
29180
29166
|
// appended/prepepended tabs use router navigation
|
|
29181
29167
|
if ((tabIndexChanged <= 1 && this.prependedTabs && this.prependedTabs.length) ||
|
|
29182
|
-
(this.appendedTabs
|
|
29168
|
+
(((_a = this.appendedTabs) === null || _a === void 0 ? void 0 : _a.length) && tabLabel === this.HEARINGS_TAB_LABEL)) {
|
|
29183
29169
|
// Hack to get ID from tab as it's not easily achieved through Angular Material Tabs
|
|
29184
29170
|
const tab = matTab['_viewContainerRef'];
|
|
29185
29171
|
const id = tab.element.nativeElement.id;
|
|
@@ -29199,6 +29185,7 @@ class CaseFullAccessViewComponent {
|
|
|
29199
29185
|
const targetTabIndex = this.tabGroup._tabs.toArray().findIndex(tab => tab.textLabel === triggerOutputEventText);
|
|
29200
29186
|
if (targetTabIndex > -1) {
|
|
29201
29187
|
this.selectedTabIndex = targetTabIndex;
|
|
29188
|
+
this.tabGroup.selectedIndex = targetTabIndex;
|
|
29202
29189
|
}
|
|
29203
29190
|
}
|
|
29204
29191
|
hasActiveCaseFlags() {
|