@v1nt1248/3nclient-lib 0.1.68 → 0.1.69
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/components/ui3n-table/types.d.ts +3 -2
- package/dist/components/ui3n-table/ui3n-table.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/ui3n-components.js +856 -851
- package/dist/ui3n-plugins.js +90 -91
- package/package.json +1 -1
- package/src/components/ui3n-dialog/ui3n-dialog.vue +0 -1
- package/src/components/ui3n-table/types.ts +3 -3
- package/src/components/ui3n-table/ui3n-table.vue +14 -1
package/dist/ui3n-plugins.js
CHANGED
|
@@ -2,7 +2,7 @@ var fC = Object.defineProperty;
|
|
|
2
2
|
var dC = (I, g, C) => g in I ? fC(I, g, { enumerable: !0, configurable: !0, writable: !0, value: C }) : I[g] = C;
|
|
3
3
|
var KA = (I, g, C) => dC(I, typeof g != "symbol" ? g + "" : g, C);
|
|
4
4
|
import "pinia";
|
|
5
|
-
import { defineComponent as ZI, useCssVars as xC, computed as _A, openBlock as
|
|
5
|
+
import { defineComponent as ZI, useCssVars as xC, computed as _A, openBlock as yA, createElementBlock as qA, normalizeClass as NA, normalizeStyle as sB, useCssModule as RB, ref as bA, watch as VC, onMounted as kQ, withDirectives as uC, withKeys as bC, createBlock as yI, createCommentVNode as HA, renderSlot as pC, unref as ZC, createVNode as GB, createElementVNode as hQ, toDisplayString as fI, createApp as TC, nextTick as WC, mergeProps as Yg, toHandlers as OC, withModifiers as sQ, resolveDynamicComponent as mC, withCtx as Hg, createTextVNode as ng, h as XC, render as eg } from "vue";
|
|
6
6
|
const jC = Symbol(), iU = {
|
|
7
7
|
install: (I, g) => {
|
|
8
8
|
const { lang: C, messages: o } = g, w = Object.keys(o) || [], E = (M, K) => {
|
|
@@ -366,12 +366,12 @@ var Wi = { exports: {} };
|
|
|
366
366
|
var C = 1e3, o = 6e4, w = 36e5, E = "millisecond", y = "second", M = "minute", K = "hour", N = "day", H = "week", k = "month", Z = "quarter", O = "year", v = "date", QA = "Invalid Date", gA = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, AA = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, aA = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(c) {
|
|
367
367
|
var S = ["th", "st", "nd", "rd"], R = c % 100;
|
|
368
368
|
return "[" + c + (S[(R - 20) % 10] || S[R] || S[0]) + "]";
|
|
369
|
-
} },
|
|
369
|
+
} }, FA = function(c, S, R) {
|
|
370
370
|
var L = String(c);
|
|
371
371
|
return !L || L.length >= S ? c : "" + Array(S + 1 - L.length).join(R) + c;
|
|
372
|
-
},
|
|
372
|
+
}, sA = { s: FA, z: function(c) {
|
|
373
373
|
var S = -c.utcOffset(), R = Math.abs(S), L = Math.floor(R / 60), a = R % 60;
|
|
374
|
-
return (S <= 0 ? "+" : "-") +
|
|
374
|
+
return (S <= 0 ? "+" : "-") + FA(L, 2, "0") + ":" + FA(a, 2, "0");
|
|
375
375
|
}, m: function c(S, R) {
|
|
376
376
|
if (S.date() < R.date()) return -c(R, S);
|
|
377
377
|
var L = 12 * (R.year() - S.year()) + (R.month() - S.month()), a = S.clone().add(L, k), n = R - a < 0, e = S.clone().add(L + (n ? -1 : 1), k);
|
|
@@ -403,7 +403,7 @@ var Wi = { exports: {} };
|
|
|
403
403
|
if (Y(c)) return c.clone();
|
|
404
404
|
var R = typeof S == "object" ? S : {};
|
|
405
405
|
return R.date = c, R.args = arguments, new IA(R);
|
|
406
|
-
}, d =
|
|
406
|
+
}, d = sA;
|
|
407
407
|
d.l = V, d.i = Y, d.w = function(c, S) {
|
|
408
408
|
return f(c, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
|
|
409
409
|
};
|
|
@@ -460,8 +460,8 @@ var Wi = { exports: {} };
|
|
|
460
460
|
case k:
|
|
461
461
|
return n ? u(1, BA) : u(0, BA + 1);
|
|
462
462
|
case H:
|
|
463
|
-
var
|
|
464
|
-
return u(n ? oA -
|
|
463
|
+
var hA = this.$locale().weekStart || 0, RA = ($ < hA ? $ + 7 : $) - hA;
|
|
464
|
+
return u(n ? oA - RA : oA + (6 - RA), BA);
|
|
465
465
|
case N:
|
|
466
466
|
case v:
|
|
467
467
|
return m(wA + "Hours", 0);
|
|
@@ -505,9 +505,9 @@ var Wi = { exports: {} };
|
|
|
505
505
|
}, S.format = function(R) {
|
|
506
506
|
var L = this, a = this.$locale();
|
|
507
507
|
if (!this.isValid()) return a.invalidDate || QA;
|
|
508
|
-
var n = R || "YYYY-MM-DDTHH:mm:ssZ", e = d.z(this), u = this.$H, m = this.$m, $ = this.$M, BA = a.weekdays, oA = a.months, wA = a.meridiem,
|
|
508
|
+
var n = R || "YYYY-MM-DDTHH:mm:ssZ", e = d.z(this), u = this.$H, m = this.$m, $ = this.$M, BA = a.weekdays, oA = a.months, wA = a.meridiem, hA = function(X, SA, fA, jA) {
|
|
509
509
|
return X && (X[SA] || X(L, n)) || fA[SA].slice(0, jA);
|
|
510
|
-
},
|
|
510
|
+
}, RA = function(X) {
|
|
511
511
|
return d.s(u % 12 || 12, X, "0");
|
|
512
512
|
}, JA = wA || function(X, SA, fA) {
|
|
513
513
|
var jA = X < 12 ? "AM" : "PM";
|
|
@@ -525,9 +525,9 @@ var Wi = { exports: {} };
|
|
|
525
525
|
case "MM":
|
|
526
526
|
return d.s($ + 1, 2, "0");
|
|
527
527
|
case "MMM":
|
|
528
|
-
return
|
|
528
|
+
return hA(a.monthsShort, $, oA, 3);
|
|
529
529
|
case "MMMM":
|
|
530
|
-
return
|
|
530
|
+
return hA(oA, $);
|
|
531
531
|
case "D":
|
|
532
532
|
return L.$D;
|
|
533
533
|
case "DD":
|
|
@@ -535,9 +535,9 @@ var Wi = { exports: {} };
|
|
|
535
535
|
case "d":
|
|
536
536
|
return String(L.$W);
|
|
537
537
|
case "dd":
|
|
538
|
-
return
|
|
538
|
+
return hA(a.weekdaysMin, L.$W, BA, 2);
|
|
539
539
|
case "ddd":
|
|
540
|
-
return
|
|
540
|
+
return hA(a.weekdaysShort, L.$W, BA, 3);
|
|
541
541
|
case "dddd":
|
|
542
542
|
return BA[L.$W];
|
|
543
543
|
case "H":
|
|
@@ -545,9 +545,9 @@ var Wi = { exports: {} };
|
|
|
545
545
|
case "HH":
|
|
546
546
|
return d.s(u, 2, "0");
|
|
547
547
|
case "h":
|
|
548
|
-
return
|
|
548
|
+
return RA(1);
|
|
549
549
|
case "hh":
|
|
550
|
-
return
|
|
550
|
+
return RA(2);
|
|
551
551
|
case "a":
|
|
552
552
|
return JA(u, m, !0);
|
|
553
553
|
case "A":
|
|
@@ -646,12 +646,12 @@ var Oi = { exports: {} };
|
|
|
646
646
|
return E.fromToBase(N, H, k, Z);
|
|
647
647
|
}
|
|
648
648
|
w.en.relativeTime = y, E.fromToBase = function(N, H, k, Z, O) {
|
|
649
|
-
for (var v, QA, gA, AA = k.$locale().relativeTime || y, aA = C.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }],
|
|
650
|
-
var DA = aA[
|
|
649
|
+
for (var v, QA, gA, AA = k.$locale().relativeTime || y, aA = C.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], FA = aA.length, sA = 0; sA < FA; sA += 1) {
|
|
650
|
+
var DA = aA[sA];
|
|
651
651
|
DA.d && (v = Z ? w(N).diff(k, DA.d, !0) : k.diff(N, DA.d, !0));
|
|
652
652
|
var iA = (C.rounding || Math.round)(Math.abs(v));
|
|
653
653
|
if (gA = v > 0, iA <= DA.r || !DA.r) {
|
|
654
|
-
iA <= 1 &&
|
|
654
|
+
iA <= 1 && sA > 0 && (DA = aA[sA - 1]);
|
|
655
655
|
var J = AA[DA.l];
|
|
656
656
|
O && (iA = O("" + iA)), QA = typeof J == "string" ? J.replace("%d", iA) : J(iA, H, DA.l, gA);
|
|
657
657
|
break;
|
|
@@ -1025,10 +1025,10 @@ var lI = void 0, mi = function(I) {
|
|
|
1025
1025
|
D.status == 200 || D.status == 0 && D.response ? Q(D.response) : B();
|
|
1026
1026
|
}, D.onerror = B, D.send(null);
|
|
1027
1027
|
});
|
|
1028
|
-
var aA = E.print || console.log.bind(console),
|
|
1028
|
+
var aA = E.print || console.log.bind(console), FA = E.printErr || console.warn.bind(console);
|
|
1029
1029
|
Object.assign(E, y), y = null, E.thisProgram && (M = E.thisProgram);
|
|
1030
|
-
var
|
|
1031
|
-
E.wasmBinary && (
|
|
1030
|
+
var sA;
|
|
1031
|
+
E.wasmBinary && (sA = E.wasmBinary), E.noExitRuntime, typeof WebAssembly != "object" && RA("no native wasm support detected");
|
|
1032
1032
|
var DA, iA = !1, J = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
1033
1033
|
function Y(A, Q, B) {
|
|
1034
1034
|
var D = Q + B;
|
|
@@ -1099,9 +1099,9 @@ var lI = void 0, mi = function(I) {
|
|
|
1099
1099
|
var A = E.preRun.shift();
|
|
1100
1100
|
m.unshift(A);
|
|
1101
1101
|
}
|
|
1102
|
-
var wA = 0,
|
|
1103
|
-
function
|
|
1104
|
-
throw E.onAbort && E.onAbort(A), A = "Aborted(" + A + ")",
|
|
1102
|
+
var wA = 0, hA = null;
|
|
1103
|
+
function RA(A) {
|
|
1104
|
+
throw E.onAbort && E.onAbort(A), A = "Aborted(" + A + ")", FA(A), iA = !0, new WebAssembly.RuntimeError(A + ". Build with -sASSERTIONS for more info.");
|
|
1105
1105
|
}
|
|
1106
1106
|
function JA() {
|
|
1107
1107
|
return X.startsWith("data:application/octet-stream;base64,");
|
|
@@ -1114,15 +1114,15 @@ var lI = void 0, mi = function(I) {
|
|
|
1114
1114
|
function fA() {
|
|
1115
1115
|
var A = X;
|
|
1116
1116
|
try {
|
|
1117
|
-
if (A == X &&
|
|
1117
|
+
if (A == X && sA) return new Uint8Array(sA);
|
|
1118
1118
|
if (v) return v(A);
|
|
1119
1119
|
throw "both async and sync fetching of the wasm failed";
|
|
1120
1120
|
} catch (Q) {
|
|
1121
|
-
|
|
1121
|
+
RA(Q);
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
function jA() {
|
|
1125
|
-
if (!
|
|
1125
|
+
if (!sA && (K || N)) {
|
|
1126
1126
|
if (typeof fetch == "function" && !X.startsWith("file://")) return fetch(X, { credentials: "same-origin" }).then(function(A) {
|
|
1127
1127
|
if (!A.ok) throw "failed to load wasm binary file at '" + X + "'";
|
|
1128
1128
|
return A.arrayBuffer();
|
|
@@ -1162,7 +1162,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1162
1162
|
case "*":
|
|
1163
1163
|
return L[A >> 2];
|
|
1164
1164
|
default:
|
|
1165
|
-
|
|
1165
|
+
RA("invalid type for getValue: " + Q);
|
|
1166
1166
|
}
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
@@ -1194,7 +1194,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1194
1194
|
L[A >> 2] = 0;
|
|
1195
1195
|
break;
|
|
1196
1196
|
default:
|
|
1197
|
-
|
|
1197
|
+
RA("invalid type for setValue: " + Q);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
var zI = (A, Q) => {
|
|
@@ -1226,7 +1226,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1226
1226
|
return () => Q.randomBytes(1)[0];
|
|
1227
1227
|
} catch {
|
|
1228
1228
|
}
|
|
1229
|
-
return () =>
|
|
1229
|
+
return () => RA("randomDevice");
|
|
1230
1230
|
}
|
|
1231
1231
|
function aI() {
|
|
1232
1232
|
for (var A = "", Q = !1, B = arguments.length - 1; -1 <= B && !Q; B--) {
|
|
@@ -1297,9 +1297,9 @@ var lI = void 0, mi = function(I) {
|
|
|
1297
1297
|
}, fsync: function(A) {
|
|
1298
1298
|
A.output && 0 < A.output.length && (aA(Y(A.output, 0)), A.output = []);
|
|
1299
1299
|
} }, _B = { jb: function(A, Q) {
|
|
1300
|
-
Q === null || Q === 10 ? (
|
|
1300
|
+
Q === null || Q === 10 ? (FA(Y(A.output, 0)), A.output = []) : Q != 0 && A.output.push(Q);
|
|
1301
1301
|
}, fsync: function(A) {
|
|
1302
|
-
A.output && 0 < A.output.length && (
|
|
1302
|
+
A.output && 0 < A.output.length && (FA(Y(A.output, 0)), A.output = []);
|
|
1303
1303
|
} }, x = { Qa: null, Ra: function() {
|
|
1304
1304
|
return x.createNode(
|
|
1305
1305
|
null,
|
|
@@ -1392,7 +1392,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1392
1392
|
}, cb: function(A, Q, B, D, i) {
|
|
1393
1393
|
if ((A.node.mode & 61440) !== 32768) throw new h(43);
|
|
1394
1394
|
return i & 2 || x.Ha.write(A, Q, 0, D, B, !1), 0;
|
|
1395
|
-
} } }, _I = null, jQ = {}, dA = [], $B = 1, xA = null, vQ = !0, h = null, $I = {},
|
|
1395
|
+
} } }, _I = null, jQ = {}, dA = [], $B = 1, xA = null, vQ = !0, h = null, $I = {}, GA = (A, Q = {}) => {
|
|
1396
1396
|
if (A = aI("/", A), !A) return { path: "", node: null };
|
|
1397
1397
|
if (Q = Object.assign({ rb: !0, kb: 0 }, Q), 8 < Q.kb) throw new h(32);
|
|
1398
1398
|
A = zI(A.split("/").filter((G) => !!G), !1);
|
|
@@ -1400,7 +1400,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1400
1400
|
var s = i === A.length - 1;
|
|
1401
1401
|
if (s && Q.parent) break;
|
|
1402
1402
|
if (B = ZA(B, A[i]), D = rA(D + "/" + A[i]), B.Va && (!s || s && Q.rb) && (B = B.Va.root), !s || Q.Sa) {
|
|
1403
|
-
for (s = 0; (B.mode & 61440) === 40960; ) if (B = Cg(D), D = aI(jB(D), B), B =
|
|
1403
|
+
for (s = 0; (B.mode & 61440) === 40960; ) if (B = Cg(D), D = aI(jB(D), B), B = GA(D, { kb: Q.kb + 1 }).node, 40 < s++) throw new h(32);
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
return { path: D, node: B };
|
|
@@ -1484,13 +1484,13 @@ var lI = void 0, mi = function(I) {
|
|
|
1484
1484
|
var B = Q === "/", D = !Q;
|
|
1485
1485
|
if (B && _I) throw new h(10);
|
|
1486
1486
|
if (!B && !D) {
|
|
1487
|
-
var i =
|
|
1487
|
+
var i = GA(Q, { rb: !1 });
|
|
1488
1488
|
if (Q = i.path, i = i.node, i.Va) throw new h(10);
|
|
1489
1489
|
if ((i.mode & 61440) !== 16384) throw new h(54);
|
|
1490
1490
|
}
|
|
1491
1491
|
Q = { type: A, Kb: {}, ub: Q, Eb: [] }, A = A.Ra(Q), A.Ra = Q, Q.root = A, B ? _I = A : i && (i.Va = Q, i.Ra && i.Ra.Eb.push(Q));
|
|
1492
1492
|
}, SI = (A, Q, B) => {
|
|
1493
|
-
var D =
|
|
1493
|
+
var D = GA(A, { parent: !0 }).node;
|
|
1494
1494
|
if (A = LI(A), !A || A === "." || A === "..") throw new h(28);
|
|
1495
1495
|
var i = $Q(D, A);
|
|
1496
1496
|
if (i) throw new h(i);
|
|
@@ -1500,7 +1500,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1500
1500
|
typeof B > "u" && (B = Q, Q = 438), SI(A, Q | 8192, B);
|
|
1501
1501
|
}, QQ = (A, Q) => {
|
|
1502
1502
|
if (!aI(A)) throw new h(44);
|
|
1503
|
-
var B =
|
|
1503
|
+
var B = GA(Q, { parent: !0 }).node;
|
|
1504
1504
|
if (!B) throw new h(44);
|
|
1505
1505
|
Q = LI(Q);
|
|
1506
1506
|
var D = $Q(B, Q);
|
|
@@ -1508,7 +1508,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1508
1508
|
if (!B.Ga.symlink) throw new h(63);
|
|
1509
1509
|
B.Ga.symlink(B, Q, A);
|
|
1510
1510
|
}, gg = (A) => {
|
|
1511
|
-
var Q =
|
|
1511
|
+
var Q = GA(A, { parent: !0 }).node;
|
|
1512
1512
|
A = LI(A);
|
|
1513
1513
|
var B = ZA(Q, A), D = Ag(Q, A, !0);
|
|
1514
1514
|
if (D) throw new h(D);
|
|
@@ -1516,7 +1516,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1516
1516
|
if (B.Va) throw new h(10);
|
|
1517
1517
|
Q.Ga.rmdir(Q, A), PQ(B);
|
|
1518
1518
|
}, Bg = (A) => {
|
|
1519
|
-
var Q =
|
|
1519
|
+
var Q = GA(A, { parent: !0 }).node;
|
|
1520
1520
|
if (!Q) throw new h(44);
|
|
1521
1521
|
A = LI(A);
|
|
1522
1522
|
var B = ZA(Q, A), D = Ag(Q, A, !1);
|
|
@@ -1525,19 +1525,19 @@ var lI = void 0, mi = function(I) {
|
|
|
1525
1525
|
if (B.Va) throw new h(10);
|
|
1526
1526
|
Q.Ga.unlink(Q, A), PQ(B);
|
|
1527
1527
|
}, Cg = (A) => {
|
|
1528
|
-
if (A =
|
|
1528
|
+
if (A = GA(A).node, !A) throw new h(44);
|
|
1529
1529
|
if (!A.Ga.readlink) throw new h(28);
|
|
1530
1530
|
return aI(EI(A.parent), A.Ga.readlink(A));
|
|
1531
1531
|
}, DI = (A, Q) => {
|
|
1532
|
-
if (A =
|
|
1532
|
+
if (A = GA(A, { Sa: !Q }).node, !A) throw new h(44);
|
|
1533
1533
|
if (!A.Ga.Pa) throw new h(63);
|
|
1534
1534
|
return A.Ga.Pa(A);
|
|
1535
1535
|
}, Eg = (A) => DI(A, !0), JI = (A, Q) => {
|
|
1536
|
-
if (A = typeof A == "string" ?
|
|
1536
|
+
if (A = typeof A == "string" ? GA(A, { Sa: !0 }).node : A, !A.Ga.Oa) throw new h(63);
|
|
1537
1537
|
A.Ga.Oa(A, { mode: Q & 4095 | A.mode & -4096, timestamp: Date.now() });
|
|
1538
1538
|
}, Dg = (A, Q) => {
|
|
1539
1539
|
if (0 > Q) throw new h(28);
|
|
1540
|
-
if (A = typeof A == "string" ?
|
|
1540
|
+
if (A = typeof A == "string" ? GA(A, { Sa: !0 }).node : A, !A.Ga.Oa) throw new h(63);
|
|
1541
1541
|
if ((A.mode & 61440) === 16384) throw new h(31);
|
|
1542
1542
|
if ((A.mode & 61440) !== 32768) throw new h(28);
|
|
1543
1543
|
var B = vA(A, "w");
|
|
@@ -1554,7 +1554,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1554
1554
|
else {
|
|
1555
1555
|
A = rA(A);
|
|
1556
1556
|
try {
|
|
1557
|
-
i =
|
|
1557
|
+
i = GA(A, { Sa: !(Q & 131072) }).node;
|
|
1558
1558
|
} catch {
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
@@ -1804,7 +1804,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1804
1804
|
} }, "/proc/self/fd");
|
|
1805
1805
|
})();
|
|
1806
1806
|
var EC = { a: function(A, Q, B, D) {
|
|
1807
|
-
|
|
1807
|
+
RA("Assertion failed: " + V(A) + ", at: " + [Q ? V(Q) : "unknown filename", B, D ? V(D) : "unknown function"]);
|
|
1808
1808
|
}, h: function(A, Q) {
|
|
1809
1809
|
try {
|
|
1810
1810
|
return A = V(A), JI(A, Q), 0;
|
|
@@ -1815,7 +1815,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1815
1815
|
}, H: function(A, Q, B) {
|
|
1816
1816
|
try {
|
|
1817
1817
|
if (Q = V(Q), Q = TA(A, Q), B & -8) return -28;
|
|
1818
|
-
var D =
|
|
1818
|
+
var D = GA(Q, { Sa: !0 }).node;
|
|
1819
1819
|
return D ? (A = "", B & 4 && (A += "r"), B & 2 && (A += "w"), B & 1 && (A += "x"), A && vA(D, A) ? -2 : 0) : -44;
|
|
1820
1820
|
} catch (i) {
|
|
1821
1821
|
if (typeof z > "u" || !(i instanceof h)) throw i;
|
|
@@ -1834,7 +1834,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1834
1834
|
try {
|
|
1835
1835
|
var Q = dA[A];
|
|
1836
1836
|
if (!Q) throw new h(8);
|
|
1837
|
-
var B = Q.node, D = typeof B == "string" ?
|
|
1837
|
+
var B = Q.node, D = typeof B == "string" ? GA(B, { Sa: !0 }).node : B;
|
|
1838
1838
|
if (!D.Ga.Oa) throw new h(63);
|
|
1839
1839
|
return D.Ga.Oa(D, { timestamp: Date.now() }), 0;
|
|
1840
1840
|
} catch (i) {
|
|
@@ -1962,7 +1962,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
}, p: function(A, Q, B) {
|
|
1964
1964
|
try {
|
|
1965
|
-
return Q = V(Q), Q = TA(A, Q), B === 0 ? Bg(Q) : B === 512 ? gg(Q) :
|
|
1965
|
+
return Q = V(Q), Q = TA(A, Q), B === 0 ? Bg(Q) : B === 512 ? gg(Q) : RA("Invalid flags passed to unlinkat"), 0;
|
|
1966
1966
|
} catch (D) {
|
|
1967
1967
|
if (typeof z > "u" || !(D instanceof h)) throw D;
|
|
1968
1968
|
return -D.Ka;
|
|
@@ -1974,7 +1974,7 @@ var lI = void 0, mi = function(I) {
|
|
|
1974
1974
|
s = 1e3 * D + i / 1e6, B += 16, D = CQ(B), i = R[B + 8 >> 2], G = 1e3 * D + i / 1e6;
|
|
1975
1975
|
} else var s = Date.now(), G = s;
|
|
1976
1976
|
A = s;
|
|
1977
|
-
var l =
|
|
1977
|
+
var l = GA(Q, { Sa: !0 }).node;
|
|
1978
1978
|
return l.Ga.Oa(l, { timestamp: Math.max(A, G) }), 0;
|
|
1979
1979
|
} catch (T) {
|
|
1980
1980
|
if (typeof z > "u" || !(T instanceof h)) throw T;
|
|
@@ -2130,7 +2130,7 @@ var lI = void 0, mi = function(I) {
|
|
|
2130
2130
|
} };
|
|
2131
2131
|
(function() {
|
|
2132
2132
|
function A(i) {
|
|
2133
|
-
E.asm = i.exports, DA = E.asm.I, e(), u = E.asm.Aa, $.unshift(E.asm.J), wA--, E.monitorRunDependencies && E.monitorRunDependencies(wA), wA == 0 &&
|
|
2133
|
+
E.asm = i.exports, DA = E.asm.I, e(), u = E.asm.Aa, $.unshift(E.asm.J), wA--, E.monitorRunDependencies && E.monitorRunDependencies(wA), wA == 0 && hA && (i = hA, hA = null, i());
|
|
2134
2134
|
}
|
|
2135
2135
|
function Q(i) {
|
|
2136
2136
|
A(i.instance);
|
|
@@ -2141,19 +2141,19 @@ var lI = void 0, mi = function(I) {
|
|
|
2141
2141
|
}).then(function(s) {
|
|
2142
2142
|
return s;
|
|
2143
2143
|
}).then(i, function(s) {
|
|
2144
|
-
|
|
2144
|
+
FA("failed to asynchronously prepare wasm: " + s), RA(s);
|
|
2145
2145
|
});
|
|
2146
2146
|
}
|
|
2147
2147
|
var D = { a: EC };
|
|
2148
2148
|
if (wA++, E.monitorRunDependencies && E.monitorRunDependencies(wA), E.instantiateWasm) try {
|
|
2149
2149
|
return E.instantiateWasm(D, A);
|
|
2150
2150
|
} catch (i) {
|
|
2151
|
-
return
|
|
2151
|
+
return FA("Module.instantiateWasm callback failed with error: " + i), !1;
|
|
2152
2152
|
}
|
|
2153
2153
|
return function() {
|
|
2154
|
-
return
|
|
2154
|
+
return sA || typeof WebAssembly.instantiateStreaming != "function" || JA() || X.startsWith("file://") || H || typeof fetch != "function" ? B(Q) : fetch(X, { credentials: "same-origin" }).then(function(i) {
|
|
2155
2155
|
return WebAssembly.instantiateStreaming(i, D).then(Q, function(s) {
|
|
2156
|
-
return
|
|
2156
|
+
return FA("wasm streaming compile failed: " + s), FA("falling back to ArrayBuffer instantiation"), B(Q);
|
|
2157
2157
|
});
|
|
2158
2158
|
});
|
|
2159
2159
|
}(), {};
|
|
@@ -2271,8 +2271,8 @@ var lI = void 0, mi = function(I) {
|
|
|
2271
2271
|
};
|
|
2272
2272
|
};
|
|
2273
2273
|
var eI;
|
|
2274
|
-
|
|
2275
|
-
eI || Lg(), eI || (
|
|
2274
|
+
hA = function A() {
|
|
2275
|
+
eI || Lg(), eI || (hA = A);
|
|
2276
2276
|
};
|
|
2277
2277
|
function Lg() {
|
|
2278
2278
|
function A() {
|
|
@@ -2470,7 +2470,7 @@ const Pi = ["title"], HB = /* @__PURE__ */ ZI({
|
|
|
2470
2470
|
function y(M) {
|
|
2471
2471
|
o("click", M);
|
|
2472
2472
|
}
|
|
2473
|
-
return (M, K) => (
|
|
2473
|
+
return (M, K) => (yA(), qA("div", {
|
|
2474
2474
|
class: NA(["ui3n-icon", w.value]),
|
|
2475
2475
|
title: M.title,
|
|
2476
2476
|
style: sB(E.value),
|
|
@@ -2555,7 +2555,7 @@ const _i = {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
), kQ(() => {
|
|
2557
2557
|
y.value && ((o.type === "custom" || o.type === "icon") && o.color && y.value.style.setProperty("--ui3n-button-bg-color-custom", o.color), o.type === "custom" && o.textColor && y.value.style.setProperty("--ui3n-button-text-color-custom", o.textColor), K("init"));
|
|
2558
|
-
}), (N, H) => uC((
|
|
2558
|
+
}), (N, H) => uC((yA(), qA("button", {
|
|
2559
2559
|
ref_key: "buttonEl",
|
|
2560
2560
|
ref: y,
|
|
2561
2561
|
class: NA(M.value),
|
|
@@ -2566,7 +2566,7 @@ const _i = {
|
|
|
2566
2566
|
onFocusout: H[2] || (H[2] = (k) => K("blur", k)),
|
|
2567
2567
|
onKeydown: H[3] || (H[3] = bC((k) => K("enter"), ["enter"]))
|
|
2568
2568
|
}, [
|
|
2569
|
-
N.icon ? (
|
|
2569
|
+
N.icon ? (yA(), yI(HB, {
|
|
2570
2570
|
key: 0,
|
|
2571
2571
|
class: NA(N.$style.buttonIcon),
|
|
2572
2572
|
icon: N.icon,
|
|
@@ -2574,7 +2574,7 @@ const _i = {
|
|
|
2574
2574
|
height: N.iconSize || (N.size === "small" ? 12 : 16),
|
|
2575
2575
|
color: N.iconColor || "var(--color-text-button-primary-default)"
|
|
2576
2576
|
}, null, 8, ["class", "icon", "width", "height", "color"])) : HA("", !0),
|
|
2577
|
-
N.type !== "icon" ? (
|
|
2577
|
+
N.type !== "icon" ? (yA(), qA("span", {
|
|
2578
2578
|
key: 1,
|
|
2579
2579
|
class: NA(N.$style.text)
|
|
2580
2580
|
}, [
|
|
@@ -2658,11 +2658,11 @@ const _i = {
|
|
|
2658
2658
|
g.duration > 500 && setTimeout(() => {
|
|
2659
2659
|
g.onClose();
|
|
2660
2660
|
}, g.duration);
|
|
2661
|
-
}), (y, M) => (
|
|
2661
|
+
}), (y, M) => (yA(), qA("div", {
|
|
2662
2662
|
id: y.id,
|
|
2663
2663
|
class: NA(w.value)
|
|
2664
2664
|
}, [
|
|
2665
|
-
y.withIcon ? (
|
|
2665
|
+
y.withIcon ? (yA(), qA("div", {
|
|
2666
2666
|
key: 0,
|
|
2667
2667
|
class: NA(y.$style.ui3nNotificationIcon)
|
|
2668
2668
|
}, [
|
|
@@ -2677,7 +2677,7 @@ const _i = {
|
|
|
2677
2677
|
hQ("div", {
|
|
2678
2678
|
class: NA(y.$style.ui3nNotificationContent)
|
|
2679
2679
|
}, fI(y.content), 3),
|
|
2680
|
-
y.duration ? HA("", !0) : (
|
|
2680
|
+
y.duration ? HA("", !0) : (yA(), yI(dI, {
|
|
2681
2681
|
key: 1,
|
|
2682
2682
|
type: "icon",
|
|
2683
2683
|
size: "small",
|
|
@@ -3427,24 +3427,23 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3427
3427
|
emits: ["open", "before-close", "close", "confirm", "cancel", "click-overlay"],
|
|
3428
3428
|
setup(I, { emit: g }) {
|
|
3429
3429
|
const C = I, o = g, w = _A(() => {
|
|
3430
|
-
var J, Y, V, f, d, IA, P, c, S, R, L, a, n, e, u, m, $, BA, oA, wA
|
|
3430
|
+
var J, Y, V, f, d, IA, P, c, S, R, L, a, n, e, u, m, $, BA, oA, wA;
|
|
3431
3431
|
return {
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
closeOnClickOverlay: ((FA = C.dialogProps) == null ? void 0 : FA.closeOnClickOverlay) !== !1
|
|
3432
|
+
title: ((J = C.dialogProps) == null ? void 0 : J.title) || "",
|
|
3433
|
+
cssClass: ((Y = C.dialogProps) == null ? void 0 : Y.cssClass) || [],
|
|
3434
|
+
cssStyle: ((V = C.dialogProps) == null ? void 0 : V.cssStyle) || {},
|
|
3435
|
+
contentCssClass: ((f = C.dialogProps) == null ? void 0 : f.contentCssClass) || [],
|
|
3436
|
+
contentCssStyle: ((d = C.dialogProps) == null ? void 0 : d.contentCssStyle) || {},
|
|
3437
|
+
width: (IA = C.dialogProps) != null && IA.width ? (P = C.dialogProps) == null ? void 0 : P.width : (S = (c = C.dialogProps) == null ? void 0 : c.cssStyle) != null && S.width ? (L = (R = C.dialogProps) == null ? void 0 : R.cssStyle) == null ? void 0 : L.width : 380,
|
|
3438
|
+
confirmButton: ((a = C.dialogProps) == null ? void 0 : a.confirmButton) !== !1,
|
|
3439
|
+
cancelButton: ((n = C.dialogProps) == null ? void 0 : n.cancelButton) !== !1,
|
|
3440
|
+
confirmButtonText: ((e = C.dialogProps) == null ? void 0 : e.confirmButtonText) || "Done",
|
|
3441
|
+
cancelButtonText: ((u = C.dialogProps) == null ? void 0 : u.cancelButtonText) || "Cancel",
|
|
3442
|
+
confirmButtonColor: ((m = C.dialogProps) == null ? void 0 : m.confirmButtonColor) || "var(--color-text-button-primary-default)",
|
|
3443
|
+
cancelButtonColor: (($ = C.dialogProps) == null ? void 0 : $.cancelButtonColor) || "var(--color-text-button-secondary-default)",
|
|
3444
|
+
confirmButtonBackground: ((BA = C.dialogProps) == null ? void 0 : BA.confirmButtonBackground) || "var(--color-bg-button-primary-default)",
|
|
3445
|
+
cancelButtonBackground: ((oA = C.dialogProps) == null ? void 0 : oA.cancelButtonBackground) || "var(--color-bg-button-secondary-default)",
|
|
3446
|
+
closeOnClickOverlay: ((wA = C.dialogProps) == null ? void 0 : wA.closeOnClickOverlay) !== !1
|
|
3448
3447
|
};
|
|
3449
3448
|
}), E = bA(!0), y = bA(null), M = bA(!0), K = bA(null), N = bA(null), H = bA(!1), k = bA({
|
|
3450
3449
|
initialLeft: 0,
|
|
@@ -3492,10 +3491,10 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3492
3491
|
function aA(J, Y) {
|
|
3493
3492
|
J.stopImmediatePropagation(), J.preventDefault(), AA(Y);
|
|
3494
3493
|
}
|
|
3495
|
-
function
|
|
3494
|
+
function FA() {
|
|
3496
3495
|
return !1;
|
|
3497
3496
|
}
|
|
3498
|
-
function
|
|
3497
|
+
function sA() {
|
|
3499
3498
|
return H.value = !1, k.value.shiftX = 0, k.value.shiftY = 0, !1;
|
|
3500
3499
|
}
|
|
3501
3500
|
function DA(J) {
|
|
@@ -3527,7 +3526,7 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3527
3526
|
}));
|
|
3528
3527
|
}), (J, Y) => {
|
|
3529
3528
|
var V, f, d;
|
|
3530
|
-
return E.value ? (
|
|
3529
|
+
return E.value ? (yA(), qA("div", {
|
|
3531
3530
|
key: 0,
|
|
3532
3531
|
ref_key: "dialogOverlayElement",
|
|
3533
3532
|
ref: K,
|
|
@@ -3547,15 +3546,15 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3547
3546
|
style: Z.value
|
|
3548
3547
|
}, OC(
|
|
3549
3548
|
(d = J.dialogProps) != null && d.draggable ? {
|
|
3550
|
-
dragstart:
|
|
3549
|
+
dragstart: FA,
|
|
3551
3550
|
mousedown: DA,
|
|
3552
|
-
mouseup:
|
|
3551
|
+
mouseup: sA,
|
|
3553
3552
|
mousemove: iA,
|
|
3554
3553
|
keydown: gA
|
|
3555
3554
|
} : { keydown: gA },
|
|
3556
3555
|
!0
|
|
3557
3556
|
)), [
|
|
3558
|
-
w.value.title ? (
|
|
3557
|
+
w.value.title ? (yA(), qA("div", {
|
|
3559
3558
|
key: 0,
|
|
3560
3559
|
class: NA(J.$style.title),
|
|
3561
3560
|
onClick: Y[0] || (Y[0] = sQ(() => {
|
|
@@ -3573,14 +3572,14 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3573
3572
|
"icon-color": "var(--color-icon-control-primary-default)",
|
|
3574
3573
|
onClick: Y[1] || (Y[1] = (IA) => QA({ ev: IA }))
|
|
3575
3574
|
}, null, 8, ["class"]),
|
|
3576
|
-
J.component ? (
|
|
3575
|
+
J.component ? (yA(), qA("div", {
|
|
3577
3576
|
key: 1,
|
|
3578
3577
|
class: NA([J.$style.content, ...w.value.contentCssClass]),
|
|
3579
3578
|
style: sB(w.value.contentCssStyle),
|
|
3580
3579
|
onClick: Y[5] || (Y[5] = sQ(() => {
|
|
3581
3580
|
}, ["stop"]))
|
|
3582
3581
|
}, [
|
|
3583
|
-
(
|
|
3582
|
+
(yA(), yI(mC(J.component), Yg(J.componentProps, {
|
|
3584
3583
|
onSelect: O,
|
|
3585
3584
|
onValidate: v,
|
|
3586
3585
|
onClose: Y[2] || (Y[2] = (IA) => QA({ ev: IA })),
|
|
@@ -3588,7 +3587,7 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3588
3587
|
onCancel: Y[4] || (Y[4] = (IA) => AA("cancel"))
|
|
3589
3588
|
}), null, 16))
|
|
3590
3589
|
], 6)) : HA("", !0),
|
|
3591
|
-
w.value.confirmButton || w.value.cancelButton ? (
|
|
3590
|
+
w.value.confirmButton || w.value.cancelButton ? (yA(), qA("div", {
|
|
3592
3591
|
key: 2,
|
|
3593
3592
|
class: NA([
|
|
3594
3593
|
J.$style.actions,
|
|
@@ -3597,7 +3596,7 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3597
3596
|
onClick: Y[8] || (Y[8] = sQ(() => {
|
|
3598
3597
|
}, ["stop"]))
|
|
3599
3598
|
}, [
|
|
3600
|
-
w.value.cancelButton ? (
|
|
3599
|
+
w.value.cancelButton ? (yA(), yI(dI, {
|
|
3601
3600
|
key: 0,
|
|
3602
3601
|
type: "secondary",
|
|
3603
3602
|
color: w.value.cancelButtonBackground,
|
|
@@ -3609,7 +3608,7 @@ const Zh = ["id"], Th = /* @__PURE__ */ ZI({
|
|
|
3609
3608
|
]),
|
|
3610
3609
|
_: 1
|
|
3611
3610
|
}, 8, ["color", "text-color"])) : HA("", !0),
|
|
3612
|
-
w.value.confirmButton ? (
|
|
3611
|
+
w.value.confirmButton ? (yA(), yI(dI, {
|
|
3613
3612
|
key: 1,
|
|
3614
3613
|
color: w.value.confirmButtonBackground,
|
|
3615
3614
|
"text-color": w.value.confirmButtonColor,
|
package/package.json
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
const emits = defineEmits<Ui3nDialogComponentEmits>();
|
|
11
11
|
|
|
12
12
|
const currentDialogProps = computed(() => ({
|
|
13
|
-
teleport: props.dialogProps?.teleport || 'body',
|
|
14
13
|
title: props.dialogProps?.title || '',
|
|
15
14
|
cssClass: props.dialogProps?.cssClass || [],
|
|
16
15
|
cssStyle: props.dialogProps?.cssStyle || {},
|
|
@@ -43,12 +43,12 @@ export interface Ui3nTableProps<T extends Ui3nTableBodyBaseItem> {
|
|
|
43
43
|
|
|
44
44
|
export interface Ui3nTableEmits<T extends Ui3nTableBodyBaseItem> {
|
|
45
45
|
(ev: 'change:sort', val: Ui3nTableSort<T>): void;
|
|
46
|
-
|
|
47
46
|
(ev: 'select:row', val: T[]): void;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
export type
|
|
49
|
+
export type Ui3nTableOtherSlots = {
|
|
51
50
|
'no-data': () => VNode;
|
|
51
|
+
'unused-place': () => VNode;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
export type Ui3nTableGroupActionsSlot<T extends Ui3nTableBodyBaseItem> = {
|
|
@@ -86,7 +86,7 @@ export type Ui3nTableBodyRowCellSlot<T extends Ui3nTableBodyBaseItem, K extends
|
|
|
86
86
|
[p in `row-cell-${K}`]: (scope: Ui3nTableBodyRowCellSlotScope<T, K>) => VNode;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> =
|
|
89
|
+
export type Ui3nTableSlots<T extends Ui3nTableBodyBaseItem, K extends string & keyof T> = Ui3nTableOtherSlots &
|
|
90
90
|
Ui3nTableGroupActionsSlot<T> &
|
|
91
91
|
Ui3nTableHeaderCellSlot<T, K> &
|
|
92
92
|
Ui3nTableBodyRowSlot<T> &
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
</template>
|
|
106
106
|
</div>
|
|
107
107
|
|
|
108
|
-
<!-- table body -->
|
|
108
|
+
<!-- table: body -->
|
|
109
109
|
<div :class="$style.body">
|
|
110
110
|
<template v-if="config?.showNoDataMessage && !size(body.content)">
|
|
111
111
|
<slot name="no-data">
|
|
@@ -177,6 +177,11 @@
|
|
|
177
177
|
</template>
|
|
178
178
|
</template>
|
|
179
179
|
</div>
|
|
180
|
+
|
|
181
|
+
<!-- table: unused space-->
|
|
182
|
+
<div :class="$style.unusedPlace">
|
|
183
|
+
<slot name="unused-place" />
|
|
184
|
+
</div>
|
|
180
185
|
</div>
|
|
181
186
|
</template>
|
|
182
187
|
|
|
@@ -200,6 +205,10 @@
|
|
|
200
205
|
height: 100%;
|
|
201
206
|
background-color: transparent;
|
|
202
207
|
overflow-y: auto;
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
justify-content: flex-start;
|
|
211
|
+
align-items: stretch;
|
|
203
212
|
}
|
|
204
213
|
|
|
205
214
|
.header {
|
|
@@ -360,4 +369,8 @@
|
|
|
360
369
|
font-weight: 600;
|
|
361
370
|
color: var(--ui3n-table-nodata-color);
|
|
362
371
|
}
|
|
372
|
+
|
|
373
|
+
.unusedPlace {
|
|
374
|
+
flex-grow: 1;
|
|
375
|
+
}
|
|
363
376
|
</style>
|