x-next 1.10.0 → 1.11.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 (182) hide show
  1. package/AI_CODING.md +97 -0
  2. package/AI_USAGE/catalog.md +111 -0
  3. package/AI_USAGE/components/alert.md +33 -0
  4. package/AI_USAGE/components/bar-chart.md +46 -0
  5. package/AI_USAGE/components/button.md +35 -0
  6. package/AI_USAGE/components/checkbox.md +34 -0
  7. package/AI_USAGE/components/color-picker.md +36 -0
  8. package/AI_USAGE/components/config-provider.md +58 -0
  9. package/AI_USAGE/components/date-picker.md +34 -0
  10. package/AI_USAGE/components/dialog.md +37 -0
  11. package/AI_USAGE/components/dropdown.md +38 -0
  12. package/AI_USAGE/components/empty.md +30 -0
  13. package/AI_USAGE/components/input.md +32 -0
  14. package/AI_USAGE/components/line-chart.md +45 -0
  15. package/AI_USAGE/components/message-box.md +39 -0
  16. package/AI_USAGE/components/message.md +36 -0
  17. package/AI_USAGE/components/notification.md +37 -0
  18. package/AI_USAGE/components/pagination.md +32 -0
  19. package/AI_USAGE/components/pie-chart.md +55 -0
  20. package/AI_USAGE/components/popconfirm.md +33 -0
  21. package/AI_USAGE/components/popover.md +35 -0
  22. package/AI_USAGE/components/progress.md +32 -0
  23. package/AI_USAGE/components/radio.md +35 -0
  24. package/AI_USAGE/components/rate.md +30 -0
  25. package/AI_USAGE/components/select.md +38 -0
  26. package/AI_USAGE/components/slider.md +34 -0
  27. package/AI_USAGE/components/steps.md +33 -0
  28. package/AI_USAGE/components/switch.md +32 -0
  29. package/AI_USAGE/components/tabs.md +33 -0
  30. package/AI_USAGE/components/textarea.md +31 -0
  31. package/AI_USAGE/components/time-picker.md +34 -0
  32. package/AI_USAGE/components/upload.md +60 -0
  33. package/AI_USAGE/core.md +37 -0
  34. package/AI_USAGE/index.md +52 -0
  35. package/AI_USAGE/recipes/form-on-demand.md +42 -0
  36. package/AI_USAGE.md +173 -46
  37. package/CHANGELOG.md +36 -1
  38. package/README.md +15 -2
  39. package/dist/_container/resize-trigger.vue.d.ts +1 -1
  40. package/dist/_hooks/use-dialog-focus.d.ts +7 -0
  41. package/dist/_hooks/use-pointer-drag.d.ts +6 -0
  42. package/dist/_hooks/use-popup-close.d.ts +11 -0
  43. package/dist/_hooks/use-popup-theme.d.ts +5 -0
  44. package/dist/_utils/palette.d.ts +2 -0
  45. package/dist/components/_components/picker/input-range.vue.d.ts +1 -3
  46. package/dist/components/_components/picker/input.vue.d.ts +1 -3
  47. package/dist/components/_components/select-view/select-view.d.ts +9 -0
  48. package/dist/components/alert/Alert.vue.d.ts +1 -1
  49. package/dist/components/alert/index.d.ts +3 -3
  50. package/dist/components/bar-chart/BarChart.d.ts +3 -3
  51. package/dist/components/bar-chart/index.d.ts +9 -9
  52. package/dist/components/color-picker/ColorPicker.d.ts +2 -1
  53. package/dist/components/color-picker/index.d.ts +2 -0
  54. package/dist/components/color-picker/panel.d.ts +6 -0
  55. package/dist/components/config-provider/context.d.ts +7 -1
  56. package/dist/components/date-picker/DatePicker.vue.d.ts +9 -12
  57. package/dist/components/date-picker/index.d.ts +19 -27
  58. package/dist/components/drawer/index.d.ts +51 -9
  59. package/dist/components/drawer/src/Drawer.vue.d.ts +19 -4
  60. package/dist/components/dropdown/Dropdown.vue.d.ts +6 -3
  61. package/dist/components/dropdown/DropdownButton.vue.d.ts +6 -3
  62. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +6 -3
  63. package/dist/components/dropdown/dropdown-panel.vue.d.ts +6 -3
  64. package/dist/components/dropdown/index.d.ts +36 -18
  65. package/dist/components/form-select/Select.d.ts +18 -5
  66. package/dist/components/form-select/SelectDropdown.vue.d.ts +6 -3
  67. package/dist/components/form-select/SelectOption.vue.d.ts +1 -0
  68. package/dist/components/form-select/SelectOptionGroup.vue.d.ts +1 -0
  69. package/dist/components/form-select/hooks/use-options.d.ts +1 -1
  70. package/dist/components/form-select/hooks/use-select.d.ts +1 -1
  71. package/dist/components/form-select/index.d.ts +57 -17
  72. package/dist/components/form-select/interface.d.ts +8 -0
  73. package/dist/components/form-slider/Slider.vue.d.ts +1 -1
  74. package/dist/components/form-slider/index.d.ts +3 -3
  75. package/dist/components/form-textarea/Textarea.vue.d.ts +2 -4
  76. package/dist/components/form-textarea/index.d.ts +6 -12
  77. package/dist/components/image/Image.vue.d.ts +2 -4
  78. package/dist/components/image/index.d.ts +6 -12
  79. package/dist/components/layout/LayoutSidebar.vue.d.ts +5 -5
  80. package/dist/components/layout/index.d.ts +10 -10
  81. package/dist/components/line-chart/LineChart.d.ts +3 -3
  82. package/dist/components/line-chart/index.d.ts +9 -9
  83. package/dist/components/menu/Menu.d.ts +6 -3
  84. package/dist/components/menu/base-menu.vue.d.ts +6 -3
  85. package/dist/components/menu/index.d.ts +12 -6
  86. package/dist/components/menu/sub-menu-pop.vue.d.ts +6 -3
  87. package/dist/components/network/Network.vue.d.ts +1 -1
  88. package/dist/components/network/index.d.ts +3 -3
  89. package/dist/components/pagination/page-options.vue.d.ts +60 -32
  90. package/dist/components/pie-chart/PieChart.d.ts +1 -1
  91. package/dist/components/pie-chart/index.d.ts +3 -3
  92. package/dist/components/resize-box/ResizeBox.vue.d.ts +2 -2
  93. package/dist/components/resize-box/index.d.ts +5 -5
  94. package/dist/components/scrollbar-v2/Scrollbar.vue.d.ts +2 -1
  95. package/dist/components/scrollbar-v2/index.d.ts +6 -3
  96. package/dist/components/table/Table.d.ts +1 -1
  97. package/dist/components/table/index.d.ts +3 -3
  98. package/dist/components/tabs/Tabs.d.ts +1 -1
  99. package/dist/components/tabs/index.d.ts +3 -3
  100. package/dist/components/time-picker/TimeColumn.vue.d.ts +6 -3
  101. package/dist/components/time-picker/TimePanel.vue.d.ts +6 -3
  102. package/dist/components/time-picker/TimePicker.vue.d.ts +9 -12
  103. package/dist/components/time-picker/index.d.ts +19 -27
  104. package/dist/components/trend-chart/components/TrendChart.d.ts +5 -5
  105. package/dist/components/trend-chart/components/trend-chart-curve.d.ts +1 -1
  106. package/dist/components/trend-chart/index.d.ts +14 -14
  107. package/dist/components/trigger/interface.d.ts +2 -0
  108. package/dist/components/virtual-list-v2/virtual-list.vue.d.ts +7 -4
  109. package/dist/es/_hooks/use-dialog-focus.js +69 -0
  110. package/dist/es/_hooks/use-pointer-drag.js +18 -0
  111. package/dist/es/_hooks/use-popup-close.js +27 -0
  112. package/dist/es/_hooks/use-popup-manager.js +26 -24
  113. package/dist/es/_hooks/use-popup-theme.js +18 -0
  114. package/dist/es/_hooks/use-teleport-container.js +9 -10
  115. package/dist/es/_utils/palette.js +57 -52
  116. package/dist/es/components/_components/select-view/select-view.js +89 -78
  117. package/dist/es/components/button/Button.js +1 -1
  118. package/dist/es/components/color-picker/ColorPicker.js +131 -102
  119. package/dist/es/components/color-picker/gradient-slider.js +38 -40
  120. package/dist/es/components/color-picker/panel.js +221 -192
  121. package/dist/es/components/color-picker/sv-panel.js +51 -50
  122. package/dist/es/components/config-provider/ConfigProvider.js +58 -41
  123. package/dist/es/components/dialog/Dialog.js +133 -186
  124. package/dist/es/components/drawer/src/Drawer.vue.js +59 -51
  125. package/dist/es/components/drawer/src/Drawer.vue2.js +117 -107
  126. package/dist/es/components/form/FormItem.vue.js +12 -12
  127. package/dist/es/components/form-input-tag/InputTag.js +1 -1
  128. package/dist/es/components/form-select/Select.js +348 -300
  129. package/dist/es/components/form-select/SelectDropdown.vue.js +7 -7
  130. package/dist/es/components/form-select/SelectOption.vue.js +22 -17
  131. package/dist/es/components/form-select/SelectOption.vue2.js +59 -51
  132. package/dist/es/components/form-select/SelectOptionGroup.vue.js +17 -13
  133. package/dist/es/components/form-select/SelectOptionGroup.vue2.js +8 -5
  134. package/dist/es/components/form-select/hooks/use-options.js +40 -40
  135. package/dist/es/components/form-select/hooks/use-select.js +76 -71
  136. package/dist/es/components/form-switch/Switch.vue.js +24 -24
  137. package/dist/es/components/image/Image.vue.js +12 -12
  138. package/dist/es/components/link/Link.vue.js +6 -6
  139. package/dist/es/components/menu/sub-menu-inline.vue.js +11 -11
  140. package/dist/es/components/menu/sub-menu-pop.vue.js +12 -12
  141. package/dist/es/components/notification/Notification.js +59 -59
  142. package/dist/es/components/resize-box/ResizeBox.vue.js +19 -22
  143. package/dist/es/components/skeleton/Skeleton.vue.js +9 -9
  144. package/dist/es/components/tag/Tag.vue.js +7 -7
  145. package/dist/es/components/trigger/Trigger.js +171 -163
  146. package/dist/es/style.css +1 -1
  147. package/dist/index.cjs +3 -3
  148. package/dist/index.umd.js +3 -3
  149. package/dist/style/bar-chart.js +1 -0
  150. package/dist/style/base.css +1 -1
  151. package/dist/style/button.css +1 -1
  152. package/dist/style/color-picker.css +1 -1
  153. package/dist/style/color-picker.js +4 -0
  154. package/dist/style/date-picker.js +4 -0
  155. package/dist/style/dependencies.json +296 -0
  156. package/dist/style/dialog.js +2 -0
  157. package/dist/style/drawer.js +3 -0
  158. package/dist/style/dropdown.js +5 -0
  159. package/dist/style/form-checkbox.css +1 -1
  160. package/dist/style/form-input-number.js +2 -0
  161. package/dist/style/form-input.css +1 -1
  162. package/dist/style/form-input.js +1 -0
  163. package/dist/style/form-select.js +5 -0
  164. package/dist/style/form-slider.js +5 -0
  165. package/dist/style/form.js +3 -0
  166. package/dist/style/heatmap.js +1 -0
  167. package/dist/style/image.js +2 -0
  168. package/dist/style/layout.js +1 -0
  169. package/dist/style/line-chart.js +1 -0
  170. package/dist/style/menu.js +3 -0
  171. package/dist/style/message-box.js +3 -0
  172. package/dist/style/pagination.js +9 -0
  173. package/dist/style/pie-chart.js +1 -0
  174. package/dist/style/popconfirm.js +3 -0
  175. package/dist/style/popover.js +1 -0
  176. package/dist/style/popup.js +2 -0
  177. package/dist/style/table.js +12 -0
  178. package/dist/style/time-picker.js +3 -0
  179. package/dist/style/tooltip.js +1 -0
  180. package/dist/style/upload.js +4 -0
  181. package/dist/style.css +1 -1
  182. package/package.json +17 -7
package/CHANGELOG.md CHANGED
@@ -2,7 +2,42 @@
2
2
 
3
3
  本项目遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
- ## [未发布]
5
+ ## [1.11.0] - 2026-10-06
6
+
7
+ ### 新增
8
+
9
+ - 随包提供 `AI_CODING.md` 官方编程使用规范和可复制到业务 AGENTS.md 的规则,明确版本定位、按章节检索、API 核实、验证和同团队双仓交付。保留完整 `AI_USAGE.md`,不要求 Agent 每次全文读取;精选手册补 Input、Textarea、ColorPicker 及完整按需表单示例。
10
+ - 新增独立 `AI_USAGE/`:短索引、通用规则、30 个精选组件/服务文件、按需表单完整 SFC 和公共类型导航;从已校验内容自动生成,检查来源、类型、示例、路径与发布完整性。文档站组件说明不因 AI 拆分修改。
11
+ - 按需 JS 样式入口自动引入传递依赖,并按全量 Sass 顺序生成;提供 `dist/style/dependencies.json`,加入真实生产消费、浏览器及负向回归门禁。
12
+
13
+ ### 修复
14
+
15
+ - 精确声明按需 JS 样式入口的副作用,避免生产 tree-shaking 丢失 CSS;补齐 Select 的浮层、滚动、空态、加载和多选 Checkbox 样式。
16
+ - Checkbox 原生输入恢复有效透明点击盒与默认/自定义图形焦点外框;Select 内嵌 Checkbox 的输入、文案和选项点击只提交一次,保留禁用和受控回写。
17
+ - ConfigProvider 响应式继承语言、尺寸、空态和主题配置;局部主题随 Trigger、Dialog、Drawer 的 Teleport 根同步,显式业务 token 保持优先。
18
+ - 修复弹层登记卸载、宿主迁移监听及定位;Dialog / Drawer 加强模态焦点、原生 radio 与 tabindex 顺序、焦点恢复和异步关闭防重。
19
+ - ColorPicker 补齐四档尺寸、Form 联动、自定义触发器契约、键盘语义及指针生命周期;Notification 原生属性和鼠标事件保留根结构。
20
+ - InputGroup 修复 Select 类名、接缝与内侧圆角;系统色焦点覆盖局部主题及浮层,共享动画响应减少动效;去除重复基础主题声明。
21
+
22
+ ### 工程与验证
23
+
24
+ - 扩充源码、样式、文档 API、覆盖率、发布包与安全审计门禁,保持现有体积预算。
25
+ - 修补可升级的传递开发依赖;生产审计无告警,两个无上游补丁的开发工具例外精确登记,2026-11-06 到期。
26
+ - 本次验收范围和剩余的平台、文档及业务回归任务见 `完整审查/`。尚未宣称所有组件、浏览器或宿主业务 E2E 全面验收。
27
+
28
+ ## [1.10.1] - 2026-10-06
29
+
30
+ ### 修复
31
+
32
+ - Button `loadingFill` 的覆盖层样式改为匹配实际结构,加载图标在按钮内居中,不再与内容挤占宽度;保留原尺寸与圆角,加载期间视觉隐藏文字及前后缀,结束后恢复,并补充可交互文档示例和编译样式回归测试。
33
+ - Select 的清空与展开图标共用末尾位置,可清空时始终显示 ×;清空保留面板状态并恢复焦点,不隐藏 Form 反馈。
34
+ - Select 统一拦截禁用 / 加载中的选择和删除,清理过期搜索任务;修复动态字段映射、缺失多选值保留、同键对象兜底更新、异步选项默认激活和分组虚拟化;插槽选项与虚拟配置并用时保留普通列表。
35
+ - 多选选项复选框统一由选项处理点击,不再参与外层 Form 注册或 Tab 顺序;原生输入属性落到真实输入,输入法 Backspace 不误删标签。
36
+ - Select 按实际已选值保留最新远程标签,缺失标签仍可清空且保留禁用项;清理卸载的虚拟行引用,加载期间不引用隐藏活动选项,并补齐 Trigger 滚动关闭配置类型。
37
+
38
+ ### 新增
39
+
40
+ - Select 公开 `focus()` / `blur()`、明确 `focus` / `blur` 事件,自定义 trigger 提供 `onKeydown`;展开时支持 Home / End 定位首末启用项,补齐 Props 类型与对象值、远程搜索、自定义触发器及图标的可交互文档示例。
6
41
 
7
42
  ## [1.10.0] - 2026-10-05
8
43
 
package/README.md CHANGED
@@ -233,13 +233,26 @@ import {
233
233
 
234
234
  ## AI 辅助开发
235
235
 
236
- 包内附带 `AI_USAGE.md`,包含常用组件的真实 props、事件与可直接复制的 Vue 示例,可作为 AI 编程助手的上下文:
236
+ AI 编程资料独立随包分发,文档站组件说明仍保持完整。推荐先读 `AI_CODING.md` 中的使用流程,并把其中的 x-next 规则合并到业务仓库 `AGENTS.md`;模型不需要预先了解 x-next。
237
+
238
+ ```text
239
+ node_modules/x-next/AI_CODING.md
240
+ node_modules/x-next/AI_USAGE/index.md
241
+ node_modules/x-next/AI_USAGE/core.md
242
+ node_modules/x-next/AI_USAGE/components/select.md
243
+ ```
244
+
245
+ Agent 先读短索引与通用规则,再按任务读取组件/场景文件。组件页包含真实 API 约束、模型、事件、样式及完整 Vue SFC,与严格校验的手册同源;不要把全文或整个目录反复加入上下文。未收录的能力通过 `AI_USAGE/catalog.md` 查公开类型。
246
+
247
+ 这些文件可用 `require.resolve('x-next/AI_USAGE/index.md')` 等公开路径定位。文件名不会让所有 AI 工具自动加载,业务项目应在自己的指令中明确引用。
248
+
249
+ 完整 `AI_USAGE.md` 继续兼容提供,旧包按章节读取:
237
250
 
238
251
  ```text
239
252
  node_modules/x-next/AI_USAGE.md
240
253
  ```
241
254
 
242
- 可用 `require.resolve('x-next/AI_USAGE.md')` 定位该文件。建议在项目自己的 AI 指令里写明这个路径——文件名本身不会让工具自动加载。文档站的 [AI 使用指南](https://x-next.yjmf.com/guide/ai-usage) 是同一份内容。
255
+ 文档站的 [AI 使用指南](https://x-next.yjmf.com/guide/ai-usage) 保留完整示例内容。
243
256
 
244
257
  ## 类型提示
245
258
 
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
13
  wrapperAttrs: import('vue').ComputedRef<{
14
14
  [x: string]: unknown;
15
15
  }>;
16
- classNames: import('vue').ComputedRef<unknown[]>;
16
+ classNames: import('vue').ComputedRef<import('vue').ClassValue[]>;
17
17
  iconClassName: import('vue').ComputedRef<string>;
18
18
  onMousedown: (event: MouseEvent) => void;
19
19
  onKeydown: (event: KeyboardEvent) => void;
@@ -0,0 +1,7 @@
1
+ import { Ref } from 'vue';
2
+ export declare const getTabbableElements: (container: HTMLElement) => HTMLElement[];
3
+ export declare const useDialogFocus: (visible: Ref<boolean>, root: Ref<HTMLElement | undefined>, container: Ref<HTMLElement | undefined>, modal: Ref<boolean>, isTop: () => boolean) => {
4
+ focus: () => void;
5
+ restore: () => void;
6
+ onKeydown: (event: KeyboardEvent) => void;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ /** Pointer input (mouse/touch/pen), with a mouse fallback for older hosts. */
3
+ export declare const usePointerDrag: (disabled: Ref<boolean>, pick: (x: number, y: number) => void) => {
4
+ dragging: Ref<boolean, boolean>;
5
+ start: (event: MouseEvent | PointerEvent) => void;
6
+ };
@@ -0,0 +1,11 @@
1
+ import { Ref } from 'vue';
2
+ type CloseAction = 'ok' | 'cancel';
3
+ /** One close attempt across footer, mask, close icon and Escape. */
4
+ export declare const usePopupClose: (visible: Ref<boolean>, before: (action: CloseAction, event?: Event) => boolean | Promise<boolean>, close: (action: CloseAction, event?: Event) => void) => {
5
+ loading: {
6
+ ok: boolean;
7
+ cancel: boolean;
8
+ };
9
+ requestClose: (action: CloseAction, event?: Event) => void;
10
+ };
11
+ export {};
@@ -0,0 +1,5 @@
1
+ /** Vue injection survives Teleport; reapply its CSS boundary on the actual popup root. */
2
+ export declare const usePopupTheme: () => {
3
+ popupThemeStyle: import('vue').ComputedRef<import('vue').CSSProperties | undefined>;
4
+ popupThemeName: import('vue').ComputedRef<"dark" | undefined>;
5
+ };
@@ -70,6 +70,8 @@ export declare const applyThemeColor: (seed: string, options?: PaletteOptions &
70
70
  name?: string;
71
71
  target?: HTMLElement | null;
72
72
  }) => string[];
73
+ /** Internal declarative counterpart, also usable during SSR and by Teleport roots. */
74
+ export declare const getThemeColorStyles: (seed: string, dark?: boolean) => Record<string, string>;
73
75
  /**
74
76
  * 返回指定色名会写入的全部变量名。
75
77
  * 供 ConfigProvider 在换色/卸载时精确清理,避免残留失效变量。
@@ -46,9 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
46
46
  required: true;
47
47
  };
48
48
  }>, {
49
- wrapperAttrs: import('vue').ComputedRef<Omit<{
50
- [x: string]: unknown;
51
- }, string>>;
49
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
52
50
  formControlAttrs0: import('vue').ComputedRef<Record<string, unknown>>;
53
51
  formControlAttrs1: import('vue').ComputedRef<Record<string, unknown>>;
54
52
  t: (key: import('../../../locale').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
@@ -40,9 +40,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
40
40
  required: true;
41
41
  };
42
42
  }>, {
43
- wrapperAttrs: import('vue').ComputedRef<Omit<{
44
- [x: string]: unknown;
45
- }, string>>;
43
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
46
44
  formControlAttrs: import('vue').ComputedRef<Record<string, unknown>>;
47
45
  t: (key: import('../../../locale').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
48
46
  feedback: import('vue').Ref<string | undefined, string | undefined>;
@@ -40,6 +40,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
40
40
  type: BooleanConstructor;
41
41
  default: boolean;
42
42
  };
43
+ clearable: {
44
+ type: BooleanConstructor;
45
+ default: undefined;
46
+ };
43
47
  allowCreate: {
44
48
  type: BooleanConstructor;
45
49
  default: boolean;
@@ -114,6 +118,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
114
118
  type: BooleanConstructor;
115
119
  default: boolean;
116
120
  };
121
+ clearable: {
122
+ type: BooleanConstructor;
123
+ default: undefined;
124
+ };
117
125
  allowCreate: {
118
126
  type: BooleanConstructor;
119
127
  default: boolean;
@@ -153,6 +161,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
153
161
  maxTagCount: number;
154
162
  retainInputValue: boolean;
155
163
  tagNowrap: boolean;
164
+ clearable: boolean;
156
165
  allowCreate: boolean;
157
166
  allowSearch: boolean;
158
167
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -72,7 +72,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
72
72
  modifier: (className: string) => string;
73
73
  is: (className: string) => string;
74
74
  };
75
- cls: import('vue').ComputedRef<unknown[]>;
75
+ cls: import('vue').ComputedRef<import('vue').ClassValue[]>;
76
76
  rootAttrs: import('vue').ComputedRef<{
77
77
  [x: string]: unknown;
78
78
  }>;
@@ -41,7 +41,7 @@ export declare const Alert: {
41
41
  modifier: (className: string) => string;
42
42
  is: (className: string) => string;
43
43
  };
44
- cls: import('vue').ComputedRef<unknown[]>;
44
+ cls: import('vue').ComputedRef<import('vue').ClassValue[]>;
45
45
  rootAttrs: import('vue').ComputedRef<{
46
46
  [x: string]: unknown;
47
47
  }>;
@@ -598,7 +598,7 @@ export declare const Alert: {
598
598
  modifier: (className: string) => string;
599
599
  is: (className: string) => string;
600
600
  };
601
- cls: import('vue').ComputedRef<unknown[]>;
601
+ cls: import('vue').ComputedRef<import('vue').ClassValue[]>;
602
602
  rootAttrs: import('vue').ComputedRef<{
603
603
  [x: string]: unknown;
604
604
  }>;
@@ -662,7 +662,7 @@ export declare const Alert: {
662
662
  modifier: (className: string) => string;
663
663
  is: (className: string) => string;
664
664
  };
665
- cls: import('vue').ComputedRef<unknown[]>;
665
+ cls: import('vue').ComputedRef<import('vue').ClassValue[]>;
666
666
  rootAttrs: import('vue').ComputedRef<{
667
667
  [x: string]: unknown;
668
668
  }>;
@@ -246,11 +246,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
246
246
  }>, {
247
247
  loading: boolean | Record<string, unknown>;
248
248
  legend: boolean;
249
- height: string | number;
250
- width: string | number;
251
249
  grid: import('./interface').BarChartGridOptions;
252
- padding: string | number;
253
250
  tooltip: boolean;
251
+ padding: string | number;
252
+ height: string | number;
253
+ width: string | number;
254
254
  categories: (string | number)[];
255
255
  series: BarChartSeries[];
256
256
  stack: boolean;
@@ -172,11 +172,11 @@ export declare const BarChart: {
172
172
  }, import('vue').PublicProps, {
173
173
  loading: boolean | Record<string, unknown>;
174
174
  legend: boolean;
175
- height: string | number;
176
- width: string | number;
177
175
  grid: import('./interface').BarChartGridOptions;
178
- padding: string | number;
179
176
  tooltip: boolean;
177
+ padding: string | number;
178
+ height: string | number;
179
+ width: string | number;
180
180
  categories: (string | number)[];
181
181
  series: import('./interface').BarChartSeries[];
182
182
  stack: boolean;
@@ -377,11 +377,11 @@ export declare const BarChart: {
377
377
  }, {}, {}, {}, {
378
378
  loading: boolean | Record<string, unknown>;
379
379
  legend: boolean;
380
- height: string | number;
381
- width: string | number;
382
380
  grid: import('./interface').BarChartGridOptions;
383
- padding: string | number;
384
381
  tooltip: boolean;
382
+ padding: string | number;
383
+ height: string | number;
384
+ width: string | number;
385
385
  categories: (string | number)[];
386
386
  series: import('./interface').BarChartSeries[];
387
387
  stack: boolean;
@@ -565,11 +565,11 @@ export declare const BarChart: {
565
565
  }, string, {
566
566
  loading: boolean | Record<string, unknown>;
567
567
  legend: boolean;
568
- height: string | number;
569
- width: string | number;
570
568
  grid: import('./interface').BarChartGridOptions;
571
- padding: string | number;
572
569
  tooltip: boolean;
570
+ padding: string | number;
571
+ height: string | number;
572
+ width: string | number;
573
573
  categories: (string | number)[];
574
574
  series: import('./interface').BarChartSeries[];
575
575
  stack: boolean;
@@ -1,4 +1,4 @@
1
- import { PropType, SlotsType } from 'vue';
1
+ import { PropType, SlotsType, ButtonHTMLAttributes, VNodeProps } from 'vue';
2
2
  import { ColorFormat } from '../../_utils/color';
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  /**
@@ -234,6 +234,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
234
234
  trigger?: (props: {
235
235
  value: string;
236
236
  visible: boolean;
237
+ triggerAttrs: ButtonHTMLAttributes & VNodeProps;
237
238
  }) => unknown;
238
239
  }>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
239
240
  export default _default;
@@ -76,6 +76,7 @@ export declare const ColorPicker: {
76
76
  trigger?: (props: {
77
77
  value: string;
78
78
  visible: boolean;
79
+ triggerAttrs: import('vue').ButtonHTMLAttributes & import('vue').VNodeProps;
79
80
  }) => unknown;
80
81
  }>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
81
82
  P: {};
@@ -230,6 +231,7 @@ export declare const ColorPicker: {
230
231
  trigger?: (props: {
231
232
  value: string;
232
233
  visible: boolean;
234
+ triggerAttrs: import('vue').ButtonHTMLAttributes & import('vue').VNodeProps;
233
235
  }) => unknown;
234
236
  }>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
235
237
  install(app: import('vue').App): void;
@@ -1,6 +1,8 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ColorFormat, HSV, RGBA } from '../../_utils/color';
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ id: StringConstructor;
5
+ ariaLabel: StringConstructor;
4
6
  value: {
5
7
  type: PropType<RGBA>;
6
8
  required: true;
@@ -53,6 +55,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
53
55
  modifier: (className: string) => string;
54
56
  is: (className: string) => string;
55
57
  };
58
+ panelRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
59
+ focus: () => void;
56
60
  activeMode: import('vue').Ref<ColorFormat, ColorFormat>;
57
61
  hsv: import('vue').Ref<{
58
62
  h: number;
@@ -653,6 +657,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
653
657
  clear: () => true;
654
658
  close: () => true;
655
659
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
660
+ id: StringConstructor;
661
+ ariaLabel: StringConstructor;
656
662
  value: {
657
663
  type: PropType<RGBA>;
658
664
  required: true;
@@ -1,4 +1,4 @@
1
- import { InjectionKey, Ref, Slots } from 'vue';
1
+ import { CSSProperties, InjectionKey, Ref, Slots } from 'vue';
2
2
  import { Size } from '../../_utils/constant';
3
3
  import { Locale } from '../../locale/interface';
4
4
  /**
@@ -14,5 +14,11 @@ export interface ConfigProviderContext {
14
14
  slots: Slots;
15
15
  /** 语言包;未提供时由 locale 模块的全局默认兜底 */
16
16
  locale?: Ref<Locale | undefined>;
17
+ /** Internal theme boundary carried onto Teleport roots. */
18
+ popupTheme?: Ref<{
19
+ dark: boolean;
20
+ seed?: string;
21
+ style: CSSProperties;
22
+ }>;
17
23
  }
18
24
  export declare const configProviderInjectionKey: InjectionKey<ConfigProviderContext>;
@@ -117,9 +117,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
117
117
  };
118
118
  }>, {
119
119
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
120
- attrs: {
121
- [x: string]: unknown;
122
- };
120
+ attrs: import('vue').Attrs;
123
121
  className: {
124
122
  block: string;
125
123
  element: (className: string) => string;
@@ -1043,9 +1041,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1043
1041
  required: true;
1044
1042
  };
1045
1043
  }>, {
1046
- wrapperAttrs: import('vue').ComputedRef<Omit<{
1047
- [x: string]: unknown;
1048
- }, string>>;
1044
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
1049
1045
  formControlAttrs: import('vue').ComputedRef<Record<string, unknown>>;
1050
1046
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
1051
1047
  feedback: import('vue').Ref<string | undefined, string | undefined>;
@@ -1655,9 +1651,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1655
1651
  required: true;
1656
1652
  };
1657
1653
  }>, {
1658
- wrapperAttrs: import('vue').ComputedRef<Omit<{
1659
- [x: string]: unknown;
1660
- }, string>>;
1654
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
1661
1655
  formControlAttrs0: import('vue').ComputedRef<Record<string, unknown>>;
1662
1656
  formControlAttrs1: import('vue').ComputedRef<Record<string, unknown>>;
1663
1657
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
@@ -2910,11 +2904,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
2910
2904
  modifier: (className: string) => string;
2911
2905
  is: (className: string) => string;
2912
2906
  };
2913
- cls: import('vue').ComputedRef<unknown[]>;
2907
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
2914
2908
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
2915
2909
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
2916
2910
  getContainerAttrs: () => {
2917
2911
  [x: string]: unknown;
2912
+ class?: import('vue').ClassValue;
2918
2913
  };
2919
2914
  getContainerStyle: () => import('vue').StyleValue;
2920
2915
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -3037,11 +3032,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
3037
3032
  modifier: (className: string) => string;
3038
3033
  is: (className: string) => string;
3039
3034
  };
3040
- cls: import('vue').ComputedRef<unknown[]>;
3035
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
3041
3036
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
3042
3037
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
3043
3038
  getContainerAttrs: () => {
3044
3039
  [x: string]: unknown;
3040
+ class?: import('vue').ClassValue;
3045
3041
  };
3046
3042
  getContainerStyle: () => import('vue').StyleValue;
3047
3043
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -3108,11 +3104,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
3108
3104
  modifier: (className: string) => string;
3109
3105
  is: (className: string) => string;
3110
3106
  };
3111
- cls: import('vue').ComputedRef<unknown[]>;
3107
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
3112
3108
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
3113
3109
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
3114
3110
  getContainerAttrs: () => {
3115
3111
  [x: string]: unknown;
3112
+ class?: import('vue').ClassValue;
3116
3113
  };
3117
3114
  getContainerStyle: () => import('vue').StyleValue;
3118
3115
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -132,9 +132,7 @@ export declare const DatePicker: {
132
132
  "onSelect-shortcut"?: ((_shortcut: import('./interface').DatePickerShortcut) => any) | undefined;
133
133
  }>, {
134
134
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
135
- attrs: {
136
- [x: string]: unknown;
137
- };
135
+ attrs: import('vue').Attrs;
138
136
  className: {
139
137
  block: string;
140
138
  element: (className: string) => string;
@@ -929,9 +927,7 @@ export declare const DatePicker: {
929
927
  required: true;
930
928
  };
931
929
  }>, {
932
- wrapperAttrs: import('vue').ComputedRef<Omit<{
933
- [x: string]: unknown;
934
- }, string>>;
930
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
935
931
  formControlAttrs: import('vue').ComputedRef<Record<string, unknown>>;
936
932
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
937
933
  feedback: import('vue').Ref<string | undefined, string | undefined>;
@@ -1541,9 +1537,7 @@ export declare const DatePicker: {
1541
1537
  required: true;
1542
1538
  };
1543
1539
  }>, {
1544
- wrapperAttrs: import('vue').ComputedRef<Omit<{
1545
- [x: string]: unknown;
1546
- }, string>>;
1540
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
1547
1541
  formControlAttrs0: import('vue').ComputedRef<Record<string, unknown>>;
1548
1542
  formControlAttrs1: import('vue').ComputedRef<Record<string, unknown>>;
1549
1543
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
@@ -2796,11 +2790,12 @@ export declare const DatePicker: {
2796
2790
  modifier: (className: string) => string;
2797
2791
  is: (className: string) => string;
2798
2792
  };
2799
- cls: import('vue').ComputedRef<unknown[]>;
2793
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
2800
2794
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
2801
2795
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
2802
2796
  getContainerAttrs: () => {
2803
2797
  [x: string]: unknown;
2798
+ class?: import('vue').ClassValue;
2804
2799
  };
2805
2800
  getContainerStyle: () => import('vue').StyleValue;
2806
2801
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -2923,11 +2918,12 @@ export declare const DatePicker: {
2923
2918
  modifier: (className: string) => string;
2924
2919
  is: (className: string) => string;
2925
2920
  };
2926
- cls: import('vue').ComputedRef<unknown[]>;
2921
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
2927
2922
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
2928
2923
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
2929
2924
  getContainerAttrs: () => {
2930
2925
  [x: string]: unknown;
2926
+ class?: import('vue').ClassValue;
2931
2927
  };
2932
2928
  getContainerStyle: () => import('vue').StyleValue;
2933
2929
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -2994,11 +2990,12 @@ export declare const DatePicker: {
2994
2990
  modifier: (className: string) => string;
2995
2991
  is: (className: string) => string;
2996
2992
  };
2997
- cls: import('vue').ComputedRef<unknown[]>;
2993
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
2998
2994
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
2999
2995
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
3000
2996
  getContainerAttrs: () => {
3001
2997
  [x: string]: unknown;
2998
+ class?: import('vue').ClassValue;
3002
2999
  };
3003
3000
  getContainerStyle: () => import('vue').StyleValue;
3004
3001
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -3541,9 +3538,7 @@ export declare const DatePicker: {
3541
3538
  "onSelect-shortcut"?: ((_shortcut: import('./interface').DatePickerShortcut) => any) | undefined;
3542
3539
  }>, {
3543
3540
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
3544
- attrs: {
3545
- [x: string]: unknown;
3546
- };
3541
+ attrs: import('vue').Attrs;
3547
3542
  className: {
3548
3543
  block: string;
3549
3544
  element: (className: string) => string;
@@ -3852,9 +3847,7 @@ export declare const DatePicker: {
3852
3847
  "onSelect-shortcut"?: ((_shortcut: import('./interface').DatePickerShortcut) => any) | undefined;
3853
3848
  }>, {
3854
3849
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
3855
- attrs: {
3856
- [x: string]: unknown;
3857
- };
3850
+ attrs: import('vue').Attrs;
3858
3851
  className: {
3859
3852
  block: string;
3860
3853
  element: (className: string) => string;
@@ -4649,9 +4642,7 @@ export declare const DatePicker: {
4649
4642
  required: true;
4650
4643
  };
4651
4644
  }>, {
4652
- wrapperAttrs: import('vue').ComputedRef<Omit<{
4653
- [x: string]: unknown;
4654
- }, string>>;
4645
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
4655
4646
  formControlAttrs: import('vue').ComputedRef<Record<string, unknown>>;
4656
4647
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
4657
4648
  feedback: import('vue').Ref<string | undefined, string | undefined>;
@@ -5261,9 +5252,7 @@ export declare const DatePicker: {
5261
5252
  required: true;
5262
5253
  };
5263
5254
  }>, {
5264
- wrapperAttrs: import('vue').ComputedRef<Omit<{
5265
- [x: string]: unknown;
5266
- }, string>>;
5255
+ wrapperAttrs: import('vue').ComputedRef<Omit<import('vue').Attrs, string>>;
5267
5256
  formControlAttrs0: import('vue').ComputedRef<Record<string, unknown>>;
5268
5257
  formControlAttrs1: import('vue').ComputedRef<Record<string, unknown>>;
5269
5258
  t: (key: import('../..').LocaleKey | (string & {}), params?: Record<string, string | number>) => string;
@@ -6516,11 +6505,12 @@ export declare const DatePicker: {
6516
6505
  modifier: (className: string) => string;
6517
6506
  is: (className: string) => string;
6518
6507
  };
6519
- cls: import('vue').ComputedRef<unknown[]>;
6508
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
6520
6509
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
6521
6510
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
6522
6511
  getContainerAttrs: () => {
6523
6512
  [x: string]: unknown;
6513
+ class?: import('vue').ClassValue;
6524
6514
  };
6525
6515
  getContainerStyle: () => import('vue').StyleValue;
6526
6516
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -6643,11 +6633,12 @@ export declare const DatePicker: {
6643
6633
  modifier: (className: string) => string;
6644
6634
  is: (className: string) => string;
6645
6635
  };
6646
- cls: import('vue').ComputedRef<unknown[]>;
6636
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
6647
6637
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
6648
6638
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
6649
6639
  getContainerAttrs: () => {
6650
6640
  [x: string]: unknown;
6641
+ class?: import('vue').ClassValue;
6651
6642
  };
6652
6643
  getContainerStyle: () => import('vue').StyleValue;
6653
6644
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -6714,11 +6705,12 @@ export declare const DatePicker: {
6714
6705
  modifier: (className: string) => string;
6715
6706
  is: (className: string) => string;
6716
6707
  };
6717
- cls: import('vue').ComputedRef<unknown[]>;
6708
+ cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | null | undefined)[]>;
6718
6709
  style: import('vue').ComputedRef<import('vue').StyleValue[]>;
6719
6710
  rootRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
6720
6711
  getContainerAttrs: () => {
6721
6712
  [x: string]: unknown;
6713
+ class?: import('vue').ClassValue;
6722
6714
  };
6723
6715
  getContainerStyle: () => import('vue').StyleValue;
6724
6716
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;