@web-utils/component 3.8.3 → 4.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 (211) hide show
  1. package/awesome-button/index.mjs +25 -55
  2. package/base.css +1 -1
  3. package/card/index.mjs +13 -13
  4. package/card/style.css +1 -1
  5. package/carousel/style.css +1 -1
  6. package/chat/index.mjs +2 -2
  7. package/chat/style.css +1 -1
  8. package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
  9. package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
  10. package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
  11. package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
  12. package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
  13. package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
  14. package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
  15. package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
  16. package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
  17. package/chunks/configComponents.BDhlZU8F.mjs +23 -0
  18. package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
  19. package/chunks/core.DJEgjQW6.mjs +54 -0
  20. package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
  21. package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
  22. package/chunks/dictionary.DqiP9x2m.mjs +25 -0
  23. package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/form-input.B8z37eqj.mjs +31 -0
  25. package/chunks/form-item.D-H-wCPE.mjs +233 -0
  26. package/chunks/form-validate.CVarNHKX.mjs +12 -0
  27. package/chunks/helper.BiMLcEEk.mjs +41 -0
  28. package/chunks/index.9OxHjTIE.mjs +16 -0
  29. package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
  30. package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
  31. package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
  32. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  33. package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
  34. package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
  35. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  36. package/color-picker/index.mjs +19 -37
  37. package/comment/style.css +1 -1
  38. package/confirm-button/index.mjs +1 -1
  39. package/confirmable/index.mjs +1 -1
  40. package/context-menu/style.css +1 -1
  41. package/count-up/index.mjs +13 -24
  42. package/custom-scrollbar/index.mjs +1 -2
  43. package/data-operatext/style.css +1 -1
  44. package/data-panel/style.css +1 -1
  45. package/data-pay/style.css +1 -1
  46. package/data-price/style.css +1 -1
  47. package/data-rotate/style.css +1 -1
  48. package/data-table-picker/index.mjs +1 -1
  49. package/data-tabs/style.css +1 -1
  50. package/dialog-form/index.mjs +16 -28
  51. package/dynamic-table/style.css +1 -1
  52. package/easy-popup/index.mjs +22 -40
  53. package/easy-popup/style.css +1 -1
  54. package/editable-tree/index.mjs +203 -250
  55. package/editable-tree/style.css +1 -1
  56. package/element-dialog/index.mjs +30 -52
  57. package/element-dialog/style.css +1 -1
  58. package/flex-column/index.mjs +13 -25
  59. package/flex-item/index.mjs +15 -27
  60. package/flex-row/index.mjs +13 -25
  61. package/flow/index.mjs +30 -32
  62. package/flow-designer/index.mjs +344 -375
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +64 -91
  66. package/form-block/index.mjs +33 -26
  67. package/form-card/index.mjs +25 -0
  68. package/form-cascader/index.mjs +70 -67
  69. package/form-checkbox/index.mjs +71 -0
  70. package/form-checkbox-group/index.mjs +33 -53
  71. package/form-date-picker/index.mjs +44 -73
  72. package/form-holder/index.mjs +60 -64
  73. package/form-holder/style.css +1 -0
  74. package/form-input/index.mjs +62 -40
  75. package/form-input-cron-expression/index.mjs +77 -0
  76. package/form-input-cron-expression/style.css +1 -0
  77. package/form-input-email/index.mjs +21 -33
  78. package/form-input-id-card/index.mjs +25 -38
  79. package/form-input-number/index.mjs +39 -42
  80. package/form-input-number/style.css +1 -1
  81. package/form-input-phone-number/index.mjs +26 -37
  82. package/form-input-tag/index.mjs +32 -34
  83. package/form-input-time/index.mjs +22 -37
  84. package/form-item/index.mjs +109 -101
  85. package/form-item/style.css +1 -1
  86. package/form-item-config-provider/index.mjs +18 -10
  87. package/form-item-group/index.mjs +73 -69
  88. package/form-item-group/style.css +1 -1
  89. package/form-radio-group/index.mjs +41 -36
  90. package/form-radio-group/style.css +1 -1
  91. package/form-select/index.mjs +142 -75
  92. package/form-select/style.css +1 -0
  93. package/form-switch/index.mjs +29 -34
  94. package/form-table/index.mjs +85 -0
  95. package/form-table-plus/index.mjs +109 -0
  96. package/form-textarea/index.mjs +23 -35
  97. package/form-tree-select/index.mjs +72 -0
  98. package/form-tree-select/style.css +1 -0
  99. package/form-tree-select-multiple/index.mjs +78 -0
  100. package/form-view/index.mjs +43 -77
  101. package/form-view/style.css +1 -1
  102. package/fy-array/index.mjs +2 -2
  103. package/fy-cascader/index.mjs +1 -1
  104. package/fy-checkbox/index.mjs +1 -1
  105. package/fy-code/index.mjs +1 -1
  106. package/fy-curd/index.mjs +12 -17
  107. package/fy-curd/style.css +1 -1
  108. package/fy-date/index.mjs +1 -1
  109. package/fy-draggable/index.mjs +5 -7
  110. package/fy-draggable/style.css +1 -1
  111. package/fy-dynamic/index.mjs +14 -16
  112. package/fy-empty/index.mjs +1 -1
  113. package/fy-empty/style.css +1 -1
  114. package/fy-form/index.mjs +117 -136
  115. package/fy-form/style.css +1 -1
  116. package/fy-form-design/index.mjs +319 -345
  117. package/fy-form-design/style.css +1 -1
  118. package/fy-input/index.mjs +2 -2
  119. package/fy-input-color/index.mjs +1 -1
  120. package/fy-input-icon/index.mjs +1 -1
  121. package/fy-input-map/index.mjs +21 -26
  122. package/fy-input-map/style.css +1 -1
  123. package/fy-input-number/index.mjs +1 -1
  124. package/fy-input-table/index.mjs +10 -12
  125. package/fy-input-tree/index.mjs +1 -1
  126. package/fy-radio/index.mjs +1 -1
  127. package/fy-rate/index.mjs +1 -1
  128. package/fy-select/index.mjs +4 -4
  129. package/fy-slider/index.mjs +2 -2
  130. package/fy-switch/index.mjs +1 -1
  131. package/fy-tabs/index.mjs +0 -1
  132. package/fy-time/index.mjs +1 -1
  133. package/fy-title/index.mjs +1 -1
  134. package/fy-tree/index.mjs +1 -1
  135. package/fy-u-editor/index.mjs +77 -103
  136. package/fy-upload/index.mjs +3 -3
  137. package/fy-upload/style.css +1 -1
  138. package/highlight-j-s/index.mjs +1 -1
  139. package/highlight-j-s/style.css +1 -1
  140. package/image-cropper/index.mjs +14 -65
  141. package/image-preview/index.mjs +17 -45
  142. package/image-preview/style.css +1 -1
  143. package/image-viewer/style.css +1 -1
  144. package/index.mjs +666 -496
  145. package/input-number/index.mjs +64 -9
  146. package/keyboard/style.css +1 -1
  147. package/license/index.mjs +1 -1
  148. package/login/index.mjs +1 -1
  149. package/monaco-editor/index.mjs +44 -74
  150. package/name-avatar/style.css +1 -1
  151. package/package.json +18 -17
  152. package/page-index/index.mjs +30 -54
  153. package/page-index-top/index.mjs +25 -47
  154. package/pageable-table/index.mjs +354 -226
  155. package/pageable-table/style.css +1 -1
  156. package/pageable-view/index.mjs +63 -106
  157. package/photo-swipe/index.mjs +51 -74
  158. package/picker-table-view/index.mjs +117 -0
  159. package/present-view/index.mjs +43 -77
  160. package/present-view/style.css +1 -1
  161. package/record-video/index.mjs +1 -1
  162. package/resize-observer/index.mjs +1 -1
  163. package/resize-observer/style.css +1 -1
  164. package/search/index.mjs +2 -2
  165. package/search/style.css +1 -1
  166. package/search-popover/index.mjs +28 -48
  167. package/search-popover/style.css +1 -1
  168. package/sign/index.mjs +2 -2
  169. package/sign-panel/style.css +1 -1
  170. package/skeleton-panel/index.mjs +38 -0
  171. package/skeleton-panel/style.css +1 -0
  172. package/split-pane/index.mjs +31 -49
  173. package/split-pane/style.css +1 -1
  174. package/sub-table/index.mjs +206 -0
  175. package/sub-table/style.css +1 -0
  176. package/sub-table-plus/index.mjs +231 -0
  177. package/sub-table-plus/style.css +1 -0
  178. package/swiper/index.mjs +18 -38
  179. package/swiper/style.css +1 -1
  180. package/tab/index.mjs +1 -1
  181. package/tab/style.css +1 -1
  182. package/tab-item/index.mjs +2 -2
  183. package/table-column/index.mjs +112 -37
  184. package/table-column/style.css +1 -0
  185. package/table-view/index.mjs +178 -135
  186. package/table-view/style.css +1 -1
  187. package/tabs-view/index.mjs +104 -0
  188. package/tabs-view/style.css +1 -0
  189. package/tag-render/index.mjs +13 -24
  190. package/text-ellipsis/index.mjs +1 -1
  191. package/toolbar/index.mjs +115 -58
  192. package/toolbar/style.css +1 -1
  193. package/toolbar-button/index.mjs +92 -48
  194. package/verify/index.mjs +1 -1
  195. package/vue-cron/index.mjs +48 -66
  196. package/vue-qr-code/index.mjs +14 -32
  197. package/vue-quill-editor/index.mjs +3 -3
  198. package/vue-tags-input/index.mjs +1 -1
  199. package/vue-tree-select/index.mjs +352 -393
  200. package/vue-tree-select/style.css +1 -1
  201. package/vue-video-player/index.mjs +36 -67
  202. package/watermark/index.mjs +21 -31
  203. package/web-types.json +9240 -3843
  204. package/x-input-tag/index.mjs +29 -61
  205. package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
  206. package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
  207. package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
  208. package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
  209. package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
  210. package/toolbar-button/style.css +0 -1
  211. /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
@@ -1,33 +1,5 @@
1
- var g = Object.defineProperty, f = Object.defineProperties;
2
- var b = Object.getOwnPropertyDescriptors;
3
- var p = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var h = (a, t, e) => t in a ? g(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, d = (a, t) => {
6
- for (var e in t || (t = {}))
7
- _.call(t, e) && h(a, e, t[e]);
8
- if (p)
9
- for (var e of p(t))
10
- v.call(t, e) && h(a, e, t[e]);
11
- return a;
12
- }, m = (a, t) => f(a, b(t));
13
- var u = (a, t, e) => new Promise((s, n) => {
14
- var o = (i) => {
15
- try {
16
- l(e.next(i));
17
- } catch (r) {
18
- n(r);
19
- }
20
- }, c = (i) => {
21
- try {
22
- l(e.throw(i));
23
- } catch (r) {
24
- n(r);
25
- }
26
- }, l = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, c);
27
- l((e = e.apply(a, t)).next());
28
- });
29
- import { n as y } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
30
- const V = {
1
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const l = {
31
3
  name: "XInputTag",
32
4
  inject: {
33
5
  elForm: {
@@ -75,7 +47,7 @@ const V = {
75
47
  get() {
76
48
  var a, t;
77
49
  if (this.arrayMode)
78
- return (a = this.value) != null && a.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e : m(d({}, e), { id: Math.random() })) : this.value : [];
50
+ return (a = this.value) != null && a.length ? this.objectMode ? this.value.map((e) => e.id > 0 ? e : { ...e, id: Math.random() }) : this.value : [];
79
51
  {
80
52
  const e = ((t = this.value) == null ? void 0 : t.split(this.separator)) || [];
81
53
  return e.length && e[0] ? e.map((s) => this.objectMode ? { name: s, id: Math.random() } : s) : [];
@@ -84,56 +56,52 @@ const V = {
84
56
  }
85
57
  },
86
58
  methods: {
87
- showInput() {
88
- return u(this, null, function* () {
89
- this.inputVisible = !0, yield this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
90
- });
59
+ async showInput() {
60
+ this.inputVisible = !0, await this.$nextTick(), this.$refs.saveTagInput.$refs.input.focus();
91
61
  },
92
62
  handleClose(a) {
93
63
  const t = this.tags.filter((e) => e !== a);
94
64
  this.$emit("input", this.arrayMode ? t : t.map((e) => e.name || e).join(this.separator));
95
65
  },
96
- handleInputConfirm() {
97
- return u(this, null, function* () {
98
- var t;
99
- if (this.tags.length >= this.maxTag) {
100
- this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
66
+ async handleInputConfirm() {
67
+ var t;
68
+ if (this.tags.length >= this.maxTag) {
69
+ this.$message.warning({ message: "标签已达上限,请删除一些标签再添加!", showClose: !0 }), this.inputVisible = !1, this.inputValue = "";
70
+ return;
71
+ }
72
+ const a = this.inputValue;
73
+ if (a) {
74
+ if (this.tags.some((s) => (s.name || s) === a)) {
75
+ this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
101
76
  return;
102
77
  }
103
- const a = this.inputValue;
104
- if (a) {
105
- if (this.tags.some((s) => (s.name || s) === a)) {
106
- this.inputVisible = !1, this.inputValue = "", this.$message.warning({ message: "标签已存在!", showClose: !0 });
107
- return;
108
- }
109
- const e = [...this.tags];
110
- e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((s) => s.name || s).join(this.separator)), yield this.$nextTick(), (t = this.elFormItem) == null || t.clearValidate();
111
- }
112
- this.inputVisible = !1, this.inputValue = "";
113
- });
78
+ const e = [...this.tags];
79
+ e.push(this.objectMode ? { id: Date.now(), name: this.inputValue } : this.inputValue), this.$emit("input", this.arrayMode ? e : e.map((s) => s.name || s).join(this.separator)), await this.$nextTick(), (t = this.elFormItem) == null || t.clearValidate();
80
+ }
81
+ this.inputVisible = !1, this.inputValue = "";
114
82
  }
115
83
  }
116
84
  };
117
- var w = function() {
85
+ var r = function() {
118
86
  var t = this, e = t._self._c;
119
- return e("div", { staticClass: "x-input-tag" }, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(s, n) {
120
- return e("ElTag", { key: s.id || s, attrs: { size: "medium", "disable-transitions": "", closable: !t.inputDisabled }, on: { close: function(o) {
121
- return t.handleClose(s, n);
87
+ return e("div", { staticClass: "x-input-tag" }, [t.tags && t.tags.length && t.tags[0] ? t._l(t.tags, function(s, i) {
88
+ return e("ElTag", { key: s.id || s, attrs: { size: "medium", "disable-transitions": "", closable: !t.inputDisabled }, on: { close: function(p) {
89
+ return t.handleClose(s, i);
122
90
  } } }, [t._v(" " + t._s(s.name || s) + " ")]);
123
91
  }) : t.inputDisabled ? [e("span", { staticStyle: { color: "#b5b5b5" } }, [t._v("无")])] : t._e(), t.inputDisabled ? t._e() : e("ElInput", { directives: [{ name: "show", rawName: "v-show", value: t.inputVisible, expression: "inputVisible" }], ref: "saveTagInput", staticClass: "input-new-tag", attrs: { size: "mini" }, on: { blur: t.handleInputConfirm }, nativeOn: { keyup: function(s) {
124
92
  return !s.type.indexOf("key") && t._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : t.handleInputConfirm.apply(null, arguments);
125
93
  } }, model: { value: t.inputValue, callback: function(s) {
126
94
  t.inputValue = s;
127
95
  }, expression: "inputValue" } }), !t.inputDisabled && !t.inputVisible ? e("ElButton", { directives: [{ name: "show", rawName: "v-show", value: t.tags.length < t.maxTag, expression: "tags.length < maxTag" }], staticClass: "button-new-tag", attrs: { size: "mini" }, on: { click: t.showInput } }, [t._v(" + 添加 ")]) : t._e(), t.count ? e("span", { staticClass: "tags-count" }, [t._v(t._s(t.tags.length && t.tags[0] ? t.tags.length : ""))]) : t._e()], 2);
128
- }, x = [], C = /* @__PURE__ */ y(
129
- V,
130
- w,
131
- x,
96
+ }, u = [], o = /* @__PURE__ */ n(
97
+ l,
98
+ r,
99
+ u,
132
100
  !1,
133
101
  null,
134
102
  null
135
103
  );
136
- const k = C.exports;
104
+ const d = o.exports;
137
105
  export {
138
- k as default
106
+ d as default
139
107
  };
@@ -1,114 +0,0 @@
1
- var C = Object.defineProperty, D = Object.defineProperties;
2
- var F = Object.getOwnPropertyDescriptors;
3
- var b = Object.getOwnPropertySymbols;
4
- var I = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var T = (e, t, i) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, S = (e, t) => {
6
- for (var i in t || (t = {}))
7
- I.call(t, i) && T(e, i, t[i]);
8
- if (b)
9
- for (var i of b(t))
10
- L.call(t, i) && T(e, i, t[i]);
11
- return e;
12
- }, w = (e, t) => D(e, F(t));
13
- var v = (e, t, i) => new Promise((r, n) => {
14
- var o = (a) => {
15
- try {
16
- f(i.next(a));
17
- } catch (l) {
18
- n(l);
19
- }
20
- }, c = (a) => {
21
- try {
22
- f(i.throw(a));
23
- } catch (l) {
24
- n(l);
25
- }
26
- }, f = (a) => a.done ? r(a.value) : Promise.resolve(a.value).then(o, c);
27
- f((i = i.apply(e, t)).next());
28
- });
29
- import B from "element-ui/lib/loading";
30
- import k from "element-ui/lib/message-box";
31
- import { isFunction as s } from "@web-utils/core";
32
- function P(e, t, i) {
33
- return v(this, null, function* () {
34
- const { stop: r, prevent: n, message: o, loadable: c, loadingText: f, confirmable: a, confirmType: l, confirmText: h, confirmTitle: M } = t;
35
- r && e.stopPropagation(), n && e.preventDefault();
36
- const { before: g, click: m, cancel: p, after: d } = i;
37
- if (s(m))
38
- try {
39
- let u = !0;
40
- if (s(g) && (u = yield g(e)), u === !1)
41
- return;
42
- a && (yield (k.confirm || k.default.confirm)(o || h, {
43
- type: l,
44
- title: M
45
- }));
46
- let y;
47
- c && (y = (B.service || B.default.service)({
48
- background: "rgba(0,0,0,0.3)",
49
- text: f
50
- }));
51
- let x;
52
- try {
53
- x = yield m(e);
54
- } catch (j) {
55
- }
56
- c && y.close(), s(d) && (yield d(e, x));
57
- } catch (u) {
58
- s(p) && (yield p(u));
59
- }
60
- });
61
- }
62
- const G = {
63
- functional: !0,
64
- props: {
65
- stop: {
66
- type: Boolean,
67
- default: !0
68
- },
69
- prevent: {
70
- type: Boolean,
71
- default: !0
72
- },
73
- text: {
74
- type: String,
75
- default: ""
76
- },
77
- message: String,
78
- confirmable: {
79
- type: Boolean,
80
- default: !0
81
- },
82
- confirmText: {
83
- type: String,
84
- default: "你确定要删除该记录吗?"
85
- },
86
- confirmType: {
87
- type: String,
88
- default: "warning"
89
- },
90
- confirmTitle: String,
91
- loadable: Boolean,
92
- loadingText: {
93
- type: String,
94
- default: "正在处理中请稍候..."
95
- },
96
- tag: {
97
- type: String,
98
- default: "i"
99
- }
100
- },
101
- render(e, { props: t, data: i, children: r, listeners: n }) {
102
- return e(
103
- t.tag,
104
- w(S({}, i), {
105
- on: { click: (o) => P(o, t, n) },
106
- props: t
107
- }),
108
- r || t.text
109
- );
110
- }
111
- };
112
- export {
113
- G as c
114
- };
@@ -1,24 +0,0 @@
1
- import { f as e } from "./form-item-mixin.CG4ZwzMC.mjs";
2
- import { d as r } from "./index.MAFc4eFi.mjs";
3
- const o = {
4
- mixins: [e],
5
- props: {
6
- value: [Boolean, String, Array, Number, Object, Date],
7
- readonly: Boolean,
8
- disabled: Boolean
9
- },
10
- computed: {
11
- computePlaceholder() {
12
- return this.placeholder === !0 ? this.message : this.placeholder;
13
- },
14
- listeners() {
15
- return r(this.$listeners, "input", !1);
16
- },
17
- inputDisabled() {
18
- return this.disabled;
19
- }
20
- }
21
- };
22
- export {
23
- o as f
24
- };
@@ -1,140 +0,0 @@
1
- var m = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var f = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var i = (e, r, t) => r in e ? m(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, s = (e, r) => {
5
- for (var t in r || (r = {}))
6
- f.call(r, t) && i(e, t, r[t]);
7
- if (l)
8
- for (var t of l(r))
9
- c.call(r, t) && i(e, t, r[t]);
10
- return e;
11
- };
12
- import { d as o } from "./index.MAFc4eFi.mjs";
13
- import a from "element-ui/lib/col";
14
- import u from "element-ui/lib/form-item";
15
- const d = ["span"], n = [...Object.keys(a.props || a.default.props)], h = n.filter((e) => !d.includes(e)), b = ["label", "prop", "rules", "labelWidth", "required"], p = [...Object.keys(u.props || u.default.props)], g = p.filter((e) => !b.includes(e)), y = [
16
- "wrapCol",
17
- "wrapFormItem",
18
- "unwrap",
19
- "prefixConfig",
20
- "block",
21
- "placeholder",
22
- "prefixPick",
23
- "half",
24
- ...n,
25
- ...p
26
- ], C = {
27
- inject: {
28
- elForm: {
29
- default: {}
30
- },
31
- formItemGroup: {
32
- default: {}
33
- }
34
- },
35
- props: {
36
- disabled: Boolean,
37
- wrapCol: {
38
- type: Boolean,
39
- default: !0
40
- },
41
- wrapFormItem: {
42
- type: Boolean,
43
- default: !0
44
- },
45
- unwrap: Boolean,
46
- half: Boolean,
47
- prefixConfig: Boolean,
48
- block: Boolean,
49
- placeholder: {
50
- type: [Boolean, String],
51
- default: !0
52
- },
53
- formItemClass: String,
54
- prefixPick: Boolean,
55
- // el-form-item
56
- label: String,
57
- labelWidth: String,
58
- prop: String,
59
- required: Boolean,
60
- rules: [Object, Array],
61
- error: String,
62
- validateStatus: String,
63
- for: String,
64
- inlineMessage: {
65
- type: [String, Boolean],
66
- default: ""
67
- },
68
- showMessage: {
69
- type: Boolean,
70
- default: !0
71
- },
72
- size: String,
73
- // el-col
74
- span: {
75
- type: Number,
76
- default: 12
77
- },
78
- tag: {
79
- type: String,
80
- default: "div"
81
- },
82
- offset: Number,
83
- pull: Number,
84
- push: Number,
85
- xs: [Number, Object],
86
- sm: [Number, Object],
87
- md: [Number, Object],
88
- lg: [Number, Object],
89
- xl: [Number, Object]
90
- },
91
- computed: {
92
- prefix() {
93
- return this.prefixConfig ? "请配置" : this.prefixPick ? "请选择" : "请输入";
94
- },
95
- message() {
96
- var e;
97
- return `${this.prefix}${((e = this.label) == null ? void 0 : e.replace(":", "")) || ""}`;
98
- },
99
- computeRules() {
100
- const e = [...this.rules || []];
101
- if (this.required) {
102
- const r = e.find((t) => t.required);
103
- r ? r.ref ? r.label = r.label || this.label : r.message = e.message || this.message : e.unshift(this.getRequireRule());
104
- }
105
- return e.concat(this.getRules());
106
- },
107
- computeSpan() {
108
- return this.block ? 24 : this.span;
109
- },
110
- formItemProps() {
111
- return o(s(s({}, this.$props), this.$attrs), y);
112
- },
113
- elFormItemProps() {
114
- return o(s(s({}, this.$props), this.$attrs), g);
115
- },
116
- elColProps() {
117
- return o(s(s({}, this.$props), this.$attrs), h);
118
- }
119
- },
120
- watch: {
121
- computeRules() {
122
- var e, r;
123
- (r = (e = this.elForm) == null ? void 0 : e.clearValidate) == null || r.call(e, this.prop);
124
- }
125
- },
126
- methods: {
127
- getRules() {
128
- return [];
129
- },
130
- getRequireRule() {
131
- return {
132
- required: !0,
133
- message: this.message
134
- };
135
- }
136
- }
137
- };
138
- export {
139
- C as f
140
- };
@@ -1,60 +0,0 @@
1
- const t = {
2
- props: {
3
- suffixIcon: {
4
- type: String
5
- },
6
- prefixIcon: {
7
- type: String
8
- },
9
- step: {
10
- type: Number,
11
- default: 1
12
- },
13
- stepStrictly: {
14
- type: Boolean,
15
- default: !1
16
- },
17
- max: {
18
- type: Number,
19
- default: 1 / 0
20
- },
21
- min: {
22
- type: Number,
23
- default: -1 / 0
24
- },
25
- value: {
26
- type: [Number, String]
27
- },
28
- disabled: Boolean,
29
- size: {
30
- type: String
31
- },
32
- controls: {
33
- type: Boolean,
34
- default: !0
35
- },
36
- controlsPosition: {
37
- type: String,
38
- default: ""
39
- },
40
- name: {
41
- type: String
42
- },
43
- label: {
44
- type: String
45
- },
46
- placeholder: {
47
- type: String
48
- },
49
- precision: {
50
- type: Number,
51
- default: void 0,
52
- validator(e) {
53
- return e >= 0 && e === parseInt(e, 10);
54
- }
55
- }
56
- }
57
- };
58
- export {
59
- t as i
60
- };
@@ -1,56 +0,0 @@
1
- var c = Object.defineProperty, a = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var r = Object.getOwnPropertySymbols;
4
- var d = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
5
- var f = (e, i, t) => i in e ? c(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, s = (e, i) => {
6
- for (var t in i || (i = {}))
7
- d.call(i, t) && f(e, t, i[t]);
8
- if (r)
9
- for (var t of r(i))
10
- m.call(i, t) && f(e, t, i[t]);
11
- return e;
12
- }, o = (e, i) => a(e, x(i));
13
- import { fastClone as L } from "@web-utils/core";
14
- function l(e) {
15
- let i = s({}, e);
16
- if (e.script && (i = o(s(s({}, e), e.script), {
17
- scriptType: e.script.resource ? "externalScript" : "inlineScript"
18
- })), e.event === "timeout" && e.eventDefinitions && e.eventDefinitions.length) {
19
- let t = "";
20
- for (const n in e.eventDefinitions[0])
21
- n.indexOf("time") !== -1 && (t = n, i.eventDefinitionType = n.replace("time", "").toLowerCase());
22
- i.eventTimeDefinitions = e.eventDefinitions[0][t].body;
23
- }
24
- return i;
25
- }
26
- function v(e) {
27
- var t, n;
28
- let i;
29
- return e.class && (i = "classListener"), e.expression && (i = "expressionListener"), e.delegateExpression && (i = "delegateExpressionListener"), e.script && (i = "scriptListener"), o(s(s({}, L(e)), (t = e.script) != null ? t : {}), {
30
- fields: (n = e.fields) == null ? void 0 : n.map((p) => o(s({}, p), { fieldType: p.expression ? "expression" : "string" })),
31
- listenerType: i
32
- });
33
- }
34
- const g = {
35
- classListener: "Java 类",
36
- expressionListener: "表达式",
37
- delegateExpressionListener: "代理表达式",
38
- scriptListener: "脚本"
39
- }, u = {
40
- create: "创建",
41
- assignment: "指派",
42
- complete: "完成",
43
- delete: "删除",
44
- update: "更新",
45
- timeout: "超时"
46
- }, D = {
47
- string: "字符串",
48
- expression: "表达式"
49
- };
50
- export {
51
- v as a,
52
- u as e,
53
- D as f,
54
- l as i,
55
- g as l
56
- };
@@ -1 +0,0 @@
1
- .form-toolbar-button .separate-line{vertical-align:middle;background-color:#aaa;width:1px;height:18px;margin:0 10px;display:inline-block}.form-toolbar-button .form-toolbar-button .el-button{align-items:center;display:inline-flex}.form-toolbar-button .form-toolbar-button .el-button:hover{border-color:transparent}