cosey 0.5.0 → 0.5.2

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 (571) hide show
  1. package/components/audio-card/audio-card.api.d.ts +44 -0
  2. package/components/audio-card/audio-card.api.js +13 -0
  3. package/components/audio-card/audio-card.d.ts +78 -14
  4. package/components/audio-card/audio-card.js +55 -7
  5. package/components/{stack-dialog/style/index.d.ts → audio-card/audio-card.style.d.ts} +1 -1
  6. package/components/audio-card/{style/index.js → audio-card.style.js} +3 -6
  7. package/components/audio-card/index.d.ts +120 -21
  8. package/components/audio-card/index.js +2 -2
  9. package/components/audio-viewer/audio-viewer.api.d.ts +28 -0
  10. package/components/audio-viewer/audio-viewer.api.js +11 -0
  11. package/components/audio-viewer/audio-viewer.d.ts +43 -11
  12. package/components/audio-viewer/audio-viewer.js +88 -5
  13. package/components/{transition/style/index.d.ts → audio-viewer/audio-viewer.style.d.ts} +1 -1
  14. package/components/audio-viewer/{style/index.js → audio-viewer.style.js} +2 -5
  15. package/components/audio-viewer/index.d.ts +67 -12
  16. package/components/audio-viewer/index.js +1 -2
  17. package/components/card/card.api.d.ts +11 -0
  18. package/components/card/card.api.js +7 -0
  19. package/components/card/card.d.ts +6 -11
  20. package/components/card/card.js +27 -0
  21. package/components/card/card.style.d.ts +4 -0
  22. package/components/card/{style/index.js → card.style.js} +2 -2
  23. package/components/card/index.d.ts +14 -22
  24. package/components/card/index.js +2 -1
  25. package/components/close/close.api.d.ts +3 -0
  26. package/components/close/close.api.js +5 -0
  27. package/components/close/close.d.ts +6 -2
  28. package/components/close/close.js +26 -0
  29. package/components/close/close.style.d.ts +4 -0
  30. package/components/close/{style/index.js → close.style.js} +2 -5
  31. package/components/close/index.d.ts +14 -4
  32. package/components/close/index.js +2 -1
  33. package/components/col/col.api.d.ts +54 -0
  34. package/components/col/col.api.js +45 -0
  35. package/components/col/col.d.ts +87 -28
  36. package/components/col/col.js +74 -9
  37. package/components/col/col.style.d.ts +8 -0
  38. package/components/col/{style/index.js → col.style.js} +3 -6
  39. package/components/col/index.d.ts +132 -11
  40. package/components/col/index.js +2 -2
  41. package/components/config-provider/config-provider.api.d.ts +32 -0
  42. package/components/config-provider/config-provider.api.js +43 -0
  43. package/components/config-provider/config-provider.d.ts +28 -23
  44. package/components/config-provider/config-provider.js +55 -27
  45. package/components/config-provider/index.d.ts +42 -7
  46. package/components/config-provider/index.js +2 -2
  47. package/components/container/container.api.d.ts +14 -0
  48. package/components/container/container.api.js +9 -0
  49. package/components/container/container.d.ts +12 -10
  50. package/components/container/container.js +33 -2
  51. package/components/container/container.style.d.ts +4 -0
  52. package/components/container/container.style.js +12 -0
  53. package/components/container/index.d.ts +22 -6
  54. package/components/container/index.js +2 -2
  55. package/components/context-menu/content.api.d.ts +22 -0
  56. package/components/context-menu/content.api.js +22 -0
  57. package/components/context-menu/content.d.ts +55 -8
  58. package/components/context-menu/content.js +44 -0
  59. package/components/context-menu/context-menu-item.api.d.ts +25 -0
  60. package/components/context-menu/context-menu-item.api.js +21 -0
  61. package/components/context-menu/context-menu-item.d.ts +37 -15
  62. package/components/context-menu/context-menu-item.js +66 -0
  63. package/components/context-menu/context-menu.api.d.ts +35 -0
  64. package/components/context-menu/context-menu.api.js +14 -0
  65. package/components/context-menu/context-menu.d.ts +20 -30
  66. package/components/context-menu/context-menu.js +152 -2
  67. package/components/context-menu/context-menu.style.d.ts +8 -0
  68. package/components/context-menu/{style/index.js → context-menu.style.js} +3 -6
  69. package/components/context-menu/context-sub-menu.api.d.ts +20 -0
  70. package/components/context-menu/context-sub-menu.api.js +17 -0
  71. package/components/context-menu/context-sub-menu.d.ts +31 -13
  72. package/components/context-menu/context-sub-menu.js +199 -0
  73. package/components/context-menu/divider.d.ts +2 -0
  74. package/components/context-menu/divider.js +17 -0
  75. package/components/context-menu/index.d.ts +145 -43
  76. package/components/context-menu/index.js +6 -4
  77. package/components/context-menu/useItemProvide.js +1 -1
  78. package/components/copy/copy.api.d.ts +14 -0
  79. package/components/copy/copy.api.js +11 -0
  80. package/components/copy/copy.d.ts +16 -11
  81. package/components/copy/copy.js +42 -0
  82. package/components/copy/copy.style.d.ts +4 -0
  83. package/components/copy/{style/index.js → copy.style.js} +2 -5
  84. package/components/copy/index.d.ts +25 -6
  85. package/components/copy/index.js +2 -1
  86. package/components/dnd-sort/dnd-sort-item.api.d.ts +13 -0
  87. package/components/dnd-sort/dnd-sort-item.api.js +9 -0
  88. package/components/dnd-sort/dnd-sort-item.d.ts +12 -7
  89. package/components/dnd-sort/dnd-sort-item.js +48 -0
  90. package/components/dnd-sort/dnd-sort.api.d.ts +33 -0
  91. package/components/dnd-sort/dnd-sort.api.js +17 -0
  92. package/components/dnd-sort/dnd-sort.d.ts +26 -25
  93. package/components/dnd-sort/dnd-sort.js +30 -2
  94. package/components/dnd-sort/dnd-sort.style.d.ts +4 -0
  95. package/components/dnd-sort/{style/index.js → dnd-sort.style.js} +2 -5
  96. package/components/dnd-sort/index.d.ts +69 -19
  97. package/components/dnd-sort/index.js +4 -3
  98. package/components/dnd-sort/useDndSort.js +1 -1
  99. package/components/dnd-sort/useDndSortItem.js +1 -1
  100. package/components/editor/components/button-group.vue.js +1 -1
  101. package/components/editor/components/button.vue.js +1 -1
  102. package/components/editor/components/color-picker/color-picker.style.js +1 -1
  103. package/components/editor/components/color-picker/color-picker.vue.js +1 -1
  104. package/components/editor/components/list/list.style.js +1 -1
  105. package/components/editor/components/list/list.vue.js +1 -1
  106. package/components/editor/components/picker/picker.style.js +1 -1
  107. package/components/editor/components/picker/picker.vue.js +1 -1
  108. package/components/editor/components/resize/resize.style.js +1 -1
  109. package/components/editor/components/resize/resize.vue.js +1 -1
  110. package/components/editor/components/select-button.vue.js +1 -1
  111. package/components/editor/components/select.vue.d.ts +2 -2
  112. package/components/editor/components/split-button.vue.js +1 -1
  113. package/components/editor/components/table-toolbar/table-toolbar.style.js +1 -1
  114. package/components/editor/components/table-toolbar/table-toolbar.vue.js +1 -1
  115. package/components/editor/components/toolbar/formats/background.vue.js +1 -1
  116. package/components/editor/components/toolbar/formats/color.vue.js +1 -1
  117. package/components/editor/components/toolbar/formats/table.style.js +1 -1
  118. package/components/editor/components/toolbar/formats/table.vue.js +1 -1
  119. package/components/editor/components/toolbar/toolbar.vue.js +1 -1
  120. package/components/editor/editor.api.d.ts +29 -0
  121. package/components/editor/editor.api.js +29 -0
  122. package/components/editor/editor.d.ts +50 -15
  123. package/components/editor/editor.js +109 -4
  124. package/components/editor/editor.style.d.ts +5 -0
  125. package/components/editor/{style/index.js → editor.style.js} +89 -5
  126. package/components/editor/index.d.ts +78 -15
  127. package/components/editor/index.js +3 -3
  128. package/components/field/components/cascader/cascader.vue.js +1 -1
  129. package/components/field/components/checkbox/checkbox.vue.js +1 -1
  130. package/components/field/components/checkbox-group/checkbox-group.vue.js +1 -1
  131. package/components/field/components/checkbox-group/panel.vue.js +1 -1
  132. package/components/field/components/color/color.vue.js +1 -1
  133. package/components/field/components/common.d.ts +7 -3
  134. package/components/field/components/common.js +6 -0
  135. package/components/field/components/date/date.vue.js +1 -1
  136. package/components/field/components/date-range/date-range.vue.js +1 -1
  137. package/components/field/components/date-time/date-time.vue.js +1 -1
  138. package/components/field/components/date-time-range/date-time-range.vue.js +1 -1
  139. package/components/field/components/dates/dates.vue.js +1 -1
  140. package/components/field/components/input/input.vue.js +1 -1
  141. package/components/field/components/input-tag/input-tag.vue.js +1 -1
  142. package/components/field/components/mention/mention.vue.js +1 -1
  143. package/components/field/components/month/month.vue.js +1 -1
  144. package/components/field/components/month-range/month-range.vue.js +1 -1
  145. package/components/field/components/months/months.vue.js +1 -1
  146. package/components/field/components/number/number.vue.js +1 -1
  147. package/components/field/components/number-range/number-range.vue.js +1 -1
  148. package/components/field/components/password/password.vue.js +1 -1
  149. package/components/field/components/radio-group/radio-group.vue.js +1 -1
  150. package/components/field/components/rate/rate.vue.js +1 -1
  151. package/components/field/components/remote-select/remote-select.api.d.ts +35 -0
  152. package/components/field/components/remote-select/remote-select.api.js +19 -0
  153. package/components/field/components/remote-select/remote-select.d.ts +57 -15
  154. package/components/field/components/remote-select/remote-select.js +34 -0
  155. package/components/field/components/segmented/segmented.vue.js +1 -1
  156. package/components/field/components/select/select.vue.js +1 -1
  157. package/components/field/components/select-v2/select-v2.vue.js +1 -1
  158. package/components/field/components/slider/slider.vue.js +1 -1
  159. package/components/field/components/switch/switch.vue.js +1 -1
  160. package/components/field/components/textarea/textarea.vue.js +1 -1
  161. package/components/field/components/time/time.vue.js +1 -1
  162. package/components/field/components/time-range/time-range.vue.js +1 -1
  163. package/components/field/components/time-select/time-select.vue.js +1 -1
  164. package/components/field/components/transfer/transfer.vue.js +1 -1
  165. package/components/field/components/tree-select/tree-select.vue.js +1 -1
  166. package/components/field/components/upload/upload.vue.js +1 -1
  167. package/components/field/components/week/week.vue.js +1 -1
  168. package/components/field/components/year/year.vue.js +1 -1
  169. package/components/field/components/year-range/year-range.vue.js +1 -1
  170. package/components/field/components/years/years.vue.js +1 -1
  171. package/components/field/field.api.d.ts +204 -0
  172. package/components/field/field.api.js +101 -0
  173. package/components/field/field.d.ts +14 -130
  174. package/components/field/field.js +24 -82
  175. package/components/field/index.d.ts +14 -20
  176. package/components/field/index.js +2 -2
  177. package/components/file-card/file-card.api.d.ts +27 -0
  178. package/components/file-card/file-card.api.js +8 -0
  179. package/components/file-card/file-card.d.ts +44 -9
  180. package/components/file-card/file-card.js +29 -5
  181. package/components/file-card/file-card.style.d.ts +4 -0
  182. package/components/file-card/{style/index.js → file-card.style.js} +3 -6
  183. package/components/file-card/index.d.ts +69 -11
  184. package/components/file-card/index.js +2 -2
  185. package/components/form/{form-item.d.ts → form-item.api.d.ts} +67 -43
  186. package/components/form/{form-item.js → form-item.api.js} +34 -10
  187. package/components/form/form-item.vue.d.ts +1 -1
  188. package/components/form/form-item.vue.js +42 -42
  189. package/components/form/form.api.d.ts +173 -0
  190. package/components/form/form.api.js +66 -0
  191. package/components/form/form.d.ts +161 -67
  192. package/components/form/form.js +90 -59
  193. package/components/form/form.style.d.ts +4 -0
  194. package/components/form/{style/index.js → form.style.js} +2 -2
  195. package/components/form/index.d.ts +21 -50
  196. package/components/form/index.js +3 -3
  197. package/components/form/useBubbleTemplate.js +2 -2
  198. package/components/form/useFormItemWidth.d.ts +2 -2
  199. package/components/form/useFormItemWidth.js +1 -1
  200. package/components/form/useFormTemplate.d.ts +1 -1
  201. package/components/form/useFormTemplate.js +1 -1
  202. package/components/form-dialog/form-dialog.vue.js +1 -1
  203. package/components/form-drawer/form-drawer.vue.d.ts +5 -5
  204. package/components/form-drawer/form-drawer.vue.js +1 -1
  205. package/components/form-drawer/index.d.ts +14 -14
  206. package/components/form-group/form-group.vue.js +2 -2
  207. package/components/form-group/style/index.js +1 -1
  208. package/components/form-list/form-list.api.d.ts +181 -0
  209. package/components/form-list/form-list.api.js +35 -0
  210. package/components/form-list/form-list.style.d.ts +4 -0
  211. package/components/form-list/{style/index.js → form-list.style.js} +2 -5
  212. package/components/form-list/form-list.vue.d.ts +4 -4
  213. package/components/form-list/form-list.vue.js +21 -117
  214. package/components/form-list/index.d.ts +15 -15
  215. package/components/form-list/index.js +1 -1
  216. package/components/form-query/form-query.api.d.ts +162 -0
  217. package/components/form-query/form-query.api.js +38 -0
  218. package/components/form-query/form-query.d.ts +195 -41
  219. package/components/form-query/form-query.js +137 -29
  220. package/components/form-query/form-query.style.d.ts +4 -0
  221. package/components/form-query/{style/index.js → form-query.style.js} +2 -5
  222. package/components/form-query/index.d.ts +52 -45
  223. package/components/form-query/index.js +2 -2
  224. package/components/highlight/highlight.vue.js +4 -4
  225. package/components/highlight/style/index.d.ts +0 -5
  226. package/components/highlight/style/index.js +2 -5
  227. package/components/horizontal-tree/horizontal-tree.vue.js +2 -2
  228. package/components/horizontal-tree/style/index.js +1 -1
  229. package/components/icon/icon.vue.js +2 -2
  230. package/components/icon/style/index.d.ts +0 -5
  231. package/components/icon/style/index.js +2 -5
  232. package/components/iconify-icon/iconify-icon.vue.js +1 -1
  233. package/components/image-card/image-card.d.ts +7 -7
  234. package/components/image-card/image-card.js +1 -1
  235. package/components/image-card/image-card.style.d.ts +4 -0
  236. package/components/image-card/image-card.style.js +13 -0
  237. package/components/image-card/image-card.vue.d.ts +16 -16
  238. package/components/image-card/image-card.vue.js +3 -3
  239. package/components/image-card/index.d.ts +29 -29
  240. package/components/index.js +29 -21
  241. package/components/input-number-range/index.d.ts +5 -5
  242. package/components/input-number-range/input-number-range.vue.d.ts +2 -2
  243. package/components/input-number-range/input-number-range.vue.js +2 -2
  244. package/components/input-number-range/style/index.js +2 -2
  245. package/components/long-text/long-text.vue.js +2 -2
  246. package/components/long-text/style/index.d.ts +0 -5
  247. package/components/long-text/style/index.js +2 -5
  248. package/components/mask/index.d.ts +14 -4
  249. package/components/mask/index.js +2 -1
  250. package/components/mask/mask.api.d.ts +3 -0
  251. package/components/mask/mask.api.js +5 -0
  252. package/components/mask/mask.d.ts +6 -2
  253. package/components/mask/mask.js +23 -0
  254. package/components/mask/mask.style.d.ts +4 -0
  255. package/components/mask/{style/index.js → mask.style.js} +2 -5
  256. package/components/media-card/index.d.ts +70 -12
  257. package/components/media-card/index.js +2 -2
  258. package/components/media-card/media-card.api.d.ts +52 -0
  259. package/components/media-card/media-card.api.js +27 -0
  260. package/components/media-card/media-card.d.ts +29 -26
  261. package/components/media-card/media-card.js +56 -24
  262. package/components/media-card/{style/index.d.ts → media-card.style.d.ts} +3 -3
  263. package/components/media-card/{style/index.js → media-card.style.js} +1 -1
  264. package/components/media-card-group/media-card-group.d.ts +1 -1
  265. package/components/media-card-group/media-card-group.vue.js +7 -6
  266. package/components/media-card-group/style/index.js +1 -1
  267. package/components/media-viewer/index.d.ts +74 -13
  268. package/components/media-viewer/index.js +2 -2
  269. package/components/media-viewer/media-viewer.api.d.ts +50 -0
  270. package/components/media-viewer/media-viewer.api.js +27 -0
  271. package/components/media-viewer/media-viewer.d.ts +45 -22
  272. package/components/media-viewer/media-viewer.js +13 -7
  273. package/components/number-format/index.d.ts +3 -3
  274. package/components/number-format/number-format.vue.d.ts +1 -1
  275. package/components/number-format/number-format.vue.js +1 -1
  276. package/components/only-child/index.js +1 -1
  277. package/components/only-child/{only-child.vue.d.ts → only-child.d.ts} +1 -1
  278. package/components/only-child/{only-child.vue.js → only-child.js} +1 -2
  279. package/components/optional-wrapper/index.d.ts +61 -9
  280. package/components/optional-wrapper/index.js +1 -1
  281. package/components/optional-wrapper/optional-wrapper.api.d.ts +17 -0
  282. package/components/optional-wrapper/optional-wrapper.api.js +14 -0
  283. package/components/optional-wrapper/optional-wrapper.d.ts +28 -8
  284. package/components/optional-wrapper/optional-wrapper.js +28 -0
  285. package/components/panel/panel.vue.js +2 -2
  286. package/components/panel/style/index.d.ts +0 -5
  287. package/components/panel/style/index.js +2 -5
  288. package/components/remote-select/index.d.ts +75 -51
  289. package/components/remote-select/index.js +2 -2
  290. package/components/remote-select/remote-select.api.d.ts +273 -0
  291. package/components/remote-select/remote-select.api.js +37 -0
  292. package/components/remote-select/remote-select.d.ts +337 -63
  293. package/components/remote-select/remote-select.js +187 -34
  294. package/components/remote-select/remote-select.style.d.ts +4 -0
  295. package/components/remote-select/{style/index.js → remote-select.style.js} +2 -2
  296. package/components/row/row.vue.js +2 -2
  297. package/components/row/style/index.d.ts +0 -5
  298. package/components/row/style/index.js +2 -5
  299. package/components/scroll-view/scroll-view.vue.js +2 -2
  300. package/components/scroll-view/style/index.d.ts +0 -5
  301. package/components/scroll-view/style/index.js +2 -5
  302. package/components/snug-menu/index.d.ts +5 -5
  303. package/components/snug-menu/snug-menu-item.vue.js +2 -2
  304. package/components/snug-menu/snug-menu.vue.d.ts +2 -2
  305. package/components/snug-menu/snug-menu.vue.js +2 -2
  306. package/components/snug-menu/style/index.d.ts +0 -5
  307. package/components/snug-menu/style/index.js +2 -5
  308. package/components/stack-dialog/stack-dialog.style.d.ts +4 -0
  309. package/components/stack-dialog/{style/index.js → stack-dialog.style.js} +2 -2
  310. package/components/stack-dialog/stack-dialog.vue.js +3 -3
  311. package/components/svg-icon/svg-icon.vue.js +1 -1
  312. package/components/table/index.d.ts +32 -32
  313. package/components/table/table-column/{style/index.js → table-column.style.js} +2 -5
  314. package/components/table/table-column/table-column.vue.d.ts +7 -7
  315. package/components/table/table-column/table-column.vue.js +2 -2
  316. package/components/table/table-column-editor/item.vue.js +1 -1
  317. package/components/table/table-column-editor/list.vue.js +1 -1
  318. package/components/table/table-column-editor/{style/index.js → table-column-editor.style.js} +3 -6
  319. package/components/table/table-column-editor/table-column-editor.vue.js +3 -3
  320. package/components/table/table-export/item.vue.js +1 -1
  321. package/components/table/table-export/list.vue.js +1 -1
  322. package/components/table/table-export/style/index.d.ts +0 -5
  323. package/components/table/table-export/style/index.js +2 -5
  324. package/components/table/table-export/table-export.vue.d.ts +5 -5
  325. package/components/table/table-export/table-export.vue.js +2 -2
  326. package/components/table/table-query/table-query.d.ts +2 -2
  327. package/components/table/table-query/table-query.js +2 -2
  328. package/components/table/table-query/table-query.vue.d.ts +20 -8
  329. package/components/table/table-query/table-query.vue.js +1 -2
  330. package/components/table/table-stats/table-stats.style.js +1 -1
  331. package/components/table/table-stats/table-stats.vue.js +1 -1
  332. package/components/table/table.d.ts +7 -7
  333. package/components/table/table.style.d.ts +0 -6
  334. package/components/table/table.style.js +3 -10
  335. package/components/table/table.vue.d.ts +17 -17
  336. package/components/table/table.vue.js +2 -2
  337. package/components/table-action/index.d.ts +23 -572
  338. package/components/table-action/index.js +2 -2
  339. package/components/table-action/item.api.d.ts +98 -0
  340. package/components/table-action/item.api.js +35 -0
  341. package/components/table-action/item.d.ts +126 -16
  342. package/components/table-action/item.js +88 -32
  343. package/components/table-action/table-action.api.d.ts +9 -0
  344. package/components/table-action/table-action.api.js +8 -0
  345. package/components/table-action/table-action.d.ts +15 -7
  346. package/components/table-action/table-action.js +36 -4
  347. package/components/table-action/table-action.style.d.ts +4 -0
  348. package/components/table-action/{style/index.js → table-action.style.js} +2 -5
  349. package/components/theme/getGlobalStyleHook.js +1 -1
  350. package/components/theme/getOverrideStyleHook.js +1 -1
  351. package/components/theme/getSimpleStyleHook.js +1 -1
  352. package/components/theme/getStyleHook.js +1 -1
  353. package/components/theme/interface/components.d.ts +1 -60
  354. package/components/theme/util/useToken.js +1 -1
  355. package/components/toggle/index.d.ts +29 -13
  356. package/components/toggle/index.js +2 -1
  357. package/components/toggle/toggle.api.d.ts +15 -0
  358. package/components/toggle/toggle.api.js +13 -0
  359. package/components/toggle/toggle.d.ts +16 -9
  360. package/components/toggle/toggle.js +43 -0
  361. package/components/transition/index.d.ts +165 -11
  362. package/components/transition/index.js +2 -1
  363. package/components/transition/transition.api.d.ts +58 -0
  364. package/components/transition/transition.api.js +52 -0
  365. package/components/transition/transition.d.ts +108 -7
  366. package/components/transition/transition.js +38 -0
  367. package/components/transition/transition.style.d.ts +4 -0
  368. package/components/transition/{style/index.js → transition.style.js} +2 -2
  369. package/components/transition-group/index.d.ts +189 -11
  370. package/components/transition-group/index.js +2 -1
  371. package/components/transition-group/transition-group.api.d.ts +65 -0
  372. package/components/transition-group/transition-group.api.js +19 -0
  373. package/components/transition-group/transition-group.d.ts +123 -7
  374. package/components/transition-group/transition-group.js +50 -0
  375. package/components/transition-group/transition-group.style.d.ts +4 -0
  376. package/components/transition-group/{style/index.js → transition-group.style.js} +2 -5
  377. package/components/upload/index.d.ts +165 -20
  378. package/components/upload/index.js +2 -2
  379. package/components/upload/upload-item.d.ts +37 -0
  380. package/components/upload/upload-item.js +110 -0
  381. package/components/upload/upload.api.d.ts +93 -0
  382. package/components/upload/upload.api.js +71 -0
  383. package/components/upload/upload.d.ts +106 -53
  384. package/components/upload/upload.js +211 -7
  385. package/components/upload/upload.style.d.ts +4 -0
  386. package/components/upload/{style/index.js → upload.style.js} +3 -6
  387. package/components/utils.js +1 -1
  388. package/components/video-card/index.d.ts +120 -21
  389. package/components/video-card/index.js +2 -2
  390. package/components/video-card/video-card.api.d.ts +44 -0
  391. package/components/video-card/video-card.api.js +13 -0
  392. package/components/video-card/video-card.d.ts +78 -14
  393. package/components/video-card/video-card.js +58 -7
  394. package/components/video-card/video-card.style.d.ts +4 -0
  395. package/components/video-card/{style/index.js → video-card.style.js} +3 -6
  396. package/components/video-viewer/index.d.ts +67 -12
  397. package/components/video-viewer/index.js +1 -2
  398. package/components/video-viewer/video-viewer.api.d.ts +28 -0
  399. package/components/video-viewer/video-viewer.api.js +11 -0
  400. package/components/video-viewer/video-viewer.d.ts +43 -11
  401. package/components/video-viewer/video-viewer.js +89 -5
  402. package/components/video-viewer/video-viewer.style.d.ts +4 -0
  403. package/components/video-viewer/{style/index.js → video-viewer.style.js} +2 -5
  404. package/config/root-config-provider.api.d.ts +20 -0
  405. package/config/root-config-provider.api.js +21 -0
  406. package/config/root-config-provider.d.ts +30 -7
  407. package/config/root-config-provider.js +56 -14
  408. package/index.d.ts +2 -2
  409. package/index.js +2 -2
  410. package/layout/layout-aside/layout-aside.vue.js +2 -2
  411. package/layout/layout-aside/style/index.js +1 -1
  412. package/layout/layout-auth/layout-auth.vue.js +2 -2
  413. package/layout/layout-auth/style/index.js +1 -1
  414. package/layout/layout-base/layout-base.vue.js +2 -2
  415. package/layout/layout-base/style/index.js +1 -1
  416. package/layout/layout-brand/layout-brand.vue.js +2 -2
  417. package/layout/layout-brand/style/index.js +1 -1
  418. package/layout/layout-breadcrumb/layout-breadcrumb.vue.js +1 -1
  419. package/layout/layout-change-password/layout-change-password.vue.js +1 -1
  420. package/layout/layout-change-password/style/index.js +1 -1
  421. package/layout/layout-color-scheme/layout-color-scheme.vue.js +2 -2
  422. package/layout/layout-color-scheme/style/index.js +1 -1
  423. package/layout/layout-content/layout-content.vue.js +2 -2
  424. package/layout/layout-content/style/index.js +1 -1
  425. package/layout/layout-empty/layout-empty.vue.js +1 -1
  426. package/layout/layout-exception/layout-exception.vue.js +2 -2
  427. package/layout/layout-exception/style/index.js +1 -1
  428. package/layout/layout-forbidden/layout-forbidden.vue.js +1 -1
  429. package/layout/layout-header/layout-header.vue.js +2 -2
  430. package/layout/layout-header/style/index.js +1 -1
  431. package/layout/layout-iframe/item.vue.js +2 -2
  432. package/layout/layout-iframe/layout-iframe.vue.js +1 -1
  433. package/layout/layout-iframe/style/index.js +1 -1
  434. package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +1 -1
  435. package/layout/layout-login/layout-login.vue.js +1 -1
  436. package/layout/layout-login/style/index.js +1 -1
  437. package/layout/layout-main/layout-main.vue.js +2 -2
  438. package/layout/layout-main/style/index.js +1 -1
  439. package/layout/layout-mask/layout-mask.vue.js +2 -2
  440. package/layout/layout-mask/style/index.js +1 -1
  441. package/layout/layout-menu/layout-menu.vue.js +2 -2
  442. package/layout/layout-menu/style/index.js +1 -1
  443. package/layout/layout-not-found/layout-not-found.vue.js +1 -1
  444. package/layout/layout-search/layout-search.vue.js +4 -4
  445. package/layout/layout-search/style/index.js +1 -1
  446. package/layout/layout-sidebar/layout-sidebar.vue.js +2 -2
  447. package/layout/layout-sidebar/style/index.js +1 -1
  448. package/layout/layout-snug-aside/layout-snug-aside.vue.js +2 -2
  449. package/layout/layout-snug-aside/style/index.js +1 -1
  450. package/layout/layout-snug-menu/layout-snug-menu.vue.js +1 -1
  451. package/layout/layout-switch-effect/layout-switch-effect.vue.js +2 -2
  452. package/layout/layout-switch-effect/style/index.js +1 -1
  453. package/layout/layout-tabbar/layout-tabbar.vue.js +2 -2
  454. package/layout/layout-tabbar/reload.vue.js +2 -2
  455. package/layout/layout-tabbar/style/index.js +1 -1
  456. package/layout/layout-toggle/layout-toggle.vue.js +1 -1
  457. package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +1 -1
  458. package/layout/layout-topbar/layout-topbar.vue.js +2 -2
  459. package/layout/layout-topbar/style/index.js +1 -1
  460. package/layout/layout-user-menu/layout-user-menu.vue.js +2 -2
  461. package/layout/layout-user-menu/style/index.js +1 -1
  462. package/package.json +3 -3
  463. package/utils/index.js +1 -1
  464. package/utils/vue.d.ts +8 -0
  465. package/utils/vue.js +9 -1
  466. package/components/audio-card/audio-card.vue.d.ts +0 -14
  467. package/components/audio-card/audio-card.vue.js +0 -106
  468. package/components/audio-card/style/index.d.ts +0 -9
  469. package/components/audio-viewer/audio-viewer.vue.d.ts +0 -16
  470. package/components/audio-viewer/audio-viewer.vue.js +0 -124
  471. package/components/audio-viewer/style/index.d.ts +0 -9
  472. package/components/card/card.vue.d.ts +0 -16
  473. package/components/card/card.vue.js +0 -31
  474. package/components/close/close.vue.d.ts +0 -3
  475. package/components/close/close.vue.js +0 -30
  476. package/components/close/style/index.d.ts +0 -9
  477. package/components/col/col.vue.d.ts +0 -16
  478. package/components/col/col.vue.js +0 -126
  479. package/components/col/style/index.d.ts +0 -12
  480. package/components/config-provider/config-provider.vue.d.ts +0 -13
  481. package/components/config-provider/config-provider.vue.js +0 -77
  482. package/components/container/container.vue.d.ts +0 -10
  483. package/components/container/container.vue.js +0 -41
  484. package/components/container/style/index.d.ts +0 -9
  485. package/components/container/style/index.js +0 -15
  486. package/components/context-menu/content.vue.d.ts +0 -3
  487. package/components/context-menu/content.vue.js +0 -69
  488. package/components/context-menu/context-menu-item.vue.d.ts +0 -14
  489. package/components/context-menu/context-menu-item.vue.js +0 -97
  490. package/components/context-menu/context-menu.vue.d.ts +0 -21
  491. package/components/context-menu/context-menu.vue.js +0 -165
  492. package/components/context-menu/context-sub-menu.vue.d.ts +0 -10
  493. package/components/context-menu/context-sub-menu.vue.js +0 -225
  494. package/components/context-menu/divider.vue.d.ts +0 -2
  495. package/components/context-menu/divider.vue.js +0 -19
  496. package/components/context-menu/style/index.d.ts +0 -11
  497. package/components/copy/copy.vue.d.ts +0 -10
  498. package/components/copy/copy.vue.js +0 -60
  499. package/components/copy/style/index.d.ts +0 -9
  500. package/components/dnd-sort/dnd-sort-item.vue.d.ts +0 -10
  501. package/components/dnd-sort/dnd-sort-item.vue.js +0 -61
  502. package/components/dnd-sort/dnd-sort.vue.d.ts +0 -14
  503. package/components/dnd-sort/dnd-sort.vue.js +0 -47
  504. package/components/dnd-sort/style/index.d.ts +0 -9
  505. package/components/editor/editor.vue.d.ts +0 -11
  506. package/components/editor/editor.vue.js +0 -144
  507. package/components/editor/style/button.d.ts +0 -4
  508. package/components/editor/style/button.js +0 -68
  509. package/components/editor/style/hljs.d.ts +0 -2
  510. package/components/editor/style/hljs.js +0 -8
  511. package/components/editor/style/index.d.ts +0 -11
  512. package/components/editor/style/toolbar.d.ts +0 -4
  513. package/components/editor/style/toolbar.js +0 -18
  514. package/components/field/components/remote-select/remote-select.vue.d.ts +0 -3
  515. package/components/field/components/remote-select/remote-select.vue.js +0 -32
  516. package/components/field/field.vue.d.ts +0 -14
  517. package/components/field/field.vue.js +0 -56
  518. package/components/file-card/file-card.vue.d.ts +0 -12
  519. package/components/file-card/file-card.vue.js +0 -61
  520. package/components/file-card/style/index.d.ts +0 -9
  521. package/components/form/form.vue.d.ts +0 -281
  522. package/components/form/form.vue.js +0 -104
  523. package/components/form/style/index.d.ts +0 -10
  524. package/components/form-list/form-list.d.ts +0 -55
  525. package/components/form-list/form-list.js +0 -10
  526. package/components/form-list/style/index.d.ts +0 -9
  527. package/components/form-query/form-query.vue.d.ts +0 -318
  528. package/components/form-query/form-query.vue.js +0 -155
  529. package/components/form-query/style/index.d.ts +0 -9
  530. package/components/image-card/style/index.d.ts +0 -9
  531. package/components/image-card/style/index.js +0 -16
  532. package/components/mask/mask.vue.d.ts +0 -3
  533. package/components/mask/mask.vue.js +0 -26
  534. package/components/mask/style/index.d.ts +0 -9
  535. package/components/media-card/media-card.vue.d.ts +0 -12
  536. package/components/media-card/media-card.vue.js +0 -89
  537. package/components/media-viewer/media-viewer.vue.d.ts +0 -14
  538. package/components/media-viewer/media-viewer.vue.js +0 -38
  539. package/components/optional-wrapper/optional-wrapper.vue.d.ts +0 -12
  540. package/components/optional-wrapper/optional-wrapper.vue.js +0 -27
  541. package/components/remote-select/remote-select.vue.d.ts +0 -530
  542. package/components/remote-select/remote-select.vue.js +0 -187
  543. package/components/table/table-column/style/index.d.ts +0 -9
  544. package/components/table/table-column-editor/style/index.d.ts +0 -9
  545. package/components/table-action/item.vue.d.ts +0 -208
  546. package/components/table-action/item.vue.js +0 -116
  547. package/components/table-action/style/index.d.ts +0 -9
  548. package/components/table-action/table-action.vue.d.ts +0 -193
  549. package/components/table-action/table-action.vue.js +0 -52
  550. package/components/toggle/toggle.vue.d.ts +0 -14
  551. package/components/toggle/toggle.vue.js +0 -55
  552. package/components/transition/transition.vue.d.ts +0 -13
  553. package/components/transition/transition.vue.js +0 -159
  554. package/components/transition-group/style/index.d.ts +0 -9
  555. package/components/transition-group/transition-group.vue.d.ts +0 -13
  556. package/components/transition-group/transition-group.vue.js +0 -179
  557. package/components/upload/style/index.d.ts +0 -9
  558. package/components/upload/upload-item.vue.d.ts +0 -11
  559. package/components/upload/upload-item.vue.js +0 -147
  560. package/components/upload/upload.vue.d.ts +0 -23
  561. package/components/upload/upload.vue.js +0 -275
  562. package/components/video-card/style/index.d.ts +0 -9
  563. package/components/video-card/video-card.vue.d.ts +0 -14
  564. package/components/video-card/video-card.vue.js +0 -111
  565. package/components/video-viewer/style/index.d.ts +0 -9
  566. package/components/video-viewer/video-viewer.vue.d.ts +0 -16
  567. package/components/video-viewer/video-viewer.vue.js +0 -125
  568. package/config/root-config-provider.vue.d.ts +0 -15
  569. package/config/root-config-provider.vue.js +0 -85
  570. /package/components/{remote-select/style/index.d.ts → table/table-column/table-column.style.d.ts} +0 -0
  571. /package/components/{card/style/index.d.ts → table/table-column-editor/table-column-editor.style.d.ts} +0 -0
@@ -0,0 +1,98 @@
1
+ import { popconfirmProps } from 'element-plus';
2
+ import { ExtractPublicPropTypes, PropType, type ExtractPropTypes } from 'vue';
3
+ export declare const tableActionItemProps: {
4
+ link: {
5
+ type: PropType<boolean>;
6
+ default: boolean;
7
+ };
8
+ type: {
9
+ type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
10
+ default: string;
11
+ };
12
+ label: {
13
+ type: StringConstructor;
14
+ };
15
+ popconfirm: {
16
+ type: PropType<Partial<ExtractPropTypes<typeof popconfirmProps>> & {
17
+ confirm?: (event: MouseEvent) => any;
18
+ cancel?: (event: MouseEvent) => void;
19
+ }>;
20
+ };
21
+ onClick: {
22
+ type: PropType<(event: MouseEvent) => void>;
23
+ };
24
+ hidden: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ visible: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ icon: {
33
+ type: StringConstructor;
34
+ };
35
+ size: {
36
+ readonly type: PropType<"" | "default" | "large" | "small">;
37
+ readonly required: false;
38
+ readonly validator: ((val: unknown) => boolean) | undefined;
39
+ __epPropKey: true;
40
+ };
41
+ disabled: BooleanConstructor;
42
+ nativeType: {
43
+ readonly type: PropType<"button" | "reset" | "submit">;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ } & {
48
+ readonly default: "button";
49
+ };
50
+ loading: BooleanConstructor;
51
+ loadingIcon: {
52
+ readonly type: PropType<string | import("vue").Component>;
53
+ readonly required: false;
54
+ readonly validator: ((val: unknown) => boolean) | undefined;
55
+ __epPropKey: true;
56
+ } & {
57
+ readonly default: () => any;
58
+ };
59
+ plain: {
60
+ readonly type: PropType<boolean>;
61
+ readonly required: false;
62
+ readonly validator: ((val: unknown) => boolean) | undefined;
63
+ __epPropKey: true;
64
+ } & {
65
+ readonly default: undefined;
66
+ };
67
+ text: BooleanConstructor;
68
+ bg: BooleanConstructor;
69
+ autofocus: BooleanConstructor;
70
+ round: {
71
+ readonly type: PropType<boolean>;
72
+ readonly required: false;
73
+ readonly validator: ((val: unknown) => boolean) | undefined;
74
+ __epPropKey: true;
75
+ } & {
76
+ readonly default: undefined;
77
+ };
78
+ circle: BooleanConstructor;
79
+ color: StringConstructor;
80
+ dark: BooleanConstructor;
81
+ autoInsertSpace: {
82
+ readonly type: PropType<boolean>;
83
+ readonly required: false;
84
+ readonly validator: ((val: unknown) => boolean) | undefined;
85
+ __epPropKey: true;
86
+ } & {
87
+ readonly default: undefined;
88
+ };
89
+ tag: {
90
+ readonly type: PropType<string | import("vue").Component>;
91
+ readonly required: false;
92
+ readonly validator: ((val: unknown) => boolean) | undefined;
93
+ __epPropKey: true;
94
+ } & {
95
+ readonly default: "button";
96
+ };
97
+ };
98
+ export type TableActionItem = ExtractPublicPropTypes<typeof tableActionItemProps>;
@@ -0,0 +1,35 @@
1
+ import { buttonProps } from 'element-plus';
2
+
3
+ const tableActionItemProps = {
4
+ ...buttonProps,
5
+ link: {
6
+ type: Boolean,
7
+ default: true
8
+ },
9
+ type: {
10
+ type: String,
11
+ default: "primary"
12
+ },
13
+ label: {
14
+ type: String
15
+ },
16
+ popconfirm: {
17
+ type: Object
18
+ },
19
+ onClick: {
20
+ type: Function
21
+ },
22
+ hidden: {
23
+ type: Boolean,
24
+ default: false
25
+ },
26
+ visible: {
27
+ type: Boolean,
28
+ default: true
29
+ },
30
+ icon: {
31
+ type: String
32
+ }
33
+ };
34
+
35
+ export { tableActionItemProps };
@@ -1,25 +1,23 @@
1
- import { popconfirmProps } from 'element-plus';
2
- import { PropType, type ExtractPropTypes } from 'vue';
3
- export declare const tableActionItemProps: {
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
2
  link: {
5
- type: PropType<boolean>;
3
+ type: import("vue").PropType<boolean>;
6
4
  default: boolean;
7
5
  };
8
6
  type: {
9
- type: PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
7
+ type: import("vue").PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
10
8
  default: string;
11
9
  };
12
10
  label: {
13
11
  type: StringConstructor;
14
12
  };
15
13
  popconfirm: {
16
- type: PropType<Partial<ExtractPropTypes<typeof popconfirmProps>> & {
14
+ type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<typeof import("element-plus").popconfirmProps>> & {
17
15
  confirm?: (event: MouseEvent) => any;
18
16
  cancel?: (event: MouseEvent) => void;
19
17
  }>;
20
18
  };
21
19
  onClick: {
22
- type: PropType<(event: MouseEvent) => void>;
20
+ type: import("vue").PropType<(event: MouseEvent) => void>;
23
21
  };
24
22
  hidden: {
25
23
  type: BooleanConstructor;
@@ -33,14 +31,14 @@ export declare const tableActionItemProps: {
33
31
  type: StringConstructor;
34
32
  };
35
33
  size: {
36
- readonly type: PropType<"" | "default" | "large" | "small">;
34
+ readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
37
35
  readonly required: false;
38
36
  readonly validator: ((val: unknown) => boolean) | undefined;
39
37
  __epPropKey: true;
40
38
  };
41
39
  disabled: BooleanConstructor;
42
40
  nativeType: {
43
- readonly type: PropType<"button" | "reset" | "submit">;
41
+ readonly type: import("vue").PropType<"button" | "reset" | "submit">;
44
42
  readonly required: false;
45
43
  readonly validator: ((val: unknown) => boolean) | undefined;
46
44
  __epPropKey: true;
@@ -49,7 +47,7 @@ export declare const tableActionItemProps: {
49
47
  };
50
48
  loading: BooleanConstructor;
51
49
  loadingIcon: {
52
- readonly type: PropType<string | import("vue").Component>;
50
+ readonly type: import("vue").PropType<string | import("vue").Component>;
53
51
  readonly required: false;
54
52
  readonly validator: ((val: unknown) => boolean) | undefined;
55
53
  __epPropKey: true;
@@ -57,7 +55,7 @@ export declare const tableActionItemProps: {
57
55
  readonly default: () => any;
58
56
  };
59
57
  plain: {
60
- readonly type: PropType<boolean>;
58
+ readonly type: import("vue").PropType<boolean>;
61
59
  readonly required: false;
62
60
  readonly validator: ((val: unknown) => boolean) | undefined;
63
61
  __epPropKey: true;
@@ -68,7 +66,7 @@ export declare const tableActionItemProps: {
68
66
  bg: BooleanConstructor;
69
67
  autofocus: BooleanConstructor;
70
68
  round: {
71
- readonly type: PropType<boolean>;
69
+ readonly type: import("vue").PropType<boolean>;
72
70
  readonly required: false;
73
71
  readonly validator: ((val: unknown) => boolean) | undefined;
74
72
  __epPropKey: true;
@@ -79,7 +77,7 @@ export declare const tableActionItemProps: {
79
77
  color: StringConstructor;
80
78
  dark: BooleanConstructor;
81
79
  autoInsertSpace: {
82
- readonly type: PropType<boolean>;
80
+ readonly type: import("vue").PropType<boolean>;
83
81
  readonly required: false;
84
82
  readonly validator: ((val: unknown) => boolean) | undefined;
85
83
  __epPropKey: true;
@@ -87,12 +85,124 @@ export declare const tableActionItemProps: {
87
85
  readonly default: undefined;
88
86
  };
89
87
  tag: {
90
- readonly type: PropType<string | import("vue").Component>;
88
+ readonly type: import("vue").PropType<string | import("vue").Component>;
91
89
  readonly required: false;
92
90
  readonly validator: ((val: unknown) => boolean) | undefined;
93
91
  __epPropKey: true;
94
92
  } & {
95
93
  readonly default: "button";
96
94
  };
97
- };
98
- export type TableActionItem = Partial<ExtractPropTypes<typeof tableActionItemProps>>;
95
+ }>, () => import("vue/jsx-runtime").JSX.Element | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
96
+ link: {
97
+ type: import("vue").PropType<boolean>;
98
+ default: boolean;
99
+ };
100
+ type: {
101
+ type: import("vue").PropType<"primary" | "success" | "warning" | "danger" | "info" | "text">;
102
+ default: string;
103
+ };
104
+ label: {
105
+ type: StringConstructor;
106
+ };
107
+ popconfirm: {
108
+ type: import("vue").PropType<Partial<import("vue").ExtractPropTypes<typeof import("element-plus").popconfirmProps>> & {
109
+ confirm?: (event: MouseEvent) => any;
110
+ cancel?: (event: MouseEvent) => void;
111
+ }>;
112
+ };
113
+ onClick: {
114
+ type: import("vue").PropType<(event: MouseEvent) => void>;
115
+ };
116
+ hidden: {
117
+ type: BooleanConstructor;
118
+ default: boolean;
119
+ };
120
+ visible: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ icon: {
125
+ type: StringConstructor;
126
+ };
127
+ size: {
128
+ readonly type: import("vue").PropType<"" | "default" | "large" | "small">;
129
+ readonly required: false;
130
+ readonly validator: ((val: unknown) => boolean) | undefined;
131
+ __epPropKey: true;
132
+ };
133
+ disabled: BooleanConstructor;
134
+ nativeType: {
135
+ readonly type: import("vue").PropType<"button" | "reset" | "submit">;
136
+ readonly required: false;
137
+ readonly validator: ((val: unknown) => boolean) | undefined;
138
+ __epPropKey: true;
139
+ } & {
140
+ readonly default: "button";
141
+ };
142
+ loading: BooleanConstructor;
143
+ loadingIcon: {
144
+ readonly type: import("vue").PropType<string | import("vue").Component>;
145
+ readonly required: false;
146
+ readonly validator: ((val: unknown) => boolean) | undefined;
147
+ __epPropKey: true;
148
+ } & {
149
+ readonly default: () => any;
150
+ };
151
+ plain: {
152
+ readonly type: import("vue").PropType<boolean>;
153
+ readonly required: false;
154
+ readonly validator: ((val: unknown) => boolean) | undefined;
155
+ __epPropKey: true;
156
+ } & {
157
+ readonly default: undefined;
158
+ };
159
+ text: BooleanConstructor;
160
+ bg: BooleanConstructor;
161
+ autofocus: BooleanConstructor;
162
+ round: {
163
+ readonly type: import("vue").PropType<boolean>;
164
+ readonly required: false;
165
+ readonly validator: ((val: unknown) => boolean) | undefined;
166
+ __epPropKey: true;
167
+ } & {
168
+ readonly default: undefined;
169
+ };
170
+ circle: BooleanConstructor;
171
+ color: StringConstructor;
172
+ dark: BooleanConstructor;
173
+ autoInsertSpace: {
174
+ readonly type: import("vue").PropType<boolean>;
175
+ readonly required: false;
176
+ readonly validator: ((val: unknown) => boolean) | undefined;
177
+ __epPropKey: true;
178
+ } & {
179
+ readonly default: undefined;
180
+ };
181
+ tag: {
182
+ readonly type: import("vue").PropType<string | import("vue").Component>;
183
+ readonly required: false;
184
+ readonly validator: ((val: unknown) => boolean) | undefined;
185
+ __epPropKey: true;
186
+ } & {
187
+ readonly default: "button";
188
+ };
189
+ }>> & Readonly<{}>, {
190
+ hidden: boolean;
191
+ visible: boolean;
192
+ round: boolean;
193
+ dark: boolean;
194
+ text: boolean;
195
+ circle: boolean;
196
+ disabled: boolean;
197
+ type: "text" | "warning" | "success" | "primary" | "info" | "danger";
198
+ link: boolean;
199
+ autofocus: boolean;
200
+ loading: boolean;
201
+ tag: string | import("vue").Component;
202
+ plain: boolean;
203
+ nativeType: "button" | "reset" | "submit";
204
+ loadingIcon: string | import("vue").Component;
205
+ bg: boolean;
206
+ autoInsertSpace: boolean;
207
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
208
+ export default _default;
@@ -1,35 +1,91 @@
1
- import { buttonProps } from 'element-plus';
1
+ import { defineComponent, computed, ref, createVNode, Fragment, mergeProps, isVNode } from 'vue';
2
+ import { omit } from 'lodash-es';
3
+ import { ElPopconfirm, ElButton } from 'element-plus';
4
+ import { tableActionItemProps } from './item.api.js';
5
+ import stdin_default$1 from '../icon/icon.vue.js';
6
+ import { useToken } from '../theme/util/useToken.js';
7
+ import { useLocale } from '../../hooks/useLocale.js';
2
8
 
3
- const tableActionItemProps = {
4
- ...buttonProps,
5
- link: {
6
- type: Boolean,
7
- default: true
8
- },
9
- type: {
10
- type: String,
11
- default: "primary"
12
- },
13
- label: {
14
- type: String
15
- },
16
- popconfirm: {
17
- type: Object
18
- },
19
- onClick: {
20
- type: Function
21
- },
22
- hidden: {
23
- type: Boolean,
24
- default: false
25
- },
26
- visible: {
27
- type: Boolean,
28
- default: true
29
- },
30
- icon: {
31
- type: String
9
+ function _isSlot(s) {
10
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !isVNode(s);
11
+ }
12
+ var stdin_default = defineComponent({
13
+ name: "CoTableActionItem",
14
+ inheritAttrs: false,
15
+ props: tableActionItemProps,
16
+ setup(props) {
17
+ const {
18
+ t
19
+ } = useLocale();
20
+ const {
21
+ token
22
+ } = useToken();
23
+ const buttonProps = computed(() => {
24
+ return omit(props, "icon");
25
+ });
26
+ const loading = ref(false);
27
+ const mergedVisible = computed(() => {
28
+ return props.hidden ? false : props.visible;
29
+ });
30
+ const onConfirm = async (e, confirm) => {
31
+ loading.value = true;
32
+ try {
33
+ await props.popconfirm?.confirm?.(e);
34
+ confirm(e);
35
+ } catch {} finally {
36
+ loading.value = false;
37
+ }
38
+ };
39
+ const onCancel = (e, cancel) => {
40
+ cancel(e);
41
+ };
42
+ return () => {
43
+ if (!mergedVisible.value) return;
44
+ if (props.popconfirm) {
45
+ return createVNode(ElPopconfirm, props.popconfirm, {
46
+ reference: () => createVNode(ElButton, mergeProps(omit(buttonProps.value, "popconfirm"), {
47
+ "style": "margin: 0"
48
+ }), {
49
+ default: () => [props.icon && createVNode(stdin_default$1, {
50
+ "name": props.icon,
51
+ "style": {
52
+ marginInlineEnd: token.value.marginXXS + "px"
53
+ }
54
+ }, null), props.label]
55
+ }),
56
+ actions: ({
57
+ confirm,
58
+ cancel
59
+ }) => {
60
+ let _slot, _slot2;
61
+ return createVNode(Fragment, null, [createVNode(ElButton, {
62
+ "size": "small",
63
+ "onClick": event => onCancel(event, cancel)
64
+ }, _isSlot(_slot = t("co.common.no")) ? _slot : {
65
+ default: () => [_slot]
66
+ }), createVNode(ElButton, {
67
+ "type": "danger",
68
+ "size": "small",
69
+ "loading": loading.value,
70
+ "onClick": event => onConfirm(event, confirm)
71
+ }, _isSlot(_slot2 = t("co.common.yes")) ? _slot2 : {
72
+ default: () => [_slot2]
73
+ })]);
74
+ }
75
+ });
76
+ }
77
+ return createVNode(ElButton, mergeProps(buttonProps.value, {
78
+ "style": "margin: 0"
79
+ }), {
80
+ default: () => [props.icon && createVNode(stdin_default$1, {
81
+ "name": props.icon,
82
+ "style": {
83
+ marginInlineEnd: token.value.marginXXS + "px"
84
+ }
85
+ }, null), props.label]
86
+ });
87
+ };
32
88
  }
33
- };
89
+ });
34
90
 
35
- export { tableActionItemProps };
91
+ export { stdin_default as default };
@@ -0,0 +1,9 @@
1
+ import { type ExtractPropTypes, type PropType } from 'vue';
2
+ import { type TableActionItem } from './item.api';
3
+ export declare const tableActionProps: {
4
+ actions: {
5
+ type: PropType<TableActionItem[] | TableActionItem[][]>;
6
+ default: () => never[];
7
+ };
8
+ };
9
+ export type TableActionProps = ExtractPropTypes<typeof tableActionProps>;
@@ -0,0 +1,8 @@
1
+ const tableActionProps = {
2
+ actions: {
3
+ type: Array,
4
+ default: () => []
5
+ }
6
+ };
7
+
8
+ export { tableActionProps };
@@ -1,7 +1,15 @@
1
- import { type TableActionItem } from './item';
2
- export interface TableActionProps {
3
- actions?: TableActionItem[] | TableActionItem[][];
4
- }
5
- export declare const defaultTableActionProps: {
6
- actions: () => never[];
7
- };
1
+ import { TableActionItem } from './item.api';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ actions: {
4
+ type: import("vue").PropType<TableActionItem[] | TableActionItem[][]>;
5
+ default: () => never[];
6
+ };
7
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
+ actions: {
9
+ type: import("vue").PropType<TableActionItem[] | TableActionItem[][]>;
10
+ default: () => never[];
11
+ };
12
+ }>> & Readonly<{}>, {
13
+ actions: TableActionItem[] | TableActionItem[][];
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -1,5 +1,37 @@
1
- const defaultTableActionProps = {
2
- actions: () => []
3
- };
1
+ import { defineComponent, computed, createVNode, mergeProps } from 'vue';
2
+ import { tableActionProps } from './table-action.api.js';
3
+ import stdin_default$2 from './item.js';
4
+ import stdin_default$1 from './table-action.style.js';
5
+ import { useComponentConfig } from '../config-provider/config-provider.api.js';
4
6
 
5
- export { defaultTableActionProps };
7
+ var stdin_default = defineComponent({
8
+ name: "CoTableAction",
9
+ props: tableActionProps,
10
+ setup(props) {
11
+ const dyadicActions = computed(() => {
12
+ return Array.isArray(props.actions[0]) ? props.actions : [props.actions];
13
+ });
14
+ const {
15
+ prefixCls
16
+ } = useComponentConfig("table-action", props);
17
+ const {
18
+ hashId
19
+ } = stdin_default$1(prefixCls);
20
+ return () => {
21
+ return createVNode("div", {
22
+ "class": [hashId.value, prefixCls.value]
23
+ }, [dyadicActions.value.map((actions, rowIndex) => {
24
+ return createVNode("div", {
25
+ "key": rowIndex,
26
+ "class": `${prefixCls.value}-row`
27
+ }, [actions.map((action, actionIndex) => {
28
+ return createVNode(stdin_default$2, mergeProps({
29
+ "key": actionIndex
30
+ }, action), null);
31
+ })]);
32
+ })]);
33
+ };
34
+ }
35
+ });
36
+
37
+ export { stdin_default as default };
@@ -0,0 +1,4 @@
1
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../theme/theme-context").ThemeManager) => {
2
+ hashId: import("vue").Ref<string, string>;
3
+ };
4
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { getStyleHook } from '../../theme/getStyleHook.js';
1
+ import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
2
2
 
3
- const getTableActionStyle = (token) => {
3
+ var stdin_default = getSimpleStyleHook("CoTableAction", (token) => {
4
4
  const { componentCls } = token;
5
5
  return {
6
6
  [componentCls]: {
@@ -15,9 +15,6 @@ const getTableActionStyle = (token) => {
15
15
  }
16
16
  }
17
17
  };
18
- };
19
- var stdin_default = getStyleHook("TableAction", (token) => {
20
- return [getTableActionStyle(token)];
21
18
  });
22
19
 
23
20
  export { stdin_default as default };
@@ -2,7 +2,7 @@ import { computed, watch } from 'vue';
2
2
  import { useStyleRegister } from './useStyleRegister.js';
3
3
  import { useToken } from './util/useToken.js';
4
4
  import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
5
- import { useConfig } from '../config-provider/config-provider.js';
5
+ import { useConfig } from '../config-provider/config-provider.api.js';
6
6
  import { useMounted } from '../../hooks/useMounted.js';
7
7
  import { isClient } from '../../utils/env.js';
8
8
 
@@ -2,7 +2,7 @@ import { watch } from 'vue';
2
2
  import { parseStyle } from '../cssinjs/parser.js';
3
3
  import { useToken } from './util/useToken.js';
4
4
  import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
5
- import { useConfig } from '../config-provider/config-provider.js';
5
+ import { useConfig } from '../config-provider/config-provider.api.js';
6
6
  import hash from '@emotion/hash';
7
7
  import { normalizeStyle } from './util/normalizeStyle.js';
8
8
 
@@ -2,7 +2,7 @@ import { computed, unref } from 'vue';
2
2
  import { useStyleRegister } from './useStyleRegister.js';
3
3
  import { useToken } from './util/useToken.js';
4
4
  import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
5
- import { useConfig } from '../config-provider/config-provider.js';
5
+ import { useConfig } from '../config-provider/config-provider.api.js';
6
6
 
7
7
  function getSimpleStyleHook(component, styleFn) {
8
8
  return (_prefixCls = "", themeManager) => {
@@ -2,7 +2,7 @@ import { computed, unref } from 'vue';
2
2
  import { useStyleRegister } from './useStyleRegister.js';
3
3
  import { useToken } from './util/useToken.js';
4
4
  import { tokenValueToCssVar } from './util/tokenValueToCssVar.js';
5
- import { useConfig } from '../config-provider/config-provider.js';
5
+ import { useConfig } from '../config-provider/config-provider.api.js';
6
6
 
7
7
  function getStyleHook(component, styleFn, getDefaultToken) {
8
8
  return (_prefixCls = "", themeManager) => {