@web-utils/component 2.8.0 → 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 (95) 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/json-beautifier.21cfffea.mjs +126 -0
  10. package/chunks/util.505913d9.mjs +266 -0
  11. package/column/index.mjs +2 -2
  12. package/column-default/index.mjs +1 -1
  13. package/column-dynamic/index.mjs +1 -1
  14. package/column-menu/index.mjs +81 -79
  15. package/column-slot/index.mjs +8 -7
  16. package/comment/index.mjs +6 -10
  17. package/data-pay/index.mjs +16 -13
  18. package/data-table-picker/index.mjs +22 -22
  19. package/dialog-excel/index.mjs +8 -8
  20. package/dialog-filter/index.mjs +4 -2
  21. package/dialog-form/index.mjs +6 -6
  22. package/dynamic-table/index.mjs +8 -8
  23. package/editable-tree/index.mjs +5 -5
  24. package/flow/index.mjs +11 -11
  25. package/flow/style.css +1 -1
  26. package/flow-node/index.mjs +2 -2
  27. package/form-block/index.mjs +156 -0
  28. package/form-block/style.css +1 -0
  29. package/form-button/index.mjs +16 -38
  30. package/form-group/index.mjs +28 -33
  31. package/form-input-tag/index.mjs +99 -0
  32. package/form-temp/index.mjs +15 -27
  33. package/fy-array/index.mjs +44 -42
  34. package/fy-cascader/index.mjs +1 -1
  35. package/fy-checkbox/index.mjs +2 -1
  36. package/fy-code/index.mjs +1 -1
  37. package/fy-curd/index.mjs +29 -31
  38. package/fy-date/index.mjs +1 -1
  39. package/fy-dialog-form/index.mjs +5 -11
  40. package/fy-draggable/index.mjs +3 -3
  41. package/fy-dynamic/index.mjs +3 -3
  42. package/fy-empty/index.mjs +1 -1
  43. package/fy-form/index.mjs +133 -122
  44. package/fy-form-design/index.mjs +2596 -2893
  45. package/fy-form-design/style.css +1 -1
  46. package/fy-input/index.mjs +10 -15
  47. package/fy-input-color/index.mjs +1 -1
  48. package/fy-input-icon/index.mjs +21 -16
  49. package/fy-input-map/index.mjs +22 -19
  50. package/fy-input-number/index.mjs +1 -1
  51. package/fy-input-table/index.mjs +1 -1
  52. package/fy-input-tree/index.mjs +5 -6
  53. package/fy-radio/index.mjs +3 -1
  54. package/fy-rate/index.mjs +2 -1
  55. package/fy-select/index.mjs +29 -28
  56. package/fy-slider/index.mjs +2 -2
  57. package/fy-switch/index.mjs +2 -1
  58. package/fy-tabs/index.mjs +19 -17
  59. package/fy-time/index.mjs +1 -1
  60. package/fy-title/index.mjs +1 -1
  61. package/fy-tree/index.mjs +8 -6
  62. package/fy-u-editor/index.mjs +10 -14
  63. package/fy-upload/index.mjs +85 -84
  64. package/header-menu/index.mjs +1 -1
  65. package/header-search/index.mjs +7 -5
  66. package/image-cropper/index.mjs +1 -1
  67. package/image-preview/index.mjs +1 -1
  68. package/index.cjs +62 -38
  69. package/index.css +1 -1
  70. package/index.mjs +17121 -16215
  71. package/license/index.mjs +1 -1
  72. package/login/index.mjs +1 -1
  73. package/monaco-editor/index.mjs +196 -0
  74. package/package.json +3 -2
  75. package/present-view/index.mjs +360 -0
  76. package/present-view/style.css +1 -0
  77. package/process-designer/index.mjs +10 -2
  78. package/queue/index.mjs +3 -8
  79. package/queue/style.css +1 -0
  80. package/record-video/index.mjs +1 -1
  81. package/search/index.mjs +2 -2
  82. package/search-popover/index.mjs +25 -24
  83. package/sign/index.mjs +17 -18
  84. package/sign/style.css +1 -1
  85. package/swiper/index.mjs +1 -1
  86. package/table-page/index.mjs +21 -23
  87. package/text-ellipsis/index.mjs +1 -1
  88. package/tinymce-editor/style.css +1 -1
  89. package/tinymce-wrapper/index.mjs +290 -97
  90. package/verify/index.mjs +1 -1
  91. package/web-types.json +829 -320
  92. package/x-input-tag/index.mjs +182 -0
  93. package/x-input-tag/style.css +1 -0
  94. package/chunks/dic.e8280157.mjs +0 -130
  95. package/chunks/util.17330567.mjs +0 -266
@@ -1,28 +1,6 @@
1
- import { c as r } from "../chunks/confirmable-mixin.2bfe1ab9.mjs";
1
+ import { Confirmable as n } from "@web-utils/component";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- const i = {
4
- name: "Confirmable",
5
- mixins: [r]
6
- };
7
- let s, _;
8
- const t = {};
9
- var a = /* @__PURE__ */ o(
10
- i,
11
- s,
12
- _,
13
- !1,
14
- u,
15
- null,
16
- null,
17
- null
18
- );
19
- function u(l) {
20
- for (let n in t)
21
- this[n] = t[n];
22
- }
23
- const c = /* @__PURE__ */ function() {
24
- return a.exports;
25
- }(), p = {
3
+ const l = {
26
4
  props: {
27
5
  type: {
28
6
  type: String,
@@ -52,29 +30,29 @@ const c = /* @__PURE__ */ function() {
52
30
  default: "AwesomeButton"
53
31
  }
54
32
  }
55
- }, f = {
33
+ }, r = {
56
34
  name: "FormButton",
57
- mixins: [c, p]
35
+ mixins: [n, l]
58
36
  };
59
- let m, d;
37
+ let a, i;
60
38
  const e = {};
61
- var v = /* @__PURE__ */ o(
62
- f,
63
- m,
64
- d,
39
+ var u = /* @__PURE__ */ o(
40
+ r,
41
+ a,
42
+ i,
65
43
  !1,
66
- g,
44
+ s,
67
45
  null,
68
46
  null,
69
47
  null
70
48
  );
71
- function g(l) {
72
- for (let n in e)
73
- this[n] = e[n];
49
+ function s(p) {
50
+ for (let t in e)
51
+ this[t] = e[t];
74
52
  }
75
- const B = /* @__PURE__ */ function() {
76
- return v.exports;
53
+ const f = /* @__PURE__ */ function() {
54
+ return u.exports;
77
55
  }();
78
56
  export {
79
- B as default
57
+ f as default
80
58
  };
@@ -1,5 +1,5 @@
1
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
- var s = function() {
1
+ import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ var l = function() {
3
3
  var e = this, a = e.$createElement, t = e._self._c || a;
4
4
  return e.display ? t("div", {
5
5
  class: ["avue-group", {
@@ -15,8 +15,8 @@ var s = function() {
15
15
  },
16
16
  model: {
17
17
  value: e.activeName,
18
- callback: function(l) {
19
- e.activeName = l;
18
+ callback: function(o) {
19
+ e.activeName = o;
20
20
  },
21
21
  expression: "activeName"
22
22
  }
@@ -24,26 +24,25 @@ var s = function() {
24
24
  attrs: {
25
25
  name: 1,
26
26
  disabled: !e.arrow
27
- }
28
- }, [e.$slots.header && e.header ? t("div", {
29
- staticClass: "avue-group__header",
30
- attrs: {
31
- slot: "title"
32
- },
33
- slot: "title"
34
- }, [e._t("header")], 2) : (e.label || e.icon) && e.header ? t("div", {
35
- staticClass: "avue-group__header",
36
- attrs: {
37
- slot: "title"
38
27
  },
39
- slot: "title"
40
- }, [e.icon ? t("i", {
41
- class: [e.icon, "avue-group__icon"]
42
- }) : e._e(), e.label ? t("h1", {
43
- staticClass: "avue-group__title"
44
- }, [e._v(" " + e._s(e.label) + " ")]) : e._e()]) : e._e(), e._t("default")], 2)], 1)], 2) : e._e();
45
- }, n = [];
46
- const i = {
28
+ scopedSlots: e._u([{
29
+ key: "title",
30
+ fn: function() {
31
+ return [t("div", {
32
+ staticClass: "avue-group__header"
33
+ }, [e._t("header", function() {
34
+ return [e.icon ? t("i", {
35
+ class: [e.icon, "avue-group__icon"]
36
+ }) : e._e(), e.label ? t("h1", {
37
+ staticClass: "avue-group__title"
38
+ }, [e._v(" " + e._s(e.label) + " ")]) : e._e()];
39
+ })], 2)];
40
+ },
41
+ proxy: !0
42
+ }], null, !0)
43
+ }, [e._t("default")], 2)], 1)], 2) : e._e();
44
+ }, s = [];
45
+ const u = {
47
46
  name: "FormGroup",
48
47
  props: {
49
48
  arrow: {
@@ -65,10 +64,6 @@ const i = {
65
64
  type: Boolean,
66
65
  default: !0
67
66
  },
68
- card: {
69
- type: Boolean,
70
- default: !1
71
- },
72
67
  label: {
73
68
  type: String
74
69
  }
@@ -100,10 +95,10 @@ const i = {
100
95
  }
101
96
  }
102
97
  }, r = {};
103
- var u = /* @__PURE__ */ o(
104
- i,
98
+ var i = /* @__PURE__ */ n(
99
+ u,
100
+ l,
105
101
  s,
106
- n,
107
102
  !1,
108
103
  c,
109
104
  null,
@@ -114,9 +109,9 @@ function c(e) {
114
109
  for (let a in r)
115
110
  this[a] = r[a];
116
111
  }
117
- const d = /* @__PURE__ */ function() {
118
- return u.exports;
112
+ const p = /* @__PURE__ */ function() {
113
+ return i.exports;
119
114
  }();
120
115
  export {
121
- d as default
116
+ p as default
122
117
  };
@@ -0,0 +1,99 @@
1
+ var i = Object.defineProperty;
2
+ var a = Object.getOwnPropertySymbols;
3
+ var p = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
+ var l = (r, e, t) => e in r ? i(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, n = (r, e) => {
5
+ for (var t in e || (e = {}))
6
+ p.call(e, t) && l(r, t, e[t]);
7
+ if (a)
8
+ for (var t of a(e))
9
+ c.call(e, t) && l(r, t, e[t]);
10
+ return r;
11
+ };
12
+ import { f as m } from "../chunks/form-input-mixin.124653d9.mjs";
13
+ import { d, n as f } from "../chunks/index.57f871af.mjs";
14
+ import { XInputTag as _ } from "@web-utils/component";
15
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
+ var v = function() {
17
+ var r = this, e = r.$createElement, t = r._self._c || e;
18
+ return t("FormItem", r._b({
19
+ attrs: {
20
+ block: r.block,
21
+ rules: r.computeRules,
22
+ disabled: r.inputDisabled
23
+ },
24
+ scopedSlots: r._u([{
25
+ key: "default",
26
+ fn: function() {
27
+ return [t("XInputTag", r._g(r._b({
28
+ attrs: {
29
+ value: r.value,
30
+ readonly: r.readonly,
31
+ disabled: r.inputDisabled,
32
+ placeholder: r.computePlaceholder,
33
+ "array-mode": r.arrayMode
34
+ },
35
+ on: {
36
+ input: function(o) {
37
+ return r.$emit("input", o);
38
+ }
39
+ }
40
+ }, "XInputTag", r.inputProps, !1), r.listeners))];
41
+ },
42
+ proxy: !0
43
+ }, {
44
+ key: "error",
45
+ fn: function(o) {
46
+ var s = o.error;
47
+ return [r._t("error", null, {
48
+ error: s
49
+ })];
50
+ }
51
+ }, {
52
+ key: "label",
53
+ fn: function() {
54
+ return [r._t("label")];
55
+ },
56
+ proxy: !0
57
+ }], null, !0)
58
+ }, "FormItem", r.formItemProps, !1));
59
+ }, b = [];
60
+ const I = Object.keys(_.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), h = {
61
+ name: "FormInputTag",
62
+ mixins: [m],
63
+ props: {
64
+ value: [Array, String],
65
+ block: {
66
+ type: Boolean,
67
+ default: !0
68
+ },
69
+ arrayMode: {
70
+ type: Boolean,
71
+ default: !0
72
+ }
73
+ },
74
+ computed: {
75
+ inputProps() {
76
+ return d(n(n({}, f(this.$attrs)), this.$props), I);
77
+ }
78
+ }
79
+ }, u = {};
80
+ var g = /* @__PURE__ */ y(
81
+ h,
82
+ v,
83
+ b,
84
+ !1,
85
+ k,
86
+ null,
87
+ null,
88
+ null
89
+ );
90
+ function k(r) {
91
+ for (let e in u)
92
+ this[e] = u[e];
93
+ }
94
+ const $ = /* @__PURE__ */ function() {
95
+ return g.exports;
96
+ }();
97
+ export {
98
+ $ as default
99
+ };
@@ -1,8 +1,8 @@
1
- import { g as a, a as u } from "../chunks/dataformat.25e22176.mjs";
2
- import { s as p } from "../chunks/slot.4b391395.mjs";
3
- import { u as s } from "../chunks/util.17330567.mjs";
4
- import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var i = function() {
1
+ import { g as a, a as u } from "../chunks/dataformat.ab62230f.mjs";
2
+ import { s } from "../chunks/slot.4b391395.mjs";
3
+ import { u as p } from "../chunks/util.505913d9.mjs";
4
+ import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ var c = function() {
6
6
  var e = this, n = e.$createElement, o = e._self._c || n;
7
7
  return o(e.getComponent(e.column.type, e.column.component), e._g(e._b({
8
8
  ref: "temp",
@@ -28,8 +28,8 @@ var i = function() {
28
28
  scopedSlots: e._u([e._l(e.columnSlot, function(t) {
29
29
  return {
30
30
  key: t,
31
- fn: function(r) {
32
- return [e._t(t, null, null, r)];
31
+ fn: function(l) {
32
+ return [e._t(t, null, null, l)];
33
33
  }
34
34
  };
35
35
  })], null, !0),
@@ -45,18 +45,12 @@ var i = function() {
45
45
  innerHTML: e._s(e.params.html)
46
46
  }
47
47
  }) : e._e()]);
48
- }, m = [];
48
+ }, i = [];
49
49
  const d = {
50
50
  name: "FormTemp",
51
- mixins: [p],
51
+ mixins: [s],
52
52
  props: {
53
53
  value: [String, Object, Number, Boolean, Array],
54
- uploadBefore: Function,
55
- uploadDelete: Function,
56
- uploadAfter: Function,
57
- uploadPreview: Function,
58
- uploadError: Function,
59
- uploadExceed: Function,
60
54
  columnSlot: {
61
55
  type: Array,
62
56
  default: () => []
@@ -65,9 +59,6 @@ const d = {
65
59
  type: Object,
66
60
  default: () => ({})
67
61
  },
68
- clearable: {
69
- type: Boolean
70
- },
71
62
  enter: {
72
63
  type: Boolean,
73
64
  default: !1
@@ -85,9 +76,6 @@ const d = {
85
76
  dic: {
86
77
  type: Array
87
78
  },
88
- placeholder: {
89
- type: String
90
- },
91
79
  size: {
92
80
  type: String
93
81
  },
@@ -119,18 +107,18 @@ const d = {
119
107
  }
120
108
  },
121
109
  methods: {
122
- uploadFun: s,
110
+ uploadFun: p,
123
111
  getComponent: a,
124
112
  getPlaceholder: u,
125
113
  enterChange() {
126
114
  typeof this.column.enter == "function" ? this.column.enter({ value: this.text, column: this.column }) : this.enter && this.$emit("enter");
127
115
  }
128
116
  }
129
- }, l = {};
130
- var y = /* @__PURE__ */ c(
117
+ }, r = {};
118
+ var y = /* @__PURE__ */ m(
131
119
  d,
120
+ c,
132
121
  i,
133
- m,
134
122
  !1,
135
123
  f,
136
124
  null,
@@ -138,8 +126,8 @@ var y = /* @__PURE__ */ c(
138
126
  null
139
127
  );
140
128
  function f(e) {
141
- for (let n in l)
142
- this[n] = l[n];
129
+ for (let n in r)
130
+ this[n] = r[n];
143
131
  }
144
132
  const v = /* @__PURE__ */ function() {
145
133
  return y.exports;
@@ -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
  };