@opencitylabs/formio-custom-components 0.8.7 → 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 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8178,7 +8178,13 @@ var Cr = class extends br {
|
|
|
8178
8178
|
detach() {
|
|
8179
8179
|
return this._pdndChangeListener && this.root?.off?.("change", this._pdndChangeListener), super.detach();
|
|
8180
8180
|
}
|
|
8181
|
-
}, 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 = {
|
|
8182
8188
|
pagebreak: _e,
|
|
8183
8189
|
dynamic_calendar: ft,
|
|
8184
8190
|
calendar: vt,
|
|
@@ -8187,15 +8193,16 @@ var Cr = class extends br {
|
|
|
8187
8193
|
address_map: or,
|
|
8188
8194
|
"list-services": dr,
|
|
8189
8195
|
select: gr,
|
|
8190
|
-
form: Cr
|
|
8196
|
+
form: Cr,
|
|
8197
|
+
htmlelement: Tr
|
|
8191
8198
|
};
|
|
8192
|
-
function
|
|
8199
|
+
function Dr(e) {
|
|
8193
8200
|
if (!e || typeof e.addComponent != "function") throw Error("registerFormioComponents requires Formio Components with addComponent(name, component)");
|
|
8194
|
-
return Object.entries(
|
|
8201
|
+
return Object.entries(Er).forEach(([t, n]) => {
|
|
8195
8202
|
e.addComponent(t, n);
|
|
8196
|
-
}),
|
|
8203
|
+
}), Er;
|
|
8197
8204
|
}
|
|
8198
8205
|
//#endregion
|
|
8199
|
-
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 };
|
|
8200
8207
|
|
|
8201
8208
|
//# sourceMappingURL=index.js.map
|