@turquoisehealth/pit-viper 2.150.1-dev.0 → 2.151.0
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/_site/assets/css/pit-viper-a11y.css +15 -0
- package/_site/assets/css/pit-viper-consumer.css +15 -0
- package/_site/assets/css/pit-viper-v2-scoped.css +15 -0
- package/_site/assets/css/pit-viper-v2.css +15 -0
- package/_site/assets/css/pit-viper.css +15 -0
- package/package.json +1 -1
- package/pv-components/dist/stats/vue/base/stats.html +1 -1
- package/pv-components/dist/stats/vue/visualizations/stats.html +1 -1
- package/pv-components/dist/stats/web/pv-accordion-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-menu-stats.html +4949 -0
- package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-query-builder-input-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-segmented-control-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-select-button-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-toggle-group-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +1 -1
- package/pv-components/dist/stats/web/pv-tree-stats.html +1 -1
- package/pv-components/dist/vue/base/components/base/PvAccordion/PvAccordion.vue.d.ts +1 -0
- package/pv-components/dist/vue/base/components/base/PvMenu/PvMenu.vue.d.ts +15 -182
- package/pv-components/dist/vue/base/components/base/PvMenu/types.d.ts +10 -0
- package/pv-components/dist/vue/base/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/base/pv-components-base.mjs +2411 -2418
- package/pv-components/dist/vue/base/pv-components-base.mjs.map +1 -1
- package/pv-components/dist/vue/visualizations/components/base/PvAccordion/PvAccordion.vue.d.ts +1 -0
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/PvMenu.vue.d.ts +15 -182
- package/pv-components/dist/vue/visualizations/components/base/PvMenu/types.d.ts +10 -0
- package/pv-components/dist/vue/visualizations/components/base/index.d.ts +2 -0
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +2588 -2600
- package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs.map +1 -1
- package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +59 -50
- package/pv-components/dist/web/components/pv-menu/pv-menu.js +6607 -0
- package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +1520 -1489
- package/pv-components/dist/web/components/pv-query-builder-input/pv-query-builder-input.js +1146 -1180
- package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +1986 -1941
- package/pv-components/dist/web/components/pv-tree/pv-tree.js +149 -140
- package/pv-components/dist/web/pv-components.iife.js +49 -49
- package/pv-components/dist/web/pv-components.iife.js.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import $r, { defineComponent as Kt, computed as bt, createElementBlock as Tt, openBlock as k, normalizeClass as Bt, toDisplayString as Wn, ref as Zt, getCurrentInstance as Rr, createElementVNode as Qt, mergeModels as
|
|
1
|
+
import $r, { defineComponent as Kt, computed as bt, createElementBlock as Tt, openBlock as k, normalizeClass as Bt, toDisplayString as Wn, ref as Zt, getCurrentInstance as Rr, createElementVNode as Qt, mergeModels as un, useModel as Be, normalizeStyle as We, createBlock as gt, createCommentVNode as Ut, renderSlot as cn, Fragment as vr, withDirectives as Xe, vModelCheckbox as wr, createVNode as Jt, provide as Pn, inject as An, resolveComponent as gr, resolveDynamicComponent as ge, withModifiers as fn, unref as U, withCtx as _t, vShow as vn, watch as Mr, nextTick as jr, renderList as Nr, defineCustomElement as Fr } from "vue";
|
|
2
2
|
function Lr(e) {
|
|
3
3
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
4
|
}
|
|
@@ -21,7 +21,7 @@ function Br(e) {
|
|
|
21
21
|
});
|
|
22
22
|
}), n;
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var rn = { exports: {} };
|
|
25
25
|
/**!
|
|
26
26
|
* Sortable 1.14.0
|
|
27
27
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -49,13 +49,13 @@ function qt(e) {
|
|
|
49
49
|
}
|
|
50
50
|
return e;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function on(e) {
|
|
53
53
|
"@babel/helpers - typeof";
|
|
54
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
54
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? on = function(r) {
|
|
55
55
|
return typeof r;
|
|
56
|
-
} :
|
|
56
|
+
} : on = function(r) {
|
|
57
57
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
58
|
-
},
|
|
58
|
+
}, on(e);
|
|
59
59
|
}
|
|
60
60
|
function Ur(e, r, n) {
|
|
61
61
|
return r in e ? Object.defineProperty(e, r, {
|
|
@@ -123,7 +123,7 @@ function te(e) {
|
|
|
123
123
|
if (typeof window < "u" && window.navigator)
|
|
124
124
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
125
125
|
}
|
|
126
|
-
var ee = te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
126
|
+
var ee = te(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ze = te(/Edge/i), er = te(/firefox/i), Ue = te(/safari/i) && !te(/chrome/i) && !te(/android/i), pr = te(/iP(ad|od|hone)/i), Jr = te(/chrome/i) && te(/android/i), hr = {
|
|
127
127
|
capture: !1,
|
|
128
128
|
passive: !1
|
|
129
129
|
};
|
|
@@ -133,7 +133,7 @@ function q(e, r, n) {
|
|
|
133
133
|
function Q(e, r, n) {
|
|
134
134
|
e.removeEventListener(r, n, !ee && hr);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function gn(e, r) {
|
|
137
137
|
if (r) {
|
|
138
138
|
if (r[0] === ">" && (r = r.substring(1)), e)
|
|
139
139
|
try {
|
|
@@ -156,7 +156,7 @@ function Xt(e, r, n, i) {
|
|
|
156
156
|
if (e) {
|
|
157
157
|
n = n || document;
|
|
158
158
|
do {
|
|
159
|
-
if (r != null && (r[0] === ">" ? e.parentNode === n &&
|
|
159
|
+
if (r != null && (r[0] === ">" ? e.parentNode === n && gn(e, r) : gn(e, r)) || i && e === n)
|
|
160
160
|
return e;
|
|
161
161
|
if (e === n) break;
|
|
162
162
|
} while (e = Zr(e));
|
|
@@ -253,7 +253,7 @@ function Ie(e, r, n, i) {
|
|
|
253
253
|
return null;
|
|
254
254
|
}
|
|
255
255
|
function Xn(e, r) {
|
|
256
|
-
for (var n = e.lastElementChild; n && (n === H.ghost || L(n, "display") === "none" || r && !
|
|
256
|
+
for (var n = e.lastElementChild; n && (n === H.ghost || L(n, "display") === "none" || r && !gn(n, r)); )
|
|
257
257
|
n = n.previousElementSibling;
|
|
258
258
|
return n || null;
|
|
259
259
|
}
|
|
@@ -262,7 +262,7 @@ function pt(e, r) {
|
|
|
262
262
|
if (!e || !e.parentNode)
|
|
263
263
|
return -1;
|
|
264
264
|
for (; e = e.previousElementSibling; )
|
|
265
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== H.clone && (!r ||
|
|
265
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== H.clone && (!r || gn(e, r)) && n++;
|
|
266
266
|
return n;
|
|
267
267
|
}
|
|
268
268
|
function or(e) {
|
|
@@ -400,7 +400,7 @@ function eo(e, r, n, i) {
|
|
|
400
400
|
}
|
|
401
401
|
var ye = [], $n = {
|
|
402
402
|
initializeByDefault: !0
|
|
403
|
-
},
|
|
403
|
+
}, Ye = {
|
|
404
404
|
mount: function(r) {
|
|
405
405
|
for (var n in $n)
|
|
406
406
|
$n.hasOwnProperty(n) && !(n in r) && (r[n] = $n[n]);
|
|
@@ -454,11 +454,11 @@ function je(e) {
|
|
|
454
454
|
var r = e.sortable, n = e.rootEl, i = e.name, o = e.targetEl, d = e.cloneEl, t = e.toEl, a = e.fromEl, s = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, c = e.newDraggableIndex, f = e.originalEvent, v = e.putSortable, g = e.extraEventProperties;
|
|
455
455
|
if (r = r || n && n[At], !!r) {
|
|
456
456
|
var p, h = r.options, m = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
457
|
-
window.CustomEvent && !ee && !
|
|
457
|
+
window.CustomEvent && !ee && !ze ? p = new CustomEvent(i, {
|
|
458
458
|
bubbles: !0,
|
|
459
459
|
cancelable: !0
|
|
460
460
|
}) : (p = document.createEvent("Event"), p.initEvent(i, !0, !0)), p.to = t || n, p.from = a || n, p.item = o || n, p.clone = d, p.oldIndex = s, p.newIndex = l, p.oldDraggableIndex = u, p.newDraggableIndex = c, p.originalEvent = f, p.pullMode = v ? v.lastPutMode : void 0;
|
|
461
|
-
var y = qt(qt({}, g),
|
|
461
|
+
var y = qt(qt({}, g), Ye.getEventProperties(i, r));
|
|
462
462
|
for (var P in y)
|
|
463
463
|
p[P] = y[P];
|
|
464
464
|
n && n.dispatchEvent(p), h[m] && h[m].call(r, p);
|
|
@@ -466,13 +466,13 @@ function je(e) {
|
|
|
466
466
|
}
|
|
467
467
|
var no = ["evt"], wt = function(r, n) {
|
|
468
468
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.evt, d = Kr(i, no);
|
|
469
|
-
|
|
469
|
+
Ye.pluginEvent.bind(H)(r, n, qt({
|
|
470
470
|
dragEl: M,
|
|
471
471
|
parentEl: ft,
|
|
472
472
|
ghostEl: J,
|
|
473
473
|
rootEl: it,
|
|
474
474
|
nextEl: ve,
|
|
475
|
-
lastDownEl:
|
|
475
|
+
lastDownEl: an,
|
|
476
476
|
cloneEl: vt,
|
|
477
477
|
cloneHidden: se,
|
|
478
478
|
dragStarted: Ne,
|
|
@@ -512,7 +512,7 @@ function $t(e) {
|
|
|
512
512
|
newDraggableIndex: ie
|
|
513
513
|
}, e));
|
|
514
514
|
}
|
|
515
|
-
var M, ft, J, it, ve,
|
|
515
|
+
var M, ft, J, it, ve, an, vt, se, Ee, Ft, Ke, ie, ke, Dt, xe = !1, pn = !1, hn = [], ce, Ht, Rn, wn, ir, sr, Ne, be, Ve, He = !1, qe = !1, sn, Pt, Mn = [], Gn = !1, mn = [], On = typeof document < "u", _e = pr, lr = ze || ee ? "cssFloat" : "float", ro = On && !Jr && !pr && "draggable" in document.createElement("div"), Sr = (function() {
|
|
516
516
|
if (On) {
|
|
517
517
|
if (ee)
|
|
518
518
|
return !1;
|
|
@@ -535,7 +535,7 @@ var M, ft, J, it, ve, on, vt, se, Ee, Ft, Ke, ie, Qe, Dt, xe = !1, gn = !1, pn =
|
|
|
535
535
|
return o === a || d === s || o + t / 2 === a + l / 2;
|
|
536
536
|
}, ao = function(r, n) {
|
|
537
537
|
var i;
|
|
538
|
-
return
|
|
538
|
+
return hn.some(function(o) {
|
|
539
539
|
var d = o[At].options.emptyInsertThreshold;
|
|
540
540
|
if (!(!d || Xn(o))) {
|
|
541
541
|
var t = st(o), a = r >= t.left - d && r <= t.right + d, s = n >= t.top - d && n <= t.bottom + d;
|
|
@@ -560,7 +560,7 @@ var M, ft, J, it, ve, on, vt, se, Ee, Ft, Ke, ie, Qe, Dt, xe = !1, gn = !1, pn =
|
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
562
|
var i = {}, o = r.group;
|
|
563
|
-
(!o ||
|
|
563
|
+
(!o || on(o) != "object") && (o = {
|
|
564
564
|
name: o
|
|
565
565
|
}), i.name = o.name, i.checkPull = n(o.pull, !0), i.checkPut = n(o.put), i.revertClone = o.revertClone, r.group = i;
|
|
566
566
|
}, Or = function() {
|
|
@@ -569,8 +569,8 @@ var M, ft, J, it, ve, on, vt, se, Ee, Ft, Ke, ie, Qe, Dt, xe = !1, gn = !1, pn =
|
|
|
569
569
|
!Sr && J && L(J, "display", "");
|
|
570
570
|
};
|
|
571
571
|
On && document.addEventListener("click", function(e) {
|
|
572
|
-
if (
|
|
573
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
572
|
+
if (pn)
|
|
573
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), pn = !1, !1;
|
|
574
574
|
}, !0);
|
|
575
575
|
var fe = function(r) {
|
|
576
576
|
if (M) {
|
|
@@ -635,13 +635,13 @@ function H(e, r) {
|
|
|
635
635
|
supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && !Ue,
|
|
636
636
|
emptyInsertThreshold: 5
|
|
637
637
|
};
|
|
638
|
-
|
|
638
|
+
Ye.initializePlugins(this, e, n);
|
|
639
639
|
for (var i in n)
|
|
640
640
|
!(i in r) && (r[i] = n[i]);
|
|
641
641
|
Er(r);
|
|
642
642
|
for (var o in this)
|
|
643
643
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
644
|
-
this.nativeDraggable = r.forceFallback ? !1 : ro, this.nativeDraggable && (this.options.touchStartThreshold = 1), r.supportPointer ? q(e, "pointerdown", this._onTapStart) : (q(e, "mousedown", this._onTapStart), q(e, "touchstart", this._onTapStart)), this.nativeDraggable && (q(e, "dragover", this), q(e, "dragenter", this)),
|
|
644
|
+
this.nativeDraggable = r.forceFallback ? !1 : ro, this.nativeDraggable && (this.options.touchStartThreshold = 1), r.supportPointer ? q(e, "pointerdown", this._onTapStart) : (q(e, "mousedown", this._onTapStart), q(e, "touchstart", this._onTapStart)), this.nativeDraggable && (q(e, "dragover", this), q(e, "dragenter", this)), hn.push(this.el), r.store && r.store.get && this.sort(r.store.get(this) || []), Gt(this, _r());
|
|
645
645
|
}
|
|
646
646
|
H.prototype = /** @lends Sortable.prototype */
|
|
647
647
|
{
|
|
@@ -655,7 +655,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
655
655
|
_onTapStart: function(r) {
|
|
656
656
|
if (r.cancelable) {
|
|
657
657
|
var n = this, i = this.el, o = this.options, d = o.preventOnFilter, t = r.type, a = r.touches && r.touches[0] || r.pointerType && r.pointerType === "touch" && r, s = (a || r).target, l = r.target.shadowRoot && (r.path && r.path[0] || r.composedPath && r.composedPath()[0]) || s, u = o.filter;
|
|
658
|
-
if (po(i), !M && !(/mousedown|pointerdown/.test(t) && r.button !== 0 || o.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Ue && s && s.tagName.toUpperCase() === "SELECT") && (s = Xt(s, o.draggable, i, !1), !(s && s.animated) &&
|
|
658
|
+
if (po(i), !M && !(/mousedown|pointerdown/.test(t) && r.button !== 0 || o.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Ue && s && s.tagName.toUpperCase() === "SELECT") && (s = Xt(s, o.draggable, i, !1), !(s && s.animated) && an !== s)) {
|
|
659
659
|
if (Ee = pt(s), Ke = pt(s, o.draggable), typeof u == "function") {
|
|
660
660
|
if (u.call(this, r, s, this)) {
|
|
661
661
|
$t({
|
|
@@ -694,7 +694,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
694
694
|
var o = this, d = o.el, t = o.options, a = d.ownerDocument, s;
|
|
695
695
|
if (i && !M && i.parentNode === d) {
|
|
696
696
|
var l = st(i);
|
|
697
|
-
if (it = d, M = i, ft = M.parentNode, ve = M.nextSibling,
|
|
697
|
+
if (it = d, M = i, ft = M.parentNode, ve = M.nextSibling, an = i, ke = t.group, H.dragged = M, ce = {
|
|
698
698
|
target: M,
|
|
699
699
|
clientX: (n || r).clientX,
|
|
700
700
|
clientY: (n || r).clientY
|
|
@@ -714,7 +714,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
714
714
|
mr(M, u.trim(), jn);
|
|
715
715
|
}), q(a, "dragover", fe), q(a, "mousemove", fe), q(a, "touchmove", fe), q(a, "mouseup", o._onDrop), q(a, "touchend", o._onDrop), q(a, "touchcancel", o._onDrop), er && this.nativeDraggable && (this.options.touchStartThreshold = 4, M.draggable = !0), wt("delayStart", this, {
|
|
716
716
|
evt: r
|
|
717
|
-
}), t.delay && (!t.delayOnTouchOnly || n) && (!this.nativeDraggable || !(
|
|
717
|
+
}), t.delay && (!t.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ze || ee))) {
|
|
718
718
|
if (H.eventCanceled) {
|
|
719
719
|
this._onDrop();
|
|
720
720
|
return;
|
|
@@ -738,7 +738,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
738
738
|
_triggerDragStart: function(r, n) {
|
|
739
739
|
n = n || r.pointerType == "touch" && r, !this.nativeDraggable || n ? this.options.supportPointer ? q(document, "pointermove", this._onTouchMove) : n ? q(document, "touchmove", this._onTouchMove) : q(document, "mousemove", this._onTouchMove) : (q(M, "dragend", this), q(it, "dragstart", this._onDragStart));
|
|
740
740
|
try {
|
|
741
|
-
document.selection ?
|
|
741
|
+
document.selection ? ln(function() {
|
|
742
742
|
document.selection.empty();
|
|
743
743
|
}) : window.getSelection().removeAllRanges();
|
|
744
744
|
} catch {
|
|
@@ -782,7 +782,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
782
782
|
},
|
|
783
783
|
_onTouchMove: function(r) {
|
|
784
784
|
if (ce) {
|
|
785
|
-
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, d = r.touches ? r.touches[0] : r, t = J && pe(J, !0), a = J && t && t.a, s = J && t && t.d, l =
|
|
785
|
+
var n = this.options, i = n.fallbackTolerance, o = n.fallbackOffset, d = r.touches ? r.touches[0] : r, t = J && pe(J, !0), a = J && t && t.a, s = J && t && t.d, l = _e && Pt && or(Pt), u = (d.clientX - ce.clientX + o.x) / (a || 1) + (l ? l[0] - Mn[0] : 0) / (a || 1), c = (d.clientY - ce.clientY + o.y) / (s || 1) + (l ? l[1] - Mn[1] : 0) / (s || 1);
|
|
786
786
|
if (!H.active && !xe) {
|
|
787
787
|
if (i && Math.max(Math.abs(d.clientX - this._lastX), Math.abs(d.clientY - this._lastY)) < i)
|
|
788
788
|
return;
|
|
@@ -805,13 +805,13 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
805
805
|
},
|
|
806
806
|
_appendGhost: function() {
|
|
807
807
|
if (!J) {
|
|
808
|
-
var r = this.options.fallbackOnBody ? document.body : it, n = st(M, !0,
|
|
809
|
-
if (
|
|
808
|
+
var r = this.options.fallbackOnBody ? document.body : it, n = st(M, !0, _e, !0, r), i = this.options;
|
|
809
|
+
if (_e) {
|
|
810
810
|
for (Pt = r; L(Pt, "position") === "static" && L(Pt, "transform") === "none" && Pt !== document; )
|
|
811
811
|
Pt = Pt.parentNode;
|
|
812
812
|
Pt !== document.body && Pt !== document.documentElement ? (Pt === document && (Pt = kt()), n.top += Pt.scrollTop, n.left += Pt.scrollLeft) : Pt = kt(), Mn = or(Pt);
|
|
813
813
|
}
|
|
814
|
-
J = M.cloneNode(!0), dt(J, i.ghostClass, !1), dt(J, i.fallbackClass, !0), dt(J, i.dragClass, !0), L(J, "transition", ""), L(J, "transform", ""), L(J, "box-sizing", "border-box"), L(J, "margin", 0), L(J, "top", n.top), L(J, "left", n.left), L(J, "width", n.width), L(J, "height", n.height), L(J, "opacity", "0.8"), L(J, "position",
|
|
814
|
+
J = M.cloneNode(!0), dt(J, i.ghostClass, !1), dt(J, i.fallbackClass, !0), dt(J, i.dragClass, !0), L(J, "transition", ""), L(J, "transform", ""), L(J, "box-sizing", "border-box"), L(J, "margin", 0), L(J, "top", n.top), L(J, "left", n.left), L(J, "width", n.width), L(J, "height", n.height), L(J, "opacity", "0.8"), L(J, "position", _e ? "absolute" : "fixed"), L(J, "zIndex", "100000"), L(J, "pointerEvents", "none"), H.ghost = J, r.appendChild(J), L(J, "transform-origin", ir / parseInt(J.style.width) * 100 + "% " + sr / parseInt(J.style.height) * 100 + "%");
|
|
815
815
|
}
|
|
816
816
|
},
|
|
817
817
|
_onDragStart: function(r, n) {
|
|
@@ -822,16 +822,16 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
822
822
|
this._onDrop();
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
|
-
wt("setupClone", this), H.eventCanceled || (vt = zn(M), vt.draggable = !1, vt.style["will-change"] = "", this._hideClone(), dt(vt, this.options.chosenClass, !1), H.clone = vt), i.cloneId =
|
|
825
|
+
wt("setupClone", this), H.eventCanceled || (vt = zn(M), vt.draggable = !1, vt.style["will-change"] = "", this._hideClone(), dt(vt, this.options.chosenClass, !1), H.clone = vt), i.cloneId = ln(function() {
|
|
826
826
|
wt("clone", i), !H.eventCanceled && (i.options.removeCloneOnHide || it.insertBefore(vt, M), i._hideClone(), $t({
|
|
827
827
|
sortable: i,
|
|
828
828
|
name: "clone"
|
|
829
829
|
}));
|
|
830
|
-
}), !n && dt(M, d.dragClass, !0), n ? (
|
|
830
|
+
}), !n && dt(M, d.dragClass, !0), n ? (pn = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (Q(document, "mouseup", i._onDrop), Q(document, "touchend", i._onDrop), Q(document, "touchcancel", i._onDrop), o && (o.effectAllowed = "move", d.setData && d.setData.call(i, o, M)), q(document, "drop", i), L(M, "transform", "translateZ(0)")), xe = !0, i._dragStartId = ln(i._dragStarted.bind(i, n, r)), q(document, "selectstart", i), Ne = !0, Ue && L(document.body, "user-select", "none");
|
|
831
831
|
},
|
|
832
832
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
833
833
|
_onDragOver: function(r) {
|
|
834
|
-
var n = this.el, i = r.target, o, d, t, a = this.options, s = a.group, l = H.active, u =
|
|
834
|
+
var n = this.el, i = r.target, o, d, t, a = this.options, s = a.group, l = H.active, u = ke === s, c = a.sort, f = Dt || l, v, g = this, p = !1;
|
|
835
835
|
if (Gn) return;
|
|
836
836
|
function h(et, ot) {
|
|
837
837
|
wt(et, g, qt({
|
|
@@ -846,7 +846,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
846
846
|
target: i,
|
|
847
847
|
completed: y,
|
|
848
848
|
onMove: function(ut, ct) {
|
|
849
|
-
return
|
|
849
|
+
return tn(it, n, M, o, ut, st(ut), r, ct);
|
|
850
850
|
},
|
|
851
851
|
changed: P
|
|
852
852
|
}, ot));
|
|
@@ -874,7 +874,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
874
874
|
if (r.preventDefault !== void 0 && r.cancelable && r.preventDefault(), i = Xt(i, a.draggable, n, !0), h("dragOver"), H.eventCanceled) return p;
|
|
875
875
|
if (M.contains(r.target) || i.animated && i.animatingX && i.animatingY || g._ignoreWhileAnimating === i)
|
|
876
876
|
return y(!1);
|
|
877
|
-
if (
|
|
877
|
+
if (pn = !1, l && !a.disabled && (u ? c || (t = ft !== it) : Dt === this || (this.lastPutMode = ke.checkPull(this, l, M, r)) && s.checkPut(this, l, M, r))) {
|
|
878
878
|
if (v = this._getDirection(r, i) === "vertical", o = st(M), h("dragOverValid"), H.eventCanceled) return p;
|
|
879
879
|
if (t)
|
|
880
880
|
return ft = it, m(), this._hideClone(), h("revert"), H.eventCanceled || (ve ? it.insertBefore(M, ve) : it.appendChild(M)), y(!0);
|
|
@@ -882,18 +882,18 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
882
882
|
if (!E || co(r, v, this) && !E.animated) {
|
|
883
883
|
if (E === M)
|
|
884
884
|
return y(!1);
|
|
885
|
-
if (E && n === r.target && (i = E), i && (d = st(i)),
|
|
885
|
+
if (E && n === r.target && (i = E), i && (d = st(i)), tn(it, n, M, o, i, d, r, !!i) !== !1)
|
|
886
886
|
return m(), n.appendChild(M), ft = n, P(), y(!0);
|
|
887
887
|
} else if (E && uo(r, v, this)) {
|
|
888
888
|
var T = Ie(n, 0, a, !0);
|
|
889
889
|
if (T === M)
|
|
890
890
|
return y(!1);
|
|
891
|
-
if (i = T, d = st(i),
|
|
891
|
+
if (i = T, d = st(i), tn(it, n, M, o, i, d, r, !1) !== !1)
|
|
892
892
|
return m(), n.insertBefore(M, T), ft = n, P(), y(!0);
|
|
893
893
|
} else if (i.parentNode === n) {
|
|
894
894
|
d = st(i);
|
|
895
895
|
var I = 0, j, w = M.parentNode !== n, x = !oo(M.animated && M.toRect || o, i.animated && i.toRect || d, v), C = v ? "top" : "left", A = rr(i, "top", "top") || rr(M, "top", "top"), G = A ? A.scrollTop : void 0;
|
|
896
|
-
be !== i && (j = d[C], He = !1,
|
|
896
|
+
be !== i && (j = d[C], He = !1, qe = !x && a.invertSwap || w), I = fo(r, i, d, v, x ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, qe, be === i);
|
|
897
897
|
var D;
|
|
898
898
|
if (I !== 0) {
|
|
899
899
|
var R = pt(M);
|
|
@@ -906,9 +906,9 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
906
906
|
be = i, Ve = I;
|
|
907
907
|
var z = i.nextElementSibling, N = !1;
|
|
908
908
|
N = I === 1;
|
|
909
|
-
var K =
|
|
909
|
+
var K = tn(it, n, M, o, i, d, r, N);
|
|
910
910
|
if (K !== !1)
|
|
911
|
-
return (K === 1 || K === -1) && (N = K === 1), Gn = !0, setTimeout(lo, 30), m(), N && !z ? n.appendChild(M) : i.parentNode.insertBefore(M, N ? z : i), A && br(A, 0, G - A.scrollTop), ft = M.parentNode, j !== void 0 && !
|
|
911
|
+
return (K === 1 || K === -1) && (N = K === 1), Gn = !0, setTimeout(lo, 30), m(), N && !z ? n.appendChild(M) : i.parentNode.insertBefore(M, N ? z : i), A && br(A, 0, G - A.scrollTop), ft = M.parentNode, j !== void 0 && !qe && (sn = Math.abs(j - st(i)[C])), P(), y(!0);
|
|
912
912
|
}
|
|
913
913
|
if (n.contains(M))
|
|
914
914
|
return y(!1);
|
|
@@ -931,7 +931,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
931
931
|
this._nulling();
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
|
-
xe = !1,
|
|
934
|
+
xe = !1, qe = !1, He = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Kn(this.cloneId), Kn(this._dragStartId), this.nativeDraggable && (Q(document, "drop", this), Q(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ue && L(document.body, "user-select", ""), L(M, "transform", ""), r && (Ne && (r.cancelable && r.preventDefault(), !i.dropBubble && r.stopPropagation()), J && J.parentNode && J.parentNode.removeChild(J), (it === ft || Dt && Dt.lastPutMode !== "clone") && vt && vt.parentNode && vt.parentNode.removeChild(vt), M && (this.nativeDraggable && Q(M, "dragend", this), jn(M), M.style["will-change"] = "", Ne && !xe && dt(M, Dt ? Dt.options.ghostClass : this.options.ghostClass, !1), dt(M, this.options.chosenClass, !1), $t({
|
|
935
935
|
sortable: this,
|
|
936
936
|
name: "unchoose",
|
|
937
937
|
toEl: ft,
|
|
@@ -978,9 +978,9 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
978
978
|
}), this.save()))), this._nulling();
|
|
979
979
|
},
|
|
980
980
|
_nulling: function() {
|
|
981
|
-
wt("nulling", this), it = M = ft = J = ve = vt =
|
|
981
|
+
wt("nulling", this), it = M = ft = J = ve = vt = an = se = ce = Ht = Ne = Ft = ie = Ee = Ke = be = Ve = Dt = ke = H.dragged = H.ghost = H.clone = H.active = null, mn.forEach(function(r) {
|
|
982
982
|
r.checked = !0;
|
|
983
|
-
}),
|
|
983
|
+
}), mn.length = Rn = wn = 0;
|
|
984
984
|
},
|
|
985
985
|
handleEvent: function(r) {
|
|
986
986
|
switch (r.type) {
|
|
@@ -1045,7 +1045,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1045
1045
|
var i = this.options;
|
|
1046
1046
|
if (n === void 0)
|
|
1047
1047
|
return i[r];
|
|
1048
|
-
var o =
|
|
1048
|
+
var o = Ye.modifyOption(this, r, n);
|
|
1049
1049
|
typeof o < "u" ? i[r] = o : i[r] = n, r === "group" && Er(i);
|
|
1050
1050
|
},
|
|
1051
1051
|
/**
|
|
@@ -1056,7 +1056,7 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1056
1056
|
var r = this.el;
|
|
1057
1057
|
r[At] = null, Q(r, "mousedown", this._onTapStart), Q(r, "touchstart", this._onTapStart), Q(r, "pointerdown", this._onTapStart), this.nativeDraggable && (Q(r, "dragover", this), Q(r, "dragenter", this)), Array.prototype.forEach.call(r.querySelectorAll("[draggable]"), function(n) {
|
|
1058
1058
|
n.removeAttribute("draggable");
|
|
1059
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1059
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), hn.splice(hn.indexOf(this.el), 1), this.el = r = null;
|
|
1060
1060
|
},
|
|
1061
1061
|
_hideClone: function() {
|
|
1062
1062
|
if (!se) {
|
|
@@ -1078,9 +1078,9 @@ H.prototype = /** @lends Sortable.prototype */
|
|
|
1078
1078
|
function so(e) {
|
|
1079
1079
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function tn(e, r, n, i, o, d, t, a) {
|
|
1082
1082
|
var s, l = e[At], u = l.options.onMove, c;
|
|
1083
|
-
return window.CustomEvent && !ee && !
|
|
1083
|
+
return window.CustomEvent && !ee && !ze ? s = new CustomEvent("move", {
|
|
1084
1084
|
bubbles: !0,
|
|
1085
1085
|
cancelable: !0
|
|
1086
1086
|
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = r, s.from = e, s.dragged = n, s.draggedRect = i, s.related = o || r, s.relatedRect = d || st(r), s.willInsertAfter = a, s.originalEvent = t, e.dispatchEvent(s), u && (c = u.call(l, s, t)), c;
|
|
@@ -1102,10 +1102,10 @@ function co(e, r, n) {
|
|
|
1102
1102
|
function fo(e, r, n, i, o, d, t, a) {
|
|
1103
1103
|
var s = i ? e.clientY : e.clientX, l = i ? n.height : n.width, u = i ? n.top : n.left, c = i ? n.bottom : n.right, f = !1;
|
|
1104
1104
|
if (!t) {
|
|
1105
|
-
if (a &&
|
|
1105
|
+
if (a && sn < l * o) {
|
|
1106
1106
|
if (!He && (Ve === 1 ? s > u + l * d / 2 : s < c - l * d / 2) && (He = !0), He)
|
|
1107
1107
|
f = !0;
|
|
1108
|
-
else if (Ve === 1 ? s < u +
|
|
1108
|
+
else if (Ve === 1 ? s < u + sn : s > c - sn)
|
|
1109
1109
|
return -Ve;
|
|
1110
1110
|
} else if (s > u + l * (1 - o) / 2 && s < c - l * (1 - o) / 2)
|
|
1111
1111
|
return vo(r);
|
|
@@ -1121,13 +1121,13 @@ function go(e) {
|
|
|
1121
1121
|
return i.toString(36);
|
|
1122
1122
|
}
|
|
1123
1123
|
function po(e) {
|
|
1124
|
-
|
|
1124
|
+
mn.length = 0;
|
|
1125
1125
|
for (var r = e.getElementsByTagName("input"), n = r.length; n--; ) {
|
|
1126
1126
|
var i = r[n];
|
|
1127
|
-
i.checked &&
|
|
1127
|
+
i.checked && mn.push(i);
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function ln(e) {
|
|
1131
1131
|
return setTimeout(e, 0);
|
|
1132
1132
|
}
|
|
1133
1133
|
function Kn(e) {
|
|
@@ -1150,7 +1150,7 @@ H.utils = {
|
|
|
1150
1150
|
toggleClass: dt,
|
|
1151
1151
|
clone: zn,
|
|
1152
1152
|
index: pt,
|
|
1153
|
-
nextTick:
|
|
1153
|
+
nextTick: ln,
|
|
1154
1154
|
cancelNextTick: Kn,
|
|
1155
1155
|
detectDirection: xr,
|
|
1156
1156
|
getChild: Ie
|
|
@@ -1164,14 +1164,14 @@ H.mount = function() {
|
|
|
1164
1164
|
r[0].constructor === Array && (r = r[0]), r.forEach(function(i) {
|
|
1165
1165
|
if (!i.prototype || !i.prototype.constructor)
|
|
1166
1166
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));
|
|
1167
|
-
i.utils && (H.utils = qt(qt({}, H.utils), i.utils)),
|
|
1167
|
+
i.utils && (H.utils = qt(qt({}, H.utils), i.utils)), Ye.mount(i);
|
|
1168
1168
|
});
|
|
1169
1169
|
};
|
|
1170
1170
|
H.create = function(e, r) {
|
|
1171
1171
|
return new H(e, r);
|
|
1172
1172
|
};
|
|
1173
1173
|
H.version = Yr;
|
|
1174
|
-
var yt = [], Fe, Vn, Hn = !1, Nn, Fn,
|
|
1174
|
+
var yt = [], Fe, Vn, Hn = !1, Nn, Fn, yn, Le;
|
|
1175
1175
|
function ho() {
|
|
1176
1176
|
function e() {
|
|
1177
1177
|
this.defaults = {
|
|
@@ -1194,26 +1194,26 @@ function ho() {
|
|
|
1194
1194
|
!this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
|
|
1195
1195
|
},
|
|
1196
1196
|
drop: function() {
|
|
1197
|
-
this.sortable.nativeDraggable ? Q(document, "dragover", this._handleAutoScroll) : (Q(document, "pointermove", this._handleFallbackAutoScroll), Q(document, "touchmove", this._handleFallbackAutoScroll), Q(document, "mousemove", this._handleFallbackAutoScroll)), dr(),
|
|
1197
|
+
this.sortable.nativeDraggable ? Q(document, "dragover", this._handleAutoScroll) : (Q(document, "pointermove", this._handleFallbackAutoScroll), Q(document, "touchmove", this._handleFallbackAutoScroll), Q(document, "mousemove", this._handleFallbackAutoScroll)), dr(), dn(), qr();
|
|
1198
1198
|
},
|
|
1199
1199
|
nulling: function() {
|
|
1200
|
-
|
|
1200
|
+
yn = Vn = Fe = Hn = Le = Nn = Fn = null, yt.length = 0;
|
|
1201
1201
|
},
|
|
1202
1202
|
_handleFallbackAutoScroll: function(n) {
|
|
1203
1203
|
this._handleAutoScroll(n, !0);
|
|
1204
1204
|
},
|
|
1205
1205
|
_handleAutoScroll: function(n, i) {
|
|
1206
1206
|
var o = this, d = (n.touches ? n.touches[0] : n).clientX, t = (n.touches ? n.touches[0] : n).clientY, a = document.elementFromPoint(d, t);
|
|
1207
|
-
if (
|
|
1207
|
+
if (yn = n, i || this.options.forceAutoScrollFallback || ze || ee || Ue) {
|
|
1208
1208
|
Ln(n, this.options, a, i);
|
|
1209
1209
|
var s = le(a, !0);
|
|
1210
1210
|
Hn && (!Le || d !== Nn || t !== Fn) && (Le && dr(), Le = setInterval(function() {
|
|
1211
1211
|
var l = le(document.elementFromPoint(d, t), !0);
|
|
1212
|
-
l !== s && (s = l,
|
|
1212
|
+
l !== s && (s = l, dn()), Ln(n, o.options, l, i);
|
|
1213
1213
|
}, 10), Nn = d, Fn = t);
|
|
1214
1214
|
} else {
|
|
1215
1215
|
if (!this.options.bubbleScroll || le(a, !0) === kt()) {
|
|
1216
|
-
|
|
1216
|
+
dn();
|
|
1217
1217
|
return;
|
|
1218
1218
|
}
|
|
1219
1219
|
Ln(n, this.options, le(a, !1), !1);
|
|
@@ -1224,7 +1224,7 @@ function ho() {
|
|
|
1224
1224
|
initializeByDefault: !0
|
|
1225
1225
|
});
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function dn() {
|
|
1228
1228
|
yt.forEach(function(e) {
|
|
1229
1229
|
clearInterval(e.pid);
|
|
1230
1230
|
}), yt = [];
|
|
@@ -1235,7 +1235,7 @@ function dr() {
|
|
|
1235
1235
|
var Ln = yr(function(e, r, n, i) {
|
|
1236
1236
|
if (r.scroll) {
|
|
1237
1237
|
var o = (e.touches ? e.touches[0] : e).clientX, d = (e.touches ? e.touches[0] : e).clientY, t = r.scrollSensitivity, a = r.scrollSpeed, s = kt(), l = !1, u;
|
|
1238
|
-
Vn !== n && (Vn = n,
|
|
1238
|
+
Vn !== n && (Vn = n, dn(), Fe = r.scroll, u = r.scrollFn, Fe === !0 && (Fe = le(n, !0)));
|
|
1239
1239
|
var c = 0, f = Fe;
|
|
1240
1240
|
do {
|
|
1241
1241
|
var v = f, g = st(v), p = g.top, h = g.bottom, m = g.left, y = g.right, P = g.width, E = g.height, T = void 0, I = void 0, j = v.scrollWidth, w = v.scrollHeight, x = L(v), C = v.scrollLeft, A = v.scrollTop;
|
|
@@ -1245,9 +1245,9 @@ var Ln = yr(function(e, r, n, i) {
|
|
|
1245
1245
|
for (var R = 0; R <= c; R++)
|
|
1246
1246
|
yt[R] || (yt[R] = {});
|
|
1247
1247
|
(yt[c].vx != G || yt[c].vy != D || yt[c].el !== v) && (yt[c].el = v, yt[c].vx = G, yt[c].vy = D, clearInterval(yt[c].pid), (G != 0 || D != 0) && (l = !0, yt[c].pid = setInterval(function() {
|
|
1248
|
-
i && this.layer === 0 && H.active._onTouchMove(
|
|
1248
|
+
i && this.layer === 0 && H.active._onTouchMove(yn);
|
|
1249
1249
|
var z = yt[this.layer].vy ? yt[this.layer].vy * a : 0, N = yt[this.layer].vx ? yt[this.layer].vx * a : 0;
|
|
1250
|
-
typeof u == "function" && u.call(H.dragged.parentNode[At], N, z, e,
|
|
1250
|
+
typeof u == "function" && u.call(H.dragged.parentNode[At], N, z, e, yn, yt[this.layer].el) !== "continue" || br(yt[this.layer].el, N, z);
|
|
1251
1251
|
}.bind({
|
|
1252
1252
|
layer: c
|
|
1253
1253
|
}), 24))), c++;
|
|
@@ -1340,7 +1340,7 @@ function yo(e, r) {
|
|
|
1340
1340
|
var n = e.parentNode, i = r.parentNode, o, d;
|
|
1341
1341
|
!n || !i || n.isEqualNode(r) || i.isEqualNode(e) || (o = pt(e), d = pt(r), n.isEqualNode(i) && o < d && d++, n.insertBefore(r, n.children[o]), i.insertBefore(e, i.children[d]));
|
|
1342
1342
|
}
|
|
1343
|
-
var Y = [], Nt = [], Re, Wt, we = !1, Mt = !1, Se = !1, rt, Me,
|
|
1343
|
+
var Y = [], Nt = [], Re, Wt, we = !1, Mt = !1, Se = !1, rt, Me, en;
|
|
1344
1344
|
function bo() {
|
|
1345
1345
|
function e(r) {
|
|
1346
1346
|
for (var n in this)
|
|
@@ -1382,7 +1382,7 @@ function bo() {
|
|
|
1382
1382
|
var i = n.cloneNowShown, o = n.rootEl, d = n.cancel;
|
|
1383
1383
|
this.isMultiDrag && (ur(!1, o), Nt.forEach(function(t) {
|
|
1384
1384
|
L(t, "display", "");
|
|
1385
|
-
}), i(),
|
|
1385
|
+
}), i(), en = !1, d());
|
|
1386
1386
|
},
|
|
1387
1387
|
hideClone: function(n) {
|
|
1388
1388
|
var i = this;
|
|
@@ -1390,7 +1390,7 @@ function bo() {
|
|
|
1390
1390
|
var o = n.cloneNowHidden, d = n.cancel;
|
|
1391
1391
|
this.isMultiDrag && (Nt.forEach(function(t) {
|
|
1392
1392
|
L(t, "display", "none"), i.options.removeCloneOnHide && t.parentNode && t.parentNode.removeChild(t);
|
|
1393
|
-
}), o(),
|
|
1393
|
+
}), o(), en = !0, d());
|
|
1394
1394
|
},
|
|
1395
1395
|
dragStartGlobal: function(n) {
|
|
1396
1396
|
n.sortable, !this.isMultiDrag && Wt && Wt.multiDrag._deselectMultiDrag(), Y.forEach(function(i) {
|
|
@@ -1414,7 +1414,7 @@ function bo() {
|
|
|
1414
1414
|
o.animateAll(function() {
|
|
1415
1415
|
Mt = !1, we = !1, i.options.animation && Y.forEach(function(t) {
|
|
1416
1416
|
Cn(t);
|
|
1417
|
-
}), i.options.sort &&
|
|
1417
|
+
}), i.options.sort && nn();
|
|
1418
1418
|
});
|
|
1419
1419
|
}
|
|
1420
1420
|
},
|
|
@@ -1441,9 +1441,9 @@ function bo() {
|
|
|
1441
1441
|
}), Mt = !0;
|
|
1442
1442
|
}
|
|
1443
1443
|
if (!o)
|
|
1444
|
-
if (Mt ||
|
|
1445
|
-
var c =
|
|
1446
|
-
t._showClone(i), t.options.animation && !
|
|
1444
|
+
if (Mt || nn(), Y.length > 1) {
|
|
1445
|
+
var c = en;
|
|
1446
|
+
t._showClone(i), t.options.animation && !en && c && Nt.forEach(function(f) {
|
|
1447
1447
|
t.addAnimationState({
|
|
1448
1448
|
target: f,
|
|
1449
1449
|
rect: Me
|
|
@@ -1464,7 +1464,7 @@ function bo() {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
},
|
|
1466
1466
|
dragOverAnimationComplete: function() {
|
|
1467
|
-
Mt && (Mt = !1,
|
|
1467
|
+
Mt && (Mt = !1, nn());
|
|
1468
1468
|
},
|
|
1469
1469
|
drop: function(n) {
|
|
1470
1470
|
var i = n.originalEvent, o = n.rootEl, d = n.parentEl, t = n.sortable, a = n.dispatchSortableEvent, s = n.oldIndex, l = n.putSortable, u = l || this.sortable;
|
|
@@ -1511,7 +1511,7 @@ function bo() {
|
|
|
1511
1511
|
rect: T
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
|
-
})),
|
|
1514
|
+
})), nn(), Y.forEach(function(E) {
|
|
1515
1515
|
f[y] ? d.insertBefore(E, f[y]) : d.appendChild(E), y++;
|
|
1516
1516
|
}), s === pt(rt))) {
|
|
1517
1517
|
var P = !1;
|
|
@@ -1616,7 +1616,7 @@ function ur(e, r) {
|
|
|
1616
1616
|
o ? r.insertBefore(n, o) : r.appendChild(n);
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function nn() {
|
|
1620
1620
|
Y.forEach(function(e) {
|
|
1621
1621
|
e !== rt && e.parentNode && e.parentNode.removeChild(e);
|
|
1622
1622
|
});
|
|
@@ -1630,7 +1630,7 @@ const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1630
1630
|
Swap: mo,
|
|
1631
1631
|
default: H
|
|
1632
1632
|
}, Symbol.toStringTag, { value: "Module" })), Eo = /* @__PURE__ */ Br(xo);
|
|
1633
|
-
var Oo =
|
|
1633
|
+
var Oo = rn.exports, cr;
|
|
1634
1634
|
function Io() {
|
|
1635
1635
|
return cr || (cr = 1, (function(e, r) {
|
|
1636
1636
|
(function(i, o) {
|
|
@@ -2886,7 +2886,7 @@ function Io() {
|
|
|
2886
2886
|
a4d3: (
|
|
2887
2887
|
/***/
|
|
2888
2888
|
(function(o, d, t) {
|
|
2889
|
-
var a = t("23e7"), s = t("da84"), l = t("d066"), u = t("c430"), c = t("83ab"), f = t("4930"), v = t("fdbf"), g = t("d039"), p = t("5135"), h = t("e8b5"), m = t("861d"), y = t("825a"), P = t("7b0b"), E = t("fc6a"), T = t("c04e"), I = t("5c6c"), j = t("7c73"), w = t("df75"), x = t("241c"), C = t("057f"), A = t("7418"), G = t("06cf"), D = t("9bf2"), R = t("d1e7"), z = t("9112"), N = t("6eeb"), K = t("5692"), et = t("f772"), ot = t("d012"), Et = t("90e3"), ut = t("b622"), ct = t("e538"), St = t("746f"), xt = t("d44e"), mt = t("69f3"), at = t("b727").forEach, lt = et("hidden"), jt = "Symbol", Ct = "prototype", ne = ut("toPrimitive"), de = mt.set, re = mt.getterFor(jt), Ot = Object[Ct], It = s.Symbol, ue = l("JSON", "stringify"), zt = G.f, Yt = D.f,
|
|
2889
|
+
var a = t("23e7"), s = t("da84"), l = t("d066"), u = t("c430"), c = t("83ab"), f = t("4930"), v = t("fdbf"), g = t("d039"), p = t("5135"), h = t("e8b5"), m = t("861d"), y = t("825a"), P = t("7b0b"), E = t("fc6a"), T = t("c04e"), I = t("5c6c"), j = t("7c73"), w = t("df75"), x = t("241c"), C = t("057f"), A = t("7418"), G = t("06cf"), D = t("9bf2"), R = t("d1e7"), z = t("9112"), N = t("6eeb"), K = t("5692"), et = t("f772"), ot = t("d012"), Et = t("90e3"), ut = t("b622"), ct = t("e538"), St = t("746f"), xt = t("d44e"), mt = t("69f3"), at = t("b727").forEach, lt = et("hidden"), jt = "Symbol", Ct = "prototype", ne = ut("toPrimitive"), de = mt.set, re = mt.getterFor(jt), Ot = Object[Ct], It = s.Symbol, ue = l("JSON", "stringify"), zt = G.f, Yt = D.f, Ze = C.f, In = R.f, Vt = K("symbols"), oe = K("op-symbols"), me = K("string-to-symbol-registry"), De = K("symbol-to-string-registry"), Pe = K("wks"), Ae = s.QObject, Te = !Ae || !Ae[Ct] || !Ae[Ct].findChild, Ce = c && g(function() {
|
|
2890
2890
|
return j(Yt({}, "a", {
|
|
2891
2891
|
get: function() {
|
|
2892
2892
|
return Yt(this, "a", { value: 7 }).a;
|
|
@@ -2928,12 +2928,12 @@ function Io() {
|
|
|
2928
2928
|
return Rt && p(Vt, tt) && !(p(_, lt) && _[lt][tt]) && (Rt.enumerable = !0), Rt;
|
|
2929
2929
|
}
|
|
2930
2930
|
}, Z = function(B) {
|
|
2931
|
-
var V =
|
|
2931
|
+
var V = Ze(E(B)), _ = [];
|
|
2932
2932
|
return at(V, function(tt) {
|
|
2933
2933
|
!p(Vt, tt) && !p(ot, tt) && _.push(tt);
|
|
2934
2934
|
}), _;
|
|
2935
2935
|
}, nt = function(B) {
|
|
2936
|
-
var V = B === Ot, _ =
|
|
2936
|
+
var V = B === Ot, _ = Ze(V ? oe : E(B)), tt = [];
|
|
2937
2937
|
return at(_, function(Rt) {
|
|
2938
2938
|
p(Vt, Rt) && (!V || p(Ot, Rt)) && tt.push(Vt[Rt]);
|
|
2939
2939
|
}), tt;
|
|
@@ -3016,8 +3016,8 @@ function Io() {
|
|
|
3016
3016
|
stringify: function(B, V, _) {
|
|
3017
3017
|
for (var tt = [B], Rt = 1, Dn; arguments.length > Rt; ) tt.push(arguments[Rt++]);
|
|
3018
3018
|
if (Dn = V, !(!m(V) && B === void 0 || S(B)))
|
|
3019
|
-
return h(V) || (V = function(Cr,
|
|
3020
|
-
if (typeof Dn == "function" && (
|
|
3019
|
+
return h(V) || (V = function(Cr, Qe) {
|
|
3020
|
+
if (typeof Dn == "function" && (Qe = Dn.call(this, Cr, Qe)), !S(Qe)) return Qe;
|
|
3021
3021
|
}), tt[1] = V, ue.apply(null, tt);
|
|
3022
3022
|
}
|
|
3023
3023
|
});
|
|
@@ -4049,7 +4049,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4049
4049
|
var O = S[b];
|
|
4050
4050
|
return O ? O() : [];
|
|
4051
4051
|
}
|
|
4052
|
-
function
|
|
4052
|
+
function Ze(S) {
|
|
4053
4053
|
var b = S.$slots, O = S.realList, $ = S.getKey, F = O || [], W = ["header", "footer"].map(function(V) {
|
|
4054
4054
|
return Yt(b, V);
|
|
4055
4055
|
}), Z = y(W, 2), nt = Z[0], ht = Z[1], X = b.item;
|
|
@@ -4082,7 +4082,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4082
4082
|
};
|
|
4083
4083
|
}
|
|
4084
4084
|
function Vt(S) {
|
|
4085
|
-
var b = S.$slots, O = S.tag, $ = S.realList, F = S.getKey, W =
|
|
4085
|
+
var b = S.$slots, O = S.tag, $ = S.realList, F = S.getKey, W = Ze({
|
|
4086
4086
|
$slots: b,
|
|
4087
4087
|
realList: $,
|
|
4088
4088
|
getKey: F
|
|
@@ -4439,10 +4439,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4439
4439
|
}).default
|
|
4440
4440
|
);
|
|
4441
4441
|
});
|
|
4442
|
-
})(
|
|
4442
|
+
})(rn)), rn.exports;
|
|
4443
4443
|
}
|
|
4444
4444
|
var Do = Io();
|
|
4445
|
-
const
|
|
4445
|
+
const bn = /* @__PURE__ */ Lr(Do), Po = /* @__PURE__ */ Kt({
|
|
4446
4446
|
__name: "PvCounterBadge",
|
|
4447
4447
|
props: {
|
|
4448
4448
|
value: { type: Number },
|
|
@@ -4483,7 +4483,7 @@ function Co() {
|
|
|
4483
4483
|
const e = Zt(!1), n = Rr()?.root || {};
|
|
4484
4484
|
return "isCE" in n && n.isCE === !0 && (e.value = !0), e;
|
|
4485
4485
|
}
|
|
4486
|
-
const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"],
|
|
4486
|
+
const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], Sn = /* @__PURE__ */ Kt({
|
|
4487
4487
|
__name: "PvIcon",
|
|
4488
4488
|
props: {
|
|
4489
4489
|
name: { type: String },
|
|
@@ -4510,7 +4510,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4510
4510
|
}
|
|
4511
4511
|
}), wo = ["open"], Mo = /* @__PURE__ */ Kt({
|
|
4512
4512
|
__name: "PvAccordion",
|
|
4513
|
-
props: /* @__PURE__ */
|
|
4513
|
+
props: /* @__PURE__ */ un({
|
|
4514
4514
|
chevronPosition: { default: "right", type: null },
|
|
4515
4515
|
chevronVariant: { default: "vertical", type: String },
|
|
4516
4516
|
defaultOpen: { type: Boolean },
|
|
@@ -4519,12 +4519,13 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4519
4519
|
enableTriggerFullWidth: { type: Boolean, default: !1 },
|
|
4520
4520
|
header: { type: String },
|
|
4521
4521
|
summaryStyles: { type: Object },
|
|
4522
|
-
summaryClasses: { type: Object }
|
|
4522
|
+
summaryClasses: { type: Object },
|
|
4523
|
+
contentStyles: { type: Object }
|
|
4523
4524
|
}, {
|
|
4524
4525
|
modelValue: { type: Boolean },
|
|
4525
4526
|
modelModifiers: {}
|
|
4526
4527
|
}),
|
|
4527
|
-
emits: /* @__PURE__ */
|
|
4528
|
+
emits: /* @__PURE__ */ un(["summary-mouseenter", "summary-mouseleave"], ["update:modelValue"]),
|
|
4528
4529
|
setup(e) {
|
|
4529
4530
|
const r = e, n = Be(e, "modelValue");
|
|
4530
4531
|
r.defaultOpen !== void 0 && (n.value = r.defaultOpen);
|
|
@@ -4543,17 +4544,17 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4543
4544
|
Qt(
|
|
4544
4545
|
"summary",
|
|
4545
4546
|
{
|
|
4546
|
-
class: Bt(["pv-flex pv-relative", e.summaryClasses]),
|
|
4547
|
-
style:
|
|
4547
|
+
class: Bt(["pv-flex pv-space-between pv-relative", e.summaryClasses]),
|
|
4548
|
+
style: We({ ...o, ...e.summaryStyles }),
|
|
4548
4549
|
onMouseenter: a[0] || (a[0] = (s) => t.$emit("summary-mouseenter")),
|
|
4549
4550
|
onMouseleave: a[1] || (a[1] = (s) => t.$emit("summary-mouseleave"))
|
|
4550
4551
|
},
|
|
4551
4552
|
[
|
|
4552
|
-
e.chevronPosition === "left" ? (k(), gt(
|
|
4553
|
+
e.chevronPosition === "left" ? (k(), gt(Sn, {
|
|
4553
4554
|
key: 0,
|
|
4554
4555
|
name: d.value
|
|
4555
4556
|
}, null, 8, ["name"])) : Ut("v-if", !0),
|
|
4556
|
-
e.enableTriggerSlot ?
|
|
4557
|
+
e.enableTriggerSlot ? cn(t.$slots, "trigger", { key: 1 }, void 0, !0) : (k(), Tt(
|
|
4557
4558
|
vr,
|
|
4558
4559
|
{ key: 2 },
|
|
4559
4560
|
[
|
|
@@ -4574,7 +4575,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4574
4575
|
64
|
|
4575
4576
|
/* STABLE_FRAGMENT */
|
|
4576
4577
|
)),
|
|
4577
|
-
e.chevronPosition === "right" ? (k(), gt(
|
|
4578
|
+
e.chevronPosition === "right" ? (k(), gt(Sn, {
|
|
4578
4579
|
key: 3,
|
|
4579
4580
|
name: d.value
|
|
4580
4581
|
}, null, 8, ["name"])) : Ut("v-if", !0)
|
|
@@ -4582,15 +4583,23 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4582
4583
|
38
|
|
4583
4584
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
4584
4585
|
),
|
|
4585
|
-
Qt(
|
|
4586
|
-
|
|
4587
|
-
|
|
4586
|
+
Qt(
|
|
4587
|
+
"div",
|
|
4588
|
+
{
|
|
4589
|
+
style: We(e.contentStyles)
|
|
4590
|
+
},
|
|
4591
|
+
[
|
|
4592
|
+
cn(t.$slots, "default", {}, void 0, !0)
|
|
4593
|
+
],
|
|
4594
|
+
4
|
|
4595
|
+
/* STYLE */
|
|
4596
|
+
)
|
|
4588
4597
|
], 40, wo));
|
|
4589
4598
|
}
|
|
4590
|
-
}), jo = "summary[data-v-
|
|
4599
|
+
}), jo = "summary[data-v-bb9613de]{background-image:none;padding-right:2px}", No = /* @__PURE__ */ he(Mo, [["styles", [jo]], ["__scopeId", "data-v-bb9613de"]]), Fo = {
|
|
4591
4600
|
class: "pv-flex pv-truncate",
|
|
4592
4601
|
style: { "min-width": "0", "min-height": "20px" }
|
|
4593
|
-
}, Lo = ["title"],
|
|
4602
|
+
}, Lo = ["title"], xn = /* @__PURE__ */ Kt({
|
|
4594
4603
|
__name: "PvSimpleItemTree",
|
|
4595
4604
|
props: {
|
|
4596
4605
|
label: { type: String },
|
|
@@ -4598,7 +4607,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4598
4607
|
},
|
|
4599
4608
|
setup(e) {
|
|
4600
4609
|
return (r, n) => (k(), Tt("div", Fo, [
|
|
4601
|
-
e.icon ? (k(), gt(
|
|
4610
|
+
e.icon ? (k(), gt(Sn, {
|
|
4602
4611
|
key: 0,
|
|
4603
4612
|
name: e.icon
|
|
4604
4613
|
}, null, 8, ["name"])) : Ut("v-if", !0),
|
|
@@ -4612,12 +4621,12 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4612
4621
|
}), Bo = /* @__PURE__ */ Kt({
|
|
4613
4622
|
__name: "PvTreeReorderIcon",
|
|
4614
4623
|
setup(e) {
|
|
4615
|
-
return (r, n) => (k(), gt(
|
|
4624
|
+
return (r, n) => (k(), gt(Sn, {
|
|
4616
4625
|
name: "reorder",
|
|
4617
4626
|
class: "reorder-icon pv-text-tertiary"
|
|
4618
4627
|
}));
|
|
4619
4628
|
}
|
|
4620
|
-
}), Uo = ".reorder-icon[data-v-1efb9068]{position:absolute;left:0;top:0;transform:translateY(25%);width:16px;height:16px;min-width:16px;min-height:16px}",
|
|
4629
|
+
}), Uo = ".reorder-icon[data-v-1efb9068]{position:absolute;left:0;top:0;transform:translateY(25%);width:16px;height:16px;min-width:16px;min-height:16px}", En = /* @__PURE__ */ he(Bo, [["styles", [Uo]], ["__scopeId", "data-v-1efb9068"]]), Zn = /* @__PURE__ */ Kt({
|
|
4621
4630
|
__name: "PvButtonTreeItem",
|
|
4622
4631
|
props: {
|
|
4623
4632
|
selected: { type: Boolean },
|
|
@@ -4635,7 +4644,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4635
4644
|
onClick: o
|
|
4636
4645
|
},
|
|
4637
4646
|
[
|
|
4638
|
-
|
|
4647
|
+
cn(d.$slots, "default")
|
|
4639
4648
|
],
|
|
4640
4649
|
2
|
|
4641
4650
|
/* CLASS */
|
|
@@ -4643,7 +4652,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4643
4652
|
}
|
|
4644
4653
|
}), Go = ["disabled", "indeterminate"], Ko = /* @__PURE__ */ Kt({
|
|
4645
4654
|
__name: "PvCheckbox",
|
|
4646
|
-
props: /* @__PURE__ */
|
|
4655
|
+
props: /* @__PURE__ */ un({
|
|
4647
4656
|
disabled: { type: Boolean },
|
|
4648
4657
|
indeterminate: { type: Boolean }
|
|
4649
4658
|
}, {
|
|
@@ -4653,7 +4662,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4653
4662
|
emits: ["update:modelValue"],
|
|
4654
4663
|
setup(e) {
|
|
4655
4664
|
const r = Be(e, "modelValue");
|
|
4656
|
-
return (n, i) =>
|
|
4665
|
+
return (n, i) => Xe((k(), Tt("input", {
|
|
4657
4666
|
ref: "checkbox-ref",
|
|
4658
4667
|
"onUpdate:modelValue": i[0] || (i[0] = (o) => r.value = o),
|
|
4659
4668
|
class: "pv-checkbox",
|
|
@@ -4694,7 +4703,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4694
4703
|
checked: e.selected,
|
|
4695
4704
|
onClick: o
|
|
4696
4705
|
}, null, 8, ["checked"]),
|
|
4697
|
-
|
|
4706
|
+
cn(d.$slots, "default")
|
|
4698
4707
|
],
|
|
4699
4708
|
2
|
|
4700
4709
|
/* CLASS */
|
|
@@ -4718,7 +4727,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4718
4727
|
draggingGroupName: r,
|
|
4719
4728
|
dropIndicator: n
|
|
4720
4729
|
};
|
|
4721
|
-
},
|
|
4730
|
+
}, Je = () => {
|
|
4722
4731
|
const e = An(Pr, Zt(!1)), r = An(Ar, Zt(null)), n = An(Tr, Zt(null)), i = (a) => {
|
|
4723
4732
|
e.value = !0, r.value = a ?? null;
|
|
4724
4733
|
}, o = () => {
|
|
@@ -4738,7 +4747,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4738
4747
|
onDragEnd: o
|
|
4739
4748
|
};
|
|
4740
4749
|
}, qn = () => {
|
|
4741
|
-
const { setDropIndicator: e, clearDropIndicator: r } =
|
|
4750
|
+
const { setDropIndicator: e, clearDropIndicator: r } = Je();
|
|
4742
4751
|
return {
|
|
4743
4752
|
getDragGroupConfig: (s, l) => {
|
|
4744
4753
|
const c = s[l.field]?.dragAndDropConfig;
|
|
@@ -4776,7 +4785,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4776
4785
|
}
|
|
4777
4786
|
};
|
|
4778
4787
|
}, _n = () => {
|
|
4779
|
-
const { dropIndicator: e } =
|
|
4788
|
+
const { dropIndicator: e } = Je();
|
|
4780
4789
|
return {
|
|
4781
4790
|
dragAndDropIndicatorClasses: (n) => ({
|
|
4782
4791
|
"pv-drop-indicator-bottom": !!(e?.value?.siblingTargetId === n.id && e.value.siblingInsertAfter),
|
|
@@ -4805,7 +4814,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4805
4814
|
},
|
|
4806
4815
|
emits: ["handle-tree-select", "update:children"],
|
|
4807
4816
|
setup(e, { emit: r }) {
|
|
4808
|
-
const n = e, i = r, { isDragging: o, draggingGroupName: d, onDragStart: t, onDragEnd: a } =
|
|
4817
|
+
const n = e, i = r, { isDragging: o, draggingGroupName: d, onDragStart: t, onDragEnd: a } = Je(), { dragAndDropIndicatorClasses: s } = _n(), { hoveredId: l, handleMouseEnter: u, handleMouseLeave: c } = kn(), { canItemBeDragged: f, getDragAndDropDisabled: v, handleMoveCallback: g, getDragGroupConfig: p, canAcceptDrop: h } = qn(), m = () => {
|
|
4809
4818
|
const w = p(n.settings, n.option);
|
|
4810
4819
|
t(w.name);
|
|
4811
4820
|
}, y = (w) => n.selectedOptions && n.selectedOptions.some((x) => x.id === w), P = bt(() => n.settings[n.option.field]?.checkbox ? Qn : Zn), E = bt(() => n.settings[n.parentField]?.showNestedTree), T = bt(() => n.index === n.totalSiblings - 1), I = bt({
|
|
@@ -4823,24 +4832,24 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4823
4832
|
}),
|
|
4824
4833
|
option: e.option,
|
|
4825
4834
|
selected: y(e.option.id),
|
|
4826
|
-
style:
|
|
4835
|
+
style: We({
|
|
4827
4836
|
paddingLeft: `${e.level * 24}px`,
|
|
4828
4837
|
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: j.value }) ?? {}
|
|
4829
4838
|
}),
|
|
4830
4839
|
onHandleSelected: x[0] || (x[0] = (A) => w.$emit("handle-tree-select", A)),
|
|
4831
4840
|
onMouseenter: x[1] || (x[1] = (A) => U(u)(e.option.id)),
|
|
4832
4841
|
onMouseleave: x[2] || (x[2] = (A) => U(c)()),
|
|
4833
|
-
onContextmenu: x[3] || (x[3] =
|
|
4842
|
+
onContextmenu: x[3] || (x[3] = fn((A) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(A, e.option), ["stop"]))
|
|
4834
4843
|
}, {
|
|
4835
4844
|
default: _t(() => [
|
|
4836
|
-
|
|
4837
|
-
|
|
4845
|
+
Xe(Jt(
|
|
4846
|
+
En,
|
|
4838
4847
|
null,
|
|
4839
4848
|
null,
|
|
4840
4849
|
512
|
|
4841
4850
|
/* NEED_PATCH */
|
|
4842
4851
|
), [
|
|
4843
|
-
[
|
|
4852
|
+
[vn, U(l) === e.option.id && U(f)(e.isDraggable, e.settings, e.option)]
|
|
4844
4853
|
]),
|
|
4845
4854
|
Qt("div", Ho, [
|
|
4846
4855
|
!T.value && E.value ? (k(), Tt("div", Wo)) : E.value ? (k(), Tt("div", Xo)) : Ut("v-if", !0),
|
|
@@ -4850,7 +4859,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4850
4859
|
settings: e.settings,
|
|
4851
4860
|
"is-draggable": e.isDraggable,
|
|
4852
4861
|
params: e.settings[e.option.field]?.rendererParams
|
|
4853
|
-
}, null, 8, ["option", "settings", "is-draggable", "params"])) : (k(), gt(
|
|
4862
|
+
}, null, 8, ["option", "settings", "is-draggable", "params"])) : (k(), gt(xn, {
|
|
4854
4863
|
key: 3,
|
|
4855
4864
|
label: e.option.label,
|
|
4856
4865
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4864,7 +4873,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4864
4873
|
Qt("div", {
|
|
4865
4874
|
"data-parent-id": e.option.id
|
|
4866
4875
|
}, [
|
|
4867
|
-
e.isDraggable ? (k(), gt(U(
|
|
4876
|
+
e.isDraggable ? (k(), gt(U(bn), {
|
|
4868
4877
|
key: 0,
|
|
4869
4878
|
modelValue: I.value,
|
|
4870
4879
|
"onUpdate:modelValue": x[6] || (x[6] = (A) => I.value = A),
|
|
@@ -4917,7 +4926,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4917
4926
|
},
|
|
4918
4927
|
emits: ["handle-tree-select", "update:children"],
|
|
4919
4928
|
setup(e, { emit: r }) {
|
|
4920
|
-
const n = e, i = r, { hoveredId: o, handleMouseEnter: d, handleMouseLeave: t } = kn(), { getDragAndDropDisabled: a, canItemBeDragged: s, handleMoveCallback: l, getDragGroupConfig: u, canAcceptDrop: c } = qn(), { isDragging: f, draggingGroupName: v, onDragStart: g, onDragEnd: p } =
|
|
4929
|
+
const n = e, i = r, { hoveredId: o, handleMouseEnter: d, handleMouseLeave: t } = kn(), { getDragAndDropDisabled: a, canItemBeDragged: s, handleMoveCallback: l, getDragGroupConfig: u, canAcceptDrop: c } = qn(), { isDragging: f, draggingGroupName: v, onDragStart: g, onDragEnd: p } = Je(), { dragAndDropIndicatorClasses: h } = _n(), m = () => {
|
|
4921
4930
|
const w = u(n.settings, n.option);
|
|
4922
4931
|
g(w.name);
|
|
4923
4932
|
}, y = bt(() => n.settings[n.option.field]?.additionalNestingLevel ?? 0), P = bt(() => n.settings[n.option.field]?.showNestedTree ? n.level + y.value : n.level + 1 + y.value), E = (w) => n.selectedOptions && n.selectedOptions.some((x) => x.id === w), T = (w) => n.settings[w.field]?.checkbox ? Qn : Zn, I = bt({
|
|
@@ -4933,24 +4942,24 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4933
4942
|
class: Bt({
|
|
4934
4943
|
...U(h)(e.option)
|
|
4935
4944
|
}),
|
|
4936
|
-
style:
|
|
4945
|
+
style: We({
|
|
4937
4946
|
paddingLeft: `${e.level * 24 + y.value * 24}px`,
|
|
4938
4947
|
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: j.value }) ?? {}
|
|
4939
4948
|
}),
|
|
4940
4949
|
onHandleSelected: x[0] || (x[0] = (C) => w.$emit("handle-tree-select", C)),
|
|
4941
4950
|
onMouseenter: x[1] || (x[1] = (C) => U(d)(e.option.id)),
|
|
4942
4951
|
onMouseleave: x[2] || (x[2] = (C) => U(t)()),
|
|
4943
|
-
onContextmenu: x[3] || (x[3] =
|
|
4952
|
+
onContextmenu: x[3] || (x[3] = fn((C) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(C, e.option), ["stop"]))
|
|
4944
4953
|
}, {
|
|
4945
4954
|
default: _t(() => [
|
|
4946
|
-
|
|
4947
|
-
|
|
4955
|
+
Xe(Jt(
|
|
4956
|
+
En,
|
|
4948
4957
|
null,
|
|
4949
4958
|
null,
|
|
4950
4959
|
512
|
|
4951
4960
|
/* NEED_PATCH */
|
|
4952
4961
|
), [
|
|
4953
|
-
[
|
|
4962
|
+
[vn, U(o) === e.option.id && U(s)(e.isDraggable, e.settings, e.option)]
|
|
4954
4963
|
]),
|
|
4955
4964
|
e.settings[e.option.field]?.renderer ? (k(), gt(ge(e.settings[e.option.field]?.renderer), {
|
|
4956
4965
|
key: 0,
|
|
@@ -4958,7 +4967,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4958
4967
|
settings: e.settings,
|
|
4959
4968
|
selected: E(e.option.id),
|
|
4960
4969
|
params: e.settings[e.option.field]?.rendererParams
|
|
4961
|
-
}, null, 8, ["option", "settings", "selected", "params"])) : (k(), gt(
|
|
4970
|
+
}, null, 8, ["option", "settings", "selected", "params"])) : (k(), gt(xn, {
|
|
4962
4971
|
key: 1,
|
|
4963
4972
|
label: e.option.label,
|
|
4964
4973
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -4971,7 +4980,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
4971
4980
|
Qt("div", {
|
|
4972
4981
|
"data-parent-id": e.option.id
|
|
4973
4982
|
}, [
|
|
4974
|
-
e.isDraggable ? (k(), gt(U(
|
|
4983
|
+
e.isDraggable ? (k(), gt(U(bn), {
|
|
4975
4984
|
key: 0,
|
|
4976
4985
|
modelValue: I.value,
|
|
4977
4986
|
"onUpdate:modelValue": x[6] || (x[6] = (C) => I.value = C),
|
|
@@ -5035,7 +5044,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5035
5044
|
handleMoveCallback: s,
|
|
5036
5045
|
childrenDraggable: l,
|
|
5037
5046
|
canAcceptDrop: u
|
|
5038
|
-
} = qn(), { hoveredId: c, handleMouseEnter: f, handleMouseLeave: v } = kn(), { isDragging: g, draggingGroupName: p, onDragStart: h, onDragEnd: m } =
|
|
5047
|
+
} = qn(), { hoveredId: c, handleMouseEnter: f, handleMouseLeave: v } = kn(), { isDragging: g, draggingGroupName: p, onDragStart: h, onDragEnd: m } = Je(), { dragAndDropIndicatorClasses: y } = _n(), P = () => {
|
|
5039
5048
|
const C = d(n.settings, n.option);
|
|
5040
5049
|
h(C.name);
|
|
5041
5050
|
}, E = (C) => ({
|
|
@@ -5072,17 +5081,17 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5072
5081
|
"chevron-variant": "horizontal",
|
|
5073
5082
|
onSummaryMouseenter: A[4] || (A[4] = (D) => U(f)(e.option.id)),
|
|
5074
5083
|
onSummaryMouseleave: A[5] || (A[5] = (D) => U(v)()),
|
|
5075
|
-
onContextmenu: A[6] || (A[6] =
|
|
5084
|
+
onContextmenu: A[6] || (A[6] = fn((D) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(D, e.option), ["stop"]))
|
|
5076
5085
|
}, {
|
|
5077
5086
|
trigger: _t(() => [
|
|
5078
|
-
|
|
5079
|
-
|
|
5087
|
+
Xe(Jt(
|
|
5088
|
+
En,
|
|
5080
5089
|
null,
|
|
5081
5090
|
null,
|
|
5082
5091
|
512
|
|
5083
5092
|
/* NEED_PATCH */
|
|
5084
5093
|
), [
|
|
5085
|
-
[
|
|
5094
|
+
[vn, U(c) === e.option.id && U(a)(e.isDraggable, e.settings, e.option) && e.level > 0]
|
|
5086
5095
|
]),
|
|
5087
5096
|
e.settings[e.option.field]?.renderer ? (k(), gt(ge(e.settings[e.option.field]?.renderer), {
|
|
5088
5097
|
key: 0,
|
|
@@ -5090,7 +5099,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5090
5099
|
settings: e.settings,
|
|
5091
5100
|
selected: T(e.option.id),
|
|
5092
5101
|
params: e.settings[e.option.field]?.rendererParams
|
|
5093
|
-
}, null, 8, ["option", "settings", "selected", "params"])) : (k(), gt(
|
|
5102
|
+
}, null, 8, ["option", "settings", "selected", "params"])) : (k(), gt(xn, {
|
|
5094
5103
|
key: 1,
|
|
5095
5104
|
label: e.option.label,
|
|
5096
5105
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5100,7 +5109,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5100
5109
|
Qt("div", {
|
|
5101
5110
|
"data-parent-id": e.option.id
|
|
5102
5111
|
}, [
|
|
5103
|
-
e.isDraggable ? (k(), gt(U(
|
|
5112
|
+
e.isDraggable ? (k(), gt(U(bn), {
|
|
5104
5113
|
key: 0,
|
|
5105
5114
|
modelValue: j.value,
|
|
5106
5115
|
"onUpdate:modelValue": A[2] || (A[2] = (D) => j.value = D),
|
|
@@ -5153,31 +5162,31 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5153
5162
|
}),
|
|
5154
5163
|
option: e.option,
|
|
5155
5164
|
selected: T(e.option.id),
|
|
5156
|
-
style:
|
|
5165
|
+
style: We({
|
|
5157
5166
|
...E(e.level),
|
|
5158
5167
|
...e.settings[e.option.field]?.rendererParams?.onProvideCssStyles?.(e.option, { isVisible: x.value }) ?? {}
|
|
5159
5168
|
}),
|
|
5160
5169
|
onHandleSelected: A[9] || (A[9] = (D) => C.$emit("handle-tree-select", D)),
|
|
5161
5170
|
onMouseenter: A[10] || (A[10] = (D) => U(f)(e.option.id)),
|
|
5162
5171
|
onMouseleave: A[11] || (A[11] = (D) => U(v)()),
|
|
5163
|
-
onContextmenu: A[12] || (A[12] =
|
|
5172
|
+
onContextmenu: A[12] || (A[12] = fn((D) => e.settings[e.option.field]?.rendererParams?.onContextMenu?.(D, e.option), ["stop"]))
|
|
5164
5173
|
}, {
|
|
5165
5174
|
default: _t(() => [
|
|
5166
|
-
|
|
5167
|
-
|
|
5175
|
+
Xe(Jt(
|
|
5176
|
+
En,
|
|
5168
5177
|
null,
|
|
5169
5178
|
null,
|
|
5170
5179
|
512
|
|
5171
5180
|
/* NEED_PATCH */
|
|
5172
5181
|
), [
|
|
5173
|
-
[
|
|
5182
|
+
[vn, U(c) === e.option.id && U(a)(e.isDraggable, e.settings, e.option) && e.level > 0]
|
|
5174
5183
|
]),
|
|
5175
5184
|
e.settings[e.option.field]?.renderer ? (k(), gt(ge(e.settings[e.option.field]?.renderer), {
|
|
5176
5185
|
key: 0,
|
|
5177
5186
|
option: e.option,
|
|
5178
5187
|
settings: e.settings,
|
|
5179
5188
|
params: e.settings[e.option.field]?.rendererParams
|
|
5180
|
-
}, null, 8, ["option", "settings", "params"])) : (k(), gt(
|
|
5189
|
+
}, null, 8, ["option", "settings", "params"])) : (k(), gt(xn, {
|
|
5181
5190
|
key: 1,
|
|
5182
5191
|
label: e.option.label,
|
|
5183
5192
|
icon: e.settings[e.option.field]?.icon
|
|
@@ -5190,7 +5199,7 @@ const $o = [void 0, 10, 12, 20, 24, 32, 64], Ro = ["xlink:href"], bn = /* @__PUR
|
|
|
5190
5199
|
Qt("div", {
|
|
5191
5200
|
"data-parent-id": e.option.id
|
|
5192
5201
|
}, [
|
|
5193
|
-
e.isDraggable ? (k(), gt(U(
|
|
5202
|
+
e.isDraggable ? (k(), gt(U(bn), {
|
|
5194
5203
|
key: 0,
|
|
5195
5204
|
modelValue: j.value,
|
|
5196
5205
|
"onUpdate:modelValue": A[15] || (A[15] = (D) => j.value = D),
|
|
@@ -5404,7 +5413,7 @@ const Na = (e) => {
|
|
|
5404
5413
|
};
|
|
5405
5414
|
}, Fa = { class: "pv-tree" }, La = /* @__PURE__ */ Kt({
|
|
5406
5415
|
__name: "PvTree",
|
|
5407
|
-
props: /* @__PURE__ */
|
|
5416
|
+
props: /* @__PURE__ */ un({
|
|
5408
5417
|
settings: { type: Object },
|
|
5409
5418
|
defaultSettings: { type: Object },
|
|
5410
5419
|
isDraggable: { type: Boolean, default: !1 }
|