@valaxyjs/devtools 0.22.16 → 0.23.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/dist/client/assets/{about-ClCBmHNf.js → about-ChiNluYe.js} +2 -2
- package/dist/client/assets/{categories-Ct7J11Nm.js → categories-Cp-4NT4j.js} +2 -2
- package/dist/client/assets/index-Bu5CF1lM.css +428 -0
- package/dist/client/assets/{index-CUyzvQjw.js → index-CI8seTsP.js} +420 -326
- package/dist/client/assets/{index-lB-p08e3.js → index-CXq-atkD.js} +731 -451
- package/dist/client/assets/{migration-BSCZg6uh.js → migration-BC8gxe4P.js} +2 -2
- package/dist/client/assets/{splitpanes.es-qAuBPxFz.js → splitpanes.es-J9nnc436.js} +96 -91
- package/dist/client/assets/{tags-t3P852Pi.js → tags-CvsDmcsv.js} +2 -2
- package/dist/client/index.html +2 -2
- package/package.json +14 -15
- package/dist/client/assets/index-CxI6E8SF.css +0 -428
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as defineComponent, s as ref, k as createBlock, p as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, j as renderList, w as withDirectives, ac as vModelCheckbox, t as toDisplayString, aa as postList, F as Fragment, ad as vModelText, o as openBlock } from './index-
|
|
2
|
-
import { P as Pe, b as script, g as ge, d as axios } from './splitpanes.es-
|
|
1
|
+
import { q as defineComponent, s as ref, k as createBlock, p as withCtx, y as unref, x as createVNode, a as createBaseVNode, z as createTextVNode, c as createElementBlock, j as renderList, w as withDirectives, ac as vModelCheckbox, t as toDisplayString, aa as postList, F as Fragment, ad as vModelText, o as openBlock } from './index-CI8seTsP.js';
|
|
2
|
+
import { P as Pe, b as script, g as ge, d as axios } from './splitpanes.es-J9nnc436.js';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
flex: "~ gap-2",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ae as getKeyValue, m as mergeProps, af as isFunction$1, ag as toCapitalCase, ah as service_default, ai as config_default, B as BaseStyle, aj as isString$1, ak as toFlatCase, al as resolve, am as isObject$1, an as isEmpty, ao as PrimeVueService, ap as isArray$1, M as getAttribute, aq as removeClass, ar as getHeight, as as getWidth, O as getOuterWidth, at as getOuterHeight, au as getOffset, av as addClass, aw as createElement, ax as useId, i as isNotEmpty, K as findSingle, ay as isElement, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, h as resolveComponent, r as resolveDirective, w as withDirectives, k as createBlock, p as withCtx, d as createCommentVNode, n as normalizeClass, U as resolveDynamicComponent, az as useSlots, s as ref, aA as computed, v as watch, a6 as onMounted, aB as onBeforeUnmount, aC as provide, aD as inject, aE as getCurrentInstance, S as normalizeStyle, y as unref, aF as h, aG as nextTick } from './index-
|
|
1
|
+
import { ae as getKeyValue, m as mergeProps, af as isFunction$1, ag as toCapitalCase, ah as service_default, ai as config_default, B as BaseStyle, aj as isString$1, ak as toFlatCase, al as resolve, am as isObject$1, an as isEmpty, ao as PrimeVueService, ap as isArray$1, M as getAttribute, aq as removeClass, ar as getHeight, as as getWidth, O as getOuterWidth, at as getOuterHeight, au as getOffset, av as addClass, aw as createElement, ax as useId, i as isNotEmpty, K as findSingle, ay as isElement, c as createElementBlock, o as openBlock, a as createBaseVNode, b as renderSlot, z as createTextVNode, t as toDisplayString, h as resolveComponent, r as resolveDirective, w as withDirectives, k as createBlock, p as withCtx, d as createCommentVNode, n as normalizeClass, U as resolveDynamicComponent, az as useSlots, s as ref, aA as computed, v as watch, a6 as onMounted, aB as onBeforeUnmount, aC as provide, aD as inject, aE as getCurrentInstance, S as normalizeStyle, y as unref, aF as h, aG as nextTick } from './index-CI8seTsP.js';
|
|
2
2
|
|
|
3
3
|
// src/classnames/index.ts
|
|
4
4
|
function cn(...args) {
|
|
@@ -262,6 +262,7 @@ var BaseDirective = {
|
|
|
262
262
|
_removeThemeListeners: function _removeThemeListeners() {
|
|
263
263
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
264
264
|
service_default.off('theme:change', instance.$loadStyles);
|
|
265
|
+
instance.$loadStyles = undefined;
|
|
265
266
|
},
|
|
266
267
|
_hook: function _hook(directiveName, hookName, el, binding, vnode, prevVnode) {
|
|
267
268
|
var _binding$value, _config$pt;
|
|
@@ -402,6 +403,7 @@ var BaseDirective = {
|
|
|
402
403
|
if (watchers) {
|
|
403
404
|
PrimeVueService.off('config:change', watchers.config);
|
|
404
405
|
PrimeVueService.off('config:ripple:change', watchers['config.ripple']);
|
|
406
|
+
el._$instances[name].$watchersCallback = undefined;
|
|
405
407
|
}
|
|
406
408
|
};
|
|
407
409
|
return {
|
|
@@ -3381,7 +3383,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
3381
3383
|
*/
|
|
3382
3384
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
3383
3385
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
3384
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
3386
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
3385
3387
|
return combineURLs(baseURL, requestedURL);
|
|
3386
3388
|
}
|
|
3387
3389
|
return requestedURL;
|
|
@@ -4240,7 +4242,7 @@ function dispatchRequest(config) {
|
|
|
4240
4242
|
|
|
4241
4243
|
/* Injected with object hook! */
|
|
4242
4244
|
|
|
4243
|
-
const VERSION$1 = "1.8.
|
|
4245
|
+
const VERSION$1 = "1.8.4";
|
|
4244
4246
|
/* Injected with object hook! */
|
|
4245
4247
|
|
|
4246
4248
|
const validators$1 = {};
|
|
@@ -5342,13 +5344,13 @@ script.render = render;
|
|
|
5342
5344
|
const Pe = {
|
|
5343
5345
|
__name: "splitpanes",
|
|
5344
5346
|
props: {
|
|
5345
|
-
horizontal: { type: Boolean },
|
|
5347
|
+
horizontal: { type: Boolean, default: false },
|
|
5346
5348
|
pushOtherPanes: { type: Boolean, default: true },
|
|
5347
5349
|
maximizePanes: { type: Boolean, default: true },
|
|
5348
5350
|
// Maximize pane on splitter double click/tap.
|
|
5349
5351
|
rtl: { type: Boolean, default: false },
|
|
5350
5352
|
// Right to left direction.
|
|
5351
|
-
firstSplitter: { type: Boolean }
|
|
5353
|
+
firstSplitter: { type: Boolean, default: false }
|
|
5352
5354
|
},
|
|
5353
5355
|
emits: [
|
|
5354
5356
|
"ready",
|
|
@@ -5361,18 +5363,18 @@ const Pe = {
|
|
|
5361
5363
|
"splitter-click",
|
|
5362
5364
|
"splitter-dblclick"
|
|
5363
5365
|
],
|
|
5364
|
-
setup(D, { emit:
|
|
5365
|
-
const
|
|
5366
|
+
setup(D, { emit: h$1 }) {
|
|
5367
|
+
const y = h$1, u = D, E = useSlots(), l = ref([]), M = computed(() => l.value.reduce((e, n) => (e[~~n.id] = n) && e, {})), m = computed(() => l.value.length), x = ref(null), S = ref(false), c = ref({
|
|
5366
5368
|
mouseDown: false,
|
|
5367
5369
|
dragging: false,
|
|
5368
5370
|
activeSplitter: null,
|
|
5369
5371
|
cursorOffset: 0
|
|
5370
5372
|
// Cursor offset within the splitter.
|
|
5371
|
-
}),
|
|
5373
|
+
}), f = ref({
|
|
5372
5374
|
// Used to detect double click on touch devices.
|
|
5373
5375
|
splitter: null,
|
|
5374
5376
|
timeoutId: null
|
|
5375
|
-
}),
|
|
5377
|
+
}), _ = computed(() => ({
|
|
5376
5378
|
[`splitpanes splitpanes--${u.horizontal ? "horizontal" : "vertical"}`]: true,
|
|
5377
5379
|
"splitpanes--dragging": c.value.dragging
|
|
5378
5380
|
})), R = () => {
|
|
@@ -5382,27 +5384,27 @@ const Pe = {
|
|
|
5382
5384
|
}, b = (e, n) => {
|
|
5383
5385
|
const t = e.target.closest(".splitpanes__splitter");
|
|
5384
5386
|
if (t) {
|
|
5385
|
-
const { left: i, top:
|
|
5386
|
-
c.value.cursorOffset = u.horizontal ? o -
|
|
5387
|
+
const { left: i, top: a } = t.getBoundingClientRect(), { clientX: s, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
|
|
5388
|
+
c.value.cursorOffset = u.horizontal ? o - a : s - i;
|
|
5387
5389
|
}
|
|
5388
5390
|
R(), c.value.mouseDown = true, c.value.activeSplitter = n;
|
|
5389
5391
|
}, r = (e) => {
|
|
5390
5392
|
c.value.mouseDown && (e.preventDefault(), c.value.dragging = true, requestAnimationFrame(() => {
|
|
5391
|
-
K(I(e)),
|
|
5393
|
+
K(I(e)), d("resize", { event: e }, true);
|
|
5392
5394
|
}));
|
|
5393
5395
|
}, P = (e) => {
|
|
5394
|
-
c.value.dragging &&
|
|
5396
|
+
c.value.dragging && d("resized", { event: e }, true), c.value.mouseDown = false, c.value.activeSplitter = null, setTimeout(() => {
|
|
5395
5397
|
c.value.dragging = false, O();
|
|
5396
5398
|
}, 100);
|
|
5397
5399
|
}, A = (e, n) => {
|
|
5398
|
-
"ontouchstart" in window && (e.preventDefault(),
|
|
5400
|
+
"ontouchstart" in window && (e.preventDefault(), f.value.splitter === n ? (clearTimeout(f.value.timeoutId), f.value.timeoutId = null, U(e, n), f.value.splitter = null) : (f.value.splitter = n, f.value.timeoutId = setTimeout(() => f.value.splitter = null, 500))), c.value.dragging || d("splitter-click", { event: e, index: n }, true);
|
|
5399
5401
|
}, U = (e, n) => {
|
|
5400
|
-
if (
|
|
5402
|
+
if (d("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
|
|
5401
5403
|
let t = 0;
|
|
5402
|
-
l.value = l.value.map((i,
|
|
5404
|
+
l.value = l.value.map((i, a) => (i.size = a === n ? i.max : i.min, a !== n && (t += i.min), i)), l.value[n].size -= t, d("pane-maximize", { event: e, index: n, pane: l.value[n] }), d("resized", { event: e, index: n }, true);
|
|
5403
5405
|
}
|
|
5404
5406
|
}, W = (e, n) => {
|
|
5405
|
-
|
|
5407
|
+
d("pane-click", {
|
|
5406
5408
|
event: e,
|
|
5407
5409
|
index: M.value[n].index,
|
|
5408
5410
|
pane: M.value[n]
|
|
@@ -5425,132 +5427,135 @@ const Pe = {
|
|
|
5425
5427
|
prevReachedMinPanes: 0,
|
|
5426
5428
|
nextReachedMinPanes: 0
|
|
5427
5429
|
};
|
|
5428
|
-
const i = 0 + (u.pushOtherPanes ? 0 : t.prevPanesSize),
|
|
5429
|
-
let o = [n, n + 1], v = l.value[o[0]] || null,
|
|
5430
|
-
const H = v.max < 100 &&
|
|
5430
|
+
const i = 0 + (u.pushOtherPanes ? 0 : t.prevPanesSize), a = 100 - (u.pushOtherPanes ? 0 : t.nextPanesSize), s = Math.max(Math.min(J(e), a), i);
|
|
5431
|
+
let o = [n, n + 1], v = l.value[o[0]] || null, p = l.value[o[1]] || null;
|
|
5432
|
+
const H = v.max < 100 && s >= v.max + t.prevPanesSize, ue = p.max < 100 && s <= 100 - (p.max + N(n + 1));
|
|
5431
5433
|
if (H || ue) {
|
|
5432
|
-
H ? (v.size = v.max,
|
|
5434
|
+
H ? (v.size = v.max, p.size = Math.max(100 - v.max - t.prevPanesSize - t.nextPanesSize, 0)) : (v.size = Math.max(100 - p.max - t.prevPanesSize - N(n + 1), 0), p.size = p.max);
|
|
5433
5435
|
return;
|
|
5434
5436
|
}
|
|
5435
5437
|
if (u.pushOtherPanes) {
|
|
5436
|
-
const j = Q(t,
|
|
5438
|
+
const j = Q(t, s);
|
|
5437
5439
|
if (!j) return;
|
|
5438
|
-
(({ sums: t, panesToResize: o } = j)), v = l.value[o[0]] || null,
|
|
5440
|
+
(({ sums: t, panesToResize: o } = j)), v = l.value[o[0]] || null, p = l.value[o[1]] || null;
|
|
5439
5441
|
}
|
|
5440
|
-
v !== null && (v.size = Math.min(Math.max(
|
|
5442
|
+
v !== null && (v.size = Math.min(Math.max(s - t.prevPanesSize - t.prevReachedMinPanes, v.min), v.max)), p !== null && (p.size = Math.min(Math.max(100 - s - t.nextPanesSize - t.nextReachedMinPanes, p.min), p.max));
|
|
5441
5443
|
}, Q = (e, n) => {
|
|
5442
5444
|
const t = c.value.activeSplitter, i = [t, t + 1];
|
|
5443
|
-
return n < e.prevPanesSize + l.value[i[0]].min && (i[0] = V(t).index, e.prevReachedMinPanes = 0, i[0] < t && l.value.forEach((
|
|
5444
|
-
|
|
5445
|
-
}), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((
|
|
5446
|
-
|
|
5447
|
-
}), l.value[i[1]].size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n > 100 - e.nextPanesSize - l.value[i[1]].min && (i[1] = Z(t).index, e.nextReachedMinPanes = 0, i[1] > t + 1 && l.value.forEach((
|
|
5448
|
-
|
|
5449
|
-
}), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((
|
|
5450
|
-
|
|
5445
|
+
return n < e.prevPanesSize + l.value[i[0]].min && (i[0] = V(t).index, e.prevReachedMinPanes = 0, i[0] < t && l.value.forEach((a, s) => {
|
|
5446
|
+
s > i[0] && s <= t && (a.size = a.min, e.prevReachedMinPanes += a.min);
|
|
5447
|
+
}), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((a, s) => {
|
|
5448
|
+
s > 0 && s <= t && (a.size = a.min, e.prevReachedMinPanes += a.min);
|
|
5449
|
+
}), l.value[i[1]].size = 100 - e.prevReachedMinPanes - l.value[0].min - e.prevPanesSize - e.nextPanesSize, null) : n > 100 - e.nextPanesSize - l.value[i[1]].min && (i[1] = Z(t).index, e.nextReachedMinPanes = 0, i[1] > t + 1 && l.value.forEach((a, s) => {
|
|
5450
|
+
s > t && s < i[1] && (a.size = a.min, e.nextReachedMinPanes += a.min);
|
|
5451
|
+
}), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((a, s) => {
|
|
5452
|
+
s < m.value - 1 && s >= t + 1 && (a.size = a.min, e.nextReachedMinPanes += a.min);
|
|
5451
5453
|
}), l.value[i[0]].size = 100 - e.prevPanesSize - N(i[0] - 1), null) : { sums: e, panesToResize: i };
|
|
5452
5454
|
}, $ = (e) => l.value.reduce((n, t, i) => n + (i < e ? t.size : 0), 0), N = (e) => l.value.reduce((n, t, i) => n + (i > e + 1 ? t.size : 0), 0), V = (e) => [...l.value].reverse().find((t) => t.index < e && t.size > t.min) || {}, Z = (e) => l.value.find((t) => t.index > e + 1 && t.size > t.min) || {}, ee = () => {
|
|
5453
5455
|
var n;
|
|
5454
|
-
Array.from(((n = x.value) == null ? void 0 : n.children) || [])
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5456
|
+
const e = Array.from(((n = x.value) == null ? void 0 : n.children) || []);
|
|
5457
|
+
for (const t of e) {
|
|
5458
|
+
const i = t.classList.contains("splitpanes__pane"), a = t.classList.contains("splitpanes__splitter");
|
|
5459
|
+
!i && !a && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
|
|
5460
|
+
}
|
|
5458
5461
|
}, F = (e, n, t = false) => {
|
|
5459
|
-
const i = e - 1,
|
|
5460
|
-
|
|
5462
|
+
const i = e - 1, a = document.createElement("div");
|
|
5463
|
+
a.classList.add("splitpanes__splitter"), t || (a.onmousedown = (s) => b(s, i), typeof window < "u" && "ontouchstart" in window && (a.ontouchstart = (s) => b(s, i)), a.onclick = (s) => A(s, i + 1)), a.ondblclick = (s) => U(s, i + 1), n.parentNode.insertBefore(a, n);
|
|
5461
5464
|
}, ne = (e) => {
|
|
5462
5465
|
e.onmousedown = void 0, e.onclick = void 0, e.ondblclick = void 0, e.remove();
|
|
5463
5466
|
}, C = () => {
|
|
5464
5467
|
var t;
|
|
5465
5468
|
const e = Array.from(((t = x.value) == null ? void 0 : t.children) || []);
|
|
5466
|
-
|
|
5469
|
+
for (const i of e)
|
|
5467
5470
|
i.className.includes("splitpanes__splitter") && ne(i);
|
|
5468
|
-
});
|
|
5469
5471
|
let n = 0;
|
|
5470
|
-
|
|
5472
|
+
for (const i of e)
|
|
5471
5473
|
i.className.includes("splitpanes__pane") && (!n && u.firstSplitter ? F(n, i, true) : n && F(n, i), n++);
|
|
5472
|
-
});
|
|
5473
5474
|
}, ie = ({ uid: e, ...n }) => {
|
|
5474
5475
|
const t = M.value[e];
|
|
5475
|
-
|
|
5476
|
+
for (const [i, a] of Object.entries(n)) t[i] = a;
|
|
5476
5477
|
}, te = (e) => {
|
|
5477
5478
|
var t;
|
|
5478
5479
|
let n = -1;
|
|
5479
|
-
Array.from(((t = x.value) == null ? void 0 : t.children) || []).some((i) => (i.className.includes("splitpanes__pane") && n++, i.isSameNode(e.el))), l.value.splice(n, 0, { ...e, index: n }), l.value.forEach((i,
|
|
5480
|
-
C(), L({ addedPane: l.value[n] }),
|
|
5480
|
+
Array.from(((t = x.value) == null ? void 0 : t.children) || []).some((i) => (i.className.includes("splitpanes__pane") && n++, i.isSameNode(e.el))), l.value.splice(n, 0, { ...e, index: n }), l.value.forEach((i, a) => i.index = a), S.value && nextTick(() => {
|
|
5481
|
+
C(), L({ addedPane: l.value[n] }), d("pane-add", { pane: l.value[n] });
|
|
5481
5482
|
});
|
|
5482
|
-
},
|
|
5483
|
+
}, ae = (e) => {
|
|
5483
5484
|
const n = l.value.findIndex((i) => i.id === e);
|
|
5484
5485
|
l.value[n].el = null;
|
|
5485
5486
|
const t = l.value.splice(n, 1)[0];
|
|
5486
|
-
l.value.forEach((i,
|
|
5487
|
-
C(),
|
|
5487
|
+
l.value.forEach((i, a) => i.index = a), nextTick(() => {
|
|
5488
|
+
C(), d("pane-remove", { pane: t }), L({ removedPane: { ...t } });
|
|
5488
5489
|
});
|
|
5489
5490
|
}, L = (e = {}) => {
|
|
5490
|
-
!e.addedPane && !e.removedPane ? le() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? oe(e) :
|
|
5491
|
-
},
|
|
5491
|
+
!e.addedPane && !e.removedPane ? le() : l.value.some((n) => n.givenSize !== null || n.min || n.max < 100) ? oe(e) : se(), S.value && d("resized");
|
|
5492
|
+
}, se = () => {
|
|
5492
5493
|
const e = 100 / m.value;
|
|
5493
5494
|
let n = 0;
|
|
5494
5495
|
const t = [], i = [];
|
|
5495
|
-
l.value
|
|
5496
|
-
|
|
5497
|
-
|
|
5496
|
+
for (const a of l.value)
|
|
5497
|
+
a.size = Math.max(Math.min(e, a.max), a.min), n -= a.size, a.size >= a.max && t.push(a.id), a.size <= a.min && i.push(a.id);
|
|
5498
|
+
n > 0.1 && q(n, t, i);
|
|
5498
5499
|
}, le = () => {
|
|
5499
5500
|
let e = 100;
|
|
5500
5501
|
const n = [], t = [];
|
|
5501
5502
|
let i = 0;
|
|
5502
|
-
l.value
|
|
5503
|
-
e -=
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5503
|
+
for (const s of l.value)
|
|
5504
|
+
e -= s.size, s.givenSize !== null && i++, s.size >= s.max && n.push(s.id), s.size <= s.min && t.push(s.id);
|
|
5505
|
+
let a = 100;
|
|
5506
|
+
if (e > 0.1) {
|
|
5507
|
+
for (const s of l.value)
|
|
5508
|
+
s.givenSize === null && (s.size = Math.max(Math.min(e / (m.value - i), s.max), s.min)), a -= s.size;
|
|
5509
|
+
a > 0.1 && q(a, n, t);
|
|
5510
|
+
}
|
|
5509
5511
|
}, oe = ({ addedPane: e, removedPane: n } = {}) => {
|
|
5510
5512
|
let t = 100 / m.value, i = 0;
|
|
5511
|
-
const
|
|
5512
|
-
((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1))
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5513
|
+
const a = [], s = [];
|
|
5514
|
+
((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1));
|
|
5515
|
+
for (const o of l.value)
|
|
5516
|
+
i -= o.size, o.size >= o.max && a.push(o.id), o.size <= o.min && s.push(o.id);
|
|
5517
|
+
if (!(Math.abs(i) < 0.1)) {
|
|
5518
|
+
for (const o of l.value)
|
|
5519
|
+
(e == null ? void 0 : e.givenSize) !== null && (e == null ? void 0 : e.id) === o.id || (o.size = Math.max(Math.min(t, o.max), o.min)), i -= o.size, o.size >= o.max && a.push(o.id), o.size <= o.min && s.push(o.id);
|
|
5520
|
+
i > 0.1 && q(i, a, s);
|
|
5521
|
+
}
|
|
5517
5522
|
}, q = (e, n, t) => {
|
|
5518
5523
|
let i;
|
|
5519
|
-
e > 0 ? i = e / (m.value - n.length) : i = e / (m.value - t.length), l.value.forEach((
|
|
5520
|
-
if (e > 0 && !n.includes(
|
|
5521
|
-
const o = Math.max(Math.min(
|
|
5522
|
-
e -= v,
|
|
5523
|
-
} else if (!t.includes(
|
|
5524
|
-
const o = Math.max(Math.min(
|
|
5525
|
-
e -= v,
|
|
5524
|
+
e > 0 ? i = e / (m.value - n.length) : i = e / (m.value - t.length), l.value.forEach((a, s) => {
|
|
5525
|
+
if (e > 0 && !n.includes(a.id)) {
|
|
5526
|
+
const o = Math.max(Math.min(a.size + i, a.max), a.min), v = o - a.size;
|
|
5527
|
+
e -= v, a.size = o;
|
|
5528
|
+
} else if (!t.includes(a.id)) {
|
|
5529
|
+
const o = Math.max(Math.min(a.size + i, a.max), a.min), v = o - a.size;
|
|
5530
|
+
e -= v, a.size = o;
|
|
5526
5531
|
}
|
|
5527
5532
|
}), Math.abs(e) > 0.1 && nextTick(() => {
|
|
5528
5533
|
S.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
|
|
5529
5534
|
});
|
|
5530
|
-
},
|
|
5535
|
+
}, d = (e, n = void 0, t = false) => {
|
|
5531
5536
|
const i = (n == null ? void 0 : n.index) ?? c.value.activeSplitter ?? null;
|
|
5532
|
-
|
|
5537
|
+
y(e, {
|
|
5533
5538
|
...n,
|
|
5534
5539
|
...i !== null && { index: i },
|
|
5535
5540
|
...t && i !== null && {
|
|
5536
5541
|
prevPane: l.value[i - (u.firstSplitter ? 1 : 0)],
|
|
5537
5542
|
nextPane: l.value[i + (u.firstSplitter ? 0 : 1)]
|
|
5538
5543
|
},
|
|
5539
|
-
panes: l.value.map((
|
|
5544
|
+
panes: l.value.map((a) => ({ min: a.min, max: a.max, size: a.size }))
|
|
5540
5545
|
});
|
|
5541
5546
|
};
|
|
5542
5547
|
watch(() => u.firstSplitter, () => C()), onMounted(() => {
|
|
5543
|
-
ee(), C(), L(),
|
|
5548
|
+
ee(), C(), L(), d("ready"), S.value = true;
|
|
5544
5549
|
}), onBeforeUnmount(() => S.value = false);
|
|
5545
5550
|
const re = () => {
|
|
5546
5551
|
var e;
|
|
5547
5552
|
return h(
|
|
5548
5553
|
"div",
|
|
5549
|
-
{ ref: x, class:
|
|
5550
|
-
(e =
|
|
5554
|
+
{ ref: x, class: _.value },
|
|
5555
|
+
(e = E.default) == null ? void 0 : e.call(E)
|
|
5551
5556
|
);
|
|
5552
5557
|
};
|
|
5553
|
-
return provide("panes", l), provide("indexedPanes", M), provide("horizontal", computed(() => u.horizontal)), provide("requestUpdate", ie), provide("onPaneAdd", te), provide("onPaneRemove",
|
|
5558
|
+
return provide("panes", l), provide("indexedPanes", M), provide("horizontal", computed(() => u.horizontal)), provide("requestUpdate", ie), provide("onPaneAdd", te), provide("onPaneRemove", ae), provide("onPaneClick", W), (e, n) => (openBlock(), createBlock(resolveDynamicComponent(re)));
|
|
5554
5559
|
}
|
|
5555
5560
|
}, ge = {
|
|
5556
5561
|
__name: "pane",
|
|
@@ -5561,28 +5566,28 @@ const Pe = {
|
|
|
5561
5566
|
},
|
|
5562
5567
|
setup(D) {
|
|
5563
5568
|
var b;
|
|
5564
|
-
const
|
|
5565
|
-
const r = isNaN(
|
|
5566
|
-
return Math.max(Math.min(r, R.value),
|
|
5567
|
-
}),
|
|
5568
|
-
const r = parseFloat(
|
|
5569
|
+
const h = D, y = inject("requestUpdate"), u = inject("onPaneAdd"), E = inject("horizontal"), l = inject("onPaneRemove"), M = inject("onPaneClick"), m = (b = getCurrentInstance()) == null ? void 0 : b.uid, x = inject("indexedPanes"), S = computed(() => x.value[m]), c = ref(null), f = computed(() => {
|
|
5570
|
+
const r = isNaN(h.size) || h.size === void 0 ? 0 : parseFloat(h.size);
|
|
5571
|
+
return Math.max(Math.min(r, R.value), _.value);
|
|
5572
|
+
}), _ = computed(() => {
|
|
5573
|
+
const r = parseFloat(h.minSize);
|
|
5569
5574
|
return isNaN(r) ? 0 : r;
|
|
5570
5575
|
}), R = computed(() => {
|
|
5571
|
-
const r = parseFloat(
|
|
5576
|
+
const r = parseFloat(h.maxSize);
|
|
5572
5577
|
return isNaN(r) ? 100 : r;
|
|
5573
5578
|
}), O = computed(() => {
|
|
5574
5579
|
var r;
|
|
5575
|
-
return `${
|
|
5580
|
+
return `${E.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
|
|
5576
5581
|
});
|
|
5577
|
-
return watch(() =>
|
|
5582
|
+
return watch(() => f.value, (r) => y({ uid: m, size: r })), watch(() => _.value, (r) => y({ uid: m, min: r })), watch(() => R.value, (r) => y({ uid: m, max: r })), onMounted(() => {
|
|
5578
5583
|
u({
|
|
5579
5584
|
id: m,
|
|
5580
5585
|
el: c.value,
|
|
5581
|
-
min:
|
|
5586
|
+
min: _.value,
|
|
5582
5587
|
max: R.value,
|
|
5583
5588
|
// The given size (useful to know the user intention).
|
|
5584
|
-
givenSize:
|
|
5585
|
-
size:
|
|
5589
|
+
givenSize: h.size === void 0 ? null : f.value,
|
|
5590
|
+
size: f.value
|
|
5586
5591
|
// The computed current size at any time.
|
|
5587
5592
|
});
|
|
5588
5593
|
}), onBeforeUnmount(() => l(m)), (r, P) => (openBlock(), createElementBlock("div", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-
|
|
1
|
+
import { _ as _export_sfc, c as createElementBlock, o as openBlock } from './index-CI8seTsP.js';
|
|
2
2
|
|
|
3
|
-
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
3
|
+
/* unplugin-vue-components disabled */const _sfc_main = { };
|
|
4
4
|
|
|
5
5
|
function _sfc_render(_ctx, _cache) {
|
|
6
6
|
return (openBlock(), createElementBlock("div", null, " Tags "))
|
package/dist/client/index.html
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
document.documentElement.classList.toggle('dark', true)
|
|
17
17
|
})()
|
|
18
18
|
</script>
|
|
19
|
-
<script type="module" crossorigin src="./assets/index-
|
|
20
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
19
|
+
<script type="module" crossorigin src="./assets/index-CI8seTsP.js"></script>
|
|
20
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Bu5CF1lM.css">
|
|
21
21
|
</head>
|
|
22
22
|
|
|
23
23
|
<body data-vite-inspect-mode="DEV">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valaxyjs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/YunYouJun/valaxy"
|
|
7
7
|
},
|
|
@@ -23,33 +23,32 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@rollup/pluginutils": "^5.1.4",
|
|
26
|
-
"axios": "^1.8.
|
|
27
|
-
"body-parser": "^2.
|
|
26
|
+
"axios": "^1.8.4",
|
|
27
|
+
"body-parser": "^2.2.0",
|
|
28
28
|
"cors": "^2.8.5",
|
|
29
|
-
"http-proxy-middleware": "^3.0.
|
|
29
|
+
"http-proxy-middleware": "^3.0.5",
|
|
30
30
|
"js-yaml": "^4.1.0",
|
|
31
31
|
"pathe": "^2.0.3",
|
|
32
32
|
"sirv": "^3.0.1",
|
|
33
|
-
"vite-dev-rpc": "^1.0.7"
|
|
34
|
-
"valaxy": "0.22.16"
|
|
33
|
+
"vite-dev-rpc": "^1.0.7"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
36
|
"@advjs/gui": "0.0.7-beta.7",
|
|
38
37
|
"@iconify-json/ri": "^1.2.5",
|
|
39
|
-
"@intlify/unplugin-vue-i18n": "^6.0.
|
|
40
|
-
"@primevue/themes": "^4.3.
|
|
38
|
+
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
|
39
|
+
"@primevue/themes": "^4.3.3",
|
|
41
40
|
"@types/body-parser": "^1.19.5",
|
|
42
41
|
"@types/splitpanes": "^2.2.6",
|
|
43
|
-
"@types/wicg-file-system-access": "^2023.10.
|
|
42
|
+
"@types/wicg-file-system-access": "^2023.10.6",
|
|
44
43
|
"gray-matter": "^4.0.3",
|
|
45
|
-
"primevue": "^4.3.
|
|
46
|
-
"splitpanes": "^4.0.
|
|
47
|
-
"typescript": "^5.8.
|
|
44
|
+
"primevue": "^4.3.3",
|
|
45
|
+
"splitpanes": "^4.0.3",
|
|
46
|
+
"typescript": "^5.8.3",
|
|
48
47
|
"unbuild": "^3.5.0",
|
|
49
48
|
"unplugin-vue-router": "^0.12.0",
|
|
50
|
-
"vite": "^6.
|
|
51
|
-
"vue-i18n": "^11.1.
|
|
52
|
-
"zod": "^3.24.
|
|
49
|
+
"vite": "^6.3.1",
|
|
50
|
+
"vue-i18n": "^11.1.3",
|
|
51
|
+
"zod": "^3.24.3"
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
55
54
|
"clean": "rimraf dist",
|