@web-utils/component 3.0.1 → 3.0.3

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 (168) hide show
  1. package/address-input/index.mjs +14 -14
  2. package/chat/index.mjs +39 -40
  3. package/chunk-file-uploader/index.mjs +35 -594
  4. package/chunk-file-uploader/style.css +1 -1
  5. package/chunks/FormTemp.d079292b.mjs +139 -0
  6. package/chunks/{dataformat.816df805.mjs → dataformat.e655611c.mjs} +6 -6
  7. package/chunks/detail.d6f8e347.mjs +29 -0
  8. package/chunks/{dic.3b4ba802.mjs → dic.eaac0823.mjs} +40 -40
  9. package/chunks/{event.4377230d.mjs → event.10295951.mjs} +2 -2
  10. package/chunks/form-input-mixin.78a567bc.mjs +24 -0
  11. package/chunks/form-item-mixin.57cb2019.mjs +140 -0
  12. package/chunks/{index.d91bd77a.mjs → index.57f871af.mjs} +7 -7
  13. package/chunks/{init.f0a03127.mjs → init.47f219b4.mjs} +2 -2
  14. package/chunks/input-number-mixin.41a066be.mjs +60 -0
  15. package/chunks/{util.7844e2c2.mjs → util.ae730cde.mjs} +21 -21
  16. package/count-up/index.mjs +17 -14
  17. package/data-box/index.mjs +18 -19
  18. package/data-display/index.mjs +17 -18
  19. package/data-icons/index.mjs +16 -17
  20. package/data-panel/index.mjs +20 -21
  21. package/data-pay/index.mjs +15 -16
  22. package/data-progress/index.mjs +19 -20
  23. package/data-rotate/index.mjs +35 -36
  24. package/data-table-picker/index.mjs +23 -25
  25. package/data-tabs/index.mjs +15 -16
  26. package/dialog-form/index.mjs +11 -12
  27. package/dynamic-table/index.mjs +34 -35
  28. package/easy-popup/index.mjs +56 -29
  29. package/editable-tree/index.mjs +485 -134
  30. package/element-dialog/index.mjs +127 -37
  31. package/empty-view/index.mjs +31 -13
  32. package/flex-column/index.mjs +1 -1
  33. package/flex-item/index.mjs +1 -1
  34. package/flex-row/index.mjs +1 -1
  35. package/flow/index.mjs +40 -105
  36. package/flow-designer/index.mjs +555 -615
  37. package/flow-node/index.mjs +47 -15
  38. package/flow-viewer/index.mjs +78 -167
  39. package/form-cascader/index.mjs +24 -24
  40. package/form-checkbox-group/index.mjs +35 -79
  41. package/form-date-picker/index.mjs +22 -22
  42. package/form-holder/index.mjs +1 -1
  43. package/form-input/index.mjs +86 -28
  44. package/form-input-email/index.mjs +18 -18
  45. package/form-input-id-card/index.mjs +27 -27
  46. package/form-input-number/index.mjs +59 -219
  47. package/form-input-phone-number/index.mjs +27 -27
  48. package/form-input-tag/index.mjs +38 -160
  49. package/form-input-time/index.mjs +16 -16
  50. package/form-item/index.mjs +146 -15
  51. package/form-item-group/index.mjs +164 -14
  52. package/form-radio-group/index.mjs +41 -41
  53. package/form-select/index.mjs +20 -20
  54. package/form-switch/index.mjs +19 -19
  55. package/form-textarea/index.mjs +29 -29
  56. package/form-view/index.mjs +42 -46
  57. package/fy-array/index.mjs +2 -2
  58. package/fy-cascader/index.mjs +15 -15
  59. package/fy-checkbox/index.mjs +1 -1
  60. package/fy-code/index.mjs +1 -1
  61. package/fy-curd/index.mjs +2824 -210
  62. package/fy-date/index.mjs +59 -17
  63. package/fy-draggable/index.mjs +1 -1
  64. package/fy-dynamic/index.mjs +208 -64
  65. package/fy-empty/index.mjs +29 -12
  66. package/fy-form/index.mjs +743 -178
  67. package/fy-form-design/index.mjs +1013 -1540
  68. package/fy-input/index.mjs +105 -17
  69. package/fy-input-color/index.mjs +67 -16
  70. package/fy-input-icon/index.mjs +119 -23
  71. package/fy-input-map/index.mjs +14 -15
  72. package/fy-input-number/index.mjs +1 -1
  73. package/fy-input-table/index.mjs +19 -21
  74. package/fy-input-tree/index.mjs +3 -3
  75. package/fy-radio/index.mjs +1 -1
  76. package/fy-rate/index.mjs +50 -16
  77. package/fy-select/index.mjs +126 -29
  78. package/fy-slider/index.mjs +2 -2
  79. package/fy-switch/index.mjs +1 -1
  80. package/fy-tabs/index.mjs +51 -15
  81. package/fy-time/index.mjs +1 -1
  82. package/fy-title/index.mjs +1 -1
  83. package/fy-tree/index.mjs +23 -25
  84. package/fy-u-editor/index.mjs +1 -1
  85. package/fy-upload/index.mjs +2 -2
  86. package/highlight-j-s/index.mjs +29 -19
  87. package/icon-temp/index.mjs +30 -12
  88. package/iframe-window/index.mjs +18 -19
  89. package/image-cropper/index.mjs +22 -23
  90. package/image-preview/index.mjs +1 -1
  91. package/index.mjs +477 -480
  92. package/input-number/index.mjs +173 -63
  93. package/license/index.mjs +1 -1
  94. package/loading-view/index.mjs +33 -15
  95. package/login/index.mjs +1 -1
  96. package/nav-bar/index.mjs +31 -15
  97. package/package.json +1 -1
  98. package/page/index.mjs +20 -12
  99. package/page-header/index.mjs +34 -13
  100. package/page-index-top/index.mjs +53 -100
  101. package/page-skeleton/index.mjs +35 -18
  102. package/page-skeleton-new/index.mjs +15 -16
  103. package/pageable-table/index.mjs +228 -86
  104. package/pageable-view/index.mjs +1 -1
  105. package/present-view/index.mjs +71 -75
  106. package/record-video/index.mjs +1 -1
  107. package/resize-observer/index.mjs +29 -21
  108. package/search/index.mjs +9 -9
  109. package/search-popover/index.mjs +1 -1
  110. package/sign/index.mjs +1 -1
  111. package/split-pane/index.mjs +45 -40
  112. package/swiper/index.mjs +13 -14
  113. package/table-view/index.mjs +97 -631
  114. package/text-ellipsis/index.mjs +1 -1
  115. package/tinymce-editor/index.mjs +63 -63
  116. package/toolbar/index.mjs +208 -15
  117. package/toolbar-button/index.mjs +56 -30
  118. package/verify/index.mjs +1 -1
  119. package/watermark/index.mjs +1 -1
  120. package/web-types.json +1 -85
  121. package/x-input-tag/index.mjs +118 -49
  122. package/chunks/CountUp.f1a19f35.mjs +0 -124
  123. package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +0 -8
  124. package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +0 -32
  125. package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +0 -356
  126. package/chunks/ElementDialog.d8f3105c.mjs +0 -211
  127. package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +0 -95
  128. package/chunks/EmptyView.e2430422.mjs +0 -51
  129. package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +0 -23
  130. package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +0 -37
  131. package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +0 -65
  132. package/chunks/FormItem.2920ac0c.mjs +0 -45
  133. package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +0 -258
  134. package/chunks/FormItemGroup.41daddb6.mjs +0 -64
  135. package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +0 -155
  136. package/chunks/FyCurd.8acd2983.mjs +0 -548
  137. package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +0 -2945
  138. package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +0 -47
  139. package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +0 -151
  140. package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +0 -22
  141. package/chunks/FyForm.0294e494.mjs +0 -439
  142. package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +0 -737
  143. package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +0 -93
  144. package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +0 -56
  145. package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +0 -158
  146. package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +0 -39
  147. package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +0 -102
  148. package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +0 -41
  149. package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +0 -15
  150. package/chunks/IconTemp.42c48e1f.mjs +0 -32
  151. package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +0 -23
  152. package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +0 -172
  153. package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +0 -23
  154. package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +0 -21
  155. package/chunks/Page.81f4b8d9.mjs +0 -32
  156. package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +0 -13
  157. package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +0 -26
  158. package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +0 -88
  159. package/chunks/PageableTable.333cbdc1.mjs +0 -335
  160. package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +0 -148
  161. package/chunks/ResizeObserver.60f728f0.mjs +0 -54
  162. package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +0 -13
  163. package/chunks/TableColumn.8503272e.mjs +0 -106
  164. package/chunks/Toolbar.5c539dbb.mjs +0 -24
  165. package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +0 -275
  166. package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +0 -31
  167. package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +0 -74
  168. package/color-picker/index.mjs +0 -296
@@ -1,74 +0,0 @@
1
- import i from "element-ui/lib/button";
2
- import l from "element-ui/lib/input";
3
- import u from "element-ui/lib/tag";
4
- var c = function() {
5
- var e = this, s = e.$createElement, t = e._self._c || s;
6
- return t("div", {
7
- staticClass: "x-input-tag"
8
- }, [e.tags && e.tags.length && e.tags[0] ? e._l(e.tags, function(n, a) {
9
- return t(u, {
10
- key: n.id || n,
11
- attrs: {
12
- size: "medium",
13
- "disable-transitions": "",
14
- closable: !e.inputDisabled
15
- },
16
- on: {
17
- close: function(r) {
18
- return e.handleClose(n, a);
19
- }
20
- }
21
- }, [e._v(" " + e._s(n.name || n) + " ")]);
22
- }) : e.inputDisabled ? [t("span", {
23
- staticStyle: {
24
- color: "#b5b5b5"
25
- }
26
- }, [e._v("无")])] : e._e(), e.inputDisabled ? e._e() : t(l, {
27
- directives: [{
28
- name: "show",
29
- rawName: "v-show",
30
- value: e.inputVisible,
31
- expression: "inputVisible"
32
- }],
33
- ref: "saveTagInput",
34
- staticClass: "input-new-tag",
35
- attrs: {
36
- size: "mini"
37
- },
38
- on: {
39
- blur: e.handleInputConfirm
40
- },
41
- nativeOn: {
42
- keyup: function(n) {
43
- return !n.type.indexOf("key") && e._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : e.handleInputConfirm.apply(null, arguments);
44
- }
45
- },
46
- model: {
47
- value: e.inputValue,
48
- callback: function(n) {
49
- e.inputValue = n;
50
- },
51
- expression: "inputValue"
52
- }
53
- }), !e.inputDisabled && !e.inputVisible ? t(i, {
54
- directives: [{
55
- name: "show",
56
- rawName: "v-show",
57
- value: e.tags.length < e.maxTag,
58
- expression: "tags.length < maxTag"
59
- }],
60
- staticClass: "button-new-tag",
61
- attrs: {
62
- size: "mini"
63
- },
64
- on: {
65
- click: e.showInput
66
- }
67
- }, [e._v(" + 添加 ")]) : e._e(), e.count ? t("span", {
68
- staticClass: "tags-count"
69
- }, [e._v(e._s(e.tags.length && e.tags[0] ? e.tags.length : ""))]) : e._e()], 2);
70
- }, m = [];
71
- export {
72
- c as r,
73
- m as s
74
- };
@@ -1,296 +0,0 @@
1
- var a = (e, t, o) => new Promise((r, s) => {
2
- var m = (i) => {
3
- try {
4
- n(o.next(i));
5
- } catch (l) {
6
- s(l);
7
- }
8
- }, h = (i) => {
9
- try {
10
- n(o.throw(i));
11
- } catch (l) {
12
- s(l);
13
- }
14
- }, n = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(m, h);
15
- n((o = o.apply(e, t)).next());
16
- });
17
- import f from "element-ui/packages/color-picker/src/color";
18
- import _ from "element-ui/src/utils/clickoutside";
19
- import v from "element-ui/packages/color-picker/src/components/sv-panel";
20
- import k from "element-ui/packages/color-picker/src/components/hue-slider";
21
- import w from "element-ui/packages/color-picker/src/components/alpha-slider";
22
- import C from "element-ui/packages/color-picker/src/components/predefine";
23
- import $ from "element-ui/src/utils/vue-popper";
24
- import y from "element-ui/src/mixins/locale";
25
- import c from "element-ui/lib/button";
26
- import P from "element-ui/lib/input";
27
- import { n as d } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
28
- var x = function() {
29
- var e = this, t = e.$createElement, o = e._self._c || t;
30
- return o("Transition", {
31
- attrs: {
32
- name: "el-zoom-in-top"
33
- },
34
- on: {
35
- "after-leave": e.doDestroy
36
- }
37
- }, [o("div", {
38
- directives: [{
39
- name: "show",
40
- rawName: "v-show",
41
- value: e.showPopper,
42
- expression: "showPopper"
43
- }],
44
- staticClass: "el-color-dropdown"
45
- }, [o("div", {
46
- staticClass: "el-color-dropdown__main-wrapper"
47
- }, [o("HueSlider", {
48
- ref: "hue",
49
- staticStyle: {
50
- float: "right"
51
- },
52
- attrs: {
53
- color: e.color,
54
- vertical: ""
55
- }
56
- }), o("SvPanel", {
57
- ref: "sl",
58
- attrs: {
59
- color: e.color
60
- }
61
- })], 1), e.showAlpha ? o("AlphaSlider", {
62
- ref: "alpha",
63
- attrs: {
64
- color: e.color
65
- }
66
- }) : e._e(), e.predefine ? o("Predefine", {
67
- attrs: {
68
- color: e.color,
69
- colors: e.predefine
70
- }
71
- }) : e._e(), o("div", {
72
- staticClass: "el-color-dropdown__btns"
73
- }, [o("span", {
74
- staticClass: "el-color-dropdown__value"
75
- }, [o(P, {
76
- attrs: {
77
- "validate-event": !1,
78
- size: "mini"
79
- },
80
- on: {
81
- blur: e.handleConfirm
82
- },
83
- nativeOn: {
84
- keyup: function(r) {
85
- return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : e.handleConfirm.apply(null, arguments);
86
- }
87
- },
88
- model: {
89
- value: e.customInput,
90
- callback: function(r) {
91
- e.customInput = r;
92
- },
93
- expression: "customInput"
94
- }
95
- })], 1), o(c, {
96
- staticClass: "el-color-dropdown__link-btn",
97
- attrs: {
98
- size: "mini",
99
- type: "text"
100
- },
101
- on: {
102
- click: function(r) {
103
- return e.$emit("clear");
104
- }
105
- }
106
- }, [e._v(" " + e._s(e.t("el.colorpicker.clear")) + " ")]), o(c, {
107
- staticClass: "el-color-dropdown__btn",
108
- attrs: {
109
- plain: "",
110
- size: "mini"
111
- },
112
- on: {
113
- click: e.confirmValue
114
- }
115
- }, [e._v(" " + e._s(e.t("el.colorpicker.confirm")) + " ")])], 1)], 1)]);
116
- }, b = [];
117
- const S = {
118
- name: "ElColorPickerDropdown",
119
- components: {
120
- SvPanel: v,
121
- HueSlider: k,
122
- AlphaSlider: w,
123
- Predefine: C
124
- },
125
- mixins: [$, y],
126
- props: {
127
- color: {
128
- type: Object,
129
- required: !0
130
- },
131
- showAlpha: Boolean,
132
- predefine: Array
133
- },
134
- data() {
135
- return {
136
- customInput: ""
137
- };
138
- },
139
- computed: {
140
- currentColor() {
141
- const e = this.$parent;
142
- return !e.value && !e.showPanelColor ? "" : e.color.value;
143
- }
144
- },
145
- watch: {
146
- showPopper(e) {
147
- e === !0 && this.$nextTick(() => {
148
- const { sl: t, hue: o, alpha: r } = this.$refs;
149
- t && t.update(), o && o.update(), r && r.update();
150
- });
151
- },
152
- currentColor: {
153
- immediate: !0,
154
- handler(e) {
155
- this.customInput = e;
156
- }
157
- }
158
- },
159
- mounted() {
160
- this.$parent.popperElm = this.popperElm = this.$el, this.referenceElm = this.$parent.$el;
161
- },
162
- methods: {
163
- confirmValue() {
164
- this.$emit("pick");
165
- },
166
- handleConfirm() {
167
- this.color.fromString(this.customInput);
168
- }
169
- }
170
- }, p = {};
171
- var O = /* @__PURE__ */ d(
172
- S,
173
- x,
174
- b,
175
- !1,
176
- g,
177
- null,
178
- null,
179
- null
180
- );
181
- function g(e) {
182
- for (let t in p)
183
- this[t] = p[t];
184
- }
185
- const E = /* @__PURE__ */ function() {
186
- return O.exports;
187
- }();
188
- var I = function() {
189
- var e = this, t = e.$createElement, o = e._self._c || t;
190
- return o(E, {
191
- directives: [{
192
- name: "clickoutside",
193
- rawName: "v-clickoutside",
194
- value: e.onClickOutside,
195
- expression: "onClickOutside"
196
- }],
197
- ref: "dropdown",
198
- class: ["el-color-picker__panel", e.popperClass || ""],
199
- attrs: {
200
- offset: e.offset,
201
- "append-to-body": e.appendToBody,
202
- color: e.color,
203
- predefine: e.predefine
204
- },
205
- on: {
206
- pick: e.confirmValue,
207
- clear: e.clearValue
208
- },
209
- model: {
210
- value: e.showPicker,
211
- callback: function(r) {
212
- e.showPicker = r;
213
- },
214
- expression: "showPicker"
215
- }
216
- });
217
- }, A = [];
218
- const B = {
219
- name: "ColorPicker",
220
- directives: { Clickoutside: _ },
221
- props: {
222
- popperClass: String,
223
- predefine: Array,
224
- visible: Boolean,
225
- hideOnClickOutside: {
226
- type: Boolean,
227
- default: !0
228
- },
229
- value: String,
230
- offset: Number,
231
- anchor: HTMLElement,
232
- appendToBody: {
233
- type: Boolean,
234
- default: !0
235
- }
236
- },
237
- data() {
238
- return {
239
- color: new f({ enableAlpha: !1 }),
240
- showPicker: !1
241
- };
242
- },
243
- watch: {
244
- value: {
245
- immediate: !0,
246
- handler(e) {
247
- e && e !== this.color.value && this.color.fromString(e);
248
- }
249
- },
250
- visible: {
251
- immediate: !0,
252
- handler(e) {
253
- return a(this, null, function* () {
254
- e ? (yield this.$nextTick(), this.$refs.dropdown.referenceElm = this.anchor) : this.$refs.dropdown && this.$refs.dropdown.doDestroy(!0), this.showPicker = e;
255
- });
256
- }
257
- }
258
- },
259
- methods: {
260
- confirmValue() {
261
- this.emitInput(this.color), this.$emit("pick", this.color.value), this.hide();
262
- },
263
- clearValue() {
264
- this.$emit("clear"), this.hide();
265
- },
266
- emitInput(e) {
267
- this.$emit("input", e.value);
268
- },
269
- onClickOutside() {
270
- this.hideOnClickOutside && this.hide();
271
- },
272
- hide() {
273
- this.$emit("update:visible", !1);
274
- }
275
- }
276
- }, u = {};
277
- var T = /* @__PURE__ */ d(
278
- B,
279
- I,
280
- A,
281
- !1,
282
- z,
283
- null,
284
- null,
285
- null
286
- );
287
- function z(e) {
288
- for (let t in u)
289
- this[t] = u[t];
290
- }
291
- const K = /* @__PURE__ */ function() {
292
- return T.exports;
293
- }();
294
- export {
295
- K as default
296
- };