geekin-devtoys 0.1.5 → 0.1.6
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/GBubble/index.js +2 -0
- package/lib/GBubble/index.mjs +235 -0
- package/lib/GBubble/style.css +1 -0
- package/lib/GDialog/index.js +1 -1
- package/lib/GDialog/index.mjs +15 -15
- package/lib/GDialog/style.css +1 -1
- package/lib/GPercent/index.js +1 -1
- package/lib/GPercent/index.mjs +85 -60
- package/lib/GPercent/style.css +1 -1
- package/lib/GTable/index.js +1 -1
- package/lib/GTable/index.mjs +92 -89
- package/lib/GTable/style.css +1 -1
- package/lib/index/index.js +1 -1
- package/lib/index/index.mjs +14 -12
- package/package.json +9 -1
package/lib/GTable/index.mjs
CHANGED
|
@@ -70,7 +70,7 @@ function U(o) {
|
|
|
70
70
|
if (typeof window < "u" && window.navigator)
|
|
71
71
|
return !!/* @__PURE__ */ navigator.userAgent.match(o);
|
|
72
72
|
}
|
|
73
|
-
var Z = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = U(/Edge/i), St = U(/firefox/i), Ce = U(/safari/i) && !U(/chrome/i) && !U(/android/i),
|
|
73
|
+
var Z = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = U(/Edge/i), St = U(/firefox/i), Ce = U(/safari/i) && !U(/chrome/i) && !U(/android/i), ct = U(/iP(ad|od|hone)/i), xt = U(/chrome/i) && U(/android/i), Nt = {
|
|
74
74
|
capture: !1,
|
|
75
75
|
passive: !1
|
|
76
76
|
};
|
|
@@ -156,8 +156,8 @@ function $() {
|
|
|
156
156
|
}
|
|
157
157
|
function I(o, e, t, n, r) {
|
|
158
158
|
if (!(!o.getBoundingClientRect && o !== window)) {
|
|
159
|
-
var i, a, l, s, u,
|
|
160
|
-
if (o !== window && o.parentNode && o !== $() ? (i = o.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, u = i.right,
|
|
159
|
+
var i, a, l, s, u, c, f;
|
|
160
|
+
if (o !== window && o.parentNode && o !== $() ? (i = o.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, u = i.right, c = i.height, f = i.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (e || t) && o !== window && (r = r || o.parentNode, !Z))
|
|
161
161
|
do
|
|
162
162
|
if (r && r.getBoundingClientRect && (p(r, "transform") !== "none" || t && p(r, "position") !== "static")) {
|
|
163
163
|
var y = r.getBoundingClientRect();
|
|
@@ -167,15 +167,15 @@ function I(o, e, t, n, r) {
|
|
|
167
167
|
while (r = r.parentNode);
|
|
168
168
|
if (n && o !== window) {
|
|
169
169
|
var h = ge(r || o), v = h && h.a, b = h && h.d;
|
|
170
|
-
h && (a /= b, l /= v,
|
|
170
|
+
h && (a /= b, l /= v, f /= v, c /= b, s = a + c, u = l + f);
|
|
171
171
|
}
|
|
172
172
|
return {
|
|
173
173
|
top: a,
|
|
174
174
|
left: l,
|
|
175
175
|
bottom: s,
|
|
176
176
|
right: u,
|
|
177
|
-
width:
|
|
178
|
-
height:
|
|
177
|
+
width: f,
|
|
178
|
+
height: c
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -323,9 +323,9 @@ function un() {
|
|
|
323
323
|
}
|
|
324
324
|
var i = !1, a = 0;
|
|
325
325
|
o.forEach(function(l) {
|
|
326
|
-
var s = 0, u = l.target,
|
|
327
|
-
b && (
|
|
328
|
-
(v.top -
|
|
326
|
+
var s = 0, u = l.target, c = u.fromRect, f = I(u), y = u.prevFromRect, h = u.prevToRect, v = l.rect, b = ge(u, !0);
|
|
327
|
+
b && (f.top -= b.f, f.left -= b.e), u.toRect = f, u.thisAnimationDuration && Qe(y, f) && !Qe(c, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
328
|
+
(v.top - f.top) / (v.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = fn(v, y, h, r.options)), Qe(f, c) || (u.prevFromRect = c, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, v, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
329
329
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
330
330
|
}, s), u.thisAnimationDuration = s);
|
|
331
331
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -335,8 +335,8 @@ function un() {
|
|
|
335
335
|
animate: function(n, r, i, a) {
|
|
336
336
|
if (a) {
|
|
337
337
|
p(n, "transition", ""), p(n, "transform", "");
|
|
338
|
-
var l = ge(this.el), s = l && l.a, u = l && l.d,
|
|
339
|
-
n.animatingX = !!
|
|
338
|
+
var l = ge(this.el), s = l && l.a, u = l && l.d, c = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (u || 1);
|
|
339
|
+
n.animatingX = !!c, n.animatingY = !!f, p(n, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = dn(n), p(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), p(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
340
340
|
p(n, "transition", ""), p(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
341
341
|
}, a);
|
|
342
342
|
}
|
|
@@ -346,19 +346,19 @@ function un() {
|
|
|
346
346
|
function dn(o) {
|
|
347
347
|
return o.offsetWidth;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function fn(o, e, t, n) {
|
|
350
350
|
return Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * n.animation;
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var fe = [], Je = {
|
|
353
353
|
initializeByDefault: !0
|
|
354
354
|
}, Ne = {
|
|
355
355
|
mount: function(e) {
|
|
356
356
|
for (var t in Je)
|
|
357
357
|
Je.hasOwnProperty(t) && !(t in e) && (e[t] = Je[t]);
|
|
358
|
-
|
|
358
|
+
fe.forEach(function(n) {
|
|
359
359
|
if (n.pluginName === e.pluginName)
|
|
360
360
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
361
|
-
}),
|
|
361
|
+
}), fe.push(e);
|
|
362
362
|
},
|
|
363
363
|
pluginEvent: function(e, t, n) {
|
|
364
364
|
var r = this;
|
|
@@ -366,7 +366,7 @@ var ce = [], Je = {
|
|
|
366
366
|
r.eventCanceled = !0;
|
|
367
367
|
};
|
|
368
368
|
var i = e + "Global";
|
|
369
|
-
|
|
369
|
+
fe.forEach(function(a) {
|
|
370
370
|
t[a.pluginName] && (t[a.pluginName][i] && t[a.pluginName][i](j({
|
|
371
371
|
sortable: t
|
|
372
372
|
}, n)), t.options[a.pluginName] && t[a.pluginName][e] && t[a.pluginName][e](j({
|
|
@@ -375,7 +375,7 @@ var ce = [], Je = {
|
|
|
375
375
|
});
|
|
376
376
|
},
|
|
377
377
|
initializePlugins: function(e, t, n, r) {
|
|
378
|
-
|
|
378
|
+
fe.forEach(function(l) {
|
|
379
379
|
var s = l.pluginName;
|
|
380
380
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
381
381
|
var u = new l(e, t, e.options);
|
|
@@ -390,25 +390,25 @@ var ce = [], Je = {
|
|
|
390
390
|
},
|
|
391
391
|
getEventProperties: function(e, t) {
|
|
392
392
|
var n = {};
|
|
393
|
-
return
|
|
393
|
+
return fe.forEach(function(r) {
|
|
394
394
|
typeof r.eventProperties == "function" && K(n, r.eventProperties.call(t[r.pluginName], e));
|
|
395
395
|
}), n;
|
|
396
396
|
},
|
|
397
397
|
modifyOption: function(e, t, n) {
|
|
398
398
|
var r;
|
|
399
|
-
return
|
|
399
|
+
return fe.forEach(function(i) {
|
|
400
400
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
401
401
|
}), r;
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
|
-
function
|
|
405
|
-
var e = o.sortable, t = o.rootEl, n = o.name, r = o.targetEl, i = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex,
|
|
404
|
+
function cn(o) {
|
|
405
|
+
var e = o.sortable, t = o.rootEl, n = o.name, r = o.targetEl, i = o.cloneEl, a = o.toEl, l = o.fromEl, s = o.oldIndex, u = o.newIndex, c = o.oldDraggableIndex, f = o.newDraggableIndex, y = o.originalEvent, h = o.putSortable, v = o.extraEventProperties;
|
|
406
406
|
if (e = e || t && t[X], !!e) {
|
|
407
407
|
var b, D = e.options, P = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
408
408
|
window.CustomEvent && !Z && !xe ? b = new CustomEvent(n, {
|
|
409
409
|
bubbles: !0,
|
|
410
410
|
cancelable: !0
|
|
411
|
-
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = a || t, b.from = l || t, b.item = r || t, b.clone = i, b.oldIndex = s, b.newIndex = u, b.oldDraggableIndex =
|
|
411
|
+
}) : (b = document.createEvent("Event"), b.initEvent(n, !0, !0)), b.to = a || t, b.from = l || t, b.item = r || t, b.clone = i, b.oldIndex = s, b.newIndex = u, b.oldDraggableIndex = c, b.newDraggableIndex = f, b.originalEvent = y, b.pullMode = h ? h.lastPutMode : void 0;
|
|
412
412
|
var O = j(j({}, v), Ne.getEventProperties(n, e));
|
|
413
413
|
for (var F in O)
|
|
414
414
|
b[F] = O[F];
|
|
@@ -452,7 +452,7 @@ var hn = ["evt"], R = function(e, t) {
|
|
|
452
452
|
}, i));
|
|
453
453
|
};
|
|
454
454
|
function k(o) {
|
|
455
|
-
|
|
455
|
+
cn(j({
|
|
456
456
|
putSortable: N,
|
|
457
457
|
cloneEl: S,
|
|
458
458
|
targetEl: d,
|
|
@@ -463,7 +463,7 @@ function k(o) {
|
|
|
463
463
|
newDraggableIndex: ee
|
|
464
464
|
}, o));
|
|
465
465
|
}
|
|
466
|
-
var d, T, m, E, le, He, S, te, pe, H, Oe, ee, Re, N, he = !1, je = !1, Ve = [], ie, W, et, tt, It, Ot, Se,
|
|
466
|
+
var d, T, m, E, le, He, S, te, pe, H, Oe, ee, Re, N, he = !1, je = !1, Ve = [], ie, W, et, tt, It, Ot, Se, ce, Pe, Ae = !1, Xe = !1, Le, M, nt = [], st = !1, qe = [], Ke = typeof document < "u", Ye = ct, Pt = xe || Z ? "cssFloat" : "float", pn = Ke && !xt && !ct && "draggable" in document.createElement("div"), Bt = (function() {
|
|
467
467
|
if (Ke) {
|
|
468
468
|
if (Z)
|
|
469
469
|
return !1;
|
|
@@ -471,16 +471,16 @@ var d, T, m, E, le, He, S, te, pe, H, Oe, ee, Re, N, he = !1, je = !1, Ve = [],
|
|
|
471
471
|
return o.style.cssText = "pointer-events:auto", o.style.pointerEvents === "auto";
|
|
472
472
|
}
|
|
473
473
|
})(), zt = function(e, t) {
|
|
474
|
-
var n = p(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = me(e, 0, t), a = me(e, 1, t), l = i && p(i), s = a && p(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(i).width,
|
|
474
|
+
var n = p(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = me(e, 0, t), a = me(e, 1, t), l = i && p(i), s = a && p(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(i).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + I(a).width;
|
|
475
475
|
if (n.display === "flex")
|
|
476
476
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
477
477
|
if (n.display === "grid")
|
|
478
478
|
return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
479
479
|
if (i && l.float && l.float !== "none") {
|
|
480
|
-
var
|
|
481
|
-
return a && (s.clear === "both" || s.clear ===
|
|
480
|
+
var f = l.float === "left" ? "left" : "right";
|
|
481
|
+
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
482
482
|
}
|
|
483
|
-
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && n[Pt] === "none" || a && n[Pt] === "none" && u +
|
|
483
|
+
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && n[Pt] === "none" || a && n[Pt] === "none" && u + c > r) ? "vertical" : "horizontal";
|
|
484
484
|
}, gn = function(e, t, n) {
|
|
485
485
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, l = n ? t.left : t.top, s = n ? t.right : t.bottom, u = n ? t.width : t.height;
|
|
486
486
|
return r === l || i === s || r + a / 2 === l + u / 2;
|
|
@@ -496,16 +496,16 @@ var d, T, m, E, le, He, S, te, pe, H, Oe, ee, Re, N, he = !1, je = !1, Ve = [],
|
|
|
496
496
|
}), n;
|
|
497
497
|
}, Ht = function(e) {
|
|
498
498
|
function t(i, a) {
|
|
499
|
-
return function(l, s, u,
|
|
500
|
-
var
|
|
501
|
-
if (i == null && (a ||
|
|
499
|
+
return function(l, s, u, c) {
|
|
500
|
+
var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
501
|
+
if (i == null && (a || f))
|
|
502
502
|
return !0;
|
|
503
503
|
if (i == null || i === !1)
|
|
504
504
|
return !1;
|
|
505
505
|
if (a && i === "clone")
|
|
506
506
|
return i;
|
|
507
507
|
if (typeof i == "function")
|
|
508
|
-
return t(i(l, s, u,
|
|
508
|
+
return t(i(l, s, u, c), a)(l, s, u, c);
|
|
509
509
|
var y = (a ? l : s).options.group.name;
|
|
510
510
|
return i === !0 || typeof i == "string" && i === y || i.join && i.indexOf(y) > -1;
|
|
511
511
|
};
|
|
@@ -584,7 +584,7 @@ function g(o, e) {
|
|
|
584
584
|
y: 0
|
|
585
585
|
},
|
|
586
586
|
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
587
|
-
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && (!Ce ||
|
|
587
|
+
supportPointer: g.supportPointer !== !1 && "PointerEvent" in window && (!Ce || ct),
|
|
588
588
|
emptyInsertThreshold: 5
|
|
589
589
|
};
|
|
590
590
|
Ne.initializePlugins(this, o, t);
|
|
@@ -599,17 +599,17 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
599
599
|
{
|
|
600
600
|
constructor: g,
|
|
601
601
|
_isOutsideThisEl: function(e) {
|
|
602
|
-
!this.el.contains(e) && e !== this.el && (
|
|
602
|
+
!this.el.contains(e) && e !== this.el && (ce = null);
|
|
603
603
|
},
|
|
604
604
|
_getDirection: function(e, t) {
|
|
605
605
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, d) : this.options.direction;
|
|
606
606
|
},
|
|
607
607
|
_onTapStart: function(e) {
|
|
608
608
|
if (e.cancelable) {
|
|
609
|
-
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s,
|
|
609
|
+
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, c = r.filter;
|
|
610
610
|
if (Tn(n), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ce && s && s.tagName.toUpperCase() === "SELECT") && (s = G(s, r.draggable, n, !1), !(s && s.animated) && He !== s)) {
|
|
611
|
-
if (pe = L(s), Oe = L(s, r.draggable), typeof
|
|
612
|
-
if (
|
|
611
|
+
if (pe = L(s), Oe = L(s, r.draggable), typeof c == "function") {
|
|
612
|
+
if (c.call(this, e, s, this)) {
|
|
613
613
|
k({
|
|
614
614
|
sortable: t,
|
|
615
615
|
rootEl: u,
|
|
@@ -622,11 +622,11 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
622
622
|
}), i && e.preventDefault();
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
625
|
-
} else if (
|
|
626
|
-
if (
|
|
625
|
+
} else if (c && (c = c.split(",").some(function(f) {
|
|
626
|
+
if (f = G(u, f.trim(), n, !1), f)
|
|
627
627
|
return k({
|
|
628
628
|
sortable: t,
|
|
629
|
-
rootEl:
|
|
629
|
+
rootEl: f,
|
|
630
630
|
name: "filter",
|
|
631
631
|
targetEl: s,
|
|
632
632
|
fromEl: n,
|
|
@@ -634,7 +634,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
634
634
|
}), R("filter", t, {
|
|
635
635
|
evt: e
|
|
636
636
|
}), !0;
|
|
637
|
-
}),
|
|
637
|
+
}), c)) {
|
|
638
638
|
i && e.preventDefault();
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
@@ -662,8 +662,8 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
662
662
|
name: "choose",
|
|
663
663
|
originalEvent: e
|
|
664
664
|
}), z(d, a.chosenClass, !0);
|
|
665
|
-
}, a.ignore.split(",").forEach(function(
|
|
666
|
-
Ft(d,
|
|
665
|
+
}, a.ignore.split(",").forEach(function(c) {
|
|
666
|
+
Ft(d, c.trim(), ot);
|
|
667
667
|
}), _(l, "dragover", ae), _(l, "mousemove", ae), _(l, "touchmove", ae), a.supportPointer ? (_(l, "pointerup", r._onDrop), !this.nativeDraggable && _(l, "pointercancel", r._onDrop)) : (_(l, "mouseup", r._onDrop), _(l, "touchend", r._onDrop), _(l, "touchcancel", r._onDrop)), St && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), R("delayStart", this, {
|
|
668
668
|
evt: e
|
|
669
669
|
}), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(xe || Z))) {
|
|
@@ -734,23 +734,23 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
734
734
|
},
|
|
735
735
|
_onTouchMove: function(e) {
|
|
736
736
|
if (ie) {
|
|
737
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && ge(m, !0), l = m && a && a.a, s = m && a && a.d, u = Ye && M && Ct(M),
|
|
737
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && ge(m, !0), l = m && a && a.a, s = m && a && a.d, u = Ye && M && Ct(M), c = (i.clientX - ie.clientX + r.x) / (l || 1) + (u ? u[0] - nt[0] : 0) / (l || 1), f = (i.clientY - ie.clientY + r.y) / (s || 1) + (u ? u[1] - nt[1] : 0) / (s || 1);
|
|
738
738
|
if (!g.active && !he) {
|
|
739
739
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
|
|
740
740
|
return;
|
|
741
741
|
this._onDragStart(e, !0);
|
|
742
742
|
}
|
|
743
743
|
if (m) {
|
|
744
|
-
a ? (a.e +=
|
|
744
|
+
a ? (a.e += c - (et || 0), a.f += f - (tt || 0)) : a = {
|
|
745
745
|
a: 1,
|
|
746
746
|
b: 0,
|
|
747
747
|
c: 0,
|
|
748
748
|
d: 1,
|
|
749
|
-
e:
|
|
750
|
-
f
|
|
749
|
+
e: c,
|
|
750
|
+
f
|
|
751
751
|
};
|
|
752
752
|
var y = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
753
|
-
p(m, "webkitTransform", y), p(m, "mozTransform", y), p(m, "msTransform", y), p(m, "transform", y), et =
|
|
753
|
+
p(m, "webkitTransform", y), p(m, "mozTransform", y), p(m, "msTransform", y), p(m, "transform", y), et = c, tt = f, W = i;
|
|
754
754
|
}
|
|
755
755
|
e.cancelable && e.preventDefault();
|
|
756
756
|
}
|
|
@@ -783,17 +783,17 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
783
783
|
},
|
|
784
784
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
785
785
|
_onDragOver: function(e) {
|
|
786
|
-
var t = this.el, n = e.target, r, i, a, l = this.options, s = l.group, u = g.active,
|
|
786
|
+
var t = this.el, n = e.target, r, i, a, l = this.options, s = l.group, u = g.active, c = Re === s, f = l.sort, y = N || u, h, v = this, b = !1;
|
|
787
787
|
if (st) return;
|
|
788
788
|
function D(_e, $t) {
|
|
789
789
|
R(_e, v, j({
|
|
790
790
|
evt: e,
|
|
791
|
-
isOwner:
|
|
791
|
+
isOwner: c,
|
|
792
792
|
axis: h ? "vertical" : "horizontal",
|
|
793
793
|
revert: a,
|
|
794
794
|
dragRect: r,
|
|
795
795
|
targetRect: i,
|
|
796
|
-
canSort:
|
|
796
|
+
canSort: f,
|
|
797
797
|
fromSortable: y,
|
|
798
798
|
target: n,
|
|
799
799
|
completed: O,
|
|
@@ -809,9 +809,9 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
809
809
|
function O(_e) {
|
|
810
810
|
return D("dragOverCompleted", {
|
|
811
811
|
insertion: _e
|
|
812
|
-
}), _e && (
|
|
812
|
+
}), _e && (c ? u._hideClone() : u._showClone(v), v !== y && (z(d, N ? N.options.ghostClass : u.options.ghostClass, !1), z(d, l.ghostClass, !0)), N !== v && v !== g.active ? N = v : v === g.active && N && (N = null), y === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
|
|
813
813
|
D("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
814
|
-
}), v !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (n === d && !d.animated || n === t && !n.animated) && (
|
|
814
|
+
}), v !== y && (y.animateAll(), y._ignoreWhileAnimating = null)), (n === d && !d.animated || n === t && !n.animated) && (ce = null), !l.dragoverBubble && !e.rootEl && n !== document && (d.parentNode[X]._isOutsideThisEl(e.target), !_e && ae(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), b = !0;
|
|
815
815
|
}
|
|
816
816
|
function F() {
|
|
817
817
|
H = L(d), ee = L(d, l.draggable), k({
|
|
@@ -826,7 +826,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
826
826
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = G(n, l.draggable, t, !0), D("dragOver"), g.eventCanceled) return b;
|
|
827
827
|
if (d.contains(e.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
|
|
828
828
|
return O(!1);
|
|
829
|
-
if (je = !1, u && !l.disabled && (
|
|
829
|
+
if (je = !1, u && !l.disabled && (c ? f || (a = T !== E) : N === this || (this.lastPutMode = Re.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
830
830
|
if (h = this._getDirection(e, n) === "vertical", r = I(d), D("dragOverValid"), g.eventCanceled) return b;
|
|
831
831
|
if (a)
|
|
832
832
|
return T = E, P(), this._hideClone(), D("revert"), g.eventCanceled || (le ? E.insertBefore(d, le) : E.appendChild(d)), O(!0);
|
|
@@ -845,7 +845,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
845
845
|
} else if (n.parentNode === t) {
|
|
846
846
|
i = I(n);
|
|
847
847
|
var Y = 0, oe, ve = d.parentNode !== t, B = !gn(d.animated && d.toRect || r, n.animated && n.toRect || i, h), be = h ? "top" : "left", Q = Tt(n, "top", "top") || Tt(d, "top", "top"), ye = Q ? Q.scrollTop : void 0;
|
|
848
|
-
|
|
848
|
+
ce !== n && (oe = i[be], Ae = !1, Xe = !B && l.invertSwap || ve), Y = En(e, n, i, h, B ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Xe, ce === n);
|
|
849
849
|
var V;
|
|
850
850
|
if (Y !== 0) {
|
|
851
851
|
var re = L(d);
|
|
@@ -855,7 +855,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
855
855
|
}
|
|
856
856
|
if (Y === 0 || V === n)
|
|
857
857
|
return O(!1);
|
|
858
|
-
|
|
858
|
+
ce = n, Pe = Y;
|
|
859
859
|
var we = n.nextElementSibling, J = !1;
|
|
860
860
|
J = Y === 1;
|
|
861
861
|
var Me = Be(E, t, d, r, n, i, e, J);
|
|
@@ -930,7 +930,7 @@ g.prototype = /** @lends Sortable.prototype */
|
|
|
930
930
|
}), this.save()))), this._nulling();
|
|
931
931
|
},
|
|
932
932
|
_nulling: function() {
|
|
933
|
-
R("nulling", this), E = d = T = m = le = S = He = te = ie = W = Se = H = ee = pe = Oe =
|
|
933
|
+
R("nulling", this), E = d = T = m = le = S = He = te = ie = W = Se = H = ee = pe = Oe = ce = Pe = N = Re = g.dragged = g.ghost = g.clone = g.active = null, qe.forEach(function(e) {
|
|
934
934
|
e.checked = !0;
|
|
935
935
|
}), qe.length = et = tt = 0;
|
|
936
936
|
},
|
|
@@ -1031,11 +1031,11 @@ function bn(o) {
|
|
|
1031
1031
|
o.dataTransfer && (o.dataTransfer.dropEffect = "move"), o.cancelable && o.preventDefault();
|
|
1032
1032
|
}
|
|
1033
1033
|
function Be(o, e, t, n, r, i, a, l) {
|
|
1034
|
-
var s, u = o[X],
|
|
1034
|
+
var s, u = o[X], c = u.options.onMove, f;
|
|
1035
1035
|
return window.CustomEvent && !Z && !xe ? s = new CustomEvent("move", {
|
|
1036
1036
|
bubbles: !0,
|
|
1037
1037
|
cancelable: !0
|
|
1038
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = t, s.draggedRect = n, s.related = r || e, s.relatedRect = i || I(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s),
|
|
1038
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = o, s.dragged = t, s.draggedRect = n, s.related = r || e, s.relatedRect = i || I(e), s.willInsertAfter = l, s.originalEvent = a, o.dispatchEvent(s), c && (f = c.call(u, s, a)), f;
|
|
1039
1039
|
}
|
|
1040
1040
|
function ot(o) {
|
|
1041
1041
|
o.draggable = !1;
|
|
@@ -1052,17 +1052,17 @@ function _n(o, e, t) {
|
|
|
1052
1052
|
return e ? o.clientX > r.right + i || o.clientY > n.bottom && o.clientX > n.left : o.clientY > r.bottom + i || o.clientX > n.right && o.clientY > n.top;
|
|
1053
1053
|
}
|
|
1054
1054
|
function En(o, e, t, n, r, i, a, l) {
|
|
1055
|
-
var s = n ? o.clientY : o.clientX, u = n ? t.height : t.width,
|
|
1055
|
+
var s = n ? o.clientY : o.clientX, u = n ? t.height : t.width, c = n ? t.top : t.left, f = n ? t.bottom : t.right, y = !1;
|
|
1056
1056
|
if (!a) {
|
|
1057
1057
|
if (l && Le < u * r) {
|
|
1058
|
-
if (!Ae && (Pe === 1 ? s >
|
|
1058
|
+
if (!Ae && (Pe === 1 ? s > c + u * i / 2 : s < f - u * i / 2) && (Ae = !0), Ae)
|
|
1059
1059
|
y = !0;
|
|
1060
|
-
else if (Pe === 1 ? s <
|
|
1060
|
+
else if (Pe === 1 ? s < c + Le : s > f - Le)
|
|
1061
1061
|
return -Pe;
|
|
1062
|
-
} else if (s >
|
|
1062
|
+
} else if (s > c + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1063
1063
|
return Sn(e);
|
|
1064
1064
|
}
|
|
1065
|
-
return y = y || a, y && (s <
|
|
1065
|
+
return y = y || a, y && (s < c + u * i / 2 || s > f - u * i / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
|
1066
1066
|
}
|
|
1067
1067
|
function Sn(o) {
|
|
1068
1068
|
return L(d) < L(o) ? 1 : -1;
|
|
@@ -1124,7 +1124,7 @@ g.create = function(o, e) {
|
|
|
1124
1124
|
return new g(o, e);
|
|
1125
1125
|
};
|
|
1126
1126
|
g.version = rn;
|
|
1127
|
-
var C = [], De, dt,
|
|
1127
|
+
var C = [], De, dt, ft = !1, rt, it, Ue, Te;
|
|
1128
1128
|
function Cn() {
|
|
1129
1129
|
function o() {
|
|
1130
1130
|
this.defaults = {
|
|
@@ -1150,7 +1150,7 @@ function Cn() {
|
|
|
1150
1150
|
this.sortable.nativeDraggable ? w(document, "dragover", this._handleAutoScroll) : (w(document, "pointermove", this._handleFallbackAutoScroll), w(document, "touchmove", this._handleFallbackAutoScroll), w(document, "mousemove", this._handleFallbackAutoScroll)), At(), Ge(), sn();
|
|
1151
1151
|
},
|
|
1152
1152
|
nulling: function() {
|
|
1153
|
-
Ue = dt = De =
|
|
1153
|
+
Ue = dt = De = ft = Te = rt = it = null, C.length = 0;
|
|
1154
1154
|
},
|
|
1155
1155
|
_handleFallbackAutoScroll: function(t) {
|
|
1156
1156
|
this._handleAutoScroll(t, !0);
|
|
@@ -1160,7 +1160,7 @@ function Cn() {
|
|
|
1160
1160
|
if (Ue = t, n || this.options.forceAutoScrollFallback || xe || Z || Ce) {
|
|
1161
1161
|
at(t, this.options, l, n);
|
|
1162
1162
|
var s = ne(l, !0);
|
|
1163
|
-
|
|
1163
|
+
ft && (!Te || i !== rt || a !== it) && (Te && At(), Te = setInterval(function() {
|
|
1164
1164
|
var u = ne(document.elementFromPoint(i, a), !0);
|
|
1165
1165
|
u !== s && (s = u, Ge()), at(t, r.options, u, n);
|
|
1166
1166
|
}, 10), rt = i, it = a);
|
|
@@ -1187,33 +1187,33 @@ function At() {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
var at = kt(function(o, e, t, n) {
|
|
1189
1189
|
if (e.scroll) {
|
|
1190
|
-
var r = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = $(), u = !1,
|
|
1191
|
-
dt !== t && (dt = t, Ge(), De = e.scroll,
|
|
1192
|
-
var
|
|
1190
|
+
var r = (o.touches ? o.touches[0] : o).clientX, i = (o.touches ? o.touches[0] : o).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = $(), u = !1, c;
|
|
1191
|
+
dt !== t && (dt = t, Ge(), De = e.scroll, c = e.scrollFn, De === !0 && (De = ne(t, !0)));
|
|
1192
|
+
var f = 0, y = De;
|
|
1193
1193
|
do {
|
|
1194
1194
|
var h = y, v = I(h), b = v.top, D = v.bottom, P = v.left, O = v.right, F = v.width, A = v.height, x = void 0, Y = void 0, oe = h.scrollWidth, ve = h.scrollHeight, B = p(h), be = h.scrollLeft, Q = h.scrollTop;
|
|
1195
1195
|
h === s ? (x = F < oe && (B.overflowX === "auto" || B.overflowX === "scroll" || B.overflowX === "visible"), Y = A < ve && (B.overflowY === "auto" || B.overflowY === "scroll" || B.overflowY === "visible")) : (x = F < oe && (B.overflowX === "auto" || B.overflowX === "scroll"), Y = A < ve && (B.overflowY === "auto" || B.overflowY === "scroll"));
|
|
1196
1196
|
var ye = x && (Math.abs(O - r) <= a && be + F < oe) - (Math.abs(P - r) <= a && !!be), V = Y && (Math.abs(D - i) <= a && Q + A < ve) - (Math.abs(b - i) <= a && !!Q);
|
|
1197
|
-
if (!C[
|
|
1198
|
-
for (var re = 0; re <=
|
|
1197
|
+
if (!C[f])
|
|
1198
|
+
for (var re = 0; re <= f; re++)
|
|
1199
1199
|
C[re] || (C[re] = {});
|
|
1200
|
-
(C[
|
|
1200
|
+
(C[f].vx != ye || C[f].vy != V || C[f].el !== h) && (C[f].el = h, C[f].vx = ye, C[f].vy = V, clearInterval(C[f].pid), (ye != 0 || V != 0) && (u = !0, C[f].pid = setInterval((function() {
|
|
1201
1201
|
n && this.layer === 0 && g.active._onTouchMove(Ue);
|
|
1202
1202
|
var we = C[this.layer].vy ? C[this.layer].vy * l : 0, J = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1203
|
-
typeof
|
|
1203
|
+
typeof c == "function" && c.call(g.dragged.parentNode[X], J, we, o, Ue, C[this.layer].el) !== "continue" || Rt(C[this.layer].el, J, we);
|
|
1204
1204
|
}).bind({
|
|
1205
|
-
layer:
|
|
1206
|
-
}), 24))),
|
|
1205
|
+
layer: f
|
|
1206
|
+
}), 24))), f++;
|
|
1207
1207
|
} while (e.bubbleScroll && y !== s && (y = ne(y, !1)));
|
|
1208
|
-
|
|
1208
|
+
ft = u;
|
|
1209
1209
|
}
|
|
1210
1210
|
}, 30), Gt = function(e) {
|
|
1211
1211
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1212
1212
|
if (t) {
|
|
1213
1213
|
var u = n || i;
|
|
1214
1214
|
l();
|
|
1215
|
-
var
|
|
1216
|
-
s(), u && !u.el.contains(
|
|
1215
|
+
var c = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, f = document.elementFromPoint(c.clientX, c.clientY);
|
|
1216
|
+
s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
|
|
1217
1217
|
dragEl: r,
|
|
1218
1218
|
putSortable: n
|
|
1219
1219
|
}));
|
|
@@ -1316,19 +1316,22 @@ const In = { class: "g-table" }, On = { key: 1 }, Pn = { class: "g-dropdown-link
|
|
|
1316
1316
|
/**
|
|
1317
1317
|
* @description 当前页改变时触发,返回当前页号
|
|
1318
1318
|
* @version 0.1.5
|
|
1319
|
-
* @
|
|
1319
|
+
* @param {number} value - 当前页码
|
|
1320
|
+
* @example 1
|
|
1320
1321
|
*/
|
|
1321
1322
|
"update:currentPage": (o) => !0,
|
|
1322
1323
|
/**
|
|
1323
1324
|
* @description 当前页改变时触发,返回当前页号
|
|
1324
1325
|
* @version 0.1.5
|
|
1325
|
-
* @
|
|
1326
|
+
* @param {number} value - 每页条数
|
|
1327
|
+
* @example 10
|
|
1326
1328
|
*/
|
|
1327
1329
|
"update:pageSize": (o) => !0,
|
|
1328
1330
|
/**
|
|
1329
1331
|
* @description 拖动排序后,返回排序后的数组
|
|
1330
1332
|
* @version 0.1.5
|
|
1331
|
-
* @
|
|
1333
|
+
* @param {any[]} value - 排序后的数组
|
|
1334
|
+
* @example ['id','name']
|
|
1332
1335
|
*/
|
|
1333
1336
|
"sorted:data": (o) => !0
|
|
1334
1337
|
},
|
|
@@ -1344,12 +1347,12 @@ const In = { class: "g-table" }, On = { key: 1 }, Pn = { class: "g-dropdown-link
|
|
|
1344
1347
|
return h + 1 + D * (P - 1);
|
|
1345
1348
|
}
|
|
1346
1349
|
return h;
|
|
1347
|
-
},
|
|
1348
|
-
let
|
|
1350
|
+
}, c = vt(null);
|
|
1351
|
+
let f = vt(null);
|
|
1349
1352
|
const y = () => {
|
|
1350
|
-
if (
|
|
1353
|
+
if (c.value)
|
|
1351
1354
|
try {
|
|
1352
|
-
const h =
|
|
1355
|
+
const h = c.value.$el.querySelectorAll("tbody");
|
|
1353
1356
|
let v = null;
|
|
1354
1357
|
for (let b = 0; b < h.length; b++) {
|
|
1355
1358
|
const D = h[b];
|
|
@@ -1362,7 +1365,7 @@ const In = { class: "g-table" }, On = { key: 1 }, Pn = { class: "g-dropdown-link
|
|
|
1362
1365
|
console.error("未找到包含数据行的 tbody 元素");
|
|
1363
1366
|
return;
|
|
1364
1367
|
}
|
|
1365
|
-
|
|
1368
|
+
f.value && f.value?.destroy?.(), f.value = new g(v, {
|
|
1366
1369
|
// 拖拽的元素选择器
|
|
1367
1370
|
draggable: "tr",
|
|
1368
1371
|
// 拖拽的触发元素选择器
|
|
@@ -1418,7 +1421,7 @@ const In = { class: "g-table" }, On = { key: 1 }, Pn = { class: "g-dropdown-link
|
|
|
1418
1421
|
}, h.$attrs, {
|
|
1419
1422
|
stripe: "",
|
|
1420
1423
|
ref_key: "tableRef",
|
|
1421
|
-
ref:
|
|
1424
|
+
ref: c
|
|
1422
1425
|
}), {
|
|
1423
1426
|
empty: q(() => [
|
|
1424
1427
|
h.$slots.empty ? Ee(h.$slots, "empty", { key: 0 }, void 0, !0) : (ue(), bt("span", On, "暂无数据"))
|
|
@@ -1501,7 +1504,7 @@ const In = { class: "g-table" }, On = { key: 1 }, Pn = { class: "g-dropdown-link
|
|
|
1501
1504
|
]);
|
|
1502
1505
|
};
|
|
1503
1506
|
}
|
|
1504
|
-
}), lt = /* @__PURE__ */ en(An, [["__scopeId", "data-v-
|
|
1507
|
+
}), lt = /* @__PURE__ */ en(An, [["__scopeId", "data-v-adf99c3a"]]);
|
|
1505
1508
|
lt.install = (o) => {
|
|
1506
1509
|
o.component(lt.name, lt);
|
|
1507
1510
|
};
|
package/lib/GTable/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.g-table[data-v-
|
|
1
|
+
@charset "UTF-8";.g-table[data-v-adf99c3a]{width:100%}.g-table .g-dropdown-link[data-v-adf99c3a]{cursor:pointer;color:var(--el-color-primary);display:flex;align-items:center;padding:2px;font-size:12px;margin-left:12px;outline:none;border:none}.g-table .g-dropdown-link[data-v-adf99c3a]:hover{color:var(--el-color-primary-light-5);outline:none;border:none}.g-table .g-dropdown-link[data-v-adf99c3a]:focus{outline:none;border:none}.g-table[data-v-adf99c3a] .el-dropdown-menu__item,.g-table[data-v-adf99c3a] .el-dropdown-menu__item:hover{outline:none;border:none}.g-table .g-pagination-contianer[data-v-adf99c3a]{margin-top:10px}.g-table .g-drag-icon[data-v-adf99c3a]{color:#909399;font-size:18px;transition:color .2s;cursor:move;position:absolute;top:12px}.g-table .g-drag-icon[data-v-adf99c3a]:hover{color:var(--el-color-primary)}
|
package/lib/index/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../GCount/index.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../GCount/index.js"),u=require("../GPercent/index.js"),l=require("../GDialog/index.js"),n=require("../GTable/index.js"),a=require("../GVideo/index.js"),r=require("../GBubble/index.js"),t={GCount:o.default,GPercent:u.default,GDialog:l.default,GTable:n.default,GVideo:a.default,GBubble:r.default},i=c=>{Object.keys(t).forEach(d=>{const e=t[d];c.component(e.name,e)})},G={install:i};exports.GCount=o.default;exports.GPercent=u.default;exports.GDialog=l.default;exports.GTable=n.default;exports.GVideo=a.default;exports.GBubble=r.default;exports.default=G;
|
package/lib/index/index.mjs
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import r from "../GCount/index.mjs";
|
|
2
|
+
import e from "../GPercent/index.mjs";
|
|
3
3
|
import c from "../GDialog/index.mjs";
|
|
4
4
|
import i from "../GTable/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
import p from "../GVideo/index.mjs";
|
|
6
|
+
import s from "../GBubble/index.mjs";
|
|
7
|
+
const t = { GCount: r, GPercent: e, GDialog: c, GTable: i, GVideo: p, GBubble: s }, a = (m) => {
|
|
8
|
+
Object.keys(t).forEach((n) => {
|
|
9
|
+
const o = t[n];
|
|
10
|
+
m.component(o.name, o);
|
|
10
11
|
});
|
|
11
|
-
},
|
|
12
|
+
}, x = { install: a };
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
s as GBubble,
|
|
15
|
+
r as GCount,
|
|
14
16
|
c as GDialog,
|
|
15
|
-
|
|
17
|
+
e as GPercent,
|
|
16
18
|
i as GTable,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
p as GVideo,
|
|
20
|
+
x as default
|
|
19
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geekin-devtoys",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"author": "leon",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "geekin-devtoys组件库",
|
|
@@ -37,6 +37,14 @@
|
|
|
37
37
|
"import": "./lib/index/style.css",
|
|
38
38
|
"require": "./lib/index/style.css"
|
|
39
39
|
},
|
|
40
|
+
"./GBubble": {
|
|
41
|
+
"import": "./lib/GBubble/index.mjs",
|
|
42
|
+
"require": "./lib/GBubble/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./GBubble/style": {
|
|
45
|
+
"import": "./lib/GBubble/style.css",
|
|
46
|
+
"require": "./lib/GBubble/style.css"
|
|
47
|
+
},
|
|
40
48
|
"./GCount": {
|
|
41
49
|
"import": "./lib/GCount/index.mjs",
|
|
42
50
|
"require": "./lib/GCount/index.js"
|