@trilogy-data/trilogy-studio-components 0.1.16 → 0.1.18
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/{AssetAutoImporter-COld6ovI.js → AssetAutoImporter-CUqhhNvb.js} +14 -14
- package/dist/{CommunityModels-B5DGmouF.js → CommunityModels-BKBxewjm.js} +2 -2
- package/dist/{ConnectionView-C9-aVTdE.js → ConnectionView-Dyqm2oeV.js} +14 -14
- package/dist/{Dashboard-Djg-QyQG.js → Dashboard-Bsoj1oUW.js} +169 -169
- package/dist/{DashboardCreatorInline-DheLBs4U.js → DashboardCreatorInline-BLbkDxBF.js} +1 -1
- package/dist/{DashboardMobile-DIwLC8Sd.js → DashboardMobile-Ao8NtF1f.js} +16 -16
- package/dist/{DrilldownPane-mDNAGuxh.js → DrilldownPane-OZMttRBx.js} +4141 -4116
- package/dist/{Editor-DKEg-QmG.js → Editor-N40lTR0s.js} +1 -1
- package/dist/{IDE-mAy3Kq28.js → IDE-kbUDZPcL.js} +5 -5
- package/dist/{JobsView-DE0m37jI.js → JobsView-AYNUDnKG.js} +1 -1
- package/dist/{LLMChat-B7WdpPs5.js → LLMChat-CZTQUh53.js} +2 -2
- package/dist/{LLMConnectionList-cXc3m9rK.js → LLMConnectionList-BkvCZP5Q.js} +1 -1
- package/dist/{LLMView-BiF6W8Ql.js → LLMView-CaTlmLGb.js} +2 -2
- package/dist/{MobileIDE-qI_IZH95.js → MobileIDE-Bi7GNE2X.js} +10 -10
- package/dist/{ModelCard-DPtVjIMJ.js → ModelCard-Cd6OxExX.js} +2 -2
- package/dist/{ModelCreator-gJ86t8SP.js → ModelCreator-DeI-n86Z.js} +1 -1
- package/dist/{ModelView-C5y1IU22.js → ModelView-Surdb5KW.js} +2 -2
- package/dist/{ResultComponent-D1O-ASr7.js → ResultComponent-CXkTwZFS.js} +1 -1
- package/dist/{Sidebar-C6FJOAJk.js → Sidebar-CfOATms_.js} +60 -60
- package/dist/{TutorialPage-D17WxiUS.js → TutorialPage-IisHiPL6.js} +8 -8
- package/dist/{UserProfile-DPc9-B3S.js → UserProfile-CQAUnKyQ.js} +1 -1
- package/dist/components/chartHelpers.d.ts.map +1 -1
- package/dist/components/dashboard/useDashboard.d.ts.map +1 -1
- package/dist/composables/useCrossFilterEligibility.d.ts +18 -0
- package/dist/composables/useCrossFilterEligibility.d.ts.map +1 -0
- package/dist/composables/useResolvedCrossFilterController.d.ts +30 -0
- package/dist/composables/useResolvedCrossFilterController.d.ts.map +1 -0
- package/dist/dashboard.js +151 -77
- package/dist/dashboards/barChartSpec.d.ts +39 -0
- package/dist/dashboards/barChartSpec.d.ts.map +1 -1
- package/dist/dashboards/crossFilters.d.ts +3 -0
- package/dist/dashboards/crossFilters.d.ts.map +1 -1
- package/dist/entry.dashboard.d.ts +6 -2
- package/dist/entry.dashboard.d.ts.map +1 -1
- package/dist/main.d.ts +6 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/{queryExecutionService-obvMrWcu.js → queryExecutionService-KrjL0UCa.js} +167 -128
- package/dist/stores/queryExecutionService.d.ts +9 -0
- package/dist/stores/queryExecutionService.d.ts.map +1 -1
- package/dist/stores.js +1 -1
- package/dist/trilogy-studio-components.css +1 -1
- package/dist/{useDashboard-Cfrk1mUz.js → useDashboard-CtX3sEag.js} +275 -275
- package/dist/views.js +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as sn, ref as k, provide as Bo, onBeforeUnmount as Vn, onBeforeMount as Lo, onMounted as Kn, nextTick as yt, watch as G, createElementBlock as Pt, openBlock as vt, normalizeStyle as Te, renderSlot as Qn, withDirectives as Ho, createVNode as Bt, vShow as Wo, inject as jo, computed as Lt, useSlots as $o, normalizeClass as yn, createCommentVNode as Ye, getCurrentInstance as Uo, createBlock as xe, unref as I, createElementVNode as He, withCtx as bn, Fragment as xn, renderList as Xo, Teleport as wn, toDisplayString as qo } from "vue";
|
|
2
|
-
import { u as Yo,
|
|
3
|
-
import { D as ti } from "./DashboardCreatorInline-
|
|
4
|
-
import { a as ei } from "./queryExecutionService-
|
|
2
|
+
import { u as Yo, D as Go, _ as Vo, a as Ko, b as Qo, C as Jo, M as Zo } from "./useDashboard-CtX3sEag.js";
|
|
3
|
+
import { D as ti } from "./DashboardCreatorInline-BLbkDxBF.js";
|
|
4
|
+
import { a as ei } from "./queryExecutionService-KrjL0UCa.js";
|
|
5
5
|
import { _ as ni } from "./_plugin-vue_export-helper-BzkwV_Yn.js";
|
|
6
|
-
var oi = Object.defineProperty, ii = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
6
|
+
var oi = Object.defineProperty, ii = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, p = (e, t, n) => (ii(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
7
7
|
function ri(e) {
|
|
8
8
|
let t = 0, n;
|
|
9
9
|
for (let o = 0, i = e.length; o < i; o++)
|
|
@@ -32,15 +32,15 @@ function Zt(e, t, n) {
|
|
|
32
32
|
}
|
|
33
33
|
function ai(e, t, n, o) {
|
|
34
34
|
if (n)
|
|
35
|
-
for (; t.y > 0 && !
|
|
35
|
+
for (; t.y > 0 && !pe(e, t); )
|
|
36
36
|
t.y--;
|
|
37
37
|
else if (o) {
|
|
38
38
|
const r = o[t.i].y;
|
|
39
|
-
for (; t.y > r && !
|
|
39
|
+
for (; t.y > r && !pe(e, t); )
|
|
40
40
|
t.y--;
|
|
41
41
|
}
|
|
42
42
|
let i;
|
|
43
|
-
for (; i =
|
|
43
|
+
for (; i = pe(e, t); )
|
|
44
44
|
t.y = i.y + i.h;
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
@@ -51,7 +51,7 @@ function li(e, t) {
|
|
|
51
51
|
if (r.x + r.w > t.cols && (r.x = t.cols - r.w), r.x < 0 && (r.x = 0, r.w = t.cols), !r.static)
|
|
52
52
|
n.push(r);
|
|
53
53
|
else
|
|
54
|
-
for (;
|
|
54
|
+
for (; pe(n, r); )
|
|
55
55
|
r.y++;
|
|
56
56
|
}
|
|
57
57
|
return e;
|
|
@@ -61,7 +61,7 @@ function En(e, t) {
|
|
|
61
61
|
if (e[n].i === t)
|
|
62
62
|
return e[n];
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function pe(e, t) {
|
|
65
65
|
for (let n = 0, o = e.length; n < o; n++)
|
|
66
66
|
if (Jn(e[n], t))
|
|
67
67
|
return e[n];
|
|
@@ -82,7 +82,7 @@ function Ve(e, t, n, o, i, r) {
|
|
|
82
82
|
const u = Zn(c, t);
|
|
83
83
|
if (r && u.length)
|
|
84
84
|
return t.x = s, t.y = a, t.moved = !1, e;
|
|
85
|
-
for (let d = 0,
|
|
85
|
+
for (let d = 0, f = u.length; d < f; d++) {
|
|
86
86
|
const g = u[d];
|
|
87
87
|
g.moved || t.y > g.y && t.y - g.y > g.h / 4 || (g.static ? e = Sn(e, g, t, i) : e = Sn(e, t, g, i));
|
|
88
88
|
}
|
|
@@ -96,7 +96,7 @@ function Sn(e, t, n, o) {
|
|
|
96
96
|
w: n.w,
|
|
97
97
|
h: n.h
|
|
98
98
|
};
|
|
99
|
-
if (i.y = Math.max(t.y - n.h, 0), !
|
|
99
|
+
if (i.y = Math.max(t.y - n.h, 0), !pe(e, i))
|
|
100
100
|
return Ve(e, n, void 0, i.y, !1);
|
|
101
101
|
}
|
|
102
102
|
return Ve(e, n, void 0, n.y + 1, !1);
|
|
@@ -150,7 +150,7 @@ function eo(e) {
|
|
|
150
150
|
return t.y === n.y && t.x === n.x ? 0 : t.y > n.y || t.y === n.y && t.x > n.x ? 1 : -1;
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function pi(e, t) {
|
|
154
154
|
t = t || "Layout";
|
|
155
155
|
const n = ["x", "y", "w", "h"], o = [];
|
|
156
156
|
if (!Array.isArray(e))
|
|
@@ -173,9 +173,9 @@ function fi(e, t) {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
function Tn(e) {
|
|
176
|
-
return
|
|
176
|
+
return fi(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function fi(e) {
|
|
179
179
|
const t = e.target, n = t.offsetParent || document.body, o = t.offsetParent === document.body ? { left: 0, top: 0 } : n.getBoundingClientRect(), i = e.clientX + n.scrollLeft - o.left, r = e.clientY + n.scrollTop - o.top;
|
|
180
180
|
return { x: i, y: r };
|
|
181
181
|
}
|
|
@@ -221,9 +221,9 @@ function vi(e, t, n, o, i, r, s) {
|
|
|
221
221
|
let a = e;
|
|
222
222
|
const l = no(n), c = l.slice(l.indexOf(o));
|
|
223
223
|
for (let u = 0, d = c.length; u < d; u++) {
|
|
224
|
-
const
|
|
225
|
-
if (t[
|
|
226
|
-
a = t[
|
|
224
|
+
const f = c[u];
|
|
225
|
+
if (t[f]) {
|
|
226
|
+
a = t[f];
|
|
227
227
|
break;
|
|
228
228
|
}
|
|
229
229
|
}
|
|
@@ -265,7 +265,7 @@ const wt = {
|
|
|
265
265
|
};
|
|
266
266
|
function Jt() {
|
|
267
267
|
}
|
|
268
|
-
const
|
|
268
|
+
const ft = wt;
|
|
269
269
|
function Ei(e) {
|
|
270
270
|
const t = e;
|
|
271
271
|
wt.document = t.document, wt.DocumentFragment = t.DocumentFragment || Jt, wt.SVGElement = t.SVGElement || Jt, wt.SVGSVGElement = t.SVGSVGElement || Jt, wt.SVGElementInstance = t.SVGElementInstance || Jt, wt.Element = t.Element || Jt, wt.HTMLElement = t.HTMLElement || wt.Element, wt.Event = t.Event, wt.Touch = t.Touch || Jt, wt.PointerEvent = t.PointerEvent || t.MSPointerEvent;
|
|
@@ -310,8 +310,8 @@ const Si = (e) => e === Ht || io(e), Ti = (e) => Ce(e) && e.nodeType === 11, Ce
|
|
|
310
310
|
wheelEvent: null
|
|
311
311
|
};
|
|
312
312
|
function Pi(e) {
|
|
313
|
-
const t =
|
|
314
|
-
Et.supportsTouch = "ontouchstart" in e || m.func(e.DocumentTouch) &&
|
|
313
|
+
const t = ft.Element, n = e.navigator || {};
|
|
314
|
+
Et.supportsTouch = "ontouchstart" in e || m.func(e.DocumentTouch) && ft.document instanceof e.DocumentTouch, Et.supportsPointerEvent = n.pointerEnabled !== !1 && !!ft.PointerEvent, Et.isIOS = /iP(hone|od|ad)/.test(n.platform), Et.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), Et.isIe9 = /MSIE 9/.test(n.userAgent), Et.isOperaMobile = n.appName === "Opera" && Et.supportsTouch && /Presto/.test(n.userAgent), Et.prefixedMatchesSelector = "matches" in t.prototype ? "matches" : "webkitMatchesSelector" in t.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in t.prototype ? "mozMatchesSelector" : "oMatchesSelector" in t.prototype ? "oMatchesSelector" : "msMatchesSelector", Et.pEventTypes = Et.supportsPointerEvent ? ft.PointerEvent === e.MSPointerEvent ? {
|
|
315
315
|
up: "MSPointerUp",
|
|
316
316
|
down: "MSPointerDown",
|
|
317
317
|
over: "mouseover",
|
|
@@ -325,7 +325,7 @@ function Pi(e) {
|
|
|
325
325
|
out: "pointerout",
|
|
326
326
|
move: "pointermove",
|
|
327
327
|
cancel: "pointercancel"
|
|
328
|
-
} : null, Et.wheelEvent =
|
|
328
|
+
} : null, Et.wheelEvent = ft.document && "onmousewheel" in ft.document ? "mousewheel" : "wheel";
|
|
329
329
|
}
|
|
330
330
|
const Mt = Et;
|
|
331
331
|
function Xt(e, t) {
|
|
@@ -377,7 +377,7 @@ function Ai(e) {
|
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
function an(e) {
|
|
380
|
-
const t = e instanceof
|
|
380
|
+
const t = e instanceof ft.SVGElement ? e.getBoundingClientRect() : e.getClientRects()[0];
|
|
381
381
|
return t && {
|
|
382
382
|
left: t.left,
|
|
383
383
|
right: t.right,
|
|
@@ -396,7 +396,7 @@ function ln(e) {
|
|
|
396
396
|
return t;
|
|
397
397
|
}
|
|
398
398
|
function zn(e) {
|
|
399
|
-
return m.string(e) ? (
|
|
399
|
+
return m.string(e) ? (ft.document.querySelector(e), !0) : !1;
|
|
400
400
|
}
|
|
401
401
|
function D(e, t) {
|
|
402
402
|
for (const n in t)
|
|
@@ -463,7 +463,7 @@ function Bi(e) {
|
|
|
463
463
|
allowFrom: null,
|
|
464
464
|
ignoreFrom: null,
|
|
465
465
|
mouseButtons: 1
|
|
466
|
-
}), t.maxInteractions = (o) =>
|
|
466
|
+
}), t.maxInteractions = (o) => fo(o, e), e.autoStart = {
|
|
467
467
|
maxInteractions: 1 / 0,
|
|
468
468
|
withinInteractionLimit: De,
|
|
469
469
|
cursorElement: null
|
|
@@ -478,7 +478,7 @@ function Li({
|
|
|
478
478
|
if (e.interacting())
|
|
479
479
|
return;
|
|
480
480
|
const r = ho(e, t, n, o, i);
|
|
481
|
-
|
|
481
|
+
po(e, r, i);
|
|
482
482
|
}
|
|
483
483
|
function Hi({
|
|
484
484
|
interaction: e,
|
|
@@ -489,7 +489,7 @@ function Hi({
|
|
|
489
489
|
if (e.pointerType !== "mouse" || e.pointerIsDown || e.interacting())
|
|
490
490
|
return;
|
|
491
491
|
const r = ho(e, t, n, o, i);
|
|
492
|
-
|
|
492
|
+
po(e, r, i);
|
|
493
493
|
}
|
|
494
494
|
function Wi(e, t) {
|
|
495
495
|
const {
|
|
@@ -519,10 +519,10 @@ function $i(e, t, n, o, i, r, s) {
|
|
|
519
519
|
const c = o[a], u = i[a], d = c.getAction(t, n, e, u);
|
|
520
520
|
if (!d)
|
|
521
521
|
continue;
|
|
522
|
-
const
|
|
523
|
-
if (
|
|
522
|
+
const f = uo(d, c, u, r, s);
|
|
523
|
+
if (f)
|
|
524
524
|
return {
|
|
525
|
-
action:
|
|
525
|
+
action: f,
|
|
526
526
|
interactable: c,
|
|
527
527
|
element: u
|
|
528
528
|
};
|
|
@@ -551,7 +551,7 @@ function ho(e, t, n, o, i) {
|
|
|
551
551
|
element: null
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function po(e, {
|
|
555
555
|
action: t,
|
|
556
556
|
interactable: n,
|
|
557
557
|
element: o
|
|
@@ -568,13 +568,13 @@ function De(e, t, n, o) {
|
|
|
568
568
|
if (!(r && s && a))
|
|
569
569
|
return !1;
|
|
570
570
|
for (const d of o.interactions.list) {
|
|
571
|
-
const
|
|
572
|
-
if (d.interacting() && (l++, l >= a || d.interactable === e && (c +=
|
|
571
|
+
const f = d.prepared.name;
|
|
572
|
+
if (d.interacting() && (l++, l >= a || d.interactable === e && (c += f === n.name ? 1 : 0, c >= r || d.element === t && (u++, f === n.name && u >= s))))
|
|
573
573
|
return !1;
|
|
574
574
|
}
|
|
575
575
|
return a > 0;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function fo(e, t) {
|
|
578
578
|
return m.number(e) ? (t.autoStart.maxInteractions = e, this) : t.autoStart.maxInteractions;
|
|
579
579
|
}
|
|
580
580
|
function Je(e, t, n) {
|
|
@@ -611,7 +611,7 @@ const Ui = {
|
|
|
611
611
|
},
|
|
612
612
|
"interactions:stop": ji
|
|
613
613
|
},
|
|
614
|
-
maxInteractions:
|
|
614
|
+
maxInteractions: fo,
|
|
615
615
|
withinInteractionLimit: De,
|
|
616
616
|
validateAction: uo
|
|
617
617
|
}, cn = Ui;
|
|
@@ -627,20 +627,20 @@ function Xi({
|
|
|
627
627
|
if (e.prepared.axis = a.lockAxis === "start" ? c[0] : a.lockAxis, c !== "xy" && l !== "xy" && l !== c) {
|
|
628
628
|
e.prepared.name = null;
|
|
629
629
|
let u = t;
|
|
630
|
-
const d = function(
|
|
631
|
-
if (
|
|
630
|
+
const d = function(f) {
|
|
631
|
+
if (f === e.interactable)
|
|
632
632
|
return;
|
|
633
633
|
const g = e.interactable.options.drag;
|
|
634
|
-
if (!g.manualStart &&
|
|
635
|
-
const x =
|
|
636
|
-
if (x && x.name === "drag" && qi(c,
|
|
637
|
-
return
|
|
634
|
+
if (!g.manualStart && f.testIgnoreAllow(g, u, t)) {
|
|
635
|
+
const x = f.getAction(e.downPointer, e.downEvent, e, u);
|
|
636
|
+
if (x && x.name === "drag" && qi(c, f) && cn.validateAction(x, f, u, t, i))
|
|
637
|
+
return f;
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
for (; m.element(u); ) {
|
|
641
|
-
const
|
|
642
|
-
if (
|
|
643
|
-
e.prepared.name = "drag", e.interactable =
|
|
641
|
+
const f = i.interactables.forEachMatch(u, d);
|
|
642
|
+
if (f) {
|
|
643
|
+
e.prepared.name = "drag", e.interactable = f, e.element = u;
|
|
644
644
|
break;
|
|
645
645
|
}
|
|
646
646
|
u = Wt(u);
|
|
@@ -771,7 +771,7 @@ function Pn(e, t) {
|
|
|
771
771
|
}
|
|
772
772
|
class yo {
|
|
773
773
|
constructor(t) {
|
|
774
|
-
|
|
774
|
+
p(this, "options"), p(this, "types", {}), p(this, "propagationStopped", !1), p(this, "immediatePropagationStopped", !1), p(this, "global"), this.options = D({}, t || {});
|
|
775
775
|
}
|
|
776
776
|
fire(t) {
|
|
777
777
|
let n;
|
|
@@ -830,7 +830,7 @@ function dn(e, t, n) {
|
|
|
830
830
|
const ke = (e, t) => Math.sqrt(e * e + t * t);
|
|
831
831
|
class xo {
|
|
832
832
|
constructor(t) {
|
|
833
|
-
|
|
833
|
+
p(this, "immediatePropagationStopped", !1), p(this, "propagationStopped", !1), this._interaction = t;
|
|
834
834
|
}
|
|
835
835
|
preventDefault() {
|
|
836
836
|
}
|
|
@@ -864,19 +864,19 @@ const wo = {
|
|
|
864
864
|
};
|
|
865
865
|
class hn extends xo {
|
|
866
866
|
constructor(t, n, o, i, r, s, a) {
|
|
867
|
-
super(t),
|
|
868
|
-
const l = t.interactable, c = (l && l.options || wo).deltaSource, u = dn(l, r, o), d = i === "start",
|
|
867
|
+
super(t), p(this, "relatedTarget", null), p(this, "screenX"), p(this, "screenY"), p(this, "button"), p(this, "buttons"), p(this, "ctrlKey"), p(this, "shiftKey"), p(this, "altKey"), p(this, "metaKey"), p(this, "page"), p(this, "client"), p(this, "delta"), p(this, "rect"), p(this, "x0"), p(this, "y0"), p(this, "t0"), p(this, "dt"), p(this, "duration"), p(this, "clientX0"), p(this, "clientY0"), p(this, "velocity"), p(this, "speed"), p(this, "swipe"), p(this, "axes"), p(this, "preEnd"), r = r || t.element;
|
|
868
|
+
const l = t.interactable, c = (l && l.options || wo).deltaSource, u = dn(l, r, o), d = i === "start", f = i === "end", g = d ? this : t.prevEvent, x = d ? t.coords.start : f ? {
|
|
869
869
|
page: g.page,
|
|
870
870
|
client: g.client,
|
|
871
871
|
timeStamp: t.coords.cur.timeStamp
|
|
872
872
|
} : t.coords.cur;
|
|
873
|
-
this.page = D({}, x.page), this.client = D({}, x.client), this.rect = D({}, t.rect), this.timeStamp = x.timeStamp,
|
|
873
|
+
this.page = D({}, x.page), this.client = D({}, x.client), this.rect = D({}, t.rect), this.timeStamp = x.timeStamp, f || (this.page.x -= u.x, this.page.y -= u.y, this.client.x -= u.x, this.client.y -= u.y), this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.button = n.button, this.buttons = n.buttons, this.target = r, this.currentTarget = r, this.preEnd = s, this.type = a || o + (i || ""), this.interactable = l, this.t0 = d ? t.pointers[t.pointers.length - 1].downTime : g.t0, this.x0 = t.coords.start.page.x - u.x, this.y0 = t.coords.start.page.y - u.y, this.clientX0 = t.coords.start.client.x - u.x, this.clientY0 = t.coords.start.client.y - u.y, d || f ? this.delta = {
|
|
874
874
|
x: 0,
|
|
875
875
|
y: 0
|
|
876
876
|
} : this.delta = {
|
|
877
877
|
x: this[c].x - g[c].x,
|
|
878
878
|
y: this[c].y - g[c].y
|
|
879
|
-
}, this.dt = t.coords.delta.timeStamp, this.duration = this.timeStamp - this.t0, this.velocity = D({}, t.coords.velocity[c]), this.speed = ke(this.velocity.x, this.velocity.y), this.swipe =
|
|
879
|
+
}, this.dt = t.coords.delta.timeStamp, this.duration = this.timeStamp - this.t0, this.velocity = D({}, t.coords.velocity[c]), this.speed = ke(this.velocity.x, this.velocity.y), this.swipe = f || i === "inertiastart" ? this.getSwipe() : null;
|
|
880
880
|
}
|
|
881
881
|
getSwipe() {
|
|
882
882
|
const t = this._interaction;
|
|
@@ -1002,7 +1002,7 @@ function or(e) {
|
|
|
1002
1002
|
e.page.x = 0, e.page.y = 0, e.client.x = 0, e.client.y = 0;
|
|
1003
1003
|
}
|
|
1004
1004
|
function So(e) {
|
|
1005
|
-
return e instanceof
|
|
1005
|
+
return e instanceof ft.Event || e instanceof ft.Touch;
|
|
1006
1006
|
}
|
|
1007
1007
|
function Me(e, t, n) {
|
|
1008
1008
|
return n = n || {}, e = e || "page", n.x = t[e + "X"], n.y = t[e + "Y"], n;
|
|
@@ -1023,7 +1023,7 @@ function sr(e, t, n) {
|
|
|
1023
1023
|
const o = t.length > 1 ? To(t) : t[0];
|
|
1024
1024
|
ir(o, e.page), rr(o, e.client), e.timeStamp = n;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function pn(e) {
|
|
1027
1027
|
const t = [];
|
|
1028
1028
|
return m.array(e) ? (t[0] = e[0], t[1] = e[1]) : e.type === "touchend" ? e.touches.length === 1 ? (t[0] = e.touches[0], t[1] = e.changedTouches[0]) : e.touches.length === 0 && (t[0] = e.changedTouches[0], t[1] = e.changedTouches[1]) : (t[0] = e.touches[0], t[1] = e.touches[1]), t;
|
|
1029
1029
|
}
|
|
@@ -1046,7 +1046,7 @@ function To(e) {
|
|
|
1046
1046
|
function ar(e) {
|
|
1047
1047
|
if (!e.length)
|
|
1048
1048
|
return null;
|
|
1049
|
-
const t =
|
|
1049
|
+
const t = pn(e), n = Math.min(t[0].pageX, t[1].pageX), o = Math.min(t[0].pageY, t[1].pageY), i = Math.max(t[0].pageX, t[1].pageX), r = Math.max(t[0].pageY, t[1].pageY);
|
|
1050
1050
|
return {
|
|
1051
1051
|
x: n,
|
|
1052
1052
|
y: o,
|
|
@@ -1059,15 +1059,15 @@ function ar(e) {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
function lr(e, t) {
|
|
1062
|
-
const n = t + "X", o = t + "Y", i =
|
|
1062
|
+
const n = t + "X", o = t + "Y", i = pn(e), r = i[0][n] - i[1][n], s = i[0][o] - i[1][o];
|
|
1063
1063
|
return ke(r, s);
|
|
1064
1064
|
}
|
|
1065
1065
|
function cr(e, t) {
|
|
1066
|
-
const n = t + "X", o = t + "Y", i =
|
|
1066
|
+
const n = t + "X", o = t + "Y", i = pn(e), r = i[1][n] - i[0][n], s = i[1][o] - i[0][o];
|
|
1067
1067
|
return 180 * Math.atan2(s, r) / Math.PI;
|
|
1068
1068
|
}
|
|
1069
1069
|
function ur(e) {
|
|
1070
|
-
return m.string(e.pointerType) ? e.pointerType : m.number(e.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][e.pointerType] : /touch/.test(e.type || "") || e instanceof
|
|
1070
|
+
return m.string(e.pointerType) ? e.pointerType : m.number(e.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][e.pointerType] : /touch/.test(e.type || "") || e instanceof ft.Touch ? "touch" : "mouse";
|
|
1071
1071
|
}
|
|
1072
1072
|
function Mo(e) {
|
|
1073
1073
|
const t = m.func(e.composedPath) ? e.composedPath() : e.path;
|
|
@@ -1154,7 +1154,7 @@ function dr(e) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
class hr {
|
|
1156
1156
|
constructor(t, n, o, i) {
|
|
1157
|
-
|
|
1157
|
+
p(this, "options"), p(this, "_actions"), p(this, "target"), p(this, "events", new yo()), p(this, "_context"), p(this, "_win"), p(this, "_doc"), p(this, "_scopeEvents"), p(this, "_rectChecker"), this._actions = n.actions, this.target = t, this._context = n.context || o, this._win = qt(zn(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = i, this.set(n);
|
|
1158
1158
|
}
|
|
1159
1159
|
get _defaults() {
|
|
1160
1160
|
return {
|
|
@@ -1264,9 +1264,9 @@ class hr {
|
|
|
1264
1264
|
this._scopeEvents.remove(this.target, "all");
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
class
|
|
1267
|
+
class pr {
|
|
1268
1268
|
constructor(t) {
|
|
1269
|
-
|
|
1269
|
+
p(this, "list", []), p(this, "selectorMap", {}), p(this, "scope"), this.scope = t, t.addListeners({
|
|
1270
1270
|
"interactable:unset": ({
|
|
1271
1271
|
interactable: n
|
|
1272
1272
|
}) => {
|
|
@@ -1311,7 +1311,7 @@ class fr {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function fr(e) {
|
|
1315
1315
|
var t;
|
|
1316
1316
|
const n = [], o = {}, i = [], r = {
|
|
1317
1317
|
add: s,
|
|
@@ -1334,21 +1334,21 @@ function pr(e) {
|
|
|
1334
1334
|
return r.supportsPassive = !0;
|
|
1335
1335
|
}
|
|
1336
1336
|
}), e.events = r;
|
|
1337
|
-
function s(
|
|
1337
|
+
function s(f, g, x, E) {
|
|
1338
1338
|
const T = ue(E);
|
|
1339
|
-
let L = Ze(n, (M) => M.eventTarget ===
|
|
1339
|
+
let L = Ze(n, (M) => M.eventTarget === f);
|
|
1340
1340
|
L || (L = {
|
|
1341
|
-
eventTarget:
|
|
1341
|
+
eventTarget: f,
|
|
1342
1342
|
events: {}
|
|
1343
|
-
}, n.push(L)), L.events[g] || (L.events[g] = []),
|
|
1343
|
+
}, n.push(L)), L.events[g] || (L.events[g] = []), f.addEventListener && !Ji(L.events[g], x) && (f.addEventListener(g, x, r.supportsOptions ? T : T.capture), L.events[g].push(x));
|
|
1344
1344
|
}
|
|
1345
|
-
function a(
|
|
1346
|
-
const T = ue(E), L = Pe(n, (h) => h.eventTarget ===
|
|
1345
|
+
function a(f, g, x, E) {
|
|
1346
|
+
const T = ue(E), L = Pe(n, (h) => h.eventTarget === f), M = n[L];
|
|
1347
1347
|
if (!M || !M.events)
|
|
1348
1348
|
return;
|
|
1349
1349
|
if (g === "all") {
|
|
1350
1350
|
for (g in M.events)
|
|
1351
|
-
M.events.hasOwnProperty(g) && a(
|
|
1351
|
+
M.events.hasOwnProperty(g) && a(f, g, "all");
|
|
1352
1352
|
return;
|
|
1353
1353
|
}
|
|
1354
1354
|
let C = !1;
|
|
@@ -1356,18 +1356,18 @@ function pr(e) {
|
|
|
1356
1356
|
if (v) {
|
|
1357
1357
|
if (x === "all") {
|
|
1358
1358
|
for (let h = v.length - 1; h >= 0; h--)
|
|
1359
|
-
a(
|
|
1359
|
+
a(f, g, v[h], T);
|
|
1360
1360
|
return;
|
|
1361
1361
|
} else
|
|
1362
1362
|
for (let h = 0; h < v.length; h++)
|
|
1363
1363
|
if (v[h] === x) {
|
|
1364
|
-
|
|
1364
|
+
f.removeEventListener(g, x, r.supportsOptions ? T : T.capture), v.splice(h, 1), v.length === 0 && (delete M.events[g], C = !0);
|
|
1365
1365
|
break;
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
C && !Object.keys(M.events).length && n.splice(L, 1);
|
|
1369
1369
|
}
|
|
1370
|
-
function l(
|
|
1370
|
+
function l(f, g, x, E, T) {
|
|
1371
1371
|
const L = ue(T);
|
|
1372
1372
|
if (!o[x]) {
|
|
1373
1373
|
o[x] = [];
|
|
@@ -1375,20 +1375,20 @@ function pr(e) {
|
|
|
1375
1375
|
s(v, x, u), s(v, x, d, !0);
|
|
1376
1376
|
}
|
|
1377
1377
|
const M = o[x];
|
|
1378
|
-
let C = Ze(M, (v) => v.selector ===
|
|
1378
|
+
let C = Ze(M, (v) => v.selector === f && v.context === g);
|
|
1379
1379
|
C || (C = {
|
|
1380
|
-
selector:
|
|
1380
|
+
selector: f,
|
|
1381
1381
|
context: g,
|
|
1382
1382
|
listeners: []
|
|
1383
1383
|
}, M.push(C)), C.listeners.push([E, L]);
|
|
1384
1384
|
}
|
|
1385
|
-
function c(
|
|
1385
|
+
function c(f, g, x, E, T) {
|
|
1386
1386
|
const L = ue(T), M = o[x];
|
|
1387
1387
|
let C = !1, v;
|
|
1388
1388
|
if (M)
|
|
1389
1389
|
for (v = M.length - 1; v >= 0; v--) {
|
|
1390
1390
|
const h = M[v];
|
|
1391
|
-
if (h.selector ===
|
|
1391
|
+
if (h.selector === f && h.context === g) {
|
|
1392
1392
|
const {
|
|
1393
1393
|
listeners: N
|
|
1394
1394
|
} = h;
|
|
@@ -1407,8 +1407,8 @@ function pr(e) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
function u(
|
|
1411
|
-
const x = ue(g), E = new gr(
|
|
1410
|
+
function u(f, g) {
|
|
1411
|
+
const x = ue(g), E = new gr(f), T = o[f.type], [L] = Mo(f);
|
|
1412
1412
|
let M = L;
|
|
1413
1413
|
for (; m.element(M); ) {
|
|
1414
1414
|
for (let C = 0; C < T.length; C++) {
|
|
@@ -1431,14 +1431,14 @@ function pr(e) {
|
|
|
1431
1431
|
M = Wt(M);
|
|
1432
1432
|
}
|
|
1433
1433
|
}
|
|
1434
|
-
function d(
|
|
1435
|
-
return u.call(this,
|
|
1434
|
+
function d(f) {
|
|
1435
|
+
return u.call(this, f, !0);
|
|
1436
1436
|
}
|
|
1437
1437
|
return r;
|
|
1438
1438
|
}
|
|
1439
1439
|
class gr {
|
|
1440
1440
|
constructor(t) {
|
|
1441
|
-
|
|
1441
|
+
p(this, "currentTarget"), p(this, "originalEvent"), p(this, "type"), this.originalEvent = t, Eo(this, t);
|
|
1442
1442
|
}
|
|
1443
1443
|
preventOriginalDefault() {
|
|
1444
1444
|
this.originalEvent.preventDefault();
|
|
@@ -1461,11 +1461,11 @@ function ue(e) {
|
|
|
1461
1461
|
}
|
|
1462
1462
|
const mr = {
|
|
1463
1463
|
id: "events",
|
|
1464
|
-
install:
|
|
1464
|
+
install: fr
|
|
1465
1465
|
};
|
|
1466
1466
|
class vr {
|
|
1467
1467
|
constructor(t, n, o, i, r) {
|
|
1468
|
-
|
|
1468
|
+
p(this, "id"), p(this, "pointer"), p(this, "event"), p(this, "downTime"), p(this, "downTarget"), this.id = t, this.pointer = n, this.event = o, this.downTime = i, this.downTarget = r;
|
|
1469
1469
|
}
|
|
1470
1470
|
}
|
|
1471
1471
|
let en;
|
|
@@ -1482,23 +1482,23 @@ class br {
|
|
|
1482
1482
|
pointerType: t,
|
|
1483
1483
|
scopeFire: n
|
|
1484
1484
|
}) {
|
|
1485
|
-
|
|
1485
|
+
p(this, "interactable", null), p(this, "element", null), p(this, "rect", null), p(this, "_rects"), p(this, "edges", null), p(this, "_scopeFire"), p(this, "prepared", {
|
|
1486
1486
|
name: null,
|
|
1487
1487
|
axis: null,
|
|
1488
1488
|
edges: null
|
|
1489
|
-
}),
|
|
1489
|
+
}), p(this, "pointerType"), p(this, "pointers", []), p(this, "downEvent", null), p(this, "downPointer", {}), p(this, "_latestPointer", {
|
|
1490
1490
|
pointer: null,
|
|
1491
1491
|
event: null,
|
|
1492
1492
|
eventTarget: null
|
|
1493
|
-
}),
|
|
1493
|
+
}), p(this, "prevEvent", null), p(this, "pointerIsDown", !1), p(this, "pointerWasMoved", !1), p(this, "_interacting", !1), p(this, "_ending", !1), p(this, "_stopped", !0), p(this, "_proxy", null), p(this, "simulation", null), p(this, "doMove", ge(function(i) {
|
|
1494
1494
|
this.move(i);
|
|
1495
|
-
}, "The interaction.doMove() method has been renamed to interaction.move()")),
|
|
1495
|
+
}, "The interaction.doMove() method has been renamed to interaction.move()")), p(this, "coords", {
|
|
1496
1496
|
start: ce(),
|
|
1497
1497
|
prev: ce(),
|
|
1498
1498
|
cur: ce(),
|
|
1499
1499
|
delta: ce(),
|
|
1500
1500
|
velocity: ce()
|
|
1501
|
-
}),
|
|
1501
|
+
}), p(this, "_id", yr++), this._scopeFire = n, this.pointerType = t;
|
|
1502
1502
|
const o = this;
|
|
1503
1503
|
this._proxy = {};
|
|
1504
1504
|
for (const i in en)
|
|
@@ -1813,7 +1813,7 @@ function Ir(e) {
|
|
|
1813
1813
|
t[r] = Io(r, e);
|
|
1814
1814
|
const n = Mt.pEventTypes;
|
|
1815
1815
|
let o;
|
|
1816
|
-
|
|
1816
|
+
ft.PointerEvent ? o = [{
|
|
1817
1817
|
type: n.down,
|
|
1818
1818
|
listener: i
|
|
1819
1819
|
}, {
|
|
@@ -1903,8 +1903,8 @@ function Io(e, t) {
|
|
|
1903
1903
|
eventTarget: r,
|
|
1904
1904
|
curEventTarget: s,
|
|
1905
1905
|
scope: t
|
|
1906
|
-
},
|
|
1907
|
-
a.push([d.pointer, d.eventTarget, d.curEventTarget,
|
|
1906
|
+
}, f = On(d);
|
|
1907
|
+
a.push([d.pointer, d.eventTarget, d.curEventTarget, f]);
|
|
1908
1908
|
}
|
|
1909
1909
|
} else {
|
|
1910
1910
|
let l = !1;
|
|
@@ -1988,7 +1988,7 @@ const zr = {
|
|
|
1988
1988
|
}, Cr = zr;
|
|
1989
1989
|
class Dr {
|
|
1990
1990
|
constructor() {
|
|
1991
|
-
|
|
1991
|
+
p(this, "id", `__interact_scope_${Math.floor(Math.random() * 100)}`), p(this, "isInitialized", !1), p(this, "listenerMaps", []), p(this, "browser", Mt), p(this, "defaults", oe(wo)), p(this, "Eventable", yo), p(this, "actions", {
|
|
1992
1992
|
map: {},
|
|
1993
1993
|
phases: {
|
|
1994
1994
|
start: !0,
|
|
@@ -1997,10 +1997,10 @@ class Dr {
|
|
|
1997
1997
|
},
|
|
1998
1998
|
methodDict: {},
|
|
1999
1999
|
phaselessTypes: {}
|
|
2000
|
-
}),
|
|
2000
|
+
}), p(this, "interactStatic", dr(this)), p(this, "InteractEvent", hn), p(this, "Interactable"), p(this, "interactables", new pr(this)), p(this, "_win"), p(this, "document"), p(this, "window"), p(this, "documents", []), p(this, "_plugins", {
|
|
2001
2001
|
list: [],
|
|
2002
2002
|
map: {}
|
|
2003
|
-
}),
|
|
2003
|
+
}), p(this, "onWindowUnload", (n) => this.removeDocument(n.target));
|
|
2004
2004
|
const t = this;
|
|
2005
2005
|
this.Interactable = class extends hr {
|
|
2006
2006
|
get _defaults() {
|
|
@@ -2104,7 +2104,7 @@ class Dr {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
2106
2106
|
function Pr(e, t) {
|
|
2107
|
-
return e.isInitialized = !0, m.window(t) && so(t),
|
|
2107
|
+
return e.isInitialized = !0, m.window(t) && so(t), ft.init(t), Mt.init(t), te.init(t), e.window = t, e.document = t.document, e.usePlugin(Cr), e.usePlugin(mr), e;
|
|
2108
2108
|
}
|
|
2109
2109
|
function Rn(e) {
|
|
2110
2110
|
return e && e.replace(/\/.*$/, "");
|
|
@@ -2156,15 +2156,15 @@ const A = {
|
|
|
2156
2156
|
if (c.x || c.y) {
|
|
2157
2157
|
const u = Nn(r);
|
|
2158
2158
|
m.window(r) ? r.scrollBy(c.x, c.y) : r && (r.scrollLeft += c.x, r.scrollTop += c.y);
|
|
2159
|
-
const d = Nn(r),
|
|
2159
|
+
const d = Nn(r), f = {
|
|
2160
2160
|
x: d.x - u.x,
|
|
2161
2161
|
y: d.y - u.y
|
|
2162
2162
|
};
|
|
2163
|
-
(
|
|
2163
|
+
(f.x || f.y) && t.fire({
|
|
2164
2164
|
type: "autoscroll",
|
|
2165
2165
|
target: n,
|
|
2166
2166
|
interactable: t,
|
|
2167
|
-
delta:
|
|
2167
|
+
delta: f,
|
|
2168
2168
|
interaction: e,
|
|
2169
2169
|
container: r
|
|
2170
2170
|
});
|
|
@@ -2527,8 +2527,8 @@ const Vr = () => {
|
|
|
2527
2527
|
y: null
|
|
2528
2528
|
};
|
|
2529
2529
|
for (const [c, u] of t) {
|
|
2530
|
-
const d = Math.round((o - a.x) / e[c]),
|
|
2531
|
-
l[c] = Math.max(s.left, Math.min(s.right, d * e[c] + a.x)), l[u] = Math.max(s.top, Math.min(s.bottom,
|
|
2530
|
+
const d = Math.round((o - a.x) / e[c]), f = Math.round((i - a.y) / e[u]);
|
|
2531
|
+
l[c] = Math.max(s.left, Math.min(s.right, d * e[c] + a.x)), l[u] = Math.max(s.top, Math.min(s.bottom, f * e[u] + a.y));
|
|
2532
2532
|
}
|
|
2533
2533
|
return l;
|
|
2534
2534
|
};
|
|
@@ -2549,12 +2549,12 @@ const Vr = () => {
|
|
|
2549
2549
|
}, ts = Zr;
|
|
2550
2550
|
class Co {
|
|
2551
2551
|
constructor(t) {
|
|
2552
|
-
|
|
2552
|
+
p(this, "states", []), p(this, "startOffset", {
|
|
2553
2553
|
left: 0,
|
|
2554
2554
|
right: 0,
|
|
2555
2555
|
top: 0,
|
|
2556
2556
|
bottom: 0
|
|
2557
|
-
}),
|
|
2557
|
+
}), p(this, "startDelta"), p(this, "result"), p(this, "endResult"), p(this, "startEdges"), p(this, "edges"), p(this, "interaction"), this.interaction = t, this.result = we(), this.edges = {
|
|
2558
2558
|
left: !1,
|
|
2559
2559
|
right: !1,
|
|
2560
2560
|
top: !1,
|
|
@@ -2598,13 +2598,13 @@ class Co {
|
|
|
2598
2598
|
} = t;
|
|
2599
2599
|
t.coords = D({}, t.pageCoords), t.rect = D({}, r), t.edges = D({}, s);
|
|
2600
2600
|
const a = i ? this.states.slice(i) : this.states, l = we(t.coords, t.rect);
|
|
2601
|
-
for (const
|
|
2601
|
+
for (const f of a) {
|
|
2602
2602
|
var c;
|
|
2603
2603
|
const {
|
|
2604
2604
|
options: g
|
|
2605
|
-
} =
|
|
2605
|
+
} = f, x = D({}, t.coords);
|
|
2606
2606
|
let E = null;
|
|
2607
|
-
(c =
|
|
2607
|
+
(c = f.methods) != null && c.set && this.shouldDo(g, o, n) && (t.state = f, E = f.methods.set(t), un(t.edges, t.rect, {
|
|
2608
2608
|
x: t.coords.x - x.x,
|
|
2609
2609
|
y: t.coords.y - x.y
|
|
2610
2610
|
})), l.eventProps.push(E);
|
|
@@ -2612,8 +2612,8 @@ class Co {
|
|
|
2612
2612
|
D(this.edges, t.edges), l.delta.x = t.coords.x - t.pageCoords.x, l.delta.y = t.coords.y - t.pageCoords.y, l.rectDelta.left = t.rect.left - r.left, l.rectDelta.right = t.rect.right - r.right, l.rectDelta.top = t.rect.top - r.top, l.rectDelta.bottom = t.rect.bottom - r.bottom;
|
|
2613
2613
|
const u = this.result.coords, d = this.result.rect;
|
|
2614
2614
|
if (u && d) {
|
|
2615
|
-
const
|
|
2616
|
-
l.changed =
|
|
2615
|
+
const f = l.rect.left !== d.left || l.rect.right !== d.right || l.rect.top !== d.top || l.rect.bottom !== d.bottom;
|
|
2616
|
+
l.changed = f || u.x !== l.coords.x || u.y !== l.coords.y;
|
|
2617
2617
|
}
|
|
2618
2618
|
return l;
|
|
2619
2619
|
}
|
|
@@ -2627,8 +2627,8 @@ class Co {
|
|
|
2627
2627
|
startDelta: a
|
|
2628
2628
|
} = this, l = s.delta;
|
|
2629
2629
|
o === "start" && D(this.startDelta, s.delta);
|
|
2630
|
-
for (const [d,
|
|
2631
|
-
d.page.x +=
|
|
2630
|
+
for (const [d, f] of [[r, a], [i, l]])
|
|
2631
|
+
d.page.x += f.x, d.page.y += f.y, d.client.x += f.x, d.client.y += f.y;
|
|
2632
2632
|
const {
|
|
2633
2633
|
rectDelta: c
|
|
2634
2634
|
} = this.result, u = t.rect || n.rect;
|
|
@@ -3027,7 +3027,7 @@ const ds = {
|
|
|
3027
3027
|
bottom: 1 / 0,
|
|
3028
3028
|
right: 1 / 0
|
|
3029
3029
|
};
|
|
3030
|
-
function
|
|
3030
|
+
function ps({
|
|
3031
3031
|
interaction: e,
|
|
3032
3032
|
startOffset: t,
|
|
3033
3033
|
state: n
|
|
@@ -3050,7 +3050,7 @@ function fs({
|
|
|
3050
3050
|
right: i.x - t.right
|
|
3051
3051
|
};
|
|
3052
3052
|
}
|
|
3053
|
-
function
|
|
3053
|
+
function fs({
|
|
3054
3054
|
coords: e,
|
|
3055
3055
|
edges: t,
|
|
3056
3056
|
interaction: n,
|
|
@@ -3076,13 +3076,13 @@ const gs = {
|
|
|
3076
3076
|
offset: null,
|
|
3077
3077
|
endOnly: !1,
|
|
3078
3078
|
enabled: !1
|
|
3079
|
-
},
|
|
3079
|
+
}, fe = {
|
|
3080
3080
|
noInner: Po,
|
|
3081
3081
|
noOuter: Ao,
|
|
3082
|
-
start:
|
|
3083
|
-
set:
|
|
3082
|
+
start: ps,
|
|
3083
|
+
set: fs,
|
|
3084
3084
|
defaults: gs
|
|
3085
|
-
}, ms = jt(
|
|
3085
|
+
}, ms = jt(fe, "restrictEdges"), vs = D({
|
|
3086
3086
|
get elementRect() {
|
|
3087
3087
|
return {
|
|
3088
3088
|
top: 0,
|
|
@@ -3105,7 +3105,7 @@ const gs = {
|
|
|
3105
3105
|
height: 1 / 0
|
|
3106
3106
|
};
|
|
3107
3107
|
function Es(e) {
|
|
3108
|
-
return
|
|
3108
|
+
return fe.start(e);
|
|
3109
3109
|
}
|
|
3110
3110
|
function Ss(e) {
|
|
3111
3111
|
const {
|
|
@@ -3121,9 +3121,9 @@ function Ss(e) {
|
|
|
3121
3121
|
const s = An(Gt(r.min, t, e.coords)) || xs, a = An(Gt(r.max, t, e.coords)) || ws;
|
|
3122
3122
|
n.options = {
|
|
3123
3123
|
endOnly: r.endOnly,
|
|
3124
|
-
inner: D({},
|
|
3125
|
-
outer: D({},
|
|
3126
|
-
}, i.top ? (n.options.inner.top = o.bottom - s.height, n.options.outer.top = o.bottom - a.height) : i.bottom && (n.options.inner.bottom = o.top + s.height, n.options.outer.bottom = o.top + a.height), i.left ? (n.options.inner.left = o.right - s.width, n.options.outer.left = o.right - a.width) : i.right && (n.options.inner.right = o.left + s.width, n.options.outer.right = o.left + a.width),
|
|
3124
|
+
inner: D({}, fe.noInner),
|
|
3125
|
+
outer: D({}, fe.noOuter)
|
|
3126
|
+
}, i.top ? (n.options.inner.top = o.bottom - s.height, n.options.outer.top = o.bottom - a.height) : i.bottom && (n.options.inner.bottom = o.top + s.height, n.options.outer.bottom = o.top + a.height), i.left ? (n.options.inner.left = o.right - s.width, n.options.outer.left = o.right - a.width) : i.right && (n.options.inner.right = o.left + s.width, n.options.outer.right = o.left + a.width), fe.set(e), n.options = r;
|
|
3127
3127
|
}
|
|
3128
3128
|
const Ts = {
|
|
3129
3129
|
min: null,
|
|
@@ -3165,8 +3165,8 @@ function Is(e) {
|
|
|
3165
3165
|
const {
|
|
3166
3166
|
relativePoints: u
|
|
3167
3167
|
} = a;
|
|
3168
|
-
r.offsets = i && u && u.length ? u.map((d,
|
|
3169
|
-
index:
|
|
3168
|
+
r.offsets = i && u && u.length ? u.map((d, f) => ({
|
|
3169
|
+
index: f,
|
|
3170
3170
|
relativePoint: d,
|
|
3171
3171
|
x: s.left - i.width * d.x + c.x,
|
|
3172
3172
|
y: s.top - i.height * d.y + c.y
|
|
@@ -3188,13 +3188,13 @@ function zs(e) {
|
|
|
3188
3188
|
} = o, s = dn(t.interactable, t.element, t.prepared.name), a = D({}, n), l = [];
|
|
3189
3189
|
i.offsetWithOrigin || (a.x -= s.x, a.y -= s.y);
|
|
3190
3190
|
for (const u of r) {
|
|
3191
|
-
const d = a.x - u.x,
|
|
3191
|
+
const d = a.x - u.x, f = a.y - u.y;
|
|
3192
3192
|
for (let g = 0, x = i.targets.length; g < x; g++) {
|
|
3193
3193
|
const E = i.targets[g];
|
|
3194
3194
|
let T;
|
|
3195
|
-
m.func(E) ? T = E(d,
|
|
3195
|
+
m.func(E) ? T = E(d, f, t._proxy, u, g) : T = E, T && l.push({
|
|
3196
3196
|
x: (m.number(T.x) ? T.x : d) + u.x,
|
|
3197
|
-
y: (m.number(T.y) ? T.y :
|
|
3197
|
+
y: (m.number(T.y) ? T.y : f) + u.y,
|
|
3198
3198
|
range: m.number(T.range) ? T.range : i.range,
|
|
3199
3199
|
source: E,
|
|
3200
3200
|
index: g,
|
|
@@ -3213,9 +3213,9 @@ function zs(e) {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
};
|
|
3215
3215
|
for (const u of l) {
|
|
3216
|
-
const d = u.range,
|
|
3216
|
+
const d = u.range, f = u.x - a.x, g = u.y - a.y, x = ke(f, g);
|
|
3217
3217
|
let E = x <= d;
|
|
3218
|
-
d === 1 / 0 && c.inRange && c.range !== 1 / 0 && (E = !1), (!c.target || (E ? c.inRange && d !== 1 / 0 ? x / d < c.distance / c.range : d === 1 / 0 && c.range !== 1 / 0 || x < c.distance : !c.inRange && x < c.distance)) && (c.target = u, c.distance = x, c.range = d, c.inRange = E, c.delta.x =
|
|
3218
|
+
d === 1 / 0 && c.inRange && c.range !== 1 / 0 && (E = !1), (!c.target || (E ? c.inRange && d !== 1 / 0 ? x / d < c.distance / c.range : d === 1 / 0 && c.range !== 1 / 0 || x < c.distance : !c.inRange && x < c.distance)) && (c.target = u, c.distance = x, c.range = d, c.inRange = E, c.delta.x = f, c.delta.y = g);
|
|
3219
3219
|
}
|
|
3220
3220
|
return c.inRange && (n.x = c.target.x, n.y = c.target.y), o.closest = c, c;
|
|
3221
3221
|
}
|
|
@@ -3234,11 +3234,11 @@ const Ds = {
|
|
|
3234
3234
|
relativePoints: null,
|
|
3235
3235
|
endOnly: !1,
|
|
3236
3236
|
enabled: !1
|
|
3237
|
-
},
|
|
3237
|
+
}, fn = {
|
|
3238
3238
|
start: Is,
|
|
3239
3239
|
set: zs,
|
|
3240
3240
|
defaults: Ds
|
|
3241
|
-
}, Ps = jt(
|
|
3241
|
+
}, Ps = jt(fn, "snap");
|
|
3242
3242
|
function As(e) {
|
|
3243
3243
|
const {
|
|
3244
3244
|
state: t,
|
|
@@ -3262,7 +3262,7 @@ function As(e) {
|
|
|
3262
3262
|
},
|
|
3263
3263
|
range: o.range
|
|
3264
3264
|
}
|
|
3265
|
-
}, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]],
|
|
3265
|
+
}, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], fn.start(e), t.offsets = e.state.offsets, e.state = t;
|
|
3266
3266
|
}
|
|
3267
3267
|
function ks(e) {
|
|
3268
3268
|
const {
|
|
@@ -3288,7 +3288,7 @@ function ks(e) {
|
|
|
3288
3288
|
n.options.targets.push(c);
|
|
3289
3289
|
}
|
|
3290
3290
|
}
|
|
3291
|
-
const a =
|
|
3291
|
+
const a = fn.set(e);
|
|
3292
3292
|
return n.options = i, a;
|
|
3293
3293
|
}
|
|
3294
3294
|
const Os = {
|
|
@@ -3391,7 +3391,7 @@ const jn = [{
|
|
|
3391
3391
|
const {
|
|
3392
3392
|
element: t
|
|
3393
3393
|
} = e;
|
|
3394
|
-
return e.prepared.name === "resize" && t instanceof
|
|
3394
|
+
return e.prepared.name === "resize" && t instanceof ft.HTMLElement && !ko(t, "boxSizing", /border-box/);
|
|
3395
3395
|
},
|
|
3396
3396
|
text: 'Consider adding CSS "box-sizing: border-box" to this resizable element',
|
|
3397
3397
|
getInfo({
|
|
@@ -3477,7 +3477,7 @@ const Gs = {
|
|
|
3477
3477
|
},
|
|
3478
3478
|
emits: ["container-resized", "resize", "resized", "move", "moved", "dragging", "dragend"],
|
|
3479
3479
|
setup(e, { expose: t, emit: n }) {
|
|
3480
|
-
const o = e, { proxy: i } = Ys(), r = i == null ? void 0 : i.$parent, s = jo("eventBus"), a = k({}), l = k(1), c = k(100), u = k(30), d = k([10, 10]),
|
|
3480
|
+
const o = e, { proxy: i } = Ys(), r = i == null ? void 0 : i.$parent, s = jo("eventBus"), a = k({}), l = k(1), c = k(100), u = k(30), d = k([10, 10]), f = k(1 / 0), g = k(null), x = k(null), E = k(1), T = k(!0), L = k(!0), M = k(!1), C = k(null), v = k(!1), h = k(null), N = k(NaN), w = k(NaN), q = k(NaN), Q = k(NaN), R = k({}), $ = k(!1), b = k(!1), P = k(!1), j = k(null), ot = k(null), J = k(null), et = k(null), z = k(o.x), it = k(o.y), rt = k(o.w), nt = k(o.h), ut = k(null), V = k(null), Vt = Lt(() => x.value && !o.static), ie = Lt(() => (g.value || x.value) && !o.static), Kt = Lt(() => navigator.userAgent.toLowerCase().indexOf("android") !== -1), dt = Lt(() => r != null && r.isMirrored ? !$.value : $.value), Ot = Lt(() => ({
|
|
3481
3481
|
"vue-resizable": Vt.value,
|
|
3482
3482
|
static: o.static,
|
|
3483
3483
|
resizing: v.value,
|
|
@@ -3495,7 +3495,7 @@ const Gs = {
|
|
|
3495
3495
|
), G(
|
|
3496
3496
|
() => o.static,
|
|
3497
3497
|
() => {
|
|
3498
|
-
ye(),
|
|
3498
|
+
ye(), pt();
|
|
3499
3499
|
}
|
|
3500
3500
|
), G(g, () => {
|
|
3501
3501
|
ye();
|
|
@@ -3510,13 +3510,13 @@ const Gs = {
|
|
|
3510
3510
|
ut.value = y;
|
|
3511
3511
|
}
|
|
3512
3512
|
), G(x, () => {
|
|
3513
|
-
|
|
3513
|
+
pt();
|
|
3514
3514
|
}), G(u, () => {
|
|
3515
3515
|
Z(), gt();
|
|
3516
3516
|
}), G(l, () => {
|
|
3517
|
-
|
|
3517
|
+
pt(), Z(), gt();
|
|
3518
3518
|
}), G(c, () => {
|
|
3519
|
-
|
|
3519
|
+
pt(), Z();
|
|
3520
3520
|
}), G(
|
|
3521
3521
|
() => o.x,
|
|
3522
3522
|
(y) => {
|
|
@@ -3538,26 +3538,26 @@ const Gs = {
|
|
|
3538
3538
|
rt.value = y, Z();
|
|
3539
3539
|
}
|
|
3540
3540
|
), G(dt, () => {
|
|
3541
|
-
|
|
3541
|
+
pt(), Z();
|
|
3542
3542
|
}), G(
|
|
3543
3543
|
() => o.minH,
|
|
3544
3544
|
() => {
|
|
3545
|
-
|
|
3545
|
+
pt();
|
|
3546
3546
|
}
|
|
3547
3547
|
), G(
|
|
3548
3548
|
() => o.maxH,
|
|
3549
3549
|
() => {
|
|
3550
|
-
|
|
3550
|
+
pt();
|
|
3551
3551
|
}
|
|
3552
3552
|
), G(
|
|
3553
3553
|
() => o.minW,
|
|
3554
3554
|
() => {
|
|
3555
|
-
|
|
3555
|
+
pt();
|
|
3556
3556
|
}
|
|
3557
3557
|
), G(
|
|
3558
3558
|
() => o.maxW,
|
|
3559
3559
|
() => {
|
|
3560
|
-
|
|
3560
|
+
pt();
|
|
3561
3561
|
}
|
|
3562
3562
|
), G(
|
|
3563
3563
|
() => r == null ? void 0 : r.margin,
|
|
@@ -3587,7 +3587,7 @@ const Gs = {
|
|
|
3587
3587
|
u.value = y;
|
|
3588
3588
|
}
|
|
3589
3589
|
function O(y) {
|
|
3590
|
-
|
|
3590
|
+
f.value = y;
|
|
3591
3591
|
}
|
|
3592
3592
|
function lt() {
|
|
3593
3593
|
$.value = _n() === "rtl", It();
|
|
@@ -3599,7 +3599,7 @@ const Gs = {
|
|
|
3599
3599
|
s.on("updateWidth", B), s.on("compact", K), s.on("setDraggable", ht), s.on("setResizable", bt), s.on("setBounded", St), s.on("setTransformScale", F), s.on("setRowHeight", Y), s.on("setMaxRows", O), s.on("directionchange", lt), s.on("setColNum", ct), $.value = _n() === "rtl", Vn(() => {
|
|
3600
3600
|
s.off("updateWidth", B), s.off("compact", K), s.off("setDraggable", ht), s.off("setResizable", bt), s.off("setBounded", St), s.off("setTransformScale", F), s.off("setRowHeight", Y), s.off("setMaxRows", O), s.off("directionchange", lt), s.off("setColNum", ct), V.value && V.value.unset();
|
|
3601
3601
|
}), Kn(() => {
|
|
3602
|
-
r != null && r.responsive && r.lastBreakpoint ? l.value = Ke(r.lastBreakpoint, r == null ? void 0 : r.cols) : l.value = r == null ? void 0 : r.colNum, u.value = r == null ? void 0 : r.rowHeight, c.value = (r == null ? void 0 : r.width) !== null ? r == null ? void 0 : r.width : 100, d.value = (r == null ? void 0 : r.margin) !== void 0 ? r.margin : [10, 10],
|
|
3602
|
+
r != null && r.responsive && r.lastBreakpoint ? l.value = Ke(r.lastBreakpoint, r == null ? void 0 : r.cols) : l.value = r == null ? void 0 : r.colNum, u.value = r == null ? void 0 : r.rowHeight, c.value = (r == null ? void 0 : r.width) !== null ? r == null ? void 0 : r.width : 100, d.value = (r == null ? void 0 : r.margin) !== void 0 ? r.margin : [10, 10], f.value = r == null ? void 0 : r.maxRows, o.isDraggable === null ? g.value = r == null ? void 0 : r.isDraggable : g.value = o.isDraggable, o.isResizable === null ? x.value = r == null ? void 0 : r.isResizable : x.value = o.isResizable, o.isBounded === null ? ut.value = r == null ? void 0 : r.isBounded : ut.value = o.isBounded, E.value = r == null ? void 0 : r.transformScale, T.value = r == null ? void 0 : r.useCssTransforms, L.value = r == null ? void 0 : r.useStyleCursor, Z();
|
|
3603
3603
|
});
|
|
3604
3604
|
function Z() {
|
|
3605
3605
|
var y, _, U, tt, at;
|
|
@@ -3631,7 +3631,7 @@ const Gs = {
|
|
|
3631
3631
|
let W;
|
|
3632
3632
|
switch (y.type) {
|
|
3633
3633
|
case "resizestart": {
|
|
3634
|
-
|
|
3634
|
+
pt(), j.value = rt.value, ot.value = nt.value, W = _t(z.value, it.value, rt.value, nt.value), X.width = W.width, X.height = W.height, h.value = X, v.value = !0;
|
|
3635
3635
|
break;
|
|
3636
3636
|
}
|
|
3637
3637
|
case "resizemove": {
|
|
@@ -3727,7 +3727,7 @@ const Gs = {
|
|
|
3727
3727
|
function re(y, _) {
|
|
3728
3728
|
const U = $t();
|
|
3729
3729
|
let tt = Math.round((_ - d.value[0]) / (U + d.value[0])), at = Math.round((y - d.value[1]) / (u.value + d.value[1]));
|
|
3730
|
-
return tt = Math.max(Math.min(tt, l.value - rt.value), 0), at = Math.max(Math.min(at,
|
|
3730
|
+
return tt = Math.max(Math.min(tt, l.value - rt.value), 0), at = Math.max(Math.min(at, f.value - nt.value), 0), { x: tt, y: at };
|
|
3731
3731
|
}
|
|
3732
3732
|
function $t() {
|
|
3733
3733
|
return (c.value - d.value[0] * (l.value + 1)) / l.value;
|
|
@@ -3741,7 +3741,7 @@ const Gs = {
|
|
|
3741
3741
|
function xt(y, _, U = !1) {
|
|
3742
3742
|
const tt = $t();
|
|
3743
3743
|
let at = Math.round((_ + d.value[0]) / (tt + d.value[0])), H = 0;
|
|
3744
|
-
return U ? H = Math.ceil((y + d.value[1]) / (u.value + d.value[1])) : H = Math.round((y + d.value[1]) / (u.value + d.value[1])), at = Math.max(Math.min(at, l.value - z.value), 0), H = Math.max(Math.min(H,
|
|
3744
|
+
return U ? H = Math.ceil((y + d.value[1]) / (u.value + d.value[1])) : H = Math.round((y + d.value[1]) / (u.value + d.value[1])), at = Math.max(Math.min(at, l.value - z.value), 0), H = Math.max(Math.min(H, f.value - it.value), 0), { w: at, h: H };
|
|
3745
3745
|
}
|
|
3746
3746
|
function Rt(y, _) {
|
|
3747
3747
|
c.value = y;
|
|
@@ -3764,7 +3764,7 @@ const Gs = {
|
|
|
3764
3764
|
enabled: !1
|
|
3765
3765
|
});
|
|
3766
3766
|
}
|
|
3767
|
-
function
|
|
3767
|
+
function pt() {
|
|
3768
3768
|
if ((V.value === null || V.value === void 0) && (V.value = kt(a.value), L.value || V.value.styleCursor(!1)), x.value && !o.static) {
|
|
3769
3769
|
let y = _t(0, 0, o.maxW, o.maxH), _ = _t(0, 0, o.minW, o.minH);
|
|
3770
3770
|
const U = {
|
|
@@ -4004,13 +4004,13 @@ var $n = Fo.exports, ia = function(e) {
|
|
|
4004
4004
|
s || (g === void 0 && (g = n), r && (d(r), r = null), g ? u() : l());
|
|
4005
4005
|
}
|
|
4006
4006
|
function u() {
|
|
4007
|
-
r =
|
|
4007
|
+
r = f(l);
|
|
4008
4008
|
}
|
|
4009
4009
|
function d(g) {
|
|
4010
4010
|
var x = clearTimeout;
|
|
4011
4011
|
return x(g);
|
|
4012
4012
|
}
|
|
4013
|
-
function
|
|
4013
|
+
function f(g) {
|
|
4014
4014
|
var x = function(E) {
|
|
4015
4015
|
return setTimeout(E, 0);
|
|
4016
4016
|
};
|
|
@@ -4070,10 +4070,10 @@ var aa = {
|
|
|
4070
4070
|
proxy: d
|
|
4071
4071
|
}, c.attachEvent("onresize", d);
|
|
4072
4072
|
else {
|
|
4073
|
-
var
|
|
4074
|
-
if (!
|
|
4073
|
+
var f = a(c);
|
|
4074
|
+
if (!f)
|
|
4075
4075
|
throw new Error("Element is not detectable by this strategy.");
|
|
4076
|
-
|
|
4076
|
+
f.contentDocument.defaultView.addEventListener("resize", d);
|
|
4077
4077
|
}
|
|
4078
4078
|
}
|
|
4079
4079
|
function r(c) {
|
|
@@ -4082,7 +4082,7 @@ var aa = {
|
|
|
4082
4082
|
}
|
|
4083
4083
|
function s(c, u, d) {
|
|
4084
4084
|
d || (d = u, u = c, c = null), c = c || {}, c.debug;
|
|
4085
|
-
function
|
|
4085
|
+
function f(g, x) {
|
|
4086
4086
|
var E = r(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]), T = !1, L = window.getComputedStyle(g), M = g.offsetWidth, C = g.offsetHeight;
|
|
4087
4087
|
o(g).startSize = {
|
|
4088
4088
|
width: M,
|
|
@@ -4125,7 +4125,7 @@ var aa = {
|
|
|
4125
4125
|
}
|
|
4126
4126
|
n ? n.add(v) : v();
|
|
4127
4127
|
}
|
|
4128
|
-
de.isIE(8) ? d(u) :
|
|
4128
|
+
de.isIE(8) ? d(u) : f(u, d);
|
|
4129
4129
|
}
|
|
4130
4130
|
function a(c) {
|
|
4131
4131
|
return o(c).object;
|
|
@@ -4188,7 +4188,7 @@ var aa = {
|
|
|
4188
4188
|
`, R += "@keyframes " + q + " { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }", w(R);
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
function
|
|
4191
|
+
function f(v) {
|
|
4192
4192
|
v.className += " " + a + "_animation_active";
|
|
4193
4193
|
}
|
|
4194
4194
|
function g(v, h, N) {
|
|
@@ -4295,7 +4295,7 @@ var aa = {
|
|
|
4295
4295
|
function V() {
|
|
4296
4296
|
var S = o(h).container;
|
|
4297
4297
|
if (!S) {
|
|
4298
|
-
S = document.createElement("div"), S.className = a, S.style.cssText = c(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), o(h).container = S,
|
|
4298
|
+
S = document.createElement("div"), S.className = a, S.style.cssText = c(["visibility: hidden", "display: inline", "width: 0px", "height: 0px", "z-index: -1", "overflow: hidden", "margin: 0", "padding: 0"]), o(h).container = S, f(S), h.appendChild(S);
|
|
4299
4299
|
var B = function() {
|
|
4300
4300
|
o(h).onRendered && o(h).onRendered();
|
|
4301
4301
|
};
|
|
@@ -4308,12 +4308,12 @@ var aa = {
|
|
|
4308
4308
|
var st = o(h).style;
|
|
4309
4309
|
if (st.position === "static") {
|
|
4310
4310
|
h.style.setProperty("position", "relative", v.important ? "important" : "");
|
|
4311
|
-
var xt = function(Rt, It, ye,
|
|
4311
|
+
var xt = function(Rt, It, ye, pt) {
|
|
4312
4312
|
function be(y) {
|
|
4313
4313
|
return y.replace(/[^-\d\.]/g, "");
|
|
4314
4314
|
}
|
|
4315
|
-
var ae = ye[
|
|
4316
|
-
ae !== "auto" && be(ae) !== "0" && (Rt.warn("An element that is positioned static has style." +
|
|
4315
|
+
var ae = ye[pt];
|
|
4316
|
+
ae !== "auto" && be(ae) !== "0" && (Rt.warn("An element that is positioned static has style." + pt + "=" + ae + " which is ignored due to the static positioning. The element will need to be positioned relative, so the style." + pt + " will be set to 0. Element: ", It), It.style[pt] = 0);
|
|
4317
4317
|
};
|
|
4318
4318
|
xt(t, h, st, "top"), xt(t, h, st, "right"), xt(t, h, st, "bottom"), xt(t, h, st, "left");
|
|
4319
4319
|
}
|
|
@@ -4454,7 +4454,7 @@ var aa = {
|
|
|
4454
4454
|
uninstall: C,
|
|
4455
4455
|
initDocument: l
|
|
4456
4456
|
};
|
|
4457
|
-
}, he = gn.exports.forEach, da = Qs, ha = Js,
|
|
4457
|
+
}, he = gn.exports.forEach, da = Qs, ha = Js, pa = Zs, fa = ta, ga = ea, Xn = mn.exports, ma = ia, Ft = aa, va = la, ya = ua;
|
|
4458
4458
|
function qn(e) {
|
|
4459
4459
|
return Array.isArray(e) || e.length !== void 0;
|
|
4460
4460
|
}
|
|
@@ -4480,7 +4480,7 @@ var ba = function(e) {
|
|
|
4480
4480
|
set: e.idHandler.set
|
|
4481
4481
|
};
|
|
4482
4482
|
else {
|
|
4483
|
-
var n =
|
|
4483
|
+
var n = pa(), o = fa({
|
|
4484
4484
|
idGenerator: n,
|
|
4485
4485
|
stateHandler: Ft
|
|
4486
4486
|
});
|
|
@@ -4495,12 +4495,12 @@ var ba = function(e) {
|
|
|
4495
4495
|
a.callOnAdd = !!Nt(e, "callOnAdd", !0), a.debug = !!Nt(e, "debug", !1);
|
|
4496
4496
|
var l = ha(t), c = da({
|
|
4497
4497
|
stateHandler: Ft
|
|
4498
|
-
}), u, d = Nt(e, "strategy", "object"),
|
|
4498
|
+
}), u, d = Nt(e, "strategy", "object"), f = Nt(e, "important", !1), g = {
|
|
4499
4499
|
reporter: i,
|
|
4500
4500
|
batchProcessor: s,
|
|
4501
4501
|
stateHandler: Ft,
|
|
4502
4502
|
idHandler: t,
|
|
4503
|
-
important:
|
|
4503
|
+
important: f
|
|
4504
4504
|
};
|
|
4505
4505
|
if (d === "scroll" && (Xn.isLegacyOpera() ? (i.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."), d = "object") : Xn.isIE(9) && (i.warn("Scroll strategy is not supported on IE9. Changing to object strategy."), d = "object")), d === "scroll")
|
|
4506
4506
|
u = ya(g);
|
|
@@ -4541,7 +4541,7 @@ var ba = function(e) {
|
|
|
4541
4541
|
});
|
|
4542
4542
|
return;
|
|
4543
4543
|
}
|
|
4544
|
-
return R && i.log(b, "Making detectable..."), c.markBusy($, !0), u.makeDetectable({ debug: R, important:
|
|
4544
|
+
return R && i.log(b, "Making detectable..."), c.markBusy($, !0), u.makeDetectable({ debug: R, important: f }, $, function(P) {
|
|
4545
4545
|
if (R && i.log(b, "onElementDetectable"), Ft.getState(P)) {
|
|
4546
4546
|
c.markAsDetectable(P), c.markBusy(P, !1), u.addListener(P, h), N(q, P, v);
|
|
4547
4547
|
var j = Ft.getState(P);
|
|
@@ -4616,7 +4616,7 @@ const xa = {
|
|
|
4616
4616
|
},
|
|
4617
4617
|
emits: ["layout-created", "layout-before-mount", "layout-mounted", "layout-updated", "layout-ready", "update:layout", "breakpoint-changed"],
|
|
4618
4618
|
setup(e, { expose: t, emit: n }) {
|
|
4619
|
-
const o = e, i = k(null), r = k({}), s = k(0), a = k(!1), l = k({ x: 0, y: 0, w: 0, h: 0, i: -1 }), c = k({}), u = k(null), d = k(null),
|
|
4619
|
+
const o = e, i = k(null), r = k({}), s = k(0), a = k(!1), l = k({ x: 0, y: 0, w: 0, h: 0, i: -1 }), c = k({}), u = k(null), d = k(null), f = k(null), g = k(), x = k({}), E = k(), T = Vs();
|
|
4620
4620
|
Bo("eventBus", T);
|
|
4621
4621
|
function L(b) {
|
|
4622
4622
|
if (!b)
|
|
@@ -4635,17 +4635,17 @@ const xa = {
|
|
|
4635
4635
|
}
|
|
4636
4636
|
}
|
|
4637
4637
|
T.on("resizeEvent", L), T.on("dragEvent", M), n("layout-created", o.layout), Vn(() => {
|
|
4638
|
-
T.off("resizeEvent", L), T.off("dragEvent", M), wi("resize", h),
|
|
4638
|
+
T.off("resizeEvent", L), T.off("dragEvent", M), wi("resize", h), f.value && f.value.uninstall(x.value);
|
|
4639
4639
|
}), Lo(() => {
|
|
4640
4640
|
n("layout-before-mount", o.layout);
|
|
4641
4641
|
}), Kn(() => {
|
|
4642
4642
|
n("layout-mounted", o.layout), yt(function() {
|
|
4643
|
-
|
|
4643
|
+
pi(o.layout), d.value = o.layout, yt(() => {
|
|
4644
4644
|
R(), h(), xi("resize", h), Zt(o.layout, o.verticalCompact), n("layout-updated", o.layout), v(), yt(() => {
|
|
4645
|
-
|
|
4645
|
+
f.value = ba({
|
|
4646
4646
|
strategy: "scroll",
|
|
4647
4647
|
callOnAdd: !1
|
|
4648
|
-
}),
|
|
4648
|
+
}), f.value.listenTo(x.value, function() {
|
|
4649
4649
|
h();
|
|
4650
4650
|
});
|
|
4651
4651
|
});
|
|
@@ -4809,7 +4809,7 @@ const xa = {
|
|
|
4809
4809
|
layouts: c,
|
|
4810
4810
|
lastBreakpoint: u,
|
|
4811
4811
|
originalLayout: d,
|
|
4812
|
-
erd:
|
|
4812
|
+
erd: f,
|
|
4813
4813
|
defaultGridItem: E,
|
|
4814
4814
|
dragEvent: w
|
|
4815
4815
|
}), (b, P) => (vt(), Pt("div", {
|
|
@@ -4871,7 +4871,7 @@ const xa = {
|
|
|
4871
4871
|
filter: c,
|
|
4872
4872
|
filterError: u,
|
|
4873
4873
|
globalCompletion: d,
|
|
4874
|
-
showAddItemModal:
|
|
4874
|
+
showAddItemModal: f,
|
|
4875
4875
|
showQueryEditor: g,
|
|
4876
4876
|
showMarkdownEditor: x,
|
|
4877
4877
|
editingItem: E,
|
|
@@ -5056,7 +5056,7 @@ const xa = {
|
|
|
5056
5056
|
], 4)
|
|
5057
5057
|
])),
|
|
5058
5058
|
Bt(Qo, {
|
|
5059
|
-
show: I(
|
|
5059
|
+
show: I(f),
|
|
5060
5060
|
onAdd: I(Q),
|
|
5061
5061
|
onClose: I(P)
|
|
5062
5062
|
}, null, 8, ["show", "onAdd", "onClose"]),
|