@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
@@ -1,22 +1,22 @@
1
- var d = Object.defineProperty;
2
- var l = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
4
- var a = (r, e, t) => e in r ? d(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
1
+ var _ = Object.defineProperty;
2
+ var a = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
4
+ var i = (r, e, t) => e in r ? _(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
5
5
  for (var t in e || (e = {}))
6
- m.call(e, t) && a(r, t, e[t]);
7
- if (l)
8
- for (var t of l(e))
9
- c.call(e, t) && a(r, t, e[t]);
6
+ m.call(e, t) && i(r, t, e[t]);
7
+ if (a)
8
+ for (var t of a(e))
9
+ d.call(e, t) && i(r, t, e[t]);
10
10
  return r;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { validateIdCard as i } from "@web-utils/core";
14
- import u from "element-ui/lib/input";
15
- import { d as _, n as v } from "../chunks/index.57f871af.mjs";
16
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var h = function() {
12
+ import { _ as c, f } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import { validateIdCard as u } from "@web-utils/core";
14
+ import l from "element-ui/lib/input";
15
+ import { h as v, n as y } from "../chunks/index.d91bd77a.mjs";
16
+ import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var b = function() {
18
18
  var r = this, e = r.$createElement, t = r._self._c || e;
19
- return t("FormItem", r._b({
19
+ return t(c, r._b({
20
20
  attrs: {
21
21
  rules: r.computeRules,
22
22
  disabled: r.inputDisabled
@@ -24,7 +24,7 @@ var h = function() {
24
24
  scopedSlots: r._u([{
25
25
  key: "default",
26
26
  fn: function() {
27
- return [t("ElInput", r._g(r._b({
27
+ return [t(l, r._g(r._b({
28
28
  class: {
29
29
  "is-readonly": r.readonly
30
30
  },
@@ -36,8 +36,8 @@ var h = function() {
36
36
  placeholder: r.computePlaceholder
37
37
  },
38
38
  on: {
39
- input: function(o) {
40
- return r.$emit("input", o);
39
+ input: function(n) {
40
+ return r.$emit("input", n);
41
41
  }
42
42
  }
43
43
  }, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", {
@@ -47,14 +47,14 @@ var h = function() {
47
47
  proxy: !0
48
48
  }, {
49
49
  key: "error",
50
- fn: function(o) {
51
- var n = o.error;
52
- return [r.$scopedSlots.error && r.$scopedSlots.error(n) ? t("div", {
50
+ fn: function(n) {
51
+ var o = n.error;
52
+ return [r.$scopedSlots.error && r.$scopedSlots.error(o) ? t("div", {
53
53
  staticClass: "el-form-item__error"
54
54
  }, [r._t("error", function() {
55
- return [r._v(" " + r._s(n) + " ")];
55
+ return [r._v(" " + r._s(o) + " ")];
56
56
  }, {
57
- error: n
57
+ error: o
58
58
  })], 2) : r._e()];
59
59
  }
60
60
  }, {
@@ -65,10 +65,10 @@ var h = function() {
65
65
  proxy: !0
66
66
  }], null, !0)
67
67
  }, "FormItem", r.formItemProps, !1));
68
- }, I = [];
69
- const b = Object.keys(u.props || u.default.props).filter(
68
+ }, g = [];
69
+ const x = Object.keys(l.props || l.default.props).filter(
70
70
  (r) => !["value", "placeholder", "disabled"].includes(r)
71
- ), x = {
71
+ ), I = {
72
72
  name: "FormInputIdCard",
73
73
  mixins: [f],
74
74
  props: {
@@ -82,38 +82,38 @@ const b = Object.keys(u.props || u.default.props).filter(
82
82
  },
83
83
  computed: {
84
84
  inputProps() {
85
- return _(s(s({}, v(this.$attrs)), this.$props), b);
85
+ return v(s(s({}, y(this.$attrs)), this.$props), x);
86
86
  }
87
87
  },
88
88
  methods: {
89
- validateIdCard: i,
89
+ validateIdCard: u,
90
90
  getRules() {
91
91
  return [
92
92
  {
93
- validator: i,
93
+ validator: u,
94
94
  message: "请输入正确的身份证号码!"
95
95
  }
96
96
  ];
97
97
  }
98
98
  }
99
99
  }, p = {};
100
- var g = /* @__PURE__ */ y(
101
- x,
102
- h,
100
+ var $ = /* @__PURE__ */ h(
103
101
  I,
102
+ b,
103
+ g,
104
104
  !1,
105
- $,
105
+ C,
106
106
  null,
107
107
  null,
108
108
  null
109
109
  );
110
- function $(r) {
110
+ function C(r) {
111
111
  for (let e in p)
112
112
  this[e] = p[e];
113
113
  }
114
- const R = /* @__PURE__ */ function() {
115
- return g.exports;
114
+ const w = /* @__PURE__ */ function() {
115
+ return $.exports;
116
116
  }();
117
117
  export {
118
- R as default
118
+ w as default
119
119
  };
@@ -1,94 +1,254 @@
1
- var l = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var a = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable;
4
- var i = (e, r, t) => r in e ? l(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, u = (e, r) => {
5
- for (var t in r || (r = {}))
6
- a.call(r, t) && i(e, t, r[t]);
7
- if (o)
8
- for (var t of o(r))
9
- m.call(r, t) && i(e, t, r[t]);
10
- return e;
1
+ var h = Object.defineProperty;
2
+ var u = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
4
+ var o = (t, e, i) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, s = (t, e) => {
5
+ for (var i in e || (e = {}))
6
+ m.call(e, i) && o(t, i, e[i]);
7
+ if (u)
8
+ for (var i of u(e))
9
+ f.call(e, i) && o(t, i, e[i]);
10
+ return t;
11
11
  };
12
- import { f } from "../chunks/form-input-mixin.4632ad36.mjs";
13
- import { d as c, n as _ } from "../chunks/index.57f871af.mjs";
14
- import { i as d } from "../chunks/input-number-mixin.41a066be.mjs";
15
- import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
16
- var b = function() {
17
- var e = this, r = e.$createElement, t = e._self._c || r;
18
- return t("FormItem", e._b({
12
+ import { _ as d, f as _ } from "../chunks/FormItem.2920ac0c.mjs";
13
+ import { h as b, n as x } from "../chunks/index.d91bd77a.mjs";
14
+ import { i as l, s as y, r as I } from "../chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs";
15
+ import P from "element-ui/src/mixins/focus";
16
+ import v from "element-ui/src/directives/repeat-click";
17
+ import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
18
+ const N = {
19
+ name: "InputNumber",
20
+ directives: {
21
+ repeatClick: v
22
+ },
23
+ mixins: [P("input"), l],
24
+ inject: {
25
+ elForm: {
26
+ default: ""
27
+ },
28
+ elFormItem: {
29
+ default: ""
30
+ }
31
+ },
32
+ data() {
33
+ return {
34
+ currentValue: 0,
35
+ userInput: null
36
+ };
37
+ },
38
+ computed: {
39
+ minDisabled() {
40
+ return this._decrease(this.value, this.step) < this.min;
41
+ },
42
+ maxDisabled() {
43
+ return this._increase(this.value, this.step) > this.max;
44
+ },
45
+ numPrecision() {
46
+ const { value: t, step: e, getPrecision: i, precision: n } = this, r = i(e);
47
+ return n !== void 0 ? (r > n && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), n) : Math.max(i(t), r);
48
+ },
49
+ controlsAtRight() {
50
+ return this.controls && this.controlsPosition === "right";
51
+ },
52
+ _elFormItemSize() {
53
+ return (this.elFormItem || {}).elFormItemSize;
54
+ },
55
+ inputNumberSize() {
56
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
57
+ },
58
+ inputNumberDisabled() {
59
+ return this.disabled || !!(this.elForm || {}).disabled;
60
+ },
61
+ displayValue() {
62
+ if (this.userInput !== null)
63
+ return this.userInput;
64
+ let t = this.currentValue;
65
+ if (typeof t == "number") {
66
+ if (this.stepStrictly) {
67
+ const e = this.getPrecision(this.step), i = Math.pow(10, e);
68
+ t = Math.round(t / this.step) * i * this.step / i;
69
+ }
70
+ this.precision !== void 0 && (t = t.toFixed(this.precision));
71
+ }
72
+ return t;
73
+ }
74
+ },
75
+ watch: {
76
+ value: {
77
+ immediate: !0,
78
+ handler(t) {
79
+ let e = t === void 0 ? t : Number(t);
80
+ if (e !== void 0) {
81
+ if (isNaN(e))
82
+ return;
83
+ if (this.stepStrictly) {
84
+ const i = this.getPrecision(this.step), n = Math.pow(10, i);
85
+ e = Math.round(e / this.step) * n * this.step / n;
86
+ }
87
+ this.precision !== void 0 && (e = this.toPrecision(e, this.precision));
88
+ }
89
+ e >= this.max && (e = this.max), e <= this.min && (e = this.min), this.currentValue = e, this.userInput = null, this.$emit("input", e);
90
+ }
91
+ }
92
+ },
93
+ mounted() {
94
+ const t = this.$refs.input.$refs.input;
95
+ t.setAttribute("role", "spinbutton"), t.setAttribute("aria-valuemax", this.max), t.setAttribute("aria-valuemin", this.min), t.setAttribute("aria-valuenow", this.currentValue), t.setAttribute("aria-disabled", this.inputNumberDisabled);
96
+ },
97
+ updated() {
98
+ if (!this.$refs || !this.$refs.input)
99
+ return;
100
+ this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
101
+ },
102
+ methods: {
103
+ toPrecision(t, e) {
104
+ return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
105
+ },
106
+ getPrecision(t) {
107
+ if (t === void 0)
108
+ return 0;
109
+ const e = t.toString(), i = e.indexOf(".");
110
+ let n = 0;
111
+ return i !== -1 && (n = e.length - i - 1), n;
112
+ },
113
+ _increase(t, e) {
114
+ if (typeof t != "number" && t !== void 0)
115
+ return this.currentValue;
116
+ const i = Math.pow(10, this.numPrecision);
117
+ return this.toPrecision((i * t + i * e) / i);
118
+ },
119
+ _decrease(t, e) {
120
+ if (typeof t != "number" && t !== void 0)
121
+ return this.currentValue;
122
+ const i = Math.pow(10, this.numPrecision);
123
+ return this.toPrecision((i * t - i * e) / i);
124
+ },
125
+ increase() {
126
+ if (this.inputNumberDisabled || this.maxDisabled)
127
+ return;
128
+ const t = this.value || 0, e = this._increase(t, this.step);
129
+ this.setCurrentValue(e);
130
+ },
131
+ decrease() {
132
+ if (this.inputNumberDisabled || this.minDisabled)
133
+ return;
134
+ const t = this.value || 0, e = this._decrease(t, this.step);
135
+ this.setCurrentValue(e);
136
+ },
137
+ handleBlur(t) {
138
+ this.$emit("blur", t);
139
+ },
140
+ handleFocus(t) {
141
+ this.$emit("focus", t);
142
+ },
143
+ setCurrentValue(t) {
144
+ const e = this.currentValue;
145
+ typeof t == "number" && this.precision !== void 0 && (t = this.toPrecision(t, this.precision)), t >= this.max && (t = this.max), t <= this.min && (t = this.min), e !== t && (this.userInput = null, this.$emit("input", t), this.$emit("change", t, e), this.currentValue = t);
146
+ },
147
+ handleInput(t) {
148
+ this.userInput = t;
149
+ },
150
+ handleInputChange(t) {
151
+ const e = t === "" ? void 0 : Number(t);
152
+ (!isNaN(e) || t === "") && this.setCurrentValue(e), this.userInput = null;
153
+ },
154
+ select() {
155
+ this.$refs.input.select();
156
+ }
157
+ }
158
+ }, a = {};
159
+ var $ = /* @__PURE__ */ c(
160
+ N,
161
+ I,
162
+ y,
163
+ !1,
164
+ F,
165
+ null,
166
+ null,
167
+ null
168
+ );
169
+ function F(t) {
170
+ for (let e in a)
171
+ this[e] = a[e];
172
+ }
173
+ const g = /* @__PURE__ */ function() {
174
+ return $.exports;
175
+ }();
176
+ var M = function() {
177
+ var t = this, e = t.$createElement, i = t._self._c || e;
178
+ return i(d, t._b({
19
179
  attrs: {
20
- rules: e.computeRules,
21
- disabled: e.inputDisabled
180
+ rules: t.computeRules,
181
+ disabled: t.inputDisabled
22
182
  },
23
- scopedSlots: e._u([{
183
+ scopedSlots: t._u([{
24
184
  key: "default",
25
185
  fn: function() {
26
- return [t("InputNumber", e._g(e._b({
186
+ return [i(g, t._g(t._b({
27
187
  staticClass: "form-input-number",
28
188
  attrs: {
29
- value: e.value,
189
+ value: t.value,
30
190
  controls: !1,
31
- precision: e.precision,
32
- max: e.max,
33
- min: e.min,
34
- placeholder: e.computePlaceholder,
35
- disabled: e.inputDisabled
191
+ precision: t.precision,
192
+ max: t.max,
193
+ min: t.min,
194
+ placeholder: t.computePlaceholder,
195
+ disabled: t.inputDisabled
36
196
  },
37
197
  on: {
38
198
  input: function(n) {
39
- return e.$emit("input", n);
199
+ return t.$emit("input", n);
40
200
  }
41
201
  },
42
- scopedSlots: e._u([{
202
+ scopedSlots: t._u([{
43
203
  key: "append",
44
204
  fn: function() {
45
- return [e._t("append")];
205
+ return [t._t("append")];
46
206
  },
47
207
  proxy: !0
48
208
  }, {
49
209
  key: "prefix",
50
210
  fn: function() {
51
- return [e._t("prefix")];
211
+ return [t._t("prefix")];
52
212
  },
53
213
  proxy: !0
54
214
  }, {
55
215
  key: "prepend",
56
216
  fn: function() {
57
- return [e._t("prepend")];
217
+ return [t._t("prepend")];
58
218
  },
59
219
  proxy: !0
60
220
  }, {
61
221
  key: "suffix",
62
222
  fn: function() {
63
- return [e._t("suffix")];
223
+ return [t._t("suffix")];
64
224
  },
65
225
  proxy: !0
66
226
  }], null, !0)
67
- }, "InputNumber", e.inputProps, !1), e.listeners))];
227
+ }, "InputNumber", t.inputProps, !1), t.listeners))];
68
228
  },
69
229
  proxy: !0
70
230
  }, {
71
231
  key: "error",
72
232
  fn: function(n) {
73
- var p = n.error;
74
- return [e._t("error", null, {
75
- error: p
233
+ var r = n.error;
234
+ return [t._t("error", null, {
235
+ error: r
76
236
  })];
77
237
  }
78
238
  }, {
79
239
  key: "label",
80
240
  fn: function() {
81
- return [e._t("label")];
241
+ return [t._t("label")];
82
242
  },
83
243
  proxy: !0
84
244
  }], null, !0)
85
- }, "FormItem", e.formItemProps, !1));
86
- }, x = [];
87
- const v = Object.keys(d.props).filter(
88
- (e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)
89
- ), I = {
245
+ }, "FormItem", t.formItemProps, !1));
246
+ }, S = [];
247
+ const k = Object.keys(l.props).filter(
248
+ (t) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(t)
249
+ ), D = {
90
250
  name: "FormInputNumber",
91
- mixins: [f],
251
+ mixins: [_],
92
252
  props: {
93
253
  value: {
94
254
  type: [String, Number]
@@ -103,34 +263,34 @@ const v = Object.keys(d.props).filter(
103
263
  },
104
264
  precision: {
105
265
  type: Number,
106
- validator(e) {
107
- return e >= 0 && e === parseInt(e, 10);
266
+ validator(t) {
267
+ return t >= 0 && t === parseInt(t, 10);
108
268
  }
109
269
  }
110
270
  },
111
271
  computed: {
112
272
  inputProps() {
113
- return c(u(u({}, _(this.$attrs)), this.$props), v);
273
+ return b(s(s({}, x(this.$attrs)), this.$props), k);
114
274
  }
115
275
  }
116
- }, s = {};
117
- var N = /* @__PURE__ */ y(
118
- I,
119
- b,
120
- x,
276
+ }, p = {};
277
+ var V = /* @__PURE__ */ c(
278
+ D,
279
+ M,
280
+ S,
121
281
  !1,
122
- h,
282
+ C,
123
283
  null,
124
284
  null,
125
285
  null
126
286
  );
127
- function h(e) {
128
- for (let r in s)
129
- this[r] = s[r];
287
+ function C(t) {
288
+ for (let e in p)
289
+ this[e] = p[e];
130
290
  }
131
- const g = /* @__PURE__ */ function() {
132
- return N.exports;
291
+ const O = /* @__PURE__ */ function() {
292
+ return V.exports;
133
293
  }();
134
294
  export {
135
- g as default
295
+ O as default
136
296
  };
@@ -1,22 +1,22 @@
1
1
  var p = Object.defineProperty;
2
- var o = Object.getOwnPropertySymbols;
3
- var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
2
+ var s = Object.getOwnPropertySymbols;
3
+ var m = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
4
4
  var l = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
5
5
  for (var r in t || (t = {}))
6
6
  m.call(t, r) && l(e, r, t[r]);
7
- if (o)
8
- for (var r of o(t))
9
- d.call(t, r) && l(e, r, t[r]);
7
+ if (s)
8
+ for (var r of s(t))
9
+ _.call(t, r) && l(e, r, t[r]);
10
10
  return e;
11
11
  };
12
- import { f as c } from "../chunks/form-input-mixin.4632ad36.mjs";
12
+ import { _ as c, f as d } from "../chunks/FormItem.2920ac0c.mjs";
13
13
  import { validatePhoneNum as f } from "@web-utils/core";
14
- import { d as _, n as h } from "../chunks/index.57f871af.mjs";
15
- import s from "element-ui/lib/input";
16
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
- var y = function() {
14
+ import { h, n as v } from "../chunks/index.d91bd77a.mjs";
15
+ import o from "element-ui/lib/input";
16
+ import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
17
+ var b = function() {
18
18
  var e = this, t = e.$createElement, r = e._self._c || t;
19
- return r("FormItem", e._b({
19
+ return r(c, e._b({
20
20
  attrs: {
21
21
  rules: e.computeRules,
22
22
  disabled: e.inputDisabled
@@ -24,7 +24,7 @@ var y = function() {
24
24
  scopedSlots: e._u([{
25
25
  key: "default",
26
26
  fn: function() {
27
- return [r("ElInput", e._g(e._b({
27
+ return [r(o, e._g(e._b({
28
28
  class: {
29
29
  "is-readonly": e.readonly
30
30
  },
@@ -57,12 +57,12 @@ var y = function() {
57
57
  proxy: !0
58
58
  }], null, !0)
59
59
  }, "FormItem", e.formItemProps, !1));
60
- }, b = [];
61
- const I = Object.keys(s.props || s.default.props).filter(
60
+ }, g = [];
61
+ const x = Object.keys(o.props || o.default.props).filter(
62
62
  (e) => !["value", "placeholder", "disabled"].includes(e)
63
- ), x = {
63
+ ), P = {
64
64
  name: "FormInputPhoneNumber",
65
- mixins: [c],
65
+ mixins: [d],
66
66
  props: {
67
67
  value: {
68
68
  type: String
@@ -74,7 +74,7 @@ const I = Object.keys(s.props || s.default.props).filter(
74
74
  },
75
75
  computed: {
76
76
  inputProps() {
77
- return _(n(n({}, h(this.$attrs)), this.$props), I);
77
+ return h(n(n({}, v(this.$attrs)), this.$props), x);
78
78
  }
79
79
  },
80
80
  methods: {
@@ -91,23 +91,23 @@ const I = Object.keys(s.props || s.default.props).filter(
91
91
  }
92
92
  }
93
93
  }, u = {};
94
- var P = /* @__PURE__ */ v(
95
- x,
96
- y,
94
+ var I = /* @__PURE__ */ y(
95
+ P,
97
96
  b,
98
- !1,
99
97
  g,
98
+ !1,
99
+ k,
100
100
  null,
101
101
  null,
102
102
  null
103
103
  );
104
- function g(e) {
104
+ function k(e) {
105
105
  for (let t in u)
106
106
  this[t] = u[t];
107
107
  }
108
- const R = /* @__PURE__ */ function() {
109
- return P.exports;
108
+ const z = /* @__PURE__ */ function() {
109
+ return I.exports;
110
110
  }();
111
111
  export {
112
- R as default
112
+ z as default
113
113
  };