@apipass/design-system 1.6.2 → 1.6.4
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/lib/index.cjs +1 -1
- package/dist/lib/index.cjs.map +1 -1
- package/dist/lib/index.js +84 -77
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -1028,10 +1028,10 @@ function q6(e, r) {
|
|
|
1028
1028
|
return e.Uri.parse(r);
|
|
1029
1029
|
}
|
|
1030
1030
|
function L9({ original: e, modified: r, language: o, originalLanguage: n, modifiedLanguage: i, originalModelPath: s, modifiedModelPath: a, keepCurrentOriginalModel: d = !1, keepCurrentModifiedModel: u = !1, theme: C = "light", loading: k = "Loading...", options: p = {}, height: b = "100%", width: V = "100%", className: M, wrapperProps: g = {}, beforeMount: W = $3, onMount: y = $3 }) {
|
|
1031
|
-
let [j, X] = E(!1), [Q, I] = E(!0), Z = v(null), N = v(null),
|
|
1031
|
+
let [j, X] = E(!1), [Q, I] = E(!0), Z = v(null), N = v(null), i3 = v(null), T = v(y), H = v(W), J = v(!1);
|
|
1032
1032
|
U6(() => {
|
|
1033
1033
|
let f = z6.init();
|
|
1034
|
-
return f.then((w) => (N.current = w) && I(!1)).catch((w) => (w == null ? void 0 : w.type) !== "cancelation" && console.error("Monaco initialization: error:", w)), () => Z.current ?
|
|
1034
|
+
return f.then((w) => (N.current = w) && I(!1)).catch((w) => (w == null ? void 0 : w.type) !== "cancelation" && console.error("Monaco initialization: error:", w)), () => Z.current ? Y() : f.cancel();
|
|
1035
1035
|
}), A(() => {
|
|
1036
1036
|
if (Z.current && N.current) {
|
|
1037
1037
|
let f = Z.current.getOriginalEditor(), w = g3(N.current, e || "", n || o || "text", s || "");
|
|
@@ -1058,7 +1058,7 @@ function L9({ original: e, modified: r, language: o, originalLanguage: n, modifi
|
|
|
1058
1058
|
var f;
|
|
1059
1059
|
(f = Z.current) == null || f.updateOptions(p);
|
|
1060
1060
|
}, [p], j);
|
|
1061
|
-
let
|
|
1061
|
+
let c3 = O(() => {
|
|
1062
1062
|
var U;
|
|
1063
1063
|
if (!N.current) return;
|
|
1064
1064
|
H.current(N.current);
|
|
@@ -1066,19 +1066,19 @@ function L9({ original: e, modified: r, language: o, originalLanguage: n, modifi
|
|
|
1066
1066
|
(U = Z.current) == null || U.setModel({ original: f, modified: w });
|
|
1067
1067
|
}, [o, r, i, e, n, s, a]), a3 = O(() => {
|
|
1068
1068
|
var f;
|
|
1069
|
-
!J.current &&
|
|
1070
|
-
}, [p, C,
|
|
1069
|
+
!J.current && i3.current && (Z.current = N.current.editor.createDiffEditor(i3.current, { automaticLayout: !0, ...p }), c3(), (f = N.current) == null || f.editor.setTheme(C), X(!0), J.current = !0);
|
|
1070
|
+
}, [p, C, c3]);
|
|
1071
1071
|
x(() => {
|
|
1072
1072
|
j && T.current(Z.current, N.current);
|
|
1073
1073
|
}, [j]), x(() => {
|
|
1074
1074
|
!Q && !j && a3();
|
|
1075
1075
|
}, [Q, j, a3]);
|
|
1076
|
-
function
|
|
1077
|
-
var w, U, q,
|
|
1076
|
+
function Y() {
|
|
1077
|
+
var w, U, q, e3;
|
|
1078
1078
|
let f = (w = Z.current) == null ? void 0 : w.getModel();
|
|
1079
|
-
d || ((U = f == null ? void 0 : f.original) == null || U.dispose()), u || ((q = f == null ? void 0 : f.modified) == null || q.dispose()), (
|
|
1079
|
+
d || ((U = f == null ? void 0 : f.original) == null || U.dispose()), u || ((q = f == null ? void 0 : f.modified) == null || q.dispose()), (e3 = Z.current) == null || e3.dispose();
|
|
1080
1080
|
}
|
|
1081
|
-
return $.createElement(G6, { width: V, height: b, isEditorReady: j, loading: k, _ref:
|
|
1081
|
+
return $.createElement(G6, { width: V, height: b, isEditorReady: j, loading: k, _ref: i3, className: M, wrapperProps: g });
|
|
1082
1082
|
}
|
|
1083
1083
|
var g9 = L9;
|
|
1084
1084
|
h6(g9);
|
|
@@ -1090,10 +1090,10 @@ function v9(e) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
var M9 = v9, S3 = /* @__PURE__ */ new Map();
|
|
1092
1092
|
function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, language: i, path: s, theme: a = "light", line: d, loading: u = "Loading...", options: C = {}, overrideServices: k = {}, saveViewState: p = !0, keepCurrentModel: b = !1, width: V = "100%", height: M = "100%", className: g, wrapperProps: W = {}, beforeMount: y = $3, onMount: j = $3, onChange: X, onValidate: Q = $3 }) {
|
|
1093
|
-
let [I, Z] = E(!1), [N,
|
|
1093
|
+
let [I, Z] = E(!1), [N, i3] = E(!0), T = v(null), H = v(null), J = v(null), c3 = v(j), a3 = v(y), Y = v(), f = v(n), w = M9(s), U = v(!1), q = v(!1);
|
|
1094
1094
|
U6(() => {
|
|
1095
1095
|
let m = z6.init();
|
|
1096
|
-
return m.then((P) => (T.current = P) &&
|
|
1096
|
+
return m.then((P) => (T.current = P) && i3(!1)).catch((P) => (P == null ? void 0 : P.type) !== "cancelation" && console.error("Monaco initialization: error:", P)), () => H.current ? b3() : m.cancel();
|
|
1097
1097
|
}), A(() => {
|
|
1098
1098
|
var P, L, _, S;
|
|
1099
1099
|
let m = g3(T.current, e || n || "", r || i || "", s || o || "");
|
|
@@ -1114,7 +1114,7 @@ function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, lan
|
|
|
1114
1114
|
var m;
|
|
1115
1115
|
(m = T.current) == null || m.editor.setTheme(a);
|
|
1116
1116
|
}, [a], I);
|
|
1117
|
-
let
|
|
1117
|
+
let e3 = O(() => {
|
|
1118
1118
|
var m;
|
|
1119
1119
|
if (!(!J.current || !T.current) && !U.current) {
|
|
1120
1120
|
a3.current(T.current);
|
|
@@ -1123,12 +1123,12 @@ function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, lan
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}, [e, r, o, n, i, s, C, k, p, a, d]);
|
|
1125
1125
|
x(() => {
|
|
1126
|
-
I &&
|
|
1126
|
+
I && c3.current(H.current, T.current);
|
|
1127
1127
|
}, [I]), x(() => {
|
|
1128
|
-
!N && !I &&
|
|
1129
|
-
}, [N, I,
|
|
1128
|
+
!N && !I && e3();
|
|
1129
|
+
}, [N, I, e3]), f.current = n, x(() => {
|
|
1130
1130
|
var m, P;
|
|
1131
|
-
I && X && ((m =
|
|
1131
|
+
I && X && ((m = Y.current) == null || m.dispose(), Y.current = (P = H.current) == null ? void 0 : P.onDidChangeModelContent((L) => {
|
|
1132
1132
|
q.current || X(H.current.getValue(), L);
|
|
1133
1133
|
}));
|
|
1134
1134
|
}, [I, X]), x(() => {
|
|
@@ -1150,7 +1150,7 @@ function m9({ defaultValue: e, defaultLanguage: r, defaultPath: o, value: n, lan
|
|
|
1150
1150
|
}, [I, Q]);
|
|
1151
1151
|
function b3() {
|
|
1152
1152
|
var m, P;
|
|
1153
|
-
(m =
|
|
1153
|
+
(m = Y.current) == null || m.dispose(), b ? p && S3.set(s, H.current.saveViewState()) : (P = H.current.getModel()) == null || P.dispose(), H.current.dispose();
|
|
1154
1154
|
}
|
|
1155
1155
|
return $.createElement(G6, { width: V, height: M, isEditorReady: I, loading: u, _ref: J, className: g, wrapperProps: W });
|
|
1156
1156
|
}
|
|
@@ -1219,7 +1219,7 @@ function Ho({
|
|
|
1219
1219
|
r && /* @__PURE__ */ t(R, { htmlFor: s, children: r }),
|
|
1220
1220
|
/* @__PURE__ */ t(K6, { ...i }),
|
|
1221
1221
|
o && /* @__PURE__ */ t(G, { children: o }),
|
|
1222
|
-
n && typeof n == "string" && /* @__PURE__ */ t(
|
|
1222
|
+
n && typeof n == "string" && /* @__PURE__ */ t(o3, { children: n })
|
|
1223
1223
|
] });
|
|
1224
1224
|
}
|
|
1225
1225
|
const V9 = "Clique no editor e pressione F1 para visualizar os atalhos do teclado";
|
|
@@ -1452,7 +1452,7 @@ function Io({
|
|
|
1452
1452
|
return /* @__PURE__ */ l(m1, { ...s, className: a, children: [
|
|
1453
1453
|
r && /* @__PURE__ */ t(R, { children: r }),
|
|
1454
1454
|
o && /* @__PURE__ */ t(G, { children: o }),
|
|
1455
|
-
n && /* @__PURE__ */ t(
|
|
1455
|
+
n && /* @__PURE__ */ t(o3, { children: n }),
|
|
1456
1456
|
i
|
|
1457
1457
|
] });
|
|
1458
1458
|
}
|
|
@@ -1469,7 +1469,7 @@ function No({
|
|
|
1469
1469
|
/* @__PURE__ */ t(R, { children: d }),
|
|
1470
1470
|
/* @__PURE__ */ t(C6, {}),
|
|
1471
1471
|
n && /* @__PURE__ */ t(G, { children: n }),
|
|
1472
|
-
/* @__PURE__ */ t(
|
|
1472
|
+
/* @__PURE__ */ t(o3, { children: i }),
|
|
1473
1473
|
d !== e && e
|
|
1474
1474
|
] }) });
|
|
1475
1475
|
}
|
|
@@ -1577,7 +1577,7 @@ function G({ className: e, ...r }) {
|
|
|
1577
1577
|
const o = h(e, "description");
|
|
1578
1578
|
return /* @__PURE__ */ t(D, { className: o, slot: "description", ...r });
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1580
|
+
function o3({ className: e, ...r }) {
|
|
1581
1581
|
const o = h(e, "error-message");
|
|
1582
1582
|
return /* @__PURE__ */ t(P1, { ...r, className: o });
|
|
1583
1583
|
}
|
|
@@ -1645,7 +1645,7 @@ function N9({
|
|
|
1645
1645
|
o && /* @__PURE__ */ t(R, { children: o }),
|
|
1646
1646
|
/* @__PURE__ */ t(o1, { placeholder: r }),
|
|
1647
1647
|
n && /* @__PURE__ */ t(G, { children: n }),
|
|
1648
|
-
/* @__PURE__ */ t(
|
|
1648
|
+
/* @__PURE__ */ t(o3, { children: i })
|
|
1649
1649
|
] });
|
|
1650
1650
|
}
|
|
1651
1651
|
const o1 = $.forwardRef(function({ className: r, ...o }, n) {
|
|
@@ -1991,7 +1991,7 @@ function l7({
|
|
|
1991
1991
|
return /* @__PURE__ */ l(T1, { ...s, className: a, children: [
|
|
1992
1992
|
r && /* @__PURE__ */ t(R, { children: r }),
|
|
1993
1993
|
o && /* @__PURE__ */ t(G, { children: o }),
|
|
1994
|
-
n && /* @__PURE__ */ t(
|
|
1994
|
+
n && /* @__PURE__ */ t(o3, { children: n }),
|
|
1995
1995
|
i
|
|
1996
1996
|
] });
|
|
1997
1997
|
}
|
|
@@ -2008,7 +2008,7 @@ function a7({
|
|
|
2008
2008
|
/* @__PURE__ */ t(R, { children: d }),
|
|
2009
2009
|
/* @__PURE__ */ t(T9, {}),
|
|
2010
2010
|
n && /* @__PURE__ */ t(G, { children: n }),
|
|
2011
|
-
/* @__PURE__ */ t(
|
|
2011
|
+
/* @__PURE__ */ t(o3, { children: i }),
|
|
2012
2012
|
d !== e && e
|
|
2013
2013
|
] }) });
|
|
2014
2014
|
}
|
|
@@ -2078,7 +2078,7 @@ function d7({
|
|
|
2078
2078
|
] }),
|
|
2079
2079
|
/* @__PURE__ */ t(U3, { children: /* @__PURE__ */ t(n1, { items: s, children: i }) }),
|
|
2080
2080
|
o && /* @__PURE__ */ t(G, { children: o }),
|
|
2081
|
-
/* @__PURE__ */ t(
|
|
2081
|
+
/* @__PURE__ */ t(o3, { children: n })
|
|
2082
2082
|
] }) });
|
|
2083
2083
|
}
|
|
2084
2084
|
function S9({ ...e }) {
|
|
@@ -2147,7 +2147,7 @@ function p7({
|
|
|
2147
2147
|
/* @__PURE__ */ t(R, { children: d }),
|
|
2148
2148
|
/* @__PURE__ */ t(B9, {}),
|
|
2149
2149
|
n && /* @__PURE__ */ t(G, { children: n }),
|
|
2150
|
-
/* @__PURE__ */ t(
|
|
2150
|
+
/* @__PURE__ */ t(o3, { children: i }),
|
|
2151
2151
|
d !== e && e
|
|
2152
2152
|
] }) });
|
|
2153
2153
|
}
|
|
@@ -2304,7 +2304,7 @@ function H7({
|
|
|
2304
2304
|
const o = h(e, "tag-toggle-list");
|
|
2305
2305
|
return /* @__PURE__ */ t(ne, { className: o, ...r });
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function r3({
|
|
2308
2308
|
className: e,
|
|
2309
2309
|
alignPrimary: r = "start",
|
|
2310
2310
|
alignSecondary: o = "start",
|
|
@@ -2721,7 +2721,7 @@ function T7({
|
|
|
2721
2721
|
"text-content-heading",
|
|
2722
2722
|
`text-align-${e}`
|
|
2723
2723
|
);
|
|
2724
|
-
return /* @__PURE__ */ l(
|
|
2724
|
+
return /* @__PURE__ */ l(r3, { direction: "column", gap: "200", className: s, ...i, children: [
|
|
2725
2725
|
/* @__PURE__ */ t(Q3, { children: o }),
|
|
2726
2726
|
n && /* @__PURE__ */ t(Q9, { children: n })
|
|
2727
2727
|
] });
|
|
@@ -2734,7 +2734,7 @@ function E7({
|
|
|
2734
2734
|
...i
|
|
2735
2735
|
}) {
|
|
2736
2736
|
const s = h(r, "text-content-title"), { isMobile: a } = s1();
|
|
2737
|
-
return /* @__PURE__ */ l(
|
|
2737
|
+
return /* @__PURE__ */ l(r3, { direction: "column", gap: "200", className: s, ...i, children: [
|
|
2738
2738
|
a ? /* @__PURE__ */ t(l1, { className: `text-align-${e}`, children: o }) : /* @__PURE__ */ t(K9, { className: `text-align-${e}`, children: o }),
|
|
2739
2739
|
n && /* @__PURE__ */ t(X9, { className: `text-align-${e}`, children: n })
|
|
2740
2740
|
] });
|
|
@@ -2752,7 +2752,7 @@ function S7({
|
|
|
2752
2752
|
o && /* @__PURE__ */ t(R, { children: o }),
|
|
2753
2753
|
/* @__PURE__ */ t(Y9, { placeholder: r }),
|
|
2754
2754
|
n && /* @__PURE__ */ t(G, { children: n }),
|
|
2755
|
-
/* @__PURE__ */ t(
|
|
2755
|
+
/* @__PURE__ */ t(o3, { children: i })
|
|
2756
2756
|
] });
|
|
2757
2757
|
}
|
|
2758
2758
|
const Y9 = q3(
|
|
@@ -2961,33 +2961,33 @@ function L6(e) {
|
|
|
2961
2961
|
var r;
|
|
2962
2962
|
return typeof window < "u" && window.navigator != null ? e.test(((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.platform) || window.navigator.platform) : !1;
|
|
2963
2963
|
}
|
|
2964
|
-
function
|
|
2964
|
+
function n3(e) {
|
|
2965
2965
|
if (process.env.NODE_ENV === "test") return e;
|
|
2966
2966
|
let r = null;
|
|
2967
2967
|
return () => (r == null && (r = e()), r);
|
|
2968
2968
|
}
|
|
2969
|
-
const g6 =
|
|
2969
|
+
const g6 = n3(function() {
|
|
2970
2970
|
return L6(/^Mac/i);
|
|
2971
|
-
}), w0 =
|
|
2971
|
+
}), w0 = n3(function() {
|
|
2972
2972
|
return L6(/^iPhone/i);
|
|
2973
|
-
}), V0 =
|
|
2973
|
+
}), V0 = n3(function() {
|
|
2974
2974
|
return L6(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
2975
2975
|
g6() && navigator.maxTouchPoints > 1;
|
|
2976
|
-
}), _0 =
|
|
2976
|
+
}), _0 = n3(function() {
|
|
2977
2977
|
return w0() || V0();
|
|
2978
2978
|
});
|
|
2979
|
-
|
|
2979
|
+
n3(function() {
|
|
2980
2980
|
return g6() || _0();
|
|
2981
2981
|
});
|
|
2982
|
-
|
|
2982
|
+
n3(function() {
|
|
2983
2983
|
return Y3(/AppleWebKit/i) && !P0();
|
|
2984
2984
|
});
|
|
2985
|
-
const P0 =
|
|
2985
|
+
const P0 = n3(function() {
|
|
2986
2986
|
return Y3(/Chrome/i);
|
|
2987
|
-
}), $0 =
|
|
2987
|
+
}), $0 = n3(function() {
|
|
2988
2988
|
return Y3(/Android/i);
|
|
2989
2989
|
});
|
|
2990
|
-
|
|
2990
|
+
n3(function() {
|
|
2991
2991
|
return Y3(/Firefox/i);
|
|
2992
2992
|
});
|
|
2993
2993
|
let s3 = /* @__PURE__ */ new Map(), s6 = /* @__PURE__ */ new Set();
|
|
@@ -3439,23 +3439,23 @@ function Q0(e) {
|
|
|
3439
3439
|
};
|
|
3440
3440
|
}
|
|
3441
3441
|
const J0 = 1500, W6 = 500;
|
|
3442
|
-
let h3 = {}, Y0 = 0, V3 = !1,
|
|
3442
|
+
let h3 = {}, Y0 = 0, V3 = !1, t3 = null, u3 = null;
|
|
3443
3443
|
function e2(e = {}) {
|
|
3444
3444
|
let { delay: r = J0, closeDelay: o = W6 } = e, { isOpen: n, open: i, close: s } = Q0(e), a = y3(() => `${++Y0}`, []), d = v(null), u = v(s), C = () => {
|
|
3445
3445
|
h3[a] = b;
|
|
3446
3446
|
}, k = () => {
|
|
3447
3447
|
for (let M in h3) M !== a && (h3[M](!0), delete h3[M]);
|
|
3448
3448
|
}, p = () => {
|
|
3449
|
-
d.current && clearTimeout(d.current), d.current = null, k(), C(), V3 = !0, i(),
|
|
3449
|
+
d.current && clearTimeout(d.current), d.current = null, k(), C(), V3 = !0, i(), t3 && (clearTimeout(t3), t3 = null), u3 && (clearTimeout(u3), u3 = null);
|
|
3450
3450
|
}, b = (M) => {
|
|
3451
3451
|
M || o <= 0 ? (d.current && clearTimeout(d.current), d.current = null, u.current()) : d.current || (d.current = setTimeout(() => {
|
|
3452
3452
|
d.current = null, u.current();
|
|
3453
|
-
}, o)),
|
|
3453
|
+
}, o)), t3 && (clearTimeout(t3), t3 = null), V3 && (u3 && clearTimeout(u3), u3 = setTimeout(() => {
|
|
3454
3454
|
delete h3[a], u3 = null, V3 = !1;
|
|
3455
3455
|
}, Math.max(W6, o)));
|
|
3456
3456
|
}, V = () => {
|
|
3457
|
-
k(), C(), !n && !
|
|
3458
|
-
|
|
3457
|
+
k(), C(), !n && !t3 && !V3 ? t3 = setTimeout(() => {
|
|
3458
|
+
t3 = null, V3 = !0, p();
|
|
3459
3459
|
}, r) : n || p();
|
|
3460
3460
|
};
|
|
3461
3461
|
return x(() => {
|
|
@@ -3595,7 +3595,7 @@ function D7({
|
|
|
3595
3595
|
V && (b(""), C());
|
|
3596
3596
|
}
|
|
3597
3597
|
return e ? /* @__PURE__ */ t(k6, { isOpen: e, onOpenChange: (W) => !W && M(), children: /* @__PURE__ */ l(p6, { children: [
|
|
3598
|
-
/* @__PURE__ */ l(
|
|
3598
|
+
/* @__PURE__ */ l(r3, { direction: "row", alignPrimary: "space-between", alignSecondary: "center", children: [
|
|
3599
3599
|
/* @__PURE__ */ t(e1, { children: r }),
|
|
3600
3600
|
/* @__PURE__ */ t(Y6, { onPress: M })
|
|
3601
3601
|
] }),
|
|
@@ -3618,7 +3618,7 @@ function D7({
|
|
|
3618
3618
|
)
|
|
3619
3619
|
] }),
|
|
3620
3620
|
/* @__PURE__ */ l(
|
|
3621
|
-
|
|
3621
|
+
r3,
|
|
3622
3622
|
{
|
|
3623
3623
|
direction: "row",
|
|
3624
3624
|
gap: "200",
|
|
@@ -3740,7 +3740,7 @@ function s2({
|
|
|
3740
3740
|
nestedActions: X,
|
|
3741
3741
|
nestedPageSize: Q
|
|
3742
3742
|
}) {
|
|
3743
|
-
const [I, Z] = E(""), [N,
|
|
3743
|
+
const [I, Z] = E(""), [N, i3] = E(1), [T, H] = E(/* @__PURE__ */ new Set()), [J, c3] = E(/* @__PURE__ */ new Map()), a3 = !!M && !!V, Y = !!n;
|
|
3744
3744
|
function f(L) {
|
|
3745
3745
|
const _ = L.id;
|
|
3746
3746
|
H((S) => {
|
|
@@ -3749,9 +3749,9 @@ function s2({
|
|
|
3749
3749
|
d3.delete(_);
|
|
3750
3750
|
else if (d3.add(_), !J.has(_)) {
|
|
3751
3751
|
const K = M(L);
|
|
3752
|
-
K instanceof Promise ? (
|
|
3753
|
-
|
|
3754
|
-
})) :
|
|
3752
|
+
K instanceof Promise ? (c3((H3) => new Map(H3).set(_, { status: "loading", data: [] })), K.then((H3) => {
|
|
3753
|
+
c3((f1) => new Map(f1).set(_, { status: "loaded", data: H3 }));
|
|
3754
|
+
})) : c3((H3) => new Map(H3).set(_, { status: "loaded", data: K }));
|
|
3755
3755
|
}
|
|
3756
3756
|
return d3;
|
|
3757
3757
|
});
|
|
@@ -3764,21 +3764,21 @@ function s2({
|
|
|
3764
3764
|
(S) => String(_[S] ?? "").toLowerCase().includes(L)
|
|
3765
3765
|
)
|
|
3766
3766
|
);
|
|
3767
|
-
}, [r, I, a, w]),
|
|
3767
|
+
}, [r, I, a, w]), e3 = Math.max(1, Math.ceil(q.length / b)), b3 = Math.min(N, e3), m = q.slice(
|
|
3768
3768
|
(b3 - 1) * b,
|
|
3769
3769
|
b3 * b
|
|
3770
3770
|
);
|
|
3771
3771
|
function P(L, _) {
|
|
3772
3772
|
return _.render ? _.render(L) : String(L[_.key] ?? "");
|
|
3773
3773
|
}
|
|
3774
|
-
return /* @__PURE__ */ l(
|
|
3774
|
+
return /* @__PURE__ */ l(r3, { direction: "column", gap: "300", className: "data-table", children: [
|
|
3775
3775
|
U && /* @__PURE__ */ l("div", { className: "data-table-toolbar", children: [
|
|
3776
3776
|
w && /* @__PURE__ */ t(
|
|
3777
3777
|
E9,
|
|
3778
3778
|
{
|
|
3779
3779
|
placeholder: s,
|
|
3780
3780
|
onSearch: (L) => {
|
|
3781
|
-
Z(L),
|
|
3781
|
+
Z(L), i3(1);
|
|
3782
3782
|
},
|
|
3783
3783
|
className: "data-table-search"
|
|
3784
3784
|
}
|
|
@@ -3806,7 +3806,7 @@ function s2({
|
|
|
3806
3806
|
},
|
|
3807
3807
|
String(L.key)
|
|
3808
3808
|
)),
|
|
3809
|
-
|
|
3809
|
+
Y && /* @__PURE__ */ t(j3, { align: "right", className: "data-table-row-actions-col", children: i })
|
|
3810
3810
|
] }),
|
|
3811
3811
|
/* @__PURE__ */ t(z9, { children: m.flatMap((L) => {
|
|
3812
3812
|
const _ = T.has(L.id), S = J.get(L.id), d3 = [
|
|
@@ -3822,33 +3822,40 @@ function s2({
|
|
|
3822
3822
|
}
|
|
3823
3823
|
) }),
|
|
3824
3824
|
e.map((K) => /* @__PURE__ */ t(v3, { align: K.align, children: P(L, K) }, String(K.key))),
|
|
3825
|
-
|
|
3825
|
+
Y && /* @__PURE__ */ t(v3, { align: "right", className: "data-table-row-actions-cell", children: /* @__PURE__ */ t("div", { className: "data-table-row-actions", children: (typeof n == "function" ? n(L) : n).map((K) => /* @__PURE__ */ t(c2, { action: K, item: L }, K.key)) }) })
|
|
3826
3826
|
] }, L.id)
|
|
3827
3827
|
];
|
|
3828
3828
|
return _ && d3.push(
|
|
3829
|
-
/* @__PURE__ */ t(_6, { id: `${L.id}-nested`, className: "data-table-nested-row", children: /* @__PURE__ */ t(
|
|
3830
|
-
|
|
3829
|
+
/* @__PURE__ */ t(_6, { id: `${L.id}-nested`, className: "data-table-nested-row", children: /* @__PURE__ */ t(
|
|
3830
|
+
v3,
|
|
3831
3831
|
{
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3832
|
+
colSpan: e.length + 1 + (Y ? 1 : 0),
|
|
3833
|
+
className: "data-table-nested-cell",
|
|
3834
|
+
children: /* @__PURE__ */ t(
|
|
3835
|
+
s2,
|
|
3836
|
+
{
|
|
3837
|
+
columns: V,
|
|
3838
|
+
data: (S == null ? void 0 : S.data) ?? [],
|
|
3839
|
+
isLoading: !S || S.status === "loading",
|
|
3840
|
+
loadingMessage: g,
|
|
3841
|
+
emptyMessage: W,
|
|
3842
|
+
searchKeys: y,
|
|
3843
|
+
searchPlaceholder: j,
|
|
3844
|
+
actions: X == null ? void 0 : X(L),
|
|
3845
|
+
pageSize: Q ?? b
|
|
3846
|
+
}
|
|
3847
|
+
)
|
|
3841
3848
|
}
|
|
3842
|
-
) }
|
|
3849
|
+
) }, `${L.id}-nested`)
|
|
3843
3850
|
), d3;
|
|
3844
3851
|
}) })
|
|
3845
3852
|
] }),
|
|
3846
|
-
|
|
3853
|
+
e3 > 1 && /* @__PURE__ */ t(
|
|
3847
3854
|
i2,
|
|
3848
3855
|
{
|
|
3849
3856
|
currentPage: b3,
|
|
3850
|
-
totalPages:
|
|
3851
|
-
onPageChange:
|
|
3857
|
+
totalPages: e3,
|
|
3858
|
+
onPageChange: i3,
|
|
3852
3859
|
previousLabel: k,
|
|
3853
3860
|
nextLabel: p
|
|
3854
3861
|
}
|
|
@@ -3868,13 +3875,13 @@ function A7({
|
|
|
3868
3875
|
children: C
|
|
3869
3876
|
}) {
|
|
3870
3877
|
return e ? /* @__PURE__ */ t(k6, { isOpen: e, onOpenChange: (k) => !k && u(), children: /* @__PURE__ */ l(p6, { className: h("form-modal", `form-modal--${a}`), children: [
|
|
3871
|
-
/* @__PURE__ */ l(
|
|
3878
|
+
/* @__PURE__ */ l(r3, { direction: "row", alignPrimary: "space-between", alignSecondary: "center", children: [
|
|
3872
3879
|
/* @__PURE__ */ t(e1, { children: r }),
|
|
3873
3880
|
/* @__PURE__ */ t(Y6, { onPress: u })
|
|
3874
3881
|
] }),
|
|
3875
|
-
/* @__PURE__ */ t(t1, { children: /* @__PURE__ */ t(
|
|
3882
|
+
/* @__PURE__ */ t(t1, { children: /* @__PURE__ */ t(r3, { direction: "column", gap: "300", children: C }) }),
|
|
3876
3883
|
/* @__PURE__ */ l(
|
|
3877
|
-
|
|
3884
|
+
r3,
|
|
3878
3885
|
{
|
|
3879
3886
|
direction: "row",
|
|
3880
3887
|
gap: "200",
|
|
@@ -3897,7 +3904,7 @@ function A7({
|
|
|
3897
3904
|
] }) }) : null;
|
|
3898
3905
|
}
|
|
3899
3906
|
function F7({ title: e, subtitle: r }) {
|
|
3900
|
-
return /* @__PURE__ */ l(
|
|
3907
|
+
return /* @__PURE__ */ l(r3, { direction: "column", gap: "200", className: "page-header", children: [
|
|
3901
3908
|
/* @__PURE__ */ t(F3, { elementType: "h1", className: "page-header-title", children: e }),
|
|
3902
3909
|
r && /* @__PURE__ */ t(F3, { className: "page-header-subtitle", children: r })
|
|
3903
3910
|
] });
|
|
@@ -3956,10 +3963,10 @@ export {
|
|
|
3956
3963
|
P9 as DialogTrigger,
|
|
3957
3964
|
e7 as ErrorNotification,
|
|
3958
3965
|
r1 as Field,
|
|
3959
|
-
|
|
3966
|
+
o3 as FieldError,
|
|
3960
3967
|
To as FieldGroup,
|
|
3961
3968
|
Zo as Fieldset,
|
|
3962
|
-
|
|
3969
|
+
r3 as Flex,
|
|
3963
3970
|
w7 as FlexItem,
|
|
3964
3971
|
Eo as Form,
|
|
3965
3972
|
A7 as FormModal,
|