@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,9 +1,8 @@
1
- import { p, e as u } from "../chunks/event.10295951.mjs";
2
- import d from "element-ui/lib/cascader";
3
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var f = function() {
1
+ import { p as d, e as u } from "../chunks/event.b5d855dd.mjs";
2
+ import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var h = function() {
5
4
  var e = this, l = e.$createElement, s = e._self._c || l;
6
- return s(d, {
5
+ return s("ElCascader", {
7
6
  attrs: {
8
7
  options: e.dic,
9
8
  placeholder: e.placeholder,
@@ -29,10 +28,10 @@ var f = function() {
29
28
  scopedSlots: e._u([{
30
29
  key: "default",
31
30
  fn: function(t) {
32
- var a = t.data, r = t.node;
31
+ var a = t.data, n = t.node;
33
32
  return [e.$scopedSlots.default ? e._t("default", null, {
34
33
  data: a,
35
- node: r
34
+ node: n
36
35
  }) : s("span", [e._v(e._s(a[e.labelKey]))])];
37
36
  }
38
37
  }], null, !0),
@@ -44,10 +43,10 @@ var f = function() {
44
43
  expression: "text"
45
44
  }
46
45
  });
47
- }, y = [];
48
- const _ = {
46
+ }, f = [];
47
+ const y = {
49
48
  name: "FyCascader",
50
- mixins: [p, u],
49
+ mixins: [d, u],
51
50
  props: {
52
51
  checkStrictly: {
53
52
  type: Boolean,
@@ -97,9 +96,9 @@ const _ = {
97
96
  lazy: this.lazy,
98
97
  lazyLoad: (e, l) => {
99
98
  const s = (t) => {
100
- const a = (r, i, c) => {
101
- r.forEach((n) => {
102
- n[this.valueKey] === i ? n[this.childrenKey] = c : n[this.childrenKey] && a(n[this.childrenKey]);
99
+ const a = (n, i, c) => {
100
+ n.forEach((r) => {
101
+ r[this.valueKey] === i ? r[this.childrenKey] = c : r[this.childrenKey] && a(r[this.childrenKey]);
103
102
  });
104
103
  };
105
104
  a(this.dic, e[this.valueKey], t), l(t);
@@ -111,23 +110,23 @@ const _ = {
111
110
  }
112
111
  }
113
112
  }, o = {};
114
- var v = /* @__PURE__ */ h(
115
- _,
116
- f,
113
+ var v = /* @__PURE__ */ p(
117
114
  y,
115
+ h,
116
+ f,
118
117
  !1,
119
- m,
118
+ _,
120
119
  null,
121
120
  null,
122
121
  null
123
122
  );
124
- function m(e) {
123
+ function _(e) {
125
124
  for (let l in o)
126
125
  this[l] = o[l];
127
126
  }
128
- const z = /* @__PURE__ */ function() {
127
+ const g = /* @__PURE__ */ function() {
129
128
  return v.exports;
130
129
  }();
131
130
  export {
132
- z as default
131
+ g as default
133
132
  };
@@ -1,12 +1,10 @@
1
- import { p as i, e as o } from "../chunks/event.10295951.mjs";
2
- import s from "element-ui/lib/checkbox";
3
- import r from "element-ui/lib/checkbox-group";
4
- import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var d = function() {
6
- var e = this, n = e.$createElement, l = e._self._c || n;
1
+ import { p as c, e as i } from "../chunks/event.b5d855dd.mjs";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ var r = function() {
4
+ var e = this, t = e.$createElement, l = e._self._c || t;
7
5
  return l("div", {
8
6
  staticClass: "avue-checkbox"
9
- }, [e.all ? l(s, {
7
+ }, [e.all ? l("ElCheckbox", {
10
8
  attrs: {
11
9
  disabled: e.disabled,
12
10
  indeterminate: e.isIndeterminate
@@ -16,12 +14,12 @@ var d = function() {
16
14
  },
17
15
  model: {
18
16
  value: e.checkAll,
19
- callback: function(t) {
20
- e.checkAll = t;
17
+ callback: function(n) {
18
+ e.checkAll = n;
21
19
  },
22
20
  expression: "checkAll"
23
21
  }
24
- }, [e._v(" 全选 ")]) : e._e(), l(r, {
22
+ }, [e._v(" 全选 ")]) : e._e(), l("ElCheckboxGroup", {
25
23
  attrs: {
26
24
  disabled: e.disabled,
27
25
  size: e.size,
@@ -32,37 +30,34 @@ var d = function() {
32
30
  change: e.handleCheckChange
33
31
  },
34
32
  nativeOn: {
35
- click: function(t) {
33
+ click: function(n) {
36
34
  return e.handleClick.apply(null, arguments);
37
35
  }
38
36
  },
39
37
  model: {
40
38
  value: e.text,
41
- callback: function(t) {
42
- e.text = t;
39
+ callback: function(n) {
40
+ e.text = n;
43
41
  },
44
42
  expression: "text"
45
43
  }
46
- }, e._l(e.dic, function(t, c) {
44
+ }, e._l(e.dic, function(n, s) {
47
45
  return l(e.componentName, {
48
- key: c,
46
+ key: s,
49
47
  tag: "Component",
50
48
  attrs: {
51
- label: t[e.valueKey],
49
+ label: n[e.valueKey],
52
50
  border: e.border,
53
51
  size: e.size,
54
52
  readonly: e.readonly,
55
- disabled: t[e.disabledKey]
53
+ disabled: n[e.disabledKey]
56
54
  }
57
- }, [e._v(" " + e._s(t[e.labelKey]) + " ")]);
55
+ }, [e._v(" " + e._s(n[e.labelKey]) + " ")]);
58
56
  }), 1)], 1);
59
- }, u = [];
60
- const m = {
57
+ }, h = [];
58
+ const d = {
61
59
  name: "FyCheckbox",
62
- components: {
63
- ElCheckbox: s
64
- },
65
- mixins: [i, o],
60
+ mixins: [c, i],
66
61
  props: {
67
62
  all: {
68
63
  type: Boolean,
@@ -89,34 +84,34 @@ const m = {
89
84
  },
90
85
  methods: {
91
86
  handleCheckAll(e) {
92
- this.all && (this.text = e ? this.dic.map((n) => n[this.valueKey]) : [], this.isIndeterminate = !1);
87
+ this.all && (this.text = e ? this.dic.map((t) => t[this.valueKey]) : [], this.isIndeterminate = !1);
93
88
  },
94
89
  handleCheckChange() {
95
90
  const e = this.text;
96
91
  if (!this.all)
97
92
  return;
98
- const n = e.length, l = this.dic.length;
99
- this.checkAll = n === l, this.isIndeterminate = n > 0 && n < l;
93
+ const t = e.length, l = this.dic.length;
94
+ this.checkAll = t === l, this.isIndeterminate = t > 0 && t < l;
100
95
  }
101
96
  }
102
97
  }, a = {};
103
- var _ = /* @__PURE__ */ h(
104
- m,
98
+ var u = /* @__PURE__ */ o(
105
99
  d,
106
- u,
100
+ r,
101
+ h,
107
102
  !1,
108
- p,
103
+ _,
109
104
  null,
110
105
  null,
111
106
  null
112
107
  );
113
- function p(e) {
114
- for (let n in a)
115
- this[n] = a[n];
108
+ function _(e) {
109
+ for (let t in a)
110
+ this[t] = a[t];
116
111
  }
117
- const C = /* @__PURE__ */ function() {
118
- return _.exports;
112
+ const v = /* @__PURE__ */ function() {
113
+ return u.exports;
119
114
  }();
120
115
  export {
121
- C as default
116
+ v as default
122
117
  };
package/fy-code/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
+ import s from "element-ui/lib/scrollbar";
1
2
  import { s as o } from "../chunks/util.ae730cde.mjs";
2
- import r from "element-ui/lib/scrollbar";
3
- import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var l = function() {
3
+ import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
+ var i = function() {
5
5
  var t = this, e = t.$createElement, n = t._self._c || e;
6
6
  return n("div", {
7
7
  staticClass: "avue-code"
8
- }, [n(r, {
8
+ }, [n("ElScrollbar", {
9
9
  style: t.styleName
10
10
  }, [n("pre", [t._v(" "), n("code", {
11
11
  ref: "container",
@@ -17,6 +17,9 @@ var l = function() {
17
17
  }, a = [];
18
18
  const c = {
19
19
  name: "FyCode",
20
+ components: {
21
+ ElScrollbar: s
22
+ },
20
23
  props: {
21
24
  height: {
22
25
  type: Number,
@@ -40,10 +43,10 @@ const c = {
40
43
  methods: {
41
44
  setPx: o
42
45
  }
43
- }, s = {};
44
- var _ = /* @__PURE__ */ i(
46
+ }, r = {};
47
+ var h = /* @__PURE__ */ l(
45
48
  c,
46
- l,
49
+ i,
47
50
  a,
48
51
  !1,
49
52
  u,
@@ -52,11 +55,11 @@ var _ = /* @__PURE__ */ i(
52
55
  null
53
56
  );
54
57
  function u(t) {
55
- for (let e in s)
56
- this[e] = s[e];
58
+ for (let e in r)
59
+ this[e] = r[e];
57
60
  }
58
61
  const m = /* @__PURE__ */ function() {
59
- return _.exports;
62
+ return h.exports;
60
63
  }();
61
64
  export {
62
65
  m as default