ep-lib-ts 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BgAudio-CYb5KE4e.js +4 -0
- package/dist/Details-l0QohhKF.js +4 -0
- package/dist/DisplayBox-CvOsk1JY.js +4 -0
- package/dist/{Ep360Image-CQJBPImD.js → Ep360Image-DHK_IWTi.js} +1 -1
- package/dist/{Ep360Video-CL_7mOiQ.js → Ep360Video-C4PekHTc.js} +1 -1
- package/dist/EpAlert-DeqgXnQO.js +4 -0
- package/dist/EpAudio-DoISeqN2.js +4 -0
- package/dist/EpAvatar-BXRUSwI6.js +4 -0
- package/dist/EpBadge-Bddwjyp7.js +4 -0
- package/dist/EpBarChart-CKlw78WS.js +4 -0
- package/dist/EpBtn-zaFgtcS3.js +4 -0
- package/dist/EpCard-BjC1KgGN.js +4 -0
- package/dist/EpCardLink-C3jcT4P7.js +4 -0
- package/dist/EpChip-XHI5vZ2C.js +4 -0
- package/dist/EpCodeblock-C6pJlyC1.js +4 -0
- package/dist/EpConclusion-DujmCuG5.js +4 -0
- package/dist/EpContentSlider-D6O-G2BS.js +4 -0
- package/dist/{EpDarkmode-DKSyFe8_.js → EpDarkmode-BPniecbD.js} +1 -1
- package/dist/EpDescription-DLVHr4_W.js +4 -0
- package/dist/EpDivider-hbHIHTdr.js +4 -0
- package/dist/EpDocument-D5ES1bRu.js +4 -0
- package/dist/{EpDraggable-B6I1LZM8.js → EpDraggable-Bz-XSfgs.js} +46 -46
- package/dist/EpEdu-CuPLvCe6.js +4 -0
- package/dist/EpFlex-Bx_eqlzL.js +4 -0
- package/dist/EpFunnelChart-CgsIcyps.js +4 -0
- package/dist/EpHeader-C8sYMEC0.js +4 -0
- package/dist/EpHover-cnkHN1M-.js +4 -0
- package/dist/EpHoverCard-DppNEf64.js +4 -0
- package/dist/EpIcon-BCqr5Ot1.js +4 -0
- package/dist/EpIframe-DUxN35fn.js +4 -0
- package/dist/EpImg-ClNWe5kJ.js +4 -0
- package/dist/EpImgCarousel-D-iXPu4z.js +4 -0
- package/dist/{EpInput-BLfdye3a.js → EpInput-Bm2JshuU.js} +29 -29
- package/dist/EpInstructions-Dc4q_QjZ.js +4 -0
- package/dist/EpIntroduction-DM0Q0E0T.js +4 -0
- package/dist/EpLineChart-CIvYN1Yp.js +4 -0
- package/dist/EpLink-IHkB-w_Q.js +4 -0
- package/dist/EpLinkVersion-BqUZONE9.js +4 -0
- package/dist/{EpList-snrOZLuu.js → EpList-BnNtdYvW.js} +1 -1
- package/dist/EpModal-gQSRYF2n.js +4 -0
- package/dist/{EpNothing-ChU4qO5j.js → EpNothing-GmXIbWfZ.js} +1 -1
- package/dist/EpObjective-Csros8eb.js +4 -0
- package/dist/EpPieChart-BXx3RcRW.js +4 -0
- package/dist/EpQuestion-BiJQuKyu.js +4 -0
- package/dist/EpQuote-Ch1GZ1ji.js +4 -0
- package/dist/EpRadio-BjtStIXT.js +4 -0
- package/dist/EpRadioSummative-BVZGSygu.js +4 -0
- package/dist/EpReading-x-r9mYNT.js +4 -0
- package/dist/EpResource-BMMvkWBG.js +4 -0
- package/dist/EpScope-CsBXs1FV.js +4 -0
- package/dist/EpSection-CyMCPG5c.js +4 -0
- package/dist/EpSectionCols-Du1wc6V4.js +4 -0
- package/dist/EpSkeleton-ZkC-P6qW.js +4 -0
- package/dist/EpSoftware-TbJthBnR.js +4 -0
- package/dist/EpSpecificObjective-gmLoa00z.js +4 -0
- package/dist/EpSpinner-PlbKZST4.js +4 -0
- package/dist/EpStackedList-CC6NU2sF.js +4 -0
- package/dist/EpSummativeTable-DiiLAX4L.js +4 -0
- package/dist/EpSvg-CsJKW3j6.js +4 -0
- package/dist/EpSvgShow-BM6RFmzm.js +4 -0
- package/dist/EpTable-BhrO8hKV.js +4 -0
- package/dist/EpTerm-Deo_xUAB.js +4 -0
- package/dist/EpText-CkXF6fqe.js +4 -0
- package/dist/EpTimeLine-D6xKVMfz.js +4 -0
- package/dist/EpVideo-BlTilyoX.js +4 -0
- package/dist/EpVideoPanopto-CZjYmJKA.js +4 -0
- package/dist/EpWordDef-gjtO1h3X.js +4 -0
- package/dist/TextMedia-BEyaaSK_.js +4 -0
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +43 -6
- package/dist/components/educationals/EpDocument.vue.d.ts +44 -0
- package/dist/components/medias/EpHierarchy.vue.d.ts +51 -0
- package/dist/components/medias/EpSoftware.vue.d.ts +0 -1
- package/dist/components/tools/Details.vue.d.ts +3 -1
- package/dist/components/tools/{TextImg.vue.d.ts → TextMedia.vue.d.ts} +3 -2
- package/dist/ep-lib-ts.js +41 -39
- package/dist/ep-lib-ts.umd.cjs +212 -212
- package/dist/{index-D6RVSyf7.js → index-Cb4ZFiWj.js} +10899 -8250
- package/dist/{index-QY-UvpNr.js → index-bqynSyW7.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/{prism-Cv4D8Rjm.js → prism-CeEvbe3m.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{three.module-CWLs6nMo.js → three.module-B-oqC8Xk.js} +1 -1
- package/dist/types/Component.d.ts +7 -0
- package/dist/types/Hierarchy.d.ts +14 -0
- package/package.json +11 -1
- package/src/components/basics/EpBtn.vue +1 -1
- package/src/components/educationals/EpBranchingScenario.vue +202 -172
- package/src/components/educationals/EpDocument.vue +92 -0
- package/src/components/interactions/EpContentSlider.vue +1 -1
- package/src/components/medias/EpHierarchy.vue +345 -0
- package/src/components/medias/EpSoftware.vue +1 -2
- package/src/components/tools/Details.vue +8 -10
- package/src/components/tools/TextMedia.vue +34 -0
- package/dist/BgAudio-CFZeS_dQ.js +0 -4
- package/dist/Details-D_yxeUuE.js +0 -4
- package/dist/DisplayBox-D8hlc9Gn.js +0 -4
- package/dist/EpAlert-RMp39gBY.js +0 -4
- package/dist/EpAudio-VXqSaCc0.js +0 -4
- package/dist/EpAvatar-CoBsHAyN.js +0 -4
- package/dist/EpBadge-Di0ORWOa.js +0 -4
- package/dist/EpBarChart-D0FaZPGz.js +0 -4
- package/dist/EpBtn-D5wu8yT7.js +0 -4
- package/dist/EpCard-Drdckmbx.js +0 -4
- package/dist/EpCardLink-DUGjSAGF.js +0 -4
- package/dist/EpChip-DDochFMT.js +0 -4
- package/dist/EpCodeblock-BjxiWHoc.js +0 -4
- package/dist/EpConclusion-CXoGHiG1.js +0 -4
- package/dist/EpContentSlider-HBkmUIw5.js +0 -4
- package/dist/EpDescription-BmRR6d2p.js +0 -4
- package/dist/EpDivider-BALEThPk.js +0 -4
- package/dist/EpEdu-D7erj5ED.js +0 -4
- package/dist/EpFlex-CdriG_tC.js +0 -4
- package/dist/EpFunnelChart-HVjlJWQd.js +0 -4
- package/dist/EpHeader-Bl4162yt.js +0 -4
- package/dist/EpHover-CVY1squO.js +0 -4
- package/dist/EpHoverCard-BIuPau4X.js +0 -4
- package/dist/EpIcon-DsCeMM28.js +0 -4
- package/dist/EpIframe-Cz5g1BYb.js +0 -4
- package/dist/EpImg-Ccr76yR5.js +0 -4
- package/dist/EpImgCarousel-Ddz1Ur0L.js +0 -4
- package/dist/EpInstructions-B-b52LnB.js +0 -4
- package/dist/EpIntroduction-DEaiE8_Q.js +0 -4
- package/dist/EpLineChart-CJ28vhHx.js +0 -4
- package/dist/EpLink-DRGrCSOs.js +0 -4
- package/dist/EpLinkVersion-DJcPV4xm.js +0 -4
- package/dist/EpModal-m4szNip0.js +0 -4
- package/dist/EpObjective-CAXtephy.js +0 -4
- package/dist/EpPieChart-B3l-Y3E9.js +0 -4
- package/dist/EpQuestion-CrXTzzzu.js +0 -4
- package/dist/EpQuote-Dc-IZjOX.js +0 -4
- package/dist/EpRadio-CA0CASuz.js +0 -4
- package/dist/EpRadioSummative-Bm2JDs6z.js +0 -4
- package/dist/EpReading-BNArWsC2.js +0 -4
- package/dist/EpResource-Bx1G7Dlz.js +0 -4
- package/dist/EpScope-CB6RuO3X.js +0 -4
- package/dist/EpSection-BUBgMeo9.js +0 -4
- package/dist/EpSectionCols-rigTAR3l.js +0 -4
- package/dist/EpSkeleton-B9HFmS5A.js +0 -4
- package/dist/EpSoftware-CK9VPoFF.js +0 -4
- package/dist/EpSpecificObjective-Dm-H_StM.js +0 -4
- package/dist/EpSpinner-Br8tW9f2.js +0 -4
- package/dist/EpStackedList-By0U0h1R.js +0 -4
- package/dist/EpSummativeTable-Czo4hRQq.js +0 -4
- package/dist/EpSvg-BVV9GJ09.js +0 -4
- package/dist/EpSvgShow-DSPDvQlK.js +0 -4
- package/dist/EpTable-CNPciiRt.js +0 -4
- package/dist/EpTerm-BjD-0L65.js +0 -4
- package/dist/EpText-8IGa40sW.js +0 -4
- package/dist/EpTimeLine-D5R81tuv.js +0 -4
- package/dist/EpVideo-v6GnvLIU.js +0 -4
- package/dist/EpVideoPanopto-BWVr3ji1.js +0 -4
- package/dist/EpWordDef-QB2ioxjp.js +0 -4
- package/dist/TextImg-B_cSkkBi.js +0 -4
- package/src/components/tools/TextImg.vue +0 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as p, onMounted as $, createElementBlock as u, openBlock as d, createElementVNode as r, createCommentVNode as b, Fragment as _, renderList as j } from "vue";
|
|
2
|
-
import { V as x, Q as q } from "./three.module-
|
|
2
|
+
import { V as x, Q as q } from "./three.module-B-oqC8Xk.js";
|
|
3
3
|
const V = { style: { width: "800px", height: "600px", overflow: "hidden", position: "relative", margin: "auto" } }, W = ["id"], H = ["id", "src"], L = ["src"], B = ["position"], N = ["color", "material", "onClick", "onMouseenter"], z = ["position"], G = ["value"], J = ["value"], K = ["position"], U = ["value"], X = ["value"], ee = /* @__PURE__ */ T({
|
|
4
4
|
__name: "Ep360Image",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, ref as h, onMounted as T, createElementBlock as s, openBlock as l, createElementVNode as n, toDisplayString as W, createCommentVNode as x, Fragment as p, renderList as k } from "vue";
|
|
2
|
-
import { V as P, Q as H } from "./three.module-
|
|
2
|
+
import { V as P, Q as H } from "./three.module-B-oqC8Xk.js";
|
|
3
3
|
const I = { style: { width: "1200px", height: "800px", position: "relative", margin: "auto" } }, L = { embedded: "" }, B = ["id", "src"], N = ["src"], z = ["position"], G = ["color", "material", "onClick", "onMouseenter", "onMouseleave"], J = ["position"], K = ["value"], U = ["value"], X = ["position"], Y = ["value"], Z = ["value"], oe = /* @__PURE__ */ q({
|
|
4
4
|
__name: "Ep360Video",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as u, onMounted as p, createElementBlock as r, openBlock as n, createStaticVNode as m, createElementVNode as a } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { N as g } from "./index-Cb4ZFiWj.js";
|
|
3
3
|
const k = {
|
|
4
4
|
key: 0,
|
|
5
5
|
title: "Switch to light mode"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Rt, resolveComponent as Jt, h as bt, ref as ae, onMounted as en, onUnmounted as tn, computed as wt, createElementBlock as z, openBlock as H, createElementVNode as le, createVNode as qe, unref as Me, withCtx as yt, Fragment as _t, renderList as Et, toDisplayString as Dt, createBlock as nn, normalizeStyle as on, createCommentVNode as Ke } from "vue";
|
|
2
|
-
import { l as St,
|
|
2
|
+
import { l as St, O as rn, P as an } from "./index-Cb4ZFiWj.js";
|
|
3
3
|
/*!
|
|
4
4
|
* vue-draggable-next v2.2.0
|
|
5
5
|
* (c) 2023 Anish George
|
|
@@ -80,7 +80,7 @@ function K(t) {
|
|
|
80
80
|
if (typeof window < "u" && window.navigator)
|
|
81
81
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
82
82
|
}
|
|
83
|
-
var Q = K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
83
|
+
var Q = K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pe = K(/Edge/i), Tt = K(/firefox/i), xe = K(/safari/i) && !K(/chrome/i) && !K(/android/i), Xt = K(/iP(ad|od|hone)/i), dn = K(/chrome/i) && K(/android/i), Yt = {
|
|
84
84
|
capture: !1,
|
|
85
85
|
passive: !1
|
|
86
86
|
};
|
|
@@ -164,7 +164,7 @@ function G() {
|
|
|
164
164
|
var t = document.scrollingElement;
|
|
165
165
|
return t || document.documentElement;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function P(t, e, n, o, i) {
|
|
168
168
|
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
169
169
|
var r, a, l, s, u, f, d;
|
|
170
170
|
if (t !== window && t.parentNode && t !== G() ? (r = t.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, d = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, d = window.innerWidth), (e || n) && t !== window && (i = i || t.parentNode, !Q))
|
|
@@ -190,8 +190,8 @@ function A(t, e, n, o, i) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
function It(t, e, n) {
|
|
193
|
-
for (var o = oe(t, !0), i =
|
|
194
|
-
var r =
|
|
193
|
+
for (var o = oe(t, !0), i = P(t)[e]; o; ) {
|
|
194
|
+
var r = P(o)[n], a = void 0;
|
|
195
195
|
if (a = i >= r, !a) return o;
|
|
196
196
|
if (o === G()) break;
|
|
197
197
|
o = oe(o, !1);
|
|
@@ -295,7 +295,7 @@ function mn() {
|
|
|
295
295
|
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
296
296
|
t.push({
|
|
297
297
|
target: i,
|
|
298
|
-
rect:
|
|
298
|
+
rect: P(i)
|
|
299
299
|
});
|
|
300
300
|
var r = U({}, t[t.length - 1].rect);
|
|
301
301
|
if (i.thisAnimationDuration) {
|
|
@@ -323,7 +323,7 @@ function mn() {
|
|
|
323
323
|
}
|
|
324
324
|
var r = !1, a = 0;
|
|
325
325
|
t.forEach(function(l) {
|
|
326
|
-
var s = 0, u = l.target, f = u.fromRect, d =
|
|
326
|
+
var s = 0, u = l.target, f = u.fromRect, d = P(u), v = u.prevFromRect, _ = u.prevToRect, m = l.rect, w = ge(u, !0);
|
|
327
327
|
w && (d.top -= w.f, d.left -= w.e), u.toRect = d, u.thisAnimationDuration && Ze(v, d) && !Ze(f, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
328
328
|
(m.top - d.top) / (m.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = bn(m, v, _, i.options)), Ze(d, f) || (u.prevFromRect = f, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, m, d, s)), s && (r = !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;
|
|
@@ -351,7 +351,7 @@ function bn(t, e, n, o) {
|
|
|
351
351
|
}
|
|
352
352
|
var de = [], Qe = {
|
|
353
353
|
initializeByDefault: !0
|
|
354
|
-
},
|
|
354
|
+
}, Ae = {
|
|
355
355
|
mount: function(e) {
|
|
356
356
|
for (var n in Qe)
|
|
357
357
|
Qe.hasOwnProperty(n) && !(n in e) && (e[n] = Qe[n]);
|
|
@@ -405,11 +405,11 @@ function wn(t) {
|
|
|
405
405
|
var e = t.sortable, n = t.rootEl, o = t.name, i = t.targetEl, r = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, d = t.newDraggableIndex, v = t.originalEvent, _ = t.putSortable, m = t.extraEventProperties;
|
|
406
406
|
if (e = e || n && n[V], !!e) {
|
|
407
407
|
var w, L = e.options, E = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
408
|
-
window.CustomEvent && !Q && !
|
|
408
|
+
window.CustomEvent && !Q && !Pe ? w = new CustomEvent(o, {
|
|
409
409
|
bubbles: !0,
|
|
410
410
|
cancelable: !0
|
|
411
411
|
}) : (w = document.createEvent("Event"), w.initEvent(o, !0, !0)), w.to = a || n, w.from = l || n, w.item = i || n, w.clone = r, w.oldIndex = s, w.newIndex = u, w.oldDraggableIndex = f, w.newDraggableIndex = d, w.originalEvent = v, w.pullMode = _ ? _.lastPutMode : void 0;
|
|
412
|
-
var x = U(U({}, m),
|
|
412
|
+
var x = U(U({}, m), Ae.getEventProperties(o, e));
|
|
413
413
|
for (var T in x)
|
|
414
414
|
w[T] = x[T];
|
|
415
415
|
n && n.dispatchEvent(w), L[E] && L[E].call(e, w);
|
|
@@ -417,7 +417,7 @@ function wn(t) {
|
|
|
417
417
|
}
|
|
418
418
|
var yn = ["evt"], k = function(e, n) {
|
|
419
419
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = un(o, yn);
|
|
420
|
-
|
|
420
|
+
Ae.pluginEvent.bind(p)(e, n, U({
|
|
421
421
|
dragEl: c,
|
|
422
422
|
parentEl: C,
|
|
423
423
|
ghostEl: g,
|
|
@@ -427,7 +427,7 @@ var yn = ["evt"], k = function(e, n) {
|
|
|
427
427
|
cloneEl: I,
|
|
428
428
|
cloneHidden: ne,
|
|
429
429
|
dragStarted: Ee,
|
|
430
|
-
putSortable:
|
|
430
|
+
putSortable: A,
|
|
431
431
|
activeSortable: p.active,
|
|
432
432
|
originalEvent: i,
|
|
433
433
|
oldIndex: pe,
|
|
@@ -453,7 +453,7 @@ var yn = ["evt"], k = function(e, n) {
|
|
|
453
453
|
};
|
|
454
454
|
function F(t) {
|
|
455
455
|
wn(U({
|
|
456
|
-
putSortable:
|
|
456
|
+
putSortable: A,
|
|
457
457
|
cloneEl: I,
|
|
458
458
|
targetEl: c,
|
|
459
459
|
rootEl: S,
|
|
@@ -463,7 +463,7 @@ function F(t) {
|
|
|
463
463
|
newDraggableIndex: te
|
|
464
464
|
}, t));
|
|
465
465
|
}
|
|
466
|
-
var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe,
|
|
466
|
+
var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, A, he = !1, $e = !1, ze = [], se, $, Je, et, Pt, At, Ee, fe, Ie, Oe = !1, ke = !1, Be, M, tt = [], st = !1, We = [], Ue = typeof document < "u", Le = Xt, Nt = Pe || Q ? "cssFloat" : "float", _n = Ue && !dn && !Xt && "draggable" in document.createElement("div"), $t = function() {
|
|
467
467
|
if (Ue) {
|
|
468
468
|
if (Q)
|
|
469
469
|
return !1;
|
|
@@ -471,7 +471,7 @@ var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, P, he = !1, $e = !1, ze = [],
|
|
|
471
471
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
472
472
|
}
|
|
473
473
|
}(), zt = function(e, n) {
|
|
474
|
-
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = me(e, 0, n), a = me(e, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) +
|
|
474
|
+
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = me(e, 0, n), a = me(e, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + P(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + P(a).width;
|
|
475
475
|
if (o.display === "flex")
|
|
476
476
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
477
477
|
if (o.display === "grid")
|
|
@@ -489,7 +489,7 @@ var c, C, g, S, ce, Ye, I, ne, pe, B, Ce, te, Fe, P, he = !1, $e = !1, ze = [],
|
|
|
489
489
|
return ze.some(function(i) {
|
|
490
490
|
var r = i[V].options.emptyInsertThreshold;
|
|
491
491
|
if (!(!r || pt(i))) {
|
|
492
|
-
var a =
|
|
492
|
+
var a = P(i), l = e >= a.left - r && e <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
|
|
493
493
|
if (l && s)
|
|
494
494
|
return o = i;
|
|
495
495
|
}
|
|
@@ -586,7 +586,7 @@ function p(t, e) {
|
|
|
586
586
|
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !xe,
|
|
587
587
|
emptyInsertThreshold: 5
|
|
588
588
|
};
|
|
589
|
-
|
|
589
|
+
Ae.initializePlugins(this, t, n);
|
|
590
590
|
for (var o in n)
|
|
591
591
|
!(o in e) && (e[o] = n[o]);
|
|
592
592
|
Wt(e);
|
|
@@ -644,12 +644,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
644
644
|
_prepareDragStart: function(e, n, o) {
|
|
645
645
|
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
646
646
|
if (o && !c && o.parentNode === r) {
|
|
647
|
-
var u =
|
|
647
|
+
var u = P(o);
|
|
648
648
|
if (S = r, c = o, C = c.parentNode, ce = c.nextSibling, Ye = o, Fe = a.group, p.dragged = c, se = {
|
|
649
649
|
target: c,
|
|
650
650
|
clientX: (n || e).clientX,
|
|
651
651
|
clientY: (n || e).clientY
|
|
652
|
-
},
|
|
652
|
+
}, Pt = se.clientX - u.left, At = se.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, c.style["will-change"] = "all", s = function() {
|
|
653
653
|
if (k("delayEnded", i, {
|
|
654
654
|
evt: e
|
|
655
655
|
}), p.eventCanceled) {
|
|
@@ -665,7 +665,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
665
665
|
Bt(c, f.trim(), nt);
|
|
666
666
|
}), y(l, "dragover", ue), y(l, "mousemove", ue), y(l, "touchmove", ue), y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop), Tt && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), k("delayStart", this, {
|
|
667
667
|
evt: e
|
|
668
|
-
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(
|
|
668
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Pe || Q))) {
|
|
669
669
|
if (p.eventCanceled) {
|
|
670
670
|
this._onDrop();
|
|
671
671
|
return;
|
|
@@ -756,13 +756,13 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
756
756
|
},
|
|
757
757
|
_appendGhost: function() {
|
|
758
758
|
if (!g) {
|
|
759
|
-
var e = this.options.fallbackOnBody ? document.body : S, n =
|
|
759
|
+
var e = this.options.fallbackOnBody ? document.body : S, n = P(c, !0, Le, !0, e), o = this.options;
|
|
760
760
|
if (Le) {
|
|
761
761
|
for (M = e; h(M, "position") === "static" && h(M, "transform") === "none" && M !== document; )
|
|
762
762
|
M = M.parentNode;
|
|
763
763
|
M !== document.body && M !== document.documentElement ? (M === document && (M = G()), n.top += M.scrollTop, n.left += M.scrollLeft) : M = G(), tt = Ot(M);
|
|
764
764
|
}
|
|
765
|
-
g = c.cloneNode(!0), Y(g, o.ghostClass, !1), Y(g, o.fallbackClass, !0), Y(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", n.top), h(g, "left", n.left), h(g, "width", n.width), h(g, "height", n.height), h(g, "opacity", "0.8"), h(g, "position", Le ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin",
|
|
765
|
+
g = c.cloneNode(!0), Y(g, o.ghostClass, !1), Y(g, o.fallbackClass, !0), Y(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", n.top), h(g, "left", n.left), h(g, "width", n.width), h(g, "height", n.height), h(g, "opacity", "0.8"), h(g, "position", Le ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", Pt / parseInt(g.style.width) * 100 + "% " + At / parseInt(g.style.height) * 100 + "%");
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
768
|
_onDragStart: function(e, n) {
|
|
@@ -782,7 +782,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
782
782
|
},
|
|
783
783
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
784
784
|
_onDragOver: function(e) {
|
|
785
|
-
var n = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = Fe === s, d = l.sort, v =
|
|
785
|
+
var n = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = Fe === s, d = l.sort, v = A || u, _, m = this, w = !1;
|
|
786
786
|
if (st) return;
|
|
787
787
|
function L(_e, Zt) {
|
|
788
788
|
k(_e, m, U({
|
|
@@ -797,7 +797,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
797
797
|
target: o,
|
|
798
798
|
completed: x,
|
|
799
799
|
onMove: function(vt, Qt) {
|
|
800
|
-
return Re(S, n, c, i, vt,
|
|
800
|
+
return Re(S, n, c, i, vt, P(vt), e, Qt);
|
|
801
801
|
},
|
|
802
802
|
changed: T
|
|
803
803
|
}, Zt));
|
|
@@ -808,7 +808,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
808
808
|
function x(_e) {
|
|
809
809
|
return L("dragOverCompleted", {
|
|
810
810
|
insertion: _e
|
|
811
|
-
}), _e && (f ? u._hideClone() : u._showClone(m), m !== v && (Y(c,
|
|
811
|
+
}), _e && (f ? u._hideClone() : u._showClone(m), m !== v && (Y(c, A ? A.options.ghostClass : u.options.ghostClass, !1), Y(c, l.ghostClass, !0)), A !== m && m !== p.active ? A = m : m === p.active && A && (A = null), v === m && (m._ignoreWhileAnimating = o), m.animateAll(function() {
|
|
812
812
|
L("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
|
|
813
813
|
}), m !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (o === c && !c.animated || o === n && !o.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && o !== document && (c.parentNode[V]._isOutsideThisEl(e.target), !_e && ue(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), w = !0;
|
|
814
814
|
}
|
|
@@ -825,24 +825,24 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
825
825
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), L("dragOver"), p.eventCanceled) return w;
|
|
826
826
|
if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || m._ignoreWhileAnimating === o)
|
|
827
827
|
return x(!1);
|
|
828
|
-
if ($e = !1, u && !l.disabled && (f ? d || (a = C !== S) :
|
|
829
|
-
if (_ = this._getDirection(e, o) === "vertical", i =
|
|
828
|
+
if ($e = !1, u && !l.disabled && (f ? d || (a = C !== S) : A === this || (this.lastPutMode = Fe.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
829
|
+
if (_ = this._getDirection(e, o) === "vertical", i = P(c), L("dragOverValid"), p.eventCanceled) return w;
|
|
830
830
|
if (a)
|
|
831
831
|
return C = S, E(), this._hideClone(), L("revert"), p.eventCanceled || (ce ? S.insertBefore(c, ce) : S.appendChild(c)), x(!0);
|
|
832
832
|
var D = pt(n, l.draggable);
|
|
833
833
|
if (!D || In(e, _, this) && !D.animated) {
|
|
834
834
|
if (D === c)
|
|
835
835
|
return x(!1);
|
|
836
|
-
if (D && n === e.target && (o = D), o && (r =
|
|
836
|
+
if (D && n === e.target && (o = D), o && (r = P(o)), Re(S, n, c, i, o, r, e, !!o) !== !1)
|
|
837
837
|
return E(), n.appendChild(c), C = n, T(), x(!0);
|
|
838
838
|
} else if (D && Cn(e, _, this)) {
|
|
839
839
|
var N = me(n, 0, l, !0);
|
|
840
840
|
if (N === c)
|
|
841
841
|
return x(!1);
|
|
842
|
-
if (o = N, r =
|
|
842
|
+
if (o = N, r = P(o), Re(S, n, c, i, o, r, e, !1) !== !1)
|
|
843
843
|
return E(), n.insertBefore(c, N), C = n, T(), x(!0);
|
|
844
844
|
} else if (o.parentNode === n) {
|
|
845
|
-
r =
|
|
845
|
+
r = P(o);
|
|
846
846
|
var R = 0, ie, ve = c.parentNode !== n, X = !En(c.animated && c.toRect || i, o.animated && o.toRect || r, _), be = _ ? "top" : "left", J = It(o, "top", "top") || It(c, "top", "top"), we = J ? J.scrollTop : void 0;
|
|
847
847
|
fe !== o && (ie = r[be], Oe = !1, ke = !X && l.invertSwap || ve), R = On(e, o, r, _, X ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, ke, fe === o);
|
|
848
848
|
var q;
|
|
@@ -859,7 +859,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
859
859
|
ee = R === 1;
|
|
860
860
|
var Ne = Re(S, n, c, i, o, r, e, ee);
|
|
861
861
|
if (Ne !== !1)
|
|
862
|
-
return (Ne === 1 || Ne === -1) && (ee = Ne === 1), st = !0, setTimeout(Tn, 30), E(), ee && !ye ? n.appendChild(c) : o.parentNode.insertBefore(c, ee ? ye : o), J && jt(J, 0, we - J.scrollTop), C = c.parentNode, ie !== void 0 && !ke && (Be = Math.abs(ie -
|
|
862
|
+
return (Ne === 1 || Ne === -1) && (ee = Ne === 1), st = !0, setTimeout(Tn, 30), E(), ee && !ye ? n.appendChild(c) : o.parentNode.insertBefore(c, ee ? ye : o), J && jt(J, 0, we - J.scrollTop), C = c.parentNode, ie !== void 0 && !ke && (Be = Math.abs(ie - P(o)[be])), T(), x(!0);
|
|
863
863
|
}
|
|
864
864
|
if (n.contains(c))
|
|
865
865
|
return x(!1);
|
|
@@ -882,7 +882,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
882
882
|
this._nulling();
|
|
883
883
|
return;
|
|
884
884
|
}
|
|
885
|
-
he = !1, ke = !1, Oe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ut(this.cloneId), ut(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && h(document.body, "user-select", ""), h(c, "transform", ""), e && (Ee && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (S === C ||
|
|
885
|
+
he = !1, ke = !1, Oe = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ut(this.cloneId), ut(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), xe && h(document.body, "user-select", ""), h(c, "transform", ""), e && (Ee && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (S === C || A && A.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), c && (this.nativeDraggable && b(c, "dragend", this), nt(c), c.style["will-change"] = "", Ee && !he && Y(c, A ? A.options.ghostClass : this.options.ghostClass, !1), Y(c, this.options.chosenClass, !1), F({
|
|
886
886
|
sortable: this,
|
|
887
887
|
name: "unchoose",
|
|
888
888
|
toEl: C,
|
|
@@ -911,7 +911,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
911
911
|
name: "sort",
|
|
912
912
|
toEl: C,
|
|
913
913
|
originalEvent: e
|
|
914
|
-
})),
|
|
914
|
+
})), A && A.save()) : B !== pe && B >= 0 && (F({
|
|
915
915
|
sortable: this,
|
|
916
916
|
name: "update",
|
|
917
917
|
toEl: C,
|
|
@@ -929,7 +929,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
929
929
|
}), this.save()))), this._nulling();
|
|
930
930
|
},
|
|
931
931
|
_nulling: function() {
|
|
932
|
-
k("nulling", this), S = c = C = g = ce = I = Ye = ne = se = $ = Ee = B = te = pe = Ce = fe = Ie =
|
|
932
|
+
k("nulling", this), S = c = C = g = ce = I = Ye = ne = se = $ = Ee = B = te = pe = Ce = fe = Ie = A = Fe = p.dragged = p.ghost = p.clone = p.active = null, We.forEach(function(e) {
|
|
933
933
|
e.checked = !0;
|
|
934
934
|
}), We.length = Je = et = 0;
|
|
935
935
|
},
|
|
@@ -954,7 +954,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
954
954
|
*/
|
|
955
955
|
toArray: function() {
|
|
956
956
|
for (var e = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
|
|
957
|
-
n = o[i], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) ||
|
|
957
|
+
n = o[i], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || An(n));
|
|
958
958
|
return e;
|
|
959
959
|
},
|
|
960
960
|
/**
|
|
@@ -996,7 +996,7 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
996
996
|
var o = this.options;
|
|
997
997
|
if (n === void 0)
|
|
998
998
|
return o[e];
|
|
999
|
-
var i =
|
|
999
|
+
var i = Ae.modifyOption(this, e, n);
|
|
1000
1000
|
typeof i < "u" ? o[e] = i : o[e] = n, e === "group" && Wt(o);
|
|
1001
1001
|
},
|
|
1002
1002
|
/**
|
|
@@ -1031,10 +1031,10 @@ function xn(t) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
function Re(t, e, n, o, i, r, a, l) {
|
|
1033
1033
|
var s, u = t[V], f = u.options.onMove, d;
|
|
1034
|
-
return window.CustomEvent && !Q && !
|
|
1034
|
+
return window.CustomEvent && !Q && !Pe ? s = new CustomEvent("move", {
|
|
1035
1035
|
bubbles: !0,
|
|
1036
1036
|
cancelable: !0
|
|
1037
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = i || e, s.relatedRect = r ||
|
|
1037
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = i || e, s.relatedRect = r || P(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), f && (d = f.call(u, s, a)), d;
|
|
1038
1038
|
}
|
|
1039
1039
|
function nt(t) {
|
|
1040
1040
|
t.draggable = !1;
|
|
@@ -1043,11 +1043,11 @@ function Tn() {
|
|
|
1043
1043
|
st = !1;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Cn(t, e, n) {
|
|
1046
|
-
var o =
|
|
1046
|
+
var o = P(me(n.el, 0, n.options, !0)), i = 10;
|
|
1047
1047
|
return e ? t.clientX < o.left - i || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - i || t.clientY < o.bottom && t.clientX < o.left;
|
|
1048
1048
|
}
|
|
1049
1049
|
function In(t, e, n) {
|
|
1050
|
-
var o =
|
|
1050
|
+
var o = P(pt(n.el, n.options.draggable)), i = 10;
|
|
1051
1051
|
return e ? t.clientX > o.right + i || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + i;
|
|
1052
1052
|
}
|
|
1053
1053
|
function On(t, e, n, o, i, r, a, l) {
|
|
@@ -1059,14 +1059,14 @@ function On(t, e, n, o, i, r, a, l) {
|
|
|
1059
1059
|
else if (Ie === 1 ? s < f + Be : s > d - Be)
|
|
1060
1060
|
return -Ie;
|
|
1061
1061
|
} else if (s > f + u * (1 - i) / 2 && s < d - u * (1 - i) / 2)
|
|
1062
|
-
return
|
|
1062
|
+
return Pn(e);
|
|
1063
1063
|
}
|
|
1064
1064
|
return v = v || a, v && (s < f + u * r / 2 || s > d - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function Pn(t) {
|
|
1067
1067
|
return j(c) < j(t) ? 1 : -1;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function An(t) {
|
|
1070
1070
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1071
1071
|
o += e.charCodeAt(n);
|
|
1072
1072
|
return o.toString(36);
|
|
@@ -1115,7 +1115,7 @@ p.mount = function() {
|
|
|
1115
1115
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
1116
1116
|
if (!o.prototype || !o.prototype.constructor)
|
|
1117
1117
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1118
|
-
o.utils && (p.utils = U(U({}, p.utils), o.utils)),
|
|
1118
|
+
o.utils && (p.utils = U(U({}, p.utils), o.utils)), Ae.mount(o);
|
|
1119
1119
|
});
|
|
1120
1120
|
};
|
|
1121
1121
|
p.create = function(t, e) {
|
|
@@ -1155,7 +1155,7 @@ function Mn() {
|
|
|
1155
1155
|
},
|
|
1156
1156
|
_handleAutoScroll: function(n, o) {
|
|
1157
1157
|
var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
|
|
1158
|
-
if (Ge = n, o || this.options.forceAutoScrollFallback ||
|
|
1158
|
+
if (Ge = n, o || this.options.forceAutoScrollFallback || Pe || Q || xe) {
|
|
1159
1159
|
rt(n, this.options, l, o);
|
|
1160
1160
|
var s = oe(l, !0);
|
|
1161
1161
|
dt && (!Se || r !== ot || a !== it) && (Se && Mt(), Se = setInterval(function() {
|
|
@@ -1189,7 +1189,7 @@ var rt = Vt(function(t, e, n, o) {
|
|
|
1189
1189
|
ct !== n && (ct = n, je(), De = e.scroll, f = e.scrollFn, De === !0 && (De = oe(n, !0)));
|
|
1190
1190
|
var d = 0, v = De;
|
|
1191
1191
|
do {
|
|
1192
|
-
var _ = v, m =
|
|
1192
|
+
var _ = v, m = P(_), w = m.top, L = m.bottom, E = m.left, x = m.right, T = m.width, D = m.height, N = void 0, R = void 0, ie = _.scrollWidth, ve = _.scrollHeight, X = h(_), be = _.scrollLeft, J = _.scrollTop;
|
|
1193
1193
|
_ === s ? (N = T < ie && (X.overflowX === "auto" || X.overflowX === "scroll" || X.overflowX === "visible"), R = D < ve && (X.overflowY === "auto" || X.overflowY === "scroll" || X.overflowY === "visible")) : (N = T < ie && (X.overflowX === "auto" || X.overflowX === "scroll"), R = D < ve && (X.overflowY === "auto" || X.overflowY === "scroll"));
|
|
1194
1194
|
var we = N && (Math.abs(x - i) <= a && be + T < ie) - (Math.abs(E - i) <= a && !!be), q = R && (Math.abs(L - r) <= a && J + D < ve) - (Math.abs(w - r) <= a && !!J);
|
|
1195
1195
|
if (!O[d])
|