@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.
@@ -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-CUyzvQjw.js';
2
- import { P as Pe, b as script, g as ge, d as axios } from './splitpanes.es-qAuBPxFz.js';
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-CUyzvQjw.js';
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.3";
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: p }) {
5365
- const _ = p, u = D, k = 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
+ 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
- }), d = ref({
5373
+ }), f = ref({
5372
5374
  // Used to detect double click on touch devices.
5373
5375
  splitter: null,
5374
5376
  timeoutId: null
5375
- }), y = computed(() => ({
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: s } = t.getBoundingClientRect(), { clientX: a, clientY: o } = "ontouchstart" in window && e.touches ? e.touches[0] : e;
5386
- c.value.cursorOffset = u.horizontal ? o - s : a - i;
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)), f("resize", { event: e }, true);
5393
+ K(I(e)), d("resize", { event: e }, true);
5392
5394
  }));
5393
5395
  }, P = (e) => {
5394
- c.value.dragging && f("resized", { event: e }, true), c.value.mouseDown = false, c.value.activeSplitter = null, setTimeout(() => {
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(), d.value.splitter === n ? (clearTimeout(d.value.timeoutId), d.value.timeoutId = null, U(e, n), d.value.splitter = null) : (d.value.splitter = n, d.value.timeoutId = setTimeout(() => d.value.splitter = null, 500))), c.value.dragging || f("splitter-click", { event: e, index: n }, true);
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 (f("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
5402
+ if (d("splitter-dblclick", { event: e, index: n }, true), u.maximizePanes) {
5401
5403
  let t = 0;
5402
- l.value = l.value.map((i, s) => (i.size = s === n ? i.max : i.min, s !== n && (t += i.min), i)), l.value[n].size -= t, f("pane-maximize", { event: e, index: n, pane: l.value[n] }), f("resized", { event: e, index: n }, true);
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
- f("pane-click", {
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), s = 100 - (u.pushOtherPanes ? 0 : t.nextPanesSize), a = Math.max(Math.min(J(e), s), i);
5429
- let o = [n, n + 1], v = l.value[o[0]] || null, z = l.value[o[1]] || null;
5430
- const H = v.max < 100 && a >= v.max + t.prevPanesSize, ue = z.max < 100 && a <= 100 - (z.max + N(n + 1));
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, z.size = Math.max(100 - v.max - t.prevPanesSize - t.nextPanesSize, 0)) : (v.size = Math.max(100 - z.max - t.prevPanesSize - N(n + 1), 0), z.size = z.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, a);
5438
+ const j = Q(t, s);
5437
5439
  if (!j) return;
5438
- (({ sums: t, panesToResize: o } = j)), v = l.value[o[0]] || null, z = l.value[o[1]] || 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(a - t.prevPanesSize - t.prevReachedMinPanes, v.min), v.max)), z !== null && (z.size = Math.min(Math.max(100 - a - t.nextPanesSize - t.nextReachedMinPanes, z.min), z.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((s, a) => {
5444
- a > i[0] && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
5445
- }), e.prevPanesSize = $(i[0]), i[0] === void 0) ? (e.prevReachedMinPanes = 0, l.value[0].size = l.value[0].min, l.value.forEach((s, a) => {
5446
- a > 0 && a <= t && (s.size = s.min, e.prevReachedMinPanes += s.min);
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((s, a) => {
5448
- a > t && a < i[1] && (s.size = s.min, e.nextReachedMinPanes += s.min);
5449
- }), e.nextPanesSize = N(i[1] - 1), i[1] === void 0) ? (e.nextReachedMinPanes = 0, l.value.forEach((s, a) => {
5450
- a < m.value - 1 && a >= t + 1 && (s.size = s.min, e.nextReachedMinPanes += s.min);
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) || []).forEach((t) => {
5455
- const i = t.classList.contains("splitpanes__pane"), s = t.classList.contains("splitpanes__splitter");
5456
- !i && !s && (t.remove(), console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."));
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, s = document.createElement("div");
5460
- s.classList.add("splitpanes__splitter"), t || (s.onmousedown = (a) => b(a, i), typeof window < "u" && "ontouchstart" in window && (s.ontouchstart = (a) => b(a, i)), s.onclick = (a) => A(a, i + 1)), s.ondblclick = (a) => U(a, i + 1), n.parentNode.insertBefore(s, n);
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
- e.forEach((i) => {
5469
+ for (const i of e)
5467
5470
  i.className.includes("splitpanes__splitter") && ne(i);
5468
- });
5469
5471
  let n = 0;
5470
- e.forEach((i) => {
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
- Object.entries(n).forEach(([i, s]) => t[i] = s);
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, s) => i.index = s), S.value && nextTick(() => {
5480
- C(), L({ addedPane: l.value[n] }), f("pane-add", { pane: 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
- }, se = (e) => {
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, s) => i.index = s), nextTick(() => {
5487
- C(), f("pane-remove", { pane: t }), L({ removedPane: { ...t } });
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) : ae(), S.value && f("resized");
5491
- }, ae = () => {
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.forEach((s) => {
5496
- s.size = Math.max(Math.min(e, s.max), s.min), n -= s.size, s.size >= s.max && t.push(s.id), s.size <= s.min && i.push(s.id);
5497
- }), n > 0.1 && q(n, t, i);
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.forEach((a) => {
5503
- e -= a.size, a.givenSize !== null && i++, a.size >= a.max && n.push(a.id), a.size <= a.min && t.push(a.id);
5504
- });
5505
- let s = 100;
5506
- e > 0.1 && (l.value.forEach((a) => {
5507
- a.givenSize === null && (a.size = Math.max(Math.min(e / (m.value - i), a.max), a.min)), s -= a.size;
5508
- }), s > 0.1 && q(s, n, t));
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 s = [], a = [];
5512
- ((e == null ? void 0 : e.givenSize) ?? null) !== null && (t = (100 - e.givenSize) / (m.value - 1)), l.value.forEach((o) => {
5513
- i -= o.size, o.size >= o.max && s.push(o.id), o.size <= o.min && a.push(o.id);
5514
- }), !(Math.abs(i) < 0.1) && (l.value.forEach((o) => {
5515
- (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 && s.push(o.id), o.size <= o.min && a.push(o.id);
5516
- }), i > 0.1 && q(i, s, a));
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((s, a) => {
5520
- if (e > 0 && !n.includes(s.id)) {
5521
- const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
5522
- e -= v, s.size = o;
5523
- } else if (!t.includes(s.id)) {
5524
- const o = Math.max(Math.min(s.size + i, s.max), s.min), v = o - s.size;
5525
- e -= v, s.size = o;
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
- }, f = (e, n = void 0, t = false) => {
5535
+ }, d = (e, n = void 0, t = false) => {
5531
5536
  const i = (n == null ? void 0 : n.index) ?? c.value.activeSplitter ?? null;
5532
- _(e, {
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((s) => ({ min: s.min, max: s.max, size: s.size }))
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(), f("ready"), S.value = true;
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: y.value },
5550
- (e = k.default) == null ? void 0 : e.call(k)
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", se), provide("onPaneClick", W), (e, n) => (openBlock(), createBlock(resolveDynamicComponent(re)));
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 p = D, _ = inject("requestUpdate"), u = inject("onPaneAdd"), k = 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), d = computed(() => {
5565
- const r = isNaN(p.size) || p.size === void 0 ? 0 : parseFloat(p.size);
5566
- return Math.max(Math.min(r, R.value), y.value);
5567
- }), y = computed(() => {
5568
- const r = parseFloat(p.minSize);
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(p.maxSize);
5576
+ const r = parseFloat(h.maxSize);
5572
5577
  return isNaN(r) ? 100 : r;
5573
5578
  }), O = computed(() => {
5574
5579
  var r;
5575
- return `${k.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
5580
+ return `${E.value ? "height" : "width"}: ${(r = S.value) == null ? void 0 : r.size}%`;
5576
5581
  });
5577
- return watch(() => d.value, (r) => _({ uid: m, size: r })), watch(() => y.value, (r) => _({ uid: m, min: r })), watch(() => R.value, (r) => _({ uid: m, max: r })), onMounted(() => {
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: y.value,
5586
+ min: _.value,
5582
5587
  max: R.value,
5583
5588
  // The given size (useful to know the user intention).
5584
- givenSize: p.size === void 0 ? null : d.value,
5585
- size: d.value
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-CUyzvQjw.js';
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 "))
@@ -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-CUyzvQjw.js"></script>
20
- <link rel="stylesheet" crossorigin href="./assets/index-CxI6E8SF.css">
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.22.16",
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.3",
27
- "body-parser": "^2.1.0",
26
+ "axios": "^1.8.4",
27
+ "body-parser": "^2.2.0",
28
28
  "cors": "^2.8.5",
29
- "http-proxy-middleware": "^3.0.3",
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.3",
40
- "@primevue/themes": "^4.3.2",
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.5",
42
+ "@types/wicg-file-system-access": "^2023.10.6",
44
43
  "gray-matter": "^4.0.3",
45
- "primevue": "^4.3.2",
46
- "splitpanes": "^4.0.2",
47
- "typescript": "^5.8.2",
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.2.2",
51
- "vue-i18n": "^11.1.2",
52
- "zod": "^3.24.2"
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",