disguise-ui 0.2.6 → 0.2.7

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.
@@ -1420,7 +1420,7 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1420
1420
  }), Xr = /* @__PURE__ */ e({ default: () => Zr }), Zr = /*#__PURE__*/ f(Yr, [["__scopeId", "data-v-b8fd048b"]]), Qr = {
1421
1421
  key: 0,
1422
1422
  class: "list-expand-cell"
1423
- }, $r = { key: 1 }, ei = /*#__PURE__*/ f(/* @__PURE__ */ k({
1423
+ }, $r = ["innerHTML"], ei = { key: 1 }, ti = { key: 1 }, ni = /*#__PURE__*/ f(/* @__PURE__ */ k({
1424
1424
  __name: "list-expand-cell",
1425
1425
  props: {
1426
1426
  expanded: {
@@ -1429,7 +1429,11 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1429
1429
  },
1430
1430
  items: {},
1431
1431
  max: { default: 2 },
1432
- unit: { default: "" }
1432
+ unit: { default: "" },
1433
+ html: {
1434
+ type: Boolean,
1435
+ default: !1
1436
+ }
1433
1437
  },
1434
1438
  emits: ["toggle"],
1435
1439
  setup(e, { emit: t }) {
@@ -1437,10 +1441,13 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1437
1441
  function c(e) {
1438
1442
  e.stopPropagation(), r("toggle");
1439
1443
  }
1440
- return (t, n) => e.items.length > 0 ? (R(), C("div", Qr, [(R(!0), C(y, null, V(o.value, (e, t) => (R(), C("div", {
1441
- key: `${t}-${e}`,
1444
+ return (t, n) => e.items.length > 0 ? (R(), C("div", Qr, [(R(!0), C(y, null, V(o.value, (t, n) => (R(), C("div", {
1445
+ key: `${n}-${t}`,
1442
1446
  class: "list-expand-cell__item"
1443
- }, W(t + 1) + ". " + W(e), 1))), 128)), a.value ? (R(), C("button", {
1447
+ }, [w("span", null, W(n + 1) + ".", 1), e.html ? (R(), C("span", {
1448
+ key: 0,
1449
+ innerHTML: t
1450
+ }, null, 8, $r)) : (R(), C("span", ei, W(t), 1))]))), 128)), a.value ? (R(), C("button", {
1444
1451
  key: 0,
1445
1452
  class: "list-expand-cell__toggle",
1446
1453
  type: "button",
@@ -1451,12 +1458,12 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1451
1458
  })), 1), D(K(Z), { class: "list-expand-cell__icon" }, {
1452
1459
  default: J(() => [e.expanded ? (R(), x(K(Xe), { key: 0 })) : (R(), x(K(Je), { key: 1 }))]),
1453
1460
  _: 1
1454
- })])) : S("", !0)])) : (R(), C("span", $r, "-"));
1461
+ })])) : S("", !0)])) : (R(), C("span", ti, "-"));
1455
1462
  }
1456
- }), [["__scopeId", "data-v-21f61a6b"]]), ti = { class: "price-cell" }, ni = { class: "text-[red]" }, ri = {
1463
+ }), [["__scopeId", "data-v-284ac7ae"]]), ri = { class: "price-cell" }, ii = { class: "text-[red]" }, ai = {
1457
1464
  key: 0,
1458
1465
  class: "ml-1 line-through"
1459
- }, ii = /* @__PURE__ */ k({
1466
+ }, oi = /* @__PURE__ */ k({
1460
1467
  __name: "price-cell",
1461
1468
  props: {
1462
1469
  price: { default: "" },
@@ -1467,46 +1474,46 @@ var Ir = /*#__PURE__*/ f(/* @__PURE__ */ k({
1467
1474
  let t = parseFloat(e.replace(/[^0-9.-]/g, ""));
1468
1475
  return `$${isNaN(t) ? "0.00" : t.toFixed(2)}`;
1469
1476
  };
1470
- return (n, r) => (R(), C("div", ti, [w("span", ni, W(t(e.price)), 1), e.lodPrice ? (R(), C("span", ri, W(t(e.lodPrice)), 1)) : S("", !0)]));
1477
+ return (n, r) => (R(), C("div", ri, [w("span", ii, W(t(e.price)), 1), e.lodPrice ? (R(), C("span", ai, W(t(e.lodPrice)), 1)) : S("", !0)]));
1471
1478
  }
1472
1479
  });
1473
1480
  // src/components/table-entity/utils/column-utils.ts
1474
- function ai(e) {
1481
+ function si(e) {
1475
1482
  return `${e}Col`;
1476
1483
  }
1477
- var oi = [
1484
+ var ci = [
1478
1485
  "create_time",
1479
1486
  "createTime",
1480
1487
  "created_at",
1481
1488
  "createdAt",
1482
1489
  "created_time"
1483
- ], si = [
1490
+ ], li = [
1484
1491
  "update_time",
1485
1492
  "updateTime",
1486
1493
  "updated_at",
1487
1494
  "updatedAt",
1488
1495
  "updated_time"
1489
1496
  ];
1490
- function ci(e) {
1497
+ function ui(e) {
1491
1498
  return e == null || e === "";
1492
1499
  }
1493
- function li(e) {
1494
- return oi.includes(e) ? oi : si.includes(e) ? si : [];
1500
+ function di(e) {
1501
+ return ci.includes(e) ? ci : li.includes(e) ? li : [];
1495
1502
  }
1496
- function ui(e, t, n) {
1503
+ function fi(e, t, n) {
1497
1504
  let r = n === void 0 ? e?.[t] : n;
1498
- if (!ci(r) || !e) return r;
1499
- for (let n of li(t)) {
1505
+ if (!ui(r) || !e) return r;
1506
+ for (let n of di(t)) {
1500
1507
  if (n === t) continue;
1501
1508
  let r = e[n];
1502
- if (!ci(r)) return r;
1509
+ if (!ui(r)) return r;
1503
1510
  }
1504
1511
  return r;
1505
1512
  }
1506
- function di(e, t) {
1507
- return ci(e) ? "--" : t === "datetime" ? yn(e) : t === "date" ? vn(e) : fi(e);
1513
+ function pi(e, t) {
1514
+ return ui(e) ? "--" : t === "datetime" ? yn(e) : t === "date" ? vn(e) : mi(e);
1508
1515
  }
1509
- function fi(e) {
1516
+ function mi(e) {
1510
1517
  if (e == null || e === "") return "--";
1511
1518
  if (typeof e == "object") try {
1512
1519
  return JSON.stringify(e);
@@ -1516,13 +1523,13 @@ function fi(e) {
1516
1523
  return String(e);
1517
1524
  }
1518
1525
  // src/components/table-entity/utils/list-expand.ts
1519
- function pi(e) {
1526
+ function hi(e) {
1520
1527
  return String(e.key ?? e.dataKey ?? e.dataIndex ?? "");
1521
1528
  }
1522
- function mi(e, t) {
1529
+ function gi(e, t) {
1523
1530
  return `${String(e)}::${t}`;
1524
1531
  }
1525
- function hi(e, t = "name") {
1532
+ function _i(e, t = "name") {
1526
1533
  return (Array.isArray(e) ? e : typeof e == "string" ? e.split(/\r?\n/).map((e) => e.trim()).filter(Boolean) : e == null || e === "" ? [] : [e]).map((e) => {
1527
1534
  if (e == null || e === "") return "";
1528
1535
  if (typeof e != "object") return String(e);
@@ -1531,47 +1538,48 @@ function hi(e, t = "name") {
1531
1538
  }).filter(Boolean);
1532
1539
  }
1533
1540
  // src/components/table-entity/utils/column-slots.ts
1534
- var gi = O(() => Promise.resolve().then(() => Xr)), _i = O(() => import("./picture-cell-DApeh9FW.js").then((e) => e.n)), vi = O(() => import("./avatar-cell-BPzpEjQT.js")), { resolveImageUrl: yi } = p();
1535
- function bi(e) {
1536
- return e == null || e === "" ? [] : (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [e]).map((e) => e && typeof e == "object" ? e.fileUrl ?? e.url : e).map((e) => yi(e)).filter(Boolean);
1541
+ var vi = O(() => Promise.resolve().then(() => Xr)), yi = O(() => import("./picture-cell-DApeh9FW.js").then((e) => e.n)), bi = O(() => import("./avatar-cell-BPzpEjQT.js")), { resolveImageUrl: xi } = p();
1542
+ function Si(e) {
1543
+ return e == null || e === "" ? [] : (Array.isArray(e) ? e : typeof e == "string" ? e.split(",") : [e]).map((e) => e && typeof e == "object" ? e.fileUrl ?? e.url : e).map((e) => xi(e)).filter(Boolean);
1537
1544
  }
1538
- var xi = (e) => Array.isArray(e) ? e.map((e) => ({ fileUrl: e })) : { fileUrl: e };
1539
- function Si(e, t, n, r) {
1545
+ var Ci = (e) => Array.isArray(e) ? e.map((e) => ({ fileUrl: e })) : { fileUrl: e };
1546
+ function wi(e, t, n, r) {
1540
1547
  let i = e.maxPreviewCount ?? 3, a = e.cellProps ?? e.props ?? {};
1541
1548
  switch (e.type) {
1542
- case "avatar": return j(vi, {
1549
+ case "avatar": return j(bi, {
1543
1550
  row: t,
1544
1551
  value: n
1545
1552
  });
1546
- case "file": return j(gi, {
1553
+ case "file": return j(vi, {
1547
1554
  ...a,
1548
- attachments: xi(n),
1555
+ attachments: Ci(n),
1549
1556
  maxPreviewCount: i
1550
1557
  });
1551
- case "picture": return j(_i, {
1558
+ case "picture": return j(yi, {
1552
1559
  ...a,
1553
- urls: bi(n),
1560
+ urls: Si(n),
1554
1561
  maxPreviewCount: i
1555
1562
  });
1556
- case "price": return j(ii, {
1563
+ case "price": return j(oi, {
1557
1564
  ...a,
1558
1565
  price: String(n || "0"),
1559
1566
  lodPrice: t[a?.lodPrice] ?? "请查看配置项"
1560
1567
  });
1561
1568
  case "listExpand": {
1562
- let i = mi(t?.[r?.rowKey ?? "id"], pi(e));
1563
- return j(ei, {
1564
- items: hi(n, a.labelKey),
1569
+ let i = gi(t?.[r?.rowKey ?? "id"], hi(e));
1570
+ return j(ni, {
1571
+ items: _i(n, a.labelKey),
1565
1572
  max: a.max,
1566
1573
  unit: a.unit,
1567
1574
  expanded: r?.expandedKeys.has(i) ?? !1,
1568
- onToggle: () => r?.onToggle(i)
1575
+ onToggle: () => r?.onToggle(i),
1576
+ html: a.html ?? !1
1569
1577
  });
1570
1578
  }
1571
1579
  default: return;
1572
1580
  }
1573
1581
  }
1574
- function Ci(e) {
1582
+ function Ti(e) {
1575
1583
  let t = {
1576
1584
  bottom: "flex-end",
1577
1585
  center: "center",
@@ -1582,11 +1590,11 @@ function Ci(e) {
1582
1590
  width: "100%"
1583
1591
  } : void 0;
1584
1592
  }
1585
- function wi(e, t, n) {
1593
+ function Ei(e, t, n) {
1586
1594
  return e.map((e) => {
1587
1595
  if (e.key === "__sel__" || e.key === "__fill__") return e;
1588
1596
  if (e.cellRenderer) {
1589
- let t = e.cellRenderer, n = Ci(e);
1597
+ let t = e.cellRenderer, n = Ti(e);
1590
1598
  return n ? {
1591
1599
  ...e,
1592
1600
  cellRenderer: (e) => j("div", {
@@ -1597,11 +1605,11 @@ function wi(e, t, n) {
1597
1605
  }
1598
1606
  let r = e.dataKey;
1599
1607
  if (r == null || r === "") return e;
1600
- let i = ai(String(r));
1608
+ let i = si(String(r));
1601
1609
  return {
1602
1610
  ...e,
1603
1611
  cellRenderer: (a) => {
1604
- let { rowData: o, rowIndex: s, cellData: c } = a, l = a.column ?? e, u = l.align ?? e.align ?? "left", d = Ci(l), f = l.valueType ?? e.valueType, p = f === "date" || f === "datetime" ? ui(o, String(r), c) : c === void 0 ? o?.[r] : c, m = di(p, f), h = typeof p == "object" && p ? void 0 : m, g = t[i];
1612
+ let { rowData: o, rowIndex: s, cellData: c } = a, l = a.column ?? e, u = l.align ?? e.align ?? "left", d = Ti(l), f = l.valueType ?? e.valueType, p = f === "date" || f === "datetime" ? fi(o, String(r), c) : c === void 0 ? o?.[r] : c, m = pi(p, f), h = typeof p == "object" && p ? void 0 : m, g = t[i];
1605
1613
  if (g) return j("div", {
1606
1614
  class: "table-entity__col-slot",
1607
1615
  title: h,
@@ -1616,7 +1624,7 @@ function wi(e, t, n) {
1616
1624
  column: l,
1617
1625
  rowIndex: s
1618
1626
  }));
1619
- let _ = Si(l, o, p, n);
1627
+ let _ = wi(l, o, p, n);
1620
1628
  if (_) {
1621
1629
  let t = l.type === "picture" || e.type === "picture", n = l.type === "listExpand" || e.type === "listExpand";
1622
1630
  return j("div", {
@@ -1667,13 +1675,13 @@ function wi(e, t, n) {
1667
1675
  });
1668
1676
  }
1669
1677
  // src/components/table-entity/index.vue?vue&type=script&setup=true&lang.ts
1670
- var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di = {
1678
+ var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki = {
1671
1679
  key: 0,
1672
1680
  class: "table-entity__toolbar-left"
1673
- }, Oi = {
1681
+ }, Ai = {
1674
1682
  key: 1,
1675
1683
  class: "table-entity__pagination"
1676
- }, ki = "__actions__", Ai = "__drag__", ji = "table-entity__drag-handle", Mi = /*#__PURE__*/ f(/* @__PURE__ */ k({
1684
+ }, ji = "__actions__", Mi = "__drag__", Ni = "table-entity__drag-handle", Pi = /*#__PURE__*/ f(/* @__PURE__ */ k({
1677
1685
  __name: "index",
1678
1686
  props: {
1679
1687
  columns: { default: () => [] },
@@ -1801,7 +1809,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
1801
1809
  let t = new Set(g.value);
1802
1810
  t.has(e) ? t.delete(e) : t.add(e), g.value = t;
1803
1811
  }
1804
- let V = b(() => wi(N.value, p, {
1812
+ let V = b(() => Ei(N.value, p, {
1805
1813
  expandedKeys: g.value,
1806
1814
  onToggle: te,
1807
1815
  rowKey: r.rowKey ?? "id"
@@ -1849,9 +1857,9 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
1849
1857
  return t == null ? void 0 : String(t);
1850
1858
  }), me = b(() => r.expandedRowKeys ?? v.value), he = b(() => !r.tree || r.treeChildrenKey === "children" ? h.value : tt(h.value, r.treeChildrenKey));
1851
1859
  function ge(e) {
1852
- let t = r.rowKey ?? "id", n = r.treeChildrenKey ?? "children", i = ee.value.map((e) => pi(e));
1860
+ let t = r.rowKey ?? "id", n = r.treeChildrenKey ?? "children", i = ee.value.map((e) => hi(e));
1853
1861
  return e.map((e) => {
1854
- let r = i.map((n) => g.value.has(mi(e[t], n)) ? "1" : "0").join(""), a = {
1862
+ let r = i.map((n) => g.value.has(gi(e[t], n)) ? "1" : "0").join(""), a = {
1855
1863
  ...e,
1856
1864
  __measureKey: `${e[t]}:${r}`
1857
1865
  };
@@ -1923,7 +1931,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
1923
1931
  let n = r.rowKey ?? "id", i = Fe.value, a = e[n], o = t[n];
1924
1932
  return a != null && o != null && i.has(a) && i.has(o) && i.get(a) === i.get(o);
1925
1933
  },
1926
- getHandle: () => r.rowDragHandle || `.${ji}`,
1934
+ getHandle: () => r.rowDragHandle || `.${Ni}`,
1927
1935
  getRoot: () => y.value,
1928
1936
  getRowHeight: () => r.rowHeight,
1929
1937
  getRows: () => Pe.value,
@@ -1958,12 +1966,12 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
1958
1966
  };
1959
1967
  }
1960
1968
  let We = b(() => ({
1961
- key: Ai,
1962
- dataKey: Ai,
1969
+ key: Mi,
1970
+ dataKey: Mi,
1963
1971
  title: "",
1964
1972
  width: 40,
1965
1973
  cellRenderer: ({ rowData: e }) => r.rowDragDisabled?.(e) ? null : j("span", {
1966
- class: ji,
1974
+ class: Ni,
1967
1975
  title: "拖拽排序"
1968
1976
  }, j(Z, { size: 16 }, () => j(ct)))
1969
1977
  }));
@@ -1990,8 +1998,8 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
1990
1998
  if (!r.showActions) return null;
1991
1999
  let e = qe.value;
1992
2000
  return {
1993
- key: ki,
1994
- dataKey: ki,
2001
+ key: ji,
2002
+ dataKey: ji,
1995
2003
  title: r.actionColumnTitle || d("components.tableEntity.action"),
1996
2004
  width: Ye.value,
1997
2005
  fixed: "right",
@@ -2117,11 +2125,11 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2117
2125
  width: Number(e.width ?? 120)
2118
2126
  })), r = n.reduce((e, t) => e + Number(t.width ?? 0), 0);
2119
2127
  if (r >= t) return n;
2120
- let i = n.filter((e) => e.dataKey !== ki && e.dataKey !== "__sel__" && e.dataKey !== Ai);
2128
+ let i = n.filter((e) => e.dataKey !== ji && e.dataKey !== "__sel__" && e.dataKey !== Mi);
2121
2129
  if (i.length === 0) return n;
2122
2130
  let a = t - r, o = i.reduce((e, t) => e + Number(t.width ?? 0), 0);
2123
2131
  return n.map((e) => {
2124
- if (e.dataKey === ki || e.dataKey === "__sel__" || e.dataKey === Ai) return e;
2132
+ if (e.dataKey === ji || e.dataKey === "__sel__" || e.dataKey === Mi) return e;
2125
2133
  let t = Number(e.width ?? 120);
2126
2134
  return {
2127
2135
  ...e,
@@ -2187,7 +2195,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2187
2195
  w("div", {
2188
2196
  class: "table-entity__toolbar",
2189
2197
  style: L({ width: `${e.width}px` })
2190
- }, [w("div", Ti, [w("div", Ei, [H(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", Di, [
2198
+ }, [w("div", Di, [w("div", Oi, [H(t.$slots, "buttons", {}, void 0, !0)])]), A.value ? (R(), C("div", ki, [
2191
2199
  D(K(He), {
2192
2200
  content: K(d)("components.tableEntity.refresh"),
2193
2201
  placement: "top"
@@ -2294,7 +2302,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2294
2302
  class: "table-entity__resize-line",
2295
2303
  style: L(K(de))
2296
2304
  }, null, 4)) : S("", !0),
2297
- r.showPagination ? (R(), C("div", Oi, [D(K(Oe), P({
2305
+ r.showPagination ? (R(), C("div", Ai, [D(K(Oe), P({
2298
2306
  "current-page": E.current_page,
2299
2307
  "page-size": E.per_page,
2300
2308
  total: k.value
@@ -2348,10 +2356,10 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2348
2356
  ], 2);
2349
2357
  };
2350
2358
  }
2351
- }), [["__scopeId", "data-v-68eaf1f6"]]), Ni = { class: "dialog-list" }, Pi = { class: "dialog-list__bar" }, Fi = {
2359
+ }), [["__scopeId", "data-v-68eaf1f6"]]), Fi = { class: "dialog-list" }, Ii = { class: "dialog-list__bar" }, Li = {
2352
2360
  key: 0,
2353
2361
  class: "dialog-list__count"
2354
- }, Ii = { class: "dialog-list__table" }, Li = /*#__PURE__*/ f(/* @__PURE__ */ k({
2362
+ }, Ri = { class: "dialog-list__table" }, zi = /*#__PURE__*/ f(/* @__PURE__ */ k({
2355
2363
  __name: "index",
2356
2364
  props: {
2357
2365
  visible: { type: Boolean },
@@ -2443,7 +2451,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2443
2451
  "cancel-text": K(d)("components.dialogList.cancel"),
2444
2452
  "confirm-text": K(d)("components.dialogList.confirm")
2445
2453
  }, {
2446
- default: J(() => [w("div", Ni, [w("div", Pi, [D(i, {
2454
+ default: J(() => [w("div", Fi, [w("div", Ii, [D(i, {
2447
2455
  modelValue: l.value,
2448
2456
  "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
2449
2457
  placeholder: K(d)("components.dialogList.placeholder"),
@@ -2457,7 +2465,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2457
2465
  onClick: y
2458
2466
  }, null, 8, ["icon"])]),
2459
2467
  _: 1
2460
- }, 8, ["modelValue", "placeholder"]), O.value > 0 ? (R(), C("span", Fi, W(K(d)("components.dialogList.selectedCount", { count: O.value })), 1)) : S("", !0)]), ue((R(), C("div", Ii, [D(Mi, {
2468
+ }, 8, ["modelValue", "placeholder"]), O.value > 0 ? (R(), C("span", Li, W(K(d)("components.dialogList.selectedCount", { count: O.value })), 1)) : S("", !0)]), ue((R(), C("div", Ri, [D(Pi, {
2461
2469
  ref_key: "tableRef",
2462
2470
  ref: c,
2463
2471
  columns: e.columns,
@@ -2498,7 +2506,7 @@ var Ti = { class: "table-entity__toolbar-right" }, Ei = { class: "buttons" }, Di
2498
2506
  }
2499
2507
  }), [["__scopeId", "data-v-34113a12"]]);
2500
2508
  // src/components/async-select/async-select.utils.ts
2501
- async function Ri({ activeValues: e, selectedValues: t, loadRows: n, resolveValue: r, toOption: i }) {
2509
+ async function Bi({ activeValues: e, selectedValues: t, loadRows: n, resolveValue: r, toOption: i }) {
2502
2510
  let a = e.filter((e) => !t.some((t) => String(t) === String(e)));
2503
2511
  if (a.length === 0) return [];
2504
2512
  let o = new Set(a.map(String)), s = await n(a), c = [];
@@ -2511,13 +2519,13 @@ async function Ri({ activeValues: e, selectedValues: t, loadRows: n, resolveValu
2511
2519
  return c;
2512
2520
  }
2513
2521
  // src/components/async-select/async-select.vue?vue&type=script&setup=true&lang.ts
2514
- var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi = ["src"], Hi = { class: "async-select__value-text" }, Ui = {
2522
+ var Vi = { class: "async-select" }, Hi = { class: "async-select__value" }, Ui = ["src"], Wi = { class: "async-select__value-text" }, Gi = {
2515
2523
  key: 0,
2516
2524
  class: "async-select__option"
2517
- }, Wi = { class: "async-select__option-label" }, Gi = ["src"], Ki = { class: "async-select__option-text" }, qi = {
2525
+ }, Ki = { class: "async-select__option-label" }, qi = ["src"], Ji = { class: "async-select__option-text" }, Yi = {
2518
2526
  key: 0,
2519
2527
  class: "async-select__option-desc"
2520
- }, Ji = ["title"], Yi = ["src", "alt"], Xi = /*@__PURE__*/ k({
2528
+ }, Xi = ["title"], Zi = ["src", "alt"], Qi = /*@__PURE__*/ k({
2521
2529
  __name: "async-select",
2522
2530
  props: {
2523
2531
  modelValue: {},
@@ -2647,7 +2655,7 @@ var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi =
2647
2655
  h.value = e, e && g.value && c.value.length === 0 && await L();
2648
2656
  }
2649
2657
  q([T, o], async ([e, t]) => {
2650
- e.length === 0 ? l.value = [] : (ee(t.filter((t) => e.some((e) => j(e, E(t)))).map(A)), g.value && r.fetcher && ee(await Ri({
2658
+ e.length === 0 ? l.value = [] : (ee(t.filter((t) => e.some((e) => j(e, E(t)))).map(A)), g.value && r.fetcher && ee(await Bi({
2651
2659
  activeValues: e,
2652
2660
  selectedValues: l.value.map((e) => e.value),
2653
2661
  loadRows: (e) => r.fetcher({
@@ -2686,7 +2694,7 @@ var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi =
2686
2694
  return t({
2687
2695
  reload: () => L(!0),
2688
2696
  allItems: c
2689
- }), (t, n) => (R(), C("div", zi, [
2697
+ }), (t, n) => (R(), C("div", Vi, [
2690
2698
  D(K(Fe), P({
2691
2699
  modelValue: y.value,
2692
2700
  "onUpdate:modelValue": n[0] ||= (e) => y.value = e,
@@ -2707,18 +2715,18 @@ var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi =
2707
2715
  onVisibleChange: V,
2708
2716
  onEndReached: te
2709
2717
  }), {
2710
- label: J((e) => [w("span", Bi, [e?.label?.flag ? (R(), C("img", {
2718
+ label: J((e) => [w("span", Hi, [e?.label?.flag ? (R(), C("img", {
2711
2719
  key: 0,
2712
2720
  class: "async-select__flag",
2713
2721
  src: e.label.flag,
2714
2722
  alt: ""
2715
- }, null, 8, Vi)) : S("", !0), w("span", Hi, W(e?.label?.label ?? ""), 1)])]),
2716
- default: J((e) => [e?.item ? (R(), C("div", Ui, [w("p", Wi, [e.item.label.flag ? (R(), C("img", {
2723
+ }, null, 8, Ui)) : S("", !0), w("span", Wi, W(e?.label?.label ?? ""), 1)])]),
2724
+ default: J((e) => [e?.item ? (R(), C("div", Gi, [w("p", Ki, [e.item.label.flag ? (R(), C("img", {
2717
2725
  key: 0,
2718
2726
  class: "async-select__flag",
2719
2727
  src: e.item.label.flag,
2720
2728
  alt: ""
2721
- }, null, 8, Gi)) : S("", !0), w("span", Ki, W(e.item.label.label), 1)]), e.item.label.subtitle ? (R(), C("p", qi, W(e.item.label.subtitle), 1)) : S("", !0)])) : S("", !0)]),
2729
+ }, null, 8, qi)) : S("", !0), w("span", Ji, W(e.item.label.label), 1)]), e.item.label.subtitle ? (R(), C("p", Yi, W(e.item.label.subtitle), 1)) : S("", !0)])) : S("", !0)]),
2722
2730
  _: 1
2723
2731
  }, 16, [
2724
2732
  "modelValue",
@@ -2741,10 +2749,10 @@ var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi =
2741
2749
  default: J(() => [w("img", {
2742
2750
  src: K(fn),
2743
2751
  alt: K(d)("components.asyncSelect.more")
2744
- }, null, 8, Yi)]),
2752
+ }, null, 8, Zi)]),
2745
2753
  _: 1
2746
- })], 42, Ji)) : S("", !0),
2747
- e.columns.length > 0 ? (R(), x(Li, {
2754
+ })], 42, Xi)) : S("", !0),
2755
+ e.columns.length > 0 ? (R(), x(zi, {
2748
2756
  key: 1,
2749
2757
  visible: H.value,
2750
2758
  columns: e.columns,
@@ -2768,26 +2776,26 @@ var zi = { class: "async-select" }, Bi = { class: "async-select__value" }, Vi =
2768
2776
  ])) : S("", !0)
2769
2777
  ]));
2770
2778
  }
2771
- }), Zi = /* @__PURE__ */ e({ default: () => Qi }), Qi = /*#__PURE__*/ f(Xi, [["__scopeId", "data-v-f23a4e1b"]]), $i = { theme: { get cardShadow() {
2779
+ }), $i = /* @__PURE__ */ e({ default: () => ea }), ea = /*#__PURE__*/ f(Qi, [["__scopeId", "data-v-f23a4e1b"]]), ta = { theme: { get cardShadow() {
2772
2780
  return a().value;
2773
- } } }, ea = /*#__PURE__*/ f(/* @__PURE__ */ k({
2781
+ } } }, na = /*#__PURE__*/ f(/* @__PURE__ */ k({
2774
2782
  inheritAttrs: !1,
2775
2783
  __name: "index",
2776
2784
  setup(e) {
2777
- let t = b(() => $i.theme.cardShadow);
2785
+ let t = b(() => ta.theme.cardShadow);
2778
2786
  return (e, n) => (R(), x(K(X), P({ class: "box-card" }, e.$attrs, { shadow: t.value }), T({ _: 2 }, [V(e.$slots, (t, n) => ({
2779
2787
  name: n,
2780
2788
  fn: J((t) => [H(e.$slots, n, I(A(t ?? {})), void 0, !0)])
2781
2789
  }))]), 1040, ["shadow"]));
2782
2790
  }
2783
- }), [["__scopeId", "data-v-ed977a22"]]), ta = /* @__PURE__ */ new Map();
2784
- function na(e) {
2785
- ta.set(e.key, e);
2791
+ }), [["__scopeId", "data-v-ed977a22"]]), ra = /* @__PURE__ */ new Map();
2792
+ function ia(e) {
2793
+ ra.set(e.key, e);
2786
2794
  }
2787
- function ra(e) {
2788
- return ta.get(e);
2795
+ function aa(e) {
2796
+ return ra.get(e);
2789
2797
  }
2790
- function ia(e, { keyword: t, page: n, per_page: r }, i) {
2798
+ function oa(e, { keyword: t, page: n, per_page: r }, i) {
2791
2799
  let a = t?.trim().toLowerCase(), o = a ? e.filter((e) => i.some((t) => String(e[t] ?? "").toLowerCase().includes(a))) : e;
2792
2800
  return {
2793
2801
  items: o.slice((n - 1) * r, n * r),
@@ -2795,13 +2803,13 @@ function ia(e, { keyword: t, page: n, per_page: r }, i) {
2795
2803
  };
2796
2804
  }
2797
2805
  // src/components/schema-form/readonly-text.vue?vue&type=script&setup=true&lang.ts
2798
- var aa = { class: "readonly-text" }, oa = {
2806
+ var sa = { class: "readonly-text" }, ca = {
2799
2807
  key: 0,
2800
2808
  class: "readonly-text__value"
2801
- }, sa = {
2809
+ }, la = {
2802
2810
  key: 1,
2803
2811
  class: "readonly-text__empty"
2804
- }, ca = /*#__PURE__*/ f(/* @__PURE__ */ k({
2812
+ }, ua = /*#__PURE__*/ f(/* @__PURE__ */ k({
2805
2813
  __name: "readonly-text",
2806
2814
  props: {
2807
2815
  copyable: { type: Boolean },
@@ -2815,7 +2823,7 @@ var aa = { class: "readonly-text" }, oa = {
2815
2823
  async function o() {
2816
2824
  await n(i.value), Q.success(d("schemaForm.copied"));
2817
2825
  }
2818
- return (e, t) => (R(), C("div", aa, [i.value ? (R(), C("span", oa, W(i.value), 1)) : (R(), C("span", sa, W(K(d)("schemaForm.empty")), 1)), a.value ? (R(), x(K(Z), {
2826
+ return (e, t) => (R(), C("div", sa, [i.value ? (R(), C("span", ca, W(i.value), 1)) : (R(), C("span", la, W(K(d)("schemaForm.empty")), 1)), a.value ? (R(), x(K(Z), {
2819
2827
  key: 2,
2820
2828
  class: "readonly-text__copy",
2821
2829
  title: K(d)("schemaForm.copy"),
@@ -2825,21 +2833,21 @@ var aa = { class: "readonly-text" }, oa = {
2825
2833
  _: 1
2826
2834
  }, 8, ["title"])) : S("", !0)]));
2827
2835
  }
2828
- }), [["__scopeId", "data-v-1f95eeac"]]), la = ie({});
2829
- function ua(e) {
2836
+ }), [["__scopeId", "data-v-1f95eeac"]]), da = ie({});
2837
+ function fa(e) {
2830
2838
  return typeof e == "object" && e && "component" in e && e.component ? e : { component: e };
2831
2839
  }
2832
- function da(e) {
2833
- for (let [t, n] of Object.entries(e)) n && (la[t] = n);
2840
+ function pa(e) {
2841
+ for (let [t, n] of Object.entries(e)) n && (da[t] = n);
2834
2842
  }
2835
- function fa(e) {
2843
+ function ma(e) {
2836
2844
  if (!e) return;
2837
- if (typeof e != "string") return ua(e);
2838
- let t = la[e];
2839
- return t ? ua(t) : void 0;
2845
+ if (typeof e != "string") return fa(e);
2846
+ let t = da[e];
2847
+ return t ? fa(t) : void 0;
2840
2848
  }
2841
2849
  // src/components/schema-form/schema-form.util.ts
2842
- var pa = /* @__PURE__ */ new Set([
2850
+ var ha = /* @__PURE__ */ new Set([
2843
2851
  "async-select",
2844
2852
  "cascader",
2845
2853
  "checkbox",
@@ -2853,51 +2861,51 @@ var pa = /* @__PURE__ */ new Set([
2853
2861
  "switch",
2854
2862
  "upload"
2855
2863
  ]);
2856
- function ma(e) {
2857
- return pa.has(e.type);
2864
+ function ga(e) {
2865
+ return ha.has(e.type);
2858
2866
  }
2859
- function ha(e) {
2867
+ function _a(e) {
2860
2868
  return e.type === "group";
2861
2869
  }
2862
- function ga(e) {
2863
- return e.flatMap((e) => ha(e) ? e.children : [e]);
2870
+ function va(e) {
2871
+ return e.flatMap((e) => _a(e) ? e.children : [e]);
2864
2872
  }
2865
- function _a(e, t) {
2873
+ function ya(e, t) {
2866
2874
  return typeof e == "function" ? e(t) : e === !0;
2867
2875
  }
2868
- function va(e, t) {
2869
- return t.mode === "create" && e.hideOnCreate || t.mode === "edit" && e.hideOnEdit ? !0 : _a(e.hidden, t);
2876
+ function ba(e, t) {
2877
+ return t.mode === "create" && e.hideOnCreate || t.mode === "edit" && e.hideOnEdit ? !0 : ya(e.hidden, t);
2870
2878
  }
2871
- function ya(e) {
2879
+ function xa(e) {
2872
2880
  if (e.placeholder) return e.placeholder;
2873
2881
  let t = e.label || e.prop;
2874
- return ma(e) ? d("validation.selectField", { field: t }) : d("validation.enterField", { field: t });
2882
+ return ga(e) ? d("validation.selectField", { field: t }) : d("validation.enterField", { field: t });
2875
2883
  }
2876
- function ba(e, t) {
2884
+ function Sa(e, t) {
2877
2885
  let n = e.rules ? [...e.rules] : [];
2878
- return _a(e.required, t) && n.unshift(e.translateConfig && [
2886
+ return ya(e.required, t) && n.unshift(e.translateConfig && [
2879
2887
  "rich-text",
2880
2888
  "text",
2881
2889
  "textarea"
2882
2890
  ].includes(e.type) ? {
2883
- message: ya(e),
2891
+ message: xa(e),
2884
2892
  trigger: "change",
2885
2893
  validator: (t, n) => {
2886
2894
  let r = (e) => typeof e == "string" ? e.trim().length > 0 : typeof e == "number" || typeof e == "boolean" ? !0 : Array.isArray(e) ? e.some((e) => r(e)) : e && typeof e == "object" ? Object.values(e).some((e) => r(e)) : !1;
2887
- return n && typeof n == "object" && Object.values(n).some((e) => r(e)) || Error(ya(e));
2895
+ return n && typeof n == "object" && Object.values(n).some((e) => r(e)) || Error(xa(e));
2888
2896
  }
2889
2897
  } : {
2890
2898
  required: !0,
2891
- message: ya(e),
2892
- trigger: ma(e) ? "change" : "blur"
2899
+ message: xa(e),
2900
+ trigger: ga(e) ? "change" : "blur"
2893
2901
  }), n;
2894
2902
  }
2895
2903
  // src/components/rich-text-editor/index.vue?vue&type=script&setup=true&lang.ts
2896
- var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disabled"], Ea = { value: "" }, Da = ["title"], Oa = ["title"], ka = ["title"], Aa = ["title"], ja = ["title"], Ma = ["title"], Na = ["disabled"], Pa = ["value"], Fa = ["disabled"], Ia = ["value"], La = ["disabled"], Ra = { value: "paragraph" }, za = { value: "h1" }, Ba = { value: "h2" }, Va = { value: "h3" }, Ha = { value: "blockquote" }, Ua = ["title"], Wa = ["title"], Ga = ["title"], Ka = ["title"], qa = ["title"], Ja = ["title"], Ya = ["title"], Xa = ["title"], Za = ["title"], Qa = ["title"], $a = ["title"], eo = ["disabled"], to = { value: "" }, no = { value: "insertTable" }, ro = { value: "addColumnBefore" }, io = { value: "addColumnAfter" }, ao = { value: "deleteColumn" }, oo = { value: "addRowBefore" }, so = { value: "addRowAfter" }, co = { value: "deleteRow" }, lo = { value: "deleteTable" }, uo = ["title"], fo = ["title"], po = ["title"], mo = ["title"], ho = ["title"], go = [
2904
+ var Ca = ["title"], wa = ["title"], Ta = ["title"], Ea = ["title"], Da = ["disabled"], Oa = { value: "" }, ka = ["title"], Aa = ["title"], ja = ["title"], Ma = ["title"], Na = ["title"], Pa = ["title"], Fa = ["disabled"], Ia = ["value"], La = ["disabled"], Ra = ["value"], za = ["disabled"], Ba = { value: "paragraph" }, Va = { value: "h1" }, Ha = { value: "h2" }, Ua = { value: "h3" }, Wa = { value: "blockquote" }, Ga = ["title"], Ka = ["title"], qa = ["title"], Ja = ["title"], Ya = ["title"], Xa = ["title"], Za = ["title"], Qa = ["title"], $a = ["title"], eo = ["title"], to = ["title"], no = ["disabled"], ro = { value: "" }, io = { value: "insertTable" }, ao = { value: "addColumnBefore" }, oo = { value: "addColumnAfter" }, so = { value: "deleteColumn" }, co = { value: "addRowBefore" }, lo = { value: "addRowAfter" }, uo = { value: "deleteRow" }, fo = { value: "deleteTable" }, po = ["title"], mo = ["title"], ho = ["title"], go = ["title"], _o = ["title"], vo = [
2897
2905
  "title",
2898
2906
  "disabled",
2899
2907
  "onClick"
2900
- ], _o = { key: 1 }, vo = ["readonly"], yo = /*@__PURE__*/ k({
2908
+ ], yo = { key: 1 }, bo = ["readonly"], xo = /*@__PURE__*/ k({
2901
2909
  __name: "index",
2902
2910
  props: {
2903
2911
  editable: {
@@ -3136,18 +3144,18 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3136
3144
  type: "button",
3137
3145
  title: K(d)("components.richTextEditor.undo"),
3138
3146
  onClick: n[0] ||= (e) => K(p).chain().focus().undo().run()
3139
- }, [D(K(Gt), { size: 17 })], 8, xa),
3147
+ }, [D(K(Gt), { size: 17 })], 8, Ca),
3140
3148
  w("button", {
3141
3149
  type: "button",
3142
3150
  title: K(d)("components.richTextEditor.redo"),
3143
3151
  onClick: n[1] ||= (e) => K(p).chain().focus().redo().run()
3144
- }, [D(K(Vt), { size: 17 })], 8, Sa),
3152
+ }, [D(K(Vt), { size: 17 })], 8, wa),
3145
3153
  n[27] ||= w("span", { class: "rich-text-separator" }, null, -1),
3146
3154
  w("button", {
3147
3155
  type: "button",
3148
3156
  title: K(d)("components.richTextEditor.insertImage"),
3149
3157
  onClick: ne
3150
- }, [D(K(kt), { size: 17 })], 8, Ca),
3158
+ }, [D(K(kt), { size: 17 })], 8, Ta),
3151
3159
  w("label", {
3152
3160
  class: "rich-text-select-wrap rich-text-select-wrap--line",
3153
3161
  title: K(d)("components.richTextEditor.lineHeight")
@@ -3155,37 +3163,37 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3155
3163
  disabled: m.value,
3156
3164
  onChange: oe
3157
3165
  }, [
3158
- w("option", Ea, W(K(d)("components.richTextEditor.lineHeight")), 1),
3166
+ w("option", Oa, W(K(d)("components.richTextEditor.lineHeight")), 1),
3159
3167
  n[22] ||= w("option", { value: "1.2" }, "1.2", -1),
3160
3168
  n[23] ||= w("option", { value: "1.5" }, "1.5", -1),
3161
3169
  n[24] ||= w("option", { value: "1.75" }, "1.75", -1),
3162
3170
  n[25] ||= w("option", { value: "2" }, "2", -1)
3163
- ], 40, Ta)], 8, wa),
3171
+ ], 40, Da)], 8, Ea),
3164
3172
  n[28] ||= w("span", { class: "rich-text-separator" }, null, -1),
3165
3173
  w("button", {
3166
3174
  type: "button",
3167
3175
  class: F({ "is-active": X("bold") }),
3168
3176
  title: K(d)("components.richTextEditor.bold"),
3169
3177
  onClick: n[2] ||= (e) => K(p).chain().focus().toggleBold().run()
3170
- }, [D(K(Tt), { size: 17 })], 10, Da),
3178
+ }, [D(K(Tt), { size: 17 })], 10, ka),
3171
3179
  w("button", {
3172
3180
  type: "button",
3173
3181
  class: F({ "is-active": X("italic") }),
3174
3182
  title: K(d)("components.richTextEditor.italic"),
3175
3183
  onClick: n[3] ||= (e) => K(p).chain().focus().toggleItalic().run()
3176
- }, [D(K(Mt), { size: 17 })], 10, Oa),
3184
+ }, [D(K(Mt), { size: 17 })], 10, Aa),
3177
3185
  w("button", {
3178
3186
  type: "button",
3179
3187
  class: F({ "is-active": X("underline") }),
3180
3188
  title: K(d)("components.richTextEditor.underline"),
3181
3189
  onClick: n[4] ||= (e) => K(p).chain().focus().toggleUnderline().run()
3182
- }, [D(K(Wt), { size: 17 })], 10, ka),
3190
+ }, [D(K(Wt), { size: 17 })], 10, ja),
3183
3191
  w("button", {
3184
3192
  type: "button",
3185
3193
  class: F({ "is-active": X("strike") }),
3186
3194
  title: K(d)("components.richTextEditor.strike"),
3187
3195
  onClick: n[5] ||= (e) => K(p).chain().focus().toggleStrike().run()
3188
- }, [D(K(Ht), { size: 17 })], 10, Aa),
3196
+ }, [D(K(Ht), { size: 17 })], 10, Ma),
3189
3197
  w("label", {
3190
3198
  class: "rich-text-color",
3191
3199
  title: K(d)("components.richTextEditor.textColor")
@@ -3193,7 +3201,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3193
3201
  type: "color",
3194
3202
  value: "#111827",
3195
3203
  onInput: ie
3196
- }, null, 32)], 8, ja),
3204
+ }, null, 32)], 8, Na),
3197
3205
  w("label", {
3198
3206
  class: "rich-text-color",
3199
3207
  title: K(d)("components.richTextEditor.highlight")
@@ -3201,7 +3209,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3201
3209
  type: "color",
3202
3210
  value: "#fff3bf",
3203
3211
  onInput: ae
3204
- }, null, 32)], 8, Ma),
3212
+ }, null, 32)], 8, Pa),
3205
3213
  n[29] ||= w("span", { class: "rich-text-separator" }, null, -1),
3206
3214
  ue(w("select", {
3207
3215
  "onUpdate:modelValue": n[6] ||= (e) => j.value = e,
@@ -3210,7 +3218,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3210
3218
  }, [(R(), C(y, null, V(a, (e) => w("option", {
3211
3219
  key: e.label,
3212
3220
  value: e.value
3213
- }, W(e.label), 9, Pa)), 64))], 8, Na), [[ce, j.value]]),
3221
+ }, W(e.label), 9, Ia)), 64))], 8, Fa), [[ce, j.value]]),
3214
3222
  ue(w("select", {
3215
3223
  "onUpdate:modelValue": n[7] ||= (e) => M.value = e,
3216
3224
  class: "rich-text-select rich-text-select--size",
@@ -3218,77 +3226,77 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3218
3226
  }, [(R(), C(y, null, V(o, (e) => w("option", {
3219
3227
  key: e,
3220
3228
  value: e
3221
- }, W(e), 9, Ia)), 64))], 8, Fa), [[ce, M.value]]),
3229
+ }, W(e), 9, Ra)), 64))], 8, La), [[ce, M.value]]),
3222
3230
  ue(w("select", {
3223
3231
  "onUpdate:modelValue": n[8] ||= (e) => A.value = e,
3224
3232
  class: "rich-text-select rich-text-select--block",
3225
3233
  disabled: m.value
3226
3234
  }, [
3227
- w("option", Ra, W(K(d)("components.richTextEditor.paragraph")), 1),
3228
- w("option", za, W(K(d)("components.richTextEditor.heading1")), 1),
3229
- w("option", Ba, W(K(d)("components.richTextEditor.heading2")), 1),
3230
- w("option", Va, W(K(d)("components.richTextEditor.heading3")), 1),
3231
- w("option", Ha, W(K(d)("components.richTextEditor.blockquote")), 1)
3232
- ], 8, La), [[ce, A.value]]),
3235
+ w("option", Ba, W(K(d)("components.richTextEditor.paragraph")), 1),
3236
+ w("option", Va, W(K(d)("components.richTextEditor.heading1")), 1),
3237
+ w("option", Ha, W(K(d)("components.richTextEditor.heading2")), 1),
3238
+ w("option", Ua, W(K(d)("components.richTextEditor.heading3")), 1),
3239
+ w("option", Wa, W(K(d)("components.richTextEditor.blockquote")), 1)
3240
+ ], 8, za), [[ce, A.value]]),
3233
3241
  n[30] ||= w("span", { class: "rich-text-separator" }, null, -1),
3234
3242
  w("button", {
3235
3243
  type: "button",
3236
3244
  class: F({ "is-active": pe("left") }),
3237
3245
  title: K(d)("components.richTextEditor.alignLeft"),
3238
3246
  onClick: n[9] ||= (e) => G("left")
3239
- }, [D(K(Ct), { size: 17 })], 10, Ua),
3247
+ }, [D(K(Ct), { size: 17 })], 10, Ga),
3240
3248
  w("button", {
3241
3249
  type: "button",
3242
3250
  class: F({ "is-active": pe("center") }),
3243
3251
  title: K(d)("components.richTextEditor.alignCenter"),
3244
3252
  onClick: n[10] ||= (e) => G("center")
3245
- }, [D(K(xt), { size: 17 })], 10, Wa),
3253
+ }, [D(K(xt), { size: 17 })], 10, Ka),
3246
3254
  w("button", {
3247
3255
  type: "button",
3248
3256
  class: F({ "is-active": pe("right") }),
3249
3257
  title: K(d)("components.richTextEditor.alignRight"),
3250
3258
  onClick: n[11] ||= (e) => G("right")
3251
- }, [D(K(wt), { size: 17 })], 10, Ga),
3259
+ }, [D(K(wt), { size: 17 })], 10, qa),
3252
3260
  w("button", {
3253
3261
  type: "button",
3254
3262
  class: F({ "is-active": pe("justify") }),
3255
3263
  title: K(d)("components.richTextEditor.alignJustify"),
3256
3264
  onClick: n[12] ||= (e) => G("justify")
3257
- }, [D(K(St), { size: 17 })], 10, Ka),
3265
+ }, [D(K(St), { size: 17 })], 10, Ja),
3258
3266
  n[31] ||= w("span", { class: "rich-text-break" }, null, -1),
3259
3267
  w("button", {
3260
3268
  type: "button",
3261
3269
  title: K(d)("components.richTextEditor.decreaseIndent"),
3262
3270
  onClick: de
3263
- }, [D(K(At), { size: 17 })], 8, qa),
3271
+ }, [D(K(At), { size: 17 })], 8, Ya),
3264
3272
  w("button", {
3265
3273
  type: "button",
3266
3274
  title: K(d)("components.richTextEditor.increaseIndent"),
3267
3275
  onClick: J
3268
- }, [D(K(jt), { size: 17 })], 8, Ja),
3276
+ }, [D(K(jt), { size: 17 })], 8, Xa),
3269
3277
  w("button", {
3270
3278
  type: "button",
3271
3279
  class: F({ "is-active": X("orderedList") }),
3272
3280
  title: K(d)("components.richTextEditor.orderedList"),
3273
3281
  onClick: n[13] ||= (e) => K(p).chain().focus().toggleOrderedList().run()
3274
- }, [D(K(It), { size: 17 })], 10, Ya),
3282
+ }, [D(K(It), { size: 17 })], 10, Za),
3275
3283
  w("button", {
3276
3284
  type: "button",
3277
3285
  class: F({ "is-active": X("bulletList") }),
3278
3286
  title: K(d)("components.richTextEditor.bulletList"),
3279
3287
  onClick: n[14] ||= (e) => K(p).chain().focus().toggleBulletList().run()
3280
- }, [D(K(Ft), { size: 17 })], 10, Xa),
3288
+ }, [D(K(Ft), { size: 17 })], 10, Qa),
3281
3289
  w("button", {
3282
3290
  type: "button",
3283
3291
  class: F({ "is-active": X("code") }),
3284
3292
  title: K(d)("components.richTextEditor.code"),
3285
3293
  onClick: n[15] ||= (e) => K(p).chain().focus().toggleCode().run()
3286
- }, [...n[26] ||= [w("span", { class: "rich-text-tx" }, [E("T"), w("sub", null, "x")], -1)]], 10, Za),
3294
+ }, [...n[26] ||= [w("span", { class: "rich-text-tx" }, [E("T"), w("sub", null, "x")], -1)]], 10, $a),
3287
3295
  w("button", {
3288
3296
  type: "button",
3289
3297
  title: K(d)("components.richTextEditor.insertLink"),
3290
3298
  onClick: z
3291
- }, [D(K(Pt), { size: 17 })], 8, Qa),
3299
+ }, [D(K(Pt), { size: 17 })], 8, eo),
3292
3300
  w("label", {
3293
3301
  class: "rich-text-select-wrap rich-text-select-wrap--table",
3294
3302
  title: K(d)("components.richTextEditor.table")
@@ -3296,16 +3304,16 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3296
3304
  disabled: m.value,
3297
3305
  onChange: se
3298
3306
  }, [
3299
- w("option", to, W(K(d)("components.richTextEditor.table")), 1),
3300
- w("option", no, W(K(d)("components.richTextEditor.insertTable")), 1),
3301
- w("option", ro, W(K(d)("components.richTextEditor.addColumnBefore")), 1),
3302
- w("option", io, W(K(d)("components.richTextEditor.addColumnAfter")), 1),
3303
- w("option", ao, W(K(d)("components.richTextEditor.deleteColumn")), 1),
3304
- w("option", oo, W(K(d)("components.richTextEditor.addRowBefore")), 1),
3305
- w("option", so, W(K(d)("components.richTextEditor.addRowAfter")), 1),
3306
- w("option", co, W(K(d)("components.richTextEditor.deleteRow")), 1),
3307
- w("option", lo, W(K(d)("components.richTextEditor.deleteTable")), 1)
3308
- ], 40, eo)], 8, $a),
3307
+ w("option", ro, W(K(d)("components.richTextEditor.table")), 1),
3308
+ w("option", io, W(K(d)("components.richTextEditor.insertTable")), 1),
3309
+ w("option", ao, W(K(d)("components.richTextEditor.addColumnBefore")), 1),
3310
+ w("option", oo, W(K(d)("components.richTextEditor.addColumnAfter")), 1),
3311
+ w("option", so, W(K(d)("components.richTextEditor.deleteColumn")), 1),
3312
+ w("option", co, W(K(d)("components.richTextEditor.addRowBefore")), 1),
3313
+ w("option", lo, W(K(d)("components.richTextEditor.addRowAfter")), 1),
3314
+ w("option", uo, W(K(d)("components.richTextEditor.deleteRow")), 1),
3315
+ w("option", fo, W(K(d)("components.richTextEditor.deleteTable")), 1)
3316
+ ], 40, no)], 8, to),
3309
3317
  n[32] ||= w("span", { class: "rich-text-separator" }, null, -1),
3310
3318
  w("button", {
3311
3319
  type: "button",
@@ -3317,24 +3325,24 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3317
3325
  })) : (R(), x(K(Lt), {
3318
3326
  key: 1,
3319
3327
  size: 17
3320
- }))], 8, uo),
3328
+ }))], 8, po),
3321
3329
  w("button", {
3322
3330
  type: "button",
3323
3331
  class: F({ "is-active": c.value }),
3324
3332
  title: K(d)("components.richTextEditor.sourceCode"),
3325
3333
  onClick: te
3326
- }, [D(K(Et), { size: 17 })], 10, fo),
3334
+ }, [D(K(Et), { size: 17 })], 10, mo),
3327
3335
  w("button", {
3328
3336
  type: "button",
3329
3337
  title: K(d)("components.richTextEditor.clearFormat"),
3330
3338
  onClick: Y
3331
- }, [D(K(Dt), { size: 17 })], 8, po),
3339
+ }, [D(K(Dt), { size: 17 })], 8, ho),
3332
3340
  w("button", {
3333
3341
  type: "button",
3334
3342
  class: F({ "is-active": X("blockquote") }),
3335
3343
  title: K(d)("components.richTextEditor.blockquote"),
3336
3344
  onClick: n[17] ||= (e) => K(p).chain().focus().toggleBlockquote().run()
3337
- }, [D(K(Bt), { size: 17 })], 10, mo),
3345
+ }, [D(K(Bt), { size: 17 })], 10, go),
3338
3346
  t.$slots["toolbar-append"] ? (R(), C("div", {
3339
3347
  key: 0,
3340
3348
  class: "rich-text-toolbar-extension",
@@ -3348,7 +3356,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3348
3356
  }, [(R(), x(U(e.component), P({ ref_for: !0 }, e.props, {
3349
3357
  context: _.value,
3350
3358
  disabled: O(e)
3351
- }), null, 16, ["context", "disabled"]))], 40, ho)) : (R(), C("button", {
3359
+ }), null, 16, ["context", "disabled"]))], 40, _o)) : (R(), C("button", {
3352
3360
  key: 1,
3353
3361
  type: "button",
3354
3362
  title: e.label,
@@ -3357,7 +3365,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3357
3365
  }, [e.icon ? (R(), x(U(e.icon), {
3358
3366
  key: 0,
3359
3367
  size: 17
3360
- })) : (R(), C("span", _o, W(e.label), 1))], 8, go))], 64))), 128))
3368
+ })) : (R(), C("span", yo, W(e.label), 1))], 8, vo))], 64))), 128))
3361
3369
  ], 32), c.value ? ue((R(), C("textarea", {
3362
3370
  key: 0,
3363
3371
  "onUpdate:modelValue": n[21] ||= (e) => s.value = e,
@@ -3365,13 +3373,13 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3365
3373
  readonly: m.value,
3366
3374
  style: L({ "--rich-text-max-height": e.maxHeight }),
3367
3375
  onBlur: I
3368
- }, null, 44, vo)), [[le, s.value]]) : (R(), x(K(un), {
3376
+ }, null, 44, bo)), [[le, s.value]]) : (R(), x(K(un), {
3369
3377
  key: 1,
3370
3378
  editor: K(p),
3371
3379
  style: L({ "--rich-text-max-height": e.maxHeight })
3372
3380
  }, null, 8, ["editor", "style"]))], 2)) : S("", !0);
3373
3381
  }
3374
- }), bo = /* @__PURE__ */ e({ default: () => xo }), xo = /*#__PURE__*/ f(yo, [["__scopeId", "data-v-b8951950"]]), So = [
3382
+ }), So = /* @__PURE__ */ e({ default: () => Co }), Co = /*#__PURE__*/ f(xo, [["__scopeId", "data-v-b8951950"]]), wo = [
3375
3383
  {
3376
3384
  code: "en",
3377
3385
  label: "English"
@@ -3420,10 +3428,10 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3420
3428
  code: "fr",
3421
3429
  label: "French"
3422
3430
  }
3423
- ], Co = {
3431
+ ], To = {
3424
3432
  key: 0,
3425
3433
  class: "translate-toolbar__inline"
3426
- }, wo = { class: "translate-toolbar__label" }, To = { class: "translate-toolbar__controls" }, Eo = { class: "translate-toolbar__row" }, Do = /*#__PURE__*/ f(/* @__PURE__ */ k({
3434
+ }, Eo = { class: "translate-toolbar__label" }, Do = { class: "translate-toolbar__controls" }, Oo = { class: "translate-toolbar__row" }, ko = /*#__PURE__*/ f(/* @__PURE__ */ k({
3427
3435
  __name: "translate-toolbar",
3428
3436
  props: {
3429
3437
  disabled: {
@@ -3455,12 +3463,12 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3455
3463
  function a(e) {
3456
3464
  (e === "translate" || e === "polish") && r("translate", e);
3457
3465
  }
3458
- return (t, n) => e.inline ? (R(), C("div", Co, [w("span", wo, [D(K(Nt), {
3466
+ return (t, n) => e.inline ? (R(), C("div", To, [w("span", Eo, [D(K(Nt), {
3459
3467
  class: "translate-toolbar__label-icon",
3460
3468
  size: 16,
3461
3469
  color: "#8994BC",
3462
3470
  "stroke-width": 2
3463
- }), E(" " + W(K(d)("product-management.attribute.translation.label")), 1)]), w("div", To, [
3471
+ }), E(" " + W(K(d)("product-management.attribute.translation.label")), 1)]), w("div", Do, [
3464
3472
  D(K(Pe), {
3465
3473
  "model-value": e.sourceLanguage,
3466
3474
  disabled: e.disabled || e.loading,
@@ -3542,7 +3550,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3542
3550
  "title",
3543
3551
  "aria-label"
3544
3552
  ])]),
3545
- default: J(() => [w("div", Eo, [
3553
+ default: J(() => [w("div", Oo, [
3546
3554
  D(K(Pe), {
3547
3555
  "model-value": e.sourceLanguage,
3548
3556
  disabled: e.disabled || e.loading,
@@ -3608,10 +3616,10 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3608
3616
  _: 1
3609
3617
  }, 8, ["disabled"]));
3610
3618
  }
3611
- }), [["__scopeId", "data-v-df9539f3"]]), Oo = ["element-loading-text"], ko = {
3619
+ }), [["__scopeId", "data-v-df9539f3"]]), Ao = ["element-loading-text"], jo = {
3612
3620
  key: 1,
3613
3621
  class: "translate-field__grid"
3614
- }, Ao = ["for"], jo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3622
+ }, Mo = ["for"], No = /*#__PURE__*/ f(/* @__PURE__ */ k({
3615
3623
  __name: "translate-field",
3616
3624
  props: {
3617
3625
  config: { default: void 0 },
@@ -3632,7 +3640,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3632
3640
  },
3633
3641
  emits: ["update:modelValue"],
3634
3642
  setup(e, { emit: t }) {
3635
- let n = e, r = t, i = b(() => n.config?.language?.length ? n.config.language : So), a = b(() => i.value.map(({ code: e }) => e)), o = b(() => n.config?.layout ?? ([
3643
+ let n = e, r = t, i = b(() => n.config?.language?.length ? n.config.language : wo), a = b(() => i.value.map(({ code: e }) => e)), o = b(() => n.config?.layout ?? ([
3636
3644
  "rich-text",
3637
3645
  "text",
3638
3646
  "textarea"
@@ -3710,7 +3718,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3710
3718
  name: e.code
3711
3719
  }, null, 8, ["label", "name"]))), 128))]),
3712
3720
  _: 1
3713
- }, 8, ["modelValue"]), e.field.type === "rich-text" ? (R(), x(xo, P({ key: 0 }, e.inputProps, {
3721
+ }, 8, ["modelValue"]), e.field.type === "rich-text" ? (R(), x(Co, P({ key: 0 }, e.inputProps, {
3714
3722
  id: `${e.field.prop}-${l.value}`,
3715
3723
  "model-value": String(c.value[l.value] ?? ""),
3716
3724
  placeholder: e.placeholder || s.value,
@@ -3719,7 +3727,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3719
3727
  "tool-context": _(l.value),
3720
3728
  "onUpdate:modelValue": n[3] ||= (e) => h(l.value, e)
3721
3729
  }), {
3722
- "toolbar-append": J(() => [D(Do, {
3730
+ "toolbar-append": J(() => [D(ko, {
3723
3731
  languages: i.value,
3724
3732
  "source-language": u.value,
3725
3733
  "target-language": f.value,
@@ -3758,13 +3766,13 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3758
3766
  "rows",
3759
3767
  "placeholder",
3760
3768
  "disabled"
3761
- ]))], 64)) : (R(), C("div", ko, [(R(!0), C(y, null, V(i.value, (t) => (R(), C("div", {
3769
+ ]))], 64)) : (R(), C("div", jo, [(R(!0), C(y, null, V(i.value, (t) => (R(), C("div", {
3762
3770
  key: t.code,
3763
3771
  class: "translate-field__entry"
3764
3772
  }, [w("label", {
3765
3773
  class: "translate-field__label",
3766
3774
  for: `${e.field.prop}-${t.code}`
3767
- }, W(t.label), 9, Ao), e.field.type === "rich-text" ? (R(), x(xo, P({
3775
+ }, W(t.label), 9, Mo), e.field.type === "rich-text" ? (R(), x(Co, P({
3768
3776
  key: 0,
3769
3777
  ref_for: !0
3770
3778
  }, e.inputProps, {
@@ -3802,7 +3810,7 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3802
3810
  "placeholder",
3803
3811
  "disabled",
3804
3812
  "onUpdate:modelValue"
3805
- ]))]))), 128))])), o.value !== "tabs" || e.field.type !== "rich-text" ? (R(), x(Do, {
3813
+ ]))]))), 128))])), o.value !== "tabs" || e.field.type !== "rich-text" ? (R(), x(ko, {
3806
3814
  key: 2,
3807
3815
  inline: e.field.type === "text" || e.field.type === "textarea",
3808
3816
  languages: i.value,
@@ -3821,12 +3829,12 @@ var xa = ["title"], Sa = ["title"], Ca = ["title"], wa = ["title"], Ta = ["disab
3821
3829
  "target-language",
3822
3830
  "disabled",
3823
3831
  "loading"
3824
- ])) : S("", !0)], 10, Oo)), [[r, p.value]]);
3832
+ ])) : S("", !0)], 10, Ao)), [[r, p.value]]);
3825
3833
  };
3826
3834
  }
3827
3835
  }), [["__scopeId", "data-v-51b67e99"]]);
3828
3836
  // src/components/schema-form/use-field-options.ts
3829
- function Mo(e, t) {
3837
+ function Po(e, t) {
3830
3838
  let { options: n } = Fr(() => {
3831
3839
  let t = e();
3832
3840
  return t.optionSource === "dict" ? t.dictCode : "";
@@ -3837,13 +3845,13 @@ function Mo(e, t) {
3837
3845
  });
3838
3846
  }
3839
3847
  // src/components/schema-form/schema-form-item.vue?vue&type=script&setup=true&lang.ts
3840
- var No = {
3848
+ var Fo = {
3841
3849
  key: 2,
3842
3850
  class: "schema-form-item__dict-tag"
3843
- }, Po = {
3851
+ }, Io = {
3844
3852
  key: 23,
3845
3853
  class: "schema-form-item__tip"
3846
- }, Fo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3854
+ }, Lo = /*#__PURE__*/ f(/* @__PURE__ */ k({
3847
3855
  __name: "schema-form-item",
3848
3856
  props: {
3849
3857
  disabled: { type: Boolean },
@@ -3856,13 +3864,13 @@ var No = {
3856
3864
  },
3857
3865
  emits: ["update:modelValue"],
3858
3866
  setup(e, { emit: t }) {
3859
- let r = e, i = t, a = O(() => Promise.resolve().then(() => Zi)), o = O(() => import("./file-upload-BkRSvBlx.js")), s = O(() => import("./picture-upload-uc9FsqEo.js")), c = O(() => Promise.resolve().then(() => bo)), l = b(() => r.context ?? {
3867
+ let r = e, i = t, a = O(() => Promise.resolve().then(() => $i)), o = O(() => import("./file-upload-BkRSvBlx.js")), s = O(() => import("./picture-upload-uc9FsqEo.js")), c = O(() => Promise.resolve().then(() => So)), l = b(() => r.context ?? {
3860
3868
  mode: "create",
3861
3869
  values: {}
3862
- }), u = Mo(() => r.field, l), d = b(() => ({
3870
+ }), u = Po(() => r.field, l), d = b(() => ({
3863
3871
  ...l.value,
3864
3872
  updateValue: z
3865
- })), f = b(() => typeof r.field.props == "function" ? r.field.props(d.value) : r.field.props), p = b(() => ba(r.field, l.value)), m = b(() => ya(r.field)), h = b(() => r.field.copyable ?? !!r.field.readonly), g = b(() => !!r.field.translateConfig && [
3873
+ })), f = b(() => typeof r.field.props == "function" ? r.field.props(d.value) : r.field.props), p = b(() => Sa(r.field, l.value)), m = b(() => xa(r.field)), h = b(() => r.field.copyable ?? !!r.field.readonly), g = b(() => !!r.field.translateConfig && [
3866
3874
  "rich-text",
3867
3875
  "text",
3868
3876
  "textarea"
@@ -3913,7 +3921,7 @@ var No = {
3913
3921
  fileOriginName: t.fileOriginName ?? t.name ?? t.url ?? t.fileUrl
3914
3922
  };
3915
3923
  }).filter((e) => !!e);
3916
- }), A = b(() => f.value?.maxPreviewCount ?? f.value?.maxCount ?? 3), j = b(() => fa(r.field.component)), M = b(() => {
3924
+ }), A = b(() => f.value?.maxPreviewCount ?? f.value?.maxCount ?? 3), j = b(() => ma(r.field.component)), M = b(() => {
3917
3925
  let e = j.value;
3918
3926
  return e ? {
3919
3927
  ...f.value,
@@ -3932,7 +3940,7 @@ var No = {
3932
3940
  getFormData: () => l.value.values,
3933
3941
  mode: l.value.mode
3934
3942
  }
3935
- })), I = b(() => r.field.apiOptions), L = b(() => I.value ? ra(I.value.entityKey) : void 0), te = b(() => {
3943
+ })), I = b(() => r.field.apiOptions), L = b(() => I.value ? aa(I.value.entityKey) : void 0), te = b(() => {
3936
3944
  let e = L.value, t = I.value;
3937
3945
  return !e || !t ? null : {
3938
3946
  columns: e.columns ?? [],
@@ -3979,7 +3987,7 @@ var No = {
3979
3987
  prop: e.field.prop,
3980
3988
  rules: p.value
3981
3989
  }, {
3982
- default: J(() => [g.value ? (R(), x(jo, {
3990
+ default: J(() => [g.value ? (R(), x(No, {
3983
3991
  key: 0,
3984
3992
  config: e.field.translateConfig,
3985
3993
  context: l.value,
@@ -4005,7 +4013,7 @@ var No = {
4005
4013
  key: 1,
4006
4014
  "model-value": e.modelValue,
4007
4015
  placeholder: m.value
4008
- }, ee.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", No, [(R(!0), C(y, null, V(T.value, (t, n) => (R(), x(Ir, {
4016
+ }, ee.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span", Fo, [(R(!0), C(y, null, V(T.value, (t, n) => (R(), x(Ir, {
4009
4017
  key: `${e.field.prop}-${n}`,
4010
4018
  code: e.field.dictCode,
4011
4019
  value: t
@@ -4017,7 +4025,7 @@ var No = {
4017
4025
  key: 4,
4018
4026
  attachments: k.value,
4019
4027
  "max-preview-count": A.value
4020
- }, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(ca, {
4028
+ }, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(ua, {
4021
4029
  key: 5,
4022
4030
  value: w.value,
4023
4031
  copyable: h.value
@@ -4172,10 +4180,10 @@ var No = {
4172
4180
  "disabled",
4173
4181
  "fetcher",
4174
4182
  "options"
4175
- ])) : (R(), x(ca, {
4183
+ ])) : (R(), x(ua, {
4176
4184
  key: 22,
4177
4185
  value: e.modelValue
4178
- }, null, 8, ["value"])), e.field.tip ? (R(), C("div", Po, W(e.field.tip), 1)) : S("", !0)]),
4186
+ }, null, 8, ["value"])), e.field.tip ? (R(), C("div", Io, W(e.field.tip), 1)) : S("", !0)]),
4179
4187
  _: 3
4180
4188
  }, 8, [
4181
4189
  "class",
@@ -4185,20 +4193,20 @@ var No = {
4185
4193
  "rules"
4186
4194
  ]));
4187
4195
  }
4188
- }), [["__scopeId", "data-v-851da92c"]]), Io = { class: "schema-form-root" }, Lo = {
4196
+ }), [["__scopeId", "data-v-851da92c"]]), Ro = { class: "schema-form-root" }, zo = {
4189
4197
  key: 0,
4190
4198
  class: "schema-form__row-break",
4191
4199
  "aria-hidden": "true"
4192
- }, Ro = {
4200
+ }, Bo = {
4193
4201
  key: 0,
4194
4202
  class: "schema-form-group__header"
4195
- }, zo = { class: "schema-form-group__index" }, Bo = { class: "schema-form-group__heading" }, Vo = { key: 0 }, Ho = {
4203
+ }, Vo = { class: "schema-form-group__index" }, Ho = { class: "schema-form-group__heading" }, Uo = { key: 0 }, Wo = {
4196
4204
  key: 0,
4197
4205
  class: "schema-form-group__required-note"
4198
- }, Uo = { key: 1 }, Wo = {
4206
+ }, Go = { key: 1 }, Ko = {
4199
4207
  key: 0,
4200
4208
  class: "schema-form-group__tip"
4201
- }, Go = /*#__PURE__*/ f(/* @__PURE__ */ k({
4209
+ }, qo = /*#__PURE__*/ f(/* @__PURE__ */ k({
4202
4210
  __name: "schema-form",
4203
4211
  props: /*@__PURE__*/ N({
4204
4212
  columns: { default: 1 },
@@ -4231,11 +4239,11 @@ var No = {
4231
4239
  let n = e, r = oe(e, "modelValue"), i = B(), a = b(() => n.schema), o = b(() => ({
4232
4240
  mode: n.mode,
4233
4241
  values: r.value ?? {}
4234
- })), s = b(() => a.value.filter((e) => va(e, o.value) ? !1 : !ha(e) || c(e).length > 0));
4242
+ })), s = b(() => a.value.filter((e) => ba(e, o.value) ? !1 : !_a(e) || c(e).length > 0));
4235
4243
  function c(e) {
4236
- return e.children.filter((e) => !va(e, o.value));
4244
+ return e.children.filter((e) => !ba(e, o.value));
4237
4245
  }
4238
- let l = b(() => s.value.flatMap((e) => ha(e) ? c(e) : [e])), u = b(() => Math.floor(24 / n.columns)), d = b(() => ({
4246
+ let l = b(() => s.value.flatMap((e) => _a(e) ? c(e) : [e])), u = b(() => Math.floor(24 / n.columns)), d = b(() => ({
4239
4247
  [`schema-form--label-align-${n.labelAlign}`]: !!n.labelAlign,
4240
4248
  "schema-form--underline": n.underline
4241
4249
  })), f = b(() => n.mode === "view" ? "left" : n.labelPosition);
@@ -4248,20 +4256,20 @@ var No = {
4248
4256
  "--schema-form-label-gap": p(n.labelGap)
4249
4257
  }));
4250
4258
  function h(e, t) {
4251
- return ha(e) ? `group-${t}-${e.label}` : e.prop;
4259
+ return _a(e) ? `group-${t}-${e.label}` : e.prop;
4252
4260
  }
4253
4261
  function g(e, t = !1) {
4254
4262
  return t ? { gridColumn: e.newRow ? "1 / -1" : `span ${e.span ?? u.value}` } : { flex: `${e.span ?? 1} 1 0` };
4255
4263
  }
4256
4264
  function _(e) {
4257
- return c(e).some((e) => _a(e.required, o.value));
4265
+ return c(e).some((e) => ya(e.required, o.value));
4258
4266
  }
4259
4267
  function v(e) {
4260
- let t = s.value.filter((e) => ha(e) && !!e.anchor);
4268
+ let t = s.value.filter((e) => _a(e) && !!e.anchor);
4261
4269
  return String(t.indexOf(e) + 1).padStart(2, "0");
4262
4270
  }
4263
4271
  function T(e, t) {
4264
- return n.disabled || _a(t?.disabled, o.value) || _a(e.disabled, o.value);
4272
+ return n.disabled || ya(t?.disabled, o.value) || ya(e.disabled, o.value);
4265
4273
  }
4266
4274
  function E(e) {
4267
4275
  return n.mode === "view" || !!e.readonly;
@@ -4274,7 +4282,7 @@ var No = {
4274
4282
  }
4275
4283
  q([a, r], () => {
4276
4284
  let e = r.value ?? {}, t = {};
4277
- for (let n of ga(a.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4285
+ for (let n of va(a.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
4278
4286
  Object.keys(t).length > 0 && (r.value = {
4279
4287
  ...e,
4280
4288
  ...t
@@ -4295,7 +4303,7 @@ var No = {
4295
4303
  getValues: () => Object.fromEntries(l.value.map((e) => [e.prop, r.value?.[e.prop]]))
4296
4304
  }), (t, n) => {
4297
4305
  let l = re("loading");
4298
- return R(), C("div", Io, [ue((R(), x(K(Se), {
4306
+ return R(), C("div", Ro, [ue((R(), x(K(Se), {
4299
4307
  ref_key: "formRef",
4300
4308
  ref: i,
4301
4309
  class: F(["schema-form", d.value]),
@@ -4305,7 +4313,7 @@ var No = {
4305
4313
  "label-position": f.value
4306
4314
  }, {
4307
4315
  default: J(() => [D(K(Ne), { gutter: 16 }, {
4308
- default: J(() => [(R(!0), C(y, null, V(s.value, (e, n) => (R(), C(y, { key: h(e, n) }, [e.newRow ? (R(), C("div", Lo)) : S("", !0), D(K(ge), {
4316
+ default: J(() => [(R(!0), C(y, null, V(s.value, (e, n) => (R(), C(y, { key: h(e, n) }, [e.newRow ? (R(), C("div", zo)) : S("", !0), D(K(ge), {
4309
4317
  span: e.span ?? (e.type === "group" ? 24 : u.value),
4310
4318
  class: F({
4311
4319
  "schema-form-col--anchor-group": e.type === "group" && e.anchor,
@@ -4318,12 +4326,12 @@ var No = {
4318
4326
  "data-form-anchor": e.anchor ? a.value.indexOf(e) : void 0,
4319
4327
  label: e.label
4320
4328
  }, {
4321
- label: J(() => [e.anchor ? (R(), C("div", Ro, [
4322
- w("span", zo, W(v(e)), 1),
4323
- w("span", Bo, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Vo, W(e.description), 1)) : S("", !0)]),
4324
- _(e) ? (R(), C("span", Ho, " 为必填项 ")) : S("", !0)
4325
- ])) : (R(), C("span", Uo, W(e.label), 1))]),
4326
- default: J(() => [w("div", { class: F(["schema-form-group__body", { "schema-form-group__body--grid": e.anchor }]) }, [(R(!0), C(y, null, V(c(e), (n) => (R(), x(Fo, {
4329
+ label: J(() => [e.anchor ? (R(), C("div", Bo, [
4330
+ w("span", Vo, W(v(e)), 1),
4331
+ w("span", Ho, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Uo, W(e.description), 1)) : S("", !0)]),
4332
+ _(e) ? (R(), C("span", Wo, " 为必填项 ")) : S("", !0)
4333
+ ])) : (R(), C("span", Go, W(e.label), 1))]),
4334
+ default: J(() => [w("div", { class: F(["schema-form-group__body", { "schema-form-group__body--grid": e.anchor }]) }, [(R(!0), C(y, null, V(c(e), (n) => (R(), x(Lo, {
4327
4335
  key: n.prop,
4328
4336
  style: L(g(n, e.anchor)),
4329
4337
  "hide-label": !e.anchor,
@@ -4347,13 +4355,13 @@ var No = {
4347
4355
  "disabled",
4348
4356
  "readonly",
4349
4357
  "onUpdate:modelValue"
4350
- ]))), 128))], 2), e.tip ? (R(), C("div", Wo, W(e.tip), 1)) : S("", !0)]),
4358
+ ]))), 128))], 2), e.tip ? (R(), C("div", Ko, W(e.tip), 1)) : S("", !0)]),
4351
4359
  _: 2
4352
4360
  }, 1032, [
4353
4361
  "class",
4354
4362
  "data-form-anchor",
4355
4363
  "label"
4356
- ])) : (R(), x(Fo, {
4364
+ ])) : (R(), x(Lo, {
4357
4365
  key: 1,
4358
4366
  field: e,
4359
4367
  context: o.value,
@@ -4388,11 +4396,11 @@ var No = {
4388
4396
  ])), [[l, e.loading]])]);
4389
4397
  };
4390
4398
  }
4391
- }), [["__scopeId", "data-v-38d44833"]]), Ko = { class: "drawer-form-page__header" }, qo = { class: "drawer-form-page__header-main" }, Jo = { class: "drawer-form-page__title-stack" }, Yo = { class: "drawer-form-page__title" }, Xo = { class: "drawer-form-page__header-actions" }, Zo = { class: "drawer-form-page__status" }, Qo = {
4399
+ }), [["__scopeId", "data-v-38d44833"]]), Jo = { class: "drawer-form-page__header" }, Yo = { class: "drawer-form-page__header-main" }, Xo = { class: "drawer-form-page__title-stack" }, Zo = { class: "drawer-form-page__title" }, Qo = { class: "drawer-form-page__header-actions" }, $o = { class: "drawer-form-page__status" }, es = {
4392
4400
  key: 0,
4393
4401
  class: "drawer-form-page__anchors",
4394
4402
  "aria-label": "表单分区"
4395
- }, $o = ["onClick"], es = { class: "drawer-form-page__footer" }, ts = /*#__PURE__*/ f(/* @__PURE__ */ k({
4403
+ }, ts = ["onClick"], ns = { class: "drawer-form-page__footer" }, rs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4396
4404
  __name: "index",
4397
4405
  props: {
4398
4406
  modelValue: {
@@ -4569,10 +4577,10 @@ var No = {
4569
4577
  fullscreen: f.value,
4570
4578
  title: r.title,
4571
4579
  toggleFullscreen: O
4572
- }, () => [w("div", Ko, [
4573
- w("div", qo, [w("div", Jo, [w("span", Yo, W(r.title), 1)])]),
4574
- w("div", Xo, [
4575
- w("span", Zo, [t[2] ||= w("i", { "aria-hidden": "true" }, null, -1), E(" " + W(g.value), 1)]),
4580
+ }, () => [w("div", Jo, [
4581
+ w("div", Yo, [w("div", Xo, [w("span", Zo, W(r.title), 1)])]),
4582
+ w("div", Qo, [
4583
+ w("span", $o, [t[2] ||= w("i", { "aria-hidden": "true" }, null, -1), E(" " + W(g.value), 1)]),
4576
4584
  r.fullscreenButton ? (R(), x(K(He), {
4577
4585
  key: 0,
4578
4586
  content: f.value ? "退出全屏" : "全屏",
@@ -4600,21 +4608,21 @@ var No = {
4600
4608
  _: 1
4601
4609
  })
4602
4610
  ]),
4603
- v.value.length ? (R(), C("nav", Qo, [(R(!0), C(y, null, V(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4611
+ v.value.length ? (R(), C("nav", es, [(R(!0), C(y, null, V(v.value, ({ entry: e, index: t }) => (R(), C("button", {
4604
4612
  key: t,
4605
4613
  type: "button",
4606
4614
  class: F(["drawer-form-page__anchor", { "is-active": a.value === t }]),
4607
4615
  onClick: (e) => {
4608
4616
  a.value = t, k(t);
4609
4617
  }
4610
- }, W(e.label), 11, $o))), 128))])) : S("", !0)
4618
+ }, W(e.label), 11, ts))), 128))])) : S("", !0)
4611
4619
  ])], !0)]),
4612
4620
  default: J(() => [ue((R(), C("div", {
4613
4621
  ref_key: "contentRef",
4614
4622
  ref: c,
4615
4623
  class: "drawer-form-page__content",
4616
4624
  onScrollPassive: ie
4617
- }, [D(Go, P({
4625
+ }, [D(qo, P({
4618
4626
  ref_key: "formRef",
4619
4627
  ref: s
4620
4628
  }, r.schemaFormProps, {
@@ -4643,7 +4651,7 @@ var No = {
4643
4651
  cancel: M,
4644
4652
  submit: te,
4645
4653
  submitting: r.submitting
4646
- }, () => [w("div", es, [r.showCancelButton ? (R(), x(K(Y), {
4654
+ }, () => [w("div", ns, [r.showCancelButton ? (R(), x(K(Y), {
4647
4655
  key: 0,
4648
4656
  disabled: r.submitting,
4649
4657
  onClick: M
@@ -4676,11 +4684,11 @@ var No = {
4676
4684
  }
4677
4685
  }), [["__scopeId", "data-v-e07a25ed"]]);
4678
4686
  // src/components/drawer-form-page/use-drawer-form-page.ts
4679
- function ns(e = {}) {
4680
- let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = B(!1), l = B(rs(o ?? n ?? {})), u = z({ ...s }), d = B(), f;
4687
+ function is(e = {}) {
4688
+ let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = B(!1), l = B(as(o ?? n ?? {})), u = z({ ...s }), d = B(), f;
4681
4689
  function p(e = {}) {
4682
4690
  let { values: t, ...r } = e;
4683
- Object.assign(u, r), l.value = rs(t ?? n ?? {}), c.value = !0;
4691
+ Object.assign(u, r), l.value = as(t ?? n ?? {}), c.value = !0;
4684
4692
  }
4685
4693
  function m() {
4686
4694
  c.value = !1;
@@ -4708,7 +4716,7 @@ function ns(e = {}) {
4708
4716
  }
4709
4717
  function x(e) {
4710
4718
  let { values: t, ...n } = e;
4711
- Object.assign(u, n), t !== void 0 && (l.value = rs(t));
4719
+ Object.assign(u, n), t !== void 0 && (l.value = as(t));
4712
4720
  }
4713
4721
  return f = {
4714
4722
  close: m,
@@ -4726,7 +4734,7 @@ function ns(e = {}) {
4726
4734
  name: "DrawerFormPageProvider",
4727
4735
  inheritAttrs: !1,
4728
4736
  setup(e, { attrs: n, slots: i }) {
4729
- return () => j(ts, {
4737
+ return () => j(rs, {
4730
4738
  ...n,
4731
4739
  ...u,
4732
4740
  ref: d,
@@ -4751,14 +4759,14 @@ function ns(e = {}) {
4751
4759
  }
4752
4760
  }), f];
4753
4761
  }
4754
- function rs(e) {
4762
+ function as(e) {
4755
4763
  return { ...e };
4756
4764
  }
4757
4765
  // src/components/search-form/index.vue?vue&type=script&setup=true&lang.ts
4758
- var is = {
4766
+ var os = {
4759
4767
  key: 0,
4760
4768
  class: "search-form__actions"
4761
- }, as = /*#__PURE__*/ f(/* @__PURE__ */ k({
4769
+ }, ss = /*#__PURE__*/ f(/* @__PURE__ */ k({
4762
4770
  __name: "index",
4763
4771
  props: /*@__PURE__*/ N({
4764
4772
  collapsedRows: { default: 2 },
@@ -4785,12 +4793,12 @@ var is = {
4785
4793
  let r = e, i = n, a = oe(e, "modelValue"), o = se(), s = B(!1), c = B(), l = b(() => r.schema), u = b(() => ({
4786
4794
  mode: r.mode,
4787
4795
  values: a.value ?? {}
4788
- })), d = b(() => l.value.filter((e) => va(e, u.value) ? !1 : !ha(e) || g(e).length > 0)), f = b(() => Math.max(r.columns * r.collapsedRows, r.columns)), p = b(() => r.showActions && d.value.length > f.value), m = b(() => !p.value || s.value ? d.value : d.value.slice(0, f.value)), h = b(() => Object.keys(o));
4796
+ })), d = b(() => l.value.filter((e) => ba(e, u.value) ? !1 : !_a(e) || g(e).length > 0)), f = b(() => Math.max(r.columns * r.collapsedRows, r.columns)), p = b(() => r.showActions && d.value.length > f.value), m = b(() => !p.value || s.value ? d.value : d.value.slice(0, f.value)), h = b(() => Object.keys(o));
4789
4797
  function g(e) {
4790
- return e.children.filter((e) => !va(e, u.value));
4798
+ return e.children.filter((e) => !ba(e, u.value));
4791
4799
  }
4792
4800
  function _() {
4793
- return ga(l.value);
4801
+ return va(l.value);
4794
4802
  }
4795
4803
  function v() {
4796
4804
  return Object.fromEntries(_().map((e) => [e.prop, e.defaultValue]));
@@ -4817,7 +4825,7 @@ var is = {
4817
4825
  }), (t, n) => (R(), C("form", {
4818
4826
  class: "search-form",
4819
4827
  onSubmit: fe(w, ["prevent"])
4820
- }, [D(Go, {
4828
+ }, [D(qo, {
4821
4829
  ref_key: "schemaFormRef",
4822
4830
  ref: c,
4823
4831
  modelValue: a.value,
@@ -4841,7 +4849,7 @@ var is = {
4841
4849
  "schema",
4842
4850
  "mode",
4843
4851
  "label-width"
4844
- ]), e.showActions ? (R(), C("div", is, [
4852
+ ]), e.showActions ? (R(), C("div", os, [
4845
4853
  D(K(Y), {
4846
4854
  type: "primary",
4847
4855
  "native-type": "submit"
@@ -4869,7 +4877,7 @@ var is = {
4869
4877
  }, 8, ["icon"])) : S("", !0)
4870
4878
  ])) : S("", !0)], 32));
4871
4879
  }
4872
- }), [["__scopeId", "data-v-3392f119"]]), os = /*#__PURE__*/ f(/* @__PURE__ */ k({
4880
+ }), [["__scopeId", "data-v-3392f119"]]), cs = /*#__PURE__*/ f(/* @__PURE__ */ k({
4873
4881
  __name: "index",
4874
4882
  props: {
4875
4883
  fields: { default: () => [] },
@@ -5053,7 +5061,7 @@ var is = {
5053
5061
  function de(e = {}) {
5054
5062
  f.value = { ...e }, oe(f.value);
5055
5063
  }
5056
- let [fe, X] = ns({
5064
+ let [fe, X] = is({
5057
5065
  ...r.drawerProps,
5058
5066
  schema: m.value,
5059
5067
  schemaFormProps: {
@@ -5231,14 +5239,14 @@ var is = {
5231
5239
  reload: ke
5232
5240
  }), (e, t) => {
5233
5241
  let n = re("access");
5234
- return R(), C(y, null, [D(ea, null, {
5242
+ return R(), C(y, null, [D(na, null, {
5235
5243
  default: J(() => [
5236
5244
  H(e.$slots, "prepend", {}, void 0, !0),
5237
5245
  e.$slots.search ? H(e.$slots, "search", {
5238
5246
  values: f.value,
5239
5247
  search: q,
5240
5248
  reset: de
5241
- }, void 0, !0, 0) : g.value ? (R(), x(as, P({
5249
+ }, void 0, !0, 0) : g.value ? (R(), x(ss, P({
5242
5250
  key: 1,
5243
5251
  modelValue: f.value,
5244
5252
  "onUpdate:modelValue": t[0] ||= (e) => f.value = e,
@@ -5251,7 +5259,7 @@ var is = {
5251
5259
  name: t,
5252
5260
  fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
5253
5261
  }))]), 1040, ["modelValue", "schema"])) : S("", !0),
5254
- D(Mi, P({
5262
+ D(Pi, P({
5255
5263
  ref_key: "tableRef",
5256
5264
  ref: o
5257
5265
  }, F.value, {
@@ -5336,7 +5344,7 @@ var is = {
5336
5344
  ]), 1024)], 64);
5337
5345
  };
5338
5346
  }
5339
- }), [["__scopeId", "data-v-d344d607"]]), ss = /* @__PURE__ */ k({
5347
+ }), [["__scopeId", "data-v-d344d607"]]), ls = /* @__PURE__ */ k({
5340
5348
  __name: "index",
5341
5349
  props: {
5342
5350
  className: { default: "disguiseicon" },
@@ -5346,7 +5354,7 @@ var is = {
5346
5354
  let t = e;
5347
5355
  return (e, n) => (R(), x(K(Z), P(e.$attrs, { class: ["disguise iconfont", t.icon ? `${t.className}-${t.icon}` : void 0] }), null, 16, ["class"]));
5348
5356
  }
5349
- }), cs = ["src"], ls = { class: "image-upload__mask" }, us = { class: "image-upload__text" }, ds = /*#__PURE__*/ f(/* @__PURE__ */ k({
5357
+ }), us = ["src"], ds = { class: "image-upload__mask" }, fs = { class: "image-upload__text" }, ps = /*#__PURE__*/ f(/* @__PURE__ */ k({
5350
5358
  __name: "index",
5351
5359
  props: /*@__PURE__*/ N({
5352
5360
  accept: { default: () => [
@@ -5399,7 +5407,7 @@ var is = {
5399
5407
  src: o.value,
5400
5408
  alt: "",
5401
5409
  class: "image-upload__img"
5402
- }, null, 8, cs), w("div", ls, [D(K(Z), {
5410
+ }, null, 8, us), w("div", ds, [D(K(Z), {
5403
5411
  class: "image-upload__action",
5404
5412
  title: K(d)("components.imageUpload.preview"),
5405
5413
  onClick: n[0] ||= (e) => a.value = !0
@@ -5428,7 +5436,7 @@ var is = {
5428
5436
  }, [D(K(Z), { class: F(["image-upload__icon", { "is-loading": i.value }]) }, {
5429
5437
  default: J(() => [i.value ? (R(), x(K(at), { key: 0 })) : (R(), x(K(st), { key: 1 }))]),
5430
5438
  _: 1
5431
- }, 8, ["class"]), w("span", us, W(i.value ? K(d)("components.imageUpload.uploading") : K(d)("components.imageUpload.upload")), 1)], 4)]),
5439
+ }, 8, ["class"]), w("span", fs, W(i.value ? K(d)("components.imageUpload.uploading") : K(d)("components.imageUpload.upload")), 1)], 4)]),
5432
5440
  _: 1
5433
5441
  }, 8, ["accept", "disabled"])), a.value ? (R(), x(K(we), {
5434
5442
  key: 2,
@@ -5439,7 +5447,7 @@ var is = {
5439
5447
  }
5440
5448
  }), [["__scopeId", "data-v-c6aeef2e"]]);
5441
5449
  // src/setup.ts
5442
- function fs(e = {}) {
5450
+ function ms(e = {}) {
5443
5451
  l(e);
5444
5452
  }
5445
- export { Qi as AsyncSelect, ea as BaseCard, os as CrudPage, Li as DialogList, Ir as DictTag, ss as DisguiseIcon, ts as DrawerFormPage, g as FileUpload, ds as ImageUpload, t as ImagesView, ar as ImportDialog, v as PictureUpload, xo as RichTextEditor, Go as SchemaForm, as as SearchForm, Mi as TableEntity, m as UserAvatarInfo, ra as getEntity, ia as paginateLocally, na as registerEntity, da as registerSchemaFormComponents, fs as setupDisguise, ns as useDrawerFormPage };
5453
+ export { ea as AsyncSelect, na as BaseCard, cs as CrudPage, zi as DialogList, Ir as DictTag, ls as DisguiseIcon, rs as DrawerFormPage, g as FileUpload, ps as ImageUpload, t as ImagesView, ar as ImportDialog, v as PictureUpload, Co as RichTextEditor, qo as SchemaForm, ss as SearchForm, Pi as TableEntity, m as UserAvatarInfo, aa as getEntity, oa as paginateLocally, ia as registerEntity, pa as registerSchemaFormComponents, ms as setupDisguise, is as useDrawerFormPage };