@baishuyun/ai-design 2.0.1 → 2.0.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/.turbo/turbo-build.log +0 -0
- package/CHANGELOG.md +9 -0
- package/dist/ai-design.js +36 -31
- 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/bs-entry-select/build-tree.d.ts.map +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
package/dist/ai-design.js
CHANGED
|
@@ -16182,44 +16182,49 @@ function b0(e) {
|
|
|
16182
16182
|
return `node-icon icon-bsy-form${n} icon${n}-bsy-form-${e.icon}`;
|
|
16183
16183
|
}
|
|
16184
16184
|
function ol(e, t) {
|
|
16185
|
-
const { entryIdAliasMap: n, entryMap: r } = e, o =
|
|
16186
|
-
|
|
16187
|
-
|
|
16188
|
-
for (const
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16192
|
-
const a =
|
|
16193
|
-
|
|
16194
|
-
const h =
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
-
|
|
16198
|
-
|
|
16199
|
-
|
|
16200
|
-
|
|
16185
|
+
const { entryIdAliasMap: n, entryMap: r } = e, o = {
|
|
16186
|
+
// ...originMap,
|
|
16187
|
+
};
|
|
16188
|
+
for (const [p, h] of Object.entries(n != null ? n : {}))
|
|
16189
|
+
o[h.formId] = h;
|
|
16190
|
+
const s = Object.keys(o);
|
|
16191
|
+
if (s.length === 0) return [];
|
|
16192
|
+
const a = /* @__PURE__ */ new Map();
|
|
16193
|
+
for (const p of s) {
|
|
16194
|
+
const h = o[p], x = h.parent || "0";
|
|
16195
|
+
a.has(x) || a.set(x, []), a.get(x).push(h.formId);
|
|
16196
|
+
}
|
|
16197
|
+
const l = new Set(a.keys()), c = Array.from(l).filter((p) => p === "0" || !o[p]), u = t.toLowerCase().trim();
|
|
16198
|
+
function d(p, h) {
|
|
16199
|
+
const x = a.get(p) || [], m = [];
|
|
16200
|
+
for (const g of x) {
|
|
16201
|
+
const C = o[g], y = r[g] || null, b = (y == null ? void 0 : y.name) || g, w = (y == null ? void 0 : y.icon) || 0, j = C.type === "group", k = d(g, h + 1), S = !u || (b == null ? void 0 : b.toLowerCase().includes(u));
|
|
16202
|
+
j ? (S || k.length > 0) && m.push({
|
|
16203
|
+
id: g,
|
|
16204
|
+
name: b,
|
|
16205
|
+
icon: w,
|
|
16201
16206
|
type: "group",
|
|
16202
|
-
children:
|
|
16203
|
-
depth:
|
|
16207
|
+
children: k,
|
|
16208
|
+
depth: h,
|
|
16204
16209
|
isSelectable: !1,
|
|
16205
|
-
entry:
|
|
16206
|
-
}) :
|
|
16207
|
-
id:
|
|
16208
|
-
name:
|
|
16209
|
-
icon:
|
|
16210
|
-
type:
|
|
16210
|
+
entry: y
|
|
16211
|
+
}) : S && m.push({
|
|
16212
|
+
id: g,
|
|
16213
|
+
name: b,
|
|
16214
|
+
icon: w,
|
|
16215
|
+
type: C.type,
|
|
16211
16216
|
children: [],
|
|
16212
|
-
depth:
|
|
16217
|
+
depth: h,
|
|
16213
16218
|
isSelectable: !0,
|
|
16214
|
-
entry:
|
|
16219
|
+
entry: y
|
|
16215
16220
|
});
|
|
16216
16221
|
}
|
|
16217
|
-
return
|
|
16222
|
+
return m;
|
|
16218
16223
|
}
|
|
16219
|
-
const
|
|
16220
|
-
for (const
|
|
16221
|
-
|
|
16222
|
-
return
|
|
16224
|
+
const f = [];
|
|
16225
|
+
for (const p of c)
|
|
16226
|
+
f.push(...d(p, 0));
|
|
16227
|
+
return f;
|
|
16223
16228
|
}
|
|
16224
16229
|
function w0(e, t) {
|
|
16225
16230
|
const n = t.toLowerCase().trim();
|