@web-utils/component 2.70.0 → 3.0.1

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 (189) hide show
  1. package/address-input/index.mjs +16 -14
  2. package/awesome-button/index.mjs +30 -29
  3. package/card/index.mjs +42 -40
  4. package/carousel/index.mjs +27 -25
  5. package/chat/index.mjs +70 -59
  6. package/chunk-file-uploader/index.mjs +594 -35
  7. package/chunk-file-uploader/style.css +1 -1
  8. package/chunks/CountUp.f1a19f35.mjs +124 -0
  9. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
  10. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
  11. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
  12. package/chunks/ElementDialog.d8f3105c.mjs +211 -0
  13. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
  14. package/chunks/EmptyView.e2430422.mjs +51 -0
  15. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
  16. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
  17. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
  18. package/chunks/FormItem.2920ac0c.mjs +45 -0
  19. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
  20. package/chunks/FormItemGroup.41daddb6.mjs +64 -0
  21. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
  22. package/chunks/FyCurd.8acd2983.mjs +548 -0
  23. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
  24. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
  25. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
  26. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
  27. package/chunks/FyForm.0294e494.mjs +439 -0
  28. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
  29. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
  30. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
  31. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
  32. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
  33. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
  34. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
  35. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
  36. package/chunks/IconTemp.42c48e1f.mjs +32 -0
  37. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
  38. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
  39. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
  40. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
  41. package/chunks/Page.81f4b8d9.mjs +32 -0
  42. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
  43. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
  44. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
  45. package/chunks/PageableTable.333cbdc1.mjs +335 -0
  46. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
  47. package/chunks/ResizeObserver.60f728f0.mjs +54 -0
  48. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
  49. package/chunks/TableColumn.8503272e.mjs +106 -0
  50. package/chunks/Toolbar.5c539dbb.mjs +24 -0
  51. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
  52. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
  53. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
  54. package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
  55. package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
  56. package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
  57. package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
  58. package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
  59. package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
  60. package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
  61. package/color-picker/index.mjs +200 -32
  62. package/confirm-button/index.mjs +1 -1
  63. package/confirmable/index.mjs +1 -1
  64. package/count-up/index.mjs +14 -17
  65. package/data-box/index.mjs +36 -33
  66. package/data-card/index.mjs +35 -33
  67. package/data-cardtext/index.mjs +29 -27
  68. package/data-display/index.mjs +37 -34
  69. package/data-icons/index.mjs +32 -29
  70. package/data-imgtext/index.mjs +30 -27
  71. package/data-operatext/index.mjs +41 -39
  72. package/data-panel/index.mjs +39 -36
  73. package/data-pay/index.mjs +26 -22
  74. package/data-price/index.mjs +34 -32
  75. package/data-progress/index.mjs +32 -28
  76. package/data-rotate/index.mjs +38 -35
  77. package/data-table-picker/index.mjs +25 -22
  78. package/data-tabs/index.mjs +35 -32
  79. package/dialog-form/index.mjs +41 -32
  80. package/dynamic-table/index.mjs +47 -42
  81. package/easy-popup/index.mjs +29 -56
  82. package/editable-progress/index.mjs +16 -14
  83. package/editable-tree/index.mjs +129 -476
  84. package/egd-collapse-item/index.mjs +1 -2
  85. package/element-dialog/index.mjs +37 -126
  86. package/empty-view/index.mjs +13 -31
  87. package/flex-column/index.mjs +1 -1
  88. package/flex-item/index.mjs +1 -1
  89. package/flex-row/index.mjs +1 -1
  90. package/flow/index.mjs +105 -40
  91. package/flow-designer/index.mjs +1190 -1114
  92. package/flow-node/index.mjs +15 -47
  93. package/flow-viewer/index.mjs +167 -78
  94. package/form-block/index.mjs +24 -22
  95. package/form-cascader/index.mjs +29 -29
  96. package/form-checkbox-group/index.mjs +76 -31
  97. package/form-date-picker/index.mjs +21 -20
  98. package/form-holder/index.mjs +16 -15
  99. package/form-input/index.mjs +30 -88
  100. package/form-input-email/index.mjs +28 -28
  101. package/form-input-id-card/index.mjs +37 -37
  102. package/form-input-number/index.mjs +219 -59
  103. package/form-input-phone-number/index.mjs +25 -25
  104. package/form-input-tag/index.mjs +160 -38
  105. package/form-input-time/index.mjs +23 -23
  106. package/form-item/index.mjs +15 -144
  107. package/form-item-group/index.mjs +15 -163
  108. package/form-radio-group/index.mjs +39 -38
  109. package/form-select/index.mjs +33 -32
  110. package/form-switch/index.mjs +26 -26
  111. package/form-textarea/index.mjs +26 -26
  112. package/form-view/index.mjs +46 -42
  113. package/fy-array/index.mjs +65 -61
  114. package/fy-cascader/index.mjs +14 -13
  115. package/fy-checkbox/index.mjs +37 -32
  116. package/fy-code/index.mjs +11 -14
  117. package/fy-curd/index.mjs +206 -2795
  118. package/fy-date/index.mjs +16 -57
  119. package/fy-draggable/index.mjs +21 -20
  120. package/fy-dynamic/index.mjs +64 -207
  121. package/fy-empty/index.mjs +12 -29
  122. package/fy-form/index.mjs +178 -732
  123. package/fy-form-design/index.mjs +1738 -1179
  124. package/fy-input/index.mjs +15 -101
  125. package/fy-input-color/index.mjs +17 -66
  126. package/fy-input-icon/index.mjs +21 -116
  127. package/fy-input-map/index.mjs +27 -24
  128. package/fy-input-number/index.mjs +23 -22
  129. package/fy-input-table/index.mjs +22 -18
  130. package/fy-input-tree/index.mjs +32 -28
  131. package/fy-progress/index.mjs +24 -23
  132. package/fy-radio/index.mjs +23 -18
  133. package/fy-rate/index.mjs +16 -49
  134. package/fy-select/index.mjs +29 -122
  135. package/fy-slider/index.mjs +18 -17
  136. package/fy-switch/index.mjs +21 -20
  137. package/fy-tabs/index.mjs +14 -48
  138. package/fy-time/index.mjs +20 -14
  139. package/fy-title/index.mjs +1 -1
  140. package/fy-tree/index.mjs +26 -20
  141. package/fy-u-editor/index.mjs +1 -1
  142. package/fy-upload/index.mjs +76 -74
  143. package/guide-steps/index.mjs +24 -22
  144. package/highlight-j-s/index.mjs +19 -29
  145. package/icon-temp/index.mjs +12 -30
  146. package/iframe-window/index.mjs +19 -18
  147. package/image-cropper/index.mjs +53 -51
  148. package/image-preview/index.mjs +27 -25
  149. package/input-number/index.mjs +63 -172
  150. package/input-number-range/index.mjs +24 -23
  151. package/license/index.mjs +1 -1
  152. package/loading-view/index.mjs +15 -33
  153. package/login/index.mjs +40 -35
  154. package/nav-bar/index.mjs +15 -30
  155. package/notice/index.mjs +19 -18
  156. package/package.json +1 -1
  157. package/page/index.mjs +12 -20
  158. package/page-header/index.mjs +13 -34
  159. package/page-index/index.mjs +34 -33
  160. package/page-index-top/index.mjs +100 -51
  161. package/page-skeleton/index.mjs +18 -35
  162. package/page-skeleton-new/index.mjs +16 -15
  163. package/pageable-table/index.mjs +85 -223
  164. package/pageable-view/index.mjs +34 -33
  165. package/present-view/index.mjs +75 -71
  166. package/record-video/index.mjs +1 -1
  167. package/resize-observer/index.mjs +21 -29
  168. package/search/index.mjs +29 -27
  169. package/search-popover/index.mjs +1 -1
  170. package/sign/index.mjs +1 -1
  171. package/split-pane/index.mjs +40 -45
  172. package/static-pageable-table/index.mjs +20 -18
  173. package/swiper/index.mjs +27 -25
  174. package/table-view/index.mjs +627 -89
  175. package/tag-render/index.mjs +21 -19
  176. package/text-ellipsis/index.mjs +13 -12
  177. package/tinymce-editor/index.mjs +73 -72
  178. package/toolbar/index.mjs +15 -208
  179. package/toolbar-button/index.mjs +32 -57
  180. package/verify/index.mjs +1 -1
  181. package/vue-cron/index.mjs +112 -104
  182. package/watermark/index.mjs +1 -1
  183. package/web-types.json +1 -1
  184. package/x-input-tag/index.mjs +51 -117
  185. package/chunks/FormTemp.7f91629d.mjs +0 -165
  186. package/chunks/confirmable-mixin.817b542f.mjs +0 -116
  187. package/chunks/form-input-mixin.4632ad36.mjs +0 -24
  188. package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
  189. package/chunks/input-number-mixin.41a066be.mjs +0 -60
package/toolbar/index.mjs CHANGED
@@ -1,217 +1,24 @@
1
- import { NOOP as b } from "@web-utils/core";
2
- import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- const u = {
4
- back: {
5
- label: "返回",
6
- type: "primary",
7
- icon: "el-icon-d-arrow-left"
8
- },
9
- cancel: {
10
- label: "取消",
11
- icon: "fa fa-undo"
12
- },
13
- create: {
14
- label: "新增",
15
- type: "primary",
16
- icon: "el-icon-plus"
17
- },
18
- save: {
19
- label: "保存",
20
- type: "primary",
21
- icon: "fa fa-save"
22
- },
23
- withdraw: {
24
- label: "撤回",
25
- type: "primary",
26
- icon: "fa fa-undo"
27
- },
28
- edit: {
29
- label: "编辑",
30
- type: "primary",
31
- icon: "el-icon-edit-outline"
32
- },
33
- submit: {
34
- label: "提交审批",
35
- type: "primary",
36
- icon: "fa fa-check"
37
- },
38
- publish: {
39
- label: "发布",
40
- type: "primary",
41
- icon: "fa fa-send"
42
- },
43
- agree: {
44
- label: "同意",
45
- type: "primary",
46
- icon: "fa fa-check-square-o"
47
- },
48
- disagree: {
49
- label: "不同意",
50
- type: "primary",
51
- icon: "fa fa-mail-reply"
52
- },
53
- reject: {
54
- label: "退回",
55
- type: "primary",
56
- icon: "fa fa-reply"
57
- },
58
- finish: {
59
- label: "完成",
60
- type: "primary",
61
- icon: "fa fa-check-square"
62
- },
63
- enable: {
64
- label: "启用",
65
- type: "primary",
66
- icon: "el-icon-circle-check"
67
- },
68
- exp: {
69
- label: "导出",
70
- type: "primary",
71
- icon: "el-icon-download"
72
- },
73
- imp: {
74
- label: "导入",
75
- type: "primary",
76
- icon: "el-icon-upload"
77
- },
78
- del: {
79
- label: "删除",
80
- type: "primary",
81
- icon: "el-icon-delete"
82
- },
83
- disabled: {
84
- label: "禁用",
85
- type: "primary",
86
- icon: "el-icon-remove-outline"
87
- },
88
- reload: {
89
- label: "刷新",
90
- type: "primary",
91
- icon: "el-icon-refresh"
92
- },
93
- search: {
94
- label: "搜索",
95
- icon: "el-icon-search",
96
- separateLine: !1
97
- }
98
- }, d = {
99
- name: "Toolbar",
100
- provide() {
101
- return {
102
- toolbar: this
103
- };
104
- },
105
- props: {
106
- searchable: Boolean,
107
- buttons: {
108
- type: Array,
109
- default: () => ["back"]
110
- },
111
- back: {
112
- type: Function
113
- },
114
- cancel: {
115
- type: Function
116
- },
117
- emitter: {
118
- type: String,
119
- default: "self"
120
- },
121
- footer: Boolean,
122
- label: {
123
- type: Object,
124
- default: () => ({})
125
- }
126
- },
127
- methods: {
128
- goBack() {
129
- const e = this.$route.path;
130
- this.$bus("closeTab", e, this);
131
- },
132
- fire(e, t) {
133
- this.emitter === "parent" ? this.$parent && this.$parent.$emit(e, t, this) : this.$emit(e, t, this);
134
- },
135
- createButton(e, {
136
- label: t,
137
- icon: o,
138
- type: i,
139
- separateLine: a = !0
140
- }) {
141
- var r;
142
- const n = this.$createElement;
143
- let l;
144
- const s = ((r = this.label) == null ? void 0 : r[e]) || t;
145
- return ["back", "cancel"].includes(e) ? l = this.goBack : l = (c) => (this.$listeners[e] || b)(c), n("ToolbarButton", {
146
- attrs: {
147
- "separate-line": a,
148
- icon: o,
149
- label: s,
150
- footer: this.footer,
151
- type: i
152
- },
153
- on: {
154
- click: l
155
- }
156
- });
157
- },
158
- getLeftButtons() {
159
- var o, i;
160
- const {
161
- createButton: e
162
- } = this;
163
- return ((i = (o = this.$scopedSlots)["toolbar-left"]) == null ? void 0 : i.call(o)) || this.buttons.map((a) => {
164
- var l, s, r, c, p;
165
- const n = u[a];
166
- return n ? ((s = (l = this.$scopedSlots)[a]) == null ? void 0 : s.call(l)) || e(a, n) : a === "slot" && (p = (c = (r = this.$scopedSlots).default) == null ? void 0 : c.call(r, {
167
- buttons: this.buttons,
168
- footer: this.footer
169
- })) != null ? p : null;
170
- });
171
- },
172
- getRightButtons() {
173
- var t, o;
174
- return ((o = (t = this.$scopedSlots)["toolbar-right"]) == null ? void 0 : o.call(t)) || this.getSearchButton();
175
- },
176
- getSearchButton() {
177
- const {
178
- createButton: e
179
- } = this;
180
- return this.searchable ? e("search", u.search) : null;
181
- }
182
- },
183
- render() {
184
- const e = arguments[0];
185
- return this.footer ? e("div", {
186
- class: "footer-bar"
187
- }, [this.getLeftButtons()]) : e("div", {
188
- class: "toolbar"
189
- }, [e("div", {
190
- class: "toolbar-left"
191
- }, [this.getLeftButtons()]), e("div", {
192
- class: "toolbar-right"
193
- }, [this.getRightButtons()])]);
194
- }
195
- };
196
- let y, m;
197
- const h = {};
198
- var _ = /* @__PURE__ */ f(
199
- d,
200
- y,
201
- m,
1
+ import { _ as t } from "../chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs";
2
+ import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
+ let _, r;
4
+ const n = {};
5
+ var s = /* @__PURE__ */ o(
6
+ t,
7
+ _,
8
+ r,
202
9
  !1,
203
- g,
10
+ l,
204
11
  null,
205
12
  null,
206
13
  null
207
14
  );
208
- function g(e) {
209
- for (let t in h)
210
- this[t] = h[t];
15
+ function l(u) {
16
+ for (let e in n)
17
+ this[e] = n[e];
211
18
  }
212
- const S = /* @__PURE__ */ function() {
213
- return _.exports;
19
+ const a = /* @__PURE__ */ function() {
20
+ return s.exports;
214
21
  }();
215
22
  export {
216
- S as default
23
+ a as default
217
24
  };
@@ -1,48 +1,23 @@
1
- var s = (t, o, e) => new Promise((c, i) => {
2
- var _ = (n) => {
1
+ var i = (n, t, e) => new Promise((c, s) => {
2
+ var u = (o) => {
3
3
  try {
4
- a(e.next(n));
5
- } catch (l) {
6
- i(l);
4
+ a(e.next(o));
5
+ } catch (r) {
6
+ s(r);
7
7
  }
8
- }, u = (n) => {
8
+ }, p = (o) => {
9
9
  try {
10
- a(e.throw(n));
11
- } catch (l) {
12
- i(l);
10
+ a(e.throw(o));
11
+ } catch (r) {
12
+ s(r);
13
13
  }
14
- }, a = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(_, u);
15
- a((e = e.apply(t, o)).next());
14
+ }, a = (o) => o.done ? c(o.value) : Promise.resolve(o.value).then(u, p);
15
+ a((e = e.apply(n, t)).next());
16
16
  });
17
- import { isFunction as d } from "@web-utils/core";
18
- import { n as p } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
19
- var f = function() {
20
- var t = this, o = t.$createElement, e = t._self._c || o;
21
- return t.footer || t.toolbar.footer ? e("ElButton", {
22
- attrs: {
23
- disabled: t.disabled || t.loading,
24
- type: t.type
25
- },
26
- on: {
27
- click: t.onClick
28
- }
29
- }, [t._v(" " + t._s(t.label) + " ")]) : e("span", {
30
- staticClass: "form-toolbar-button"
31
- }, [e("ElButton", {
32
- attrs: {
33
- icon: t.icon,
34
- type: "text",
35
- disabled: t.disabled || t.loading,
36
- size: "mini"
37
- },
38
- on: {
39
- click: t.onClick
40
- }
41
- }, [t._v(" " + t._s(t.label) + " ")]), t.separateLine ? e("span", {
42
- staticClass: "separate-line"
43
- }) : t._e()], 1);
44
- }, b = [];
45
- const m = {
17
+ import { isFunction as f } from "@web-utils/core";
18
+ import { s as d, r as _ } from "../chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs";
19
+ import { n as m } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
20
+ const y = {
46
21
  name: "ToolbarButton",
47
22
  inject: {
48
23
  toolbar: {
@@ -72,37 +47,37 @@ const m = {
72
47
  };
73
48
  },
74
49
  methods: {
75
- onClick(t) {
76
- return s(this, null, function* () {
50
+ onClick(n) {
51
+ return i(this, null, function* () {
77
52
  this.loading = !0;
78
- const { click: o } = this.$listeners;
79
- if (d(o))
53
+ const { click: t } = this.$listeners;
54
+ if (f(t))
80
55
  try {
81
- yield o(t);
56
+ yield t(n);
82
57
  } catch (e) {
83
58
  }
84
59
  this.loading = !1;
85
60
  });
86
61
  }
87
62
  }
88
- }, r = {};
89
- var v = /* @__PURE__ */ p(
90
- m,
91
- f,
92
- b,
93
- !1,
63
+ }, l = {};
64
+ var g = /* @__PURE__ */ m(
94
65
  y,
66
+ _,
67
+ d,
68
+ !1,
69
+ h,
95
70
  null,
96
71
  null,
97
72
  null
98
73
  );
99
- function y(t) {
100
- for (let o in r)
101
- this[o] = r[o];
74
+ function h(n) {
75
+ for (let t in l)
76
+ this[t] = l[t];
102
77
  }
103
- const k = /* @__PURE__ */ function() {
104
- return v.exports;
78
+ const x = /* @__PURE__ */ function() {
79
+ return g.exports;
105
80
  }();
106
81
  export {
107
- k as default
82
+ x as default
108
83
  };
package/verify/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { s as n } from "../chunks/util.ae730cde.mjs";
1
+ import { s as n } from "../chunks/util.7844e2c2.mjs";
2
2
  import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var l = function() {
4
4
  var t = this, e = t.$createElement, s = t._self._c || e;