@baishuyun/ai-feat-utils 2.0.49 → 2.0.51
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/ai-feat-utils.js +396 -320
- package/dist/ai-feat-utils.js.map +1 -1
- package/dist/batch-subform.d.ts +36 -0
- package/dist/batch-subform.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/ai-feat-utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const w = (e) => {
|
|
2
2
|
if ((e == null ? void 0 : e.type) !== "text" || !e.providerMetadata || !e.providerMetadata.raw || !e.providerMetadata.raw.data)
|
|
3
3
|
return null;
|
|
4
4
|
if (typeof e.providerMetadata.raw.data != "string")
|
|
@@ -10,19 +10,19 @@ const y = (e) => {
|
|
|
10
10
|
console.error("invalid raw data");
|
|
11
11
|
}
|
|
12
12
|
return t || e.providerMetadata.raw.data;
|
|
13
|
-
},
|
|
13
|
+
}, z = (e) => {
|
|
14
14
|
if ((e == null ? void 0 : e.type) === "error")
|
|
15
15
|
return !0;
|
|
16
|
-
const t =
|
|
16
|
+
const t = w(e);
|
|
17
17
|
return (t == null ? void 0 : t.type) === "agent-error";
|
|
18
|
-
},
|
|
19
|
-
const t =
|
|
18
|
+
}, Ue = (e) => {
|
|
19
|
+
const t = w(e);
|
|
20
20
|
return (t == null ? void 0 : t.type) === "agent-fake-msg";
|
|
21
|
-
},
|
|
22
|
-
const t =
|
|
21
|
+
}, He = (e) => (e == null ? void 0 : e.type) === "file", Ge = (e) => {
|
|
22
|
+
const t = w(e);
|
|
23
23
|
return (t == null ? void 0 : t.type) === "query-stream-parsed-info";
|
|
24
|
-
},
|
|
25
|
-
const t =
|
|
24
|
+
}, ze = (e) => {
|
|
25
|
+
const t = w(e);
|
|
26
26
|
if ((t == null ? void 0 : t.type) !== "query-stream-parsed-info")
|
|
27
27
|
return null;
|
|
28
28
|
const n = t.result;
|
|
@@ -32,39 +32,39 @@ const y = (e) => {
|
|
|
32
32
|
} catch (r) {
|
|
33
33
|
return console.error("invalid query result data"), null;
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, Qe = (e) => {
|
|
36
36
|
if (!Array.isArray(e))
|
|
37
37
|
return !1;
|
|
38
38
|
for (const t of e)
|
|
39
39
|
if ((t == null ? void 0 : t.type) === "file")
|
|
40
40
|
return !0;
|
|
41
41
|
return !1;
|
|
42
|
-
},
|
|
43
|
-
const t =
|
|
42
|
+
}, Ye = (e) => {
|
|
43
|
+
const t = w(e);
|
|
44
44
|
return (t == null ? void 0 : t.type) === "agent-loading";
|
|
45
|
-
},
|
|
46
|
-
const t =
|
|
45
|
+
}, Ke = (e) => {
|
|
46
|
+
const t = w(e);
|
|
47
47
|
return (t == null ? void 0 : t.type) !== "agent-loading" ? "" : (t == null ? void 0 : t.label) || "加载中";
|
|
48
|
-
},
|
|
49
|
-
if (!
|
|
48
|
+
}, Xe = (e) => {
|
|
49
|
+
if (!z(e))
|
|
50
50
|
return "";
|
|
51
51
|
if (e != null && e.errorText)
|
|
52
52
|
return e.errorText;
|
|
53
|
-
const t =
|
|
53
|
+
const t = w(e);
|
|
54
54
|
return (t == null ? void 0 : t.error) || "未知错误";
|
|
55
|
-
},
|
|
55
|
+
}, Ze = (e) => {
|
|
56
56
|
if (e != null && e.errorText)
|
|
57
57
|
return e.errorText;
|
|
58
|
-
const t =
|
|
58
|
+
const t = w(e);
|
|
59
59
|
return (t == null ? void 0 : t.error) || "未知错误";
|
|
60
|
-
},
|
|
60
|
+
}, F = "data-shadow-slot-injected", C = "host-clone", Q = (e) => {
|
|
61
61
|
try {
|
|
62
62
|
const t = new CSSStyleSheet();
|
|
63
63
|
t.replaceSync(e);
|
|
64
64
|
const n = [], r = [], l = [];
|
|
65
65
|
let a = [];
|
|
66
66
|
const i = () => {
|
|
67
|
-
a.length && (l.push(`@layer ${
|
|
67
|
+
a.length && (l.push(`@layer ${C} {
|
|
68
68
|
${a.join(`
|
|
69
69
|
`)}
|
|
70
70
|
}`), a = []);
|
|
@@ -74,30 +74,30 @@ ${a.join(`
|
|
|
74
74
|
return i(), [...n, ...r, ...l].join(`
|
|
75
75
|
`);
|
|
76
76
|
} catch (t) {
|
|
77
|
-
return `@layer ${
|
|
77
|
+
return `@layer ${C} {
|
|
78
78
|
${e}
|
|
79
79
|
}`;
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
if (e.querySelector(`[${
|
|
81
|
+
}, Ve = (e, t) => {
|
|
82
|
+
if (e.querySelector(`[${F}]`)) return;
|
|
83
83
|
const n = [], r = [], l = (o) => {
|
|
84
84
|
if (o instanceof HTMLLinkElement) {
|
|
85
|
-
const
|
|
86
|
-
n.push(o.media ? `${
|
|
87
|
-
} else o instanceof HTMLStyleElement && r.push(
|
|
85
|
+
const c = `@import url("${o.href}") layer(${C})`;
|
|
86
|
+
n.push(o.media ? `${c} ${o.media};` : `${c};`);
|
|
87
|
+
} else o instanceof HTMLStyleElement && r.push(Q(o.textContent || ""));
|
|
88
88
|
};
|
|
89
89
|
document.head.querySelectorAll("style").forEach(l), document.head.querySelectorAll('link[rel="stylesheet"]').forEach(l);
|
|
90
90
|
let a = t.parentNode;
|
|
91
91
|
for (; a; )
|
|
92
92
|
a instanceof ShadowRoot && (a.querySelectorAll("style").forEach(l), a.querySelectorAll('link[rel="stylesheet"]').forEach(l)), a = a.parentNode;
|
|
93
93
|
const i = document.createElement("style");
|
|
94
|
-
i.setAttribute(
|
|
95
|
-
`@layer ${
|
|
94
|
+
i.setAttribute(F, ""), i.textContent = [
|
|
95
|
+
`@layer ${C};`,
|
|
96
96
|
...n,
|
|
97
97
|
...r
|
|
98
98
|
].join(`
|
|
99
99
|
`), e.appendChild(i);
|
|
100
|
-
},
|
|
100
|
+
}, q = "data-bs-host-style", E = /* @__PURE__ */ new WeakMap(), N = (e, t) => e.replace(
|
|
101
101
|
/url\(\s*(?:"([^"\n]*)"|'([^'\n]*)'|([^\s)]*))\s*\)/gi,
|
|
102
102
|
(n, r, l, a) => {
|
|
103
103
|
var o;
|
|
@@ -105,139 +105,214 @@ ${e}
|
|
|
105
105
|
if (!i || /^(?:data:|blob:|#|var\()/i.test(i)) return n;
|
|
106
106
|
try {
|
|
107
107
|
return `url(${JSON.stringify(new URL(i, t).href)})`;
|
|
108
|
-
} catch (
|
|
108
|
+
} catch (c) {
|
|
109
109
|
return n;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
),
|
|
112
|
+
), Y = (e) => e.replace(/(^|,\s*)(?::root|html)(?=$|[\s>.:#\[])/g, "$1:host").replace(/:host\s+(?:>\s*)?body(?=$|[\s>.:#\[])/g, ":host > [data-bs-shadow-content]").replace(/(^|,\s*)body(?=$|[\s>.:#\[])/g, "$1[data-bs-shadow-content]"), x = (e, t) => Array.from(e).map((n) => {
|
|
113
113
|
if (n.type === 1) {
|
|
114
114
|
const r = n, l = n.cssText.slice(n.cssText.indexOf("{"));
|
|
115
|
-
return
|
|
115
|
+
return Y(r.selectorText) + N(l, t);
|
|
116
116
|
}
|
|
117
|
-
return "cssRules" in n && n.type !== 7 ? n.cssText.slice(0, n.cssText.indexOf("{") + 1) +
|
|
117
|
+
return "cssRules" in n && n.type !== 7 ? n.cssText.slice(0, n.cssText.indexOf("{") + 1) + x(n.cssRules, t) + "}" : N(n.cssText, t);
|
|
118
118
|
}).join(`
|
|
119
|
-
`),
|
|
119
|
+
`), T = (e) => {
|
|
120
120
|
var r, l;
|
|
121
121
|
const t = e.nodeType === 9 ? e : e.ownerDocument, n = [];
|
|
122
122
|
if (e.nodeType === 9 && t.body) {
|
|
123
|
-
const a = t.defaultView.getComputedStyle(t.body), i = ["font", "color", "line-height", "letter-spacing", "text-align", "text-transform", "direction", "color-scheme"], o = Array.from(a).filter((
|
|
124
|
-
n.push({ source: t, css: `:host {display:contents;${
|
|
123
|
+
const a = t.defaultView.getComputedStyle(t.body), i = ["font", "color", "line-height", "letter-spacing", "text-align", "text-transform", "direction", "color-scheme"], o = Array.from(a).filter((f) => f.startsWith("--")), c = [...i, ...o].map((f) => `${f}:${a.getPropertyValue(f)};`).join("");
|
|
124
|
+
n.push({ source: t, css: `:host {display:contents;${c}}`, media: "", nonce: "", classes: `${t.documentElement.className} ${t.body.className}` });
|
|
125
125
|
}
|
|
126
126
|
for (const a of Array.from(e.querySelectorAll('style,link[rel~="stylesheet"]'))) {
|
|
127
|
-
if (a.hasAttribute(
|
|
127
|
+
if (a.hasAttribute(q) || a.hasAttribute("data-bs-sdk-styles") || a.hasAttribute("data-shadow-slot-injected") || a.disabled || (r = a.sheet) != null && r.disabled) continue;
|
|
128
128
|
const i = a.media || "", o = a.nonce || "";
|
|
129
129
|
try {
|
|
130
130
|
if (a.sheet) {
|
|
131
|
-
n.push({ source: a, css:
|
|
131
|
+
n.push({ source: a, css: x(a.sheet.cssRules, a.sheet.href || a.baseURI), media: i, nonce: o });
|
|
132
132
|
continue;
|
|
133
133
|
}
|
|
134
|
-
} catch (
|
|
134
|
+
} catch (c) {
|
|
135
135
|
if (a.tagName === "LINK") {
|
|
136
136
|
n.push({ source: a, href: a.href, media: i, nonce: o });
|
|
137
137
|
continue;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
a.tagName === "LINK" ? n.push({ source: a, href: a.href, media: i, nonce: o }) : n.push({ source: a, css:
|
|
140
|
+
a.tagName === "LINK" ? n.push({ source: a, href: a.href, media: i, nonce: o }) : n.push({ source: a, css: N(a.textContent || "", a.baseURI), media: i, nonce: o });
|
|
141
141
|
}
|
|
142
142
|
for (const a of Array.from(e.adoptedStyleSheets || []))
|
|
143
|
-
a.disabled || n.push({ source: a, css:
|
|
143
|
+
a.disabled || n.push({ source: a, css: x(a.cssRules, t.baseURI), media: a.media.mediaText, nonce: "" });
|
|
144
144
|
return ((l = n[0]) == null ? void 0 : l.source) === t && n.push(n.shift()), n;
|
|
145
|
-
},
|
|
146
|
-
const t =
|
|
145
|
+
}, K = (e) => {
|
|
146
|
+
const t = E.get(e);
|
|
147
147
|
if (t) return t;
|
|
148
148
|
const n = e.nodeType === 9 ? e : e.ownerDocument;
|
|
149
|
-
let r =
|
|
149
|
+
let r = T(e), l = !1;
|
|
150
150
|
const a = /* @__PURE__ */ new Set(), i = () => {
|
|
151
151
|
l = !1;
|
|
152
|
-
const
|
|
153
|
-
|
|
152
|
+
const s = T(e);
|
|
153
|
+
s.length === r.length && s.every((u, d) => u.source === r[d].source && u.css === r[d].css && u.href === r[d].href && u.media === r[d].media && u.nonce === r[d].nonce && u.classes === r[d].classes) || (r = s, a.forEach((u) => u()));
|
|
154
154
|
}, o = () => {
|
|
155
155
|
l || (l = !0, queueMicrotask(() => {
|
|
156
156
|
a.size && i();
|
|
157
157
|
}));
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
return
|
|
162
|
-
(
|
|
158
|
+
}, c = new MutationObserver((s) => {
|
|
159
|
+
s.some((u) => {
|
|
160
|
+
const d = u.target.nodeType === 1 ? u.target : u.target.parentElement;
|
|
161
|
+
return d != null && d.closest(`style[${q}],style[data-bs-sdk-styles]`) ? !1 : (d === n.documentElement || d === n.body) && u.type === "attributes" || d != null && d.matches('style,link[rel~="stylesheet"]') ? !0 : [...Array.from(u.addedNodes), ...Array.from(u.removedNodes)].some(
|
|
162
|
+
(m) => m.nodeType === 1 && (m.matches('style,link[rel~="stylesheet"]') || m.querySelector('style,link[rel~="stylesheet"]'))
|
|
163
163
|
);
|
|
164
164
|
}) && o();
|
|
165
165
|
});
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
c.observe(e, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeFilter: ["href", "rel", "media", "disabled", "class", "style"] }), e.addEventListener("load", o, !0);
|
|
167
|
+
const f = n.defaultView.setInterval(i, 1e3), b = {
|
|
168
168
|
read: () => r,
|
|
169
169
|
refresh: o,
|
|
170
|
-
subscribe(
|
|
171
|
-
return a.add(
|
|
172
|
-
a.delete(
|
|
170
|
+
subscribe(s) {
|
|
171
|
+
return a.add(s), () => {
|
|
172
|
+
a.delete(s), !a.size && (c.disconnect(), e.removeEventListener("load", o, !0), n.defaultView.clearInterval(f), E.delete(e));
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
-
return
|
|
177
|
-
},
|
|
176
|
+
return E.set(e, b), b;
|
|
177
|
+
}, Je = (e, t) => {
|
|
178
178
|
const n = [t.ownerDocument];
|
|
179
179
|
let r = t.getRootNode();
|
|
180
180
|
for (; r.nodeType === 11 && "host" in r; ) {
|
|
181
|
-
const
|
|
182
|
-
|
|
181
|
+
const b = r;
|
|
182
|
+
b.host.getAttribute("data-bs-style-mode") !== "sdk" && n.splice(1, 0, b), r = b.host.getRootNode();
|
|
183
183
|
}
|
|
184
|
-
const l = n.map(
|
|
184
|
+
const l = n.map(K), a = t.ownerDocument.createComment("host styles");
|
|
185
185
|
e.prepend(a);
|
|
186
186
|
const i = /* @__PURE__ */ new Map(), o = () => {
|
|
187
|
-
var
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
for (const [
|
|
192
|
-
let
|
|
193
|
-
for (const
|
|
194
|
-
let
|
|
195
|
-
const
|
|
196
|
-
if (
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
} else
|
|
200
|
-
|
|
187
|
+
var h;
|
|
188
|
+
const b = l.reduce((g, p) => g.concat(p.read()), []), s = e.querySelector("[data-bs-shadow-content]"), u = `${t.ownerDocument.documentElement.className} ${((h = t.ownerDocument.body) == null ? void 0 : h.className) || ""}`;
|
|
189
|
+
s && s.className !== u && (s.className = u);
|
|
190
|
+
const d = new Set(b.map((g) => g.source));
|
|
191
|
+
for (const [g, p] of i) d.has(g) || (p.remove(), i.delete(g));
|
|
192
|
+
let m = a;
|
|
193
|
+
for (const g of b) {
|
|
194
|
+
let p = i.get(g.source);
|
|
195
|
+
const k = g.href ? "LINK" : "STYLE";
|
|
196
|
+
if (p && p.tagName !== k && (p.remove(), i.delete(g.source), p = void 0), p || (p = t.ownerDocument.createElement(g.href ? "link" : "style"), p.setAttribute(q, ""), i.set(g.source, p)), p.media = g.media, p.nonce = g.nonce, g.href) {
|
|
197
|
+
const S = p;
|
|
198
|
+
S.rel = "stylesheet", S.href !== g.href && (S.href = g.href);
|
|
199
|
+
} else p.textContent !== g.css && (p.textContent = g.css || "");
|
|
200
|
+
m.nextSibling !== p && m.after(p), m = p;
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, c = l.map((b) => b.subscribe(o));
|
|
203
203
|
o();
|
|
204
|
-
const
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
return
|
|
208
|
-
}) && l.forEach((
|
|
204
|
+
const f = new MutationObserver((b) => {
|
|
205
|
+
b.some((s) => {
|
|
206
|
+
const u = s.target.nodeType === 1 ? s.target : s.target.parentElement;
|
|
207
|
+
return u && !u.closest("style,link");
|
|
208
|
+
}) && l.forEach((s) => s.refresh());
|
|
209
209
|
});
|
|
210
|
-
return
|
|
211
|
-
|
|
210
|
+
return f.observe(e, { subtree: !0, childList: !0, characterData: !0, attributes: !0, attributeFilter: ["class"] }), () => {
|
|
211
|
+
f.disconnect(), c.forEach((b) => b()), i.forEach((b) => b.remove()), a.remove();
|
|
212
212
|
};
|
|
213
|
-
},
|
|
214
|
-
if (e.querySelector(`[${
|
|
213
|
+
}, R = "data-bs-font-faces", X = 5, et = (e, t) => {
|
|
214
|
+
if (e.querySelector(`[${R}]`)) return;
|
|
215
215
|
const n = t.ownerDocument, r = [];
|
|
216
216
|
for (const a of Array.from(n.styleSheets)) {
|
|
217
217
|
let i;
|
|
218
218
|
try {
|
|
219
219
|
i = a.cssRules;
|
|
220
|
-
} catch (
|
|
220
|
+
} catch (c) {
|
|
221
221
|
continue;
|
|
222
222
|
}
|
|
223
223
|
const o = a.href || n.baseURI;
|
|
224
|
-
for (const
|
|
225
|
-
|
|
224
|
+
for (const c of Array.from(i))
|
|
225
|
+
c.type === X && r.push(N(c.cssText, o));
|
|
226
226
|
}
|
|
227
227
|
if (!r.length) return;
|
|
228
228
|
const l = n.createElement("style");
|
|
229
|
-
l.setAttribute(
|
|
229
|
+
l.setAttribute(R, ""), l.textContent = r.join(`
|
|
230
230
|
`), e.prepend(l);
|
|
231
231
|
};
|
|
232
|
-
function
|
|
232
|
+
function Z(e) {
|
|
233
233
|
return Array.isArray(e) ? e.every((t) => typeof t == "string") : !1;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function V(e) {
|
|
236
236
|
return Array.isArray(e) ? e.every(
|
|
237
237
|
(t) => typeof t == "object" && t !== null && "label" in t && "value" in t && typeof t.label == "string" && typeof t.value == "string"
|
|
238
238
|
) : !1;
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const D = (e) => Z(e) ? e.join(", ") : V(e) ? e.map((n) => n.value).join(", ") : e, J = (e) => {
|
|
241
|
+
var r, l;
|
|
242
|
+
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
243
|
+
for (const a of Array.isArray(e) ? e : []) {
|
|
244
|
+
const i = a == null ? void 0 : a.widget;
|
|
245
|
+
if ((i == null ? void 0 : i.type) !== "subform" || !i.widgetName) continue;
|
|
246
|
+
const o = {
|
|
247
|
+
label: a.label,
|
|
248
|
+
columns: /* @__PURE__ */ new Set(),
|
|
249
|
+
labelToColumn: /* @__PURE__ */ new Map()
|
|
250
|
+
};
|
|
251
|
+
for (const c of (r = i.items) != null ? r : []) {
|
|
252
|
+
const f = (l = c == null ? void 0 : c.widget) == null ? void 0 : l.widgetName;
|
|
253
|
+
f && (o.columns.add(f), c.label && o.labelToColumn.set(c.label, f), n.set(f, i.widgetName));
|
|
254
|
+
}
|
|
255
|
+
t.set(i.widgetName, o);
|
|
256
|
+
}
|
|
257
|
+
return { subforms: t, columnToSubform: n };
|
|
258
|
+
}, tt = (e, t) => {
|
|
259
|
+
const { subforms: n, columnToSubform: r } = J(e);
|
|
260
|
+
let l, a = /* @__PURE__ */ new Map();
|
|
261
|
+
const i = (s, u, d) => {
|
|
262
|
+
const m = n.get(s);
|
|
263
|
+
return !m || u && m.columns.has(u) ? u : d ? m.labelToColumn.get(d) : void 0;
|
|
264
|
+
}, o = (s, u) => {
|
|
265
|
+
if (!Array.isArray(u))
|
|
266
|
+
return u && typeof u == "object" ? u : null;
|
|
267
|
+
const d = {};
|
|
268
|
+
for (const m of u) {
|
|
269
|
+
const h = i(s, m == null ? void 0 : m.fieldName, m == null ? void 0 : m.label);
|
|
270
|
+
h && (d[h] = D(m.value));
|
|
271
|
+
}
|
|
272
|
+
return d;
|
|
273
|
+
}, c = (s, u, d) => {
|
|
274
|
+
var h;
|
|
275
|
+
const m = (h = a.get(s)) != null ? h : [{}];
|
|
276
|
+
m[0] = { ...m[0], [u]: D(d) }, a.set(s, m);
|
|
277
|
+
}, f = () => {
|
|
278
|
+
const s = a;
|
|
279
|
+
a = /* @__PURE__ */ new Map(), s.forEach((u, d) => {
|
|
280
|
+
var h, g;
|
|
281
|
+
const m = u.filter((p) => Object.keys(p).length > 0);
|
|
282
|
+
m.length && t({
|
|
283
|
+
label: (g = (h = n.get(d)) == null ? void 0 : h.label) != null ? g : d,
|
|
284
|
+
fieldName: d,
|
|
285
|
+
fieldType: "subform",
|
|
286
|
+
value: m,
|
|
287
|
+
row: l != null ? l : 0
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
return { push: (s) => {
|
|
292
|
+
var p, k;
|
|
293
|
+
if (!(s != null && s.fieldName)) return;
|
|
294
|
+
const u = (k = (p = s.row) != null ? p : l) != null ? k : 0;
|
|
295
|
+
l !== void 0 && u !== l && f(), l = u;
|
|
296
|
+
const { fieldName: d, fieldType: m, label: h } = s;
|
|
297
|
+
if (m === "subform") {
|
|
298
|
+
if (!Array.isArray(s.value)) return;
|
|
299
|
+
const S = s.value.map((_) => o(d, _)).filter((_) => _ !== null);
|
|
300
|
+
a.set(d, S);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
const g = r.get(d);
|
|
304
|
+
if (g) {
|
|
305
|
+
c(g, d, s.value);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
if (n.has(d)) {
|
|
309
|
+
const S = i(d, void 0, h);
|
|
310
|
+
S && c(d, S, s.value);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
t({ ...s, label: h != null ? h : "", row: u });
|
|
314
|
+
}, flush: f };
|
|
315
|
+
}, ee = /* @__PURE__ */ new Set([
|
|
241
316
|
"password",
|
|
242
317
|
"textarea",
|
|
243
318
|
"datetime",
|
|
@@ -248,16 +323,16 @@ const Ve = (e) => K(e) ? e.join(", ") : X(e) ? e.map((n) => n.value).join(", ")
|
|
|
248
323
|
"combocheck",
|
|
249
324
|
"checkboxgroup",
|
|
250
325
|
"number"
|
|
251
|
-
]),
|
|
252
|
-
const n =
|
|
326
|
+
]), nt = (e) => Array.isArray(e) ? e.filter((t) => t.widget ? ee.has(t.widget.type) : !1) : [], te = (e) => (t) => {
|
|
327
|
+
const n = w(t);
|
|
253
328
|
return (n == null ? void 0 : n.type) === e;
|
|
254
|
-
},
|
|
329
|
+
}, rt = (e) => (t) => {
|
|
255
330
|
const n = t, r = n == null ? void 0 : n.part;
|
|
256
|
-
return
|
|
257
|
-
},
|
|
258
|
-
const n =
|
|
331
|
+
return te(e)(r);
|
|
332
|
+
}, at = (e) => (t) => {
|
|
333
|
+
const n = w(t);
|
|
259
334
|
return (n == null ? void 0 : n.type) !== e ? null : (n == null ? void 0 : n.field) || null;
|
|
260
|
-
},
|
|
335
|
+
}, lt = (e) => (t) => Array.isArray(t) && t.length > 0 ? t.filter(e) : e(t) ? [t] : [], it = (e) => {
|
|
261
336
|
if (typeof e != "string")
|
|
262
337
|
return e;
|
|
263
338
|
try {
|
|
@@ -265,14 +340,14 @@ const Ve = (e) => K(e) ? e.join(", ") : X(e) ? e.map((n) => n.value).join(", ")
|
|
|
265
340
|
} catch (t) {
|
|
266
341
|
return console.info("[safeParseJson] Failed to parse JSON:", t), null;
|
|
267
342
|
}
|
|
268
|
-
},
|
|
343
|
+
}, $ = (e) => !!(e && typeof e == "object" && e.qnKey), ot = (e) => {
|
|
269
344
|
var r, l;
|
|
270
345
|
const t = (r = e == null ? void 0 : e.widget) == null ? void 0 : r.value, n = (l = e == null ? void 0 : e.widget) == null ? void 0 : l.type;
|
|
271
|
-
return t == null || t === "" || Array.isArray(t) && t.length === 0 || typeof t == "number" && Number.isNaN(t) || typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? !1 : n === "signature" ?
|
|
272
|
-
},
|
|
346
|
+
return t == null || t === "" || Array.isArray(t) && t.length === 0 || typeof t == "number" && Number.isNaN(t) || typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? !1 : n === "signature" ? $(t) : n === "upload" || n === "image" ? Array.isArray(t) && t.length > 0 && t.every($) : !0;
|
|
347
|
+
}, ne = (e = "_widget_") => {
|
|
273
348
|
const t = Date.now(), n = String(t), r = n.length, l = n.slice(0, r - 5), a = String(Math.floor(Math.random() * 1e5)).padStart(5, "0");
|
|
274
349
|
return `${e}${l}${a}`;
|
|
275
|
-
},
|
|
350
|
+
}, st = (e, t) => ({
|
|
276
351
|
field: e,
|
|
277
352
|
onLoaded: () => {
|
|
278
353
|
t.fillWidget({
|
|
@@ -289,13 +364,13 @@ const Ve = (e) => K(e) ? e.join(", ") : X(e) ? e.map((n) => n.value).join(", ")
|
|
|
289
364
|
};
|
|
290
365
|
t.fillWidget(i);
|
|
291
366
|
}
|
|
292
|
-
}),
|
|
367
|
+
}), ut = 10, ct = (e, t = "image/png") => new Promise((n) => {
|
|
293
368
|
const r = new Image();
|
|
294
369
|
r.crossOrigin = "anonymous", r.onload = () => {
|
|
295
370
|
const l = document.createElement("canvas");
|
|
296
371
|
l.width = r.naturalWidth, l.height = r.naturalHeight, l.getContext("2d").drawImage(r, 0, 0), n(l.toDataURL(t));
|
|
297
372
|
}, r.onerror = () => n(e), r.src = e;
|
|
298
|
-
}),
|
|
373
|
+
}), re = {
|
|
299
374
|
eq: "等于",
|
|
300
375
|
neq: "不等于",
|
|
301
376
|
gt: "大于",
|
|
@@ -312,7 +387,7 @@ const Ve = (e) => K(e) ? e.join(", ") : X(e) ? e.map((n) => n.value).join(", ")
|
|
|
312
387
|
range: "选择范围",
|
|
313
388
|
like: "模糊匹配",
|
|
314
389
|
unlike: "模糊不匹配"
|
|
315
|
-
},
|
|
390
|
+
}, ae = {
|
|
316
391
|
usergroup: { in: "包含任意一个" },
|
|
317
392
|
deptgroup: { in: "包含任意一个" },
|
|
318
393
|
checkboxgroup: { in: "包含任意一个" },
|
|
@@ -320,12 +395,12 @@ const Ve = (e) => K(e) ? e.join(", ") : X(e) ? e.map((n) => n.value).join(", ")
|
|
|
320
395
|
address: { in: "属于", nin: "不属于" },
|
|
321
396
|
location: { in: "包含", nin: "不包含" }
|
|
322
397
|
};
|
|
323
|
-
function
|
|
398
|
+
function dt(e, t) {
|
|
324
399
|
var r, l;
|
|
325
|
-
const n = t ?
|
|
326
|
-
return (l = (r = n == null ? void 0 : n[e]) != null ? r :
|
|
400
|
+
const n = t ? ae[t] : void 0;
|
|
401
|
+
return (l = (r = n == null ? void 0 : n[e]) != null ? r : re[e]) != null ? l : e;
|
|
327
402
|
}
|
|
328
|
-
const
|
|
403
|
+
const le = {
|
|
329
404
|
// Text-like: equality, fuzzy, empty checks
|
|
330
405
|
text: ["eq", "neq", "in", "nin", "contains", "not_contains", "empty", "not_empty"],
|
|
331
406
|
password: ["eq", "neq", "contains", "not_contains", "empty", "not_empty"],
|
|
@@ -369,7 +444,7 @@ const ne = {
|
|
|
369
444
|
button: [],
|
|
370
445
|
subform: [],
|
|
371
446
|
unknown: []
|
|
372
|
-
},
|
|
447
|
+
}, ie = {
|
|
373
448
|
text: "eq",
|
|
374
449
|
password: "eq",
|
|
375
450
|
radiogroup: "eq",
|
|
@@ -397,36 +472,36 @@ const ne = {
|
|
|
397
472
|
dataload: "eq",
|
|
398
473
|
formula: "eq"
|
|
399
474
|
};
|
|
400
|
-
function
|
|
475
|
+
function mt(e) {
|
|
401
476
|
var t;
|
|
402
|
-
return e ? (t =
|
|
477
|
+
return e ? (t = le[e]) != null ? t : [] : [];
|
|
403
478
|
}
|
|
404
|
-
function
|
|
479
|
+
function ft(e) {
|
|
405
480
|
var t;
|
|
406
|
-
return e && (t =
|
|
481
|
+
return e && (t = ie[e]) != null ? t : "eq";
|
|
407
482
|
}
|
|
408
|
-
function
|
|
483
|
+
function v(e) {
|
|
409
484
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
410
485
|
}
|
|
411
|
-
function
|
|
412
|
-
return
|
|
486
|
+
function H(e) {
|
|
487
|
+
return v(e) ? e : null;
|
|
413
488
|
}
|
|
414
|
-
function
|
|
489
|
+
function O(e) {
|
|
415
490
|
return !!(e == null || e === "" || e === "{}" || Array.isArray(e) && e.length === 0);
|
|
416
491
|
}
|
|
417
|
-
function
|
|
492
|
+
function M(e, t) {
|
|
418
493
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
419
494
|
if (e.length !== t.length) return !1;
|
|
420
495
|
const n = e.map(String).sort(), r = t.map(String).sort();
|
|
421
496
|
return n.every((l, a) => l === r[a]);
|
|
422
497
|
}
|
|
423
|
-
if (
|
|
498
|
+
if (v(e) && v(t)) {
|
|
424
499
|
const n = Object.keys(e), r = Object.keys(t);
|
|
425
500
|
return n.length !== r.length ? !1 : n.every((l) => String(e[l]) === String(t[l]));
|
|
426
501
|
}
|
|
427
502
|
return String(e) === String(t);
|
|
428
503
|
}
|
|
429
|
-
function
|
|
504
|
+
function P(e) {
|
|
430
505
|
if (e == null) return null;
|
|
431
506
|
let t = null;
|
|
432
507
|
if (e instanceof Date)
|
|
@@ -439,69 +514,69 @@ function D(e) {
|
|
|
439
514
|
const n = /^(\d{4})-(\d{1,2})-(\d{1,2})/.exec(t);
|
|
440
515
|
return n ? `${n[1]}-${n[2].padStart(2, "0")}-${n[3].padStart(2, "0")}` : null;
|
|
441
516
|
}
|
|
442
|
-
function
|
|
443
|
-
const n =
|
|
444
|
-
return n !== null && r !== null ? n === r :
|
|
517
|
+
function I(e, t) {
|
|
518
|
+
const n = P(e), r = P(t);
|
|
519
|
+
return n !== null && r !== null ? n === r : M(e, t);
|
|
445
520
|
}
|
|
446
|
-
function
|
|
447
|
-
if (
|
|
448
|
-
const r =
|
|
521
|
+
function L(e, t) {
|
|
522
|
+
if (v(t)) {
|
|
523
|
+
const r = H(e);
|
|
449
524
|
return !(!r || t.province !== void 0 && String(r.province) !== String(t.province) || t.city !== void 0 && String(r.city) !== String(t.city) || t.district !== void 0 && String(r.district) !== String(t.district));
|
|
450
525
|
}
|
|
451
526
|
const n = Array.isArray(t) ? t.map(String) : [];
|
|
452
527
|
return Array.isArray(e) ? e.some((r) => n.includes(String(r))) : n.includes(String(e));
|
|
453
528
|
}
|
|
454
|
-
function
|
|
529
|
+
function oe(e, t) {
|
|
455
530
|
const n = Array.isArray(t) ? t.map(String) : [];
|
|
456
531
|
if (n.length === 0) return !1;
|
|
457
532
|
const r = Array.isArray(e) ? e.map(String) : [];
|
|
458
533
|
return n.every((l) => r.includes(l));
|
|
459
534
|
}
|
|
460
|
-
function
|
|
461
|
-
const n =
|
|
535
|
+
function se(e, t) {
|
|
536
|
+
const n = H(t);
|
|
462
537
|
if (!n) return !1;
|
|
463
538
|
const r = Number(e);
|
|
464
539
|
return !(isNaN(r) || n.min !== void 0 && n.min !== null && r < Number(n.min) || n.max !== void 0 && n.max !== null && r > Number(n.max));
|
|
465
540
|
}
|
|
466
|
-
const
|
|
467
|
-
function
|
|
468
|
-
return
|
|
541
|
+
const ue = (e, t) => t === "user" ? e == null ? void 0 : e._id : e;
|
|
542
|
+
function ce(e) {
|
|
543
|
+
return v(e) && "data" in e && "widgetType" in e;
|
|
469
544
|
}
|
|
470
|
-
function
|
|
545
|
+
function W(e, t) {
|
|
471
546
|
const n = [];
|
|
472
547
|
for (const r of e)
|
|
473
|
-
if (
|
|
548
|
+
if (v(r) && t in r) {
|
|
474
549
|
const l = r[t];
|
|
475
|
-
n.push(
|
|
550
|
+
n.push(ce(l) ? l.data : l);
|
|
476
551
|
}
|
|
477
552
|
return n;
|
|
478
553
|
}
|
|
479
|
-
function
|
|
554
|
+
function de(e, t) {
|
|
480
555
|
if (e.includes(".")) {
|
|
481
556
|
const [n, r] = e.split("."), l = t[n];
|
|
482
|
-
return Array.isArray(l) ?
|
|
557
|
+
return Array.isArray(l) ? W(l, r) : [];
|
|
483
558
|
}
|
|
484
559
|
if (e in t)
|
|
485
560
|
return [t[e]];
|
|
486
561
|
for (const n of Object.values(t)) {
|
|
487
562
|
if (!Array.isArray(n)) continue;
|
|
488
|
-
const r =
|
|
563
|
+
const r = W(n, e);
|
|
489
564
|
if (r.length > 0) return r;
|
|
490
565
|
}
|
|
491
566
|
return [];
|
|
492
567
|
}
|
|
493
|
-
function
|
|
568
|
+
function B(e, t) {
|
|
494
569
|
var o;
|
|
495
|
-
const n = (o = t.field.widget) == null ? void 0 : o.type, r =
|
|
570
|
+
const n = (o = t.field.widget) == null ? void 0 : o.type, r = ue(e, n), { operator: l, value: a } = t, i = n === "datetime";
|
|
496
571
|
switch (l) {
|
|
497
572
|
case "empty":
|
|
498
|
-
return
|
|
573
|
+
return O(r);
|
|
499
574
|
case "not_empty":
|
|
500
|
-
return !
|
|
575
|
+
return !O(r);
|
|
501
576
|
case "eq":
|
|
502
|
-
return i ?
|
|
577
|
+
return i ? I(r, a) : M(r, a);
|
|
503
578
|
case "neq":
|
|
504
|
-
return i ?
|
|
579
|
+
return i ? !I(r, a) : !M(r, a);
|
|
505
580
|
case "contains":
|
|
506
581
|
case "like":
|
|
507
582
|
return String(r).includes(String(a));
|
|
@@ -517,25 +592,25 @@ function I(e, t) {
|
|
|
517
592
|
case "lte":
|
|
518
593
|
return Number(r) <= Number(a);
|
|
519
594
|
case "in":
|
|
520
|
-
return
|
|
595
|
+
return L(r, a);
|
|
521
596
|
case "nin":
|
|
522
|
-
return !
|
|
597
|
+
return !L(r, a);
|
|
523
598
|
case "all":
|
|
524
|
-
return
|
|
599
|
+
return oe(r, a);
|
|
525
600
|
case "range":
|
|
526
|
-
return
|
|
601
|
+
return se(r, a);
|
|
527
602
|
default:
|
|
528
603
|
return !1;
|
|
529
604
|
}
|
|
530
605
|
}
|
|
531
|
-
function
|
|
606
|
+
function me(e, t) {
|
|
532
607
|
var l;
|
|
533
608
|
const n = (l = e.field.widget) == null ? void 0 : l.widgetName;
|
|
534
609
|
if (!n) return !1;
|
|
535
|
-
const r =
|
|
536
|
-
return r.length === 0 ?
|
|
610
|
+
const r = de(n, t);
|
|
611
|
+
return r.length === 0 ? B(void 0, e) : r.some((a) => B(a, e));
|
|
537
612
|
}
|
|
538
|
-
function
|
|
613
|
+
function gt(e, t) {
|
|
539
614
|
var l;
|
|
540
615
|
if (!t || !(t != null && t.length))
|
|
541
616
|
return !1;
|
|
@@ -548,17 +623,17 @@ function ct(e, t) {
|
|
|
548
623
|
return r.has((i = a == null ? void 0 : a.widget) == null ? void 0 : i.widgetName);
|
|
549
624
|
});
|
|
550
625
|
}
|
|
551
|
-
function
|
|
626
|
+
function pt(e, t) {
|
|
552
627
|
if (!e.enabled)
|
|
553
628
|
return !1;
|
|
554
629
|
const n = e.triggerCondition;
|
|
555
630
|
if (!n) return !0;
|
|
556
631
|
const { items: r, quantifier: l } = n;
|
|
557
632
|
if (!r || r.length === 0) return !0;
|
|
558
|
-
const a = r.map((i) =>
|
|
633
|
+
const a = r.map((i) => me(i, t));
|
|
559
634
|
return l === "any" ? a.some((i) => i) : a.every((i) => i);
|
|
560
635
|
}
|
|
561
|
-
const
|
|
636
|
+
const bt = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form" && t.params.formId === e.formId : e.appId ? (t.type === "app" || t.type === "form") && t.params.appId === e.appId : t.type === "global" || t.type === "app" || t.type === "form", fe = {
|
|
562
637
|
eq: "eq",
|
|
563
638
|
neq: "ne",
|
|
564
639
|
gt: "gt",
|
|
@@ -575,7 +650,7 @@ const gt = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
|
|
|
575
650
|
empty: "empty",
|
|
576
651
|
not_empty: "not_empty",
|
|
577
652
|
range: "range"
|
|
578
|
-
},
|
|
653
|
+
}, ge = {
|
|
579
654
|
eq: "eq",
|
|
580
655
|
ne: "neq",
|
|
581
656
|
gt: "gt",
|
|
@@ -593,24 +668,24 @@ const gt = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
|
|
|
593
668
|
not_empty: "not_empty",
|
|
594
669
|
range: "range"
|
|
595
670
|
};
|
|
596
|
-
function
|
|
671
|
+
function yt(e) {
|
|
597
672
|
const t = e.quantifier === "any" ? "or" : "and", n = e.items.map((r) => {
|
|
598
|
-
var i, o,
|
|
599
|
-
const l = (i =
|
|
673
|
+
var i, o, c, f, b, s;
|
|
674
|
+
const l = (i = fe[r.operator]) != null ? i : "eq";
|
|
600
675
|
let a;
|
|
601
|
-
return r.operator === "range" &&
|
|
602
|
-
field: (
|
|
676
|
+
return r.operator === "range" && v(r.value) ? a = [r.value.min, r.value.max] : Array.isArray(r.value) ? a = r.value : a = [r.value], {
|
|
677
|
+
field: (f = (c = (o = r.field) == null ? void 0 : o.widget) == null ? void 0 : c.widgetName) != null ? f : "",
|
|
603
678
|
method: l,
|
|
604
679
|
value: a,
|
|
605
|
-
type: (
|
|
680
|
+
type: (s = (b = r.field) == null ? void 0 : b.widget) == null ? void 0 : s.type
|
|
606
681
|
};
|
|
607
682
|
});
|
|
608
683
|
return JSON.stringify({ rel: t, cond: n });
|
|
609
684
|
}
|
|
610
|
-
function
|
|
685
|
+
function ht(e) {
|
|
611
686
|
const t = JSON.parse(e), n = t.rel === "or" ? "any" : "all", r = t.cond.map((l, a) => {
|
|
612
|
-
var
|
|
613
|
-
const i = (
|
|
687
|
+
var c, f;
|
|
688
|
+
const i = (c = ge[l.method]) != null ? c : "eq";
|
|
614
689
|
let o = l.value;
|
|
615
690
|
return i === "range" ? o = { min: l.value[0], max: l.value[1] } : ["eq", "neq", "contains", "not_contains", "gt", "gte", "lt", "lte"].includes(i) && (o = l.value[0]), {
|
|
616
691
|
id: `${l.field}_${a}`,
|
|
@@ -618,7 +693,7 @@ function pt(e) {
|
|
|
618
693
|
label: l.field,
|
|
619
694
|
widget: {
|
|
620
695
|
widgetName: l.field,
|
|
621
|
-
type: (
|
|
696
|
+
type: (f = l.type) != null ? f : "unknown",
|
|
622
697
|
value: void 0
|
|
623
698
|
}
|
|
624
699
|
},
|
|
@@ -628,23 +703,23 @@ function pt(e) {
|
|
|
628
703
|
});
|
|
629
704
|
return { targetName: "", quantifier: n, items: r };
|
|
630
705
|
}
|
|
631
|
-
function
|
|
706
|
+
function wt(e) {
|
|
632
707
|
const t = (n) => String(n).padStart(2, "0");
|
|
633
708
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
634
709
|
}
|
|
635
|
-
function
|
|
710
|
+
function St(e, t, n = 1) {
|
|
636
711
|
const r = [], l = [];
|
|
637
712
|
for (const a of e)
|
|
638
713
|
t(a) ? l.push(a) : (l.length > 0 && (r.push(l.length >= n ? [...l] : l[0]), l.length = 0), r.push(a));
|
|
639
714
|
return l.length > 0 && r.push(l.length >= 2 ? [...l] : l[0]), r;
|
|
640
715
|
}
|
|
641
|
-
function
|
|
716
|
+
function G(e) {
|
|
642
717
|
const t = [];
|
|
643
718
|
for (const n of e)
|
|
644
|
-
Array.isArray(n) ? t.push(...
|
|
719
|
+
Array.isArray(n) ? t.push(...G(n)) : t.push(n);
|
|
645
720
|
return t;
|
|
646
721
|
}
|
|
647
|
-
const
|
|
722
|
+
const pe = {
|
|
648
723
|
projectdevelopment: "e914",
|
|
649
724
|
resourcelibrary: "e915",
|
|
650
725
|
Plugin2: "e90e",
|
|
@@ -1051,11 +1126,11 @@ const me = {
|
|
|
1051
1126
|
Automation1: "ea95",
|
|
1052
1127
|
Avatar: "ea96"
|
|
1053
1128
|
};
|
|
1054
|
-
function
|
|
1055
|
-
const t =
|
|
1129
|
+
function vt(e) {
|
|
1130
|
+
const t = pe[e];
|
|
1056
1131
|
return t ? `&#x${t};` : void 0;
|
|
1057
1132
|
}
|
|
1058
|
-
const
|
|
1133
|
+
const At = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6: "e7b8", 7: "e7c8", 8: "e7c1", 9: "e7bb", 10: "e7ca", 11: "e7c4", 12: "e7b4", 13: "e7ba", 14: "e7b6", 15: "e7c5", 16: "e7bf", 17: "e7c3", 18: "e7c2", 19: "e7c6", 20: "e7bd", 21: "e7c0", 22: "e7cb", 23: "e7b7", 24: "e7b9", 25: "e814", 26: "e81d", 27: "e81c", 28: "e81a", 29: "e813", 30: "e81b", 31: "e818", 32: "e819", 33: "e817", 34: "e816", 35: "e810", 36: "e815", 37: "e812", 38: "e811", 39: "e80e", 40: "e80f", 41: "e80d", 42: "e807", 43: "e80b", 44: "e80a", 45: "e81d", 46: "e809", 47: "e808", 48: "e805", 49: "e7ff", 50: "e803", 51: "e806", 52: "e802", 53: "e800", 54: "e804", 55: "e801", 56: "e7fe", 57: "e7fc", 58: "e7fd", 59: "e7fb", 60: "e7fa" }, kt = (e, t, n) => {
|
|
1059
1134
|
if (!n)
|
|
1060
1135
|
return {
|
|
1061
1136
|
translated: ""
|
|
@@ -1065,22 +1140,22 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1065
1140
|
if (i.widget.type === "subform" && i.widget.items) {
|
|
1066
1141
|
for (const o of i.widget.items)
|
|
1067
1142
|
if ("widget" in o && !("options" in o)) {
|
|
1068
|
-
const
|
|
1069
|
-
r.set(
|
|
1143
|
+
const c = `${i.widget.widgetName}.${o.widget.widgetName}`;
|
|
1144
|
+
r.set(c, o.label);
|
|
1070
1145
|
}
|
|
1071
1146
|
}
|
|
1072
1147
|
const l = [], a = e.replace(
|
|
1073
1148
|
/\$\{(virtual\.)?(_widget_\d+(?:\._widget_\d+)?)\}/g,
|
|
1074
|
-
(i, o,
|
|
1075
|
-
const
|
|
1076
|
-
return
|
|
1149
|
+
(i, o, c) => {
|
|
1150
|
+
const f = !!o, { translated: b, meta: s } = n(c, f);
|
|
1151
|
+
return s && l.push(s), b;
|
|
1077
1152
|
}
|
|
1078
1153
|
);
|
|
1079
1154
|
return {
|
|
1080
|
-
meta: l.length ?
|
|
1155
|
+
meta: l.length ? G(l) : null,
|
|
1081
1156
|
translated: (a != null ? a : "").trim()
|
|
1082
1157
|
};
|
|
1083
|
-
},
|
|
1158
|
+
}, be = {
|
|
1084
1159
|
手机号码: "^((\\(\\d{2,3}\\))|(\\d{3}\\-))?1\\d{10}$",
|
|
1085
1160
|
电话号码: "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$",
|
|
1086
1161
|
邮政编码: "^\\d{6}$",
|
|
@@ -1092,8 +1167,8 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1092
1167
|
二维码图片: "qrcode",
|
|
1093
1168
|
条形码图片: "barcode",
|
|
1094
1169
|
自定义: "custom"
|
|
1095
|
-
},
|
|
1096
|
-
const { widget: t, labelStyle: n, label: r, ...l } = e || {}, a =
|
|
1170
|
+
}, j = (e) => {
|
|
1171
|
+
const { widget: t, labelStyle: n, label: r, ...l } = e || {}, a = be[n] || "";
|
|
1097
1172
|
return {
|
|
1098
1173
|
widget: {
|
|
1099
1174
|
widgetName: `_widget_${Date.now()}`,
|
|
@@ -1141,18 +1216,18 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1141
1216
|
tab: null,
|
|
1142
1217
|
...l
|
|
1143
1218
|
};
|
|
1144
|
-
},
|
|
1219
|
+
}, y = (e = "_widget", t) => {
|
|
1145
1220
|
const n = `${e}_${Date.now()}`;
|
|
1146
1221
|
if (t === void 0)
|
|
1147
1222
|
return n;
|
|
1148
1223
|
const r = t.toString().length;
|
|
1149
1224
|
return `${n.slice(0, -r)}${t}`;
|
|
1150
|
-
},
|
|
1225
|
+
}, ye = (e) => {
|
|
1151
1226
|
const { widget: t, label: n, ...r } = e || {};
|
|
1152
1227
|
return {
|
|
1153
1228
|
widget: {
|
|
1154
1229
|
type: "number",
|
|
1155
|
-
widgetName:
|
|
1230
|
+
widgetName: y(),
|
|
1156
1231
|
widgetNameAlias: "",
|
|
1157
1232
|
triggerEvent: !1,
|
|
1158
1233
|
customCls: null,
|
|
@@ -1212,7 +1287,7 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1212
1287
|
tab: null,
|
|
1213
1288
|
...r
|
|
1214
1289
|
};
|
|
1215
|
-
},
|
|
1290
|
+
}, he = (e) => {
|
|
1216
1291
|
const { widget: t, label: n, ...r } = e || {};
|
|
1217
1292
|
return {
|
|
1218
1293
|
widget: {
|
|
@@ -1249,7 +1324,7 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1249
1324
|
tab: null,
|
|
1250
1325
|
...r
|
|
1251
1326
|
};
|
|
1252
|
-
},
|
|
1327
|
+
}, U = (e) => {
|
|
1253
1328
|
const { widget: t, label: n, ...r } = e || {};
|
|
1254
1329
|
return {
|
|
1255
1330
|
widget: {
|
|
@@ -1285,7 +1360,7 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1285
1360
|
...r,
|
|
1286
1361
|
labelStyle: n
|
|
1287
1362
|
};
|
|
1288
|
-
},
|
|
1363
|
+
}, we = (e) => {
|
|
1289
1364
|
const { widget: t, label: n, ...r } = e || {};
|
|
1290
1365
|
return {
|
|
1291
1366
|
widget: {
|
|
@@ -1352,12 +1427,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1352
1427
|
tab: null,
|
|
1353
1428
|
...r
|
|
1354
1429
|
};
|
|
1355
|
-
},
|
|
1430
|
+
}, A = (e) => e, Se = (e) => {
|
|
1356
1431
|
const { widget: t, label: n, ...r } = e || {};
|
|
1357
1432
|
return {
|
|
1358
1433
|
widget: {
|
|
1359
1434
|
type: "deptgroup",
|
|
1360
|
-
widgetName:
|
|
1435
|
+
widgetName: y(),
|
|
1361
1436
|
widgetNameAlias: "",
|
|
1362
1437
|
customCls: null,
|
|
1363
1438
|
height: "34",
|
|
@@ -1386,12 +1461,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1386
1461
|
tab: null,
|
|
1387
1462
|
...r
|
|
1388
1463
|
};
|
|
1389
|
-
},
|
|
1464
|
+
}, ve = (e) => {
|
|
1390
1465
|
const { widget: t, label: n, ...r } = e || {};
|
|
1391
1466
|
return {
|
|
1392
1467
|
widget: {
|
|
1393
1468
|
type: "sn",
|
|
1394
|
-
widgetName:
|
|
1469
|
+
widgetName: y(),
|
|
1395
1470
|
widgetNameAlias: "",
|
|
1396
1471
|
triggerEvent: 0,
|
|
1397
1472
|
customCls: null,
|
|
@@ -1423,12 +1498,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1423
1498
|
tab: null,
|
|
1424
1499
|
...r
|
|
1425
1500
|
};
|
|
1426
|
-
},
|
|
1501
|
+
}, Ae = (e) => {
|
|
1427
1502
|
const { widget: t, label: n, ...r } = e || {};
|
|
1428
1503
|
return {
|
|
1429
1504
|
widget: {
|
|
1430
1505
|
type: "dept",
|
|
1431
|
-
widgetName:
|
|
1506
|
+
widgetName: y(),
|
|
1432
1507
|
widgetNameAlias: "",
|
|
1433
1508
|
customCls: null,
|
|
1434
1509
|
height: "34",
|
|
@@ -1457,12 +1532,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1457
1532
|
tab: null,
|
|
1458
1533
|
...r
|
|
1459
1534
|
};
|
|
1460
|
-
},
|
|
1535
|
+
}, ke = (e) => {
|
|
1461
1536
|
const { widget: t, label: n, ...r } = e || {};
|
|
1462
1537
|
return {
|
|
1463
1538
|
widget: {
|
|
1464
1539
|
type: "usergroup",
|
|
1465
|
-
widgetName:
|
|
1540
|
+
widgetName: y(),
|
|
1466
1541
|
widgetNameAlias: "",
|
|
1467
1542
|
customCls: null,
|
|
1468
1543
|
height: "34",
|
|
@@ -1494,11 +1569,11 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1494
1569
|
tab: null,
|
|
1495
1570
|
...r
|
|
1496
1571
|
};
|
|
1497
|
-
},
|
|
1572
|
+
}, Ce = (e) => {
|
|
1498
1573
|
const { widget: t, label: n, ...r } = e || {};
|
|
1499
1574
|
return {
|
|
1500
1575
|
widget: {
|
|
1501
|
-
widgetName:
|
|
1576
|
+
widgetName: y(),
|
|
1502
1577
|
widgetNameAlias: "",
|
|
1503
1578
|
customCls: null,
|
|
1504
1579
|
enable: !0,
|
|
@@ -1522,7 +1597,7 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1522
1597
|
tab: null,
|
|
1523
1598
|
...r
|
|
1524
1599
|
};
|
|
1525
|
-
},
|
|
1600
|
+
}, Ne = (e) => !e || !e.length ? e : e.map((t, n) => ({
|
|
1526
1601
|
id: n,
|
|
1527
1602
|
// name: "_widget_1761976674767",
|
|
1528
1603
|
// form: "a2f34ef882158a3e97da4ef7",
|
|
@@ -1534,16 +1609,16 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1534
1609
|
isEditable: !0,
|
|
1535
1610
|
group: "dimension,filter,select",
|
|
1536
1611
|
formula: ""
|
|
1537
|
-
})),
|
|
1612
|
+
})), _e = (e) => !e || !e.length ? e : e.map((t) => ({
|
|
1538
1613
|
mode: "depend",
|
|
1539
1614
|
...t
|
|
1540
|
-
})),
|
|
1615
|
+
})), Ee = (e) => {
|
|
1541
1616
|
var l, a, i;
|
|
1542
1617
|
const { widget: t, label: n, ...r } = e || {};
|
|
1543
1618
|
return {
|
|
1544
1619
|
widget: {
|
|
1545
1620
|
type: "dataload",
|
|
1546
|
-
widgetName:
|
|
1621
|
+
widgetName: y(),
|
|
1547
1622
|
widgetNameAlias: "",
|
|
1548
1623
|
customCls: null,
|
|
1549
1624
|
width: 350,
|
|
@@ -1579,8 +1654,8 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1579
1654
|
forms: (l = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : l.forms,
|
|
1580
1655
|
selectArg: [],
|
|
1581
1656
|
selectRel: "and",
|
|
1582
|
-
fields:
|
|
1583
|
-
mapFields:
|
|
1657
|
+
fields: Ne((a = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : a.mapFields),
|
|
1658
|
+
mapFields: _e((i = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : i.mapFields)
|
|
1584
1659
|
},
|
|
1585
1660
|
labelStyle: n
|
|
1586
1661
|
},
|
|
@@ -1589,12 +1664,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1589
1664
|
tab: null,
|
|
1590
1665
|
...r
|
|
1591
1666
|
};
|
|
1592
|
-
},
|
|
1667
|
+
}, xe = (e) => {
|
|
1593
1668
|
const { widget: t, label: n, ...r } = e || {};
|
|
1594
1669
|
return {
|
|
1595
1670
|
widget: {
|
|
1596
1671
|
type: "user",
|
|
1597
|
-
widgetName:
|
|
1672
|
+
widgetName: y(),
|
|
1598
1673
|
widgetNameAlias: "",
|
|
1599
1674
|
customCls: null,
|
|
1600
1675
|
height: "34",
|
|
@@ -1626,12 +1701,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1626
1701
|
tab: null,
|
|
1627
1702
|
...r
|
|
1628
1703
|
};
|
|
1629
|
-
},
|
|
1704
|
+
}, Me = (e) => {
|
|
1630
1705
|
const { widget: t, label: n, ...r } = e || {};
|
|
1631
1706
|
return {
|
|
1632
1707
|
widget: {
|
|
1633
1708
|
type: "signature",
|
|
1634
|
-
widgetName:
|
|
1709
|
+
widgetName: y(),
|
|
1635
1710
|
widgetNameAlias: "",
|
|
1636
1711
|
customCls: null,
|
|
1637
1712
|
height: 34,
|
|
@@ -1649,12 +1724,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1649
1724
|
tab: null,
|
|
1650
1725
|
...r
|
|
1651
1726
|
};
|
|
1652
|
-
},
|
|
1727
|
+
}, qe = (e) => {
|
|
1653
1728
|
const { widget: t, label: n, ...r } = e || {};
|
|
1654
1729
|
return {
|
|
1655
1730
|
widget: {
|
|
1656
1731
|
type: "image",
|
|
1657
|
-
widgetName:
|
|
1732
|
+
widgetName: y(),
|
|
1658
1733
|
widgetNameAlias: "",
|
|
1659
1734
|
customCls: null,
|
|
1660
1735
|
height: 100,
|
|
@@ -1721,12 +1796,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1721
1796
|
tab: null,
|
|
1722
1797
|
...r
|
|
1723
1798
|
};
|
|
1724
|
-
},
|
|
1799
|
+
}, Fe = (e) => {
|
|
1725
1800
|
const { widget: t, label: n, ...r } = e || {};
|
|
1726
1801
|
return {
|
|
1727
1802
|
widget: {
|
|
1728
1803
|
type: "upload",
|
|
1729
|
-
widgetName:
|
|
1804
|
+
widgetName: y(),
|
|
1730
1805
|
widgetNameAlias: "",
|
|
1731
1806
|
customCls: null,
|
|
1732
1807
|
enable: !0,
|
|
@@ -1756,12 +1831,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1756
1831
|
tab: null,
|
|
1757
1832
|
...r
|
|
1758
1833
|
};
|
|
1759
|
-
},
|
|
1834
|
+
}, Te = (e) => {
|
|
1760
1835
|
const { widget: t, label: n, ...r } = e || {};
|
|
1761
1836
|
return {
|
|
1762
1837
|
widget: {
|
|
1763
1838
|
type: "checkboxgroup",
|
|
1764
|
-
widgetName:
|
|
1839
|
+
widgetName: y(),
|
|
1765
1840
|
widgetNameAlias: "",
|
|
1766
1841
|
customCls: null,
|
|
1767
1842
|
enable: !0,
|
|
@@ -1790,12 +1865,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1790
1865
|
tab: null,
|
|
1791
1866
|
...r
|
|
1792
1867
|
};
|
|
1793
|
-
},
|
|
1868
|
+
}, Re = (e) => {
|
|
1794
1869
|
const { widget: t, label: n, ...r } = e || {};
|
|
1795
1870
|
return {
|
|
1796
1871
|
widget: {
|
|
1797
1872
|
type: "separator",
|
|
1798
|
-
widgetName:
|
|
1873
|
+
widgetName: y(),
|
|
1799
1874
|
widgetNameAlias: "",
|
|
1800
1875
|
customCls: null,
|
|
1801
1876
|
enable: !0,
|
|
@@ -1809,12 +1884,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1809
1884
|
tab: null,
|
|
1810
1885
|
...r
|
|
1811
1886
|
};
|
|
1812
|
-
},
|
|
1887
|
+
}, De = (e) => {
|
|
1813
1888
|
const { widget: t, label: n, ...r } = e || {};
|
|
1814
1889
|
return {
|
|
1815
1890
|
widget: {
|
|
1816
1891
|
type: "combocheck",
|
|
1817
|
-
widgetName:
|
|
1892
|
+
widgetName: y(),
|
|
1818
1893
|
widgetNameAlias: "",
|
|
1819
1894
|
customCls: null,
|
|
1820
1895
|
height: 34,
|
|
@@ -1846,12 +1921,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1846
1921
|
tab: null,
|
|
1847
1922
|
...r
|
|
1848
1923
|
};
|
|
1849
|
-
},
|
|
1924
|
+
}, $e = (e) => {
|
|
1850
1925
|
const { widget: t, label: n, ...r } = e || {};
|
|
1851
1926
|
return {
|
|
1852
1927
|
widget: {
|
|
1853
1928
|
type: "location",
|
|
1854
|
-
widgetName:
|
|
1929
|
+
widgetName: y(),
|
|
1855
1930
|
widgetNameAlias: "",
|
|
1856
1931
|
customCls: null,
|
|
1857
1932
|
enable: !0,
|
|
@@ -1883,12 +1958,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1883
1958
|
tab: null,
|
|
1884
1959
|
...r
|
|
1885
1960
|
};
|
|
1886
|
-
},
|
|
1961
|
+
}, Oe = (e) => {
|
|
1887
1962
|
const { widget: t, label: n, ...r } = e || {};
|
|
1888
1963
|
return {
|
|
1889
1964
|
widget: {
|
|
1890
1965
|
type: "textarea",
|
|
1891
|
-
widgetName:
|
|
1966
|
+
widgetName: y(),
|
|
1892
1967
|
widgetNameAlias: "",
|
|
1893
1968
|
triggerEvent: !1,
|
|
1894
1969
|
customCls: null,
|
|
@@ -1926,12 +2001,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1926
2001
|
tab: null,
|
|
1927
2002
|
...r
|
|
1928
2003
|
};
|
|
1929
|
-
},
|
|
2004
|
+
}, Pe = (e = {}) => {
|
|
1930
2005
|
const { widget: t, label: n, ...r } = e;
|
|
1931
2006
|
return {
|
|
1932
2007
|
widget: {
|
|
1933
2008
|
type: "button",
|
|
1934
|
-
widgetName:
|
|
2009
|
+
widgetName: y(),
|
|
1935
2010
|
widgetNameAlias: "",
|
|
1936
2011
|
triggerEvent: 0,
|
|
1937
2012
|
customCls: null,
|
|
@@ -1970,12 +2045,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1970
2045
|
tab: null,
|
|
1971
2046
|
...r
|
|
1972
2047
|
};
|
|
1973
|
-
},
|
|
2048
|
+
}, Ie = (e = {}) => {
|
|
1974
2049
|
const { widget: t, label: n, ...r } = e;
|
|
1975
2050
|
return {
|
|
1976
2051
|
widget: {
|
|
1977
2052
|
type: "address",
|
|
1978
|
-
widgetName:
|
|
2053
|
+
widgetName: y(),
|
|
1979
2054
|
widgetNameAlias: "",
|
|
1980
2055
|
customCls: null,
|
|
1981
2056
|
width: 720,
|
|
@@ -2004,12 +2079,12 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
2004
2079
|
tab: null,
|
|
2005
2080
|
...r
|
|
2006
2081
|
};
|
|
2007
|
-
},
|
|
2082
|
+
}, Le = (e = {}) => {
|
|
2008
2083
|
const { widget: t, label: n, ...r } = e;
|
|
2009
2084
|
return {
|
|
2010
2085
|
widget: {
|
|
2011
2086
|
type: "subform",
|
|
2012
|
-
widgetName:
|
|
2087
|
+
widgetName: y(),
|
|
2013
2088
|
widgetNameAlias: "",
|
|
2014
2089
|
customCls: null,
|
|
2015
2090
|
enable: !0,
|
|
@@ -2024,8 +2099,8 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
2024
2099
|
version: 1
|
|
2025
2100
|
},
|
|
2026
2101
|
items: (t.items || []).map((l, a) => {
|
|
2027
|
-
const i =
|
|
2028
|
-
return i.widget.widgetName =
|
|
2102
|
+
const i = je(l, !0);
|
|
2103
|
+
return i.widget.widgetName = y("_widget", a), i;
|
|
2029
2104
|
}),
|
|
2030
2105
|
sortable: !0,
|
|
2031
2106
|
//启用子表单数据排序
|
|
@@ -2087,11 +2162,11 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
2087
2162
|
lineWidth: 12,
|
|
2088
2163
|
tab: null
|
|
2089
2164
|
};
|
|
2090
|
-
},
|
|
2165
|
+
}, We = (e) => {
|
|
2091
2166
|
const { widget: t, label: n, ...r } = e || {};
|
|
2092
2167
|
return {
|
|
2093
2168
|
widget: {
|
|
2094
|
-
widgetName:
|
|
2169
|
+
widgetName: y(),
|
|
2095
2170
|
widgetNameAlias: "",
|
|
2096
2171
|
customCls: null,
|
|
2097
2172
|
enable: !0,
|
|
@@ -2121,47 +2196,47 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
2121
2196
|
tab: null,
|
|
2122
2197
|
...r
|
|
2123
2198
|
};
|
|
2124
|
-
},
|
|
2125
|
-
address:
|
|
2126
|
-
button:
|
|
2127
|
-
textarea:
|
|
2128
|
-
datetime:
|
|
2129
|
-
text:
|
|
2130
|
-
password:
|
|
2131
|
-
location:
|
|
2132
|
-
radiogroup:
|
|
2133
|
-
radio:
|
|
2134
|
-
combo:
|
|
2135
|
-
combocheck:
|
|
2136
|
-
separator:
|
|
2137
|
-
checkboxgroup:
|
|
2138
|
-
upload:
|
|
2139
|
-
number:
|
|
2140
|
-
image:
|
|
2141
|
-
signature:
|
|
2142
|
-
user:
|
|
2143
|
-
dataload:
|
|
2144
|
-
linkdata:
|
|
2145
|
-
linkquery:
|
|
2146
|
-
usergroup:
|
|
2147
|
-
subform:
|
|
2148
|
-
dept:
|
|
2149
|
-
sn:
|
|
2150
|
-
deptgroup:
|
|
2151
|
-
flowState:
|
|
2152
|
-
flowstate:
|
|
2153
|
-
formula:
|
|
2154
|
-
unknown:
|
|
2155
|
-
},
|
|
2199
|
+
}, Be = {
|
|
2200
|
+
address: Ie,
|
|
2201
|
+
button: Pe,
|
|
2202
|
+
textarea: Oe,
|
|
2203
|
+
datetime: we,
|
|
2204
|
+
text: j,
|
|
2205
|
+
password: j,
|
|
2206
|
+
location: $e,
|
|
2207
|
+
radiogroup: U,
|
|
2208
|
+
radio: U,
|
|
2209
|
+
combo: he,
|
|
2210
|
+
combocheck: De,
|
|
2211
|
+
separator: Re,
|
|
2212
|
+
checkboxgroup: Te,
|
|
2213
|
+
upload: Fe,
|
|
2214
|
+
number: ye,
|
|
2215
|
+
image: qe,
|
|
2216
|
+
signature: Me,
|
|
2217
|
+
user: xe,
|
|
2218
|
+
dataload: Ee,
|
|
2219
|
+
linkdata: Ce,
|
|
2220
|
+
linkquery: We,
|
|
2221
|
+
usergroup: ke,
|
|
2222
|
+
subform: Le,
|
|
2223
|
+
dept: Ae,
|
|
2224
|
+
sn: ve,
|
|
2225
|
+
deptgroup: Se,
|
|
2226
|
+
flowState: A,
|
|
2227
|
+
flowstate: A,
|
|
2228
|
+
formula: A,
|
|
2229
|
+
unknown: A
|
|
2230
|
+
}, je = (e, t = !1) => {
|
|
2156
2231
|
var a, i;
|
|
2157
2232
|
if (!e || !e.widget || !e.widget.type)
|
|
2158
2233
|
return e;
|
|
2159
2234
|
const n = e.widget.type || "unknown";
|
|
2160
|
-
return t && n === "subform" ?
|
|
2161
|
-
},
|
|
2162
|
-
var t, n, r, l, a, i, o,
|
|
2163
|
-
return !e || !((t = e.corp) != null && t.name) || !((n = e.user) != null && n.nickname) ? "" : `${(r = e.corp) == null ? void 0 : r.name} ${(l = e.user) == null ? void 0 : l.nickname}(${(a = e.user) == null ? void 0 : a.username}) ${(i = e.appName) != null ? i : ""} ${(o = e.entryName) != null ? o : ""} ${(
|
|
2164
|
-
},
|
|
2235
|
+
return t && n === "subform" ? A(e) : (((i = (a = e == null ? void 0 : e.widget) == null ? void 0 : a.widgetName) != null ? i : "").startsWith("_widget_") || (e.widget.widgetName = ne()), (Be[n] || A)(e));
|
|
2236
|
+
}, Ct = (e) => {
|
|
2237
|
+
var t, n, r, l, a, i, o, c;
|
|
2238
|
+
return !e || !((t = e.corp) != null && t.name) || !((n = e.user) != null && n.nickname) ? "" : `${(r = e.corp) == null ? void 0 : r.name} ${(l = e.user) == null ? void 0 : l.nickname}(${(a = e.user) == null ? void 0 : a.username}) ${(i = e.appName) != null ? i : ""} ${(o = e.entryName) != null ? o : ""} ${(c = e.agentName) != null ? c : ""}`;
|
|
2239
|
+
}, Nt = (e) => {
|
|
2165
2240
|
var n;
|
|
2166
2241
|
if (!e)
|
|
2167
2242
|
return "";
|
|
@@ -2181,52 +2256,53 @@ const wt = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
2181
2256
|
}
|
|
2182
2257
|
};
|
|
2183
2258
|
export {
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
ot as
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
St as
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2259
|
+
ut as DATA_COUNT_PER_BATCH,
|
|
2260
|
+
ae as FIELD_TYPE_OPERATOR_LABEL_OVERRIDES,
|
|
2261
|
+
le as FIELD_TYPE_OPERATOR_MAP,
|
|
2262
|
+
At as FORM_ICON_UNICODE_MAP,
|
|
2263
|
+
Ke as GetLoadingMsg,
|
|
2264
|
+
Xe as GetPartErrMsg,
|
|
2265
|
+
ze as GetQueryResult,
|
|
2266
|
+
nt as GetSafeFormStructure,
|
|
2267
|
+
pe as ICON_UNICODE_MAP,
|
|
2268
|
+
z as IsErrorPart,
|
|
2269
|
+
Ue as IsFakeMsgPart,
|
|
2270
|
+
Qe as IsFileGroupPart,
|
|
2271
|
+
He as IsFilePart,
|
|
2272
|
+
Ye as IsLoadingPart,
|
|
2273
|
+
Ge as IsQueryResultPart,
|
|
2274
|
+
re as OPERATOR_LABEL_MAP,
|
|
2275
|
+
ee as WHITE_LIST_FIELDS_SET,
|
|
2276
|
+
ht as bsConditionParse2Condition,
|
|
2277
|
+
yt as conditionStringify2bsCondition,
|
|
2278
|
+
tt as createBatchSubformAssembler,
|
|
2279
|
+
lt as createFieldPartsExtractor,
|
|
2280
|
+
at as createGetFieldJsonInfo,
|
|
2281
|
+
te as createPartTypeChecker,
|
|
2282
|
+
rt as createPayloadTypeChecker,
|
|
2283
|
+
w as extractTextPartMeta,
|
|
2284
|
+
st as field2config,
|
|
2285
|
+
G as flatArr,
|
|
2286
|
+
wt as formatLocalDate,
|
|
2287
|
+
mt as getAvailableOperators,
|
|
2288
|
+
Ct as getChatCtxForHuman,
|
|
2289
|
+
Nt as getChatCtxForMcp,
|
|
2290
|
+
ft as getDefaultOperator,
|
|
2291
|
+
vt as getIconUnicode,
|
|
2292
|
+
Ze as getMetaErrorMsg,
|
|
2293
|
+
dt as getOperatorLabel,
|
|
2294
|
+
ot as hasValidFieldValue,
|
|
2295
|
+
ct as imageUrlToBase64,
|
|
2296
|
+
et as injectHostFontFacesIntoShadow,
|
|
2297
|
+
Ve as injectHostStylesIntoShadow,
|
|
2298
|
+
bt as isCtxMatch,
|
|
2299
|
+
pt as isHelperCondMet,
|
|
2300
|
+
gt as isHelperPrefMet,
|
|
2301
|
+
St as mergeConsecutiveTargets,
|
|
2302
|
+
kt as promptParser,
|
|
2303
|
+
je as rebuildFieldsJsonStructure,
|
|
2304
|
+
it as safeParseJson,
|
|
2305
|
+
Je as syncHostStylesIntoShadow,
|
|
2306
|
+
D as valueNormalizer
|
|
2231
2307
|
};
|
|
2232
2308
|
//# sourceMappingURL=ai-feat-utils.js.map
|