@robot-admin/naive-ui-components 0.31.5 → 0.32.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 (266) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +9 -5
  3. package/README_EN.md +9 -5
  4. package/dist/C_AutoComplete.cjs +1 -0
  5. package/dist/C_AutoComplete.css +36 -0
  6. package/dist/C_AutoComplete.d.cts +4 -0
  7. package/dist/C_AutoComplete.d.ts +4 -0
  8. package/dist/C_AutoComplete.js +1 -0
  9. package/dist/C_AutoComplete2.cjs +1 -0
  10. package/dist/C_AutoComplete2.js +1 -0
  11. package/dist/C_AvatarGroup.d.cts +1 -1
  12. package/dist/C_AvatarGroup.d.ts +1 -1
  13. package/dist/C_Barcode.d.cts +1 -1
  14. package/dist/C_Barcode.d.ts +1 -1
  15. package/dist/C_BatchResult.d.cts +1 -1
  16. package/dist/C_BatchResult.d.ts +1 -1
  17. package/dist/C_Breadcrumb.d.cts +2 -2
  18. package/dist/C_Breadcrumb.d.ts +1 -1
  19. package/dist/C_Cascade.d.cts +1 -1
  20. package/dist/C_Cascade.d.ts +1 -1
  21. package/dist/C_Chat.d.cts +1 -1
  22. package/dist/C_Chat.d.ts +1 -1
  23. package/dist/C_City.d.cts +1 -1
  24. package/dist/C_City.d.ts +1 -1
  25. package/dist/C_Code.d.cts +1 -1
  26. package/dist/C_Code.d.ts +1 -1
  27. package/dist/C_ContextMenu.d.cts +1 -1
  28. package/dist/C_ContextMenu.d.ts +1 -1
  29. package/dist/C_DataPicker.css +198 -31
  30. package/dist/C_DataPicker.d.cts +2 -2
  31. package/dist/C_DataPicker.d.ts +2 -2
  32. package/dist/C_Date.d.cts +1 -1
  33. package/dist/C_Date.d.ts +1 -1
  34. package/dist/C_Density.d.cts +1 -1
  35. package/dist/C_Density.d.ts +1 -1
  36. package/dist/C_Editor.d.cts +1 -1
  37. package/dist/C_Editor.d.ts +1 -1
  38. package/dist/C_ErrorSummary.d.cts +1 -1
  39. package/dist/C_ErrorSummary.d.ts +1 -1
  40. package/dist/C_Form.base.css +68 -1
  41. package/dist/C_Form.cjs +1 -1
  42. package/dist/C_Form.css +68 -1
  43. package/dist/C_Form.d.cts +3 -3
  44. package/dist/C_Form.d.ts +5 -3
  45. package/dist/C_Form.js +1 -1
  46. package/dist/C_FormModal.cjs +1 -1
  47. package/dist/C_FormModal.d.cts +1 -1
  48. package/dist/C_FormModal.d.ts +3 -1
  49. package/dist/C_FormModal.js +1 -1
  50. package/dist/C_FormModal2.cjs +1 -1
  51. package/dist/C_FormModal2.js +1 -1
  52. package/dist/C_FormSearch.css +139 -72
  53. package/dist/C_FormSearch.d.cts +1 -1
  54. package/dist/C_FormSearch.d.ts +1 -1
  55. package/dist/C_Guide.d.cts +1 -1
  56. package/dist/C_Guide.d.ts +1 -1
  57. package/dist/C_Icon.d.cts +1 -1
  58. package/dist/C_Icon.d.ts +1 -1
  59. package/dist/C_Language.d.cts +1 -1
  60. package/dist/C_Language.d.ts +1 -1
  61. package/dist/C_Loading.d.cts +1 -1
  62. package/dist/C_Loading.d.ts +1 -1
  63. package/dist/C_Login.d.cts +1 -1
  64. package/dist/C_Login.d.ts +1 -1
  65. package/dist/C_Markdown.d.cts +1 -1
  66. package/dist/C_Markdown.d.ts +1 -1
  67. package/dist/C_Menu.d.cts +2 -2
  68. package/dist/C_Menu.d.ts +1 -1
  69. package/dist/C_OrgChart.d.cts +1 -1
  70. package/dist/C_OrgChart.d.ts +1 -1
  71. package/dist/C_Progress.d.cts +1 -1
  72. package/dist/C_Progress.d.ts +1 -1
  73. package/dist/C_SectionNav.d.cts +1 -1
  74. package/dist/C_SectionNav.d.ts +1 -1
  75. package/dist/C_Select.css +32 -1
  76. package/dist/C_Select.d.cts +4 -2
  77. package/dist/C_Select.d.ts +4 -2
  78. package/dist/C_Select2.cjs +1 -1
  79. package/dist/C_Select2.js +1 -1
  80. package/dist/C_Skeleton.d.cts +1 -1
  81. package/dist/C_Skeleton.d.ts +1 -1
  82. package/dist/C_Steps.d.cts +1 -1
  83. package/dist/C_Steps.d.ts +1 -1
  84. package/dist/C_Table.base.css +68 -1
  85. package/dist/C_Table.cjs +1 -1
  86. package/dist/C_Table.d.cts +1 -1
  87. package/dist/C_Table.d.ts +11 -8
  88. package/dist/C_Table.js +1 -1
  89. package/dist/C_Table2.cjs +1 -1
  90. package/dist/C_Table2.js +1 -1
  91. package/dist/C_TagsView.d.cts +2 -2
  92. package/dist/C_TagsView.d.ts +1 -1
  93. package/dist/C_Theme.d.cts +1 -1
  94. package/dist/C_Theme.d.ts +1 -1
  95. package/dist/C_Timeline.d.cts +1 -1
  96. package/dist/C_Timeline.d.ts +1 -1
  97. package/dist/C_Transfer.d.cts +1 -1
  98. package/dist/C_Transfer.d.ts +1 -1
  99. package/dist/C_Tree.cjs +1 -1
  100. package/dist/C_Tree.d.ts +10 -7
  101. package/dist/C_Tree.js +1 -1
  102. package/dist/C_Tree2.cjs +1 -1
  103. package/dist/C_Tree2.js +1 -1
  104. package/dist/OptionStatus.cjs +1 -0
  105. package/dist/OptionStatus.js +1 -0
  106. package/dist/constants.d.cts +2 -2
  107. package/dist/constants.d.ts +2 -2
  108. package/dist/constants2.d.cts +2 -2
  109. package/dist/constants2.d.ts +2 -2
  110. package/dist/constants4.d.cts +5 -5
  111. package/dist/constants4.d.ts +5 -5
  112. package/dist/constants5.d.cts +4 -4
  113. package/dist/constants5.d.ts +4 -4
  114. package/dist/data.d.cts +2 -1
  115. package/dist/data.d.ts +2 -1
  116. package/dist/data2.d.cts +6 -6
  117. package/dist/data2.d.ts +6 -6
  118. package/dist/dateRange.d.cts +9 -4
  119. package/dist/dateRange.d.ts +9 -4
  120. package/dist/fieldRenderers.cjs +1 -0
  121. package/dist/fieldRenderers.js +1 -0
  122. package/dist/formField.cjs +1 -1
  123. package/dist/formField.d.cts +46 -19
  124. package/dist/formField.d.ts +46 -19
  125. package/dist/formField.js +1 -1
  126. package/dist/helpers.cjs +1 -1
  127. package/dist/helpers.js +1 -1
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.d.cts +62 -58
  130. package/dist/index.d.ts +62 -57
  131. package/dist/index.js +1 -1
  132. package/dist/index.vue.d.cts +4 -4
  133. package/dist/index.vue.d.ts +4 -4
  134. package/dist/index10.vue.d.cts +27 -35
  135. package/dist/index10.vue.d.ts +37 -80
  136. package/dist/index11.vue.d.cts +37 -80
  137. package/dist/index11.vue.d.ts +83 -16
  138. package/dist/index12.vue.d.cts +83 -16
  139. package/dist/index12.vue.d.ts +16 -59
  140. package/dist/index13.vue.d.cts +16 -59
  141. package/dist/index13.vue.d.ts +57 -17
  142. package/dist/index14.vue.d.cts +57 -17
  143. package/dist/index14.vue.d.ts +18 -55
  144. package/dist/index15.vue.d.cts +18 -55
  145. package/dist/index15.vue.d.ts +53 -124
  146. package/dist/index16.vue.d.cts +53 -124
  147. package/dist/index16.vue.d.ts +123 -51
  148. package/dist/index17.vue.d.cts +123 -51
  149. package/dist/index17.vue.d.ts +52 -25
  150. package/dist/index18.vue.d.cts +52 -25
  151. package/dist/index18.vue.d.ts +25 -12
  152. package/dist/index19.vue.d.cts +25 -12
  153. package/dist/index19.vue.d.ts +13 -129
  154. package/dist/index2.vue.d.cts +26 -82
  155. package/dist/index2.vue.d.ts +26 -82
  156. package/dist/index20.vue.d.cts +13 -129
  157. package/dist/index20.vue.d.ts +129 -76
  158. package/dist/index21.vue.d.cts +129 -76
  159. package/dist/index21.vue.d.ts +78 -72
  160. package/dist/index22.vue.d.cts +75 -97
  161. package/dist/index22.vue.d.ts +68 -96
  162. package/dist/index23.vue.d.cts +91 -40
  163. package/dist/index23.vue.d.ts +91 -40
  164. package/dist/index24.vue.d.cts +49 -23
  165. package/dist/index24.vue.d.ts +49 -23
  166. package/dist/index25.vue.d.cts +19 -46
  167. package/dist/index25.vue.d.ts +19 -46
  168. package/dist/index26.vue.d.cts +25 -98
  169. package/dist/index26.vue.d.ts +25 -98
  170. package/dist/index27.vue.d.cts +95 -37
  171. package/dist/index27.vue.d.ts +95 -37
  172. package/dist/index28.vue.d.cts +34 -8
  173. package/dist/index28.vue.d.ts +34 -8
  174. package/dist/index29.vue.d.cts +9 -86
  175. package/dist/index29.vue.d.ts +9 -86
  176. package/dist/index3.vue.d.cts +80 -30
  177. package/dist/index3.vue.d.ts +80 -30
  178. package/dist/index30.vue.d.cts +85 -99
  179. package/dist/index30.vue.d.ts +85 -99
  180. package/dist/index31.vue.d.cts +94 -63
  181. package/dist/index31.vue.d.ts +94 -63
  182. package/dist/index32.vue.d.cts +79 -0
  183. package/dist/index32.vue.d.ts +79 -0
  184. package/dist/index4.vue.d.cts +30 -19
  185. package/dist/index4.vue.d.ts +30 -19
  186. package/dist/index5.vue.d.cts +19 -128
  187. package/dist/index5.vue.d.ts +17 -34
  188. package/dist/index6.vue.d.cts +127 -35
  189. package/dist/index6.vue.d.ts +30 -22
  190. package/dist/index7.vue.d.cts +30 -22
  191. package/dist/index7.vue.d.ts +25 -118
  192. package/dist/index8.vue.d.cts +25 -118
  193. package/dist/index8.vue.d.ts +112 -21
  194. package/dist/index9.vue.d.cts +112 -21
  195. package/dist/index9.vue.d.ts +27 -35
  196. package/dist/mapUtils.d.cts +3 -3
  197. package/dist/mapUtils.d.ts +3 -3
  198. package/dist/optionSource.d.cts +30 -0
  199. package/dist/optionSource.d.ts +30 -0
  200. package/dist/presets.d.cts +1 -1
  201. package/dist/presets.d.ts +1 -1
  202. package/dist/resolver.cjs +1 -1
  203. package/dist/resolver.d.cts +1 -1
  204. package/dist/resolver.d.ts +1 -1
  205. package/dist/resolver.js +1 -1
  206. package/dist/serializeSearch.cjs +1 -1
  207. package/dist/serializeSearch.js +1 -1
  208. package/dist/style.css +234 -103
  209. package/dist/types2.d.cts +29 -103
  210. package/dist/types2.d.ts +30 -55
  211. package/dist/types3.d.cts +104 -55
  212. package/dist/types3.d.ts +60 -0
  213. package/dist/types4.d.cts +60 -0
  214. package/dist/types4.d.ts +42 -0
  215. package/dist/types5.d.cts +42 -0
  216. package/dist/useCalendarEvents.d.cts +1 -1
  217. package/dist/useCalendarEvents.d.ts +1 -1
  218. package/dist/useCollapsePanel.d.cts +5 -5
  219. package/dist/useCollapsePanel.d.ts +5 -5
  220. package/dist/useComponentLocale.cjs +1 -1
  221. package/dist/useComponentLocale.js +1 -1
  222. package/dist/useCropperCore.d.cts +9 -9
  223. package/dist/useCropperCore.d.ts +9 -9
  224. package/dist/useDataResource.cjs +1 -1
  225. package/dist/useDataResource.js +1 -1
  226. package/dist/useDraggableLayout.d.cts +2 -2
  227. package/dist/useDraggableLayout.d.ts +2 -2
  228. package/dist/useDynamicFormState.d.cts +15 -1
  229. package/dist/useDynamicFormState.d.ts +15 -1
  230. package/dist/useEdgeInteraction.d.cts +2 -2
  231. package/dist/useEdgeInteraction.d.ts +2 -2
  232. package/dist/useFormConfig.d.cts +5 -2
  233. package/dist/useFormConfig.d.ts +5 -2
  234. package/dist/useFormRenderer.d.cts +1 -1
  235. package/dist/useFormRenderer.d.ts +1 -1
  236. package/dist/useFullscreen.d.cts +1 -1
  237. package/dist/useFullscreen.d.ts +1 -1
  238. package/dist/useGridWidth.cjs +1 -1
  239. package/dist/useGridWidth.js +1 -1
  240. package/dist/useInfiniteScroll.d.cts +2 -2
  241. package/dist/useInfiniteScroll.d.ts +2 -2
  242. package/dist/useQRCode.d.cts +3 -3
  243. package/dist/useQRCode.d.ts +3 -3
  244. package/dist/useSignatureHistory.d.cts +4 -4
  245. package/dist/useSignatureHistory.d.ts +4 -4
  246. package/dist/useSplitResize.d.cts +2 -2
  247. package/dist/useSplitResize.d.ts +2 -2
  248. package/dist/useTableQuery.d.cts +9 -11
  249. package/dist/useTableQuery.d.ts +9 -11
  250. package/dist/useWorkflowValidation.d.cts +33 -33
  251. package/dist/useWorkflowValidation.d.ts +33 -33
  252. package/dist/verification.d.cts +5 -5
  253. package/dist/verification.d.ts +5 -5
  254. package/docs/architecture.md +3 -1
  255. package/docs/components.en.md +2 -1
  256. package/docs/components.md +2 -1
  257. package/docs/engineering.en.md +11 -1
  258. package/docs/engineering.md +11 -1
  259. package/docs/guides/data-picker.md +37 -1
  260. package/docs/guides/remote-options.md +93 -0
  261. package/docs/guides/search-workflows.md +99 -2
  262. package/docs/search-selection-coverage.md +59 -0
  263. package/docs/wl-ui-produce-coverage.md +2 -0
  264. package/package.json +6 -3
  265. package/dist/helpers2.cjs +0 -1
  266. package/dist/helpers2.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @robot-admin/naive-ui-components
2
2
 
3
+ ## 0.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 为 C_Select、C_AutoComplete 与表单/搜索字段提供共享远程候选契约,内置防抖、分页、取消、回显和重试;新增类型可推导的字段助手,支持完整记录回填关联字段。
8
+
9
+ C_DataPicker 增加快捷浮层、分类导航、固定筛选、禁选规则与多选额度,以及显式隔离、选择前重新校验的历史和收藏。保留既有模态与内嵌选择契约。
10
+
11
+ 提供库内离线交互示例、产销场景核对、消费者类型与按需加载验证。
12
+
3
13
  ## 0.31.5
4
14
 
5
15
  ### Patch Changes
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div align="center">
6
6
  <p><strong>把重复的业务交互,沉淀为可组合的组件。</strong></p>
7
- <p>Vue 3 · Naive UI · TypeScript · 61 个业务组件</p>
7
+ <p>Vue 3 · Naive UI · TypeScript · 62 个业务组件</p>
8
8
  <p>
9
9
  <a href="https://www.npmjs.com/package/@robot-admin/naive-ui-components"><img src="https://img.shields.io/npm/v/@robot-admin/naive-ui-components?style=flat-square&amp;color=249D70&amp;labelColor=183C2E" alt="npm version"></a>
10
10
  <a href="./package.json"><img src="https://img.shields.io/badge/Vue-3.5+-249D70?style=flat-square&amp;logo=vue.js&amp;logoColor=white&amp;labelColor=183C2E" alt="Vue 3.5+"></a>
@@ -30,15 +30,17 @@
30
30
  | -------- | ------------------------------------------------------------------------------------------------------ |
31
31
  | 配置驱动 | 表单字段、表格列、操作按钮与弹窗通过类型化配置组合;表单提供 8 种布局 |
32
32
  | 类型贯通 | 字段路径、列定义、事件与实例方法配套类型;提供 `defineFormOptions`、`useCForm`、`useTableQuery` 等助手 |
33
- | 按需消费 | 61 个独立组件入口、自动导入 Resolver、组件样式入口,以及表单/表格的基础样式层级 |
33
+ | 按需消费 | 62 个独立组件入口、自动导入 Resolver、组件样式入口,以及表单/表格的基础样式层级 |
34
34
  | 独立接入 | 支持全量注册与局部导入;反馈、文案和全局配置可由宿主提供,表单弹窗可接入结构兼容的 Headless CRUD |
35
35
 
36
- 组件库负责界面与交互。业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.31.5**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
36
+ 组件库负责界面与交互。业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.32.0**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
37
37
 
38
38
  搜索条件、录入字段和操作按钮可以由响应式配置生成。筛选和编辑共享紧凑密度,支持校验、异步选项和业务弹窗。后端字典或权限由项目接入,表单和搜索消费普通选项,表格消费普通列配置。
39
39
 
40
40
  `C_Select` 支持独立单选、多选与自由标签。表单和搜索多选共用紧凑标签摘要,日期时间字段可直接读写接口字符串。见[多选与日期时间用法](./docs/guides/data-workflows.md#多选标签和日期时间)。
41
41
 
42
+ 远程选项、自由文本建议和多列实体选择分别使用 `C_Select`、`C_AutoComplete`、`C_DataPicker`,共享请求契约;表单与搜索字段可直接配置 `source`。见[搜索与选择用法](./docs/guides/search-workflows.md#远程选项与自由文本建议)及[产销场景核对](./docs/search-selection-coverage.md)。
43
+
42
44
  列表按场景组合 `C_FormSearch`、`C_ActionBar`、`C_FormModal` 和 `C_DataPicker`。同一套表单与搜索可搭配 `C_Table` 或 MachTable,各自使用原生表格配置和分页。见[组合用法](./docs/guides/data-workflows.md#搜索表单与弹窗组合)、[表单密度](./docs/guides/form-density.md)和[运行时性能](./docs/guides/runtime-performance.md)。
43
45
 
44
46
  搜索区用 `columns: 3` 或 `columns: 4` 限定每行字段数,操作按钮保持靠右。表单内的实体选择用 `presentation="inline"` 在原处展开,复杂的进阶查询可通过选择器的 `#query` 插槽接入多个条件。见[搜索区用法](./docs/guides/search-workflows.md)和[数据选择器](./docs/guides/data-picker.md)。
@@ -64,7 +66,7 @@
64
66
  | 工作空间 | `C_Menu` · `C_Tabs` · `C_TagsView` · `C_GlobalSearch` | 菜单、场景切换、多标签导航、全局搜索 |
65
67
  | 通用交互 | `C_Login` · `C_Captcha` · `C_Guide` · `C_PageLoading` | 登录、人机验证、功能引导、页面切换反馈 |
66
68
 
67
- 查看 [全部 61 个组件与依赖](./docs/components.md),或在 [Robot Admin](https://robotadmin.cn) 中体验组件场景。Cron 预览只计算时间,公式只进行本地试算;生产人机验证需接入服务端校验,详见[使用指南](./docs/guides/usage.md)。
69
+ 查看 [全部 62 个组件与依赖](./docs/components.md),或在 [Robot Admin](https://robotadmin.cn) 中体验组件场景。Cron 预览只计算时间,公式只进行本地试算;生产人机验证需接入服务端校验,详见[使用指南](./docs/guides/usage.md)。
68
70
 
69
71
  ## 快速开始
70
72
 
@@ -77,6 +79,8 @@ bun add @robot-admin/naive-ui-components
77
79
  bun add vue@^3.5.3 naive-ui@^2.35.0
78
80
  ```
79
81
 
82
+ 最低组合覆盖浏览器打包、类型与 CJS SSR;原生 Node ESM SSR 的已验证配置使用 Naive UI 2.45.3。旧版分发格式的边界见[消费环境矩阵](./docs/engineering.md#消费环境矩阵)。
83
+
80
84
  也可使用项目现有的 npm 或 pnpm。仅在对应场景安装可选 peer:
81
85
 
82
86
  | 功能 | 额外安装 |
@@ -179,7 +183,7 @@ Resolver 默认解析到组件子路径;`importStyle` 默认是 `false`,需
179
183
  | 文档 | 内容 |
180
184
  | -------------------------------------------------------- | ---------------------------------------------------------------- |
181
185
  | [架构与隔离](./docs/architecture.md) | 依赖边界、实例所有权与独立 Element Plus 演进路线 |
182
- | [组件目录](./docs/components.md) | 61 个组件、外部依赖与各组件的使用边界 |
186
+ | [组件目录](./docs/components.md) | 62 个组件、外部依赖与各组件的使用边界 |
183
187
  | [使用指南](./docs/guides/usage.md) | 导入、表单表格、Cron/公式、地图、引导、人机验证、登录与页面加载 |
184
188
  | [密度与多表工作台](./docs/guides/table-density.md) | 表单/搜索/表格统一密度、编辑模式、分屏与树能力 |
185
189
  | [大列表与异步任务](./docs/guides/runtime-performance.md) | 自动窗口化、聊天滚动、搜索索引、字幕与图片任务 |
package/README_EN.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div align="center">
6
6
  <p><strong>Turn recurring business interactions into composable components.</strong></p>
7
- <p>Vue 3 · Naive UI · TypeScript · 61 business components</p>
7
+ <p>Vue 3 · Naive UI · TypeScript · 62 business components</p>
8
8
  <p>
9
9
  <a href="https://www.npmjs.com/package/@robot-admin/naive-ui-components"><img src="https://img.shields.io/npm/v/@robot-admin/naive-ui-components?style=flat-square&amp;color=249D70&amp;labelColor=183C2E" alt="npm version"></a>
10
10
  <a href="./package.json"><img src="https://img.shields.io/badge/Vue-3.5+-249D70?style=flat-square&amp;logo=vue.js&amp;logoColor=white&amp;labelColor=183C2E" alt="Vue 3.5+"></a>
@@ -30,13 +30,15 @@
30
30
  | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
31
31
  | Configuration | Typed configuration for fields, columns, actions and dialogs; 8 form layouts |
32
32
  | Connected types | Field paths, columns, events and instance methods, with helpers such as `defineFormOptions`, `useCForm` and `useTableQuery` |
33
- | Selective loading | 61 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
33
+ | Selective loading | 62 component entries, an auto-import resolver, component CSS and base styles for forms and tables |
34
34
  | Application integration | Global registration or local imports; injectable feedback, locale and defaults; form dialogs compatible with structurally matching headless CRUD controllers |
35
35
 
36
- The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.31.5**. See the [changelog](./CHANGELOG.md) for release details.
36
+ The library handles UI and interaction. Applications supply business APIs, authentication, authorization, upload services and platform configuration. The current repository version is **0.32.0**. See the [changelog](./CHANGELOG.md) for release details.
37
37
 
38
38
  Use `C_Select` for standalone selections and freeform tags. Multiple selections in forms and search share the compact tag summary. Date and time fields can bind directly to formatted API strings. See the [composition examples](./docs/guides/data-workflows.md#多选标签和日期时间) (Chinese).
39
39
 
40
+ Remote options, free text suggestions and multi-column entity selection use `C_Select`, `C_AutoComplete` and `C_DataPicker` with a shared request contract. Form and search fields accept `source` directly. See [search workflows](./docs/guides/search-workflows.md#远程选项与自由文本建议) and [scenario coverage](./docs/search-selection-coverage.md) (Chinese).
41
+
40
42
  Search fields, form fields, and actions can be generated from reactive configuration. Compact density applies consistently across search and data entry, including validation, async options, and dialogs. The application owns dictionaries and permissions, supplying ordinary options and column definitions to components.
41
43
 
42
44
  Compose `C_FormSearch`, `C_ActionBar`, `C_FormModal`, and `C_DataPicker` around either `C_Table` or MachTable. Each grid uses its own column definitions and pagination. See [workspace composition](./docs/guides/data-workflows.md), [form density](./docs/guides/form-density.en.md), and [runtime performance](./docs/guides/runtime-performance.md).
@@ -64,7 +66,7 @@ In narrow `C_Table` cells, edit actions wrap so the input stays visible. Utility
64
66
  | Workspace | `C_Menu` · `C_Tabs` · `C_TagsView` · `C_GlobalSearch` | Menus, view switching, tab navigation and global search |
65
67
  | Common interactions | `C_Login` · `C_Captcha` · `C_Guide` · `C_PageLoading` | Login UI, human verification, onboarding and navigation feedback |
66
68
 
67
- Browse [all 61 components and dependencies](./docs/components.en.md), or explore scenarios in [Robot Admin](https://robotadmin.cn). Cron previews calculate times only; formulas run locally. Production human verification requires server validation. See the [usage guide](./docs/guides/usage.en.md).
69
+ Browse [all 62 components and dependencies](./docs/components.en.md), or explore scenarios in [Robot Admin](https://robotadmin.cn). Cron previews calculate times only; formulas run locally. Production human verification requires server validation. See the [usage guide](./docs/guides/usage.en.md).
68
70
 
69
71
  ## Quick start
70
72
 
@@ -77,6 +79,8 @@ bun add @robot-admin/naive-ui-components
77
79
  bun add vue@^3.5.3 naive-ui@^2.35.0
78
80
  ```
79
81
 
82
+ The minimum peer profile covers browser bundling, types and CJS SSR. The verified native Node ESM SSR configuration uses Naive UI 2.45.3. See the [consumer environment matrix](./docs/engineering.en.md#consumer-environment-matrix).
83
+
80
84
  You can also use your project's npm or pnpm setup. Install optional peers only for the features that need them:
81
85
 
82
86
  | Feature | Additional dependency |
@@ -179,7 +183,7 @@ Root imports aggregate navigation components and require `vue-router` at runtime
179
183
  | Document | Contents |
180
184
  | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
181
185
  | [Architecture and isolation](./docs/architecture.en.md) | Dependency boundaries, instance ownership and the independent Element Plus roadmap |
182
- | [Component catalog](./docs/components.en.md) | All 61 components, dependencies and behavior boundaries |
186
+ | [Component catalog](./docs/components.en.md) | All 62 components, dependencies and behavior boundaries |
183
187
  | [Usage guide](./docs/guides/usage.en.md) | Imports, forms/tables, Cron/formulas, maps, onboarding, captcha, login and page loading |
184
188
  | [Density and workbenches](./docs/guides/table-density.md) | Shared form/search/table density, edit modes, split panes and tree capabilities (Chinese) |
185
189
  | [Lists and async tasks](./docs/guides/runtime-performance.md) | Automatic list windows, chat scrolling, search indexes and media task ownership (Chinese) |
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./C_AutoComplete2.cjs`);exports.C_AutoComplete=e.t;
@@ -0,0 +1,36 @@
1
+ @import "./shared-tokens.css";
2
+ .c-option-status {
3
+ display: flex;
4
+ align-items: center;
5
+ gap: 8px;
6
+ min-width: 0;
7
+ padding: 6px 2px;
8
+ color: inherit;
9
+ font-size: 12px;
10
+ line-height: 1.5;
11
+ }
12
+ .c-option-status--compact {
13
+ display: inline-flex;
14
+ padding: 0;
15
+ white-space: nowrap;
16
+ }
17
+ .c-option-status button {
18
+ border: 0;
19
+ padding: 0 2px;
20
+ background: transparent;
21
+ color: var(--n-loading-color, var(--n-caret-color, var(--c-primary, #18a058)));
22
+ font: inherit;
23
+ cursor: pointer;
24
+ }
25
+ .c-option-status button:focus-visible {
26
+ outline: 2px solid currentColor;
27
+ outline-offset: 2px;
28
+ }
29
+ .c-auto-complete {
30
+ min-width: 0;
31
+ width: 100%;
32
+ }
33
+
34
+ /* layer: default */
35
+ .fixed[data-v-52f22b9b]{position:fixed;}
36
+ .blur[data-v-52f22b9b]{--un-blur:blur(8px);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
@@ -0,0 +1,4 @@
1
+ import { i as OptionValue, n as OptionRequest, r as OptionSource, t as OptionPage } from "./optionSource.cjs";
2
+ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types2.cjs";
3
+ import { t as _default } from "./index2.vue.cjs";
4
+ export { type AutoCompleteOptionItem, type AutoCompleteProps, _default as C_AutoComplete, type OptionPage, type OptionRequest, type OptionSource, type OptionValue };
@@ -0,0 +1,4 @@
1
+ import { i as OptionValue, n as OptionRequest, r as OptionSource, t as OptionPage } from "./optionSource.js";
2
+ import { n as AutoCompleteProps, t as AutoCompleteOptionItem } from "./types2.js";
3
+ import { t as _default } from "./index2.vue.js";
4
+ export { type AutoCompleteOptionItem, type AutoCompleteProps, _default as C_AutoComplete, type OptionPage, type OptionRequest, type OptionSource, type OptionValue };
@@ -0,0 +1 @@
1
+ import{t as e}from"./C_AutoComplete2.js";export{e as C_AutoComplete};
@@ -0,0 +1 @@
1
+ const e=require(`./chunk.cjs`),t=require(`./density.cjs`),n=require(`./export-helper.cjs`),r=require(`./OptionStatus.cjs`);let i=require(`vue`),a=require(`naive-ui`);var o=e.t({default:()=>l});const s={class:`c-auto-complete`},c=(0,i.defineComponent)({name:`C_AutoComplete`,inheritAttrs:!1,__name:`index`,props:{modelValue:{},options:{},source:{},renderLabel:{},filterable:{type:Boolean,default:!0},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},placeholder:{},size:{},status:{},inputProps:{},density:{},locale:{}},emits:[`update:modelValue`,`select`],setup(e,{expose:n,emit:o}){let c=e,l=o,u=(0,i.useSlots)(),d=(0,i.computed)(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e!==`suffix`&&e!==`empty`))),f=(0,i.useTemplateRef)(`input`),p=(0,i.ref)(c.modelValue??``),m=(0,i.computed)(()=>c.disabled||c.readonly),h=()=>!m.value,g=r.n({source:()=>c.source,disabled:m}),_=(0,i.computed)(()=>c.size??(c.density?t.t(c.density).size:void 0)),v=(0,i.computed)(()=>(c.options??[]).map(e=>typeof e==`string`?{value:e,label:e,row:{value:e,label:e},disabled:!1}:{value:e.value,label:e.label??e.value,row:e,disabled:!!e.disabled})),y=(0,i.computed)(()=>c.source?g.rows.value.map(e=>({key:JSON.stringify([typeof c.source.value(e),c.source.value(e)]),label:c.source.label(e),text:c.source.label(e),row:e,disabled:!1})):v.value.filter(e=>!c.filterable||e.label.toLocaleLowerCase().includes(p.value.toLocaleLowerCase())).map(e=>({key:e.value,label:e.label,text:e.value,row:e.row,disabled:e.disabled}))),b=(0,i.computed)(()=>y.value.map(e=>({value:e.key,label:e.label,disabled:e.disabled}))),x=(0,i.computed)(()=>new Map(y.value.map(e=>[e.key,e]))),S=e=>{let t=typeof e.value==`string`?x.value.get(e.value):void 0;return t&&c.renderLabel?c.renderLabel(t.row):t?.label??``},C;function w(e){if(m.value)return;let t=C!==void 0;p.value=C??e??``,C=void 0,g.setSearch(p.value),t||g.open(),l(`update:modelValue`,p.value)}function T(e){if(m.value)return;let t=typeof e==`string`?x.value.get(e):void 0;!t||t.disabled||(C=t.text,g.close(),l(`select`,t.row))}function E(){m.value||(g.setSearch(p.value),g.open())}return(0,i.watch)(()=>c.modelValue,e=>{p.value=e??``,g.setSearch(p.value)}),n({focus:()=>f.value?.focus(),blur:()=>f.value?.blur()}),(t,n)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,s,[(0,i.createVNode)((0,i.unref)(a.NAutoComplete),(0,i.mergeProps)({ref_key:`input`,ref:f,"get-show":h},t.$attrs,{value:p.value,options:b.value,"render-label":e.renderLabel?S:void 0,disabled:m.value,loading:e.loading||(0,i.unref)(g).loading.value,clearable:e.clearable,placeholder:e.placeholder,size:_.value,status:e.status,"input-props":e.inputProps,"show-empty":!!e.source,"onUpdate:value":w,onSelect:T,onFocus:E,onBlur:(0,i.unref)(g).close}),(0,i.createSlots)({_:2},[(0,i.renderList)(d.value,(e,n)=>({name:n,fn:(0,i.withCtx)(e=>[(0,i.renderSlot)(t.$slots,n,(0,i.normalizeProps)((0,i.guardReactiveProps)(e??{})),void 0,!0)])})),e.source||t.$slots.suffix?{name:`suffix`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`suffix`,{},void 0,!0),e.source?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,compact:``,active:(0,i.unref)(g).active.value,loading:(0,i.unref)(g).loading.value,error:(0,i.unref)(g).error.value,"has-more":(0,i.unref)(g).hasMore.value,locale:e.locale,onRetry:(0,i.unref)(g).retry,onMore:(0,i.unref)(g).loadMore},null,8,[`active`,`loading`,`error`,`has-more`,`locale`,`onRetry`,`onMore`])):(0,i.createCommentVNode)(`v-if`,!0)]),key:`0`}:void 0,e.source||t.$slots.empty?{name:`empty`,fn:(0,i.withCtx)(()=>[(0,i.renderSlot)(t.$slots,`empty`,{},()=>[e.source?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,active:(0,i.unref)(g).active.value,loading:(0,i.unref)(g).loading.value,error:(0,i.unref)(g).error.value,"has-more":!1,incomplete:(0,i.unref)(g).search.value.trim().length<(0,i.unref)(g).minChars.value,"min-chars":(0,i.unref)(g).minChars.value,empty:``,locale:e.locale,onRetry:(0,i.unref)(g).retry},null,8,[`active`,`loading`,`error`,`incomplete`,`min-chars`,`locale`,`onRetry`])):(0,i.createCommentVNode)(`v-if`,!0)],!0)]),key:`1`}:void 0]),1040,[`value`,`options`,`render-label`,`disabled`,`loading`,`clearable`,`placeholder`,`size`,`status`,`input-props`,`show-empty`,`onBlur`])]))}});var l=n.t(c,[[`__scopeId`,`data-v-52f22b9b`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime.js";import{t}from"./density.js";import{t as n}from"./export-helper.js";import{n as r,t as i}from"./OptionStatus.js";import{computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createSlots as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeProps as m,openBlock as h,ref as g,renderList as _,renderSlot as v,unref as y,useSlots as b,useTemplateRef as x,watch as S,withCtx as C}from"vue";import{NAutoComplete as w}from"naive-ui";var T=e({default:()=>D});const E={class:`c-auto-complete`};var D=n(d({name:`C_AutoComplete`,inheritAttrs:!1,__name:`index`,props:{modelValue:{},options:{},source:{},renderLabel:{},filterable:{type:Boolean,default:!0},disabled:{type:Boolean},readonly:{type:Boolean},clearable:{type:Boolean},loading:{type:Boolean},placeholder:{},size:{},status:{},inputProps:{},density:{},locale:{}},emits:[`update:modelValue`,`select`],setup(e,{expose:n,emit:d}){let T=e,D=d,O=b(),k=a(()=>Object.fromEntries(Object.entries(O).filter(([e])=>e!==`suffix`&&e!==`empty`))),A=x(`input`),j=g(T.modelValue??``),M=a(()=>T.disabled||T.readonly),N=()=>!M.value,P=r({source:()=>T.source,disabled:M}),F=a(()=>T.size??(T.density?t(T.density).size:void 0)),I=a(()=>(T.options??[]).map(e=>typeof e==`string`?{value:e,label:e,row:{value:e,label:e},disabled:!1}:{value:e.value,label:e.label??e.value,row:e,disabled:!!e.disabled})),L=a(()=>T.source?P.rows.value.map(e=>({key:JSON.stringify([typeof T.source.value(e),T.source.value(e)]),label:T.source.label(e),text:T.source.label(e),row:e,disabled:!1})):I.value.filter(e=>!T.filterable||e.label.toLocaleLowerCase().includes(j.value.toLocaleLowerCase())).map(e=>({key:e.value,label:e.label,text:e.value,row:e.row,disabled:e.disabled}))),R=a(()=>L.value.map(e=>({value:e.key,label:e.label,disabled:e.disabled}))),z=a(()=>new Map(L.value.map(e=>[e.key,e]))),B=e=>{let t=typeof e.value==`string`?z.value.get(e.value):void 0;return t&&T.renderLabel?T.renderLabel(t.row):t?.label??``},V;function H(e){if(M.value)return;let t=V!==void 0;j.value=V??e??``,V=void 0,P.setSearch(j.value),t||P.open(),D(`update:modelValue`,j.value)}function U(e){if(M.value)return;let t=typeof e==`string`?z.value.get(e):void 0;!t||t.disabled||(V=t.text,P.close(),D(`select`,t.row))}function W(){M.value||(P.setSearch(j.value),P.open())}return S(()=>T.modelValue,e=>{j.value=e??``,P.setSearch(j.value)}),n({focus:()=>A.value?.focus(),blur:()=>A.value?.blur()}),(t,n)=>(h(),c(`div`,E,[u(y(w),p({ref_key:`input`,ref:A,"get-show":N},t.$attrs,{value:j.value,options:R.value,"render-label":e.renderLabel?B:void 0,disabled:M.value,loading:e.loading||y(P).loading.value,clearable:e.clearable,placeholder:e.placeholder,size:F.value,status:e.status,"input-props":e.inputProps,"show-empty":!!e.source,"onUpdate:value":H,onSelect:U,onFocus:W,onBlur:y(P).close}),l({_:2},[_(k.value,(e,n)=>({name:n,fn:C(e=>[v(t.$slots,n,m(f(e??{})),void 0,!0)])})),e.source||t.$slots.suffix?{name:`suffix`,fn:C(()=>[v(t.$slots,`suffix`,{},void 0,!0),e.source?(h(),o(i,{key:0,compact:``,active:y(P).active.value,loading:y(P).loading.value,error:y(P).error.value,"has-more":y(P).hasMore.value,locale:e.locale,onRetry:y(P).retry,onMore:y(P).loadMore},null,8,[`active`,`loading`,`error`,`has-more`,`locale`,`onRetry`,`onMore`])):s(`v-if`,!0)]),key:`0`}:void 0,e.source||t.$slots.empty?{name:`empty`,fn:C(()=>[v(t.$slots,`empty`,{},()=>[e.source?(h(),o(i,{key:0,active:y(P).active.value,loading:y(P).loading.value,error:y(P).error.value,"has-more":!1,incomplete:y(P).search.value.trim().length<y(P).minChars.value,"min-chars":y(P).minChars.value,empty:``,locale:e.locale,onRetry:y(P).retry},null,8,[`active`,`loading`,`error`,`incomplete`,`min-chars`,`locale`,`onRetry`])):s(`v-if`,!0)],!0)]),key:`1`}:void 0]),1040,[`value`,`options`,`render-label`,`disabled`,`loading`,`clearable`,`placeholder`,`size`,`status`,`input-props`,`show-empty`,`onBlur`])]))}}),[[`__scopeId`,`data-v-52f22b9b`]]);export{T as n,D as t};
@@ -1,2 +1,2 @@
1
- import { a as STATUS_COLOR_MAP, i as DEFAULT_AVATAR_GROUP_PROPS, n as AvatarGroupProps, o as getInitials, r as AvatarItem, s as nameToColor, t as _default } from "./index2.vue.cjs";
1
+ import { a as STATUS_COLOR_MAP, i as DEFAULT_AVATAR_GROUP_PROPS, n as AvatarGroupProps, o as getInitials, r as AvatarItem, s as nameToColor, t as _default } from "./index3.vue.cjs";
2
2
  export { STATUS_COLOR_MAP as AVATAR_STATUS_COLOR_MAP, type AvatarGroupProps, type AvatarItem, _default as C_AvatarGroup, DEFAULT_AVATAR_GROUP_PROPS, getInitials, nameToColor };
@@ -1,2 +1,2 @@
1
- import { a as STATUS_COLOR_MAP, i as DEFAULT_AVATAR_GROUP_PROPS, n as AvatarGroupProps, o as getInitials, r as AvatarItem, s as nameToColor, t as _default } from "./index2.vue.js";
1
+ import { a as STATUS_COLOR_MAP, i as DEFAULT_AVATAR_GROUP_PROPS, n as AvatarGroupProps, o as getInitials, r as AvatarItem, s as nameToColor, t as _default } from "./index3.vue.js";
2
2
  export { STATUS_COLOR_MAP as AVATAR_STATUS_COLOR_MAP, type AvatarGroupProps, type AvatarItem, _default as C_AvatarGroup, DEFAULT_AVATAR_GROUP_PROPS, getInitials, nameToColor };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index3.vue.cjs";
1
+ import { t as _default } from "./index4.vue.cjs";
2
2
  export { _default as C_Barcode };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index3.vue.js";
1
+ import { t as _default } from "./index4.vue.js";
2
2
  export { _default as C_Barcode };
@@ -1,2 +1,2 @@
1
- import { n as BatchResultEmits, r as BatchResultProps, t as _default } from "./index4.vue.cjs";
1
+ import { n as BatchResultEmits, r as BatchResultProps, t as _default } from "./index5.vue.cjs";
2
2
  export { type BatchResultEmits, type BatchResultProps, _default as C_BatchResult };
@@ -1,2 +1,2 @@
1
- import { n as BatchResultEmits, r as BatchResultProps, t as _default } from "./index4.vue.js";
1
+ import { n as BatchResultEmits, r as BatchResultProps, t as _default } from "./index5.vue.js";
2
2
  export { type BatchResultEmits, type BatchResultProps, _default as C_BatchResult };
@@ -1,3 +1,3 @@
1
- import { t as BreadcrumbItem } from "./types2.cjs";
2
- import { n as BreadcrumbMenuItem, t as _default } from "./index6.vue.cjs";
1
+ import { t as BreadcrumbItem } from "./types3.cjs";
2
+ import { n as BreadcrumbMenuItem, t as _default } from "./index7.vue.cjs";
3
3
  export { type BreadcrumbItem, type BreadcrumbMenuItem, _default as C_Breadcrumb };
@@ -1,3 +1,3 @@
1
1
  import { i as BreadcrumbItem } from "./public.js";
2
- import { n as BreadcrumbMenuItem, t as _default } from "./index5.vue.js";
2
+ import { n as BreadcrumbMenuItem, t as _default } from "./index6.vue.js";
3
3
  export { type BreadcrumbItem, type BreadcrumbMenuItem, _default as C_Breadcrumb };
@@ -1,2 +1,2 @@
1
- import { n as CascadeItem, r as CascadeValue, t as _default } from "./index7.vue.cjs";
1
+ import { n as CascadeItem, r as CascadeValue, t as _default } from "./index8.vue.cjs";
2
2
  export { _default as C_Cascade, type CascadeItem, type CascadeValue };
@@ -1,2 +1,2 @@
1
- import { n as CascadeItem, r as CascadeValue, t as _default } from "./index6.vue.js";
1
+ import { n as CascadeItem, r as CascadeValue, t as _default } from "./index7.vue.js";
2
2
  export { _default as C_Cascade, type CascadeItem, type CascadeValue };
package/dist/C_Chat.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as DEFAULT_CHAT_PROPS, c as MessageType, i as ChatProps, n as ChatContact, o as MessageSender, r as ChatMessage, s as MessageStatus, t as _default } from "./index8.vue.cjs";
1
+ import { a as DEFAULT_CHAT_PROPS, c as MessageType, i as ChatProps, n as ChatContact, o as MessageSender, r as ChatMessage, s as MessageStatus, t as _default } from "./index9.vue.cjs";
2
2
  export { _default as C_Chat, type ChatContact, type ChatMessage, type ChatProps, DEFAULT_CHAT_PROPS, type MessageSender, type MessageStatus, type MessageType };
package/dist/C_Chat.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as DEFAULT_CHAT_PROPS, c as MessageType, i as ChatProps, n as ChatContact, o as MessageSender, r as ChatMessage, s as MessageStatus, t as _default } from "./index7.vue.js";
1
+ import { a as DEFAULT_CHAT_PROPS, c as MessageType, i as ChatProps, n as ChatContact, o as MessageSender, r as ChatMessage, s as MessageStatus, t as _default } from "./index8.vue.js";
2
2
  export { _default as C_Chat, type ChatContact, type ChatMessage, type ChatProps, DEFAULT_CHAT_PROPS, type MessageSender, type MessageStatus, type MessageType };
package/dist/C_City.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index9.vue.cjs";
1
+ import { t as _default } from "./index10.vue.cjs";
2
2
  export { _default as C_City };
package/dist/C_City.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index8.vue.js";
1
+ import { t as _default } from "./index9.vue.js";
2
2
  export { _default as C_City };
package/dist/C_Code.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index10.vue.cjs";
1
+ import { t as _default } from "./index11.vue.cjs";
2
2
  export { _default as C_Code };
package/dist/C_Code.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index9.vue.js";
1
+ import { t as _default } from "./index10.vue.js";
2
2
  export { _default as C_Code };
@@ -1,2 +1,2 @@
1
- import { i as DEFAULT_CONTEXT_MENU_PROPS, n as ContextMenuItem, r as ContextMenuProps, t as _default } from "./index11.vue.cjs";
1
+ import { i as DEFAULT_CONTEXT_MENU_PROPS, n as ContextMenuItem, r as ContextMenuProps, t as _default } from "./index12.vue.cjs";
2
2
  export { _default as C_ContextMenu, type ContextMenuItem, type ContextMenuProps, DEFAULT_CONTEXT_MENU_PROPS };
@@ -1,2 +1,2 @@
1
- import { i as DEFAULT_CONTEXT_MENU_PROPS, n as ContextMenuItem, r as ContextMenuProps, t as _default } from "./index10.vue.js";
1
+ import { i as DEFAULT_CONTEXT_MENU_PROPS, n as ContextMenuItem, r as ContextMenuProps, t as _default } from "./index11.vue.js";
2
2
  export { _default as C_ContextMenu, type ContextMenuItem, type ContextMenuProps, DEFAULT_CONTEXT_MENU_PROPS };
@@ -1,43 +1,203 @@
1
1
  @import "./C_Table.base.css";
2
- .c-data-picker[data-v-53b96a9d] {
2
+ .c-tree[data-v-d71f9eac] {
3
+ --c-tree-padding: 12px;
4
+ --c-tree-gap: 10px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ min-width: 0;
8
+ min-height: 0;
9
+ height: 100%;
10
+ gap: var(--c-tree-gap);
11
+ }
12
+ .c-tree--compact[data-v-d71f9eac] {
13
+ --c-tree-padding: 8px;
14
+ --c-tree-gap: 8px;
15
+ }
16
+ .c-tree--comfortable[data-v-d71f9eac] {
17
+ --c-tree-padding: 16px;
18
+ --c-tree-gap: 14px;
19
+ }
20
+ .c-tree .c-tree-toolbar[data-v-d71f9eac] {
21
+ display: flex;
22
+ flex-wrap: wrap;
23
+ align-items: center;
24
+ gap: var(--c-tree-gap);
25
+ padding: var(--c-tree-padding);
26
+ background: var(--c-tree-surface);
27
+ border-radius: var(--c-tree-radius);
28
+ flex-shrink: 0;
29
+ }
30
+ .c-tree .toolbar-left[data-v-d71f9eac] {
31
+ flex: 1 1 140px;
32
+ min-width: 0;
33
+ }
34
+ .c-tree .toolbar-left .search-input[data-v-d71f9eac] {
3
35
  width: 100%;
36
+ }
37
+ .c-tree .toolbar-right[data-v-d71f9eac] {
38
+ display: flex;
39
+ flex-wrap: wrap;
40
+ align-items: center;
41
+ gap: 6px;
42
+ margin-left: auto;
43
+ }
44
+ .c-tree .c-tree-container[data-v-d71f9eac] {
45
+ flex: 1 1 auto;
4
46
  min-width: 0;
47
+ min-height: 0;
48
+ border: 1px solid var(--c-tree-border);
49
+ border-radius: var(--c-tree-radius);
50
+ padding: var(--c-tree-padding);
51
+ overflow: auto;
52
+ scrollbar-width: thin;
5
53
  }
6
- .c-data-picker__inline[data-v-53b96a9d] {
7
- margin-top: 8px;
54
+ .c-tree--virtual .c-tree-container[data-v-d71f9eac] {
55
+ overflow: hidden;
56
+ }
57
+ .c-tree--virtual .tree-instance[data-v-d71f9eac] {
58
+ height: 100%;
59
+ }
60
+ .c-tree[data-v-d71f9eac] .n-tree-node-content,
61
+ .c-tree[data-v-d71f9eac] .n-tree-node-content__text {
8
62
  min-width: 0;
9
63
  }
10
- .c-data-picker__content[data-v-53b96a9d]:focus {
11
- outline: none;
64
+ .c-tree[data-v-d71f9eac] .c-tree-node-label {
65
+ display: flex;
66
+ align-items: center;
67
+ min-width: 0;
68
+ width: 100%;
69
+ gap: 6px;
70
+ }
71
+ .c-tree[data-v-d71f9eac] .c-tree-node-title {
72
+ overflow: hidden;
73
+ white-space: nowrap;
74
+ text-overflow: ellipsis;
75
+ }
76
+ .c-tree[data-v-d71f9eac] .c-tree-node-status,
77
+ .c-tree[data-v-d71f9eac] .c-tree-node-icon {
78
+ flex-shrink: 0;
79
+ }
80
+ .c-tree[data-v-d71f9eac] .tree-actions {
81
+ display: inline-flex;
82
+ align-items: center;
83
+ gap: 2px;
84
+ margin-left: 6px;
85
+ opacity: 0;
86
+ transition: opacity 0.15s ease;
87
+ }
88
+ .c-tree[data-v-d71f9eac] .n-tree-node:hover .tree-actions,
89
+ .c-tree[data-v-d71f9eac] .n-tree-node:focus-within .tree-actions,
90
+ .c-tree[data-v-d71f9eac] .tree-actions:focus-within {
91
+ opacity: 1;
92
+ }
93
+ @media (hover: none), (max-width: 640px) {
94
+ .c-tree[data-v-d71f9eac] .tree-actions {
95
+ opacity: 1;
96
+ }
97
+ }
98
+ @media (prefers-reduced-motion: reduce) {
99
+ .c-tree[data-v-d71f9eac] .tree-actions {
100
+ transition: none;
101
+ }
102
+ }
103
+
104
+ /* layer: default */
105
+ .filter[data-v-d71f9eac]{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
106
+
107
+ .c-data-picker[data-v-70a385cc] {
108
+ width: 100%;
109
+ min-width: 0;
12
110
  }
13
- .c-data-picker__trigger[data-v-53b96a9d], .c-data-picker__search[data-v-53b96a9d], .c-data-picker__actions[data-v-53b96a9d], .c-data-picker__selection[data-v-53b96a9d] {
111
+ .c-data-picker__inline[data-v-70a385cc] {
112
+ margin-top: 8px;
113
+ min-width: 0;
114
+ }
115
+ .c-data-picker__trigger[data-v-70a385cc] {
14
116
  display: flex;
15
117
  align-items: center;
16
118
  gap: 8px;
17
119
  }
18
- .c-data-picker__open[data-v-53b96a9d] {
120
+ .c-data-picker[data-v-70a385cc] .c-data-picker__open {
19
121
  flex: 1;
20
122
  min-width: 0;
21
123
  }
22
- .c-data-picker__open[data-v-53b96a9d] .n-button__content {
124
+ .c-data-picker[data-v-70a385cc] .c-data-picker__open .n-button__content {
23
125
  display: flex;
24
126
  gap: 12px;
25
127
  width: 100%;
26
128
  justify-content: space-between;
27
129
  overflow: hidden;
28
130
  }
29
- .c-data-picker__open span[data-v-53b96a9d]:first-child {
131
+ .c-data-picker[data-v-70a385cc] .c-data-picker__open span:first-child {
30
132
  overflow: hidden;
31
133
  text-overflow: ellipsis;
32
134
  white-space: nowrap;
33
135
  }
34
- .c-data-picker__placeholder[data-v-53b96a9d] {
136
+ .c-data-picker[data-v-70a385cc] .c-data-picker__placeholder {
35
137
  opacity: 0.55;
36
138
  }
37
- .c-data-picker__search[data-v-53b96a9d] {
139
+ .c-data-picker__label-error[data-v-70a385cc] {
140
+ font-size: 12px;
141
+ color: var(--n-text-color);
142
+ }
143
+
144
+ /* layer: icons */
145
+ .i-mdi\:close[data-v-70a385cc]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
146
+ .i-mdi\:magnify[data-v-70a385cc]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
147
+ .i-mdi\:refresh[data-v-70a385cc]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
148
+ /* layer: default */
149
+ .visible[data-v-70a385cc]{visibility:visible;}
150
+ .\!inline[data-v-70a385cc]{display:inline !important;}
151
+ .inline[data-v-70a385cc]{display:inline;}
152
+ .h-4[data-v-70a385cc]{height:1rem;}
153
+ .w-4[data-v-70a385cc]{width:1rem;}
154
+ .shrink-0[data-v-70a385cc]{flex-shrink:0;}
155
+ .table[data-v-70a385cc]{display:table;}
156
+
157
+ .c-data-picker__layout[data-v-fc3e13b4] {
158
+ display: flex;
159
+ gap: 12px;
160
+ align-items: stretch;
161
+ }
162
+ .c-data-picker__navigation[data-v-fc3e13b4] {
163
+ flex: 0 0 180px;
164
+ max-height: 420px;
165
+ overflow: auto;
166
+ }
167
+ .c-data-picker__navigation-title[data-v-fc3e13b4] {
168
+ margin-block: 4px 8px;
169
+ font-weight: 600;
170
+ }
171
+ .c-data-picker__favorite[data-v-fc3e13b4] {
172
+ display: inline-flex;
173
+ gap: 2px;
174
+ }
175
+ .c-data-picker__main[data-v-fc3e13b4] {
176
+ min-width: 0;
177
+ flex: 1;
178
+ }
179
+ .c-data-picker__footer[data-v-fc3e13b4] {
180
+ margin-top: 12px;
181
+ }
182
+ .c-data-picker__history > div[data-v-fc3e13b4] {
183
+ display: flex;
184
+ flex-wrap: wrap;
185
+ align-items: center;
186
+ gap: 6px;
187
+ margin-block: 8px;
188
+ }
189
+ .c-data-picker__content[data-v-fc3e13b4]:focus {
190
+ outline: none;
191
+ }
192
+ .c-data-picker__search[data-v-fc3e13b4], .c-data-picker__actions[data-v-fc3e13b4], .c-data-picker__selection[data-v-fc3e13b4] {
193
+ display: flex;
194
+ align-items: center;
195
+ gap: 8px;
196
+ }
197
+ .c-data-picker__search[data-v-fc3e13b4] {
38
198
  margin-bottom: 12px;
39
199
  }
40
- .c-data-picker__result-bar[data-v-53b96a9d] {
200
+ .c-data-picker__result-bar[data-v-fc3e13b4] {
41
201
  display: flex;
42
202
  align-items: center;
43
203
  justify-content: space-between;
@@ -45,47 +205,54 @@
45
205
  gap: 6px 12px;
46
206
  margin-block-start: 10px;
47
207
  }
48
- .c-data-picker__pagination[data-v-53b96a9d] {
208
+ .c-data-picker__pagination[data-v-fc3e13b4] {
49
209
  margin-inline-start: auto;
50
210
  max-width: 100%;
51
211
  }
52
- .c-data-picker__pagination[data-v-53b96a9d] .n-pagination {
212
+ .c-data-picker__pagination[data-v-fc3e13b4] .n-pagination {
53
213
  flex-wrap: wrap;
54
214
  justify-content: flex-end;
55
215
  }
56
- .c-data-picker__selection[data-v-53b96a9d] {
216
+ .c-data-picker__selection[data-v-fc3e13b4] {
57
217
  flex-wrap: wrap;
58
218
  min-width: 0;
59
219
  max-width: 100%;
60
220
  font-size: 12px;
61
221
  }
62
- .c-data-picker__selection[data-v-53b96a9d] .n-tag {
222
+ .c-data-picker__selection[data-v-fc3e13b4] .n-tag {
63
223
  max-width: 100%;
64
224
  }
65
- .c-data-picker__selection[data-v-53b96a9d] .n-tag__content {
225
+ .c-data-picker__selection[data-v-fc3e13b4] .n-tag__content {
66
226
  overflow: hidden;
67
227
  text-overflow: ellipsis;
68
228
  white-space: nowrap;
69
229
  }
70
- .c-data-picker__actions[data-v-53b96a9d] {
230
+ .c-data-picker__actions[data-v-fc3e13b4] {
71
231
  justify-content: flex-end;
72
232
  }
73
- .c-data-picker__error[data-v-53b96a9d], .c-data-picker__label-error[data-v-53b96a9d] {
233
+ .c-data-picker__error[data-v-fc3e13b4] {
74
234
  font-size: 12px;
75
235
  color: var(--n-text-color);
76
236
  }
237
+ @media (max-width: 640px) {
238
+ .c-data-picker__layout[data-v-fc3e13b4] {
239
+ flex-direction: column;
240
+ }
241
+ .c-data-picker__navigation[data-v-fc3e13b4] {
242
+ flex-basis: auto;
243
+ max-height: 160px;
244
+ }
245
+ }
77
246
 
78
247
  /* layer: icons */
79
- .i-mdi\:check[data-v-53b96a9d]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
80
- .i-mdi\:close[data-v-53b96a9d]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
81
- .i-mdi\:magnify[data-v-53b96a9d]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
82
- .i-mdi\:refresh[data-v-53b96a9d]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
248
+ .i-mdi\:check[data-v-fc3e13b4]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
249
+ .i-mdi\:close[data-v-fc3e13b4]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
250
+ .i-mdi\:magnify[data-v-fc3e13b4]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
251
+ .i-mdi\:refresh[data-v-fc3e13b4]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.65 6.35A7.96 7.96 0 0 0 12 4a8 8 0 0 0-8 8a8 8 0 0 0 8 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18a6 6 0 0 1-6-6a6 6 0 0 1 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
83
252
  /* layer: default */
84
- .visible[data-v-53b96a9d]{visibility:visible;}
85
- .\!inline[data-v-53b96a9d]{display:inline !important;}
86
- .inline[data-v-53b96a9d]{display:inline;}
87
- .hidden[data-v-53b96a9d]{display:none;}
88
- .h-4[data-v-53b96a9d]{height:1rem;}
89
- .w-4[data-v-53b96a9d]{width:1rem;}
90
- .shrink-0[data-v-53b96a9d]{flex-shrink:0;}
91
- .table[data-v-53b96a9d]{display:table;}
253
+ .visible[data-v-fc3e13b4]{visibility:visible;}
254
+ .inline[data-v-fc3e13b4]{display:inline;}
255
+ .hidden[data-v-fc3e13b4]{display:none;}
256
+ .h-4[data-v-fc3e13b4]{height:1rem;}
257
+ .w-4[data-v-fc3e13b4]{width:1rem;}
258
+ .table[data-v-fc3e13b4]{display:table;}
@@ -1,2 +1,2 @@
1
- import { a as DataPickerRequest, c as DataPickerValue, i as DataPickerProps, n as _default, o as DataPickerSource, r as DataPickerEmits, s as DataPickerSourceInput, t as createDataPickerField } from "./formField.cjs";
2
- export { _default as C_DataPicker, type DataPickerEmits, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };
1
+ import { a as DataPickerNavigation, c as DataPickerRequest, d as DataPickerValue, i as DataPickerHistoryOptions, l as DataPickerSource, n as _default, o as DataPickerNavigationNode, r as DataPickerEmits, s as DataPickerProps, t as createDataPickerField, u as DataPickerSourceInput } from "./formField.cjs";
2
+ export { _default as C_DataPicker, type DataPickerEmits, type DataPickerHistoryOptions, type DataPickerNavigation, type DataPickerNavigationNode, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };