doph-js 0.3.92 → 0.3.94
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/dophJs.js +34 -31
- package/dist/dophJs.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dophJs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ea = Object.defineProperty;
|
|
2
2
|
var La = (n, t, e) => t in n ? Ea(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var q = (n, t, e) => La(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { useSlots as kt, computed as C, h as Rt, openBlock as c, createBlock as R, unref as U, ref as O, createElementBlock as w, Fragment as ye, normalizeClass as ae, normalizeStyle as le, renderSlot as oe, createCommentVNode as F, resolveDynamicComponent as Ye, createStaticVNode as In, onMounted as Ke, toDisplayString as J, withDirectives as Re, createElementVNode as T, vModelDynamic as Vt, withCtx as Z, createTextVNode as pe, Transition as Fn, withModifiers as _e, resolveComponent as pt, resolveDirective as zn, normalizeProps as Ar, guardReactiveProps as Vr, createVNode as H, renderList as Fe, pushScopeId as An, popScopeId as Vn, reactive as Ht, Teleport as Rr, nextTick as mt, getCurrentInstance as on, watch as
|
|
4
|
+
import { useSlots as kt, computed as C, h as Rt, openBlock as c, createBlock as R, unref as U, ref as O, createElementBlock as w, Fragment as ye, normalizeClass as ae, normalizeStyle as le, renderSlot as oe, createCommentVNode as F, resolveDynamicComponent as Ye, createStaticVNode as In, onMounted as Ke, toDisplayString as J, withDirectives as Re, createElementVNode as T, vModelDynamic as Vt, withCtx as Z, createTextVNode as pe, Transition as Fn, withModifiers as _e, resolveComponent as pt, resolveDirective as zn, normalizeProps as Ar, guardReactiveProps as Vr, createVNode as H, renderList as Fe, pushScopeId as An, popScopeId as Vn, reactive as Ht, Teleport as Rr, nextTick as mt, getCurrentInstance as on, watch as We, onUnmounted as Hr, mergeProps as Pt, useCssVars as ln, shallowRef as Oa, defineComponent as Ue, TransitionGroup as Br, vModelCheckbox as Nr, vModelSelect as Ia, toRef as Fa, KeepAlive as za, vShow as Dn, toRefs as Aa, vModelText as Rn, onBeforeUnmount as Yr, provide as yt, inject as $t, withKeys as Va } from "vue";
|
|
5
5
|
const Xe = {
|
|
6
6
|
__name: "DIcon",
|
|
7
7
|
props: {
|
|
@@ -1394,7 +1394,7 @@ function Vs(n) {
|
|
|
1394
1394
|
function u() {
|
|
1395
1395
|
o(), l(), r = !0;
|
|
1396
1396
|
}
|
|
1397
|
-
return
|
|
1397
|
+
return We(n, (f) => {
|
|
1398
1398
|
f ? u() : i();
|
|
1399
1399
|
}, { immediate: !0 }), Hr(() => {
|
|
1400
1400
|
i();
|
|
@@ -1778,7 +1778,7 @@ const Gs = Ue({
|
|
|
1778
1778
|
},
|
|
1779
1779
|
setup() {
|
|
1780
1780
|
const n = O();
|
|
1781
|
-
return
|
|
1781
|
+
return We(n, () => {
|
|
1782
1782
|
_t.value && (_t.value.comp = n.value);
|
|
1783
1783
|
}), {
|
|
1784
1784
|
dialogRef: _t,
|
|
@@ -3166,7 +3166,7 @@ const Ur = new li(), ui = { style: { display: "flex", "flex-direction": "column"
|
|
|
3166
3166
|
const e = n, r = O(e.page), a = O(localStorage.getItem("datagrid-perpage") || e.perPage), s = O(a.value.toString());
|
|
3167
3167
|
O(!1);
|
|
3168
3168
|
const o = O(""), l = O({}), i = O({});
|
|
3169
|
-
K.mutations.addDataGrid(e.id), K.mutations.setItems(e.id, e.items),
|
|
3169
|
+
K.mutations.addDataGrid(e.id), K.mutations.setItems(e.id, e.items), We(
|
|
3170
3170
|
() => e.items,
|
|
3171
3171
|
() => {
|
|
3172
3172
|
K.mutations.setItems(e.id, e.items);
|
|
@@ -3199,7 +3199,7 @@ const Ur = new li(), ui = { style: { display: "flex", "flex-direction": "column"
|
|
|
3199
3199
|
l.value[e.columns[z].key] && (L = L.filter((ee) => ee[e.columns[z].key] && ee[e.columns[z].key].toString().toUpperCase().includes(l.value[e.columns[z].key].toString().toUpperCase())));
|
|
3200
3200
|
return L.map((z, ee) => ee >= v && ee <= $ ? L[ee] : null).filter((z) => z);
|
|
3201
3201
|
});
|
|
3202
|
-
|
|
3202
|
+
We(
|
|
3203
3203
|
() => y.value,
|
|
3204
3204
|
() => {
|
|
3205
3205
|
x();
|
|
@@ -3403,7 +3403,7 @@ const Ur = new li(), ui = { style: { display: "flex", "flex-direction": "column"
|
|
|
3403
3403
|
};
|
|
3404
3404
|
return Ke(() => {
|
|
3405
3405
|
e.canvas && (r = s.value, a = r.getContext("2d")), t("loading"), l.value = !0, i.src = e.src;
|
|
3406
|
-
}),
|
|
3406
|
+
}), We(() => e.src, (f, h) => {
|
|
3407
3407
|
t("loading"), l.value = !0, i.src = e.src;
|
|
3408
3408
|
}), (f, h) => (c(), w("div", {
|
|
3409
3409
|
style: le([{ position: "relative", display: "inline-block" }, {
|
|
@@ -4750,10 +4750,10 @@ var ht;
|
|
|
4750
4750
|
(function(n) {
|
|
4751
4751
|
n.Range = "range", n.Steps = "steps", n.Positions = "positions", n.Count = "count", n.Values = "values";
|
|
4752
4752
|
})(ht || (ht = {}));
|
|
4753
|
-
var
|
|
4753
|
+
var qe;
|
|
4754
4754
|
(function(n) {
|
|
4755
4755
|
n[n.None = -1] = "None", n[n.NoValue = 0] = "NoValue", n[n.LargeValue = 1] = "LargeValue", n[n.SmallValue = 2] = "SmallValue";
|
|
4756
|
-
})(
|
|
4756
|
+
})(qe || (qe = {}));
|
|
4757
4757
|
function pu(n) {
|
|
4758
4758
|
return rn(n) && typeof n.from == "function";
|
|
4759
4759
|
}
|
|
@@ -5360,21 +5360,21 @@ function Qu(n, t, e) {
|
|
|
5360
5360
|
for (vr && (De = x.xNumSteps[Se]), De || (De = Ae - He), Ae === void 0 && (Ae = He), De = Math.max(De, 1e-7), ve = He; ve <= Ae; ve = m(ve, De)) {
|
|
5361
5361
|
for (Ve = x.toStepping(ve), gn = Ve - xe, hr = gn / (d.density || 1), wn = Math.round(hr), mr = gn / wn, Ie = 1; Ie <= wn; Ie += 1)
|
|
5362
5362
|
yn = xe + Ie * mr, E[yn.toFixed(5)] = [x.fromStepping(yn), 0];
|
|
5363
|
-
bn = b.indexOf(ve) > -1 ?
|
|
5363
|
+
bn = b.indexOf(ve) > -1 ? qe.LargeValue : vr ? qe.SmallValue : qe.NoValue, !Se && re && ve !== Ae && (bn = 0), ve === Ae && X || (E[Ve.toFixed(5)] = [ve, bn]), xe = Ve;
|
|
5364
5364
|
}
|
|
5365
5365
|
}), E;
|
|
5366
5366
|
}
|
|
5367
5367
|
function nt(d, m, b) {
|
|
5368
|
-
var E, W, N = M.createElement("div"), re = (E = {}, E[
|
|
5368
|
+
var E, W, N = M.createElement("div"), re = (E = {}, E[qe.None] = "", E[qe.NoValue] = t.cssClasses.valueNormal, E[qe.LargeValue] = t.cssClasses.valueLarge, E[qe.SmallValue] = t.cssClasses.valueSub, E), X = (W = {}, W[qe.None] = "", W[qe.NoValue] = t.cssClasses.markerNormal, W[qe.LargeValue] = t.cssClasses.markerLarge, W[qe.SmallValue] = t.cssClasses.markerSub, W), xe = [t.cssClasses.valueHorizontal, t.cssClasses.valueVertical], be = [t.cssClasses.markerHorizontal, t.cssClasses.markerVertical];
|
|
5369
5369
|
Be(N, t.cssClasses.pips), Be(N, t.ort === 0 ? t.cssClasses.pipsHorizontal : t.cssClasses.pipsVertical);
|
|
5370
5370
|
function Se(ve, Ie) {
|
|
5371
5371
|
var He = Ie === t.cssClasses.value, Ae = He ? xe : be, Ve = He ? re : X;
|
|
5372
5372
|
return Ie + " " + Ae[t.ort] + " " + Ve[ve];
|
|
5373
5373
|
}
|
|
5374
5374
|
function De(ve, Ie, He) {
|
|
5375
|
-
if (He = m ? m(Ie, He) : He, He !==
|
|
5375
|
+
if (He = m ? m(Ie, He) : He, He !== qe.None) {
|
|
5376
5376
|
var Ae = $(N, !1);
|
|
5377
|
-
Ae.className = Se(He, t.cssClasses.marker), Ae.style[t.style] = ve + "%", He >
|
|
5377
|
+
Ae.className = Se(He, t.cssClasses.marker), Ae.style[t.style] = ve + "%", He > qe.NoValue && (Ae = $(N, !1), Ae.className = Se(He, t.cssClasses.value), Ae.setAttribute("data-value", String(Ie)), Ae.style[t.style] = ve + "%", Ae.innerHTML = String(b.to(Ie)));
|
|
5378
5378
|
}
|
|
5379
5379
|
}
|
|
5380
5380
|
return Object.keys(d).forEach(function(ve) {
|
|
@@ -5445,15 +5445,15 @@ function Qu(n, t, e) {
|
|
|
5445
5445
|
}), b;
|
|
5446
5446
|
}
|
|
5447
5447
|
function ue(d, m) {
|
|
5448
|
-
d.type === "mouseout" && d.target.nodeName === "HTML" && d.relatedTarget === null &&
|
|
5448
|
+
d.type === "mouseout" && d.target.nodeName === "HTML" && d.relatedTarget === null && je(d, m);
|
|
5449
5449
|
}
|
|
5450
5450
|
function ze(d, m) {
|
|
5451
5451
|
if (navigator.appVersion.indexOf("MSIE 9") === -1 && d.buttons === 0 && m.buttonsProperty !== 0)
|
|
5452
|
-
return
|
|
5452
|
+
return je(d, m);
|
|
5453
5453
|
var b = (t.dir ? -1 : 1) * (d.calcPoint - m.startCalcPoint), E = b * 100 / m.baseSize;
|
|
5454
5454
|
lr(b > 0, E, m.locations, m.handleNumbers, m.connect);
|
|
5455
5455
|
}
|
|
5456
|
-
function
|
|
5456
|
+
function je(d, m) {
|
|
5457
5457
|
m.handle && (tn(m.handle, t.cssClasses.active), D -= 1), m.listeners.forEach(function(b) {
|
|
5458
5458
|
S.removeEventListener(b[0], b[1]);
|
|
5459
5459
|
}), D === 0 && (tn(o, t.cssClasses.drag), vn(), d.cursor && (g.style.cursor = "", g.removeEventListener("selectstart", kr))), t.events.smoothSteps && (m.handleNumbers.forEach(function(b) {
|
|
@@ -5485,7 +5485,7 @@ function Qu(n, t, e) {
|
|
|
5485
5485
|
handleNumbers: m.handleNumbers,
|
|
5486
5486
|
buttonsProperty: d.buttons,
|
|
5487
5487
|
locations: _.slice()
|
|
5488
|
-
}), re = B(r.end, S,
|
|
5488
|
+
}), re = B(r.end, S, je, {
|
|
5489
5489
|
target: d.target,
|
|
5490
5490
|
handle: b,
|
|
5491
5491
|
listeners: W,
|
|
@@ -5879,7 +5879,7 @@ const $r = {
|
|
|
5879
5879
|
animationDuration: r.duration
|
|
5880
5880
|
};
|
|
5881
5881
|
let l = null;
|
|
5882
|
-
|
|
5882
|
+
We(() => s.value, (p, D) => {
|
|
5883
5883
|
if (!r.selectable)
|
|
5884
5884
|
return;
|
|
5885
5885
|
const M = document.querySelector(`#${a}`).querySelectorAll("[data-handle]");
|
|
@@ -5936,7 +5936,7 @@ const $r = {
|
|
|
5936
5936
|
emits: ["angle"],
|
|
5937
5937
|
setup(n, { emit: t }) {
|
|
5938
5938
|
const e = n, r = O(null), a = O(parseInt(e.angle)), s = O(!1);
|
|
5939
|
-
|
|
5939
|
+
We(() => e.angle, (i) => {
|
|
5940
5940
|
a.value = -~i;
|
|
5941
5941
|
});
|
|
5942
5942
|
const o = (i, u, f, h) => Math.atan2(i - f, u - h) * (180 / Math.PI) * -1 + 180, l = (i) => {
|
|
@@ -6588,18 +6588,18 @@ const ic = {
|
|
|
6588
6588
|
nextReachedMinPanes: 0
|
|
6589
6589
|
};
|
|
6590
6590
|
const A = 0 + (e.pushOtherPanes ? 0 : B.prevPanesSize), j = 100 - (e.pushOtherPanes ? 0 : B.nextPanesSize), ne = Math.max(Math.min(g(P), j), A);
|
|
6591
|
-
let ue = [I, I + 1], ze = a.value[ue[0]] || null,
|
|
6592
|
-
const Ct = ze.max < 100 && ne >= ze.max + B.prevPanesSize, pn =
|
|
6591
|
+
let ue = [I, I + 1], ze = a.value[ue[0]] || null, je = a.value[ue[1]] || null;
|
|
6592
|
+
const Ct = ze.max < 100 && ne >= ze.max + B.prevPanesSize, pn = je.max < 100 && ne <= 100 - (je.max + z(I + 1));
|
|
6593
6593
|
if (Ct || pn) {
|
|
6594
|
-
Ct ? (ze.size = ze.max,
|
|
6594
|
+
Ct ? (ze.size = ze.max, je.size = Math.max(100 - ze.max - B.prevPanesSize - B.nextPanesSize, 0)) : (ze.size = Math.max(100 - je.max - B.prevPanesSize - z(I + 1), 0), je.size = je.max);
|
|
6595
6595
|
return;
|
|
6596
6596
|
}
|
|
6597
6597
|
if (e.pushOtherPanes) {
|
|
6598
6598
|
const Ut = $(B, ne);
|
|
6599
6599
|
if (!Ut) return;
|
|
6600
|
-
({ sums: B, panesToResize: ue } = Ut), ze = a.value[ue[0]] || null,
|
|
6600
|
+
({ sums: B, panesToResize: ue } = Ut), ze = a.value[ue[0]] || null, je = a.value[ue[1]] || null;
|
|
6601
6601
|
}
|
|
6602
|
-
ze !== null && (ze.size = Math.min(Math.max(ne - B.prevPanesSize - B.prevReachedMinPanes, ze.min), ze.max)),
|
|
6602
|
+
ze !== null && (ze.size = Math.min(Math.max(ne - B.prevPanesSize - B.prevReachedMinPanes, ze.min), ze.max)), je !== null && (je.size = Math.min(Math.max(100 - ne - B.nextPanesSize - B.nextReachedMinPanes, je.min), je.max));
|
|
6603
6603
|
}, $ = (P, I) => {
|
|
6604
6604
|
const B = u.value.activeSplitter, A = [B, B + 1];
|
|
6605
6605
|
return I < P.prevPanesSize + a.value[A[0]].min && (A[0] = ee(B).index, P.prevReachedMinPanes = 0, A[0] < B && a.value.forEach((j, ne) => {
|
|
@@ -6688,7 +6688,7 @@ const ic = {
|
|
|
6688
6688
|
i.value && console.warn("D-Splitter: Could not resize panes correctly due to their constraints.");
|
|
6689
6689
|
});
|
|
6690
6690
|
};
|
|
6691
|
-
|
|
6691
|
+
We(() => e.firstSplitter, () => V()), We(() => e.dblClickSplitter, (P) => {
|
|
6692
6692
|
[...l.value.querySelectorAll(".d-splitter__splitter")].forEach((B, A) => {
|
|
6693
6693
|
B.ondblclick = P ? (j) => k(j, A) : void 0;
|
|
6694
6694
|
});
|
|
@@ -6745,7 +6745,7 @@ const ic = {
|
|
|
6745
6745
|
size: h.value
|
|
6746
6746
|
// The computed current size at any time.
|
|
6747
6747
|
});
|
|
6748
|
-
}),
|
|
6748
|
+
}), We(() => h.value, (D) => e({ uid: l, size: D })), We(() => x.value, (D) => e({ uid: l, min: D })), We(() => y.value, (D) => e({ uid: l, max: D })), Yr(() => s(l)), (D, k) => (c(), w("div", {
|
|
6749
6749
|
ref_key: "paneEl",
|
|
6750
6750
|
ref: f,
|
|
6751
6751
|
class: "d-splitter__panel",
|
|
@@ -6831,7 +6831,7 @@ const ic = {
|
|
|
6831
6831
|
t("update:modelValue", y);
|
|
6832
6832
|
}
|
|
6833
6833
|
}), a = O(null), s = O(null), o = O(0), l = O(0), i = O(0), u = O("");
|
|
6834
|
-
|
|
6834
|
+
We(() => r.value, () => {
|
|
6835
6835
|
for (let y = 0; y < e.items.length; y++)
|
|
6836
6836
|
e.items[y].id === r.value && (u.value = e.items[y].title);
|
|
6837
6837
|
});
|
|
@@ -6932,7 +6932,7 @@ const ic = {
|
|
|
6932
6932
|
t("update:modelValue", k);
|
|
6933
6933
|
}
|
|
6934
6934
|
});
|
|
6935
|
-
|
|
6935
|
+
We(() => r, () => {
|
|
6936
6936
|
var k;
|
|
6937
6937
|
e.sort && r.value.sort, ((k = a.value) == null ? void 0 : k.itemsCount()) === 0 && a.value.hide();
|
|
6938
6938
|
});
|
|
@@ -7037,7 +7037,7 @@ const ic = {
|
|
|
7037
7037
|
], 64);
|
|
7038
7038
|
};
|
|
7039
7039
|
}
|
|
7040
|
-
}, Hp = /* @__PURE__ */ Me($c, [["__scopeId", "data-v-d4d57c98"]]), Mc = (n) => (An("data-v-
|
|
7040
|
+
}, Hp = /* @__PURE__ */ Me($c, [["__scopeId", "data-v-d4d57c98"]]), Mc = (n) => (An("data-v-28aa847e"), n = n(), Vn(), n), Pc = {
|
|
7041
7041
|
key: 0,
|
|
7042
7042
|
class: "d-label"
|
|
7043
7043
|
}, Tc = {
|
|
@@ -7097,8 +7097,11 @@ const ic = {
|
|
|
7097
7097
|
o.value = k.left, l.value = k.width, i.value = M - (k.y + k.height) < D.height ? k.top - D.height - 5 : k.height + k.top + 5, (((S = a.value) == null ? void 0 : S.itemsCount()) === 0 || ((g = a.value) == null ? void 0 : g.itemsCount()) === void 0) && a.value.hide();
|
|
7098
7098
|
});
|
|
7099
7099
|
};
|
|
7100
|
-
|
|
7101
|
-
|
|
7100
|
+
We(() => u.value, () => {
|
|
7101
|
+
for (let _ = 0; _ < e.items.length; _++)
|
|
7102
|
+
e.items[_].title === u.value ? r.value = e.items[_].id : r.value = "";
|
|
7103
|
+
a.value === "" && a.value.hide();
|
|
7104
|
+
}), We(() => r.value, () => {
|
|
7102
7105
|
for (let _ = 0; _ < e.items.length; _++)
|
|
7103
7106
|
e.items[_].id === r.value && (u.value = e.items[_].title);
|
|
7104
7107
|
});
|
|
@@ -7162,7 +7165,7 @@ const ic = {
|
|
|
7162
7165
|
], 2);
|
|
7163
7166
|
};
|
|
7164
7167
|
}
|
|
7165
|
-
}, Bp = /* @__PURE__ */ Me(Ac, [["__scopeId", "data-v-
|
|
7168
|
+
}, Bp = /* @__PURE__ */ Me(Ac, [["__scopeId", "data-v-28aa847e"]]);
|
|
7166
7169
|
class Np {
|
|
7167
7170
|
constructor(t) {
|
|
7168
7171
|
this.fields = t;
|