@baishuyun/ui-base 6.38.3 → 6.38.5

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,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
3
  import * as t from "react";
4
4
  import { Component as n, useCallback as r, useEffect as i, useLayoutEffect as a, useMemo as o, useRef as s } from "react";
@@ -12,18 +12,7 @@ var p = [
12
12
  "react",
13
13
  "react-dom",
14
14
  "lucide-react"
15
- ], m = new Set(p), te = p.join("、"), h = [
16
- "value",
17
- "onChange",
18
- "disabled",
19
- "readOnly",
20
- "formData",
21
- "env",
22
- "widget",
23
- "onClick",
24
- "onRequestOptions",
25
- "onAddLinkData"
26
- ], g = new Set([
15
+ ], m = new Set(p), h = p.join("、"), g = new Set([
27
16
  "script",
28
17
  "iframe",
29
18
  "object",
@@ -61,31 +50,18 @@ function x(e) {
61
50
  return null;
62
51
  }
63
52
  var S = (e) => e.computed ? null : e.key.type === "Identifier" ? e.key.name : e.key.type === "StringLiteral" ? e.key.value : null;
64
- function C(e, t, n) {
65
- for (let r of e.properties) {
66
- if (r.type === "RestElement") {
67
- n.push(`组件不能用 ...rest 收集 props,请只解构 ${h.join("、")}。`);
68
- continue;
69
- }
70
- let e = S(r);
71
- e === null ? n.push("组件的 props 不能使用计算属性名。") : h.includes(e) || t.add(e);
72
- }
53
+ function C(e, t) {
54
+ for (let n of e.properties) n.type !== "RestElement" && S(n) === null && t.push("组件的 props 不能使用计算属性名。");
73
55
  }
74
56
  function w(e) {
75
- let t = [], n = /* @__PURE__ */ new Set(), [r] = e.params;
76
- 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) => {
77
- if (e.type === "MemberExpression" && e.object?.name === r.name) {
78
- let r = e.computed ? null : e.property.name;
79
- return r === null ? t.push("组件不能用动态键读取 props。") : h.includes(r) || n.add(r), !1;
80
- }
81
- return e.type === "VariableDeclarator" && e.init?.name === r.name && e.id.type === "ObjectPattern" ? (C(e.id, n, t), !1) : !0;
82
- }), n.size && t.unshift(`组件签名只能接收 ${h.join("、")},发现多余的 props:${[...n].join("、")}。平台不会传入它们,请删除。`), t;
57
+ let t = [], [n] = e.params;
58
+ return e.params.length > 1 && t.push("组件只接收一个 props 参数,不能有第二个参数(如 ref)。"), n?.type === "AssignmentPattern" && (n = n.left), n?.type === "ObjectPattern" ? C(n, t) : n?.type === "Identifier" && b(e.body, (e) => e.type === "MemberExpression" && e.object?.name === n.name ? ((e.computed || !e.property?.name) && t.push("组件不能用动态键读取 props。"), !1) : e.type === "VariableDeclarator" && e.init?.name === n.name && e.id.type === "ObjectPattern" ? (C(e.id, t), !1) : !0), t;
83
59
  }
84
60
  function T(e) {
85
61
  let t = /* @__PURE__ */ new Set();
86
62
  return b(e, (e) => {
87
63
  switch (e.type) {
88
- case "ImportDeclaration": return m.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${te})`), !1;
64
+ case "ImportDeclaration": return m.has(e.source.value) || t.add(`import "${e.source.value}"(只能 import ${h})`), !1;
89
65
  case "Import":
90
66
  case "ImportExpression": return t.add("动态 import()"), !0;
91
67
  case "JSXOpeningElement": {
@@ -168,11 +144,11 @@ function F(e) {
168
144
  css: n
169
145
  };
170
146
  }
171
- var ne = "export default function AiRuntimeField() {\n return null;\n}";
172
- function I(e, t = "ai") {
147
+ var I = "export default function AiRuntimeField() {\n return null;\n}";
148
+ function L(e, t = "ai") {
173
149
  let n = F(e);
174
150
  if (!n) throw Error("code 里没有可用的 <jsx> 或 <css>。");
175
- let r = M(n.jsx || ne), i = n.css ?? "";
151
+ let r = M(n.jsx || I), i = n.css ?? "";
176
152
  i && k(i, `${t}.css`), O(r, i || null);
177
153
  let a = l.transform(r, {
178
154
  ...P,
@@ -186,18 +162,18 @@ function I(e, t = "ai") {
186
162
  }
187
163
  //#endregion
188
164
  //#region ../shared/src/ai-runtime/compileCache.ts
189
- var re = 200, L = /* @__PURE__ */ new Map(), ie = Object.freeze({
165
+ var te = 200, R = /* @__PURE__ */ new Map(), ne = Object.freeze({
190
166
  ok: !1,
191
167
  code: "",
192
168
  css: "",
193
169
  error: null
194
- }), R = (e, t) => {
195
- if (typeof e != "string" || !e.trim()) return ie;
196
- let n = e, r = L.get(n);
197
- if (r) return L.delete(n), L.set(n, r), r;
170
+ }), z = (e, t) => {
171
+ if (typeof e != "string" || !e.trim()) return ne;
172
+ let n = e, r = R.get(n);
173
+ if (r) return R.delete(n), R.set(n, r), r;
198
174
  let i;
199
175
  try {
200
- let n = I(e, t);
176
+ let n = L(e, t);
201
177
  i = {
202
178
  ok: !0,
203
179
  code: n.code,
@@ -212,86 +188,86 @@ var re = 200, L = /* @__PURE__ */ new Map(), ie = Object.freeze({
212
188
  error: e
213
189
  };
214
190
  }
215
- if (L.size >= re) {
216
- let e = L.keys().next().value;
217
- e !== void 0 && L.delete(e);
191
+ if (R.size >= te) {
192
+ let e = R.keys().next().value;
193
+ e !== void 0 && R.delete(e);
218
194
  }
219
- return L.set(n, i), i;
220
- }, ae = () => {
221
- L.clear();
222
- }, z = (e, t) => {
195
+ return R.set(n, i), i;
196
+ }, re = () => {
197
+ R.clear();
198
+ }, B = (e, t) => {
223
199
  let n = {};
224
200
  for (let t of Object.keys(e)) n[t] = e[t];
225
201
  return (n.default === void 0 || n.default === null) && (n.default = t), Object.defineProperty(n, "__esModule", { value: !0 }), n;
226
- }, B = t.default || t, oe = c.default || c, se = {
227
- react: z(t, B),
228
- "react-dom": z(c, oe),
229
- "lucide-react": z(f, f)
230
- }, V = {};
202
+ }, V = t.default || t, ie = c.default || c, ae = {
203
+ react: B(t, V),
204
+ "react-dom": B(c, ie),
205
+ "lucide-react": B(f, f)
206
+ }, H = {};
231
207
  for (let e of p) {
232
- let t = se[e];
208
+ let t = ae[e];
233
209
  if (!t) throw Error(`模块 ${e} 在白名单里但没有实现。`);
234
- V[e] = t;
210
+ H[e] = t;
235
211
  }
236
- var H = Object.keys(V), ce = (e) => {
237
- let t = V[e];
212
+ var U = Object.keys(H), oe = (e) => {
213
+ let t = H[e];
238
214
  if (t) return t;
239
- throw Error(`Unknown module: ${e}(组件只能 require ${H.join("、")})`);
240
- }, U = {
215
+ throw Error(`Unknown module: ${e}(组件只能 require ${U.join("、")})`);
216
+ }, W = {
241
217
  COMPILE: 4001,
242
218
  EXECUTE: 4002,
243
219
  RENDER: 5001,
244
220
  RUNTIME: 5002
245
- }, le = new Set(Object.values(U)), W = (e, t) => {
221
+ }, se = new Set(Object.values(W)), G = (e, t) => {
246
222
  let n = e instanceof Error ? e : Error(String(e)), r = n.code;
247
- return (typeof r != "number" || !le.has(r)) && (n.code = t), n;
248
- }, G = 0, ue = (e) => (G += 1, `ai-runtime-${e}-${G}.js`), de = (e, t) => {
223
+ return (typeof r != "number" || !se.has(r)) && (n.code = t), n;
224
+ }, K = 0, ce = (e) => (K += 1, `ai-runtime-${e}-${K}.js`), le = (e, t) => {
249
225
  if (!e) throw Error("没有可执行的代码。");
250
226
  let n = {}, r = `${e}\n//# sourceURL=${t}`;
251
- if (Function("require", "exports", "React", r)(ce, n, B), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
227
+ if (Function("require", "exports", "React", r)(oe, n, V), typeof n.default != "function") throw Error("Missing default export:组件必须默认导出一个函数。");
252
228
  return n.default;
253
- }, K = /* @__PURE__ */ new Map(), q = !1, J = /* @__PURE__ */ new WeakSet(), fe = (e) => {
254
- e && typeof e == "object" && J.add(e);
255
- }, Y = (e) => {
256
- if (e && typeof e == "object" && J.has(e)) return;
229
+ }, q = /* @__PURE__ */ new Map(), J = !1, Y = /* @__PURE__ */ new WeakSet(), ue = (e) => {
230
+ e && typeof e == "object" && Y.add(e);
231
+ }, X = (e) => {
232
+ if (e && typeof e == "object" && Y.has(e)) return;
257
233
  let t = e instanceof Error ? e.stack : void 0;
258
234
  if (typeof t == "string") {
259
- for (let [n, r] of K) if (t.includes(n)) {
260
- r(W(e, U.RUNTIME));
235
+ for (let [n, r] of q) if (t.includes(n)) {
236
+ r(G(e, W.RUNTIME));
261
237
  return;
262
238
  }
263
239
  }
264
- }, pe = () => {
265
- q || typeof window > "u" || (q = !0, window.addEventListener("error", (e) => {
240
+ }, de = () => {
241
+ J || typeof window > "u" || (J = !0, window.addEventListener("error", (e) => {
266
242
  let t = e.error || Error(e.message);
267
- queueMicrotask(() => Y(t));
243
+ queueMicrotask(() => X(t));
268
244
  }), window.addEventListener("unhandledrejection", (e) => {
269
245
  let t = e.reason;
270
- queueMicrotask(() => Y(t));
246
+ queueMicrotask(() => X(t));
271
247
  }));
272
- }, me = (e, t) => {
273
- pe(), K.set(e, t);
274
- }, he = (e) => {
275
- K.delete(e);
276
- }, ge = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, X = (e) => typeof e != "string" || !e ? "" : e.replace(ge, "$1:host"), _e = typeof window > "u" ? i : a, ve = class extends n {
248
+ }, fe = (e, t) => {
249
+ de(), q.set(e, t);
250
+ }, pe = (e) => {
251
+ q.delete(e);
252
+ }, me = /(^|[\s,>+~(])(?::root\b|html\b|body\b)/gi, Z = (e) => typeof e != "string" || !e ? "" : e.replace(me, "$1:host"), he = class extends n {
277
253
  state = { failed: !1 };
278
254
  static getDerivedStateFromError() {
279
255
  return { failed: !0 };
280
256
  }
281
257
  componentDidCatch(e) {
282
- fe(e), this.props.onError(W(e, U.RENDER));
258
+ ue(e), this.props.onError(G(e, W.RENDER));
283
259
  }
284
260
  render() {
285
261
  return this.state.failed ? null : this.props.children;
286
262
  }
287
- }, ye = new Set([
263
+ }, ge = new Set([
288
264
  "form",
289
265
  "table",
290
266
  "card"
291
- ]), be = (e) => ({
292
- view: ye.has(e?.view) ? e?.view : "form",
267
+ ]), _e = (e) => ({
268
+ view: ge.has(e?.view) ? e?.view : "form",
293
269
  platform: e?.platform === "mobile" ? "mobile" : "pc"
294
- }), Z = new Set([
270
+ }), Q = new Set([
295
271
  "code",
296
272
  "runToken",
297
273
  "height",
@@ -306,70 +282,70 @@ var H = Object.keys(V), ce = (e) => {
306
282
  "env",
307
283
  "onChange",
308
284
  "widget"
309
- ]), Q = (e, t) => {
285
+ ]), $ = (e, t) => {
310
286
  let n = e ?? {}, r = {
311
287
  value: n.value ?? "",
312
288
  disabled: !!n.disabled,
313
289
  readOnly: !!n.readOnly,
314
290
  formData: n.formData || {},
315
- env: be(n.env),
291
+ env: _e(n.env),
316
292
  onChange: t
317
293
  };
318
294
  for (let e of Object.keys(n)) {
319
295
  let t = n[e];
320
- t === void 0 || Z.has(e) || (r[e] = t);
296
+ t === void 0 || Q.has(e) || (r[e] = t);
321
297
  }
322
298
  return n.widget && (r.widget = n.widget), r;
323
- }, xe = (e) => {
299
+ }, ve = (e) => {
324
300
  let t = Object.keys(e).sort(), n = "";
325
301
  for (let r of t) {
326
302
  let t = e[r];
327
303
  typeof t == "function" ? n += `${r}:fn\0` : t !== void 0 && (typeof t != "object" || !t) && (n += `${r}:${String(t)}\0`);
328
304
  }
329
305
  return n;
330
- }, Se = (e, t) => {
306
+ }, ye = (e, t) => {
331
307
  let n = {};
332
308
  for (let r of Object.keys(e)) {
333
309
  let i = e[r];
334
- i === void 0 || Z.has(r) || (typeof i == "function" ? n[r] = (...e) => {
310
+ i === void 0 || Q.has(r) || (typeof i == "function" ? n[r] = (...e) => {
335
311
  let n = t()[r];
336
312
  return typeof n == "function" ? n(...e) : void 0;
337
313
  } : n[r] = i);
338
314
  }
339
315
  return n;
340
- }, Ce = {
316
+ }, be = {
341
317
  ok: !1,
342
318
  error: null,
343
319
  Component: null
344
320
  };
345
- function we(t) {
346
- let n = ({ code: n, value: a, disabled: c, readOnly: l, formData: u, env: d, widget: f, runToken: p, height: m, minHeight: te, className: h, style: g, onChange: _, onError: v, ...y }) => {
347
- let b = s(null), x = s(null), S = s(null), C = s({});
348
- C.current = {
349
- onChange: _,
350
- onError: v
321
+ function xe(t) {
322
+ let n = ({ code: n, value: c, disabled: l, readOnly: u, formData: d, env: f, widget: p, runToken: m, height: h, minHeight: g, className: _, style: v, onChange: y, onError: b, ...x }) => {
323
+ let S = s(null), C = s(null), w = s(null), T = s({});
324
+ T.current = {
325
+ onChange: y,
326
+ onError: b
351
327
  };
352
- let w = s(y);
353
- w.current = y;
354
- let T = s(null);
355
- T.current === null && (T.current = ue(t));
356
- let E = T.current, D = R(n), O = s({
328
+ let E = s(x);
329
+ E.current = x;
330
+ let D = s(null);
331
+ D.current === null && (D.current = ce(t));
332
+ let O = D.current, k = z(n), A = s({
357
333
  source: void 0,
358
334
  token: void 0,
359
- result: Ce
335
+ result: be
360
336
  });
361
- if (O.current.source !== n || O.current.token !== p) {
337
+ if (A.current.source !== n || A.current.token !== m) {
362
338
  let e;
363
- if (!D.ok) e = {
339
+ if (!k.ok) e = {
364
340
  ok: !1,
365
- error: D.error,
341
+ error: k.error,
366
342
  Component: null
367
343
  };
368
344
  else try {
369
345
  e = {
370
346
  ok: !0,
371
347
  error: null,
372
- Component: de(D.code, E)
348
+ Component: le(k.code, O)
373
349
  };
374
350
  } catch (t) {
375
351
  e = {
@@ -378,85 +354,85 @@ function we(t) {
378
354
  Component: null
379
355
  };
380
356
  }
381
- O.current = {
357
+ A.current = {
382
358
  source: n,
383
- token: p,
359
+ token: m,
384
360
  result: e
385
361
  };
386
362
  }
387
- let k = O.current.result, A = r((e) => C.current.onChange?.(e), []), j = o(() => Se(w.current, () => w.current), [xe(y)]), M = r((e) => C.current.onError?.(e), []), N = r(() => {
388
- if (x.current) return x.current;
389
- let e = b.current;
363
+ let j = A.current.result, M = r((e) => T.current.onChange?.(e), []), N = o(() => ye(E.current, () => E.current), [ve(x)]), P = r((e) => T.current.onError?.(e), []), F = r(() => {
364
+ if (C.current) return C.current;
365
+ let e = S.current;
390
366
  if (!e) return null;
391
367
  let t = e.shadowRoot || e.attachShadow({ mode: "open" }), n = document.createElement("style"), r = document.createElement("div");
392
- return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), x.current = {
393
- root: ee(r, { onUncaughtError: (e) => C.current.onError?.(W(e, U.RUNTIME)) }),
368
+ return r.setAttribute("data-ai-runtime-mount", ""), r.style.height = "100%", t.append(n, r), C.current = {
369
+ root: ee(r, { onUncaughtError: (e) => T.current.onError?.(G(e, W.RUNTIME)) }),
394
370
  styleEl: n,
395
371
  mountEl: r
396
- }, x.current;
397
- }, []), P = o(() => Q({
398
- value: a,
399
- disabled: c,
400
- readOnly: l,
401
- formData: u,
402
- env: d,
403
- widget: f,
404
- ...j
405
- }, A), [
406
- a,
372
+ }, C.current;
373
+ }, []), I = o(() => $({
374
+ value: c,
375
+ disabled: l,
376
+ readOnly: u,
377
+ formData: d,
378
+ env: f,
379
+ widget: p,
380
+ ...N
381
+ }, M), [
407
382
  c,
408
383
  l,
409
384
  u,
410
385
  d,
411
386
  f,
412
- A,
413
- j
387
+ p,
388
+ M,
389
+ N
414
390
  ]);
415
- _e(() => {
416
- let t = N();
391
+ a(() => {
392
+ let t = F();
417
393
  if (!t) return;
418
394
  let { root: n, styleEl: r } = t;
419
- if (!k.ok) {
420
- if (S.current !== k && (S.current = k, r.textContent = "", n.render(null), k.error)) {
421
- let e = D.ok ? U.EXECUTE : U.COMPILE;
422
- C.current.onError?.(W(k.error, e));
395
+ if (!j.ok) {
396
+ if (w.current !== j && (w.current = j, r.textContent = "", n.render(null), j.error)) {
397
+ let e = k.ok ? W.EXECUTE : W.COMPILE;
398
+ T.current.onError?.(G(j.error, e));
423
399
  }
424
400
  return;
425
401
  }
426
- S.current = null;
427
- let i = X(D.css);
402
+ w.current = null;
403
+ let i = Z(k.css);
428
404
  r.textContent !== i && (r.textContent = i);
429
- let a = k.Component;
430
- n.render(/* @__PURE__ */ e(ve, {
431
- onError: M,
432
- children: /* @__PURE__ */ e(a, { ...P })
405
+ let a = j.Component;
406
+ n.render(/* @__PURE__ */ e(he, {
407
+ onError: P,
408
+ children: /* @__PURE__ */ e(a, { ...I })
433
409
  }));
434
410
  }, [
435
- D,
436
411
  k,
412
+ j,
413
+ I,
437
414
  P,
438
- M,
439
- N
415
+ F
440
416
  ]), i(() => () => {
441
- let e = x.current;
442
- x.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
443
- }, []), i(() => (me(E, (e) => C.current.onError?.(e)), () => he(E)), [E]);
444
- let F = {
445
- height: m ?? "auto",
446
- minHeight: te ?? 32,
447
- ...g
417
+ let e = C.current;
418
+ C.current = null, e && (e.styleEl.remove(), e.mountEl.remove(), queueMicrotask(() => e.root.unmount()));
419
+ }, []), i(() => (fe(O, (e) => T.current.onError?.(e)), () => pe(O)), [O]);
420
+ let L = {
421
+ height: h ?? "auto",
422
+ minHeight: g ?? 32,
423
+ ...v
448
424
  };
449
425
  return /* @__PURE__ */ e("div", {
450
- ref: b,
426
+ ref: S,
451
427
  "data-ai-runtime-host": "",
452
- className: h,
453
- style: F
428
+ className: _,
429
+ style: L
454
430
  });
455
431
  };
456
432
  return n.displayName = "BsyAiRuntimeContainer", n;
457
433
  }
458
434
  //#endregion
459
435
  //#region src/components/AiRuntimeContainer/index.ts
460
- var $ = we("ui-base");
436
+ var Se = xe("ui-base");
461
437
  //#endregion
462
- export { $ as AiRuntimeContainer, $ as default, U as ERROR_CODE, H as MODULE_NAMES, O as assertFieldSource, ae as clearCompileCache, I as compileAiCode, R as compileCached, X as scopeCss, F as splitAiCode, Q as toPlainProps, D as validateFieldSource };
438
+ export { Se as AiRuntimeContainer, Se as default, W as ERROR_CODE, U as MODULE_NAMES, O as assertFieldSource, re as clearCompileCache, L as compileAiCode, z as compileCached, Z as scopeCss, F as splitAiCode, $ as toPlainProps, D as validateFieldSource };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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/cssVars-BbL_cmFM.js";
3
3
  import { t as n } from "../vendors/useLocale-DvhRopWF.js";
4
4
  import { t as r } from "../Segmented/Segmented-AHLqTK7U.js";
5
5
  import { t as i } from "../Tooltip/Tooltip-N-w19uRu.js";
6
- import { t as a } from "../DatePicker/DatePicker-BpPRIkJP.js";
6
+ import { t as a } from "../DatePicker/DatePicker-COBudwgx.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-DvhRopWF.js";
7
7
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
8
8
  import "../Segmented/Segmented-AHLqTK7U.js";
9
9
  import "../Tooltip/Tooltip-N-w19uRu.js";
10
- import { n as e, r as t, t as n } from "./Calendar-DnWRzCzV.js";
11
- import "../DatePicker/DatePicker-BpPRIkJP.js";
10
+ import { n as e, r as t, t as n } from "./Calendar-DdSyxEVw.js";
11
+ import "../DatePicker/DatePicker-COBudwgx.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "./Card-Cdb5cVMG.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "./CheckBox-Ck2mN3aJ.js";
4
4
  import { t as e } from "./CheckBox-D5gtYO8N.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CB11PpYm.js")), M = (n) => {
51
+ }, j = m(() => import("./DatePickerPanel-DC5ivUUr.js")), M = (n) => {
52
52
  let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = n, { locale: N } = i(), P = e(M), [F, I] = v(n, {
53
53
  defaultValuePropName: "defaultValue",
54
54
  valuePropName: "value",
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-DvhRopWF.js";
@@ -1,9 +1,9 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import "../vendors/useFloatingOverlay-DlLAeqUv.js";
5
5
  import "../vendors/useLocale-DvhRopWF.js";
6
6
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
7
- import { t as e } from "./DatePicker-BpPRIkJP.js";
7
+ import { t as e } from "./DatePicker-COBudwgx.js";
8
8
  import "./pickerLocale-Brf7_Tnd.js";
9
9
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../vendors/LocaleContext-CsTLO_Y2.js";
3
3
  import "../vendors/useLocale-DvhRopWF.js";
4
4
  import { t as e } from "./Loading-CLUJfdln.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
4
  import { t as e } from "./Modal-BeDIo3CM.js";
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import { t as e } from "./Radio-NvTetWb5.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "./style-D26azwz6.js";
3
3
  import { t as e } from "./ScrollBar-DJ6DaHDb.js";
4
4
  export { e as ScrollBar, e as default };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import { t as e } from "./Segmented-AHLqTK7U.js";
3
3
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.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-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../Overlay/OverlayContext-CVSFoyqN.js";
3
3
  import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
4
4
  import { n as e, t } from "./Tooltip-N-w19uRu.js";
@@ -1,4 +1,4 @@
1
- import "../vendors/version-CUrzZUol.js";
1
+ import "../vendors/version-BFqRVq1S.js";
2
2
  import "../Icon/Icon-CcKDWNGy.js";
3
3
  import { t as e } from "../vendors/Tree-D5ZZzoPS.js";
4
4
  import "../CheckBox/CheckBox-Ck2mN3aJ.js";
@@ -1,8 +1,7 @@
1
1
  /**
2
- * 在执行用户组件之前做静态检查:签名只含约定的 props、只能引入宿主注册过的模块、
3
- * 不引入危险标签和原始 HTML。
2
+ * 在执行用户组件之前做静态检查:只能引入宿主注册过的模块、不引入危险标签和原始 HTML。
3
+ * props 名字和 ...rest 不再限制。仍拒绝计算属性名、动态键和第二个参数。
4
4
  *
5
- * 签名只能使用 FIELD_PROPS。宿主另外传入的名字,组件没写进签名就用不上。
6
5
  * 组件在宿主 realm 里执行,能访问页面上的全局对象。
7
6
  * 语法错误不在此处报告,交给编译步骤输出 codeframe。
8
7
  *
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./vendors/version-CUrzZUol.js";
1
+ import "./vendors/version-BFqRVq1S.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-D97QGQpV.js";
29
29
  import { t as k } from "./Loading/Loading-CLUJfdln.js";
30
30
  import "./NotFoundContent/index.js";
31
31
  import { t as A } from "./InputTag/InputTag-5NTrA5bA.js";
32
- import { t as j } from "./Calendar/Calendar-DnWRzCzV.js";
33
- import { t as M } from "./DatePicker/DatePicker-BpPRIkJP.js";
32
+ import { t as j } from "./Calendar/Calendar-DdSyxEVw.js";
33
+ import { t as M } from "./DatePicker/DatePicker-COBudwgx.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-B7fDob3i.js";
36
36
  import { t as J } from "./FieldCard/FieldCard-CTrNTXFc.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.38.3";
4
+ e["@baishuyun/ui-base"] = "6.38.5";
5
5
  }
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-base",
3
- "version": "6.38.3",
3
+ "version": "6.38.5",
4
4
  "type": "module",
5
5
  "description": "百数云低代码平台通用组件库",
6
6
  "author": "bsy-fe team",