@web-utils/component 2.8.1 → 2.8.2

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 (83) hide show
  1. package/base.css +1 -1
  2. package/card/index.mjs +33 -37
  3. package/chat/index.mjs +132 -123
  4. package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
  5. package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
  6. package/chunks/dic.7f13b573.mjs +130 -0
  7. package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
  8. package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
  9. package/chunks/util.505913d9.mjs +266 -0
  10. package/column/index.mjs +2 -2
  11. package/column-default/index.mjs +1 -1
  12. package/column-dynamic/index.mjs +1 -1
  13. package/column-menu/index.mjs +81 -79
  14. package/column-slot/index.mjs +8 -7
  15. package/comment/index.mjs +6 -10
  16. package/data-pay/index.mjs +16 -13
  17. package/data-table-picker/index.mjs +22 -22
  18. package/dialog-excel/index.mjs +8 -8
  19. package/dialog-filter/index.mjs +4 -2
  20. package/dialog-form/index.mjs +6 -6
  21. package/editable-tree/index.mjs +5 -5
  22. package/flow/index.mjs +11 -11
  23. package/flow/style.css +1 -1
  24. package/flow-node/index.mjs +2 -2
  25. package/form-button/index.mjs +16 -38
  26. package/form-group/index.mjs +28 -33
  27. package/form-temp/index.mjs +15 -27
  28. package/fy-array/index.mjs +44 -42
  29. package/fy-cascader/index.mjs +1 -1
  30. package/fy-checkbox/index.mjs +2 -1
  31. package/fy-code/index.mjs +1 -1
  32. package/fy-curd/index.mjs +29 -31
  33. package/fy-date/index.mjs +1 -1
  34. package/fy-dialog-form/index.mjs +5 -11
  35. package/fy-draggable/index.mjs +3 -3
  36. package/fy-dynamic/index.mjs +3 -3
  37. package/fy-empty/index.mjs +1 -1
  38. package/fy-form/index.mjs +133 -122
  39. package/fy-form-design/index.mjs +2595 -2610
  40. package/fy-form-design/style.css +1 -1
  41. package/fy-input/index.mjs +10 -15
  42. package/fy-input-color/index.mjs +1 -1
  43. package/fy-input-icon/index.mjs +21 -16
  44. package/fy-input-map/index.mjs +22 -19
  45. package/fy-input-number/index.mjs +1 -1
  46. package/fy-input-table/index.mjs +1 -1
  47. package/fy-input-tree/index.mjs +5 -6
  48. package/fy-radio/index.mjs +3 -1
  49. package/fy-rate/index.mjs +2 -1
  50. package/fy-select/index.mjs +29 -28
  51. package/fy-slider/index.mjs +2 -2
  52. package/fy-switch/index.mjs +2 -1
  53. package/fy-tabs/index.mjs +19 -17
  54. package/fy-time/index.mjs +1 -1
  55. package/fy-title/index.mjs +1 -1
  56. package/fy-tree/index.mjs +8 -6
  57. package/fy-u-editor/index.mjs +10 -14
  58. package/fy-upload/index.mjs +85 -84
  59. package/header-menu/index.mjs +1 -1
  60. package/header-search/index.mjs +7 -5
  61. package/image-cropper/index.mjs +1 -1
  62. package/image-preview/index.mjs +1 -1
  63. package/index.cjs +39 -39
  64. package/index.css +1 -1
  65. package/index.mjs +16577 -16591
  66. package/license/index.mjs +1 -1
  67. package/login/index.mjs +1 -1
  68. package/monaco-editor/index.mjs +3 -3
  69. package/package.json +1 -1
  70. package/process-designer/index.mjs +10 -2
  71. package/queue/index.mjs +3 -8
  72. package/queue/style.css +1 -0
  73. package/record-video/index.mjs +1 -1
  74. package/search/index.mjs +2 -2
  75. package/search-popover/index.mjs +25 -24
  76. package/sign/index.mjs +17 -18
  77. package/sign/style.css +1 -1
  78. package/table-page/index.mjs +21 -23
  79. package/text-ellipsis/index.mjs +1 -1
  80. package/verify/index.mjs +1 -1
  81. package/web-types.json +52 -166
  82. package/chunks/dic.e8280157.mjs +0 -130
  83. package/chunks/util.17330567.mjs +0 -266
@@ -1,8 +1,8 @@
1
- import { p as a, e as o } from "../chunks/event.a018cb06.mjs";
2
- import { i as c } from "../chunks/util.17330567.mjs";
3
- import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var u = function() {
5
- var t = this, s = t.$createElement, e = t._self._c || s;
1
+ import { p as a, e as o } from "../chunks/event.1ac32f1d.mjs";
2
+ import { i as c } from "../chunks/util.505913d9.mjs";
3
+ import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var p = function() {
5
+ var t = this, n = t.$createElement, e = t._self._c || n;
6
6
  return e("div", {
7
7
  staticClass: "avue-array"
8
8
  }, [t.text ? e("ElButton", {
@@ -28,33 +28,35 @@ var u = function() {
28
28
  attrs: {
29
29
  placement: "bottom",
30
30
  disabled: !t.isImg && !t.isUrl || !!i
31
- }
32
- }, [e("div", {
33
- attrs: {
34
- slot: "content"
35
- },
36
- slot: "content"
37
- }, [t.isImg ? e(t.isMediaType(i), {
38
- tag: "Component",
39
- staticStyle: {
40
- width: "200px"
41
31
  },
42
- attrs: {
43
- src: i,
44
- controls: "controls"
45
- },
46
- on: {
47
- click: function(n) {
48
- return t.openImg(r);
49
- }
50
- }
51
- }) : t.isUrl ? e("ElLink", {
52
- attrs: {
53
- type: "primary",
54
- href: i,
55
- target: t.target
56
- }
57
- }, [t._v(" " + t._s(i) + " ")]) : t._e()], 1), e("ElInput", {
32
+ scopedSlots: t._u([{
33
+ key: "content",
34
+ fn: function() {
35
+ return [e("div", [t.isImg ? e(t.isMediaType(i), {
36
+ tag: "Component",
37
+ staticStyle: {
38
+ width: "200px"
39
+ },
40
+ attrs: {
41
+ src: i,
42
+ controls: "controls"
43
+ },
44
+ on: {
45
+ click: function(s) {
46
+ return t.openImg(r);
47
+ }
48
+ }
49
+ }) : t.isUrl ? e("ElLink", {
50
+ attrs: {
51
+ type: "primary",
52
+ href: i,
53
+ target: t.target
54
+ }
55
+ }, [t._v(" " + t._s(i) + " ")]) : t._e()], 1)];
56
+ },
57
+ proxy: !0
58
+ }], null, !0)
59
+ }, [e("ElInput", {
58
60
  attrs: {
59
61
  size: t.size,
60
62
  placeholder: t.placeholder,
@@ -62,8 +64,8 @@ var u = function() {
62
64
  },
63
65
  model: {
64
66
  value: t.text[r],
65
- callback: function(n) {
66
- t.$set(t.text, r, n);
67
+ callback: function(s) {
68
+ t.$set(t.text, r, s);
67
69
  },
68
70
  expression: "text[index]"
69
71
  }
@@ -76,7 +78,7 @@ var u = function() {
76
78
  disabled: t.disabled
77
79
  },
78
80
  on: {
79
- click: function(n) {
81
+ click: function(s) {
80
82
  return t.add(r);
81
83
  }
82
84
  }
@@ -89,14 +91,14 @@ var u = function() {
89
91
  disabled: t.disabled
90
92
  },
91
93
  on: {
92
- click: function(n) {
94
+ click: function(s) {
93
95
  return t.remove(r);
94
96
  }
95
97
  }
96
98
  })]], 2)]);
97
99
  })], 2);
98
100
  }, d = [];
99
- const m = {
101
+ const _ = {
100
102
  name: "FyArray",
101
103
  mixins: [a, o],
102
104
  props: {
@@ -134,9 +136,9 @@ const m = {
134
136
  }
135
137
  }
136
138
  }, l = {};
137
- var _ = /* @__PURE__ */ p(
138
- m,
139
- u,
139
+ var m = /* @__PURE__ */ u(
140
+ _,
141
+ p,
140
142
  d,
141
143
  !1,
142
144
  y,
@@ -145,11 +147,11 @@ var _ = /* @__PURE__ */ p(
145
147
  null
146
148
  );
147
149
  function y(t) {
148
- for (let s in l)
149
- this[s] = l[s];
150
+ for (let n in l)
151
+ this[n] = l[n];
150
152
  }
151
153
  const b = /* @__PURE__ */ function() {
152
- return _.exports;
154
+ return m.exports;
153
155
  }();
154
156
  export {
155
157
  b as default
@@ -1,4 +1,4 @@
1
- import { p as d, e as u } from "../chunks/event.a018cb06.mjs";
1
+ import { p as d, e as u } from "../chunks/event.1ac32f1d.mjs";
2
2
  import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var h = function() {
4
4
  var e = this, l = e.$createElement, s = e._self._c || l;
@@ -1,4 +1,4 @@
1
- import { p as c, e as i } from "../chunks/event.a018cb06.mjs";
1
+ import { p as c, e as i } from "../chunks/event.1ac32f1d.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var r = function() {
4
4
  var e = this, t = e.$createElement, l = e._self._c || t;
@@ -68,6 +68,7 @@ const d = {
68
68
  return {
69
69
  checkAll: !1,
70
70
  isIndeterminate: !1,
71
+ // eslint-disable-next-line vue/no-unused-properties
71
72
  name: "checkbox"
72
73
  };
73
74
  },
package/fy-code/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import s from "element-ui/lib/scrollbar";
2
- import { s as o } from "../chunks/util.17330567.mjs";
2
+ import { s as o } from "../chunks/util.505913d9.mjs";
3
3
  import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  var i = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
package/fy-curd/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { p as F } from "../chunks/packages.1fc9ccba.mjs";
2
- import { p as S } from "../chunks/permission.ce5d2121.mjs";
3
- import { i as _ } from "../chunks/init.f04c7036.mjs";
1
+ import { p as C } from "../chunks/packages.1fc9ccba.mjs";
2
+ import { p as $ } from "../chunks/permission.ce5d2121.mjs";
3
+ import { i as F } from "../chunks/init.47ce5ed9.mjs";
4
4
  import { c as d } from "../chunks/config.46422d7f.mjs";
5
- import { c as O, t as v, f as L } from "../chunks/dataformat.25e22176.mjs";
6
- import { D as f, s as E, o as y, d as n } from "../chunks/util.17330567.mjs";
5
+ import { c as S, t as _, f as O } from "../chunks/dataformat.ab62230f.mjs";
6
+ import { D as f, s as v, o as y, d as n } from "../chunks/util.505913d9.mjs";
7
7
  import { isBlank as b } from "@web-utils/core";
8
- import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
9
- var x = function() {
8
+ import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
9
+ var E = function() {
10
10
  var e = this, t = e.$createElement, l = e._self._c || t;
11
11
  return l("div", {
12
12
  staticClass: "avue-crud avue-crud--card"
@@ -218,13 +218,13 @@ var x = function() {
218
218
  }), l("DialogFilter", {
219
219
  ref: "dialogFilter"
220
220
  })], 2);
221
- }, D = [];
222
- const P = {
221
+ }, k = [];
222
+ const x = {
223
223
  name: "FyCurd",
224
224
  directives: {
225
- permission: S
225
+ permission: $
226
226
  },
227
- mixins: [_],
227
+ mixins: [F],
228
228
  provide() {
229
229
  return {
230
230
  crud: this
@@ -352,7 +352,7 @@ const P = {
352
352
  Array.isArray(i.children) ? t(i.children) : e.push(i);
353
353
  });
354
354
  }
355
- return t(this.columnOption), e = O(e), e;
355
+ return t(this.columnOption), e = S(e), e;
356
356
  },
357
357
  isShowSummary() {
358
358
  return this.option.showSummary;
@@ -416,7 +416,7 @@ const P = {
416
416
  this.dataInit(), this.getTableHeight(), this.refreshTable();
417
417
  },
418
418
  methods: {
419
- setPx: E,
419
+ setPx: v,
420
420
  optVal: y,
421
421
  handleValidate(e, t, l) {
422
422
  this.listError[e] || this.$set(this.listError, e, { valid: !1, msg: "" }), this.listError[e].valid = !t, this.listError[e].msg = l;
@@ -448,7 +448,7 @@ const P = {
448
448
  });
449
449
  },
450
450
  menuIcon(e) {
451
- return y(this.tableOption[`${e}Text`], v(`crud.${e}`));
451
+ return y(this.tableOption[`${e}Text`], _(`crud.${e}`));
452
452
  },
453
453
  getBtnIcon(e) {
454
454
  const t = `${e}Icon`;
@@ -549,7 +549,7 @@ const P = {
549
549
  cellClick(e, t, l, i) {
550
550
  this.$emit("cell-click", e, t, l, i);
551
551
  },
552
- // 当某一列的表头被点击时会触发该事件
552
+ // 当某一列的表头被点击时会触发该事件
553
553
  headerClick(e, t) {
554
554
  this.$emit("header-click", e, t);
555
555
  },
@@ -567,7 +567,7 @@ const P = {
567
567
  },
568
568
  // 单元格新增
569
569
  rowCellAdd(e = {}) {
570
- const t = this.list.length, l = L(this.propOption).tableForm;
570
+ const t = this.list.length, l = O(this.propOption).tableForm;
571
571
  e = n(
572
572
  Object.assign(
573
573
  {
@@ -611,7 +611,7 @@ const P = {
611
611
  validateCellField(e) {
612
612
  let t = !0;
613
613
  for (const l of this.$refs.cellForm.fields)
614
- if (l.prop.split(".")[1] == e && this.$refs.cellForm.validateField(l.prop, (i) => {
614
+ if (l.prop.split(".")[1] === `${e}` && this.$refs.cellForm.validateField(l.prop, (i) => {
615
615
  i && (t = !1);
616
616
  }), !t)
617
617
  break;
@@ -669,21 +669,19 @@ const P = {
669
669
  const h = this.sumColumnList.find((u) => u.name === r.property);
670
670
  if (h) {
671
671
  const u = h.decimals || 2, m = h.label || "";
672
+ let g = 1;
672
673
  switch (h.type) {
673
674
  case "count":
674
675
  s[a] = m + i.length;
675
676
  break;
676
677
  case "avg":
677
- const C = i.map((o) => Number(o[r.property]));
678
- let g = 1;
679
- s[a] = C.reduce((o, c) => {
678
+ s[a] = i.map((o) => Number(o[r.property])).reduce((o, c) => {
680
679
  const p = Number(c);
681
680
  return isNaN(p) ? o : (o * (g - 1) + c) / g++;
682
681
  }, 0), s[a] = m + s[a].toFixed(u);
683
682
  break;
684
683
  case "sum":
685
- const $ = i.map((o) => Number(o[r.property]));
686
- s[a] = $.reduce((o, c) => {
684
+ s[a] = i.map((o) => Number(o[r.property])).reduce((o, c) => {
687
685
  const p = Number(c);
688
686
  return isNaN(p) ? o : o + c;
689
687
  }, 0), s[a] = m + s[a].toFixed(u);
@@ -702,7 +700,7 @@ const P = {
702
700
  return;
703
701
  }
704
702
  if (!window.Sortable) {
705
- F.logs("Sortable");
703
+ C.logs("Sortable");
706
704
  return;
707
705
  }
708
706
  window.Sortable.create(t, {
@@ -729,23 +727,23 @@ const P = {
729
727
  }
730
728
  }
731
729
  }, w = {};
732
- var H = /* @__PURE__ */ k(
733
- P,
730
+ var D = /* @__PURE__ */ L(
734
731
  x,
735
- D,
732
+ E,
733
+ k,
736
734
  !1,
737
- M,
735
+ P,
738
736
  null,
739
737
  null,
740
738
  null
741
739
  );
742
- function M(e) {
740
+ function P(e) {
743
741
  for (let t in w)
744
742
  this[t] = w[t];
745
743
  }
746
- const j = /* @__PURE__ */ function() {
747
- return H.exports;
744
+ const K = /* @__PURE__ */ function() {
745
+ return D.exports;
748
746
  }();
749
747
  export {
750
- j as default
748
+ K as default
751
749
  };
package/fy-date/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n, e as o } from "../chunks/event.a018cb06.mjs";
1
+ import { p as n, e as o } from "../chunks/event.1ac32f1d.mjs";
2
2
  import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var s = function() {
4
4
  var e = this, a = e.$createElement, t = e._self._c || a;
@@ -1,5 +1,5 @@
1
1
  import { c as d } from "../chunks/config.46422d7f.mjs";
2
- import { d as l, o as a, u, v as n } from "../chunks/util.17330567.mjs";
2
+ import { d as l, o as n, u, v as a } from "../chunks/util.505913d9.mjs";
3
3
  import { isBlank as r } from "@web-utils/core";
4
4
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
5
  var p = function() {
@@ -96,12 +96,6 @@ var p = function() {
96
96
  const m = {
97
97
  name: "FyDialogForm",
98
98
  inject: ["crud"],
99
- props: {
100
- value: {
101
- type: Object,
102
- default: () => ({})
103
- }
104
- },
105
99
  data() {
106
100
  return {
107
101
  disabled: !1,
@@ -131,7 +125,7 @@ const m = {
131
125
  return this.crud.tableOption.dialogDirection;
132
126
  },
133
127
  width() {
134
- return a(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
128
+ return n(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
135
129
  },
136
130
  dialogType() {
137
131
  return this.isDrawer ? "ElDrawer" : "ElementDialog";
@@ -173,7 +167,7 @@ const m = {
173
167
  }
174
168
  },
175
169
  methods: {
176
- optVal: a,
170
+ optVal: n,
177
171
  uploadFun: u,
178
172
  submit() {
179
173
  this.$refs.tableForm.submit();
@@ -208,7 +202,7 @@ const m = {
208
202
  rowSave(t) {
209
203
  this.crud.$emit(
210
204
  "row-save",
211
- n(this.crud.tableForm, ["$"]),
205
+ a(this.crud.tableForm, ["$"]),
212
206
  this.closeDialog,
213
207
  t
214
208
  );
@@ -217,7 +211,7 @@ const m = {
217
211
  rowUpdate(t) {
218
212
  this.crud.$emit(
219
213
  "row-update",
220
- n(this.crud.tableForm, ["$"]),
214
+ a(this.crud.tableForm, ["$"]),
221
215
  this.crud.tableIndex,
222
216
  this.closeDialog,
223
217
  t
@@ -1,4 +1,4 @@
1
- import { s as l, w as a } from "../chunks/util.17330567.mjs";
1
+ import { s as l, w as a } from "../chunks/util.505913d9.mjs";
2
2
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var g = function() {
4
4
  var e = this, t = e.$createElement, s = e._self._c || t;
@@ -330,8 +330,8 @@ const _ = {
330
330
  },
331
331
  handleKeydown() {
332
332
  document.onkeydown = (e) => {
333
- const t = e || window.event || arguments.callee.caller.arguments[0], s = 1 * this.step;
334
- this.$refs.input.focused && (t && t.keyCode == 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode == 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode == 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode == 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
333
+ const t = e || window.event, s = this.step;
334
+ this.$refs.input.focused && (t && t.keyCode === 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode === 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode === 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode === 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
335
335
  index: this.index,
336
336
  width: this.baseWidth,
337
337
  height: this.baseHeight,
@@ -1,5 +1,5 @@
1
- import { p as u, e as c } from "../chunks/event.a018cb06.mjs";
2
- import { o as l, d as o } from "../chunks/util.17330567.mjs";
1
+ import { p as u, e as c } from "../chunks/event.1ac32f1d.mjs";
2
+ import { o as l, d as o } from "../chunks/util.505913d9.mjs";
3
3
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  function f(e) {
5
5
  if (e == null)
@@ -63,7 +63,7 @@ var m = function() {
63
63
  scopedSlots: e._u([{
64
64
  key: "_index",
65
65
  fn: function(s) {
66
- return f(s), n("div", {}, [n("span", [e._v(e._s(i.$index + 1))])]);
66
+ return f(s), [n("div", [n("span", [e._v(e._s(i.$index + 1))])])];
67
67
  }
68
68
  }, e._l(e.columnSlot, function(s) {
69
69
  return {
@@ -1,4 +1,4 @@
1
- import { s as N } from "../chunks/util.17330567.mjs";
1
+ import { s as N } from "../chunks/util.505913d9.mjs";
2
2
  import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var i = function() {
4
4
  var M = this, I = M.$createElement, g = M._self._c || I;