@web-utils/form-ui 1.0.0-beta74 → 1.0.0-beta76

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 (297) hide show
  1. package/affix/index.mjs +1 -1
  2. package/capsule-tab/index.mjs +2 -27
  3. package/card/index.mjs +1 -1
  4. package/chunks/{DqWJCka8.mjs → 285I1DfO.mjs} +1 -1
  5. package/chunks/{DizOY5i8.mjs → 6eDDQWcr.mjs} +2 -2
  6. package/chunks/{D6YM84Pf2.mjs → B-WTB0ce2.mjs} +1 -1
  7. package/chunks/{Opn85Hlx2.mjs → B2Y1LWJ3.mjs} +1 -1
  8. package/chunks/{Ce4tNNzg2.mjs → BLBHnUme2.mjs} +1 -1
  9. package/chunks/{BI6kCG2j2.mjs → BM8snKHN2.mjs} +2 -2
  10. package/chunks/{Lkg7bYLD2.mjs → BP_0cJ172.mjs} +70 -70
  11. package/chunks/{-fXBgN9b2.mjs → BTNnujZA2.mjs} +1 -1
  12. package/chunks/{DTq5QLoT.mjs → BZRmdKBG.mjs} +2 -2
  13. package/chunks/{B0BOjeph2.mjs → BaB0bq4I2.mjs} +1 -1
  14. package/chunks/{jsgk7Yse2.mjs → Bh2SlzOo.mjs} +1 -1
  15. package/chunks/{7_9hAeqb.mjs → BkoWiWEW.mjs} +2 -2
  16. package/chunks/{CWBRpkHy.mjs → Bq9KMIsC.mjs} +4 -4
  17. package/chunks/{Dv7YRB2U2.mjs → BvlU_Z6D2.mjs} +1 -1
  18. package/chunks/C-iN5MJZ.mjs +57 -0
  19. package/chunks/{Byy1rvPO.mjs → C0gLPKS8.mjs} +2 -2
  20. package/chunks/{DVMfVn-M.mjs → C3pzNRoU2.mjs} +2 -2
  21. package/chunks/C7rEqtOR.mjs +70 -0
  22. package/chunks/{sWVkgzQt2.mjs → CF23xugU2.mjs} +2 -2
  23. package/chunks/{Dh_BQpvC2.mjs → CFKKwzh72.mjs} +2 -2
  24. package/chunks/{_q6JzJYp.mjs → CGVBF4Ml.mjs} +1 -1
  25. package/chunks/{CFoSvMJ-2.mjs → CI-pH-gR2.mjs} +1 -1
  26. package/chunks/{-yfgKY3g.mjs → CLn5E7NV.mjs} +1 -1
  27. package/chunks/{DVdQHb_v.mjs → CVM0lwn22.mjs} +2 -2
  28. package/chunks/{CjYOitzM2.mjs → CWaId08S2.mjs} +1 -1
  29. package/chunks/{BhIWiH5R.mjs → Cb7kjZa-.mjs} +3 -3
  30. package/chunks/{DucSg7Mt.mjs → CeI6Qrij.mjs} +2 -2
  31. package/chunks/{CelJ2L8A2.mjs → Cg6ahpHk.mjs} +2 -2
  32. package/chunks/{DrWUdRj32.mjs → CpIXTVFU2.mjs} +2 -2
  33. package/chunks/Ctx93AFS.mjs +54 -0
  34. package/chunks/{D4Pd8rZi.mjs → CyQmVphZ.mjs} +2 -2
  35. package/chunks/{Daa7nl7U.mjs → D6qJXu04.mjs} +1 -1
  36. package/chunks/{Bj0kgDOA.mjs → DFa2J7ul.mjs} +4 -4
  37. package/chunks/{HsHwYW1a.mjs → DLdsvozr.mjs} +2 -2
  38. package/chunks/{DyLQsqWJ.mjs → DMDsZeqv.mjs} +1 -1
  39. package/chunks/{C6mb7Nru2.mjs → DNiq6hHj2.mjs} +3 -3
  40. package/chunks/{KDVLIvaS.mjs → DP7eF99m2.mjs} +1 -1
  41. package/chunks/{CwyebsNL2.mjs → DRXM1Mt22.mjs} +1 -1
  42. package/chunks/{DjaV6_cg2.mjs → D_gR5ibl2.mjs} +2 -2
  43. package/chunks/{BE4V5Vf5.mjs → Dgwcljur.mjs} +63 -41
  44. package/chunks/{Cknuquqx.mjs → Dhdoa4M6.mjs} +1 -1
  45. package/chunks/{Dm3gQGoV2.mjs → Dje2xUVd2.mjs} +2 -2
  46. package/chunks/Dodxnwze.mjs +60 -0
  47. package/chunks/DokYQ49m.mjs +29 -0
  48. package/chunks/{gTgPZrgY2.mjs → DvkUImww2.mjs} +113 -113
  49. package/chunks/{-zgWD713.mjs → DyGddGTO.mjs} +1 -1
  50. package/chunks/{YdNYH25C.mjs → SInS7QSL.mjs} +1 -1
  51. package/chunks/{BGJjAw5E.mjs → hPAfGilD.mjs} +1 -1
  52. package/chunks/{Ccxbv7uz2.mjs → kAaQhLJs2.mjs} +1 -1
  53. package/chunks/{QTy8g5MS.mjs → l5bfIjYm.mjs} +21 -26
  54. package/chunks/{nL59ZuIk.mjs → ohCkWdwS.mjs} +1 -1
  55. package/chunks/{CO3taG7t2.mjs → tJ_t87kJ.mjs} +1 -1
  56. package/chunks/{BctSGDgW2.mjs → x2jJ6cfy2.mjs} +1 -1
  57. package/code-mirror-editor/index.mjs +1 -1
  58. package/confirm-button/index.mjs +1 -1
  59. package/confirmable/index.mjs +1 -1
  60. package/context-menu/index.mjs +1 -1
  61. package/count-up/index.mjs +1 -1
  62. package/custom-scrollbar/index.mjs +1 -1
  63. package/data-box/index.mjs +2 -69
  64. package/data-card/index.mjs +1 -1
  65. package/data-card-text/index.mjs +1 -1
  66. package/data-display/index.mjs +1 -1
  67. package/data-icons/index.mjs +1 -1
  68. package/data-imgtext/index.mjs +1 -1
  69. package/data-operatext/index.mjs +1 -1
  70. package/data-panel/index.mjs +1 -1
  71. package/data-pay/index.mjs +1 -1
  72. package/data-price/index.mjs +1 -1
  73. package/data-progress/index.mjs +1 -1
  74. package/data-rotate/index.mjs +2 -66
  75. package/data-table-picker/index.mjs +3 -3
  76. package/data-tabs/index.mjs +2 -72
  77. package/dict-render/index.mjs +1 -1
  78. package/e-charts/index.mjs +1 -1
  79. package/easy-popup/index.mjs +1 -1
  80. package/editable-progress/index.mjs +1 -1
  81. package/editable-tree/index.mjs +2 -2
  82. package/element-dialog/index.mjs +1 -1
  83. package/element-resize-observer/index.mjs +1 -1
  84. package/flex-box/index.mjs +1 -1
  85. package/flex-column/index.mjs +1 -1
  86. package/flex-item/index.mjs +1 -1
  87. package/flex-row/index.mjs +1 -1
  88. package/flex-scroller/index.mjs +1 -1
  89. package/flow-designer/index.mjs +1 -1
  90. package/flow-viewer/index.mjs +1 -1
  91. package/form-advice/index.mjs +2 -2
  92. package/form-cascader/index.mjs +1 -1
  93. package/form-checkbox/index.mjs +1 -1
  94. package/form-checkbox-group/index.mjs +1 -1
  95. package/form-date-picker/index.mjs +1 -1
  96. package/form-holder/index.mjs +1 -1
  97. package/form-image/index.mjs +1 -1
  98. package/form-input/index.mjs +1 -1
  99. package/form-input-cron-expression/index.mjs +1 -1
  100. package/form-input-email/index.mjs +1 -1
  101. package/form-input-id-card/index.mjs +1 -1
  102. package/form-input-number/index.mjs +1 -1
  103. package/form-input-phone-number/index.mjs +1 -1
  104. package/form-input-tag/index.mjs +1 -1
  105. package/form-input-time/index.mjs +1 -1
  106. package/form-item-group/index.mjs +1 -1
  107. package/form-item-x/index.mjs +1 -1
  108. package/form-radio-group/index.mjs +1 -1
  109. package/form-rate/index.mjs +1 -1
  110. package/form-red-table/index.mjs +22 -22
  111. package/form-row/index.mjs +1 -1
  112. package/form-select/index.mjs +1 -1
  113. package/form-slider/index.mjs +1 -1
  114. package/form-switch/index.mjs +1 -1
  115. package/form-table/index.mjs +1 -1
  116. package/form-table-plus/index.mjs +1 -1
  117. package/form-text/index.mjs +1 -1
  118. package/form-textarea/index.mjs +1 -1
  119. package/form-time-select/index.mjs +1 -1
  120. package/form-tree-select/index.mjs +1 -1
  121. package/form-tree-select-multiple/index.mjs +1 -1
  122. package/form-view/index.mjs +3 -3
  123. package/guide-steps/index.mjs +1 -1
  124. package/helper/input.d.ts +3 -1
  125. package/helper/input.mjs +1 -1
  126. package/helper/sub-table-plus.d.ts +1 -1
  127. package/highlight-j-s/index.mjs +1 -1
  128. package/iframe-window/index.mjs +1 -1
  129. package/image-cropper/index.mjs +4 -4
  130. package/image-preview/index.mjs +1 -1
  131. package/image-viewer/index.mjs +1 -1
  132. package/index.mjs +54 -54
  133. package/input-number-range/index.mjs +1 -1
  134. package/keyboard/index.mjs +1 -1
  135. package/loading-view/index.mjs +1 -1
  136. package/name-avatar/index.mjs +1 -1
  137. package/package.json +3 -3
  138. package/page-index/index.mjs +1 -1
  139. package/page-index-top/index.mjs +1 -1
  140. package/pageable-table/index.mjs +1 -1
  141. package/photo-swipe/index.mjs +1 -1
  142. package/resolver/index.mjs +1 -1
  143. package/sign-panel/index.mjs +1 -1
  144. package/split-pane/index.mjs +1 -1
  145. package/sub-table/index.mjs +1 -1
  146. package/sub-table-plus/index.mjs +1 -1
  147. package/swiper/index.mjs +2 -2
  148. package/table-column/index.mjs +1 -1
  149. package/table-column-def/index.mjs +1 -1
  150. package/table-view/index.mjs +5 -5
  151. package/tag-render/index.mjs +16 -17
  152. package/text-ellipsis/index.mjs +1 -1
  153. package/toolbar/index.mjs +1 -1
  154. package/toolbar-button/index.mjs +1 -1
  155. package/vue-cron/index.mjs +1 -1
  156. package/vue-tags-input/index.mjs +1 -1
  157. package/vue-tree-select/index.mjs +1 -1
  158. package/vue-video-player/index.mjs +1 -1
  159. package/watermark/index.mjs +1 -1
  160. package/web-types.json +1 -1
  161. package/x-input-tag/index.mjs +38 -39
  162. package/year-calendar/index.mjs +1 -1
  163. package/address-input/index.d.ts +0 -52
  164. package/affix/index.d.ts +0 -30
  165. package/awesome-button/index.d.ts +0 -60
  166. package/capsule-tab/index.d.ts +0 -22
  167. package/card/index.d.ts +0 -41
  168. package/chunks/DqW9QtF3.mjs +0 -68
  169. package/code-mirror-editor/index.d.ts +0 -50
  170. package/confirm-button/index.d.ts +0 -122
  171. package/confirmable/index.d.ts +0 -93
  172. package/context-menu/index.d.ts +0 -183
  173. package/count-up/index.d.ts +0 -70
  174. package/custom-scrollbar/index.d.ts +0 -49
  175. package/data-box/index.d.ts +0 -19
  176. package/data-card/index.d.ts +0 -20
  177. package/data-card-text/index.d.ts +0 -21
  178. package/data-display/index.d.ts +0 -20
  179. package/data-icons/index.d.ts +0 -21
  180. package/data-imgtext/index.d.ts +0 -18
  181. package/data-operatext/index.d.ts +0 -17
  182. package/data-panel/index.d.ts +0 -19
  183. package/data-pay/index.d.ts +0 -19
  184. package/data-price/index.d.ts +0 -17
  185. package/data-progress/index.d.ts +0 -19
  186. package/data-rotate/index.d.ts +0 -19
  187. package/data-table-picker/index.d.ts +0 -61
  188. package/data-tabs/index.d.ts +0 -19
  189. package/dict-render/index.d.ts +0 -28
  190. package/e-charts/index.d.ts +0 -79
  191. package/easy-popup/index.d.ts +0 -114
  192. package/editable-progress/index.d.ts +0 -68
  193. package/editable-tree/index.d.ts +0 -281
  194. package/element-dialog/index.d.ts +0 -376
  195. package/element-resize-observer/index.d.ts +0 -8
  196. package/empty-view/index.d.ts +0 -29
  197. package/error-view/index.d.ts +0 -25
  198. package/flex-box/index.d.ts +0 -44
  199. package/flex-column/index.d.ts +0 -41
  200. package/flex-item/index.d.ts +0 -77
  201. package/flex-row/index.d.ts +0 -41
  202. package/flex-scroll-area/index.d.ts +0 -22
  203. package/flex-scroller/index.d.ts +0 -26
  204. package/flow-designer/index.d.ts +0 -353
  205. package/flow-viewer/index.d.ts +0 -62
  206. package/form-advice/index.d.ts +0 -9
  207. package/form-button/index.d.ts +0 -123
  208. package/form-card/index.d.ts +0 -14
  209. package/form-cascader/index.d.ts +0 -478
  210. package/form-cell/index.d.ts +0 -25
  211. package/form-checkbox/index.d.ts +0 -314
  212. package/form-checkbox-group/index.d.ts +0 -373
  213. package/form-date-picker/index.d.ts +0 -487
  214. package/form-holder/index.d.ts +0 -162
  215. package/form-image/index.d.ts +0 -220
  216. package/form-input/index.d.ts +0 -378
  217. package/form-input-cron-expression/index.d.ts +0 -223
  218. package/form-input-email/index.d.ts +0 -376
  219. package/form-input-id-card/index.d.ts +0 -376
  220. package/form-input-number/index.d.ts +0 -329
  221. package/form-input-phone-number/index.d.ts +0 -376
  222. package/form-input-tag/index.d.ts +0 -270
  223. package/form-input-time/index.d.ts +0 -441
  224. package/form-item-config-provider/index.d.ts +0 -40
  225. package/form-item-group/index.d.ts +0 -92
  226. package/form-item-x/index.d.ts +0 -190
  227. package/form-radio-group/index.d.ts +0 -374
  228. package/form-rate/index.d.ts +0 -325
  229. package/form-red-table/index.d.ts +0 -21
  230. package/form-row/index.d.ts +0 -11
  231. package/form-select/index.d.ts +0 -606
  232. package/form-slider/index.d.ts +0 -352
  233. package/form-switch/index.d.ts +0 -343
  234. package/form-table/index.d.ts +0 -287
  235. package/form-table-plus/index.d.ts +0 -266
  236. package/form-text/index.d.ts +0 -235
  237. package/form-textarea/index.d.ts +0 -351
  238. package/form-time-select/index.d.ts +0 -325
  239. package/form-tree-select/index.d.ts +0 -715
  240. package/form-tree-select-multiple/index.d.ts +0 -717
  241. package/form-view/index.d.ts +0 -226
  242. package/guide-steps/index.d.ts +0 -31
  243. package/highlight-j-s/index.d.ts +0 -18
  244. package/iframe-window/index.d.ts +0 -9
  245. package/image-cropper/index.d.ts +0 -365
  246. package/image-preview/index.d.ts +0 -61
  247. package/image-viewer/index.d.ts +0 -25
  248. package/input-number-range/index.d.ts +0 -41
  249. package/keyboard/index.d.ts +0 -64
  250. package/loading-view/index.d.ts +0 -65
  251. package/name-avatar/index.d.ts +0 -62
  252. package/nav-bar/index.d.ts +0 -21
  253. package/page/index.d.ts +0 -21
  254. package/page-header/index.d.ts +0 -27
  255. package/page-index/index.d.ts +0 -82
  256. package/page-index-top/index.d.ts +0 -38
  257. package/page-skeleton/index.d.ts +0 -30
  258. package/page-skeleton-new/index.d.ts +0 -34
  259. package/pageable-table/index.d.ts +0 -400
  260. package/photo-swipe/index.d.ts +0 -18
  261. package/sign-panel/index.d.ts +0 -85
  262. package/skeleton-panel/index.d.ts +0 -27
  263. package/split-pane/index.d.ts +0 -106
  264. package/stateful/index.d.ts +0 -92
  265. package/sub-table/index.d.ts +0 -109
  266. package/sub-table-plus/index.d.ts +0 -109
  267. package/swiper/index.d.ts +0 -27
  268. package/table-column/index.d.ts +0 -163
  269. package/table-column-def/index.d.ts +0 -97
  270. package/table-view/index.d.ts +0 -346
  271. package/tag-render/index.d.ts +0 -48
  272. package/text-ellipsis/index.d.ts +0 -111
  273. package/toolbar/index.d.ts +0 -129
  274. package/toolbar-button/index.d.ts +0 -189
  275. package/vue-cron/index.d.ts +0 -191
  276. package/vue-qr-code/index.d.ts +0 -47
  277. package/vue-tags-input/index.d.ts +0 -373
  278. package/vue-tree-select/index.d.ts +0 -1489
  279. package/vue-video-player/index.d.ts +0 -117
  280. package/watermark/index.d.ts +0 -97
  281. package/x-input-tag/index.d.ts +0 -2
  282. package/year-calendar/index.d.ts +0 -99
  283. /package/chunks/{BoCxKwBf.mjs → 3UWcbJcG.mjs} +0 -0
  284. /package/chunks/{CaczibeD.mjs → B1MSrc6f.mjs} +0 -0
  285. /package/chunks/{CQeEP_Tl.mjs → B1jgu0ci.mjs} +0 -0
  286. /package/chunks/{DZCryyFG.mjs → CHmZyvFr.mjs} +0 -0
  287. /package/chunks/{BrelfRGo2.mjs → CJ7Ai-mH2.mjs} +0 -0
  288. /package/chunks/{8A7LSgb4.mjs → CZeL7oiY2.mjs} +0 -0
  289. /package/chunks/{CE67pCwD.mjs → C_QfuxeQ.mjs} +0 -0
  290. /package/chunks/{BhzlH7Az.mjs → DdACGFy3.mjs} +0 -0
  291. /package/chunks/{OBTStTaa.mjs → V-Js6hNd.mjs} +0 -0
  292. /package/chunks/{OEBJ-trG.mjs → X-ckP2Hj.mjs} +0 -0
  293. /package/chunks/{fjtZc9Rq2.mjs → b_78-Wov2.mjs} +0 -0
  294. /package/chunks/{tjwOOiNr2.mjs → gNfZhMJk2.mjs} +0 -0
  295. /package/chunks/{BH7VEktl.mjs → mnqSaATq.mjs} +0 -0
  296. /package/chunks/{Dq63V0CC.mjs → tzjUpVIj.mjs} +0 -0
  297. /package/chunks/{BBvIPqcc.mjs → z6tpYT0z.mjs} +0 -0
@@ -1,13 +1,12 @@
1
- import { t as e } from "../chunks/CaczibeD.mjs";
2
- import { t } from "../chunks/BH7VEktl.mjs";
3
- import { ElInput as n, ElMessage as r, ElPopover as i, ElTag as a } from "element-plus/es";
1
+ import { t as e } from "../chunks/B1MSrc6f.mjs";
2
+ import { t } from "../chunks/mnqSaATq.mjs";
3
+ import { ElInput as n, ElMessage as r, ElPopover as i, ElTag as a, formContextKey as o, formItemContextKey as s } from "element-plus/es";
4
4
  import "element-plus/es/components/base/style/css";
5
5
  import "element-plus/es/components/input/style/css";
6
- import { Fragment as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, nextTick as f, normalizeClass as p, openBlock as m, renderList as h, toDisplayString as g, vShow as _, withCtx as v, withDirectives as y, withKeys as b } from "vue";
7
- import { isArray as x, isDef as S, isPlainObject as C, scrollIntoView as w } from "@web-utils/core";
6
+ import { Fragment as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, nextTick as m, normalizeClass as h, openBlock as g, renderList as _, toDisplayString as v, vShow as y, withCtx as b, withDirectives as x, withKeys as S } from "vue";
7
+ import { isArray as C, isDef as w, isPlainObject as T, scrollIntoView as E } from "@web-utils/core";
8
8
  import "element-plus/es/components/message/style/css";
9
- import { debounce as T } from "lodash-es";
10
- import { formContextKey as E, formItemContextKey as D } from "element-plus";
9
+ import { debounce as D } from "lodash-es";
11
10
  import "element-plus/es/components/popover/style/css";
12
11
  import "element-plus/es/components/tag/style/css";
13
12
  //#region src/components/form/XInputTag.vue
@@ -15,11 +14,11 @@ var O = {
15
14
  name: "XInputTag",
16
15
  inject: {
17
16
  elForm: {
18
- from: E,
17
+ from: o,
19
18
  default: ""
20
19
  },
21
20
  elFormItem: {
22
- from: D,
21
+ from: s,
23
22
  default: ""
24
23
  }
25
24
  },
@@ -74,7 +73,7 @@ var O = {
74
73
  }) : this.modelValue : [];
75
74
  } else {
76
75
  var t;
77
- let e = this.arrayMode ? this.modelValue || [] : x(this.modelValue) ? this.modelValue : ((t = this.modelValue) == null ? void 0 : t.split(this.separator)) || [];
76
+ let e = this.arrayMode ? this.modelValue || [] : C(this.modelValue) ? this.modelValue : ((t = this.modelValue) == null ? void 0 : t.split(this.separator)) || [];
78
77
  return e.length && e[0] ? e.map((e) => this.objectMode ? {
79
78
  name: e,
80
79
  id: null
@@ -83,25 +82,25 @@ var O = {
83
82
  } }
84
83
  },
85
84
  created() {
86
- this.query && (this.debounceQuery = T(async () => {
85
+ this.query && (this.debounceQuery = D(async () => {
87
86
  this.query ? (this.items = await this.query(this.inputValue), this.currentIndex = 0) : this.currentIndex = null;
88
87
  }, 200));
89
88
  },
90
89
  methods: {
91
90
  async showInput() {
92
91
  var e;
93
- this.inputVisible = !0, await f(), this.$refs.saveTagInput.$refs.input.focus(), (e = this.items) != null && e.length && (this.currentIndex = 0);
92
+ this.inputVisible = !0, await m(), this.$refs.saveTagInput.$refs.input.focus(), (e = this.items) != null && e.length && (this.currentIndex = 0);
94
93
  },
95
94
  handleClose(e) {
96
95
  let t = this.tags.filter((t) => t !== e);
97
96
  this.$emit("update:modelValue", this.arrayMode ? t : t.map((e) => e.name || e).join(this.separator));
98
97
  },
99
98
  async handleInputConfirm() {
100
- await f(), S(this.currentIndex) && this.items[this.currentIndex] ? await this.addTag(this.items[this.currentIndex]) : this.inputValue ? await this.addTag(this.inputValue) : await this.reset();
99
+ await m(), w(this.currentIndex) && this.items[this.currentIndex] ? await this.addTag(this.items[this.currentIndex]) : this.inputValue ? await this.addTag(this.inputValue) : await this.reset();
101
100
  },
102
101
  async reset() {
103
102
  var e;
104
- (e = this.$refs.popover) == null || e.hide(), await f(), this.inputVisible = !1, this.inputValue = "", this.currentIndex = null;
103
+ (e = this.$refs.popover) == null || e.hide(), await m(), this.inputVisible = !1, this.inputValue = "", this.currentIndex = null;
105
104
  },
106
105
  async addTag(e) {
107
106
  if (this.tags.length >= this.maxTag) {
@@ -113,7 +112,7 @@ var O = {
113
112
  }
114
113
  if (e) {
115
114
  var t;
116
- let n = C(e);
115
+ let n = T(e);
117
116
  if (this.tags.some((t) => (this.objectMode && t.name || t) === (n && e.name || e))) {
118
117
  this.inputVisible = !1, this.inputValue = "", r.warning({
119
118
  message: `${this.type}已存在!`,
@@ -147,7 +146,7 @@ var O = {
147
146
  },
148
147
  select(e) {
149
148
  var t;
150
- (t = this.items) != null && t.length && (e === 1 ? this.currentIndex > 0 ? this.currentIndex-- : this.currentIndex = this.items.length - 1 : e === 2 && (this.currentIndex < this.items.length - 1 ? this.currentIndex++ : this.currentIndex = 0), w(this.$refs.list, this.$refs.items[this.currentIndex]));
149
+ (t = this.items) != null && t.length && (e === 1 ? this.currentIndex > 0 ? this.currentIndex-- : this.currentIndex = this.items.length - 1 : e === 2 && (this.currentIndex < this.items.length - 1 ? this.currentIndex++ : this.currentIndex = 0), E(this.$refs.list, this.$refs.items[this.currentIndex]));
151
150
  }
152
151
  }
153
152
  }, k = { class: "x-input-tag" }, A = {
@@ -164,31 +163,31 @@ var O = {
164
163
  ref: "list",
165
164
  class: "dropdown-item-list"
166
165
  }, N = ["onMouseenter", "onClick"];
167
- function P(e, r, f, x, S, C) {
166
+ function P(e, r, o, s, m, C) {
168
167
  let w = a, T = n, E = t, D = i;
169
- return m(), l("div", k, [
170
- C.tags && C.tags.length && C.tags[0] ? (m(!0), l(o, { key: 0 }, h(C.tags, (e, t) => (m(), s(w, {
168
+ return g(), d("div", k, [
169
+ C.tags && C.tags.length && C.tags[0] ? (g(!0), d(c, { key: 0 }, _(C.tags, (e, t) => (g(), l(w, {
171
170
  key: e.id || e.name || e,
172
171
  size: "small",
173
172
  "disable-transitions": "",
174
173
  closable: !C.inputDisabled,
175
174
  onClose: (n) => C.handleClose(e, t)
176
175
  }, {
177
- default: v(() => [d(g(e.name || e), 1)]),
176
+ default: b(() => [p(v(e.name || e), 1)]),
178
177
  _: 2
179
- }, 1032, ["closable", "onClose"]))), 128)) : C.inputDisabled ? (m(), l("span", A, "无")) : c("v-if", !0),
180
- C.inputDisabled ? c("v-if", !0) : y((m(), s(T, {
178
+ }, 1032, ["closable", "onClose"]))), 128)) : C.inputDisabled ? (g(), d("span", A, "无")) : u("v-if", !0),
179
+ C.inputDisabled ? u("v-if", !0) : x((g(), l(T, {
181
180
  key: 2,
182
181
  ref: "saveTagInput",
183
- modelValue: S.inputValue,
184
- "onUpdate:modelValue": [r[0] || (r[0] = (e) => S.inputValue = e), C.tryQuery],
182
+ modelValue: m.inputValue,
183
+ "onUpdate:modelValue": [r[0] || (r[0] = (e) => m.inputValue = e), C.tryQuery],
185
184
  class: "input-new-tag",
186
185
  size: "small",
187
186
  onKeyup: [
188
- r[1] || (r[1] = b((e) => C.select(1), ["up"])),
189
- r[2] || (r[2] = b((e) => C.select(2), ["down"])),
190
- b(C.onInputBlur, ["esc"]),
191
- b(C.handleInputConfirm, ["enter"])
187
+ r[1] || (r[1] = S((e) => C.select(1), ["up"])),
188
+ r[2] || (r[2] = S((e) => C.select(2), ["down"])),
189
+ S(C.onInputBlur, ["esc"]),
190
+ S(C.handleInputConfirm, ["enter"])
192
191
  ],
193
192
  onBlur: C.onInputBlur
194
193
  }, null, 8, [
@@ -196,18 +195,18 @@ function P(e, r, f, x, S, C) {
196
195
  "onUpdate:modelValue",
197
196
  "onKeyup",
198
197
  "onBlur"
199
- ])), [[_, S.inputVisible]]),
200
- !C.inputDisabled && !S.inputVisible ? y((m(), s(E, {
198
+ ])), [[y, m.inputVisible]]),
199
+ !C.inputDisabled && !m.inputVisible ? x((g(), l(E, {
201
200
  key: 3,
202
201
  class: "button-new-tag",
203
202
  size: "small",
204
203
  onClick: C.showInput
205
204
  }, {
206
- default: v(() => [...r[3] || (r[3] = [d(" + 添加 ", -1)])]),
205
+ default: b(() => [...r[3] || (r[3] = [p(" + 添加 ", -1)])]),
207
206
  _: 1
208
- }, 8, ["onClick"])), [[_, C.tags.length < S.maxTag]]) : c("v-if", !0),
209
- f.count ? (m(), l("span", j, g(C.tags.length && C.tags[0] ? C.tags.length : ""), 1)) : c("v-if", !0),
210
- f.query ? (m(), s(D, {
207
+ }, 8, ["onClick"])), [[y, C.tags.length < m.maxTag]]) : u("v-if", !0),
208
+ o.count ? (g(), d("span", j, v(C.tags.length && C.tags[0] ? C.tags.length : ""), 1)) : u("v-if", !0),
209
+ o.query ? (g(), l(D, {
211
210
  key: 5,
212
211
  ref: "popover",
213
212
  "virtual-ref": e.$refs.saveTagInput,
@@ -216,16 +215,16 @@ function P(e, r, f, x, S, C) {
216
215
  "popper-class": "dropdown-popup",
217
216
  trigger: "manual"
218
217
  }, {
219
- default: v(() => [u("ul", M, [(m(!0), l(o, null, h(S.items, (e, t) => (m(), l("li", {
218
+ default: b(() => [f("ul", M, [(g(!0), d(c, null, _(m.items, (e, t) => (g(), d("li", {
220
219
  ref_for: !0,
221
220
  ref: "items",
222
221
  key: e.id || e.name || e,
223
- class: p(["dropdown-item", { active: S.currentIndex === t }]),
224
- onMouseenter: (e) => S.currentIndex = t,
222
+ class: h(["dropdown-item", { active: m.currentIndex === t }]),
223
+ onMouseenter: (e) => m.currentIndex = t,
225
224
  onClick: (t) => C.onDropdownItemClick(e)
226
- }, g(e.name || e), 43, N))), 128))], 512)]),
225
+ }, v(e.name || e), 43, N))), 128))], 512)]),
227
226
  _: 1
228
- }, 8, ["virtual-ref"])) : c("v-if", !0)
227
+ }, 8, ["virtual-ref"])) : u("v-if", !0)
229
228
  ]);
230
229
  }
231
230
  var F = /* @__PURE__ */ e(O, [["render", P]]);
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/_q6JzJYp.mjs";
1
+ import { t as e } from "../chunks/CGVBF4Ml.mjs";
2
2
  export { e as default };
@@ -1,52 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- options: {
3
- type: ArrayConstructor;
4
- default(): never[];
5
- };
6
- modelValue: {
7
- type: ObjectConstructor;
8
- default: () => {
9
- address: never[];
10
- detailAddress: string;
11
- };
12
- };
13
- props: {
14
- type: ObjectConstructor;
15
- default: () => {
16
- label: string;
17
- value: string;
18
- };
19
- };
20
- labelAsValue: BooleanConstructor;
21
- disabled: BooleanConstructor;
22
- }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
23
- options: {
24
- type: ArrayConstructor;
25
- default(): never[];
26
- };
27
- modelValue: {
28
- type: ObjectConstructor;
29
- default: () => {
30
- address: never[];
31
- detailAddress: string;
32
- };
33
- };
34
- props: {
35
- type: ObjectConstructor;
36
- default: () => {
37
- label: string;
38
- value: string;
39
- };
40
- };
41
- labelAsValue: BooleanConstructor;
42
- disabled: BooleanConstructor;
43
- }>> & Readonly<{
44
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
45
- }>, {
46
- props: Record<string, any>;
47
- labelAsValue: boolean;
48
- disabled: boolean;
49
- options: unknown[];
50
- modelValue: Record<string, any>;
51
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
52
- export default _default;
package/affix/index.d.ts DELETED
@@ -1,30 +0,0 @@
1
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
- export default _default;
3
- type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
- $slots: S;
5
- });
6
- declare const __VLS_component: import('vue').DefineComponent<{}, {
7
- $emit: (event: "on-change", ...args: any[]) => void;
8
- offsetTop: number;
9
- target?: string | undefined;
10
- offsetBottom?: number | undefined;
11
- $props: {
12
- readonly offsetTop?: number | undefined;
13
- readonly target?: string | undefined;
14
- readonly offsetBottom?: number | undefined;
15
- };
16
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
17
- el: HTMLDivElement;
18
- point: HTMLDivElement;
19
- }, HTMLDivElement>;
20
- type __VLS_TemplateResult = {
21
- attrs: Partial<{}>;
22
- slots: {
23
- default?(_: {}): any;
24
- };
25
- refs: {
26
- el: HTMLDivElement;
27
- point: HTMLDivElement;
28
- };
29
- rootEl: HTMLDivElement;
30
- };
@@ -1,60 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- type: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- size: StringConstructor;
7
- icon: {
8
- type: StringConstructor;
9
- default: string;
10
- };
11
- nativeType: {
12
- type: StringConstructor;
13
- default: string;
14
- };
15
- loading: BooleanConstructor;
16
- disabled: BooleanConstructor;
17
- plain: BooleanConstructor;
18
- autofocus: BooleanConstructor;
19
- round: BooleanConstructor;
20
- text: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
- }>, () => globalThis.VNode<import('vue').RendererNode, import('vue').RendererElement, {
25
- [key: string]: any;
26
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
27
- type: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- size: StringConstructor;
32
- icon: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- nativeType: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- loading: BooleanConstructor;
41
- disabled: BooleanConstructor;
42
- plain: BooleanConstructor;
43
- autofocus: BooleanConstructor;
44
- round: BooleanConstructor;
45
- text: {
46
- type: StringConstructor;
47
- default: string;
48
- };
49
- }>> & Readonly<{}>, {
50
- disabled: boolean;
51
- type: string;
52
- icon: string;
53
- plain: boolean;
54
- loading: boolean;
55
- autofocus: boolean;
56
- round: boolean;
57
- nativeType: string;
58
- text: string;
59
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
- export default _default;
@@ -1,22 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- tabs: {
3
- type: ArrayConstructor;
4
- default: () => never[];
5
- };
6
- modelValue: {
7
- type: StringConstructor;
8
- };
9
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
10
- tabs: {
11
- type: ArrayConstructor;
12
- default: () => never[];
13
- };
14
- modelValue: {
15
- type: StringConstructor;
16
- };
17
- }>> & Readonly<{
18
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
19
- }>, {
20
- tabs: unknown[];
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
- export default _default;
package/card/index.d.ts DELETED
@@ -1,41 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- option: {
3
- type: ObjectConstructor;
4
- default: () => {};
5
- };
6
- data: {
7
- type: ArrayConstructor;
8
- default: () => never[];
9
- };
10
- }>, {}, {
11
- propsDefault: {
12
- img: string;
13
- title: string;
14
- info: string;
15
- };
16
- }, {
17
- imgKey(): any;
18
- titleKey(): any;
19
- infoKey(): any;
20
- span(): any;
21
- gutter(): any;
22
- }, {
23
- rowAdd(): void;
24
- rowClick(row: any, index: any): void;
25
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("row-add" | "row-click")[], "row-add" | "row-click", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
26
- option: {
27
- type: ObjectConstructor;
28
- default: () => {};
29
- };
30
- data: {
31
- type: ArrayConstructor;
32
- default: () => never[];
33
- };
34
- }>> & Readonly<{
35
- "onRow-add"?: ((...args: any[]) => any) | undefined;
36
- "onRow-click"?: ((...args: any[]) => any) | undefined;
37
- }>, {
38
- data: unknown[];
39
- option: Record<string, any>;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
- export default _default;
@@ -1,68 +0,0 @@
1
- import { n as e, o as t, t as n } from "./BE4V5Vf5.mjs";
2
- import { allProps as r, predicate as i } from "../props/input.mjs";
3
- import { ElInput as a } from "element-plus/es";
4
- import "element-plus/es/components/base/style/css";
5
- import "element-plus/es/components/input/style/css";
6
- import { computed as o, createVNode as s, mergeProps as c, useModel as l } from "vue";
7
- import { validatePhoneNum as u } from "@web-utils/core";
8
- //#region src/utils/form-validate.ts
9
- var d = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
10
- function f(e, t, n) {
11
- t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
12
- }
13
- function p(e, t, n) {
14
- if (this.$refs.table.$refs.table.records.length === 0) {
15
- n(Error(e.message || `请添加${e.label}`));
16
- return;
17
- }
18
- n();
19
- }
20
- //#endregion
21
- //#region src/components/form/FormInput.vue
22
- var m = {
23
- name: "FormInput",
24
- inheritAttrs: !1,
25
- props: { ...r },
26
- emits: { ...e },
27
- setup(e, { emit: r, slots: p, attrs: m }) {
28
- let h = l(e, "modelValue"), g = `请输入正确的${e.label}!`, { render: _, placeholder: v, disabled: y, listeners: b, inputProps: x, printing: S } = t(e, {
29
- emit: r,
30
- slots: p,
31
- attrs: m,
32
- rules: o(() => {
33
- if (!e.type || e.type === "textarea") return null;
34
- let t = {
35
- message: g,
36
- trigger: "blur"
37
- };
38
- if (e.type === "email") t.validator = d;
39
- else if (e.type === "idcard") t.validator = f;
40
- else if (e.type === "phone") t.validator = u;
41
- else return null;
42
- return [t];
43
- }),
44
- predicate: i
45
- });
46
- return () => _({ vNodes: S.value ? e.modelValue : s(a, c(b.value, x.value, {
47
- class: ["form-input", {
48
- "is-readonly": e.readonlyGrey && e.readonly && !e.picker,
49
- "el-input-cursor-pointer": e.picker && !y.value
50
- }],
51
- modelValue: h.value,
52
- "onUpdate:modelValue": (e) => h.value = e,
53
- disabled: y.value,
54
- placeholder: v.value,
55
- readonly: e.readonly || e.picker,
56
- "prefix-icon": n({ icon: e.picker ? "el-icon-search" : e.prefixIcon }),
57
- "suffix-icon": n({ icon: e.suffixIcon })
58
- }), {
59
- prefix: p.prefix || e.prefix ? () => e.prefix : null,
60
- suffix: p.suffix || e.suffix ? () => e.suffix : null,
61
- "password-icon": p["password-icon"],
62
- prepend: p.prepend || e.prepend ? () => e.prepend : null,
63
- append: p.append || e.append ? () => e.append : null
64
- }) });
65
- }
66
- };
67
- //#endregion
68
- export { p as n, m as t };
@@ -1,50 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: {
3
- type: StringConstructor;
4
- default: string;
5
- };
6
- mode: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- theme: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- disabled: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- formator: FunctionConstructor;
19
- outputTranformer: FunctionConstructor;
20
- }>, {}, {}, {}, {
21
- focus(): void;
22
- change(): void;
23
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
24
- modelValue: {
25
- type: StringConstructor;
26
- default: string;
27
- };
28
- mode: {
29
- type: StringConstructor;
30
- default: string;
31
- };
32
- theme: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- disabled: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- formator: FunctionConstructor;
41
- outputTranformer: FunctionConstructor;
42
- }>> & Readonly<{
43
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
44
- }>, {
45
- disabled: boolean;
46
- modelValue: string;
47
- mode: string;
48
- theme: string;
49
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
- export default _default;
@@ -1,122 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- stop: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- prevent: {
7
- type: BooleanConstructor;
8
- default: boolean;
9
- };
10
- text: {
11
- type: StringConstructor;
12
- default: string;
13
- };
14
- message: StringConstructor;
15
- confirmable: {
16
- type: BooleanConstructor;
17
- default: boolean;
18
- };
19
- confirmText: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- confirmType: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- confirmTitle: {
28
- type: StringConstructor;
29
- default: string;
30
- };
31
- loadable: BooleanConstructor;
32
- loadingText: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- tag: {
37
- type: StringConstructor;
38
- default: string;
39
- };
40
- icon: StringConstructor;
41
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
42
- stop: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- prevent: {
47
- type: BooleanConstructor;
48
- default: boolean;
49
- };
50
- text: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
- message: StringConstructor;
55
- confirmable: {
56
- type: BooleanConstructor;
57
- default: boolean;
58
- };
59
- confirmText: {
60
- type: StringConstructor;
61
- default: string;
62
- };
63
- confirmType: {
64
- type: StringConstructor;
65
- default: string;
66
- };
67
- confirmTitle: {
68
- type: StringConstructor;
69
- default: string;
70
- };
71
- loadable: BooleanConstructor;
72
- loadingText: {
73
- type: StringConstructor;
74
- default: string;
75
- };
76
- tag: {
77
- type: StringConstructor;
78
- default: string;
79
- };
80
- icon: StringConstructor;
81
- }>> & Readonly<{}>, {
82
- text: string;
83
- stop: boolean;
84
- prevent: boolean;
85
- loadable: boolean;
86
- loadingText: string;
87
- confirmable: boolean;
88
- confirmType: string;
89
- confirmText: string;
90
- confirmTitle: string;
91
- tag: string;
92
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | {
93
- props: {
94
- type: {
95
- type: StringConstructor;
96
- default: string;
97
- };
98
- size: StringConstructor;
99
- icon: {
100
- type: StringConstructor;
101
- default: string;
102
- };
103
- nativeType: {
104
- type: StringConstructor;
105
- default: string;
106
- };
107
- loading: BooleanConstructor;
108
- disabled: BooleanConstructor;
109
- plain: BooleanConstructor;
110
- autofocus: BooleanConstructor;
111
- round: BooleanConstructor;
112
- text: {
113
- type: StringConstructor;
114
- default: string;
115
- };
116
- tag: {
117
- type: StringConstructor;
118
- default: string;
119
- };
120
- };
121
- }, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
122
- export default _default;