@hmcts/ccd-case-ui-toolkit 7.0.73 → 7.0.74-exui-1832-rc1
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/esm2022/lib/shared/components/palette/base-field/field-write.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +34 -18
- package/esm2022/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +5 -6
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +39 -24
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +1 -0
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14115,7 +14115,7 @@ class FileUploadStateService {
|
|
|
14115
14115
|
const _c0$R = ["fileInput"];
|
|
14116
14116
|
const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
|
|
14117
14117
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
14118
|
-
i0.ɵɵelementStart(0, "span",
|
|
14118
|
+
i0.ɵɵelementStart(0, "span", 15);
|
|
14119
14119
|
i0.ɵɵtext(1);
|
|
14120
14120
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14121
14121
|
i0.ɵɵelementEnd();
|
|
@@ -14125,7 +14125,7 @@ function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
14125
14125
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
14126
14126
|
} }
|
|
14127
14127
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
14128
|
-
i0.ɵɵelementStart(0, "span",
|
|
14128
|
+
i0.ɵɵelementStart(0, "span", 16);
|
|
14129
14129
|
i0.ɵɵtext(1);
|
|
14130
14130
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14131
14131
|
i0.ɵɵelementEnd();
|
|
@@ -14135,7 +14135,7 @@ function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14135
14135
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.fileUploadMessages));
|
|
14136
14136
|
} }
|
|
14137
14137
|
function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx) { if (rf & 1) {
|
|
14138
|
-
i0.ɵɵelement(0, "ccd-read-document-field",
|
|
14138
|
+
i0.ɵɵelement(0, "ccd-read-document-field", 17);
|
|
14139
14139
|
} if (rf & 2) {
|
|
14140
14140
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
14141
14141
|
i0.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
@@ -14167,6 +14167,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14167
14167
|
dialogSubscription;
|
|
14168
14168
|
caseNotifierSubscription;
|
|
14169
14169
|
jurisdictionSubs;
|
|
14170
|
+
fileName = 'No file chosen';
|
|
14170
14171
|
uploadedDocument;
|
|
14171
14172
|
dialogConfig;
|
|
14172
14173
|
secureModeOn;
|
|
@@ -14234,6 +14235,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14234
14235
|
fileChangeEvent(fileInput) {
|
|
14235
14236
|
if (fileInput.target.files[0]) {
|
|
14236
14237
|
this.selectedFile = fileInput.target.files[0];
|
|
14238
|
+
this.fileName = fileInput.target.files[0].name;
|
|
14237
14239
|
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
|
|
14238
14240
|
const documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
14239
14241
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
@@ -14467,7 +14469,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14467
14469
|
} if (rf & 2) {
|
|
14468
14470
|
let _t;
|
|
14469
14471
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14470
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
14472
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 26, vars: 27, consts: [["fileInput", ""], [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, "click", "keyup", "id"], [1, "upload-file-container"], ["aria-label", "Choose file", 1, "button", "button-secondary", "input-label", 3, "for"], [1, "form-control", "bottom-30"], ["type", "file", 1, "input-upload-file", 3, "keydown.Tab", "change", "id", "accept"], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "click", "disabled"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14471
14473
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
14472
14474
|
i0.ɵɵelementStart(0, "div", 1)(1, "label", 2)(2, "span", 3);
|
|
14473
14475
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
@@ -14481,22 +14483,30 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14481
14483
|
i0.ɵɵelementStart(10, "div", 7)(11, "div", 8);
|
|
14482
14484
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); })("keyup", function WriteDocumentFieldComponent_Template_div_keyup_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); });
|
|
14483
14485
|
i0.ɵɵelementEnd();
|
|
14484
|
-
i0.ɵɵelementStart(12, "
|
|
14485
|
-
i0.ɵɵ
|
|
14486
|
+
i0.ɵɵelementStart(12, "div", 9)(13, "label", 10);
|
|
14487
|
+
i0.ɵɵtext(14);
|
|
14488
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
14489
|
+
i0.ɵɵelementEnd();
|
|
14490
|
+
i0.ɵɵelementStart(16, "span", 11)(17, "span");
|
|
14491
|
+
i0.ɵɵtext(18);
|
|
14492
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
14486
14493
|
i0.ɵɵelementEnd()()();
|
|
14487
|
-
i0.ɵɵelementStart(
|
|
14488
|
-
i0.ɵɵlistener("
|
|
14489
|
-
i0.ɵɵ
|
|
14490
|
-
i0.ɵɵ
|
|
14494
|
+
i0.ɵɵelementStart(20, "input", 12, 0);
|
|
14495
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_20_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_20_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event)); });
|
|
14496
|
+
i0.ɵɵelementEnd()()();
|
|
14497
|
+
i0.ɵɵelementStart(22, "div", 13)(23, "button", 14);
|
|
14498
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_23_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
|
|
14499
|
+
i0.ɵɵtext(24);
|
|
14500
|
+
i0.ɵɵpipe(25, "rpxTranslate");
|
|
14491
14501
|
i0.ɵɵelementEnd()();
|
|
14492
14502
|
} if (rf & 2) {
|
|
14493
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14503
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(25, _c1$l, !ctx.valid));
|
|
14494
14504
|
i0.ɵɵadvance();
|
|
14495
14505
|
i0.ɵɵproperty("for", ctx.id());
|
|
14496
14506
|
i0.ɵɵadvance();
|
|
14497
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3,
|
|
14507
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 15, ctx.caseField));
|
|
14498
14508
|
i0.ɵɵadvance(2);
|
|
14499
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5,
|
|
14509
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 17, ctx.caseField));
|
|
14500
14510
|
i0.ɵɵadvance(2);
|
|
14501
14511
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
14502
14512
|
i0.ɵɵadvance();
|
|
@@ -14505,23 +14515,29 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14505
14515
|
i0.ɵɵproperty("ngIf", ctx.caseField);
|
|
14506
14516
|
i0.ɵɵadvance(2);
|
|
14507
14517
|
i0.ɵɵproperty("id", ctx.createElementId("fileInputWrapper"));
|
|
14518
|
+
i0.ɵɵadvance(2);
|
|
14519
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
14508
14520
|
i0.ɵɵadvance();
|
|
14521
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 19, "Choose file"));
|
|
14522
|
+
i0.ɵɵadvance(4);
|
|
14523
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 21, ctx.fileName));
|
|
14524
|
+
i0.ɵɵadvance(2);
|
|
14509
14525
|
i0.ɵɵpropertyInterpolate("accept", ctx.caseField.field_type.regular_expression);
|
|
14510
14526
|
i0.ɵɵproperty("id", ctx.id());
|
|
14511
14527
|
i0.ɵɵadvance(3);
|
|
14512
14528
|
i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
|
|
14513
14529
|
i0.ɵɵadvance();
|
|
14514
|
-
i0.ɵɵ
|
|
14515
|
-
} },
|
|
14530
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 23, "Cancel upload"), " ");
|
|
14531
|
+
} }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
14516
14532
|
}
|
|
14517
14533
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14518
14534
|
type: Component,
|
|
14519
|
-
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field
|
|
14535
|
+
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\"\n >{{(caseField | ccdFieldLabel)}}</span\n >\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\"\n >{{caseField.hint_text | rpxTranslate}}</span\n >\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\"\n >{{fileUploadMessages | rpxTranslate}}</span\n >\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field\n *ngIf=\"caseField\"\n [caseField]=\"caseField\"\n ></ccd-read-document-field>\n </div>\n\n <div style=\"position: relative\">\n <div\n [id]=\"createElementId('fileInputWrapper')\"\n (click)=\"fileSelectEvent()\"\n (keyup)=\"fileSelectEvent()\"\n ></div>\n <div class=\"upload-file-container\">\n <label\n [for]=\"id()\"\n class=\"button button-secondary input-label\"\n aria-label=\"Choose file\"\n >{{'Choose file' | rpxTranslate}}</label\n >\n <span class=\"form-control bottom-30\">\n <span>{{fileName | rpxTranslate}}</span>\n </span>\n </div>\n <input\n [id]=\"id()\"\n type=\"file\"\n class=\"input-upload-file\"\n (keydown.Tab)=\"fileValidationsOnTab()\"\n (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\"\n #fileInput\n />\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button\n class=\"button button-secondary\"\n type=\"button\"\n aria-label=\"Cancel upload\"\n (click)=\"cancelUpload()\"\n [disabled]=\"!isUploadInProgress()\"\n >\n {{'Cancel upload' | rpxTranslate}}\n </button>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
14520
14536
|
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
|
|
14521
14537
|
type: ViewChild,
|
|
14522
14538
|
args: ['fileInput', { static: false }]
|
|
14523
14539
|
}] }); })();
|
|
14524
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber:
|
|
14540
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 24 }); })();
|
|
14525
14541
|
|
|
14526
14542
|
class DynamicListPipe {
|
|
14527
14543
|
static EMPTY = '';
|
|
@@ -21602,19 +21618,18 @@ function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
21602
21618
|
i0.ɵɵelementStart(2, "label", 12);
|
|
21603
21619
|
i0.ɵɵtext(3);
|
|
21604
21620
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21605
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21606
21621
|
i0.ɵɵelementEnd()();
|
|
21607
21622
|
} if (rf & 2) {
|
|
21608
21623
|
const value_r2 = ctx.$implicit;
|
|
21609
21624
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21610
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
21625
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$b, ctx_r0.yesNoControl.value === value_r2));
|
|
21611
21626
|
i0.ɵɵadvance();
|
|
21612
21627
|
i0.ɵɵproperty("id", ctx_r0.createElementId(value_r2))("name", ctx_r0.id())("formControl", ctx_r0.yesNoControl)("value", value_r2);
|
|
21613
21628
|
i0.ɵɵattribute("name", ctx_r0.id());
|
|
21614
21629
|
i0.ɵɵadvance();
|
|
21615
21630
|
i0.ɵɵproperty("for", ctx_r0.createElementId(value_r2));
|
|
21616
21631
|
i0.ɵɵadvance();
|
|
21617
|
-
i0.ɵɵtextInterpolate(ctx_r0.caseField.label ? i0.ɵɵ
|
|
21632
|
+
i0.ɵɵtextInterpolate(ctx_r0.caseField.label ? i0.ɵɵpipeBind3(4, 8, ctx_r0.caseField.label, null, value_r2) : value_r2);
|
|
21618
21633
|
} }
|
|
21619
21634
|
class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
21620
21635
|
yesNoService;
|
|
@@ -21634,7 +21649,7 @@ class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
|
21634
21649
|
i0.ɵɵelementEnd();
|
|
21635
21650
|
i0.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3)(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
|
|
21636
21651
|
i0.ɵɵelementStart(6, "div", 5);
|
|
21637
|
-
i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template,
|
|
21652
|
+
i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
|
|
21638
21653
|
i0.ɵɵelementEnd()()();
|
|
21639
21654
|
} if (rf & 2) {
|
|
21640
21655
|
i0.ɵɵproperty("id", ctx.id())("ngClass", i0.ɵɵpureFunction1(7, _c0$y, !ctx.yesNoControl.valid && (ctx.yesNoControl.dirty || ctx.yesNoControl.touched)));
|
|
@@ -21652,7 +21667,7 @@ class WriteYesNoFieldComponent extends AbstractFieldWriteComponent {
|
|
|
21652
21667
|
}
|
|
21653
21668
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
|
|
21654
21669
|
type: Component,
|
|
21655
|
-
args: [{ selector: 'ccd-write-yes-no-field', template: "<div [id]=\"id()\" class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !yesNoControl.valid && (yesNoControl.dirty || yesNoControl.touched)}\">\n\t<fieldset class=\"inline\">\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </legend>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"yesNoControl.errors && (yesNoControl.dirty || yesNoControl.touched)\">\n {{yesNoControl.errors | ccdFirstError:caseField.label}}\n </span>\n\n <div [id]=\"createElementId('radio')\">\n \t <div class=\"multiple-choice\" *ngFor=\"let value of yesNoValues\" [ngClass]=\"{selected: yesNoControl.value === value}\">\n \t <input class=\"form-control\" [id]=\"createElementId(value)\" [attr.name]=\"id()\" [name]=\"id()\" type=\"radio\" [formControl]=\"yesNoControl\" [value]=\"value\">\n <label class=\"form-label\" [for]=\"createElementId(value)\">{{caseField.label ? (caseField.label | rpxTranslate:null:value
|
|
21670
|
+
args: [{ selector: 'ccd-write-yes-no-field', template: "<div [id]=\"id()\" class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !yesNoControl.valid && (yesNoControl.dirty || yesNoControl.touched)}\">\n\t<fieldset class=\"inline\">\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </legend>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"yesNoControl.errors && (yesNoControl.dirty || yesNoControl.touched)\">\n {{yesNoControl.errors | ccdFirstError:caseField.label}}\n </span>\n\n <div [id]=\"createElementId('radio')\">\n \t <div class=\"multiple-choice\" *ngFor=\"let value of yesNoValues\" [ngClass]=\"{selected: yesNoControl.value === value}\">\n \t <input class=\"form-control\" [id]=\"createElementId(value)\" [attr.name]=\"id()\" [name]=\"id()\" type=\"radio\" [formControl]=\"yesNoControl\" [value]=\"value\">\n <label class=\"form-label\" [for]=\"createElementId(value)\">{{caseField.label ? (caseField.label | rpxTranslate:null:value) : value}}</label>\n \t </div>\n </div>\n\t</fieldset>\n</div>\n" }]
|
|
21656
21671
|
}], () => [{ type: YesNoService }], null); })();
|
|
21657
21672
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteYesNoFieldComponent, { className: "WriteYesNoFieldComponent", filePath: "lib/shared/components/palette/yes-no/write-yes-no-field.component.ts", lineNumber: 10 }); })();
|
|
21658
21673
|
|
|
@@ -21893,11 +21908,11 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
21893
21908
|
} if (rf & 2) {
|
|
21894
21909
|
i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
|
|
21895
21910
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
21896
|
-
} }, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
21911
|
+
} }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
21897
21912
|
}
|
|
21898
21913
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
|
|
21899
21914
|
type: Component,
|
|
21900
|
-
args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
21915
|
+
args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
21901
21916
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { caseFields: [{
|
|
21902
21917
|
type: Input
|
|
21903
21918
|
}], fieldContainer: [{
|