@web-utils/component 3.0.3 → 3.0.5

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 (109) hide show
  1. package/address-input/index.mjs +22 -24
  2. package/awesome-button/index.mjs +29 -30
  3. package/card/index.mjs +40 -42
  4. package/carousel/index.mjs +25 -27
  5. package/chat/index.mjs +57 -67
  6. package/chunks/FormTemp.7f91629d.mjs +165 -0
  7. package/chunks/confirmable-mixin.817b542f.mjs +116 -0
  8. package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
  9. package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
  10. package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
  11. package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
  12. package/color-picker/index.mjs +128 -0
  13. package/confirm-button/index.mjs +1 -1
  14. package/confirmable/index.mjs +1 -1
  15. package/data-box/index.mjs +32 -34
  16. package/data-card/index.mjs +33 -35
  17. package/data-cardtext/index.mjs +27 -29
  18. package/data-display/index.mjs +33 -35
  19. package/data-icons/index.mjs +28 -30
  20. package/data-imgtext/index.mjs +27 -30
  21. package/data-operatext/index.mjs +39 -41
  22. package/data-panel/index.mjs +36 -38
  23. package/data-pay/index.mjs +20 -23
  24. package/data-price/index.mjs +32 -34
  25. package/data-progress/index.mjs +27 -30
  26. package/data-rotate/index.mjs +17 -19
  27. package/data-table-picker/index.mjs +22 -23
  28. package/data-tabs/index.mjs +31 -33
  29. package/dialog-form/index.mjs +31 -39
  30. package/dynamic-table/index.mjs +36 -40
  31. package/editable-progress/index.mjs +14 -16
  32. package/editable-tree/index.mjs +139 -143
  33. package/egd-collapse-item/index.mjs +2 -1
  34. package/element-dialog/index.mjs +24 -25
  35. package/flow-designer/index.mjs +1095 -1111
  36. package/form-block/index.mjs +22 -24
  37. package/form-cascader/index.mjs +20 -20
  38. package/form-checkbox-group/index.mjs +24 -25
  39. package/form-date-picker/index.mjs +18 -19
  40. package/form-holder/index.mjs +14 -15
  41. package/form-input/index.mjs +23 -23
  42. package/form-input-email/index.mjs +17 -17
  43. package/form-input-id-card/index.mjs +24 -24
  44. package/form-input-number/index.mjs +1 -1
  45. package/form-input-phone-number/index.mjs +26 -26
  46. package/form-input-tag/index.mjs +1 -1
  47. package/form-input-time/index.mjs +17 -17
  48. package/form-item/index.mjs +54 -56
  49. package/form-item-group/index.mjs +31 -33
  50. package/form-radio-group/index.mjs +51 -52
  51. package/form-select/index.mjs +31 -32
  52. package/form-switch/index.mjs +22 -22
  53. package/form-textarea/index.mjs +20 -20
  54. package/fy-array/index.mjs +61 -65
  55. package/fy-cascader/index.mjs +19 -20
  56. package/fy-checkbox/index.mjs +32 -37
  57. package/fy-code/index.mjs +13 -10
  58. package/fy-curd/index.mjs +638 -663
  59. package/fy-date/index.mjs +20 -21
  60. package/fy-draggable/index.mjs +19 -20
  61. package/fy-dynamic/index.mjs +26 -27
  62. package/fy-form/index.mjs +111 -122
  63. package/fy-form-design/index.mjs +1238 -1270
  64. package/fy-input/index.mjs +15 -17
  65. package/fy-input-color/index.mjs +25 -27
  66. package/fy-input-icon/index.mjs +20 -21
  67. package/fy-input-map/index.mjs +22 -24
  68. package/fy-input-number/index.mjs +22 -23
  69. package/fy-input-table/index.mjs +15 -17
  70. package/fy-input-tree/index.mjs +28 -32
  71. package/fy-progress/index.mjs +23 -24
  72. package/fy-radio/index.mjs +18 -23
  73. package/fy-rate/index.mjs +12 -13
  74. package/fy-select/index.mjs +40 -44
  75. package/fy-slider/index.mjs +17 -18
  76. package/fy-switch/index.mjs +20 -21
  77. package/fy-tabs/index.mjs +19 -21
  78. package/fy-time/index.mjs +14 -20
  79. package/fy-title/index.mjs +1 -1
  80. package/fy-tree/index.mjs +17 -21
  81. package/fy-upload/index.mjs +74 -76
  82. package/guide-steps/index.mjs +22 -24
  83. package/image-cropper/index.mjs +50 -51
  84. package/image-preview/index.mjs +24 -26
  85. package/index.mjs +480 -477
  86. package/input-number/index.mjs +13 -14
  87. package/input-number-range/index.mjs +23 -24
  88. package/login/index.mjs +35 -40
  89. package/nav-bar/index.mjs +13 -14
  90. package/notice/index.mjs +18 -19
  91. package/package.json +3 -3
  92. package/page-index/index.mjs +33 -34
  93. package/page-index-top/index.mjs +22 -24
  94. package/pageable-table/index.mjs +92 -96
  95. package/pageable-view/index.mjs +33 -34
  96. package/search/index.mjs +21 -23
  97. package/static-pageable-table/index.mjs +18 -20
  98. package/swiper/index.mjs +22 -23
  99. package/table-view/index.mjs +49 -53
  100. package/tag-render/index.mjs +19 -21
  101. package/text-ellipsis/index.mjs +11 -12
  102. package/tinymce-editor/index.mjs +50 -51
  103. package/toolbar-button/index.mjs +18 -19
  104. package/vue-cron/index.mjs +104 -112
  105. package/web-types.json +85 -1
  106. package/x-input-tag/index.mjs +47 -50
  107. package/chunks/FormTemp.d079292b.mjs +0 -139
  108. package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
  109. package/chunks/detail.d6f8e347.mjs +0 -29
@@ -1,22 +1,21 @@
1
- var l = Object.defineProperty;
2
- var a = Object.getOwnPropertySymbols;
3
- var u = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
- var s = (e, t, o) => t in e ? l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, p = (e, t) => {
5
- for (var o in t || (t = {}))
6
- u.call(t, o) && s(e, o, t[o]);
7
- if (a)
8
- for (var o of a(t))
9
- f.call(t, o) && s(e, o, t[o]);
1
+ var c = Object.defineProperty;
2
+ var r = Object.getOwnPropertySymbols;
3
+ var l = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
4
+ var a = (e, o, t) => o in e ? c(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, s = (e, o) => {
5
+ for (var t in o || (o = {}))
6
+ l.call(o, t) && a(e, t, o[t]);
7
+ if (r)
8
+ for (var t of r(o))
9
+ u.call(o, t) && a(e, t, o[t]);
10
10
  return e;
11
11
  };
12
- import { B as m } from "../chunks/util.ae730cde.mjs";
13
- import { VueCropper as d } from "vue-cropper";
14
- import h from "vue";
15
- import n from "element-ui/lib/button";
16
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var g = function() {
18
- var e = this, t = e.$createElement, o = e._self._c || t;
19
- return o("ElementDialog", {
12
+ import { B as f } from "../chunks/util.ae730cde.mjs";
13
+ import { VueCropper as m } from "vue-cropper";
14
+ import d from "vue";
15
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
+ var v = function() {
17
+ var e = this, o = e.$createElement, t = e._self._c || o;
18
+ return t("ElementDialog", {
20
19
  staticClass: "avue-cropper",
21
20
  attrs: {
22
21
  visible: e.visible,
@@ -36,7 +35,7 @@ var g = function() {
36
35
  scopedSlots: e._u([{
37
36
  key: "footer",
38
37
  fn: function() {
39
- return [o(n, {
38
+ return [t("ElButton", {
40
39
  attrs: {
41
40
  size: "small",
42
41
  type: "primary"
@@ -44,7 +43,7 @@ var g = function() {
44
43
  on: {
45
44
  click: e.submit
46
45
  }
47
- }, [e._v(" 确 定 ")]), o(n, {
46
+ }, [e._v(" 确 定 ")]), t("ElButton", {
48
47
  attrs: {
49
48
  size: "small"
50
49
  },
@@ -57,13 +56,13 @@ var g = function() {
57
56
  },
58
57
  proxy: !0
59
58
  }])
60
- }, [o("div", {
59
+ }, [t("div", {
61
60
  staticClass: "cropper-content"
62
- }, [o("div", {
61
+ }, [t("div", {
63
62
  staticClass: "cropper-box"
64
- }, [o("div", {
63
+ }, [t("div", {
65
64
  staticClass: "cropper"
66
- }, [o("VueCropper", {
65
+ }, [t("VueCropper", {
67
66
  ref: "cropper",
68
67
  attrs: {
69
68
  img: e.option.img,
@@ -91,9 +90,9 @@ var g = function() {
91
90
  on: {
92
91
  realTime: e.realTime
93
92
  }
94
- })], 1), o("div", {
93
+ })], 1), t("div", {
95
94
  staticClass: "footer-btn"
96
- }, [o(n, {
95
+ }, [t("ElButton", {
97
96
  attrs: {
98
97
  size: "mini",
99
98
  type: "danger",
@@ -104,7 +103,7 @@ var g = function() {
104
103
  return e.changeScale(1);
105
104
  }
106
105
  }
107
- }), o(n, {
106
+ }), t("ElButton", {
108
107
  attrs: {
109
108
  size: "mini",
110
109
  type: "danger",
@@ -115,7 +114,7 @@ var g = function() {
115
114
  return e.changeScale(-1);
116
115
  }
117
116
  }
118
- }), o(n, {
117
+ }), t("ElButton", {
119
118
  attrs: {
120
119
  size: "mini",
121
120
  icon: "el-icon-back",
@@ -124,7 +123,7 @@ var g = function() {
124
123
  on: {
125
124
  click: e.rotateLeft
126
125
  }
127
- }), o(n, {
126
+ }), t("ElButton", {
128
127
  attrs: {
129
128
  size: "mini",
130
129
  type: "danger",
@@ -133,23 +132,23 @@ var g = function() {
133
132
  on: {
134
133
  click: e.rotateRight
135
134
  }
136
- })], 1)]), o("div", {
135
+ })], 1)]), t("div", {
137
136
  staticClass: "show-preview"
138
- }, [o("div", {
137
+ }, [t("div", {
139
138
  staticClass: "preview",
140
139
  style: e.previews.div
141
- }, [o("img", {
140
+ }, [t("img", {
142
141
  style: e.previews.img,
143
142
  attrs: {
144
143
  src: e.previews.url,
145
144
  alt: ""
146
145
  }
147
146
  })])])])]);
148
- }, _ = [];
149
- const r = {
147
+ }, g = [];
148
+ const n = {
150
149
  name: "ImageCropper",
151
150
  components: {
152
- VueCropper: d
151
+ VueCropper: m
153
152
  },
154
153
  data() {
155
154
  return {
@@ -180,8 +179,8 @@ const r = {
180
179
  },
181
180
  submit() {
182
181
  this.visible = !1, this.$refs.cropper.getCropData((e) => {
183
- let t = e;
184
- this.option.type === "file" && (t = m(e, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), this.option.callback && this.option.callback(t);
182
+ let o = e;
183
+ this.option.type === "file" && (o = f(e, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), this.option.callback && this.option.callback(o);
185
184
  });
186
185
  },
187
186
  cancel(e) {
@@ -189,7 +188,7 @@ const r = {
189
188
  }
190
189
  }
191
190
  }, x = (e = {}) => {
192
- const t = h.extend(r), o = p({
191
+ const o = d.extend(n), t = s({
193
192
  outputSize: 1,
194
193
  // 裁剪生成图片的质量(可选0.1 - 1)
195
194
  outputType: "jpeg",
@@ -219,32 +218,32 @@ const r = {
219
218
  infoTrue: !1,
220
219
  // true为展示真实输出图片宽高,false展示看到的截图框宽高
221
220
  enlarge: 1
222
- }, e), i = new t({
221
+ }, e), i = new o({
223
222
  data: {
224
- option: o
223
+ option: t
225
224
  }
226
225
  }).$mount();
227
226
  return document.body.appendChild(i.$el), i.show(), i;
228
227
  };
229
- r.imageCropper = x;
230
- const b = r, c = {};
231
- var C = /* @__PURE__ */ v(
232
- b,
233
- g,
228
+ n.imageCropper = x;
229
+ const _ = n, p = {};
230
+ var b = /* @__PURE__ */ h(
234
231
  _,
232
+ v,
233
+ g,
235
234
  !1,
236
- y,
235
+ C,
237
236
  null,
238
237
  null,
239
238
  null
240
239
  );
241
- function y(e) {
242
- for (let t in c)
243
- this[t] = c[t];
240
+ function C(e) {
241
+ for (let o in p)
242
+ this[o] = p[o];
244
243
  }
245
- const B = /* @__PURE__ */ function() {
246
- return C.exports;
244
+ const k = /* @__PURE__ */ function() {
245
+ return b.exports;
247
246
  }();
248
247
  export {
249
- B as default
248
+ k as default
250
249
  };
@@ -1,9 +1,9 @@
1
- var d = Object.defineProperty;
1
+ var v = Object.defineProperty;
2
2
  var l = Object.getOwnPropertySymbols;
3
- var v = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
4
- var r = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, c = (e, i) => {
3
+ var _ = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
4
+ var r = (e, i, t) => i in e ? v(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, c = (e, i) => {
5
5
  for (var t in i || (i = {}))
6
- v.call(i, t) && r(e, t, i[t]);
6
+ _.call(i, t) && r(e, t, i[t]);
7
7
  if (l)
8
8
  for (var t of l(i))
9
9
  h.call(i, t) && r(e, t, i[t]);
@@ -12,10 +12,8 @@ var r = (e, i, t) => i in e ? d(e, i, { enumerable: !0, configurable: !0, writab
12
12
  import { i as p } from "../chunks/util.ae730cde.mjs";
13
13
  import { setPx as u } from "@web-utils/core";
14
14
  import f from "vue";
15
- import g from "element-ui/lib/carousel-item";
16
- import w from "element-ui/lib/carousel";
17
- import { n as C } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
- var x = function() {
15
+ import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
+ var w = function() {
19
17
  var e = this, i = e.$createElement, t = e._self._c || i;
20
18
  return e.isShow ? t("div", {
21
19
  staticClass: "avue-image-preview"
@@ -52,7 +50,7 @@ var x = function() {
52
50
  })]) : e._e(), t("div", {
53
51
  ref: "box",
54
52
  staticClass: "avue-image-preview__box"
55
- }, [t(w, {
53
+ }, [t("ElCarousel", {
56
54
  ref: "carousel",
57
55
  attrs: {
58
56
  "show-indicators": !1,
@@ -66,7 +64,7 @@ var x = function() {
66
64
  change: e.handleChange
67
65
  }
68
66
  }, e._l(e.datas, function(s, a) {
69
- return t(g, {
67
+ return t("ElCarouselItem", {
70
68
  key: a,
71
69
  nativeOn: {
72
70
  click: function(n) {
@@ -143,7 +141,7 @@ var x = function() {
143
141
  }
144
142
  }
145
143
  })])])]) : e._e();
146
- }, k = [];
144
+ }, C = [];
147
145
  const o = {
148
146
  name: "ImagePreview",
149
147
  data() {
@@ -210,8 +208,8 @@ const o = {
210
208
  let i = e.clientX, t = e.clientY;
211
209
  const s = 2;
212
210
  document.onmousemove = (a) => {
213
- const n = a.clientX - i, _ = a.clientY - t;
214
- i = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + _ * s;
211
+ const n = a.clientX - i, m = a.clientY - t;
212
+ i = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + m * s;
215
213
  }, document.onmouseup = () => {
216
214
  document.onmousemove = null, document.onmouseup = null;
217
215
  };
@@ -223,7 +221,7 @@ const o = {
223
221
  this.isShow = !1, typeof this.ops.beforeClose == "function" && this.ops.beforeClose(this.datas, this.index), this.$destroy(), this.$el.remove();
224
222
  }
225
223
  }
226
- }, $ = (e = [], i = 0, t = {}) => {
224
+ }, x = (e = [], i = 0, t = {}) => {
227
225
  const s = f.extend(o), a = {
228
226
  datas: e,
229
227
  index: i,
@@ -238,25 +236,25 @@ const o = {
238
236
  }).$mount();
239
237
  return document.body.appendChild(n.$el), n.isShow = !0, n;
240
238
  };
241
- o.imagePreview = $;
242
- const y = o, m = {};
243
- var b = /* @__PURE__ */ C(
244
- y,
245
- x,
239
+ o.imagePreview = x;
240
+ const k = o, d = {};
241
+ var $ = /* @__PURE__ */ g(
246
242
  k,
243
+ w,
244
+ C,
247
245
  !1,
248
- P,
246
+ y,
249
247
  null,
250
248
  null,
251
249
  null
252
250
  );
253
- function P(e) {
254
- for (let i in m)
255
- this[i] = m[i];
251
+ function y(e) {
252
+ for (let i in d)
253
+ this[i] = d[i];
256
254
  }
257
- const R = /* @__PURE__ */ function() {
258
- return b.exports;
255
+ const M = /* @__PURE__ */ function() {
256
+ return $.exports;
259
257
  }();
260
258
  export {
261
- R as default
259
+ M as default
262
260
  };