@baishuyun/ai-feat-utils 2.0.38 → 2.0.40
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 +243 -213
- package/dist/ai-feat-utils.js.map +1 -1
- package/dist/dom.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/ai-feat-utils.js
CHANGED
|
@@ -10,18 +10,18 @@ const d = (e) => {
|
|
|
10
10
|
console.error("invalid raw data");
|
|
11
11
|
}
|
|
12
12
|
return t || e.providerMetadata.raw.data;
|
|
13
|
-
},
|
|
13
|
+
}, N = (e) => {
|
|
14
14
|
if ((e == null ? void 0 : e.type) === "error")
|
|
15
15
|
return !0;
|
|
16
16
|
const t = d(e);
|
|
17
17
|
return (t == null ? void 0 : t.type) === "agent-error";
|
|
18
|
-
},
|
|
18
|
+
}, fe = (e) => {
|
|
19
19
|
const t = d(e);
|
|
20
20
|
return (t == null ? void 0 : t.type) === "agent-fake-msg";
|
|
21
|
-
},
|
|
21
|
+
}, pe = (e) => (e == null ? void 0 : e.type) === "file", be = (e) => {
|
|
22
22
|
const t = d(e);
|
|
23
23
|
return (t == null ? void 0 : t.type) === "query-stream-parsed-info";
|
|
24
|
-
},
|
|
24
|
+
}, ye = (e) => {
|
|
25
25
|
const t = d(e);
|
|
26
26
|
if ((t == null ? void 0 : t.type) !== "query-stream-parsed-info")
|
|
27
27
|
return null;
|
|
@@ -32,51 +32,81 @@ const d = (e) => {
|
|
|
32
32
|
} catch (n) {
|
|
33
33
|
return console.error("invalid query result data"), null;
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, we = (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
|
-
},
|
|
42
|
+
}, he = (e) => {
|
|
43
43
|
const t = d(e);
|
|
44
44
|
return (t == null ? void 0 : t.type) === "agent-loading";
|
|
45
|
-
},
|
|
45
|
+
}, Se = (e) => {
|
|
46
46
|
const t = d(e);
|
|
47
47
|
return (t == null ? void 0 : t.type) !== "agent-loading" ? "" : (t == null ? void 0 : t.label) || "加载中";
|
|
48
|
-
},
|
|
49
|
-
if (!
|
|
48
|
+
}, ve = (e) => {
|
|
49
|
+
if (!N(e))
|
|
50
50
|
return "";
|
|
51
51
|
if (e != null && e.errorText)
|
|
52
52
|
return e.errorText;
|
|
53
53
|
const t = d(e);
|
|
54
54
|
return (t == null ? void 0 : t.error) || "未知错误";
|
|
55
|
-
},
|
|
55
|
+
}, Ae = (e) => {
|
|
56
56
|
if (e != null && e.errorText)
|
|
57
57
|
return e.errorText;
|
|
58
58
|
const t = d(e);
|
|
59
59
|
return (t == null ? void 0 : t.error) || "未知错误";
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
}, y = "data-shadow-slot-injected", b = "host-clone", M = (e) => {
|
|
61
|
+
try {
|
|
62
|
+
const t = new CSSStyleSheet();
|
|
63
|
+
t.replaceSync(e);
|
|
64
|
+
const r = [], n = [], a = [];
|
|
65
|
+
let l = [];
|
|
66
|
+
const i = () => {
|
|
67
|
+
l.length && (a.push(`@layer ${b} {
|
|
68
|
+
${l.join(`
|
|
69
|
+
`)}
|
|
70
|
+
}`), l = []);
|
|
71
|
+
};
|
|
72
|
+
for (const o of Array.from(t.cssRules))
|
|
73
|
+
o instanceof CSSImportRule ? r.push(o.cssText) : o instanceof CSSFontFaceRule || o instanceof CSSKeyframesRule || typeof CSSPropertyRule != "undefined" && o instanceof CSSPropertyRule ? n.push(o.cssText) : o instanceof CSSLayerBlockRule ? (i(), a.push(o.cssText)) : l.push(o.cssText);
|
|
74
|
+
return i(), [...r, ...n, ...a].join(`
|
|
75
|
+
`);
|
|
76
|
+
} catch (t) {
|
|
77
|
+
return `@layer ${b} {
|
|
78
|
+
${e}
|
|
79
|
+
}`;
|
|
80
|
+
}
|
|
81
|
+
}, ke = (e, t) => {
|
|
82
|
+
if (e.querySelector(`[${y}]`)) return;
|
|
83
|
+
const r = [], n = [], a = (o) => {
|
|
84
|
+
if (o instanceof HTMLLinkElement) {
|
|
85
|
+
const u = `@import url("${o.href}") layer(${b})`;
|
|
86
|
+
r.push(o.media ? `${u} ${o.media};` : `${u};`);
|
|
87
|
+
} else o instanceof HTMLStyleElement && n.push(M(o.textContent || ""));
|
|
65
88
|
};
|
|
66
|
-
document.head.querySelectorAll("style").forEach(
|
|
67
|
-
let
|
|
68
|
-
for (;
|
|
69
|
-
|
|
89
|
+
document.head.querySelectorAll("style").forEach(a), document.head.querySelectorAll('link[rel="stylesheet"]').forEach(a);
|
|
90
|
+
let l = t.parentNode;
|
|
91
|
+
for (; l; )
|
|
92
|
+
l instanceof ShadowRoot && (l.querySelectorAll("style").forEach(a), l.querySelectorAll('link[rel="stylesheet"]').forEach(a)), l = l.parentNode;
|
|
93
|
+
const i = document.createElement("style");
|
|
94
|
+
i.setAttribute(y, ""), i.textContent = [
|
|
95
|
+
`@layer ${b};`,
|
|
96
|
+
...r,
|
|
97
|
+
...n
|
|
98
|
+
].join(`
|
|
99
|
+
`), e.appendChild(i);
|
|
70
100
|
};
|
|
71
|
-
function
|
|
101
|
+
function x(e) {
|
|
72
102
|
return Array.isArray(e) ? e.every((t) => typeof t == "string") : !1;
|
|
73
103
|
}
|
|
74
|
-
function
|
|
104
|
+
function q(e) {
|
|
75
105
|
return Array.isArray(e) ? e.every(
|
|
76
106
|
(t) => typeof t == "object" && t !== null && "label" in t && "value" in t && typeof t.label == "string" && typeof t.value == "string"
|
|
77
107
|
) : !1;
|
|
78
108
|
}
|
|
79
|
-
const
|
|
109
|
+
const Ce = (e) => x(e) ? e.join(", ") : q(e) ? e.map((r) => r.value).join(", ") : e, F = /* @__PURE__ */ new Set([
|
|
80
110
|
"password",
|
|
81
111
|
"textarea",
|
|
82
112
|
"datetime",
|
|
@@ -87,16 +117,16 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
87
117
|
"combocheck",
|
|
88
118
|
"checkboxgroup",
|
|
89
119
|
"number"
|
|
90
|
-
]),
|
|
120
|
+
]), _e = (e) => Array.isArray(e) ? e.filter((t) => t.widget ? F.has(t.widget.type) : !1) : [], E = (e) => (t) => {
|
|
91
121
|
const r = d(t);
|
|
92
122
|
return (r == null ? void 0 : r.type) === e;
|
|
93
|
-
},
|
|
123
|
+
}, Ne = (e) => (t) => {
|
|
94
124
|
const r = t, n = r == null ? void 0 : r.part;
|
|
95
|
-
return
|
|
96
|
-
},
|
|
125
|
+
return E(e)(n);
|
|
126
|
+
}, Me = (e) => (t) => {
|
|
97
127
|
const r = d(t);
|
|
98
128
|
return (r == null ? void 0 : r.type) !== e ? null : (r == null ? void 0 : r.field) || null;
|
|
99
|
-
},
|
|
129
|
+
}, xe = (e) => (t) => Array.isArray(t) && t.length > 0 ? t.filter(e) : e(t) ? [t] : [], qe = (e) => {
|
|
100
130
|
if (typeof e != "string")
|
|
101
131
|
return e;
|
|
102
132
|
try {
|
|
@@ -104,14 +134,14 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
104
134
|
} catch (t) {
|
|
105
135
|
return console.info("[safeParseJson] Failed to parse JSON:", t), null;
|
|
106
136
|
}
|
|
107
|
-
},
|
|
137
|
+
}, w = (e) => !!(e && typeof e == "object" && e.qnKey), Fe = (e) => {
|
|
108
138
|
var n, a;
|
|
109
139
|
const t = (n = e == null ? void 0 : e.widget) == null ? void 0 : n.value, r = (a = e == null ? void 0 : e.widget) == null ? void 0 : a.type;
|
|
110
|
-
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 : r === "signature" ?
|
|
111
|
-
},
|
|
140
|
+
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 : r === "signature" ? w(t) : r === "upload" || r === "image" ? Array.isArray(t) && t.length > 0 && t.every(w) : !0;
|
|
141
|
+
}, R = (e = "_widget_") => {
|
|
112
142
|
const t = Date.now(), r = String(t), n = r.length, a = r.slice(0, n - 5), l = String(Math.floor(Math.random() * 1e5)).padStart(5, "0");
|
|
113
143
|
return `${e}${a}${l}`;
|
|
114
|
-
},
|
|
144
|
+
}, Ee = (e, t) => ({
|
|
115
145
|
field: e,
|
|
116
146
|
onLoaded: () => {
|
|
117
147
|
t.fillWidget({
|
|
@@ -128,13 +158,13 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
128
158
|
};
|
|
129
159
|
t.fillWidget(i);
|
|
130
160
|
}
|
|
131
|
-
}),
|
|
161
|
+
}), Re = 10, De = (e, t = "image/png") => new Promise((r) => {
|
|
132
162
|
const n = new Image();
|
|
133
163
|
n.crossOrigin = "anonymous", n.onload = () => {
|
|
134
164
|
const a = document.createElement("canvas");
|
|
135
165
|
a.width = n.naturalWidth, a.height = n.naturalHeight, a.getContext("2d").drawImage(n, 0, 0), r(a.toDataURL(t));
|
|
136
166
|
}, n.onerror = () => r(e), n.src = e;
|
|
137
|
-
}),
|
|
167
|
+
}), Pe = {
|
|
138
168
|
eq: "等于",
|
|
139
169
|
neq: "不等于",
|
|
140
170
|
gt: "大于",
|
|
@@ -151,7 +181,7 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
151
181
|
range: "选择范围",
|
|
152
182
|
like: "模糊匹配",
|
|
153
183
|
unlike: "模糊不匹配"
|
|
154
|
-
},
|
|
184
|
+
}, D = {
|
|
155
185
|
// Text-like: equality, fuzzy, empty checks
|
|
156
186
|
text: ["eq", "neq", "in", "nin", "contains", "not_contains", "empty", "not_empty"],
|
|
157
187
|
password: ["eq", "neq", "contains", "not_contains", "empty", "not_empty"],
|
|
@@ -195,7 +225,7 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
195
225
|
button: [],
|
|
196
226
|
subform: [],
|
|
197
227
|
unknown: []
|
|
198
|
-
},
|
|
228
|
+
}, P = {
|
|
199
229
|
text: "eq",
|
|
200
230
|
password: "eq",
|
|
201
231
|
radiogroup: "eq",
|
|
@@ -223,69 +253,69 @@ const Ae = (e) => N(e) ? e.join(", ") : M(e) ? e.map((r) => r.value).join(", ")
|
|
|
223
253
|
dataload: "eq",
|
|
224
254
|
formula: "eq"
|
|
225
255
|
};
|
|
226
|
-
function
|
|
256
|
+
function $e(e) {
|
|
227
257
|
var t;
|
|
228
|
-
return e ? (t =
|
|
258
|
+
return e ? (t = D[e]) != null ? t : [] : [];
|
|
229
259
|
}
|
|
230
|
-
function
|
|
260
|
+
function Te(e) {
|
|
231
261
|
var t;
|
|
232
|
-
return e && (t =
|
|
262
|
+
return e && (t = P[e]) != null ? t : "eq";
|
|
233
263
|
}
|
|
234
|
-
function
|
|
264
|
+
function f(e) {
|
|
235
265
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
236
266
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
267
|
+
function C(e) {
|
|
268
|
+
return f(e) ? e : null;
|
|
239
269
|
}
|
|
240
|
-
function
|
|
270
|
+
function h(e) {
|
|
241
271
|
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
242
272
|
}
|
|
243
|
-
function
|
|
273
|
+
function S(e, t) {
|
|
244
274
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
245
275
|
if (e.length !== t.length) return !1;
|
|
246
276
|
const r = e.map(String).sort(), n = t.map(String).sort();
|
|
247
277
|
return r.every((a, l) => a === n[l]);
|
|
248
278
|
}
|
|
249
|
-
if (
|
|
279
|
+
if (f(e) && f(t)) {
|
|
250
280
|
const r = Object.keys(e), n = Object.keys(t);
|
|
251
281
|
return r.length !== n.length ? !1 : r.every((a) => String(e[a]) === String(t[a]));
|
|
252
282
|
}
|
|
253
283
|
return String(e) === String(t);
|
|
254
284
|
}
|
|
255
285
|
function v(e, t) {
|
|
256
|
-
if (
|
|
257
|
-
const n =
|
|
286
|
+
if (f(t)) {
|
|
287
|
+
const n = C(e);
|
|
258
288
|
return !(!n || t.province !== void 0 && String(n.province) !== String(t.province) || t.city !== void 0 && String(n.city) !== String(t.city) || t.district !== void 0 && String(n.district) !== String(t.district));
|
|
259
289
|
}
|
|
260
290
|
const r = Array.isArray(t) ? t.map(String) : [];
|
|
261
291
|
return Array.isArray(e) ? e.some((n) => r.includes(String(n))) : r.includes(String(e));
|
|
262
292
|
}
|
|
263
|
-
function
|
|
293
|
+
function $(e, t) {
|
|
264
294
|
const r = Array.isArray(t) ? t.map(String) : [];
|
|
265
295
|
if (r.length === 0) return !1;
|
|
266
296
|
const n = Array.isArray(e) ? e.map(String) : [];
|
|
267
297
|
return r.every((a) => n.includes(a));
|
|
268
298
|
}
|
|
269
|
-
function
|
|
270
|
-
const r =
|
|
299
|
+
function T(e, t) {
|
|
300
|
+
const r = C(t);
|
|
271
301
|
if (!r) return !1;
|
|
272
302
|
const n = Number(e);
|
|
273
303
|
return !(isNaN(n) || r.min !== void 0 && r.min !== null && n < Number(r.min) || r.max !== void 0 && r.max !== null && n > Number(r.max));
|
|
274
304
|
}
|
|
275
|
-
function
|
|
305
|
+
function B(e, t) {
|
|
276
306
|
var i;
|
|
277
307
|
const r = (i = e.field.widget) == null ? void 0 : i.widgetName;
|
|
278
308
|
if (!r) return !1;
|
|
279
309
|
const n = t[r], { operator: a, value: l } = e;
|
|
280
310
|
switch (a) {
|
|
281
311
|
case "empty":
|
|
282
|
-
return
|
|
312
|
+
return h(n);
|
|
283
313
|
case "not_empty":
|
|
284
|
-
return !
|
|
314
|
+
return !h(n);
|
|
285
315
|
case "eq":
|
|
286
|
-
return
|
|
316
|
+
return S(n, l);
|
|
287
317
|
case "neq":
|
|
288
|
-
return !
|
|
318
|
+
return !S(n, l);
|
|
289
319
|
case "contains":
|
|
290
320
|
case "like":
|
|
291
321
|
return String(n).includes(String(l));
|
|
@@ -305,24 +335,24 @@ function W(e, t) {
|
|
|
305
335
|
case "nin":
|
|
306
336
|
return !v(n, l);
|
|
307
337
|
case "all":
|
|
308
|
-
return
|
|
338
|
+
return $(n, l);
|
|
309
339
|
case "range":
|
|
310
|
-
return
|
|
340
|
+
return T(n, l);
|
|
311
341
|
default:
|
|
312
342
|
return !1;
|
|
313
343
|
}
|
|
314
344
|
}
|
|
315
|
-
function
|
|
345
|
+
function Be(e, t) {
|
|
316
346
|
if (!e.enabled)
|
|
317
347
|
return !1;
|
|
318
348
|
const r = e.triggerCondition;
|
|
319
349
|
if (!r) return !0;
|
|
320
350
|
const { items: n, quantifier: a } = r;
|
|
321
351
|
if (!n || n.length === 0) return !0;
|
|
322
|
-
const l = n.map((i) =>
|
|
352
|
+
const l = n.map((i) => B(i, t));
|
|
323
353
|
return a === "any" ? l.some((i) => i) : l.every((i) => i);
|
|
324
354
|
}
|
|
325
|
-
const
|
|
355
|
+
const Oe = (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", O = {
|
|
326
356
|
eq: "eq",
|
|
327
357
|
neq: "ne",
|
|
328
358
|
gt: "gt",
|
|
@@ -339,7 +369,7 @@ const Be = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
|
|
|
339
369
|
empty: "empty",
|
|
340
370
|
not_empty: "not_empty",
|
|
341
371
|
range: "range"
|
|
342
|
-
},
|
|
372
|
+
}, W = {
|
|
343
373
|
eq: "eq",
|
|
344
374
|
ne: "neq",
|
|
345
375
|
gt: "gt",
|
|
@@ -357,26 +387,26 @@ const Be = (e, t) => e === null || t === null ? !1 : e.formId ? t.type === "form
|
|
|
357
387
|
not_empty: "not_empty",
|
|
358
388
|
range: "range"
|
|
359
389
|
};
|
|
360
|
-
function
|
|
390
|
+
function We(e) {
|
|
361
391
|
const t = e.quantifier === "any" ? "or" : "and", r = e.items.map((n) => {
|
|
362
|
-
var i,
|
|
363
|
-
const a = (i =
|
|
392
|
+
var i, o, u, c, p, m;
|
|
393
|
+
const a = (i = O[n.operator]) != null ? i : "eq";
|
|
364
394
|
let l;
|
|
365
|
-
return n.operator === "range" &&
|
|
366
|
-
field: (c = (u = (
|
|
395
|
+
return n.operator === "range" && f(n.value) ? l = [n.value.min, n.value.max] : Array.isArray(n.value) ? l = n.value : l = [n.value], {
|
|
396
|
+
field: (c = (u = (o = n.field) == null ? void 0 : o.widget) == null ? void 0 : u.widgetName) != null ? c : "",
|
|
367
397
|
method: a,
|
|
368
398
|
value: l,
|
|
369
|
-
type: (m = (
|
|
399
|
+
type: (m = (p = n.field) == null ? void 0 : p.widget) == null ? void 0 : m.type
|
|
370
400
|
};
|
|
371
401
|
});
|
|
372
402
|
return JSON.stringify({ rel: t, cond: r });
|
|
373
403
|
}
|
|
374
|
-
function
|
|
404
|
+
function Le(e) {
|
|
375
405
|
const t = JSON.parse(e), r = t.rel === "or" ? "any" : "all", n = t.cond.map((a, l) => {
|
|
376
406
|
var u, c;
|
|
377
|
-
const i = (u =
|
|
378
|
-
let
|
|
379
|
-
return i === "range" ?
|
|
407
|
+
const i = (u = W[a.method]) != null ? u : "eq";
|
|
408
|
+
let o = a.value;
|
|
409
|
+
return i === "range" ? o = { min: a.value[0], max: a.value[1] } : ["eq", "neq", "contains", "not_contains", "gt", "gte", "lt", "lte"].includes(i) && (o = a.value[0]), {
|
|
380
410
|
id: `${a.field}_${l}`,
|
|
381
411
|
field: {
|
|
382
412
|
label: a.field,
|
|
@@ -387,28 +417,28 @@ function Te(e) {
|
|
|
387
417
|
}
|
|
388
418
|
},
|
|
389
419
|
operator: i,
|
|
390
|
-
value:
|
|
420
|
+
value: o
|
|
391
421
|
};
|
|
392
422
|
});
|
|
393
423
|
return { targetName: "", quantifier: r, items: n };
|
|
394
424
|
}
|
|
395
|
-
function
|
|
425
|
+
function Ie(e) {
|
|
396
426
|
const t = (r) => String(r).padStart(2, "0");
|
|
397
427
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())} ${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}`;
|
|
398
428
|
}
|
|
399
|
-
function
|
|
429
|
+
function je(e, t, r = 1) {
|
|
400
430
|
const n = [], a = [];
|
|
401
431
|
for (const l of e)
|
|
402
432
|
t(l) ? a.push(l) : (a.length > 0 && (n.push(a.length >= r ? [...a] : a[0]), a.length = 0), n.push(l));
|
|
403
433
|
return a.length > 0 && n.push(a.length >= 2 ? [...a] : a[0]), n;
|
|
404
434
|
}
|
|
405
|
-
function
|
|
435
|
+
function _(e) {
|
|
406
436
|
const t = [];
|
|
407
437
|
for (const r of e)
|
|
408
|
-
Array.isArray(r) ? t.push(...
|
|
438
|
+
Array.isArray(r) ? t.push(..._(r)) : t.push(r);
|
|
409
439
|
return t;
|
|
410
440
|
}
|
|
411
|
-
const
|
|
441
|
+
const L = {
|
|
412
442
|
projectdevelopment: "e914",
|
|
413
443
|
resourcelibrary: "e915",
|
|
414
444
|
Plugin2: "e90e",
|
|
@@ -815,11 +845,11 @@ const T = {
|
|
|
815
845
|
Automation1: "ea95",
|
|
816
846
|
Avatar: "ea96"
|
|
817
847
|
};
|
|
818
|
-
function
|
|
819
|
-
const t =
|
|
848
|
+
function Ge(e) {
|
|
849
|
+
const t = L[e];
|
|
820
850
|
return t ? `&#x${t};` : void 0;
|
|
821
851
|
}
|
|
822
|
-
const
|
|
852
|
+
const Ue = { 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" }, He = (e, t, r) => {
|
|
823
853
|
if (!r)
|
|
824
854
|
return {
|
|
825
855
|
translated: ""
|
|
@@ -827,24 +857,24 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
827
857
|
const n = new Map(t.map((i) => [i.widget.widgetName, i.label]));
|
|
828
858
|
for (const i of t)
|
|
829
859
|
if (i.widget.type === "subform" && i.widget.items) {
|
|
830
|
-
for (const
|
|
831
|
-
if ("widget" in
|
|
832
|
-
const u = `${i.widget.widgetName}.${
|
|
833
|
-
n.set(u,
|
|
860
|
+
for (const o of i.widget.items)
|
|
861
|
+
if ("widget" in o && !("options" in o)) {
|
|
862
|
+
const u = `${i.widget.widgetName}.${o.widget.widgetName}`;
|
|
863
|
+
n.set(u, o.label);
|
|
834
864
|
}
|
|
835
865
|
}
|
|
836
866
|
const a = [], l = e.replace(
|
|
837
867
|
/\$\{(virtual\.)?(_widget_\d+(?:\._widget_\d+)?)\}/g,
|
|
838
|
-
(i,
|
|
839
|
-
const c = !!
|
|
840
|
-
return m && a.push(m),
|
|
868
|
+
(i, o, u) => {
|
|
869
|
+
const c = !!o, { translated: p, meta: m } = r(u, c);
|
|
870
|
+
return m && a.push(m), p;
|
|
841
871
|
}
|
|
842
872
|
);
|
|
843
873
|
return {
|
|
844
|
-
meta: a.length ?
|
|
874
|
+
meta: a.length ? _(a) : null,
|
|
845
875
|
translated: (l != null ? l : "").trim()
|
|
846
876
|
};
|
|
847
|
-
},
|
|
877
|
+
}, I = {
|
|
848
878
|
手机号码: "^((\\(\\d{2,3}\\))|(\\d{3}\\-))?1\\d{10}$",
|
|
849
879
|
电话号码: "^(0[0-9]{2,3}\\-)?([2-9][0-9]{6,7})+(\\-[0-9]{1,4})?$",
|
|
850
880
|
邮政编码: "^\\d{6}$",
|
|
@@ -856,8 +886,8 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
856
886
|
二维码图片: "qrcode",
|
|
857
887
|
条形码图片: "barcode",
|
|
858
888
|
自定义: "custom"
|
|
859
|
-
},
|
|
860
|
-
const { widget: t, labelStyle: r, label: n, ...a } = e || {}, l =
|
|
889
|
+
}, A = (e) => {
|
|
890
|
+
const { widget: t, labelStyle: r, label: n, ...a } = e || {}, l = I[r] || "";
|
|
861
891
|
return {
|
|
862
892
|
widget: {
|
|
863
893
|
widgetName: `_widget_${Date.now()}`,
|
|
@@ -905,18 +935,18 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
905
935
|
tab: null,
|
|
906
936
|
...a
|
|
907
937
|
};
|
|
908
|
-
},
|
|
938
|
+
}, s = (e = "_widget", t) => {
|
|
909
939
|
const r = `${e}_${Date.now()}`;
|
|
910
940
|
if (t === void 0)
|
|
911
941
|
return r;
|
|
912
942
|
const n = t.toString().length;
|
|
913
943
|
return `${r.slice(0, -n)}${t}`;
|
|
914
|
-
},
|
|
944
|
+
}, j = (e) => {
|
|
915
945
|
const { widget: t, label: r, ...n } = e || {};
|
|
916
946
|
return {
|
|
917
947
|
widget: {
|
|
918
948
|
type: "number",
|
|
919
|
-
widgetName:
|
|
949
|
+
widgetName: s(),
|
|
920
950
|
widgetNameAlias: "",
|
|
921
951
|
triggerEvent: !1,
|
|
922
952
|
customCls: null,
|
|
@@ -976,7 +1006,7 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
976
1006
|
tab: null,
|
|
977
1007
|
...n
|
|
978
1008
|
};
|
|
979
|
-
},
|
|
1009
|
+
}, G = (e) => {
|
|
980
1010
|
const { widget: t, label: r, ...n } = e || {};
|
|
981
1011
|
return {
|
|
982
1012
|
widget: {
|
|
@@ -1013,7 +1043,7 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1013
1043
|
tab: null,
|
|
1014
1044
|
...n
|
|
1015
1045
|
};
|
|
1016
|
-
},
|
|
1046
|
+
}, k = (e) => {
|
|
1017
1047
|
const { widget: t, label: r, ...n } = e || {};
|
|
1018
1048
|
return {
|
|
1019
1049
|
widget: {
|
|
@@ -1049,7 +1079,7 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1049
1079
|
...n,
|
|
1050
1080
|
labelStyle: r
|
|
1051
1081
|
};
|
|
1052
|
-
},
|
|
1082
|
+
}, U = (e) => {
|
|
1053
1083
|
const { widget: t, label: r, ...n } = e || {};
|
|
1054
1084
|
return {
|
|
1055
1085
|
widget: {
|
|
@@ -1116,12 +1146,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1116
1146
|
tab: null,
|
|
1117
1147
|
...n
|
|
1118
1148
|
};
|
|
1119
|
-
}, g = (e) => e,
|
|
1149
|
+
}, g = (e) => e, H = (e) => {
|
|
1120
1150
|
const { widget: t, label: r, ...n } = e || {};
|
|
1121
1151
|
return {
|
|
1122
1152
|
widget: {
|
|
1123
1153
|
type: "deptgroup",
|
|
1124
|
-
widgetName:
|
|
1154
|
+
widgetName: s(),
|
|
1125
1155
|
widgetNameAlias: "",
|
|
1126
1156
|
customCls: null,
|
|
1127
1157
|
height: "34",
|
|
@@ -1150,12 +1180,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1150
1180
|
tab: null,
|
|
1151
1181
|
...n
|
|
1152
1182
|
};
|
|
1153
|
-
},
|
|
1183
|
+
}, Q = (e) => {
|
|
1154
1184
|
const { widget: t, label: r, ...n } = e || {};
|
|
1155
1185
|
return {
|
|
1156
1186
|
widget: {
|
|
1157
1187
|
type: "sn",
|
|
1158
|
-
widgetName:
|
|
1188
|
+
widgetName: s(),
|
|
1159
1189
|
widgetNameAlias: "",
|
|
1160
1190
|
triggerEvent: 0,
|
|
1161
1191
|
customCls: null,
|
|
@@ -1187,12 +1217,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1187
1217
|
tab: null,
|
|
1188
1218
|
...n
|
|
1189
1219
|
};
|
|
1190
|
-
},
|
|
1220
|
+
}, z = (e) => {
|
|
1191
1221
|
const { widget: t, label: r, ...n } = e || {};
|
|
1192
1222
|
return {
|
|
1193
1223
|
widget: {
|
|
1194
1224
|
type: "dept",
|
|
1195
|
-
widgetName:
|
|
1225
|
+
widgetName: s(),
|
|
1196
1226
|
widgetNameAlias: "",
|
|
1197
1227
|
customCls: null,
|
|
1198
1228
|
height: "34",
|
|
@@ -1221,12 +1251,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1221
1251
|
tab: null,
|
|
1222
1252
|
...n
|
|
1223
1253
|
};
|
|
1224
|
-
},
|
|
1254
|
+
}, Y = (e) => {
|
|
1225
1255
|
const { widget: t, label: r, ...n } = e || {};
|
|
1226
1256
|
return {
|
|
1227
1257
|
widget: {
|
|
1228
1258
|
type: "usergroup",
|
|
1229
|
-
widgetName:
|
|
1259
|
+
widgetName: s(),
|
|
1230
1260
|
widgetNameAlias: "",
|
|
1231
1261
|
customCls: null,
|
|
1232
1262
|
height: "34",
|
|
@@ -1258,11 +1288,11 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1258
1288
|
tab: null,
|
|
1259
1289
|
...n
|
|
1260
1290
|
};
|
|
1261
|
-
},
|
|
1291
|
+
}, K = (e) => {
|
|
1262
1292
|
const { widget: t, label: r, ...n } = e || {};
|
|
1263
1293
|
return {
|
|
1264
1294
|
widget: {
|
|
1265
|
-
widgetName:
|
|
1295
|
+
widgetName: s(),
|
|
1266
1296
|
widgetNameAlias: "",
|
|
1267
1297
|
customCls: null,
|
|
1268
1298
|
enable: !0,
|
|
@@ -1298,16 +1328,16 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1298
1328
|
isEditable: !0,
|
|
1299
1329
|
group: "dimension,filter,select",
|
|
1300
1330
|
formula: ""
|
|
1301
|
-
})),
|
|
1331
|
+
})), Z = (e) => !e || !e.length ? e : e.map((t) => ({
|
|
1302
1332
|
mode: "depend",
|
|
1303
1333
|
...t
|
|
1304
|
-
})),
|
|
1334
|
+
})), V = (e) => {
|
|
1305
1335
|
var a, l, i;
|
|
1306
1336
|
const { widget: t, label: r, ...n } = e || {};
|
|
1307
1337
|
return {
|
|
1308
1338
|
widget: {
|
|
1309
1339
|
type: "dataload",
|
|
1310
|
-
widgetName:
|
|
1340
|
+
widgetName: s(),
|
|
1311
1341
|
widgetNameAlias: "",
|
|
1312
1342
|
customCls: null,
|
|
1313
1343
|
width: 350,
|
|
@@ -1344,7 +1374,7 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1344
1374
|
selectArg: [],
|
|
1345
1375
|
selectRel: "and",
|
|
1346
1376
|
fields: X((l = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : l.mapFields),
|
|
1347
|
-
mapFields:
|
|
1377
|
+
mapFields: Z((i = t == null ? void 0 : t.loaddataconfig) == null ? void 0 : i.mapFields)
|
|
1348
1378
|
},
|
|
1349
1379
|
labelStyle: r
|
|
1350
1380
|
},
|
|
@@ -1353,12 +1383,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1353
1383
|
tab: null,
|
|
1354
1384
|
...n
|
|
1355
1385
|
};
|
|
1356
|
-
},
|
|
1386
|
+
}, J = (e) => {
|
|
1357
1387
|
const { widget: t, label: r, ...n } = e || {};
|
|
1358
1388
|
return {
|
|
1359
1389
|
widget: {
|
|
1360
1390
|
type: "user",
|
|
1361
|
-
widgetName:
|
|
1391
|
+
widgetName: s(),
|
|
1362
1392
|
widgetNameAlias: "",
|
|
1363
1393
|
customCls: null,
|
|
1364
1394
|
height: "34",
|
|
@@ -1390,12 +1420,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1390
1420
|
tab: null,
|
|
1391
1421
|
...n
|
|
1392
1422
|
};
|
|
1393
|
-
},
|
|
1423
|
+
}, ee = (e) => {
|
|
1394
1424
|
const { widget: t, label: r, ...n } = e || {};
|
|
1395
1425
|
return {
|
|
1396
1426
|
widget: {
|
|
1397
1427
|
type: "signature",
|
|
1398
|
-
widgetName:
|
|
1428
|
+
widgetName: s(),
|
|
1399
1429
|
widgetNameAlias: "",
|
|
1400
1430
|
customCls: null,
|
|
1401
1431
|
height: 34,
|
|
@@ -1413,12 +1443,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1413
1443
|
tab: null,
|
|
1414
1444
|
...n
|
|
1415
1445
|
};
|
|
1416
|
-
},
|
|
1446
|
+
}, te = (e) => {
|
|
1417
1447
|
const { widget: t, label: r, ...n } = e || {};
|
|
1418
1448
|
return {
|
|
1419
1449
|
widget: {
|
|
1420
1450
|
type: "image",
|
|
1421
|
-
widgetName:
|
|
1451
|
+
widgetName: s(),
|
|
1422
1452
|
widgetNameAlias: "",
|
|
1423
1453
|
customCls: null,
|
|
1424
1454
|
height: 100,
|
|
@@ -1485,12 +1515,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1485
1515
|
tab: null,
|
|
1486
1516
|
...n
|
|
1487
1517
|
};
|
|
1488
|
-
},
|
|
1518
|
+
}, re = (e) => {
|
|
1489
1519
|
const { widget: t, label: r, ...n } = e || {};
|
|
1490
1520
|
return {
|
|
1491
1521
|
widget: {
|
|
1492
1522
|
type: "upload",
|
|
1493
|
-
widgetName:
|
|
1523
|
+
widgetName: s(),
|
|
1494
1524
|
widgetNameAlias: "",
|
|
1495
1525
|
customCls: null,
|
|
1496
1526
|
enable: !0,
|
|
@@ -1520,12 +1550,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1520
1550
|
tab: null,
|
|
1521
1551
|
...n
|
|
1522
1552
|
};
|
|
1523
|
-
},
|
|
1553
|
+
}, ne = (e) => {
|
|
1524
1554
|
const { widget: t, label: r, ...n } = e || {};
|
|
1525
1555
|
return {
|
|
1526
1556
|
widget: {
|
|
1527
1557
|
type: "checkboxgroup",
|
|
1528
|
-
widgetName:
|
|
1558
|
+
widgetName: s(),
|
|
1529
1559
|
widgetNameAlias: "",
|
|
1530
1560
|
customCls: null,
|
|
1531
1561
|
enable: !0,
|
|
@@ -1554,12 +1584,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1554
1584
|
tab: null,
|
|
1555
1585
|
...n
|
|
1556
1586
|
};
|
|
1557
|
-
},
|
|
1587
|
+
}, ae = (e) => {
|
|
1558
1588
|
const { widget: t, label: r, ...n } = e || {};
|
|
1559
1589
|
return {
|
|
1560
1590
|
widget: {
|
|
1561
1591
|
type: "separator",
|
|
1562
|
-
widgetName:
|
|
1592
|
+
widgetName: s(),
|
|
1563
1593
|
widgetNameAlias: "",
|
|
1564
1594
|
customCls: null,
|
|
1565
1595
|
enable: !0,
|
|
@@ -1573,12 +1603,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1573
1603
|
tab: null,
|
|
1574
1604
|
...n
|
|
1575
1605
|
};
|
|
1576
|
-
},
|
|
1606
|
+
}, le = (e) => {
|
|
1577
1607
|
const { widget: t, label: r, ...n } = e || {};
|
|
1578
1608
|
return {
|
|
1579
1609
|
widget: {
|
|
1580
1610
|
type: "combocheck",
|
|
1581
|
-
widgetName:
|
|
1611
|
+
widgetName: s(),
|
|
1582
1612
|
widgetNameAlias: "",
|
|
1583
1613
|
customCls: null,
|
|
1584
1614
|
height: 34,
|
|
@@ -1610,12 +1640,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1610
1640
|
tab: null,
|
|
1611
1641
|
...n
|
|
1612
1642
|
};
|
|
1613
|
-
},
|
|
1643
|
+
}, ie = (e) => {
|
|
1614
1644
|
const { widget: t, label: r, ...n } = e || {};
|
|
1615
1645
|
return {
|
|
1616
1646
|
widget: {
|
|
1617
1647
|
type: "location",
|
|
1618
|
-
widgetName:
|
|
1648
|
+
widgetName: s(),
|
|
1619
1649
|
widgetNameAlias: "",
|
|
1620
1650
|
customCls: null,
|
|
1621
1651
|
enable: !0,
|
|
@@ -1647,12 +1677,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1647
1677
|
tab: null,
|
|
1648
1678
|
...n
|
|
1649
1679
|
};
|
|
1650
|
-
},
|
|
1680
|
+
}, oe = (e) => {
|
|
1651
1681
|
const { widget: t, label: r, ...n } = e || {};
|
|
1652
1682
|
return {
|
|
1653
1683
|
widget: {
|
|
1654
1684
|
type: "textarea",
|
|
1655
|
-
widgetName:
|
|
1685
|
+
widgetName: s(),
|
|
1656
1686
|
widgetNameAlias: "",
|
|
1657
1687
|
triggerEvent: !1,
|
|
1658
1688
|
customCls: null,
|
|
@@ -1690,12 +1720,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1690
1720
|
tab: null,
|
|
1691
1721
|
...n
|
|
1692
1722
|
};
|
|
1693
|
-
},
|
|
1723
|
+
}, se = (e = {}) => {
|
|
1694
1724
|
const { widget: t, label: r, ...n } = e;
|
|
1695
1725
|
return {
|
|
1696
1726
|
widget: {
|
|
1697
1727
|
type: "button",
|
|
1698
|
-
widgetName:
|
|
1728
|
+
widgetName: s(),
|
|
1699
1729
|
widgetNameAlias: "",
|
|
1700
1730
|
triggerEvent: 0,
|
|
1701
1731
|
customCls: null,
|
|
@@ -1734,12 +1764,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1734
1764
|
tab: null,
|
|
1735
1765
|
...n
|
|
1736
1766
|
};
|
|
1737
|
-
},
|
|
1767
|
+
}, ue = (e = {}) => {
|
|
1738
1768
|
const { widget: t, label: r, ...n } = e;
|
|
1739
1769
|
return {
|
|
1740
1770
|
widget: {
|
|
1741
1771
|
type: "address",
|
|
1742
|
-
widgetName:
|
|
1772
|
+
widgetName: s(),
|
|
1743
1773
|
widgetNameAlias: "",
|
|
1744
1774
|
customCls: null,
|
|
1745
1775
|
width: 720,
|
|
@@ -1768,12 +1798,12 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1768
1798
|
tab: null,
|
|
1769
1799
|
...n
|
|
1770
1800
|
};
|
|
1771
|
-
},
|
|
1801
|
+
}, de = (e = {}) => {
|
|
1772
1802
|
const { widget: t, label: r, ...n } = e;
|
|
1773
1803
|
return {
|
|
1774
1804
|
widget: {
|
|
1775
1805
|
type: "subform",
|
|
1776
|
-
widgetName:
|
|
1806
|
+
widgetName: s(),
|
|
1777
1807
|
widgetNameAlias: "",
|
|
1778
1808
|
customCls: null,
|
|
1779
1809
|
enable: !0,
|
|
@@ -1788,8 +1818,8 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1788
1818
|
version: 1
|
|
1789
1819
|
},
|
|
1790
1820
|
items: (t.items || []).map((a, l) => {
|
|
1791
|
-
const i =
|
|
1792
|
-
return i.widget.widgetName =
|
|
1821
|
+
const i = me(a, !0);
|
|
1822
|
+
return i.widget.widgetName = s("_widget", l), i;
|
|
1793
1823
|
}),
|
|
1794
1824
|
sortable: !0,
|
|
1795
1825
|
//启用子表单数据排序
|
|
@@ -1851,11 +1881,11 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1851
1881
|
lineWidth: 12,
|
|
1852
1882
|
tab: null
|
|
1853
1883
|
};
|
|
1854
|
-
},
|
|
1884
|
+
}, ce = (e) => {
|
|
1855
1885
|
const { widget: t, label: r, ...n } = e || {};
|
|
1856
1886
|
return {
|
|
1857
1887
|
widget: {
|
|
1858
|
-
widgetName:
|
|
1888
|
+
widgetName: s(),
|
|
1859
1889
|
widgetNameAlias: "",
|
|
1860
1890
|
customCls: null,
|
|
1861
1891
|
enable: !0,
|
|
@@ -1885,47 +1915,47 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1885
1915
|
tab: null,
|
|
1886
1916
|
...n
|
|
1887
1917
|
};
|
|
1888
|
-
},
|
|
1889
|
-
address:
|
|
1890
|
-
button:
|
|
1891
|
-
textarea:
|
|
1892
|
-
datetime:
|
|
1893
|
-
text:
|
|
1894
|
-
password:
|
|
1895
|
-
location:
|
|
1896
|
-
radiogroup:
|
|
1897
|
-
radio:
|
|
1898
|
-
combo:
|
|
1899
|
-
combocheck:
|
|
1900
|
-
separator:
|
|
1901
|
-
checkboxgroup:
|
|
1902
|
-
upload:
|
|
1903
|
-
number:
|
|
1904
|
-
image:
|
|
1905
|
-
signature:
|
|
1906
|
-
user:
|
|
1907
|
-
dataload:
|
|
1908
|
-
linkdata:
|
|
1909
|
-
linkquery:
|
|
1910
|
-
usergroup:
|
|
1911
|
-
subform:
|
|
1912
|
-
dept:
|
|
1913
|
-
sn:
|
|
1914
|
-
deptgroup:
|
|
1918
|
+
}, ge = {
|
|
1919
|
+
address: ue,
|
|
1920
|
+
button: se,
|
|
1921
|
+
textarea: oe,
|
|
1922
|
+
datetime: U,
|
|
1923
|
+
text: A,
|
|
1924
|
+
password: A,
|
|
1925
|
+
location: ie,
|
|
1926
|
+
radiogroup: k,
|
|
1927
|
+
radio: k,
|
|
1928
|
+
combo: G,
|
|
1929
|
+
combocheck: le,
|
|
1930
|
+
separator: ae,
|
|
1931
|
+
checkboxgroup: ne,
|
|
1932
|
+
upload: re,
|
|
1933
|
+
number: j,
|
|
1934
|
+
image: te,
|
|
1935
|
+
signature: ee,
|
|
1936
|
+
user: J,
|
|
1937
|
+
dataload: V,
|
|
1938
|
+
linkdata: K,
|
|
1939
|
+
linkquery: ce,
|
|
1940
|
+
usergroup: Y,
|
|
1941
|
+
subform: de,
|
|
1942
|
+
dept: z,
|
|
1943
|
+
sn: Q,
|
|
1944
|
+
deptgroup: H,
|
|
1915
1945
|
flowState: g,
|
|
1916
1946
|
flowstate: g,
|
|
1917
1947
|
formula: g,
|
|
1918
1948
|
unknown: g
|
|
1919
|
-
},
|
|
1949
|
+
}, me = (e, t = !1) => {
|
|
1920
1950
|
var l, i;
|
|
1921
1951
|
if (!e || !e.widget || !e.widget.type)
|
|
1922
1952
|
return e;
|
|
1923
1953
|
const r = e.widget.type || "unknown";
|
|
1924
|
-
return t && r === "subform" ? g(e) : (((i = (l = e == null ? void 0 : e.widget) == null ? void 0 : l.widgetName) != null ? i : "").startsWith("_widget_") || (e.widget.widgetName =
|
|
1925
|
-
},
|
|
1926
|
-
var t, r, n, a, l, i,
|
|
1927
|
-
return !e || !((t = e.corp) != null && t.name) || !((r = e.user) != null && r.nickname) ? "" : `${(n = e.corp) == null ? void 0 : n.name} ${(a = e.user) == null ? void 0 : a.nickname}(${(l = e.user) == null ? void 0 : l.username}) ${(i = e.appName) != null ? i : ""} ${(
|
|
1928
|
-
},
|
|
1954
|
+
return t && r === "subform" ? g(e) : (((i = (l = e == null ? void 0 : e.widget) == null ? void 0 : l.widgetName) != null ? i : "").startsWith("_widget_") || (e.widget.widgetName = R()), (ge[r] || g)(e));
|
|
1955
|
+
}, Qe = (e) => {
|
|
1956
|
+
var t, r, n, a, l, i, o, u;
|
|
1957
|
+
return !e || !((t = e.corp) != null && t.name) || !((r = e.user) != null && r.nickname) ? "" : `${(n = e.corp) == null ? void 0 : n.name} ${(a = e.user) == null ? void 0 : a.nickname}(${(l = e.user) == null ? void 0 : l.username}) ${(i = e.appName) != null ? i : ""} ${(o = e.entryName) != null ? o : ""} ${(u = e.agentName) != null ? u : ""}`;
|
|
1958
|
+
}, ze = (e) => {
|
|
1929
1959
|
if (!e)
|
|
1930
1960
|
return "";
|
|
1931
1961
|
try {
|
|
@@ -1937,47 +1967,47 @@ const je = { 0: "e7b5", 1: "e7c7", 2: "e7b3", 3: "e7c9", 4: "e7bc", 5: "e7be", 6
|
|
|
1937
1967
|
}
|
|
1938
1968
|
};
|
|
1939
1969
|
export {
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1970
|
+
Re as DATA_COUNT_PER_BATCH,
|
|
1971
|
+
D as FIELD_TYPE_OPERATOR_MAP,
|
|
1972
|
+
Ue as FORM_ICON_UNICODE_MAP,
|
|
1973
|
+
Se as GetLoadingMsg,
|
|
1974
|
+
ve as GetPartErrMsg,
|
|
1975
|
+
ye as GetQueryResult,
|
|
1976
|
+
_e as GetSafeFormStructure,
|
|
1977
|
+
L as ICON_UNICODE_MAP,
|
|
1978
|
+
N as IsErrorPart,
|
|
1979
|
+
fe as IsFakeMsgPart,
|
|
1980
|
+
we as IsFileGroupPart,
|
|
1981
|
+
pe as IsFilePart,
|
|
1982
|
+
he as IsLoadingPart,
|
|
1983
|
+
be as IsQueryResultPart,
|
|
1984
|
+
Pe as OPERATOR_LABEL_MAP,
|
|
1985
|
+
F as WHITE_LIST_FIELDS_SET,
|
|
1986
|
+
Le as bsConditionParse2Condition,
|
|
1987
|
+
We as conditionStringify2bsCondition,
|
|
1988
|
+
xe as createFieldPartsExtractor,
|
|
1989
|
+
Me as createGetFieldJsonInfo,
|
|
1990
|
+
E as createPartTypeChecker,
|
|
1991
|
+
Ne as createPayloadTypeChecker,
|
|
1962
1992
|
d as extractTextPartMeta,
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1993
|
+
Ee as field2config,
|
|
1994
|
+
_ as flatArr,
|
|
1995
|
+
Ie as formatLocalDate,
|
|
1996
|
+
$e as getAvailableOperators,
|
|
1997
|
+
Qe as getChatCtxForHuman,
|
|
1998
|
+
ze as getChatCtxForMcp,
|
|
1999
|
+
Te as getDefaultOperator,
|
|
2000
|
+
Ge as getIconUnicode,
|
|
2001
|
+
Ae as getMetaErrorMsg,
|
|
2002
|
+
Fe as hasValidFieldValue,
|
|
2003
|
+
De as imageUrlToBase64,
|
|
2004
|
+
ke as injectHostStylesIntoShadow,
|
|
2005
|
+
Oe as isCtxMatch,
|
|
2006
|
+
Be as isHelperCondMet,
|
|
2007
|
+
je as mergeConsecutiveTargets,
|
|
2008
|
+
He as promptParser,
|
|
2009
|
+
me as rebuildFieldsJsonStructure,
|
|
2010
|
+
qe as safeParseJson,
|
|
2011
|
+
Ce as valueNormalizer
|
|
1982
2012
|
};
|
|
1983
2013
|
//# sourceMappingURL=ai-feat-utils.js.map
|