@web-utils/form-ui 1.0.0-beta6 → 1.0.0-beta60

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 (573) hide show
  1. package/address-input/index.d.ts +52 -0
  2. package/address-input/index.js +2 -0
  3. package/address-input/style.css +1 -0
  4. package/affix/index.d.ts +32 -0
  5. package/affix/index.js +49 -0
  6. package/affix/style.css +1 -0
  7. package/api/index.d.ts +66 -0
  8. package/api/index.js +42 -0
  9. package/awesome-button/index.d.ts +60 -0
  10. package/awesome-button/index.js +49 -0
  11. package/base.css +1 -1
  12. package/capsule-tab/index.d.ts +22 -0
  13. package/capsule-tab/index.js +27 -0
  14. package/capsule-tab/style.css +1 -0
  15. package/card/index.d.ts +41 -0
  16. package/card/index.js +89 -0
  17. package/card/style.css +1 -0
  18. package/chunks/-DBJHzo8.js +195 -0
  19. package/chunks/2LWvhQd0.js +5 -0
  20. package/chunks/2rqr8Tbh.js +266 -0
  21. package/chunks/6yr_i3FT2.js +439 -0
  22. package/chunks/8_hjhnjH2.js +225 -0
  23. package/chunks/B-Uo-WTY2.js +5289 -0
  24. package/chunks/B-VO-y0h.js +69 -0
  25. package/chunks/B1EPd8qV.js +20 -0
  26. package/chunks/B2D06vEG.js +379 -0
  27. package/chunks/B7FF1FxW2.js +1800 -0
  28. package/chunks/B7IZdKDn.js +275 -0
  29. package/chunks/BCLWjhEJ.js +18 -0
  30. package/chunks/BGCX5eZn.js +590 -0
  31. package/chunks/BIEgauMd.js +1275 -0
  32. package/chunks/BJQI5s6-.js +449 -0
  33. package/chunks/BLiwTT_i2.js +4 -0
  34. package/chunks/BMuH4fKH.js +208 -0
  35. package/chunks/BPT6FWFK2.js +621 -0
  36. package/chunks/BTBp2urE.js +4 -0
  37. package/chunks/BVAen7xV2.js +233 -0
  38. package/chunks/BVQMbnV7.js +54 -0
  39. package/chunks/BWTWKgRC2.js +108 -0
  40. package/chunks/BamrxTuc2.js +514 -0
  41. package/chunks/BbrkKcOy.js +214 -0
  42. package/chunks/BdEgzMLy.js +34 -0
  43. package/chunks/Be3-Nwsb.js +68 -0
  44. package/chunks/Beh1v279.js +132 -0
  45. package/chunks/BgzF6a9b.js +577 -0
  46. package/chunks/BjACtWY92.js +26 -0
  47. package/chunks/BjUVecZ_.js +1094 -0
  48. package/chunks/BjwA4s46.js +17 -0
  49. package/chunks/Bkt5jwQ4.js +479 -0
  50. package/chunks/Bmzc6Sbs2.js +60 -0
  51. package/chunks/BoMy4B-G.js +230 -0
  52. package/chunks/BoOLX_Ey2.js +1038 -0
  53. package/chunks/Boq1bhQA.js +17 -0
  54. package/chunks/BpYC6Tu9.js +222 -0
  55. package/chunks/BqmuTTT4.js +63 -0
  56. package/chunks/BrgApSXu2.js +6 -0
  57. package/chunks/Bs7_SRve.js +57 -0
  58. package/chunks/BsfOPm1B2.js +106 -0
  59. package/chunks/BtPj4Jsp2.js +42 -0
  60. package/chunks/BtonI3XP.js +461 -0
  61. package/chunks/Bu-59cNv2.js +41 -0
  62. package/chunks/BvtVUXOb2.js +273 -0
  63. package/chunks/BwqV8Rv9.js +609 -0
  64. package/chunks/BxpuH2XL2.js +346 -0
  65. package/chunks/BykQpC2D.js +42 -0
  66. package/chunks/C-P8DAWg.js +26 -0
  67. package/chunks/C-i5OhEv.js +12 -0
  68. package/chunks/C0IscOmB.js +15 -0
  69. package/chunks/C5lEU74h2.js +46 -0
  70. package/chunks/C6-wRuOv.js +5 -0
  71. package/chunks/CDEhu4Hw2.js +58 -0
  72. package/chunks/CIoHpVna.js +25 -0
  73. package/chunks/CKF4NcjP2.js +161 -0
  74. package/chunks/COm5LruT.js +641 -0
  75. package/chunks/CP45VB0l2.js +4 -0
  76. package/chunks/CPlMW0nU.js +41 -0
  77. package/chunks/CQNKF-Y5.js +279 -0
  78. package/chunks/CZ8fWKCR.js +196 -0
  79. package/chunks/CZgfv08Q2.js +88 -0
  80. package/chunks/C_WXMlg42.js +1354 -0
  81. package/chunks/ChC6aRuE2.js +26 -0
  82. package/chunks/CkkEsDyG.js +17 -0
  83. package/chunks/Cll5nIzw.js +465 -0
  84. package/chunks/CmQBhb4F.js +14 -0
  85. package/chunks/CuVxnUGN.js +13 -0
  86. package/chunks/CxYWt6f52.js +8 -0
  87. package/chunks/CzjXqsNz2.js +1093 -0
  88. package/chunks/D1bdDHti.js +3091 -0
  89. package/chunks/D4vS0dLK2.js +110 -0
  90. package/chunks/D63r1Mj-2.js +27 -0
  91. package/chunks/D73tXuJP.js +98 -0
  92. package/chunks/DANCDark2.js +299 -0
  93. package/chunks/DCHGC-wv.js +644 -0
  94. package/chunks/DDpTDpl_.js +64 -0
  95. package/chunks/DEBzRzs62.js +2430 -0
  96. package/chunks/DF3tDDui2.js +24 -0
  97. package/chunks/DGDjsgmi2.js +67 -0
  98. package/chunks/DGDoWF7A2.js +243 -0
  99. package/chunks/DGOYYEkS2.js +33 -0
  100. package/chunks/DGSETzHz2.js +36 -0
  101. package/chunks/DIu4j2rA2.js +30 -0
  102. package/chunks/DJnkQG-Q.js +105 -0
  103. package/chunks/DKCe2nDe.js +47 -0
  104. package/chunks/DPLXkmFh.js +217 -0
  105. package/chunks/DQdBwuTr.js +17 -0
  106. package/chunks/DUbcVQBq.js +250 -0
  107. package/chunks/D_gajPwn2.js +60 -0
  108. package/chunks/D_j9foN9.js +17 -0
  109. package/chunks/DaBPfr252.js +96 -0
  110. package/chunks/Db0J1lN72.js +383 -0
  111. package/chunks/DcDUyJSx2.js +49 -0
  112. package/chunks/DdDO4YD2.js +281 -0
  113. package/chunks/DdW8XqoW.js +21 -0
  114. package/chunks/DfdoBqSD.js +6 -0
  115. package/chunks/DgbDv9To.js +454 -0
  116. package/chunks/DiB3ANPI2.js +525 -0
  117. package/chunks/DkBjJMFf2.js +34 -0
  118. package/chunks/DkkdixR-.js +732 -0
  119. package/chunks/Dn11MvZp.js +60 -0
  120. package/chunks/Do-8eHRr2.js +936 -0
  121. package/chunks/DoCrd-hR.js +52 -0
  122. package/chunks/DqI4lZin.js +37 -0
  123. package/chunks/DqgSQ3KG2.js +418 -0
  124. package/chunks/DqttRbt0.js +8 -0
  125. package/chunks/DuuoytDu.js +25 -0
  126. package/chunks/Dw_RxmrB2.js +26 -0
  127. package/chunks/DxrV8nwF2.js +28 -0
  128. package/chunks/Dyeav-c7.js +446 -0
  129. package/chunks/DyqdbtLs.js +295 -0
  130. package/chunks/IfmR2wc6.js +207 -0
  131. package/chunks/J-HPb14D.js +35 -0
  132. package/chunks/RAYFV7z_2.js +105 -0
  133. package/chunks/SCjrrbwI.js +194 -0
  134. package/chunks/TU6zhStX.js +40 -0
  135. package/chunks/TziUPXJy.js +46 -0
  136. package/chunks/VufM4po6.js +98 -0
  137. package/chunks/Xdb_3Me6.js +48 -0
  138. package/chunks/YLwDmpE6.js +197 -0
  139. package/chunks/ZdU9-d3W2.js +94 -0
  140. package/chunks/_6lMlbOl2.js +87 -0
  141. package/chunks/_DT9bjOz.js +182 -0
  142. package/chunks/_MqUwxIX2.js +145 -0
  143. package/chunks/a1C-V5Od.js +89 -0
  144. package/chunks/byLw7vSU.js +188 -0
  145. package/chunks/f2NKal5o.js +66 -0
  146. package/chunks/fICCbPEl.js +406 -0
  147. package/chunks/gFFZEYaV.js +1919 -0
  148. package/chunks/itbzUWg4.js +4 -0
  149. package/chunks/kPKqEDo-.js +588 -0
  150. package/chunks/o8iIIG7B.js +1328 -0
  151. package/chunks/xfxHgkQu2.js +31 -0
  152. package/code-mirror-editor/index.d.ts +50 -0
  153. package/code-mirror-editor/index.js +99 -0
  154. package/code-mirror-editor/style.css +1 -0
  155. package/confirm-button/index.d.ts +122 -0
  156. package/confirm-button/index.js +35 -0
  157. package/confirmable/index.d.ts +93 -0
  158. package/confirmable/index.js +8 -0
  159. package/constants/index.d.ts +73 -0
  160. package/constants/index.js +4 -0
  161. package/context-menu/index.d.ts +183 -0
  162. package/context-menu/index.js +196 -0
  163. package/context-menu/style.css +1 -0
  164. package/count-up/index.d.ts +70 -0
  165. package/count-up/index.js +94 -0
  166. package/custom-scrollbar/index.d.ts +49 -0
  167. package/custom-scrollbar/index.js +93 -0
  168. package/data-box/index.d.ts +19 -0
  169. package/data-box/index.js +68 -0
  170. package/data-box/style.css +1 -0
  171. package/data-card/index.d.ts +20 -0
  172. package/data-card/index.js +63 -0
  173. package/data-card/style.css +1 -0
  174. package/data-card-text/index.d.ts +21 -0
  175. package/data-card-text/index.js +67 -0
  176. package/data-card-text/style.css +1 -0
  177. package/data-display/index.d.ts +20 -0
  178. package/data-display/index.js +73 -0
  179. package/data-display/style.css +1 -0
  180. package/data-icons/index.d.ts +21 -0
  181. package/data-icons/index.js +74 -0
  182. package/data-icons/style.css +1 -0
  183. package/data-imgtext/index.d.ts +18 -0
  184. package/data-imgtext/index.js +71 -0
  185. package/data-imgtext/style.css +1 -0
  186. package/data-operatext/index.d.ts +17 -0
  187. package/data-operatext/index.js +54 -0
  188. package/data-operatext/style.css +1 -0
  189. package/data-panel/index.d.ts +19 -0
  190. package/data-panel/index.js +61 -0
  191. package/data-panel/style.css +1 -0
  192. package/data-pay/index.d.ts +19 -0
  193. package/data-pay/index.js +110 -0
  194. package/data-pay/style.css +1 -0
  195. package/data-price/index.d.ts +17 -0
  196. package/data-price/index.js +51 -0
  197. package/data-price/style.css +1 -0
  198. package/data-progress/index.d.ts +19 -0
  199. package/data-progress/index.js +72 -0
  200. package/data-progress/style.css +1 -0
  201. package/data-rotate/index.d.ts +19 -0
  202. package/data-rotate/index.js +65 -0
  203. package/data-rotate/style.css +1 -0
  204. package/data-table-picker/index.d.ts +61 -0
  205. package/data-table-picker/index.js +118 -0
  206. package/data-tabs/index.d.ts +19 -0
  207. package/data-tabs/index.js +71 -0
  208. package/data-tabs/style.css +1 -0
  209. package/dict-render/index.d.ts +28 -0
  210. package/dict-render/index.js +2 -0
  211. package/e-charts/index.d.ts +79 -0
  212. package/e-charts/index.js +179 -0
  213. package/e-charts/style.css +1 -0
  214. package/easy-popup/index.d.ts +114 -0
  215. package/easy-popup/index.js +92 -0
  216. package/easy-popup/style.css +1 -0
  217. package/editable-progress/index.d.ts +68 -0
  218. package/editable-progress/index.js +120 -0
  219. package/editable-progress/style.css +1 -0
  220. package/editable-tree/index.d.ts +281 -0
  221. package/editable-tree/index.js +2 -0
  222. package/editable-tree/style.css +1 -0
  223. package/element-dialog/index.d.ts +341 -18
  224. package/element-dialog/index.js +2 -0
  225. package/element-dialog/style.css +1 -1
  226. package/element-listeners/style.css +1 -0
  227. package/element-multi-instance/style.css +1 -0
  228. package/element-resize-observer/index.d.ts +8 -0
  229. package/element-resize-observer/index.js +40 -0
  230. package/element-resize-observer/style.css +1 -0
  231. package/empty-view/index.d.ts +2 -2
  232. package/empty-view/{index.mjs → index.js} +1 -1
  233. package/error-view/index.d.ts +25 -0
  234. package/error-view/index.js +37 -0
  235. package/error-view/style.css +1 -0
  236. package/flex-box/index.d.ts +44 -0
  237. package/flex-box/index.js +2 -0
  238. package/flex-column/index.d.ts +41 -0
  239. package/flex-column/index.js +2 -0
  240. package/flex-item/index.d.ts +77 -0
  241. package/flex-item/index.js +2 -0
  242. package/flex-row/index.d.ts +41 -0
  243. package/flex-row/index.js +2 -0
  244. package/flex-scroll-area/index.d.ts +1 -1
  245. package/flex-scroll-area/{index.mjs → index.js} +1 -1
  246. package/flex-scroller/index.d.ts +26 -0
  247. package/flex-scroller/index.js +29 -0
  248. package/flex-scroller/style.css +1 -0
  249. package/flow-designer/index.d.ts +353 -0
  250. package/flow-designer/index.js +2 -0
  251. package/flow-designer/style.css +1 -0
  252. package/flow-viewer/index.d.ts +62 -0
  253. package/flow-viewer/index.js +159 -0
  254. package/flow-viewer/style.css +1 -0
  255. package/form-advice/index.js +29 -0
  256. package/form-button/index.d.ts +123 -0
  257. package/form-button/index.js +36 -0
  258. package/form-card/index.d.ts +14 -0
  259. package/form-card/index.js +18 -0
  260. package/form-cascader/index.d.ts +478 -0
  261. package/form-cascader/index.js +2 -0
  262. package/form-checkbox/index.d.ts +253 -20
  263. package/form-checkbox/index.js +2 -0
  264. package/form-checkbox-group/index.d.ts +373 -0
  265. package/form-checkbox-group/index.js +2 -0
  266. package/form-checkbox-group/style.css +1 -0
  267. package/form-date-picker/index.d.ts +404 -21
  268. package/form-date-picker/index.js +2 -0
  269. package/form-holder/index.d.ts +89 -22
  270. package/form-holder/index.js +2 -0
  271. package/form-holder/style.css +1 -1
  272. package/form-image/index.d.ts +153 -15
  273. package/form-image/index.js +2 -0
  274. package/form-input/index.d.ts +309 -22
  275. package/form-input/index.js +2 -0
  276. package/form-input/style.css +1 -0
  277. package/form-input-cron-expression/index.d.ts +223 -0
  278. package/form-input-cron-expression/index.js +2 -0
  279. package/form-input-cron-expression/style.css +1 -0
  280. package/form-input-email/index.d.ts +315 -18
  281. package/form-input-email/index.js +2 -0
  282. package/form-input-id-card/index.d.ts +315 -18
  283. package/form-input-id-card/index.js +2 -0
  284. package/form-input-number/index.d.ts +254 -20
  285. package/form-input-number/index.js +2 -0
  286. package/form-input-phone-number/index.d.ts +315 -18
  287. package/form-input-phone-number/index.js +2 -0
  288. package/form-input-tag/index.d.ts +269 -1
  289. package/form-input-tag/index.js +2 -0
  290. package/form-input-time/index.d.ts +440 -1
  291. package/form-input-time/index.js +2 -0
  292. package/form-item-config-provider/index.d.ts +40 -0
  293. package/form-item-config-provider/index.js +24 -0
  294. package/form-item-group/index.d.ts +91 -17
  295. package/form-item-group/index.js +2 -0
  296. package/form-item-group/style.css +1 -1
  297. package/form-item-x/index.d.ts +149 -13
  298. package/form-item-x/index.js +2 -0
  299. package/form-item-x/style.css +1 -0
  300. package/form-radio-group/index.d.ts +313 -20
  301. package/form-radio-group/index.js +2 -0
  302. package/form-rate/index.d.ts +262 -16
  303. package/form-rate/index.js +2 -0
  304. package/form-red-table/index.js +65 -0
  305. package/form-row/index.d.ts +2 -2
  306. package/form-row/index.js +2 -0
  307. package/form-select/index.d.ts +545 -20
  308. package/form-select/index.js +2 -0
  309. package/form-slider/index.d.ts +291 -18
  310. package/form-slider/index.js +2 -0
  311. package/form-switch/index.d.ts +282 -18
  312. package/form-switch/index.js +2 -0
  313. package/form-table/index.d.ts +287 -0
  314. package/form-table/index.js +2 -0
  315. package/form-table-plus/index.d.ts +266 -0
  316. package/form-table-plus/index.js +2 -0
  317. package/form-text/index.d.ts +173 -15
  318. package/form-text/index.js +2 -0
  319. package/form-textarea/index.d.ts +351 -0
  320. package/form-textarea/index.js +2 -0
  321. package/form-time-select/index.d.ts +325 -0
  322. package/form-time-select/index.js +2 -0
  323. package/form-tree-select/index.d.ts +715 -0
  324. package/form-tree-select/index.js +2 -0
  325. package/form-tree-select/style.css +1 -0
  326. package/form-tree-select-multiple/index.d.ts +717 -0
  327. package/form-tree-select-multiple/index.js +2 -0
  328. package/form-view/index.d.ts +225 -1
  329. package/form-view/index.js +283 -0
  330. package/form-view/style.css +1 -0
  331. package/guide-steps/index.d.ts +31 -0
  332. package/guide-steps/index.js +2 -0
  333. package/guide-steps/style.css +1 -0
  334. package/helper/dictionary.d.ts +29 -0
  335. package/helper/dictionary.js +97 -0
  336. package/helper/form-item.d.ts +17 -0
  337. package/helper/form-item.js +27 -0
  338. package/helper/input.d.ts +47 -0
  339. package/helper/input.js +2 -0
  340. package/helper/sub-table-plus.d.ts +98 -0
  341. package/helper/sub-table-plus.js +4 -0
  342. package/highlight-j-s/index.d.ts +18 -0
  343. package/highlight-j-s/index.js +51 -0
  344. package/highlight-j-s/style.css +1 -0
  345. package/hook/useDictionary.d.ts +60 -0
  346. package/hook/useDictionary.js +15 -0
  347. package/hook/useVisibilityChange.d.ts +4 -0
  348. package/hook/useVisibilityChange.js +14 -0
  349. package/iframe-window/index.d.ts +9 -0
  350. package/iframe-window/index.js +37 -0
  351. package/iframe-window/style.css +1 -0
  352. package/image-cropper/index.d.ts +365 -0
  353. package/image-cropper/index.js +155 -0
  354. package/image-cropper/style.css +1 -0
  355. package/image-preview/index.d.ts +213 -0
  356. package/image-preview/index.js +2 -0
  357. package/image-preview/style.css +1 -0
  358. package/image-viewer/index.d.ts +25 -0
  359. package/image-viewer/index.js +70 -0
  360. package/image-viewer/style.css +1 -0
  361. package/index.css +2 -0
  362. package/index.d.ts +121 -36
  363. package/index.js +125 -0
  364. package/input-number-range/index.d.ts +41 -0
  365. package/input-number-range/index.js +76 -0
  366. package/input-number-range/style.css +1 -0
  367. package/keyboard/index.d.ts +64 -0
  368. package/keyboard/index.js +2 -0
  369. package/keyboard/style.css +1 -0
  370. package/loading-view/index.d.ts +65 -0
  371. package/loading-view/index.js +39 -0
  372. package/loading-view/style.css +1 -0
  373. package/name-avatar/index.d.ts +62 -0
  374. package/name-avatar/index.js +61 -0
  375. package/name-avatar/style.css +1 -0
  376. package/nav-bar/index.d.ts +21 -0
  377. package/nav-bar/index.js +36 -0
  378. package/nav-bar/style.css +1 -0
  379. package/package.json +25 -5
  380. package/page/index.d.ts +21 -0
  381. package/page/index.js +17 -0
  382. package/page/style.css +1 -0
  383. package/page-header/index.d.ts +27 -0
  384. package/page-header/index.js +25 -0
  385. package/page-header/style.css +1 -0
  386. package/page-index/index.d.ts +82 -0
  387. package/page-index/index.js +123 -0
  388. package/page-index/style.css +1 -0
  389. package/page-index-top/index.d.ts +38 -0
  390. package/page-index-top/index.js +85 -0
  391. package/page-skeleton/index.d.ts +30 -0
  392. package/page-skeleton/index.js +44 -0
  393. package/page-skeleton/style.css +1 -0
  394. package/page-skeleton-new/index.d.ts +34 -0
  395. package/page-skeleton-new/index.js +80 -0
  396. package/page-skeleton-new/style.css +1 -0
  397. package/pageable-table/index.d.ts +400 -0
  398. package/pageable-table/index.js +2 -0
  399. package/pageable-table/style.css +1 -0
  400. package/photo-swipe/index.d.ts +18 -0
  401. package/photo-swipe/index.js +2 -0
  402. package/props/cascader.d.ts +326 -0
  403. package/props/cascader.js +145 -0
  404. package/props/checkbox-group.d.ts +213 -0
  405. package/props/checkbox-group.js +83 -0
  406. package/props/checkbox.d.ts +205 -0
  407. package/props/checkbox.js +74 -0
  408. package/props/col.d.ts +74 -0
  409. package/props/col.js +32 -0
  410. package/props/common.d.ts +114 -0
  411. package/props/common.js +18 -0
  412. package/props/date.d.ts +339 -0
  413. package/props/date.js +145 -0
  414. package/props/form-item.d.ts +144 -0
  415. package/props/form-item.js +73 -0
  416. package/props/form.d.ts +157 -0
  417. package/props/form.js +89 -0
  418. package/props/image.d.ts +102 -0
  419. package/props/image.js +10 -0
  420. package/props/input-cron.d.ts +102 -0
  421. package/props/input-cron.js +16 -0
  422. package/props/input-number.d.ts +216 -0
  423. package/props/input-number.js +72 -0
  424. package/props/input-tag.d.ts +123 -0
  425. package/props/input-tag.js +33 -0
  426. package/props/input.d.ts +299 -0
  427. package/props/input.js +97 -0
  428. package/props/radio-group.d.ts +205 -0
  429. package/props/radio-group.js +84 -0
  430. package/props/rate.d.ts +211 -0
  431. package/props/rate.js +66 -0
  432. package/props/select.d.ts +450 -0
  433. package/props/select.js +218 -0
  434. package/props/slide.d.ts +235 -0
  435. package/props/slide.js +72 -0
  436. package/props/switch.d.ts +229 -0
  437. package/props/switch.js +80 -0
  438. package/props/text.d.ts +127 -0
  439. package/props/text.js +22 -0
  440. package/props/textarea.d.ts +266 -0
  441. package/props/textarea.js +82 -0
  442. package/props/time-select.d.ts +216 -0
  443. package/props/time-select.js +67 -0
  444. package/props/time.d.ts +304 -0
  445. package/props/time.js +138 -0
  446. package/props/tree-select-multiple.d.ts +324 -0
  447. package/props/tree-select-multiple.js +16 -0
  448. package/props/tree-select.d.ts +326 -0
  449. package/props/tree-select.js +25 -0
  450. package/props/tree.d.ts +76 -0
  451. package/props/tree.js +75 -0
  452. package/props/vue-tree-select.d.ts +458 -0
  453. package/props/vue-tree-select.js +213 -0
  454. package/resolver/index.js +29 -0
  455. package/sign-panel/index.d.ts +85 -0
  456. package/sign-panel/index.js +183 -0
  457. package/sign-panel/style.css +1 -0
  458. package/skeleton-panel/index.d.ts +27 -0
  459. package/skeleton-panel/index.js +37 -0
  460. package/skeleton-panel/style.css +1 -0
  461. package/split-pane/index.d.ts +106 -0
  462. package/split-pane/index.js +2 -0
  463. package/split-pane/style.css +1 -0
  464. package/stateful/index.d.ts +92 -0
  465. package/stateful/index.js +67 -0
  466. package/stateful/style.css +1 -0
  467. package/sub-table/index.d.ts +109 -0
  468. package/sub-table/index.js +2 -0
  469. package/sub-table/style.css +1 -0
  470. package/sub-table-plus/index.d.ts +109 -0
  471. package/sub-table-plus/index.js +2 -0
  472. package/sub-table-plus/style.css +1 -0
  473. package/swiper/index.d.ts +27 -0
  474. package/swiper/index.js +126 -0
  475. package/swiper/style.css +1 -0
  476. package/table-column/index.d.ts +163 -0
  477. package/table-column/index.js +2 -0
  478. package/table-column/style.css +1 -0
  479. package/table-column-def/index.d.ts +97 -0
  480. package/table-column-def/index.js +11 -0
  481. package/table-view/index.d.ts +345 -1
  482. package/table-view/index.js +471 -0
  483. package/table-view/style.css +1 -0
  484. package/tag-render/index.d.ts +48 -0
  485. package/tag-render/index.js +86 -0
  486. package/tag-render/style.css +1 -0
  487. package/text-ellipsis/index.d.ts +111 -0
  488. package/text-ellipsis/index.js +124 -0
  489. package/text-ellipsis/style.css +1 -0
  490. package/toolbar/index.d.ts +128 -1
  491. package/toolbar/index.js +2 -0
  492. package/toolbar/style.css +1 -0
  493. package/toolbar-button/index.d.ts +188 -1
  494. package/toolbar-button/index.js +2 -0
  495. package/toolbar-button/style.css +1 -0
  496. package/vue-cron/index.d.ts +191 -0
  497. package/vue-cron/index.js +2 -0
  498. package/vue-cron/style.css +1 -0
  499. package/vue-qr-code/index.d.ts +47 -0
  500. package/vue-qr-code/index.js +32 -0
  501. package/vue-tags-input/index.d.ts +373 -0
  502. package/vue-tags-input/index.js +350 -0
  503. package/vue-tags-input/style.css +1 -0
  504. package/vue-tree-select/index.d.ts +1489 -0
  505. package/vue-tree-select/index.js +2 -0
  506. package/vue-tree-select/style.css +1 -0
  507. package/vue-video-player/index.d.ts +117 -0
  508. package/vue-video-player/index.js +136 -0
  509. package/vue-video-player/style.css +1 -0
  510. package/watermark/index.d.ts +97 -0
  511. package/watermark/index.js +2 -0
  512. package/watermark/style.css +1 -0
  513. package/web-types.json +1 -1
  514. package/x-input-tag/index.d.ts +2 -0
  515. package/x-input-tag/index.js +232 -0
  516. package/x-input-tag/style.css +1 -0
  517. package/year-calendar/index.d.ts +99 -0
  518. package/year-calendar/index.js +2 -0
  519. package/year-calendar/style.css +1 -0
  520. package/chunks/B4M_TFeR.mjs +0 -152
  521. package/chunks/B5BIQCcK.mjs +0 -149
  522. package/chunks/BHNKrW1j.mjs +0 -61
  523. package/chunks/BO9jWhBl.mjs +0 -46
  524. package/chunks/BZ8aOa78.mjs +0 -35
  525. package/chunks/Bsz7y4Xp.mjs +0 -73
  526. package/chunks/Bxj372sF.mjs +0 -53
  527. package/chunks/C33EmJN8.mjs +0 -32
  528. package/chunks/C6Li3-l7.mjs +0 -28
  529. package/chunks/CBcdalMX.mjs +0 -35
  530. package/chunks/CdRsyF0n.mjs +0 -43
  531. package/chunks/ClNahmiU.mjs +0 -23
  532. package/chunks/CstztYMu.mjs +0 -28
  533. package/chunks/DC9b53M6.mjs +0 -32
  534. package/chunks/DDVAgRED.mjs +0 -36
  535. package/chunks/DpJQABVD.mjs +0 -91
  536. package/chunks/ZsLNWI9x.mjs +0 -46
  537. package/chunks/jn_iQrVZ.mjs +0 -28
  538. package/constants.d.ts +0 -1
  539. package/constants.mjs +0 -4
  540. package/element-dialog/index.mjs +0 -91
  541. package/form-advice/index.mjs +0 -28
  542. package/form-check-box-group/index.d.ts +0 -93
  543. package/form-check-box-group/index.mjs +0 -2
  544. package/form-checkbox/index.mjs +0 -2
  545. package/form-date-picker/index.mjs +0 -2
  546. package/form-holder/index.mjs +0 -2
  547. package/form-image/index.mjs +0 -2
  548. package/form-input/index.mjs +0 -2
  549. package/form-input-email/index.mjs +0 -2
  550. package/form-input-id-card/index.mjs +0 -2
  551. package/form-input-number/index.mjs +0 -2
  552. package/form-input-phone-number/index.mjs +0 -2
  553. package/form-input-tag/index.mjs +0 -4
  554. package/form-input-time/index.mjs +0 -4
  555. package/form-item-group/index.mjs +0 -78
  556. package/form-item-x/index.mjs +0 -2
  557. package/form-radio-group/index.mjs +0 -2
  558. package/form-rate/index.mjs +0 -2
  559. package/form-red-table/index.mjs +0 -64
  560. package/form-row/index.mjs +0 -2
  561. package/form-select/index.mjs +0 -2
  562. package/form-slider/index.mjs +0 -2
  563. package/form-switch/index.mjs +0 -2
  564. package/form-text/index.mjs +0 -2
  565. package/form-view/index.mjs +0 -9
  566. package/index.mjs +0 -63
  567. package/input/style.css +0 -1
  568. package/resolver.mjs +0 -79
  569. package/table-view/index.mjs +0 -9
  570. package/toolbar/index.mjs +0 -9
  571. package/toolbar-button/index.mjs +0 -9
  572. /package/form-cell/{index.mjs → index.js} +0 -0
  573. /package/{resolver.d.ts → resolver/index.d.ts} +0 -0
@@ -0,0 +1,94 @@
1
+ import "./B1EPd8qV.js";
2
+ import { t as e } from "./gFFZEYaV.js";
3
+ import { columnSizeContextKey as t, setColumnSizeContextKey as n } from "../constants/index.js";
4
+ import r from "../form-cell/index.js";
5
+ import { Comment as i, Fragment as a, Text as o, createVNode as s, inject as c, isVNode as l } from "vue";
6
+ import { camelize as u, isDef as d, isString as f } from "@web-utils/core";
7
+ //#region src/components/red-form/FormRow.vue?vue&type=script&lang.jsx
8
+ function p(e) {
9
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
10
+ }
11
+ var m = (e) => {
12
+ let t = Object.keys({});
13
+ for (let n in e) t[u(n)] = e[n];
14
+ return t;
15
+ }, h = (t, { columnSize: n }) => {
16
+ if (!t || !t.length) return null;
17
+ t = t.filter((e) => e.type !== i);
18
+ let r = [], c = t.length === 1;
19
+ for (let i = 0; i < t.length; i++) {
20
+ let v = t[i], { name: y } = v.type;
21
+ if (v.type === o) r.push({
22
+ tag: y,
23
+ type: "text",
24
+ content: v,
25
+ colspan: c ? n : 0
26
+ });
27
+ else if (v.type === a) r.push(...h(v.children, { columnSize: n }));
28
+ else if (f(v.type) && v.type === "td") r.push({
29
+ tag: v.type,
30
+ type: "td",
31
+ content: v
32
+ });
33
+ else if (y === "FormCell") r.push({
34
+ tag: y,
35
+ type: "FormCell",
36
+ content: v
37
+ });
38
+ else if (typeof v.type == "object") {
39
+ var l, u;
40
+ let { label: t, hideLabel: i, labelColspan: a, inputColspan: o, labelRowspan: f, inputRowspan: h, tipsAfterLabel: b, tips: x } = m(v.props);
41
+ if (!d(i)) {
42
+ var p, g, _;
43
+ let n = (p = v.children) == null ? void 0 : p.tips, i = n || x ? s(e, {
44
+ effect: "light",
45
+ content: x,
46
+ offset: 4
47
+ }, {
48
+ default: () => s("i", { class: "el-icon-info form-item-input-info" }, null),
49
+ content: n || null
50
+ }) : null;
51
+ r.push({
52
+ tag: y,
53
+ type: "label",
54
+ colspan: a,
55
+ rowspan: f,
56
+ content: [((g = v.children) == null || (_ = g.label) == null ? void 0 : _.call(g)) || t, b === "" ? i : null]
57
+ });
58
+ }
59
+ let S;
60
+ S = c && d(i) ? n : d(o) ? o : c ? n - 1 : 0, r.push({
61
+ tag: y,
62
+ type: "input",
63
+ colspan: S,
64
+ rowspan: h,
65
+ content: [v, (l = v.children) == null || (u = l.below) == null ? void 0 : u.call(l)]
66
+ });
67
+ } else console.error("未知节点");
68
+ }
69
+ return r;
70
+ }, g = {
71
+ name: "FormRow",
72
+ props: {
73
+ isLabel: Boolean,
74
+ alignCenter: Boolean
75
+ },
76
+ setup(e, { slots: i }) {
77
+ let a = c(n, null), o = c(t, null);
78
+ return () => {
79
+ var t;
80
+ let n = (t = i.default) == null ? void 0 : t.call(i), c = [];
81
+ return c.push(...h(n, { columnSize: (o == null ? void 0 : o.value) ?? 0 })), ((o == null ? void 0 : o.value) ?? 0) < c.length && (a == null || a(c.length)), s("tr", null, [c.map(({ tag: t, type: n, colspan: i, rowspan: a, content: o }) => t === "td" || n === "FormCell" ? o : n === "text" ? s(r, {
82
+ isLabel: e.isLabel,
83
+ alignCenter: e.alignCenter,
84
+ colspan: i
85
+ }, p(o) ? o : { default: () => [o] }) : s("td", {
86
+ class: n,
87
+ colspan: i,
88
+ rowspan: a
89
+ }, [o]))]);
90
+ };
91
+ }
92
+ };
93
+ //#endregion
94
+ export { g as t };
@@ -0,0 +1,87 @@
1
+ import { commonAutoBindProps as e, commonManualBindProps as t } from "../props/common.js";
2
+ import { n, o as r } from "./Beh1v279.js";
3
+ import { n as i, t as a } from "./DqgSQ3KG2.js";
4
+ import { createVNode as o, mergeProps as s, ref as c, useModel as l } from "vue";
5
+ //#region src/components/table/form-table.ts
6
+ var u = {
7
+ ...t,
8
+ ...e,
9
+ ...i
10
+ }, d = {
11
+ modelValue: !0,
12
+ block: !0
13
+ }, f = (e) => t[e] === void 0 && d[e] !== !0, p = {
14
+ name: "FormTable",
15
+ props: { ...u },
16
+ emits: {
17
+ ...n,
18
+ "add-row": null
19
+ },
20
+ setup(e, { emit: t, attrs: n, slots: i }) {
21
+ let u = l(e, "modelValue"), d = c([]), p = (e) => {
22
+ d.value = e;
23
+ }, { render: m, placeholder: h, disabled: g, listeners: _, inputProps: v } = r(e, {
24
+ emit: t,
25
+ slots: i,
26
+ attrs: n,
27
+ predicate: f,
28
+ block: e.block === void 0 ? !0 : e.block
29
+ });
30
+ return () => {
31
+ var t;
32
+ let n = {};
33
+ for (let r = 0; r < (((t = e.columns) == null ? void 0 : t.length) ?? 0); r++) {
34
+ let t = e.columns[r];
35
+ n[t.prop] = (e, n, r) => {
36
+ var a;
37
+ return (a = i[t.prop]) == null ? void 0 : a.call(i, e, n, r);
38
+ };
39
+ }
40
+ return m({ vNodes: o(a, s(_.value, v.value, {
41
+ disabled: g.value,
42
+ modelValue: u.value,
43
+ "onUpdate:modelValue": (e) => u.value = e,
44
+ placeholder: h.value,
45
+ onSelectionChange: p
46
+ }), {
47
+ ...n,
48
+ columns: ({ columns: e }) => {
49
+ var t;
50
+ return (t = i.columns) == null ? void 0 : t.call(i, { columns: e });
51
+ },
52
+ handle: ({ add: e, remove: t }) => {
53
+ var n;
54
+ return (n = i.handle) == null ? void 0 : n.call(i, {
55
+ add: e,
56
+ remove: t
57
+ });
58
+ },
59
+ tag: ({ column: e, row: t, $index: n }) => {
60
+ var r;
61
+ return (r = i.tag) == null ? void 0 : r.call(i, {
62
+ column: e,
63
+ row: t,
64
+ $index: n
65
+ });
66
+ },
67
+ "handle-column-header": ({ column: e, $index: t }) => {
68
+ var n;
69
+ return (n = i["handle-column-header"]) == null ? void 0 : n.call(i, {
70
+ column: e,
71
+ index: t
72
+ });
73
+ },
74
+ toolbar: ({ addRow: e, delRow: t, refresh: n }) => {
75
+ var r;
76
+ return (r = i.toolbar) == null ? void 0 : r.call(i, {
77
+ addRow: e,
78
+ delRow: t,
79
+ refresh: n
80
+ });
81
+ }
82
+ }) });
83
+ };
84
+ }
85
+ };
86
+ //#endregion
87
+ export { p as t };
@@ -0,0 +1,182 @@
1
+ import "./B1EPd8qV.js";
2
+ import { t as e } from "./Cll5nIzw.js";
3
+ import { _ as t, h as n } from "./DiB3ANPI2.js";
4
+ import { t as r } from "./Do-8eHRr2.js";
5
+ import { hasAuthority as i } from "../api/index.js";
6
+ import { toolbarContextKey as a } from "../constants/index.js";
7
+ import { computed as o, createVNode as s, getCurrentInstance as c, inject as l, mergeProps as u, ref as d } from "vue";
8
+ import { isArray as f, isFunction as p } from "@web-utils/core";
9
+ //#region src/components/toolbar/button.ts
10
+ var m = {
11
+ size: {
12
+ type: String,
13
+ default: "default"
14
+ },
15
+ type: {
16
+ type: String,
17
+ default: "default"
18
+ },
19
+ plain: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ text: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ bg: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ link: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ round: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ circle: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ dashed: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ loading: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ loadingIcon: [String, Object],
52
+ disabled: {
53
+ type: Boolean,
54
+ default: void 0
55
+ },
56
+ icon: [String, Object],
57
+ autofocus: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ nativeType: {
62
+ type: String,
63
+ default: "button"
64
+ },
65
+ autoInsertSpace: {
66
+ type: Boolean,
67
+ default: !1
68
+ },
69
+ color: String,
70
+ dark: {
71
+ type: Boolean,
72
+ default: !1
73
+ },
74
+ tag: [String, Object],
75
+ label: String,
76
+ loadable: Boolean,
77
+ footer: Boolean,
78
+ primary: Boolean,
79
+ warning: Boolean,
80
+ privilege: String,
81
+ condition: { type: [
82
+ Array,
83
+ Function,
84
+ Boolean
85
+ ] },
86
+ conditionTips: String,
87
+ confirm: Boolean,
88
+ confirmTips: String,
89
+ beforeExecute: Function,
90
+ afterExecute: Function,
91
+ route: [String, Object],
92
+ title: String,
93
+ cancelButtonText: String,
94
+ confirmButtonText: String
95
+ }, h = {
96
+ icon: !0,
97
+ type: !0,
98
+ text: !0,
99
+ title: !0,
100
+ disabled: !0,
101
+ loading: !0,
102
+ label: !0,
103
+ loadable: !0,
104
+ footer: !0,
105
+ primary: !0,
106
+ warning: !0,
107
+ privilege: !0,
108
+ condition: !0,
109
+ conditionTips: !0,
110
+ confirm: !0,
111
+ confirmTips: !0,
112
+ beforeExecute: !0,
113
+ afterExecute: !0,
114
+ route: !0,
115
+ cancelButtonText: !0,
116
+ confirmButtonText: !0
117
+ }, g = (e) => h[e] !== !0, _ = {
118
+ name: "ToolbarButton",
119
+ inheritAttrs: !1,
120
+ props: { ...m },
121
+ setup(m, { attrs: h, slots: _ }) {
122
+ let v = c(), y = l(a, null), b = d(!1), x = o(() => m.privilege ? i(m.privilege) : !0), S = async (n) => {
123
+ try {
124
+ if (p(m.beforeExecute) && await m.beforeExecute() === !1) return;
125
+ if (m.conditionTips) {
126
+ let e;
127
+ if (e = f(m.condition) ? m.condition.length <= 0 : p(m.condition) ? !m.condition() : !m.condition, e) {
128
+ t.warning(m.conditionTips);
129
+ return;
130
+ }
131
+ }
132
+ if (m.confirm || m.confirmTips) try {
133
+ await e.confirm(m.confirmTips || "你确定要删除该记录吗?", "系统提示", {
134
+ type: "warning",
135
+ distinguishCancelAndClose: !0,
136
+ cancelButtonText: m.cancelButtonText,
137
+ confirmButtonText: m.confirmButtonText
138
+ });
139
+ } catch (e) {
140
+ if (e === "cancel") {
141
+ let { onCancel: t } = h;
142
+ p(t) && await t(e);
143
+ } else if (e === "close") {
144
+ let { onClose: t } = h;
145
+ p(t) && await t(e);
146
+ }
147
+ return;
148
+ }
149
+ b.value = !0;
150
+ let i;
151
+ if (m.route) {
152
+ var r;
153
+ await ((r = v.proxy.$router) == null ? void 0 : r.push(m.route));
154
+ } else {
155
+ let { onClick: e } = h;
156
+ if (p(e)) try {
157
+ i = await e(n);
158
+ } catch {}
159
+ }
160
+ b.value = !1, p(m.afterExecute) && await m.afterExecute(i);
161
+ } catch {}
162
+ }, C = o(() => m.text ? !0 : m.type === "text"), w = o(() => {
163
+ if (!C.value) return m.primary ? "primary" : m.warning ? "warning" : m.type;
164
+ }), T = n(m, g);
165
+ return () => x.value ? s(r, u(T.value, {
166
+ title: m.footer || y != null && y.footer ? null : m.title,
167
+ disabled: m.disabled || b.value,
168
+ loading: m.loadable ? b.value : !1,
169
+ type: w.value,
170
+ text: C.value,
171
+ class: h.class,
172
+ style: h.style,
173
+ onClick: S
174
+ }), {
175
+ default: !m.circle && (m.label || _.default) ? () => _.default ? _.default() : m.label : null,
176
+ loading: _.loading,
177
+ icon: _.icon ? _.icon : m.icon ? () => s("i", { class: m.icon }, null) : null
178
+ }) : null;
179
+ }
180
+ };
181
+ //#endregion
182
+ export { _ as t };
@@ -0,0 +1,145 @@
1
+ import { i as e } from "./DiB3ANPI2.js";
2
+ import { commonAutoBindProps as t, commonManualBindProps as n } from "../props/common.js";
3
+ import { n as r, o as i } from "./Beh1v279.js";
4
+ import { n as a } from "./DGDjsgmi2.js";
5
+ import { n as o, t as s } from "./BamrxTuc2.js";
6
+ import { computed as c, createVNode as l, getCurrentInstance as u, mergeProps as d, useModel as f, useTemplateRef as p } from "vue";
7
+ import { isArray as m, isString as h, trace as g, warning as _ } from "@web-utils/core";
8
+ import { useEventBus as v } from "@web-utils/vue/hooks/useEventBus";
9
+ //#region src/components/table/form-table-plus.ts
10
+ var y = {
11
+ ...n,
12
+ ...t,
13
+ ...o,
14
+ rowDbClick: Function,
15
+ viewId: [String, Array],
16
+ formPath: [String, Function]
17
+ }, b = {
18
+ readonly: !0,
19
+ block: !0
20
+ }, x = (e) => n[e] === void 0 && b[e] !== !0, S = {
21
+ name: "FormTablePlus",
22
+ props: { ...y },
23
+ emits: { ...r },
24
+ setup(t, { emit: n, slots: r, attrs: o, expose: y }) {
25
+ let b = f(t, "modelValue"), S = p("table"), C = [];
26
+ t.viewId && C.push(t.viewId);
27
+ let w = u();
28
+ C.includes(w.parent.proxy.$options.name) || C.push(w.parent.proxy.$options.name);
29
+ let T = () => {
30
+ var e;
31
+ return (e = S.value.table) == null ? void 0 : e.reloadTable();
32
+ }, E = async () => {
33
+ var e;
34
+ return await ((e = S.value.table) == null ? void 0 : e.refreshTable());
35
+ };
36
+ v("reloadTableView", (e) => {
37
+ if (C) if (h(e) || m(e)) {
38
+ let t = e;
39
+ h(t) && (t = t.split(",")), C.some((e) => t.includes(e)) && (g.call(w.parent.proxy || {}, "reloadTableView"), T());
40
+ } else _.call(w.parent.proxy || {}, "`viewId`的类型必须是字符串或数组");
41
+ });
42
+ let D = (...n) => {
43
+ t.rowDbClick ? t.rowDbClick(...n) : t.formPath && w.proxy.$router.push(e(t.formPath, n[0]));
44
+ }, O = () => {
45
+ w.proxy.$router.push(e(t.formPath));
46
+ }, { render: k, placeholder: A, disabled: j, listeners: M, inputProps: N } = i(t, {
47
+ rules: c(() => [t.fetchApi ? {
48
+ required: !0,
49
+ validator: a
50
+ } : { required: !0 }]),
51
+ emit: n,
52
+ slots: r,
53
+ attrs: o,
54
+ predicate: x,
55
+ block: t.block === void 0 ? !0 : t.block
56
+ });
57
+ return y({
58
+ reloadTable: T,
59
+ refreshTable: E
60
+ }), () => {
61
+ var e;
62
+ let n = {};
63
+ for (let i = 0; i < (((e = t.columns) == null ? void 0 : e.length) ?? 0); i++) {
64
+ let e = t.columns[i];
65
+ n[e.prop] = ({ row: t, column: n, index: i, prop: a, required: o }) => {
66
+ var s;
67
+ return (s = r[e.prop]) == null ? void 0 : s.call(r, {
68
+ row: t,
69
+ column: n,
70
+ index: i,
71
+ prop: a,
72
+ required: o
73
+ });
74
+ };
75
+ }
76
+ return k({ vNodes: l(s, d({ ref: "table" }, M.value, N.value, {
77
+ prop: t.prop,
78
+ disabled: j.value,
79
+ onRowDbClick: D,
80
+ rowDbClick: D,
81
+ modelValue: b.value,
82
+ "onUpdate:modelValue": (e) => b.value = e,
83
+ placeholder: A.value,
84
+ onAddRow: O
85
+ }), {
86
+ ...n,
87
+ columns: ({ columns: e }) => {
88
+ var t;
89
+ return (t = r.columns) == null ? void 0 : t.call(r, { columns: e });
90
+ },
91
+ handle: ({ add: e, remove: t }) => {
92
+ var n;
93
+ return (n = r.handle) == null ? void 0 : n.call(r, {
94
+ add: e,
95
+ remove: t
96
+ });
97
+ },
98
+ tag: ({ column: e, row: t, $index: n }) => {
99
+ var i;
100
+ return (i = r.tag) == null ? void 0 : i.call(r, {
101
+ column: e,
102
+ row: t,
103
+ index: n
104
+ });
105
+ },
106
+ "handle-column-header": ({ column: e, $index: t }) => {
107
+ var n;
108
+ return (n = r["handle-column-header"]) == null ? void 0 : n.call(r, {
109
+ column: e,
110
+ index: t
111
+ });
112
+ },
113
+ toolbar: () => {
114
+ var e;
115
+ return (e = r.toolbar) == null ? void 0 : e.call(r);
116
+ },
117
+ "toolbar-left": ({ addRow: e, delRow: t, refresh: n }) => {
118
+ var i;
119
+ return (i = r["toolbar-left"]) == null ? void 0 : i.call(r, {
120
+ addRow: e,
121
+ delRow: t,
122
+ refresh: n
123
+ });
124
+ },
125
+ "toolbar-left-append": ({ addRow: e, delRow: t, refresh: n }) => {
126
+ var i;
127
+ return (i = r["toolbar-left-append"]) == null ? void 0 : i.call(r, {
128
+ addRow: e,
129
+ delRow: t,
130
+ refresh: n
131
+ });
132
+ },
133
+ "toolbar-right": ({ selectedRows: e, removeSelectedRows: t }) => {
134
+ var n;
135
+ return (n = r["toolbar-right"]) == null ? void 0 : n.call(r, {
136
+ selectedRows: e,
137
+ removeSelectedRows: t
138
+ });
139
+ }
140
+ }) });
141
+ };
142
+ }
143
+ };
144
+ //#endregion
145
+ export { S as t };
@@ -0,0 +1,89 @@
1
+ import { t as e } from "./DqttRbt0.js";
2
+ import { Fragment as t, createElementBlock as n, openBlock as r, renderList as i, renderSlot as a } from "vue";
3
+ import o from "photoswipe";
4
+ import "photoswipe/dist/photoswipe.css";
5
+ //#region src/components/photo-swipe/index.ts
6
+ function s(e) {
7
+ new o(e).init();
8
+ }
9
+ async function c(e, t, n = {
10
+ selector: "chat-image",
11
+ index: 0
12
+ }) {
13
+ let r = e.target;
14
+ if (!(!r || r.classList.contains(n.selector) || r.tagName === "IMG")) return;
15
+ let i = t.querySelectorAll(n.selector === "img" ? n.selector : `.${n.selector}`), a = [...i].findIndex((e) => e === r);
16
+ a >= 0 && (n.index = a), s({
17
+ dataSource: await l(i),
18
+ index: a
19
+ });
20
+ }
21
+ async function l(e) {
22
+ let t = [];
23
+ for (let n = 0, r = e.length; n < r; n++) {
24
+ let r = e[n], i = r.getAttribute("data-src") || r.getAttribute("src"), a = {
25
+ src: i,
26
+ msrc: i,
27
+ alt: r.getAttribute("data-title") || r.getAttribute("alt"),
28
+ element: r
29
+ }, o = r.getAttribute("data-height"), s = r.getAttribute("data-width"), c = {
30
+ width: s,
31
+ height: o
32
+ };
33
+ !o && !s && (c = await u(r), r.setAttribute("data-height", c.height), r.setAttribute("data-width", c.width)), a.w = c.width, a.width = c.width, a.h = c.height, a.height = c.height, t.push(a);
34
+ }
35
+ return t;
36
+ }
37
+ function u(e) {
38
+ let t = e.getAttribute("data-src") || e.getAttribute("src"), n = e.getAttribute("data-height"), r = e.getAttribute("data-width");
39
+ return n && r ? {
40
+ width: r,
41
+ height: n
42
+ } : e.complete ? {
43
+ width: e.naturalWidth,
44
+ height: e.naturalHeight
45
+ } : new Promise((e) => {
46
+ let n = new Image();
47
+ n.src = t;
48
+ let r = {
49
+ width: 0,
50
+ height: 0
51
+ };
52
+ n.complete ? (r.width = n.width, r.height = n.height, e(r)) : (n.onload = () => {
53
+ r.width = n.width, r.height = n.height, e(r);
54
+ }, n.onerror = () => {
55
+ r.width = 0, r.height = 0, e(r);
56
+ });
57
+ });
58
+ }
59
+ //#endregion
60
+ //#region src/components/photo-swipe/PhotoSwipe.vue
61
+ var d = {
62
+ name: "PhotoSwipe",
63
+ props: {
64
+ urls: Array,
65
+ selector: {
66
+ type: String,
67
+ default: "img"
68
+ }
69
+ },
70
+ methods: { async preview(e) {
71
+ await c(e, this.$refs.wrapper, { selector: this.selector });
72
+ } }
73
+ }, f = { ref: "wrapper" }, p = ["src"];
74
+ function m(e, o, s, c, l, u) {
75
+ return r(), n("div", f, [a(e.$slots, "default", {
76
+ urls: s.urls,
77
+ preview: u.preview
78
+ }, () => [(r(!0), n(t, null, i(s.urls, (e) => (r(), n("img", {
79
+ key: e.src,
80
+ style: { cursor: "pointer" },
81
+ width: "100",
82
+ src: e.src,
83
+ alt: "",
84
+ onClick: o[0] || (o[0] = (...e) => u.preview && u.preview(...e))
85
+ }, null, 8, p))), 128))])], 512);
86
+ }
87
+ var h = /* @__PURE__ */ e(d, [["render", m]]);
88
+ //#endregion
89
+ export { h as t };