UNPKG

@farris/ui-vue

Version:

Farris Vue, a Farris Design based Vue3 component library.

1,365 lines 222 kB
var Kn = Object.defineProperty; var eo = (e, t, n) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var A = (e, t, n) => eo(e, typeof t != "symbol" ? t + "" : t, n); import { ref as b, computed as R, watch as de, defineComponent as Te, onBeforeUnmount as cn, withDirectives as dn, createVNode as y, resolveDirective as fn, createTextVNode as pn, mergeProps as at, inject as qe, onMounted as Ke, Fragment as mt, reactive as He, createApp as mn, onUnmounted as wt, Transition as vn, nextTick as Gt, onBeforeMount as to, Teleport as no, shallowRef as oo, render as Rt, h as ro, cloneVNode as ao } from "vue"; import lo, { FDynamicFormGroup as io } from "../dynamic-form/index.esm.js"; import { cloneDeep as rt, isPlainObject as en, isUndefined as ze } from "lodash-es"; import { useDateFormat as hn, resolveField as so, FormSchemaEntityField$Type as tn, FormSchemaEntityFieldTypeName as nn, useTextBoxDesign as uo, useClear as co, getCustomClass as zt, withInstall as fo, areaResponseDirective as po } from "../common/index.esm.js"; import { useI18n as lt } from "vue-i18n"; import { getSchemaByTypeForDesigner as mo, resolveAppearance as vo, createPropsResolver as gn, propertyConfigSchemaMapForDesigner as ho } from "../dynamic-resolver/index.esm.js"; import { useDesignerComponent as go, DgControl as yo } from "../designer-canvas/index.esm.js"; import { InputBaseProperty as bo } from "../property-panel/index.esm.js"; import Co from "../accordion/index.esm.js"; import wo from "../avatar/index.esm.js"; import To from "../../designer/button-edit/index.esm.js"; import Fo from "../button-group/index.esm.js"; import So from "../calendar/index.esm.js"; import xo from "../capsule/index.esm.js"; import on from "../../designer/checkbox/index.esm.js"; import rn from "../../designer/checkbox-group/index.esm.js"; import Dt from "../combo-list/index.esm.js"; import ko from "../combo-tree/index.esm.js"; import Bo from "../component/index.esm.js"; import Eo from "../color-picker/index.esm.js"; import Mo from "../content-container/index.esm.js"; import Oo from "../date-picker/index.esm.js"; import Io from "../../designer/data-grid/index.esm.js"; import Vo from "../dropdown/index.esm.js"; import No from "../events-editor/index.esm.js"; import Po from "../filter-bar/index.esm.js"; import jo from "../field-selector/index.esm.js"; import Lo from "../binding-selector/index.esm.js"; import $o from "../image-cropper/index.esm.js"; import Ro from "../../designer/input-group/index.esm.js"; import Ao from "../layout/index.esm.js"; import zo from "../list-nav/index.esm.js"; import Do from "../../designer/list-view/index.esm.js"; import Ho from "../lookup/index.esm.js"; import qo from "../mapping-editor/index.esm.js"; import Go from "../nav/index.esm.js"; import _o from "../number-range/index.esm.js"; import Wo from "../number-spinner/index.esm.js"; import Uo from "../order/index.esm.js"; import Yo from "../page-header/index.esm.js"; import Xo from "../page-footer/index.esm.js"; import Zo from "../pagination/index.esm.js"; import Jo from "../progress/index.esm.js"; import Qo from "../query-solution/index.esm.js"; import Ko from "../../designer/radio-group/index.esm.js"; import er from "../rate/index.esm.js"; import tr from "../response-toolbar/index.esm.js"; import nr from "../response-layout/index.esm.js"; import or from "../response-layout-editor/index.esm.js"; import rr from "../search-box/index.esm.js"; import ar from "../section/index.esm.js"; import lr from "../smoke-detector/index.esm.js"; import ir from "../splitter/index.esm.js"; import sr from "../step/index.esm.js"; import ur from "../switch/index.esm.js"; import cr from "../tabs/index.esm.js"; import dr from "../tags/index.esm.js"; import fr from "../text/index.esm.js"; import pr from "../time-picker/index.esm.js"; import mr from "../transfer/index.esm.js"; import vr from "../tree-view/index.esm.js"; import hr from "../uploader/index.esm.js"; import gr from "../verify-detail/index.esm.js"; import yr from "../video/index.esm.js"; import br from "../textarea/index.esm.js"; import Cr from "../schema-selector/index.esm.js"; import wr from "../../designer/tree-grid/index.esm.js"; import Tr from "../event-parameter/index.esm.js"; import Fr from "../filter-condition-editor/index.esm.js"; import Sr from "../fieldset/index.esm.js"; import xr from "../sort-condition-editor/index.esm.js"; import kr from "../menu-lookup/index.esm.js"; import Br from "../../designer/drawer/index.esm.js"; import Er from "../json-editor/index.esm.js"; import Mr from "../property-editor/index.esm.js"; import Or from "../expression-editor/index.esm.js"; import Ir from "../code-editor/index.esm.js"; import Vr from "../html-template/index.esm.js"; import Nr from "../collection-property-editor/index.esm.js"; import Pr from "../modal/index.esm.js"; import jr from "../external-container/index.esm.js"; import Lr from "../language-textbox/index.esm.js"; import { LocaleService as Tt } from "../locale/index.esm.js"; import { useResizeObserver as $r } from "@vueuse/core"; import { getHierarchyRow as Rr, useIdentify as Ar, useGroupData as zr, useFilter as Dr, useHierarchy as Hr, useLoading as qr, useDataView as Gr, useSelection as _r, useSelectHierarchyItem as Wr, usePagination as Ur, useDataViewContainerStyle as Yr, useCommandColumn as Xr, useSettingColumn as Zr, useColumn as Jr, useSort as Qr, useGroupColumn as Kr, useRow as ea, useEdit as ta, useVisualDataBound as na, useVisualDataCell as oa, useVisualDataRow as ra, useVisualData as aa, useCellPosition as la, useSidebar as ia, useVirtualScroll as sa, useFitColumn as ua, useFilterHistory as ca, useColumnFilter as da, useDragColumn as fa, getColumnHeader as pa, getSidebar as ma, getDisableMask as va, getHorizontalScrollbar as ha, getVerticalScrollbar as ga, getEmpty as ya, getPagination as ba, getSummary as Ca } from "../data-view/index.esm.js"; import "../notify/index.esm.js"; const _t = { conditions: { type: Array, default: [] }, fields: { type: Array, default: [] }, key: { type: String, default: "" }, /** * 控间标签同行展示 */ isControlInline: { type: [Boolean, String], default: "auto", validator: (e) => [!0, !1, "auto"].includes(e) }, /** * 条件项统一的样式 */ itemClass: { type: Boolean, default: "col-12 col-md-6 col-xl-3 col-el-2" } }; class wa { constructor(t = { value: [] }, n) { A(this, "editorType", "check-box"); A(this, "value"); A(this, "valueType", "boolean"); // 编辑器配置 A(this, "editiorConfig"); const r = (Array.isArray(t.value) ? t.value : typeof t.value == "string" ? t.value.split(",") : []).map((l) => JSON.parse(l)); this.value = r, this.editiorConfig = Object.assign({}, n); } clear() { this.value = []; } setValue(t) { this.value = t; } getValue() { return this.value; } getDisplayText() { return this.value.map((t) => t ? "是" : "否").join(","); } isEmpty() { return this.value.length === 0; } } class Ta { constructor(t = { textValue: "", value: "", valueField: "" }, n) { A(this, "editorType", "combo-lookup"); A(this, "textValue"); A(this, "value"); A(this, "valueField"); A(this, "valueType", "text"); // 编辑器配置 A(this, "editiorConfig"); this.textValue = t == null ? void 0 : t.textValue, this.value = t == null ? void 0 : t.value, this.editiorConfig = Object.assign({}, n), this.valueField = t == null ? void 0 : t.valueField; } clear() { this.value = "", this.valueField = "", this.textValue = ""; } getPropValue(t, n) { if (n.length > 1) { const o = n.shift(); return t[o] ? this.getPropValue(t[o], n) : null; } return t[n[0]]; } getTextValue(t) { const n = t.split("."), o = this.value.split(",").map((r) => this.getPropValue(r, rt(n))); return o && o.length ? o.join(",") : ""; } getValue() { const t = this.valueField.split("."), n = this.value.split(",").map((o) => this.getPropValue(o, rt(t))); return n && n.length ? n.join(",") : ""; } getDisplayText() { return this.getValue(); } setValue(t) { throw new Error("Method not implemented."); } isEmpty() { return !this.valueField; } } class Ft { constructor(t = { value: "", displayFormat: "", valueFormat: "" }, n) { A(this, "editorType", "date-picker"); A(this, "value"); A(this, "valueType", "datetime"); A(this, "displayFormat", ""); A(this, "valueFormat", ""); // 编辑器配置 A(this, "editiorConfig"); this.value = t == null ? void 0 : t.value, this.editiorConfig = Object.assign({}, n), this.displayFormat = (t == null ? void 0 : t.displayFormat) || (n == null ? void 0 : n.displayFormat) || "", this.valueFormat = (t == null ? void 0 : t.valueFormat) || (n == null ? void 0 : n.valueFormat) || ""; } formatValue() { const { formatTo: t, parseToDate: n } = hn(); if (!this.value) return ""; const o = n(this.value, this.valueFormat); return t(o, this.displayFormat); } setValue(t) { this.value = t; } getValue() { return this.value; } getDisplayText() { return this.formatValue(); } isEmpty() { return !this.value; } clear() { this.value = void 0; } } class Wt { constructor(t = { begin: "", end: "", displayFormat: "", valueFormat: "" }, n = {}) { A(this, "editorType", "date-range"); A(this, "begin", ""); A(this, "end", ""); A(this, "valueType", "datetime"); A(this, "value", ""); // 编辑器配置 A(this, "editiorConfig"); A(this, "displayFormat", ""); A(this, "valueFormat", ""); this.begin = (t == null ? void 0 : t.begin) || "", this.end = (t == null ? void 0 : t.end) || "", this.editiorConfig = Object.assign({}, n, { delimiter: "~" }), this.displayFormat = (t == null ? void 0 : t.displayFormat) || (n == null ? void 0 : n.displayFormat) || "", this.valueFormat = (t == null ? void 0 : t.valueFormat) || (n == null ? void 0 : n.valueFormat) || "", this.value = (this.begin === null ? "" : this.begin) + "~" + (this.end === null ? "" : this.end); } clear() { this.begin = "", this.end = "", this.value = ""; } formatValue(t) { const { formatTo: n, parseToDate: o } = hn(); if (!t) return ""; const r = o(t, this.valueFormat); return n(r, this.displayFormat); } getValue() { return { begin: this.begin, end: this.end }; } // TODO getDisplayText() { return !this.begin && !this.end ? "" : (this.begin === null ? "" : this.formatValue(this.begin)) + "~" + (this.end === null ? "" : this.formatValue(this.end)); } setValue(t) { if (t) { const n = t.split(this.editiorConfig.delimiter); this.begin = n[0] || "", this.end = n[1] || "", this.value = t; } else this.clear(); } isEmpty() { return !this.begin && !this.end; } } class Fa { constructor(t = { value: "", valueList: [] }, n) { A(this, "editorType", "combo-list"); A(this, "value"); A(this, "valueType", "enum"); A(this, "valueList", []); // 编辑器配置 A(this, "editiorConfig"); this.value = t == null ? void 0 : t.value, this.editiorConfig = Object.assign({}, n), this.editiorConfig.data && this.editiorConfig.data.length ? this.valueList = this.editiorConfig.data : this.valueList = (t == null ? void 0 : t.valueList) || []; } clear() { this.value = "", this.valueList = []; } getValue() { return this.value; } getDisplayText() { var r, l; const t = typeof this.value; let n = "", o = []; switch (t) { case "string": o = this.value.split(",") || [], n = this.valueList.filter((a) => o.indexOf(a.value) > -1).map((a) => a.name).join(","); break; case "boolean": n = ((r = this.valueList.find((a) => a.value === this.value)) == null ? void 0 : r.name) || ""; break; case "number": n = ((l = this.valueList.find((a) => a.value === this.value)) == null ? void 0 : l.name) || ""; break; } return n; } // setValue(data: { value: string; displayText: string }) { // // this.displayText = data.dispalyText; // const enumValues = getEnumValues(data); // this.value = enumValues; // return this.displayText; // } setValue(t) { this.value = t.value; } isEmpty() { return !this.value && this.value !== !1 && this.value !== 0; } } class Sa { constructor(t = { value: "", displayText: "", displayField: "", isInputText: !1 }, n) { A(this, "editorType", "input-group"); // 通过弹窗返回的若干个值对象构成的数组 A(this, "value"); A(this, "valueType", "text"); // 控件内显示的值 A(this, "displayText"); // 弹窗模式下,取列表中哪个字段的值映射到当前字段 A(this, "valueField"); // 是否是手动输入的值 A(this, "isInputText"); // 编辑器配置 A(this, "editiorConfig"); this.value = t == null ? void 0 : t.value, this.displayText = t == null ? void 0 : t.displayText, this.valueField = t == null ? void 0 : t.displayField, this.isInputText = t == null ? void 0 : t.isInputText, this.editiorConfig = Object.assign({}, n); } clear() { this.value = "", this.displayText = "", this.valueField = ""; } getPropValue(t, n) { if (n.length > 1) { const o = n.shift(); return t[o] ? this.getPropValue(t[o], n) : ""; } return t[n[0]]; } getTextValue(t) { const n = t.split("."), o = this.value.map((r) => this.getPropValue(r, rt(n))); return o && o.length ? o.join(",") : ""; } getValue() { return this.value; } getDisplayText() { return this.getValue(); } setValue(t) { throw new Error("Method not implemented."); } isEmpty() { var t; return !this.displayText && (this.value == null || !((t = this.value) != null && t.length)); } } class xa { constructor(t = { mapFields: [], value: "", valueField: "", isInputText: !1, helpId: "" }, n) { A(this, "editorType", "lookup"); A(this, "helpId"); A(this, "mapFields"); A(this, "value"); A(this, "valueField"); A(this, "valueType", "text"); // 帮助的值是否为手动输入的任意值,对应帮助的任意输入属性nosearch A(this, "isInputText"); // 编辑器配置 A(this, "editiorConfig"); this.editiorConfig = Object.assign({}, n), this.value = (t == null ? void 0 : t.value) || "", this.valueField = (t == null ? void 0 : t.valueField) || (n == null ? void 0 : n.valueField), this.mapFields = t.mapFields, this.isInputText = (t == null ? void 0 : t.isInputText) || (n == null ? void 0 : n.isInputText), this.helpId = (t == null ? void 0 : t.helpId) || (n == null ? void 0 : n.helpId); } clear() { this.value = "", this.mapFields = []; } getValue() { return this.mapFields.map((t) => so(t, this.valueField || "id")).join(","); } getDisplayText() { return this.value; } setValue(t) { throw new Error("Method not implemented."); } isEmpty() { return !this.mapFields.length; } } class ka extends Ft { constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) { super(n, o); A(this, "editorType", "month-picker"); } } class Ba extends Wt { constructor(n = { begin: "", end: "", displayFormat: "", valueFormat: "" }, o) { super(n, o); A(this, "editorType", "month-range"); } } class Ea { constructor(t = { begin: null, end: null }, n) { A(this, "editorType", "number-range"); A(this, "begin"); A(this, "end"); A(this, "valueType", "number"); // 编辑器配置 A(this, "editiorConfig"); this.editiorConfig = Object.assign({}, n), this.begin = (t == null ? void 0 : t.begin) == null ? null : parseFloat(t.begin), this.end = (t == null ? void 0 : t.end) == null ? null : parseFloat(t.end); } clear() { this.begin = null, this.end = null; } getValue() { return { begin: this.begin, end: this.end }; } getDisplayText() { return (this.begin === null ? "" : this.begin) + "~" + (this.end === null ? "" : this.end); } setValue(t) { this.begin = t.begin == null ? null : parseFloat(t.begin), this.end = t.end == null ? null : parseFloat(t.end); } isEmpty() { return this.begin == null && this.end == null; } } class Ma { constructor(t = { value: "" }, n) { A(this, "editorType", "number-spinner"); A(this, "value"); A(this, "valueType", "number"); // 编辑器配置 A(this, "editiorConfig"); this.editiorConfig = Object.assign({}, n); const o = parseFloat(t.value); this.value = isNaN(o) ? null : o; } clear() { this.value = null; } getValue() { return this.value; } getDisplayText() { return this.getValue(); } setValue(t) { this.value = isNaN(parseFloat(t)) ? null : t; } isEmpty() { return this.value == null || isNaN(this.value); } } class Oa { constructor(t = { value: null, valueList: [] }, n) { A(this, "editorType", "radio-group"); A(this, "value"); A(this, "valueType", "enum"); A(this, "valueList", []); // 编辑器配置 A(this, "editiorConfig"); this.editiorConfig = Object.assign({}, n), this.value = t == null ? void 0 : t.value, this.editiorConfig.data && this.editiorConfig.data.length ? this.valueList = this.editiorConfig.data : this.valueList = (t == null ? void 0 : t.valueList) || []; } clear() { this.value = void 0, this.valueList = []; } getValue() { return this.value; } getDisplayText() { var t; return ((t = this.valueList.find((n) => n.value === this.value)) == null ? void 0 : t.name) || ""; } setValue(t) { this.value = t; } isEmpty() { return !this.value && this.value !== 0 && this.value !== !1; } } class Ia extends Ft { constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) { super(n, o); A(this, "editorType", "year-picker"); } } class yn { constructor(t = { value: "" }, n) { A(this, "editorType", "text"); A(this, "value"); A(this, "valueType", "text"); // 编辑器配置 A(this, "editiorConfig"); this.value = t.value; } clear() { this.value = void 0; } getValue() { return this.value; } getDisplayText() { return this.getValue(); } setValue(t) { this.value = t; } isEmpty() { return !this.value; } } class Va extends Ft { constructor(n = { value: "", displayFormat: "", valueFormat: "" }, o) { super(n, o); A(this, "editorType", "datetime-picker"); } } class Na extends Wt { constructor(n = { begin: "", end: "", displayFormat: "", valueFormat: "" }, o = {}) { super(n, o); // 这个属性会在后面进行比对 A(this, "editorType", "datetime-range"); A(this, "valueType", "datetime"); } } function bn() { function e(t, n, o) { switch (t) { case "check-box": return new wa(n, o); case "combo-list": return new Fa(n, o); case "combo-lookup": return new Ta(n, o); case "input-group": return new Sa(n, o); case "year-picker": return new Ia(n, o); case "date-picker": return new Ft(n, o); case "datetime-range": return new Na(n, o); case "date-range": return new Wt(n, o); case "datetime-picker": return new Va(n, o); case "lookup": return new xa(n, o); case "month-picker": return new ka(n, o); case "month-range": return new Ba(n, o); case "number-range": return new Ea(n, o); case "number-spinner": return new Ma(n, o); case "radio-group": return new Oa(n, o); default: return new yn(n, o); } } return { createConditionValue: e }; } function Ut(e, t) { const n = b(e.fields), o = b([]), r = /* @__PURE__ */ new Map(), { createConditionValue: l } = bn(); function a(i) { let s = "input-group"; switch (i) { case "year-picker": case "month-picker": case "month-range": case "date-range": case "datetime-range": case "datetime-picker": s = "date-picker"; break; default: s = i; } return s; } function c(i) { const s = i.editor ? i.editor.type : "input-group"; return i.editor.type = a(s), i.editor.type === "date-picker" && (s.indexOf("range") > -1 && (i.editor.enablePeriod = !0), s.indexOf("datetime") > -1 && (i.editor.showTime = !0), s.indexOf("year") > -1 && (i.editor.selectMode = "year"), s.indexOf("month") > -1 && (i.editor.selectMode = "month"), i.editor.weekSelect && (i.editor.selectMode = "week")), s === "input-group" && (i.editor.placeholder = "请输入"), i.editor; } function p(i) { return i.map((u) => Object.assign({}, u)).map((u) => (u.editor = c(u), u)); } function d(i = !0) { n.value.reduce((s, u) => (i && (u.editor = c(u)), s.set(u.labelCode, u), s), r); } function v(i) { return i.forEach((s) => { if (s) { const u = r.get(s.fieldCode); u.controlType && (s.value = l(u.controlType, s.value, u.editor)); } }), i; } return { convertToSingleControl: p, fields: n, fieldMap: r, fieldConditions: o, loadFieldConfigs: d, initialConditionValue: v }; } function Cn(e, t, n) { const o = b(null), r = b(n), l = b(0); function a(v, i) { let s = null; return function() { const u = arguments; s ? (clearTimeout(s), s = setTimeout(() => { s = null, v(...u); }, 200)) : (v(...u), s = setTimeout(() => { s = null; }, 200)); }; } function c() { r.value && (o.value = new ResizeObserver(a((v) => { const i = v[0]; l.value = i.contentRect.width; })), o.value.observe(r.value)); } function p(v) { let s = "col-12"; return v > 250 * 6 ? s = "col-2" : v > 250 * 4 ? s = "col-3" : v > 250 * 3 ? s = "col-4" : v > 250 * 2 && (s = "col-6"), s; } const d = R(() => p(l.value)); return de([n], ([v]) => { r.value = v, c(); }), { conditionClass: d, resizeObserver: o }; } const an = /* @__PURE__ */ Te({ name: "FConditionFields", props: _t, emits: ["valueChange", "blur", "focus", "click", "input"], setup(e, t) { const n = b(), { locale: o } = lt(), r = b(e.key), l = b(e.conditions), a = Ut(e), { initialConditionValue: c, fieldMap: p, loadFieldConfigs: d } = a, v = Cn(e, t, n), { conditionClass: i, resizeObserver: s } = v; d(!0), c(l.value), cn(() => { var T; (T = s.value) == null || T.unobserve(n.value); }), de(() => e.conditions, () => { l.value = e.conditions, c(l.value); }); const u = R(() => ({ // row: true, "f-utils-flex-row-wrap": !0, "farris-form": !0, "condition-div": !0, "farris-form-controls-inline": !o.value || e.isControlInline === !0 || e.isControlInline === "auto" && o.value !== "en" })); function h(T, g, k, P) { switch (T.value.editorType) { case "combo-list": P.newValue && (T.value.valueList = P.newValue.map((E) => ({ name: E.name, value: E.value }))); break; case "radio-group": T.value.valueList = [k.data.find((E) => E.value === g)]; break; case "year-range": case "month-range": case "date-range": case "datetime-range": T.value.setValue(g); break; } t.emit("valueChange", g, T); } function S() { return l.value.map((T) => { var F, x, O, I, f, C; const g = (F = p.get(T.fieldCode)) == null ? void 0 : F.editor, k = (x = p.get(T.fieldCode)) == null ? void 0 : x.id; let P = !0; ((O = T.value) == null ? void 0 : O.editorType) === "lookup" && g ? (g.idValue = (I = T.value.mapFields) == null ? void 0 : I.map((m) => m.id).join(","), g.onClear = () => { T.value.mapFields = [], h(T, ""); }, g["onUpdate:dataMapping"] = (m) => { T.value.mapFields = m.items, h(T, T.value.getValue()); }, P = !1) : ((f = T.value) == null ? void 0 : f.editorType) === "number-range" && g ? (g.beginValue = T.value.begin, g.onBeginValueChange = (m) => { T.value.begin = m, h(T, m); }, g.endValue = T.value.end, g.onEndValueChange = (m) => { T.value.end = m, h(T, m); }, P = !1) : g && ["year-range", "month-range", "date-range", "datetime-range"].find((m) => { var w; return m === ((w = T.value) == null ? void 0 : w.editorType); }) && (g.beginValue = T.value.begin, g.endValue = T.value.end); let E = ((C = g == null ? void 0 : g.appearance) == null ? void 0 : C.class) || e.itemClass; return g != null && g.multiLineLabel && (E = E + " farris-group-multi-label"), y(io, { id: k, key: k, customClass: E, label: (g == null ? void 0 : g.showLabel) === !1 ? " " : T.fieldName, editor: g, required: g == null ? void 0 : g.required, modelValue: T.value.value, "onUpdate:modelValue": (m) => T.value.value = m, onChange: (m, w) => { P && h(T, m, g, w); } }, null); }); } return () => dn(y("div", { class: u.value, key: r.value, ref: n }, [S()]), [[fn("area-response")]]); } }); function wn(e, t) { let n; function o(i) { const { properties: s, title: u, ignore: h } = i, S = h && Array.isArray(h), T = Object.keys(s).reduce((g, k) => ((!S || !h.find((P) => P === k)) && (g[k] = s[k].type === "object" && s[k].properties ? o(s[k]) : rt(s[k].default)), g), {}); if (u && (!S || !h.find((g) => g === "id"))) { const g = u.toLowerCase().replace(/-/g, "_"); T.id = `${g}_${Math.random().toString().slice(2, 6)}`; } return T; } function r(i) { const { properties: s, title: u, required: h } = i; if (h && Array.isArray(h)) { const S = h.reduce((T, g) => (T[g] = s[g].type === "object" && s[g].properties ? o(s[g]) : rt(s[g].default), T), {}); if (u && h.find((T) => T === "id")) { const T = u.toLowerCase().replace(/-/g, "_"); S.id = `${T}_${Math.random().toString().slice(2, 6)}`; } return S; } return { type: u }; } function l(i, s = {}, u) { const h = e[i]; if (h) { let S = r(h); const T = t[i]; return S = T ? T({ getSchemaByType: l }, S, s, u) : S, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(S), S; } return null; } function a(i, s) { const u = o(s); return Object.keys(u).reduce((h, S) => (Object.prototype.hasOwnProperty.call(i, S) && (h[S] && en(h[S]) && en(i[S] || !i[S]) ? Object.assign(h[S], i[S] || {}) : h[S] = i[S]), h), u), u; } function c(i, s) { return Object.keys(i).filter((h) => i[h] != null).reduce((h, S) => { if (s.has(S)) { const T = s.get(S); if (typeof T == "string") h[T] = i[S]; else { const g = T(S, i[S], i); Object.assign(h, g); } } else h[S] = i[S]; return h; }, {}); } function p(i, s, u = /* @__PURE__ */ new Map()) { const h = a(i, s); return c(h, u); } function d(i) { var u; const s = i.type; if (s) { const h = e[s]; if (!h) return i; const S = a(i, h), T = ((u = i.editor) == null ? void 0 : u.type) || ""; if (T) { const g = e[T], k = a(i.editor, g); S.editor = k; } return S; } return i; } function v(i) { n = i; } return { getSchemaByType: l, resolveSchemaWithDefaultValue: d, resolveSchemaToProps: p, mappingSchemaToProps: c, setDesignerContext: v }; } const Tn = {}, Fn = {}, { getSchemaByType: Qu, resolveSchemaWithDefaultValue: Pa, resolveSchemaToProps: ja, mappingSchemaToProps: La, setDesignerContext: Ku } = wn(Tn, Fn); function $a(e = {}) { function t(d, v, i, s) { if (typeof i == "number") return s[d].length === i; if (typeof i == "object") { const u = Object.keys(i)[0], h = i[u]; if (u === "not") return Number(s[d].length) !== Number(h); if (u === "moreThan") return Number(s[d].length) >= Number(h); if (u === "lessThan") return Number(s[d].length) <= Number(h); } return !1; } function n(d, v, i, s) { return s[d] && s[d].propertyValue && String(s[d].propertyValue.value) === String(i); } const o = /* @__PURE__ */ new Map([ ["length", t], ["getProperty", n] ]); Object.keys(e).reduce((d, v) => (d.set(v, e[v]), d), o); function r(d, v) { const i = d; return typeof v == "number" ? [{ target: i, operator: "length", param: null, value: Number(v) }] : typeof v == "boolean" ? [{ target: i, operator: "getProperty", param: d, value: !!v }] : typeof v == "object" ? Object.keys(v).map((s) => { if (s === "length") return { target: i, operator: "length", param: null, value: v[s] }; const u = s, h = v[s]; return { target: i, operator: "getProperty", param: u, value: h }; }) : []; } function l(d) { return Object.keys(d).reduce((i, s) => { const u = r(s, d[s]); return i.push(...u), i; }, []); } function a(d, v) { if (o.has(d.operator)) { const i = o.get(d.operator); return i && i(d.target, d.param, d.value, v) || !1; } return !1; } function c(d, v) { return l(d).reduce((u, h) => u && a(h, v), !0); } function p(d, v) { const i = Object.keys(d), s = i.includes("allOf"), u = i.includes("anyOf"), h = s || u, g = (h ? d[h ? s ? "allOf" : "anyOf" : "allOf"] : [d]).map((P) => c(P, v)); return s ? !g.includes(!1) : g.includes(!0); } return { parseValueSchema: p }; } const Ra = { convertTo: (e, t, n, o) => { e.appearance || (e.appearance = {}), e.appearance[t] = n; }, convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t] }, Aa = { convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无" }, za = { convertTo: (e, t, n, o) => { e.editor && (e.editor[t] = n); }, convertFrom: (e, t, n) => e.editor && Object.prototype.hasOwnProperty.call(e.editor, t) ? e.editor[t] : e[t] }, G = { button: { type: "button", name: "按钮" }, "response-toolbar": { type: "response-toolbar", name: "工具栏" }, "response-toolbar-item": { type: "response-toolbar-item", name: "按钮" }, "content-container": { type: "content-container", name: "容器" }, "input-group": { type: "input-group", name: "文本" }, textarea: { type: "textarea", name: "多行文本" }, lookup: { type: "lookup", name: "帮助" }, "number-spinner": { type: "number-spinner", name: "数值" }, "date-picker": { type: "date-picker", name: "日期" }, switch: { type: "switch", name: "开关" }, "radio-group": { type: "radio-group", name: "单选组" }, "check-box": { type: "check-box", name: "复选框" }, "check-group": { type: "check-group", name: "复选框组" }, "combo-list": { type: "combo-list", name: "下拉列表" }, "response-form": { type: "response-form", name: "卡片面板" }, "response-layout": { type: "response-layout", name: "布局容器", icon: "response-layout-3" }, "response-layout-item": { type: "response-layout-item", name: "布局", icon: "response-layout-1" }, "tree-grid": { type: "tree-grid", name: "树表格" }, "tree-grid-column": { type: "tree-grid-column", name: "树表格列" }, "data-grid": { type: "data-grid", name: "表格" }, "data-grid-column": { type: "data-grid-column", name: "表格列" }, module: { type: "Module", name: "模块" }, component: { type: "component", name: "组件" }, tabs: { type: "tabs", name: "标签页" }, "tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" }, "tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮" }, "html-template": { type: "html-template", name: "模板容器" }, "time-picker": { type: "time-picker", name: "时间选择" }, section: { type: "section", name: "分组面板" }, "section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" }, "section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" }, splitter: { type: "splitter", name: "分栏面板" }, "splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" }, "component-ref": { type: "component-ref", name: "组件引用节点" }, uploader: { type: "uploader", name: "附件上传" }, "page-header": { type: "page-header", name: "页头" }, "page-footer": { type: "page-footer", name: "页脚" }, "tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏" }, fieldset: { type: "fieldset", name: "分组" }, "query-solution": { type: "query-solution", name: "筛选方案" }, drawer: { type: "drawer", name: "抽屉" }, "external-container": { type: "external-container", name: "外部容器", icon: "content-container" }, "list-nav": { type: "list-nav", name: "列表导航" }, "list-view": { type: "list-view", name: "列表" }, "filter-bar": { type: "filter-bar", name: "筛选条" }, "language-textbox": { type: "language-textbox", name: "多语输入框" } }, Da = { convertFrom: (e, t, n) => { var r; const o = e.editor && e.editor[t] ? e.editor[t] : e[t]; return ((r = G[o]) == null ? void 0 : r.name) || o; } }, Ha = { convertTo: (e, t, n, o) => { e[t] = e[t]; }, convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : "" }, qa = { convertTo: (e, t, n, o) => { (e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[t] = n : e.formatter = { [t]: n }); }, convertFrom: (e, t, n) => { if (e.formatter) { if (t === "trueText") return e.formatter.trueText; if (t === "falseText") return e.formatter.falseText; if (t === "prefix") return e.formatter.prefix; if (t === "suffix") return e.formatter.suffix; if (t === "precision") return e.formatter.precision; if (t === "decimal") return e.formatter.decimal; if (t === "thousand") return e.formatter.thousand; if (t === "tempDateFormat") return e.formatter.dateFormat === "yyyy年MM月dd日" ? "yearMonthDay" : e.formatter.dateFormat === "yyyy-MM-dd HH:mm:ss" ? "yyyy-MM-ddTHH:mm:ss" : e.formatter.dateFormat === "yyyy/MM/dd HH:mm:ss" ? "yyyy/MM/ddTHH:mm:ss" : e.formatter.dateFormat === "yyyy年MM月dd日 HH时mm分ss秒" ? "yearMonthDayHourMinuteSecond" : e.formatter.tempDateFormat || e.formatter.dateFormat || "yyyy-MM-dd"; if (t === "customFormat") return e.formatter.customFormat; if (t === "type") return e.formatter.type || "none"; } return "none"; } }, Ga = { convertTo: (e, t, n, o) => { e.command ? e.command[t] = n : e.command = { [t]: n }, t === "enable" && n && (e.command.commands || (e.command.commands = [ { text: "编辑", type: "primary", command: "edit" }, { text: "删除", type: "danger", command: "remove" } ])); }, convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : "" }, _a = { convertTo: (e, t, n, o) => { e.column ? e.column[t] = n : e.column = { [t]: n }, t === "fitColumns" && n && (e.column.fitMode || (e.column.fitMode = "average")); }, convertFrom: (e, t, n) => { if (e.column) { if (t === "fitColumns") return e.column.fitColumns; if (t === "fitMode") return e.column.fitMode; } return ""; } }, Wa = { convertTo: (e, t, n, o) => { e.summary ? e.summary[t] = n : e.summary = { [t]: n }, t === "enable" && n && (e.summary ? e.summary.groupFields || (e.summary.groupFields = []) : e.summary = { enable: n, groupFields: [] }); }, convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "" }, Ua = { convertTo: (e, t, n, o) => { e.group ? e.group[t] = n : e.group = { [t]: n }, t === "enable" && n && (e.group ? e.group.groupFields || (e.group.groupFields = []) : e.group = { enable: n, groupFields: [], showSummary: !1 }); }, convertFrom: (e, t, n) => { if (e.group) { if (t === "enable") return e.group.enable; if (t === "showSummary") return e.group.showSummary; } } }, Ya = { convertFrom: (e, t) => e.binding ? e.binding.path : "", convertTo: (e, t, n) => { if (n && n.length > 0) { const o = n[0]; e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath; } } }, Xa = { convertTo: (e, t, n, o) => { e.pagination || (e.pagination = {}), e.pagination[t] = n; }, convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t] }, Za = { convertTo: (e, t, n, o) => { e.rowNumber || (e.rowNumber = {}), e.rowNumber[t] = n; }, convertFrom: (e, t, n) => e.rowNumber ? e.rowNumber[t] : e[t] }, Ja = { convertTo: (e, t, n, o) => { e.selection || (e.selection = {}), e.selection[t] = n; }, convertFrom: (e, t, n) => e.selection ? e.selection[t] : e[t] }, Qa = { convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : "" }, Ka = { convertFrom: (e, t) => e[t] || "", convertTo: (e, t, n) => { e[t] = n; } }, el = { convertTo: (e, t, n, o) => { e.size || (e.size = {}), e.size[t] = n; }, convertFrom: (e, t, n) => e.size ? e.size[t] : e[t] }, tl = { convertFrom: (e, t, n) => { var o, r; return (o = e.formatter) != null && o.data && t === "formatterEnumData" && !e.formatterEnumData ? (r = e.formatter) == null ? void 0 : r.data : e.formatterEnumData; } }, nl = { convertTo: (e, t, n, o) => { e.sort || (e.sort = {}), e.sort[t] = n; }, convertFrom: (e, t, n) => { var o, r; if (t === "mode") return ((o = e.sort) == null ? void 0 : o.mode) || "client"; if (t === "multiSort") return !!((r = e.sort) != null && r.multiSort); } }, ol = { convertTo: (e, t, n, o) => { e.filter || (e.filter = {}), e.filter[t] = n; }, convertFrom: (e, t, n) => { var o; if (t === "mode") return ((o = e.filter) == null ? void 0 : o.mode) || "client"; } }, rl = { convertTo: (e, t, n, o) => { e.rowOption ? e.rowOption[t] = n : e.rowOption = { [t]: n }; }, convertFrom: (e, t, n) => { if (e.rowOption) { if (t === "customRowStyle") return e.rowOption.customRowStyle; if (t === "customCellStyle") return e.rowOption.customCellStyle; } return ""; } }; function Sn(e, t, n) { const o = /* @__PURE__ */ new Map([ ["/converter/appearance.converter", Ra], ["/converter/buttons.converter", Aa], ["/converter/property-editor.converter", za], ["/converter/items-count.converter", Qa], ["/converter/type.converter", Da], ["/converter/change-editor.converter", Ha], ["/converter/change-formatter.converter", qa], ["/converter/column-command.converter", Ga], ["/converter/column-option.converter", _a], ["/converter/summary.converter", Wa], ["/converter/group.converter", Ua], ["/converter/form-group-label.converter", Ka], ["/converter/field-selector.converter", Ya], ["/converter/pagination.converter", Xa], ["/converter/row-number.converter", Za], ["/converter/grid-selection.converter", Ja], ["/converter/size.converter", el], ["/converter/change-formatter-enum.converter", tl], ["/converter/grid-sort.converter", nl], ["/converter/grid-filter.converter", ol], ["/converter/row-option.converter", rl] ]), r = /* @__PURE__ */ new Map([ ["string", { type: "input-group", enableClear: !1 }], ["boolean", { type: "combo-list", textField: "name", valueField: "value", idField: "value", enableClear: !1, editable: !1, data: [ { value: !0, name: "是" }, { value: !1, name: "否" } ] }], ["enum", { type: "combo-list", maxHeight: 128, enableClear: !1, editable: !1 }], ["array", { type: "button-edit" }], ["number", { type: "number-spinner", placeholder: "" }], ["events-editor", { type: "events-editor", hide: !0 }] ]), l = $a(); function a(h, S) { return () => l.parseValueSchema(h, S); } function c(h, S, T) { return h.includes("visible") && S.visible !== void 0 ? typeof S.visible == "boolean" ? () => !!S.visible : S.visible === void 0 ? !0 : a(S.visible, T) : () => !0; } function p(h, S, T) { return h.includes("readonly") && S.readonly !== void 0 ? typeof S.readonly == "boolean" ? () => !!S.readonly : a(S.readonly, T) : () => !1; } function d(h, S) { const T = h.$converter || S; return typeof T == "string" && T && o.has(T) ? o.get(T) || null : T || null; } function v(h, S, T, g, k, P = "", E = "") { return Object.keys(h).map((x) => { const O = b(1), I = x, f = h[x], C = Object.keys(f), m = f.title, w = f.type, B = r.get(w) || { type: "input-group", enableClear: !1 }, M = f.editor ? Object.assign({}, B, f.editor) : Object.assign({}, B), N = c(C, f, S), W = p(C, f, S); M.readonly = M.readonly === void 0 ? W() : M.readonly; const K = f.type === "cascade" ? v(f.properties, S, T, g, k, P, E) : [], j = !0; let L = d(f, E); const J = R({ get() { if (O.value) { if (["class", "style"].find((ve) => ve === I) && !L && (L = o.get("/converter/appearance.converter") || null), L && L.convertFrom) return L.convertFrom(T, x, k, P); const ce = T[x]; return Object.prototype.hasOwnProperty.call(f, "defaultValue") && (ce === void 0 || typeof ce == "string" && ce === "") ? f.type === "boolean" ? f.defaultValue : f.defaultValue || "" : ce; } return null; }, set(ce) { O.value += 1, L && L.convertTo ? (L.convertTo(g, x, ce, k, P), L.convertTo(T, x, ce, k, P)) : (g[x] = ce, T[x] = ce); } }), { refreshPanelAfterChanged: Y, description: ae, isExpand: ee, parentPropertyID: oe } = f, te = { propertyID: I, propertyName: m, propertyType: w, propertyValue: J, editor: M, visible: N, readonly: W, cascadeConfig: K, hideCascadeTitle: j, refreshPanelAfterChanged: Y, description: ae, isExpand: ee, parentPropertyID: oe }; return S[I] = te, te; }); } function i(h, S, T = {}) { const g = {}, k = e[h]; return k && k.categories ? Object.keys(k.categories).map((E) => { const F = k.categories[E], x = F == null ? void 0 : F.title, O = v(F.properties || {}, g, {}, T, S); return { categoryId: E, categoryName: x, properties: O }; }) : []; } function s(h, S, T, g, k = "") { const P = S.$ref.schema, E = S.$ref.converter, F = T[P], x = F.type, O = n(F), I = {}, f = e[x]; if (f && f.categories) { const C = f.categories[h], m = C == null ? void 0 : C.title; E && Object.keys(C.properties).forEach((M) => { C.properties[M].$converter = E; }); const w = (C == null ? void 0 : C.properties) || {}, B = v(w, I, O, F, g, k); return { categoryId: h, categoryName: m, properties: B }; } return { categoryId: h, categoryName: "", properties: [] }; } function u(h, S, T, g, k) { const P = h.type, E = n(h), F = {}; let x = k || e[P]; if (x && Object.keys(x).length === 0 && T && T.getPropConfig && (x = T.getPropConfig(g)), x && x.categories) { const O = []; return Object.keys(x.categories).map((I) => { const f = x.categories[I]; if (f.$ref) { O.push(s(I, f, h, S, g)); return; } const C = f == null ? void 0 : f.title, m = f == null ? void 0 : f.tabId, w = f == null ? void 0 : f.tabName, B = f == null ? void 0 : f.hide, M = f == null ? void 0 : f.hideTitle, N = v(f.properties || {}, F, E, h, S, g, f.$converter), { setPropertyRelates: W } = f, K = f == null ? void 0 : f.parentPropertyID; O.push({ categoryId: I, categoryName: C, tabId: m, tabName: w, hide: B, properties: N, hideTitle: M, setPropertyRelates: W, parentPropertyID: K }); }), O; } return []; } return { getPropertyConfigBySchema: u, getPropertyConfigByType: i, propertyConverterMap: o }; } const xn = {}, kn = {}; Sn(xn, kn, Pa); const Bn = {}, En = {}, { getSchemaByType: ec, resolveSchemaWithDefaultValue: al, resolveSchemaToProps: tc, mappingSchemaToProps: nc, setDesignerContext: oc } = wn(Bn, En), Mn = {}, On = {}; Sn(Mn, On, al); function St(e, t, n = /* @__PURE__ */ new Map(), o = (a, c, p, d) => c, r = {}, l = (a) => a) { return Tn[t.title] = t, Fn[t.title] = o, xn[t.title] = r, kn[t.title] = l, Bn[t.title] = t, En[t.title] = o, Mn[t.title] = r, On[t.title] = l, (a = {}, c = !0) => { if (!c) return La(a, n); const p = ja(a, t, n), d = Object.keys(e).reduce((v, i) => (v[i] = e[i].default, v), {}); return Object.assign(d, p); }; } function In(e, t) { return { customClass: t.class, customStyle: t.style }; } const Yt = /* @__PURE__ */ new Map([ ["appearance", In] ]), ll = /* @__PURE__ */ new Map([]), il = "root-viewmodel"; class sl { constructor(t, n) { A(this, "formSchemaUtils"); A(this, "controlCreatorUtils"); A(this, "designViewModelUtils"); this.resolver = t, this.designerHostService = n, this.formSchemaUtils = this.designerHostService.formSchemaUtils, this.controlCreatorUtils = this.designerHostService.controlCreatorUtils, this.designViewModelUtils = this.designerHostService.designViewModelUtils; } createComponent(t) { const n = this.createComponentRefNode(t), o = this.createComponentNode(t), r = this.createViewModeNode(t), l = this.formSchemaUtils.getFormSchema(); return l.module.viewmodels.push(r), l.module.components.push(o), this.designViewModelUtils.assembleDesignViewModel(), n; } createComponentRefNode(t) { const n = this.resolver.getSchemaByType("component-ref"); return Object.assign(n, { id: `${t.componentId}-component-ref`, component: `${t.componentId}-component` }), n; } createComponentNode(t) { const n = this.resolver.getSchemaByType("component"), o = this.createFormComponentContents(t); return Object.assign(n, { id: `${t.componentId}-component`, viewModel: `${t.componentId}-component-viewmodel`, componentType: t.componentType, appearance: { class: this.getFormComponentClass() }, formColumns: t.formColumns, contents: o }), n; } /** * 获取卡片组件层级的class样式 */ getFormComponentClass() { const { templateId: t } = this.formSchemaUtils.getFormSchema().module; return t === "double-list-in-tab-template" ? "f-struct-wrapper f-utils-fill-flex-column" : "f-struct-wrapper"; } createFormComponentContents(t) { const n = this.resolver.getSchemaByType("section"); Object.assign(n, { id: t.componentId + "-form-section", appearance: { class: "f-section-form f-section-in-mainsubcard" }, mainTitle: t.componentName }); const o = this.resolver.getSchemaByType("response-form"), r = []; Object.assign(o, { id: t.componentId + "-form", appearance: { class: "f-form-layout farris-form farris-form-controls-inline" }, contents: r }), n.contents = [o]; const { selectedFields: l } = t; l == null || l.forEach((c) => { if (c.$type === tn.SimpleField) { const p = rt(c), d = this.resolveControlClassByFormColumns(t), v = this.controlCreatorUtils.setFormFieldProperty(p, "", d); v && r.push(v); } }); const { templateId: a } = this.formSchemaUtils.getFormSchema().module; return a === "double-list-in-tab-template" && (n.appearance.class = "f-section-grid f-section-in-main px-0 pt-0", n.fill = !0), [n]; } resolveControlClassByFormColumns(t) { let n = ""; switch (t.formColumns) { case 1: { n = "col-12"; break; } case 2: { n = "col-12 col-md-6 col-xl-6 col-el-6"; break; } case 3: { n = "col-12 col-md-6 col-xl-4 col-el-4"; break; } case 4: { n = "col-12 col-md-6 col-xl-3 col-el-2"; break; } } return n; } /** * 添加viewModel节点 */ createViewModeNode(t) { return { id: `${t.componentId}-component-viewmodel`, code: `${t.componentId}-component-viewmodel`, name: t.componentName, bindTo: t.bindTo, parent: il, fields: this.assembleViewModelFields(t), commands: [], states: [], enableValidation: !0 }; } /** * 组装viewModel fields 节点 */ assembleViewModelFields(t) { const n = [], { selectedFields: o } = t; return o == null || o.forEach((r) => { if (r.$type === tn.SimpleField) { let l = "blur"; const a = r.type.name; (a === nn.Enum || a === nn.Boolean) && (l = "change"), n.push({ type: "Form", id: r.id, fieldName: r.bindingField, groupId: null, groupName: null, updateOn: l, fieldSchema: {} }); } }), n; } } function ul(e, t, n, o) { var l, a, c, p, d, v; const r = n.parentComponentInstance; if (r && o) { const i = (l = r.schema) == null ? void 0 : l.type, u = { componentId: `form-${Math.random().toString(36).slice(2, 6)}`, componentName: ((a = n.bindingSourceContext) == null ? void 0 : a.entityTitle) || ((p = (c = n.bindingSourceContext) == null ? void 0 : c.bindingEntity) == null ? void 0 : p.name) || "标题", componentType: "form", formColumns: i === "splitter-pane" ? 1 : 4, parentContainerId: r.schema.id, bindTo: ((d = n.bindingSourceContext) == null ? void 0 : d.bindTo) || "/", selectedFields: (v = n.bindingSourceContext) == null ? void 0 : v.bindingEntityFields }; return new sl(e, o).createComponent(u); } else return t; } function cl(e, t, n) { return t; } const dl = "https://json-schema.org/draft/2020-12/schema", fl = "https://farris-design.gitee.io/response-form.schema.j