@opencitylabs/formio-custom-components 0.8.6 → 0.8.8
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/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8003,13 +8003,7 @@ var mr = e.components.select, hr = {
|
|
|
8003
8003
|
}
|
|
8004
8004
|
}
|
|
8005
8005
|
}
|
|
8006
|
-
findItem(e) {
|
|
8007
|
-
if (e == null) return null;
|
|
8008
|
-
let t = this.component.valueProperty;
|
|
8009
|
-
return t ? (this.defaultDownloadedResources || []).find((n) => n[t] === e) || null : typeof e == "object" ? (this.defaultDownloadedResources || []).find((t) => JSON.stringify(t) === JSON.stringify(e)) || e : null;
|
|
8010
|
-
}
|
|
8011
8006
|
attach(e) {
|
|
8012
|
-
this.options.readOnly && (this.activated = !0);
|
|
8013
8007
|
let t = super.attach(e);
|
|
8014
8008
|
return (Array.isArray(this.refs.autocompleteInput) ? this.refs.autocompleteInput : [this.refs.autocompleteInput]).forEach((e) => {
|
|
8015
8009
|
e?.parentNode && e.parentNode.removeChild(e);
|
|
@@ -8184,7 +8178,13 @@ var Cr = class extends br {
|
|
|
8184
8178
|
detach() {
|
|
8185
8179
|
return this._pdndChangeListener && this.root?.off?.("change", this._pdndChangeListener), super.detach();
|
|
8186
8180
|
}
|
|
8187
|
-
}, wr = {
|
|
8181
|
+
}, wr = e.components.htmlelement, Tr = class extends wr {
|
|
8182
|
+
get content() {
|
|
8183
|
+
if (this.builderMode) return this.component.content;
|
|
8184
|
+
let e = this.component.content || "", t = this.t(e, { _userInput: !0 });
|
|
8185
|
+
return t && t !== e ? t : super.content;
|
|
8186
|
+
}
|
|
8187
|
+
}, Er = {
|
|
8188
8188
|
pagebreak: _e,
|
|
8189
8189
|
dynamic_calendar: ft,
|
|
8190
8190
|
calendar: vt,
|
|
@@ -8193,15 +8193,16 @@ var Cr = class extends br {
|
|
|
8193
8193
|
address_map: or,
|
|
8194
8194
|
"list-services": dr,
|
|
8195
8195
|
select: gr,
|
|
8196
|
-
form: Cr
|
|
8196
|
+
form: Cr,
|
|
8197
|
+
htmlelement: Tr
|
|
8197
8198
|
};
|
|
8198
|
-
function
|
|
8199
|
+
function Dr(e) {
|
|
8199
8200
|
if (!e || typeof e.addComponent != "function") throw Error("registerFormioComponents requires Formio Components with addComponent(name, component)");
|
|
8200
|
-
return Object.entries(
|
|
8201
|
+
return Object.entries(Er).forEach(([t, n]) => {
|
|
8201
8202
|
e.addComponent(t, n);
|
|
8202
|
-
}),
|
|
8203
|
+
}), Er;
|
|
8203
8204
|
}
|
|
8204
8205
|
//#endregion
|
|
8205
|
-
export { vt as Calendar, Pt as CalendarAdvanced, or as FormioAddressMap, ft as FormioDynamicCalendar, dr as FormioListServices, _e as FormioPageBreak, Cr as NestedForm, Xn as SdcFile, gr as Select,
|
|
8206
|
+
export { vt as Calendar, Pt as CalendarAdvanced, or as FormioAddressMap, ft as FormioDynamicCalendar, dr as FormioListServices, _e as FormioPageBreak, Tr as HtmlElement, Cr as NestedForm, Xn as SdcFile, gr as Select, Er as formioCustomComponents, Dr as registerFormioComponents, fr as resetValueOnEditField, pr as withResetValueOn };
|
|
8206
8207
|
|
|
8207
8208
|
//# sourceMappingURL=index.js.map
|