kui-vue 6.0.0 → 6.2.0

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 (265) hide show
  1. package/AI.en-US.md +21 -1
  2. package/AI.md +37 -1
  3. package/ai/behaviors.json +82 -0
  4. package/ai/evals/README.md +59 -0
  5. package/ai/evals/cases.json +91 -24
  6. package/ai/evals/config.json +4 -0
  7. package/ai/evals/evaluate.mjs +267 -0
  8. package/ai/evals/run.mjs +118 -0
  9. package/ai/kui-components.json +7894 -955
  10. package/ai/kui-components.schema.json +67 -0
  11. package/ai/mcp.mjs +210 -166
  12. package/ai/skills/kui-vue/SKILL.md +2 -1
  13. package/ai/skills/kui-vue/references/mcp.md +12 -12
  14. package/ai/templates/form.vue +49 -0
  15. package/ai/templates/index.json +23 -0
  16. package/ai/templates/modal-editor.vue +59 -0
  17. package/ai/templates/table.vue +63 -0
  18. package/ai/validate.mjs +225 -0
  19. package/dist/index.js +2 -2
  20. package/es/index.js +2180 -2179
  21. package/es/locale/de.js +1 -1
  22. package/es/locale/el.js +1 -1
  23. package/es/locale/en.js +1 -1
  24. package/es/locale/fr.js +1 -1
  25. package/es/locale/it.js +1 -1
  26. package/es/locale/ja.js +1 -1
  27. package/es/locale/ko.js +1 -1
  28. package/es/locale/ru.js +1 -1
  29. package/es/locale/th.js +1 -1
  30. package/es/locale/uk.js +1 -1
  31. package/es/locale/vi.js +1 -1
  32. package/es/locale/zh-CN.js +1 -1
  33. package/es/locale/zh-TW.js +1 -1
  34. package/lib/index.cjs +2 -2
  35. package/lib/locale/de.cjs +1 -1
  36. package/lib/locale/el.cjs +1 -1
  37. package/lib/locale/en.cjs +1 -1
  38. package/lib/locale/fr.cjs +1 -1
  39. package/lib/locale/it.cjs +1 -1
  40. package/lib/locale/ja.cjs +1 -1
  41. package/lib/locale/ko.cjs +1 -1
  42. package/lib/locale/ru.cjs +1 -1
  43. package/lib/locale/th.cjs +1 -1
  44. package/lib/locale/uk.cjs +1 -1
  45. package/lib/locale/vi.cjs +1 -1
  46. package/lib/locale/zh-CN.cjs +1 -1
  47. package/lib/locale/zh-TW.cjs +1 -1
  48. package/package.json +37 -31
  49. package/style/base.css +1 -1
  50. package/style/components.css +2 -2
  51. package/style/index.css +2 -2
  52. package/style/motion.css +1 -1
  53. package/style/theme.css +2 -2
  54. package/types/affix/index.d.ts +5 -5
  55. package/types/alert/index.d.ts +9 -7
  56. package/types/anchor/anchor-link.d.ts +4 -4
  57. package/types/anchor/anchor.d.ts +6 -6
  58. package/types/anchor/context.d.ts +1 -1
  59. package/types/anchor/index.d.ts +4 -4
  60. package/types/auto-complete/index.d.ts +7 -11
  61. package/types/avatar/avatar-group.d.ts +5 -5
  62. package/types/avatar/avatar.d.ts +6 -6
  63. package/types/avatar/context.d.ts +1 -1
  64. package/types/avatar/index.d.ts +4 -4
  65. package/types/back-top/index.d.ts +5 -5
  66. package/types/badge/index.d.ts +6 -6
  67. package/types/base/transition.d.ts +1 -1
  68. package/types/breadcrumb/breadcrumb-item.d.ts +6 -6
  69. package/types/breadcrumb/breadcrumb.d.ts +4 -4
  70. package/types/breadcrumb/index.d.ts +4 -4
  71. package/types/button/button-group.d.ts +5 -5
  72. package/types/button/button.d.ts +4 -4
  73. package/types/button/index.d.ts +4 -4
  74. package/types/calendar/index.d.ts +8 -5
  75. package/types/card/card-meta.d.ts +4 -4
  76. package/types/card/index.d.ts +8 -8
  77. package/types/carousel/carousel-item.d.ts +1 -1
  78. package/types/carousel/carousel.d.ts +20 -7
  79. package/types/carousel/index.d.ts +3 -3
  80. package/types/cascader/index.d.ts +41 -32
  81. package/types/cascader/types.d.ts +7 -3
  82. package/types/check-card/check-card-group.d.ts +10 -7
  83. package/types/check-card/check-card.d.ts +21 -8
  84. package/types/check-card/context.d.ts +3 -3
  85. package/types/check-card/index.d.ts +5 -5
  86. package/types/check-card/types.d.ts +2 -2
  87. package/types/checkbox/checkbox-group.d.ts +20 -7
  88. package/types/checkbox/checkbox.d.ts +4 -3
  89. package/types/checkbox/index.d.ts +5 -5
  90. package/types/collapse/collapse-panel.d.ts +6 -6
  91. package/types/collapse/collapse.d.ts +7 -7
  92. package/types/collapse/context.d.ts +1 -1
  93. package/types/collapse/index.d.ts +4 -4
  94. package/types/color-picker/alpha.d.ts +10 -6
  95. package/types/color-picker/hue.d.ts +7 -4
  96. package/types/color-picker/index.d.ts +34 -20
  97. package/types/color-picker/mode.d.ts +9 -9
  98. package/types/color-picker/paint.d.ts +9 -6
  99. package/types/color-picker/presets.d.ts +7 -7
  100. package/types/color-picker/types.d.ts +1 -0
  101. package/types/components.d.ts +166 -161
  102. package/types/config/context.d.ts +2 -2
  103. package/types/config/index.d.ts +7 -7
  104. package/types/config/popup.d.ts +1 -1
  105. package/types/const/types.d.ts +2 -2
  106. package/types/date-picker/index.d.ts +49 -19
  107. package/types/descriptions/descriptions-item.d.ts +5 -5
  108. package/types/descriptions/descriptions.d.ts +5 -5
  109. package/types/descriptions/index.d.ts +4 -2
  110. package/types/directives/outsiteclick.d.ts +1 -1
  111. package/types/directives/resize.d.ts +1 -1
  112. package/types/directives/scroll.d.ts +1 -1
  113. package/types/divider/index.d.ts +5 -5
  114. package/types/drawer/index.d.ts +24 -11
  115. package/types/dropdown/dropdown-button.d.ts +7 -7
  116. package/types/dropdown/dropdown.d.ts +12 -16
  117. package/types/dropdown/index.d.ts +4 -2
  118. package/types/dropdown/trigger.d.ts +6 -6
  119. package/types/empty/index.d.ts +1 -1
  120. package/types/feature-card/index.d.ts +7 -7
  121. package/types/feedback-panel/feedback-panel.d.ts +7 -7
  122. package/types/feedback-panel/index.d.ts +3 -3
  123. package/types/flame-wrap/index.d.ts +9 -9
  124. package/types/flex/index.d.ts +7 -7
  125. package/types/flex/types.d.ts +1 -1
  126. package/types/form/context.d.ts +3 -3
  127. package/types/form/form-item.d.ts +6 -6
  128. package/types/form/form.d.ts +9 -13
  129. package/types/form/index.d.ts +6 -6
  130. package/types/global.d.ts +2 -0
  131. package/types/grid/grid-item.d.ts +2 -2
  132. package/types/grid/grid.d.ts +3 -3
  133. package/types/grid/index.d.ts +5 -5
  134. package/types/grid/useBreakpoint.d.ts +1 -1
  135. package/types/icon/index.d.ts +8 -8
  136. package/types/image/context.d.ts +2 -2
  137. package/types/image/group.d.ts +4 -4
  138. package/types/image/image.d.ts +7 -7
  139. package/types/image/index.d.ts +5 -5
  140. package/types/image/instance.d.ts +11 -4
  141. package/types/image/preview.d.ts +6 -6
  142. package/types/index.d.cts +2 -2
  143. package/types/index.d.ts +2 -2
  144. package/types/input/index.d.ts +6 -6
  145. package/types/input/input-box.d.ts +6 -6
  146. package/types/input/input-group.d.ts +5 -5
  147. package/types/input/input.d.ts +27 -10
  148. package/types/input/textarea.d.ts +17 -8
  149. package/types/input-number/index.d.ts +10 -7
  150. package/types/input-otp/index.d.ts +3 -3
  151. package/types/input-otp/input-otp.d.ts +21 -8
  152. package/types/input-tag/index.d.ts +6 -6
  153. package/types/kanban/index.d.ts +5 -5
  154. package/types/layout/index.d.ts +17 -17
  155. package/types/list-panel/index.d.ts +7 -7
  156. package/types/mentions/index.d.ts +7 -7
  157. package/types/menu/index.d.ts +6 -6
  158. package/types/menu/menu-context.d.ts +4 -2
  159. package/types/menu/menu-divider.d.ts +1 -1
  160. package/types/menu/menu-group.d.ts +4 -4
  161. package/types/menu/menu-item.d.ts +10 -6
  162. package/types/menu/menu.d.ts +24 -17
  163. package/types/menu/recursive-menu.d.ts +5 -5
  164. package/types/menu/sub-menu.d.ts +6 -6
  165. package/types/menu/types.d.ts +2 -2
  166. package/types/message/index.d.ts +3 -3
  167. package/types/modal/index.d.ts +15 -10
  168. package/types/modal/modal.d.ts +25 -97
  169. package/types/modal/toast.d.ts +11 -10
  170. package/types/notice/container.d.ts +3 -3
  171. package/types/notice/content.d.ts +10 -77
  172. package/types/notice/index.d.ts +3 -3
  173. package/types/notice/instance.d.ts +2 -2
  174. package/types/page/index.d.ts +6 -6
  175. package/types/page-header/index.d.ts +4 -4
  176. package/types/popconfirm/index.d.ts +8 -45
  177. package/types/poptip/index.d.ts +9 -47
  178. package/types/popup/index.d.ts +251 -0
  179. package/types/popup/layers.d.ts +9 -0
  180. package/types/popup/types.d.ts +15 -0
  181. package/types/progress/index.d.ts +6 -6
  182. package/types/qrcode/index.d.ts +7 -7
  183. package/types/radio/index.d.ts +8 -7
  184. package/types/radio/radio-button.d.ts +8 -8
  185. package/types/radio/radio-group.d.ts +4 -3
  186. package/types/radio/radio.d.ts +7 -7
  187. package/types/radio/types.d.ts +1 -1
  188. package/types/rate/index.d.ts +7 -7
  189. package/types/rate/star.d.ts +7 -7
  190. package/types/result/index.d.ts +3 -3
  191. package/types/result/result.d.ts +7 -7
  192. package/types/ripple/index.d.ts +6 -6
  193. package/types/row-col/col.d.ts +4 -4
  194. package/types/row-col/index.d.ts +4 -4
  195. package/types/row-col/row.d.ts +4 -4
  196. package/types/segmented/index.d.ts +6 -4
  197. package/types/select/index.d.ts +5 -5
  198. package/types/select/option.d.ts +13 -14
  199. package/types/select/select.d.ts +10 -6
  200. package/types/select/types.d.ts +1 -1
  201. package/types/skeleton/index.d.ts +10 -10
  202. package/types/skeleton/skeleton-avatar.d.ts +13 -13
  203. package/types/skeleton/skeleton-button.d.ts +15 -15
  204. package/types/skeleton/skeleton-image.d.ts +11 -11
  205. package/types/skeleton/skeleton-text.d.ts +11 -11
  206. package/types/skeleton/skeleton.d.ts +15 -15
  207. package/types/skeleton/types.d.ts +2 -2
  208. package/types/skeleton/use-skeleton-loading.d.ts +1 -1
  209. package/types/slider/index.d.ts +8 -3
  210. package/types/slider/thumb.d.ts +7 -7
  211. package/types/space/index.d.ts +4 -4
  212. package/types/spin/index.d.ts +18 -5
  213. package/types/splitter/index.d.ts +2 -2
  214. package/types/splitter/splitter-panel.d.ts +4 -4
  215. package/types/splitter/splitter.d.ts +6 -6
  216. package/types/stat-card/countup.d.ts +4 -4
  217. package/types/stat-card/index.d.ts +5 -5
  218. package/types/stat-card/rollup.d.ts +6 -4
  219. package/types/stat-card/stat-card.d.ts +7 -7
  220. package/types/stat-card/stat-number.d.ts +19 -6
  221. package/types/stat-card/types.d.ts +1 -1
  222. package/types/stat-card/utils/countup.d.ts +1 -1
  223. package/types/stat-card/utils/odometer.d.ts +8 -5
  224. package/types/steps/index.d.ts +8 -8
  225. package/types/switch/index.d.ts +3 -2
  226. package/types/table/column-setting.d.ts +7 -7
  227. package/types/table/index.d.ts +13 -26
  228. package/types/table/types.d.ts +2 -2
  229. package/types/table/utils.d.ts +1 -1
  230. package/types/tabs/index.d.ts +5 -4
  231. package/types/tabs/tab-panel.d.ts +6 -6
  232. package/types/tabs/tabs.d.ts +6 -6
  233. package/types/tabs/types.d.ts +1 -1
  234. package/types/tag/index.d.ts +9 -7
  235. package/types/time-line/index.d.ts +5 -5
  236. package/types/time-line/timeline-item.d.ts +5 -5
  237. package/types/time-line/timeline.d.ts +6 -6
  238. package/types/tooltip/index.d.ts +21 -35
  239. package/types/tour/index.d.ts +34 -23
  240. package/types/transfer/index.d.ts +18 -5
  241. package/types/tree/context.d.ts +1 -1
  242. package/types/tree/index.d.ts +13 -10
  243. package/types/tree/types.d.ts +1 -1
  244. package/types/tree/utils.d.ts +1 -1
  245. package/types/tree-select/index.d.ts +14 -7
  246. package/types/typography/index.d.ts +26 -17
  247. package/types/upload/file-list.d.ts +8 -8
  248. package/types/upload/index.d.ts +9 -22
  249. package/types/upload/picture-sort.d.ts +2 -0
  250. package/types/upload/selector.d.ts +9 -9
  251. package/types/upload/types.d.ts +1 -1
  252. package/types/utils/checked.d.ts +1 -1
  253. package/types/utils/model-value.d.ts +10 -0
  254. package/types/utils/number.d.ts +1 -1
  255. package/types/utils/placement.d.ts +1 -1
  256. package/types/utils/popup.d.ts +11 -0
  257. package/types/utils/selection-tags.d.ts +18 -0
  258. package/types/utils/vnode.d.ts +3 -3
  259. package/types/utils/vue.d.ts +7 -1
  260. package/types/virtual-list/index.d.ts +6 -6
  261. package/types/watermark/index.d.ts +8 -8
  262. package/vetur/attributes.json +1717 -781
  263. package/vetur/tags.json +359 -159
  264. package/vetur/web-types.json +7563 -6197
  265. package/types/directives/transfer.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { VNode, VNodeChild } from 'vue';
1
+ import type { VNode, VNodeChild } from "vue";
2
2
  export interface StatNumberItem {
3
3
  key?: string | number;
4
4
  value: number;
@@ -47,7 +47,7 @@ export interface CountUpOptions {
47
47
  scrollOnce?: boolean;
48
48
  }
49
49
  export declare interface CountUpPlugin {
50
- render(elem: HTMLElement, formatted: string): void;
50
+ render(elem: HTMLElement, formatted: string, value?: number): void;
51
51
  destroy?(): void;
52
52
  }
53
53
  /**
@@ -1,14 +1,17 @@
1
- import { CountUpPlugin } from './countup';
1
+ import type { CountUpPlugin } from "./countup";
2
2
  export interface OdometerOptions {
3
3
  duration?: number;
4
4
  lastDigitDelay?: number;
5
+ mode?: "step" | "continuous";
5
6
  }
7
+ /** Bounded digit tracks shared by statistical numbers and badges. */
6
8
  export declare class Odometer implements CountUpPlugin {
7
- version: string;
9
+ private previous?;
10
+ private timer?;
11
+ private frame?;
12
+ private revision;
8
13
  private options;
9
- private defaults;
10
- private cell_digits;
11
14
  constructor(options?: OdometerOptions);
12
15
  destroy(): void;
13
- render(elem: HTMLElement | HTMLInputElement, formatted: string): void;
16
+ render(elem: HTMLElement, text: string, value?: number): void;
14
17
  }
@@ -1,4 +1,4 @@
1
- import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
1
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
2
2
  export type StepStatus = "wait" | "process" | "finish" | "error";
3
3
  export interface StepItem {
4
4
  title: VNodeChild;
@@ -15,13 +15,13 @@ declare const stepProps: {
15
15
  disabled: BooleanConstructor;
16
16
  };
17
17
  export type StepProps = ExtractPropTypes<typeof stepProps>;
18
- export declare const Step: import('vue').DefineComponent<ExtractPropTypes<{
18
+ export declare const Step: import("vue").DefineComponent<ExtractPropTypes<{
19
19
  title: PropType<VNodeChild>;
20
20
  description: PropType<VNodeChild>;
21
21
  icon: PropType<VNodeChild>;
22
22
  status: PropType<StepStatus>;
23
23
  disabled: BooleanConstructor;
24
- }>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
24
+ }>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
25
25
  title: PropType<VNodeChild>;
26
26
  description: PropType<VNodeChild>;
27
27
  icon: PropType<VNodeChild>;
@@ -29,7 +29,7 @@ export declare const Step: import('vue').DefineComponent<ExtractPropTypes<{
29
29
  disabled: BooleanConstructor;
30
30
  }>> & Readonly<{}>, {
31
31
  disabled: boolean;
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
33
33
  declare const propsDef: {
34
34
  current: {
35
35
  type: NumberConstructor;
@@ -46,7 +46,7 @@ declare const propsDef: {
46
46
  items: PropType<StepItem[]>;
47
47
  };
48
48
  export type StepsProps = ExtractPropTypes<typeof propsDef>;
49
- declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
49
+ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
50
50
  current: {
51
51
  type: NumberConstructor;
52
52
  default: number;
@@ -60,9 +60,9 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
60
60
  default: string;
61
61
  };
62
62
  items: PropType<StepItem[]>;
63
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
63
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
64
64
  change: (current: number) => boolean;
65
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
65
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
66
66
  current: {
67
67
  type: NumberConstructor;
68
68
  default: number;
@@ -82,5 +82,5 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
82
82
  direction: "horizontal" | "vertical";
83
83
  status: "error" | "process";
84
84
  current: number;
85
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
85
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
86
86
  export default _default;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, ShapeType, SizeType, ValueType } from '../const/types';
1
+ import type { ExtractPropTypes, PropType } from "vue";
2
+ import type { BooleanType, ShapeType, SizeType, ValueType } from "../const/types";
3
3
  declare const switchProps: {
4
4
  checked: {
5
5
  type: BooleanType;
@@ -33,6 +33,7 @@ type SwitchModelProps<T extends string | number | boolean> = {
33
33
  modelValue?: T;
34
34
  "onUpdate:modelValue"?: (value: T) => void;
35
35
  onChange?: (value: T) => void;
36
+ "onUpdate:checked"?: (checked: boolean) => void;
36
37
  };
37
38
  type SwitchPublicProps = Omit<Partial<SwitchProps>, "modelValue" | "valueType">;
38
39
  type SwitchComponent = {
@@ -1,6 +1,6 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, SizeType } from '../const/types';
3
- import { Column } from './types';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType, SizeType } from "../const/types";
3
+ import type { Column } from "./types";
4
4
  declare const tableColumnSettingProps: {
5
5
  columns: {
6
6
  type: PropType<Column[]>;
@@ -23,7 +23,7 @@ declare const tableColumnSettingProps: {
23
23
  };
24
24
  };
25
25
  export type TableColumnSettingProps = ExtractPropTypes<typeof tableColumnSettingProps>;
26
- declare const TableColumnSetting: import('vue').DefineComponent<ExtractPropTypes<{
26
+ declare const TableColumnSetting: import("vue").DefineComponent<ExtractPropTypes<{
27
27
  columns: {
28
28
  type: PropType<Column[]>;
29
29
  default: () => never[];
@@ -43,10 +43,10 @@ declare const TableColumnSetting: import('vue').DefineComponent<ExtractPropTypes
43
43
  type: BooleanType;
44
44
  default: boolean;
45
45
  };
46
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
46
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
47
  "update:hiddenKeys": (keys: string[]) => boolean;
48
48
  change: (keys: string[]) => boolean;
49
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
49
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
50
50
  columns: {
51
51
  type: PropType<Column[]>;
52
52
  default: () => never[];
@@ -74,5 +74,5 @@ declare const TableColumnSetting: import('vue').DefineComponent<ExtractPropTypes
74
74
  hiddenKeys: string[];
75
75
  disabledKeys: string[];
76
76
  showReset: boolean | undefined;
77
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
78
78
  export default TableColumnSetting;
@@ -1,6 +1,6 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, SizeType, SurfaceShapeType } from '../const/types';
3
- import { Column, SortState, TableKey, TableRecord } from './types';
1
+ import type { ExtractPropTypes, PropType } from "vue";
2
+ import type { BooleanType, SizeType, SurfaceShapeType } from "../const/types";
3
+ import type { Column, SortState, TableKey, TableRecord } from "./types";
4
4
  declare const tableProps: {
5
5
  data: {
6
6
  type: PropType<TableRecord[]>;
@@ -31,11 +31,7 @@ declare const tableProps: {
31
31
  default: string;
32
32
  };
33
33
  expandedKeys: PropType<TableKey[]>;
34
- defaultExpandedKeys: {
35
- type: PropType<TableKey[]>;
36
- default: () => never[];
37
- };
38
- defaultExpandAllRows: BooleanType;
34
+ expandAllRows: BooleanType;
39
35
  expandRowByClick: BooleanType;
40
36
  indentSize: {
41
37
  type: NumberConstructor;
@@ -74,7 +70,7 @@ declare const tableProps: {
74
70
  };
75
71
  };
76
72
  export type TableProps = ExtractPropTypes<typeof tableProps>;
77
- declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
73
+ declare const Table: import("vue").DefineComponent<ExtractPropTypes<{
78
74
  data: {
79
75
  type: PropType<TableRecord[]>;
80
76
  default: () => never[];
@@ -104,11 +100,7 @@ declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
104
100
  default: string;
105
101
  };
106
102
  expandedKeys: PropType<TableKey[]>;
107
- defaultExpandedKeys: {
108
- type: PropType<TableKey[]>;
109
- default: () => never[];
110
- };
111
- defaultExpandAllRows: BooleanType;
103
+ expandAllRows: BooleanType;
112
104
  expandRowByClick: BooleanType;
113
105
  indentSize: {
114
106
  type: NumberConstructor;
@@ -145,7 +137,7 @@ declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
145
137
  type: NumberConstructor;
146
138
  default: number;
147
139
  };
148
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
140
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
149
141
  "update:selectedKeys": (keys: TableKey[]) => boolean;
150
142
  "update:expandedKeys": (keys: TableKey[]) => boolean;
151
143
  sort: (state: SortState) => boolean;
@@ -154,7 +146,7 @@ declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
154
146
  selectAll: (selected: boolean, keys: TableKey[]) => boolean;
155
147
  expand: (expanded: boolean, record: TableRecord) => boolean;
156
148
  expandedKeysChange: (keys: TableKey[]) => boolean;
157
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
149
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
158
150
  data: {
159
151
  type: PropType<TableRecord[]>;
160
152
  default: () => never[];
@@ -184,11 +176,7 @@ declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
184
176
  default: string;
185
177
  };
186
178
  expandedKeys: PropType<TableKey[]>;
187
- defaultExpandedKeys: {
188
- type: PropType<TableKey[]>;
189
- default: () => never[];
190
- };
191
- defaultExpandAllRows: BooleanType;
179
+ expandAllRows: BooleanType;
192
180
  expandRowByClick: BooleanType;
193
181
  indentSize: {
194
182
  type: NumberConstructor;
@@ -250,10 +238,9 @@ declare const Table: import('vue').DefineComponent<ExtractPropTypes<{
250
238
  disabledKeys: TableKey[];
251
239
  hiddenColumnKeys: string[];
252
240
  rowKey: string;
253
- defaultExpandedKeys: TableKey[];
254
241
  indentSize: number;
255
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
242
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
256
243
  export default Table;
257
- export type { Column, SortState, TableKey, TableRecord, TableTreeRow } from './types';
258
- export { default as TableColumnSetting } from './column-setting';
259
- export type { TableColumnSettingProps } from './column-setting';
244
+ export type { Column, SortState, TableKey, TableRecord, TableTreeRow } from "./types";
245
+ export { default as TableColumnSetting } from "./column-setting";
246
+ export type { TableColumnSettingProps } from "./column-setting";
@@ -1,4 +1,4 @@
1
- import { VNodeChild } from 'vue';
1
+ import type { VNodeChild } from "vue";
2
2
  export type TableKey = string | number;
3
3
  export type TableRecord = Record<string, unknown>;
4
4
  export interface SortState {
@@ -11,7 +11,7 @@ export interface Column {
11
11
  width?: number;
12
12
  fixed?: "left" | "right";
13
13
  sorter?: boolean | ((state: SortState) => void);
14
- render?: (h: typeof import('vue').h, record: TableRecord, colIndex: number, rowIndex: number, col: Column) => VNodeChild;
14
+ render?: (h: typeof import("vue").h, record: TableRecord, colIndex: number, rowIndex: number, col: Column) => VNodeChild;
15
15
  colSpan?: number | ((record: TableRecord, index: number) => number);
16
16
  rowSpan?: number | ((record: TableRecord, index: number) => number);
17
17
  children?: Column[];
@@ -1,4 +1,4 @@
1
- import { Column, TableKey, TableRecord, TableTreeRow } from './types';
1
+ import type { Column, TableKey, TableRecord, TableTreeRow } from "./types";
2
2
  export declare const flattenColumns: (columns: Column[]) => Column[];
3
3
  export declare const countColumnLeaves: (column: Column) => number;
4
4
  export declare const getTreeChildren: (record: TableRecord, childrenColumnName: string) => TableRecord[];
@@ -1,5 +1,6 @@
1
- import { default as TabPanel } from './tab-panel';
2
- import { default as Tabs } from './tabs';
3
- export type { TabPanelProps } from './tab-panel';
4
- export type { TabsProps } from './tabs';
1
+ import TabPanel from "./tab-panel";
2
+ import Tabs from "./tabs";
3
+ export type { TabPanelProps } from "./tab-panel";
4
+ export type { TabsProps } from "./tabs";
5
+ export type { TabKey } from "./types";
5
6
  export { TabPanel, Tabs };
@@ -1,6 +1,6 @@
1
- import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
- import { BooleanType } from '../const/types';
3
- import { IconType } from '../icon';
1
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
+ import type { IconType } from "../icon";
4
4
  declare const tabPanelProps: {
5
5
  title: PropType<VNodeChild>;
6
6
  icon: PropType<IconType[]>;
@@ -8,15 +8,15 @@ declare const tabPanelProps: {
8
8
  closable: BooleanType;
9
9
  };
10
10
  export type TabPanelProps = ExtractPropTypes<typeof tabPanelProps>;
11
- declare const TabPanel: import('vue').DefineComponent<ExtractPropTypes<{
11
+ declare const TabPanel: import("vue").DefineComponent<ExtractPropTypes<{
12
12
  title: PropType<VNodeChild>;
13
13
  icon: PropType<IconType[]>;
14
14
  disabled: BooleanType;
15
15
  closable: BooleanType;
16
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
17
17
  title: PropType<VNodeChild>;
18
18
  icon: PropType<IconType[]>;
19
19
  disabled: BooleanType;
20
20
  closable: BooleanType;
21
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
22
  export default TabPanel;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType } from '../const/types';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { BooleanType } from "../const/types";
3
3
  declare const tabsProps: {
4
4
  modelValue: (NumberConstructor | StringConstructor)[];
5
5
  value: (NumberConstructor | StringConstructor)[];
@@ -13,7 +13,7 @@ declare const tabsProps: {
13
13
  };
14
14
  };
15
15
  export type TabsProps = ExtractPropTypes<typeof tabsProps>;
16
- declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
16
+ declare const Tabs: import("vue").DefineComponent<ExtractPropTypes<{
17
17
  modelValue: (NumberConstructor | StringConstructor)[];
18
18
  value: (NumberConstructor | StringConstructor)[];
19
19
  variant: PropType<"line" | "card" | "sample" | "browser">;
@@ -24,12 +24,12 @@ declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
28
  "update:modelValue": (name: string) => boolean;
29
29
  tabClick: (name: string) => boolean;
30
30
  change: (name: string) => boolean;
31
31
  remove: (name: string) => boolean;
32
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
32
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
33
33
  modelValue: (NumberConstructor | StringConstructor)[];
34
34
  value: (NumberConstructor | StringConstructor)[];
35
35
  variant: PropType<"line" | "card" | "sample" | "browser">;
@@ -47,5 +47,5 @@ declare const Tabs: import('vue').DefineComponent<ExtractPropTypes<{
47
47
  onTabClick?: ((name: string) => any) | undefined;
48
48
  }>, {
49
49
  animated: boolean;
50
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
51
51
  export default Tabs;
@@ -1,4 +1,4 @@
1
- import { IconType } from '../icon';
1
+ import type { IconType } from "../icon";
2
2
  export type TabKey = string | number | null | undefined;
3
3
  export interface TabsPaneLike {
4
4
  key: TabKey;
@@ -1,6 +1,6 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { BooleanType, ColorType, ShapeType, SizeType, ThemeType } from '../const/types';
3
- import { IconType } from '../icon';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import { type BooleanType, type ColorType, type ShapeType, type SizeType, type ThemeType } from "../const/types";
3
+ import { type IconType } from "../icon";
4
4
  declare const tagProps: {
5
5
  closeable: BooleanType;
6
6
  compact: BooleanType;
@@ -17,7 +17,7 @@ declare const tagProps: {
17
17
  };
18
18
  };
19
19
  export type TagProps = ExtractPropTypes<typeof tagProps>;
20
- declare const Tag: import('vue').DefineComponent<ExtractPropTypes<{
20
+ declare const Tag: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  closeable: BooleanType;
22
22
  compact: BooleanType;
23
23
  color: ColorType;
@@ -31,9 +31,10 @@ declare const Tag: import('vue').DefineComponent<ExtractPropTypes<{
31
31
  type: PropType<ThemeType>;
32
32
  default: string;
33
33
  };
34
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
35
  close: () => true;
36
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
36
+ afterClose: () => true;
37
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
37
38
  closeable: BooleanType;
38
39
  compact: BooleanType;
39
40
  color: ColorType;
@@ -49,8 +50,9 @@ declare const Tag: import('vue').DefineComponent<ExtractPropTypes<{
49
50
  };
50
51
  }>> & Readonly<{
51
52
  onClose?: (() => any) | undefined;
53
+ onAfterClose?: (() => any) | undefined;
52
54
  }>, {
53
55
  size: SizeType;
54
56
  theme: ThemeType;
55
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
56
58
  export default Tag;
@@ -1,6 +1,6 @@
1
- import { default as TimeLine } from './timeline';
2
- import { default as TimeLineItem } from './timeline-item';
3
- export type { TimelineMode } from '../const/types';
4
- export type { TimelineProps } from './timeline';
5
- export type { TimelineItemProps } from './timeline-item';
1
+ import TimeLine from "./timeline";
2
+ import TimeLineItem from "./timeline-item";
3
+ export type { TimelineMode } from "../const/types";
4
+ export type { TimelineProps } from "./timeline";
5
+ export type { TimelineItemProps } from "./timeline-item";
6
6
  export { TimeLine, TimeLineItem };
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType, VNodeChild } from 'vue';
2
- import { IconType } from '../icon';
1
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
2
+ import { type IconType } from "../icon";
3
3
  declare const timelineItemProps: {
4
4
  color: StringConstructor;
5
5
  icon: PropType<IconType[]>;
@@ -7,15 +7,15 @@ declare const timelineItemProps: {
7
7
  extra: PropType<VNodeChild>;
8
8
  };
9
9
  export type TimelineItemProps = ExtractPropTypes<typeof timelineItemProps>;
10
- declare const TimeLineItem: import('vue').DefineComponent<ExtractPropTypes<{
10
+ declare const TimeLineItem: import("vue").DefineComponent<ExtractPropTypes<{
11
11
  color: StringConstructor;
12
12
  icon: PropType<IconType[]>;
13
13
  time: PropType<VNodeChild>;
14
14
  extra: PropType<VNodeChild>;
15
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
15
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
16
  color: StringConstructor;
17
17
  icon: PropType<IconType[]>;
18
18
  time: PropType<VNodeChild>;
19
19
  extra: PropType<VNodeChild>;
20
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
21
  export default TimeLineItem;
@@ -1,5 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
- import { TimelineMode } from '../const/types';
1
+ import { type ExtractPropTypes, type PropType } from "vue";
2
+ import type { TimelineMode } from "../const/types";
3
3
  declare const timelineProps: {
4
4
  mode: {
5
5
  type: PropType<TimelineMode>;
@@ -8,13 +8,13 @@ declare const timelineProps: {
8
8
  };
9
9
  };
10
10
  export type TimelineProps = ExtractPropTypes<typeof timelineProps>;
11
- declare const TimeLine: import('vue').DefineComponent<ExtractPropTypes<{
11
+ declare const TimeLine: import("vue").DefineComponent<ExtractPropTypes<{
12
12
  mode: {
13
13
  type: PropType<TimelineMode>;
14
14
  default: string;
15
15
  validator: (val: string) => boolean;
16
16
  };
17
- }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
18
18
  mode: {
19
19
  type: PropType<TimelineMode>;
20
20
  default: string;
@@ -22,6 +22,6 @@ declare const TimeLine: import('vue').DefineComponent<ExtractPropTypes<{
22
22
  };
23
23
  }>> & Readonly<{}>, {
24
24
  mode: TimelineMode;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
26
  export default TimeLine;
27
- export type { TimelineMode } from '../const/types';
27
+ export type { TimelineMode } from "../const/types";
@@ -1,6 +1,11 @@
1
- import { ExtractPropTypes, PropType, VNode, VNodeChild } from 'vue';
2
- import { BooleanType, PlacementsType } from '../const/types';
1
+ import type { ForwardedComponent } from "../utils/vue";
2
+ import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
3
+ import type { BooleanType, PlacementsType } from "../const/types";
3
4
  declare const tooltipProps: {
5
+ trigger: {
6
+ type: PropType<"hover" | "manual">;
7
+ default: string;
8
+ };
4
9
  show: BooleanType;
5
10
  title: PropType<VNodeChild>;
6
11
  color: StringConstructor;
@@ -13,22 +18,11 @@ declare const tooltipProps: {
13
18
  panelOnly: BooleanType;
14
19
  };
15
20
  export type TooltipProps = ExtractPropTypes<typeof tooltipProps>;
16
- declare const Tooltip: import('vue').DefineComponent<ExtractPropTypes<{
17
- show: BooleanType;
18
- title: PropType<VNodeChild>;
19
- color: StringConstructor;
20
- disabled: BooleanType;
21
- width: PropType<number | string>;
22
- placement: {
23
- type: PropType<PlacementsType>;
21
+ declare const Tooltip: import("vue").DefineComponent<ExtractPropTypes<{
22
+ trigger: {
23
+ type: PropType<"hover" | "manual">;
24
24
  default: string;
25
25
  };
26
- panelOnly: BooleanType;
27
- }>, () => import("vue/jsx-runtime").JSX.Element | VNode<import('vue').RendererNode, import('vue').RendererElement, {
28
- [key: string]: any;
29
- }>[] | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
- "update:show": (show: boolean) => boolean;
31
- }, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
32
26
  show: BooleanType;
33
27
  title: PropType<VNodeChild>;
34
28
  color: StringConstructor;
@@ -39,25 +33,13 @@ declare const Tooltip: import('vue').DefineComponent<ExtractPropTypes<{
39
33
  default: string;
40
34
  };
41
35
  panelOnly: BooleanType;
42
- }>> & Readonly<{
43
- "onUpdate:show"?: ((show: boolean) => any) | undefined;
44
- }>, {
45
- placement: PlacementsType;
46
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
- export declare const TooltipPanel: import('vue').DefineComponent<ExtractPropTypes<{
48
- show: BooleanType;
49
- title: PropType<VNodeChild>;
50
- color: StringConstructor;
51
- disabled: BooleanType;
52
- width: PropType<number | string>;
53
- placement: {
54
- type: PropType<PlacementsType>;
36
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ "update:show": (show: boolean) => boolean;
38
+ }, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
39
+ trigger: {
40
+ type: PropType<"hover" | "manual">;
55
41
  default: string;
56
42
  };
57
- panelOnly: BooleanType;
58
- }>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
59
- [key: string]: any;
60
- }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
61
43
  show: BooleanType;
62
44
  title: PropType<VNodeChild>;
63
45
  color: StringConstructor;
@@ -68,7 +50,11 @@ export declare const TooltipPanel: import('vue').DefineComponent<ExtractPropType
68
50
  default: string;
69
51
  };
70
52
  panelOnly: BooleanType;
71
- }>> & Readonly<{}>, {
53
+ }>> & Readonly<{
54
+ "onUpdate:show"?: ((show: boolean) => any) | undefined;
55
+ }>, {
56
+ trigger: "manual" | "hover";
72
57
  placement: PlacementsType;
73
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
59
+ export declare const TooltipPanel: ForwardedComponent<typeof Tooltip>;
74
60
  export default Tooltip;