@baishuyun/ui-base 6.32.0 → 6.32.2
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/AiRuntimeContainer/index.js +96 -113
- package/dist/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-BsQYjV85.js → Calendar-DBqaITr-.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-AFps-RkO.js → DatePicker-Cnf0lUyJ.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-BbG9Po6g.js → DatePickerPanel-XHaXo_tg.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +1 -1
- package/dist/FieldCard/index.js +1 -1
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Kanban/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/vendors/{version-BIxonu_L.js → version-BPrpr-5-.js} +1 -1
- package/package.json +2 -3
- package/dist/vite-env.d.ts +0 -13
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BPrpr-5-.js";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import { Component as n, useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as
|
|
5
|
-
import { createRoot as
|
|
4
|
+
import { Component as n, useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as ee, useRef as o } from "react";
|
|
5
|
+
import { createRoot as s } from "react-dom/client";
|
|
6
6
|
import * as c from "@babel/standalone";
|
|
7
7
|
import { parse as l, walk as u } from "css-tree";
|
|
8
8
|
import * as d from "lucide-react";
|
|
@@ -15,25 +15,12 @@ var f = ["react", "lucide-react"], p = new Set(f), m = f.join("、"), h = [
|
|
|
15
15
|
"formData",
|
|
16
16
|
"env"
|
|
17
17
|
], g = new Set([
|
|
18
|
-
"fetch",
|
|
19
|
-
"XMLHttpRequest",
|
|
20
|
-
"WebSocket",
|
|
21
|
-
"EventSource",
|
|
22
|
-
"eval",
|
|
23
|
-
"Function",
|
|
24
|
-
"globalThis",
|
|
25
|
-
"self",
|
|
26
|
-
"window",
|
|
27
|
-
"localStorage",
|
|
28
|
-
"sessionStorage",
|
|
29
|
-
"indexedDB"
|
|
30
|
-
]), _ = new Set([
|
|
31
18
|
"script",
|
|
32
19
|
"iframe",
|
|
33
20
|
"object",
|
|
34
21
|
"embed",
|
|
35
22
|
"link"
|
|
36
|
-
]),
|
|
23
|
+
]), _ = new Set([
|
|
37
24
|
"loc",
|
|
38
25
|
"start",
|
|
39
26
|
"end",
|
|
@@ -42,74 +29,70 @@ var f = ["react", "lucide-react"], p = new Set(f), m = f.join("、"), h = [
|
|
|
42
29
|
"leadingComments",
|
|
43
30
|
"trailingComments",
|
|
44
31
|
"innerComments"
|
|
45
|
-
]),
|
|
46
|
-
function
|
|
32
|
+
]), v = /url\(\s*['"]?\s*(?:https?:)?\/\//i, y = (e) => e?.type === "FunctionDeclaration" || e?.type === "FunctionExpression" || e?.type === "ArrowFunctionExpression";
|
|
33
|
+
function b(e, t) {
|
|
47
34
|
if (!(!e || typeof e.type != "string") && t(e) !== !1) for (let n of Object.keys(e)) {
|
|
48
|
-
if (
|
|
35
|
+
if (_.has(n)) continue;
|
|
49
36
|
let r = e[n];
|
|
50
|
-
Array.isArray(r) ? r.forEach((e) =>
|
|
37
|
+
Array.isArray(r) ? r.forEach((e) => b(e, t)) : r && typeof r == "object" && b(r, t);
|
|
51
38
|
}
|
|
52
39
|
}
|
|
53
|
-
function
|
|
40
|
+
function x(e) {
|
|
54
41
|
let t = e.body.find((e) => e.type === "ExportDefaultDeclaration")?.declaration;
|
|
55
42
|
if (!t) return null;
|
|
56
|
-
if (
|
|
43
|
+
if (y(t)) return t;
|
|
57
44
|
if (t.type !== "Identifier") return null;
|
|
58
45
|
for (let n of e.body) {
|
|
59
46
|
if (n.type === "FunctionDeclaration" && n.id?.name === t.name) return n;
|
|
60
47
|
if (n.type === "VariableDeclaration") {
|
|
61
|
-
let e = n.declarations.find((e) => e.id?.name === t.name &&
|
|
48
|
+
let e = n.declarations.find((e) => e.id?.name === t.name && y(e.init));
|
|
62
49
|
if (e) return e.init;
|
|
63
50
|
}
|
|
64
51
|
}
|
|
65
52
|
return null;
|
|
66
53
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
54
|
+
var S = (e) => e.computed ? null : e.key.type === "Identifier" ? e.key.name : e.key.type === "StringLiteral" ? e.key.value : null;
|
|
55
|
+
function C(e, t, n) {
|
|
69
56
|
for (let r of e.properties) {
|
|
70
57
|
if (r.type === "RestElement") {
|
|
71
58
|
n.push(`组件不能用 ...rest 收集 props,请只解构 ${h.join("、")}。`);
|
|
72
59
|
continue;
|
|
73
60
|
}
|
|
74
|
-
let e =
|
|
61
|
+
let e = S(r);
|
|
75
62
|
e === null ? n.push("组件的 props 不能使用计算属性名。") : h.includes(e) || t.add(e);
|
|
76
63
|
}
|
|
77
64
|
}
|
|
78
|
-
function
|
|
65
|
+
function w(e) {
|
|
79
66
|
let t = [], n = /* @__PURE__ */ new Set(), [r] = e.params;
|
|
80
|
-
return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ?
|
|
67
|
+
return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ? C(r, n, t) : r?.type === "Identifier" && b(e.body, (e) => {
|
|
81
68
|
if (e.type === "MemberExpression" && e.object?.name === r.name) {
|
|
82
69
|
let r = e.computed ? null : e.property.name;
|
|
83
70
|
return r === null ? t.push("组件不能用动态键读取 props。") : h.includes(r) || n.add(r), !1;
|
|
84
71
|
}
|
|
85
|
-
return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (
|
|
72
|
+
return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (C(e.id, n, t), !1) : !0;
|
|
86
73
|
}), n.size && t.unshift(`组件签名只能接收 ${h.join("、")},发现多余的 props:${[...n].join("、")}。平台不会传入它们,请删除,需要的文案或配置直接写在组件内部。`), t;
|
|
87
74
|
}
|
|
88
|
-
function
|
|
89
|
-
let t = /* @__PURE__ */ new Set()
|
|
75
|
+
function T(e) {
|
|
76
|
+
let t = /* @__PURE__ */ new Set();
|
|
77
|
+
return b(e, (e) => {
|
|
90
78
|
switch (e.type) {
|
|
91
|
-
case "Identifier": return g.has(e.name) && t.add(e.name), !0;
|
|
92
|
-
case "MemberExpression":
|
|
93
|
-
case "OptionalMemberExpression": return w(e.property) === "constructor" && t.add("constructor"), e.computed ? !0 : (x(e.object, n), !1);
|
|
94
|
-
case "ObjectProperty": return e.computed ? !0 : (x(e.value, n), !1);
|
|
95
79
|
case "ImportDeclaration": return p.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${m})`), !1;
|
|
96
80
|
case "Import":
|
|
97
81
|
case "ImportExpression": return t.add("动态 import()"), !0;
|
|
98
82
|
case "JSXOpeningElement": {
|
|
99
83
|
let n = e.name?.name;
|
|
100
|
-
return
|
|
84
|
+
return g.has(n) && t.add(`<${n}>`), !0;
|
|
101
85
|
}
|
|
102
86
|
case "JSXAttribute": return e.name?.name === "dangerouslySetInnerHTML" && t.add("dangerouslySetInnerHTML"), !0;
|
|
103
87
|
default: return !0;
|
|
104
88
|
}
|
|
105
|
-
};
|
|
106
|
-
return x(e, n), [...t];
|
|
89
|
+
}), [...t];
|
|
107
90
|
}
|
|
108
|
-
function
|
|
91
|
+
function E(e) {
|
|
109
92
|
let t = [];
|
|
110
|
-
return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"),
|
|
93
|
+
return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"), v.test(e) && t.push("CSS 中不能引用外部地址,图片请用内联 svg 或 data: 地址。"), t;
|
|
111
94
|
}
|
|
112
|
-
function
|
|
95
|
+
function D(e, t = null) {
|
|
113
96
|
let n = [], r = null;
|
|
114
97
|
try {
|
|
115
98
|
r = c.packages.parser.parse(e, {
|
|
@@ -120,20 +103,20 @@ function k(e, t = null) {
|
|
|
120
103
|
if (!(e instanceof SyntaxError)) throw e;
|
|
121
104
|
}
|
|
122
105
|
if (r) {
|
|
123
|
-
let e =
|
|
124
|
-
e && n.push(...
|
|
125
|
-
let t =
|
|
126
|
-
t.length && n.push(`不允许使用:${t.join("、")}
|
|
106
|
+
let e = x(r);
|
|
107
|
+
e && n.push(...w(e));
|
|
108
|
+
let t = T(r);
|
|
109
|
+
t.length && n.push(`不允许使用:${t.join("、")}。组件只能 import 宿主注册过的模块,也不能注入脚本和原始 HTML。`);
|
|
127
110
|
}
|
|
128
|
-
return t != null && n.push(...
|
|
111
|
+
return t != null && n.push(...E(t)), n;
|
|
129
112
|
}
|
|
130
|
-
function
|
|
131
|
-
let n =
|
|
113
|
+
function O(e, t = null) {
|
|
114
|
+
let n = D(e, t);
|
|
132
115
|
if (n.length) throw Error(`组件不符合运行时约束:\n${n.map((e) => `- ${e}`).join("\n")}`);
|
|
133
116
|
}
|
|
134
117
|
//#endregion
|
|
135
118
|
//#region ../shared/src/ai-runtime/checkCssSyntax.ts
|
|
136
|
-
function
|
|
119
|
+
function k(e, t = "style.css") {
|
|
137
120
|
e?.trim() && u(l(e, {
|
|
138
121
|
filename: t,
|
|
139
122
|
positions: !0,
|
|
@@ -147,15 +130,15 @@ function j(e, t = "style.css") {
|
|
|
147
130
|
}
|
|
148
131
|
//#endregion
|
|
149
132
|
//#region ../shared/src/ai-runtime/sourceText.ts
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
if (!e ||
|
|
153
|
-
let t = e.match(
|
|
133
|
+
var A = /function\s+([A-Za-z_$][\w$]*)/, j = /export\s+default\b/;
|
|
134
|
+
function M(e) {
|
|
135
|
+
if (!e || j.test(e)) return e;
|
|
136
|
+
let t = e.match(A)?.[1];
|
|
154
137
|
return t ? `${e.trim()}\nexport default ${t};\n` : e;
|
|
155
138
|
}
|
|
156
139
|
//#endregion
|
|
157
140
|
//#region ../shared/src/ai-runtime/parseSourceCode.ts
|
|
158
|
-
var
|
|
141
|
+
var N = /<(jsx|css)>([\s\S]*?)<\/\1>/g, te = {
|
|
159
142
|
ast: !1,
|
|
160
143
|
sourceType: "module",
|
|
161
144
|
presets: [["react", {
|
|
@@ -164,10 +147,10 @@ var re = /<(jsx|css)>([\s\S]*?)<\/\1>/g, ie = {
|
|
|
164
147
|
}]],
|
|
165
148
|
plugins: ["transform-modules-commonjs"]
|
|
166
149
|
};
|
|
167
|
-
function
|
|
150
|
+
function P(e) {
|
|
168
151
|
if (typeof e != "string" || !e.trim()) return null;
|
|
169
152
|
let t = null, n = null;
|
|
170
|
-
for (let r of e.matchAll(
|
|
153
|
+
for (let r of e.matchAll(N)) {
|
|
171
154
|
let e = r[2].trim();
|
|
172
155
|
r[1] === "jsx" && (t = e), r[1] === "css" && (n = e);
|
|
173
156
|
}
|
|
@@ -176,14 +159,14 @@ function N(e) {
|
|
|
176
159
|
css: n
|
|
177
160
|
};
|
|
178
161
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
let n =
|
|
162
|
+
var ne = "export default function AiRuntimeField() {\n return null;\n}";
|
|
163
|
+
function F(e, t = "ai") {
|
|
164
|
+
let n = P(e);
|
|
182
165
|
if (!n) throw Error("code 里没有可用的 <jsx> 或 <css>。");
|
|
183
|
-
let r =
|
|
184
|
-
i &&
|
|
166
|
+
let r = M(n.jsx || ne), i = n.css ?? "";
|
|
167
|
+
i && k(i, `${t}.css`), O(r, i || null);
|
|
185
168
|
let a = c.transform(r, {
|
|
186
|
-
...
|
|
169
|
+
...te,
|
|
187
170
|
filename: `${t}.jsx`
|
|
188
171
|
});
|
|
189
172
|
if (!a?.code) throw Error("Babel 没有产出可执行的代码。");
|
|
@@ -194,18 +177,18 @@ function P(e, t = "ai") {
|
|
|
194
177
|
}
|
|
195
178
|
//#endregion
|
|
196
179
|
//#region ../shared/src/ai-runtime/compileCache.ts
|
|
197
|
-
var
|
|
180
|
+
var re = 200, I = /* @__PURE__ */ new Map(), ie = Object.freeze({
|
|
198
181
|
ok: !1,
|
|
199
182
|
code: "",
|
|
200
183
|
css: "",
|
|
201
184
|
error: null
|
|
202
|
-
}),
|
|
203
|
-
if (typeof e != "string" || !e.trim()) return
|
|
204
|
-
let n =
|
|
205
|
-
if (n) return
|
|
185
|
+
}), L = (e, t) => {
|
|
186
|
+
if (typeof e != "string" || !e.trim()) return ie;
|
|
187
|
+
let n = I.get(e);
|
|
188
|
+
if (n) return I.delete(e), I.set(e, n), n;
|
|
206
189
|
let r;
|
|
207
190
|
try {
|
|
208
|
-
let n =
|
|
191
|
+
let n = F(e, t);
|
|
209
192
|
r = {
|
|
210
193
|
ok: !0,
|
|
211
194
|
code: n.code,
|
|
@@ -220,30 +203,30 @@ var oe = 200, F = /* @__PURE__ */ new Map(), se = Object.freeze({
|
|
|
220
203
|
error: e
|
|
221
204
|
};
|
|
222
205
|
}
|
|
223
|
-
if (
|
|
224
|
-
let e =
|
|
225
|
-
e !== void 0 &&
|
|
206
|
+
if (I.size >= re) {
|
|
207
|
+
let e = I.keys().next().value;
|
|
208
|
+
e !== void 0 && I.delete(e);
|
|
226
209
|
}
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
},
|
|
210
|
+
return I.set(e, r), r;
|
|
211
|
+
}, ae = () => {
|
|
212
|
+
I.clear();
|
|
213
|
+
}, R = (e, t) => {
|
|
231
214
|
let n = {};
|
|
232
215
|
for (let t of Object.keys(e)) n[t] = e[t];
|
|
233
216
|
return (n.default === void 0 || n.default === null) && (n.default = t), Object.defineProperty(n, "__esModule", { value: !0 }), n;
|
|
234
|
-
},
|
|
235
|
-
react:
|
|
236
|
-
"lucide-react":
|
|
237
|
-
},
|
|
217
|
+
}, z = t.default || t, oe = {
|
|
218
|
+
react: R(t, z),
|
|
219
|
+
"lucide-react": R(d, d)
|
|
220
|
+
}, B = {};
|
|
238
221
|
for (let e of f) {
|
|
239
|
-
let t =
|
|
222
|
+
let t = oe[e];
|
|
240
223
|
if (!t) throw Error(`模块 ${e} 在白名单里但没有实现。`);
|
|
241
|
-
|
|
224
|
+
B[e] = t;
|
|
242
225
|
}
|
|
243
|
-
var
|
|
244
|
-
let t =
|
|
226
|
+
var V = Object.keys(B), se = (e) => {
|
|
227
|
+
let t = B[e];
|
|
245
228
|
if (t) return t;
|
|
246
|
-
throw Error(`Unknown module: ${e}(组件只能 require ${
|
|
229
|
+
throw Error(`Unknown module: ${e}(组件只能 require ${V.join("、")})`);
|
|
247
230
|
}, H = {
|
|
248
231
|
COMPILE: 4001,
|
|
249
232
|
EXECUTE: 4002,
|
|
@@ -252,12 +235,12 @@ var B = Object.keys(z), V = (e) => {
|
|
|
252
235
|
}, U = new Set(Object.values(H)), W = (e, t) => {
|
|
253
236
|
let n = e instanceof Error ? e : Error(String(e)), r = n.code;
|
|
254
237
|
return (typeof r != "number" || !U.has(r)) && (n.code = t), n;
|
|
255
|
-
}, G = 0,
|
|
238
|
+
}, G = 0, ce = (e) => (G += 1, `ai-runtime-${e}-${G}.js`), le = (e, t) => {
|
|
256
239
|
if (!e) throw Error("没有可执行的代码。");
|
|
257
240
|
let n = {}, r = `${e}\n//# sourceURL=${t}`;
|
|
258
|
-
if (Function("require", "exports", "React", r)(
|
|
241
|
+
if (Function("require", "exports", "React", r)(se, n, z), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
|
|
259
242
|
return n.default;
|
|
260
|
-
}, K = /* @__PURE__ */ new Map(), q = !1, J = /* @__PURE__ */ new WeakSet(),
|
|
243
|
+
}, K = /* @__PURE__ */ new Map(), q = !1, J = /* @__PURE__ */ new WeakSet(), ue = (e) => {
|
|
261
244
|
e && typeof e == "object" && J.add(e);
|
|
262
245
|
}, Y = (e) => {
|
|
263
246
|
if (e && typeof e == "object" && J.has(e)) return;
|
|
@@ -268,7 +251,7 @@ var B = Object.keys(z), V = (e) => {
|
|
|
268
251
|
return;
|
|
269
252
|
}
|
|
270
253
|
}
|
|
271
|
-
},
|
|
254
|
+
}, de = () => {
|
|
272
255
|
q || typeof window > "u" || (q = !0, window.addEventListener("error", (e) => {
|
|
273
256
|
let t = e.error || Error(e.message);
|
|
274
257
|
queueMicrotask(() => Y(t));
|
|
@@ -276,27 +259,27 @@ var B = Object.keys(z), V = (e) => {
|
|
|
276
259
|
let t = e.reason;
|
|
277
260
|
queueMicrotask(() => Y(t));
|
|
278
261
|
}));
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
},
|
|
262
|
+
}, fe = (e, t) => {
|
|
263
|
+
de(), K.set(e, t);
|
|
264
|
+
}, pe = (e) => {
|
|
282
265
|
K.delete(e);
|
|
283
|
-
},
|
|
266
|
+
}, me = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, X = (e) => typeof e != "string" || !e ? "" : e.replace(me, "$1:host"), he = typeof window > "u" ? i : a, Z = class extends n {
|
|
284
267
|
state = { failed: !1 };
|
|
285
268
|
static getDerivedStateFromError() {
|
|
286
269
|
return { failed: !0 };
|
|
287
270
|
}
|
|
288
271
|
componentDidCatch(e) {
|
|
289
|
-
|
|
272
|
+
ue(e), this.props.onError(W(e, H.RENDER));
|
|
290
273
|
}
|
|
291
274
|
render() {
|
|
292
275
|
return this.state.failed ? null : this.props.children;
|
|
293
276
|
}
|
|
294
|
-
},
|
|
277
|
+
}, ge = new Set([
|
|
295
278
|
"form",
|
|
296
279
|
"table",
|
|
297
280
|
"card"
|
|
298
|
-
]),
|
|
299
|
-
view:
|
|
281
|
+
]), _e = (e) => ({
|
|
282
|
+
view: ge.has(e?.view) ? e?.view : "form",
|
|
300
283
|
platform: e?.platform === "mobile" ? "mobile" : "pc"
|
|
301
284
|
}), Q = (e, t) => {
|
|
302
285
|
let n = e ?? {};
|
|
@@ -305,27 +288,27 @@ var B = Object.keys(z), V = (e) => {
|
|
|
305
288
|
disabled: !!n.disabled,
|
|
306
289
|
readOnly: !!n.readOnly,
|
|
307
290
|
formData: n.formData || {},
|
|
308
|
-
env:
|
|
291
|
+
env: _e(n.env),
|
|
309
292
|
onChange: t
|
|
310
293
|
};
|
|
311
|
-
},
|
|
294
|
+
}, ve = {
|
|
312
295
|
ok: !1,
|
|
313
296
|
error: null,
|
|
314
297
|
Component: null
|
|
315
298
|
};
|
|
316
|
-
function
|
|
299
|
+
function ye(t) {
|
|
317
300
|
let n = ({ code: n, value: a, disabled: c, readOnly: l, formData: u, env: d, runToken: f, height: p, minHeight: m, className: h, style: g, onChange: _, onError: v }) => {
|
|
318
|
-
let y =
|
|
301
|
+
let y = o(null), b = o(null), x = o(null), S = o({});
|
|
319
302
|
S.current = {
|
|
320
303
|
onChange: _,
|
|
321
304
|
onError: v
|
|
322
305
|
};
|
|
323
|
-
let C =
|
|
324
|
-
C.current === null && (C.current =
|
|
325
|
-
let w = C.current, T =
|
|
306
|
+
let C = o(null);
|
|
307
|
+
C.current === null && (C.current = ce(t));
|
|
308
|
+
let w = C.current, T = L(n), E = o({
|
|
326
309
|
source: void 0,
|
|
327
310
|
token: void 0,
|
|
328
|
-
result:
|
|
311
|
+
result: ve
|
|
329
312
|
});
|
|
330
313
|
if (E.current.source !== n || E.current.token !== f) {
|
|
331
314
|
let e;
|
|
@@ -338,7 +321,7 @@ function xe(t) {
|
|
|
338
321
|
e = {
|
|
339
322
|
ok: !0,
|
|
340
323
|
error: null,
|
|
341
|
-
Component:
|
|
324
|
+
Component: le(T.code, w)
|
|
342
325
|
};
|
|
343
326
|
} catch (t) {
|
|
344
327
|
e = {
|
|
@@ -359,11 +342,11 @@ function xe(t) {
|
|
|
359
342
|
if (!e) return null;
|
|
360
343
|
let t = e.shadowRoot || e.attachShadow({ mode: "open" }), n = document.createElement("style"), r = document.createElement("div");
|
|
361
344
|
return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), b.current = {
|
|
362
|
-
root:
|
|
345
|
+
root: s(r, { onUncaughtError: (e) => S.current.onError?.(W(e, H.RUNTIME)) }),
|
|
363
346
|
styleEl: n,
|
|
364
347
|
mountEl: r
|
|
365
348
|
}, b.current;
|
|
366
|
-
}, []), j =
|
|
349
|
+
}, []), j = ee(() => Q({
|
|
367
350
|
value: a,
|
|
368
351
|
disabled: c,
|
|
369
352
|
readOnly: l,
|
|
@@ -377,7 +360,7 @@ function xe(t) {
|
|
|
377
360
|
d,
|
|
378
361
|
O
|
|
379
362
|
]);
|
|
380
|
-
|
|
363
|
+
he(() => {
|
|
381
364
|
let t = A();
|
|
382
365
|
if (!t) return;
|
|
383
366
|
let { root: n, styleEl: r } = t;
|
|
@@ -392,7 +375,7 @@ function xe(t) {
|
|
|
392
375
|
let i = X(T.css);
|
|
393
376
|
r.textContent !== i && (r.textContent = i);
|
|
394
377
|
let a = D.Component;
|
|
395
|
-
n.render(/* @__PURE__ */ e(
|
|
378
|
+
n.render(/* @__PURE__ */ e(Z, {
|
|
396
379
|
onError: k,
|
|
397
380
|
children: /* @__PURE__ */ e(a, { ...j })
|
|
398
381
|
}));
|
|
@@ -405,7 +388,7 @@ function xe(t) {
|
|
|
405
388
|
]), i(() => () => {
|
|
406
389
|
let e = b.current;
|
|
407
390
|
b.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
|
|
408
|
-
}, []), i(() => (
|
|
391
|
+
}, []), i(() => (fe(w, (e) => S.current.onError?.(e)), () => pe(w)), [w]);
|
|
409
392
|
let M = {
|
|
410
393
|
height: p ?? "auto",
|
|
411
394
|
minHeight: m ?? 32,
|
|
@@ -424,6 +407,6 @@ function xe(t) {
|
|
|
424
407
|
}
|
|
425
408
|
//#endregion
|
|
426
409
|
//#region src/components/AiRuntimeContainer/index.ts
|
|
427
|
-
var $ =
|
|
410
|
+
var $ = ye("ui-base");
|
|
428
411
|
//#endregion
|
|
429
|
-
export { $ as AiRuntimeContainer, $ as default, H as ERROR_CODE,
|
|
412
|
+
export { $ as AiRuntimeContainer, $ as default, H as ERROR_CODE, V as MODULE_NAMES, O as assertFieldSource, ae as clearCompileCache, F as compileAiCode, L as compileCached, X as scopeCss, P as splitAiCode, Q as toPlainProps, D as validateFieldSource };
|
package/dist/Amap/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t } from "../vendors/useLocale-3oUjPb-k.js";
|
|
|
3
3
|
import { t as n } from "../vendors/cssVars-UpriQzph.js";
|
|
4
4
|
import { t as r } from "../Segmented/Segmented-BMwjhsZw.js";
|
|
5
5
|
import { t as i } from "../Tooltip/Tooltip-N06Os8rG.js";
|
|
6
|
-
import { t as a } from "../DatePicker/DatePicker-
|
|
6
|
+
import { t as a } from "../DatePicker/DatePicker-Cnf0lUyJ.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
9
9
|
import h from "clsx";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BPrpr-5-.js";
|
|
2
2
|
import "../Icon/Icon-CcKDWNGy.js";
|
|
3
3
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
@@ -7,7 +7,7 @@ import "../vendors/useLocale-3oUjPb-k.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
8
8
|
import "../Segmented/Segmented-BMwjhsZw.js";
|
|
9
9
|
import "../Tooltip/Tooltip-N06Os8rG.js";
|
|
10
|
-
import { n as e, r as t, t as n } from "./Calendar-
|
|
11
|
-
import "../DatePicker/DatePicker-
|
|
10
|
+
import { n as e, r as t, t as n } from "./Calendar-DBqaITr-.js";
|
|
11
|
+
import "../DatePicker/DatePicker-Cnf0lUyJ.js";
|
|
12
12
|
import "../DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
13
13
|
export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
|
package/dist/Card/index.js
CHANGED
package/dist/CheckBox/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var w = {
|
|
|
48
48
|
"bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
|
|
49
49
|
"bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
|
|
50
50
|
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
|
|
51
|
-
}, j = m(() => import("./DatePickerPanel-
|
|
51
|
+
}, j = m(() => import("./DatePickerPanel-XHaXo_tg.js")), M = (o) => {
|
|
52
52
|
let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = o, { locale: N } = r(), P = e(M), [F, I] = v(o, {
|
|
53
53
|
defaultValuePropName: "defaultValue",
|
|
54
54
|
valuePropName: "value",
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-BPrpr-5-.js";
|
|
2
2
|
import "../vendors/LocaleContext-CsTLO_Y2.js";
|
|
3
3
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
4
|
import "../vendors/useFloatingOverlay-B66lOL8v.js";
|
|
5
5
|
import "../vendors/useLocale-3oUjPb-k.js";
|
|
6
6
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
7
|
-
import { t as e } from "./DatePicker-
|
|
7
|
+
import { t as e } from "./DatePicker-Cnf0lUyJ.js";
|
|
8
8
|
import "./pickerLocale-Brf7_Tnd.js";
|
|
9
9
|
export { e as default };
|
package/dist/DropDown/index.js
CHANGED
package/dist/Editor/index.js
CHANGED
package/dist/FieldCard/index.js
CHANGED
package/dist/Gantt/index.js
CHANGED
package/dist/Icon/index.js
CHANGED
package/dist/InputTag/index.js
CHANGED
package/dist/Kanban/index.js
CHANGED
package/dist/Loading/index.js
CHANGED
package/dist/Modal/index.js
CHANGED
package/dist/Overlay/index.js
CHANGED
package/dist/Radio/index.js
CHANGED
package/dist/ScrollBar/index.js
CHANGED
package/dist/Segmented/index.js
CHANGED
package/dist/Select/index.js
CHANGED
package/dist/Table/index.js
CHANGED
package/dist/Tabs/index.js
CHANGED
package/dist/Tooltip/index.js
CHANGED
package/dist/Tree/index.js
CHANGED
|
@@ -22,4 +22,4 @@ export declare const renderDefaultClusterContent: (count: number) => string;
|
|
|
22
22
|
export declare const setMarkerContent: (marker: ManagedMarker, content: AmapMarkerClusterContent | undefined, signature?: string) => void;
|
|
23
23
|
export declare const setMarkerAnchor: (marker: ManagedMarker) => void;
|
|
24
24
|
export declare const setMarkerOffset: (AMap: typeof globalThis.AMap, marker: ManagedMarker, offset: AmapMarkerClusterMarkerOffset | undefined) => void;
|
|
25
|
-
export declare const cleanupMarkerRuntime: (marker: ManagedMarker) =>
|
|
25
|
+
export declare const cleanupMarkerRuntime: (marker: ManagedMarker) => any;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./vendors/version-
|
|
1
|
+
import "./vendors/version-BPrpr-5-.js";
|
|
2
2
|
import "./ScrollBar/style-D26azwz6.js";
|
|
3
3
|
import { t as e } from "./Icon/Icon-CcKDWNGy.js";
|
|
4
4
|
import "./vendors/LocaleContext-CsTLO_Y2.js";
|
|
@@ -29,8 +29,8 @@ import { t as O } from "./DropDown/DropDown-B3VFy5GF.js";
|
|
|
29
29
|
import { t as k } from "./Loading/Loading-Dm4i0lYd.js";
|
|
30
30
|
import "./NotFoundContent/index.js";
|
|
31
31
|
import { t as A } from "./InputTag/InputTag-C1WA6sDA.js";
|
|
32
|
-
import { t as j } from "./Calendar/Calendar-
|
|
33
|
-
import { t as M } from "./DatePicker/DatePicker-
|
|
32
|
+
import { t as j } from "./Calendar/Calendar-DBqaITr-.js";
|
|
33
|
+
import { t as M } from "./DatePicker/DatePicker-Cnf0lUyJ.js";
|
|
34
34
|
import "./DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
35
35
|
import { a as N, c as P, d as F, f as I, g as L, h as R, i as z, l as B, m as V, n as H, o as U, p as W, r as G, t as K, u as q } from "./Table/Table-B8381Lni.js";
|
|
36
36
|
import { t as J } from "./FieldCard/FieldCard-CCv4nLpH.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-base",
|
|
3
|
-
"version": "6.32.
|
|
3
|
+
"version": "6.32.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "百数云低代码平台通用组件库",
|
|
6
6
|
"author": "bsy-fe team",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
|
49
|
-
"@amap/amap-jsapi-types": "^0.0.15",
|
|
50
49
|
"@babel/standalone": "7.29.7",
|
|
51
50
|
"@dnd-kit/core": "^6.3.1",
|
|
52
51
|
"@dnd-kit/sortable": "^10.0.0",
|
|
@@ -64,7 +63,6 @@
|
|
|
64
63
|
"@shikijs/engine-javascript": "^4.0.2",
|
|
65
64
|
"@shikijs/langs": "^4.0.2",
|
|
66
65
|
"@shikijs/themes": "^4.0.2",
|
|
67
|
-
"@tanstack/react-table": "^8.21.3",
|
|
68
66
|
"@tanstack/react-virtual": "^3.14.3",
|
|
69
67
|
"ahooks": "^3.8.5",
|
|
70
68
|
"clsx": "^2.1.1",
|
|
@@ -79,6 +77,7 @@
|
|
|
79
77
|
"use-context-selector": "^2.0.0"
|
|
80
78
|
},
|
|
81
79
|
"devDependencies": {
|
|
80
|
+
"@amap/amap-jsapi-types": "^0.0.15",
|
|
82
81
|
"@ant-design/icons": "^6.2.3",
|
|
83
82
|
"@floating-ui/react": "^0.27.16",
|
|
84
83
|
"@rc-component/picker": "^1.10.0",
|
package/dist/vite-env.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
/// <reference types="@amap/amap-jsapi-types" />
|
|
3
|
-
|
|
4
|
-
declare const __ICONFONT_SCRIPT_URL__: string;
|
|
5
|
-
declare const __BSY_PKG_NAME__: string;
|
|
6
|
-
declare const __BSY_PKG_VERSION__: string;
|
|
7
|
-
|
|
8
|
-
interface Window {
|
|
9
|
-
__BSY_UI__?: Record<string, string>;
|
|
10
|
-
_AMapSecurityConfig?: {
|
|
11
|
-
securityJsCode?: string;
|
|
12
|
-
};
|
|
13
|
-
}
|