@robot-admin/naive-ui-components 0.41.1 → 0.41.2

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 (293) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +44 -5
  3. package/README_EN.md +44 -5
  4. package/dist/C_ActionBar.css +54 -54
  5. package/dist/C_ActionBar2.cjs +1 -1
  6. package/dist/C_ActionBar2.js +1 -1
  7. package/dist/C_AntV.css +10 -10
  8. package/dist/C_AntV2.cjs +1 -1
  9. package/dist/C_AntV2.js +1 -1
  10. package/dist/C_AudioPlayer.css +53 -53
  11. package/dist/C_AudioPlayer2.cjs +1 -1
  12. package/dist/C_AudioPlayer2.js +1 -1
  13. package/dist/C_AutoComplete.css +2 -2
  14. package/dist/C_AutoComplete2.cjs +1 -1
  15. package/dist/C_AutoComplete2.js +1 -1
  16. package/dist/C_AvatarGroup.css +29 -29
  17. package/dist/C_AvatarGroup2.cjs +1 -1
  18. package/dist/C_AvatarGroup2.js +1 -1
  19. package/dist/C_BatchResult.css +10 -10
  20. package/dist/C_BatchResult2.cjs +1 -1
  21. package/dist/C_BatchResult2.js +1 -1
  22. package/dist/C_Breadcrumb.css +40 -40
  23. package/dist/C_Breadcrumb2.cjs +1 -1
  24. package/dist/C_Breadcrumb2.js +1 -1
  25. package/dist/C_Captcha.d.cts +2 -2
  26. package/dist/C_Captcha.d.ts +2 -2
  27. package/dist/C_Captcha2.cjs +1 -1
  28. package/dist/C_Captcha2.js +1 -1
  29. package/dist/C_Cascade.css +4 -4
  30. package/dist/C_Cascade2.cjs +1 -1
  31. package/dist/C_Cascade2.js +1 -1
  32. package/dist/C_Chat2.cjs +1 -1
  33. package/dist/C_Chat2.js +1 -1
  34. package/dist/C_City.css +35 -35
  35. package/dist/C_City2.cjs +1 -1
  36. package/dist/C_City2.js +1 -1
  37. package/dist/C_Code.css +27 -27
  38. package/dist/C_Code2.cjs +1 -1
  39. package/dist/C_Code2.js +2 -2
  40. package/dist/C_CollapsePanel2.cjs +1 -1
  41. package/dist/C_CollapsePanel2.js +1 -1
  42. package/dist/C_ContextMenu.css +3 -3
  43. package/dist/C_ContextMenu2.cjs +1 -1
  44. package/dist/C_ContextMenu2.js +1 -1
  45. package/dist/C_Cron.css +18 -18
  46. package/dist/C_Cron2.cjs +1 -1
  47. package/dist/C_Cron2.js +1 -1
  48. package/dist/C_DataPicker.css +52 -52
  49. package/dist/C_DataPicker2.cjs +1 -1
  50. package/dist/C_DataPicker2.js +1 -1
  51. package/dist/C_Date.css +5 -5
  52. package/dist/C_Date2.cjs +1 -1
  53. package/dist/C_Date2.js +1 -1
  54. package/dist/C_Draggable.css +53 -53
  55. package/dist/C_Draggable2.cjs +1 -1
  56. package/dist/C_Draggable2.js +1 -1
  57. package/dist/C_Editor.css +13 -13
  58. package/dist/C_Editor.d.cts +2 -2
  59. package/dist/C_Editor.d.ts +2 -2
  60. package/dist/C_Editor2.cjs +1 -1
  61. package/dist/C_Editor2.js +1 -1
  62. package/dist/C_FilePreview.css +49 -49
  63. package/dist/C_FilePreview2.cjs +1 -1
  64. package/dist/C_FilePreview2.js +1 -1
  65. package/dist/C_Form.base.css +241 -241
  66. package/dist/C_Form.css +241 -241
  67. package/dist/C_Form.d.cts +1 -1
  68. package/dist/C_Form.d.ts +1 -1
  69. package/dist/C_FormModal.css +55 -55
  70. package/dist/C_FormModal2.cjs +1 -1
  71. package/dist/C_FormModal2.js +1 -1
  72. package/dist/C_FormSearch.css +74 -74
  73. package/dist/C_FormSearch.d.ts +1 -1
  74. package/dist/C_FormulaEditor.cjs +1 -1
  75. package/dist/C_FormulaEditor.css +41 -41
  76. package/dist/C_FormulaEditor.d.cts +2 -2
  77. package/dist/C_FormulaEditor.d.ts +2 -2
  78. package/dist/C_FormulaEditor.js +1 -1
  79. package/dist/C_GlobalSearch2.cjs +1 -1
  80. package/dist/C_GlobalSearch2.js +1 -1
  81. package/dist/C_Guide.css +13 -13
  82. package/dist/C_Guide2.cjs +1 -1
  83. package/dist/C_Guide2.js +1 -1
  84. package/dist/C_ImageCropper.css +27 -27
  85. package/dist/C_ImageCropper2.cjs +1 -1
  86. package/dist/C_ImageCropper2.js +1 -1
  87. package/dist/C_ImportWizard.css +8 -8
  88. package/dist/C_ImportWizard2.cjs +1 -1
  89. package/dist/C_ImportWizard2.js +1 -1
  90. package/dist/C_Loading.css +18 -18
  91. package/dist/C_Loading2.cjs +1 -1
  92. package/dist/C_Loading2.js +1 -1
  93. package/dist/C_Login.css +94 -94
  94. package/dist/C_Login2.cjs +1 -1
  95. package/dist/C_Login2.js +1 -1
  96. package/dist/C_Markdown.css +37 -37
  97. package/dist/C_Markdown2.cjs +1 -1
  98. package/dist/C_Markdown2.js +1 -1
  99. package/dist/C_NotificationCenter.css +24 -24
  100. package/dist/C_NotificationCenter2.cjs +1 -1
  101. package/dist/C_NotificationCenter2.js +1 -1
  102. package/dist/C_OrgChart.d.cts +2 -8
  103. package/dist/C_OrgChart.d.ts +2 -8
  104. package/dist/C_QRCode.css +9 -9
  105. package/dist/C_QRCode2.cjs +1 -1
  106. package/dist/C_QRCode2.js +1 -1
  107. package/dist/C_RecurrenceEditor.cjs +1 -1
  108. package/dist/C_RecurrenceEditor.d.cts +2 -2
  109. package/dist/C_RecurrenceEditor.d.ts +2 -2
  110. package/dist/C_RecurrenceEditor.js +1 -1
  111. package/dist/C_RecurrenceEditor2.cjs +1 -1
  112. package/dist/C_RecurrenceEditor2.js +1 -1
  113. package/dist/C_ScanInput2.cjs +1 -1
  114. package/dist/C_ScanInput2.js +1 -1
  115. package/dist/C_SectionNav.css +8 -8
  116. package/dist/C_SectionNav2.cjs +1 -1
  117. package/dist/C_SectionNav2.js +1 -1
  118. package/dist/C_Signature.css +15 -15
  119. package/dist/C_Signature2.cjs +1 -1
  120. package/dist/C_Signature2.js +1 -1
  121. package/dist/C_Table.base.css +428 -428
  122. package/dist/C_Table.css +187 -187
  123. package/dist/C_Table.d.cts +1 -1
  124. package/dist/C_Table.d.ts +1 -1
  125. package/dist/C_Table2.cjs +4 -4
  126. package/dist/C_Table2.js +4 -4
  127. package/dist/C_Timeline.css +50 -50
  128. package/dist/C_Timeline2.cjs +1 -1
  129. package/dist/C_Timeline2.js +1 -1
  130. package/dist/C_Tree.css +30 -30
  131. package/dist/C_Tree2.cjs +1 -1
  132. package/dist/C_Tree2.js +1 -1
  133. package/dist/C_Upload.css +5 -5
  134. package/dist/C_Upload2.cjs +1 -1
  135. package/dist/C_Upload2.js +1 -1
  136. package/dist/C_UserPicker.css +1 -1
  137. package/dist/C_VideoPlayer2.cjs +1 -1
  138. package/dist/C_VideoPlayer2.js +1 -1
  139. package/dist/C_VtableGantt.css +34 -34
  140. package/dist/C_WorkFlow.css +93 -93
  141. package/dist/C_WorkFlow2.cjs +1 -1
  142. package/dist/C_WorkFlow2.js +1 -1
  143. package/dist/Card.cjs +1 -1
  144. package/dist/Card.js +1 -1
  145. package/dist/ColumnSettingsDrawer.cjs +1 -0
  146. package/dist/ColumnSettingsDrawer.js +1 -0
  147. package/dist/Custom.cjs +1 -1
  148. package/dist/Custom.js +1 -1
  149. package/dist/Dynamic.cjs +1 -1
  150. package/dist/Dynamic.js +1 -1
  151. package/dist/Steps.cjs +1 -1
  152. package/dist/Steps.js +1 -1
  153. package/dist/Tabs.cjs +1 -1
  154. package/dist/Tabs.js +1 -1
  155. package/dist/component-config.d.ts +1 -1
  156. package/dist/config.d.cts +1 -1
  157. package/dist/config.d.ts +1 -1
  158. package/dist/constants.d.cts +3 -3
  159. package/dist/constants.d.ts +3 -3
  160. package/dist/constants2.d.cts +8 -1
  161. package/dist/constants2.d.ts +8 -1
  162. package/dist/constants3.d.cts +7 -7
  163. package/dist/constants3.d.ts +7 -7
  164. package/dist/constants4.d.cts +4 -4
  165. package/dist/constants4.d.ts +4 -4
  166. package/dist/context.d.cts +1 -1
  167. package/dist/data2.d.cts +7 -7
  168. package/dist/data2.d.ts +7 -7
  169. package/dist/editors.d.cts +19 -17
  170. package/dist/editors.d.ts +19 -17
  171. package/dist/fieldNode.cjs +1 -0
  172. package/dist/fieldNode.js +1 -0
  173. package/dist/fieldRenderers.cjs +1 -1
  174. package/dist/fieldRenderers.js +1 -1
  175. package/dist/graphics.cjs +1 -1
  176. package/dist/graphics.js +1 -1
  177. package/dist/index.cjs +1 -1
  178. package/dist/index.d.cts +6 -6
  179. package/dist/index.d.ts +6 -6
  180. package/dist/index.js +1 -1
  181. package/dist/index11.vue.d.ts +1 -1
  182. package/dist/index12.vue.d.cts +1 -1
  183. package/dist/index13.vue.d.ts +3 -3
  184. package/dist/index14.vue.d.cts +3 -3
  185. package/dist/index14.vue.d.ts +2 -2
  186. package/dist/index15.vue.d.cts +2 -2
  187. package/dist/index17.vue.d.ts +17 -10
  188. package/dist/index18.vue.d.cts +17 -10
  189. package/dist/index19.vue.d.ts +1 -1
  190. package/dist/index2.vue.d.cts +2 -2
  191. package/dist/index2.vue.d.ts +2 -2
  192. package/dist/index20.vue.d.cts +1 -1
  193. package/dist/index20.vue.d.ts +2 -2
  194. package/dist/index21.vue.d.cts +2 -2
  195. package/dist/index21.vue.d.ts +7 -7
  196. package/dist/index22.vue.d.cts +7 -7
  197. package/dist/index26.vue.d.ts +1 -1
  198. package/dist/index27.vue.d.cts +1 -1
  199. package/dist/index27.vue.d.ts +1 -1
  200. package/dist/index28.vue.d.cts +1 -1
  201. package/dist/index29.vue.d.cts +2 -2
  202. package/dist/index29.vue.d.ts +2 -2
  203. package/dist/index3.vue.d.cts +17 -19
  204. package/dist/index3.vue.d.ts +17 -19
  205. package/dist/index34.vue.d.cts +2 -0
  206. package/dist/index34.vue.d.ts +2 -0
  207. package/dist/index35.vue.d.cts +4 -4
  208. package/dist/index35.vue.d.ts +4 -4
  209. package/dist/index36.vue.d.cts +20 -11
  210. package/dist/index36.vue.d.ts +20 -11
  211. package/dist/index37.vue.d.cts +2 -2
  212. package/dist/index37.vue.d.ts +2 -2
  213. package/dist/index39.vue.d.cts +1 -1
  214. package/dist/index39.vue.d.ts +1 -1
  215. package/dist/index4.vue.d.cts +7 -4
  216. package/dist/index4.vue.d.ts +7 -4
  217. package/dist/index41.vue.d.cts +1 -1
  218. package/dist/index41.vue.d.ts +1 -1
  219. package/dist/index42.vue.d.cts +2 -2
  220. package/dist/index42.vue.d.ts +2 -2
  221. package/dist/index43.vue.d.cts +2 -2
  222. package/dist/index43.vue.d.ts +2 -2
  223. package/dist/index5.vue.d.cts +5 -17
  224. package/dist/index5.vue.d.ts +5 -17
  225. package/dist/index6.vue.d.cts +2 -2
  226. package/dist/index6.vue.d.ts +2 -2
  227. package/dist/index7.vue.d.cts +18 -12
  228. package/dist/index7.vue.d.ts +18 -12
  229. package/dist/localSource.d.cts +8 -8
  230. package/dist/localSource.d.ts +8 -8
  231. package/dist/locale.cjs +1 -1
  232. package/dist/locale.js +1 -1
  233. package/dist/mapUtils.d.cts +1 -1
  234. package/dist/mapUtils.d.ts +1 -1
  235. package/dist/persistence.cjs +1 -0
  236. package/dist/persistence.js +1 -0
  237. package/dist/presets.d.cts +1 -1
  238. package/dist/presets.d.ts +1 -1
  239. package/dist/rule.d.cts +4 -1
  240. package/dist/rule.d.ts +4 -1
  241. package/dist/serializeSearch.cjs +1 -1
  242. package/dist/serializeSearch.js +1 -1
  243. package/dist/source.cjs +1 -1
  244. package/dist/source.js +1 -1
  245. package/dist/style.css +1334 -1334
  246. package/dist/types.d.cts +1 -1
  247. package/dist/types.d.ts +1 -1
  248. package/dist/types10.d.cts +2 -0
  249. package/dist/types10.d.ts +1 -1
  250. package/dist/types11.d.cts +1 -1
  251. package/dist/types3.d.cts +14 -5
  252. package/dist/types3.d.ts +14 -5
  253. package/dist/types5.d.ts +12 -10
  254. package/dist/types6.d.cts +12 -10
  255. package/dist/types6.d.ts +1 -1
  256. package/dist/types9.d.ts +2 -0
  257. package/dist/useCalendarEvents.d.cts +3 -15
  258. package/dist/useCalendarEvents.d.ts +3 -15
  259. package/dist/useCollapsePanel.d.cts +4 -3
  260. package/dist/useCollapsePanel.d.ts +4 -3
  261. package/dist/useCropperCore.d.cts +8 -19
  262. package/dist/useCropperCore.d.ts +8 -19
  263. package/dist/useDynamicFormState.d.cts +3 -3
  264. package/dist/useDynamicFormState.d.ts +3 -3
  265. package/dist/useEdgeInteraction.d.cts +3 -12
  266. package/dist/useEdgeInteraction.d.ts +3 -12
  267. package/dist/useFormRenderer.d.cts +1 -1
  268. package/dist/useFormRenderer.d.ts +1 -1
  269. package/dist/useFormulaEvaluator.cjs +2 -2
  270. package/dist/useFormulaEvaluator.js +2 -2
  271. package/dist/useFullscreen.d.cts +23 -5
  272. package/dist/useFullscreen.d.ts +23 -5
  273. package/dist/useInfiniteScroll.d.cts +2 -2
  274. package/dist/useInfiniteScroll.d.ts +2 -2
  275. package/dist/useQRCode.d.cts +5 -18
  276. package/dist/useQRCode.d.ts +5 -18
  277. package/dist/useSignatureHistory.d.cts +3 -3
  278. package/dist/useSignatureHistory.d.ts +3 -3
  279. package/dist/useSplitResize.d.cts +4 -4
  280. package/dist/useSplitResize.d.ts +4 -4
  281. package/dist/useTimeSelection.d.cts +4 -3
  282. package/dist/useTimeSelection.d.ts +4 -3
  283. package/dist/useWorkflowValidation.d.cts +11 -5
  284. package/dist/useWorkflowValidation.d.ts +11 -5
  285. package/dist/verification.d.cts +1 -1
  286. package/dist/verification.d.ts +1 -1
  287. package/docs/engineering.en.md +1 -0
  288. package/docs/engineering.md +1 -0
  289. package/docs/guides/batch-results.md +3 -3
  290. package/docs/guides/data-picker.md +2 -0
  291. package/docs/guides/runtime-performance.md +2 -0
  292. package/docs/guides/scene-components.md +1 -1
  293. package/package.json +1 -1
package/dist/locale.cjs CHANGED
@@ -1 +1 @@
1
- const e=Object.freeze({"validation.summary":`请检查以下内容`,"validation.previous":`上一组`,"validation.next":`下一组`,"options.failed":`选项加载失败`,"options.loadMore":`加载更多`,"options.empty":`暂无选项`,"options.minChars":`输入至少 {count} 个字符`,"picker.title":`选择数据`,"picker.placeholder":`请选择`,"picker.searchPlaceholder":`输入关键字`,"picker.clear":`清空选择`,"picker.searchLabel":`搜索候选数据`,"picker.search":`搜索`,"picker.loadFailed":`候选数据加载失败`,"picker.labelFailed":`名称加载失败,保留原编码`,"picker.selected":`已选 {count} 项`,"picker.total":`共 {count} 条`,"picker.pagination":`候选数据分页`,"picker.moreSelected":`另 {count} 项`,"picker.quickSearch":`输入关键词快速选择`,"picker.more":`完整选择`,"picker.recent":`最近使用`,"picker.favorites":`收藏`,"picker.favorite":`收藏当前选择`,"picker.removeFavorite":`取消收藏`,"picker.selectionInvalid":`所选数据已失效或不可选择,请重新选择`,"picker.selectionFailed":`选择校验失败,请重试`,"picker.allCategories":`全部分类`,"userPicker.title":`选择人员`,"userPicker.placeholder":`请选择人员`,"userPicker.name":`人员`,"userPicker.code":`工号`,"userPicker.department":`部门`,"userPicker.job":`岗位`,"userPicker.status":`状态`,"userPicker.selected":`已选人员`,"userPicker.organization":`组织架构`,"userPicker.emptySelection":`尚未选择人员`,"userPicker.remove":`移除 {name}`,"userPicker.selectedPages":`已选人员分页`,"userPicker.moveUp":`上移 {name}`,"userPicker.moveDown":`下移 {name}`,"batch.title":`批量操作结果`,"batch.summary":`共 {total} 项,成功 {success},失败 {failure},冲突 {conflict},跳过 {skipped}`,"batch.filterLabel":`筛选操作结果`,"batch.all":`全部`,"batch.retry":`重试可重试项({count})`,"batch.id":`业务标识`,"batch.status":`结果`,"batch.message":`说明`,"batch.retryColumn":`重试`,"batch.retryable":`可重试`,"batch.success":`成功`,"batch.failure":`失败`,"batch.conflict":`冲突`,"batch.skipped":`跳过`,"section.navigation":`单据分区导航`,"section.errors":`{count} 项错误`,"notification.invalidResponse":`消息接口返回的数据或统计无效`,"notification.operationFailed":`消息操作失败,请重试`,"notification.missingFetch":`远程消息模式未配置 fetchNotifications`,"notification.missingAction":`远程消息模式未配置 {name} 接口`,"notification.expiredScope":`消息作用域已失效`,"chat.self":`Me`,"common.search":`搜索...`,"common.action":`操作`,"common.add":`新增`,"common.create":`创建`,"action.confirm":`确认`,"common.close":`关闭`,"common.view":`查看`,"common.import":`导入`,"common.export":`导出`,"common.fullscreen":`全屏`,"common.settings":`功能配置`,"common.more":`更多`,"common.refresh":`刷新`,"common.expand":`展开详情`,"common.collapse":`收起`,"common.unknown":`未知`,"tree.search":`搜索树节点`,"tree.searchLoading":`正在查找节点`,"tree.searchFailed":`查找失败,请重试`,"tree.searchCount":`找到 {total} 个结果`,"tree.loadingChildren":`加载子节点`,"tree.searchResults":`第 {current} / {total} 个结果`,"tree.searchPrevious":`上一个结果`,"tree.searchNext":`下一个结果`,"tree.searchRetry":`重试查找`,"tree.searchEmpty":`未找到匹配节点`,"tree.searchMinChars":`输入至少 {count} 个字符开始查找`,"search.fields":`查询字段`,"search.fieldSettings":`设置查询字段`,"search.restoreFields":`恢复默认字段`,"search.selectPlaceholder":`请选择`,"search.clearHistory":`清空历史记录`,"tree.expandAll":`展开全部`,"tree.collapseAll":`收起全部`,"tree.menu.add":`新增子菜单`,"tree.menu.deleteConfirm":`确认删除该菜单吗?`,"tree.file.open":`打开`,"tree.file.rename":`重命名`,"tree.file.deleteConfirm":`确认删除该文件吗?`,"tree.org.add":`新增下级`,"orgChart.zoomIn":`放大`,"orgChart.zoomOut":`缩小`,"orgChart.reset":`重置`,"orgChart.expand":`展开 {label}`,"orgChart.collapse":`折叠 {label}`,"transfer.source":`可选列表`,"transfer.target":`已选列表`,"transfer.empty":`暂无数据`,"transfer.emptyTarget":`未选择任何项`,"transfer.searchSource":`搜索可选列表`,"transfer.searchTarget":`搜索已选列表`,"transfer.toTarget":`移至已选列表`,"transfer.toSource":`移回可选列表`,"split.resize":`调整面板大小`,"split.expandFirst":`展开首面板`,"split.collapseFirst":`折叠首面板`,"split.expandSecond":`展开第二面板`,"split.collapseSecond":`折叠第二面板`,"chat.sessions":`会话`,"chat.search":`搜索联系人`,"chat.online":`在线`,"chat.empty":`暂无消息,发送第一条吧`,"chat.choose":`选择一个会话开始聊天`,"chat.placeholder":`输入消息...`,"chat.title":`聊天`,"chat.emoji":`表情`,"chat.attach":`添加附件`,"chat.send":`发送`,"chat.imagePreview":`预览{name}的图片`,"chat.image":`聊天图片`,"chat.file":`文件`,"chat.failed":`发送失败,点击重试`,"chat.sending":`发送中...`,"time.now":`刚刚`,"time.minutes":`{count}分钟前`,"time.hours":`{count}小时前`,"time.days":`{count}天前`,"time.weeks":`{count}周前`,"time.months":`{count}个月前`,"time.yesterday":`昨天 {time}`,"theme.light":`当前: 浅色模式 (点击切换)`,"theme.dark":`当前: 深色模式 (点击切换)`,"theme.system":`当前: 跟随系统 (点击切换)`,"language.switch":`语言切换`,"skeleton.loading":`加载中`,"timeline.loading":`加载中...`,"notification.title":`消息中心`,"notification.viewAll":`查看全部消息`,"notification.badge":`消息通知`,"notification.unreadBadge":`消息通知({count} 条未读)`,"notification.all":`全部`,"notification.system":`系统通知`,"notification.business":`业务消息`,"notification.alarm":`告警预警`,"notification.low":`低`,"notification.normal":`普通`,"notification.high":`重要`,"notification.urgent":`紧急`,"notification.markRead":`标记已读`,"notification.delete":`删除消息`,"notification.allRead":`全部已读`,"notification.clear":`清空`,"notification.loadMore":`加载更多`,"notification.loading":`加载中...`,"notification.empty":`暂无消息`,"notification.back":`返回列表`,"notification.details":`查看详情`,"notification.connected":`已连接`,"notification.connecting":`连接中...`,"notification.disconnected":`未连接`,"notification.reconnecting":`重连中...`,"common.confirm":`确定`,"common.cancel":`取消`,"common.save":`保存`,"common.submit":`提交`,"common.reset":`重置`,"common.retry":`重试`,"common.edit":`编辑`,"common.detail":`详情`,"common.delete":`删除`,"common.select":`选择`,"common.print":`打印`,"common.loading":`正在加载`,"table.loading":`正在加载数据`,"table.loadFailed":`数据加载失败`,"table.deleteTitle":`确认删除`,"table.deleteContent":`确定要删除这条记录吗?`,"table.deleteSuccess":`删除成功`,"table.deleteFailed":`删除失败`,"table.detailFailed":`获取详情失败`,"table.moreActions":`更多操作`,"table.actionFailed":`{action}失败`,"table.cancelSelection":`取消选择`,"table.columnSettings":`列设置`,"table.rowNumber":`序号`,"table.export":`导出`,"table.settings":`表格设置`,"table.selectedCount":`已选择 {count} 项`,"table.addRow":`增行`,"table.insertRow":`插行`,"table.deleteRow":`删除行`,"table.copyRow":`复制行`,"table.moveUp":`上移`,"table.moveDown":`下移`,"table.addRowSuccess":`添加行成功`,"table.insertRowSuccess":`插入行成功`,"table.deleteRowSuccess":`删除行成功`,"table.copyRowSuccess":`复制行成功`,"table.moveUpSuccess":`行已上移`,"table.moveDownSuccess":`行已下移`,"table.selectRowFirst":`请先选择一行数据`,"table.selectDeleteRowFirst":`请先选择要删除的行`,"table.selectCopyRowFirst":`请先选择要复制的行`,"table.firstRow":`已经是第一行`,"table.lastRow":`已经是最后一行`,"table.deleteRowContent":`确定要删除选中的行吗?此操作不可撤销。`,"table.confirmDeleteRow":`确认删除`,"table.printTargetMissing":`打印元素未找到`,"table.downloadTargetMissing":`下载元素未找到`,"table.invalidRowKeys":`表格存在 {count} 个缺失或重复的行键`,"breadcrumb.label":`面包屑`,"breadcrumb.expandPath":`展开完整路径`,"breadcrumb.fullPath":`完整路径`,"breadcrumb.directoryPages":`目录页面`,"breadcrumb.pageCount":`{count} 个页面`,"breadcrumb.current":`当前`,"form.required":`{label}不能为空`,"form.draftChanged":`表单已修改,请重新保存。`,"search.valueRequired":`请输入搜索内容,或选择筛选条件`,"search.failed":`搜索失败`,"captcha.trigger":`点击进行人机验证`,"captcha.verifying":`正在验证…`,"captcha.success":`验证成功`,"captcha.failed":`验证失败,请重试`,"captcha.reset":`重新验证`,"captcha.puzzleFailed":`拼图验证失败`,"captcha.verifyFailed":`服务端验证失败`,"captcha.loadFailed":`验证码加载失败`}),t=Object.freeze({"validation.summary":`Please check the following`,"validation.previous":`Previous group`,"validation.next":`Next group`,"picker.title":`Select data`,"picker.quickSearch":`Type to find records`,"picker.more":`Full selection`,"picker.recent":`Recent`,"picker.favorites":`Favorites`,"picker.favorite":`Favorite current selection`,"picker.removeFavorite":`Remove favorite`,"picker.selectionInvalid":`Some records are unavailable. Please select again.`,"picker.selectionFailed":`Selection validation failed. Please retry.`,"picker.allCategories":`All categories`,"userPicker.title":`Select people`,"userPicker.placeholder":`Select people`,"userPicker.name":`Person`,"userPicker.code":`Employee number`,"userPicker.department":`Department`,"userPicker.job":`Position`,"userPicker.status":`Status`,"userPicker.selected":`Selected people`,"userPicker.organization":`Organization`,"userPicker.emptySelection":`No people selected`,"userPicker.remove":`Remove {name}`,"userPicker.selectedPages":`Selected people pagination`,"userPicker.moveUp":`Move {name} up`,"userPicker.moveDown":`Move {name} down`,"picker.placeholder":`Please select`,"picker.searchPlaceholder":`Enter keywords`,"picker.clear":`Clear selection`,"picker.searchLabel":`Search candidates`,"picker.search":`Search`,"picker.loadFailed":`Could not load candidates`,"picker.labelFailed":`Could not load labels; original values are retained`,"picker.selected":`{count} selected`,"picker.total":`{count} results`,"picker.pagination":`Candidate pagination`,"picker.moreSelected":`{count} more`,"batch.title":`Batch operation results`,"batch.summary":`{total} items: {success} succeeded, {failure} failed, {conflict} conflicted, {skipped} skipped`,"batch.filterLabel":`Filter results`,"batch.all":`All`,"batch.retry":`Retry eligible items ({count})`,"options.failed":`Failed to load options`,"options.loadMore":`Load more`,"options.empty":`No options`,"options.minChars":`Enter at least {count} characters`,"batch.id":`Business key`,"batch.status":`Result`,"batch.message":`Details`,"batch.retryColumn":`Retry`,"batch.retryable":`Retryable`,"batch.success":`Success`,"batch.failure":`Failure`,"batch.conflict":`Conflict`,"batch.skipped":`Skipped`,"section.navigation":`Document sections`,"section.errors":`{count} errors`,"notification.invalidResponse":`Invalid notification response or counts`,"notification.operationFailed":`Notification action failed. Try again.`,"notification.missingFetch":`Remote notifications require fetchNotifications`,"notification.missingAction":`Remote notifications require the {name} adapter`,"notification.expiredScope":`Notification scope has expired`,"chat.self":`Me`,"common.search":`Search...`,"common.action":`Action`,"common.add":`Add`,"common.create":`Create`,"action.confirm":`Confirm`,"common.close":`Close`,"common.view":`View`,"common.import":`Import`,"common.export":`Export`,"common.fullscreen":`Fullscreen`,"common.settings":`Settings`,"common.more":`More`,"common.refresh":`Refresh`,"common.expand":`Show details`,"common.collapse":`Collapse`,"common.unknown":`Unknown`,"tree.search":`Search tree nodes`,"tree.searchLoading":`Finding nodes`,"tree.searchFailed":`Search failed. Try again.`,"tree.searchCount":`{total} results found`,"tree.loadingChildren":`Loading child nodes`,"tree.searchResults":`Result {current} of {total}`,"tree.searchPrevious":`Previous result`,"tree.searchNext":`Next result`,"tree.searchRetry":`Retry search`,"tree.searchEmpty":`No matching nodes`,"tree.searchMinChars":`Enter at least {count} characters to search`,"search.fields":`Query fields`,"search.fieldSettings":`Configure query fields`,"search.restoreFields":`Restore default fields`,"search.selectPlaceholder":`Please select`,"search.clearHistory":`Clear history`,"tree.expandAll":`Expand all`,"tree.collapseAll":`Collapse all`,"tree.menu.add":`Add submenu`,"tree.menu.deleteConfirm":`Delete this menu?`,"tree.file.open":`Open`,"tree.file.rename":`Rename`,"tree.file.deleteConfirm":`Delete this file?`,"tree.org.add":`Add child`,"orgChart.zoomIn":`Zoom in`,"orgChart.zoomOut":`Zoom out`,"orgChart.reset":`Reset`,"orgChart.expand":`Expand {label}`,"orgChart.collapse":`Collapse {label}`,"transfer.source":`Available`,"transfer.target":`Selected`,"transfer.empty":`No data`,"transfer.emptyTarget":`Nothing selected`,"transfer.searchSource":`Search available items`,"transfer.searchTarget":`Search selected items`,"transfer.toTarget":`Move to selected`,"transfer.toSource":`Move to available`,"split.resize":`Resize panels`,"split.expandFirst":`Expand first panel`,"split.collapseFirst":`Collapse first panel`,"split.expandSecond":`Expand second panel`,"split.collapseSecond":`Collapse second panel`,"chat.sessions":`Conversations`,"chat.search":`Search contacts`,"chat.online":`Online`,"chat.empty":`No messages yet. Send the first one.`,"chat.choose":`Select a conversation to start chatting`,"chat.placeholder":`Type a message...`,"chat.title":`Chat`,"chat.emoji":`Emoji`,"chat.attach":`Add attachment`,"chat.send":`Send`,"chat.imagePreview":`Preview image from {name}`,"chat.image":`Chat image`,"chat.file":`File`,"chat.failed":`Send failed. Click to retry.`,"chat.sending":`Sending...`,"time.now":`Just now`,"time.minutes":`{count} minutes ago`,"time.hours":`{count} hours ago`,"time.days":`{count} days ago`,"time.weeks":`{count} weeks ago`,"time.months":`{count} months ago`,"time.yesterday":`Yesterday {time}`,"theme.light":`Current: Light mode (click to switch)`,"theme.dark":`Current: Dark mode (click to switch)`,"theme.system":`Current: System mode (click to switch)`,"language.switch":`Switch language`,"skeleton.loading":`Loading`,"timeline.loading":`Loading...`,"notification.title":`Notification center`,"notification.viewAll":`View all notifications`,"notification.badge":`Notifications`,"notification.unreadBadge":`Notifications ({count} unread)`,"notification.all":`All`,"notification.system":`System`,"notification.business":`Business`,"notification.alarm":`Alerts`,"notification.low":`Low`,"notification.normal":`Normal`,"notification.high":`Important`,"notification.urgent":`Urgent`,"notification.markRead":`Mark as read`,"notification.delete":`Delete notification`,"notification.allRead":`Mark all as read`,"notification.clear":`Clear`,"notification.loadMore":`Load more`,"notification.loading":`Loading...`,"notification.empty":`No notifications`,"notification.back":`Back to list`,"notification.details":`View details`,"notification.connected":`Connected`,"notification.connecting":`Connecting...`,"notification.disconnected":`Disconnected`,"notification.reconnecting":`Reconnecting...`,"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.save":`Save`,"common.submit":`Submit`,"common.reset":`Reset`,"common.retry":`Retry`,"common.edit":`Edit`,"common.detail":`Details`,"common.delete":`Delete`,"common.select":`Select`,"common.print":`Print`,"common.loading":`Loading`,"table.loading":`Loading data`,"table.loadFailed":`Failed to load data`,"table.deleteTitle":`Confirm deletion`,"table.deleteContent":`Are you sure you want to delete this record?`,"table.deleteSuccess":`Deleted successfully`,"table.deleteFailed":`Delete failed`,"table.detailFailed":`Failed to load details`,"table.moreActions":`More actions`,"table.actionFailed":`{action} failed`,"table.cancelSelection":`Clear selection`,"table.columnSettings":`Column settings`,"table.rowNumber":`No.`,"table.export":`Export`,"table.settings":`Table settings`,"table.selectedCount":`{count} selected`,"table.addRow":`Add row`,"table.insertRow":`Insert row`,"table.deleteRow":`Delete row`,"table.copyRow":`Copy row`,"table.moveUp":`Move up`,"table.moveDown":`Move down`,"table.addRowSuccess":`Row added`,"table.insertRowSuccess":`Row inserted`,"table.deleteRowSuccess":`Row deleted`,"table.copyRowSuccess":`Row copied`,"table.moveUpSuccess":`Row moved up`,"table.moveDownSuccess":`Row moved down`,"table.selectRowFirst":`Select a row first`,"table.selectDeleteRowFirst":`Select a row to delete first`,"table.selectCopyRowFirst":`Select a row to copy first`,"table.firstRow":`This is already the first row`,"table.lastRow":`This is already the last row`,"table.deleteRowContent":`Are you sure you want to delete the selected row? This cannot be undone.`,"table.confirmDeleteRow":`Delete row`,"table.printTargetMissing":`Print target was not found`,"table.downloadTargetMissing":`Download target was not found`,"table.invalidRowKeys":`{count} table row keys are missing or duplicated`,"breadcrumb.label":`Breadcrumb`,"breadcrumb.expandPath":`Show full path`,"breadcrumb.fullPath":`Full path`,"breadcrumb.directoryPages":`Directory pages`,"breadcrumb.pageCount":`{count} pages`,"breadcrumb.current":`Current`,"form.required":`{label} is required`,"form.draftChanged":`Form changed. Save again.`,"search.valueRequired":`Enter a search term or choose a filter`,"search.failed":`Search failed`,"captcha.trigger":`Click to verify`,"captcha.verifying":`Verifying…`,"captcha.success":`Verified`,"captcha.failed":`Verification failed. Try again.`,"captcha.reset":`Verify again`,"captcha.puzzleFailed":`Puzzle verification failed`,"captcha.verifyFailed":`Server verification failed`,"captcha.loadFailed":`Failed to load captcha`}),n=(e,t)=>t?e.replace(/\{([^{}]+)\}/g,(e,n)=>Object.prototype.hasOwnProperty.call(t,n)?String(t[n]):e):e;function r(e,t){return e&&t in e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function i(n){return n===`en-US`?t:e}function a(e,t={},a={},o){let s=t.t??a.t;if(s)return s(e,o);let c=i(t.locale??a.locale);return n(r(t.messages,e)??r(a.messages,e)??r(c,e)??e,o)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
1
+ const e=Object.freeze({"validation.summary":`请检查以下内容`,"validation.previous":`上一组`,"validation.next":`下一组`,"options.failed":`选项加载失败`,"options.loadMore":`加载更多`,"options.empty":`暂无选项`,"options.minChars":`输入至少 {count} 个字符`,"picker.title":`选择数据`,"picker.placeholder":`请选择`,"picker.searchPlaceholder":`输入关键字`,"picker.clear":`清空选择`,"picker.searchLabel":`搜索候选数据`,"picker.search":`搜索`,"picker.loadFailed":`候选数据加载失败`,"picker.labelFailed":`名称加载失败,保留原编码`,"picker.selected":`已选 {count} 项`,"picker.total":`共 {count} 条`,"picker.pagination":`候选数据分页`,"picker.moreSelected":`另 {count} 项`,"picker.quickSearch":`输入关键词快速选择`,"picker.more":`完整选择`,"picker.recent":`最近使用`,"picker.favorites":`收藏`,"picker.favorite":`收藏当前选择`,"picker.removeFavorite":`取消收藏`,"picker.selectionInvalid":`所选数据已失效或不可选择,请重新选择`,"picker.selectionFailed":`选择校验失败,请重试`,"picker.allCategories":`全部分类`,"userPicker.title":`选择人员`,"userPicker.placeholder":`请选择人员`,"userPicker.name":`人员`,"userPicker.code":`工号`,"userPicker.department":`部门`,"userPicker.job":`岗位`,"userPicker.status":`状态`,"userPicker.selected":`已选人员`,"userPicker.organization":`组织架构`,"userPicker.emptySelection":`尚未选择人员`,"userPicker.remove":`移除 {name}`,"userPicker.selectedPages":`已选人员分页`,"userPicker.moveUp":`上移 {name}`,"userPicker.moveDown":`下移 {name}`,"batch.title":`批量操作结果`,"batch.summary":`共 {total} 项,成功 {success},失败 {failure},冲突 {conflict},跳过 {skipped}`,"batch.filterLabel":`筛选操作结果`,"batch.all":`全部`,"batch.retry":`重试可重试项({count})`,"batch.id":`业务标识`,"batch.status":`结果`,"batch.message":`说明`,"batch.retryColumn":`重试`,"batch.retryable":`可重试`,"batch.success":`成功`,"batch.failure":`失败`,"batch.conflict":`冲突`,"batch.skipped":`跳过`,"section.navigation":`单据分区导航`,"section.errors":`{count} 项错误`,"notification.invalidResponse":`消息接口返回的数据或统计无效`,"notification.operationFailed":`消息操作失败,请重试`,"notification.missingFetch":`远程消息模式未配置 fetchNotifications`,"notification.missingAction":`远程消息模式未配置 {name} 接口`,"notification.expiredScope":`消息作用域已失效`,"chat.self":`Me`,"common.search":`搜索...`,"common.action":`操作`,"common.add":`新增`,"common.create":`创建`,"action.confirm":`确认`,"common.close":`关闭`,"common.view":`查看`,"common.import":`导入`,"common.export":`导出`,"common.fullscreen":`全屏`,"common.settings":`功能配置`,"common.more":`更多`,"common.refresh":`刷新`,"common.expand":`展开详情`,"common.collapse":`收起`,"common.unknown":`未知`,"tree.search":`搜索树节点`,"tree.searchLoading":`正在查找节点`,"tree.searchFailed":`查找失败,请重试`,"tree.searchCount":`找到 {total} 个结果`,"tree.loadingChildren":`加载子节点`,"tree.searchResults":`第 {current} / {total} 个结果`,"tree.searchPrevious":`上一个结果`,"tree.searchNext":`下一个结果`,"tree.searchRetry":`重试查找`,"tree.searchEmpty":`未找到匹配节点`,"tree.searchMinChars":`输入至少 {count} 个字符开始查找`,"search.fields":`查询字段`,"search.fieldSettings":`设置查询字段`,"search.restoreFields":`恢复默认字段`,"search.selectPlaceholder":`请选择`,"search.startTime":`开始时间`,"search.endTime":`结束时间`,"search.clearHistory":`清空历史记录`,"tree.expandAll":`展开全部`,"tree.collapseAll":`收起全部`,"tree.menu.add":`新增子菜单`,"tree.menu.deleteConfirm":`确认删除该菜单吗?`,"tree.file.open":`打开`,"tree.file.rename":`重命名`,"tree.file.deleteConfirm":`确认删除该文件吗?`,"tree.org.add":`新增下级`,"orgChart.zoomIn":`放大`,"orgChart.zoomOut":`缩小`,"orgChart.reset":`重置`,"orgChart.expand":`展开 {label}`,"orgChart.collapse":`折叠 {label}`,"transfer.source":`可选列表`,"transfer.target":`已选列表`,"transfer.empty":`暂无数据`,"transfer.emptyTarget":`未选择任何项`,"transfer.searchSource":`搜索可选列表`,"transfer.searchTarget":`搜索已选列表`,"transfer.toTarget":`移至已选列表`,"transfer.toSource":`移回可选列表`,"split.resize":`调整面板大小`,"split.expandFirst":`展开首面板`,"split.collapseFirst":`折叠首面板`,"split.expandSecond":`展开第二面板`,"split.collapseSecond":`折叠第二面板`,"chat.sessions":`会话`,"chat.search":`搜索联系人`,"chat.online":`在线`,"chat.empty":`暂无消息,发送第一条吧`,"chat.choose":`选择一个会话开始聊天`,"chat.placeholder":`输入消息...`,"chat.title":`聊天`,"chat.emoji":`表情`,"chat.attach":`添加附件`,"chat.send":`发送`,"chat.imagePreview":`预览{name}的图片`,"chat.image":`聊天图片`,"chat.file":`文件`,"chat.failed":`发送失败,点击重试`,"chat.sending":`发送中...`,"time.now":`刚刚`,"time.minutes":`{count}分钟前`,"time.hours":`{count}小时前`,"time.days":`{count}天前`,"time.weeks":`{count}周前`,"time.months":`{count}个月前`,"time.yesterday":`昨天 {time}`,"theme.light":`当前: 浅色模式 (点击切换)`,"theme.dark":`当前: 深色模式 (点击切换)`,"theme.system":`当前: 跟随系统 (点击切换)`,"language.switch":`语言切换`,"skeleton.loading":`加载中`,"timeline.loading":`加载中...`,"notification.title":`消息中心`,"notification.viewAll":`查看全部消息`,"notification.badge":`消息通知`,"notification.unreadBadge":`消息通知({count} 条未读)`,"notification.all":`全部`,"notification.system":`系统通知`,"notification.business":`业务消息`,"notification.alarm":`告警预警`,"notification.low":`低`,"notification.normal":`普通`,"notification.high":`重要`,"notification.urgent":`紧急`,"notification.markRead":`标记已读`,"notification.delete":`删除消息`,"notification.allRead":`全部已读`,"notification.clear":`清空`,"notification.loadMore":`加载更多`,"notification.loading":`加载中...`,"notification.empty":`暂无消息`,"notification.back":`返回列表`,"notification.details":`查看详情`,"notification.connected":`已连接`,"notification.connecting":`连接中...`,"notification.disconnected":`未连接`,"notification.reconnecting":`重连中...`,"common.confirm":`确定`,"common.cancel":`取消`,"common.save":`保存`,"common.submit":`提交`,"common.reset":`重置`,"common.retry":`重试`,"common.edit":`编辑`,"common.detail":`详情`,"common.delete":`删除`,"common.select":`选择`,"common.print":`打印`,"common.loading":`正在加载`,"table.loading":`正在加载数据`,"table.loadFailed":`数据加载失败`,"table.deleteTitle":`确认删除`,"table.deleteContent":`确定要删除这条记录吗?`,"table.deleteSuccess":`删除成功`,"table.deleteFailed":`删除失败`,"table.detailFailed":`获取详情失败`,"table.moreActions":`更多操作`,"table.actionFailed":`{action}失败`,"table.cancelSelection":`取消选择`,"table.columnSettings":`列设置`,"table.rowNumber":`序号`,"table.export":`导出`,"table.settings":`表格设置`,"table.selectedCount":`已选择 {count} 项`,"table.addRow":`增行`,"table.insertRow":`插行`,"table.deleteRow":`删除行`,"table.copyRow":`复制行`,"table.moveUp":`上移`,"table.moveDown":`下移`,"table.addRowSuccess":`添加行成功`,"table.insertRowSuccess":`插入行成功`,"table.deleteRowSuccess":`删除行成功`,"table.copyRowSuccess":`复制行成功`,"table.moveUpSuccess":`行已上移`,"table.moveDownSuccess":`行已下移`,"table.selectRowFirst":`请先选择一行数据`,"table.selectDeleteRowFirst":`请先选择要删除的行`,"table.selectCopyRowFirst":`请先选择要复制的行`,"table.firstRow":`已经是第一行`,"table.lastRow":`已经是最后一行`,"table.deleteRowContent":`确定要删除选中的行吗?此操作不可撤销。`,"table.confirmDeleteRow":`确认删除`,"table.printTargetMissing":`打印元素未找到`,"table.downloadTargetMissing":`下载元素未找到`,"table.invalidRowKeys":`表格存在 {count} 个缺失或重复的行键`,"breadcrumb.label":`面包屑`,"breadcrumb.expandPath":`展开完整路径`,"breadcrumb.fullPath":`完整路径`,"breadcrumb.directoryPages":`目录页面`,"breadcrumb.pageCount":`{count} 个页面`,"breadcrumb.current":`当前`,"form.required":`{label}不能为空`,"form.draftChanged":`表单已修改,请重新保存。`,"search.valueRequired":`请输入搜索内容,或选择筛选条件`,"search.failed":`搜索失败`,"captcha.trigger":`点击进行人机验证`,"captcha.verifying":`正在验证…`,"captcha.success":`验证成功`,"captcha.failed":`验证失败,请重试`,"captcha.reset":`重新验证`,"captcha.puzzleFailed":`拼图验证失败`,"captcha.verifyFailed":`服务端验证失败`,"captcha.loadFailed":`验证码加载失败`}),t=Object.freeze({"validation.summary":`Please check the following`,"validation.previous":`Previous group`,"validation.next":`Next group`,"picker.title":`Select data`,"picker.quickSearch":`Type to find records`,"picker.more":`Full selection`,"picker.recent":`Recent`,"picker.favorites":`Favorites`,"picker.favorite":`Favorite current selection`,"picker.removeFavorite":`Remove favorite`,"picker.selectionInvalid":`Some records are unavailable. Please select again.`,"picker.selectionFailed":`Selection validation failed. Please retry.`,"picker.allCategories":`All categories`,"userPicker.title":`Select people`,"userPicker.placeholder":`Select people`,"userPicker.name":`Person`,"userPicker.code":`Employee number`,"userPicker.department":`Department`,"userPicker.job":`Position`,"userPicker.status":`Status`,"userPicker.selected":`Selected people`,"userPicker.organization":`Organization`,"userPicker.emptySelection":`No people selected`,"userPicker.remove":`Remove {name}`,"userPicker.selectedPages":`Selected people pagination`,"userPicker.moveUp":`Move {name} up`,"userPicker.moveDown":`Move {name} down`,"picker.placeholder":`Please select`,"picker.searchPlaceholder":`Enter keywords`,"picker.clear":`Clear selection`,"picker.searchLabel":`Search candidates`,"picker.search":`Search`,"picker.loadFailed":`Could not load candidates`,"picker.labelFailed":`Could not load labels; original values are retained`,"picker.selected":`{count} selected`,"picker.total":`{count} results`,"picker.pagination":`Candidate pagination`,"picker.moreSelected":`{count} more`,"batch.title":`Batch operation results`,"batch.summary":`{total} items: {success} succeeded, {failure} failed, {conflict} conflicted, {skipped} skipped`,"batch.filterLabel":`Filter results`,"batch.all":`All`,"batch.retry":`Retry eligible items ({count})`,"options.failed":`Failed to load options`,"options.loadMore":`Load more`,"options.empty":`No options`,"options.minChars":`Enter at least {count} characters`,"batch.id":`Business key`,"batch.status":`Result`,"batch.message":`Details`,"batch.retryColumn":`Retry`,"batch.retryable":`Retryable`,"batch.success":`Success`,"batch.failure":`Failure`,"batch.conflict":`Conflict`,"batch.skipped":`Skipped`,"section.navigation":`Document sections`,"section.errors":`{count} errors`,"notification.invalidResponse":`Invalid notification response or counts`,"notification.operationFailed":`Notification action failed. Try again.`,"notification.missingFetch":`Remote notifications require fetchNotifications`,"notification.missingAction":`Remote notifications require the {name} adapter`,"notification.expiredScope":`Notification scope has expired`,"chat.self":`Me`,"common.search":`Search...`,"common.action":`Action`,"common.add":`Add`,"common.create":`Create`,"action.confirm":`Confirm`,"common.close":`Close`,"common.view":`View`,"common.import":`Import`,"common.export":`Export`,"common.fullscreen":`Fullscreen`,"common.settings":`Settings`,"common.more":`More`,"common.refresh":`Refresh`,"common.expand":`Show details`,"common.collapse":`Collapse`,"common.unknown":`Unknown`,"tree.search":`Search tree nodes`,"tree.searchLoading":`Finding nodes`,"tree.searchFailed":`Search failed. Try again.`,"tree.searchCount":`{total} results found`,"tree.loadingChildren":`Loading child nodes`,"tree.searchResults":`Result {current} of {total}`,"tree.searchPrevious":`Previous result`,"tree.searchNext":`Next result`,"tree.searchRetry":`Retry search`,"tree.searchEmpty":`No matching nodes`,"tree.searchMinChars":`Enter at least {count} characters to search`,"search.fields":`Query fields`,"search.fieldSettings":`Configure query fields`,"search.restoreFields":`Restore default fields`,"search.selectPlaceholder":`Please select`,"search.startTime":`Start time`,"search.endTime":`End time`,"search.clearHistory":`Clear history`,"tree.expandAll":`Expand all`,"tree.collapseAll":`Collapse all`,"tree.menu.add":`Add submenu`,"tree.menu.deleteConfirm":`Delete this menu?`,"tree.file.open":`Open`,"tree.file.rename":`Rename`,"tree.file.deleteConfirm":`Delete this file?`,"tree.org.add":`Add child`,"orgChart.zoomIn":`Zoom in`,"orgChart.zoomOut":`Zoom out`,"orgChart.reset":`Reset`,"orgChart.expand":`Expand {label}`,"orgChart.collapse":`Collapse {label}`,"transfer.source":`Available`,"transfer.target":`Selected`,"transfer.empty":`No data`,"transfer.emptyTarget":`Nothing selected`,"transfer.searchSource":`Search available items`,"transfer.searchTarget":`Search selected items`,"transfer.toTarget":`Move to selected`,"transfer.toSource":`Move to available`,"split.resize":`Resize panels`,"split.expandFirst":`Expand first panel`,"split.collapseFirst":`Collapse first panel`,"split.expandSecond":`Expand second panel`,"split.collapseSecond":`Collapse second panel`,"chat.sessions":`Conversations`,"chat.search":`Search contacts`,"chat.online":`Online`,"chat.empty":`No messages yet. Send the first one.`,"chat.choose":`Select a conversation to start chatting`,"chat.placeholder":`Type a message...`,"chat.title":`Chat`,"chat.emoji":`Emoji`,"chat.attach":`Add attachment`,"chat.send":`Send`,"chat.imagePreview":`Preview image from {name}`,"chat.image":`Chat image`,"chat.file":`File`,"chat.failed":`Send failed. Click to retry.`,"chat.sending":`Sending...`,"time.now":`Just now`,"time.minutes":`{count} minutes ago`,"time.hours":`{count} hours ago`,"time.days":`{count} days ago`,"time.weeks":`{count} weeks ago`,"time.months":`{count} months ago`,"time.yesterday":`Yesterday {time}`,"theme.light":`Current: Light mode (click to switch)`,"theme.dark":`Current: Dark mode (click to switch)`,"theme.system":`Current: System mode (click to switch)`,"language.switch":`Switch language`,"skeleton.loading":`Loading`,"timeline.loading":`Loading...`,"notification.title":`Notification center`,"notification.viewAll":`View all notifications`,"notification.badge":`Notifications`,"notification.unreadBadge":`Notifications ({count} unread)`,"notification.all":`All`,"notification.system":`System`,"notification.business":`Business`,"notification.alarm":`Alerts`,"notification.low":`Low`,"notification.normal":`Normal`,"notification.high":`Important`,"notification.urgent":`Urgent`,"notification.markRead":`Mark as read`,"notification.delete":`Delete notification`,"notification.allRead":`Mark all as read`,"notification.clear":`Clear`,"notification.loadMore":`Load more`,"notification.loading":`Loading...`,"notification.empty":`No notifications`,"notification.back":`Back to list`,"notification.details":`View details`,"notification.connected":`Connected`,"notification.connecting":`Connecting...`,"notification.disconnected":`Disconnected`,"notification.reconnecting":`Reconnecting...`,"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.save":`Save`,"common.submit":`Submit`,"common.reset":`Reset`,"common.retry":`Retry`,"common.edit":`Edit`,"common.detail":`Details`,"common.delete":`Delete`,"common.select":`Select`,"common.print":`Print`,"common.loading":`Loading`,"table.loading":`Loading data`,"table.loadFailed":`Failed to load data`,"table.deleteTitle":`Confirm deletion`,"table.deleteContent":`Are you sure you want to delete this record?`,"table.deleteSuccess":`Deleted successfully`,"table.deleteFailed":`Delete failed`,"table.detailFailed":`Failed to load details`,"table.moreActions":`More actions`,"table.actionFailed":`{action} failed`,"table.cancelSelection":`Clear selection`,"table.columnSettings":`Column settings`,"table.rowNumber":`No.`,"table.export":`Export`,"table.settings":`Table settings`,"table.selectedCount":`{count} selected`,"table.addRow":`Add row`,"table.insertRow":`Insert row`,"table.deleteRow":`Delete row`,"table.copyRow":`Copy row`,"table.moveUp":`Move up`,"table.moveDown":`Move down`,"table.addRowSuccess":`Row added`,"table.insertRowSuccess":`Row inserted`,"table.deleteRowSuccess":`Row deleted`,"table.copyRowSuccess":`Row copied`,"table.moveUpSuccess":`Row moved up`,"table.moveDownSuccess":`Row moved down`,"table.selectRowFirst":`Select a row first`,"table.selectDeleteRowFirst":`Select a row to delete first`,"table.selectCopyRowFirst":`Select a row to copy first`,"table.firstRow":`This is already the first row`,"table.lastRow":`This is already the last row`,"table.deleteRowContent":`Are you sure you want to delete the selected row? This cannot be undone.`,"table.confirmDeleteRow":`Delete row`,"table.printTargetMissing":`Print target was not found`,"table.downloadTargetMissing":`Download target was not found`,"table.invalidRowKeys":`{count} table row keys are missing or duplicated`,"breadcrumb.label":`Breadcrumb`,"breadcrumb.expandPath":`Show full path`,"breadcrumb.fullPath":`Full path`,"breadcrumb.directoryPages":`Directory pages`,"breadcrumb.pageCount":`{count} pages`,"breadcrumb.current":`Current`,"form.required":`{label} is required`,"form.draftChanged":`Form changed. Save again.`,"search.valueRequired":`Enter a search term or choose a filter`,"search.failed":`Search failed`,"captcha.trigger":`Click to verify`,"captcha.verifying":`Verifying…`,"captcha.success":`Verified`,"captcha.failed":`Verification failed. Try again.`,"captcha.reset":`Verify again`,"captcha.puzzleFailed":`Puzzle verification failed`,"captcha.verifyFailed":`Server verification failed`,"captcha.loadFailed":`Failed to load captcha`}),n=(e,t)=>t?e.replace(/\{([^{}]+)\}/g,(e,n)=>Object.prototype.hasOwnProperty.call(t,n)?String(t[n]):e):e;function r(e,t){return e&&t in e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function i(n){return n===`en-US`?t:e}function a(e,t={},a={},o){let s=t.t??a.t;if(s)return s(e,o);let c=i(t.locale??a.locale);return n(r(t.messages,e)??r(a.messages,e)??r(c,e)??e,o)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return a}});
package/dist/locale.js CHANGED
@@ -1 +1 @@
1
- const e=Object.freeze({"validation.summary":`请检查以下内容`,"validation.previous":`上一组`,"validation.next":`下一组`,"options.failed":`选项加载失败`,"options.loadMore":`加载更多`,"options.empty":`暂无选项`,"options.minChars":`输入至少 {count} 个字符`,"picker.title":`选择数据`,"picker.placeholder":`请选择`,"picker.searchPlaceholder":`输入关键字`,"picker.clear":`清空选择`,"picker.searchLabel":`搜索候选数据`,"picker.search":`搜索`,"picker.loadFailed":`候选数据加载失败`,"picker.labelFailed":`名称加载失败,保留原编码`,"picker.selected":`已选 {count} 项`,"picker.total":`共 {count} 条`,"picker.pagination":`候选数据分页`,"picker.moreSelected":`另 {count} 项`,"picker.quickSearch":`输入关键词快速选择`,"picker.more":`完整选择`,"picker.recent":`最近使用`,"picker.favorites":`收藏`,"picker.favorite":`收藏当前选择`,"picker.removeFavorite":`取消收藏`,"picker.selectionInvalid":`所选数据已失效或不可选择,请重新选择`,"picker.selectionFailed":`选择校验失败,请重试`,"picker.allCategories":`全部分类`,"userPicker.title":`选择人员`,"userPicker.placeholder":`请选择人员`,"userPicker.name":`人员`,"userPicker.code":`工号`,"userPicker.department":`部门`,"userPicker.job":`岗位`,"userPicker.status":`状态`,"userPicker.selected":`已选人员`,"userPicker.organization":`组织架构`,"userPicker.emptySelection":`尚未选择人员`,"userPicker.remove":`移除 {name}`,"userPicker.selectedPages":`已选人员分页`,"userPicker.moveUp":`上移 {name}`,"userPicker.moveDown":`下移 {name}`,"batch.title":`批量操作结果`,"batch.summary":`共 {total} 项,成功 {success},失败 {failure},冲突 {conflict},跳过 {skipped}`,"batch.filterLabel":`筛选操作结果`,"batch.all":`全部`,"batch.retry":`重试可重试项({count})`,"batch.id":`业务标识`,"batch.status":`结果`,"batch.message":`说明`,"batch.retryColumn":`重试`,"batch.retryable":`可重试`,"batch.success":`成功`,"batch.failure":`失败`,"batch.conflict":`冲突`,"batch.skipped":`跳过`,"section.navigation":`单据分区导航`,"section.errors":`{count} 项错误`,"notification.invalidResponse":`消息接口返回的数据或统计无效`,"notification.operationFailed":`消息操作失败,请重试`,"notification.missingFetch":`远程消息模式未配置 fetchNotifications`,"notification.missingAction":`远程消息模式未配置 {name} 接口`,"notification.expiredScope":`消息作用域已失效`,"chat.self":`Me`,"common.search":`搜索...`,"common.action":`操作`,"common.add":`新增`,"common.create":`创建`,"action.confirm":`确认`,"common.close":`关闭`,"common.view":`查看`,"common.import":`导入`,"common.export":`导出`,"common.fullscreen":`全屏`,"common.settings":`功能配置`,"common.more":`更多`,"common.refresh":`刷新`,"common.expand":`展开详情`,"common.collapse":`收起`,"common.unknown":`未知`,"tree.search":`搜索树节点`,"tree.searchLoading":`正在查找节点`,"tree.searchFailed":`查找失败,请重试`,"tree.searchCount":`找到 {total} 个结果`,"tree.loadingChildren":`加载子节点`,"tree.searchResults":`第 {current} / {total} 个结果`,"tree.searchPrevious":`上一个结果`,"tree.searchNext":`下一个结果`,"tree.searchRetry":`重试查找`,"tree.searchEmpty":`未找到匹配节点`,"tree.searchMinChars":`输入至少 {count} 个字符开始查找`,"search.fields":`查询字段`,"search.fieldSettings":`设置查询字段`,"search.restoreFields":`恢复默认字段`,"search.selectPlaceholder":`请选择`,"search.clearHistory":`清空历史记录`,"tree.expandAll":`展开全部`,"tree.collapseAll":`收起全部`,"tree.menu.add":`新增子菜单`,"tree.menu.deleteConfirm":`确认删除该菜单吗?`,"tree.file.open":`打开`,"tree.file.rename":`重命名`,"tree.file.deleteConfirm":`确认删除该文件吗?`,"tree.org.add":`新增下级`,"orgChart.zoomIn":`放大`,"orgChart.zoomOut":`缩小`,"orgChart.reset":`重置`,"orgChart.expand":`展开 {label}`,"orgChart.collapse":`折叠 {label}`,"transfer.source":`可选列表`,"transfer.target":`已选列表`,"transfer.empty":`暂无数据`,"transfer.emptyTarget":`未选择任何项`,"transfer.searchSource":`搜索可选列表`,"transfer.searchTarget":`搜索已选列表`,"transfer.toTarget":`移至已选列表`,"transfer.toSource":`移回可选列表`,"split.resize":`调整面板大小`,"split.expandFirst":`展开首面板`,"split.collapseFirst":`折叠首面板`,"split.expandSecond":`展开第二面板`,"split.collapseSecond":`折叠第二面板`,"chat.sessions":`会话`,"chat.search":`搜索联系人`,"chat.online":`在线`,"chat.empty":`暂无消息,发送第一条吧`,"chat.choose":`选择一个会话开始聊天`,"chat.placeholder":`输入消息...`,"chat.title":`聊天`,"chat.emoji":`表情`,"chat.attach":`添加附件`,"chat.send":`发送`,"chat.imagePreview":`预览{name}的图片`,"chat.image":`聊天图片`,"chat.file":`文件`,"chat.failed":`发送失败,点击重试`,"chat.sending":`发送中...`,"time.now":`刚刚`,"time.minutes":`{count}分钟前`,"time.hours":`{count}小时前`,"time.days":`{count}天前`,"time.weeks":`{count}周前`,"time.months":`{count}个月前`,"time.yesterday":`昨天 {time}`,"theme.light":`当前: 浅色模式 (点击切换)`,"theme.dark":`当前: 深色模式 (点击切换)`,"theme.system":`当前: 跟随系统 (点击切换)`,"language.switch":`语言切换`,"skeleton.loading":`加载中`,"timeline.loading":`加载中...`,"notification.title":`消息中心`,"notification.viewAll":`查看全部消息`,"notification.badge":`消息通知`,"notification.unreadBadge":`消息通知({count} 条未读)`,"notification.all":`全部`,"notification.system":`系统通知`,"notification.business":`业务消息`,"notification.alarm":`告警预警`,"notification.low":`低`,"notification.normal":`普通`,"notification.high":`重要`,"notification.urgent":`紧急`,"notification.markRead":`标记已读`,"notification.delete":`删除消息`,"notification.allRead":`全部已读`,"notification.clear":`清空`,"notification.loadMore":`加载更多`,"notification.loading":`加载中...`,"notification.empty":`暂无消息`,"notification.back":`返回列表`,"notification.details":`查看详情`,"notification.connected":`已连接`,"notification.connecting":`连接中...`,"notification.disconnected":`未连接`,"notification.reconnecting":`重连中...`,"common.confirm":`确定`,"common.cancel":`取消`,"common.save":`保存`,"common.submit":`提交`,"common.reset":`重置`,"common.retry":`重试`,"common.edit":`编辑`,"common.detail":`详情`,"common.delete":`删除`,"common.select":`选择`,"common.print":`打印`,"common.loading":`正在加载`,"table.loading":`正在加载数据`,"table.loadFailed":`数据加载失败`,"table.deleteTitle":`确认删除`,"table.deleteContent":`确定要删除这条记录吗?`,"table.deleteSuccess":`删除成功`,"table.deleteFailed":`删除失败`,"table.detailFailed":`获取详情失败`,"table.moreActions":`更多操作`,"table.actionFailed":`{action}失败`,"table.cancelSelection":`取消选择`,"table.columnSettings":`列设置`,"table.rowNumber":`序号`,"table.export":`导出`,"table.settings":`表格设置`,"table.selectedCount":`已选择 {count} 项`,"table.addRow":`增行`,"table.insertRow":`插行`,"table.deleteRow":`删除行`,"table.copyRow":`复制行`,"table.moveUp":`上移`,"table.moveDown":`下移`,"table.addRowSuccess":`添加行成功`,"table.insertRowSuccess":`插入行成功`,"table.deleteRowSuccess":`删除行成功`,"table.copyRowSuccess":`复制行成功`,"table.moveUpSuccess":`行已上移`,"table.moveDownSuccess":`行已下移`,"table.selectRowFirst":`请先选择一行数据`,"table.selectDeleteRowFirst":`请先选择要删除的行`,"table.selectCopyRowFirst":`请先选择要复制的行`,"table.firstRow":`已经是第一行`,"table.lastRow":`已经是最后一行`,"table.deleteRowContent":`确定要删除选中的行吗?此操作不可撤销。`,"table.confirmDeleteRow":`确认删除`,"table.printTargetMissing":`打印元素未找到`,"table.downloadTargetMissing":`下载元素未找到`,"table.invalidRowKeys":`表格存在 {count} 个缺失或重复的行键`,"breadcrumb.label":`面包屑`,"breadcrumb.expandPath":`展开完整路径`,"breadcrumb.fullPath":`完整路径`,"breadcrumb.directoryPages":`目录页面`,"breadcrumb.pageCount":`{count} 个页面`,"breadcrumb.current":`当前`,"form.required":`{label}不能为空`,"form.draftChanged":`表单已修改,请重新保存。`,"search.valueRequired":`请输入搜索内容,或选择筛选条件`,"search.failed":`搜索失败`,"captcha.trigger":`点击进行人机验证`,"captcha.verifying":`正在验证…`,"captcha.success":`验证成功`,"captcha.failed":`验证失败,请重试`,"captcha.reset":`重新验证`,"captcha.puzzleFailed":`拼图验证失败`,"captcha.verifyFailed":`服务端验证失败`,"captcha.loadFailed":`验证码加载失败`}),t=Object.freeze({"validation.summary":`Please check the following`,"validation.previous":`Previous group`,"validation.next":`Next group`,"picker.title":`Select data`,"picker.quickSearch":`Type to find records`,"picker.more":`Full selection`,"picker.recent":`Recent`,"picker.favorites":`Favorites`,"picker.favorite":`Favorite current selection`,"picker.removeFavorite":`Remove favorite`,"picker.selectionInvalid":`Some records are unavailable. Please select again.`,"picker.selectionFailed":`Selection validation failed. Please retry.`,"picker.allCategories":`All categories`,"userPicker.title":`Select people`,"userPicker.placeholder":`Select people`,"userPicker.name":`Person`,"userPicker.code":`Employee number`,"userPicker.department":`Department`,"userPicker.job":`Position`,"userPicker.status":`Status`,"userPicker.selected":`Selected people`,"userPicker.organization":`Organization`,"userPicker.emptySelection":`No people selected`,"userPicker.remove":`Remove {name}`,"userPicker.selectedPages":`Selected people pagination`,"userPicker.moveUp":`Move {name} up`,"userPicker.moveDown":`Move {name} down`,"picker.placeholder":`Please select`,"picker.searchPlaceholder":`Enter keywords`,"picker.clear":`Clear selection`,"picker.searchLabel":`Search candidates`,"picker.search":`Search`,"picker.loadFailed":`Could not load candidates`,"picker.labelFailed":`Could not load labels; original values are retained`,"picker.selected":`{count} selected`,"picker.total":`{count} results`,"picker.pagination":`Candidate pagination`,"picker.moreSelected":`{count} more`,"batch.title":`Batch operation results`,"batch.summary":`{total} items: {success} succeeded, {failure} failed, {conflict} conflicted, {skipped} skipped`,"batch.filterLabel":`Filter results`,"batch.all":`All`,"batch.retry":`Retry eligible items ({count})`,"options.failed":`Failed to load options`,"options.loadMore":`Load more`,"options.empty":`No options`,"options.minChars":`Enter at least {count} characters`,"batch.id":`Business key`,"batch.status":`Result`,"batch.message":`Details`,"batch.retryColumn":`Retry`,"batch.retryable":`Retryable`,"batch.success":`Success`,"batch.failure":`Failure`,"batch.conflict":`Conflict`,"batch.skipped":`Skipped`,"section.navigation":`Document sections`,"section.errors":`{count} errors`,"notification.invalidResponse":`Invalid notification response or counts`,"notification.operationFailed":`Notification action failed. Try again.`,"notification.missingFetch":`Remote notifications require fetchNotifications`,"notification.missingAction":`Remote notifications require the {name} adapter`,"notification.expiredScope":`Notification scope has expired`,"chat.self":`Me`,"common.search":`Search...`,"common.action":`Action`,"common.add":`Add`,"common.create":`Create`,"action.confirm":`Confirm`,"common.close":`Close`,"common.view":`View`,"common.import":`Import`,"common.export":`Export`,"common.fullscreen":`Fullscreen`,"common.settings":`Settings`,"common.more":`More`,"common.refresh":`Refresh`,"common.expand":`Show details`,"common.collapse":`Collapse`,"common.unknown":`Unknown`,"tree.search":`Search tree nodes`,"tree.searchLoading":`Finding nodes`,"tree.searchFailed":`Search failed. Try again.`,"tree.searchCount":`{total} results found`,"tree.loadingChildren":`Loading child nodes`,"tree.searchResults":`Result {current} of {total}`,"tree.searchPrevious":`Previous result`,"tree.searchNext":`Next result`,"tree.searchRetry":`Retry search`,"tree.searchEmpty":`No matching nodes`,"tree.searchMinChars":`Enter at least {count} characters to search`,"search.fields":`Query fields`,"search.fieldSettings":`Configure query fields`,"search.restoreFields":`Restore default fields`,"search.selectPlaceholder":`Please select`,"search.clearHistory":`Clear history`,"tree.expandAll":`Expand all`,"tree.collapseAll":`Collapse all`,"tree.menu.add":`Add submenu`,"tree.menu.deleteConfirm":`Delete this menu?`,"tree.file.open":`Open`,"tree.file.rename":`Rename`,"tree.file.deleteConfirm":`Delete this file?`,"tree.org.add":`Add child`,"orgChart.zoomIn":`Zoom in`,"orgChart.zoomOut":`Zoom out`,"orgChart.reset":`Reset`,"orgChart.expand":`Expand {label}`,"orgChart.collapse":`Collapse {label}`,"transfer.source":`Available`,"transfer.target":`Selected`,"transfer.empty":`No data`,"transfer.emptyTarget":`Nothing selected`,"transfer.searchSource":`Search available items`,"transfer.searchTarget":`Search selected items`,"transfer.toTarget":`Move to selected`,"transfer.toSource":`Move to available`,"split.resize":`Resize panels`,"split.expandFirst":`Expand first panel`,"split.collapseFirst":`Collapse first panel`,"split.expandSecond":`Expand second panel`,"split.collapseSecond":`Collapse second panel`,"chat.sessions":`Conversations`,"chat.search":`Search contacts`,"chat.online":`Online`,"chat.empty":`No messages yet. Send the first one.`,"chat.choose":`Select a conversation to start chatting`,"chat.placeholder":`Type a message...`,"chat.title":`Chat`,"chat.emoji":`Emoji`,"chat.attach":`Add attachment`,"chat.send":`Send`,"chat.imagePreview":`Preview image from {name}`,"chat.image":`Chat image`,"chat.file":`File`,"chat.failed":`Send failed. Click to retry.`,"chat.sending":`Sending...`,"time.now":`Just now`,"time.minutes":`{count} minutes ago`,"time.hours":`{count} hours ago`,"time.days":`{count} days ago`,"time.weeks":`{count} weeks ago`,"time.months":`{count} months ago`,"time.yesterday":`Yesterday {time}`,"theme.light":`Current: Light mode (click to switch)`,"theme.dark":`Current: Dark mode (click to switch)`,"theme.system":`Current: System mode (click to switch)`,"language.switch":`Switch language`,"skeleton.loading":`Loading`,"timeline.loading":`Loading...`,"notification.title":`Notification center`,"notification.viewAll":`View all notifications`,"notification.badge":`Notifications`,"notification.unreadBadge":`Notifications ({count} unread)`,"notification.all":`All`,"notification.system":`System`,"notification.business":`Business`,"notification.alarm":`Alerts`,"notification.low":`Low`,"notification.normal":`Normal`,"notification.high":`Important`,"notification.urgent":`Urgent`,"notification.markRead":`Mark as read`,"notification.delete":`Delete notification`,"notification.allRead":`Mark all as read`,"notification.clear":`Clear`,"notification.loadMore":`Load more`,"notification.loading":`Loading...`,"notification.empty":`No notifications`,"notification.back":`Back to list`,"notification.details":`View details`,"notification.connected":`Connected`,"notification.connecting":`Connecting...`,"notification.disconnected":`Disconnected`,"notification.reconnecting":`Reconnecting...`,"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.save":`Save`,"common.submit":`Submit`,"common.reset":`Reset`,"common.retry":`Retry`,"common.edit":`Edit`,"common.detail":`Details`,"common.delete":`Delete`,"common.select":`Select`,"common.print":`Print`,"common.loading":`Loading`,"table.loading":`Loading data`,"table.loadFailed":`Failed to load data`,"table.deleteTitle":`Confirm deletion`,"table.deleteContent":`Are you sure you want to delete this record?`,"table.deleteSuccess":`Deleted successfully`,"table.deleteFailed":`Delete failed`,"table.detailFailed":`Failed to load details`,"table.moreActions":`More actions`,"table.actionFailed":`{action} failed`,"table.cancelSelection":`Clear selection`,"table.columnSettings":`Column settings`,"table.rowNumber":`No.`,"table.export":`Export`,"table.settings":`Table settings`,"table.selectedCount":`{count} selected`,"table.addRow":`Add row`,"table.insertRow":`Insert row`,"table.deleteRow":`Delete row`,"table.copyRow":`Copy row`,"table.moveUp":`Move up`,"table.moveDown":`Move down`,"table.addRowSuccess":`Row added`,"table.insertRowSuccess":`Row inserted`,"table.deleteRowSuccess":`Row deleted`,"table.copyRowSuccess":`Row copied`,"table.moveUpSuccess":`Row moved up`,"table.moveDownSuccess":`Row moved down`,"table.selectRowFirst":`Select a row first`,"table.selectDeleteRowFirst":`Select a row to delete first`,"table.selectCopyRowFirst":`Select a row to copy first`,"table.firstRow":`This is already the first row`,"table.lastRow":`This is already the last row`,"table.deleteRowContent":`Are you sure you want to delete the selected row? This cannot be undone.`,"table.confirmDeleteRow":`Delete row`,"table.printTargetMissing":`Print target was not found`,"table.downloadTargetMissing":`Download target was not found`,"table.invalidRowKeys":`{count} table row keys are missing or duplicated`,"breadcrumb.label":`Breadcrumb`,"breadcrumb.expandPath":`Show full path`,"breadcrumb.fullPath":`Full path`,"breadcrumb.directoryPages":`Directory pages`,"breadcrumb.pageCount":`{count} pages`,"breadcrumb.current":`Current`,"form.required":`{label} is required`,"form.draftChanged":`Form changed. Save again.`,"search.valueRequired":`Enter a search term or choose a filter`,"search.failed":`Search failed`,"captcha.trigger":`Click to verify`,"captcha.verifying":`Verifying…`,"captcha.success":`Verified`,"captcha.failed":`Verification failed. Try again.`,"captcha.reset":`Verify again`,"captcha.puzzleFailed":`Puzzle verification failed`,"captcha.verifyFailed":`Server verification failed`,"captcha.loadFailed":`Failed to load captcha`}),n=(e,t)=>t?e.replace(/\{([^{}]+)\}/g,(e,n)=>Object.prototype.hasOwnProperty.call(t,n)?String(t[n]):e):e;function r(e,t){return e&&t in e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function i(n){return n===`en-US`?t:e}function a(e,t={},a={},o){let s=t.t??a.t;if(s)return s(e,o);let c=i(t.locale??a.locale);return n(r(t.messages,e)??r(a.messages,e)??r(c,e)??e,o)}export{a as t};
1
+ const e=Object.freeze({"validation.summary":`请检查以下内容`,"validation.previous":`上一组`,"validation.next":`下一组`,"options.failed":`选项加载失败`,"options.loadMore":`加载更多`,"options.empty":`暂无选项`,"options.minChars":`输入至少 {count} 个字符`,"picker.title":`选择数据`,"picker.placeholder":`请选择`,"picker.searchPlaceholder":`输入关键字`,"picker.clear":`清空选择`,"picker.searchLabel":`搜索候选数据`,"picker.search":`搜索`,"picker.loadFailed":`候选数据加载失败`,"picker.labelFailed":`名称加载失败,保留原编码`,"picker.selected":`已选 {count} 项`,"picker.total":`共 {count} 条`,"picker.pagination":`候选数据分页`,"picker.moreSelected":`另 {count} 项`,"picker.quickSearch":`输入关键词快速选择`,"picker.more":`完整选择`,"picker.recent":`最近使用`,"picker.favorites":`收藏`,"picker.favorite":`收藏当前选择`,"picker.removeFavorite":`取消收藏`,"picker.selectionInvalid":`所选数据已失效或不可选择,请重新选择`,"picker.selectionFailed":`选择校验失败,请重试`,"picker.allCategories":`全部分类`,"userPicker.title":`选择人员`,"userPicker.placeholder":`请选择人员`,"userPicker.name":`人员`,"userPicker.code":`工号`,"userPicker.department":`部门`,"userPicker.job":`岗位`,"userPicker.status":`状态`,"userPicker.selected":`已选人员`,"userPicker.organization":`组织架构`,"userPicker.emptySelection":`尚未选择人员`,"userPicker.remove":`移除 {name}`,"userPicker.selectedPages":`已选人员分页`,"userPicker.moveUp":`上移 {name}`,"userPicker.moveDown":`下移 {name}`,"batch.title":`批量操作结果`,"batch.summary":`共 {total} 项,成功 {success},失败 {failure},冲突 {conflict},跳过 {skipped}`,"batch.filterLabel":`筛选操作结果`,"batch.all":`全部`,"batch.retry":`重试可重试项({count})`,"batch.id":`业务标识`,"batch.status":`结果`,"batch.message":`说明`,"batch.retryColumn":`重试`,"batch.retryable":`可重试`,"batch.success":`成功`,"batch.failure":`失败`,"batch.conflict":`冲突`,"batch.skipped":`跳过`,"section.navigation":`单据分区导航`,"section.errors":`{count} 项错误`,"notification.invalidResponse":`消息接口返回的数据或统计无效`,"notification.operationFailed":`消息操作失败,请重试`,"notification.missingFetch":`远程消息模式未配置 fetchNotifications`,"notification.missingAction":`远程消息模式未配置 {name} 接口`,"notification.expiredScope":`消息作用域已失效`,"chat.self":`Me`,"common.search":`搜索...`,"common.action":`操作`,"common.add":`新增`,"common.create":`创建`,"action.confirm":`确认`,"common.close":`关闭`,"common.view":`查看`,"common.import":`导入`,"common.export":`导出`,"common.fullscreen":`全屏`,"common.settings":`功能配置`,"common.more":`更多`,"common.refresh":`刷新`,"common.expand":`展开详情`,"common.collapse":`收起`,"common.unknown":`未知`,"tree.search":`搜索树节点`,"tree.searchLoading":`正在查找节点`,"tree.searchFailed":`查找失败,请重试`,"tree.searchCount":`找到 {total} 个结果`,"tree.loadingChildren":`加载子节点`,"tree.searchResults":`第 {current} / {total} 个结果`,"tree.searchPrevious":`上一个结果`,"tree.searchNext":`下一个结果`,"tree.searchRetry":`重试查找`,"tree.searchEmpty":`未找到匹配节点`,"tree.searchMinChars":`输入至少 {count} 个字符开始查找`,"search.fields":`查询字段`,"search.fieldSettings":`设置查询字段`,"search.restoreFields":`恢复默认字段`,"search.selectPlaceholder":`请选择`,"search.startTime":`开始时间`,"search.endTime":`结束时间`,"search.clearHistory":`清空历史记录`,"tree.expandAll":`展开全部`,"tree.collapseAll":`收起全部`,"tree.menu.add":`新增子菜单`,"tree.menu.deleteConfirm":`确认删除该菜单吗?`,"tree.file.open":`打开`,"tree.file.rename":`重命名`,"tree.file.deleteConfirm":`确认删除该文件吗?`,"tree.org.add":`新增下级`,"orgChart.zoomIn":`放大`,"orgChart.zoomOut":`缩小`,"orgChart.reset":`重置`,"orgChart.expand":`展开 {label}`,"orgChart.collapse":`折叠 {label}`,"transfer.source":`可选列表`,"transfer.target":`已选列表`,"transfer.empty":`暂无数据`,"transfer.emptyTarget":`未选择任何项`,"transfer.searchSource":`搜索可选列表`,"transfer.searchTarget":`搜索已选列表`,"transfer.toTarget":`移至已选列表`,"transfer.toSource":`移回可选列表`,"split.resize":`调整面板大小`,"split.expandFirst":`展开首面板`,"split.collapseFirst":`折叠首面板`,"split.expandSecond":`展开第二面板`,"split.collapseSecond":`折叠第二面板`,"chat.sessions":`会话`,"chat.search":`搜索联系人`,"chat.online":`在线`,"chat.empty":`暂无消息,发送第一条吧`,"chat.choose":`选择一个会话开始聊天`,"chat.placeholder":`输入消息...`,"chat.title":`聊天`,"chat.emoji":`表情`,"chat.attach":`添加附件`,"chat.send":`发送`,"chat.imagePreview":`预览{name}的图片`,"chat.image":`聊天图片`,"chat.file":`文件`,"chat.failed":`发送失败,点击重试`,"chat.sending":`发送中...`,"time.now":`刚刚`,"time.minutes":`{count}分钟前`,"time.hours":`{count}小时前`,"time.days":`{count}天前`,"time.weeks":`{count}周前`,"time.months":`{count}个月前`,"time.yesterday":`昨天 {time}`,"theme.light":`当前: 浅色模式 (点击切换)`,"theme.dark":`当前: 深色模式 (点击切换)`,"theme.system":`当前: 跟随系统 (点击切换)`,"language.switch":`语言切换`,"skeleton.loading":`加载中`,"timeline.loading":`加载中...`,"notification.title":`消息中心`,"notification.viewAll":`查看全部消息`,"notification.badge":`消息通知`,"notification.unreadBadge":`消息通知({count} 条未读)`,"notification.all":`全部`,"notification.system":`系统通知`,"notification.business":`业务消息`,"notification.alarm":`告警预警`,"notification.low":`低`,"notification.normal":`普通`,"notification.high":`重要`,"notification.urgent":`紧急`,"notification.markRead":`标记已读`,"notification.delete":`删除消息`,"notification.allRead":`全部已读`,"notification.clear":`清空`,"notification.loadMore":`加载更多`,"notification.loading":`加载中...`,"notification.empty":`暂无消息`,"notification.back":`返回列表`,"notification.details":`查看详情`,"notification.connected":`已连接`,"notification.connecting":`连接中...`,"notification.disconnected":`未连接`,"notification.reconnecting":`重连中...`,"common.confirm":`确定`,"common.cancel":`取消`,"common.save":`保存`,"common.submit":`提交`,"common.reset":`重置`,"common.retry":`重试`,"common.edit":`编辑`,"common.detail":`详情`,"common.delete":`删除`,"common.select":`选择`,"common.print":`打印`,"common.loading":`正在加载`,"table.loading":`正在加载数据`,"table.loadFailed":`数据加载失败`,"table.deleteTitle":`确认删除`,"table.deleteContent":`确定要删除这条记录吗?`,"table.deleteSuccess":`删除成功`,"table.deleteFailed":`删除失败`,"table.detailFailed":`获取详情失败`,"table.moreActions":`更多操作`,"table.actionFailed":`{action}失败`,"table.cancelSelection":`取消选择`,"table.columnSettings":`列设置`,"table.rowNumber":`序号`,"table.export":`导出`,"table.settings":`表格设置`,"table.selectedCount":`已选择 {count} 项`,"table.addRow":`增行`,"table.insertRow":`插行`,"table.deleteRow":`删除行`,"table.copyRow":`复制行`,"table.moveUp":`上移`,"table.moveDown":`下移`,"table.addRowSuccess":`添加行成功`,"table.insertRowSuccess":`插入行成功`,"table.deleteRowSuccess":`删除行成功`,"table.copyRowSuccess":`复制行成功`,"table.moveUpSuccess":`行已上移`,"table.moveDownSuccess":`行已下移`,"table.selectRowFirst":`请先选择一行数据`,"table.selectDeleteRowFirst":`请先选择要删除的行`,"table.selectCopyRowFirst":`请先选择要复制的行`,"table.firstRow":`已经是第一行`,"table.lastRow":`已经是最后一行`,"table.deleteRowContent":`确定要删除选中的行吗?此操作不可撤销。`,"table.confirmDeleteRow":`确认删除`,"table.printTargetMissing":`打印元素未找到`,"table.downloadTargetMissing":`下载元素未找到`,"table.invalidRowKeys":`表格存在 {count} 个缺失或重复的行键`,"breadcrumb.label":`面包屑`,"breadcrumb.expandPath":`展开完整路径`,"breadcrumb.fullPath":`完整路径`,"breadcrumb.directoryPages":`目录页面`,"breadcrumb.pageCount":`{count} 个页面`,"breadcrumb.current":`当前`,"form.required":`{label}不能为空`,"form.draftChanged":`表单已修改,请重新保存。`,"search.valueRequired":`请输入搜索内容,或选择筛选条件`,"search.failed":`搜索失败`,"captcha.trigger":`点击进行人机验证`,"captcha.verifying":`正在验证…`,"captcha.success":`验证成功`,"captcha.failed":`验证失败,请重试`,"captcha.reset":`重新验证`,"captcha.puzzleFailed":`拼图验证失败`,"captcha.verifyFailed":`服务端验证失败`,"captcha.loadFailed":`验证码加载失败`}),t=Object.freeze({"validation.summary":`Please check the following`,"validation.previous":`Previous group`,"validation.next":`Next group`,"picker.title":`Select data`,"picker.quickSearch":`Type to find records`,"picker.more":`Full selection`,"picker.recent":`Recent`,"picker.favorites":`Favorites`,"picker.favorite":`Favorite current selection`,"picker.removeFavorite":`Remove favorite`,"picker.selectionInvalid":`Some records are unavailable. Please select again.`,"picker.selectionFailed":`Selection validation failed. Please retry.`,"picker.allCategories":`All categories`,"userPicker.title":`Select people`,"userPicker.placeholder":`Select people`,"userPicker.name":`Person`,"userPicker.code":`Employee number`,"userPicker.department":`Department`,"userPicker.job":`Position`,"userPicker.status":`Status`,"userPicker.selected":`Selected people`,"userPicker.organization":`Organization`,"userPicker.emptySelection":`No people selected`,"userPicker.remove":`Remove {name}`,"userPicker.selectedPages":`Selected people pagination`,"userPicker.moveUp":`Move {name} up`,"userPicker.moveDown":`Move {name} down`,"picker.placeholder":`Please select`,"picker.searchPlaceholder":`Enter keywords`,"picker.clear":`Clear selection`,"picker.searchLabel":`Search candidates`,"picker.search":`Search`,"picker.loadFailed":`Could not load candidates`,"picker.labelFailed":`Could not load labels; original values are retained`,"picker.selected":`{count} selected`,"picker.total":`{count} results`,"picker.pagination":`Candidate pagination`,"picker.moreSelected":`{count} more`,"batch.title":`Batch operation results`,"batch.summary":`{total} items: {success} succeeded, {failure} failed, {conflict} conflicted, {skipped} skipped`,"batch.filterLabel":`Filter results`,"batch.all":`All`,"batch.retry":`Retry eligible items ({count})`,"options.failed":`Failed to load options`,"options.loadMore":`Load more`,"options.empty":`No options`,"options.minChars":`Enter at least {count} characters`,"batch.id":`Business key`,"batch.status":`Result`,"batch.message":`Details`,"batch.retryColumn":`Retry`,"batch.retryable":`Retryable`,"batch.success":`Success`,"batch.failure":`Failure`,"batch.conflict":`Conflict`,"batch.skipped":`Skipped`,"section.navigation":`Document sections`,"section.errors":`{count} errors`,"notification.invalidResponse":`Invalid notification response or counts`,"notification.operationFailed":`Notification action failed. Try again.`,"notification.missingFetch":`Remote notifications require fetchNotifications`,"notification.missingAction":`Remote notifications require the {name} adapter`,"notification.expiredScope":`Notification scope has expired`,"chat.self":`Me`,"common.search":`Search...`,"common.action":`Action`,"common.add":`Add`,"common.create":`Create`,"action.confirm":`Confirm`,"common.close":`Close`,"common.view":`View`,"common.import":`Import`,"common.export":`Export`,"common.fullscreen":`Fullscreen`,"common.settings":`Settings`,"common.more":`More`,"common.refresh":`Refresh`,"common.expand":`Show details`,"common.collapse":`Collapse`,"common.unknown":`Unknown`,"tree.search":`Search tree nodes`,"tree.searchLoading":`Finding nodes`,"tree.searchFailed":`Search failed. Try again.`,"tree.searchCount":`{total} results found`,"tree.loadingChildren":`Loading child nodes`,"tree.searchResults":`Result {current} of {total}`,"tree.searchPrevious":`Previous result`,"tree.searchNext":`Next result`,"tree.searchRetry":`Retry search`,"tree.searchEmpty":`No matching nodes`,"tree.searchMinChars":`Enter at least {count} characters to search`,"search.fields":`Query fields`,"search.fieldSettings":`Configure query fields`,"search.restoreFields":`Restore default fields`,"search.selectPlaceholder":`Please select`,"search.startTime":`Start time`,"search.endTime":`End time`,"search.clearHistory":`Clear history`,"tree.expandAll":`Expand all`,"tree.collapseAll":`Collapse all`,"tree.menu.add":`Add submenu`,"tree.menu.deleteConfirm":`Delete this menu?`,"tree.file.open":`Open`,"tree.file.rename":`Rename`,"tree.file.deleteConfirm":`Delete this file?`,"tree.org.add":`Add child`,"orgChart.zoomIn":`Zoom in`,"orgChart.zoomOut":`Zoom out`,"orgChart.reset":`Reset`,"orgChart.expand":`Expand {label}`,"orgChart.collapse":`Collapse {label}`,"transfer.source":`Available`,"transfer.target":`Selected`,"transfer.empty":`No data`,"transfer.emptyTarget":`Nothing selected`,"transfer.searchSource":`Search available items`,"transfer.searchTarget":`Search selected items`,"transfer.toTarget":`Move to selected`,"transfer.toSource":`Move to available`,"split.resize":`Resize panels`,"split.expandFirst":`Expand first panel`,"split.collapseFirst":`Collapse first panel`,"split.expandSecond":`Expand second panel`,"split.collapseSecond":`Collapse second panel`,"chat.sessions":`Conversations`,"chat.search":`Search contacts`,"chat.online":`Online`,"chat.empty":`No messages yet. Send the first one.`,"chat.choose":`Select a conversation to start chatting`,"chat.placeholder":`Type a message...`,"chat.title":`Chat`,"chat.emoji":`Emoji`,"chat.attach":`Add attachment`,"chat.send":`Send`,"chat.imagePreview":`Preview image from {name}`,"chat.image":`Chat image`,"chat.file":`File`,"chat.failed":`Send failed. Click to retry.`,"chat.sending":`Sending...`,"time.now":`Just now`,"time.minutes":`{count} minutes ago`,"time.hours":`{count} hours ago`,"time.days":`{count} days ago`,"time.weeks":`{count} weeks ago`,"time.months":`{count} months ago`,"time.yesterday":`Yesterday {time}`,"theme.light":`Current: Light mode (click to switch)`,"theme.dark":`Current: Dark mode (click to switch)`,"theme.system":`Current: System mode (click to switch)`,"language.switch":`Switch language`,"skeleton.loading":`Loading`,"timeline.loading":`Loading...`,"notification.title":`Notification center`,"notification.viewAll":`View all notifications`,"notification.badge":`Notifications`,"notification.unreadBadge":`Notifications ({count} unread)`,"notification.all":`All`,"notification.system":`System`,"notification.business":`Business`,"notification.alarm":`Alerts`,"notification.low":`Low`,"notification.normal":`Normal`,"notification.high":`Important`,"notification.urgent":`Urgent`,"notification.markRead":`Mark as read`,"notification.delete":`Delete notification`,"notification.allRead":`Mark all as read`,"notification.clear":`Clear`,"notification.loadMore":`Load more`,"notification.loading":`Loading...`,"notification.empty":`No notifications`,"notification.back":`Back to list`,"notification.details":`View details`,"notification.connected":`Connected`,"notification.connecting":`Connecting...`,"notification.disconnected":`Disconnected`,"notification.reconnecting":`Reconnecting...`,"common.confirm":`Confirm`,"common.cancel":`Cancel`,"common.save":`Save`,"common.submit":`Submit`,"common.reset":`Reset`,"common.retry":`Retry`,"common.edit":`Edit`,"common.detail":`Details`,"common.delete":`Delete`,"common.select":`Select`,"common.print":`Print`,"common.loading":`Loading`,"table.loading":`Loading data`,"table.loadFailed":`Failed to load data`,"table.deleteTitle":`Confirm deletion`,"table.deleteContent":`Are you sure you want to delete this record?`,"table.deleteSuccess":`Deleted successfully`,"table.deleteFailed":`Delete failed`,"table.detailFailed":`Failed to load details`,"table.moreActions":`More actions`,"table.actionFailed":`{action} failed`,"table.cancelSelection":`Clear selection`,"table.columnSettings":`Column settings`,"table.rowNumber":`No.`,"table.export":`Export`,"table.settings":`Table settings`,"table.selectedCount":`{count} selected`,"table.addRow":`Add row`,"table.insertRow":`Insert row`,"table.deleteRow":`Delete row`,"table.copyRow":`Copy row`,"table.moveUp":`Move up`,"table.moveDown":`Move down`,"table.addRowSuccess":`Row added`,"table.insertRowSuccess":`Row inserted`,"table.deleteRowSuccess":`Row deleted`,"table.copyRowSuccess":`Row copied`,"table.moveUpSuccess":`Row moved up`,"table.moveDownSuccess":`Row moved down`,"table.selectRowFirst":`Select a row first`,"table.selectDeleteRowFirst":`Select a row to delete first`,"table.selectCopyRowFirst":`Select a row to copy first`,"table.firstRow":`This is already the first row`,"table.lastRow":`This is already the last row`,"table.deleteRowContent":`Are you sure you want to delete the selected row? This cannot be undone.`,"table.confirmDeleteRow":`Delete row`,"table.printTargetMissing":`Print target was not found`,"table.downloadTargetMissing":`Download target was not found`,"table.invalidRowKeys":`{count} table row keys are missing or duplicated`,"breadcrumb.label":`Breadcrumb`,"breadcrumb.expandPath":`Show full path`,"breadcrumb.fullPath":`Full path`,"breadcrumb.directoryPages":`Directory pages`,"breadcrumb.pageCount":`{count} pages`,"breadcrumb.current":`Current`,"form.required":`{label} is required`,"form.draftChanged":`Form changed. Save again.`,"search.valueRequired":`Enter a search term or choose a filter`,"search.failed":`Search failed`,"captcha.trigger":`Click to verify`,"captcha.verifying":`Verifying…`,"captcha.success":`Verified`,"captcha.failed":`Verification failed. Try again.`,"captcha.reset":`Verify again`,"captcha.puzzleFailed":`Puzzle verification failed`,"captcha.verifyFailed":`Server verification failed`,"captcha.loadFailed":`Failed to load captcha`}),n=(e,t)=>t?e.replace(/\{([^{}]+)\}/g,(e,n)=>Object.prototype.hasOwnProperty.call(t,n)?String(t[n]):e):e;function r(e,t){return e&&t in e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function i(n){return n===`en-US`?t:e}function a(e,t={},a={},o){let s=t.t??a.t;if(s)return s(e,o);let c=i(t.locale??a.locale);return n(r(t.messages,e)??r(a.messages,e)??r(c,e)??e,o)}export{a as t};
@@ -94,9 +94,9 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
94
94
  zoom: number;
95
95
  height: string;
96
96
  center: MapCoordinate;
97
- markers: MapMarker[];
98
97
  ariaLabel: string;
99
98
  mapType: MapType;
99
+ markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
102
102
  amapOptions: Record<string, unknown>;
@@ -94,9 +94,9 @@ declare const __VLS_export: vue.DefineComponent<MapProps, MapExpose, {}, {}, {},
94
94
  zoom: number;
95
95
  height: string;
96
96
  center: MapCoordinate;
97
- markers: MapMarker[];
98
97
  ariaLabel: string;
99
98
  mapType: MapType;
99
+ markers: MapMarker[];
100
100
  amapKey: string;
101
101
  amapLoadTimeout: number;
102
102
  amapOptions: Record<string, unknown>;
@@ -0,0 +1 @@
1
+ const e=require(`./helpers.cjs`),t=e=>typeof e==`string`||typeof e==`number`&&Number.isFinite(e),n=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0||typeof e==`string`&&e.trim().length>0&&e.length<=128,r=e=>e===`left`||e===`right`||e===null,i=t=>e.s(t,e=>({...e})),a=e=>{let i;try{i=JSON.parse(e)}catch{return{columns:[]}}let a=Array.isArray(i),o=a?{columns:i}:i;if(!Array.isArray(o?.columns))return{columns:[]};let s=o.columns.flatMap(e=>{if(!e||typeof e!=`object`||Array.isArray(e))return[];let i=e;return t(i.key)?[{key:i.key,...typeof i.visible==`boolean`&&{visible:i.visible},...n(i.width)&&{width:i.width},...r(i.fixed)&&{fixed:i.fixed},...typeof i.resizable==`boolean`&&{resizable:i.resizable}}]:[]});return{columns:s,order:a?s.map(e=>e.key):Array.isArray(o.order)?o.order.filter(t):void 0}},o=(e,{columns:n,order:r})=>{if(!n.length&&!r?.length)return e;let i=new Map(n.map(e=>[e.key,e])),a=e.map(e=>{if(e.type===`group`)return{...e,children:o(e.children,{columns:n,order:r})};if(!t(e.key))return e;let a=i.get(e.key);return a?{...e,visible:a.visible??e.visible,width:a.width??e.width,fixed:a.fixed===null?void 0:a.fixed??e.fixed,resizable:a.resizable??e.resizable}:e});if(!r?.length)return a;let s=new Map(r.map((e,t)=>[e,t])),c=e=>t(e.key)&&s.has(e.key),l=a.filter(c).sort((e,t)=>s.get(e.key)-s.get(t.key)),u=0;return a.map(e=>c(e)?l[u++]:e)},s=(n,r)=>{n=e.i(n),r=e.i(r);let i=new Map(n.map(e=>[e.key,e])),a=r.map(e=>e.key).filter(t),o=n.map(e=>e.key).filter(t);return{order:a.some((e,t)=>e!==o[t])?a:void 0,columns:r.flatMap(e=>{if(!t(e.key))return[];let n=i.get(e.key);if(!n)return[];let r={visible:e.visible!==!1==(n.visible!==!1)?void 0:e.visible!==!1,width:e.width===n.width?void 0:e.width,fixed:e.fixed===n.fixed?void 0:e.fixed??null,resizable:e.resizable===!0==(n.resizable===!0)?void 0:e.resizable===!0};return Object.values(r).every(e=>e===void 0)?[]:[{key:e.key,...r}]})}};Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
@@ -0,0 +1 @@
1
+ import{i as e,s as t}from"./helpers.js";const n=e=>typeof e==`string`||typeof e==`number`&&Number.isFinite(e),r=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0||typeof e==`string`&&e.trim().length>0&&e.length<=128,i=e=>e===`left`||e===`right`||e===null,a=e=>t(e,e=>({...e})),o=e=>{let t;try{t=JSON.parse(e)}catch{return{columns:[]}}let a=Array.isArray(t),o=a?{columns:t}:t;if(!Array.isArray(o?.columns))return{columns:[]};let s=o.columns.flatMap(e=>{if(!e||typeof e!=`object`||Array.isArray(e))return[];let t=e;return n(t.key)?[{key:t.key,...typeof t.visible==`boolean`&&{visible:t.visible},...r(t.width)&&{width:t.width},...i(t.fixed)&&{fixed:t.fixed},...typeof t.resizable==`boolean`&&{resizable:t.resizable}}]:[]});return{columns:s,order:a?s.map(e=>e.key):Array.isArray(o.order)?o.order.filter(n):void 0}},s=(e,{columns:t,order:r})=>{if(!t.length&&!r?.length)return e;let i=new Map(t.map(e=>[e.key,e])),a=e.map(e=>{if(e.type===`group`)return{...e,children:s(e.children,{columns:t,order:r})};if(!n(e.key))return e;let a=i.get(e.key);return a?{...e,visible:a.visible??e.visible,width:a.width??e.width,fixed:a.fixed===null?void 0:a.fixed??e.fixed,resizable:a.resizable??e.resizable}:e});if(!r?.length)return a;let o=new Map(r.map((e,t)=>[e,t])),c=e=>n(e.key)&&o.has(e.key),l=a.filter(c).sort((e,t)=>o.get(e.key)-o.get(t.key)),u=0;return a.map(e=>c(e)?l[u++]:e)},c=(t,r)=>{t=e(t),r=e(r);let i=new Map(t.map(e=>[e.key,e])),a=r.map(e=>e.key).filter(n),o=t.map(e=>e.key).filter(n);return{order:a.some((e,t)=>e!==o[t])?a:void 0,columns:r.flatMap(e=>{if(!n(e.key))return[];let t=i.get(e.key);if(!t)return[];let r={visible:e.visible!==!1==(t.visible!==!1)?void 0:e.visible!==!1,width:e.width===t.width?void 0:e.width,fixed:e.fixed===t.fixed?void 0:e.fixed??null,resizable:e.resizable===!0==(t.resizable===!0)?void 0:e.resizable===!0};return Object.values(r).every(e=>e===void 0)?[]:[{key:e.key,...r}]})}};export{o as i,c as n,s as r,a as t};
@@ -15,8 +15,8 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
15
15
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
16
16
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
17
17
  }>, {
18
- config: ActionBarConfig;
19
18
  actions: ActionItem[];
19
+ config: ActionBarConfig;
20
20
  leftActions: ActionItem[];
21
21
  rightActions: ActionItem[];
22
22
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
package/dist/presets.d.ts CHANGED
@@ -15,8 +15,8 @@ declare const __VLS_base: vue.DefineComponent<TableActionsProps, {}, {}, {}, {},
15
15
  "onDropdown-click"?: ((item: ActionDropdownItem, action: ActionItem) => any) | undefined;
16
16
  "onAction-click"?: ((action: ActionItem) => any) | undefined;
17
17
  }>, {
18
- config: ActionBarConfig;
19
18
  actions: ActionItem[];
19
+ config: ActionBarConfig;
20
20
  leftActions: ActionItem[];
21
21
  rightActions: ActionItem[];
22
22
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
package/dist/rule.d.cts CHANGED
@@ -28,6 +28,7 @@ interface RecurrenceRule {
28
28
  end?: RecurrenceEnd;
29
29
  }
30
30
  interface RecurrenceEditorProps {
31
+ /** Editable draft. A selected cutoff date can remain empty until the user picks it. */
31
32
  modelValue: RecurrenceRule | null;
32
33
  disabled?: boolean;
33
34
  density?: ComponentDensity;
@@ -45,7 +46,9 @@ declare const _default: typeof __VLS_export;
45
46
  //#region src/components/C_RecurrenceEditor/rule.d.ts
46
47
  /** Encode the editor's supported date-based subset of RFC 5545. */
47
48
  declare function formatRecurrenceRule(rule: RecurrenceRule | null): string;
49
+ /** Preview an editable rule. Null represents an incomplete or invalid draft. */
50
+ declare function tryFormatRecurrenceRule(rule: RecurrenceRule | null): string | null;
48
51
  /** Reject unsupported tokens so an edited rule cannot silently lose its constraints. */
49
52
  declare function parseRecurrenceRule(text: string): RecurrenceRule | null;
50
53
  //#endregion
51
- export { RecurrenceEnd as a, RecurrenceRule as c, RecurrenceEditorProps as i, RecurrenceWeekday as l, parseRecurrenceRule as n, RecurrenceFrequency as o, _default as r, RecurrenceMonthPattern as s, formatRecurrenceRule as t };
54
+ export { RecurrenceEditorProps as a, RecurrenceMonthPattern as c, _default as i, RecurrenceRule as l, parseRecurrenceRule as n, RecurrenceEnd as o, tryFormatRecurrenceRule as r, RecurrenceFrequency as s, formatRecurrenceRule as t, RecurrenceWeekday as u };
package/dist/rule.d.ts CHANGED
@@ -28,6 +28,7 @@ interface RecurrenceRule {
28
28
  end?: RecurrenceEnd;
29
29
  }
30
30
  interface RecurrenceEditorProps {
31
+ /** Editable draft. A selected cutoff date can remain empty until the user picks it. */
31
32
  modelValue: RecurrenceRule | null;
32
33
  disabled?: boolean;
33
34
  density?: ComponentDensity;
@@ -45,7 +46,9 @@ declare const _default: typeof __VLS_export;
45
46
  //#region src/components/C_RecurrenceEditor/rule.d.ts
46
47
  /** Encode the editor's supported date-based subset of RFC 5545. */
47
48
  declare function formatRecurrenceRule(rule: RecurrenceRule | null): string;
49
+ /** Preview an editable rule. Null represents an incomplete or invalid draft. */
50
+ declare function tryFormatRecurrenceRule(rule: RecurrenceRule | null): string | null;
48
51
  /** Reject unsupported tokens so an edited rule cannot silently lose its constraints. */
49
52
  declare function parseRecurrenceRule(text: string): RecurrenceRule | null;
50
53
  //#endregion
51
- export { RecurrenceEnd as a, RecurrenceRule as c, RecurrenceEditorProps as i, RecurrenceWeekday as l, parseRecurrenceRule as n, RecurrenceFrequency as o, _default as r, RecurrenceMonthPattern as s, formatRecurrenceRule as t };
54
+ export { RecurrenceEditorProps as a, RecurrenceMonthPattern as c, _default as i, RecurrenceRule as l, parseRecurrenceRule as n, RecurrenceEnd as o, tryFormatRecurrenceRule as r, RecurrenceFrequency as s, formatRecurrenceRule as t, RecurrenceWeekday as u };
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./useComponentLocale.cjs`),i=require(`./feedback.cjs`),a=require(`./useComponentTheme.cjs`),o=require(`./export-helper.cjs`),s=require(`./selectPresentation.cjs`),c=require(`./useActionTask.cjs`),l=require(`./useFormConfig.cjs`),u=require(`./storage.cjs`),d=require(`./sourceControls.cjs`),f=require(`./useGridWidth.cjs`);let p=require(`vue`),m=require(`naive-ui`);function h(e,t){return e.show!==!1&&e.type!==`spacer`&&!y(e)&&![`pageNum`,`pageSize`].includes(e.prop)&&Object.prototype.hasOwnProperty.call(t,e.prop)}function g(e,t,r){if(!r||typeof r!=`object`||Array.isArray(r))throw TypeError(`搜索预设必须是字段值对象`);let i=n.t(e),a=i;for(let e of t)h(e,r)&&(n.o(e.prop),a[e.prop]=n.t(S(e,r[e.prop],a[e.prop])));return i}const _=e=>[`select`,`treeSelect`,`cascader`].includes(e.type)&&e.attrs?.multiple===!0,v=e=>[`select`,`treeSelect`,`cascader`,`number`].includes(e.type)&&e.attrs?.clearable===!1;function y(e){return!!(e.fixed||e.disabled||e.readonly||e.attrs?.disabled===!0||e.attrs?.readonly===!0)}function b(e){return e==null||e===``||Array.isArray(e)&&e.every(b)}function x(e,t){return e.fixed?n.t(t):e.defaultValue===void 0?e.type===`input`||e.type===`autocomplete`?``:_(e)?[]:v(e)?n.t(t):null:n.t(e.defaultValue)}function S(e,t,n){return t??(e.type===`input`||e.type===`autocomplete`?``:_(e)?[]:v(e)||e.type===`custom`?x(e,n):null)}function C(e,t,n={}){let r=()=>(0,p.toValue)(n),i=(0,p.computed)(()=>!!r().storageKey),a=()=>{let e=r().maxItems;return e!==void 0&&Number.isFinite(e)?Math.max(1,Math.trunc(e)):5},o=t=>e.value.find(e=>e.prop===t),s=new Map,c=()=>{let t=new Set(e.value.map(e=>e.prop));for(let e of s.keys())t.has(e)||s.delete(e);for(let t of e.value){let e=s.get(t.prop);(!e||(0,p.toRaw)(e.current)!==(0,p.toRaw)(t.hisList))&&s.set(t.prop,{values:t.hisList?.slice(),current:t.hisList})}};c(),(0,p.watch)(e,c,{flush:`sync`});let l=(e,t)=>{let n=s.get(e.prop);n&&(n.current=t),e.hisList=t},d=r().storageKey,f=()=>{c();let t=r().storageKey;return t===d?!1:(d=t,e.value.forEach(e=>{e.isFocus=!1,l(e,s.get(e.prop)?.values?.slice())}),!0)},m=()=>{let{storageKey:t}=r();t&&u.i(t,Object.fromEntries(e.value.filter(e=>e.hisList!==void 0).map(e=>[e.prop,e.hisList])))},h=()=>{let{storageKey:e}=r();if(!e)return;let t=u.t(e);!t||typeof t!=`object`||(Array.isArray(t)?t.flatMap(e=>e&&typeof e==`object`&&typeof e.prop==`string`?[[e.prop,e.hisList]]:[]):Object.entries(t)).forEach(([e,t])=>{let n=o(e);if(!n||!Array.isArray(t))return;let r=[],i=a();for(let e of t)if(typeof e==`string`&&r.push(e),r.length===i)break;l(n,r)})},g=()=>{f(),h()},_=()=>{f()&&h()};(0,p.watch)(()=>r().storageKey,g,{flush:`sync`});let v=t=>{e.value.forEach(e=>{e.isFocus=!!(e.hisList&&e.prop===t)})},b=e=>{let t=o(e);!t||y(t)||(g(),v(e))},x=()=>v(),S=(e,n)=>{_();let r=o(n);r?.type!==`input`||y(r)||(t.value[n]=e,x())},C=(e,t)=>{_();let n=o(e);if(!n?.hisList)return;let r=[...n.hisList];r.splice(t,1),l(n,r),n.hisList.length===0&&(n.isFocus=!1),m()},w=e=>{_();let t=o(e);t?.hisList&&(l(t,[]),t.isFocus=!1,m())},T=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t);let r=a();return e.length>r&&(e.length=r),e};return{enabled:i,handleFocus:b,closeAllPanels:x,selectHistoryItem:S,deleteHistoryItem:C,clearAllHistory:w,saveCurrentInputs:()=>{_(),i.value&&(Object.keys(t.value).forEach(e=>{let n=t.value[e];if(n==null||n===``)return;let r=o(e);if(r?.type!==`input`||!r.hisList)return;let i=String(n).trim();i&&l(r,T([...r.hisList],i))}),x(),m())},restoreFromStorage:g}}function w(e,a){let o=(0,p.computed)(()=>(0,p.toValue)(a.config)??{}),s=i.t(()=>o.value.feedback),{t:l}=r.t(()=>o.value.locale),u=(0,p.ref)(null),d=(0,p.computed)(()=>o.value.foldThreshold??7),f=(0,p.computed)(()=>o.value.requireValue??!0),m=(0,p.ref)(n.t(a.formItemList)),h=(0,p.ref)(n.t(a.formParams)),_=(0,p.ref)(null),v=(0,p.computed)(()=>_.value===null||!n.a(h.value,_.value)),y=(0,p.ref)(!1),S=(0,p.ref)(0),w=c.t(),T=(0,p.computed)(()=>w.isRunning(S.value)),E=(0,p.computed)(()=>o.value.searchOnReset&&(0,p.toValue)(a.loading)&&!T.value),D,O=!0;(0,p.getCurrentScope)()&&(0,p.onScopeDispose)(()=>{O=!1});let k=C(m,h,a.historyOptions),A=(0,p.computed)(()=>m.value.filter(e=>e.show!==!1)),j=(0,p.computed)(()=>A.value.filter((e,t)=>y.value||t<d.value)),ee=(0,p.computed)(()=>A.value.length>d.value),te=(0,p.computed)(()=>{let e=new Set(j.value.map(e=>e.prop));return m.value.filter(t=>t.type!==`spacer`&&!e.has(t.prop)&&!b(h.value[t.prop]))}),ne=(0,p.computed)(()=>te.value.length),M=()=>{let e=h.value;m.value.forEach(t=>{t.isFocus=!1,t.show!==!1&&t.type!==`spacer`&&e[t.prop]===void 0&&(e[t.prop]=t.defaultValue===void 0?x(t,e[t.prop]):n.t(t.defaultValue))})},re=async e=>{try{return await u.value?.validate(),!0}catch{return e===S.value&&ee.value&&(y.value=!0),!1}},N=e=>e===`replace`||!(0,p.toValue)(a.loading),P=(e,t,r)=>O&&t===S.value&&N(r)&&n.a(h.value,e),ie=(e,t)=>{if(t!==`submit`||!f.value)return!0;let n=Object.entries(e).filter(([e])=>e!==`pageNum`&&e!==`pageSize`).some(([,e])=>!b(e));return n||s.warning(l(`search.valueRequired`)),n},F=(e,t)=>O&&t===S.value&&m.value.filter(e=>e.fixed).every(t=>n.a(h.value[t.prop],e[t.prop])),ae=e=>{O&&s.error(l(`search.failed`),e)},oe=async(r,i)=>{let s=n.t(h.value);if(!await re(r)||!P(s,r,i)||!ie(s,i)||(k.saveCurrentInputs(),e(`search`,n.t(s)),!P(s,r,i)))return!1;let c=o.value.onSearch;if(!c)return!0;try{if(await c(n.t(s))===!1)return!1}catch(e){return F(s,r)&&ae(e),!1}return F(s,r)?(_.value=n.t(s),t.t(()=>a.onApplied?.(n.t(s))),!0):!1},se=async e=>{let t=S.value,n=await w.run(t,async()=>{e!==`submit`&&(D=t);try{return await oe(t,e)}finally{D===t&&(D=void 0)}},()=>N(e));return n.executed&&n.value},I=()=>se(`submit`),L=t=>{e(`change-params`,n.t(t)),e(`update:modelValue`,n.t(t))},R=()=>{G=!0;let e=++K;(0,p.nextTick)(()=>{e===K&&(G=!1)})},z=()=>{u.value?.restoreValidation();let t=n.t(h.value),r=t;m.value.forEach(e=>{e.show===!1||e.fixed||e.type===`spacer`||e.prop===`pageNum`||e.prop===`pageSize`||(r[e.prop]=x(e,r[e.prop]))}),R(),h.value=t,L(t),e(`reset`,n.t(t))},B=()=>{if(!O||E.value)return;let e=o.value.searchOnReset===!0,t=e&&D===S.value,n=e&&T.value&&!t;n&&S.value++,z(),e&&!t&&se(n?`replace`:`reset`)},V=e=>{if(!O)return!1;try{let t=g(h.value,m.value,e);return n.a(t,h.value)?!0:(R(),h.value=t,L(t),!0)}catch(e){return t.t(()=>ae(e)),!1}},H=()=>{y.value=!y.value},U=e=>{let t=new Map(m.value.map(e=>[e.prop,e]));m.value=n.t(e).map(e=>{let n=t.get(e.prop);return n&&e.hisList===void 0?{...e,hisList:n.hisList,isFocus:!1}:e}),M()},W=e=>{n.a(e,h.value)||(R(),h.value=n.t(e),M())},ce=(e,t)=>{W(t),U(e)},G=!1,K=0;return M(),(0,p.watch)(()=>[o.value.queryScope,m.value.filter(e=>e.fixed).map(e=>[e.prop,n.t(h.value[e.prop])])],(e,t)=>{n.a(e,t)||(S.value++,_.value=null)},{deep:!0,flush:`sync`}),(0,p.watch)(h,e=>{G||L(e)},{deep:!0}),(0,p.onMounted)(()=>{k.restoreFromStorage()}),{formRef:u,fields:m,formParams:h,appliedParams:_,hasUnappliedChanges:v,hiddenActiveFields:te,hiddenActiveCount:ne,expanded:y,searching:T,resetBlocked:E,visibleFields:j,availableFields:A,foldThreshold:d,hasExpandButton:ee,history:k,searchFn:I,resetFn:B,applyPreset:V,toggleFold:H,syncFromProps:ce,syncFields:U,syncModel:W}}const T=e=>{if(Array.isArray(e)&&e.length===2){if(e.every(e=>typeof e==`string`))return{mode:`formatted`,value:[e[0],e[1]]};if(e.every(e=>typeof e==`number`&&Number.isFinite(e)))return{mode:`timestamp`,value:[e[0],e[1]]}}return{mode:`timestamp`,value:null}},E={date:{type:`date`,format:`yyyy-MM-dd`},month:{type:`month`,format:`yyyy-MM`},"date-range":{type:`datetimerange`,format:`yyyy-MM-dd HH:mm`}};function D(e,t){let n=e.type===`date`||e.type===`month`?e.type:`date-range`,r=n===`date-range`?T(t):d.i(t),i=e.valueMode??r.mode,a=E[n];return i===`formatted`?{...a,mode:i,value:r.mode===`formatted`?r.value:null}:{...a,mode:i,value:r.mode===`timestamp`?r.value:null}}function O(e){let t=(0,p.ref)(null),n=(0,p.computed)(e),r=f.t(t,()=>n.value.enabled),i=(0,p.computed)(()=>{let e=n.value.minWidth;return Number.isFinite(e)?Math.max(1,e):208}),a=(0,p.computed)(()=>{let{gap:e,columns:t}=n.value,a=r.value>0?Math.max(1,Math.floor((r.value+e)/(i.value+e))):1;return t!==void 0&&Number.isFinite(t)?Math.min(a,Math.max(1,Math.floor(t))):a});return{root:t,style:(0,p.computed)(()=>n.value.enabled?{gridTemplateColumns:`repeat(${a.value}, minmax(0, 1fr))`,columnGap:`${n.value.gap}px`,"--c-search-layout-min-width":`${i.value}px`}:void 0),fieldStyle:e=>{let{enabled:t,gap:i}=n.value;if(!t)return;let o=(r.value+i)/a.value,s=e.minWidth&&o>0?Math.ceil((e.minWidth+i)/o):1,c=Number.isFinite(e.span)?Math.floor(e.span??1):1;return{gridColumn:`span ${Math.min(a.value,Math.max(1,c,s))}`}}}}function k(e,t){try{let n=JSON.parse(localStorage.getItem(e)??`null`);if(!n||typeof n!=`object`)return;let r=n;return r.version!==t||!Array.isArray(r.keys)?void 0:r.keys.every(e=>typeof e==`string`)?r.keys:void 0}catch{return}}function A(e,t){let n=(0,p.computed)(()=>{let t=e.config?.fieldSettings;return t?t===!0?{}:t:void 0}),r=(0,p.computed)(()=>e.formItemList.filter(e=>e.show!==!1&&e.type!==`spacer`).map(e=>({key:e.prop,label:e.label||e.prop,locked:e.fixed===!0||n.value?.lockedKeys?.includes(e.prop)===!0}))),i=e=>{let t=new Set(e);return r.value.filter(e=>e.locked||t.has(e.key)).map(e=>e.key)},a=(0,p.computed)(()=>i(n.value?.defaultVisibleKeys??r.value.map(e=>e.key))),o=(0,p.ref)(),s=(0,p.computed)(()=>n.value?i(e.visibleFields??o.value??a.value):r.value.map(e=>e.key)),c=(0,p.computed)(()=>{if(!n.value)return e.formItemList;let t=new Set(s.value);return e.formItemList.map(e=>e.type===`spacer`||e.show===!1?e:{...e,show:t.has(e.prop)})}),l=(0,p.computed)(()=>n.value?.persistKey?`c-search-fields:${JSON.stringify([n.value.persistKey,n.value.scope??null])}`:void 0),u=!1;function d(){o.value=void 0,!(e.visibleFields!==void 0||!l.value||typeof localStorage>`u`)&&(o.value=k(l.value,n.value?.version??1))}function f(r){let a=i(r);if(e.visibleFields===void 0&&(o.value=a),t(a),!(!l.value||typeof localStorage>`u`))try{localStorage.setItem(l.value,JSON.stringify({version:n.value?.version??1,keys:a}))}catch{}}return(0,p.watch)(()=>[l.value,n.value?.version],()=>{u&&d()}),(0,p.onMounted)(()=>{u=!0,d()}),{enabled:(0,p.computed)(()=>n.value!==void 0),choices:r,keys:s,fields:c,update:f,reset:()=>f(a.value)}}var j=(0,p.defineComponent)({name:`SearchCustomField`,props:{render:{type:Function,required:!0},context:{type:Object,required:!0}},setup:e=>()=>e.render(e.context)});const ee={key:0,class:`form-search-input-control`},te=[`onClick`],ne={class:`history-text`},M={key:0,class:`history-footer`},re=[`onClick`],N={key:0,role:`alert`,class:`form-search-option-error`},P={key:0,role:`alert`,class:`form-search-option-error`},ie={key:4,class:`form-search-hierarchy`},F={key:0,class:`form-search-option-error`,role:`alert`},ae={key:6,class:`form-search-number-range`},oe={class:`form-search-item-box form-search-actions`},se={class:`form-search-hidden-count`,role:`status`},I=(0,p.defineComponent)({name:`C_FormSearch`,__name:`index`,props:{bordered:{type:Boolean,default:!0},formItemList:{default:()=>[]},formParams:{default:()=>({})},modelValue:{},formSearchInputHistoryString:{},size:{},loading:{type:Boolean,default:!1},visibleFields:{},config:{}},emits:[`update:visibleFields`,`search`,`reset`,`change-params`,`update:modelValue`,`applied`],setup(t,{expose:n,emit:i}){let o=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./date-picker.cjs`))),c=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./time-picker.cjs`))),u=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./tree-select.cjs`))),f=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./cascader.cjs`))),h=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./SearchFieldSettings.cjs`))),g=t,_=i,{t:v}=r.t(()=>g.config?.locale),b=l.o(),x=(0,p.computed)(()=>g.config?.density??b.density),C=(0,p.computed)(()=>e.t(x.value)),T=(0,p.computed)(()=>g.size??C.value.size),E=a.n(),k=(0,p.computed)(()=>{if(x.value===void 0)return E.value;let{gap:e,rowGap:t,padding:n}=C.value;return{...E.value,"--c-search-gap":`${e}px`,"--c-search-row-gap":`${t}px`,"--c-search-padding":`${n}px`,"--c-search-field-width":x.value===`compact`?`208px`:void 0}}),I=A(g,e=>_(`update:visibleFields`,e)),{formRef:L,formParams:R,appliedParams:z,hasUnappliedChanges:B,hiddenActiveFields:V,hiddenActiveCount:H,expanded:U,searching:W,resetBlocked:ce,availableFields:G,foldThreshold:K,hasExpandButton:le,history:q,searchFn:ue,resetFn:de,applyPreset:fe,toggleFold:pe,syncFields:me,syncModel:he}=w(_,{formItemList:I.fields.value,formParams:g.modelValue??g.formParams,config:()=>g.config,loading:()=>g.loading,onApplied:e=>_(`applied`,e),historyOptions:()=>({storageKey:g.formSearchInputHistoryString,maxItems:g.config?.historyMaxItems})}),ge=`form-search-hidden-${(0,p.useId)()}`,J=(0,p.ref)(!1);(0,p.watch)(H,e=>{e||(J.value=!1)});let _e=e=>{J.value&&=(e.stopPropagation(),!1)},ve=(0,p.computed)(()=>g.config?.layout===`grid`),ye=(0,p.computed)(()=>g.formItemList.some(e=>e.type===`custom`&&(e.slot||e.prop)===`actions`)),be=(0,p.computed)(()=>g.config?.labelPlacement!==`left`&&G.value.some(e=>!!e.label)),{root:xe,style:Se,fieldStyle:Ce}=O(()=>({enabled:ve.value,minWidth:g.config?.fieldMinWidth??(x.value===`compact`?208:260),gap:x.value?C.value.gap:32,columns:g.config?.columns})),we=e=>{if(Array.isArray(e.attrs?.options))return e.attrs.options;if(e.list!==void 0)return e.list},Te=e=>{let t=R.value[e];return Array.isArray(t)?t.filter(e=>typeof e==`string`||typeof e==`number`):typeof t==`string`||typeof t==`number`?t:null},Ee=e=>s.t(e.attrs?.multiple,e.attrs?.maxTagCount)?(0,p.mergeProps)(e.attrs??{},{class:`c-select--bounded`,maxTagCount:1}):e.attrs,De=new WeakMap,Y=e=>{let t=De.get(e);if(!t){let n=(0,p.computed)(()=>s.n(we(e)));t=(0,p.computed)(()=>n.value(R.value[e.prop])),De.set(e,t)}return t.value},Oe=e=>Y(e).resolveFallbackOption(e.attrs?.fallbackOption),ke=e=>{let t=R.value[e];return typeof t==`string`?t:null},Ae=e=>R.value[e],je=e=>{let t=e.source;return typeof t==`function`?t(R.value):t},Me=(e,t,n)=>{X(e.prop,Y(e).decode(t,n))},X=(e,t)=>{let n=G.value.find(t=>t.prop===e),r=R.value;n&&!y(n)&&(r[e]=S(n,t,r[e]))},Ne=e=>{let t=R.value[e];return typeof t==`number`&&Number.isFinite(t)?t:null},Pe=(e,t)=>{let n=R.value[e],r=Array.isArray(n)?n[t]:null;return typeof r==`number`&&Number.isFinite(r)?r:null},Fe=(e,t,n)=>{let r=[Pe(e,0),Pe(e,1)];r[t]=n,X(e,r.every(e=>e===null)?null:r)},Z=e=>!!(e.fixed||e.disabled||e.attrs?.disabled===!0),Q=e=>!!(e.readonly||e.attrs?.readonly===!0),Ie=e=>{if(e.optionsState?.error!=null)return`error`;let t=e.attrs?.status;return t===`error`||t===`warning`?t:void 0},Le=e=>{Promise.resolve().then(()=>e.optionsState?.retry?.()).catch(()=>void 0)},Re=(e,t)=>{let n=e.attrs?.inputProps,r=n&&typeof n==`object`?n:{};return{"aria-label":`${e.label||e.prop}${t===0?`起始值`:`结束值`}`,...r}},$=e=>{let t=e.attrs?.size;return t===`small`||t===`medium`||t===`large`?t:T.value},ze=e=>({value:(0,p.readonly)(R.value)[e.prop],model:(0,p.readonly)(R.value),prop:e.prop,disabled:Z(e),readonly:Q(e),size:$(e),updateValue:t=>X(e.prop,t)}),Be=e=>e.render,Ve=e=>{let t=e.prop,n=D(e,R.value[t]);return{type:n.type,startPlaceholder:`开始时间`,endPlaceholder:`结束时间`,format:n.format,valueFormat:n.format,clearable:!0,...e.attrs,...d.r(n,e=>X(t,e)),disabled:Z(e),readonly:Q(e)}},He=e=>{let t=e.prop,n=d.i(R.value[t],e.valueMode);return{placeholder:e.placeholder,format:`HH:mm`,valueFormat:`HH:mm`,clearable:!0,...e.attrs,...d.r(n,e=>X(t,e)),disabled:Z(e)||Q(e)}};return(0,p.watch)(I.fields,me,{deep:!0}),(0,p.watch)(()=>g.modelValue??g.formParams,he,{deep:!0}),n({visibleFields:I.keys,formRef:L,formParams:R,appliedParams:z,hasUnappliedChanges:B,hiddenActiveCount:H,searchFn:ue,cleanFn:de,applyPreset:fe,changeFoldState:pe}),(e,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NCard),{class:(0,p.normalizeClass)([`form-search-card custom-card`,x.value&&`form-search-card--${x.value}`]),style:(0,p.normalizeStyle)(k.value),bordered:t.bordered},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NForm),{class:(0,p.normalizeClass)([`form-search`,{"form-search--grid":ve.value}]),model:(0,p.unref)(R),ref_key:`formRef`,ref:L,size:T.value,"label-placement":t.config?.labelPlacement||`top`,"label-width":t.config?.labelWidth,onSubmit:(0,p.withModifiers)((0,p.unref)(ue),[`prevent`])},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref_key:`layoutRoot`,ref:xe,class:`form-search-layout`,style:(0,p.normalizeStyle)((0,p.unref)(Se))},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)((0,p.unref)(G),(t,r)=>(0,p.withDirectives)(((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{class:`form-search-item-box`,key:t.prop||r,style:(0,p.normalizeStyle)((0,p.unref)(Ce)(t))},[t.type===`spacer`?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NFormItem),{key:0,class:`form-item-input`,path:t.prop,rule:t.rules,"show-feedback":!!t.rules?.length,"feedback-style":`min-height: 0; overflow-wrap: anywhere`,label:t.label,"show-label":!!t.label},{default:(0,p.withCtx)(()=>[t.type===`input`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ee,[(0,p.createVNode)((0,p.unref)(m.NInput),(0,p.mergeProps)({ref_for:!0},t.attrs,{clearable:t.attrs?.clearable!==!1,size:$(t),value:ke(t.prop),"onUpdate:value":e=>X(t.prop,e),placeholder:t.placeholder,disabled:Z(t),readonly:Q(t),onFocus:e=>(0,p.unref)(q).handleFocus(t.prop),onBlur:(0,p.unref)(q).closeAllPanels}),null,16,[`clearable`,`size`,`value`,`onUpdate:value`,`placeholder`,`disabled`,`readonly`,`onFocus`,`onBlur`]),t.isFocus?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{key:0,class:`input-history`,onMousedown:n[0]||=(0,p.withModifiers)(()=>{},[`prevent`])},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(t.hisList,(e,r)=>((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{class:`history-item`,onClick:n=>(0,p.unref)(q).selectHistoryItem(e,t.prop),key:e},[(0,p.createElementVNode)(`span`,ne,(0,p.toDisplayString)(e),1),(0,p.createVNode)((0,p.unref)(m.NIcon),{class:`delete-icon`,size:`14`,onClick:(0,p.withModifiers)(e=>(0,p.unref)(q).deleteHistoryItem(t.prop,r),[`stop`])},{default:(0,p.withCtx)(()=>[...n[2]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:close`},null,-1)]]),_:1},8,[`onClick`])],8,te))),128)),t.hisList&&t.hisList.length>0?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,M,[(0,p.createElementVNode)(`span`,{class:`clear-all`,onClick:(0,p.withModifiers)(e=>(0,p.unref)(q).clearAllHistory(t.prop),[`stop`])},(0,p.toDisplayString)((0,p.unref)(v)(`search.clearHistory`)),9,re)])):(0,p.createCommentVNode)(`v-if`,!0)],32)):(0,p.createCommentVNode)(`v-if`,!0)])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`autocomplete`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(d.t),(0,p.mergeProps)({key:1,ref_for:!0},t.attrs,{"model-value":ke(t.prop),source:je(t),placeholder:t.placeholder,size:$(t),disabled:Z(t),readonly:Q(t),"onUpdate:modelValue":e=>X(t.prop,e)}),null,16,[`model-value`,`source`,`placeholder`,`size`,`disabled`,`readonly`,`onUpdate:modelValue`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`select`&&t.source?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(d.n),(0,p.mergeProps)({key:2,ref_for:!0},t.attrs,{"model-value":Ae(t.prop),source:je(t),placeholder:t.placeholder||(0,p.unref)(v)(`search.selectPlaceholder`),clearable:t.attrs?.clearable!==!1,size:$(t),disabled:Z(t)||Q(t),"onUpdate:modelValue":e=>X(t.prop,e)}),null,16,[`model-value`,`source`,`placeholder`,`clearable`,`size`,`disabled`,`onUpdate:modelValue`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`select`&&!t.source?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NSelect),(0,p.mergeProps)({key:3,ref_for:!0},Ee(t),{value:Y(t).value,"onUpdate:value":(e,n)=>Me(t,e,n),placeholder:t.placeholder||(0,p.unref)(v)(`search.selectPlaceholder`),clearable:t.attrs?.clearable!==!1,size:$(t),options:Y(t).options,"fallback-option":Oe(t),loading:t.optionsState?.loading===!0||t.attrs?.loading===!0,disabled:Z(t)||Q(t),status:Ie(t)}),{empty:(0,p.withCtx)(()=>[t.optionsState?.error==null?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createElementBlock)(`div`,N,[n[4]||=(0,p.createTextVNode)(` 选项加载失败 `,-1),t.optionsState?.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[...n[3]||=[(0,p.createTextVNode)(`重试`,-1)]]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)]))]),action:(0,p.withCtx)(()=>[t.optionsState?.error!=null&&Y(t).options?.length?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,P,[n[6]||=(0,p.createTextVNode)(` 选项加载失败,保留已有选项 `,-1),t.optionsState?.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[...n[5]||=[(0,p.createTextVNode)(`重试`,-1)]]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)])):(0,p.createCommentVNode)(`v-if`,!0)]),_:2},1040,[`value`,`onUpdate:value`,`placeholder`,`clearable`,`size`,`options`,`fallback-option`,`loading`,`disabled`,`status`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`treeSelect`||t.type===`cascader`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ie,[((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(t.type===`treeSelect`?(0,p.unref)(u):(0,p.unref)(f)),(0,p.mergeProps)({ref_for:!0},t.attrs,{value:Te(t.prop),options:we(t),placeholder:t.placeholder,clearable:t.attrs?.clearable!==!1,size:$(t),disabled:Z(t)||Q(t),loading:t.optionsState?.loading===!0||t.attrs?.loading===!0,status:Ie(t),"onUpdate:value":e=>X(t.prop,e)}),null,16,[`value`,`options`,`placeholder`,`clearable`,`size`,`disabled`,`loading`,`status`,`onUpdate:value`])),t.optionsState?.error==null?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createElementBlock)(`div`,F,[(0,p.createTextVNode)((0,p.toDisplayString)((0,p.unref)(v)(`options.failed`))+` `,1),t.optionsState.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,p.toDisplayString)((0,p.unref)(v)(`common.retry`)),1)]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)]))])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`number`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NInputNumber),(0,p.mergeProps)({key:5,ref_for:!0},t.attrs,{value:Ne(t.prop),"onUpdate:value":e=>X(t.prop,e),size:$(t),placeholder:t.placeholder,"show-button":t.attrs?.showButton===void 0?x.value!==`compact`:t.attrs.showButton===!0,disabled:Z(t),readonly:Q(t)}),null,16,[`value`,`onUpdate:value`,`size`,`placeholder`,`show-button`,`disabled`,`readonly`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`number-range`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ae,[((0,p.openBlock)(),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)([0,1],e=>(0,p.createVNode)((0,p.unref)(m.NInputNumber),(0,p.mergeProps)({key:e},{ref_for:!0},t.attrs,{value:Pe(t.prop,e),"onUpdate:value":n=>Fe(t.prop,e,n),size:$(t),placeholder:t.placeholder,"show-button":!1,disabled:Z(t),readonly:Q(t),"input-props":Re(t,e)}),null,16,[`value`,`onUpdate:value`,`size`,`placeholder`,`disabled`,`readonly`,`input-props`])),64))])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`date-range`||t.type===`date`||t.type===`month`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(o),(0,p.mergeProps)({key:7,size:T.value},{ref_for:!0},Ve(t)),null,16,[`size`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`time`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(c),(0,p.mergeProps)({key:8,size:T.value},{ref_for:!0},He(t)),null,16,[`size`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`custom`?(0,p.renderSlot)(e.$slots,t.slot||t.prop,(0,p.mergeProps)({ref_for:!0},ze(t)),()=>[t.render?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(j),{key:0,render:Be(t),context:ze(t)},null,8,[`render`,`context`])):(0,p.createCommentVNode)(`v-if`,!0)],!0,9):(0,p.createCommentVNode)(`v-if`,!0)]),_:2},1032,[`path`,`rule`,`show-feedback`,`label`,`show-label`]))],4)),[[p.vShow,(0,p.unref)(U)||r<(0,p.unref)(K)]])),128))],4),(0,p.createElementVNode)(`div`,oe,[(0,p.createVNode)((0,p.unref)(m.NFormItem),{class:`form-item-input`,"show-feedback":!1,"show-label":be.value,label:` `},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NSpace),{class:`form-search-action-buttons`,justify:`end`,align:`center`,size:x.value?C.value.gap:8},{default:(0,p.withCtx)(()=>[(0,p.unref)(I).enabled.value?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(h),{key:0,fields:(0,p.unref)(I).choices.value,value:(0,p.unref)(I).keys.value,size:T.value,locale:t.config?.locale,onUpdate:(0,p.unref)(I).update,onReset:(0,p.unref)(I).reset},null,8,[`fields`,`value`,`size`,`locale`,`onUpdate`,`onReset`])):(0,p.createCommentVNode)(`v-if`,!0),(0,p.unref)(H)?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NPopover),{key:1,show:J.value,"onUpdate:show":n[1]||=e=>J.value=e,style:(0,p.normalizeStyle)((0,p.unref)(E)),trigger:`click`,placement:`bottom-end`,"show-arrow":!1},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-hidden-trigger`,tertiary:``,size:T.value,"aria-label":`查看隐藏条件(${(0,p.unref)(H)} 项)`,"aria-expanded":J.value,"aria-controls":J.value?ge:void 0,onKeydown:(0,p.withKeys)(_e,[`esc`])},{icon:(0,p.withCtx)(()=>[...n[7]||=[(0,p.createElementVNode)(`span`,{class:`i-mdi:filter-variant w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,p.withCtx)(()=>[(0,p.createTextVNode)(` 隐藏 `+(0,p.toDisplayString)((0,p.unref)(H))+` 项 `,1)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`aria-controls`])]),default:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{id:ge,class:`form-search-hidden-panel`,role:`region`,"aria-label":`隐藏条件`},[n[8]||=(0,p.createElementVNode)(`strong`,null,`隐藏条件`,-1),n[9]||=(0,p.createElementVNode)(`p`,null,`隐藏只影响显示,已填写的值会保留。`,-1),(0,p.createElementVNode)(`ul`,null,[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)((0,p.unref)(V),e=>((0,p.openBlock)(),(0,p.createElementBlock)(`li`,{key:e.prop},[(0,p.createElementVNode)(`span`,null,(0,p.toDisplayString)(e.label||`未命名条件`),1),(0,p.createElementVNode)(`small`,null,(0,p.toDisplayString)(e.fixed?`固定`:e.show===!1?`隐藏`:`已折叠`),1)]))),128))])])]),_:1},8,[`show`,`style`])):(0,p.createCommentVNode)(`v-if`,!0),(0,p.createVNode)((0,p.unref)(m.NTooltip),{trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,type:`primary`,size:T.value,"aria-label":`搜索`,"attr-type":`submit`,loading:t.loading||(0,p.unref)(W)},{icon:(0,p.withCtx)(()=>[...n[10]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:search w-4 h-4`},null,-1)]]),_:1},8,[`size`,`loading`])]),default:(0,p.withCtx)(()=>[n[11]||=(0,p.createTextVNode)(` 搜索 `,-1)]),_:1}),(0,p.createVNode)((0,p.unref)(m.NTooltip),{trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,size:T.value,"aria-label":`重置`,disabled:(0,p.unref)(ce),onClick:(0,p.unref)(de)},{icon:(0,p.withCtx)(()=>[...n[12]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:refresh w-4 h-4`},null,-1)]]),_:1},8,[`size`,`disabled`,`onClick`])]),default:(0,p.withCtx)(()=>[n[13]||=(0,p.createTextVNode)(` 重置 `,-1)]),_:1}),(0,p.unref)(le)?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NTooltip),{key:2,trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,size:T.value,"aria-label":(0,p.unref)(U)?`收起搜索条件`:`展开搜索条件`,"aria-expanded":(0,p.unref)(U),onClick:(0,p.unref)(pe)},{icon:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{class:(0,p.normalizeClass)((0,p.unref)(U)?`i-mdi:chevron-up w-4 h-4`:`i-mdi:chevron-down w-4 h-4`)},null,2)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`onClick`])]),default:(0,p.withCtx)(()=>[(0,p.createTextVNode)(` `+(0,p.toDisplayString)((0,p.unref)(U)?`收起`:`展开`),1)]),_:1})):(0,p.createCommentVNode)(`v-if`,!0),ye.value?(0,p.createCommentVNode)(`v-if`,!0):(0,p.renderSlot)(e.$slots,`actions`,{},void 0,!0,3)]),_:3},8,[`size`]),(0,p.createElementVNode)(`span`,se,(0,p.toDisplayString)((0,p.unref)(H)?`${(0,p.unref)(H)} 项隐藏条件生效`:``),1)]),_:3},8,[`show-label`])])]),_:3},8,[`class`,`model`,`size`,`label-placement`,`label-width`,`onSubmit`])]),_:3},8,[`class`,`style`,`bordered`]))}});var L=o.t(I,[[`__scopeId`,`data-v-cc68bfda`]]);function R(e){let t=new Set;for(let{prop:r,query:i}of e){let e=i?.keys??[i?.name??r];for(let r of e){if(n.o(r),t.has(r))throw TypeError(`Duplicate search query key: ${r}`);t.add(r)}}}function z(e,t){let r=n.t(e);for(let{prop:e,query:n}of t)(n?.keys||(n?.name??e)!==e)&&delete r[e];return r}function B(e,{prop:t,query:r},i){let a=Object.prototype.hasOwnProperty.call(e,t)?n.t(e[t]):void 0,o=r?.serialize?r.serialize(a):a;if(r?.keys){let[e,t]=r.keys,n=Array.isArray(o)?o:[null,null];i(e,n[0]),i(t,n[1])}else i(r?.name??t,o)}function V(e,t,r={}){let i=r.scope===`active`,a=t.filter(e=>e.type!==`spacer`&&(!i||e.fixed||e.show!==!1&&(!r.visibleFields||r.visibleFields.includes(e.prop))));R(a);let o=i?{}:z(e,a),s=r.omitEmpty??!0,c=(e,t)=>{n.o(e),s&&b(t)?delete o[e]:o[e]=n.t(t)};for(let t of a)B(e,t,c);return o}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return V}});
1
+ require(`./chunk.cjs`);const e=require(`./density.cjs`),t=require(`./observer.cjs`),n=require(`./data2.cjs`),r=require(`./useComponentLocale.cjs`),i=require(`./feedback.cjs`),a=require(`./useComponentTheme.cjs`),o=require(`./export-helper.cjs`),s=require(`./selectPresentation.cjs`),c=require(`./useActionTask.cjs`),l=require(`./useFormConfig.cjs`),u=require(`./storage.cjs`),d=require(`./sourceControls.cjs`),f=require(`./useGridWidth.cjs`);let p=require(`vue`),m=require(`naive-ui`);function h(e,t){return e.show!==!1&&e.type!==`spacer`&&!y(e)&&![`pageNum`,`pageSize`].includes(e.prop)&&Object.prototype.hasOwnProperty.call(t,e.prop)}function g(e,t,r){if(!r||typeof r!=`object`||Array.isArray(r))throw TypeError(`搜索预设必须是字段值对象`);let i=n.t(e),a=i;for(let e of t)h(e,r)&&(n.o(e.prop),a[e.prop]=n.t(S(e,r[e.prop],a[e.prop])));return i}const _=e=>[`select`,`treeSelect`,`cascader`].includes(e.type)&&e.attrs?.multiple===!0,v=e=>[`select`,`treeSelect`,`cascader`,`number`].includes(e.type)&&e.attrs?.clearable===!1;function y(e){return!!(e.fixed||e.disabled||e.readonly||e.attrs?.disabled===!0||e.attrs?.readonly===!0)}function b(e){return e==null||e===``||Array.isArray(e)&&e.every(b)}function x(e,t){return e.fixed?n.t(t):e.defaultValue===void 0?e.type===`input`||e.type===`autocomplete`?``:_(e)?[]:v(e)?n.t(t):null:n.t(e.defaultValue)}function S(e,t,n){return t??(e.type===`input`||e.type===`autocomplete`?``:_(e)?[]:v(e)||e.type===`custom`?x(e,n):null)}function C(e,t,n={}){let r=()=>(0,p.toValue)(n),i=(0,p.computed)(()=>!!r().storageKey),a=()=>{let e=r().maxItems;return e!==void 0&&Number.isFinite(e)?Math.max(1,Math.trunc(e)):5},o=t=>e.value.find(e=>e.prop===t),s=new Map,c=()=>{let t=new Set(e.value.map(e=>e.prop));for(let e of s.keys())t.has(e)||s.delete(e);for(let t of e.value){let e=s.get(t.prop);(!e||(0,p.toRaw)(e.current)!==(0,p.toRaw)(t.hisList))&&s.set(t.prop,{values:t.hisList?.slice(),current:t.hisList})}};c(),(0,p.watch)(e,c,{flush:`sync`});let l=(e,t)=>{let n=s.get(e.prop);n&&(n.current=t),e.hisList=t},d=r().storageKey,f=()=>{c();let t=r().storageKey;return t===d?!1:(d=t,e.value.forEach(e=>{e.isFocus=!1,l(e,s.get(e.prop)?.values?.slice())}),!0)},m=()=>{let{storageKey:t}=r();t&&u.i(t,Object.fromEntries(e.value.filter(e=>e.hisList!==void 0).map(e=>[e.prop,e.hisList])))},h=()=>{let{storageKey:e}=r();if(!e)return;let t=u.t(e);!t||typeof t!=`object`||(Array.isArray(t)?t.flatMap(e=>e&&typeof e==`object`&&typeof e.prop==`string`?[[e.prop,e.hisList]]:[]):Object.entries(t)).forEach(([e,t])=>{let n=o(e);if(!n||!Array.isArray(t))return;let r=[],i=a();for(let e of t)if(typeof e==`string`&&r.push(e),r.length===i)break;l(n,r)})},g=()=>{f(),h()},_=()=>{f()&&h()};(0,p.watch)(()=>r().storageKey,g,{flush:`sync`});let v=t=>{e.value.forEach(e=>{e.isFocus=!!(e.hisList&&e.prop===t)})},b=e=>{let t=o(e);!t||y(t)||(g(),v(e))},x=()=>v(),S=(e,n)=>{_();let r=o(n);r?.type!==`input`||y(r)||(t.value[n]=e,x())},C=(e,t)=>{_();let n=o(e);if(!n?.hisList)return;let r=[...n.hisList];r.splice(t,1),l(n,r),n.hisList.length===0&&(n.isFocus=!1),m()},w=e=>{_();let t=o(e);t?.hisList&&(l(t,[]),t.isFocus=!1,m())},T=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1),e.unshift(t);let r=a();return e.length>r&&(e.length=r),e};return{enabled:i,handleFocus:b,closeAllPanels:x,selectHistoryItem:S,deleteHistoryItem:C,clearAllHistory:w,saveCurrentInputs:()=>{_(),i.value&&(Object.keys(t.value).forEach(e=>{let n=t.value[e];if(n==null||n===``)return;let r=o(e);if(r?.type!==`input`||!r.hisList)return;let i=String(n).trim();i&&l(r,T([...r.hisList],i))}),x(),m())},restoreFromStorage:g}}function w(e,a){let o=(0,p.computed)(()=>(0,p.toValue)(a.config)??{}),s=i.t(()=>o.value.feedback),{t:l}=r.t(()=>o.value.locale),u=(0,p.ref)(null),d=(0,p.computed)(()=>o.value.foldThreshold??7),f=(0,p.computed)(()=>o.value.requireValue??!0),m=(0,p.ref)(n.t(a.formItemList)),h=(0,p.ref)(n.t(a.formParams)),_=(0,p.ref)(null),v=(0,p.computed)(()=>_.value===null||!n.a(h.value,_.value)),y=(0,p.ref)(!1),S=(0,p.ref)(0),w=c.t(),T=(0,p.computed)(()=>w.isRunning(S.value)),E=(0,p.computed)(()=>o.value.searchOnReset&&(0,p.toValue)(a.loading)&&!T.value),D,O=!0;(0,p.getCurrentScope)()&&(0,p.onScopeDispose)(()=>{O=!1});let k=C(m,h,a.historyOptions),A=(0,p.computed)(()=>m.value.filter(e=>e.show!==!1)),j=(0,p.computed)(()=>A.value.filter((e,t)=>y.value||t<d.value)),ee=(0,p.computed)(()=>A.value.length>d.value),te=(0,p.computed)(()=>{let e=new Set(j.value.map(e=>e.prop));return m.value.filter(t=>t.type!==`spacer`&&!e.has(t.prop)&&!b(h.value[t.prop]))}),ne=(0,p.computed)(()=>te.value.length),M=()=>{let e=h.value;m.value.forEach(t=>{t.isFocus=!1,t.show!==!1&&t.type!==`spacer`&&e[t.prop]===void 0&&(e[t.prop]=t.defaultValue===void 0?x(t,e[t.prop]):n.t(t.defaultValue))})},re=async e=>{try{return await u.value?.validate(),!0}catch{return e===S.value&&ee.value&&(y.value=!0),!1}},N=e=>e===`replace`||!(0,p.toValue)(a.loading),P=(e,t,r)=>O&&t===S.value&&N(r)&&n.a(h.value,e),ie=(e,t)=>{if(t!==`submit`||!f.value)return!0;let n=Object.entries(e).filter(([e])=>e!==`pageNum`&&e!==`pageSize`).some(([,e])=>!b(e));return n||s.warning(l(`search.valueRequired`)),n},F=(e,t)=>O&&t===S.value&&m.value.filter(e=>e.fixed).every(t=>n.a(h.value[t.prop],e[t.prop])),ae=e=>{O&&s.error(l(`search.failed`),e)},oe=async(r,i)=>{let s=n.t(h.value);if(!await re(r)||!P(s,r,i)||!ie(s,i)||(k.saveCurrentInputs(),e(`search`,n.t(s)),!P(s,r,i)))return!1;let c=o.value.onSearch;if(!c)return!0;try{if(await c(n.t(s))===!1)return!1}catch(e){return F(s,r)&&ae(e),!1}return F(s,r)?(_.value=n.t(s),t.t(()=>a.onApplied?.(n.t(s))),!0):!1},se=async e=>{let t=S.value,n=await w.run(t,async()=>{e!==`submit`&&(D=t);try{return await oe(t,e)}finally{D===t&&(D=void 0)}},()=>N(e));return n.executed&&n.value},I=()=>se(`submit`),L=t=>{e(`change-params`,n.t(t)),e(`update:modelValue`,n.t(t))},R=()=>{G=!0;let e=++K;(0,p.nextTick)(()=>{e===K&&(G=!1)})},z=()=>{u.value?.restoreValidation();let t=n.t(h.value),r=t;m.value.forEach(e=>{e.show===!1||e.fixed||e.type===`spacer`||e.prop===`pageNum`||e.prop===`pageSize`||(r[e.prop]=x(e,r[e.prop]))}),R(),h.value=t,L(t),e(`reset`,n.t(t))},B=()=>{if(!O||E.value)return;let e=o.value.searchOnReset===!0,t=e&&D===S.value,n=e&&T.value&&!t;n&&S.value++,z(),e&&!t&&se(n?`replace`:`reset`)},V=e=>{if(!O)return!1;try{let t=g(h.value,m.value,e);return n.a(t,h.value)?!0:(R(),h.value=t,L(t),!0)}catch(e){return t.t(()=>ae(e)),!1}},H=()=>{y.value=!y.value},U=e=>{let t=new Map(m.value.map(e=>[e.prop,e]));m.value=n.t(e).map(e=>{let n=t.get(e.prop);return n&&e.hisList===void 0?{...e,hisList:n.hisList,isFocus:!1}:e}),M()},W=e=>{n.a(e,h.value)||(R(),h.value=n.t(e),M())},ce=(e,t)=>{W(t),U(e)},G=!1,K=0;return M(),(0,p.watch)(()=>[o.value.queryScope,m.value.filter(e=>e.fixed).map(e=>[e.prop,n.t(h.value[e.prop])])],(e,t)=>{n.a(e,t)||(S.value++,_.value=null)},{deep:!0,flush:`sync`}),(0,p.watch)(h,e=>{G||L(e)},{deep:!0}),(0,p.onMounted)(()=>{k.restoreFromStorage()}),{formRef:u,fields:m,formParams:h,appliedParams:_,hasUnappliedChanges:v,hiddenActiveFields:te,hiddenActiveCount:ne,expanded:y,searching:T,resetBlocked:E,visibleFields:j,availableFields:A,foldThreshold:d,hasExpandButton:ee,history:k,searchFn:I,resetFn:B,applyPreset:V,toggleFold:H,syncFromProps:ce,syncFields:U,syncModel:W}}const T=e=>{if(Array.isArray(e)&&e.length===2){if(e.every(e=>typeof e==`string`))return{mode:`formatted`,value:[e[0],e[1]]};if(e.every(e=>typeof e==`number`&&Number.isFinite(e)))return{mode:`timestamp`,value:[e[0],e[1]]}}return{mode:`timestamp`,value:null}},E={date:{type:`date`,format:`yyyy-MM-dd`},month:{type:`month`,format:`yyyy-MM`},"date-range":{type:`datetimerange`,format:`yyyy-MM-dd HH:mm`}};function D(e,t){let n=e.type===`date`||e.type===`month`?e.type:`date-range`,r=n===`date-range`?T(t):d.i(t),i=e.valueMode??r.mode,a=E[n];return i===`formatted`?{...a,mode:i,value:r.mode===`formatted`?r.value:null}:{...a,mode:i,value:r.mode===`timestamp`?r.value:null}}function O(e){let t=(0,p.ref)(null),n=(0,p.computed)(e),r=f.t(t,()=>n.value.enabled),i=(0,p.computed)(()=>{let e=n.value.minWidth;return Number.isFinite(e)?Math.max(1,e):208}),a=(0,p.computed)(()=>{let{gap:e,columns:t}=n.value,a=r.value>0?Math.max(1,Math.floor((r.value+e)/(i.value+e))):1;return t!==void 0&&Number.isFinite(t)?Math.min(a,Math.max(1,Math.floor(t))):a});return{root:t,style:(0,p.computed)(()=>n.value.enabled?{gridTemplateColumns:`repeat(${a.value}, minmax(0, 1fr))`,columnGap:`${n.value.gap}px`,"--c-search-layout-min-width":`${i.value}px`}:void 0),fieldStyle:e=>{let{enabled:t,gap:i}=n.value;if(!t)return;let o=(r.value+i)/a.value,s=e.minWidth&&o>0?Math.ceil((e.minWidth+i)/o):1,c=Number.isFinite(e.span)?Math.floor(e.span??1):1;return{gridColumn:`span ${Math.min(a.value,Math.max(1,c,s))}`}}}}function k(e,t){try{let n=JSON.parse(localStorage.getItem(e)??`null`);if(!n||typeof n!=`object`)return;let r=n;return r.version!==t||!Array.isArray(r.keys)?void 0:r.keys.every(e=>typeof e==`string`)?r.keys:void 0}catch{return}}function A(e,t){let n=(0,p.computed)(()=>{let t=e.config?.fieldSettings;return t?t===!0?{}:t:void 0}),r=(0,p.computed)(()=>e.formItemList.filter(e=>e.show!==!1&&e.type!==`spacer`).map(e=>({key:e.prop,label:e.label||e.prop,locked:e.fixed===!0||n.value?.lockedKeys?.includes(e.prop)===!0}))),i=e=>{let t=new Set(e);return r.value.filter(e=>e.locked||t.has(e.key)).map(e=>e.key)},a=(0,p.computed)(()=>i(n.value?.defaultVisibleKeys??r.value.map(e=>e.key))),o=(0,p.ref)(),s=(0,p.computed)(()=>n.value?i(e.visibleFields??o.value??a.value):r.value.map(e=>e.key)),c=(0,p.computed)(()=>{if(!n.value)return e.formItemList;let t=new Set(s.value);return e.formItemList.map(e=>e.type===`spacer`||e.show===!1?e:{...e,show:t.has(e.prop)})}),l=(0,p.computed)(()=>n.value?.persistKey?`c-search-fields:${JSON.stringify([n.value.persistKey,n.value.scope??null])}`:void 0),u=!1;function d(){o.value=void 0,!(e.visibleFields!==void 0||!l.value||typeof localStorage>`u`)&&(o.value=k(l.value,n.value?.version??1))}function f(r){let a=i(r);if(e.visibleFields===void 0&&(o.value=a),t(a),!(!l.value||typeof localStorage>`u`))try{localStorage.setItem(l.value,JSON.stringify({version:n.value?.version??1,keys:a}))}catch{}}return(0,p.watch)(()=>[l.value,n.value?.version],()=>{u&&d()}),(0,p.onMounted)(()=>{u=!0,d()}),{enabled:(0,p.computed)(()=>n.value!==void 0),choices:r,keys:s,fields:c,update:f,reset:()=>f(a.value)}}var j=(0,p.defineComponent)({name:`SearchCustomField`,props:{render:{type:Function,required:!0},context:{type:Object,required:!0}},setup:e=>()=>e.render(e.context)});const ee={key:0,class:`form-search-input-control`},te=[`onClick`],ne={class:`history-text`},M={key:0,class:`history-footer`},re=[`onClick`],N={key:0,role:`alert`,class:`form-search-option-error`},P={key:0,role:`alert`,class:`form-search-option-error`},ie={key:4,class:`form-search-hierarchy`},F={key:0,class:`form-search-option-error`,role:`alert`},ae={key:6,class:`form-search-number-range`},oe={class:`form-search-item-box form-search-actions`},se={class:`form-search-hidden-count`,role:`status`},I=(0,p.defineComponent)({name:`C_FormSearch`,__name:`index`,props:{bordered:{type:Boolean,default:!0},formItemList:{default:()=>[]},formParams:{default:()=>({})},modelValue:{},formSearchInputHistoryString:{},size:{},loading:{type:Boolean,default:!1},visibleFields:{},config:{}},emits:[`update:visibleFields`,`search`,`reset`,`change-params`,`update:modelValue`,`applied`],setup(t,{expose:n,emit:i}){let o=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./date-picker.cjs`))),c=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./time-picker.cjs`))),u=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./tree-select.cjs`))),f=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./cascader.cjs`))),h=(0,p.defineAsyncComponent)(()=>Promise.resolve().then(()=>require(`./SearchFieldSettings.cjs`))),g=t,_=i,{t:v}=r.t(()=>g.config?.locale),b=l.o(),x=(0,p.computed)(()=>g.config?.density??b.density),C=(0,p.computed)(()=>e.t(x.value)),T=(0,p.computed)(()=>g.size??C.value.size),E=a.n(),k=(0,p.computed)(()=>{if(x.value===void 0)return E.value;let{gap:e,rowGap:t,padding:n}=C.value;return{...E.value,"--c-search-gap":`${e}px`,"--c-search-row-gap":`${t}px`,"--c-search-padding":`${n}px`,"--c-search-field-width":x.value===`compact`?`208px`:void 0}}),I=A(g,e=>_(`update:visibleFields`,e)),{formRef:L,formParams:R,appliedParams:z,hasUnappliedChanges:B,hiddenActiveFields:V,hiddenActiveCount:H,expanded:U,searching:W,resetBlocked:ce,availableFields:G,foldThreshold:K,hasExpandButton:le,history:q,searchFn:ue,resetFn:de,applyPreset:fe,toggleFold:pe,syncFields:me,syncModel:he}=w(_,{formItemList:I.fields.value,formParams:g.modelValue??g.formParams,config:()=>g.config,loading:()=>g.loading,onApplied:e=>_(`applied`,e),historyOptions:()=>({storageKey:g.formSearchInputHistoryString,maxItems:g.config?.historyMaxItems})}),ge=`form-search-hidden-${(0,p.useId)()}`,J=(0,p.ref)(!1);(0,p.watch)(H,e=>{e||(J.value=!1)});let _e=e=>{J.value&&=(e.stopPropagation(),!1)},ve=(0,p.computed)(()=>g.config?.layout===`grid`),ye=(0,p.computed)(()=>g.formItemList.some(e=>e.type===`custom`&&(e.slot||e.prop)===`actions`)),be=(0,p.computed)(()=>g.config?.labelPlacement!==`left`&&G.value.some(e=>!!e.label)),{root:xe,style:Se,fieldStyle:Ce}=O(()=>({enabled:ve.value,minWidth:g.config?.fieldMinWidth??(x.value===`compact`?208:260),gap:x.value?C.value.gap:32,columns:g.config?.columns})),we=e=>{if(Array.isArray(e.attrs?.options))return e.attrs.options;if(e.list!==void 0)return e.list},Te=e=>{let t=R.value[e];return Array.isArray(t)?t.filter(e=>typeof e==`string`||typeof e==`number`):typeof t==`string`||typeof t==`number`?t:null},Ee=e=>s.t(e.attrs?.multiple,e.attrs?.maxTagCount)?(0,p.mergeProps)(e.attrs??{},{class:`c-select--bounded`,maxTagCount:1}):e.attrs,De=new WeakMap,Y=e=>{let t=De.get(e);if(!t){let n=(0,p.computed)(()=>s.n(we(e)));t=(0,p.computed)(()=>n.value(R.value[e.prop])),De.set(e,t)}return t.value},Oe=e=>Y(e).resolveFallbackOption(e.attrs?.fallbackOption),ke=e=>{let t=R.value[e];return typeof t==`string`?t:null},Ae=e=>R.value[e],je=e=>{let t=e.source;return typeof t==`function`?t(R.value):t},Me=(e,t,n)=>{X(e.prop,Y(e).decode(t,n))},X=(e,t)=>{let n=G.value.find(t=>t.prop===e),r=R.value;n&&!y(n)&&(r[e]=S(n,t,r[e]))},Ne=e=>{let t=R.value[e];return typeof t==`number`&&Number.isFinite(t)?t:null},Pe=(e,t)=>{let n=R.value[e],r=Array.isArray(n)?n[t]:null;return typeof r==`number`&&Number.isFinite(r)?r:null},Fe=(e,t,n)=>{let r=[Pe(e,0),Pe(e,1)];r[t]=n,X(e,r.every(e=>e===null)?null:r)},Z=e=>!!(e.fixed||e.disabled||e.attrs?.disabled===!0),Q=e=>!!(e.readonly||e.attrs?.readonly===!0),Ie=e=>{if(e.optionsState?.error!=null)return`error`;let t=e.attrs?.status;return t===`error`||t===`warning`?t:void 0},Le=e=>{Promise.resolve().then(()=>e.optionsState?.retry?.()).catch(()=>void 0)},Re=(e,t)=>{let n=e.attrs?.inputProps,r=n&&typeof n==`object`?n:{};return{"aria-label":`${e.label||e.prop}${t===0?`起始值`:`结束值`}`,...r}},$=e=>{let t=e.attrs?.size;return t===`small`||t===`medium`||t===`large`?t:T.value},ze=e=>({value:(0,p.readonly)(R.value)[e.prop],model:(0,p.readonly)(R.value),prop:e.prop,disabled:Z(e),readonly:Q(e),size:$(e),updateValue:t=>X(e.prop,t)}),Be=e=>e.render,Ve=e=>{let t=e.prop,n=D(e,R.value[t]);return{type:n.type,startPlaceholder:v(`search.startTime`),endPlaceholder:v(`search.endTime`),format:n.format,valueFormat:n.format,clearable:!0,...e.attrs,...d.r(n,e=>X(t,e)),disabled:Z(e),readonly:Q(e)}},He=e=>{let t=e.prop,n=d.i(R.value[t],e.valueMode);return{placeholder:e.placeholder,format:`HH:mm`,valueFormat:`HH:mm`,clearable:!0,...e.attrs,...d.r(n,e=>X(t,e)),disabled:Z(e)||Q(e)}};return(0,p.watch)(I.fields,me,{deep:!0}),(0,p.watch)(()=>g.modelValue??g.formParams,he,{deep:!0}),n({visibleFields:I.keys,formRef:L,formParams:R,appliedParams:z,hasUnappliedChanges:B,hiddenActiveCount:H,searchFn:ue,cleanFn:de,applyPreset:fe,changeFoldState:pe}),(e,n)=>((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NCard),{class:(0,p.normalizeClass)([`form-search-card custom-card`,x.value&&`form-search-card--${x.value}`]),style:(0,p.normalizeStyle)(k.value),bordered:t.bordered},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NForm),{class:(0,p.normalizeClass)([`form-search`,{"form-search--grid":ve.value}]),model:(0,p.unref)(R),ref_key:`formRef`,ref:L,size:T.value,"label-placement":t.config?.labelPlacement||`top`,"label-width":t.config?.labelWidth,onSubmit:(0,p.withModifiers)((0,p.unref)(ue),[`prevent`])},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{ref_key:`layoutRoot`,ref:xe,class:`form-search-layout`,style:(0,p.normalizeStyle)((0,p.unref)(Se))},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)((0,p.unref)(G),(t,r)=>(0,p.withDirectives)(((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{class:`form-search-item-box`,key:t.prop||r,style:(0,p.normalizeStyle)((0,p.unref)(Ce)(t))},[t.type===`spacer`?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NFormItem),{key:0,class:`form-item-input`,path:t.prop,rule:t.rules,"show-feedback":!!t.rules?.length,"feedback-style":`min-height: 0; overflow-wrap: anywhere`,label:t.label,"show-label":!!t.label},{default:(0,p.withCtx)(()=>[t.type===`input`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ee,[(0,p.createVNode)((0,p.unref)(m.NInput),(0,p.mergeProps)({ref_for:!0},t.attrs,{clearable:t.attrs?.clearable!==!1,size:$(t),value:ke(t.prop),"onUpdate:value":e=>X(t.prop,e),placeholder:t.placeholder,disabled:Z(t),readonly:Q(t),onFocus:e=>(0,p.unref)(q).handleFocus(t.prop),onBlur:(0,p.unref)(q).closeAllPanels}),null,16,[`clearable`,`size`,`value`,`onUpdate:value`,`placeholder`,`disabled`,`readonly`,`onFocus`,`onBlur`]),t.isFocus?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{key:0,class:`input-history`,onMousedown:n[0]||=(0,p.withModifiers)(()=>{},[`prevent`])},[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(t.hisList,(e,r)=>((0,p.openBlock)(),(0,p.createElementBlock)(`div`,{class:`history-item`,onClick:n=>(0,p.unref)(q).selectHistoryItem(e,t.prop),key:e},[(0,p.createElementVNode)(`span`,ne,(0,p.toDisplayString)(e),1),(0,p.createVNode)((0,p.unref)(m.NIcon),{class:`delete-icon`,size:`14`,onClick:(0,p.withModifiers)(e=>(0,p.unref)(q).deleteHistoryItem(t.prop,r),[`stop`])},{default:(0,p.withCtx)(()=>[...n[2]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:close`},null,-1)]]),_:1},8,[`onClick`])],8,te))),128)),t.hisList&&t.hisList.length>0?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,M,[(0,p.createElementVNode)(`span`,{class:`clear-all`,onClick:(0,p.withModifiers)(e=>(0,p.unref)(q).clearAllHistory(t.prop),[`stop`])},(0,p.toDisplayString)((0,p.unref)(v)(`search.clearHistory`)),9,re)])):(0,p.createCommentVNode)(`v-if`,!0)],32)):(0,p.createCommentVNode)(`v-if`,!0)])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`autocomplete`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(d.t),(0,p.mergeProps)({key:1,ref_for:!0},t.attrs,{"model-value":ke(t.prop),source:je(t),placeholder:t.placeholder,size:$(t),disabled:Z(t),readonly:Q(t),"onUpdate:modelValue":e=>X(t.prop,e)}),null,16,[`model-value`,`source`,`placeholder`,`size`,`disabled`,`readonly`,`onUpdate:modelValue`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`select`&&t.source?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(d.n),(0,p.mergeProps)({key:2,ref_for:!0},t.attrs,{"model-value":Ae(t.prop),source:je(t),placeholder:t.placeholder||(0,p.unref)(v)(`search.selectPlaceholder`),clearable:t.attrs?.clearable!==!1,size:$(t),disabled:Z(t)||Q(t),"onUpdate:modelValue":e=>X(t.prop,e)}),null,16,[`model-value`,`source`,`placeholder`,`clearable`,`size`,`disabled`,`onUpdate:modelValue`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`select`&&!t.source?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NSelect),(0,p.mergeProps)({key:3,ref_for:!0},Ee(t),{value:Y(t).value,"onUpdate:value":(e,n)=>Me(t,e,n),placeholder:t.placeholder||(0,p.unref)(v)(`search.selectPlaceholder`),clearable:t.attrs?.clearable!==!1,size:$(t),options:Y(t).options,"fallback-option":Oe(t),loading:t.optionsState?.loading===!0||t.attrs?.loading===!0,disabled:Z(t)||Q(t),status:Ie(t)}),{empty:(0,p.withCtx)(()=>[t.optionsState?.error==null?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createElementBlock)(`div`,N,[n[4]||=(0,p.createTextVNode)(` 选项加载失败 `,-1),t.optionsState?.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[...n[3]||=[(0,p.createTextVNode)(`重试`,-1)]]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)]))]),action:(0,p.withCtx)(()=>[t.optionsState?.error!=null&&Y(t).options?.length?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,P,[n[6]||=(0,p.createTextVNode)(` 选项加载失败,保留已有选项 `,-1),t.optionsState?.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[...n[5]||=[(0,p.createTextVNode)(`重试`,-1)]]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)])):(0,p.createCommentVNode)(`v-if`,!0)]),_:2},1040,[`value`,`onUpdate:value`,`placeholder`,`clearable`,`size`,`options`,`fallback-option`,`loading`,`disabled`,`status`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`treeSelect`||t.type===`cascader`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ie,[((0,p.openBlock)(),(0,p.createBlock)((0,p.resolveDynamicComponent)(t.type===`treeSelect`?(0,p.unref)(u):(0,p.unref)(f)),(0,p.mergeProps)({ref_for:!0},t.attrs,{value:Te(t.prop),options:we(t),placeholder:t.placeholder,clearable:t.attrs?.clearable!==!1,size:$(t),disabled:Z(t)||Q(t),loading:t.optionsState?.loading===!0||t.attrs?.loading===!0,status:Ie(t),"onUpdate:value":e=>X(t.prop,e)}),null,16,[`value`,`options`,`placeholder`,`clearable`,`size`,`disabled`,`loading`,`status`,`onUpdate:value`])),t.optionsState?.error==null?(0,p.createCommentVNode)(`v-if`,!0):((0,p.openBlock)(),(0,p.createElementBlock)(`div`,F,[(0,p.createTextVNode)((0,p.toDisplayString)((0,p.unref)(v)(`options.failed`))+` `,1),t.optionsState.retry?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NButton),{key:0,text:``,size:`small`,onClick:e=>Le(t)},{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,p.toDisplayString)((0,p.unref)(v)(`common.retry`)),1)]),_:1},8,[`onClick`])):(0,p.createCommentVNode)(`v-if`,!0)]))])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`number`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NInputNumber),(0,p.mergeProps)({key:5,ref_for:!0},t.attrs,{value:Ne(t.prop),"onUpdate:value":e=>X(t.prop,e),size:$(t),placeholder:t.placeholder,"show-button":t.attrs?.showButton===void 0?x.value!==`compact`:t.attrs.showButton===!0,disabled:Z(t),readonly:Q(t)}),null,16,[`value`,`onUpdate:value`,`size`,`placeholder`,`show-button`,`disabled`,`readonly`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`number-range`?((0,p.openBlock)(),(0,p.createElementBlock)(`div`,ae,[((0,p.openBlock)(),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)([0,1],e=>(0,p.createVNode)((0,p.unref)(m.NInputNumber),(0,p.mergeProps)({key:e},{ref_for:!0},t.attrs,{value:Pe(t.prop,e),"onUpdate:value":n=>Fe(t.prop,e,n),size:$(t),placeholder:t.placeholder,"show-button":!1,disabled:Z(t),readonly:Q(t),"input-props":Re(t,e)}),null,16,[`value`,`onUpdate:value`,`size`,`placeholder`,`disabled`,`readonly`,`input-props`])),64))])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`date-range`||t.type===`date`||t.type===`month`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(o),(0,p.mergeProps)({key:7,size:T.value},{ref_for:!0},Ve(t)),null,16,[`size`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`time`?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(c),(0,p.mergeProps)({key:8,size:T.value},{ref_for:!0},He(t)),null,16,[`size`])):(0,p.createCommentVNode)(`v-if`,!0),t.type===`custom`?(0,p.renderSlot)(e.$slots,t.slot||t.prop,(0,p.mergeProps)({ref_for:!0},ze(t)),()=>[t.render?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(j),{key:0,render:Be(t),context:ze(t)},null,8,[`render`,`context`])):(0,p.createCommentVNode)(`v-if`,!0)],!0,9):(0,p.createCommentVNode)(`v-if`,!0)]),_:2},1032,[`path`,`rule`,`show-feedback`,`label`,`show-label`]))],4)),[[p.vShow,(0,p.unref)(U)||r<(0,p.unref)(K)]])),128))],4),(0,p.createElementVNode)(`div`,oe,[(0,p.createVNode)((0,p.unref)(m.NFormItem),{class:`form-item-input`,"show-feedback":!1,"show-label":be.value,label:` `},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NSpace),{class:`form-search-action-buttons`,justify:`end`,align:`center`,size:x.value?C.value.gap:8},{default:(0,p.withCtx)(()=>[(0,p.unref)(I).enabled.value?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(h),{key:0,fields:(0,p.unref)(I).choices.value,value:(0,p.unref)(I).keys.value,size:T.value,locale:t.config?.locale,onUpdate:(0,p.unref)(I).update,onReset:(0,p.unref)(I).reset},null,8,[`fields`,`value`,`size`,`locale`,`onUpdate`,`onReset`])):(0,p.createCommentVNode)(`v-if`,!0),(0,p.unref)(H)?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NPopover),{key:1,show:J.value,"onUpdate:show":n[1]||=e=>J.value=e,style:(0,p.normalizeStyle)((0,p.unref)(E)),trigger:`click`,placement:`bottom-end`,"show-arrow":!1},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-hidden-trigger`,tertiary:``,size:T.value,"aria-label":`查看隐藏条件(${(0,p.unref)(H)} 项)`,"aria-expanded":J.value,"aria-controls":J.value?ge:void 0,onKeydown:(0,p.withKeys)(_e,[`esc`])},{icon:(0,p.withCtx)(()=>[...n[7]||=[(0,p.createElementVNode)(`span`,{class:`i-mdi:filter-variant w-4 h-4`,"aria-hidden":`true`},null,-1)]]),default:(0,p.withCtx)(()=>[(0,p.createTextVNode)(` 隐藏 `+(0,p.toDisplayString)((0,p.unref)(H))+` 项 `,1)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`aria-controls`])]),default:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{id:ge,class:`form-search-hidden-panel`,role:`region`,"aria-label":`隐藏条件`},[n[8]||=(0,p.createElementVNode)(`strong`,null,`隐藏条件`,-1),n[9]||=(0,p.createElementVNode)(`p`,null,`隐藏只影响显示,已填写的值会保留。`,-1),(0,p.createElementVNode)(`ul`,null,[((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)((0,p.unref)(V),e=>((0,p.openBlock)(),(0,p.createElementBlock)(`li`,{key:e.prop},[(0,p.createElementVNode)(`span`,null,(0,p.toDisplayString)(e.label||`未命名条件`),1),(0,p.createElementVNode)(`small`,null,(0,p.toDisplayString)(e.fixed?`固定`:e.show===!1?`隐藏`:`已折叠`),1)]))),128))])])]),_:1},8,[`show`,`style`])):(0,p.createCommentVNode)(`v-if`,!0),(0,p.createVNode)((0,p.unref)(m.NTooltip),{trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,type:`primary`,size:T.value,"aria-label":`搜索`,"attr-type":`submit`,loading:t.loading||(0,p.unref)(W)},{icon:(0,p.withCtx)(()=>[...n[10]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:search w-4 h-4`},null,-1)]]),_:1},8,[`size`,`loading`])]),default:(0,p.withCtx)(()=>[n[11]||=(0,p.createTextVNode)(` 搜索 `,-1)]),_:1}),(0,p.createVNode)((0,p.unref)(m.NTooltip),{trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,size:T.value,"aria-label":`重置`,disabled:(0,p.unref)(ce),onClick:(0,p.unref)(de)},{icon:(0,p.withCtx)(()=>[...n[12]||=[(0,p.createElementVNode)(`div`,{class:`i-mdi:refresh w-4 h-4`},null,-1)]]),_:1},8,[`size`,`disabled`,`onClick`])]),default:(0,p.withCtx)(()=>[n[13]||=(0,p.createTextVNode)(` 重置 `,-1)]),_:1}),(0,p.unref)(le)?((0,p.openBlock)(),(0,p.createBlock)((0,p.unref)(m.NTooltip),{key:2,trigger:`hover`},{trigger:(0,p.withCtx)(()=>[(0,p.createVNode)((0,p.unref)(m.NButton),{class:`form-search-icon-button`,size:T.value,"aria-label":(0,p.unref)(U)?`收起搜索条件`:`展开搜索条件`,"aria-expanded":(0,p.unref)(U),onClick:(0,p.unref)(pe)},{icon:(0,p.withCtx)(()=>[(0,p.createElementVNode)(`div`,{class:(0,p.normalizeClass)((0,p.unref)(U)?`i-mdi:chevron-up w-4 h-4`:`i-mdi:chevron-down w-4 h-4`)},null,2)]),_:1},8,[`size`,`aria-label`,`aria-expanded`,`onClick`])]),default:(0,p.withCtx)(()=>[(0,p.createTextVNode)(` `+(0,p.toDisplayString)((0,p.unref)(U)?`收起`:`展开`),1)]),_:1})):(0,p.createCommentVNode)(`v-if`,!0),ye.value?(0,p.createCommentVNode)(`v-if`,!0):(0,p.renderSlot)(e.$slots,`actions`,{},void 0,!0,3)]),_:3},8,[`size`]),(0,p.createElementVNode)(`span`,se,(0,p.toDisplayString)((0,p.unref)(H)?`${(0,p.unref)(H)} 项隐藏条件生效`:``),1)]),_:3},8,[`show-label`])])]),_:3},8,[`class`,`model`,`size`,`label-placement`,`label-width`,`onSubmit`])]),_:3},8,[`class`,`style`,`bordered`]))}});var L=o.t(I,[[`__scopeId`,`data-v-5edf495a`]]);function R(e){let t=new Set;for(let{prop:r,query:i}of e){let e=i?.keys??[i?.name??r];for(let r of e){if(n.o(r),t.has(r))throw TypeError(`Duplicate search query key: ${r}`);t.add(r)}}}function z(e,t){let r=n.t(e);for(let{prop:e,query:n}of t)(n?.keys||(n?.name??e)!==e)&&delete r[e];return r}function B(e,{prop:t,query:r},i){let a=Object.prototype.hasOwnProperty.call(e,t)?n.t(e[t]):void 0,o=r?.serialize?r.serialize(a):a;if(r?.keys){let[e,t]=r.keys,n=Array.isArray(o)?o:[null,null];i(e,n[0]),i(t,n[1])}else i(r?.name??t,o)}function V(e,t,r={}){let i=r.scope===`active`,a=t.filter(e=>e.type!==`spacer`&&(!i||e.fixed||e.show!==!1&&(!r.visibleFields||r.visibleFields.includes(e.prop))));R(a);let o=i?{}:z(e,a),s=r.omitEmpty??!0,c=(e,t)=>{n.o(e),s&&b(t)?delete o[e]:o[e]=n.t(t)};for(let t of a)B(e,t,c);return o}Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return V}});