@baishuyun/ui-base 6.30.1 → 6.31.0

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.
@@ -1,19 +1,20 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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 o, useRef as s } from "react";
5
- import { createRoot as c } from "react-dom/client";
6
- import * as l from "@babel/standalone";
7
- import { parse as u, walk as d } from "css-tree";
8
- import * as f from "lucide-react";
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 te } from "react-dom/client";
6
+ import * as s from "@babel/standalone";
7
+ import { parse as c, walk as l } from "css-tree";
8
+ import * as u from "lucide-react";
9
9
  //#region ../shared/src/ai-runtime/moduleNames.ts
10
- var p = ["react", "lucide-react"], m = new Set(p), h = p.join("、"), g = [
10
+ var d = ["react", "lucide-react"], f = new Set(d), p = d.join("、"), m = [
11
11
  "value",
12
12
  "onChange",
13
13
  "disabled",
14
+ "readOnly",
14
15
  "formData",
15
16
  "tableMode"
16
- ], _ = new Set([
17
+ ], h = new Set([
17
18
  "fetch",
18
19
  "XMLHttpRequest",
19
20
  "WebSocket",
@@ -26,13 +27,13 @@ var p = ["react", "lucide-react"], m = new Set(p), h = p.join("、"), g = [
26
27
  "localStorage",
27
28
  "sessionStorage",
28
29
  "indexedDB"
29
- ]), v = new Set([
30
+ ]), g = new Set([
30
31
  "script",
31
32
  "iframe",
32
33
  "object",
33
34
  "embed",
34
35
  "link"
35
- ]), y = new Set([
36
+ ]), _ = new Set([
36
37
  "loc",
37
38
  "start",
38
39
  "end",
@@ -41,77 +42,77 @@ var p = ["react", "lucide-react"], m = new Set(p), h = p.join("、"), g = [
41
42
  "leadingComments",
42
43
  "trailingComments",
43
44
  "innerComments"
44
- ]), b = /url\(\s*['"]?\s*(?:https?:)?\/\//i, x = (e) => e?.type === "FunctionDeclaration" || e?.type === "FunctionExpression" || e?.type === "ArrowFunctionExpression";
45
- function S(e, t) {
45
+ ]), v = /url\(\s*['"]?\s*(?:https?:)?\/\//i, y = (e) => e?.type === "FunctionDeclaration" || e?.type === "FunctionExpression" || e?.type === "ArrowFunctionExpression";
46
+ function b(e, t) {
46
47
  if (!(!e || typeof e.type != "string") && t(e) !== !1) for (let n of Object.keys(e)) {
47
- if (y.has(n)) continue;
48
+ if (_.has(n)) continue;
48
49
  let r = e[n];
49
- Array.isArray(r) ? r.forEach((e) => S(e, t)) : r && typeof r == "object" && S(r, t);
50
+ Array.isArray(r) ? r.forEach((e) => b(e, t)) : r && typeof r == "object" && b(r, t);
50
51
  }
51
52
  }
52
- function C(e) {
53
+ function x(e) {
53
54
  let t = e.body.find((e) => e.type === "ExportDefaultDeclaration")?.declaration;
54
55
  if (!t) return null;
55
- if (x(t)) return t;
56
+ if (y(t)) return t;
56
57
  if (t.type !== "Identifier") return null;
57
58
  for (let n of e.body) {
58
59
  if (n.type === "FunctionDeclaration" && n.id?.name === t.name) return n;
59
60
  if (n.type === "VariableDeclaration") {
60
- let e = n.declarations.find((e) => e.id?.name === t.name && x(e.init));
61
+ let e = n.declarations.find((e) => e.id?.name === t.name && y(e.init));
61
62
  if (e) return e.init;
62
63
  }
63
64
  }
64
65
  return null;
65
66
  }
66
- var w = (e) => e.computed ? null : e.key.type === "Identifier" ? e.key.name : e.key.type === "StringLiteral" ? e.key.value : null, T = (e) => e ? e.type === "Identifier" ? e.name : e.type === "StringLiteral" ? e.value : e.type === "TemplateLiteral" && e.expressions.length === 0 ? e.quasis[0]?.value?.cooked ?? null : null : null;
67
- function E(e, t, n) {
67
+ var S = (e) => e.computed ? null : e.key.type === "Identifier" ? e.key.name : e.key.type === "StringLiteral" ? e.key.value : null, C = (e) => e ? e.type === "Identifier" ? e.name : e.type === "StringLiteral" ? e.value : e.type === "TemplateLiteral" && e.expressions.length === 0 ? e.quasis[0]?.value?.cooked ?? null : null : null;
68
+ function w(e, t, n) {
68
69
  for (let r of e.properties) {
69
70
  if (r.type === "RestElement") {
70
- n.push(`组件不能用 ...rest 收集 props,请只解构 ${g.join("、")}。`);
71
+ n.push(`组件不能用 ...rest 收集 props,请只解构 ${m.join("、")}。`);
71
72
  continue;
72
73
  }
73
- let e = w(r);
74
- e === null ? n.push("组件的 props 不能使用计算属性名。") : g.includes(e) || t.add(e);
74
+ let e = S(r);
75
+ e === null ? n.push("组件的 props 不能使用计算属性名。") : m.includes(e) || t.add(e);
75
76
  }
76
77
  }
77
- function D(e) {
78
+ function T(e) {
78
79
  let t = [], n = /* @__PURE__ */ new Set(), [r] = e.params;
79
- return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ? E(r, n, t) : r?.type === "Identifier" && S(e.body, (e) => {
80
+ return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), r?.type === "AssignmentPattern" && (r = r.left), r?.type === "ObjectPattern" ? w(r, n, t) : r?.type === "Identifier" && b(e.body, (e) => {
80
81
  if (e.type === "MemberExpression" && e.object?.name === r.name) {
81
82
  let r = e.computed ? null : e.property.name;
82
- return r === null ? t.push("组件不能用动态键读取 props。") : g.includes(r) || n.add(r), !1;
83
+ return r === null ? t.push("组件不能用动态键读取 props。") : m.includes(r) || n.add(r), !1;
83
84
  }
84
- return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (E(e.id, n, t), !1) : !0;
85
- }), n.size && t.unshift(`组件签名只能接收 ${g.join("、")},发现多余的 props:${[...n].join("、")}。平台不会传入它们,请删除,需要的文案或配置直接写在组件内部。`), t;
85
+ return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (w(e.id, n, t), !1) : !0;
86
+ }), n.size && t.unshift(`组件签名只能接收 ${m.join("、")},发现多余的 props:${[...n].join("、")}。平台不会传入它们,请删除,需要的文案或配置直接写在组件内部。`), t;
86
87
  }
87
- function O(e) {
88
+ function E(e) {
88
89
  let t = /* @__PURE__ */ new Set(), n = (e) => {
89
90
  switch (e.type) {
90
- case "Identifier": return _.has(e.name) && t.add(e.name), !0;
91
+ case "Identifier": return h.has(e.name) && t.add(e.name), !0;
91
92
  case "MemberExpression":
92
- case "OptionalMemberExpression": return T(e.property) === "constructor" && t.add("constructor"), e.computed ? !0 : (S(e.object, n), !1);
93
- case "ObjectProperty": return e.computed ? !0 : (S(e.value, n), !1);
94
- case "ImportDeclaration": return m.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${h})`), !1;
93
+ case "OptionalMemberExpression": return C(e.property) === "constructor" && t.add("constructor"), e.computed ? !0 : (b(e.object, n), !1);
94
+ case "ObjectProperty": return e.computed ? !0 : (b(e.value, n), !1);
95
+ case "ImportDeclaration": return f.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${p})`), !1;
95
96
  case "Import":
96
97
  case "ImportExpression": return t.add("动态 import()"), !0;
97
98
  case "JSXOpeningElement": {
98
99
  let n = e.name?.name;
99
- return n === "textarea" ? t.add("<textarea>(单行文本的值不能包含换行)") : v.has(n) && t.add(`<${n}>`), !0;
100
+ return n === "textarea" ? t.add("<textarea>(单行文本的值不能包含换行)") : g.has(n) && t.add(`<${n}>`), !0;
100
101
  }
101
102
  case "JSXAttribute": return e.name?.name === "dangerouslySetInnerHTML" && t.add("dangerouslySetInnerHTML"), !0;
102
103
  default: return !0;
103
104
  }
104
105
  };
105
- return S(e, n), [...t];
106
+ return b(e, n), [...t];
106
107
  }
107
- function k(e) {
108
+ function D(e) {
108
109
  let t = [];
109
- return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"), b.test(e) && t.push("CSS 中不能引用外部地址,图片请用内联 svg 或 data: 地址。"), t;
110
+ return /@import\b/i.test(e) && t.push("CSS 中不能使用 @import。"), v.test(e) && t.push("CSS 中不能引用外部地址,图片请用内联 svg 或 data: 地址。"), t;
110
111
  }
111
- function A(e, t = null) {
112
+ function O(e, t = null) {
112
113
  let n = [], r = null;
113
114
  try {
114
- r = l.packages.parser.parse(e, {
115
+ r = s.packages.parser.parse(e, {
115
116
  sourceType: "module",
116
117
  plugins: ["jsx"]
117
118
  }).program;
@@ -119,21 +120,21 @@ function A(e, t = null) {
119
120
  if (!(e instanceof SyntaxError)) throw e;
120
121
  }
121
122
  if (r) {
122
- let e = C(r);
123
- e && n.push(...D(e));
124
- let t = O(r);
123
+ let e = x(r);
124
+ e && n.push(...T(e));
125
+ let t = E(r);
125
126
  t.length && n.push(`不允许使用:${t.join("、")}。组件不能发起网络请求、使用 eval 或 Function,也不能读取 constructor 或注入脚本和原始 HTML。`);
126
127
  }
127
- return t != null && n.push(...k(t)), n;
128
+ return t != null && n.push(...D(t)), n;
128
129
  }
129
- function j(e, t = null) {
130
- let n = A(e, t);
130
+ function k(e, t = null) {
131
+ let n = O(e, t);
131
132
  if (n.length) throw Error(`组件不符合运行时约束:\n${n.map((e) => `- ${e}`).join("\n")}`);
132
133
  }
133
134
  //#endregion
134
135
  //#region ../shared/src/ai-runtime/checkCssSyntax.ts
135
- function M(e, t = "style.css") {
136
- e?.trim() && d(u(e, {
136
+ function A(e, t = "style.css") {
137
+ e?.trim() && l(c(e, {
137
138
  filename: t,
138
139
  positions: !0,
139
140
  onParseError(e) {
@@ -146,15 +147,15 @@ function M(e, t = "style.css") {
146
147
  }
147
148
  //#endregion
148
149
  //#region ../shared/src/ai-runtime/sourceText.ts
149
- var N = /function\s+([A-Za-z_$][\w$]*)/, ee = /export\s+default\b/;
150
- function te(e) {
151
- if (!e || ee.test(e)) return e;
152
- let t = e.match(N)?.[1];
150
+ var j = /function\s+([A-Za-z_$][\w$]*)/, ne = /export\s+default\b/;
151
+ function M(e) {
152
+ if (!e || ne.test(e)) return e;
153
+ let t = e.match(j)?.[1];
153
154
  return t ? `${e.trim()}\nexport default ${t};\n` : e;
154
155
  }
155
156
  //#endregion
156
157
  //#region ../shared/src/ai-runtime/parseSourceCode.ts
157
- var ne = /<(jsx|css)>([\s\S]*?)<\/\1>/g, re = {
158
+ var re = /<(jsx|css)>([\s\S]*?)<\/\1>/g, ie = {
158
159
  ast: !1,
159
160
  sourceType: "module",
160
161
  presets: [["react", {
@@ -163,10 +164,10 @@ var ne = /<(jsx|css)>([\s\S]*?)<\/\1>/g, re = {
163
164
  }]],
164
165
  plugins: ["transform-modules-commonjs"]
165
166
  };
166
- function P(e) {
167
+ function N(e) {
167
168
  if (typeof e != "string" || !e.trim()) return null;
168
169
  let t = null, n = null;
169
- for (let r of e.matchAll(ne)) {
170
+ for (let r of e.matchAll(re)) {
170
171
  let e = r[2].trim();
171
172
  r[1] === "jsx" && (t = e), r[1] === "css" && (n = e);
172
173
  }
@@ -175,14 +176,14 @@ function P(e) {
175
176
  css: n
176
177
  };
177
178
  }
178
- var ie = "export default function AiRuntimeField() {\n return null;\n}";
179
- function F(e, t = "ai") {
180
- let n = P(e);
179
+ var ae = "export default function AiRuntimeField() {\n return null;\n}";
180
+ function P(e, t = "ai") {
181
+ let n = N(e);
181
182
  if (!n) throw Error("code 里没有可用的 <jsx> 或 <css>。");
182
- let r = te(n.jsx || ie), i = n.css ?? "";
183
- i && M(i, `${t}.css`), j(r, i || null);
184
- let a = l.transform(r, {
185
- ...re,
183
+ let r = M(n.jsx || ae), i = n.css ?? "";
184
+ i && A(i, `${t}.css`), k(r, i || null);
185
+ let a = s.transform(r, {
186
+ ...ie,
186
187
  filename: `${t}.jsx`
187
188
  });
188
189
  if (!a?.code) throw Error("Babel 没有产出可执行的代码。");
@@ -193,7 +194,7 @@ function F(e, t = "ai") {
193
194
  }
194
195
  //#endregion
195
196
  //#region ../shared/src/ai-runtime/compileCache.ts
196
- var ae = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
197
+ var F = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
197
198
  ok: !1,
198
199
  code: "",
199
200
  css: "",
@@ -204,7 +205,7 @@ var ae = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
204
205
  if (n) return I.delete(e), I.set(e, n), n;
205
206
  let r;
206
207
  try {
207
- let n = F(e, t);
208
+ let n = P(e, t);
208
209
  r = {
209
210
  ok: !0,
210
211
  code: n.code,
@@ -219,7 +220,7 @@ var ae = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
219
220
  error: e
220
221
  };
221
222
  }
222
- if (I.size >= ae) {
223
+ if (I.size >= F) {
223
224
  let e = I.keys().next().value;
224
225
  e !== void 0 && I.delete(e);
225
226
  }
@@ -232,9 +233,9 @@ var ae = 200, I = /* @__PURE__ */ new Map(), oe = Object.freeze({
232
233
  return (n.default === void 0 || n.default === null) && (n.default = t), Object.defineProperty(n, "__esModule", { value: !0 }), n;
233
234
  }, z = t.default || t, ce = {
234
235
  react: R(t, z),
235
- "lucide-react": R(f, f)
236
+ "lucide-react": R(u, u)
236
237
  }, B = {};
237
- for (let e of p) {
238
+ for (let e of d) {
238
239
  let t = ce[e];
239
240
  if (!t) throw Error(`模块 ${e} 在白名单里但没有实现。`);
240
241
  B[e] = t;
@@ -295,6 +296,7 @@ var V = Object.keys(B), H = (e) => {
295
296
  return {
296
297
  value: n.value ?? "",
297
298
  disabled: !!n.disabled,
299
+ readOnly: !!n.readOnly,
298
300
  formData: n.formData || {},
299
301
  tableMode: !!n.tableMode,
300
302
  onChange: t
@@ -305,31 +307,31 @@ var V = Object.keys(B), H = (e) => {
305
307
  Component: null
306
308
  };
307
309
  function ye(t) {
308
- let n = ({ code: n, value: a, disabled: l, formData: u, tableMode: d, runToken: f, height: p, minHeight: m, className: h, style: g, onChange: _, onError: v }) => {
309
- let y = s(null), b = s(null), x = s(null), S = s({});
310
- S.current = {
311
- onChange: _,
312
- onError: v
310
+ let n = ({ code: n, value: a, disabled: s, readOnly: c, formData: l, tableMode: u, runToken: d, height: f, minHeight: p, className: m, style: h, onChange: g, onError: _ }) => {
311
+ let v = o(null), y = o(null), b = o(null), x = o({});
312
+ x.current = {
313
+ onChange: g,
314
+ onError: _
313
315
  };
314
- let C = s(null);
315
- C.current === null && (C.current = le(t));
316
- let w = C.current, T = L(n), E = s({
316
+ let S = o(null);
317
+ S.current === null && (S.current = le(t));
318
+ let C = S.current, w = L(n), T = o({
317
319
  source: void 0,
318
320
  token: void 0,
319
321
  result: ve
320
322
  });
321
- if (E.current.source !== n || E.current.token !== f) {
323
+ if (T.current.source !== n || T.current.token !== d) {
322
324
  let e;
323
- if (!T.ok) e = {
325
+ if (!w.ok) e = {
324
326
  ok: !1,
325
- error: T.error,
327
+ error: w.error,
326
328
  Component: null
327
329
  };
328
330
  else try {
329
331
  e = {
330
332
  ok: !0,
331
333
  error: null,
332
- Component: ue(T.code, w)
334
+ Component: ue(w.code, C)
333
335
  };
334
336
  } catch (t) {
335
337
  e = {
@@ -338,75 +340,77 @@ function ye(t) {
338
340
  Component: null
339
341
  };
340
342
  }
341
- E.current = {
343
+ T.current = {
342
344
  source: n,
343
- token: f,
345
+ token: d,
344
346
  result: e
345
347
  };
346
348
  }
347
- let D = E.current.result, O = r((e) => S.current.onChange?.(e), []), k = r((e) => S.current.onError?.(e), []), A = r(() => {
348
- if (b.current) return b.current;
349
- let e = y.current;
349
+ let E = T.current.result, D = r((e) => x.current.onChange?.(e), []), O = r((e) => x.current.onError?.(e), []), k = r(() => {
350
+ if (y.current) return y.current;
351
+ let e = v.current;
350
352
  if (!e) return null;
351
353
  let t = e.shadowRoot || e.attachShadow({ mode: "open" }), n = document.createElement("style"), r = document.createElement("div");
352
- return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), b.current = {
353
- root: c(r, { onUncaughtError: (e) => S.current.onError?.(G(e, U.RUNTIME)) }),
354
+ return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), y.current = {
355
+ root: te(r, { onUncaughtError: (e) => x.current.onError?.(G(e, U.RUNTIME)) }),
354
356
  styleEl: n,
355
357
  mountEl: r
356
- }, b.current;
357
- }, []), j = o(() => Q({
358
+ }, y.current;
359
+ }, []), A = ee(() => Q({
358
360
  value: a,
359
- disabled: l,
360
- formData: u,
361
- tableMode: d
362
- }, O), [
361
+ disabled: s,
362
+ readOnly: c,
363
+ formData: l,
364
+ tableMode: u
365
+ }, D), [
363
366
  a,
367
+ s,
368
+ c,
364
369
  l,
365
370
  u,
366
- d,
367
- O
371
+ D
368
372
  ]);
369
373
  ge(() => {
370
- let t = A();
374
+ let t = k();
371
375
  if (!t) return;
372
376
  let { root: n, styleEl: r } = t;
373
- if (!D.ok) {
374
- if (x.current !== D && (x.current = D, r.textContent = "", n.render(null), D.error)) {
375
- let e = T.ok ? U.EXECUTE : U.COMPILE;
376
- S.current.onError?.(G(D.error, e));
377
+ if (!E.ok) {
378
+ if (b.current !== E && (b.current = E, r.textContent = "", n.render(null), E.error)) {
379
+ let e = w.ok ? U.EXECUTE : U.COMPILE;
380
+ x.current.onError?.(G(E.error, e));
377
381
  }
378
382
  return;
379
383
  }
380
- x.current = null;
381
- let i = Z(T.css);
384
+ b.current = null;
385
+ let i = Z(w.css);
382
386
  r.textContent !== i && (r.textContent = i);
383
- let a = D.Component;
387
+ let a = E.Component;
384
388
  n.render(/* @__PURE__ */ e(_e, {
385
- onError: k,
386
- children: /* @__PURE__ */ e(a, { ...j })
389
+ onError: O,
390
+ children: /* @__PURE__ */ e(a, { ...A })
387
391
  }));
388
392
  }, [
389
- T,
390
- D,
391
- j,
392
- k,
393
- A
393
+ w,
394
+ E,
395
+ A,
396
+ O,
397
+ k
394
398
  ]), i(() => () => {
395
- let e = b.current;
396
- b.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
397
- }, []), i(() => (pe(w, (e) => S.current.onError?.(e)), () => me(w)), [w]);
398
- let M = {
399
- height: p ?? "auto",
400
- minHeight: m ?? 32,
399
+ let e = y.current;
400
+ y.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
401
+ }, []), i(() => (pe(C, (e) => x.current.onError?.(e)), () => me(C)), [C]);
402
+ let j = {
403
+ height: f ?? "auto",
404
+ minHeight: p ?? 32,
401
405
  overflow: "auto",
402
406
  contain: "layout paint",
403
- ...g
407
+ ...h
404
408
  };
405
409
  return /* @__PURE__ */ e("div", {
406
- ref: y,
410
+ ref: v,
407
411
  "data-ai-runtime-host": "",
408
- className: h,
409
- style: M
412
+ className: m,
413
+ style: j
410
414
  });
411
415
  };
412
416
  return n.displayName = "BsyAiRuntimeContainer", n;
@@ -415,4 +419,4 @@ function ye(t) {
415
419
  //#region src/components/AiRuntimeContainer/index.ts
416
420
  var $ = ye("ui-base");
417
421
  //#endregion
418
- export { $ as AiRuntimeContainer, $ as default, U as ERROR_CODE, V as MODULE_NAMES, j as assertFieldSource, se as clearCompileCache, F as compileAiCode, L as compileCached, Z as scopeCss, P as splitAiCode, Q as toPlainProps, A as validateFieldSource };
422
+ export { $ as AiRuntimeContainer, $ as default, U as ERROR_CODE, V as MODULE_NAMES, k as assertFieldSource, se as clearCompileCache, P as compileAiCode, L as compileCached, Z as scopeCss, N as splitAiCode, Q as toPlainProps, O as validateFieldSource };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -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-DnvlY6qH.js";
6
+ import { t as a } from "../DatePicker/DatePicker-DeTo-7cE.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";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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-C09c_CdX.js";
11
- import "../DatePicker/DatePicker-DnvlY6qH.js";
10
+ import { n as e, r as t, t as n } from "./Calendar-_-doXfR6.js";
11
+ import "../DatePicker/DatePicker-DeTo-7cE.js";
12
12
  import "../DatePicker/pickerLocale-Brf7_Tnd.js";
13
13
  export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "./Card-BT2LRubP.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "./CheckBox-DOdRLFKI.js";
4
4
  import { t as e } from "./CheckBox-CtOSHKM0.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import { n as e, t } from "../vendors/ConfigProvider-BDmu_0qa.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -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-CZwg0W8k.js")), M = (o) => {
51
+ }, j = m(() => import("./DatePickerPanel-Ce9qqIsW.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",
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import { t } from "../vendors/useLocale-3oUjPb-k.js";
@@ -1,9 +1,9 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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-DnvlY6qH.js";
7
+ import { t as e } from "./DatePicker-DeTo-7cE.js";
8
8
  import "./pickerLocale-Brf7_Tnd.js";
9
9
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { t as e } from "./Icon-CcKDWNGy.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.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";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/useLocale-3oUjPb-k.js";
4
4
  import { t as e } from "./Loading-Dm4i0lYd.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import { t as e } from "./Modal-DXH8hz96.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { t as e } from "./NotFoundContent-DJUQ0_2D.js";
3
3
  export { e as NotFoundContent };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { a as e, i as t, n, t as r } from "./OverlayContext-CVSFoyqN.js";
3
3
  export { r as OVERLAY_Z_BASE, n as OVERLAY_Z_STEP, t as OverlayProvider, e as useOverlayZIndex };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { t as e } from "./Radio-C0OAW-K-.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-IMTuAOF5.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import { t as e } from "./Segmented-BMwjhsZw.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../vendors/LocaleContext-CsTLO_Y2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
4
4
  import { n as e, t } from "./Tooltip-N06Os8rG.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Blv9zlaY.js";
1
+ import "../vendors/version-y1_5EbED.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "../vendors/Tree-f0FxoFIC.js";
4
4
  import "../CheckBox/CheckBox-DOdRLFKI.js";
@@ -1,5 +1,5 @@
1
1
  declare const AiRuntimeContainer: {
2
- ({ code, value, disabled, formData, tableMode, runToken, height, minHeight, className, style, onChange, onError, }: import('../../../../shared/src/ai-runtime/index.ts').AiRuntimeContainerProps): import("react").JSX.Element;
2
+ ({ code, value, disabled, readOnly, formData, tableMode, runToken, height, minHeight, className, style, onChange, onError, }: import('../../../../shared/src/ai-runtime/index.ts').AiRuntimeContainerProps): import("react").JSX.Element;
3
3
  displayName: string;
4
4
  };
5
5
  export { AiRuntimeContainer };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./vendors/version-Blv9zlaY.js";
1
+ import "./vendors/version-y1_5EbED.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-C09c_CdX.js";
33
- import { t as M } from "./DatePicker/DatePicker-DnvlY6qH.js";
32
+ import { t as j } from "./Calendar/Calendar-_-doXfR6.js";
33
+ import { t as M } from "./DatePicker/DatePicker-DeTo-7cE.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";
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  if (typeof window < "u") {
3
3
  let e = window.__BSY_UI__ ??= {};
4
- e["@baishuyun/ui-base"] = "6.30.1";
4
+ e["@baishuyun/ui-base"] = "6.31.0";
5
5
  }
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-base",
3
- "version": "6.30.1",
3
+ "version": "6.31.0",
4
4
  "type": "module",
5
5
  "description": "百数云低代码平台通用组件库",
6
6
  "author": "bsy-fe team",