@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,13 +1,11 @@
1
- import n from "element-ui/lib/input";
2
- import d from "element-ui/lib/cascader";
3
- import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var i = function() {
5
- var e = this, s = e.$createElement, t = e._self._c || s;
1
+ import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ var r = function() {
3
+ var e = this, a = e.$createElement, t = e._self._c || a;
6
4
  return t("div", {
7
5
  staticClass: "address-input-wrapper flex-row"
8
6
  }, [t("div", {
9
7
  staticClass: "address-input-item-wrapper"
10
- }, [t(d, {
8
+ }, [t("ElCascader", {
11
9
  attrs: {
12
10
  options: e.options,
13
11
  disabled: e.inputDisabled,
@@ -18,28 +16,28 @@ var i = function() {
18
16
  },
19
17
  model: {
20
18
  value: e.internalVal.address,
21
- callback: function(a) {
22
- e.$set(e.internalVal, "address", a);
19
+ callback: function(s) {
20
+ e.$set(e.internalVal, "address", s);
23
21
  },
24
22
  expression: "internalVal.address"
25
23
  }
26
24
  })], 1), t("div", {
27
25
  staticClass: "address-input-item-wrapper flex-item"
28
- }, [t(n, {
26
+ }, [t("ElInput", {
29
27
  attrs: {
30
28
  placeholder: "请输入详细地址!",
31
29
  disabled: e.inputDisabled
32
30
  },
33
31
  model: {
34
32
  value: e.internalVal.detailAddress,
35
- callback: function(a) {
36
- e.$set(e.internalVal, "detailAddress", a);
33
+ callback: function(s) {
34
+ e.$set(e.internalVal, "detailAddress", s);
37
35
  },
38
36
  expression: "internalVal.detailAddress"
39
37
  }
40
38
  })], 1)]);
41
- }, o = [];
42
- const u = {
39
+ }, n = [];
40
+ const i = {
43
41
  name: "AddressInput",
44
42
  inject: {
45
43
  elForm: {
@@ -92,24 +90,24 @@ const u = {
92
90
  }
93
91
  }
94
92
  }
95
- }, l = {};
96
- var p = /* @__PURE__ */ r(
97
- u,
93
+ }, d = {};
94
+ var u = /* @__PURE__ */ l(
98
95
  i,
99
- o,
96
+ r,
97
+ n,
100
98
  !1,
101
- c,
99
+ o,
102
100
  null,
103
101
  null,
104
102
  null
105
103
  );
106
- function c(e) {
107
- for (let s in l)
108
- this[s] = l[s];
104
+ function o(e) {
105
+ for (let a in d)
106
+ this[a] = d[a];
109
107
  }
110
- const v = /* @__PURE__ */ function() {
111
- return p.exports;
108
+ const c = /* @__PURE__ */ function() {
109
+ return u.exports;
112
110
  }();
113
111
  export {
114
- v as default
112
+ c as default
115
113
  };
@@ -1,35 +1,34 @@
1
- var g = Object.defineProperty, h = Object.defineProperties;
1
+ var h = Object.defineProperty, g = Object.defineProperties;
2
2
  var y = Object.getOwnPropertyDescriptors;
3
3
  var l = Object.getOwnPropertySymbols;
4
- var v = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var c = (o, t, e) => t in o ? g(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, p = (o, t) => {
4
+ var B = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
+ var c = (o, t, e) => t in o ? h(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, u = (o, t) => {
6
6
  for (var e in t || (t = {}))
7
- v.call(t, e) && c(o, e, t[e]);
7
+ B.call(t, e) && c(o, e, t[e]);
8
8
  if (l)
9
9
  for (var e of l(t))
10
- x.call(t, e) && c(o, e, t[e]);
10
+ v.call(t, e) && c(o, e, t[e]);
11
11
  return o;
12
- }, u = (o, t) => h(o, y(t));
13
- var d = (o, t, e) => new Promise((i, a) => {
12
+ }, p = (o, t) => g(o, y(t));
13
+ var d = (o, t, e) => new Promise((s, a) => {
14
14
  var f = (n) => {
15
15
  try {
16
- s(e.next(n));
16
+ i(e.next(n));
17
17
  } catch (r) {
18
18
  a(r);
19
19
  }
20
20
  }, m = (n) => {
21
21
  try {
22
- s(e.throw(n));
22
+ i(e.throw(n));
23
23
  } catch (r) {
24
24
  a(r);
25
25
  }
26
- }, s = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(f, m);
27
- s((e = e.apply(o, t)).next());
26
+ }, i = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(f, m);
27
+ i((e = e.apply(o, t)).next());
28
28
  });
29
- import { isFunction as B, error as S } from "@web-utils/core";
30
- import k from "element-ui/lib/button";
31
- import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
32
- const b = {
29
+ import { isFunction as x, error as S } from "@web-utils/core";
30
+ import { n as k } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
31
+ const L = {
33
32
  props: {
34
33
  type: {
35
34
  type: String,
@@ -50,9 +49,9 @@ const b = {
50
49
  autofocus: Boolean,
51
50
  round: Boolean
52
51
  }
53
- }, w = {
52
+ }, b = {
54
53
  name: "AwesomeButton",
55
- mixins: [b],
54
+ mixins: [L],
56
55
  props: {
57
56
  text: {
58
57
  type: String,
@@ -69,7 +68,7 @@ const b = {
69
68
  return d(this, null, function* () {
70
69
  this.isLoading = !0;
71
70
  const { click: t } = this.$listeners;
72
- if (B(t))
71
+ if (x(t))
73
72
  try {
74
73
  yield t(o);
75
74
  } catch (e) {
@@ -80,34 +79,34 @@ const b = {
80
79
  }
81
80
  },
82
81
  render(o) {
83
- var e, i;
84
- const t = (i = (e = this.$scopedSlots).default) == null ? void 0 : i.call(e);
82
+ var e, s;
83
+ const t = (s = (e = this.$scopedSlots).default) == null ? void 0 : s.call(e);
85
84
  return o(
86
- k,
87
- { on: { click: this.onClick }, props: u(p({}, this.$props), { disabled: this.isLoading }) },
85
+ "ElButton",
86
+ { on: { click: this.onClick }, props: p(u({}, this.$props), { disabled: this.isLoading }) },
88
87
  t && (t[0].tag || t[0].text) ? t : this.text
89
88
  );
90
89
  }
91
90
  };
92
- let C, $;
91
+ let w, C;
93
92
  const _ = {};
94
- var z = /* @__PURE__ */ L(
93
+ var $ = /* @__PURE__ */ k(
94
+ b,
95
95
  w,
96
96
  C,
97
- $,
98
97
  !1,
99
- A,
98
+ z,
100
99
  null,
101
100
  null,
102
101
  null
103
102
  );
104
- function A(o) {
103
+ function z(o) {
105
104
  for (let t in _)
106
105
  this[t] = _[t];
107
106
  }
108
- const R = /* @__PURE__ */ function() {
109
- return z.exports;
107
+ const E = /* @__PURE__ */ function() {
108
+ return $.exports;
110
109
  }();
111
110
  export {
112
- R as default
111
+ E as default
113
112
  };
package/card/index.mjs CHANGED
@@ -1,69 +1,67 @@
1
- import r from "element-ui/lib/col";
2
- import o from "element-ui/lib/row";
3
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var _ = function() {
5
- var t = this, e = t.$createElement, n = t._self._c || e;
6
- return n("div", {
1
+ import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ var o = function() {
3
+ var t = this, e = t.$createElement, a = t._self._c || e;
4
+ return a("div", {
7
5
  staticClass: "avue-card"
8
- }, [n(o, {
6
+ }, [a("ElRow", {
9
7
  attrs: {
10
8
  span: 24,
11
9
  gutter: t.gutter
12
10
  }
13
- }, [t.option.addBtn ? n(r, {
11
+ }, [t.option.addBtn ? a("ElCol", {
14
12
  attrs: {
15
13
  span: t.span
16
14
  }
17
- }, [n("div", {
15
+ }, [a("div", {
18
16
  staticClass: "avue-card__item avue-card__item--add",
19
17
  on: {
20
- click: function(a) {
18
+ click: function(n) {
21
19
  return t.rowAdd();
22
20
  }
23
21
  }
24
- }, [n("i", {
22
+ }, [a("i", {
25
23
  staticClass: "el-icon-plus"
26
- }), n("span", [t._v("添加")])])]) : t._e(), t._l(t.data, function(a, i) {
27
- return n(r, {
28
- key: i,
24
+ }), a("span", [t._v("添加")])])]) : t._e(), t._l(t.data, function(n, s) {
25
+ return a("ElCol", {
26
+ key: s,
29
27
  attrs: {
30
28
  span: t.span
31
29
  }
32
- }, [n("div", {
30
+ }, [a("div", {
33
31
  staticClass: "avue-card__item",
34
32
  on: {
35
- click: function(f) {
36
- return t.rowClick(a, i);
33
+ click: function(p) {
34
+ return t.rowClick(n, s);
37
35
  }
38
36
  }
39
- }, [n("div", {
37
+ }, [a("div", {
40
38
  staticClass: "avue-card__body"
41
- }, [n("div", {
39
+ }, [a("div", {
42
40
  staticClass: "avue-card__avatar"
43
- }, [n("img", {
41
+ }, [a("img", {
44
42
  attrs: {
45
- src: a[t.imgKey],
43
+ src: n[t.imgKey],
46
44
  alt: ""
47
45
  }
48
- })]), n("div", {
46
+ })]), a("div", {
49
47
  staticClass: "avue-card__detail"
50
- }, [n("div", {
48
+ }, [a("div", {
51
49
  staticClass: "avue-card__title"
52
- }, [t._v(" " + t._s(a[t.titleKey]) + " ")]), n("div", {
50
+ }, [t._v(" " + t._s(n[t.titleKey]) + " ")]), a("div", {
53
51
  staticClass: "avue-card__info"
54
- }, [t._v(" " + t._s(a[t.infoKey]) + " ")])])]), n("div", {
52
+ }, [t._v(" " + t._s(n[t.infoKey]) + " ")])])]), a("div", {
55
53
  staticClass: "avue-card__menu"
56
54
  }, [t._t("menu", null, {
57
- index: i,
58
- row: a
55
+ index: s,
56
+ row: n
59
57
  })], 2)])]);
60
58
  })], 2)], 1);
61
- }, c = [];
62
- const l = {
59
+ }, l = [];
60
+ const u = {
63
61
  img: "img",
64
62
  title: "title",
65
63
  info: "info"
66
- }, p = {
64
+ }, c = {
67
65
  name: "Card",
68
66
  props: {
69
67
  option: {
@@ -77,7 +75,7 @@ const l = {
77
75
  },
78
76
  data() {
79
77
  return {
80
- propsDefault: l
78
+ propsDefault: u
81
79
  };
82
80
  },
83
81
  computed: {
@@ -105,24 +103,24 @@ const l = {
105
103
  this.$emit("row-click", t, e);
106
104
  }
107
105
  }
108
- }, s = {};
109
- var d = /* @__PURE__ */ u(
110
- p,
111
- _,
106
+ }, i = {};
107
+ var _ = /* @__PURE__ */ r(
112
108
  c,
109
+ o,
110
+ l,
113
111
  !1,
114
- v,
112
+ d,
115
113
  null,
116
114
  null,
117
115
  null
118
116
  );
119
- function v(t) {
120
- for (let e in s)
121
- this[e] = s[e];
117
+ function d(t) {
118
+ for (let e in i)
119
+ this[e] = i[e];
122
120
  }
123
- const h = /* @__PURE__ */ function() {
124
- return d.exports;
121
+ const f = /* @__PURE__ */ function() {
122
+ return _.exports;
125
123
  }();
126
124
  export {
127
- h as default
125
+ f as default
128
126
  };
@@ -1,13 +1,11 @@
1
- import s from "element-ui/lib/carousel-item";
2
- import l from "element-ui/lib/carousel";
3
- import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var u = function() {
5
- var t = this, a = t.$createElement, e = t._self._c || a;
1
+ import { n } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ var l = function() {
3
+ var t = this, o = t.$createElement, e = t._self._c || o;
6
4
  return e("div", {
7
5
  class: ["avue-carousel", {
8
6
  "avue-carousel--fullscreen": t.option.fullscreen
9
7
  }]
10
- }, [e(l, {
8
+ }, [e("ElCarousel", {
11
9
  attrs: {
12
10
  type: t.option.type,
13
11
  height: `${t.option.height}px`,
@@ -15,27 +13,27 @@ var u = function() {
15
13
  interval: t.option.interval,
16
14
  "indicator-position": "outside"
17
15
  }
18
- }, t._l(t.data, function(o, r) {
19
- return e(s, {
20
- key: r
16
+ }, t._l(t.data, function(a, s) {
17
+ return e("ElCarouselItem", {
18
+ key: s
21
19
  }, [e("div", {
22
20
  staticClass: "avue-carousel__item"
23
21
  }, [e("a", {
24
22
  attrs: {
25
- href: o.href ? o.href : "javascript:void(0);",
26
- target: o.target
23
+ href: a.href ? a.href : "javascript:void(0);",
24
+ target: a.target
27
25
  }
28
26
  }, [e("div", {
29
27
  staticClass: "avue-carousel__img",
30
28
  style: {
31
- backgroundImage: `url(${o.src})`
29
+ backgroundImage: `url(${a.src})`
32
30
  }
33
- }), o.title ? e("div", {
31
+ }), a.title ? e("div", {
34
32
  staticClass: "avue-carousel__title"
35
- }, [t._v(t._s(o.title))]) : t._e()])])]);
33
+ }, [t._v(t._s(a.title))]) : t._e()])])]);
36
34
  }), 1)], 1);
37
- }, _ = [];
38
- const c = {
35
+ }, u = [];
36
+ const i = {
39
37
  name: "Carousel",
40
38
  props: {
41
39
  option: {
@@ -49,24 +47,24 @@ const c = {
49
47
  return this.option.data || [];
50
48
  }
51
49
  }
52
- }, n = {};
53
- var p = /* @__PURE__ */ i(
54
- c,
50
+ }, r = {};
51
+ var c = /* @__PURE__ */ n(
52
+ i,
53
+ l,
55
54
  u,
56
- _,
57
55
  !1,
58
- v,
56
+ _,
59
57
  null,
60
58
  null,
61
59
  null
62
60
  );
63
- function v(t) {
64
- for (let a in n)
65
- this[a] = n[a];
61
+ function _(t) {
62
+ for (let o in r)
63
+ this[o] = r[o];
66
64
  }
67
- const h = /* @__PURE__ */ function() {
68
- return p.exports;
65
+ const v = /* @__PURE__ */ function() {
66
+ return c.exports;
69
67
  }();
70
68
  export {
71
- h as default
69
+ v as default
72
70
  };