element-pe 1.0.5 → 1.0.6

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 (259) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +632 -1287
  4. package/dist/index.full.min.js +9 -10
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +7 -8
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +630 -1289
  9. package/es/component.d.ts +24 -2
  10. package/es/components/affix/index.js +1 -1
  11. package/es/components/autocomplete/index.d.ts +4 -4
  12. package/es/components/autocomplete/src/index.vue.d.ts +2 -2
  13. package/es/components/carousel/index.d.ts +2 -2
  14. package/es/components/carousel/src/main.vue.d.ts +2 -2
  15. package/es/components/cascader/index.d.ts +2 -2
  16. package/es/components/cascader/src/index.vue.d.ts +1 -1
  17. package/es/components/checkbox/index.d.ts +6 -6
  18. package/es/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  19. package/es/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
  20. package/es/components/checkbox/src/checkbox.vue.d.ts +2 -2
  21. package/es/components/color-picker/index.d.ts +2 -2
  22. package/es/components/color-picker/src/components/alpha-slider.vue.d.ts +1 -1
  23. package/es/components/color-picker/src/components/hue-slider.vue.d.ts +1 -1
  24. package/es/components/color-picker/src/index.vue.d.ts +1 -1
  25. package/es/components/descriptions/index.d.ts +8 -8
  26. package/es/components/descriptions/src/description-item.d.ts +2 -2
  27. package/es/components/descriptions/src/descriptions-cell.d.ts +1 -1
  28. package/es/components/descriptions/src/index.vue.d.ts +4 -4
  29. package/es/components/drawer/index.d.ts +6 -6
  30. package/es/components/drawer/src/index.vue.d.ts +3 -3
  31. package/es/components/dropdown/index.d.ts +2 -2
  32. package/es/components/dropdown/src/dropdown.vue.d.ts +2 -2
  33. package/es/components/form/index.js +2 -2
  34. package/es/components/icon/index.d.ts +1 -1
  35. package/es/components/icon/src/icon.vue.d.ts +1 -1
  36. package/es/components/image/index.d.ts +3 -3
  37. package/es/components/image/index.js +2 -3
  38. package/es/components/image/src/image.d.ts +1 -1
  39. package/es/components/image/src/image.vue.d.ts +3 -3
  40. package/es/components/image-viewer/index.d.ts +28 -104
  41. package/es/components/image-viewer/index.js +60 -61
  42. package/es/components/image-viewer/src/image-viewer.d.ts +14 -0
  43. package/es/components/image-viewer/src/image-viewer.vue.d.ts +55 -0
  44. package/es/components/input/index.d.ts +116 -360
  45. package/es/components/input/index.js +216 -209
  46. package/es/components/input/src/calc-textarea-height.d.ts +6 -0
  47. package/es/components/input/src/input.d.ts +46 -0
  48. package/es/components/input/src/input.vue.d.ts +162 -0
  49. package/es/components/input-number/index.d.ts +2 -2
  50. package/es/components/input-number/src/index.vue.d.ts +1 -1
  51. package/es/components/menu/index.d.ts +7 -3
  52. package/es/components/menu/index.js +8 -3
  53. package/es/components/menu/src/menu.d.ts +8 -3
  54. package/es/components/pagination/index.d.ts +2 -2
  55. package/es/components/pagination/src/pagination.d.ts +2 -2
  56. package/es/components/progress/index.js +0 -1
  57. package/es/components/radio/index.d.ts +2 -2
  58. package/es/components/radio/src/radio.vue.d.ts +2 -2
  59. package/es/components/rate/index.js +1 -1
  60. package/es/components/row/index.d.ts +4 -4
  61. package/es/components/row/src/row.d.ts +2 -2
  62. package/es/components/scrollbar/index.d.ts +4 -4
  63. package/es/components/scrollbar/src/index.vue.d.ts +2 -2
  64. package/es/components/select/index.d.ts +3 -3
  65. package/es/components/select/src/select.vue.d.ts +3 -3
  66. package/es/components/select-v2/index.d.ts +6 -6
  67. package/es/components/select-v2/index.js +2 -0
  68. package/es/components/select-v2/src/select.vue.d.ts +3 -3
  69. package/es/components/slider/index.d.ts +4 -4
  70. package/es/components/slider/src/button.vue.d.ts +2 -2
  71. package/es/components/slider/src/index.vue.d.ts +2 -2
  72. package/es/components/space/index.d.ts +2 -2
  73. package/es/components/space/src/space.d.ts +2 -2
  74. package/es/components/steps/index.d.ts +2 -2
  75. package/es/components/steps/src/index.vue.d.ts +2 -2
  76. package/es/components/table/index.d.ts +4 -4
  77. package/es/components/table/index.js +17 -9
  78. package/es/components/table/src/table.vue.d.ts +4 -4
  79. package/es/components/tag/index.d.ts +1 -1
  80. package/es/components/tag/src/tag.vue.d.ts +1 -1
  81. package/es/components/timeline/index.d.ts +4 -4
  82. package/es/components/timeline/src/item.vue.d.ts +2 -2
  83. package/es/components/tree/index.js +1 -1
  84. package/es/components/tree-v2/index.d.ts +1 -1
  85. package/es/components/tree-v2/index.js +2 -24
  86. package/es/components/tree-v2/src/tree.vue.d.ts +1 -1
  87. package/es/components/upload/index.d.ts +4 -4
  88. package/es/components/upload/src/index.vue.d.ts +2 -2
  89. package/es/components/upload/src/upload.vue.d.ts +2 -2
  90. package/es/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  91. package/es/components/virtual-list/src/builders/build-list.d.ts +4 -4
  92. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  93. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  94. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  95. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  96. package/es/components/virtual-list/src/components/scrollbar.d.ts +1 -1
  97. package/es/utils/dom.d.ts +5 -5
  98. package/es/utils/dom.js +29 -36
  99. package/es/utils/props.d.ts +2 -2
  100. package/es/utils/props.js +15 -7
  101. package/es/utils/util.d.ts +2 -2
  102. package/es/utils/util.js +3 -3
  103. package/es/version.d.ts +1 -1
  104. package/es/version.js +1 -1
  105. package/lib/component.d.ts +24 -2
  106. package/lib/components/affix/index.js +1 -1
  107. package/lib/components/autocomplete/index.d.ts +4 -4
  108. package/lib/components/autocomplete/src/index.vue.d.ts +2 -2
  109. package/lib/components/carousel/index.d.ts +2 -2
  110. package/lib/components/carousel/src/main.vue.d.ts +2 -2
  111. package/lib/components/cascader/index.d.ts +2 -2
  112. package/lib/components/cascader/src/index.vue.d.ts +1 -1
  113. package/lib/components/checkbox/index.d.ts +6 -6
  114. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +1 -1
  115. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +1 -1
  116. package/lib/components/checkbox/src/checkbox.vue.d.ts +2 -2
  117. package/lib/components/color-picker/index.d.ts +2 -2
  118. package/lib/components/color-picker/src/components/alpha-slider.vue.d.ts +1 -1
  119. package/lib/components/color-picker/src/components/hue-slider.vue.d.ts +1 -1
  120. package/lib/components/color-picker/src/index.vue.d.ts +1 -1
  121. package/lib/components/descriptions/index.d.ts +8 -8
  122. package/lib/components/descriptions/src/description-item.d.ts +2 -2
  123. package/lib/components/descriptions/src/descriptions-cell.d.ts +1 -1
  124. package/lib/components/descriptions/src/index.vue.d.ts +4 -4
  125. package/lib/components/drawer/index.d.ts +6 -6
  126. package/lib/components/drawer/src/index.vue.d.ts +3 -3
  127. package/lib/components/dropdown/index.d.ts +2 -2
  128. package/lib/components/dropdown/src/dropdown.vue.d.ts +2 -2
  129. package/lib/components/form/index.js +2 -2
  130. package/lib/components/icon/index.d.ts +1 -1
  131. package/lib/components/icon/src/icon.vue.d.ts +1 -1
  132. package/lib/components/image/index.d.ts +3 -3
  133. package/lib/components/image/index.js +2 -3
  134. package/lib/components/image/src/image.d.ts +1 -1
  135. package/lib/components/image/src/image.vue.d.ts +3 -3
  136. package/lib/components/image-viewer/index.d.ts +28 -104
  137. package/lib/components/image-viewer/index.js +61 -60
  138. package/lib/components/image-viewer/src/image-viewer.d.ts +14 -0
  139. package/lib/components/image-viewer/src/image-viewer.vue.d.ts +55 -0
  140. package/lib/components/input/index.d.ts +116 -360
  141. package/lib/components/input/index.js +215 -206
  142. package/lib/components/input/src/calc-textarea-height.d.ts +6 -0
  143. package/lib/components/input/src/input.d.ts +46 -0
  144. package/lib/components/input/src/input.vue.d.ts +162 -0
  145. package/lib/components/input-number/index.d.ts +2 -2
  146. package/lib/components/input-number/src/index.vue.d.ts +1 -1
  147. package/lib/components/menu/index.d.ts +7 -3
  148. package/lib/components/menu/index.js +8 -3
  149. package/lib/components/menu/src/menu.d.ts +8 -3
  150. package/lib/components/pagination/index.d.ts +2 -2
  151. package/lib/components/pagination/src/pagination.d.ts +2 -2
  152. package/lib/components/progress/index.js +0 -1
  153. package/lib/components/radio/index.d.ts +2 -2
  154. package/lib/components/radio/src/radio.vue.d.ts +2 -2
  155. package/lib/components/rate/index.js +1 -1
  156. package/lib/components/row/index.d.ts +4 -4
  157. package/lib/components/row/src/row.d.ts +2 -2
  158. package/lib/components/scrollbar/index.d.ts +4 -4
  159. package/lib/components/scrollbar/src/index.vue.d.ts +2 -2
  160. package/lib/components/select/index.d.ts +3 -3
  161. package/lib/components/select/src/select.vue.d.ts +3 -3
  162. package/lib/components/select-v2/index.d.ts +6 -6
  163. package/lib/components/select-v2/index.js +2 -0
  164. package/lib/components/select-v2/src/select.vue.d.ts +3 -3
  165. package/lib/components/slider/index.d.ts +4 -4
  166. package/lib/components/slider/src/button.vue.d.ts +2 -2
  167. package/lib/components/slider/src/index.vue.d.ts +2 -2
  168. package/lib/components/space/index.d.ts +2 -2
  169. package/lib/components/space/src/space.d.ts +2 -2
  170. package/lib/components/steps/index.d.ts +2 -2
  171. package/lib/components/steps/src/index.vue.d.ts +2 -2
  172. package/lib/components/table/index.d.ts +4 -4
  173. package/lib/components/table/index.js +17 -9
  174. package/lib/components/table/src/table.vue.d.ts +4 -4
  175. package/lib/components/tag/index.d.ts +1 -1
  176. package/lib/components/tag/src/tag.vue.d.ts +1 -1
  177. package/lib/components/timeline/index.d.ts +4 -4
  178. package/lib/components/timeline/src/item.vue.d.ts +2 -2
  179. package/lib/components/tree/index.js +1 -1
  180. package/lib/components/tree-v2/index.d.ts +1 -1
  181. package/lib/components/tree-v2/index.js +2 -24
  182. package/lib/components/tree-v2/src/tree.vue.d.ts +1 -1
  183. package/lib/components/upload/index.d.ts +4 -4
  184. package/lib/components/upload/src/index.vue.d.ts +2 -2
  185. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  186. package/lib/components/virtual-list/src/builders/build-grid.d.ts +3 -3
  187. package/lib/components/virtual-list/src/builders/build-list.d.ts +4 -4
  188. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +3 -3
  189. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +4 -4
  190. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +3 -3
  191. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +4 -4
  192. package/lib/components/virtual-list/src/components/scrollbar.d.ts +1 -1
  193. package/lib/utils/dom.d.ts +5 -5
  194. package/lib/utils/dom.js +29 -36
  195. package/lib/utils/props.d.ts +2 -2
  196. package/lib/utils/props.js +15 -7
  197. package/lib/utils/util.d.ts +2 -2
  198. package/lib/utils/util.js +2 -2
  199. package/lib/version.d.ts +1 -1
  200. package/lib/version.js +1 -1
  201. package/package.json +3 -2
  202. package/packages/components/affix/src/affix.vue +1 -1
  203. package/packages/components/color-picker/src/index.vue +1 -1
  204. package/packages/components/form/__tests__/form.spec.ts +1 -1
  205. package/packages/components/form/src/form-item.vue +2 -2
  206. package/packages/components/image/src/image.ts +3 -3
  207. package/packages/components/image/src/image.vue +1 -1
  208. package/packages/components/image-viewer/__tests__/image-viewer.spec.ts +1 -1
  209. package/packages/components/image-viewer/index.ts +5 -10
  210. package/packages/components/image-viewer/src/image-viewer.ts +32 -0
  211. package/packages/components/image-viewer/src/{index.vue → image-viewer.vue} +73 -82
  212. package/packages/components/input/__tests__/input.spec.ts +7 -7
  213. package/packages/components/input/index.ts +5 -10
  214. package/packages/components/input/src/{calcTextareaHeight.ts → calc-textarea-height.ts} +9 -7
  215. package/packages/components/input/src/input.ts +100 -0
  216. package/packages/components/input/src/{index.vue → input.vue} +135 -239
  217. package/packages/components/menu/src/menu.ts +10 -3
  218. package/packages/components/progress/src/index.vue +0 -1
  219. package/packages/components/rate/src/index.vue +1 -1
  220. package/packages/components/select-v2/src/useSelect.ts +2 -0
  221. package/packages/components/space/__tests__/space.spec.ts +1 -1
  222. package/packages/components/switch/__tests__/switch.spec.ts +1 -1
  223. package/packages/components/table/src/store/tree.ts +18 -3
  224. package/packages/components/table/src/table-body/render-helper.ts +1 -1
  225. package/packages/components/table/src/table-column/index.ts +4 -1
  226. package/packages/components/table/src/table-layout.ts +2 -2
  227. package/packages/components/table/src/util.ts +1 -1
  228. package/packages/components/tree/src/model/node.ts +1 -1
  229. package/packages/element-plus/package.json +3 -2
  230. package/packages/element-plus/version.ts +1 -1
  231. package/packages/theme-chalk/package.json +1 -2
  232. package/packages/theme-chalk/src/message-box.scss +1 -0
  233. package/packages/utils/dist/es/dom.d.ts +5 -5
  234. package/packages/utils/dist/es/dom.js +29 -36
  235. package/packages/utils/dist/es/props.d.ts +2 -2
  236. package/packages/utils/dist/es/props.js +15 -7
  237. package/packages/utils/dist/es/util.d.ts +2 -2
  238. package/packages/utils/dist/es/util.js +3 -3
  239. package/packages/utils/dist/lib/dom.d.ts +5 -5
  240. package/packages/utils/dist/lib/dom.js +29 -36
  241. package/packages/utils/dist/lib/props.d.ts +2 -2
  242. package/packages/utils/dist/lib/props.js +15 -7
  243. package/packages/utils/dist/lib/util.d.ts +2 -2
  244. package/packages/utils/dist/lib/util.js +2 -2
  245. package/packages/utils/dom.ts +34 -41
  246. package/packages/utils/props.ts +27 -11
  247. package/packages/utils/tests/dom.spec.ts +183 -0
  248. package/packages/utils/util.ts +8 -9
  249. package/tags.json +1 -1
  250. package/theme-chalk/el-message-box.css +1 -1
  251. package/theme-chalk/index.css +1 -1
  252. package/theme-chalk/src/message-box.scss +1 -0
  253. package/web-types.json +1 -1
  254. package/es/components/image-viewer/src/index.vue.d.ts +0 -67
  255. package/es/components/input/src/calcTextareaHeight.d.ts +0 -6
  256. package/es/components/input/src/index.vue.d.ts +0 -197
  257. package/lib/components/image-viewer/src/index.vue.d.ts +0 -67
  258. package/lib/components/input/src/calcTextareaHeight.d.ts +0 -6
  259. package/lib/components/input/src/index.vue.d.ts +0 -197
@@ -1122,8 +1122,8 @@
1122
1122
  var _cacheHas = cacheHas;
1123
1123
 
1124
1124
  /** Used to compose bitmasks for value comparisons. */
1125
- var COMPARE_PARTIAL_FLAG$5 = 1,
1126
- COMPARE_UNORDERED_FLAG$3 = 2;
1125
+ var COMPARE_PARTIAL_FLAG$3 = 1,
1126
+ COMPARE_UNORDERED_FLAG$1 = 2;
1127
1127
 
1128
1128
  /**
1129
1129
  * A specialized version of `baseIsEqualDeep` for arrays with support for
@@ -1139,7 +1139,7 @@
1139
1139
  * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
1140
1140
  */
1141
1141
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
1142
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
1142
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
1143
1143
  arrLength = array.length,
1144
1144
  othLength = other.length;
1145
1145
 
@@ -1154,7 +1154,7 @@
1154
1154
  }
1155
1155
  var index = -1,
1156
1156
  result = true,
1157
- seen = (bitmask & COMPARE_UNORDERED_FLAG$3) ? new _SetCache : undefined;
1157
+ seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new _SetCache : undefined;
1158
1158
 
1159
1159
  stack.set(array, other);
1160
1160
  stack.set(other, array);
@@ -1246,8 +1246,8 @@
1246
1246
  var _setToArray = setToArray;
1247
1247
 
1248
1248
  /** Used to compose bitmasks for value comparisons. */
1249
- var COMPARE_PARTIAL_FLAG$4 = 1,
1250
- COMPARE_UNORDERED_FLAG$2 = 2;
1249
+ var COMPARE_PARTIAL_FLAG$2 = 1,
1250
+ COMPARE_UNORDERED_FLAG = 2;
1251
1251
 
1252
1252
  /** `Object#toString` result references. */
1253
1253
  var boolTag$3 = '[object Boolean]',
@@ -1264,8 +1264,8 @@
1264
1264
  dataViewTag$4 = '[object DataView]';
1265
1265
 
1266
1266
  /** Used to convert symbols to primitives and strings. */
1267
- var symbolProto$2 = _Symbol ? _Symbol.prototype : undefined,
1268
- symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : undefined;
1267
+ var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
1268
+ symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : undefined;
1269
1269
 
1270
1270
  /**
1271
1271
  * A specialized version of `baseIsEqualDeep` for comparing objects of
@@ -1322,7 +1322,7 @@
1322
1322
  var convert = _mapToArray;
1323
1323
 
1324
1324
  case setTag$5:
1325
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
1325
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
1326
1326
  convert || (convert = _setToArray);
1327
1327
 
1328
1328
  if (object.size != other.size && !isPartial) {
@@ -1333,7 +1333,7 @@
1333
1333
  if (stacked) {
1334
1334
  return stacked == other;
1335
1335
  }
1336
- bitmask |= COMPARE_UNORDERED_FLAG$2;
1336
+ bitmask |= COMPARE_UNORDERED_FLAG;
1337
1337
 
1338
1338
  // Recursively compare objects (susceptible to call stack limits).
1339
1339
  stack.set(object, other);
@@ -2032,7 +2032,7 @@
2032
2032
  var _getAllKeys = getAllKeys;
2033
2033
 
2034
2034
  /** Used to compose bitmasks for value comparisons. */
2035
- var COMPARE_PARTIAL_FLAG$3 = 1;
2035
+ var COMPARE_PARTIAL_FLAG$1 = 1;
2036
2036
 
2037
2037
  /** Used for built-in method references. */
2038
2038
  var objectProto$4 = Object.prototype;
@@ -2054,7 +2054,7 @@
2054
2054
  * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
2055
2055
  */
2056
2056
  function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
2057
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
2057
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
2058
2058
  objProps = _getAllKeys(object),
2059
2059
  objLength = objProps.length,
2060
2060
  othProps = _getAllKeys(other),
@@ -2192,7 +2192,7 @@
2192
2192
  var _getTag = getTag;
2193
2193
 
2194
2194
  /** Used to compose bitmasks for value comparisons. */
2195
- var COMPARE_PARTIAL_FLAG$2 = 1;
2195
+ var COMPARE_PARTIAL_FLAG = 1;
2196
2196
 
2197
2197
  /** `Object#toString` result references. */
2198
2198
  var argsTag$1 = '[object Arguments]',
@@ -2245,7 +2245,7 @@
2245
2245
  ? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
2246
2246
  : _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
2247
2247
  }
2248
- if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
2248
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
2249
2249
  var objIsWrapped = objIsObj && hasOwnProperty$3.call(object, '__wrapped__'),
2250
2250
  othIsWrapped = othIsObj && hasOwnProperty$3.call(other, '__wrapped__');
2251
2251
 
@@ -2292,6 +2292,7 @@
2292
2292
 
2293
2293
  var _baseIsEqual = baseIsEqual;
2294
2294
 
2295
+ const SCOPE$1 = "Util";
2295
2296
  function toObject(arr) {
2296
2297
  const res = {};
2297
2298
  for (let i = 0; i < arr.length; i++) {
@@ -2327,7 +2328,7 @@
2327
2328
  tempObj = tempObj[key2];
2328
2329
  } else {
2329
2330
  if (strict) {
2330
- throw new Error("please transfer a valid prop path to form item!");
2331
+ throwError(SCOPE$1, "Please transfer a valid prop path to form item!");
2331
2332
  }
2332
2333
  break;
2333
2334
  }
@@ -2375,7 +2376,7 @@
2375
2376
  return;
2376
2377
  locked = true;
2377
2378
  window.requestAnimationFrame(() => {
2378
- fn.apply(this, args);
2379
+ Reflect.apply(fn, this, args);
2379
2380
  locked = false;
2380
2381
  });
2381
2382
  };
@@ -2421,8 +2422,8 @@
2421
2422
  };
2422
2423
  };
2423
2424
 
2424
- const trim = function(s) {
2425
- return (s || "").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, "");
2425
+ const trimArr = function(s) {
2426
+ return (s || "").split(" ").filter((item) => !!item.trim());
2426
2427
  };
2427
2428
  const on = function(element, event, handler, useCapture = false) {
2428
2429
  if (element && event && handler) {
@@ -2451,52 +2452,44 @@
2451
2452
  if (el.classList) {
2452
2453
  return el.classList.contains(cls);
2453
2454
  } else {
2454
- return ` ${el.className} `.indexOf(` ${cls} `) > -1;
2455
+ const className = el.getAttribute("class") || "";
2456
+ return className.split(" ").includes(cls);
2455
2457
  }
2456
2458
  }
2457
2459
  function addClass(el, cls) {
2458
2460
  if (!el)
2459
2461
  return;
2460
- let curClass = el.className;
2461
- const classes = (cls || "").split(" ");
2462
- for (let i = 0, j = classes.length; i < j; i++) {
2463
- const clsName = classes[i];
2464
- if (!clsName)
2465
- continue;
2466
- if (el.classList) {
2467
- el.classList.add(clsName);
2468
- } else if (!hasClass(el, clsName)) {
2469
- curClass += ` ${clsName}`;
2470
- }
2471
- }
2472
- if (!el.classList) {
2473
- el.className = curClass;
2462
+ let className = el.getAttribute("class") || "";
2463
+ const curClass = trimArr(className);
2464
+ const classes = (cls || "").split(" ").filter((item) => !curClass.includes(item) && !!item.trim());
2465
+ if (el.classList) {
2466
+ el.classList.add(...classes);
2467
+ } else {
2468
+ className += ` ${classes.join(" ")}`;
2469
+ el.setAttribute("class", className);
2474
2470
  }
2475
2471
  }
2476
2472
  function removeClass(el, cls) {
2477
2473
  if (!el || !cls)
2478
2474
  return;
2479
- const classes = cls.split(" ");
2480
- let curClass = ` ${el.className} `;
2481
- for (let i = 0, j = classes.length; i < j; i++) {
2482
- const clsName = classes[i];
2483
- if (!clsName)
2484
- continue;
2485
- if (el.classList) {
2486
- el.classList.remove(clsName);
2487
- } else if (hasClass(el, clsName)) {
2488
- curClass = curClass.replace(` ${clsName} `, " ");
2489
- }
2490
- }
2491
- if (!el.classList) {
2492
- el.className = trim(curClass);
2475
+ const classes = trimArr(cls);
2476
+ let curClass = el.getAttribute("class") || "";
2477
+ if (el.classList) {
2478
+ el.classList.remove(...classes);
2479
+ return;
2493
2480
  }
2481
+ classes.forEach((item) => {
2482
+ curClass = curClass.replace(` ${item} `, " ");
2483
+ });
2484
+ const className = trimArr(curClass).join(" ");
2485
+ el.setAttribute("class", className);
2494
2486
  }
2495
2487
  const getStyle = function(element, styleName) {
2488
+ var _a;
2496
2489
  if (isServer)
2497
- return;
2490
+ return "";
2498
2491
  if (!element || !styleName)
2499
- return null;
2492
+ return "";
2500
2493
  styleName = camelize(styleName);
2501
2494
  if (styleName === "float") {
2502
2495
  styleName = "cssFloat";
@@ -2505,7 +2498,7 @@
2505
2498
  const style = element.style[styleName];
2506
2499
  if (style)
2507
2500
  return style;
2508
- const computed = document.defaultView.getComputedStyle(element, "");
2501
+ const computed = (_a = document.defaultView) == null ? void 0 : _a.getComputedStyle(element, "");
2509
2502
  return computed ? computed[styleName] : "";
2510
2503
  } catch (e) {
2511
2504
  return element.style[styleName];
@@ -2513,7 +2506,7 @@
2513
2506
  };
2514
2507
  const isScroll = (el, isVertical) => {
2515
2508
  if (isServer)
2516
- return;
2509
+ return null;
2517
2510
  const determinedDirection = isVertical === null || isVertical === void 0;
2518
2511
  const overflow = determinedDirection ? getStyle(el, "overflow") : isVertical ? getStyle(el, "overflow-y") : getStyle(el, "overflow-x");
2519
2512
  return overflow.match(/(scroll|auto|overlay)/);
@@ -2877,19 +2870,19 @@
2877
2870
  error: "el-icon-circle-close"
2878
2871
  };
2879
2872
 
2880
- var __defProp$L = Object.defineProperty;
2881
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
2882
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
2883
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
2884
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2885
- var __spreadValues$L = (a, b) => {
2873
+ var __defProp$M = Object.defineProperty;
2874
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
2875
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
2876
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
2877
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2878
+ var __spreadValues$M = (a, b) => {
2886
2879
  for (var prop in b || (b = {}))
2887
- if (__hasOwnProp$L.call(b, prop))
2888
- __defNormalProp$L(a, prop, b[prop]);
2889
- if (__getOwnPropSymbols$L)
2890
- for (var prop of __getOwnPropSymbols$L(b)) {
2891
- if (__propIsEnum$L.call(b, prop))
2892
- __defNormalProp$L(a, prop, b[prop]);
2880
+ if (__hasOwnProp$M.call(b, prop))
2881
+ __defNormalProp$M(a, prop, b[prop]);
2882
+ if (__getOwnPropSymbols$M)
2883
+ for (var prop of __getOwnPropSymbols$M(b)) {
2884
+ if (__propIsEnum$M.call(b, prop))
2885
+ __defNormalProp$M(a, prop, b[prop]);
2893
2886
  }
2894
2887
  return a;
2895
2888
  };
@@ -2975,7 +2968,7 @@
2975
2968
  };
2976
2969
  vue.watch(() => props.modelValue, onChange);
2977
2970
  if (shouldHideWhenRouteChanges && appContext.config.globalProperties.$route !== void 0) {
2978
- vue.watch(() => __spreadValues$L({}, proxy.$route), () => {
2971
+ vue.watch(() => __spreadValues$M({}, proxy.$route), () => {
2979
2972
  if (shouldHideWhenRouteChanges.value && indicator.value) {
2980
2973
  hide();
2981
2974
  }
@@ -3147,39 +3140,39 @@
3147
3140
  return placement.split('-')[0];
3148
3141
  }
3149
3142
 
3150
- var round$1 = Math.round;
3151
- function getBoundingClientRect(element, includeScale) {
3152
- if (includeScale === void 0) {
3153
- includeScale = false;
3154
- }
3143
+ // import { isHTMLElement } from './instanceOf';
3144
+ function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
3145
+ includeScale) {
3155
3146
 
3156
3147
  var rect = element.getBoundingClientRect();
3157
3148
  var scaleX = 1;
3158
- var scaleY = 1;
3159
-
3160
- if (isHTMLElement(element) && includeScale) {
3161
- var offsetHeight = element.offsetHeight;
3162
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
3163
- // Fallback to 1 in case both values are `0`
3164
-
3165
- if (offsetWidth > 0) {
3166
- scaleX = rect.width / offsetWidth || 1;
3167
- }
3168
-
3169
- if (offsetHeight > 0) {
3170
- scaleY = rect.height / offsetHeight || 1;
3171
- }
3172
- }
3149
+ var scaleY = 1; // FIXME:
3150
+ // `offsetWidth` returns an integer while `getBoundingClientRect`
3151
+ // returns a float. This results in `scaleX` or `scaleY` being
3152
+ // non-1 when it should be for elements that aren't a full pixel in
3153
+ // width or height.
3154
+ // if (isHTMLElement(element) && includeScale) {
3155
+ // const offsetHeight = element.offsetHeight;
3156
+ // const offsetWidth = element.offsetWidth;
3157
+ // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
3158
+ // // Fallback to 1 in case both values are `0`
3159
+ // if (offsetWidth > 0) {
3160
+ // scaleX = rect.width / offsetWidth || 1;
3161
+ // }
3162
+ // if (offsetHeight > 0) {
3163
+ // scaleY = rect.height / offsetHeight || 1;
3164
+ // }
3165
+ // }
3173
3166
 
3174
3167
  return {
3175
- width: round$1(rect.width / scaleX),
3176
- height: round$1(rect.height / scaleY),
3177
- top: round$1(rect.top / scaleY),
3178
- right: round$1(rect.right / scaleX),
3179
- bottom: round$1(rect.bottom / scaleY),
3180
- left: round$1(rect.left / scaleX),
3181
- x: round$1(rect.left / scaleX),
3182
- y: round$1(rect.top / scaleY)
3168
+ width: rect.width / scaleX,
3169
+ height: rect.height / scaleY,
3170
+ top: rect.top / scaleY,
3171
+ right: rect.right / scaleX,
3172
+ bottom: rect.bottom / scaleY,
3173
+ left: rect.left / scaleX,
3174
+ x: rect.left / scaleX,
3175
+ y: rect.top / scaleY
3183
3176
  };
3184
3177
  }
3185
3178
 
@@ -4423,9 +4416,9 @@
4423
4416
  }
4424
4417
 
4425
4418
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
4426
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
4419
+ isHTMLElement(offsetParent) && isElementScaled(offsetParent);
4427
4420
  var documentElement = getDocumentElement(offsetParent);
4428
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
4421
+ var rect = getBoundingClientRect(elementOrVirtualElement);
4429
4422
  var scroll = {
4430
4423
  scrollLeft: 0,
4431
4424
  scrollTop: 0
@@ -4442,7 +4435,7 @@
4442
4435
  }
4443
4436
 
4444
4437
  if (isHTMLElement(offsetParent)) {
4445
- offsets = getBoundingClientRect(offsetParent, true);
4438
+ offsets = getBoundingClientRect(offsetParent);
4446
4439
  offsets.x += offsetParent.clientLeft;
4447
4440
  offsets.y += offsetParent.clientTop;
4448
4441
  } else if (documentElement) {
@@ -6188,19 +6181,19 @@
6188
6181
  }
6189
6182
  };
6190
6183
 
6191
- var __defProp$K = Object.defineProperty;
6192
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
6193
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
6194
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
6195
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6196
- var __spreadValues$K = (a, b) => {
6184
+ var __defProp$L = Object.defineProperty;
6185
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
6186
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
6187
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
6188
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6189
+ var __spreadValues$L = (a, b) => {
6197
6190
  for (var prop in b || (b = {}))
6198
- if (__hasOwnProp$K.call(b, prop))
6199
- __defNormalProp$K(a, prop, b[prop]);
6200
- if (__getOwnPropSymbols$K)
6201
- for (var prop of __getOwnPropSymbols$K(b)) {
6202
- if (__propIsEnum$K.call(b, prop))
6203
- __defNormalProp$K(a, prop, b[prop]);
6191
+ if (__hasOwnProp$L.call(b, prop))
6192
+ __defNormalProp$L(a, prop, b[prop]);
6193
+ if (__getOwnPropSymbols$L)
6194
+ for (var prop of __getOwnPropSymbols$L(b)) {
6195
+ if (__propIsEnum$L.call(b, prop))
6196
+ __defNormalProp$L(a, prop, b[prop]);
6204
6197
  }
6205
6198
  return a;
6206
6199
  };
@@ -6254,7 +6247,7 @@
6254
6247
  return vue.computed(() => {
6255
6248
  if (isArray$1(props.trigger)) {
6256
6249
  return Object.values(props.trigger).reduce((pre, t) => {
6257
- return __spreadValues$K(__spreadValues$K({}, pre), mapEvents(t));
6250
+ return __spreadValues$L(__spreadValues$L({}, pre), mapEvents(t));
6258
6251
  }, {});
6259
6252
  } else {
6260
6253
  return mapEvents(props.trigger);
@@ -6262,21 +6255,21 @@
6262
6255
  });
6263
6256
  };
6264
6257
 
6265
- var __defProp$J = Object.defineProperty;
6258
+ var __defProp$K = Object.defineProperty;
6266
6259
  var __defProps$w = Object.defineProperties;
6267
6260
  var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
6268
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
6269
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
6270
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
6271
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6272
- var __spreadValues$J = (a, b) => {
6261
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
6262
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
6263
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
6264
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6265
+ var __spreadValues$K = (a, b) => {
6273
6266
  for (var prop in b || (b = {}))
6274
- if (__hasOwnProp$J.call(b, prop))
6275
- __defNormalProp$J(a, prop, b[prop]);
6276
- if (__getOwnPropSymbols$J)
6277
- for (var prop of __getOwnPropSymbols$J(b)) {
6278
- if (__propIsEnum$J.call(b, prop))
6279
- __defNormalProp$J(a, prop, b[prop]);
6267
+ if (__hasOwnProp$K.call(b, prop))
6268
+ __defNormalProp$K(a, prop, b[prop]);
6269
+ if (__getOwnPropSymbols$K)
6270
+ for (var prop of __getOwnPropSymbols$K(b)) {
6271
+ if (__propIsEnum$K.call(b, prop))
6272
+ __defNormalProp$K(a, prop, b[prop]);
6280
6273
  }
6281
6274
  return a;
6282
6275
  };
@@ -6297,7 +6290,7 @@
6297
6290
  default: ""
6298
6291
  }
6299
6292
  };
6300
- const usePopperProps = __spreadProps$w(__spreadValues$J({}, usePopperControlProps), {
6293
+ const usePopperProps = __spreadProps$w(__spreadValues$K({}, usePopperControlProps), {
6301
6294
  autoClose: {
6302
6295
  type: Number,
6303
6296
  default: 0
@@ -6439,7 +6432,7 @@
6439
6432
  }
6440
6433
  });
6441
6434
  }
6442
- return __spreadProps$w(__spreadValues$J({}, props.popperOptions), {
6435
+ return __spreadProps$w(__spreadValues$K({}, props.popperOptions), {
6443
6436
  modifiers
6444
6437
  });
6445
6438
  }
@@ -6498,7 +6491,7 @@
6498
6491
  return vue.cloneVNode(firstElement, triggerProps, true);
6499
6492
  }
6500
6493
  function render() {
6501
- const trigger = triggerRenderer(__spreadValues$J({
6494
+ const trigger = triggerRenderer(__spreadValues$K({
6502
6495
  "aria-describedby": popperId,
6503
6496
  class: props.class,
6504
6497
  style: props.style,
@@ -6514,19 +6507,19 @@
6514
6507
  };
6515
6508
  };
6516
6509
 
6517
- var __defProp$I = Object.defineProperty;
6518
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
6519
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
6520
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
6521
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6522
- var __spreadValues$I = (a, b) => {
6510
+ var __defProp$J = Object.defineProperty;
6511
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
6512
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
6513
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
6514
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6515
+ var __spreadValues$J = (a, b) => {
6523
6516
  for (var prop in b || (b = {}))
6524
- if (__hasOwnProp$I.call(b, prop))
6525
- __defNormalProp$I(a, prop, b[prop]);
6526
- if (__getOwnPropSymbols$I)
6527
- for (var prop of __getOwnPropSymbols$I(b)) {
6528
- if (__propIsEnum$I.call(b, prop))
6529
- __defNormalProp$I(a, prop, b[prop]);
6517
+ if (__hasOwnProp$J.call(b, prop))
6518
+ __defNormalProp$J(a, prop, b[prop]);
6519
+ if (__getOwnPropSymbols$J)
6520
+ for (var prop of __getOwnPropSymbols$J(b)) {
6521
+ if (__propIsEnum$J.call(b, prop))
6522
+ __defNormalProp$J(a, prop, b[prop]);
6530
6523
  }
6531
6524
  return a;
6532
6525
  };
@@ -6548,15 +6541,15 @@
6548
6541
  return vue.unref(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);
6549
6542
  });
6550
6543
  const themeVars = useThemeVars();
6551
- const customVars = __spreadValues$I(__spreadValues$I({}, themeVars), vue.unref(vars));
6544
+ const customVars = __spreadValues$J(__spreadValues$J({}, themeVars), vue.unref(vars));
6552
6545
  vue.provide(themeVarsKey, vue.ref(customVars));
6553
6546
  vue.onMounted(() => {
6554
6547
  vue.isRef(vars) ? stopWatchCssVar = vue.watch(vars, (val) => {
6555
- setVars(elRef.value, __spreadValues$I(__spreadValues$I({}, vue.unref(themeVars)), val));
6548
+ setVars(elRef.value, __spreadValues$J(__spreadValues$J({}, vue.unref(themeVars)), val));
6556
6549
  }, {
6557
6550
  immediate: true,
6558
6551
  deep: true
6559
- }) : setVars(elRef.value, __spreadValues$I(__spreadValues$I({}, vue.unref(themeVars)), vars));
6552
+ }) : setVars(elRef.value, __spreadValues$J(__spreadValues$J({}, vue.unref(themeVars)), vars));
6560
6553
  });
6561
6554
  vue.onUnmounted(() => stopWatchCssVar && stopWatchCssVar());
6562
6555
  }
@@ -6767,835 +6760,9 @@
6767
6760
 
6768
6761
  const elPaginationKey = Symbol("elPaginationKey");
6769
6762
 
6770
- var defineProperty = (function() {
6771
- try {
6772
- var func = _getNative(Object, 'defineProperty');
6773
- func({}, '', {});
6774
- return func;
6775
- } catch (e) {}
6776
- }());
6777
-
6778
- var _defineProperty = defineProperty;
6779
-
6780
- /**
6781
- * The base implementation of `assignValue` and `assignMergeValue` without
6782
- * value checks.
6783
- *
6784
- * @private
6785
- * @param {Object} object The object to modify.
6786
- * @param {string} key The key of the property to assign.
6787
- * @param {*} value The value to assign.
6788
- */
6789
- function baseAssignValue(object, key, value) {
6790
- if (key == '__proto__' && _defineProperty) {
6791
- _defineProperty(object, key, {
6792
- 'configurable': true,
6793
- 'enumerable': true,
6794
- 'value': value,
6795
- 'writable': true
6796
- });
6797
- } else {
6798
- object[key] = value;
6799
- }
6800
- }
6801
-
6802
- var _baseAssignValue = baseAssignValue;
6803
-
6804
- /**
6805
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
6806
- *
6807
- * @private
6808
- * @param {boolean} [fromRight] Specify iterating from right to left.
6809
- * @returns {Function} Returns the new base function.
6810
- */
6811
- function createBaseFor(fromRight) {
6812
- return function(object, iteratee, keysFunc) {
6813
- var index = -1,
6814
- iterable = Object(object),
6815
- props = keysFunc(object),
6816
- length = props.length;
6817
-
6818
- while (length--) {
6819
- var key = props[fromRight ? length : ++index];
6820
- if (iteratee(iterable[key], key, iterable) === false) {
6821
- break;
6822
- }
6823
- }
6824
- return object;
6825
- };
6826
- }
6827
-
6828
- var _createBaseFor = createBaseFor;
6829
-
6830
- /**
6831
- * The base implementation of `baseForOwn` which iterates over `object`
6832
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
6833
- * Iteratee functions may exit iteration early by explicitly returning `false`.
6834
- *
6835
- * @private
6836
- * @param {Object} object The object to iterate over.
6837
- * @param {Function} iteratee The function invoked per iteration.
6838
- * @param {Function} keysFunc The function to get the keys of `object`.
6839
- * @returns {Object} Returns `object`.
6840
- */
6841
- var baseFor = _createBaseFor();
6842
-
6843
- var _baseFor = baseFor;
6844
-
6845
- /**
6846
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
6847
- *
6848
- * @private
6849
- * @param {Object} object The object to iterate over.
6850
- * @param {Function} iteratee The function invoked per iteration.
6851
- * @returns {Object} Returns `object`.
6852
- */
6853
- function baseForOwn(object, iteratee) {
6854
- return object && _baseFor(object, iteratee, keys_1);
6855
- }
6856
-
6857
- var _baseForOwn = baseForOwn;
6858
-
6859
- /** Used to compose bitmasks for value comparisons. */
6860
- var COMPARE_PARTIAL_FLAG$1 = 1,
6861
- COMPARE_UNORDERED_FLAG$1 = 2;
6862
-
6863
- /**
6864
- * The base implementation of `_.isMatch` without support for iteratee shorthands.
6865
- *
6866
- * @private
6867
- * @param {Object} object The object to inspect.
6868
- * @param {Object} source The object of property values to match.
6869
- * @param {Array} matchData The property names, values, and compare flags to match.
6870
- * @param {Function} [customizer] The function to customize comparisons.
6871
- * @returns {boolean} Returns `true` if `object` is a match, else `false`.
6872
- */
6873
- function baseIsMatch(object, source, matchData, customizer) {
6874
- var index = matchData.length,
6875
- length = index,
6876
- noCustomizer = !customizer;
6877
-
6878
- if (object == null) {
6879
- return !length;
6880
- }
6881
- object = Object(object);
6882
- while (index--) {
6883
- var data = matchData[index];
6884
- if ((noCustomizer && data[2])
6885
- ? data[1] !== object[data[0]]
6886
- : !(data[0] in object)
6887
- ) {
6888
- return false;
6889
- }
6890
- }
6891
- while (++index < length) {
6892
- data = matchData[index];
6893
- var key = data[0],
6894
- objValue = object[key],
6895
- srcValue = data[1];
6896
-
6897
- if (noCustomizer && data[2]) {
6898
- if (objValue === undefined && !(key in object)) {
6899
- return false;
6900
- }
6901
- } else {
6902
- var stack = new _Stack;
6903
- if (customizer) {
6904
- var result = customizer(objValue, srcValue, key, object, source, stack);
6905
- }
6906
- if (!(result === undefined
6907
- ? _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
6908
- : result
6909
- )) {
6910
- return false;
6911
- }
6912
- }
6913
- }
6914
- return true;
6915
- }
6916
-
6917
- var _baseIsMatch = baseIsMatch;
6918
-
6919
- /**
6920
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
6921
- *
6922
- * @private
6923
- * @param {*} value The value to check.
6924
- * @returns {boolean} Returns `true` if `value` if suitable for strict
6925
- * equality comparisons, else `false`.
6926
- */
6927
- function isStrictComparable(value) {
6928
- return value === value && !isObject_1(value);
6929
- }
6930
-
6931
- var _isStrictComparable = isStrictComparable;
6932
-
6933
- /**
6934
- * Gets the property names, values, and compare flags of `object`.
6935
- *
6936
- * @private
6937
- * @param {Object} object The object to query.
6938
- * @returns {Array} Returns the match data of `object`.
6939
- */
6940
- function getMatchData(object) {
6941
- var result = keys_1(object),
6942
- length = result.length;
6943
-
6944
- while (length--) {
6945
- var key = result[length],
6946
- value = object[key];
6947
-
6948
- result[length] = [key, value, _isStrictComparable(value)];
6949
- }
6950
- return result;
6951
- }
6952
-
6953
- var _getMatchData = getMatchData;
6954
-
6955
- /**
6956
- * A specialized version of `matchesProperty` for source values suitable
6957
- * for strict equality comparisons, i.e. `===`.
6958
- *
6959
- * @private
6960
- * @param {string} key The key of the property to get.
6961
- * @param {*} srcValue The value to match.
6962
- * @returns {Function} Returns the new spec function.
6963
- */
6964
- function matchesStrictComparable(key, srcValue) {
6965
- return function(object) {
6966
- if (object == null) {
6967
- return false;
6968
- }
6969
- return object[key] === srcValue &&
6970
- (srcValue !== undefined || (key in Object(object)));
6971
- };
6972
- }
6973
-
6974
- var _matchesStrictComparable = matchesStrictComparable;
6975
-
6976
- /**
6977
- * The base implementation of `_.matches` which doesn't clone `source`.
6978
- *
6979
- * @private
6980
- * @param {Object} source The object of property values to match.
6981
- * @returns {Function} Returns the new spec function.
6982
- */
6983
- function baseMatches(source) {
6984
- var matchData = _getMatchData(source);
6985
- if (matchData.length == 1 && matchData[0][2]) {
6986
- return _matchesStrictComparable(matchData[0][0], matchData[0][1]);
6987
- }
6988
- return function(object) {
6989
- return object === source || _baseIsMatch(object, source, matchData);
6990
- };
6991
- }
6992
-
6993
- var _baseMatches = baseMatches;
6994
-
6995
- /** `Object#toString` result references. */
6996
- var symbolTag$2 = '[object Symbol]';
6997
-
6998
- /**
6999
- * Checks if `value` is classified as a `Symbol` primitive or object.
7000
- *
7001
- * @static
7002
- * @memberOf _
7003
- * @since 4.0.0
7004
- * @category Lang
7005
- * @param {*} value The value to check.
7006
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
7007
- * @example
7008
- *
7009
- * _.isSymbol(Symbol.iterator);
7010
- * // => true
7011
- *
7012
- * _.isSymbol('abc');
7013
- * // => false
7014
- */
7015
- function isSymbol(value) {
7016
- return typeof value == 'symbol' ||
7017
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag$2);
7018
- }
7019
-
7020
- var isSymbol_1 = isSymbol;
7021
-
7022
- /** Used to match property names within property paths. */
7023
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
7024
- reIsPlainProp = /^\w*$/;
7025
-
7026
- /**
7027
- * Checks if `value` is a property name and not a property path.
7028
- *
7029
- * @private
7030
- * @param {*} value The value to check.
7031
- * @param {Object} [object] The object to query keys on.
7032
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
7033
- */
7034
- function isKey(value, object) {
7035
- if (isArray_1(value)) {
7036
- return false;
7037
- }
7038
- var type = typeof value;
7039
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
7040
- value == null || isSymbol_1(value)) {
7041
- return true;
7042
- }
7043
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
7044
- (object != null && value in Object(object));
7045
- }
7046
-
7047
- var _isKey = isKey;
7048
-
7049
- /** Error message constants. */
7050
- var FUNC_ERROR_TEXT$2 = 'Expected a function';
7051
-
7052
- /**
7053
- * Creates a function that memoizes the result of `func`. If `resolver` is
7054
- * provided, it determines the cache key for storing the result based on the
7055
- * arguments provided to the memoized function. By default, the first argument
7056
- * provided to the memoized function is used as the map cache key. The `func`
7057
- * is invoked with the `this` binding of the memoized function.
7058
- *
7059
- * **Note:** The cache is exposed as the `cache` property on the memoized
7060
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
7061
- * constructor with one whose instances implement the
7062
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
7063
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
7064
- *
7065
- * @static
7066
- * @memberOf _
7067
- * @since 0.1.0
7068
- * @category Function
7069
- * @param {Function} func The function to have its output memoized.
7070
- * @param {Function} [resolver] The function to resolve the cache key.
7071
- * @returns {Function} Returns the new memoized function.
7072
- * @example
7073
- *
7074
- * var object = { 'a': 1, 'b': 2 };
7075
- * var other = { 'c': 3, 'd': 4 };
7076
- *
7077
- * var values = _.memoize(_.values);
7078
- * values(object);
7079
- * // => [1, 2]
7080
- *
7081
- * values(other);
7082
- * // => [3, 4]
7083
- *
7084
- * object.a = 2;
7085
- * values(object);
7086
- * // => [1, 2]
7087
- *
7088
- * // Modify the result cache.
7089
- * values.cache.set(object, ['a', 'b']);
7090
- * values(object);
7091
- * // => ['a', 'b']
7092
- *
7093
- * // Replace `_.memoize.Cache`.
7094
- * _.memoize.Cache = WeakMap;
7095
- */
7096
- function memoize(func, resolver) {
7097
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
7098
- throw new TypeError(FUNC_ERROR_TEXT$2);
7099
- }
7100
- var memoized = function() {
7101
- var args = arguments,
7102
- key = resolver ? resolver.apply(this, args) : args[0],
7103
- cache = memoized.cache;
7104
-
7105
- if (cache.has(key)) {
7106
- return cache.get(key);
7107
- }
7108
- var result = func.apply(this, args);
7109
- memoized.cache = cache.set(key, result) || cache;
7110
- return result;
7111
- };
7112
- memoized.cache = new (memoize.Cache || _MapCache);
7113
- return memoized;
7114
- }
7115
-
7116
- // Expose `MapCache`.
7117
- memoize.Cache = _MapCache;
7118
-
7119
- var memoize_1 = memoize;
7120
-
7121
- /** Used as the maximum memoize cache size. */
7122
- var MAX_MEMOIZE_SIZE = 500;
7123
-
7124
- /**
7125
- * A specialized version of `_.memoize` which clears the memoized function's
7126
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
7127
- *
7128
- * @private
7129
- * @param {Function} func The function to have its output memoized.
7130
- * @returns {Function} Returns the new memoized function.
7131
- */
7132
- function memoizeCapped(func) {
7133
- var result = memoize_1(func, function(key) {
7134
- if (cache.size === MAX_MEMOIZE_SIZE) {
7135
- cache.clear();
7136
- }
7137
- return key;
7138
- });
7139
-
7140
- var cache = result.cache;
7141
- return result;
7142
- }
7143
-
7144
- var _memoizeCapped = memoizeCapped;
7145
-
7146
- /** Used to match property names within property paths. */
7147
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
7148
-
7149
- /** Used to match backslashes in property paths. */
7150
- var reEscapeChar = /\\(\\)?/g;
7151
-
7152
- /**
7153
- * Converts `string` to a property path array.
7154
- *
7155
- * @private
7156
- * @param {string} string The string to convert.
7157
- * @returns {Array} Returns the property path array.
7158
- */
7159
- var stringToPath = _memoizeCapped(function(string) {
7160
- var result = [];
7161
- if (string.charCodeAt(0) === 46 /* . */) {
7162
- result.push('');
7163
- }
7164
- string.replace(rePropName, function(match, number, quote, subString) {
7165
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
7166
- });
7167
- return result;
7168
- });
7169
-
7170
- var _stringToPath = stringToPath;
7171
-
7172
- /**
7173
- * A specialized version of `_.map` for arrays without support for iteratee
7174
- * shorthands.
7175
- *
7176
- * @private
7177
- * @param {Array} [array] The array to iterate over.
7178
- * @param {Function} iteratee The function invoked per iteration.
7179
- * @returns {Array} Returns the new mapped array.
7180
- */
7181
- function arrayMap(array, iteratee) {
7182
- var index = -1,
7183
- length = array == null ? 0 : array.length,
7184
- result = Array(length);
7185
-
7186
- while (++index < length) {
7187
- result[index] = iteratee(array[index], index, array);
7188
- }
7189
- return result;
7190
- }
7191
-
7192
- var _arrayMap = arrayMap;
7193
-
7194
- /** Used as references for various `Number` constants. */
7195
- var INFINITY$2 = 1 / 0;
7196
-
7197
- /** Used to convert symbols to primitives and strings. */
7198
- var symbolProto$1 = _Symbol ? _Symbol.prototype : undefined,
7199
- symbolToString = symbolProto$1 ? symbolProto$1.toString : undefined;
7200
-
7201
- /**
7202
- * The base implementation of `_.toString` which doesn't convert nullish
7203
- * values to empty strings.
7204
- *
7205
- * @private
7206
- * @param {*} value The value to process.
7207
- * @returns {string} Returns the string.
7208
- */
7209
- function baseToString(value) {
7210
- // Exit early for strings to avoid a performance hit in some environments.
7211
- if (typeof value == 'string') {
7212
- return value;
7213
- }
7214
- if (isArray_1(value)) {
7215
- // Recursively convert values (susceptible to call stack limits).
7216
- return _arrayMap(value, baseToString) + '';
7217
- }
7218
- if (isSymbol_1(value)) {
7219
- return symbolToString ? symbolToString.call(value) : '';
7220
- }
7221
- var result = (value + '');
7222
- return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
7223
- }
7224
-
7225
- var _baseToString = baseToString;
7226
-
7227
- /**
7228
- * Converts `value` to a string. An empty string is returned for `null`
7229
- * and `undefined` values. The sign of `-0` is preserved.
7230
- *
7231
- * @static
7232
- * @memberOf _
7233
- * @since 4.0.0
7234
- * @category Lang
7235
- * @param {*} value The value to convert.
7236
- * @returns {string} Returns the converted string.
7237
- * @example
7238
- *
7239
- * _.toString(null);
7240
- * // => ''
7241
- *
7242
- * _.toString(-0);
7243
- * // => '-0'
7244
- *
7245
- * _.toString([1, 2, 3]);
7246
- * // => '1,2,3'
7247
- */
7248
- function toString(value) {
7249
- return value == null ? '' : _baseToString(value);
7250
- }
7251
-
7252
- var toString_1 = toString;
7253
-
7254
- /**
7255
- * Casts `value` to a path array if it's not one.
7256
- *
7257
- * @private
7258
- * @param {*} value The value to inspect.
7259
- * @param {Object} [object] The object to query keys on.
7260
- * @returns {Array} Returns the cast property path array.
7261
- */
7262
- function castPath(value, object) {
7263
- if (isArray_1(value)) {
7264
- return value;
7265
- }
7266
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
7267
- }
7268
-
7269
- var _castPath = castPath;
7270
-
7271
- /** Used as references for various `Number` constants. */
7272
- var INFINITY$1 = 1 / 0;
7273
-
7274
- /**
7275
- * Converts `value` to a string key if it's not a string or symbol.
7276
- *
7277
- * @private
7278
- * @param {*} value The value to inspect.
7279
- * @returns {string|symbol} Returns the key.
7280
- */
7281
- function toKey(value) {
7282
- if (typeof value == 'string' || isSymbol_1(value)) {
7283
- return value;
7284
- }
7285
- var result = (value + '');
7286
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
7287
- }
7288
-
7289
- var _toKey = toKey;
7290
-
7291
- /**
7292
- * The base implementation of `_.get` without support for default values.
7293
- *
7294
- * @private
7295
- * @param {Object} object The object to query.
7296
- * @param {Array|string} path The path of the property to get.
7297
- * @returns {*} Returns the resolved value.
7298
- */
7299
- function baseGet(object, path) {
7300
- path = _castPath(path, object);
7301
-
7302
- var index = 0,
7303
- length = path.length;
7304
-
7305
- while (object != null && index < length) {
7306
- object = object[_toKey(path[index++])];
7307
- }
7308
- return (index && index == length) ? object : undefined;
7309
- }
7310
-
7311
- var _baseGet = baseGet;
7312
-
7313
- /**
7314
- * Gets the value at `path` of `object`. If the resolved value is
7315
- * `undefined`, the `defaultValue` is returned in its place.
7316
- *
7317
- * @static
7318
- * @memberOf _
7319
- * @since 3.7.0
7320
- * @category Object
7321
- * @param {Object} object The object to query.
7322
- * @param {Array|string} path The path of the property to get.
7323
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
7324
- * @returns {*} Returns the resolved value.
7325
- * @example
7326
- *
7327
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
7328
- *
7329
- * _.get(object, 'a[0].b.c');
7330
- * // => 3
7331
- *
7332
- * _.get(object, ['a', '0', 'b', 'c']);
7333
- * // => 3
7334
- *
7335
- * _.get(object, 'a.b.c', 'default');
7336
- * // => 'default'
7337
- */
7338
- function get(object, path, defaultValue) {
7339
- var result = object == null ? undefined : _baseGet(object, path);
7340
- return result === undefined ? defaultValue : result;
7341
- }
7342
-
7343
- var get_1 = get;
7344
-
7345
- /**
7346
- * The base implementation of `_.hasIn` without support for deep paths.
7347
- *
7348
- * @private
7349
- * @param {Object} [object] The object to query.
7350
- * @param {Array|string} key The key to check.
7351
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
7352
- */
7353
- function baseHasIn(object, key) {
7354
- return object != null && key in Object(object);
7355
- }
7356
-
7357
- var _baseHasIn = baseHasIn;
7358
-
7359
- /**
7360
- * Checks if `path` exists on `object`.
7361
- *
7362
- * @private
7363
- * @param {Object} object The object to query.
7364
- * @param {Array|string} path The path to check.
7365
- * @param {Function} hasFunc The function to check properties.
7366
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
7367
- */
7368
- function hasPath(object, path, hasFunc) {
7369
- path = _castPath(path, object);
7370
-
7371
- var index = -1,
7372
- length = path.length,
7373
- result = false;
7374
-
7375
- while (++index < length) {
7376
- var key = _toKey(path[index]);
7377
- if (!(result = object != null && hasFunc(object, key))) {
7378
- break;
7379
- }
7380
- object = object[key];
7381
- }
7382
- if (result || ++index != length) {
7383
- return result;
7384
- }
7385
- length = object == null ? 0 : object.length;
7386
- return !!length && isLength_1(length) && _isIndex(key, length) &&
7387
- (isArray_1(object) || isArguments_1(object));
7388
- }
7389
-
7390
- var _hasPath = hasPath;
7391
-
7392
- /**
7393
- * Checks if `path` is a direct or inherited property of `object`.
7394
- *
7395
- * @static
7396
- * @memberOf _
7397
- * @since 4.0.0
7398
- * @category Object
7399
- * @param {Object} object The object to query.
7400
- * @param {Array|string} path The path to check.
7401
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
7402
- * @example
7403
- *
7404
- * var object = _.create({ 'a': _.create({ 'b': 2 }) });
7405
- *
7406
- * _.hasIn(object, 'a');
7407
- * // => true
7408
- *
7409
- * _.hasIn(object, 'a.b');
7410
- * // => true
7411
- *
7412
- * _.hasIn(object, ['a', 'b']);
7413
- * // => true
7414
- *
7415
- * _.hasIn(object, 'b');
7416
- * // => false
7417
- */
7418
- function hasIn(object, path) {
7419
- return object != null && _hasPath(object, path, _baseHasIn);
7420
- }
7421
-
7422
- var hasIn_1 = hasIn;
7423
-
7424
- /** Used to compose bitmasks for value comparisons. */
7425
- var COMPARE_PARTIAL_FLAG = 1,
7426
- COMPARE_UNORDERED_FLAG = 2;
7427
-
7428
- /**
7429
- * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
7430
- *
7431
- * @private
7432
- * @param {string} path The path of the property to get.
7433
- * @param {*} srcValue The value to match.
7434
- * @returns {Function} Returns the new spec function.
7435
- */
7436
- function baseMatchesProperty(path, srcValue) {
7437
- if (_isKey(path) && _isStrictComparable(srcValue)) {
7438
- return _matchesStrictComparable(_toKey(path), srcValue);
7439
- }
7440
- return function(object) {
7441
- var objValue = get_1(object, path);
7442
- return (objValue === undefined && objValue === srcValue)
7443
- ? hasIn_1(object, path)
7444
- : _baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
7445
- };
7446
- }
7447
-
7448
- var _baseMatchesProperty = baseMatchesProperty;
7449
-
7450
- /**
7451
- * This method returns the first argument it receives.
7452
- *
7453
- * @static
7454
- * @since 0.1.0
7455
- * @memberOf _
7456
- * @category Util
7457
- * @param {*} value Any value.
7458
- * @returns {*} Returns `value`.
7459
- * @example
7460
- *
7461
- * var object = { 'a': 1 };
7462
- *
7463
- * console.log(_.identity(object) === object);
7464
- * // => true
7465
- */
7466
- function identity(value) {
7467
- return value;
7468
- }
7469
-
7470
- var identity_1 = identity;
7471
-
7472
- /**
7473
- * The base implementation of `_.property` without support for deep paths.
7474
- *
7475
- * @private
7476
- * @param {string} key The key of the property to get.
7477
- * @returns {Function} Returns the new accessor function.
7478
- */
7479
- function baseProperty(key) {
7480
- return function(object) {
7481
- return object == null ? undefined : object[key];
7482
- };
7483
- }
7484
-
7485
- var _baseProperty = baseProperty;
7486
-
7487
- /**
7488
- * A specialized version of `baseProperty` which supports deep paths.
7489
- *
7490
- * @private
7491
- * @param {Array|string} path The path of the property to get.
7492
- * @returns {Function} Returns the new accessor function.
7493
- */
7494
- function basePropertyDeep(path) {
7495
- return function(object) {
7496
- return _baseGet(object, path);
7497
- };
7498
- }
7499
-
7500
- var _basePropertyDeep = basePropertyDeep;
7501
-
7502
- /**
7503
- * Creates a function that returns the value at `path` of a given object.
7504
- *
7505
- * @static
7506
- * @memberOf _
7507
- * @since 2.4.0
7508
- * @category Util
7509
- * @param {Array|string} path The path of the property to get.
7510
- * @returns {Function} Returns the new accessor function.
7511
- * @example
7512
- *
7513
- * var objects = [
7514
- * { 'a': { 'b': 2 } },
7515
- * { 'a': { 'b': 1 } }
7516
- * ];
7517
- *
7518
- * _.map(objects, _.property('a.b'));
7519
- * // => [2, 1]
7520
- *
7521
- * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
7522
- * // => [1, 2]
7523
- */
7524
- function property(path) {
7525
- return _isKey(path) ? _baseProperty(_toKey(path)) : _basePropertyDeep(path);
7526
- }
7527
-
7528
- var property_1 = property;
7529
-
7530
- /**
7531
- * The base implementation of `_.iteratee`.
7532
- *
7533
- * @private
7534
- * @param {*} [value=_.identity] The value to convert to an iteratee.
7535
- * @returns {Function} Returns the iteratee.
7536
- */
7537
- function baseIteratee(value) {
7538
- // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
7539
- // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
7540
- if (typeof value == 'function') {
7541
- return value;
7542
- }
7543
- if (value == null) {
7544
- return identity_1;
7545
- }
7546
- if (typeof value == 'object') {
7547
- return isArray_1(value)
7548
- ? _baseMatchesProperty(value[0], value[1])
7549
- : _baseMatches(value);
7550
- }
7551
- return property_1(value);
7552
- }
7553
-
7554
- var _baseIteratee = baseIteratee;
7555
-
7556
- /**
7557
- * Creates an object with the same keys as `object` and values generated
7558
- * by running each own enumerable string keyed property of `object` thru
7559
- * `iteratee`. The iteratee is invoked with three arguments:
7560
- * (value, key, object).
7561
- *
7562
- * @static
7563
- * @memberOf _
7564
- * @since 2.4.0
7565
- * @category Object
7566
- * @param {Object} object The object to iterate over.
7567
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
7568
- * @returns {Object} Returns the new mapped object.
7569
- * @see _.mapKeys
7570
- * @example
7571
- *
7572
- * var users = {
7573
- * 'fred': { 'user': 'fred', 'age': 40 },
7574
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
7575
- * };
7576
- *
7577
- * _.mapValues(users, function(o) { return o.age; });
7578
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
7579
- *
7580
- * // The `_.property` iteratee shorthand.
7581
- * _.mapValues(users, 'age');
7582
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
7583
- */
7584
- function mapValues(object, iteratee) {
7585
- var result = {};
7586
- iteratee = _baseIteratee(iteratee);
7587
-
7588
- _baseForOwn(object, function(value, key, object) {
7589
- _baseAssignValue(result, key, iteratee(value, key, object));
7590
- });
7591
- return result;
7592
- }
7593
-
7594
- var mapValues_1 = mapValues;
7595
-
7596
6763
  const wrapperKey = Symbol();
7597
6764
  const propKey = Symbol();
7598
- function buildProp(option) {
6765
+ function buildProp(option, key) {
7599
6766
  if (!isObject$2(option) || !!option[propKey])
7600
6767
  return option;
7601
6768
  const { values, required, default: defaultValue, type, validator } = option;
@@ -7609,19 +6776,23 @@
7609
6776
  if (validator)
7610
6777
  valid || (valid = validator(val));
7611
6778
  if (!valid && allowedValues.length > 0) {
7612
- debugWarn(`Vue warn`, `Invalid prop: Expected one of (${allowedValues.join(", ")}), got value ${val}`);
6779
+ const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
6780
+ vue.warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
7613
6781
  }
7614
6782
  return valid;
7615
6783
  } : void 0;
7616
6784
  return {
7617
- type: (type == null ? void 0 : type[wrapperKey]) || type,
6785
+ type: typeof type === "object" && Object.getOwnPropertySymbols(type).includes(wrapperKey) ? type[wrapperKey] : type,
7618
6786
  required: !!required,
7619
6787
  default: defaultValue,
7620
6788
  validator: _validator,
7621
6789
  [propKey]: true
7622
6790
  };
7623
6791
  }
7624
- const buildProps = (options) => mapValues_1(options, (option) => buildProp(option));
6792
+ const buildProps = (props) => fromPairs_1(Object.entries(props).map(([key, option]) => [
6793
+ key,
6794
+ buildProp(option, key)
6795
+ ]));
7625
6796
  const definePropType = (val) => ({ [wrapperKey]: val });
7626
6797
  const keyOf = (arr) => Object.keys(arr);
7627
6798
  const mutable = (val) => val;
@@ -7673,7 +6844,7 @@
7673
6844
  return { onClick, onMousedown, onMouseup };
7674
6845
  };
7675
6846
 
7676
- const version$1 = "1.0.3";
6847
+ const version$1 = "1.0.5";
7677
6848
 
7678
6849
  const makeInstaller = (components = []) => {
7679
6850
  const apps = [];
@@ -7727,7 +6898,6 @@
7727
6898
  };
7728
6899
 
7729
6900
  const isClient = typeof window !== 'undefined';
7730
- const isBoolean = (val) => typeof val === 'boolean';
7731
6901
  const isString = (val) => typeof val === 'string';
7732
6902
  const noop$1 = () => { };
7733
6903
 
@@ -8072,7 +7242,7 @@
8072
7242
  if (props.target) {
8073
7243
  target.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
8074
7244
  if (!target.value) {
8075
- throw new Error(`target is not existed: ${props.target}`);
7245
+ throw new Error(`Target is not existed: ${props.target}`);
8076
7246
  }
8077
7247
  } else {
8078
7248
  target.value = document.documentElement;
@@ -8287,6 +7457,33 @@
8287
7457
 
8288
7458
  var _baseTrim = baseTrim;
8289
7459
 
7460
+ /** `Object#toString` result references. */
7461
+ var symbolTag$2 = '[object Symbol]';
7462
+
7463
+ /**
7464
+ * Checks if `value` is classified as a `Symbol` primitive or object.
7465
+ *
7466
+ * @static
7467
+ * @memberOf _
7468
+ * @since 4.0.0
7469
+ * @category Lang
7470
+ * @param {*} value The value to check.
7471
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
7472
+ * @example
7473
+ *
7474
+ * _.isSymbol(Symbol.iterator);
7475
+ * // => true
7476
+ *
7477
+ * _.isSymbol('abc');
7478
+ * // => false
7479
+ */
7480
+ function isSymbol(value) {
7481
+ return typeof value == 'symbol' ||
7482
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag$2);
7483
+ }
7484
+
7485
+ var isSymbol_1 = isSymbol;
7486
+
8290
7487
  /** Used as references for various `Number` constants. */
8291
7488
  var NAN = 0 / 0;
8292
7489
 
@@ -8349,7 +7546,7 @@
8349
7546
  var toNumber_1 = toNumber;
8350
7547
 
8351
7548
  /** Error message constants. */
8352
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
7549
+ var FUNC_ERROR_TEXT$2 = 'Expected a function';
8353
7550
 
8354
7551
  /* Built-in method references for those with the same name as other `lodash` methods. */
8355
7552
  var nativeMax$1 = Math.max,
@@ -8422,7 +7619,7 @@
8422
7619
  trailing = true;
8423
7620
 
8424
7621
  if (typeof func != 'function') {
8425
- throw new TypeError(FUNC_ERROR_TEXT$1);
7622
+ throw new TypeError(FUNC_ERROR_TEXT$2);
8426
7623
  }
8427
7624
  wait = toNumber_1(wait) || 0;
8428
7625
  if (isObject_1(options)) {
@@ -8541,27 +7738,7 @@
8541
7738
  return reg.test(text);
8542
7739
  }
8543
7740
 
8544
- const isValidWidthUnit = (val) => {
8545
- if (isNumber(val)) {
8546
- return true;
8547
- } else {
8548
- return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
8549
- }
8550
- };
8551
- const isValidComponentSize = (val) => ["", "large", "medium", "small", "mini"].includes(val);
8552
- const isValidDatePickType = (val) => [
8553
- "year",
8554
- "month",
8555
- "date",
8556
- "dates",
8557
- "week",
8558
- "datetime",
8559
- "datetimerange",
8560
- "daterange",
8561
- "monthrange"
8562
- ].includes(val);
8563
-
8564
- let hiddenTextarea;
7741
+ let hiddenTextarea = void 0;
8565
7742
  const HIDDEN_STYLE = `
8566
7743
  height:0 !important;
8567
7744
  visibility:hidden !important;
@@ -8596,7 +7773,7 @@
8596
7773
  const contextStyle = CONTEXT_STYLE.map((name) => `${name}:${style.getPropertyValue(name)}`).join(";");
8597
7774
  return { contextStyle, paddingSize, borderSize, boxSizing };
8598
7775
  }
8599
- function calcTextareaHeight(targetElement, minRows = 1, maxRows = null) {
7776
+ function calcTextareaHeight(targetElement, minRows = 1, maxRows) {
8600
7777
  var _a;
8601
7778
  if (!hiddenTextarea) {
8602
7779
  hiddenTextarea = document.createElement("textarea");
@@ -8614,7 +7791,7 @@
8614
7791
  }
8615
7792
  hiddenTextarea.value = "";
8616
7793
  const singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
8617
- if (minRows !== null) {
7794
+ if (isNumber(minRows)) {
8618
7795
  let minHeight = singleRowHeight * minRows;
8619
7796
  if (boxSizing === "border-box") {
8620
7797
  minHeight = minHeight + paddingSize + borderSize;
@@ -8622,7 +7799,7 @@
8622
7799
  height = Math.max(minHeight, height);
8623
7800
  result.minHeight = `${minHeight}px`;
8624
7801
  }
8625
- if (maxRows !== null) {
7802
+ if (isNumber(maxRows)) {
8626
7803
  let maxHeight = singleRowHeight * maxRows;
8627
7804
  if (boxSizing === "border-box") {
8628
7805
  maxHeight = maxHeight + paddingSize + borderSize;
@@ -8631,13 +7808,118 @@
8631
7808
  }
8632
7809
  result.height = `${height}px`;
8633
7810
  (_a = hiddenTextarea.parentNode) == null ? void 0 : _a.removeChild(hiddenTextarea);
8634
- hiddenTextarea = null;
7811
+ hiddenTextarea = void 0;
8635
7812
  return result;
8636
7813
  }
8637
7814
 
8638
- var __defProp$H = Object.defineProperty;
7815
+ var __defProp$I = Object.defineProperty;
8639
7816
  var __defProps$v = Object.defineProperties;
8640
7817
  var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
7818
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
7819
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
7820
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
7821
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7822
+ var __spreadValues$I = (a, b) => {
7823
+ for (var prop in b || (b = {}))
7824
+ if (__hasOwnProp$I.call(b, prop))
7825
+ __defNormalProp$I(a, prop, b[prop]);
7826
+ if (__getOwnPropSymbols$I)
7827
+ for (var prop of __getOwnPropSymbols$I(b)) {
7828
+ if (__propIsEnum$I.call(b, prop))
7829
+ __defNormalProp$I(a, prop, b[prop]);
7830
+ }
7831
+ return a;
7832
+ };
7833
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
7834
+ const inputProps = buildProps(__spreadProps$v(__spreadValues$I({}, useFormItemProps), {
7835
+ modelValue: {
7836
+ type: definePropType(void 0),
7837
+ default: ""
7838
+ },
7839
+ type: {
7840
+ type: String,
7841
+ default: "text"
7842
+ },
7843
+ resize: {
7844
+ type: String,
7845
+ values: ["none", "both", "horizontal", "vertical"]
7846
+ },
7847
+ autosize: {
7848
+ type: definePropType([Boolean, Object]),
7849
+ default: false
7850
+ },
7851
+ autocomplete: {
7852
+ type: String,
7853
+ default: "off"
7854
+ },
7855
+ placeholder: {
7856
+ type: String
7857
+ },
7858
+ form: {
7859
+ type: String,
7860
+ default: ""
7861
+ },
7862
+ readonly: {
7863
+ type: Boolean,
7864
+ default: false
7865
+ },
7866
+ clearable: {
7867
+ type: Boolean,
7868
+ default: false
7869
+ },
7870
+ showPassword: {
7871
+ type: Boolean,
7872
+ default: false
7873
+ },
7874
+ showWordLimit: {
7875
+ type: Boolean,
7876
+ default: false
7877
+ },
7878
+ suffixIcon: {
7879
+ type: String,
7880
+ default: ""
7881
+ },
7882
+ prefixIcon: {
7883
+ type: String,
7884
+ default: ""
7885
+ },
7886
+ label: {
7887
+ type: String
7888
+ },
7889
+ tabindex: {
7890
+ type: [Number, String]
7891
+ },
7892
+ validateEvent: {
7893
+ type: Boolean,
7894
+ default: true
7895
+ },
7896
+ inputStyle: {
7897
+ type: definePropType([Object, Array, String]),
7898
+ default: () => mutable({})
7899
+ },
7900
+ maxlength: {
7901
+ type: [Number, String]
7902
+ },
7903
+ widget: {
7904
+ type: String
7905
+ }
7906
+ }));
7907
+ const inputEmits = {
7908
+ [UPDATE_MODEL_EVENT]: (value) => isString$1(value),
7909
+ input: (value) => isString$1(value),
7910
+ change: (value) => isString$1(value),
7911
+ focus: (evt) => evt instanceof FocusEvent,
7912
+ blur: (evt) => evt instanceof FocusEvent,
7913
+ clear: () => true,
7914
+ mouseleave: (evt) => evt instanceof MouseEvent,
7915
+ mouseenter: (evt) => evt instanceof MouseEvent,
7916
+ keydown: (evt) => evt instanceof KeyboardEvent,
7917
+ compositionstart: (evt) => evt instanceof CompositionEvent,
7918
+ compositionupdate: (evt) => evt instanceof CompositionEvent,
7919
+ compositionend: (evt) => evt instanceof CompositionEvent
7920
+ };
7921
+
7922
+ var __defProp$H = Object.defineProperty;
8641
7923
  var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
8642
7924
  var __hasOwnProp$H = Object.prototype.hasOwnProperty;
8643
7925
  var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
@@ -8653,7 +7935,6 @@
8653
7935
  }
8654
7936
  return a;
8655
7937
  };
8656
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
8657
7938
  const PENDANT_MAP = {
8658
7939
  suffix: "append",
8659
7940
  prefix: "prepend"
@@ -8661,139 +7942,40 @@
8661
7942
  var script$21 = vue.defineComponent({
8662
7943
  name: "ElInput",
8663
7944
  inheritAttrs: false,
8664
- props: {
8665
- modelValue: {
8666
- type: [String, Number],
8667
- default: ""
8668
- },
8669
- type: {
8670
- type: String,
8671
- default: "text"
8672
- },
8673
- size: {
8674
- type: String,
8675
- validator: isValidComponentSize
8676
- },
8677
- resize: {
8678
- type: String,
8679
- validator: (val) => ["none", "both", "horizontal", "vertical"].includes(val)
8680
- },
8681
- autosize: {
8682
- type: [Boolean, Object],
8683
- default: false
8684
- },
8685
- autocomplete: {
8686
- type: String,
8687
- default: "off"
8688
- },
8689
- placeholder: {
8690
- type: String
8691
- },
8692
- form: {
8693
- type: String,
8694
- default: ""
8695
- },
8696
- disabled: {
8697
- type: Boolean,
8698
- default: false
8699
- },
8700
- readonly: {
8701
- type: Boolean,
8702
- default: false
8703
- },
8704
- clearable: {
8705
- type: Boolean,
8706
- default: false
8707
- },
8708
- showPassword: {
8709
- type: Boolean,
8710
- default: false
8711
- },
8712
- showWordLimit: {
8713
- type: Boolean,
8714
- default: false
8715
- },
8716
- suffixIcon: {
8717
- type: String,
8718
- default: ""
8719
- },
8720
- prefixIcon: {
8721
- type: String,
8722
- default: ""
8723
- },
8724
- label: {
8725
- type: String
8726
- },
8727
- tabindex: {
8728
- type: [Number, String]
8729
- },
8730
- validateEvent: {
8731
- type: Boolean,
8732
- default: true
8733
- },
8734
- inputStyle: {
8735
- type: Object,
8736
- default: () => ({})
8737
- },
8738
- maxlength: {
8739
- type: [Number, String]
8740
- },
8741
- widget: {
8742
- type: String
8743
- }
8744
- },
8745
- emits: [
8746
- UPDATE_MODEL_EVENT,
8747
- "input",
8748
- "change",
8749
- "focus",
8750
- "blur",
8751
- "clear",
8752
- "mouseleave",
8753
- "mouseenter",
8754
- "keydown",
8755
- "compositionstart",
8756
- "compositionupdate",
8757
- "compositionend"
8758
- ],
8759
- setup(props, ctx) {
7945
+ props: inputProps,
7946
+ emits: inputEmits,
7947
+ setup(props, { slots, emit, attrs: rawAttrs }) {
8760
7948
  const instance = vue.getCurrentInstance();
8761
7949
  const attrs = useAttrs();
8762
- const $ELEMENT = useGlobalConfig();
8763
- const elForm = vue.inject(elFormKey, {});
8764
- const elFormItem = vue.inject(elFormItemKey, {});
8765
- const input = vue.ref(null);
8766
- const textarea = vue.ref(null);
7950
+ const elForm = vue.inject(elFormKey, void 0);
7951
+ const elFormItem = vue.inject(elFormItemKey, void 0);
7952
+ const { size: inputSize, disabled: inputDisabled } = useFormItem({});
7953
+ const input = vue.ref();
7954
+ const textarea = vue.ref();
8767
7955
  const focused = vue.ref(false);
8768
7956
  const hovering = vue.ref(false);
8769
7957
  const isComposing = vue.ref(false);
8770
7958
  const passwordVisible = vue.ref(false);
8771
7959
  const _textareaCalcStyle = vue.shallowRef(props.inputStyle);
8772
7960
  const inputOrTextarea = vue.computed(() => input.value || textarea.value);
8773
- const inputSize = vue.computed(() => props.size || elFormItem.size || $ELEMENT.size);
8774
- const needStatusIcon = vue.computed(() => elForm.statusIcon);
8775
- const validateState = vue.computed(() => elFormItem.validateState || "");
7961
+ const needStatusIcon = vue.computed(() => {
7962
+ var _a;
7963
+ return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
7964
+ });
7965
+ const validateState = vue.computed(() => (elFormItem == null ? void 0 : elFormItem.validateState) || "");
8776
7966
  const validateIcon = vue.computed(() => VALIDATE_STATE_MAP[validateState.value]);
8777
- const computedTextareaStyle = vue.computed(() => __spreadProps$v(__spreadValues$H(__spreadValues$H({}, props.inputStyle), _textareaCalcStyle.value), {
8778
- resize: props.resize
8779
- }));
8780
- const inputDisabled = vue.computed(() => props.disabled || elForm.disabled);
7967
+ const containerStyle = vue.computed(() => rawAttrs.style);
7968
+ const computedTextareaStyle = vue.computed(() => [
7969
+ props.inputStyle,
7970
+ _textareaCalcStyle.value,
7971
+ { resize: props.resize }
7972
+ ]);
8781
7973
  const nativeInputValue = vue.computed(() => props.modelValue === null || props.modelValue === void 0 ? "" : String(props.modelValue));
8782
- const showClear = vue.computed(() => {
8783
- return props.clearable && !inputDisabled.value && !props.readonly && nativeInputValue.value && (focused.value || hovering.value);
8784
- });
8785
- const showPwdVisible = vue.computed(() => {
8786
- return props.showPassword && !inputDisabled.value && !props.readonly && (!!nativeInputValue.value || focused.value);
8787
- });
8788
- const isWordLimitVisible = vue.computed(() => {
8789
- return props.showWordLimit && props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword;
8790
- });
8791
- const textLength = vue.computed(() => {
8792
- return Array.from(nativeInputValue.value).length;
8793
- });
8794
- const inputExceed = vue.computed(() => {
8795
- return isWordLimitVisible.value && textLength.value > Number(props.maxlength);
8796
- });
7974
+ const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (focused.value || hovering.value));
7975
+ const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && (!!nativeInputValue.value || focused.value));
7976
+ const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!props.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
7977
+ const textLength = vue.computed(() => Array.from(nativeInputValue.value).length);
7978
+ const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(props.maxlength));
8797
7979
  const resizeTextarea = () => {
8798
7980
  const { type, autosize } = props;
8799
7981
  if (isServer || type !== "textarea")
@@ -8816,12 +7998,14 @@
8816
7998
  };
8817
7999
  const calcIconOffset = (place) => {
8818
8000
  const { el } = instance.vnode;
8001
+ if (!el)
8002
+ return;
8819
8003
  const elList = Array.from(el.querySelectorAll(`.el-input__${place}`));
8820
8004
  const target = elList.find((item) => item.parentNode === el);
8821
8005
  if (!target)
8822
8006
  return;
8823
8007
  const pendant = PENDANT_MAP[place];
8824
- if (ctx.slots[pendant]) {
8008
+ if (slots[pendant]) {
8825
8009
  target.style.transform = `translateX(${place === "suffix" ? "-" : ""}${el.querySelector(`.el-input-group__${pendant}`).offsetWidth}px)`;
8826
8010
  } else {
8827
8011
  target.removeAttribute("style");
@@ -8841,77 +8025,76 @@
8841
8025
  const sliceIndex = inputExceed.value ? textLength.value : props.maxlength;
8842
8026
  value = Array.from(value).slice(0, Number(sliceIndex)).join("");
8843
8027
  }
8844
- ctx.emit(UPDATE_MODEL_EVENT, value);
8845
- ctx.emit("input", value);
8028
+ emit(UPDATE_MODEL_EVENT, value);
8029
+ emit("input", value);
8846
8030
  vue.nextTick(setNativeInputValue);
8847
8031
  };
8848
8032
  const handleChange = (event) => {
8849
- ctx.emit("change", event.target.value);
8033
+ emit("change", event.target.value);
8850
8034
  };
8851
8035
  const focus = () => {
8852
8036
  vue.nextTick(() => {
8853
- inputOrTextarea.value.focus();
8037
+ var _a;
8038
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.focus();
8854
8039
  });
8855
8040
  };
8856
8041
  const blur = () => {
8857
- inputOrTextarea.value.blur();
8042
+ var _a;
8043
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.blur();
8858
8044
  };
8859
8045
  const handleFocus = (event) => {
8860
8046
  focused.value = true;
8861
- ctx.emit("focus", event);
8047
+ emit("focus", event);
8862
8048
  };
8863
8049
  const handleBlur = (event) => {
8864
8050
  var _a;
8865
8051
  focused.value = false;
8866
- ctx.emit("blur", event);
8052
+ emit("blur", event);
8867
8053
  if (props.validateEvent) {
8868
- (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur");
8054
+ (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "blur");
8869
8055
  }
8870
8056
  };
8871
8057
  const select = () => {
8872
- inputOrTextarea.value.select();
8058
+ var _a;
8059
+ (_a = inputOrTextarea.value) == null ? void 0 : _a.select();
8873
8060
  };
8874
8061
  const handleCompositionStart = (event) => {
8875
- ctx.emit("compositionstart", event);
8062
+ emit("compositionstart", event);
8876
8063
  isComposing.value = true;
8877
8064
  };
8878
8065
  const handleCompositionUpdate = (event) => {
8879
8066
  var _a;
8880
- ctx.emit("compositionupdate", event);
8067
+ emit("compositionupdate", event);
8881
8068
  const text = (_a = event.target) == null ? void 0 : _a.value;
8882
8069
  const lastCharacter = text[text.length - 1] || "";
8883
8070
  isComposing.value = !isKorean(lastCharacter);
8884
8071
  };
8885
8072
  const handleCompositionEnd = (event) => {
8886
- ctx.emit("compositionend", event);
8073
+ emit("compositionend", event);
8887
8074
  if (isComposing.value) {
8888
8075
  isComposing.value = false;
8889
8076
  handleInput(event);
8890
8077
  }
8891
8078
  };
8892
8079
  const clear = () => {
8893
- ctx.emit(UPDATE_MODEL_EVENT, "");
8894
- ctx.emit("change", "");
8895
- ctx.emit("clear");
8896
- ctx.emit("input", "");
8080
+ emit(UPDATE_MODEL_EVENT, "");
8081
+ emit("change", "");
8082
+ emit("clear");
8083
+ emit("input", "");
8897
8084
  };
8898
8085
  const handlePasswordVisible = () => {
8899
8086
  passwordVisible.value = !passwordVisible.value;
8900
8087
  focus();
8901
8088
  };
8902
- const getSuffixVisible = () => {
8903
- return ctx.slots.suffix || props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || validateState.value && needStatusIcon.value;
8904
- };
8089
+ const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
8905
8090
  vue.watch(() => props.modelValue, () => {
8906
8091
  var _a;
8907
8092
  vue.nextTick(resizeTextarea);
8908
8093
  if (props.validateEvent) {
8909
- (_a = elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
8094
+ (_a = elFormItem == null ? void 0 : elFormItem.validate) == null ? void 0 : _a.call(elFormItem, "change");
8910
8095
  }
8911
8096
  });
8912
- vue.watch(nativeInputValue, () => {
8913
- setNativeInputValue();
8914
- });
8097
+ vue.watch(nativeInputValue, () => setNativeInputValue());
8915
8098
  vue.watch(() => props.type, () => {
8916
8099
  vue.nextTick(() => {
8917
8100
  setNativeInputValue();
@@ -8927,16 +8110,16 @@
8927
8110
  vue.onUpdated(() => {
8928
8111
  vue.nextTick(updateIconOffset);
8929
8112
  });
8930
- const onMouseLeave = (e) => {
8113
+ const onMouseLeave = (evt) => {
8931
8114
  hovering.value = false;
8932
- ctx.emit("mouseleave", e);
8115
+ emit("mouseleave", evt);
8933
8116
  };
8934
- const onMouseEnter = (e) => {
8117
+ const onMouseEnter = (evt) => {
8935
8118
  hovering.value = true;
8936
- ctx.emit("mouseenter", e);
8119
+ emit("mouseenter", evt);
8937
8120
  };
8938
- const handleKeydown = (e) => {
8939
- ctx.emit("keydown", e);
8121
+ const handleKeydown = (evt) => {
8122
+ emit("keydown", evt);
8940
8123
  };
8941
8124
  return {
8942
8125
  input,
@@ -8945,8 +8128,8 @@
8945
8128
  inputSize,
8946
8129
  validateState,
8947
8130
  validateIcon,
8131
+ containerStyle,
8948
8132
  computedTextareaStyle,
8949
- resizeTextarea,
8950
8133
  inputDisabled,
8951
8134
  showClear,
8952
8135
  showPwdVisible,
@@ -8956,6 +8139,8 @@
8956
8139
  inputExceed,
8957
8140
  passwordVisible,
8958
8141
  inputOrTextarea,
8142
+ suffixVisible,
8143
+ resizeTextarea,
8959
8144
  handleInput,
8960
8145
  handleChange,
8961
8146
  handleFocus,
@@ -8968,7 +8153,6 @@
8968
8153
  select,
8969
8154
  focus,
8970
8155
  blur,
8971
- getSuffixVisible,
8972
8156
  onMouseLeave,
8973
8157
  onMouseEnter,
8974
8158
  handleKeydown
@@ -8983,11 +8167,11 @@
8983
8167
  };
8984
8168
  const _hoisted_3$V = ["type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
8985
8169
  const _hoisted_4$A = {
8986
- key: 2,
8170
+ key: 1,
8987
8171
  class: "el-input__prefix"
8988
8172
  };
8989
8173
  const _hoisted_5$v = {
8990
- key: 3,
8174
+ key: 2,
8991
8175
  class: "el-input__suffix"
8992
8176
  };
8993
8177
  const _hoisted_6$o = { class: "el-input__suffix-inner" };
@@ -8997,12 +8181,12 @@
8997
8181
  };
8998
8182
  const _hoisted_8$b = { class: "el-input__count-inner" };
8999
8183
  const _hoisted_9$a = {
9000
- key: 4,
8184
+ key: 3,
9001
8185
  class: "el-input-group__append"
9002
8186
  };
9003
8187
  const _hoisted_10$a = ["tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
9004
8188
  const _hoisted_11$7 = {
9005
- key: 2,
8189
+ key: 0,
9006
8190
  class: "el-input__count"
9007
8191
  };
9008
8192
  function render$1V(_ctx, _cache, $props, $setup, $data, $options) {
@@ -9022,18 +8206,18 @@
9022
8206
  },
9023
8207
  _ctx.$attrs.class
9024
8208
  ]),
9025
- style: vue.normalizeStyle(_ctx.$attrs.style),
8209
+ style: vue.normalizeStyle(_ctx.containerStyle),
9026
8210
  widget: _ctx.widget,
9027
8211
  onMouseenter: _cache[19] || (_cache[19] = (...args) => _ctx.onMouseEnter && _ctx.onMouseEnter(...args)),
9028
8212
  onMouseleave: _cache[20] || (_cache[20] = (...args) => _ctx.onMouseLeave && _ctx.onMouseLeave(...args))
9029
8213
  }, [
8214
+ vue.createCommentVNode(" input "),
9030
8215
  _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
9031
- vue.createCommentVNode(" \u524D\u7F6E\u5143\u7D20 "),
8216
+ vue.createCommentVNode(" prepend slot "),
9032
8217
  _ctx.$slots.prepend ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$14, [
9033
8218
  vue.renderSlot(_ctx.$slots, "prepend")
9034
8219
  ])) : vue.createCommentVNode("v-if", true),
9035
- _ctx.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
9036
- key: 1,
8220
+ vue.createElementVNode("input", vue.mergeProps({
9037
8221
  ref: "input",
9038
8222
  class: "el-input__inner"
9039
8223
  }, _ctx.attrs, {
@@ -9053,8 +8237,8 @@
9053
8237
  onBlur: _cache[5] || (_cache[5] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
9054
8238
  onChange: _cache[6] || (_cache[6] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
9055
8239
  onKeydown: _cache[7] || (_cache[7] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
9056
- }), null, 16, _hoisted_3$V)) : vue.createCommentVNode("v-if", true),
9057
- vue.createCommentVNode(" \u524D\u7F6E\u5185\u5BB9 "),
8240
+ }), null, 16, _hoisted_3$V),
8241
+ vue.createCommentVNode(" prefix slot "),
9058
8242
  _ctx.$slots.prefix || _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$A, [
9059
8243
  vue.renderSlot(_ctx.$slots, "prefix"),
9060
8244
  _ctx.prefixIcon ? (vue.openBlock(), vue.createElementBlock("i", {
@@ -9062,8 +8246,8 @@
9062
8246
  class: vue.normalizeClass(["el-input__icon", _ctx.prefixIcon])
9063
8247
  }, null, 2)) : vue.createCommentVNode("v-if", true)
9064
8248
  ])) : vue.createCommentVNode("v-if", true),
9065
- vue.createCommentVNode(" \u540E\u7F6E\u5185\u5BB9 "),
9066
- _ctx.getSuffixVisible() ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$v, [
8249
+ vue.createCommentVNode(" suffix slot "),
8250
+ _ctx.suffixVisible ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$v, [
9067
8251
  vue.createElementVNode("span", _hoisted_6$o, [
9068
8252
  !_ctx.showClear || !_ctx.showPwdVisible || !_ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
9069
8253
  vue.renderSlot(_ctx.$slots, "suffix"),
@@ -9085,7 +8269,7 @@
9085
8269
  onClick: _cache[10] || (_cache[10] = (...args) => _ctx.handlePasswordVisible && _ctx.handlePasswordVisible(...args))
9086
8270
  })) : vue.createCommentVNode("v-if", true),
9087
8271
  _ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$g, [
9088
- vue.createElementVNode("span", _hoisted_8$b, vue.toDisplayString(_ctx.textLength) + "/" + vue.toDisplayString(_ctx.maxlength), 1)
8272
+ vue.createElementVNode("span", _hoisted_8$b, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.maxlength), 1)
9089
8273
  ])) : vue.createCommentVNode("v-if", true)
9090
8274
  ]),
9091
8275
  _ctx.validateState ? (vue.openBlock(), vue.createElementBlock("i", {
@@ -9093,43 +8277,41 @@
9093
8277
  class: vue.normalizeClass(["el-input__icon", "el-input__validateIcon", _ctx.validateIcon])
9094
8278
  }, null, 2)) : vue.createCommentVNode("v-if", true)
9095
8279
  ])) : vue.createCommentVNode("v-if", true),
9096
- vue.createCommentVNode(" \u540E\u7F6E\u5143\u7D20 "),
8280
+ vue.createCommentVNode(" append slot "),
9097
8281
  _ctx.$slots.append ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$a, [
9098
8282
  vue.renderSlot(_ctx.$slots, "append")
9099
8283
  ])) : vue.createCommentVNode("v-if", true)
9100
- ], 64)) : (vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
9101
- key: 1,
9102
- ref: "textarea",
9103
- class: "el-textarea__inner"
9104
- }, _ctx.attrs, {
9105
- tabindex: _ctx.tabindex,
9106
- disabled: _ctx.inputDisabled,
9107
- readonly: _ctx.readonly,
9108
- autocomplete: _ctx.autocomplete,
9109
- style: _ctx.computedTextareaStyle,
9110
- "aria-label": _ctx.label,
9111
- placeholder: _ctx.placeholder,
9112
- onCompositionstart: _cache[11] || (_cache[11] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
9113
- onCompositionupdate: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
9114
- onCompositionend: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
9115
- onInput: _cache[14] || (_cache[14] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
9116
- onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
9117
- onBlur: _cache[16] || (_cache[16] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
9118
- onChange: _cache[17] || (_cache[17] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
9119
- onKeydown: _cache[18] || (_cache[18] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
9120
- }), "\n ", 16, _hoisted_10$a)),
9121
- _ctx.isWordLimitVisible && _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$7, vue.toDisplayString(_ctx.textLength) + "/" + vue.toDisplayString(_ctx.maxlength), 1)) : vue.createCommentVNode("v-if", true)
8284
+ ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
8285
+ vue.createCommentVNode(" textarea "),
8286
+ vue.createElementVNode("textarea", vue.mergeProps({
8287
+ ref: "textarea",
8288
+ class: "el-textarea__inner"
8289
+ }, _ctx.attrs, {
8290
+ tabindex: _ctx.tabindex,
8291
+ disabled: _ctx.inputDisabled,
8292
+ readonly: _ctx.readonly,
8293
+ autocomplete: _ctx.autocomplete,
8294
+ style: _ctx.computedTextareaStyle,
8295
+ "aria-label": _ctx.label,
8296
+ placeholder: _ctx.placeholder,
8297
+ onCompositionstart: _cache[11] || (_cache[11] = (...args) => _ctx.handleCompositionStart && _ctx.handleCompositionStart(...args)),
8298
+ onCompositionupdate: _cache[12] || (_cache[12] = (...args) => _ctx.handleCompositionUpdate && _ctx.handleCompositionUpdate(...args)),
8299
+ onCompositionend: _cache[13] || (_cache[13] = (...args) => _ctx.handleCompositionEnd && _ctx.handleCompositionEnd(...args)),
8300
+ onInput: _cache[14] || (_cache[14] = (...args) => _ctx.handleInput && _ctx.handleInput(...args)),
8301
+ onFocus: _cache[15] || (_cache[15] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
8302
+ onBlur: _cache[16] || (_cache[16] = (...args) => _ctx.handleBlur && _ctx.handleBlur(...args)),
8303
+ onChange: _cache[17] || (_cache[17] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
8304
+ onKeydown: _cache[18] || (_cache[18] = (...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args))
8305
+ }), null, 16, _hoisted_10$a),
8306
+ _ctx.isWordLimitVisible ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$7, vue.toDisplayString(_ctx.textLength) + " / " + vue.toDisplayString(_ctx.maxlength), 1)) : vue.createCommentVNode("v-if", true)
8307
+ ], 64))
9122
8308
  ], 46, _hoisted_1$1r);
9123
8309
  }
9124
8310
 
9125
8311
  script$21.render = render$1V;
9126
- script$21.__file = "packages/components/input/src/index.vue";
8312
+ script$21.__file = "packages/components/input/src/input.vue";
9127
8313
 
9128
- script$21.install = (app) => {
9129
- app.component(script$21.name, script$21);
9130
- };
9131
- const _Input = script$21;
9132
- const ElInput = _Input;
8314
+ const ElInput = withInstall(script$21);
9133
8315
 
9134
8316
  const BAR_MAP = {
9135
8317
  vertical: {
@@ -10085,7 +9267,7 @@
10085
9267
  name: "ElAutocomplete",
10086
9268
  components: {
10087
9269
  ElPopper: _Popper,
10088
- ElInput: _Input,
9270
+ ElInput,
10089
9271
  ElScrollbar: _Scrollbar
10090
9272
  },
10091
9273
  directives: {
@@ -11053,6 +10235,26 @@
11053
10235
 
11054
10236
  var isEqual$2 = isEqual_1;
11055
10237
 
10238
+ const isValidWidthUnit = (val) => {
10239
+ if (isNumber(val)) {
10240
+ return true;
10241
+ } else {
10242
+ return ["px", "rem", "em", "vw", "%", "vmin", "vmax"].some((unit) => val.endsWith(unit)) || val.startsWith("calc");
10243
+ }
10244
+ };
10245
+ const isValidComponentSize = (val) => ["", "large", "medium", "small", "mini"].includes(val);
10246
+ const isValidDatePickType = (val) => [
10247
+ "year",
10248
+ "month",
10249
+ "date",
10250
+ "dates",
10251
+ "week",
10252
+ "datetime",
10253
+ "datetimerange",
10254
+ "daterange",
10255
+ "monthrange"
10256
+ ].includes(val);
10257
+
11056
10258
  const timePickerDefaultProps = {
11057
10259
  name: {
11058
10260
  type: [Array, String],
@@ -11201,7 +10403,7 @@
11201
10403
  var script$1R = vue.defineComponent({
11202
10404
  name: "Picker",
11203
10405
  components: {
11204
- ElInput: _Input,
10406
+ ElInput,
11205
10407
  ElPopper: _Popper
11206
10408
  },
11207
10409
  directives: { clickoutside: ClickOutside },
@@ -12333,6 +11535,28 @@
12333
11535
 
12334
11536
  var _baseFlatten = baseFlatten;
12335
11537
 
11538
+ /**
11539
+ * This method returns the first argument it receives.
11540
+ *
11541
+ * @static
11542
+ * @since 0.1.0
11543
+ * @memberOf _
11544
+ * @category Util
11545
+ * @param {*} value Any value.
11546
+ * @returns {*} Returns `value`.
11547
+ * @example
11548
+ *
11549
+ * var object = { 'a': 1 };
11550
+ *
11551
+ * console.log(_.identity(object) === object);
11552
+ * // => true
11553
+ */
11554
+ function identity(value) {
11555
+ return value;
11556
+ }
11557
+
11558
+ var identity_1 = identity;
11559
+
12336
11560
  /**
12337
11561
  * A faster alternative to `Function#apply`, this function invokes `func`
12338
11562
  * with the `this` binding of `thisArg` and the arguments of `args`.
@@ -12417,6 +11641,16 @@
12417
11641
 
12418
11642
  var constant_1 = constant;
12419
11643
 
11644
+ var defineProperty = (function() {
11645
+ try {
11646
+ var func = _getNative(Object, 'defineProperty');
11647
+ func({}, '', {});
11648
+ return func;
11649
+ } catch (e) {}
11650
+ }());
11651
+
11652
+ var _defineProperty = defineProperty;
11653
+
12420
11654
  /**
12421
11655
  * The base implementation of `setToString` without support for hot loop shorting.
12422
11656
  *
@@ -13643,7 +12877,7 @@
13643
12877
  const ElCard = withInstall(script$1L);
13644
12878
 
13645
12879
  /** Error message constants. */
13646
- var FUNC_ERROR_TEXT = 'Expected a function';
12880
+ var FUNC_ERROR_TEXT$1 = 'Expected a function';
13647
12881
 
13648
12882
  /**
13649
12883
  * Creates a throttled function that only invokes `func` at most once per
@@ -13694,7 +12928,7 @@
13694
12928
  trailing = true;
13695
12929
 
13696
12930
  if (typeof func != 'function') {
13697
- throw new TypeError(FUNC_ERROR_TEXT);
12931
+ throw new TypeError(FUNC_ERROR_TEXT$1);
13698
12932
  }
13699
12933
  if (isObject_1(options)) {
13700
12934
  leading = 'leading' in options ? !!options.leading : leading;
@@ -16100,7 +15334,7 @@
16100
15334
  name: "ElCascader",
16101
15335
  components: {
16102
15336
  ElCascaderPanel: _CascaderPanel,
16103
- ElInput: _Input,
15337
+ ElInput,
16104
15338
  ElPopper: _Popper,
16105
15339
  ElScrollbar: _Scrollbar,
16106
15340
  ElTag
@@ -17752,7 +16986,7 @@
17752
16986
  components: {
17753
16987
  ElButton,
17754
16988
  ElPopper: _Popper,
17755
- ElInput: _Input,
16989
+ ElInput,
17756
16990
  SvPanel: script$1q,
17757
16991
  HueSlider: script$1s,
17758
16992
  AlphaSlider: script$1t,
@@ -18927,7 +18161,7 @@
18927
18161
  var script$1g = vue.defineComponent({
18928
18162
  components: {
18929
18163
  DateTable: script$1j,
18930
- ElInput: _Input,
18164
+ ElInput,
18931
18165
  ElButton,
18932
18166
  TimePickPanel: script$1P,
18933
18167
  MonthTable: script$1i,
@@ -19494,7 +18728,7 @@
19494
18728
 
19495
18729
  var script$1f = vue.defineComponent({
19496
18730
  directives: { clickoutside: ClickOutside },
19497
- components: { TimePickPanel: script$1P, DateTable: script$1j, ElInput: _Input, ElButton },
18731
+ components: { TimePickPanel: script$1P, DateTable: script$1j, ElInput, ElButton },
19498
18732
  props: {
19499
18733
  unlinkPanels: Boolean,
19500
18734
  parsedValue: {
@@ -23821,7 +23055,7 @@
23821
23055
  const ret = {};
23822
23056
  if (elForm.labelPosition === "top")
23823
23057
  return ret;
23824
- const labelWidth = addUnit(props.labelWidth) || addUnit(elForm.labelWidth);
23058
+ const labelWidth = addUnit(props.labelWidth || elForm.labelWidth);
23825
23059
  if (labelWidth) {
23826
23060
  ret.width = labelWidth;
23827
23061
  }
@@ -23835,7 +23069,7 @@
23835
23069
  if (!props.label && !props.labelWidth && isNested.value) {
23836
23070
  return ret;
23837
23071
  }
23838
- const labelWidth = addUnit(props.labelWidth) || addUnit(elForm.labelWidth);
23072
+ const labelWidth = addUnit(props.labelWidth || elForm.labelWidth);
23839
23073
  if (!props.label && !slots.label) {
23840
23074
  ret.marginLeft = labelWidth;
23841
23075
  }
@@ -24114,6 +23348,33 @@
24114
23348
 
24115
23349
  const ElIcon = withInstall(script$11);
24116
23350
 
23351
+ const imageViewerProps = buildProps({
23352
+ urlList: {
23353
+ type: definePropType(Array),
23354
+ default: () => mutable([])
23355
+ },
23356
+ zIndex: {
23357
+ type: Number,
23358
+ default: 2e3
23359
+ },
23360
+ initialIndex: {
23361
+ type: Number,
23362
+ default: 0
23363
+ },
23364
+ infinite: {
23365
+ type: Boolean,
23366
+ default: true
23367
+ },
23368
+ hideOnClickModal: {
23369
+ type: Boolean,
23370
+ default: false
23371
+ }
23372
+ });
23373
+ const imageViewerEmits = {
23374
+ close: () => true,
23375
+ switch: (index) => typeof index === "number"
23376
+ };
23377
+
24117
23378
  var __defProp$p = Object.defineProperty;
24118
23379
  var __defProps$i = Object.defineProperties;
24119
23380
  var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
@@ -24144,42 +23405,17 @@
24144
23405
  }
24145
23406
  };
24146
23407
  const mousewheelEventName = isFirefox$1() ? "DOMMouseScroll" : "mousewheel";
24147
- const CLOSE_EVENT = "close";
24148
- const SWITCH_EVENT = "switch";
24149
23408
  var script$10 = vue.defineComponent({
24150
23409
  name: "ElImageViewer",
24151
- props: {
24152
- urlList: {
24153
- type: Array,
24154
- default: () => []
24155
- },
24156
- zIndex: {
24157
- type: Number,
24158
- default: 2e3
24159
- },
24160
- initialIndex: {
24161
- type: Number,
24162
- default: 0
24163
- },
24164
- infinite: {
24165
- type: Boolean,
24166
- default: true
24167
- },
24168
- hideOnClickModal: {
24169
- type: Boolean,
24170
- default: false
24171
- }
24172
- },
24173
- emits: [CLOSE_EVENT, SWITCH_EVENT],
23410
+ props: imageViewerProps,
23411
+ emits: imageViewerEmits,
24174
23412
  setup(props, { emit }) {
24175
23413
  const { t } = useLocaleInject();
24176
- let _keyDownHandler = null;
24177
- let _mouseWheelHandler = null;
24178
- let _dragHandler = null;
23414
+ const wrapper = vue.ref();
23415
+ const img = vue.ref();
23416
+ const scopeEventListener = vue.effectScope();
24179
23417
  const loading = vue.ref(true);
24180
23418
  const index = vue.ref(props.initialIndex);
24181
- const wrapper = vue.ref(null);
24182
- const img = vue.ref(null);
24183
23419
  const mode = vue.ref(Mode.CONTAIN);
24184
23420
  const transform = vue.ref({
24185
23421
  scale: 1,
@@ -24215,11 +23451,11 @@
24215
23451
  return style;
24216
23452
  });
24217
23453
  function hide() {
24218
- deviceSupportUninstall();
24219
- emit(CLOSE_EVENT);
23454
+ unregisterEventListener();
23455
+ emit("close");
24220
23456
  }
24221
- function deviceSupportInstall() {
24222
- _keyDownHandler = rafThrottle((e) => {
23457
+ function registerEventListener() {
23458
+ const keydownHandler = rafThrottle((e) => {
24223
23459
  switch (e.code) {
24224
23460
  case EVENT_CODE.esc:
24225
23461
  hide();
@@ -24241,7 +23477,7 @@
24241
23477
  break;
24242
23478
  }
24243
23479
  });
24244
- _mouseWheelHandler = rafThrottle((e) => {
23480
+ const mousewheelHandler = rafThrottle((e) => {
24245
23481
  const delta = e.wheelDelta ? e.wheelDelta : -e.detail;
24246
23482
  if (delta > 0) {
24247
23483
  handleActions("zoomIn", {
@@ -24255,14 +23491,13 @@
24255
23491
  });
24256
23492
  }
24257
23493
  });
24258
- on(document, "keydown", _keyDownHandler);
24259
- on(document, mousewheelEventName, _mouseWheelHandler);
23494
+ scopeEventListener.run(() => {
23495
+ useEventListener(document, "keydown", keydownHandler);
23496
+ useEventListener(document, mousewheelEventName, mousewheelHandler);
23497
+ });
24260
23498
  }
24261
- function deviceSupportUninstall() {
24262
- off(document, "keydown", _keyDownHandler);
24263
- off(document, mousewheelEventName, _mouseWheelHandler);
24264
- _keyDownHandler = null;
24265
- _mouseWheelHandler = null;
23499
+ function unregisterEventListener() {
23500
+ scopeEventListener.stop();
24266
23501
  }
24267
23502
  function handleImgLoad() {
24268
23503
  loading.value = false;
@@ -24272,7 +23507,7 @@
24272
23507
  e.target.alt = t("el.image.error");
24273
23508
  }
24274
23509
  function handleMouseDown(e) {
24275
- if (loading.value || e.button !== 0)
23510
+ if (loading.value || e.button !== 0 || !wrapper.value)
24276
23511
  return;
24277
23512
  const { offsetX, offsetY } = transform.value;
24278
23513
  const startX = e.pageX;
@@ -24281,20 +23516,20 @@
24281
23516
  const divRight = wrapper.value.clientLeft + wrapper.value.clientWidth;
24282
23517
  const divTop = wrapper.value.clientTop;
24283
23518
  const divBottom = wrapper.value.clientTop + wrapper.value.clientHeight;
24284
- _dragHandler = rafThrottle((ev) => {
23519
+ const dragHandler = rafThrottle((ev) => {
24285
23520
  transform.value = __spreadProps$i(__spreadValues$p({}, transform.value), {
24286
23521
  offsetX: offsetX + ev.pageX - startX,
24287
23522
  offsetY: offsetY + ev.pageY - startY
24288
23523
  });
24289
23524
  });
24290
- on(document, "mousemove", _dragHandler);
24291
- on(document, "mouseup", (e2) => {
24292
- const mouseX = e2.pageX;
24293
- const mouseY = e2.pageY;
23525
+ const removeMousemove = useEventListener(document, "mousemove", dragHandler);
23526
+ useEventListener(document, "mouseup", (evt) => {
23527
+ const mouseX = evt.pageX;
23528
+ const mouseY = evt.pageY;
24294
23529
  if (mouseX < divLeft || mouseX > divRight || mouseY < divTop || mouseY > divBottom) {
24295
23530
  reset();
24296
23531
  }
24297
- off(document, "mousemove", _dragHandler);
23532
+ removeMousemove();
24298
23533
  });
24299
23534
  e.preventDefault();
24300
23535
  }
@@ -24359,18 +23594,18 @@
24359
23594
  vue.watch(currentImg, () => {
24360
23595
  vue.nextTick(() => {
24361
23596
  const $img = img.value;
24362
- if (!$img.complete) {
23597
+ if (!($img == null ? void 0 : $img.complete)) {
24363
23598
  loading.value = true;
24364
23599
  }
24365
23600
  });
24366
23601
  });
24367
23602
  vue.watch(index, (val) => {
24368
23603
  reset();
24369
- emit(SWITCH_EVENT, val);
23604
+ emit("switch", val);
24370
23605
  });
24371
23606
  vue.onMounted(() => {
24372
23607
  var _a, _b;
24373
- deviceSupportInstall();
23608
+ registerEventListener();
24374
23609
  (_b = (_a = wrapper.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
24375
23610
  });
24376
23611
  return {
@@ -24494,13 +23729,9 @@
24494
23729
  }
24495
23730
 
24496
23731
  script$10.render = render$V;
24497
- script$10.__file = "packages/components/image-viewer/src/index.vue";
23732
+ script$10.__file = "packages/components/image-viewer/src/image-viewer.vue";
24498
23733
 
24499
- script$10.install = (app) => {
24500
- app.component(script$10.name, script$10);
24501
- };
24502
- const _ImageViewer = script$10;
24503
- const ElImageViewer = _ImageViewer;
23734
+ const ElImageViewer = withInstall(script$10);
24504
23735
 
24505
23736
  const imageProps = buildProps({
24506
23737
  appendToBody: {
@@ -24539,7 +23770,7 @@
24539
23770
  });
24540
23771
  const imageEmits = {
24541
23772
  error: (evt) => evt instanceof Event,
24542
- switch: (val) => isBoolean(val),
23773
+ switch: (val) => isNumber(val),
24543
23774
  close: () => true
24544
23775
  };
24545
23776
 
@@ -24568,7 +23799,7 @@
24568
23799
  var script$$ = vue.defineComponent({
24569
23800
  name: "ElImage",
24570
23801
  components: {
24571
- ImageViewer: _ImageViewer
23802
+ ImageViewer: ElImageViewer
24572
23803
  },
24573
23804
  inheritAttrs: false,
24574
23805
  props: imageProps,
@@ -24792,7 +24023,7 @@
24792
24023
  var script$_ = vue.defineComponent({
24793
24024
  name: "ElInputNumber",
24794
24025
  components: {
24795
- ElInput: _Input
24026
+ ElInput
24796
24027
  },
24797
24028
  directives: {
24798
24029
  RepeatClick
@@ -25747,6 +24978,10 @@
25747
24978
  collapseTransition: {
25748
24979
  type: Boolean,
25749
24980
  default: true
24981
+ },
24982
+ ellipsis: {
24983
+ type: Boolean,
24984
+ default: true
25750
24985
  }
25751
24986
  });
25752
24987
  const checkIndexPath = (indexPath) => Array.isArray(indexPath) && indexPath.every((path) => isString$1(path));
@@ -25944,7 +25179,7 @@
25944
25179
  });
25945
25180
  const slotDefault = originalSlot.slice(0, sliceIndex);
25946
25181
  const slotMore = originalSlot.slice(sliceIndex);
25947
- if (slotMore == null ? void 0 : slotMore.length) {
25182
+ if ((slotMore == null ? void 0 : slotMore.length) && props.ellipsis) {
25948
25183
  slot = slotDefault;
25949
25184
  vShowMore.push(vue.h(SubMenu, {
25950
25185
  index: "sub-menu-more",
@@ -25958,7 +25193,8 @@
25958
25193
  }
25959
25194
  }
25960
25195
  const ulStyle = useMenuCssVar(props);
25961
- const vMenu = useVNodeResize(vue.h("ul", {
25196
+ const resizeMenu = (vNode) => props.ellipsis ? useVNodeResize(vNode) : vNode;
25197
+ const vMenu = resizeMenu(vue.h("ul", {
25962
25198
  key: String(props.collapse),
25963
25199
  role: "menubar",
25964
25200
  ref: menu,
@@ -25968,7 +25204,7 @@
25968
25204
  "el-menu--horizontal": props.mode === "horizontal",
25969
25205
  "el-menu--collapse": props.collapse
25970
25206
  }
25971
- }, [...slot.map((vnode) => useVNodeResize(vnode)), ...vShowMore]));
25207
+ }, [...slot.map((vnode) => resizeMenu(vnode)), ...vShowMore]));
25972
25208
  if (props.collapseTransition && props.mode === "vertical") {
25973
25209
  return vue.h(script$Y, () => vMenu);
25974
25210
  }
@@ -27285,7 +26521,7 @@
27285
26521
  name: "ElSelect",
27286
26522
  componentName: "ElSelect",
27287
26523
  components: {
27288
- ElInput: _Input,
26524
+ ElInput,
27289
26525
  ElSelectMenu: script$R,
27290
26526
  ElOption: script$S,
27291
26527
  ElTag,
@@ -27988,7 +27224,7 @@
27988
27224
  var script$N = vue.defineComponent({
27989
27225
  name: "ElPaginationJumper",
27990
27226
  components: {
27991
- ElInput: _Input
27227
+ ElInput
27992
27228
  },
27993
27229
  setup() {
27994
27230
  const { t } = useLocaleInject();
@@ -28830,7 +28066,6 @@
28830
28066
  percentage: {
28831
28067
  type: Number,
28832
28068
  default: 0,
28833
- required: true,
28834
28069
  validator: (val) => val >= 0 && val <= 100
28835
28070
  },
28836
28071
  status: {
@@ -29239,7 +28474,7 @@
29239
28474
  },
29240
28475
  [props.max]: props.iconClasses[2]
29241
28476
  } : props.iconClasses);
29242
- const decimalIconClass = vue.computed(() => getValueFromMap(props.modelValue, classMap.value));
28477
+ const decimalIconClass = vue.computed(() => getValueFromMap(currentValue.value, classMap.value));
29243
28478
  const voidClass = vue.computed(() => rateDisabled.value ? props.disabledVoidIconClass : props.voidIconClass);
29244
28479
  const activeClass = vue.computed(() => getValueFromMap(currentValue.value, classMap.value));
29245
28480
  const classes = vue.computed(() => {
@@ -29631,6 +28866,78 @@
29631
28866
  };
29632
28867
  const ElRow = _Row;
29633
28868
 
28869
+ /** Error message constants. */
28870
+ var FUNC_ERROR_TEXT = 'Expected a function';
28871
+
28872
+ /**
28873
+ * Creates a function that memoizes the result of `func`. If `resolver` is
28874
+ * provided, it determines the cache key for storing the result based on the
28875
+ * arguments provided to the memoized function. By default, the first argument
28876
+ * provided to the memoized function is used as the map cache key. The `func`
28877
+ * is invoked with the `this` binding of the memoized function.
28878
+ *
28879
+ * **Note:** The cache is exposed as the `cache` property on the memoized
28880
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
28881
+ * constructor with one whose instances implement the
28882
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
28883
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
28884
+ *
28885
+ * @static
28886
+ * @memberOf _
28887
+ * @since 0.1.0
28888
+ * @category Function
28889
+ * @param {Function} func The function to have its output memoized.
28890
+ * @param {Function} [resolver] The function to resolve the cache key.
28891
+ * @returns {Function} Returns the new memoized function.
28892
+ * @example
28893
+ *
28894
+ * var object = { 'a': 1, 'b': 2 };
28895
+ * var other = { 'c': 3, 'd': 4 };
28896
+ *
28897
+ * var values = _.memoize(_.values);
28898
+ * values(object);
28899
+ * // => [1, 2]
28900
+ *
28901
+ * values(other);
28902
+ * // => [3, 4]
28903
+ *
28904
+ * object.a = 2;
28905
+ * values(object);
28906
+ * // => [1, 2]
28907
+ *
28908
+ * // Modify the result cache.
28909
+ * values.cache.set(object, ['a', 'b']);
28910
+ * values(object);
28911
+ * // => ['a', 'b']
28912
+ *
28913
+ * // Replace `_.memoize.Cache`.
28914
+ * _.memoize.Cache = WeakMap;
28915
+ */
28916
+ function memoize(func, resolver) {
28917
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
28918
+ throw new TypeError(FUNC_ERROR_TEXT);
28919
+ }
28920
+ var memoized = function() {
28921
+ var args = arguments,
28922
+ key = resolver ? resolver.apply(this, args) : args[0],
28923
+ cache = memoized.cache;
28924
+
28925
+ if (cache.has(key)) {
28926
+ return cache.get(key);
28927
+ }
28928
+ var result = func.apply(this, args);
28929
+ memoized.cache = cache.set(key, result) || cache;
28930
+ return result;
28931
+ };
28932
+ memoized.cache = new (memoize.Cache || _MapCache);
28933
+ return memoized;
28934
+ }
28935
+
28936
+ // Expose `MapCache`.
28937
+ memoize.Cache = _MapCache;
28938
+
28939
+ var memoize_1 = memoize;
28940
+
29634
28941
  var safeIsNaN = Number.isNaN ||
29635
28942
  function ponyfill(value) {
29636
28943
  return typeof value === 'number' && value !== value;
@@ -32372,6 +31679,8 @@
32372
31679
  initHovering = true;
32373
31680
  }
32374
31681
  });
31682
+ } else {
31683
+ states.cachedOptions = [];
32375
31684
  }
32376
31685
  } else {
32377
31686
  if (props.modelValue) {
@@ -34663,7 +33972,7 @@
34663
33972
  };
34664
33973
  const getRowIdentity = (row, rowKey) => {
34665
33974
  if (!row)
34666
- throw new Error("row is required when get row identity");
33975
+ throw new Error("Row is required when get row identity");
34667
33976
  if (typeof rowKey === "string") {
34668
33977
  if (rowKey.indexOf(".") < 0) {
34669
33978
  return `${row[rowKey]}`;
@@ -35048,7 +34357,7 @@
35048
34357
  }, childrenColumnName.value, lazyColumnIdentifier.value);
35049
34358
  return res;
35050
34359
  };
35051
- const updateTreeData = (ifExpandAll = ((_a) => (_a = instance.store) == null ? void 0 : _a.states.defaultExpandAll.value)()) => {
34360
+ const updateTreeData = (ifChangeExpandRowKeys = false, ifExpandAll = ((_a) => (_a = instance.store) == null ? void 0 : _a.states.defaultExpandAll.value)()) => {
35052
34361
  var _a2;
35053
34362
  const nested = normalizedData.value;
35054
34363
  const normalizedLazyNode_ = normalizedLazyNode.value;
@@ -35058,10 +34367,15 @@
35058
34367
  const oldTreeData = vue.unref(treeData);
35059
34368
  const rootLazyRowKeys = [];
35060
34369
  const getExpanded = (oldValue, key) => {
35061
- if (expandRowKeys.value) {
35062
- return ifExpandAll || expandRowKeys.value.includes(key);
34370
+ if (ifChangeExpandRowKeys) {
34371
+ if (expandRowKeys.value) {
34372
+ return ifExpandAll || expandRowKeys.value.includes(key);
34373
+ } else {
34374
+ return !!(ifExpandAll || (oldValue == null ? void 0 : oldValue.expanded));
34375
+ }
35063
34376
  } else {
35064
- return !!(ifExpandAll || (oldValue == null ? void 0 : oldValue.expanded));
34377
+ const included = ifExpandAll || expandRowKeys.value && expandRowKeys.value.includes(key);
34378
+ return !!((oldValue == null ? void 0 : oldValue.expanded) || included);
35065
34379
  }
35066
34380
  };
35067
34381
  keys.forEach((key) => {
@@ -35103,6 +34417,9 @@
35103
34417
  treeData.value = newTreeData;
35104
34418
  (_a2 = instance.store) == null ? void 0 : _a2.updateTableScrollY();
35105
34419
  };
34420
+ vue.watch(() => expandRowKeys.value, () => {
34421
+ updateTreeData(true);
34422
+ });
35106
34423
  vue.watch(() => normalizedData.value, () => {
35107
34424
  updateTreeData();
35108
34425
  });
@@ -35876,10 +35193,10 @@
35876
35193
  }
35877
35194
  }
35878
35195
  if (!this.table) {
35879
- throw new Error("table is required for Table Layout");
35196
+ throw new Error("Table is required for Table Layout");
35880
35197
  }
35881
35198
  if (!this.store) {
35882
- throw new Error("store is required for Table Layout");
35199
+ throw new Error("Store is required for Table Layout");
35883
35200
  }
35884
35201
  }
35885
35202
  updateScrollY() {
@@ -37236,7 +36553,7 @@
37236
36553
  };
37237
36554
  const childKey = getRowIdentity(node, rowKey.value);
37238
36555
  if (childKey === void 0 || childKey === null) {
37239
- throw new Error("for nested data item, row-key is required.");
36556
+ throw new Error("For nested data item, row-key is required.");
37240
36557
  }
37241
36558
  cur = __spreadValues$8({}, treeData.value[childKey]);
37242
36559
  if (cur) {
@@ -38880,7 +38197,7 @@
38880
38197
  });
38881
38198
  if (renderDefault instanceof Array) {
38882
38199
  for (const childNode of renderDefault) {
38883
- if (((_c = childNode.type) == null ? void 0 : _c.name) === "ElTableColumn") {
38200
+ if (((_c = childNode.type) == null ? void 0 : _c.name) === "ElTableColumn" || childNode.shapeFlag & 2) {
38884
38201
  children.push(childNode);
38885
38202
  } else if (childNode.type === vue.Fragment && childNode.children instanceof Array) {
38886
38203
  children.push(...childNode.children);
@@ -40013,7 +39330,7 @@
40013
39330
  components: {
40014
39331
  ElCheckboxGroup: ElCheckboxGroup$1,
40015
39332
  ElCheckbox,
40016
- ElInput: _Input,
39333
+ ElInput,
40017
39334
  OptionContent: ({ option }) => option
40018
39335
  },
40019
39336
  props: useCheckProps,
@@ -40655,7 +39972,7 @@
40655
39972
  }
40656
39973
  insertChild(child, index, batch) {
40657
39974
  if (!child)
40658
- throw new Error("insertChild error: child is required.");
39975
+ throw new Error("InsertChild error: child is required.");
40659
39976
  if (!(child instanceof Node$1)) {
40660
39977
  if (!batch) {
40661
39978
  const children = this.getChildren(true);
@@ -43517,6 +42834,30 @@
43517
42834
 
43518
42835
  var _arrayEach = arrayEach;
43519
42836
 
42837
+ /**
42838
+ * The base implementation of `assignValue` and `assignMergeValue` without
42839
+ * value checks.
42840
+ *
42841
+ * @private
42842
+ * @param {Object} object The object to modify.
42843
+ * @param {string} key The key of the property to assign.
42844
+ * @param {*} value The value to assign.
42845
+ */
42846
+ function baseAssignValue(object, key, value) {
42847
+ if (key == '__proto__' && _defineProperty) {
42848
+ _defineProperty(object, key, {
42849
+ 'configurable': true,
42850
+ 'enumerable': true,
42851
+ 'value': value,
42852
+ 'writable': true
42853
+ });
42854
+ } else {
42855
+ object[key] = value;
42856
+ }
42857
+ }
42858
+
42859
+ var _baseAssignValue = baseAssignValue;
42860
+
43520
42861
  /** Used for built-in method references. */
43521
42862
  var objectProto$2 = Object.prototype;
43522
42863
 
@@ -45561,7 +44902,7 @@
45561
44902
  },
45562
44903
  components: {
45563
44904
  ElButton,
45564
- ElInput: _Input,
44905
+ ElInput,
45565
44906
  ElOverlay
45566
44907
  },
45567
44908
  inheritAttrs: false,
@@ -46561,6 +45902,10 @@
46561
45902
  exports.iconProps = iconProps;
46562
45903
  exports.imageEmits = imageEmits;
46563
45904
  exports.imageProps = imageProps;
45905
+ exports.imageViewerEmits = imageViewerEmits;
45906
+ exports.imageViewerProps = imageViewerProps;
45907
+ exports.inputEmits = inputEmits;
45908
+ exports.inputProps = inputProps;
46564
45909
  exports.install = install;
46565
45910
  exports.linkEmits = linkEmits;
46566
45911
  exports.linkProps = linkProps;