@robot-admin/naive-ui-components 0.29.2 → 0.30.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/CHANGELOG.md +16 -0
  2. package/README.md +3 -1
  3. package/README_EN.md +3 -1
  4. package/dist/C_ActionBar.css +52 -49
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_DataPicker.cjs +1 -1
  8. package/dist/C_DataPicker.css +29 -28
  9. package/dist/C_DataPicker.d.cts +2 -2
  10. package/dist/C_DataPicker.d.ts +3 -2
  11. package/dist/C_DataPicker.js +1 -1
  12. package/dist/C_Density.d.cts +1 -1
  13. package/dist/C_Density.d.ts +1 -1
  14. package/dist/C_Editor.d.cts +1 -1
  15. package/dist/C_Editor.d.ts +1 -1
  16. package/dist/C_ErrorSummary.d.cts +1 -1
  17. package/dist/C_ErrorSummary.d.ts +1 -1
  18. package/dist/C_FilePreview2.js +1 -1
  19. package/dist/C_Form.d.cts +2 -1
  20. package/dist/C_Form.d.ts +2 -1
  21. package/dist/C_FormModal.css +52 -49
  22. package/dist/C_FormModal.d.cts +1 -1
  23. package/dist/C_FormModal.d.ts +2 -1
  24. package/dist/C_FormSearch.css +66 -66
  25. package/dist/C_Guide.d.cts +1 -1
  26. package/dist/C_Guide.d.ts +1 -1
  27. package/dist/C_Icon.d.cts +1 -1
  28. package/dist/C_Icon.d.ts +1 -1
  29. package/dist/C_Language.d.cts +1 -1
  30. package/dist/C_Language.d.ts +1 -1
  31. package/dist/C_Loading.d.cts +1 -1
  32. package/dist/C_Loading.d.ts +1 -1
  33. package/dist/C_Login.d.cts +1 -1
  34. package/dist/C_Login.d.ts +1 -1
  35. package/dist/C_Markdown.d.cts +1 -1
  36. package/dist/C_Markdown.d.ts +1 -1
  37. package/dist/C_Menu.d.ts +1 -1
  38. package/dist/C_OrgChart.d.cts +1 -1
  39. package/dist/C_OrgChart.d.ts +1 -1
  40. package/dist/C_Progress.d.cts +1 -1
  41. package/dist/C_Progress.d.ts +1 -1
  42. package/dist/C_SectionNav.d.cts +1 -1
  43. package/dist/C_SectionNav.d.ts +1 -1
  44. package/dist/C_Skeleton.d.cts +1 -1
  45. package/dist/C_Skeleton.d.ts +1 -1
  46. package/dist/C_Steps.d.cts +1 -1
  47. package/dist/C_Steps.d.ts +1 -1
  48. package/dist/C_Table.base.css +161 -158
  49. package/dist/C_Table.cjs +1 -1
  50. package/dist/C_Table.css +161 -158
  51. package/dist/C_Table.d.cts +2 -2
  52. package/dist/C_Table.d.ts +7 -6
  53. package/dist/C_Table.js +1 -1
  54. package/dist/C_Table2.cjs +3 -3
  55. package/dist/C_Table2.js +3 -3
  56. package/dist/C_TagsView.d.cts +1 -1
  57. package/dist/C_TagsView.d.ts +1 -1
  58. package/dist/C_Theme.d.cts +1 -1
  59. package/dist/C_Theme.d.ts +1 -1
  60. package/dist/C_Timeline.d.cts +1 -1
  61. package/dist/C_Timeline.d.ts +1 -1
  62. package/dist/C_Transfer.d.cts +1 -1
  63. package/dist/C_Transfer.d.ts +1 -1
  64. package/dist/C_Tree.d.ts +6 -5
  65. package/dist/constants.d.cts +1 -1
  66. package/dist/constants.d.ts +1 -1
  67. package/dist/constants3.d.cts +1 -1
  68. package/dist/constants3.d.ts +1 -1
  69. package/dist/constants4.d.cts +4 -4
  70. package/dist/constants4.d.ts +4 -4
  71. package/dist/data2.d.cts +9 -9
  72. package/dist/data2.d.ts +9 -9
  73. package/dist/dateRange.d.cts +10 -2
  74. package/dist/dateRange.d.ts +10 -2
  75. package/dist/formField.cjs +1 -0
  76. package/dist/formField.d.cts +1179 -0
  77. package/dist/formField.d.ts +1179 -0
  78. package/dist/formField.js +1 -0
  79. package/dist/helpers2.cjs +1 -0
  80. package/dist/helpers2.js +1 -0
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.d.cts +23 -22
  83. package/dist/index.d.ts +24 -23
  84. package/dist/index.js +1 -1
  85. package/dist/index.vue.d.cts +5 -5
  86. package/dist/index.vue.d.ts +5 -5
  87. package/dist/index10.vue.d.cts +3 -3
  88. package/dist/index10.vue.d.ts +3 -3
  89. package/dist/index11.vue.d.cts +3 -3
  90. package/dist/index11.vue.d.ts +13 -1157
  91. package/dist/index12.vue.d.cts +13 -1157
  92. package/dist/index12.vue.d.ts +59 -16
  93. package/dist/index13.vue.d.cts +59 -16
  94. package/dist/index13.vue.d.ts +17 -57
  95. package/dist/index14.vue.d.cts +17 -57
  96. package/dist/index14.vue.d.ts +55 -18
  97. package/dist/index15.vue.d.cts +55 -18
  98. package/dist/index15.vue.d.ts +124 -53
  99. package/dist/index16.vue.d.cts +124 -53
  100. package/dist/index16.vue.d.ts +51 -123
  101. package/dist/index17.vue.d.cts +51 -123
  102. package/dist/index17.vue.d.ts +25 -52
  103. package/dist/index18.vue.d.cts +25 -52
  104. package/dist/index18.vue.d.ts +12 -25
  105. package/dist/index19.vue.d.cts +12 -25
  106. package/dist/index19.vue.d.ts +129 -13
  107. package/dist/index2.vue.d.cts +2 -2
  108. package/dist/index2.vue.d.ts +2 -2
  109. package/dist/index20.vue.d.cts +129 -13
  110. package/dist/index20.vue.d.ts +76 -129
  111. package/dist/index21.vue.d.cts +76 -129
  112. package/dist/index21.vue.d.ts +72 -78
  113. package/dist/index22.vue.d.cts +97 -75
  114. package/dist/index22.vue.d.ts +96 -68
  115. package/dist/index23.vue.d.cts +40 -91
  116. package/dist/index23.vue.d.ts +40 -91
  117. package/dist/index24.vue.d.cts +23 -49
  118. package/dist/index24.vue.d.ts +23 -49
  119. package/dist/index25.vue.d.cts +96 -21
  120. package/dist/index25.vue.d.ts +96 -21
  121. package/dist/index26.vue.d.cts +37 -95
  122. package/dist/index26.vue.d.ts +37 -95
  123. package/dist/index27.vue.d.cts +8 -34
  124. package/dist/index27.vue.d.ts +8 -34
  125. package/dist/index28.vue.d.cts +86 -9
  126. package/dist/index28.vue.d.ts +86 -9
  127. package/dist/index29.vue.d.cts +99 -85
  128. package/dist/index29.vue.d.ts +99 -85
  129. package/dist/index3.vue.d.cts +6 -6
  130. package/dist/index3.vue.d.ts +6 -6
  131. package/dist/index30.vue.d.cts +59 -94
  132. package/dist/index30.vue.d.ts +59 -94
  133. package/dist/index9.vue.d.ts +3 -3
  134. package/dist/mapUtils.d.cts +2 -2
  135. package/dist/mapUtils.d.ts +2 -2
  136. package/dist/presets.d.cts +4 -1
  137. package/dist/presets.d.ts +4 -1
  138. package/dist/rolldown-runtime.js +1 -0
  139. package/dist/serializeSearch.cjs +1 -1
  140. package/dist/serializeSearch.js +1 -1
  141. package/dist/style.css +256 -252
  142. package/dist/useCalendarEvents.d.cts +1 -1
  143. package/dist/useCalendarEvents.d.ts +1 -1
  144. package/dist/useCollapsePanel.d.cts +3 -3
  145. package/dist/useCollapsePanel.d.ts +3 -3
  146. package/dist/useCropperCore.d.cts +4 -4
  147. package/dist/useCropperCore.d.ts +4 -4
  148. package/dist/useDynamicFormState.d.cts +5 -67
  149. package/dist/useDynamicFormState.d.ts +5 -67
  150. package/dist/useEdgeInteraction.d.cts +2 -2
  151. package/dist/useEdgeInteraction.d.ts +2 -2
  152. package/dist/useFormRenderer.d.cts +69 -0
  153. package/dist/useFormRenderer.d.ts +69 -0
  154. package/dist/useFullscreen.d.cts +3 -3
  155. package/dist/useFullscreen.d.ts +3 -3
  156. package/dist/useGlobalSearch.d.cts +1 -1
  157. package/dist/useGlobalSearch.d.ts +1 -1
  158. package/dist/useInfiniteScroll.d.cts +2 -2
  159. package/dist/useInfiniteScroll.d.ts +2 -2
  160. package/dist/useQRCode.d.cts +3 -3
  161. package/dist/useQRCode.d.ts +3 -3
  162. package/dist/useSignatureHistory.d.cts +4 -4
  163. package/dist/useSignatureHistory.d.ts +4 -4
  164. package/dist/useSplitResize.d.cts +9 -9
  165. package/dist/useSplitResize.d.ts +9 -9
  166. package/dist/useTableQuery.d.cts +9 -9
  167. package/dist/useTableQuery.d.ts +9 -9
  168. package/dist/useWorkflowValidation.d.cts +36 -36
  169. package/dist/useWorkflowValidation.d.ts +36 -36
  170. package/dist/verification.d.cts +4 -4
  171. package/dist/verification.d.ts +4 -4
  172. package/dist/{xlsx.js → xlsx2.js} +1 -1
  173. package/docs/guides/data-picker.md +30 -11
  174. package/docs/guides/data-workflows.md +22 -1
  175. package/docs/guides/search-workflows.md +3 -1
  176. package/docs/guides/usage.en.md +15 -15
  177. package/docs/guides/usage.md +15 -15
  178. package/package.json +1 -1
  179. package/dist/C_DataPicker2.cjs +0 -1
  180. package/dist/C_DataPicker2.js +0 -1
  181. package/dist/index31.vue.d.cts +0 -75
  182. package/dist/index31.vue.d.ts +0 -75
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @robot-admin/naive-ui-components
2
2
 
3
+ ## 0.30.0
4
+
5
+ ### Minor Changes
6
+
7
+ - `C_FormSearch` 可通过 `searchOnReset` 将重置后的查询交给同一个执行入口,旧查询不能覆盖新结果。下拉选项按字段复用。
8
+ - `C_DataPicker` 合并迟到的选中项回显并保持确认数据一致。新增 `createDataPickerField` 用于表单内选取。
9
+ - `C_Table` 共用当前页状态计算序号、行范围与页数。常用行操作可用 `config.actions.inline` 声明,与 `C_ActionBar` 共用随包分发的预设图标。
10
+
11
+ ## 0.29.3
12
+
13
+ ### Patch Changes
14
+
15
+ - `C_DataPicker` 提交行键时可省略 `source.value`。显式映射继续支持;回显与确认复用已解析的键,避免重复调用业务取值函数。
16
+ - `C_FormSearch` 的自定义 `render` 随字段名推导读取值和回填参数,保留已有宽上下文回调。
17
+ - `C_ActionBar` 按原始分组位置识别无 key 动作,相邻按钮隐藏时执行锁不会串位。
18
+
3
19
  ## 0.29.2
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -33,7 +33,7 @@
33
33
  | 按需消费 | 60 个独立组件入口、自动导入 Resolver、组件样式入口,以及表单/表格的基础样式层级 |
34
34
  | 独立接入 | 支持全量注册与局部导入;反馈、文案和全局配置可由宿主提供,表单弹窗可接入结构兼容的 Headless CRUD |
35
35
 
36
- 组件库负责界面与交互。业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.29.2**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
36
+ 组件库负责界面与交互。业务接口、身份权限、上传服务和第三方平台配置由应用接入。当前仓库版本 **0.30.0**,版本变化见 [CHANGELOG](./CHANGELOG.md)。
37
37
 
38
38
  搜索条件、录入字段和操作按钮可以由响应式配置生成。筛选和编辑共享紧凑密度,支持校验、异步选项和业务弹窗。后端字典或权限由项目接入,表单和搜索消费普通选项,表格消费普通列配置。
39
39
 
@@ -41,6 +41,8 @@
41
41
 
42
42
  搜索区用 `columns: 3` 或 `columns: 4` 限定每行字段数,操作按钮保持靠右。表单内的实体选择用 `presentation="inline"` 在原处展开,复杂的进阶查询可通过选择器的 `#query` 插槽接入多个条件。见[搜索区用法](./docs/guides/search-workflows.md)和[数据选择器](./docs/guides/data-picker.md)。
43
43
 
44
+ 设置 `searchOnReset: true`,让重置与搜索共用 `onSearch`。表单选择字段通过 `createDataPickerField` 接入,列表行操作使用 `config.actions.inline`。见[工作台组合](./docs/guides/data-workflows.md)。
45
+
44
46
  ## 能力地图
45
47
 
46
48
  `C_Table` 保留 Naive UI 原生空态,继承 Provider 的主题、语言与 `componentOptions.DataTable.renderEmpty`。使用 `#empty` 可替换单个表格的空态内容。
package/README_EN.md CHANGED
@@ -33,7 +33,7 @@
33
33
  | Selective loading | 60 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.29.2**. 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.30.0**. See the [changelog](./CHANGELOG.md) for release details.
37
37
 
38
38
  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.
39
39
 
@@ -41,6 +41,8 @@ Compose `C_FormSearch`, `C_ActionBar`, `C_FormModal`, and `C_DataPicker` around
41
41
 
42
42
  Set search `columns` to `3` or `4` for responsive field tracks with right-aligned actions. Use `presentation="inline"` for selection inside an edit form and the picker's `#query` slot for multiple filters. See [search workflows](./docs/guides/search-workflows.md) and [data picker](./docs/guides/data-picker.md).
43
43
 
44
+ Set `searchOnReset: true` to run both search and reset through `onSearch`. Use `createDataPickerField` for form lookup fields and `config.actions.inline` for row actions. See [workspace composition](./docs/guides/data-workflows.md).
45
+
44
46
  ## Capability map
45
47
 
46
48
  `C_Table` retains the native Naive UI empty state, including provider theme, locale and `componentOptions.DataTable.renderEmpty`. Use `#empty` to replace the content of one table.
@@ -67,7 +67,7 @@
67
67
 
68
68
  /* 通用操作按钮组件样式 */
69
69
  /* ================= 主容器 ================= */
70
- .c-action-bar[data-v-48eb3073] {
70
+ .c-action-bar[data-v-57d463a1] {
71
71
  display: flex;
72
72
  min-width: 0;
73
73
  align-items: center;
@@ -79,26 +79,26 @@
79
79
  border: 1px solid var(--c-border);
80
80
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
81
81
  }
82
- .c-action-bar.is-align-left[data-v-48eb3073] {
82
+ .c-action-bar.is-align-left[data-v-57d463a1] {
83
83
  justify-content: flex-start;
84
84
  }
85
- .c-action-bar.is-align-center[data-v-48eb3073] {
85
+ .c-action-bar.is-align-center[data-v-57d463a1] {
86
86
  justify-content: center;
87
87
  }
88
- .c-action-bar.is-align-right[data-v-48eb3073] {
88
+ .c-action-bar.is-align-right[data-v-57d463a1] {
89
89
  justify-content: flex-end;
90
90
  }
91
- .c-action-bar.is-align-space-between[data-v-48eb3073] {
91
+ .c-action-bar.is-align-space-between[data-v-57d463a1] {
92
92
  justify-content: space-between;
93
93
  }
94
- .c-action-bar.is-align-space-around[data-v-48eb3073] {
94
+ .c-action-bar.is-align-space-around[data-v-57d463a1] {
95
95
  justify-content: space-around;
96
96
  }
97
- .c-action-bar.is-compact[data-v-48eb3073] {
97
+ .c-action-bar.is-compact[data-v-57d463a1] {
98
98
  padding: 8px;
99
99
  margin-bottom: 8px;
100
100
  }
101
- .c-action-bar.is-inline[data-v-48eb3073] {
101
+ .c-action-bar.is-inline[data-v-57d463a1] {
102
102
  padding: 0;
103
103
  margin-bottom: 0;
104
104
  background: transparent;
@@ -106,104 +106,104 @@
106
106
  border-radius: 0;
107
107
  box-shadow: none;
108
108
  }
109
- .c-action-bar.is-wrap[data-v-48eb3073] {
109
+ .c-action-bar.is-wrap[data-v-57d463a1] {
110
110
  flex-wrap: wrap;
111
111
  gap: 8px;
112
112
  }
113
- .c-action-bar.is-wrap .actions-group[data-v-48eb3073] {
113
+ .c-action-bar.is-wrap .actions-group[data-v-57d463a1] {
114
114
  flex-wrap: wrap;
115
115
  min-width: 0;
116
116
  max-width: 100%;
117
117
  }
118
118
  @media (max-width: 768px) {
119
- .c-action-bar[data-v-48eb3073] {
119
+ .c-action-bar[data-v-57d463a1] {
120
120
  flex-direction: column;
121
121
  gap: 12px;
122
122
  }
123
- .c-action-bar .actions-group[data-v-48eb3073] {
123
+ .c-action-bar .actions-group[data-v-57d463a1] {
124
124
  width: 100%;
125
125
  justify-content: center;
126
126
  }
127
127
  }
128
128
 
129
129
  /* ================= 按钮组 ================= */
130
- .actions-group[data-v-48eb3073] {
130
+ .actions-group[data-v-57d463a1] {
131
131
  display: flex;
132
132
  align-items: center;
133
133
  gap: 12px;
134
134
  flex-wrap: nowrap;
135
135
  flex-shrink: 0;
136
136
  }
137
- .actions-group.actions-left[data-v-48eb3073] {
137
+ .actions-group.actions-left[data-v-57d463a1] {
138
138
  justify-content: flex-start;
139
139
  }
140
- .actions-group.actions-right[data-v-48eb3073] {
140
+ .actions-group.actions-right[data-v-57d463a1] {
141
141
  justify-content: flex-end;
142
142
  }
143
- .c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-48eb3073] {
143
+ .c-action-bar.has-only-left.is-align-center .actions-group.actions-left[data-v-57d463a1], .c-action-bar.has-only-right.is-align-center .actions-group.actions-right[data-v-57d463a1] {
144
144
  width: 100%;
145
145
  justify-content: center;
146
146
  }
147
- .c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-48eb3073] {
147
+ .c-action-bar.has-only-left.is-align-space-between .actions-group.actions-left[data-v-57d463a1], .c-action-bar.has-only-right.is-align-space-between .actions-group.actions-right[data-v-57d463a1] {
148
148
  width: 100%;
149
149
  justify-content: space-between;
150
150
  }
151
- .c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-48eb3073], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-48eb3073] {
151
+ .c-action-bar.has-only-left.is-align-space-around .actions-group.actions-left[data-v-57d463a1], .c-action-bar.has-only-right.is-align-space-around .actions-group.actions-right[data-v-57d463a1] {
152
152
  width: 100%;
153
153
  justify-content: space-around;
154
154
  }
155
- .c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-48eb3073] {
155
+ .c-action-bar.has-only-left.is-align-right .actions-group.actions-left[data-v-57d463a1] {
156
156
  width: 100%;
157
157
  justify-content: flex-end;
158
158
  }
159
- .c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-48eb3073] {
159
+ .c-action-bar.has-only-right.is-align-left .actions-group.actions-right[data-v-57d463a1] {
160
160
  width: 100%;
161
161
  justify-content: flex-start;
162
162
  }
163
- .actions-group[data-v-48eb3073] .n-button {
163
+ .actions-group[data-v-57d463a1] .n-button {
164
164
  flex-shrink: 0;
165
165
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
166
166
  font-weight: 500;
167
167
  }
168
- .actions-group[data-v-48eb3073] .n-button .n-icon {
168
+ .actions-group[data-v-57d463a1] .n-button .n-icon {
169
169
  transition: transform 0.3s ease;
170
170
  }
171
- .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) {
171
+ .actions-group[data-v-57d463a1] .n-button:hover:not(:disabled) {
172
172
  transform: translateY(-1px);
173
173
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
174
174
  }
175
- .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) .n-icon {
175
+ .actions-group[data-v-57d463a1] .n-button:hover:not(:disabled) .n-icon {
176
176
  transform: scale(1.1);
177
177
  }
178
- .actions-group[data-v-48eb3073] .n-button:active:not(:disabled) {
178
+ .actions-group[data-v-57d463a1] .n-button:active:not(:disabled) {
179
179
  transform: translateY(0);
180
180
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
181
181
  }
182
- .actions-group[data-v-48eb3073] .n-button:disabled {
182
+ .actions-group[data-v-57d463a1] .n-button:disabled {
183
183
  cursor: not-allowed;
184
184
  opacity: 0.5;
185
185
  }
186
- .actions-group[data-v-48eb3073] .n-button.n-button--loading {
186
+ .actions-group[data-v-57d463a1] .n-button.n-button--loading {
187
187
  pointer-events: none;
188
188
  }
189
- .actions-group[data-v-48eb3073] .n-button--primary-type:hover:not(:disabled) {
189
+ .actions-group[data-v-57d463a1] .n-button--primary-type:hover:not(:disabled) {
190
190
  box-shadow: 0 4px 12px rgba(24, 160, 88, 0.3);
191
191
  }
192
- .actions-group[data-v-48eb3073] .n-button--info-type:hover:not(:disabled) {
192
+ .actions-group[data-v-57d463a1] .n-button--info-type:hover:not(:disabled) {
193
193
  box-shadow: 0 4px 12px rgba(42, 148, 125, 0.3);
194
194
  }
195
- .actions-group[data-v-48eb3073] .n-button--success-type:hover:not(:disabled) {
195
+ .actions-group[data-v-57d463a1] .n-button--success-type:hover:not(:disabled) {
196
196
  box-shadow: 0 4px 12px rgba(99, 226, 183, 0.3);
197
197
  }
198
- .actions-group[data-v-48eb3073] .n-button--warning-type:hover:not(:disabled) {
198
+ .actions-group[data-v-57d463a1] .n-button--warning-type:hover:not(:disabled) {
199
199
  box-shadow: 0 4px 12px rgba(240, 138, 0, 0.3);
200
200
  }
201
- .actions-group[data-v-48eb3073] .n-button--error-type:hover:not(:disabled) {
201
+ .actions-group[data-v-57d463a1] .n-button--error-type:hover:not(:disabled) {
202
202
  box-shadow: 0 4px 12px rgba(208, 48, 80, 0.3);
203
203
  }
204
204
 
205
205
  /* ================= 中间插槽区域 ================= */
206
- .actions-center[data-v-48eb3073] {
206
+ .actions-center[data-v-57d463a1] {
207
207
  display: flex;
208
208
  align-items: center;
209
209
  justify-content: center;
@@ -213,32 +213,32 @@
213
213
  }
214
214
 
215
215
  /* ================= 分隔线 ================= */
216
- .action-divider[data-v-48eb3073] {
216
+ .action-divider[data-v-57d463a1] {
217
217
  margin: 0 8px !important;
218
218
  height: 20px;
219
219
  opacity: 0.3;
220
220
  transition: opacity 0.3s ease;
221
221
  }
222
- .action-divider[data-v-48eb3073]:hover {
222
+ .action-divider[data-v-57d463a1]:hover {
223
223
  opacity: 0.6;
224
224
  }
225
225
 
226
226
  /* ================= 下拉菜单优化 ================= */
227
- [data-v-48eb3073] .n-dropdown-option {
227
+ [data-v-57d463a1] .n-dropdown-option {
228
228
  transition: all 0.2s ease;
229
229
  }
230
- [data-v-48eb3073] .n-dropdown-option:hover {
230
+ [data-v-57d463a1] .n-dropdown-option:hover {
231
231
  transform: translateX(4px);
232
232
  }
233
- [data-v-48eb3073] .n-dropdown-option .n-icon {
233
+ [data-v-57d463a1] .n-dropdown-option .n-icon {
234
234
  transition: transform 0.2s ease;
235
235
  }
236
- [data-v-48eb3073] .n-dropdown-option:hover .n-icon {
236
+ [data-v-57d463a1] .n-dropdown-option:hover .n-icon {
237
237
  transform: scale(1.15);
238
238
  }
239
239
 
240
240
  /* ================= 加载动画 ================= */
241
- @keyframes button-loading-48eb3073 {
241
+ @keyframes button-loading-57d463a1 {
242
242
  0% {
243
243
  opacity: 0.6;
244
244
  }
@@ -249,12 +249,12 @@
249
249
  opacity: 0.6;
250
250
  }
251
251
  }
252
- [data-v-48eb3073] .n-button--loading {
253
- animation: button-loading-48eb3073 1.5s ease-in-out infinite;
252
+ [data-v-57d463a1] .n-button--loading {
253
+ animation: button-loading-57d463a1 1.5s ease-in-out infinite;
254
254
  }
255
255
 
256
256
  /* ================= Tooltip 样式 ================= */
257
- [data-v-48eb3073] .n-tooltip .n-tooltip__content {
257
+ [data-v-57d463a1] .n-tooltip .n-tooltip__content {
258
258
  font-size: 12px;
259
259
  padding: 6px 10px;
260
260
  border-radius: 4px;
@@ -263,20 +263,23 @@
263
263
  }
264
264
 
265
265
  /* ================= 暗黑模式适配 ================= */
266
- html.dark .c-action-bar[data-v-48eb3073] {
266
+ html.dark .c-action-bar[data-v-57d463a1] {
267
267
  border-color: rgba(255, 255, 255, 0.09);
268
268
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
269
269
  }
270
- html.dark .actions-group[data-v-48eb3073] .n-button:hover:not(:disabled) {
270
+ html.dark .actions-group[data-v-57d463a1] .n-button:hover:not(:disabled) {
271
271
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
272
272
  }
273
- html.dark .action-divider[data-v-48eb3073] {
273
+ html.dark .action-divider[data-v-57d463a1] {
274
274
  opacity: 0.15;
275
275
  }
276
- html.dark .action-divider[data-v-48eb3073]:hover {
276
+ html.dark .action-divider[data-v-57d463a1]:hover {
277
277
  opacity: 0.4;
278
278
  }
279
279
 
280
280
  /* layer: default */
281
- .inline[data-v-48eb3073]{display:inline;}
282
- .px[data-v-48eb3073]{padding-left:1rem;padding-right:1rem;}
281
+ .m4[data-v-57d463a1]{margin:1rem;}
282
+ .m5[data-v-57d463a1]{margin:1.25rem;}
283
+ .m6[data-v-57d463a1]{margin:1.5rem;}
284
+ .inline[data-v-57d463a1]{display:inline;}
285
+ .px[data-v-57d463a1]{padding-left:1rem;padding-right:1rem;}
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`),n=require(`./useActionTask.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a=`mdi:gesture-tap-button`,o={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0},s={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},c=e=>{let t=e.key?s[e.key]:void 0;return{...t,...e,label:e.label||t?.label||e.key||`操作`,icon:e.icon||t?.icon||a}},l=e=>typeof e==`function`?e():(0,r.unref)(e),u=e=>e,d={key:1,class:`actions-center`},f=(0,r.defineComponent)({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(t,{emit:a}){let s=t,u=a,f=(0,r.computed)(()=>({...o,...s.config,gap:s.config.gap??(s.config.compact===!1?12:o.gap)})),p=(0,r.computed)(()=>{if(s.leftActions&&s.leftActions.length>0)return s.leftActions.filter(e=>h(e));if(s.actions.length>0){let e=s.rightActions&&s.rightActions.length>0,t=s.actions.some(e=>e.group===`right`);return!e&&!t?s.actions.filter(e=>h(e)):s.actions.filter(e=>e.group!==`right`&&h(e))}return[]}),m=(0,r.computed)(()=>s.rightActions&&s.rightActions.length>0?s.rightActions.filter(e=>h(e)):s.actions.filter(e=>e.group===`right`&&h(e))),h=e=>e.show===void 0?!0:l(e.show)??!0,g=(e,t)=>{let n=new Map;return e.map((e,r)=>{let i=JSON.stringify(e.key===void 0?[`position`,t,r]:[`key`,e.key]),a=n.get(i)??0;return n.set(i,a+1),{action:e,taskKey:i,renderKey:`${i}:${a}`}})},_=(0,r.computed)(()=>g(p.value,`left`)),v=(0,r.computed)(()=>g(m.value,`right`)),y=n.t(),b=(e,t)=>!!(l(e.disabled)||e.buttonProps?.disabled||y.isRunning(t)),x=(e,t)=>!!(l(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&y.isRunning(t)),S=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await y.run(t,async()=>{u(`action-click`,e),await e.onClick?.()},()=>!b(e,t)&&!x(e,t))}catch(t){throw u(`action-error`,t,e),t}},C=async(e,{action:t,taskKey:n})=>{try{await y.run(n,async()=>{u(`dropdown-click`,e,t),await e.onClick?.()},()=>!b(t,n)&&!x(t,n)&&l(e.disabled)!==!0&&l(e.show)!==!1)}catch(n){throw u(`action-error`,n,t,e),n}},w=(0,r.defineComponent)({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(t,{emit:n}){let a=(0,r.computed)(()=>t.action),o=(0,r.computed)(()=>c(a.value)),s=(0,r.computed)(()=>o.value.buttonProps?.size||o.value.size||f.value.size),u=(0,r.computed)(()=>({tiny:14,small:15,medium:16,large:18})[s.value]),d=(0,r.computed)(()=>o.value.dropdown?o.value.dropdown.filter(e=>e.show===void 0?!0:l(e.show)).map(n=>{let{icon:i}=n;return{key:n.key,label:n.label,icon:i?()=>(0,r.h)(e.t,{name:i,size:14,"aria-hidden":!0}):void 0,disabled:b(a.value,t.taskKey)||x(a.value,t.taskKey)||l(n.disabled)}}):[]),p=e=>{let r=o.value.dropdown?.find(t=>t.key===e);r&&!b(a.value,t.taskKey)&&!x(a.value,t.taskKey)&&l(r.disabled)!==!0&&l(r.show)!==!1&&n(`dropdown-select`,r)},m=n=>{let{icon:c,buttonProps:l}=o.value,d=e=>{if(b(a.value,t.taskKey)||x(a.value,t.taskKey))return;n?.();let r=l?.onClick;Array.isArray(r)?r.forEach(t=>t(e)):r?.(e)},f=(0,r.h)(i.NButton,{type:o.value.type||`default`,size:s.value,...l,loading:x(a.value,t.taskKey),disabled:b(a.value,t.taskKey),onClick:d},{default:()=>o.value.label,icon:c?()=>(0,r.h)(e.t,{name:c,size:u.value,"aria-hidden":!0}):void 0});return o.value.directives&&o.value.directives.length>0?(0,r.withDirectives)(f,o.value.directives):f},h=()=>{let e=m(()=>n(`click`));return o.value.tooltip?(0,r.h)(i.NTooltip,{placement:`top`},{trigger:()=>e,default:()=>o.value.tooltip}):e},g=()=>{let e=m();return(0,r.h)(i.NDropdown,{disabled:b(a.value,t.taskKey)||x(a.value,t.taskKey),options:d.value,onSelect:p},{default:()=>e})};return()=>o.value.dropdown&&o.value.dropdown.length>0?g():h()}});return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`c-action-bar`,{"is-compact":f.value.compact,"is-inline":f.value.inline,"is-wrap":f.value.wrap,[`is-align-${f.value.align}`]:!0,"has-only-left":_.value.length>0&&v.value.length===0&&!e.$slots.center,"has-only-right":v.value.length>0&&_.value.length===0&&!e.$slots.center}])},[_.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`actions-group actions-left`,style:(0,r.normalizeStyle)({gap:`${f.value.gap}px`})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.value,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.renderKey},[(0,r.createVNode)((0,r.unref)(w),{action:e.action,"task-key":e.taskKey,onClick:t=>S(e),onDropdownSelect:t=>C(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),f.value.showDivider&&t<_.value.length-1&&f.value.dividerType===`vertical`?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDivider),{key:0,vertical:``,class:`action-divider`})):(0,r.createCommentVNode)(`v-if`,!0)],64))),128))],4)):(0,r.createCommentVNode)(`v-if`,!0),e.$slots.center?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,d,[(0,r.renderSlot)(e.$slots,`center`,{},void 0,!0)])):(0,r.createCommentVNode)(`v-if`,!0),v.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:2,class:`actions-group actions-right`,style:(0,r.normalizeStyle)({gap:`${f.value.gap}px`})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(v.value,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.renderKey},[(0,r.createVNode)((0,r.unref)(w),{action:e.action,"task-key":e.taskKey,onClick:t=>S(e),onDropdownSelect:t=>C(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),f.value.showDivider&&t<v.value.length-1&&f.value.dividerType===`vertical`?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDivider),{key:0,vertical:``,class:`action-divider`})):(0,r.createCommentVNode)(`v-if`,!0)],64))),128))],4)):(0,r.createCommentVNode)(`v-if`,!0)],2))}});var p=t.t(f,[[`__scopeId`,`data-v-48eb3073`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
1
+ require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`),n=require(`./useActionTask.cjs`);let r=require(`vue`),i=require(`naive-ui`);const a=new Map(Object.entries({check:`m5 12 4 4L19 6`,close:`m6 6 12 12M6 18 18 6`,"content-save-outline":`M5 3h12l4 4v14H3V3zm2 0v6h10V3M7 21v-8h10v8`,"delete-outline":`M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15m-8 4v7m4-7v7`,"dots-horizontal":`M5 12h1m6 0h1m6 0h1`,"eye-outline":`M2 12q10-14 20 0-10 14-20 0zm7 0a3 3 0 1 0 6 0 3 3 0 1 0-6 0`,"file-export-outline":`M12 20H4V4h10l4 4v3m-5 4h8m-3-3 3 3-3 3`,"file-import-outline":`M12 20H4V4h10l4 4v3m3 4h-8m3-3-3 3 3 3`,fullscreen:`M9 4H4v5m11-5h5v5m0 6v5h-5m-6 0H4v-5`,"gesture-tap-button":`M6 3v15l4-4 3 6 2-1-3-6h6z`,"pencil-outline":`m4 16-1 5 5-1L21 7l-4-4Zm10-10 4 4`,plus:`M12 5v14M5 12h14`,"printer-outline":`M7 8V3h10v5M7 17H3V8h18v9h-4M7 14h10v7H7zm-1-3h.1`,refresh:`M20 4v6h-6m6-2a8 8 0 1 0 0 8`,restore:`M4 4v6h6M4 8a8 8 0 1 1 0 8m8-8v4l3 2`,"tune-variant":`M3 6h18m0 6H3m0 6h18M9 4v4m6 2v4M7 16v4`,"view-column-outline":`M3 5h18v14H3zm6 0v14m6-14v14`}));function o(t,n){let i=t.startsWith(`mdi:`)&&a.get(t.slice(4));return i?(0,r.h)(`svg`,{viewBox:`0 0 24 24`,width:n,height:n,fill:`none`,stroke:`currentColor`,"stroke-width":1.7,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[(0,r.h)(`path`,{d:i})]):(0,r.h)(e.t,{name:t,size:n,"aria-hidden":!0})}const s=`mdi:gesture-tap-button`,c={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0},l={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},u=e=>{let t=l[e.key??``]??{};return{...t,...e,label:e.label||t.label||e.key||`操作`,icon:e.icon||t.icon||s,type:e.type??t.type}},d=e=>typeof e==`function`?e():(0,r.unref)(e),f=e=>e,p={key:1,class:`actions-center`},m=(0,r.defineComponent)({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(e,{emit:t}){let a=e,s=t,l=(0,r.computed)(()=>({...c,...a.config,gap:a.config.gap??(a.config.compact===!1?12:c.gap)})),f=(0,r.computed)(()=>a.leftActions?.length?a.leftActions:a.actions.filter(e=>e.group!==`right`)),m=(0,r.computed)(()=>a.rightActions?.length?a.rightActions:a.actions.filter(e=>e.group===`right`)),h=(e,t)=>{let n=new Map,r=[];return e.forEach((e,i)=>{let a=e.key===void 0?`position:${t}:${i}`:`key:${e.key}`,o=n.get(a)??0;n.set(a,o+1),d(e.show)!==!1&&r.push({action:e,taskKey:a,renderKey:`${a}:${o}`})}),r},g=(0,r.computed)(()=>h(f.value,`left`)),_=(0,r.computed)(()=>h(m.value,`right`)),v=n.t(),y=(e,t)=>!!(d(e.disabled)||e.buttonProps?.disabled||v.isRunning(t)),b=(e,t)=>!!(d(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&v.isRunning(t)),x=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await v.run(t,async()=>{s(`action-click`,e),await e.onClick?.()},()=>!y(e,t)&&!b(e,t))}catch(t){throw s(`action-error`,t,e),t}},S=async(e,{action:t,taskKey:n})=>{try{await v.run(n,async()=>{s(`dropdown-click`,e,t),await e.onClick?.()},()=>!y(t,n)&&!b(t,n)&&d(e.disabled)!==!0&&d(e.show)!==!1)}catch(n){throw s(`action-error`,n,t,e),n}},C=(0,r.defineComponent)({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(e,{emit:t}){let n=(0,r.computed)(()=>e.action),a=(0,r.computed)(()=>u(n.value)),s=(0,r.computed)(()=>a.value.buttonProps?.size||a.value.size||l.value.size),c=(0,r.computed)(()=>({tiny:14,small:15,medium:16,large:18})[s.value]),f=(0,r.computed)(()=>a.value.dropdown?a.value.dropdown.filter(e=>e.show===void 0?!0:d(e.show)).map(t=>{let{icon:r}=t;return{key:t.key,label:t.label,icon:r?()=>o(r,14):void 0,disabled:y(n.value,e.taskKey)||b(n.value,e.taskKey)||d(t.disabled)}}):[]),p=r=>{let i=a.value.dropdown?.find(e=>e.key===r);i&&!y(n.value,e.taskKey)&&!b(n.value,e.taskKey)&&d(i.disabled)!==!0&&d(i.show)!==!1&&t(`dropdown-select`,i)},m=t=>{let{icon:l,buttonProps:u}=a.value,d=r=>{if(y(n.value,e.taskKey)||b(n.value,e.taskKey))return;t?.();let i=u?.onClick;Array.isArray(i)?i.forEach(e=>e(r)):i?.(r)},f=(0,r.h)(i.NButton,{type:a.value.type||`default`,size:s.value,...u,loading:b(n.value,e.taskKey),disabled:y(n.value,e.taskKey),onClick:d},{default:()=>a.value.label,icon:l&&!u?.renderIcon?()=>o(l,c.value):void 0});return a.value.directives&&a.value.directives.length>0?(0,r.withDirectives)(f,a.value.directives):f},h=()=>{let e=m(()=>t(`click`));return a.value.tooltip?(0,r.h)(i.NTooltip,{placement:`top`},{trigger:()=>e,default:()=>a.value.tooltip}):e},g=()=>{let t=m();return(0,r.h)(i.NDropdown,{disabled:y(n.value,e.taskKey)||b(n.value,e.taskKey),options:f.value,onSelect:p},{default:()=>t})};return()=>a.value.dropdown&&a.value.dropdown.length>0?g():h()}});return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)([`c-action-bar`,{"is-compact":l.value.compact,"is-inline":l.value.inline,"is-wrap":l.value.wrap,[`is-align-${l.value.align}`]:!0,"has-only-left":g.value.length>0&&_.value.length===0&&!e.$slots.center,"has-only-right":_.value.length>0&&g.value.length===0&&!e.$slots.center}])},[g.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:`actions-group actions-left`,style:(0,r.normalizeStyle)({gap:`${l.value.gap}px`})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(g.value,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.renderKey},[(0,r.createVNode)((0,r.unref)(C),{action:e.action,"task-key":e.taskKey,onClick:t=>x(e),onDropdownSelect:t=>S(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),l.value.showDivider&&t<g.value.length-1&&l.value.dividerType===`vertical`?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDivider),{key:0,vertical:``,class:`action-divider`})):(0,r.createCommentVNode)(`v-if`,!0)],64))),128))],4)):(0,r.createCommentVNode)(`v-if`,!0),e.$slots.center?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,p,[(0,r.renderSlot)(e.$slots,`center`,{},void 0,!0)])):(0,r.createCommentVNode)(`v-if`,!0),_.value.length>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:2,class:`actions-group actions-right`,style:(0,r.normalizeStyle)({gap:`${l.value.gap}px`})},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(_.value,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.renderKey},[(0,r.createVNode)((0,r.unref)(C),{action:e.action,"task-key":e.taskKey,onClick:t=>x(e),onDropdownSelect:t=>S(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),l.value.showDivider&&t<_.value.length-1&&l.value.dividerType===`vertical`?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(i.NDivider),{key:0,vertical:``,class:`action-divider`})):(0,r.createCommentVNode)(`v-if`,!0)],64))),128))],4)):(0,r.createCommentVNode)(`v-if`,!0)],2))}});var h=t.t(m,[[`__scopeId`,`data-v-57d463a1`]]);Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
@@ -1 +1 @@
1
- import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{t as n}from"./useActionTask.js";import{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createVNode as c,defineComponent as l,h as u,normalizeClass as d,normalizeStyle as f,openBlock as p,renderList as m,renderSlot as h,unref as g,withDirectives as _}from"vue";import{NButton as v,NDivider as y,NDropdown as b,NTooltip as x}from"naive-ui";const S=`mdi:gesture-tap-button`,C={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0},w={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},T=e=>{let t=e.key?w[e.key]:void 0;return{...t,...e,label:e.label||t?.label||e.key||`操作`,icon:e.icon||t?.icon||S}},E=e=>typeof e==`function`?e():g(e),D=e=>e,O={key:1,class:`actions-center`};var k=t(l({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(t,{emit:S}){let w=t,D=S,k=i(()=>({...C,...w.config,gap:w.config.gap??(w.config.compact===!1?12:C.gap)})),A=i(()=>{if(w.leftActions&&w.leftActions.length>0)return w.leftActions.filter(e=>M(e));if(w.actions.length>0){let e=w.rightActions&&w.rightActions.length>0,t=w.actions.some(e=>e.group===`right`);return!e&&!t?w.actions.filter(e=>M(e)):w.actions.filter(e=>e.group!==`right`&&M(e))}return[]}),j=i(()=>w.rightActions&&w.rightActions.length>0?w.rightActions.filter(e=>M(e)):w.actions.filter(e=>e.group===`right`&&M(e))),M=e=>e.show===void 0?!0:E(e.show)??!0,N=(e,t)=>{let n=new Map;return e.map((e,r)=>{let i=JSON.stringify(e.key===void 0?[`position`,t,r]:[`key`,e.key]),a=n.get(i)??0;return n.set(i,a+1),{action:e,taskKey:i,renderKey:`${i}:${a}`}})},P=i(()=>N(A.value,`left`)),F=i(()=>N(j.value,`right`)),I=n(),L=(e,t)=>!!(E(e.disabled)||e.buttonProps?.disabled||I.isRunning(t)),R=(e,t)=>!!(E(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&I.isRunning(t)),z=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await I.run(t,async()=>{D(`action-click`,e),await e.onClick?.()},()=>!L(e,t)&&!R(e,t))}catch(t){throw D(`action-error`,t,e),t}},B=async(e,{action:t,taskKey:n})=>{try{await I.run(n,async()=>{D(`dropdown-click`,e,t),await e.onClick?.()},()=>!L(t,n)&&!R(t,n)&&E(e.disabled)!==!0&&E(e.show)!==!1)}catch(n){throw D(`action-error`,n,t,e),n}},V=l({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(t,{emit:n}){let r=i(()=>t.action),a=i(()=>T(r.value)),o=i(()=>a.value.buttonProps?.size||a.value.size||k.value.size),s=i(()=>({tiny:14,small:15,medium:16,large:18})[o.value]),c=i(()=>a.value.dropdown?a.value.dropdown.filter(e=>e.show===void 0?!0:E(e.show)).map(n=>{let{icon:i}=n;return{key:n.key,label:n.label,icon:i?()=>u(e,{name:i,size:14,"aria-hidden":!0}):void 0,disabled:L(r.value,t.taskKey)||R(r.value,t.taskKey)||E(n.disabled)}}):[]),l=e=>{let i=a.value.dropdown?.find(t=>t.key===e);i&&!L(r.value,t.taskKey)&&!R(r.value,t.taskKey)&&E(i.disabled)!==!0&&E(i.show)!==!1&&n(`dropdown-select`,i)},d=n=>{let{icon:i,buttonProps:c}=a.value,l=e=>{if(L(r.value,t.taskKey)||R(r.value,t.taskKey))return;n?.();let i=c?.onClick;Array.isArray(i)?i.forEach(t=>t(e)):i?.(e)},d=u(v,{type:a.value.type||`default`,size:o.value,...c,loading:R(r.value,t.taskKey),disabled:L(r.value,t.taskKey),onClick:l},{default:()=>a.value.label,icon:i?()=>u(e,{name:i,size:s.value,"aria-hidden":!0}):void 0});return a.value.directives&&a.value.directives.length>0?_(d,a.value.directives):d},f=()=>{let e=d(()=>n(`click`));return a.value.tooltip?u(x,{placement:`top`},{trigger:()=>e,default:()=>a.value.tooltip}):e},p=()=>{let e=d();return u(b,{disabled:L(r.value,t.taskKey)||R(r.value,t.taskKey),options:c.value,onSelect:l},{default:()=>e})};return()=>a.value.dropdown&&a.value.dropdown.length>0?p():f()}});return(e,t)=>(p(),s(`div`,{class:d([`c-action-bar`,{"is-compact":k.value.compact,"is-inline":k.value.inline,"is-wrap":k.value.wrap,[`is-align-${k.value.align}`]:!0,"has-only-left":P.value.length>0&&F.value.length===0&&!e.$slots.center,"has-only-right":F.value.length>0&&P.value.length===0&&!e.$slots.center}])},[P.value.length>0?(p(),s(`div`,{key:0,class:`actions-group actions-left`,style:f({gap:`${k.value.gap}px`})},[(p(!0),s(r,null,m(P.value,(e,t)=>(p(),s(r,{key:e.renderKey},[c(g(V),{action:e.action,"task-key":e.taskKey,onClick:t=>z(e),onDropdownSelect:t=>B(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),k.value.showDivider&&t<P.value.length-1&&k.value.dividerType===`vertical`?(p(),a(g(y),{key:0,vertical:``,class:`action-divider`})):o(`v-if`,!0)],64))),128))],4)):o(`v-if`,!0),e.$slots.center?(p(),s(`div`,O,[h(e.$slots,`center`,{},void 0,!0)])):o(`v-if`,!0),F.value.length>0?(p(),s(`div`,{key:2,class:`actions-group actions-right`,style:f({gap:`${k.value.gap}px`})},[(p(!0),s(r,null,m(F.value,(e,t)=>(p(),s(r,{key:e.renderKey},[c(g(V),{action:e.action,"task-key":e.taskKey,onClick:t=>z(e),onDropdownSelect:t=>B(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),k.value.showDivider&&t<F.value.length-1&&k.value.dividerType===`vertical`?(p(),a(g(y),{key:0,vertical:``,class:`action-divider`})):o(`v-if`,!0)],64))),128))],4)):o(`v-if`,!0)],2))}}),[[`__scopeId`,`data-v-48eb3073`]]);export{D as a,S as i,C as n,T as o,w as r,k as t};
1
+ import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{t as n}from"./useActionTask.js";import{Fragment as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createVNode as c,defineComponent as l,h as u,normalizeClass as d,normalizeStyle as f,openBlock as p,renderList as m,renderSlot as h,unref as g,withDirectives as _}from"vue";import{NButton as v,NDivider as y,NDropdown as b,NTooltip as x}from"naive-ui";const S=new Map(Object.entries({check:`m5 12 4 4L19 6`,close:`m6 6 12 12M6 18 18 6`,"content-save-outline":`M5 3h12l4 4v14H3V3zm2 0v6h10V3M7 21v-8h10v8`,"delete-outline":`M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15m-8 4v7m4-7v7`,"dots-horizontal":`M5 12h1m6 0h1m6 0h1`,"eye-outline":`M2 12q10-14 20 0-10 14-20 0zm7 0a3 3 0 1 0 6 0 3 3 0 1 0-6 0`,"file-export-outline":`M12 20H4V4h10l4 4v3m-5 4h8m-3-3 3 3-3 3`,"file-import-outline":`M12 20H4V4h10l4 4v3m3 4h-8m3-3-3 3 3 3`,fullscreen:`M9 4H4v5m11-5h5v5m0 6v5h-5m-6 0H4v-5`,"gesture-tap-button":`M6 3v15l4-4 3 6 2-1-3-6h6z`,"pencil-outline":`m4 16-1 5 5-1L21 7l-4-4Zm10-10 4 4`,plus:`M12 5v14M5 12h14`,"printer-outline":`M7 8V3h10v5M7 17H3V8h18v9h-4M7 14h10v7H7zm-1-3h.1`,refresh:`M20 4v6h-6m6-2a8 8 0 1 0 0 8`,restore:`M4 4v6h6M4 8a8 8 0 1 1 0 8m8-8v4l3 2`,"tune-variant":`M3 6h18m0 6H3m0 6h18M9 4v4m6 2v4M7 16v4`,"view-column-outline":`M3 5h18v14H3zm6 0v14m6-14v14`}));function C(t,n){let r=t.startsWith(`mdi:`)&&S.get(t.slice(4));return r?u(`svg`,{viewBox:`0 0 24 24`,width:n,height:n,fill:`none`,stroke:`currentColor`,"stroke-width":1.7,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[u(`path`,{d:r})]):u(e,{name:t,size:n,"aria-hidden":!0})}const w=`mdi:gesture-tap-button`,T={align:`left`,size:`tiny`,gap:6,wrap:!1,showDivider:!1,dividerType:`vertical`,compact:!0,inline:!0},E={add:{label:`新增`,icon:`mdi:plus`,type:`primary`},create:{label:`新增`,icon:`mdi:plus`,type:`primary`},save:{label:`保存`,icon:`mdi:content-save-outline`,type:`primary`},confirm:{label:`确认`,icon:`mdi:check`,type:`primary`},cancel:{label:`取消`,icon:`mdi:close`},close:{label:`关闭`,icon:`mdi:close`},view:{label:`查看`,icon:`mdi:eye-outline`},edit:{label:`编辑`,icon:`mdi:pencil-outline`},delete:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},remove:{label:`删除`,icon:`mdi:delete-outline`,type:`error`},refresh:{label:`刷新`,icon:`mdi:refresh`},import:{label:`导入`,icon:`mdi:file-import-outline`},export:{label:`导出`,icon:`mdi:file-export-outline`},print:{label:`打印`,icon:`mdi:printer-outline`},reset:{label:`重置`,icon:`mdi:restore`},columns:{label:`列设置`,icon:`mdi:view-column-outline`},fullscreen:{label:`全屏`,icon:`mdi:fullscreen`},settings:{label:`功能配置`,icon:`mdi:tune-variant`},more:{label:`更多`,icon:`mdi:dots-horizontal`}},D=e=>{let t=E[e.key??``]??{};return{...t,...e,label:e.label||t.label||e.key||`操作`,icon:e.icon||t.icon||w,type:e.type??t.type}},O=e=>typeof e==`function`?e():g(e),k=e=>e,A={key:1,class:`actions-center`};var j=t(l({name:`C_ActionBar`,__name:`index`,props:{actions:{default:()=>[]},leftActions:{default:()=>[]},rightActions:{default:()=>[]},config:{default:()=>({})}},emits:[`action-click`,`dropdown-click`,`action-error`],setup(e,{emit:t}){let S=e,w=t,E=i(()=>({...T,...S.config,gap:S.config.gap??(S.config.compact===!1?12:T.gap)})),k=i(()=>S.leftActions?.length?S.leftActions:S.actions.filter(e=>e.group!==`right`)),j=i(()=>S.rightActions?.length?S.rightActions:S.actions.filter(e=>e.group===`right`)),M=(e,t)=>{let n=new Map,r=[];return e.forEach((e,i)=>{let a=e.key===void 0?`position:${t}:${i}`:`key:${e.key}`,o=n.get(a)??0;n.set(a,o+1),O(e.show)!==!1&&r.push({action:e,taskKey:a,renderKey:`${a}:${o}`})}),r},N=i(()=>M(k.value,`left`)),P=i(()=>M(j.value,`right`)),F=n(),I=(e,t)=>!!(O(e.disabled)||e.buttonProps?.disabled||F.isRunning(t)),L=(e,t)=>!!(O(e.loading)||e.buttonProps?.loading||e.autoLoading!==!1&&F.isRunning(t)),R=async({action:e,taskKey:t})=>{if(!(e.dropdown&&e.dropdown.length>0))try{await F.run(t,async()=>{w(`action-click`,e),await e.onClick?.()},()=>!I(e,t)&&!L(e,t))}catch(t){throw w(`action-error`,t,e),t}},z=async(e,{action:t,taskKey:n})=>{try{await F.run(n,async()=>{w(`dropdown-click`,e,t),await e.onClick?.()},()=>!I(t,n)&&!L(t,n)&&O(e.disabled)!==!0&&O(e.show)!==!1)}catch(n){throw w(`action-error`,n,t,e),n}},B=l({name:`ActionButton`,props:{action:{type:Object,required:!0},taskKey:{type:String,required:!0}},emits:[`click`,`dropdown-select`],setup(e,{emit:t}){let n=i(()=>e.action),r=i(()=>D(n.value)),a=i(()=>r.value.buttonProps?.size||r.value.size||E.value.size),o=i(()=>({tiny:14,small:15,medium:16,large:18})[a.value]),s=i(()=>r.value.dropdown?r.value.dropdown.filter(e=>e.show===void 0?!0:O(e.show)).map(t=>{let{icon:r}=t;return{key:t.key,label:t.label,icon:r?()=>C(r,14):void 0,disabled:I(n.value,e.taskKey)||L(n.value,e.taskKey)||O(t.disabled)}}):[]),c=i=>{let a=r.value.dropdown?.find(e=>e.key===i);a&&!I(n.value,e.taskKey)&&!L(n.value,e.taskKey)&&O(a.disabled)!==!0&&O(a.show)!==!1&&t(`dropdown-select`,a)},l=t=>{let{icon:i,buttonProps:s}=r.value,c=r=>{if(I(n.value,e.taskKey)||L(n.value,e.taskKey))return;t?.();let i=s?.onClick;Array.isArray(i)?i.forEach(e=>e(r)):i?.(r)},l=u(v,{type:r.value.type||`default`,size:a.value,...s,loading:L(n.value,e.taskKey),disabled:I(n.value,e.taskKey),onClick:c},{default:()=>r.value.label,icon:i&&!s?.renderIcon?()=>C(i,o.value):void 0});return r.value.directives&&r.value.directives.length>0?_(l,r.value.directives):l},d=()=>{let e=l(()=>t(`click`));return r.value.tooltip?u(x,{placement:`top`},{trigger:()=>e,default:()=>r.value.tooltip}):e},f=()=>{let t=l();return u(b,{disabled:I(n.value,e.taskKey)||L(n.value,e.taskKey),options:s.value,onSelect:c},{default:()=>t})};return()=>r.value.dropdown&&r.value.dropdown.length>0?f():d()}});return(e,t)=>(p(),s(`div`,{class:d([`c-action-bar`,{"is-compact":E.value.compact,"is-inline":E.value.inline,"is-wrap":E.value.wrap,[`is-align-${E.value.align}`]:!0,"has-only-left":N.value.length>0&&P.value.length===0&&!e.$slots.center,"has-only-right":P.value.length>0&&N.value.length===0&&!e.$slots.center}])},[N.value.length>0?(p(),s(`div`,{key:0,class:`actions-group actions-left`,style:f({gap:`${E.value.gap}px`})},[(p(!0),s(r,null,m(N.value,(e,t)=>(p(),s(r,{key:e.renderKey},[c(g(B),{action:e.action,"task-key":e.taskKey,onClick:t=>R(e),onDropdownSelect:t=>z(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),E.value.showDivider&&t<N.value.length-1&&E.value.dividerType===`vertical`?(p(),a(g(y),{key:0,vertical:``,class:`action-divider`})):o(`v-if`,!0)],64))),128))],4)):o(`v-if`,!0),e.$slots.center?(p(),s(`div`,A,[h(e.$slots,`center`,{},void 0,!0)])):o(`v-if`,!0),P.value.length>0?(p(),s(`div`,{key:2,class:`actions-group actions-right`,style:f({gap:`${E.value.gap}px`})},[(p(!0),s(r,null,m(P.value,(e,t)=>(p(),s(r,{key:e.renderKey},[c(g(B),{action:e.action,"task-key":e.taskKey,onClick:t=>R(e),onDropdownSelect:t=>z(t,e)},null,8,[`action`,`task-key`,`onClick`,`onDropdownSelect`]),E.value.showDivider&&t<P.value.length-1&&E.value.dividerType===`vertical`?(p(),a(g(y),{key:0,vertical:``,class:`action-divider`})):o(`v-if`,!0)],64))),128))],4)):o(`v-if`,!0)],2))}}),[[`__scopeId`,`data-v-57d463a1`]]);export{k as a,w as i,T as n,D as o,E as r,C as s,j as t};
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./C_Icon2.cjs`),require(`./C_Loading2.cjs`),require(`./C_ActionBar2.cjs`),require(`./C_Table2.cjs`);const e=require(`./C_DataPicker2.cjs`);exports.C_DataPicker=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./formField.cjs`);exports.C_DataPicker=e.n,exports.createDataPickerField=e.t;
@@ -1,43 +1,43 @@
1
1
  @import "./C_Table.base.css";
2
- .c-data-picker[data-v-744d7765] {
2
+ .c-data-picker[data-v-53b96a9d] {
3
3
  width: 100%;
4
4
  min-width: 0;
5
5
  }
6
- .c-data-picker__inline[data-v-744d7765] {
6
+ .c-data-picker__inline[data-v-53b96a9d] {
7
7
  margin-top: 8px;
8
8
  min-width: 0;
9
9
  }
10
- .c-data-picker__content[data-v-744d7765]:focus {
10
+ .c-data-picker__content[data-v-53b96a9d]:focus {
11
11
  outline: none;
12
12
  }
13
- .c-data-picker__trigger[data-v-744d7765], .c-data-picker__search[data-v-744d7765], .c-data-picker__actions[data-v-744d7765], .c-data-picker__selection[data-v-744d7765] {
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] {
14
14
  display: flex;
15
15
  align-items: center;
16
16
  gap: 8px;
17
17
  }
18
- .c-data-picker__open[data-v-744d7765] {
18
+ .c-data-picker__open[data-v-53b96a9d] {
19
19
  flex: 1;
20
20
  min-width: 0;
21
21
  }
22
- .c-data-picker__open[data-v-744d7765] .n-button__content {
22
+ .c-data-picker__open[data-v-53b96a9d] .n-button__content {
23
23
  display: flex;
24
24
  gap: 12px;
25
25
  width: 100%;
26
26
  justify-content: space-between;
27
27
  overflow: hidden;
28
28
  }
29
- .c-data-picker__open span[data-v-744d7765]:first-child {
29
+ .c-data-picker__open span[data-v-53b96a9d]:first-child {
30
30
  overflow: hidden;
31
31
  text-overflow: ellipsis;
32
32
  white-space: nowrap;
33
33
  }
34
- .c-data-picker__placeholder[data-v-744d7765] {
34
+ .c-data-picker__placeholder[data-v-53b96a9d] {
35
35
  opacity: 0.55;
36
36
  }
37
- .c-data-picker__search[data-v-744d7765] {
37
+ .c-data-picker__search[data-v-53b96a9d] {
38
38
  margin-bottom: 12px;
39
39
  }
40
- .c-data-picker__result-bar[data-v-744d7765] {
40
+ .c-data-picker__result-bar[data-v-53b96a9d] {
41
41
  display: flex;
42
42
  align-items: center;
43
43
  justify-content: space-between;
@@ -45,46 +45,47 @@
45
45
  gap: 6px 12px;
46
46
  margin-block-start: 10px;
47
47
  }
48
- .c-data-picker__pagination[data-v-744d7765] {
48
+ .c-data-picker__pagination[data-v-53b96a9d] {
49
49
  margin-inline-start: auto;
50
50
  max-width: 100%;
51
51
  }
52
- .c-data-picker__pagination[data-v-744d7765] .n-pagination {
52
+ .c-data-picker__pagination[data-v-53b96a9d] .n-pagination {
53
53
  flex-wrap: wrap;
54
54
  justify-content: flex-end;
55
55
  }
56
- .c-data-picker__selection[data-v-744d7765] {
56
+ .c-data-picker__selection[data-v-53b96a9d] {
57
57
  flex-wrap: wrap;
58
58
  min-width: 0;
59
59
  max-width: 100%;
60
60
  font-size: 12px;
61
61
  }
62
- .c-data-picker__selection[data-v-744d7765] .n-tag {
62
+ .c-data-picker__selection[data-v-53b96a9d] .n-tag {
63
63
  max-width: 100%;
64
64
  }
65
- .c-data-picker__selection[data-v-744d7765] .n-tag__content {
65
+ .c-data-picker__selection[data-v-53b96a9d] .n-tag__content {
66
66
  overflow: hidden;
67
67
  text-overflow: ellipsis;
68
68
  white-space: nowrap;
69
69
  }
70
- .c-data-picker__actions[data-v-744d7765] {
70
+ .c-data-picker__actions[data-v-53b96a9d] {
71
71
  justify-content: flex-end;
72
72
  }
73
- .c-data-picker__error[data-v-744d7765], .c-data-picker__label-error[data-v-744d7765] {
73
+ .c-data-picker__error[data-v-53b96a9d], .c-data-picker__label-error[data-v-53b96a9d] {
74
74
  font-size: 12px;
75
75
  color: var(--n-text-color);
76
76
  }
77
77
 
78
78
  /* layer: icons */
79
- .i-mdi\:check[data-v-744d7765]{--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-744d7765]{--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-744d7765]{--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-744d7765]{--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;}
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;}
83
83
  /* layer: default */
84
- .\!inline[data-v-744d7765]{display:inline !important;}
85
- .inline[data-v-744d7765]{display:inline;}
86
- .hidden[data-v-744d7765]{display:none;}
87
- .h-4[data-v-744d7765]{height:1rem;}
88
- .w-4[data-v-744d7765]{width:1rem;}
89
- .shrink-0[data-v-744d7765]{flex-shrink:0;}
90
- .table[data-v-744d7765]{display:table;}
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;}
@@ -1,2 +1,2 @@
1
- import { a as DataPickerSource, i as DataPickerRequest, n as DataPickerEmits, o as DataPickerValue, r as DataPickerProps, t as _default } from "./index12.vue.cjs";
2
- export { _default as C_DataPicker, type DataPickerEmits, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerValue };
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,5 +1,6 @@
1
1
  import "./types.js";
2
2
  import "./useFormConfig.js";
3
3
  import "./config2.js";
4
- import { a as DataPickerSource, i as DataPickerRequest, n as DataPickerEmits, o as DataPickerValue, r as DataPickerProps, t as _default } from "./index11.vue.js";
5
- export { _default as C_DataPicker, type DataPickerEmits, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerValue };
4
+ 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.js";
5
+ import "./useFormRenderer.js";
6
+ export { _default as C_DataPicker, type DataPickerEmits, type DataPickerProps, type DataPickerRequest, type DataPickerSource, type DataPickerSourceInput, type DataPickerValue, createDataPickerField };
@@ -1 +1 @@
1
- import"./C_Icon2.js";import"./C_Loading2.js";import"./C_ActionBar2.js";import"./C_Table2.js";import{t as e}from"./C_DataPicker2.js";export{e as C_DataPicker};
1
+ import{n as e,t}from"./formField.js";export{e as C_DataPicker,t as createDataPickerField};
@@ -1,3 +1,3 @@
1
1
  import { t as ComponentDensity } from "./density.cjs";
2
- import { t as _default } from "./index13.vue.cjs";
2
+ import { t as _default } from "./index12.vue.cjs";
3
3
  export { _default as C_Density, type ComponentDensity };
@@ -1,3 +1,3 @@
1
1
  import { t as ComponentDensity } from "./density.js";
2
- import { t as _default } from "./index12.vue.js";
2
+ import { t as _default } from "./index11.vue.js";
3
3
  export { _default as C_Density, type ComponentDensity };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index14.vue.cjs";
1
+ import { t as _default } from "./index13.vue.cjs";
2
2
  export { _default as C_Editor };
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./index13.vue.js";
1
+ import { t as _default } from "./index12.vue.js";
2
2
  export { _default as C_Editor };
@@ -1,3 +1,3 @@
1
1
  import { n as ValidationTarget, t as ValidationIssue } from "./validation.cjs";
2
- import { n as ErrorSummaryProps, t as _default } from "./index15.vue.cjs";
2
+ import { n as ErrorSummaryProps, t as _default } from "./index14.vue.cjs";
3
3
  export { _default as C_ErrorSummary, type ErrorSummaryProps, type ValidationIssue, type ValidationTarget };
@@ -1,3 +1,3 @@
1
1
  import { n as ValidationTarget, t as ValidationIssue } from "./validation.js";
2
- import { n as ErrorSummaryProps, t as _default } from "./index14.vue.js";
2
+ import { n as ErrorSummaryProps, t as _default } from "./index13.vue.js";
3
3
  export { _default as C_ErrorSummary, type ErrorSummaryProps, type ValidationIssue, type ValidationTarget };