@hmcts/ccd-case-ui-toolkit 7.3.98 → 7.3.99-exui-5069
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.
|
@@ -6308,7 +6308,7 @@ class FormValidatorsService {
|
|
|
6308
6308
|
// Matches: [text](url), , <img ...>, <a ...>...</a>
|
|
6309
6309
|
const inlineMarkdownPattern = /(?:!?\[[^\]]{0,500}\]\([^)]{0,500}\)|<(?:img\b[^>]{0,500}>|a\b[^>]{0,500}>[\s\S]*?<\/a>))/i;
|
|
6310
6310
|
// Matches: [text][id], ![alt][id], and the collapsed form [text][]
|
|
6311
|
-
const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\
|
|
6311
|
+
const referenceBoxPattern = /(!)?\[((?:[^[\]\\]|\\.){0,500})\]\[([^\]]{0,100})\](?!\s*\/)/;
|
|
6312
6312
|
// Matches: autolinks such as <http://example.com>
|
|
6313
6313
|
const autolinkPattern = /<(?:[A-Za-z][A-Za-z0-9+.-]*:[^ <>\n]*|[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+)>/;
|
|
6314
6314
|
// Matches: bare www.example.com autolinks
|
|
@@ -14132,57 +14132,67 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14132
14132
|
const _c0$$ = ["writeComplexFieldComponent"];
|
|
14133
14133
|
const _c1$q = a0 => ({ "form-group-error": a0 });
|
|
14134
14134
|
const _c2$4 = a0 => ({ "govuk-input--error": a0 });
|
|
14135
|
-
function
|
|
14136
|
-
i0.ɵɵelementStart(0, "span",
|
|
14135
|
+
function WriteAddressFieldComponent_div_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
14136
|
+
i0.ɵɵelementStart(0, "span", 9);
|
|
14137
|
+
i0.ɵɵelement(1, "ccd-markdown", 10);
|
|
14138
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14139
|
+
i0.ɵɵelementEnd();
|
|
14140
|
+
} if (rf & 2) {
|
|
14141
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
14142
|
+
i0.ɵɵadvance();
|
|
14143
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField.hint_text));
|
|
14144
|
+
} }
|
|
14145
|
+
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
14146
|
+
i0.ɵɵelementStart(0, "span", 17);
|
|
14137
14147
|
i0.ɵɵtext(1);
|
|
14138
14148
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14139
14149
|
i0.ɵɵelementEnd();
|
|
14140
14150
|
} if (rf & 2) {
|
|
14141
|
-
const
|
|
14151
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
14142
14152
|
i0.ɵɵadvance();
|
|
14143
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14153
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
|
|
14144
14154
|
} }
|
|
14145
|
-
function
|
|
14146
|
-
const
|
|
14147
|
-
i0.ɵɵelementStart(0, "div",
|
|
14155
|
+
function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
14156
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
14157
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "label", 12)(2, "span", 13);
|
|
14148
14158
|
i0.ɵɵtext(3);
|
|
14149
14159
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
14150
14160
|
i0.ɵɵelementEnd()();
|
|
14151
|
-
i0.ɵɵtemplate(5,
|
|
14152
|
-
i0.ɵɵelement(6, "input",
|
|
14153
|
-
i0.ɵɵelementStart(7, "button",
|
|
14154
|
-
i0.ɵɵlistener("click", function
|
|
14161
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 14);
|
|
14162
|
+
i0.ɵɵelement(6, "input", 15);
|
|
14163
|
+
i0.ɵɵelementStart(7, "button", 16);
|
|
14164
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.findAddress()); });
|
|
14155
14165
|
i0.ɵɵtext(8);
|
|
14156
14166
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
14157
14167
|
i0.ɵɵelementEnd()();
|
|
14158
14168
|
} if (rf & 2) {
|
|
14159
|
-
const
|
|
14160
|
-
i0.ɵɵproperty("id",
|
|
14169
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
14170
|
+
i0.ɵɵproperty("id", ctx_r0.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(14, _c1$q, ctx_r0.missingPostcode));
|
|
14161
14171
|
i0.ɵɵadvance();
|
|
14162
|
-
i0.ɵɵproperty("for",
|
|
14172
|
+
i0.ɵɵproperty("for", ctx_r0.createElementId("postcodeInput"));
|
|
14163
14173
|
i0.ɵɵadvance(2);
|
|
14164
14174
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 10, "Enter a UK postcode"));
|
|
14165
14175
|
i0.ɵɵadvance(2);
|
|
14166
|
-
i0.ɵɵproperty("ngIf",
|
|
14176
|
+
i0.ɵɵproperty("ngIf", ctx_r0.missingPostcode);
|
|
14167
14177
|
i0.ɵɵadvance();
|
|
14168
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$4,
|
|
14178
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c2$4, ctx_r0.missingPostcode))("id", ctx_r0.createElementId("postcodeInput"))("formControl", ctx_r0.postcode);
|
|
14169
14179
|
i0.ɵɵadvance();
|
|
14170
|
-
i0.ɵɵproperty("disabled",
|
|
14180
|
+
i0.ɵɵproperty("disabled", ctx_r0.loadingAddresses);
|
|
14171
14181
|
i0.ɵɵadvance();
|
|
14172
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12,
|
|
14182
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 12, ctx_r0.loadingAddresses ? "Finding addresses..." : "Find address"), " ");
|
|
14173
14183
|
} }
|
|
14174
|
-
function
|
|
14175
|
-
i0.ɵɵelementStart(0, "span",
|
|
14184
|
+
function WriteAddressFieldComponent_div_1_div_6_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
14185
|
+
i0.ɵɵelementStart(0, "span", 17);
|
|
14176
14186
|
i0.ɵɵtext(1);
|
|
14177
14187
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14178
14188
|
i0.ɵɵelementEnd();
|
|
14179
14189
|
} if (rf & 2) {
|
|
14180
|
-
const
|
|
14190
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
14181
14191
|
i0.ɵɵadvance();
|
|
14182
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14192
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage));
|
|
14183
14193
|
} }
|
|
14184
|
-
function
|
|
14185
|
-
i0.ɵɵelementStart(0, "option",
|
|
14194
|
+
function WriteAddressFieldComponent_div_1_div_6_option_7_Template(rf, ctx) { if (rf & 1) {
|
|
14195
|
+
i0.ɵɵelementStart(0, "option", 22);
|
|
14186
14196
|
i0.ɵɵtext(1);
|
|
14187
14197
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14188
14198
|
i0.ɵɵelementEnd();
|
|
@@ -14191,19 +14201,19 @@ function WriteAddressFieldComponent_div_1_div_5_option_7_Template(rf, ctx) { if
|
|
|
14191
14201
|
i0.ɵɵadvance();
|
|
14192
14202
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "No address found"), " ");
|
|
14193
14203
|
} }
|
|
14194
|
-
function
|
|
14195
|
-
i0.ɵɵelementStart(0, "option",
|
|
14204
|
+
function WriteAddressFieldComponent_div_1_div_6_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
14205
|
+
i0.ɵɵelementStart(0, "option", 22);
|
|
14196
14206
|
i0.ɵɵtext(1);
|
|
14197
14207
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14198
14208
|
i0.ɵɵelementEnd();
|
|
14199
14209
|
} if (rf & 2) {
|
|
14200
|
-
const
|
|
14210
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
14201
14211
|
i0.ɵɵproperty("ngValue", undefined);
|
|
14202
14212
|
i0.ɵɵadvance();
|
|
14203
|
-
i0.ɵɵtextInterpolate2(" ",
|
|
14213
|
+
i0.ɵɵtextInterpolate2(" ", ctx_r0.addressOptions.length, " ", i0.ɵɵpipeBind1(2, 3, ctx_r0.addressOptions.length === 1 ? "address found" : "addresses found"), " ");
|
|
14204
14214
|
} }
|
|
14205
|
-
function
|
|
14206
|
-
i0.ɵɵelementStart(0, "option",
|
|
14215
|
+
function WriteAddressFieldComponent_div_1_div_6_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
14216
|
+
i0.ɵɵelementStart(0, "option", 22);
|
|
14207
14217
|
i0.ɵɵtext(1);
|
|
14208
14218
|
i0.ɵɵelementEnd();
|
|
14209
14219
|
} if (rf & 2) {
|
|
@@ -14212,39 +14222,39 @@ function WriteAddressFieldComponent_div_1_div_5_option_9_Template(rf, ctx) { if
|
|
|
14212
14222
|
i0.ɵɵadvance();
|
|
14213
14223
|
i0.ɵɵtextInterpolate1(" ", addressOption_r4.description, " ");
|
|
14214
14224
|
} }
|
|
14215
|
-
function
|
|
14225
|
+
function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
14216
14226
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
14217
|
-
i0.ɵɵelementStart(0, "div",
|
|
14227
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "label", 12)(2, "span", 13);
|
|
14218
14228
|
i0.ɵɵtext(3);
|
|
14219
14229
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
14220
14230
|
i0.ɵɵelementEnd()();
|
|
14221
|
-
i0.ɵɵtemplate(5,
|
|
14222
|
-
i0.ɵɵelementStart(6, "select",
|
|
14223
|
-
i0.ɵɵlistener("change", function
|
|
14224
|
-
i0.ɵɵtemplate(7,
|
|
14231
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_6_span_5_Template, 3, 3, "span", 14);
|
|
14232
|
+
i0.ɵɵelementStart(6, "select", 19);
|
|
14233
|
+
i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_6_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.addressSelected()); });
|
|
14234
|
+
i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_div_6_option_7_Template, 3, 4, "option", 20)(8, WriteAddressFieldComponent_div_1_div_6_option_8_Template, 3, 5, "option", 20)(9, WriteAddressFieldComponent_div_1_div_6_option_9_Template, 2, 2, "option", 21);
|
|
14225
14235
|
i0.ɵɵelementEnd()();
|
|
14226
14236
|
} if (rf & 2) {
|
|
14227
|
-
const
|
|
14228
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$q,
|
|
14237
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
14238
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$q, ctx_r0.noAddressSelected));
|
|
14229
14239
|
i0.ɵɵadvance();
|
|
14230
|
-
i0.ɵɵproperty("for",
|
|
14240
|
+
i0.ɵɵproperty("for", ctx_r0.createElementId("addressList"));
|
|
14231
14241
|
i0.ɵɵadvance(2);
|
|
14232
14242
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Select an address"));
|
|
14233
14243
|
i0.ɵɵadvance(2);
|
|
14234
|
-
i0.ɵɵproperty("ngIf",
|
|
14244
|
+
i0.ɵɵproperty("ngIf", ctx_r0.noAddressSelected);
|
|
14235
14245
|
i0.ɵɵadvance();
|
|
14236
|
-
i0.ɵɵproperty("id",
|
|
14246
|
+
i0.ɵɵproperty("id", ctx_r0.createElementId("addressList"))("formControl", ctx_r0.addressList);
|
|
14237
14247
|
i0.ɵɵadvance();
|
|
14238
|
-
i0.ɵɵproperty("ngIf",
|
|
14248
|
+
i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length === 0);
|
|
14239
14249
|
i0.ɵɵadvance();
|
|
14240
|
-
i0.ɵɵproperty("ngIf",
|
|
14250
|
+
i0.ɵɵproperty("ngIf", ctx_r0.addressOptions.length > 0);
|
|
14241
14251
|
i0.ɵɵadvance();
|
|
14242
|
-
i0.ɵɵproperty("ngForOf",
|
|
14252
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.addressOptions);
|
|
14243
14253
|
} }
|
|
14244
|
-
function
|
|
14254
|
+
function WriteAddressFieldComponent_div_1_a_7_Template(rf, ctx) { if (rf & 1) {
|
|
14245
14255
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
14246
|
-
i0.ɵɵelementStart(0, "a",
|
|
14247
|
-
i0.ɵɵlistener("click", function
|
|
14256
|
+
i0.ɵɵelementStart(0, "a", 23);
|
|
14257
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_7_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
14248
14258
|
i0.ɵɵtext(1);
|
|
14249
14259
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14250
14260
|
i0.ɵɵelementEnd();
|
|
@@ -14257,18 +14267,20 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
14257
14267
|
i0.ɵɵtext(2);
|
|
14258
14268
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14259
14269
|
i0.ɵɵelementEnd();
|
|
14260
|
-
i0.ɵɵtemplate(4,
|
|
14270
|
+
i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_span_4_Template, 3, 3, "span", 5)(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 18, "div", 6)(6, WriteAddressFieldComponent_div_1_div_6_Template, 10, 13, "div", 7)(7, WriteAddressFieldComponent_div_1_a_7_Template, 3, 3, "a", 8);
|
|
14261
14271
|
i0.ɵɵelementEnd();
|
|
14262
14272
|
} if (rf & 2) {
|
|
14263
|
-
const
|
|
14273
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
14264
14274
|
i0.ɵɵadvance(2);
|
|
14265
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
14275
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx_r0.caseField));
|
|
14266
14276
|
i0.ɵɵadvance(2);
|
|
14267
|
-
i0.ɵɵproperty("ngIf",
|
|
14277
|
+
i0.ɵɵproperty("ngIf", ctx_r0.caseField.hint_text);
|
|
14278
|
+
i0.ɵɵadvance();
|
|
14279
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
|
|
14268
14280
|
i0.ɵɵadvance();
|
|
14269
|
-
i0.ɵɵproperty("ngIf",
|
|
14281
|
+
i0.ɵɵproperty("ngIf", ctx_r0.addressOptions);
|
|
14270
14282
|
i0.ɵɵadvance();
|
|
14271
|
-
i0.ɵɵproperty("ngIf", !
|
|
14283
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.shouldShowDetailFields());
|
|
14272
14284
|
} }
|
|
14273
14285
|
class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
14274
14286
|
isCompoundPipe;
|
|
@@ -14402,9 +14414,9 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14402
14414
|
let _t;
|
|
14403
14415
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.writeComplexFieldComponent = _t.first);
|
|
14404
14416
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.focusElementDirectives = _t);
|
|
14405
|
-
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14417
|
+
} }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [["writeComplexFieldComponent", ""], [1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], [1, "heading-h2"], ["class", "form-hint", 4, "ngIf"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 3, "ngClass", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "#", 3, "click", 4, "ngIf"], [1, "form-hint"], [3, "content"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click", "disabled"], [1, "error-message"], ["id", "selectAddress", 1, "form-group", 3, "ngClass"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "change", "id", "formControl"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "#", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14406
14418
|
i0.ɵɵelementStart(0, "div", 1);
|
|
14407
|
-
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template,
|
|
14419
|
+
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 8, 7, "div", 2);
|
|
14408
14420
|
i0.ɵɵelement(2, "ccd-write-complex-type-field", 3, 0);
|
|
14409
14421
|
i0.ɵɵelementEnd();
|
|
14410
14422
|
} if (rf & 2) {
|
|
@@ -14417,7 +14429,7 @@ class WriteAddressFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14417
14429
|
}
|
|
14418
14430
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
14419
14431
|
type: Component,
|
|
14420
|
-
args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
|
|
14432
|
+
args: [{ selector: 'ccd-write-address-field', standalone: false, template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">\n <ccd-markdown [content]=\"caseField.hint_text | rpxTranslate\"></ccd-markdown>\n </span>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{errorMessage | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\" [disabled]=\"loadingAddresses\">\n {{(loadingAddresses ? 'Finding addresses...' : 'Find address') | rpxTranslate}}\n </button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\" [ngClass]=\"{'form-group-error': noAddressSelected}\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"noAddressSelected\">{{errorMessage | rpxTranslate}}</span>\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngIf=\"addressOptions.length === 0\" [ngValue]=\"undefined\">\n {{'No address found' | rpxTranslate}}\n </option>\n <option *ngIf=\"addressOptions.length > 0\" [ngValue]=\"undefined\">\n {{addressOptions.length}} {{(addressOptions.length === 1 ? 'address found' : 'addresses found') | rpxTranslate}}\n </option>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
|
|
14421
14433
|
}], () => [{ type: AddressesService }, { type: IsCompoundPipe }], { writeComplexFieldComponent: [{
|
|
14422
14434
|
type: ViewChild,
|
|
14423
14435
|
args: ['writeComplexFieldComponent', { static: false }]
|
|
@@ -26578,6 +26590,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
26578
26590
|
},
|
|
26579
26591
|
plugins: [
|
|
26580
26592
|
new Plugin({
|
|
26593
|
+
appendTransaction: (transactions, oldState, newState) => this.renumberContinuedOrderedLists(transactions, oldState, newState),
|
|
26581
26594
|
props: {
|
|
26582
26595
|
handlePaste: (_view, event) => this.handleEditorPaste(event),
|
|
26583
26596
|
handleDOMEvents: {
|
|
@@ -27061,6 +27074,71 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27061
27074
|
? candidateOrder === adjacentOrder + adjacentList.childCount
|
|
27062
27075
|
: candidateOrder + candidateList.childCount === adjacentOrder;
|
|
27063
27076
|
}
|
|
27077
|
+
renumberContinuedOrderedLists(transactions, oldState, newState) {
|
|
27078
|
+
if (!transactions.some((transaction) => transaction.docChanged)) {
|
|
27079
|
+
return null;
|
|
27080
|
+
}
|
|
27081
|
+
const oldChildren = [];
|
|
27082
|
+
let oldPosition = 0;
|
|
27083
|
+
oldState.doc.forEach((node) => {
|
|
27084
|
+
oldChildren.push({ node, position: oldPosition });
|
|
27085
|
+
oldPosition += node.nodeSize;
|
|
27086
|
+
});
|
|
27087
|
+
const mapPosition = (position) => transactions.reduce((mappedPosition, transaction) => transaction.mapping.map(mappedPosition, 1), position);
|
|
27088
|
+
const effectiveOrders = new Map();
|
|
27089
|
+
let result = null;
|
|
27090
|
+
oldChildren.forEach(({ node: candidate, position: candidatePosition }, candidateIndex) => {
|
|
27091
|
+
if (candidate.type.name !== 'ordered_list') {
|
|
27092
|
+
return;
|
|
27093
|
+
}
|
|
27094
|
+
let previousIndex = candidateIndex - 1;
|
|
27095
|
+
while (previousIndex >= 0 &&
|
|
27096
|
+
this.isOrderedListContinuationSeparator(oldChildren[previousIndex].node, candidate)) {
|
|
27097
|
+
previousIndex--;
|
|
27098
|
+
}
|
|
27099
|
+
if (previousIndex < 0) {
|
|
27100
|
+
return;
|
|
27101
|
+
}
|
|
27102
|
+
const previous = oldChildren[previousIndex].node;
|
|
27103
|
+
const previousPosition = oldChildren[previousIndex].position;
|
|
27104
|
+
if (previous.type.name !== 'ordered_list' ||
|
|
27105
|
+
!this.hasMatchingListType(candidate, previous) ||
|
|
27106
|
+
candidate.attrs.indent !== previous.attrs.indent ||
|
|
27107
|
+
!this.isSequentialList(candidate, previous, 1)) {
|
|
27108
|
+
return;
|
|
27109
|
+
}
|
|
27110
|
+
const mappedPreviousPosition = mapPosition(previousPosition);
|
|
27111
|
+
const mappedCandidatePosition = mapPosition(candidatePosition);
|
|
27112
|
+
const newPrevious = newState.doc.nodeAt(mappedPreviousPosition);
|
|
27113
|
+
const newCandidate = newState.doc.nodeAt(mappedCandidatePosition);
|
|
27114
|
+
if (!newPrevious || !newCandidate ||
|
|
27115
|
+
newPrevious.type.name !== 'ordered_list' || newCandidate.type.name !== 'ordered_list' ||
|
|
27116
|
+
newPrevious.firstChild?.textContent !== previous.firstChild?.textContent ||
|
|
27117
|
+
newCandidate.firstChild?.textContent !== candidate.firstChild?.textContent ||
|
|
27118
|
+
!this.hasMatchingListType(newCandidate, newPrevious) ||
|
|
27119
|
+
newCandidate.attrs.indent !== newPrevious.attrs.indent) {
|
|
27120
|
+
return;
|
|
27121
|
+
}
|
|
27122
|
+
const previousOrder = effectiveOrders.get(previousPosition) ?? (Number(newPrevious.attrs.order) || 1);
|
|
27123
|
+
const expectedOrder = previousOrder + newPrevious.childCount;
|
|
27124
|
+
effectiveOrders.set(candidatePosition, expectedOrder);
|
|
27125
|
+
if (Number(newCandidate.attrs.order) === expectedOrder) {
|
|
27126
|
+
return;
|
|
27127
|
+
}
|
|
27128
|
+
result = (result || newState.tr).setNodeMarkup(mappedCandidatePosition, newCandidate.type, {
|
|
27129
|
+
...newCandidate.attrs,
|
|
27130
|
+
order: expectedOrder
|
|
27131
|
+
});
|
|
27132
|
+
});
|
|
27133
|
+
return result;
|
|
27134
|
+
}
|
|
27135
|
+
isOrderedListContinuationSeparator(node, candidate) {
|
|
27136
|
+
if (this.isEmptyParagraph(node) || this.isListSectionHeading(node)) {
|
|
27137
|
+
return true;
|
|
27138
|
+
}
|
|
27139
|
+
return this.isList(node) &&
|
|
27140
|
+
(Number(node.attrs.indent) || 0) > (Number(candidate.attrs.indent) || 0);
|
|
27141
|
+
}
|
|
27064
27142
|
hasListContinuation(list) {
|
|
27065
27143
|
return list.type.name === 'ordered_list' || Boolean(list.attrs.continuationOrder);
|
|
27066
27144
|
}
|
|
@@ -27326,7 +27404,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27326
27404
|
this.removeUnsupportedMarkup(documentElement);
|
|
27327
27405
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27328
27406
|
this.removeUnsupportedAttributes(documentElement);
|
|
27329
|
-
|
|
27407
|
+
const sanitisedValue = sanitiseRichTextDocument(documentElement);
|
|
27408
|
+
return this.hasMeaningfulRichTextContent(documentElement)
|
|
27409
|
+
? this.normalisePlainTextValue(sanitisedValue)
|
|
27410
|
+
: '';
|
|
27330
27411
|
}
|
|
27331
27412
|
normaliseRichTextValue(value) {
|
|
27332
27413
|
if (!value) {
|
|
@@ -27344,7 +27425,15 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27344
27425
|
this.removeUnsupportedMarkup(documentElement);
|
|
27345
27426
|
this.normaliseDateRangeSpacing(documentElement);
|
|
27346
27427
|
this.removeUnsupportedAttributes(documentElement);
|
|
27347
|
-
|
|
27428
|
+
const sanitisedValue = sanitiseRichTextDocument(documentElement);
|
|
27429
|
+
return this.hasMeaningfulRichTextContent(documentElement)
|
|
27430
|
+
? this.normalisePlainTextValue(sanitisedValue)
|
|
27431
|
+
: '';
|
|
27432
|
+
}
|
|
27433
|
+
hasMeaningfulRichTextContent(documentElement) {
|
|
27434
|
+
const visibleText = (documentElement.body.textContent || '')
|
|
27435
|
+
.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
|
|
27436
|
+
return visibleText.length > 0 || Boolean(documentElement.body.querySelector('hr'));
|
|
27348
27437
|
}
|
|
27349
27438
|
syncAccessibilityLater() {
|
|
27350
27439
|
setTimeout(() => this.syncAccessibilityState());
|
|
@@ -27457,13 +27546,31 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
27457
27546
|
}
|
|
27458
27547
|
this.isNormalisingValue = true;
|
|
27459
27548
|
try {
|
|
27460
|
-
this.richTextAreaControl.setValue(normalisedValue, {
|
|
27461
|
-
|
|
27549
|
+
this.richTextAreaControl.setValue(normalisedValue, {
|
|
27550
|
+
emitEvent: false,
|
|
27551
|
+
emitModelToViewChange: false
|
|
27552
|
+
});
|
|
27553
|
+
if (normalisedValue || this.editorHasMeaningfulRichTextContent()) {
|
|
27554
|
+
this.editor.setContent(normalisedValue || '');
|
|
27555
|
+
}
|
|
27462
27556
|
}
|
|
27463
27557
|
finally {
|
|
27464
27558
|
this.isNormalisingValue = false;
|
|
27465
27559
|
}
|
|
27466
27560
|
}
|
|
27561
|
+
editorHasMeaningfulRichTextContent() {
|
|
27562
|
+
const documentNode = this.editor.view.state.doc;
|
|
27563
|
+
const visibleText = documentNode.textContent.replace(/[\s\u00a0\u200b-\u200d\ufeff]/g, '');
|
|
27564
|
+
let hasHorizontalRule = false;
|
|
27565
|
+
documentNode.descendants((node) => {
|
|
27566
|
+
if (node.type.name === 'horizontal_rule') {
|
|
27567
|
+
hasHorizontalRule = true;
|
|
27568
|
+
return false;
|
|
27569
|
+
}
|
|
27570
|
+
return !hasHorizontalRule;
|
|
27571
|
+
});
|
|
27572
|
+
return visibleText.length > 0 || hasHorizontalRule;
|
|
27573
|
+
}
|
|
27467
27574
|
richTextRequiredValidator() {
|
|
27468
27575
|
return (control) => {
|
|
27469
27576
|
const textValue = this.htmlToText(control.value);
|
|
@@ -28114,7 +28221,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28114
28221
|
}
|
|
28115
28222
|
return value
|
|
28116
28223
|
.replace(/!?\[([^\]]{0,500})\]\(([^)]{0,500})\)/g, (_match, text, url) => text || url)
|
|
28117
|
-
.replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\
|
|
28224
|
+
.replace(/!?\[((?:[^[\]\\]|\\.){0,500})\]\[[^\]]{0,100}\](?!\s*\/)/g, '$1');
|
|
28118
28225
|
}
|
|
28119
28226
|
unwrapElement(element) {
|
|
28120
28227
|
const parentNode = element.parentNode;
|
|
@@ -28133,6 +28240,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28133
28240
|
const state = {
|
|
28134
28241
|
listStack: [],
|
|
28135
28242
|
listParents: [],
|
|
28243
|
+
listRunDeclaredLevel: null,
|
|
28244
|
+
listRunVisualLevel: null,
|
|
28136
28245
|
resetListLevels: new Map(),
|
|
28137
28246
|
previousListId: null
|
|
28138
28247
|
};
|
|
@@ -28161,12 +28270,19 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28161
28270
|
resetWordListConversionState(state) {
|
|
28162
28271
|
state.listStack.length = 0;
|
|
28163
28272
|
state.listParents.length = 0;
|
|
28273
|
+
state.listRunDeclaredLevel = null;
|
|
28274
|
+
state.listRunVisualLevel = null;
|
|
28164
28275
|
state.resetListLevels.clear();
|
|
28165
28276
|
state.previousListId = null;
|
|
28166
28277
|
}
|
|
28167
28278
|
wordListRequestedLevel(paragraph, listId, wordListIndents, state) {
|
|
28168
28279
|
const declaredLevel = this.wordListDeclaredLevel(paragraph);
|
|
28169
|
-
|
|
28280
|
+
const visualLevel = this.wordListVisualLevel(paragraph, wordListIndents);
|
|
28281
|
+
if (state.listRunDeclaredLevel === null || state.listRunVisualLevel === null) {
|
|
28282
|
+
state.listRunDeclaredLevel = declaredLevel;
|
|
28283
|
+
state.listRunVisualLevel = visualLevel;
|
|
28284
|
+
}
|
|
28285
|
+
let requestedLevel = Math.max(1, declaredLevel - state.listRunDeclaredLevel + 1, visualLevel - state.listRunVisualLevel + 1);
|
|
28170
28286
|
const rememberedResetLevel = declaredLevel === 1 ? state.resetListLevels.get(listId) : null;
|
|
28171
28287
|
if (rememberedResetLevel) {
|
|
28172
28288
|
return Math.max(requestedLevel, rememberedResetLevel);
|
|
@@ -28187,7 +28303,8 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28187
28303
|
let currentList = state.listStack[stackIndex];
|
|
28188
28304
|
if (currentList?.tagName.toLowerCase() !== listType || currentList?.getAttribute('type') !== orderedListType ||
|
|
28189
28305
|
state.listParents[stackIndex] !== listParent) {
|
|
28190
|
-
|
|
28306
|
+
const rootIndent = level === 1 ? state.listRunVisualLevel - 1 : 0;
|
|
28307
|
+
currentList = this.createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent);
|
|
28191
28308
|
state.listStack[stackIndex] = currentList;
|
|
28192
28309
|
state.listParents[stackIndex] = listParent;
|
|
28193
28310
|
}
|
|
@@ -28195,15 +28312,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28195
28312
|
state.listParents.length = level;
|
|
28196
28313
|
return currentList;
|
|
28197
28314
|
}
|
|
28198
|
-
createWordList(documentElement, paragraph, listType, orderedListType, parentListItem) {
|
|
28315
|
+
createWordList(documentElement, paragraph, listType, orderedListType, parentListItem, rootIndent) {
|
|
28199
28316
|
const list = documentElement.createElement(listType);
|
|
28200
|
-
const listStart = this.wordListStart(paragraph);
|
|
28317
|
+
const listStart = this.wordListStart(paragraph, orderedListType);
|
|
28201
28318
|
if (listType === 'ol' && listStart > 1) {
|
|
28202
28319
|
list.setAttribute('start', listStart.toString());
|
|
28203
28320
|
}
|
|
28204
28321
|
if (orderedListType) {
|
|
28205
28322
|
list.setAttribute('type', orderedListType);
|
|
28206
28323
|
}
|
|
28324
|
+
if (rootIndent > 0) {
|
|
28325
|
+
list.dataset.indent = Math.min(6, rootIndent).toString();
|
|
28326
|
+
}
|
|
28207
28327
|
if (parentListItem) {
|
|
28208
28328
|
parentListItem.appendChild(list);
|
|
28209
28329
|
}
|
|
@@ -28262,11 +28382,10 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28262
28382
|
.find((element) => /mso-list:\s*Ignore/i.test(element.getAttribute('style') || ''));
|
|
28263
28383
|
return (markerElement ? markerElement.textContent : paragraph.textContent).trim();
|
|
28264
28384
|
}
|
|
28265
|
-
|
|
28266
|
-
const declaredLevel = this.wordListDeclaredLevel(paragraph);
|
|
28385
|
+
wordListVisualLevel(paragraph, wordListIndents) {
|
|
28267
28386
|
const indent = this.wordListIndent(paragraph);
|
|
28268
28387
|
const visualLevel = wordListIndents.indexOf(indent) + 1;
|
|
28269
|
-
return
|
|
28388
|
+
return visualLevel || 1;
|
|
28270
28389
|
}
|
|
28271
28390
|
wordListDeclaredLevel(paragraph) {
|
|
28272
28391
|
const match = (paragraph.getAttribute('style') || '').match(/mso-list:[^;]*\blevel(\d+)/i);
|
|
@@ -28287,9 +28406,18 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
28287
28406
|
const indent = Math.max(this.cssLengthToPixels(this.cssStyleLength(style, 'margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'margin-inline-start')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-para-margin-left')), this.cssLengthToPixels(this.cssStyleLength(style, 'mso-margin-left-alt')), this.cssLengthToPixels(this.cssMarginLeftLength(style)));
|
|
28288
28407
|
return Math.round(indent);
|
|
28289
28408
|
}
|
|
28290
|
-
wordListStart(paragraph) {
|
|
28291
|
-
const match =
|
|
28292
|
-
|
|
28409
|
+
wordListStart(paragraph, orderedListType) {
|
|
28410
|
+
const match = /^\(?([a-z]+|\d+)[.)]/i.exec(this.wordListMarker(paragraph));
|
|
28411
|
+
if (!match) {
|
|
28412
|
+
return 1;
|
|
28413
|
+
}
|
|
28414
|
+
if (/^\d+$/.test(match[1])) {
|
|
28415
|
+
return Number(match[1]);
|
|
28416
|
+
}
|
|
28417
|
+
if (orderedListType === 'a') {
|
|
28418
|
+
return match[1].toLowerCase().split('').reduce((start, character) => (start * 26) + character.charCodeAt(0) - 96, 0);
|
|
28419
|
+
}
|
|
28420
|
+
return 1;
|
|
28293
28421
|
}
|
|
28294
28422
|
copyListItemContents(documentElement, paragraph, listItem) {
|
|
28295
28423
|
Array.prototype.slice.call(paragraph.childNodes).forEach((childNode) => {
|
|
@@ -29008,7 +29136,7 @@ class WriteRichTextAreaFieldComponent extends AbstractFieldWriteComponent {
|
|
|
29008
29136
|
type: ViewChild,
|
|
29009
29137
|
args: ['editorHost']
|
|
29010
29138
|
}] }); })();
|
|
29011
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber:
|
|
29139
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteRichTextAreaFieldComponent, { className: "WriteRichTextAreaFieldComponent", filePath: "lib/shared/components/palette/rich-text-area/write-rich-text-area-field.component.ts", lineNumber: 139 }); })();
|
|
29012
29140
|
|
|
29013
29141
|
class ReadTextFieldComponent extends AbstractFieldReadComponent {
|
|
29014
29142
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(__ngFactoryType__) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(__ngFactoryType__ || ReadTextFieldComponent); }; })();
|
|
@@ -36925,7 +37053,7 @@ i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, function () { return [i5
|
|
|
36925
37053
|
// Components for linked cases
|
|
36926
37054
|
LinkedCasesToTableComponent,
|
|
36927
37055
|
LinkedCasesFromTableComponent]; }, []);
|
|
36928
|
-
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.SelectControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
37056
|
+
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.SelectControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, MarkdownComponent, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
36929
37057
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
|
|
36930
37058
|
FieldWriteComponent]; }, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
|
|
36931
37059
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i5.NgClass, i5.NgIf, i1$4.MarkdownComponent, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|