zhytech-ui 1.0.20 → 1.0.21

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,7 +1,7 @@
1
1
  var On = Object.defineProperty;
2
2
  var Pn = (t, o, e) => o in t ? On(t, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[o] = e;
3
3
  var Ie = (t, o, e) => (Pn(t, typeof o != "symbol" ? o + "" : o, e), e);
4
- import { defineComponent as Z, resolveComponent as V, openBlock as f, createBlock as z, withCtx as _, createElementBlock as E, createCommentVNode as L, createElementVNode as S, useCssVars as zo, unref as i, toRefs as Se, watch as K, computed as je, Fragment as Q, createVNode as p, renderList as ge, ref as B, onMounted as an, TransitionGroup as Fn, h as No, nextTick as tt, inject as te, withModifiers as Gt, normalizeClass as we, normalizeStyle as rt, resolveDynamicComponent as It, toDisplayString as ee, isRef as fe, createTextVNode as G, getCurrentInstance as Un, renderSlot as Lt, provide as ft, mergeModels as Bo, useModel as Nn, reactive as Bn, withKeys as Rn } from "vue";
4
+ import { defineComponent as Z, resolveComponent as V, openBlock as f, createBlock as z, withCtx as _, createElementBlock as E, createCommentVNode as L, createElementVNode as S, useCssVars as zo, unref as i, toRefs as Se, watch as K, computed as je, Fragment as Q, createVNode as p, renderList as ge, ref as B, onMounted as an, TransitionGroup as Fn, h as No, nextTick as ot, inject as te, withModifiers as Gt, normalizeClass as we, normalizeStyle as rt, resolveDynamicComponent as It, toDisplayString as ee, isRef as fe, createTextVNode as G, getCurrentInstance as Un, renderSlot as Lt, provide as ft, mergeModels as Bo, useModel as Nn, reactive as Bn, withKeys as Rn } from "vue";
5
5
  import { ElMessage as Hn } from "element-plus";
6
6
  const ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7
7
  __proto__: null,
@@ -1803,13 +1803,13 @@ function re(t, o, e, n, l) {
1803
1803
  }
1804
1804
  }
1805
1805
  function jo(t, o, e) {
1806
- for (var n = et(t, !0), l = re(t)[o]; n; ) {
1806
+ for (var n = tt(t, !0), l = re(t)[o]; n; ) {
1807
1807
  var a = re(n)[e], s = void 0;
1808
1808
  if (e === "top" || e === "left" ? s = l >= a : s = l <= a, !s)
1809
1809
  return n;
1810
1810
  if (n === qe())
1811
1811
  break;
1812
- n = et(n, !1);
1812
+ n = tt(n, !1);
1813
1813
  }
1814
1814
  return !1;
1815
1815
  }
@@ -1855,7 +1855,7 @@ function qi(t, o) {
1855
1855
  }
1856
1856
  return -1;
1857
1857
  }
1858
- function et(t, o) {
1858
+ function tt(t, o) {
1859
1859
  if (!t || !t.getBoundingClientRect)
1860
1860
  return qe();
1861
1861
  var e = t, n = !1;
@@ -2060,7 +2060,7 @@ var Ki = ["evt"], Le = function(o, e) {
2060
2060
  nextEl: at,
2061
2061
  lastDownEl: Xt,
2062
2062
  cloneEl: pe,
2063
- cloneHidden: Qe,
2063
+ cloneHidden: et,
2064
2064
  dragStarted: Ct,
2065
2065
  putSortable: De,
2066
2066
  activeSortable: N.active,
@@ -2068,14 +2068,14 @@ var Ki = ["evt"], Le = function(o, e) {
2068
2068
  oldIndex: ht,
2069
2069
  oldDraggableIndex: Mt,
2070
2070
  newIndex: Oe,
2071
- newDraggableIndex: Ze,
2071
+ newDraggableIndex: Qe,
2072
2072
  hideGhostForTarget: gn,
2073
2073
  unhideGhostForTarget: _n,
2074
2074
  cloneNowHidden: function() {
2075
- Qe = !0;
2075
+ et = !0;
2076
2076
  },
2077
2077
  cloneNowShown: function() {
2078
- Qe = !1;
2078
+ et = !1;
2079
2079
  },
2080
2080
  dispatchSortableEvent: function(r) {
2081
2081
  Me({
@@ -2095,10 +2095,10 @@ function Me(t) {
2095
2095
  oldIndex: ht,
2096
2096
  oldDraggableIndex: Mt,
2097
2097
  newIndex: Oe,
2098
- newDraggableIndex: Ze
2098
+ newDraggableIndex: Qe
2099
2099
  }, t));
2100
2100
  }
2101
- var I, he, j, ue, at, Xt, pe, Qe, ht, Oe, Mt, Ze, Ut, De, mt = !1, to = !1, oo = [], nt, Re, ho, vo, Xo, Yo, Ct, ct, zt, $t = !1, Nt = !1, Yt, Ve, go = [], Do = !1, no = [], uo = typeof document < "u", Bt = sn, Ko = At || Ke ? "cssFloat" : "float", Ji = uo && !rn && !sn && "draggable" in document.createElement("div"), fn = function() {
2101
+ var I, he, j, ue, at, Xt, pe, et, ht, Oe, Mt, Qe, Ut, De, mt = !1, to = !1, oo = [], nt, Re, ho, vo, Xo, Yo, Ct, ct, zt, $t = !1, Nt = !1, Yt, Ve, go = [], Do = !1, no = [], uo = typeof document < "u", Bt = sn, Ko = At || Ke ? "cssFloat" : "float", Ji = uo && !rn && !sn && "draggable" in document.createElement("div"), fn = function() {
2102
2102
  if (uo) {
2103
2103
  if (Ke)
2104
2104
  return !1;
@@ -2449,12 +2449,12 @@ N.prototype = /** @lends Sortable.prototype */
2449
2449
  }), b !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (n === I && !I.animated || n === e && !n.animated) && (ct = null), !r.dragoverBubble && !o.rootEl && n !== document && (I.parentNode[Ee]._isOutsideThisEl(o.target), !$e && lt(o)), !r.dragoverBubble && o.stopPropagation && o.stopPropagation(), g = !0;
2450
2450
  }
2451
2451
  function x() {
2452
- Oe = ve(I), Ze = ve(I, r.draggable), Me({
2452
+ Oe = ve(I), Qe = ve(I, r.draggable), Me({
2453
2453
  sortable: b,
2454
2454
  name: "change",
2455
2455
  toEl: e,
2456
2456
  newIndex: Oe,
2457
- newDraggableIndex: Ze,
2457
+ newDraggableIndex: Qe,
2458
2458
  originalEvent: o
2459
2459
  });
2460
2460
  }
@@ -2514,9 +2514,9 @@ N.prototype = /** @lends Sortable.prototype */
2514
2514
  },
2515
2515
  _onDrop: function(o) {
2516
2516
  var e = this.el, n = this.options;
2517
- if (Oe = ve(I), Ze = ve(I, n.draggable), Le("drop", this, {
2517
+ if (Oe = ve(I), Qe = ve(I, n.draggable), Le("drop", this, {
2518
2518
  evt: o
2519
- }), he = I && I.parentNode, Oe = ve(I), Ze = ve(I, n.draggable), N.eventCanceled) {
2519
+ }), he = I && I.parentNode, Oe = ve(I), Qe = ve(I, n.draggable), N.eventCanceled) {
2520
2520
  this._nulling();
2521
2521
  return;
2522
2522
  }
@@ -2559,7 +2559,7 @@ N.prototype = /** @lends Sortable.prototype */
2559
2559
  name: "sort",
2560
2560
  toEl: he,
2561
2561
  originalEvent: o
2562
- })), N.active && ((Oe == null || Oe === -1) && (Oe = ht, Ze = Mt), Me({
2562
+ })), N.active && ((Oe == null || Oe === -1) && (Oe = ht, Qe = Mt), Me({
2563
2563
  sortable: this,
2564
2564
  name: "end",
2565
2565
  toEl: he,
@@ -2567,7 +2567,7 @@ N.prototype = /** @lends Sortable.prototype */
2567
2567
  }), this.save()))), this._nulling();
2568
2568
  },
2569
2569
  _nulling: function() {
2570
- Le("nulling", this), ue = I = he = j = at = pe = Xt = Qe = nt = Re = Ct = Oe = Ze = ht = Mt = ct = zt = De = Ut = N.dragged = N.ghost = N.clone = N.active = null, no.forEach(function(o) {
2570
+ Le("nulling", this), ue = I = he = j = at = pe = Xt = et = nt = Re = Ct = Oe = Qe = ht = Mt = ct = zt = De = Ut = N.dragged = N.ghost = N.clone = N.active = null, no.forEach(function(o) {
2571
2571
  o.checked = !0;
2572
2572
  }), no.length = ho = vo = 0;
2573
2573
  },
@@ -2648,10 +2648,10 @@ N.prototype = /** @lends Sortable.prototype */
2648
2648
  }), this._onDrop(), this._disableDelayedDragEvents(), oo.splice(oo.indexOf(this.el), 1), this.el = o = null;
2649
2649
  },
2650
2650
  _hideClone: function() {
2651
- if (!Qe) {
2651
+ if (!et) {
2652
2652
  if (Le("hideClone", this), N.eventCanceled)
2653
2653
  return;
2654
- O(pe, "display", "none"), this.options.removeCloneOnHide && pe.parentNode && pe.parentNode.removeChild(pe), Qe = !0;
2654
+ O(pe, "display", "none"), this.options.removeCloneOnHide && pe.parentNode && pe.parentNode.removeChild(pe), et = !0;
2655
2655
  }
2656
2656
  },
2657
2657
  _showClone: function(o) {
@@ -2659,10 +2659,10 @@ N.prototype = /** @lends Sortable.prototype */
2659
2659
  this._hideClone();
2660
2660
  return;
2661
2661
  }
2662
- if (Qe) {
2662
+ if (et) {
2663
2663
  if (Le("showClone", this), N.eventCanceled)
2664
2664
  return;
2665
- I.parentNode == ue && !this.options.group.revertClone ? ue.insertBefore(pe, I) : at ? ue.insertBefore(pe, at) : ue.appendChild(pe), this.options.group.revertClone && this.animate(I, pe), O(pe, "display", ""), Qe = !1;
2665
+ I.parentNode == ue && !this.options.group.revertClone ? ue.insertBefore(pe, I) : at ? ue.insertBefore(pe, at) : ue.appendChild(pe), this.options.group.revertClone && this.animate(I, pe), O(pe, "display", ""), et = !1;
2666
2666
  }
2667
2667
  }
2668
2668
  };
@@ -2797,17 +2797,17 @@ function d2() {
2797
2797
  var l = this, a = (e.touches ? e.touches[0] : e).clientX, s = (e.touches ? e.touches[0] : e).clientY, r = document.elementFromPoint(a, s);
2798
2798
  if (lo = e, n || this.options.forceAutoScrollFallback || At || Ke || St) {
2799
2799
  wo(e, this.options, r, n);
2800
- var u = et(r, !0);
2800
+ var u = tt(r, !0);
2801
2801
  So && (!Vt || a !== bo || s !== yo) && (Vt && Jo(), Vt = setInterval(function() {
2802
- var d = et(document.elementFromPoint(a, s), !0);
2802
+ var d = tt(document.elementFromPoint(a, s), !0);
2803
2803
  d !== u && (u = d, Jt()), wo(e, l.options, d, n);
2804
2804
  }, 10), bo = a, yo = s);
2805
2805
  } else {
2806
- if (!this.options.bubbleScroll || et(r, !0) === qe()) {
2806
+ if (!this.options.bubbleScroll || tt(r, !0) === qe()) {
2807
2807
  Jt();
2808
2808
  return;
2809
2809
  }
2810
- wo(e, this.options, et(r, !1), !1);
2810
+ wo(e, this.options, tt(r, !1), !1);
2811
2811
  }
2812
2812
  }
2813
2813
  }, Ne(t, {
@@ -2826,7 +2826,7 @@ function Jo() {
2826
2826
  var wo = cn(function(t, o, e, n) {
2827
2827
  if (o.scroll) {
2828
2828
  var l = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, s = o.scrollSensitivity, r = o.scrollSpeed, u = qe(), d = !1, m;
2829
- Eo !== e && (Eo = e, Jt(), Dt = o.scroll, m = o.scrollFn, Dt === !0 && (Dt = et(e, !0)));
2829
+ Eo !== e && (Eo = e, Jt(), Dt = o.scroll, m = o.scrollFn, Dt === !0 && (Dt = tt(e, !0)));
2830
2830
  var h = 0, v = Dt;
2831
2831
  do {
2832
2832
  var c = v, b = re(c), g = b.top, y = b.bottom, C = b.left, M = b.right, x = b.width, D = b.height, w = void 0, $ = void 0, P = c.scrollWidth, F = c.scrollHeight, A = O(c), X = c.scrollLeft, W = c.scrollTop;
@@ -2842,7 +2842,7 @@ var wo = cn(function(t, o, e, n) {
2842
2842
  }).bind({
2843
2843
  layer: h
2844
2844
  }), 24))), h++;
2845
- } while (o.bubbleScroll && v !== u && (v = et(v, !1)));
2845
+ } while (o.bubbleScroll && v !== u && (v = tt(v, !1)));
2846
2846
  So = d;
2847
2847
  }
2848
2848
  }, 30), bn = function(o) {
@@ -3495,7 +3495,7 @@ function $2({ $slots: t, tag: o, realList: e, getKey: n, itemDataSet: l }) {
3495
3495
  return new S2({ nodes: a, root: s, realList: e });
3496
3496
  }
3497
3497
  function En(t, o) {
3498
- tt(() => this.$emit(t.toLowerCase(), o));
3498
+ ot(() => this.$emit(t.toLowerCase(), o));
3499
3499
  }
3500
3500
  function Sn(t) {
3501
3501
  return (o, e) => {
@@ -3629,7 +3629,7 @@ const A2 = {
3629
3629
  return t.__draggable_component__;
3630
3630
  },
3631
3631
  emitChanges(t) {
3632
- tt(() => this.$emit("change", t));
3632
+ ot(() => this.$emit("change", t));
3633
3633
  },
3634
3634
  alterList(t) {
3635
3635
  if (this.list) {
@@ -3718,7 +3718,7 @@ const A2 = {
3718
3718
  newIndex: t.oldIndex,
3719
3719
  swap: !0
3720
3720
  };
3721
- tt(() => {
3721
+ ot(() => {
3722
3722
  const r = s.to.__draggable_component__;
3723
3723
  r.onDragStart(s), r.onDragAdd(s);
3724
3724
  });
@@ -4013,7 +4013,7 @@ const F2 = ["onClick"], U2 = {
4013
4013
  const m = (g) => {
4014
4014
  g.added ? h(g.added.element) : g.moved && h(g.moved.element);
4015
4015
  }, h = (g) => {
4016
- s.selectComponent = void 0, tt(() => s.selectComponent = g);
4016
+ s.selectComponent = void 0, ot(() => s.selectComponent = g);
4017
4017
  }, v = (g) => {
4018
4018
  const y = c(g);
4019
4019
  u.value.push(y), h(y);
@@ -4740,7 +4740,7 @@ function ca(t, o, e, n = {}) {
4740
4740
  return K(
4741
4741
  () => t[o],
4742
4742
  ($) => {
4743
- w || (w = !0, D.value = y($), tt(() => w = !1));
4743
+ w || (w = !0, D.value = y($), ot(() => w = !1));
4744
4744
  }
4745
4745
  ), K(
4746
4746
  D,
@@ -5053,7 +5053,7 @@ const va = { class: "employee-component" }, ga = {
5053
5053
  K(
5054
5054
  a,
5055
5055
  (m) => {
5056
- u.value = !1, tt(() => {
5056
+ u.value = !1, ot(() => {
5057
5057
  a.value.defaultValue = void 0, e.isDesigner && (s.value = a.value.defaultValue), u.value = !0;
5058
5058
  }), r("update:componentProps", m);
5059
5059
  },
@@ -5797,7 +5797,7 @@ const $a = { component: za, renderer: Sa, propEditor: wa }, Ia = /* @__PURE__ */
5797
5797
  K(
5798
5798
  a,
5799
5799
  (m) => {
5800
- u.value = !1, tt(() => {
5800
+ u.value = !1, ot(() => {
5801
5801
  a.value.defaultValue = void 0, e.isDesigner && (s.value = a.value.defaultValue), u.value = !0;
5802
5802
  }), r("update:componentProps", m);
5803
5803
  },
@@ -8426,7 +8426,7 @@ const $s = /* @__PURE__ */ Z({
8426
8426
  };
8427
8427
  }
8428
8428
  });
8429
- const js = { class: "form-designer" }, Gs = { class: "left-wrap" }, Ws = ["onClick"], Xs = { class: "component-name" }, Ys = {
8429
+ const js = { class: "form-designer" }, Gs = { class: "left-wrap" }, Ws = ["onClick", "title"], Xs = { class: "component-name" }, Ys = {
8430
8430
  key: 2,
8431
8431
  class: "no-component-tip"
8432
8432
  }, Ks = {
@@ -8638,7 +8638,7 @@ const js = { class: "form-designer" }, Gs = { class: "left-wrap" }, Ws = ["onCli
8638
8638
  const H = X(T);
8639
8639
  r.value.components.push(H);
8640
8640
  const U = k.types.findIndex((oe) => T != null && T.id.includes("temp") ? oe.type === T.type : (oe == null ? void 0 : oe.id) === T.id);
8641
- U !== -1 && W(U, k), h.selectComponent = void 0, tt(() => h.selectComponent = H);
8641
+ U !== -1 && W(U, k), h.selectComponent = void 0, ot(() => h.selectComponent = H);
8642
8642
  }, X = (T) => {
8643
8643
  var U, oe;
8644
8644
  let k = n(T);
@@ -8747,21 +8747,22 @@ const js = { class: "form-designer" }, Gs = { class: "left-wrap" }, Ws = ["onCli
8747
8747
  "item-key": "type",
8748
8748
  tag: "div",
8749
8749
  class: "component-list",
8750
- clone: (ot) => X(ot),
8750
+ clone: (Ze) => X(Ze),
8751
8751
  sort: !1,
8752
- onRemove: (ot) => W(ot.oldIndex, le),
8752
+ onRemove: (Ze) => W(Ze.oldIndex, le),
8753
8753
  group: { name: "component", pull: "clone", put: !1 }
8754
8754
  }, {
8755
- item: _(({ element: ot }) => [
8755
+ item: _(({ element: Ze }) => [
8756
8756
  S("div", {
8757
8757
  class: "component-item",
8758
- onClick: (n6) => A(ot, le)
8758
+ onClick: (n6) => A(Ze, le),
8759
+ title: Ze.name
8759
8760
  }, [
8760
8761
  p(H, {
8761
- name: ot.type,
8762
+ name: Ze.type,
8762
8763
  color: "#fc8720"
8763
8764
  }, null, 8, ["name"]),
8764
- S("span", Xs, ee(ot.name), 1)
8765
+ S("span", Xs, ee(Ze.name), 1)
8765
8766
  ], 8, Ws)
8766
8767
  ]),
8767
8768
  _: 2