@hmcts/ccd-case-ui-toolkit 7.2.4 → 7.2.5
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 +46 -21
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +45 -22
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +5 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15071,7 +15071,7 @@ class FileUploadStateService {
|
|
|
15071
15071
|
const _c0$R = ["fileInput"];
|
|
15072
15072
|
const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
|
|
15073
15073
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15074
|
-
i0.ɵɵelementStart(0, "span",
|
|
15074
|
+
i0.ɵɵelementStart(0, "span", 15)(1, "markdown");
|
|
15075
15075
|
i0.ɵɵtext(2);
|
|
15076
15076
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
15077
15077
|
i0.ɵɵelementEnd()();
|
|
@@ -15081,7 +15081,7 @@ function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
15081
15081
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx_r1.caseField.hint_text));
|
|
15082
15082
|
} }
|
|
15083
15083
|
function WriteDocumentFieldComponent_ccd_read_document_field_11_Template(rf, ctx) { if (rf & 1) {
|
|
15084
|
-
i0.ɵɵelement(0, "ccd-read-document-field",
|
|
15084
|
+
i0.ɵɵelement(0, "ccd-read-document-field", 16);
|
|
15085
15085
|
} if (rf & 2) {
|
|
15086
15086
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15087
15087
|
i0.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
@@ -15093,6 +15093,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15093
15093
|
dialog;
|
|
15094
15094
|
fileUploadStateService;
|
|
15095
15095
|
jurisdictionService;
|
|
15096
|
+
rpxTranslationService;
|
|
15096
15097
|
static DOCUMENT_URL = 'document_url';
|
|
15097
15098
|
static DOCUMENT_BINARY_URL = 'document_binary_url';
|
|
15098
15099
|
static DOCUMENT_FILENAME = 'document_filename';
|
|
@@ -15103,6 +15104,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15103
15104
|
static UPLOAD_ERROR_INVALID_FORMAT = 'Document format is not supported';
|
|
15104
15105
|
static UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
15105
15106
|
static ERROR_UPLOADING_FILE = 'Error Uploading File';
|
|
15107
|
+
static NO_FILE_CHOSED = 'No file chosen';
|
|
15106
15108
|
fileInput;
|
|
15107
15109
|
selectedFile;
|
|
15108
15110
|
valid = true;
|
|
@@ -15114,12 +15116,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15114
15116
|
dialogSubscription;
|
|
15115
15117
|
caseNotifierSubscription;
|
|
15116
15118
|
jurisdictionSubs;
|
|
15119
|
+
fileName = WriteDocumentFieldComponent.NO_FILE_CHOSED;
|
|
15117
15120
|
uploadedDocument;
|
|
15118
15121
|
dialogConfig;
|
|
15119
15122
|
secureModeOn;
|
|
15120
15123
|
jurisdictionId;
|
|
15121
15124
|
caseTypeId;
|
|
15122
|
-
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService) {
|
|
15125
|
+
constructor(appConfig, caseNotifier, documentManagement, dialog, fileUploadStateService, jurisdictionService, rpxTranslationService) {
|
|
15123
15126
|
super();
|
|
15124
15127
|
this.appConfig = appConfig;
|
|
15125
15128
|
this.caseNotifier = caseNotifier;
|
|
@@ -15127,9 +15130,15 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15127
15130
|
this.dialog = dialog;
|
|
15128
15131
|
this.fileUploadStateService = fileUploadStateService;
|
|
15129
15132
|
this.jurisdictionService = jurisdictionService;
|
|
15133
|
+
this.rpxTranslationService = rpxTranslationService;
|
|
15130
15134
|
}
|
|
15131
15135
|
ngOnInit() {
|
|
15132
15136
|
this.secureModeOn = this.appConfig.getDocumentSecureMode();
|
|
15137
|
+
if (this.rpxTranslationService.language === 'cy') {
|
|
15138
|
+
this.rpxTranslationService.getTranslation$(WriteDocumentFieldComponent.NO_FILE_CHOSED).subscribe((translation) => {
|
|
15139
|
+
this.fileName = translation;
|
|
15140
|
+
});
|
|
15141
|
+
}
|
|
15133
15142
|
if (this.secureModeOn) {
|
|
15134
15143
|
this.subscribeToCaseDetails();
|
|
15135
15144
|
}
|
|
@@ -15188,6 +15197,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15188
15197
|
}
|
|
15189
15198
|
else if (fileInput.target.files[0]) {
|
|
15190
15199
|
this.selectedFile = fileInput.target.files[0];
|
|
15200
|
+
this.fileName = fileInput.target.files[0].name;
|
|
15191
15201
|
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
|
|
15192
15202
|
const documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
15193
15203
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
@@ -15422,13 +15432,13 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15422
15432
|
this.valid = false;
|
|
15423
15433
|
this.fileUploadStateService.setUploadInProgress(false);
|
|
15424
15434
|
}
|
|
15425
|
-
static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService)); };
|
|
15435
|
+
static ɵfac = function WriteDocumentFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteDocumentFieldComponent)(i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(FileUploadStateService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
|
|
15426
15436
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDocumentFieldComponent, selectors: [["ccd-write-document-field"]], viewQuery: function WriteDocumentFieldComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15427
15437
|
i0.ɵɵviewQuery(_c0$R, 5);
|
|
15428
15438
|
} if (rf & 2) {
|
|
15429
15439
|
let _t;
|
|
15430
15440
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
15431
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
15441
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 28, consts: [["fileInput", ""], [1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["role", "alert", "tabindex", "0", 1, "error-message", 3, "hidden"], [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"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15432
15442
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
15433
15443
|
i0.ɵɵelementStart(0, "div", 1)(1, "label", 2)(2, "span", 3);
|
|
15434
15444
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
@@ -15446,49 +15456,62 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15446
15456
|
i0.ɵɵelementStart(12, "div", 7)(13, "div", 8);
|
|
15447
15457
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_13_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); })("keyup", function WriteDocumentFieldComponent_Template_div_keyup_13_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); });
|
|
15448
15458
|
i0.ɵɵelementEnd();
|
|
15449
|
-
i0.ɵɵelementStart(14, "
|
|
15450
|
-
i0.ɵɵ
|
|
15459
|
+
i0.ɵɵelementStart(14, "div", 9)(15, "label", 10);
|
|
15460
|
+
i0.ɵɵtext(16);
|
|
15461
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
15462
|
+
i0.ɵɵelementEnd();
|
|
15463
|
+
i0.ɵɵelementStart(18, "span", 11)(19, "span");
|
|
15464
|
+
i0.ɵɵtext(20);
|
|
15451
15465
|
i0.ɵɵelementEnd()()();
|
|
15452
|
-
i0.ɵɵelementStart(
|
|
15453
|
-
i0.ɵɵlistener("
|
|
15454
|
-
i0.ɵɵ
|
|
15455
|
-
i0.ɵɵ
|
|
15466
|
+
i0.ɵɵelementStart(21, "input", 12, 0);
|
|
15467
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_21_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_21_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
|
|
15468
|
+
i0.ɵɵelementEnd()()();
|
|
15469
|
+
i0.ɵɵelementStart(23, "div", 13)(24, "button", 14);
|
|
15470
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_24_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
|
|
15471
|
+
i0.ɵɵtext(25);
|
|
15472
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
15456
15473
|
i0.ɵɵelementEnd()();
|
|
15457
15474
|
} if (rf & 2) {
|
|
15458
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
15475
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c1$l, !ctx.valid));
|
|
15459
15476
|
i0.ɵɵadvance();
|
|
15460
15477
|
i0.ɵɵproperty("for", ctx.id());
|
|
15461
15478
|
i0.ɵɵadvance();
|
|
15462
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3,
|
|
15479
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 16, ctx.caseField));
|
|
15463
15480
|
i0.ɵɵadvance(2);
|
|
15464
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5,
|
|
15481
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 18, ctx.caseField));
|
|
15465
15482
|
i0.ɵɵadvance(2);
|
|
15466
15483
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
15467
15484
|
i0.ɵɵadvance();
|
|
15468
15485
|
i0.ɵɵproperty("hidden", !(ctx.fileUploadMessages && !ctx.valid));
|
|
15469
15486
|
i0.ɵɵadvance();
|
|
15470
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
15487
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 20, ctx.fileUploadMessages), " ");
|
|
15471
15488
|
i0.ɵɵadvance(3);
|
|
15472
15489
|
i0.ɵɵproperty("ngIf", ctx.caseField);
|
|
15473
15490
|
i0.ɵɵadvance(2);
|
|
15474
15491
|
i0.ɵɵproperty("id", ctx.createElementId("fileInputWrapper"));
|
|
15492
|
+
i0.ɵɵadvance(2);
|
|
15493
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
15494
|
+
i0.ɵɵadvance();
|
|
15495
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 22, "Choose file"), " ");
|
|
15496
|
+
i0.ɵɵadvance(4);
|
|
15497
|
+
i0.ɵɵtextInterpolate(ctx.fileName);
|
|
15475
15498
|
i0.ɵɵadvance();
|
|
15476
15499
|
i0.ɵɵpropertyInterpolate("accept", ctx.caseField.field_type.regular_expression);
|
|
15477
15500
|
i0.ɵɵproperty("id", ctx.id());
|
|
15478
15501
|
i0.ɵɵadvance(3);
|
|
15479
15502
|
i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
|
|
15480
15503
|
i0.ɵɵadvance();
|
|
15481
|
-
i0.ɵɵ
|
|
15482
|
-
} },
|
|
15504
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "Cancel upload"), " ");
|
|
15505
|
+
} }, 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}"] });
|
|
15483
15506
|
}
|
|
15484
15507
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
15485
15508
|
type: Component,
|
|
15486
|
-
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\">\n <markdown>{{ caseField.hint_text | rpxTranslate }}</markdown>\n </span>\n <span class=\"error-message\"\n role=\"alert\"\n tabindex=\"0\"\n [hidden]=\"!(fileUploadMessages && !valid)\">\n {{ fileUploadMessages | rpxTranslate }}\n </span>\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style
|
|
15487
|
-
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
|
|
15509
|
+
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\">\n <markdown>{{ caseField.hint_text | rpxTranslate }}</markdown>\n </span>\n <span class=\"error-message\"\n role=\"alert\"\n tabindex=\"0\"\n [hidden]=\"!(fileUploadMessages && !valid)\">\n {{ fileUploadMessages | rpxTranslate }}\n </span>\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></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}}\n </label>\n <span class=\"form-control bottom-30\">\n <span>{{fileName}}</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, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\"\n #fileInput/>\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 {{'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"] }]
|
|
15510
|
+
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }, { type: i1.RpxTranslationService }], { fileInput: [{
|
|
15488
15511
|
type: ViewChild,
|
|
15489
15512
|
args: ['fileInput', { static: false }]
|
|
15490
15513
|
}] }); })();
|
|
15491
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber:
|
|
15514
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 25 }); })();
|
|
15492
15515
|
|
|
15493
15516
|
class DynamicListPipe {
|
|
15494
15517
|
static EMPTY = '';
|
|
@@ -23761,11 +23784,11 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
23761
23784
|
} if (rf & 2) {
|
|
23762
23785
|
i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
|
|
23763
23786
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
23764
|
-
} }, 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}"] });
|
|
23787
|
+
} }, 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}"] });
|
|
23765
23788
|
}
|
|
23766
23789
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
|
|
23767
23790
|
type: Component,
|
|
23768
|
-
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"] }]
|
|
23791
|
+
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"] }]
|
|
23769
23792
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { caseFields: [{
|
|
23770
23793
|
type: Input
|
|
23771
23794
|
}], fieldContainer: [{
|