@hmcts/ccd-case-ui-toolkit 6.19.12-exui-997 → 6.19.12-exui-997-rc2
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 +6 -22
- 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-submit/case-edit-submit.component.js +5 -4
- package/esm2015/lib/shared/components/palette/document/write-document-field.component.js +2 -16
- package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +3 -4
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js +6 -20
- package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.d.ts +1 -0
- package/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.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/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14696,15 +14696,6 @@
|
|
|
14696
14696
|
_this.valid = true;
|
|
14697
14697
|
return _this;
|
|
14698
14698
|
}
|
|
14699
|
-
WriteDocumentFieldComponent.prototype.clickout = function (event) {
|
|
14700
|
-
// Capturing the event of the associated ElementRef <input type="file" #fileInpu
|
|
14701
|
-
if (this.fileInput.nativeElement.contains(event.target)) {
|
|
14702
|
-
this.clickInsideTheDocument = true;
|
|
14703
|
-
}
|
|
14704
|
-
else {
|
|
14705
|
-
this.fileValidations();
|
|
14706
|
-
}
|
|
14707
|
-
};
|
|
14708
14699
|
WriteDocumentFieldComponent.prototype.ngOnInit = function () {
|
|
14709
14700
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
14710
14701
|
if (this.secureModeOn) {
|
|
@@ -14966,10 +14957,6 @@
|
|
|
14966
14957
|
var _t = void 0;
|
|
14967
14958
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14968
14959
|
}
|
|
14969
|
-
}, hostBindings: function WriteDocumentFieldComponent_HostBindings(rf, ctx) {
|
|
14970
|
-
if (rf & 1) {
|
|
14971
|
-
i0__namespace.ɵɵlistener("click", function WriteDocumentFieldComponent_click_HostBindingHandler($event) { return ctx.clickout($event); }, false, i0__namespace.ɵɵresolveDocument);
|
|
14972
|
-
}
|
|
14973
14960
|
}, features: [i0__namespace.ɵɵ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) {
|
|
14974
14961
|
if (rf & 1) {
|
|
14975
14962
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -15038,9 +15025,6 @@
|
|
|
15038
15025
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1__namespace$3.MatDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
15039
15026
|
type: i0.ViewChild,
|
|
15040
15027
|
args: ['fileInput', { static: false }]
|
|
15041
|
-
}], clickout: [{
|
|
15042
|
-
type: i0.HostListener,
|
|
15043
|
-
args: ['document:click', ['$event']]
|
|
15044
15028
|
}] });
|
|
15045
15029
|
})();
|
|
15046
15030
|
|
|
@@ -26561,7 +26545,7 @@
|
|
|
26561
26545
|
/**
|
|
26562
26546
|
* Filter out fields having no data to display and harmonise field values coming parent's value.
|
|
26563
26547
|
*/
|
|
26564
|
-
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix
|
|
26548
|
+
ReadFieldsFilterPipe.prototype.transform = function (complexField, keepEmpty, index, setupHidden, formGroup, path, idPrefix) {
|
|
26565
26549
|
if (setupHidden === void 0) { setupHidden = false; }
|
|
26566
26550
|
if (!complexField || !complexField.field_type) {
|
|
26567
26551
|
return [];
|
|
@@ -26571,8 +26555,7 @@
|
|
|
26571
26555
|
var checkConditionalShowAgainst = values;
|
|
26572
26556
|
var formGroupAvailable = false;
|
|
26573
26557
|
if (formGroup) {
|
|
26574
|
-
checkConditionalShowAgainst =
|
|
26575
|
-
Object.assign(formGroup.parent.getRawValue().data, metadataFieldsObject) : formGroup.parent.getRawValue().data;
|
|
26558
|
+
checkConditionalShowAgainst = formGroup.value ? formGroup.parent.getRawValue().data : formGroup;
|
|
26576
26559
|
formGroupAvailable = true;
|
|
26577
26560
|
if (idPrefix !== undefined) {
|
|
26578
26561
|
if (idPrefix !== '') {
|
|
@@ -27576,7 +27559,7 @@
|
|
|
27576
27559
|
i0__namespace.ɵɵproperty("ngIf", ctx_r15.canShowFieldInCYA(field_r16));
|
|
27577
27560
|
}
|
|
27578
27561
|
}
|
|
27579
|
-
var _c0$f = function (a0, a4
|
|
27562
|
+
var _c0$f = function (a0, a4) { return [a0, false, undefined, true, a4]; };
|
|
27580
27563
|
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template(rf, ctx) {
|
|
27581
27564
|
if (rf & 1) {
|
|
27582
27565
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
@@ -27590,13 +27573,13 @@
|
|
|
27590
27573
|
var page_r13 = i0__namespace.ɵɵnextContext().$implicit;
|
|
27591
27574
|
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
27592
27575
|
i0__namespace.ɵɵadvance(1);
|
|
27593
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵ
|
|
27576
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBindV(3, 3, i0__namespace.ɵɵpureFunction2(12, _c0$f, i0__namespace.ɵɵpipeBind2(4, 9, page_r13, ctx_r14.editForm), ctx_r14.allFieldsValues))));
|
|
27594
27577
|
}
|
|
27595
27578
|
}
|
|
27596
27579
|
function CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_Template(rf, ctx) {
|
|
27597
27580
|
if (rf & 1) {
|
|
27598
27581
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
27599
|
-
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template, 5,
|
|
27582
|
+
i0__namespace.ɵɵtemplate(1, CaseEditSubmitComponent_div_0_ng_container_11_ng_container_7_ng_container_1_Template, 5, 15, "ng-container", 0);
|
|
27600
27583
|
i0__namespace.ɵɵelementContainerEnd();
|
|
27601
27584
|
}
|
|
27602
27585
|
if (rf & 2) {
|
|
@@ -27856,6 +27839,7 @@
|
|
|
27856
27839
|
var _d;
|
|
27857
27840
|
return Object.assign(o, (_d = {}, _d[key.id] = key.value, _d));
|
|
27858
27841
|
}, {});
|
|
27842
|
+
this.allFieldsValues = Object.assign(this.metadataFieldsObject, this.editForm.getRawValue().data);
|
|
27859
27843
|
// Indicates if the submission is for a Case Flag, as opposed to a "regular" form submission, by the presence of
|
|
27860
27844
|
// a FlagLauncher field in the event trigger
|
|
27861
27845
|
this.caseEdit.isCaseFlagSubmission =
|