cosey 0.1.1 → 0.1.4

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 (321) hide show
  1. package/components/audio-card/audio-card.vue.js +1 -1
  2. package/components/audio-card/style/index.d.ts +1 -1
  3. package/components/audio-viewer/style/index.d.ts +1 -1
  4. package/components/close/close.vue.js +1 -1
  5. package/components/close/style/index.d.ts +1 -1
  6. package/components/col/style/index.d.ts +1 -1
  7. package/components/col/style/index.js +1 -1
  8. package/components/components.d.ts +98 -44
  9. package/components/config-provider/config-provider.js +1 -3
  10. package/components/config-provider/config-provider.vue.d.ts +2 -7
  11. package/components/config-provider/config-provider.vue.js +8 -4
  12. package/components/config-provider/index.d.ts +1 -1
  13. package/components/config-provider/override-element-plus.d.ts +3 -2
  14. package/components/config-provider/override-element-plus.js +2 -2
  15. package/components/container/container.d.ts +0 -1
  16. package/components/container/container.vue.js +0 -4
  17. package/components/container/style/index.d.ts +1 -1
  18. package/components/context-menu/content.vue.js +1 -1
  19. package/components/context-menu/context-menu.vue.js +2 -2
  20. package/components/context-menu/style/index.d.ts +1 -1
  21. package/components/copy/copy.d.ts +0 -2
  22. package/components/copy/copy.vue.d.ts +1 -7
  23. package/components/copy/copy.vue.js +1 -2
  24. package/components/copy/index.d.ts +3 -19
  25. package/components/copy/style/index.d.ts +1 -1
  26. package/components/cssinjs/parser.js +8 -25
  27. package/components/dnd-sort/dnd-sort-item.vue.js +3 -4
  28. package/components/dnd-sort/dnd-sort.vue.js +1 -2
  29. package/components/dnd-sort/index.d.ts +1 -1
  30. package/components/dnd-sort/style/index.d.ts +1 -1
  31. package/components/dnd-sort/style/index.js +1 -0
  32. package/components/editor/components/button-group.vue.d.ts +2 -7
  33. package/components/editor/components/button.vue.d.ts +2 -7
  34. package/components/editor/components/color-picker/color-picker.style.d.ts +1 -1
  35. package/components/editor/components/color-picker/color-picker.vue.d.ts +2 -43
  36. package/components/editor/components/color-picker/color-picker.vue.js +14 -11
  37. package/components/editor/components/list/list.style.d.ts +1 -1
  38. package/components/editor/components/picker/picker.style.d.ts +1 -1
  39. package/components/editor/components/picker/picker.vue.d.ts +2 -15
  40. package/components/editor/components/resize/resize.js +4 -4
  41. package/components/editor/components/resize/resize.style.d.ts +1 -1
  42. package/components/editor/components/resize/resize.style.js +9 -32
  43. package/components/editor/components/resize/resize.vue.js +21 -14
  44. package/components/editor/components/select-button.vue.d.ts +2 -9
  45. package/components/editor/components/select-button.vue.js +1 -1
  46. package/components/editor/components/split-button.vue.d.ts +2 -19
  47. package/components/editor/components/split-button.vue.js +1 -1
  48. package/components/editor/components/table-toolbar/table-toolbar.style.d.ts +1 -1
  49. package/components/editor/components/table-toolbar/table-toolbar.vue.js +9 -9
  50. package/components/editor/components/toolbar/formats/align.vue.js +4 -4
  51. package/components/editor/components/toolbar/formats/blockquote.vue.js +1 -1
  52. package/components/editor/components/toolbar/formats/bold.vue.js +1 -1
  53. package/components/editor/components/toolbar/formats/clean.vue.js +1 -1
  54. package/components/editor/components/toolbar/formats/code-block.vue.js +1 -1
  55. package/components/editor/components/toolbar/formats/code.vue.js +1 -1
  56. package/components/editor/components/toolbar/formats/formula.vue.js +4 -3
  57. package/components/editor/components/toolbar/formats/image.vue.js +1 -1
  58. package/components/editor/components/toolbar/formats/indent.vue.js +2 -2
  59. package/components/editor/components/toolbar/formats/italic.vue.js +1 -1
  60. package/components/editor/components/toolbar/formats/link.vue.js +15 -13
  61. package/components/editor/components/toolbar/formats/list.vue.js +3 -3
  62. package/components/editor/components/toolbar/formats/script.vue.js +2 -2
  63. package/components/editor/components/toolbar/formats/size-delta.vue.js +2 -2
  64. package/components/editor/components/toolbar/formats/strike.vue.js +1 -1
  65. package/components/editor/components/toolbar/formats/table.style.d.ts +1 -1
  66. package/components/editor/components/toolbar/formats/table.vue.js +1 -1
  67. package/components/editor/components/toolbar/formats/underline.vue.js +1 -1
  68. package/components/editor/components/toolbar/formats/video.vue.js +1 -1
  69. package/components/editor/components/toolbar/toolbar.d.ts +1 -2
  70. package/components/editor/components/toolbar/toolbar.js +17 -21
  71. package/components/editor/components/toolbar/toolbarContext.js +1 -3
  72. package/components/editor/editor.d.ts +0 -2
  73. package/components/editor/editor.vue.js +1 -11
  74. package/components/editor/formats/image.d.ts +13 -0
  75. package/components/editor/formats/image.js +46 -0
  76. package/components/editor/formats/indent.d.ts +2 -0
  77. package/components/editor/formats/indent.js +12 -7
  78. package/components/editor/formats/link.js +1 -5
  79. package/components/editor/formats/list.d.ts +0 -4
  80. package/components/editor/formats/list.js +10 -5
  81. package/components/editor/formats/video.js +6 -9
  82. package/components/editor/modules/custom-list.js +1 -6
  83. package/components/editor/modules/image-uploader/formats/image-loading.style.d.ts +1 -1
  84. package/components/editor/modules/image-uploader/formats/image-loading.style.js +4 -4
  85. package/components/editor/modules/image-uploader/image-uploader.js +1 -3
  86. package/components/editor/quill.js +7 -4
  87. package/components/editor/quillContext.js +1 -3
  88. package/components/editor/style/hljs.d.ts +1 -1
  89. package/components/editor/style/index.d.ts +1 -1
  90. package/components/editor/style/index.js +1 -5
  91. package/components/field/components/checkbox-group/panel.vue.d.ts +2 -20
  92. package/components/field/components/checkbox-group/panel.vue.js +2 -2
  93. package/components/field/components/tree-select/tree-select.d.ts +1 -2
  94. package/components/field/components/tree-select/tree-select.js +69 -0
  95. package/components/file-card/file-card.vue.js +1 -1
  96. package/components/file-card/style/index.d.ts +1 -1
  97. package/components/form/form-item.vue.js +1 -1
  98. package/components/form/style/index.d.ts +1 -1
  99. package/components/form/useFormItemWidth.js +1 -1
  100. package/components/form/useFormTemplate.js +2 -10
  101. package/components/form-dialog/form-dialog.vue.d.ts +0 -1
  102. package/components/form-dialog/form-dialog.vue.js +1 -1
  103. package/components/form-dialog/index.d.ts +0 -3
  104. package/components/form-group/form-group.vue.js +1 -1
  105. package/components/form-list/form-list.js +1 -6
  106. package/components/form-list/form-list.vue.js +2 -2
  107. package/components/form-list/style/index.d.ts +1 -1
  108. package/components/form-query/form-query.vue.js +5 -5
  109. package/components/form-query/style/index.d.ts +1 -1
  110. package/components/highlight/highlight.d.ts +1 -1
  111. package/components/highlight/highlight.vue.js +11 -4
  112. package/components/highlight/style/index.d.ts +1 -1
  113. package/components/highlight/style/index.js +15 -5
  114. package/components/horizontal-tree/horizontal-tree.vue.js +16 -12
  115. package/components/horizontal-tree/style/index.d.ts +1 -1
  116. package/components/icon/style/index.d.ts +1 -1
  117. package/components/iconify-icon/iconify-icon.d.ts +3 -0
  118. package/components/iconify-icon/iconify-icon.js +9 -0
  119. package/components/iconify-icon/iconify-icon.vue.js +2 -5
  120. package/components/iconify-icon/index.js +1 -0
  121. package/components/image-card/style/index.d.ts +1 -1
  122. package/components/index.js +4 -2
  123. package/components/long-text/style/index.d.ts +1 -1
  124. package/components/mask/style/index.d.ts +1 -1
  125. package/components/media-card-group/media-card-group.vue.js +4 -3
  126. package/components/media-card-group/style/index.d.ts +1 -1
  127. package/components/panel/style/index.d.ts +1 -1
  128. package/components/row/style/index.d.ts +1 -1
  129. package/components/scroll-view/scroll-view.vue.js +1 -2
  130. package/components/scroll-view/style/index.d.ts +1 -1
  131. package/components/snug-menu/snug-menu.vue.js +1 -2
  132. package/components/snug-menu/style/index.d.ts +1 -1
  133. package/components/style/animation.d.ts +5 -0
  134. package/components/style/animation.js +33 -0
  135. package/components/style/index.d.ts +1 -1
  136. package/components/style/index.js +2 -2
  137. package/components/style/mixins.d.ts +2 -0
  138. package/components/style/mixins.js +10 -1
  139. package/components/table/index.d.ts +0 -8
  140. package/components/table/style/index.d.ts +1 -1
  141. package/components/table/style/index.js +2 -2
  142. package/components/table/table-column/renderer.js +22 -18
  143. package/components/table/table-column/style/index.d.ts +1 -1
  144. package/components/table/table-column/table-column.vue.d.ts +3 -3
  145. package/components/table/table-column-editor/item.vue.js +5 -8
  146. package/components/table/table-column-editor/style/index.d.ts +1 -1
  147. package/components/table/table-column-editor/style/index.js +1 -0
  148. package/components/table/table-column-editor/table-column-editor.vue.d.ts +2 -246
  149. package/components/table/table-column-editor/table-column-editor.vue.js +9 -9
  150. package/components/table/table-export/style/index.d.ts +1 -1
  151. package/components/table/table-export/table-export.vue.js +2 -2
  152. package/components/table/table-query/table-query.d.ts +0 -4
  153. package/components/table/table-query/table-query.js +0 -4
  154. package/components/table/table-query/table-query.vue.d.ts +0 -9
  155. package/components/table/table-query/table-query.vue.js +14 -12
  156. package/components/table/table.js +1 -3
  157. package/components/table/table.vue.js +22 -24
  158. package/components/table/useTable.js +1 -4
  159. package/components/table/utils.js +1 -3
  160. package/components/table-action/item.vue.js +5 -5
  161. package/components/table-action/style/index.d.ts +1 -1
  162. package/components/table-action/table-action.vue.js +4 -3
  163. package/components/theme/StyleContext.js +1 -3
  164. package/components/theme/createCacheToken.js +1 -4
  165. package/components/theme/getGlobalStyleHook.d.ts +2 -3
  166. package/components/theme/getGlobalStyleHook.js +5 -13
  167. package/components/theme/getOverrideStyleHook.d.ts +8 -0
  168. package/components/theme/getOverrideStyleHook.js +39 -0
  169. package/components/theme/getSimpleStyleHook.d.ts +2 -2
  170. package/components/theme/getSimpleStyleHook.js +4 -11
  171. package/components/theme/getStyleHook.d.ts +2 -2
  172. package/components/theme/getStyleHook.js +4 -11
  173. package/components/theme/index.d.ts +2 -1
  174. package/components/theme/index.js +1 -0
  175. package/components/theme/interface/index.d.ts +1 -1
  176. package/components/theme/theme-context.d.ts +11 -2
  177. package/components/theme/theme-context.js +36 -6
  178. package/components/theme/themes/shared/genColorMapToken.js +1 -4
  179. package/components/theme/useStyleRegister.d.ts +1 -7
  180. package/components/theme/useStyleRegister.js +3 -6
  181. package/components/theme/util/alias.js +4 -16
  182. package/components/theme/util/getAlphaColor.js +1 -6
  183. package/components/theme/util/normalizeStyle.js +1 -1
  184. package/components/theme/util/statistic.js +4 -1
  185. package/components/theme/util/useToken.d.ts +4 -4
  186. package/components/theme/util/useToken.js +7 -10
  187. package/components/toggle/toggle.vue.js +1 -1
  188. package/components/transition/style/index.d.ts +1 -1
  189. package/components/transition/transition.vue.js +1 -2
  190. package/components/transition-group/index.d.ts +3 -3
  191. package/components/transition-group/style/index.d.ts +1 -1
  192. package/components/transition-group/transition-group.vue.d.ts +1 -1
  193. package/components/upload/index.d.ts +0 -3
  194. package/components/upload/style/index.d.ts +1 -1
  195. package/components/upload/upload-item.vue.js +8 -8
  196. package/components/upload/upload.d.ts +0 -2
  197. package/components/upload/upload.js +0 -1
  198. package/components/upload/upload.vue.d.ts +0 -1
  199. package/components/upload/upload.vue.js +1 -5
  200. package/components/video-card/style/index.d.ts +1 -1
  201. package/components/video-card/video-card.vue.js +1 -1
  202. package/components/video-viewer/style/index.d.ts +1 -1
  203. package/config/http.d.ts +1 -1
  204. package/config/http.js +1 -1
  205. package/config/index.d.ts +23 -22
  206. package/config/index.js +2 -7
  207. package/config/layout.d.ts +36 -0
  208. package/config/layout.js +37 -1
  209. package/config/nprogress.style.d.ts +2 -0
  210. package/config/nprogress.style.js +51 -0
  211. package/config/root-config-provider.vue.d.ts +2 -20
  212. package/config/root-config-provider.vue.js +2 -0
  213. package/hooks/useColorScheme.js +5 -9
  214. package/hooks/useEcharts.js +2 -4
  215. package/hooks/useFetch.d.ts +1 -1
  216. package/hooks/useFetch.js +1 -7
  217. package/hooks/useFullPage.js +7 -9
  218. package/hooks/useLocale.js +1 -3
  219. package/hooks/useLockscreenObserver.js +1 -1
  220. package/hooks/usePersist.js +1 -3
  221. package/hooks/useTreeCheck.js +13 -26
  222. package/hooks/useUpsert.d.ts +15 -16
  223. package/hooks/useUpsert.js +3 -3
  224. package/index.d.ts +1 -0
  225. package/index.js +5 -4
  226. package/layout/index.js +2 -2
  227. package/layout/layout-aside/layout-aside.vue.js +2 -1
  228. package/layout/layout-aside/style/index.d.ts +1 -1
  229. package/layout/layout-auth/style/index.d.ts +1 -1
  230. package/layout/layout-base/layout-base.vue.js +9 -9
  231. package/layout/layout-base/style/index.d.ts +1 -1
  232. package/layout/layout-brand/style/index.d.ts +1 -1
  233. package/layout/layout-change-password/layout-change-password.vue.js +8 -8
  234. package/layout/layout-change-password/style/index.d.ts +1 -1
  235. package/layout/layout-change-password/style/index.js +1 -1
  236. package/layout/layout-color-scheme/layout-color-scheme.vue.js +8 -14
  237. package/layout/layout-color-scheme/style/index.d.ts +2 -5
  238. package/layout/layout-color-scheme/style/index.js +26 -44
  239. package/layout/layout-content/layout-content.vue.d.ts +2 -13
  240. package/layout/layout-content/style/index.d.ts +1 -1
  241. package/layout/layout-exception/style/index.d.ts +1 -1
  242. package/layout/layout-forbidden/layout-forbidden.vue.js +2 -2
  243. package/layout/layout-header/layout-header.vue.d.ts +2 -14
  244. package/layout/layout-header/style/index.d.ts +1 -1
  245. package/layout/layout-iframe/style/index.d.ts +1 -1
  246. package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +2 -2
  247. package/layout/layout-login/layout-login.vue.js +5 -5
  248. package/layout/layout-login/style/index.d.ts +1 -1
  249. package/layout/layout-login/style/index.js +1 -1
  250. package/layout/layout-main/style/index.d.ts +1 -1
  251. package/layout/layout-mask/style/index.d.ts +1 -1
  252. package/layout/layout-mask/style/index.js +1 -1
  253. package/layout/layout-menu/layout-menu.vue.js +5 -0
  254. package/layout/layout-menu/style/index.d.ts +1 -1
  255. package/layout/layout-not-found/layout-not-found.vue.js +2 -2
  256. package/layout/layout-search/layout-search.vue.js +37 -34
  257. package/layout/layout-search/style/index.d.ts +1 -1
  258. package/layout/layout-sidebar/layout-sidebar.vue.d.ts +2 -15
  259. package/layout/layout-sidebar/style/index.d.ts +1 -1
  260. package/layout/layout-sidebar/style/index.js +1 -1
  261. package/layout/layout-snug-aside/style/index.d.ts +1 -1
  262. package/layout/layout-switch-effect/layout-switch-effect.vue.d.ts +2 -7
  263. package/layout/layout-switch-effect/style/index.d.ts +1 -1
  264. package/layout/layout-tabbar/layout-tabbar.vue.js +8 -3
  265. package/layout/layout-tabbar/reload.vue.js +1 -1
  266. package/layout/layout-tabbar/style/index.d.ts +1 -1
  267. package/layout/layout-tabbar/style/index.js +6 -2
  268. package/layout/layout-toggle/layout-toggle.vue.js +1 -1
  269. package/layout/layout-top-snug-menu/layout-top-snug-menu.vue.js +4 -3
  270. package/layout/layout-topbar/layout-topbar.vue.d.ts +2 -1217
  271. package/layout/layout-topbar/style/index.d.ts +1 -1
  272. package/layout/layout-user-menu/index.d.ts +1 -0
  273. package/layout/layout-user-menu/index.js +1 -0
  274. package/layout/{layout-user/layout-user.vue.js → layout-user-menu/layout-user-menu.vue.js} +18 -13
  275. package/layout/{layout-user → layout-user-menu}/style/index.d.ts +1 -1
  276. package/layout/{layout-user → layout-user-menu}/style/index.js +9 -5
  277. package/layout/layout.d.ts +1 -1
  278. package/layout/layout.js +1 -1
  279. package/layout/merged/index.d.ts +1 -1
  280. package/layout/merged/index.js +1 -1
  281. package/layout/merged/{layout-user.js → layout-user-menu.js} +1 -1
  282. package/layout/utils.js +1 -4
  283. package/package.json +16 -6
  284. package/request/useRequest.js +1 -1
  285. package/router/guard/auth.js +2 -5
  286. package/router/guard/index.js +2 -2
  287. package/router/guard/pageTitle.d.ts +2 -0
  288. package/router/guard/pageTitle.js +11 -0
  289. package/router/guard/progress.js +11 -1
  290. package/router/index.d.ts +22 -0
  291. package/router/index.js +1 -1
  292. package/router/routes/static/auth.js +5 -6
  293. package/router/routes/static/exception.js +3 -3
  294. package/router/utils.js +11 -3
  295. package/store/layout.d.ts +4 -10
  296. package/store/layout.js +19 -31
  297. package/store/user.d.ts +4 -4
  298. package/store/user.js +2 -1
  299. package/utils/array.js +3 -0
  300. package/utils/dynamicCSS.d.ts +3 -2
  301. package/utils/dynamicCSS.js +12 -1
  302. package/utils/excel/index.js +1 -3
  303. package/utils/excel/utils.js +1 -5
  304. package/utils/file.js +1 -3
  305. package/utils/index.js +1 -1
  306. package/utils/object.js +1 -3
  307. package/utils/tree.js +2 -11
  308. package/utils/vue.js +1 -1
  309. package/components/global.d.js +0 -1
  310. package/components/style/motion/index.d.ts +0 -1
  311. package/components/style/motion/index.js +0 -1
  312. package/components/style/motion/loading.d.ts +0 -3
  313. package/components/style/motion/loading.js +0 -23
  314. package/layout/layout-user/index.d.ts +0 -1
  315. package/layout/layout-user/index.js +0 -1
  316. package/router/guard/popup.d.ts +0 -2
  317. package/router/guard/popup.js +0 -6
  318. package/types/vue-router.d.js +0 -1
  319. package/types/vue.d.js +0 -1
  320. /package/layout/{layout-user/layout-user.vue.d.ts → layout-user-menu/layout-user-menu.vue.d.ts} +0 -0
  321. /package/layout/merged/{layout-user.d.ts → layout-user-menu.d.ts} +0 -0
@@ -85,7 +85,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
85
85
  title: _ctx.title || _ctx.src,
86
86
  onClick: openViewer
87
87
  }), [createVNode(stdin_default$2, {
88
- name: "mdi:volume-high"
88
+ name: "co:volume-up"
89
89
  }), createElementVNode("div", {
90
90
  class: normalizeClass([`${unref(prefixCls)}-filename`])
91
91
  }, toDisplayString(_ctx.name), 3
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface AudioCardToken extends FullToken<'AudioCard'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface AudioViewerToken extends FullToken<'AudioViewer'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -20,7 +20,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
20
20
  return openBlock(), createElementBlock("span", {
21
21
  class: normalizeClass([unref(hashId), unref(prefixCls)])
22
22
  }, [createVNode(stdin_default$2, {
23
- name: "mdi:close"
23
+ name: "co:close-large"
24
24
  })], 2
25
25
  /* CLASS */);
26
26
  };
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface CloseToken extends FullToken<'Close'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -6,7 +6,7 @@ export interface ComponentToken {
6
6
  export interface ColToken extends FullToken<'Col'> {
7
7
  }
8
8
  export declare const getColSizeStyle: (token: ColToken, size: RowSize | null) => CSSObject;
9
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
9
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
10
10
  hashId: import("vue").Ref<string, string>;
11
11
  };
12
12
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { getStyleHook } from '../../theme/getStyleHook.js';
2
- import { rowSizes, rowColumns } from '../../row/row.js';
2
+ import { rowColumns, rowSizes } from '../../row/row.js';
3
3
 
4
4
  const getColSizeStyle = (token, size) => {
5
5
  const { componentCls } = token;
@@ -1,44 +1,98 @@
1
- export { AudioCard } from './audio-card';
2
- export { AudioViewer } from './audio-viewer';
3
- export { Close } from './close';
4
- export { Col } from './col';
5
- export { ConfigProvider } from './config-provider';
6
- export { Container } from './container';
7
- export { ContextMenu, ContextMenuItem, ContextSubMenu } from './context-menu';
8
- export { Copy } from './copy';
9
- export { DndSort, DndSortItem } from './dnd-sort';
10
- export { Editor } from './editor';
11
- export { Field } from './field';
12
- export { FileCard } from './file-card';
13
- export { Form, FormItem } from './form';
14
- export { FormDialog } from './form-dialog';
15
- export { FormDrawer } from './form-drawer';
16
- export { FormGroup } from './form-group';
17
- export { FormList } from './form-list';
18
- export { FormQuery } from './form-query';
19
- export { Highlight } from './highlight';
20
- export { HorizontalTree } from './horizontal-tree';
21
- export { Icon } from './icon';
22
- export { IconifyIcon } from './iconify-icon';
23
- export { ImageCard } from './image-card';
24
- export { LongText } from './long-text';
25
- export { Mask } from './mask';
26
- export { MediaCard } from './media-card';
27
- export { MediaCardGroup } from './media-card-group';
28
- export { MediaViewer } from './media-viewer';
29
- export { NumberFormat } from './number-format';
30
- export { OnlyChild } from './only-child';
31
- export { OptionalWrapper } from './optional-wrapper';
32
- export { Panel } from './panel';
33
- export { Row } from './row';
34
- export { ScrollView } from './scroll-view';
35
- export { SnugMenu, SnugMenuItem } from './snug-menu';
36
- export { SvgIcon } from './svg-icon';
37
- export { Table } from './table';
38
- export { TableAction } from './table-action';
39
- export { Toggle } from './toggle';
40
- export { Transition } from './transition';
41
- export { TransitionGroup } from './transition-group';
42
- export { Upload } from './upload';
43
- export { VideoCard } from './video-card';
44
- export { VideoViewer } from './video-viewer';
1
+ import { AudioCard } from './audio-card';
2
+ import { AudioViewer } from './audio-viewer';
3
+ import { Close } from './close';
4
+ import { Col } from './col';
5
+ import { ConfigProvider } from './config-provider';
6
+ import { Container } from './container';
7
+ import { ContextMenu, ContextMenuItem, ContextSubMenu } from './context-menu';
8
+ import { Copy } from './copy';
9
+ import { DndSort, DndSortItem } from './dnd-sort';
10
+ import { Editor } from './editor';
11
+ import { Field } from './field';
12
+ import { FileCard } from './file-card';
13
+ import { Form, FormItem } from './form';
14
+ import { FormDialog } from './form-dialog';
15
+ import { FormDrawer } from './form-drawer';
16
+ import { FormGroup } from './form-group';
17
+ import { FormList } from './form-list';
18
+ import { FormQuery } from './form-query';
19
+ import { Highlight } from './highlight';
20
+ import { HorizontalTree } from './horizontal-tree';
21
+ import { Icon } from './icon';
22
+ import { IconifyIcon } from './iconify-icon';
23
+ import { ImageCard } from './image-card';
24
+ import { LongText } from './long-text';
25
+ import { Mask } from './mask';
26
+ import { MediaCard } from './media-card';
27
+ import { MediaCardGroup } from './media-card-group';
28
+ import { MediaViewer } from './media-viewer';
29
+ import { NumberFormat } from './number-format';
30
+ import { OnlyChild } from './only-child';
31
+ import { OptionalWrapper } from './optional-wrapper';
32
+ import { Panel } from './panel';
33
+ import { Row } from './row';
34
+ import { ScrollView } from './scroll-view';
35
+ import { SnugMenu, SnugMenuItem } from './snug-menu';
36
+ import { SvgIcon } from './svg-icon';
37
+ import { Table } from './table';
38
+ import { TableAction } from './table-action';
39
+ import { Toggle } from './toggle';
40
+ import { Transition } from './transition';
41
+ import { TransitionGroup } from './transition-group';
42
+ import { Upload } from './upload';
43
+ import { VideoCard } from './video-card';
44
+ import { VideoViewer } from './video-viewer';
45
+ declare module 'vue' {
46
+ interface GlobalComponents {
47
+ CoAudioCard: typeof AudioCard;
48
+ CoAudioViewer: typeof AudioViewer;
49
+ CoClose: typeof Close;
50
+ CoCol: typeof Col;
51
+ CoConfigProvider: typeof ConfigProvider;
52
+ CoContainer: typeof Container;
53
+ CoContextMenu: typeof ContextMenu;
54
+ CoContextMenuItem: typeof ContextMenuItem;
55
+ CoContextSubMenu: typeof ContextSubMenu;
56
+ CoCopy: typeof Copy;
57
+ CoDndSort: typeof DndSort;
58
+ CoDndSortItem: typeof DndSortItem;
59
+ CoEditor: typeof Editor;
60
+ CoField: typeof Field;
61
+ CoFileCard: typeof FileCard;
62
+ CoForm: typeof Form;
63
+ CoFormDialog: typeof FormDialog;
64
+ CoFormDrawer: typeof FormDrawer;
65
+ CoFormGroup: typeof FormGroup;
66
+ CoFormItem: typeof FormItem;
67
+ CoFormList: typeof FormList;
68
+ CoFormQuery: typeof FormQuery;
69
+ CoHighlight: typeof Highlight;
70
+ CoHorizontalTree: typeof HorizontalTree;
71
+ CoIcon: typeof Icon;
72
+ CoIconifyIcon: typeof IconifyIcon;
73
+ CoImageCard: typeof ImageCard;
74
+ CoLongText: typeof LongText;
75
+ CoMask: typeof Mask;
76
+ CoMediaCard: typeof MediaCard;
77
+ CoMediaCardGroup: typeof MediaCardGroup;
78
+ CoMediaViewer: typeof MediaViewer;
79
+ CoNumberFormat: typeof NumberFormat;
80
+ CoOnlyChild: typeof OnlyChild;
81
+ CoOptionalWrapper: typeof OptionalWrapper;
82
+ CoPanel: typeof Panel;
83
+ CoRow: typeof Row;
84
+ CoScrollView: typeof ScrollView;
85
+ CoSnugMenu: typeof SnugMenu;
86
+ CoSnugMenuItem: typeof SnugMenuItem;
87
+ CoSvgIcon: typeof SvgIcon;
88
+ CoTable: typeof Table;
89
+ CoTableAction: typeof TableAction;
90
+ CoToggle: typeof Toggle;
91
+ CoTransition: typeof Transition;
92
+ CoTransitionGroup: typeof TransitionGroup;
93
+ CoUpload: typeof Upload;
94
+ CoVideoCard: typeof VideoCard;
95
+ CoVideoViewer: typeof VideoViewer;
96
+ }
97
+ }
98
+ export { AudioCard, AudioViewer, Close, Col, ConfigProvider, Container, ContextMenu, ContextMenuItem, ContextSubMenu, Copy, DndSort, DndSortItem, Editor, Field, FileCard, Form, FormItem, FormDialog, FormDrawer, FormGroup, FormList, FormQuery, Highlight, HorizontalTree, Icon, IconifyIcon, ImageCard, LongText, Mask, MediaCard, MediaCardGroup, MediaViewer, NumberFormat, OnlyChild, OptionalWrapper, Panel, Row, ScrollView, SnugMenu, SnugMenuItem, SvgIcon, Table, TableAction, Toggle, Transition, TransitionGroup, Upload, VideoCard, VideoViewer, };
@@ -1,8 +1,6 @@
1
1
  import { computed, inject, provide } from 'vue';
2
2
 
3
- const configProviderKey = Symbol(
4
- "configProvider"
5
- );
3
+ const configProviderKey = Symbol("configProvider");
6
4
  const defaultPrefixCls = "co";
7
5
  const defaultConfigProvider = {
8
6
  getPrefixCls: (suffixCls, customizePrefixCls) => {
@@ -1,13 +1,8 @@
1
1
  import { type ConfigProviderProps } from './config-provider';
2
- declare const hashId: import("vue").Ref<string, string>;
3
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
4
2
  declare var __VLS_1: {};
5
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
3
+ type __VLS_Slots = {} & {
6
4
  default?: (props: typeof __VLS_1) => any;
7
- }>;
8
- declare const __VLS_self: import("vue").DefineComponent<ConfigProviderProps, {
9
- hashId: typeof hashId;
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ };
11
6
  declare const __VLS_component: import("vue").DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
7
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
13
8
  export default _default;
@@ -1,7 +1,7 @@
1
- import { defineComponent, computed, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
1
+ import { defineComponent, computed, onUnmounted, onMounted, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
2
2
  import useMergeTheme from './useMergeTheme.js';
3
3
  import { useConfig, useConfigProvide } from './config-provider.js';
4
- import { useThemeProvide } from '../theme/theme-context.js';
4
+ import { ThemeManager, useThemeProvide } from '../theme/theme-context.js';
5
5
  import stdin_default$1 from './override-element-plus.js';
6
6
 
7
7
  var stdin_default = /* @__PURE__ */defineComponent({
@@ -38,10 +38,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
38
38
  prefixCls: mergedPrefixCls
39
39
  };
40
40
  useConfigProvide(configProvider);
41
- useThemeProvide(mergedTheme);
41
+ const themeManager = new ThemeManager(mergedTheme);
42
+ onUnmounted(() => {
43
+ themeManager.destroy();
44
+ });
45
+ useThemeProvide(themeManager);
42
46
  const {
43
47
  hashId
44
- } = stdin_default$1("", mergedTheme);
48
+ } = stdin_default$1(themeManager);
45
49
  onMounted(() => {
46
50
  if (!parentContext.theme) {
47
51
  document.documentElement.classList.add(hashId.value);
@@ -13,7 +13,7 @@ declare const _ConfigProvider: {
13
13
  __isSuspense?: never;
14
14
  } & import("vue").ComponentOptionsBase<Readonly<import("./config-provider").ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
15
15
  $slots: {
16
- default?: ((props: {}) => any) | undefined;
16
+ default?: (props: {}) => any;
17
17
  };
18
18
  }) & import("vue").Plugin;
19
19
  export { _ConfigProvider as ConfigProvider };
@@ -1,4 +1,5 @@
1
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("..").ThemeConfig | undefined>) => {
2
- hashId: import("vue").Ref<string, string>;
1
+ declare const _default: (_themeManager?: import("../theme/theme-context").ThemeManager) => {
2
+ readonly token: import("vue").ComputedRef<import("..").GlobalToken>;
3
+ readonly hashId: import("vue").Ref<string, string>;
3
4
  };
4
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { TinyColor } from '@ctrl/tinycolor';
2
2
  import { capitalize } from 'lodash-es';
3
- import { getSimpleStyleHook } from '../theme/getSimpleStyleHook.js';
3
+ import { getOverrideStyleHook } from '../theme/getOverrideStyleHook.js';
4
4
 
5
5
  function generateColorPalettes(type, token, alias) {
6
6
  const capType = capitalize(type);
@@ -22,7 +22,7 @@ function generateColorPalettes(type, token, alias) {
22
22
  function getRGBVar(color) {
23
23
  return `${color.r},${color.g},${color.b}`;
24
24
  }
25
- var stdin_default = getSimpleStyleHook("OverrideElementPlus", (token) => {
25
+ var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
26
26
  const { hashId } = token;
27
27
  return {
28
28
  [`.${hashId}`]: {
@@ -1,6 +1,5 @@
1
1
  import type { InjectionKey } from 'vue';
2
2
  export interface ContainerProps {
3
- title?: string;
4
3
  fullPage?: boolean;
5
4
  }
6
5
  export interface ContainerSlots {
@@ -9,10 +9,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
9
9
  },
10
10
  __name: "container",
11
11
  props: {
12
- title: {
13
- type: String,
14
- required: false
15
- },
16
12
  fullPage: {
17
13
  type: Boolean,
18
14
  required: false
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface ContainerToken extends FullToken<'Container'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -56,7 +56,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
56
56
  class: normalizeClass(`${unref(prefixCls)}-arrow`)
57
57
  }, [_ctx.arrow ? (openBlock(), createBlock(stdin_default$1, {
58
58
  key: 0,
59
- name: "mdi:chevron-right",
59
+ name: "co:chevron-right",
60
60
  class: normalizeClass(`${unref(prefixCls)}-arrow-icon`),
61
61
  size: "lg"
62
62
  }, null, 8, ["class"])) : createCommentVNode("v-if", true)], 2
@@ -27,7 +27,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
27
27
  emit: __emit
28
28
  }) {
29
29
  const props = __props;
30
- useSlots();
30
+ const slots = useSlots();
31
31
  const emit = __emit;
32
32
  const {
33
33
  prefixCls
@@ -122,7 +122,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
122
122
  close
123
123
  });
124
124
  return (_ctx, _cache) => {
125
- return openBlock(), createElementBlock(Fragment, null, [_ctx.$slots.reference ? (openBlock(), createBlock(unref(_OnlyChild), {
125
+ return openBlock(), createElementBlock(Fragment, null, [slots.reference ? (openBlock(), createBlock(unref(_OnlyChild), {
126
126
  key: 0,
127
127
  onContextmenu: onContextMenu
128
128
  }, {
@@ -5,7 +5,7 @@ export interface ComponentToken {
5
5
  export interface ContextMenuToken extends FullToken<'ContextMenu'> {
6
6
  }
7
7
  export declare const getContextMenuContentStyle: GenerateStyle<ContextMenuToken, CSSObject>;
8
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
8
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
9
9
  hashId: import("vue").Ref<string, string>;
10
10
  };
11
11
  export default _default;
@@ -6,8 +6,6 @@ export interface CopySlots {
6
6
  default?: (props: Record<string, never>) => any;
7
7
  }
8
8
  export interface CopyEmits {
9
- (e: 'click'): void;
10
9
  }
11
10
  export interface CopyExpose {
12
- method: () => void;
13
11
  }
@@ -1,12 +1,6 @@
1
1
  import { type CopyProps, type CopySlots } from './copy';
2
2
  type __VLS_Slots = CopySlots;
3
- declare const __VLS_component: import("vue").DefineComponent<CopyProps, {
4
- method: () => void;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
- click: () => any;
7
- }, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{
8
- onClick?: (() => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const __VLS_component: import("vue").DefineComponent<CopyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CopyProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
4
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
11
5
  export default _default;
12
6
  type __VLS_WithSlots<T, S> = T & {
@@ -20,7 +20,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
20
20
  required: false
21
21
  }
22
22
  },
23
- emits: ["click"],
24
23
  setup(__props, {
25
24
  expose: __expose
26
25
  }) {
@@ -48,7 +47,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
48
47
  onClick: _cache[0] || (_cache[0] = $event => unref(copy)(_ctx.text || ""))
49
48
  }, {
50
49
  default: withCtx(() => [createVNode(unref(stdin_default$2), {
51
- name: unref(copied) ? "mdi:check" : "mdi:content-copy",
50
+ name: unref(copied) ? "co:checkmark" : "co:copy",
52
51
  class: normalizeClass(`${unref(prefixCls)}-icon`)
53
52
  }, null, 8, ["name", "class"])]),
54
53
  _: 1
@@ -1,33 +1,17 @@
1
1
  export * from './copy';
2
2
  declare const _Copy: {
3
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{
4
- onClick?: (() => any) | undefined;
5
- }>, {
6
- method: () => void;
7
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- click: () => any;
9
- }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
4
  P: {};
11
5
  B: {};
12
6
  D: {};
13
7
  C: {};
14
8
  M: {};
15
9
  Defaults: {};
16
- }, Readonly<import("./copy").CopyProps> & Readonly<{
17
- onClick?: (() => any) | undefined;
18
- }>, {
19
- method: () => void;
20
- }, {}, {}, {}, {}>;
10
+ }, Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
21
11
  __isFragment?: never;
22
12
  __isTeleport?: never;
23
13
  __isSuspense?: never;
24
- } & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{
25
- onClick?: (() => any) | undefined;
26
- }>, {
27
- method: () => void;
28
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
29
- click: () => any;
30
- }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
14
+ } & import("vue").ComponentOptionsBase<Readonly<import("./copy").CopyProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
31
15
  $slots: import("./copy").CopySlots;
32
16
  }) & import("vue").Plugin;
33
17
  export { _Copy as Copy };
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface MaskToken extends FullToken<'Mask'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -26,14 +26,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
26
26
  root: true,
27
27
  parentSelectors: []
28
28
  }) => {
29
- const {
30
- hashId,
31
- layer,
32
- path,
33
- hashPriority,
34
- transformers = [],
35
- linters = []
36
- } = config;
29
+ const { hashId, layer, path, hashPriority, transformers = [], linters = [] } = config;
37
30
  let styleStr = "";
38
31
  let effectStyle = {};
39
32
  function parseKeyframes(keyframes) {
@@ -67,10 +60,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
67
60
  } else if (style._keyframe) {
68
61
  parseKeyframes(style);
69
62
  } else {
70
- const mergedStyle = transformers.reduce(
71
- (prev, trans) => trans?.visit?.(prev) || prev,
72
- style
73
- );
63
+ const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);
74
64
  Object.keys(mergedStyle).forEach((key) => {
75
65
  const value = mergedStyle[key];
76
66
  if (typeof value === "object" && value && (key !== "animationName" || !value._keyframe) && !isCompoundCSSProperty(value)) {
@@ -87,15 +77,11 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
87
77
  mergedKey = "";
88
78
  nextRoot = true;
89
79
  }
90
- const [parsedStr, childEffectStyle] = parseStyle(
91
- value,
92
- config,
93
- {
94
- root: nextRoot,
95
- injectHash: subInjectHash,
96
- parentSelectors: [...parentSelectors, mergedKey]
97
- }
98
- );
80
+ const [parsedStr, childEffectStyle] = parseStyle(value, config, {
81
+ root: nextRoot,
82
+ injectHash: subInjectHash,
83
+ parentSelectors: [...parentSelectors, mergedKey]
84
+ });
99
85
  effectStyle = {
100
86
  ...effectStyle,
101
87
  ...childEffectStyle
@@ -108,10 +94,7 @@ const parseStyle = (interpolation, config = {}, { root, injectHash, parentSelect
108
94
  (linter) => linter(cssKey, cssValue, { path, hashId, parentSelectors })
109
95
  );
110
96
  }
111
- const styleName = cssKey.replace(
112
- /[A-Z]/g,
113
- (match) => `-${match.toLowerCase()}`
114
- );
97
+ const styleName = cssKey.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
115
98
  let formatValue = cssValue;
116
99
  if (!unitless[cssKey] && typeof formatValue === "number" && formatValue !== 0) {
117
100
  formatValue = `${formatValue}px`;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, reactive, toRef, createElementBlock, openBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode } from 'vue';
1
+ import { defineComponent, reactive, toRef, createElementBlock, openBlock, mergeProps, unref, createElementVNode, normalizeClass, renderSlot, createCommentVNode, createVNode } from 'vue';
2
2
  import { useDndSortItem } from './useDndSortItem.js';
3
3
  import stdin_default$2 from '../icon/icon.vue.js';
4
4
  import stdin_default$1 from './style/index.js';
@@ -17,7 +17,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
17
17
  },
18
18
  setup(__props) {
19
19
  const props = __props;
20
- useSlots();
21
20
  const {
22
21
  prefixCls
23
22
  } = useComponentConfig("dnd-sort", props);
@@ -46,8 +45,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
46
45
  }, unref(holderBinder), {
47
46
  class: `${unref(prefixCls)}-item-holder`
48
47
  }), [createVNode(stdin_default$2, {
49
- name: "mdi:drag",
50
- size: "xl"
48
+ name: "co:draggable",
49
+ size: "lg"
51
50
  })], 16
52
51
  /* FULL_PROPS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
53
52
  class: normalizeClass(`${unref(prefixCls)}-item-content`)
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, toRef, createBlock, renderSlot, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, withCtx } from 'vue';
1
+ import { defineComponent, toRef, createBlock, renderSlot, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, withCtx } from 'vue';
2
2
  import { useDndSort } from './useDndSort.js';
3
3
 
4
4
  var stdin_default = /* @__PURE__ */defineComponent({
@@ -22,7 +22,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
22
22
  emit: __emit
23
23
  }) {
24
24
  const props = __props;
25
- useSlots();
26
25
  const emit = __emit;
27
26
  useDndSort({
28
27
  onMove(fromIndex, toIndex) {
@@ -42,5 +42,5 @@ declare const _DndSortItem: {
42
42
  } & import("vue").ComponentOptionsBase<Readonly<import("./dnd-sort-item").DndSortItemProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
43
43
  $slots: import("./dnd-sort-item").DndSortItemSlots;
44
44
  }) & import("vue").Plugin;
45
- export { _DndSortItem as DndSortItem, _DndSort as DndSort, useDndSortItem, useDndSort, };
45
+ export { _DndSortItem as DndSortItem, _DndSort as DndSort, useDndSortItem, useDndSort };
46
46
  export default _DndSort;
@@ -3,7 +3,7 @@ export interface ComponentToken {
3
3
  }
4
4
  export interface DndSortToken extends FullToken<'DndSort'> {
5
5
  }
6
- declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, theme?: import("vue").ComputedRef<import("../..").ThemeConfig | undefined>) => {
6
+ declare const _default: (_prefixCls?: import("vue").ComputedRef<string> | string, themeManager?: import("../../theme/theme-context").ThemeManager) => {
7
7
  hashId: import("vue").Ref<string, string>;
8
8
  };
9
9
  export default _default;
@@ -12,6 +12,7 @@ const getDndSortStyle = (token) => {
12
12
  marginInlineEnd: token.marginXS,
13
13
  width: token.size,
14
14
  flex: "none",
15
+ color: token.colorTextSecondary,
15
16
  cursor: "grab",
16
17
  "&:active": {
17
18
  cursor: "grabbing"
@@ -1,12 +1,7 @@
1
- declare const prefixCls: import("vue").ComputedRef<string>;
2
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
3
1
  declare var __VLS_1: {};
4
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
2
+ type __VLS_Slots = {} & {
5
3
  default?: (props: typeof __VLS_1) => any;
6
- }>;
7
- declare const __VLS_self: import("vue").DefineComponent<{}, {
8
- prefixCls: typeof prefixCls;
9
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ };
10
5
  declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
6
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
12
7
  export default _default;