disguise-ui 0.2.6 → 0.2.8
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/dist/disguise-ui.js
CHANGED
|
@@ -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 },
|
|
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, (
|
|
1441
|
-
key: `${
|
|
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(
|
|
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",
|
|
1461
|
+
})])) : S("", !0)])) : (R(), C("span", ti, "-"));
|
|
1455
1462
|
}
|
|
1456
|
-
}), [["__scopeId", "data-v-
|
|
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
|
-
},
|
|
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",
|
|
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
|
|
1481
|
+
function si(e) {
|
|
1475
1482
|
return `${e}Col`;
|
|
1476
1483
|
}
|
|
1477
|
-
var
|
|
1484
|
+
var ci = [
|
|
1478
1485
|
"create_time",
|
|
1479
1486
|
"createTime",
|
|
1480
1487
|
"created_at",
|
|
1481
1488
|
"createdAt",
|
|
1482
1489
|
"created_time"
|
|
1483
|
-
],
|
|
1490
|
+
], li = [
|
|
1484
1491
|
"update_time",
|
|
1485
1492
|
"updateTime",
|
|
1486
1493
|
"updated_at",
|
|
1487
1494
|
"updatedAt",
|
|
1488
1495
|
"updated_time"
|
|
1489
1496
|
];
|
|
1490
|
-
function
|
|
1497
|
+
function ui(e) {
|
|
1491
1498
|
return e == null || e === "";
|
|
1492
1499
|
}
|
|
1493
|
-
function
|
|
1494
|
-
return
|
|
1500
|
+
function di(e) {
|
|
1501
|
+
return ci.includes(e) ? ci : li.includes(e) ? li : [];
|
|
1495
1502
|
}
|
|
1496
|
-
function
|
|
1503
|
+
function fi(e, t, n) {
|
|
1497
1504
|
let r = n === void 0 ? e?.[t] : n;
|
|
1498
|
-
if (!
|
|
1499
|
-
for (let n of
|
|
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 (!
|
|
1509
|
+
if (!ui(r)) return r;
|
|
1503
1510
|
}
|
|
1504
1511
|
return r;
|
|
1505
1512
|
}
|
|
1506
|
-
function
|
|
1507
|
-
return
|
|
1513
|
+
function pi(e, t) {
|
|
1514
|
+
return ui(e) ? "--" : t === "datetime" ? yn(e) : t === "date" ? vn(e) : mi(e);
|
|
1508
1515
|
}
|
|
1509
|
-
function
|
|
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
|
|
1526
|
+
function hi(e) {
|
|
1520
1527
|
return String(e.key ?? e.dataKey ?? e.dataIndex ?? "");
|
|
1521
1528
|
}
|
|
1522
|
-
function
|
|
1529
|
+
function gi(e, t) {
|
|
1523
1530
|
return `${String(e)}::${t}`;
|
|
1524
1531
|
}
|
|
1525
|
-
function
|
|
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
|
|
1535
|
-
function
|
|
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) =>
|
|
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
|
|
1539
|
-
function
|
|
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(
|
|
1549
|
+
case "avatar": return j(bi, {
|
|
1543
1550
|
row: t,
|
|
1544
1551
|
value: n
|
|
1545
1552
|
});
|
|
1546
|
-
case "file": return j(
|
|
1553
|
+
case "file": return j(vi, {
|
|
1547
1554
|
...a,
|
|
1548
|
-
attachments:
|
|
1555
|
+
attachments: Ci(n),
|
|
1549
1556
|
maxPreviewCount: i
|
|
1550
1557
|
});
|
|
1551
|
-
case "picture": return j(
|
|
1558
|
+
case "picture": return j(yi, {
|
|
1552
1559
|
...a,
|
|
1553
|
-
urls:
|
|
1560
|
+
urls: Si(n),
|
|
1554
1561
|
maxPreviewCount: i
|
|
1555
1562
|
});
|
|
1556
|
-
case "price": return j(
|
|
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 =
|
|
1563
|
-
return j(
|
|
1564
|
-
items:
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 _ =
|
|
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
|
|
1678
|
+
var Di = { class: "table-entity__toolbar-right" }, Oi = { class: "buttons" }, ki = {
|
|
1671
1679
|
key: 0,
|
|
1672
1680
|
class: "table-entity__toolbar-left"
|
|
1673
|
-
},
|
|
1681
|
+
}, Ai = {
|
|
1674
1682
|
key: 1,
|
|
1675
1683
|
class: "table-entity__pagination"
|
|
1676
|
-
},
|
|
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(() =>
|
|
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) =>
|
|
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(
|
|
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 || `.${
|
|
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:
|
|
1962
|
-
dataKey:
|
|
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:
|
|
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:
|
|
1994
|
-
dataKey:
|
|
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 !==
|
|
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 ===
|
|
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",
|
|
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",
|
|
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"]]),
|
|
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
|
-
},
|
|
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",
|
|
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",
|
|
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
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
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",
|
|
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",
|
|
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,
|
|
2716
|
-
default: J((e) => [e?.item ? (R(), C("div",
|
|
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,
|
|
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,
|
|
2752
|
+
}, null, 8, Zi)]),
|
|
2745
2753
|
_: 1
|
|
2746
|
-
})], 42,
|
|
2747
|
-
e.columns.length > 0 ? (R(), x(
|
|
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
|
-
}),
|
|
2779
|
+
}), $i = /* @__PURE__ */ e({ default: () => ea }), ea = /*#__PURE__*/ f(Qi, [["__scopeId", "data-v-f23a4e1b"]]), ta = { theme: { get cardShadow() {
|
|
2772
2780
|
return a().value;
|
|
2773
|
-
} } },
|
|
2781
|
+
} } }, na = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
2774
2782
|
inheritAttrs: !1,
|
|
2775
2783
|
__name: "index",
|
|
2776
2784
|
setup(e) {
|
|
2777
|
-
let t = b(() =>
|
|
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"]]),
|
|
2784
|
-
function
|
|
2785
|
-
|
|
2791
|
+
}), [["__scopeId", "data-v-ed977a22"]]), ra = /* @__PURE__ */ new Map();
|
|
2792
|
+
function ia(e) {
|
|
2793
|
+
ra.set(e.key, e);
|
|
2786
2794
|
}
|
|
2787
|
-
function
|
|
2788
|
-
return
|
|
2795
|
+
function aa(e) {
|
|
2796
|
+
return ra.get(e);
|
|
2789
2797
|
}
|
|
2790
|
-
function
|
|
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
|
|
2806
|
+
var sa = { class: "readonly-text" }, ca = {
|
|
2799
2807
|
key: 0,
|
|
2800
2808
|
class: "readonly-text__value"
|
|
2801
|
-
},
|
|
2809
|
+
}, la = {
|
|
2802
2810
|
key: 1,
|
|
2803
2811
|
class: "readonly-text__empty"
|
|
2804
|
-
},
|
|
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",
|
|
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"]]),
|
|
2829
|
-
function
|
|
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
|
|
2833
|
-
for (let [t, n] of Object.entries(e)) n && (
|
|
2840
|
+
function pa(e) {
|
|
2841
|
+
for (let [t, n] of Object.entries(e)) n && (da[t] = n);
|
|
2834
2842
|
}
|
|
2835
|
-
function
|
|
2843
|
+
function ma(e) {
|
|
2836
2844
|
if (!e) return;
|
|
2837
|
-
if (typeof e != "string") return
|
|
2838
|
-
let t =
|
|
2839
|
-
return t ?
|
|
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
|
|
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
|
|
2857
|
-
return
|
|
2864
|
+
function ga(e) {
|
|
2865
|
+
return ha.has(e.type);
|
|
2858
2866
|
}
|
|
2859
|
-
function
|
|
2867
|
+
function _a(e) {
|
|
2860
2868
|
return e.type === "group";
|
|
2861
2869
|
}
|
|
2862
|
-
function
|
|
2863
|
-
return e.flatMap((e) =>
|
|
2870
|
+
function va(e) {
|
|
2871
|
+
return e.flatMap((e) => _a(e) ? e.children : [e]);
|
|
2864
2872
|
}
|
|
2865
|
-
function
|
|
2873
|
+
function ya(e, t) {
|
|
2866
2874
|
return typeof e == "function" ? e(t) : e === !0;
|
|
2867
2875
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return t.mode === "create" && e.hideOnCreate || t.mode === "edit" && e.hideOnEdit ? !0 :
|
|
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
|
|
2879
|
+
function xa(e) {
|
|
2872
2880
|
if (e.placeholder) return e.placeholder;
|
|
2873
2881
|
let t = e.label || e.prop;
|
|
2874
|
-
return
|
|
2882
|
+
return ga(e) ? d("validation.selectField", { field: t }) : d("validation.enterField", { field: t });
|
|
2875
2883
|
}
|
|
2876
|
-
function
|
|
2884
|
+
function Sa(e, t) {
|
|
2877
2885
|
let n = e.rules ? [...e.rules] : [];
|
|
2878
|
-
return
|
|
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:
|
|
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(
|
|
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:
|
|
2892
|
-
trigger:
|
|
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
|
|
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
|
-
],
|
|
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,
|
|
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,
|
|
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,
|
|
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",
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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",
|
|
3228
|
-
w("option",
|
|
3229
|
-
w("option",
|
|
3230
|
-
w("option",
|
|
3231
|
-
w("option",
|
|
3232
|
-
], 8,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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",
|
|
3300
|
-
w("option",
|
|
3301
|
-
w("option",
|
|
3302
|
-
w("option",
|
|
3303
|
-
w("option",
|
|
3304
|
-
w("option",
|
|
3305
|
-
w("option",
|
|
3306
|
-
w("option",
|
|
3307
|
-
w("option",
|
|
3308
|
-
], 40,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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",
|
|
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,
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
3431
|
+
], To = {
|
|
3424
3432
|
key: 0,
|
|
3425
3433
|
class: "translate-toolbar__inline"
|
|
3426
|
-
},
|
|
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",
|
|
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",
|
|
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",
|
|
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"]]),
|
|
3619
|
+
}), [["__scopeId", "data-v-df9539f3"]]), Ao = ["element-loading-text"], jo = {
|
|
3612
3620
|
key: 1,
|
|
3613
3621
|
class: "translate-field__grid"
|
|
3614
|
-
},
|
|
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 :
|
|
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(
|
|
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(
|
|
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",
|
|
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,
|
|
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(
|
|
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,
|
|
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
|
|
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
|
|
3848
|
+
var Fo = {
|
|
3841
3849
|
key: 2,
|
|
3842
3850
|
class: "schema-form-item__dict-tag"
|
|
3843
|
-
},
|
|
3851
|
+
}, Io = {
|
|
3844
3852
|
key: 23,
|
|
3845
3853
|
class: "schema-form-item__tip"
|
|
3846
|
-
},
|
|
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(() =>
|
|
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 =
|
|
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(() =>
|
|
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(() =>
|
|
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 ?
|
|
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 ?? [],
|
|
@@ -3948,13 +3956,15 @@ var No = {
|
|
|
3948
3956
|
}
|
|
3949
3957
|
function B(e) {
|
|
3950
3958
|
let t = L.value;
|
|
3951
|
-
|
|
3952
|
-
...e,
|
|
3953
|
-
params: I.value?.params
|
|
3954
|
-
}) : Promise.resolve({
|
|
3959
|
+
if (!t) return Promise.resolve({
|
|
3955
3960
|
items: [],
|
|
3956
3961
|
total: 0
|
|
3957
3962
|
});
|
|
3963
|
+
let n = I.value?.params;
|
|
3964
|
+
return t.fetch({
|
|
3965
|
+
...e,
|
|
3966
|
+
params: typeof n == "function" ? n(l.value) : n
|
|
3967
|
+
});
|
|
3958
3968
|
}
|
|
3959
3969
|
function ne(e) {
|
|
3960
3970
|
let t = u.value.map((e) => ({
|
|
@@ -3979,7 +3989,7 @@ var No = {
|
|
|
3979
3989
|
prop: e.field.prop,
|
|
3980
3990
|
rules: p.value
|
|
3981
3991
|
}, {
|
|
3982
|
-
default: J(() => [g.value ? (R(), x(
|
|
3992
|
+
default: J(() => [g.value ? (R(), x(No, {
|
|
3983
3993
|
key: 0,
|
|
3984
3994
|
config: e.field.translateConfig,
|
|
3985
3995
|
context: l.value,
|
|
@@ -4005,7 +4015,7 @@ var No = {
|
|
|
4005
4015
|
key: 1,
|
|
4006
4016
|
"model-value": e.modelValue,
|
|
4007
4017
|
placeholder: m.value
|
|
4008
|
-
}, ee.value), null, 16, ["model-value", "placeholder"])) : e.readonly && e.field.optionSource === "dict" && e.field.dictCode ? (R(), C("span",
|
|
4018
|
+
}, 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
4019
|
key: `${e.field.prop}-${n}`,
|
|
4010
4020
|
code: e.field.dictCode,
|
|
4011
4021
|
value: t
|
|
@@ -4017,7 +4027,7 @@ var No = {
|
|
|
4017
4027
|
key: 4,
|
|
4018
4028
|
attachments: k.value,
|
|
4019
4029
|
"max-preview-count": A.value
|
|
4020
|
-
}, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(
|
|
4030
|
+
}, null, 8, ["attachments", "max-preview-count"])) : e.readonly ? (R(), x(ua, {
|
|
4021
4031
|
key: 5,
|
|
4022
4032
|
value: w.value,
|
|
4023
4033
|
copyable: h.value
|
|
@@ -4172,10 +4182,10 @@ var No = {
|
|
|
4172
4182
|
"disabled",
|
|
4173
4183
|
"fetcher",
|
|
4174
4184
|
"options"
|
|
4175
|
-
])) : (R(), x(
|
|
4185
|
+
])) : (R(), x(ua, {
|
|
4176
4186
|
key: 22,
|
|
4177
4187
|
value: e.modelValue
|
|
4178
|
-
}, null, 8, ["value"])), e.field.tip ? (R(), C("div",
|
|
4188
|
+
}, null, 8, ["value"])), e.field.tip ? (R(), C("div", Io, W(e.field.tip), 1)) : S("", !0)]),
|
|
4179
4189
|
_: 3
|
|
4180
4190
|
}, 8, [
|
|
4181
4191
|
"class",
|
|
@@ -4185,20 +4195,20 @@ var No = {
|
|
|
4185
4195
|
"rules"
|
|
4186
4196
|
]));
|
|
4187
4197
|
}
|
|
4188
|
-
}), [["__scopeId", "data-v-
|
|
4198
|
+
}), [["__scopeId", "data-v-7c6ce428"]]), Ro = { class: "schema-form-root" }, zo = {
|
|
4189
4199
|
key: 0,
|
|
4190
4200
|
class: "schema-form__row-break",
|
|
4191
4201
|
"aria-hidden": "true"
|
|
4192
|
-
},
|
|
4202
|
+
}, Bo = {
|
|
4193
4203
|
key: 0,
|
|
4194
4204
|
class: "schema-form-group__header"
|
|
4195
|
-
},
|
|
4205
|
+
}, Vo = { class: "schema-form-group__index" }, Ho = { class: "schema-form-group__heading" }, Uo = { key: 0 }, Wo = {
|
|
4196
4206
|
key: 0,
|
|
4197
4207
|
class: "schema-form-group__required-note"
|
|
4198
|
-
},
|
|
4208
|
+
}, Go = { key: 1 }, Ko = {
|
|
4199
4209
|
key: 0,
|
|
4200
4210
|
class: "schema-form-group__tip"
|
|
4201
|
-
},
|
|
4211
|
+
}, qo = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
4202
4212
|
__name: "schema-form",
|
|
4203
4213
|
props: /*@__PURE__*/ N({
|
|
4204
4214
|
columns: { default: 1 },
|
|
@@ -4231,11 +4241,11 @@ var No = {
|
|
|
4231
4241
|
let n = e, r = oe(e, "modelValue"), i = B(), a = b(() => n.schema), o = b(() => ({
|
|
4232
4242
|
mode: n.mode,
|
|
4233
4243
|
values: r.value ?? {}
|
|
4234
|
-
})), s = b(() => a.value.filter((e) =>
|
|
4244
|
+
})), s = b(() => a.value.filter((e) => ba(e, o.value) ? !1 : !_a(e) || c(e).length > 0));
|
|
4235
4245
|
function c(e) {
|
|
4236
|
-
return e.children.filter((e) => !
|
|
4246
|
+
return e.children.filter((e) => !ba(e, o.value));
|
|
4237
4247
|
}
|
|
4238
|
-
let l = b(() => s.value.flatMap((e) =>
|
|
4248
|
+
let l = b(() => s.value.flatMap((e) => _a(e) ? c(e) : [e])), u = b(() => Math.floor(24 / n.columns)), d = b(() => ({
|
|
4239
4249
|
[`schema-form--label-align-${n.labelAlign}`]: !!n.labelAlign,
|
|
4240
4250
|
"schema-form--underline": n.underline
|
|
4241
4251
|
})), f = b(() => n.mode === "view" ? "left" : n.labelPosition);
|
|
@@ -4248,20 +4258,20 @@ var No = {
|
|
|
4248
4258
|
"--schema-form-label-gap": p(n.labelGap)
|
|
4249
4259
|
}));
|
|
4250
4260
|
function h(e, t) {
|
|
4251
|
-
return
|
|
4261
|
+
return _a(e) ? `group-${t}-${e.label}` : e.prop;
|
|
4252
4262
|
}
|
|
4253
4263
|
function g(e, t = !1) {
|
|
4254
4264
|
return t ? { gridColumn: e.newRow ? "1 / -1" : `span ${e.span ?? u.value}` } : { flex: `${e.span ?? 1} 1 0` };
|
|
4255
4265
|
}
|
|
4256
4266
|
function _(e) {
|
|
4257
|
-
return c(e).some((e) =>
|
|
4267
|
+
return c(e).some((e) => ya(e.required, o.value));
|
|
4258
4268
|
}
|
|
4259
4269
|
function v(e) {
|
|
4260
|
-
let t = s.value.filter((e) =>
|
|
4270
|
+
let t = s.value.filter((e) => _a(e) && !!e.anchor);
|
|
4261
4271
|
return String(t.indexOf(e) + 1).padStart(2, "0");
|
|
4262
4272
|
}
|
|
4263
4273
|
function T(e, t) {
|
|
4264
|
-
return n.disabled ||
|
|
4274
|
+
return n.disabled || ya(t?.disabled, o.value) || ya(e.disabled, o.value);
|
|
4265
4275
|
}
|
|
4266
4276
|
function E(e) {
|
|
4267
4277
|
return n.mode === "view" || !!e.readonly;
|
|
@@ -4274,7 +4284,7 @@ var No = {
|
|
|
4274
4284
|
}
|
|
4275
4285
|
q([a, r], () => {
|
|
4276
4286
|
let e = r.value ?? {}, t = {};
|
|
4277
|
-
for (let n of
|
|
4287
|
+
for (let n of va(a.value)) n.defaultValue !== void 0 && !(n.prop in e) && (t[n.prop] = n.defaultValue);
|
|
4278
4288
|
Object.keys(t).length > 0 && (r.value = {
|
|
4279
4289
|
...e,
|
|
4280
4290
|
...t
|
|
@@ -4295,7 +4305,7 @@ var No = {
|
|
|
4295
4305
|
getValues: () => Object.fromEntries(l.value.map((e) => [e.prop, r.value?.[e.prop]]))
|
|
4296
4306
|
}), (t, n) => {
|
|
4297
4307
|
let l = re("loading");
|
|
4298
|
-
return R(), C("div",
|
|
4308
|
+
return R(), C("div", Ro, [ue((R(), x(K(Se), {
|
|
4299
4309
|
ref_key: "formRef",
|
|
4300
4310
|
ref: i,
|
|
4301
4311
|
class: F(["schema-form", d.value]),
|
|
@@ -4305,7 +4315,7 @@ var No = {
|
|
|
4305
4315
|
"label-position": f.value
|
|
4306
4316
|
}, {
|
|
4307
4317
|
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",
|
|
4318
|
+
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
4319
|
span: e.span ?? (e.type === "group" ? 24 : u.value),
|
|
4310
4320
|
class: F({
|
|
4311
4321
|
"schema-form-col--anchor-group": e.type === "group" && e.anchor,
|
|
@@ -4318,12 +4328,12 @@ var No = {
|
|
|
4318
4328
|
"data-form-anchor": e.anchor ? a.value.indexOf(e) : void 0,
|
|
4319
4329
|
label: e.label
|
|
4320
4330
|
}, {
|
|
4321
|
-
label: J(() => [e.anchor ? (R(), C("div",
|
|
4322
|
-
w("span",
|
|
4323
|
-
w("span",
|
|
4324
|
-
_(e) ? (R(), C("span",
|
|
4325
|
-
])) : (R(), C("span",
|
|
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(
|
|
4331
|
+
label: J(() => [e.anchor ? (R(), C("div", Bo, [
|
|
4332
|
+
w("span", Vo, W(v(e)), 1),
|
|
4333
|
+
w("span", Ho, [w("strong", null, W(e.label), 1), e.description ? (R(), C("small", Uo, W(e.description), 1)) : S("", !0)]),
|
|
4334
|
+
_(e) ? (R(), C("span", Wo, " 为必填项 ")) : S("", !0)
|
|
4335
|
+
])) : (R(), C("span", Go, W(e.label), 1))]),
|
|
4336
|
+
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
4337
|
key: n.prop,
|
|
4328
4338
|
style: L(g(n, e.anchor)),
|
|
4329
4339
|
"hide-label": !e.anchor,
|
|
@@ -4347,13 +4357,13 @@ var No = {
|
|
|
4347
4357
|
"disabled",
|
|
4348
4358
|
"readonly",
|
|
4349
4359
|
"onUpdate:modelValue"
|
|
4350
|
-
]))), 128))], 2), e.tip ? (R(), C("div",
|
|
4360
|
+
]))), 128))], 2), e.tip ? (R(), C("div", Ko, W(e.tip), 1)) : S("", !0)]),
|
|
4351
4361
|
_: 2
|
|
4352
4362
|
}, 1032, [
|
|
4353
4363
|
"class",
|
|
4354
4364
|
"data-form-anchor",
|
|
4355
4365
|
"label"
|
|
4356
|
-
])) : (R(), x(
|
|
4366
|
+
])) : (R(), x(Lo, {
|
|
4357
4367
|
key: 1,
|
|
4358
4368
|
field: e,
|
|
4359
4369
|
context: o.value,
|
|
@@ -4388,11 +4398,11 @@ var No = {
|
|
|
4388
4398
|
])), [[l, e.loading]])]);
|
|
4389
4399
|
};
|
|
4390
4400
|
}
|
|
4391
|
-
}), [["__scopeId", "data-v-38d44833"]]),
|
|
4401
|
+
}), [["__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
4402
|
key: 0,
|
|
4393
4403
|
class: "drawer-form-page__anchors",
|
|
4394
4404
|
"aria-label": "表单分区"
|
|
4395
|
-
},
|
|
4405
|
+
}, ts = ["onClick"], ns = { class: "drawer-form-page__footer" }, rs = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
4396
4406
|
__name: "index",
|
|
4397
4407
|
props: {
|
|
4398
4408
|
modelValue: {
|
|
@@ -4569,10 +4579,10 @@ var No = {
|
|
|
4569
4579
|
fullscreen: f.value,
|
|
4570
4580
|
title: r.title,
|
|
4571
4581
|
toggleFullscreen: O
|
|
4572
|
-
}, () => [w("div",
|
|
4573
|
-
w("div",
|
|
4574
|
-
w("div",
|
|
4575
|
-
w("span",
|
|
4582
|
+
}, () => [w("div", Jo, [
|
|
4583
|
+
w("div", Yo, [w("div", Xo, [w("span", Zo, W(r.title), 1)])]),
|
|
4584
|
+
w("div", Qo, [
|
|
4585
|
+
w("span", $o, [t[2] ||= w("i", { "aria-hidden": "true" }, null, -1), E(" " + W(g.value), 1)]),
|
|
4576
4586
|
r.fullscreenButton ? (R(), x(K(He), {
|
|
4577
4587
|
key: 0,
|
|
4578
4588
|
content: f.value ? "退出全屏" : "全屏",
|
|
@@ -4600,21 +4610,21 @@ var No = {
|
|
|
4600
4610
|
_: 1
|
|
4601
4611
|
})
|
|
4602
4612
|
]),
|
|
4603
|
-
v.value.length ? (R(), C("nav",
|
|
4613
|
+
v.value.length ? (R(), C("nav", es, [(R(!0), C(y, null, V(v.value, ({ entry: e, index: t }) => (R(), C("button", {
|
|
4604
4614
|
key: t,
|
|
4605
4615
|
type: "button",
|
|
4606
4616
|
class: F(["drawer-form-page__anchor", { "is-active": a.value === t }]),
|
|
4607
4617
|
onClick: (e) => {
|
|
4608
4618
|
a.value = t, k(t);
|
|
4609
4619
|
}
|
|
4610
|
-
}, W(e.label), 11,
|
|
4620
|
+
}, W(e.label), 11, ts))), 128))])) : S("", !0)
|
|
4611
4621
|
])], !0)]),
|
|
4612
4622
|
default: J(() => [ue((R(), C("div", {
|
|
4613
4623
|
ref_key: "contentRef",
|
|
4614
4624
|
ref: c,
|
|
4615
4625
|
class: "drawer-form-page__content",
|
|
4616
4626
|
onScrollPassive: ie
|
|
4617
|
-
}, [D(
|
|
4627
|
+
}, [D(qo, P({
|
|
4618
4628
|
ref_key: "formRef",
|
|
4619
4629
|
ref: s
|
|
4620
4630
|
}, r.schemaFormProps, {
|
|
@@ -4643,7 +4653,7 @@ var No = {
|
|
|
4643
4653
|
cancel: M,
|
|
4644
4654
|
submit: te,
|
|
4645
4655
|
submitting: r.submitting
|
|
4646
|
-
}, () => [w("div",
|
|
4656
|
+
}, () => [w("div", ns, [r.showCancelButton ? (R(), x(K(Y), {
|
|
4647
4657
|
key: 0,
|
|
4648
4658
|
disabled: r.submitting,
|
|
4649
4659
|
onClick: M
|
|
@@ -4676,11 +4686,11 @@ var No = {
|
|
|
4676
4686
|
}
|
|
4677
4687
|
}), [["__scopeId", "data-v-e07a25ed"]]);
|
|
4678
4688
|
// src/components/drawer-form-page/use-drawer-form-page.ts
|
|
4679
|
-
function
|
|
4680
|
-
let { closeOnSubmit: t = !0, initialValues: n, onCancel: r, onOpenChange: i, onSubmit: a, values: o, ...s } = e, c = B(!1), l = B(
|
|
4689
|
+
function is(e = {}) {
|
|
4690
|
+
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
4691
|
function p(e = {}) {
|
|
4682
4692
|
let { values: t, ...r } = e;
|
|
4683
|
-
Object.assign(u, r), l.value =
|
|
4693
|
+
Object.assign(u, r), l.value = as(t ?? n ?? {}), c.value = !0;
|
|
4684
4694
|
}
|
|
4685
4695
|
function m() {
|
|
4686
4696
|
c.value = !1;
|
|
@@ -4708,7 +4718,7 @@ function ns(e = {}) {
|
|
|
4708
4718
|
}
|
|
4709
4719
|
function x(e) {
|
|
4710
4720
|
let { values: t, ...n } = e;
|
|
4711
|
-
Object.assign(u, n), t !== void 0 && (l.value =
|
|
4721
|
+
Object.assign(u, n), t !== void 0 && (l.value = as(t));
|
|
4712
4722
|
}
|
|
4713
4723
|
return f = {
|
|
4714
4724
|
close: m,
|
|
@@ -4726,7 +4736,7 @@ function ns(e = {}) {
|
|
|
4726
4736
|
name: "DrawerFormPageProvider",
|
|
4727
4737
|
inheritAttrs: !1,
|
|
4728
4738
|
setup(e, { attrs: n, slots: i }) {
|
|
4729
|
-
return () => j(
|
|
4739
|
+
return () => j(rs, {
|
|
4730
4740
|
...n,
|
|
4731
4741
|
...u,
|
|
4732
4742
|
ref: d,
|
|
@@ -4751,14 +4761,14 @@ function ns(e = {}) {
|
|
|
4751
4761
|
}
|
|
4752
4762
|
}), f];
|
|
4753
4763
|
}
|
|
4754
|
-
function
|
|
4764
|
+
function as(e) {
|
|
4755
4765
|
return { ...e };
|
|
4756
4766
|
}
|
|
4757
4767
|
// src/components/search-form/index.vue?vue&type=script&setup=true&lang.ts
|
|
4758
|
-
var
|
|
4768
|
+
var os = {
|
|
4759
4769
|
key: 0,
|
|
4760
4770
|
class: "search-form__actions"
|
|
4761
|
-
},
|
|
4771
|
+
}, ss = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
4762
4772
|
__name: "index",
|
|
4763
4773
|
props: /*@__PURE__*/ N({
|
|
4764
4774
|
collapsedRows: { default: 2 },
|
|
@@ -4785,12 +4795,12 @@ var is = {
|
|
|
4785
4795
|
let r = e, i = n, a = oe(e, "modelValue"), o = se(), s = B(!1), c = B(), l = b(() => r.schema), u = b(() => ({
|
|
4786
4796
|
mode: r.mode,
|
|
4787
4797
|
values: a.value ?? {}
|
|
4788
|
-
})), d = b(() => l.value.filter((e) =>
|
|
4798
|
+
})), 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
4799
|
function g(e) {
|
|
4790
|
-
return e.children.filter((e) => !
|
|
4800
|
+
return e.children.filter((e) => !ba(e, u.value));
|
|
4791
4801
|
}
|
|
4792
4802
|
function _() {
|
|
4793
|
-
return
|
|
4803
|
+
return va(l.value);
|
|
4794
4804
|
}
|
|
4795
4805
|
function v() {
|
|
4796
4806
|
return Object.fromEntries(_().map((e) => [e.prop, e.defaultValue]));
|
|
@@ -4817,7 +4827,7 @@ var is = {
|
|
|
4817
4827
|
}), (t, n) => (R(), C("form", {
|
|
4818
4828
|
class: "search-form",
|
|
4819
4829
|
onSubmit: fe(w, ["prevent"])
|
|
4820
|
-
}, [D(
|
|
4830
|
+
}, [D(qo, {
|
|
4821
4831
|
ref_key: "schemaFormRef",
|
|
4822
4832
|
ref: c,
|
|
4823
4833
|
modelValue: a.value,
|
|
@@ -4841,7 +4851,7 @@ var is = {
|
|
|
4841
4851
|
"schema",
|
|
4842
4852
|
"mode",
|
|
4843
4853
|
"label-width"
|
|
4844
|
-
]), e.showActions ? (R(), C("div",
|
|
4854
|
+
]), e.showActions ? (R(), C("div", os, [
|
|
4845
4855
|
D(K(Y), {
|
|
4846
4856
|
type: "primary",
|
|
4847
4857
|
"native-type": "submit"
|
|
@@ -4869,7 +4879,7 @@ var is = {
|
|
|
4869
4879
|
}, 8, ["icon"])) : S("", !0)
|
|
4870
4880
|
])) : S("", !0)], 32));
|
|
4871
4881
|
}
|
|
4872
|
-
}), [["__scopeId", "data-v-3392f119"]]),
|
|
4882
|
+
}), [["__scopeId", "data-v-3392f119"]]), cs = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
4873
4883
|
__name: "index",
|
|
4874
4884
|
props: {
|
|
4875
4885
|
fields: { default: () => [] },
|
|
@@ -5053,7 +5063,7 @@ var is = {
|
|
|
5053
5063
|
function de(e = {}) {
|
|
5054
5064
|
f.value = { ...e }, oe(f.value);
|
|
5055
5065
|
}
|
|
5056
|
-
let [fe, X] =
|
|
5066
|
+
let [fe, X] = is({
|
|
5057
5067
|
...r.drawerProps,
|
|
5058
5068
|
schema: m.value,
|
|
5059
5069
|
schemaFormProps: {
|
|
@@ -5231,14 +5241,14 @@ var is = {
|
|
|
5231
5241
|
reload: ke
|
|
5232
5242
|
}), (e, t) => {
|
|
5233
5243
|
let n = re("access");
|
|
5234
|
-
return R(), C(y, null, [D(
|
|
5244
|
+
return R(), C(y, null, [D(na, null, {
|
|
5235
5245
|
default: J(() => [
|
|
5236
5246
|
H(e.$slots, "prepend", {}, void 0, !0),
|
|
5237
5247
|
e.$slots.search ? H(e.$slots, "search", {
|
|
5238
5248
|
values: f.value,
|
|
5239
5249
|
search: q,
|
|
5240
5250
|
reset: de
|
|
5241
|
-
}, void 0, !0, 0) : g.value ? (R(), x(
|
|
5251
|
+
}, void 0, !0, 0) : g.value ? (R(), x(ss, P({
|
|
5242
5252
|
key: 1,
|
|
5243
5253
|
modelValue: f.value,
|
|
5244
5254
|
"onUpdate:modelValue": t[0] ||= (e) => f.value = e,
|
|
@@ -5251,7 +5261,7 @@ var is = {
|
|
|
5251
5261
|
name: t,
|
|
5252
5262
|
fn: J((n) => [H(e.$slots, t, I(A(n)), void 0, !0)])
|
|
5253
5263
|
}))]), 1040, ["modelValue", "schema"])) : S("", !0),
|
|
5254
|
-
D(
|
|
5264
|
+
D(Pi, P({
|
|
5255
5265
|
ref_key: "tableRef",
|
|
5256
5266
|
ref: o
|
|
5257
5267
|
}, F.value, {
|
|
@@ -5336,7 +5346,7 @@ var is = {
|
|
|
5336
5346
|
]), 1024)], 64);
|
|
5337
5347
|
};
|
|
5338
5348
|
}
|
|
5339
|
-
}), [["__scopeId", "data-v-d344d607"]]),
|
|
5349
|
+
}), [["__scopeId", "data-v-d344d607"]]), ls = /* @__PURE__ */ k({
|
|
5340
5350
|
__name: "index",
|
|
5341
5351
|
props: {
|
|
5342
5352
|
className: { default: "disguiseicon" },
|
|
@@ -5346,7 +5356,7 @@ var is = {
|
|
|
5346
5356
|
let t = e;
|
|
5347
5357
|
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
5358
|
}
|
|
5349
|
-
}),
|
|
5359
|
+
}), us = ["src"], ds = { class: "image-upload__mask" }, fs = { class: "image-upload__text" }, ps = /*#__PURE__*/ f(/* @__PURE__ */ k({
|
|
5350
5360
|
__name: "index",
|
|
5351
5361
|
props: /*@__PURE__*/ N({
|
|
5352
5362
|
accept: { default: () => [
|
|
@@ -5399,7 +5409,7 @@ var is = {
|
|
|
5399
5409
|
src: o.value,
|
|
5400
5410
|
alt: "",
|
|
5401
5411
|
class: "image-upload__img"
|
|
5402
|
-
}, null, 8,
|
|
5412
|
+
}, null, 8, us), w("div", ds, [D(K(Z), {
|
|
5403
5413
|
class: "image-upload__action",
|
|
5404
5414
|
title: K(d)("components.imageUpload.preview"),
|
|
5405
5415
|
onClick: n[0] ||= (e) => a.value = !0
|
|
@@ -5428,7 +5438,7 @@ var is = {
|
|
|
5428
5438
|
}, [D(K(Z), { class: F(["image-upload__icon", { "is-loading": i.value }]) }, {
|
|
5429
5439
|
default: J(() => [i.value ? (R(), x(K(at), { key: 0 })) : (R(), x(K(st), { key: 1 }))]),
|
|
5430
5440
|
_: 1
|
|
5431
|
-
}, 8, ["class"]), w("span",
|
|
5441
|
+
}, 8, ["class"]), w("span", fs, W(i.value ? K(d)("components.imageUpload.uploading") : K(d)("components.imageUpload.upload")), 1)], 4)]),
|
|
5432
5442
|
_: 1
|
|
5433
5443
|
}, 8, ["accept", "disabled"])), a.value ? (R(), x(K(we), {
|
|
5434
5444
|
key: 2,
|
|
@@ -5439,7 +5449,7 @@ var is = {
|
|
|
5439
5449
|
}
|
|
5440
5450
|
}), [["__scopeId", "data-v-c6aeef2e"]]);
|
|
5441
5451
|
// src/setup.ts
|
|
5442
|
-
function
|
|
5452
|
+
function ms(e = {}) {
|
|
5443
5453
|
l(e);
|
|
5444
5454
|
}
|
|
5445
|
-
export {
|
|
5455
|
+
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 };
|