@bscomp/ep-ui 0.4.8 → 0.4.9
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/lib/ep-ui.js +82 -82
- package/lib/ep-ui.js.gz +0 -0
- package/lib/ep-ui.umd.cjs +3 -3
- package/package.json +1 -1
package/lib/ep-ui.js
CHANGED
|
@@ -1935,7 +1935,7 @@ function wv(e) {
|
|
|
1935
1935
|
w[b] = nt, D[b] = nt - L;
|
|
1936
1936
|
}
|
|
1937
1937
|
if (s) {
|
|
1938
|
-
var rt, R = b === "x" ? ct : ft, an = b === "x" ? Tt : Ct, G = w[x],
|
|
1938
|
+
var rt, R = b === "x" ? ct : ft, an = b === "x" ? Tt : Ct, G = w[x], ie = x === "y" ? "height" : "width", At = G + m[R], Dt = G - m[an], me = [ct, ft].indexOf(g) !== -1, Rt = (rt = U == null ? void 0 : U[x]) != null ? rt : 0, sn = me ? At : G - P[ie] - $[ie] - Rt + I.altAxis, ln = me ? G + P[ie] + $[ie] - Rt - I.altAxis : Dt, un = h && me ? Qp(sn, G, ln) : gr(h ? sn : At, G, h ? ln : Dt);
|
|
1939
1939
|
w[x] = un, D[x] = un - G;
|
|
1940
1940
|
}
|
|
1941
1941
|
t.modifiersData[o] = D;
|
|
@@ -8196,7 +8196,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8196
8196
|
a4d3: (
|
|
8197
8197
|
/***/
|
|
8198
8198
|
function(a, i, r) {
|
|
8199
|
-
var s = r("23e7"), l = r("da84"), u = r("d066"), c = r("c430"), f = r("83ab"), v = r("4930"), h = r("fdbf"), d = r("d039"), p = r("5135"), m = r("e8b5"), g = r("861d"), y = r("825a"), E = r("7b0b"), b = r("fc6a"), x = r("c04e"), w = r("5c6c"), P = r("7c73"), $ = r("df75"), O = r("241c"), I = r("057f"), U = r("7418"), D = r("06cf"), N = r("9bf2"), j = r("d1e7"), W = r("9112"), B = r("6eeb"), L = r("5692"), re = r("f772"), de = r("d012"), Ne = r("90e3"), k = r("b622"), K = r("e538"), ae = r("746f"), Se = r("d44e"), Oe = r("69f3"), Te = r("b727").forEach, we = re("hidden"), Ue = "Symbol", Ye = "prototype", yt = k("toPrimitive"), vt = Oe.set, bt = Oe.getterFor(Ue), ke = Object[Ye], Ge = l.Symbol, It = u("JSON", "stringify"), nt = D.f, rt = N.f, R = I.f, an = j.f, G = L("symbols"),
|
|
8199
|
+
var s = r("23e7"), l = r("da84"), u = r("d066"), c = r("c430"), f = r("83ab"), v = r("4930"), h = r("fdbf"), d = r("d039"), p = r("5135"), m = r("e8b5"), g = r("861d"), y = r("825a"), E = r("7b0b"), b = r("fc6a"), x = r("c04e"), w = r("5c6c"), P = r("7c73"), $ = r("df75"), O = r("241c"), I = r("057f"), U = r("7418"), D = r("06cf"), N = r("9bf2"), j = r("d1e7"), W = r("9112"), B = r("6eeb"), L = r("5692"), re = r("f772"), de = r("d012"), Ne = r("90e3"), k = r("b622"), K = r("e538"), ae = r("746f"), Se = r("d44e"), Oe = r("69f3"), Te = r("b727").forEach, we = re("hidden"), Ue = "Symbol", Ye = "prototype", yt = k("toPrimitive"), vt = Oe.set, bt = Oe.getterFor(Ue), ke = Object[Ye], Ge = l.Symbol, It = u("JSON", "stringify"), nt = D.f, rt = N.f, R = I.f, an = j.f, G = L("symbols"), ie = L("op-symbols"), At = L("string-to-symbol-registry"), Dt = L("symbol-to-string-registry"), me = L("wks"), Rt = l.QObject, sn = !Rt || !Rt[Ye] || !Rt[Ye].findChild, ln = f && d(function() {
|
|
8200
8200
|
return P(rt({}, "a", {
|
|
8201
8201
|
get: function() {
|
|
8202
8202
|
return rt(this, "a", { value: 7 }).a;
|
|
@@ -8217,7 +8217,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8217
8217
|
} : function(le) {
|
|
8218
8218
|
return Object(le) instanceof Ge;
|
|
8219
8219
|
}, T = function(q, ne, ye) {
|
|
8220
|
-
q === ke && T(
|
|
8220
|
+
q === ke && T(ie, ne, ye), y(q);
|
|
8221
8221
|
var Ee = x(ne, !0);
|
|
8222
8222
|
return y(ye), p(G, Ee) ? (ye.enumerable ? (p(q, we) && q[we][Ee] && (q[we][Ee] = !1), ye = P(ye, { enumerable: w(0, !1) })) : (p(q, we) || rt(q, we, w(1, {})), q[we][Ee] = !0), ln(q, Ee, ye)) : rt(q, Ee, ye);
|
|
8223
8223
|
}, A = function(q, ne) {
|
|
@@ -8230,10 +8230,10 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8230
8230
|
return ne === void 0 ? P(q) : A(P(q), ne);
|
|
8231
8231
|
}, J = function(q) {
|
|
8232
8232
|
var ne = x(q, !0), ye = an.call(this, ne);
|
|
8233
|
-
return this === ke && p(G, ne) && !p(
|
|
8234
|
-
},
|
|
8233
|
+
return this === ke && p(G, ne) && !p(ie, ne) ? !1 : ye || !p(this, ne) || !p(G, ne) || p(this, we) && this[we][ne] ? ye : !0;
|
|
8234
|
+
}, se = function(q, ne) {
|
|
8235
8235
|
var ye = b(q), Ee = x(ne, !0);
|
|
8236
|
-
if (!(ye === ke && p(G, Ee) && !p(
|
|
8236
|
+
if (!(ye === ke && p(G, Ee) && !p(ie, Ee))) {
|
|
8237
8237
|
var at = nt(ye, Ee);
|
|
8238
8238
|
return at && p(G, Ee) && !(p(ye, we) && ye[we][Ee]) && (at.enumerable = !0), at;
|
|
8239
8239
|
}
|
|
@@ -8243,7 +8243,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8243
8243
|
!p(G, Ee) && !p(de, Ee) && ye.push(Ee);
|
|
8244
8244
|
}), ye;
|
|
8245
8245
|
}, Ce = function(q) {
|
|
8246
|
-
var ne = q === ke, ye = R(ne ?
|
|
8246
|
+
var ne = q === ke, ye = R(ne ? ie : b(q)), Ee = [];
|
|
8247
8247
|
return Te(ye, function(at) {
|
|
8248
8248
|
p(G, at) && (!ne || p(ke, at)) && Ee.push(G[at]);
|
|
8249
8249
|
}), Ee;
|
|
@@ -8251,14 +8251,14 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8251
8251
|
if (v || (Ge = function() {
|
|
8252
8252
|
if (this instanceof Ge) throw TypeError("Symbol is not a constructor");
|
|
8253
8253
|
var q = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), ne = Ne(q), ye = function(Ee) {
|
|
8254
|
-
this === ke && ye.call(
|
|
8254
|
+
this === ke && ye.call(ie, Ee), p(this, we) && p(this[we], ne) && (this[we][ne] = !1), ln(this, ne, w(1, Ee));
|
|
8255
8255
|
};
|
|
8256
8256
|
return f && sn && ln(ke, ne, { configurable: !0, set: ye }), un(ne, q);
|
|
8257
8257
|
}, B(Ge[Ye], "toString", function() {
|
|
8258
8258
|
return bt(this).tag;
|
|
8259
8259
|
}), B(Ge, "withoutSetter", function(le) {
|
|
8260
8260
|
return un(Ne(le), le);
|
|
8261
|
-
}), j.f = J, N.f = T, D.f =
|
|
8261
|
+
}), j.f = J, N.f = T, D.f = se, O.f = I.f = fe, U.f = Ce, K.f = function(le) {
|
|
8262
8262
|
return un(k(le), le);
|
|
8263
8263
|
}, f && (rt(Ge[Ye], "description", {
|
|
8264
8264
|
configurable: !0,
|
|
@@ -8302,7 +8302,7 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8302
8302
|
defineProperties: A,
|
|
8303
8303
|
// `Object.getOwnPropertyDescriptor` method
|
|
8304
8304
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
|
|
8305
|
-
getOwnPropertyDescriptor:
|
|
8305
|
+
getOwnPropertyDescriptor: se
|
|
8306
8306
|
}), s({ target: "Object", stat: !0, forced: !v }, {
|
|
8307
8307
|
// `Object.getOwnPropertyNames` method
|
|
8308
8308
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
@@ -9142,17 +9142,17 @@ const uy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9142
9142
|
r("e01a"), r("d28b"), r("e260"), r("d3b7"), r("3ca3"), r("ddb0");
|
|
9143
9143
|
function d(C, T) {
|
|
9144
9144
|
if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(C)))) {
|
|
9145
|
-
var A = [], V = !0, J = !1,
|
|
9145
|
+
var A = [], V = !0, J = !1, se = void 0;
|
|
9146
9146
|
try {
|
|
9147
9147
|
for (var fe = C[Symbol.iterator](), Ce; !(V = (Ce = fe.next()).done) && (A.push(Ce.value), !(T && A.length === T)); V = !0)
|
|
9148
9148
|
;
|
|
9149
9149
|
} catch (We) {
|
|
9150
|
-
J = !0,
|
|
9150
|
+
J = !0, se = We;
|
|
9151
9151
|
} finally {
|
|
9152
9152
|
try {
|
|
9153
9153
|
!V && fe.return != null && fe.return();
|
|
9154
9154
|
} finally {
|
|
9155
|
-
if (J) throw
|
|
9155
|
+
if (J) throw se;
|
|
9156
9156
|
}
|
|
9157
9157
|
}
|
|
9158
9158
|
return A;
|
|
@@ -9241,21 +9241,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9241
9241
|
}
|
|
9242
9242
|
function Oe(C) {
|
|
9243
9243
|
return C.reduce(function(T, A) {
|
|
9244
|
-
var V = y(A, 2), J = V[0],
|
|
9245
|
-
return T[J] =
|
|
9244
|
+
var V = y(A, 2), J = V[0], se = V[1];
|
|
9245
|
+
return T[J] = se, T;
|
|
9246
9246
|
}, {});
|
|
9247
9247
|
}
|
|
9248
9248
|
function Te(C) {
|
|
9249
|
-
var T = C.$attrs, A = C.componentData, V = A === void 0 ? {} : A, J = Oe(Object.entries(T).filter(function(
|
|
9250
|
-
var fe = y(
|
|
9249
|
+
var T = C.$attrs, A = C.componentData, V = A === void 0 ? {} : A, J = Oe(Object.entries(T).filter(function(se) {
|
|
9250
|
+
var fe = y(se, 2), Ce = fe[0];
|
|
9251
9251
|
return fe[1], Se(Ce);
|
|
9252
9252
|
}));
|
|
9253
9253
|
return v(v({}, J), V);
|
|
9254
9254
|
}
|
|
9255
9255
|
function we(C) {
|
|
9256
9256
|
var T = C.$attrs, A = C.callBackBuilder, V = Oe(Ue(T));
|
|
9257
|
-
Object.entries(A).forEach(function(
|
|
9258
|
-
var fe = y(
|
|
9257
|
+
Object.entries(A).forEach(function(se) {
|
|
9258
|
+
var fe = y(se, 2), Ce = fe[0], We = fe[1];
|
|
9259
9259
|
de[Ce].forEach(function(le) {
|
|
9260
9260
|
V["on".concat(le)] = We(le);
|
|
9261
9261
|
});
|
|
@@ -9300,27 +9300,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9300
9300
|
return T.__draggable_context;
|
|
9301
9301
|
}, It = /* @__PURE__ */ function() {
|
|
9302
9302
|
function C(T) {
|
|
9303
|
-
var A = T.nodes, V = A.header, J = A.default,
|
|
9304
|
-
Ye(this, C), this.defaultNodes = J, this.children = [].concat(w(V), w(J), w(
|
|
9303
|
+
var A = T.nodes, V = A.header, J = A.default, se = A.footer, fe = T.root, Ce = T.realList;
|
|
9304
|
+
Ye(this, C), this.defaultNodes = J, this.children = [].concat(w(V), w(J), w(se)), this.externalComponent = fe.externalComponent, this.rootTransition = fe.transition, this.tag = fe.tag, this.realList = Ce;
|
|
9305
9305
|
}
|
|
9306
9306
|
return vt(C, [{
|
|
9307
9307
|
key: "render",
|
|
9308
9308
|
value: function(A, V) {
|
|
9309
|
-
var J = this.tag,
|
|
9309
|
+
var J = this.tag, se = this.children, fe = this._isRootComponent, Ce = fe ? {
|
|
9310
9310
|
default: function() {
|
|
9311
|
-
return
|
|
9311
|
+
return se;
|
|
9312
9312
|
}
|
|
9313
|
-
} :
|
|
9313
|
+
} : se;
|
|
9314
9314
|
return A(J, V, Ce);
|
|
9315
9315
|
}
|
|
9316
9316
|
}, {
|
|
9317
9317
|
key: "updated",
|
|
9318
9318
|
value: function() {
|
|
9319
9319
|
var A = this.defaultNodes, V = this.realList;
|
|
9320
|
-
A.forEach(function(J,
|
|
9320
|
+
A.forEach(function(J, se) {
|
|
9321
9321
|
ke(bt(J), {
|
|
9322
|
-
element: V[
|
|
9323
|
-
index:
|
|
9322
|
+
element: V[se],
|
|
9323
|
+
index: se
|
|
9324
9324
|
});
|
|
9325
9325
|
});
|
|
9326
9326
|
}
|
|
@@ -9332,18 +9332,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9332
9332
|
}, {
|
|
9333
9333
|
key: "getVmIndexFromDomIndex",
|
|
9334
9334
|
value: function(A, V) {
|
|
9335
|
-
var J = this.defaultNodes,
|
|
9335
|
+
var J = this.defaultNodes, se = J.length, fe = V.children, Ce = fe.item(A);
|
|
9336
9336
|
if (Ce === null)
|
|
9337
|
-
return
|
|
9337
|
+
return se;
|
|
9338
9338
|
var We = Ge(Ce);
|
|
9339
9339
|
if (We)
|
|
9340
9340
|
return We.index;
|
|
9341
|
-
if (
|
|
9341
|
+
if (se === 0)
|
|
9342
9342
|
return 0;
|
|
9343
9343
|
var le = bt(J[0]), q = w(fe).findIndex(function(ne) {
|
|
9344
9344
|
return ne === le;
|
|
9345
9345
|
});
|
|
9346
|
-
return A < q ? 0 :
|
|
9346
|
+
return A < q ? 0 : se;
|
|
9347
9347
|
}
|
|
9348
9348
|
}, {
|
|
9349
9349
|
key: "_isRootComponent",
|
|
@@ -9357,9 +9357,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9357
9357
|
return A ? A() : [];
|
|
9358
9358
|
}
|
|
9359
9359
|
function R(C) {
|
|
9360
|
-
var T = C.$slots, A = C.realList, V = C.getKey, J = A || [],
|
|
9360
|
+
var T = C.$slots, A = C.realList, V = C.getKey, J = A || [], se = ["header", "footer"].map(function(ne) {
|
|
9361
9361
|
return rt(T, ne);
|
|
9362
|
-
}), fe = y(
|
|
9362
|
+
}), fe = y(se, 2), Ce = fe[0], We = fe[1], le = T.item;
|
|
9363
9363
|
if (!le)
|
|
9364
9364
|
throw new Error("draggable element must have an item slot");
|
|
9365
9365
|
var q = J.flatMap(function(ne, ye) {
|
|
@@ -9389,18 +9389,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9389
9389
|
};
|
|
9390
9390
|
}
|
|
9391
9391
|
function G(C) {
|
|
9392
|
-
var T = C.$slots, A = C.tag, V = C.realList, J = C.getKey,
|
|
9392
|
+
var T = C.$slots, A = C.tag, V = C.realList, J = C.getKey, se = R({
|
|
9393
9393
|
$slots: T,
|
|
9394
9394
|
realList: V,
|
|
9395
9395
|
getKey: J
|
|
9396
9396
|
}), fe = an(A);
|
|
9397
9397
|
return new It({
|
|
9398
|
-
nodes:
|
|
9398
|
+
nodes: se,
|
|
9399
9399
|
root: fe,
|
|
9400
9400
|
realList: V
|
|
9401
9401
|
});
|
|
9402
9402
|
}
|
|
9403
|
-
function
|
|
9403
|
+
function ie(C, T) {
|
|
9404
9404
|
var A = this;
|
|
9405
9405
|
Object(nt.nextTick)(function() {
|
|
9406
9406
|
return A.$emit(C.toLowerCase(), T);
|
|
@@ -9416,7 +9416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9416
9416
|
function Dt(C) {
|
|
9417
9417
|
var T = this, A = At.call(this, C);
|
|
9418
9418
|
return function(V, J) {
|
|
9419
|
-
A.call(T, V, J),
|
|
9419
|
+
A.call(T, V, J), ie.call(T, C, V);
|
|
9420
9420
|
};
|
|
9421
9421
|
}
|
|
9422
9422
|
var me = null, Rt = {
|
|
@@ -9468,10 +9468,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9468
9468
|
render: function() {
|
|
9469
9469
|
try {
|
|
9470
9470
|
this.error = !1;
|
|
9471
|
-
var T = this.$slots, A = this.$attrs, V = this.tag, J = this.componentData,
|
|
9471
|
+
var T = this.$slots, A = this.$attrs, V = this.tag, J = this.componentData, se = this.realList, fe = this.getKey, Ce = G({
|
|
9472
9472
|
$slots: T,
|
|
9473
9473
|
tag: V,
|
|
9474
|
-
realList:
|
|
9474
|
+
realList: se,
|
|
9475
9475
|
getKey: fe
|
|
9476
9476
|
});
|
|
9477
9477
|
this.componentStructure = Ce;
|
|
@@ -9496,21 +9496,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9496
9496
|
if (!this.error) {
|
|
9497
9497
|
var A = this.$attrs, V = this.$el, J = this.componentStructure;
|
|
9498
9498
|
J.updated();
|
|
9499
|
-
var
|
|
9499
|
+
var se = we({
|
|
9500
9500
|
$attrs: A,
|
|
9501
9501
|
callBackBuilder: {
|
|
9502
9502
|
manageAndEmit: function(We) {
|
|
9503
9503
|
return Dt.call(T, We);
|
|
9504
9504
|
},
|
|
9505
9505
|
emit: function(We) {
|
|
9506
|
-
return
|
|
9506
|
+
return ie.bind(T, We);
|
|
9507
9507
|
},
|
|
9508
9508
|
manage: function(We) {
|
|
9509
9509
|
return At.call(T, We);
|
|
9510
9510
|
}
|
|
9511
9511
|
}
|
|
9512
9512
|
}), fe = V.nodeType === 1 ? V : V.parentElement;
|
|
9513
|
-
this._sortable = new $.a(fe,
|
|
9513
|
+
this._sortable = new $.a(fe, se), this.targetDomElement = fe, fe.__draggable_component__ = this;
|
|
9514
9514
|
}
|
|
9515
9515
|
},
|
|
9516
9516
|
updated: function() {
|
|
@@ -9536,8 +9536,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9536
9536
|
handler: function(T) {
|
|
9537
9537
|
var A = this._sortable;
|
|
9538
9538
|
A && Ue(T).forEach(function(V) {
|
|
9539
|
-
var J = y(V, 2),
|
|
9540
|
-
A.option(
|
|
9539
|
+
var J = y(V, 2), se = J[0], fe = J[1];
|
|
9540
|
+
A.option(se, fe);
|
|
9541
9541
|
});
|
|
9542
9542
|
},
|
|
9543
9543
|
deep: !0
|
|
@@ -9571,8 +9571,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9571
9571
|
this.alterList(A);
|
|
9572
9572
|
},
|
|
9573
9573
|
updatePosition: function(T, A) {
|
|
9574
|
-
var V = function(
|
|
9575
|
-
return
|
|
9574
|
+
var V = function(se) {
|
|
9575
|
+
return se.splice(A, 0, se.splice(T, 1)[0]);
|
|
9576
9576
|
};
|
|
9577
9577
|
this.alterList(V);
|
|
9578
9578
|
},
|
|
@@ -9582,11 +9582,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9582
9582
|
return {
|
|
9583
9583
|
component: J
|
|
9584
9584
|
};
|
|
9585
|
-
var
|
|
9586
|
-
list:
|
|
9585
|
+
var se = J.realList, fe = {
|
|
9586
|
+
list: se,
|
|
9587
9587
|
component: J
|
|
9588
9588
|
};
|
|
9589
|
-
if (A !== V &&
|
|
9589
|
+
if (A !== V && se) {
|
|
9590
9590
|
var Ce = J.getUnderlyingVm(V) || {};
|
|
9591
9591
|
return v(v({}, Ce), fe);
|
|
9592
9592
|
}
|
|
@@ -9620,12 +9620,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9620
9620
|
}
|
|
9621
9621
|
var A = this.context, V = A.index, J = A.element;
|
|
9622
9622
|
this.spliceList(V, 1);
|
|
9623
|
-
var
|
|
9623
|
+
var se = {
|
|
9624
9624
|
element: J,
|
|
9625
9625
|
oldIndex: V
|
|
9626
9626
|
};
|
|
9627
9627
|
this.emitChanges({
|
|
9628
|
-
removed:
|
|
9628
|
+
removed: se
|
|
9629
9629
|
});
|
|
9630
9630
|
},
|
|
9631
9631
|
onDragUpdate: function(T) {
|
|
@@ -9646,17 +9646,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9646
9646
|
return 0;
|
|
9647
9647
|
var V = w(A.to.children).filter(function(Ce) {
|
|
9648
9648
|
return Ce.style.display !== "none";
|
|
9649
|
-
}), J = V.indexOf(A.related),
|
|
9650
|
-
return fe || !A.willInsertAfter ?
|
|
9649
|
+
}), J = V.indexOf(A.related), se = T.component.getVmIndexFromDomIndex(J), fe = V.indexOf(me) !== -1;
|
|
9650
|
+
return fe || !A.willInsertAfter ? se : se + 1;
|
|
9651
9651
|
},
|
|
9652
9652
|
onDragMove: function(T, A) {
|
|
9653
9653
|
var V = this.move, J = this.realList;
|
|
9654
9654
|
if (!V || !J)
|
|
9655
9655
|
return !0;
|
|
9656
|
-
var
|
|
9656
|
+
var se = this.getRelatedContextFromMoveEvent(T), fe = this.computeFutureIndex(se, T), Ce = v(v({}, this.context), {}, {
|
|
9657
9657
|
futureIndex: fe
|
|
9658
9658
|
}), We = v(v({}, T), {}, {
|
|
9659
|
-
relatedContext:
|
|
9659
|
+
relatedContext: se,
|
|
9660
9660
|
draggedContext: Ce
|
|
9661
9661
|
});
|
|
9662
9662
|
return V(We, A);
|
|
@@ -10297,7 +10297,7 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10297
10297
|
}, { ...R }, {
|
|
10298
10298
|
render: R == null ? void 0 : R.renderEdit,
|
|
10299
10299
|
modelValue: G.row[`${R.editKey || (R == null ? void 0 : R.prop)}EditValue`],
|
|
10300
|
-
"onUpdate:modelValue": (
|
|
10300
|
+
"onUpdate:modelValue": (ie) => G.row[`${R.editKey || (R == null ? void 0 : R.prop)}EditValue`] = ie
|
|
10301
10301
|
}), null, 16, ["render", "modelValue", "onUpdate:modelValue"])) : te("", !0),
|
|
10302
10302
|
R.editSlotName ? ee(k.$slots, R.editSlotName, {
|
|
10303
10303
|
key: 1,
|
|
@@ -10308,7 +10308,7 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10308
10308
|
}, R, {
|
|
10309
10309
|
type: R.inputType,
|
|
10310
10310
|
modelValue: G.row[`${R.editKey || (R == null ? void 0 : R.prop)}EditValue`],
|
|
10311
|
-
"onUpdate:modelValue": (
|
|
10311
|
+
"onUpdate:modelValue": (ie) => G.row[`${R.editKey || (R == null ? void 0 : R.prop)}EditValue`] = ie
|
|
10312
10312
|
}), null, 16, ["type", "modelValue", "onUpdate:modelValue"]))
|
|
10313
10313
|
], 64)) : (M(), _(De, { key: 1 }, [
|
|
10314
10314
|
R != null && R.render ? (M(), Y(Hn, {
|
|
@@ -10348,7 +10348,7 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10348
10348
|
Ie(Se, {
|
|
10349
10349
|
link: "",
|
|
10350
10350
|
type: "primary",
|
|
10351
|
-
onClick: (
|
|
10351
|
+
onClick: (ie) => S(m)(G.row)
|
|
10352
10352
|
}, {
|
|
10353
10353
|
default: z(() => K[9] || (K[9] = [
|
|
10354
10354
|
Ve("保存")
|
|
@@ -10357,7 +10357,7 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10357
10357
|
}, 1032, ["onClick"]),
|
|
10358
10358
|
Ie(Se, {
|
|
10359
10359
|
link: "",
|
|
10360
|
-
onClick: K[2] || (K[2] = (
|
|
10360
|
+
onClick: K[2] || (K[2] = (ie) => S(g)())
|
|
10361
10361
|
}, {
|
|
10362
10362
|
default: z(() => K[10] || (K[10] = [
|
|
10363
10363
|
Ve("取消")
|
|
@@ -10365,18 +10365,18 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10365
10365
|
_: 1
|
|
10366
10366
|
})
|
|
10367
10367
|
], 64)) : te("", !0)
|
|
10368
|
-
], 64)) : (M(!0), _(De, { key: 1 }, xt(R.operation, (
|
|
10368
|
+
], 64)) : (M(!0), _(De, { key: 1 }, xt(R.operation, (ie, At) => {
|
|
10369
10369
|
var Dt;
|
|
10370
10370
|
return M(), _(De, { key: At }, [
|
|
10371
|
-
I(
|
|
10372
|
-
(Dt =
|
|
10371
|
+
I(ie, G) ? te("", !0) : (M(), _(De, { key: 0 }, [
|
|
10372
|
+
(Dt = ie == null ? void 0 : ie.children) != null && Dt.length ? (M(), Y(bt, {
|
|
10373
10373
|
key: 0,
|
|
10374
10374
|
trigger: "click"
|
|
10375
10375
|
}, {
|
|
10376
10376
|
dropdown: z(() => [
|
|
10377
10377
|
Ie(vt, null, {
|
|
10378
10378
|
default: z(() => [
|
|
10379
|
-
(M(!0), _(De, null, xt(
|
|
10379
|
+
(M(!0), _(De, null, xt(ie.children, (me) => (M(), _(De, null, [
|
|
10380
10380
|
I(me, G) ? te("", !0) : (M(), Y(yt, ve({
|
|
10381
10381
|
key: 0,
|
|
10382
10382
|
class: "operation-drop",
|
|
@@ -10444,13 +10444,13 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10444
10444
|
]),
|
|
10445
10445
|
default: z(() => [
|
|
10446
10446
|
Ie(we, ve({
|
|
10447
|
-
onClick: On((me) => S(p)(G.row,
|
|
10447
|
+
onClick: On((me) => S(p)(G.row, ie, G), ["stop"]),
|
|
10448
10448
|
ref_for: !0
|
|
10449
|
-
}, { type: "primary", link: !0, ...
|
|
10450
|
-
disabled: I(
|
|
10449
|
+
}, { type: "primary", link: !0, ...ie }, {
|
|
10450
|
+
disabled: I(ie, G, "disabled")
|
|
10451
10451
|
}), {
|
|
10452
10452
|
default: z(() => [
|
|
10453
|
-
Ve($e(
|
|
10453
|
+
Ve($e(ie.label) + " ", 1),
|
|
10454
10454
|
Ie(Te, null, {
|
|
10455
10455
|
default: z(() => [
|
|
10456
10456
|
Ie(Oe)
|
|
@@ -10463,24 +10463,24 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10463
10463
|
]),
|
|
10464
10464
|
_: 2
|
|
10465
10465
|
}, 1024)) : (M(), _(De, { key: 1 }, [
|
|
10466
|
-
|
|
10466
|
+
ie.isShowConfirm ? (M(), Y(Ye, {
|
|
10467
10467
|
key: 0,
|
|
10468
|
-
title:
|
|
10469
|
-
onConfirm: (me) => S(p)(G.row,
|
|
10468
|
+
title: ie.msg || "确认删除?",
|
|
10469
|
+
onConfirm: (me) => S(p)(G.row, ie, G)
|
|
10470
10470
|
}, {
|
|
10471
10471
|
reference: z(() => [
|
|
10472
10472
|
Ie(ae, ve({
|
|
10473
|
-
onClick: (me) => S(b)(
|
|
10473
|
+
onClick: (me) => S(b)(ie, G.row),
|
|
10474
10474
|
ref_for: !0
|
|
10475
10475
|
}, {
|
|
10476
10476
|
type: "primary",
|
|
10477
10477
|
link: !0,
|
|
10478
|
-
...
|
|
10478
|
+
...ie
|
|
10479
10479
|
}, {
|
|
10480
|
-
disabled: I(
|
|
10480
|
+
disabled: I(ie, G, "disabled")
|
|
10481
10481
|
}), {
|
|
10482
10482
|
default: z(() => [
|
|
10483
|
-
Ve($e(
|
|
10483
|
+
Ve($e(ie.label), 1)
|
|
10484
10484
|
]),
|
|
10485
10485
|
_: 2
|
|
10486
10486
|
}, 1040, ["onClick", "disabled"])
|
|
@@ -10488,28 +10488,28 @@ const dy = /* @__PURE__ */ Bg(fy), py = { class: "item" }, vy = X({
|
|
|
10488
10488
|
_: 2
|
|
10489
10489
|
}, 1032, ["title", "onConfirm"])) : (M(), Y(ae, ve({
|
|
10490
10490
|
key: 1,
|
|
10491
|
-
onClick: (me) => S(p)(G.row,
|
|
10491
|
+
onClick: (me) => S(p)(G.row, ie, G),
|
|
10492
10492
|
ref_for: !0
|
|
10493
10493
|
}, {
|
|
10494
10494
|
type: "primary",
|
|
10495
10495
|
link: !0,
|
|
10496
|
-
...
|
|
10496
|
+
...ie
|
|
10497
10497
|
}, {
|
|
10498
|
-
disabled: I(
|
|
10498
|
+
disabled: I(ie, G, "disabled")
|
|
10499
10499
|
}), {
|
|
10500
10500
|
default: z(() => [
|
|
10501
|
-
|
|
10501
|
+
ie.render ? (M(), Y(Hn, {
|
|
10502
10502
|
key: 0,
|
|
10503
|
-
column:
|
|
10503
|
+
column: ie,
|
|
10504
10504
|
row: G.row,
|
|
10505
|
-
render:
|
|
10505
|
+
render: ie.render,
|
|
10506
10506
|
index: G.$index
|
|
10507
10507
|
}, null, 8, ["column", "row", "render", "index"])) : te("", !0),
|
|
10508
|
-
|
|
10508
|
+
ie.slotName ? ee(k.$slots, ie.slotName, {
|
|
10509
10509
|
key: 1,
|
|
10510
10510
|
scope: G
|
|
10511
10511
|
}) : te("", !0),
|
|
10512
|
-
!
|
|
10512
|
+
!ie.render && !ie.slotName ? (M(), _("span", Dy, $e(ie.label), 1)) : te("", !0)
|
|
10513
10513
|
]),
|
|
10514
10514
|
_: 2
|
|
10515
10515
|
}, 1040, ["onClick", "disabled"]))
|
package/lib/ep-ui.js.gz
CHANGED
|
Binary file
|