oga-ui 0.1.69 → 0.1.71
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/editor/index.es.ts +4 -0
- package/editor/index.umd.ts +1 -1
- package/image-upload/index.es.ts +4 -0
- package/image-upload/index.umd.ts +1 -1
- package/index.css +1 -1
- package/index.es.ts +105 -86
- package/index.umd.ts +56 -56
- package/package.json +1 -1
- package/page/index.es.ts +4 -0
- package/page/index.umd.ts +1 -1
- package/paging/index.es.ts +4 -0
- package/paging/index.umd.ts +1 -1
- package/table/index.css +1 -1
- package/table/index.es.ts +2694 -208
- package/table/index.umd.ts +12 -6
- package/unsaved/index.es.ts +4 -0
- package/unsaved/index.umd.ts +1 -1
package/index.es.ts
CHANGED
|
@@ -771,7 +771,7 @@ function createTokenizer(x, _r = {}) {
|
|
|
771
771
|
for (; _r = vG(x);) Li += _r;
|
|
772
772
|
let fa = x.currentChar();
|
|
773
773
|
if (fa && fa !== "}" && fa !== EOF && fa !== CHAR_SP && fa !== CHAR_LF && fa !== " ") {
|
|
774
|
-
let _r =
|
|
774
|
+
let _r = O$t(x);
|
|
775
775
|
return Ff(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, Vo(), 0, Li + _r), Li + _r;
|
|
776
776
|
}
|
|
777
777
|
return x.currentChar() === EOF && Ff(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, Vo(), 0), Li;
|
|
@@ -796,12 +796,12 @@ function createTokenizer(x, _r = {}) {
|
|
|
796
796
|
switch (_r) {
|
|
797
797
|
case "\\":
|
|
798
798
|
case "'": return x.next(), `\\${_r}`;
|
|
799
|
-
case "u": return
|
|
800
|
-
case "U": return
|
|
799
|
+
case "u": return U3(x, _r, 4);
|
|
800
|
+
case "U": return U3(x, _r, 6);
|
|
801
801
|
default: return Ff(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, Vo(), 0, _r), "";
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function U3(x, _r, Li) {
|
|
805
805
|
x_(x, _r);
|
|
806
806
|
let fa = "";
|
|
807
807
|
for (let lo = 0; lo < Li; lo++) {
|
|
@@ -814,33 +814,33 @@ function createTokenizer(x, _r = {}) {
|
|
|
814
814
|
}
|
|
815
815
|
return `\\${_r}${fa}`;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function D$t(x) {
|
|
818
818
|
return x !== "{" && x !== "}" && x !== CHAR_SP && x !== CHAR_LF;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function O$t(x) {
|
|
821
821
|
dx(x);
|
|
822
822
|
let _r = "", Li = "";
|
|
823
|
-
for (; _r = VF(x,
|
|
823
|
+
for (; _r = VF(x, D$t);) Li += _r;
|
|
824
824
|
return Li;
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function k$t(x) {
|
|
827
827
|
let _r = "", Li = "";
|
|
828
828
|
for (; _r = tH(x);) Li += _r;
|
|
829
829
|
return Li;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function A$t(x) {
|
|
832
832
|
let _r = (Li) => {
|
|
833
833
|
let fa = x.currentChar();
|
|
834
834
|
return fa === "{" || fa === "@" || fa === "|" || fa === "(" || fa === ")" || !fa || fa === CHAR_SP ? Li : (Li += fa, x.next(), _r(Li));
|
|
835
835
|
};
|
|
836
836
|
return _r("");
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function j$t(x) {
|
|
839
839
|
dx(x);
|
|
840
840
|
let _r = x_(x, "|");
|
|
841
841
|
return dx(x), _r;
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function M$t(x, _r) {
|
|
844
844
|
let Li = null;
|
|
845
845
|
switch (x.currentChar()) {
|
|
846
846
|
case "{": return _r.braceNest >= 1 && Ff(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, Vo(), 0), x.next(), Li = Lm(_r, 2, "{"), dx(x), _r.braceNest++, Li;
|
|
@@ -848,12 +848,12 @@ function createTokenizer(x, _r = {}) {
|
|
|
848
848
|
case "@": return _r.braceNest > 0 && Ff(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, Vo(), 0), Li = N$t(x, _r) || Bm(_r), _r.braceNest = 0, Li;
|
|
849
849
|
default: {
|
|
850
850
|
let fa = !0, lo = !0, Xo = !0;
|
|
851
|
-
if ($P(x)) return _r.braceNest > 0 && Ff(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, Vo(), 0), Li = Lm(_r, 1,
|
|
851
|
+
if ($P(x)) return _r.braceNest > 0 && Ff(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, Vo(), 0), Li = Lm(_r, 1, j$t(x)), _r.braceNest = 0, _r.inLinked = !1, Li;
|
|
852
852
|
if (_r.braceNest > 0 && (_r.currentType === 4 || _r.currentType === 5 || _r.currentType === 6)) return Ff(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, Vo(), 0), _r.braceNest = 0, P$t(x, _r);
|
|
853
853
|
if (fa = uC(x, _r)) return Li = Lm(_r, 4, T$t(x)), dx(x), Li;
|
|
854
854
|
if (lo = _T(x, _r)) return Li = Lm(_r, 5, qX(x)), dx(x), Li;
|
|
855
855
|
if (Xo = ID(x, _r)) return Li = Lm(_r, 6, E$t(x)), dx(x), Li;
|
|
856
|
-
if (!fa && !lo && !Xo) return Li = Lm(_r, 12,
|
|
856
|
+
if (!fa && !lo && !Xo) return Li = Lm(_r, 12, O$t(x)), Ff(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, Vo(), 0, Li.value), dx(x), Li;
|
|
857
857
|
break;
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -865,19 +865,19 @@ function createTokenizer(x, _r = {}) {
|
|
|
865
865
|
case "@": return x.next(), fa = Lm(_r, 7, "@"), _r.inLinked = !0, fa;
|
|
866
866
|
case ".": return dx(x), x.next(), Lm(_r, 8, ".");
|
|
867
867
|
case ":": return dx(x), x.next(), Lm(_r, 9, ":");
|
|
868
|
-
default: return $P(x) ? (fa = Lm(_r, 1,
|
|
868
|
+
default: return $P(x) ? (fa = Lm(_r, 1, j$t(x)), _r.braceNest = 0, _r.inLinked = !1, fa) : ok(x, _r) || Dj(x, _r) ? (dx(x), N$t(x, _r)) : ij(x, _r) ? (dx(x), Lm(_r, 11, k$t(x))) : LP(x, _r) ? (dx(x), lo === "{" ? M$t(x, _r) || fa : Lm(_r, 10, A$t(x))) : (Li === 7 && Ff(CompileErrorCodes.INVALID_LINKED_FORMAT, Vo(), 0), _r.braceNest = 0, _r.inLinked = !1, P$t(x, _r));
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
function P$t(x, _r) {
|
|
872
872
|
let Li = { type: 13 };
|
|
873
|
-
if (_r.braceNest > 0) return
|
|
873
|
+
if (_r.braceNest > 0) return M$t(x, _r) || Bm(_r);
|
|
874
874
|
if (_r.inLinked) return N$t(x, _r) || Bm(_r);
|
|
875
875
|
switch (x.currentChar()) {
|
|
876
|
-
case "{": return
|
|
876
|
+
case "{": return M$t(x, _r) || Bm(_r);
|
|
877
877
|
case "}": return Ff(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, Vo(), 0), x.next(), Lm(_r, 3, "}");
|
|
878
878
|
case "@": return N$t(x, _r) || Bm(_r);
|
|
879
879
|
default:
|
|
880
|
-
if ($P(x)) return Li = Lm(_r, 1,
|
|
880
|
+
if ($P(x)) return Li = Lm(_r, 1, j$t(x)), _r.braceNest = 0, _r.inLinked = !1, Li;
|
|
881
881
|
if (CF(x)) return Lm(_r, 0, w$t(x));
|
|
882
882
|
break;
|
|
883
883
|
}
|
|
@@ -2394,39 +2394,39 @@ function createComposer(x = {}) {
|
|
|
2394
2394
|
function S2(x) {
|
|
2395
2395
|
return x.map((x) => isString$1(x) || isNumber$1(x) || isBoolean$1(x) ? createTextNode(String(x)) : x);
|
|
2396
2396
|
}
|
|
2397
|
-
let
|
|
2397
|
+
let U3 = {
|
|
2398
2398
|
normalize: S2,
|
|
2399
2399
|
interpolate: (x) => x,
|
|
2400
2400
|
type: "vnode"
|
|
2401
2401
|
};
|
|
2402
|
-
function
|
|
2402
|
+
function D$t(...x) {
|
|
2403
2403
|
return Uq((_r) => {
|
|
2404
2404
|
let Li, fa = _r;
|
|
2405
2405
|
try {
|
|
2406
|
-
fa.processor =
|
|
2406
|
+
fa.processor = U3, Li = Reflect.apply(translate$1, null, [fa, ...x]);
|
|
2407
2407
|
} finally {
|
|
2408
2408
|
fa.processor = null;
|
|
2409
2409
|
}
|
|
2410
2410
|
return Li;
|
|
2411
2411
|
}, () => parseTranslateArgs(...x), "translate", (_r) => _r[TranslateVNodeSymbol](...x), (x) => [createTextNode(x)], (x) => isArray$2(x));
|
|
2412
2412
|
}
|
|
2413
|
-
function
|
|
2413
|
+
function O$t(...x) {
|
|
2414
2414
|
return Uq((_r) => Reflect.apply(number, null, [_r, ...x]), () => parseNumberArgs(...x), "number format", (_r) => _r[NumberPartsSymbol](...x), NOOP_RETURN_ARRAY, (x) => isString$1(x) || isArray$2(x));
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function k$t(...x) {
|
|
2417
2417
|
return Uq((_r) => Reflect.apply(datetime, null, [_r, ...x]), () => parseDateTimeArgs(...x), "datetime format", (_r) => _r[DatetimePartsSymbol](...x), NOOP_RETURN_ARRAY, (x) => isString$1(x) || isArray$2(x));
|
|
2418
2418
|
}
|
|
2419
|
-
function
|
|
2419
|
+
function A$t(x) {
|
|
2420
2420
|
ij = x, Dj.pluralRules = ij;
|
|
2421
2421
|
}
|
|
2422
|
-
function
|
|
2422
|
+
function j$t(x, _r) {
|
|
2423
2423
|
return Uq(() => {
|
|
2424
2424
|
if (!x) return !1;
|
|
2425
2425
|
let Li = F$t(isString$1(_r) ? _r : Tl.value), fa = Dj.messageResolver(Li, x);
|
|
2426
2426
|
return isMessageAST(fa) || isMessageFunction(fa) || isString$1(fa);
|
|
2427
2427
|
}, () => [x], "translate exists", (Li) => Reflect.apply(Li.te, Li, [x, _r]), NOOP_RETURN_FALSE, (x) => isBoolean$1(x));
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function M$t(x) {
|
|
2430
2430
|
let _r = null, Li = fallbackWithLocaleChain(Dj, Al.value, Tl.value);
|
|
2431
2431
|
for (let fa = 0; fa < Li.length; fa++) {
|
|
2432
2432
|
let lo = Uu.value[Li[fa]] || {}, Vo = Dj.messageResolver(lo, x);
|
|
@@ -2438,7 +2438,7 @@ function createComposer(x = {}) {
|
|
|
2438
2438
|
return _r;
|
|
2439
2439
|
}
|
|
2440
2440
|
function N$t(x) {
|
|
2441
|
-
return
|
|
2441
|
+
return M$t(x) ?? (_r && _r.tm(x) || {});
|
|
2442
2442
|
}
|
|
2443
2443
|
function F$t(x) {
|
|
2444
2444
|
return Uu.value[x] || {};
|
|
@@ -2547,9 +2547,9 @@ function createComposer(x = {}) {
|
|
|
2547
2547
|
setPostTranslationHandler: vG,
|
|
2548
2548
|
getMissingHandler: iq,
|
|
2549
2549
|
setMissingHandler: Vq,
|
|
2550
|
-
[SetPluralRulesSymbol]:
|
|
2550
|
+
[SetPluralRulesSymbol]: A$t
|
|
2551
2551
|
};
|
|
2552
|
-
return P6.datetimeFormats = nR, P6.numberFormats = tH, P6.rt = T$t, P6.te =
|
|
2552
|
+
return P6.datetimeFormats = nR, P6.numberFormats = tH, P6.rt = T$t, P6.te = j$t, P6.tm = N$t, P6.d = qX, P6.n = E$t, P6.getDateTimeFormat = R$t, P6.setDateTimeFormat = z$t, P6.mergeDateTimeFormat = B$t, P6.getNumberFormat = V$t, P6.setNumberFormat = H$t, P6.mergeNumberFormat = U$t, P6[InejctWithOptionSymbol] = Li, P6[TranslateVNodeSymbol] = D$t, P6[DatetimePartsSymbol] = k$t, P6[NumberPartsSymbol] = O$t, process.env.NODE_ENV !== "production" && (P6[EnableEmitter] = (x) => {
|
|
2553
2553
|
Dj.__v_emitter = x;
|
|
2554
2554
|
}, P6[DisableEmitter] = () => {
|
|
2555
2555
|
Dj.__v_emitter = void 0;
|
|
@@ -3354,6 +3354,10 @@ var en_default = {
|
|
|
3354
3354
|
multiple: "Selected",
|
|
3355
3355
|
item: "items"
|
|
3356
3356
|
},
|
|
3357
|
+
confirm: {
|
|
3358
|
+
title: "OOPS",
|
|
3359
|
+
content: "Please confirm your operation."
|
|
3360
|
+
},
|
|
3357
3361
|
fileUpload: {
|
|
3358
3362
|
label: "Attachment",
|
|
3359
3363
|
remove: "Remove",
|
|
@@ -6943,16 +6947,16 @@ var rd = { transform(x, _r) {
|
|
|
6943
6947
|
}
|
|
6944
6948
|
qX = [E$t, S2];
|
|
6945
6949
|
}
|
|
6946
|
-
var
|
|
6947
|
-
qX && RQ && (
|
|
6950
|
+
var U3 = !1;
|
|
6951
|
+
qX && RQ && (U3 = Mf.equals(RQ[1], Vq) ? !Mf.hasPrevious(RQ[1]) : Mf.common(qX[1], Vq).length < Mf.common(RQ[1], Vq).length), qX && !U3 ? (Uq.path = qX[1], Uq.offset = qX[0].text.length) : RQ ? (Uq.path = RQ[1], Uq.offset = 0) : _r = null;
|
|
6948
6952
|
}
|
|
6949
6953
|
}
|
|
6950
6954
|
break;
|
|
6951
6955
|
case "remove_text":
|
|
6952
|
-
var { path:
|
|
6953
|
-
if (
|
|
6954
|
-
var
|
|
6955
|
-
if (
|
|
6956
|
+
var { path: D$t, offset: O$t, text: k$t } = Li;
|
|
6957
|
+
if (k$t.length === 0) break;
|
|
6958
|
+
var A$t = Nf.leaf(x, D$t);
|
|
6959
|
+
if (A$t.text = A$t.text.slice(0, O$t) + A$t.text.slice(O$t + k$t.length), _r) for (var [j$t, M$t] of qf.points(_r)) _r[M$t] = Vf.transform(j$t, Li);
|
|
6956
6960
|
break;
|
|
6957
6961
|
case "set_node":
|
|
6958
6962
|
var { path: N$t, properties: P$t, newProperties: F$t } = Li;
|
|
@@ -9343,21 +9347,21 @@ var Xv, Zv = function(x, _r, Li) {
|
|
|
9343
9347
|
Li[++_r] = [fa, x];
|
|
9344
9348
|
})), Li;
|
|
9345
9349
|
}
|
|
9346
|
-
function
|
|
9350
|
+
function U3(x, _r) {
|
|
9347
9351
|
return function(Li) {
|
|
9348
9352
|
return x(_r(Li));
|
|
9349
9353
|
};
|
|
9350
9354
|
}
|
|
9351
|
-
function
|
|
9355
|
+
function D$t(x) {
|
|
9352
9356
|
var _r = -1, Li = Array(x.size);
|
|
9353
9357
|
return x.forEach((function(x) {
|
|
9354
9358
|
Li[++_r] = x;
|
|
9355
9359
|
})), Li;
|
|
9356
9360
|
}
|
|
9357
|
-
var
|
|
9358
|
-
var x = /[^.]+$/.exec(
|
|
9361
|
+
var O$t = Array.prototype, k$t = Function.prototype, A$t = Object.prototype, j$t = Vq["__core-js_shared__"], M$t = function() {
|
|
9362
|
+
var x = /[^.]+$/.exec(j$t && j$t.keys && j$t.keys.IE_PROTO || "");
|
|
9359
9363
|
return x ? "Symbol(src)_1." + x : "";
|
|
9360
|
-
}(), N$t =
|
|
9364
|
+
}(), N$t = k$t.toString, P$t = A$t.hasOwnProperty, F$t = A$t.toString, I$t = RegExp("^" + N$t.call(P$t).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), L$t = w$t ? Vq.Buffer : void 0, R$t = Vq.Symbol, z$t = Vq.Uint8Array, B$t = U3(Object.getPrototypeOf, Object), V$t = Object.create, H$t = A$t.propertyIsEnumerable, U$t = O$t.splice, P6 = Object.getOwnPropertySymbols, W$t = L$t ? L$t.isBuffer : void 0, G$t = U3(Object.keys, Object), K$t = _1t(Vq, "DataView"), q$t = _1t(Vq, "Map"), J$t = _1t(Vq, "Promise"), Y$t = _1t(Vq, "Set"), X$t = _1t(Vq, "WeakMap"), Z$t = _1t(Object, "create"), Q$t = S1t(K$t), $$t = S1t(q$t), e1t = S1t(J$t), t1t = S1t(Y$t), n1t = S1t(X$t), r1t = R$t ? R$t.prototype : void 0, i1t = r1t ? r1t.valueOf : void 0;
|
|
9361
9365
|
function a1t(x) {
|
|
9362
9366
|
var _r = -1, Li = x ? x.length : 0;
|
|
9363
9367
|
for (this.clear(); ++_r < Li;) {
|
|
@@ -9469,7 +9473,7 @@ var Xv, Zv = function(x, _r, Li) {
|
|
|
9469
9473
|
return _r.lastIndex = x.lastIndex, _r;
|
|
9470
9474
|
}(x);
|
|
9471
9475
|
case x_: return function(x, _r, Li) {
|
|
9472
|
-
return RQ(_r ? Li(
|
|
9476
|
+
return RQ(_r ? Li(D$t(x), !0) : D$t(x), qX, new x.constructor());
|
|
9473
9477
|
}(x, fa, Li);
|
|
9474
9478
|
case dx: return function(x) {
|
|
9475
9479
|
return i1t ? Object(i1t.call(x)) : {};
|
|
@@ -9498,7 +9502,7 @@ var Xv, Zv = function(x, _r, Li) {
|
|
|
9498
9502
|
}
|
|
9499
9503
|
function p1t(x) {
|
|
9500
9504
|
return !(!O1t(x) || function(x) {
|
|
9501
|
-
return !!
|
|
9505
|
+
return !!M$t && M$t in x;
|
|
9502
9506
|
}(x)) && (D1t(x) || E$t(x) ? I$t : tH).test(S1t(x));
|
|
9503
9507
|
}
|
|
9504
9508
|
function m1t(x) {
|
|
@@ -9583,7 +9587,7 @@ var Xv, Zv = function(x, _r, Li) {
|
|
|
9583
9587
|
}
|
|
9584
9588
|
return Li.set(x, _r), this;
|
|
9585
9589
|
};
|
|
9586
|
-
var v1t = P6 ?
|
|
9590
|
+
var v1t = P6 ? U3(P6, Object) : function() {
|
|
9587
9591
|
return [];
|
|
9588
9592
|
}, y1t = function(x) {
|
|
9589
9593
|
return F$t.call(x);
|
|
@@ -9593,7 +9597,7 @@ var Xv, Zv = function(x, _r, Li) {
|
|
|
9593
9597
|
}
|
|
9594
9598
|
function x1t(x) {
|
|
9595
9599
|
var _r = x && x.constructor;
|
|
9596
|
-
return x === (typeof _r == "function" && _r.prototype ||
|
|
9600
|
+
return x === (typeof _r == "function" && _r.prototype || A$t);
|
|
9597
9601
|
}
|
|
9598
9602
|
function S1t(x) {
|
|
9599
9603
|
if (x != null) {
|
|
@@ -14718,8 +14722,8 @@ function XT(x, _r) {
|
|
|
14718
14722
|
if (Al === CF) qX = lo === "start" ? ij : lo === "end" ? ij - Bm : lo === "nearest" ? YT(uy, uy + Bm, Bm, Uq, T$t, uy + ij, uy + ij + kx, kx) : ij - Bm / 2, RQ = Vo === "start" ? Dj : Vo === "center" ? Dj - Lm / 2 : Vo === "end" ? Dj - Lm : YT(x_, x_ + Lm, Lm, Hq, w$t, x_ + Dj, x_ + Dj + eC, eC), qX = Math.max(0, qX + uy), RQ = Math.max(0, RQ + x_);
|
|
14719
14723
|
else {
|
|
14720
14724
|
qX = lo === "start" ? ij - MH - Uq : lo === "end" ? ij - jG + T$t + S2 : lo === "nearest" ? YT(MH, jG, nR, Uq, T$t + S2, ij, ij + kx, kx) : ij - (MH + nR / 2) + S2 / 2, RQ = Vo === "start" ? Dj - iq - Hq : Vo === "center" ? Dj - (iq + tH / 2) + E$t / 2 : Vo === "end" ? Dj - vG + w$t + E$t : YT(iq, vG, tH, Hq, w$t + E$t, Dj, Dj + eC, eC);
|
|
14721
|
-
var
|
|
14722
|
-
ij +=
|
|
14725
|
+
var U3 = CF.scrollLeft, D$t = CF.scrollTop;
|
|
14726
|
+
ij += D$t - (qX = Math.max(0, Math.min(D$t + qX, CF.scrollHeight - nR + S2))), Dj += U3 - (RQ = Math.max(0, Math.min(U3 + RQ, CF.scrollWidth - tH + E$t)));
|
|
14723
14727
|
}
|
|
14724
14728
|
LP.push({
|
|
14725
14729
|
el: CF,
|
|
@@ -23528,11 +23532,11 @@ var g0 = {
|
|
|
23528
23532
|
var Hq = Array.prototype, Uq = Function.prototype, w$t = Object.prototype, T$t = $P["__core-js_shared__"], qX = Uq.toString, RQ = w$t.hasOwnProperty, E$t = function() {
|
|
23529
23533
|
var x = /[^.]+$/.exec(T$t && T$t.keys && T$t.keys.IE_PROTO || "");
|
|
23530
23534
|
return x ? "Symbol(src)_1." + x : "";
|
|
23531
|
-
}(), S2 = w$t.toString,
|
|
23535
|
+
}(), S2 = w$t.toString, U3 = RegExp("^" + qX.call(RQ).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), D$t = nR ? $P.Buffer : void 0, O$t = $P.Symbol, k$t = $P.Uint8Array, A$t = w$t.propertyIsEnumerable, j$t = Hq.splice, M$t = O$t ? O$t.toStringTag : void 0, N$t = Object.getOwnPropertySymbols, P$t = D$t ? D$t.isBuffer : void 0, F$t = function(x, _r) {
|
|
23532
23536
|
return function(Li) {
|
|
23533
23537
|
return x(_r(Li));
|
|
23534
23538
|
};
|
|
23535
|
-
}(Object.keys, Object), I$t = l1t($P, "DataView"), L$t = l1t($P, "Map"), R$t = l1t($P, "Promise"), z$t = l1t($P, "Set"), B$t = l1t($P, "WeakMap"), V$t = l1t(Object, "create"), H$t = p1t(I$t), U$t = p1t(L$t), P6 = p1t(R$t), W$t = p1t(z$t), G$t = p1t(B$t), K$t =
|
|
23539
|
+
}(Object.keys, Object), I$t = l1t($P, "DataView"), L$t = l1t($P, "Map"), R$t = l1t($P, "Promise"), z$t = l1t($P, "Set"), B$t = l1t($P, "WeakMap"), V$t = l1t(Object, "create"), H$t = p1t(I$t), U$t = p1t(L$t), P6 = p1t(R$t), W$t = p1t(z$t), G$t = p1t(B$t), K$t = O$t ? O$t.prototype : void 0, q$t = K$t ? K$t.valueOf : void 0;
|
|
23536
23540
|
function J$t(x) {
|
|
23537
23541
|
var _r = -1, Li = x == null ? 0 : x.length;
|
|
23538
23542
|
for (this.clear(); ++_r < Li;) {
|
|
@@ -23574,14 +23578,14 @@ var g0 = {
|
|
|
23574
23578
|
return -1;
|
|
23575
23579
|
}
|
|
23576
23580
|
function t1t(x) {
|
|
23577
|
-
return x == null ? x === void 0 ? "[object Undefined]" : "[object Null]" :
|
|
23578
|
-
var _r = RQ.call(x,
|
|
23581
|
+
return x == null ? x === void 0 ? "[object Undefined]" : "[object Null]" : M$t && M$t in Object(x) ? function(x) {
|
|
23582
|
+
var _r = RQ.call(x, M$t), Li = x[M$t];
|
|
23579
23583
|
try {
|
|
23580
|
-
x[
|
|
23584
|
+
x[M$t] = void 0;
|
|
23581
23585
|
var fa = !0;
|
|
23582
23586
|
} catch {}
|
|
23583
23587
|
var lo = S2.call(x);
|
|
23584
|
-
return fa && (_r ? x[
|
|
23588
|
+
return fa && (_r ? x[M$t] = Li : delete x[M$t]), lo;
|
|
23585
23589
|
}(x) : function(x) {
|
|
23586
23590
|
return S2.call(x);
|
|
23587
23591
|
}(x);
|
|
@@ -23601,7 +23605,7 @@ var g0 = {
|
|
|
23601
23605
|
case _T:
|
|
23602
23606
|
if (x.byteLength != _r.byteLength || x.byteOffset != _r.byteOffset) return !1;
|
|
23603
23607
|
x = x.buffer, _r = _r.buffer;
|
|
23604
|
-
case uC: return !(x.byteLength != _r.byteLength || !Vo(new
|
|
23608
|
+
case uC: return !(x.byteLength != _r.byteLength || !Vo(new k$t(x), new k$t(_r)));
|
|
23605
23609
|
case Xo:
|
|
23606
23610
|
case Tc:
|
|
23607
23611
|
case Ff: return m1t(+x, +_r);
|
|
@@ -23659,7 +23663,7 @@ var g0 = {
|
|
|
23659
23663
|
function i1t(x) {
|
|
23660
23664
|
return !(!b1t(x) || function(x) {
|
|
23661
23665
|
return !!E$t && E$t in x;
|
|
23662
|
-
}(x)) && (v1t(x) ?
|
|
23666
|
+
}(x)) && (v1t(x) ? U3 : ID).test(p1t(x));
|
|
23663
23667
|
}
|
|
23664
23668
|
function a1t(x) {
|
|
23665
23669
|
if (Li = (_r = x) && _r.constructor, fa = typeof Li == "function" && Li.prototype || w$t, _r !== fa) return F$t(x);
|
|
@@ -23737,7 +23741,7 @@ var g0 = {
|
|
|
23737
23741
|
this.__data__ = [], this.size = 0;
|
|
23738
23742
|
}, Y$t.prototype.delete = function(x) {
|
|
23739
23743
|
var _r = this.__data__, Li = e1t(_r, x);
|
|
23740
|
-
return !(Li < 0) && (Li == _r.length - 1 ? _r.pop() :
|
|
23744
|
+
return !(Li < 0) && (Li == _r.length - 1 ? _r.pop() : j$t.call(_r, Li, 1), --this.size, !0);
|
|
23741
23745
|
}, Y$t.prototype.get = function(x) {
|
|
23742
23746
|
var _r = this.__data__, Li = e1t(_r, x);
|
|
23743
23747
|
return Li < 0 ? void 0 : _r[Li][1];
|
|
@@ -23792,7 +23796,7 @@ var g0 = {
|
|
|
23792
23796
|
}
|
|
23793
23797
|
return Vo;
|
|
23794
23798
|
}(N$t(x), (function(_r) {
|
|
23795
|
-
return
|
|
23799
|
+
return A$t.call(x, _r);
|
|
23796
23800
|
})));
|
|
23797
23801
|
} : function() {
|
|
23798
23802
|
return [];
|
|
@@ -23828,7 +23832,7 @@ var g0 = {
|
|
|
23828
23832
|
var h1t = n1t(function() {
|
|
23829
23833
|
return arguments;
|
|
23830
23834
|
}()) ? n1t : function(x) {
|
|
23831
|
-
return x1t(x) && RQ.call(x, "callee") && !
|
|
23835
|
+
return x1t(x) && RQ.call(x, "callee") && !A$t.call(x, "callee");
|
|
23832
23836
|
}, g1t = Array.isArray, _1t = P$t || function() {
|
|
23833
23837
|
return !1;
|
|
23834
23838
|
};
|
|
@@ -33760,17 +33764,17 @@ var _hoisted_1$17 = [
|
|
|
33760
33764
|
[ID.b("hidden")]: Al.type === "hidden"
|
|
33761
33765
|
},
|
|
33762
33766
|
Ff.class
|
|
33763
|
-
]), uy = computed(() => [ID.e("wrapper"), ID.is("focus", qX.value)]), { form: dx, formItem: kx } = useFormItem(), { inputId: eC } = useFormItemInputId(Al, { formItemContext: kx }), uC = useFormSize(), _T = useFormDisabled(), ID = useNamespace("input"), $P = useNamespace("textarea"), VF = shallowRef(), nR = shallowRef(), MH = ref(!1), vG = ref(!1), iq = ref(), Vq = shallowRef(Al.inputStyle), Uq = computed(() => VF.value || nR.value), { wrapperRef: w$t, isFocused: qX, handleFocus: S2, handleBlur:
|
|
33767
|
+
]), uy = computed(() => [ID.e("wrapper"), ID.is("focus", qX.value)]), { form: dx, formItem: kx } = useFormItem(), { inputId: eC } = useFormItemInputId(Al, { formItemContext: kx }), uC = useFormSize(), _T = useFormDisabled(), ID = useNamespace("input"), $P = useNamespace("textarea"), VF = shallowRef(), nR = shallowRef(), MH = ref(!1), vG = ref(!1), iq = ref(), Vq = shallowRef(Al.inputStyle), Uq = computed(() => VF.value || nR.value), { wrapperRef: w$t, isFocused: qX, handleFocus: S2, handleBlur: D$t } = useFocusController(Uq, {
|
|
33764
33768
|
disabled: _T,
|
|
33765
33769
|
afterBlur() {
|
|
33766
33770
|
var x;
|
|
33767
33771
|
Al.validateEvent && ((x = kx?.validate) == null || x.call(kx, "blur").catch((x) => debugWarn(x)));
|
|
33768
33772
|
}
|
|
33769
|
-
}),
|
|
33773
|
+
}), A$t = computed(() => dx?.statusIcon ?? !1), M$t = computed(() => kx?.validateState || ""), N$t = computed(() => M$t.value && ValidateComponentsMap[M$t.value]), F$t = computed(() => vG.value ? view_default : hide_default), L$t = computed(() => [Ff.style]), R$t = computed(() => [
|
|
33770
33774
|
Al.inputStyle,
|
|
33771
33775
|
Vq.value,
|
|
33772
33776
|
{ resize: Al.resize }
|
|
33773
|
-
]), B$t = computed(() => isNil_default(Al.modelValue) ? "" : String(Al.modelValue)), V$t = computed(() => Al.clearable && !_T.value && !Al.readonly && !!B$t.value && (qX.value || MH.value)), H$t = computed(() => Al.showPassword && !_T.value && !!B$t.value), U$t = computed(() => Al.showWordLimit && !!Al.maxlength && (Al.type === "text" || Al.type === "textarea") && !_T.value && !Al.readonly && !Al.showPassword), P6 = computed(() => B$t.value.length), W$t = computed(() => !!U$t.value && P6.value > Number(Al.maxlength)), G$t = computed(() => !!Bm.suffix || !!Al.suffixIcon || V$t.value || Al.showPassword || U$t.value || !!
|
|
33777
|
+
]), B$t = computed(() => isNil_default(Al.modelValue) ? "" : String(Al.modelValue)), V$t = computed(() => Al.clearable && !_T.value && !Al.readonly && !!B$t.value && (qX.value || MH.value)), H$t = computed(() => Al.showPassword && !_T.value && !!B$t.value), U$t = computed(() => Al.showWordLimit && !!Al.maxlength && (Al.type === "text" || Al.type === "textarea") && !_T.value && !Al.readonly && !Al.showPassword), P6 = computed(() => B$t.value.length), W$t = computed(() => !!U$t.value && P6.value > Number(Al.maxlength)), G$t = computed(() => !!Bm.suffix || !!Al.suffixIcon || V$t.value || Al.showPassword || U$t.value || !!M$t.value && A$t.value), K$t = computed(() => !!Object.keys(Al.modelModifiers).length), [q$t, J$t] = useCursor(VF);
|
|
33774
33778
|
useResizeObserver(nR, (x) => {
|
|
33775
33779
|
if (X$t(), !U$t.value || Al.resize !== "both" && Al.resize !== "horizontal") return;
|
|
33776
33780
|
let { width: _r } = x[0].contentRect;
|
|
@@ -33888,7 +33892,7 @@ var _hoisted_1$17 = [
|
|
|
33888
33892
|
onCompositionend: fa[5] ||= (...x) => unref(i1t) && unref(i1t)(...x),
|
|
33889
33893
|
onInput: $$t,
|
|
33890
33894
|
onFocus: fa[6] ||= (...x) => unref(S2) && unref(S2)(...x),
|
|
33891
|
-
onBlur: fa[7] ||= (...x) => unref(
|
|
33895
|
+
onBlur: fa[7] ||= (...x) => unref(D$t) && unref(D$t)(...x),
|
|
33892
33896
|
onChange: e1t,
|
|
33893
33897
|
onKeydown: u1t
|
|
33894
33898
|
}), null, 16, _hoisted_2$5),
|
|
@@ -33986,12 +33990,12 @@ var _hoisted_1$17 = [
|
|
|
33986
33990
|
key: 3,
|
|
33987
33991
|
class: normalizeClass([unref(ID).e("count"), unref(ID).is("outside", x.wordLimitPosition === "outside")])
|
|
33988
33992
|
}, [createElementVNode("span", { class: normalizeClass(unref(ID).e("count-inner")) }, toDisplayString(P6.value) + " / " + toDisplayString(x.maxlength), 3)], 2)) : createCommentVNode("v-if", !0),
|
|
33989
|
-
|
|
33993
|
+
M$t.value && N$t.value && A$t.value ? (openBlock(), createBlock(unref(ElIcon), {
|
|
33990
33994
|
key: 4,
|
|
33991
33995
|
class: normalizeClass([
|
|
33992
33996
|
unref(ID).e("icon"),
|
|
33993
33997
|
unref(ID).e("validateIcon"),
|
|
33994
|
-
unref(ID).is("loading",
|
|
33998
|
+
unref(ID).is("loading", M$t.value === "validating")
|
|
33995
33999
|
])
|
|
33996
34000
|
}, {
|
|
33997
34001
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(N$t.value)))]),
|
|
@@ -35396,31 +35400,31 @@ var useSameTarget = (x) => {
|
|
|
35396
35400
|
}));
|
|
35397
35401
|
function RQ() {
|
|
35398
35402
|
Lm.duration !== 0 && ({stop: ok} = useTimeoutFn(() => {
|
|
35399
|
-
|
|
35403
|
+
U3();
|
|
35400
35404
|
}, Lm.duration));
|
|
35401
35405
|
}
|
|
35402
35406
|
function S2() {
|
|
35403
35407
|
ok?.();
|
|
35404
35408
|
}
|
|
35405
|
-
function
|
|
35409
|
+
function U3() {
|
|
35406
35410
|
_T.value = !1, nextTick(() => {
|
|
35407
35411
|
var x;
|
|
35408
35412
|
x_.value || ((x = Lm.onClose) == null || x.call(Lm), Bm("destroy"));
|
|
35409
35413
|
});
|
|
35410
35414
|
}
|
|
35411
|
-
function
|
|
35412
|
-
getEventCode(x) === EVENT_CODE.esc &&
|
|
35415
|
+
function D$t(x) {
|
|
35416
|
+
getEventCode(x) === EVENT_CODE.esc && U3();
|
|
35413
35417
|
}
|
|
35414
35418
|
return onMounted(() => {
|
|
35415
35419
|
RQ(), eC(), _T.value = !0;
|
|
35416
35420
|
}), watch(() => Lm.repeatNum, () => {
|
|
35417
35421
|
S2(), RQ();
|
|
35418
|
-
}), useEventListener(document, "keydown",
|
|
35422
|
+
}), useEventListener(document, "keydown", D$t), useResizeObserver(uC, () => {
|
|
35419
35423
|
ID.value = uC.value.getBoundingClientRect().height;
|
|
35420
35424
|
}), Li({
|
|
35421
35425
|
visible: _T,
|
|
35422
35426
|
bottom: Vq,
|
|
35423
|
-
close:
|
|
35427
|
+
close: U3
|
|
35424
35428
|
}), (Li, lo) => (openBlock(), createBlock(Transition, {
|
|
35425
35429
|
name: unref(uy).b("fade"),
|
|
35426
35430
|
onBeforeEnter: lo[0] ||= (x) => x_.value = !0,
|
|
@@ -35473,7 +35477,7 @@ var useSameTarget = (x) => {
|
|
|
35473
35477
|
x.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
35474
35478
|
key: 2,
|
|
35475
35479
|
class: normalizeClass(unref(uy).e("closeBtn")),
|
|
35476
|
-
onClick: withModifiers(
|
|
35480
|
+
onClick: withModifiers(U3, ["stop"])
|
|
35477
35481
|
}, {
|
|
35478
35482
|
default: withCtx(() => [createVNode(unref(Uu))]),
|
|
35479
35483
|
_: 1
|
|
@@ -36778,9 +36782,21 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36778
36782
|
lo !== void 0 && (Al.value.current = x, uy("paging", !1));
|
|
36779
36783
|
}, iq = (x) => {
|
|
36780
36784
|
lo !== void 0 && (Al.value.size = x, uy("paging", !1));
|
|
36785
|
+
}, Hq = (x, _r, Li) => {
|
|
36786
|
+
(x.sub === "button" || x.sub === void 0) && x.onClick !== void 0 ? x.onClick(_r, Li) : x.sub === "confirm" && ElMessageBox.confirm(isNotEmpty(x.config?.content) ? x.config?.content : base_default.global.t("confirm.content"), isNotEmpty(x.config?.title) ? x.config?.title : base_default.global.t("confirm.title"), {
|
|
36787
|
+
closeOnClickModal: !1,
|
|
36788
|
+
type: "warning",
|
|
36789
|
+
distinguishCancelAndClose: !0,
|
|
36790
|
+
confirmButtonText: base_default.global.t("fileUpload.confirm"),
|
|
36791
|
+
cancelButtonText: base_default.global.t("fileUpload.cancel")
|
|
36792
|
+
}).then(() => {
|
|
36793
|
+
x.onClick !== void 0 && x.onClick(_r, Li);
|
|
36794
|
+
}).catch(() => {
|
|
36795
|
+
x.onCancel !== void 0 && x.onCancel(_r, Li);
|
|
36796
|
+
});
|
|
36781
36797
|
};
|
|
36782
36798
|
return (Li, fa) => {
|
|
36783
|
-
let lo = resolveComponent("el-button"), uy = resolveComponent("el-empty"), jG = resolveComponent("el-table-column"),
|
|
36799
|
+
let lo = resolveComponent("el-button"), uy = resolveComponent("el-empty"), jG = resolveComponent("el-table-column"), qX = resolveComponent("el-switch"), RQ = resolveComponent("el-image"), S2 = resolveComponent("el-popover"), U3 = resolveComponent("el-dropdown-item"), D$t = resolveComponent("el-dropdown-menu"), k$t = resolveComponent("el-dropdown"), A$t = resolveComponent("el-table"), j$t = resolveComponent("el-pagination"), N$t = resolveDirective("loading");
|
|
36784
36800
|
return openBlock(), createElementBlock("div", _hoisted_1$13, [Al.value.records.length === 0 && x.empty && x.empty.content && Al.value.firstLoading ? (openBlock(), createBlock(uy, {
|
|
36785
36801
|
key: 0,
|
|
36786
36802
|
description: unref(base_default).global.t("notData")
|
|
@@ -36824,6 +36840,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36824
36840
|
"header-align": x.headerAlign || "",
|
|
36825
36841
|
"label-class-name": x.labelClassName || "",
|
|
36826
36842
|
width: x.width,
|
|
36843
|
+
"min-width": x.minWidth,
|
|
36827
36844
|
label: x.label,
|
|
36828
36845
|
"class-name": unref(isNotEmpty)(x.className) ? x.className : "",
|
|
36829
36846
|
sortable: x.sortable,
|
|
@@ -36831,7 +36848,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36831
36848
|
fixed: x.fixed
|
|
36832
36849
|
}, {
|
|
36833
36850
|
header: withCtx((_r) => [createElementVNode("span", { innerHTML: eC(x.label) }, null, 8, _hoisted_3$1)]),
|
|
36834
|
-
default: withCtx((Li) => [x.type === unref(ColumnType).Switch ? (openBlock(), createBlock(
|
|
36851
|
+
default: withCtx((Li) => [x.type === unref(ColumnType).Switch ? (openBlock(), createBlock(qX, mergeProps({
|
|
36835
36852
|
key: 0,
|
|
36836
36853
|
modelValue: Li.row[x.prop],
|
|
36837
36854
|
"onUpdate:modelValue": (_r) => Li.row[x.prop] = _r
|
|
@@ -36839,7 +36856,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36839
36856
|
"modelValue",
|
|
36840
36857
|
"onUpdate:modelValue",
|
|
36841
36858
|
"onClick"
|
|
36842
|
-
])) : x.type === unref(ColumnType).Image ? (openBlock(), createBlock(
|
|
36859
|
+
])) : x.type === unref(ColumnType).Image ? (openBlock(), createBlock(RQ, {
|
|
36843
36860
|
key: 1,
|
|
36844
36861
|
"preview-teleported": !0,
|
|
36845
36862
|
"hide-on-click-modal": !0,
|
|
@@ -36861,7 +36878,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36861
36878
|
"style",
|
|
36862
36879
|
"src",
|
|
36863
36880
|
"fit"
|
|
36864
|
-
])) : x.type === unref(ColumnType).Album ? (openBlock(), createBlock(
|
|
36881
|
+
])) : x.type === unref(ColumnType).Album ? (openBlock(), createBlock(RQ, {
|
|
36865
36882
|
key: 2,
|
|
36866
36883
|
"preview-teleported": !0,
|
|
36867
36884
|
"hide-on-click-modal": !0,
|
|
@@ -36883,7 +36900,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36883
36900
|
"style",
|
|
36884
36901
|
"src",
|
|
36885
36902
|
"fit"
|
|
36886
|
-
])) : x.type === unref(ColumnType).Date ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(unref(timestampToDate)(Li.row[x.prop], x.config?.format ?? "")), 1)], 64)) : x.type === unref(ColumnType).Datetime ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [createTextVNode(toDisplayString(unref(timestampToDatetime)(Li.row[x.prop], x.config?.format ?? "")), 1)], 64)) : x.type === unref(ColumnType).Button ? (openBlock(!0), createElementBlock(Fragment, { key: 5 }, renderList(x.group, (x, fa) => (openBlock(), createElementBlock(Fragment, null, [x.sub === "popover" ? (openBlock(), createBlock(
|
|
36903
|
+
])) : x.type === unref(ColumnType).Date ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(unref(timestampToDate)(Li.row[x.prop], x.config?.format ?? "")), 1)], 64)) : x.type === unref(ColumnType).Datetime ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [createTextVNode(toDisplayString(unref(timestampToDatetime)(Li.row[x.prop], x.config?.format ?? "")), 1)], 64)) : x.type === unref(ColumnType).Button ? (openBlock(!0), createElementBlock(Fragment, { key: 5 }, renderList(x.group, (x, fa) => (openBlock(), createElementBlock(Fragment, null, [x.sub === "popover" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [x.visible === void 0 || x.visible !== void 0 && x.visible(Li.row) ? (openBlock(), createBlock(S2, {
|
|
36887
36904
|
key: 0,
|
|
36888
36905
|
title: x.config?.title,
|
|
36889
36906
|
content: x.config?.content,
|
|
@@ -36918,12 +36935,13 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36918
36935
|
"title",
|
|
36919
36936
|
"content",
|
|
36920
36937
|
"placement"
|
|
36921
|
-
])) : x.sub === "dropdown" ? (openBlock(), createBlock(
|
|
36938
|
+
])) : createCommentVNode("v-if", !0)], 64)) : x.sub === "dropdown" ? (openBlock(), createBlock(k$t, {
|
|
36922
36939
|
key: 1,
|
|
36923
36940
|
class: "oga-table-button"
|
|
36924
36941
|
}, {
|
|
36925
36942
|
dropdown: withCtx(() => [createVNode(D$t, null, {
|
|
36926
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.actions ?? [], (x) => (openBlock(), createBlock(
|
|
36943
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.actions ?? [], (x) => (openBlock(), createElementBlock(Fragment, null, [x.visible === void 0 || x.visible !== void 0 && x.visible(Li.row) ? (openBlock(), createBlock(U3, {
|
|
36944
|
+
key: 0,
|
|
36927
36945
|
divided: x.divided ?? !1,
|
|
36928
36946
|
onClick: (_r) => x.onClick(Li.row)
|
|
36929
36947
|
}, {
|
|
@@ -36932,7 +36950,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36932
36950
|
name: x.icon
|
|
36933
36951
|
}, null, 8, ["name"])) : createCommentVNode("v-if", !0), createTextVNode(" " + toDisplayString(x.label), 1)]),
|
|
36934
36952
|
_: 2
|
|
36935
|
-
}, 1032, ["divided", "onClick"]))), 256))]),
|
|
36953
|
+
}, 1032, ["divided", "onClick"])) : createCommentVNode("v-if", !0)], 64))), 256))]),
|
|
36936
36954
|
_: 2
|
|
36937
36955
|
}, 1024)]),
|
|
36938
36956
|
default: withCtx(() => [createElementVNode("div", _hoisted_6$1, [(openBlock(), createBlock(lo, {
|
|
@@ -36960,7 +36978,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36960
36978
|
"onClick"
|
|
36961
36979
|
]))])]),
|
|
36962
36980
|
_: 2
|
|
36963
|
-
}, 1024)) : (openBlock(), createBlock(lo, {
|
|
36981
|
+
}, 1024)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [x.visible === void 0 || x.visible !== void 0 && x.visible(Li.row) ? (openBlock(), createBlock(lo, {
|
|
36964
36982
|
key: fa,
|
|
36965
36983
|
type: x.type,
|
|
36966
36984
|
disabled: x.disabled,
|
|
@@ -36968,7 +36986,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36968
36986
|
circle: x.circle,
|
|
36969
36987
|
round: x.round,
|
|
36970
36988
|
class: normalizeClass([x.className || "", "oga-table-button"]),
|
|
36971
|
-
onClick: withModifiers((_r) => x
|
|
36989
|
+
onClick: withModifiers((_r) => Hq(x, Li.row, Li.$index), ["stop"])
|
|
36972
36990
|
}, {
|
|
36973
36991
|
default: withCtx(() => [x.icon ? (openBlock(), createBlock(src_default$1, {
|
|
36974
36992
|
key: 0,
|
|
@@ -36983,7 +37001,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36983
37001
|
"round",
|
|
36984
37002
|
"class",
|
|
36985
37003
|
"onClick"
|
|
36986
|
-
]))], 64))), 256)) : x.render ? (openBlock(), createBlock(resolveDynamicComponent(x.render(Li.row)), { key: 6 })) : x.type === unref(ColumnType).Number ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [x.config?.format === "###.###" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(unref(formatNumberLocation)(Li.row[x.prop])), 1)], 64)) : x.config?.format === "KMBT" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(unref(formatNumber)(Li.row[x.prop])), 1)], 64)) : x.config?.format === "fixed" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(Li.row[x.prop].toFixed(x.config?.digit ?? 0)), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(Li.row[x.prop]), 1)], 64))], 64)) : x.type === unref(ColumnType).Mask ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [createTextVNode(toDisplayString(x.config?.format === "1/3" ? unref(maskOneThirdString)(Li.row[x.prop]) : x.config?.format === "email" ? unref(maskEmail)(Li.row[x.prop]) : unref(maskString)(Li.row[x.prop])), 1)], 64)) : x.type === unref(ColumnType).Dictionary ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [createTextVNode(toDisplayString(x.config?.data ? unref(getDictValue)(x.config.data, Li.row[x.prop]) : Li.row[x.prop]), 1)], 64)) : x.type === unref(ColumnType).State ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [Li.row[x.prop] === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [x.config?.success ?? !0 ? (openBlock(), createBlock(src_default$1, {
|
|
37004
|
+
])) : createCommentVNode("v-if", !0)], 64))], 64))), 256)) : x.render ? (openBlock(), createBlock(resolveDynamicComponent(x.render(Li.row)), { key: 6 })) : x.type === unref(ColumnType).Number ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [x.config?.format === "###.###" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(unref(formatNumberLocation)(Li.row[x.prop])), 1)], 64)) : x.config?.format === "KMBT" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(unref(formatNumber)(Li.row[x.prop])), 1)], 64)) : x.config?.format === "fixed" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(Li.row[x.prop].toFixed(x.config?.digit ?? 0)), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [createTextVNode(toDisplayString(Li.row[x.prop]), 1)], 64))], 64)) : x.type === unref(ColumnType).Mask ? (openBlock(), createElementBlock(Fragment, { key: 8 }, [createTextVNode(toDisplayString(x.config?.format === "1/3" ? unref(maskOneThirdString)(Li.row[x.prop]) : x.config?.format === "email" ? unref(maskEmail)(Li.row[x.prop]) : unref(maskString)(Li.row[x.prop])), 1)], 64)) : x.type === unref(ColumnType).Dictionary ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [createTextVNode(toDisplayString(x.config?.data ? unref(getDictValue)(x.config.data, Li.row[x.prop]) : Li.row[x.prop]), 1)], 64)) : x.type === unref(ColumnType).State ? (openBlock(), createElementBlock(Fragment, { key: 10 }, [Li.row[x.prop] === 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [x.config?.success ?? !0 ? (openBlock(), createBlock(src_default$1, {
|
|
36987
37005
|
key: 0,
|
|
36988
37006
|
name: "check",
|
|
36989
37007
|
style: { color: "var(--el-color-success)" }
|
|
@@ -36999,6 +37017,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
36999
37017
|
"header-align",
|
|
37000
37018
|
"label-class-name",
|
|
37001
37019
|
"width",
|
|
37020
|
+
"min-width",
|
|
37002
37021
|
"label",
|
|
37003
37022
|
"class-name",
|
|
37004
37023
|
"sortable",
|
|
@@ -37011,16 +37030,16 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
37011
37030
|
"data",
|
|
37012
37031
|
"stripe",
|
|
37013
37032
|
"border"
|
|
37014
|
-
])), [[
|
|
37033
|
+
])), [[N$t, Al.value.loading]]), withDirectives(createElementVNode("div", {
|
|
37015
37034
|
class: "oga-table-batch-operation",
|
|
37016
37035
|
ref_key: "bulkOperation",
|
|
37017
37036
|
ref: x_
|
|
37018
|
-
}, [createVNode(
|
|
37037
|
+
}, [createVNode(k$t, {
|
|
37019
37038
|
onCommand: nR,
|
|
37020
37039
|
size: "large",
|
|
37021
37040
|
placement: "bottom-start"
|
|
37022
37041
|
}, {
|
|
37023
|
-
dropdown: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.actionList, (x, Li) => (openBlock(), createElementBlock(Fragment, null, [!x.invisible && typeof x != "function" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [Li === "update" ? (openBlock(), createBlock(
|
|
37042
|
+
dropdown: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(x.actionList, (x, Li) => (openBlock(), createElementBlock(Fragment, null, [!x.invisible && typeof x != "function" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [Li === "update" ? (openBlock(), createBlock(U3, {
|
|
37024
37043
|
command: Li,
|
|
37025
37044
|
size: "large",
|
|
37026
37045
|
key: `action-${Li}`,
|
|
@@ -37036,7 +37055,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
37036
37055
|
"command",
|
|
37037
37056
|
"disabled",
|
|
37038
37057
|
"divided"
|
|
37039
|
-
])) : Li === "delete" ? (openBlock(), createBlock(
|
|
37058
|
+
])) : Li === "delete" ? (openBlock(), createBlock(U3, {
|
|
37040
37059
|
size: "large",
|
|
37041
37060
|
command: Li,
|
|
37042
37061
|
key: `action-${Li}`,
|
|
@@ -37052,7 +37071,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
37052
37071
|
"command",
|
|
37053
37072
|
"disabled",
|
|
37054
37073
|
"divided"
|
|
37055
|
-
])) : (openBlock(), createBlock(
|
|
37074
|
+
])) : (openBlock(), createBlock(U3, {
|
|
37056
37075
|
size: "large",
|
|
37057
37076
|
command: Li,
|
|
37058
37077
|
key: `actions-${Li}`,
|
|
@@ -37090,7 +37109,7 @@ var __rolldown_dynamic_import_helper_default = (x, _r, Li) => {
|
|
|
37090
37109
|
])) : createCommentVNode("v-if", !0)], 64))]);
|
|
37091
37110
|
};
|
|
37092
37111
|
}
|
|
37093
|
-
}), [["__scopeId", "data-v-
|
|
37112
|
+
}), [["__scopeId", "data-v-a4b26cd1"]]), table_default = { install(x) {
|
|
37094
37113
|
x.component("OgaTable", src_default$5);
|
|
37095
37114
|
} }, _hoisted_1$12 = { class: "oga-material-label" }, input_number_default = /* @__PURE__ */ __plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
37096
37115
|
inheritAttrs: !1,
|