@web-utils/component 3.0.6 → 3.1.0

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 (172) hide show
  1. package/address-input/index.mjs +20 -57
  2. package/affix/index.mjs +26 -47
  3. package/aside-menu/index.mjs +18 -43
  4. package/avatar/index.mjs +27 -49
  5. package/awesome-button/index.mjs +35 -43
  6. package/capsule-tab/index.mjs +16 -34
  7. package/card/index.mjs +21 -76
  8. package/carousel/index.mjs +14 -49
  9. package/chat/index.mjs +104 -414
  10. package/chunk-file-uploader/index.mjs +21 -38
  11. package/chunks/FormTemp.aa57efb4.mjs +125 -0
  12. package/code-mirror-editor/index.mjs +69 -79
  13. package/color-picker/index.mjs +29 -60
  14. package/comment/index.mjs +17 -48
  15. package/confirm-button/index.mjs +11 -19
  16. package/confirmable/index.mjs +12 -20
  17. package/context-menu/index.mjs +42 -144
  18. package/count-up/index.mjs +18 -25
  19. package/custom-scrollbar/index.mjs +13 -22
  20. package/data-box/index.mjs +15 -66
  21. package/data-card/index.mjs +16 -65
  22. package/data-cardtext/index.mjs +16 -52
  23. package/data-display/index.mjs +18 -62
  24. package/data-icons/index.mjs +16 -68
  25. package/data-imgtext/index.mjs +18 -79
  26. package/data-operatext/index.mjs +18 -75
  27. package/data-panel/index.mjs +16 -63
  28. package/data-pay/index.mjs +20 -122
  29. package/data-price/index.mjs +18 -60
  30. package/data-progress/index.mjs +16 -67
  31. package/data-rotate/index.mjs +16 -66
  32. package/data-table-picker/index.mjs +25 -88
  33. package/data-tabs/index.mjs +16 -64
  34. package/dialog-form/index.mjs +48 -94
  35. package/dynamic-table/index.mjs +43 -127
  36. package/e-charts/index.mjs +21 -34
  37. package/easy-popup/index.mjs +35 -61
  38. package/editable-progress/index.mjs +22 -77
  39. package/editable-tree/index.mjs +235 -546
  40. package/egd-collapse/index.mjs +13 -26
  41. package/egd-collapse-item/index.mjs +27 -87
  42. package/element-dialog/index.mjs +69 -133
  43. package/empty-view/index.mjs +13 -33
  44. package/error-view/index.mjs +14 -34
  45. package/flex-column/index.mjs +15 -23
  46. package/flex-item/index.mjs +18 -26
  47. package/flex-row/index.mjs +23 -31
  48. package/flex-scroller/index.mjs +16 -27
  49. package/flow/index.mjs +70 -110
  50. package/flow-designer/index.mjs +1215 -4804
  51. package/flow-node/index.mjs +15 -51
  52. package/flow-viewer/index.mjs +64 -89
  53. package/form-block/index.mjs +43 -62
  54. package/form-button/index.mjs +10 -18
  55. package/form-cascader/index.mjs +49 -100
  56. package/form-checkbox-group/index.mjs +43 -110
  57. package/form-date-picker/index.mjs +51 -97
  58. package/form-holder/index.mjs +25 -42
  59. package/form-input/index.mjs +40 -90
  60. package/form-input-email/index.mjs +35 -79
  61. package/form-input-id-card/index.mjs +40 -87
  62. package/form-input-number/index.mjs +42 -102
  63. package/form-input-phone-number/index.mjs +34 -75
  64. package/form-input-tag/index.mjs +31 -73
  65. package/form-input-time/index.mjs +42 -87
  66. package/form-item/index.mjs +70 -89
  67. package/form-item-config-provider/index.mjs +12 -20
  68. package/form-item-group/index.mjs +46 -65
  69. package/form-radio-group/index.mjs +50 -108
  70. package/form-select/index.mjs +44 -95
  71. package/form-switch/index.mjs +38 -85
  72. package/form-textarea/index.mjs +31 -75
  73. package/form-view/index.mjs +112 -260
  74. package/fy-array/index.mjs +35 -121
  75. package/fy-article/index.mjs +12 -43
  76. package/fy-cascader/index.mjs +26 -67
  77. package/fy-checkbox/index.mjs +27 -77
  78. package/fy-code/index.mjs +19 -33
  79. package/fy-curd/index.mjs +810 -2017
  80. package/fy-date/index.mjs +18 -59
  81. package/fy-draggable/index.mjs +81 -140
  82. package/fy-dynamic/index.mjs +85 -204
  83. package/fy-empty/index.mjs +14 -35
  84. package/fy-form/index.mjs +254 -571
  85. package/fy-form-design/index.mjs +1489 -6084
  86. package/fy-form-design/style.css +1 -1
  87. package/fy-input/index.mjs +34 -104
  88. package/fy-input-color/index.mjs +22 -67
  89. package/fy-input-icon/index.mjs +37 -122
  90. package/fy-input-map/index.mjs +57 -149
  91. package/fy-input-number/index.mjs +18 -53
  92. package/fy-input-table/index.mjs +36 -102
  93. package/fy-input-tree/index.mjs +51 -138
  94. package/fy-progress/index.mjs +12 -31
  95. package/fy-radio/index.mjs +20 -51
  96. package/fy-rate/index.mjs +18 -51
  97. package/fy-select/index.mjs +49 -134
  98. package/fy-slider/index.mjs +19 -52
  99. package/fy-switch/index.mjs +18 -48
  100. package/fy-tabs/index.mjs +19 -51
  101. package/fy-time/index.mjs +22 -62
  102. package/fy-title/index.mjs +14 -25
  103. package/fy-tree/index.mjs +74 -216
  104. package/fy-u-editor/index.mjs +50 -64
  105. package/fy-upload/index.mjs +167 -338
  106. package/guide-steps/index.mjs +33 -53
  107. package/highlight-j-s/index.mjs +13 -27
  108. package/icon-card/index.mjs +12 -36
  109. package/icon-temp/index.mjs +12 -34
  110. package/iframe-window/index.mjs +13 -40
  111. package/image-cropper/index.mjs +46 -171
  112. package/image-preview/index.mjs +54 -168
  113. package/image-viewer/index.mjs +24 -50
  114. package/index.css +1 -0
  115. package/index.mjs +3973 -501
  116. package/input-number/index.mjs +84 -173
  117. package/input-number-range/index.mjs +20 -70
  118. package/j-s-x-component/index.mjs +3 -3
  119. package/keep-view-alive/index.mjs +47 -55
  120. package/keyboard/index.mjs +100 -113
  121. package/license/index.mjs +34 -51
  122. package/loading-view/index.mjs +14 -34
  123. package/login/index.mjs +33 -161
  124. package/monaco-editor/index.mjs +13 -21
  125. package/name-avatar/index.mjs +13 -32
  126. package/nav-bar/index.mjs +12 -31
  127. package/not-implement/index.mjs +14 -25
  128. package/notice/index.mjs +32 -80
  129. package/package.json +1 -1
  130. package/page/index.mjs +11 -23
  131. package/page-header/index.mjs +16 -37
  132. package/page-index/index.mjs +42 -93
  133. package/page-index-top/index.mjs +42 -84
  134. package/page-skeleton/index.mjs +24 -39
  135. package/page-skeleton-new/index.mjs +21 -68
  136. package/pageable-table/index.mjs +105 -227
  137. package/pageable-view/index.mjs +30 -83
  138. package/photo-swipe/index.mjs +62 -87
  139. package/present-view/index.mjs +114 -267
  140. package/queue/index.mjs +14 -29
  141. package/record-video/index.mjs +29 -66
  142. package/resize-observer/index.mjs +18 -30
  143. package/search/index.mjs +47 -81
  144. package/search-popover/index.mjs +57 -329
  145. package/sign/index.mjs +43 -60
  146. package/sign-panel/index.mjs +40 -151
  147. package/skeleton/index.mjs +18 -44
  148. package/split-pane/index.mjs +45 -129
  149. package/stateful/index.mjs +18 -26
  150. package/static-pageable-table/index.mjs +18 -44
  151. package/swiper/index.mjs +53 -94
  152. package/tab/index.mjs +13 -39
  153. package/tab-item/index.mjs +23 -37
  154. package/table-column/index.mjs +27 -35
  155. package/table-view/index.mjs +89 -209
  156. package/tag-render/index.mjs +34 -69
  157. package/text-ellipsis/index.mjs +22 -47
  158. package/tinymce-editor/index.mjs +174 -285
  159. package/toolbar/index.mjs +21 -42
  160. package/toolbar-button/index.mjs +25 -54
  161. package/verify/index.mjs +16 -29
  162. package/vue-cron/index.mjs +272 -1089
  163. package/vue-qr-code/index.mjs +19 -27
  164. package/vue-quill-editor/index.mjs +15 -27
  165. package/vue-tags-input/index.mjs +104 -224
  166. package/vue-tree-select/index.mjs +595 -742
  167. package/vue-video-player/index.mjs +42 -57
  168. package/watermark/index.mjs +27 -35
  169. package/web-types.json +1 -1
  170. package/x-input-tag/index.mjs +50 -112
  171. package/chunks/FormTemp.7f91629d.mjs +0 -165
  172. /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
@@ -1,122 +1,13 @@
1
- import u from "element-ui/src/mixins/focus";
2
- import o from "element-ui/src/directives/repeat-click";
3
- import { i as a } from "../chunks/input-number-mixin.41a066be.mjs";
4
- import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
- var c = function() {
6
- var e = this, t = e.$createElement, n = e._self._c || t;
7
- return n("div", {
8
- class: ["input-number", "el-input-number", e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "", {
9
- "is-disabled": e.inputNumberDisabled,
10
- "is-without-controls": !e.controls,
11
- "is-controls-right": e.controlsAtRight
12
- }],
13
- on: {
14
- dragstart: function(i) {
15
- i.preventDefault();
16
- }
17
- }
18
- }, [e.controls ? n("span", {
19
- directives: [{
20
- name: "repeat-click",
21
- rawName: "v-repeat-click",
22
- value: e.decrease,
23
- expression: "decrease"
24
- }],
25
- staticClass: "el-input-number__decrease",
26
- class: {
27
- "is-disabled": e.minDisabled
28
- },
29
- attrs: {
30
- role: "button"
31
- },
32
- on: {
33
- keydown: function(i) {
34
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.decrease.apply(null, arguments);
35
- }
36
- }
37
- }, [n("i", {
38
- class: `el-icon-${e.controlsAtRight ? "arrow-down" : "minus"}`
39
- })]) : e._e(), e.controls ? n("span", {
40
- directives: [{
41
- name: "repeat-click",
42
- rawName: "v-repeat-click",
43
- value: e.increase,
44
- expression: "increase"
45
- }],
46
- staticClass: "el-input-number__increase",
47
- class: {
48
- "is-disabled": e.maxDisabled
49
- },
50
- attrs: {
51
- role: "button"
52
- },
53
- on: {
54
- keydown: function(i) {
55
- return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.increase.apply(null, arguments);
56
- }
57
- }
58
- }, [n("i", {
59
- class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}`
60
- })]) : e._e(), n("ElInput", {
61
- ref: "input",
62
- attrs: {
63
- value: e.displayValue,
64
- placeholder: e.placeholder,
65
- disabled: e.inputNumberDisabled,
66
- size: e.inputNumberSize,
67
- max: e.max,
68
- "prefix-icon": e.prefixIcon,
69
- "suffix-icon": e.suffixIcon,
70
- min: e.min,
71
- name: e.name,
72
- label: e.label
73
- },
74
- on: {
75
- blur: e.handleBlur,
76
- focus: e.handleFocus,
77
- input: e.handleInput,
78
- change: e.handleInputChange
79
- },
80
- nativeOn: {
81
- keydown: [function(i) {
82
- return !i.type.indexOf("key") && e._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : (i.preventDefault(), e.increase.apply(null, arguments));
83
- }, function(i) {
84
- return !i.type.indexOf("key") && e._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : (i.preventDefault(), e.decrease.apply(null, arguments));
85
- }]
86
- },
87
- scopedSlots: e._u([{
88
- key: "append",
89
- fn: function() {
90
- return [e._t("append")];
91
- },
92
- proxy: !0
93
- }, {
94
- key: "prefix",
95
- fn: function() {
96
- return [e._t("prefix")];
97
- },
98
- proxy: !0
99
- }, {
100
- key: "prepend",
101
- fn: function() {
102
- return [e._t("prepend")];
103
- },
104
- proxy: !0
105
- }, {
106
- key: "suffix",
107
- fn: function() {
108
- return [e._t("suffix")];
109
- },
110
- proxy: !0
111
- }], null, !0)
112
- })], 1);
113
- }, p = [];
114
- const h = {
1
+ import s from "element-ui/src/mixins/focus";
2
+ import u from "element-ui/src/directives/repeat-click";
3
+ import { i as o } from "../chunks/input-number-mixin.41a066be.mjs";
4
+ import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
5
+ const l = {
115
6
  name: "InputNumber",
116
7
  directives: {
117
- repeatClick: o
8
+ repeatClick: u
118
9
  },
119
- mixins: [u("input"), a],
10
+ mixins: [s("input"), o],
120
11
  inject: {
121
12
  elForm: {
122
13
  default: ""
@@ -139,8 +30,8 @@ const h = {
139
30
  return this._increase(this.value, this.step) > this.max;
140
31
  },
141
32
  numPrecision() {
142
- const { value: e, step: t, getPrecision: n, precision: i } = this, r = n(t);
143
- return i !== void 0 ? (r > i && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), i) : Math.max(n(e), r);
33
+ const { value: t, step: e, getPrecision: n, precision: i } = this, r = n(e);
34
+ return i !== void 0 ? (r > i && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), i) : Math.max(n(t), r);
144
35
  },
145
36
  controlsAtRight() {
146
37
  return this.controls && this.controlsPosition === "right";
@@ -157,38 +48,38 @@ const h = {
157
48
  displayValue() {
158
49
  if (this.userInput !== null)
159
50
  return this.userInput;
160
- let e = this.currentValue;
161
- if (typeof e == "number") {
51
+ let t = this.currentValue;
52
+ if (typeof t == "number") {
162
53
  if (this.stepStrictly) {
163
- const t = this.getPrecision(this.step), n = Math.pow(10, t);
164
- e = Math.round(e / this.step) * n * this.step / n;
54
+ const e = this.getPrecision(this.step), n = Math.pow(10, e);
55
+ t = Math.round(t / this.step) * n * this.step / n;
165
56
  }
166
- this.precision !== void 0 && (e = e.toFixed(this.precision));
57
+ this.precision !== void 0 && (t = t.toFixed(this.precision));
167
58
  }
168
- return e;
59
+ return t;
169
60
  }
170
61
  },
171
62
  watch: {
172
63
  value: {
173
64
  immediate: !0,
174
- handler(e) {
175
- let t = e === void 0 ? e : Number(e);
176
- if (t !== void 0) {
177
- if (isNaN(t))
65
+ handler(t) {
66
+ let e = t === void 0 ? t : Number(t);
67
+ if (e !== void 0) {
68
+ if (isNaN(e))
178
69
  return;
179
70
  if (this.stepStrictly) {
180
71
  const n = this.getPrecision(this.step), i = Math.pow(10, n);
181
- t = Math.round(t / this.step) * i * this.step / i;
72
+ e = Math.round(e / this.step) * i * this.step / i;
182
73
  }
183
- this.precision !== void 0 && (t = this.toPrecision(t, this.precision));
74
+ this.precision !== void 0 && (e = this.toPrecision(e, this.precision));
184
75
  }
185
- t >= this.max && (t = this.max), t <= this.min && (t = this.min), this.currentValue = t, this.userInput = null, this.$emit("input", t);
76
+ e >= this.max && (e = this.max), e <= this.min && (e = this.min), this.currentValue = e, this.userInput = null, this.$emit("input", e);
186
77
  }
187
78
  }
188
79
  },
189
80
  mounted() {
190
- const e = this.$refs.input.$refs.input;
191
- e.setAttribute("role", "spinbutton"), e.setAttribute("aria-valuemax", this.max), e.setAttribute("aria-valuemin", this.min), e.setAttribute("aria-valuenow", this.currentValue), e.setAttribute("aria-disabled", this.inputNumberDisabled);
81
+ const t = this.$refs.input.$refs.input;
82
+ 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);
192
83
  },
193
84
  updated() {
194
85
  if (!this.$refs || !this.$refs.input)
@@ -196,79 +87,99 @@ const h = {
196
87
  this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
197
88
  },
198
89
  methods: {
199
- toPrecision(e, t) {
200
- return t === void 0 && (t = this.numPrecision), parseFloat(Math.round(e * Math.pow(10, t)) / Math.pow(10, t));
90
+ toPrecision(t, e) {
91
+ return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
201
92
  },
202
- getPrecision(e) {
203
- if (e === void 0)
93
+ getPrecision(t) {
94
+ if (t === void 0)
204
95
  return 0;
205
- const t = e.toString(), n = t.indexOf(".");
96
+ const e = t.toString(), n = e.indexOf(".");
206
97
  let i = 0;
207
- return n !== -1 && (i = t.length - n - 1), i;
98
+ return n !== -1 && (i = e.length - n - 1), i;
208
99
  },
209
- _increase(e, t) {
210
- if (typeof e != "number" && e !== void 0)
100
+ _increase(t, e) {
101
+ if (typeof t != "number" && t !== void 0)
211
102
  return this.currentValue;
212
103
  const n = Math.pow(10, this.numPrecision);
213
- return this.toPrecision((n * e + n * t) / n);
104
+ return this.toPrecision((n * t + n * e) / n);
214
105
  },
215
- _decrease(e, t) {
216
- if (typeof e != "number" && e !== void 0)
106
+ _decrease(t, e) {
107
+ if (typeof t != "number" && t !== void 0)
217
108
  return this.currentValue;
218
109
  const n = Math.pow(10, this.numPrecision);
219
- return this.toPrecision((n * e - n * t) / n);
110
+ return this.toPrecision((n * t - n * e) / n);
220
111
  },
221
112
  increase() {
222
113
  if (this.inputNumberDisabled || this.maxDisabled)
223
114
  return;
224
- const e = this.value || 0, t = this._increase(e, this.step);
225
- this.setCurrentValue(t);
115
+ const t = this.value || 0, e = this._increase(t, this.step);
116
+ this.setCurrentValue(e);
226
117
  },
227
118
  decrease() {
228
119
  if (this.inputNumberDisabled || this.minDisabled)
229
120
  return;
230
- const e = this.value || 0, t = this._decrease(e, this.step);
231
- this.setCurrentValue(t);
121
+ const t = this.value || 0, e = this._decrease(t, this.step);
122
+ this.setCurrentValue(e);
232
123
  },
233
- handleBlur(e) {
234
- this.$emit("blur", e);
124
+ handleBlur(t) {
125
+ this.$emit("blur", t);
235
126
  },
236
- handleFocus(e) {
237
- this.$emit("focus", e);
127
+ handleFocus(t) {
128
+ this.$emit("focus", t);
238
129
  },
239
- setCurrentValue(e) {
240
- const t = this.currentValue;
241
- typeof e == "number" && this.precision !== void 0 && (e = this.toPrecision(e, this.precision)), e >= this.max && (e = this.max), e <= this.min && (e = this.min), t !== e && (this.userInput = null, this.$emit("input", e), this.$emit("change", e, t), this.currentValue = e);
130
+ setCurrentValue(t) {
131
+ const e = this.currentValue;
132
+ 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);
242
133
  },
243
- handleInput(e) {
244
- this.userInput = e;
134
+ handleInput(t) {
135
+ this.userInput = t;
245
136
  },
246
- handleInputChange(e) {
247
- const t = e === "" ? void 0 : Number(e);
248
- (!isNaN(t) || e === "") && this.setCurrentValue(t), this.userInput = null;
137
+ handleInputChange(t) {
138
+ const e = t === "" ? void 0 : Number(t);
139
+ (!isNaN(e) || t === "") && this.setCurrentValue(e), this.userInput = null;
249
140
  },
250
141
  select() {
251
142
  this.$refs.input.select();
252
143
  }
253
144
  }
254
- }, s = {};
255
- var d = /* @__PURE__ */ l(
256
- h,
145
+ };
146
+ var c = function() {
147
+ var e = this, n = e._self._c;
148
+ return n("div", { class: [
149
+ "input-number",
150
+ "el-input-number",
151
+ e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "",
152
+ { "is-disabled": e.inputNumberDisabled, "is-without-controls": !e.controls, "is-controls-right": e.controlsAtRight }
153
+ ], on: { dragstart: function(i) {
154
+ i.preventDefault();
155
+ } } }, [e.controls ? n("span", { directives: [{ name: "repeat-click", rawName: "v-repeat-click", value: e.decrease, expression: "decrease" }], staticClass: "el-input-number__decrease", class: { "is-disabled": e.minDisabled }, attrs: { role: "button" }, on: { keydown: function(i) {
156
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.decrease.apply(null, arguments);
157
+ } } }, [n("i", { class: `el-icon-${e.controlsAtRight ? "arrow-down" : "minus"}` })]) : e._e(), e.controls ? n("span", { directives: [{ name: "repeat-click", rawName: "v-repeat-click", value: e.increase, expression: "increase" }], staticClass: "el-input-number__increase", class: { "is-disabled": e.maxDisabled }, attrs: { role: "button" }, on: { keydown: function(i) {
158
+ return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.increase.apply(null, arguments);
159
+ } } }, [n("i", { class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}` })]) : e._e(), n("ElInput", { ref: "input", attrs: { value: e.displayValue, placeholder: e.placeholder, disabled: e.inputNumberDisabled, size: e.inputNumberSize, max: e.max, "prefix-icon": e.prefixIcon, "suffix-icon": e.suffixIcon, min: e.min, name: e.name, label: e.label }, on: { blur: e.handleBlur, focus: e.handleFocus, input: e.handleInput, change: e.handleInputChange }, nativeOn: { keydown: [function(i) {
160
+ return !i.type.indexOf("key") && e._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : (i.preventDefault(), e.increase.apply(null, arguments));
161
+ }, function(i) {
162
+ return !i.type.indexOf("key") && e._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : (i.preventDefault(), e.decrease.apply(null, arguments));
163
+ }] }, scopedSlots: e._u([{ key: "append", fn: function() {
164
+ return [e._t("append")];
165
+ }, proxy: !0 }, { key: "prefix", fn: function() {
166
+ return [e._t("prefix")];
167
+ }, proxy: !0 }, { key: "prepend", fn: function() {
168
+ return [e._t("prepend")];
169
+ }, proxy: !0 }, { key: "suffix", fn: function() {
170
+ return [e._t("suffix")];
171
+ }, proxy: !0 }], null, !0) })], 1);
172
+ }, p = [], h = /* @__PURE__ */ a(
173
+ l,
257
174
  c,
258
175
  p,
259
176
  !1,
260
- m,
177
+ null,
261
178
  null,
262
179
  null,
263
180
  null
264
181
  );
265
- function m(e) {
266
- for (let t in s)
267
- this[t] = s[t];
268
- }
269
- const x = /* @__PURE__ */ function() {
270
- return d.exports;
271
- }();
182
+ const _ = h.exports;
272
183
  export {
273
- x as default
184
+ _ as default
274
185
  };
@@ -1,57 +1,6 @@
1
- import { isNotEmpty as i } from "@web-utils/core";
2
- import { n as o } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
- var r = function() {
4
- var t = this, e = t.$createElement, n = t._self._c || e;
5
- return n("div", {
6
- staticClass: "input-number-range"
7
- }, [n("ElInputNumber", {
8
- staticClass: "flex-item",
9
- staticStyle: {
10
- width: "auto"
11
- },
12
- attrs: {
13
- controls: t.controls,
14
- disabled: t.disabled,
15
- size: "mini"
16
- },
17
- on: {
18
- input: t.emitInput
19
- },
20
- model: {
21
- value: t.val[0],
22
- callback: function(s) {
23
- t.$set(t.val, 0, s);
24
- },
25
- expression: "val[0]"
26
- }
27
- }), n("span", {
28
- staticStyle: {
29
- padding: "0 6px",
30
- "font-size": "12px"
31
- }
32
- }, [t._v(t._s(t.separator))]), n("ElInputNumber", {
33
- staticClass: "flex-item",
34
- staticStyle: {
35
- width: "auto"
36
- },
37
- attrs: {
38
- controls: t.controls,
39
- disabled: t.disabled,
40
- size: "mini"
41
- },
42
- on: {
43
- input: t.emitInput
44
- },
45
- model: {
46
- value: t.val[1],
47
- callback: function(s) {
48
- t.$set(t.val, 1, s);
49
- },
50
- expression: "val[1]"
51
- }
52
- })], 1);
53
- }, l = [];
54
- const u = {
1
+ import { isNotEmpty as s } from "@web-utils/core";
2
+ import { n as i } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
3
+ const l = {
55
4
  name: "InputNumberRange",
56
5
  props: {
57
6
  value: {
@@ -76,9 +25,9 @@ const u = {
76
25
  watch: {
77
26
  value: {
78
27
  immediate: !0,
79
- handler(t) {
80
- const e = [void 0, void 0];
81
- i(t == null ? void 0 : t[0]) && (e[0] = t[0]), i(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
28
+ handler(e) {
29
+ const t = [void 0, void 0];
30
+ s(e == null ? void 0 : e[0]) && (t[0] = e[0]), s(e == null ? void 0 : e[1]) && (t[1] = e[1]), this.val = t;
82
31
  }
83
32
  }
84
33
  },
@@ -87,24 +36,25 @@ const u = {
87
36
  this.$emit("input", this.val);
88
37
  }
89
38
  }
90
- }, a = {};
91
- var d = /* @__PURE__ */ o(
92
- u,
93
- r,
39
+ };
40
+ var r = function() {
41
+ var t = this, n = t._self._c;
42
+ return n("div", { staticClass: "input-number-range" }, [n("ElInputNumber", { staticClass: "flex-item", staticStyle: { width: "auto" }, attrs: { controls: t.controls, disabled: t.disabled, size: "mini" }, on: { input: t.emitInput }, model: { value: t.val[0], callback: function(a) {
43
+ t.$set(t.val, 0, a);
44
+ }, expression: "val[0]" } }), n("span", { staticStyle: { padding: "0 6px", "font-size": "12px" } }, [t._v(t._s(t.separator))]), n("ElInputNumber", { staticClass: "flex-item", staticStyle: { width: "auto" }, attrs: { controls: t.controls, disabled: t.disabled, size: "mini" }, on: { input: t.emitInput }, model: { value: t.val[1], callback: function(a) {
45
+ t.$set(t.val, 1, a);
46
+ }, expression: "val[1]" } })], 1);
47
+ }, o = [], u = /* @__PURE__ */ i(
94
48
  l,
49
+ r,
50
+ o,
95
51
  !1,
96
- c,
52
+ null,
97
53
  null,
98
54
  null,
99
55
  null
100
56
  );
101
- function c(t) {
102
- for (let e in a)
103
- this[e] = a[e];
104
- }
105
- const v = /* @__PURE__ */ function() {
106
- return d.exports;
107
- }();
57
+ const c = u.exports;
108
58
  export {
109
- v as default
59
+ c as default
110
60
  };
@@ -1,4 +1,5 @@
1
- const e = {
1
+ import { h as t } from "vue";
2
+ const n = {
2
3
  name: "JSXComponent",
3
4
  props: {
4
5
  msg: {
@@ -7,10 +8,9 @@ const e = {
7
8
  }
8
9
  },
9
10
  render() {
10
- const t = arguments[0];
11
11
  return t("div", [this.msg]);
12
12
  }
13
13
  };
14
14
  export {
15
- e as default
15
+ n as default
16
16
  };
@@ -1,48 +1,48 @@
1
- import { n as _ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
1
+ import { n as y } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
2
2
  const C = Object.prototype.toString;
3
- function d(e) {
3
+ function f(e) {
4
4
  return e != null;
5
5
  }
6
6
  function g(e) {
7
7
  return e.isComment && e.asyncFactory;
8
8
  }
9
- function v(e) {
9
+ function x(e) {
10
10
  if (Array.isArray(e))
11
- for (let t = 0; t < e.length; t++) {
12
- const n = e[t];
13
- if (d(n) && (d(n.componentOptions) || g(n)))
14
- return n;
11
+ for (let n = 0; n < e.length; n++) {
12
+ const t = e[n];
13
+ if (f(t) && (f(t.componentOptions) || g(t)))
14
+ return t;
15
15
  }
16
16
  }
17
- function x(e) {
17
+ function _(e) {
18
18
  return C.call(e) === "[object RegExp]";
19
19
  }
20
- function f(e) {
20
+ function d(e) {
21
21
  return e && (e.Ctor.options.name || e.tag);
22
22
  }
23
- function l(e, t) {
24
- return Array.isArray(e) ? e.indexOf(t) > -1 : typeof e == "string" ? e.split(",").indexOf(t) > -1 : x(e) ? e.test(t) : !1;
23
+ function u(e, n) {
24
+ return Array.isArray(e) ? e.indexOf(n) > -1 : typeof e == "string" ? e.split(",").indexOf(n) > -1 : _(e) ? e.test(n) : !1;
25
25
  }
26
- function y(e, t) {
26
+ function p(e, n) {
27
27
  if (e.length) {
28
- const n = e.indexOf(t);
29
- if (n > -1)
30
- return e.splice(n, 1);
28
+ const t = e.indexOf(n);
29
+ if (t > -1)
30
+ return e.splice(t, 1);
31
31
  }
32
32
  }
33
- function p(e, t) {
34
- const { cache: n, keys: o, _vnode: c } = e;
35
- for (const i in n) {
36
- const s = n[i];
33
+ function m(e, n) {
34
+ const { cache: t, keys: o, _vnode: c } = e;
35
+ for (const i in t) {
36
+ const s = t[i];
37
37
  if (s) {
38
38
  const a = s.name;
39
- a && !t(a) && h(n, i, o, c);
39
+ a && !n(a) && h(t, i, o, c);
40
40
  }
41
41
  }
42
42
  }
43
- function h(e, t, n, o) {
44
- const c = e[t];
45
- c && (!o || c.tag !== o.tag) && c.componentInstance.$destroy(), e[t] = null, y(n, t);
43
+ function h(e, n, t, o) {
44
+ const c = e[n];
45
+ c && (!o || c.tag !== o.tag) && c.componentInstance.$destroy(), e[n] = null, p(t, n);
46
46
  }
47
47
  const k = {
48
48
  name: "KeepViewAlive",
@@ -61,9 +61,9 @@ const k = {
61
61
  },
62
62
  mounted() {
63
63
  this.cacheVNode(), this.$watch("include", (e) => {
64
- p(this, (t) => l(e, t));
64
+ m(this, (n) => u(e, n));
65
65
  }), this.$watch("exclude", (e) => {
66
- p(this, (t) => !l(e, t));
66
+ m(this, (n) => !u(e, n));
67
67
  });
68
68
  },
69
69
  updated() {
@@ -71,57 +71,49 @@ const k = {
71
71
  },
72
72
  methods: {
73
73
  cacheVNode() {
74
- const { cache: e, keys: t, vnodeToCache: n, keyToCache: o } = this;
75
- if (n) {
76
- const { tag: c, componentInstance: i, componentOptions: s } = n;
74
+ const { cache: e, keys: n, vnodeToCache: t, keyToCache: o } = this;
75
+ if (t) {
76
+ const { tag: c, componentInstance: i, componentOptions: s } = t;
77
77
  e[o] = {
78
- name: f(s),
78
+ name: d(s),
79
79
  tag: c,
80
80
  cid: s.Ctor.cid,
81
81
  componentInstance: i
82
- }, t.push(o), this.max && t.length > parseInt(this.max) && h(e, t[0], t, this._vnode), this.vnodeToCache = null;
82
+ }, n.push(o), this.max && n.length > parseInt(this.max) && h(e, n[0], n, this._vnode), this.vnodeToCache = null;
83
83
  }
84
84
  }
85
85
  },
86
86
  render() {
87
- const e = this.$slots.default, t = v(e), n = t && t.componentOptions;
88
- if (n) {
89
- const o = f(n), { include: c, exclude: i } = this;
87
+ const e = this.$slots.default, n = x(e), t = n && n.componentOptions;
88
+ if (t) {
89
+ const o = d(t), { include: c, exclude: i } = this;
90
90
  if (
91
91
  // not included
92
- c && (!o || !l(c, o)) || // excluded
93
- i && o && l(i, o)
92
+ c && (!o || !u(c, o)) || // excluded
93
+ i && o && u(i, o)
94
94
  )
95
- return t;
96
- const { cache: s, keys: a } = this, r = t.key == null ? (
95
+ return n;
96
+ const { cache: s, keys: a } = this, r = n.key == null ? (
97
97
  // same constructor may get registered as different local components
98
98
  // so cid alone is not enough (#3269)
99
- n.Ctor.cid + (n.tag ? `::${n.tag}` : "")
100
- ) : t.key, u = s[r];
101
- u ? u.cid === n.Ctor.cid ? (t.componentInstance = u.componentInstance, y(a, r), a.push(r)) : (u.componentInstance.$destroy(), s[r] = null, this.vnodeToCache = t, this.keyToCache = r) : (this.vnodeToCache = t, this.keyToCache = r), t.data.keepAlive = !0;
99
+ t.Ctor.cid + (t.tag ? `::${t.tag}` : "")
100
+ ) : n.key, l = s[r];
101
+ l ? l.cid === t.Ctor.cid ? (n.componentInstance = l.componentInstance, p(a, r), a.push(r)) : (l.componentInstance.$destroy(), s[r] = null, this.vnodeToCache = n, this.keyToCache = r) : (this.vnodeToCache = n, this.keyToCache = r), n.data.keepAlive = !0;
102
102
  }
103
- return t || e && e[0];
103
+ return n || e && e[0];
104
104
  }
105
- };
106
- let A, O;
107
- const m = {};
108
- var T = /* @__PURE__ */ _(
105
+ }, v = null, A = null;
106
+ var O = /* @__PURE__ */ y(
109
107
  k,
108
+ v,
110
109
  A,
111
- O,
112
110
  !1,
113
- I,
111
+ null,
114
112
  null,
115
113
  null,
116
114
  null
117
115
  );
118
- function I(e) {
119
- for (let t in m)
120
- this[t] = m[t];
121
- }
122
- const b = /* @__PURE__ */ function() {
123
- return T.exports;
124
- }();
116
+ const I = O.exports;
125
117
  export {
126
- b as default
118
+ I as default
127
119
  };