@web-utils/component 3.8.3 → 4.0.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.
Files changed (67) hide show
  1. package/card/index.mjs +13 -13
  2. package/chat/index.mjs +2 -2
  3. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  4. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  5. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  6. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  7. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  8. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  9. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  10. package/dialog-form/index.mjs +6 -6
  11. package/flow/index.mjs +30 -32
  12. package/flow-designer/index.mjs +1 -1
  13. package/flow-node/index.mjs +1 -1
  14. package/form-holder/index.mjs +18 -36
  15. package/form-view/index.mjs +21 -23
  16. package/fy-array/index.mjs +2 -2
  17. package/fy-cascader/index.mjs +1 -1
  18. package/fy-checkbox/index.mjs +1 -1
  19. package/fy-code/index.mjs +1 -1
  20. package/fy-curd/index.mjs +141 -137
  21. package/fy-date/index.mjs +1 -1
  22. package/fy-draggable/index.mjs +27 -19
  23. package/fy-dynamic/index.mjs +64 -57
  24. package/fy-empty/index.mjs +1 -1
  25. package/fy-form/index.mjs +117 -136
  26. package/fy-form-design/index.mjs +15 -16
  27. package/fy-form-design/style.css +1 -1
  28. package/fy-input/index.mjs +2 -2
  29. package/fy-input-color/index.mjs +1 -1
  30. package/fy-input-icon/index.mjs +1 -1
  31. package/fy-input-map/index.mjs +56 -51
  32. package/fy-input-number/index.mjs +1 -1
  33. package/fy-input-table/index.mjs +46 -38
  34. package/fy-input-tree/index.mjs +1 -1
  35. package/fy-radio/index.mjs +1 -1
  36. package/fy-rate/index.mjs +1 -1
  37. package/fy-select/index.mjs +4 -4
  38. package/fy-slider/index.mjs +2 -2
  39. package/fy-switch/index.mjs +1 -1
  40. package/fy-tabs/index.mjs +0 -1
  41. package/fy-time/index.mjs +1 -1
  42. package/fy-title/index.mjs +1 -1
  43. package/fy-tree/index.mjs +1 -1
  44. package/fy-u-editor/index.mjs +1 -1
  45. package/fy-upload/index.mjs +3 -3
  46. package/highlight-j-s/index.mjs +1 -1
  47. package/image-cropper/index.mjs +1 -1
  48. package/image-preview/index.mjs +1 -1
  49. package/license/index.mjs +1 -1
  50. package/login/index.mjs +1 -1
  51. package/monaco-editor/index.mjs +10 -12
  52. package/package.json +17 -17
  53. package/pageable-table/index.mjs +33 -37
  54. package/pageable-view/index.mjs +53 -57
  55. package/record-video/index.mjs +1 -1
  56. package/search/index.mjs +2 -2
  57. package/search-popover/index.mjs +1 -1
  58. package/sign/index.mjs +1 -1
  59. package/split-pane/index.mjs +3 -3
  60. package/table-view/index.mjs +1 -3
  61. package/text-ellipsis/index.mjs +1 -1
  62. package/verify/index.mjs +1 -1
  63. package/vue-cron/index.mjs +1 -1
  64. package/vue-quill-editor/index.mjs +24 -13
  65. package/vue-tags-input/index.mjs +21 -10
  66. package/vue-video-player/index.mjs +10 -12
  67. package/web-types.json +2 -5
@@ -1,6 +1,17 @@
1
- import { w as a, s as l } from "../chunks/util.CoahLDYn.mjs";
2
- import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const v = {
1
+ var y = Object.defineProperty;
2
+ var b = Object.getOwnPropertySymbols;
3
+ var _ = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
4
+ var m = (t, e, s) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, p = (t, e) => {
5
+ for (var s in e || (e = {}))
6
+ _.call(e, s) && m(t, s, e[s]);
7
+ if (b)
8
+ for (var s of b(e))
9
+ w.call(e, s) && m(t, s, e[s]);
10
+ return t;
11
+ };
12
+ import { w as a, s as l } from "../chunks/util.DqFv_pWg.mjs";
13
+ import { n as x } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
14
+ const L = {
4
15
  name: "FyDraggable",
5
16
  props: {
6
17
  index: {
@@ -124,12 +135,9 @@ const v = {
124
135
  },
125
136
  styleName() {
126
137
  return Object.assign(
127
- this.active ? Object.assign(
128
- {
129
- zIndex: 9999
130
- },
131
- this.styleLineName
132
- ) : { zIndex: this.zIndex },
138
+ this.active ? p({
139
+ zIndex: 9999
140
+ }, this.styleLineName) : { zIndex: this.zIndex },
133
141
  {
134
142
  top: l(this.baseTop),
135
143
  left: l(this.baseLeft),
@@ -209,13 +217,13 @@ const v = {
209
217
  let c = t.clientX, f = t.clientY;
210
218
  document.onmousemove = (u) => {
211
219
  this.moveActive = !0, e === "right" ? (s = !0, i = !1) : e === "left" ? (s = !0, h = !0, o = !0, i = !1) : e === "top" ? (s = !1, i = !0, n = !0, d = !0) : e === "bottom" ? (s = !1, i = !0) : e === "bottom-right" ? (s = !0, i = !0) : e === "bottom-left" ? (s = !0, i = !0, h = !0, o = !0) : e === "top-right" ? (s = !0, i = !0, n = !0, d = !0) : e === "top-left" && (s = !0, i = !0, h = !0, o = !0, n = !0, d = !0);
212
- const b = u.clientX - c, m = u.clientY - f;
220
+ const v = u.clientX - c, g = u.clientY - f;
213
221
  if (c = u.clientX, f = u.clientY, s) {
214
- let r = b * this.step;
222
+ let r = v * this.step;
215
223
  o && (r = -r), h && (this.baseLeft = a(this.baseLeft - r)), this.baseWidth = a(this.baseWidth + r);
216
224
  }
217
225
  if (i) {
218
- let r = m * this.step;
226
+ let r = g * this.step;
219
227
  d && (r = -r), n && (this.baseTop = a(this.baseTop - r)), this.baseHeight = a(this.baseHeight + r);
220
228
  }
221
229
  }, this.handleClear();
@@ -287,7 +295,7 @@ const v = {
287
295
  }
288
296
  }
289
297
  };
290
- var g = function() {
298
+ var T = function() {
291
299
  var e = this, s = e._self._c;
292
300
  return s("div", { class: {
293
301
  "avue-draggable__active": (e.active || e.overActive) && !e.readonly,
@@ -306,15 +314,15 @@ var g = function() {
306
314
  return n.stopPropagation(), e.rangeMove(n, i.classname);
307
315
  } } }) : e._e()];
308
316
  })], s("div", { directives: [{ name: "show", rawName: "v-show", value: e.active || e.overActive, expression: "active || overActive" }], staticClass: "avue-draggable__menu", style: e.styleMenuName }, [e._t("menu", null, { zIndex: e.zIndex, index: e.index })], 2), s("div", { ref: "item", staticClass: "avue-draggable__item" }, [e._t("default")], 2), !e.disabled && e.mask ? s("div", { staticClass: "avue-draggable__mask" }) : e._e()], 2)], 1);
309
- }, y = [], _ = /* @__PURE__ */ p(
310
- v,
311
- g,
312
- y,
317
+ }, k = [], N = /* @__PURE__ */ x(
318
+ L,
319
+ T,
320
+ k,
313
321
  !1,
314
322
  null,
315
323
  null
316
324
  );
317
- const L = _.exports;
325
+ const H = N.exports;
318
326
  export {
319
- L as default
327
+ H as default
320
328
  };
@@ -1,9 +1,20 @@
1
- import { p as d, e as u } from "../chunks/event.BT1F_1vF.mjs";
2
- import { d as l, o } from "../chunks/util.CoahLDYn.mjs";
3
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const h = {
1
+ var h = Object.defineProperty;
2
+ var a = Object.getOwnPropertySymbols;
3
+ var f = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
+ var d = (t, e, n) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e) => {
5
+ for (var n in e || (e = {}))
6
+ f.call(e, n) && d(t, n, e[n]);
7
+ if (a)
8
+ for (var n of a(e))
9
+ m.call(e, n) && d(t, n, e[n]);
10
+ return t;
11
+ };
12
+ import { p, e as v } from "../chunks/event.9aDS6jcw.mjs";
13
+ import { d as o, o as u } from "../chunks/util.DqFv_pWg.mjs";
14
+ import { n as x } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
15
+ const y = {
5
16
  name: "FyDynamic",
6
- mixins: [d, u],
17
+ mixins: [p, v],
7
18
  props: {
8
19
  max: Number,
9
20
  columnSlot: {
@@ -29,7 +40,7 @@ const h = {
29
40
  return this.max ? this.text.length !== this.max : !0;
30
41
  },
31
42
  showIndex() {
32
- return o(this.children.index, !0);
43
+ return u(this.children.index, !0);
33
44
  },
34
45
  showType() {
35
46
  return this.children.type || "crud";
@@ -77,46 +88,42 @@ const h = {
77
88
  return this.children.column || [];
78
89
  },
79
90
  option() {
80
- return Object.assign(
81
- {
82
- border: !0,
83
- header: !1,
84
- menu: !1,
85
- size: this.size,
86
- disabled: this.disabled,
87
- readonly: this.readonly,
88
- emptyBtn: !1,
89
- submitBtn: !1
90
- },
91
- (() => {
92
- const t = l(this.children);
93
- return delete t.column, t;
94
- })(),
95
- (() => {
96
- const t = [
97
- {
98
- label: this.children.indexLabel || "#",
99
- prop: "_index",
100
- display: this.showIndex,
101
- hide: !this.showIndex,
102
- fixed: !0,
103
- align: "center",
104
- headerAlign: "center",
105
- span: 24,
106
- width: 50
107
- }
108
- ];
109
- return this.columnOption.forEach((e) => {
110
- t.push(
111
- Object.assign(e, {
112
- cell: o(e.cell, this.isCrud)
113
- })
114
- );
115
- }), {
116
- column: t
117
- };
118
- })()
119
- );
91
+ return l(l({
92
+ border: !0,
93
+ header: !1,
94
+ menu: !1,
95
+ size: this.size,
96
+ disabled: this.disabled,
97
+ readonly: this.readonly,
98
+ emptyBtn: !1,
99
+ submitBtn: !1
100
+ }, (() => {
101
+ const t = o(this.children);
102
+ return delete t.column, t;
103
+ })()), (() => {
104
+ const t = [
105
+ {
106
+ label: this.children.indexLabel || "#",
107
+ prop: "_index",
108
+ display: this.showIndex,
109
+ hide: !this.showIndex,
110
+ fixed: !0,
111
+ align: "center",
112
+ headerAlign: "center",
113
+ span: 24,
114
+ width: 50
115
+ }
116
+ ];
117
+ return this.columnOption.forEach((e) => {
118
+ t.push(
119
+ Object.assign(e, {
120
+ cell: u(e.cell, this.isCrud)
121
+ })
122
+ );
123
+ }), {
124
+ column: t
125
+ };
126
+ })());
120
127
  }
121
128
  },
122
129
  watch: {
@@ -128,7 +135,7 @@ const h = {
128
135
  this.initData();
129
136
  },
130
137
  methods: {
131
- deepClone: l,
138
+ deepClone: o,
132
139
  handleSelectionChange(t) {
133
140
  var e;
134
141
  (e = this.selectionChange) == null || e.call(this, t);
@@ -166,7 +173,7 @@ const h = {
166
173
  },
167
174
  delRow(t) {
168
175
  const e = () => {
169
- const n = l(this.text);
176
+ const n = o(this.text);
170
177
  n.splice(t, 1), this.text = n, this.reload = Math.random();
171
178
  };
172
179
  typeof this.rowDel == "function" ? this.rowDel(this.text[t], e) : e();
@@ -181,7 +188,7 @@ const h = {
181
188
  }
182
189
  }
183
190
  };
184
- var f = function() {
191
+ var _ = function() {
185
192
  var e = this, n = e._self._c;
186
193
  return n("div", { key: e.reload, staticClass: "avue-dynamic" }, [e.isForm ? [n("div", { staticClass: "avue-dynamic__header" }, [!e.readonly && !e.disabled && !e.addBtn ? n("ElButton", { attrs: { size: "mini", circle: "", disabled: e.disabled, type: "primary", icon: "el-icon-plus" }, on: { click: e.addRow } }) : e._e()], 1), n("div", e._l(e.text, function(r, i) {
187
194
  return n("div", { key: i, staticClass: "avue-dynamic__row", on: { mouseenter: function(s) {
@@ -193,8 +200,8 @@ var f = function() {
193
200
  } } }) : e._e(), n("FyForm", { key: i, ref: "main", refInFor: !0, attrs: { option: e.deepClone(e.option) }, scopedSlots: e._u([{ key: "_index", fn: function({}) {
194
201
  return [n("div", [n("span", [e._v(e._s(r.$index + 1))])])];
195
202
  } }, e._l(e.columnSlot, function(s) {
196
- return { key: s, fn: function(a) {
197
- return [e._t(s, null, null, Object.assign(a, { row: e.text[i] }))];
203
+ return { key: s, fn: function(c) {
204
+ return [e._t(s, null, null, Object.assign(c, { row: e.text[i] }))];
198
205
  } };
199
206
  })], null, !0), model: { value: e.text[i], callback: function(s) {
200
207
  e.$set(e.text, i, s);
@@ -212,15 +219,15 @@ var f = function() {
212
219
  return [e._t(r, null, null, i)];
213
220
  } };
214
221
  })], null, !0) }) : e._e()], 2);
215
- }, m = [], p = /* @__PURE__ */ c(
216
- h,
217
- f,
218
- m,
222
+ }, w = [], b = /* @__PURE__ */ x(
223
+ y,
224
+ _,
225
+ w,
219
226
  !1,
220
227
  null,
221
228
  null
222
229
  );
223
- const _ = p.exports;
230
+ const L = b.exports;
224
231
  export {
225
- _ as default
232
+ L as default
226
233
  };
@@ -1,4 +1,4 @@
1
- import { s as g } from "../chunks/util.CoahLDYn.mjs";
1
+ import { s as g } from "../chunks/util.DqFv_pWg.mjs";
2
2
  import { n as A } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
3
  const N = {
4
4
  name: "FyEmpty",