@zyui/components 0.0.20 → 0.0.22

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/es/index.mjs CHANGED
@@ -3,7 +3,7 @@ var ume = (o, a, c) => a in o ? lme(o, a, { enumerable: !0, configurable: !0, wr
3
3
  var ru = (o, a, c) => ume(o, typeof a != "symbol" ? a + "" : a, c);
4
4
  import { defineComponent as Bs, reactive as aR, provide as t1, inject as Lg, ref as Vn, watch as ms, toValue as hn, computed as _o, openBlock as tn, createElementBlock as Zn, createElementVNode as Ho, mergeModels as Hl, useModel as wl, Fragment as fa, renderList as Jc, createVNode as uo, unref as yt, withCtx as Io, createCommentVNode as Qs, toDisplayString as Pa, createTextVNode as Xc, createBlock as Hs, withDirectives as DV, mergeProps as Q4, resolveComponent as eA, isRef as Vb, onUnmounted as nd, watchEffect as hce, getCurrentScope as Qte, onScopeDispose as BM, onMounted as Cc, toRefs as iR, renderSlot as wa, normalizeStyle as zl, nextTick as em, onBeforeUnmount as cR, onActivated as dme, onDeactivated as fme, h as za, withModifiers as ene, Teleport as tne, normalizeClass as jh, vShow as mme, resolveDynamicComponent as m_, createPropsRestProxy as gme, toRef as ti, effectScope as pce, getCurrentInstance as T2, useSlots as hme, onBeforeMount as pme, useAttrs as bme, isMemoSame as vme, customRef as yme, markRaw as FM, readonly as wme, createStaticVNode as Cme, createSlots as Sme } from "vue";
5
5
  import { ElImage as xme, ElIcon as LM, ElPopover as nne, ElForm as one, ElFormItem as Zv, ElInput as lA, ElButton as w_, ElScrollbar as NV, ElLoadingDirective as sne, ElSelect as Yz, ElOption as Kz, ElDialog as _me, ElTabs as Eme, ElTabPane as Tme, ElTable as kme, ElTableColumn as mz, ElCheckbox as Ame, ElMessageBox as Ome, ElRadioGroup as bce, ElRadio as rte, ElRow as $me, ElCol as jse } from "element-plus";
6
- const Dme = "0.0.20";
6
+ const Dme = "0.0.22";
7
7
  var Nme = Object.defineProperty, Mme = (o, a, c) => a in o ? Nme(o, a, { enumerable: !0, configurable: !0, writable: !0, value: c }) : o[a] = c, lee = (o, a, c) => Mme(o, typeof a != "symbol" ? a + "" : a, c);
8
8
  function vce(o, a) {
9
9
  return function() {
@@ -66428,15 +66428,7 @@ function Iue() {
66428
66428
  width: le,
66429
66429
  height: Ht
66430
66430
  };
66431
- }, 16);
66432
- ms(
66433
- k,
66434
- (Fe) => {
66435
- ke(Fe), y.value && ce();
66436
- },
66437
- { deep: !0 }
66438
- );
66439
- const ke = (Fe) => {
66431
+ }, 16), ke = (Fe) => {
66440
66432
  if (!N.value) return;
66441
66433
  const { left: X, top: Ze, width: bt, height: vt } = hn(Fe);
66442
66434
  N.value.style.left = `${X}px`, N.value.style.top = `${Ze}px`, N.value.style.width = `${bt}px`, N.value.style.height = `${vt}px`;
@@ -66452,6 +66444,12 @@ function Iue() {
66452
66444
  X.id = `select_area_${g}`, X.style.position = "absolute", X.style.border = "1px solid #1677ff", X.style.backgroundColor = "rgba(22, 119, 255, 0.05)", X.style.pointerEvents = "none", X.style.display = "none", document.body.appendChild(X), N.value = X;
66453
66445
  };
66454
66446
  return ms(
66447
+ k,
66448
+ (Fe) => {
66449
+ ke(Fe), y.value && ce();
66450
+ },
66451
+ { deep: !0 }
66452
+ ), ms(
66455
66453
  () => c.value,
66456
66454
  (Fe) => {
66457
66455
  hn(Fe) && ft();
@@ -66465,7 +66463,16 @@ function Iue() {
66465
66463
  };
66466
66464
  }
66467
66465
  function Bue() {
66468
- const { selectedNodes: o, containerRef: a } = tm();
66466
+ const { selectedNodes: o, containerRef: a } = tm(), c = () => {
66467
+ var g;
66468
+ (g = hn(a)) == null || g.querySelectorAll(".node-selected").forEach((p) => {
66469
+ p.classList.remove("node-selected");
66470
+ });
66471
+ }, d = (g) => {
66472
+ g.forEach((p) => {
66473
+ p.classList.add("node-selected");
66474
+ });
66475
+ };
66469
66476
  ms(
66470
66477
  () => o,
66471
66478
  () => {
@@ -66482,16 +66489,6 @@ function Bue() {
66482
66489
  deep: !0
66483
66490
  }
66484
66491
  );
66485
- const c = () => {
66486
- var g;
66487
- (g = hn(a)) == null || g.querySelectorAll(".node-selected").forEach((p) => {
66488
- p.classList.remove("node-selected");
66489
- });
66490
- }, d = (g) => {
66491
- g.forEach((p) => {
66492
- p.classList.add("node-selected");
66493
- });
66494
- };
66495
66492
  }
66496
66493
  const Ad = [];
66497
66494
  for (let o = 0; o < 256; ++o)
@@ -66623,19 +66620,17 @@ function p5e() {
66623
66620
  P.disconnect(), p.removeEventListener("input", z), p.removeEventListener("paste", z), p.removeEventListener("drop", z), p.removeEventListener("blur", V), p.setAttribute("contenteditable", "false");
66624
66621
  };
66625
66622
  p.addEventListener("blur", V);
66623
+ }, d = () => {
66624
+ var g;
66625
+ (g = a.value) == null || g.addEventListener("dblclick", c);
66626
66626
  };
66627
- ms(
66627
+ return ms(
66628
66628
  a,
66629
66629
  (g) => {
66630
66630
  g && d();
66631
66631
  },
66632
66632
  { immediate: !0 }
66633
- );
66634
- const d = () => {
66635
- var g;
66636
- (g = a.value) == null || g.addEventListener("dblclick", c);
66637
- };
66638
- return nd(() => {
66633
+ ), nd(() => {
66639
66634
  var g;
66640
66635
  (g = a.value) == null || g.removeEventListener("dblclick", c);
66641
66636
  }), {
@@ -66683,19 +66678,17 @@ function b5e() {
66683
66678
  }, 300);
66684
66679
  };
66685
66680
  N.addEventListener("blur", z);
66681
+ }, E = () => {
66682
+ var k;
66683
+ (k = o.value) == null || k.addEventListener("focus", S, !0);
66686
66684
  };
66687
- ms(
66685
+ return ms(
66688
66686
  o,
66689
66687
  (k) => {
66690
66688
  k && E();
66691
66689
  },
66692
66690
  { immediate: !0 }
66693
- );
66694
- const E = () => {
66695
- var k;
66696
- (k = o.value) == null || k.addEventListener("focus", S, !0);
66697
- };
66698
- return nd(() => {
66691
+ ), nd(() => {
66699
66692
  var k;
66700
66693
  (k = o.value) == null || k.removeEventListener("focus", S, !0);
66701
66694
  }), {
@@ -67972,19 +67965,17 @@ const r$e = (o) => {
67972
67965
  }, 300);
67973
67966
  };
67974
67967
  E.addEventListener("blur", N);
67968
+ }, y = () => {
67969
+ var S;
67970
+ (S = a.value) == null || S.addEventListener("focus", p, !0);
67975
67971
  };
67976
- ms(
67972
+ return ms(
67977
67973
  a,
67978
67974
  (S) => {
67979
67975
  S && y();
67980
67976
  },
67981
67977
  { immediate: !0 }
67982
- );
67983
- const y = () => {
67984
- var S;
67985
- (S = a.value) == null || S.addEventListener("focus", p, !0);
67986
- };
67987
- return nd(() => {
67978
+ ), nd(() => {
67988
67979
  var S;
67989
67980
  (S = a.value) == null || S.removeEventListener("focus", p, !0);
67990
67981
  }), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",