@baishuyun/ai-design 2.1.8 → 2.1.9
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/CHANGELOG.md +6 -0
- package/dist/ai-design.js +31 -15
- package/dist/ai-design.js.map +1 -1
- package/dist/ai-design.umd.cjs +1 -1
- package/dist/ai-design.umd.cjs.map +1 -1
- package/dist/src/components/agent-helper/field-select/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/agent-helper/field-select/index.tsx +80 -39
package/CHANGELOG.md
CHANGED
package/dist/ai-design.js
CHANGED
|
@@ -24316,7 +24316,16 @@ const dN = ({ expanded: e }) => /* @__PURE__ */ a.jsx(
|
|
|
24316
24316
|
fill: "none",
|
|
24317
24317
|
className: R("shrink-0", ae),
|
|
24318
24318
|
style: { transform: e ? "rotate(0deg)" : "rotate(-90deg)" },
|
|
24319
|
-
children: /* @__PURE__ */ a.jsx(
|
|
24319
|
+
children: /* @__PURE__ */ a.jsx(
|
|
24320
|
+
"path",
|
|
24321
|
+
{
|
|
24322
|
+
d: "M5 7L8 10L11 7",
|
|
24323
|
+
stroke: "#666666",
|
|
24324
|
+
strokeWidth: "1.2",
|
|
24325
|
+
strokeLinecap: "round",
|
|
24326
|
+
strokeLinejoin: "round"
|
|
24327
|
+
}
|
|
24328
|
+
)
|
|
24320
24329
|
}
|
|
24321
24330
|
), uN = ({ open: e }) => /* @__PURE__ */ a.jsx(
|
|
24322
24331
|
"svg",
|
|
@@ -24327,7 +24336,16 @@ const dN = ({ expanded: e }) => /* @__PURE__ */ a.jsx(
|
|
|
24327
24336
|
fill: "none",
|
|
24328
24337
|
className: R("shrink-0", ae),
|
|
24329
24338
|
style: { transform: e ? "rotate(180deg)" : "rotate(0deg)" },
|
|
24330
|
-
children: /* @__PURE__ */ a.jsx(
|
|
24339
|
+
children: /* @__PURE__ */ a.jsx(
|
|
24340
|
+
"path",
|
|
24341
|
+
{
|
|
24342
|
+
d: "M4 6L8 10L12 6",
|
|
24343
|
+
stroke: "#666666",
|
|
24344
|
+
strokeWidth: "1.2",
|
|
24345
|
+
strokeLinecap: "round",
|
|
24346
|
+
strokeLinejoin: "round"
|
|
24347
|
+
}
|
|
24348
|
+
)
|
|
24331
24349
|
}
|
|
24332
24350
|
), Oo = {}, fN = [
|
|
24333
24351
|
"text",
|
|
@@ -24351,7 +24369,14 @@ const dN = ({ expanded: e }) => /* @__PURE__ */ a.jsx(
|
|
|
24351
24369
|
"flowstate",
|
|
24352
24370
|
"subform",
|
|
24353
24371
|
"unknown"
|
|
24354
|
-
], pN = ["number"], hN = ["datetime"], mN = [
|
|
24372
|
+
], pN = ["number"], hN = ["datetime"], mN = [
|
|
24373
|
+
"upload",
|
|
24374
|
+
"image",
|
|
24375
|
+
"linkdata",
|
|
24376
|
+
"linkquery",
|
|
24377
|
+
"dataload",
|
|
24378
|
+
"signature"
|
|
24379
|
+
];
|
|
24355
24380
|
for (const e of fN)
|
|
24356
24381
|
Oo[e] = { label: "文本", bgColor: "#F0F6FF", textColor: "#0265FF" };
|
|
24357
24382
|
for (const e of pN)
|
|
@@ -24375,7 +24400,6 @@ const xN = [
|
|
|
24375
24400
|
"dataload",
|
|
24376
24401
|
"linkquery",
|
|
24377
24402
|
"linkdata",
|
|
24378
|
-
"button",
|
|
24379
24403
|
"separator",
|
|
24380
24404
|
"subform"
|
|
24381
24405
|
];
|
|
@@ -24394,9 +24418,7 @@ function CN(e, t) {
|
|
|
24394
24418
|
const f = e[u];
|
|
24395
24419
|
if (xN.includes((o = f.widget) == null ? void 0 : o.type))
|
|
24396
24420
|
continue;
|
|
24397
|
-
const p = f.label, h = (i = f.widget) == null ? void 0 : i.widgetName, m = (s = f.widget) == null ? void 0 : s.items, g = m == null ? void 0 : m.filter(
|
|
24398
|
-
(k) => "widget" in k
|
|
24399
|
-
), x = g && g.length > 0, b = h || Xc(f, u), C = [];
|
|
24421
|
+
const p = f.label, h = (i = f.widget) == null ? void 0 : i.widgetName, m = (s = f.widget) == null ? void 0 : s.items, g = m == null ? void 0 : m.filter((k) => "widget" in k), x = g && g.length > 0, b = h || Xc(f, u), C = [];
|
|
24400
24422
|
if (x)
|
|
24401
24423
|
for (let k = 0; k < g.length; k++) {
|
|
24402
24424
|
const y = g[k], S = ((l = y.widget) == null ? void 0 : l.widgetName) || `${b}-item-${k}`, M = `${h}.${S}`;
|
|
@@ -24443,10 +24465,7 @@ const Qc = ({
|
|
|
24443
24465
|
for (let C = 0; C < e.length; C++)
|
|
24444
24466
|
(b = (x = e[C].widget) == null ? void 0 : x.items) != null && b.length && g.add(Xc(e[C], C));
|
|
24445
24467
|
return g;
|
|
24446
|
-
}), f = ze(
|
|
24447
|
-
() => CN(e, l),
|
|
24448
|
-
[e, l]
|
|
24449
|
-
), p = $((g) => {
|
|
24468
|
+
}), f = ze(() => CN(e, l), [e, l]), p = $((g) => {
|
|
24450
24469
|
u((x) => {
|
|
24451
24470
|
const b = new Set(x);
|
|
24452
24471
|
return b.has(g) ? b.delete(g) : b.add(g), b;
|
|
@@ -24554,10 +24573,7 @@ const Z7 = ({
|
|
|
24554
24573
|
showTypeBadge: l = !0,
|
|
24555
24574
|
className: c
|
|
24556
24575
|
}) => {
|
|
24557
|
-
const [d, u] = Q(!1), [f, p] = Q(n), [h, m] = Q(null), [g, x] = Q(0), b = Re(null), C = t !== void 0 ? t : f, v = ze(
|
|
24558
|
-
() => yN(e, C),
|
|
24559
|
-
[e, C]
|
|
24560
|
-
), w = $(
|
|
24576
|
+
const [d, u] = Q(!1), [f, p] = Q(n), [h, m] = Q(null), [g, x] = Q(0), b = Re(null), C = t !== void 0 ? t : f, v = ze(() => yN(e, C), [e, C]), w = $(
|
|
24561
24577
|
(S, M) => {
|
|
24562
24578
|
t === void 0 && p(M), r == null || r(S, M), u(!1);
|
|
24563
24579
|
},
|